var t,e,gi=Object.defineProperty,yi=Object.defineProperties,mi=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Bn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,Dn=(B,p,d)=>p in B?gi(B,p,{enumerable:!0,configurable:!0,writable:!0,value:d}):B[p]=d,Vt=(B,p)=>{for(var d in p||(p={}))Bn.call(p,d)&&Dn(B,d,p[d]);if(De)for(var d of De(p))Mn.call(p,d)&&Dn(B,d,p[d]);return B},Le=(B,p)=>yi(B,mi(p)),Be=(B,p)=>{var d={};for(var O in B)Bn.call(B,O)&&p.indexOf(O)<0&&(d[O]=B[O]);if(null!=B&&De)for(var O of De(B))p.indexOf(O)<0&&Mn.call(B,O)&&(d[O]=B[O]);return d},Kt=(B,p,d)=>new Promise((O,u)=>{var y=o=>{try{v(d.next(o))}catch(r){u(r)}},g=o=>{try{v(d.throw(o))}catch(r){u(r)}},v=o=>o.done?O(o.value):Promise.resolve(o.value).then(y,g);v((d=d.apply(B,p)).next())});t=self,e=function(){return(()=>{var B={d:(R,T)=>{for(var I in T)B.o(T,I)&&!B.o(R,I)&&Object.defineProperty(R,I,{enumerable:!0,get:T[I]})}};B.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(R){if("object"==typeof window)return window}}(),B.o=(R,T)=>Object.prototype.hasOwnProperty.call(R,T),B.r=R=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(R,"t",{value:!0})};var p,R,d={};B.r(d),B.d(d,{AbortError:()=>y,DefaultHttpClient:()=>X,HttpClient:()=>s,HttpError:()=>O,HttpResponse:()=>i,HttpTransportType:()=>D,HubConnection:()=>M,HubConnectionBuilder:()=>J,HubConnectionState:()=>L,JsonHubProtocol:()=>Ct,LogLevel:()=>p,MessageType:()=>K,NullLogger:()=>f,Subject:()=>q,TimeoutError:()=>u,TransferFormat:()=>W,VERSION:()=>h});class O extends Error{constructor(T,I){const Y=new.target.prototype;super(`${T}: Status code '${I}'`),this.statusCode=I,this.__proto__=Y}}class u extends Error{constructor(T="A timeout occurred."){const I=new.target.prototype;super(T),this.__proto__=I}}class y extends Error{constructor(T="An abort occurred."){const I=new.target.prototype;super(T),this.__proto__=I}}class g extends Error{constructor(T,I){const Y=new.target.prototype;super(T),this.transport=I,this.errorType="UnsupportedTransportError",this.__proto__=Y}}class v extends Error{constructor(T,I){const Y=new.target.prototype;super(T),this.transport=I,this.errorType="DisabledTransportError",this.__proto__=Y}}class o extends Error{constructor(T,I){const Y=new.target.prototype;super(T),this.transport=I,this.errorType="FailedToStartTransportError",this.__proto__=Y}}class r extends Error{constructor(T){const I=new.target.prototype;super(T),this.errorType="FailedToNegotiateWithServerError",this.__proto__=I}}class n extends Error{constructor(T,I){const Y=new.target.prototype;super(T),this.innerErrors=I,this.__proto__=Y}}class i{constructor(T,I,Y){this.statusCode=T,this.statusText=I,this.content=Y}}class s{get(T,I){return this.send(Le(Vt({},I),{method:"GET",url:T}))}post(T,I){return this.send(Le(Vt({},I),{method:"POST",url:T}))}delete(T,I){return this.send(Le(Vt({},I),{method:"DELETE",url:T}))}getCookieString(T){return""}}(R=p||(p={}))[R.Trace=0]="Trace",R[R.Debug=1]="Debug",R[R.Information=2]="Information",R[R.Warning=3]="Warning",R[R.Error=4]="Error",R[R.Critical=5]="Critical",R[R.None=6]="None";class f{constructor(){}log(T,I){}}f.instance=new f;const h="6.0.8";class l{static isRequired(T,I){if(null==T)throw new Error(`The '${I}' argument is required.`)}static isNotEmpty(T,I){if(!T||T.match(/^\s*$/))throw new Error(`The '${I}' argument should not be empty.`)}static isIn(T,I,Y){if(!(T in I))throw new Error(`Unknown ${Y} value: ${T}.`)}}class c{static get isBrowser(){return"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return"object"==typeof self&&"importScripts"in self}static get isReactNative(){return"object"==typeof window&&void 0===window.document}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function m(R,T){let I="";return a(R)?(I=`Binary data of length ${R.byteLength}`,T&&(I+=`. Content: '${function(Y){const F=new Uint8Array(Y);let et="";return F.forEach(ot=>{et+=`0x${ot<16?"0":""}${ot.toString(16)} `}),et.substr(0,et.length-1)}(R)}'`)):"string"==typeof R&&(I=`String data of length ${R.length}`,T&&(I+=`. Content: '${R}'`)),I}function a(R){return R&&"undefined"!=typeof ArrayBuffer&&(R instanceof ArrayBuffer||R.constructor&&"ArrayBuffer"===R.constructor.name)}function E(R,T,I,Y,F,et,ot){return Kt(this,null,function*(){let ut={};if(F){const Ot=yield F();Ot&&(ut={Authorization:`Bearer ${Ot}`})}const[dt,vt]=A();ut[dt]=vt,R.log(p.Trace,`(${T} transport) sending data. ${m(et,ot.logMessageContent)}.`);const gt=a(et)?"arraybuffer":"text",St=yield I.post(Y,{content:et,headers:Vt(Vt({},ut),ot.headers),responseType:gt,timeout:ot.timeout,withCredentials:ot.withCredentials});R.log(p.Trace,`(${T} transport) request complete. Response status: ${St.statusCode}.`)})}class x{constructor(T,I){this.i=T,this.h=I}dispose(){const T=this.i.observers.indexOf(this.h);T>-1&&this.i.observers.splice(T,1),0===this.i.observers.length&&this.i.cancelCallback&&this.i.cancelCallback().catch(I=>{})}}class S{constructor(T){this.l=T,this.out=console}log(T,I){if(T>=this.l){const Y=`[${(new Date).toISOString()}] ${p[T]}: ${I}`;switch(T){case p.Critical:case p.Error:this.out.error(Y);break;case p.Warning:this.out.warn(Y);break;case p.Information:this.out.info(Y);break;default:this.out.log(Y)}}}}function A(){let R="X-SignalR-User-Agent";return c.isNode&&(R="User-Agent"),[R,b(h,k(),c.isNode?"NodeJS":"Browser",_())]}function b(R,T,I,Y){let F="Microsoft SignalR/";const et=R.split(".");return F+=`${et[0]}.${et[1]}`,F+=` (${R}; `,F+=T&&""!==T?`${T}; `:"Unknown OS; ",F+=`${I}`,F+=Y?`; ${Y}`:"; Unknown Runtime Version",F+=")",F}function k(){if(!c.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function _(){if(c.isNode)return process.versions.node}function w(R){return R.stack?R.stack:R.message?R.message:`${R}`}class N extends s{constructor(T){if(super(),this.u=T,"undefined"==typeof fetch){const I=require;this.p=new(I("tough-cookie").CookieJar),this.m=I("node-fetch"),this.m=I("fetch-cookie")(this.m,this.p)}else this.m=fetch.bind(function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==B.g)return B.g;throw new Error("could not find global")}());if("undefined"==typeof AbortController){const I=require;this.v=I("abort-controller")}else this.v=AbortController}send(T){return Kt(this,null,function*(){if(T.abortSignal&&T.abortSignal.aborted)throw new y;if(!T.method)throw new Error("No method defined.");if(!T.url)throw new Error("No url defined.");const I=new this.v;let Y;T.abortSignal&&(T.abortSignal.onabort=()=>{I.abort(),Y=new y});let F,et=null;T.timeout&&(et=setTimeout(()=>{I.abort(),this.u.log(p.Warning,"Timeout from HTTP request."),Y=new u},T.timeout));try{F=yield this.m(T.url,{body:T.content,cache:"no-cache",credentials:!0===T.withCredentials?"include":"same-origin",headers:Vt({"Content-Type":"text/plain;charset=UTF-8","X-Requested-With":"XMLHttpRequest"},T.headers),method:T.method,mode:"cors",redirect:"follow",signal:I.signal})}catch(dt){throw Y||(this.u.log(p.Warning,`Error from HTTP request. ${dt}.`),dt)}finally{et&&clearTimeout(et),T.abortSignal&&(T.abortSignal.onabort=null)}if(!F.ok){const dt=yield j(F,"text");throw new O(dt||F.statusText,F.status)}const ot=j(F,T.responseType),ut=yield ot;return new i(F.status,F.statusText,ut)})}getCookieString(T){let I="";return c.isNode&&this.p&&this.p.getCookies(T,(Y,F)=>I=F.join("; ")),I}}function j(R,T){let I;switch(T){case"arraybuffer":I=R.arrayBuffer();break;case"text":default:I=R.text();break;case"blob":case"document":case"json":throw new Error(`${T} is not supported.`)}return I}class H extends s{constructor(T){super(),this.u=T}send(T){return T.abortSignal&&T.abortSignal.aborted?Promise.reject(new y):T.method?T.url?new Promise((I,Y)=>{const F=new XMLHttpRequest;F.open(T.method,T.url,!0),F.withCredentials=void 0===T.withCredentials||T.withCredentials,F.setRequestHeader("X-Requested-With","XMLHttpRequest"),F.setRequestHeader("Content-Type","text/plain;charset=UTF-8");const et=T.headers;et&&Object.keys(et).forEach(ot=>{F.setRequestHeader(ot,et[ot])}),T.responseType&&(F.responseType=T.responseType),T.abortSignal&&(T.abortSignal.onabort=()=>{F.abort(),Y(new y)}),T.timeout&&(F.timeout=T.timeout),F.onload=()=>{T.abortSignal&&(T.abortSignal.onabort=null),F.status>=200&&F.status<300?I(new i(F.status,F.statusText,F.response||F.responseText)):Y(new O(F.response||F.responseText||F.statusText,F.status))},F.onerror=()=>{this.u.log(p.Warning,`Error from HTTP request. ${F.status}: ${F.statusText}.`),Y(new O(F.statusText,F.status))},F.ontimeout=()=>{this.u.log(p.Warning,"Timeout from HTTP request."),Y(new u)},F.send(T.content||"")}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class X extends s{constructor(T){if(super(),"undefined"!=typeof fetch||c.isNode)this.$=new N(T);else{if("undefined"==typeof XMLHttpRequest)throw new Error("No usable HttpClient found.");this.$=new H(T)}}send(T){return T.abortSignal&&T.abortSignal.aborted?Promise.reject(new y):T.method?T.url?this.$.send(T):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(T){return this.$.getCookieString(T)}}class Z{static write(T){return`${T}${Z.RecordSeparator}`}static parse(T){if(T[T.length-1]!==Z.RecordSeparator)throw new Error("Message is incomplete.");const I=T.split(Z.RecordSeparator);return I.pop(),I}}Z.RecordSeparatorCode=30,Z.RecordSeparator=String.fromCharCode(Z.RecordSeparatorCode);class nt{writeHandshakeRequest(T){return Z.write(JSON.stringify(T))}parseHandshakeResponse(T){let I,Y;if(a(T)){const ot=new Uint8Array(T),ut=ot.indexOf(Z.RecordSeparatorCode);if(-1===ut)throw new Error("Message is incomplete.");const dt=ut+1;I=String.fromCharCode.apply(null,Array.prototype.slice.call(ot.slice(0,dt))),Y=ot.byteLength>dt?ot.slice(dt).buffer:null}else{const ot=T,ut=ot.indexOf(Z.RecordSeparator);if(-1===ut)throw new Error("Message is incomplete.");const dt=ut+1;I=ot.substring(0,dt),Y=ot.length>dt?ot.substring(dt):null}const F=Z.parse(I),et=JSON.parse(F[0]);if(et.type)throw new Error("Expected a handshake response from the server.");return[Y,et]}}var K,L;!function(R){R[R.Invocation=1]="Invocation",R[R.StreamItem=2]="StreamItem",R[R.Completion=3]="Completion",R[R.StreamInvocation=4]="StreamInvocation",R[R.CancelInvocation=5]="CancelInvocation",R[R.Ping=6]="Ping",R[R.Close=7]="Close"}(K||(K={}));class q{constructor(){this.observers=[]}next(T){for(const I of this.observers)I.next(T)}error(T){for(const I of this.observers)I.error&&I.error(T)}complete(){for(const T of this.observers)T.complete&&T.complete()}subscribe(T){return this.observers.push(T),new x(this,T)}}!function(R){R.Disconnected="Disconnected",R.Connecting="Connecting",R.Connected="Connected",R.Disconnecting="Disconnecting",R.Reconnecting="Reconnecting"}(L||(L={}));class M{constructor(T,I,Y,F){this.C=0,this.S=()=>{this.u.log(p.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},l.isRequired(T,"connection"),l.isRequired(I,"logger"),l.isRequired(Y,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.u=I,this.k=Y,this.connection=T,this.P=F,this.T=new nt,this.connection.onreceive=et=>this.I(et),this.connection.onclose=et=>this._(et),this.H={},this.D={},this.A=[],this.R=[],this.U=[],this.N=0,this.L=!1,this.q=L.Disconnected,this.j=!1,this.M=this.k.writeMessage({type:K.Ping})}static create(T,I,Y,F){return new M(T,I,Y,F)}get state(){return this.q}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(T){if(this.q!==L.Disconnected&&this.q!==L.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!T)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=T}start(){return this.W=this.O(),this.W}O(){return Kt(this,null,function*(){if(this.q!==L.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this.q=L.Connecting,this.u.log(p.Debug,"Starting HubConnection.");try{yield this.F(),c.isBrowser&&window.document.addEventListener("freeze",this.S),this.q=L.Connected,this.j=!0,this.u.log(p.Debug,"HubConnection connected successfully.")}catch(T){return this.q=L.Disconnected,this.u.log(p.Debug,`HubConnection failed to start successfully because of error '${T}'.`),Promise.reject(T)}})}F(){return Kt(this,null,function*(){this.B=void 0,this.L=!1;const T=new Promise((I,Y)=>{this.X=I,this.J=Y});yield this.connection.start(this.k.transferFormat);try{const I={protocol:this.k.name,version:this.k.version};if(this.u.log(p.Debug,"Sending handshake request."),yield this.V(this.T.writeHandshakeRequest(I)),this.u.log(p.Information,`Using HubProtocol '${this.k.name}'.`),this.G(),this.K(),this.Y(),yield T,this.B)throw this.B}catch(I){throw this.u.log(p.Debug,`Hub handshake failed with error '${I}' during start(). Stopping HubConnection.`),this.G(),this.Z(),yield this.connection.stop(I),I}})}stop(){return Kt(this,null,function*(){const T=this.W;this.tt=this.et(),yield this.tt;try{yield T}catch(I){}})}et(T){return this.q===L.Disconnected?(this.u.log(p.Debug,`Call to HubConnection.stop(${T}) ignored because it is already in the disconnected state.`),Promise.resolve()):this.q===L.Disconnecting?(this.u.log(p.Debug,`Call to HttpConnection.stop(${T}) ignored because the connection is already in the disconnecting state.`),this.tt):(this.q=L.Disconnecting,this.u.log(p.Debug,"Stopping HubConnection."),this.st?(this.u.log(p.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.st),this.st=void 0,this.nt(),Promise.resolve()):(this.G(),this.Z(),this.B=T||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(T)))}stream(T,...I){const[Y,F]=this.it(I),et=this.rt(T,I,F);let ot;const ut=new q;return ut.cancelCallback=()=>{const dt=this.ot(et.invocationId);return delete this.H[et.invocationId],ot.then(()=>this.ht(dt))},this.H[et.invocationId]=(dt,vt)=>{vt?ut.error(vt):dt&&(dt.type===K.Completion?dt.error?ut.error(new Error(dt.error)):ut.complete():ut.next(dt.item))},ot=this.ht(et).catch(dt=>{ut.error(dt),delete this.H[et.invocationId]}),this.ct(Y,ot),ut}V(T){return this.Y(),this.connection.send(T)}ht(T){return this.V(this.k.writeMessage(T))}send(T,...I){const[Y,F]=this.it(I),et=this.ht(this.at(T,I,!0,F));return this.ct(Y,et),et}invoke(T,...I){const[Y,F]=this.it(I),et=this.at(T,I,!1,F);return new Promise((ot,ut)=>{this.H[et.invocationId]=(vt,gt)=>{gt?ut(gt):vt&&(vt.type===K.Completion?vt.error?ut(new Error(vt.error)):ot(vt.result):ut(new Error(`Unexpected message type: ${vt.type}`)))};const dt=this.ht(et).catch(vt=>{ut(vt),delete this.H[et.invocationId]});this.ct(Y,dt)})}on(T,I){T&&I&&(T=T.toLowerCase(),this.D[T]||(this.D[T]=[]),-1===this.D[T].indexOf(I)&&this.D[T].push(I))}off(T,I){if(!T)return;T=T.toLowerCase();const Y=this.D[T];if(Y)if(I){const F=Y.indexOf(I);-1!==F&&(Y.splice(F,1),0===Y.length&&delete this.D[T])}else delete this.D[T]}onclose(T){T&&this.A.push(T)}onreconnecting(T){T&&this.R.push(T)}onreconnected(T){T&&this.U.push(T)}I(T){if(this.G(),this.L||(T=this.lt(T),this.L=!0),T){const I=this.k.parseMessages(T,this.u);for(const Y of I)switch(Y.type){case K.Invocation:this.ut(Y);break;case K.StreamItem:case K.Completion:{const F=this.H[Y.invocationId];if(F){Y.type===K.Completion&&delete this.H[Y.invocationId];try{F(Y)}catch(et){this.u.log(p.Error,`Stream callback threw error: ${w(et)}`)}}break}case K.Ping:break;case K.Close:{this.u.log(p.Information,"Close message received from server.");const F=Y.error?new Error("Server returned an error on close: "+Y.error):void 0;!0===Y.allowReconnect?this.connection.stop(F):this.tt=this.et(F);break}default:this.u.log(p.Warning,`Invalid message type: ${Y.type}.`)}}this.K()}lt(T){let I,Y;try{[Y,I]=this.T.parseHandshakeResponse(T)}catch(F){const et="Error parsing handshake response: "+F;this.u.log(p.Error,et);const ot=new Error(et);throw this.J(ot),ot}if(I.error){const F="Server returned handshake error: "+I.error;this.u.log(p.Error,F);const et=new Error(F);throw this.J(et),et}return this.u.log(p.Debug,"Server handshake complete."),this.X(),Y}Y(){this.connection.features.inherentKeepAlive||(this.C=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this.Z())}K(){if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this.dt=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this.ft))){let T=this.C-(new Date).getTime();T<0&&(T=0),this.ft=setTimeout(()=>Kt(this,null,function*(){if(this.q===L.Connected)try{yield this.V(this.M)}catch(I){this.Z()}}),T)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}ut(T){const I=this.D[T.target.toLowerCase()];if(I){try{I.forEach(Y=>Y.apply(this,T.arguments))}catch(Y){this.u.log(p.Error,`A callback for the method ${T.target.toLowerCase()} threw error '${Y}'.`)}if(T.invocationId){const Y="Server requested a response, which is not supported in this version of the client.";this.u.log(p.Error,Y),this.tt=this.et(new Error(Y))}}else this.u.log(p.Warning,`No client method with the name '${T.target}' found.`)}_(T){this.u.log(p.Debug,`HubConnection.connectionClosed(${T}) called while in state ${this.q}.`),this.B=this.B||T||new Error("The underlying connection was closed before the hub handshake could complete."),this.X&&this.X(),this.wt(T||new Error("Invocation canceled due to the underlying connection being closed.")),this.G(),this.Z(),this.q===L.Disconnecting?this.nt(T):this.q===L.Connected&&this.P?this.gt(T):this.q===L.Connected&&this.nt(T)}nt(T){if(this.j){this.q=L.Disconnected,this.j=!1,c.isBrowser&&window.document.removeEventListener("freeze",this.S);try{this.A.forEach(I=>I.apply(this,[T]))}catch(I){this.u.log(p.Error,`An onclose callback called with error '${T}' threw error '${I}'.`)}}}gt(T){return Kt(this,null,function*(){const I=Date.now();let Y=0,F=void 0!==T?T:new Error("Attempting to reconnect due to a unknown error."),et=this.yt(Y++,0,F);if(null===et)return this.u.log(p.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void this.nt(T);if(this.q=L.Reconnecting,this.u.log(p.Information,T?`Connection reconnecting because of error '${T}'.`:"Connection reconnecting."),0!==this.R.length){try{this.R.forEach(ot=>ot.apply(this,[T]))}catch(ot){this.u.log(p.Error,`An onreconnecting callback called with error '${T}' threw error '${ot}'.`)}if(this.q!==L.Reconnecting)return void this.u.log(p.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==et;){if(this.u.log(p.Information,`Reconnect attempt number ${Y} will start in ${et} ms.`),yield new Promise(ot=>{this.st=setTimeout(ot,et)}),this.st=void 0,this.q!==L.Reconnecting)return void this.u.log(p.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(yield this.F(),this.q=L.Connected,this.u.log(p.Information,"HubConnection reconnected successfully."),0!==this.U.length)try{this.U.forEach(ot=>ot.apply(this,[this.connection.connectionId]))}catch(ot){this.u.log(p.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${ot}'.`)}return}catch(ot){if(this.u.log(p.Information,`Reconnect attempt failed because of error '${ot}'.`),this.q!==L.Reconnecting)return this.u.log(p.Debug,`Connection moved to the '${this.q}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(this.q===L.Disconnecting&&this.nt());F=ot instanceof Error?ot:new Error(ot.toString()),et=this.yt(Y++,Date.now()-I,F)}}this.u.log(p.Information,`Reconnect retries have been exhausted after ${Date.now()-I} ms and ${Y} failed attempts. Connection disconnecting.`),this.nt()})}yt(T,I,Y){try{return this.P.nextRetryDelayInMilliseconds({elapsedMilliseconds:I,previousRetryCount:T,retryReason:Y})}catch(F){return this.u.log(p.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${T}, ${I}) threw error '${F}'.`),null}}wt(T){const I=this.H;this.H={},Object.keys(I).forEach(Y=>{const F=I[Y];try{F(null,T)}catch(et){this.u.log(p.Error,`Stream 'error' callback called with '${T}' threw error: ${w(et)}`)}})}Z(){this.ft&&(clearTimeout(this.ft),this.ft=void 0)}G(){this.dt&&clearTimeout(this.dt)}at(T,I,Y,F){if(Y)return 0!==F.length?{arguments:I,streamIds:F,target:T,type:K.Invocation}:{arguments:I,target:T,type:K.Invocation};{const et=this.N;return this.N++,0!==F.length?{arguments:I,invocationId:et.toString(),streamIds:F,target:T,type:K.Invocation}:{arguments:I,invocationId:et.toString(),target:T,type:K.Invocation}}}ct(T,I){if(0!==T.length){I||(I=Promise.resolve());for(const Y in T)T[Y].subscribe({complete:()=>{I=I.then(()=>this.ht(this.bt(Y)))},error:F=>{let et;et=F instanceof Error?F.message:F&&F.toString?F.toString():"Unknown error",I=I.then(()=>this.ht(this.bt(Y,et)))},next:F=>{I=I.then(()=>this.ht(this.vt(Y,F)))}})}}it(T){const I=[],Y=[];for(let F=0;F<T.length;F++){const et=T[F];if(this.Et(et)){const ot=this.N;this.N++,I[ot]=et,Y.push(ot.toString()),T.splice(F,1)}}return[I,Y]}Et(T){return T&&T.subscribe&&"function"==typeof T.subscribe}rt(T,I,Y){const F=this.N;return this.N++,0!==Y.length?{arguments:I,invocationId:F.toString(),streamIds:Y,target:T,type:K.StreamInvocation}:{arguments:I,invocationId:F.toString(),target:T,type:K.StreamInvocation}}ot(T){return{invocationId:T,type:K.CancelInvocation}}vt(T,I){return{invocationId:T,item:I,type:K.StreamItem}}bt(T,I,Y){return I?{error:I,invocationId:T,type:K.Completion}:{invocationId:T,result:Y,type:K.Completion}}}const U=[0,2e3,1e4,3e4,null];class G{constructor(T){this.$t=void 0!==T?[...T,null]:U}nextRetryDelayInMilliseconds(T){return this.$t[T.previousRetryCount]}}class V{}var D,W;V.Authorization="Authorization",V.Cookie="Cookie",function(R){R[R.None=0]="None",R[R.WebSockets=1]="WebSockets",R[R.ServerSentEvents=2]="ServerSentEvents",R[R.LongPolling=4]="LongPolling"}(D||(D={})),function(R){R[R.Text=1]="Text",R[R.Binary=2]="Binary"}(W||(W={}));class tt{constructor(){this.Ct=!1,this.onabort=null}abort(){this.Ct||(this.Ct=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this.Ct}}class it{constructor(T,I,Y,F){this.$=T,this.St=I,this.u=Y,this.kt=new tt,this.Pt=F,this.Tt=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this.kt.aborted}connect(T,I){return Kt(this,null,function*(){if(l.isRequired(T,"url"),l.isRequired(I,"transferFormat"),l.isIn(I,W,"transferFormat"),this.It=T,this.u.log(p.Trace,"(LongPolling transport) Connecting."),I===W.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[Y,F]=A(),et=Vt({[Y]:F},this.Pt.headers),ot={abortSignal:this.kt.signal,headers:et,timeout:1e5,withCredentials:this.Pt.withCredentials};I===W.Binary&&(ot.responseType="arraybuffer");const ut=yield this._t();this.Ht(ot,ut);const dt=`${T}&_=${Date.now()}`;this.u.log(p.Trace,`(LongPolling transport) polling: ${dt}.`);const vt=yield this.$.get(dt,ot);200!==vt.statusCode?(this.u.log(p.Error,`(LongPolling transport) Unexpected response code: ${vt.statusCode}.`),this.Dt=new O(vt.statusText||"",vt.statusCode),this.Tt=!1):this.Tt=!0,this.xt=this.At(this.It,ot)})}_t(){return Kt(this,null,function*(){return this.St?yield this.St():null})}Ht(T,I){T.headers||(T.headers={}),I?T.headers[V.Authorization]=`Bearer ${I}`:T.headers[V.Authorization]&&delete T.headers[V.Authorization]}At(T,I){return Kt(this,null,function*(){try{for(;this.Tt;){const Y=yield this._t();this.Ht(I,Y);try{const F=`${T}&_=${Date.now()}`;this.u.log(p.Trace,`(LongPolling transport) polling: ${F}.`);const et=yield this.$.get(F,I);204===et.statusCode?(this.u.log(p.Information,"(LongPolling transport) Poll terminated by server."),this.Tt=!1):200!==et.statusCode?(this.u.log(p.Error,`(LongPolling transport) Unexpected response code: ${et.statusCode}.`),this.Dt=new O(et.statusText||"",et.statusCode),this.Tt=!1):et.content?(this.u.log(p.Trace,`(LongPolling transport) data received. ${m(et.content,this.Pt.logMessageContent)}.`),this.onreceive&&this.onreceive(et.content)):this.u.log(p.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(F){this.Tt?F instanceof u?this.u.log(p.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.Dt=F,this.Tt=!1):this.u.log(p.Trace,`(LongPolling transport) Poll errored after shutdown: ${F.message}`)}}}finally{this.u.log(p.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.Rt()}})}send(T){return Kt(this,null,function*(){return this.Tt?E(this.u,"LongPolling",this.$,this.It,this.St,T,this.Pt):Promise.reject(new Error("Cannot send until the transport is connected"))})}stop(){return Kt(this,null,function*(){this.u.log(p.Trace,"(LongPolling transport) Stopping polling."),this.Tt=!1,this.kt.abort();try{yield this.xt,this.u.log(p.Trace,`(LongPolling transport) sending DELETE request to ${this.It}.`);const T={},[I,Y]=A();T[I]=Y;const F={headers:Vt(Vt({},T),this.Pt.headers),timeout:this.Pt.timeout,withCredentials:this.Pt.withCredentials},et=yield this._t();this.Ht(F,et),yield this.$.delete(this.It,F),this.u.log(p.Trace,"(LongPolling transport) DELETE request sent.")}finally{this.u.log(p.Trace,"(LongPolling transport) Stop finished."),this.Rt()}})}Rt(){if(this.onclose){let T="(LongPolling transport) Firing onclose event.";this.Dt&&(T+=" Error: "+this.Dt),this.u.log(p.Trace,T),this.onclose(this.Dt)}}}class st{constructor(T,I,Y,F){this.$=T,this.St=I,this.u=Y,this.Pt=F,this.onreceive=null,this.onclose=null}connect(T,I){return Kt(this,null,function*(){if(l.isRequired(T,"url"),l.isRequired(I,"transferFormat"),l.isIn(I,W,"transferFormat"),this.u.log(p.Trace,"(SSE transport) Connecting."),this.It=T,this.St){const Y=yield this.St();Y&&(T+=(T.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(Y)}`)}return new Promise((Y,F)=>{let et,ot=!1;if(I===W.Text){if(c.isBrowser||c.isWebWorker)et=new this.Pt.EventSource(T,{withCredentials:this.Pt.withCredentials});else{const ut=this.$.getCookieString(T),dt={};dt.Cookie=ut;const[vt,gt]=A();dt[vt]=gt,et=new this.Pt.EventSource(T,{withCredentials:this.Pt.withCredentials,headers:Vt(Vt({},dt),this.Pt.headers)})}try{et.onmessage=ut=>{if(this.onreceive)try{this.u.log(p.Trace,`(SSE transport) data received. ${m(ut.data,this.Pt.logMessageContent)}.`),this.onreceive(ut.data)}catch(dt){return void this.Ut(dt)}},et.onerror=ut=>{ot?this.Ut():F(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},et.onopen=()=>{this.u.log(p.Information,`SSE connected to ${this.It}`),this.Nt=et,ot=!0,Y()}}catch(ut){return void F(ut)}}else F(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})})}send(T){return Kt(this,null,function*(){return this.Nt?E(this.u,"SSE",this.$,this.It,this.St,T,this.Pt):Promise.reject(new Error("Cannot send until the transport is connected"))})}stop(){return this.Ut(),Promise.resolve()}Ut(T){this.Nt&&(this.Nt.close(),this.Nt=void 0,this.onclose&&this.onclose(T))}}class pt{constructor(T,I,Y,F,et,ot){this.u=Y,this.St=I,this.Lt=F,this.qt=et,this.$=T,this.onreceive=null,this.onclose=null,this.jt=ot}connect(T,I){return Kt(this,null,function*(){if(l.isRequired(T,"url"),l.isRequired(I,"transferFormat"),l.isIn(I,W,"transferFormat"),this.u.log(p.Trace,"(WebSockets transport) Connecting."),this.St){const Y=yield this.St();Y&&(T+=(T.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(Y)}`)}return new Promise((Y,F)=>{let et;T=T.replace(/^http/,"ws");const ot=this.$.getCookieString(T);let ut=!1;if(c.isNode){const dt={},[vt,gt]=A();dt[vt]=gt,ot&&(dt[V.Cookie]=`${ot}`),et=new this.qt(T,void 0,{headers:Vt(Vt({},dt),this.jt)})}et||(et=new this.qt(T)),I===W.Binary&&(et.binaryType="arraybuffer"),et.onopen=dt=>{this.u.log(p.Information,`WebSocket connected to ${T}.`),this.Mt=et,ut=!0,Y()},et.onerror=dt=>{let vt=null;vt="undefined"!=typeof ErrorEvent&&dt instanceof ErrorEvent?dt.error:"There was an error with the transport",this.u.log(p.Information,`(WebSockets transport) ${vt}.`)},et.onmessage=dt=>{if(this.u.log(p.Trace,`(WebSockets transport) data received. ${m(dt.data,this.Lt)}.`),this.onreceive)try{this.onreceive(dt.data)}catch(vt){return void this.Ut(vt)}},et.onclose=dt=>{if(ut)this.Ut(dt);else{let vt=null;vt="undefined"!=typeof ErrorEvent&&dt instanceof ErrorEvent?dt.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",F(new Error(vt))}}})})}send(T){return this.Mt&&this.Mt.readyState===this.qt.OPEN?(this.u.log(p.Trace,`(WebSockets transport) sending data. ${m(T,this.Lt)}.`),this.Mt.send(T),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this.Mt&&this.Ut(void 0),Promise.resolve()}Ut(T){this.Mt&&(this.Mt.onclose=()=>{},this.Mt.onmessage=()=>{},this.Mt.onerror=()=>{},this.Mt.close(),this.Mt=void 0),this.u.log(p.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this.Wt(T)||!1!==T.wasClean&&1e3===T.code?T instanceof Error?this.onclose(T):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${T.code} (${T.reason||"no reason given"}).`)))}Wt(T){return T&&"boolean"==typeof T.wasClean&&"number"==typeof T.code}}class bt{constructor(T,I={}){var Y;if(this.Ot=()=>{},this.features={},this.Ft=1,l.isRequired(T,"url"),this.u=void 0===(Y=I.logger)?new S(p.Information):null===Y?f.instance:void 0!==Y.log?Y:new S(Y),this.baseUrl=this.Bt(T),(I=I||{}).logMessageContent=void 0!==I.logMessageContent&&I.logMessageContent,"boolean"!=typeof I.withCredentials&&void 0!==I.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");I.withCredentials=void 0===I.withCredentials||I.withCredentials,I.timeout=void 0===I.timeout?1e5:I.timeout;let F=null,et=null;if(c.isNode){const ot=require;F=ot("ws"),et=ot("eventsource")}c.isNode||"undefined"==typeof WebSocket||I.WebSocket?c.isNode&&!I.WebSocket&&F&&(I.WebSocket=F):I.WebSocket=WebSocket,c.isNode||"undefined"==typeof EventSource||I.EventSource?c.isNode&&!I.EventSource&&void 0!==et&&(I.EventSource=et):I.EventSource=EventSource,this.$=I.httpClient||new X(this.u),this.q="Disconnected",this.j=!1,this.Pt=I,this.onreceive=null,this.onclose=null}start(T){return Kt(this,null,function*(){if(l.isIn(T=T||W.Binary,W,"transferFormat"),this.u.log(p.Debug,`Starting connection with transfer format '${W[T]}'.`),"Disconnected"!==this.q)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this.q="Connecting",this.Xt=this.F(T),yield this.Xt,"Disconnecting"===this.q){const I="Failed to start the HttpConnection before stop() was called.";return this.u.log(p.Error,I),yield this.tt,Promise.reject(new Error(I))}if("Connected"!==this.q){const I="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this.u.log(p.Error,I),Promise.reject(new Error(I))}this.j=!0})}send(T){return"Connected"!==this.q?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.Jt||(this.Jt=new _t(this.transport)),this.Jt.send(T))}stop(T){return Kt(this,null,function*(){return"Disconnected"===this.q?(this.u.log(p.Debug,`Call to HttpConnection.stop(${T}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===this.q?(this.u.log(p.Debug,`Call to HttpConnection.stop(${T}) ignored because the connection is already in the disconnecting state.`),this.tt):(this.q="Disconnecting",this.tt=new Promise(I=>{this.Ot=I}),yield this.et(T),void(yield this.tt))})}et(T){return Kt(this,null,function*(){this.zt=T;try{yield this.Xt}catch(I){}if(this.transport){try{yield this.transport.stop()}catch(I){this.u.log(p.Error,`HttpConnection.transport.stop() threw error '${I}'.`),this.Vt()}this.transport=void 0}else this.u.log(p.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})}F(T){return Kt(this,null,function*(){let I=this.baseUrl;this.St=this.Pt.accessTokenFactory;try{if(this.Pt.skipNegotiation){if(this.Pt.transport!==D.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this.Gt(D.WebSockets),yield this.Kt(I,T)}else{let Y=null,F=0;do{if(Y=yield this.Qt(I),"Disconnecting"===this.q||"Disconnected"===this.q)throw new Error("The connection was stopped during negotiation.");if(Y.error)throw new Error(Y.error);if(Y.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(Y.url&&(I=Y.url),Y.accessToken){const et=Y.accessToken;this.St=()=>et}F++}while(Y.url&&F<100);if(100===F&&Y.url)throw new Error("Negotiate redirection limit exceeded.");yield this.Yt(I,this.Pt.transport,Y,T)}this.transport instanceof it&&(this.features.inherentKeepAlive=!0),"Connecting"===this.q&&(this.u.log(p.Debug,"The HttpConnection connected successfully."),this.q="Connected")}catch(Y){return this.u.log(p.Error,"Failed to start the connection: "+Y),this.q="Disconnected",this.transport=void 0,this.Ot(),Promise.reject(Y)}})}Qt(T){return Kt(this,null,function*(){const I={};if(this.St){const ot=yield this.St();ot&&(I[V.Authorization]=`Bearer ${ot}`)}const[Y,F]=A();I[Y]=F;const et=this.Zt(T);this.u.log(p.Debug,`Sending negotiation request: ${et}.`);try{const ot=yield this.$.post(et,{content:"",headers:Vt(Vt({},I),this.Pt.headers),timeout:this.Pt.timeout,withCredentials:this.Pt.withCredentials});if(200!==ot.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${ot.statusCode}'`));const ut=JSON.parse(ot.content);return(!ut.negotiateVersion||ut.negotiateVersion<1)&&(ut.connectionToken=ut.connectionId),ut}catch(ot){let ut="Failed to complete negotiation with the server: "+ot;return ot instanceof O&&404===ot.statusCode&&(ut+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this.u.log(p.Error,ut),Promise.reject(new r(ut))}})}te(T,I){return I?T+(-1===T.indexOf("?")?"?":"&")+`id=${I}`:T}Yt(T,I,Y,F){return Kt(this,null,function*(){let et=this.te(T,Y.connectionToken);if(this.ee(I))return this.u.log(p.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=I,yield this.Kt(et,F),void(this.connectionId=Y.connectionId);const ot=[],ut=Y.availableTransports||[];let dt=Y;for(const vt of ut){const gt=this.se(vt,I,F);if(gt instanceof Error)ot.push(`${vt.transport} failed:`),ot.push(gt);else if(this.ee(gt)){if(this.transport=gt,!dt){try{dt=yield this.Qt(T)}catch(St){return Promise.reject(St)}et=this.te(T,dt.connectionToken)}try{return yield this.Kt(et,F),void(this.connectionId=dt.connectionId)}catch(St){if(this.u.log(p.Error,`Failed to start the transport '${vt.transport}': ${St}`),dt=void 0,ot.push(new o(`${vt.transport} failed: ${St}`,D[vt.transport])),"Connecting"!==this.q){const Ot="Failed to select transport before stop() was called.";return this.u.log(p.Debug,Ot),Promise.reject(new Error(Ot))}}}}return Promise.reject(ot.length>0?new n(`Unable to connect to the server with any of the available transports. ${ot.join(" ")}`,ot):new Error("None of the transports supported by the client are supported by the server."))})}Gt(T){switch(T){case D.WebSockets:if(!this.Pt.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new pt(this.$,this.St,this.u,this.Pt.logMessageContent,this.Pt.WebSocket,this.Pt.headers||{});case D.ServerSentEvents:if(!this.Pt.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new st(this.$,this.St,this.u,this.Pt);case D.LongPolling:return new it(this.$,this.St,this.u,this.Pt);default:throw new Error(`Unknown transport: ${T}.`)}}Kt(T,I){return this.transport.onreceive=this.onreceive,this.transport.onclose=Y=>this.Vt(Y),this.transport.connect(T,I)}se(T,I,Y){const F=D[T.transport];if(null==F)return this.u.log(p.Debug,`Skipping transport '${T.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${T.transport}' because it is not supported by this client.`);if((et=I)&&0==(F&et))return this.u.log(p.Debug,`Skipping transport '${D[F]}' because it was disabled by the client.`),new v(`'${D[F]}' is disabled by the client.`,F);var et;if(!(T.transferFormats.map(et=>W[et]).indexOf(Y)>=0))return this.u.log(p.Debug,`Skipping transport '${D[F]}' because it does not support the requested transfer format '${W[Y]}'.`),new Error(`'${D[F]}' does not support ${W[Y]}.`);if(F===D.WebSockets&&!this.Pt.WebSocket||F===D.ServerSentEvents&&!this.Pt.EventSource)return this.u.log(p.Debug,`Skipping transport '${D[F]}' because it is not supported in your environment.'`),new g(`'${D[F]}' is not supported in your environment.`,F);this.u.log(p.Debug,`Selecting transport '${D[F]}'.`);try{return this.Gt(F)}catch(et){return et}}ee(T){return T&&"object"==typeof T&&"connect"in T}Vt(T){if(this.u.log(p.Debug,`HttpConnection.stopConnection(${T}) called while in state ${this.q}.`),this.transport=void 0,T=this.zt||T,this.zt=void 0,"Disconnected"!==this.q){if("Connecting"===this.q)throw this.u.log(p.Warning,`Call to HttpConnection.stopConnection(${T}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${T}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this.q&&this.Ot(),T?this.u.log(p.Error,`Connection disconnected with error '${T}'.`):this.u.log(p.Information,"Connection disconnected."),this.Jt&&(this.Jt.stop().catch(I=>{this.u.log(p.Error,`TransportSendQueue.stop() threw error '${I}'.`)}),this.Jt=void 0),this.connectionId=void 0,this.q="Disconnected",this.j){this.j=!1;try{this.onclose&&this.onclose(T)}catch(I){this.u.log(p.Error,`HttpConnection.onclose(${T}) threw error '${I}'.`)}}}else this.u.log(p.Debug,`Call to HttpConnection.stopConnection(${T}) was ignored because the connection is already in the disconnected state.`)}Bt(T){if(0===T.lastIndexOf("https://",0)||0===T.lastIndexOf("http://",0))return T;if(!c.isBrowser)throw new Error(`Cannot resolve '${T}'.`);const I=window.document.createElement("a");return I.href=T,this.u.log(p.Information,`Normalizing '${T}' to '${I.href}'.`),I.href}Zt(T){const I=T.indexOf("?");let Y=T.substring(0,-1===I?T.length:I);return"/"!==Y[Y.length-1]&&(Y+="/"),Y+="negotiate",Y+=-1===I?"":T.substring(I),-1===Y.indexOf("negotiateVersion")&&(Y+=-1===I?"?":"&",Y+="negotiateVersion="+this.Ft),Y}}class _t{constructor(T){this.ne=T,this.ie=[],this.re=!0,this.oe=new At,this.he=new At,this.ce=this.ae()}send(T){return this.le(T),this.he||(this.he=new At),this.he.promise}stop(){return this.re=!1,this.oe.resolve(),this.ce}le(T){if(this.ie.length&&typeof this.ie[0]!=typeof T)throw new Error(`Expected data to be of type ${typeof this.ie} but was of type ${typeof T}`);this.ie.push(T),this.oe.resolve()}ae(){return Kt(this,null,function*(){for(;;){if(yield this.oe.promise,!this.re){this.he&&this.he.reject("Connection stopped.");break}this.oe=new At;const T=this.he;this.he=void 0;const I="string"==typeof this.ie[0]?this.ie.join(""):_t.ue(this.ie);this.ie.length=0;try{yield this.ne.send(I),T.resolve()}catch(Y){T.reject(Y)}}})}static ue(T){const I=T.map(et=>et.byteLength).reduce((et,ot)=>et+ot),Y=new Uint8Array(I);let F=0;for(const et of T)Y.set(new Uint8Array(et),F),F+=et.byteLength;return Y.buffer}}class At{constructor(){this.promise=new Promise((T,I)=>[this.de,this.fe]=[T,I])}resolve(){this.de()}reject(T){this.fe(T)}}class Ct{constructor(){this.name="json",this.version=1,this.transferFormat=W.Text}parseMessages(T,I){if("string"!=typeof T)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!T)return[];null===I&&(I=f.instance);const Y=Z.parse(T),F=[];for(const et of Y){const ot=JSON.parse(et);if("number"!=typeof ot.type)throw new Error("Invalid payload.");switch(ot.type){case K.Invocation:this.pe(ot);break;case K.StreamItem:this.we(ot);break;case K.Completion:this.ge(ot);break;case K.Ping:case K.Close:break;default:I.log(p.Information,"Unknown message type '"+ot.type+"' ignored.");continue}F.push(ot)}return F}writeMessage(T){return Z.write(JSON.stringify(T))}pe(T){this.ye(T.target,"Invalid payload for Invocation message."),void 0!==T.invocationId&&this.ye(T.invocationId,"Invalid payload for Invocation message.")}we(T){if(this.ye(T.invocationId,"Invalid payload for StreamItem message."),void 0===T.item)throw new Error("Invalid payload for StreamItem message.")}ge(T){if(T.result&&T.error)throw new Error("Invalid payload for Completion message.");!T.result&&T.error&&this.ye(T.error,"Invalid payload for Completion message."),this.ye(T.invocationId,"Invalid payload for Completion message.")}ye(T,I){if("string"!=typeof T||""===T)throw new Error(I)}}const Lt={trace:p.Trace,debug:p.Debug,info:p.Information,information:p.Information,warn:p.Warning,warning:p.Warning,error:p.Error,critical:p.Critical,none:p.None};class J{configureLogging(T){if(l.isRequired(T,"logging"),void 0!==T.log)this.logger=T;else if("string"==typeof T){const I=function(Y){const F=Lt[Y.toLowerCase()];if(void 0!==F)return F;throw new Error(`Unknown log level: ${Y}`)}(T);this.logger=new S(I)}else this.logger=new S(T);return this}withUrl(T,I){return l.isRequired(T,"url"),l.isNotEmpty(T,"url"),this.url=T,this.httpConnectionOptions="object"==typeof I?Vt(Vt({},this.httpConnectionOptions),I):Le(Vt({},this.httpConnectionOptions),{transport:I}),this}withHubProtocol(T){return l.isRequired(T,"protocol"),this.protocol=T,this}withAutomaticReconnect(T){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=T?Array.isArray(T)?new G(T):T:new G,this}build(){const T=this.httpConnectionOptions||{};if(void 0===T.logger&&(T.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const I=new bt(this.url,T);return M.create(I,this.logger||f.instance,this.protocol||new Ct,this.reconnectPolicy)}}return Uint8Array.prototype.indexOf||Object.defineProperty(Uint8Array.prototype,"indexOf",{value:Array.prototype.indexOf,writable:!0}),Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:function(R,T){return new Uint8Array(Array.prototype.slice.call(this,R,T))},writable:!0}),Uint8Array.prototype.forEach||Object.defineProperty(Uint8Array.prototype,"forEach",{value:Array.prototype.forEach,writable:!0}),d})()},"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.signalR=e():t.signalR=e(),function(B){"object"==typeof exports&&"undefined"!=typeof module?module.exports=B():"function"==typeof define&&define.amd?define([],B):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).localforage=B()}(function(){return function O(u,y,g){function v(n,i){if(!y[n]){if(!u[n]){var s="function"==typeof require&&require;if(!i&&s)return s(n,!0);if(o)return o(n,!0);var f=new Error("Cannot find module '"+n+"'");throw f.code="MODULE_NOT_FOUND",f}var h=y[n]={exports:{}};u[n][0].call(h.exports,function(l){return v(u[n][1][l]||l)},h,h.exports,O,u,y,g)}return y[n].exports}for(var o="function"==typeof require&&require,r=0;r<g.length;r++)v(g[r]);return v}({1:[function(O,u,y){(function(g){"use strict";var o,v=g.MutationObserver||g.WebKitMutationObserver;if(v){var r=0,n=new v(l),i=g.document.createTextNode("");n.observe(i,{characterData:!0}),o=function(){i.data=r=++r%2}}else if(g.setImmediate||void 0===g.MessageChannel)o="document"in g&&"onreadystatechange"in g.document.createElement("script")?function(){var m=g.document.createElement("script");m.onreadystatechange=function(){l(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},g.document.documentElement.appendChild(m)}:function(){setTimeout(l,0)};else{var s=new g.MessageChannel;s.port1.onmessage=l,o=function(){s.port2.postMessage(0)}}var f,h=[];function l(){f=!0;for(var m,a,E=h.length;E;){for(a=h,h=[],m=-1;++m<E;)a[m]();E=h.length}f=!1}u.exports=function c(m){1===h.push(m)&&!f&&o()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(O,u,y){"use strict";var g=O(1);function v(){}var o={},r=["REJECTED"],n=["FULFILLED"],i=["PENDING"];function s(A){if("function"!=typeof A)throw new TypeError("resolver must be a function");this.state=i,this.queue=[],this.outcome=void 0,A!==v&&c(this,A)}function f(A,b,k){this.promise=A,"function"==typeof b&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),"function"==typeof k&&(this.onRejected=k,this.callRejected=this.otherCallRejected)}function h(A,b,k){g(function(){var _;try{_=b(k)}catch(w){return o.reject(A,w)}_===A?o.reject(A,new TypeError("Cannot resolve promise with itself")):o.resolve(A,_)})}function l(A){var b=A&&A.then;if(A&&("object"==typeof A||"function"==typeof A)&&"function"==typeof b)return function(){b.apply(A,arguments)}}function c(A,b){var k=!1;function _(H){k||(k=!0,o.reject(A,H))}function w(H){k||(k=!0,o.resolve(A,H))}var j=m(function N(){b(w,_)});"error"===j.status&&_(j.value)}function m(A,b){var k={};try{k.value=A(b),k.status="success"}catch(_){k.status="error",k.value=_}return k}u.exports=s,s.prototype.catch=function(A){return this.then(null,A)},s.prototype.then=function(A,b){if("function"!=typeof A&&this.state===n||"function"!=typeof b&&this.state===r)return this;var k=new this.constructor(v);return this.state!==i?h(k,this.state===n?A:b,this.outcome):this.queue.push(new f(k,A,b)),k},f.prototype.callFulfilled=function(A){o.resolve(this.promise,A)},f.prototype.otherCallFulfilled=function(A){h(this.promise,this.onFulfilled,A)},f.prototype.callRejected=function(A){o.reject(this.promise,A)},f.prototype.otherCallRejected=function(A){h(this.promise,this.onRejected,A)},o.resolve=function(A,b){var k=m(l,b);if("error"===k.status)return o.reject(A,k.value);var _=k.value;if(_)c(A,_);else{A.state=n,A.outcome=b;for(var w=-1,N=A.queue.length;++w<N;)A.queue[w].callFulfilled(b)}return A},o.reject=function(A,b){A.state=r,A.outcome=b;for(var k=-1,_=A.queue.length;++k<_;)A.queue[k].callRejected(b);return A},s.resolve=function a(A){return A instanceof this?A:o.resolve(new this(v),A)},s.reject=function E(A){var b=new this(v);return o.reject(b,A)},s.all=function x(A){var b=this;if("[object Array]"!==Object.prototype.toString.call(A))return this.reject(new TypeError("must be an array"));var k=A.length,_=!1;if(!k)return this.resolve([]);for(var w=new Array(k),N=0,j=-1,H=new this(v);++j<k;)X(A[j],j);return H;function X(Z,nt){b.resolve(Z).then(function K(L){w[nt]=L,++N===k&&!_&&(_=!0,o.resolve(H,w))},function(L){_||(_=!0,o.reject(H,L))})}},s.race=function S(A){if("[object Array]"!==Object.prototype.toString.call(A))return this.reject(new TypeError("must be an array"));var k=A.length,_=!1;if(!k)return this.resolve([]);for(var w=-1,N=new this(v);++w<k;)this.resolve(A[w]).then(function(X){_||(_=!0,o.resolve(N,X))},function(X){_||(_=!0,o.reject(N,X))});return N}},{1:1}],3:[function(O,u,y){(function(g){"use strict";"function"!=typeof g.Promise&&(g.Promise=O(2))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(O,u,y){"use strict";var g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Q){return typeof Q}:function(Q){return Q&&"function"==typeof Symbol&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},r=function o(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(Q){return}}();function i(Q,lt){Q=Q||[],lt=lt||{};try{return new Blob(Q,lt)}catch(ct){if("TypeError"!==ct.name)throw ct;for(var ft=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),ht=0;ht<Q.length;ht+=1)ft.append(Q[ht]);return ft.getBlob(lt.type)}}"undefined"==typeof Promise&&O(3);var s=Promise;function f(Q,lt){lt&&Q.then(function(rt){lt(null,rt)},function(rt){lt(rt)})}function h(Q,lt,rt){"function"==typeof lt&&Q.then(lt),"function"==typeof rt&&Q.catch(rt)}function l(Q){return"string"!=typeof Q&&(console.warn(Q+" used as a key, but it is not a string."),Q=String(Q)),Q}function c(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var m="local-forage-detect-blob-support",a=void 0,E={},x=Object.prototype.toString,S="readonly",A="readwrite";function w(Q){var lt=E[Q.name],rt={};rt.promise=new s(function(ft,ht){rt.resolve=ft,rt.reject=ht}),lt.deferredOperations.push(rt),lt.dbReady=lt.dbReady?lt.dbReady.then(function(){return rt.promise}):rt.promise}function N(Q){var rt=E[Q.name].deferredOperations.pop();if(rt)return rt.resolve(),rt.promise}function j(Q,lt){var ft=E[Q.name].deferredOperations.pop();if(ft)return ft.reject(lt),ft.promise}function H(Q,lt){return new s(function(rt,ft){if(E[Q.name]=E[Q.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},Q.db){if(!lt)return rt(Q.db);w(Q),Q.db.close()}var ht=[Q.name];lt&&ht.push(Q.version);var ct=r.open.apply(r,ht);lt&&(ct.onupgradeneeded=function(mt){var wt=ct.result;try{wt.createObjectStore(Q.storeName),mt.oldVersion<=1&&wt.createObjectStore(m)}catch(Et){if("ConstraintError"!==Et.name)throw Et;console.warn('The database "'+Q.name+'" has been upgraded from version '+mt.oldVersion+" to version "+mt.newVersion+', but the storage "'+Q.storeName+'" already exists.')}}),ct.onerror=function(mt){mt.preventDefault(),ft(ct.error)},ct.onsuccess=function(){var mt=ct.result;mt.onversionchange=function(wt){wt.target.close()},rt(mt),N(Q)}})}function X(Q){return H(Q,!1)}function Z(Q){return H(Q,!0)}function nt(Q,lt){if(!Q.db)return!0;var rt=!Q.db.objectStoreNames.contains(Q.storeName),ht=Q.version>Q.db.version;if(Q.version<Q.db.version&&(Q.version!==lt&&console.warn('The database "'+Q.name+"\" can't be downgraded from version "+Q.db.version+" to version "+Q.version+"."),Q.version=Q.db.version),ht||rt){if(rt){var ct=Q.db.version+1;ct>Q.version&&(Q.version=ct)}return!0}return!1}function L(Q){var lt=function b(Q){for(var lt=Q.length,rt=new ArrayBuffer(lt),ft=new Uint8Array(rt),ht=0;ht<lt;ht++)ft[ht]=Q.charCodeAt(ht);return rt}(atob(Q.data));return i([lt],{type:Q.type})}function q(Q){return Q&&Q.__local_forage_encoded_blob}function M(Q){var lt=this,rt=lt._initReady().then(function(){var ft=E[lt._dbInfo.name];if(ft&&ft.dbReady)return ft.dbReady});return h(rt,Q,Q),rt}function G(Q,lt,rt,ft){void 0===ft&&(ft=1);try{var ht=Q.db.transaction(Q.storeName,lt);rt(null,ht)}catch(ct){if(ft>0&&(!Q.db||"InvalidStateError"===ct.name||"NotFoundError"===ct.name))return s.resolve().then(function(){if(!Q.db||"NotFoundError"===ct.name&&!Q.db.objectStoreNames.contains(Q.storeName)&&Q.version<=Q.db.version)return Q.db&&(Q.version=Q.db.version+1),Z(Q)}).then(function(){return function U(Q){w(Q);for(var lt=E[Q.name],rt=lt.forages,ft=0;ft<rt.length;ft++){var ht=rt[ft];ht._dbInfo.db&&(ht._dbInfo.db.close(),ht._dbInfo.db=null)}return Q.db=null,X(Q).then(function(ct){return Q.db=ct,nt(Q)?Z(Q):ct}).then(function(ct){Q.db=lt.db=ct;for(var mt=0;mt<rt.length;mt++)rt[mt]._dbInfo.db=ct}).catch(function(ct){throw j(Q,ct),ct})}(Q).then(function(){G(Q,lt,rt,ft-1)})}).catch(rt);rt(ct)}}var Lt={_driver:"asyncStorage",_initStorage:function D(Q){var lt=this,rt={db:null};if(Q)for(var ft in Q)rt[ft]=Q[ft];var ht=E[rt.name];ht||(E[rt.name]=ht={forages:[],db:null,dbReady:null,deferredOperations:[]}),ht.forages.push(lt),lt._initReady||(lt._initReady=lt.ready,lt.ready=M);var ct=[];function mt(){return s.resolve()}for(var wt=0;wt<ht.forages.length;wt++){var Et=ht.forages[wt];Et!==lt&&ct.push(Et._initReady().catch(mt))}var kt=ht.forages.slice(0);return s.all(ct).then(function(){return rt.db=ht.db,X(rt)}).then(function(Tt){return rt.db=Tt,nt(rt,lt._defaultConfig.version)?Z(rt):Tt}).then(function(Tt){rt.db=ht.db=Tt,lt._dbInfo=rt;for(var Nt=0;Nt<kt.length;Nt++){var qt=kt[Nt];qt!==lt&&(qt._dbInfo.db=rt.db,qt._dbInfo.version=rt.version)}})},_support:function n(){try{if(!r||!r.open)return!1;var Q="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),lt="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!Q||lt)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(rt){return!1}}(),iterate:function tt(Q,lt){var rt=this,ft=new s(function(ht,ct){rt.ready().then(function(){G(rt._dbInfo,S,function(mt,wt){if(mt)return ct(mt);try{var kt=wt.objectStore(rt._dbInfo.storeName).openCursor(),Tt=1;kt.onsuccess=function(){var Nt=kt.result;if(Nt){var qt=Nt.value;q(qt)&&(qt=L(qt));var Dt=Q(qt,Nt.key,Tt++);void 0!==Dt?ht(Dt):Nt.continue()}else ht()},kt.onerror=function(){ct(kt.error)}}catch(Nt){ct(Nt)}})}).catch(ct)});return f(ft,lt),ft},getItem:function W(Q,lt){var rt=this;Q=l(Q);var ft=new s(function(ht,ct){rt.ready().then(function(){G(rt._dbInfo,S,function(mt,wt){if(mt)return ct(mt);try{var kt=wt.objectStore(rt._dbInfo.storeName).get(Q);kt.onsuccess=function(){var Tt=kt.result;void 0===Tt&&(Tt=null),q(Tt)&&(Tt=L(Tt)),ht(Tt)},kt.onerror=function(){ct(kt.error)}}catch(Tt){ct(Tt)}})}).catch(ct)});return f(ft,lt),ft},setItem:function it(Q,lt,rt){var ft=this;Q=l(Q);var ht=new s(function(ct,mt){var wt;ft.ready().then(function(){return wt=ft._dbInfo,"[object Blob]"===x.call(lt)?function _(Q){return"boolean"==typeof a?s.resolve(a):function k(Q){return new s(function(lt){var rt=Q.transaction(m,A),ft=i([""]);rt.objectStore(m).put(ft,"key"),rt.onabort=function(ht){ht.preventDefault(),ht.stopPropagation(),lt(!1)},rt.oncomplete=function(){var ht=navigator.userAgent.match(/Chrome\/(\d+)/),ct=navigator.userAgent.match(/Edge\//);lt(ct||!ht||parseInt(ht[1],10)>=43)}}).catch(function(){return!1})}(Q).then(function(lt){return a=lt})}(wt.db).then(function(Et){return Et?lt:function K(Q){return new s(function(lt,rt){var ft=new FileReader;ft.onerror=rt,ft.onloadend=function(ht){var ct=btoa(ht.target.result||"");lt({__local_forage_encoded_blob:!0,data:ct,type:Q.type})},ft.readAsBinaryString(Q)})}(lt)}):lt}).then(function(Et){G(ft._dbInfo,A,function(kt,Tt){if(kt)return mt(kt);try{var Nt=Tt.objectStore(ft._dbInfo.storeName);null===Et&&(Et=void 0);var qt=Nt.put(Et,Q);Tt.oncomplete=function(){void 0===Et&&(Et=null),ct(Et)},Tt.onabort=Tt.onerror=function(){mt(qt.error?qt.error:qt.transaction.error)}}catch(Dt){mt(Dt)}})}).catch(mt)});return f(ht,rt),ht},removeItem:function st(Q,lt){var rt=this;Q=l(Q);var ft=new s(function(ht,ct){rt.ready().then(function(){G(rt._dbInfo,A,function(mt,wt){if(mt)return ct(mt);try{var kt=wt.objectStore(rt._dbInfo.storeName).delete(Q);wt.oncomplete=function(){ht()},wt.onerror=function(){ct(kt.error)},wt.onabort=function(){ct(kt.error?kt.error:kt.transaction.error)}}catch(Tt){ct(Tt)}})}).catch(ct)});return f(ft,lt),ft},clear:function pt(Q){var lt=this,rt=new s(function(ft,ht){lt.ready().then(function(){G(lt._dbInfo,A,function(ct,mt){if(ct)return ht(ct);try{var Et=mt.objectStore(lt._dbInfo.storeName).clear();mt.oncomplete=function(){ft()},mt.onabort=mt.onerror=function(){ht(Et.error?Et.error:Et.transaction.error)}}catch(kt){ht(kt)}})}).catch(ht)});return f(rt,Q),rt},length:function bt(Q){var lt=this,rt=new s(function(ft,ht){lt.ready().then(function(){G(lt._dbInfo,S,function(ct,mt){if(ct)return ht(ct);try{var Et=mt.objectStore(lt._dbInfo.storeName).count();Et.onsuccess=function(){ft(Et.result)},Et.onerror=function(){ht(Et.error)}}catch(kt){ht(kt)}})}).catch(ht)});return f(rt,Q),rt},key:function _t(Q,lt){var rt=this,ft=new s(function(ht,ct){Q<0?ht(null):rt.ready().then(function(){G(rt._dbInfo,S,function(mt,wt){if(mt)return ct(mt);try{var Et=wt.objectStore(rt._dbInfo.storeName),kt=!1,Tt=Et.openKeyCursor();Tt.onsuccess=function(){var Nt=Tt.result;Nt?0===Q||kt?ht(Nt.key):(kt=!0,Nt.advance(Q)):ht(null)},Tt.onerror=function(){ct(Tt.error)}}catch(Nt){ct(Nt)}})}).catch(ct)});return f(ft,lt),ft},keys:function At(Q){var lt=this,rt=new s(function(ft,ht){lt.ready().then(function(){G(lt._dbInfo,S,function(ct,mt){if(ct)return ht(ct);try{var Et=mt.objectStore(lt._dbInfo.storeName).openKeyCursor(),kt=[];Et.onsuccess=function(){var Tt=Et.result;Tt?(kt.push(Tt.key),Tt.continue()):ft(kt)},Et.onerror=function(){ht(Et.error)}}catch(Tt){ht(Tt)}})}).catch(ht)});return f(rt,Q),rt},dropInstance:function Ct(Q,lt){lt=c.apply(this,arguments);var rt=this.config();(Q="function"!=typeof Q&&Q||{}).name||(Q.name=Q.name||rt.name,Q.storeName=Q.storeName||rt.storeName);var ht,ft=this;if(Q.name){var ct=Q.name===rt.name&&ft._dbInfo.db,mt=ct?s.resolve(ft._dbInfo.db):X(Q).then(function(wt){var Et=E[Q.name],kt=Et.forages;Et.db=wt;for(var Tt=0;Tt<kt.length;Tt++)kt[Tt]._dbInfo.db=wt;return wt});ht=mt.then(Q.storeName?function(wt){if(wt.objectStoreNames.contains(Q.storeName)){var Et=wt.version+1;w(Q);var kt=E[Q.name],Tt=kt.forages;wt.close();for(var Nt=0;Nt<Tt.length;Nt++){var qt=Tt[Nt];qt._dbInfo.db=null,qt._dbInfo.version=Et}return new s(function(Bt,Wt){var zt=r.open(Q.name,Et);zt.onerror=function(Qt){zt.result.close(),Wt(Qt)},zt.onupgradeneeded=function(){zt.result.deleteObjectStore(Q.storeName)},zt.onsuccess=function(){var Qt=zt.result;Qt.close(),Bt(Qt)}}).then(function(Bt){kt.db=Bt;for(var Wt=0;Wt<Tt.length;Wt++){var zt=Tt[Wt];zt._dbInfo.db=Bt,N(zt._dbInfo)}}).catch(function(Bt){throw(j(Q,Bt)||s.resolve()).catch(function(){}),Bt})}}:function(wt){w(Q);var Et=E[Q.name],kt=Et.forages;wt.close();for(var Tt=0;Tt<kt.length;Tt++)kt[Tt]._dbInfo.db=null;return new s(function(Dt,Bt){var Wt=r.deleteDatabase(Q.name);Wt.onerror=function(){var zt=Wt.result;zt&&zt.close(),Bt(Wt.error)},Wt.onblocked=function(){console.warn('dropInstance blocked for database "'+Q.name+'" until all open connections are closed')},Wt.onsuccess=function(){var zt=Wt.result;zt&&zt.close(),Dt(zt)}}).then(function(Dt){Et.db=Dt;for(var Bt=0;Bt<kt.length;Bt++)N(kt[Bt]._dbInfo)}).catch(function(Dt){throw(j(Q,Dt)||s.resolve()).catch(function(){}),Dt})})}else ht=s.reject("Invalid arguments");return f(ht,lt),ht}},R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I=/^~~local_forage_type~([^~]+)~/,Y="__lfsc__:",F=Y.length,et="arbf",ot="blob",Mt=F+et.length,Ft=Object.prototype.toString;function Ut(Q){var ft,ct,mt,wt,Et,lt=.75*Q.length,rt=Q.length,ht=0;"="===Q[Q.length-1]&&(lt--,"="===Q[Q.length-2]&&lt--);var kt=new ArrayBuffer(lt),Tt=new Uint8Array(kt);for(ft=0;ft<rt;ft+=4)ct=R.indexOf(Q[ft]),mt=R.indexOf(Q[ft+1]),wt=R.indexOf(Q[ft+2]),Et=R.indexOf(Q[ft+3]),Tt[ht++]=ct<<2|mt>>4,Tt[ht++]=(15&mt)<<4|wt>>2,Tt[ht++]=(3&wt)<<6|63&Et;return kt}function Yt(Q){var ft,lt=new Uint8Array(Q),rt="";for(ft=0;ft<lt.length;ft+=3)rt+=R[lt[ft]>>2],rt+=R[(3&lt[ft])<<4|lt[ft+1]>>4],rt+=R[(15&lt[ft+1])<<2|lt[ft+2]>>6],rt+=R[63&lt[ft+2]];return lt.length%3==2?rt=rt.substring(0,rt.length-1)+"=":lt.length%3==1&&(rt=rt.substring(0,rt.length-2)+"=="),rt}var le={serialize:function Gt(Q,lt){var rt="";if(Q&&(rt=Ft.call(Q)),Q&&("[object ArrayBuffer]"===rt||Q.buffer&&"[object ArrayBuffer]"===Ft.call(Q.buffer))){var ft,ht=Y;Q instanceof ArrayBuffer?(ft=Q,ht+=et):(ft=Q.buffer,"[object Int8Array]"===rt?ht+="si08":"[object Uint8Array]"===rt?ht+="ui08":"[object Uint8ClampedArray]"===rt?ht+="uic8":"[object Int16Array]"===rt?ht+="si16":"[object Uint16Array]"===rt?ht+="ur16":"[object Int32Array]"===rt?ht+="si32":"[object Uint32Array]"===rt?ht+="ui32":"[object Float32Array]"===rt?ht+="fl32":"[object Float64Array]"===rt?ht+="fl64":lt(new Error("Failed to get type for BinaryArray"))),lt(ht+Yt(ft))}else if("[object Blob]"===rt){var ct=new FileReader;ct.onload=function(){var mt="~~local_forage_type~"+Q.type+"~"+Yt(this.result);lt(Y+ot+mt)},ct.readAsArrayBuffer(Q)}else try{lt(JSON.stringify(Q))}catch(mt){console.error("Couldn't convert value into a JSON string: ",Q),lt(null,mt)}},deserialize:function Xt(Q){if(Q.substring(0,F)!==Y)return JSON.parse(Q);var ft,lt=Q.substring(Mt),rt=Q.substring(F,Mt);if(rt===ot&&I.test(lt)){var ht=lt.match(I);ft=ht[1],lt=lt.substring(ht[0].length)}var ct=Ut(lt);switch(rt){case et:return ct;case ot:return i([ct],{type:ft});case"si08":return new Int8Array(ct);case"ui08":return new Uint8Array(ct);case"uic8":return new Uint8ClampedArray(ct);case"si16":return new Int16Array(ct);case"ur16":return new Uint16Array(ct);case"si32":return new Int32Array(ct);case"ui32":return new Uint32Array(ct);case"fl32":return new Float32Array(ct);case"fl64":return new Float64Array(ct);default:throw new Error("Unkown type: "+rt)}},stringToBuffer:Ut,bufferToString:Yt};function ae(Q,lt,rt,ft){Q.executeSql("CREATE TABLE IF NOT EXISTS "+lt.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],rt,ft)}function te(Q,lt,rt,ft,ht,ct){Q.executeSql(rt,ft,ht,function(mt,wt){wt.code===wt.SYNTAX_ERR?mt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[lt.storeName],function(Et,kt){kt.rows.length?ct(Et,wt):ae(Et,lt,function(){Et.executeSql(rt,ft,ht,ct)},ct)},ct):ct(mt,wt)},ct)}function he(Q,lt,rt,ft){var ht=this;Q=l(Q);var ct=new s(function(mt,wt){ht.ready().then(function(){void 0===lt&&(lt=null);var Et=lt,kt=ht._dbInfo;kt.serializer.serialize(lt,function(Tt,Nt){Nt?wt(Nt):kt.db.transaction(function(qt){te(qt,kt,"INSERT OR REPLACE INTO "+kt.storeName+" (key, value) VALUES (?, ?)",[Q,Tt],function(){mt(Et)},function(Dt,Bt){wt(Bt)})},function(qt){if(qt.code===qt.QUOTA_ERR){if(ft>0)return void mt(he.apply(ht,[Q,Et,rt,ft-1]));wt(qt)}})})}).catch(wt)});return f(ct,rt),ct}function Oe(Q){return new s(function(lt,rt){Q.transaction(function(ft){ft.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(ht,ct){for(var mt=[],wt=0;wt<ct.rows.length;wt++)mt.push(ct.rows.item(wt).name);lt({db:Q,storeNames:mt})},function(ht,ct){rt(ct)})},function(ft){rt(ft)})})}var Fe={_driver:"webSQLStorage",_initStorage:function jt(Q){var lt=this,rt={db:null};if(Q)for(var ft in Q)rt[ft]="string"!=typeof Q[ft]?Q[ft].toString():Q[ft];var ht=new s(function(ct,mt){try{rt.db=openDatabase(rt.name,String(rt.version),rt.description,rt.size)}catch(wt){return mt(wt)}rt.db.transaction(function(wt){ae(wt,rt,function(){lt._dbInfo=rt,ct()},function(Et,kt){mt(kt)})},mt)});return rt.serializer=le,ht},_support:function J(){return"function"==typeof openDatabase}(),iterate:function de(Q,lt){var rt=this,ft=new s(function(ht,ct){rt.ready().then(function(){var mt=rt._dbInfo;mt.db.transaction(function(wt){te(wt,mt,"SELECT * FROM "+mt.storeName,[],function(Et,kt){for(var Tt=kt.rows,Nt=Tt.length,qt=0;qt<Nt;qt++){var Dt=Tt.item(qt),Bt=Dt.value;if(Bt&&(Bt=mt.serializer.deserialize(Bt)),void 0!==(Bt=Q(Bt,Dt.key,qt+1)))return void ht(Bt)}ht()},function(Et,kt){ct(kt)})})}).catch(ct)});return f(ft,lt),ft},getItem:function fe(Q,lt){var rt=this;Q=l(Q);var ft=new s(function(ht,ct){rt.ready().then(function(){var mt=rt._dbInfo;mt.db.transaction(function(wt){te(wt,mt,"SELECT * FROM "+mt.storeName+" WHERE key = ? LIMIT 1",[Q],function(Et,kt){var Tt=kt.rows.length?kt.rows.item(0).value:null;Tt&&(Tt=mt.serializer.deserialize(Tt)),ht(Tt)},function(Et,kt){ct(kt)})})}).catch(ct)});return f(ft,lt),ft},setItem:function ee(Q,lt,rt){return he.apply(this,[Q,lt,rt,1])},removeItem:function pe(Q,lt){var rt=this;Q=l(Q);var ft=new s(function(ht,ct){rt.ready().then(function(){var mt=rt._dbInfo;mt.db.transaction(function(wt){te(wt,mt,"DELETE FROM "+mt.storeName+" WHERE key = ?",[Q],function(){ht()},function(Et,kt){ct(kt)})})}).catch(ct)});return f(ft,lt),ft},clear:function ve(Q){var lt=this,rt=new s(function(ft,ht){lt.ready().then(function(){var ct=lt._dbInfo;ct.db.transaction(function(mt){te(mt,ct,"DELETE FROM "+ct.storeName,[],function(){ft()},function(wt,Et){ht(Et)})})}).catch(ht)});return f(rt,Q),rt},length:function Ee(Q){var lt=this,rt=new s(function(ft,ht){lt.ready().then(function(){var ct=lt._dbInfo;ct.db.transaction(function(mt){te(mt,ct,"SELECT COUNT(key) as c FROM "+ct.storeName,[],function(wt,Et){var kt=Et.rows.item(0).c;ft(kt)},function(wt,Et){ht(Et)})})}).catch(ht)});return f(rt,Q),rt},key:function Me(Q,lt){var rt=this,ft=new s(function(ht,ct){rt.ready().then(function(){var mt=rt._dbInfo;mt.db.transaction(function(wt){te(wt,mt,"SELECT key FROM "+mt.storeName+" WHERE id = ? LIMIT 1",[Q+1],function(Et,kt){var Tt=kt.rows.length?kt.rows.item(0).key:null;ht(Tt)},function(Et,kt){ct(kt)})})}).catch(ct)});return f(ft,lt),ft},keys:function He(Q){var lt=this,rt=new s(function(ft,ht){lt.ready().then(function(){var ct=lt._dbInfo;ct.db.transaction(function(mt){te(mt,ct,"SELECT key FROM "+ct.storeName,[],function(wt,Et){for(var kt=[],Tt=0;Tt<Et.rows.length;Tt++)kt.push(Et.rows.item(Tt).key);ft(kt)},function(wt,Et){ht(Et)})})}).catch(ht)});return f(rt,Q),rt},dropInstance:function Ue(Q,lt){lt=c.apply(this,arguments);var rt=this.config();(Q="function"!=typeof Q&&Q||{}).name||(Q.name=Q.name||rt.name,Q.storeName=Q.storeName||rt.storeName);var ht,ft=this;return f(ht=Q.name?new s(function(ct){var mt;mt=Q.name===rt.name?ft._dbInfo.db:openDatabase(Q.name,"","",0),ct(Q.storeName?{db:mt,storeNames:[Q.storeName]}:Oe(mt))}).then(function(ct){return new s(function(mt,wt){ct.db.transaction(function(Et){function kt(Dt){return new s(function(Bt,Wt){Et.executeSql("DROP TABLE IF EXISTS "+Dt,[],function(){Bt()},function(zt,Qt){Wt(Qt)})})}for(var Tt=[],Nt=0,qt=ct.storeNames.length;Nt<qt;Nt++)Tt.push(kt(ct.storeNames[Nt]));s.all(Tt).then(function(){mt()}).catch(function(Dt){wt(Dt)})},function(Et){wt(Et)})})}):s.reject("Invalid arguments"),lt),ht}};function qe(Q,lt){var rt=Q.name+"/";return Q.storeName!==lt.storeName&&(rt+=Q.storeName+"/"),rt}var Qe={_driver:"localStorageWrapper",_initStorage:function Ke(Q){var rt={};if(Q)for(var ft in Q)rt[ft]=Q[ft];return rt.keyPrefix=qe(Q,this._defaultConfig),function ze(){return!function We(){var Q="_localforage_support_test";try{return localStorage.setItem(Q,!0),localStorage.removeItem(Q),!1}catch(lt){return!0}}()||localStorage.length>0}()?(this._dbInfo=rt,rt.serializer=le,s.resolve()):s.reject()},_support:function ue(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(Q){return!1}}(),iterate:function Ye(Q,lt){var rt=this,ft=rt.ready().then(function(){for(var ht=rt._dbInfo,ct=ht.keyPrefix,mt=ct.length,wt=localStorage.length,Et=1,kt=0;kt<wt;kt++){var Tt=localStorage.key(kt);if(0===Tt.indexOf(ct)){var Nt=localStorage.getItem(Tt);if(Nt&&(Nt=ht.serializer.deserialize(Nt)),void 0!==(Nt=Q(Nt,Tt.substring(mt),Et++)))return Nt}}});return f(ft,lt),ft},getItem:function $e(Q,lt){var rt=this;Q=l(Q);var ft=rt.ready().then(function(){var ht=rt._dbInfo,ct=localStorage.getItem(ht.keyPrefix+Q);return ct&&(ct=ht.serializer.deserialize(ct)),ct});return f(ft,lt),ft},setItem:function Ze(Q,lt,rt){var ft=this;Q=l(Q);var ht=ft.ready().then(function(){void 0===lt&&(lt=null);var ct=lt;return new s(function(mt,wt){var Et=ft._dbInfo;Et.serializer.serialize(lt,function(kt,Tt){if(Tt)wt(Tt);else try{localStorage.setItem(Et.keyPrefix+Q,kt),mt(ct)}catch(Nt){("QuotaExceededError"===Nt.name||"NS_ERROR_DOM_QUOTA_REACHED"===Nt.name)&&wt(Nt),wt(Nt)}})})});return f(ht,rt),ht},removeItem:function Ge(Q,lt){var rt=this;Q=l(Q);var ft=rt.ready().then(function(){localStorage.removeItem(rt._dbInfo.keyPrefix+Q)});return f(ft,lt),ft},clear:function ke(Q){var lt=this,rt=lt.ready().then(function(){for(var ft=lt._dbInfo.keyPrefix,ht=localStorage.length-1;ht>=0;ht--){var ct=localStorage.key(ht);0===ct.indexOf(ft)&&localStorage.removeItem(ct)}});return f(rt,Q),rt},length:function It(Q){var rt=this.keys().then(function(ft){return ft.length});return f(rt,Q),rt},key:function Ve(Q,lt){var rt=this,ft=rt.ready().then(function(){var ct,ht=rt._dbInfo;try{ct=localStorage.key(Q)}catch(mt){ct=null}return ct&&(ct=ct.substring(ht.keyPrefix.length)),ct});return f(ft,lt),ft},keys:function Xe(Q){var lt=this,rt=lt.ready().then(function(){for(var ft=lt._dbInfo,ht=localStorage.length,ct=[],mt=0;mt<ht;mt++){var wt=localStorage.key(mt);0===wt.indexOf(ft.keyPrefix)&&ct.push(wt.substring(ft.keyPrefix.length))}return ct});return f(rt,Q),rt},dropInstance:function Je(Q,lt){if(lt=c.apply(this,arguments),!(Q="function"!=typeof Q&&Q||{}).name){var rt=this.config();Q.name=Q.name||rt.name,Q.storeName=Q.storeName||rt.storeName}var ht,ft=this;return f(ht=Q.name?new s(function(ct){ct(Q.storeName?qe(Q,ft._defaultConfig):Q.name+"/")}).then(function(ct){for(var mt=localStorage.length-1;mt>=0;mt--){var wt=localStorage.key(mt);0===wt.indexOf(ct)&&localStorage.removeItem(wt)}}):s.reject("Invalid arguments"),lt),ht}},tn=function(lt,rt){return lt===rt||"number"==typeof lt&&"number"==typeof rt&&isNaN(lt)&&isNaN(rt)},en=function(lt,rt){for(var ft=lt.length,ht=0;ht<ft;){if(tn(lt[ht],rt))return!0;ht++}return!1},ge=Array.isArray||function(Q){return"[object Array]"===Object.prototype.toString.call(Q)},ne={},Te={},re={INDEXEDDB:Lt,WEBSQL:Fe,LOCALSTORAGE:Qe},Zt=[re.INDEXEDDB._driver,re.WEBSQL._driver,re.LOCALSTORAGE._driver],ye=["dropInstance"],Ae=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ye),nn={description:"",driver:Zt.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function rn(Q,lt){Q[lt]=function(){var rt=arguments;return Q.ready().then(function(){return Q[lt].apply(Q,rt)})}}function me(){for(var Q=1;Q<arguments.length;Q++){var lt=arguments[Q];if(lt)for(var rt in lt)lt.hasOwnProperty(rt)&&(arguments[0][rt]=ge(lt[rt])?lt[rt].slice():lt[rt])}return arguments[0]}var on=function(){function Q(lt){for(var rt in function v(Q,lt){if(!(Q instanceof lt))throw new TypeError("Cannot call a class as a function")}(this,Q),re)if(re.hasOwnProperty(rt)){var ft=re[rt],ht=ft._driver;this[rt]=ht,ne[ht]||this.defineDriver(ft)}this._defaultConfig=me({},nn),this._config=me({},this._defaultConfig,lt),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return Q.prototype.config=function(rt){if("object"===(void 0===rt?"undefined":g(rt))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var ft in rt){if("storeName"===ft&&(rt[ft]=rt[ft].replace(/\W/g,"_")),"version"===ft&&"number"!=typeof rt[ft])return new Error("Database version must be a number.");this._config[ft]=rt[ft]}return!("driver"in rt)||!rt.driver||this.setDriver(this._config.driver)}return"string"==typeof rt?this._config[rt]:this._config},Q.prototype.defineDriver=function(rt,ft,ht){var ct=new s(function(mt,wt){try{var Et=rt._driver,kt=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!rt._driver)return void wt(kt);for(var Tt=Ae.concat("_initStorage"),Nt=0,qt=Tt.length;Nt<qt;Nt++){var Dt=Tt[Nt];if((!en(ye,Dt)||rt[Dt])&&"function"!=typeof rt[Dt])return void wt(kt)}!function(){for(var ce=function(ln){return function(){var se=new Error("Method "+ln+" is not implemented by the current driver"),Ne=s.reject(se);return f(Ne,arguments[arguments.length-1]),Ne}},Se=0,sn=ye.length;Se<sn;Se++){var xe=ye[Se];rt[xe]||(rt[xe]=ce(xe))}}();var zt=function(ce){ne[Et]&&console.info("Redefining LocalForage driver: "+Et),ne[Et]=rt,Te[Et]=ce,mt()};"_support"in rt?rt._support&&"function"==typeof rt._support?rt._support().then(zt,wt):zt(!!rt._support):zt(!0)}catch(Qt){wt(Qt)}});return h(ct,ft,ht),ct},Q.prototype.driver=function(){return this._driver||null},Q.prototype.getDriver=function(rt,ft,ht){var ct=ne[rt]?s.resolve(ne[rt]):s.reject(new Error("Driver not found."));return h(ct,ft,ht),ct},Q.prototype.getSerializer=function(rt){var ft=s.resolve(le);return h(ft,rt),ft},Q.prototype.ready=function(rt){var ft=this,ht=ft._driverSet.then(function(){return null===ft._ready&&(ft._ready=ft._initDriver()),ft._ready});return h(ht,rt,rt),ht},Q.prototype.setDriver=function(rt,ft,ht){var ct=this;ge(rt)||(rt=[rt]);var mt=this._getSupportedDrivers(rt);function wt(){ct._config.driver=ct.driver()}function Et(Nt){return ct._extend(Nt),wt(),ct._ready=ct._initStorage(ct._config),ct._ready}var Tt=null!==this._driverSet?this._driverSet.catch(function(){return s.resolve()}):s.resolve();return this._driverSet=Tt.then(function(){var Nt=mt[0];return ct._dbInfo=null,ct._ready=null,ct.getDriver(Nt).then(function(qt){ct._driver=qt._driver,wt(),ct._wrapLibraryMethodsWithReady(),ct._initDriver=function kt(Nt){return function(){var qt=0;return function Dt(){for(;qt<Nt.length;){var Bt=Nt[qt];return qt++,ct._dbInfo=null,ct._ready=null,ct.getDriver(Bt).then(Et).catch(Dt)}wt();var Wt=new Error("No available storage method found.");return ct._driverSet=s.reject(Wt),ct._driverSet}()}}(mt)})}).catch(function(){wt();var Nt=new Error("No available storage method found.");return ct._driverSet=s.reject(Nt),ct._driverSet}),h(this._driverSet,ft,ht),this._driverSet},Q.prototype.supports=function(rt){return!!Te[rt]},Q.prototype._extend=function(rt){me(this,rt)},Q.prototype._getSupportedDrivers=function(rt){for(var ft=[],ht=0,ct=rt.length;ht<ct;ht++){var mt=rt[ht];this.supports(mt)&&ft.push(mt)}return ft},Q.prototype._wrapLibraryMethodsWithReady=function(){for(var rt=0,ft=Ae.length;rt<ft;rt++)rn(this,Ae[rt])},Q.prototype.createInstance=function(rt){return new Q(rt)},Q}(),an=new on;u.exports=an},{3:3}]},{},[4])(4)}),function(B,p){"object"==typeof exports&&"undefined"!=typeof module?module.exports=p():"function"==typeof define&&define.amd?define(p):(B=B||self).Push=p()}(this,function(){"use strict";var B={errors:{incompatible:"".concat("PushError:"," Push.js is incompatible with browser."),invalid_plugin:"".concat("PushError:"," plugin class missing from plugin manifest (invalid plugin). Please check the documentation."),invalid_title:"".concat("PushError:"," title of notification must be a string"),permission_denied:"".concat("PushError:"," permission request declined"),sw_notification_error:"".concat("PushError:"," could not show a ServiceWorker notification due to the following reason: "),sw_registration_error:"".concat("PushError:"," could not register the ServiceWorker due to the following reason: "),unknown_interface:"".concat("PushError:"," unable to create notification: unknown interface")}};function p(m){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(m)}function d(m,a){if(!(m instanceof a))throw new TypeError("Cannot call a class as a function")}function O(m,a){for(var E=0;E<a.length;E++){var x=a[E];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(m,x.key,x)}}function u(m,a,E){return a&&O(m.prototype,a),E&&O(m,E),m}function y(m,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(a&&a.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),a&&v(m,a)}function g(m){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(m)}function v(m,a){return(v=Object.setPrototypeOf||function(E,x){return E.__proto__=x,E})(m,a)}function o(m,a){return!a||"object"!=typeof a&&"function"!=typeof a?function(E){if(void 0===E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}(m):a}var r=function(){function m(a){d(this,m),this._win=a,this.GRANTED="granted",this.DEFAULT="default",this.DENIED="denied",this._permissions=[this.GRANTED,this.DEFAULT,this.DENIED]}return u(m,[{key:"request",value:function(a,E){return arguments.length>0?this._requestWithCallback.apply(this,arguments):this._requestAsPromise()}},{key:"_requestWithCallback",value:function(a,E){var x,S=this,A=this.get(),b=!1,k=function(){var _=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S._win.Notification.permission;b||(b=!0,void 0===_&&S._win.webkitNotifications&&(_=S._win.webkitNotifications.checkPermission()),_===S.GRANTED||0===_?a&&a():E&&E())};A!==this.DEFAULT?k(A):this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission?this._win.webkitNotifications.requestPermission(k):this._win.Notification&&this._win.Notification.requestPermission?(x=this._win.Notification.requestPermission(k))&&x.then&&x.then(k).catch(function(){E&&E()}):a&&a()}},{key:"_requestAsPromise",value:function(){var a=this,E=this.get(),x=E!==this.DEFAULT,S=this._win.Notification&&this._win.Notification.requestPermission,A=this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission;return new Promise(function(b,k){var _,w=!1,N=function(j){var H;w||(w=!0,(H=j)===a.GRANTED||0===H?b():k())};x?N(E):A?a._win.webkitNotifications.requestPermission(function(j){N(j)}):S?(_=a._win.Notification.requestPermission(N))&&_.then&&_.then(N).catch(k):b()})}},{key:"has",value:function(){return this.get()===this.GRANTED}},{key:"get",value:function(){return this._win.Notification&&this._win.Notification.permission?this._win.Notification.permission:this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission?this._permissions[this._win.webkitNotifications.checkPermission()]:navigator.mozNotification?this.GRANTED:this._win.external&&this._win.external.msIsSiteMode?this._win.external.msIsSiteMode()?this.GRANTED:this.DEFAULT:this.GRANTED}}]),m}(),n=function(){function m(){d(this,m)}return u(m,null,[{key:"isUndefined",value:function(a){return void 0===a}},{key:"isNull",value:function(a){return null===obj}},{key:"isString",value:function(a){return"string"==typeof a}},{key:"isFunction",value:function(a){return a&&"[object Function]"==={}.toString.call(a)}},{key:"isObject",value:function(a){return"object"===p(a)}},{key:"objectMerge",value:function(a,E){for(var x in E)a.hasOwnProperty(x)&&this.isObject(a[x])&&this.isObject(E[x])?this.objectMerge(a[x],E[x]):a[x]=E[x]}}]),m}(),i=function m(a){d(this,m),this._win=a},s=function(m){function a(){return d(this,a),o(this,g(a).apply(this,arguments))}return y(a,i),u(a,[{key:"isSupported",value:function(){return void 0!==this._win.Notification}},{key:"create",value:function(E,x){return new this._win.Notification(E,{icon:n.isString(x.icon)||n.isUndefined(x.icon)||n.isNull(x.icon)?x.icon:x.icon.x32,body:x.body,tag:x.tag,requireInteraction:x.requireInteraction})}},{key:"close",value:function(E){E.close()}}]),a}(),f=function(m){function a(){return d(this,a),o(this,g(a).apply(this,arguments))}return y(a,i),u(a,[{key:"isSupported",value:function(){return void 0!==this._win.navigator&&void 0!==this._win.navigator.serviceWorker}},{key:"getFunctionBody",value:function(E){var x=E.toString().match(/function[^{]+{([\s\S]*)}$/);return null!=x&&x.length>1?x[1]:null}},{key:"create",value:function(E,x,S,A,b){var k=this;this._win.navigator.serviceWorker.register(A),this._win.navigator.serviceWorker.ready.then(function(_){var w={id:E,link:S.link,origin:document.location.href,onClick:n.isFunction(S.onClick)?k.getFunctionBody(S.onClick):"",onClose:n.isFunction(S.onClose)?k.getFunctionBody(S.onClose):""};null!=S.data&&(w=Object.assign(w,S.data)),_.showNotification(x,{icon:S.icon,body:S.body,vibrate:S.vibrate,tag:S.tag,data:w,requireInteraction:S.requireInteraction,silent:S.silent}).then(function(){_.getNotifications().then(function(N){_.active.postMessage(""),b(N)})}).catch(function(N){throw new Error(B.errors.sw_notification_error+N.message)})}).catch(function(_){throw new Error(B.errors.sw_registration_error+_.message)})}},{key:"close",value:function(){}}]),a}(),h=function(m){function a(){return d(this,a),o(this,g(a).apply(this,arguments))}return y(a,i),u(a,[{key:"isSupported",value:function(){return void 0!==this._win.navigator.mozNotification}},{key:"create",value:function(E,x){var S=this._win.navigator.mozNotification.createNotification(E,x.body,x.icon);return S.show(),S}}]),a}(),l=function(m){function a(){return d(this,a),o(this,g(a).apply(this,arguments))}return y(a,i),u(a,[{key:"isSupported",value:function(){return void 0!==this._win.external&&void 0!==this._win.external.msIsSiteMode}},{key:"create",value:function(E,x){return this._win.external.msSiteModeClearIconOverlay(),this._win.external.msSiteModeSetIconOverlay(n.isString(x.icon)||n.isUndefined(x.icon)?x.icon:x.icon.x16,E),this._win.external.msSiteModeActivate(),null}},{key:"close",value:function(){this._win.external.msSiteModeClearIconOverlay()}}]),a}(),c=function(m){function a(){return d(this,a),o(this,g(a).apply(this,arguments))}return y(a,i),u(a,[{key:"isSupported",value:function(){return void 0!==this._win.webkitNotifications}},{key:"create",value:function(E,x){var S=this._win.webkitNotifications.createNotification(x.icon,E,x.body);return S.show(),S}},{key:"close",value:function(E){E.cancel()}}]),a}();return new(function(){function m(a){d(this,m),this._currentId=0,this._notifications={},this._win=a,this.Permission=new r(a),this._agents={desktop:new s(a),chrome:new f(a),firefox:new h(a),ms:new l(a),webkit:new c(a)},this._configuration={serviceWorker:"/serviceWorker.min.js",fallback:function(E){}}}return u(m,[{key:"_closeNotification",value:function(a){var E=!0,x=this._notifications[a];if(void 0!==x){if(E=this._removeNotification(a),this._agents.desktop.isSupported())this._agents.desktop.close(x);else if(this._agents.webkit.isSupported())this._agents.webkit.close(x);else{if(!this._agents.ms.isSupported())throw E=!1,new Error(B.errors.unknown_interface);this._agents.ms.close()}return E}return!1}},{key:"_addNotification",value:function(a){var E=this._currentId;return this._notifications[E]=a,this._currentId++,E}},{key:"_removeNotification",value:function(a){var E=!1;return this._notifications.hasOwnProperty(a)&&(delete this._notifications[a],E=!0),E}},{key:"_prepareNotification",value:function(a,E){var x,S=this;return x={get:function(){return S._notifications[a]},close:function(){S._closeNotification(a)}},E.timeout&&setTimeout(function(){x.close()},E.timeout),x}},{key:"_serviceWorkerCallback",value:function(a,E,x){var S=this,A=this._addNotification(a[a.length-1]);navigator&&navigator.serviceWorker&&(navigator.serviceWorker.addEventListener("message",function(b){var k=JSON.parse(b.data);"close"===k.action&&Number.isInteger(k.id)&&S._removeNotification(k.id)}),x(this._prepareNotification(A,E))),x(null)}},{key:"_createCallback",value:function(a,E,x){var S,A=this,b=null;if(E=E||{},S=function(j){A._removeNotification(j),n.isFunction(E.onClose)&&E.onClose.call(A,b)},this._agents.desktop.isSupported())try{b=this._agents.desktop.create(a,E)}catch(j){var k=this._currentId,_=this.config().serviceWorker;this._agents.chrome.isSupported()&&this._agents.chrome.create(k,a,E,_,function(H){return A._serviceWorkerCallback(H,E,x)})}else this._agents.webkit.isSupported()?b=this._agents.webkit.create(a,E):this._agents.firefox.isSupported()?this._agents.firefox.create(a,E):this._agents.ms.isSupported()?b=this._agents.ms.create(a,E):(E.title=a,this.config().fallback(E));if(null!==b){var w=this._addNotification(b),N=this._prepareNotification(w,E);n.isFunction(E.onShow)&&b.addEventListener("show",E.onShow),n.isFunction(E.onError)&&b.addEventListener("error",E.onError),n.isFunction(E.onClick)&&b.addEventListener("click",E.onClick),b.addEventListener("close",function(){S(w)}),b.addEventListener("cancel",function(){S(w)}),x(N)}x(null)}},{key:"create",value:function(a,E){var x,S=this;if(!n.isString(a))throw new Error(B.errors.invalid_title);return x=this.Permission.has()?function(A,b){try{S._createCallback(a,E,A)}catch(k){b(k)}}:function(A,b){S.Permission.request().then(function(){S._createCallback(a,E,A)}).catch(function(){b(B.errors.permission_denied)})},new Promise(x)}},{key:"count",value:function(){var a,E=0;for(a in this._notifications)this._notifications.hasOwnProperty(a)&&E++;return E}},{key:"close",value:function(a){var E;for(E in this._notifications)if(this._notifications.hasOwnProperty(E)&&this._notifications[E].tag===a)return this._closeNotification(E)}},{key:"clear",value:function(){var a,E=!0;for(a in this._notifications)this._notifications.hasOwnProperty(a)&&(E=E&&this._closeNotification(a));return E}},{key:"supported",value:function(){var a=!1;for(var E in this._agents)this._agents.hasOwnProperty(E)&&(a=a||this._agents[E].isSupported());return a}},{key:"config",value:function(a){return(void 0!==a||null!==a&&n.isObject(a))&&n.objectMerge(this._configuration,a),this._configuration}},{key:"extend",value:function(a){var E,x={}.hasOwnProperty;if(!x.call(a,"plugin"))throw new Error(B.errors.invalid_plugin);for(var S in x.call(a,"config")&&n.isObject(a.config)&&null!==a.config&&this.config(a.config),E=new a.plugin(this.config()))x.call(E,S)&&n.isFunction(E[S])&&(this[S]=E[S])}}]),m}())("undefined"!=typeof window?window:global)}),function(p,d){"object"==typeof exports&&"object"==typeof module?module.exports=d():"function"==typeof define&&define.amd?define([],d):"object"==typeof exports?exports.Quill=d():p.Quill=d()}("undefined"!=typeof self?self:this,function(){return function(B){var p={};function d(O){if(p[O])return p[O].exports;var u=p[O]={i:O,l:!1,exports:{}};return B[O].call(u.exports,u,u.exports,d),u.l=!0,u.exports}return d.m=B,d.c=p,d.d=function(O,u,y){d.o(O,u)||Object.defineProperty(O,u,{configurable:!1,enumerable:!0,get:y})},d.n=function(O){var u=O&&O.__esModule?function(){return O.default}:function(){return O};return d.d(u,"a",u),u},d.o=function(O,u){return Object.prototype.hasOwnProperty.call(O,u)},d.p="",d(d.s=109)}([function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=d(17),u=d(18),y=d(19),g=d(45),v=d(46),o=d(47),r=d(48),n=d(49),i=d(12),s=d(32),f=d(33),h=d(31),l=d(1);p.default={Scope:l.Scope,create:l.create,find:l.find,query:l.query,register:l.register,Container:O.default,Format:u.default,Leaf:y.default,Embed:r.default,Scroll:g.default,Block:o.default,Inline:v.default,Text:n.default,Attributor:{Attribute:i.default,Class:s.default,Style:f.default,Store:h.default}}},function(B,p,d){"use strict";var h,O=this&&this.__extends||(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var m in c)c.hasOwnProperty(m)&&(l[m]=c[m])},function(l,c){function m(){this.constructor=l}h(l,c),l.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)});Object.defineProperty(p,"__esModule",{value:!0});var u=function(h){function l(c){var m=this;return(m=h.call(this,c="[Parchment] "+c)||this).message=c,m.name=m.constructor.name,m}return O(l,h),l}(Error);p.ParchmentError=u;var r,y={},g={},v={},o={};function s(h,l){var c;if(void 0===l&&(l=r.ANY),"string"==typeof h)c=o[h]||y[h];else if(h instanceof Text||h.nodeType===Node.TEXT_NODE)c=o.text;else if("number"==typeof h)h&r.LEVEL&r.BLOCK?c=o.block:h&r.LEVEL&r.INLINE&&(c=o.inline);else if(h instanceof HTMLElement){var m=(h.getAttribute("class")||"").split(/\s+/);for(var a in m)if(c=g[m[a]])break;c=c||v[h.tagName]}return null==c?null:l&r.LEVEL&c.scope&&l&r.TYPE&c.scope?c:null}p.DATA_KEY="__blot",function(h){h[h.TYPE=3]="TYPE",h[h.LEVEL=12]="LEVEL",h[h.ATTRIBUTE=13]="ATTRIBUTE",h[h.BLOT=14]="BLOT",h[h.INLINE=7]="INLINE",h[h.BLOCK=11]="BLOCK",h[h.BLOCK_BLOT=10]="BLOCK_BLOT",h[h.INLINE_BLOT=6]="INLINE_BLOT",h[h.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",h[h.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",h[h.ANY=15]="ANY"}(r=p.Scope||(p.Scope={})),p.create=function n(h,l){var c=s(h);if(null==c)throw new u("Unable to create "+h+" blot");var m=c,a=h instanceof Node||h.nodeType===Node.TEXT_NODE?h:m.create(l);return new m(a,l)},p.find=function i(h,l){return void 0===l&&(l=!1),null==h?null:null!=h[p.DATA_KEY]?h[p.DATA_KEY].blot:l?i(h.parentNode,l):null},p.query=s,p.register=function f(){for(var h=[],l=0;l<arguments.length;l++)h[l]=arguments[l];if(h.length>1)return h.map(function(a){return f(a)});var c=h[0];if("string"!=typeof c.blotName&&"string"!=typeof c.attrName)throw new u("Invalid definition");if("abstract"===c.blotName)throw new u("Cannot register abstract class");if(o[c.blotName||c.attrName]=c,"string"==typeof c.keyName)y[c.keyName]=c;else if(null!=c.className&&(g[c.className]=c),null!=c.tagName){c.tagName=Array.isArray(c.tagName)?c.tagName.map(function(a){return a.toUpperCase()}):c.tagName.toUpperCase();var m=Array.isArray(c.tagName)?c.tagName:[c.tagName];m.forEach(function(a){(null==v[a]||null==c.className)&&(v[a]=c)})}return c}},function(B,p,d){var O=d(51),u=d(11),y=d(3),g=d(20),v=String.fromCharCode(0),o=function(r){this.ops=Array.isArray(r)?r:null!=r&&Array.isArray(r.ops)?r.ops:[]};o.prototype.insert=function(r,n){var i={};return 0===r.length?this:(i.insert=r,null!=n&&"object"==typeof n&&Object.keys(n).length>0&&(i.attributes=n),this.push(i))},o.prototype.delete=function(r){return r<=0?this:this.push({delete:r})},o.prototype.retain=function(r,n){if(r<=0)return this;var i={retain:r};return null!=n&&"object"==typeof n&&Object.keys(n).length>0&&(i.attributes=n),this.push(i)},o.prototype.push=function(r){var n=this.ops.length,i=this.ops[n-1];if(r=y(!0,{},r),"object"==typeof i){if("number"==typeof r.delete&&"number"==typeof i.delete)return this.ops[n-1]={delete:i.delete+r.delete},this;if("number"==typeof i.delete&&null!=r.insert&&"object"!=typeof(i=this.ops[(n-=1)-1]))return this.ops.unshift(r),this;if(u(r.attributes,i.attributes)){if("string"==typeof r.insert&&"string"==typeof i.insert)return this.ops[n-1]={insert:i.insert+r.insert},"object"==typeof r.attributes&&(this.ops[n-1].attributes=r.attributes),this;if("number"==typeof r.retain&&"number"==typeof i.retain)return this.ops[n-1]={retain:i.retain+r.retain},"object"==typeof r.attributes&&(this.ops[n-1].attributes=r.attributes),this}}return n===this.ops.length?this.ops.push(r):this.ops.splice(n,0,r),this},o.prototype.chop=function(){var r=this.ops[this.ops.length-1];return r&&r.retain&&!r.attributes&&this.ops.pop(),this},o.prototype.filter=function(r){return this.ops.filter(r)},o.prototype.forEach=function(r){this.ops.forEach(r)},o.prototype.map=function(r){return this.ops.map(r)},o.prototype.partition=function(r){var n=[],i=[];return this.forEach(function(s){(r(s)?n:i).push(s)}),[n,i]},o.prototype.reduce=function(r,n){return this.ops.reduce(r,n)},o.prototype.changeLength=function(){return this.reduce(function(r,n){return n.insert?r+g.length(n):n.delete?r-n.delete:r},0)},o.prototype.length=function(){return this.reduce(function(r,n){return r+g.length(n)},0)},o.prototype.slice=function(r,n){r=r||0,"number"!=typeof n&&(n=1/0);for(var i=[],s=g.iterator(this.ops),f=0;f<n&&s.hasNext();){var h;f<r?h=s.next(r-f):(h=s.next(n-f),i.push(h)),f+=g.length(h)}return new o(i)},o.prototype.compose=function(r){var n=g.iterator(this.ops),i=g.iterator(r.ops),s=[],f=i.peek();if(null!=f&&"number"==typeof f.retain&&null==f.attributes){for(var h=f.retain;"insert"===n.peekType()&&n.peekLength()<=h;)h-=n.peekLength(),s.push(n.next());f.retain-h>0&&i.next(f.retain-h)}for(var l=new o(s);n.hasNext()||i.hasNext();)if("insert"===i.peekType())l.push(i.next());else if("delete"===n.peekType())l.push(n.next());else{var c=Math.min(n.peekLength(),i.peekLength()),m=n.next(c),a=i.next(c);if("number"==typeof a.retain){var E={};"number"==typeof m.retain?E.retain=c:E.insert=m.insert;var x=g.attributes.compose(m.attributes,a.attributes,"number"==typeof m.retain);if(x&&(E.attributes=x),l.push(E),!i.hasNext()&&u(l.ops[l.ops.length-1],E)){var S=new o(n.rest());return l.concat(S).chop()}}else"number"==typeof a.delete&&"number"==typeof m.retain&&l.push(a)}return l.chop()},o.prototype.concat=function(r){var n=new o(this.ops.slice());return r.ops.length>0&&(n.push(r.ops[0]),n.ops=n.ops.concat(r.ops.slice(1))),n},o.prototype.diff=function(r,n){if(this.ops===r.ops)return new o;var i=[this,r].map(function(c){return c.map(function(m){if(null!=m.insert)return"string"==typeof m.insert?m.insert:v;throw new Error("diff() called "+(c===r?"on":"with")+" non-document")}).join("")}),s=new o,f=O(i[0],i[1],n),h=g.iterator(this.ops),l=g.iterator(r.ops);return f.forEach(function(c){for(var m=c[1].length;m>0;){var a=0;switch(c[0]){case O.INSERT:a=Math.min(l.peekLength(),m),s.push(l.next(a));break;case O.DELETE:a=Math.min(m,h.peekLength()),h.next(a),s.delete(a);break;case O.EQUAL:a=Math.min(h.peekLength(),l.peekLength(),m);var E=h.next(a),x=l.next(a);u(E.insert,x.insert)?s.retain(a,g.attributes.diff(E.attributes,x.attributes)):s.push(x).delete(a)}m-=a}}),s.chop()},o.prototype.eachLine=function(r,n){n=n||"\n";for(var i=g.iterator(this.ops),s=new o,f=0;i.hasNext();){if("insert"!==i.peekType())return;var h=i.peek(),l=g.length(h)-i.peekLength(),c="string"==typeof h.insert?h.insert.indexOf(n,l)-l:-1;if(c<0)s.push(i.next());else if(c>0)s.push(i.next(c));else{if(!1===r(s,i.next(1).attributes||{},f))return;f+=1,s=new o}}s.length()>0&&r(s,{},f)},o.prototype.transform=function(r,n){if(n=!!n,"number"==typeof r)return this.transformPosition(r,n);for(var i=g.iterator(this.ops),s=g.iterator(r.ops),f=new o;i.hasNext()||s.hasNext();)if("insert"!==i.peekType()||!n&&"insert"===s.peekType())if("insert"===s.peekType())f.push(s.next());else{var h=Math.min(i.peekLength(),s.peekLength()),l=i.next(h),c=s.next(h);if(l.delete)continue;c.delete?f.push(c):f.retain(h,g.attributes.transform(l.attributes,c.attributes,n))}else f.retain(g.length(i.next()));return f.chop()},o.prototype.transformPosition=function(r,n){n=!!n;for(var i=g.iterator(this.ops),s=0;i.hasNext()&&s<=r;){var f=i.peekLength(),h=i.peekType();i.next(),"delete"!==h?("insert"===h&&(s<r||!n)&&(r+=f),s+=f):r-=Math.min(f,r-s)}return r},B.exports=o},function(B,p){"use strict";var d=Object.prototype.hasOwnProperty,O=Object.prototype.toString,u=Object.defineProperty,y=Object.getOwnPropertyDescriptor,g=function(i){return"function"==typeof Array.isArray?Array.isArray(i):"[object Array]"===O.call(i)},v=function(i){if(!i||"[object Object]"!==O.call(i))return!1;var h,s=d.call(i,"constructor"),f=i.constructor&&i.constructor.prototype&&d.call(i.constructor.prototype,"isPrototypeOf");if(i.constructor&&!s&&!f)return!1;for(h in i);return void 0===h||d.call(i,h)},o=function(i,s){u&&"__proto__"===s.name?u(i,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):i[s.name]=s.newValue},r=function(i,s){if("__proto__"===s){if(!d.call(i,s))return;if(y)return y(i,s).value}return i[s]};B.exports=function n(){var i,s,f,h,l,c,m=arguments[0],a=1,E=arguments.length,x=!1;for("boolean"==typeof m&&(x=m,m=arguments[1]||{},a=2),(null==m||"object"!=typeof m&&"function"!=typeof m)&&(m={});a<E;++a)if(null!=(i=arguments[a]))for(s in i)f=r(m,s),m!==(h=r(i,s))&&(x&&h&&(v(h)||(l=g(h)))?(l?(l=!1,c=f&&g(f)?f:[]):c=f&&v(f)?f:{},o(m,{name:s,newValue:n(x,c,h)})):void 0!==h&&o(m,{name:s,newValue:h}));return m}},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BlockEmbed=p.bubbleFormats=void 0;var O=function(){function _(w,N){for(var j=0;j<N.length;j++){var H=N[j];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(w,H.key,H)}}return function(w,N,j){return N&&_(w.prototype,N),j&&_(w,j),w}}(),u=function _(w,N,j){null===w&&(w=Function.prototype);var H=Object.getOwnPropertyDescriptor(w,N);if(void 0===H){var X=Object.getPrototypeOf(w);return null===X?void 0:_(X,N,j)}if("value"in H)return H.value;var Z=H.get;return void 0===Z?void 0:Z.call(j)},g=m(d(3)),o=m(d(2)),n=m(d(0)),s=m(d(16)),h=m(d(6)),c=m(d(7));function m(_){return _&&_.__esModule?_:{default:_}}function a(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function E(_,w){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!=typeof w&&"function"!=typeof w?_:w}function x(_,w){if("function"!=typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(_,w):_.__proto__=w)}var A=function(_){function w(){return a(this,w),E(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return x(w,_),O(w,[{key:"attach",value:function(){u(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"attach",this).call(this),this.attributes=new n.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new o.default).insert(this.value(),(0,g.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(j,H){var X=n.default.query(j,n.default.Scope.BLOCK_ATTRIBUTE);null!=X&&this.attributes.attribute(X,H)}},{key:"formatAt",value:function(j,H,X,Z){this.format(X,Z)}},{key:"insertAt",value:function(j,H,X){if("string"==typeof H&&H.endsWith("\n")){var Z=n.default.create(b.blotName);this.parent.insertBefore(Z,0===j?this:this.next),Z.insertAt(0,H.slice(0,-1))}else u(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,j,H,X)}}]),w}(n.default.Embed);A.scope=n.default.Scope.BLOCK_BLOT;var b=function(_){function w(N){a(this,w);var j=E(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,N));return j.cache={},j}return x(w,_),O(w,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(n.default.Leaf).reduce(function(j,H){return 0===H.length()?j:j.insert(H.value(),k(H))},new o.default).insert("\n",k(this))),this.cache.delta}},{key:"deleteAt",value:function(j,H){u(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"deleteAt",this).call(this,j,H),this.cache={}}},{key:"formatAt",value:function(j,H,X,Z){H<=0||(n.default.query(X,n.default.Scope.BLOCK)?j+H===this.length()&&this.format(X,Z):u(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"formatAt",this).call(this,j,Math.min(H,this.length()-j-1),X,Z),this.cache={})}},{key:"insertAt",value:function(j,H,X){if(null!=X)return u(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,j,H,X);if(0!==H.length){var Z=H.split("\n"),nt=Z.shift();nt.length>0&&(j<this.length()-1||null==this.children.tail?u(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,Math.min(j,this.length()-1),nt):this.children.tail.insertAt(this.children.tail.length(),nt),this.cache={});var K=this;Z.reduce(function(L,q){return(K=K.split(L,!0)).insertAt(0,q),q.length},j+nt.length)}}},{key:"insertBefore",value:function(j,H){var X=this.children.head;u(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,j,H),X instanceof s.default&&X.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=u(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(j,H){u(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"moveChildren",this).call(this,j,H),this.cache={}}},{key:"optimize",value:function(j){u(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,j),this.cache={}}},{key:"path",value:function(j){return u(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"path",this).call(this,j,!0)}},{key:"removeChild",value:function(j){u(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"removeChild",this).call(this,j),this.cache={}}},{key:"split",value:function(j){var H=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(H&&(0===j||j>=this.length()-1)){var X=this.clone();return 0===j?(this.parent.insertBefore(X,this),this):(this.parent.insertBefore(X,this.next),X)}var Z=u(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"split",this).call(this,j,H);return this.cache={},Z}}]),w}(n.default.Block);function k(_){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==_||("function"==typeof _.formats&&(w=(0,g.default)(w,_.formats())),null==_.parent||"scroll"==_.parent.blotName||_.parent.statics.scope!==_.statics.scope)?w:k(_.parent,w)}b.blotName="block",b.tagName="P",b.defaultChild="break",b.allowedChildren=[h.default,n.default.Embed,c.default],p.bubbleFormats=k,p.BlockEmbed=A,p.default=b},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.overload=p.expandConfig=void 0;var O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(K){return typeof K}:function(K){return K&&"function"==typeof Symbol&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},u=function(L,q){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return function K(L,q){var M=[],U=!0,G=!1,V=void 0;try{for(var W,D=L[Symbol.iterator]();!(U=(W=D.next()).done)&&(M.push(W.value),!q||M.length!==q);U=!0);}catch(tt){G=!0,V=tt}finally{try{!U&&D.return&&D.return()}finally{if(G)throw V}}return M}(L,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=function(){function K(L,q){for(var M=0;M<q.length;M++){var U=q[M];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(L,U.key,U)}}return function(L,q,M){return q&&K(L.prototype,q),M&&K(L,M),L}}();d(50);var v=k(d(2)),r=k(d(14)),i=k(d(8)),f=k(d(9)),l=k(d(0)),c=d(15),m=k(c),E=k(d(3)),S=k(d(10)),b=k(d(34));function k(K){return K&&K.__esModule?K:{default:K}}function _(K,L,q){return L in K?Object.defineProperty(K,L,{value:q,enumerable:!0,configurable:!0,writable:!0}):K[L]=q,K}function w(K,L){if(!(K instanceof L))throw new TypeError("Cannot call a class as a function")}var N=(0,S.default)("quill"),j=function(){function K(L){var q=this,M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(w(this,K),this.options=H(L,M),this.container=this.options.container,null==this.container)return N.error("Invalid Quill container",L);this.options.debug&&K.debug(this.options.debug);var U=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new i.default,this.scroll=l.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new r.default(this.scroll),this.selection=new m.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(i.default.events.EDITOR_CHANGE,function(V){V===i.default.events.TEXT_CHANGE&&q.root.classList.toggle("ql-blank",q.editor.isBlank())}),this.emitter.on(i.default.events.SCROLL_UPDATE,function(V,D){var W=q.selection.lastRange,tt=W&&0===W.length?W.index:void 0;X.call(q,function(){return q.editor.update(null,D,tt)},V)});var G=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+U+"<p><br></p></div>");this.setContents(G),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return y(K,null,[{key:"debug",value:function(q){!0===q&&(q="log"),S.default.level(q)}},{key:"find",value:function(q){return q.__quill||l.default.find(q)}},{key:"import",value:function(q){return null==this.imports[q]&&N.error("Cannot import "+q+". Are you sure it was registered?"),this.imports[q]}},{key:"register",value:function(q,M){var U=this,G=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof q){var V=q.attrName||q.blotName;"string"==typeof V?this.register("formats/"+V,q,M):Object.keys(q).forEach(function(D){U.register(D,q[D],M)})}else null!=this.imports[q]&&!G&&N.warn("Overwriting "+q+" with",M),this.imports[q]=M,(q.startsWith("blots/")||q.startsWith("formats/"))&&"abstract"!==M.blotName?l.default.register(M):q.startsWith("modules")&&"function"==typeof M.register&&M.register()}}]),y(K,[{key:"addContainer",value:function(q){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof q){var U=q;(q=document.createElement("div")).classList.add(U)}return this.container.insertBefore(q,M),q}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(q,M,U){var G=this,V=Z(q,M,U),D=u(V,4);return X.call(this,function(){return G.editor.deleteText(q,M)},U=D[3],q=D[0],-1*(M=D[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var q=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(q),this.container.classList.toggle("ql-disabled",!q)}},{key:"focus",value:function(){var q=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=q,this.scrollIntoView()}},{key:"format",value:function(q,M){var U=this,G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.default.sources.API;return X.call(this,function(){var V=U.getSelection(!0),D=new v.default;if(null==V)return D;if(l.default.query(q,l.default.Scope.BLOCK))D=U.editor.formatLine(V.index,V.length,_({},q,M));else{if(0===V.length)return U.selection.format(q,M),D;D=U.editor.formatText(V.index,V.length,_({},q,M))}return U.setSelection(V,i.default.sources.SILENT),D},G)}},{key:"formatLine",value:function(q,M,U,G,V){var W,D=this,tt=Z(q,M,U,G,V),it=u(tt,4);return M=it[1],W=it[2],X.call(this,function(){return D.editor.formatLine(q,M,W)},V=it[3],q=it[0],0)}},{key:"formatText",value:function(q,M,U,G,V){var W,D=this,tt=Z(q,M,U,G,V),it=u(tt,4);return M=it[1],W=it[2],X.call(this,function(){return D.editor.formatText(q,M,W)},V=it[3],q=it[0],0)}},{key:"getBounds",value:function(q){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,U=void 0;U="number"==typeof q?this.selection.getBounds(q,M):this.selection.getBounds(q.index,q.length);var G=this.container.getBoundingClientRect();return{bottom:U.bottom-G.top,height:U.height,left:U.left-G.left,right:U.right-G.left,top:U.top-G.top,width:U.width}}},{key:"getContents",value:function(){var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-q,U=Z(q,M),G=u(U,2);return this.editor.getContents(q=G[0],M=G[1])}},{key:"getFormat",value:function(){var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof q?this.editor.getFormat(q,M):this.editor.getFormat(q.index,q.length)}},{key:"getIndex",value:function(q){return q.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(q){return this.scroll.leaf(q)}},{key:"getLine",value:function(q){return this.scroll.line(q)}},{key:"getLines",value:function(){var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof q?this.scroll.lines(q.index,q.length):this.scroll.lines(q,M)}},{key:"getModule",value:function(q){return this.theme.modules[q]}},{key:"getSelection",value:function(){var q=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return q&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-q,U=Z(q,M),G=u(U,2);return this.editor.getText(q=G[0],M=G[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(q,M,U){var G=this,V=arguments.length>3&&void 0!==arguments[3]?arguments[3]:K.sources.API;return X.call(this,function(){return G.editor.insertEmbed(q,M,U)},V,q)}},{key:"insertText",value:function(q,M,U,G,V){var W,D=this,tt=Z(q,0,U,G,V),it=u(tt,4);return W=it[2],X.call(this,function(){return D.editor.insertText(q,M,W)},V=it[3],q=it[0],M.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(q,M,U){this.clipboard.dangerouslyPasteHTML(q,M,U)}},{key:"removeFormat",value:function(q,M,U){var G=this,V=Z(q,M,U),D=u(V,4);return M=D[1],X.call(this,function(){return G.editor.removeFormat(q,M)},U=D[3],q=D[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(q){var M=this,U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.sources.API;return X.call(this,function(){q=new v.default(q);var G=M.getLength(),V=M.editor.deleteText(0,G),D=M.editor.applyDelta(q),W=D.ops[D.ops.length-1];return null!=W&&"string"==typeof W.insert&&"\n"===W.insert[W.insert.length-1]&&(M.editor.deleteText(M.getLength()-1,1),D.delete(1)),V.compose(D)},U)}},{key:"setSelection",value:function(q,M,U){if(null==q)this.selection.setRange(null,M||K.sources.API);else{var G=Z(q,M,U),V=u(G,4);U=V[3],this.selection.setRange(new c.Range(q=V[0],M=V[1]),U),U!==i.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(q){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.sources.API,U=(new v.default).insert(q);return this.setContents(U,M)}},{key:"update",value:function(){var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.default.sources.USER,M=this.scroll.update(q);return this.selection.update(q),M}},{key:"updateContents",value:function(q){var M=this,U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.sources.API;return X.call(this,function(){return q=new v.default(q),M.editor.applyDelta(q,U)},U,!0)}}]),K}();function H(K,L){if((L=(0,E.default)(!0,{container:K,modules:{clipboard:!0,keyboard:!0,history:!0}},L)).theme&&L.theme!==j.DEFAULTS.theme){if(L.theme=j.import("themes/"+L.theme),null==L.theme)throw new Error("Invalid theme "+L.theme+". Did you register it?")}else L.theme=b.default;var q=(0,E.default)(!0,{},L.theme.DEFAULTS);[q,L].forEach(function(G){G.modules=G.modules||{},Object.keys(G.modules).forEach(function(V){!0===G.modules[V]&&(G.modules[V]={})})});var U=Object.keys(q.modules).concat(Object.keys(L.modules)).reduce(function(G,V){var D=j.import("modules/"+V);return null==D?N.error("Cannot load "+V+" module. Are you sure you registered it?"):G[V]=D.DEFAULTS||{},G},{});return null!=L.modules&&L.modules.toolbar&&L.modules.toolbar.constructor!==Object&&(L.modules.toolbar={container:L.modules.toolbar}),L=(0,E.default)(!0,{},j.DEFAULTS,{modules:U},q,L),["bounds","container","scrollingContainer"].forEach(function(G){"string"==typeof L[G]&&(L[G]=document.querySelector(L[G]))}),L.modules=Object.keys(L.modules).reduce(function(G,V){return L.modules[V]&&(G[V]=L.modules[V]),G},{}),L}function X(K,L,q,M){if(this.options.strict&&!this.isEnabled()&&L===i.default.sources.USER)return new v.default;var U=null==q?null:this.getSelection(),G=this.editor.delta,V=K();if(null!=U&&(!0===q&&(q=U.index),null==M?U=nt(U,V,L):0!==M&&(U=nt(U,q,M,L)),this.setSelection(U,i.default.sources.SILENT)),V.length()>0){var D,tt,W=[i.default.events.TEXT_CHANGE,V,G,L];(D=this.emitter).emit.apply(D,[i.default.events.EDITOR_CHANGE].concat(W)),L!==i.default.sources.SILENT&&(tt=this.emitter).emit.apply(tt,W)}return V}function Z(K,L,q,M,U){var G={};return"number"==typeof K.index&&"number"==typeof K.length?"number"!=typeof L?(U=M,M=q,q=L,L=K.length,K=K.index):(L=K.length,K=K.index):"number"!=typeof L&&(U=M,M=q,q=L,L=0),"object"===(void 0===q?"undefined":O(q))?(G=q,U=M):"string"==typeof q&&(null!=M?G[q]=M:U=q),[K,L,G,U=U||i.default.sources.API]}function nt(K,L,q,M){if(null==K)return null;var U=void 0,G=void 0;if(L instanceof v.default){var V=[K.index,K.index+K.length].map(function(it){return L.transformPosition(it,M!==i.default.sources.USER)}),D=u(V,2);U=D[0],G=D[1]}else{var W=[K.index,K.index+K.length].map(function(it){return it<L||it===L&&M===i.default.sources.USER?it:q>=0?it+q:Math.max(L,it+q)}),tt=u(W,2);U=tt[0],G=tt[1]}return new c.Range(U,G-U)}j.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},j.events=i.default.events,j.sources=i.default.sources,j.version="1.3.7",j.imports={delta:v.default,parchment:l.default,"core/module":f.default,"core/theme":b.default},p.expandConfig=H,p.overload=Z,p.default=j},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function h(l,c){for(var m=0;m<c.length;m++){var a=c[m];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}}return function(l,c,m){return c&&h(l.prototype,c),m&&h(l,m),l}}(),u=function h(l,c,m){null===l&&(l=Function.prototype);var a=Object.getOwnPropertyDescriptor(l,c);if(void 0===a){var E=Object.getPrototypeOf(l);return null===E?void 0:h(E,c,m)}if("value"in a)return a.value;var x=a.get;return void 0===x?void 0:x.call(m)},g=r(d(7)),o=r(d(0));function r(h){return h&&h.__esModule?h:{default:h}}function n(h,l){if(!(h instanceof l))throw new TypeError("Cannot call a class as a function")}function i(h,l){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?h:l}var f=function(h){function l(){return n(this,l),i(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function s(h,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);h.prototype=Object.create(l&&l.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(h,l):h.__proto__=l)}(l,h),O(l,[{key:"formatAt",value:function(m,a,E,x){if(l.compare(this.statics.blotName,E)<0&&o.default.query(E,o.default.Scope.BLOT)){var S=this.isolate(m,a);x&&S.wrap(E,x)}else u(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"formatAt",this).call(this,m,a,E,x)}},{key:"optimize",value:function(m){if(u(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,m),this.parent instanceof l&&l.compare(this.statics.blotName,this.parent.statics.blotName)>0){var a=this.parent.isolate(this.offset(),this.length());this.moveChildren(a),a.wrap(this)}}}],[{key:"compare",value:function(m,a){var E=l.order.indexOf(m),x=l.order.indexOf(a);return E>=0||x>=0?E-x:m===a?0:m<a?-1:1}}]),l}(o.default.Inline);f.allowedChildren=[f,o.default.Embed,g.default],f.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],p.default=f},function(B,p,d){"use strict";function g(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function v(n,i){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?n:i}Object.defineProperty(p,"__esModule",{value:!0});var r=function(n){function i(){return g(this,i),v(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function o(n,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=i)}(i,n),i}(function y(n){return n&&n.__esModule?n:{default:n}}(d(0)).default.Text);p.default=r},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function c(m,a){for(var E=0;E<a.length;E++){var x=a[E];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(m,x.key,x)}}return function(m,a,E){return a&&c(m.prototype,a),E&&c(m,E),m}}(),u=function c(m,a,E){null===m&&(m=Function.prototype);var x=Object.getOwnPropertyDescriptor(m,a);if(void 0===x){var S=Object.getPrototypeOf(m);return null===S?void 0:c(S,a,E)}if("value"in x)return x.value;var A=x.get;return void 0===A?void 0:A.call(E)},g=r(d(54));function r(c){return c&&c.__esModule?c:{default:c}}var f=(0,r(d(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(c){document.addEventListener(c,function(){for(var m=arguments.length,a=Array(m),E=0;E<m;E++)a[E]=arguments[E];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(x){var S;x.__quill&&x.__quill.emitter&&(S=x.__quill.emitter).handleDOM.apply(S,a)})})});var l=function(c){function m(){!function n(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")}(this,m);var a=function i(c,m){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?c:m}(this,(m.__proto__||Object.getPrototypeOf(m)).call(this));return a.listeners={},a.on("error",f.error),a}return function s(c,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);c.prototype=Object.create(m&&m.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(c,m):c.__proto__=m)}(m,c),O(m,[{key:"emit",value:function(){f.log.apply(f,arguments),u(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(E){for(var x=arguments.length,S=Array(x>1?x-1:0),A=1;A<x;A++)S[A-1]=arguments[A];(this.listeners[E.type]||[]).forEach(function(b){var k=b.node,_=b.handler;(E.target===k||k.contains(E.target))&&_.apply(void 0,[E].concat(S))})}},{key:"listenDOM",value:function(E,x,S){this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push({node:x,handler:S})}}]),m}(g.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},p.default=l},function(B,p,d){"use strict";function O(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var u=function y(g){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};O(this,y),this.quill=g,this.options=v};u.DEFAULTS={},p.default=u},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=["error","warn","log","info"],u="warn";function y(v){if(O.indexOf(v)<=O.indexOf(u)){for(var o,r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];(o=console)[v].apply(o,n)}}function g(v){return O.reduce(function(o,r){return o[r]=y.bind(console,r,v),o},{})}y.level=g.level=function(v){u=v},p.default=g},function(B,p,d){var O=Array.prototype.slice,u=d(52),y=d(53),g=B.exports=function(n,i,s){return s||(s={}),n===i||(n instanceof Date&&i instanceof Date?n.getTime()===i.getTime():!n||!i||"object"!=typeof n&&"object"!=typeof i?s.strict?n===i:n==i:function r(n,i,s){var f,h;if(v(n)||v(i)||n.prototype!==i.prototype)return!1;if(y(n))return!!y(i)&&(n=O.call(n),i=O.call(i),g(n,i,s));if(o(n)){if(!o(i)||n.length!==i.length)return!1;for(f=0;f<n.length;f++)if(n[f]!==i[f])return!1;return!0}try{var l=u(n),c=u(i)}catch(m){return!1}if(l.length!=c.length)return!1;for(l.sort(),c.sort(),f=l.length-1;f>=0;f--)if(l[f]!=c[f])return!1;for(f=l.length-1;f>=0;f--)if(!g(n[h=l[f]],i[h],s))return!1;return typeof n==typeof i}(n,i,s))};function v(n){return null==n}function o(n){return!(!n||"object"!=typeof n||"number"!=typeof n.length||"function"!=typeof n.copy||"function"!=typeof n.slice||n.length>0&&"number"!=typeof n[0])}},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=d(1),u=function(){function y(g,v,o){void 0===o&&(o={}),this.attrName=g,this.keyName=v,this.scope=null!=o.scope?o.scope&O.Scope.LEVEL|O.Scope.TYPE&O.Scope.ATTRIBUTE:O.Scope.ATTRIBUTE,null!=o.whitelist&&(this.whitelist=o.whitelist)}return y.keys=function(g){return[].map.call(g.attributes,function(v){return v.name})},y.prototype.add=function(g,v){return!!this.canAdd(g,v)&&(g.setAttribute(this.keyName,v),!0)},y.prototype.canAdd=function(g,v){return null!=O.query(g,O.Scope.BLOT&(this.scope|O.Scope.TYPE))&&(null==this.whitelist||("string"==typeof v?this.whitelist.indexOf(v.replace(/["']/g,""))>-1:this.whitelist.indexOf(v)>-1))},y.prototype.remove=function(g){g.removeAttribute(this.keyName)},y.prototype.value=function(g){var v=g.getAttribute(this.keyName);return this.canAdd(g,v)&&v?v:""},y}();p.default=u},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.Code=void 0;var O=function(b,k){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return function A(b,k){var _=[],w=!0,N=!1,j=void 0;try{for(var X,H=b[Symbol.iterator]();!(w=(X=H.next()).done)&&(_.push(X.value),!k||_.length!==k);w=!0);}catch(Z){N=!0,j=Z}finally{try{!w&&H.return&&H.return()}finally{if(N)throw j}}return _}(b,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=function(){function A(b,k){for(var _=0;_<k.length;_++){var w=k[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,k,_){return k&&A(b.prototype,k),_&&A(b,_),b}}(),y=function A(b,k,_){null===b&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,k);if(void 0===w){var N=Object.getPrototypeOf(b);return null===N?void 0:A(N,k,_)}if("value"in w)return w.value;var j=w.get;return void 0===j?void 0:j.call(_)},v=c(d(2)),r=c(d(0)),i=c(d(4)),f=c(d(6)),l=c(d(7));function c(A){return A&&A.__esModule?A:{default:A}}function m(A,b){if(!(A instanceof b))throw new TypeError("Cannot call a class as a function")}function a(A,b){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?A:b}function E(A,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);A.prototype=Object.create(b&&b.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(A,b):A.__proto__=b)}var x=function(A){function b(){return m(this,b),a(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return E(b,A),b}(f.default);x.blotName="code",x.tagName="CODE";var S=function(A){function b(){return m(this,b),a(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return E(b,A),u(b,[{key:"delta",value:function(){var _=this,w=this.domNode.textContent;return w.endsWith("\n")&&(w=w.slice(0,-1)),w.split("\n").reduce(function(N,j){return N.insert(j).insert("\n",_.formats())},new v.default)}},{key:"format",value:function(_,w){if(_!==this.statics.blotName||!w){var N=this.descendant(l.default,this.length()-1),H=O(N,1)[0];null!=H&&H.deleteAt(H.length()-1,1),y(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,_,w)}}},{key:"formatAt",value:function(_,w,N,j){if(0!==w&&null!=r.default.query(N,r.default.Scope.BLOCK)&&(N!==this.statics.blotName||j!==this.statics.formats(this.domNode))){var H=this.newlineIndex(_);if(!(H<0||H>=_+w)){var X=this.newlineIndex(_,!0)+1,Z=H-X+1,nt=this.isolate(X,Z),K=nt.next;nt.format(N,j),K instanceof b&&K.formatAt(0,_-X+w-Z,N,j)}}}},{key:"insertAt",value:function(_,w,N){if(null==N){var j=this.descendant(l.default,_),H=O(j,2);H[0].insertAt(H[1],w)}}},{key:"length",value:function(){var _=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?_:_+1}},{key:"newlineIndex",value:function(_){var w=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(w)return this.domNode.textContent.slice(0,_).lastIndexOf("\n");var N=this.domNode.textContent.slice(_).indexOf("\n");return N>-1?_+N:-1}},{key:"optimize",value:function(_){this.domNode.textContent.endsWith("\n")||this.appendChild(r.default.create("text","\n")),y(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,_);var w=this.next;null!=w&&w.prev===this&&w.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===w.statics.formats(w.domNode)&&(w.optimize(_),w.moveChildren(this),w.remove())}},{key:"replace",value:function(_){y(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replace",this).call(this,_),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(w){var N=r.default.find(w);null==N?w.parentNode.removeChild(w):N instanceof r.default.Embed?N.remove():N.unwrap()})}}],[{key:"create",value:function(_){var w=y(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,_);return w.setAttribute("spellcheck",!1),w}},{key:"formats",value:function(){return!0}}]),b}(i.default);S.blotName="code-block",S.tagName="PRE",S.TAB="  ",p.Code=x,p.default=S},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(K){return typeof K}:function(K){return K&&"function"==typeof Symbol&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},u=function(L,q){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return function K(L,q){var M=[],U=!0,G=!1,V=void 0;try{for(var W,D=L[Symbol.iterator]();!(U=(W=D.next()).done)&&(M.push(W.value),!q||M.length!==q);U=!0);}catch(tt){G=!0,V=tt}finally{try{!U&&D.return&&D.return()}finally{if(G)throw V}}return M}(L,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=function(){function K(L,q){for(var M=0;M<q.length;M++){var U=q[M];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(L,U.key,U)}}return function(L,q,M){return q&&K(L.prototype,q),M&&K(L,M),L}}(),v=w(d(2)),r=w(d(20)),i=w(d(0)),f=w(d(13)),l=w(d(24)),c=d(4),m=w(c),E=w(d(16)),S=w(d(21)),b=w(d(11)),_=w(d(3));function w(K){return K&&K.__esModule?K:{default:K}}var H=/^[ -~]*$/,X=function(){function K(L){(function j(K,L){if(!(K instanceof L))throw new TypeError("Cannot call a class as a function")})(this,K),this.scroll=L,this.delta=this.getDelta()}return y(K,[{key:"applyDelta",value:function(q){var M=this,U=!1;this.scroll.update();var G=this.scroll.length();return this.scroll.batchStart(),q=function nt(K){return K.reduce(function(L,q){if(1===q.insert){var M=(0,S.default)(q.attributes);return delete M.image,L.insert({image:q.attributes.image},M)}if(null!=q.attributes&&(!0===q.attributes.list||!0===q.attributes.bullet)&&((q=(0,S.default)(q)).attributes.list?q.attributes.list="ordered":(q.attributes.list="bullet",delete q.attributes.bullet)),"string"==typeof q.insert){var U=q.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return L.insert(U,q.attributes)}return L.push(q)},new v.default)}(q),q.reduce(function(V,D){var W=D.retain||D.delete||D.insert.length||1,tt=D.attributes||{};if(null!=D.insert){if("string"==typeof D.insert){var it=D.insert;it.endsWith("\n")&&U&&(U=!1,it=it.slice(0,-1)),V>=G&&!it.endsWith("\n")&&(U=!0),M.scroll.insertAt(V,it);var st=M.scroll.line(V),pt=u(st,2),bt=pt[0],_t=pt[1],At=(0,_.default)({},(0,c.bubbleFormats)(bt));if(bt instanceof m.default){var Ct=bt.descendant(i.default.Leaf,_t),Lt=u(Ct,1);At=(0,_.default)(At,(0,c.bubbleFormats)(Lt[0]))}tt=r.default.attributes.diff(At,tt)||{}}else if("object"===O(D.insert)){var R=Object.keys(D.insert)[0];if(null==R)return V;M.scroll.insertAt(V,R,D.insert[R])}G+=W}return Object.keys(tt).forEach(function(T){M.scroll.formatAt(V,W,T,tt[T])}),V+W},0),q.reduce(function(V,D){return"number"==typeof D.delete?(M.scroll.deleteAt(V,D.delete),V):V+(D.retain||D.insert.length||1)},0),this.scroll.batchEnd(),this.update(q)}},{key:"deleteText",value:function(q,M){return this.scroll.deleteAt(q,M),this.update((new v.default).retain(q).delete(M))}},{key:"formatLine",value:function(q,M){var U=this,G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(G).forEach(function(V){if(null==U.scroll.whitelist||U.scroll.whitelist[V]){var D=U.scroll.lines(q,Math.max(M,1)),W=M;D.forEach(function(tt){var it=tt.length();if(tt instanceof f.default){var st=q-tt.offset(U.scroll),pt=tt.newlineIndex(st+W)-st+1;tt.formatAt(st,pt,V,G[V])}else tt.format(V,G[V]);W-=it})}}),this.scroll.optimize(),this.update((new v.default).retain(q).retain(M,(0,S.default)(G)))}},{key:"formatText",value:function(q,M){var U=this,G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(G).forEach(function(V){U.scroll.formatAt(q,M,V,G[V])}),this.update((new v.default).retain(q).retain(M,(0,S.default)(G)))}},{key:"getContents",value:function(q,M){return this.delta.slice(q,q+M)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(q,M){return q.concat(M.delta())},new v.default)}},{key:"getFormat",value:function(q){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,U=[],G=[];0===M?this.scroll.path(q).forEach(function(D){var tt=u(D,1)[0];tt instanceof m.default?U.push(tt):tt instanceof i.default.Leaf&&G.push(tt)}):(U=this.scroll.lines(q,M),G=this.scroll.descendants(i.default.Leaf,q,M));var V=[U,G].map(function(D){if(0===D.length)return{};for(var W=(0,c.bubbleFormats)(D.shift());Object.keys(W).length>0;){var tt=D.shift();if(null==tt)return W;W=Z((0,c.bubbleFormats)(tt),W)}return W});return _.default.apply(_.default,V)}},{key:"getText",value:function(q,M){return this.getContents(q,M).filter(function(U){return"string"==typeof U.insert}).map(function(U){return U.insert}).join("")}},{key:"insertEmbed",value:function(q,M,U){return this.scroll.insertAt(q,M,U),this.update((new v.default).retain(q).insert(function N(K,L,q){return L in K?Object.defineProperty(K,L,{value:q,enumerable:!0,configurable:!0,writable:!0}):K[L]=q,K}({},M,U)))}},{key:"insertText",value:function(q,M){var U=this,G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return M=M.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(q,M),Object.keys(G).forEach(function(V){U.scroll.formatAt(q,M.length,V,G[V])}),this.update((new v.default).retain(q).insert(M,(0,S.default)(G)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var q=this.scroll.children.head;return!(q.statics.blotName!==m.default.blotName||q.children.length>1)&&q.children.head instanceof E.default}},{key:"removeFormat",value:function(q,M){var U=this.getText(q,M),G=this.scroll.line(q+M),V=u(G,2),D=V[0],W=V[1],tt=0,it=new v.default;null!=D&&(tt=D instanceof f.default?D.newlineIndex(W)-W+1:D.length()-W,it=D.delta().slice(W,W+tt-1).insert("\n"));var pt=this.getContents(q,M+tt).diff((new v.default).insert(U).concat(it)),bt=(new v.default).retain(q).concat(pt);return this.applyDelta(bt)}},{key:"update",value:function(q){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],U=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,G=this.delta;if(1===M.length&&"characterData"===M[0].type&&M[0].target.data.match(H)&&i.default.find(M[0].target)){var V=i.default.find(M[0].target),D=(0,c.bubbleFormats)(V),W=V.offset(this.scroll),tt=M[0].oldValue.replace(l.default.CONTENTS,""),it=(new v.default).insert(tt),st=(new v.default).insert(V.value()),pt=(new v.default).retain(W).concat(it.diff(st,U));q=pt.reduce(function(bt,_t){return _t.insert?bt.insert(_t.insert,D):bt.push(_t)},new v.default),this.delta=G.compose(q)}else this.delta=this.getDelta(),(!q||!(0,b.default)(G.compose(q),this.delta))&&(q=G.diff(this.delta,U));return q}}]),K}();function Z(K,L){return Object.keys(L).reduce(function(q,M){return null==K[M]||(L[M]===K[M]?q[M]=L[M]:Array.isArray(L[M])?L[M].indexOf(K[M])<0&&(q[M]=L[M].concat([K[M]])):q[M]=[L[M],K[M]]),q},{})}p.default=X},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.Range=void 0;var O=function(b,k){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return function A(b,k){var _=[],w=!0,N=!1,j=void 0;try{for(var X,H=b[Symbol.iterator]();!(w=(X=H.next()).done)&&(_.push(X.value),!k||_.length!==k);w=!0);}catch(Z){N=!0,j=Z}finally{try{!w&&H.return&&H.return()}finally{if(N)throw j}}return _}(b,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=function(){function A(b,k){for(var _=0;_<k.length;_++){var w=k[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,k,_){return k&&A(b.prototype,k),_&&A(b,_),b}}(),g=l(d(0)),o=l(d(21)),n=l(d(11)),s=l(d(8));function l(A){return A&&A.__esModule?A:{default:A}}function c(A){if(Array.isArray(A)){for(var b=0,k=Array(A.length);b<A.length;b++)k[b]=A[b];return k}return Array.from(A)}function m(A,b){if(!(A instanceof b))throw new TypeError("Cannot call a class as a function")}var a=(0,l(d(10)).default)("quill:selection"),E=function A(b){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;m(this,A),this.index=b,this.length=k},x=function(){function A(b,k){var _=this;m(this,A),this.emitter=k,this.scroll=b,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=g.default.create("cursor",this),this.lastRange=this.savedRange=new E(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){_.mouseDown||setTimeout(_.update.bind(_,s.default.sources.USER),1)}),this.emitter.on(s.default.events.EDITOR_CHANGE,function(w,N){w===s.default.events.TEXT_CHANGE&&N.length()>0&&_.update(s.default.sources.SILENT)}),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,function(){if(_.hasFocus()){var w=_.getNativeRange();null!=w&&w.start.node!==_.cursor.textNode&&_.emitter.once(s.default.events.SCROLL_UPDATE,function(){try{_.setNativeRange(w.start.node,w.start.offset,w.end.node,w.end.offset)}catch(N){}})}}),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,function(w,N){if(N.range){var j=N.range;_.setNativeRange(j.startNode,j.startOffset,j.endNode,j.endOffset)}}),this.update(s.default.sources.SILENT)}return u(A,[{key:"handleComposition",value:function(){var k=this;this.root.addEventListener("compositionstart",function(){k.composing=!0}),this.root.addEventListener("compositionend",function(){if(k.composing=!1,k.cursor.parent){var _=k.cursor.restore();if(!_)return;setTimeout(function(){k.setNativeRange(_.startNode,_.startOffset,_.endNode,_.endOffset)},1)}})}},{key:"handleDragging",value:function(){var k=this;this.emitter.listenDOM("mousedown",document.body,function(){k.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){k.mouseDown=!1,k.update(s.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(k,_){if(null==this.scroll.whitelist||this.scroll.whitelist[k]){this.scroll.update();var w=this.getNativeRange();if(null!=w&&w.native.collapsed&&!g.default.query(k,g.default.Scope.BLOCK)){if(w.start.node!==this.cursor.textNode){var N=g.default.find(w.start.node,!1);if(null==N)return;if(N instanceof g.default.Leaf){var j=N.split(w.start.offset);N.parent.insertBefore(this.cursor,j)}else N.insertBefore(this.cursor,w.start.node);this.cursor.attach()}this.cursor.format(k,_),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(k){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,w=this.scroll.length();k=Math.min(k,w-1),_=Math.min(k+_,w-1)-k;var N=void 0,j=this.scroll.leaf(k),H=O(j,2),X=H[0],Z=H[1];if(null==X)return null;var nt=X.position(Z,!0),K=O(nt,2);N=K[0],Z=K[1];var L=document.createRange();if(_>0){L.setStart(N,Z);var q=this.scroll.leaf(k+_),M=O(q,2);if(null==(X=M[0]))return null;var U=X.position(Z=M[1],!0),G=O(U,2);return L.setEnd(N=G[0],Z=G[1]),L.getBoundingClientRect()}var V="left",D=void 0;return N instanceof Text?(Z<N.data.length?(L.setStart(N,Z),L.setEnd(N,Z+1)):(L.setStart(N,Z-1),L.setEnd(N,Z),V="right"),D=L.getBoundingClientRect()):(D=X.domNode.getBoundingClientRect(),Z>0&&(V="right")),{bottom:D.top+D.height,height:D.height,left:D[V],right:D[V],top:D.top,width:0}}},{key:"getNativeRange",value:function(){var k=document.getSelection();if(null==k||k.rangeCount<=0)return null;var _=k.getRangeAt(0);if(null==_)return null;var w=this.normalizeNative(_);return a.info("getNativeRange",w),w}},{key:"getRange",value:function(){var k=this.getNativeRange();return null==k?[null,null]:[this.normalizedToRange(k),k]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(k){var _=this,w=[[k.start.node,k.start.offset]];k.native.collapsed||w.push([k.end.node,k.end.offset]);var N=w.map(function(X){var Z=O(X,2),nt=Z[0],K=Z[1],L=g.default.find(nt,!0),q=L.offset(_.scroll);return 0===K?q:L instanceof g.default.Container?q+L.length():q+L.index(nt,K)}),j=Math.min(Math.max.apply(Math,c(N)),this.scroll.length()-1),H=Math.min.apply(Math,[j].concat(c(N)));return new E(H,j-H)}},{key:"normalizeNative",value:function(k){if(!S(this.root,k.startContainer)||!k.collapsed&&!S(this.root,k.endContainer))return null;var _={start:{node:k.startContainer,offset:k.startOffset},end:{node:k.endContainer,offset:k.endOffset},native:k};return[_.start,_.end].forEach(function(w){for(var N=w.node,j=w.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>j)N=N.childNodes[j],j=0;else{if(N.childNodes.length!==j)break;j=(N=N.lastChild)instanceof Text?N.data.length:N.childNodes.length+1}w.node=N,w.offset=j}),_}},{key:"rangeToNative",value:function(k){var _=this,w=k.collapsed?[k.index]:[k.index,k.index+k.length],N=[],j=this.scroll.length();return w.forEach(function(H,X){H=Math.min(j-1,H);var nt=_.scroll.leaf(H),K=O(nt,2),q=K[1],M=K[0].position(q,0!==X),U=O(M,2);N.push(U[0],q=U[1])}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(k){var _=this.lastRange;if(null!=_){var w=this.getBounds(_.index,_.length);if(null!=w){var N=this.scroll.length()-1,j=this.scroll.line(Math.min(_.index,N)),X=O(j,1)[0],Z=X;if(_.length>0){var nt=this.scroll.line(Math.min(_.index+_.length,N));Z=O(nt,1)[0]}if(null!=X&&null!=Z){var L=k.getBoundingClientRect();w.top<L.top?k.scrollTop-=L.top-w.top:w.bottom>L.bottom&&(k.scrollTop+=w.bottom-L.bottom)}}}}},{key:"setNativeRange",value:function(k,_){var w=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k,N=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_,j=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(a.info("setNativeRange",k,_,w,N),null==k||null!=this.root.parentNode&&null!=k.parentNode&&null!=w.parentNode){var H=document.getSelection();if(null!=H)if(null!=k){this.hasFocus()||this.root.focus();var X=(this.getNativeRange()||{}).native;if(null==X||j||k!==X.startContainer||_!==X.startOffset||w!==X.endContainer||N!==X.endOffset){"BR"==k.tagName&&(_=[].indexOf.call(k.parentNode.childNodes,k),k=k.parentNode),"BR"==w.tagName&&(N=[].indexOf.call(w.parentNode.childNodes,w),w=w.parentNode);var Z=document.createRange();Z.setStart(k,_),Z.setEnd(w,N),H.removeAllRanges(),H.addRange(Z)}}else H.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(k){var _=arguments.length>1&&void 0!==arguments[1]&&arguments[1],w=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof _&&(w=_,_=!1),a.info("setRange",k),null!=k){var N=this.rangeToNative(k);this.setNativeRange.apply(this,c(N).concat([_]))}else this.setNativeRange(null);this.update(w)}},{key:"update",value:function(){var k=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,_=this.lastRange,w=this.getRange(),N=O(w,2),j=N[0],H=N[1];if(this.lastRange=j,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,n.default)(_,this.lastRange)){var X;!this.composing&&null!=H&&H.native.collapsed&&H.start.node!==this.cursor.textNode&&this.cursor.restore();var nt,Z=[s.default.events.SELECTION_CHANGE,(0,o.default)(this.lastRange),(0,o.default)(_),k];(X=this.emitter).emit.apply(X,[s.default.events.EDITOR_CHANGE].concat(Z)),k!==s.default.sources.SILENT&&(nt=this.emitter).emit.apply(nt,Z)}}}]),A}();function S(A,b){return b instanceof Text&&(b=b.parentNode),A.contains(b)}p.Range=E,p.default=x},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function s(f,h){for(var l=0;l<h.length;l++){var c=h[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(f,c.key,c)}}return function(f,h,l){return h&&s(f.prototype,h),l&&s(f,l),f}}(),u=function s(f,h,l){null===f&&(f=Function.prototype);var c=Object.getOwnPropertyDescriptor(f,h);if(void 0===c){var m=Object.getPrototypeOf(f);return null===m?void 0:s(m,h,l)}if("value"in c)return c.value;var a=c.get;return void 0===a?void 0:a.call(l)};function o(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}function r(s,f){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?s:f}var i=function(s){function f(){return o(this,f),r(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return function n(s,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(s,f):s.__proto__=f)}(f,s),O(f,[{key:"insertInto",value:function(l,c){0===l.children.length?u(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"insertInto",this).call(this,l,c):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),f}(function v(s){return s&&s.__esModule?s:{default:s}}(d(0)).default.Embed);i.blotName="break",i.tagName="BR",p.default=i},function(B,p,d){"use strict";var r,O=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},function(n,i){function s(){this.constructor=n}r(n,i),n.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)});Object.defineProperty(p,"__esModule",{value:!0});var u=d(44),y=d(30),g=d(1),v=function(r){function n(i){var s=r.call(this,i)||this;return s.build(),s}return O(n,r),n.prototype.appendChild=function(i){this.insertBefore(i)},n.prototype.attach=function(){r.prototype.attach.call(this),this.children.forEach(function(i){i.attach()})},n.prototype.build=function(){var i=this;this.children=new u.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(s){try{var f=o(s);i.insertBefore(f,i.children.head||void 0)}catch(h){if(h instanceof g.ParchmentError)return;throw h}})},n.prototype.deleteAt=function(i,s){if(0===i&&s===this.length())return this.remove();this.children.forEachAt(i,s,function(f,h,l){f.deleteAt(h,l)})},n.prototype.descendant=function(i,s){var f=this.children.find(s),h=f[0],l=f[1];return null==i.blotName&&i(h)||null!=i.blotName&&h instanceof i?[h,l]:h instanceof n?h.descendant(i,l):[null,-1]},n.prototype.descendants=function(i,s,f){void 0===s&&(s=0),void 0===f&&(f=Number.MAX_VALUE);var h=[],l=f;return this.children.forEachAt(s,f,function(c,m,a){(null==i.blotName&&i(c)||null!=i.blotName&&c instanceof i)&&h.push(c),c instanceof n&&(h=h.concat(c.descendants(i,m,l))),l-=a}),h},n.prototype.detach=function(){this.children.forEach(function(i){i.detach()}),r.prototype.detach.call(this)},n.prototype.formatAt=function(i,s,f,h){this.children.forEachAt(i,s,function(l,c,m){l.formatAt(c,m,f,h)})},n.prototype.insertAt=function(i,s,f){var h=this.children.find(i),l=h[0];if(l)l.insertAt(h[1],s,f);else{var m=null==f?g.create("text",s):g.create(s,f);this.appendChild(m)}},n.prototype.insertBefore=function(i,s){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(f){return i instanceof f}))throw new g.ParchmentError("Cannot insert "+i.statics.blotName+" into "+this.statics.blotName);i.insertInto(this,s)},n.prototype.length=function(){return this.children.reduce(function(i,s){return i+s.length()},0)},n.prototype.moveChildren=function(i,s){this.children.forEach(function(f){i.insertBefore(f,s)})},n.prototype.optimize=function(i){if(r.prototype.optimize.call(this,i),0===this.children.length)if(null!=this.statics.defaultChild){var s=g.create(this.statics.defaultChild);this.appendChild(s),s.optimize(i)}else this.remove()},n.prototype.path=function(i,s){void 0===s&&(s=!1);var f=this.children.find(i,s),h=f[0],l=f[1],c=[[this,i]];return h instanceof n?c.concat(h.path(l,s)):(null!=h&&c.push([h,l]),c)},n.prototype.removeChild=function(i){this.children.remove(i)},n.prototype.replace=function(i){i instanceof n&&i.moveChildren(this),r.prototype.replace.call(this,i)},n.prototype.split=function(i,s){if(void 0===s&&(s=!1),!s){if(0===i)return this;if(i===this.length())return this.next}var f=this.clone();return this.parent.insertBefore(f,this.next),this.children.forEachAt(i,this.length(),function(h,l,c){h=h.split(l,s),f.appendChild(h)}),f},n.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},n.prototype.update=function(i,s){var f=this,h=[],l=[];i.forEach(function(c){c.target===f.domNode&&"childList"===c.type&&(h.push.apply(h,c.addedNodes),l.push.apply(l,c.removedNodes))}),l.forEach(function(c){if(!(null!=c.parentNode&&"IFRAME"!==c.tagName&&document.body.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var m=g.find(c);null!=m&&(null==m.domNode.parentNode||m.domNode.parentNode===f.domNode)&&m.detach()}}),h.filter(function(c){return c.parentNode==f.domNode}).sort(function(c,m){return c===m?0:c.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(c){var m=null;null!=c.nextSibling&&(m=g.find(c.nextSibling));var a=o(c);(a.next!=m||null==a.next)&&(null!=a.parent&&a.parent.removeChild(f),f.insertBefore(a,m||void 0))})},n}(y.default);function o(r){var n=g.find(r);if(null==n)try{n=g.create(r)}catch(i){n=g.create(g.Scope.INLINE),[].slice.call(r.childNodes).forEach(function(s){n.domNode.appendChild(s)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach()}return n}p.default=v},function(B,p,d){"use strict";var r,O=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},function(n,i){function s(){this.constructor=n}r(n,i),n.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)});Object.defineProperty(p,"__esModule",{value:!0});var u=d(12),y=d(31),g=d(17),v=d(1),o=function(r){function n(i){var s=r.call(this,i)||this;return s.attributes=new y.default(s.domNode),s}return O(n,r),n.formats=function(i){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?i.tagName.toLowerCase():void 0)},n.prototype.format=function(i,s){var f=v.query(i);f instanceof u.default?this.attributes.attribute(f,s):s&&null!=f&&(i!==this.statics.blotName||this.formats()[i]!==s)&&this.replaceWith(i,s)},n.prototype.formats=function(){var i=this.attributes.values(),s=this.statics.formats(this.domNode);return null!=s&&(i[this.statics.blotName]=s),i},n.prototype.replaceWith=function(i,s){var f=r.prototype.replaceWith.call(this,i,s);return this.attributes.copy(f),f},n.prototype.update=function(i,s){var f=this;r.prototype.update.call(this,i,s),i.some(function(h){return h.target===f.domNode&&"attributes"===h.type})&&this.attributes.build()},n.prototype.wrap=function(i,s){var f=r.prototype.wrap.call(this,i,s);return f instanceof n&&f.statics.scope===this.statics.scope&&this.attributes.move(f),f},n}(g.default);p.default=o},function(B,p,d){"use strict";var v,O=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},function(o,r){function n(){this.constructor=o}v(o,r),o.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(p,"__esModule",{value:!0});var u=d(30),y=d(1),g=function(v){function o(){return null!==v&&v.apply(this,arguments)||this}return O(o,v),o.value=function(r){return!0},o.prototype.index=function(r,n){return this.domNode===r||this.domNode.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1},o.prototype.position=function(r,n){var i=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return r>0&&(i+=1),[this.parent.domNode,i]},o.prototype.value=function(){var r;return(r={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,r},o.scope=y.Scope.INLINE_BLOT,o}(u.default);p.default=g},function(B,p,d){var O=d(11),u=d(3),y={attributes:{compose:function(v,o,r){"object"!=typeof v&&(v={}),"object"!=typeof o&&(o={});var n=u(!0,{},o);for(var i in r||(n=Object.keys(n).reduce(function(s,f){return null!=n[f]&&(s[f]=n[f]),s},{})),v)void 0!==v[i]&&void 0===o[i]&&(n[i]=v[i]);return Object.keys(n).length>0?n:void 0},diff:function(v,o){"object"!=typeof v&&(v={}),"object"!=typeof o&&(o={});var r=Object.keys(v).concat(Object.keys(o)).reduce(function(n,i){return O(v[i],o[i])||(n[i]=void 0===o[i]?null:o[i]),n},{});return Object.keys(r).length>0?r:void 0},transform:function(v,o,r){if("object"!=typeof v)return o;if("object"==typeof o){if(!r)return o;var n=Object.keys(o).reduce(function(i,s){return void 0===v[s]&&(i[s]=o[s]),i},{});return Object.keys(n).length>0?n:void 0}}},iterator:function(v){return new g(v)},length:function(v){return"number"==typeof v.delete?v.delete:"number"==typeof v.retain?v.retain:"string"==typeof v.insert?v.insert.length:1}};function g(v){this.ops=v,this.index=0,this.offset=0}g.prototype.hasNext=function(){return this.peekLength()<1/0},g.prototype.next=function(v){v||(v=1/0);var o=this.ops[this.index];if(o){var r=this.offset,n=y.length(o);if(v>=n-r?(v=n-r,this.index+=1,this.offset=0):this.offset+=v,"number"==typeof o.delete)return{delete:v};var i={};return o.attributes&&(i.attributes=o.attributes),"number"==typeof o.retain?i.retain=v:i.insert="string"==typeof o.insert?o.insert.substr(r,v):o.insert,i}return{retain:1/0}},g.prototype.peek=function(){return this.ops[this.index]},g.prototype.peekLength=function(){return this.ops[this.index]?y.length(this.ops[this.index])-this.offset:1/0},g.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},g.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var v=this.offset,o=this.index,r=this.next(),n=this.ops.slice(this.index);return this.offset=v,this.index=o,[r].concat(n)}return[]},B.exports=y},function(B,p){var d=function(){"use strict";function O(f,h){return null!=h&&f instanceof h}var u,y,g;try{u=Map}catch(f){u=function(){}}try{y=Set}catch(f){y=function(){}}try{g=Promise}catch(f){g=function(){}}function v(f,h,l,c,m){"object"==typeof h&&(l=h.depth,c=h.prototype,m=h.includeNonEnumerable,h=h.circular);var a=[],E=[],x="undefined"!=typeof Buffer;return void 0===h&&(h=!0),void 0===l&&(l=1/0),function S(A,b){if(null===A)return null;if(0===b)return A;var k,_;if("object"!=typeof A)return A;if(O(A,u))k=new u;else if(O(A,y))k=new y;else if(O(A,g))k=new g(function(L,q){A.then(function(M){L(S(M,b-1))},function(M){q(S(M,b-1))})});else if(v.__isArray(A))k=[];else if(v.__isRegExp(A))k=new RegExp(A.source,s(A)),A.lastIndex&&(k.lastIndex=A.lastIndex);else if(v.__isDate(A))k=new Date(A.getTime());else{if(x&&Buffer.isBuffer(A))return k=Buffer.allocUnsafe?Buffer.allocUnsafe(A.length):new Buffer(A.length),A.copy(k),k;O(A,Error)?k=Object.create(A):void 0===c?(_=Object.getPrototypeOf(A),k=Object.create(_)):(k=Object.create(c),_=c)}if(h){var w=a.indexOf(A);if(-1!=w)return E[w];a.push(A),E.push(k)}for(var N in O(A,u)&&A.forEach(function(L,q){var M=S(q,b-1),U=S(L,b-1);k.set(M,U)}),O(A,y)&&A.forEach(function(L){var q=S(L,b-1);k.add(q)}),A){var j;_&&(j=Object.getOwnPropertyDescriptor(_,N)),(!j||null!=j.set)&&(k[N]=S(A[N],b-1))}if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(A);for(N=0;N<H.length;N++){var X=H[N];(Z=Object.getOwnPropertyDescriptor(A,X))&&!Z.enumerable&&!m||(k[X]=S(A[X],b-1),Z.enumerable||Object.defineProperty(k,X,{enumerable:!1}))}}if(m){var nt=Object.getOwnPropertyNames(A);for(N=0;N<nt.length;N++){var Z,K=nt[N];(Z=Object.getOwnPropertyDescriptor(A,K))&&Z.enumerable||(k[K]=S(A[K],b-1),Object.defineProperty(k,K,{enumerable:!1}))}}return k}(f,l)}function o(f){return Object.prototype.toString.call(f)}function s(f){var h="";return f.global&&(h+="g"),f.ignoreCase&&(h+="i"),f.multiline&&(h+="m"),h}return v.clonePrototype=function(h){if(null===h)return null;var l=function(){};return l.prototype=h,new l},v.__objToStr=o,v.__isDate=function r(f){return"object"==typeof f&&"[object Date]"===o(f)},v.__isArray=function n(f){return"object"==typeof f&&"[object Array]"===o(f)},v.__isRegExp=function i(f){return"object"==typeof f&&"[object RegExp]"===o(f)},v.__getRegExpFlags=s,v}();"object"==typeof B&&B.exports&&(B.exports=d)},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(_,w){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return function k(_,w){var N=[],j=!0,H=!1,X=void 0;try{for(var nt,Z=_[Symbol.iterator]();!(j=(nt=Z.next()).done)&&(N.push(nt.value),!w||N.length!==w);j=!0);}catch(K){H=!0,X=K}finally{try{!j&&Z.return&&Z.return()}finally{if(H)throw X}}return N}(_,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=function(){function k(_,w){for(var N=0;N<w.length;N++){var j=w[N];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(_,j.key,j)}}return function(_,w,N){return w&&k(_.prototype,w),N&&k(_,N),_}}(),y=function k(_,w,N){null===_&&(_=Function.prototype);var j=Object.getOwnPropertyDescriptor(_,w);if(void 0===j){var H=Object.getPrototypeOf(_);return null===H?void 0:k(H,w,N)}if("value"in j)return j.value;var X=j.get;return void 0===X?void 0:X.call(N)},v=a(d(0)),r=a(d(8)),n=d(4),i=a(n),f=a(d(16)),l=a(d(13)),m=a(d(25));function a(k){return k&&k.__esModule?k:{default:k}}function A(k){return k instanceof i.default||k instanceof n.BlockEmbed}var b=function(k){function _(w,N){!function E(k,_){if(!(k instanceof _))throw new TypeError("Cannot call a class as a function")}(this,_);var j=function x(k,_){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!_||"object"!=typeof _&&"function"!=typeof _?k:_}(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,w));return j.emitter=N.emitter,Array.isArray(N.whitelist)&&(j.whitelist=N.whitelist.reduce(function(H,X){return H[X]=!0,H},{})),j.domNode.addEventListener("DOMNodeInserted",function(){}),j.optimize(),j.enable(),j}return function S(k,_){if("function"!=typeof _&&null!==_)throw new TypeError("Super expression must either be null or a function, not "+typeof _);k.prototype=Object.create(_&&_.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(k,_):k.__proto__=_)}(_,k),u(_,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,j){var H=this.line(N),X=O(H,2),Z=X[0],nt=X[1],K=this.line(N+j),q=O(K,1)[0];if(y(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"deleteAt",this).call(this,N,j),null!=q&&Z!==q&&nt>0){if(Z instanceof n.BlockEmbed||q instanceof n.BlockEmbed)return void this.optimize();if(Z instanceof l.default){var M=Z.newlineIndex(Z.length(),!0);if(M>-1&&(Z=Z.split(M+1))===q)return void this.optimize()}else if(q instanceof l.default){var U=q.newlineIndex(0);U>-1&&q.split(U+1)}Z.moveChildren(q,q.children.head instanceof f.default?null:q.children.head),Z.remove()}this.optimize()}},{key:"enable",value:function(){var N=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",N)}},{key:"formatAt",value:function(N,j,H,X){null!=this.whitelist&&!this.whitelist[H]||(y(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"formatAt",this).call(this,N,j,H,X),this.optimize())}},{key:"insertAt",value:function(N,j,H){if(null==H||null==this.whitelist||this.whitelist[j]){if(N>=this.length())if(null==H||null==v.default.query(j,v.default.Scope.BLOCK)){var X=v.default.create(this.statics.defaultChild);this.appendChild(X),null==H&&j.endsWith("\n")&&(j=j.slice(0,-1)),X.insertAt(0,j,H)}else{var Z=v.default.create(j,H);this.appendChild(Z)}else y(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,N,j,H);this.optimize()}}},{key:"insertBefore",value:function(N,j){if(N.statics.scope===v.default.Scope.INLINE_BLOT){var H=v.default.create(this.statics.defaultChild);H.appendChild(N),N=H}y(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertBefore",this).call(this,N,j)}},{key:"leaf",value:function(N){return this.path(N).pop()||[null,-1]}},{key:"line",value:function(N){return N===this.length()?this.line(N-1):this.descendant(A,N)}},{key:"lines",value:function(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,H=function X(Z,nt,K){var L=[],q=K;return Z.children.forEachAt(nt,K,function(M,U,G){A(M)?L.push(M):M instanceof v.default.Container&&(L=L.concat(X(M,U,q))),q-=G}),L};return H(this,N,j)}},{key:"optimize",value:function(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(y(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,N,j),N.length>0&&this.emitter.emit(r.default.events.SCROLL_OPTIMIZE,N,j))}},{key:"path",value:function(N){return y(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"path",this).call(this,N).slice(1)}},{key:"update",value:function(N){if(!0!==this.batch){var j=r.default.sources.USER;"string"==typeof N&&(j=N),Array.isArray(N)||(N=this.observer.takeRecords()),N.length>0&&this.emitter.emit(r.default.events.SCROLL_BEFORE_UPDATE,j,N),y(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"update",this).call(this,N.concat([])),N.length>0&&this.emitter.emit(r.default.events.SCROLL_UPDATE,j,N)}}}]),_}(v.default.Scroll);b.blotName="scroll",b.className="ql-editor",b.tagName="DIV",b.defaultChild="block",b.allowedChildren=[i.default,n.BlockEmbed,m.default],p.default=b},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SHORTKEY=p.default=void 0;var O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(D){return typeof D}:function(D){return D&&"function"==typeof Symbol&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},u=function(W,tt){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return function D(W,tt){var it=[],st=!0,pt=!1,bt=void 0;try{for(var At,_t=W[Symbol.iterator]();!(st=(At=_t.next()).done)&&(it.push(At.value),!tt||it.length!==tt);st=!0);}catch(Ct){pt=!0,bt=Ct}finally{try{!st&&_t.return&&_t.return()}finally{if(pt)throw bt}}return it}(W,tt);throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=function(){function D(W,tt){for(var it=0;it<tt.length;it++){var st=tt[it];st.enumerable=st.enumerable||!1,st.configurable=!0,"value"in st&&(st.writable=!0),Object.defineProperty(W,st.key,st)}}return function(W,tt,it){return tt&&D(W.prototype,tt),it&&D(W,it),W}}(),v=k(d(21)),r=k(d(11)),i=k(d(3)),f=k(d(2)),l=k(d(20)),m=k(d(0)),E=k(d(5)),S=k(d(10)),b=k(d(9));function k(D){return D&&D.__esModule?D:{default:D}}function _(D,W,tt){return W in D?Object.defineProperty(D,W,{value:tt,enumerable:!0,configurable:!0,writable:!0}):D[W]=tt,D}var H=(0,S.default)("quill:keyboard"),X=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",Z=function(D){function W(tt,it){!function w(D,W){if(!(D instanceof W))throw new TypeError("Cannot call a class as a function")}(this,W);var st=function N(D,W){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!W||"object"!=typeof W&&"function"!=typeof W?D:W}(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,tt,it));return st.bindings={},Object.keys(st.options.bindings).forEach(function(pt){"list autofill"===pt&&null!=tt.scroll.whitelist&&!tt.scroll.whitelist.list||st.options.bindings[pt]&&st.addBinding(st.options.bindings[pt])}),st.addBinding({key:W.keys.ENTER,shiftKey:null},M),st.addBinding({key:W.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(st.addBinding({key:W.keys.BACKSPACE},{collapsed:!0},K),st.addBinding({key:W.keys.DELETE},{collapsed:!0},L)):(st.addBinding({key:W.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},K),st.addBinding({key:W.keys.DELETE},{collapsed:!0,suffix:/^.?$/},L)),st.addBinding({key:W.keys.BACKSPACE},{collapsed:!1},q),st.addBinding({key:W.keys.DELETE},{collapsed:!1},q),st.addBinding({key:W.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},K),st.listen(),st}return function j(D,W){if("function"!=typeof W&&null!==W)throw new TypeError("Super expression must either be null or a function, not "+typeof W);D.prototype=Object.create(W&&W.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(D,W):D.__proto__=W)}(W,D),y(W,null,[{key:"match",value:function(it,st){return st=V(st),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(pt){return!!st[pt]!==it[pt]&&null!==st[pt]})&&st.key===(it.which||it.keyCode)}}]),y(W,[{key:"addBinding",value:function(it){var st=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},pt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},bt=V(it);if(null==bt||null==bt.key)return H.warn("Attempted to add invalid keyboard binding",bt);"function"==typeof st&&(st={handler:st}),"function"==typeof pt&&(pt={handler:pt}),bt=(0,i.default)(bt,st,pt),this.bindings[bt.key]=this.bindings[bt.key]||[],this.bindings[bt.key].push(bt)}},{key:"listen",value:function(){var it=this;this.quill.root.addEventListener("keydown",function(st){if(!st.defaultPrevented){var bt=(it.bindings[st.which||st.keyCode]||[]).filter(function(Ot){return W.match(st,Ot)});if(0!==bt.length){var _t=it.quill.getSelection();if(null!=_t&&it.quill.hasFocus()){var At=it.quill.getLine(_t.index),Ct=u(At,2),Lt=Ct[0],J=Ct[1],R=it.quill.getLeaf(_t.index),T=u(R,2),I=T[0],Y=T[1],F=0===_t.length?[I,Y]:it.quill.getLeaf(_t.index+_t.length),et=u(F,2),ot=et[0],ut=et[1],dt=I instanceof m.default.Text?I.value().slice(0,Y):"",vt=ot instanceof m.default.Text?ot.value().slice(ut):"",gt={collapsed:0===_t.length,empty:0===_t.length&&Lt.length()<=1,format:it.quill.getFormat(_t),offset:J,prefix:dt,suffix:vt};bt.some(function(Ot){if(null!=Ot.collapsed&&Ot.collapsed!==gt.collapsed||null!=Ot.empty&&Ot.empty!==gt.empty||null!=Ot.offset&&Ot.offset!==gt.offset)return!1;if(Array.isArray(Ot.format)){if(Ot.format.every(function(xt){return null==gt.format[xt]}))return!1}else if("object"===O(Ot.format)&&!Object.keys(Ot.format).every(function(xt){return!0===Ot.format[xt]?null!=gt.format[xt]:!1===Ot.format[xt]?null==gt.format[xt]:(0,r.default)(Ot.format[xt],gt.format[xt])}))return!1;return!(null!=Ot.prefix&&!Ot.prefix.test(gt.prefix)||null!=Ot.suffix&&!Ot.suffix.test(gt.suffix))&&!0!==Ot.handler.call(it,_t,gt)})&&st.preventDefault()}}}})}}]),W}(b.default);function nt(D,W){var tt;return _(tt={key:D,shiftKey:W,altKey:null},D===Z.keys.LEFT?"prefix":"suffix",/^$/),_(tt,"handler",function(pt){var bt=pt.index;D===Z.keys.RIGHT&&(bt+=pt.length+1);var _t=this.quill.getLeaf(bt);return!(u(_t,1)[0]instanceof m.default.Embed&&(D===Z.keys.LEFT?W?this.quill.setSelection(pt.index-1,pt.length+1,E.default.sources.USER):this.quill.setSelection(pt.index-1,E.default.sources.USER):W?this.quill.setSelection(pt.index,pt.length+1,E.default.sources.USER):this.quill.setSelection(pt.index+pt.length+1,E.default.sources.USER),1))}),tt}function K(D,W){if(!(0===D.index||this.quill.getLength()<=1)){var tt=this.quill.getLine(D.index),st=u(tt,1)[0],pt={};if(0===W.offset){var bt=this.quill.getLine(D.index-1),At=u(bt,1)[0];if(null!=At&&At.length()>1){var Ct=st.formats(),Lt=this.quill.getFormat(D.index-1,1);pt=l.default.attributes.diff(Ct,Lt)||{}}}var J=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(W.prefix)?2:1;this.quill.deleteText(D.index-J,J,E.default.sources.USER),Object.keys(pt).length>0&&this.quill.formatLine(D.index-J,J,pt,E.default.sources.USER),this.quill.focus()}}function L(D,W){var tt=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(W.suffix)?2:1;if(!(D.index>=this.quill.getLength()-tt)){var it={},st=0,pt=this.quill.getLine(D.index),_t=u(pt,1)[0];if(W.offset>=_t.length()-1){var At=this.quill.getLine(D.index+1),Lt=u(At,1)[0];if(Lt){var J=_t.formats(),R=this.quill.getFormat(D.index,1);it=l.default.attributes.diff(J,R)||{},st=Lt.length()}}this.quill.deleteText(D.index,tt,E.default.sources.USER),Object.keys(it).length>0&&this.quill.formatLine(D.index+st-1,tt,it,E.default.sources.USER)}}function q(D){var W=this.quill.getLines(D),tt={};if(W.length>1){var it=W[0].formats(),st=W[W.length-1].formats();tt=l.default.attributes.diff(st,it)||{}}this.quill.deleteText(D,E.default.sources.USER),Object.keys(tt).length>0&&this.quill.formatLine(D.index,1,tt,E.default.sources.USER),this.quill.setSelection(D.index,E.default.sources.SILENT),this.quill.focus()}function M(D,W){var tt=this;D.length>0&&this.quill.scroll.deleteAt(D.index,D.length);var it=Object.keys(W.format).reduce(function(st,pt){return m.default.query(pt,m.default.Scope.BLOCK)&&!Array.isArray(W.format[pt])&&(st[pt]=W.format[pt]),st},{});this.quill.insertText(D.index,"\n",it,E.default.sources.USER),this.quill.setSelection(D.index+1,E.default.sources.SILENT),this.quill.focus(),Object.keys(W.format).forEach(function(st){null==it[st]&&(Array.isArray(W.format[st])||"link"!==st&&tt.quill.format(st,W.format[st],E.default.sources.USER))})}function U(D){return{key:Z.keys.TAB,shiftKey:!D,format:{"code-block":!0},handler:function(tt){var it=m.default.query("code-block"),st=tt.index,pt=tt.length,bt=this.quill.scroll.descendant(it,st),_t=u(bt,2),At=_t[0],Ct=_t[1];if(null!=At){var Lt=this.quill.getIndex(At),J=At.newlineIndex(Ct,!0)+1,R=At.newlineIndex(Lt+Ct+pt),T=At.domNode.textContent.slice(J,R).split("\n");Ct=0,T.forEach(function(I,Y){D?(At.insertAt(J+Ct,it.TAB),Ct+=it.TAB.length,0===Y?st+=it.TAB.length:pt+=it.TAB.length):I.startsWith(it.TAB)&&(At.deleteAt(J+Ct,it.TAB.length),Ct-=it.TAB.length,0===Y?st-=it.TAB.length:pt-=it.TAB.length),Ct+=I.length+1}),this.quill.update(E.default.sources.USER),this.quill.setSelection(st,pt,E.default.sources.SILENT)}}}}function G(D){return{key:D[0].toUpperCase(),shortKey:!0,handler:function(tt,it){this.quill.format(D,!it.format[D],E.default.sources.USER)}}}function V(D){if("string"==typeof D||"number"==typeof D)return V({key:D});if("object"===(void 0===D?"undefined":O(D))&&(D=(0,v.default)(D,!1)),"string"==typeof D.key)if(null!=Z.keys[D.key.toUpperCase()])D.key=Z.keys[D.key.toUpperCase()];else{if(1!==D.key.length)return null;D.key=D.key.toUpperCase().charCodeAt(0)}return D.shortKey&&(D[X]=D.shortKey,delete D.shortKey),D}Z.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},Z.DEFAULTS={bindings:{bold:G("bold"),italic:G("italic"),underline:G("underline"),indent:{key:Z.keys.TAB,format:["blockquote","indent","list"],handler:function(W,tt){if(tt.collapsed&&0!==tt.offset)return!0;this.quill.format("indent","+1",E.default.sources.USER)}},outdent:{key:Z.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(W,tt){if(tt.collapsed&&0!==tt.offset)return!0;this.quill.format("indent","-1",E.default.sources.USER)}},"outdent backspace":{key:Z.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(W,tt){null!=tt.format.indent?this.quill.format("indent","-1",E.default.sources.USER):null!=tt.format.list&&this.quill.format("list",!1,E.default.sources.USER)}},"indent code-block":U(!0),"outdent code-block":U(!1),"remove tab":{key:Z.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(W){this.quill.deleteText(W.index-1,1,E.default.sources.USER)}},tab:{key:Z.keys.TAB,handler:function(W){this.quill.history.cutoff();var tt=(new f.default).retain(W.index).delete(W.length).insert("\t");this.quill.updateContents(tt,E.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(W.index+1,E.default.sources.SILENT)}},"list empty enter":{key:Z.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(W,tt){this.quill.format("list",!1,E.default.sources.USER),tt.format.indent&&this.quill.format("indent",!1,E.default.sources.USER)}},"checklist enter":{key:Z.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(W){var tt=this.quill.getLine(W.index),it=u(tt,2),st=it[0],pt=it[1],bt=(0,i.default)({},st.formats(),{list:"checked"}),_t=(new f.default).retain(W.index).insert("\n",bt).retain(st.length()-pt-1).retain(1,{list:"unchecked"});this.quill.updateContents(_t,E.default.sources.USER),this.quill.setSelection(W.index+1,E.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:Z.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(W,tt){var it=this.quill.getLine(W.index),st=u(it,2),pt=st[0],bt=st[1],_t=(new f.default).retain(W.index).insert("\n",tt.format).retain(pt.length()-bt-1).retain(1,{header:null});this.quill.updateContents(_t,E.default.sources.USER),this.quill.setSelection(W.index+1,E.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(W,tt){var it=tt.prefix.length,st=this.quill.getLine(W.index),pt=u(st,2),bt=pt[0],_t=pt[1];if(_t>it)return!0;var At=void 0;switch(tt.prefix.trim()){case"[]":case"[ ]":At="unchecked";break;case"[x]":At="checked";break;case"-":case"*":At="bullet";break;default:At="ordered"}this.quill.insertText(W.index," ",E.default.sources.USER),this.quill.history.cutoff();var Ct=(new f.default).retain(W.index-_t).delete(it+1).retain(bt.length()-2-_t).retain(1,{list:At});this.quill.updateContents(Ct,E.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(W.index-it,E.default.sources.SILENT)}},"code exit":{key:Z.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(W){var tt=this.quill.getLine(W.index),it=u(tt,2),st=it[0],pt=it[1],bt=(new f.default).retain(W.index+st.length()-pt-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(bt,E.default.sources.USER)}},"embed left":nt(Z.keys.LEFT,!1),"embed left shift":nt(Z.keys.LEFT,!0),"embed right":nt(Z.keys.RIGHT,!1),"embed right shift":nt(Z.keys.RIGHT,!0)}},p.default=Z,p.SHORTKEY=X},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var u=function l(c,m,a){null===c&&(c=Function.prototype);var E=Object.getOwnPropertyDescriptor(c,m);if(void 0===E){var x=Object.getPrototypeOf(c);return null===x?void 0:l(x,m,a)}if("value"in E)return E.value;var S=E.get;return void 0===S?void 0:S.call(a)},y=function(){function l(c,m){for(var a=0;a<m.length;a++){var E=m[a];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(c,E.key,E)}}return function(c,m,a){return m&&l(c.prototype,m),a&&l(c,a),c}}(),v=n(d(0)),r=n(d(7));function n(l){return l&&l.__esModule?l:{default:l}}var h=function(l){function c(m,a){!function i(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}(this,c);var E=function s(l,c){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!=typeof c&&"function"!=typeof c?l:c}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,m));return E.selection=a,E.textNode=document.createTextNode(c.CONTENTS),E.domNode.appendChild(E.textNode),E._length=0,E}return function f(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(l,c):l.__proto__=c)}(c,l),y(c,null,[{key:"value",value:function(){}}]),y(c,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(a,E){if(0!==this._length)return u(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,a,E);for(var x=this,S=0;null!=x&&x.statics.scope!==v.default.Scope.BLOCK_BLOT;)S+=x.offset(x.parent),x=x.parent;null!=x&&(this._length=c.CONTENTS.length,x.optimize(),x.formatAt(S,c.CONTENTS.length,a,E),this._length=0)}},{key:"index",value:function(a,E){return a===this.textNode?0:u(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"index",this).call(this,a,E)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){u(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var a=this.textNode,E=this.selection.getNativeRange(),x=void 0,S=void 0,A=void 0;if(null!=E&&E.start.node===a&&E.end.node===a){var b=[a,E.start.offset,E.end.offset];x=b[0],S=b[1],A=b[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==c.CONTENTS){var k=this.textNode.data.split(c.CONTENTS).join("");this.next instanceof r.default?(x=this.next.domNode,this.next.insertAt(0,k),this.textNode.data=c.CONTENTS):(this.textNode.data=k,this.parent.insertBefore(v.default.create(this.textNode),this),this.textNode=document.createTextNode(c.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=S){var w=function(c,m){if(Array.isArray(c))return c;if(Symbol.iterator in Object(c))return function l(c,m){var a=[],E=!0,x=!1,S=void 0;try{for(var b,A=c[Symbol.iterator]();!(E=(b=A.next()).done)&&(a.push(b.value),!m||a.length!==m);E=!0);}catch(k){x=!0,S=k}finally{try{!E&&A.return&&A.return()}finally{if(x)throw S}}return a}(c,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}([S,A].map(function(N){return Math.max(0,Math.min(x.data.length,N-1))}),2);return{startNode:x,startOffset:S=w[0],endNode:x,endOffset:A=w[1]}}}}},{key:"update",value:function(a,E){var x=this;if(a.some(function(A){return"characterData"===A.type&&A.target===x.textNode})){var S=this.restore();S&&(E.range=S)}}},{key:"value",value:function(){return""}}]),c}(v.default.Embed);h.blotName="cursor",h.className="ql-cursor",h.tagName="span",h.CONTENTS="\ufeff",p.default=h},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var u=v(d(0)),y=d(4),g=v(y);function v(s){return s&&s.__esModule?s:{default:s}}function o(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}function r(s,f){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?s:f}var i=function(s){function f(){return o(this,f),r(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return function n(s,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(s,f):s.__proto__=f)}(f,s),f}(u.default.Container);i.allowedChildren=[g.default,y.BlockEmbed,i],p.default=i},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColorStyle=p.ColorClass=p.ColorAttributor=void 0;var O=function(){function h(l,c){for(var m=0;m<c.length;m++){var a=c[m];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}}return function(l,c,m){return c&&h(l.prototype,c),m&&h(l,m),l}}(),u=function h(l,c,m){null===l&&(l=Function.prototype);var a=Object.getOwnPropertyDescriptor(l,c);if(void 0===a){var E=Object.getPrototypeOf(l);return null===E?void 0:h(E,c,m)}if("value"in a)return a.value;var x=a.get;return void 0===x?void 0:x.call(m)},g=function v(h){return h&&h.__esModule?h:{default:h}}(d(0));function o(h,l){if(!(h instanceof l))throw new TypeError("Cannot call a class as a function")}function r(h,l){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?h:l}var i=function(h){function l(){return o(this,l),r(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function n(h,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);h.prototype=Object.create(l&&l.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(h,l):h.__proto__=l)}(l,h),O(l,[{key:"value",value:function(m){var a=u(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"value",this).call(this,m);return a.startsWith("rgb(")?"#"+(a=a.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(E){return("00"+parseInt(E).toString(16)).slice(-2)}).join(""):a}}]),l}(g.default.Attributor.Style),s=new g.default.Attributor.Class("color","ql-color",{scope:g.default.Scope.INLINE}),f=new i("color","color",{scope:g.default.Scope.INLINE});p.ColorAttributor=i,p.ColorClass=s,p.ColorStyle=f},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.sanitize=p.default=void 0;var O=function(){function f(h,l){for(var c=0;c<l.length;c++){var m=l[c];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,l,c){return l&&f(h.prototype,l),c&&f(h,c),h}}(),u=function f(h,l,c){null===h&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,l);if(void 0===m){var a=Object.getPrototypeOf(h);return null===a?void 0:f(a,l,c)}if("value"in m)return m.value;var E=m.get;return void 0===E?void 0:E.call(c)};function o(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function r(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?f:h}var i=function(f){function h(){return o(this,h),r(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return function n(f,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}(h,f),O(h,[{key:"format",value:function(c,m){if(c!==this.statics.blotName||!m)return u(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,c,m);m=this.constructor.sanitize(m),this.domNode.setAttribute("href",m)}}],[{key:"create",value:function(c){var m=u(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,c);return c=this.sanitize(c),m.setAttribute("href",c),m.setAttribute("rel","noopener noreferrer"),m.setAttribute("target","_blank"),m}},{key:"formats",value:function(c){return c.getAttribute("href")}},{key:"sanitize",value:function(c){return s(c,this.PROTOCOL_WHITELIST)?c:this.SANITIZED_URL}}]),h}(function v(f){return f&&f.__esModule?f:{default:f}}(d(6)).default);function s(f,h){var l=document.createElement("a");l.href=f;var c=l.href.slice(0,l.href.indexOf(":"));return h.indexOf(c)>-1}i.blotName="link",i.tagName="A",i.SANITIZED_URL="about:blank",i.PROTOCOL_WHITELIST=["http","https","mailto","tel"],p.default=i,p.sanitize=s},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},u=function(){function h(l,c){for(var m=0;m<c.length;m++){var a=c[m];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}}return function(l,c,m){return c&&h(l.prototype,c),m&&h(l,m),l}}(),g=r(d(23)),o=r(d(107));function r(h){return h&&h.__esModule?h:{default:h}}var i=0;function s(h,l){h.setAttribute(l,"true"!==h.getAttribute(l))}var f=function(){function h(l){var c=this;(function n(h,l){if(!(h instanceof l))throw new TypeError("Cannot call a class as a function")})(this,h),this.select=l,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){c.togglePicker()}),this.label.addEventListener("keydown",function(m){switch(m.keyCode){case g.default.keys.ENTER:c.togglePicker();break;case g.default.keys.ESCAPE:c.escape(),m.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return u(h,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),s(this.label,"aria-expanded"),s(this.options,"aria-hidden")}},{key:"buildItem",value:function(c){var m=this,a=document.createElement("span");return a.tabIndex="0",a.setAttribute("role","button"),a.classList.add("ql-picker-item"),c.hasAttribute("value")&&a.setAttribute("data-value",c.getAttribute("value")),c.textContent&&a.setAttribute("data-label",c.textContent),a.addEventListener("click",function(){m.selectItem(a,!0)}),a.addEventListener("keydown",function(E){switch(E.keyCode){case g.default.keys.ENTER:m.selectItem(a,!0),E.preventDefault();break;case g.default.keys.ESCAPE:m.escape(),E.preventDefault()}}),a}},{key:"buildLabel",value:function(){var c=document.createElement("span");return c.classList.add("ql-picker-label"),c.innerHTML=o.default,c.tabIndex="0",c.setAttribute("role","button"),c.setAttribute("aria-expanded","false"),this.container.appendChild(c),c}},{key:"buildOptions",value:function(){var c=this,m=document.createElement("span");m.classList.add("ql-picker-options"),m.setAttribute("aria-hidden","true"),m.tabIndex="-1",m.id="ql-picker-options-"+i,i+=1,this.label.setAttribute("aria-controls",m.id),this.options=m,[].slice.call(this.select.options).forEach(function(a){var E=c.buildItem(a);m.appendChild(E),!0===a.selected&&c.selectItem(E)}),this.container.appendChild(m)}},{key:"buildPicker",value:function(){var c=this;[].slice.call(this.select.attributes).forEach(function(m){c.container.setAttribute(m.name,m.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var c=this;this.close(),setTimeout(function(){return c.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(c){var m=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.container.querySelector(".ql-selected");if(c!==a&&(null!=a&&a.classList.remove("ql-selected"),null!=c&&(c.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(c.parentNode.children,c),c.hasAttribute("data-value")?this.label.setAttribute("data-value",c.getAttribute("data-value")):this.label.removeAttribute("data-value"),c.hasAttribute("data-label")?this.label.setAttribute("data-label",c.getAttribute("data-label")):this.label.removeAttribute("data-label"),m))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":O(Event))){var E=document.createEvent("Event");E.initEvent("change",!0,!0),this.select.dispatchEvent(E)}this.close()}}},{key:"update",value:function(){var c=void 0;if(this.select.selectedIndex>-1){var m=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];c=this.select.options[this.select.selectedIndex],this.selectItem(m)}else this.selectItem(null);var a=null!=c&&c!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",a)}}]),h}();p.default=f},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var u=H(d(0)),g=H(d(5)),v=d(4),o=H(v),n=H(d(16)),s=H(d(25)),h=H(d(24)),c=H(d(35)),a=H(d(6)),x=H(d(22)),A=H(d(7)),k=H(d(55)),w=H(d(42)),j=H(d(23));function H(X){return X&&X.__esModule?X:{default:X}}g.default.register({"blots/block":o.default,"blots/block/embed":v.BlockEmbed,"blots/break":n.default,"blots/container":s.default,"blots/cursor":h.default,"blots/embed":c.default,"blots/inline":a.default,"blots/scroll":x.default,"blots/text":A.default,"modules/clipboard":k.default,"modules/history":w.default,"modules/keyboard":j.default}),u.default.register(o.default,n.default,h.default,a.default,x.default,A.default),p.default=g.default},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=d(1),u=function(){function y(g){this.domNode=g,this.domNode[O.DATA_KEY]={blot:this}}return Object.defineProperty(y.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),y.create=function(g){if(null==this.tagName)throw new O.ParchmentError("Blot definition missing tagName");var v;return Array.isArray(this.tagName)?("string"==typeof g&&(g=g.toUpperCase(),parseInt(g).toString()===g&&(g=parseInt(g))),v="number"==typeof g?document.createElement(this.tagName[g-1]):this.tagName.indexOf(g)>-1?document.createElement(g):document.createElement(this.tagName[0])):v=document.createElement(this.tagName),this.className&&v.classList.add(this.className),v},y.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},y.prototype.clone=function(){var g=this.domNode.cloneNode(!1);return O.create(g)},y.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[O.DATA_KEY]},y.prototype.deleteAt=function(g,v){this.isolate(g,v).remove()},y.prototype.formatAt=function(g,v,o,r){var n=this.isolate(g,v);if(null!=O.query(o,O.Scope.BLOT)&&r)n.wrap(o,r);else if(null!=O.query(o,O.Scope.ATTRIBUTE)){var i=O.create(this.statics.scope);n.wrap(i),i.format(o,r)}},y.prototype.insertAt=function(g,v,o){var r=null==o?O.create("text",v):O.create(v,o),n=this.split(g);this.parent.insertBefore(r,n)},y.prototype.insertInto=function(g,v){void 0===v&&(v=null),null!=this.parent&&this.parent.children.remove(this);var o=null;g.children.insertBefore(this,v),null!=v&&(o=v.domNode),(this.domNode.parentNode!=g.domNode||this.domNode.nextSibling!=o)&&g.domNode.insertBefore(this.domNode,o),this.parent=g,this.attach()},y.prototype.isolate=function(g,v){var o=this.split(g);return o.split(v),o},y.prototype.length=function(){return 1},y.prototype.offset=function(g){return void 0===g&&(g=this.parent),null==this.parent||this==g?0:this.parent.children.offset(this)+this.parent.offset(g)},y.prototype.optimize=function(g){null!=this.domNode[O.DATA_KEY]&&delete this.domNode[O.DATA_KEY].mutations},y.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},y.prototype.replace=function(g){null!=g.parent&&(g.parent.insertBefore(this,g.next),g.remove())},y.prototype.replaceWith=function(g,v){var o="string"==typeof g?O.create(g,v):g;return o.replace(this),o},y.prototype.split=function(g,v){return 0===g?this:this.next},y.prototype.update=function(g,v){},y.prototype.wrap=function(g,v){var o="string"==typeof g?O.create(g,v):g;return null!=this.parent&&this.parent.insertBefore(o,this.next),o.appendChild(this),o},y.blotName="abstract",y}();p.default=u},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=d(12),u=d(32),y=d(33),g=d(1),v=function(){function o(r){this.attributes={},this.domNode=r,this.build()}return o.prototype.attribute=function(r,n){n?r.add(this.domNode,n)&&(null!=r.value(this.domNode)?this.attributes[r.attrName]=r:delete this.attributes[r.attrName]):(r.remove(this.domNode),delete this.attributes[r.attrName])},o.prototype.build=function(){var r=this;this.attributes={};var n=O.default.keys(this.domNode),i=u.default.keys(this.domNode),s=y.default.keys(this.domNode);n.concat(i).concat(s).forEach(function(f){var h=g.query(f,g.Scope.ATTRIBUTE);h instanceof O.default&&(r.attributes[h.attrName]=h)})},o.prototype.copy=function(r){var n=this;Object.keys(this.attributes).forEach(function(i){var s=n.attributes[i].value(n.domNode);r.format(i,s)})},o.prototype.move=function(r){var n=this;this.copy(r),Object.keys(this.attributes).forEach(function(i){n.attributes[i].remove(n.domNode)}),this.attributes={}},o.prototype.values=function(){var r=this;return Object.keys(this.attributes).reduce(function(n,i){return n[i]=r.attributes[i].value(r.domNode),n},{})},o}();p.default=v},function(B,p,d){"use strict";var v,O=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},function(o,r){function n(){this.constructor=o}v(o,r),o.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});function y(v,o){return(v.getAttribute("class")||"").split(/\s+/).filter(function(n){return 0===n.indexOf(o+"-")})}Object.defineProperty(p,"__esModule",{value:!0});var g=function(v){function o(){return null!==v&&v.apply(this,arguments)||this}return O(o,v),o.keys=function(r){return(r.getAttribute("class")||"").split(/\s+/).map(function(n){return n.split("-").slice(0,-1).join("-")})},o.prototype.add=function(r,n){return!!this.canAdd(r,n)&&(this.remove(r),r.classList.add(this.keyName+"-"+n),!0)},o.prototype.remove=function(r){y(r,this.keyName).forEach(function(i){r.classList.remove(i)}),0===r.classList.length&&r.removeAttribute("class")},o.prototype.value=function(r){var i=(y(r,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(r,i)?i:""},o}(d(12).default);p.default=g},function(B,p,d){"use strict";var v,O=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},function(o,r){function n(){this.constructor=o}v(o,r),o.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});function y(v){var o=v.split("-"),r=o.slice(1).map(function(n){return n[0].toUpperCase()+n.slice(1)}).join("");return o[0]+r}Object.defineProperty(p,"__esModule",{value:!0});var g=function(v){function o(){return null!==v&&v.apply(this,arguments)||this}return O(o,v),o.keys=function(r){return(r.getAttribute("style")||"").split(";").map(function(n){return n.split(":")[0].trim()})},o.prototype.add=function(r,n){return!!this.canAdd(r,n)&&(r.style[y(this.keyName)]=n,!0)},o.prototype.remove=function(r){r.style[y(this.keyName)]="",r.getAttribute("style")||r.removeAttribute("style")},o.prototype.value=function(r){var n=r.style[y(this.keyName)];return this.canAdd(r,n)?n:""},o}(d(12).default);p.default=g},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function g(v,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(v,n.key,n)}}return function(v,o,r){return o&&g(v.prototype,o),r&&g(v,r),v}}(),y=function(){function g(v,o){(function u(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")})(this,g),this.quill=v,this.options=o,this.modules={}}return O(g,[{key:"init",value:function(){var o=this;Object.keys(this.options.modules).forEach(function(r){null==o.modules[r]&&o.addModule(r)})}},{key:"addModule",value:function(o){var r=this.quill.constructor.import("modules/"+o);return this.modules[o]=new r(this.quill,this.options.modules[o]||{}),this.modules[o]}}]),g}();y.DEFAULTS={modules:{}},y.themes={default:y},p.default=y},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function l(c,m){for(var a=0;a<m.length;a++){var E=m[a];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(c,E.key,E)}}return function(c,m,a){return m&&l(c.prototype,m),a&&l(c,a),c}}(),u=function l(c,m,a){null===c&&(c=Function.prototype);var E=Object.getOwnPropertyDescriptor(c,m);if(void 0===E){var x=Object.getPrototypeOf(c);return null===x?void 0:l(x,m,a)}if("value"in E)return E.value;var S=E.get;return void 0===S?void 0:S.call(a)},g=r(d(0)),o=r(d(7));function r(l){return l&&l.__esModule?l:{default:l}}var f="\ufeff",h=function(l){function c(m){!function n(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}(this,c);var a=function i(l,c){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!=typeof c&&"function"!=typeof c?l:c}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,m));return a.contentNode=document.createElement("span"),a.contentNode.setAttribute("contenteditable",!1),[].slice.call(a.domNode.childNodes).forEach(function(E){a.contentNode.appendChild(E)}),a.leftGuard=document.createTextNode(f),a.rightGuard=document.createTextNode(f),a.domNode.appendChild(a.leftGuard),a.domNode.appendChild(a.contentNode),a.domNode.appendChild(a.rightGuard),a}return function s(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(l,c):l.__proto__=c)}(c,l),O(c,[{key:"index",value:function(a,E){return a===this.leftGuard?0:a===this.rightGuard?1:u(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"index",this).call(this,a,E)}},{key:"restore",value:function(a){var E=void 0,x=void 0,S=a.data.split(f).join("");if(a===this.leftGuard)if(this.prev instanceof o.default){var A=this.prev.length();this.prev.insertAt(A,S),E={startNode:this.prev.domNode,startOffset:A+S.length}}else x=document.createTextNode(S),this.parent.insertBefore(g.default.create(x),this),E={startNode:x,startOffset:S.length};else a===this.rightGuard&&(this.next instanceof o.default?(this.next.insertAt(0,S),E={startNode:this.next.domNode,startOffset:S.length}):(x=document.createTextNode(S),this.parent.insertBefore(g.default.create(x),this.next),E={startNode:x,startOffset:S.length}));return a.data=f,E}},{key:"update",value:function(a,E){var x=this;a.forEach(function(S){if("characterData"===S.type&&(S.target===x.leftGuard||S.target===x.rightGuard)){var A=x.restore(S.target);A&&(E.range=A)}})}}]),c}(g.default.Embed);p.default=h},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AlignStyle=p.AlignClass=p.AlignAttribute=void 0;var u=function y(n){return n&&n.__esModule?n:{default:n}}(d(0)),g={scope:u.default.Scope.BLOCK,whitelist:["right","center","justify"]},v=new u.default.Attributor.Attribute("align","align",g),o=new u.default.Attributor.Class("align","ql-align",g),r=new u.default.Attributor.Style("align","text-align",g);p.AlignAttribute=v,p.AlignClass=o,p.AlignStyle=r},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BackgroundStyle=p.BackgroundClass=void 0;var u=function g(r){return r&&r.__esModule?r:{default:r}}(d(0)),y=d(26),v=new u.default.Attributor.Class("background","ql-bg",{scope:u.default.Scope.INLINE}),o=new y.ColorAttributor("background","background-color",{scope:u.default.Scope.INLINE});p.BackgroundClass=v,p.BackgroundStyle=o},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DirectionStyle=p.DirectionClass=p.DirectionAttribute=void 0;var u=function y(n){return n&&n.__esModule?n:{default:n}}(d(0)),g={scope:u.default.Scope.BLOCK,whitelist:["rtl"]},v=new u.default.Attributor.Attribute("direction","dir",g),o=new u.default.Attributor.Class("direction","ql-direction",g),r=new u.default.Attributor.Style("direction","direction",g);p.DirectionAttribute=v,p.DirectionClass=o,p.DirectionStyle=r},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FontClass=p.FontStyle=void 0;var O=function(){function l(c,m){for(var a=0;a<m.length;a++){var E=m[a];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(c,E.key,E)}}return function(c,m,a){return m&&l(c.prototype,m),a&&l(c,a),c}}(),u=function l(c,m,a){null===c&&(c=Function.prototype);var E=Object.getOwnPropertyDescriptor(c,m);if(void 0===E){var x=Object.getPrototypeOf(c);return null===x?void 0:l(x,m,a)}if("value"in E)return E.value;var S=E.get;return void 0===S?void 0:S.call(a)},g=function v(l){return l&&l.__esModule?l:{default:l}}(d(0));function o(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}function r(l,c){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!=typeof c&&"function"!=typeof c?l:c}var i={scope:g.default.Scope.INLINE,whitelist:["serif","monospace"]},s=new g.default.Attributor.Class("font","ql-font",i),f=function(l){function c(){return o(this,c),r(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return function n(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(l,c):l.__proto__=c)}(c,l),O(c,[{key:"value",value:function(a){return u(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"value",this).call(this,a).replace(/["']/g,"")}}]),c}(g.default.Attributor.Style),h=new f("font","font-family",i);p.FontStyle=h,p.FontClass=s},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SizeStyle=p.SizeClass=void 0;var u=function y(o){return o&&o.__esModule?o:{default:o}}(d(0)),g=new u.default.Attributor.Class("size","ql-size",{scope:u.default.Scope.INLINE,whitelist:["small","large","huge"]}),v=new u.default.Attributor.Style("size","font-size",{scope:u.default.Scope.INLINE,whitelist:["10px","18px","32px"]});p.SizeClass=g,p.SizeStyle=v},function(B,p,d){"use strict";B.exports={align:{"":d(76),center:d(77),right:d(78),justify:d(79)},background:d(80),blockquote:d(81),bold:d(82),clean:d(83),code:d(58),"code-block":d(58),color:d(84),direction:{"":d(85),rtl:d(86)},float:{center:d(87),full:d(88),left:d(89),right:d(90)},formula:d(91),header:{1:d(92),2:d(93)},italic:d(94),image:d(95),indent:{"+1":d(96),"-1":d(97)},link:d(98),list:{ordered:d(99),bullet:d(100),check:d(101)},script:{sub:d(102),super:d(103)},strike:d(104),underline:d(105),video:d(106)}},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getLastChangeIndex=p.default=void 0;var O=function(){function m(a,E){for(var x=0;x<E.length;x++){var S=E[x];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(a,S.key,S)}}return function(a,E,x){return E&&m(a.prototype,E),x&&m(a,x),a}}(),y=n(d(0)),v=n(d(5));function n(m){return m&&m.__esModule?m:{default:m}}var h=function(m){function a(E,x){!function i(m,a){if(!(m instanceof a))throw new TypeError("Cannot call a class as a function")}(this,a);var S=function s(m,a){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?m:a}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,E,x));return S.lastRecorded=0,S.ignoreChange=!1,S.clear(),S.quill.on(v.default.events.EDITOR_CHANGE,function(A,b,k,_){A!==v.default.events.TEXT_CHANGE||S.ignoreChange||(S.options.userOnly&&_!==v.default.sources.USER?S.transform(b):S.record(b,k))}),S.quill.keyboard.addBinding({key:"Z",shortKey:!0},S.undo.bind(S)),S.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},S.redo.bind(S)),/Win/i.test(navigator.platform)&&S.quill.keyboard.addBinding({key:"Y",shortKey:!0},S.redo.bind(S)),S}return function f(m,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);m.prototype=Object.create(a&&a.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(m,a):m.__proto__=a)}(a,m),O(a,[{key:"change",value:function(x,S){if(0!==this.stack[x].length){var A=this.stack[x].pop();this.stack[S].push(A),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(A[x],v.default.sources.USER),this.ignoreChange=!1;var b=c(A[x]);this.quill.setSelection(b)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(x,S){if(0!==x.ops.length){this.stack.redo=[];var A=this.quill.getContents().diff(S),b=Date.now();if(this.lastRecorded+this.options.delay>b&&this.stack.undo.length>0){var k=this.stack.undo.pop();A=A.compose(k.undo),x=k.redo.compose(x)}else this.lastRecorded=b;this.stack.undo.push({redo:x,undo:A}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(x){this.stack.undo.forEach(function(S){S.undo=x.transform(S.undo,!0),S.redo=x.transform(S.redo,!0)}),this.stack.redo.forEach(function(S){S.undo=x.transform(S.undo,!0),S.redo=x.transform(S.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),a}(n(d(9)).default);function c(m){var a=m.reduce(function(x,S){return x+(S.delete||0)},0),E=m.length()-a;return function l(m){var a=m.ops[m.ops.length-1];return null!=a&&(null!=a.insert?"string"==typeof a.insert&&a.insert.endsWith("\n"):null!=a.attributes&&Object.keys(a.attributes).some(function(E){return null!=y.default.query(E,y.default.Scope.BLOCK)}))}(m)&&(E-=1),E}h.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},p.default=h,p.getLastChangeIndex=c},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BaseTooltip=void 0;var O=function(){function M(U,G){for(var V=0;V<G.length;V++){var D=G[V];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(U,D.key,D)}}return function(U,G,V){return G&&M(U.prototype,G),V&&M(U,V),U}}(),u=function M(U,G,V){null===U&&(U=Function.prototype);var D=Object.getOwnPropertyDescriptor(U,G);if(void 0===D){var W=Object.getPrototypeOf(U);return null===W?void 0:M(W,G,V)}if("value"in D)return D.value;var tt=D.get;return void 0===tt?void 0:tt.call(V)},g=b(d(3)),o=b(d(2)),n=b(d(8)),s=b(d(23)),h=b(d(34)),c=b(d(59)),a=b(d(60)),x=b(d(28)),A=b(d(61));function b(M){return M&&M.__esModule?M:{default:M}}function k(M,U){if(!(M instanceof U))throw new TypeError("Cannot call a class as a function")}function _(M,U){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!U||"object"!=typeof U&&"function"!=typeof U?M:U}function w(M,U){if("function"!=typeof U&&null!==U)throw new TypeError("Super expression must either be null or a function, not "+typeof U);M.prototype=Object.create(U&&U.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(M,U):M.__proto__=U)}var N=[!1,"center","right","justify"],j=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],H=[!1,"serif","monospace"],X=["1","2","3",!1],Z=["small",!1,"large","huge"],nt=function(M){function U(G,V){k(this,U);var D=_(this,(U.__proto__||Object.getPrototypeOf(U)).call(this,G,V));return G.emitter.listenDOM("click",document.body,function tt(it){if(!document.body.contains(G.root))return document.body.removeEventListener("click",tt);null!=D.tooltip&&!D.tooltip.root.contains(it.target)&&document.activeElement!==D.tooltip.textbox&&!D.quill.hasFocus()&&D.tooltip.hide(),null!=D.pickers&&D.pickers.forEach(function(st){st.container.contains(it.target)||st.close()})}),D}return w(U,M),O(U,[{key:"addModule",value:function(V){var D=u(U.prototype.__proto__||Object.getPrototypeOf(U.prototype),"addModule",this).call(this,V);return"toolbar"===V&&this.extendToolbar(D),D}},{key:"buildButtons",value:function(V,D){V.forEach(function(W){(W.getAttribute("class")||"").split(/\s+/).forEach(function(it){if(it.startsWith("ql-")&&(it=it.slice(3),null!=D[it]))if("direction"===it)W.innerHTML=D[it][""]+D[it].rtl;else if("string"==typeof D[it])W.innerHTML=D[it];else{var st=W.value||"";null!=st&&D[it][st]&&(W.innerHTML=D[it][st])}})})}},{key:"buildPickers",value:function(V,D){var W=this;this.pickers=V.map(function(it){if(it.classList.contains("ql-align"))return null==it.querySelector("option")&&q(it,N),new a.default(it,D.align);if(it.classList.contains("ql-background")||it.classList.contains("ql-color")){var st=it.classList.contains("ql-background")?"background":"color";return null==it.querySelector("option")&&q(it,j,"background"===st?"#ffffff":"#000000"),new c.default(it,D[st])}return null==it.querySelector("option")&&(it.classList.contains("ql-font")?q(it,H):it.classList.contains("ql-header")?q(it,X):it.classList.contains("ql-size")&&q(it,Z)),new x.default(it)}),this.quill.on(n.default.events.EDITOR_CHANGE,function(){W.pickers.forEach(function(st){st.update()})})}}]),U}(h.default);nt.DEFAULTS=(0,g.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var U=this,G=this.container.querySelector("input.ql-image[type=file]");null==G&&((G=document.createElement("input")).setAttribute("type","file"),G.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),G.classList.add("ql-image"),G.addEventListener("change",function(){if(null!=G.files&&null!=G.files[0]){var V=new FileReader;V.onload=function(D){var W=U.quill.getSelection(!0);U.quill.updateContents((new o.default).retain(W.index).delete(W.length).insert({image:D.target.result}),n.default.sources.USER),U.quill.setSelection(W.index+1,n.default.sources.SILENT),G.value=""},V.readAsDataURL(G.files[0])}}),this.container.appendChild(G)),G.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var K=function(M){function U(G,V){k(this,U);var D=_(this,(U.__proto__||Object.getPrototypeOf(U)).call(this,G,V));return D.textbox=D.root.querySelector('input[type="text"]'),D.listen(),D}return w(U,M),O(U,[{key:"listen",value:function(){var V=this;this.textbox.addEventListener("keydown",function(D){s.default.match(D,"enter")?(V.save(),D.preventDefault()):s.default.match(D,"escape")&&(V.cancel(),D.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var V=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=D?this.textbox.value=D:V!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+V)||""),this.root.setAttribute("data-mode",V)}},{key:"restoreFocus",value:function(){var V=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=V}},{key:"save",value:function(){var V=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var D=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",V,n.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",V,n.default.sources.USER)),this.quill.root.scrollTop=D;break;case"video":V=function L(M){var U=M.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||M.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return U?(U[1]||"https")+"://www.youtube.com/embed/"+U[2]+"?showinfo=0":(U=M.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(U[1]||"https")+"://player.vimeo.com/video/"+U[2]+"/":M}(V);case"formula":if(!V)break;var W=this.quill.getSelection(!0);if(null!=W){var tt=W.index+W.length;this.quill.insertEmbed(tt,this.root.getAttribute("data-mode"),V,n.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(tt+1," ",n.default.sources.USER),this.quill.setSelection(tt+2,n.default.sources.USER)}}this.textbox.value="",this.hide()}}]),U}(A.default);function q(M,U){var G=arguments.length>2&&void 0!==arguments[2]&&arguments[2];U.forEach(function(V){var D=document.createElement("option");V===G?D.setAttribute("selected","selected"):D.setAttribute("value",V),M.appendChild(D)})}p.BaseTooltip=K,p.default=nt},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function u(){this.head=this.tail=null,this.length=0}return u.prototype.append=function(){for(var y=[],g=0;g<arguments.length;g++)y[g]=arguments[g];this.insertBefore(y[0],null),y.length>1&&this.append.apply(this,y.slice(1))},u.prototype.contains=function(y){for(var g,v=this.iterator();g=v();)if(g===y)return!0;return!1},u.prototype.insertBefore=function(y,g){!y||(y.next=g,null!=g?(y.prev=g.prev,null!=g.prev&&(g.prev.next=y),g.prev=y,g===this.head&&(this.head=y)):null!=this.tail?(this.tail.next=y,y.prev=this.tail,this.tail=y):(y.prev=null,this.head=this.tail=y),this.length+=1)},u.prototype.offset=function(y){for(var g=0,v=this.head;null!=v;){if(v===y)return g;g+=v.length(),v=v.next}return-1},u.prototype.remove=function(y){!this.contains(y)||(null!=y.prev&&(y.prev.next=y.next),null!=y.next&&(y.next.prev=y.prev),y===this.head&&(this.head=y.next),y===this.tail&&(this.tail=y.prev),this.length-=1)},u.prototype.iterator=function(y){return void 0===y&&(y=this.head),function(){var g=y;return null!=y&&(y=y.next),g}},u.prototype.find=function(y,g){void 0===g&&(g=!1);for(var v,o=this.iterator();v=o();){var r=v.length();if(y<r||g&&y===r&&(null==v.next||0!==v.next.length()))return[v,y];y-=r}return[null,0]},u.prototype.forEach=function(y){for(var g,v=this.iterator();g=v();)y(g)},u.prototype.forEachAt=function(y,g,v){if(!(g<=0))for(var i,o=this.find(y),s=y-o[1],f=this.iterator(o[0]);(i=f())&&s<y+g;){var h=i.length();y>s?v(i,y-s,Math.min(g,s+h-y)):v(i,0,Math.min(h,y+g-s)),s+=h}},u.prototype.map=function(y){return this.reduce(function(g,v){return g.push(y(v)),g},[])},u.prototype.reduce=function(y,g){for(var v,o=this.iterator();v=o();)g=y(g,v);return g},u}();p.default=O},function(B,p,d){"use strict";var r,O=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},function(n,i){function s(){this.constructor=n}r(n,i),n.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)});Object.defineProperty(p,"__esModule",{value:!0});var u=d(17),y=d(1),g={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},o=function(r){function n(i){var s=r.call(this,i)||this;return s.scroll=s,s.observer=new MutationObserver(function(f){s.update(f)}),s.observer.observe(s.domNode,g),s.attach(),s}return O(n,r),n.prototype.detach=function(){r.prototype.detach.call(this),this.observer.disconnect()},n.prototype.deleteAt=function(i,s){this.update(),0===i&&s===this.length()?this.children.forEach(function(f){f.remove()}):r.prototype.deleteAt.call(this,i,s)},n.prototype.formatAt=function(i,s,f,h){this.update(),r.prototype.formatAt.call(this,i,s,f,h)},n.prototype.insertAt=function(i,s,f){this.update(),r.prototype.insertAt.call(this,i,s,f)},n.prototype.optimize=function(i,s){var f=this;void 0===i&&(i=[]),void 0===s&&(s={}),r.prototype.optimize.call(this,s);for(var h=[].slice.call(this.observer.takeRecords());h.length>0;)i.push(h.pop());for(var l=function(E,x){void 0===x&&(x=!0),null!=E&&E!==f&&null!=E.domNode.parentNode&&(null==E.domNode[y.DATA_KEY].mutations&&(E.domNode[y.DATA_KEY].mutations=[]),x&&l(E.parent))},c=function(E){null==E.domNode[y.DATA_KEY]||null==E.domNode[y.DATA_KEY].mutations||(E instanceof u.default&&E.children.forEach(c),E.optimize(s))},m=i,a=0;m.length>0;a+=1){if(a>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(m.forEach(function(E){var x=y.find(E.target,!0);null!=x&&(x.domNode===E.target&&("childList"===E.type?(l(y.find(E.previousSibling,!1)),[].forEach.call(E.addedNodes,function(S){var A=y.find(S,!1);l(A,!1),A instanceof u.default&&A.children.forEach(function(b){l(b,!1)})})):"attributes"===E.type&&l(x.prev)),l(x))}),this.children.forEach(c),h=(m=[].slice.call(this.observer.takeRecords())).slice();h.length>0;)i.push(h.pop())}},n.prototype.update=function(i,s){var f=this;void 0===s&&(s={}),(i=i||this.observer.takeRecords()).map(function(h){var l=y.find(h.target,!0);return null==l?null:null==l.domNode[y.DATA_KEY].mutations?(l.domNode[y.DATA_KEY].mutations=[h],l):(l.domNode[y.DATA_KEY].mutations.push(h),null)}).forEach(function(h){null==h||h===f||null==h.domNode[y.DATA_KEY]||h.update(h.domNode[y.DATA_KEY].mutations||[],s)}),null!=this.domNode[y.DATA_KEY].mutations&&r.prototype.update.call(this,this.domNode[y.DATA_KEY].mutations,s),this.optimize(i,s)},n.blotName="scroll",n.defaultChild="block",n.scope=y.Scope.BLOCK_BLOT,n.tagName="DIV",n}(u.default);p.default=o},function(B,p,d){"use strict";var o,O=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},function(r,n){function i(){this.constructor=r}o(r,n),r.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)});Object.defineProperty(p,"__esModule",{value:!0});var u=d(18),y=d(1),v=function(o){function r(){return null!==o&&o.apply(this,arguments)||this}return O(r,o),r.formats=function(n){if(n.tagName!==r.tagName)return o.formats.call(this,n)},r.prototype.format=function(n,i){var s=this;n!==this.statics.blotName||i?o.prototype.format.call(this,n,i):(this.children.forEach(function(f){f instanceof u.default||(f=f.wrap(r.blotName,!0)),s.attributes.copy(f)}),this.unwrap())},r.prototype.formatAt=function(n,i,s,f){null!=this.formats()[s]||y.query(s,y.Scope.ATTRIBUTE)?this.isolate(n,i).format(s,f):o.prototype.formatAt.call(this,n,i,s,f)},r.prototype.optimize=function(n){o.prototype.optimize.call(this,n);var i=this.formats();if(0===Object.keys(i).length)return this.unwrap();var s=this.next;s instanceof r&&s.prev===this&&function g(o,r){if(Object.keys(o).length!==Object.keys(r).length)return!1;for(var n in o)if(o[n]!==r[n])return!1;return!0}(i,s.formats())&&(s.moveChildren(this),s.remove())},r.blotName="inline",r.scope=y.Scope.INLINE_BLOT,r.tagName="SPAN",r}(u.default);p.default=v},function(B,p,d){"use strict";var v,O=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},function(o,r){function n(){this.constructor=o}v(o,r),o.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(p,"__esModule",{value:!0});var u=d(18),y=d(1),g=function(v){function o(){return null!==v&&v.apply(this,arguments)||this}return O(o,v),o.formats=function(r){var n=y.query(o.blotName).tagName;if(r.tagName!==n)return v.formats.call(this,r)},o.prototype.format=function(r,n){null!=y.query(r,y.Scope.BLOCK)&&(r!==this.statics.blotName||n?v.prototype.format.call(this,r,n):this.replaceWith(o.blotName))},o.prototype.formatAt=function(r,n,i,s){null!=y.query(i,y.Scope.BLOCK)?this.format(i,s):v.prototype.formatAt.call(this,r,n,i,s)},o.prototype.insertAt=function(r,n,i){if(null==i||null!=y.query(n,y.Scope.INLINE))v.prototype.insertAt.call(this,r,n,i);else{var s=this.split(r),f=y.create(n,i);s.parent.insertBefore(f,s)}},o.prototype.update=function(r,n){navigator.userAgent.match(/Trident/)?this.build():v.prototype.update.call(this,r,n)},o.blotName="block",o.scope=y.Scope.BLOCK_BLOT,o.tagName="P",o}(u.default);p.default=g},function(B,p,d){"use strict";var g,O=this&&this.__extends||(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,o){v.__proto__=o}||function(v,o){for(var r in o)o.hasOwnProperty(r)&&(v[r]=o[r])},function(v,o){function r(){this.constructor=v}g(v,o),v.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)});Object.defineProperty(p,"__esModule",{value:!0});var y=function(g){function v(){return null!==g&&g.apply(this,arguments)||this}return O(v,g),v.formats=function(o){},v.prototype.format=function(o,r){g.prototype.formatAt.call(this,0,this.length(),o,r)},v.prototype.formatAt=function(o,r,n,i){0===o&&r===this.length()?this.format(n,i):g.prototype.formatAt.call(this,o,r,n,i)},v.prototype.formats=function(){return this.statics.formats(this.domNode)},v}(d(19).default);p.default=y},function(B,p,d){"use strict";var v,O=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},function(o,r){function n(){this.constructor=o}v(o,r),o.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(p,"__esModule",{value:!0});var u=d(19),y=d(1),g=function(v){function o(r){var n=v.call(this,r)||this;return n.text=n.statics.value(n.domNode),n}return O(o,v),o.create=function(r){return document.createTextNode(r)},o.value=function(r){var n=r.data;return n.normalize&&(n=n.normalize()),n},o.prototype.deleteAt=function(r,n){this.domNode.data=this.text=this.text.slice(0,r)+this.text.slice(r+n)},o.prototype.index=function(r,n){return this.domNode===r?n:-1},o.prototype.insertAt=function(r,n,i){null==i?(this.text=this.text.slice(0,r)+n+this.text.slice(r),this.domNode.data=this.text):v.prototype.insertAt.call(this,r,n,i)},o.prototype.length=function(){return this.text.length},o.prototype.optimize=function(r){v.prototype.optimize.call(this,r),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof o&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},o.prototype.position=function(r,n){return void 0===n&&(n=!1),[this.domNode,r]},o.prototype.split=function(r,n){if(void 0===n&&(n=!1),!n){if(0===r)return this;if(r===this.length())return this.next}var i=y.create(this.domNode.splitText(r));return this.parent.insertBefore(i,this.next),this.text=this.statics.value(this.domNode),i},o.prototype.update=function(r,n){var i=this;r.some(function(s){return"characterData"===s.type&&s.target===i.domNode})&&(this.text=this.statics.value(this.domNode))},o.prototype.value=function(){return this.text},o.blotName="text",o.scope=y.Scope.INLINE_BLOT,o}(u.default);p.default=g},function(B,p,d){"use strict";var O=document.createElement("div");if(O.classList.toggle("test-class",!1),O.classList.contains("test-class")){var u=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(y,g){return arguments.length>1&&!this.contains(y)==!g?g:u.call(this,y)}}String.prototype.startsWith||(String.prototype.startsWith=function(y,g){return this.substr(g=g||0,y.length)===y}),String.prototype.endsWith||(String.prototype.endsWith=function(y,g){var v=this.toString();("number"!=typeof g||!isFinite(g)||Math.floor(g)!==g||g>v.length)&&(g=v.length);var o=v.indexOf(y,g-=y.length);return-1!==o&&o===g}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(g){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof g)throw new TypeError("predicate must be a function");for(var n,v=Object(this),o=v.length>>>0,r=arguments[1],i=0;i<o;i++)if(g.call(r,n=v[i],i,v))return n}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(B,p){var d=-1;function y(a,E,x){if(a==E)return a?[[0,a]]:[];(x<0||a.length<x)&&(x=null);var S=r(a,E),A=a.substring(0,S);S=n(a=a.substring(S),E=E.substring(S));var b=a.substring(a.length-S),k=function g(a,E){var x;if(!a)return[[1,E]];if(!E)return[[d,a]];var S=a.length>E.length?a:E,A=a.length>E.length?E:a,b=S.indexOf(A);if(-1!=b)return x=[[1,S.substring(0,b)],[0,A],[1,S.substring(b+A.length)]],a.length>E.length&&(x[0][0]=x[2][0]=d),x;if(1==A.length)return[[d,a],[1,E]];var k=function i(a,E){var x=a.length>E.length?a:E,S=a.length>E.length?E:a;if(x.length<4||2*S.length<x.length)return null;function A(Z,nt,K){for(var U,G,V,D,L=Z.substring(K,K+Math.floor(Z.length/4)),q=-1,M="";-1!=(q=nt.indexOf(L,q+1));){var W=r(Z.substring(K),nt.substring(q)),tt=n(Z.substring(0,K),nt.substring(0,q));M.length<tt+W&&(M=nt.substring(q-tt,q)+nt.substring(q,q+W),U=Z.substring(0,K-tt),G=Z.substring(K+W),V=nt.substring(0,q-tt),D=nt.substring(q+W))}return 2*M.length>=Z.length?[U,G,V,D,M]:null}var _,w,N,j,H,b=A(x,S,Math.ceil(x.length/4)),k=A(x,S,Math.ceil(x.length/2));return b||k?(_=k?b&&b[4].length>k[4].length?b:k:b,a.length>E.length?(w=_[0],N=_[1],j=_[2],H=_[3]):(j=_[0],H=_[1],w=_[2],N=_[3]),[w,N,j,H,_[4]]):null}(a,E);if(k){var w=k[1],j=k[3],H=k[4],X=y(k[0],k[2]),Z=y(w,j);return X.concat([[0,H]],Z)}return function v(a,E){for(var x=a.length,S=E.length,A=Math.ceil((x+S)/2),b=A,k=2*A,_=new Array(k),w=new Array(k),N=0;N<k;N++)_[N]=-1,w[N]=-1;_[b+1]=0,w[b+1]=0;for(var j=x-S,H=j%2!=0,X=0,Z=0,nt=0,K=0,L=0;L<A;L++){for(var q=-L+X;q<=L-Z;q+=2){for(var M=b+q,G=(U=q==-L||q!=L&&_[M-1]<_[M+1]?_[M+1]:_[M-1]+1)-q;U<x&&G<S&&a.charAt(U)==E.charAt(G);)U++,G++;if(_[M]=U,U>x)Z+=2;else if(G>S)X+=2;else if(H&&(V=b+j-q)>=0&&V<k&&-1!=w[V]&&U>=(D=x-w[V]))return o(a,E,U,G)}for(var W=-L+nt;W<=L-K;W+=2){for(var D,V=b+W,tt=(D=W==-L||W!=L&&w[V-1]<w[V+1]?w[V+1]:w[V-1]+1)-W;D<x&&tt<S&&a.charAt(x-D-1)==E.charAt(S-tt-1);)D++,tt++;if(w[V]=D,D>x)K+=2;else if(tt>S)nt+=2;else if(!H){var U;if((M=b+j-W)>=0&&M<k&&-1!=_[M])if(G=b+(U=_[M])-M,U>=(D=x-D))return o(a,E,U,G)}}}return[[d,a],[1,E]]}(a,E)}(a=a.substring(0,a.length-S),E=E.substring(0,E.length-S));return A&&k.unshift([0,A]),b&&k.push([0,b]),s(k),null!=x&&(k=function l(a,E){var x=function h(a,E){if(0===E)return[0,a];for(var x=0,S=0;S<a.length;S++){var A=a[S];if(A[0]===d||0===A[0]){var b=x+A[1].length;if(E===b)return[S+1,a];if(E<b){a=a.slice();var k=E-x,_=[A[0],A[1].slice(0,k)],w=[A[0],A[1].slice(k)];return a.splice(S,1,_,w),[S+1,a]}x=b}}throw new Error("cursor_pos is out of bounds!")}(a,E),S=x[1],A=x[0],b=S[A],k=S[A+1];if(null==b)return a;if(0!==b[0])return a;if(null!=k&&b[1]+k[1]===k[1]+b[1])return S.splice(A,2,k,b),m(S,A,2);if(null!=k&&0===k[1].indexOf(b[1])){S.splice(A,2,[k[0],b[1]],[0,b[1]]);var _=k[1].slice(b[1].length);return _.length>0&&S.splice(A+2,0,[k[0],_]),m(S,A,3)}return a}(k,x)),k=function c(a){for(var E=!1,x=function(k){return k.charCodeAt(0)>=56320&&k.charCodeAt(0)<=57343},S=function(k){return k.charCodeAt(k.length-1)>=55296&&k.charCodeAt(k.length-1)<=56319},A=2;A<a.length;A+=1)0===a[A-2][0]&&S(a[A-2][1])&&a[A-1][0]===d&&x(a[A-1][1])&&1===a[A][0]&&x(a[A][1])&&(E=!0,a[A-1][1]=a[A-2][1].slice(-1)+a[A-1][1],a[A][1]=a[A-2][1].slice(-1)+a[A][1],a[A-2][1]=a[A-2][1].slice(0,-1));if(!E)return a;var b=[];for(A=0;A<a.length;A+=1)a[A][1].length>0&&b.push(a[A]);return b}(k),k}function o(a,E,x,S){var A=a.substring(0,x),b=E.substring(0,S),k=a.substring(x),_=E.substring(S),w=y(A,b),N=y(k,_);return w.concat(N)}function r(a,E){if(!a||!E||a.charAt(0)!=E.charAt(0))return 0;for(var x=0,S=Math.min(a.length,E.length),A=S,b=0;x<A;)a.substring(b,A)==E.substring(b,A)?b=x=A:S=A,A=Math.floor((S-x)/2+x);return A}function n(a,E){if(!a||!E||a.charAt(a.length-1)!=E.charAt(E.length-1))return 0;for(var x=0,S=Math.min(a.length,E.length),A=S,b=0;x<A;)a.substring(a.length-A,a.length-b)==E.substring(E.length-A,E.length-b)?b=x=A:S=A,A=Math.floor((S-x)/2+x);return A}function s(a){a.push([0,""]);for(var k,E=0,x=0,S=0,A="",b="";E<a.length;)switch(a[E][0]){case 1:S++,b+=a[E][1],E++;break;case d:x++,A+=a[E][1],E++;break;case 0:x+S>1?(0!==x&&0!==S&&(0!==(k=r(b,A))&&(E-x-S>0&&0==a[E-x-S-1][0]?a[E-x-S-1][1]+=b.substring(0,k):(a.splice(0,0,[0,b.substring(0,k)]),E++),b=b.substring(k),A=A.substring(k)),0!==(k=n(b,A))&&(a[E][1]=b.substring(b.length-k)+a[E][1],b=b.substring(0,b.length-k),A=A.substring(0,A.length-k))),0===x?a.splice(E-S,x+S,[1,b]):0===S?a.splice(E-x,x+S,[d,A]):a.splice(E-x-S,x+S,[d,A],[1,b]),E=E-x-S+(x?1:0)+(S?1:0)+1):0!==E&&0==a[E-1][0]?(a[E-1][1]+=a[E][1],a.splice(E,1)):E++,S=0,x=0,A="",b=""}""===a[a.length-1][1]&&a.pop();var _=!1;for(E=1;E<a.length-1;)0==a[E-1][0]&&0==a[E+1][0]&&(a[E][1].substring(a[E][1].length-a[E-1][1].length)==a[E-1][1]?(a[E][1]=a[E-1][1]+a[E][1].substring(0,a[E][1].length-a[E-1][1].length),a[E+1][1]=a[E-1][1]+a[E+1][1],a.splice(E-1,1),_=!0):a[E][1].substring(0,a[E+1][1].length)==a[E+1][1]&&(a[E-1][1]+=a[E+1][1],a[E][1]=a[E][1].substring(a[E+1][1].length)+a[E+1][1],a.splice(E+1,1),_=!0)),E++;_&&s(a)}var f=y;function m(a,E,x){for(var S=E+x-1;S>=0&&S>=E-1;S--)if(S+1<a.length){var A=a[S],b=a[S+1];A[0]===b[1]&&a.splice(S,2,[A[0],A[1]+b[1]])}return a}f.INSERT=1,f.DELETE=d,f.EQUAL=0,B.exports=f},function(B,p){function d(O){var u=[];for(var y in O)u.push(y);return u}(B.exports="function"==typeof Object.keys?Object.keys:d).shim=d},function(B,p){var d="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function O(y){return"[object Arguments]"==Object.prototype.toString.call(y)}function u(y){return y&&"object"==typeof y&&"number"==typeof y.length&&Object.prototype.hasOwnProperty.call(y,"callee")&&!Object.prototype.propertyIsEnumerable.call(y,"callee")||!1}(p=B.exports=d?O:u).supported=O,p.unsupported=u},function(B,p){"use strict";var d=Object.prototype.hasOwnProperty,O="~";function u(){}function y(v,o,r){this.fn=v,this.context=o,this.once=r||!1}function g(){this._events=new u,this._eventsCount=0}Object.create&&(u.prototype=Object.create(null),(new u).__proto__||(O=!1)),g.prototype.eventNames=function(){var r,n,o=[];if(0===this._eventsCount)return o;for(n in r=this._events)d.call(r,n)&&o.push(O?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(r)):o},g.prototype.listeners=function(o,r){var i=this._events[O?O+o:o];if(r)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var s=0,f=i.length,h=new Array(f);s<f;s++)h[s]=i[s].fn;return h},g.prototype.emit=function(o,r,n,i,s,f){var h=O?O+o:o;if(!this._events[h])return!1;var m,a,l=this._events[h],c=arguments.length;if(l.fn){switch(l.once&&this.removeListener(o,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,r),!0;case 3:return l.fn.call(l.context,r,n),!0;case 4:return l.fn.call(l.context,r,n,i),!0;case 5:return l.fn.call(l.context,r,n,i,s),!0;case 6:return l.fn.call(l.context,r,n,i,s,f),!0}for(a=1,m=new Array(c-1);a<c;a++)m[a-1]=arguments[a];l.fn.apply(l.context,m)}else{var x,E=l.length;for(a=0;a<E;a++)switch(l[a].once&&this.removeListener(o,l[a].fn,void 0,!0),c){case 1:l[a].fn.call(l[a].context);break;case 2:l[a].fn.call(l[a].context,r);break;case 3:l[a].fn.call(l[a].context,r,n);break;case 4:l[a].fn.call(l[a].context,r,n,i);break;default:if(!m)for(x=1,m=new Array(c-1);x<c;x++)m[x-1]=arguments[x];l[a].fn.apply(l[a].context,m)}}return!0},g.prototype.on=function(o,r,n){var i=new y(r,n||this),s=O?O+o:o;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],i]:this._events[s].push(i):(this._events[s]=i,this._eventsCount++),this},g.prototype.once=function(o,r,n){var i=new y(r,n||this,!0),s=O?O+o:o;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],i]:this._events[s].push(i):(this._events[s]=i,this._eventsCount++),this},g.prototype.removeListener=function(o,r,n,i){var s=O?O+o:o;if(!this._events[s])return this;if(!r)return 0==--this._eventsCount?this._events=new u:delete this._events[s],this;var f=this._events[s];if(f.fn)f.fn===r&&(!i||f.once)&&(!n||f.context===n)&&(0==--this._eventsCount?this._events=new u:delete this._events[s]);else{for(var h=0,l=[],c=f.length;h<c;h++)(f[h].fn!==r||i&&!f[h].once||n&&f[h].context!==n)&&l.push(f[h]);l.length?this._events[s]=1===l.length?l[0]:l:0==--this._eventsCount?this._events=new u:delete this._events[s]}return this},g.prototype.removeAllListeners=function(o){var r;return o?this._events[r=O?O+o:o]&&(0==--this._eventsCount?this._events=new u:delete this._events[r]):(this._events=new u,this._eventsCount=0),this},g.prototype.off=g.prototype.removeListener,g.prototype.addListener=g.prototype.on,g.prototype.setMaxListeners=function(){return this},g.prefixed=O,g.EventEmitter=g,void 0!==B&&(B.exports=g)},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.matchText=p.matchSpacing=p.matchNewline=p.matchBlot=p.matchAttributor=p.default=void 0;var O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},u=function(T,I){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return function R(T,I){var Y=[],F=!0,et=!1,ot=void 0;try{for(var dt,ut=T[Symbol.iterator]();!(F=(dt=ut.next()).done)&&(Y.push(dt.value),!I||Y.length!==I);F=!0);}catch(vt){et=!0,ot=vt}finally{try{!F&&ut.return&&ut.return()}finally{if(et)throw ot}}return Y}(T,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=function(){function R(T,I){for(var Y=0;Y<I.length;Y++){var F=I[Y];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(T,F.key,F)}}return function(T,I,Y){return I&&R(T.prototype,I),Y&&R(T,Y),T}}(),v=w(d(3)),r=w(d(2)),i=w(d(0)),f=w(d(5)),l=w(d(10)),m=w(d(9)),a=d(36),E=d(37),S=w(d(13)),A=d(26),b=d(38),k=d(39),_=d(40);function w(R){return R&&R.__esModule?R:{default:R}}function N(R,T,I){return T in R?Object.defineProperty(R,T,{value:I,enumerable:!0,configurable:!0,writable:!0}):R[T]=I,R}var Z=(0,l.default)("quill:clipboard"),nt="__ql-matcher",K=[[Node.TEXT_NODE,J],[Node.TEXT_NODE,At],["br",function pt(R,T){return V(T,"\n")||T.insert("\n"),T}],[Node.ELEMENT_NODE,At],[Node.ELEMENT_NODE,st],[Node.ELEMENT_NODE,Ct],[Node.ELEMENT_NODE,it],[Node.ELEMENT_NODE,function Lt(R,T){var I={},Y=R.style||{};return Y.fontStyle&&"italic"===G(R).fontStyle&&(I.italic=!0),Y.fontWeight&&(G(R).fontWeight.startsWith("bold")||parseInt(G(R).fontWeight)>=700)&&(I.bold=!0),Object.keys(I).length>0&&(T=U(T,I)),parseFloat(Y.textIndent||0)>0&&(T=(new r.default).insert("\t").concat(T)),T}],["li",function _t(R,T){var I=i.default.query(R);if(null==I||"list-item"!==I.blotName||!V(T,"\n"))return T;for(var Y=-1,F=R.parentNode;!F.classList.contains("ql-clipboard");)"list"===(i.default.query(F)||{}).blotName&&(Y+=1),F=F.parentNode;return Y<=0?T:T.compose((new r.default).retain(T.length()-1).retain(1,{indent:Y}))}],["b",tt.bind(tt,"bold")],["i",tt.bind(tt,"italic")],["style",function bt(){return new r.default}]],L=[a.AlignAttribute,b.DirectionAttribute].reduce(function(R,T){return R[T.keyName]=T,R},{}),q=[a.AlignStyle,E.BackgroundStyle,A.ColorStyle,b.DirectionStyle,k.FontStyle,_.SizeStyle].reduce(function(R,T){return R[T.keyName]=T,R},{}),M=function(R){function T(I,Y){!function j(R,T){if(!(R instanceof T))throw new TypeError("Cannot call a class as a function")}(this,T);var F=function H(R,T){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||"object"!=typeof T&&"function"!=typeof T?R:T}(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,I,Y));return F.quill.root.addEventListener("paste",F.onPaste.bind(F)),F.container=F.quill.addContainer("ql-clipboard"),F.container.setAttribute("contenteditable",!0),F.container.setAttribute("tabindex",-1),F.matchers=[],K.concat(F.options.matchers).forEach(function(et){var ot=u(et,2),dt=ot[1];!Y.matchVisual&&dt===Ct||F.addMatcher(ot[0],dt)}),F}return function X(R,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function, not "+typeof T);R.prototype=Object.create(T&&T.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(R,T):R.__proto__=T)}(T,R),y(T,[{key:"addMatcher",value:function(Y,F){this.matchers.push([Y,F])}},{key:"convert",value:function(Y){if("string"==typeof Y)return this.container.innerHTML=Y.replace(/\>\r?\n +\</g,"><"),this.convert();var F=this.quill.getFormat(this.quill.selection.savedRange.index);if(F[S.default.blotName]){var et=this.container.innerText;return this.container.innerHTML="",(new r.default).insert(et,N({},S.default.blotName,F[S.default.blotName]))}var ot=this.prepareMatching(),ut=u(ot,2),gt=W(this.container,ut[0],ut[1]);return V(gt,"\n")&&null==gt.ops[gt.ops.length-1].attributes&&(gt=gt.compose((new r.default).retain(gt.length()-1).delete(1))),Z.log("convert",this.container.innerHTML,gt),this.container.innerHTML="",gt}},{key:"dangerouslyPasteHTML",value:function(Y,F){var et=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;if("string"==typeof Y)this.quill.setContents(this.convert(Y),F),this.quill.setSelection(0,f.default.sources.SILENT);else{var ot=this.convert(F);this.quill.updateContents((new r.default).retain(Y).concat(ot),et),this.quill.setSelection(Y+ot.length(),f.default.sources.SILENT)}}},{key:"onPaste",value:function(Y){var F=this;if(!Y.defaultPrevented&&this.quill.isEnabled()){var et=this.quill.getSelection(),ot=(new r.default).retain(et.index),ut=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(f.default.sources.SILENT),setTimeout(function(){ot=ot.concat(F.convert()).delete(et.length),F.quill.updateContents(ot,f.default.sources.USER),F.quill.setSelection(ot.length()-et.length,f.default.sources.SILENT),F.quill.scrollingContainer.scrollTop=ut,F.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Y=this,F=[],et=[];return this.matchers.forEach(function(ot){var ut=u(ot,2),dt=ut[0],vt=ut[1];switch(dt){case Node.TEXT_NODE:et.push(vt);break;case Node.ELEMENT_NODE:F.push(vt);break;default:[].forEach.call(Y.container.querySelectorAll(dt),function(gt){gt[nt]=gt[nt]||[],gt[nt].push(vt)})}}),[F,et]}}]),T}(m.default);function U(R,T,I){return"object"===(void 0===T?"undefined":O(T))?Object.keys(T).reduce(function(Y,F){return U(Y,F,T[F])},R):R.reduce(function(Y,F){return F.attributes&&F.attributes[T]?Y.push(F):Y.insert(F.insert,(0,v.default)({},N({},T,I),F.attributes))},new r.default)}function G(R){if(R.nodeType!==Node.ELEMENT_NODE)return{};var T="__ql-computed-style";return R[T]||(R[T]=window.getComputedStyle(R))}function V(R,T){for(var I="",Y=R.ops.length-1;Y>=0&&I.length<T.length;--Y){var F=R.ops[Y];if("string"!=typeof F.insert)break;I=F.insert+I}return I.slice(-1*T.length)===T}function D(R){if(0===R.childNodes.length)return!1;var T=G(R);return["block","list-item"].indexOf(T.display)>-1}function W(R,T,I){return R.nodeType===R.TEXT_NODE?I.reduce(function(Y,F){return F(R,Y)},new r.default):R.nodeType===R.ELEMENT_NODE?[].reduce.call(R.childNodes||[],function(Y,F){var et=W(F,T,I);return F.nodeType===R.ELEMENT_NODE&&(et=T.reduce(function(ot,ut){return ut(F,ot)},et),et=(F[nt]||[]).reduce(function(ot,ut){return ut(F,ot)},et)),Y.concat(et)},new r.default):new r.default}function tt(R,T,I){return U(I,R,!0)}function it(R,T){var I=i.default.Attributor.Attribute.keys(R),Y=i.default.Attributor.Class.keys(R),F=i.default.Attributor.Style.keys(R),et={};return I.concat(Y).concat(F).forEach(function(ot){var ut=i.default.query(ot,i.default.Scope.ATTRIBUTE);null!=ut&&(et[ut.attrName]=ut.value(R),et[ut.attrName])||(null!=(ut=L[ot])&&(ut.attrName===ot||ut.keyName===ot)&&(et[ut.attrName]=ut.value(R)||void 0),null!=(ut=q[ot])&&(ut.attrName===ot||ut.keyName===ot)&&(et[(ut=q[ot]).attrName]=ut.value(R)||void 0))}),Object.keys(et).length>0&&(T=U(T,et)),T}function st(R,T){var I=i.default.query(R);if(null==I)return T;if(I.prototype instanceof i.default.Embed){var Y={},F=I.value(R);null!=F&&(Y[I.blotName]=F,T=(new r.default).insert(Y,I.formats(R)))}else"function"==typeof I.formats&&(T=U(T,I.blotName,I.formats(R)));return T}function At(R,T){return V(T,"\n")||(D(R)||T.length()>0&&R.nextSibling&&D(R.nextSibling))&&T.insert("\n"),T}function Ct(R,T){if(D(R)&&null!=R.nextElementSibling&&!V(T,"\n\n")){var I=R.offsetHeight+parseFloat(G(R).marginTop)+parseFloat(G(R).marginBottom);R.nextElementSibling.offsetTop>R.offsetTop+1.5*I&&T.insert("\n")}return T}function J(R,T){var I=R.data;if("O:P"===R.parentNode.tagName)return T.insert(I.trim());if(0===I.trim().length&&R.parentNode.classList.contains("ql-clipboard"))return T;if(!G(R.parentNode).whiteSpace.startsWith("pre")){var Y=function(et,ot){return(ot=ot.replace(/[^\u00a0]/g,"")).length<1&&et?" ":ot};I=(I=I.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,Y.bind(Y,!0)),(null==R.previousSibling&&D(R.parentNode)||null!=R.previousSibling&&D(R.previousSibling))&&(I=I.replace(/^\s+/,Y.bind(Y,!1))),(null==R.nextSibling&&D(R.parentNode)||null!=R.nextSibling&&D(R.nextSibling))&&(I=I.replace(/\s+$/,Y.bind(Y,!1)))}return T.insert(I)}M.DEFAULTS={matchers:[],matchVisual:!0},p.default=M,p.matchAttributor=it,p.matchBlot=st,p.matchNewline=At,p.matchSpacing=Ct,p.matchText=J},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function s(f,h){for(var l=0;l<h.length;l++){var c=h[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(f,c.key,c)}}return function(f,h,l){return h&&s(f.prototype,h),l&&s(f,l),f}}(),u=function s(f,h,l){null===f&&(f=Function.prototype);var c=Object.getOwnPropertyDescriptor(f,h);if(void 0===c){var m=Object.getPrototypeOf(f);return null===m?void 0:s(m,h,l)}if("value"in c)return c.value;var a=c.get;return void 0===a?void 0:a.call(l)};function o(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}function r(s,f){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?s:f}var i=function(s){function f(){return o(this,f),r(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return function n(s,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(s,f):s.__proto__=f)}(f,s),O(f,[{key:"optimize",value:function(l){u(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"optimize",this).call(this,l),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return u(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),f}(function v(s){return s&&s.__esModule?s:{default:s}}(d(6)).default);i.blotName="bold",i.tagName=["STRONG","B"],p.default=i},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.addControls=p.default=void 0;var O=function(w,N){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return function _(w,N){var j=[],H=!0,X=!1,Z=void 0;try{for(var K,nt=w[Symbol.iterator]();!(H=(K=nt.next()).done)&&(j.push(K.value),!N||j.length!==N);H=!0);}catch(L){X=!0,Z=L}finally{try{!H&&nt.return&&nt.return()}finally{if(X)throw Z}}return j}(w,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=function(){function _(w,N){for(var j=0;j<N.length;j++){var H=N[j];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(w,H.key,H)}}return function(w,N,j){return N&&_(w.prototype,N),j&&_(w,j),w}}(),g=l(d(2)),o=l(d(0)),n=l(d(5)),s=l(d(10)),h=l(d(9));function l(_){return _&&_.__esModule?_:{default:_}}function a(_,w){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!=typeof w&&"function"!=typeof w?_:w}var x=(0,s.default)("quill:toolbar"),S=function(_){function w(N,j){!function m(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}(this,w);var Z,H=a(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,N,j));if(Array.isArray(H.options.container)){var X=document.createElement("div");b(X,H.options.container),N.container.parentNode.insertBefore(X,N.container),H.container=X}else H.container="string"==typeof H.options.container?document.querySelector(H.options.container):H.options.container;return H.container instanceof HTMLElement?(H.container.classList.add("ql-toolbar"),H.controls=[],H.handlers={},Object.keys(H.options.handlers).forEach(function(nt){H.addHandler(nt,H.options.handlers[nt])}),[].forEach.call(H.container.querySelectorAll("button, select"),function(nt){H.attach(nt)}),H.quill.on(n.default.events.EDITOR_CHANGE,function(nt,K){nt===n.default.events.SELECTION_CHANGE&&H.update(K)}),H.quill.on(n.default.events.SCROLL_OPTIMIZE,function(){var nt=H.quill.selection.getRange(),K=O(nt,1);H.update(K[0])}),H):(Z=x.error("Container required for toolbar",H.options),a(H,Z))}return function E(_,w){if("function"!=typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(_,w):_.__proto__=w)}(w,_),u(w,[{key:"addHandler",value:function(j,H){this.handlers[j]=H}},{key:"attach",value:function(j){var H=this,X=[].find.call(j.classList,function(nt){return 0===nt.indexOf("ql-")});if(X){if(X=X.slice(3),"BUTTON"===j.tagName&&j.setAttribute("type","button"),null==this.handlers[X]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[X])return void x.warn("ignoring attaching to disabled format",X,j);if(null==o.default.query(X))return void x.warn("ignoring attaching to nonexistent format",X,j)}j.addEventListener("SELECT"===j.tagName?"change":"click",function(nt){var K=void 0;if("SELECT"===j.tagName){if(j.selectedIndex<0)return;var L=j.options[j.selectedIndex];K=!L.hasAttribute("selected")&&(L.value||!1)}else K=!j.classList.contains("ql-active")&&(j.value||!j.hasAttribute("value")),nt.preventDefault();H.quill.focus();var q=H.quill.selection.getRange(),U=O(q,1)[0];if(null!=H.handlers[X])H.handlers[X].call(H,K);else if(o.default.query(X).prototype instanceof o.default.Embed){if(!(K=prompt("Enter "+X)))return;H.quill.updateContents((new g.default).retain(U.index).delete(U.length).insert(function c(_,w,N){return w in _?Object.defineProperty(_,w,{value:N,enumerable:!0,configurable:!0,writable:!0}):_[w]=N,_}({},X,K)),n.default.sources.USER)}else H.quill.format(X,K,n.default.sources.USER);H.update(U)}),this.controls.push([X,j])}}},{key:"update",value:function(j){var H=null==j?{}:this.quill.getFormat(j);this.controls.forEach(function(X){var Z=O(X,2),nt=Z[0],K=Z[1];if("SELECT"===K.tagName){var L=void 0;if(null==j)L=null;else if(null==H[nt])L=K.querySelector("option[selected]");else if(!Array.isArray(H[nt])){var q=H[nt];"string"==typeof q&&(q=q.replace(/\"/g,'\\"')),L=K.querySelector('option[value="'+q+'"]')}null==L?(K.value="",K.selectedIndex=-1):L.selected=!0}else if(null==j)K.classList.remove("ql-active");else if(K.hasAttribute("value")){var M=H[nt]===K.getAttribute("value")||null!=H[nt]&&H[nt].toString()===K.getAttribute("value")||null==H[nt]&&!K.getAttribute("value");K.classList.toggle("ql-active",M)}else K.classList.toggle("ql-active",null!=H[nt])})}}]),w}(h.default);function A(_,w,N){var j=document.createElement("button");j.setAttribute("type","button"),j.classList.add("ql-"+w),null!=N&&(j.value=N),_.appendChild(j)}function b(_,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(N){var j=document.createElement("span");j.classList.add("ql-formats"),N.forEach(function(H){if("string"==typeof H)A(j,H);else{var X=Object.keys(H)[0],Z=H[X];Array.isArray(Z)?function k(_,w,N){var j=document.createElement("select");j.classList.add("ql-"+w),N.forEach(function(H){var X=document.createElement("option");!1!==H?X.setAttribute("value",H):X.setAttribute("selected","selected"),j.appendChild(X)}),_.appendChild(j)}(j,X,Z):A(j,X,Z)}}),_.appendChild(j)})}S.DEFAULTS={},S.DEFAULTS={container:null,handlers:{clean:function(){var w=this,N=this.quill.getSelection();if(null!=N)if(0==N.length){var j=this.quill.getFormat();Object.keys(j).forEach(function(H){null!=o.default.query(H,o.default.Scope.INLINE)&&w.quill.format(H,!1)})}else this.quill.removeFormat(N,n.default.sources.USER)},direction:function(w){var N=this.quill.getFormat().align;"rtl"===w&&null==N?this.quill.format("align","right",n.default.sources.USER):!w&&"right"===N&&this.quill.format("align",!1,n.default.sources.USER),this.quill.format("direction",w,n.default.sources.USER)},indent:function(w){var N=this.quill.getSelection(),j=this.quill.getFormat(N),H=parseInt(j.indent||0);if("+1"===w||"-1"===w){var X="+1"===w?1:-1;"rtl"===j.direction&&(X*=-1),this.quill.format("indent",H+X,n.default.sources.USER)}},link:function(w){!0===w&&(w=prompt("Enter link URL:")),this.quill.format("link",w,n.default.sources.USER)},list:function(w){var N=this.quill.getSelection(),j=this.quill.getFormat(N);this.quill.format("list","check"===w?"checked"!==j.list&&"unchecked"!==j.list&&"unchecked":w,n.default.sources.USER)}}},p.default=S,p.addControls=b},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function s(f,h){for(var l=0;l<h.length;l++){var c=h[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(f,c.key,c)}}return function(f,h,l){return h&&s(f.prototype,h),l&&s(f,l),f}}(),u=function s(f,h,l){null===f&&(f=Function.prototype);var c=Object.getOwnPropertyDescriptor(f,h);if(void 0===c){var m=Object.getPrototypeOf(f);return null===m?void 0:s(m,h,l)}if("value"in c)return c.value;var a=c.get;return void 0===a?void 0:a.call(l)},i=function(s){function f(h,l){!function o(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}(this,f);var c=function r(s,f){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?s:f}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,h));return c.label.innerHTML=l,c.container.classList.add("ql-color-picker"),[].slice.call(c.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(m){m.classList.add("ql-primary")}),c}return function n(s,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(s,f):s.__proto__=f)}(f,s),O(f,[{key:"buildItem",value:function(l){var c=u(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"buildItem",this).call(this,l);return c.style.backgroundColor=l.getAttribute("value")||"",c}},{key:"selectItem",value:function(l,c){u(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"selectItem",this).call(this,l,c);var m=this.label.querySelector(".ql-color-label"),a=l&&l.getAttribute("data-value")||"";m&&("line"===m.tagName?m.style.stroke=a:m.style.fill=a)}}]),f}(function v(s){return s&&s.__esModule?s:{default:s}}(d(28)).default);p.default=i},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function s(f,h){for(var l=0;l<h.length;l++){var c=h[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(f,c.key,c)}}return function(f,h,l){return h&&s(f.prototype,h),l&&s(f,l),f}}(),u=function s(f,h,l){null===f&&(f=Function.prototype);var c=Object.getOwnPropertyDescriptor(f,h);if(void 0===c){var m=Object.getPrototypeOf(f);return null===m?void 0:s(m,h,l)}if("value"in c)return c.value;var a=c.get;return void 0===a?void 0:a.call(l)},i=function(s){function f(h,l){!function o(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}(this,f);var c=function r(s,f){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?s:f}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,h));return c.container.classList.add("ql-icon-picker"),[].forEach.call(c.container.querySelectorAll(".ql-picker-item"),function(m){m.innerHTML=l[m.getAttribute("data-value")||""]}),c.defaultItem=c.container.querySelector(".ql-selected"),c.selectItem(c.defaultItem),c}return function n(s,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(s,f):s.__proto__=f)}(f,s),O(f,[{key:"selectItem",value:function(l,c){u(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"selectItem",this).call(this,l,c),this.label.innerHTML=(l=l||this.defaultItem).innerHTML}}]),f}(function v(s){return s&&s.__esModule?s:{default:s}}(d(28)).default);p.default=i},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function g(v,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(v,n.key,n)}}return function(v,o,r){return o&&g(v.prototype,o),r&&g(v,r),v}}(),y=function(){function g(v,o){var r=this;(function u(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")})(this,g),this.quill=v,this.boundsContainer=o||document.body,this.root=v.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"}),this.hide()}return O(g,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(o){var r=o.left+o.width/2-this.root.offsetWidth/2,n=o.bottom+this.quill.root.scrollTop;this.root.style.left=r+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var i=this.boundsContainer.getBoundingClientRect(),s=this.root.getBoundingClientRect(),f=0;return s.right>i.right&&(this.root.style.left=r+(f=i.right-s.right)+"px"),s.left<i.left&&(this.root.style.left=r+(f=i.left-s.left)+"px"),s.bottom>i.bottom&&(this.root.style.top=n-(o.bottom-o.top+(s.bottom-s.top))+"px",this.root.classList.add("ql-flip")),f}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),g}();p.default=y},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var u=function k(_,w,N){null===_&&(_=Function.prototype);var j=Object.getOwnPropertyDescriptor(_,w);if(void 0===j){var H=Object.getPrototypeOf(_);return null===H?void 0:k(H,w,N)}if("value"in j)return j.value;var X=j.get;return void 0===X?void 0:X.call(N)},y=function(){function k(_,w){for(var N=0;N<w.length;N++){var j=w[N];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(_,j.key,j)}}return function(_,w,N){return w&&k(_.prototype,w),N&&k(_,N),_}}(),v=m(d(3)),r=m(d(8)),n=d(43),i=m(n),f=m(d(27)),h=d(15),c=m(d(41));function m(k){return k&&k.__esModule?k:{default:k}}function a(k,_){if(!(k instanceof _))throw new TypeError("Cannot call a class as a function")}function E(k,_){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!_||"object"!=typeof _&&"function"!=typeof _?k:_}function x(k,_){if("function"!=typeof _&&null!==_)throw new TypeError("Super expression must either be null or a function, not "+typeof _);k.prototype=Object.create(_&&_.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(k,_):k.__proto__=_)}var S=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(k){function _(w,N){a(this,_),null!=N.modules.toolbar&&null==N.modules.toolbar.container&&(N.modules.toolbar.container=S);var j=E(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,w,N));return j.quill.container.classList.add("ql-snow"),j}return x(_,k),y(_,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),c.default),this.tooltip=new b(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(j,H){N.handlers.link.call(N,!H.format.link)})}}]),_}(i.default);A.DEFAULTS=(0,v.default)(!0,{},i.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(_){if(_){var w=this.quill.getSelection();if(null==w||0==w.length)return;var N=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(N)&&0!==N.indexOf("mailto:")&&(N="mailto:"+N),this.quill.theme.tooltip.edit("link",N)}else this.quill.format("link",!1)}}}}});var b=function(k){function _(w,N){a(this,_);var j=E(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,w,N));return j.preview=j.root.querySelector("a.ql-preview"),j}return x(_,k),y(_,[{key:"listen",value:function(){var N=this;u(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(j){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),j.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(j){if(null!=N.linkRange){var H=N.linkRange;N.restoreFocus(),N.quill.formatText(H,"link",!1,r.default.sources.USER),delete N.linkRange}j.preventDefault(),N.hide()}),this.quill.on(r.default.events.SELECTION_CHANGE,function(j,H,X){if(null!=j){if(0===j.length&&X===r.default.sources.USER){var nt=function(_,w){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return function k(_,w){var N=[],j=!0,H=!1,X=void 0;try{for(var nt,Z=_[Symbol.iterator]();!(j=(nt=Z.next()).done)&&(N.push(nt.value),!w||N.length!==w);j=!0);}catch(K){H=!0,X=K}finally{try{!j&&Z.return&&Z.return()}finally{if(H)throw X}}return N}(_,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(N.quill.scroll.descendant(f.default,j.index),2),K=nt[0];if(null!=K){N.linkRange=new h.Range(j.index-nt[1],K.length());var q=f.default.formats(K.domNode);return N.preview.textContent=q,N.preview.setAttribute("href",q),N.show(),void N.position(N.quill.getBounds(N.linkRange))}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){u(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),_}(n.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),p.default=A},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var u=F(d(29)),y=d(36),g=d(38),v=d(64),r=F(d(65)),i=F(d(66)),s=d(67),f=F(s),h=d(37),l=d(26),c=d(39),m=d(40),E=F(d(56)),S=F(d(68)),b=F(d(27)),_=F(d(69)),N=F(d(70)),H=F(d(71)),Z=F(d(72)),K=F(d(73)),L=d(13),q=F(L),U=F(d(74)),V=F(d(75)),W=F(d(57)),it=F(d(41)),pt=F(d(28)),_t=F(d(59)),Ct=F(d(60)),J=F(d(61)),T=F(d(108)),Y=F(d(62));function F(et){return et&&et.__esModule?et:{default:et}}u.default.register({"attributors/attribute/direction":g.DirectionAttribute,"attributors/class/align":y.AlignClass,"attributors/class/background":h.BackgroundClass,"attributors/class/color":l.ColorClass,"attributors/class/direction":g.DirectionClass,"attributors/class/font":c.FontClass,"attributors/class/size":m.SizeClass,"attributors/style/align":y.AlignStyle,"attributors/style/background":h.BackgroundStyle,"attributors/style/color":l.ColorStyle,"attributors/style/direction":g.DirectionStyle,"attributors/style/font":c.FontStyle,"attributors/style/size":m.SizeStyle},!0),u.default.register({"formats/align":y.AlignClass,"formats/direction":g.DirectionClass,"formats/indent":v.IndentClass,"formats/background":h.BackgroundStyle,"formats/color":l.ColorStyle,"formats/font":c.FontClass,"formats/size":m.SizeClass,"formats/blockquote":r.default,"formats/code-block":q.default,"formats/header":i.default,"formats/list":f.default,"formats/bold":E.default,"formats/code":L.Code,"formats/italic":S.default,"formats/link":b.default,"formats/script":_.default,"formats/strike":N.default,"formats/underline":H.default,"formats/image":Z.default,"formats/video":K.default,"formats/list/item":s.ListItem,"modules/formula":U.default,"modules/syntax":V.default,"modules/toolbar":W.default,"themes/bubble":T.default,"themes/snow":Y.default,"ui/icons":it.default,"ui/picker":pt.default,"ui/icon-picker":Ct.default,"ui/color-picker":_t.default,"ui/tooltip":J.default},!0),p.default=u.default},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.IndentClass=void 0;var O=function(){function f(h,l){for(var c=0;c<l.length;c++){var m=l[c];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,l,c){return l&&f(h.prototype,l),c&&f(h,c),h}}(),u=function f(h,l,c){null===h&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,l);if(void 0===m){var a=Object.getPrototypeOf(h);return null===a?void 0:f(a,l,c)}if("value"in m)return m.value;var E=m.get;return void 0===E?void 0:E.call(c)},g=function v(f){return f&&f.__esModule?f:{default:f}}(d(0));function o(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function r(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?f:h}var i=function(f){function h(){return o(this,h),r(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return function n(f,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}(h,f),O(h,[{key:"add",value:function(c,m){if("+1"===m||"-1"===m){var a=this.value(c)||0;m="+1"===m?a+1:a-1}return 0===m?(this.remove(c),!0):u(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"add",this).call(this,c,m)}},{key:"canAdd",value:function(c,m){return u(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"canAdd",this).call(this,c,m)||u(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"canAdd",this).call(this,c,parseInt(m))}},{key:"value",value:function(c){return parseInt(u(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"value",this).call(this,c))||void 0}}]),h}(g.default.Attributor.Class),s=new i("indent","ql-indent",{scope:g.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});p.IndentClass=s},function(B,p,d){"use strict";function g(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function v(n,i){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?n:i}Object.defineProperty(p,"__esModule",{value:!0});var r=function(n){function i(){return g(this,i),v(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function o(n,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=i)}(i,n),i}(function y(n){return n&&n.__esModule?n:{default:n}}(d(4)).default);r.blotName="blockquote",r.tagName="blockquote",p.default=r},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function i(s,f){for(var h=0;h<f.length;h++){var l=f[h];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,f,h){return f&&i(s.prototype,f),h&&i(s,h),s}}();function v(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function o(i,s){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!=typeof s&&"function"!=typeof s?i:s}var n=function(i){function s(){return v(this,s),o(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return function r(i,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(i,s):i.__proto__=s)}(s,i),O(s,null,[{key:"formats",value:function(h){return this.tagName.indexOf(h.tagName)+1}}]),s}(function g(i){return i&&i.__esModule?i:{default:i}}(d(4)).default);n.blotName="header",n.tagName=["H1","H2","H3","H4","H5","H6"],p.default=n},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.ListItem=void 0;var O=function(){function a(E,x){for(var S=0;S<x.length;S++){var A=x[S];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}return function(E,x,S){return x&&a(E.prototype,x),S&&a(E,S),E}}(),u=function a(E,x,S){null===E&&(E=Function.prototype);var A=Object.getOwnPropertyDescriptor(E,x);if(void 0===A){var b=Object.getPrototypeOf(E);return null===b?void 0:a(b,x,S)}if("value"in A)return A.value;var k=A.get;return void 0===k?void 0:k.call(S)},g=i(d(0)),o=i(d(4)),n=i(d(25));function i(a){return a&&a.__esModule?a:{default:a}}function f(a,E){if(!(a instanceof E))throw new TypeError("Cannot call a class as a function")}function h(a,E){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!E||"object"!=typeof E&&"function"!=typeof E?a:E}function l(a,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function, not "+typeof E);a.prototype=Object.create(E&&E.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(a,E):a.__proto__=E)}var c=function(a){function E(){return f(this,E),h(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return l(E,a),O(E,[{key:"format",value:function(S,A){S!==m.blotName||A?u(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,S,A):this.replaceWith(g.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():u(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(S,A){return this.parent.isolate(this.offset(this.parent),this.length()),S===this.parent.statics.blotName?(this.parent.replaceWith(S,A),this):(this.parent.unwrap(),u(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,S,A))}}],[{key:"formats",value:function(S){return S.tagName===this.tagName?void 0:u(E.__proto__||Object.getPrototypeOf(E),"formats",this).call(this,S)}}]),E}(o.default);c.blotName="list-item",c.tagName="LI";var m=function(a){function E(x){f(this,E);var S=h(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,x)),A=function(k){if(k.target.parentNode===x){var _=S.statics.formats(x),w=g.default.find(k.target);"checked"===_?w.format("list","unchecked"):"unchecked"===_&&w.format("list","checked")}};return x.addEventListener("touchstart",A),x.addEventListener("mousedown",A),S}return l(E,a),O(E,null,[{key:"create",value:function(S){var A="ordered"===S?"OL":"UL",b=u(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,A);return("checked"===S||"unchecked"===S)&&b.setAttribute("data-checked","checked"===S),b}},{key:"formats",value:function(S){return"OL"===S.tagName?"ordered":"UL"===S.tagName?S.hasAttribute("data-checked")?"true"===S.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),O(E,[{key:"format",value:function(S,A){this.children.length>0&&this.children.tail.format(S,A)}},{key:"formats",value:function(){return function s(a,E,x){return E in a?Object.defineProperty(a,E,{value:x,enumerable:!0,configurable:!0,writable:!0}):a[E]=x,a}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,A){if(S instanceof c)u(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,S,A);else{var b=null==A?this.length():A.offset(this),k=this.split(b);k.parent.insertBefore(S,k)}}},{key:"optimize",value:function(S){u(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,S);var A=this.next;null!=A&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(S){if(S.statics.blotName!==this.statics.blotName){var A=g.default.create(this.statics.defaultChild);S.moveChildren(A),this.appendChild(A)}u(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replace",this).call(this,S)}}]),E}(n.default);m.blotName="list",m.scope=g.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[c],p.ListItem=c,p.default=m},function(B,p,d){"use strict";function g(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function v(n,i){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?n:i}Object.defineProperty(p,"__esModule",{value:!0});var r=function(n){function i(){return g(this,i),v(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function o(n,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=i)}(i,n),i}(function y(n){return n&&n.__esModule?n:{default:n}}(d(56)).default);r.blotName="italic",r.tagName=["EM","I"],p.default=r},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function s(f,h){for(var l=0;l<h.length;l++){var c=h[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(f,c.key,c)}}return function(f,h,l){return h&&s(f.prototype,h),l&&s(f,l),f}}(),u=function s(f,h,l){null===f&&(f=Function.prototype);var c=Object.getOwnPropertyDescriptor(f,h);if(void 0===c){var m=Object.getPrototypeOf(f);return null===m?void 0:s(m,h,l)}if("value"in c)return c.value;var a=c.get;return void 0===a?void 0:a.call(l)};function o(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}function r(s,f){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?s:f}var i=function(s){function f(){return o(this,f),r(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return function n(s,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(s,f):s.__proto__=f)}(f,s),O(f,null,[{key:"create",value:function(l){return"super"===l?document.createElement("sup"):"sub"===l?document.createElement("sub"):u(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,l)}},{key:"formats",value:function(l){return"SUB"===l.tagName?"sub":"SUP"===l.tagName?"super":void 0}}]),f}(function v(s){return s&&s.__esModule?s:{default:s}}(d(6)).default);i.blotName="script",i.tagName=["SUB","SUP"],p.default=i},function(B,p,d){"use strict";function g(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function v(n,i){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?n:i}Object.defineProperty(p,"__esModule",{value:!0});var r=function(n){function i(){return g(this,i),v(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function o(n,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=i)}(i,n),i}(function y(n){return n&&n.__esModule?n:{default:n}}(d(6)).default);r.blotName="strike",r.tagName="S",p.default=r},function(B,p,d){"use strict";function g(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function v(n,i){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?n:i}Object.defineProperty(p,"__esModule",{value:!0});var r=function(n){function i(){return g(this,i),v(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function o(n,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=i)}(i,n),i}(function y(n){return n&&n.__esModule?n:{default:n}}(d(6)).default);r.blotName="underline",r.tagName="U",p.default=r},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function h(l,c){for(var m=0;m<c.length;m++){var a=c[m];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}}return function(l,c,m){return c&&h(l.prototype,c),m&&h(l,m),l}}(),u=function h(l,c,m){null===l&&(l=Function.prototype);var a=Object.getOwnPropertyDescriptor(l,c);if(void 0===a){var E=Object.getPrototypeOf(l);return null===E?void 0:h(E,c,m)}if("value"in a)return a.value;var x=a.get;return void 0===x?void 0:x.call(m)},g=function o(h){return h&&h.__esModule?h:{default:h}}(d(0)),v=d(27);function r(h,l){if(!(h instanceof l))throw new TypeError("Cannot call a class as a function")}function n(h,l){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?h:l}var s=["alt","height","width"],f=function(h){function l(){return r(this,l),n(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function i(h,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);h.prototype=Object.create(l&&l.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(h,l):h.__proto__=l)}(l,h),O(l,[{key:"format",value:function(m,a){s.indexOf(m)>-1?a?this.domNode.setAttribute(m,a):this.domNode.removeAttribute(m):u(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"format",this).call(this,m,a)}}],[{key:"create",value:function(m){var a=u(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,m);return"string"==typeof m&&a.setAttribute("src",this.sanitize(m)),a}},{key:"formats",value:function(m){return s.reduce(function(a,E){return m.hasAttribute(E)&&(a[E]=m.getAttribute(E)),a},{})}},{key:"match",value:function(m){return/\.(jpe?g|gif|png)$/.test(m)||/^data:image\/.+;base64/.test(m)}},{key:"sanitize",value:function(m){return(0,v.sanitize)(m,["http","https","data"])?m:"//:0"}},{key:"value",value:function(m){return m.getAttribute("src")}}]),l}(g.default.Embed);f.blotName="image",f.tagName="IMG",p.default=f},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function h(l,c){for(var m=0;m<c.length;m++){var a=c[m];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}}return function(l,c,m){return c&&h(l.prototype,c),m&&h(l,m),l}}(),u=function h(l,c,m){null===l&&(l=Function.prototype);var a=Object.getOwnPropertyDescriptor(l,c);if(void 0===a){var E=Object.getPrototypeOf(l);return null===E?void 0:h(E,c,m)}if("value"in a)return a.value;var x=a.get;return void 0===x?void 0:x.call(m)},y=d(4),v=function o(h){return h&&h.__esModule?h:{default:h}}(d(27));function r(h,l){if(!(h instanceof l))throw new TypeError("Cannot call a class as a function")}function n(h,l){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?h:l}var s=["height","width"],f=function(h){function l(){return r(this,l),n(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function i(h,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);h.prototype=Object.create(l&&l.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(h,l):h.__proto__=l)}(l,h),O(l,[{key:"format",value:function(m,a){s.indexOf(m)>-1?a?this.domNode.setAttribute(m,a):this.domNode.removeAttribute(m):u(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"format",this).call(this,m,a)}}],[{key:"create",value:function(m){var a=u(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,m);return a.setAttribute("frameborder","0"),a.setAttribute("allowfullscreen",!0),a.setAttribute("src",this.sanitize(m)),a}},{key:"formats",value:function(m){return s.reduce(function(a,E){return m.hasAttribute(E)&&(a[E]=m.getAttribute(E)),a},{})}},{key:"sanitize",value:function(m){return v.default.sanitize(m)}},{key:"value",value:function(m){return m.getAttribute("src")}}]),l}(y.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",p.default=f},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.FormulaBlot=void 0;var O=function(){function m(a,E){for(var x=0;x<E.length;x++){var S=E[x];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(a,S.key,S)}}return function(a,E,x){return E&&m(a.prototype,E),x&&m(a,x),a}}(),u=function m(a,E,x){null===a&&(a=Function.prototype);var S=Object.getOwnPropertyDescriptor(a,E);if(void 0===S){var A=Object.getPrototypeOf(a);return null===A?void 0:m(A,E,x)}if("value"in S)return S.value;var b=S.get;return void 0===b?void 0:b.call(x)},g=i(d(35)),o=i(d(5)),n=i(d(9));function i(m){return m&&m.__esModule?m:{default:m}}function s(m,a){if(!(m instanceof a))throw new TypeError("Cannot call a class as a function")}function f(m,a){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?m:a}function h(m,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);m.prototype=Object.create(a&&a.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(m,a):m.__proto__=a)}var l=function(m){function a(){return s(this,a),f(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return h(a,m),O(a,null,[{key:"create",value:function(x){var S=u(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,x);return"string"==typeof x&&(window.katex.render(x,S,{throwOnError:!1,errorColor:"#f00"}),S.setAttribute("data-value",x)),S}},{key:"value",value:function(x){return x.getAttribute("data-value")}}]),a}(g.default);l.blotName="formula",l.className="ql-formula",l.tagName="SPAN";var c=function(m){function a(){s(this,a);var E=f(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return E}return h(a,m),O(a,null,[{key:"register",value:function(){o.default.register(l,!0)}}]),a}(n.default);p.FormulaBlot=l,p.default=c},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.CodeToken=p.CodeBlock=void 0;var O=function(){function x(S,A){for(var b=0;b<A.length;b++){var k=A[b];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(S,k.key,k)}}return function(S,A,b){return A&&x(S.prototype,A),b&&x(S,b),S}}(),u=function x(S,A,b){null===S&&(S=Function.prototype);var k=Object.getOwnPropertyDescriptor(S,A);if(void 0===k){var _=Object.getPrototypeOf(S);return null===_?void 0:x(_,A,b)}if("value"in k)return k.value;var w=k.get;return void 0===w?void 0:w.call(b)},g=f(d(0)),o=f(d(5)),n=f(d(9));function f(x){return x&&x.__esModule?x:{default:x}}function h(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}function l(x,S){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!S||"object"!=typeof S&&"function"!=typeof S?x:S}function c(x,S){if("function"!=typeof S&&null!==S)throw new TypeError("Super expression must either be null or a function, not "+typeof S);x.prototype=Object.create(S&&S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(x,S):x.__proto__=S)}var m=function(x){function S(){return h(this,S),l(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return c(S,x),O(S,[{key:"replaceWith",value:function(b){this.domNode.textContent=this.domNode.textContent,this.attach(),u(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,b)}},{key:"highlight",value:function(b){var k=this.domNode.textContent;this.cachedText!==k&&((k.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=b(k),this.domNode.normalize(),this.attach()),this.cachedText=k)}}]),S}(f(d(13)).default);m.className="ql-syntax";var a=new g.default.Attributor.Class("token","hljs",{scope:g.default.Scope.INLINE}),E=function(x){function S(A,b){h(this,S);var k=l(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,A,b));if("function"!=typeof k.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var _=null;return k.quill.on(o.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(_),_=setTimeout(function(){k.highlight(),_=null},k.options.interval)}),k.highlight(),k}return c(S,x),O(S,null,[{key:"register",value:function(){o.default.register(a,!0),o.default.register(m,!0)}}]),O(S,[{key:"highlight",value:function(){var b=this;if(!this.quill.selection.composing){this.quill.update(o.default.sources.USER);var k=this.quill.getSelection();this.quill.scroll.descendants(m).forEach(function(_){_.highlight(b.options.highlight)}),this.quill.update(o.default.sources.SILENT),null!=k&&this.quill.setSelection(k,o.default.sources.SILENT)}}}]),S}(n.default);E.DEFAULTS={highlight:null==window.hljs?null:function(x){return window.hljs.highlightAuto(x).value},interval:1e3},p.CodeBlock=m,p.CodeToken=a,p.default=E},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(B,p){B.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(B,p){B.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(B,p){B.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(B,p){B.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BubbleTooltip=void 0;var O=function S(A,b,k){null===A&&(A=Function.prototype);var _=Object.getOwnPropertyDescriptor(A,b);if(void 0===_){var w=Object.getPrototypeOf(A);return null===w?void 0:S(w,b,k)}if("value"in _)return _.value;var N=_.get;return void 0===N?void 0:N.call(k)},u=function(){function S(A,b){for(var k=0;k<b.length;k++){var _=b[k];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(A,_.key,_)}}return function(A,b,k){return b&&S(A.prototype,b),k&&S(A,k),A}}(),g=h(d(3)),o=h(d(8)),r=d(43),n=h(r),i=d(15),f=h(d(41));function h(S){return S&&S.__esModule?S:{default:S}}function l(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function c(S,A){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!A||"object"!=typeof A&&"function"!=typeof A?S:A}function m(S,A){if("function"!=typeof A&&null!==A)throw new TypeError("Super expression must either be null or a function, not "+typeof A);S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(S,A):S.__proto__=A)}var a=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],E=function(S){function A(b,k){l(this,A),null!=k.modules.toolbar&&null==k.modules.toolbar.container&&(k.modules.toolbar.container=a);var _=c(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,b,k));return _.quill.container.classList.add("ql-bubble"),_}return m(A,S),u(A,[{key:"extendToolbar",value:function(k){this.tooltip=new x(this.quill,this.options.bounds),this.tooltip.root.appendChild(k.container),this.buildButtons([].slice.call(k.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(k.container.querySelectorAll("select")),f.default)}}]),A}(n.default);E.DEFAULTS=(0,g.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var x=function(S){function A(b,k){l(this,A);var _=c(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,b,k));return _.quill.on(o.default.events.EDITOR_CHANGE,function(w,N,j,H){if(w===o.default.events.SELECTION_CHANGE)if(null!=N&&N.length>0&&H===o.default.sources.USER){_.show(),_.root.style.left="0px",_.root.style.width="",_.root.style.width=_.root.offsetWidth+"px";var X=_.quill.getLines(N.index,N.length);if(1===X.length)_.position(_.quill.getBounds(N));else{var Z=X[X.length-1],nt=_.quill.getIndex(Z),K=Math.min(Z.length()-1,N.index+N.length-nt),L=_.quill.getBounds(new i.Range(nt,K));_.position(L)}}else document.activeElement!==_.textbox&&_.quill.hasFocus()&&_.hide()}),_}return m(A,S),u(A,[{key:"listen",value:function(){var k=this;O(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){k.root.classList.remove("ql-editing")}),this.quill.on(o.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!k.root.classList.contains("ql-hidden")){var _=k.quill.getSelection();null!=_&&k.position(k.quill.getBounds(_))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(k){var _=O(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,k),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",0===_)return _;w.style.marginLeft=-1*_-w.offsetWidth/2+"px"}}]),A}(r.BaseTooltip);x.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),p.BubbleTooltip=x,p.default=E},function(B,p,d){B.exports=d(63)}]).default}),function(B,p){"object"==typeof exports&&"object"==typeof module?module.exports=p():"function"==typeof define&&define.amd?define([],p):"object"==typeof exports?exports.Quill=p():B.Quill=p()}("undefined"!=typeof self?self:this,function(){return function(B){function p(O){if(d[O])return d[O].exports;var u=d[O]={i:O,l:!1,exports:{}};return B[O].call(u.exports,u,u.exports,p),u.l=!0,u.exports}var d={};return p.m=B,p.c=d,p.d=function(O,u,y){p.o(O,u)||Object.defineProperty(O,u,{configurable:!1,enumerable:!0,get:y})},p.n=function(O){var u=O&&O.__esModule?function(){return O.default}:function(){return O};return p.d(u,"a",u),u},p.o=function(O,u){return Object.prototype.hasOwnProperty.call(O,u)},p.p="",p(p.s=45)}([function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=d(17),u=d(18),y=d(19),g=d(48),v=d(49),o=d(50),r=d(51),n=d(52),i=d(11),s=d(29),f=d(30),h=d(28),l=d(1);p.default={Scope:l.Scope,create:l.create,find:l.find,query:l.query,register:l.register,Container:O.default,Format:u.default,Leaf:y.default,Embed:r.default,Scroll:g.default,Block:o.default,Inline:v.default,Text:n.default,Attributor:{Attribute:i.default,Class:s.default,Style:f.default,Store:h.default}}},function(B,p,d){"use strict";function y(h,l){var c;if(void 0===l&&(l=f.ANY),"string"==typeof h)c=s[h]||r[h];else if(h instanceof Text||h.nodeType===Node.TEXT_NODE)c=s.text;else if("number"==typeof h)h&f.LEVEL&f.BLOCK?c=s.block:h&f.LEVEL&f.INLINE&&(c=s.inline);else if(h instanceof HTMLElement){var m=(h.getAttribute("class")||"").split(/\s+/);for(var a in m)if(c=n[m[a]])break;c=c||i[h.tagName]}return null==c?null:l&f.LEVEL&c.scope&&l&f.TYPE&c.scope?c:null}var h,v=this&&this.__extends||(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var m in c)c.hasOwnProperty(m)&&(l[m]=c[m])},function(l,c){function m(){this.constructor=l}h(l,c),l.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)});Object.defineProperty(p,"__esModule",{value:!0});var o=function(h){function l(c){var m=this;return(m=h.call(this,c="[Parchment] "+c)||this).message=c,m.name=m.constructor.name,m}return v(l,h),l}(Error);p.ParchmentError=o;var f,r={},n={},i={},s={};p.DATA_KEY="__blot",function(h){h[h.TYPE=3]="TYPE",h[h.LEVEL=12]="LEVEL",h[h.ATTRIBUTE=13]="ATTRIBUTE",h[h.BLOT=14]="BLOT",h[h.INLINE=7]="INLINE",h[h.BLOCK=11]="BLOCK",h[h.BLOCK_BLOT=10]="BLOCK_BLOT",h[h.INLINE_BLOT=6]="INLINE_BLOT",h[h.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",h[h.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",h[h.ANY=15]="ANY"}(f=p.Scope||(p.Scope={})),p.create=function O(h,l){var c=y(h);if(null==c)throw new o("Unable to create "+h+" blot");return new c(h instanceof Node||h.nodeType===Node.TEXT_NODE?h:c.create(l),l)},p.find=function u(h,l){return void 0===l&&(l=!1),null==h?null:null!=h[p.DATA_KEY]?h[p.DATA_KEY].blot:l?u(h.parentNode,l):null},p.query=y,p.register=function g(){for(var h=[],l=0;l<arguments.length;l++)h[l]=arguments[l];if(h.length>1)return h.map(function(a){return g(a)});var c=h[0];if("string"!=typeof c.blotName&&"string"!=typeof c.attrName)throw new o("Invalid definition");if("abstract"===c.blotName)throw new o("Cannot register abstract class");if(s[c.blotName||c.attrName]=c,"string"==typeof c.keyName)r[c.keyName]=c;else if(null!=c.className&&(n[c.className]=c),null!=c.tagName){c.tagName=Array.isArray(c.tagName)?c.tagName.map(function(a){return a.toUpperCase()}):c.tagName.toUpperCase();var m=Array.isArray(c.tagName)?c.tagName:[c.tagName];m.forEach(function(a){null!=i[a]&&null!=c.className||(i[a]=c)})}return c}},function(B,p){"use strict";var d=Object.prototype.hasOwnProperty,O=Object.prototype.toString,u=Object.defineProperty,y=Object.getOwnPropertyDescriptor,g=function(n){return"function"==typeof Array.isArray?Array.isArray(n):"[object Array]"===O.call(n)},v=function(n){if(!n||"[object Object]"!==O.call(n))return!1;var f,i=d.call(n,"constructor"),s=n.constructor&&n.constructor.prototype&&d.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!s)return!1;for(f in n);return void 0===f||d.call(n,f)},o=function(n,i){u&&"__proto__"===i.name?u(n,i.name,{enumerable:!0,configurable:!0,value:i.newValue,writable:!0}):n[i.name]=i.newValue},r=function(n,i){if("__proto__"===i){if(!d.call(n,i))return;if(y)return y(n,i).value}return n[i]};B.exports=function n(){var i,s,f,h,l,c,m=arguments[0],a=1,E=arguments.length,x=!1;for("boolean"==typeof m&&(x=m,m=arguments[1]||{},a=2),(null==m||"object"!=typeof m&&"function"!=typeof m)&&(m={});a<E;++a)if(null!=(i=arguments[a]))for(s in i)f=r(m,s),m!==(h=r(i,s))&&(x&&h&&(v(h)||(l=g(h)))?(l?(l=!1,c=f&&g(f)?f:[]):c=f&&v(f)?f:{},o(m,{name:s,newValue:n(x,c,h)})):void 0!==h&&o(m,{name:s,newValue:h}));return m}},function(B,p,d){"use strict";function O(k){return k&&k.__esModule?k:{default:k}}function u(k,_){if(!(k instanceof _))throw new TypeError("Cannot call a class as a function")}function y(k,_){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!_||"object"!=typeof _&&"function"!=typeof _?k:_}function g(k,_){if("function"!=typeof _&&null!==_)throw new TypeError("Super expression must either be null or a function, not "+typeof _);k.prototype=Object.create(_&&_.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(k,_):k.__proto__=_)}function v(k){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==k?_:("function"==typeof k.formats&&(_=(0,i.default)(_,k.formats())),null==k.parent||"scroll"==k.parent.blotName||k.parent.statics.scope!==k.statics.scope?_:v(k.parent,_))}Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BlockEmbed=p.bubbleFormats=void 0;var o=function(){function k(_,w){for(var N=0;N<w.length;N++){var j=w[N];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(_,j.key,j)}}return function(_,w,N){return w&&k(_.prototype,w),N&&k(_,N),_}}(),r=function k(_,w,N){null===_&&(_=Function.prototype);var j=Object.getOwnPropertyDescriptor(_,w);if(void 0===j){var H=Object.getPrototypeOf(_);return null===H?void 0:k(H,w,N)}if("value"in j)return j.value;var X=j.get;return void 0!==X?X.call(N):void 0},i=O(d(2)),f=O(d(4)),l=O(d(0)),m=O(d(14)),E=O(d(5)),S=O(d(8)),A=function(k){function _(){return u(this,_),y(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return g(_,k),o(_,[{key:"attach",value:function(){r(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new f.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(w,N){var j=l.default.query(w,l.default.Scope.BLOCK_ATTRIBUTE);null!=j&&this.attributes.attribute(j,N)}},{key:"formatAt",value:function(w,N,j,H){this.format(j,H)}},{key:"insertAt",value:function(w,N,j){if("string"==typeof N&&N.endsWith("\n")){var H=l.default.create(b.blotName);this.parent.insertBefore(H,0===w?this:this.next),H.insertAt(0,N.slice(0,-1))}else r(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,w,N,j)}}]),_}(l.default.Embed);A.scope=l.default.Scope.BLOCK_BLOT;var b=function(k){function _(w){u(this,_);var N=y(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,w));return N.cache={},N}return g(_,k),o(_,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce(function(w,N){return 0===N.length()?w:w.insert(N.value(),v(N))},new f.default).insert("\n",v(this))),this.cache.delta}},{key:"deleteAt",value:function(w,N){r(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"deleteAt",this).call(this,w,N),this.cache={}}},{key:"formatAt",value:function(w,N,j,H){N<=0||(l.default.query(j,l.default.Scope.BLOCK)?w+N===this.length()&&this.format(j,H):r(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"formatAt",this).call(this,w,Math.min(N,this.length()-w-1),j,H),this.cache={})}},{key:"insertAt",value:function(w,N,j){if(null!=j)return r(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,w,N,j);if(0!==N.length){var H=N.split("\n"),X=H.shift();X.length>0&&(w<this.length()-1||null==this.children.tail?r(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,Math.min(w,this.length()-1),X):this.children.tail.insertAt(this.children.tail.length(),X),this.cache={});var Z=this;H.reduce(function(nt,K){return(Z=Z.split(nt,!0)).insertAt(0,K),K.length},w+X.length)}}},{key:"insertBefore",value:function(w,N){var j=this.children.head;r(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertBefore",this).call(this,w,N),j instanceof m.default&&j.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(w,N){r(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"moveChildren",this).call(this,w,N),this.cache={}}},{key:"optimize",value:function(w){r(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,w),this.cache={}}},{key:"path",value:function(w){return r(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"path",this).call(this,w,!0)}},{key:"removeChild",value:function(w){r(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"removeChild",this).call(this,w),this.cache={}}},{key:"split",value:function(w){var N=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(N&&(0===w||w>=this.length()-1)){var j=this.clone();return 0===w?(this.parent.insertBefore(j,this),this):(this.parent.insertBefore(j,this.next),j)}var H=r(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"split",this).call(this,w,N);return this.cache={},H}}]),_}(l.default.Block);b.blotName="block",b.tagName="P",b.defaultChild="break",b.allowedChildren=[E.default,l.default.Embed,S.default],p.bubbleFormats=v,p.BlockEmbed=A,p.default=b},function(B,p,d){var O=d(54),u=d(12),y=d(2),g=d(20),v=String.fromCharCode(0),o=function(r){this.ops=Array.isArray(r)?r:null!=r&&Array.isArray(r.ops)?r.ops:[]};o.prototype.insert=function(r,n){var i={};return 0===r.length?this:(i.insert=r,null!=n&&"object"==typeof n&&Object.keys(n).length>0&&(i.attributes=n),this.push(i))},o.prototype.delete=function(r){return r<=0?this:this.push({delete:r})},o.prototype.retain=function(r,n){if(r<=0)return this;var i={retain:r};return null!=n&&"object"==typeof n&&Object.keys(n).length>0&&(i.attributes=n),this.push(i)},o.prototype.push=function(r){var n=this.ops.length,i=this.ops[n-1];if(r=y(!0,{},r),"object"==typeof i){if("number"==typeof r.delete&&"number"==typeof i.delete)return this.ops[n-1]={delete:i.delete+r.delete},this;if("number"==typeof i.delete&&null!=r.insert&&"object"!=typeof(i=this.ops[(n-=1)-1]))return this.ops.unshift(r),this;if(u(r.attributes,i.attributes)){if("string"==typeof r.insert&&"string"==typeof i.insert)return this.ops[n-1]={insert:i.insert+r.insert},"object"==typeof r.attributes&&(this.ops[n-1].attributes=r.attributes),this;if("number"==typeof r.retain&&"number"==typeof i.retain)return this.ops[n-1]={retain:i.retain+r.retain},"object"==typeof r.attributes&&(this.ops[n-1].attributes=r.attributes),this}}return n===this.ops.length?this.ops.push(r):this.ops.splice(n,0,r),this},o.prototype.chop=function(){var r=this.ops[this.ops.length-1];return r&&r.retain&&!r.attributes&&this.ops.pop(),this},o.prototype.filter=function(r){return this.ops.filter(r)},o.prototype.forEach=function(r){this.ops.forEach(r)},o.prototype.map=function(r){return this.ops.map(r)},o.prototype.partition=function(r){var n=[],i=[];return this.forEach(function(s){(r(s)?n:i).push(s)}),[n,i]},o.prototype.reduce=function(r,n){return this.ops.reduce(r,n)},o.prototype.changeLength=function(){return this.reduce(function(r,n){return n.insert?r+g.length(n):n.delete?r-n.delete:r},0)},o.prototype.length=function(){return this.reduce(function(r,n){return r+g.length(n)},0)},o.prototype.slice=function(r,n){r=r||0,"number"!=typeof n&&(n=1/0);for(var i=[],s=g.iterator(this.ops),f=0;f<n&&s.hasNext();){var h;f<r?h=s.next(r-f):(h=s.next(n-f),i.push(h)),f+=g.length(h)}return new o(i)},o.prototype.compose=function(r){var n=g.iterator(this.ops),i=g.iterator(r.ops),s=[],f=i.peek();if(null!=f&&"number"==typeof f.retain&&null==f.attributes){for(var h=f.retain;"insert"===n.peekType()&&n.peekLength()<=h;)h-=n.peekLength(),s.push(n.next());f.retain-h>0&&i.next(f.retain-h)}for(var l=new o(s);n.hasNext()||i.hasNext();)if("insert"===i.peekType())l.push(i.next());else if("delete"===n.peekType())l.push(n.next());else{var c=Math.min(n.peekLength(),i.peekLength()),m=n.next(c),a=i.next(c);if("number"==typeof a.retain){var E={};"number"==typeof m.retain?E.retain=c:E.insert=m.insert;var x=g.attributes.compose(m.attributes,a.attributes,"number"==typeof m.retain);if(x&&(E.attributes=x),l.push(E),!i.hasNext()&&u(l.ops[l.ops.length-1],E)){var S=new o(n.rest());return l.concat(S).chop()}}else"number"==typeof a.delete&&"number"==typeof m.retain&&l.push(a)}return l.chop()},o.prototype.concat=function(r){var n=new o(this.ops.slice());return r.ops.length>0&&(n.push(r.ops[0]),n.ops=n.ops.concat(r.ops.slice(1))),n},o.prototype.diff=function(r,n){if(this.ops===r.ops)return new o;var i=[this,r].map(function(c){return c.map(function(m){if(null!=m.insert)return"string"==typeof m.insert?m.insert:v;throw new Error("diff() called "+(c===r?"on":"with")+" non-document")}).join("")}),s=new o,f=O(i[0],i[1],n),h=g.iterator(this.ops),l=g.iterator(r.ops);return f.forEach(function(c){for(var m=c[1].length;m>0;){var a=0;switch(c[0]){case O.INSERT:a=Math.min(l.peekLength(),m),s.push(l.next(a));break;case O.DELETE:a=Math.min(m,h.peekLength()),h.next(a),s.delete(a);break;case O.EQUAL:a=Math.min(h.peekLength(),l.peekLength(),m);var E=h.next(a),x=l.next(a);u(E.insert,x.insert)?s.retain(a,g.attributes.diff(E.attributes,x.attributes)):s.push(x).delete(a)}m-=a}}),s.chop()},o.prototype.eachLine=function(r,n){n=n||"\n";for(var i=g.iterator(this.ops),s=new o,f=0;i.hasNext();){if("insert"!==i.peekType())return;var h=i.peek(),l=g.length(h)-i.peekLength(),c="string"==typeof h.insert?h.insert.indexOf(n,l)-l:-1;if(c<0)s.push(i.next());else if(c>0)s.push(i.next(c));else{if(!1===r(s,i.next(1).attributes||{},f))return;f+=1,s=new o}}s.length()>0&&r(s,{},f)},o.prototype.transform=function(r,n){if(n=!!n,"number"==typeof r)return this.transformPosition(r,n);for(var i=g.iterator(this.ops),s=g.iterator(r.ops),f=new o;i.hasNext()||s.hasNext();)if("insert"!==i.peekType()||!n&&"insert"===s.peekType())if("insert"===s.peekType())f.push(s.next());else{var h=Math.min(i.peekLength(),s.peekLength()),l=i.next(h),c=s.next(h);if(l.delete)continue;c.delete?f.push(c):f.retain(h,g.attributes.transform(l.attributes,c.attributes,n))}else f.retain(g.length(i.next()));return f.chop()},o.prototype.transformPosition=function(r,n){n=!!n;for(var i=g.iterator(this.ops),s=0;i.hasNext()&&s<=r;){var f=i.peekLength(),h=i.peekType();i.next(),"delete"!==h?("insert"===h&&(s<r||!n)&&(r+=f),s+=f):r-=Math.min(f,r-s)}return r},B.exports=o},function(B,p,d){"use strict";function O(h){return h&&h.__esModule?h:{default:h}}function u(h,l){if(!(h instanceof l))throw new TypeError("Cannot call a class as a function")}function y(h,l){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?h:l}Object.defineProperty(p,"__esModule",{value:!0});var v=function(){function h(l,c){for(var m=0;m<c.length;m++){var a=c[m];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}}return function(l,c,m){return c&&h(l.prototype,c),m&&h(l,m),l}}(),o=function h(l,c,m){null===l&&(l=Function.prototype);var a=Object.getOwnPropertyDescriptor(l,c);if(void 0===a){var E=Object.getPrototypeOf(l);return null===E?void 0:h(E,c,m)}if("value"in a)return a.value;var x=a.get;return void 0!==x?x.call(m):void 0},n=O(d(8)),s=O(d(0)),f=function(h){function l(){return u(this,l),y(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function g(h,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);h.prototype=Object.create(l&&l.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(h,l):h.__proto__=l)}(l,h),v(l,[{key:"formatAt",value:function(c,m,a,E){if(l.compare(this.statics.blotName,a)<0&&s.default.query(a,s.default.Scope.BLOT)){var x=this.isolate(c,m);E&&x.wrap(a,E)}else o(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"formatAt",this).call(this,c,m,a,E)}},{key:"optimize",value:function(c){if(o(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,c),this.parent instanceof l&&l.compare(this.statics.blotName,this.parent.statics.blotName)>0){var m=this.parent.isolate(this.offset(),this.length());this.moveChildren(m),m.wrap(this)}}}],[{key:"compare",value:function(c,m){var a=l.order.indexOf(c),E=l.order.indexOf(m);return a>=0||E>=0?a-E:c===m?0:c<m?-1:1}}]),l}(s.default.Inline);f.allowedChildren=[f,s.default.Embed,n.default],f.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],p.default=f},function(B,p,d){"use strict";function O(K){return K&&K.__esModule?K:{default:K}}function u(K,L,q){return L in K?Object.defineProperty(K,L,{value:q,enumerable:!0,configurable:!0,writable:!0}):K[L]=q,K}function y(K,L){if(!(K instanceof L))throw new TypeError("Cannot call a class as a function")}function g(K,L){if((L=(0,w.default)(!0,{container:K,modules:{clipboard:!0,keyboard:!0,history:!0}},L)).theme&&L.theme!==nt.DEFAULTS.theme){if(L.theme=nt.import("themes/"+L.theme),null==L.theme)throw new Error("Invalid theme "+L.theme+". Did you register it?")}else L.theme=X.default;var q=(0,w.default)(!0,{},L.theme.DEFAULTS);[q,L].forEach(function(G){G.modules=G.modules||{},Object.keys(G.modules).forEach(function(V){!0===G.modules[V]&&(G.modules[V]={})})});var U=Object.keys(q.modules).concat(Object.keys(L.modules)).reduce(function(G,V){var D=nt.import("modules/"+V);return null==D?Z.error("Cannot load "+V+" module. Are you sure you registered it?"):G[V]=D.DEFAULTS||{},G},{});return null!=L.modules&&L.modules.toolbar&&L.modules.toolbar.constructor!==Object&&(L.modules.toolbar={container:L.modules.toolbar}),L=(0,w.default)(!0,{},nt.DEFAULTS,{modules:U},q,L),["bounds","container","scrollingContainer"].forEach(function(G){"string"==typeof L[G]&&(L[G]=document.querySelector(L[G]))}),L.modules=Object.keys(L.modules).reduce(function(G,V){return L.modules[V]&&(G[V]=L.modules[V]),G},{}),L}function v(K,L,q,M){if(this.options.strict&&!this.isEnabled()&&L===a.default.sources.USER)return new h.default;var U=null==q?null:this.getSelection(),G=this.editor.delta,V=K();if(null!=U&&(!0===q&&(q=U.index),null==M?U=r(U,V,L):0!==M&&(U=r(U,q,M,L)),this.setSelection(U,a.default.sources.SILENT)),V.length()>0){var D,tt,W=[a.default.events.TEXT_CHANGE,V,G,L];(D=this.emitter).emit.apply(D,[a.default.events.EDITOR_CHANGE].concat(W)),L!==a.default.sources.SILENT&&(tt=this.emitter).emit.apply(tt,W)}return V}function o(K,L,q,M,U){var G={};return"number"==typeof K.index&&"number"==typeof K.length?"number"!=typeof L?(U=M,M=q,q=L,L=K.length,K=K.index):(L=K.length,K=K.index):"number"!=typeof L&&(U=M,M=q,q=L,L=0),"object"===(void 0===q?"undefined":n(q))?(G=q,U=M):"string"==typeof q&&(null!=M?G[q]=M:U=q),[K,L,G,U=U||a.default.sources.API]}function r(K,L,q,M){if(null==K)return null;var U=void 0,G=void 0;if(L instanceof h.default){var V=[K.index,K.index+K.length].map(function(it){return L.transformPosition(it,M!==a.default.sources.USER)}),D=i(V,2);U=D[0],G=D[1]}else{var W=[K.index,K.index+K.length].map(function(it){return it<L||it===L&&M===a.default.sources.USER?it:q>=0?it+q:Math.max(L,it+q)}),tt=i(W,2);U=tt[0],G=tt[1]}return new b.Range(U,G-U)}Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.overload=p.expandConfig=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(K){return typeof K}:function(K){return K&&"function"==typeof Symbol&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},i=function(L,q){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return function K(L,q){var M=[],U=!0,G=!1,V=void 0;try{for(var D,W=L[Symbol.iterator]();!(U=(D=W.next()).done)&&(M.push(D.value),!q||M.length!==q);U=!0);}catch(tt){G=!0,V=tt}finally{try{!U&&W.return&&W.return()}finally{if(G)throw V}}return M}(L,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},s=function(){function K(L,q){for(var M=0;M<q.length;M++){var U=q[M];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(L,U.key,U)}}return function(L,q,M){return q&&K(L.prototype,q),M&&K(L,M),L}}();d(53);var h=O(d(4)),c=O(d(57)),a=O(d(9)),x=O(d(7)),A=O(d(0)),b=d(22),k=O(b),w=O(d(2)),j=O(d(10)),X=O(d(32)),Z=(0,j.default)("quill"),nt=function(){function K(L){var q=this,M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,K),this.options=g(L,M),this.container=this.options.container,null==this.container)return Z.error("Invalid Quill container",L);this.options.debug&&K.debug(this.options.debug);var U=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new a.default,this.scroll=A.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new c.default(this.scroll),this.selection=new k.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(a.default.events.EDITOR_CHANGE,function(V){V===a.default.events.TEXT_CHANGE&&q.root.classList.toggle("ql-blank",q.editor.isBlank())}),this.emitter.on(a.default.events.SCROLL_UPDATE,function(V,D){var W=q.selection.lastRange,tt=W&&0===W.length?W.index:void 0;v.call(q,function(){return q.editor.update(null,D,tt)},V)});var G=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+U+"<p><br></p></div>");this.setContents(G),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(K,null,[{key:"debug",value:function(L){!0===L&&(L="log"),j.default.level(L)}},{key:"find",value:function(L){return L.__quill||A.default.find(L)}},{key:"import",value:function(L){return null==this.imports[L]&&Z.error("Cannot import "+L+". Are you sure it was registered?"),this.imports[L]}},{key:"register",value:function(L,q){var M=this,U=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof L){var G=L.attrName||L.blotName;"string"==typeof G?this.register("formats/"+G,L,q):Object.keys(L).forEach(function(V){M.register(V,L[V],q)})}else null==this.imports[L]||U||Z.warn("Overwriting "+L+" with",q),this.imports[L]=q,(L.startsWith("blots/")||L.startsWith("formats/"))&&"abstract"!==q.blotName?A.default.register(q):L.startsWith("modules")&&"function"==typeof q.register&&q.register()}}]),s(K,[{key:"addContainer",value:function(L){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof L){var M=L;(L=document.createElement("div")).classList.add(M)}return this.container.insertBefore(L,q),L}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(L,q,M){var U=this,G=o(L,q,M),V=i(G,4);return v.call(this,function(){return U.editor.deleteText(L,q)},M=V[3],L=V[0],-1*(q=V[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var L=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(L),this.container.classList.toggle("ql-disabled",!L)}},{key:"focus",value:function(){var L=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=L,this.scrollIntoView()}},{key:"format",value:function(L,q){var M=this,U=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.default.sources.API;return v.call(this,function(){var G=M.getSelection(!0),V=new h.default;if(null==G)return V;if(A.default.query(L,A.default.Scope.BLOCK))V=M.editor.formatLine(G.index,G.length,u({},L,q));else{if(0===G.length)return M.selection.format(L,q),V;V=M.editor.formatText(G.index,G.length,u({},L,q))}return M.setSelection(G,a.default.sources.SILENT),V},U)}},{key:"formatLine",value:function(L,q,M,U,G){var D,V=this,W=o(L,q,M,U,G),tt=i(W,4);return q=tt[1],D=tt[2],v.call(this,function(){return V.editor.formatLine(L,q,D)},G=tt[3],L=tt[0],0)}},{key:"formatText",value:function(L,q,M,U,G){var D,V=this,W=o(L,q,M,U,G),tt=i(W,4);return q=tt[1],D=tt[2],v.call(this,function(){return V.editor.formatText(L,q,D)},G=tt[3],L=tt[0],0)}},{key:"getBounds",value:function(L){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,M=void 0;M="number"==typeof L?this.selection.getBounds(L,q):this.selection.getBounds(L.index,L.length);var U=this.container.getBoundingClientRect();return{bottom:M.bottom-U.top,height:M.height,left:M.left-U.left,right:M.right-U.left,top:M.top-U.top,width:M.width}}},{key:"getContents",value:function(){var L=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-L,M=o(L,q),U=i(M,2);return this.editor.getContents(L=U[0],q=U[1])}},{key:"getFormat",value:function(){var L=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof L?this.editor.getFormat(L,q):this.editor.getFormat(L.index,L.length)}},{key:"getIndex",value:function(L){return L.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(L){return this.scroll.leaf(L)}},{key:"getLine",value:function(L){return this.scroll.line(L)}},{key:"getLines",value:function(){var L=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof L?this.scroll.lines(L.index,L.length):this.scroll.lines(L,q)}},{key:"getModule",value:function(L){return this.theme.modules[L]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var L=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-L,M=o(L,q),U=i(M,2);return this.editor.getText(L=U[0],q=U[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(L,q,M){var U=this,G=arguments.length>3&&void 0!==arguments[3]?arguments[3]:K.sources.API;return v.call(this,function(){return U.editor.insertEmbed(L,q,M)},G,L)}},{key:"insertText",value:function(L,q,M,U,G){var D,V=this,W=o(L,0,M,U,G),tt=i(W,4);return D=tt[2],v.call(this,function(){return V.editor.insertText(L,q,D)},G=tt[3],L=tt[0],q.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(L,q,M){this.clipboard.dangerouslyPasteHTML(L,q,M)}},{key:"removeFormat",value:function(L,q,M){var U=this,G=o(L,q,M),V=i(G,4);return q=V[1],v.call(this,function(){return U.editor.removeFormat(L,q)},M=V[3],L=V[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(L){var q=this,M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.sources.API;return v.call(this,function(){L=new h.default(L);var U=q.getLength(),G=q.editor.deleteText(0,U),V=q.editor.applyDelta(L),D=V.ops[V.ops.length-1];return null!=D&&"string"==typeof D.insert&&"\n"===D.insert[D.insert.length-1]&&(q.editor.deleteText(q.getLength()-1,1),V.delete(1)),G.compose(V)},M)}},{key:"setSelection",value:function(L,q,M){if(null==L)this.selection.setRange(null,q||K.sources.API);else{var U=o(L,q,M),G=i(U,4);M=G[3],this.selection.setRange(new b.Range(L=G[0],q=G[1]),M),M!==a.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(L){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.sources.API,M=(new h.default).insert(L);return this.setContents(M,q)}},{key:"update",value:function(){var L=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default.sources.USER,q=this.scroll.update(L);return this.selection.update(L),q}},{key:"updateContents",value:function(L){var q=this,M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.sources.API;return v.call(this,function(){return L=new h.default(L),q.editor.applyDelta(L,M)},M,!0)}}]),K}();nt.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},nt.events=a.default.events,nt.sources=a.default.sources,nt.version="1.3.7",nt.imports={delta:h.default,parchment:A.default,"core/module":x.default,"core/theme":X.default},p.expandConfig=g,p.overload=o,p.default=nt},function(B,p,d){"use strict";function O(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var u=function y(g){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};O(this,y),this.quill=g,this.options=v};u.DEFAULTS={},p.default=u},function(B,p,d){"use strict";function O(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function u(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?r:n}Object.defineProperty(p,"__esModule",{value:!0});var r,o=function(r){function n(){return O(this,n),u(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function y(r,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}(n,r),n}(((r=d(0))&&r.__esModule?r:{default:r}).default.Text);p.default=o},function(B,p,d){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(p,"__esModule",{value:!0});var v=function(){function l(c,m){for(var a=0;a<m.length;a++){var E=m[a];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(c,E.key,E)}}return function(c,m,a){return m&&l(c.prototype,m),a&&l(c,a),c}}(),o=function l(c,m,a){null===c&&(c=Function.prototype);var E=Object.getOwnPropertyDescriptor(c,m);if(void 0===E){var x=Object.getPrototypeOf(c);return null===x?void 0:l(x,m,a)}if("value"in E)return E.value;var S=E.get;return void 0!==S?S.call(a):void 0},n=O(d(58)),f=(0,O(d(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(l){document.addEventListener(l,function(){for(var c=arguments.length,m=Array(c),a=0;a<c;a++)m[a]=arguments[a];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(E){var x;E.__quill&&E.__quill.emitter&&(x=E.__quill.emitter).handleDOM.apply(x,m)})})});var h=function(l){function c(){!function u(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}(this,c);var m=function y(l,c){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!=typeof c&&"function"!=typeof c?l:c}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return m.listeners={},m.on("error",f.error),m}return function g(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(l,c):l.__proto__=c)}(c,l),v(c,[{key:"emit",value:function(){f.log.apply(f,arguments),o(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(m){for(var a=arguments.length,E=Array(a>1?a-1:0),x=1;x<a;x++)E[x-1]=arguments[x];(this.listeners[m.type]||[]).forEach(function(S){var A=S.node,b=S.handler;(m.target===A||A.contains(m.target))&&b.apply(void 0,[m].concat(E))})}},{key:"listenDOM",value:function(m,a,E){this.listeners[m]||(this.listeners[m]=[]),this.listeners[m].push({node:a,handler:E})}}]),c}(n.default);h.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},h.sources={API:"api",SILENT:"silent",USER:"user"},p.default=h},function(B,p,d){"use strict";function O(v){if(y.indexOf(v)<=y.indexOf(g)){for(var o,r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];(o=console)[v].apply(o,n)}}function u(v){return y.reduce(function(o,r){return o[r]=O.bind(console,r,v),o},{})}Object.defineProperty(p,"__esModule",{value:!0});var y=["error","warn","log","info"],g="warn";O.level=u.level=function(v){g=v},p.default=u},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=d(1),u=function(){function y(g,v,o){void 0===o&&(o={}),this.attrName=g,this.keyName=v,this.scope=null!=o.scope?o.scope&O.Scope.LEVEL|O.Scope.TYPE&O.Scope.ATTRIBUTE:O.Scope.ATTRIBUTE,null!=o.whitelist&&(this.whitelist=o.whitelist)}return y.keys=function(g){return[].map.call(g.attributes,function(v){return v.name})},y.prototype.add=function(g,v){return!!this.canAdd(g,v)&&(g.setAttribute(this.keyName,v),!0)},y.prototype.canAdd=function(g,v){return null!=O.query(g,O.Scope.BLOT&(this.scope|O.Scope.TYPE))&&(null==this.whitelist||("string"==typeof v?this.whitelist.indexOf(v.replace(/["']/g,""))>-1:this.whitelist.indexOf(v)>-1))},y.prototype.remove=function(g){g.removeAttribute(this.keyName)},y.prototype.value=function(g){var v=g.getAttribute(this.keyName);return this.canAdd(g,v)&&v?v:""},y}();p.default=u},function(B,p,d){function O(n){return null==n}function u(n){return!(!n||"object"!=typeof n||"number"!=typeof n.length||"function"!=typeof n.copy||"function"!=typeof n.slice||n.length>0&&"number"!=typeof n[0])}var g=Array.prototype.slice,v=d(55),o=d(56),r=B.exports=function(n,i,s){return s||(s={}),n===i||(n instanceof Date&&i instanceof Date?n.getTime()===i.getTime():!n||!i||"object"!=typeof n&&"object"!=typeof i?s.strict?n===i:n==i:function y(n,i,s){var f,h;if(O(n)||O(i)||n.prototype!==i.prototype)return!1;if(o(n))return!!o(i)&&(n=g.call(n),i=g.call(i),r(n,i,s));if(u(n)){if(!u(i)||n.length!==i.length)return!1;for(f=0;f<n.length;f++)if(n[f]!==i[f])return!1;return!0}try{var l=v(n),c=v(i)}catch(m){return!1}if(l.length!=c.length)return!1;for(l.sort(),c.sort(),f=l.length-1;f>=0;f--)if(l[f]!=c[f])return!1;for(f=l.length-1;f>=0;f--)if(!r(n[h=l[f]],i[h],s))return!1;return typeof n==typeof i}(n,i,s))}},function(B,p,d){"use strict";function O(A){return A&&A.__esModule?A:{default:A}}function u(A,b){if(!(A instanceof b))throw new TypeError("Cannot call a class as a function")}function y(A,b){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?A:b}function g(A,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);A.prototype=Object.create(b&&b.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(A,b):A.__proto__=b)}Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.Code=void 0;var v=function(b,k){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return function A(b,k){var _=[],w=!0,N=!1,j=void 0;try{for(var H,X=b[Symbol.iterator]();!(w=(H=X.next()).done)&&(_.push(H.value),!k||_.length!==k);w=!0);}catch(Z){N=!0,j=Z}finally{try{!w&&X.return&&X.return()}finally{if(N)throw j}}return _}(b,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function A(b,k){for(var _=0;_<k.length;_++){var w=k[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,k,_){return k&&A(b.prototype,k),_&&A(b,_),b}}(),r=function A(b,k,_){null===b&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,k);if(void 0===w){var N=Object.getPrototypeOf(b);return null===N?void 0:A(N,k,_)}if("value"in w)return w.value;var j=w.get;return void 0!==j?j.call(_):void 0},i=O(d(4)),f=O(d(0)),l=O(d(3)),m=O(d(5)),E=O(d(8)),x=function(A){function b(){return u(this,b),y(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return g(b,A),b}(m.default);x.blotName="code",x.tagName="CODE";var S=function(A){function b(){return u(this,b),y(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return g(b,A),o(b,[{key:"delta",value:function(){var k=this,_=this.domNode.textContent;return _.endsWith("\n")&&(_=_.slice(0,-1)),_.split("\n").reduce(function(w,N){return w.insert(N).insert("\n",k.formats())},new i.default)}},{key:"format",value:function(k,_){if(k!==this.statics.blotName||!_){var w=this.descendant(E.default,this.length()-1),j=v(w,1)[0];null!=j&&j.deleteAt(j.length()-1,1),r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,k,_)}}},{key:"formatAt",value:function(k,_,w,N){if(0!==_&&null!=f.default.query(w,f.default.Scope.BLOCK)&&(w!==this.statics.blotName||N!==this.statics.formats(this.domNode))){var j=this.newlineIndex(k);if(!(j<0||j>=k+_)){var H=this.newlineIndex(k,!0)+1,X=j-H+1,Z=this.isolate(H,X),nt=Z.next;Z.format(w,N),nt instanceof b&&nt.formatAt(0,k-H+_-X,w,N)}}}},{key:"insertAt",value:function(k,_,w){if(null==w){var N=this.descendant(E.default,k),j=v(N,2);j[0].insertAt(j[1],_)}}},{key:"length",value:function(){var k=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?k:k+1}},{key:"newlineIndex",value:function(k){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,k).lastIndexOf("\n");var _=this.domNode.textContent.slice(k).indexOf("\n");return _>-1?k+_:-1}},{key:"optimize",value:function(k){this.domNode.textContent.endsWith("\n")||this.appendChild(f.default.create("text","\n")),r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,k);var _=this.next;null!=_&&_.prev===this&&_.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===_.statics.formats(_.domNode)&&(_.optimize(k),_.moveChildren(this),_.remove())}},{key:"replace",value:function(k){r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replace",this).call(this,k),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(_){var w=f.default.find(_);null==w?_.parentNode.removeChild(_):w instanceof f.default.Embed?w.remove():w.unwrap()})}}],[{key:"create",value:function(k){var _=r(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,k);return _.setAttribute("spellcheck",!1),_}},{key:"formats",value:function(){return!0}}]),b}(l.default);S.blotName="code-block",S.tagName="PRE",S.TAB="  ",p.Code=x,p.default=S},function(B,p,d){"use strict";function O(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function u(i,s){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!=typeof s&&"function"!=typeof s?i:s}Object.defineProperty(p,"__esModule",{value:!0});var i,g=function(){function i(s,f){for(var h=0;h<f.length;h++){var l=f[h];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,f,h){return f&&i(s.prototype,f),h&&i(s,h),s}}(),v=function i(s,f,h){null===s&&(s=Function.prototype);var l=Object.getOwnPropertyDescriptor(s,f);if(void 0===l){var c=Object.getPrototypeOf(s);return null===c?void 0:i(c,f,h)}if("value"in l)return l.value;var m=l.get;return void 0!==m?m.call(h):void 0},n=function(i){function s(){return O(this,s),u(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return function y(i,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(i,s):i.__proto__=s)}(s,i),g(s,[{key:"insertInto",value:function(f,h){0===f.children.length?v(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"insertInto",this).call(this,f,h):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),s}(((i=d(0))&&i.__esModule?i:{default:i}).default.Embed);n.blotName="break",n.tagName="BR",p.default=n},function(B,p,d){"use strict";function O(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}function u(s,f){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?s:f}function g(s,f){var h=document.createElement("a");h.href=s;var l=h.href.slice(0,h.href.indexOf(":"));return f.indexOf(l)>-1}Object.defineProperty(p,"__esModule",{value:!0}),p.sanitize=p.default=void 0;var s,v=function(){function s(f,h){for(var l=0;l<h.length;l++){var c=h[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(f,c.key,c)}}return function(f,h,l){return h&&s(f.prototype,h),l&&s(f,l),f}}(),o=function s(f,h,l){null===f&&(f=Function.prototype);var c=Object.getOwnPropertyDescriptor(f,h);if(void 0===c){var m=Object.getPrototypeOf(f);return null===m?void 0:s(m,h,l)}if("value"in c)return c.value;var a=c.get;return void 0!==a?a.call(l):void 0},i=function(s){function f(){return O(this,f),u(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return function y(s,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(s,f):s.__proto__=f)}(f,s),v(f,[{key:"format",value:function(h,l){if(h!==this.statics.blotName||!l)return o(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,h,l);l=this.constructor.sanitize(l),this.domNode.setAttribute("href",l)}}],[{key:"create",value:function(h){var l=o(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,h);return h=this.sanitize(h),l.setAttribute("href",h),l.setAttribute("rel","noopener noreferrer"),l.setAttribute("target","_blank"),l}},{key:"formats",value:function(h){return h.getAttribute("href")}},{key:"sanitize",value:function(h){return g(h,this.PROTOCOL_WHITELIST)?h:this.SANITIZED_URL}}]),f}(((s=d(5))&&s.__esModule?s:{default:s}).default);i.blotName="link",i.tagName="A",i.SANITIZED_URL="about:blank",i.PROTOCOL_WHITELIST=["http","https","mailto","tel"],p.default=i,p.sanitize=g},function(B,p,d){"use strict";function O(h){return h&&h.__esModule?h:{default:h}}function y(h,l){h.setAttribute(l,"true"!==h.getAttribute(l))}Object.defineProperty(p,"__esModule",{value:!0});var g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},v=function(){function h(l,c){for(var m=0;m<c.length;m++){var a=c[m];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}}return function(l,c,m){return c&&h(l.prototype,c),m&&h(l,m),l}}(),r=O(d(25)),i=O(d(106)),s=0,f=function(){function h(l){var c=this;(function u(h,l){if(!(h instanceof l))throw new TypeError("Cannot call a class as a function")})(this,h),this.select=l,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){c.togglePicker()}),this.label.addEventListener("keydown",function(m){switch(m.keyCode){case r.default.keys.ENTER:c.togglePicker();break;case r.default.keys.ESCAPE:c.escape(),m.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return v(h,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),y(this.label,"aria-expanded"),y(this.options,"aria-hidden")}},{key:"buildItem",value:function(l){var c=this,m=document.createElement("span");return m.tabIndex="0",m.setAttribute("role","button"),m.classList.add("ql-picker-item"),l.hasAttribute("value")&&m.setAttribute("data-value",l.getAttribute("value")),l.textContent&&m.setAttribute("data-label",l.textContent),m.addEventListener("click",function(){c.selectItem(m,!0)}),m.addEventListener("keydown",function(a){switch(a.keyCode){case r.default.keys.ENTER:c.selectItem(m,!0),a.preventDefault();break;case r.default.keys.ESCAPE:c.escape(),a.preventDefault()}}),m}},{key:"buildLabel",value:function(){var l=document.createElement("span");return l.classList.add("ql-picker-label"),l.innerHTML=i.default,l.tabIndex="0",l.setAttribute("role","button"),l.setAttribute("aria-expanded","false"),this.container.appendChild(l),l}},{key:"buildOptions",value:function(){var l=this,c=document.createElement("span");c.classList.add("ql-picker-options"),c.setAttribute("aria-hidden","true"),c.tabIndex="-1",c.id="ql-picker-options-"+s,s+=1,this.label.setAttribute("aria-controls",c.id),this.options=c,[].slice.call(this.select.options).forEach(function(m){var a=l.buildItem(m);c.appendChild(a),!0===m.selected&&l.selectItem(a)}),this.container.appendChild(c)}},{key:"buildPicker",value:function(){var l=this;[].slice.call(this.select.attributes).forEach(function(c){l.container.setAttribute(c.name,c.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var l=this;this.close(),setTimeout(function(){return l.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],m=this.container.querySelector(".ql-selected");if(l!==m&&(null!=m&&m.classList.remove("ql-selected"),null!=l&&(l.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(l.parentNode.children,l),l.hasAttribute("data-value")?this.label.setAttribute("data-value",l.getAttribute("data-value")):this.label.removeAttribute("data-value"),l.hasAttribute("data-label")?this.label.setAttribute("data-label",l.getAttribute("data-label")):this.label.removeAttribute("data-label"),c))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":g(Event))){var a=document.createEvent("Event");a.initEvent("change",!0,!0),this.select.dispatchEvent(a)}this.close()}}},{key:"update",value:function(){var l=void 0;if(this.select.selectedIndex>-1){var c=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];l=this.select.options[this.select.selectedIndex],this.selectItem(c)}else this.selectItem(null);var m=null!=l&&l!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",m)}}]),h}();p.default=f},function(B,p,d){"use strict";function O(r){var n=v.find(r);if(null==n)try{n=v.create(r)}catch(i){n=v.create(v.Scope.INLINE),[].slice.call(r.childNodes).forEach(function(s){n.domNode.appendChild(s)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach()}return n}var r,u=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},function(n,i){function s(){this.constructor=n}r(n,i),n.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)});Object.defineProperty(p,"__esModule",{value:!0});var y=d(47),g=d(27),v=d(1),o=function(r){function n(i){var s=r.call(this,i)||this;return s.build(),s}return u(n,r),n.prototype.appendChild=function(i){this.insertBefore(i)},n.prototype.attach=function(){r.prototype.attach.call(this),this.children.forEach(function(i){i.attach()})},n.prototype.build=function(){var i=this;this.children=new y.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(s){try{var f=O(s);i.insertBefore(f,i.children.head||void 0)}catch(h){if(h instanceof v.ParchmentError)return;throw h}})},n.prototype.deleteAt=function(i,s){if(0===i&&s===this.length())return this.remove();this.children.forEachAt(i,s,function(f,h,l){f.deleteAt(h,l)})},n.prototype.descendant=function(i,s){var f=this.children.find(s),h=f[0],l=f[1];return null==i.blotName&&i(h)||null!=i.blotName&&h instanceof i?[h,l]:h instanceof n?h.descendant(i,l):[null,-1]},n.prototype.descendants=function(i,s,f){void 0===s&&(s=0),void 0===f&&(f=Number.MAX_VALUE);var h=[],l=f;return this.children.forEachAt(s,f,function(c,m,a){(null==i.blotName&&i(c)||null!=i.blotName&&c instanceof i)&&h.push(c),c instanceof n&&(h=h.concat(c.descendants(i,m,l))),l-=a}),h},n.prototype.detach=function(){this.children.forEach(function(i){i.detach()}),r.prototype.detach.call(this)},n.prototype.formatAt=function(i,s,f,h){this.children.forEachAt(i,s,function(l,c,m){l.formatAt(c,m,f,h)})},n.prototype.insertAt=function(i,s,f){var h=this.children.find(i),l=h[0];if(l)l.insertAt(h[1],s,f);else{var m=null==f?v.create("text",s):v.create(s,f);this.appendChild(m)}},n.prototype.insertBefore=function(i,s){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(f){return i instanceof f}))throw new v.ParchmentError("Cannot insert "+i.statics.blotName+" into "+this.statics.blotName);i.insertInto(this,s)},n.prototype.length=function(){return this.children.reduce(function(i,s){return i+s.length()},0)},n.prototype.moveChildren=function(i,s){this.children.forEach(function(f){i.insertBefore(f,s)})},n.prototype.optimize=function(i){if(r.prototype.optimize.call(this,i),0===this.children.length)if(null!=this.statics.defaultChild){var s=v.create(this.statics.defaultChild);this.appendChild(s),s.optimize(i)}else this.remove()},n.prototype.path=function(i,s){void 0===s&&(s=!1);var f=this.children.find(i,s),h=f[0],l=f[1],c=[[this,i]];return h instanceof n?c.concat(h.path(l,s)):(null!=h&&c.push([h,l]),c)},n.prototype.removeChild=function(i){this.children.remove(i)},n.prototype.replace=function(i){i instanceof n&&i.moveChildren(this),r.prototype.replace.call(this,i)},n.prototype.split=function(i,s){if(void 0===s&&(s=!1),!s){if(0===i)return this;if(i===this.length())return this.next}var f=this.clone();return this.parent.insertBefore(f,this.next),this.children.forEachAt(i,this.length(),function(h,l,c){h=h.split(l,s),f.appendChild(h)}),f},n.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},n.prototype.update=function(i,s){var f=this,h=[],l=[];i.forEach(function(c){c.target===f.domNode&&"childList"===c.type&&(h.push.apply(h,c.addedNodes),l.push.apply(l,c.removedNodes))}),l.forEach(function(c){if(!(null!=c.parentNode&&"IFRAME"!==c.tagName&&document.body.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var m=v.find(c);null!=m&&(null!=m.domNode.parentNode&&m.domNode.parentNode!==f.domNode||m.detach())}}),h.filter(function(c){return c.parentNode==f.domNode}).sort(function(c,m){return c===m?0:c.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(c){var m=null;null!=c.nextSibling&&(m=v.find(c.nextSibling));var a=O(c);a.next==m&&null!=a.next||(null!=a.parent&&a.parent.removeChild(f),f.insertBefore(a,m||void 0))})},n}(g.default);p.default=o},function(B,p,d){"use strict";var r,O=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},function(n,i){function s(){this.constructor=n}r(n,i),n.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)});Object.defineProperty(p,"__esModule",{value:!0});var u=d(11),y=d(28),g=d(17),v=d(1),o=function(r){function n(i){var s=r.call(this,i)||this;return s.attributes=new y.default(s.domNode),s}return O(n,r),n.formats=function(i){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?i.tagName.toLowerCase():void 0)},n.prototype.format=function(i,s){var f=v.query(i);f instanceof u.default?this.attributes.attribute(f,s):s&&(null==f||i===this.statics.blotName&&this.formats()[i]===s||this.replaceWith(i,s))},n.prototype.formats=function(){var i=this.attributes.values(),s=this.statics.formats(this.domNode);return null!=s&&(i[this.statics.blotName]=s),i},n.prototype.replaceWith=function(i,s){var f=r.prototype.replaceWith.call(this,i,s);return this.attributes.copy(f),f},n.prototype.update=function(i,s){var f=this;r.prototype.update.call(this,i,s),i.some(function(h){return h.target===f.domNode&&"attributes"===h.type})&&this.attributes.build()},n.prototype.wrap=function(i,s){var f=r.prototype.wrap.call(this,i,s);return f instanceof n&&f.statics.scope===this.statics.scope&&this.attributes.move(f),f},n}(g.default);p.default=o},function(B,p,d){"use strict";var v,O=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},function(o,r){function n(){this.constructor=o}v(o,r),o.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(p,"__esModule",{value:!0});var u=d(27),y=d(1),g=function(v){function o(){return null!==v&&v.apply(this,arguments)||this}return O(o,v),o.value=function(r){return!0},o.prototype.index=function(r,n){return this.domNode===r||this.domNode.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1},o.prototype.position=function(r,n){var i=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return r>0&&(i+=1),[this.parent.domNode,i]},o.prototype.value=function(){var r;return(r={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,r},o.scope=y.Scope.INLINE_BLOT,o}(u.default);p.default=g},function(B,p,d){function O(v){this.ops=v,this.index=0,this.offset=0}var u=d(12),y=d(2),g={attributes:{compose:function(v,o,r){"object"!=typeof v&&(v={}),"object"!=typeof o&&(o={});var n=y(!0,{},o);for(var i in r||(n=Object.keys(n).reduce(function(s,f){return null!=n[f]&&(s[f]=n[f]),s},{})),v)void 0!==v[i]&&void 0===o[i]&&(n[i]=v[i]);return Object.keys(n).length>0?n:void 0},diff:function(v,o){"object"!=typeof v&&(v={}),"object"!=typeof o&&(o={});var r=Object.keys(v).concat(Object.keys(o)).reduce(function(n,i){return u(v[i],o[i])||(n[i]=void 0===o[i]?null:o[i]),n},{});return Object.keys(r).length>0?r:void 0},transform:function(v,o,r){if("object"!=typeof v)return o;if("object"==typeof o){if(!r)return o;var n=Object.keys(o).reduce(function(i,s){return void 0===v[s]&&(i[s]=o[s]),i},{});return Object.keys(n).length>0?n:void 0}}},iterator:function(v){return new O(v)},length:function(v){return"number"==typeof v.delete?v.delete:"number"==typeof v.retain?v.retain:"string"==typeof v.insert?v.insert.length:1}};O.prototype.hasNext=function(){return this.peekLength()<1/0},O.prototype.next=function(v){v||(v=1/0);var o=this.ops[this.index];if(o){var r=this.offset,n=g.length(o);if(v>=n-r?(v=n-r,this.index+=1,this.offset=0):this.offset+=v,"number"==typeof o.delete)return{delete:v};var i={};return o.attributes&&(i.attributes=o.attributes),"number"==typeof o.retain?i.retain=v:i.insert="string"==typeof o.insert?o.insert.substr(r,v):o.insert,i}return{retain:1/0}},O.prototype.peek=function(){return this.ops[this.index]},O.prototype.peekLength=function(){return this.ops[this.index]?g.length(this.ops[this.index])-this.offset:1/0},O.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},O.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var v=this.offset,o=this.index,r=this.next(),n=this.ops.slice(this.index);return this.offset=v,this.index=o,[r].concat(n)}return[]},B.exports=g},function(B,p){var d=function(){"use strict";function O(f,h){return null!=h&&f instanceof h}function u(f,h,l,c,m){"object"==typeof h&&(l=h.depth,c=h.prototype,m=h.includeNonEnumerable,h=h.circular);var E=[],x=[],S="undefined"!=typeof Buffer;return void 0===h&&(h=!0),void 0===l&&(l=1/0),function a(A,b){if(null===A)return null;if(0===b)return A;var k,_;if("object"!=typeof A)return A;if(O(A,n))k=new n;else if(O(A,i))k=new i;else if(O(A,s))k=new s(function(L,q){A.then(function(M){L(a(M,b-1))},function(M){q(a(M,b-1))})});else if(u.__isArray(A))k=[];else if(u.__isRegExp(A))k=new RegExp(A.source,r(A)),A.lastIndex&&(k.lastIndex=A.lastIndex);else if(u.__isDate(A))k=new Date(A.getTime());else{if(S&&Buffer.isBuffer(A))return k=Buffer.allocUnsafe?Buffer.allocUnsafe(A.length):new Buffer(A.length),A.copy(k),k;O(A,Error)?k=Object.create(A):void 0===c?(_=Object.getPrototypeOf(A),k=Object.create(_)):(k=Object.create(c),_=c)}if(h){var w=E.indexOf(A);if(-1!=w)return x[w];E.push(A),x.push(k)}for(var N in O(A,n)&&A.forEach(function(L,q){var M=a(q,b-1),U=a(L,b-1);k.set(M,U)}),O(A,i)&&A.forEach(function(L){var q=a(L,b-1);k.add(q)}),A){var j;_&&(j=Object.getOwnPropertyDescriptor(_,N)),j&&null==j.set||(k[N]=a(A[N],b-1))}if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(A);for(N=0;N<H.length;N++){var X=H[N];(!(Z=Object.getOwnPropertyDescriptor(A,X))||Z.enumerable||m)&&(k[X]=a(A[X],b-1),Z.enumerable||Object.defineProperty(k,X,{enumerable:!1}))}}if(m){var nt=Object.getOwnPropertyNames(A);for(N=0;N<nt.length;N++){var Z,K=nt[N];(Z=Object.getOwnPropertyDescriptor(A,K))&&Z.enumerable||(k[K]=a(A[K],b-1),Object.defineProperty(k,K,{enumerable:!1}))}}return k}(f,l)}function y(f){return Object.prototype.toString.call(f)}function r(f){var h="";return f.global&&(h+="g"),f.ignoreCase&&(h+="i"),f.multiline&&(h+="m"),h}var n,i,s;try{n=Map}catch(f){n=function(){}}try{i=Set}catch(f){i=function(){}}try{s=Promise}catch(f){s=function(){}}return u.clonePrototype=function(f){if(null===f)return null;var h=function(){};return h.prototype=f,new h},u.__objToStr=y,u.__isDate=function g(f){return"object"==typeof f&&"[object Date]"===y(f)},u.__isArray=function v(f){return"object"==typeof f&&"[object Array]"===y(f)},u.__isRegExp=function o(f){return"object"==typeof f&&"[object RegExp]"===y(f)},u.__getRegExpFlags=r,u}();"object"==typeof B&&B.exports&&(B.exports=d)},function(B,p,d){"use strict";function O(A){return A&&A.__esModule?A:{default:A}}function u(A){if(Array.isArray(A)){for(var b=0,k=Array(A.length);b<A.length;b++)k[b]=A[b];return k}return Array.from(A)}function y(A,b){if(!(A instanceof b))throw new TypeError("Cannot call a class as a function")}function g(A,b){return b instanceof Text&&(b=b.parentNode),A.contains(b)}Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.Range=void 0;var v=function(b,k){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return function A(b,k){var _=[],w=!0,N=!1,j=void 0;try{for(var H,X=b[Symbol.iterator]();!(w=(H=X.next()).done)&&(_.push(H.value),!k||_.length!==k);w=!0);}catch(Z){N=!0,j=Z}finally{try{!w&&X.return&&X.return()}finally{if(N)throw j}}return _}(b,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function A(b,k){for(var _=0;_<k.length;_++){var w=k[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,k,_){return k&&A(b.prototype,k),_&&A(b,_),b}}(),n=O(d(0)),s=O(d(21)),h=O(d(12)),c=O(d(9)),E=(0,O(d(10)).default)("quill:selection"),x=function A(b){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;y(this,A),this.index=b,this.length=k},S=function(){function A(b,k){var _=this;y(this,A),this.emitter=k,this.scroll=b,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=n.default.create("cursor",this),this.lastRange=this.savedRange=new x(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){_.mouseDown||setTimeout(_.update.bind(_,c.default.sources.USER),1)}),this.emitter.on(c.default.events.EDITOR_CHANGE,function(w,N){w===c.default.events.TEXT_CHANGE&&N.length()>0&&_.update(c.default.sources.SILENT)}),this.emitter.on(c.default.events.SCROLL_BEFORE_UPDATE,function(){if(_.hasFocus()){var w=_.getNativeRange();null!=w&&w.start.node!==_.cursor.textNode&&_.emitter.once(c.default.events.SCROLL_UPDATE,function(){try{_.setNativeRange(w.start.node,w.start.offset,w.end.node,w.end.offset)}catch(N){}})}}),this.emitter.on(c.default.events.SCROLL_OPTIMIZE,function(w,N){if(N.range){var j=N.range;_.setNativeRange(j.startNode,j.startOffset,j.endNode,j.endOffset)}}),this.update(c.default.sources.SILENT)}return o(A,[{key:"handleComposition",value:function(){var b=this;this.root.addEventListener("compositionstart",function(){b.composing=!0}),this.root.addEventListener("compositionend",function(){if(b.composing=!1,b.cursor.parent){var k=b.cursor.restore();if(!k)return;setTimeout(function(){b.setNativeRange(k.startNode,k.startOffset,k.endNode,k.endOffset)},1)}})}},{key:"handleDragging",value:function(){var b=this;this.emitter.listenDOM("mousedown",document.body,function(){b.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){b.mouseDown=!1,b.update(c.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(b,k){if(null==this.scroll.whitelist||this.scroll.whitelist[b]){this.scroll.update();var _=this.getNativeRange();if(null!=_&&_.native.collapsed&&!n.default.query(b,n.default.Scope.BLOCK)){if(_.start.node!==this.cursor.textNode){var w=n.default.find(_.start.node,!1);if(null==w)return;if(w instanceof n.default.Leaf){var N=w.split(_.start.offset);w.parent.insertBefore(this.cursor,N)}else w.insertBefore(this.cursor,_.start.node);this.cursor.attach()}this.cursor.format(b,k),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(b){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,_=this.scroll.length();b=Math.min(b,_-1),k=Math.min(b+k,_-1)-b;var w=void 0,N=this.scroll.leaf(b),j=v(N,2),H=j[0],X=j[1];if(null==H)return null;var Z=H.position(X,!0),nt=v(Z,2);w=nt[0],X=nt[1];var K=document.createRange();if(k>0){K.setStart(w,X);var L=this.scroll.leaf(b+k),q=v(L,2);if(null==(H=q[0]))return null;var M=H.position(X=q[1],!0),U=v(M,2);return K.setEnd(w=U[0],X=U[1]),K.getBoundingClientRect()}var G="left",V=void 0;return w instanceof Text?(X<w.data.length?(K.setStart(w,X),K.setEnd(w,X+1)):(K.setStart(w,X-1),K.setEnd(w,X),G="right"),V=K.getBoundingClientRect()):(V=H.domNode.getBoundingClientRect(),X>0&&(G="right")),{bottom:V.top+V.height,height:V.height,left:V[G],right:V[G],top:V.top,width:0}}},{key:"getNativeRange",value:function(){var b=document.getSelection();if(null==b||b.rangeCount<=0)return null;var k=b.getRangeAt(0);if(null==k)return null;var _=this.normalizeNative(k);return E.info("getNativeRange",_),_}},{key:"getRange",value:function(){var b=this.getNativeRange();return null==b?[null,null]:[this.normalizedToRange(b),b]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(b){var k=this,_=[[b.start.node,b.start.offset]];b.native.collapsed||_.push([b.end.node,b.end.offset]);var w=_.map(function(H){var X=v(H,2),Z=X[0],nt=X[1],K=n.default.find(Z,!0),L=K.offset(k.scroll);return 0===nt?L:K instanceof n.default.Container?L+K.length():L+K.index(Z,nt)}),N=Math.min(Math.max.apply(Math,u(w)),this.scroll.length()-1),j=Math.min.apply(Math,[N].concat(u(w)));return new x(j,N-j)}},{key:"normalizeNative",value:function(b){if(!g(this.root,b.startContainer)||!b.collapsed&&!g(this.root,b.endContainer))return null;var k={start:{node:b.startContainer,offset:b.startOffset},end:{node:b.endContainer,offset:b.endOffset},native:b};return[k.start,k.end].forEach(function(_){for(var w=_.node,N=_.offset;!(w instanceof Text)&&w.childNodes.length>0;)if(w.childNodes.length>N)w=w.childNodes[N],N=0;else{if(w.childNodes.length!==N)break;N=(w=w.lastChild)instanceof Text?w.data.length:w.childNodes.length+1}_.node=w,_.offset=N}),k}},{key:"rangeToNative",value:function(b){var k=this,_=b.collapsed?[b.index]:[b.index,b.index+b.length],w=[],N=this.scroll.length();return _.forEach(function(j,H){j=Math.min(N-1,j);var Z=k.scroll.leaf(j),nt=v(Z,2),L=nt[1],q=nt[0].position(L,0!==H),M=v(q,2);w.push(M[0],L=M[1])}),w.length<2&&(w=w.concat(w)),w}},{key:"scrollIntoView",value:function(b){var k=this.lastRange;if(null!=k){var _=this.getBounds(k.index,k.length);if(null!=_){var w=this.scroll.length()-1,N=this.scroll.line(Math.min(k.index,w)),H=v(N,1)[0],X=H;if(k.length>0){var Z=this.scroll.line(Math.min(k.index+k.length,w));X=v(Z,1)[0]}if(null!=H&&null!=X){var nt=b.getBoundingClientRect();_.top<nt.top?b.scrollTop-=nt.top-_.top:_.bottom>nt.bottom&&(b.scrollTop+=_.bottom-nt.bottom)}}}}},{key:"setNativeRange",value:function(b,k){var _=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b,w=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,N=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(E.info("setNativeRange",b,k,_,w),null==b||null!=this.root.parentNode&&null!=b.parentNode&&null!=_.parentNode){var j=document.getSelection();if(null!=j)if(null!=b){this.hasFocus()||this.root.focus();var H=(this.getNativeRange()||{}).native;if(null==H||N||b!==H.startContainer||k!==H.startOffset||_!==H.endContainer||w!==H.endOffset){"BR"==b.tagName&&(k=[].indexOf.call(b.parentNode.childNodes,b),b=b.parentNode),"BR"==_.tagName&&(w=[].indexOf.call(_.parentNode.childNodes,_),_=_.parentNode);var X=document.createRange();X.setStart(b,k),X.setEnd(_,w),j.removeAllRanges(),j.addRange(X)}}else j.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(b){var k=arguments.length>1&&void 0!==arguments[1]&&arguments[1],_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof k&&(_=k,k=!1),E.info("setRange",b),null!=b){var w=this.rangeToNative(b);this.setNativeRange.apply(this,u(w).concat([k]))}else this.setNativeRange(null);this.update(_)}},{key:"update",value:function(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.default.sources.USER,k=this.lastRange,_=this.getRange(),w=v(_,2),N=w[0],j=w[1];if(this.lastRange=N,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,h.default)(k,this.lastRange)){var H;!this.composing&&null!=j&&j.native.collapsed&&j.start.node!==this.cursor.textNode&&this.cursor.restore();var Z,X=[c.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(k),b];(H=this.emitter).emit.apply(H,[c.default.events.EDITOR_CHANGE].concat(X)),b!==c.default.sources.SILENT&&(Z=this.emitter).emit.apply(Z,X)}}}]),A}();p.Range=x,p.default=S},function(B,p,d){"use strict";function O(s){return s&&s.__esModule?s:{default:s}}function u(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}function y(s,f){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?s:f}Object.defineProperty(p,"__esModule",{value:!0});var o=O(d(0)),r=d(3),n=O(r),i=function(s){function f(){return u(this,f),y(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return function g(s,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(s,f):s.__proto__=f)}(f,s),f}(o.default.Container);i.allowedChildren=[n.default,r.BlockEmbed,i],p.default=i},function(B,p,d){"use strict";function O(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function u(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?f:h}Object.defineProperty(p,"__esModule",{value:!0}),p.ColorStyle=p.ColorClass=p.ColorAttributor=void 0;var f,g=function(){function f(h,l){for(var c=0;c<l.length;c++){var m=l[c];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,l,c){return l&&f(h.prototype,l),c&&f(h,c),h}}(),v=function f(h,l,c){null===h&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,l);if(void 0===m){var a=Object.getPrototypeOf(h);return null===a?void 0:f(a,l,c)}if("value"in m)return m.value;var E=m.get;return void 0!==E?E.call(c):void 0},r=(f=d(0))&&f.__esModule?f:{default:f},n=function(f){function h(){return O(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return function y(f,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}(h,f),g(h,[{key:"value",value:function(l){var c=v(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"value",this).call(this,l);return c.startsWith("rgb(")?"#"+(c=c.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(m){return("00"+parseInt(m).toString(16)).slice(-2)}).join(""):c}}]),h}(r.default.Attributor.Style),i=new r.default.Attributor.Class("color","ql-color",{scope:r.default.Scope.INLINE}),s=new n("color","color",{scope:r.default.Scope.INLINE});p.ColorAttributor=n,p.ColorClass=i,p.ColorStyle=s},function(B,p,d){"use strict";function O(D){return D&&D.__esModule?D:{default:D}}function u(D,W,tt){return W in D?Object.defineProperty(D,W,{value:tt,enumerable:!0,configurable:!0,writable:!0}):D[W]=tt,D}function o(D,W){var tt;return u(tt={key:D,shiftKey:W,altKey:null},D===V.keys.LEFT?"prefix":"suffix",/^$/),u(tt,"handler",function(st){var pt=st.index;D===V.keys.RIGHT&&(pt+=st.length+1);var bt=this.quill.getLeaf(pt);return!(m(bt,1)[0]instanceof X.default.Embed&&(D===V.keys.LEFT?W?this.quill.setSelection(st.index-1,st.length+1,nt.default.sources.USER):this.quill.setSelection(st.index-1,nt.default.sources.USER):W?this.quill.setSelection(st.index,st.length+1,nt.default.sources.USER):this.quill.setSelection(st.index+st.length+1,nt.default.sources.USER),1))}),tt}function r(D,W){if(!(0===D.index||this.quill.getLength()<=1)){var tt=this.quill.getLine(D.index),st=m(tt,1)[0],pt={};if(0===W.offset){var bt=this.quill.getLine(D.index-1),At=m(bt,1)[0];if(null!=At&&At.length()>1){var Ct=st.formats(),Lt=this.quill.getFormat(D.index-1,1);pt=j.default.attributes.diff(Ct,Lt)||{}}}var J=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(W.prefix)?2:1;this.quill.deleteText(D.index-J,J,nt.default.sources.USER),Object.keys(pt).length>0&&this.quill.formatLine(D.index-J,J,pt,nt.default.sources.USER),this.quill.focus()}}function n(D,W){var tt=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(W.suffix)?2:1;if(!(D.index>=this.quill.getLength()-tt)){var it={},st=0,pt=this.quill.getLine(D.index),_t=m(pt,1)[0];if(W.offset>=_t.length()-1){var At=this.quill.getLine(D.index+1),Lt=m(At,1)[0];if(Lt){var J=_t.formats(),R=this.quill.getFormat(D.index,1);it=j.default.attributes.diff(J,R)||{},st=Lt.length()}}this.quill.deleteText(D.index,tt,nt.default.sources.USER),Object.keys(it).length>0&&this.quill.formatLine(D.index+st-1,tt,it,nt.default.sources.USER)}}function i(D){var W=this.quill.getLines(D),tt={};if(W.length>1){var it=W[0].formats(),st=W[W.length-1].formats();tt=j.default.attributes.diff(st,it)||{}}this.quill.deleteText(D,nt.default.sources.USER),Object.keys(tt).length>0&&this.quill.formatLine(D.index,1,tt,nt.default.sources.USER),this.quill.setSelection(D.index,nt.default.sources.SILENT),this.quill.focus()}function s(D,W){var tt=this;D.length>0&&this.quill.scroll.deleteAt(D.index,D.length);var it=Object.keys(W.format).reduce(function(st,pt){return X.default.query(pt,X.default.Scope.BLOCK)&&!Array.isArray(W.format[pt])&&(st[pt]=W.format[pt]),st},{});this.quill.insertText(D.index,"\n",it,nt.default.sources.USER),this.quill.setSelection(D.index+1,nt.default.sources.SILENT),this.quill.focus(),Object.keys(W.format).forEach(function(st){null==it[st]&&(Array.isArray(W.format[st])||"link"!==st&&tt.quill.format(st,W.format[st],nt.default.sources.USER))})}function f(D){return{key:V.keys.TAB,shiftKey:!D,format:{"code-block":!0},handler:function(W){var tt=X.default.query("code-block"),it=W.index,st=W.length,pt=this.quill.scroll.descendant(tt,it),bt=m(pt,2),_t=bt[0],At=bt[1];if(null!=_t){var Ct=this.quill.getIndex(_t),Lt=_t.newlineIndex(At,!0)+1,J=_t.newlineIndex(Ct+At+st),R=_t.domNode.textContent.slice(Lt,J).split("\n");At=0,R.forEach(function(T,I){D?(_t.insertAt(Lt+At,tt.TAB),At+=tt.TAB.length,0===I?it+=tt.TAB.length:st+=tt.TAB.length):T.startsWith(tt.TAB)&&(_t.deleteAt(Lt+At,tt.TAB.length),At-=tt.TAB.length,0===I?it-=tt.TAB.length:st-=tt.TAB.length),At+=T.length+1}),this.quill.update(nt.default.sources.USER),this.quill.setSelection(it,st,nt.default.sources.SILENT)}}}}function h(D){return{key:D[0].toUpperCase(),shortKey:!0,handler:function(W,tt){this.quill.format(D,!tt.format[D],nt.default.sources.USER)}}}function l(D){if("string"==typeof D||"number"==typeof D)return l({key:D});if("object"===(void 0===D?"undefined":c(D))&&(D=(0,x.default)(D,!1)),"string"==typeof D.key)if(null!=V.keys[D.key.toUpperCase()])D.key=V.keys[D.key.toUpperCase()];else{if(1!==D.key.length)return null;D.key=D.key.toUpperCase().charCodeAt(0)}return D.shortKey&&(D[G]=D.shortKey,delete D.shortKey),D}Object.defineProperty(p,"__esModule",{value:!0}),p.SHORTKEY=p.default=void 0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(D){return typeof D}:function(D){return D&&"function"==typeof Symbol&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},m=function(W,tt){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return function D(W,tt){var it=[],st=!0,pt=!1,bt=void 0;try{for(var _t,At=W[Symbol.iterator]();!(st=(_t=At.next()).done)&&(it.push(_t.value),!tt||it.length!==tt);st=!0);}catch(Ct){pt=!0,bt=Ct}finally{try{!st&&At.return&&At.return()}finally{if(pt)throw bt}}return it}(W,tt);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function D(W,tt){for(var it=0;it<tt.length;it++){var st=tt[it];st.enumerable=st.enumerable||!1,st.configurable=!0,"value"in st&&(st.writable=!0),Object.defineProperty(W,st.key,st)}}return function(W,tt,it){return tt&&D(W.prototype,tt),it&&D(W,it),W}}(),x=O(d(21)),A=O(d(12)),k=O(d(2)),w=O(d(4)),j=O(d(20)),X=O(d(0)),nt=O(d(6)),L=O(d(10)),M=O(d(7)),U=(0,L.default)("quill:keyboard"),G=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",V=function(D){function W(tt,it){!function y(D,W){if(!(D instanceof W))throw new TypeError("Cannot call a class as a function")}(this,W);var st=function g(D,W){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!W||"object"!=typeof W&&"function"!=typeof W?D:W}(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,tt,it));return st.bindings={},Object.keys(st.options.bindings).forEach(function(pt){("list autofill"!==pt||null==tt.scroll.whitelist||tt.scroll.whitelist.list)&&st.options.bindings[pt]&&st.addBinding(st.options.bindings[pt])}),st.addBinding({key:W.keys.ENTER,shiftKey:null},s),st.addBinding({key:W.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(st.addBinding({key:W.keys.BACKSPACE},{collapsed:!0},r),st.addBinding({key:W.keys.DELETE},{collapsed:!0},n)):(st.addBinding({key:W.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},r),st.addBinding({key:W.keys.DELETE},{collapsed:!0,suffix:/^.?$/},n)),st.addBinding({key:W.keys.BACKSPACE},{collapsed:!1},i),st.addBinding({key:W.keys.DELETE},{collapsed:!1},i),st.addBinding({key:W.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},r),st.listen(),st}return function v(D,W){if("function"!=typeof W&&null!==W)throw new TypeError("Super expression must either be null or a function, not "+typeof W);D.prototype=Object.create(W&&W.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(D,W):D.__proto__=W)}(W,D),a(W,null,[{key:"match",value:function(tt,it){return it=l(it),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(st){return!!it[st]!==tt[st]&&null!==it[st]})&&it.key===(tt.which||tt.keyCode)}}]),a(W,[{key:"addBinding",value:function(tt){var it=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},st=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},pt=l(tt);if(null==pt||null==pt.key)return U.warn("Attempted to add invalid keyboard binding",pt);"function"==typeof it&&(it={handler:it}),"function"==typeof st&&(st={handler:st}),pt=(0,k.default)(pt,it,st),this.bindings[pt.key]=this.bindings[pt.key]||[],this.bindings[pt.key].push(pt)}},{key:"listen",value:function(){var tt=this;this.quill.root.addEventListener("keydown",function(it){if(!it.defaultPrevented){var pt=(tt.bindings[it.which||it.keyCode]||[]).filter(function(gt){return W.match(it,gt)});if(0!==pt.length){var bt=tt.quill.getSelection();if(null!=bt&&tt.quill.hasFocus()){var _t=tt.quill.getLine(bt.index),At=m(_t,2),Ct=At[0],Lt=At[1],J=tt.quill.getLeaf(bt.index),R=m(J,2),T=R[0],I=R[1],Y=0===bt.length?[T,I]:tt.quill.getLeaf(bt.index+bt.length),F=m(Y,2),et=F[0],ot=F[1],ut=T instanceof X.default.Text?T.value().slice(0,I):"",dt=et instanceof X.default.Text?et.value().slice(ot):"",vt={collapsed:0===bt.length,empty:0===bt.length&&Ct.length()<=1,format:tt.quill.getFormat(bt),offset:Lt,prefix:ut,suffix:dt};pt.some(function(gt){if(null!=gt.collapsed&&gt.collapsed!==vt.collapsed||null!=gt.empty&&gt.empty!==vt.empty||null!=gt.offset&&gt.offset!==vt.offset)return!1;if(Array.isArray(gt.format)){if(gt.format.every(function(St){return null==vt.format[St]}))return!1}else if("object"===c(gt.format)&&!Object.keys(gt.format).every(function(St){return!0===gt.format[St]?null!=vt.format[St]:!1===gt.format[St]?null==vt.format[St]:(0,A.default)(gt.format[St],vt.format[St])}))return!1;return!(null!=gt.prefix&&!gt.prefix.test(vt.prefix)||null!=gt.suffix&&!gt.suffix.test(vt.suffix)||!0===gt.handler.call(tt,bt,vt))})&&it.preventDefault()}}}})}}]),W}(M.default);V.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},V.DEFAULTS={bindings:{bold:h("bold"),italic:h("italic"),underline:h("underline"),indent:{key:V.keys.TAB,format:["blockquote","indent","list"],handler:function(D,W){if(W.collapsed&&0!==W.offset)return!0;this.quill.format("indent","+1",nt.default.sources.USER)}},outdent:{key:V.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(D,W){if(W.collapsed&&0!==W.offset)return!0;this.quill.format("indent","-1",nt.default.sources.USER)}},"outdent backspace":{key:V.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(D,W){null!=W.format.indent?this.quill.format("indent","-1",nt.default.sources.USER):null!=W.format.list&&this.quill.format("list",!1,nt.default.sources.USER)}},"indent code-block":f(!0),"outdent code-block":f(!1),"remove tab":{key:V.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(D){this.quill.deleteText(D.index-1,1,nt.default.sources.USER)}},tab:{key:V.keys.TAB,handler:function(D){this.quill.history.cutoff();var W=(new w.default).retain(D.index).delete(D.length).insert("\t");this.quill.updateContents(W,nt.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(D.index+1,nt.default.sources.SILENT)}},"list empty enter":{key:V.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(D,W){this.quill.format("list",!1,nt.default.sources.USER),W.format.indent&&this.quill.format("indent",!1,nt.default.sources.USER)}},"checklist enter":{key:V.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(D){var W=this.quill.getLine(D.index),tt=m(W,2),it=tt[0],st=tt[1],pt=(0,k.default)({},it.formats(),{list:"checked"}),bt=(new w.default).retain(D.index).insert("\n",pt).retain(it.length()-st-1).retain(1,{list:"unchecked"});this.quill.updateContents(bt,nt.default.sources.USER),this.quill.setSelection(D.index+1,nt.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:V.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(D,W){var tt=this.quill.getLine(D.index),it=m(tt,2),st=it[0],pt=it[1],bt=(new w.default).retain(D.index).insert("\n",W.format).retain(st.length()-pt-1).retain(1,{header:null});this.quill.updateContents(bt,nt.default.sources.USER),this.quill.setSelection(D.index+1,nt.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(D,W){var tt=W.prefix.length,it=this.quill.getLine(D.index),st=m(it,2),pt=st[0],bt=st[1];if(bt>tt)return!0;var _t=void 0;switch(W.prefix.trim()){case"[]":case"[ ]":_t="unchecked";break;case"[x]":_t="checked";break;case"-":case"*":_t="bullet";break;default:_t="ordered"}this.quill.insertText(D.index," ",nt.default.sources.USER),this.quill.history.cutoff();var At=(new w.default).retain(D.index-bt).delete(tt+1).retain(pt.length()-2-bt).retain(1,{list:_t});this.quill.updateContents(At,nt.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(D.index-tt,nt.default.sources.SILENT)}},"code exit":{key:V.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(D){var W=this.quill.getLine(D.index),tt=m(W,2),it=tt[0],st=tt[1],pt=(new w.default).retain(D.index+it.length()-st-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(pt,nt.default.sources.USER)}},"embed left":o(V.keys.LEFT,!1),"embed left shift":o(V.keys.LEFT,!0),"embed right":o(V.keys.RIGHT,!1),"embed right shift":o(V.keys.RIGHT,!0)}},p.default=V,p.SHORTKEY=G},function(B,p,d){"use strict";B.exports={align:{"":d(75),center:d(76),right:d(77),justify:d(78)},background:d(79),blockquote:d(80),bold:d(81),clean:d(82),code:d(40),"code-block":d(40),color:d(83),direction:{"":d(84),rtl:d(85)},float:{center:d(86),full:d(87),left:d(88),right:d(89)},formula:d(90),header:{1:d(91),2:d(92)},italic:d(93),image:d(94),indent:{"+1":d(95),"-1":d(96)},link:d(97),list:{ordered:d(98),bullet:d(99),check:d(100)},script:{sub:d(101),super:d(102)},strike:d(103),underline:d(104),video:d(105)}},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=d(1),u=function(){function y(g){this.domNode=g,this.domNode[O.DATA_KEY]={blot:this}}return Object.defineProperty(y.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),y.create=function(g){if(null==this.tagName)throw new O.ParchmentError("Blot definition missing tagName");var v;return Array.isArray(this.tagName)?("string"==typeof g&&(g=g.toUpperCase(),parseInt(g).toString()===g&&(g=parseInt(g))),v="number"==typeof g?document.createElement(this.tagName[g-1]):this.tagName.indexOf(g)>-1?document.createElement(g):document.createElement(this.tagName[0])):v=document.createElement(this.tagName),this.className&&v.classList.add(this.className),v},y.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},y.prototype.clone=function(){var g=this.domNode.cloneNode(!1);return O.create(g)},y.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[O.DATA_KEY]},y.prototype.deleteAt=function(g,v){this.isolate(g,v).remove()},y.prototype.formatAt=function(g,v,o,r){var n=this.isolate(g,v);if(null!=O.query(o,O.Scope.BLOT)&&r)n.wrap(o,r);else if(null!=O.query(o,O.Scope.ATTRIBUTE)){var i=O.create(this.statics.scope);n.wrap(i),i.format(o,r)}},y.prototype.insertAt=function(g,v,o){var r=null==o?O.create("text",v):O.create(v,o),n=this.split(g);this.parent.insertBefore(r,n)},y.prototype.insertInto=function(g,v){void 0===v&&(v=null),null!=this.parent&&this.parent.children.remove(this);var o=null;g.children.insertBefore(this,v),null!=v&&(o=v.domNode),this.domNode.parentNode==g.domNode&&this.domNode.nextSibling==o||g.domNode.insertBefore(this.domNode,o),this.parent=g,this.attach()},y.prototype.isolate=function(g,v){var o=this.split(g);return o.split(v),o},y.prototype.length=function(){return 1},y.prototype.offset=function(g){return void 0===g&&(g=this.parent),null==this.parent||this==g?0:this.parent.children.offset(this)+this.parent.offset(g)},y.prototype.optimize=function(g){null!=this.domNode[O.DATA_KEY]&&delete this.domNode[O.DATA_KEY].mutations},y.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},y.prototype.replace=function(g){null!=g.parent&&(g.parent.insertBefore(this,g.next),g.remove())},y.prototype.replaceWith=function(g,v){var o="string"==typeof g?O.create(g,v):g;return o.replace(this),o},y.prototype.split=function(g,v){return 0===g?this:this.next},y.prototype.update=function(g,v){},y.prototype.wrap=function(g,v){var o="string"==typeof g?O.create(g,v):g;return null!=this.parent&&this.parent.insertBefore(o,this.next),o.appendChild(this),o},y.blotName="abstract",y}();p.default=u},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=d(11),u=d(29),y=d(30),g=d(1),v=function(){function o(r){this.attributes={},this.domNode=r,this.build()}return o.prototype.attribute=function(r,n){n?r.add(this.domNode,n)&&(null!=r.value(this.domNode)?this.attributes[r.attrName]=r:delete this.attributes[r.attrName]):(r.remove(this.domNode),delete this.attributes[r.attrName])},o.prototype.build=function(){var r=this;this.attributes={};var n=O.default.keys(this.domNode),i=u.default.keys(this.domNode),s=y.default.keys(this.domNode);n.concat(i).concat(s).forEach(function(f){var h=g.query(f,g.Scope.ATTRIBUTE);h instanceof O.default&&(r.attributes[h.attrName]=h)})},o.prototype.copy=function(r){var n=this;Object.keys(this.attributes).forEach(function(i){var s=n.attributes[i].value(n.domNode);r.format(i,s)})},o.prototype.move=function(r){var n=this;this.copy(r),Object.keys(this.attributes).forEach(function(i){n.attributes[i].remove(n.domNode)}),this.attributes={}},o.prototype.values=function(){var r=this;return Object.keys(this.attributes).reduce(function(n,i){return n[i]=r.attributes[i].value(r.domNode),n},{})},o}();p.default=v},function(B,p,d){"use strict";function O(v,o){return(v.getAttribute("class")||"").split(/\s+/).filter(function(r){return 0===r.indexOf(o+"-")})}var v,u=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},function(o,r){function n(){this.constructor=o}v(o,r),o.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(p,"__esModule",{value:!0});var g=function(v){function o(){return null!==v&&v.apply(this,arguments)||this}return u(o,v),o.keys=function(r){return(r.getAttribute("class")||"").split(/\s+/).map(function(n){return n.split("-").slice(0,-1).join("-")})},o.prototype.add=function(r,n){return!!this.canAdd(r,n)&&(this.remove(r),r.classList.add(this.keyName+"-"+n),!0)},o.prototype.remove=function(r){O(r,this.keyName).forEach(function(n){r.classList.remove(n)}),0===r.classList.length&&r.removeAttribute("class")},o.prototype.value=function(r){var i=(O(r,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(r,i)?i:""},o}(d(11).default);p.default=g},function(B,p,d){"use strict";function O(v){var o=v.split("-"),r=o.slice(1).map(function(n){return n[0].toUpperCase()+n.slice(1)}).join("");return o[0]+r}var v,u=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},function(o,r){function n(){this.constructor=o}v(o,r),o.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(p,"__esModule",{value:!0});var g=function(v){function o(){return null!==v&&v.apply(this,arguments)||this}return u(o,v),o.keys=function(r){return(r.getAttribute("style")||"").split(";").map(function(n){return n.split(":")[0].trim()})},o.prototype.add=function(r,n){return!!this.canAdd(r,n)&&(r.style[O(this.keyName)]=n,!0)},o.prototype.remove=function(r){r.style[O(this.keyName)]="",r.getAttribute("style")||r.removeAttribute("style")},o.prototype.value=function(r){var n=r.style[O(this.keyName)];return this.canAdd(r,n)?n:""},o}(d(11).default);p.default=g},function(B,p,d){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(p,"__esModule",{value:!0});var o=function l(c,m,a){null===c&&(c=Function.prototype);var E=Object.getOwnPropertyDescriptor(c,m);if(void 0===E){var x=Object.getPrototypeOf(c);return null===x?void 0:l(x,m,a)}if("value"in E)return E.value;var S=E.get;return void 0!==S?S.call(a):void 0},r=function(){function l(c,m){for(var a=0;a<m.length;a++){var E=m[a];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(c,E.key,E)}}return function(c,m,a){return m&&l(c.prototype,m),a&&l(c,a),c}}(),i=O(d(0)),f=O(d(8)),h=function(l){function c(m,a){!function u(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}(this,c);var E=function y(l,c){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!=typeof c&&"function"!=typeof c?l:c}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,m));return E.selection=a,E.textNode=document.createTextNode(c.CONTENTS),E.domNode.appendChild(E.textNode),E._length=0,E}return function g(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(l,c):l.__proto__=c)}(c,l),r(c,null,[{key:"value",value:function(){}}]),r(c,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(m,a){if(0!==this._length)return o(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,m,a);for(var E=this,x=0;null!=E&&E.statics.scope!==i.default.Scope.BLOCK_BLOT;)x+=E.offset(E.parent),E=E.parent;null!=E&&(this._length=c.CONTENTS.length,E.optimize(),E.formatAt(x,c.CONTENTS.length,m,a),this._length=0)}},{key:"index",value:function(m,a){return m===this.textNode?0:o(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"index",this).call(this,m,a)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var m=this.textNode,a=this.selection.getNativeRange(),E=void 0,x=void 0,S=void 0;if(null!=a&&a.start.node===m&&a.end.node===m){var A=[m,a.start.offset,a.end.offset];E=A[0],x=A[1],S=A[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==c.CONTENTS){var b=this.textNode.data.split(c.CONTENTS).join("");this.next instanceof f.default?(E=this.next.domNode,this.next.insertAt(0,b),this.textNode.data=c.CONTENTS):(this.textNode.data=b,this.parent.insertBefore(i.default.create(this.textNode),this),this.textNode=document.createTextNode(c.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=x){var _=function(c,m){if(Array.isArray(c))return c;if(Symbol.iterator in Object(c))return function l(c,m){var a=[],E=!0,x=!1,S=void 0;try{for(var A,b=c[Symbol.iterator]();!(E=(A=b.next()).done)&&(a.push(A.value),!m||a.length!==m);E=!0);}catch(k){x=!0,S=k}finally{try{!E&&b.return&&b.return()}finally{if(x)throw S}}return a}(c,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}([x,S].map(function(w){return Math.max(0,Math.min(E.data.length,w-1))}),2);return{startNode:E,startOffset:x=_[0],endNode:E,endOffset:S=_[1]}}}}},{key:"update",value:function(m,a){var E=this;if(m.some(function(S){return"characterData"===S.type&&S.target===E.textNode})){var x=this.restore();x&&(a.range=x)}}},{key:"value",value:function(){return""}}]),c}(i.default.Embed);h.blotName="cursor",h.className="ql-cursor",h.tagName="span",h.CONTENTS="\ufeff",p.default=h},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var u=function(){function g(v,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(v,n.key,n)}}return function(v,o,r){return o&&g(v.prototype,o),r&&g(v,r),v}}(),y=function(){function g(v,o){(function O(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")})(this,g),this.quill=v,this.options=o,this.modules={}}return u(g,[{key:"init",value:function(){var v=this;Object.keys(this.options.modules).forEach(function(o){null==v.modules[o]&&v.addModule(o)})}},{key:"addModule",value:function(v){var o=this.quill.constructor.import("modules/"+v);return this.modules[v]=new o(this.quill,this.options.modules[v]||{}),this.modules[v]}}]),g}();y.DEFAULTS={modules:{}},y.themes={default:y},p.default=y},function(B,p,d){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(p,"__esModule",{value:!0});var v=function(){function l(c,m){for(var a=0;a<m.length;a++){var E=m[a];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(c,E.key,E)}}return function(c,m,a){return m&&l(c.prototype,m),a&&l(c,a),c}}(),o=function l(c,m,a){null===c&&(c=Function.prototype);var E=Object.getOwnPropertyDescriptor(c,m);if(void 0===E){var x=Object.getPrototypeOf(c);return null===x?void 0:l(x,m,a)}if("value"in E)return E.value;var S=E.get;return void 0!==S?S.call(a):void 0},n=O(d(0)),s=O(d(8)),f="\ufeff",h=function(l){function c(m){!function u(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}(this,c);var a=function y(l,c){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!=typeof c&&"function"!=typeof c?l:c}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,m));return a.contentNode=document.createElement("span"),a.contentNode.setAttribute("contenteditable",!1),[].slice.call(a.domNode.childNodes).forEach(function(E){a.contentNode.appendChild(E)}),a.leftGuard=document.createTextNode(f),a.rightGuard=document.createTextNode(f),a.domNode.appendChild(a.leftGuard),a.domNode.appendChild(a.contentNode),a.domNode.appendChild(a.rightGuard),a}return function g(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(l,c):l.__proto__=c)}(c,l),v(c,[{key:"index",value:function(m,a){return m===this.leftGuard?0:m===this.rightGuard?1:o(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"index",this).call(this,m,a)}},{key:"restore",value:function(m){var a=void 0,E=void 0,x=m.data.split(f).join("");if(m===this.leftGuard)if(this.prev instanceof s.default){var S=this.prev.length();this.prev.insertAt(S,x),a={startNode:this.prev.domNode,startOffset:S+x.length}}else E=document.createTextNode(x),this.parent.insertBefore(n.default.create(E),this),a={startNode:E,startOffset:x.length};else m===this.rightGuard&&(this.next instanceof s.default?(this.next.insertAt(0,x),a={startNode:this.next.domNode,startOffset:x.length}):(E=document.createTextNode(x),this.parent.insertBefore(n.default.create(E),this.next),a={startNode:E,startOffset:x.length}));return m.data=f,a}},{key:"update",value:function(m,a){var E=this;m.forEach(function(x){if("characterData"===x.type&&(x.target===E.leftGuard||x.target===E.rightGuard)){var S=E.restore(x.target);S&&(a.range=S)}})}}]),c}(n.default.Embed);p.default=h},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AlignStyle=p.AlignClass=p.AlignAttribute=void 0;var r,u=(r=d(0))&&r.__esModule?r:{default:r},y={scope:u.default.Scope.BLOCK,whitelist:["right","center","justify"]},g=new u.default.Attributor.Attribute("align","align",y),v=new u.default.Attributor.Class("align","ql-align",y),o=new u.default.Attributor.Style("align","text-align",y);p.AlignAttribute=g,p.AlignClass=v,p.AlignStyle=o},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BackgroundStyle=p.BackgroundClass=void 0;var o,u=(o=d(0))&&o.__esModule?o:{default:o},y=d(24),g=new u.default.Attributor.Class("background","ql-bg",{scope:u.default.Scope.INLINE}),v=new y.ColorAttributor("background","background-color",{scope:u.default.Scope.INLINE});p.BackgroundClass=g,p.BackgroundStyle=v},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DirectionStyle=p.DirectionClass=p.DirectionAttribute=void 0;var r,u=(r=d(0))&&r.__esModule?r:{default:r},y={scope:u.default.Scope.BLOCK,whitelist:["rtl"]},g=new u.default.Attributor.Attribute("direction","dir",y),v=new u.default.Attributor.Class("direction","ql-direction",y),o=new u.default.Attributor.Style("direction","direction",y);p.DirectionAttribute=g,p.DirectionClass=v,p.DirectionStyle=o},function(B,p,d){"use strict";function O(h,l){if(!(h instanceof l))throw new TypeError("Cannot call a class as a function")}function u(h,l){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?h:l}Object.defineProperty(p,"__esModule",{value:!0}),p.FontClass=p.FontStyle=void 0;var h,g=function(){function h(l,c){for(var m=0;m<c.length;m++){var a=c[m];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}}return function(l,c,m){return c&&h(l.prototype,c),m&&h(l,m),l}}(),v=function h(l,c,m){null===l&&(l=Function.prototype);var a=Object.getOwnPropertyDescriptor(l,c);if(void 0===a){var E=Object.getPrototypeOf(l);return null===E?void 0:h(E,c,m)}if("value"in a)return a.value;var x=a.get;return void 0!==x?x.call(m):void 0},r=(h=d(0))&&h.__esModule?h:{default:h},n={scope:r.default.Scope.INLINE,whitelist:["serif","monospace"]},i=new r.default.Attributor.Class("font","ql-font",n),s=function(h){function l(){return O(this,l),u(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function y(h,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);h.prototype=Object.create(l&&l.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(h,l):h.__proto__=l)}(l,h),g(l,[{key:"value",value:function(c){return v(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"value",this).call(this,c).replace(/["']/g,"")}}]),l}(r.default.Attributor.Style),f=new s("font","font-family",n);p.FontStyle=f,p.FontClass=i},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SizeStyle=p.SizeClass=void 0;var v,u=(v=d(0))&&v.__esModule?v:{default:v},y=new u.default.Attributor.Class("size","ql-size",{scope:u.default.Scope.INLINE,whitelist:["small","large","huge"]}),g=new u.default.Attributor.Style("size","font-size",{scope:u.default.Scope.INLINE,whitelist:["10px","18px","32px"]});p.SizeClass=y,p.SizeStyle=g},function(B,p,d){"use strict";function O(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function u(i,s){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!=typeof s&&"function"!=typeof s?i:s}Object.defineProperty(p,"__esModule",{value:!0});var i,g=function(){function i(s,f){for(var h=0;h<f.length;h++){var l=f[h];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,f,h){return f&&i(s.prototype,f),h&&i(s,h),s}}(),v=function i(s,f,h){null===s&&(s=Function.prototype);var l=Object.getOwnPropertyDescriptor(s,f);if(void 0===l){var c=Object.getPrototypeOf(s);return null===c?void 0:i(c,f,h)}if("value"in l)return l.value;var m=l.get;return void 0!==m?m.call(h):void 0},n=function(i){function s(){return O(this,s),u(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return function y(i,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(i,s):i.__proto__=s)}(s,i),g(s,[{key:"optimize",value:function(f){v(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"optimize",this).call(this,f),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return v(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),s}(((i=d(5))&&i.__esModule?i:{default:i}).default);n.blotName="bold",n.tagName=["STRONG","B"],p.default=n},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var i,g=function(){function i(s,f){for(var h=0;h<f.length;h++){var l=f[h];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,f,h){return f&&i(s.prototype,f),h&&i(s,h),s}}(),v=function i(s,f,h){null===s&&(s=Function.prototype);var l=Object.getOwnPropertyDescriptor(s,f);if(void 0===l){var c=Object.getPrototypeOf(s);return null===c?void 0:i(c,f,h)}if("value"in l)return l.value;var m=l.get;return void 0!==m?m.call(h):void 0},n=function(i){function s(f,h){!function O(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}(this,s);var l=function u(i,s){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!=typeof s&&"function"!=typeof s?i:s}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,f));return l.label.innerHTML=h,l.container.classList.add("ql-color-picker"),[].slice.call(l.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(c){c.classList.add("ql-primary")}),l}return function y(i,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(i,s):i.__proto__=s)}(s,i),g(s,[{key:"buildItem",value:function(f){var h=v(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"buildItem",this).call(this,f);return h.style.backgroundColor=f.getAttribute("value")||"",h}},{key:"selectItem",value:function(f,h){v(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"selectItem",this).call(this,f,h);var l=this.label.querySelector(".ql-color-label"),c=f&&f.getAttribute("data-value")||"";l&&("line"===l.tagName?l.style.stroke=c:l.style.fill=c)}}]),s}(((i=d(16))&&i.__esModule?i:{default:i}).default);p.default=n},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var i,g=function(){function i(s,f){for(var h=0;h<f.length;h++){var l=f[h];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,f,h){return f&&i(s.prototype,f),h&&i(s,h),s}}(),v=function i(s,f,h){null===s&&(s=Function.prototype);var l=Object.getOwnPropertyDescriptor(s,f);if(void 0===l){var c=Object.getPrototypeOf(s);return null===c?void 0:i(c,f,h)}if("value"in l)return l.value;var m=l.get;return void 0!==m?m.call(h):void 0},n=function(i){function s(f,h){!function O(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}(this,s);var l=function u(i,s){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!=typeof s&&"function"!=typeof s?i:s}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,f));return l.container.classList.add("ql-icon-picker"),[].forEach.call(l.container.querySelectorAll(".ql-picker-item"),function(c){c.innerHTML=h[c.getAttribute("data-value")||""]}),l.defaultItem=l.container.querySelector(".ql-selected"),l.selectItem(l.defaultItem),l}return function y(i,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(i,s):i.__proto__=s)}(s,i),g(s,[{key:"selectItem",value:function(f,h){v(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"selectItem",this).call(this,f,h),this.label.innerHTML=(f=f||this.defaultItem).innerHTML}}]),s}(((i=d(16))&&i.__esModule?i:{default:i}).default);p.default=n},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var u=function(){function g(v,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(v,n.key,n)}}return function(v,o,r){return o&&g(v.prototype,o),r&&g(v,r),v}}(),y=function(){function g(v,o){var r=this;(function O(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")})(this,g),this.quill=v,this.boundsContainer=o||document.body,this.root=v.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"}),this.hide()}return u(g,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(v){var o=v.left+v.width/2-this.root.offsetWidth/2,r=v.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=r+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),s=0;return i.right>n.right&&(this.root.style.left=o+(s=n.right-i.right)+"px"),i.left<n.left&&(this.root.style.left=o+(s=n.left-i.left)+"px"),i.bottom>n.bottom&&(this.root.style.top=r-(v.bottom-v.top+(i.bottom-i.top))+"px",this.root.classList.add("ql-flip")),s}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),g}();p.default=y},function(B,p,d){"use strict";function O(M){return M&&M.__esModule?M:{default:M}}function u(M,U){if(!(M instanceof U))throw new TypeError("Cannot call a class as a function")}function y(M,U){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!U||"object"!=typeof U&&"function"!=typeof U?M:U}function g(M,U){if("function"!=typeof U&&null!==U)throw new TypeError("Super expression must either be null or a function, not "+typeof U);M.prototype=Object.create(U&&U.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(M,U):M.__proto__=U)}function o(M,U){var G=arguments.length>2&&void 0!==arguments[2]&&arguments[2];U.forEach(function(V){var D=document.createElement("option");V===G?D.setAttribute("selected","selected"):D.setAttribute("value",V),M.appendChild(D)})}Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BaseTooltip=void 0;var r=function(){function M(U,G){for(var V=0;V<G.length;V++){var D=G[V];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(U,D.key,D)}}return function(U,G,V){return G&&M(U.prototype,G),V&&M(U,V),U}}(),n=function M(U,G,V){null===U&&(U=Function.prototype);var D=Object.getOwnPropertyDescriptor(U,G);if(void 0===D){var W=Object.getPrototypeOf(U);return null===W?void 0:M(W,G,V)}if("value"in D)return D.value;var tt=D.get;return void 0!==tt?tt.call(V):void 0},s=O(d(2)),h=O(d(4)),c=O(d(9)),a=O(d(25)),x=O(d(32)),A=O(d(41)),k=O(d(42)),w=O(d(16)),j=O(d(43)),H=[!1,"center","right","justify"],X=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Z=[!1,"serif","monospace"],nt=["1","2","3",!1],K=["small",!1,"large","huge"],L=function(M){function U(G,V){u(this,U);var D=y(this,(U.__proto__||Object.getPrototypeOf(U)).call(this,G,V));return G.emitter.listenDOM("click",document.body,function tt(it){if(!document.body.contains(G.root))return document.body.removeEventListener("click",tt);null==D.tooltip||D.tooltip.root.contains(it.target)||document.activeElement===D.tooltip.textbox||D.quill.hasFocus()||D.tooltip.hide(),null!=D.pickers&&D.pickers.forEach(function(st){st.container.contains(it.target)||st.close()})}),D}return g(U,M),r(U,[{key:"addModule",value:function(G){var V=n(U.prototype.__proto__||Object.getPrototypeOf(U.prototype),"addModule",this).call(this,G);return"toolbar"===G&&this.extendToolbar(V),V}},{key:"buildButtons",value:function(G,V){G.forEach(function(D){(D.getAttribute("class")||"").split(/\s+/).forEach(function(W){if(W.startsWith("ql-")&&(W=W.slice(3),null!=V[W]))if("direction"===W)D.innerHTML=V[W][""]+V[W].rtl;else if("string"==typeof V[W])D.innerHTML=V[W];else{var tt=D.value||"";null!=tt&&V[W][tt]&&(D.innerHTML=V[W][tt])}})})}},{key:"buildPickers",value:function(G,V){var D=this;this.pickers=G.map(function(tt){if(tt.classList.contains("ql-align"))return null==tt.querySelector("option")&&o(tt,H),new k.default(tt,V.align);if(tt.classList.contains("ql-background")||tt.classList.contains("ql-color")){var it=tt.classList.contains("ql-background")?"background":"color";return null==tt.querySelector("option")&&o(tt,X,"background"===it?"#ffffff":"#000000"),new A.default(tt,V[it])}return null==tt.querySelector("option")&&(tt.classList.contains("ql-font")?o(tt,Z):tt.classList.contains("ql-header")?o(tt,nt):tt.classList.contains("ql-size")&&o(tt,K)),new w.default(tt)}),this.quill.on(c.default.events.EDITOR_CHANGE,function(){D.pickers.forEach(function(tt){tt.update()})})}}]),U}(x.default);L.DEFAULTS=(0,s.default)(!0,{},x.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var M=this,U=this.container.querySelector("input.ql-image[type=file]");null==U&&((U=document.createElement("input")).setAttribute("type","file"),U.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),U.classList.add("ql-image"),U.addEventListener("change",function(){if(null!=U.files&&null!=U.files[0]){var G=new FileReader;G.onload=function(V){var D=M.quill.getSelection(!0);M.quill.updateContents((new h.default).retain(D.index).delete(D.length).insert({image:V.target.result}),c.default.sources.USER),M.quill.setSelection(D.index+1,c.default.sources.SILENT),U.value=""},G.readAsDataURL(U.files[0])}}),this.container.appendChild(U)),U.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var q=function(M){function U(G,V){u(this,U);var D=y(this,(U.__proto__||Object.getPrototypeOf(U)).call(this,G,V));return D.textbox=D.root.querySelector('input[type="text"]'),D.listen(),D}return g(U,M),r(U,[{key:"listen",value:function(){var G=this;this.textbox.addEventListener("keydown",function(V){a.default.match(V,"enter")?(G.save(),V.preventDefault()):a.default.match(V,"escape")&&(G.cancel(),V.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=V?this.textbox.value=V:G!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+G)||""),this.root.setAttribute("data-mode",G)}},{key:"restoreFocus",value:function(){var G=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=G}},{key:"save",value:function(){var G=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var V=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",G,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",G,c.default.sources.USER)),this.quill.root.scrollTop=V;break;case"video":G=function v(M){var U=M.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||M.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return U?(U[1]||"https")+"://www.youtube.com/embed/"+U[2]+"?showinfo=0":(U=M.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(U[1]||"https")+"://player.vimeo.com/video/"+U[2]+"/":M}(G);case"formula":if(!G)break;var D=this.quill.getSelection(!0);if(null!=D){var W=D.index+D.length;this.quill.insertEmbed(W,this.root.getAttribute("data-mode"),G,c.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(W+1," ",c.default.sources.USER),this.quill.setSelection(W+2,c.default.sources.USER)}}this.textbox.value="",this.hide()}}]),U}(j.default);p.BaseTooltip=q,p.default=L},function(B,p,d){"use strict";function O(et){return et&&et.__esModule?et:{default:et}}Object.defineProperty(p,"__esModule",{value:!0});var y=O(d(46)),g=d(34),v=d(36),o=d(62),n=O(d(63)),s=O(d(64)),f=d(65),h=O(f),l=d(35),c=d(24),m=d(37),a=d(38),x=O(d(39)),A=O(d(66)),k=O(d(15)),w=O(d(67)),j=O(d(68)),X=O(d(69)),nt=O(d(70)),L=O(d(71)),q=d(13),M=O(q),G=O(d(72)),D=O(d(73)),tt=O(d(74)),st=O(d(26)),bt=O(d(16)),At=O(d(41)),Lt=O(d(42)),R=O(d(43)),I=O(d(107)),F=O(d(108));y.default.register({"attributors/attribute/direction":v.DirectionAttribute,"attributors/class/align":g.AlignClass,"attributors/class/background":l.BackgroundClass,"attributors/class/color":c.ColorClass,"attributors/class/direction":v.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":a.SizeClass,"attributors/style/align":g.AlignStyle,"attributors/style/background":l.BackgroundStyle,"attributors/style/color":c.ColorStyle,"attributors/style/direction":v.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":a.SizeStyle},!0),y.default.register({"formats/align":g.AlignClass,"formats/direction":v.DirectionClass,"formats/indent":o.IndentClass,"formats/background":l.BackgroundStyle,"formats/color":c.ColorStyle,"formats/font":m.FontClass,"formats/size":a.SizeClass,"formats/blockquote":n.default,"formats/code-block":M.default,"formats/header":s.default,"formats/list":h.default,"formats/bold":x.default,"formats/code":q.Code,"formats/italic":A.default,"formats/link":k.default,"formats/script":w.default,"formats/strike":j.default,"formats/underline":X.default,"formats/image":nt.default,"formats/video":L.default,"formats/list/item":f.ListItem,"modules/formula":G.default,"modules/syntax":D.default,"modules/toolbar":tt.default,"themes/bubble":I.default,"themes/snow":F.default,"ui/icons":st.default,"ui/picker":bt.default,"ui/icon-picker":Lt.default,"ui/color-picker":At.default,"ui/tooltip":R.default},!0),p.default=y.default},function(B,p,d){"use strict";function O(X){return X&&X.__esModule?X:{default:X}}Object.defineProperty(p,"__esModule",{value:!0});var y=O(d(0)),v=O(d(6)),o=d(3),r=O(o),i=O(d(14)),f=O(d(23)),l=O(d(31)),m=O(d(33)),E=O(d(5)),S=O(d(59)),b=O(d(8)),_=O(d(60)),N=O(d(61)),H=O(d(25));v.default.register({"blots/block":r.default,"blots/block/embed":o.BlockEmbed,"blots/break":i.default,"blots/container":f.default,"blots/cursor":l.default,"blots/embed":m.default,"blots/inline":E.default,"blots/scroll":S.default,"blots/text":b.default,"modules/clipboard":_.default,"modules/history":N.default,"modules/keyboard":H.default}),y.default.register(r.default,i.default,l.default,E.default,S.default,b.default),p.default=v.default},function(B,p,d){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var O=function(){function u(){this.head=this.tail=null,this.length=0}return u.prototype.append=function(){for(var y=[],g=0;g<arguments.length;g++)y[g]=arguments[g];this.insertBefore(y[0],null),y.length>1&&this.append.apply(this,y.slice(1))},u.prototype.contains=function(y){for(var g,v=this.iterator();g=v();)if(g===y)return!0;return!1},u.prototype.insertBefore=function(y,g){y&&(y.next=g,null!=g?(y.prev=g.prev,null!=g.prev&&(g.prev.next=y),g.prev=y,g===this.head&&(this.head=y)):null!=this.tail?(this.tail.next=y,y.prev=this.tail,this.tail=y):(y.prev=null,this.head=this.tail=y),this.length+=1)},u.prototype.offset=function(y){for(var g=0,v=this.head;null!=v;){if(v===y)return g;g+=v.length(),v=v.next}return-1},u.prototype.remove=function(y){this.contains(y)&&(null!=y.prev&&(y.prev.next=y.next),null!=y.next&&(y.next.prev=y.prev),y===this.head&&(this.head=y.next),y===this.tail&&(this.tail=y.prev),this.length-=1)},u.prototype.iterator=function(y){return void 0===y&&(y=this.head),function(){var g=y;return null!=y&&(y=y.next),g}},u.prototype.find=function(y,g){void 0===g&&(g=!1);for(var v,o=this.iterator();v=o();){var r=v.length();if(y<r||g&&y===r&&(null==v.next||0!==v.next.length()))return[v,y];y-=r}return[null,0]},u.prototype.forEach=function(y){for(var g,v=this.iterator();g=v();)y(g)},u.prototype.forEachAt=function(y,g,v){if(!(g<=0))for(var o,r=this.find(y),s=y-r[1],f=this.iterator(r[0]);(o=f())&&s<y+g;){var h=o.length();y>s?v(o,y-s,Math.min(g,s+h-y)):v(o,0,Math.min(h,y+g-s)),s+=h}},u.prototype.map=function(y){return this.reduce(function(g,v){return g.push(y(v)),g},[])},u.prototype.reduce=function(y,g){for(var v,o=this.iterator();v=o();)g=y(g,v);return g},u}();p.default=O},function(B,p,d){"use strict";var o,O=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},function(r,n){function i(){this.constructor=r}o(r,n),r.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)});Object.defineProperty(p,"__esModule",{value:!0});var u=d(17),y=d(1),g={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},v=function(o){function r(n){var i=o.call(this,n)||this;return i.scroll=i,i.observer=new MutationObserver(function(s){i.update(s)}),i.observer.observe(i.domNode,g),i.attach(),i}return O(r,o),r.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},r.prototype.deleteAt=function(n,i){this.update(),0===n&&i===this.length()?this.children.forEach(function(s){s.remove()}):o.prototype.deleteAt.call(this,n,i)},r.prototype.formatAt=function(n,i,s,f){this.update(),o.prototype.formatAt.call(this,n,i,s,f)},r.prototype.insertAt=function(n,i,s){this.update(),o.prototype.insertAt.call(this,n,i,s)},r.prototype.optimize=function(n,i){var s=this;void 0===n&&(n=[]),void 0===i&&(i={}),o.prototype.optimize.call(this,i);for(var f=[].slice.call(this.observer.takeRecords());f.length>0;)n.push(f.pop());for(var h=function(a,E){void 0===E&&(E=!0),null!=a&&a!==s&&null!=a.domNode.parentNode&&(null==a.domNode[y.DATA_KEY].mutations&&(a.domNode[y.DATA_KEY].mutations=[]),E&&h(a.parent))},l=function(a){null!=a.domNode[y.DATA_KEY]&&null!=a.domNode[y.DATA_KEY].mutations&&(a instanceof u.default&&a.children.forEach(l),a.optimize(i))},c=n,m=0;c.length>0;m+=1){if(m>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(function(a){var E=y.find(a.target,!0);null!=E&&(E.domNode===a.target&&("childList"===a.type?(h(y.find(a.previousSibling,!1)),[].forEach.call(a.addedNodes,function(x){var S=y.find(x,!1);h(S,!1),S instanceof u.default&&S.children.forEach(function(A){h(A,!1)})})):"attributes"===a.type&&h(E.prev)),h(E))}),this.children.forEach(l),f=(c=[].slice.call(this.observer.takeRecords())).slice();f.length>0;)n.push(f.pop())}},r.prototype.update=function(n,i){var s=this;void 0===i&&(i={}),(n=n||this.observer.takeRecords()).map(function(f){var h=y.find(f.target,!0);return null==h?null:null==h.domNode[y.DATA_KEY].mutations?(h.domNode[y.DATA_KEY].mutations=[f],h):(h.domNode[y.DATA_KEY].mutations.push(f),null)}).forEach(function(f){null!=f&&f!==s&&null!=f.domNode[y.DATA_KEY]&&f.update(f.domNode[y.DATA_KEY].mutations||[],i)}),null!=this.domNode[y.DATA_KEY].mutations&&o.prototype.update.call(this,this.domNode[y.DATA_KEY].mutations,i),this.optimize(n,i)},r.blotName="scroll",r.defaultChild="block",r.scope=y.Scope.BLOCK_BLOT,r.tagName="DIV",r}(u.default);p.default=v},function(B,p,d){"use strict";var o,u=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},function(r,n){function i(){this.constructor=r}o(r,n),r.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)});Object.defineProperty(p,"__esModule",{value:!0});var y=d(18),g=d(1),v=function(o){function r(){return null!==o&&o.apply(this,arguments)||this}return u(r,o),r.formats=function(n){if(n.tagName!==r.tagName)return o.formats.call(this,n)},r.prototype.format=function(n,i){var s=this;n!==this.statics.blotName||i?o.prototype.format.call(this,n,i):(this.children.forEach(function(f){f instanceof y.default||(f=f.wrap(r.blotName,!0)),s.attributes.copy(f)}),this.unwrap())},r.prototype.formatAt=function(n,i,s,f){null!=this.formats()[s]||g.query(s,g.Scope.ATTRIBUTE)?this.isolate(n,i).format(s,f):o.prototype.formatAt.call(this,n,i,s,f)},r.prototype.optimize=function(n){o.prototype.optimize.call(this,n);var i=this.formats();if(0===Object.keys(i).length)return this.unwrap();var s=this.next;s instanceof r&&s.prev===this&&function O(o,r){if(Object.keys(o).length!==Object.keys(r).length)return!1;for(var n in o)if(o[n]!==r[n])return!1;return!0}(i,s.formats())&&(s.moveChildren(this),s.remove())},r.blotName="inline",r.scope=g.Scope.INLINE_BLOT,r.tagName="SPAN",r}(y.default);p.default=v},function(B,p,d){"use strict";var v,O=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},function(o,r){function n(){this.constructor=o}v(o,r),o.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(p,"__esModule",{value:!0});var u=d(18),y=d(1),g=function(v){function o(){return null!==v&&v.apply(this,arguments)||this}return O(o,v),o.formats=function(r){var n=y.query(o.blotName).tagName;if(r.tagName!==n)return v.formats.call(this,r)},o.prototype.format=function(r,n){null!=y.query(r,y.Scope.BLOCK)&&(r!==this.statics.blotName||n?v.prototype.format.call(this,r,n):this.replaceWith(o.blotName))},o.prototype.formatAt=function(r,n,i,s){null!=y.query(i,y.Scope.BLOCK)?this.format(i,s):v.prototype.formatAt.call(this,r,n,i,s)},o.prototype.insertAt=function(r,n,i){if(null==i||null!=y.query(n,y.Scope.INLINE))v.prototype.insertAt.call(this,r,n,i);else{var s=this.split(r),f=y.create(n,i);s.parent.insertBefore(f,s)}},o.prototype.update=function(r,n){navigator.userAgent.match(/Trident/)?this.build():v.prototype.update.call(this,r,n)},o.blotName="block",o.scope=y.Scope.BLOCK_BLOT,o.tagName="P",o}(u.default);p.default=g},function(B,p,d){"use strict";var g,O=this&&this.__extends||(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,o){v.__proto__=o}||function(v,o){for(var r in o)o.hasOwnProperty(r)&&(v[r]=o[r])},function(v,o){function r(){this.constructor=v}g(v,o),v.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)});Object.defineProperty(p,"__esModule",{value:!0});var y=function(g){function v(){return null!==g&&g.apply(this,arguments)||this}return O(v,g),v.formats=function(o){},v.prototype.format=function(o,r){g.prototype.formatAt.call(this,0,this.length(),o,r)},v.prototype.formatAt=function(o,r,n,i){0===o&&r===this.length()?this.format(n,i):g.prototype.formatAt.call(this,o,r,n,i)},v.prototype.formats=function(){return this.statics.formats(this.domNode)},v}(d(19).default);p.default=y},function(B,p,d){"use strict";var v,O=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},function(o,r){function n(){this.constructor=o}v(o,r),o.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(p,"__esModule",{value:!0});var u=d(19),y=d(1),g=function(v){function o(r){var n=v.call(this,r)||this;return n.text=n.statics.value(n.domNode),n}return O(o,v),o.create=function(r){return document.createTextNode(r)},o.value=function(r){var n=r.data;return n.normalize&&(n=n.normalize()),n},o.prototype.deleteAt=function(r,n){this.domNode.data=this.text=this.text.slice(0,r)+this.text.slice(r+n)},o.prototype.index=function(r,n){return this.domNode===r?n:-1},o.prototype.insertAt=function(r,n,i){null==i?(this.text=this.text.slice(0,r)+n+this.text.slice(r),this.domNode.data=this.text):v.prototype.insertAt.call(this,r,n,i)},o.prototype.length=function(){return this.text.length},o.prototype.optimize=function(r){v.prototype.optimize.call(this,r),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof o&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},o.prototype.position=function(r,n){return void 0===n&&(n=!1),[this.domNode,r]},o.prototype.split=function(r,n){if(void 0===n&&(n=!1),!n){if(0===r)return this;if(r===this.length())return this.next}var i=y.create(this.domNode.splitText(r));return this.parent.insertBefore(i,this.next),this.text=this.statics.value(this.domNode),i},o.prototype.update=function(r,n){var i=this;r.some(function(s){return"characterData"===s.type&&s.target===i.domNode})&&(this.text=this.statics.value(this.domNode))},o.prototype.value=function(){return this.text},o.blotName="text",o.scope=y.Scope.INLINE_BLOT,o}(u.default);p.default=g},function(B,p,d){"use strict";var O=document.createElement("div");if(O.classList.toggle("test-class",!1),O.classList.contains("test-class")){var u=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(y,g){return arguments.length>1&&!this.contains(y)==!g?g:u.call(this,y)}}String.prototype.startsWith||(String.prototype.startsWith=function(y,g){return this.substr(g=g||0,y.length)===y}),String.prototype.endsWith||(String.prototype.endsWith=function(y,g){var v=this.toString();("number"!=typeof g||!isFinite(g)||Math.floor(g)!==g||g>v.length)&&(g=v.length);var o=v.indexOf(y,g-=y.length);return-1!==o&&o===g}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(y){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof y)throw new TypeError("predicate must be a function");for(var g,v=Object(this),o=v.length>>>0,r=arguments[1],n=0;n<o;n++)if(y.call(r,g=v[n],n,v))return g}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(B,p){function d(a,E,x){if(a==E)return a?[[c,a]]:[];(x<0||a.length<x)&&(x=null);var S=g(a,E),A=a.substring(0,S);S=v(a=a.substring(S),E=E.substring(S));var b=a.substring(a.length-S),k=function O(a,E){var x;if(!a)return[[l,E]];if(!E)return[[h,a]];var S=a.length>E.length?a:E,A=a.length>E.length?E:a,b=S.indexOf(A);if(-1!=b)return x=[[l,S.substring(0,b)],[c,A],[l,S.substring(b+A.length)]],a.length>E.length&&(x[0][0]=x[2][0]=h),x;if(1==A.length)return[[h,a],[l,E]];var k=function o(a,E){function x(X,Z,nt){for(var K,L,q,M,U=X.substring(nt,nt+Math.floor(X.length/4)),G=-1,V="";-1!=(G=Z.indexOf(U,G+1));){var D=g(X.substring(nt),Z.substring(G)),W=v(X.substring(0,nt),Z.substring(0,G));V.length<W+D&&(V=Z.substring(G-W,G)+Z.substring(G,G+D),K=X.substring(0,nt-W),L=X.substring(nt+D),q=Z.substring(0,G-W),M=Z.substring(G+D))}return 2*V.length>=X.length?[K,L,q,M,V]:null}var S=a.length>E.length?a:E,A=a.length>E.length?E:a;if(S.length<4||2*A.length<S.length)return null;var b,w,N,j,H,k=x(S,A,Math.ceil(S.length/4)),_=x(S,A,Math.ceil(S.length/2));return k||_?(b=_?k&&k[4].length>_[4].length?k:_:k,a.length>E.length?(w=b[0],N=b[1],j=b[2],H=b[3]):(j=b[0],H=b[1],w=b[2],N=b[3]),[w,N,j,H,b[4]]):null}(a,E);if(k){var w=k[1],j=k[3],H=k[4],X=d(k[0],k[2]),Z=d(w,j);return X.concat([[c,H]],Z)}return function u(a,E){for(var x=a.length,S=E.length,A=Math.ceil((x+S)/2),b=A,k=2*A,_=new Array(k),w=new Array(k),N=0;N<k;N++)_[N]=-1,w[N]=-1;_[b+1]=0,w[b+1]=0;for(var j=x-S,H=j%2!=0,X=0,Z=0,nt=0,K=0,L=0;L<A;L++){for(var q=-L+X;q<=L-Z;q+=2){for(var U=b+q,G=(M=q==-L||q!=L&&_[U-1]<_[U+1]?_[U+1]:_[U-1]+1)-q;M<x&&G<S&&a.charAt(M)==E.charAt(G);)M++,G++;if(_[U]=M,M>x)Z+=2;else if(G>S)X+=2;else if(H&&(V=b+j-q)>=0&&V<k&&-1!=w[V]&&M>=(D=x-w[V]))return y(a,E,M,G)}for(var W=-L+nt;W<=L-K;W+=2){for(var D,V=b+W,tt=(D=W==-L||W!=L&&w[V-1]<w[V+1]?w[V+1]:w[V-1]+1)-W;D<x&&tt<S&&a.charAt(x-D-1)==E.charAt(S-tt-1);)D++,tt++;if(w[V]=D,D>x)K+=2;else if(tt>S)nt+=2;else if(!H){var M;if((U=b+j-W)>=0&&U<k&&-1!=_[U])if(G=b+(M=_[U])-U,M>=(D=x-D))return y(a,E,M,G)}}}return[[h,a],[l,E]]}(a,E)}(a=a.substring(0,a.length-S),E=E.substring(0,E.length-S));return A&&k.unshift([c,A]),b&&k.push([c,b]),r(k),null!=x&&(k=function i(a,E){var x=function n(a,E){if(0===E)return[c,a];for(var x=0,S=0;S<a.length;S++){var A=a[S];if(A[0]===h||A[0]===c){var b=x+A[1].length;if(E===b)return[S+1,a];if(E<b){a=a.slice();var k=E-x,_=[A[0],A[1].slice(0,k)],w=[A[0],A[1].slice(k)];return a.splice(S,1,_,w),[S+1,a]}x=b}}throw new Error("cursor_pos is out of bounds!")}(a,E),S=x[1],A=x[0],b=S[A],k=S[A+1];if(null==b||b[0]!==c)return a;if(null!=k&&b[1]+k[1]===k[1]+b[1])return S.splice(A,2,k,b),f(S,A,2);if(null!=k&&0===k[1].indexOf(b[1])){S.splice(A,2,[k[0],b[1]],[0,b[1]]);var _=k[1].slice(b[1].length);return _.length>0&&S.splice(A+2,0,[k[0],_]),f(S,A,3)}return a}(k,x)),function s(a){for(var E=!1,x=function(b){return b.charCodeAt(0)>=56320&&b.charCodeAt(0)<=57343},S=2;S<a.length;S+=1)a[S-2][0]===c&&function(b){return b.charCodeAt(b.length-1)>=55296&&b.charCodeAt(b.length-1)<=56319}(a[S-2][1])&&a[S-1][0]===h&&x(a[S-1][1])&&a[S][0]===l&&x(a[S][1])&&(E=!0,a[S-1][1]=a[S-2][1].slice(-1)+a[S-1][1],a[S][1]=a[S-2][1].slice(-1)+a[S][1],a[S-2][1]=a[S-2][1].slice(0,-1));if(!E)return a;var A=[];for(S=0;S<a.length;S+=1)a[S][1].length>0&&A.push(a[S]);return A}(k)}function y(a,E,x,S){var A=a.substring(0,x),b=E.substring(0,S),k=a.substring(x),_=E.substring(S),w=d(A,b),N=d(k,_);return w.concat(N)}function g(a,E){if(!a||!E||a.charAt(0)!=E.charAt(0))return 0;for(var x=0,S=Math.min(a.length,E.length),A=S,b=0;x<A;)a.substring(b,A)==E.substring(b,A)?b=x=A:S=A,A=Math.floor((S-x)/2+x);return A}function v(a,E){if(!a||!E||a.charAt(a.length-1)!=E.charAt(E.length-1))return 0;for(var x=0,S=Math.min(a.length,E.length),A=S,b=0;x<A;)a.substring(a.length-A,a.length-b)==E.substring(E.length-A,E.length-b)?b=x=A:S=A,A=Math.floor((S-x)/2+x);return A}function r(a){a.push([c,""]);for(var E,x=0,S=0,A=0,b="",k="";x<a.length;)switch(a[x][0]){case l:A++,k+=a[x][1],x++;break;case h:S++,b+=a[x][1],x++;break;case c:S+A>1?(0!==S&&0!==A&&(0!==(E=g(k,b))&&(x-S-A>0&&a[x-S-A-1][0]==c?a[x-S-A-1][1]+=k.substring(0,E):(a.splice(0,0,[c,k.substring(0,E)]),x++),k=k.substring(E),b=b.substring(E)),0!==(E=v(k,b))&&(a[x][1]=k.substring(k.length-E)+a[x][1],k=k.substring(0,k.length-E),b=b.substring(0,b.length-E))),0===S?a.splice(x-A,S+A,[l,k]):0===A?a.splice(x-S,S+A,[h,b]):a.splice(x-S-A,S+A,[h,b],[l,k]),x=x-S-A+(S?1:0)+(A?1:0)+1):0!==x&&a[x-1][0]==c?(a[x-1][1]+=a[x][1],a.splice(x,1)):x++,A=0,S=0,b="",k=""}""===a[a.length-1][1]&&a.pop();var _=!1;for(x=1;x<a.length-1;)a[x-1][0]==c&&a[x+1][0]==c&&(a[x][1].substring(a[x][1].length-a[x-1][1].length)==a[x-1][1]?(a[x][1]=a[x-1][1]+a[x][1].substring(0,a[x][1].length-a[x-1][1].length),a[x+1][1]=a[x-1][1]+a[x+1][1],a.splice(x-1,1),_=!0):a[x][1].substring(0,a[x+1][1].length)==a[x+1][1]&&(a[x-1][1]+=a[x+1][1],a[x][1]=a[x][1].substring(a[x+1][1].length)+a[x+1][1],a.splice(x+1,1),_=!0)),x++;_&&r(a)}function f(a,E,x){for(var S=E+x-1;S>=0&&S>=E-1;S--)if(S+1<a.length){var A=a[S],b=a[S+1];A[0]===b[1]&&a.splice(S,2,[A[0],A[1]+b[1]])}return a}var h=-1,l=1,c=0,m=d;m.INSERT=l,m.DELETE=h,m.EQUAL=c,B.exports=m},function(B,p){function d(O){var u=[];for(var y in O)u.push(y);return u}(B.exports="function"==typeof Object.keys?Object.keys:d).shim=d},function(B,p){function d(y){return"[object Arguments]"==Object.prototype.toString.call(y)}function O(y){return y&&"object"==typeof y&&"number"==typeof y.length&&Object.prototype.hasOwnProperty.call(y,"callee")&&!Object.prototype.propertyIsEnumerable.call(y,"callee")||!1}var u="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();(p=B.exports=u?d:O).supported=d,p.unsupported=O},function(B,p,d){"use strict";function O(K){return K&&K.__esModule?K:{default:K}}function g(K,L){return Object.keys(L).reduce(function(q,M){return null==K[M]||(L[M]===K[M]?q[M]=L[M]:Array.isArray(L[M])?L[M].indexOf(K[M])<0&&(q[M]=L[M].concat([K[M]])):q[M]=[L[M],K[M]]),q},{})}Object.defineProperty(p,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(K){return typeof K}:function(K){return K&&"function"==typeof Symbol&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},r=function(L,q){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return function K(L,q){var M=[],U=!0,G=!1,V=void 0;try{for(var D,W=L[Symbol.iterator]();!(U=(D=W.next()).done)&&(M.push(D.value),!q||M.length!==q);U=!0);}catch(tt){G=!0,V=tt}finally{try{!U&&W.return&&W.return()}finally{if(G)throw V}}return M}(L,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},n=function(){function K(L,q){for(var M=0;M<q.length;M++){var U=q[M];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(L,U.key,U)}}return function(L,q,M){return q&&K(L.prototype,q),M&&K(L,M),L}}(),s=O(d(4)),h=O(d(20)),c=O(d(0)),a=O(d(13)),x=O(d(31)),S=d(3),A=O(S),k=O(d(14)),w=O(d(21)),j=O(d(12)),X=O(d(2)),Z=/^[ -~]*$/,nt=function(){function K(L){(function y(K,L){if(!(K instanceof L))throw new TypeError("Cannot call a class as a function")})(this,K),this.scroll=L,this.delta=this.getDelta()}return n(K,[{key:"applyDelta",value:function(L){var q=this,M=!1;this.scroll.update();var U=this.scroll.length();return this.scroll.batchStart(),L=function v(K){return K.reduce(function(L,q){if(1===q.insert){var M=(0,w.default)(q.attributes);return delete M.image,L.insert({image:q.attributes.image},M)}if(null==q.attributes||!0!==q.attributes.list&&!0!==q.attributes.bullet||((q=(0,w.default)(q)).attributes.list?q.attributes.list="ordered":(q.attributes.list="bullet",delete q.attributes.bullet)),"string"==typeof q.insert){var U=q.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return L.insert(U,q.attributes)}return L.push(q)},new s.default)}(L),L.reduce(function(G,V){var D=V.retain||V.delete||V.insert.length||1,W=V.attributes||{};if(null!=V.insert){if("string"==typeof V.insert){var tt=V.insert;tt.endsWith("\n")&&M&&(M=!1,tt=tt.slice(0,-1)),G>=U&&!tt.endsWith("\n")&&(M=!0),q.scroll.insertAt(G,tt);var it=q.scroll.line(G),st=r(it,2),pt=st[0],bt=st[1],_t=(0,X.default)({},(0,S.bubbleFormats)(pt));if(pt instanceof A.default){var At=pt.descendant(c.default.Leaf,bt),Ct=r(At,1);_t=(0,X.default)(_t,(0,S.bubbleFormats)(Ct[0]))}W=h.default.attributes.diff(_t,W)||{}}else if("object"===o(V.insert)){var J=Object.keys(V.insert)[0];if(null==J)return G;q.scroll.insertAt(G,J,V.insert[J])}U+=D}return Object.keys(W).forEach(function(R){q.scroll.formatAt(G,D,R,W[R])}),G+D},0),L.reduce(function(G,V){return"number"==typeof V.delete?(q.scroll.deleteAt(G,V.delete),G):G+(V.retain||V.insert.length||1)},0),this.scroll.batchEnd(),this.update(L)}},{key:"deleteText",value:function(L,q){return this.scroll.deleteAt(L,q),this.update((new s.default).retain(L).delete(q))}},{key:"formatLine",value:function(L,q){var M=this,U=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(U).forEach(function(G){if(null==M.scroll.whitelist||M.scroll.whitelist[G]){var V=M.scroll.lines(L,Math.max(q,1)),D=q;V.forEach(function(W){var tt=W.length();if(W instanceof a.default){var it=L-W.offset(M.scroll),st=W.newlineIndex(it+D)-it+1;W.formatAt(it,st,G,U[G])}else W.format(G,U[G]);D-=tt})}}),this.scroll.optimize(),this.update((new s.default).retain(L).retain(q,(0,w.default)(U)))}},{key:"formatText",value:function(L,q){var M=this,U=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(U).forEach(function(G){M.scroll.formatAt(L,q,G,U[G])}),this.update((new s.default).retain(L).retain(q,(0,w.default)(U)))}},{key:"getContents",value:function(L,q){return this.delta.slice(L,L+q)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(L,q){return L.concat(q.delta())},new s.default)}},{key:"getFormat",value:function(L){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,M=[],U=[];0===q?this.scroll.path(L).forEach(function(V){var W=r(V,1)[0];W instanceof A.default?M.push(W):W instanceof c.default.Leaf&&U.push(W)}):(M=this.scroll.lines(L,q),U=this.scroll.descendants(c.default.Leaf,L,q));var G=[M,U].map(function(V){if(0===V.length)return{};for(var D=(0,S.bubbleFormats)(V.shift());Object.keys(D).length>0;){var W=V.shift();if(null==W)return D;D=g((0,S.bubbleFormats)(W),D)}return D});return X.default.apply(X.default,G)}},{key:"getText",value:function(L,q){return this.getContents(L,q).filter(function(M){return"string"==typeof M.insert}).map(function(M){return M.insert}).join("")}},{key:"insertEmbed",value:function(L,q,M){return this.scroll.insertAt(L,q,M),this.update((new s.default).retain(L).insert(function u(K,L,q){return L in K?Object.defineProperty(K,L,{value:q,enumerable:!0,configurable:!0,writable:!0}):K[L]=q,K}({},q,M)))}},{key:"insertText",value:function(L,q){var M=this,U=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return q=q.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(L,q),Object.keys(U).forEach(function(G){M.scroll.formatAt(L,q.length,G,U[G])}),this.update((new s.default).retain(L).insert(q,(0,w.default)(U)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var L=this.scroll.children.head;return L.statics.blotName===A.default.blotName&&!(L.children.length>1)&&L.children.head instanceof k.default}},{key:"removeFormat",value:function(L,q){var M=this.getText(L,q),U=this.scroll.line(L+q),G=r(U,2),V=G[0],D=G[1],W=0,tt=new s.default;null!=V&&(W=V instanceof a.default?V.newlineIndex(D)-D+1:V.length()-D,tt=V.delta().slice(D,D+W-1).insert("\n"));var st=this.getContents(L,q+W).diff((new s.default).insert(M).concat(tt)),pt=(new s.default).retain(L).concat(st);return this.applyDelta(pt)}},{key:"update",value:function(L){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,U=this.delta;if(1===q.length&&"characterData"===q[0].type&&q[0].target.data.match(Z)&&c.default.find(q[0].target)){var G=c.default.find(q[0].target),V=(0,S.bubbleFormats)(G),D=G.offset(this.scroll),W=q[0].oldValue.replace(x.default.CONTENTS,""),tt=(new s.default).insert(W),it=(new s.default).insert(G.value());L=(new s.default).retain(D).concat(tt.diff(it,M)).reduce(function(st,pt){return pt.insert?st.insert(pt.insert,V):st.push(pt)},new s.default),this.delta=U.compose(L)}else this.delta=this.getDelta(),L&&(0,j.default)(U.compose(L),this.delta)||(L=U.diff(this.delta,M));return L}}]),K}();p.default=nt},function(B,p){"use strict";function d(){}function O(v,o,r){this.fn=v,this.context=o,this.once=r||!1}function u(){this._events=new d,this._eventsCount=0}var y=Object.prototype.hasOwnProperty,g="~";Object.create&&(d.prototype=Object.create(null),(new d).__proto__||(g=!1)),u.prototype.eventNames=function(){var v,o,r=[];if(0===this._eventsCount)return r;for(o in v=this._events)y.call(v,o)&&r.push(g?o.slice(1):o);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(v)):r},u.prototype.listeners=function(v,o){var n=this._events[g?g+v:v];if(o)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var i=0,s=n.length,f=new Array(s);i<s;i++)f[i]=n[i].fn;return f},u.prototype.emit=function(v,o,r,n,i,s){var f=g?g+v:v;if(!this._events[f])return!1;var h,l,c=this._events[f],m=arguments.length;if(c.fn){switch(c.once&&this.removeListener(v,c.fn,void 0,!0),m){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,o),!0;case 3:return c.fn.call(c.context,o,r),!0;case 4:return c.fn.call(c.context,o,r,n),!0;case 5:return c.fn.call(c.context,o,r,n,i),!0;case 6:return c.fn.call(c.context,o,r,n,i,s),!0}for(l=1,h=new Array(m-1);l<m;l++)h[l-1]=arguments[l];c.fn.apply(c.context,h)}else{var a,E=c.length;for(l=0;l<E;l++)switch(c[l].once&&this.removeListener(v,c[l].fn,void 0,!0),m){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,o);break;case 3:c[l].fn.call(c[l].context,o,r);break;case 4:c[l].fn.call(c[l].context,o,r,n);break;default:if(!h)for(a=1,h=new Array(m-1);a<m;a++)h[a-1]=arguments[a];c[l].fn.apply(c[l].context,h)}}return!0},u.prototype.on=function(v,o,r){var n=new O(o,r||this),i=g?g+v:v;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],n]:this._events[i].push(n):(this._events[i]=n,this._eventsCount++),this},u.prototype.once=function(v,o,r){var n=new O(o,r||this,!0),i=g?g+v:v;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],n]:this._events[i].push(n):(this._events[i]=n,this._eventsCount++),this},u.prototype.removeListener=function(v,o,r,n){var i=g?g+v:v;if(!this._events[i])return this;if(!o)return 0==--this._eventsCount?this._events=new d:delete this._events[i],this;var s=this._events[i];if(s.fn)s.fn!==o||n&&!s.once||r&&s.context!==r||(0==--this._eventsCount?this._events=new d:delete this._events[i]);else{for(var f=0,h=[],l=s.length;f<l;f++)(s[f].fn!==o||n&&!s[f].once||r&&s[f].context!==r)&&h.push(s[f]);h.length?this._events[i]=1===h.length?h[0]:h:0==--this._eventsCount?this._events=new d:delete this._events[i]}return this},u.prototype.removeAllListeners=function(v){var o;return v?this._events[o=g?g+v:v]&&(0==--this._eventsCount?this._events=new d:delete this._events[o]):(this._events=new d,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prototype.setMaxListeners=function(){return this},u.prefixed=g,u.EventEmitter=u,void 0!==B&&(B.exports=u)},function(B,p,d){"use strict";function O(k){return k&&k.__esModule?k:{default:k}}function v(k){return k instanceof c.default||k instanceof l.BlockEmbed}Object.defineProperty(p,"__esModule",{value:!0});var o=function(_,w){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return function k(_,w){var N=[],j=!0,H=!1,X=void 0;try{for(var Z,nt=_[Symbol.iterator]();!(j=(Z=nt.next()).done)&&(N.push(Z.value),!w||N.length!==w);j=!0);}catch(K){H=!0,X=K}finally{try{!j&&nt.return&&nt.return()}finally{if(H)throw X}}return N}(_,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function k(_,w){for(var N=0;N<w.length;N++){var j=w[N];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(_,j.key,j)}}return function(_,w,N){return w&&k(_.prototype,w),N&&k(_,N),_}}(),n=function k(_,w,N){null===_&&(_=Function.prototype);var j=Object.getOwnPropertyDescriptor(_,w);if(void 0===j){var H=Object.getPrototypeOf(_);return null===H?void 0:k(H,w,N)}if("value"in j)return j.value;var X=j.get;return void 0!==X?X.call(N):void 0},s=O(d(0)),h=O(d(9)),l=d(3),c=O(l),a=O(d(14)),x=O(d(13)),A=O(d(23)),b=function(k){function _(w,N){!function u(k,_){if(!(k instanceof _))throw new TypeError("Cannot call a class as a function")}(this,_);var j=function y(k,_){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!_||"object"!=typeof _&&"function"!=typeof _?k:_}(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,w));return j.emitter=N.emitter,Array.isArray(N.whitelist)&&(j.whitelist=N.whitelist.reduce(function(H,X){return H[X]=!0,H},{})),j.domNode.addEventListener("DOMNodeInserted",function(){}),j.optimize(),j.enable(),j}return function g(k,_){if("function"!=typeof _&&null!==_)throw new TypeError("Super expression must either be null or a function, not "+typeof _);k.prototype=Object.create(_&&_.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(k,_):k.__proto__=_)}(_,k),r(_,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(w,N){var j=this.line(w),H=o(j,2),X=H[0],Z=H[1],nt=this.line(w+N),L=o(nt,1)[0];if(n(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"deleteAt",this).call(this,w,N),null!=L&&X!==L&&Z>0){if(X instanceof l.BlockEmbed||L instanceof l.BlockEmbed)return void this.optimize();if(X instanceof x.default){var q=X.newlineIndex(X.length(),!0);if(q>-1&&(X=X.split(q+1))===L)return void this.optimize()}else if(L instanceof x.default){var M=L.newlineIndex(0);M>-1&&L.split(M+1)}X.moveChildren(L,L.children.head instanceof a.default?null:L.children.head),X.remove()}this.optimize()}},{key:"enable",value:function(){var w=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",w)}},{key:"formatAt",value:function(w,N,j,H){(null==this.whitelist||this.whitelist[j])&&(n(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"formatAt",this).call(this,w,N,j,H),this.optimize())}},{key:"insertAt",value:function(w,N,j){if(null==j||null==this.whitelist||this.whitelist[N]){if(w>=this.length())if(null==j||null==s.default.query(N,s.default.Scope.BLOCK)){var H=s.default.create(this.statics.defaultChild);this.appendChild(H),null==j&&N.endsWith("\n")&&(N=N.slice(0,-1)),H.insertAt(0,N,j)}else{var X=s.default.create(N,j);this.appendChild(X)}else n(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,w,N,j);this.optimize()}}},{key:"insertBefore",value:function(w,N){if(w.statics.scope===s.default.Scope.INLINE_BLOT){var j=s.default.create(this.statics.defaultChild);j.appendChild(w),w=j}n(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertBefore",this).call(this,w,N)}},{key:"leaf",value:function(w){return this.path(w).pop()||[null,-1]}},{key:"line",value:function(w){return w===this.length()?this.line(w-1):this.descendant(v,w)}},{key:"lines",value:function(){var w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return function j(H,X,Z){var nt=[],K=Z;return H.children.forEachAt(X,Z,function(L,q,M){v(L)?nt.push(L):L instanceof s.default.Container&&(nt=nt.concat(j(L,q,K))),K-=M}),nt}(this,w,N)}},{key:"optimize",value:function(){var w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(n(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,w,N),w.length>0&&this.emitter.emit(h.default.events.SCROLL_OPTIMIZE,w,N))}},{key:"path",value:function(w){return n(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"path",this).call(this,w).slice(1)}},{key:"update",value:function(w){if(!0!==this.batch){var N=h.default.sources.USER;"string"==typeof w&&(N=w),Array.isArray(w)||(w=this.observer.takeRecords()),w.length>0&&this.emitter.emit(h.default.events.SCROLL_BEFORE_UPDATE,N,w),n(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"update",this).call(this,w.concat([])),w.length>0&&this.emitter.emit(h.default.events.SCROLL_UPDATE,N,w)}}}]),_}(s.default.Scroll);b.blotName="scroll",b.className="ql-editor",b.tagName="DIV",b.defaultChild="block",b.allowedChildren=[c.default,l.BlockEmbed,A.default],p.default=b},function(B,p,d){"use strict";function O(R){return R&&R.__esModule?R:{default:R}}function u(R,T,I){return T in R?Object.defineProperty(R,T,{value:I,enumerable:!0,configurable:!0,writable:!0}):R[T]=I,R}function o(R,T,I){return"object"===(void 0===T?"undefined":b(T))?Object.keys(T).reduce(function(Y,F){return o(Y,F,T[F])},R):R.reduce(function(Y,F){return F.attributes&&F.attributes[T]?Y.push(F):Y.insert(F.insert,(0,N.default)({},u({},T,I),F.attributes))},new H.default)}function r(R){return R.nodeType!==Node.ELEMENT_NODE?{}:R["__ql-computed-style"]||(R["__ql-computed-style"]=window.getComputedStyle(R))}function n(R,T){for(var I="",Y=R.ops.length-1;Y>=0&&I.length<T.length;--Y){var F=R.ops[Y];if("string"!=typeof F.insert)break;I=F.insert+I}return I.slice(-1*T.length)===T}function i(R){return 0!==R.childNodes.length&&["block","list-item"].indexOf(r(R).display)>-1}function s(R,T,I){return R.nodeType===R.TEXT_NODE?I.reduce(function(Y,F){return F(R,Y)},new H.default):R.nodeType===R.ELEMENT_NODE?[].reduce.call(R.childNodes||[],function(Y,F){var et=s(F,T,I);return F.nodeType===R.ELEMENT_NODE&&(et=T.reduce(function(ot,ut){return ut(F,ot)},et),et=(F[_t]||[]).reduce(function(ot,ut){return ut(F,ot)},et)),Y.concat(et)},new H.default):new H.default}function f(R,T,I){return o(I,R,!0)}function h(R,T){var I=Z.default.Attributor.Attribute.keys(R),Y=Z.default.Attributor.Class.keys(R),F=Z.default.Attributor.Style.keys(R),et={};return I.concat(Y).concat(F).forEach(function(ot){var ut=Z.default.query(ot,Z.default.Scope.ATTRIBUTE);null!=ut&&(et[ut.attrName]=ut.value(R),et[ut.attrName])||(null==(ut=Ct[ot])||ut.attrName!==ot&&ut.keyName!==ot||(et[ut.attrName]=ut.value(R)||void 0),null==(ut=Lt[ot])||ut.attrName!==ot&&ut.keyName!==ot||(et[(ut=Lt[ot]).attrName]=ut.value(R)||void 0))}),Object.keys(et).length>0&&(T=o(T,et)),T}function l(R,T){var I=Z.default.query(R);if(null==I)return T;if(I.prototype instanceof Z.default.Embed){var Y={},F=I.value(R);null!=F&&(Y[I.blotName]=F,T=(new H.default).insert(Y,I.formats(R)))}else"function"==typeof I.formats&&(T=o(T,I.blotName,I.formats(R)));return T}function E(R,T){return n(T,"\n")||(i(R)||T.length()>0&&R.nextSibling&&i(R.nextSibling))&&T.insert("\n"),T}function x(R,T){if(i(R)&&null!=R.nextElementSibling&&!n(T,"\n\n")){var I=R.offsetHeight+parseFloat(r(R).marginTop)+parseFloat(r(R).marginBottom);R.nextElementSibling.offsetTop>R.offsetTop+1.5*I&&T.insert("\n")}return T}function A(R,T){var I=R.data;if("O:P"===R.parentNode.tagName)return T.insert(I.trim());if(0===I.trim().length&&R.parentNode.classList.contains("ql-clipboard"))return T;if(!r(R.parentNode).whiteSpace.startsWith("pre")){var Y=function(F,et){return(et=et.replace(/[^\u00a0]/g,"")).length<1&&F?" ":et};I=(I=I.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,Y.bind(Y,!0)),(null==R.previousSibling&&i(R.parentNode)||null!=R.previousSibling&&i(R.previousSibling))&&(I=I.replace(/^\s+/,Y.bind(Y,!1))),(null==R.nextSibling&&i(R.parentNode)||null!=R.nextSibling&&i(R.nextSibling))&&(I=I.replace(/\s+$/,Y.bind(Y,!1)))}return T.insert(I)}Object.defineProperty(p,"__esModule",{value:!0}),p.matchText=p.matchSpacing=p.matchNewline=p.matchBlot=p.matchAttributor=p.default=void 0;var b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},k=function(T,I){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return function R(T,I){var Y=[],F=!0,et=!1,ot=void 0;try{for(var ut,dt=T[Symbol.iterator]();!(F=(ut=dt.next()).done)&&(Y.push(ut.value),!I||Y.length!==I);F=!0);}catch(vt){et=!0,ot=vt}finally{try{!F&&dt.return&&dt.return()}finally{if(et)throw ot}}return Y}(T,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_=function(){function R(T,I){for(var Y=0;Y<I.length;Y++){var F=I[Y];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(T,F.key,F)}}return function(T,I,Y){return I&&R(T.prototype,I),Y&&R(T,Y),T}}(),N=O(d(2)),H=O(d(4)),Z=O(d(0)),K=O(d(6)),q=O(d(10)),U=O(d(7)),G=d(34),V=d(35),W=O(d(13)),tt=d(24),it=d(36),st=d(37),pt=d(38),bt=(0,q.default)("quill:clipboard"),_t="__ql-matcher",At=[[Node.TEXT_NODE,A],[Node.TEXT_NODE,E],["br",function c(R,T){return n(T,"\n")||T.insert("\n"),T}],[Node.ELEMENT_NODE,E],[Node.ELEMENT_NODE,l],[Node.ELEMENT_NODE,x],[Node.ELEMENT_NODE,h],[Node.ELEMENT_NODE,function S(R,T){var I={},Y=R.style||{};return Y.fontStyle&&"italic"===r(R).fontStyle&&(I.italic=!0),Y.fontWeight&&(r(R).fontWeight.startsWith("bold")||parseInt(r(R).fontWeight)>=700)&&(I.bold=!0),Object.keys(I).length>0&&(T=o(T,I)),parseFloat(Y.textIndent||0)>0&&(T=(new H.default).insert("\t").concat(T)),T}],["li",function a(R,T){var I=Z.default.query(R);if(null==I||"list-item"!==I.blotName||!n(T,"\n"))return T;for(var Y=-1,F=R.parentNode;!F.classList.contains("ql-clipboard");)"list"===(Z.default.query(F)||{}).blotName&&(Y+=1),F=F.parentNode;return Y<=0?T:T.compose((new H.default).retain(T.length()-1).retain(1,{indent:Y}))}],["b",f.bind(f,"bold")],["i",f.bind(f,"italic")],["style",function m(){return new H.default}]],Ct=[G.AlignAttribute,it.DirectionAttribute].reduce(function(R,T){return R[T.keyName]=T,R},{}),Lt=[G.AlignStyle,V.BackgroundStyle,tt.ColorStyle,it.DirectionStyle,st.FontStyle,pt.SizeStyle].reduce(function(R,T){return R[T.keyName]=T,R},{}),J=function(R){function T(I,Y){!function y(R,T){if(!(R instanceof T))throw new TypeError("Cannot call a class as a function")}(this,T);var F=function g(R,T){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||"object"!=typeof T&&"function"!=typeof T?R:T}(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,I,Y));return F.quill.root.addEventListener("paste",F.onPaste.bind(F)),F.container=F.quill.addContainer("ql-clipboard"),F.container.setAttribute("contenteditable",!0),F.container.setAttribute("tabindex",-1),F.matchers=[],At.concat(F.options.matchers).forEach(function(et){var ot=k(et,2),dt=ot[1];(Y.matchVisual||dt!==x)&&F.addMatcher(ot[0],dt)}),F}return function v(R,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function, not "+typeof T);R.prototype=Object.create(T&&T.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(R,T):R.__proto__=T)}(T,R),_(T,[{key:"addMatcher",value:function(I,Y){this.matchers.push([I,Y])}},{key:"convert",value:function(I){if("string"==typeof I)return this.container.innerHTML=I.replace(/\>\r?\n +\</g,"><"),this.convert();var Y=this.quill.getFormat(this.quill.selection.savedRange.index);if(Y[W.default.blotName]){var F=this.container.innerText;return this.container.innerHTML="",(new H.default).insert(F,u({},W.default.blotName,Y[W.default.blotName]))}var et=this.prepareMatching(),ot=k(et,2),vt=s(this.container,ot[0],ot[1]);return n(vt,"\n")&&null==vt.ops[vt.ops.length-1].attributes&&(vt=vt.compose((new H.default).retain(vt.length()-1).delete(1))),bt.log("convert",this.container.innerHTML,vt),this.container.innerHTML="",vt}},{key:"dangerouslyPasteHTML",value:function(I,Y){var F=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K.default.sources.API;if("string"==typeof I)this.quill.setContents(this.convert(I),Y),this.quill.setSelection(0,K.default.sources.SILENT);else{var et=this.convert(Y);this.quill.updateContents((new H.default).retain(I).concat(et),F),this.quill.setSelection(I+et.length(),K.default.sources.SILENT)}}},{key:"onPaste",value:function(I){var Y=this;if(!I.defaultPrevented&&this.quill.isEnabled()){var F=this.quill.getSelection(),et=(new H.default).retain(F.index),ot=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(K.default.sources.SILENT),setTimeout(function(){et=et.concat(Y.convert()).delete(F.length),Y.quill.updateContents(et,K.default.sources.USER),Y.quill.setSelection(et.length()-F.length,K.default.sources.SILENT),Y.quill.scrollingContainer.scrollTop=ot,Y.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var I=this,Y=[],F=[];return this.matchers.forEach(function(et){var ot=k(et,2),ut=ot[0],dt=ot[1];switch(ut){case Node.TEXT_NODE:F.push(dt);break;case Node.ELEMENT_NODE:Y.push(dt);break;default:[].forEach.call(I.container.querySelectorAll(ut),function(vt){vt[_t]=vt[_t]||[],vt[_t].push(dt)})}}),[Y,F]}}]),T}(U.default);J.DEFAULTS={matchers:[],matchVisual:!0},p.default=J,p.matchAttributor=h,p.matchBlot=l,p.matchNewline=E,p.matchSpacing=x,p.matchText=A},function(B,p,d){"use strict";function O(m){return m&&m.__esModule?m:{default:m}}function o(m){var a=m.reduce(function(x,S){return x+(S.delete||0)},0),E=m.length()-a;return function v(m){var a=m.ops[m.ops.length-1];return null!=a&&(null!=a.insert?"string"==typeof a.insert&&a.insert.endsWith("\n"):null!=a.attributes&&Object.keys(a.attributes).some(function(E){return null!=i.default.query(E,i.default.Scope.BLOCK)}))}(m)&&(E-=1),E}Object.defineProperty(p,"__esModule",{value:!0}),p.getLastChangeIndex=p.default=void 0;var r=function(){function m(a,E){for(var x=0;x<E.length;x++){var S=E[x];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(a,S.key,S)}}return function(a,E,x){return E&&m(a.prototype,E),x&&m(a,x),a}}(),i=O(d(0)),f=O(d(6)),c=function(m){function a(E,x){!function u(m,a){if(!(m instanceof a))throw new TypeError("Cannot call a class as a function")}(this,a);var S=function y(m,a){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?m:a}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,E,x));return S.lastRecorded=0,S.ignoreChange=!1,S.clear(),S.quill.on(f.default.events.EDITOR_CHANGE,function(A,b,k,_){A!==f.default.events.TEXT_CHANGE||S.ignoreChange||(S.options.userOnly&&_!==f.default.sources.USER?S.transform(b):S.record(b,k))}),S.quill.keyboard.addBinding({key:"Z",shortKey:!0},S.undo.bind(S)),S.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},S.redo.bind(S)),/Win/i.test(navigator.platform)&&S.quill.keyboard.addBinding({key:"Y",shortKey:!0},S.redo.bind(S)),S}return function g(m,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);m.prototype=Object.create(a&&a.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(m,a):m.__proto__=a)}(a,m),r(a,[{key:"change",value:function(E,x){if(0!==this.stack[E].length){var S=this.stack[E].pop();this.stack[x].push(S),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(S[E],f.default.sources.USER),this.ignoreChange=!1;var A=o(S[E]);this.quill.setSelection(A)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(E,x){if(0!==E.ops.length){this.stack.redo=[];var S=this.quill.getContents().diff(x),A=Date.now();if(this.lastRecorded+this.options.delay>A&&this.stack.undo.length>0){var b=this.stack.undo.pop();S=S.compose(b.undo),E=b.redo.compose(E)}else this.lastRecorded=A;this.stack.undo.push({redo:E,undo:S}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(E){this.stack.undo.forEach(function(x){x.undo=E.transform(x.undo,!0),x.redo=E.transform(x.redo,!0)}),this.stack.redo.forEach(function(x){x.undo=E.transform(x.undo,!0),x.redo=E.transform(x.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),a}(O(d(7)).default);c.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},p.default=c,p.getLastChangeIndex=o},function(B,p,d){"use strict";function O(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}function u(s,f){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?s:f}Object.defineProperty(p,"__esModule",{value:!0}),p.IndentClass=void 0;var s,g=function(){function s(f,h){for(var l=0;l<h.length;l++){var c=h[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(f,c.key,c)}}return function(f,h,l){return h&&s(f.prototype,h),l&&s(f,l),f}}(),v=function s(f,h,l){null===f&&(f=Function.prototype);var c=Object.getOwnPropertyDescriptor(f,h);if(void 0===c){var m=Object.getPrototypeOf(f);return null===m?void 0:s(m,h,l)}if("value"in c)return c.value;var a=c.get;return void 0!==a?a.call(l):void 0},r=(s=d(0))&&s.__esModule?s:{default:s},n=function(s){function f(){return O(this,f),u(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return function y(s,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(s,f):s.__proto__=f)}(f,s),g(f,[{key:"add",value:function(h,l){if("+1"===l||"-1"===l){var c=this.value(h)||0;l="+1"===l?c+1:c-1}return 0===l?(this.remove(h),!0):v(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"add",this).call(this,h,l)}},{key:"canAdd",value:function(h,l){return v(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"canAdd",this).call(this,h,l)||v(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"canAdd",this).call(this,h,parseInt(l))}},{key:"value",value:function(h){return parseInt(v(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"value",this).call(this,h))||void 0}}]),f}(r.default.Attributor.Class),i=new n("indent","ql-indent",{scope:r.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});p.IndentClass=i},function(B,p,d){"use strict";function O(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function u(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?r:n}Object.defineProperty(p,"__esModule",{value:!0});var r,o=function(r){function n(){return O(this,n),u(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function y(r,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}(n,r),n}(((r=d(3))&&r.__esModule?r:{default:r}).default);o.blotName="blockquote",o.tagName="blockquote",p.default=o},function(B,p,d){"use strict";function O(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function u(n,i){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?n:i}Object.defineProperty(p,"__esModule",{value:!0});var n,g=function(){function n(i,s){for(var f=0;f<s.length;f++){var h=s[f];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}return function(i,s,f){return s&&n(i.prototype,s),f&&n(i,f),i}}(),r=function(n){function i(){return O(this,i),u(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function y(n,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=i)}(i,n),g(i,null,[{key:"formats",value:function(s){return this.tagName.indexOf(s.tagName)+1}}]),i}(((n=d(3))&&n.__esModule?n:{default:n}).default);r.blotName="header",r.tagName=["H1","H2","H3","H4","H5","H6"],p.default=r},function(B,p,d){"use strict";function O(a){return a&&a.__esModule?a:{default:a}}function y(a,E){if(!(a instanceof E))throw new TypeError("Cannot call a class as a function")}function g(a,E){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!E||"object"!=typeof E&&"function"!=typeof E?a:E}function v(a,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function, not "+typeof E);a.prototype=Object.create(E&&E.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(a,E):a.__proto__=E)}Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.ListItem=void 0;var o=function(){function a(E,x){for(var S=0;S<x.length;S++){var A=x[S];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}return function(E,x,S){return x&&a(E.prototype,x),S&&a(E,S),E}}(),r=function a(E,x,S){null===E&&(E=Function.prototype);var A=Object.getOwnPropertyDescriptor(E,x);if(void 0===A){var b=Object.getPrototypeOf(E);return null===b?void 0:a(b,x,S)}if("value"in A)return A.value;var k=A.get;return void 0!==k?k.call(S):void 0},i=O(d(0)),f=O(d(3)),l=O(d(23)),c=function(a){function E(){return y(this,E),g(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return v(E,a),o(E,[{key:"format",value:function(x,S){x!==m.blotName||S?r(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,x,S):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(x,S){return this.parent.isolate(this.offset(this.parent),this.length()),x===this.parent.statics.blotName?(this.parent.replaceWith(x,S),this):(this.parent.unwrap(),r(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,x,S))}}],[{key:"formats",value:function(x){return x.tagName===this.tagName?void 0:r(E.__proto__||Object.getPrototypeOf(E),"formats",this).call(this,x)}}]),E}(f.default);c.blotName="list-item",c.tagName="LI";var m=function(a){function E(x){y(this,E);var S=g(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,x)),A=function(b){if(b.target.parentNode===x){var k=S.statics.formats(x),_=i.default.find(b.target);"checked"===k?_.format("list","unchecked"):"unchecked"===k&&_.format("list","checked")}};return x.addEventListener("touchstart",A),x.addEventListener("mousedown",A),S}return v(E,a),o(E,null,[{key:"create",value:function(x){var S="ordered"===x?"OL":"UL",A=r(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,S);return"checked"!==x&&"unchecked"!==x||A.setAttribute("data-checked","checked"===x),A}},{key:"formats",value:function(x){return"OL"===x.tagName?"ordered":"UL"===x.tagName?x.hasAttribute("data-checked")?"true"===x.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),o(E,[{key:"format",value:function(x,S){this.children.length>0&&this.children.tail.format(x,S)}},{key:"formats",value:function(){return function u(a,E,x){return E in a?Object.defineProperty(a,E,{value:x,enumerable:!0,configurable:!0,writable:!0}):a[E]=x,a}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(x,S){if(x instanceof c)r(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,x,S);else{var A=null==S?this.length():S.offset(this),b=this.split(A);b.parent.insertBefore(x,b)}}},{key:"optimize",value:function(x){r(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,x);var S=this.next;null!=S&&S.prev===this&&S.statics.blotName===this.statics.blotName&&S.domNode.tagName===this.domNode.tagName&&S.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(S.moveChildren(this),S.remove())}},{key:"replace",value:function(x){if(x.statics.blotName!==this.statics.blotName){var S=i.default.create(this.statics.defaultChild);x.moveChildren(S),this.appendChild(S)}r(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replace",this).call(this,x)}}]),E}(l.default);m.blotName="list",m.scope=i.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[c],p.ListItem=c,p.default=m},function(B,p,d){"use strict";function O(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function u(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?r:n}Object.defineProperty(p,"__esModule",{value:!0});var r,o=function(r){function n(){return O(this,n),u(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function y(r,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}(n,r),n}(((r=d(39))&&r.__esModule?r:{default:r}).default);o.blotName="italic",o.tagName=["EM","I"],p.default=o},function(B,p,d){"use strict";function O(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function u(i,s){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!=typeof s&&"function"!=typeof s?i:s}Object.defineProperty(p,"__esModule",{value:!0});var i,g=function(){function i(s,f){for(var h=0;h<f.length;h++){var l=f[h];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}return function(s,f,h){return f&&i(s.prototype,f),h&&i(s,h),s}}(),v=function i(s,f,h){null===s&&(s=Function.prototype);var l=Object.getOwnPropertyDescriptor(s,f);if(void 0===l){var c=Object.getPrototypeOf(s);return null===c?void 0:i(c,f,h)}if("value"in l)return l.value;var m=l.get;return void 0!==m?m.call(h):void 0},n=function(i){function s(){return O(this,s),u(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return function y(i,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(i,s):i.__proto__=s)}(s,i),g(s,null,[{key:"create",value:function(f){return"super"===f?document.createElement("sup"):"sub"===f?document.createElement("sub"):v(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,f)}},{key:"formats",value:function(f){return"SUB"===f.tagName?"sub":"SUP"===f.tagName?"super":void 0}}]),s}(((i=d(5))&&i.__esModule?i:{default:i}).default);n.blotName="script",n.tagName=["SUB","SUP"],p.default=n},function(B,p,d){"use strict";function O(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function u(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?r:n}Object.defineProperty(p,"__esModule",{value:!0});var r,o=function(r){function n(){return O(this,n),u(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function y(r,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}(n,r),n}(((r=d(5))&&r.__esModule?r:{default:r}).default);o.blotName="strike",o.tagName="S",p.default=o},function(B,p,d){"use strict";function O(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function u(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?r:n}Object.defineProperty(p,"__esModule",{value:!0});var r,o=function(r){function n(){return O(this,n),u(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function y(r,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}(n,r),n}(((r=d(5))&&r.__esModule?r:{default:r}).default);o.blotName="underline",o.tagName="U",p.default=o},function(B,p,d){"use strict";function O(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function u(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?f:h}Object.defineProperty(p,"__esModule",{value:!0});var f,g=function(){function f(h,l){for(var c=0;c<l.length;c++){var m=l[c];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,l,c){return l&&f(h.prototype,l),c&&f(h,c),h}}(),v=function f(h,l,c){null===h&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,l);if(void 0===m){var a=Object.getPrototypeOf(h);return null===a?void 0:f(a,l,c)}if("value"in m)return m.value;var E=m.get;return void 0!==E?E.call(c):void 0},r=(f=d(0))&&f.__esModule?f:{default:f},n=d(15),i=["alt","height","width"],s=function(f){function h(){return O(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return function y(f,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}(h,f),g(h,[{key:"format",value:function(l,c){i.indexOf(l)>-1?c?this.domNode.setAttribute(l,c):this.domNode.removeAttribute(l):v(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,l,c)}}],[{key:"create",value:function(l){var c=v(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,l);return"string"==typeof l&&c.setAttribute("src",this.sanitize(l)),c}},{key:"formats",value:function(l){return i.reduce(function(c,m){return l.hasAttribute(m)&&(c[m]=l.getAttribute(m)),c},{})}},{key:"match",value:function(l){return/\.(jpe?g|gif|png)$/.test(l)||/^data:image\/.+;base64/.test(l)}},{key:"sanitize",value:function(l){return(0,n.sanitize)(l,["http","https","data"])?l:"//:0"}},{key:"value",value:function(l){return l.getAttribute("src")}}]),h}(r.default.Embed);s.blotName="image",s.tagName="IMG",p.default=s},function(B,p,d){"use strict";function O(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function u(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?f:h}Object.defineProperty(p,"__esModule",{value:!0});var f,g=function(){function f(h,l){for(var c=0;c<l.length;c++){var m=l[c];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,l,c){return l&&f(h.prototype,l),c&&f(h,c),h}}(),v=function f(h,l,c){null===h&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,l);if(void 0===m){var a=Object.getPrototypeOf(h);return null===a?void 0:f(a,l,c)}if("value"in m)return m.value;var E=m.get;return void 0!==E?E.call(c):void 0},o=d(3),n=(f=d(15))&&f.__esModule?f:{default:f},i=["height","width"],s=function(f){function h(){return O(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return function y(f,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}(h,f),g(h,[{key:"format",value:function(l,c){i.indexOf(l)>-1?c?this.domNode.setAttribute(l,c):this.domNode.removeAttribute(l):v(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,l,c)}}],[{key:"create",value:function(l){var c=v(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,l);return c.setAttribute("frameborder","0"),c.setAttribute("allowfullscreen",!0),c.setAttribute("src",this.sanitize(l)),c}},{key:"formats",value:function(l){return i.reduce(function(c,m){return l.hasAttribute(m)&&(c[m]=l.getAttribute(m)),c},{})}},{key:"sanitize",value:function(l){return n.default.sanitize(l)}},{key:"value",value:function(l){return l.getAttribute("src")}}]),h}(o.BlockEmbed);s.blotName="video",s.className="ql-video",s.tagName="IFRAME",p.default=s},function(B,p,d){"use strict";function O(m){return m&&m.__esModule?m:{default:m}}function u(m,a){if(!(m instanceof a))throw new TypeError("Cannot call a class as a function")}function y(m,a){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?m:a}function g(m,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);m.prototype=Object.create(a&&a.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(m,a):m.__proto__=a)}Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.FormulaBlot=void 0;var v=function(){function m(a,E){for(var x=0;x<E.length;x++){var S=E[x];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(a,S.key,S)}}return function(a,E,x){return E&&m(a.prototype,E),x&&m(a,x),a}}(),o=function m(a,E,x){null===a&&(a=Function.prototype);var S=Object.getOwnPropertyDescriptor(a,E);if(void 0===S){var A=Object.getPrototypeOf(a);return null===A?void 0:m(A,E,x)}if("value"in S)return S.value;var b=S.get;return void 0!==b?b.call(x):void 0},n=O(d(33)),s=O(d(6)),h=O(d(7)),l=function(m){function a(){return u(this,a),y(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return g(a,m),v(a,null,[{key:"create",value:function(E){var x=o(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,E);return"string"==typeof E&&(window.katex.render(E,x,{throwOnError:!1,errorColor:"#f00"}),x.setAttribute("data-value",E)),x}},{key:"value",value:function(E){return E.getAttribute("data-value")}}]),a}(n.default);l.blotName="formula",l.className="ql-formula",l.tagName="SPAN";var c=function(m){function a(){u(this,a);var E=y(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return E}return g(a,m),v(a,null,[{key:"register",value:function(){s.default.register(l,!0)}}]),a}(h.default);p.FormulaBlot=l,p.default=c},function(B,p,d){"use strict";function O(x){return x&&x.__esModule?x:{default:x}}function u(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}function y(x,S){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!S||"object"!=typeof S&&"function"!=typeof S?x:S}function g(x,S){if("function"!=typeof S&&null!==S)throw new TypeError("Super expression must either be null or a function, not "+typeof S);x.prototype=Object.create(S&&S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(x,S):x.__proto__=S)}Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.CodeToken=p.CodeBlock=void 0;var v=function(){function x(S,A){for(var b=0;b<A.length;b++){var k=A[b];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(S,k.key,k)}}return function(S,A,b){return A&&x(S.prototype,A),b&&x(S,b),S}}(),o=function x(S,A,b){null===S&&(S=Function.prototype);var k=Object.getOwnPropertyDescriptor(S,A);if(void 0===k){var _=Object.getPrototypeOf(S);return null===_?void 0:x(_,A,b)}if("value"in k)return k.value;var w=k.get;return void 0!==w?w.call(b):void 0},n=O(d(0)),s=O(d(6)),h=O(d(7)),m=function(x){function S(){return u(this,S),y(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return g(S,x),v(S,[{key:"replaceWith",value:function(A){this.domNode.textContent=this.domNode.textContent,this.attach(),o(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,A)}},{key:"highlight",value:function(A){var b=this.domNode.textContent;this.cachedText!==b&&((b.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=A(b),this.domNode.normalize(),this.attach()),this.cachedText=b)}}]),S}(O(d(13)).default);m.className="ql-syntax";var a=new n.default.Attributor.Class("token","hljs",{scope:n.default.Scope.INLINE}),E=function(x){function S(A,b){u(this,S);var k=y(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,A,b));if("function"!=typeof k.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var _=null;return k.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(_),_=setTimeout(function(){k.highlight(),_=null},k.options.interval)}),k.highlight(),k}return g(S,x),v(S,null,[{key:"register",value:function(){s.default.register(a,!0),s.default.register(m,!0)}}]),v(S,[{key:"highlight",value:function(){var A=this;if(!this.quill.selection.composing){this.quill.update(s.default.sources.USER);var b=this.quill.getSelection();this.quill.scroll.descendants(m).forEach(function(k){k.highlight(A.options.highlight)}),this.quill.update(s.default.sources.SILENT),null!=b&&this.quill.setSelection(b,s.default.sources.SILENT)}}}]),S}(h.default);E.DEFAULTS={highlight:null==window.hljs?null:function(x){return window.hljs.highlightAuto(x).value},interval:1e3},p.CodeBlock=m,p.CodeToken=a,p.default=E},function(B,p,d){"use strict";function O(_){return _&&_.__esModule?_:{default:_}}function g(_,w){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!=typeof w&&"function"!=typeof w?_:w}function o(_,w,N){var j=document.createElement("button");j.setAttribute("type","button"),j.classList.add("ql-"+w),null!=N&&(j.value=N),_.appendChild(j)}function r(_,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(N){var j=document.createElement("span");j.classList.add("ql-formats"),N.forEach(function(H){if("string"==typeof H)o(j,H);else{var X=Object.keys(H)[0],Z=H[X];Array.isArray(Z)?function n(_,w,N){var j=document.createElement("select");j.classList.add("ql-"+w),N.forEach(function(H){var X=document.createElement("option");!1!==H?X.setAttribute("value",H):X.setAttribute("selected","selected"),j.appendChild(X)}),_.appendChild(j)}(j,X,Z):o(j,X,Z)}}),_.appendChild(j)})}Object.defineProperty(p,"__esModule",{value:!0}),p.addControls=p.default=void 0;var i=function(w,N){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return function _(w,N){var j=[],H=!0,X=!1,Z=void 0;try{for(var nt,K=w[Symbol.iterator]();!(H=(nt=K.next()).done)&&(j.push(nt.value),!N||j.length!==N);H=!0);}catch(L){X=!0,Z=L}finally{try{!H&&K.return&&K.return()}finally{if(X)throw Z}}return j}(w,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")},s=function(){function _(w,N){for(var j=0;j<N.length;j++){var H=N[j];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(w,H.key,H)}}return function(w,N,j){return N&&_(w.prototype,N),j&&_(w,j),w}}(),h=O(d(4)),c=O(d(0)),a=O(d(6)),x=O(d(10)),A=O(d(7)),b=(0,x.default)("quill:toolbar"),k=function(_){function w(N,j){!function y(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}(this,w);var Z,H=g(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,N,j));if(Array.isArray(H.options.container)){var X=document.createElement("div");r(X,H.options.container),N.container.parentNode.insertBefore(X,N.container),H.container=X}else H.container="string"==typeof H.options.container?document.querySelector(H.options.container):H.options.container;return H.container instanceof HTMLElement?(H.container.classList.add("ql-toolbar"),H.controls=[],H.handlers={},Object.keys(H.options.handlers).forEach(function(nt){H.addHandler(nt,H.options.handlers[nt])}),[].forEach.call(H.container.querySelectorAll("button, select"),function(nt){H.attach(nt)}),H.quill.on(a.default.events.EDITOR_CHANGE,function(nt,K){nt===a.default.events.SELECTION_CHANGE&&H.update(K)}),H.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){var nt=H.quill.selection.getRange(),K=i(nt,1);H.update(K[0])}),H):(Z=b.error("Container required for toolbar",H.options),g(H,Z))}return function v(_,w){if("function"!=typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(_,w):_.__proto__=w)}(w,_),s(w,[{key:"addHandler",value:function(N,j){this.handlers[N]=j}},{key:"attach",value:function(N){var j=this,H=[].find.call(N.classList,function(Z){return 0===Z.indexOf("ql-")});if(H){if(H=H.slice(3),"BUTTON"===N.tagName&&N.setAttribute("type","button"),null==this.handlers[H]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[H])return void b.warn("ignoring attaching to disabled format",H,N);if(null==c.default.query(H))return void b.warn("ignoring attaching to nonexistent format",H,N)}N.addEventListener("SELECT"===N.tagName?"change":"click",function(Z){var nt=void 0;if("SELECT"===N.tagName){if(N.selectedIndex<0)return;var K=N.options[N.selectedIndex];nt=!K.hasAttribute("selected")&&(K.value||!1)}else nt=!N.classList.contains("ql-active")&&(N.value||!N.hasAttribute("value")),Z.preventDefault();j.quill.focus();var L=j.quill.selection.getRange(),M=i(L,1)[0];if(null!=j.handlers[H])j.handlers[H].call(j,nt);else if(c.default.query(H).prototype instanceof c.default.Embed){if(!(nt=prompt("Enter "+H)))return;j.quill.updateContents((new h.default).retain(M.index).delete(M.length).insert(function u(_,w,N){return w in _?Object.defineProperty(_,w,{value:N,enumerable:!0,configurable:!0,writable:!0}):_[w]=N,_}({},H,nt)),a.default.sources.USER)}else j.quill.format(H,nt,a.default.sources.USER);j.update(M)}),this.controls.push([H,N])}}},{key:"update",value:function(N){var j=null==N?{}:this.quill.getFormat(N);this.controls.forEach(function(H){var X=i(H,2),Z=X[0],nt=X[1];if("SELECT"===nt.tagName){var K=void 0;if(null==N)K=null;else if(null==j[Z])K=nt.querySelector("option[selected]");else if(!Array.isArray(j[Z])){var L=j[Z];"string"==typeof L&&(L=L.replace(/\"/g,'\\"')),K=nt.querySelector('option[value="'+L+'"]')}null==K?(nt.value="",nt.selectedIndex=-1):K.selected=!0}else if(null==N)nt.classList.remove("ql-active");else if(nt.hasAttribute("value")){var q=j[Z]===nt.getAttribute("value")||null!=j[Z]&&j[Z].toString()===nt.getAttribute("value")||null==j[Z]&&!nt.getAttribute("value");nt.classList.toggle("ql-active",q)}else nt.classList.toggle("ql-active",null!=j[Z])})}}]),w}(A.default);k.DEFAULTS={},k.DEFAULTS={container:null,handlers:{clean:function(){var _=this,w=this.quill.getSelection();if(null!=w)if(0==w.length){var N=this.quill.getFormat();Object.keys(N).forEach(function(j){null!=c.default.query(j,c.default.Scope.INLINE)&&_.quill.format(j,!1)})}else this.quill.removeFormat(w,a.default.sources.USER)},direction:function(_){var w=this.quill.getFormat().align;"rtl"===_&&null==w?this.quill.format("align","right",a.default.sources.USER):_||"right"!==w||this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",_,a.default.sources.USER)},indent:function(_){var w=this.quill.getSelection(),N=this.quill.getFormat(w),j=parseInt(N.indent||0);if("+1"===_||"-1"===_){var H="+1"===_?1:-1;"rtl"===N.direction&&(H*=-1),this.quill.format("indent",j+H,a.default.sources.USER)}},link:function(_){!0===_&&(_=prompt("Enter link URL:")),this.quill.format("link",_,a.default.sources.USER)},list:function(_){var w=this.quill.getSelection(),N=this.quill.getFormat(w);this.quill.format("list","check"===_?"checked"!==N.list&&"unchecked"!==N.list&&"unchecked":_,a.default.sources.USER)}}},p.default=k,p.addControls=r},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(B,p){B.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(B,p){B.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(B,p){B.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(B,p){B.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(B,p){B.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(B,p,d){"use strict";function O(S){return S&&S.__esModule?S:{default:S}}function u(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function y(S,A){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!A||"object"!=typeof A&&"function"!=typeof A?S:A}function g(S,A){if("function"!=typeof A&&null!==A)throw new TypeError("Super expression must either be null or a function, not "+typeof A);S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(S,A):S.__proto__=A)}Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BubbleTooltip=void 0;var v=function S(A,b,k){null===A&&(A=Function.prototype);var _=Object.getOwnPropertyDescriptor(A,b);if(void 0===_){var w=Object.getPrototypeOf(A);return null===w?void 0:S(w,b,k)}if("value"in _)return _.value;var N=_.get;return void 0!==N?N.call(k):void 0},o=function(){function S(A,b){for(var k=0;k<b.length;k++){var _=b[k];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(A,_.key,_)}}return function(A,b,k){return b&&S(A.prototype,b),k&&S(A,k),A}}(),n=O(d(2)),s=O(d(9)),f=d(44),h=O(f),l=d(22),m=O(d(26)),a=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],E=function(S){function A(b,k){u(this,A),null!=k.modules.toolbar&&null==k.modules.toolbar.container&&(k.modules.toolbar.container=a);var _=y(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,b,k));return _.quill.container.classList.add("ql-bubble"),_}return g(A,S),o(A,[{key:"extendToolbar",value:function(b){this.tooltip=new x(this.quill,this.options.bounds),this.tooltip.root.appendChild(b.container),this.buildButtons([].slice.call(b.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(b.container.querySelectorAll("select")),m.default)}}]),A}(h.default);E.DEFAULTS=(0,n.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){S?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var x=function(S){function A(b,k){u(this,A);var _=y(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,b,k));return _.quill.on(s.default.events.EDITOR_CHANGE,function(w,N,j,H){if(w===s.default.events.SELECTION_CHANGE)if(null!=N&&N.length>0&&H===s.default.sources.USER){_.show(),_.root.style.left="0px",_.root.style.width="",_.root.style.width=_.root.offsetWidth+"px";var X=_.quill.getLines(N.index,N.length);if(1===X.length)_.position(_.quill.getBounds(N));else{var Z=X[X.length-1],nt=_.quill.getIndex(Z),K=Math.min(Z.length()-1,N.index+N.length-nt),L=_.quill.getBounds(new l.Range(nt,K));_.position(L)}}else document.activeElement!==_.textbox&&_.quill.hasFocus()&&_.hide()}),_}return g(A,S),o(A,[{key:"listen",value:function(){var b=this;v(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){b.root.classList.remove("ql-editing")}),this.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!b.root.classList.contains("ql-hidden")){var k=b.quill.getSelection();null!=k&&b.position(b.quill.getBounds(k))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(b){var k=v(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,b),_=this.root.querySelector(".ql-tooltip-arrow");if(_.style.marginLeft="",0===k)return k;_.style.marginLeft=-1*k-_.offsetWidth/2+"px"}}]),A}(f.BaseTooltip);x.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),p.BubbleTooltip=x,p.default=E},function(B,p,d){"use strict";function O(k){return k&&k.__esModule?k:{default:k}}function u(k,_){if(!(k instanceof _))throw new TypeError("Cannot call a class as a function")}function y(k,_){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!_||"object"!=typeof _&&"function"!=typeof _?k:_}function g(k,_){if("function"!=typeof _&&null!==_)throw new TypeError("Super expression must either be null or a function, not "+typeof _);k.prototype=Object.create(_&&_.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(k,_):k.__proto__=_)}Object.defineProperty(p,"__esModule",{value:!0});var o=function k(_,w,N){null===_&&(_=Function.prototype);var j=Object.getOwnPropertyDescriptor(_,w);if(void 0===j){var H=Object.getPrototypeOf(_);return null===H?void 0:k(H,w,N)}if("value"in j)return j.value;var X=j.get;return void 0!==X?X.call(N):void 0},r=function(){function k(_,w){for(var N=0;N<w.length;N++){var j=w[N];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(_,j.key,j)}}return function(_,w,N){return w&&k(_.prototype,w),N&&k(_,N),_}}(),i=O(d(2)),f=O(d(9)),h=d(44),l=O(h),m=O(d(15)),a=d(22),x=O(d(26)),S=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(k){function _(w,N){u(this,_),null!=N.modules.toolbar&&null==N.modules.toolbar.container&&(N.modules.toolbar.container=S);var j=y(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,w,N));return j.quill.container.classList.add("ql-snow"),j}return g(_,k),r(_,[{key:"extendToolbar",value:function(w){w.container.classList.add("ql-snow"),this.buildButtons([].slice.call(w.container.querySelectorAll("button")),x.default),this.buildPickers([].slice.call(w.container.querySelectorAll("select")),x.default),this.tooltip=new b(this.quill,this.options.bounds),w.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(N,j){w.handlers.link.call(w,!j.format.link)})}}]),_}(l.default);A.DEFAULTS=(0,i.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(k){if(k){var _=this.quill.getSelection();if(null==_||0==_.length)return;var w=this.quill.getText(_);/^\S+@\S+\.\S+$/.test(w)&&0!==w.indexOf("mailto:")&&(w="mailto:"+w),this.quill.theme.tooltip.edit("link",w)}else this.quill.format("link",!1)}}}}});var b=function(k){function _(w,N){u(this,_);var j=y(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,w,N));return j.preview=j.root.querySelector("a.ql-preview"),j}return g(_,k),r(_,[{key:"listen",value:function(){var w=this;o(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(N){w.root.classList.contains("ql-editing")?w.save():w.edit("link",w.preview.textContent),N.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(N){if(null!=w.linkRange){var j=w.linkRange;w.restoreFocus(),w.quill.formatText(j,"link",!1,f.default.sources.USER),delete w.linkRange}N.preventDefault(),w.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(N,j,H){if(null!=N){if(0===N.length&&H===f.default.sources.USER){var Z=function(_,w){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return function k(_,w){var N=[],j=!0,H=!1,X=void 0;try{for(var Z,nt=_[Symbol.iterator]();!(j=(Z=nt.next()).done)&&(N.push(Z.value),!w||N.length!==w);j=!0);}catch(K){H=!0,X=K}finally{try{!j&&nt.return&&nt.return()}finally{if(H)throw X}}return N}(_,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(w.quill.scroll.descendant(m.default,N.index),2),nt=Z[0];if(null!=nt){w.linkRange=new a.Range(N.index-Z[1],nt.length());var L=m.default.formats(nt.domNode);return w.preview.textContent=L,w.preview.setAttribute("href",L),w.show(),void w.position(w.quill.getBounds(w.linkRange))}}else delete w.linkRange;w.hide()}})}},{key:"show",value:function(){o(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),_}(h.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),p.default=A}]).default}),function(B,p){"object"==typeof exports&&"undefined"!=typeof module?module.exports=p():"function"==typeof define&&define.amd?define(p):(B=B||self).Sweetalert2=p()}(this,function(){"use strict";const B="SweetAlert2:",d=P=>P.charAt(0).toUpperCase()+P.slice(1),O=P=>{console.warn("".concat(B," ").concat("object"==typeof P?P.join(" "):P))},u=P=>{console.error("".concat(B," ").concat(P))},y=[],o=P=>"function"==typeof P?P():P,r=P=>P&&"function"==typeof P.toPromise,n=P=>r(P)?P.toPromise():Promise.resolve(P),i=P=>P&&Promise.resolve(P)===P,f={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},h=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],l={},c=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=P=>Object.prototype.hasOwnProperty.call(f,P),a=P=>-1!==h.indexOf(P),E=P=>l[P],x=P=>{m(P)||O('Unknown parameter "'.concat(P,'"'))},S=P=>{c.includes(P)&&O('The parameter "'.concat(P,'" is incompatible with toasts'))},A=P=>{E(P)&&((P,C)=>{(P=>{y.includes(P)||(y.push(P),O(P))})('"'.concat(P,'" is deprecated and will be removed in the next major release. Please use "').concat(C,'" instead.'))})(P,E(P))},_=P=>{const C={};for(const z in P)C[P[z]]="swal2-"+P[z];return C},w=_(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),N=_(["success","warning","info","question","error"]),j=()=>document.body.querySelector(".".concat(w.container)),H=P=>{const C=j();return C?C.querySelector(P):null},X=P=>H(".".concat(P)),Z=()=>X(w.popup),nt=()=>X(w.icon),K=()=>X(w.title),L=()=>X(w["html-container"]),q=()=>X(w.image),M=()=>X(w["progress-steps"]),U=()=>X(w["validation-message"]),G=()=>H(".".concat(w.actions," .").concat(w.confirm)),V=()=>H(".".concat(w.actions," .").concat(w.deny)),W=()=>H(".".concat(w.loader)),tt=()=>H(".".concat(w.actions," .").concat(w.cancel)),it=()=>X(w.actions),st=()=>X(w.footer),pt=()=>X(w["timer-progress-bar"]),bt=()=>X(w.close),At=()=>{const P=Array.from(Z().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((z,at)=>{const yt=parseInt(z.getAttribute("tabindex")),Pt=parseInt(at.getAttribute("tabindex"));return yt>Pt?1:yt<Pt?-1:0}),C=Array.from(Z().querySelectorAll('\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n')).filter(z=>"-1"!==z.getAttribute("tabindex"));return(P=>{const C=[];for(let z=0;z<P.length;z++)-1===C.indexOf(P[z])&&C.push(P[z]);return C})(P.concat(C)).filter(z=>Mt(z))},Ct=()=>I(document.body,w.shown)&&!I(document.body,w["toast-shown"])&&!I(document.body,w["no-backdrop"]),Lt=()=>Z()&&I(Z(),w.toast),R={previousBodyPadding:null},T=(P,C)=>{if(P.textContent="",C){const at=(new DOMParser).parseFromString(C,"text/html");Array.from(at.querySelector("head").childNodes).forEach(yt=>{P.appendChild(yt)}),Array.from(at.querySelector("body").childNodes).forEach(yt=>{P.appendChild(yt)})}},I=(P,C)=>{if(!C)return!1;const z=C.split(/\s+/);for(let at=0;at<z.length;at++)if(!P.classList.contains(z[at]))return!1;return!0},F=(P,C,z)=>{if(((P,C)=>{Array.from(P.classList).forEach(z=>{!Object.values(w).includes(z)&&!Object.values(N).includes(z)&&!Object.values(C.showClass).includes(z)&&P.classList.remove(z)})})(P,C),C.customClass&&C.customClass[z]){if("string"!=typeof C.customClass[z]&&!C.customClass[z].forEach)return O("Invalid type of customClass.".concat(z,'! Expected string or iterable object, got "').concat(typeof C.customClass[z],'"'));dt(P,C.customClass[z])}},et=(P,C)=>{if(!C)return null;switch(C){case"select":case"textarea":case"file":return P.querySelector(".".concat(w.popup," > .").concat(w[C]));case"checkbox":return P.querySelector(".".concat(w.popup," > .").concat(w.checkbox," input"));case"radio":return P.querySelector(".".concat(w.popup," > .").concat(w.radio," input:checked"))||P.querySelector(".".concat(w.popup," > .").concat(w.radio," input:first-child"));case"range":return P.querySelector(".".concat(w.popup," > .").concat(w.range," input"));default:return P.querySelector(".".concat(w.popup," > .").concat(w.input))}},ot=P=>{if(P.focus(),"file"!==P.type){const C=P.value;P.value="",P.value=C}},ut=(P,C,z)=>{!P||!C||("string"==typeof C&&(C=C.split(/\s+/).filter(Boolean)),C.forEach(at=>{Array.isArray(P)?P.forEach(yt=>{z?yt.classList.add(at):yt.classList.remove(at)}):z?P.classList.add(at):P.classList.remove(at)}))},dt=(P,C)=>{ut(P,C,!0)},vt=(P,C)=>{ut(P,C,!1)},gt=(P,C)=>{const z=Array.from(P.children);for(let at=0;at<z.length;at++){const yt=z[at];if(yt instanceof HTMLElement&&I(yt,C))return yt}},St=(P,C,z)=>{z==="".concat(parseInt(z))&&(z=parseInt(z)),z||0===parseInt(z)?P.style[C]="number"==typeof z?"".concat(z,"px"):z:P.style.removeProperty(C)},Ot=function(P){let C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";P.style.display=C},xt=P=>{P.style.display="none"},Rt=(P,C,z,at)=>{const yt=P.querySelector(C);yt&&(yt.style[z]=at)},Ht=function(P,C){let z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex";C?Ot(P,z):xt(P)},Mt=P=>!(!P||!(P.offsetWidth||P.offsetHeight||P.getClientRects().length)),Ut=P=>P.scrollHeight>P.clientHeight,Yt=P=>{const C=window.getComputedStyle(P),z=parseFloat(C.getPropertyValue("animation-duration")||"0"),at=parseFloat(C.getPropertyValue("transition-duration")||"0");return z>0||at>0},Gt=function(P){let C=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const z=pt();Mt(z)&&(C&&(z.style.transition="none",z.style.width="100%"),setTimeout(()=>{z.style.transition="width ".concat(P/1e3,"s linear"),z.style.width="0%"},10))},le=()=>"undefined"==typeof window||"undefined"==typeof document,jt={},de='\n <div aria-labelledby="'.concat(w.title,'" aria-describedby="').concat(w["html-container"],'" class="').concat(w.popup,'" tabindex="-1">\n   <button type="button" class="').concat(w.close,'"></button>\n   <ul class="').concat(w["progress-steps"],'"></ul>\n   <div class="').concat(w.icon,'"></div>\n   <img class="').concat(w.image,'" />\n   <h2 class="').concat(w.title,'" id="').concat(w.title,'"></h2>\n   <div class="').concat(w["html-container"],'" id="').concat(w["html-container"],'"></div>\n   <input class="').concat(w.input,'" />\n   <input type="file" class="').concat(w.file,'" />\n   <div class="').concat(w.range,'">\n     <input type="range" />\n     <output></output>\n   </div>\n   <select class="').concat(w.select,'"></select>\n   <div class="').concat(w.radio,'"></div>\n   <label for="').concat(w.checkbox,'" class="').concat(w.checkbox,'">\n     <input type="checkbox" />\n     <span class="').concat(w.label,'"></span>\n   </label>\n   <textarea class="').concat(w.textarea,'"></textarea>\n   <div class="').concat(w["validation-message"],'" id="').concat(w["validation-message"],'"></div>\n   <div class="').concat(w.actions,'">\n     <div class="').concat(w.loader,'"></div>\n     <button type="button" class="').concat(w.confirm,'"></button>\n     <button type="button" class="').concat(w.deny,'"></button>\n     <button type="button" class="').concat(w.cancel,'"></button>\n   </div>\n   <div class="').concat(w.footer,'"></div>\n   <div class="').concat(w["timer-progress-bar-container"],'">\n     <div class="').concat(w["timer-progress-bar"],'"></div>\n   </div>\n </div>\n').replace(/(^|\n)\s*/g,""),ee=()=>{jt.currentInstance.resetValidationMessage()},Oe=(P,C)=>{P instanceof HTMLElement?C.appendChild(P):"object"==typeof P?Ue(P,C):P&&T(C,P)},Ue=(P,C)=>{P.jquery?Fe(C,P):T(C,P.toString())},Fe=(P,C)=>{if(P.textContent="",0 in C)for(let z=0;z in C;z++)P.appendChild(C[z].cloneNode(!0));else P.appendChild(C.cloneNode(!0))},ue=(()=>{if(le())return!1;const P=document.createElement("div"),C={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const z in C)if(Object.prototype.hasOwnProperty.call(C,z)&&void 0!==P.style[z])return C[z];return!1})();function ke(P,C,z){Ht(P,z["show".concat(d(C),"Button")],"inline-block"),T(P,z["".concat(C,"ButtonText")]),P.setAttribute("aria-label",z["".concat(C,"ButtonAriaLabel")]),P.className=w[C],F(P,z,"".concat(C,"Button")),dt(P,z["".concat(C,"ButtonClass")])}var It={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ge=["input","file","range","select","radio","checkbox","textarea"],ge=(P,C)=>{(!P.placeholder||C.inputPlaceholder)&&(P.placeholder=C.inputPlaceholder)},ne=(P,C,z)=>{if(z.inputLabel){P.id=w.input;const at=document.createElement("label"),yt=w["input-label"];at.setAttribute("for",P.id),at.className=yt,"object"==typeof z.customClass&&dt(at,z.customClass.inputLabel),at.innerText=z.inputLabel,C.insertAdjacentElement("beforebegin",at)}},Te=P=>gt(Z(),w[P]||w.input),re=(P,C)=>{["string","number"].includes(typeof C)?P.value="".concat(C):i(C)||O('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof C,'"'))},Zt={};Zt.text=Zt.email=Zt.password=Zt.number=Zt.tel=Zt.url=(P,C)=>(re(P,C.inputValue),ne(P,P,C),ge(P,C),P.type=C.input,P),Zt.file=(P,C)=>(ne(P,P,C),ge(P,C),P),Zt.range=(P,C)=>{const z=P.querySelector("input"),at=P.querySelector("output");return re(z,C.inputValue),z.type=C.input,re(at,C.inputValue),ne(z,P,C),P},Zt.select=(P,C)=>{if(P.textContent="",C.inputPlaceholder){const z=document.createElement("option");T(z,C.inputPlaceholder),z.value="",z.disabled=!0,z.selected=!0,P.appendChild(z)}return ne(P,P,C),P},Zt.radio=P=>(P.textContent="",P),Zt.checkbox=(P,C)=>{const z=et(Z(),"checkbox");z.value="1",z.id=w.checkbox,z.checked=Boolean(C.inputValue);const at=P.querySelector("span");return T(at,C.inputPlaceholder),z},Zt.textarea=(P,C)=>(re(P,C.inputValue),ge(P,C),ne(P,P,C),setTimeout(()=>{if("MutationObserver"in window){const at=parseInt(window.getComputedStyle(Z()).width);new MutationObserver(()=>{const Pt=P.offsetWidth+(at=>parseInt(window.getComputedStyle(at).marginLeft)+parseInt(window.getComputedStyle(at).marginRight))(P);Z().style.width=Pt>at?"".concat(Pt,"px"):null}).observe(P,{attributes:!0,attributeFilter:["style"]})}}),P);const ye=(P,C)=>{const z=L();F(z,C,"htmlContainer"),C.html?(Oe(C.html,z),Ot(z,"block")):C.text?(z.textContent=C.text,Ot(z,"block")):xt(z),((P,C)=>{const z=Z(),at=It.innerParams.get(P),yt=!at||C.input!==at.input;Ge.forEach(Pt=>{const $t=gt(z,w[Pt]);((P,C)=>{const z=et(Z(),P);if(z){(P=>{for(let C=0;C<P.attributes.length;C++){const z=P.attributes[C].name;["type","value","style"].includes(z)||P.removeAttribute(z)}})(z);for(const at in C)z.setAttribute(at,C[at])}})(Pt,C.inputAttributes),$t.className=w[Pt],yt&&xt($t)}),C.input&&(yt&&(P=>{if(!Zt[P.input])return u('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(P.input,'"'));const C=Te(P.input),z=Zt[P.input](C,P);Ot(C),setTimeout(()=>{ot(z)})})(C),(P=>{const C=Te(P.input);"object"==typeof P.customClass&&dt(C,P.customClass.input)})(C))})(P,C)},me=(P,C)=>{for(const z in N)C.icon!==z&&vt(P,N[z]);dt(P,N[C.icon]),rt(P,C),on(),F(P,C,"icon")},on=()=>{const P=Z(),C=window.getComputedStyle(P).getPropertyValue("background-color"),z=P.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let at=0;at<z.length;at++)z[at].style.backgroundColor=C},lt=(P,C)=>{let at,z=P.innerHTML;C.iconHtml?at=ft(C.iconHtml):"success"===C.icon?(at='\n  <div class="swal2-success-circular-line-left"></div>\n  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n  <div class="swal2-success-circular-line-right"></div>\n',z=z.replace(/ style=".*?"/g,"")):at="error"===C.icon?'\n  <span class="swal2-x-mark">\n    <span class="swal2-x-mark-line-left"></span>\n    <span class="swal2-x-mark-line-right"></span>\n  </span>\n':ft({question:"?",warning:"!",info:"i"}[C.icon]),z.trim()!==at.trim()&&T(P,at)},rt=(P,C)=>{if(C.iconColor){P.style.color=C.iconColor,P.style.borderColor=C.iconColor;for(const z of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])Rt(P,z,"backgroundColor",C.iconColor);Rt(P,".swal2-success-ring","borderColor",C.iconColor)}},ft=P=>'<div class="'.concat(w["icon-content"],'">').concat(P,"</div>"),Nt=(P,C)=>{((P,C)=>{const z=j(),at=Z();C.toast?(St(z,"width",C.width),at.style.width="100%",at.insertBefore(W(),nt())):St(at,"width",C.width),St(at,"padding",C.padding),C.color&&(at.style.color=C.color),C.background&&(at.style.background=C.background),xt(U()),((P,C)=>{P.className="".concat(w.popup," ").concat(Mt(P)?C.showClass.popup:""),C.toast?(dt([document.documentElement,document.body],w["toast-shown"]),dt(P,w.toast)):dt(P,w.modal),F(P,C,"popup"),"string"==typeof C.customClass&&dt(P,C.customClass),C.icon&&dt(P,w["icon-".concat(C.icon)])})(at,C)})(0,C),((P,C)=>{const z=j();!z||(function Ye(P,C){"string"==typeof C?P.style.background=C:C||dt([document.documentElement,document.body],w["no-backdrop"])}(z,C.backdrop),function Ve(P,C){C in w?dt(P,w[C]):(O('The "position" parameter is not valid, defaulting to "center"'),dt(P,w.center))}(z,C.position),function Xe(P,C){if(C&&"string"==typeof C){const z="grow-".concat(C);z in w&&dt(P,w[z])}}(z,C.grow),F(z,C,"container"))})(0,C),((P,C)=>{const z=M();if(!C.progressSteps||0===C.progressSteps.length)return xt(z);Ot(z),z.textContent="",C.currentProgressStep>=C.progressSteps.length&&O("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),C.progressSteps.forEach((at,yt)=>{const Pt=(P=>{const C=document.createElement("li");return dt(C,w["progress-step"]),T(C,P),C})(at);if(z.appendChild(Pt),yt===C.currentProgressStep&&dt(Pt,w["active-progress-step"]),yt!==C.progressSteps.length-1){const $t=(P=>{const C=document.createElement("li");return dt(C,w["progress-step-line"]),P.progressStepsDistance&&St(C,"width",P.progressStepsDistance),C})(C);z.appendChild($t)}})})(0,C),((P,C)=>{const z=It.innerParams.get(P),at=nt();z&&C.icon===z.icon?(lt(at,C),me(at,C)):C.icon||C.iconHtml?C.icon&&-1===Object.keys(N).indexOf(C.icon)?(u('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(C.icon,'"')),xt(at)):(Ot(at),lt(at,C),me(at,C),dt(at,C.showClass.icon)):xt(at)})(P,C),((P,C)=>{const z=q();if(!C.imageUrl)return xt(z);Ot(z,""),z.setAttribute("src",C.imageUrl),z.setAttribute("alt",C.imageAlt),St(z,"width",C.imageWidth),St(z,"height",C.imageHeight),z.className=w.image,F(z,C,"image")})(0,C),((P,C)=>{const z=K();Ht(z,C.title||C.titleText,"block"),C.title&&Oe(C.title,z),C.titleText&&(z.innerText=C.titleText),F(z,C,"title")})(0,C),((P,C)=>{const z=bt();T(z,C.closeButtonHtml),F(z,C,"closeButton"),Ht(z,C.showCloseButton),z.setAttribute("aria-label",C.closeButtonAriaLabel)})(0,C),ye(P,C),((P,C)=>{const z=it(),at=W();C.showConfirmButton||C.showDenyButton||C.showCancelButton?Ot(z):xt(z),F(z,C,"actions"),function ze(P,C,z){const at=G(),yt=V(),Pt=tt();ke(at,"confirm",z),ke(yt,"deny",z),ke(Pt,"cancel",z),function Ke(P,C,z,at){if(!at.buttonsStyling)return vt([P,C,z],w.styled);dt([P,C,z],w.styled),at.confirmButtonColor&&(P.style.backgroundColor=at.confirmButtonColor,dt(P,w["default-outline"])),at.denyButtonColor&&(C.style.backgroundColor=at.denyButtonColor,dt(C,w["default-outline"])),at.cancelButtonColor&&(z.style.backgroundColor=at.cancelButtonColor,dt(z,w["default-outline"]))}(at,yt,Pt,z),z.reverseButtons&&(z.toast?(P.insertBefore(Pt,at),P.insertBefore(yt,at)):(P.insertBefore(Pt,C),P.insertBefore(yt,C),P.insertBefore(at,C)))}(z,at,C),T(at,C.loaderHtml),F(at,C,"loader")})(0,C),((P,C)=>{const z=st();Ht(z,C.footer),C.footer&&Oe(C.footer,z),F(z,C,"footer")})(0,C),"function"==typeof C.didRender&&C.didRender(Z())},qt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Bt=()=>{Array.from(document.body.children).forEach(C=>{C.hasAttribute("data-previous-aria-hidden")?(C.setAttribute("aria-hidden",C.getAttribute("data-previous-aria-hidden")),C.removeAttribute("data-previous-aria-hidden")):C.removeAttribute("aria-hidden")})},Wt=["swal-title","swal-html","swal-footer"],se=(P,C)=>{Array.from(P.attributes).forEach(z=>{-1===C.indexOf(z.name)&&O(['Unrecognized attribute "'.concat(z.name,'" on <').concat(P.tagName.toLowerCase(),">."),"".concat(C.length?"Allowed attributes are: ".concat(C.join(", ")):"To set the value, use HTML within the element.")])})};var Ne={email:(P,C)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(P)?Promise.resolve():Promise.resolve(C||"Invalid email address"),url:(P,C)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(P)?Promise.resolve():Promise.resolve(C||"Invalid URL")};function Fn(P){(function Hn(P){P.inputValidator||Object.keys(Ne).forEach(C=>{P.input===C&&(P.inputValidator=Ne[C])})})(P),P.showLoaderOnConfirm&&!P.preConfirm&&O("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function Un(P){(!P.target||"string"==typeof P.target&&!document.querySelector(P.target)||"string"!=typeof P.target&&!P.target.appendChild)&&(O('Target parameter is not valid, defaulting to "body"'),P.target="body")}(P),"string"==typeof P.title&&(P.title=P.title.split("\n").join("<br />")),(P=>{const C=(()=>{const P=j();return!!P&&(P.remove(),vt([document.documentElement,document.body],[w["no-backdrop"],w["toast-shown"],w["has-column"]]),!0)})();if(le())return void u("SweetAlert2 requires document to initialize");const z=document.createElement("div");z.className=w.container,C&&dt(z,w["no-transition"]),T(z,de);const at=(P=>"string"==typeof P?document.querySelector(P):P)(P.target);at.appendChild(z),(P=>{const C=Z();C.setAttribute("role",P.toast?"alert":"dialog"),C.setAttribute("aria-live",P.toast?"polite":"assertive"),P.toast||C.setAttribute("aria-modal","true")})(P),(P=>{"rtl"===window.getComputedStyle(P).direction&&dt(j(),w.rtl)})(at),(()=>{const P=Z(),C=gt(P,w.input),z=gt(P,w.file),at=P.querySelector(".".concat(w.range," input")),yt=P.querySelector(".".concat(w.range," output")),Pt=gt(P,w.select),$t=P.querySelector(".".concat(w.checkbox," input")),oe=gt(P,w.textarea);C.oninput=ee,z.onchange=ee,Pt.onchange=ee,$t.onchange=ee,oe.oninput=ee,at.oninput=()=>{ee(),yt.value=at.value},at.onchange=()=>{ee(),yt.value=at.value}})()})(P)}class Wn{constructor(C,z){this.callback=C,this.remaining=z,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(C){const z=this.running;return z&&this.stop(),this.remaining+=C,z&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Xn=P=>{const C=P.target,z=j();return!(Gn(P)||Zn(P)||C!==z&&(Ut(z)||"INPUT"===C.tagName||"TEXTAREA"===C.tagName||Ut(L())&&L().contains(C)))},Gn=P=>P.touches&&P.touches.length&&"stylus"===P.touches[0].touchType,Zn=P=>P.touches&&P.touches.length>1,mn=P=>{const C=Z();if(P.target!==C)return;const z=j();C.removeEventListener(ue,mn),z.style.overflowY="auto"},tr=(P,C)=>{ue&&Yt(C)?(P.style.overflowY="hidden",C.addEventListener(ue,mn)):P.style.overflowY="auto"},er=(P,C,z)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!I(document.body,w.iosfix)){const C=document.body.scrollTop;document.body.style.top="".concat(-1*C,"px"),dt(document.body,w.iosfix),(()=>{const P=j();let C;P.ontouchstart=z=>{C=Xn(z)},P.ontouchmove=z=>{C&&(z.preventDefault(),z.stopPropagation())}})(),(()=>{const P=navigator.userAgent,C=!!P.match(/iPad/i)||!!P.match(/iPhone/i),z=!!P.match(/WebKit/i);C&&z&&!P.match(/CriOS/i)&&Z().scrollHeight>window.innerHeight-44&&(j().style.paddingBottom="".concat(44,"px"))})()}})(),C&&"hidden"!==z&&(null===R.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(R.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(R.previousBodyPadding+(()=>{const P=document.createElement("div");P.className=w["scrollbar-measure"],document.body.appendChild(P);const C=P.getBoundingClientRect().width-P.clientWidth;return document.body.removeChild(P),C})(),"px"))),setTimeout(()=>{P.scrollTop=0})},nr=(P,C,z)=>{dt(P,z.showClass.backdrop),C.style.setProperty("opacity","0","important"),Ot(C,"grid"),setTimeout(()=>{dt(C,z.showClass.popup),C.style.removeProperty("opacity")},10),dt([document.documentElement,document.body],w.shown),z.heightAuto&&z.backdrop&&!z.toast&&dt([document.documentElement,document.body],w["height-auto"])},be=P=>{let C=Z();C||new Re,C=Z();const z=W();Lt()?xt(nt()):rr(C,P),Ot(z),C.setAttribute("data-loading","true"),C.setAttribute("aria-busy","true"),C.focus()},rr=(P,C)=>{const z=it(),at=W();!C&&Mt(G())&&(C=G()),Ot(z),C&&(xt(C),at.setAttribute("data-button-to-replace",C.className)),at.parentNode.insertBefore(at,C),dt([P,z],w.loading)},fr={select:(P,C,z)=>{const at=gt(P,w.select),yt=(Pt,$t,oe)=>{const Jt=document.createElement("option");Jt.value=oe,T(Jt,$t),Jt.selected=bn(oe,z.inputValue),Pt.appendChild(Jt)};C.forEach(Pt=>{const $t=Pt[0],oe=Pt[1];if(Array.isArray(oe)){const Jt=document.createElement("optgroup");Jt.label=$t,Jt.disabled=!1,at.appendChild(Jt),oe.forEach(_e=>yt(Jt,_e[1],_e[0]))}else yt(at,oe,$t)}),at.focus()},radio:(P,C,z)=>{const at=gt(P,w.radio);C.forEach(Pt=>{const $t=Pt[0],oe=Pt[1],Jt=document.createElement("input"),_e=document.createElement("label");Jt.type="radio",Jt.name=w.radio,Jt.value=$t,bn($t,z.inputValue)&&(Jt.checked=!0);const vn=document.createElement("span");T(vn,oe),vn.className=w.label,_e.appendChild(Jt),_e.appendChild(vn),at.appendChild(_e)});const yt=at.querySelectorAll("input");yt.length&&yt[0].focus()}},un=P=>{const C=[];return"undefined"!=typeof Map&&P instanceof Map?P.forEach((z,at)=>{let yt=z;"object"==typeof yt&&(yt=un(yt)),C.push([at,yt])}):Object.keys(P).forEach(z=>{let at=P[z];"object"==typeof at&&(at=un(at)),C.push([z,at])}),C},bn=(P,C)=>C&&C.toString()===P.toString();function wn(){const P=It.innerParams.get(this);if(!P)return;const C=It.domCache.get(this);xt(C.loader),Lt()?P.icon&&Ot(nt()):dr(C),vt([C.popup,C.actions],w.loading),C.popup.removeAttribute("aria-busy"),C.popup.removeAttribute("data-loading"),C.confirmButton.disabled=!1,C.denyButton.disabled=!1,C.cancelButton.disabled=!1}const dr=P=>{const C=P.popup.getElementsByClassName(P.loader.getAttribute("data-button-to-replace"));C.length?Ot(C[0],"inline-block"):!Mt(G())&&!Mt(V())&&!Mt(tt())&&xt(P.actions)};var Pe={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const _n=()=>G()&&G().click(),En=P=>{P.keydownTarget&&P.keydownHandlerAdded&&(P.keydownTarget.removeEventListener("keydown",P.keydownHandler,{capture:P.keydownListenerCapture}),P.keydownHandlerAdded=!1)},cn=(P,C,z)=>{const at=At();if(at.length)return(C+=z)===at.length?C=0:-1===C&&(C=at.length-1),at[C].focus();Z().focus()},On=["ArrowRight","ArrowDown"],mr=["ArrowLeft","ArrowUp"],wr=(P,C,z)=>{if(o(z.allowEnterKey)&&C.target&&P.getInput()&&C.target instanceof HTMLElement&&C.target.outerHTML===P.getInput().outerHTML){if(["textarea","file"].includes(z.input))return;_n(),C.preventDefault()}},_r=(P,C)=>{const z=P.target,at=At();let yt=-1;for(let Pt=0;Pt<at.length;Pt++)if(z===at[Pt]){yt=Pt;break}cn(0,yt,P.shiftKey?-1:1),P.stopPropagation(),P.preventDefault()},Er=P=>{const C=G(),z=V(),at=tt();if(document.activeElement instanceof HTMLElement&&![C,z,at].includes(document.activeElement))return;const yt=On.includes(P)?"nextElementSibling":"previousElementSibling";let Pt=document.activeElement;for(let $t=0;$t<it().children.length;$t++){if(Pt=Pt[yt],!Pt)return;if(Pt instanceof HTMLButtonElement&&Mt(Pt))break}Pt instanceof HTMLButtonElement&&Pt.focus()},Or=(P,C,z)=>{o(C.allowEscapeKey)&&(P.preventDefault(),z(qt.esc))};function kn(P,C,z,at){Lt()?Tn(P,at):((P=>new Promise(C=>{if(!P)return C();const z=window.scrollX,at=window.scrollY;jt.restoreFocusTimeout=setTimeout(()=>{jt.previousActiveElement instanceof HTMLElement?(jt.previousActiveElement.focus(),jt.previousActiveElement=null):document.body&&document.body.focus(),C()},100),window.scrollTo(z,at)}))(z).then(()=>Tn(P,at)),En(jt)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(C.setAttribute("style","display:none !important"),C.removeAttribute("class"),C.innerHTML=""):C.remove(),Ct()&&(null!==R.previousBodyPadding&&(document.body.style.paddingRight="".concat(R.previousBodyPadding,"px"),R.previousBodyPadding=null),(()=>{if(I(document.body,w.iosfix)){const P=parseInt(document.body.style.top,10);vt(document.body,w.iosfix),document.body.style.top="",document.body.scrollTop=-1*P}})(),Bt()),function kr(){vt([document.documentElement,document.body],[w.shown,w["height-auto"],w["no-backdrop"],w["toast-shown"]])}()}function je(P){P=xr(P);const C=Pe.swalPromiseResolve.get(this),z=Ar(this);this.isAwaitingPromise()?P.isDismissed||(Ce(this),C(P)):z&&C(P)}const Ar=P=>{const C=Z();if(!C)return!1;const z=It.innerParams.get(P);if(!z||I(C,z.hideClass.popup))return!1;vt(C,z.showClass.popup),dt(C,z.hideClass.popup);const at=j();return vt(at,z.showClass.backdrop),dt(at,z.hideClass.backdrop),Nr(P,C,z),!0},Ce=P=>{P.isAwaitingPromise()&&(It.awaitingPromise.delete(P),It.innerParams.get(P)||P._destroy())},xr=P=>void 0===P?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},P),Nr=(P,C,z)=>{const at=j(),yt=ue&&Yt(C);"function"==typeof z.willClose&&z.willClose(C),yt?Pr(P,C,at,z.returnFocus,z.didClose):kn(P,at,z.returnFocus,z.didClose)},Pr=(P,C,z,at,yt)=>{jt.swalCloseEventFinishedCallback=kn.bind(null,P,z,at,yt),C.addEventListener(ue,function(Pt){Pt.target===C&&(jt.swalCloseEventFinishedCallback(),delete jt.swalCloseEventFinishedCallback)})},Tn=(P,C)=>{setTimeout(()=>{"function"==typeof C&&C.bind(P.params)(),P._destroy()})};function An(P,C,z){const at=It.domCache.get(P);C.forEach(yt=>{at[yt].disabled=z})}function Sn(P,C){if(!P)return!1;if("radio"===P.type){const at=P.parentNode.parentNode.querySelectorAll("input");for(let yt=0;yt<at.length;yt++)at[yt].disabled=C}else P.disabled=C}const xn=P=>{P.isAwaitingPromise()?(fn(It,P),It.awaitingPromise.set(P,!0)):(fn(Pe,P),fn(It,P))},fn=(P,C)=>{for(const z in P)P[z].delete(C)};var Nn=Object.freeze({hideLoading:wn,disableLoading:wn,getInput:function hr(P){const C=It.innerParams.get(P||this),z=It.domCache.get(P||this);return z?et(z.popup,C.input):null},close:je,isAwaitingPromise:function Tr(){return!!It.awaitingPromise.get(this)},rejectPromise:function Sr(P){const C=Pe.swalPromiseReject.get(this);Ce(this),C&&C(P)},handleAwaitingPromise:Ce,closePopup:je,closeModal:je,closeToast:je,enableButtons:function Cr(){An(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function Lr(){An(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function qr(){return Sn(this.getInput(),!1)},disableInput:function jr(){return Sn(this.getInput(),!0)},showValidationMessage:function Ir(P){const C=It.domCache.get(this),z=It.innerParams.get(this);T(C.validationMessage,P),C.validationMessage.className=w["validation-message"],z.customClass&&z.customClass.validationMessage&&dt(C.validationMessage,z.customClass.validationMessage),Ot(C.validationMessage);const at=this.getInput();at&&(at.setAttribute("aria-invalid",!0),at.setAttribute("aria-describedby",w["validation-message"]),ot(at),dt(at,w.inputerror))},resetValidationMessage:function Rr(){const P=It.domCache.get(this);P.validationMessage&&xt(P.validationMessage);const C=this.getInput();C&&(C.removeAttribute("aria-invalid"),C.removeAttribute("aria-describedby"),vt(C,w.inputerror))},getProgressSteps:function Dr(){return It.domCache.get(this).progressSteps},update:function Br(P){const C=Z(),z=It.innerParams.get(this);if(!C||I(C,z.hideClass.popup))return O("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const at=(P=>{const C={};return Object.keys(P).forEach(z=>{a(z)?C[z]=P[z]:O("Invalid parameter to update: ".concat(z))}),C})(P),yt=Object.assign({},z,at);Nt(this,yt),It.innerParams.set(this,yt),Object.defineProperties(this,{params:{value:Object.assign({},this.params,P),writable:!1,enumerable:!0}})},_destroy:function Hr(){const P=It.domCache.get(this),C=It.innerParams.get(this);C?(P.popup&&jt.swalCloseEventFinishedCallback&&(jt.swalCloseEventFinishedCallback(),delete jt.swalCloseEventFinishedCallback),"function"==typeof C.didDestroy&&C.didDestroy(),(P=>{xn(P),delete P.params,delete jt.keydownHandler,delete jt.keydownTarget,delete jt.currentInstance})(this)):xn(this)}});const Pn=(P,C)=>{const z=It.innerParams.get(P);if(!z.input)return void u('The "input" parameter is needed to be set when using returnInputValueOn'.concat(d(C)));const at=((P,C)=>{const z=P.getInput();if(!z)return null;switch(C.input){case"checkbox":return(P=>P.checked?1:0)(z);case"radio":return(P=>P.checked?P.value:null)(z);case"file":return(P=>P.files.length?null!==P.getAttribute("multiple")?P.files:P.files[0]:null)(z);default:return C.inputAutoTrim?z.value.trim():z.value}})(P,z);z.inputValidator?Kr(P,at,C):P.getInput().checkValidity()?"deny"===C?dn(P,at):hn(P,at):(P.enableButtons(),P.showValidationMessage(z.validationMessage))},Kr=(P,C,z)=>{const at=It.innerParams.get(P);P.disableInput(),Promise.resolve().then(()=>n(at.inputValidator(C,at.validationMessage))).then(Pt=>{P.enableButtons(),P.enableInput(),Pt?P.showValidationMessage(Pt):"deny"===z?dn(P,C):hn(P,C)})},dn=(P,C)=>{const z=It.innerParams.get(P||void 0);z.showLoaderOnDeny&&be(V()),z.preDeny?(It.awaitingPromise.set(P||void 0,!0),Promise.resolve().then(()=>n(z.preDeny(C,z.validationMessage))).then(yt=>{!1===yt?(P.hideLoading(),Ce(P)):P.close({isDenied:!0,value:void 0===yt?C:yt})}).catch(yt=>Ln(P||void 0,yt))):P.close({isDenied:!0,value:C})},Cn=(P,C)=>{P.close({isConfirmed:!0,value:C})},Ln=(P,C)=>{P.rejectPromise(C)},hn=(P,C)=>{const z=It.innerParams.get(P||void 0);z.showLoaderOnConfirm&&be(),z.preConfirm?(P.resetValidationMessage(),It.awaitingPromise.set(P||void 0,!0),Promise.resolve().then(()=>n(z.preConfirm(C,z.validationMessage))).then(yt=>{Mt(U())||!1===yt?(P.hideLoading(),Ce(P)):Cn(P,void 0===yt?C:yt)}).catch(yt=>Ln(P||void 0,yt))):Cn(P,C)},Vr=P=>P.showConfirmButton||P.showDenyButton||P.showCancelButton||P.showCloseButton;let Ie=!1;const qn=P=>P instanceof Element||(P=>"object"==typeof P&&P.jquery)(P),jn=()=>{if(jt.timeout)return(()=>{const P=pt(),C=parseInt(window.getComputedStyle(P).width);P.style.removeProperty("transition"),P.style.width="100%";const at=C/parseInt(window.getComputedStyle(P).width)*100;P.style.removeProperty("transition"),P.style.width="".concat(at,"%")})(),jt.timeout.stop()},In=()=>{if(jt.timeout){const P=jt.timeout.start();return Gt(P),P}};let Rn=!1;const pn={},si=P=>{for(let C=P.target;C&&C!==document;C=C.parentNode)for(const z in pn){const at=C.getAttribute(z);if(at)return void pn[z].fire({template:at})}};var li=Object.freeze({isValidParameter:m,isUpdatableParameter:a,isDeprecatedParameter:E,argsToParams:P=>{const C={};return"object"!=typeof P[0]||qn(P[0])?["title","html","icon"].forEach((z,at)=>{const yt=P[at];"string"==typeof yt||qn(yt)?C[z]=yt:void 0!==yt&&u("Unexpected type of ".concat(z,'! Expected "string" or "Element", got ').concat(typeof yt))}):Object.assign(C,P[0]),C},isVisible:()=>Mt(Z()),clickConfirm:_n,clickDeny:()=>V()&&V().click(),clickCancel:()=>tt()&&tt().click(),getContainer:j,getPopup:Z,getTitle:K,getHtmlContainer:L,getImage:q,getIcon:nt,getInputLabel:()=>X(w["input-label"]),getCloseButton:bt,getActions:it,getConfirmButton:G,getDenyButton:V,getCancelButton:tt,getLoader:W,getFooter:st,getTimerProgressBar:pt,getFocusableElements:At,getValidationMessage:U,isLoading:()=>Z().hasAttribute("data-loading"),fire:function ti(){const P=this;for(var C=arguments.length,z=new Array(C),at=0;at<C;at++)z[at]=arguments[at];return new P(...z)},mixin:function ei(P){return class C extends(this){_main(at,yt){return super._main(at,Object.assign({},P,yt))}}},showLoading:be,enableLoading:be,getTimerLeft:()=>jt.timeout&&jt.timeout.getTimerLeft(),stopTimer:jn,resumeTimer:In,toggleTimer:()=>{const P=jt.timeout;return P&&(P.running?jn():In())},increaseTimer:P=>{if(jt.timeout){const C=jt.timeout.increase(P);return Gt(C,!0),C}},isTimerRunning:()=>jt.timeout&&jt.timeout.isRunning(),bindClickHandler:function ai(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template";pn[P]=this,Rn||(document.body.addEventListener("click",si),Rn=!0)}});let ie;class we{constructor(){if("undefined"==typeof window)return;ie=this;for(var C=arguments.length,z=new Array(C),at=0;at<C;at++)z[at]=arguments[at];const yt=Object.freeze(this.constructor.argsToParams(z));Object.defineProperties(this,{params:{value:yt,writable:!1,enumerable:!0,configurable:!0}});const Pt=ie._main(ie.params);It.promise.set(this,Pt)}_main(C){let z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(P=>{!P.backdrop&&P.allowOutsideClick&&O('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const C in P)x(C),P.toast&&S(C),A(C)})(Object.assign({},z,C)),jt.currentInstance&&(jt.currentInstance._destroy(),Ct()&&Bt()),jt.currentInstance=ie;const at=ci(C,z);Fn(at),Object.freeze(at),jt.timeout&&(jt.timeout.stop(),delete jt.timeout),clearTimeout(jt.restoreFocusTimeout);const yt=fi(ie);return Nt(ie,at),It.innerParams.set(ie,at),ui(ie,yt,at)}then(C){return It.promise.get(this).then(C)}finally(C){return It.promise.get(this).finally(C)}}const ui=(P,C,z)=>new Promise((at,yt)=>{const Pt=$t=>{P.closePopup({isDismissed:!0,dismiss:$t})};Pe.swalPromiseResolve.set(P,at),Pe.swalPromiseReject.set(P,yt),C.confirmButton.onclick=()=>(P=>{const C=It.innerParams.get(P);P.disableButtons(),C.input?Pn(P,"confirm"):hn(P,!0)})(P),C.denyButton.onclick=()=>(P=>{const C=It.innerParams.get(P);P.disableButtons(),C.returnInputValueOnDeny?Pn(P,"deny"):dn(P,!1)})(P),C.cancelButton.onclick=()=>((P,C)=>{P.disableButtons(),C(qt.cancel)})(P,Pt),C.closeButton.onclick=()=>Pt(qt.close),((P,C,z)=>{It.innerParams.get(P).toast?((P,C,z)=>{C.popup.onclick=()=>{const at=It.innerParams.get(P);at&&(Vr(at)||at.timer||at.input)||z(qt.close)}})(P,C,z):((P=>{P.popup.onmousedown=()=>{P.container.onmouseup=function(C){P.container.onmouseup=void 0,C.target===P.container&&(Ie=!0)}}})(C),(P=>{P.container.onmousedown=()=>{P.popup.onmouseup=function(C){P.popup.onmouseup=void 0,(C.target===P.popup||P.popup.contains(C.target))&&(Ie=!0)}}})(C),((P,C,z)=>{C.container.onclick=at=>{const yt=It.innerParams.get(P);Ie?Ie=!1:at.target===C.container&&o(yt.allowOutsideClick)&&z(qt.backdrop)}})(P,C,z))})(P,C,Pt),((P,C,z,at)=>{En(C),z.toast||(C.keydownHandler=yt=>((P,C,z)=>{const at=It.innerParams.get(P);!at||C.isComposing||229===C.keyCode||(at.stopKeydownPropagation&&C.stopPropagation(),"Enter"===C.key?wr(P,C,at):"Tab"===C.key?_r(C,at):[...On,...mr].includes(C.key)?Er(C.key):"Escape"===C.key&&Or(C,at,z))})(P,yt,at),C.keydownTarget=z.keydownListenerCapture?window:Z(),C.keydownListenerCapture=z.keydownListenerCapture,C.keydownTarget.addEventListener("keydown",C.keydownHandler,{capture:C.keydownListenerCapture}),C.keydownHandlerAdded=!0)})(P,jt,z,Pt),((P,C)=>{"select"===C.input||"radio"===C.input?((P,C)=>{const z=Z(),at=yt=>fr[C.input](z,un(yt),C);r(C.inputOptions)||i(C.inputOptions)?(be(G()),n(C.inputOptions).then(yt=>{P.hideLoading(),at(yt)})):"object"==typeof C.inputOptions?at(C.inputOptions):u("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof C.inputOptions))})(P,C):["text","email","number","tel","textarea"].includes(C.input)&&(r(C.inputValue)||i(C.inputValue))&&(be(G()),((P,C)=>{const z=P.getInput();xt(z),n(C.inputValue).then(at=>{z.value="number"===C.input?parseFloat(at)||0:"".concat(at),Ot(z),z.focus(),P.hideLoading()}).catch(at=>{u("Error in inputValue promise: ".concat(at)),z.value="",Ot(z),z.focus(),P.hideLoading()})})(P,C))})(P,z),(P=>{const C=j(),z=Z();"function"==typeof P.willOpen&&P.willOpen(z);const yt=window.getComputedStyle(document.body).overflowY;nr(C,z,P),setTimeout(()=>{tr(C,z)},10),Ct()&&(er(C,P.scrollbarPadding,yt),Array.from(document.body.children).forEach(C=>{C===j()||C.contains(j())||(C.hasAttribute("aria-hidden")&&C.setAttribute("data-previous-aria-hidden",C.getAttribute("aria-hidden")),C.setAttribute("aria-hidden","true"))})),!Lt()&&!jt.previousActiveElement&&(jt.previousActiveElement=document.activeElement),"function"==typeof P.didOpen&&setTimeout(()=>P.didOpen(z)),vt(C,w["no-transition"])})(z),di(jt,z,Pt),hi(C,z),setTimeout(()=>{C.container.scrollTop=0})}),ci=(P,C)=>{const z=(P=>{const C="string"==typeof P.template?document.querySelector(P.template):P.template;if(!C)return{};const z=C.content;return(P=>{const C=Wt.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(P.children).forEach(z=>{const at=z.tagName.toLowerCase();-1===C.indexOf(at)&&O("Unrecognized element <".concat(at,">"))})})(z),Object.assign((P=>{const C={};return Array.from(P.querySelectorAll("swal-param")).forEach(at=>{se(at,["name","value"]);const yt=at.getAttribute("name"),Pt=at.getAttribute("value");"boolean"==typeof f[yt]&&"false"===Pt&&(C[yt]=!1),"object"==typeof f[yt]&&(C[yt]=JSON.parse(Pt))}),C})(z),(P=>{const C={};return Array.from(P.querySelectorAll("swal-button")).forEach(at=>{se(at,["type","color","aria-label"]);const yt=at.getAttribute("type");C["".concat(yt,"ButtonText")]=at.innerHTML,C["show".concat(d(yt),"Button")]=!0,at.hasAttribute("color")&&(C["".concat(yt,"ButtonColor")]=at.getAttribute("color")),at.hasAttribute("aria-label")&&(C["".concat(yt,"ButtonAriaLabel")]=at.getAttribute("aria-label"))}),C})(z),(P=>{const C={},z=P.querySelector("swal-image");return z&&(se(z,["src","width","height","alt"]),z.hasAttribute("src")&&(C.imageUrl=z.getAttribute("src")),z.hasAttribute("width")&&(C.imageWidth=z.getAttribute("width")),z.hasAttribute("height")&&(C.imageHeight=z.getAttribute("height")),z.hasAttribute("alt")&&(C.imageAlt=z.getAttribute("alt"))),C})(z),(P=>{const C={},z=P.querySelector("swal-icon");return z&&(se(z,["type","color"]),z.hasAttribute("type")&&(C.icon=z.getAttribute("type")),z.hasAttribute("color")&&(C.iconColor=z.getAttribute("color")),C.iconHtml=z.innerHTML),C})(z),(P=>{const C={},z=P.querySelector("swal-input");z&&(se(z,["type","label","placeholder","value"]),C.input=z.getAttribute("type")||"text",z.hasAttribute("label")&&(C.inputLabel=z.getAttribute("label")),z.hasAttribute("placeholder")&&(C.inputPlaceholder=z.getAttribute("placeholder")),z.hasAttribute("value")&&(C.inputValue=z.getAttribute("value")));const at=Array.from(P.querySelectorAll("swal-input-option"));return at.length&&(C.inputOptions={},at.forEach(yt=>{se(yt,["value"]);const Pt=yt.getAttribute("value");C.inputOptions[Pt]=yt.innerHTML})),C})(z),((P,C)=>{const z={};for(const at in C){const yt=C[at],Pt=P.querySelector(yt);Pt&&(se(Pt,[]),z[yt.replace(/^swal-/,"")]=Pt.innerHTML.trim())}return z})(z,Wt))})(P),at=Object.assign({},f,C,z,P);return at.showClass=Object.assign({},f.showClass,at.showClass),at.hideClass=Object.assign({},f.hideClass,at.hideClass),at},fi=P=>{const C={popup:Z(),container:j(),actions:it(),confirmButton:G(),denyButton:V(),cancelButton:tt(),loader:W(),closeButton:bt(),validationMessage:U(),progressSteps:M()};return It.domCache.set(P,C),C},di=(P,C,z)=>{const at=pt();xt(at),C.timer&&(P.timeout=new Wn(()=>{z("timer"),delete P.timeout},C.timer),C.timerProgressBar&&(Ot(at),F(at,C,"timerProgressBar"),setTimeout(()=>{P.timeout&&P.timeout.running&&Gt(C.timer)})))},hi=(P,C)=>{if(!C.toast){if(!o(C.allowEnterKey))return vi();pi(P,C)||cn(0,-1,1)}},pi=(P,C)=>C.focusDeny&&Mt(P.denyButton)?(P.denyButton.focus(),!0):C.focusCancel&&Mt(P.cancelButton)?(P.cancelButton.focus(),!0):!(!C.focusConfirm||!Mt(P.confirmButton)||(P.confirmButton.focus(),0)),vi=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const P=document.createElement("div");P.className="leave-russia-now-and-apply-your-skills-to-the-world";const C=(P=>P[Math.floor(Math.random()*P.length)])([{text:"\u0412 \u043d\u0438\u0436\u0435\u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u0432 \u0442\u043e\u043c,\n        <strong>\u0447\u0442\u043e\u0431\u044b \u044d\u0442\u0430 \u0431\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u0430\u044f \u0438 \u0431\u0435\u0441\u0447\u0435\u043b\u043e\u0432\u0435\u0447\u043d\u0430\u044f \u0432\u043e\u0439\u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0430\u0441\u044c</strong>:",id:"4CfDhaRkw7I"},{text:"\u042d\u043c\u043f\u0430\u0442\u0438\u044f - \u0433\u043b\u0430\u0432\u043d\u043e\u0435 <strong>\u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u043e\u0435</strong> \u0447\u0443\u0432\u0441\u0442\u0432\u043e. \u0421\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0442\u044c. <strong>\u0421\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0435\u0431\u044f \u043d\u0430 \u043c\u0435\u0441\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e.</strong>",id:"s-GLAIY4DXA"}]);T(P,"\n      <div>\n        \u0415\u0441\u043b\u0438 \u043c\u044b \u043d\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0432\u043e\u0439\u043d\u0443, \u043e\u043d\u0430 \u043f\u0440\u0438\u0434\u0435\u0442 \u0432 \u0434\u043e\u043c <strong>\u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u043d\u0430\u0441</strong> \u0438 \u0435\u0451 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f \u0431\u0443\u0434\u0443\u0442 <strong>\u0443\u0436\u0430\u0441\u0430\u044e\u0449\u0438\u043c\u0438</strong>.\n      </div>\n      <div>\n        \u041f\u0443\u0442\u0438\u043d\u0441\u043a\u0438\u0439 \u0440\u0435\u0436\u0438\u043c \u0437\u0430 20 \u0441 \u043b\u0438\u0448\u043d\u0438\u043c \u043b\u0435\u0442 \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0434\u043e\u043b\u0431\u0438\u043b \u043d\u0430\u043c, \u0447\u0442\u043e \u043c\u044b \u0431\u0435\u0441\u0441\u0438\u043b\u044c\u043d\u044b \u0438 \u043e\u0434\u0438\u043d \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. <strong>\u042d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a!</strong>\n      </div>\n      <div>\n        ".concat(C.text,'\n      </div>\n      <iframe width="560" height="315" src="https://www.youtube.com/embed/').concat(C.id,'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>\n      <div>\n        \u041d\u0435\u0442 \u0432\u043e\u0439\u043d\u0435!\n      </div>\n      '));const z=document.createElement("button");z.innerHTML="&times;",z.onclick=()=>P.remove(),P.appendChild(z),window.addEventListener("load",()=>{setTimeout(()=>{document.body.appendChild(P)},1e3)})}Object.assign(we.prototype,Nn),Object.assign(we,li),Object.keys(Nn).forEach(P=>{we[P]=function(){if(ie)return ie[P](...arguments)}}),we.DismissReason=qt,we.version="11.4.26";const Re=we;return Re.default=Re,Re}),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),function(B){if(!B.hasInitialised){var p={escapeRegExp:function(O){return O.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(O,u){var y=" ";return 1===O.nodeType&&(y+O.className+y).replace(/[\n\t]/g,y).indexOf(y+u+y)>=0},addClass:function(O,u){O.className+=" "+u},removeClass:function(O,u){var y=new RegExp("\\b"+this.escapeRegExp(u)+"\\b");O.className=O.className.replace(y,"")},interpolateString:function(O,u){return O.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,function(y){return u(arguments[1])||""})},getCookie:function(O){var u=("; "+document.cookie).split("; "+O+"=");return u.length<2?void 0:u.pop().split(";").shift()},setCookie:function(O,u,y,g,v,o){var r=new Date;r.setHours(r.getHours()+24*(y||365));var n=[O+"="+u,"expires="+r.toUTCString(),"path="+(v||"/")];g&&n.push("domain="+g),o&&n.push("secure"),document.cookie=n.join(";")},deepExtend:function(O,u){for(var y in u)u.hasOwnProperty(y)&&(y in O&&this.isPlainObject(O[y])&&this.isPlainObject(u[y])?this.deepExtend(O[y],u[y]):O[y]=u[y]);return O},throttle:function(O,u){var y=!1;return function(){y||(O.apply(this,arguments),y=!0,setTimeout(function(){y=!1},u))}},hash:function(O){var u,y,g=0;if(0===O.length)return g;for(u=0,y=O.length;u<y;++u)g=(g<<5)-g+O.charCodeAt(u),g|=0;return g},normaliseHex:function(O){return"#"==O[0]&&(O=O.substr(1)),3==O.length&&(O=O[0]+O[0]+O[1]+O[1]+O[2]+O[2]),O},getContrast:function(O){return O=this.normaliseHex(O),(299*parseInt(O.substr(0,2),16)+587*parseInt(O.substr(2,2),16)+114*parseInt(O.substr(4,2),16))/1e3>=128?"#000":"#fff"},getLuminance:function(O){var u=parseInt(this.normaliseHex(O),16),y=38+(u>>16),g=38+(u>>8&255),v=38+(255&u);return"#"+(16777216+65536*(y<255?y<1?0:y:255)+256*(g<255?g<1?0:g:255)+(v<255?v<1?0:v:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(O){return"object"==typeof O&&null!==O&&O.constructor==Object},traverseDOMPath:function(O,u){return O&&O.parentNode?p.hasClass(O,u)?O:this.traverseDOMPath(O.parentNode,u):null}};B.status={deny:"deny",allow:"allow",dismiss:"dismiss"},B.transitionEnd=function(){var O=document.createElement("div"),u={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var y in u)if(u.hasOwnProperty(y)&&void 0!==O.style[y+"ransition"])return u[y];return""}(),B.hasTransition=!!B.transitionEnd;var d=Object.keys(B.status).map(p.escapeRegExp);B.customStyles={},B.Popup=function(){var O={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(i){},onStatusChange:function(i,s){},onRevokeChoice:function(){},onNoCookieLaw:function(i,s){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://www.cookiesandyou.com",close:"&#x274c;",target:"_blank",policy:"Cookie Policy"},elements:{header:'<span class="cc-header">{{header}}</span>&nbsp;',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0"  class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}">\x3c!--googleoff: all--\x3e{{children}}\x3c!--googleon: all--\x3e</div>',revokeBtn:'<div class="cc-revoke {{classes}}">{{policy}}</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};function u(){this.initialise.apply(this,arguments)}function y(i){this.openingTimeout=null,p.removeClass(i,"cc-invisible")}function g(i){i.style.display="none",i.removeEventListener(B.transitionEnd,this.afterTransition),this.afterTransition=null}function v(){var i=this.options.position.split("-"),s=[];return i.forEach(function(f){s.push("cc-"+f)}),s}function o(i){var s=this.options,f=document.createElement("div"),h=s.container&&1===s.container.nodeType?s.container:document.body;f.innerHTML=i;var l=f.children[0];return l.style.display="none",p.hasClass(l,"cc-window")&&B.hasTransition&&p.addClass(l,"cc-invisible"),this.onButtonClick=function(c){var m=p.traverseDOMPath(c.target,"cc-btn")||c.target;if(p.hasClass(m,"cc-btn")){var a=m.className.match(new RegExp("\\bcc-("+d.join("|")+")\\b")),E=a&&a[1]||!1;E&&(this.setStatus(E),this.close(!0))}p.hasClass(m,"cc-close")&&(this.setStatus(B.status.dismiss),this.close(!0)),p.hasClass(m,"cc-revoke")&&this.revokeChoice()}.bind(this),l.addEventListener("click",this.onButtonClick),s.autoAttach&&(h.firstChild?h.insertBefore(l,h.firstChild):h.appendChild(l)),l}function r(i){return"000000"==(i=p.normaliseHex(i))?"#222":p.getLuminance(i)}function n(i,s){for(var f=0,h=i.length;f<h;++f){var l=i[f];if(l instanceof RegExp&&l.test(s)||"string"==typeof l&&l.length&&l===s)return!0}return!1}return u.prototype.initialise=function(i){this.options&&this.destroy(),p.deepExtend(this.options={},O),p.isPlainObject(i)&&p.deepExtend(this.options,i),function(){var l=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return l(B.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return l(B.status.allow),!0;var c=Object.keys(B.status),m=this.getStatus(),a=c.indexOf(m)>=0;return a&&l(m),a}.call(this)&&(this.options.enabled=!1),n(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),n(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var s=this.options.window.replace("{{classes}}",function(){var l=this.options,c="top"==l.position||"bottom"==l.position?"banner":"floating";p.isMobile()&&(c="floating");var m=["cc-"+c,"cc-type-"+l.type,"cc-theme-"+l.theme];return l.static&&m.push("cc-static"),m.push.apply(m,v.call(this)),function(a){var E=p.hash(JSON.stringify(a)),x="cc-color-override-"+E,S=p.isPlainObject(a);return this.customStyleSelector=S?x:null,S&&function(A,b,k){if(B.customStyles[A])++B.customStyles[A].references;else{var _={},w=b.popup,N=b.button,j=b.highlight;w&&(w.text=w.text?w.text:p.getContrast(w.background),w.link=w.link?w.link:w.text,_[k+".cc-window"]=["color: "+w.text,"background-color: "+w.background],_[k+".cc-revoke"]=["color: "+w.text,"background-color: "+w.background],_[k+" .cc-link,"+k+" .cc-link:active,"+k+" .cc-link:visited"]=["color: "+w.link],N&&(N.text=N.text?N.text:p.getContrast(N.background),N.border=N.border?N.border:"transparent",_[k+" .cc-btn"]=["color: "+N.text,"border-color: "+N.border,"background-color: "+N.background],N.padding&&_[k+" .cc-btn"].push("padding: "+N.padding),"transparent"!=N.background&&(_[k+" .cc-btn:hover, "+k+" .cc-btn:focus"]=["background-color: "+(N.hover||r(N.background))]),j?(j.text=j.text?j.text:p.getContrast(j.background),j.border=j.border?j.border:"transparent",_[k+" .cc-highlight .cc-btn:first-child"]=["color: "+j.text,"border-color: "+j.border,"background-color: "+j.background]):_[k+" .cc-highlight .cc-btn:first-child"]=["color: "+w.text]));var H=document.createElement("style");document.head.appendChild(H),B.customStyles[A]={references:1,element:H.sheet};var X=-1;for(var Z in _)_.hasOwnProperty(Z)&&H.sheet.insertRule(Z+"{"+_[Z].join(";")+"}",++X)}}(E,a,"."+x),S}.call(this,this.options.palette),this.customStyleSelector&&m.push(this.customStyleSelector),m}.call(this).join(" ")).replace("{{children}}",function(){var l={},c=this.options;c.showLink||(c.elements.link="",c.elements.messagelink=c.elements.message),Object.keys(c.elements).forEach(function(E){l[E]=p.interpolateString(c.elements[E],function(x){var S=c.content[x];return x&&"string"==typeof S&&S.length?S:""})});var m=c.compliance[c.type];m||(m=c.compliance.info),l.compliance=p.interpolateString(m,function(E){return l[E]});var a=c.layouts[c.layout];return a||(a=c.layouts.basic),p.interpolateString(a,function(E){return l[E]})}.call(this)),f=this.options.overrideHTML;if("string"==typeof f&&f.length&&(s=f),this.options.static){var h=o.call(this,'<div class="cc-grower">'+s+"</div>");h.style.display="",this.element=h.firstChild,this.element.style.display="none",p.addClass(this.element,"cc-invisible")}else this.element=o.call(this,s);(function(){var l=this.setStatus.bind(this),c=this.close.bind(this),m=this.options.dismissOnTimeout;"number"==typeof m&&m>=0&&(this.dismissTimeout=window.setTimeout(function(){l(B.status.dismiss),c(!0)},Math.floor(m)));var a=this.options.dismissOnScroll;if("number"==typeof a&&a>=0){var E=function(b){window.pageYOffset>Math.floor(a)&&(l(B.status.dismiss),c(!0),window.removeEventListener("scroll",E),this.onWindowScroll=null)};this.options.enabled&&(this.onWindowScroll=E,window.addEventListener("scroll",E))}var S=this.options.ignoreClicksFrom;if(this.options.dismissOnWindowClick){var A=function(b){for(var k=!1,_=b.path.length,w=S.length,N=0;N<_;N++)if(!k)for(var j=0;j<w;j++)k||(k=p.hasClass(b.path[N],S[j]));k||(l(B.status.dismiss),c(!0),window.removeEventListener("click",A),window.removeEventListener("touchend",A),this.onWindowClick=null)}.bind(this);this.options.enabled&&(this.onWindowClick=A,window.addEventListener("click",A),window.addEventListener("touchend",A))}}).call(this),function(){if("info"!=this.options.type&&(this.options.revokable=!0),p.isMobile()&&(this.options.animateRevokable=!1),this.options.revokable){var l=v.call(this);this.options.animateRevokable&&l.push("cc-animate"),this.customStyleSelector&&l.push(this.customStyleSelector);var c=this.options.revokeBtn.replace("{{classes}}",l.join(" ")).replace("{{policy}}",this.options.content.policy);this.revokeBtn=o.call(this,c);var m=this.revokeBtn;if(this.options.animateRevokable){var a=p.throttle(function(E){var x=!1,S=window.innerHeight-20;p.hasClass(m,"cc-top")&&E.clientY<20&&(x=!0),p.hasClass(m,"cc-bottom")&&E.clientY>S&&(x=!0),x?p.hasClass(m,"cc-active")||p.addClass(m,"cc-active"):p.hasClass(m,"cc-active")&&p.removeClass(m,"cc-active")},200);this.onMouseMove=a,window.addEventListener("mousemove",a)}}}.call(this),this.options.autoOpen&&this.autoOpen()},u.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onWindowClick&&(window.removeEventListener("click",this.onWindowClick),this.onWindowClick=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,function(i){if(p.isPlainObject(i)){var s=p.hash(JSON.stringify(i)),f=B.customStyles[s];if(f&&!--f.references){var h=f.element.ownerNode;h&&h.parentNode&&h.parentNode.removeChild(h),B.customStyles[s]=null}}}(this.options.palette),this.options=null},u.prototype.open=function(i){if(this.element)return this.isOpen()||(B.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},u.prototype.close=function(i){if(this.element)return this.isOpen()&&(B.hasTransition?this.fadeOut():this.element.style.display="none",i&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},u.prototype.fadeIn=function(){var i=this.element;B.hasTransition&&i&&(this.afterTransition&&g.call(this,i),p.hasClass(i,"cc-invisible"))&&(i.style.display="",this.options.static&&(this.element.parentNode.style.maxHeight=this.element.clientHeight+"px"),this.openingTimeout=setTimeout(y.bind(this,i),20))},u.prototype.fadeOut=function(){var i=this.element;B.hasTransition&&i&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),y.bind(this,i)),p.hasClass(i,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=g.bind(this,i),i.addEventListener(B.transitionEnd,this.afterTransition),p.addClass(i,"cc-invisible")))},u.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!B.hasTransition||!p.hasClass(this.element,"cc-invisible"))},u.prototype.toggleRevokeButton=function(i){this.revokeBtn&&(this.revokeBtn.style.display=i?"":"none")},u.prototype.revokeChoice=function(i){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),i||this.autoOpen()},u.prototype.hasAnswered=function(i){return Object.keys(B.status).indexOf(this.getStatus())>=0},u.prototype.hasConsented=function(i){var s=this.getStatus();return s==B.status.allow||s==B.status.dismiss},u.prototype.autoOpen=function(i){!this.hasAnswered()&&this.options.enabled?this.open():this.hasAnswered()&&this.options.revokable&&this.toggleRevokeButton(!0)},u.prototype.setStatus=function(i){var s=this.options.cookie,f=p.getCookie(s.name),h=Object.keys(B.status).indexOf(f)>=0;Object.keys(B.status).indexOf(i)>=0?(p.setCookie(s.name,i,s.expiryDays,s.domain,s.path,s.secure),this.options.onStatusChange.call(this,i,h)):this.clearStatus()},u.prototype.getStatus=function(){return p.getCookie(this.options.cookie.name)},u.prototype.clearStatus=function(){var i=this.options.cookie;p.setCookie(i.name,"",-1,i.domain,i.path)},u}(),B.Location=function(){var O={timeout:5e3,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(o,r){try{var n=JSON.parse(r);return n.error?v(n):{code:n.country}}catch(i){return v({error:"Invalid response ("+i+")"})}}}},ipinfodb:function(o){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(r,n){try{var i=JSON.parse(n);return"ERROR"==i.statusCode?v({error:i.statusMessage}):{code:i.countryCode}}catch(s){return v({error:"Invalid response ("+s+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(o){window.geoip2?geoip2.country(function(r){try{o({code:r.country.iso_code})}catch(n){o(v(n))}},function(r){o(v(r))}):o(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};function u(o){p.deepExtend(this.options={},O),p.isPlainObject(o)&&p.deepExtend(this.options,o),this.currentServiceIndex=-1}function y(o,r,n){var i,s=document.createElement("script");s.type="text/"+(o.type||"javascript"),s.src=o.src||o,s.async=!1,s.onreadystatechange=s.onload=function(){var f=s.readyState;clearTimeout(i),r.done||f&&!/loaded|complete/.test(f)||(r.done=!0,r(),s.onreadystatechange=s.onload=null)},document.body.appendChild(s),i=setTimeout(function(){r.done=!0,r(),s.onreadystatechange=s.onload=null},n)}function g(o,r,n,i,s){var f=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(f.open(i?"POST":"GET",o,1),f.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(s))for(var h=0,l=s.length;h<l;++h){var c=s[h].split(":",2);f.setRequestHeader(c[0].replace(/^\s+|\s+$/g,""),c[1].replace(/^\s+|\s+$/g,""))}"function"==typeof r&&(f.onreadystatechange=function(){f.readyState>3&&r(f)}),f.send(i)}function v(o){return new Error("Error ["+(o.code||"UNKNOWN")+"]: "+o.error)}return u.prototype.getNextService=function(){var o;do{o=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex<this.options.services.length&&!o);return o},u.prototype.getServiceByIdx=function(o){var r=this.options.services[o];if("function"==typeof r){var n=r();return n.name&&p.deepExtend(n,this.options.serviceDefinitions[n.name](n)),n}return"string"==typeof r?this.options.serviceDefinitions[r]():p.isPlainObject(r)?this.options.serviceDefinitions[r.name](r):null},u.prototype.locate=function(o,r){var n=this.getNextService();n?(this.callbackComplete=o,this.callbackError=r,this.runService(n,this.runNextServiceOnError.bind(this))):r(new Error("No services to run"))},u.prototype.setupUrl=function(o){var r=this.getCurrentServiceOpts();return o.url.replace(/\{(.*?)\}/g,function(n,i){if("callback"===i){var s="callback"+Date.now();return window[s]=function(f){o.__JSONP_DATA=JSON.stringify(f)},s}if(i in r.interpolateUrl)return r.interpolateUrl[i]})},u.prototype.runService=function(o,r){var n=this;o&&o.url&&o.callback&&(o.isScript?y:g)(this.setupUrl(o),function(i){var s=i?i.responseText:"";o.__JSONP_DATA&&(s=o.__JSONP_DATA,delete o.__JSONP_DATA),n.runServiceCallback.call(n,r,o,s)},this.options.timeout,o.data,o.headers)},u.prototype.runServiceCallback=function(o,r,n){var i=this,s=r.callback(function(f){s||i.onServiceResult.call(i,o,f)},n);s&&this.onServiceResult.call(this,o,s)},u.prototype.onServiceResult=function(o,r){r instanceof Error||r&&r.error?o.call(this,r,null):o.call(this,null,r)},u.prototype.runNextServiceOnError=function(o,r){if(o){this.logError(o);var n=this.getNextService();n?this.runService(n,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,r)},u.prototype.getCurrentServiceOpts=function(){var o=this.options.services[this.currentServiceIndex];return"string"==typeof o?{name:o}:"function"==typeof o?o():p.isPlainObject(o)?o:{}},u.prototype.completeService=function(o,r){this.currentServiceIndex=-1,o&&o(r)},u.prototype.logError=function(o){var r=this.currentServiceIndex,n=this.getServiceByIdx(r);console.warn("The service["+r+"] ("+n.url+") responded with the following error",o)},u}(),B.Law=function(){var O={regionalLaw:!0,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","ES","SE","GB","UK","GR","EU"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};function u(y){this.initialise.apply(this,arguments)}return u.prototype.initialise=function(y){p.deepExtend(this.options={},O),p.isPlainObject(y)&&p.deepExtend(this.options,y)},u.prototype.get=function(y){var g=this.options;return{hasLaw:g.hasLaw.indexOf(y)>=0,revokable:g.revokable.indexOf(y)>=0,explicitAction:g.explicitAction.indexOf(y)>=0}},u.prototype.applyLaw=function(y,g){var v=this.get(g);return v.hasLaw||(y.enabled=!1,"function"==typeof y.onNoCookieLaw&&y.onNoCookieLaw(g,v)),this.options.regionalLaw&&(v.revokable&&(y.revokable=!0),v.explicitAction&&(y.dismissOnScroll=!1,y.dismissOnTimeout=!1)),y},u}(),B.initialise=function(O,u,y){var g=new B.Law(O.law);u||(u=function(){}),y||(y=function(){});var v=Object.keys(B.status),o=p.getCookie("cookieconsent_status");v.indexOf(o)>=0?u(new B.Popup(O)):B.getCountryCode(O,function(r){delete O.law,delete O.location,r.code&&(O=g.applyLaw(O,r.code)),u(new B.Popup(O))},function(r){delete O.law,delete O.location,y(r,new B.Popup(O))})},B.getCountryCode=function(O,u,y){O.law&&O.law.countryCode?u({code:O.law.countryCode}):O.location?new B.Location(O.location).locate(function(g){u(g||{})},y):u({})},B.utils=p,B.hasInitialised=!0,window.cookieconsent=B}}(window.cookieconsent||{});var abp=abp||{};!function(){abp.appPath=abp.appPath||"/",abp.pageLoadTime=new Date,abp.toAbsAppPath=function(p){return 0==p.indexOf("/")&&(p=p.substring(1)),abp.appPath+p},abp.multiTenancy=abp.multiTenancy||{},abp.multiTenancy.isEnabled=!1,abp.multiTenancy.sides={TENANT:1,HOST:2},abp.multiTenancy.tenantIdCookieName="Abp.TenantId",abp.multiTenancy.setTenantIdCookie=function(p){p?abp.utils.setCookieValue(abp.multiTenancy.tenantIdCookieName,p.toString(),new Date((new Date).getTime()+15768e7),abp.appPath,abp.domain):abp.utils.deleteCookie(abp.multiTenancy.tenantIdCookieName,abp.appPath)},abp.multiTenancy.getTenantIdCookie=function(){var p=abp.utils.getCookieValue(abp.multiTenancy.tenantIdCookieName);return p?parseInt(p):null},abp.session=abp.session||{multiTenancySide:abp.multiTenancy.sides.HOST},abp.localization=abp.localization||{},abp.localization.languages=[],abp.localization.currentLanguage={},abp.localization.sources=[],abp.localization.values={},abp.localization.localize=function(p,d){var O=abp.localization.values[d=d||abp.localization.defaultSourceName];if(!O)return abp.log.warn("Could not find localization source: "+d),p;var u=O[p];if(null==u)return p;var y=Array.prototype.slice.call(arguments,0);return y.splice(1,1),y[0]=u,abp.utils.formatString.apply(this,y)},abp.localization.getSource=function(p){return function(d){var O=Array.prototype.slice.call(arguments,0);return O.splice(1,0,p),abp.localization.localize.apply(this,O)}},abp.localization.isCurrentCulture=function(p){return abp.localization.currentCulture&&abp.localization.currentCulture.name&&0==abp.localization.currentCulture.name.indexOf(p)},abp.localization.defaultSourceName=void 0,abp.localization.abpWeb=abp.localization.getSource("AbpWeb"),abp.auth=abp.auth||{},abp.auth.allPermissions=abp.auth.allPermissions||{},abp.auth.grantedPermissions=abp.auth.grantedPermissions||{},abp.auth.hasPermission=function(p){return abp.auth.isGranted.apply(this,arguments)},abp.auth.hasAnyOfPermissions=function(){return abp.auth.isAnyGranted.apply(this,arguments)},abp.auth.hasAllOfPermissions=function(){return abp.auth.areAllGranted.apply(this,arguments)},abp.auth.isGranted=function(p){return null!=abp.auth.allPermissions[p]&&null!=abp.auth.grantedPermissions[p]},abp.auth.isAnyGranted=function(){if(!arguments||arguments.length<=0)return!0;for(var p=0;p<arguments.length;p++)if(abp.auth.isGranted(arguments[p]))return!0;return!1},abp.auth.areAllGranted=function(){if(!arguments||arguments.length<=0)return!0;for(var p=0;p<arguments.length;p++)if(!abp.auth.isGranted(arguments[p]))return!1;return!0},abp.auth.tokenCookieName="Abp.AuthToken",abp.auth.setToken=function(p,d){abp.utils.setCookieValue(abp.auth.tokenCookieName,p,d,abp.appPath,abp.domain)},abp.auth.getToken=function(){return abp.utils.getCookieValue(abp.auth.tokenCookieName)},abp.auth.clearToken=function(){abp.auth.setToken()},abp.auth.refreshTokenCookieName="Abp.AuthRefreshToken",abp.auth.setRefreshToken=function(p,d){abp.utils.setCookieValue(abp.auth.refreshTokenCookieName,p,d,abp.appPath,abp.domain)},abp.auth.getRefreshToken=function(){return abp.utils.getCookieValue(abp.auth.refreshTokenCookieName)},abp.auth.clearRefreshToken=function(){abp.auth.setRefreshToken()},abp.features=abp.features||{},abp.features.allFeatures=abp.features.allFeatures||{},abp.features.get=function(p){return abp.features.allFeatures[p]},abp.features.getValue=function(p){var d=abp.features.get(p);if(null!=d)return d.value},abp.features.isEnabled=function(p){var d=abp.features.getValue(p);return"true"==d||"True"==d},abp.setting=abp.setting||{},abp.setting.values=abp.setting.values||{},abp.setting.get=function(p){return abp.setting.values[p]},abp.setting.getBoolean=function(p){var d=abp.setting.get(p);return"true"==d||"True"==d},abp.setting.getInt=function(p){return parseInt(abp.setting.values[p])},abp.notifications=abp.notifications||{},abp.notifications.severity={INFO:0,SUCCESS:1,WARN:2,ERROR:3,FATAL:4},abp.notifications.userNotificationState={UNREAD:0,READ:1},abp.notifications.getUserNotificationStateAsString=function(p){switch(p){case abp.notifications.userNotificationState.READ:return"READ";case abp.notifications.userNotificationState.UNREAD:return"UNREAD";default:return abp.log.warn("Unknown user notification state value: "+p),"?"}},abp.notifications.getUiNotifyFuncBySeverity=function(p){switch(p){case abp.notifications.severity.SUCCESS:return abp.notify.success;case abp.notifications.severity.WARN:return abp.notify.warn;case abp.notifications.severity.ERROR:case abp.notifications.severity.FATAL:return abp.notify.error;default:return abp.notify.info}},abp.notifications.messageFormatters={},abp.notifications.messageFormatters["Abp.Notifications.MessageNotificationData"]=function(p){return p.notification.data.message||p.notification.data.properties.Message},abp.notifications.messageFormatters["Abp.Notifications.LocalizableMessageNotificationData"]=function(p){var d=p.notification.data.message||p.notification.data.properties.Message,O=abp.localization.localize(d.name,d.sourceName);if(p.notification.data.properties)for(var u=Object.keys(p.notification.data.properties),y=0;y<u.length;y++)O=O.replace("{"+u[y]+"}",p.notification.data.properties[u[y]]);return O},abp.notifications.getFormattedMessageFromUserNotification=function(p){if(!p.notification.data)return"?";var d=abp.notifications.messageFormatters[p.notification.data.type];return d?abp.utils.isFunction(d)?d(p):(abp.log.warn("Message formatter should be a function! It is invalid for data type: "+p.notification.data.type),"?"):(abp.log.warn("No message formatter defined for given data type: "+p.notification.data.type),"?")},abp.notifications.showUiNotifyForUserNotification=function(p,d){var O=abp.notifications.getFormattedMessageFromUserNotification(p);abp.notifications.getUiNotifyFuncBySeverity(p.notification.severity)(O,void 0,d)},abp.log=abp.log||{},abp.log.levels={DEBUG:1,INFO:2,WARN:3,ERROR:4,FATAL:5},abp.log.level=abp.log.levels.DEBUG,abp.log.log=function(p,d){!window.console||!window.console.log||null!=d&&d<abp.log.level||console.log(p)},abp.log.debug=function(p){abp.log.log("DEBUG: ",abp.log.levels.DEBUG),abp.log.log(p,abp.log.levels.DEBUG)},abp.log.info=function(p){abp.log.log("INFO: ",abp.log.levels.INFO),abp.log.log(p,abp.log.levels.INFO)},abp.log.warn=function(p){abp.log.log("WARN: ",abp.log.levels.WARN),abp.log.log(p,abp.log.levels.WARN)},abp.log.error=function(p){abp.log.log("ERROR: ",abp.log.levels.ERROR),abp.log.log(p,abp.log.levels.ERROR)},abp.log.fatal=function(p){abp.log.log("FATAL: ",abp.log.levels.FATAL),abp.log.log(p,abp.log.levels.FATAL)},abp.notify=abp.notify||{},abp.notify.success=function(p,d,O){abp.log.warn("abp.notify.success is not implemented!")},abp.notify.info=function(p,d,O){abp.log.warn("abp.notify.info is not implemented!")},abp.notify.warn=function(p,d,O){abp.log.warn("abp.notify.warn is not implemented!")},abp.notify.error=function(p,d,O){abp.log.warn("abp.notify.error is not implemented!")},abp.message=abp.message||{};var p,B=function(p,d,O){return alert((d||"")+" "+p),$?$.Deferred(function(u){u.resolve()}):(abp.log.warn("abp.message can not return promise since jQuery is not defined!"),null)};abp.message.info=function(p,d,O){return abp.log.warn("abp.message.info is not implemented!"),B(p,d)},abp.message.success=function(p,d,O){return abp.log.warn("abp.message.success is not implemented!"),B(p,d)},abp.message.warn=function(p,d,O){return abp.log.warn("abp.message.warn is not implemented!"),B(p,d)},abp.message.error=function(p,d,O){return abp.log.warn("abp.message.error is not implemented!"),B(p,d)},abp.message.confirm=function(p,d,O,u){abp.log.warn("abp.message.confirm is not implemented!");var y=confirm(p);return O&&O(y),$?$.Deferred(function(g){g.resolve()}):(abp.log.warn("abp.message can not return promise since jQuery is not defined!"),null)},abp.ui=abp.ui||{},abp.ui.block=function(p){abp.log.warn("abp.ui.block is not implemented!")},abp.ui.unblock=function(p){abp.log.warn("abp.ui.unblock is not implemented!")},abp.ui.setBusy=function(p,d){abp.log.warn("abp.ui.setBusy is not implemented!")},abp.ui.clearBusy=function(p){abp.log.warn("abp.ui.clearBusy is not implemented!")},abp.event=(p={},{on:function(y,g){p[y]||(p[y]=[]),p[y].push(g)},off:function(y,g){var v=p[y];if(v){for(var o=-1,r=0;r<v.length;r++)if(v[r]===g){o=r;break}o<0||p[y].splice(o,1)}},trigger:function(y){var g=p[y];if(g&&g.length)for(var v=Array.prototype.slice.call(arguments,1),o=0;o<g.length;o++)g[o].apply(this,v)}}),abp.utils=abp.utils||{},abp.utils.createNamespace=function(p,d){for(var O=d.split("."),u=0;u<O.length;u++)void 0===p[O[u]]&&(p[O[u]]={}),p=p[O[u]];return p},abp.utils.replaceAll=function(p,d,O){var u=d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return p.replace(new RegExp(u,"g"),O)},abp.utils.formatString=function(){if(arguments.length<1)return null;for(var p=arguments[0],d=1;d<arguments.length;d++){var O="{"+(d-1)+"}";p=abp.utils.replaceAll(p,O,arguments[d])}return p},abp.utils.toPascalCase=function(p){return p&&p.length?1===p.length?p.charAt(0).toUpperCase():p.charAt(0).toUpperCase()+p.substr(1):p},abp.utils.toCamelCase=function(p){return p&&p.length?1===p.length?p.charAt(0).toLowerCase():p.charAt(0).toLowerCase()+p.substr(1):p},abp.utils.truncateString=function(p,d){return!p||!p.length||p.length<=d?p:p.substr(0,d)},abp.utils.truncateStringWithPostfix=function(p,d,O){return O=O||"...",!p||!p.length||p.length<=d?p:d<=O.length?O.substr(0,d):p.substr(0,d-O.length)+O},abp.utils.isFunction=function(p){return!!(p&&p.constructor&&p.call&&p.apply)},abp.utils.buildQueryString=function(p,d){void 0===d&&(d=!0);var O="";function u(){O.length?O+="&":d&&(O+="?")}for(var y=0;y<p.length;++y){var g=p[y];if(void 0!==g.value)if(null===g.value&&(g.value=""),u(),g.value.toJSON&&"function"==typeof g.value.toJSON)O=O+g.name+"="+encodeURIComponent(g.value.toJSON());else if(Array.isArray(g.value)&&g.value.length)for(var v=0;v<g.value.length;v++)v>0&&u(),O=O+g.name+"["+v+"]="+encodeURIComponent(g.value[v]);else O=O+g.name+"="+encodeURIComponent(g.value)}return O},abp.utils.setCookieValue=function(p,d,O,u,y){var g=encodeURIComponent(p)+"=";d&&(g+=encodeURIComponent(d)),O&&(g=g+"; expires="+O.toUTCString()),u&&(g=g+"; path="+u),y&&(g=g+"; domain="+y),document.cookie=g},abp.utils.getCookieValue=function(p){for(var d=document.cookie.split("; "),O=0;O<d.length;O++)if(d[O]){var u=d[O].split("=");if(2==u.length&&decodeURIComponent(u[0])===p)return decodeURIComponent(u[1]||"")}return null},abp.utils.deleteCookie=function(p,d){var O=encodeURIComponent(p)+"=";O=O+"; expires="+new Date((new Date).getTime()-864e5).toUTCString(),d&&(O=O+"; path="+d),document.cookie=O},abp.utils.getDomain=function(p){var O=/(https?:){0,1}\/\/((?:[\w\d-]+\.)+[\w\d]{2,})/i.exec(p);return O&&O[2]?O[2]:""},abp.timing=abp.timing||{},abp.timing.utcClockProvider=function(){var p=function(u){return Date.UTC(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate(),u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds())};return{now:function(){return p(new Date)},normalize:function(u){return u&&new Date(p(u))},supportsMultipleTimezone:!0}}(),abp.timing.localClockProvider=function(){var p=function(u){return new Date(u.getFullYear(),u.getMonth(),u.getDate(),u.getHours(),u.getMinutes(),u.getSeconds(),u.getMilliseconds())};return{now:function(){return p(new Date)},normalize:function(u){return u&&p(u)},supportsMultipleTimezone:!1}}(),abp.timing.unspecifiedClockProvider={now:function(){return new Date},normalize:function(O){return O},supportsMultipleTimezone:!1},abp.timing.convertToUserTimezone=function(p){var O=p.getTime()+6e4*p.getTimezoneOffset(),u=parseInt(O)+parseInt(abp.timing.timeZoneInfo.windows.currentUtcOffsetInMilliseconds);return new Date(u)},abp.clock=abp.clock||{},abp.clock.now=function(){return abp.clock.provider?abp.clock.provider.now():new Date},abp.clock.normalize=function(p){return abp.clock.provider?abp.clock.provider.normalize(p):p},abp.clock.provider=abp.timing.unspecifiedClockProvider,abp.security=abp.security||{},abp.security.antiForgery=abp.security.antiForgery||{},abp.security.antiForgery.tokenCookieName="XSRF-TOKEN",abp.security.antiForgery.tokenHeaderName="X-XSRF-TOKEN",abp.security.antiForgery.getToken=function(){return abp.utils.getCookieValue(abp.security.antiForgery.tokenCookieName)},abp.security.antiForgery.shouldSendToken=function(p){return null==p.crossDomain?abp.utils.getDomain(location.href)===abp.utils.getDomain(p.url):!p.crossDomain}}(),abp=abp||{},function(){var B=function(p,d,O,u){O||(O=d,d=void 0),(u=u||{}).title=O,u.icon=p,u.confirmButtonText=u.confirmButtonText||abp.localization.localize("Ok","JobSpot"),u.isHtml?u.html=d:u.text=d;const g=Be(u,["isHtml"]);return Swal.fire(g)};abp.message.info=function(p,d,O){return B("info",p,d,O)},abp.message.success=function(p,d,O){return B("success",p,d,O)},abp.message.warn=function(p,d,O){return B("warning",p,d,O)},abp.message.error=function(p,d,O){return B("error",p,d,O)},abp.message.confirm=function(p,d,O,u){(u=u||{}).title=d||abp.localization.localize("AreYouSure","JobSpot"),u.icon="warning",u.confirmButtonText=u.confirmButtonText||abp.localization.localize("Yes","JobSpot"),u.cancelButtonText=u.cancelButtonText||abp.localization.localize("Cancel","JobSpot"),u.showCancelButton=!0,u.isHtml?u.html=p:u.text=p;const g=Be(u,["isHtml"]);return Swal.fire(g).then(function(o){O&&O(o.value,o)})}}(),abp=abp||{},function(){var B={position:"bottom-end",showConfirmButton:!1,timer:3e3,padding:0,toast:!0},p=function(d,O,u,y){var g=y.imageClass?'<i class="me-2 text-white '+y.imageClass+'"></i>':"";u&&(y.title=g+'<span class="text-white">'+u+"</span>"),y.html=(u?"":g)+'<span class="text-white">'+O+"</span>";const n=Object.assign({},B,y),r=Be(n,["imageClass"]);Swal.fire(r)};abp.notify.success=function(d,O,u){p(0,d,O,Object.assign({background:"#34bfa3",imageClass:"fa fa-check-circle"},u))},abp.notify.info=function(d,O,u){p(0,d,O,Object.assign({background:"#36a3f7",imageClass:"fa fa-info-circle"},u))},abp.notify.warn=function(d,O,u){p(0,d,O,Object.assign({background:"#ffb822",imageClass:"fa fa-exclamation-triangle"},u))},abp.notify.error=function(d,O,u){p(0,d,O,Object.assign({background:"#f4516c",imageClass:"fa fa-exclamation-circle"},u))}}(),function(B){"use strict";var g,p=B.Uint8Array,d=B.HTMLCanvasElement,O=d&&d.prototype,u=/\s*;\s*base64\s*(?:;|$)/i,y="toDataURL",v=function(o){for(var c,m,r=o.length,n=new p(r/4*3|0),i=0,s=0,f=[0,0],h=0,l=0;r--;)m=o.charCodeAt(i++),255!==(c=g[m-43])&&void 0!==c&&(f[1]=f[0],f[0]=m,l=l<<6|c,4==++h&&(n[s++]=l>>>16,61!==f[1]&&(n[s++]=l>>>8),61!==f[0]&&(n[s++]=l),h=0));return n};p&&(g=new p([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),d&&(!O.toBlob||!O.toBlobHD)&&(O.toBlob||(O.toBlob=function(o,r){if(r||(r="image/png"),this.mozGetAsFile)o(this.mozGetAsFile("canvas",r));else if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(r))o(this.msToBlob());else{var l,n=Array.prototype.slice.call(arguments,1),i=this[y].apply(this,n),s=i.indexOf(","),f=i.substring(s+1),h=u.test(i.substring(0,s));Blob.fake?((l=new Blob).encoding=h?"base64":"URI",l.data=f,l.size=f.length):p&&(l=h?new Blob([v(f)],{type:r}):new Blob([decodeURIComponent(f)],{type:r})),o(l)}}),O.toBlobHD=!O.toBlobHD&&O.toDataURLHD?function(){y="toDataURLHD";var o=this.toBlob();return y="toDataURL",o}:O.toBlob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this),function(B,p){"object"==typeof exports&&"undefined"!=typeof module?module.exports=p():"function"==typeof define&&define.amd?define(p):B.Popper=p()}(this,function(){"use strict";for(var B="undefined"!=typeof window&&"undefined"!=typeof document,p=["Edge","Trident","Firefox"],d=0,O=0;O<p.length;O+=1)if(B&&navigator.userAgent.indexOf(p[O])>=0){d=1;break}var u=B&&window.Promise?function(J){var R=!1;return function(){R||(R=!0,window.Promise.resolve().then(function(){R=!1,J()}))}}:function(J){var R=!1;return function(){R||(R=!0,setTimeout(function(){R=!1,J()},d))}};function y(J){return J&&"[object Function]"==={}.toString.call(J)}function g(J,R){if(1!==J.nodeType)return[];var T=J.ownerDocument.defaultView.getComputedStyle(J,null);return R?T[R]:T}function v(J){return"HTML"===J.nodeName?J:J.parentNode||J.host}function o(J){if(!J)return document.body;switch(J.nodeName){case"HTML":case"BODY":return J.ownerDocument.body;case"#document":return J.body}var R=g(J);return/(auto|scroll|overlay)/.test(R.overflow+R.overflowY+R.overflowX)?J:o(v(J))}var r=B&&!(!window.MSInputMethodContext||!document.documentMode),n=B&&/MSIE 10/.test(navigator.userAgent);function i(J){return 11===J?r:10===J?n:r||n}function s(J){if(!J)return document.documentElement;for(var R=i(10)?document.body:null,T=J.offsetParent||null;T===R&&J.nextElementSibling;)T=(J=J.nextElementSibling).offsetParent;var I=T&&T.nodeName;return I&&"BODY"!==I&&"HTML"!==I?-1!==["TH","TD","TABLE"].indexOf(T.nodeName)&&"static"===g(T,"position")?s(T):T:J?J.ownerDocument.documentElement:document.documentElement}function f(J){return null!==J.parentNode?f(J.parentNode):J}function h(J,R){if(!(J&&J.nodeType&&R&&R.nodeType))return document.documentElement;var T=J.compareDocumentPosition(R)&Node.DOCUMENT_POSITION_FOLLOWING,I=T?J:R,Y=T?R:J,F=document.createRange();F.setStart(I,0),F.setEnd(Y,0);var et,ot,ut=F.commonAncestorContainer;if(J!==ut&&R!==ut||I.contains(Y))return"BODY"===(ot=(et=ut).nodeName)||"HTML"!==ot&&s(et.firstElementChild)!==et?s(ut):ut;var dt=f(J);return dt.host?h(dt.host,R):h(J,f(R).host)}function l(J){var R="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",T=J.nodeName;if("BODY"===T||"HTML"===T){var I=J.ownerDocument.documentElement;return(J.ownerDocument.scrollingElement||I)[R]}return J[R]}function c(J,R){var T="x"===R?"Left":"Top",I="Left"===T?"Right":"Bottom";return parseFloat(J["border"+T+"Width"],10)+parseFloat(J["border"+I+"Width"],10)}function m(J,R,T,I){return Math.max(R["offset"+J],R["scroll"+J],T["client"+J],T["offset"+J],T["scroll"+J],i(10)?parseInt(T["offset"+J])+parseInt(I["margin"+("Height"===J?"Top":"Left")])+parseInt(I["margin"+("Height"===J?"Bottom":"Right")]):0)}function a(J){var R=J.body,T=J.documentElement,I=i(10)&&getComputedStyle(T);return{height:m("Height",R,T,I),width:m("Width",R,T,I)}}var E=function(J,R){if(!(J instanceof R))throw new TypeError("Cannot call a class as a function")},x=function(){function J(R,T){for(var I=0;I<T.length;I++){var Y=T[I];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(R,Y.key,Y)}}return function(R,T,I){return T&&J(R.prototype,T),I&&J(R,I),R}}(),S=function(J,R,T){return R in J?Object.defineProperty(J,R,{value:T,enumerable:!0,configurable:!0,writable:!0}):J[R]=T,J},A=Object.assign||function(J){for(var R=1;R<arguments.length;R++){var T=arguments[R];for(var I in T)Object.prototype.hasOwnProperty.call(T,I)&&(J[I]=T[I])}return J};function b(J){return A({},J,{right:J.left+J.width,bottom:J.top+J.height})}function k(J){var R={};try{if(i(10)){R=J.getBoundingClientRect();var T=l(J,"top"),I=l(J,"left");R.top+=T,R.left+=I,R.bottom+=T,R.right+=I}else R=J.getBoundingClientRect()}catch(gt){}var Y={left:R.left,top:R.top,width:R.right-R.left,height:R.bottom-R.top},F="HTML"===J.nodeName?a(J.ownerDocument):{},ut=J.offsetWidth-(F.width||J.clientWidth||Y.right-Y.left),dt=J.offsetHeight-(F.height||J.clientHeight||Y.bottom-Y.top);if(ut||dt){var vt=g(J);ut-=c(vt,"x"),dt-=c(vt,"y"),Y.width-=ut,Y.height-=dt}return b(Y)}function _(J,R){var T=arguments.length>2&&void 0!==arguments[2]&&arguments[2],I=i(10),Y="HTML"===R.nodeName,F=k(J),et=k(R),ot=o(J),ut=g(R),dt=parseFloat(ut.borderTopWidth,10),vt=parseFloat(ut.borderLeftWidth,10);T&&Y&&(et.top=Math.max(et.top,0),et.left=Math.max(et.left,0));var gt=b({top:F.top-et.top-dt,left:F.left-et.left-vt,width:F.width,height:F.height});if(gt.marginTop=0,gt.marginLeft=0,!I&&Y){var St=parseFloat(ut.marginTop,10),Ot=parseFloat(ut.marginLeft,10);gt.top-=dt-St,gt.bottom-=dt-St,gt.left-=vt-Ot,gt.right-=vt-Ot,gt.marginTop=St,gt.marginLeft=Ot}return(I&&!T?R.contains(ot):R===ot&&"BODY"!==ot.nodeName)&&(gt=function(xt,Rt){var Ht=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Mt=l(Rt,"top"),Ft=l(Rt,"left"),Ut=Ht?-1:1;return xt.top+=Mt*Ut,xt.bottom+=Mt*Ut,xt.left+=Ft*Ut,xt.right+=Ft*Ut,xt}(gt,R)),gt}function w(J){if(!J||!J.parentElement||i())return document.documentElement;for(var R=J.parentElement;R&&"none"===g(R,"transform");)R=R.parentElement;return R||document.documentElement}function N(J,R,T,I){var Y=arguments.length>4&&void 0!==arguments[4]&&arguments[4],F={top:0,left:0},et=Y?w(J):h(J,R);if("viewport"===I)F=function(Ot){var xt=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Rt=Ot.ownerDocument.documentElement,Ht=_(Ot,Rt),Mt=Math.max(Rt.clientWidth,window.innerWidth||0),Ft=Math.max(Rt.clientHeight,window.innerHeight||0),Ut=xt?0:l(Rt),Yt=xt?0:l(Rt,"left");return b({top:Ut-Ht.top+Ht.marginTop,left:Yt-Ht.left+Ht.marginLeft,width:Mt,height:Ft})}(et,Y);else{var ot=void 0;"scrollParent"===I?"BODY"===(ot=o(v(R))).nodeName&&(ot=J.ownerDocument.documentElement):ot="window"===I?J.ownerDocument.documentElement:I;var ut=_(ot,et,Y);if("HTML"!==ot.nodeName||function Ot(xt){var Rt=xt.nodeName;if("BODY"===Rt||"HTML"===Rt)return!1;if("fixed"===g(xt,"position"))return!0;var Ht=v(xt);return!!Ht&&Ot(Ht)}(et))F=ut;else{var dt=a(J.ownerDocument),vt=dt.height,gt=dt.width;F.top+=ut.top-ut.marginTop,F.bottom=vt+ut.top,F.left+=ut.left-ut.marginLeft,F.right=gt+ut.left}}var St="number"==typeof(T=T||0);return F.left+=St?T:T.left||0,F.top+=St?T:T.top||0,F.right-=St?T:T.right||0,F.bottom-=St?T:T.bottom||0,F}function j(J,R,T,I,Y){var F=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===J.indexOf("auto"))return J;var et=N(T,I,F,Y),ot={top:{width:et.width,height:R.top-et.top},right:{width:et.right-R.right,height:et.height},bottom:{width:et.width,height:et.bottom-R.bottom},left:{width:R.left-et.left,height:et.height}},ut=Object.keys(ot).map(function(St){return A({key:St},ot[St],{area:(Ot=ot[St],Ot.width*Ot.height)});var Ot}).sort(function(St,Ot){return Ot.area-St.area}),dt=ut.filter(function(St){return St.width>=T.clientWidth&&St.height>=T.clientHeight}),vt=dt.length>0?dt[0].key:ut[0].key,gt=J.split("-")[1];return vt+(gt?"-"+gt:"")}function H(J,R,T){var I=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _(T,I?w(R):h(R,T),I)}function X(J){var R=J.ownerDocument.defaultView.getComputedStyle(J),T=parseFloat(R.marginTop||0)+parseFloat(R.marginBottom||0),I=parseFloat(R.marginLeft||0)+parseFloat(R.marginRight||0);return{width:J.offsetWidth+I,height:J.offsetHeight+T}}function Z(J){var R={left:"right",right:"left",bottom:"top",top:"bottom"};return J.replace(/left|right|bottom|top/g,function(T){return R[T]})}function nt(J,R,T){T=T.split("-")[0];var I=X(J),Y={width:I.width,height:I.height},F=-1!==["right","left"].indexOf(T),et=F?"top":"left",ot=F?"left":"top",ut=F?"height":"width",dt=F?"width":"height";return Y[et]=R[et]+R[ut]/2-I[ut]/2,Y[ot]=T===ot?R[ot]-I[dt]:R[Z(ot)],Y}function K(J,R){return Array.prototype.find?J.find(R):J.filter(R)[0]}function L(J,R,T){return(void 0===T?J:J.slice(0,function(I,Y,F){if(Array.prototype.findIndex)return I.findIndex(function(ot){return ot[Y]===F});var et=K(I,function(ot){return ot[Y]===F});return I.indexOf(et)}(J,"name",T))).forEach(function(I){I.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var Y=I.function||I.fn;I.enabled&&y(Y)&&(R.offsets.popper=b(R.offsets.popper),R.offsets.reference=b(R.offsets.reference),R=Y(R,I))}),R}function q(J,R){return J.some(function(T){return T.enabled&&T.name===R})}function M(J){for(var R=[!1,"ms","Webkit","Moz","O"],T=J.charAt(0).toUpperCase()+J.slice(1),I=0;I<R.length;I++){var Y=R[I],F=Y?""+Y+T:J;if(void 0!==document.body.style[F])return F}return null}function U(J){var R=J.ownerDocument;return R?R.defaultView:window}function V(){var R;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(R=this.state,U(this.reference).removeEventListener("resize",R.updateBound),R.scrollParents.forEach(function(T){T.removeEventListener("scroll",R.updateBound)}),R.updateBound=null,R.scrollParents=[],R.scrollElement=null,R.eventsEnabled=!1,R))}function D(J){return""!==J&&!isNaN(parseFloat(J))&&isFinite(J)}function W(J,R){Object.keys(R).forEach(function(T){var I="";-1!==["width","height","top","right","bottom","left"].indexOf(T)&&D(R[T])&&(I="px"),J.style[T]=R[T]+I})}var tt=B&&/Firefox/i.test(navigator.userAgent);function it(J,R,T){var I=K(J,function(ot){return ot.name===R}),Y=!!I&&J.some(function(ot){return ot.name===T&&ot.enabled&&ot.order<I.order});if(!Y){var F="`"+R+"`";console.warn("`"+T+"` modifier is required by "+F+" modifier in order to work, be sure to include it before "+F+"!")}return Y}var st=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],pt=st.slice(3);function bt(J){var R=arguments.length>1&&void 0!==arguments[1]&&arguments[1],T=pt.indexOf(J),I=pt.slice(T+1).concat(pt.slice(0,T));return R?I.reverse():I}var Ct={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(J){var R=J.placement,T=R.split("-")[0],I=R.split("-")[1];if(I){var Y=J.offsets,F=Y.reference,et=Y.popper,ot=-1!==["bottom","top"].indexOf(T),ut=ot?"left":"top",dt=ot?"width":"height",vt={start:S({},ut,F[ut]),end:S({},ut,F[ut]+F[dt]-et[dt])};J.offsets.popper=A({},et,vt[I])}return J}},offset:{order:200,enabled:!0,fn:function(J,R){var ut,T=R.offset,Y=J.offsets,F=Y.popper,et=Y.reference,ot=J.placement.split("-")[0];return ut=D(+T)?[+T,0]:function At(J,R,T,I){var Y=[0,0],F=-1!==["right","left"].indexOf(I),et=J.split(/(\+|\-)/).map(function(vt){return vt.trim()}),ot=et.indexOf(K(et,function(vt){return-1!==vt.search(/,|\s/)}));et[ot]&&-1===et[ot].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var ut=/\s*,\s*|\s+/,dt=-1!==ot?[et.slice(0,ot).concat([et[ot].split(ut)[0]]),[et[ot].split(ut)[1]].concat(et.slice(ot+1))]:[et];return(dt=dt.map(function(vt,gt){var St=(1===gt?!F:F)?"height":"width",Ot=!1;return vt.reduce(function(xt,Rt){return""===xt[xt.length-1]&&-1!==["+","-"].indexOf(Rt)?(xt[xt.length-1]=Rt,Ot=!0,xt):Ot?(xt[xt.length-1]+=Rt,Ot=!1,xt):xt.concat(Rt)},[]).map(function(xt){return Ht=St,Mt=R,Ft=T,Ut=(Rt=xt).match(/((?:\-|\+)?\d*\.?\d*)(.*)/),Gt=Ut[2],(Yt=+Ut[1])?0===Gt.indexOf("%")?b("%p"===Gt?Mt:Ft)[Ht]/100*Yt:"vh"===Gt||"vw"===Gt?("vh"===Gt?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*Yt:Yt:Rt;var Rt,Ht,Mt,Ft,Ut,Yt,Gt})})).forEach(function(vt,gt){vt.forEach(function(St,Ot){D(St)&&(Y[gt]+=St*("-"===vt[Ot-1]?-1:1))})}),Y}(T,F,et,ot),"left"===ot?(F.top+=ut[0],F.left-=ut[1]):"right"===ot?(F.top+=ut[0],F.left+=ut[1]):"top"===ot?(F.left+=ut[0],F.top-=ut[1]):"bottom"===ot&&(F.left+=ut[0],F.top+=ut[1]),J.popper=F,J},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(J,R){var T=R.boundariesElement||s(J.instance.popper);J.instance.reference===T&&(T=s(T));var I=M("transform"),Y=J.instance.popper.style,F=Y.top,et=Y.left,ot=Y[I];Y.top="",Y.left="",Y[I]="";var ut=N(J.instance.popper,J.instance.reference,R.padding,T,J.positionFixed);Y.top=F,Y.left=et,Y[I]=ot,R.boundaries=ut;var vt=J.offsets.popper,gt={primary:function(St){var Ot=vt[St];return vt[St]<ut[St]&&!R.escapeWithReference&&(Ot=Math.max(vt[St],ut[St])),S({},St,Ot)},secondary:function(St){var Ot="right"===St?"left":"top",xt=vt[Ot];return vt[St]>ut[St]&&!R.escapeWithReference&&(xt=Math.min(vt[Ot],ut[St]-("right"===St?vt.width:vt.height))),S({},Ot,xt)}};return R.priority.forEach(function(St){var Ot=-1!==["left","top"].indexOf(St)?"primary":"secondary";vt=A({},vt,gt[Ot](St))}),J.offsets.popper=vt,J},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(J){var R=J.offsets,T=R.popper,I=R.reference,Y=J.placement.split("-")[0],F=Math.floor,et=-1!==["top","bottom"].indexOf(Y),ot=et?"right":"bottom",ut=et?"left":"top",dt=et?"width":"height";return T[ot]<F(I[ut])&&(J.offsets.popper[ut]=F(I[ut])-T[dt]),T[ut]>F(I[ot])&&(J.offsets.popper[ut]=F(I[ot])),J}},arrow:{order:500,enabled:!0,fn:function(J,R){var T;if(!it(J.instance.modifiers,"arrow","keepTogether"))return J;var I=R.element;if("string"==typeof I){if(!(I=J.instance.popper.querySelector(I)))return J}else if(!J.instance.popper.contains(I))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),J;var Y=J.placement.split("-")[0],F=J.offsets,et=F.popper,ot=F.reference,ut=-1!==["left","right"].indexOf(Y),dt=ut?"height":"width",vt=ut?"Top":"Left",gt=vt.toLowerCase(),St=ut?"left":"top",Ot=ut?"bottom":"right",xt=X(I)[dt];ot[Ot]-xt<et[gt]&&(J.offsets.popper[gt]-=et[gt]-(ot[Ot]-xt)),ot[gt]+xt>et[Ot]&&(J.offsets.popper[gt]+=ot[gt]+xt-et[Ot]),J.offsets.popper=b(J.offsets.popper);var Rt=ot[gt]+ot[dt]/2-xt/2,Ht=g(J.instance.popper),Mt=parseFloat(Ht["margin"+vt],10),Ft=parseFloat(Ht["border"+vt+"Width"],10),Ut=Rt-J.offsets.popper[gt]-Mt-Ft;return Ut=Math.max(Math.min(et[dt]-xt,Ut),0),J.arrowElement=I,J.offsets.arrow=(S(T={},gt,Math.round(Ut)),S(T,St,""),T),J},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(J,R){if(q(J.instance.modifiers,"inner")||J.flipped&&J.placement===J.originalPlacement)return J;var T=N(J.instance.popper,J.instance.reference,R.padding,R.boundariesElement,J.positionFixed),I=J.placement.split("-")[0],Y=Z(I),F=J.placement.split("-")[1]||"",et=[];switch(R.behavior){case"flip":et=[I,Y];break;case"clockwise":et=bt(I);break;case"counterclockwise":et=bt(I,!0);break;default:et=R.behavior}return et.forEach(function(ot,ut){if(I!==ot||et.length===ut+1)return J;I=J.placement.split("-")[0],Y=Z(I);var Xt,dt=J.offsets.popper,vt=J.offsets.reference,gt=Math.floor,St="left"===I&&gt(dt.right)>gt(vt.left)||"right"===I&&gt(dt.left)<gt(vt.right)||"top"===I&&gt(dt.bottom)>gt(vt.top)||"bottom"===I&&gt(dt.top)<gt(vt.bottom),Ot=gt(dt.left)<gt(T.left),xt=gt(dt.right)>gt(T.right),Rt=gt(dt.top)<gt(T.top),Ht=gt(dt.bottom)>gt(T.bottom),Mt="left"===I&&Ot||"right"===I&&xt||"top"===I&&Rt||"bottom"===I&&Ht,Ft=-1!==["top","bottom"].indexOf(I),Gt=!!R.flipVariations&&(Ft&&"start"===F&&Ot||Ft&&"end"===F&&xt||!Ft&&"start"===F&&Rt||!Ft&&"end"===F&&Ht)||!!R.flipVariationsByContent&&(Ft&&"start"===F&&xt||Ft&&"end"===F&&Ot||!Ft&&"start"===F&&Ht||!Ft&&"end"===F&&Rt);(St||Mt||Gt)&&(J.flipped=!0,(St||Mt)&&(I=et[ut+1]),Gt&&(F="end"===(Xt=F)?"start":"start"===Xt?"end":Xt),J.placement=I+(F?"-"+F:""),J.offsets.popper=A({},J.offsets.popper,nt(J.instance.popper,J.offsets.reference,J.placement)),J=L(J.instance.modifiers,J,"flip"))}),J},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(J){var R=J.placement,T=R.split("-")[0],I=J.offsets,Y=I.popper,F=I.reference,et=-1!==["left","right"].indexOf(T),ot=-1===["top","left"].indexOf(T);return Y[et?"left":"top"]=F[T]-(ot?Y[et?"width":"height"]:0),J.placement=Z(R),J.offsets.popper=b(Y),J}},hide:{order:800,enabled:!0,fn:function(J){if(!it(J.instance.modifiers,"hide","preventOverflow"))return J;var R=J.offsets.reference,T=K(J.instance.modifiers,function(I){return"preventOverflow"===I.name}).boundaries;if(R.bottom<T.top||R.left>T.right||R.top>T.bottom||R.right<T.left){if(!0===J.hide)return J;J.hide=!0,J.attributes["x-out-of-boundaries"]=""}else{if(!1===J.hide)return J;J.hide=!1,J.attributes["x-out-of-boundaries"]=!1}return J}},computeStyle:{order:850,enabled:!0,fn:function(J,R){var T=R.x,I=R.y,Y=J.offsets.popper,F=K(J.instance.modifiers,function(Ut){return"applyStyle"===Ut.name}).gpuAcceleration;void 0!==F&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var xt,Rt,Ut,Yt,Gt,Xt,ae,jt,te,fe,de,he,ee,pe,ve,et=void 0!==F?F:R.gpuAcceleration,ot=s(J.instance.popper),ut=k(ot),dt={position:Y.position},vt=(Ut=J,Yt=window.devicePixelRatio<2||!tt,Xt=(Gt=Ut.offsets).popper,ae=Math.round,jt=Math.floor,te=function(Ee){return Ee},fe=ae(Gt.reference.width),de=ae(Xt.width),he=-1!==["left","right"].indexOf(Ut.placement),ee=-1!==Ut.placement.indexOf("-"),ve=Yt?ae:te,{left:(pe=Yt?he||ee||fe%2==de%2?ae:jt:te)(fe%2==1&&de%2==1&&!ee&&Yt?Xt.left-1:Xt.left),top:ve(Xt.top),bottom:ve(Xt.bottom),right:pe(Xt.right)}),gt="bottom"===T?"top":"bottom",St="right"===I?"left":"right",Ot=M("transform");if(Rt="bottom"===gt?"HTML"===ot.nodeName?-ot.clientHeight+vt.bottom:-ut.height+vt.bottom:vt.top,xt="right"===St?"HTML"===ot.nodeName?-ot.clientWidth+vt.right:-ut.width+vt.right:vt.left,et&&Ot)dt[Ot]="translate3d("+xt+"px, "+Rt+"px, 0)",dt[gt]=0,dt[St]=0,dt.willChange="transform";else{var Mt="right"===St?-1:1;dt[gt]=Rt*("bottom"===gt?-1:1),dt[St]=xt*Mt,dt.willChange=gt+", "+St}return J.attributes=A({},{"x-placement":J.placement},J.attributes),J.styles=A({},dt,J.styles),J.arrowStyles=A({},J.offsets.arrow,J.arrowStyles),J},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(J){var R,T;return W(J.instance.popper,J.styles),R=J.instance.popper,T=J.attributes,Object.keys(T).forEach(function(I){!1!==T[I]?R.setAttribute(I,T[I]):R.removeAttribute(I)}),J.arrowElement&&Object.keys(J.arrowStyles).length&&W(J.arrowElement,J.arrowStyles),J},onLoad:function(J,R,T,I,Y){var F=H(Y,R,J,T.positionFixed),et=j(T.placement,F,R,J,T.modifiers.flip.boundariesElement,T.modifiers.flip.padding);return R.setAttribute("x-placement",et),W(R,{position:T.positionFixed?"fixed":"absolute"}),T},gpuAcceleration:void 0}}},Lt=function(){function J(R,T){var I=this,Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,J),this.scheduleUpdate=function(){return requestAnimationFrame(I.update)},this.update=u(this.update.bind(this)),this.options=A({},J.Defaults,Y),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=R&&R.jquery?R[0]:R,this.popper=T&&T.jquery?T[0]:T,this.options.modifiers={},Object.keys(A({},J.Defaults.modifiers,Y.modifiers)).forEach(function(et){I.options.modifiers[et]=A({},J.Defaults.modifiers[et]||{},Y.modifiers?Y.modifiers[et]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(et){return A({name:et},I.options.modifiers[et])}).sort(function(et,ot){return et.order-ot.order}),this.modifiers.forEach(function(et){et.enabled&&y(et.onLoad)&&et.onLoad(I.reference,I.popper,I.options,et,I.state)}),this.update();var F=this.options.eventsEnabled;F&&this.enableEventListeners(),this.state.eventsEnabled=F}return x(J,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var R={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};R.offsets.reference=H(this.state,this.popper,this.reference,this.options.positionFixed),R.placement=j(this.options.placement,R.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),R.originalPlacement=R.placement,R.positionFixed=this.options.positionFixed,R.offsets.popper=nt(this.popper,R.offsets.reference,R.placement),R.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",R=L(this.modifiers,R),this.state.isCreated?this.options.onUpdate(R):(this.state.isCreated=!0,this.options.onCreate(R))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,q(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[M("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=function G(J,R,T,I){T.updateBound=I,U(J).addEventListener("resize",T.updateBound,{passive:!0});var Y=o(J);return function F(et,ot,ut,dt){var vt="BODY"===et.nodeName,gt=vt?et.ownerDocument.defaultView:et;gt.addEventListener(ot,ut,{passive:!0}),vt||F(o(gt.parentNode),ot,ut,dt),dt.push(gt)}(Y,"scroll",T.updateBound,T.scrollParents),T.scrollElement=Y,T.eventsEnabled=!0,T}(this.reference,0,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return V.call(this)}}]),J}();return Lt.Utils=("undefined"!=typeof window?window:global).PopperUtils,Lt.placements=st,Lt.Defaults=Ct,Lt}),function(B,p){"object"==typeof exports&&"undefined"!=typeof module?module.exports=p(require("popper.js")):"function"==typeof define&&define.amd?define(["popper.js"],p):B.Tooltip=p(B.Popper)}(this,function(B){"use strict";B=B&&B.hasOwnProperty("default")?B.default:B;var d=function(){function v(o,r){for(var n,i=0;i<r.length;i++)(n=r[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}return function(o,r,n){return r&&v(o.prototype,r),n&&v(o,n),o}}(),O=Object.assign||function(v){for(var o,r=1;r<arguments.length;r++)for(var n in o=arguments[r])Object.prototype.hasOwnProperty.call(o,n)&&(v[n]=o[n]);return v},u={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0,arrowSelector:".tooltip-arrow, .tooltip__arrow",innerSelector:".tooltip-inner, .tooltip__inner"},y=function(){function v(o,r){(function(v,o){if(!(v instanceof o))throw new TypeError("Cannot call a class as a function")})(this,v),g.call(this),r=O({},u,r),o.jquery&&(o=o[0]),this.reference=o,this.options=r;var n="string"==typeof r.trigger?r.trigger.split(" ").filter(function(i){return-1!==["click","hover","focus"].indexOf(i)}):[];this._isOpen=!1,this._popperOptions={},this._setEventListeners(o,n,r)}return d(v,[{key:"_create",value:function(o,r,n,i){var s=window.document.createElement("div");s.innerHTML=r.trim();var f=s.childNodes[0];f.id="tooltip_"+Math.random().toString(36).substr(2,10),f.setAttribute("aria-hidden","false");var h=s.querySelector(this.options.innerSelector);return this._addTitleContent(o,n,i,h),f}},{key:"_addTitleContent",value:function(o,r,n,i){if(1===r.nodeType||11===r.nodeType)n&&i.appendChild(r);else if((f=r)&&"[object Function]"==={}.toString.call(f)){var s=r.call(o);n?i.innerHTML=s:i.textContent=s}else n?i.innerHTML=r:i.textContent=r;var f}},{key:"_show",value:function(o,r){if(this._isOpen&&!this._isOpening)return this;if(this._isOpen=!0,this._tooltipNode)return this._tooltipNode.style.visibility="visible",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.update(),this;var n=o.getAttribute("title")||r.title;if(!n)return this;var i=this._create(o,r.template,n,r.html);o.setAttribute("aria-describedby",i.id);var s=this._findContainer(r.container,o);return this._append(i,s),this._popperOptions=O({},r.popperOptions,{placement:r.placement}),this._popperOptions.modifiers=O({},this._popperOptions.modifiers,{arrow:O({},this._popperOptions.modifiers&&this._popperOptions.modifiers.arrow,{element:r.arrowSelector}),offset:O({},this._popperOptions.modifiers&&this._popperOptions.modifiers.offset,{offset:r.offset})}),r.boundariesElement&&(this._popperOptions.modifiers.preventOverflow={boundariesElement:r.boundariesElement}),this.popperInstance=new B(o,i,this._popperOptions),this._tooltipNode=i,this}},{key:"_hide",value:function(){return this._isOpen?(this._isOpen=!1,this._tooltipNode.style.visibility="hidden",this._tooltipNode.setAttribute("aria-hidden","true"),this):this}},{key:"_dispose",value:function(){var o=this;return this._events.forEach(function(r){o.reference.removeEventListener(r.event,r.func)}),this._events=[],this._tooltipNode&&(this._hide(),this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy&&(this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null)),this}},{key:"_findContainer",value:function(o,r){return"string"==typeof o?o=window.document.querySelector(o):!1===o&&(o=r.parentNode),o}},{key:"_append",value:function(o,r){r.appendChild(o)}},{key:"_setEventListeners",value:function(o,r,n){var i=this,s=[],f=[];r.forEach(function(h){"hover"===h?(s.push("mouseenter"),f.push("mouseleave")):"focus"===h?(s.push("focus"),f.push("blur")):"click"===h&&(s.push("click"),f.push("click"))}),s.forEach(function(h){var l=function(c){!0===i._isOpening||(c.usedByTooltip=!0,i._scheduleShow(o,n.delay,n,c))};i._events.push({event:h,func:l}),o.addEventListener(h,l)}),f.forEach(function(h){var l=function(c){!0===c.usedByTooltip||i._scheduleHide(o,n.delay,n,c)};i._events.push({event:h,func:l}),o.addEventListener(h,l),"click"===h&&n.closeOnClickOutside&&document.addEventListener("mousedown",function(c){if(i._isOpening){var m=i.popperInstance.popper;o.contains(c.target)||m.contains(c.target)||l(c)}},!0)})}},{key:"_scheduleShow",value:function(o,r,n){var i=this;this._isOpening=!0,this._showTimeout=window.setTimeout(function(){return i._show(o,n)},r&&r.show||r||0)}},{key:"_scheduleHide",value:function(o,r,n,i){var s=this;this._isOpening=!1;var f=r&&r.hide||r||0;window.clearTimeout(this._showTimeout),window.setTimeout(function(){if(!1!==s._isOpen&&document.body.contains(s._tooltipNode)){if("mouseleave"===i.type&&s._setTooltipNodeEvent(i,o,r,n))return;s._hide(o,n)}},f)}},{key:"_updateTitleContent",value:function(o){if(void 0!==this._tooltipNode){var r=this._tooltipNode.querySelector(this.options.innerSelector);this._clearTitleContent(r,this.options.html,this.reference.getAttribute("title")||this.options.title),this._addTitleContent(this.reference,o,this.options.html,r),this.options.title=o,this.popperInstance.update()}else void 0!==this.options.title&&(this.options.title=o)}},{key:"_clearTitleContent",value:function(o,r,n){1===n.nodeType||11===n.nodeType?r&&o.removeChild(n):r?o.innerHTML="":o.textContent=""}}]),v}(),g=function(){var v=this;this.show=function(){return v._show(v.reference,v.options)},this.hide=function(){return v._hide()},this.dispose=function(){return v._dispose()},this.toggle=function(){return v._isOpen?v.hide():v.show()},this.updateTitleContent=function(o){return v._updateTitleContent(o)},this._events=[],this._setTooltipNodeEvent=function(o,r,n,i){return!!v._tooltipNode.contains(o.relatedreference||o.toElement||o.relatedTarget)&&(v._tooltipNode.addEventListener(o.type,function f(h){var l=h.relatedreference||h.toElement||h.relatedTarget;v._tooltipNode.removeEventListener(o.type,f),r.contains(l)||v._scheduleHide(r,i.delay,i,h)}),!0)}};return y}),function(B,p){"object"==typeof exports&&"undefined"!=typeof module?module.exports=p():"function"==typeof define&&define.amd?define(p):B.PerfectScrollbar=p()}(this,function(){"use strict";function B(b){return getComputedStyle(b)}function p(b,k){for(var _ in k){var w=k[_];"number"==typeof w&&(w+="px"),b.style[_]=w}return b}function d(b){var k=document.createElement("div");return k.className=b,k}var O="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function u(b,k){if(!O)throw new Error("No element matching method supported");return O.call(b,k)}function y(b){b.remove?b.remove():b.parentNode&&b.parentNode.removeChild(b)}function g(b,k){return Array.prototype.filter.call(b.children,function(_){return u(_,k)})}var v_element_thumb=function(b){return"ps__thumb-"+b},v_element_rail=function(b){return"ps__rail-"+b},v_element_consuming="ps__child--consume",v_state_focus="ps--focus",v_state_clicking="ps--clicking",v_state_active=function(b){return"ps--active-"+b},v_state_scrolling=function(b){return"ps--scrolling-"+b},o={x:null,y:null};function r(b,k){var _=b.element.classList,w=v_state_scrolling(k);_.contains(w)?clearTimeout(o[k]):_.add(w)}function n(b,k){o[k]=setTimeout(function(){return b.isAlive&&b.element.classList.remove(v_state_scrolling(k))},b.settings.scrollingThreshold)}var i=function(b){this.element=b,this.handlers={}},s={isEmpty:{configurable:!0}};i.prototype.bind=function(b,k){void 0===this.handlers[b]&&(this.handlers[b]=[]),this.handlers[b].push(k),this.element.addEventListener(b,k,!1)},i.prototype.unbind=function(b,k){var _=this;this.handlers[b]=this.handlers[b].filter(function(w){return!(!k||w===k)||(_.element.removeEventListener(b,w,!1),!1)})},i.prototype.unbindAll=function(){for(var b in this.handlers)this.unbind(b)},s.isEmpty.get=function(){var b=this;return Object.keys(this.handlers).every(function(k){return 0===b.handlers[k].length})},Object.defineProperties(i.prototype,s);var f=function(){this.eventElements=[]};function h(b){if("function"==typeof window.CustomEvent)return new CustomEvent(b);var k=document.createEvent("CustomEvent");return k.initCustomEvent(b,!1,!1,void 0),k}f.prototype.eventElement=function(b){var k=this.eventElements.filter(function(_){return _.element===b})[0];return k||(k=new i(b),this.eventElements.push(k)),k},f.prototype.bind=function(b,k,_){this.eventElement(b).bind(k,_)},f.prototype.unbind=function(b,k,_){var w=this.eventElement(b);w.unbind(k,_),w.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(w),1)},f.prototype.unbindAll=function(){this.eventElements.forEach(function(b){return b.unbindAll()}),this.eventElements=[]},f.prototype.once=function(b,k,_){var w=this.eventElement(b),N=function(j){w.unbind(k,N),_(j)};w.bind(k,N)};var l=function(b,k,_,w,N){var j;if(void 0===w&&(w=!0),void 0===N&&(N=!1),"top"===k)j=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==k)throw new Error("A proper axis should be provided");j=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(H,X,Z,nt,K){var L=Z[0],q=Z[1],M=Z[2],U=Z[3],G=Z[4],V=Z[5];void 0===nt&&(nt=!0),void 0===K&&(K=!1);var W,tt,D=H.element;H.reach[U]=null,D[M]<1&&(H.reach[U]="start"),D[M]>H[L]-H[q]-1&&(H.reach[U]="end"),X&&(D.dispatchEvent(h("ps-scroll-"+U)),X<0?D.dispatchEvent(h("ps-scroll-"+G)):X>0&&D.dispatchEvent(h("ps-scroll-"+V)),nt&&(r(W=H,tt=U),n(W,tt))),H.reach[U]&&(X||K)&&D.dispatchEvent(h("ps-"+U+"-reach-"+H.reach[U]))}(b,_,j,w,N)};function c(b){return parseInt(b,10)||0}var m={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},a=function(b){var k=b.element,_=Math.floor(k.scrollTop);b.containerWidth=k.clientWidth,b.containerHeight=k.clientHeight,b.contentWidth=k.scrollWidth,b.contentHeight=k.scrollHeight,k.contains(b.scrollbarXRail)||(g(k,v_element_rail("x")).forEach(function(w){return y(w)}),k.appendChild(b.scrollbarXRail)),k.contains(b.scrollbarYRail)||(g(k,v_element_rail("y")).forEach(function(w){return y(w)}),k.appendChild(b.scrollbarYRail)),!b.settings.suppressScrollX&&b.containerWidth+b.settings.scrollXMarginOffset<b.contentWidth?(b.scrollbarXActive=!0,b.railXWidth=b.containerWidth-b.railXMarginWidth,b.railXRatio=b.containerWidth/b.railXWidth,b.scrollbarXWidth=E(b,c(b.railXWidth*b.containerWidth/b.contentWidth)),b.scrollbarXLeft=c((b.negativeScrollAdjustment+k.scrollLeft)*(b.railXWidth-b.scrollbarXWidth)/(b.contentWidth-b.containerWidth))):b.scrollbarXActive=!1,!b.settings.suppressScrollY&&b.containerHeight+b.settings.scrollYMarginOffset<b.contentHeight?(b.scrollbarYActive=!0,b.railYHeight=b.containerHeight-b.railYMarginHeight,b.railYRatio=b.containerHeight/b.railYHeight,b.scrollbarYHeight=E(b,c(b.railYHeight*b.containerHeight/b.contentHeight)),b.scrollbarYTop=c(_*(b.railYHeight-b.scrollbarYHeight)/(b.contentHeight-b.containerHeight))):b.scrollbarYActive=!1,b.scrollbarXLeft>=b.railXWidth-b.scrollbarXWidth&&(b.scrollbarXLeft=b.railXWidth-b.scrollbarXWidth),b.scrollbarYTop>=b.railYHeight-b.scrollbarYHeight&&(b.scrollbarYTop=b.railYHeight-b.scrollbarYHeight),function(w,N){var j={width:N.railXWidth},H=Math.floor(w.scrollTop);j.left=N.isRtl?N.negativeScrollAdjustment+w.scrollLeft+N.containerWidth-N.contentWidth:w.scrollLeft,N.isScrollbarXUsingBottom?j.bottom=N.scrollbarXBottom-H:j.top=N.scrollbarXTop+H,p(N.scrollbarXRail,j);var X={top:H,height:N.railYHeight};N.isScrollbarYUsingRight?X.right=N.isRtl?N.contentWidth-(N.negativeScrollAdjustment+w.scrollLeft)-N.scrollbarYRight-N.scrollbarYOuterWidth:N.scrollbarYRight-w.scrollLeft:X.left=N.isRtl?N.negativeScrollAdjustment+w.scrollLeft+2*N.containerWidth-N.contentWidth-N.scrollbarYLeft-N.scrollbarYOuterWidth:N.scrollbarYLeft+w.scrollLeft,p(N.scrollbarYRail,X),p(N.scrollbarX,{left:N.scrollbarXLeft,width:N.scrollbarXWidth-N.railBorderXWidth}),p(N.scrollbarY,{top:N.scrollbarYTop,height:N.scrollbarYHeight-N.railBorderYWidth})}(k,b),b.scrollbarXActive?k.classList.add(v_state_active("x")):(k.classList.remove(v_state_active("x")),b.scrollbarXWidth=0,b.scrollbarXLeft=0,k.scrollLeft=0),b.scrollbarYActive?k.classList.add(v_state_active("y")):(k.classList.remove(v_state_active("y")),b.scrollbarYHeight=0,b.scrollbarYTop=0,k.scrollTop=0)};function E(b,k){return b.settings.minScrollbarLength&&(k=Math.max(k,b.settings.minScrollbarLength)),b.settings.maxScrollbarLength&&(k=Math.min(k,b.settings.maxScrollbarLength)),k}function x(b,k){var _=k[0],w=k[1],N=k[2],j=k[3],X=k[5],Z=k[6],nt=k[7],K=k[8],L=b.element,q=null,M=null,U=null;function G(D){L[Z]=q+U*(D[N]-M),r(b,nt),a(b),D.stopPropagation(),D.preventDefault()}function V(){n(b,nt),b[K].classList.remove(v_state_clicking),b.event.unbind(b.ownerDocument,"mousemove",G)}b.event.bind(b[k[4]],"mousedown",function(D){q=L[Z],M=D[N],U=(b[w]-b[_])/(b[j]-b[X]),b.event.bind(b.ownerDocument,"mousemove",G),b.event.once(b.ownerDocument,"mouseup",V),b[K].classList.add(v_state_clicking),D.stopPropagation(),D.preventDefault()})}var S={"click-rail":function(b){b.event.bind(b.scrollbarY,"mousedown",function(k){return k.stopPropagation()}),b.event.bind(b.scrollbarYRail,"mousedown",function(k){var _=k.pageY-window.pageYOffset-b.scrollbarYRail.getBoundingClientRect().top>b.scrollbarYTop?1:-1;b.element.scrollTop+=_*b.containerHeight,a(b),k.stopPropagation()}),b.event.bind(b.scrollbarX,"mousedown",function(k){return k.stopPropagation()}),b.event.bind(b.scrollbarXRail,"mousedown",function(k){var _=k.pageX-window.pageXOffset-b.scrollbarXRail.getBoundingClientRect().left>b.scrollbarXLeft?1:-1;b.element.scrollLeft+=_*b.containerWidth,a(b),k.stopPropagation()})},"drag-thumb":function(b){x(b,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),x(b,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(b){var k=b.element;b.event.bind(b.ownerDocument,"keydown",function(_){if(!(_.isDefaultPrevented&&_.isDefaultPrevented()||_.defaultPrevented)&&(u(k,":hover")||u(b.scrollbarX,":focus")||u(b.scrollbarY,":focus"))){var w,N=document.activeElement?document.activeElement:b.ownerDocument.activeElement;if(N){if("IFRAME"===N.tagName)N=N.contentDocument.activeElement;else for(;N.shadowRoot;)N=N.shadowRoot.activeElement;if(u(w=N,"input,[contenteditable]")||u(w,"select,[contenteditable]")||u(w,"textarea,[contenteditable]")||u(w,"button,[contenteditable]"))return}var j=0,H=0;switch(_.which){case 37:j=_.metaKey?-b.contentWidth:_.altKey?-b.containerWidth:-30;break;case 38:H=_.metaKey?b.contentHeight:_.altKey?b.containerHeight:30;break;case 39:j=_.metaKey?b.contentWidth:_.altKey?b.containerWidth:30;break;case 40:H=_.metaKey?-b.contentHeight:_.altKey?-b.containerHeight:-30;break;case 32:H=_.shiftKey?b.containerHeight:-b.containerHeight;break;case 33:H=b.containerHeight;break;case 34:H=-b.containerHeight;break;case 36:H=b.contentHeight;break;case 35:H=-b.contentHeight;break;default:return}b.settings.suppressScrollX&&0!==j||b.settings.suppressScrollY&&0!==H||(k.scrollTop-=H,k.scrollLeft+=j,a(b),function(X,Z){var nt=Math.floor(k.scrollTop);if(0===X){if(!b.scrollbarYActive)return!1;if(0===nt&&Z>0||nt>=b.contentHeight-b.containerHeight&&Z<0)return!b.settings.wheelPropagation}var K=k.scrollLeft;if(0===Z){if(!b.scrollbarXActive)return!1;if(0===K&&X<0||K>=b.contentWidth-b.containerWidth&&X>0)return!b.settings.wheelPropagation}return!0}(j,H)&&_.preventDefault())}})},wheel:function(b){var k=b.element;function _(w){var Z,nt,K,N=(K=-1*(Z=w).deltaY,void 0!==(nt=Z.deltaX)&&void 0!==K||(nt=-1*Z.wheelDeltaX/6,K=Z.wheelDeltaY/6),Z.deltaMode&&1===Z.deltaMode&&(nt*=10,K*=10),nt!=nt&&K!=K&&(nt=0,K=Z.wheelDelta),Z.shiftKey?[-K,-nt]:[nt,K]),j=N[0],H=N[1];if(!function(Z,nt,K){if(!m.isWebKit&&k.querySelector("select:focus"))return!0;if(!k.contains(Z))return!1;for(var L=Z;L&&L!==k;){if(L.classList.contains(v_element_consuming))return!0;var q=B(L);if([q.overflow,q.overflowX,q.overflowY].join("").match(/(scroll|auto)/)){var M=L.scrollHeight-L.clientHeight;if(M>0&&!(0===L.scrollTop&&K>0||L.scrollTop===M&&K<0))return!0;var U=L.scrollWidth-L.clientWidth;if(U>0&&!(0===L.scrollLeft&&nt<0||L.scrollLeft===U&&nt>0))return!0}L=L.parentNode}return!1}(w.target,j,H)){var X=!1;b.settings.useBothWheelAxes?b.scrollbarYActive&&!b.scrollbarXActive?(H?k.scrollTop-=H*b.settings.wheelSpeed:k.scrollTop+=j*b.settings.wheelSpeed,X=!0):b.scrollbarXActive&&!b.scrollbarYActive&&(j?k.scrollLeft+=j*b.settings.wheelSpeed:k.scrollLeft-=H*b.settings.wheelSpeed,X=!0):(k.scrollTop-=H*b.settings.wheelSpeed,k.scrollLeft+=j*b.settings.wheelSpeed),a(b),(X=X||function(Z,nt){var K=Math.floor(k.scrollTop),L=0===k.scrollTop,q=K+k.offsetHeight===k.scrollHeight,M=0===k.scrollLeft,U=k.scrollLeft+k.offsetWidth===k.scrollWidth;return!(Math.abs(nt)>Math.abs(Z)?L||q:M||U)||!b.settings.wheelPropagation}(j,H))&&!w.ctrlKey&&(w.stopPropagation(),w.preventDefault())}}void 0!==window.onwheel?b.event.bind(k,"wheel",_):void 0!==window.onmousewheel&&b.event.bind(k,"mousewheel",_)},touch:function(b){if(m.supportsTouch||m.supportsIePointer){var k=b.element,_={},w=0,N={},j=null;m.supportsTouch?(b.event.bind(k,"touchstart",nt),b.event.bind(k,"touchmove",K),b.event.bind(k,"touchend",L)):m.supportsIePointer&&(window.PointerEvent?(b.event.bind(k,"pointerdown",nt),b.event.bind(k,"pointermove",K),b.event.bind(k,"pointerup",L)):window.MSPointerEvent&&(b.event.bind(k,"MSPointerDown",nt),b.event.bind(k,"MSPointerMove",K),b.event.bind(k,"MSPointerUp",L)))}function H(q,M){k.scrollTop-=M,k.scrollLeft-=q,a(b)}function X(q){return q.targetTouches?q.targetTouches[0]:q}function Z(q){return!(q.pointerType&&"pen"===q.pointerType&&0===q.buttons||(!q.targetTouches||1!==q.targetTouches.length)&&(!q.pointerType||"mouse"===q.pointerType||q.pointerType===q.MSPOINTER_TYPE_MOUSE))}function nt(q){if(Z(q)){var M=X(q);_.pageX=M.pageX,_.pageY=M.pageY,w=(new Date).getTime(),null!==j&&clearInterval(j)}}function K(q){if(Z(q)){var M=X(q),U={pageX:M.pageX,pageY:M.pageY},G=U.pageX-_.pageX,V=U.pageY-_.pageY;if(function(tt,it,st){if(!k.contains(tt))return!1;for(var pt=tt;pt&&pt!==k;){if(pt.classList.contains(v_element_consuming))return!0;var bt=B(pt);if([bt.overflow,bt.overflowX,bt.overflowY].join("").match(/(scroll|auto)/)){var _t=pt.scrollHeight-pt.clientHeight;if(_t>0&&!(0===pt.scrollTop&&st>0||pt.scrollTop===_t&&st<0))return!0;var At=pt.scrollLeft-pt.clientWidth;if(At>0&&!(0===pt.scrollLeft&&it<0||pt.scrollLeft===At&&it>0))return!0}pt=pt.parentNode}return!1}(q.target,G,V))return;H(G,V),_=U;var D=(new Date).getTime(),W=D-w;W>0&&(N.x=G/W,N.y=V/W,w=D),function(tt,it){var st=Math.floor(k.scrollTop),pt=k.scrollLeft,bt=Math.abs(tt),_t=Math.abs(it);if(_t>bt){if(it<0&&st===b.contentHeight-b.containerHeight||it>0&&0===st)return 0===window.scrollY&&it>0&&m.isChrome}else if(bt>_t&&(tt<0&&pt===b.contentWidth-b.containerWidth||tt>0&&0===pt))return!0;return!0}(G,V)&&q.preventDefault()}}function L(){b.settings.swipeEasing&&(clearInterval(j),j=setInterval(function(){b.isInitialized?clearInterval(j):N.x||N.y?Math.abs(N.x)<.01&&Math.abs(N.y)<.01?clearInterval(j):(H(30*N.x,30*N.y),N.x*=.8,N.y*=.8):clearInterval(j)},10))}}},A=function(b,k){var _=this;if(void 0===k&&(k={}),"string"==typeof b&&(b=document.querySelector(b)),!b||!b.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var w in this.element=b,b.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},k)_.settings[w]=k[w];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var N,j,H=function(){return b.classList.add(v_state_focus)},X=function(){return b.classList.remove(v_state_focus)};this.isRtl="rtl"===B(b).direction,this.isNegativeScroll=(j=b.scrollLeft,b.scrollLeft=-1,N=b.scrollLeft<0,b.scrollLeft=j,N),this.negativeScrollAdjustment=this.isNegativeScroll?b.scrollWidth-b.clientWidth:0,this.event=new f,this.ownerDocument=b.ownerDocument||document,this.scrollbarXRail=d(v_element_rail("x")),b.appendChild(this.scrollbarXRail),this.scrollbarX=d(v_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",H),this.event.bind(this.scrollbarX,"blur",X),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var Z=B(this.scrollbarXRail);this.scrollbarXBottom=parseInt(Z.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=c(Z.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=c(Z.borderLeftWidth)+c(Z.borderRightWidth),p(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=c(Z.marginLeft)+c(Z.marginRight),p(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=d(v_element_rail("y")),b.appendChild(this.scrollbarYRail),this.scrollbarY=d(v_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",H),this.event.bind(this.scrollbarY,"blur",X),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var L,nt=B(this.scrollbarYRail);this.scrollbarYRight=parseInt(nt.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=c(nt.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?c((L=B(this.scrollbarY)).width)+c(L.paddingLeft)+c(L.paddingRight)+c(L.borderLeftWidth)+c(L.borderRightWidth):null,this.railBorderYWidth=c(nt.borderTopWidth)+c(nt.borderBottomWidth),p(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=c(nt.marginTop)+c(nt.marginBottom),p(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:b.scrollLeft<=0?"start":b.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:b.scrollTop<=0?"start":b.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(K){return S[K](_)}),this.lastScrollTop=Math.floor(b.scrollTop),this.lastScrollLeft=b.scrollLeft,this.event.bind(this.element,"scroll",function(K){return _.onScroll(K)}),a(this)};return A.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,p(this.scrollbarXRail,{display:"block"}),p(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=c(B(this.scrollbarXRail).marginLeft)+c(B(this.scrollbarXRail).marginRight),this.railYMarginHeight=c(B(this.scrollbarYRail).marginTop)+c(B(this.scrollbarYRail).marginBottom),p(this.scrollbarXRail,{display:"none"}),p(this.scrollbarYRail,{display:"none"}),a(this),l(this,"top",0,!1,!0),l(this,"left",0,!1,!0),p(this.scrollbarXRail,{display:""}),p(this.scrollbarYRail,{display:""}))},A.prototype.onScroll=function(b){this.isAlive&&(a(this),l(this,"top",this.element.scrollTop-this.lastScrollTop),l(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},A.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),y(this.scrollbarX),y(this.scrollbarY),y(this.scrollbarXRail),y(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},A.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(b){return!b.match(/^ps([-_].+|)$/)}).join(" ")},A});var KTMenu=function(B,p){var d=this,O=!1,u=KTUtil.getById(B),y=KTUtil.getBody();if(u){var g={scroll:{rememberPosition:!1},accordion:{slideSpeed:200,autoScroll:!1,autoScrollSpeed:1200,expandAll:!0},dropdown:{timeout:500}},v={construct:function(o){return KTUtil.data(u).has("menu")?d=KTUtil.data(u).get("menu"):(v.init(o),v.reset(),v.build(),KTUtil.data(u).set("menu",d)),d},init:function(o){d.events=[],d.eventHandlers={},d.options=KTUtil.deepExtend({},g,o),d.pauseDropdownHoverTime=0,d.uid=KTUtil.getUniqueID()},update:function(o){d.options=KTUtil.deepExtend({},g,o),d.pauseDropdownHoverTime=0,v.reset(),d.eventHandlers={},v.build(),KTUtil.data(u).set("menu",d)},reload:function(){v.reset(),v.build(),v.resetSubmenuProps()},build:function(){d.eventHandlers.event_1=KTUtil.on(u,".menu-toggle","click",v.handleSubmenuAccordion),("dropdown"===v.getSubmenuMode()||v.isConditionalSubmenuDropdown())&&(d.eventHandlers.event_2=KTUtil.on(u,'[data-menu-toggle="hover"]',"mouseover",v.handleSubmenuDrodownHoverEnter),d.eventHandlers.event_3=KTUtil.on(u,'[data-menu-toggle="hover"]',"mouseout",v.handleSubmenuDrodownHoverExit),d.eventHandlers.event_4=KTUtil.on(u,'[data-menu-toggle="click"] > .menu-toggle, [data-menu-toggle="click"] > .menu-link .menu-toggle',"click",v.handleSubmenuDropdownClick),d.eventHandlers.event_5=KTUtil.on(u,'[data-menu-toggle="tab"] > .menu-toggle, [data-menu-toggle="tab"] > .menu-link .menu-toggle',"click",v.handleSubmenuDropdownTabClick)),d.eventHandlers.event_6=KTUtil.on(u,".menu-item > .menu-link:not(.menu-toggle):not(.menu-link-toggle-skip)","click",v.handleLinkClick),d.options.scroll&&d.options.scroll.height&&v.scrollInit()},reset:function(){KTUtil.off(u,"click",d.eventHandlers.event_1),KTUtil.off(u,"mouseover",d.eventHandlers.event_2),KTUtil.off(u,"mouseout",d.eventHandlers.event_3),KTUtil.off(u,"click",d.eventHandlers.event_4),KTUtil.off(u,"click",d.eventHandlers.event_5),KTUtil.off(u,"click",d.eventHandlers.event_6)},scrollInit:function(){d.options.scroll&&d.options.scroll.height?(KTUtil.scrollDestroy(u,!0),KTUtil.scrollInit(u,{mobileNativeScroll:!0,windowScroll:!1,resetHeightOnDestroy:!0,handleWindowResize:!0,height:d.options.scroll.height,rememberPosition:d.options.scroll.rememberPosition})):KTUtil.scrollDestroy(u,!0)},scrollUpdate:function(){d.options.scroll&&d.options.scroll.height&&KTUtil.scrollUpdate(u)},scrollTop:function(){d.options.scroll&&d.options.scroll.height&&KTUtil.scrollTop(u)},getSubmenuMode:function(o){return KTUtil.isBreakpointUp("lg")?o&&KTUtil.hasAttr(o,"data-menu-toggle")&&"hover"==KTUtil.attr(o,"data-menu-toggle")?"dropdown":KTUtil.isset(d.options.submenu,"desktop.state.body")?KTUtil.hasClasses(y,d.options.submenu.desktop.state.body)?d.options.submenu.desktop.state.mode:d.options.submenu.desktop.default:KTUtil.isset(d.options.submenu,"desktop")?d.options.submenu.desktop:void 0:KTUtil.isBreakpointUp("md")&&KTUtil.isBreakpointDown("lg")&&KTUtil.isset(d.options.submenu,"tablet")?d.options.submenu.tablet:!(!KTUtil.isBreakpointDown("md")||!KTUtil.isset(d.options.submenu,"mobile"))&&d.options.submenu.mobile},isConditionalSubmenuDropdown:function(){return!(!KTUtil.isBreakpointUp("lg")||!KTUtil.isset(d.options.submenu,"desktop.state.body"))},resetSubmenuProps:function(o){var r=KTUtil.findAll(u,".menu-submenu");if(r)for(var n=0,i=r.length;n<i;n++){var s=r[0];KTUtil.css(s,"display",""),KTUtil.css(s,"overflow",""),s.hasAttribute("data-hor-direction")&&(KTUtil.removeClass(s,"menu-submenu-left"),KTUtil.removeClass(s,"menu-submenu-right"),KTUtil.addClass(s,s.getAttribute("data-hor-direction")))}},handleSubmenuDrodownHoverEnter:function(o){if("accordion"!==v.getSubmenuMode(this)&&!1!==d.resumeDropdownHover()){var r=this;"1"==r.getAttribute("data-hover")&&(r.removeAttribute("data-hover"),clearTimeout(r.getAttribute("data-timeout")),r.removeAttribute("data-timeout")),v.showSubmenuDropdown(r)}},handleSubmenuDrodownHoverExit:function(o){if(!1!==d.resumeDropdownHover()&&"accordion"!==v.getSubmenuMode(this)){var r=this,i=setTimeout(function(){"1"==r.getAttribute("data-hover")&&v.hideSubmenuDropdown(r,!0)},d.options.dropdown.timeout);r.setAttribute("data-hover","1"),r.setAttribute("data-timeout",i)}},handleSubmenuDropdownClick:function(o){if("accordion"!==v.getSubmenuMode(this)){var r=this.closest(".menu-item");!1!==v.eventTrigger("submenuToggle",this,o)&&"accordion"!=r.getAttribute("data-menu-submenu-mode")&&(!1===KTUtil.hasClass(r,"menu-item-hover")?(KTUtil.addClass(r,"menu-item-open-dropdown"),v.showSubmenuDropdown(r)):(KTUtil.removeClass(r,"menu-item-open-dropdown"),v.hideSubmenuDropdown(r,!0)),o.preventDefault())}},handleSubmenuDropdownTabClick:function(o){if("accordion"!==v.getSubmenuMode(this)){var r=this.closest(".menu-item");!1!==v.eventTrigger("submenuToggle",this,o)&&"accordion"!=r.getAttribute("data-menu-submenu-mode")&&(0==KTUtil.hasClass(r,"menu-item-hover")&&(KTUtil.addClass(r,"menu-item-open-dropdown"),v.showSubmenuDropdown(r)),o.preventDefault())}},handleLinkClick:function(o){var r=this.closest(".menu-item.menu-item-submenu");!1!==v.eventTrigger("linkClick",this,o)&&r&&"dropdown"===v.getSubmenuMode(r)&&v.hideSubmenuDropdowns()},handleSubmenuDropdownClose:function(o,r){if("accordion"!==v.getSubmenuMode(r)){var n=u.querySelectorAll(".menu-item.menu-item-submenu.menu-item-hover:not(.menu-item-tabs)");if(n.length>0&&!1===KTUtil.hasClass(r,"menu-toggle")&&0===r.querySelectorAll(".menu-toggle").length)for(var i=0,s=n.length;i<s;i++)v.hideSubmenuDropdown(n[0],!0)}},handleSubmenuAccordion:function(o,r){var n,i=r||this;if(!1!==v.eventTrigger("submenuToggle",this,o)){if("dropdown"===v.getSubmenuMode(r)&&(n=i.closest(".menu-item"))&&"accordion"!=n.getAttribute("data-menu-submenu-mode"))return void o.preventDefault();var f=i.closest(".menu-item"),h=KTUtil.child(f,".menu-submenu, .menu-inner");if(!KTUtil.hasClass(i.closest(".menu-item"),"menu-item-open-always")&&f&&h){o.preventDefault();var l=d.options.accordion.slideSpeed;if(!1===KTUtil.hasClass(f,"menu-item-open")){if(!1===d.options.accordion.expandAll){var m=i.closest(".menu-nav, .menu-subnav"),a=KTUtil.children(m,".menu-item.menu-item-open.menu-item-submenu:not(.menu-item-here):not(.menu-item-open-always)");if(m&&a)for(var E=0,x=a.length;E<x;E++){var S=a[0],A=KTUtil.child(S,".menu-submenu");A&&KTUtil.slideUp(A,l,function(){v.scrollUpdate(),KTUtil.removeClass(S,"menu-item-open")})}}KTUtil.slideDown(h,l,function(){v.scrollToItem(i),v.scrollUpdate(),v.eventTrigger("submenuToggle",h,o)}),KTUtil.addClass(f,"menu-item-open")}else KTUtil.slideUp(h,l,function(){v.scrollToItem(i),v.eventTrigger("submenuToggle",h,o)}),KTUtil.removeClass(f,"menu-item-open")}}},scrollToItem:function(o){KTUtil.isBreakpointUp("lg")&&d.options.accordion.autoScroll&&"1"!==u.getAttribute("data-menu-scroll")&&KTUtil.scrollTo(o,d.options.accordion.autoScrollSpeed)},hideSubmenuDropdown:function(o,r){r&&(KTUtil.removeClass(o,"menu-item-hover"),KTUtil.removeClass(o,"menu-item-active-tab")),o.removeAttribute("data-hover"),o.getAttribute("data-menu-toggle-class")&&KTUtil.removeClass(y,o.getAttribute("data-menu-toggle-class"));var n=o.getAttribute("data-timeout");o.removeAttribute("data-timeout"),clearTimeout(n)},hideSubmenuDropdowns:function(){var o;if(o=u.querySelectorAll('.menu-item-submenu.menu-item-hover:not(.menu-item-tabs):not([data-menu-toggle="tab"])'))for(var r=0,n=o.length;r<n;r++)v.hideSubmenuDropdown(o[r],!0)},showSubmenuDropdown:function(o){var r=u.querySelectorAll(".menu-item-submenu.menu-item-hover, .menu-item-submenu.menu-item-active-tab");if(r)for(var n=0,i=r.length;n<i;n++){var s=r[n];o!==s&&!1===s.contains(o)&&!1===o.contains(s)&&v.hideSubmenuDropdown(s,!0)}KTUtil.addClass(o,"menu-item-hover");var f=KTUtil.find(o,".menu-submenu");f&&!1===f.hasAttribute("data-hor-direction")&&(KTUtil.hasClass(f,"menu-submenu-left")?f.setAttribute("data-hor-direction","menu-submenu-left"):KTUtil.hasClass(f,"menu-submenu-right")&&f.setAttribute("data-hor-direction","menu-submenu-right")),f&&!0===KTUtil.isOffscreen(f,"left",15)?(KTUtil.removeClass(f,"menu-submenu-left"),KTUtil.addClass(f,"menu-submenu-right")):f&&!0===KTUtil.isOffscreen(f,"right",15)&&(KTUtil.removeClass(f,"menu-submenu-right"),KTUtil.addClass(f,"menu-submenu-left")),o.getAttribute("data-menu-toggle-class")&&KTUtil.addClass(y,o.getAttribute("data-menu-toggle-class"))},createSubmenuDropdownClickDropoff:function(o){var r,n=(r=KTUtil.child(o,".menu-submenu")?KTUtil.css(r,"z-index"):0)-1,i=document.createElement('<div class="menu-dropoff" style="background: transparent; position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: '+n+'"></div>');y.appendChild(i),KTUtil.addEvent(i,"click",function(s){s.stopPropagation(),s.preventDefault(),KTUtil.remove(this),v.hideSubmenuDropdown(o,!0)})},pauseDropdownHover:function(o){var r=new Date;d.pauseDropdownHoverTime=r.getTime()+o},resumeDropdownHover:function(){return(new Date).getTime()>d.pauseDropdownHoverTime},resetActiveItem:function(o){for(var r,n,i=0,s=(r=u.querySelectorAll(".menu-item-active")).length;i<s;i++){var f=r[0];KTUtil.removeClass(f,"menu-item-active"),KTUtil.hide(KTUtil.child(f,".menu-submenu"));for(var h=0,l=(n=KTUtil.parents(f,".menu-item-submenu")||[]).length;h<l;h++){var c=n[i];KTUtil.removeClass(c,"menu-item-open"),KTUtil.hide(KTUtil.child(c,".menu-submenu"))}}if(!1===d.options.accordion.expandAll&&(r=u.querySelectorAll(".menu-item-open")))for(i=0,s=r.length;i<s;i++)KTUtil.removeClass(n[0],"menu-item-open")},setActiveItem:function(o){v.resetActiveItem();for(var r=KTUtil.parents(o,".menu-item-submenu")||[],n=0,i=r.length;n<i;n++)KTUtil.addClass(r[n],"menu-item-open");KTUtil.addClass(o,"menu-item-active")},getBreadcrumbs:function(o){var r,n=[],i=KTUtil.child(o,".menu-link");n.push({text:r=KTUtil.child(i,".menu-text")?r.innerHTML:"",title:i.getAttribute("title"),href:i.getAttribute("href")});for(var s=KTUtil.parents(o,".menu-item-submenu"),f=0,h=s.length;f<h;f++){var l=KTUtil.child(s[f],".menu-link");n.push({text:r=KTUtil.child(l,".menu-text")?r.innerHTML:"",title:l.getAttribute("title"),href:l.getAttribute("href")})}return n.reverse()},getPageTitle:function(o){return KTUtil.child(o,".menu-text")?undefined.innerHTML:""},eventTrigger:function(o,r,n){for(var i=0;i<d.events.length;i++){var s=d.events[i];if(s.name==o){if(1!=s.one)return s.handler.call(this,r,n);if(0==s.fired)return d.events[i].fired=!0,s.handler.call(this,r,n)}}},addEvent:function(o,r,n){d.events.push({name:o,handler:r,one:n,fired:!1})},removeEvent:function(o){d.events[o]&&delete d.events[o]}};return d.setDefaults=function(o){g=o},d.scrollUpdate=function(){return v.scrollUpdate()},d.scrollReInit=function(){return v.scrollInit()},d.scrollTop=function(){return v.scrollTop()},d.setActiveItem=function(o){return v.setActiveItem(o)},d.reload=function(){return v.reload()},d.update=function(o){return v.update(o)},d.getBreadcrumbs=function(o){return v.getBreadcrumbs(o)},d.getPageTitle=function(o){return v.getPageTitle(o)},d.getSubmenuMode=function(o){return v.getSubmenuMode(o)},d.hideDropdown=function(o){v.hideSubmenuDropdown(o,!0)},d.hideDropdowns=function(){v.hideSubmenuDropdowns()},d.pauseDropdownHover=function(o){v.pauseDropdownHover(o)},d.resumeDropdownHover=function(){return v.resumeDropdownHover()},d.on=function(o,r){return v.addEvent(o,r)},d.off=function(o){return v.removeEvent(o)},d.one=function(o,r){return v.addEvent(o,r,!0)},v.construct.apply(d,[p]),KTUtil.addResizeHandler(function(){O&&d.reload()}),O=!0,d}};"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=KTMenu),document.addEventListener("click",function(B){var d;if(d=KTUtil.getByTagName("body")[0].querySelectorAll('.menu-nav .menu-item.menu-item-submenu.menu-item-hover:not(.menu-item-tabs)[data-menu-toggle="click"]'))for(var O=0,u=d.length;O<u;O++){var y=d[O].closest(".menu-nav").parentNode;if(y){var g=KTUtil.data(y).get("menu");if(!g||!g||"dropdown"!==g.getSubmenuMode())break;B.target!==y&&!1===y.contains(B.target)&&g.hideDropdowns()}}});var KTOffcanvas=function(B,p){var d=this,u=KTUtil.getById(B),y=KTUtil.getBody();if(u){var g={attrCustom:""},v={construct:function(o){return KTUtil.data(u).has("offcanvas")?d=KTUtil.data(u).get("offcanvas"):(v.init(o),v.build(),KTUtil.data(u).set("offcanvas",d)),d},init:function(o){d.events=[],d.options=KTUtil.deepExtend({},g,o),d.classBase=d.options.baseClass,d.attrCustom=d.options.attrCustom,d.classShown=d.classBase+"-on",d.classOverlay=d.classBase+"-overlay",d.state=KTUtil.hasClass(u,d.classShown)?"shown":"hidden"},build:function(){if(d.options.toggleBy)if("string"==typeof d.options.toggleBy)KTUtil.addEvent(KTUtil.getById(d.options.toggleBy),"click",function(n){n.preventDefault(),d.target=this,v.toggle()});else if(d.options.toggleBy&&d.options.toggleBy[0])if(d.options.toggleBy[0].target)for(var o in d.options.toggleBy)KTUtil.addEvent(KTUtil.getById(d.options.toggleBy[o].target),"click",function(n){n.preventDefault(),d.target=this,v.toggle()});else for(var o in d.options.toggleBy)KTUtil.addEvent(KTUtil.getById(d.options.toggleBy[o]),"click",function(i){i.preventDefault(),d.target=this,v.toggle()});else d.options.toggleBy&&d.options.toggleBy.target&&KTUtil.addEvent(KTUtil.getById(d.options.toggleBy.target),"click",function(n){n.preventDefault(),d.target=this,v.toggle()});var r=KTUtil.getById(d.options.closeBy);r&&KTUtil.addEvent(r,"click",function(n){n.preventDefault(),d.target=this,v.hide()})},isShown:function(){return"shown"==d.state},toggle:function(){v.eventTrigger("toggle"),"shown"==d.state?v.hide():v.show()},show:function(){"shown"!=d.state&&(v.eventTrigger("beforeShow"),v.toggleClass("show"),KTUtil.attr(y,"data-offcanvas-"+d.classBase,"on"),KTUtil.addClass(u,d.classShown),d.attrCustom.length>0&&KTUtil.attr(y,"data-offcanvas-"+d.classCustom,"on"),d.state="shown",d.options.overlay&&(d.overlay=KTUtil.insertAfter(document.createElement("DIV"),u),KTUtil.addClass(d.overlay,d.classOverlay),KTUtil.addEvent(d.overlay,"click",function(o){o.preventDefault(),v.hide(d.target)})),v.eventTrigger("afterShow"))},hide:function(){"hidden"!=d.state&&(v.eventTrigger("beforeHide"),v.toggleClass("hide"),KTUtil.removeAttr(y,"data-offcanvas-"+d.classBase),KTUtil.removeClass(u,d.classShown),d.attrCustom.length>0&&KTUtil.removeAttr(y,"data-offcanvas-"+d.attrCustom),d.state="hidden",d.options.overlay&&d.overlay&&KTUtil.remove(d.overlay),v.eventTrigger("afterHide"))},toggleClass:function(o){var n,r=KTUtil.attr(d.target,"id");if(d.options.toggleBy&&d.options.toggleBy[0]&&d.options.toggleBy[0].target)for(var i in d.options.toggleBy)d.options.toggleBy[i].target===r&&(n=d.options.toggleBy[i]);else d.options.toggleBy&&d.options.toggleBy.target&&(n=d.options.toggleBy);if(n){var s=KTUtil.getById(n.target);"show"===o&&KTUtil.addClass(s,n.state),"hide"===o&&KTUtil.removeClass(s,n.state)}},eventTrigger:function(o,r){for(var n=0;n<d.events.length;n++){var i=d.events[n];if(i.name==o){if(1!=i.one)return i.handler.call(this,d,r);if(0==i.fired)return d.events[n].fired=!0,i.handler.call(this,d,r)}}},addEvent:function(o,r,n){d.events.push({name:o,handler:r,one:n,fired:!1})}};return d.setDefaults=function(o){g=o},d.isShown=function(){return v.isShown()},d.hide=function(){return v.hide()},d.show=function(){return v.show()},d.on=function(o,r){return v.addEvent(o,r)},d.one=function(o,r){return v.addEvent(o,r,!0)},v.construct.apply(d,[p]),d}};"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=KTOffcanvas);var KTHeader=function(B,p){var d=this,u=KTUtil.getById(B),y=KTUtil.getBody();if(void 0!==u){var g={offset:{desktop:!0,tabletAndMobile:!0},releseOnReverse:{desktop:!1,tabletAndMobile:!1}},v={construct:function(o){return KTUtil.data(u).has("header")?d=KTUtil.data(u).get("header"):(v.init(o),v.build(),KTUtil.data(u).set("header",d)),d},init:function(o){d.events=[],d.options=KTUtil.deepExtend({},g,o)},build:function(){var o=!0,r=0;window.addEventListener("scroll",function(){var i,n=0;KTUtil.isBreakpointDown("lg")&&!1===d.options.offset.tabletAndMobile||KTUtil.isBreakpointUp("lg")&&!1===d.options.offset.desktop||(KTUtil.isBreakpointUp("lg")?n=d.options.offset.desktop:KTUtil.isBreakpointDown("lg")&&(n=d.options.offset.tabletAndMobile),i=KTUtil.getScrollTop(),KTUtil.isBreakpointDown("lg")&&d.options.releseOnReverse.tabletAndMobile||KTUtil.isBreakpointUp("lg")&&d.options.releseOnReverse.desktop?(i>n&&r<i?(!1===y.hasAttribute("data-header-scroll")&&y.setAttribute("data-header-scroll","on"),o&&(v.eventTrigger("scrollOn",d),o=!1)):(!0===y.hasAttribute("data-header-scroll")&&y.removeAttribute("data-header-scroll"),0==o&&(v.eventTrigger("scrollOff",d),o=!0)),r=i):i>n?(!1===y.hasAttribute("data-header-scroll")&&y.setAttribute("data-header-scroll","on"),o&&(v.eventTrigger("scrollOn",d),o=!1)):(!0===y.hasAttribute("data-header-scroll")&&y.removeAttribute("data-header-scroll"),0==o&&(v.eventTrigger("scrollOff",d),o=!0)))})},eventTrigger:function(o,r){for(var n=0;n<d.events.length;n++){var i=d.events[n];if(i.name==o){if(1!=i.one)return i.handler.call(this,d,r);if(0==i.fired)return d.events[n].fired=!0,i.handler.call(this,d,r)}}},addEvent:function(o,r,n){d.events.push({name:o,handler:r,one:n,fired:!1})}};return d.setDefaults=function(o){g=o},d.on=function(o,r){return v.addEvent(o,r)},v.construct.apply(d,[p]),d}};"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=KTHeader);var KTScrolltop=function(B,p){var d=this,u=KTUtil.getById(B),y=KTUtil.getBody();if(u){var g={offset:300,speed:6e3},v={construct:function(o){return KTUtil.data(u).has("scrolltop")?d=KTUtil.data(u).get("scrolltop"):(v.init(o),v.build(),KTUtil.data(u).set("scrolltop",d)),d},init:function(o){d.events=[],d.options=KTUtil.deepExtend({},g,o)},build:function(){window.addEventListener("scroll",function(){KTUtil.throttle(void 0,function(){v.handle()},200)}),KTUtil.addEvent(u,"click",v.scroll)},handle:function(){KTUtil.getScrollTop()>d.options.offset?!1===y.hasAttribute("data-scrolltop")&&y.setAttribute("data-scrolltop","on"):!0===y.hasAttribute("data-scrolltop")&&y.removeAttribute("data-scrolltop")},scroll:function(o){o.preventDefault(),KTUtil.scrollTop(0,d.options.speed)},eventTrigger:function(o,r){for(var n=0;n<d.events.length;n++){var i=d.events[n];if(i.name==o){if(1!=i.one)return i.handler.call(this,d,r);if(0==i.fired)return d.events[n].fired=!0,i.handler.call(this,d,r)}}},addEvent:function(o,r,n){d.events.push({name:o,handler:r,one:n,fired:!1})}};return d.setDefaults=function(o){g=o},d.on=function(o,r){return v.addEvent(o,r)},d.one=function(o,r){return v.addEvent(o,r,!0)},v.construct.apply(d,[p]),d}};"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=KTScrolltop);var KTToggle=function(B,p){var d=this,u=KTUtil.getById(B);if(u){var y={targetToggleMode:"class"},g={construct:function(v){return KTUtil.data(u).has("toggle")?d=KTUtil.data(u).get("toggle"):(g.init(v),g.build(),KTUtil.data(u).set("toggle",d)),d},init:function(v){d.element=u,d.events=[],d.options=KTUtil.deepExtend({},y,v),d.target=KTUtil.getById(v.target),d.targetState=d.options.targetState,d.toggleState=d.options.toggleState,d.state="class"==d.options.targetToggleMode?KTUtil.hasClasses(d.target,d.targetState)?"on":"off":KTUtil.hasAttr(d.target,"data-"+d.targetState)?KTUtil.attr(d.target,"data-"+d.targetState):"off"},build:function(){KTUtil.addEvent(u,"mouseup",g.toggle)},toggle:function(v){return g.eventTrigger("beforeToggle"),"off"==d.state?g.toggleOn():g.toggleOff(),g.eventTrigger("afterToggle"),v.preventDefault(),d},toggleOn:function(){return g.eventTrigger("beforeOn"),"class"==d.options.targetToggleMode?KTUtil.addClass(d.target,d.targetState):KTUtil.attr(d.target,"data-"+d.targetState,"on"),d.toggleState&&KTUtil.addClass(u,d.toggleState),d.state="on",g.eventTrigger("afterOn"),g.eventTrigger("toggle"),d},toggleOff:function(){return g.eventTrigger("beforeOff"),"class"==d.options.targetToggleMode?KTUtil.removeClass(d.target,d.targetState):KTUtil.removeAttr(d.target,"data-"+d.targetState),d.toggleState&&KTUtil.removeClass(u,d.toggleState),d.state="off",g.eventTrigger("afterOff"),g.eventTrigger("toggle"),d},eventTrigger:function(v){for(var o=0;o<d.events.length;o++){var r=d.events[o];if(r.name==v){if(1!=r.one)return r.handler.call(this,d);if(0==r.fired)return d.events[o].fired=!0,r.handler.call(this,d)}}},addEvent:function(v,o,r){return d.events.push({name:v,handler:o,one:r,fired:!1}),d}};return d.setDefaults=function(v){y=v},d.getState=function(){return d.state},d.toggle=function(){return g.toggle()},d.toggleOn=function(){return g.toggleOn()},d.toggleOff=function(){return g.toggleOff()},d.on=function(v,o){return g.addEvent(v,o)},d.one=function(v,o){return g.addEvent(v,o,!0)},g.construct.apply(d,[p]),d}};function _typeof(B){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(B)}function _instanceof(B,p){return null!=p&&"undefined"!=typeof Symbol&&p[Symbol.hasInstance]?!!p[Symbol.hasInstance](B):B instanceof p}"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=KTToggle),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(B){var d=this;if(!document.documentElement.contains(this))return null;do{if(d.matches(B))return d;d=d.parentElement}while(null!==d);return null}),function(B){for(var p=0;p<B.length;p++)!window[B[p]]||"remove"in window[B[p]].prototype||(window[B[p]].prototype.remove=function(){this.parentNode.removeChild(this)})}(["Element","CharacterData","DocumentType"]),function(){for(var B=0,p=["webkit","moz"],d=0;d<p.length&&!window.requestAnimationFrame;++d)window.requestAnimationFrame=window[p[d]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[p[d]+"CancelAnimationFrame"]||window[p[d]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(O){var u=(new Date).getTime(),y=Math.max(0,16-(u-B)),g=window.setTimeout(function(){O(u+y)},y);return B=u+y,g}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(O){clearTimeout(O)})}(),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(p){p.hasOwnProperty("prepend")||Object.defineProperty(p,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var O=Array.prototype.slice.call(arguments),u=document.createDocumentFragment();O.forEach(function(y){var g=_instanceof(y,Node);u.appendChild(g?y:document.createTextNode(String(y)))}),this.insertBefore(u,this.firstChild)}})}),window.KTUtilElementDataStore={},window.KTUtilElementDataStoreID=0,window.KTUtilDelegatedEventHandlers={};var KTUtil=function(){var B=[],p={sm:544,md:768,lg:992,xl:1200};return{init:function(u){u&&u.breakpoints&&(p=u.breakpoints),window.addEventListener("resize",function(){KTUtil.throttle(void 0,function(){!function(){for(var v=0;v<B.length;v++)B[v].call()}()},200)})},addResizeHandler:function(u){B.push(u)},removeResizeHandler:function(u){for(var y=0;y<B.length;y++)u===B[y]&&delete B[y]},runResizeHandlers:function(){_runResizeHandlers()},resize:function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var u=window.document.createEvent("UIEvents");u.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(u)}},getURLParam:function(u){var g,v,o=window.location.search.substring(1).split("&");for(g=0;g<o.length;g++)if((v=o[g].split("="))[0]==u)return unescape(v[1]);return null},isMobileDevice:function(){return this.getViewPort().width<this.getBreakpoint("lg")},isDesktopDevice:function(){return!KTUtil.isMobileDevice()},getViewPort:function(){var u=window,y="inner";return"innerWidth"in window||(y="client",u=document.documentElement||document.body),{width:u[y+"Width"],height:u[y+"Height"]}},isInResponsiveRange:function(u){var y=this.getViewPort().width;return"general"==u||"desktop"==u&&y>=this.getBreakpoint("lg")+1||"tablet"==u&&y>=this.getBreakpoint("md")+1&&y<this.getBreakpoint("lg")||"mobile"==u&&y<=this.getBreakpoint("md")||"desktop-and-tablet"==u&&y>=this.getBreakpoint("md")+1||"tablet-and-mobile"==u&&y<=this.getBreakpoint("lg")||"minimal-desktop-and-below"==u&&y<=this.getBreakpoint("xl")},isBreakpointUp:function(u){return this.getViewPort().width>=this.getBreakpoint(u)},isBreakpointDown:function(u){return this.getViewPort().width<this.getBreakpoint(u)},getUniqueID:function(u){return u+Math.floor(Math.random()*(new Date).getTime())},getBreakpoint:function(u){return p[u]},isset:function(u,y){var g;if(-1!==(y=y||"").indexOf("["))throw new Error("Unsupported object path notation.");y=y.split(".");do{if(void 0===u||(g=y.shift(),!u.hasOwnProperty(g)))return!1;u=u[g]}while(y.length);return!0},getHighestZindex:function(u){for(var y,g;u&&u!==document;){if(("absolute"===(y=KTUtil.css(u,"position"))||"relative"===y||"fixed"===y)&&(g=parseInt(KTUtil.css(u,"z-index")),!isNaN(g)&&0!==g))return g;u=u.parentNode}return null},hasFixedPositionedParent:function(u){for(;u&&u!==document;){if("fixed"===KTUtil.css(u,"position"))return!0;u=u.parentNode}return!1},sleep:function(u){for(var y=(new Date).getTime(),g=0;g<1e7&&!((new Date).getTime()-y>u);g++);},getRandomInt:function(u,y){return Math.floor(Math.random()*(y-u+1))+u},isAngularVersion:function(){return void 0!==window.Zone},deepExtend:function(u){u=u||{};for(var y=1;y<arguments.length;y++){var g=arguments[y];if(g)for(var v in g)g.hasOwnProperty(v)&&(u[v]="object"===_typeof(g[v])?KTUtil.deepExtend(u[v],g[v]):g[v])}return u},extend:function(u){u=u||{};for(var y=1;y<arguments.length;y++)if(arguments[y])for(var g in arguments[y])arguments[y].hasOwnProperty(g)&&(u[g]=arguments[y][g]);return u},getById:function(u){return"string"==typeof u?document.getElementById(u):u},getByTag:function(u){return document.getElementsByTagName(u)},getByTagName:function(u){return document.getElementsByTagName(u)},getByClass:function(u){return document.getElementsByClassName(u)},getBody:function(){return document.getElementsByTagName("body")[0]},hasClasses:function(u,y){if(u){for(var g=y.split(" "),v=0;v<g.length;v++)if(0==KTUtil.hasClass(u,KTUtil.trim(g[v])))return!1;return!0}},hasClass:function(u,y){if(u)return u.classList?u.classList.contains(y):new RegExp("\\b"+y+"\\b").test(u.className)},addClass:function(u,y){if(u&&void 0!==y){var g=y.split(" ");if(u.classList)for(var v=0;v<g.length;v++)g[v]&&g[v].length>0&&u.classList.add(KTUtil.trim(g[v]));else if(!KTUtil.hasClass(u,y))for(var o=0;o<g.length;o++)u.className+=" "+KTUtil.trim(g[o])}},removeClass:function(u,y){if(u&&void 0!==y){var g=y.split(" ");if(u.classList)for(var v=0;v<g.length;v++)u.classList.remove(KTUtil.trim(g[v]));else if(KTUtil.hasClass(u,y))for(var o=0;o<g.length;o++)u.className=u.className.replace(new RegExp("\\b"+KTUtil.trim(g[o])+"\\b","g"),"")}},triggerCustomEvent:function(u,y,g){var v;window.CustomEvent?v=new CustomEvent(y,{detail:g}):(v=document.createEvent("CustomEvent")).initCustomEvent(y,!0,!0,g),u.dispatchEvent(v)},triggerEvent:function(u,y){var g;if(u.ownerDocument)g=u.ownerDocument;else{if(9!=u.nodeType)throw new Error("Invalid node passed to fireEvent: "+u.id);g=u}if(u.dispatchEvent){var v="";switch(y){case"click":case"mouseenter":case"mouseleave":case"mousedown":case"mouseup":v="MouseEvents";break;case"focus":case"change":case"blur":case"select":v="HTMLEvents";break;default:throw"fireEvent: Couldn't find an event class for event '"+y+"'."}(o=g.createEvent(v)).initEvent(y,"change"!=y,!0),o.synthetic=!0,u.dispatchEvent(o,!0)}else if(u.fireEvent){var o;(o=g.createEventObject()).synthetic=!0,u.fireEvent("on"+y,o)}},index:function(u){for(var y=u.parentNode.children,g=0;g<y.length;g++)if(y[g]==u)return g},trim:function(u){return u.trim()},eventTriggered:function(u){return!!u.currentTarget.dataset.triggered||(u.currentTarget.dataset.triggered=!0,!1)},remove:function(u){u&&u.parentNode&&u.parentNode.removeChild(u)},find:function(u,y){if(u=KTUtil.getById(u))return u.querySelector(y)},findAll:function(u,y){if(u=KTUtil.getById(u))return u.querySelectorAll(y)},insertAfter:function(u,y){return y.parentNode.insertBefore(u,y.nextSibling)},parents:function(u,y){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(v){for(var o=(this.document||this.ownerDocument).querySelectorAll(v),r=o.length;--r>=0&&o.item(r)!==this;);return r>-1});for(var g=[];u&&u!==document;u=u.parentNode)y?u.matches(y)&&g.push(u):g.push(u);return g},children:function(u,y,g){if(u&&u.childNodes){for(var v=[],o=0,r=u.childNodes.length;o<r;++o)1==u.childNodes[o].nodeType&&KTUtil.matches(u.childNodes[o],y,g)&&v.push(u.childNodes[o]);return v}},child:function(u,y,g){var v=KTUtil.children(u,y,g);return v?v[0]:null},matches:function(u,y,g){var v=Element.prototype;return!(!u||!u.tagName)&&(v.matches||v.webkitMatchesSelector||v.mozMatchesSelector||v.msMatchesSelector||function(r){return-1!==[].indexOf.call(document.querySelectorAll(r),this)}).call(u,y)},data:function(u){return{set:function(g,v){!u||(void 0===u.customDataTag&&(window.KTUtilElementDataStoreID++,u.customDataTag=window.KTUtilElementDataStoreID),void 0===window.KTUtilElementDataStore[u.customDataTag]&&(window.KTUtilElementDataStore[u.customDataTag]={}),window.KTUtilElementDataStore[u.customDataTag][g]=v)},get:function(g){if(u)return void 0===u.customDataTag?null:this.has(g)?window.KTUtilElementDataStore[u.customDataTag][g]:null},has:function(g){return!(!u||void 0===u.customDataTag||!window.KTUtilElementDataStore[u.customDataTag]||!window.KTUtilElementDataStore[u.customDataTag][g])},remove:function(g){u&&this.has(g)&&delete window.KTUtilElementDataStore[u.customDataTag][g]}}},outerWidth:function(u,y){var g;return!0===y?(g=parseFloat(u.offsetWidth),g+=parseFloat(KTUtil.css(u,"margin-left"))+parseFloat(KTUtil.css(u,"margin-right")),parseFloat(g)):g=parseFloat(u.offsetWidth)},offset:function(u){var y,g;if(u)return u.getClientRects().length?{top:(y=u.getBoundingClientRect()).top+(g=u.ownerDocument.defaultView).pageYOffset,left:y.left+g.pageXOffset}:{top:0,left:0}},height:function(u){return KTUtil.css(u,"height")},outerHeight:function(u){var v,y=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=u.offsetHeight;return y&&(v=getComputedStyle(u),g+=parseInt(v.marginTop)+parseInt(v.marginBottom)),g},visible:function(u){return!(0===u.offsetWidth&&0===u.offsetHeight)},attr:function(u,y,g){if(null!=u){if(void 0===g)return u.getAttribute(y);u.setAttribute(y,g)}},hasAttr:function(u,y){if(null!=u)return!!u.getAttribute(y)},removeAttr:function(u,y){null!=u&&u.removeAttribute(y)},animate:function(u,y,g,v,i,r){var n={linear:function(m,a,E,x){return E*m/x+a}};if(i=n.linear,"number"==typeof u&&"number"==typeof y&&"number"==typeof g&&"function"==typeof v){"function"!=typeof r&&(r=function(){});var s=window.requestAnimationFrame||function(m){window.setTimeout(m,20)},h=y-u;v(u);var c=window.performance&&window.performance.now?window.performance.now():+new Date;s(function l(m){var a=(m||+new Date)-c;a>=0&&v(i(a,u,h,g)),a>=0&&a>=g?(v(y),r()):s(l)})}},actualCss:function(u,y,g){var o,v="";if(!1!==_instanceof(u,HTMLElement))return u.getAttribute("kt-hidden-"+y)&&!1!==g?parseFloat(u.getAttribute("kt-hidden-"+y)):(v=u.style.cssText,u.style.cssText="position: absolute; visibility: hidden; display: block;","width"==y?o=u.offsetWidth:"height"==y&&(o=u.offsetHeight),u.style.cssText=v,u.setAttribute("kt-hidden-"+y,o),parseFloat(o))},actualHeight:function(u,y){return KTUtil.actualCss(u,"height",y)},actualWidth:function(u,y){return KTUtil.actualCss(u,"width",y)},getScroll:function(u,y){return y="scroll"+y,u==window||u==document?self["scrollTop"==y?"pageYOffset":"pageXOffset"]||browserSupportsBoxModel&&document.documentElement[y]||document.body[y]:u[y]},css:function(u,y,g){if(u)if(void 0!==g)u.style[y]=g;else{var v=(u.ownerDocument||document).defaultView;if(v&&v.getComputedStyle)return y=y.replace(/([A-Z])/g,"-$1").toLowerCase(),v.getComputedStyle(u,null).getPropertyValue(y);if(u.currentStyle)return y=y.replace(/\-(\w)/g,function(o,r){return r.toUpperCase()}),/^\d+(em|pt|%|ex)?$/i.test(g=u.currentStyle[y])?(o=g,r=u.style.left,n=u.runtimeStyle.left,u.runtimeStyle.left=u.currentStyle.left,u.style.left=o||0,o=u.style.pixelLeft+"px",u.style.left=r,u.runtimeStyle.left=n,o):g}var o,r,n},slide:function(u,y,g,v,o){if(!(!u||"up"==y&&!1===KTUtil.visible(u)||"down"==y&&!0===KTUtil.visible(u))){g=g||600;var r=KTUtil.actualHeight(u),n=!1,i=!1;KTUtil.css(u,"padding-top")&&!0!==KTUtil.data(u).has("slide-padding-top")&&KTUtil.data(u).set("slide-padding-top",KTUtil.css(u,"padding-top")),KTUtil.css(u,"padding-bottom")&&!0!==KTUtil.data(u).has("slide-padding-bottom")&&KTUtil.data(u).set("slide-padding-bottom",KTUtil.css(u,"padding-bottom")),KTUtil.data(u).has("slide-padding-top")&&(n=parseInt(KTUtil.data(u).get("slide-padding-top"))),KTUtil.data(u).has("slide-padding-bottom")&&(i=parseInt(KTUtil.data(u).get("slide-padding-bottom"))),"up"==y?(u.style.cssText="display: block; overflow: hidden;",n&&KTUtil.animate(0,n,g,function(s){u.style.paddingTop=n-s+"px"},"linear"),i&&KTUtil.animate(0,i,g,function(s){u.style.paddingBottom=i-s+"px"},"linear"),KTUtil.animate(0,r,g,function(s){u.style.height=r-s+"px"},"linear",function(){u.style.height="",u.style.display="none","function"==typeof v&&v()})):"down"==y&&(u.style.cssText="display: block; overflow: hidden;",n&&KTUtil.animate(0,n,g,function(s){u.style.paddingTop=s+"px"},"linear",function(){u.style.paddingTop=""}),i&&KTUtil.animate(0,i,g,function(s){u.style.paddingBottom=s+"px"},"linear",function(){u.style.paddingBottom=""}),KTUtil.animate(0,r,g,function(s){u.style.height=s+"px"},"linear",function(){u.style.height="",u.style.display="",u.style.overflow="","function"==typeof v&&v()}))}},slideUp:function(u,y,g){KTUtil.slide(u,"up",y,g)},slideDown:function(u,y,g){KTUtil.slide(u,"down",y,g)},show:function(u,y){void 0!==u&&(u.style.display=y||"block")},hide:function(u){void 0!==u&&(u.style.display="none")},addEvent:function(u,y,g,v){null!=u&&u.addEventListener(y,g)},removeEvent:function(u,y,g){null!==u&&u.removeEventListener(y,g)},on:function(u,y,g,v){if(y){var o=KTUtil.getUniqueID("event");return window.KTUtilDelegatedEventHandlers[o]=function(r){for(var n=u.querySelectorAll(y),i=r.target;i&&i!==u;){for(var s=0,f=n.length;s<f;s++)i===n[s]&&v.call(i,r);i=i.parentNode}},KTUtil.addEvent(u,g,window.KTUtilDelegatedEventHandlers[o]),o}},off:function(u,y,g){!u||!window.KTUtilDelegatedEventHandlers[g]||(KTUtil.removeEvent(u,y,window.KTUtilDelegatedEventHandlers[g]),delete window.KTUtilDelegatedEventHandlers[g])},one:function(u,y,g){u.addEventListener(y,function v(o){return o.target&&o.target.removeEventListener&&o.target.removeEventListener(o.type,v),u&&u.removeEventListener&&o.currentTarget.removeEventListener(o.type,v),g(o)})},hash:function(u){var g,y=0;if(0===u.length)return y;for(g=0;g<u.length;g++)y=(y<<5)-y+u.charCodeAt(g),y|=0;return y},animateClass:function(u,y,g){var v,o={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd",msAnimation:"msAnimationEnd"};for(var r in o)void 0!==u.style[r]&&(v=o[r]);KTUtil.addClass(u,"animated "+y),KTUtil.one(u,v,function(){KTUtil.removeClass(u,"animated "+y)}),g&&KTUtil.one(u,v,g)},transitionEnd:function(u,y){var g,v={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"mozTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"msTransitionEnd"};for(var o in v)void 0!==u.style[o]&&(g=v[o]);KTUtil.one(u,g,y)},animationEnd:function(u,y){var g,v={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd",msAnimation:"msAnimationEnd"};for(var o in v)void 0!==u.style[o]&&(g=v[o]);KTUtil.one(u,g,y)},animateDelay:function(u,y){for(var g=["webkit-","moz-","ms-","o-",""],v=0;v<g.length;v++)KTUtil.css(u,g[v]+"animation-delay",y)},animateDuration:function(u,y){for(var g=["webkit-","moz-","ms-","o-",""],v=0;v<g.length;v++)KTUtil.css(u,g[v]+"animation-duration",y)},scrollTo:function(u,y,v){v=v||500;var o=u?KTUtil.offset(u).top:0,r=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;y&&(r+=y),KTUtil.animate(r,o,v,function(s){document.documentElement.scrollTop=s,document.body.parentNode.scrollTop=s,document.body.scrollTop=s})},scrollTop:function(u,y){KTUtil.scrollTo(null,u,y)},isArray:function(u){return u&&Array.isArray(u)},ready:function(u){(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?u():document.addEventListener("DOMContentLoaded",u)},isEmpty:function(u){for(var y in u)if(u.hasOwnProperty(y))return!1;return!0},numberString:function(u){for(var y=(u+="").split("."),g=y[0],v=y.length>1?"."+y[1]:"",o=/(\d+)(\d{3})/;o.test(g);)g=g.replace(o,"$1,$2");return g+v},detectIE:function(){var u=window.navigator.userAgent,y=u.indexOf("MSIE ");if(y>0)return parseInt(u.substring(y+5,u.indexOf(".",y)),10);if(u.indexOf("Trident/")>0){var v=u.indexOf("rv:");return parseInt(u.substring(v+3,u.indexOf(".",v)),10)}var o=u.indexOf("Edge/");return o>0&&parseInt(u.substring(o+5,u.indexOf(".",o)),10)},isRTL:function(){var u=KTUtil.getByTagName("html")[0];if(u)return"rtl"==KTUtil.attr(u,"direction")},scrollInit:function(u,y){function v(){var o,r,n=u.getAttributeNames();n.length>0&&n.forEach(function(s){if(/^data-.*/g.test(s)&&0==["scroll","height","mobile-height"].includes(f)){var f=s.replace("data-","").toLowerCase().replace(/(?:[\s-])\w/g,function(h){return h.replace("-","").toUpperCase()});y[f]=KTUtil.filterBoolean(u.getAttribute(s))}}),!1!==(r=_instanceof(y.height,Function)?y.height.call():y.mobileHeight?parseInt(y.mobileHeight):parseInt(y.height))?(r=parseInt(r),(y.mobileNativeScroll||y.disableForMobile)&&KTUtil.isBreakpointDown("lg")?(o=KTUtil.data(u).get("ps"))?(y.resetHeightOnDestroy?KTUtil.css(u,"height","auto"):(KTUtil.css(u,"overflow","auto"),r>0&&KTUtil.css(u,"height",r+"px")),o.destroy(),o=KTUtil.data(u).remove("ps")):r>0&&(KTUtil.css(u,"overflow","auto"),KTUtil.css(u,"height",r+"px")):(r>0&&KTUtil.css(u,"height",r+"px"),y.desktopNativeScroll?KTUtil.css(u,"overflow","auto"):("true"==KTUtil.attr(u,"data-window-scroll")&&(y.windowScroll=!0),(o=KTUtil.data(u).get("ps"))?o.update():(KTUtil.css(u,"overflow","hidden"),KTUtil.addClass(u,"scroll"),o=new PerfectScrollbar(u,y),KTUtil.data(u).set("ps",o)),KTUtil.attr(u,"id")))):KTUtil.scrollDestroy(u,!0)}u&&(y=KTUtil.deepExtend({},{wheelSpeed:.5,swipeEasing:!0,wheelPropagation:!1,minScrollbarLength:40,maxScrollbarLength:300,suppressScrollX:!0},y),v(),y.handleWindowResize&&KTUtil.addResizeHandler(function(){v()}))},scrollUpdate:function(u){var y=KTUtil.data(u).get("ps");y&&y.update()},scrollUpdateAll:function(u){for(var y=KTUtil.findAll(u,".ps"),g=0,v=y.length;g<v;g++)KTUtil.scrollUpdate(y[g])},scrollDestroy:function(u,y){var g=KTUtil.data(u).get("ps");g&&(g.destroy(),g=KTUtil.data(u).remove("ps")),u&&y&&(u.style.setProperty("overflow",""),u.style.setProperty("height",""))},filterBoolean:function(u){return!0===u||"true"===u||!1!==u&&"false"!==u&&u},setHTML:function(u,y){u.innerHTML=y},getHTML:function(u){if(u)return u.innerHTML},getDocumentHeight:function(){var u=document.body,y=document.documentElement;return Math.max(u.scrollHeight,u.offsetHeight,y.clientHeight,y.scrollHeight,y.offsetHeight)},getScrollTop:function(){return(document.scrollingElement||document.documentElement).scrollTop},colorDarken:function(u,y){var g=function(o,r){var n=parseInt(o,16)-r,i=n<0?0:n;return i.toString(16).length>1?i.toString(16):"0".concat(i.toString(16))};return u=u.indexOf("#")>=0?u.substring(1,u.length):u,y=parseInt(255*y/100),"#".concat(g(u.substring(0,2),y)).concat(g(u.substring(2,4),y)).concat(g(u.substring(4,6),y))},colorLighten:function(u,y){var g=function(o,r){var n=parseInt(o,16)+r,i=n>255?255:n;return i.toString(16).length>1?i.toString(16):"0".concat(i.toString(16))};return u=u.indexOf("#")>=0?u.substring(1,u.length):u,y=parseInt(255*y/100),"#".concat(g(u.substring(0,2),y)).concat(g(u.substring(2,4),y)).concat(g(u.substring(4,6),y))},throttle:function(u,y,g){u||(u=setTimeout(function(){y(),u=void 0},g))},debounce:function(u,y,g){clearTimeout(u),u=setTimeout(y,g)},btnWait:function(u,y,g){var v=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(u&&(v&&KTUtil.attr(u,"disabled",!0),y&&(KTUtil.addClass(u,y),KTUtil.attr(u,"wait-class",y)),g)){var o=KTUtil.find(u,".btn-caption");o?(KTUtil.data(o).set("caption",KTUtil.getHTML(o)),KTUtil.setHTML(o,g)):(KTUtil.data(u).set("caption",KTUtil.getHTML(u)),KTUtil.setHTML(u,g))}},btnRelease:function(u){if(u){KTUtil.removeAttr(u,"disabled"),KTUtil.hasAttr(u,"wait-class")&&KTUtil.removeClass(u,KTUtil.attr(u,"wait-class"));var y=KTUtil.find(u,".btn-caption");y&&KTUtil.data(y).has("caption")?KTUtil.setHTML(y,KTUtil.data(y).get("caption")):KTUtil.data(u).has("caption")&&KTUtil.setHTML(u,KTUtil.data(u).get("caption"))}},isOffscreen:function(u,y){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=KTUtil.getViewPort().width,o=KTUtil.getViewPort().height,r=KTUtil.offset(u).top,n=KTUtil.outerHeight(u)+g,i=KTUtil.offset(u).left,s=KTUtil.outerWidth(u)+g;if("bottom"==y){if(o<r+n)return!0;if(o>r+1.5*n)return!0}if("top"==y){if(r<0)return!0;if(r>n)return!0}return"left"==y&&i<0||"right"==y&&v<i+s}}}();"undefined"!=typeof module&&void 0!==module.exports&&(module.exports=KTUtil),KTUtil.ready(function(){"undefined"!=typeof KTAppSettings?KTUtil.init(KTAppSettings):KTUtil.init()}),window.onload=function(){var B=KTUtil.getByTagName("body");B&&B[0]&&KTUtil.removeClass(B[0],"page-loading")};