roperty 'map' does not exist on type 'Observable<Book>'. code example
Example: Property 'map' does not exist on type 'Observable'.ts(2339)
typescript by Outrageous Octopus
on Feb 05 2021 Donate
Comment
0
const request = this.evidenceService.get().pipe(
map((res) => res.data)),
catchError(error => Observable.of(null))
);
Source: stackoverflow.com
Add a Grepper Answer
TypeScript answers related to “roperty 'map' does not exist on type 'Observable'.”
'push' does not exist on type 'Observable' property 'do' does not exist on type 'observable>'. angular 9 Property 'editor' does not exist on type 'Window & typeof globalThis'. property 'length' does not exist on type 'T' Property 'of' does not exist on type 'typeof Observable'. Property 'orderBy' does not exist on type 'AngularFirestoreCollection property 'unsubscribe' does not exist on type 'Observable' REACT TS roperty 'value' does not exist on type 'EventTarget & Element' typescript add property if not exist, merge if it exists
TypeScript queries related to “roperty 'map' does not exist on type 'Observable'.”
property 'map' does not exist on type 'observable object ' Node Property 'map' does not exist on type Object Node Property 'map' does not exist on type '{}' Property 'map' does not exist on type 'Observab Property 'map' does not exist on type 'Observable Property 'map' does not exist on type 'Observable' solved: Property 'map' does not exist on type 'Observable'.ts Property 'map' does not exist on type 'Observable'.(2339) Property 'success' does not exist on type 'Object' map typescript Property 'map' does not exist on type 'Observable'.ts(2339) Property 'map' does not exist on type 'Observable'. angular Property 'map' does not exist on type 'Observable'. TS2339: Property 'map' does not exist on type 'Observable '. Property 'map' does not exist on type 'never'.ts(2339) Property 'map' does not exist on type 'State' error TS2339: Property 'map' does not exist on type 'Subscription'. map does not exist on type observable object Property 'map' does not exist on type 'Observable[]> Property 'map' does not exist on type 'Observable[]>' any Property 'map' does not exist on type 'Observable Property 'map' does not exist on type 'Observable Property 'map' does not exist on type 'Observable'.ts(2339) property map does not exist on object angular frontend property map does not exist on object angular any Property 'map' does not exist on type 'Observable'. Property 'map' does not exist on type 'Dispatch ts Property 'map' does not exist on type {} ts Property 'map' does not exist on type error TS2339: Property 'map' does not exist on type 'Observable' Property 'map' does not exist on type '{ 1: string; 2: string; 3: string; } Property 'map' does not exist on type 'Observable'.ts(2339) react Property 'map' does not exist on type '{}' Property 'map' does not exist on type '{}' property map does not exist on type observer object property 'map' does not exist on type 'unknown'.ts(2339) Property 'map' does not exist on type 'Observable property map doesn't exist on Property 'map' does not exist on type 'Observable[]> Property 'map' does not exist on type 'void'. Property 'Map' does not exist on type 'void' Property 'map' does not exist on type react Property 'map' does not exist on type 'Observable '. ts Property 'map' does not exist on type 'unknown' Property 'map' does not exist on type 'Observable' Property 'map' does not exist on type 'Object'. ionic Property 'map' does not exist on type 'Observable>' Property 'map' does not exist on type 'string | string[]' Property 'map' does not exist on type 'Observable ' 'map' does not exist on type 'Observable'. Property 'map' does not exist on type 'Observable'.ts(2339) Property 'map' does not exist on type '{} | (string | number | Partial>)[]'. Property 'map' does not exist on type '{} Property 'map' does not exist on type 'Observable<[PlanetaKinoV2City[] Typescript Property 'map' does not exist on type 'string' Property 'map' does not exist on type 'Observable' any property 'map' does not exist on type 'observable object ' Property 'map' does not exist on type 'Observable> Property 'map' does not exist on type '{} | (string | number | Partial>)[]'. angular Property 'map' does not exist on type ts file Property 'map' does not exist on type property map does not exist typescript Property 'map' does not exist on type 'Observable'.t Property 'map' does not exist on type 'Subject>'. property map dos=es not exist on type observable Property 'map' does not exist on type 'Observable' Property 'map' does not exist on type 'Observable' any Property 'map' does not exist on type 'Observable' Property 'map' does not exist on type 'Subscription'.ts(2339) property 'map' does not exist on type 'object'.ts(2339) Property 'map' does not exist on type 'object' tsx Property 'map' does not exist on type 'object' tsx .3 Property 'map' does not exist on type 'object' react Property 'map' does not exist on type 'object'.ts(2 Property 'map' does not exist on type 'Observable'. TS2339: Property 'map' does not exist on type 'Subject >' Property 'map' does not exist on type 'Observable[]>'. Property 'map' does not exist on type 'string'. map does not exist on type observable object angular 8 Property 'map' does not exist on type 'Observable'.ts(2339) angular Property 'map' does not exist on type 'Observable' in mock data angular ]Property 'map' does not exist on type 'Observable' in mock data angulkar ]Property 'map' does not exist on type 'Observable' in mock data Property 'map' does not exist on type 'Observable' in mock data Property 'map' does not exist on type '(barcodeArray: []) => any'.ts(2339) Property 'map' does not exist on type 'Observable'. Property 'map' does not exist on type 'Observable'. 'map' does not exist on type 'Observable<[Category[], Category[]]>' Property 'map' does not exist on type 'Observable'. Property 'map' does not exist on type 'Observable'.ts(2339) Property 'map' does not exist on type 'Observable typescript property 'map' does not exist on type Property 'map' does not exist on type 'Observable Property 'map' does not exist on type 'Observable>'. in rxjs 6.6.0 Property 'map' does not exist on type 'Subscription' Property 'map' does not exist on type 'Observable'. property 'map' does not exist on type 'element' Property 'map' does not exist on type Element Property 'map' does not exist on type '(Element | Element[]) & ReactNode'. property 'map' does not exist on type typescript Property 'map' does not exist on type property 'map' does not exist on type 'object' Property 'map' does not exist on type 'Observable' error TS2339: Property 'map' does not exist on type 'Observable' typescript object Property 'map' does not exist on type Property 'map' does not exist on type 'Object'. Property 'map' does not exist on type ' property map does not exist on type {} roperty 'map' does not exist on type 'Observable'. map does not exist on type observable Property 'map' does not exist on type 'Observable ngrx Property 'map' does not exist on type 'Observable typescript any Property 'map' does not exist on type Property 'map' does not exist on type 'Observable>' Property 'map' does not exist on type angular 10 Property 'map' does not exist on type 'Observable' Property 'map' does not exist on type 'Observable[]>' property 'map' does not exist on type 'observable response ' angular 9 Property 'map' does not exist on type 'Observable[] firebase Property 'map' does not exist on type firestore angular Property 'map' does not exist on type 'Observable[] Property map does not exist on type "Map" "Property map does not exist on type Map" "Property 'map' does not exist on type 'Map" Property 'map' does not exist on type 'Map property map does not exist on type object Property 'map' does not exist on type 'IBook'.ts(2339) react-redux Property 'map' does not exist on type 'I react Property 'map' does not exist on type 'I Property 'map' does not exist on type 'IBook'.ts(2339) Property 'map' does not exist on type 'IBook'. property map does not exist on type typescript property map does not exist on type {}[] property map does not exist on type observable error TS2339 Property 'map' does not exist on type error TS2339: Property 'map' does not exist on type 'Observable error TS2339: Property 'map' does not exist on type 'Observable'. Property 'map' does not exist on type 'Observable' Property 'map' does not exist on type 'Promise'.ts Property 'map' does not exist on type 'Observable'.ts(2339)
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.TaysCodeMirror=t()}(this,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),l=n||i||o,a=l&&(n?document.documentMode||6:+(o||i)[1]),s=!o&&/WebKit\//.test(e),u=s&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),f=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),g=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),v=/Android/.test(e),m=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),w=/win/i.test(t),x=f&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(f=!1,s=!0);var C=y&&(u||f&&(null==x||x<12.11)),k=r||l&&a>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T,L=function(e,t){var r=e.className,n=S(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function M(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function N(e,t){return M(e).appendChild(t)}function A(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=r-l%r,o=a+1}}g?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:l&&(F=function(e){try{e.select()}catch(e){}});var R=function(){this.id=null,this.f=null,this.time=0,this.handler=P(this.onTimeout,this)};function B(e,t){for(var r=0;r=t)return n+Math.min(l,t-i);if(i+=o-n,n=o+1,(i+=r-i%r)>=t)return n}}var $=[""];function _(e){for(;$.length<=e;)$.push(Y($)+" ");return $[e]}function Y(e){return e[e.length-1]}function q(e,t){for(var r=[],n=0;n""&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function te(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ee(e))||t.test(e):ee(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&ne.test(e)}function oe(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}var ae=null;function se(e,t,r){var n;ae=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:ae=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:ae=i)}return null!=n?n:ae}var ue=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,l=/[1n]/;function a(e,t,r){this.level=e,this.from=t,this.to=r}return function(s,u){var c="ltr"==u?"L":"R";if(0==s.length||"ltr"==u&&!r.test(s))return!1;for(var f,h=s.length,d=[],p=0;p-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ge(e,t){var r=de(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function be(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){pe(this,e,t)}}function we(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function xe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ke(e){we(e),xe(e)}function Se(e){return e.target||e.srcElement}function Te(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Le,Me,Ne=function(){if(l&&a<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Ae(e){if(null==Le){var t=A("span","");N(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Le=t.offsetWidth<=1&&t.offsetHeight>2&&!(l&&a<8))}var r=Le?A("span",""):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Oe(e){if(null!=Me)return Me;var t=N(e,document.createTextNode("AخA")),r=T(t,0,1).getBoundingClientRect(),n=T(t,1,2).getBoundingClientRect();return M(e),!(!r||r.left==r.right)&&(Me=n.right-r.right<3)}var De,We=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),l=o.indexOf("\r");-1!=l?(r.push(o.slice(0,l)),t+=l+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},He=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ee="oncopy"in(De=A("div"))||(De.setAttribute("oncopy","return;"),"function"==typeof De.oncopy),Fe=null;var Pe={},Ie={};function ze(e){if("string"==typeof e&&Ie.hasOwnProperty(e))e=Ie[e];else if(e&&"string"==typeof e.name&&Ie.hasOwnProperty(e.name)){var t=Ie[e.name];"string"==typeof t&&(t={name:t}),(e=Q(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ze("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ze("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Re(e,t){t=ze(t);var r=Pe[t.name];if(!r)return Re(e,"text/plain");var n=r(e,t);if(Be.hasOwnProperty(t.name)){var i=Be[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var Be={};function Ve(e,t){I(t,Be.hasOwnProperty(e)?Be[e]:Be[e]={})}function je(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Ge(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Ue(e,t,r){return!e.startState||e.startState(t,r)}var Ke=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function Xe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&tr?et(r,Xe(e,r).text.length):function(e,t){var r=e.ch;return null==r||r>t?et(e.line,t):r<0?et(e.line,0):e}(t,Xe(e,t.line).text.length)}function st(e,t){for(var r=[],n=0;n=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.post},Ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ke.prototype.backUp=function(e){this.pos-=e},Ke.prototype.column=function(){return this.lastColumnPos0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ke.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ut=function(e,t){this.state=e,this.lookAhead=t},ct=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function ft(e,t,r,n){var i=[e.state.modeGen],o={};wt(e,t.text,e.doc.mode,r,function(e,t){return i.push(e,t)},o,n);for(var l=r.state,a=function(n){r.baseTokens=i;var a=e.state.overlays[n],s=1,u=0;r.state=!0,wt(e,t.text,a.mode,r,function(e,t){for(var r=s;ue&&i.splice(s,1,e,i[s+1],n),s+=2,u=Math.min(e,n)}if(t)if(a.opaque)i.splice(r,s-r,e,"overlay "+t),s=r+2;else for(;re.options.maxHighlightLength&&je(e.doc.mode,n.state),o=ft(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function dt(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new ct(n,!0,t);var o=function(e,t,r){for(var n,i,o=e.doc,l=r?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>l;--a){if(a<=o.first)return o.first;var s=Xe(o,a-1),u=s.stateAfter;if(u&&(!r||a+(u instanceof ut?u.lookAhead:0)<=o.modeFrontier))return a;var c=z(s.text,null,e.options.tabSize);(null==i||n>c)&&(i=a-1,n=c)}return i}(e,t,r),l=o>n.first&&Xe(n,o-1).stateAfter,a=l?ct.fromSaved(n,l,o):new ct(n,Ue(n.mode),o);return n.iter(o,t,function(r){pt(e,r.text,a);var n=a.line;r.stateAfter=n==t-1||n%5==0||n>=i.viewFrom&&nt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ct.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ct.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ct.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ct.fromSaved=function(e,t,r){return t instanceof ut?new ct(e,je(e.mode,t.state),r,t.lookAhead):new ct(e,je(e.mode,t),r)},ct.prototype.save=function(e){var t=!1!==e?je(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ut(t,this.maxLookAhead):t};var mt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function yt(e,t,r,n){var i,o,l=e.doc,a=l.mode,s=Xe(l,(t=at(l,t)).line),u=dt(e,t.line,r),c=new Ke(s.text,e.options.tabSize,u);for(n&&(o=[]);(n||c.pose.options.maxHighlightLength?(a=!1,l&&pt(e,t,n,f.pos),f.pos=t.length,s=null):s=bt(vt(r,f,n.state,h),o),h){var d=h[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!a||c!=s){for(;u=t:o.to>t);(n||(n=[])).push(new kt(l,o.from,a?null:o.to))}}return n}(r,i,l),s=function(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==l.type&&(!r||o.marker.insertLeft)){var a=null==o.from||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var b=0;bt)&&(!r||Wt(r,o.marker)<0)&&(r=o.marker)}return r}function It(e,t,r,n,i){var o=Xe(e,t),l=Ct&&o.markedSpans;if(l)for(var a=0;a=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?tt(u.to,r)>=0:tt(u.to,r)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?tt(u.from,n)<=0:tt(u.from,n)<0)))return!0}}}function zt(e){for(var t;t=Et(e);)e=t.find(-1,!0).line;return e}function Rt(e,t){var r=Xe(e,t),n=zt(r);return r==n?t:qe(n)}function Bt(e,t){if(t>e.lastLine())return t;var r,n=Xe(e,t);if(!Vt(e,n))return t;for(;r=Ft(n);)n=r.find(1,!0).line;return qe(n)+1}function Vt(e,t){var r=Ct&&t.markedSpans;if(r)for(var n=void 0,i=0;it.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)})}var Xt=function(e,t,r){this.text=e,At(this,t),this.height=r?r(this):1};function $t(e){e.parent=null,Nt(e)}Xt.prototype.lineNo=function(){return qe(this)},be(Xt);var _t={},Yt={};function qt(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Yt:_t;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function Zt(e,t){var r=O("span",null,null,s?"padding-right: .1px":null),n={pre:O("pre",[r],"TaysCodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;n.pos=0,n.addToken=Jt,Oe(e.display.measure)&&(l=ce(o,e.doc.direction))&&(n.addToken=er(n.addToken,l)),n.map=[],rr(o,n,ht(e,o,t!=e.display.externalMeasured&&qe(o))),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=E(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=E(o.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Ae(e.display.measure))),0==i?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var a=n.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return ge(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=E(n.pre.className,n.textClass||"")),n}function Qt(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Jt(e,t,r,n,i,o,s){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;iu&&f.from<=u);h++);if(f.to>=c)return e(r,n,i,o,l,a,s);e(r,n.slice(0,f.to-u),i,o,null,a,s),o=null,n=n.slice(f.to-u),u=f.to}}}function tr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function rr(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var l,a,s,u,c,f,h,d=i.length,p=0,g=1,v="",m=0;;){if(m==p){s=u=c=a="",h=null,f=null,m=1/0;for(var y=[],b=void 0,w=0;wp||C.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&m>x.to&&(m=x.to,u=""),C.className&&(s+=" "+C.className),C.css&&(a=(a?a+";":"")+C.css),C.startStyle&&x.from==p&&(c+=" "+C.startStyle),C.endStyle&&x.to==m&&(b||(b=[])).push(C.endStyle,x.to),C.title&&((h||(h={})).title=C.title),C.attributes)for(var k in C.attributes)(h||(h={}))[k]=C.attributes[k];C.collapsed&&(!f||Wt(f.marker,C)<0)&&(f=x)}else x.from>p&&m>x.from&&(m=x.from)}if(b)for(var S=0;S=d)break;for(var L=Math.min(d,m);;){if(v){var M=p+v.length;if(!f){var N=M>L?v.slice(0,L-p):v;t.addToken(t,N,l?l+s:s,c,p+N.length==m?u:"",a,h)}if(M>=L){v=v.slice(L-p),p=L;break}p=M,c=""}v=i.slice(o,o=r[g++]),l=qt(r[g++],t.cm.options)}}else for(var A=1;Ar)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Ar(e,t,r,n){return Wr(e,Dr(e,t),r,n)}function Or(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&t2&&o.push((s.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,r,n){var i,o=Fr(t.map,r,n),s=o.node,u=o.start,c=o.end,f=o.collapse;if(3==s.nodeType){for(var h=0;h<4;h++){for(;u&&ie(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c1}(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}(e.display.measure,i))}else{var d;u>0&&(f=n="right"),i=e.options.lineWrapping&&(d=s.getClientRects()).length>1?d["right"==n?d.length-1:0]:s.getBoundingClientRect()}if(l&&a<9&&!u&&(!i||!i.left&&!i.right)){var p=s.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+tn(e.display),top:p.top,bottom:p.bottom}:Er}for(var g=i.top-t.rect.top,v=i.bottom-t.rect.top,m=(g+v)/2,y=t.view.measure.heights,b=0;bt)&&(i=(o=s-a)-1,t>=s&&(l="right")),null!=i){if(n=e[u+2],a==s&&r==(n.insertLeft?"left":"right")&&(l=r),"left"==r&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[2+(u-=3)],l="left";if("right"==r&&i==s-a)for(;u=0&&(r=e[i]).left==r.right;i--);return r}function Ir(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=n.text.length?(s=n.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l("before"==u?s-1:s,"before"==u);function c(e,t,r){return l(r?e-1:e,1==a[t].level!=r)}var f=se(a,s,u),h=ae,d=c(s,f,"before"==u);return null!=h&&(d.other=c(s,h,"before"!=u)),d}function $r(e,t){var r=0;t=at(e.doc,t),e.options.lineWrapping||(r=tn(e.display)*t.ch);var n=Xe(e.doc,t.line),i=Gt(n)+Cr(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function _r(e,t,r,n,i){var o=et(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function Yr(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return _r(n.first,0,null,-1,-1);var i=Ze(n,r),o=n.first+n.size-1;if(i>o)return _r(n.first+n.size-1,Xe(n,o).text.length,null,1,1);t<0&&(t=0);for(var l=Xe(n,i);;){var a=Jr(e,l,i,t,r),s=Pt(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;l=Xe(n,i=u.line)}}function qr(e,t,r,n){n-=jr(t);var i=t.text.length,o=le(function(t){return Wr(e,r,t-1).bottom<=n},i,0);return{begin:o,end:i=le(function(t){return Wr(e,r,t).top>n},o,i)}}function Zr(e,t,r,n){return r||(r=Dr(e,t)),qr(e,t,r,Gr(e,t,Wr(e,r,n),"line").top)}function Qr(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function Jr(e,t,r,n,i){i-=Gt(t);var o=Dr(e,t),l=jr(t),a=0,s=t.text.length,u=!0,c=ce(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?function(e,t,r,n,i,o,l){var a=qr(e,t,n,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,h=0;h=u||d.to<=s)){var p=1!=d.level,g=Wr(e,n,p?Math.min(u,d.to)-1:Math.max(s,d.from)).right,v=gv)&&(c=d,f=v)}}c||(c=i[i.length-1]);c.fromu&&(c={from:c.from,to:u,level:c.level});return c}:function(e,t,r,n,i,o,l){var a=le(function(a){var s=i[a],u=1!=s.level;return Qr(Xr(e,et(r,u?s.to:s.from,u?"before":"after"),"line",t,n),o,l,!0)},0,i.length-1),s=i[a];if(a>0){var u=1!=s.level,c=Xr(e,et(r,u?s.from:s.to,u?"after":"before"),"line",t,n);Qr(c,o,l,!0)&&c.top>l&&(s=i[a-1])}return s})(e,t,r,o,c,n,i);a=(u=1!=f.level)?f.from:f.to-1,s=u?f.to:f.from-1}var h,d,p=null,g=null,v=le(function(t){var r=Wr(e,o,t);return r.top+=l,r.bottom+=l,!!Qr(r,n,i,!1)&&(r.top<=i&&r.left<=n&&(p=t,g=r),!0)},a,s),m=!1;if(g){var y=n-g.left=w.bottom?1:0}return _r(r,v=oe(t.text,v,1),d,m,n-h)}function en(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Hr){Hr=A("pre",null,"TaysCodeMirror-line-like");for(var t=0;t<49;++t)Hr.appendChild(document.createTextNode("x")),Hr.appendChild(A("br"));Hr.appendChild(document.createTextNode("x"))}N(e.measure,Hr);var r=Hr.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),M(e.measure),r||1}function tn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),r=A("pre",[t],"TaysCodeMirror-line-like");N(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function rn(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;r[a]=o.offsetLeft+o.clientLeft+i,n[a]=o.clientWidth}return{fixedPos:nn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function nn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function on(e){var t=en(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/tn(e.display)-3);return function(i){if(Vt(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l0&&(s=Xe(e.doc,u.line).text).length==u.ch){var c=z(s,s.length,e.options.tabSize)-s.length;u=et(u.line,Math.max(0,Math.round((o-Sr(e.display).left)/tn(e.display))-c))}return u}function sn(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;nt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ct&&Rt(e.doc,t)i.viewFrom?fn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)fn(e);else if(t<=i.viewFrom){var o=hn(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):fn(e)}else if(r>=i.viewTo){var l=hn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):fn(e)}else{var a=hn(e,t,t,-1),s=hn(e,r,r+n,1);a&&s?(i.view=i.view.slice(0,a.index).concat(ir(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=n):fn(e)}var u=i.externalMeasured;u&&(r=i.lineN&&t=n.viewTo)){var o=n.view[sn(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==B(l,r)&&l.push(r)}}}function fn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function hn(e,t,r,n){var i,o=sn(e,t),l=e.display.view;if(!Ct||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var a=e.display.viewFrom,s=0;s0){if(o==l.length-1)return null;i=a+l[o].size-t,o++}else i=a-t;t+=i,r+=i}for(;Rt(e.doc,r)!=r;){if(o==(n<0?0:l.length-1))return null;r+=n*l[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:r}}function dn(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo||a.to().linet||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),1==l.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}(g,r||0,null==n?h:n,function(e,t,i,f){var v="ltr"==i,m=d(e,v?"left":"right"),y=d(t-1,v?"right":"left"),b=null==r&&0==e,w=null==n&&t==h,x=0==f,C=!g||f==g.length-1;if(y.top-m.top<=3){var k=(u?w:b)&&C,S=(u?b:w)&&x?a:(v?m:y).left,T=k?s:(v?y:m).right;c(S,m.top,T-S,m.bottom)}else{var L,M,N,A;v?(L=u&&b&&x?a:m.left,M=u?s:p(e,i,"before"),N=u?a:p(t,i,"after"),A=u&&w&&C?s:y.right):(L=u?p(e,i,"before"):a,M=!u&&b&&x?s:m.right,N=!u&&w&&C?a:y.left,A=u?p(t,i,"after"):s),c(L,m.top,M-L,m.bottom),m.bottom0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function wn(e){e.state.focused||(e.display.input.focus(),Cn(e))}function xn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,kn(e))},100)}function Cn(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ge(e,"focus",e,t),e.state.focused=!0,H(e.display.wrapper,"TaysCodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),bn(e))}function kn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ge(e,"blur",e,t),e.state.focused=!1,L(e.display.wrapper,"TaysCodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Sn(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n.005||h<-.005)&&(Ye(i.line,s),Tn(i.line),i.rest))for(var d=0;de.display.sizerWidth){var p=Math.ceil(u/tn(e.display));p>e.display.maxLineLength&&(e.display.maxLineLength=p,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Tn(e){if(e.widgets)for(var t=0;t=l&&(o=Ze(t,Gt(Xe(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function Mn(e,t){var r=e.display,n=en(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=Mr(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+kr(r),s=t.topa-n;if(t.topi+o){var c=Math.min(t.top,(u?a:t.bottom)-o);c!=i&&(l.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft,h=Lr(e)-(e.options.fixedGutter?r.gutters.offsetWidth:0),d=t.right-t.left>h;return d&&(t.right=t.left+h),t.left<10?l.scrollLeft=0:t.lefth+f-3&&(l.scrollLeft=t.right+(d?0:10)-h),l}function Nn(e,t){null!=t&&(Dn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function An(e){Dn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function On(e,t,r){null==t&&null==r||Dn(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function Dn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Wn(e,$r(e,t.from),$r(e,t.to),t.margin))}function Wn(e,t,r,n){var i=Mn(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});On(e,i.scrollLeft,i.scrollTop)}function Hn(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||oi(e,{top:t}),En(e,t,!0),r&&oi(e),ei(e,100))}function En(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Fn(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,si(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Pn(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+kr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Tr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var In=function(e,t,r){this.cm=r;var n=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"TaysCodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"TaysCodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),he(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),he(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,l&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};In.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},In.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},In.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},In.prototype.zeroWidthHack=function(){var e=y&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},In.prototype.enableZeroWidthBar=function(e,t,r){e.style.pointerEvents="auto",t.set(1e3,function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,n)})},In.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var zn=function(){};function Rn(e,t){t||(t=Pn(e));var r=e.display.barWidth,n=e.display.barHeight;Bn(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&Sn(e),Bn(e,Pn(e)),r=e.display.barWidth,n=e.display.barHeight}function Bn(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}zn.prototype.update=function(){return{bottom:0,right:0}},zn.prototype.setScrollLeft=function(){},zn.prototype.setScrollTop=function(){},zn.prototype.clear=function(){};var Vn={native:In,null:zn};function jn(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Vn[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),he(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){"horizontal"==r?Fn(e,t):Hn(e,t)},e),e.display.scrollbars.addClass&&H(e.display.wrapper,e.display.scrollbars.addClass)}var Gn=0;function Un(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Gn},t=e.curOp,or?or.ops.push(t):t.ownsGroup=or={ops:[t],delayedCallbacks:[]}}function Kn(e){var t=e.curOp;t&&function(e,t){var r=e.ownsGroup;if(r)try{!function(e){var t=e.delayedCallbacks,r=0;do{for(;r=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ri(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function $n(e){var t=e.cm,r=t.display;e.updatedDisplay&&Sn(t),e.barMeasure=Pn(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ar(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Tr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Lr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function _n(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=A("div","",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Cr(e.display))+"px;\n height: "+(t.bottom-t.top+Tr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==(t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?et(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var l=!1,a=Xr(e,t),s=r&&r!=t?Xr(e,r):a,u=Mn(e,i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-n,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+n}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(Hn(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(l=!0)),null!=u.scrollLeft&&(Fn(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(l=!0)),!l)break}return i}(t,at(n,e.scrollToPos.from),at(n,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var l=0;l=e.display.viewTo)){var r=+new Date+e.options.workTime,n=dt(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(n.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?je(t.mode,n.state):null,s=ft(e,o,n,!0);a&&(n.state=a),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!l||l.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),h=0;!f&&hr)return ei(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&qn(e,function(){for(var t=0;t=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==dn(e))return!1;ui(e)&&(fn(e),t.dims=rn(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFroml&&r.viewTo-l<20&&(l=Math.min(i,r.viewTo)),Ct&&(o=Rt(e.doc,o),l=Bt(e.doc,l));var a=o!=r.viewFrom||l!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;!function(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=ir(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=ir(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,sn(e,r)))),n.viewTo=r}(e,o,l),r.viewOffset=Gt(Xe(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var u=dn(e);if(!a&&0==u&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=W();if(!t||!D(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&D(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}(e);return u>4&&(r.lineDiv.style.display="none"),function(e,t,r){var n=e.display,i=e.options.lineNumbers,o=n.lineDiv,l=o.firstChild;function a(t){var r=t.nextSibling;return s&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var u=n.view,c=n.viewFrom,f=0;f-1&&(d=!1),ur(e,h,c,r)),d&&(M(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(Je(e.options,c)))),l=h.node.nextSibling}else{var p=vr(e,h,c,r);o.insertBefore(p,l)}c+=h.size}for(;l;)l=a(l)}(e,r.updateLineNumbers,t.dims),u>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,function(e){if(e&&e.activeElt&&e.activeElt!=W()&&(e.activeElt.focus(),e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),r=document.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),t.removeAllRanges(),t.addRange(r),t.extend(e.focusNode,e.focusOffset)}}(c),M(r.cursorDiv),M(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,a&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,ei(e,400)),r.updateLineNumbers=null,!0}function ii(e,t){for(var r=t.viewport,n=!0;(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Lr(e)||(r&&null!=r.top&&(r={top:Math.min(e.doc.height+kr(e.display)-Mr(e),r.top)}),t.visible=Ln(e.display,e.doc,r),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&ni(e,t);n=!1){Sn(e);var i=Pn(e);pn(e),Rn(e,i),ai(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function oi(e,t){var r=new ri(e,t);if(ni(e,r)){Sn(e),ii(e,r);var n=Pn(e);pn(e),Rn(e,n),ai(e,n),r.finish()}}function li(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function ai(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Tr(e)+"px"}function si(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=nn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",l=0;la.clientWidth,c=a.scrollHeight>a.clientHeight;if(i&&u||o&&c){if(o&&y&&s)e:for(var h=t.target,d=l.view;h!=a;h=h.parentNode)for(var p=0;p=0&&tt(e,n.to())<=0)return r}return-1};var wi=function(e,t){this.anchor=e,this.head=t};function xi(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(e,t){return tt(e.from(),t.from())}),r=B(t,i);for(var o=1;o0:s>=0){var u=ot(a.from(),l.from()),c=it(a.to(),l.to()),f=a.empty()?l.from()==l.head:a.from()==a.head;o<=r&&--r,t.splice(--o,2,new wi(f?c:u,f?u:c))}}return new bi(t,r)}function Ci(e,t){return new bi([new wi(e,t||e)],0)}function ki(e){return e.text?et(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Si(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return ki(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=ki(t).ch-t.to.ch),et(r,n)}function Ti(e,t){for(var r=[],n=0;n1&&e.remove(a.line+1,p-1),e.insert(a.line+1,m)}ar(e,"change",e,t)}function Di(e,t,r){!function e(n,i,o){if(n.linked)for(var l=0;la-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Pi(e.done),Y(e.done)):e.done.length&&!Y(e.done).ranges?Y(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Y(e.done)):void 0}(i,i.lastOp==n)))l=Y(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,l.to)?l.to=ki(t):o.changes.push(Fi(e,t));else{var s=Y(i.done);for(s&&s.ranges||Ri(e.sel,i.done),o={changes:[Fi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||ge(e,"historyAdded")}function zi(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,r,n){var i=t.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,Y(i.done),t))?i.done[i.done.length-1]=t:Ri(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&!1!==n.clearRedo&&Pi(i.undone)}function Ri(e,t){var r=Y(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Bi(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=r.markedSpans),++o})}function Vi(e){if(!e)return null;for(var t,r=0;r-1&&(Y(a)[f]=u[f],delete u[f])}}}return n}function Ui(e,t,r,n){if(n){var i=e.anchor;if(r){var o=tt(t,i)<0;o!=tt(r,i)<0?(i=t,t=r):o!=tt(t,r)<0&&(t=r)}return new wi(i,t)}return new wi(r||t,t)}function Ki(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),qi(e,new bi([Ui(e.sel.primary(),t,r,i)],0),n)}function Xi(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(i&&(ge(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!s.atomic)continue;if(r){var f=s.find(n<0?1:-1),h=void 0;if((n<0?c:u)&&(f=no(e,f,-n,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(h=tt(f,r))&&(n<0?h<0:h>0))return to(e,f,t,n,i)}var d=s.find(n<0?-1:1);return(n<0?u:c)&&(d=no(e,d,n,d.line==t.line?o:null)),d?to(e,d,t,n,i):null}}return t}function ro(e,t,r,n,i){var o=n||1,l=to(e,t,r,o,i)||!i&&to(e,t,r,o,!0)||to(e,t,r,-o,i)||!i&&to(e,t,r,-o,!0);return l||(e.cantEdit=!0,et(e.first,0))}function no(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?at(e,et(t.line-1)):null:r>0&&t.ch==(n||Xe(e,t.line)).text.length?t.line0)){var c=[s,1],f=tt(u.from,a.from),h=tt(u.to,a.to);(f<0||!l.inclusiveLeft&&!f)&&c.push({from:u.from,to:a.from}),(h>0||!l.inclusiveRight&&!h)&&c.push({from:a.to,to:u.to}),i.splice.apply(i,c),s+=c.length-3}}return i}(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)ao(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else ao(e,t)}}function ao(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var r=Ti(e,t);Ii(e,t,r,e.cm?e.cm.curOp.id:NaN),co(e,t,r,Lt(e,t));var n=[];Di(e,function(e,r){r||-1!=B(n,e.history)||(go(e.history,t),n.push(e.history)),co(e,t,null,Lt(e,t))})}}function so(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var i,o=e.history,l=e.sel,a="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,u=0;u=0;--d){var p=h(d);if(p)return p.v}}}}function uo(e,t){if(0!=t&&(e.first+=t,e.sel=new bi(q(e.sel.ranges,function(e){return new wi(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){un(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())){if(t.from.lineo&&(t={from:t.from,to:et(o,Xe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=$e(e,t.from,t.to),r||(r=Ti(e,t)),e.cm?function(e,t,r){var n=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=qe(zt(Xe(n,o.line))),n.iter(s,l.line+1,function(e){if(e==i.maxLine)return a=!0,!0}));n.sel.contains(t.from,t.to)>-1&&me(e);Oi(n,t,r,on(e)),e.options.lineWrapping||(n.iter(s,o.line+t.text.length,function(e){var t=Ut(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=Xe(e,n).stateAfter;if(i&&(!(i instanceof ut)||n+i.lookAhead1||!(this.children[0]instanceof mo))){var a=[];this.collapse(a),this.children=[new mo(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=i.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n0||0==l&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=O("span",[o.replacedWith],"TaysCodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(It(e,t.line,t,r,o)||t.line!=r.line&&It(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ct=!0}o.addToHistory&&Ii(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var a,s=t.line,u=e.cm;if(e.iter(s,r.line+1,function(e){u&&o.collapsed&&!u.options.lineWrapping&&zt(e)==u.display.maxLine&&(a=!0),o.collapsed&&s!=t.line&&Ye(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new kt(o,s==t.line?t.ch:null,s==r.line?r.ch:null)),++s}),o.collapsed&&e.iter(t.line,r.line+1,function(t){Vt(e,t)&&Ye(t,0)}),o.clearOnEnter&&he(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(xt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++xo,o.atomic=!0),u){if(a&&(u.curOp.updateMaxLine=!0),o.collapsed)un(u,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=r.line;c++)cn(u,c,"text");o.atomic&&Ji(u.doc),ar(u,"markerAdded",u,o)}return o}Co.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Un(e),ye(this,"clear")){var r=this.find();r&&ar(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&un(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ji(e.doc)),e&&ar(e,"markerCleared",e,this,n,i),t&&Kn(e),this.parent&&this.parent.clear()}},Co.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;s--)lo(this,n[s]);a?Yi(this,a):this.cm&&An(this.cm)}),undo:Jn(function(){so(this,"undo")}),redo:Jn(function(){so(this,"redo")}),undoSelection:Jn(function(){so(this,"undo",!0)}),redoSelection:Jn(function(){so(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=at(this,e),t=at(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||r&&!r(s.marker)||n.push(s.marker.parent||s.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=o,++r}),at(this,et(r,t))},indexFromPos:function(e){var t=(e=at(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var f=e.dataTransfer.getData("Text");if(f){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Zi(t.doc,Ci(r,r)),h)for(var d=0;d=0;t--)fo(e.doc,"",n[t].from,n[t].to,"+delete");An(e)})}function Yo(e,t,r){var n=oe(e.text,t+r,r);return n<0||n>e.text.length?null:n}function qo(e,t,r){var n=Yo(e,t.ch,r);return null==n?null:new et(t.line,n,r<0?"after":"before")}function Zo(e,t,r,n,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ce(r,t.doc.direction);if(o){var l,a=i<0?Y(o):o[0],s=i<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var u=Dr(t,r);l=i<0?r.text.length-1:0;var c=Wr(t,u,l).top;l=le(function(e){return Wr(t,u,e).top==c},i<0==(1==a.level)?a.from:a.to-1,l),"before"==s&&(l=Yo(r,l,1))}else l=i<0?a.to:a.from;return new et(n,l,s)}}return new et(n,i<0?r.text.length:0,i<0?"before":"after")}Bo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Bo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Bo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Bo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Bo.default=y?Bo.macDefault:Bo.pcDefault;var Qo={selectAll:io,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(e){return _o(e,function(t){if(t.empty()){var r=Xe(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)i=new et(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),et(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=Xe(e.doc,i.line-1).text;l&&(i=new et(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),et(i.line-1,l.length-1),i,"+transpose"))}r.push(new wi(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return qn(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n-1&&(tt((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(tt(i.to(),t)>0||t.xRel<0)?function(e,t,r,n){var i=e.display,o=!1,u=Zn(e,function(t){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,pe(i.wrapper.ownerDocument,"mouseup",u),pe(i.wrapper.ownerDocument,"mousemove",c),pe(i.scroller,"dragstart",f),pe(i.scroller,"drop",u),o||(we(t),n.addNew||Ki(e.doc,r,null,null,n.extend),s||l&&9==a?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};s&&(i.scroller.draggable=!0);e.state.draggingText=u,u.copy=!n.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop();he(i.wrapper.ownerDocument,"mouseup",u),he(i.wrapper.ownerDocument,"mousemove",c),he(i.scroller,"dragstart",f),he(i.scroller,"drop",u),xn(e),setTimeout(function(){return i.input.focus()},20)}(e,n,t,o):function(e,t,r,n){var i=e.display,o=e.doc;we(t);var l,a,s=o.sel,u=s.ranges;n.addNew&&!n.extend?(a=o.sel.contains(r),l=a>-1?u[a]:new wi(r,r)):(l=o.sel.primary(),a=o.sel.primIndex);if("rectangle"==n.unit)n.addNew||(l=new wi(r,r)),r=an(e,t,!0,!0),a=-1;else{var c=pl(e,r,n.unit);l=n.extend?Ui(l,c.anchor,c.head,n.extend):c}n.addNew?-1==a?(a=u.length,qi(o,xi(e,u.concat([l]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&"char"==n.unit&&!n.extend?(qi(o,xi(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):$i(o,a,l,U):(a=0,qi(o,new bi([l],0),U),s=o.sel);var f=r;function h(t){if(0!=tt(f,t))if(f=t,"rectangle"==n.unit){for(var i=[],u=e.options.tabSize,c=z(Xe(o,r.line).text,r.ch,u),h=z(Xe(o,t.line).text,t.ch,u),d=Math.min(c,h),p=Math.max(c,h),g=Math.min(r.line,t.line),v=Math.min(e.lastLine(),Math.max(r.line,t.line));g<=v;g++){var m=Xe(o,g).text,y=X(m,d,u);d==p?i.push(new wi(et(g,y),et(g,y))):m.length>y&&i.push(new wi(et(g,y),et(g,X(m,p,u))))}i.length||i.push(new wi(r,r)),qi(o,xi(e,s.ranges.slice(0,a).concat(i),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=l,x=pl(e,t,n.unit),C=w.anchor;tt(x.anchor,C)>0?(b=x.head,C=ot(w.from(),x.anchor)):(b=x.anchor,C=it(w.to(),x.head));var k=s.ranges.slice(0);k[a]=function(e,t){var r=t.anchor,n=t.head,i=Xe(e.doc,r.line);if(0==tt(r,n)&&r.sticky==n.sticky)return t;var o=ce(i);if(!o)return t;var l=se(o,r.ch,r.sticky),a=o[l];if(a.from!=r.ch&&a.to!=r.ch)return t;var s,u=l+(a.from==r.ch==(1!=a.level)?0:1);if(0==u||u==o.length)return t;if(n.line!=r.line)s=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=se(o,n.ch,n.sticky),f=c-l||(n.ch-r.ch)*(1==a.level?-1:1);s=c==u-1||c==u?f<0:f>0}var h=o[u+(s?-1:0)],d=s==(1==h.level),p=d?h.from:h.to,g=d?"after":"before";return r.ch==p&&r.sticky==g?t:new wi(new et(r.line,p,g),n)}(e,new wi(at(o,C),b)),qi(o,xi(e,k,a),U)}}var d=i.wrapper.getBoundingClientRect(),p=0;function g(t){e.state.selectingText=!1,p=1/0,t&&(we(t),i.input.focus()),pe(i.wrapper.ownerDocument,"mousemove",v),pe(i.wrapper.ownerDocument,"mouseup",m),o.history.lastSelOrigin=null}var v=Zn(e,function(t){0!==t.buttons&&Te(t)?function t(r){var l=++p;var a=an(e,r,!0,"rectangle"==n.unit);if(!a)return;if(0!=tt(a,f)){e.curOp.focus=W(),h(a);var s=Ln(i,o);(a.line>=s.to||a.lined.bottom?20:0;u&&setTimeout(Zn(e,function(){p==l&&(i.scroller.scrollTop+=u,t(r))}),50)}}(t):g(t)}),m=Zn(e,g);e.state.selectingText=m,he(i.wrapper.ownerDocument,"mousemove",v),he(i.wrapper.ownerDocument,"mouseup",m)}(e,n,t,o)}(t,n,o,e):Se(e)==r.scroller&&we(e):2==i?(n&&Ki(t.doc,n),setTimeout(function(){return r.input.focus()},20)):3==i&&(k?t.display.input.onContextMenu(e):xn(t)))}}function pl(e,t,r){if("char"==r)return new wi(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new wi(et(t.line,0),at(e.doc,et(t.line+1,0)));var n=r(e,t);return new wi(n.from,n.to)}function gl(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&we(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!ye(e,r))return Ce(t);o-=a.top-l.viewOffset;for(var s=0;s=i)return ge(e,r,e,Ze(e.doc,o),e.display.gutterSpecs[s].className,t),Ce(t)}}function vl(e,t){return gl(e,t,"gutterClick",!0)}function ml(e,t){xr(e.display,t)||function(e,t){if(!ye(e,"gutterContextMenu"))return!1;return gl(e,t,"gutterContextMenu",!1)}(e,t)||ve(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function yl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Rr(e)}hl.prototype.compare=function(e,t,r){return this.time+400>e&&0==tt(t,this.pos)&&r==this.button};var bl={toString:function(){return"TaysCodeMirror.Init"}},wl={},xl={};function Cl(e,t,r){if(!t!=!(r&&r!=bl)){var n=e.display.dragFunctions,i=t?he:pe;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function kl(e){e.options.lineWrapping?(H(e.display.wrapper,"TaysCodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(L(e.display.wrapper,"TaysCodeMirror-wrap"),Kt(e)),ln(e),un(e),Rr(e),setTimeout(function(){return Rn(e)},100)}function Sl(e,t){var r=this;if(!(this instanceof Sl))return new Sl(e,t);this.options=t=t?I(t):{},I(wl,t,!1);var n=t.value;"string"==typeof n?n=new No(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Sl.inputStyles[t.inputStyle](this),o=this.display=new di(e,n,i,t);for(var u in o.wrapper.TaysCodeMirror=this,yl(this),t.lineWrapping&&(this.display.wrapper.className+=" TaysCodeMirror-wrap"),jn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},t.autofocus&&!m&&o.input.focus(),l&&a<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(e){var t=e.display;he(t.scroller,"mousedown",Zn(e,dl)),he(t.scroller,"dblclick",l&&a<11?Zn(e,function(t){if(!ve(e,t)){var r=an(e,t);if(r&&!vl(e,t)&&!xr(e.display,t)){we(t);var n=e.findWordAt(r);Ki(e.doc,n.anchor,n.head)}}}):function(t){return ve(e,t)||we(t)});he(t.scroller,"contextmenu",function(t){return ml(e,t)}),he(t.input.getField(),"contextmenu",function(r){t.scroller.contains(r.target)||ml(e,r)});var r,n={end:0};function i(){t.activeTouch&&(r=setTimeout(function(){return t.activeTouch=null},1e3),(n=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return r*r+n*n>400}he(t.scroller,"touchstart",function(i){if(!ve(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!vl(e,i)){t.input.ensurePolled(),clearTimeout(r);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-n.end<=300?n:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),he(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),he(t.scroller,"touchend",function(r){var n=t.activeTouch;if(n&&!xr(t,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var l,a=e.coordsChar(t.activeTouch,"page");l=!n.prev||o(n,n.prev)?new wi(a,a):!n.prev.prev||o(n,n.prev.prev)?e.findWordAt(a):new wi(et(a.line,0),at(e.doc,et(a.line+1,0))),e.setSelection(l.anchor,l.head),e.focus(),we(r)}i()}),he(t.scroller,"touchcancel",i),he(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Hn(e,t.scroller.scrollTop),Fn(e,t.scroller.scrollLeft,!0),ge(e,"scroll",e))}),he(t.scroller,"mousewheel",function(t){return yi(e,t)}),he(t.scroller,"DOMMouseScroll",function(t){return yi(e,t)}),he(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){ve(e,t)||ke(t)},over:function(t){ve(e,t)||(!function(e,t){var r=an(e,t);if(r){var n=document.createDocumentFragment();vn(e,r,n),e.display.dragCursor||(e.display.dragCursor=A("div",null,"TaysCodeMirror-cursors TaysCodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),N(e.display.dragCursor,n)}}(e,t),ke(t))},start:function(t){return function(e,t){if(l&&(!e.state.draggingText||+new Date-Ao<100))ke(t);else if(!ve(e,t)&&!xr(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var r=A("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),f&&r.parentNode.removeChild(r)}}(e,t)},drop:Zn(e,Oo),leave:function(t){ve(e,t)||Do(e)}};var s=t.input.getField();he(s,"keyup",function(t){return sl.call(e,t)}),he(s,"keydown",Zn(e,al)),he(s,"keypress",Zn(e,ul)),he(s,"focus",function(t){return Cn(e,t)}),he(s,"blur",function(t){return kn(e,t)})}(this),Eo(),Un(this),this.curOp.forceUpdate=!0,Wi(this,n),t.autofocus&&!m||this.hasFocus()?setTimeout(P(Cn,this),20):kn(this),xl)xl.hasOwnProperty(u)&&xl[u](r,t[u],bl);ui(this),t.finishInit&&t.finishInit(this);for(var c=0;c150)){if(!n)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>o.first?z(Xe(o,t-1).text,null,l):0:"add"==r?u=s+e.options.indentUnit:"subtract"==r?u=s-e.options.indentUnit:"number"==typeof r&&(u=s+r),u=Math.max(0,u);var f="",h=0;if(e.options.indentWithTabs)for(var d=Math.floor(u/l);d;--d)h+=l,f+="\t";if(hl,s=We(t),u=null;if(a&&n.ranges.length>1)if(Ml&&Ml.text.join("\n")==t){if(n.ranges.length%Ml.text.length==0){u=[];for(var c=0;c=0;h--){var d=n.ranges[h],p=d.from(),g=d.to();d.empty()&&(r&&r>0?p=et(p.line,p.ch-r):e.state.overwrite&&!a?g=et(g.line,Math.min(Xe(o,g.line).text.length,g.ch+Y(s).length)):a&&Ml&&Ml.lineWise&&Ml.text.join("\n")==t&&(p=g=et(p.line,0)));var v={from:p,to:g,text:u?u[h%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};lo(e.doc,v),ar(e,"inputRead",e,v)}t&&!a&&Dl(e,t),An(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ol(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||qn(t,function(){return Al(t,r,0,null,"paste")}),!0}function Dl(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=Ll(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Xe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Ll(e,i.head.line,"smart"));l&&ar(e,"electricInput",e,i.head.line)}}}function Wl(e){for(var t=[],r=[],n=0;n=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=se(i,r.ch,r.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(n>0?l.to>r.ch:l.from=l.from&&h>=c.begin)){var d=f?"before":"after";return new et(r.line,h,d)}}var p=function(e,t,n){for(var o=function(e,t){return t?new et(r.line,s(e,1),"before"):new et(r.line,e,"after")};e>=0&&e0==(1!=l.level),u=a?n.begin:s(n.end,-1);if(l.from<=u&&u0?c.end:s(c.begin,-1);return null==v||n>0&&v==t.text.length||!(g=p(n>0?0:i.length-1,n,u(v)))?null:g}(e.cm,a,t,r):qo(a,t,r))){if(n||(l=t.line+s)=e.first+e.size||(t=new et(l,t.ch,t.sticky),!(a=Xe(e,l))))return!1;t=Zo(i,e.cm,a,t.line,s)}else t=o;return!0}if("char"==n)u();else if("column"==n)u(!0);else if("word"==n||"group"==n)for(var c=null,f="group"==n,h=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(r<0)||u(!d);d=!1){var p=a.text.charAt(t.ch)||"\n",g=te(p,h)?"w":f&&"\n"==p?"n":!f||/\s/.test(p)?null:"p";if(!f||d||g||(g="s"),c&&c!=g){r<0&&(r=1,u(),t.sticky="after");break}if(g&&(c=g),r>0&&!u(!d))break}var v=ro(e,t,o,l,!0);return rt(o,v)&&(v.hitSide=!0),v}function Pl(e,t,r,n){var i,o,l=e.doc,a=t.left;if("page"==n){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*en(e.display),3);i=(r>0?t.bottom:t.top)+r*u}else"line"==n&&(i=r>0?t.bottom+3:t.top-3);for(;(o=Yr(e,a,i)).outside;){if(r<0?i<=0:i>=l.height){o.hitSide=!0;break}i+=5*r}return o}var Il=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function zl(e,t){var r=Or(e,t.line);if(!r||r.hidden)return null;var n=Xe(e.doc,t.line),i=Nr(r,n,t.line),o=ce(n,e.doc.direction),l="left";o&&(l=se(o,t.ch)%2?"right":"left");var a=Fr(i.map,t.ch,l);return a.offset="right"==a.collapse?a.end:a.start,a}function Rl(e,t){return t&&(e.bad=!0),e}function Bl(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return Rl(e.clipPos(et(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&zl(t,i)||{node:s[0].measure.map[2],offset:0},c=o.linen.firstLine()&&(l=et(l.line-1,Xe(n.doc,l.line-1).length)),a.ch==Xe(n.doc,a.line).text.length&&a.linei.viewTo-1)return!1;l.line==i.viewFrom||0==(e=sn(n,l.line))?(t=qe(i.view[0].line),r=i.view[0].node):(t=qe(i.view[e].line),r=i.view[e-1].node.nextSibling);var s,u,c=sn(n,a.line);if(c==i.view.length-1?(s=i.viewTo-1,u=i.lineDiv.lastChild):(s=qe(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!r)return!1;for(var f=n.doc.splitLines(function(e,t,r,n,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(){l&&(o+=a,s&&(o+=a),l=s=!1)}function c(e){e&&(u(),o+=e)}function f(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void c(r);var o,h=t.getAttribute("cm-marker");if(h){var d=e.findMarks(et(n,0),et(i+1,0),(v=+h,function(e){return e.id==v}));return void(d.length&&(o=d[0].find(0))&&c($e(e.doc,o.from,o.to).join(a)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&u();for(var g=0;g1&&h.length>1;)if(Y(f)==Y(h))f.pop(),h.pop(),s--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),t++}for(var d=0,p=0,g=f[0],v=h[0],m=Math.min(g.length,v.length);dl.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)d--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var x=et(t,d),C=et(s,h.length?Y(h).length-p:0);return f.length>1||f[0]||tt(x,C)?(fo(n.doc,f,x,C,"+input"),!0):void 0},Il.prototype.ensurePolled=function(){this.forceCompositionEnd()},Il.prototype.reset=function(){this.forceCompositionEnd()},Il.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Il.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Il.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||qn(this.cm,function(){return un(e.cm)})},Il.prototype.setUneditable=function(e){e.contentEditable="false"},Il.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Zn(this.cm,Al)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Il.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Il.prototype.onContextMenu=function(){},Il.prototype.resetPosition=function(){},Il.prototype.needsContentAttribute=!0;var jl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};jl.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ve(n,e)){if(n.somethingSelected())Nl({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var t=Wl(n);Nl({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,G):(r.prevInput="",i.value=t.text.join("\n"),F(i))}"cut"==e.type&&(n.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),he(i,"input",function(){l&&a>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),he(i,"paste",function(e){ve(n,e)||Ol(e,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())}),he(i,"cut",o),he(i,"copy",o),he(e.scroller,"paste",function(t){if(!xr(e,t)&&!ve(n,t)){if(!i.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),he(e.lineSpace,"selectstart",function(t){xr(e,t)||we(t)}),he(i,"compositionstart",function(){var e=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"TaysCodeMirror-composing"})}}),he(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},jl.prototype.createField=function(e){this.wrapper=El(),this.textarea=this.wrapper.firstChild},jl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=gn(e);if(e.options.moveInputWithCursor){var i=Xr(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return n},jl.prototype.showSelection=function(e){var t=this.cm.display;N(t.cursorDiv,e.cursors),N(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},jl.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&F(this.textarea),l&&a>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",l&&a>=9&&(this.hasSelection=null))}},jl.prototype.getField=function(){return this.textarea},jl.prototype.supportsTouch=function(){return!1},jl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||W()!=this.textarea))try{this.textarea.focus()}catch(e){}},jl.prototype.blur=function(){this.textarea.blur()},jl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},jl.prototype.receivedFocus=function(){this.slowPoll()},jl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},jl.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))})},jl.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||He(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(l&&a>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||n||(n=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,u=Math.min(n.length,i.length);s1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"TaysCodeMirror-composing"}))}),!0},jl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},jl.prototype.onKeyPress=function(){l&&a>=9&&(this.hasSelection=null),this.fastPoll()},jl.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=an(r,e),u=n.scroller.scrollTop;if(o&&!f){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(o)&&Zn(r,qi)(r.doc,Ci(o),G);var c,h=i.style.cssText,d=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(l?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(c=window.scrollY),n.input.focus(),s&&window.scrollTo(null,c),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),l&&a>=9&&v(),k){ke(e);var g=function(){pe(window,"mouseup",g),setTimeout(m,20)};he(window,"mouseup",g)}else setTimeout(m,50)}function v(){if(null!=i.selectionStart){var e=r.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,n.selForContextMenu=r.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=h,l&&a<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=u),null!=i.selectionStart)){(!l||l&&a<9)&&v();var e=0,o=function(){n.selForContextMenu==r.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?Zn(r,io)(r):e++<10?n.detectingSelectAll=setTimeout(o,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(o,200)}}},jl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},jl.prototype.setUneditable=function(){},jl.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function r(r,n,i,o){e.defaults[r]=n,i&&(t[r]=o?function(e,t,r){r!=bl&&i(e,t,r)}:i)}e.defineOption=r,e.Init=bl,r("value","",function(e,t){return e.setValue(t)},!0),r("mode",null,function(e,t){e.doc.modeOption=t,Mi(e)},!0),r("indentUnit",2,Mi,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(e){Ni(e),Rr(e),un(e)},!0),r("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,r.push(et(n,o))}n++});for(var i=r.length-1;i>=0;i--)fo(e.doc,t,r[i],et(r[i].line,r[i].ch+t.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=bl&&e.refresh()}),r("specialCharPlaceholder",Qt,function(e){return e.refresh()},!0),r("electricChars",!0),r("inputStyle",m?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),r("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),r("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),r("rtlMoveVisually",!w),r("wholeLineUpdateBefore",!0),r("theme","default",function(e){yl(e),hi(e)},!0),r("keyMap","default",function(e,t,r){var n=$o(t),i=r!=bl&&$o(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,kl,!0),r("gutters",[],function(e,t){e.display.gutterSpecs=ci(t,e.options.lineNumbers),hi(e)},!0),r("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?nn(e.display)+"px":"0",e.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(e){return Rn(e)},!0),r("scrollbarStyle","native",function(e){jn(e),Rn(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),r("lineNumbers",!1,function(e,t){e.display.gutterSpecs=ci(e.options.gutters,t),hi(e)},!0),r("firstLineNumber",1,hi,!0),r("lineNumberFormatter",function(e){return e},hi,!0),r("showCursorWhenSelecting",!1,pn,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(e,t){"nocursor"==t&&(kn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),r("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),r("dragDrop",!0,Cl),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,pn,!0),r("singleCursorHeightPerLine",!0,pn,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,Ni,!0),r("addModeClass",!1,Ni,!0),r("pollInterval",100),r("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),r("historyEventDelay",1250),r("viewportMargin",10,function(e){return e.refresh()},!0),r("maxHighlightLength",1e4,Ni,!0),r("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),r("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),r("autofocus",null),r("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),r("phrases",null)}(Sl),function(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,r){var n=this.options,i=n[e];n[e]==r&&"mode"!=e||(n[e]=r,t.hasOwnProperty(e)&&Zn(this,t[e])(this,r,i),ge(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"]($o(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;rr&&(Ll(this,i.head.line,e,!0),r=i.head.line,n==this.doc.sel.primIndex&&An(this));else{var o=i.from(),l=i.to(),a=Math.max(r,o.line);r=Math.min(this.lastLine(),l.line-(l.ch?0:1))+1;for(var s=a;s0&&$i(this.doc,n,new wi(o,u[n].to()),G)}}}),getTokenAt:function(e,t){return yt(this,e,t)},getLineTokens:function(e,t){return yt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=at(this.doc,e);var t,r=ht(this,Xe(this.doc,e.line)),n=0,i=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var l=n+i>>1;if((l?r[2*l-1]:0)>=o)i=l;else{if(!(r[2*l+1]o&&(e=o,i=!0),n=Xe(this.doc,e)}else n=e;return Gr(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-Gt(n):0)},defaultTextHeight:function(){return en(this.display)},defaultCharWidth:function(){return tn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var o,l,a,s=this.display,u=(e=Xr(this,at(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==n)u=e.top;else if("above"==n||"near"==n){var f=Math.max(s.wrapper.clientHeight,this.doc.height),h=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(u=e.bottom),c+t.offsetWidth>h&&(c=h-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),r&&(o=this,l={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(a=Mn(o,l)).scrollTop&&Hn(o,a.scrollTop),null!=a.scrollLeft&&Fn(o,a.scrollLeft))},triggerOnKeyDown:Qn(al),triggerOnKeyPress:Qn(ul),triggerOnKeyUp:sl,triggerOnMouseDown:Qn(dl),execCommand:function(e){if(Qo.hasOwnProperty(e))return Qo[e].call(null,this)},triggerElectric:Qn(function(e){Dl(this,e)}),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=at(this.doc,e),l=0;l0&&l(t.charAt(r-1));)--r;for(;n.5)&&ln(this),ge(this,"refresh",this)}),swapDoc:Qn(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Wi(this,e),Rr(this),this.display.input.reset(),On(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ar(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},be(e),e.registerHelper=function(t,n,i){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=i},e.registerGlobalHelper=function(t,n,i,o){e.registerHelper(t,n,o),r[t]._global.push({pred:i,val:o})}}(Sl);var Gl="iter insert remove copy getEditor constructor".split(" ");for(var Ul in No.prototype)No.prototype.hasOwnProperty(Ul)&&B(Gl,Ul)<0&&(Sl.prototype[Ul]=function(e){return function(){return e.apply(this.doc,arguments)}}(No.prototype[Ul]));return be(No),Sl.inputStyles={textarea:jl,contenteditable:Il},Sl.defineMode=function(e){Sl.defaults.mode||"null"==e||(Sl.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Pe[e]=t}.apply(this,arguments)},Sl.defineMIME=function(e,t){Ie[e]=t},Sl.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Sl.defineMIME("text/plain","null"),Sl.defineExtension=function(e,t){Sl.prototype[e]=t},Sl.defineDocExtension=function(e,t){No.prototype[e]=t},Sl.fromTextArea=function(e,t){if((t=t?I(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=W();t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}function n(){e.value=a.getValue()}var i;if(e.form&&(he(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=l}}catch(e){}}t.finishInit=function(r){r.save=n,r.getTextArea=function(){return e},r.toTextArea=function(){r.toTextArea=isNaN,n(),e.parentNode.removeChild(r.getWrapperElement()),e.style.display="",e.form&&(pe(e.form,"submit",n),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var a=Sl(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return a},function(e){e.off=pe,e.on=he,e.wheelEventPixels=mi,e.Doc=No,e.splitLines=We,e.countColumn=z,e.findColumn=X,e.isWordChar=ee,e.Pass=j,e.signal=ge,e.Line=Xt,e.changeEnd=ki,e.scrollbarModel=Vn,e.Pos=et,e.cmpPos=tt,e.modes=Pe,e.mimeModes=Ie,e.resolveMode=ze,e.getMode=Re,e.modeExtensions=Be,e.extendMode=Ve,e.copyState=je,e.startState=Ue,e.innerMode=Ge,e.commands=Qo,e.keyMap=Bo,e.keyName=Xo,e.isModifierKey=Uo,e.lookupKey=Go,e.normalizeKeyMap=jo,e.StringStream=Ke,e.SharedTextMarker=So,e.TextMarker=Co,e.LineWidget=bo,e.e_preventDefault=we,e.e_stopPropagation=xe,e.e_stop=ke,e.addClass=H,e.contains=D,e.rmClass=L,e.keyNames=Po}(Sl),Sl.version="5.52.0",Sl}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(TaysCodeMirror)}(function(e){"use strict";e.defineMode("javascript",function(t,r){var n,i,o=t.indentUnit,l=r.statementIndent,a=r.jsonld,s=r.json||a,u=r.typescript,c=r.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),i=e("keyword d"),o=e("operator"),l={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:i,break:i,continue:i,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:l,false:l,null:l,undefined:l,NaN:l,Infinity:l,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),h=/[+\-*&%=<>!?|~^@]/,d=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(e,t,r){return n=e,i=r,t}function g(e,t){var r,n=e.next();if('"'==n||"'"==n)return t.tokenize=(r=n,function(e,t){var n,i=!1;if(a&&"@"==e.peek()&&e.match(d))return t.tokenize=g,p("jsonld-keyword","meta");for(;null!=(n=e.next())&&(n!=r||i);)i=!i&&"\\"==n;return i||(t.tokenize=g),p("string","string")}),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return p("number","number");if("."==n&&e.match(".."))return p("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return p(n);if("="==n&&e.eat(">"))return p("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return p("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),p("number","number");if("/"==n)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),p("comment","comment")):_e(e,t,1)?(function(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),p("regexp","string-2")):(e.eat("="),p("operator","operator",e.current()));if("`"==n)return t.tokenize=m,m(e,t);if("#"==n)return e.skipToEnd(),p("error","error");if("<"==n&&e.match("!--")||"-"==n&&e.match("->"))return e.skipToEnd(),p("comment","comment");if(h.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),p("operator","operator",e.current());if(c.test(n)){e.eatWhile(c);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return p(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return p("async","keyword",i)}return p("variable","variable",i)}}function v(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=g;break}n="*"==r}return p("comment","comment")}function m(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=g;break}n=!n&&"\\"==r}return p("quasi","string-2",e.current())}var y="([{}])";function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(u){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var i=0,o=!1,l=r-1;l>=0;--l){var a=e.string.charAt(l),s=y.indexOf(a);if(s>=0&&s<3){if(!i){++l;break}if(0==--i){"("==a&&(o=!0);break}}else if(s>=3&&s<6)++i;else if(c.test(a))o=!0;else if(/["'\/`]/.test(a))for(;;--l){if(0==l)return;if(e.string.charAt(l-1)==a&&"\\"!=e.string.charAt(l-2)){l--;break}}else if(o&&!i){++l;break}}o&&!i&&(t.fatArrowAt=l)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function x(e,t,r,n,i,o){this.indented=e,this.column=t,this.type=r,this.prev=i,this.info=o,null!=n&&(this.align=n)}function C(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}var k={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function T(){return S.apply(null,arguments),!0}function L(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function M(e){var t=k.state;if(k.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=function e(t,r){if(r){if(r.block){var n=e(t,r.prev);return n?n==r.prev?r:new A(n,r.vars,!0):null}return L(t,r.vars)?r:new A(r.prev,new O(t,r.vars),!1)}return null}(e,t.context);if(null!=n)return void(t.context=n)}else if(!L(e,t.localVars))return void(t.localVars=new O(e,t.localVars));r.globalVars&&!L(e,t.globalVars)&&(t.globalVars=new O(e,t.globalVars))}function N(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function A(e,t,r){this.prev=e,this.vars=t,this.block=r}function O(e,t){this.name=e,this.next=t}var D=new O("this",new O("arguments",null));function W(){k.state.context=new A(k.state.context,k.state.localVars,!1),k.state.localVars=D}function H(){k.state.context=new A(k.state.context,k.state.localVars,!0),k.state.localVars=null}function E(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function F(e,t){var r=function(){var r=k.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var i=r.lexical;i&&")"==i.type&&i.align;i=i.prev)n=i.indented;r.lexical=new x(n,k.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function P(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function I(e){return function t(r){return r==e?T():";"==e||"}"==r||")"==r||"]"==r?S():T(t)}}function z(e,t){return"var"==e?T(F("vardef",t),be,I(";"),P):"keyword a"==e?T(F("form"),j,z,P):"keyword b"==e?T(F("form"),z,P):"keyword d"==e?k.stream.match(/^\s*$/,!1)?T():T(F("stat"),U,I(";"),P):"debugger"==e?T(I(";")):"{"==e?T(F("}"),H,le,P,E):";"==e?T():"if"==e?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==P&&k.state.cc.pop()(),T(F("form"),j,z,P,Te)):"function"==e?T(Ae):"for"==e?T(F("form"),Le,z,P):"class"==e||u&&"interface"==t?(k.marked="keyword",T(F("form","class"==e?e:t),Ee,P)):"variable"==e?u&&"declare"==t?(k.marked="keyword",T(z)):u&&("module"==t||"enum"==t||"type"==t)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==t?T(Xe):"type"==t?T(De,I("operator"),fe,I(";")):T(F("form"),we,I("{"),F("}"),le,P,P)):u&&"namespace"==t?(k.marked="keyword",T(F("form"),B,z,P)):u&&"abstract"==t?(k.marked="keyword",T(z)):T(F("stat"),J):"switch"==e?T(F("form"),j,I("{"),F("}","switch"),H,le,P,P,E):"case"==e?T(B,I(":")):"default"==e?T(I(":")):"catch"==e?T(F("form"),W,R,z,P,E):"export"==e?T(F("stat"),ze,P):"import"==e?T(F("stat"),Be,P):"async"==e?T(z):"@"==t?T(B,z):S(F("stat"),B,I(";"),P)}function R(e){if("("==e)return T(We,I(")"))}function B(e,t){return G(e,t,!1)}function V(e,t){return G(e,t,!0)}function j(e){return"("!=e?S():T(F(")"),B,I(")"),P)}function G(e,t,r){if(k.state.fatArrowAt==k.stream.start){var n=r?q:Y;if("("==e)return T(W,F(")"),ie(We,")"),P,I("=>"),n,E);if("variable"==e)return S(W,we,I("=>"),n,E)}var i=r?X:K;return w.hasOwnProperty(e)?T(i):"function"==e?T(Ae,i):"class"==e||u&&"interface"==t?(k.marked="keyword",T(F("form"),He,P)):"keyword c"==e||"async"==e?T(r?V:B):"("==e?T(F(")"),U,I(")"),P,i):"operator"==e||"spread"==e?T(r?V:B):"["==e?T(F("]"),Ke,P,i):"{"==e?oe(te,"}",null,i):"quasi"==e?S($,i):"new"==e?T(function(e){return function(t){return"."==t?T(e?Q:Z):"variable"==t&&u?T(ve,e?X:K):S(e?V:B)}}(r)):"import"==e?T(B):T()}function U(e){return e.match(/[;\}\)\],]/)?S():S(B)}function K(e,t){return","==e?T(U):X(e,t,!1)}function X(e,t,r){var n=0==r?K:X,i=0==r?B:V;return"=>"==e?T(W,r?q:Y,E):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?T(n):u&&"<"==t&&k.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?T(F(">"),ie(fe,">"),P,n):"?"==t?T(B,I(":"),i):T(i):"quasi"==e?S($,n):";"!=e?"("==e?oe(V,")","call",n):"."==e?T(ee,n):"["==e?T(F("]"),U,I("]"),P,n):u&&"as"==t?(k.marked="keyword",T(fe,n)):"regexp"==e?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),T(i)):void 0:void 0}function $(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?T($):T(B,_)}function _(e){if("}"==e)return k.marked="string-2",k.state.tokenize=m,T($)}function Y(e){return b(k.stream,k.state),S("{"==e?z:B)}function q(e){return b(k.stream,k.state),S("{"==e?z:V)}function Z(e,t){if("target"==t)return k.marked="keyword",T(K)}function Q(e,t){if("target"==t)return k.marked="keyword",T(X)}function J(e){return":"==e?T(P,z):S(K,I(";"),P)}function ee(e){if("variable"==e)return k.marked="property",T()}function te(e,t){return"async"==e?(k.marked="property",T(te)):"variable"==e||"keyword"==k.style?(k.marked="property","get"==t||"set"==t?T(re):(u&&k.state.fatArrowAt==k.stream.start&&(r=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+r[0].length),T(ne))):"number"==e||"string"==e?(k.marked=a?"property":k.style+" property",T(ne)):"jsonld-keyword"==e?T(ne):u&&N(t)?(k.marked="keyword",T(te)):"["==e?T(B,ae,I("]"),ne):"spread"==e?T(V,ne):"*"==t?(k.marked="keyword",T(te)):":"==e?S(ne):void 0;var r}function re(e){return"variable"!=e?S(ne):(k.marked="property",T(Ae))}function ne(e){return":"==e?T(V):"("==e?S(Ae):void 0}function ie(e,t,r){function n(i,o){if(r?r.indexOf(i)>-1:","==i){var l=k.state.lexical;return"call"==l.info&&(l.pos=(l.pos||0)+1),T(function(r,n){return r==t||n==t?S():S(e)},n)}return i==t||o==t?T():r&&r.indexOf(";")>-1?S(e):T(I(t))}return function(r,i){return r==t||i==t?T():S(e,n)}}function oe(e,t,r){for(var n=3;n"),fe):void 0}function he(e){if("=>"==e)return T(fe)}function de(e,t){return"variable"==e||"keyword"==k.style?(k.marked="property",T(de)):"?"==t||"number"==e||"string"==e?T(de):":"==e?T(fe):"["==e?T(I("variable"),se,I("]"),de):"("==e?S(Oe,de):void 0}function pe(e,t){return"variable"==e&&k.stream.match(/^\s*[?:]/,!1)||"?"==t?T(pe):":"==e?T(fe):"spread"==e?T(pe):S(fe)}function ge(e,t){return"<"==t?T(F(">"),ie(fe,">"),P,ge):"|"==t||"."==e||"&"==t?T(fe):"["==e?T(fe,I("]"),ge):"extends"==t||"implements"==t?(k.marked="keyword",T(fe)):"?"==t?T(fe,I(":"),fe):void 0}function ve(e,t){if("<"==t)return T(F(">"),ie(fe,">"),P,ge)}function me(){return S(fe,ye)}function ye(e,t){if("="==t)return T(fe)}function be(e,t){return"enum"==t?(k.marked="keyword",T(Xe)):S(we,ae,ke,Se)}function we(e,t){return u&&N(t)?(k.marked="keyword",T(we)):"variable"==e?(M(t),T()):"spread"==e?T(we):"["==e?oe(Ce,"]"):"{"==e?oe(xe,"}"):void 0}function xe(e,t){return"variable"!=e||k.stream.match(/^\s*:/,!1)?("variable"==e&&(k.marked="property"),"spread"==e?T(we):"}"==e?S():"["==e?T(B,I("]"),I(":"),xe):T(I(":"),we,ke)):(M(t),T(ke))}function Ce(){return S(we,ke)}function ke(e,t){if("="==t)return T(V)}function Se(e){if(","==e)return T(be)}function Te(e,t){if("keyword b"==e&&"else"==t)return T(F("form","else"),z,P)}function Le(e,t){return"await"==t?T(Le):"("==e?T(F(")"),Me,P):void 0}function Me(e){return"var"==e?T(be,Ne):"variable"==e?T(Ne):S(Ne)}function Ne(e,t){return")"==e?T():";"==e?T(Ne):"in"==t||"of"==t?(k.marked="keyword",T(B,Ne)):S(B,Ne)}function Ae(e,t){return"*"==t?(k.marked="keyword",T(Ae)):"variable"==e?(M(t),T(Ae)):"("==e?T(W,F(")"),ie(We,")"),P,ue,z,E):u&&"<"==t?T(F(">"),ie(me,">"),P,Ae):void 0}function Oe(e,t){return"*"==t?(k.marked="keyword",T(Oe)):"variable"==e?(M(t),T(Oe)):"("==e?T(W,F(")"),ie(We,")"),P,ue,E):u&&"<"==t?T(F(">"),ie(me,">"),P,Oe):void 0}function De(e,t){return"keyword"==e||"variable"==e?(k.marked="type",T(De)):"<"==t?T(F(">"),ie(me,">"),P):void 0}function We(e,t){return"@"==t&&T(B,We),"spread"==e?T(We):u&&N(t)?(k.marked="keyword",T(We)):u&&"this"==e?T(ae,ke):S(we,ae,ke)}function He(e,t){return"variable"==e?Ee(e,t):Fe(e,t)}function Ee(e,t){if("variable"==e)return M(t),T(Fe)}function Fe(e,t){return"<"==t?T(F(">"),ie(me,">"),P,Fe):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(k.marked="keyword"),T(u?fe:B,Fe)):"{"==e?T(F("}"),Pe,P):void 0}function Pe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&N(t))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",T(Pe)):"variable"==e||"keyword"==k.style?(k.marked="property",T(u?Ie:Ae,Pe)):"number"==e||"string"==e?T(u?Ie:Ae,Pe):"["==e?T(B,ae,I("]"),u?Ie:Ae,Pe):"*"==t?(k.marked="keyword",T(Pe)):u&&"("==e?S(Oe,Pe):";"==e||","==e?T(Pe):"}"==e?T():"@"==t?T(B,Pe):void 0}function Ie(e,t){if("?"==t)return T(Ie);if(":"==e)return T(fe,ke);if("="==t)return T(V);var r=k.state.lexical.prev;return S(r&&"interface"==r.info?Oe:Ae)}function ze(e,t){return"*"==t?(k.marked="keyword",T(Ue,I(";"))):"default"==t?(k.marked="keyword",T(B,I(";"))):"{"==e?T(ie(Re,"}"),Ue,I(";")):S(z)}function Re(e,t){return"as"==t?(k.marked="keyword",T(I("variable"))):"variable"==e?S(V,Re):void 0}function Be(e){return"string"==e?T():"("==e?S(B):S(Ve,je,Ue)}function Ve(e,t){return"{"==e?oe(Ve,"}"):("variable"==e&&M(t),"*"==t&&(k.marked="keyword"),T(Ge))}function je(e){if(","==e)return T(Ve,je)}function Ge(e,t){if("as"==t)return k.marked="keyword",T(Ve)}function Ue(e,t){if("from"==t)return k.marked="keyword",T(B)}function Ke(e){return"]"==e?T():S(ie(V,"]"))}function Xe(){return S(F("form"),we,I("{"),F("}"),ie($e,"}"),P,P)}function $e(){return S(we,ke)}function _e(e,t,r){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return E.lex=!0,P.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new x((e||0)-o,0,"block",!1),localVars:r.localVars,context:r.localVars&&new A(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=v&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=i&&"--"!=i?n:"incdec",function(e,t,r,n,i){var o=e.cc;for(k.state=e,k.stream=i,k.marked=null,k.cc=o,k.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():s?B:z)(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==r&&C(e,n)?"variable-2":t}}(t,r,n,i,e))},indent:function(t,n){if(t.tokenize==v)return e.Pass;if(t.tokenize!=g)return 0;var i,a=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==P)s=s.prev;else if(c!=Te)break}for(;("stat"==s.type||"form"==s.type)&&("}"==a||(i=t.cc[t.cc.length-1])&&(i==K||i==X)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;l&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var f=s.type,d=a==f;return"vardef"==f?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==f&&"{"==a?s.indented:"form"==f?s.indented+o:"stat"==f?s.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,n)?l||o:0):"switch"!=s.info||d||0==r.doubleIndentSwitch?s.align?s.column+(d?0:1):s.indented+(d?0:o):s.indented+(/^(?:case|default)\b/.test(n)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:a,jsonMode:s,expressionAllowed:_e,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=B&&t!=V||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})});
var codes = document.getElementsByClassName("code_mirror_code");
for(var i =0;i=4.0.0 and <4.1.0 but 3.4.5 was found instead. create react app with typescript config convert object object to array typescript Cannot find module '@angular/core' or its corresponding type declarations npx react typescript typescript onclick event type props typescript type for intervalId react native typescript children prop typescript react onchange event type typescript sum all array values how to check typescript version cannot find module typescript require('dotenv').config() typescript typescript remove object from array tsc types.ts 'tsc' is not recognized as an internal or external command, operable program or batch file. string to date in typescript object iteration in typescript how to make a react project that has tsx typescript string interpolation ignore typescript error useStae with array of strings typescript react native typescript template timeout typescript merge properties of object typescript typescript current date/time check if key exists in json typescript convert string to uppercase typescript for loop typescript typescript string null or white space cra template-typescript cmd typescript add global variable to window eslint missing file extension ts typescript react input type typescript get the mime type from base64 string Cannot find module 'fs' or its corresponding type declarations. empty observable rxjs useref input typescript ts change date format eslint no-unused-vars typescript install typescript mac typescript space between capital letters ts queryselectorall as htmlelement typescript calculate days between dates typescript initialize map inline typescript switch case is id in array typescript type script edeode url const vs readonly ts typescript iterate over enum Visual Studio Code Typescript region folding add module tslib typescript check if string is number typescript loop over map with value as array Require statement not part of import statement.eslint@typescript-eslint/no-var-requires react onclick typescript type typescripts swithc typescript add property if not exist, merge if it exists loop an object properties in ts subtracting two date objects in javacript add typescript in node global d ts typescript object key from other object how to delete the spec.ts file in project all togethre ts date get hour typescript sort array of objects install typescript using npm react event typescript number to string typescript Property 'val' does not exist on type 'Readonly<{}> typescript create guid typescript keyof Property 'value' does not exist on type 'HTMLElement'. typescript sleep react typescript scss typescript array string to array literal check if a date is before another date in typescript typescript exclude jest files get minutes between two dates ts typescript == vs === typescript dictionary typing reload page in typescript typescript mix props size of list applescript ts reverse array typescriprt specify type of key ts generator Argument of type 'string | null' is not assignable to parameter of type 'string'. Type 'null' is not assignable to type 'string' typescript switch Property 'of' does not exist on type 'typeof Observable'. typescript array of strings sort array by date typescript angular typescript set meta data how to check when a number varibal = nan in ts full call signature in ts react protected routes typescript typescript singleton typescript override interface property replace string in typescript typescript react class component for of loop in ts with index e typescript move items from one log to another typescript import on save typescript binding reference of type discards qualifiers auto fix tslint rules filter duplicate value in array of object typescript js split at index property 'unsubscribe' does not exist on type 'Observable' typescript config React with Typescript concat string typescript typescript comments date time format typescript foreach typescript how to map array of objects in react typescript event keyCode typescript export import in the same time typescript switch test per case how to install typescript in visual studio code typescript array of react elements rscript arguments input react tsx component example node_modules/angularx-flatpickr/flatpickr.module.d.ts:6:64 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s). ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected. typescript check if element in array typescript disable next line typescript init react functional component typescript init empty object typescript using chai in typescript conditionally add property to object ts typescript foreach write in file in typescript typescript type object getter and setter in typescript promise to observable typescript string substring typescript length of object in typescript ts switch typescript random number npx create react app typescript typescript generic mongoose example typescript check type of variable push elements of array to another array typescript import exec ts typescript while typescript optional parameters vue 3 setup props typescript useref react typescript string to int typescript typescript enum to array how to install typescript in windows 10 initialize empty array typescript create constant in class typescript nuxt typescript $axios types Property 'value' does not exist on type 'EventTarget & Element'. typescript format string loop through object typescript equalsignorecase typescript typescript algorithm to find repeating number sequences over time when to use type vs interface typescript disable button typescript react typescript props typescript static class equivalent generic arrow function typescript Module not found: Error: Can't resolve 'core-js/es7/reflect' create react app ts constructor in typescript array of objects typescript TS define dictionary react native typescript peer of typescript@>=2.8.0 .d.ts vs .ts react-hook-form typescript typescript remove whitespace from string .env typescript typescript enum to string date format in typescript contextual typing in typescript angular array filter typescript typescript inner class key value pairs typescript ts switch case typescript constructor shorthand ts iterate over interface properties copy array typescript see tsv in format on command line arrow function in typescript how to get last element of array in typescript typescript record react forwardref typescript typescript code region whats question mark do in ts ts interface optional parameter reduce an array of objects to string Type 'undefined' cannot be used as an index type.ts(2538) add typescript in create react app typescript type from enum values typescript remove element from array ts compile command typescripte switch typescript arrow function create react native app typescript how to define optional parameter in typescript typescript interface function ts override method how to use filter in typescript create uuid typescript typescript dynamic key value object typescript add days to date typescript check if object has key typescript array count how to run typescript file add redux to react typescript next with typescript type script tuple type ERROR in The Angular Compiler requires TypeScript >=3.4.0 and <3.6.0 but 4.1.5 was found instead. typescript union react typescript pass component as prop @babel/preset-typescript typescript integer capitalize first letter of all word typescript styled components default theme typescript extends vs implements in typescript typescript extend interface How to do Email validation using Regular expression in Typescript create array of... in typescript ts enum definition typescript replace typescript if then shorthand typescript valueof interface tsconfig configuration typescript random int next api typescript type script encode url angular dictionary typescript key value array never data type in typescript ts abstract class typescript if else javscripts input form validation typescript react elements TYPESCRIPT RETURN HTML ELEMENT union value typescript nested array typescript typescript map list to new list of objects how to add an element to a Typescript array express typescript tsconfig styled components props typescript what is typescript React Typescript form event how to declare variable in typescript typescript ge t current screen resolution TYPESCript props class component typescript string contains typescript promise error TS2307: Cannot find module 'path' or its corresponding type declarations. typescript mongoose required functions Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser. typescript object to array type casting in typescript typescript parameter function type typescript class interface typescript string to number use map with filter in react components from arrays of data typescript variable getter tslint shows double quotes error prettier Property 'map' does not exist on type 'Observable'.ts(2339) state in react typescript extend generics in functions typescript select column values from array typescript typescript union types how to sort numbers in typescript tuple in typescript if shorthand typescript hthe cmd to create tsconfig.json typescript string to enum Could not find a declaration file for module 'react' yarn create react app typescript typescript remove an item from array prettier not working with tsx type usestate typescript declare and initialize variable in typescript vsc typescript auto build on save length in typescript typescript for loop key value pai typescript with babel how to declare a boolean in typescript create typescript project copy text from file to another file in javascript with fs ts react props type create react app with redux and typescript Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i @types/node` and then add `node` to the types field in your tsconfig. typescript filter list by property typescript generic class typescript decorators create an array for looping typescript typescript double question mark npm typescript array objects to array of one property check in string starts with ts how to make a parameter optional in typescript typescript cast string to number create new react app using typescript interface function typescript create map import js file in typescript typescript type vs interface pass function as argument typescript eslint no-unused-vars typescript interface how to convert snake case to camel snake case javascript typescript for in ts create file object from url typescript ts await foreach loop typescript reload current page ts version typescript check type react typescript cheat sheet typescript recursive partial typescript class implements interface ts console.log prettier eslint typescript ?? Operator in TypeScript typescript get type typescript array of objects typescript function as parameter typescript key value loop typescript cheat sheet props vue typescript express ts filter typescript onchange e.target.value typescript ts shuffle array object.fromentries typescript typescript api request header cannot use import statement outside a module typescript typescript generic function async await function in typescript insert variable in typescript string typescript array find template string in typescript enum in ts express validator typescript filter max value from array typescript converting react to ts react-native use typescript how to check whether a string contains a substring in typescript online types date typescript define object properties typescript find typescript typescript check undefined module.exports in typescript typescript pick react router dom private route typescript boolean to string typescript size of array typescript typescript object destructuring json to object typescript push at first index typescript how to get value from observable deep partial typescript Cannot find module '@ngrx/effects' or its corresponding type declarations.ts(2307) create react app typescript reactnative typescript create model in typescript declare enum in type script typescript one of array typerscript online compiler isnull or empty typescript push another array to array typescript typescript checkbox event typescript list concat typescript how to create an array instance typescript type definition typescript doesn't know type of HTML element typescript pass a function as an argunetn what is typescript in angular arrow function in ts spread operator in ts typescript generic type interface typescript create new object from interface make an interface iterator typescript spyon observable how to create empty object typescript Property 'editor' does not exist on type 'Window & typeof globalThis'. install typescript homebrew reverse string in typescript start node typescript project delete array typescript typescript default parameter use type as value typescript custom types in typescript ts enum cannot find module 'typescript' angular 9 methods vue class component finally suscribe typescript javascripts object typescript type number range typescript class type t tsconfig.json basic configuration ts class typescript object type classes in typescript get all the ids in an array of objects ts use javascript function in string interpolation angular typescript types for state axios typescript typescript null and undefined check window typescript typescript interface vs type typescript tutorial nodejs typescript array ts async function type typescript convert color to rgb type annotations can only be used in typescript files.ts(8010) typescript create file and download typescript generic type typescript function type how to get the median in typescript typing in typescript how to check is null or empty in typescript classes in ts module.exports vs exports typescript class validator validate enum array typescript function global declaration css ts activate jquery in typescript get typescript props of component convert all properties, object, array to camal case in angular js typescript get the time moment typescript date before hex to rgb typescript class-validator not working nest-typescript-starter uncheck all checkboxes typescript simple function in typescript get function return type typescript google map Argument of type 'HTMLElement | null' is not assignable to parameter of type 'Element' typescript infinite loop mongoose typescript global promise preventing letters from being placed in an input ts preventing +,-,e from input ts is missing in props validation typescript Cannot find module '@azure/msal-angular' or its corresponding type declarations.ts(2307) target.value typescript types function typescript styled components type argument generic typescript cannot write file because it would overwrite input file run an applescript void in ts typescript map array typescript convert an unknown to string typescript sort number array descending using es6 set in typescript filter duplicate value in typescript split textarea typescript typescript export interface array "TypeError: fsevents is not a function" typescript time array.join typescript how to use class component in typescript react typescript type declaration typescript declare global functional components react variable declare in ts how to install typescript mongoose with typescript type script array typescript make function argument optional angular make variable optional abstract interface in typescript typescript namespace Cannot find module 'next' or its corresponding type declarations. implement a linked list in typescript testing types typescript number to hex string typoescript find multiple items in array and return found apexcharts react property 'length' does not exist on type 'T' typescript type image ?. in typescript typescript extends multiple types computed vue typescript npm typescript package function overload in ts typescript filter list of objects based on latest date how to compare two date in typescript typescript ..otherProps npx run ts file optional chaining typescript get type of object property enums in typescript typescript default value for boolean how to check typescript version for my react-app typescript foreach async await why use typescript with react rxjs create observable from value use strict typescript typescript override type of property new expression typescript typescript convert numer to string filter() array of objects on change react react table typescript typescript tutorials adding html in typescript typescript http get attach headers how to compile ts in cmd replace element in array typescript Objects are not valid as a React child object notation string javascript\ typescript string concatenation best practice typescript delete value from map generator typescript ts slice array how to extend ts class destruct type definition typescript object is possibly array in typescript typescript react switch case component typescript enum value to enum merge two types typescript typescript interface export interface typescript typescript type interface typescript splice typescript getter setter abstract classes in typescript redux typescript mapdispatchtoprops npx create-react-app typescript typescript list ts extends typescript typescript annotate return type sqlite typescript jest Data path "" should have required property 'tsConfig'. create type as values of list typescript why can't define generic function in tsx file ips in range typescript indexable type in ts concat and nunll check in typescript count items in list applescript Cannot use JSX unless the '--jsx' flag is provided.ts(17004) swap elements in array typescript react typescript optional props 'EmployeeComponent' is declared but its value is never read.ts(6133) enum naming convention typescript gdscript remove deleted objects from array call function dynamically typescript splice array based on index typescript how to get both key and value of enum in typescript how to use indexOf in typesript get keys of an array angualr turn milliseconds to human readable string typescript how to use array pop in typescript check anagramm in typescript typescript lambda type parameter increment elements in array typescript how to pass node arguments in nextjs typescript -g doesnst read tsconfog redux toolkit typescript install typescript default public or private typescript set argument type typescript datetimte typescript clear array typescript cheatsheet how to read web page in type script use multy line in typescript typescript how to color your console loggers typescript interface to http params typescript endless loop typescript "variable!: type" notation How to use Function Components in React TypeScript typescript function hoisting 'this' context of type 'void' is not assignable to method's 'this' of type 'Observable<{}>'. how to randomly generate a string in ts sort function in typescript typescript declare "userLanguage" typescript interface default value typescript pick type from interface web component typescript get key of enum typescript react typescript dynamically set key state trim undefined keys from object typescript babel typescript typescript "variable?: type" notation (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Popper = factory()); typescript enumerate array React Draft Wysiwyg typescript typescript for vue ts create nex field browser version check for chrome or firefox typescript ts enum string' can't be used to index type how long does it take to learn typescript readonly array in typescript typescript object key as enum mixpanel for typescript how to exit from a function in typescript Cannot find module 'date-fns' or its corresponding type declarations.ts(2307) typescript import particular class from file Cannot find module 'tns-core-modules/platform' or its corresponding type declarations filter duplicate using map and filter in typescript spread types may only be created from html call typescript function how to validate email address in typescript typescript cannot find namespace how to use variable as object key in typescript typescript new instance of interface string to int tsx simulate click typescript let variable name : any = () => { return new typescript fie} typescript extension getter how to check string array is sorted or not in typescript create react app with typescript declare types for libraries in npm react native vector icon ts file configuaration array destructuring typescript type typescript not supporting scss spread types may only be created from object types firebase ts get year from date typescript ingerit The expected type comes from property ts import module array of objects create common key as a property and create array of objects typescript autocomplete emacs typescript string to string literal typescript array insert gettime is not a function typescript what is hello world in typescript how to get remainder in typescript typescript class import csv file typescript how to check if string is a date react static typescript properties ts date toisostring incorrect conversion eslint airbnb react typescript typescript doesnt read .d.ts typescript reduce filter examples type char typescript typescript use object keys as index you can initiate objects from a list d objey en typescript value of type any has no subscripts swift typescript last index of array why use typescript length functioni in typesrcipt typescript assign two types create mock promise angular get type of element of array typescript ts date get minutes "Property 'mocha' does not exist on type 'Cypress & EventEmitter'." find value in array ts how to remove elements from object in typescript nuxt typescript middleware property typescript string in object property number square n times in typescript typescript filter undefined typescript assert non null absolute import typescript react how to init tscondif angular timestamp component download blob typescript hide elements using DOM in TypeScript array.slice in typescript check if substring in string typescript array of elemts by class ts var vs let vs const typescript typescript get objects nested in object lerna typescript jest cannot find module types of property length are incompatible how to install tsu print in a tsv file all names of files in a directory linux router react typescript typescript get promise allsettled what do you need local sccripts for typescript reduce initial value type typescript webpack node No type arguments expected for interface Callback ajax request in typescript typescript iterate over interface expressjs typescript test typescript d ts meaning connect redis typescript usage ts loop through days in dates typescript cast to type remove properties enum to number typescript typescript inline switch typescript combine interfaces convert number to decimal in react typescript count file lines in typescript typescript dto better way to do nested if statements javascipt how to exclude certain proprty from a class typescript typescript interface key with another type paths typescript class inheritance in typescript typescript find non matching objects in two arrays typescript arr numbers and strings dotenv typescript typescript split/partition array by condition typescript interview questions typescript getter/setter best practice create method in interface for set TS ant typescript styles react-jsonschema-form is not assignable to type 'JSONSchema6' install types/node dependencies ts in r type a passed component typescript react how to comment likes in typescript typescript absolute value typescript function return array angular type of string react redux typescript typescript declare process.env typescript utility types merge interfaces ts for interface ts one valu splice typescript array module.exports equivalent es6 convert javascript to typescript create npm module typescript typescript decorator example object type in typescript string one char change in typescript This expression is not constructable. Type 'Promise' has no construct signatures. module.exports multiple functions typescript tuples typescript type of object values REACT TS roperty 'value' does not exist on type 'EventTarget & Element' typescript operate with html objects typescript parse to string typescript mocha Cannot use import statement outside a module eslint in react typescript typescript count array condition typescript if string is null or empty index signature in typescript get url params in typescript passing props using ts typescript read url search params var str1='hello world'; var str2='welcome to typescript'; function test(str1:string,str2:string){ console.log(str1.concat(str2)) console.log(str1.concat( 'mr','vinay')) } test(); console.log(str1.concat(str2)) fibonacci counter in typescript tss from gene granges typescript find in all words TypeScript interface for object with arbitrary numeric property names? delete the last string from file in typescript defining component layout next ts alternative for .include in typescript integrationtest typescript react protected routes typescript ngfor ionic example Write a function that takes in two sorted arrays and returns a new array with all elements sorted not using array method sort. c++ too few arguments in function call angular navigate using component check if dict key exists python How to download windows 10 ISO how to see all commits in git bootstrap angular comments in css angular date pipe how to check whether file exists in python how to check list of open ports in linux how to print array elements in java cannot be loaded because running scripts is disabled on this system ngFor Can't bind to 'formGroup' since it isn't a known property of 'form use google fonts in css angular number pipe see what ports are in use looping through two lists python voting results 2020 live google fonts roboto font awesome angular How to Reload a Component in Angular python requests get proxy mat-form-field must contain a MatFormFieldControl append to lists python get arguments from url flask windows hosts file location check if file exists bash print duplicates elements in column pandas matplotlib subplots size how to install requirements file in python angular font awesome Angular 8 ngClass If how to compare distance between 2 objects unity how to find gameobjects in unity firestore get all documents in collection random between two floats python [email protected] : Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. how to get requirements .txt if exists sql server how to check the ports in use in windows cmd split list into lists of equal length python git remove commits from branch after push angular switch component wallstreetbets reddit how to pass in arguments into c++ main digits of pi running scripts is disabled on this system python how to check if all elements in list are the same delete contents of directory python how to sort a list of objects python how to see all the environments in Conda events on checkbox in jquery mongodb exists and not null find a value in list of objects in c# email validation pattern angular angular email regular expression session not created: This version of ChromeDriver only supports Chrome version 85 flatten a list of lists python how to align contents of div in center formgroup addcontrol if a class exists jquery how to select last 2 elements in a string python block of comments in matlab An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json' how to check if a variable exists in python how to check for open ports in windows how to write lists to text file python angular reload component how to import requests in python date pipe angular ionic generate resources how to display server count on discord.js int an dlong int ranges regex get content between brackets without brackets google fonts for flutte from list of lists to dataframe installing bootstrap in angular 9 python count number of digits in integer cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. how to make s3 bucet objects publicj delete all child elements jquery number of digits in a number python show timestamp as yyyy mm dd html angular how to read excel file with multiple sheets in python print list without brackets int python how to delete old commits in github eliminate dots li because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. bootstrap dropdown menu not showing angular get url param all rights reserved sum of elements in c++ stl github screenshots resize running scripts is disabled on this system how to append to a list of lists in python how to do limits in latex model has no objects member django scroll to top angular comments in htlm responsive breakpoints 2020 firebaseError: Firebase: Firebase App named '[DEFAULT'] already exists (app/duplicate-app). conditional style angular print elements in map java angular refresh page without reloading Lists inside lists in java cannot be loaded because running scripts is disabled on this system. styled components hover Composer install : Your requirements could not be resolved to an installable set of packages convert image path to base64 typescript how to run resources in ionic how to find how many digits a number has in c++ Please make sure you have the correct access rights and the repository exists. react native elements button with icon check if column exists in dataframe testing inputs with react testing library laravel exists validation regex replace certain string css inputs outofill color hosts file path windows 10 count the number of digits in an integer in java ERR_TOO_MANY_REDIRECTS wordpress python first n elements of list angular No provider for HttpClient what does lts stand for Storing Objects in HTML5 localStorage can't bind to 'ngmodeloptions' since it isn't a known property of 'input' add 1 to all elements in list python Cannot find module '../../images/home.svg' or its corresponding type declarations \ng.ps1 cannot be loaded because running scripts is disabled on this system. how to get index for ngfor if key exists in hashmap java how to store objects in localstorage router navigate pass params angular get current date yyyy-mm-dd plot 3d points in python Firestore increment field Updates were rejected because a pushed branch tip is behind its remote c# check if a file exists in a folder types of irony sort list of objects by attribute java ng.ps1 cannot be loaded because running scripts is disabled on this system vscode angular scroll to top ionic toast 'mat-form-field' is not a known element: axis limits matlab File C:\Users\SHUBHAM KUNWAR\AppData\Roaming\npm\nodemon.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. how to link locally installed fonts to css check if file exists laravel ng-bootstrap npm install multi line comments latex remove bullets css sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread lofi hip hop beats to study to Google sheets How to Check if a Cell Contains a Substring ionic web platform google chrome extensions content scripts matches artillery annot be loaded because running scripts is disabled on this system dist subplots in seaborn python set default route angular remove undefined from array unity how to do collision detection with one object unity how to make two objects not collide check if list of objects contains value c# subplots titles jquery check value exists in array jquery selector attribute value starts with ionic 5 formarray react router install lua print contents of table react native elements install flatten list of lists python count all results codeigniter font family system 'mat-form-field' is not a known element loaded because running scripts is disabled on this s squash commits in remote branch tsc.ps1 cannot be loaded because running scripts is disabled on this system dev/storage/logs" and its not buildable: Permission denied list commits in git pass data through router angular distance between two points java your account has reached its concurrent builds limit vscode auto line break Generic type 'ModuleWithProviders' requires 1 type argument(s). whats the binary nmber system html collection of elements to array check ports in use docker ion modal dismiss cheats for dino game chrome how to Store Objects in HTML5 localStorage Firebase: Firebase App named '[DEFAULT]' already exists (app/duplicate-app). how to add image from assets inside as a decoration image in container find number of digits in a number material ui icon npm Firestore decrement field print digits of a number in c change how many plots you view r unity rich text options typescript on window resize gets is in which header file File C:\Users\skill\AppData\Roaming\npm\yarn.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. add elements to middle of array using splice how to make a leaderstats script how to check if a string is composed only of alphabets in python default allow all zoom participants to share screen google sheets count cells if not blank jquery id that starts with lo-fi beats to study to Cannot find module '@angular/material/radio' or its corresponding type declarations. big brackets latex AND-OR-AND + brackets with Eloquent mat dialog disable close angular 8 ts refresh page round up number typescript html css how to position elements on right of div Google Sheets How to Count the Days Between Two Dates remove dots from ul vscode change comments color ails to pass a sanity check due to a bug in the windows runtime mongo count elements in array mat input formatter tel ion alert checkbox expected 2 arguments but got 1. viewchild angular simple firestore cloud function update document wordpress directory and its permissions get objects z rotation in degrees unity how to separate a number into digits java git writing objects slow how to use multiple custom fonts in css apt list properties of all electromagnetic waves comments in .gitignore how to remove the dots from ul Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning angular formgroup mark as touched File C:\Users\Tariqul\AppData\Roaming\npm\ng.ps1 cannot be loaded because running scripts is disabled on this system. iterate object ngfor multiline comments coding google sheets concatenate python all elements in list in another list how to check if a directory exists or not using python how to add elements to Jlist RenderFlex children have non-zero flex but incoming height constraints are unbounded. results of 1812 aggregate in r ionic modal pass data mongo change all documents on field wordpress robots txt file destroying assets is not permitted to avoid data loss how to shuffle the elements in a string python delete folder and its subfolders in python how to count positive elements numpy sum of digits in c++ Sum of digits of a number using recursion function c ionic camera ion datetime time current set set array of objects in localstorage sort list of lists by first element The Angular CLI process did not start listening for requests within the timeout period of 0 seconds. how to find roots of quadratic equation in c No suitable injection token for parameter 'path' of class 'BaseModel' react native elements input highlight onfous 'mat-label' is not a known element: unity find all objects with script angular innerhtml style not working remove duplicate objects based on id from array angular 8 Google Sheets How to Count business Days Between Two Dates find total commits in git angular convert boolean to string create database and grant user rights mariadb kick bots command cs go how to create a fetch function its is me dio python requests firefox headers get all the game objects in a scene unity reset specific field in reactive form lua table to string style mat-dialog-container how to get rid of bullet points in css ion slides next by button stretch grid column to fit page mui get posts from selected taxonomy powershell see ports in use Can't bind to 'mat-dialog-close' since it isn't a known property of 'button' delete contents of folder java flutter unfocus textfield remove dots from ul li how to create multiple sheets in excel using python in openpyxml enabletrace angular html list bullets not centered featured products woocommerce shortcode java what are the comments before a method label points in plot in r is assigned a value but never used MySQL cheatsheets adding elements in a specified column or row in a two dimensional array java print contents of cpp file remove contraints command psql how to save plots in r npm run serve https @angular/fire/angularfire2.d.ts:37:49 - error TS2344: Type 'T[K]' does not satisfy the constraint '(...args: any) => any python convert a csv to a tsv three dots icon flutter rename table of contents latex where do you get your test data divide all elements of list by an integer plot with dots in r print number of elements in a directory unix TypeError: default_collate: batch must contain tensors, numpy arrays, numbers, dicts or lists; found loop through form controls angular requests python no proxy add a background color for all h1 elements in css add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message router navbar vue - laravel/ui[v3.2.0, ..., 3.x-dev] require illuminate/console ^8.0 -> found illuminate/console[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require. drop table if exists in postgres find elements array lamda python python pip install r requirements txt randomly choose n elements from a text file linux how to destroy all widgets in a frame how to find the number of objects with the same tag in unity google sheets how to count all non empty cells skip test angular import lodash issue angular jquery get number of elements in array ionic copy to clipboard angular onclick toggle class Enable Template Path Hints for Storefront vue router mode history typescript python create package ros file_get_contents header Cannot read property 'valueChanges' of undefined save struct array to UserDefaults swift flutter capitalize first letter textfield ionic set mode ios to whle app 'mat-icon' is not a known element: how to print certain elements of an array tweepy stream tweets from user advantages of automation add column if not exists postgresql components of selenium angular material button css not working mat autocomplete async An unhandled exception occurred: Schematic "Module" not found in collection "@schematics/angular". Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15. google sheets remove first character how to get all elements of column in pandas dataframe how to check if file exists lua Return the Objects Keys and Values Keras cheatsheets pdfs difference between accept and content type header sheets column number to letter python requests get cookies angular change element style on click how to choose automation over manual testing ionic save base64 as file Nmap to find open ports kali linux from sklearn.datasets import fetch_mldata error check all elements in list are false python google sheets remove characters from string Type 'CameraOriginal' is not assignable to type 'Provider'. whats the cheapsdt csgo kniofe mat selection list form control unity rigidbody constraints unfreeze FIRST principle in testing angular formgroup validate manually ion-datetime min date today DOMException: Failed to set the 'adoptedStyleSheets' property on 'ShadowRoot': Sharing constructed stylesheets in multiple documents is not allowed at addStyle difference between dictionary and sets in python ValueError: Cannot run multiple SparkContexts at once; NASDAQ: TSLA como crear un bot para whatsapp Cannot find name 'switchMap' how to make a bool appear in all scripts unity can switch statements in java work with boolean calculate distance between two latitude longitude points in google maps api wordpress get posts with meta data rest api organize imports on save vscode unity objects disappearing when close nodemon cannot be loaded because running scripts is disabled on this system prevent row click event when button is clicked angular html google sheets paste comma delimited text into separate cells deno web server angular change how date looks python get elements from list of dictionaries mat input datetime-local now css fonts system is declared by more than one NgModule. modal controller get data on dismiss No directive found with exportAs 'matAutocomplete' flutter get height of status bar when to choose automation over manual testing edit card-deck breakingpoints bootstrap wordpress loop over posts but exclude current post 'mat-checkbox' is not a known element how to make an element be above all the other elements html angular hide element from component when on certain page code for posting comments using mvc c# sonar ignore rule js replace item in array at index c# events handler geeksforgeeks reactive forms get value of control check if file.properties is exits android swift code of paytm payments bank how to get ip address in angular 8 unity lists number of objects referencing objects stack overflow magento 2 enable template hints command line ionic input mask what is the blood vessel that carries oxygenand nutrients to the heart muscle tissue itslef google sheets return multiple columns with vlookup how to make 2 lights blink with the GPIO pins with python not able to use fonts awesome in react download and run exploits from exploit-db bot stats discord.js "ion-calendar" default date selected flutter text button shape ion input ngmodel not working ionic 6 wordpress have_posts not working NullInjectorError: R3InjectorError(ProfilePageModule)[Camera -> Camera -> Camera how to use mutliple layouts in recyclerview Using Objects for Lookups how to delete all elements from hashmap in java except one ionic pasword visible inside ion-input drop table if it exists mysql testing without requirements mat datepicker pt-br javascript audio delay No provider for ChildrenOutletContexts Angular notificationManager has not been initialized select code between brackets android studio google sheets how to allow partial matches in vlookup MySQL cheatsheets pdf download what is the name of belt around the orbits of earth and mars What were four effects of the War of 1812? enumerate multiple lists python 'mat-date-range-picker' is not a known element: measurement technique of total fiber attenuation gives Why does the Circum-Pacific belt of earthquakes coincide with the Pacific ring of fire exists query elasticsearch 5.4 how to make a class that takes no arguments in python ionic Can't resolve all parameters for bullet points on same line overleaf how to configure email alerts in grafana container Numeric data type is returned as String print array elements with space c++ what is endurance testing Using shell script, display the contents of the present working directory. If it is an ordinary file print its permission and change the permissions to r--r--r-- count objects in selenium java how to set the contents of a div with jquery how to align text inside an li to its center webintent plugin cordova test should not automated how to view documents folder simulator swift vscode add command palette requests use many proxy python object.assign() in NgRx how to get absolute value of elements of list in python how to insert subscript in plots in r No provider for ChildrenOutletContexts rror: failed to init transaction (unable to lock database) error: could not lock database: File exists if you're sure a package manager is not already running, you can remove /var/lib/pacman/db.lck ionic modal controller pass parameter start blender from terminal challenges in agile according to all known laws of aviation how to get all the elements in xpath java facts aboutdavid oliveira see sheets of excel file python hello world Error: ./src/main.ts Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): TypeError: Cannot read property 'createUniqueName' of undefined Should robots have faces? flutter assets stackoverflow ionic 4 set root page when logout how to print a character with its ascii value in c++ how to give curly brackets in latex agm map infowindow close fivem CreateDui 'Missing locale data for the locale "pt-BR".' for pipe 'DatePipe' google sheets concatenate 3 values all we have to do is decide what to do with the time that is given to us typescript check if string is base64 or not path to src excel office scripts documentation ionic stop fab from opening when clicking on fab microsoft.portable.csharp.targets was not found vs 2019 ERROR in ngcc is already running at process with id 8108. If you are running multiple builds in parallel then you should pre-process your node_modules via the command line ngcc tool before starting the builds; react routes not working after build maxlength reach focus on next input angular comments in asymptote "mat-chip-list" is not a known element: ion-calendar init selected google sheets script onedit sort for multiple sheets MyApp widgets require a MediaQuery widget ancestor. canactivate get current url Cannot find name 'debounceTime' how to check if its a character in r replace all br tags within node with paragraph opening and closing tags allegro gdzie jest moja paczka how to implement read more and readless in angular what type of radiation is 5g function should take three arguments - operation(string/char), value1(number), value2(number). python remove accents pandas Structure of Structs in c HHow to append lists elixir can we use function overloading and default arguments at same time in c++ Uncaught Error: Template parse errors: Can't bind to 'ngModel' i comparer for lists c# formgroup check if valid how many terrorists do not conform to the gender binary how to use true or false statements on python write a progam to take the hour munite and second components of two times of a day and find out their difference (assume the latest time is given first) transfer elements to another list python linux shell loop through all inputs except last queryselectorall of multiple tags how to make an element be above all the other elements html mongodb find starts with lua print all elements table how to send attachments to api checking if a substring exists in a string r Error: ./src/main.ts Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): TypeError: Cannot read property 'createUniqueName' of undefined mongoose get all documents big large curly brackets latex flutter too many positional arguments 0 expected but 1 found add elements to middle of array using splice ets2 iInvalid floating point value '&7fc00000' How to compute all digits of the number bdd advantages and disadvantages flutter constructor default value remove dots from image python get all elements with id starts and class This method can provide higher level of accuarcy in cost estimation based on the given historical data html special characters decode angular scroll to top angular check if record exists in sql with c sharp file_check.ps1 cannot be loaded because running scripts is disabled on this system. reactive forms get value of control laravel converts a singular word string to its plural form make user agents rotate convert f# ng2003 unity rich text options eliminate border white around components angular div resize event typescript pass data through router angular run a python module with imports from parent mac book join raspberry pi webserver Write a program that generates and prints 50 random integers, each between 3 and 6 No provider for ChildrenOutletContexts Angular Can't bind to 'cdkCopyToClipboard' since it isn't a known property of 'button' print array elements with space c++ loading assets in ionic react has apple distribution certificate installed but its private key how to get value_counts output in dataframe format JAVA Program than read an integer and calculate the sum of its digits and write the number of each digit of the sum in English how to get absolute value of elements of list in python fontawesome , font interactive plots python asciidots helloworld give all element in a list starts with string java script response login unique validator angular reactive form eliminate dots li unity objects disappearing when close Copy the first two array elements to the last two array elements persistant entities should not used as arguements of "@Requestmapping" methods angular hide element from component when on certain page because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. injection of generic services in angular react-scripts start error which electromagnetic radiation is used for heating and night vision equipment MySQL update if exists else insert ansible use files contents to a variable You’re asked to read a file a line at a time. For each line, you have to split it into fields. Which of the following sets of pseudo class definitions is likely to be more orthogonal? c# ienumerable wrap to know when its compltee open url with pacage.json what is risk based testing requirements check failed for jdk 8 ( if statements in go behaviour what does lts stand for disadvantages of automation css selector starts with reset specific field in reactive form formgroup addcontrol five elements in the finger "Type error: ReflectionFunction::__construct() expects parameter 1 to be string, array given" How many arguments does a call to the Math.sqrt method have? ng idle issue ERROR in node_modules/@ng-idle/core/lib/eventtargetinterruptsource.d.ts(29,9): error TS1086: An accessor cannot be declared in an ambient context. install brackets ubuntu 20.04 list all motherboard ports command line excel office scripts documentation kalyani.@gma https requests flutter is subscribing to a lot of events in ngonint bad router params angular convert list to list of lists on every n elements python additional data structures The migration '20200806160941_InitialMigration' has already been applied to the database. Revert it and try again. If the migration has been applied to other databases, consider reverting its changes using a new migration. error TS2304: Cannot find name 'NgForm'. font family system reverse digits of an integer c++ append contents of one file to another difference between scripted testing and exploratory testing how to close all ports angular rapists near me cmd listening ports how to store objects in localstorage how to run mocha tests form a file linq check if exists in list Lists - Learn C# how to copy elements from hash to vector c++ show all digits in python python list arguments of function how to print code snippets wordpress ng new project how to get rid of bullet points in css What types of Collections/Data structures you have used fwrite() expects parameter 2 to be string, array given whats a gpu mat card api no of bits in a number The react-scripts package provided by Create React App requires a dependency: [1] [1] "webpack": "4.42.0" best esports game ever java child class constructor with parents attributes flutter fab covers widget on keyboard open how to get data from an array of objects in dart keyboard events pygame welsh cup electrodes have ionic 3 angular replacements or alternatives module.exports mongodb connection woocommerce products shortcode ionic modal pass data data Please make sure you have the correct access rights and the repository exists. flutter check if app is in foreground keyboard shortcuts to delete whole word using backspace angular set url parameters Google Sheets How to Count the Days Between Two Dates stop camera if it hits edge of room gml failed to enumerate objects in the container access is denied windows 10 how to get the sheets no in excel package workbook in c# minimum and maximum numbers of elements in a heap of height h set default route angular How to download windows 10 ISO remove bullets from ul ixl ansers how to take list as command line arguments in python material timepicker example get a span inside a div with div id javascript flutter capitalize first letter textfield web.contents timeout select all inputs that arent checkboxes google chrome extensions content scripts matches how to navigate without realoding angular error TS2304: Cannot find name 'beforeEach'. accessing formcontrol from fromgroup react useEffect Nmap to find open ports kali linux how to see constraints in postgresql Given a quadratic equation ax2 +bx+c = 0, write a function roots(a, b, c) that returns the two roots of the equation. The returned roots should be float objects when the roots are real, otherwise the function returns complex objects. find distance between two points in opencv python components of a defect report? react native elements input highlight onfous robots txt allow folder disallow subfolder mat autocomplete async dota 2 space to center hero centos remote desktop clients vs remote management for linux bootstrap angular error TS2503: Cannot find namespace 'google'. 10 @Input() mapOptions: google.maps.MapOptions; online doctor appointments in pakistan import type * as PrettyFormat from './types'; how to count positive elements numpy python headers requests fake dart exit loop core components of api router navigate pass params what are defect categories flutter scroll text on overflow axios defaults headers common axis limits matlab Cave Generator test events where not received get number of objects in enum c++ not able to use fonts awesome in react cannot be loaded because running scripts is disabled on this system. ng-select disabled Warning: call_user_func_array() expects parameter 1 to be a valid callback mat-sort not working in dynamically generated table open ports on RPI builtins.TypeError: choice() takes 2 positional arguments but 4 were given how to make a bool appear in all scripts unity angular separate material module convert all size units to terabytes in python html select placeholder iterate through objects with python dependencymanagement imports mavenbom components of cucumber bdd framework chevrons or angle brackets latex whats $_.FullName in powershell how to initialize vector in c++ with all elements 0 ionic scroll to item programmatically
Browse Popular Code Answers by Language
.pop_code_langs{
}
SQL sql update query sql insert query sql add column create table sql sql order by sql case when sql foreign key insert into mysql mysql create user create table in mysql mysql add foreign key sql select unique sql delete row create database mysql sql server delete column alter table delete column ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) update value postgresql mysql format date insert into select alter table add column postgresql list db mysql list databases mysql grant all privileges to a user mysql delete row update column sql server sql server convert string to date mysql auto increment install postgresql ubuntu sql server substringShell/Bash delete local branch create remore git branch install node js ubuntu delete a branch in git install angular cli git add remote remove directory linux git command to create a branch how to install docker ubuntu git force pull delete local branch git git switch branch how to switch branch how to revert back to previous commit in git oh my zsh install deb file linux how to see ports in use install jupyter notebook git undo last commit install react bootstrap how to see all branches in git install latest npm how to uninstall npm packages git push to branch set up git repository delete branch git rename branch git git delete branch git discard local changes git rename branchSwift swift for loop how to loop swift use timer swift create dictionary swift time formats swift swift generate random number create alert in swift show alert swiftui Split a String into an array in Swift convert string to int swift dart capitalize first letter of each word swift change navigation bar color display image from url swift swift get current time add navigation bar button swiftui set image width and height swiftui fnb swift code swift filter array swift hide navigation bar conert data to string swift swift loop through array center text swiftui swift append element to array ios swift convert int to string add top corner radius swift format decimal place swift give background color swiftui replace character in swift play sound swift stack overflow add buton border swiftJavascript Javascript remove array item by value remove element from array javascript remove a particular element from array javascript removing item from array javascript array remove element javascript remove element from array js remove speific item from array array remove element js how do you remove a remove element from array in javascript Javascript Remove Element By Id Code Example parse integer javascript Javascript string to int string to number js javascript to integer string to int javascript javascript string to integer javascript convert string to number javascript parse a json string js json to object Javascript parse json string javascript json decode json parse string javascript parse json javascript json parse create react app javascript for loop how to convert string to int js js switch case javascript set and get cookie javascript get cookieVBA excel vba find get last row in column vba for loop vba for next loop skip excel vba for next loop skip message box VBA regex numeric digits excel vba find last column excel date to string conversion vba range to array excel vba array vba array from worksheet data excel formula how to create strings containing double quotes xlvba double quotes in string literal xl vba double quotes in string literal excelvba declare global constant xl-vba declare global constant xlvba declare globals vba global vs public excel vba how to declare a global variable excel vba check cell not empty excel add leading zeros to existing values excel vba wait string to date vb excel vba how to check if a worksheet cell is empty xlvba function sheet exists excel vba test or check if sheet exists xl-vba function sheet exists xlvba check if sheet exists vba function sheet exists vb switch casePython python split string python if else python write to file python remove element from list python list to string python iterate dictionary key value python virtual environment install opencv python try except python python string to int python read json file enumerate in python python date and time get index of list python how to add a column to a pandas df random number python python sort list drop a column pandas code how pandas save csv file csv python write python check if file exists api in python python project ideas virtual env create python python date format python read file line by line python zip function python pip install python dictionary methods python list lengthR bootstrap cdn link read csv in r r install package r for loop simple data frame in R read csv file in r r remove na from dataset how to do linear regression in r r remove row dataframe how to import csv file in r r write to csv r replace na with 0 how to read excel file in r r create a vector fuction in r print in r r combine strings write to csv in r how to change column names in r r language legend parameters write csv in r r read file rep in r r set dataframe column names normalization in r r create a list drop na in R rename column in r read xlsx in r r data typesRuby how create migration rails ruby for loop ruby each do method ruby each with index how to add column to table rails how to delete a table in rails ruby array has element change column rails example rails kill server comment in ruby how to check ruby version how to I change the name of a column in rails uruby to lower case A Ruby write to file example Add references rails migration how to remove columns from rails how to add to an array ruby ruby find in array if string contain string ruby default value rails migration ruby replace certain character get size of array in ruby ruby each array string interpolation ruby append array in ruby drop rails all db rails remove column from model ruby get current datetime heroku restart rails server rails link_to classRust hello world rust for loops in rust rust convertinging string to int how to make an array in rust rust match string read file rust rustlang error: linker `link.exe` not found how to index a string in rust range in rust rust get command line arguments how to read from stdin rust array as a parameter rust how to concatenate two &str in rust if let some rust how to split a string by spaces rust casting in rust rust get current directory rust printing string on stdout how to create a window in rust lang display trait rust how to convert int to float in rust rust non derived debug trait example check if a file exists rust rust replace characters rust trait inheritance rust random number in range rust lang sleep rust reverse range rust impl display rustlang try fromPHP php append to array php format date php check if string contains word php string contains substring php string to int php parse json php length of array php split string php sql insert php get current date and time php try catch laravel clear cache laravel run seed php loop through array count array php Allowed memory size of 1610612736 bytes exhausted in array php php connect to mysql php array length php sql connection php json encode query sql in php php array to string array_search in php php date now php for loop phhp for loop php delete array item by value not key common array methods php php delete element by valueJava int to string java java scanner stack overflow java random number java array declaration How to split a string in Java sort array java java string to int string to int java how to get a user input in java java split string convert string to int java java how to get current date array in java scanner in java how to create an array in java how to take input in java java string to char array convert char to string java list in java .length array java java convert String to int java parse ineger java read from file writing to a file in java length of string java java how to print an array string replace java java data types java check if string is number java check for string lengthHtml bootstrap text color bootstarp btn colors radio buttons html HTML button onclick html drop down list how to link css to html bootstrap login form html navigation bar html input types commenting in html html form checkbox bootstrap 4 dropdown html input textarea http status codes bootstrap border color bootstrap 4 center div html background image html select list new line html create a dropdown in html bootstrap bootstrap select box how to use the label tag in html html center button include script in html bootstrap align right video tag html html a href bootstrap display none import js in html html font sizeC++ change int to string cpp getline in c++ c++ get length of array range of long long in c++ length of string c++ how to sort a vector in c++ convert stirng to int c++ how to reverse a string in c++ string to int c++ c++ reverse string remove value from vector c++ array length c++ linkedlist implementation in c++ find vector in c++ c++ switch case statement remove element by index from vector c++ declaring 2d vector in c++ read a file c++ flutter datetime format convert entire string to lowercase c++ making random numbers in c++ c++ for loop input a string in c++ c++ template function string in cpp convert decimal to binary in c++ list conda environments random number in c++ how to declare a function in c++ how to sort an array c++CSS css background image css media queries background color gradient css center a div in css css center image bootstrap btn classes Attack on titan css box shadow background image size css css align center link css with html css bold text css opacity example table border css linear gradient css css flex center background image css css rounded corners box shadow css font size css hide scrollbar css css style placeholder media query css image cover css image size css justify content css text shadow css position sticky css css align items vertical center css media queryTypeScript angular navigate using component check if dict key exists python How to download windows 10 ISO React with Typescript how to see all commits in git comments in css angular date pipe how to check whether file exists in python how to check list of open ports in linux how to print array elements in java for loop typescript cannot be loaded because running scripts is disabled on this system Can't bind to 'formGroup' since it isn't a known property of 'form install typescript using npm use google fonts in css angular number pipe see what ports are in use typescript remove object from array looping through two lists python voting results 2020 live google fonts roboto font awesome angular python requests get proxy How to Reload a Component in Angular typescript optional parameters mat-form-field must contain a MatFormFieldControl append to lists python create react app with typescript config get arguments from url flask react children typescriptC# c sharp split string c# switct case foreach syntax c# c# get set c# date formats custom string to int c# c# two dimensional array c sharp substring c# string to datetime try catch c# csharp datetime string format how to make a for loop in c# c# how to convert string to int c sharp string replace regex in c# c# initialize array c# user input c sharp int to string c sharp how to read a text file c# create array asp.net c# write string to text file c# length of array c# throw new exception population of the world c sharp string interpolation movement script c# .sh script: check if file exist how to rotate object unity c sharp tryparse for loop c#Kotlin for loop kotlin coroutines kotlin android dependency toast in kotlin make array list kotlin setOnClickListener example kotlin kotlin static method user input in kotlin make hashmap kotlin intent kotlin example how to write hello world in kotlin Kotlin round double string 2d array in kotlin kotlin add element to array what is difference between val and var kotlin comments in kotlin kotlin remove name from an activity how to declare string array in kotlin kotlin list add implement spinner in android kotlin Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option on click in kotlin android recyclerview scroll to bottom android custom AlertDialog theme how to call a function after delay in kotlin android android disable landscape mode kotlin not configured android studio create empty array in kotlin kotlin mutable list implementation random string generator kotlin kotlin in how to set without findviewbyidC struct in C size of an array c for loop c ModuleNotFoundError: No module named 'cv2' string to int c read files in c c int to string write in file in c switch statement in c c concatenate strings for loop in c string length c merge sort in c latex font sizes c bubble sort fahrenheit to celsius formula c data types switch case c visual studio code fibonacci series using recursion enum in c c user input how to run a update comand in linux factorial of a given number in c typedef in c fibonacci series in c bool in c how to print in c boolean in c how to print int in cLua lua for loop where can i learn lua where do lua tables start loop true childs roblox lua how to make a loop lua while loops lua add table to value lua click detection roblox on touch script length of table lua block commenting lua wait function lua while in lua Lua array add item lua in pairs repeating loop roblox lua How to remove index from table lua not equal print table lua how to get a random number in lua lua string to number roblox check if player has gamepass lua loop through table lua variable types lua round number sleep function lua break in lua Roblox Studio TweenService Example in lua 2020 lua for each in table how to execute scripts when a button gui is pressed robloxMatlab ModuleNotFoundError: No module named 'tkinter' to detect if a data frame has nan values matlab matrix zeros matlab zero vector matlab matrix index matlab matrix size find location of max value in array matlab zsh corrupt history file matlab length of array No module named 'imblearn' break loop for matlab matlab read image num to string matlab wait time matlab matlab clear plot fprintf in directory matlab multiple of value matlab if directory exist matlab save mat file script in matlab directory diff(x) matrix matlab matlab time function mean without nan matlab eval matlab variable name matlab read audio isnull in matlab matlab unix time to datetime Unrecognized function or variable 'matlab.internal.addons.updates.file exchange addon.getType FromPackageInfoUrl'. wait until job matlab load value inside job matlab nan size matlabDart Flutter turn string to int flutter push route flutter image asset how to show snackbar in flutter flutter list tile how to use hexadecimal color in flutter color() in flutter flutter container rounded corners timer in flutter flutter get current date rounded raisedbutton in flutter switch case in dart how to add padding flutter loop in dart dart card outline container flutter border radius flutter button border radius how to create a toast in flutter generate random int dart declaring and initializing a list in dart text fieldform color flutter toast in flutter New Year's Eve tabs flutter example dart random number text overflow ellipsis flutter text in column flutter overflow ellipsis not working conditionalstatement in widget flutter flutter container margin flutter center rowGo mongo console find by id throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn)) drop mongo database signIn google firebase flutter golang convert int to string connect google drive to colab drop a collection in mongodb google forms answers golang string split golang convert string to int go add to slice set up google analytics make image go to center of page how to see number of words in google docs mongodb export entire database golang convert string to int64 initialize map in golang google cloudb pricing golang array syntax Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project upload drop mongodb database cross out google docs csgo jump throw bind go string to byte array how to stop google colab from disconnecting mongo db show datbae unzip a file in google colab go for loop how to search google how to delete google projectBASIC Microsoft Flight Simulator. how to send basic auth using fetch basic latex document visual basic how to declare a variable vb string to int32 how to open d drive using conda prompt add combobox in datagridview vb.net visual basic script msgbox how to add basic authentication on haproxy backend server mid visual basic function itextsharp landscape a4 Custom exception visual basic shortcut to rename the file on lenovo s340 Delete all data in neo4j removing illlegal char from filename How to configure cryptodredge docker-compose.yml reusable variablesAssembly the answer to life the universe and everything hello world in assembly using shape property in flutter for circular corner appending a vector in vector boku ni pico start learning assembly MOD OPERATOR for register in arm assembly array month name hello world x64 assembly cancel shutdown timer No assembly found containing an OwinStartupAttribute. array days of the week Arm assembly fibonacci dot net core 3.1 The type or namespace name 'TestClassAttribute' could not be found (are you missing a using directive or an assembly reference?) matlab machine epsilon program in assembly language to find even numbers from 1 to 10Perl perl for loop perl print array perl get date perl array loop perl set date perl print hash perl string length perl set a specific datetime perl http request perl replace substring perl datetime formatting perl last characters perl hash size perl get first characters perl validate integer perl validate id numberDelphi groblersdal to middelburg How to read text files in delphi for loop delphi delphi read file get current date delphi Delphi how copy works delete in delphi how to make message in delphi Erro ao inserir invalid byte sequence for encoding “UTF8”: 0x00 delphi postgresql length of string in delphi criar procedure/function delphi atalho delphi keydown enter Multi thread delphi get last element of array delphi delphi asking for inpot via dialog boxObjective-C get product image woocommerce xcode format code Error: EPERM: operation not permitted, mkdir 'C:\Users\SHUBHAM~KUNWAR' command not found: create-react-app uialertcontroller example objective c nstimer example objective c loop array objective c Error: EPERM: operation not permitted, mkdir 'C:\Users\Anubhab' command not found: create-react-app obj c write file worst programming language vc_map type number how to add undelete texts to textfield in ios obj c get point of intersection of 2 linesScala ValueError: If using all scalar values, you must pass an index scala hello world how to add comment in scala comments in scala scala get the first element of a seq how to get the nth element in a list in scala scala get file from url as string scala last element in listHaskell list comprehension haskell haskell multiline comment haskell get last element of list last element of list haskell string to list haskell hello world in haskell get first char from string haskellPascal pascal online compiler comment in pascal comments in pascal producto de matrices pascalJulia how to push an element to array in julia remove character from string julia julia dereference pointerGroovy for loop groovy groovy wait time groovy implementation of the interfaceElixir map merge elixir elixir random number elixir length of listFortran fortran do while fortran int to string write integer value in name fortran 90ActionScript visual studio code change terminal color TypeError: Cannot read property 'version' of undefinedClojure clojure get list first item how to make a range clojureAbap abap concatenate table abap loop exampleScheme how to pass unction in scheme how to make a list in scheme
Browse Other Code Languages
Abap
ActionScript
Assembly
BASIC
C
Clojure
Cobol
C++
C#
CSS
Dart
Delphi
Elixir
Erlang
Fortran
F#
Go
Groovy
Haskell
Html
Java
Javascript
Julia
Kotlin
Lisp
Lua
Matlab
Objective-C
Pascal
Perl
PHP
PostScript
Prolog
Python
R
Ruby
Rust
Scala
Scheme
Shell/Bash
Smalltalk
SQL
Swift
TypeScript
VBA
WebAssembly
Whatever
Grepper
Features
Reviews
Code Answers
Search Code Snippets
Pricing
FAQ
Welcome
Browsers Supported
Grepper Teams
Documentation
Adding a Code Snippet
Viewing & Copying Snippets
Social
Twitter
Facebook
Legal
Privacy Policy
Terms
Contact
[email protected]
//gets the type of browser
function detectBrowser() {
if((navigator.userAgent.indexOf("Opera") || navigator.userAgent.indexOf('OPR')) != -1 ) {
return 'Opera';
} else if(navigator.userAgent.indexOf("Chrome") != -1 ) {
return 'Chrome';
} else if(navigator.userAgent.indexOf("Safari") != -1) {
return 'Safari';
} else if(navigator.userAgent.indexOf("Firefox") != -1 ){
return 'Firefox';
} else if((navigator.userAgent.indexOf("MSIE") != -1 ) || (!!document.documentMode == true )) {
return 'IE';//crap
} else {
return 'Unknown';
}
}
function convertToFireFox(){
var els = document.getElementsByClassName("lead_click");
for(var i = 0; i < els.length; i++) {
els[i].innerHTML = els[i].innerHTML.replace("CHROME","FIREFOX");
els[i].href = "https://addons.mozilla.org/en-US/firefox/addon/grepper/"
//els[i].classList.remove("class_name");
els[i].className += " firefox_icon"
}
}
if(detectBrowser()==="Firefox"){
convertToFireFox();
}
function makeRequestToApp (method, url, data) {
var id = localStorage.getItem('user_id');
var token = localStorage.getItem('access_token');
return new Promise(function (resolve, reject) {
var xhr = new XMLHttpRequest();
window.currentHTTPRequest = xhr;
xhr.open(method, url);
if(typeof id !=='undefined'){
xhr.setRequestHeader("x-auth-id", id);
}
if(typeof token !=='undefined'){
xhr.setRequestHeader("x-auth-token", token);
}
xhr.onload = function () {
if (this.status >= 200 && this.status < 300) {
resolve(xhr.response);
} else {
reject({
status: this.status,
statusText: xhr.statusText
});
}
};
xhr.onerror = function () {
reject({
status: this.status,
statusText: xhr.statusText
});
};
if(method=="POST" && data){
xhr.send(data);
}else{
xhr.send();
}
});
}
function loginOrRegister(is_login){
var user_id = localStorage.getItem('user_id');
var token = localStorage.getItem('access_token');
if(!user_id || !token){
showLoginPopup(is_login);
}else{
makeRequestToApp('POST', "/api/start_session.php?id="+user_id).then(function(d){
if(d != 1){
showLoginPopup(is_login);
}else{
window.location="/app/index.php";
}
});
}
}
function showLoginPopup(is_login){
var tp = document.createElement("div");
tp.classList.add('tays_popup2');
tp.setAttribute('id','tays_login_popup');
tp.addEventListener('mousedown',function(event){
if(event.target === this || event.target.classList.contains('tays_popup2_close_button')){
tp.parentNode.removeChild(tp);
}
}, false);
var tpi = document.createElement("div");
tpi.classList.add('tays_popup2_inner');
var tpi_close= document.createElement("div");
tpi_close.classList.add('tays_popup2_close_button');
tpi_close.textContent="X";
tpi.appendChild(tpi_close);
var tpic = document.createElement("div");
tpic.classList.add('tays_popup2_content');
var tpici = document.createElement("div");
tpici.classList.add('tays_popup2_content_inner');
tpic.appendChild(tpici);
tpi.appendChild(tpic);
tp.appendChild(tpi);
tp.style.display="block";
document.body.appendChild(tp);
if (typeof makeRequest !== "function") {
// This function exists
function makeRequest (method, url, data) {
return new Promise(function (resolve, reject) {
var xhr = new XMLHttpRequest();
window.currentHTTPRequest = xhr;
xhr.open(method, url);
xhr.onload = function () {
if (this.status >= 200 && this.status < 300) {
resolve(xhr.response);
} else {
reject({
status: this.status,
statusText: xhr.statusText
});
}
};
xhr.onerror = function () {
reject({
status: this.status,
statusText: xhr.statusText
});
};
if(method=="POST" && data){
xhr.send(data);
}else{
xhr.send();
}
});
}
}
makeRequest('GET',"/app/register_html.php").then(function(html){
tpici.innerHTML=html;
window.isRegistrationPopup=true;
var loginScript = document.createElement('script');
loginScript.src="/app/js/register.js?v=4";
document.head.appendChild(loginScript);
loginScript.onload=function(){
var gScript = document.createElement('script');
gScript.src = "https://apis.google.com/js/client:platform.js?onload=renderSigninButton";
document.head.appendChild(gScript);
setIsLoginStatus(is_login);
}
});
}
#tays_login_popup{
background: rgba(0,0,0,.6);
}
#tays_login_popup.tays_popup2{
background:rgba(0,0,0,.4);
cursor:pointer;
display:block;
display:none;
height:100%;
position:fixed;
text-align:center;
top:0;
left:0;
width:100%;
z-index:999999999;
}
#tays_login_popup .tays_popup2_inner {
background-color: #fff ;
box-shadow: 5px 5px 30px #555 ;
display: inline-block ;
position:relative ;
height: auto ;
min-height: 100px ;
vertical-align: middle ;
width: 400px;
position: relative ;
top:10% ;
border-radius: 8px ;
padding: 0px ;
text-align:left ;
overflow:hidden ;
cursor:auto ;
}
#tays_login_popup .tays_popup2_content{
width:100%;
min-height:200px;
}
#tays_login_popup .tays_popup2_close_button {
background-color:#24292e;
color:#fff;
/*border-radius: 50px;*/
cursor: pointer;
display: inline-block;
font-family: arial;
position: absolute;
top: 10px;
right: 10px;
font-size: 14px;
line-height: 20px;
width: 20px;
height: 20px;
text-align: center;
z-index:10000000;
}
//var doPageLog=true;
//var doPageLogStrat='old_search';
function saveImage(){
//var search=getUrlParameter("search_term");
// search=search.replace(/\+/g, "");
// search=search.replace(/\s/g, "");
var search='roperty-'map'-does-not-exist-on-type-'observable'.';
search=search.toLowerCase();
console.log(document.querySelector(".CodeMirror"));
html2canvas(document.querySelector(".CodeMirror")).then(canvas => {
document.body.appendChild(canvas);
theCanvas = canvas;
canvas.toBlob(function(blob) {
var name=search+".png";
fetch(`/add_image.php?name=`+name, {method:"POST", body:blob})
.then(response => console.log(response.text()))
});
});
}
var size = {
width: window.innerWidth || document.body.clientWidth,
height: window.innerHeight || document.body.clientHeight
}
/*
if(size.width > 1400){
setTimeout(function(){
saveImage();
}, 3000);
}
*/
#google_register_box{
width:310px;
margin:0 auto;
}
#gSignIn{
border:1px solid #333;
color:#333;
width:300px;
margin:0 auto;
}
X
Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
No Good?
Help us improve our code examples by registering to vote on and add answers. Join our developer community to improve your dev skills and code like a boss!
Continue with Google
By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
function hideRegisterPopup(){
document.getElementById("web_register_popup").style.display="none";
document.getElementById("blur_me").style.filter= "none";
document.getElementById("web_register_popup_downvote_text").style.display="none";
document.getElementById("web_register_popup_standard_text").style.display="none";
}
//put show login logic here
function showLoginRequiredIfNeeded(goodOrBad){
goodOrBad = (typeof goodOrBad !== 'undefined') ? goodOrBad : 0
if(goodOrBad === 1){
//upvote
document.getElementById("web_register_popup_standard_text").style.display="block";
}else if(goodOrBad === 2){
//downtvote
document.getElementById("web_register_popup_downvote_text_image").src="/images/sorry_fixed.gif";
document.getElementById("web_register_popup_downvote_text").style.display="block";
}else{
document.getElementById("web_register_popup_standard_text").style.display="block";
}
document.getElementById("web_register_popup").style.display="block";
document.getElementById("blur_me").style.filter= "blur(6px)";
//document.getElementById("blur_me").addEventListener("click", function() {
// hideRegisterPopup();
//});
}
function autoLogin() {
gapi.signin2.render('gSignIn', {
'scope': 'profile email',
'width': 300,
'height': 50,
'longtitle': true,
'theme': 'light',
'onsuccess': function(user){
var id_token = user.getAuthResponse().id_token;
var profile = user.getBasicProfile();
var formData = new FormData();
formData.append('credential',id_token);
makeRequest('POST', "/api/google_login.php",formData).then(function(r){
window.location.reload();
//if(r =="just_created"){
// showHeroPopup();
//}else{
// //showHeroPopup();
// window.location.reload();
//}
});
},
'onfailure':function(error) {
// console.log("no good");
//showLoginRequiredIfNeeded();
}
});
}
//non logged in user
//What should logic be?
//At least 5 page hits?
X
Grepper Account Login Required
Oops, You will need to install Grepper and log-in to perform this action.
Install Grepper Here
document.getElementById("tays_popup2_close_button").addEventListener("click",
function(e){
document.getElementById("must_register_popup").style.display="none";
});
document.getElementById("must_register_popup").addEventListener("click",
function(e){
if(e.target== this){
document.getElementById("must_register_popup").style.display="none";
}
});
var box1holder= document.getElementById("answer_box1_holder");
var box1Height = box1holder.offsetHeight;
if(box1Height > 1300){
document.getElementById("right_add_long1_2").style.display="block";
//document.getElementById("right_add_long1_2").innerHTML=' ';
document.getElementById("right_add_long1_2").innerHTML='
';
//I dont think we ever want this
//(adsbygoogle = window.adsbygoogle || []).push({});
}
/*
if(box1Height > 2300){
document.getElementById("right_add_long1_3").style.display="block";
document.getElementById("right_add_long1_3").innerHTML=' ';
(adsbygoogle = window.adsbygoogle || []).push({});
}
var box2holder= document.getElementById("language_snipper_cats_holder");
var box2Height = box2holder.offsetHeight;
if(box2Height > 2000){
document.getElementById("right_add_long_2_2").style.display="block";
document.getElementById("right_add_long_2_2").innerHTML=' ';
(adsbygoogle = window.adsbygoogle || []).push({});
}
if(box2Height > 3400){
document.getElementById("right_add_long_2_3").style.display="block";
document.getElementById("right_add_long_2_3").innerHTML=' ';
(adsbygoogle = window.adsbygoogle || []).push({});
}
*/
const request = this . evidenceService. get ( ) . pipe (
map ( ( res) => res. data) ) ,
catchError ( error => Observable. of ( null ) )
) ;