@uxland/primary-shell 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,21 @@
1
- (function(Ot,W){typeof exports=="object"&&typeof module<"u"?W(exports):typeof define=="function"&&define.amd?define(["exports"],W):(Ot=typeof globalThis<"u"?globalThis:Ot||self,W(Ot["@uxland/primary-shell"]={}))})(this,function(exports){"use strict";/**
1
+ (function(Ht,W){typeof exports=="object"&&typeof module<"u"?W(exports):typeof define=="function"&&define.amd?define(["exports"],W):(Ht=typeof globalThis<"u"?globalThis:Ht||self,W(Ht["@uxland/primary-shell"]={}))})(this,function(exports){"use strict";var Ht;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(W){return W&&W.__esModule&&Object.prototype.hasOwnProperty.call(W,"default")?W.default:W}/*! *****************************************************************************
2
+ Copyright (C) Microsoft. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */var Reflect$1;(function(W){(function(O){var U=typeof globalThis=="object"?globalThis:typeof commonjsGlobal=="object"?commonjsGlobal:typeof self=="object"?self:typeof this=="object"?this:X(),G=Y(W);typeof U.Reflect<"u"&&(G=Y(U.Reflect,G)),O(G,U),typeof U.Reflect>"u"&&(U.Reflect=W);function Y(se,ee){return function(ne,Q){Object.defineProperty(se,ne,{configurable:!0,writable:!0,value:Q}),ee&&ee(ne,Q)}}function K(){try{return Function("return this;")()}catch{}}function J(){try{return(0,eval)("(function() { return this; })()")}catch{}}function X(){return K()||J()}})(function(O,U){var G=Object.prototype.hasOwnProperty,Y=typeof Symbol=="function",K=Y&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",J=Y&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",X=typeof Object.create=="function",se={__proto__:[]}instanceof Array,ee=!X&&!se,ne={create:X?function(){return $t(Object.create(null))}:se?function(){return $t({__proto__:null})}:function(){return $t({})},has:ee?function(Me,Fe){return G.call(Me,Fe)}:function(Me,Fe){return Fe in Me},get:ee?function(Me,Fe){return G.call(Me,Fe)?Me[Fe]:void 0}:function(Me,Fe){return Me[Fe]}},Q=Object.getPrototypeOf(Function),te=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Dt(),ie=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:kt(),le=typeof WeakMap=="function"?WeakMap:Zt(),oe=Y?Symbol.for("@reflect-metadata:registry"):void 0,re=ut(),ae=ht(re);function ce(Me,Fe,We,Je){if(ke(We)){if(!nt(Me))throw new TypeError;if(!dt(Fe))throw new TypeError;return be(Me,Fe)}else{if(!nt(Me))throw new TypeError;if(!Ne(Fe))throw new TypeError;if(!Ne(Je)&&!ke(Je)&&!qe(Je))throw new TypeError;return qe(Je)&&(Je=void 0),We=He(We),ve(Me,Fe,We,Je)}}O("decorate",ce);function ue(Me,Fe){function We(Je,ot){if(!Ne(Je))throw new TypeError;if(!ke(ot)&&!ft(ot))throw new TypeError;Ge(Me,Fe,Je,ot)}return We}O("metadata",ue);function de(Me,Fe,We,Je){if(!Ne(We))throw new TypeError;return ke(Je)||(Je=He(Je)),Ge(Me,Fe,We,Je)}O("defineMetadata",de);function he(Me,Fe,We){if(!Ne(Fe))throw new TypeError;return ke(We)||(We=He(We)),$e(Me,Fe,We)}O("hasMetadata",he);function me(Me,Fe,We){if(!Ne(Fe))throw new TypeError;return ke(We)||(We=He(We)),Te(Me,Fe,We)}O("hasOwnMetadata",me);function ge(Me,Fe,We){if(!Ne(Fe))throw new TypeError;return ke(We)||(We=He(We)),Ce(Me,Fe,We)}O("getMetadata",ge);function we(Me,Fe,We){if(!Ne(Fe))throw new TypeError;return ke(We)||(We=He(We)),Ie(Me,Fe,We)}O("getOwnMetadata",we);function Se(Me,Fe){if(!Ne(Me))throw new TypeError;return ke(Fe)||(Fe=He(Fe)),De(Me,Fe)}O("getMetadataKeys",Se);function _e(Me,Fe){if(!Ne(Me))throw new TypeError;return ke(Fe)||(Fe=He(Fe)),Oe(Me,Fe)}O("getOwnMetadataKeys",_e);function fe(Me,Fe,We){if(!Ne(Fe))throw new TypeError;if(ke(We)||(We=He(We)),!Ne(Fe))throw new TypeError;ke(We)||(We=He(We));var Je=Ct(Fe,We,!1);return ke(Je)?!1:Je.OrdinaryDeleteMetadata(Me,Fe,We)}O("deleteMetadata",fe);function be(Me,Fe){for(var We=Me.length-1;We>=0;--We){var Je=Me[We],ot=Je(Fe);if(!ke(ot)&&!qe(ot)){if(!dt(ot))throw new TypeError;Fe=ot}}return Fe}function ve(Me,Fe,We,Je){for(var ot=Me.length-1;ot>=0;--ot){var Rt=Me[ot],qt=Rt(Fe,We,Je);if(!ke(qt)&&!qe(qt)){if(!Ne(qt))throw new TypeError;Je=qt}}return Je}function $e(Me,Fe,We){var Je=Te(Me,Fe,We);if(Je)return!0;var ot=et(Fe);return qe(ot)?!1:$e(Me,ot,We)}function Te(Me,Fe,We){var Je=Ct(Fe,We,!1);return ke(Je)?!1:Be(Je.OrdinaryHasOwnMetadata(Me,Fe,We))}function Ce(Me,Fe,We){var Je=Te(Me,Fe,We);if(Je)return Ie(Me,Fe,We);var ot=et(Fe);if(!qe(ot))return Ce(Me,ot,We)}function Ie(Me,Fe,We){var Je=Ct(Fe,We,!1);if(!ke(Je))return Je.OrdinaryGetOwnMetadata(Me,Fe,We)}function Ge(Me,Fe,We,Je){var ot=Ct(We,Je,!0);ot.OrdinaryDefineOwnMetadata(Me,Fe,We,Je)}function De(Me,Fe){var We=Oe(Me,Fe),Je=et(Me);if(Je===null)return We;var ot=De(Je,Fe);if(ot.length<=0)return We;if(We.length<=0)return ot;for(var Rt=new ie,qt=[],bt=0,tt=We;bt<tt.length;bt++){var it=tt[bt],st=Rt.has(it);st||(Rt.add(it),qt.push(it))}for(var rt=0,ct=ot;rt<ct.length;rt++){var it=ct[rt],st=Rt.has(it);st||(Rt.add(it),qt.push(it))}return qt}function Oe(Me,Fe){var We=Ct(Me,Fe,!1);return We?We.OrdinaryOwnMetadataKeys(Me,Fe):[]}function ye(Me){if(Me===null)return 1;switch(typeof Me){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return Me===null?1:6;default:return 6}}function ke(Me){return Me===void 0}function qe(Me){return Me===null}function Le(Me){return typeof Me=="symbol"}function Ne(Me){return typeof Me=="object"?Me!==null:typeof Me=="function"}function Ee(Me,Fe){switch(ye(Me)){case 0:return Me;case 1:return Me;case 2:return Me;case 3:return Me;case 4:return Me;case 5:return Me}var We="string",Je=It(Me,K);if(Je!==void 0){var ot=Je.call(Me,We);if(Ne(ot))throw new TypeError;return ot}return Re(Me)}function Re(Me,Fe){var We,Je;{var ot=Me.toString;if(at(ot)){var Je=ot.call(Me);if(!Ne(Je))return Je}var We=Me.valueOf;if(at(We)){var Je=We.call(Me);if(!Ne(Je))return Je}}throw new TypeError}function Be(Me){return!!Me}function Ue(Me){return""+Me}function He(Me){var Fe=Ee(Me);return Le(Fe)?Fe:Ue(Fe)}function nt(Me){return Array.isArray?Array.isArray(Me):Me instanceof Object?Me instanceof Array:Object.prototype.toString.call(Me)==="[object Array]"}function at(Me){return typeof Me=="function"}function dt(Me){return typeof Me=="function"}function ft(Me){switch(ye(Me)){case 3:return!0;case 4:return!0;default:return!1}}function _t(Me,Fe){return Me===Fe||Me!==Me&&Fe!==Fe}function It(Me,Fe){var We=Me[Fe];if(We!=null){if(!at(We))throw new TypeError;return We}}function St(Me){var Fe=It(Me,J);if(!at(Fe))throw new TypeError;var We=Fe.call(Me);if(!Ne(We))throw new TypeError;return We}function Ve(Me){return Me.value}function ze(Me){var Fe=Me.next();return Fe.done?!1:Fe}function Xe(Me){var Fe=Me.return;Fe&&Fe.call(Me)}function et(Me){var Fe=Object.getPrototypeOf(Me);if(typeof Me!="function"||Me===Q||Fe!==Q)return Fe;var We=Me.prototype,Je=We&&Object.getPrototypeOf(We);if(Je==null||Je===Object.prototype)return Fe;var ot=Je.constructor;return typeof ot!="function"||ot===Me?Fe:ot}function Ye(){var Me;!ke(oe)&&typeof U.Reflect<"u"&&!(oe in U.Reflect)&&typeof U.Reflect.defineMetadata=="function"&&(Me=pt(U.Reflect));var Fe,We,Je,ot=new le,Rt={registerProvider:qt,getProvider:tt,setProvider:st};return Rt;function qt(rt){if(!Object.isExtensible(Rt))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case Me===rt:break;case ke(Fe):Fe=rt;break;case Fe===rt:break;case ke(We):We=rt;break;case We===rt:break;default:Je===void 0&&(Je=new ie),Je.add(rt);break}}function bt(rt,ct){if(!ke(Fe)){if(Fe.isProviderFor(rt,ct))return Fe;if(!ke(We)){if(We.isProviderFor(rt,ct))return Fe;if(!ke(Je))for(var xt=St(Je);;){var Tt=ze(xt);if(!Tt)return;var Pt=Ve(Tt);if(Pt.isProviderFor(rt,ct))return Xe(xt),Pt}}}if(!ke(Me)&&Me.isProviderFor(rt,ct))return Me}function tt(rt,ct){var xt=ot.get(rt),Tt;return ke(xt)||(Tt=xt.get(ct)),ke(Tt)&&(Tt=bt(rt,ct),ke(Tt)||(ke(xt)&&(xt=new te,ot.set(rt,xt)),xt.set(ct,Tt))),Tt}function it(rt){if(ke(rt))throw new TypeError;return Fe===rt||We===rt||!ke(Je)&&Je.has(rt)}function st(rt,ct,xt){if(!it(xt))throw new Error("Metadata provider not registered.");var Tt=tt(rt,ct);if(Tt!==xt){if(!ke(Tt))return!1;var Pt=ot.get(rt);ke(Pt)&&(Pt=new te,ot.set(rt,Pt)),Pt.set(ct,xt)}return!0}}function ut(){var Me;return!ke(oe)&&Ne(U.Reflect)&&Object.isExtensible(U.Reflect)&&(Me=U.Reflect[oe]),ke(Me)&&(Me=Ye()),!ke(oe)&&Ne(U.Reflect)&&Object.isExtensible(U.Reflect)&&Object.defineProperty(U.Reflect,oe,{enumerable:!1,configurable:!1,writable:!1,value:Me}),Me}function ht(Me){var Fe=new le,We={isProviderFor:function(it,st){var rt=Fe.get(it);return ke(rt)?!1:rt.has(st)},OrdinaryDefineOwnMetadata:qt,OrdinaryHasOwnMetadata:ot,OrdinaryGetOwnMetadata:Rt,OrdinaryOwnMetadataKeys:bt,OrdinaryDeleteMetadata:tt};return re.registerProvider(We),We;function Je(it,st,rt){var ct=Fe.get(it),xt=!1;if(ke(ct)){if(!rt)return;ct=new te,Fe.set(it,ct),xt=!0}var Tt=ct.get(st);if(ke(Tt)){if(!rt)return;if(Tt=new te,ct.set(st,Tt),!Me.setProvider(it,st,We))throw ct.delete(st),xt&&Fe.delete(it),new Error("Wrong provider for target.")}return Tt}function ot(it,st,rt){var ct=Je(st,rt,!1);return ke(ct)?!1:Be(ct.has(it))}function Rt(it,st,rt){var ct=Je(st,rt,!1);if(!ke(ct))return ct.get(it)}function qt(it,st,rt,ct){var xt=Je(rt,ct,!0);xt.set(it,st)}function bt(it,st){var rt=[],ct=Je(it,st,!1);if(ke(ct))return rt;for(var xt=ct.keys(),Tt=St(xt),Pt=0;;){var Kt=ze(Tt);if(!Kt)return rt.length=Pt,rt;var en=Ve(Kt);try{rt[Pt]=en}catch(tn){try{Xe(Tt)}finally{throw tn}}Pt++}}function tt(it,st,rt){var ct=Je(st,rt,!1);if(ke(ct)||!ct.delete(it))return!1;if(ct.size===0){var xt=Fe.get(st);ke(xt)||(xt.delete(rt),xt.size===0&&Fe.delete(xt))}return!0}}function pt(Me){var Fe=Me.defineMetadata,We=Me.hasOwnMetadata,Je=Me.getOwnMetadata,ot=Me.getOwnMetadataKeys,Rt=Me.deleteMetadata,qt=new le,bt={isProviderFor:function(tt,it){var st=qt.get(tt);return!ke(st)&&st.has(it)?!0:ot(tt,it).length?(ke(st)&&(st=new ie,qt.set(tt,st)),st.add(it),!0):!1},OrdinaryDefineOwnMetadata:Fe,OrdinaryHasOwnMetadata:We,OrdinaryGetOwnMetadata:Je,OrdinaryOwnMetadataKeys:ot,OrdinaryDeleteMetadata:Rt};return bt}function Ct(Me,Fe,We){var Je=re.getProvider(Me,Fe);if(!ke(Je))return Je;if(We){if(re.setProvider(Me,Fe,ae))return ae;throw new Error("Illegal state.")}}function Dt(){var Me={},Fe=[],We=function(){function bt(tt,it,st){this._index=0,this._keys=tt,this._values=it,this._selector=st}return bt.prototype["@@iterator"]=function(){return this},bt.prototype[J]=function(){return this},bt.prototype.next=function(){var tt=this._index;if(tt>=0&&tt<this._keys.length){var it=this._selector(this._keys[tt],this._values[tt]);return tt+1>=this._keys.length?(this._index=-1,this._keys=Fe,this._values=Fe):this._index++,{value:it,done:!1}}return{value:void 0,done:!0}},bt.prototype.throw=function(tt){throw this._index>=0&&(this._index=-1,this._keys=Fe,this._values=Fe),tt},bt.prototype.return=function(tt){return this._index>=0&&(this._index=-1,this._keys=Fe,this._values=Fe),{value:tt,done:!0}},bt}(),Je=function(){function bt(){this._keys=[],this._values=[],this._cacheKey=Me,this._cacheIndex=-2}return Object.defineProperty(bt.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),bt.prototype.has=function(tt){return this._find(tt,!1)>=0},bt.prototype.get=function(tt){var it=this._find(tt,!1);return it>=0?this._values[it]:void 0},bt.prototype.set=function(tt,it){var st=this._find(tt,!0);return this._values[st]=it,this},bt.prototype.delete=function(tt){var it=this._find(tt,!1);if(it>=0){for(var st=this._keys.length,rt=it+1;rt<st;rt++)this._keys[rt-1]=this._keys[rt],this._values[rt-1]=this._values[rt];return this._keys.length--,this._values.length--,_t(tt,this._cacheKey)&&(this._cacheKey=Me,this._cacheIndex=-2),!0}return!1},bt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=Me,this._cacheIndex=-2},bt.prototype.keys=function(){return new We(this._keys,this._values,ot)},bt.prototype.values=function(){return new We(this._keys,this._values,Rt)},bt.prototype.entries=function(){return new We(this._keys,this._values,qt)},bt.prototype["@@iterator"]=function(){return this.entries()},bt.prototype[J]=function(){return this.entries()},bt.prototype._find=function(tt,it){if(!_t(this._cacheKey,tt)){this._cacheIndex=-1;for(var st=0;st<this._keys.length;st++)if(_t(this._keys[st],tt)){this._cacheIndex=st;break}}return this._cacheIndex<0&&it&&(this._cacheIndex=this._keys.length,this._keys.push(tt),this._values.push(void 0)),this._cacheIndex},bt}();return Je;function ot(bt,tt){return bt}function Rt(bt,tt){return tt}function qt(bt,tt){return[bt,tt]}}function kt(){var Me=function(){function Fe(){this._map=new te}return Object.defineProperty(Fe.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),Fe.prototype.has=function(We){return this._map.has(We)},Fe.prototype.add=function(We){return this._map.set(We,We),this},Fe.prototype.delete=function(We){return this._map.delete(We)},Fe.prototype.clear=function(){this._map.clear()},Fe.prototype.keys=function(){return this._map.keys()},Fe.prototype.values=function(){return this._map.keys()},Fe.prototype.entries=function(){return this._map.entries()},Fe.prototype["@@iterator"]=function(){return this.keys()},Fe.prototype[J]=function(){return this.keys()},Fe}();return Me}function Zt(){var Me=16,Fe=ne.create(),We=Je();return function(){function tt(){this._key=Je()}return tt.prototype.has=function(it){var st=ot(it,!1);return st!==void 0?ne.has(st,this._key):!1},tt.prototype.get=function(it){var st=ot(it,!1);return st!==void 0?ne.get(st,this._key):void 0},tt.prototype.set=function(it,st){var rt=ot(it,!0);return rt[this._key]=st,this},tt.prototype.delete=function(it){var st=ot(it,!1);return st!==void 0?delete st[this._key]:!1},tt.prototype.clear=function(){this._key=Je()},tt}();function Je(){var tt;do tt="@@WeakMap@@"+bt();while(ne.has(Fe,tt));return Fe[tt]=!0,tt}function ot(tt,it){if(!G.call(tt,We)){if(!it)return;Object.defineProperty(tt,We,{value:ne.create()})}return tt[We]}function Rt(tt,it){for(var st=0;st<it;++st)tt[st]=Math.random()*255|0;return tt}function qt(tt){if(typeof Uint8Array=="function"){var it=new Uint8Array(tt);return typeof crypto<"u"?crypto.getRandomValues(it):typeof msCrypto<"u"?msCrypto.getRandomValues(it):Rt(it,tt),it}return Rt(new Array(tt),tt)}function bt(){var tt=qt(Me);tt[6]=tt[6]&79|64,tt[8]=tt[8]&191|128;for(var it="",st=0;st<Me;++st){var rt=tt[st];(st===4||st===6||st===8)&&(it+="-"),rt<16&&(it+="0"),it+=rt.toString(16).toLowerCase()}return it}}function $t(Me){return Me.__=void 0,delete Me.__,Me}})})(Reflect$1||(Reflect$1={}));/**
2
15
  * @license
3
16
  * Copyright 2019 Google LLC
4
17
  * SPDX-License-Identifier: BSD-3-Clause
5
- */var Ot;const t$9=globalThis,e$g=t$9.ShadowRoot&&(t$9.ShadyCSS===void 0||t$9.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$a=Symbol(),o$i=new WeakMap;let n$b=class{constructor(O,U,G){if(this._$cssResult$=!0,G!==s$a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=O,this.t=U}get styleSheet(){let O=this.o;const U=this.t;if(e$g&&O===void 0){const G=U!==void 0&&U.length===1;G&&(O=o$i.get(U)),O===void 0&&((this.o=O=new CSSStyleSheet).replaceSync(this.cssText),G&&o$i.set(U,O))}return O}toString(){return this.cssText}};const r$a=W=>new n$b(typeof W=="string"?W:W+"",void 0,s$a),i$9=(W,...O)=>{const U=W.length===1?W[0]:O.reduce((G,Y,K)=>G+(J=>{if(J._$cssResult$===!0)return J.cssText;if(typeof J=="number")return J;throw Error("Value passed to 'css' function must be a 'css' function result: "+J+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(Y)+W[K+1],W[0]);return new n$b(U,W,s$a)},S$3=(W,O)=>{if(e$g)W.adoptedStyleSheets=O.map(U=>U instanceof CSSStyleSheet?U:U.styleSheet);else for(const U of O){const G=document.createElement("style"),Y=t$9.litNonce;Y!==void 0&&G.setAttribute("nonce",Y),G.textContent=U.cssText,W.appendChild(G)}},c$9=e$g?W=>W:W=>W instanceof CSSStyleSheet?(O=>{let U="";for(const G of O.cssRules)U+=G.cssText;return r$a(U)})(W):W;/**
18
+ */const t$9=globalThis,e$g=t$9.ShadowRoot&&(t$9.ShadyCSS===void 0||t$9.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$a=Symbol(),o$i=new WeakMap;let n$b=class{constructor(O,U,G){if(this._$cssResult$=!0,G!==s$a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=O,this.t=U}get styleSheet(){let O=this.o;const U=this.t;if(e$g&&O===void 0){const G=U!==void 0&&U.length===1;G&&(O=o$i.get(U)),O===void 0&&((this.o=O=new CSSStyleSheet).replaceSync(this.cssText),G&&o$i.set(U,O))}return O}toString(){return this.cssText}};const r$a=W=>new n$b(typeof W=="string"?W:W+"",void 0,s$a),i$9=(W,...O)=>{const U=W.length===1?W[0]:O.reduce((G,Y,K)=>G+(J=>{if(J._$cssResult$===!0)return J.cssText;if(typeof J=="number")return J;throw Error("Value passed to 'css' function must be a 'css' function result: "+J+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(Y)+W[K+1],W[0]);return new n$b(U,W,s$a)},S$3=(W,O)=>{if(e$g)W.adoptedStyleSheets=O.map(U=>U instanceof CSSStyleSheet?U:U.styleSheet);else for(const U of O){const G=document.createElement("style"),Y=t$9.litNonce;Y!==void 0&&G.setAttribute("nonce",Y),G.textContent=U.cssText,W.appendChild(G)}},c$9=e$g?W=>W:W=>W instanceof CSSStyleSheet?(O=>{let U="";for(const G of O.cssRules)U+=G.cssText;return r$a(U)})(W):W;/**
6
19
  * @license
7
20
  * Copyright 2017 Google LLC
8
21
  * SPDX-License-Identifier: BSD-3-Clause
@@ -12,11 +25,11 @@
12
25
  * SPDX-License-Identifier: BSD-3-Clause
13
26
  */const t$8=globalThis,i$7=t$8.trustedTypes,s$9=i$7?i$7.createPolicy("lit-html",{createHTML:W=>W}):void 0,e$e="$lit$",h$5=`lit$${Math.random().toFixed(9).slice(2)}$`,o$g="?"+h$5,n$9=`<${o$g}>`,r$8=document,l$8=()=>r$8.createComment(""),c$7=W=>W===null||typeof W!="object"&&typeof W!="function",a$5=Array.isArray,u$9=W=>a$5(W)||typeof(W==null?void 0:W[Symbol.iterator])=="function",d$5=`[
14
27
  \f\r]`,f$4=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$2=/-->/g,_$1=/>/g,m$2=RegExp(`>|${d$5}(?:([^\\s"'>=/]+)(${d$5}*=${d$5}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),p$7=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$3=W=>(O,...U)=>({_$litType$:W,strings:O,values:U}),x$1=y$3(1),w$3=Symbol.for("lit-noChange"),T$4=Symbol.for("lit-nothing"),A$1=new WeakMap,E$2=r$8.createTreeWalker(r$8,129);function C$1(W,O){if(!Array.isArray(W)||!W.hasOwnProperty("raw"))throw Error("invalid template strings array");return s$9!==void 0?s$9.createHTML(O):O}const P$1=(W,O)=>{const U=W.length-1,G=[];let Y,K=O===2?"<svg>":"",J=f$4;for(let X=0;X<U;X++){const ie=W[X];let ee,ne,Q=-1,te=0;for(;te<ie.length&&(J.lastIndex=te,ne=J.exec(ie),ne!==null);)te=J.lastIndex,J===f$4?ne[1]==="!--"?J=v$2:ne[1]!==void 0?J=_$1:ne[2]!==void 0?($$1.test(ne[2])&&(Y=RegExp("</"+ne[2],"g")),J=m$2):ne[3]!==void 0&&(J=m$2):J===m$2?ne[0]===">"?(J=Y??f$4,Q=-1):ne[1]===void 0?Q=-2:(Q=J.lastIndex-ne[2].length,ee=ne[1],J=ne[3]===void 0?m$2:ne[3]==='"'?g$1:p$7):J===g$1||J===p$7?J=m$2:J===v$2||J===_$1?J=f$4:(J=m$2,Y=void 0);const se=J===m$2&&W[X+1].startsWith("/>")?" ":"";K+=J===f$4?ie+n$9:Q>=0?(G.push(ee),ie.slice(0,Q)+e$e+ie.slice(Q)+h$5+se):ie+h$5+(Q===-2?X:se)}return[C$1(W,K+(W[U]||"<?>")+(O===2?"</svg>":"")),G]};let V$1=class pn{constructor({strings:O,_$litType$:U},G){let Y;this.parts=[];let K=0,J=0;const X=O.length-1,ie=this.parts,[ee,ne]=P$1(O,U);if(this.el=pn.createElement(ee,G),E$2.currentNode=this.el.content,U===2){const Q=this.el.content.firstChild;Q.replaceWith(...Q.childNodes)}for(;(Y=E$2.nextNode())!==null&&ie.length<X;){if(Y.nodeType===1){if(Y.hasAttributes())for(const Q of Y.getAttributeNames())if(Q.endsWith(e$e)){const te=ne[J++],se=Y.getAttribute(Q).split(h$5),le=/([.?@])?(.*)/.exec(te);ie.push({type:1,index:K,name:le[2],strings:se,ctor:le[1]==="."?k$1:le[1]==="?"?H$2:le[1]==="@"?I$1:R$2}),Y.removeAttribute(Q)}else Q.startsWith(h$5)&&(ie.push({type:6,index:K}),Y.removeAttribute(Q));if($$1.test(Y.tagName)){const Q=Y.textContent.split(h$5),te=Q.length-1;if(te>0){Y.textContent=i$7?i$7.emptyScript:"";for(let se=0;se<te;se++)Y.append(Q[se],l$8()),E$2.nextNode(),ie.push({type:2,index:++K});Y.append(Q[te],l$8())}}}else if(Y.nodeType===8)if(Y.data===o$g)ie.push({type:2,index:K});else{let Q=-1;for(;(Q=Y.data.indexOf(h$5,Q+1))!==-1;)ie.push({type:7,index:K}),Q+=h$5.length-1}K++}}static createElement(O,U){const G=r$8.createElement("template");return G.innerHTML=O,G}};function N$1(W,O,U=W,G){var J,X;if(O===w$3)return O;let Y=G!==void 0?(J=U._$Co)==null?void 0:J[G]:U._$Cl;const K=c$7(O)?void 0:O._$litDirective$;return(Y==null?void 0:Y.constructor)!==K&&((X=Y==null?void 0:Y._$AO)==null||X.call(Y,!1),K===void 0?Y=void 0:(Y=new K(W),Y._$AT(W,U,G)),G!==void 0?(U._$Co??(U._$Co=[]))[G]=Y:U._$Cl=Y),Y!==void 0&&(O=N$1(W,Y._$AS(W,O.values),Y,G)),O}let S$2=class{constructor(O,U){this._$AV=[],this._$AN=void 0,this._$AD=O,this._$AM=U}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(O){const{el:{content:U},parts:G}=this._$AD,Y=((O==null?void 0:O.creationScope)??r$8).importNode(U,!0);E$2.currentNode=Y;let K=E$2.nextNode(),J=0,X=0,ie=G[0];for(;ie!==void 0;){if(J===ie.index){let ee;ie.type===2?ee=new M$1(K,K.nextSibling,this,O):ie.type===1?ee=new ie.ctor(K,ie.name,ie.strings,this,O):ie.type===6&&(ee=new L$3(K,this,O)),this._$AV.push(ee),ie=G[++X]}J!==(ie==null?void 0:ie.index)&&(K=E$2.nextNode(),J++)}return E$2.currentNode=r$8,Y}p(O){let U=0;for(const G of this._$AV)G!==void 0&&(G.strings!==void 0?(G._$AI(O,G,U),U+=G.strings.length-2):G._$AI(O[U])),U++}},M$1=class fn{get _$AU(){var O;return((O=this._$AM)==null?void 0:O._$AU)??this._$Cv}constructor(O,U,G,Y){this.type=2,this._$AH=T$4,this._$AN=void 0,this._$AA=O,this._$AB=U,this._$AM=G,this.options=Y,this._$Cv=(Y==null?void 0:Y.isConnected)??!0}get parentNode(){let O=this._$AA.parentNode;const U=this._$AM;return U!==void 0&&(O==null?void 0:O.nodeType)===11&&(O=U.parentNode),O}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(O,U=this){O=N$1(this,O,U),c$7(O)?O===T$4||O==null||O===""?(this._$AH!==T$4&&this._$AR(),this._$AH=T$4):O!==this._$AH&&O!==w$3&&this._(O):O._$litType$!==void 0?this.$(O):O.nodeType!==void 0?this.T(O):u$9(O)?this.k(O):this._(O)}S(O){return this._$AA.parentNode.insertBefore(O,this._$AB)}T(O){this._$AH!==O&&(this._$AR(),this._$AH=this.S(O))}_(O){this._$AH!==T$4&&c$7(this._$AH)?this._$AA.nextSibling.data=O:this.T(r$8.createTextNode(O)),this._$AH=O}$(O){var K;const{values:U,_$litType$:G}=O,Y=typeof G=="number"?this._$AC(O):(G.el===void 0&&(G.el=V$1.createElement(C$1(G.h,G.h[0]),this.options)),G);if(((K=this._$AH)==null?void 0:K._$AD)===Y)this._$AH.p(U);else{const J=new S$2(Y,this),X=J.u(this.options);J.p(U),this.T(X),this._$AH=J}}_$AC(O){let U=A$1.get(O.strings);return U===void 0&&A$1.set(O.strings,U=new V$1(O)),U}k(O){a$5(this._$AH)||(this._$AH=[],this._$AR());const U=this._$AH;let G,Y=0;for(const K of O)Y===U.length?U.push(G=new fn(this.S(l$8()),this.S(l$8()),this,this.options)):G=U[Y],G._$AI(K),Y++;Y<U.length&&(this._$AR(G&&G._$AB.nextSibling,Y),U.length=Y)}_$AR(O=this._$AA.nextSibling,U){var G;for((G=this._$AP)==null?void 0:G.call(this,!1,!0,U);O&&O!==this._$AB;){const Y=O.nextSibling;O.remove(),O=Y}}setConnected(O){var U;this._$AM===void 0&&(this._$Cv=O,(U=this._$AP)==null||U.call(this,O))}},R$2=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(O,U,G,Y,K){this.type=1,this._$AH=T$4,this._$AN=void 0,this.element=O,this.name=U,this._$AM=Y,this.options=K,G.length>2||G[0]!==""||G[1]!==""?(this._$AH=Array(G.length-1).fill(new String),this.strings=G):this._$AH=T$4}_$AI(O,U=this,G,Y){const K=this.strings;let J=!1;if(K===void 0)O=N$1(this,O,U,0),J=!c$7(O)||O!==this._$AH&&O!==w$3,J&&(this._$AH=O);else{const X=O;let ie,ee;for(O=K[0],ie=0;ie<K.length-1;ie++)ee=N$1(this,X[G+ie],U,ie),ee===w$3&&(ee=this._$AH[ie]),J||(J=!c$7(ee)||ee!==this._$AH[ie]),ee===T$4?O=T$4:O!==T$4&&(O+=(ee??"")+K[ie+1]),this._$AH[ie]=ee}J&&!Y&&this.j(O)}j(O){O===T$4?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,O??"")}},k$1=class extends R$2{constructor(){super(...arguments),this.type=3}j(O){this.element[this.name]=O===T$4?void 0:O}},H$2=class extends R$2{constructor(){super(...arguments),this.type=4}j(O){this.element.toggleAttribute(this.name,!!O&&O!==T$4)}},I$1=class extends R$2{constructor(O,U,G,Y,K){super(O,U,G,Y,K),this.type=5}_$AI(O,U=this){if((O=N$1(this,O,U,0)??T$4)===w$3)return;const G=this._$AH,Y=O===T$4&&G!==T$4||O.capture!==G.capture||O.once!==G.once||O.passive!==G.passive,K=O!==T$4&&(G===T$4||Y);Y&&this.element.removeEventListener(this.name,this,G),K&&this.element.addEventListener(this.name,this,O),this._$AH=O}handleEvent(O){var U;typeof this._$AH=="function"?this._$AH.call(((U=this.options)==null?void 0:U.host)??this.element,O):this._$AH.handleEvent(O)}},L$3=class{constructor(O,U,G){this.element=O,this.type=6,this._$AN=void 0,this._$AM=U,this.options=G}get _$AU(){return this._$AM._$AU}_$AI(O){N$1(this,O)}};const z$1={P:e$e,A:h$5,C:o$g,M:1,L:P$1,R:S$2,D:u$9,V:N$1,I:M$1,H:R$2,N:H$2,U:I$1,B:k$1,F:L$3},Z$1=t$8.litHtmlPolyfillSupport;Z$1==null||Z$1(V$1,M$1),(t$8.litHtmlVersions??(t$8.litHtmlVersions=[])).push("3.1.4");const j$2=(W,O,U)=>{const G=(U==null?void 0:U.renderBefore)??O;let Y=G._$litPart$;if(Y===void 0){const K=(U==null?void 0:U.renderBefore)??null;G._$litPart$=Y=new M$1(O.insertBefore(l$8(),K),K,void 0,U??{})}return Y._$AI(W),Y};/**
28
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),p$7=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$3=W=>(O,...U)=>({_$litType$:W,strings:O,values:U}),x$1=y$3(1),w$3=Symbol.for("lit-noChange"),T$4=Symbol.for("lit-nothing"),A$1=new WeakMap,E$2=r$8.createTreeWalker(r$8,129);function C$1(W,O){if(!Array.isArray(W)||!W.hasOwnProperty("raw"))throw Error("invalid template strings array");return s$9!==void 0?s$9.createHTML(O):O}const P$1=(W,O)=>{const U=W.length-1,G=[];let Y,K=O===2?"<svg>":"",J=f$4;for(let X=0;X<U;X++){const se=W[X];let ee,ne,Q=-1,te=0;for(;te<se.length&&(J.lastIndex=te,ne=J.exec(se),ne!==null);)te=J.lastIndex,J===f$4?ne[1]==="!--"?J=v$2:ne[1]!==void 0?J=_$1:ne[2]!==void 0?($$1.test(ne[2])&&(Y=RegExp("</"+ne[2],"g")),J=m$2):ne[3]!==void 0&&(J=m$2):J===m$2?ne[0]===">"?(J=Y??f$4,Q=-1):ne[1]===void 0?Q=-2:(Q=J.lastIndex-ne[2].length,ee=ne[1],J=ne[3]===void 0?m$2:ne[3]==='"'?g$1:p$7):J===g$1||J===p$7?J=m$2:J===v$2||J===_$1?J=f$4:(J=m$2,Y=void 0);const ie=J===m$2&&W[X+1].startsWith("/>")?" ":"";K+=J===f$4?se+n$9:Q>=0?(G.push(ee),se.slice(0,Q)+e$e+se.slice(Q)+h$5+ie):se+h$5+(Q===-2?X:ie)}return[C$1(W,K+(W[U]||"<?>")+(O===2?"</svg>":"")),G]};let V$1=class On{constructor({strings:O,_$litType$:U},G){let Y;this.parts=[];let K=0,J=0;const X=O.length-1,se=this.parts,[ee,ne]=P$1(O,U);if(this.el=On.createElement(ee,G),E$2.currentNode=this.el.content,U===2){const Q=this.el.content.firstChild;Q.replaceWith(...Q.childNodes)}for(;(Y=E$2.nextNode())!==null&&se.length<X;){if(Y.nodeType===1){if(Y.hasAttributes())for(const Q of Y.getAttributeNames())if(Q.endsWith(e$e)){const te=ne[J++],ie=Y.getAttribute(Q).split(h$5),le=/([.?@])?(.*)/.exec(te);se.push({type:1,index:K,name:le[2],strings:ie,ctor:le[1]==="."?k$1:le[1]==="?"?H$2:le[1]==="@"?I$1:R$2}),Y.removeAttribute(Q)}else Q.startsWith(h$5)&&(se.push({type:6,index:K}),Y.removeAttribute(Q));if($$1.test(Y.tagName)){const Q=Y.textContent.split(h$5),te=Q.length-1;if(te>0){Y.textContent=i$7?i$7.emptyScript:"";for(let ie=0;ie<te;ie++)Y.append(Q[ie],l$8()),E$2.nextNode(),se.push({type:2,index:++K});Y.append(Q[te],l$8())}}}else if(Y.nodeType===8)if(Y.data===o$g)se.push({type:2,index:K});else{let Q=-1;for(;(Q=Y.data.indexOf(h$5,Q+1))!==-1;)se.push({type:7,index:K}),Q+=h$5.length-1}K++}}static createElement(O,U){const G=r$8.createElement("template");return G.innerHTML=O,G}};function N$1(W,O,U=W,G){var J,X;if(O===w$3)return O;let Y=G!==void 0?(J=U._$Co)==null?void 0:J[G]:U._$Cl;const K=c$7(O)?void 0:O._$litDirective$;return(Y==null?void 0:Y.constructor)!==K&&((X=Y==null?void 0:Y._$AO)==null||X.call(Y,!1),K===void 0?Y=void 0:(Y=new K(W),Y._$AT(W,U,G)),G!==void 0?(U._$Co??(U._$Co=[]))[G]=Y:U._$Cl=Y),Y!==void 0&&(O=N$1(W,Y._$AS(W,O.values),Y,G)),O}let S$2=class{constructor(O,U){this._$AV=[],this._$AN=void 0,this._$AD=O,this._$AM=U}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(O){const{el:{content:U},parts:G}=this._$AD,Y=((O==null?void 0:O.creationScope)??r$8).importNode(U,!0);E$2.currentNode=Y;let K=E$2.nextNode(),J=0,X=0,se=G[0];for(;se!==void 0;){if(J===se.index){let ee;se.type===2?ee=new M$1(K,K.nextSibling,this,O):se.type===1?ee=new se.ctor(K,se.name,se.strings,this,O):se.type===6&&(ee=new L$3(K,this,O)),this._$AV.push(ee),se=G[++X]}J!==(se==null?void 0:se.index)&&(K=E$2.nextNode(),J++)}return E$2.currentNode=r$8,Y}p(O){let U=0;for(const G of this._$AV)G!==void 0&&(G.strings!==void 0?(G._$AI(O,G,U),U+=G.strings.length-2):G._$AI(O[U])),U++}},M$1=class qn{get _$AU(){var O;return((O=this._$AM)==null?void 0:O._$AU)??this._$Cv}constructor(O,U,G,Y){this.type=2,this._$AH=T$4,this._$AN=void 0,this._$AA=O,this._$AB=U,this._$AM=G,this.options=Y,this._$Cv=(Y==null?void 0:Y.isConnected)??!0}get parentNode(){let O=this._$AA.parentNode;const U=this._$AM;return U!==void 0&&(O==null?void 0:O.nodeType)===11&&(O=U.parentNode),O}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(O,U=this){O=N$1(this,O,U),c$7(O)?O===T$4||O==null||O===""?(this._$AH!==T$4&&this._$AR(),this._$AH=T$4):O!==this._$AH&&O!==w$3&&this._(O):O._$litType$!==void 0?this.$(O):O.nodeType!==void 0?this.T(O):u$9(O)?this.k(O):this._(O)}S(O){return this._$AA.parentNode.insertBefore(O,this._$AB)}T(O){this._$AH!==O&&(this._$AR(),this._$AH=this.S(O))}_(O){this._$AH!==T$4&&c$7(this._$AH)?this._$AA.nextSibling.data=O:this.T(r$8.createTextNode(O)),this._$AH=O}$(O){var K;const{values:U,_$litType$:G}=O,Y=typeof G=="number"?this._$AC(O):(G.el===void 0&&(G.el=V$1.createElement(C$1(G.h,G.h[0]),this.options)),G);if(((K=this._$AH)==null?void 0:K._$AD)===Y)this._$AH.p(U);else{const J=new S$2(Y,this),X=J.u(this.options);J.p(U),this.T(X),this._$AH=J}}_$AC(O){let U=A$1.get(O.strings);return U===void 0&&A$1.set(O.strings,U=new V$1(O)),U}k(O){a$5(this._$AH)||(this._$AH=[],this._$AR());const U=this._$AH;let G,Y=0;for(const K of O)Y===U.length?U.push(G=new qn(this.S(l$8()),this.S(l$8()),this,this.options)):G=U[Y],G._$AI(K),Y++;Y<U.length&&(this._$AR(G&&G._$AB.nextSibling,Y),U.length=Y)}_$AR(O=this._$AA.nextSibling,U){var G;for((G=this._$AP)==null?void 0:G.call(this,!1,!0,U);O&&O!==this._$AB;){const Y=O.nextSibling;O.remove(),O=Y}}setConnected(O){var U;this._$AM===void 0&&(this._$Cv=O,(U=this._$AP)==null||U.call(this,O))}},R$2=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(O,U,G,Y,K){this.type=1,this._$AH=T$4,this._$AN=void 0,this.element=O,this.name=U,this._$AM=Y,this.options=K,G.length>2||G[0]!==""||G[1]!==""?(this._$AH=Array(G.length-1).fill(new String),this.strings=G):this._$AH=T$4}_$AI(O,U=this,G,Y){const K=this.strings;let J=!1;if(K===void 0)O=N$1(this,O,U,0),J=!c$7(O)||O!==this._$AH&&O!==w$3,J&&(this._$AH=O);else{const X=O;let se,ee;for(O=K[0],se=0;se<K.length-1;se++)ee=N$1(this,X[G+se],U,se),ee===w$3&&(ee=this._$AH[se]),J||(J=!c$7(ee)||ee!==this._$AH[se]),ee===T$4?O=T$4:O!==T$4&&(O+=(ee??"")+K[se+1]),this._$AH[se]=ee}J&&!Y&&this.j(O)}j(O){O===T$4?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,O??"")}},k$1=class extends R$2{constructor(){super(...arguments),this.type=3}j(O){this.element[this.name]=O===T$4?void 0:O}},H$2=class extends R$2{constructor(){super(...arguments),this.type=4}j(O){this.element.toggleAttribute(this.name,!!O&&O!==T$4)}},I$1=class extends R$2{constructor(O,U,G,Y,K){super(O,U,G,Y,K),this.type=5}_$AI(O,U=this){if((O=N$1(this,O,U,0)??T$4)===w$3)return;const G=this._$AH,Y=O===T$4&&G!==T$4||O.capture!==G.capture||O.once!==G.once||O.passive!==G.passive,K=O!==T$4&&(G===T$4||Y);Y&&this.element.removeEventListener(this.name,this,G),K&&this.element.addEventListener(this.name,this,O),this._$AH=O}handleEvent(O){var U;typeof this._$AH=="function"?this._$AH.call(((U=this.options)==null?void 0:U.host)??this.element,O):this._$AH.handleEvent(O)}},L$3=class{constructor(O,U,G){this.element=O,this.type=6,this._$AN=void 0,this._$AM=U,this.options=G}get _$AU(){return this._$AM._$AU}_$AI(O){N$1(this,O)}};const z$1={P:e$e,A:h$5,C:o$g,M:1,L:P$1,R:S$2,D:u$9,V:N$1,I:M$1,H:R$2,N:H$2,U:I$1,B:k$1,F:L$3},Z$1=t$8.litHtmlPolyfillSupport;Z$1==null||Z$1(V$1,M$1),(t$8.litHtmlVersions??(t$8.litHtmlVersions=[])).push("3.1.4");const j$2=(W,O,U)=>{const G=(U==null?void 0:U.renderBefore)??O;let Y=G._$litPart$;if(Y===void 0){const K=(U==null?void 0:U.renderBefore)??null;G._$litPart$=Y=new M$1(O.insertBefore(l$8(),K),K,void 0,U??{})}return Y._$AI(W),Y};/**
16
29
  * @license
17
30
  * Copyright 2017 Google LLC
18
31
  * SPDX-License-Identifier: BSD-3-Clause
19
- */let s$8=class extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var U;const O=super.createRenderRoot();return(U=this.renderOptions).renderBefore??(U.renderBefore=O.firstChild),O}update(O){const U=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(O),this._$Do=j$2(U,this.renderRoot,this.renderOptions)}connectedCallback(){var O;super.connectedCallback(),(O=this._$Do)==null||O.setConnected(!0)}disconnectedCallback(){var O;super.disconnectedCallback(),(O=this._$Do)==null||O.setConnected(!1)}render(){return w$3}};s$8._$litElement$=!0,s$8.finalized=!0,(Ot=globalThis.litElementHydrateSupport)==null||Ot.call(globalThis,{LitElement:s$8});const r$7=globalThis.litElementPolyfillSupport;r$7==null||r$7({LitElement:s$8}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");const template$7=W=>x$1`
32
+ */let s$8=class extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var U;const O=super.createRenderRoot();return(U=this.renderOptions).renderBefore??(U.renderBefore=O.firstChild),O}update(O){const U=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(O),this._$Do=j$2(U,this.renderRoot,this.renderOptions)}connectedCallback(){var O;super.connectedCallback(),(O=this._$Do)==null||O.setConnected(!0)}disconnectedCallback(){var O;super.disconnectedCallback(),(O=this._$Do)==null||O.setConnected(!1)}render(){return w$3}};s$8._$litElement$=!0,s$8.finalized=!0,(Ht=globalThis.litElementHydrateSupport)==null||Ht.call(globalThis,{LitElement:s$8});const r$7=globalThis.litElementPolyfillSupport;r$7==null||r$7({LitElement:s$8}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");const template$7=W=>x$1`
20
33
  <div class="item" @click=${W.callbackFn}>
21
34
  <dss-container><i class="dss-icon dss-icon--md">${W.icon}</i></dss-container>
22
35
  <span>${W.label}</span>
@@ -28,7 +41,7 @@
28
41
  * @license
29
42
  * Copyright 2017 Google LLC
30
43
  * SPDX-License-Identifier: BSD-3-Clause
31
- */const o$f={attribute:!0,type:String,converter:u$a,reflect:!1,hasChanged:f$5},r$6=(W=o$f,O,U)=>{const{kind:G,metadata:Y}=U;let K=globalThis.litPropertyMetadata.get(Y);if(K===void 0&&globalThis.litPropertyMetadata.set(Y,K=new Map),K.set(U.name,W),G==="accessor"){const{name:J}=U;return{set(X){const ie=O.get.call(this);O.set.call(this,X),this.requestUpdate(J,ie,W)},init(X){return X!==void 0&&this.P(J,void 0,W),X}}}if(G==="setter"){const{name:J}=U;return function(X){const ie=this[J];O.call(this,X),this.requestUpdate(J,ie,W)}}throw Error("Unsupported decorator location: "+G)};function n$8(W){return(O,U)=>typeof U=="object"?r$6(W,O,U):((G,Y,K)=>{const J=Y.hasOwnProperty(K);return Y.constructor.createProperty(K,J?{...G,wrapped:!0}:G),J?Object.getOwnPropertyDescriptor(Y,K):void 0})(W,O,U)}/**
44
+ */const o$f={attribute:!0,type:String,converter:u$a,reflect:!1,hasChanged:f$5},r$6=(W=o$f,O,U)=>{const{kind:G,metadata:Y}=U;let K=globalThis.litPropertyMetadata.get(Y);if(K===void 0&&globalThis.litPropertyMetadata.set(Y,K=new Map),K.set(U.name,W),G==="accessor"){const{name:J}=U;return{set(X){const se=O.get.call(this);O.set.call(this,X),this.requestUpdate(J,se,W)},init(X){return X!==void 0&&this.P(J,void 0,W),X}}}if(G==="setter"){const{name:J}=U;return function(X){const se=this[J];O.call(this,X),this.requestUpdate(J,se,W)}}throw Error("Unsupported decorator location: "+G)};function n$8(W){return(O,U)=>typeof U=="object"?r$6(W,O,U):((G,Y,K)=>{const J=Y.hasOwnProperty(K);return Y.constructor.createProperty(K,J?{...G,wrapped:!0}:G),J?Object.getOwnPropertyDescriptor(Y,K):void 0})(W,O,U)}/**
32
45
  * @license
33
46
  * Copyright 2017 Google LLC
34
47
  * SPDX-License-Identifier: BSD-3-Clause
@@ -54,7 +67,7 @@
54
67
  *
55
68
  * THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
56
69
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
57
- */const o$e=()=>{};function _isPlaceholder$1(W){return W!=null&&typeof W=="object"&&W["@@functional/placeholder"]===!0}function _curry1$1(W){return function O(U){return arguments.length===0||_isPlaceholder$1(U)?O:W.apply(this,arguments)}}function _curry2$1(W){return function O(U,G){switch(arguments.length){case 0:return O;case 1:return _isPlaceholder$1(U)?O:_curry1$1(function(Y){return W(U,Y)});default:return _isPlaceholder$1(U)&&_isPlaceholder$1(G)?O:_isPlaceholder$1(U)?_curry1$1(function(Y){return W(Y,G)}):_isPlaceholder$1(G)?_curry1$1(function(Y){return W(U,Y)}):W(U,G)}}}function _isFunction(W){var O=Object.prototype.toString.call(W);return O==="[object Function]"||O==="[object AsyncFunction]"||O==="[object GeneratorFunction]"||O==="[object AsyncGeneratorFunction]"}function _arrayFromIterator$1(W){for(var O=[],U;!(U=W.next()).done;)O.push(U.value);return O}function _includesWith$1(W,O,U){for(var G=0,Y=U.length;G<Y;){if(W(O,U[G]))return!0;G+=1}return!1}function _functionName$1(W){var O=String(W).match(/^function (\w*)/);return O==null?"":O[1]}function _has$1(W,O){return Object.prototype.hasOwnProperty.call(O,W)}function _objectIs$2(W,O){return W===O?W!==0||1/W===1/O:W!==W&&O!==O}const _objectIs$3=typeof Object.is=="function"?Object.is:_objectIs$2;var toString$3=Object.prototype.toString,_isArguments$1=function(){return toString$3.call(arguments)==="[object Arguments]"?function(O){return toString$3.call(O)==="[object Arguments]"}:function(O){return _has$1("callee",O)}}(),hasEnumBug$1=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps$1=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug$1=function(){return arguments.propertyIsEnumerable("length")}(),contains$1=function(O,U){for(var G=0;G<O.length;){if(O[G]===U)return!0;G+=1}return!1},keys$1=_curry1$1(typeof Object.keys=="function"&&!hasArgsEnumBug$1?function(O){return Object(O)!==O?[]:Object.keys(O)}:function(O){if(Object(O)!==O)return[];var U,G,Y=[],K=hasArgsEnumBug$1&&_isArguments$1(O);for(U in O)_has$1(U,O)&&(!K||U!=="length")&&(Y[Y.length]=U);if(hasEnumBug$1)for(G=nonEnumerableProps$1.length-1;G>=0;)U=nonEnumerableProps$1[G],_has$1(U,O)&&!contains$1(Y,U)&&(Y[Y.length]=U),G-=1;return Y}),type$1=_curry1$1(function(O){return O===null?"Null":O===void 0?"Undefined":Object.prototype.toString.call(O).slice(8,-1)});function _uniqContentEquals$1(W,O,U,G){var Y=_arrayFromIterator$1(W),K=_arrayFromIterator$1(O);function J(X,ie){return _equals$1(X,ie,U.slice(),G.slice())}return!_includesWith$1(function(X,ie){return!_includesWith$1(J,ie,X)},K,Y)}function _equals$1(W,O,U,G){if(_objectIs$3(W,O))return!0;var Y=type$1(W);if(Y!==type$1(O)||W==null||O==null)return!1;if(typeof W["fantasy-land/equals"]=="function"||typeof O["fantasy-land/equals"]=="function")return typeof W["fantasy-land/equals"]=="function"&&W["fantasy-land/equals"](O)&&typeof O["fantasy-land/equals"]=="function"&&O["fantasy-land/equals"](W);if(typeof W.equals=="function"||typeof O.equals=="function")return typeof W.equals=="function"&&W.equals(O)&&typeof O.equals=="function"&&O.equals(W);switch(Y){case"Arguments":case"Array":case"Object":if(typeof W.constructor=="function"&&_functionName$1(W.constructor)==="Promise")return W===O;break;case"Boolean":case"Number":case"String":if(!(typeof W==typeof O&&_objectIs$3(W.valueOf(),O.valueOf())))return!1;break;case"Date":if(!_objectIs$3(W.valueOf(),O.valueOf()))return!1;break;case"Error":return W.name===O.name&&W.message===O.message;case"RegExp":if(!(W.source===O.source&&W.global===O.global&&W.ignoreCase===O.ignoreCase&&W.multiline===O.multiline&&W.sticky===O.sticky&&W.unicode===O.unicode))return!1;break}for(var K=U.length-1;K>=0;){if(U[K]===W)return G[K]===O;K-=1}switch(Y){case"Map":return W.size!==O.size?!1:_uniqContentEquals$1(W.entries(),O.entries(),U.concat([W]),G.concat([O]));case"Set":return W.size!==O.size?!1:_uniqContentEquals$1(W.values(),O.values(),U.concat([W]),G.concat([O]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var J=keys$1(W);if(J.length!==keys$1(O).length)return!1;var X=U.concat([W]),ie=G.concat([O]);for(K=J.length-1;K>=0;){var ee=J[K];if(!(_has$1(ee,O)&&_equals$1(O[ee],W[ee],X,ie)))return!1;K-=1}return!0}var equals$1=_curry2$1(function(O,U){return _equals$1(O,U,[],[])});function _indexOf$1(W,O,U){var G,Y;if(typeof W.indexOf=="function")switch(typeof O){case"number":if(O===0){for(G=1/O;U<W.length;){if(Y=W[U],Y===0&&1/Y===G)return U;U+=1}return-1}else if(O!==O){for(;U<W.length;){if(Y=W[U],typeof Y=="number"&&Y!==Y)return U;U+=1}return-1}return W.indexOf(O,U);case"string":case"boolean":case"function":case"undefined":return W.indexOf(O,U);case"object":if(O===null)return W.indexOf(O,U)}for(;U<W.length;){if(equals$1(W[U],O))return U;U+=1}return-1}function _includes$1(W,O){return _indexOf$1(O,W,0)>=0}function _map$1(W,O){for(var U=0,G=O.length,Y=Array(G);U<G;)Y[U]=W(O[U]),U+=1;return Y}function _quote$1(W){var O=W.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+O.replace(/"/g,'\\"')+'"'}var pad$1=function(O){return(O<10?"0":"")+O},_toISOString$1=typeof Date.prototype.toISOString=="function"?function(O){return O.toISOString()}:function(O){return O.getUTCFullYear()+"-"+pad$1(O.getUTCMonth()+1)+"-"+pad$1(O.getUTCDate())+"T"+pad$1(O.getUTCHours())+":"+pad$1(O.getUTCMinutes())+":"+pad$1(O.getUTCSeconds())+"."+(O.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement$1(W){return function(){return!W.apply(this,arguments)}}const _isArray$1=Array.isArray||function(O){return O!=null&&O.length>=0&&Object.prototype.toString.call(O)==="[object Array]"};function _isTransformer$1(W){return W!=null&&typeof W["@@transducer/step"]=="function"}function _dispatchable$1(W,O,U){return function(){if(arguments.length===0)return U();var G=Array.prototype.slice.call(arguments,0),Y=G.pop();if(!_isArray$1(Y)){for(var K=0;K<W.length;){if(typeof Y[W[K]]=="function")return Y[W[K]].apply(Y,G);K+=1}if(_isTransformer$1(Y)){var J=O.apply(null,G);return J(Y)}}return U.apply(this,arguments)}}function _filter$1(W,O){for(var U=0,G=O.length,Y=[];U<G;)W(O[U])&&(Y[Y.length]=O[U]),U+=1;return Y}function _isObject$1(W){return Object.prototype.toString.call(W)==="[object Object]"}function _isString$1(W){return Object.prototype.toString.call(W)==="[object String]"}var _isArrayLike$1=_curry1$1(function(O){return _isArray$1(O)?!0:!O||typeof O!="object"||_isString$1(O)?!1:O.nodeType===1?!!O.length:O.length===0?!0:O.length>0?O.hasOwnProperty(0)&&O.hasOwnProperty(O.length-1):!1}),XWrap$1=function(){function W(O){this.f=O}return W.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},W.prototype["@@transducer/result"]=function(O){return O},W.prototype["@@transducer/step"]=function(O,U){return this.f(O,U)},W}();function _xwrap$1(W){return new XWrap$1(W)}function _arity$1(W,O){switch(W){case 0:return function(){return O.apply(this,arguments)};case 1:return function(U){return O.apply(this,arguments)};case 2:return function(U,G){return O.apply(this,arguments)};case 3:return function(U,G,Y){return O.apply(this,arguments)};case 4:return function(U,G,Y,K){return O.apply(this,arguments)};case 5:return function(U,G,Y,K,J){return O.apply(this,arguments)};case 6:return function(U,G,Y,K,J,X){return O.apply(this,arguments)};case 7:return function(U,G,Y,K,J,X,ie){return O.apply(this,arguments)};case 8:return function(U,G,Y,K,J,X,ie,ee){return O.apply(this,arguments)};case 9:return function(U,G,Y,K,J,X,ie,ee,ne){return O.apply(this,arguments)};case 10:return function(U,G,Y,K,J,X,ie,ee,ne,Q){return O.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var bind$2=_curry2$1(function(O,U){return _arity$1(O.length,function(){return O.apply(U,arguments)})});function _arrayReduce$1(W,O,U){for(var G=0,Y=U.length;G<Y;){if(O=W["@@transducer/step"](O,U[G]),O&&O["@@transducer/reduced"]){O=O["@@transducer/value"];break}G+=1}return W["@@transducer/result"](O)}function _iterableReduce(W,O,U){for(var G=U.next();!G.done;){if(O=W["@@transducer/step"](O,G.value),O&&O["@@transducer/reduced"]){O=O["@@transducer/value"];break}G=U.next()}return W["@@transducer/result"](O)}function _methodReduce(W,O,U,G){return W["@@transducer/result"](U[G](bind$2(W["@@transducer/step"],W),O))}var symIterator$1=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _reduce(W,O,U){if(typeof W=="function"&&(W=_xwrap$1(W)),_isArrayLike$1(U))return _arrayReduce$1(W,O,U);if(typeof U["fantasy-land/reduce"]=="function")return _methodReduce(W,O,U,"fantasy-land/reduce");if(U[symIterator$1]!=null)return _iterableReduce(W,O,U[symIterator$1]());if(typeof U.next=="function")return _iterableReduce(W,O,U);if(typeof U.reduce=="function")return _methodReduce(W,O,U,"reduce");throw new TypeError("reduce: list must be array or iterable")}const _xfBase$1={init:function(){return this.xf["@@transducer/init"]()},result:function(W){return this.xf["@@transducer/result"](W)}};var XFilter$1=function(){function W(O,U){this.xf=U,this.f=O}return W.prototype["@@transducer/init"]=_xfBase$1.init,W.prototype["@@transducer/result"]=_xfBase$1.result,W.prototype["@@transducer/step"]=function(O,U){return this.f(U)?this.xf["@@transducer/step"](O,U):O},W}(),_xfilter$1=_curry2$1(function(O,U){return new XFilter$1(O,U)}),filter$1=_curry2$1(_dispatchable$1(["filter"],_xfilter$1,function(W,O){return _isObject$1(O)?_reduce(function(U,G){return W(O[G])&&(U[G]=O[G]),U},{},keys$1(O)):_filter$1(W,O)})),reject$1=_curry2$1(function(O,U){return filter$1(_complement$1(O),U)});function _toString$1(W,O){var U=function(J){var X=O.concat([W]);return _includes$1(J,X)?"<Circular>":_toString$1(J,X)},G=function(K,J){return _map$1(function(X){return _quote$1(X)+": "+U(K[X])},J.slice().sort())};switch(Object.prototype.toString.call(W)){case"[object Arguments]":return"(function() { return arguments; }("+_map$1(U,W).join(", ")+"))";case"[object Array]":return"["+_map$1(U,W).concat(G(W,reject$1(function(K){return/^\d+$/.test(K)},keys$1(W)))).join(", ")+"]";case"[object Boolean]":return typeof W=="object"?"new Boolean("+U(W.valueOf())+")":W.toString();case"[object Date]":return"new Date("+(isNaN(W.valueOf())?U(NaN):_quote$1(_toISOString$1(W)))+")";case"[object Null]":return"null";case"[object Number]":return typeof W=="object"?"new Number("+U(W.valueOf())+")":1/W===-1/0?"-0":W.toString(10);case"[object String]":return typeof W=="object"?"new String("+U(W.valueOf())+")":_quote$1(W);case"[object Undefined]":return"undefined";default:if(typeof W.toString=="function"){var Y=W.toString();if(Y!=="[object Object]")return Y}return"{"+G(W,keys$1(W)).join(", ")+"}"}}function _assertPromise(W,O){if(O==null||!_isFunction(O.then))throw new TypeError("`"+W+"` expected a Promise, received "+_toString$1(O,[]))}var andThen=_curry2$1(function(O,U){return _assertPromise("andThen",U),U.then(O)}),XMap$1=function(){function W(O,U){this.xf=U,this.f=O}return W.prototype["@@transducer/init"]=_xfBase$1.init,W.prototype["@@transducer/result"]=_xfBase$1.result,W.prototype["@@transducer/step"]=function(O,U){return this.xf["@@transducer/step"](O,this.f(U))},W}(),_xmap$1=_curry2$1(function(O,U){return new XMap$1(O,U)});function _curryN$1(W,O,U){return function(){for(var G=[],Y=0,K=W,J=0;J<O.length||Y<arguments.length;){var X;J<O.length&&(!_isPlaceholder$1(O[J])||Y>=arguments.length)?X=O[J]:(X=arguments[Y],Y+=1),G[J]=X,_isPlaceholder$1(X)||(K-=1),J+=1}return K<=0?U.apply(this,G):_arity$1(K,_curryN$1(W,G,U))}}var curryN$1=_curry2$1(function(O,U){return O===1?_curry1$1(U):_arity$1(O,_curryN$1(O,[],U))}),map$1=_curry2$1(_dispatchable$1(["fantasy-land/map","map"],_xmap$1,function(O,U){switch(Object.prototype.toString.call(U)){case"[object Function]":return curryN$1(U.length,function(){return O.call(this,U.apply(this,arguments))});case"[object Object]":return _reduce(function(G,Y){return G[Y]=O(U[Y]),G},{},keys$1(U));default:return _map$1(O,U)}}));function _pipe(W,O){return function(){return O.call(this,W.apply(this,arguments))}}function _curry3$1(W){return function O(U,G,Y){switch(arguments.length){case 0:return O;case 1:return _isPlaceholder$1(U)?O:_curry2$1(function(K,J){return W(U,K,J)});case 2:return _isPlaceholder$1(U)&&_isPlaceholder$1(G)?O:_isPlaceholder$1(U)?_curry2$1(function(K,J){return W(K,G,J)}):_isPlaceholder$1(G)?_curry2$1(function(K,J){return W(U,K,J)}):_curry1$1(function(K){return W(U,G,K)});default:return _isPlaceholder$1(U)&&_isPlaceholder$1(G)&&_isPlaceholder$1(Y)?O:_isPlaceholder$1(U)&&_isPlaceholder$1(G)?_curry2$1(function(K,J){return W(K,J,Y)}):_isPlaceholder$1(U)&&_isPlaceholder$1(Y)?_curry2$1(function(K,J){return W(K,G,J)}):_isPlaceholder$1(G)&&_isPlaceholder$1(Y)?_curry2$1(function(K,J){return W(U,K,J)}):_isPlaceholder$1(U)?_curry1$1(function(K){return W(K,G,Y)}):_isPlaceholder$1(G)?_curry1$1(function(K){return W(U,K,Y)}):_isPlaceholder$1(Y)?_curry1$1(function(K){return W(U,G,K)}):W(U,G,Y)}}}var reduce$1=_curry3$1(_reduce);function _checkForMethod(W,O){return function(){var U=arguments.length;if(U===0)return O();var G=arguments[U-1];return _isArray$1(G)||typeof G[W]!="function"?O.apply(this,arguments):G[W].apply(G,Array.prototype.slice.call(arguments,0,U-1))}}var slice=_curry3$1(_checkForMethod("slice",function(O,U,G){return Array.prototype.slice.call(G,O,U)})),tail=_curry1$1(_checkForMethod("tail",slice(1,1/0)));function pipe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return _arity$1(arguments[0].length,reduce$1(_pipe,arguments[0],tail(arguments)))}let c$6=class{constructor(O){this.targetRegion=O}async attach(){const O=this.targetRegion.regionManager.getRegisteredViews(this.targetRegion.name);return pipe(map$1(U=>this.targetRegion.addView(U.key,U.view)),bind$2(Promise.all,Promise),andThen(o$e))(O)}detach(){return Promise.resolve()}},s$7=class{constructor(){this.registry=[]}get behaviors(){return[...this.registry]}register(O){this.behaviors.some(U=>U===O)||this.registry.push(O)}};const e$b=new s$7;e$b.register(c$6);const a$4=e$b;let l$7=class{constructor(O){this.host=O}get behaviors(){return a$4.behaviors.map(O=>new O(this.host.uxlRegion))}activateView(O){return this.host.contains(O)||this.addViewToHost(O),O.hidden=!1,Promise.resolve(void 0)}deactivateView(O){return O.view&&O.view.removeFromDomWhenDeactivated?this.removeViewFromHost(O):O.hidden=!0,Promise.resolve(null)}removeView(O){this.removeViewFromHost(O)}viewAdded(O){}addViewToHost(O){this.host.appendChild(O)}removeViewFromHost(O){this.host.removeChild(O),this.host.uxlRegion.viewRemovedFromDom(O.view)}};const e$a=(W,O)=>!W.sortHint&&!O.sortHint||!O.sortHint?-1:W.sortHint?W.sortHint.localeCompare(O.sortHint):1;let s$6=class extends l$7{async viewAdded(O){await this.host.uxlRegion.activate(O)}addViewToHost(O){const U=this.host.uxlRegion.currentActiveViews.sort(e$a).indexOf(O.view);U>=this.host.children.length?super.addViewToHost(O):this.host.insertBefore(O,this.host.children[U])}};const f$3=(W,O)=>new s$6(O);let o$d=class extends l$7{async activateView(O){const U=this.host.uxlRegion.currentActiveViews.filter(G=>G!==O.view);for(const G of U)await this.host.uxlRegion.deactivate(G);return super.activateView(O)}async deactivateView(O){await super.deactivateView(O);const U=this.host.uxlRegion.currentViews.find(G=>G.isDefault);U&&O.view!=U&&this.host.uxlRegion.currentActiveViews.length==0&&await this.host.uxlRegion.activate(U)}async viewAdded(O){!this.host.uxlRegion.currentActiveViews.length&&O.isDefault&&await this.host.uxlRegion.activate(O)}},o$c=class extends o$d{constructor(O){super(O),this.attrForSelected="name",this.attrForSelectedProperty="attrForSelected",this.selectedProperty="selected",O[this.attrForSelectedProperty]=this.attrForSelected}async activateView(O){await super.activateView(O),O[this.attrForSelected]||(O[this.attrForSelected]=O.viewKey),this.host[this.selectedProperty]=O.viewKey}async deactivateView(O){this.host[this.selectedProperty]===O.viewKey&&(this.host[this.selectedProperty]=null,await super.deactivateView(O))}};const d$4=(W,O)=>new o$c(O),a$3=(W,O)=>{if(W=typeof W=="function"?W():W,!W)throw new Error(O)},o$b=W=>typeof HTMLElement=="object"?W instanceof HTMLElement:W&&typeof W=="object"&&W!=null&&W.nodeType===1&&typeof W.nodeName=="string",f$2=W=>{if(!W.htmlTag&&!W.element&&!W.factory)throw new Error("One of properties htmlTag, factory or element must be set");return W.htmlTag&&a$3(typeof W.htmlTag=="string","htmlTag property must be an string"),W.factory&&a$3(typeof W.factory=="function","factory property must be a function"),W.element&&a$3(o$b(W.element),"element property must be an HTMLElement"),!0},f$1=async(W,O,U)=>{let G;return W.element?G=W.element:W.factory?G=await W.factory():W.htmlTag&&(W.htmlUrl&&await import(W.htmlUrl),G=window.document.createElement(W.htmlTag)),G.view=W,G.region=O,G.viewKey=U,G};let y$2=class{constructor(O,U,G,Y,K){this.name=O,this.regionManager=U,this.host=G,this.adapter=Y,this.definition=K,this.views={},this.activeViews=[],this.components=new WeakMap,this.host.uxlRegion=this}async addView(O,U){return f$2(U),a$3(typeof this.getView(O)>"u",`Already exists a view with key ${O}`),this.views[O]=U,await this.adapter.viewAdded(U),this}async removeView(O){await this.deactivate(O),this.remove(O),delete this.views[O]}async removeViews(){Object.keys(this.views).forEach(O=>this.removeView(O))}get context(){return this._context}set context(O){this._context=O,Object.keys(this.views).forEach(U=>{const G=this.views[U];if(this.components.has(G)){const Y=this.components.get(G);Y&&(Y.regionContext=this._context)}})}async activate(O){let U=O;if(typeof O=="string"?(U=this.getView(O),a$3(U,`Region does not contain a view with key ${O}`)):a$3(Object.keys(this.views).some(G=>typeof this.views[G]<"u"),"Region does not contain this view"),!this.activeViews.some(G=>G===U)){if(!this.components.has(U)){const Y=await f$1(U,this,typeof O=="string"?O:this.getKey(U));Y.regionContext=this.context,this.components.set(U,Y)}const G=this.components.get(U);this.activeViews.push(U),G.active=!0,await this.adapter.activateView(G)}return this}viewRemovedFromDom(O){this.components.delete(O)}remove(O){const U=typeof O=="string"?this.getView(O):O,G=this.components.get(U);G&&this.adapter.removeView(G)}async deactivate(O){const U=typeof O=="string"?this.getView(O):O,G=this.activeViews.indexOf(U);G!==-1&&this.activeViews.splice(G,1);const Y=this.components.get(U);Y&&(Y.active=!1,await this.adapter.deactivateView(Y))}getView(O){return this.views[O]}get currentViews(){return Object.keys(this.views).map(O=>this.views[O])}get currentActiveViews(){return[...this.activeViews]}getKey(O){return Object.keys(this.views).find(U=>this.views[U]==O)}containsView(O){return typeof O=="string"?this.getView(O)!==void 0:Object.keys(this.views).some(U=>this.views[U]==O)}isViewActive(O){if(this.containsView(O)){const U=typeof O=="string"?this.getView(O):O;return this.activeViews.indexOf(U)!==-1}throw new Error(`region ${this.name} doest not contain this view`)}async toggleViewActive(O){if(this.containsView(O))return this.isViewActive(O)?(await this.deactivate(O),!1):(await this.activate(O),!0);throw new Error(`region ${this.name} doest not contain this view`)}};const e$9="default",r$5="dynamic";let y$1=class{constructor(){this.adapterRegistry=new Map,this.adapterRegistry.set(r$5,[])}registerAdapterFactory(O,U){this.adapterRegistry.set(O,U)}get dynamicFactories(){return this.adapterRegistry.get(r$5)}registerDynamicAdapterFactory(O){this.dynamicFactories.indexOf(O)===-1&&this.dynamicFactories.push(O)}getDynamicFactory(O){return this.dynamicFactories.reduce((U,G)=>U||G(O),null)}getAdapterFactory(O){return this.getDynamicFactory(O)||(this.adapterRegistry.has(O.constructor)?this.adapterRegistry.get(O.constructor):this.adapterRegistry.has(O.localName)?this.adapterRegistry.get(O.localName):this.adapterRegistry.has(O.tagName)?this.adapterRegistry.get(O.tagName):this.adapterRegistry.has(e$9)?this.adapterRegistry.get(e$9):null)}registerDefaultAdapterFactory(O){this.adapterRegistry.set(e$9,O)}};const p$6=new y$1,o$a="__uxl_regions__",s$5=W=>(O,U)=>{O.constructor[o$a]={...O.constructor[o$a],[U]:W}},p$5=(W,O,U)=>{const G=U.getAdapterFactory(O);return a$3(typeof G=="function","No region adapter factory found for the host"),G(W,O)},h$4=async(W,O,U,G)=>{await O._updatePromise;const Y=O.shadowRoot.querySelector(`#${W.targetId}`);if(Y){const K=W.adapterFactory?W.adapterFactory(W,Y):p$5(W,Y,G);a$3(K,"No region adapter found for the host");const J=W.scoped?U.createRegionManager():U,X=new y$2(W.name,J,Y,K,W);return J.add(W.name,X),X}else console.warn(`region host with id ${W.targetId} not found for region named ${W.name}`)};/*
70
+ */const o$e=()=>{};function _isPlaceholder$1(W){return W!=null&&typeof W=="object"&&W["@@functional/placeholder"]===!0}function _curry1$1(W){return function O(U){return arguments.length===0||_isPlaceholder$1(U)?O:W.apply(this,arguments)}}function _curry2$1(W){return function O(U,G){switch(arguments.length){case 0:return O;case 1:return _isPlaceholder$1(U)?O:_curry1$1(function(Y){return W(U,Y)});default:return _isPlaceholder$1(U)&&_isPlaceholder$1(G)?O:_isPlaceholder$1(U)?_curry1$1(function(Y){return W(Y,G)}):_isPlaceholder$1(G)?_curry1$1(function(Y){return W(U,Y)}):W(U,G)}}}function _isFunction(W){var O=Object.prototype.toString.call(W);return O==="[object Function]"||O==="[object AsyncFunction]"||O==="[object GeneratorFunction]"||O==="[object AsyncGeneratorFunction]"}function _arrayFromIterator$1(W){for(var O=[],U;!(U=W.next()).done;)O.push(U.value);return O}function _includesWith$1(W,O,U){for(var G=0,Y=U.length;G<Y;){if(W(O,U[G]))return!0;G+=1}return!1}function _functionName$1(W){var O=String(W).match(/^function (\w*)/);return O==null?"":O[1]}function _has$1(W,O){return Object.prototype.hasOwnProperty.call(O,W)}function _objectIs$2(W,O){return W===O?W!==0||1/W===1/O:W!==W&&O!==O}const _objectIs$3=typeof Object.is=="function"?Object.is:_objectIs$2;var toString$3=Object.prototype.toString,_isArguments$1=function(){return toString$3.call(arguments)==="[object Arguments]"?function(O){return toString$3.call(O)==="[object Arguments]"}:function(O){return _has$1("callee",O)}}(),hasEnumBug$1=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps$1=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug$1=function(){return arguments.propertyIsEnumerable("length")}(),contains$1=function(O,U){for(var G=0;G<O.length;){if(O[G]===U)return!0;G+=1}return!1},keys$1=_curry1$1(typeof Object.keys=="function"&&!hasArgsEnumBug$1?function(O){return Object(O)!==O?[]:Object.keys(O)}:function(O){if(Object(O)!==O)return[];var U,G,Y=[],K=hasArgsEnumBug$1&&_isArguments$1(O);for(U in O)_has$1(U,O)&&(!K||U!=="length")&&(Y[Y.length]=U);if(hasEnumBug$1)for(G=nonEnumerableProps$1.length-1;G>=0;)U=nonEnumerableProps$1[G],_has$1(U,O)&&!contains$1(Y,U)&&(Y[Y.length]=U),G-=1;return Y}),type$1=_curry1$1(function(O){return O===null?"Null":O===void 0?"Undefined":Object.prototype.toString.call(O).slice(8,-1)});function _uniqContentEquals$1(W,O,U,G){var Y=_arrayFromIterator$1(W),K=_arrayFromIterator$1(O);function J(X,se){return _equals$1(X,se,U.slice(),G.slice())}return!_includesWith$1(function(X,se){return!_includesWith$1(J,se,X)},K,Y)}function _equals$1(W,O,U,G){if(_objectIs$3(W,O))return!0;var Y=type$1(W);if(Y!==type$1(O)||W==null||O==null)return!1;if(typeof W["fantasy-land/equals"]=="function"||typeof O["fantasy-land/equals"]=="function")return typeof W["fantasy-land/equals"]=="function"&&W["fantasy-land/equals"](O)&&typeof O["fantasy-land/equals"]=="function"&&O["fantasy-land/equals"](W);if(typeof W.equals=="function"||typeof O.equals=="function")return typeof W.equals=="function"&&W.equals(O)&&typeof O.equals=="function"&&O.equals(W);switch(Y){case"Arguments":case"Array":case"Object":if(typeof W.constructor=="function"&&_functionName$1(W.constructor)==="Promise")return W===O;break;case"Boolean":case"Number":case"String":if(!(typeof W==typeof O&&_objectIs$3(W.valueOf(),O.valueOf())))return!1;break;case"Date":if(!_objectIs$3(W.valueOf(),O.valueOf()))return!1;break;case"Error":return W.name===O.name&&W.message===O.message;case"RegExp":if(!(W.source===O.source&&W.global===O.global&&W.ignoreCase===O.ignoreCase&&W.multiline===O.multiline&&W.sticky===O.sticky&&W.unicode===O.unicode))return!1;break}for(var K=U.length-1;K>=0;){if(U[K]===W)return G[K]===O;K-=1}switch(Y){case"Map":return W.size!==O.size?!1:_uniqContentEquals$1(W.entries(),O.entries(),U.concat([W]),G.concat([O]));case"Set":return W.size!==O.size?!1:_uniqContentEquals$1(W.values(),O.values(),U.concat([W]),G.concat([O]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var J=keys$1(W);if(J.length!==keys$1(O).length)return!1;var X=U.concat([W]),se=G.concat([O]);for(K=J.length-1;K>=0;){var ee=J[K];if(!(_has$1(ee,O)&&_equals$1(O[ee],W[ee],X,se)))return!1;K-=1}return!0}var equals$1=_curry2$1(function(O,U){return _equals$1(O,U,[],[])});function _indexOf$1(W,O,U){var G,Y;if(typeof W.indexOf=="function")switch(typeof O){case"number":if(O===0){for(G=1/O;U<W.length;){if(Y=W[U],Y===0&&1/Y===G)return U;U+=1}return-1}else if(O!==O){for(;U<W.length;){if(Y=W[U],typeof Y=="number"&&Y!==Y)return U;U+=1}return-1}return W.indexOf(O,U);case"string":case"boolean":case"function":case"undefined":return W.indexOf(O,U);case"object":if(O===null)return W.indexOf(O,U)}for(;U<W.length;){if(equals$1(W[U],O))return U;U+=1}return-1}function _includes$1(W,O){return _indexOf$1(O,W,0)>=0}function _map$1(W,O){for(var U=0,G=O.length,Y=Array(G);U<G;)Y[U]=W(O[U]),U+=1;return Y}function _quote$1(W){var O=W.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+O.replace(/"/g,'\\"')+'"'}var pad$1=function(O){return(O<10?"0":"")+O},_toISOString$1=typeof Date.prototype.toISOString=="function"?function(O){return O.toISOString()}:function(O){return O.getUTCFullYear()+"-"+pad$1(O.getUTCMonth()+1)+"-"+pad$1(O.getUTCDate())+"T"+pad$1(O.getUTCHours())+":"+pad$1(O.getUTCMinutes())+":"+pad$1(O.getUTCSeconds())+"."+(O.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement$1(W){return function(){return!W.apply(this,arguments)}}const _isArray$1=Array.isArray||function(O){return O!=null&&O.length>=0&&Object.prototype.toString.call(O)==="[object Array]"};function _isTransformer$1(W){return W!=null&&typeof W["@@transducer/step"]=="function"}function _dispatchable$1(W,O,U){return function(){if(arguments.length===0)return U();var G=Array.prototype.slice.call(arguments,0),Y=G.pop();if(!_isArray$1(Y)){for(var K=0;K<W.length;){if(typeof Y[W[K]]=="function")return Y[W[K]].apply(Y,G);K+=1}if(_isTransformer$1(Y)){var J=O.apply(null,G);return J(Y)}}return U.apply(this,arguments)}}function _filter$1(W,O){for(var U=0,G=O.length,Y=[];U<G;)W(O[U])&&(Y[Y.length]=O[U]),U+=1;return Y}function _isObject$1(W){return Object.prototype.toString.call(W)==="[object Object]"}function _isString$1(W){return Object.prototype.toString.call(W)==="[object String]"}var _isArrayLike$1=_curry1$1(function(O){return _isArray$1(O)?!0:!O||typeof O!="object"||_isString$1(O)?!1:O.nodeType===1?!!O.length:O.length===0?!0:O.length>0?O.hasOwnProperty(0)&&O.hasOwnProperty(O.length-1):!1}),XWrap$1=function(){function W(O){this.f=O}return W.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},W.prototype["@@transducer/result"]=function(O){return O},W.prototype["@@transducer/step"]=function(O,U){return this.f(O,U)},W}();function _xwrap$1(W){return new XWrap$1(W)}function _arity$1(W,O){switch(W){case 0:return function(){return O.apply(this,arguments)};case 1:return function(U){return O.apply(this,arguments)};case 2:return function(U,G){return O.apply(this,arguments)};case 3:return function(U,G,Y){return O.apply(this,arguments)};case 4:return function(U,G,Y,K){return O.apply(this,arguments)};case 5:return function(U,G,Y,K,J){return O.apply(this,arguments)};case 6:return function(U,G,Y,K,J,X){return O.apply(this,arguments)};case 7:return function(U,G,Y,K,J,X,se){return O.apply(this,arguments)};case 8:return function(U,G,Y,K,J,X,se,ee){return O.apply(this,arguments)};case 9:return function(U,G,Y,K,J,X,se,ee,ne){return O.apply(this,arguments)};case 10:return function(U,G,Y,K,J,X,se,ee,ne,Q){return O.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var bind$2=_curry2$1(function(O,U){return _arity$1(O.length,function(){return O.apply(U,arguments)})});function _arrayReduce$1(W,O,U){for(var G=0,Y=U.length;G<Y;){if(O=W["@@transducer/step"](O,U[G]),O&&O["@@transducer/reduced"]){O=O["@@transducer/value"];break}G+=1}return W["@@transducer/result"](O)}function _iterableReduce(W,O,U){for(var G=U.next();!G.done;){if(O=W["@@transducer/step"](O,G.value),O&&O["@@transducer/reduced"]){O=O["@@transducer/value"];break}G=U.next()}return W["@@transducer/result"](O)}function _methodReduce(W,O,U,G){return W["@@transducer/result"](U[G](bind$2(W["@@transducer/step"],W),O))}var symIterator$1=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _reduce(W,O,U){if(typeof W=="function"&&(W=_xwrap$1(W)),_isArrayLike$1(U))return _arrayReduce$1(W,O,U);if(typeof U["fantasy-land/reduce"]=="function")return _methodReduce(W,O,U,"fantasy-land/reduce");if(U[symIterator$1]!=null)return _iterableReduce(W,O,U[symIterator$1]());if(typeof U.next=="function")return _iterableReduce(W,O,U);if(typeof U.reduce=="function")return _methodReduce(W,O,U,"reduce");throw new TypeError("reduce: list must be array or iterable")}const _xfBase$1={init:function(){return this.xf["@@transducer/init"]()},result:function(W){return this.xf["@@transducer/result"](W)}};var XFilter$1=function(){function W(O,U){this.xf=U,this.f=O}return W.prototype["@@transducer/init"]=_xfBase$1.init,W.prototype["@@transducer/result"]=_xfBase$1.result,W.prototype["@@transducer/step"]=function(O,U){return this.f(U)?this.xf["@@transducer/step"](O,U):O},W}(),_xfilter$1=_curry2$1(function(O,U){return new XFilter$1(O,U)}),filter$1=_curry2$1(_dispatchable$1(["filter"],_xfilter$1,function(W,O){return _isObject$1(O)?_reduce(function(U,G){return W(O[G])&&(U[G]=O[G]),U},{},keys$1(O)):_filter$1(W,O)})),reject$1=_curry2$1(function(O,U){return filter$1(_complement$1(O),U)});function _toString$1(W,O){var U=function(J){var X=O.concat([W]);return _includes$1(J,X)?"<Circular>":_toString$1(J,X)},G=function(K,J){return _map$1(function(X){return _quote$1(X)+": "+U(K[X])},J.slice().sort())};switch(Object.prototype.toString.call(W)){case"[object Arguments]":return"(function() { return arguments; }("+_map$1(U,W).join(", ")+"))";case"[object Array]":return"["+_map$1(U,W).concat(G(W,reject$1(function(K){return/^\d+$/.test(K)},keys$1(W)))).join(", ")+"]";case"[object Boolean]":return typeof W=="object"?"new Boolean("+U(W.valueOf())+")":W.toString();case"[object Date]":return"new Date("+(isNaN(W.valueOf())?U(NaN):_quote$1(_toISOString$1(W)))+")";case"[object Null]":return"null";case"[object Number]":return typeof W=="object"?"new Number("+U(W.valueOf())+")":1/W===-1/0?"-0":W.toString(10);case"[object String]":return typeof W=="object"?"new String("+U(W.valueOf())+")":_quote$1(W);case"[object Undefined]":return"undefined";default:if(typeof W.toString=="function"){var Y=W.toString();if(Y!=="[object Object]")return Y}return"{"+G(W,keys$1(W)).join(", ")+"}"}}function _assertPromise(W,O){if(O==null||!_isFunction(O.then))throw new TypeError("`"+W+"` expected a Promise, received "+_toString$1(O,[]))}var andThen=_curry2$1(function(O,U){return _assertPromise("andThen",U),U.then(O)}),XMap$1=function(){function W(O,U){this.xf=U,this.f=O}return W.prototype["@@transducer/init"]=_xfBase$1.init,W.prototype["@@transducer/result"]=_xfBase$1.result,W.prototype["@@transducer/step"]=function(O,U){return this.xf["@@transducer/step"](O,this.f(U))},W}(),_xmap$1=_curry2$1(function(O,U){return new XMap$1(O,U)});function _curryN$1(W,O,U){return function(){for(var G=[],Y=0,K=W,J=0;J<O.length||Y<arguments.length;){var X;J<O.length&&(!_isPlaceholder$1(O[J])||Y>=arguments.length)?X=O[J]:(X=arguments[Y],Y+=1),G[J]=X,_isPlaceholder$1(X)||(K-=1),J+=1}return K<=0?U.apply(this,G):_arity$1(K,_curryN$1(W,G,U))}}var curryN$1=_curry2$1(function(O,U){return O===1?_curry1$1(U):_arity$1(O,_curryN$1(O,[],U))}),map$1=_curry2$1(_dispatchable$1(["fantasy-land/map","map"],_xmap$1,function(O,U){switch(Object.prototype.toString.call(U)){case"[object Function]":return curryN$1(U.length,function(){return O.call(this,U.apply(this,arguments))});case"[object Object]":return _reduce(function(G,Y){return G[Y]=O(U[Y]),G},{},keys$1(U));default:return _map$1(O,U)}}));function _pipe(W,O){return function(){return O.call(this,W.apply(this,arguments))}}function _curry3$1(W){return function O(U,G,Y){switch(arguments.length){case 0:return O;case 1:return _isPlaceholder$1(U)?O:_curry2$1(function(K,J){return W(U,K,J)});case 2:return _isPlaceholder$1(U)&&_isPlaceholder$1(G)?O:_isPlaceholder$1(U)?_curry2$1(function(K,J){return W(K,G,J)}):_isPlaceholder$1(G)?_curry2$1(function(K,J){return W(U,K,J)}):_curry1$1(function(K){return W(U,G,K)});default:return _isPlaceholder$1(U)&&_isPlaceholder$1(G)&&_isPlaceholder$1(Y)?O:_isPlaceholder$1(U)&&_isPlaceholder$1(G)?_curry2$1(function(K,J){return W(K,J,Y)}):_isPlaceholder$1(U)&&_isPlaceholder$1(Y)?_curry2$1(function(K,J){return W(K,G,J)}):_isPlaceholder$1(G)&&_isPlaceholder$1(Y)?_curry2$1(function(K,J){return W(U,K,J)}):_isPlaceholder$1(U)?_curry1$1(function(K){return W(K,G,Y)}):_isPlaceholder$1(G)?_curry1$1(function(K){return W(U,K,Y)}):_isPlaceholder$1(Y)?_curry1$1(function(K){return W(U,G,K)}):W(U,G,Y)}}}var reduce$1=_curry3$1(_reduce);function _checkForMethod(W,O){return function(){var U=arguments.length;if(U===0)return O();var G=arguments[U-1];return _isArray$1(G)||typeof G[W]!="function"?O.apply(this,arguments):G[W].apply(G,Array.prototype.slice.call(arguments,0,U-1))}}var slice=_curry3$1(_checkForMethod("slice",function(O,U,G){return Array.prototype.slice.call(G,O,U)})),tail=_curry1$1(_checkForMethod("tail",slice(1,1/0)));function pipe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return _arity$1(arguments[0].length,reduce$1(_pipe,arguments[0],tail(arguments)))}let c$6=class{constructor(O){this.targetRegion=O}async attach(){const O=this.targetRegion.regionManager.getRegisteredViews(this.targetRegion.name);return pipe(map$1(U=>this.targetRegion.addView(U.key,U.view)),bind$2(Promise.all,Promise),andThen(o$e))(O)}detach(){return Promise.resolve()}},s$7=class{constructor(){this.registry=[]}get behaviors(){return[...this.registry]}register(O){this.behaviors.some(U=>U===O)||this.registry.push(O)}};const e$b=new s$7;e$b.register(c$6);const a$4=e$b;let l$7=class{constructor(O){this.host=O}get behaviors(){return a$4.behaviors.map(O=>new O(this.host.uxlRegion))}activateView(O){return this.host.contains(O)||this.addViewToHost(O),O.hidden=!1,Promise.resolve(void 0)}deactivateView(O){return O.view&&O.view.removeFromDomWhenDeactivated?this.removeViewFromHost(O):O.hidden=!0,Promise.resolve(null)}removeView(O){this.removeViewFromHost(O)}viewAdded(O){}addViewToHost(O){this.host.appendChild(O)}removeViewFromHost(O){this.host.removeChild(O),this.host.uxlRegion.viewRemovedFromDom(O.view)}};const e$a=(W,O)=>!W.sortHint&&!O.sortHint||!O.sortHint?-1:W.sortHint?W.sortHint.localeCompare(O.sortHint):1;let s$6=class extends l$7{async viewAdded(O){await this.host.uxlRegion.activate(O)}addViewToHost(O){const U=this.host.uxlRegion.currentActiveViews.sort(e$a).indexOf(O.view);U>=this.host.children.length?super.addViewToHost(O):this.host.insertBefore(O,this.host.children[U])}};const f$3=(W,O)=>new s$6(O);let o$d=class extends l$7{async activateView(O){const U=this.host.uxlRegion.currentActiveViews.filter(G=>G!==O.view);for(const G of U)await this.host.uxlRegion.deactivate(G);return super.activateView(O)}async deactivateView(O){await super.deactivateView(O);const U=this.host.uxlRegion.currentViews.find(G=>G.isDefault);U&&O.view!=U&&this.host.uxlRegion.currentActiveViews.length==0&&await this.host.uxlRegion.activate(U)}async viewAdded(O){!this.host.uxlRegion.currentActiveViews.length&&O.isDefault&&await this.host.uxlRegion.activate(O)}},o$c=class extends o$d{constructor(O){super(O),this.attrForSelected="name",this.attrForSelectedProperty="attrForSelected",this.selectedProperty="selected",O[this.attrForSelectedProperty]=this.attrForSelected}async activateView(O){await super.activateView(O),O[this.attrForSelected]||(O[this.attrForSelected]=O.viewKey),this.host[this.selectedProperty]=O.viewKey}async deactivateView(O){this.host[this.selectedProperty]===O.viewKey&&(this.host[this.selectedProperty]=null,await super.deactivateView(O))}};const d$4=(W,O)=>new o$c(O),a$3=(W,O)=>{if(W=typeof W=="function"?W():W,!W)throw new Error(O)},o$b=W=>typeof HTMLElement=="object"?W instanceof HTMLElement:W&&typeof W=="object"&&W!=null&&W.nodeType===1&&typeof W.nodeName=="string",f$2=W=>{if(!W.htmlTag&&!W.element&&!W.factory)throw new Error("One of properties htmlTag, factory or element must be set");return W.htmlTag&&a$3(typeof W.htmlTag=="string","htmlTag property must be an string"),W.factory&&a$3(typeof W.factory=="function","factory property must be a function"),W.element&&a$3(o$b(W.element),"element property must be an HTMLElement"),!0},f$1=async(W,O,U)=>{let G;return W.element?G=W.element:W.factory?G=await W.factory():W.htmlTag&&(W.htmlUrl&&await import(W.htmlUrl),G=window.document.createElement(W.htmlTag)),G.view=W,G.region=O,G.viewKey=U,G};let y$2=class{constructor(O,U,G,Y,K){this.name=O,this.regionManager=U,this.host=G,this.adapter=Y,this.definition=K,this.views={},this.activeViews=[],this.components=new WeakMap,this.host.uxlRegion=this}async addView(O,U){return f$2(U),a$3(typeof this.getView(O)>"u",`Already exists a view with key ${O}`),this.views[O]=U,await this.adapter.viewAdded(U),this}async removeView(O){await this.deactivate(O),this.remove(O),delete this.views[O]}async removeViews(){Object.keys(this.views).forEach(O=>this.removeView(O))}get context(){return this._context}set context(O){this._context=O,Object.keys(this.views).forEach(U=>{const G=this.views[U];if(this.components.has(G)){const Y=this.components.get(G);Y&&(Y.regionContext=this._context)}})}async activate(O){let U=O;if(typeof O=="string"?(U=this.getView(O),a$3(U,`Region does not contain a view with key ${O}`)):a$3(Object.keys(this.views).some(G=>typeof this.views[G]<"u"),"Region does not contain this view"),!this.activeViews.some(G=>G===U)){if(!this.components.has(U)){const Y=await f$1(U,this,typeof O=="string"?O:this.getKey(U));Y.regionContext=this.context,this.components.set(U,Y)}const G=this.components.get(U);this.activeViews.push(U),G.active=!0,await this.adapter.activateView(G)}return this}viewRemovedFromDom(O){this.components.delete(O)}remove(O){const U=typeof O=="string"?this.getView(O):O,G=this.components.get(U);G&&this.adapter.removeView(G)}async deactivate(O){const U=typeof O=="string"?this.getView(O):O,G=this.activeViews.indexOf(U);G!==-1&&this.activeViews.splice(G,1);const Y=this.components.get(U);Y&&(Y.active=!1,await this.adapter.deactivateView(Y))}getView(O){return this.views[O]}get currentViews(){return Object.keys(this.views).map(O=>this.views[O])}get currentActiveViews(){return[...this.activeViews]}getKey(O){return Object.keys(this.views).find(U=>this.views[U]==O)}containsView(O){return typeof O=="string"?this.getView(O)!==void 0:Object.keys(this.views).some(U=>this.views[U]==O)}isViewActive(O){if(this.containsView(O)){const U=typeof O=="string"?this.getView(O):O;return this.activeViews.indexOf(U)!==-1}throw new Error(`region ${this.name} doest not contain this view`)}async toggleViewActive(O){if(this.containsView(O))return this.isViewActive(O)?(await this.deactivate(O),!1):(await this.activate(O),!0);throw new Error(`region ${this.name} doest not contain this view`)}};const e$9="default",r$5="dynamic";let y$1=class{constructor(){this.adapterRegistry=new Map,this.adapterRegistry.set(r$5,[])}registerAdapterFactory(O,U){this.adapterRegistry.set(O,U)}get dynamicFactories(){return this.adapterRegistry.get(r$5)}registerDynamicAdapterFactory(O){this.dynamicFactories.indexOf(O)===-1&&this.dynamicFactories.push(O)}getDynamicFactory(O){return this.dynamicFactories.reduce((U,G)=>U||G(O),null)}getAdapterFactory(O){return this.getDynamicFactory(O)||(this.adapterRegistry.has(O.constructor)?this.adapterRegistry.get(O.constructor):this.adapterRegistry.has(O.localName)?this.adapterRegistry.get(O.localName):this.adapterRegistry.has(O.tagName)?this.adapterRegistry.get(O.tagName):this.adapterRegistry.has(e$9)?this.adapterRegistry.get(e$9):null)}registerDefaultAdapterFactory(O){this.adapterRegistry.set(e$9,O)}};const p$6=new y$1,o$a="__uxl_regions__",s$5=W=>(O,U)=>{O.constructor[o$a]={...O.constructor[o$a],[U]:W}},p$5=(W,O,U)=>{const G=U.getAdapterFactory(O);return a$3(typeof G=="function","No region adapter factory found for the host"),G(W,O)},h$4=async(W,O,U,G)=>{await O._updatePromise;const Y=O.shadowRoot.querySelector(`#${W.targetId}`);if(Y){const K=W.adapterFactory?W.adapterFactory(W,Y):p$5(W,Y,G);a$3(K,"No region adapter found for the host");const J=W.scoped?U.createRegionManager():U,X=new y$2(W.name,J,Y,K,W);return J.add(W.name,X),X}else console.warn(`region host with id ${W.targetId} not found for region named ${W.name}`)};/*
58
71
  * @license
59
72
  * BSD License
60
73
  *
@@ -84,11 +97,11 @@
84
97
  * SPDX-License-Identifier: BSD-3-Clause
85
98
  */var t$5;const i$4=window,s$2=i$4.trustedTypes,e$6=s$2?s$2.createPolicy("lit-html",{createHTML:W=>W}):void 0,o$7="$lit$",n$4=`lit$${(Math.random()+"").slice(9)}$`,l$5="?"+n$4,h$2=`<${l$5}>`,r$1=document,u$7=()=>r$1.createComment(""),d$1=W=>W===null||typeof W!="object"&&typeof W!="function",c$4=Array.isArray,v$1=W=>c$4(W)||typeof(W==null?void 0:W[Symbol.iterator])=="function",a$1=`[
86
99
  \f\r]`,f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m$1=/>/g,p$4=RegExp(`>|${a$1}(?:([^\\s"'>=/]+)(${a$1}*=${a$1}*(?:[^
87
- \f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,w$2=W=>(O,...U)=>({_$litType$:W,strings:O,values:U}),x=w$2(1),T$3=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),E$1=new WeakMap,C=r$1.createTreeWalker(r$1,129,null,!1);function P(W,O){if(!Array.isArray(W)||!W.hasOwnProperty("raw"))throw Error("invalid template strings array");return e$6!==void 0?e$6.createHTML(O):O}const V=(W,O)=>{const U=W.length-1,G=[];let Y,K=O===2?"<svg>":"",J=f;for(let X=0;X<U;X++){const ie=W[X];let ee,ne,Q=-1,te=0;for(;te<ie.length&&(J.lastIndex=te,ne=J.exec(ie),ne!==null);)te=J.lastIndex,J===f?ne[1]==="!--"?J=_:ne[1]!==void 0?J=m$1:ne[2]!==void 0?(y.test(ne[2])&&(Y=RegExp("</"+ne[2],"g")),J=p$4):ne[3]!==void 0&&(J=p$4):J===p$4?ne[0]===">"?(J=Y??f,Q=-1):ne[1]===void 0?Q=-2:(Q=J.lastIndex-ne[2].length,ee=ne[1],J=ne[3]===void 0?p$4:ne[3]==='"'?$:g):J===$||J===g?J=p$4:J===_||J===m$1?J=f:(J=p$4,Y=void 0);const se=J===p$4&&W[X+1].startsWith("/>")?" ":"";K+=J===f?ie+h$2:Q>=0?(G.push(ee),ie.slice(0,Q)+o$7+ie.slice(Q)+n$4+se):ie+n$4+(Q===-2?(G.push(void 0),X):se)}return[P(W,K+(W[U]||"<?>")+(O===2?"</svg>":"")),G]};class N{constructor({strings:O,_$litType$:U},G){let Y;this.parts=[];let K=0,J=0;const X=O.length-1,ie=this.parts,[ee,ne]=V(O,U);if(this.el=N.createElement(ee,G),C.currentNode=this.el.content,U===2){const Q=this.el.content,te=Q.firstChild;te.remove(),Q.append(...te.childNodes)}for(;(Y=C.nextNode())!==null&&ie.length<X;){if(Y.nodeType===1){if(Y.hasAttributes()){const Q=[];for(const te of Y.getAttributeNames())if(te.endsWith(o$7)||te.startsWith(n$4)){const se=ne[J++];if(Q.push(te),se!==void 0){const le=Y.getAttribute(se.toLowerCase()+o$7).split(n$4),oe=/([.?@])?(.*)/.exec(se);ie.push({type:1,index:K,name:oe[2],strings:le,ctor:oe[1]==="."?H$1:oe[1]==="?"?L$2:oe[1]==="@"?z:k})}else ie.push({type:6,index:K})}for(const te of Q)Y.removeAttribute(te)}if(y.test(Y.tagName)){const Q=Y.textContent.split(n$4),te=Q.length-1;if(te>0){Y.textContent=s$2?s$2.emptyScript:"";for(let se=0;se<te;se++)Y.append(Q[se],u$7()),C.nextNode(),ie.push({type:2,index:++K});Y.append(Q[te],u$7())}}}else if(Y.nodeType===8)if(Y.data===l$5)ie.push({type:2,index:K});else{let Q=-1;for(;(Q=Y.data.indexOf(n$4,Q+1))!==-1;)ie.push({type:7,index:K}),Q+=n$4.length-1}K++}}static createElement(O,U){const G=r$1.createElement("template");return G.innerHTML=O,G}}function S(W,O,U=W,G){var Y,K,J,X;if(O===T$3)return O;let ie=G!==void 0?(Y=U._$Co)===null||Y===void 0?void 0:Y[G]:U._$Cl;const ee=d$1(O)?void 0:O._$litDirective$;return(ie==null?void 0:ie.constructor)!==ee&&((K=ie==null?void 0:ie._$AO)===null||K===void 0||K.call(ie,!1),ee===void 0?ie=void 0:(ie=new ee(W),ie._$AT(W,U,G)),G!==void 0?((J=(X=U)._$Co)!==null&&J!==void 0?J:X._$Co=[])[G]=ie:U._$Cl=ie),ie!==void 0&&(O=S(W,ie._$AS(W,O.values),ie,G)),O}class M{constructor(O,U){this._$AV=[],this._$AN=void 0,this._$AD=O,this._$AM=U}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(O){var U;const{el:{content:G},parts:Y}=this._$AD,K=((U=O==null?void 0:O.creationScope)!==null&&U!==void 0?U:r$1).importNode(G,!0);C.currentNode=K;let J=C.nextNode(),X=0,ie=0,ee=Y[0];for(;ee!==void 0;){if(X===ee.index){let ne;ee.type===2?ne=new R$1(J,J.nextSibling,this,O):ee.type===1?ne=new ee.ctor(J,ee.name,ee.strings,this,O):ee.type===6&&(ne=new Z(J,this,O)),this._$AV.push(ne),ee=Y[++ie]}X!==(ee==null?void 0:ee.index)&&(J=C.nextNode(),X++)}return C.currentNode=r$1,K}v(O){let U=0;for(const G of this._$AV)G!==void 0&&(G.strings!==void 0?(G._$AI(O,G,U),U+=G.strings.length-2):G._$AI(O[U])),U++}}let R$1=class bn{constructor(O,U,G,Y){var K;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=O,this._$AB=U,this._$AM=G,this.options=Y,this._$Cp=(K=Y==null?void 0:Y.isConnected)===null||K===void 0||K}get _$AU(){var O,U;return(U=(O=this._$AM)===null||O===void 0?void 0:O._$AU)!==null&&U!==void 0?U:this._$Cp}get parentNode(){let O=this._$AA.parentNode;const U=this._$AM;return U!==void 0&&(O==null?void 0:O.nodeType)===11&&(O=U.parentNode),O}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(O,U=this){O=S(this,O,U),d$1(O)?O===A||O==null||O===""?(this._$AH!==A&&this._$AR(),this._$AH=A):O!==this._$AH&&O!==T$3&&this._(O):O._$litType$!==void 0?this.g(O):O.nodeType!==void 0?this.$(O):v$1(O)?this.T(O):this._(O)}k(O){return this._$AA.parentNode.insertBefore(O,this._$AB)}$(O){this._$AH!==O&&(this._$AR(),this._$AH=this.k(O))}_(O){this._$AH!==A&&d$1(this._$AH)?this._$AA.nextSibling.data=O:this.$(r$1.createTextNode(O)),this._$AH=O}g(O){var U;const{values:G,_$litType$:Y}=O,K=typeof Y=="number"?this._$AC(O):(Y.el===void 0&&(Y.el=N.createElement(P(Y.h,Y.h[0]),this.options)),Y);if(((U=this._$AH)===null||U===void 0?void 0:U._$AD)===K)this._$AH.v(G);else{const J=new M(K,this),X=J.u(this.options);J.v(G),this.$(X),this._$AH=J}}_$AC(O){let U=E$1.get(O.strings);return U===void 0&&E$1.set(O.strings,U=new N(O)),U}T(O){c$4(this._$AH)||(this._$AH=[],this._$AR());const U=this._$AH;let G,Y=0;for(const K of O)Y===U.length?U.push(G=new bn(this.k(u$7()),this.k(u$7()),this,this.options)):G=U[Y],G._$AI(K),Y++;Y<U.length&&(this._$AR(G&&G._$AB.nextSibling,Y),U.length=Y)}_$AR(O=this._$AA.nextSibling,U){var G;for((G=this._$AP)===null||G===void 0||G.call(this,!1,!0,U);O&&O!==this._$AB;){const Y=O.nextSibling;O.remove(),O=Y}}setConnected(O){var U;this._$AM===void 0&&(this._$Cp=O,(U=this._$AP)===null||U===void 0||U.call(this,O))}};class k{constructor(O,U,G,Y,K){this.type=1,this._$AH=A,this._$AN=void 0,this.element=O,this.name=U,this._$AM=Y,this.options=K,G.length>2||G[0]!==""||G[1]!==""?(this._$AH=Array(G.length-1).fill(new String),this.strings=G):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(O,U=this,G,Y){const K=this.strings;let J=!1;if(K===void 0)O=S(this,O,U,0),J=!d$1(O)||O!==this._$AH&&O!==T$3,J&&(this._$AH=O);else{const X=O;let ie,ee;for(O=K[0],ie=0;ie<K.length-1;ie++)ee=S(this,X[G+ie],U,ie),ee===T$3&&(ee=this._$AH[ie]),J||(J=!d$1(ee)||ee!==this._$AH[ie]),ee===A?O=A:O!==A&&(O+=(ee??"")+K[ie+1]),this._$AH[ie]=ee}J&&!Y&&this.j(O)}j(O){O===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,O??"")}}let H$1=class extends k{constructor(){super(...arguments),this.type=3}j(O){this.element[this.name]=O===A?void 0:O}};const I=s$2?s$2.emptyScript:"";let L$2=class extends k{constructor(){super(...arguments),this.type=4}j(O){O&&O!==A?this.element.setAttribute(this.name,I):this.element.removeAttribute(this.name)}};class z extends k{constructor(O,U,G,Y,K){super(O,U,G,Y,K),this.type=5}_$AI(O,U=this){var G;if((O=(G=S(this,O,U,0))!==null&&G!==void 0?G:A)===T$3)return;const Y=this._$AH,K=O===A&&Y!==A||O.capture!==Y.capture||O.once!==Y.once||O.passive!==Y.passive,J=O!==A&&(Y===A||K);K&&this.element.removeEventListener(this.name,this,Y),J&&this.element.addEventListener(this.name,this,O),this._$AH=O}handleEvent(O){var U,G;typeof this._$AH=="function"?this._$AH.call((G=(U=this.options)===null||U===void 0?void 0:U.host)!==null&&G!==void 0?G:this.element,O):this._$AH.handleEvent(O)}}class Z{constructor(O,U,G){this.element=O,this.type=6,this._$AN=void 0,this._$AM=U,this.options=G}get _$AU(){return this._$AM._$AU}_$AI(O){S(this,O)}}const B=i$4.litHtmlPolyfillSupport;B==null||B(N,R$1),((t$5=i$4.litHtmlVersions)!==null&&t$5!==void 0?t$5:i$4.litHtmlVersions=[]).push("2.8.0");const D=(W,O,U)=>{var G,Y;const K=(G=U==null?void 0:U.renderBefore)!==null&&G!==void 0?G:O;let J=K._$litPart$;if(J===void 0){const X=(Y=U==null?void 0:U.renderBefore)!==null&&Y!==void 0?Y:null;K._$litPart$=J=new R$1(O.insertBefore(u$7(),X),X,void 0,U??{})}return J._$AI(W),J};/**
100
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,w$2=W=>(O,...U)=>({_$litType$:W,strings:O,values:U}),x=w$2(1),T$3=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),E$1=new WeakMap,C=r$1.createTreeWalker(r$1,129,null,!1);function P(W,O){if(!Array.isArray(W)||!W.hasOwnProperty("raw"))throw Error("invalid template strings array");return e$6!==void 0?e$6.createHTML(O):O}const V=(W,O)=>{const U=W.length-1,G=[];let Y,K=O===2?"<svg>":"",J=f;for(let X=0;X<U;X++){const se=W[X];let ee,ne,Q=-1,te=0;for(;te<se.length&&(J.lastIndex=te,ne=J.exec(se),ne!==null);)te=J.lastIndex,J===f?ne[1]==="!--"?J=_:ne[1]!==void 0?J=m$1:ne[2]!==void 0?(y.test(ne[2])&&(Y=RegExp("</"+ne[2],"g")),J=p$4):ne[3]!==void 0&&(J=p$4):J===p$4?ne[0]===">"?(J=Y??f,Q=-1):ne[1]===void 0?Q=-2:(Q=J.lastIndex-ne[2].length,ee=ne[1],J=ne[3]===void 0?p$4:ne[3]==='"'?$:g):J===$||J===g?J=p$4:J===_||J===m$1?J=f:(J=p$4,Y=void 0);const ie=J===p$4&&W[X+1].startsWith("/>")?" ":"";K+=J===f?se+h$2:Q>=0?(G.push(ee),se.slice(0,Q)+o$7+se.slice(Q)+n$4+ie):se+n$4+(Q===-2?(G.push(void 0),X):ie)}return[P(W,K+(W[U]||"<?>")+(O===2?"</svg>":"")),G]};class N{constructor({strings:O,_$litType$:U},G){let Y;this.parts=[];let K=0,J=0;const X=O.length-1,se=this.parts,[ee,ne]=V(O,U);if(this.el=N.createElement(ee,G),C.currentNode=this.el.content,U===2){const Q=this.el.content,te=Q.firstChild;te.remove(),Q.append(...te.childNodes)}for(;(Y=C.nextNode())!==null&&se.length<X;){if(Y.nodeType===1){if(Y.hasAttributes()){const Q=[];for(const te of Y.getAttributeNames())if(te.endsWith(o$7)||te.startsWith(n$4)){const ie=ne[J++];if(Q.push(te),ie!==void 0){const le=Y.getAttribute(ie.toLowerCase()+o$7).split(n$4),oe=/([.?@])?(.*)/.exec(ie);se.push({type:1,index:K,name:oe[2],strings:le,ctor:oe[1]==="."?H$1:oe[1]==="?"?L$2:oe[1]==="@"?z:k})}else se.push({type:6,index:K})}for(const te of Q)Y.removeAttribute(te)}if(y.test(Y.tagName)){const Q=Y.textContent.split(n$4),te=Q.length-1;if(te>0){Y.textContent=s$2?s$2.emptyScript:"";for(let ie=0;ie<te;ie++)Y.append(Q[ie],u$7()),C.nextNode(),se.push({type:2,index:++K});Y.append(Q[te],u$7())}}}else if(Y.nodeType===8)if(Y.data===l$5)se.push({type:2,index:K});else{let Q=-1;for(;(Q=Y.data.indexOf(n$4,Q+1))!==-1;)se.push({type:7,index:K}),Q+=n$4.length-1}K++}}static createElement(O,U){const G=r$1.createElement("template");return G.innerHTML=O,G}}function S(W,O,U=W,G){var Y,K,J,X;if(O===T$3)return O;let se=G!==void 0?(Y=U._$Co)===null||Y===void 0?void 0:Y[G]:U._$Cl;const ee=d$1(O)?void 0:O._$litDirective$;return(se==null?void 0:se.constructor)!==ee&&((K=se==null?void 0:se._$AO)===null||K===void 0||K.call(se,!1),ee===void 0?se=void 0:(se=new ee(W),se._$AT(W,U,G)),G!==void 0?((J=(X=U)._$Co)!==null&&J!==void 0?J:X._$Co=[])[G]=se:U._$Cl=se),se!==void 0&&(O=S(W,se._$AS(W,O.values),se,G)),O}class M{constructor(O,U){this._$AV=[],this._$AN=void 0,this._$AD=O,this._$AM=U}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(O){var U;const{el:{content:G},parts:Y}=this._$AD,K=((U=O==null?void 0:O.creationScope)!==null&&U!==void 0?U:r$1).importNode(G,!0);C.currentNode=K;let J=C.nextNode(),X=0,se=0,ee=Y[0];for(;ee!==void 0;){if(X===ee.index){let ne;ee.type===2?ne=new R$1(J,J.nextSibling,this,O):ee.type===1?ne=new ee.ctor(J,ee.name,ee.strings,this,O):ee.type===6&&(ne=new Z(J,this,O)),this._$AV.push(ne),ee=Y[++se]}X!==(ee==null?void 0:ee.index)&&(J=C.nextNode(),X++)}return C.currentNode=r$1,K}v(O){let U=0;for(const G of this._$AV)G!==void 0&&(G.strings!==void 0?(G._$AI(O,G,U),U+=G.strings.length-2):G._$AI(O[U])),U++}}let R$1=class Cn{constructor(O,U,G,Y){var K;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=O,this._$AB=U,this._$AM=G,this.options=Y,this._$Cp=(K=Y==null?void 0:Y.isConnected)===null||K===void 0||K}get _$AU(){var O,U;return(U=(O=this._$AM)===null||O===void 0?void 0:O._$AU)!==null&&U!==void 0?U:this._$Cp}get parentNode(){let O=this._$AA.parentNode;const U=this._$AM;return U!==void 0&&(O==null?void 0:O.nodeType)===11&&(O=U.parentNode),O}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(O,U=this){O=S(this,O,U),d$1(O)?O===A||O==null||O===""?(this._$AH!==A&&this._$AR(),this._$AH=A):O!==this._$AH&&O!==T$3&&this._(O):O._$litType$!==void 0?this.g(O):O.nodeType!==void 0?this.$(O):v$1(O)?this.T(O):this._(O)}k(O){return this._$AA.parentNode.insertBefore(O,this._$AB)}$(O){this._$AH!==O&&(this._$AR(),this._$AH=this.k(O))}_(O){this._$AH!==A&&d$1(this._$AH)?this._$AA.nextSibling.data=O:this.$(r$1.createTextNode(O)),this._$AH=O}g(O){var U;const{values:G,_$litType$:Y}=O,K=typeof Y=="number"?this._$AC(O):(Y.el===void 0&&(Y.el=N.createElement(P(Y.h,Y.h[0]),this.options)),Y);if(((U=this._$AH)===null||U===void 0?void 0:U._$AD)===K)this._$AH.v(G);else{const J=new M(K,this),X=J.u(this.options);J.v(G),this.$(X),this._$AH=J}}_$AC(O){let U=E$1.get(O.strings);return U===void 0&&E$1.set(O.strings,U=new N(O)),U}T(O){c$4(this._$AH)||(this._$AH=[],this._$AR());const U=this._$AH;let G,Y=0;for(const K of O)Y===U.length?U.push(G=new Cn(this.k(u$7()),this.k(u$7()),this,this.options)):G=U[Y],G._$AI(K),Y++;Y<U.length&&(this._$AR(G&&G._$AB.nextSibling,Y),U.length=Y)}_$AR(O=this._$AA.nextSibling,U){var G;for((G=this._$AP)===null||G===void 0||G.call(this,!1,!0,U);O&&O!==this._$AB;){const Y=O.nextSibling;O.remove(),O=Y}}setConnected(O){var U;this._$AM===void 0&&(this._$Cp=O,(U=this._$AP)===null||U===void 0||U.call(this,O))}};class k{constructor(O,U,G,Y,K){this.type=1,this._$AH=A,this._$AN=void 0,this.element=O,this.name=U,this._$AM=Y,this.options=K,G.length>2||G[0]!==""||G[1]!==""?(this._$AH=Array(G.length-1).fill(new String),this.strings=G):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(O,U=this,G,Y){const K=this.strings;let J=!1;if(K===void 0)O=S(this,O,U,0),J=!d$1(O)||O!==this._$AH&&O!==T$3,J&&(this._$AH=O);else{const X=O;let se,ee;for(O=K[0],se=0;se<K.length-1;se++)ee=S(this,X[G+se],U,se),ee===T$3&&(ee=this._$AH[se]),J||(J=!d$1(ee)||ee!==this._$AH[se]),ee===A?O=A:O!==A&&(O+=(ee??"")+K[se+1]),this._$AH[se]=ee}J&&!Y&&this.j(O)}j(O){O===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,O??"")}}let H$1=class extends k{constructor(){super(...arguments),this.type=3}j(O){this.element[this.name]=O===A?void 0:O}};const I=s$2?s$2.emptyScript:"";let L$2=class extends k{constructor(){super(...arguments),this.type=4}j(O){O&&O!==A?this.element.setAttribute(this.name,I):this.element.removeAttribute(this.name)}};class z extends k{constructor(O,U,G,Y,K){super(O,U,G,Y,K),this.type=5}_$AI(O,U=this){var G;if((O=(G=S(this,O,U,0))!==null&&G!==void 0?G:A)===T$3)return;const Y=this._$AH,K=O===A&&Y!==A||O.capture!==Y.capture||O.once!==Y.once||O.passive!==Y.passive,J=O!==A&&(Y===A||K);K&&this.element.removeEventListener(this.name,this,Y),J&&this.element.addEventListener(this.name,this,O),this._$AH=O}handleEvent(O){var U,G;typeof this._$AH=="function"?this._$AH.call((G=(U=this.options)===null||U===void 0?void 0:U.host)!==null&&G!==void 0?G:this.element,O):this._$AH.handleEvent(O)}}class Z{constructor(O,U,G){this.element=O,this.type=6,this._$AN=void 0,this._$AM=U,this.options=G}get _$AU(){return this._$AM._$AU}_$AI(O){S(this,O)}}const B=i$4.litHtmlPolyfillSupport;B==null||B(N,R$1),((t$5=i$4.litHtmlVersions)!==null&&t$5!==void 0?t$5:i$4.litHtmlVersions=[]).push("2.8.0");const D=(W,O,U)=>{var G,Y;const K=(G=U==null?void 0:U.renderBefore)!==null&&G!==void 0?G:O;let J=K._$litPart$;if(J===void 0){const X=(Y=U==null?void 0:U.renderBefore)!==null&&Y!==void 0?Y:null;K._$litPart$=J=new R$1(O.insertBefore(u$7(),X),X,void 0,U??{})}return J._$AI(W),J};/**
88
101
  * @license
89
102
  * Copyright 2017 Google LLC
90
103
  * SPDX-License-Identifier: BSD-3-Clause
91
- */var l$4,o$6;let s$1=class extends u$8{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var O,U;const G=super.createRenderRoot();return(O=(U=this.renderOptions).renderBefore)!==null&&O!==void 0||(U.renderBefore=G.firstChild),G}update(O){const U=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(O),this._$Do=D(U,this.renderRoot,this.renderOptions)}connectedCallback(){var O;super.connectedCallback(),(O=this._$Do)===null||O===void 0||O.setConnected(!0)}disconnectedCallback(){var O;super.disconnectedCallback(),(O=this._$Do)===null||O===void 0||O.setConnected(!1)}render(){return T$3}};s$1.finalized=!0,s$1._$litElement$=!0,(l$4=globalThis.litElementHydrateSupport)===null||l$4===void 0||l$4.call(globalThis,{LitElement:s$1});const n$3=globalThis.litElementPolyfillSupport;n$3==null||n$3({LitElement:s$1}),((o$6=globalThis.litElementVersions)!==null&&o$6!==void 0?o$6:globalThis.litElementVersions=[]).push("3.3.3");var defaultTo=_curry2$1(function(O,U){return U==null||U!==U?O:U});const u$6=(W,O)=>O.constructor._classProperties?O.constructor._classProperties.get(W).hasChanged:void 0;pipe(u$6,defaultTo(a$2));var T$2=function(){return!0},always=_curry1$1(function(O){return function(){return O}}),max$1=_curry2$1(function(O,U){return U>O?U:O}),cond$1=_curry1$1(function(O){var U=reduce$1(max$1,0,map$1(function(G){return G[0].length},O));return _arity$1(U,function(){for(var G=0;G<O.length;){if(O[G][0].apply(this,arguments))return O[G][1].apply(this,arguments);G+=1}})}),forEach$1=_curry2$1(_checkForMethod("forEach",function(O,U){for(var G=U.length,Y=0;Y<G;)O(U[Y]),Y+=1;return U})),isNil$1=_curry1$1(function(O){return O==null});const _isInteger=Number.isInteger||function(O){return O<<0===O};var nth=_curry2$1(function(O,U){var G=O<0?U.length+O:O;return _isString$1(U)?U.charAt(G):U[G]}),paths=_curry2$1(function(O,U){return O.map(function(G){for(var Y=U,K=0,J;K<G.length;){if(Y==null)return;J=G[K],Y=_isInteger(J)?nth(J,Y):Y[J],K+=1}return Y})}),path=_curry2$1(function(O,U){return paths([O],U)[0]}),prop=_curry2$1(function(O,U){return path([O],U)});const u$5=W=>O=>pipe(prop(O.key),isNil$1)(W),q=W=>O=>!u$5(W)(O)&&isNil$1(W.shadowRoot.querySelector(`#${O.definition.targetId}`)),T$1=W=>O=>{const U=W[O.key];U.regionManager.remove(U);const G=U.adapter?U.adapter.behaviors||[]:[];return delete W[O.key],pipe(map$1(Y=>Y.detach),bind$2(Promise.all,Promise),andThen(()=>delete W[O.key]),andThen(always(void 0)))(G)},w$1=(W,O,U)=>G=>h$4(G.definition,W,O,U).then(Y=>{if(Y){W[G.key]=Y;const K=Y.adapter?Y.adapter.behaviors||[]:[];return pipe(map$1(J=>J.attach()),bind$2(Promise.all,Promise),andThen(always(Y)))(K)}else return}).catch(always(void 0)),L$1=W=>pipe(keys$1,map$1(O=>({key:O,definition:W[O]})))(W),l$3=W=>W.constructor[o$a]||{},H=(W,O,U)=>{const G=u$5(W),Y=q(W),K=T$1(W),J=w$1(W,O,U);return X=>cond$1([[G,J],[Y,K],[T$2,always(Promise.resolve(void 0))]])(X)},j$1=(W,O)=>d$3(U=>{class G extends U{constructor(...K){super(),this.enqueuer=new i$6(this.runRegionCreation.bind(this))}updated(K){super.updated(K),this.create()}createRegions(){const K=l$3(this),J=H(this,W,O);return pipe(L$1,forEach$1(J),bind$2(Promise.all,Promise),andThen(reject$1(isNil$1)),andThen(bind$2(this.regionsCreated,this)))(K)}create(){this.enqueuer.enqueueItem()}runRegionCreation(){return new Promise(K=>{this.createRegions().then(K).catch(K)})}regionsCreated(K){}disconnectedCallback(){super.disconnectedCallback();const K=l$3(this);Object.keys(K).forEach(J=>{const X=this[J];X&&(X.regionManager.remove(X),(X.adapter?X.adapter.behaviors||[]:[]).forEach(ie=>ie.detach()))})}}return G});p$6.registerDefaultAdapterFactory(f$3);/**
104
+ */var l$4,o$6;let s$1=class extends u$8{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var O,U;const G=super.createRenderRoot();return(O=(U=this.renderOptions).renderBefore)!==null&&O!==void 0||(U.renderBefore=G.firstChild),G}update(O){const U=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(O),this._$Do=D(U,this.renderRoot,this.renderOptions)}connectedCallback(){var O;super.connectedCallback(),(O=this._$Do)===null||O===void 0||O.setConnected(!0)}disconnectedCallback(){var O;super.disconnectedCallback(),(O=this._$Do)===null||O===void 0||O.setConnected(!1)}render(){return T$3}};s$1.finalized=!0,s$1._$litElement$=!0,(l$4=globalThis.litElementHydrateSupport)===null||l$4===void 0||l$4.call(globalThis,{LitElement:s$1});const n$3=globalThis.litElementPolyfillSupport;n$3==null||n$3({LitElement:s$1}),((o$6=globalThis.litElementVersions)!==null&&o$6!==void 0?o$6:globalThis.litElementVersions=[]).push("3.3.3");var defaultTo=_curry2$1(function(O,U){return U==null||U!==U?O:U});const u$6=(W,O)=>O.constructor._classProperties?O.constructor._classProperties.get(W).hasChanged:void 0;pipe(u$6,defaultTo(a$2));var T$2=function(){return!0},always=_curry1$1(function(O){return function(){return O}}),max$1=_curry2$1(function(O,U){return U>O?U:O}),cond$1=_curry1$1(function(O){var U=reduce$1(max$1,0,map$1(function(G){return G[0].length},O));return _arity$1(U,function(){for(var G=0;G<O.length;){if(O[G][0].apply(this,arguments))return O[G][1].apply(this,arguments);G+=1}})}),forEach$1=_curry2$1(_checkForMethod("forEach",function(O,U){for(var G=U.length,Y=0;Y<G;)O(U[Y]),Y+=1;return U})),isNil$1=_curry1$1(function(O){return O==null});const _isInteger=Number.isInteger||function(O){return O<<0===O};var nth=_curry2$1(function(O,U){var G=O<0?U.length+O:O;return _isString$1(U)?U.charAt(G):U[G]}),paths=_curry2$1(function(O,U){return O.map(function(G){for(var Y=U,K=0,J;K<G.length;){if(Y==null)return;J=G[K],Y=_isInteger(J)?nth(J,Y):Y[J],K+=1}return Y})}),path=_curry2$1(function(O,U){return paths([O],U)[0]}),prop=_curry2$1(function(O,U){return path([O],U)});const u$5=W=>O=>pipe(prop(O.key),isNil$1)(W),q=W=>O=>!u$5(W)(O)&&isNil$1(W.shadowRoot.querySelector(`#${O.definition.targetId}`)),T$1=W=>O=>{const U=W[O.key];U.regionManager.remove(U);const G=U.adapter?U.adapter.behaviors||[]:[];return delete W[O.key],pipe(map$1(Y=>Y.detach),bind$2(Promise.all,Promise),andThen(()=>delete W[O.key]),andThen(always(void 0)))(G)},w$1=(W,O,U)=>G=>h$4(G.definition,W,O,U).then(Y=>{if(Y){W[G.key]=Y;const K=Y.adapter?Y.adapter.behaviors||[]:[];return pipe(map$1(J=>J.attach()),bind$2(Promise.all,Promise),andThen(always(Y)))(K)}else return}).catch(always(void 0)),L$1=W=>pipe(keys$1,map$1(O=>({key:O,definition:W[O]})))(W),l$3=W=>W.constructor[o$a]||{},H=(W,O,U)=>{const G=u$5(W),Y=q(W),K=T$1(W),J=w$1(W,O,U);return X=>cond$1([[G,J],[Y,K],[T$2,always(Promise.resolve(void 0))]])(X)},j$1=(W,O)=>d$3(U=>{class G extends U{constructor(...K){super(),this.enqueuer=new i$6(this.runRegionCreation.bind(this))}updated(K){super.updated(K),this.create()}createRegions(){const K=l$3(this),J=H(this,W,O);return pipe(L$1,forEach$1(J),bind$2(Promise.all,Promise),andThen(reject$1(isNil$1)),andThen(bind$2(this.regionsCreated,this)))(K)}create(){this.enqueuer.enqueueItem()}runRegionCreation(){return new Promise(K=>{this.createRegions().then(K).catch(K)})}regionsCreated(K){}disconnectedCallback(){super.disconnectedCallback();const K=l$3(this);Object.keys(K).forEach(J=>{const X=this[J];X&&(X.regionManager.remove(X),(X.adapter?X.adapter.behaviors||[]:[]).forEach(se=>se.detach()))})}}return G});p$6.registerDefaultAdapterFactory(f$3);/**
92
105
  * @license
93
106
  * Copyright 2017 Google LLC
94
107
  * SPDX-License-Identifier: BSD-3-Clause
@@ -108,11 +121,11 @@
108
121
  </div>
109
122
  <div id="widgets-sidebar-region"></div>
110
123
  </div>
111
- `,l$2=W=>j$1(W,p$6);let h$1=class{constructor(){this.viewsByRegion={},this.regions={}}registerRegion(O,U){this.regions[O]=[...this.regions[O]||[],U]}unregisterRegion(O,U){this.regions[O]=this.getRegionsByName(O).filter(G=>G!==U)}registerView(O,U,G){this.viewsByRegion[O]=[...this.viewsByRegion[O]||[],{key:U,view:G}]}getRegisteredViews(O){return this.viewsByRegion[O]||[]}getRegionsByName(O){return this.regions[O]||[]}destroy(){this.viewsByRegion={},this.regions={}}clear(){this.viewsByRegion={}}},o$5=class _n{constructor(O){this._viewRegistry=O,this._regions={}}add(O,U){if(this.getRegion(O))throw new Error("A region with the same name already exists");return this._regions[O]=U,this._viewRegistry.registerRegion(O,U),this}getRegion(O){return this._regions[O]}remove(O){let U,G="";return typeof O=="string"?(U=this.getRegion(O),G=O,delete this._regions[O]):typeof O=="object"&&(G=Object.keys(this._regions).find(Y=>this._regions[Y]===O),G&&(U=O,delete this._regions[G])),G&&U&&this._viewRegistry.unregisterRegion(G,U),U}addViewToRegion(O,U,G){const Y=this.getRegion(O);if(!Y)throw new Error(`Couldn't find a region with name: ${O}`);return Y.addView(U,G),this}registerViewWithRegion(O,U,G){return this._viewRegistry.registerView(O,U,G),this._viewRegistry.getRegionsByName(O).forEach(Y=>Y.addView(U,G)),this}getRegisteredViews(O){return this._viewRegistry.getRegisteredViews(O)}clear(){return Object.values(this._viewRegistry.regions).forEach(O=>{O!=null&&O.length&&Object.keys(O[0].views).forEach(U=>{var G;return(G=O[0])==null?void 0:G.removeView(U)})}),this}destroy(){return this.clear(),Object.values(this._viewRegistry.regions).forEach(O=>this.remove(O[0])),this._regions={},this}createRegionManager(){return new _n(this._viewRegistry)}};class a extends o$5{constructor(O){const U=new h$1;super(U),this._name=O}clear(){return super.clear(),this._viewRegistry.clear(),this}destroy(){return super.destroy(),this._viewRegistry.destroy(),this}}const u$4=W=>new a(W),c$3=W=>W.importer(),R=W=>(O,U)=>c$3(O).then(G=>W(O,U)(G)),w=(W,O)=>U=>U.initialize(O(W)),d=(W,O)=>{if((W==null?void 0:W.length)>0){const U=G=>R(w)(G,O);return Promise.all(W.map(G=>U(G))).catch(G=>console.log(G))}throw new Error("No plugins to bootstrap")};function _concat(W,O){W=W||[],O=O||[];var U,G=W.length,Y=O.length,K=[];for(U=0;U<G;)K[K.length]=W[U],U+=1;for(U=0;U<Y;)K[K.length]=O[U],U+=1;return K}var ap=_curry2$1(function(O,U){return typeof U["fantasy-land/ap"]=="function"?U["fantasy-land/ap"](O):typeof O.ap=="function"?O.ap(U):typeof O=="function"?function(G){return O(G)(U(G))}:_reduce(function(G,Y){return _concat(G,map$1(Y,U))},[],O)}),assoc=_curry3$1(function(O,U,G){var Y={};for(var K in G)Y[K]=G[K];return Y[O]=U,Y}),assocPath=_curry3$1(function W(O,U,G){if(O.length===0)return U;var Y=O[0];if(O.length>1){var K=!isNil$1(G)&&_has$1(Y,G)?G[Y]:_isInteger(O[1])?[]:{};U=W(Array.prototype.slice.call(O,1),U,K)}if(_isInteger(Y)&&_isArray$1(G)){var J=[].concat(G);return J[Y]=U,J}else return assoc(Y,U,G)}),liftN=_curry2$1(function(O,U){var G=curryN$1(O,U);return curryN$1(O,function(){return _reduce(ap,map$1(G,arguments[0]),Array.prototype.slice.call(arguments,1))})}),lift=_curry1$1(function(O){return liftN(O.length,O)}),not=_curry1$1(function(O){return!O}),complement=lift(not),lens=_curry2$1(function(O,U){return function(G){return function(Y){return map$1(function(K){return U(K,Y)},G(O(Y)))}}}),lensPath=_curry1$1(function(O){return lens(path(O),assocPath(O))}),mergeWithKey=_curry3$1(function(O,U,G){var Y={},K;for(K in U)_has$1(K,U)&&(Y[K]=_has$1(K,G)?O(K,U[K],G[K]):U[K]);for(K in G)_has$1(K,G)&&!_has$1(K,Y)&&(Y[K]=G[K]);return Y}),mergeDeepWithKey=_curry3$1(function W(O,U,G){return mergeWithKey(function(Y,K,J){return _isObject$1(K)&&_isObject$1(J)?W(O,K,J):O(Y,K,J)},U,G)}),mergeDeepRight=_curry2$1(function(O,U){return mergeDeepWithKey(function(G,Y,K){return K},O,U)}),Const=function(W){return{value:W,"fantasy-land/map":function(){return this}}},view=_curry2$1(function(O,U){return O(Const)(U).value});const t$4=complement(isNil$1);function _arity(W,O){switch(W){case 0:return function(){return O.apply(this,arguments)};case 1:return function(U){return O.apply(this,arguments)};case 2:return function(U,G){return O.apply(this,arguments)};case 3:return function(U,G,Y){return O.apply(this,arguments)};case 4:return function(U,G,Y,K){return O.apply(this,arguments)};case 5:return function(U,G,Y,K,J){return O.apply(this,arguments)};case 6:return function(U,G,Y,K,J,X){return O.apply(this,arguments)};case 7:return function(U,G,Y,K,J,X,ie){return O.apply(this,arguments)};case 8:return function(U,G,Y,K,J,X,ie,ee){return O.apply(this,arguments)};case 9:return function(U,G,Y,K,J,X,ie,ee,ne){return O.apply(this,arguments)};case 10:return function(U,G,Y,K,J,X,ie,ee,ne,Q){return O.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _isPlaceholder(W){return W!=null&&typeof W=="object"&&W["@@functional/placeholder"]===!0}function _curry1(W){return function O(U){return arguments.length===0||_isPlaceholder(U)?O:W.apply(this,arguments)}}function _arrayReduce(W,O,U){for(var G=0,Y=U.length;G<Y;)O=W(O,U[G]),G+=1;return O}function _curry2(W){return function O(U,G){switch(arguments.length){case 0:return O;case 1:return _isPlaceholder(U)?O:_curry1(function(Y){return W(U,Y)});default:return _isPlaceholder(U)&&_isPlaceholder(G)?O:_isPlaceholder(U)?_curry1(function(Y){return W(Y,G)}):_isPlaceholder(G)?_curry1(function(Y){return W(U,Y)}):W(U,G)}}}const _isArray=Array.isArray||function(O){return O!=null&&O.length>=0&&Object.prototype.toString.call(O)==="[object Array]"};function _isTransformer(W){return W!=null&&typeof W["@@transducer/step"]=="function"}function _dispatchable(W,O,U){return function(){if(arguments.length===0)return U();var G=arguments[arguments.length-1];if(!_isArray(G)){for(var Y=0;Y<W.length;){if(typeof G[W[Y]]=="function")return G[W[Y]].apply(G,Array.prototype.slice.call(arguments,0,-1));Y+=1}if(_isTransformer(G)){var K=O.apply(null,Array.prototype.slice.call(arguments,0,-1));return K(G)}}return U.apply(this,arguments)}}function _map(W,O){for(var U=0,G=O.length,Y=Array(G);U<G;)Y[U]=W(O[U]),U+=1;return Y}const _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(W){return this.xf["@@transducer/result"](W)}};var XMap=function(){function W(O,U){this.xf=U,this.f=O}return W.prototype["@@transducer/init"]=_xfBase.init,W.prototype["@@transducer/result"]=_xfBase.result,W.prototype["@@transducer/step"]=function(O,U){return this.xf["@@transducer/step"](O,this.f(U))},W}(),_xmap=function(O){return function(U){return new XMap(O,U)}};function _curryN(W,O,U){return function(){for(var G=[],Y=0,K=W,J=0,X=!1;J<O.length||Y<arguments.length;){var ie;J<O.length&&(!_isPlaceholder(O[J])||Y>=arguments.length)?ie=O[J]:(ie=arguments[Y],Y+=1),G[J]=ie,_isPlaceholder(ie)?X=!0:K-=1,J+=1}return!X&&K<=0?U.apply(this,G):_arity(Math.max(0,K),_curryN(W,G,U))}}var curryN=_curry2(function(O,U){return O===1?_curry1(U):_arity(O,_curryN(O,[],U))});function _has(W,O){return Object.prototype.hasOwnProperty.call(O,W)}var toString$2=Object.prototype.toString,_isArguments=function(){return toString$2.call(arguments)==="[object Arguments]"?function(O){return toString$2.call(O)==="[object Arguments]"}:function(O){return _has("callee",O)}}(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){return arguments.propertyIsEnumerable("length")}(),contains=function(O,U){for(var G=0;G<O.length;){if(O[G]===U)return!0;G+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function(O){return Object(O)!==O?[]:Object.keys(O)}:function(O){if(Object(O)!==O)return[];var U,G,Y=[],K=hasArgsEnumBug&&_isArguments(O);for(U in O)_has(U,O)&&(!K||U!=="length")&&(Y[Y.length]=U);if(hasEnumBug)for(G=nonEnumerableProps.length-1;G>=0;)U=nonEnumerableProps[G],_has(U,O)&&!contains(Y,U)&&(Y[Y.length]=U),G-=1;return Y}),map=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,function(O,U){switch(Object.prototype.toString.call(U)){case"[object Function]":return curryN(U.length,function(){return O.call(this,U.apply(this,arguments))});case"[object Object]":return _arrayReduce(function(G,Y){return G[Y]=O(U[Y]),G},{},keys(U));default:return _map(O,U)}}));function _arrayFromIterator(W){for(var O=[],U;!(U=W.next()).done;)O.push(U.value);return O}function _includesWith(W,O,U){for(var G=0,Y=U.length;G<Y;){if(W(O,U[G]))return!0;G+=1}return!1}function _functionName(W){var O=String(W).match(/^function (\w*)/);return O==null?"":O[1]}function _objectIs(W,O){return W===O?W!==0||1/W===1/O:W!==W&&O!==O}const _objectIs$1=typeof Object.is=="function"?Object.is:_objectIs;var type=_curry1(function(O){return O===null?"Null":O===void 0?"Undefined":Object.prototype.toString.call(O).slice(8,-1)});function _uniqContentEquals(W,O,U,G){var Y=_arrayFromIterator(W),K=_arrayFromIterator(O);function J(X,ie){return _equals(X,ie,U.slice(),G.slice())}return!_includesWith(function(X,ie){return!_includesWith(J,ie,X)},K,Y)}function _equals(W,O,U,G){if(_objectIs$1(W,O))return!0;var Y=type(W);if(Y!==type(O))return!1;if(typeof W["fantasy-land/equals"]=="function"||typeof O["fantasy-land/equals"]=="function")return typeof W["fantasy-land/equals"]=="function"&&W["fantasy-land/equals"](O)&&typeof O["fantasy-land/equals"]=="function"&&O["fantasy-land/equals"](W);if(typeof W.equals=="function"||typeof O.equals=="function")return typeof W.equals=="function"&&W.equals(O)&&typeof O.equals=="function"&&O.equals(W);switch(Y){case"Arguments":case"Array":case"Object":if(typeof W.constructor=="function"&&_functionName(W.constructor)==="Promise")return W===O;break;case"Boolean":case"Number":case"String":if(!(typeof W==typeof O&&_objectIs$1(W.valueOf(),O.valueOf())))return!1;break;case"Date":if(!_objectIs$1(W.valueOf(),O.valueOf()))return!1;break;case"Error":return W.name===O.name&&W.message===O.message;case"RegExp":if(!(W.source===O.source&&W.global===O.global&&W.ignoreCase===O.ignoreCase&&W.multiline===O.multiline&&W.sticky===O.sticky&&W.unicode===O.unicode))return!1;break}for(var K=U.length-1;K>=0;){if(U[K]===W)return G[K]===O;K-=1}switch(Y){case"Map":return W.size!==O.size?!1:_uniqContentEquals(W.entries(),O.entries(),U.concat([W]),G.concat([O]));case"Set":return W.size!==O.size?!1:_uniqContentEquals(W.values(),O.values(),U.concat([W]),G.concat([O]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var J=keys(W);if(J.length!==keys(O).length)return!1;var X=U.concat([W]),ie=G.concat([O]);for(K=J.length-1;K>=0;){var ee=J[K];if(!(_has(ee,O)&&_equals(O[ee],W[ee],X,ie)))return!1;K-=1}return!0}var equals=_curry2(function(O,U){return _equals(O,U,[],[])});function _indexOf(W,O,U){var G,Y;if(typeof W.indexOf=="function")switch(typeof O){case"number":if(O===0){for(G=1/O;U<W.length;){if(Y=W[U],Y===0&&1/Y===G)return U;U+=1}return-1}else if(O!==O){for(;U<W.length;){if(Y=W[U],typeof Y=="number"&&Y!==Y)return U;U+=1}return-1}return W.indexOf(O,U);case"string":case"boolean":case"function":case"undefined":return W.indexOf(O,U);case"object":if(O===null)return W.indexOf(O,U)}for(;U<W.length;){if(equals(W[U],O))return U;U+=1}return-1}function _includes(W,O){return _indexOf(O,W,0)>=0}function _quote(W){var O=W.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+O.replace(/"/g,'\\"')+'"'}var pad=function(O){return(O<10?"0":"")+O},_toISOString=typeof Date.prototype.toISOString=="function"?function(O){return O.toISOString()}:function(O){return O.getUTCFullYear()+"-"+pad(O.getUTCMonth()+1)+"-"+pad(O.getUTCDate())+"T"+pad(O.getUTCHours())+":"+pad(O.getUTCMinutes())+":"+pad(O.getUTCSeconds())+"."+(O.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(W){return function(){return!W.apply(this,arguments)}}function _filter(W,O){for(var U=0,G=O.length,Y=[];U<G;)W(O[U])&&(Y[Y.length]=O[U]),U+=1;return Y}function _isObject(W){return Object.prototype.toString.call(W)==="[object Object]"}var XFilter=function(){function W(O,U){this.xf=U,this.f=O}return W.prototype["@@transducer/init"]=_xfBase.init,W.prototype["@@transducer/result"]=_xfBase.result,W.prototype["@@transducer/step"]=function(O,U){return this.f(U)?this.xf["@@transducer/step"](O,U):O},W}();function _xfilter(W){return function(O){return new XFilter(W,O)}}var filter=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,function(W,O){return _isObject(O)?_arrayReduce(function(U,G){return W(O[G])&&(U[G]=O[G]),U},{},keys(O)):_filter(W,O)})),reject=_curry2(function(O,U){return filter(_complement(O),U)});function _toString(W,O){var U=function(J){var X=O.concat([W]);return _includes(J,X)?"<Circular>":_toString(J,X)},G=function(K,J){return _map(function(X){return _quote(X)+": "+U(K[X])},J.slice().sort())};switch(Object.prototype.toString.call(W)){case"[object Arguments]":return"(function() { return arguments; }("+_map(U,W).join(", ")+"))";case"[object Array]":return"["+_map(U,W).concat(G(W,reject(function(K){return/^\d+$/.test(K)},keys(W)))).join(", ")+"]";case"[object Boolean]":return typeof W=="object"?"new Boolean("+U(W.valueOf())+")":W.toString();case"[object Date]":return"new Date("+(isNaN(W.valueOf())?U(NaN):_quote(_toISOString(W)))+")";case"[object Map]":return"new Map("+U(Array.from(W))+")";case"[object Null]":return"null";case"[object Number]":return typeof W=="object"?"new Number("+U(W.valueOf())+")":1/W===-1/0?"-0":W.toString(10);case"[object Set]":return"new Set("+U(Array.from(W).sort())+")";case"[object String]":return typeof W=="object"?"new String("+U(W.valueOf())+")":_quote(W);case"[object Undefined]":return"undefined";default:if(typeof W.toString=="function"){var Y=W.toString();if(Y!=="[object Object]")return Y}return"{"+G(W,keys(W)).join(", ")+"}"}}var toString$1=_curry1(function(O){return _toString(O,[])}),max=_curry2(function(O,U){if(O===U)return U;function G(ie,ee){if(ie>ee!=ee>ie)return ee>ie?ee:ie}var Y=G(O,U);if(Y!==void 0)return Y;var K=G(typeof O,typeof U);if(K!==void 0)return K===typeof O?O:U;var J=toString$1(O),X=G(J,toString$1(U));return X!==void 0&&X===J?O:U});function _curry3(W){return function O(U,G,Y){switch(arguments.length){case 0:return O;case 1:return _isPlaceholder(U)?O:_curry2(function(K,J){return W(U,K,J)});case 2:return _isPlaceholder(U)&&_isPlaceholder(G)?O:_isPlaceholder(U)?_curry2(function(K,J){return W(K,G,J)}):_isPlaceholder(G)?_curry2(function(K,J){return W(U,K,J)}):_curry1(function(K){return W(U,G,K)});default:return _isPlaceholder(U)&&_isPlaceholder(G)&&_isPlaceholder(Y)?O:_isPlaceholder(U)&&_isPlaceholder(G)?_curry2(function(K,J){return W(K,J,Y)}):_isPlaceholder(U)&&_isPlaceholder(Y)?_curry2(function(K,J){return W(K,G,J)}):_isPlaceholder(G)&&_isPlaceholder(Y)?_curry2(function(K,J){return W(U,K,J)}):_isPlaceholder(U)?_curry1(function(K){return W(K,G,Y)}):_isPlaceholder(G)?_curry1(function(K){return W(U,K,Y)}):_isPlaceholder(Y)?_curry1(function(K){return W(U,G,K)}):W(U,G,Y)}}}function _isString(W){return Object.prototype.toString.call(W)==="[object String]"}var _isArrayLike=_curry1(function(O){return _isArray(O)?!0:!O||typeof O!="object"||_isString(O)?!1:O.length===0?!0:O.length>0?O.hasOwnProperty(0)&&O.hasOwnProperty(O.length-1):!1}),symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _createReduce(W,O,U){return function(Y,K,J){if(_isArrayLike(J))return W(Y,K,J);if(J==null)return K;if(typeof J["fantasy-land/reduce"]=="function")return O(Y,K,J,"fantasy-land/reduce");if(J[symIterator]!=null)return U(Y,K,J[symIterator]());if(typeof J.next=="function")return U(Y,K,J);if(typeof J.reduce=="function")return O(Y,K,J,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function _xArrayReduce(W,O,U){for(var G=0,Y=U.length;G<Y;){if(O=W["@@transducer/step"](O,U[G]),O&&O["@@transducer/reduced"]){O=O["@@transducer/value"];break}G+=1}return W["@@transducer/result"](O)}var bind$1=_curry2(function(O,U){return _arity(O.length,function(){return O.apply(U,arguments)})});function _xIterableReduce(W,O,U){for(var G=U.next();!G.done;){if(O=W["@@transducer/step"](O,G.value),O&&O["@@transducer/reduced"]){O=O["@@transducer/value"];break}G=U.next()}return W["@@transducer/result"](O)}function _xMethodReduce(W,O,U,G){return W["@@transducer/result"](U[G](bind$1(W["@@transducer/step"],W),O))}var _xReduce=_createReduce(_xArrayReduce,_xMethodReduce,_xIterableReduce),XWrap=function(){function W(O){this.f=O}return W.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},W.prototype["@@transducer/result"]=function(O){return O},W.prototype["@@transducer/step"]=function(O,U){return this.f(O,U)},W}();function _xwrap(W){return new XWrap(W)}var reduce=_curry3(function(W,O,U){return _xReduce(typeof W=="function"?_xwrap(W):W,O,U)}),cond=_curry1(function(O){var U=reduce(max,0,map(function(G){return G[0].length},O));return _arity(U,function(){for(var G=0;G<O.length;){if(O[G][0].apply(this,arguments))return O[G][1].apply(this,arguments);G+=1}})}),isNil=_curry1(function(O){return O==null}),T=function(){return!0};const c$2=(W,O,U=":")=>G=>cond([[()=>isNil(W),()=>{throw new Error("prefix is needed")}],[()=>t$4(O),()=>`${W}${U}${G}${U}${O}`],[T,()=>`${W}${U}${G}`]])(),E=c$2("LOCALIZATION",void 0,"::");E("LOCALES-RESET");const o$4=E("LOCALES-UPDATED"),n=E("LANGUAGE-UPDATED");E("LANGUAGE-RESET"),E("FORMATERS-UPDATED"),E("FORMATERS-RESET");let o$3=class{constructor(O,U){this.messageType=O,this.callback=U}handle(O){O instanceof this.messageType&&this.callback.call(null,O)}};const c$1=(W,O,U)=>{try{W(O,U)}catch(G){console.error(G)}},b=(W,O)=>{try{W.handle(O)}catch(U){console.error(U)}};let p$3=class{constructor(){this.eventLookup={},this.messageHandlers=[]}publish(O,U){let G,Y;if(!O)throw new Error("Event channel/type is invalid.");if(typeof O=="string"){if(G=this.eventLookup[O],G)for(G=G.slice(),Y=G.length;Y--;)c$1(G[Y],U,O)}else for(G=this.messageHandlers.slice(),Y=G.length;Y--;)b(G[Y],O)}subscribe(O,U){let G,Y;if(!O)throw new Error("Event channel/type is invalid.");return typeof O=="string"?(G=U,Y=this.eventLookup[O]||(this.eventLookup[O]=[])):(G=new o$3(O,U),Y=this.messageHandlers),Y.push(G),{dispose(){const K=Y.indexOf(G);K!==-1&&Y.splice(K,1)}}}subscribeOnce(O,U){const G=this.subscribe(O,(Y,K)=>(G.dispose(),U(Y,K)));return G}};const i$2=new p$3;i$2.subscribe.bind(i$2),i$2.subscribeOnce.bind(i$2);const u$3=i$2.publish.bind(i$2),t$3="en";let e$3=t$3;const L=W=>{e$3=W,u$3(n,W)},p$2=()=>e$3;var TYPE;(function(W){W[W.literal=0]="literal",W[W.argument=1]="argument",W[W.number=2]="number",W[W.date=3]="date",W[W.time=4]="time",W[W.select=5]="select",W[W.plural=6]="plural",W[W.pound=7]="pound"})(TYPE||(TYPE={}));function isLiteralElement(W){return W.type===TYPE.literal}function isArgumentElement(W){return W.type===TYPE.argument}function isNumberElement(W){return W.type===TYPE.number}function isDateElement(W){return W.type===TYPE.date}function isTimeElement(W){return W.type===TYPE.time}function isSelectElement(W){return W.type===TYPE.select}function isPluralElement(W){return W.type===TYPE.plural}function isPoundElement(W){return W.type===TYPE.pound}function isNumberSkeleton(W){return!!(W&&typeof W=="object"&&W.type===0)}function isDateTimeSkeleton(W){return!!(W&&typeof W=="object"&&W.type===1)}var __extends$2=function(){var W=function(O,U){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Y){G.__proto__=Y}||function(G,Y){for(var K in Y)Y.hasOwnProperty(K)&&(G[K]=Y[K])},W(O,U)};return function(O,U){W(O,U);function G(){this.constructor=O}O.prototype=U===null?Object.create(U):(G.prototype=U.prototype,new G)}}(),__assign$4=function(){return __assign$4=Object.assign||function(W){for(var O,U=1,G=arguments.length;U<G;U++){O=arguments[U];for(var Y in O)Object.prototype.hasOwnProperty.call(O,Y)&&(W[Y]=O[Y])}return W},__assign$4.apply(this,arguments)},SyntaxError=function(W){__extends$2(O,W);function O(U,G,Y,K){var J=W.call(this)||this;return J.message=U,J.expected=G,J.found=Y,J.location=K,J.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(J,O),J}return O.buildMessage=function(U,G){function Y(ne){return ne.charCodeAt(0).toString(16).toUpperCase()}function K(ne){return ne.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Q){return"\\x0"+Y(Q)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Q){return"\\x"+Y(Q)})}function J(ne){return ne.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Q){return"\\x0"+Y(Q)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Q){return"\\x"+Y(Q)})}function X(ne){switch(ne.type){case"literal":return'"'+K(ne.text)+'"';case"class":var Q=ne.parts.map(function(te){return Array.isArray(te)?J(te[0])+"-"+J(te[1]):J(te)});return"["+(ne.inverted?"^":"")+Q+"]";case"any":return"any character";case"end":return"end of input";case"other":return ne.description}}function ie(ne){var Q=ne.map(X),te,se;if(Q.sort(),Q.length>0){for(te=1,se=1;te<Q.length;te++)Q[te-1]!==Q[te]&&(Q[se]=Q[te],se++);Q.length=se}switch(Q.length){case 1:return Q[0];case 2:return Q[0]+" or "+Q[1];default:return Q.slice(0,-1).join(", ")+", or "+Q[Q.length-1]}}function ee(ne){return ne?'"'+K(ne)+'"':"end of input"}return"Expected "+ie(U)+" but "+ee(G)+" found."},O}(Error);function peg$parse(W,O){O=O!==void 0?O:{};var U={},G={start:Jt},Y=Jt,K=function(pe){return pe.join("")},J=function(pe){return __assign$4({type:TYPE.literal,value:pe},Et())},X="#",ie=gt("#",!1),ee=function(){return __assign$4({type:TYPE.pound},Et())},ne=wt("argumentElement"),Q="{",te=gt("{",!1),se="}",le=gt("}",!1),oe=function(pe){return __assign$4({type:TYPE.argument,value:pe},Et())},re=wt("numberSkeletonId"),ae=/^['\/{}]/,ce=qt(["'","/","{","}"],!1,!1),ue=Vn(),de=wt("numberSkeletonTokenOption"),he="/",me=gt("/",!1),ge=function(pe){return pe},we=wt("numberSkeletonToken"),ke=function(pe,Se){return{stem:pe,options:Se}},_e=function(pe){return __assign$4({type:0,tokens:pe},Et())},fe="::",be=gt("::",!1),ve=function(pe){return pe},$e=function(){return At.push("numberArgStyle"),!0},qe=function(pe){return At.pop(),pe.replace(/\s*$/,"")},Ce=",",Ie=gt(",",!1),Ve="number",De=gt("number",!1),Te=function(pe,Se,Ne){return __assign$4({type:Se==="number"?TYPE.number:Se==="date"?TYPE.date:TYPE.time,style:Ne&&Ne[2],value:pe},Et())},ye="'",Ae=gt("'",!1),Oe=/^[^']/,Pe=qt(["'"],!0,!1),Le=/^[^a-zA-Z'{}]/,Ee=qt([["a","z"],["A","Z"],"'","{","}"],!0,!1),Re=/^[a-zA-Z]/,Me=qt([["a","z"],["A","Z"]],!1,!1),Be=function(pe){return __assign$4({type:1,pattern:pe},Et())},He=function(){return At.push("dateOrTimeArgStyle"),!0},Je="date",Qe=gt("date",!1),et="time",it=gt("time",!1),lt="plural",vt=gt("plural",!1),bt="selectordinal",Fe=gt("selectordinal",!1),je="offset:",Ye=gt("offset:",!1),Ke=function(pe,Se,Ne,Ue){return __assign$4({type:TYPE.plural,pluralType:Se==="plural"?"cardinal":"ordinal",value:pe,offset:Ne?Ne[2]:0,options:Ue.reduce(function(Ge,Xe){var ht=Xe.id,rt=Xe.value,yt=Xe.location;return ht in Ge&&Yt('Duplicate option "'+ht+'" in plural element: "'+Zt()+'"',Ft()),Ge[ht]={value:rt,location:yt},Ge},{})},Et())},We="select",tt=gt("select",!1),nt=function(pe,Se){return __assign$4({type:TYPE.select,value:pe,options:Se.reduce(function(Ne,Ue){var Ge=Ue.id,Xe=Ue.value,ht=Ue.location;return Ge in Ne&&Yt('Duplicate option "'+Ge+'" in select element: "'+Zt()+'"',Ft()),Ne[Ge]={value:Xe,location:ht},Ne},{})},Et())},st="=",mt=gt("=",!1),$t=function(pe){return At.push("select"),!0},ut=function(pe,Se){return At.pop(),__assign$4({id:pe,value:Se},Et())},Mt=function(pe){return At.push("plural"),!0},_t=function(pe,Se){return At.pop(),__assign$4({id:pe,value:Se},Et())},kt=wt("whitespace"),gn=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,vn=qt([[" ","\r"]," ","…"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),mn=wt("syntax pattern"),yn=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,wn=qt([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),xn=wt("optional whitespace"),$n=wt("number"),kn="-",Sn=gt("-",!1),An=function(pe,Se){return Se?pe?-Se:Se:0},En=wt("double apostrophes"),Ct="''",Bt=gt("''",!1),Tn=function(){return"'"},qn=function(pe,Se){return pe+Se.replace("''","'")},On=function(pe){return pe!=="{"&&!(hn()&&pe==="#")&&!(as()&&pe==="}")},Cn=`
112
- `,Rn=gt(`
113
- `,!1),In=function(pe){return pe==="{"||pe==="}"||hn()&&pe==="#"},Nn=wt("argNameOrNumber"),Dn=wt("argNumber"),Pn="0",Ln=gt("0",!1),Mn=function(){return 0},Bn=/^[1-9]/,Un=qt([["1","9"]],!1,!1),Wt=/^[0-9]/,Gt=qt([["0","9"]],!1,!1),Fn=function(pe){return parseInt(pe.join(""),10)},jn=wt("argName"),xe=0,dt=0,Dt=[{line:1,column:1}],St=0,Ut=[],ze=0,Pt;if(O.startRule!==void 0){if(!(O.startRule in G))throw new Error(`Can't start parsing from rule "`+O.startRule+'".');Y=G[O.startRule]}function Zt(){return W.substring(dt,xe)}function Ft(){return Lt(dt,xe)}function Yt(pe,Se){throw Se=Se!==void 0?Se:Lt(dt,xe),Hn(pe,Se)}function gt(pe,Se){return{type:"literal",text:pe,ignoreCase:Se}}function qt(pe,Se,Ne){return{type:"class",parts:pe,inverted:Se,ignoreCase:Ne}}function Vn(){return{type:"any"}}function zn(){return{type:"end"}}function wt(pe){return{type:"other",description:pe}}function Kt(pe){var Se=Dt[pe],Ne;if(Se)return Se;for(Ne=pe-1;!Dt[Ne];)Ne--;for(Se=Dt[Ne],Se={line:Se.line,column:Se.column};Ne<pe;)W.charCodeAt(Ne)===10?(Se.line++,Se.column=1):Se.column++,Ne++;return Dt[pe]=Se,Se}function Lt(pe,Se){var Ne=Kt(pe),Ue=Kt(Se);return{start:{offset:pe,line:Ne.line,column:Ne.column},end:{offset:Se,line:Ue.line,column:Ue.column}}}function Ze(pe){xe<St||(xe>St&&(St=xe,Ut=[]),Ut.push(pe))}function Hn(pe,Se){return new SyntaxError(pe,[],"",Se)}function Wn(pe,Se,Ne){return new SyntaxError(SyntaxError.buildMessage(pe,Se),pe,Se,Ne)}function Jt(){var pe;return pe=jt(),pe}function jt(){var pe,Se;for(pe=[],Se=Xt();Se!==U;)pe.push(Se),Se=Xt();return pe}function Xt(){var pe;return pe=Gn(),pe===U&&(pe=Yn(),pe===U&&(pe=ns(),pe===U&&(pe=ss(),pe===U&&(pe=is(),pe===U&&(pe=Zn()))))),pe}function Vt(){var pe,Se,Ne;if(pe=xe,Se=[],Ne=It(),Ne===U&&(Ne=dn(),Ne===U&&(Ne=cn())),Ne!==U)for(;Ne!==U;)Se.push(Ne),Ne=It(),Ne===U&&(Ne=dn(),Ne===U&&(Ne=cn()));else Se=U;return Se!==U&&(dt=pe,Se=K(Se)),pe=Se,pe}function Gn(){var pe,Se;return pe=xe,Se=Vt(),Se!==U&&(dt=pe,Se=J(Se)),pe=Se,pe}function Zn(){var pe,Se;return pe=xe,W.charCodeAt(xe)===35?(Se=X,xe++):(Se=U,ze===0&&Ze(ie)),Se!==U&&(dt=pe,Se=ee()),pe=Se,pe}function Yn(){var pe,Se,Ne,Ue,Ge,Xe;return ze++,pe=xe,W.charCodeAt(xe)===123?(Se=Q,xe++):(Se=U,ze===0&&Ze(te)),Se!==U?(Ne=ot(),Ne!==U?(Ue=Nt(),Ue!==U?(Ge=ot(),Ge!==U?(W.charCodeAt(xe)===125?(Xe=se,xe++):(Xe=U,ze===0&&Ze(le)),Xe!==U?(dt=pe,Se=oe(Ue),pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U),ze--,pe===U&&(Se=U,ze===0&&Ze(ne)),pe}function Qt(){var pe,Se,Ne,Ue,Ge;if(ze++,pe=xe,Se=[],Ne=xe,Ue=xe,ze++,Ge=Rt(),Ge===U&&(ae.test(W.charAt(xe))?(Ge=W.charAt(xe),xe++):(Ge=U,ze===0&&Ze(ce))),ze--,Ge===U?Ue=void 0:(xe=Ue,Ue=U),Ue!==U?(W.length>xe?(Ge=W.charAt(xe),xe++):(Ge=U,ze===0&&Ze(ue)),Ge!==U?(Ue=[Ue,Ge],Ne=Ue):(xe=Ne,Ne=U)):(xe=Ne,Ne=U),Ne!==U)for(;Ne!==U;)Se.push(Ne),Ne=xe,Ue=xe,ze++,Ge=Rt(),Ge===U&&(ae.test(W.charAt(xe))?(Ge=W.charAt(xe),xe++):(Ge=U,ze===0&&Ze(ce))),ze--,Ge===U?Ue=void 0:(xe=Ue,Ue=U),Ue!==U?(W.length>xe?(Ge=W.charAt(xe),xe++):(Ge=U,ze===0&&Ze(ue)),Ge!==U?(Ue=[Ue,Ge],Ne=Ue):(xe=Ne,Ne=U)):(xe=Ne,Ne=U);else Se=U;return Se!==U?pe=W.substring(pe,xe):pe=Se,ze--,pe===U&&(Se=U,ze===0&&Ze(re)),pe}function en(){var pe,Se,Ne;return ze++,pe=xe,W.charCodeAt(xe)===47?(Se=he,xe++):(Se=U,ze===0&&Ze(me)),Se!==U?(Ne=Qt(),Ne!==U?(dt=pe,Se=ge(Ne),pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U),ze--,pe===U&&(Se=U,ze===0&&Ze(de)),pe}function tn(){var pe,Se,Ne,Ue,Ge;if(ze++,pe=xe,Se=ot(),Se!==U)if(Ne=Qt(),Ne!==U){for(Ue=[],Ge=en();Ge!==U;)Ue.push(Ge),Ge=en();Ue!==U?(dt=pe,Se=ke(Ne,Ue),pe=Se):(xe=pe,pe=U)}else xe=pe,pe=U;else xe=pe,pe=U;return ze--,pe===U&&(Se=U,ze===0&&Ze(we)),pe}function Kn(){var pe,Se,Ne;if(pe=xe,Se=[],Ne=tn(),Ne!==U)for(;Ne!==U;)Se.push(Ne),Ne=tn();else Se=U;return Se!==U&&(dt=pe,Se=_e(Se)),pe=Se,pe}function Jn(){var pe,Se,Ne;return pe=xe,W.substr(xe,2)===fe?(Se=fe,xe+=2):(Se=U,ze===0&&Ze(be)),Se!==U?(Ne=Kn(),Ne!==U?(dt=pe,Se=ve(Ne),pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U),pe===U&&(pe=xe,dt=xe,Se=$e(),Se?Se=void 0:Se=U,Se!==U?(Ne=Vt(),Ne!==U?(dt=pe,Se=qe(Ne),pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U)),pe}function Xn(){var pe,Se,Ne,Ue,Ge,Xe,ht,rt,yt,at,ft,ct,pt;return pe=xe,W.charCodeAt(xe)===123?(Se=Q,xe++):(Se=U,ze===0&&Ze(te)),Se!==U?(Ne=ot(),Ne!==U?(Ue=Nt(),Ue!==U?(Ge=ot(),Ge!==U?(W.charCodeAt(xe)===44?(Xe=Ce,xe++):(Xe=U,ze===0&&Ze(Ie)),Xe!==U?(ht=ot(),ht!==U?(W.substr(xe,6)===Ve?(rt=Ve,xe+=6):(rt=U,ze===0&&Ze(De)),rt!==U?(yt=ot(),yt!==U?(at=xe,W.charCodeAt(xe)===44?(ft=Ce,xe++):(ft=U,ze===0&&Ze(Ie)),ft!==U?(ct=ot(),ct!==U?(pt=Jn(),pt!==U?(ft=[ft,ct,pt],at=ft):(xe=at,at=U)):(xe=at,at=U)):(xe=at,at=U),at===U&&(at=null),at!==U?(ft=ot(),ft!==U?(W.charCodeAt(xe)===125?(ct=se,xe++):(ct=U,ze===0&&Ze(le)),ct!==U?(dt=pe,Se=Te(Ue,rt,at),pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U),pe}function nn(){var pe,Se,Ne,Ue;if(pe=xe,W.charCodeAt(xe)===39?(Se=ye,xe++):(Se=U,ze===0&&Ze(Ae)),Se!==U){if(Ne=[],Ue=It(),Ue===U&&(Oe.test(W.charAt(xe))?(Ue=W.charAt(xe),xe++):(Ue=U,ze===0&&Ze(Pe))),Ue!==U)for(;Ue!==U;)Ne.push(Ue),Ue=It(),Ue===U&&(Oe.test(W.charAt(xe))?(Ue=W.charAt(xe),xe++):(Ue=U,ze===0&&Ze(Pe)));else Ne=U;Ne!==U?(W.charCodeAt(xe)===39?(Ue=ye,xe++):(Ue=U,ze===0&&Ze(Ae)),Ue!==U?(Se=[Se,Ne,Ue],pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U)}else xe=pe,pe=U;if(pe===U)if(pe=[],Se=It(),Se===U&&(Le.test(W.charAt(xe))?(Se=W.charAt(xe),xe++):(Se=U,ze===0&&Ze(Ee))),Se!==U)for(;Se!==U;)pe.push(Se),Se=It(),Se===U&&(Le.test(W.charAt(xe))?(Se=W.charAt(xe),xe++):(Se=U,ze===0&&Ze(Ee)));else pe=U;return pe}function sn(){var pe,Se;if(pe=[],Re.test(W.charAt(xe))?(Se=W.charAt(xe),xe++):(Se=U,ze===0&&Ze(Me)),Se!==U)for(;Se!==U;)pe.push(Se),Re.test(W.charAt(xe))?(Se=W.charAt(xe),xe++):(Se=U,ze===0&&Ze(Me));else pe=U;return pe}function Qn(){var pe,Se,Ne,Ue;if(pe=xe,Se=xe,Ne=[],Ue=nn(),Ue===U&&(Ue=sn()),Ue!==U)for(;Ue!==U;)Ne.push(Ue),Ue=nn(),Ue===U&&(Ue=sn());else Ne=U;return Ne!==U?Se=W.substring(Se,xe):Se=Ne,Se!==U&&(dt=pe,Se=Be(Se)),pe=Se,pe}function es(){var pe,Se,Ne;return pe=xe,W.substr(xe,2)===fe?(Se=fe,xe+=2):(Se=U,ze===0&&Ze(be)),Se!==U?(Ne=Qn(),Ne!==U?(dt=pe,Se=ve(Ne),pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U),pe===U&&(pe=xe,dt=xe,Se=He(),Se?Se=void 0:Se=U,Se!==U?(Ne=Vt(),Ne!==U?(dt=pe,Se=qe(Ne),pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U)),pe}function ts(){var pe,Se,Ne,Ue,Ge,Xe,ht,rt,yt,at,ft,ct,pt;return pe=xe,W.charCodeAt(xe)===123?(Se=Q,xe++):(Se=U,ze===0&&Ze(te)),Se!==U?(Ne=ot(),Ne!==U?(Ue=Nt(),Ue!==U?(Ge=ot(),Ge!==U?(W.charCodeAt(xe)===44?(Xe=Ce,xe++):(Xe=U,ze===0&&Ze(Ie)),Xe!==U?(ht=ot(),ht!==U?(W.substr(xe,4)===Je?(rt=Je,xe+=4):(rt=U,ze===0&&Ze(Qe)),rt===U&&(W.substr(xe,4)===et?(rt=et,xe+=4):(rt=U,ze===0&&Ze(it))),rt!==U?(yt=ot(),yt!==U?(at=xe,W.charCodeAt(xe)===44?(ft=Ce,xe++):(ft=U,ze===0&&Ze(Ie)),ft!==U?(ct=ot(),ct!==U?(pt=es(),pt!==U?(ft=[ft,ct,pt],at=ft):(xe=at,at=U)):(xe=at,at=U)):(xe=at,at=U),at===U&&(at=null),at!==U?(ft=ot(),ft!==U?(W.charCodeAt(xe)===125?(ct=se,xe++):(ct=U,ze===0&&Ze(le)),ct!==U?(dt=pe,Se=Te(Ue,rt,at),pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U),pe}function ns(){var pe;return pe=Xn(),pe===U&&(pe=ts()),pe}function ss(){var pe,Se,Ne,Ue,Ge,Xe,ht,rt,yt,at,ft,ct,pt,xt,Tt,Ht;if(pe=xe,W.charCodeAt(xe)===123?(Se=Q,xe++):(Se=U,ze===0&&Ze(te)),Se!==U)if(Ne=ot(),Ne!==U)if(Ue=Nt(),Ue!==U)if(Ge=ot(),Ge!==U)if(W.charCodeAt(xe)===44?(Xe=Ce,xe++):(Xe=U,ze===0&&Ze(Ie)),Xe!==U)if(ht=ot(),ht!==U)if(W.substr(xe,6)===lt?(rt=lt,xe+=6):(rt=U,ze===0&&Ze(vt)),rt===U&&(W.substr(xe,13)===bt?(rt=bt,xe+=13):(rt=U,ze===0&&Ze(Fe))),rt!==U)if(yt=ot(),yt!==U)if(W.charCodeAt(xe)===44?(at=Ce,xe++):(at=U,ze===0&&Ze(Ie)),at!==U)if(ft=ot(),ft!==U)if(ct=xe,W.substr(xe,7)===je?(pt=je,xe+=7):(pt=U,ze===0&&Ze(Ye)),pt!==U?(xt=ot(),xt!==U?(Tt=ln(),Tt!==U?(pt=[pt,xt,Tt],ct=pt):(xe=ct,ct=U)):(xe=ct,ct=U)):(xe=ct,ct=U),ct===U&&(ct=null),ct!==U)if(pt=ot(),pt!==U){if(xt=[],Tt=on(),Tt!==U)for(;Tt!==U;)xt.push(Tt),Tt=on();else xt=U;xt!==U?(Tt=ot(),Tt!==U?(W.charCodeAt(xe)===125?(Ht=se,xe++):(Ht=U,ze===0&&Ze(le)),Ht!==U?(dt=pe,Se=Ke(Ue,rt,ct,xt),pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)}else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;return pe}function is(){var pe,Se,Ne,Ue,Ge,Xe,ht,rt,yt,at,ft,ct,pt,xt;if(pe=xe,W.charCodeAt(xe)===123?(Se=Q,xe++):(Se=U,ze===0&&Ze(te)),Se!==U)if(Ne=ot(),Ne!==U)if(Ue=Nt(),Ue!==U)if(Ge=ot(),Ge!==U)if(W.charCodeAt(xe)===44?(Xe=Ce,xe++):(Xe=U,ze===0&&Ze(Ie)),Xe!==U)if(ht=ot(),ht!==U)if(W.substr(xe,6)===We?(rt=We,xe+=6):(rt=U,ze===0&&Ze(tt)),rt!==U)if(yt=ot(),yt!==U)if(W.charCodeAt(xe)===44?(at=Ce,xe++):(at=U,ze===0&&Ze(Ie)),at!==U)if(ft=ot(),ft!==U){if(ct=[],pt=rn(),pt!==U)for(;pt!==U;)ct.push(pt),pt=rn();else ct=U;ct!==U?(pt=ot(),pt!==U?(W.charCodeAt(xe)===125?(xt=se,xe++):(xt=U,ze===0&&Ze(le)),xt!==U?(dt=pe,Se=nt(Ue,ct),pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)}else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;return pe}function rs(){var pe,Se,Ne,Ue;return pe=xe,Se=xe,W.charCodeAt(xe)===61?(Ne=st,xe++):(Ne=U,ze===0&&Ze(mt)),Ne!==U?(Ue=ln(),Ue!==U?(Ne=[Ne,Ue],Se=Ne):(xe=Se,Se=U)):(xe=Se,Se=U),Se!==U?pe=W.substring(pe,xe):pe=Se,pe===U&&(pe=zt()),pe}function rn(){var pe,Se,Ne,Ue,Ge,Xe,ht,rt;return pe=xe,Se=ot(),Se!==U?(Ne=zt(),Ne!==U?(Ue=ot(),Ue!==U?(W.charCodeAt(xe)===123?(Ge=Q,xe++):(Ge=U,ze===0&&Ze(te)),Ge!==U?(dt=xe,Xe=$t(),Xe?Xe=void 0:Xe=U,Xe!==U?(ht=jt(),ht!==U?(W.charCodeAt(xe)===125?(rt=se,xe++):(rt=U,ze===0&&Ze(le)),rt!==U?(dt=pe,Se=ut(Ne,ht),pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U),pe}function on(){var pe,Se,Ne,Ue,Ge,Xe,ht,rt;return pe=xe,Se=ot(),Se!==U?(Ne=rs(),Ne!==U?(Ue=ot(),Ue!==U?(W.charCodeAt(xe)===123?(Ge=Q,xe++):(Ge=U,ze===0&&Ze(te)),Ge!==U?(dt=xe,Xe=Mt(),Xe?Xe=void 0:Xe=U,Xe!==U?(ht=jt(),ht!==U?(W.charCodeAt(xe)===125?(rt=se,xe++):(rt=U,ze===0&&Ze(le)),rt!==U?(dt=pe,Se=_t(Ne,ht),pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U),pe}function Rt(){var pe;return ze++,gn.test(W.charAt(xe))?(pe=W.charAt(xe),xe++):(pe=U,ze===0&&Ze(vn)),ze--,pe===U&&ze===0&&Ze(kt),pe}function an(){var pe;return ze++,yn.test(W.charAt(xe))?(pe=W.charAt(xe),xe++):(pe=U,ze===0&&Ze(wn)),ze--,pe===U&&ze===0&&Ze(mn),pe}function ot(){var pe,Se,Ne;for(ze++,pe=xe,Se=[],Ne=Rt();Ne!==U;)Se.push(Ne),Ne=Rt();return Se!==U?pe=W.substring(pe,xe):pe=Se,ze--,pe===U&&(Se=U,ze===0&&Ze(xn)),pe}function ln(){var pe,Se,Ne;return ze++,pe=xe,W.charCodeAt(xe)===45?(Se=kn,xe++):(Se=U,ze===0&&Ze(Sn)),Se===U&&(Se=null),Se!==U?(Ne=un(),Ne!==U?(dt=pe,Se=An(Se,Ne),pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U),ze--,pe===U&&(Se=U,ze===0&&Ze($n)),pe}function It(){var pe,Se;return ze++,pe=xe,W.substr(xe,2)===Ct?(Se=Ct,xe+=2):(Se=U,ze===0&&Ze(Bt)),Se!==U&&(dt=pe,Se=Tn()),pe=Se,ze--,pe===U&&(Se=U,ze===0&&Ze(En)),pe}function dn(){var pe,Se,Ne,Ue,Ge,Xe;if(pe=xe,W.charCodeAt(xe)===39?(Se=ye,xe++):(Se=U,ze===0&&Ze(Ae)),Se!==U)if(Ne=os(),Ne!==U){for(Ue=xe,Ge=[],W.substr(xe,2)===Ct?(Xe=Ct,xe+=2):(Xe=U,ze===0&&Ze(Bt)),Xe===U&&(Oe.test(W.charAt(xe))?(Xe=W.charAt(xe),xe++):(Xe=U,ze===0&&Ze(Pe)));Xe!==U;)Ge.push(Xe),W.substr(xe,2)===Ct?(Xe=Ct,xe+=2):(Xe=U,ze===0&&Ze(Bt)),Xe===U&&(Oe.test(W.charAt(xe))?(Xe=W.charAt(xe),xe++):(Xe=U,ze===0&&Ze(Pe)));Ge!==U?Ue=W.substring(Ue,xe):Ue=Ge,Ue!==U?(W.charCodeAt(xe)===39?(Ge=ye,xe++):(Ge=U,ze===0&&Ze(Ae)),Ge===U&&(Ge=null),Ge!==U?(dt=pe,Se=qn(Ne,Ue),pe=Se):(xe=pe,pe=U)):(xe=pe,pe=U)}else xe=pe,pe=U;else xe=pe,pe=U;return pe}function cn(){var pe,Se,Ne,Ue;return pe=xe,Se=xe,W.length>xe?(Ne=W.charAt(xe),xe++):(Ne=U,ze===0&&Ze(ue)),Ne!==U?(dt=xe,Ue=On(Ne),Ue?Ue=void 0:Ue=U,Ue!==U?(Ne=[Ne,Ue],Se=Ne):(xe=Se,Se=U)):(xe=Se,Se=U),Se===U&&(W.charCodeAt(xe)===10?(Se=Cn,xe++):(Se=U,ze===0&&Ze(Rn))),Se!==U?pe=W.substring(pe,xe):pe=Se,pe}function os(){var pe,Se,Ne,Ue;return pe=xe,Se=xe,W.length>xe?(Ne=W.charAt(xe),xe++):(Ne=U,ze===0&&Ze(ue)),Ne!==U?(dt=xe,Ue=In(Ne),Ue?Ue=void 0:Ue=U,Ue!==U?(Ne=[Ne,Ue],Se=Ne):(xe=Se,Se=U)):(xe=Se,Se=U),Se!==U?pe=W.substring(pe,xe):pe=Se,pe}function Nt(){var pe,Se;return ze++,pe=xe,Se=un(),Se===U&&(Se=zt()),Se!==U?pe=W.substring(pe,xe):pe=Se,ze--,pe===U&&(Se=U,ze===0&&Ze(Nn)),pe}function un(){var pe,Se,Ne,Ue,Ge;if(ze++,pe=xe,W.charCodeAt(xe)===48?(Se=Pn,xe++):(Se=U,ze===0&&Ze(Ln)),Se!==U&&(dt=pe,Se=Mn()),pe=Se,pe===U){if(pe=xe,Se=xe,Bn.test(W.charAt(xe))?(Ne=W.charAt(xe),xe++):(Ne=U,ze===0&&Ze(Un)),Ne!==U){for(Ue=[],Wt.test(W.charAt(xe))?(Ge=W.charAt(xe),xe++):(Ge=U,ze===0&&Ze(Gt));Ge!==U;)Ue.push(Ge),Wt.test(W.charAt(xe))?(Ge=W.charAt(xe),xe++):(Ge=U,ze===0&&Ze(Gt));Ue!==U?(Ne=[Ne,Ue],Se=Ne):(xe=Se,Se=U)}else xe=Se,Se=U;Se!==U&&(dt=pe,Se=Fn(Se)),pe=Se}return ze--,pe===U&&(Se=U,ze===0&&Ze(Dn)),pe}function zt(){var pe,Se,Ne,Ue,Ge;if(ze++,pe=xe,Se=[],Ne=xe,Ue=xe,ze++,Ge=Rt(),Ge===U&&(Ge=an()),ze--,Ge===U?Ue=void 0:(xe=Ue,Ue=U),Ue!==U?(W.length>xe?(Ge=W.charAt(xe),xe++):(Ge=U,ze===0&&Ze(ue)),Ge!==U?(Ue=[Ue,Ge],Ne=Ue):(xe=Ne,Ne=U)):(xe=Ne,Ne=U),Ne!==U)for(;Ne!==U;)Se.push(Ne),Ne=xe,Ue=xe,ze++,Ge=Rt(),Ge===U&&(Ge=an()),ze--,Ge===U?Ue=void 0:(xe=Ue,Ue=U),Ue!==U?(W.length>xe?(Ge=W.charAt(xe),xe++):(Ge=U,ze===0&&Ze(ue)),Ge!==U?(Ue=[Ue,Ge],Ne=Ue):(xe=Ne,Ne=U)):(xe=Ne,Ne=U);else Se=U;return Se!==U?pe=W.substring(pe,xe):pe=Se,ze--,pe===U&&(Se=U,ze===0&&Ze(jn)),pe}var At=["root"];function as(){return At.length>1}function hn(){return At[At.length-1]==="plural"}function Et(){return O&&O.captureLocation?{location:Ft()}:{}}if(Pt=Y(),Pt!==U&&xe===W.length)return Pt;throw Pt!==U&&xe<W.length&&Ze(zn()),Wn(Ut,St<W.length?W.charAt(St):null,St<W.length?Lt(St,St+1):Lt(St,St))}var pegParse=peg$parse,__spreadArrays$2=function(){for(var W=0,O=0,U=arguments.length;O<U;O++)W+=arguments[O].length;for(var G=Array(W),Y=0,O=0;O<U;O++)for(var K=arguments[O],J=0,X=K.length;J<X;J++,Y++)G[Y]=K[J];return G},PLURAL_HASHTAG_REGEX=/(^|[^\\])#/g;function normalizeHashtagInPlural(W){W.forEach(function(O){!isPluralElement(O)&&!isSelectElement(O)||Object.keys(O.options).forEach(function(U){for(var G,Y=O.options[U],K=-1,J=void 0,X=0;X<Y.value.length;X++){var ie=Y.value[X];if(isLiteralElement(ie)&&PLURAL_HASHTAG_REGEX.test(ie.value)){K=X,J=ie;break}}if(J){var ee=J.value.replace(PLURAL_HASHTAG_REGEX,"$1{"+O.value+", number}"),ne=pegParse(ee);(G=Y.value).splice.apply(G,__spreadArrays$2([K,1],ne))}normalizeHashtagInPlural(Y.value)})})}var __assign$3=function(){return __assign$3=Object.assign||function(W){for(var O,U=1,G=arguments.length;U<G;U++){O=arguments[U];for(var Y in O)Object.prototype.hasOwnProperty.call(O,Y)&&(W[Y]=O[Y])}return W},__assign$3.apply(this,arguments)},DATE_TIME_REGEX=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function parseDateTimeSkeleton(W){var O={};return W.replace(DATE_TIME_REGEX,function(U){var G=U.length;switch(U[0]){case"G":O.era=G===4?"long":G===5?"narrow":"short";break;case"y":O.year=G===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":O.month=["numeric","2-digit","short","long","narrow"][G-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":O.day=["numeric","2-digit"][G-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":O.weekday=G===4?"short":G===5?"narrow":"short";break;case"e":if(G<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");O.weekday=["short","long","narrow","short"][G-4];break;case"c":if(G<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");O.weekday=["short","long","narrow","short"][G-4];break;case"a":O.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":O.hourCycle="h12",O.hour=["numeric","2-digit"][G-1];break;case"H":O.hourCycle="h23",O.hour=["numeric","2-digit"][G-1];break;case"K":O.hourCycle="h11",O.hour=["numeric","2-digit"][G-1];break;case"k":O.hourCycle="h24",O.hour=["numeric","2-digit"][G-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":O.minute=["numeric","2-digit"][G-1];break;case"s":O.second=["numeric","2-digit"][G-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":O.timeZoneName=G<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""}),O}function icuUnitToEcma(W){return W.replace(/^(.*?)-/,"")}var FRACTION_PRECISION_REGEX=/^\.(?:(0+)(\+|#+)?)?$/g,SIGNIFICANT_PRECISION_REGEX=/^(@+)?(\+|#+)?$/g;function parseSignificantPrecision(W){var O={};return W.replace(SIGNIFICANT_PRECISION_REGEX,function(U,G,Y){return typeof Y!="string"?(O.minimumSignificantDigits=G.length,O.maximumSignificantDigits=G.length):Y==="+"?O.minimumSignificantDigits=G.length:G[0]==="#"?O.maximumSignificantDigits=G.length:(O.minimumSignificantDigits=G.length,O.maximumSignificantDigits=G.length+(typeof Y=="string"?Y.length:0)),""}),O}function parseSign(W){switch(W){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function parseNotationOptions(W){var O={},U=parseSign(W);return U||O}function convertNumberSkeletonToNumberFormatOptions(W){for(var O={},U=0,G=W;U<G.length;U++){var Y=G[U];switch(Y.stem){case"percent":O.style="percent";continue;case"currency":O.style="currency",O.currency=Y.options[0];continue;case"group-off":O.useGrouping=!1;continue;case"precision-integer":O.maximumFractionDigits=0;continue;case"measure-unit":O.style="unit",O.unit=icuUnitToEcma(Y.options[0]);continue;case"compact-short":O.notation="compact",O.compactDisplay="short";continue;case"compact-long":O.notation="compact",O.compactDisplay="long";continue;case"scientific":O=__assign$3(__assign$3(__assign$3({},O),{notation:"scientific"}),Y.options.reduce(function(J,X){return __assign$3(__assign$3({},J),parseNotationOptions(X))},{}));continue;case"engineering":O=__assign$3(__assign$3(__assign$3({},O),{notation:"engineering"}),Y.options.reduce(function(J,X){return __assign$3(__assign$3({},J),parseNotationOptions(X))},{}));continue;case"notation-simple":O.notation="standard";continue;case"unit-width-narrow":O.currencyDisplay="narrowSymbol",O.unitDisplay="narrow";continue;case"unit-width-short":O.currencyDisplay="code",O.unitDisplay="short";continue;case"unit-width-full-name":O.currencyDisplay="name",O.unitDisplay="long";continue;case"unit-width-iso-code":O.currencyDisplay="symbol";continue}if(FRACTION_PRECISION_REGEX.test(Y.stem)){if(Y.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");Y.stem.replace(FRACTION_PRECISION_REGEX,function(J,X,ie){return J==="."?O.maximumFractionDigits=0:ie==="+"?O.minimumFractionDigits=ie.length:X[0]==="#"?O.maximumFractionDigits=X.length:(O.minimumFractionDigits=X.length,O.maximumFractionDigits=X.length+(typeof ie=="string"?ie.length:0)),""}),Y.options.length&&(O=__assign$3(__assign$3({},O),parseSignificantPrecision(Y.options[0])));continue}if(SIGNIFICANT_PRECISION_REGEX.test(Y.stem)){O=__assign$3(__assign$3({},O),parseSignificantPrecision(Y.stem));continue}var K=parseSign(Y.stem);K&&(O=__assign$3(__assign$3({},O),K))}return O}function parse(W,O){var U=pegParse(W,O);return(!O||O.normalizeHashtagInPlural!==!1)&&normalizeHashtagInPlural(U),U}var __spreadArrays$1=function(){for(var W=0,O=0,U=arguments.length;O<U;O++)W+=arguments[O].length;for(var G=Array(W),Y=0,O=0;O<U;O++)for(var K=arguments[O],J=0,X=K.length;J<X;J++,Y++)G[Y]=K[J];return G};function getCacheId(W){return JSON.stringify(W.map(function(O){return O&&typeof O=="object"?orderedProps(O):O}))}function orderedProps(W){return Object.keys(W).sort().map(function(O){var U;return U={},U[O]=W[O],U})}var memoizeFormatConstructor=function(W,O){return O===void 0&&(O={}),function(){for(var U,G=[],Y=0;Y<arguments.length;Y++)G[Y]=arguments[Y];var K=getCacheId(G),J=K&&O[K];return J||(J=new((U=W).bind.apply(U,__spreadArrays$1([void 0],G))),K&&(O[K]=J)),J}},__extends$1=function(){var W=function(O,U){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Y){G.__proto__=Y}||function(G,Y){for(var K in Y)Y.hasOwnProperty(K)&&(G[K]=Y[K])},W(O,U)};return function(O,U){W(O,U);function G(){this.constructor=O}O.prototype=U===null?Object.create(U):(G.prototype=U.prototype,new G)}}(),__spreadArrays=function(){for(var W=0,O=0,U=arguments.length;O<U;O++)W+=arguments[O].length;for(var G=Array(W),Y=0,O=0;O<U;O++)for(var K=arguments[O],J=0,X=K.length;J<X;J++,Y++)G[Y]=K[J];return G},FormatError=function(W){__extends$1(O,W);function O(U,G){var Y=W.call(this,U)||this;return Y.variableId=G,Y}return O}(Error);function mergeLiteral(W){return W.length<2?W:W.reduce(function(O,U){var G=O[O.length-1];return!G||G.type!==0||U.type!==0?O.push(U):G.value+=U.value,O},[])}function formatToParts(W,O,U,G,Y,K,J){if(W.length===1&&isLiteralElement(W[0]))return[{type:0,value:W[0].value}];for(var X=[],ie=0,ee=W;ie<ee.length;ie++){var ne=ee[ie];if(isLiteralElement(ne)){X.push({type:0,value:ne.value});continue}if(isPoundElement(ne)){typeof K=="number"&&X.push({type:0,value:U.getNumberFormat(O).format(K)});continue}var Q=ne.value;if(!(Y&&Q in Y))throw new FormatError('The intl string context variable "'+Q+'" was not provided to the string "'+J+'"');var te=Y[Q];if(isArgumentElement(ne)){(!te||typeof te=="string"||typeof te=="number")&&(te=typeof te=="string"||typeof te=="number"?String(te):""),X.push({type:1,value:te});continue}if(isDateElement(ne)){var se=typeof ne.style=="string"?G.date[ne.style]:void 0;X.push({type:0,value:U.getDateTimeFormat(O,se).format(te)});continue}if(isTimeElement(ne)){var se=typeof ne.style=="string"?G.time[ne.style]:isDateTimeSkeleton(ne.style)?parseDateTimeSkeleton(ne.style.pattern):void 0;X.push({type:0,value:U.getDateTimeFormat(O,se).format(te)});continue}if(isNumberElement(ne)){var se=typeof ne.style=="string"?G.number[ne.style]:isNumberSkeleton(ne.style)?convertNumberSkeletonToNumberFormatOptions(ne.style.tokens):void 0;X.push({type:0,value:U.getNumberFormat(O,se).format(te)});continue}if(isSelectElement(ne)){var le=ne.options[te]||ne.options.other;if(!le)throw new RangeError('Invalid values for "'+ne.value+'": "'+te+'". Options are "'+Object.keys(ne.options).join('", "')+'"');X.push.apply(X,formatToParts(le.value,O,U,G,Y));continue}if(isPluralElement(ne)){var le=ne.options["="+te];if(!le){if(!Intl.PluralRules)throw new FormatError(`Intl.PluralRules is not available in this environment.
124
+ `,l$2=W=>j$1(W,p$6);let h$1=class{constructor(){this.viewsByRegion={},this.regions={}}registerRegion(O,U){this.regions[O]=[...this.regions[O]||[],U]}unregisterRegion(O,U){this.regions[O]=this.getRegionsByName(O).filter(G=>G!==U)}registerView(O,U,G){this.viewsByRegion[O]=[...this.viewsByRegion[O]||[],{key:U,view:G}]}getRegisteredViews(O){return this.viewsByRegion[O]||[]}getRegionsByName(O){return this.regions[O]||[]}destroy(){this.viewsByRegion={},this.regions={}}clear(){this.viewsByRegion={}}},o$5=class Rn{constructor(O){this._viewRegistry=O,this._regions={}}add(O,U){if(this.getRegion(O))throw new Error("A region with the same name already exists");return this._regions[O]=U,this._viewRegistry.registerRegion(O,U),this}getRegion(O){return this._regions[O]}remove(O){let U,G="";return typeof O=="string"?(U=this.getRegion(O),G=O,delete this._regions[O]):typeof O=="object"&&(G=Object.keys(this._regions).find(Y=>this._regions[Y]===O),G&&(U=O,delete this._regions[G])),G&&U&&this._viewRegistry.unregisterRegion(G,U),U}addViewToRegion(O,U,G){const Y=this.getRegion(O);if(!Y)throw new Error(`Couldn't find a region with name: ${O}`);return Y.addView(U,G),this}registerViewWithRegion(O,U,G){return this._viewRegistry.registerView(O,U,G),this._viewRegistry.getRegionsByName(O).forEach(Y=>Y.addView(U,G)),this}getRegisteredViews(O){return this._viewRegistry.getRegisteredViews(O)}clear(){return Object.values(this._viewRegistry.regions).forEach(O=>{O!=null&&O.length&&Object.keys(O[0].views).forEach(U=>{var G;return(G=O[0])==null?void 0:G.removeView(U)})}),this}destroy(){return this.clear(),Object.values(this._viewRegistry.regions).forEach(O=>this.remove(O[0])),this._regions={},this}createRegionManager(){return new Rn(this._viewRegistry)}};class a extends o$5{constructor(O){const U=new h$1;super(U),this._name=O}clear(){return super.clear(),this._viewRegistry.clear(),this}destroy(){return super.destroy(),this._viewRegistry.destroy(),this}}const u$4=W=>new a(W),c$3=W=>W.importer(),R=W=>(O,U)=>c$3(O).then(G=>W(O,U)(G)),w=(W,O)=>U=>U.initialize(O(W)),d=(W,O)=>{if((W==null?void 0:W.length)>0){const U=G=>R(w)(G,O);return Promise.all(W.map(G=>U(G))).catch(G=>console.log(G))}throw new Error("No plugins to bootstrap")};function _concat(W,O){W=W||[],O=O||[];var U,G=W.length,Y=O.length,K=[];for(U=0;U<G;)K[K.length]=W[U],U+=1;for(U=0;U<Y;)K[K.length]=O[U],U+=1;return K}var ap=_curry2$1(function(O,U){return typeof U["fantasy-land/ap"]=="function"?U["fantasy-land/ap"](O):typeof O.ap=="function"?O.ap(U):typeof O=="function"?function(G){return O(G)(U(G))}:_reduce(function(G,Y){return _concat(G,map$1(Y,U))},[],O)}),assoc=_curry3$1(function(O,U,G){var Y={};for(var K in G)Y[K]=G[K];return Y[O]=U,Y}),assocPath=_curry3$1(function W(O,U,G){if(O.length===0)return U;var Y=O[0];if(O.length>1){var K=!isNil$1(G)&&_has$1(Y,G)?G[Y]:_isInteger(O[1])?[]:{};U=W(Array.prototype.slice.call(O,1),U,K)}if(_isInteger(Y)&&_isArray$1(G)){var J=[].concat(G);return J[Y]=U,J}else return assoc(Y,U,G)}),liftN=_curry2$1(function(O,U){var G=curryN$1(O,U);return curryN$1(O,function(){return _reduce(ap,map$1(G,arguments[0]),Array.prototype.slice.call(arguments,1))})}),lift=_curry1$1(function(O){return liftN(O.length,O)}),not=_curry1$1(function(O){return!O}),complement=lift(not),lens=_curry2$1(function(O,U){return function(G){return function(Y){return map$1(function(K){return U(K,Y)},G(O(Y)))}}}),lensPath=_curry1$1(function(O){return lens(path(O),assocPath(O))}),mergeWithKey=_curry3$1(function(O,U,G){var Y={},K;for(K in U)_has$1(K,U)&&(Y[K]=_has$1(K,G)?O(K,U[K],G[K]):U[K]);for(K in G)_has$1(K,G)&&!_has$1(K,Y)&&(Y[K]=G[K]);return Y}),mergeDeepWithKey=_curry3$1(function W(O,U,G){return mergeWithKey(function(Y,K,J){return _isObject$1(K)&&_isObject$1(J)?W(O,K,J):O(Y,K,J)},U,G)}),mergeDeepRight=_curry2$1(function(O,U){return mergeDeepWithKey(function(G,Y,K){return K},O,U)}),Const=function(W){return{value:W,"fantasy-land/map":function(){return this}}},view=_curry2$1(function(O,U){return O(Const)(U).value});const t$4=complement(isNil$1);function _arity(W,O){switch(W){case 0:return function(){return O.apply(this,arguments)};case 1:return function(U){return O.apply(this,arguments)};case 2:return function(U,G){return O.apply(this,arguments)};case 3:return function(U,G,Y){return O.apply(this,arguments)};case 4:return function(U,G,Y,K){return O.apply(this,arguments)};case 5:return function(U,G,Y,K,J){return O.apply(this,arguments)};case 6:return function(U,G,Y,K,J,X){return O.apply(this,arguments)};case 7:return function(U,G,Y,K,J,X,se){return O.apply(this,arguments)};case 8:return function(U,G,Y,K,J,X,se,ee){return O.apply(this,arguments)};case 9:return function(U,G,Y,K,J,X,se,ee,ne){return O.apply(this,arguments)};case 10:return function(U,G,Y,K,J,X,se,ee,ne,Q){return O.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _isPlaceholder(W){return W!=null&&typeof W=="object"&&W["@@functional/placeholder"]===!0}function _curry1(W){return function O(U){return arguments.length===0||_isPlaceholder(U)?O:W.apply(this,arguments)}}function _arrayReduce(W,O,U){for(var G=0,Y=U.length;G<Y;)O=W(O,U[G]),G+=1;return O}function _curry2(W){return function O(U,G){switch(arguments.length){case 0:return O;case 1:return _isPlaceholder(U)?O:_curry1(function(Y){return W(U,Y)});default:return _isPlaceholder(U)&&_isPlaceholder(G)?O:_isPlaceholder(U)?_curry1(function(Y){return W(Y,G)}):_isPlaceholder(G)?_curry1(function(Y){return W(U,Y)}):W(U,G)}}}const _isArray=Array.isArray||function(O){return O!=null&&O.length>=0&&Object.prototype.toString.call(O)==="[object Array]"};function _isTransformer(W){return W!=null&&typeof W["@@transducer/step"]=="function"}function _dispatchable(W,O,U){return function(){if(arguments.length===0)return U();var G=arguments[arguments.length-1];if(!_isArray(G)){for(var Y=0;Y<W.length;){if(typeof G[W[Y]]=="function")return G[W[Y]].apply(G,Array.prototype.slice.call(arguments,0,-1));Y+=1}if(_isTransformer(G)){var K=O.apply(null,Array.prototype.slice.call(arguments,0,-1));return K(G)}}return U.apply(this,arguments)}}function _map(W,O){for(var U=0,G=O.length,Y=Array(G);U<G;)Y[U]=W(O[U]),U+=1;return Y}const _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(W){return this.xf["@@transducer/result"](W)}};var XMap=function(){function W(O,U){this.xf=U,this.f=O}return W.prototype["@@transducer/init"]=_xfBase.init,W.prototype["@@transducer/result"]=_xfBase.result,W.prototype["@@transducer/step"]=function(O,U){return this.xf["@@transducer/step"](O,this.f(U))},W}(),_xmap=function(O){return function(U){return new XMap(O,U)}};function _curryN(W,O,U){return function(){for(var G=[],Y=0,K=W,J=0,X=!1;J<O.length||Y<arguments.length;){var se;J<O.length&&(!_isPlaceholder(O[J])||Y>=arguments.length)?se=O[J]:(se=arguments[Y],Y+=1),G[J]=se,_isPlaceholder(se)?X=!0:K-=1,J+=1}return!X&&K<=0?U.apply(this,G):_arity(Math.max(0,K),_curryN(W,G,U))}}var curryN=_curry2(function(O,U){return O===1?_curry1(U):_arity(O,_curryN(O,[],U))});function _has(W,O){return Object.prototype.hasOwnProperty.call(O,W)}var toString$2=Object.prototype.toString,_isArguments=function(){return toString$2.call(arguments)==="[object Arguments]"?function(O){return toString$2.call(O)==="[object Arguments]"}:function(O){return _has("callee",O)}}(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){return arguments.propertyIsEnumerable("length")}(),contains=function(O,U){for(var G=0;G<O.length;){if(O[G]===U)return!0;G+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function(O){return Object(O)!==O?[]:Object.keys(O)}:function(O){if(Object(O)!==O)return[];var U,G,Y=[],K=hasArgsEnumBug&&_isArguments(O);for(U in O)_has(U,O)&&(!K||U!=="length")&&(Y[Y.length]=U);if(hasEnumBug)for(G=nonEnumerableProps.length-1;G>=0;)U=nonEnumerableProps[G],_has(U,O)&&!contains(Y,U)&&(Y[Y.length]=U),G-=1;return Y}),map=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,function(O,U){switch(Object.prototype.toString.call(U)){case"[object Function]":return curryN(U.length,function(){return O.call(this,U.apply(this,arguments))});case"[object Object]":return _arrayReduce(function(G,Y){return G[Y]=O(U[Y]),G},{},keys(U));default:return _map(O,U)}}));function _arrayFromIterator(W){for(var O=[],U;!(U=W.next()).done;)O.push(U.value);return O}function _includesWith(W,O,U){for(var G=0,Y=U.length;G<Y;){if(W(O,U[G]))return!0;G+=1}return!1}function _functionName(W){var O=String(W).match(/^function (\w*)/);return O==null?"":O[1]}function _objectIs(W,O){return W===O?W!==0||1/W===1/O:W!==W&&O!==O}const _objectIs$1=typeof Object.is=="function"?Object.is:_objectIs;var type=_curry1(function(O){return O===null?"Null":O===void 0?"Undefined":Object.prototype.toString.call(O).slice(8,-1)});function _uniqContentEquals(W,O,U,G){var Y=_arrayFromIterator(W),K=_arrayFromIterator(O);function J(X,se){return _equals(X,se,U.slice(),G.slice())}return!_includesWith(function(X,se){return!_includesWith(J,se,X)},K,Y)}function _equals(W,O,U,G){if(_objectIs$1(W,O))return!0;var Y=type(W);if(Y!==type(O))return!1;if(typeof W["fantasy-land/equals"]=="function"||typeof O["fantasy-land/equals"]=="function")return typeof W["fantasy-land/equals"]=="function"&&W["fantasy-land/equals"](O)&&typeof O["fantasy-land/equals"]=="function"&&O["fantasy-land/equals"](W);if(typeof W.equals=="function"||typeof O.equals=="function")return typeof W.equals=="function"&&W.equals(O)&&typeof O.equals=="function"&&O.equals(W);switch(Y){case"Arguments":case"Array":case"Object":if(typeof W.constructor=="function"&&_functionName(W.constructor)==="Promise")return W===O;break;case"Boolean":case"Number":case"String":if(!(typeof W==typeof O&&_objectIs$1(W.valueOf(),O.valueOf())))return!1;break;case"Date":if(!_objectIs$1(W.valueOf(),O.valueOf()))return!1;break;case"Error":return W.name===O.name&&W.message===O.message;case"RegExp":if(!(W.source===O.source&&W.global===O.global&&W.ignoreCase===O.ignoreCase&&W.multiline===O.multiline&&W.sticky===O.sticky&&W.unicode===O.unicode))return!1;break}for(var K=U.length-1;K>=0;){if(U[K]===W)return G[K]===O;K-=1}switch(Y){case"Map":return W.size!==O.size?!1:_uniqContentEquals(W.entries(),O.entries(),U.concat([W]),G.concat([O]));case"Set":return W.size!==O.size?!1:_uniqContentEquals(W.values(),O.values(),U.concat([W]),G.concat([O]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var J=keys(W);if(J.length!==keys(O).length)return!1;var X=U.concat([W]),se=G.concat([O]);for(K=J.length-1;K>=0;){var ee=J[K];if(!(_has(ee,O)&&_equals(O[ee],W[ee],X,se)))return!1;K-=1}return!0}var equals=_curry2(function(O,U){return _equals(O,U,[],[])});function _indexOf(W,O,U){var G,Y;if(typeof W.indexOf=="function")switch(typeof O){case"number":if(O===0){for(G=1/O;U<W.length;){if(Y=W[U],Y===0&&1/Y===G)return U;U+=1}return-1}else if(O!==O){for(;U<W.length;){if(Y=W[U],typeof Y=="number"&&Y!==Y)return U;U+=1}return-1}return W.indexOf(O,U);case"string":case"boolean":case"function":case"undefined":return W.indexOf(O,U);case"object":if(O===null)return W.indexOf(O,U)}for(;U<W.length;){if(equals(W[U],O))return U;U+=1}return-1}function _includes(W,O){return _indexOf(O,W,0)>=0}function _quote(W){var O=W.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+O.replace(/"/g,'\\"')+'"'}var pad=function(O){return(O<10?"0":"")+O},_toISOString=typeof Date.prototype.toISOString=="function"?function(O){return O.toISOString()}:function(O){return O.getUTCFullYear()+"-"+pad(O.getUTCMonth()+1)+"-"+pad(O.getUTCDate())+"T"+pad(O.getUTCHours())+":"+pad(O.getUTCMinutes())+":"+pad(O.getUTCSeconds())+"."+(O.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(W){return function(){return!W.apply(this,arguments)}}function _filter(W,O){for(var U=0,G=O.length,Y=[];U<G;)W(O[U])&&(Y[Y.length]=O[U]),U+=1;return Y}function _isObject(W){return Object.prototype.toString.call(W)==="[object Object]"}var XFilter=function(){function W(O,U){this.xf=U,this.f=O}return W.prototype["@@transducer/init"]=_xfBase.init,W.prototype["@@transducer/result"]=_xfBase.result,W.prototype["@@transducer/step"]=function(O,U){return this.f(U)?this.xf["@@transducer/step"](O,U):O},W}();function _xfilter(W){return function(O){return new XFilter(W,O)}}var filter=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,function(W,O){return _isObject(O)?_arrayReduce(function(U,G){return W(O[G])&&(U[G]=O[G]),U},{},keys(O)):_filter(W,O)})),reject=_curry2(function(O,U){return filter(_complement(O),U)});function _toString(W,O){var U=function(J){var X=O.concat([W]);return _includes(J,X)?"<Circular>":_toString(J,X)},G=function(K,J){return _map(function(X){return _quote(X)+": "+U(K[X])},J.slice().sort())};switch(Object.prototype.toString.call(W)){case"[object Arguments]":return"(function() { return arguments; }("+_map(U,W).join(", ")+"))";case"[object Array]":return"["+_map(U,W).concat(G(W,reject(function(K){return/^\d+$/.test(K)},keys(W)))).join(", ")+"]";case"[object Boolean]":return typeof W=="object"?"new Boolean("+U(W.valueOf())+")":W.toString();case"[object Date]":return"new Date("+(isNaN(W.valueOf())?U(NaN):_quote(_toISOString(W)))+")";case"[object Map]":return"new Map("+U(Array.from(W))+")";case"[object Null]":return"null";case"[object Number]":return typeof W=="object"?"new Number("+U(W.valueOf())+")":1/W===-1/0?"-0":W.toString(10);case"[object Set]":return"new Set("+U(Array.from(W).sort())+")";case"[object String]":return typeof W=="object"?"new String("+U(W.valueOf())+")":_quote(W);case"[object Undefined]":return"undefined";default:if(typeof W.toString=="function"){var Y=W.toString();if(Y!=="[object Object]")return Y}return"{"+G(W,keys(W)).join(", ")+"}"}}var toString$1=_curry1(function(O){return _toString(O,[])}),max=_curry2(function(O,U){if(O===U)return U;function G(se,ee){if(se>ee!=ee>se)return ee>se?ee:se}var Y=G(O,U);if(Y!==void 0)return Y;var K=G(typeof O,typeof U);if(K!==void 0)return K===typeof O?O:U;var J=toString$1(O),X=G(J,toString$1(U));return X!==void 0&&X===J?O:U});function _curry3(W){return function O(U,G,Y){switch(arguments.length){case 0:return O;case 1:return _isPlaceholder(U)?O:_curry2(function(K,J){return W(U,K,J)});case 2:return _isPlaceholder(U)&&_isPlaceholder(G)?O:_isPlaceholder(U)?_curry2(function(K,J){return W(K,G,J)}):_isPlaceholder(G)?_curry2(function(K,J){return W(U,K,J)}):_curry1(function(K){return W(U,G,K)});default:return _isPlaceholder(U)&&_isPlaceholder(G)&&_isPlaceholder(Y)?O:_isPlaceholder(U)&&_isPlaceholder(G)?_curry2(function(K,J){return W(K,J,Y)}):_isPlaceholder(U)&&_isPlaceholder(Y)?_curry2(function(K,J){return W(K,G,J)}):_isPlaceholder(G)&&_isPlaceholder(Y)?_curry2(function(K,J){return W(U,K,J)}):_isPlaceholder(U)?_curry1(function(K){return W(K,G,Y)}):_isPlaceholder(G)?_curry1(function(K){return W(U,K,Y)}):_isPlaceholder(Y)?_curry1(function(K){return W(U,G,K)}):W(U,G,Y)}}}function _isString(W){return Object.prototype.toString.call(W)==="[object String]"}var _isArrayLike=_curry1(function(O){return _isArray(O)?!0:!O||typeof O!="object"||_isString(O)?!1:O.length===0?!0:O.length>0?O.hasOwnProperty(0)&&O.hasOwnProperty(O.length-1):!1}),symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _createReduce(W,O,U){return function(Y,K,J){if(_isArrayLike(J))return W(Y,K,J);if(J==null)return K;if(typeof J["fantasy-land/reduce"]=="function")return O(Y,K,J,"fantasy-land/reduce");if(J[symIterator]!=null)return U(Y,K,J[symIterator]());if(typeof J.next=="function")return U(Y,K,J);if(typeof J.reduce=="function")return O(Y,K,J,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function _xArrayReduce(W,O,U){for(var G=0,Y=U.length;G<Y;){if(O=W["@@transducer/step"](O,U[G]),O&&O["@@transducer/reduced"]){O=O["@@transducer/value"];break}G+=1}return W["@@transducer/result"](O)}var bind$1=_curry2(function(O,U){return _arity(O.length,function(){return O.apply(U,arguments)})});function _xIterableReduce(W,O,U){for(var G=U.next();!G.done;){if(O=W["@@transducer/step"](O,G.value),O&&O["@@transducer/reduced"]){O=O["@@transducer/value"];break}G=U.next()}return W["@@transducer/result"](O)}function _xMethodReduce(W,O,U,G){return W["@@transducer/result"](U[G](bind$1(W["@@transducer/step"],W),O))}var _xReduce=_createReduce(_xArrayReduce,_xMethodReduce,_xIterableReduce),XWrap=function(){function W(O){this.f=O}return W.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},W.prototype["@@transducer/result"]=function(O){return O},W.prototype["@@transducer/step"]=function(O,U){return this.f(O,U)},W}();function _xwrap(W){return new XWrap(W)}var reduce=_curry3(function(W,O,U){return _xReduce(typeof W=="function"?_xwrap(W):W,O,U)}),cond=_curry1(function(O){var U=reduce(max,0,map(function(G){return G[0].length},O));return _arity(U,function(){for(var G=0;G<O.length;){if(O[G][0].apply(this,arguments))return O[G][1].apply(this,arguments);G+=1}})}),isNil=_curry1(function(O){return O==null}),T=function(){return!0};const c$2=(W,O,U=":")=>G=>cond([[()=>isNil(W),()=>{throw new Error("prefix is needed")}],[()=>t$4(O),()=>`${W}${U}${G}${U}${O}`],[T,()=>`${W}${U}${G}`]])(),E=c$2("LOCALIZATION",void 0,"::");E("LOCALES-RESET");const o$4=E("LOCALES-UPDATED"),n=E("LANGUAGE-UPDATED");E("LANGUAGE-RESET"),E("FORMATERS-UPDATED"),E("FORMATERS-RESET");let o$3=class{constructor(O,U){this.messageType=O,this.callback=U}handle(O){O instanceof this.messageType&&this.callback.call(null,O)}};const c$1=(W,O,U)=>{try{W(O,U)}catch(G){console.error(G)}},b=(W,O)=>{try{W.handle(O)}catch(U){console.error(U)}};let p$3=class{constructor(){this.eventLookup={},this.messageHandlers=[]}publish(O,U){let G,Y;if(!O)throw new Error("Event channel/type is invalid.");if(typeof O=="string"){if(G=this.eventLookup[O],G)for(G=G.slice(),Y=G.length;Y--;)c$1(G[Y],U,O)}else for(G=this.messageHandlers.slice(),Y=G.length;Y--;)b(G[Y],O)}subscribe(O,U){let G,Y;if(!O)throw new Error("Event channel/type is invalid.");return typeof O=="string"?(G=U,Y=this.eventLookup[O]||(this.eventLookup[O]=[])):(G=new o$3(O,U),Y=this.messageHandlers),Y.push(G),{dispose(){const K=Y.indexOf(G);K!==-1&&Y.splice(K,1)}}}subscribeOnce(O,U){const G=this.subscribe(O,(Y,K)=>(G.dispose(),U(Y,K)));return G}};const i$2=new p$3;i$2.subscribe.bind(i$2),i$2.subscribeOnce.bind(i$2);const u$3=i$2.publish.bind(i$2),t$3="en";let e$3=t$3;const L=W=>{e$3=W,u$3(n,W)},p$2=()=>e$3;var TYPE;(function(W){W[W.literal=0]="literal",W[W.argument=1]="argument",W[W.number=2]="number",W[W.date=3]="date",W[W.time=4]="time",W[W.select=5]="select",W[W.plural=6]="plural",W[W.pound=7]="pound"})(TYPE||(TYPE={}));function isLiteralElement(W){return W.type===TYPE.literal}function isArgumentElement(W){return W.type===TYPE.argument}function isNumberElement(W){return W.type===TYPE.number}function isDateElement(W){return W.type===TYPE.date}function isTimeElement(W){return W.type===TYPE.time}function isSelectElement(W){return W.type===TYPE.select}function isPluralElement(W){return W.type===TYPE.plural}function isPoundElement(W){return W.type===TYPE.pound}function isNumberSkeleton(W){return!!(W&&typeof W=="object"&&W.type===0)}function isDateTimeSkeleton(W){return!!(W&&typeof W=="object"&&W.type===1)}var __extends$2=function(){var W=function(O,U){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Y){G.__proto__=Y}||function(G,Y){for(var K in Y)Y.hasOwnProperty(K)&&(G[K]=Y[K])},W(O,U)};return function(O,U){W(O,U);function G(){this.constructor=O}O.prototype=U===null?Object.create(U):(G.prototype=U.prototype,new G)}}(),__assign$4=function(){return __assign$4=Object.assign||function(W){for(var O,U=1,G=arguments.length;U<G;U++){O=arguments[U];for(var Y in O)Object.prototype.hasOwnProperty.call(O,Y)&&(W[Y]=O[Y])}return W},__assign$4.apply(this,arguments)},SyntaxError=function(W){__extends$2(O,W);function O(U,G,Y,K){var J=W.call(this)||this;return J.message=U,J.expected=G,J.found=Y,J.location=K,J.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(J,O),J}return O.buildMessage=function(U,G){function Y(ne){return ne.charCodeAt(0).toString(16).toUpperCase()}function K(ne){return ne.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Q){return"\\x0"+Y(Q)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Q){return"\\x"+Y(Q)})}function J(ne){return ne.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Q){return"\\x0"+Y(Q)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Q){return"\\x"+Y(Q)})}function X(ne){switch(ne.type){case"literal":return'"'+K(ne.text)+'"';case"class":var Q=ne.parts.map(function(te){return Array.isArray(te)?J(te[0])+"-"+J(te[1]):J(te)});return"["+(ne.inverted?"^":"")+Q+"]";case"any":return"any character";case"end":return"end of input";case"other":return ne.description}}function se(ne){var Q=ne.map(X),te,ie;if(Q.sort(),Q.length>0){for(te=1,ie=1;te<Q.length;te++)Q[te-1]!==Q[te]&&(Q[ie]=Q[te],ie++);Q.length=ie}switch(Q.length){case 1:return Q[0];case 2:return Q[0]+" or "+Q[1];default:return Q.slice(0,-1).join(", ")+", or "+Q[Q.length-1]}}function ee(ne){return ne?'"'+K(ne)+'"':"end of input"}return"Expected "+se(U)+" but "+ee(G)+" found."},O}(Error);function peg$parse(W,O){O=O!==void 0?O:{};var U={},G={start:fn},Y=fn,K=function(pe){return pe.join("")},J=function(pe){return __assign$4({type:TYPE.literal,value:pe},jt())},X="#",se=Nt("#",!1),ee=function(){return __assign$4({type:TYPE.pound},jt())},ne=Mt("argumentElement"),Q="{",te=Nt("{",!1),ie="}",le=Nt("}",!1),oe=function(pe){return __assign$4({type:TYPE.argument,value:pe},jt())},re=Mt("numberSkeletonId"),ae=/^['\/{}]/,ce=zt(["'","/","{","}"],!1,!1),ue=Vn(),de=Mt("numberSkeletonTokenOption"),he="/",me=Nt("/",!1),ge=function(pe){return pe},we=Mt("numberSkeletonToken"),Se=function(pe,Ae){return{stem:pe,options:Ae}},_e=function(pe){return __assign$4({type:0,tokens:pe},jt())},fe="::",be=Nt("::",!1),ve=function(pe){return pe},$e=function(){return Ft.push("numberArgStyle"),!0},Te=function(pe){return Ft.pop(),pe.replace(/\s*$/,"")},Ce=",",Ie=Nt(",",!1),Ge="number",De=Nt("number",!1),Oe=function(pe,Ae,Pe){return __assign$4({type:Ae==="number"?TYPE.number:Ae==="date"?TYPE.date:TYPE.time,style:Pe&&Pe[2],value:pe},jt())},ye="'",ke=Nt("'",!1),qe=/^[^']/,Le=zt(["'"],!0,!1),Ne=/^[^a-zA-Z'{}]/,Ee=zt([["a","z"],["A","Z"],"'","{","}"],!0,!1),Re=/^[a-zA-Z]/,Be=zt([["a","z"],["A","Z"]],!1,!1),Ue=function(pe){return __assign$4({type:1,pattern:pe},jt())},He=function(){return Ft.push("dateOrTimeArgStyle"),!0},nt="date",at=Nt("date",!1),dt="time",ft=Nt("time",!1),_t="plural",It=Nt("plural",!1),St="selectordinal",Ve=Nt("selectordinal",!1),ze="offset:",Xe=Nt("offset:",!1),et=function(pe,Ae,Pe,je){return __assign$4({type:TYPE.plural,pluralType:Ae==="plural"?"cardinal":"ordinal",value:pe,offset:Pe?Pe[2]:0,options:je.reduce(function(Ke,lt){var At=lt.id,gt=lt.value,Lt=lt.location;return At in Ke&&hn('Duplicate option "'+At+'" in plural element: "'+un()+'"',sn()),Ke[At]={value:gt,location:Lt},Ke},{})},jt())},Ye="select",ut=Nt("select",!1),ht=function(pe,Ae){return __assign$4({type:TYPE.select,value:pe,options:Ae.reduce(function(Pe,je){var Ke=je.id,lt=je.value,At=je.location;return Ke in Pe&&hn('Duplicate option "'+Ke+'" in select element: "'+un()+'"',sn()),Pe[Ke]={value:lt,location:At},Pe},{})},jt())},pt="=",Ct=Nt("=",!1),Dt=function(pe){return Ft.push("select"),!0},kt=function(pe,Ae){return Ft.pop(),__assign$4({id:pe,value:Ae},jt())},Zt=function(pe){return Ft.push("plural"),!0},$t=function(pe,Ae){return Ft.pop(),__assign$4({id:pe,value:Ae},jt())},Me=Mt("whitespace"),Fe=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,We=zt([[" ","\r"]," ","…"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),Je=Mt("syntax pattern"),ot=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,Rt=zt([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),qt=Mt("optional whitespace"),bt=Mt("number"),tt="-",it=Nt("-",!1),st=function(pe,Ae){return Ae?pe?-Ae:Ae:0},rt=Mt("double apostrophes"),ct="''",xt=Nt("''",!1),Tt=function(){return"'"},Pt=function(pe,Ae){return pe+Ae.replace("''","'")},Kt=function(pe){return pe!=="{"&&!(Tn()&&pe==="#")&&!(ai()&&pe==="}")},en=`
125
+ `,tn=Nt(`
126
+ `,!1),In=function(pe){return pe==="{"||pe==="}"||Tn()&&pe==="#"},Nn=Mt("argNameOrNumber"),Dn=Mt("argNumber"),Pn="0",Ln=Nt("0",!1),Mn=function(){return 0},Bn=/^[1-9]/,Un=zt([["1","9"]],!1,!1),dn=/^[0-9]/,cn=zt([["0","9"]],!1,!1),Fn=function(pe){return parseInt(pe.join(""),10)},jn=Mt("argName"),xe=0,yt=0,Jt=[{line:1,column:1}],Ut=0,nn=[],Ze=0,Xt;if(O.startRule!==void 0){if(!(O.startRule in G))throw new Error(`Can't start parsing from rule "`+O.startRule+'".');Y=G[O.startRule]}function un(){return W.substring(yt,xe)}function sn(){return Qt(yt,xe)}function hn(pe,Ae){throw Ae=Ae!==void 0?Ae:Qt(yt,xe),Hn(pe,Ae)}function Nt(pe,Ae){return{type:"literal",text:pe,ignoreCase:Ae}}function zt(pe,Ae,Pe){return{type:"class",parts:pe,inverted:Ae,ignoreCase:Pe}}function Vn(){return{type:"any"}}function zn(){return{type:"end"}}function Mt(pe){return{type:"other",description:pe}}function pn(pe){var Ae=Jt[pe],Pe;if(Ae)return Ae;for(Pe=pe-1;!Jt[Pe];)Pe--;for(Ae=Jt[Pe],Ae={line:Ae.line,column:Ae.column};Pe<pe;)W.charCodeAt(Pe)===10?(Ae.line++,Ae.column=1):Ae.column++,Pe++;return Jt[pe]=Ae,Ae}function Qt(pe,Ae){var Pe=pn(pe),je=pn(Ae);return{start:{offset:pe,line:Pe.line,column:Pe.column},end:{offset:Ae,line:je.line,column:je.column}}}function Qe(pe){xe<Ut||(xe>Ut&&(Ut=xe,nn=[]),nn.push(pe))}function Hn(pe,Ae){return new SyntaxError(pe,[],"",Ae)}function Wn(pe,Ae,Pe){return new SyntaxError(SyntaxError.buildMessage(pe,Ae),pe,Ae,Pe)}function fn(){var pe;return pe=rn(),pe}function rn(){var pe,Ae;for(pe=[],Ae=bn();Ae!==U;)pe.push(Ae),Ae=bn();return pe}function bn(){var pe;return pe=Gn(),pe===U&&(pe=Yn(),pe===U&&(pe=ni(),pe===U&&(pe=ii(),pe===U&&(pe=si(),pe===U&&(pe=Zn()))))),pe}function on(){var pe,Ae,Pe;if(pe=xe,Ae=[],Pe=Gt(),Pe===U&&(Pe=Sn(),Pe===U&&(Pe=An())),Pe!==U)for(;Pe!==U;)Ae.push(Pe),Pe=Gt(),Pe===U&&(Pe=Sn(),Pe===U&&(Pe=An()));else Ae=U;return Ae!==U&&(yt=pe,Ae=K(Ae)),pe=Ae,pe}function Gn(){var pe,Ae;return pe=xe,Ae=on(),Ae!==U&&(yt=pe,Ae=J(Ae)),pe=Ae,pe}function Zn(){var pe,Ae;return pe=xe,W.charCodeAt(xe)===35?(Ae=X,xe++):(Ae=U,Ze===0&&Qe(se)),Ae!==U&&(yt=pe,Ae=ee()),pe=Ae,pe}function Yn(){var pe,Ae,Pe,je,Ke,lt;return Ze++,pe=xe,W.charCodeAt(xe)===123?(Ae=Q,xe++):(Ae=U,Ze===0&&Qe(te)),Ae!==U?(Pe=vt(),Pe!==U?(je=Yt(),je!==U?(Ke=vt(),Ke!==U?(W.charCodeAt(xe)===125?(lt=ie,xe++):(lt=U,Ze===0&&Qe(le)),lt!==U?(yt=pe,Ae=oe(je),pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U),Ze--,pe===U&&(Ae=U,Ze===0&&Qe(ne)),pe}function _n(){var pe,Ae,Pe,je,Ke;if(Ze++,pe=xe,Ae=[],Pe=xe,je=xe,Ze++,Ke=Wt(),Ke===U&&(ae.test(W.charAt(xe))?(Ke=W.charAt(xe),xe++):(Ke=U,Ze===0&&Qe(ce))),Ze--,Ke===U?je=void 0:(xe=je,je=U),je!==U?(W.length>xe?(Ke=W.charAt(xe),xe++):(Ke=U,Ze===0&&Qe(ue)),Ke!==U?(je=[je,Ke],Pe=je):(xe=Pe,Pe=U)):(xe=Pe,Pe=U),Pe!==U)for(;Pe!==U;)Ae.push(Pe),Pe=xe,je=xe,Ze++,Ke=Wt(),Ke===U&&(ae.test(W.charAt(xe))?(Ke=W.charAt(xe),xe++):(Ke=U,Ze===0&&Qe(ce))),Ze--,Ke===U?je=void 0:(xe=je,je=U),je!==U?(W.length>xe?(Ke=W.charAt(xe),xe++):(Ke=U,Ze===0&&Qe(ue)),Ke!==U?(je=[je,Ke],Pe=je):(xe=Pe,Pe=U)):(xe=Pe,Pe=U);else Ae=U;return Ae!==U?pe=W.substring(pe,xe):pe=Ae,Ze--,pe===U&&(Ae=U,Ze===0&&Qe(re)),pe}function gn(){var pe,Ae,Pe;return Ze++,pe=xe,W.charCodeAt(xe)===47?(Ae=he,xe++):(Ae=U,Ze===0&&Qe(me)),Ae!==U?(Pe=_n(),Pe!==U?(yt=pe,Ae=ge(Pe),pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U),Ze--,pe===U&&(Ae=U,Ze===0&&Qe(de)),pe}function vn(){var pe,Ae,Pe,je,Ke;if(Ze++,pe=xe,Ae=vt(),Ae!==U)if(Pe=_n(),Pe!==U){for(je=[],Ke=gn();Ke!==U;)je.push(Ke),Ke=gn();je!==U?(yt=pe,Ae=Se(Pe,je),pe=Ae):(xe=pe,pe=U)}else xe=pe,pe=U;else xe=pe,pe=U;return Ze--,pe===U&&(Ae=U,Ze===0&&Qe(we)),pe}function Kn(){var pe,Ae,Pe;if(pe=xe,Ae=[],Pe=vn(),Pe!==U)for(;Pe!==U;)Ae.push(Pe),Pe=vn();else Ae=U;return Ae!==U&&(yt=pe,Ae=_e(Ae)),pe=Ae,pe}function Jn(){var pe,Ae,Pe;return pe=xe,W.substr(xe,2)===fe?(Ae=fe,xe+=2):(Ae=U,Ze===0&&Qe(be)),Ae!==U?(Pe=Kn(),Pe!==U?(yt=pe,Ae=ve(Pe),pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U),pe===U&&(pe=xe,yt=xe,Ae=$e(),Ae?Ae=void 0:Ae=U,Ae!==U?(Pe=on(),Pe!==U?(yt=pe,Ae=Te(Pe),pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U)),pe}function Xn(){var pe,Ae,Pe,je,Ke,lt,At,gt,Lt,mt,Ot,wt,Et;return pe=xe,W.charCodeAt(xe)===123?(Ae=Q,xe++):(Ae=U,Ze===0&&Qe(te)),Ae!==U?(Pe=vt(),Pe!==U?(je=Yt(),je!==U?(Ke=vt(),Ke!==U?(W.charCodeAt(xe)===44?(lt=Ce,xe++):(lt=U,Ze===0&&Qe(Ie)),lt!==U?(At=vt(),At!==U?(W.substr(xe,6)===Ge?(gt=Ge,xe+=6):(gt=U,Ze===0&&Qe(De)),gt!==U?(Lt=vt(),Lt!==U?(mt=xe,W.charCodeAt(xe)===44?(Ot=Ce,xe++):(Ot=U,Ze===0&&Qe(Ie)),Ot!==U?(wt=vt(),wt!==U?(Et=Jn(),Et!==U?(Ot=[Ot,wt,Et],mt=Ot):(xe=mt,mt=U)):(xe=mt,mt=U)):(xe=mt,mt=U),mt===U&&(mt=null),mt!==U?(Ot=vt(),Ot!==U?(W.charCodeAt(xe)===125?(wt=ie,xe++):(wt=U,Ze===0&&Qe(le)),wt!==U?(yt=pe,Ae=Oe(je,gt,mt),pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U),pe}function mn(){var pe,Ae,Pe,je;if(pe=xe,W.charCodeAt(xe)===39?(Ae=ye,xe++):(Ae=U,Ze===0&&Qe(ke)),Ae!==U){if(Pe=[],je=Gt(),je===U&&(qe.test(W.charAt(xe))?(je=W.charAt(xe),xe++):(je=U,Ze===0&&Qe(Le))),je!==U)for(;je!==U;)Pe.push(je),je=Gt(),je===U&&(qe.test(W.charAt(xe))?(je=W.charAt(xe),xe++):(je=U,Ze===0&&Qe(Le)));else Pe=U;Pe!==U?(W.charCodeAt(xe)===39?(je=ye,xe++):(je=U,Ze===0&&Qe(ke)),je!==U?(Ae=[Ae,Pe,je],pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U)}else xe=pe,pe=U;if(pe===U)if(pe=[],Ae=Gt(),Ae===U&&(Ne.test(W.charAt(xe))?(Ae=W.charAt(xe),xe++):(Ae=U,Ze===0&&Qe(Ee))),Ae!==U)for(;Ae!==U;)pe.push(Ae),Ae=Gt(),Ae===U&&(Ne.test(W.charAt(xe))?(Ae=W.charAt(xe),xe++):(Ae=U,Ze===0&&Qe(Ee)));else pe=U;return pe}function yn(){var pe,Ae;if(pe=[],Re.test(W.charAt(xe))?(Ae=W.charAt(xe),xe++):(Ae=U,Ze===0&&Qe(Be)),Ae!==U)for(;Ae!==U;)pe.push(Ae),Re.test(W.charAt(xe))?(Ae=W.charAt(xe),xe++):(Ae=U,Ze===0&&Qe(Be));else pe=U;return pe}function Qn(){var pe,Ae,Pe,je;if(pe=xe,Ae=xe,Pe=[],je=mn(),je===U&&(je=yn()),je!==U)for(;je!==U;)Pe.push(je),je=mn(),je===U&&(je=yn());else Pe=U;return Pe!==U?Ae=W.substring(Ae,xe):Ae=Pe,Ae!==U&&(yt=pe,Ae=Ue(Ae)),pe=Ae,pe}function ei(){var pe,Ae,Pe;return pe=xe,W.substr(xe,2)===fe?(Ae=fe,xe+=2):(Ae=U,Ze===0&&Qe(be)),Ae!==U?(Pe=Qn(),Pe!==U?(yt=pe,Ae=ve(Pe),pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U),pe===U&&(pe=xe,yt=xe,Ae=He(),Ae?Ae=void 0:Ae=U,Ae!==U?(Pe=on(),Pe!==U?(yt=pe,Ae=Te(Pe),pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U)),pe}function ti(){var pe,Ae,Pe,je,Ke,lt,At,gt,Lt,mt,Ot,wt,Et;return pe=xe,W.charCodeAt(xe)===123?(Ae=Q,xe++):(Ae=U,Ze===0&&Qe(te)),Ae!==U?(Pe=vt(),Pe!==U?(je=Yt(),je!==U?(Ke=vt(),Ke!==U?(W.charCodeAt(xe)===44?(lt=Ce,xe++):(lt=U,Ze===0&&Qe(Ie)),lt!==U?(At=vt(),At!==U?(W.substr(xe,4)===nt?(gt=nt,xe+=4):(gt=U,Ze===0&&Qe(at)),gt===U&&(W.substr(xe,4)===dt?(gt=dt,xe+=4):(gt=U,Ze===0&&Qe(ft))),gt!==U?(Lt=vt(),Lt!==U?(mt=xe,W.charCodeAt(xe)===44?(Ot=Ce,xe++):(Ot=U,Ze===0&&Qe(Ie)),Ot!==U?(wt=vt(),wt!==U?(Et=ei(),Et!==U?(Ot=[Ot,wt,Et],mt=Ot):(xe=mt,mt=U)):(xe=mt,mt=U)):(xe=mt,mt=U),mt===U&&(mt=null),mt!==U?(Ot=vt(),Ot!==U?(W.charCodeAt(xe)===125?(wt=ie,xe++):(wt=U,Ze===0&&Qe(le)),wt!==U?(yt=pe,Ae=Oe(je,gt,mt),pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U),pe}function ni(){var pe;return pe=Xn(),pe===U&&(pe=ti()),pe}function ii(){var pe,Ae,Pe,je,Ke,lt,At,gt,Lt,mt,Ot,wt,Et,Bt,Vt,ln;if(pe=xe,W.charCodeAt(xe)===123?(Ae=Q,xe++):(Ae=U,Ze===0&&Qe(te)),Ae!==U)if(Pe=vt(),Pe!==U)if(je=Yt(),je!==U)if(Ke=vt(),Ke!==U)if(W.charCodeAt(xe)===44?(lt=Ce,xe++):(lt=U,Ze===0&&Qe(Ie)),lt!==U)if(At=vt(),At!==U)if(W.substr(xe,6)===_t?(gt=_t,xe+=6):(gt=U,Ze===0&&Qe(It)),gt===U&&(W.substr(xe,13)===St?(gt=St,xe+=13):(gt=U,Ze===0&&Qe(Ve))),gt!==U)if(Lt=vt(),Lt!==U)if(W.charCodeAt(xe)===44?(mt=Ce,xe++):(mt=U,Ze===0&&Qe(Ie)),mt!==U)if(Ot=vt(),Ot!==U)if(wt=xe,W.substr(xe,7)===ze?(Et=ze,xe+=7):(Et=U,Ze===0&&Qe(Xe)),Et!==U?(Bt=vt(),Bt!==U?(Vt=$n(),Vt!==U?(Et=[Et,Bt,Vt],wt=Et):(xe=wt,wt=U)):(xe=wt,wt=U)):(xe=wt,wt=U),wt===U&&(wt=null),wt!==U)if(Et=vt(),Et!==U){if(Bt=[],Vt=xn(),Vt!==U)for(;Vt!==U;)Bt.push(Vt),Vt=xn();else Bt=U;Bt!==U?(Vt=vt(),Vt!==U?(W.charCodeAt(xe)===125?(ln=ie,xe++):(ln=U,Ze===0&&Qe(le)),ln!==U?(yt=pe,Ae=et(je,gt,wt,Bt),pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)}else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;return pe}function si(){var pe,Ae,Pe,je,Ke,lt,At,gt,Lt,mt,Ot,wt,Et,Bt;if(pe=xe,W.charCodeAt(xe)===123?(Ae=Q,xe++):(Ae=U,Ze===0&&Qe(te)),Ae!==U)if(Pe=vt(),Pe!==U)if(je=Yt(),je!==U)if(Ke=vt(),Ke!==U)if(W.charCodeAt(xe)===44?(lt=Ce,xe++):(lt=U,Ze===0&&Qe(Ie)),lt!==U)if(At=vt(),At!==U)if(W.substr(xe,6)===Ye?(gt=Ye,xe+=6):(gt=U,Ze===0&&Qe(ut)),gt!==U)if(Lt=vt(),Lt!==U)if(W.charCodeAt(xe)===44?(mt=Ce,xe++):(mt=U,Ze===0&&Qe(Ie)),mt!==U)if(Ot=vt(),Ot!==U){if(wt=[],Et=wn(),Et!==U)for(;Et!==U;)wt.push(Et),Et=wn();else wt=U;wt!==U?(Et=vt(),Et!==U?(W.charCodeAt(xe)===125?(Bt=ie,xe++):(Bt=U,Ze===0&&Qe(le)),Bt!==U?(yt=pe,Ae=ht(je,wt),pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)}else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;else xe=pe,pe=U;return pe}function ri(){var pe,Ae,Pe,je;return pe=xe,Ae=xe,W.charCodeAt(xe)===61?(Pe=pt,xe++):(Pe=U,Ze===0&&Qe(Ct)),Pe!==U?(je=$n(),je!==U?(Pe=[Pe,je],Ae=Pe):(xe=Ae,Ae=U)):(xe=Ae,Ae=U),Ae!==U?pe=W.substring(pe,xe):pe=Ae,pe===U&&(pe=an()),pe}function wn(){var pe,Ae,Pe,je,Ke,lt,At,gt;return pe=xe,Ae=vt(),Ae!==U?(Pe=an(),Pe!==U?(je=vt(),je!==U?(W.charCodeAt(xe)===123?(Ke=Q,xe++):(Ke=U,Ze===0&&Qe(te)),Ke!==U?(yt=xe,lt=Dt(),lt?lt=void 0:lt=U,lt!==U?(At=rn(),At!==U?(W.charCodeAt(xe)===125?(gt=ie,xe++):(gt=U,Ze===0&&Qe(le)),gt!==U?(yt=pe,Ae=kt(Pe,At),pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U),pe}function xn(){var pe,Ae,Pe,je,Ke,lt,At,gt;return pe=xe,Ae=vt(),Ae!==U?(Pe=ri(),Pe!==U?(je=vt(),je!==U?(W.charCodeAt(xe)===123?(Ke=Q,xe++):(Ke=U,Ze===0&&Qe(te)),Ke!==U?(yt=xe,lt=Zt(),lt?lt=void 0:lt=U,lt!==U?(At=rn(),At!==U?(W.charCodeAt(xe)===125?(gt=ie,xe++):(gt=U,Ze===0&&Qe(le)),gt!==U?(yt=pe,Ae=$t(Pe,At),pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U)):(xe=pe,pe=U),pe}function Wt(){var pe;return Ze++,Fe.test(W.charAt(xe))?(pe=W.charAt(xe),xe++):(pe=U,Ze===0&&Qe(We)),Ze--,pe===U&&Ze===0&&Qe(Me),pe}function kn(){var pe;return Ze++,ot.test(W.charAt(xe))?(pe=W.charAt(xe),xe++):(pe=U,Ze===0&&Qe(Rt)),Ze--,pe===U&&Ze===0&&Qe(Je),pe}function vt(){var pe,Ae,Pe;for(Ze++,pe=xe,Ae=[],Pe=Wt();Pe!==U;)Ae.push(Pe),Pe=Wt();return Ae!==U?pe=W.substring(pe,xe):pe=Ae,Ze--,pe===U&&(Ae=U,Ze===0&&Qe(qt)),pe}function $n(){var pe,Ae,Pe;return Ze++,pe=xe,W.charCodeAt(xe)===45?(Ae=tt,xe++):(Ae=U,Ze===0&&Qe(it)),Ae===U&&(Ae=null),Ae!==U?(Pe=En(),Pe!==U?(yt=pe,Ae=st(Ae,Pe),pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U),Ze--,pe===U&&(Ae=U,Ze===0&&Qe(bt)),pe}function Gt(){var pe,Ae;return Ze++,pe=xe,W.substr(xe,2)===ct?(Ae=ct,xe+=2):(Ae=U,Ze===0&&Qe(xt)),Ae!==U&&(yt=pe,Ae=Tt()),pe=Ae,Ze--,pe===U&&(Ae=U,Ze===0&&Qe(rt)),pe}function Sn(){var pe,Ae,Pe,je,Ke,lt;if(pe=xe,W.charCodeAt(xe)===39?(Ae=ye,xe++):(Ae=U,Ze===0&&Qe(ke)),Ae!==U)if(Pe=oi(),Pe!==U){for(je=xe,Ke=[],W.substr(xe,2)===ct?(lt=ct,xe+=2):(lt=U,Ze===0&&Qe(xt)),lt===U&&(qe.test(W.charAt(xe))?(lt=W.charAt(xe),xe++):(lt=U,Ze===0&&Qe(Le)));lt!==U;)Ke.push(lt),W.substr(xe,2)===ct?(lt=ct,xe+=2):(lt=U,Ze===0&&Qe(xt)),lt===U&&(qe.test(W.charAt(xe))?(lt=W.charAt(xe),xe++):(lt=U,Ze===0&&Qe(Le)));Ke!==U?je=W.substring(je,xe):je=Ke,je!==U?(W.charCodeAt(xe)===39?(Ke=ye,xe++):(Ke=U,Ze===0&&Qe(ke)),Ke===U&&(Ke=null),Ke!==U?(yt=pe,Ae=Pt(Pe,je),pe=Ae):(xe=pe,pe=U)):(xe=pe,pe=U)}else xe=pe,pe=U;else xe=pe,pe=U;return pe}function An(){var pe,Ae,Pe,je;return pe=xe,Ae=xe,W.length>xe?(Pe=W.charAt(xe),xe++):(Pe=U,Ze===0&&Qe(ue)),Pe!==U?(yt=xe,je=Kt(Pe),je?je=void 0:je=U,je!==U?(Pe=[Pe,je],Ae=Pe):(xe=Ae,Ae=U)):(xe=Ae,Ae=U),Ae===U&&(W.charCodeAt(xe)===10?(Ae=en,xe++):(Ae=U,Ze===0&&Qe(tn))),Ae!==U?pe=W.substring(pe,xe):pe=Ae,pe}function oi(){var pe,Ae,Pe,je;return pe=xe,Ae=xe,W.length>xe?(Pe=W.charAt(xe),xe++):(Pe=U,Ze===0&&Qe(ue)),Pe!==U?(yt=xe,je=In(Pe),je?je=void 0:je=U,je!==U?(Pe=[Pe,je],Ae=Pe):(xe=Ae,Ae=U)):(xe=Ae,Ae=U),Ae!==U?pe=W.substring(pe,xe):pe=Ae,pe}function Yt(){var pe,Ae;return Ze++,pe=xe,Ae=En(),Ae===U&&(Ae=an()),Ae!==U?pe=W.substring(pe,xe):pe=Ae,Ze--,pe===U&&(Ae=U,Ze===0&&Qe(Nn)),pe}function En(){var pe,Ae,Pe,je,Ke;if(Ze++,pe=xe,W.charCodeAt(xe)===48?(Ae=Pn,xe++):(Ae=U,Ze===0&&Qe(Ln)),Ae!==U&&(yt=pe,Ae=Mn()),pe=Ae,pe===U){if(pe=xe,Ae=xe,Bn.test(W.charAt(xe))?(Pe=W.charAt(xe),xe++):(Pe=U,Ze===0&&Qe(Un)),Pe!==U){for(je=[],dn.test(W.charAt(xe))?(Ke=W.charAt(xe),xe++):(Ke=U,Ze===0&&Qe(cn));Ke!==U;)je.push(Ke),dn.test(W.charAt(xe))?(Ke=W.charAt(xe),xe++):(Ke=U,Ze===0&&Qe(cn));je!==U?(Pe=[Pe,je],Ae=Pe):(xe=Ae,Ae=U)}else xe=Ae,Ae=U;Ae!==U&&(yt=pe,Ae=Fn(Ae)),pe=Ae}return Ze--,pe===U&&(Ae=U,Ze===0&&Qe(Dn)),pe}function an(){var pe,Ae,Pe,je,Ke;if(Ze++,pe=xe,Ae=[],Pe=xe,je=xe,Ze++,Ke=Wt(),Ke===U&&(Ke=kn()),Ze--,Ke===U?je=void 0:(xe=je,je=U),je!==U?(W.length>xe?(Ke=W.charAt(xe),xe++):(Ke=U,Ze===0&&Qe(ue)),Ke!==U?(je=[je,Ke],Pe=je):(xe=Pe,Pe=U)):(xe=Pe,Pe=U),Pe!==U)for(;Pe!==U;)Ae.push(Pe),Pe=xe,je=xe,Ze++,Ke=Wt(),Ke===U&&(Ke=kn()),Ze--,Ke===U?je=void 0:(xe=je,je=U),je!==U?(W.length>xe?(Ke=W.charAt(xe),xe++):(Ke=U,Ze===0&&Qe(ue)),Ke!==U?(je=[je,Ke],Pe=je):(xe=Pe,Pe=U)):(xe=Pe,Pe=U);else Ae=U;return Ae!==U?pe=W.substring(pe,xe):pe=Ae,Ze--,pe===U&&(Ae=U,Ze===0&&Qe(jn)),pe}var Ft=["root"];function ai(){return Ft.length>1}function Tn(){return Ft[Ft.length-1]==="plural"}function jt(){return O&&O.captureLocation?{location:sn()}:{}}if(Xt=Y(),Xt!==U&&xe===W.length)return Xt;throw Xt!==U&&xe<W.length&&Qe(zn()),Wn(nn,Ut<W.length?W.charAt(Ut):null,Ut<W.length?Qt(Ut,Ut+1):Qt(Ut,Ut))}var pegParse=peg$parse,__spreadArrays$2=function(){for(var W=0,O=0,U=arguments.length;O<U;O++)W+=arguments[O].length;for(var G=Array(W),Y=0,O=0;O<U;O++)for(var K=arguments[O],J=0,X=K.length;J<X;J++,Y++)G[Y]=K[J];return G},PLURAL_HASHTAG_REGEX=/(^|[^\\])#/g;function normalizeHashtagInPlural(W){W.forEach(function(O){!isPluralElement(O)&&!isSelectElement(O)||Object.keys(O.options).forEach(function(U){for(var G,Y=O.options[U],K=-1,J=void 0,X=0;X<Y.value.length;X++){var se=Y.value[X];if(isLiteralElement(se)&&PLURAL_HASHTAG_REGEX.test(se.value)){K=X,J=se;break}}if(J){var ee=J.value.replace(PLURAL_HASHTAG_REGEX,"$1{"+O.value+", number}"),ne=pegParse(ee);(G=Y.value).splice.apply(G,__spreadArrays$2([K,1],ne))}normalizeHashtagInPlural(Y.value)})})}var __assign$3=function(){return __assign$3=Object.assign||function(W){for(var O,U=1,G=arguments.length;U<G;U++){O=arguments[U];for(var Y in O)Object.prototype.hasOwnProperty.call(O,Y)&&(W[Y]=O[Y])}return W},__assign$3.apply(this,arguments)},DATE_TIME_REGEX=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function parseDateTimeSkeleton(W){var O={};return W.replace(DATE_TIME_REGEX,function(U){var G=U.length;switch(U[0]){case"G":O.era=G===4?"long":G===5?"narrow":"short";break;case"y":O.year=G===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":O.month=["numeric","2-digit","short","long","narrow"][G-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":O.day=["numeric","2-digit"][G-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":O.weekday=G===4?"short":G===5?"narrow":"short";break;case"e":if(G<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");O.weekday=["short","long","narrow","short"][G-4];break;case"c":if(G<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");O.weekday=["short","long","narrow","short"][G-4];break;case"a":O.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":O.hourCycle="h12",O.hour=["numeric","2-digit"][G-1];break;case"H":O.hourCycle="h23",O.hour=["numeric","2-digit"][G-1];break;case"K":O.hourCycle="h11",O.hour=["numeric","2-digit"][G-1];break;case"k":O.hourCycle="h24",O.hour=["numeric","2-digit"][G-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":O.minute=["numeric","2-digit"][G-1];break;case"s":O.second=["numeric","2-digit"][G-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":O.timeZoneName=G<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""}),O}function icuUnitToEcma(W){return W.replace(/^(.*?)-/,"")}var FRACTION_PRECISION_REGEX=/^\.(?:(0+)(\+|#+)?)?$/g,SIGNIFICANT_PRECISION_REGEX=/^(@+)?(\+|#+)?$/g;function parseSignificantPrecision(W){var O={};return W.replace(SIGNIFICANT_PRECISION_REGEX,function(U,G,Y){return typeof Y!="string"?(O.minimumSignificantDigits=G.length,O.maximumSignificantDigits=G.length):Y==="+"?O.minimumSignificantDigits=G.length:G[0]==="#"?O.maximumSignificantDigits=G.length:(O.minimumSignificantDigits=G.length,O.maximumSignificantDigits=G.length+(typeof Y=="string"?Y.length:0)),""}),O}function parseSign(W){switch(W){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function parseNotationOptions(W){var O={},U=parseSign(W);return U||O}function convertNumberSkeletonToNumberFormatOptions(W){for(var O={},U=0,G=W;U<G.length;U++){var Y=G[U];switch(Y.stem){case"percent":O.style="percent";continue;case"currency":O.style="currency",O.currency=Y.options[0];continue;case"group-off":O.useGrouping=!1;continue;case"precision-integer":O.maximumFractionDigits=0;continue;case"measure-unit":O.style="unit",O.unit=icuUnitToEcma(Y.options[0]);continue;case"compact-short":O.notation="compact",O.compactDisplay="short";continue;case"compact-long":O.notation="compact",O.compactDisplay="long";continue;case"scientific":O=__assign$3(__assign$3(__assign$3({},O),{notation:"scientific"}),Y.options.reduce(function(J,X){return __assign$3(__assign$3({},J),parseNotationOptions(X))},{}));continue;case"engineering":O=__assign$3(__assign$3(__assign$3({},O),{notation:"engineering"}),Y.options.reduce(function(J,X){return __assign$3(__assign$3({},J),parseNotationOptions(X))},{}));continue;case"notation-simple":O.notation="standard";continue;case"unit-width-narrow":O.currencyDisplay="narrowSymbol",O.unitDisplay="narrow";continue;case"unit-width-short":O.currencyDisplay="code",O.unitDisplay="short";continue;case"unit-width-full-name":O.currencyDisplay="name",O.unitDisplay="long";continue;case"unit-width-iso-code":O.currencyDisplay="symbol";continue}if(FRACTION_PRECISION_REGEX.test(Y.stem)){if(Y.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");Y.stem.replace(FRACTION_PRECISION_REGEX,function(J,X,se){return J==="."?O.maximumFractionDigits=0:se==="+"?O.minimumFractionDigits=se.length:X[0]==="#"?O.maximumFractionDigits=X.length:(O.minimumFractionDigits=X.length,O.maximumFractionDigits=X.length+(typeof se=="string"?se.length:0)),""}),Y.options.length&&(O=__assign$3(__assign$3({},O),parseSignificantPrecision(Y.options[0])));continue}if(SIGNIFICANT_PRECISION_REGEX.test(Y.stem)){O=__assign$3(__assign$3({},O),parseSignificantPrecision(Y.stem));continue}var K=parseSign(Y.stem);K&&(O=__assign$3(__assign$3({},O),K))}return O}function parse(W,O){var U=pegParse(W,O);return(!O||O.normalizeHashtagInPlural!==!1)&&normalizeHashtagInPlural(U),U}var __spreadArrays$1=function(){for(var W=0,O=0,U=arguments.length;O<U;O++)W+=arguments[O].length;for(var G=Array(W),Y=0,O=0;O<U;O++)for(var K=arguments[O],J=0,X=K.length;J<X;J++,Y++)G[Y]=K[J];return G};function getCacheId(W){return JSON.stringify(W.map(function(O){return O&&typeof O=="object"?orderedProps(O):O}))}function orderedProps(W){return Object.keys(W).sort().map(function(O){var U;return U={},U[O]=W[O],U})}var memoizeFormatConstructor=function(W,O){return O===void 0&&(O={}),function(){for(var U,G=[],Y=0;Y<arguments.length;Y++)G[Y]=arguments[Y];var K=getCacheId(G),J=K&&O[K];return J||(J=new((U=W).bind.apply(U,__spreadArrays$1([void 0],G))),K&&(O[K]=J)),J}},__extends$1=function(){var W=function(O,U){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Y){G.__proto__=Y}||function(G,Y){for(var K in Y)Y.hasOwnProperty(K)&&(G[K]=Y[K])},W(O,U)};return function(O,U){W(O,U);function G(){this.constructor=O}O.prototype=U===null?Object.create(U):(G.prototype=U.prototype,new G)}}(),__spreadArrays=function(){for(var W=0,O=0,U=arguments.length;O<U;O++)W+=arguments[O].length;for(var G=Array(W),Y=0,O=0;O<U;O++)for(var K=arguments[O],J=0,X=K.length;J<X;J++,Y++)G[Y]=K[J];return G},FormatError=function(W){__extends$1(O,W);function O(U,G){var Y=W.call(this,U)||this;return Y.variableId=G,Y}return O}(Error);function mergeLiteral(W){return W.length<2?W:W.reduce(function(O,U){var G=O[O.length-1];return!G||G.type!==0||U.type!==0?O.push(U):G.value+=U.value,O},[])}function formatToParts(W,O,U,G,Y,K,J){if(W.length===1&&isLiteralElement(W[0]))return[{type:0,value:W[0].value}];for(var X=[],se=0,ee=W;se<ee.length;se++){var ne=ee[se];if(isLiteralElement(ne)){X.push({type:0,value:ne.value});continue}if(isPoundElement(ne)){typeof K=="number"&&X.push({type:0,value:U.getNumberFormat(O).format(K)});continue}var Q=ne.value;if(!(Y&&Q in Y))throw new FormatError('The intl string context variable "'+Q+'" was not provided to the string "'+J+'"');var te=Y[Q];if(isArgumentElement(ne)){(!te||typeof te=="string"||typeof te=="number")&&(te=typeof te=="string"||typeof te=="number"?String(te):""),X.push({type:1,value:te});continue}if(isDateElement(ne)){var ie=typeof ne.style=="string"?G.date[ne.style]:void 0;X.push({type:0,value:U.getDateTimeFormat(O,ie).format(te)});continue}if(isTimeElement(ne)){var ie=typeof ne.style=="string"?G.time[ne.style]:isDateTimeSkeleton(ne.style)?parseDateTimeSkeleton(ne.style.pattern):void 0;X.push({type:0,value:U.getDateTimeFormat(O,ie).format(te)});continue}if(isNumberElement(ne)){var ie=typeof ne.style=="string"?G.number[ne.style]:isNumberSkeleton(ne.style)?convertNumberSkeletonToNumberFormatOptions(ne.style.tokens):void 0;X.push({type:0,value:U.getNumberFormat(O,ie).format(te)});continue}if(isSelectElement(ne)){var le=ne.options[te]||ne.options.other;if(!le)throw new RangeError('Invalid values for "'+ne.value+'": "'+te+'". Options are "'+Object.keys(ne.options).join('", "')+'"');X.push.apply(X,formatToParts(le.value,O,U,G,Y));continue}if(isPluralElement(ne)){var le=ne.options["="+te];if(!le){if(!Intl.PluralRules)throw new FormatError(`Intl.PluralRules is not available in this environment.
114
127
  Try polyfilling it using "@formatjs/intl-pluralrules"
115
- `);var oe=U.getPluralRules(O,{type:ne.pluralType}).select(te-(ne.offset||0));le=ne.options[oe]||ne.options.other}if(!le)throw new RangeError('Invalid values for "'+ne.value+'": "'+te+'". Options are "'+Object.keys(ne.options).join('", "')+'"');X.push.apply(X,formatToParts(le.value,O,U,G,Y,te-(ne.offset||0)));continue}}return mergeLiteral(X)}function formatToString(W,O,U,G,Y,K){var J=formatToParts(W,O,U,G,Y,void 0,K);return J.length===1?J[0].value:J.reduce(function(X,ie){return X+=ie.value},"")}var domParser,TOKEN_DELIMITER="@@",TOKEN_REGEX=/@@(\d+_\d+)@@/g,counter=0;function generateId$1(){return Date.now()+"_"+ ++counter}function restoreRichPlaceholderMessage(W,O){return W.split(TOKEN_REGEX).filter(Boolean).map(function(U){return O[U]!=null?O[U]:U}).reduce(function(U,G){return U.length&&typeof G=="string"&&typeof U[U.length-1]=="string"?U[U.length-1]+=G:U.push(G),U},[])}var SIMPLE_XML_REGEX=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,TEMPLATE_ID=Date.now()+"@@",VOID_ELEMENTS=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function formatHTMLElement(W,O,U){var G=W.tagName,Y=W.outerHTML,K=W.textContent,J=W.childNodes;if(!G)return restoreRichPlaceholderMessage(K||"",O);G=G.toLowerCase();var X=~VOID_ELEMENTS.indexOf(G),ie=U[G];if(ie&&X)throw new FormatError(G+" is a self-closing tag and can not be used, please use another tag name.");if(!J.length)return[Y];var ee=Array.prototype.slice.call(J).reduce(function(ne,Q){return ne.concat(formatHTMLElement(Q,O,U))},[]);return ie?typeof ie=="function"?[ie.apply(void 0,ee)]:[ie]:__spreadArrays(["<"+G+">"],ee,["</"+G+">"])}function formatHTMLMessage(W,O,U,G,Y,K){var J=formatToParts(W,O,U,G,Y,void 0,K),X={},ie=J.reduce(function(te,se){if(se.type===0)return te+=se.value;var le=generateId$1();return X[le]=se.value,te+=""+TOKEN_DELIMITER+le+TOKEN_DELIMITER},"");if(!SIMPLE_XML_REGEX.test(ie))return restoreRichPlaceholderMessage(ie,X);if(!Y)throw new FormatError("Message has placeholders but no values was given");if(typeof DOMParser>"u")throw new FormatError("Cannot format XML message without DOMParser");domParser||(domParser=new DOMParser);var ee=domParser.parseFromString('<formatted-message id="'+TEMPLATE_ID+'">'+ie+"</formatted-message>","text/html").getElementById(TEMPLATE_ID);if(!ee)throw new FormatError("Malformed HTML message "+ie);var ne=Object.keys(Y).filter(function(te){return!!ee.getElementsByTagName(te).length});if(!ne.length)return restoreRichPlaceholderMessage(ie,X);var Q=ne.filter(function(te){return te!==te.toLowerCase()});if(Q.length)throw new FormatError("HTML tag must be lowercased but the following tags are not: "+Q.join(", "));return Array.prototype.slice.call(ee.childNodes).reduce(function(te,se){return te.concat(formatHTMLElement(se,X,Y))},[])}var __assign$2=function(){return __assign$2=Object.assign||function(W){for(var O,U=1,G=arguments.length;U<G;U++){O=arguments[U];for(var Y in O)Object.prototype.hasOwnProperty.call(O,Y)&&(W[Y]=O[Y])}return W},__assign$2.apply(this,arguments)};function mergeConfig$1(W,O){return O?__assign$2(__assign$2(__assign$2({},W||{}),O||{}),Object.keys(W).reduce(function(U,G){return U[G]=__assign$2(__assign$2({},W[G]),O[G]||{}),U},{})):W}function mergeConfigs(W,O){return O?Object.keys(W).reduce(function(U,G){return U[G]=mergeConfig$1(W[G],O[G]),U},__assign$2({},W)):W}function createDefaultFormatters(W){return W===void 0&&(W={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:memoizeFormatConstructor(Intl.NumberFormat,W.number),getDateTimeFormat:memoizeFormatConstructor(Intl.DateTimeFormat,W.dateTime),getPluralRules:memoizeFormatConstructor(Intl.PluralRules,W.pluralRules)}}var IntlMessageFormat=function(){function W(O,U,G,Y){var K=this;if(U===void 0&&(U=W.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(J){return formatToString(K.ast,K.locales,K.formatters,K.formats,J,K.message)},this.formatToParts=function(J){return formatToParts(K.ast,K.locales,K.formatters,K.formats,J,void 0,K.message)},this.formatHTMLMessage=function(J){return formatHTMLMessage(K.ast,K.locales,K.formatters,K.formats,J,K.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(K.locales)[0]}},this.getAst=function(){return K.ast},typeof O=="string"){if(this.message=O,!W.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=W.__parse(O,{normalizeHashtagInPlural:!1})}else this.ast=O;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=mergeConfigs(W.formats,G),this.locales=U,this.formatters=Y&&Y.formatters||createDefaultFormatters(this.formatterCache)}return W.defaultLocale=new Intl.NumberFormat().resolvedOptions().locale,W.__parse=parse,W.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},W}();const u$2=W=>{let O=W;if(W&&W.length==1){if(Object.prototype.toString.call(W[0])==="[object Array]")O=W[0];else if(typeof W[0]=="object"){const U=W[0];O=Object.keys(U).reduce((G,Y)=>G.concat(Y,U[Y]),[])}}return O},F=W=>lensPath(String(W).split(".")),j=(W,O,U={},G=!1)=>function(Y,...K){if(!Y||!O||!W||!O[W])return"";const J=view(F(Y),O[W]);if(!J)return G?Y:"";if(!K||!K.length)return J;const X={},ie=`${Y}${J}`;let ee=X[ie];ee||(ee=new IntlMessageFormat(J,W,U),X[ie]=ee),K=u$2(K);const ne={};for(let Q=0;Q<K.length;Q+=2)ne[K[Q]]=K[Q+1];return ee.format(ne)},o$2={};let e$2={};const l$1=W=>{e$2=mergeDeepRight(o$2,e$2),e$2=mergeDeepRight(e$2,W),u$3(o$4,e$2)},p$1=()=>({...e$2}),createLocaleManager=W=>O=>{const U=j(p$2(),O,"",!0);return l$1(O),Promise.resolve({translate:(G,Y)=>{try{return U(`${W}.${G}`,Y)}catch(K){return console.error(K),G}},getTranslations:()=>{const G=p$1(),Y=p$2();return G[Y][W]||{}},getCurrentLanguage:()=>p$2()})},shellRegions={header:"header-region",headerActions:"header-actions-region",main:"main-region",menu:"menu-region",quickActions:"quick-actions-region",floating:"floating-region"},clinicalMonitoringRegions={sidebar:"widgets-sidebar-region",header:"header-widgets-region",content:"content-widgets-region"},styles$8="*[hidden]{display:none!important}.wrapper{display:flex;flex-direction:column;flex:1;align-items:center}",template$5=W=>x$1`
128
+ `);var oe=U.getPluralRules(O,{type:ne.pluralType}).select(te-(ne.offset||0));le=ne.options[oe]||ne.options.other}if(!le)throw new RangeError('Invalid values for "'+ne.value+'": "'+te+'". Options are "'+Object.keys(ne.options).join('", "')+'"');X.push.apply(X,formatToParts(le.value,O,U,G,Y,te-(ne.offset||0)));continue}}return mergeLiteral(X)}function formatToString(W,O,U,G,Y,K){var J=formatToParts(W,O,U,G,Y,void 0,K);return J.length===1?J[0].value:J.reduce(function(X,se){return X+=se.value},"")}var domParser,TOKEN_DELIMITER="@@",TOKEN_REGEX=/@@(\d+_\d+)@@/g,counter=0;function generateId$1(){return Date.now()+"_"+ ++counter}function restoreRichPlaceholderMessage(W,O){return W.split(TOKEN_REGEX).filter(Boolean).map(function(U){return O[U]!=null?O[U]:U}).reduce(function(U,G){return U.length&&typeof G=="string"&&typeof U[U.length-1]=="string"?U[U.length-1]+=G:U.push(G),U},[])}var SIMPLE_XML_REGEX=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,TEMPLATE_ID=Date.now()+"@@",VOID_ELEMENTS=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function formatHTMLElement(W,O,U){var G=W.tagName,Y=W.outerHTML,K=W.textContent,J=W.childNodes;if(!G)return restoreRichPlaceholderMessage(K||"",O);G=G.toLowerCase();var X=~VOID_ELEMENTS.indexOf(G),se=U[G];if(se&&X)throw new FormatError(G+" is a self-closing tag and can not be used, please use another tag name.");if(!J.length)return[Y];var ee=Array.prototype.slice.call(J).reduce(function(ne,Q){return ne.concat(formatHTMLElement(Q,O,U))},[]);return se?typeof se=="function"?[se.apply(void 0,ee)]:[se]:__spreadArrays(["<"+G+">"],ee,["</"+G+">"])}function formatHTMLMessage(W,O,U,G,Y,K){var J=formatToParts(W,O,U,G,Y,void 0,K),X={},se=J.reduce(function(te,ie){if(ie.type===0)return te+=ie.value;var le=generateId$1();return X[le]=ie.value,te+=""+TOKEN_DELIMITER+le+TOKEN_DELIMITER},"");if(!SIMPLE_XML_REGEX.test(se))return restoreRichPlaceholderMessage(se,X);if(!Y)throw new FormatError("Message has placeholders but no values was given");if(typeof DOMParser>"u")throw new FormatError("Cannot format XML message without DOMParser");domParser||(domParser=new DOMParser);var ee=domParser.parseFromString('<formatted-message id="'+TEMPLATE_ID+'">'+se+"</formatted-message>","text/html").getElementById(TEMPLATE_ID);if(!ee)throw new FormatError("Malformed HTML message "+se);var ne=Object.keys(Y).filter(function(te){return!!ee.getElementsByTagName(te).length});if(!ne.length)return restoreRichPlaceholderMessage(se,X);var Q=ne.filter(function(te){return te!==te.toLowerCase()});if(Q.length)throw new FormatError("HTML tag must be lowercased but the following tags are not: "+Q.join(", "));return Array.prototype.slice.call(ee.childNodes).reduce(function(te,ie){return te.concat(formatHTMLElement(ie,X,Y))},[])}var __assign$2=function(){return __assign$2=Object.assign||function(W){for(var O,U=1,G=arguments.length;U<G;U++){O=arguments[U];for(var Y in O)Object.prototype.hasOwnProperty.call(O,Y)&&(W[Y]=O[Y])}return W},__assign$2.apply(this,arguments)};function mergeConfig$1(W,O){return O?__assign$2(__assign$2(__assign$2({},W||{}),O||{}),Object.keys(W).reduce(function(U,G){return U[G]=__assign$2(__assign$2({},W[G]),O[G]||{}),U},{})):W}function mergeConfigs(W,O){return O?Object.keys(W).reduce(function(U,G){return U[G]=mergeConfig$1(W[G],O[G]),U},__assign$2({},W)):W}function createDefaultFormatters(W){return W===void 0&&(W={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:memoizeFormatConstructor(Intl.NumberFormat,W.number),getDateTimeFormat:memoizeFormatConstructor(Intl.DateTimeFormat,W.dateTime),getPluralRules:memoizeFormatConstructor(Intl.PluralRules,W.pluralRules)}}var IntlMessageFormat=function(){function W(O,U,G,Y){var K=this;if(U===void 0&&(U=W.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(J){return formatToString(K.ast,K.locales,K.formatters,K.formats,J,K.message)},this.formatToParts=function(J){return formatToParts(K.ast,K.locales,K.formatters,K.formats,J,void 0,K.message)},this.formatHTMLMessage=function(J){return formatHTMLMessage(K.ast,K.locales,K.formatters,K.formats,J,K.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(K.locales)[0]}},this.getAst=function(){return K.ast},typeof O=="string"){if(this.message=O,!W.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=W.__parse(O,{normalizeHashtagInPlural:!1})}else this.ast=O;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=mergeConfigs(W.formats,G),this.locales=U,this.formatters=Y&&Y.formatters||createDefaultFormatters(this.formatterCache)}return W.defaultLocale=new Intl.NumberFormat().resolvedOptions().locale,W.__parse=parse,W.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},W}();const u$2=W=>{let O=W;if(W&&W.length==1){if(Object.prototype.toString.call(W[0])==="[object Array]")O=W[0];else if(typeof W[0]=="object"){const U=W[0];O=Object.keys(U).reduce((G,Y)=>G.concat(Y,U[Y]),[])}}return O},F=W=>lensPath(String(W).split(".")),j=(W,O,U={},G=!1)=>function(Y,...K){if(!Y||!O||!W||!O[W])return"";const J=view(F(Y),O[W]);if(!J)return G?Y:"";if(!K||!K.length)return J;const X={},se=`${Y}${J}`;let ee=X[se];ee||(ee=new IntlMessageFormat(J,W,U),X[se]=ee),K=u$2(K);const ne={};for(let Q=0;Q<K.length;Q+=2)ne[K[Q]]=K[Q+1];return ee.format(ne)},o$2={};let e$2={};const l$1=W=>{e$2=mergeDeepRight(o$2,e$2),e$2=mergeDeepRight(e$2,W),u$3(o$4,e$2)},p$1=()=>({...e$2}),createLocaleManager=W=>O=>{const U=j(p$2(),O,"",!0);return l$1(O),Promise.resolve({translate:(G,Y)=>{try{return U(`${W}.${G}`,Y)}catch(K){return console.error(K),G}},getTranslations:()=>{const G=p$1(),Y=p$2();return G[Y][W]||{}},getCurrentLanguage:()=>p$2()})},shellRegions={header:"header-region",headerActions:"header-actions-region",main:"main-region",menu:"menu-region",quickActions:"quick-actions-region",floating:"floating-region"},clinicalMonitoringRegions={sidebar:"widgets-sidebar-region",header:"header-widgets-region",content:"content-widgets-region"},styles$8="*[hidden]{display:none!important}.wrapper{display:flex;flex-direction:column;flex:1;align-items:center}",template$5=W=>x$1`
116
129
  <div class="wrapper">${W.title}</div>
117
130
  `;var __defProp$f=Object.defineProperty,__getOwnPropDesc$e=Object.getOwnPropertyDescriptor,__decorateClass$f=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$e(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$f(O,U,Y),Y};let TitleView=class extends s$8{constructor(W){super(),this.titleText=W,this.title=W}render(){return x$1`${template$5(this)}`}};TitleView.styles=i$9`
118
131
  ${r$a(styles$8)}
@@ -159,7 +172,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
159
172
  </div>
160
173
  `}static get styles(){return i$9`
161
174
  ${r$a(styles$6)}
162
- `}show(){this.snackbar.classList.add("show")}clearAndUpdateOrder(W){const O=this.snackbar.classList.values();for(const U of O)U.startsWith("notification")&&this.snackbar.classList.remove(U);this.snackbar.classList.add(W),this.requestUpdate()}close(){this.snackbar.classList.remove("show"),this.dispatchEvent(new CustomEvent("closed"))}};__decorateClass$d([n$8({type:Object})],NotifierComponent.prototype,"options",2),__decorateClass$d([e$c(".snackbar")],NotifierComponent.prototype,"snackbar",2),NotifierComponent=__decorateClass$d([t$7("notifier-component")],NotifierComponent);function rand(W){const O=Math.random()*16|0;return(W==="x"?O:O&3|8).toString(16)}function generateId(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,rand)}const notificationStack=[],displayNotifications=[],stackLimit=10,timeToCloseNotification=5,updateNotificationOptsOrder=()=>{for(const[W,O]of displayNotifications.entries())O.order=`notification-${W+1}`},getComponentById=W=>W?document.getElementById(W):void 0,showAndSetTimeOutClose=(W,O)=>{getComponentById(W.id)&&(W.show(),setTimeout(()=>{W.close()},O*1e3))},removeCurrentComponent=W=>{var G;const O=displayNotifications.findIndex(Y=>Y.id===W),U=getComponentById((G=displayNotifications[O])==null?void 0:G.id);U&&(U.remove(),displayNotifications.splice(O,1))},removeFromStackAndAddToDisplay=()=>{const W=notificationStack[0],O=W&&displayNotifications.find(U=>U.id===W.id);W&&!O&&(displayNotifications.push(W),notificationStack.shift())},refreshAllComponentsOrder=()=>{for(const W of displayNotifications){if(!W.order)continue;const O=getComponentById(W.id);O&&O.clearAndUpdateOrder(W.order)}},setNewDisplayNotification=()=>{const W=displayNotifications.length-1,O=displayNotifications[W];if(!O)return;const U=getComponentById(O.id);U&&showAndSetTimeOutClose(U,timeToCloseNotification)},closeAndUpdateStack=W=>{removeCurrentComponent(W),removeFromStackAndAddToDisplay(),updateNotificationOptsOrder(),refreshAllComponentsOrder(),setNewDisplayNotification()},createNotifyComponent=(W,O)=>{const G=document.body.appendChild(document.createElement("notifier-component"));return G.options=W,G.id=O,G},notify=W=>{const O=`${generateId()}`,U={...W,id:O};if(displayNotifications.length<stackLimit?displayNotifications.push(U):notificationStack.push(U),!W.message)throw new Error("message is required");const G=createNotifyComponent(W,O);G.addEventListener("closed",()=>closeAndUpdateStack(O)),G.updateComplete.then(()=>{var K;if(!notificationStack.length&&displayNotifications.length<=stackLimit){updateNotificationOptsOrder();const J=(K=displayNotifications.find(X=>X.id===O))==null?void 0:K.order;if(!J)return;G.clearAndUpdateOrder(J),showAndSetTimeOutClose(G,timeToCloseNotification)}})};var __defProp$c=Object.defineProperty,__decorateClass$c=(W,O,U,G)=>{for(var Y=void 0,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=J(O,U,Y)||Y);return Y&&__defProp$c(O,U,Y),Y};const ConfirmMixin=d$3(W=>{class O extends W{close(G){this.dispatchEvent(new CustomEvent("closed",{detail:G}))}canAccept(){return Promise.resolve(!0)}accept(){return Promise.resolve()}}return __decorateClass$c([n$8()],O.prototype,"model"),O});function confirmMixin(W){return ConfirmMixin(W)}const createInteractionManager=()=>({notify:W=>notify(W),doConfirm:W=>doConfirm(W),doCustomConfirm:W=>doConfirm(W)});class PrimariaGlobalStateManagerImpl{constructor(O){this.broker=O,this.state={}}setData(O,U){this.state[O]=U,this.broker.publish("data_set",{key:O,value:U})}getData(O){return this.state[O]}clearData(){this.state={}}}const createGlobalStateManager=W=>new PrimariaGlobalStateManagerImpl(W);var __extends=function(){var W=function(O,U){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Y){G.__proto__=Y}||function(G,Y){for(var K in Y)Object.prototype.hasOwnProperty.call(Y,K)&&(G[K]=Y[K])},W(O,U)};return function(O,U){if(typeof U!="function"&&U!==null)throw new TypeError("Class extends value "+String(U)+" is not a constructor or null");W(O,U);function G(){this.constructor=O}O.prototype=U===null?Object.create(U):(G.prototype=U.prototype,new G)}}(),__spreadArray$3=function(W,O,U){if(U||arguments.length===2)for(var G=0,Y=O.length,K;G<Y;G++)(K||!(G in O))&&(K||(K=Array.prototype.slice.call(O,0,G)),K[G]=O[G]);return W.concat(K||Array.prototype.slice.call(O))},OrderMappings=function(){function W(){this._mappings=[]}return W.prototype.add=function(O){O.order!==0&&(O.order=this._mappings.length),this._mappings.push(O),this.onAdded(O)},W.prototype.clear=function(){this._mappings=[]},W}();function byOrder(W,O){return(O.order||0)-(W.order||0)}var NotificationMappings=function(W){__extends(O,W);function O(){return W!==null&&W.apply(this,arguments)||this}return O.prototype.onAdded=function(U){var G=U.handler.prototype.constructor.name;mediatorSettings$1.resolver.add(G,U.handler)},O.prototype.setOrder=function(U,G){for(var Y=this.getAll(U),K=0,J=Y;K<J.length;K++){var X=J[K];X.order=G.indexOf(X.handler)}},O.prototype.getAll=function(U){var G=this._mappings.filter(function(Y){return Y.notification===U});if(G.length===0)throw new Error("Cannot find notification handler with key: ".concat(U.prototype.name));return G.sort(byOrder)},O}(OrderMappings),BehaviorMappings=function(W){__extends(O,W);function O(){return W!==null&&W.apply(this,arguments)||this}return O.prototype.onAdded=function(U){var G=U.behavior.prototype.constructor.name;mediatorSettings$1.resolver.add(G,U.behavior)},O.prototype.setOrder=function(U){for(var G=this.getAll(),Y=0,K=G;Y<K.length;Y++){var J=K[Y];J.order=U.indexOf(J.behavior)}},O.prototype.getAll=function(){var U=__spreadArray$3([],this._mappings,!0);return U.sort(byOrder)},O}(OrderMappings),Dispatcher=function(){function W(){this._notifications=new NotificationMappings,this._behaviors=new BehaviorMappings}return Object.defineProperty(W.prototype,"notifications",{get:function(){return this._notifications},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"behaviors",{get:function(){return this._behaviors},enumerable:!1,configurable:!0}),W}(),HandlerInstance=function(){function W(O,U){this._name=O,this._value=U}return Object.defineProperty(W.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),W}(),Resolver=function(){function W(){this._instances=[]}return W.prototype.resolve=function(O){var U=this._instances.find(function(Y){return Y.name===O});if(!U)throw new Error("Cannot find element with key: ".concat(O));var G=U.value;return new G},W.prototype.add=function(O,U){var G=this._instances.find(function(Y){return Y.name===O});if(G===void 0)this._instances.push(new HandlerInstance(O,U));else throw new Error("The key ".concat(O," is already been added"))},W.prototype.remove=function(O){var U=this._instances.findIndex(function(G){return G.name===O});U>=0&&this._instances.splice(U,1)},W.prototype.clear=function(){this._instances=[]},W}(),MediatrSettings=function(){function W(){this.resolver=new Resolver,this.dispatcher=new Dispatcher}return W}(),mediatorSettings=new MediatrSettings;const mediatorSettings$1=mediatorSettings;var requestHandler=function(W){return function(O){var U=W.prototype.constructor.name;mediatorSettings$1.resolver.add(U,O)}},notificationHandler=function(W){return function(O){mediatorSettings$1.dispatcher.notifications.add({notification:W,handler:O})}},__awaiter$4=function(W,O,U,G){function Y(K){return K instanceof U?K:new U(function(J){J(K)})}return new(U||(U=Promise))(function(K,J){function X(ne){try{ee(G.next(ne))}catch(Q){J(Q)}}function ie(ne){try{ee(G.throw(ne))}catch(Q){J(Q)}}function ee(ne){ne.done?K(ne.value):Y(ne.value).then(X,ie)}ee((G=G.apply(W,O||[])).next())})},__generator$4=function(W,O){var U={label:0,sent:function(){if(K[0]&1)throw K[1];return K[1]},trys:[],ops:[]},G,Y,K,J;return J={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function X(ee){return function(ne){return ie([ee,ne])}}function ie(ee){if(G)throw new TypeError("Generator is already executing.");for(;J&&(J=0,ee[0]&&(U=0)),U;)try{if(G=1,Y&&(K=ee[0]&2?Y.return:ee[0]?Y.throw||((K=Y.return)&&K.call(Y),0):Y.next)&&!(K=K.call(Y,ee[1])).done)return K;switch(Y=0,K&&(ee=[ee[0]&2,K.value]),ee[0]){case 0:case 1:K=ee;break;case 4:return U.label++,{value:ee[1],done:!1};case 5:U.label++,Y=ee[1],ee=[0];continue;case 7:ee=U.ops.pop(),U.trys.pop();continue;default:if(K=U.trys,!(K=K.length>0&&K[K.length-1])&&(ee[0]===6||ee[0]===2)){U=0;continue}if(ee[0]===3&&(!K||ee[1]>K[0]&&ee[1]<K[3])){U.label=ee[1];break}if(ee[0]===6&&U.label<K[1]){U.label=K[1],K=ee;break}if(K&&U.label<K[2]){U.label=K[2],U.ops.push(ee);break}K[2]&&U.ops.pop(),U.trys.pop();continue}ee=O.call(W,U)}catch(ne){ee=[6,ne],Y=0}finally{G=K=0}if(ee[0]&5)throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}},Mediator=function(){function W(){}return W.prototype.send=function(O){return __awaiter$4(this,void 0,void 0,function(){var U,G,Y,K,J,X=this;return __generator$4(this,function(ie){switch(ie.label){case 0:return U=O.constructor.name,G=mediatorSettings$1.resolver.resolve(U),Y=mediatorSettings$1.dispatcher.behaviors.getAll().map(function(ee){return ee.behavior}),K=0,J=function(){return __awaiter$4(X,void 0,void 0,function(){var ee,ne;return __generator$4(this,function(Q){switch(Q.label){case 0:return K<Y.length?(ee=Y[K],ne=mediatorSettings$1.resolver.resolve(ee.name),K++,[4,ne.handle(O,J)]):[3,2];case 1:return[2,Q.sent()];case 2:return[4,G.handle(O)];case 3:return[2,Q.sent()]}})})},[4,J()];case 1:return[2,ie.sent()]}})})},W.prototype.publish=function(O){return __awaiter$4(this,void 0,void 0,function(){var U,G=this;return __generator$4(this,function(Y){switch(Y.label){case 0:return U=mediatorSettings$1.dispatcher.notifications.getAll(O.constructor),[4,Promise.all(U.map(function(K){return __awaiter$4(G,void 0,void 0,function(){var J;return __generator$4(this,function(X){return J=mediatorSettings$1.resolver.resolve(K.handler.name),[2,J.handle(O)]})})}))];case 1:return Y.sent(),[2]}})})},W}();class Broker{constructor(){this.eventConstructorMap=new Map,this.requestConstructorMap=new Map,this.mediator=new Mediator,mediatorSettings$1.resolver.clear()}send(O,U){const G=typeof O=="string"?this.getRequest(O,U):O;return this.mediator.send(G)}publish(O,U){const G=typeof O=="string"?this.getEvent(O,U):O,Y=G.constructor||Object.getPrototypeOf(G).constructor;return mediatorSettings$1.dispatcher.notifications._mappings.filter(J=>J.notification===Y).length?this.mediator.publish(G):Promise.resolve()}subscribe(O,U){const G=typeof O=="function"?O:this.getEventType(O);return notificationHandler(G)(createDynamicEventHandler(U)),this}registerRequest(O,U){const G=typeof O=="function"?O:this.getRequestType(O);return requestHandler(G)(createDynamicRequestHandler(U)),this}getEvent(O,U){const G=this.getEventType(O);return new G(U)}getRequest(O,U){const G=this.getRequestType(O);return new G(U)}getEventType(O){if(!this.eventConstructorMap.has(O)){const U=createDynamicEventClass(O);this.eventConstructorMap.set(O,U)}return this.eventConstructorMap.get(O)}getRequestType(O){if(!this.requestConstructorMap.has(O)){const U=createDynamicRequestClass(O);this.requestConstructorMap.set(O,U)}return this.requestConstructorMap.get(O)}}const createDynamicEventClass=W=>createDynamicMessageClass(W,"Event"),createDynamicRequestClass=W=>createDynamicMessageClass(W,"Request"),createDynamicMessageClass=(W,O)=>new Function(`return class ${O}_${W} {
175
+ `}show(){this.snackbar.classList.add("show")}clearAndUpdateOrder(W){const O=this.snackbar.classList.values();for(const U of O)U.startsWith("notification")&&this.snackbar.classList.remove(U);this.snackbar.classList.add(W),this.requestUpdate()}close(){this.snackbar.classList.remove("show"),this.dispatchEvent(new CustomEvent("closed"))}};__decorateClass$d([n$8({type:Object})],NotifierComponent.prototype,"options",2),__decorateClass$d([e$c(".snackbar")],NotifierComponent.prototype,"snackbar",2),NotifierComponent=__decorateClass$d([t$7("notifier-component")],NotifierComponent);function rand(W){const O=Math.random()*16|0;return(W==="x"?O:O&3|8).toString(16)}function generateId(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,rand)}const notificationStack=[],displayNotifications=[],stackLimit=10,timeToCloseNotification=5,updateNotificationOptsOrder=()=>{for(const[W,O]of displayNotifications.entries())O.order=`notification-${W+1}`},getComponentById=W=>W?document.getElementById(W):void 0,showAndSetTimeOutClose=(W,O)=>{getComponentById(W.id)&&(W.show(),setTimeout(()=>{W.close()},O*1e3))},removeCurrentComponent=W=>{var G;const O=displayNotifications.findIndex(Y=>Y.id===W),U=getComponentById((G=displayNotifications[O])==null?void 0:G.id);U&&(U.remove(),displayNotifications.splice(O,1))},removeFromStackAndAddToDisplay=()=>{const W=notificationStack[0],O=W&&displayNotifications.find(U=>U.id===W.id);W&&!O&&(displayNotifications.push(W),notificationStack.shift())},refreshAllComponentsOrder=()=>{for(const W of displayNotifications){if(!W.order)continue;const O=getComponentById(W.id);O&&O.clearAndUpdateOrder(W.order)}},setNewDisplayNotification=()=>{const W=displayNotifications.length-1,O=displayNotifications[W];if(!O)return;const U=getComponentById(O.id);U&&showAndSetTimeOutClose(U,timeToCloseNotification)},closeAndUpdateStack=W=>{removeCurrentComponent(W),removeFromStackAndAddToDisplay(),updateNotificationOptsOrder(),refreshAllComponentsOrder(),setNewDisplayNotification()},createNotifyComponent=(W,O)=>{const G=document.body.appendChild(document.createElement("notifier-component"));return G.options=W,G.id=O,G},notify=W=>{const O=`${generateId()}`,U={...W,id:O};if(displayNotifications.length<stackLimit?displayNotifications.push(U):notificationStack.push(U),!W.message)throw new Error("message is required");const G=createNotifyComponent(W,O);G.addEventListener("closed",()=>closeAndUpdateStack(O)),G.updateComplete.then(()=>{var K;if(!notificationStack.length&&displayNotifications.length<=stackLimit){updateNotificationOptsOrder();const J=(K=displayNotifications.find(X=>X.id===O))==null?void 0:K.order;if(!J)return;G.clearAndUpdateOrder(J),showAndSetTimeOutClose(G,timeToCloseNotification)}})};var __defProp$c=Object.defineProperty,__decorateClass$c=(W,O,U,G)=>{for(var Y=void 0,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=J(O,U,Y)||Y);return Y&&__defProp$c(O,U,Y),Y};const ConfirmMixin=d$3(W=>{class O extends W{close(G){this.dispatchEvent(new CustomEvent("closed",{detail:G}))}canAccept(){return Promise.resolve(!0)}accept(){return Promise.resolve()}}return __decorateClass$c([n$8()],O.prototype,"model"),O});function confirmMixin(W){return ConfirmMixin(W)}const createInteractionManager=()=>({notify:W=>notify(W),doConfirm:W=>doConfirm(W),doCustomConfirm:W=>doConfirm(W)});class PrimariaGlobalStateManagerImpl{constructor(O){this.broker=O,this.state={}}setData(O,U){this.state[O]=U,this.broker.publish("data_set",{key:O,value:U})}getData(O){return this.state[O]}clearData(){this.state={}}}const createGlobalStateManager=W=>new PrimariaGlobalStateManagerImpl(W);var __extends=function(){var W=function(O,U){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Y){G.__proto__=Y}||function(G,Y){for(var K in Y)Object.prototype.hasOwnProperty.call(Y,K)&&(G[K]=Y[K])},W(O,U)};return function(O,U){if(typeof U!="function"&&U!==null)throw new TypeError("Class extends value "+String(U)+" is not a constructor or null");W(O,U);function G(){this.constructor=O}O.prototype=U===null?Object.create(U):(G.prototype=U.prototype,new G)}}(),__spreadArray$3=function(W,O,U){if(U||arguments.length===2)for(var G=0,Y=O.length,K;G<Y;G++)(K||!(G in O))&&(K||(K=Array.prototype.slice.call(O,0,G)),K[G]=O[G]);return W.concat(K||Array.prototype.slice.call(O))},OrderMappings=function(){function W(){this._mappings=[]}return W.prototype.add=function(O){O.order!==0&&(O.order=this._mappings.length),this._mappings.push(O),this.onAdded(O)},W.prototype.clear=function(){this._mappings=[]},W}();function byOrder(W,O){return(O.order||0)-(W.order||0)}var NotificationMappings=function(W){__extends(O,W);function O(){return W!==null&&W.apply(this,arguments)||this}return O.prototype.onAdded=function(U){var G=U.handler.prototype.constructor.name;mediatorSettings$1.resolver.add(G,U.handler)},O.prototype.setOrder=function(U,G){for(var Y=this.getAll(U),K=0,J=Y;K<J.length;K++){var X=J[K];X.order=G.indexOf(X.handler)}},O.prototype.getAll=function(U){var G=this._mappings.filter(function(Y){return Y.notification===U});if(G.length===0)throw new Error("Cannot find notification handler with key: ".concat(U.prototype.name));return G.sort(byOrder)},O}(OrderMappings),BehaviorMappings=function(W){__extends(O,W);function O(){return W!==null&&W.apply(this,arguments)||this}return O.prototype.onAdded=function(U){var G=U.behavior.prototype.constructor.name;mediatorSettings$1.resolver.add(G,U.behavior)},O.prototype.setOrder=function(U){for(var G=this.getAll(),Y=0,K=G;Y<K.length;Y++){var J=K[Y];J.order=U.indexOf(J.behavior)}},O.prototype.getAll=function(){var U=__spreadArray$3([],this._mappings,!0);return U.sort(byOrder)},O}(OrderMappings),Dispatcher=function(){function W(){this._notifications=new NotificationMappings,this._behaviors=new BehaviorMappings}return Object.defineProperty(W.prototype,"notifications",{get:function(){return this._notifications},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"behaviors",{get:function(){return this._behaviors},enumerable:!1,configurable:!0}),W}(),HandlerInstance=function(){function W(O,U){this._name=O,this._value=U}return Object.defineProperty(W.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),W}(),Resolver=function(){function W(){this._instances=[]}return W.prototype.resolve=function(O){var U=this._instances.find(function(Y){return Y.name===O});if(!U)throw new Error("Cannot find element with key: ".concat(O));var G=U.value;return new G},W.prototype.add=function(O,U){var G=this._instances.find(function(Y){return Y.name===O});if(G===void 0)this._instances.push(new HandlerInstance(O,U));else throw new Error("The key ".concat(O," is already been added"))},W.prototype.remove=function(O){var U=this._instances.findIndex(function(G){return G.name===O});U>=0&&this._instances.splice(U,1)},W.prototype.clear=function(){this._instances=[]},W}(),MediatrSettings=function(){function W(){this.resolver=new Resolver,this.dispatcher=new Dispatcher}return W}(),mediatorSettings=new MediatrSettings;const mediatorSettings$1=mediatorSettings;var requestHandler=function(W){return function(O){var U=W.prototype.constructor.name;mediatorSettings$1.resolver.add(U,O)}},notificationHandler=function(W){return function(O){mediatorSettings$1.dispatcher.notifications.add({notification:W,handler:O})}},__awaiter$4=function(W,O,U,G){function Y(K){return K instanceof U?K:new U(function(J){J(K)})}return new(U||(U=Promise))(function(K,J){function X(ne){try{ee(G.next(ne))}catch(Q){J(Q)}}function se(ne){try{ee(G.throw(ne))}catch(Q){J(Q)}}function ee(ne){ne.done?K(ne.value):Y(ne.value).then(X,se)}ee((G=G.apply(W,O||[])).next())})},__generator$4=function(W,O){var U={label:0,sent:function(){if(K[0]&1)throw K[1];return K[1]},trys:[],ops:[]},G,Y,K,J;return J={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function X(ee){return function(ne){return se([ee,ne])}}function se(ee){if(G)throw new TypeError("Generator is already executing.");for(;J&&(J=0,ee[0]&&(U=0)),U;)try{if(G=1,Y&&(K=ee[0]&2?Y.return:ee[0]?Y.throw||((K=Y.return)&&K.call(Y),0):Y.next)&&!(K=K.call(Y,ee[1])).done)return K;switch(Y=0,K&&(ee=[ee[0]&2,K.value]),ee[0]){case 0:case 1:K=ee;break;case 4:return U.label++,{value:ee[1],done:!1};case 5:U.label++,Y=ee[1],ee=[0];continue;case 7:ee=U.ops.pop(),U.trys.pop();continue;default:if(K=U.trys,!(K=K.length>0&&K[K.length-1])&&(ee[0]===6||ee[0]===2)){U=0;continue}if(ee[0]===3&&(!K||ee[1]>K[0]&&ee[1]<K[3])){U.label=ee[1];break}if(ee[0]===6&&U.label<K[1]){U.label=K[1],K=ee;break}if(K&&U.label<K[2]){U.label=K[2],U.ops.push(ee);break}K[2]&&U.ops.pop(),U.trys.pop();continue}ee=O.call(W,U)}catch(ne){ee=[6,ne],Y=0}finally{G=K=0}if(ee[0]&5)throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}},Mediator=function(){function W(){}return W.prototype.send=function(O){return __awaiter$4(this,void 0,void 0,function(){var U,G,Y,K,J,X=this;return __generator$4(this,function(se){switch(se.label){case 0:return U=O.constructor.name,G=mediatorSettings$1.resolver.resolve(U),Y=mediatorSettings$1.dispatcher.behaviors.getAll().map(function(ee){return ee.behavior}),K=0,J=function(){return __awaiter$4(X,void 0,void 0,function(){var ee,ne;return __generator$4(this,function(Q){switch(Q.label){case 0:return K<Y.length?(ee=Y[K],ne=mediatorSettings$1.resolver.resolve(ee.name),K++,[4,ne.handle(O,J)]):[3,2];case 1:return[2,Q.sent()];case 2:return[4,G.handle(O)];case 3:return[2,Q.sent()]}})})},[4,J()];case 1:return[2,se.sent()]}})})},W.prototype.publish=function(O){return __awaiter$4(this,void 0,void 0,function(){var U,G=this;return __generator$4(this,function(Y){switch(Y.label){case 0:return U=mediatorSettings$1.dispatcher.notifications.getAll(O.constructor),[4,Promise.all(U.map(function(K){return __awaiter$4(G,void 0,void 0,function(){var J;return __generator$4(this,function(X){return J=mediatorSettings$1.resolver.resolve(K.handler.name),[2,J.handle(O)]})})}))];case 1:return Y.sent(),[2]}})})},W}();class Broker{constructor(){this.eventConstructorMap=new Map,this.requestConstructorMap=new Map,this.mediator=new Mediator,mediatorSettings$1.resolver.clear()}send(O,U){const G=typeof O=="string"?this.getRequest(O,U):O;return this.mediator.send(G)}publish(O,U){const G=typeof O=="string"?this.getEvent(O,U):O,Y=G.constructor||Object.getPrototypeOf(G).constructor;return mediatorSettings$1.dispatcher.notifications._mappings.filter(J=>J.notification===Y).length?this.mediator.publish(G):Promise.resolve()}subscribe(O,U){const G=typeof O=="function"?O:this.getEventType(O);return notificationHandler(G)(createDynamicEventHandler(U)),this}registerRequest(O,U){const G=typeof O=="function"?O:this.getRequestType(O);return requestHandler(G)(createDynamicRequestHandler(U)),this}getEvent(O,U){const G=this.getEventType(O);return new G(U)}getRequest(O,U){const G=this.getRequestType(O);return new G(U)}getEventType(O){if(!this.eventConstructorMap.has(O)){const U=createDynamicEventClass(O);this.eventConstructorMap.set(O,U)}return this.eventConstructorMap.get(O)}getRequestType(O){if(!this.requestConstructorMap.has(O)){const U=createDynamicRequestClass(O);this.requestConstructorMap.set(O,U)}return this.requestConstructorMap.get(O)}}const createDynamicEventClass=W=>createDynamicMessageClass(W,"Event"),createDynamicRequestClass=W=>createDynamicMessageClass(W,"Request"),createDynamicMessageClass=(W,O)=>new Function(`return class ${O}_${W} {
163
176
  constructor(payload) {
164
177
  Object.assign(this, payload);
165
178
  }
@@ -168,12 +181,12 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
168
181
  const handlerResult = handler({...notification});
169
182
  return handlerResult instanceof Promise ? handlerResult : Promise.resolve(handlerResult);
170
183
  }
171
- }`)(W)},createBroker=()=>new Broker;function bind(W,O){return function(){return W.apply(O,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(W=>O=>{const U=toString.call(O);return W[U]||(W[U]=U.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=W=>(W=W.toLowerCase(),O=>kindOf(O)===W),typeOfTest=W=>O=>typeof O===W,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(W){return W!==null&&!isUndefined(W)&&W.constructor!==null&&!isUndefined(W.constructor)&&isFunction(W.constructor.isBuffer)&&W.constructor.isBuffer(W)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(W){let O;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?O=ArrayBuffer.isView(W):O=W&&W.buffer&&isArrayBuffer(W.buffer),O}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=W=>W!==null&&typeof W=="object",isBoolean=W=>W===!0||W===!1,isPlainObject=W=>{if(kindOf(W)!=="object")return!1;const O=getPrototypeOf(W);return(O===null||O===Object.prototype||Object.getPrototypeOf(O)===null)&&!(Symbol.toStringTag in W)&&!(Symbol.iterator in W)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=W=>isObject(W)&&isFunction(W.pipe),isFormData=W=>{let O;return W&&(typeof FormData=="function"&&W instanceof FormData||isFunction(W.append)&&((O=kindOf(W))==="formdata"||O==="object"&&isFunction(W.toString)&&W.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=W=>W.trim?W.trim():W.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(W,O,{allOwnKeys:U=!1}={}){if(W===null||typeof W>"u")return;let G,Y;if(typeof W!="object"&&(W=[W]),isArray(W))for(G=0,Y=W.length;G<Y;G++)O.call(null,W[G],G,W);else{const K=U?Object.getOwnPropertyNames(W):Object.keys(W),J=K.length;let X;for(G=0;G<J;G++)X=K[G],O.call(null,W[X],X,W)}}function findKey(W,O){O=O.toLowerCase();const U=Object.keys(W);let G=U.length,Y;for(;G-- >0;)if(Y=U[G],O===Y.toLowerCase())return Y;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=W=>!isUndefined(W)&&W!==_global;function merge(){const{caseless:W}=isContextDefined(this)&&this||{},O={},U=(G,Y)=>{const K=W&&findKey(O,Y)||Y;isPlainObject(O[K])&&isPlainObject(G)?O[K]=merge(O[K],G):isPlainObject(G)?O[K]=merge({},G):isArray(G)?O[K]=G.slice():O[K]=G};for(let G=0,Y=arguments.length;G<Y;G++)arguments[G]&&forEach(arguments[G],U);return O}const extend=(W,O,U,{allOwnKeys:G}={})=>(forEach(O,(Y,K)=>{U&&isFunction(Y)?W[K]=bind(Y,U):W[K]=Y},{allOwnKeys:G}),W),stripBOM=W=>(W.charCodeAt(0)===65279&&(W=W.slice(1)),W),inherits=(W,O,U,G)=>{W.prototype=Object.create(O.prototype,G),W.prototype.constructor=W,Object.defineProperty(W,"super",{value:O.prototype}),U&&Object.assign(W.prototype,U)},toFlatObject=(W,O,U,G)=>{let Y,K,J;const X={};if(O=O||{},W==null)return O;do{for(Y=Object.getOwnPropertyNames(W),K=Y.length;K-- >0;)J=Y[K],(!G||G(J,W,O))&&!X[J]&&(O[J]=W[J],X[J]=!0);W=U!==!1&&getPrototypeOf(W)}while(W&&(!U||U(W,O))&&W!==Object.prototype);return O},endsWith=(W,O,U)=>{W=String(W),(U===void 0||U>W.length)&&(U=W.length),U-=O.length;const G=W.indexOf(O,U);return G!==-1&&G===U},toArray=W=>{if(!W)return null;if(isArray(W))return W;let O=W.length;if(!isNumber(O))return null;const U=new Array(O);for(;O-- >0;)U[O]=W[O];return U},isTypedArray=(W=>O=>W&&O instanceof W)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(W,O)=>{const G=(W&&W[Symbol.iterator]).call(W);let Y;for(;(Y=G.next())&&!Y.done;){const K=Y.value;O.call(W,K[0],K[1])}},matchAll=(W,O)=>{let U;const G=[];for(;(U=W.exec(O))!==null;)G.push(U);return G},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=W=>W.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(U,G,Y){return G.toUpperCase()+Y}),hasOwnProperty=(({hasOwnProperty:W})=>(O,U)=>W.call(O,U))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(W,O)=>{const U=Object.getOwnPropertyDescriptors(W),G={};forEach(U,(Y,K)=>{let J;(J=O(Y,K,W))!==!1&&(G[K]=J||Y)}),Object.defineProperties(W,G)},freezeMethods=W=>{reduceDescriptors(W,(O,U)=>{if(isFunction(W)&&["arguments","caller","callee"].indexOf(U)!==-1)return!1;const G=W[U];if(isFunction(G)){if(O.enumerable=!1,"writable"in O){O.writable=!1;return}O.set||(O.set=()=>{throw Error("Can not rewrite read-only method '"+U+"'")})}})},toObjectSet=(W,O)=>{const U={},G=Y=>{Y.forEach(K=>{U[K]=!0})};return isArray(W)?G(W):G(String(W).split(O)),U},noop=()=>{},toFiniteNumber=(W,O)=>W!=null&&Number.isFinite(W=+W)?W:O,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(W=16,O=ALPHABET.ALPHA_DIGIT)=>{let U="";const{length:G}=O;for(;W--;)U+=O[Math.random()*G|0];return U};function isSpecCompliantForm(W){return!!(W&&isFunction(W.append)&&W[Symbol.toStringTag]==="FormData"&&W[Symbol.iterator])}const toJSONObject=W=>{const O=new Array(10),U=(G,Y)=>{if(isObject(G)){if(O.indexOf(G)>=0)return;if(!("toJSON"in G)){O[Y]=G;const K=isArray(G)?[]:{};return forEach(G,(J,X)=>{const ie=U(J,Y+1);!isUndefined(ie)&&(K[X]=ie)}),O[Y]=void 0,K}}return G};return U(W,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=W=>W&&(isObject(W)||isFunction(W))&&isFunction(W.then)&&isFunction(W.catch),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(W,O,U,G,Y){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=W,this.name="AxiosError",O&&(this.code=O),U&&(this.config=U),G&&(this.request=G),Y&&(this.response=Y)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(W=>{descriptors[W]={value:W}}),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(W,O,U,G,Y,K)=>{const J=Object.create(prototype$1);return utils$1.toFlatObject(W,J,function(ie){return ie!==Error.prototype},X=>X!=="isAxiosError"),AxiosError.call(J,W.message,O,U,G,Y),J.cause=W,J.name=W.name,K&&Object.assign(J,K),J};const httpAdapter=null;function isVisitable(W){return utils$1.isPlainObject(W)||utils$1.isArray(W)}function removeBrackets(W){return utils$1.endsWith(W,"[]")?W.slice(0,-2):W}function renderKey(W,O,U){return W?W.concat(O).map(function(Y,K){return Y=removeBrackets(Y),!U&&K?"["+Y+"]":Y}).join(U?".":""):O}function isFlatArray(W){return utils$1.isArray(W)&&!W.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(O){return/^is[A-Z]/.test(O)});function toFormData(W,O,U){if(!utils$1.isObject(W))throw new TypeError("target must be an object");O=O||new FormData,U=utils$1.toFlatObject(U,{metaTokens:!0,dots:!1,indexes:!1},!1,function(oe,re){return!utils$1.isUndefined(re[oe])});const G=U.metaTokens,Y=U.visitor||ne,K=U.dots,J=U.indexes,ie=(U.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(O);if(!utils$1.isFunction(Y))throw new TypeError("visitor must be a function");function ee(le){if(le===null)return"";if(utils$1.isDate(le))return le.toISOString();if(!ie&&utils$1.isBlob(le))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(le)||utils$1.isTypedArray(le)?ie&&typeof Blob=="function"?new Blob([le]):Buffer.from(le):le}function ne(le,oe,re){let ae=le;if(le&&!re&&typeof le=="object"){if(utils$1.endsWith(oe,"{}"))oe=G?oe:oe.slice(0,-2),le=JSON.stringify(le);else if(utils$1.isArray(le)&&isFlatArray(le)||(utils$1.isFileList(le)||utils$1.endsWith(oe,"[]"))&&(ae=utils$1.toArray(le)))return oe=removeBrackets(oe),ae.forEach(function(ue,de){!(utils$1.isUndefined(ue)||ue===null)&&O.append(J===!0?renderKey([oe],de,K):J===null?oe:oe+"[]",ee(ue))}),!1}return isVisitable(le)?!0:(O.append(renderKey(re,oe,K),ee(le)),!1)}const Q=[],te=Object.assign(predicates,{defaultVisitor:ne,convertValue:ee,isVisitable});function se(le,oe){if(!utils$1.isUndefined(le)){if(Q.indexOf(le)!==-1)throw Error("Circular reference detected in "+oe.join("."));Q.push(le),utils$1.forEach(le,function(ae,ce){(!(utils$1.isUndefined(ae)||ae===null)&&Y.call(O,ae,utils$1.isString(ce)?ce.trim():ce,oe,te))===!0&&se(ae,oe?oe.concat(ce):[ce])}),Q.pop()}}if(!utils$1.isObject(W))throw new TypeError("data must be an object");return se(W),O}function encode$1(W){const O={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(W).replace(/[!'()~]|%20|%00/g,function(G){return O[G]})}function AxiosURLSearchParams(W,O){this._pairs=[],W&&toFormData(W,this,O)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(O,U){this._pairs.push([O,U])},prototype.toString=function(O){const U=O?function(G){return O.call(this,G,encode$1)}:encode$1;return this._pairs.map(function(Y){return U(Y[0])+"="+U(Y[1])},"").join("&")};function encode(W){return encodeURIComponent(W).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(W,O,U){if(!O)return W;const G=U&&U.encode||encode,Y=U&&U.serialize;let K;if(Y?K=Y(O,U):K=utils$1.isURLSearchParams(O)?O.toString():new AxiosURLSearchParams(O,U).toString(G),K){const J=W.indexOf("#");J!==-1&&(W=W.slice(0,J)),W+=(W.indexOf("?")===-1?"?":"&")+K}return W}class InterceptorManager{constructor(){this.handlers=[]}use(O,U,G){return this.handlers.push({fulfilled:O,rejected:U,synchronous:G?G.synchronous:!1,runWhen:G?G.runWhen:null}),this.handlers.length-1}eject(O){this.handlers[O]&&(this.handlers[O]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(O){utils$1.forEach(this.handlers,function(G){G!==null&&O(G)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(W=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(W)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(W,O){return toFormData(W,new platform.classes.URLSearchParams,Object.assign({visitor:function(U,G,Y,K){return platform.isNode&&utils$1.isBuffer(U)?(this.append(G,U.toString("base64")),!1):K.defaultVisitor.apply(this,arguments)}},O))}function parsePropPath(W){return utils$1.matchAll(/\w+|\[(\w*)]/g,W).map(O=>O[0]==="[]"?"":O[1]||O[0])}function arrayToObject(W){const O={},U=Object.keys(W);let G;const Y=U.length;let K;for(G=0;G<Y;G++)K=U[G],O[K]=W[K];return O}function formDataToJSON(W){function O(U,G,Y,K){let J=U[K++];if(J==="__proto__")return!0;const X=Number.isFinite(+J),ie=K>=U.length;return J=!J&&utils$1.isArray(Y)?Y.length:J,ie?(utils$1.hasOwnProp(Y,J)?Y[J]=[Y[J],G]:Y[J]=G,!X):((!Y[J]||!utils$1.isObject(Y[J]))&&(Y[J]=[]),O(U,G,Y[J],K)&&utils$1.isArray(Y[J])&&(Y[J]=arrayToObject(Y[J])),!X)}if(utils$1.isFormData(W)&&utils$1.isFunction(W.entries)){const U={};return utils$1.forEachEntry(W,(G,Y)=>{O(parsePropPath(G),Y,U,0)}),U}return null}function stringifySafely(W,O,U){if(utils$1.isString(W))try{return(O||JSON.parse)(W),utils$1.trim(W)}catch(G){if(G.name!=="SyntaxError")throw G}return(U||JSON.stringify)(W)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(O,U){const G=U.getContentType()||"",Y=G.indexOf("application/json")>-1,K=utils$1.isObject(O);if(K&&utils$1.isHTMLForm(O)&&(O=new FormData(O)),utils$1.isFormData(O))return Y?JSON.stringify(formDataToJSON(O)):O;if(utils$1.isArrayBuffer(O)||utils$1.isBuffer(O)||utils$1.isStream(O)||utils$1.isFile(O)||utils$1.isBlob(O)||utils$1.isReadableStream(O))return O;if(utils$1.isArrayBufferView(O))return O.buffer;if(utils$1.isURLSearchParams(O))return U.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),O.toString();let X;if(K){if(G.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(O,this.formSerializer).toString();if((X=utils$1.isFileList(O))||G.indexOf("multipart/form-data")>-1){const ie=this.env&&this.env.FormData;return toFormData(X?{"files[]":O}:O,ie&&new ie,this.formSerializer)}}return K||Y?(U.setContentType("application/json",!1),stringifySafely(O)):O}],transformResponse:[function(O){const U=this.transitional||defaults.transitional,G=U&&U.forcedJSONParsing,Y=this.responseType==="json";if(utils$1.isResponse(O)||utils$1.isReadableStream(O))return O;if(O&&utils$1.isString(O)&&(G&&!this.responseType||Y)){const J=!(U&&U.silentJSONParsing)&&Y;try{return JSON.parse(O)}catch(X){if(J)throw X.name==="SyntaxError"?AxiosError.from(X,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):X}}return O}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(O){return O>=200&&O<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],W=>{defaults.headers[W]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=W=>{const O={};let U,G,Y;return W&&W.split(`
172
- `).forEach(function(J){Y=J.indexOf(":"),U=J.substring(0,Y).trim().toLowerCase(),G=J.substring(Y+1).trim(),!(!U||O[U]&&ignoreDuplicateOf[U])&&(U==="set-cookie"?O[U]?O[U].push(G):O[U]=[G]:O[U]=O[U]?O[U]+", "+G:G)}),O},$internals=Symbol("internals");function normalizeHeader(W){return W&&String(W).trim().toLowerCase()}function normalizeValue(W){return W===!1||W==null?W:utils$1.isArray(W)?W.map(normalizeValue):String(W)}function parseTokens(W){const O=Object.create(null),U=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let G;for(;G=U.exec(W);)O[G[1]]=G[2];return O}const isValidHeaderName=W=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(W.trim());function matchHeaderValue(W,O,U,G,Y){if(utils$1.isFunction(G))return G.call(this,O,U);if(Y&&(O=U),!!utils$1.isString(O)){if(utils$1.isString(G))return O.indexOf(G)!==-1;if(utils$1.isRegExp(G))return G.test(O)}}function formatHeader(W){return W.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(O,U,G)=>U.toUpperCase()+G)}function buildAccessors(W,O){const U=utils$1.toCamelCase(" "+O);["get","set","has"].forEach(G=>{Object.defineProperty(W,G+U,{value:function(Y,K,J){return this[G].call(this,O,Y,K,J)},configurable:!0})})}class AxiosHeaders{constructor(O){O&&this.set(O)}set(O,U,G){const Y=this;function K(X,ie,ee){const ne=normalizeHeader(ie);if(!ne)throw new Error("header name must be a non-empty string");const Q=utils$1.findKey(Y,ne);(!Q||Y[Q]===void 0||ee===!0||ee===void 0&&Y[Q]!==!1)&&(Y[Q||ie]=normalizeValue(X))}const J=(X,ie)=>utils$1.forEach(X,(ee,ne)=>K(ee,ne,ie));if(utils$1.isPlainObject(O)||O instanceof this.constructor)J(O,U);else if(utils$1.isString(O)&&(O=O.trim())&&!isValidHeaderName(O))J(parseHeaders(O),U);else if(utils$1.isHeaders(O))for(const[X,ie]of O.entries())K(ie,X,G);else O!=null&&K(U,O,G);return this}get(O,U){if(O=normalizeHeader(O),O){const G=utils$1.findKey(this,O);if(G){const Y=this[G];if(!U)return Y;if(U===!0)return parseTokens(Y);if(utils$1.isFunction(U))return U.call(this,Y,G);if(utils$1.isRegExp(U))return U.exec(Y);throw new TypeError("parser must be boolean|regexp|function")}}}has(O,U){if(O=normalizeHeader(O),O){const G=utils$1.findKey(this,O);return!!(G&&this[G]!==void 0&&(!U||matchHeaderValue(this,this[G],G,U)))}return!1}delete(O,U){const G=this;let Y=!1;function K(J){if(J=normalizeHeader(J),J){const X=utils$1.findKey(G,J);X&&(!U||matchHeaderValue(G,G[X],X,U))&&(delete G[X],Y=!0)}}return utils$1.isArray(O)?O.forEach(K):K(O),Y}clear(O){const U=Object.keys(this);let G=U.length,Y=!1;for(;G--;){const K=U[G];(!O||matchHeaderValue(this,this[K],K,O,!0))&&(delete this[K],Y=!0)}return Y}normalize(O){const U=this,G={};return utils$1.forEach(this,(Y,K)=>{const J=utils$1.findKey(G,K);if(J){U[J]=normalizeValue(Y),delete U[K];return}const X=O?formatHeader(K):String(K).trim();X!==K&&delete U[K],U[X]=normalizeValue(Y),G[X]=!0}),this}concat(...O){return this.constructor.concat(this,...O)}toJSON(O){const U=Object.create(null);return utils$1.forEach(this,(G,Y)=>{G!=null&&G!==!1&&(U[Y]=O&&utils$1.isArray(G)?G.join(", "):G)}),U}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([O,U])=>O+": "+U).join(`
173
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(O){return O instanceof this?O:new this(O)}static concat(O,...U){const G=new this(O);return U.forEach(Y=>G.set(Y)),G}static accessor(O){const G=(this[$internals]=this[$internals]={accessors:{}}).accessors,Y=this.prototype;function K(J){const X=normalizeHeader(J);G[X]||(buildAccessors(Y,J),G[X]=!0)}return utils$1.isArray(O)?O.forEach(K):K(O),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:W},O)=>{let U=O[0].toUpperCase()+O.slice(1);return{get:()=>W,set(G){this[U]=G}}}),utils$1.freezeMethods(AxiosHeaders);function transformData(W,O){const U=this||defaults,G=O||U,Y=AxiosHeaders.from(G.headers);let K=G.data;return utils$1.forEach(W,function(X){K=X.call(U,K,Y.normalize(),O?O.status:void 0)}),Y.normalize(),K}function isCancel(W){return!!(W&&W.__CANCEL__)}function CanceledError(W,O,U){AxiosError.call(this,W??"canceled",AxiosError.ERR_CANCELED,O,U),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(W,O,U){const G=U.config.validateStatus;!U.status||!G||G(U.status)?W(U):O(new AxiosError("Request failed with status code "+U.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(U.status/100)-4],U.config,U.request,U))}function parseProtocol(W){const O=/^([-+\w]{1,25})(:?\/\/|:)/.exec(W);return O&&O[1]||""}function speedometer(W,O){W=W||10;const U=new Array(W),G=new Array(W);let Y=0,K=0,J;return O=O!==void 0?O:1e3,function(ie){const ee=Date.now(),ne=G[K];J||(J=ee),U[Y]=ie,G[Y]=ee;let Q=K,te=0;for(;Q!==Y;)te+=U[Q++],Q=Q%W;if(Y=(Y+1)%W,Y===K&&(K=(K+1)%W),ee-J<O)return;const se=ne&&ee-ne;return se?Math.round(te*1e3/se):void 0}}function throttle(W,O){let U=0;const G=1e3/O;let Y=null;return function(){const J=this===!0,X=Date.now();if(J||X-U>G)return Y&&(clearTimeout(Y),Y=null),U=X,W.apply(null,arguments);Y||(Y=setTimeout(()=>(Y=null,U=Date.now(),W.apply(null,arguments)),G-(X-U)))}}const progressEventReducer=(W,O,U=3)=>{let G=0;const Y=speedometer(50,250);return throttle(K=>{const J=K.loaded,X=K.lengthComputable?K.total:void 0,ie=J-G,ee=Y(ie),ne=J<=X;G=J;const Q={loaded:J,total:X,progress:X?J/X:void 0,bytes:ie,rate:ee||void 0,estimated:ee&&X&&ne?(X-J)/ee:void 0,event:K,lengthComputable:X!=null};Q[O?"download":"upload"]=!0,W(Q)},U)},isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const O=/(msie|trident)/i.test(navigator.userAgent),U=document.createElement("a");let G;function Y(K){let J=K;return O&&(U.setAttribute("href",J),J=U.href),U.setAttribute("href",J),{href:U.href,protocol:U.protocol?U.protocol.replace(/:$/,""):"",host:U.host,search:U.search?U.search.replace(/^\?/,""):"",hash:U.hash?U.hash.replace(/^#/,""):"",hostname:U.hostname,port:U.port,pathname:U.pathname.charAt(0)==="/"?U.pathname:"/"+U.pathname}}return G=Y(window.location.href),function(J){const X=utils$1.isString(J)?Y(J):J;return X.protocol===G.protocol&&X.host===G.host}}():function(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(W,O,U,G,Y,K){const J=[W+"="+encodeURIComponent(O)];utils$1.isNumber(U)&&J.push("expires="+new Date(U).toGMTString()),utils$1.isString(G)&&J.push("path="+G),utils$1.isString(Y)&&J.push("domain="+Y),K===!0&&J.push("secure"),document.cookie=J.join("; ")},read(W){const O=document.cookie.match(new RegExp("(^|;\\s*)("+W+")=([^;]*)"));return O?decodeURIComponent(O[3]):null},remove(W){this.write(W,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(W){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(W)}function combineURLs(W,O){return O?W.replace(/\/?\/$/,"")+"/"+O.replace(/^\/+/,""):W}function buildFullPath(W,O){return W&&!isAbsoluteURL(O)?combineURLs(W,O):O}const headersToObject=W=>W instanceof AxiosHeaders?{...W}:W;function mergeConfig(W,O){O=O||{};const U={};function G(ee,ne,Q){return utils$1.isPlainObject(ee)&&utils$1.isPlainObject(ne)?utils$1.merge.call({caseless:Q},ee,ne):utils$1.isPlainObject(ne)?utils$1.merge({},ne):utils$1.isArray(ne)?ne.slice():ne}function Y(ee,ne,Q){if(utils$1.isUndefined(ne)){if(!utils$1.isUndefined(ee))return G(void 0,ee,Q)}else return G(ee,ne,Q)}function K(ee,ne){if(!utils$1.isUndefined(ne))return G(void 0,ne)}function J(ee,ne){if(utils$1.isUndefined(ne)){if(!utils$1.isUndefined(ee))return G(void 0,ee)}else return G(void 0,ne)}function X(ee,ne,Q){if(Q in O)return G(ee,ne);if(Q in W)return G(void 0,ee)}const ie={url:K,method:K,data:K,baseURL:J,transformRequest:J,transformResponse:J,paramsSerializer:J,timeout:J,timeoutMessage:J,withCredentials:J,withXSRFToken:J,adapter:J,responseType:J,xsrfCookieName:J,xsrfHeaderName:J,onUploadProgress:J,onDownloadProgress:J,decompress:J,maxContentLength:J,maxBodyLength:J,beforeRedirect:J,transport:J,httpAgent:J,httpsAgent:J,cancelToken:J,socketPath:J,responseEncoding:J,validateStatus:X,headers:(ee,ne)=>Y(headersToObject(ee),headersToObject(ne),!0)};return utils$1.forEach(Object.keys(Object.assign({},W,O)),function(ne){const Q=ie[ne]||Y,te=Q(W[ne],O[ne],ne);utils$1.isUndefined(te)&&Q!==X||(U[ne]=te)}),U}const resolveConfig=W=>{const O=mergeConfig({},W);let{data:U,withXSRFToken:G,xsrfHeaderName:Y,xsrfCookieName:K,headers:J,auth:X}=O;O.headers=J=AxiosHeaders.from(J),O.url=buildURL(buildFullPath(O.baseURL,O.url),W.params,W.paramsSerializer),X&&J.set("Authorization","Basic "+btoa((X.username||"")+":"+(X.password?unescape(encodeURIComponent(X.password)):"")));let ie;if(utils$1.isFormData(U)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)J.setContentType(void 0);else if((ie=J.getContentType())!==!1){const[ee,...ne]=ie?ie.split(";").map(Q=>Q.trim()).filter(Boolean):[];J.setContentType([ee||"multipart/form-data",...ne].join("; "))}}if(platform.hasStandardBrowserEnv&&(G&&utils$1.isFunction(G)&&(G=G(O)),G||G!==!1&&isURLSameOrigin(O.url))){const ee=Y&&K&&cookies.read(K);ee&&J.set(Y,ee)}return O},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(W){return new Promise(function(U,G){const Y=resolveConfig(W);let K=Y.data;const J=AxiosHeaders.from(Y.headers).normalize();let{responseType:X}=Y,ie;function ee(){Y.cancelToken&&Y.cancelToken.unsubscribe(ie),Y.signal&&Y.signal.removeEventListener("abort",ie)}let ne=new XMLHttpRequest;ne.open(Y.method.toUpperCase(),Y.url,!0),ne.timeout=Y.timeout;function Q(){if(!ne)return;const se=AxiosHeaders.from("getAllResponseHeaders"in ne&&ne.getAllResponseHeaders()),oe={data:!X||X==="text"||X==="json"?ne.responseText:ne.response,status:ne.status,statusText:ne.statusText,headers:se,config:W,request:ne};settle(function(ae){U(ae),ee()},function(ae){G(ae),ee()},oe),ne=null}"onloadend"in ne?ne.onloadend=Q:ne.onreadystatechange=function(){!ne||ne.readyState!==4||ne.status===0&&!(ne.responseURL&&ne.responseURL.indexOf("file:")===0)||setTimeout(Q)},ne.onabort=function(){ne&&(G(new AxiosError("Request aborted",AxiosError.ECONNABORTED,Y,ne)),ne=null)},ne.onerror=function(){G(new AxiosError("Network Error",AxiosError.ERR_NETWORK,Y,ne)),ne=null},ne.ontimeout=function(){let le=Y.timeout?"timeout of "+Y.timeout+"ms exceeded":"timeout exceeded";const oe=Y.transitional||transitionalDefaults;Y.timeoutErrorMessage&&(le=Y.timeoutErrorMessage),G(new AxiosError(le,oe.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,Y,ne)),ne=null},K===void 0&&J.setContentType(null),"setRequestHeader"in ne&&utils$1.forEach(J.toJSON(),function(le,oe){ne.setRequestHeader(oe,le)}),utils$1.isUndefined(Y.withCredentials)||(ne.withCredentials=!!Y.withCredentials),X&&X!=="json"&&(ne.responseType=Y.responseType),typeof Y.onDownloadProgress=="function"&&ne.addEventListener("progress",progressEventReducer(Y.onDownloadProgress,!0)),typeof Y.onUploadProgress=="function"&&ne.upload&&ne.upload.addEventListener("progress",progressEventReducer(Y.onUploadProgress)),(Y.cancelToken||Y.signal)&&(ie=se=>{ne&&(G(!se||se.type?new CanceledError(null,W,ne):se),ne.abort(),ne=null)},Y.cancelToken&&Y.cancelToken.subscribe(ie),Y.signal&&(Y.signal.aborted?ie():Y.signal.addEventListener("abort",ie)));const te=parseProtocol(Y.url);if(te&&platform.protocols.indexOf(te)===-1){G(new AxiosError("Unsupported protocol "+te+":",AxiosError.ERR_BAD_REQUEST,W));return}ne.send(K||null)})},composeSignals=(W,O)=>{let U=new AbortController,G;const Y=function(ie){if(!G){G=!0,J();const ee=ie instanceof Error?ie:this.reason;U.abort(ee instanceof AxiosError?ee:new CanceledError(ee instanceof Error?ee.message:ee))}};let K=O&&setTimeout(()=>{Y(new AxiosError(`timeout ${O} of ms exceeded`,AxiosError.ETIMEDOUT))},O);const J=()=>{W&&(K&&clearTimeout(K),K=null,W.forEach(ie=>{ie&&(ie.removeEventListener?ie.removeEventListener("abort",Y):ie.unsubscribe(Y))}),W=null)};W.forEach(ie=>ie&&ie.addEventListener&&ie.addEventListener("abort",Y));const{signal:X}=U;return X.unsubscribe=J,[X,()=>{K&&clearTimeout(K),K=null}]},streamChunk=function*(W,O){let U=W.byteLength;if(!O||U<O){yield W;return}let G=0,Y;for(;G<U;)Y=G+O,yield W.slice(G,Y),G=Y},readBytes=async function*(W,O,U){for await(const G of W)yield*streamChunk(ArrayBuffer.isView(G)?G:await U(String(G)),O)},trackStream=(W,O,U,G,Y)=>{const K=readBytes(W,O,Y);let J=0;return new ReadableStream({type:"bytes",async pull(X){const{done:ie,value:ee}=await K.next();if(ie){X.close(),G();return}let ne=ee.byteLength;U&&U(J+=ne),X.enqueue(new Uint8Array(ee))},cancel(X){return G(X),K.return()}},{highWaterMark:2})},fetchProgressDecorator=(W,O)=>{const U=W!=null;return G=>setTimeout(()=>O({lengthComputable:U,total:W,loaded:G}))},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(W=>O=>W.encode(O))(new TextEncoder):async W=>new Uint8Array(await new Response(W).arrayBuffer())),supportsRequestStream=isReadableStreamSupported&&(()=>{let W=!1;const O=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return W=!0,"half"}}).headers.has("Content-Type");return W&&!O})(),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&!!(()=>{try{return utils$1.isReadableStream(new Response("").body)}catch{}})(),resolvers={stream:supportsResponseStream&&(W=>W.body)};isFetchSupported&&(W=>{["text","arrayBuffer","blob","formData","stream"].forEach(O=>{!resolvers[O]&&(resolvers[O]=utils$1.isFunction(W[O])?U=>U[O]():(U,G)=>{throw new AxiosError(`Response type '${O}' is not supported`,AxiosError.ERR_NOT_SUPPORT,G)})})})(new Response);const getBodyLength=async W=>{if(W==null)return 0;if(utils$1.isBlob(W))return W.size;if(utils$1.isSpecCompliantForm(W))return(await new Request(W).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(W))return W.byteLength;if(utils$1.isURLSearchParams(W)&&(W=W+""),utils$1.isString(W))return(await encodeText(W)).byteLength},resolveBodyLength=async(W,O)=>{const U=utils$1.toFiniteNumber(W.getContentLength());return U??getBodyLength(O)},fetchAdapter=isFetchSupported&&(async W=>{let{url:O,method:U,data:G,signal:Y,cancelToken:K,timeout:J,onDownloadProgress:X,onUploadProgress:ie,responseType:ee,headers:ne,withCredentials:Q="same-origin",fetchOptions:te}=resolveConfig(W);ee=ee?(ee+"").toLowerCase():"text";let[se,le]=Y||K||J?composeSignals([Y,K],J):[],oe,re;const ae=()=>{!oe&&setTimeout(()=>{se&&se.unsubscribe()}),oe=!0};let ce;try{if(ie&&supportsRequestStream&&U!=="get"&&U!=="head"&&(ce=await resolveBodyLength(ne,G))!==0){let me=new Request(O,{method:"POST",body:G,duplex:"half"}),ge;utils$1.isFormData(G)&&(ge=me.headers.get("content-type"))&&ne.setContentType(ge),me.body&&(G=trackStream(me.body,DEFAULT_CHUNK_SIZE,fetchProgressDecorator(ce,progressEventReducer(ie)),null,encodeText))}utils$1.isString(Q)||(Q=Q?"cors":"omit"),re=new Request(O,{...te,signal:se,method:U.toUpperCase(),headers:ne.normalize().toJSON(),body:G,duplex:"half",withCredentials:Q});let ue=await fetch(re);const de=supportsResponseStream&&(ee==="stream"||ee==="response");if(supportsResponseStream&&(X||de)){const me={};["status","statusText","headers"].forEach(we=>{me[we]=ue[we]});const ge=utils$1.toFiniteNumber(ue.headers.get("content-length"));ue=new Response(trackStream(ue.body,DEFAULT_CHUNK_SIZE,X&&fetchProgressDecorator(ge,progressEventReducer(X,!0)),de&&ae,encodeText),me)}ee=ee||"text";let he=await resolvers[utils$1.findKey(resolvers,ee)||"text"](ue,W);return!de&&ae(),le&&le(),await new Promise((me,ge)=>{settle(me,ge,{data:he,headers:AxiosHeaders.from(ue.headers),status:ue.status,statusText:ue.statusText,config:W,request:re})})}catch(ue){throw ae(),ue&&ue.name==="TypeError"&&/fetch/i.test(ue.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,W,re),{cause:ue.cause||ue}):AxiosError.from(ue,ue&&ue.code,W,re)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(W,O)=>{if(W){try{Object.defineProperty(W,"name",{value:O})}catch{}Object.defineProperty(W,"adapterName",{value:O})}});const renderReason=W=>`- ${W}`,isResolvedHandle=W=>utils$1.isFunction(W)||W===null||W===!1,adapters={getAdapter:W=>{W=utils$1.isArray(W)?W:[W];const{length:O}=W;let U,G;const Y={};for(let K=0;K<O;K++){U=W[K];let J;if(G=U,!isResolvedHandle(U)&&(G=knownAdapters[(J=String(U)).toLowerCase()],G===void 0))throw new AxiosError(`Unknown adapter '${J}'`);if(G)break;Y[J||"#"+K]=G}if(!G){const K=Object.entries(Y).map(([X,ie])=>`adapter ${X} `+(ie===!1?"is not supported by the environment":"is not available in the build"));let J=O?K.length>1?`since :
184
+ }`)(W)},createBroker=()=>new Broker;function bind(W,O){return function(){return W.apply(O,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(W=>O=>{const U=toString.call(O);return W[U]||(W[U]=U.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=W=>(W=W.toLowerCase(),O=>kindOf(O)===W),typeOfTest=W=>O=>typeof O===W,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(W){return W!==null&&!isUndefined(W)&&W.constructor!==null&&!isUndefined(W.constructor)&&isFunction(W.constructor.isBuffer)&&W.constructor.isBuffer(W)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(W){let O;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?O=ArrayBuffer.isView(W):O=W&&W.buffer&&isArrayBuffer(W.buffer),O}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=W=>W!==null&&typeof W=="object",isBoolean=W=>W===!0||W===!1,isPlainObject=W=>{if(kindOf(W)!=="object")return!1;const O=getPrototypeOf(W);return(O===null||O===Object.prototype||Object.getPrototypeOf(O)===null)&&!(Symbol.toStringTag in W)&&!(Symbol.iterator in W)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=W=>isObject(W)&&isFunction(W.pipe),isFormData=W=>{let O;return W&&(typeof FormData=="function"&&W instanceof FormData||isFunction(W.append)&&((O=kindOf(W))==="formdata"||O==="object"&&isFunction(W.toString)&&W.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=W=>W.trim?W.trim():W.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(W,O,{allOwnKeys:U=!1}={}){if(W===null||typeof W>"u")return;let G,Y;if(typeof W!="object"&&(W=[W]),isArray(W))for(G=0,Y=W.length;G<Y;G++)O.call(null,W[G],G,W);else{const K=U?Object.getOwnPropertyNames(W):Object.keys(W),J=K.length;let X;for(G=0;G<J;G++)X=K[G],O.call(null,W[X],X,W)}}function findKey(W,O){O=O.toLowerCase();const U=Object.keys(W);let G=U.length,Y;for(;G-- >0;)if(Y=U[G],O===Y.toLowerCase())return Y;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=W=>!isUndefined(W)&&W!==_global;function merge(){const{caseless:W}=isContextDefined(this)&&this||{},O={},U=(G,Y)=>{const K=W&&findKey(O,Y)||Y;isPlainObject(O[K])&&isPlainObject(G)?O[K]=merge(O[K],G):isPlainObject(G)?O[K]=merge({},G):isArray(G)?O[K]=G.slice():O[K]=G};for(let G=0,Y=arguments.length;G<Y;G++)arguments[G]&&forEach(arguments[G],U);return O}const extend=(W,O,U,{allOwnKeys:G}={})=>(forEach(O,(Y,K)=>{U&&isFunction(Y)?W[K]=bind(Y,U):W[K]=Y},{allOwnKeys:G}),W),stripBOM=W=>(W.charCodeAt(0)===65279&&(W=W.slice(1)),W),inherits=(W,O,U,G)=>{W.prototype=Object.create(O.prototype,G),W.prototype.constructor=W,Object.defineProperty(W,"super",{value:O.prototype}),U&&Object.assign(W.prototype,U)},toFlatObject=(W,O,U,G)=>{let Y,K,J;const X={};if(O=O||{},W==null)return O;do{for(Y=Object.getOwnPropertyNames(W),K=Y.length;K-- >0;)J=Y[K],(!G||G(J,W,O))&&!X[J]&&(O[J]=W[J],X[J]=!0);W=U!==!1&&getPrototypeOf(W)}while(W&&(!U||U(W,O))&&W!==Object.prototype);return O},endsWith=(W,O,U)=>{W=String(W),(U===void 0||U>W.length)&&(U=W.length),U-=O.length;const G=W.indexOf(O,U);return G!==-1&&G===U},toArray=W=>{if(!W)return null;if(isArray(W))return W;let O=W.length;if(!isNumber(O))return null;const U=new Array(O);for(;O-- >0;)U[O]=W[O];return U},isTypedArray=(W=>O=>W&&O instanceof W)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(W,O)=>{const G=(W&&W[Symbol.iterator]).call(W);let Y;for(;(Y=G.next())&&!Y.done;){const K=Y.value;O.call(W,K[0],K[1])}},matchAll=(W,O)=>{let U;const G=[];for(;(U=W.exec(O))!==null;)G.push(U);return G},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=W=>W.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(U,G,Y){return G.toUpperCase()+Y}),hasOwnProperty=(({hasOwnProperty:W})=>(O,U)=>W.call(O,U))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(W,O)=>{const U=Object.getOwnPropertyDescriptors(W),G={};forEach(U,(Y,K)=>{let J;(J=O(Y,K,W))!==!1&&(G[K]=J||Y)}),Object.defineProperties(W,G)},freezeMethods=W=>{reduceDescriptors(W,(O,U)=>{if(isFunction(W)&&["arguments","caller","callee"].indexOf(U)!==-1)return!1;const G=W[U];if(isFunction(G)){if(O.enumerable=!1,"writable"in O){O.writable=!1;return}O.set||(O.set=()=>{throw Error("Can not rewrite read-only method '"+U+"'")})}})},toObjectSet=(W,O)=>{const U={},G=Y=>{Y.forEach(K=>{U[K]=!0})};return isArray(W)?G(W):G(String(W).split(O)),U},noop=()=>{},toFiniteNumber=(W,O)=>W!=null&&Number.isFinite(W=+W)?W:O,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(W=16,O=ALPHABET.ALPHA_DIGIT)=>{let U="";const{length:G}=O;for(;W--;)U+=O[Math.random()*G|0];return U};function isSpecCompliantForm(W){return!!(W&&isFunction(W.append)&&W[Symbol.toStringTag]==="FormData"&&W[Symbol.iterator])}const toJSONObject=W=>{const O=new Array(10),U=(G,Y)=>{if(isObject(G)){if(O.indexOf(G)>=0)return;if(!("toJSON"in G)){O[Y]=G;const K=isArray(G)?[]:{};return forEach(G,(J,X)=>{const se=U(J,Y+1);!isUndefined(se)&&(K[X]=se)}),O[Y]=void 0,K}}return G};return U(W,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=W=>W&&(isObject(W)||isFunction(W))&&isFunction(W.then)&&isFunction(W.catch),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(W,O,U,G,Y){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=W,this.name="AxiosError",O&&(this.code=O),U&&(this.config=U),G&&(this.request=G),Y&&(this.response=Y)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(W=>{descriptors[W]={value:W}}),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(W,O,U,G,Y,K)=>{const J=Object.create(prototype$1);return utils$1.toFlatObject(W,J,function(se){return se!==Error.prototype},X=>X!=="isAxiosError"),AxiosError.call(J,W.message,O,U,G,Y),J.cause=W,J.name=W.name,K&&Object.assign(J,K),J};const httpAdapter=null;function isVisitable(W){return utils$1.isPlainObject(W)||utils$1.isArray(W)}function removeBrackets(W){return utils$1.endsWith(W,"[]")?W.slice(0,-2):W}function renderKey(W,O,U){return W?W.concat(O).map(function(Y,K){return Y=removeBrackets(Y),!U&&K?"["+Y+"]":Y}).join(U?".":""):O}function isFlatArray(W){return utils$1.isArray(W)&&!W.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(O){return/^is[A-Z]/.test(O)});function toFormData(W,O,U){if(!utils$1.isObject(W))throw new TypeError("target must be an object");O=O||new FormData,U=utils$1.toFlatObject(U,{metaTokens:!0,dots:!1,indexes:!1},!1,function(oe,re){return!utils$1.isUndefined(re[oe])});const G=U.metaTokens,Y=U.visitor||ne,K=U.dots,J=U.indexes,se=(U.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(O);if(!utils$1.isFunction(Y))throw new TypeError("visitor must be a function");function ee(le){if(le===null)return"";if(utils$1.isDate(le))return le.toISOString();if(!se&&utils$1.isBlob(le))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(le)||utils$1.isTypedArray(le)?se&&typeof Blob=="function"?new Blob([le]):Buffer.from(le):le}function ne(le,oe,re){let ae=le;if(le&&!re&&typeof le=="object"){if(utils$1.endsWith(oe,"{}"))oe=G?oe:oe.slice(0,-2),le=JSON.stringify(le);else if(utils$1.isArray(le)&&isFlatArray(le)||(utils$1.isFileList(le)||utils$1.endsWith(oe,"[]"))&&(ae=utils$1.toArray(le)))return oe=removeBrackets(oe),ae.forEach(function(ue,de){!(utils$1.isUndefined(ue)||ue===null)&&O.append(J===!0?renderKey([oe],de,K):J===null?oe:oe+"[]",ee(ue))}),!1}return isVisitable(le)?!0:(O.append(renderKey(re,oe,K),ee(le)),!1)}const Q=[],te=Object.assign(predicates,{defaultVisitor:ne,convertValue:ee,isVisitable});function ie(le,oe){if(!utils$1.isUndefined(le)){if(Q.indexOf(le)!==-1)throw Error("Circular reference detected in "+oe.join("."));Q.push(le),utils$1.forEach(le,function(ae,ce){(!(utils$1.isUndefined(ae)||ae===null)&&Y.call(O,ae,utils$1.isString(ce)?ce.trim():ce,oe,te))===!0&&ie(ae,oe?oe.concat(ce):[ce])}),Q.pop()}}if(!utils$1.isObject(W))throw new TypeError("data must be an object");return ie(W),O}function encode$1(W){const O={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(W).replace(/[!'()~]|%20|%00/g,function(G){return O[G]})}function AxiosURLSearchParams(W,O){this._pairs=[],W&&toFormData(W,this,O)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(O,U){this._pairs.push([O,U])},prototype.toString=function(O){const U=O?function(G){return O.call(this,G,encode$1)}:encode$1;return this._pairs.map(function(Y){return U(Y[0])+"="+U(Y[1])},"").join("&")};function encode(W){return encodeURIComponent(W).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(W,O,U){if(!O)return W;const G=U&&U.encode||encode,Y=U&&U.serialize;let K;if(Y?K=Y(O,U):K=utils$1.isURLSearchParams(O)?O.toString():new AxiosURLSearchParams(O,U).toString(G),K){const J=W.indexOf("#");J!==-1&&(W=W.slice(0,J)),W+=(W.indexOf("?")===-1?"?":"&")+K}return W}class InterceptorManager{constructor(){this.handlers=[]}use(O,U,G){return this.handlers.push({fulfilled:O,rejected:U,synchronous:G?G.synchronous:!1,runWhen:G?G.runWhen:null}),this.handlers.length-1}eject(O){this.handlers[O]&&(this.handlers[O]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(O){utils$1.forEach(this.handlers,function(G){G!==null&&O(G)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(W=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(W)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(W,O){return toFormData(W,new platform.classes.URLSearchParams,Object.assign({visitor:function(U,G,Y,K){return platform.isNode&&utils$1.isBuffer(U)?(this.append(G,U.toString("base64")),!1):K.defaultVisitor.apply(this,arguments)}},O))}function parsePropPath(W){return utils$1.matchAll(/\w+|\[(\w*)]/g,W).map(O=>O[0]==="[]"?"":O[1]||O[0])}function arrayToObject(W){const O={},U=Object.keys(W);let G;const Y=U.length;let K;for(G=0;G<Y;G++)K=U[G],O[K]=W[K];return O}function formDataToJSON(W){function O(U,G,Y,K){let J=U[K++];if(J==="__proto__")return!0;const X=Number.isFinite(+J),se=K>=U.length;return J=!J&&utils$1.isArray(Y)?Y.length:J,se?(utils$1.hasOwnProp(Y,J)?Y[J]=[Y[J],G]:Y[J]=G,!X):((!Y[J]||!utils$1.isObject(Y[J]))&&(Y[J]=[]),O(U,G,Y[J],K)&&utils$1.isArray(Y[J])&&(Y[J]=arrayToObject(Y[J])),!X)}if(utils$1.isFormData(W)&&utils$1.isFunction(W.entries)){const U={};return utils$1.forEachEntry(W,(G,Y)=>{O(parsePropPath(G),Y,U,0)}),U}return null}function stringifySafely(W,O,U){if(utils$1.isString(W))try{return(O||JSON.parse)(W),utils$1.trim(W)}catch(G){if(G.name!=="SyntaxError")throw G}return(U||JSON.stringify)(W)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(O,U){const G=U.getContentType()||"",Y=G.indexOf("application/json")>-1,K=utils$1.isObject(O);if(K&&utils$1.isHTMLForm(O)&&(O=new FormData(O)),utils$1.isFormData(O))return Y?JSON.stringify(formDataToJSON(O)):O;if(utils$1.isArrayBuffer(O)||utils$1.isBuffer(O)||utils$1.isStream(O)||utils$1.isFile(O)||utils$1.isBlob(O)||utils$1.isReadableStream(O))return O;if(utils$1.isArrayBufferView(O))return O.buffer;if(utils$1.isURLSearchParams(O))return U.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),O.toString();let X;if(K){if(G.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(O,this.formSerializer).toString();if((X=utils$1.isFileList(O))||G.indexOf("multipart/form-data")>-1){const se=this.env&&this.env.FormData;return toFormData(X?{"files[]":O}:O,se&&new se,this.formSerializer)}}return K||Y?(U.setContentType("application/json",!1),stringifySafely(O)):O}],transformResponse:[function(O){const U=this.transitional||defaults.transitional,G=U&&U.forcedJSONParsing,Y=this.responseType==="json";if(utils$1.isResponse(O)||utils$1.isReadableStream(O))return O;if(O&&utils$1.isString(O)&&(G&&!this.responseType||Y)){const J=!(U&&U.silentJSONParsing)&&Y;try{return JSON.parse(O)}catch(X){if(J)throw X.name==="SyntaxError"?AxiosError.from(X,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):X}}return O}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(O){return O>=200&&O<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],W=>{defaults.headers[W]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=W=>{const O={};let U,G,Y;return W&&W.split(`
185
+ `).forEach(function(J){Y=J.indexOf(":"),U=J.substring(0,Y).trim().toLowerCase(),G=J.substring(Y+1).trim(),!(!U||O[U]&&ignoreDuplicateOf[U])&&(U==="set-cookie"?O[U]?O[U].push(G):O[U]=[G]:O[U]=O[U]?O[U]+", "+G:G)}),O},$internals=Symbol("internals");function normalizeHeader(W){return W&&String(W).trim().toLowerCase()}function normalizeValue(W){return W===!1||W==null?W:utils$1.isArray(W)?W.map(normalizeValue):String(W)}function parseTokens(W){const O=Object.create(null),U=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let G;for(;G=U.exec(W);)O[G[1]]=G[2];return O}const isValidHeaderName=W=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(W.trim());function matchHeaderValue(W,O,U,G,Y){if(utils$1.isFunction(G))return G.call(this,O,U);if(Y&&(O=U),!!utils$1.isString(O)){if(utils$1.isString(G))return O.indexOf(G)!==-1;if(utils$1.isRegExp(G))return G.test(O)}}function formatHeader(W){return W.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(O,U,G)=>U.toUpperCase()+G)}function buildAccessors(W,O){const U=utils$1.toCamelCase(" "+O);["get","set","has"].forEach(G=>{Object.defineProperty(W,G+U,{value:function(Y,K,J){return this[G].call(this,O,Y,K,J)},configurable:!0})})}class AxiosHeaders{constructor(O){O&&this.set(O)}set(O,U,G){const Y=this;function K(X,se,ee){const ne=normalizeHeader(se);if(!ne)throw new Error("header name must be a non-empty string");const Q=utils$1.findKey(Y,ne);(!Q||Y[Q]===void 0||ee===!0||ee===void 0&&Y[Q]!==!1)&&(Y[Q||se]=normalizeValue(X))}const J=(X,se)=>utils$1.forEach(X,(ee,ne)=>K(ee,ne,se));if(utils$1.isPlainObject(O)||O instanceof this.constructor)J(O,U);else if(utils$1.isString(O)&&(O=O.trim())&&!isValidHeaderName(O))J(parseHeaders(O),U);else if(utils$1.isHeaders(O))for(const[X,se]of O.entries())K(se,X,G);else O!=null&&K(U,O,G);return this}get(O,U){if(O=normalizeHeader(O),O){const G=utils$1.findKey(this,O);if(G){const Y=this[G];if(!U)return Y;if(U===!0)return parseTokens(Y);if(utils$1.isFunction(U))return U.call(this,Y,G);if(utils$1.isRegExp(U))return U.exec(Y);throw new TypeError("parser must be boolean|regexp|function")}}}has(O,U){if(O=normalizeHeader(O),O){const G=utils$1.findKey(this,O);return!!(G&&this[G]!==void 0&&(!U||matchHeaderValue(this,this[G],G,U)))}return!1}delete(O,U){const G=this;let Y=!1;function K(J){if(J=normalizeHeader(J),J){const X=utils$1.findKey(G,J);X&&(!U||matchHeaderValue(G,G[X],X,U))&&(delete G[X],Y=!0)}}return utils$1.isArray(O)?O.forEach(K):K(O),Y}clear(O){const U=Object.keys(this);let G=U.length,Y=!1;for(;G--;){const K=U[G];(!O||matchHeaderValue(this,this[K],K,O,!0))&&(delete this[K],Y=!0)}return Y}normalize(O){const U=this,G={};return utils$1.forEach(this,(Y,K)=>{const J=utils$1.findKey(G,K);if(J){U[J]=normalizeValue(Y),delete U[K];return}const X=O?formatHeader(K):String(K).trim();X!==K&&delete U[K],U[X]=normalizeValue(Y),G[X]=!0}),this}concat(...O){return this.constructor.concat(this,...O)}toJSON(O){const U=Object.create(null);return utils$1.forEach(this,(G,Y)=>{G!=null&&G!==!1&&(U[Y]=O&&utils$1.isArray(G)?G.join(", "):G)}),U}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([O,U])=>O+": "+U).join(`
186
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(O){return O instanceof this?O:new this(O)}static concat(O,...U){const G=new this(O);return U.forEach(Y=>G.set(Y)),G}static accessor(O){const G=(this[$internals]=this[$internals]={accessors:{}}).accessors,Y=this.prototype;function K(J){const X=normalizeHeader(J);G[X]||(buildAccessors(Y,J),G[X]=!0)}return utils$1.isArray(O)?O.forEach(K):K(O),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:W},O)=>{let U=O[0].toUpperCase()+O.slice(1);return{get:()=>W,set(G){this[U]=G}}}),utils$1.freezeMethods(AxiosHeaders);function transformData(W,O){const U=this||defaults,G=O||U,Y=AxiosHeaders.from(G.headers);let K=G.data;return utils$1.forEach(W,function(X){K=X.call(U,K,Y.normalize(),O?O.status:void 0)}),Y.normalize(),K}function isCancel(W){return!!(W&&W.__CANCEL__)}function CanceledError(W,O,U){AxiosError.call(this,W??"canceled",AxiosError.ERR_CANCELED,O,U),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(W,O,U){const G=U.config.validateStatus;!U.status||!G||G(U.status)?W(U):O(new AxiosError("Request failed with status code "+U.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(U.status/100)-4],U.config,U.request,U))}function parseProtocol(W){const O=/^([-+\w]{1,25})(:?\/\/|:)/.exec(W);return O&&O[1]||""}function speedometer(W,O){W=W||10;const U=new Array(W),G=new Array(W);let Y=0,K=0,J;return O=O!==void 0?O:1e3,function(se){const ee=Date.now(),ne=G[K];J||(J=ee),U[Y]=se,G[Y]=ee;let Q=K,te=0;for(;Q!==Y;)te+=U[Q++],Q=Q%W;if(Y=(Y+1)%W,Y===K&&(K=(K+1)%W),ee-J<O)return;const ie=ne&&ee-ne;return ie?Math.round(te*1e3/ie):void 0}}function throttle(W,O){let U=0;const G=1e3/O;let Y=null;return function(){const J=this===!0,X=Date.now();if(J||X-U>G)return Y&&(clearTimeout(Y),Y=null),U=X,W.apply(null,arguments);Y||(Y=setTimeout(()=>(Y=null,U=Date.now(),W.apply(null,arguments)),G-(X-U)))}}const progressEventReducer=(W,O,U=3)=>{let G=0;const Y=speedometer(50,250);return throttle(K=>{const J=K.loaded,X=K.lengthComputable?K.total:void 0,se=J-G,ee=Y(se),ne=J<=X;G=J;const Q={loaded:J,total:X,progress:X?J/X:void 0,bytes:se,rate:ee||void 0,estimated:ee&&X&&ne?(X-J)/ee:void 0,event:K,lengthComputable:X!=null};Q[O?"download":"upload"]=!0,W(Q)},U)},isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const O=/(msie|trident)/i.test(navigator.userAgent),U=document.createElement("a");let G;function Y(K){let J=K;return O&&(U.setAttribute("href",J),J=U.href),U.setAttribute("href",J),{href:U.href,protocol:U.protocol?U.protocol.replace(/:$/,""):"",host:U.host,search:U.search?U.search.replace(/^\?/,""):"",hash:U.hash?U.hash.replace(/^#/,""):"",hostname:U.hostname,port:U.port,pathname:U.pathname.charAt(0)==="/"?U.pathname:"/"+U.pathname}}return G=Y(window.location.href),function(J){const X=utils$1.isString(J)?Y(J):J;return X.protocol===G.protocol&&X.host===G.host}}():function(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(W,O,U,G,Y,K){const J=[W+"="+encodeURIComponent(O)];utils$1.isNumber(U)&&J.push("expires="+new Date(U).toGMTString()),utils$1.isString(G)&&J.push("path="+G),utils$1.isString(Y)&&J.push("domain="+Y),K===!0&&J.push("secure"),document.cookie=J.join("; ")},read(W){const O=document.cookie.match(new RegExp("(^|;\\s*)("+W+")=([^;]*)"));return O?decodeURIComponent(O[3]):null},remove(W){this.write(W,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(W){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(W)}function combineURLs(W,O){return O?W.replace(/\/?\/$/,"")+"/"+O.replace(/^\/+/,""):W}function buildFullPath(W,O){return W&&!isAbsoluteURL(O)?combineURLs(W,O):O}const headersToObject=W=>W instanceof AxiosHeaders?{...W}:W;function mergeConfig(W,O){O=O||{};const U={};function G(ee,ne,Q){return utils$1.isPlainObject(ee)&&utils$1.isPlainObject(ne)?utils$1.merge.call({caseless:Q},ee,ne):utils$1.isPlainObject(ne)?utils$1.merge({},ne):utils$1.isArray(ne)?ne.slice():ne}function Y(ee,ne,Q){if(utils$1.isUndefined(ne)){if(!utils$1.isUndefined(ee))return G(void 0,ee,Q)}else return G(ee,ne,Q)}function K(ee,ne){if(!utils$1.isUndefined(ne))return G(void 0,ne)}function J(ee,ne){if(utils$1.isUndefined(ne)){if(!utils$1.isUndefined(ee))return G(void 0,ee)}else return G(void 0,ne)}function X(ee,ne,Q){if(Q in O)return G(ee,ne);if(Q in W)return G(void 0,ee)}const se={url:K,method:K,data:K,baseURL:J,transformRequest:J,transformResponse:J,paramsSerializer:J,timeout:J,timeoutMessage:J,withCredentials:J,withXSRFToken:J,adapter:J,responseType:J,xsrfCookieName:J,xsrfHeaderName:J,onUploadProgress:J,onDownloadProgress:J,decompress:J,maxContentLength:J,maxBodyLength:J,beforeRedirect:J,transport:J,httpAgent:J,httpsAgent:J,cancelToken:J,socketPath:J,responseEncoding:J,validateStatus:X,headers:(ee,ne)=>Y(headersToObject(ee),headersToObject(ne),!0)};return utils$1.forEach(Object.keys(Object.assign({},W,O)),function(ne){const Q=se[ne]||Y,te=Q(W[ne],O[ne],ne);utils$1.isUndefined(te)&&Q!==X||(U[ne]=te)}),U}const resolveConfig=W=>{const O=mergeConfig({},W);let{data:U,withXSRFToken:G,xsrfHeaderName:Y,xsrfCookieName:K,headers:J,auth:X}=O;O.headers=J=AxiosHeaders.from(J),O.url=buildURL(buildFullPath(O.baseURL,O.url),W.params,W.paramsSerializer),X&&J.set("Authorization","Basic "+btoa((X.username||"")+":"+(X.password?unescape(encodeURIComponent(X.password)):"")));let se;if(utils$1.isFormData(U)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)J.setContentType(void 0);else if((se=J.getContentType())!==!1){const[ee,...ne]=se?se.split(";").map(Q=>Q.trim()).filter(Boolean):[];J.setContentType([ee||"multipart/form-data",...ne].join("; "))}}if(platform.hasStandardBrowserEnv&&(G&&utils$1.isFunction(G)&&(G=G(O)),G||G!==!1&&isURLSameOrigin(O.url))){const ee=Y&&K&&cookies.read(K);ee&&J.set(Y,ee)}return O},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(W){return new Promise(function(U,G){const Y=resolveConfig(W);let K=Y.data;const J=AxiosHeaders.from(Y.headers).normalize();let{responseType:X}=Y,se;function ee(){Y.cancelToken&&Y.cancelToken.unsubscribe(se),Y.signal&&Y.signal.removeEventListener("abort",se)}let ne=new XMLHttpRequest;ne.open(Y.method.toUpperCase(),Y.url,!0),ne.timeout=Y.timeout;function Q(){if(!ne)return;const ie=AxiosHeaders.from("getAllResponseHeaders"in ne&&ne.getAllResponseHeaders()),oe={data:!X||X==="text"||X==="json"?ne.responseText:ne.response,status:ne.status,statusText:ne.statusText,headers:ie,config:W,request:ne};settle(function(ae){U(ae),ee()},function(ae){G(ae),ee()},oe),ne=null}"onloadend"in ne?ne.onloadend=Q:ne.onreadystatechange=function(){!ne||ne.readyState!==4||ne.status===0&&!(ne.responseURL&&ne.responseURL.indexOf("file:")===0)||setTimeout(Q)},ne.onabort=function(){ne&&(G(new AxiosError("Request aborted",AxiosError.ECONNABORTED,Y,ne)),ne=null)},ne.onerror=function(){G(new AxiosError("Network Error",AxiosError.ERR_NETWORK,Y,ne)),ne=null},ne.ontimeout=function(){let le=Y.timeout?"timeout of "+Y.timeout+"ms exceeded":"timeout exceeded";const oe=Y.transitional||transitionalDefaults;Y.timeoutErrorMessage&&(le=Y.timeoutErrorMessage),G(new AxiosError(le,oe.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,Y,ne)),ne=null},K===void 0&&J.setContentType(null),"setRequestHeader"in ne&&utils$1.forEach(J.toJSON(),function(le,oe){ne.setRequestHeader(oe,le)}),utils$1.isUndefined(Y.withCredentials)||(ne.withCredentials=!!Y.withCredentials),X&&X!=="json"&&(ne.responseType=Y.responseType),typeof Y.onDownloadProgress=="function"&&ne.addEventListener("progress",progressEventReducer(Y.onDownloadProgress,!0)),typeof Y.onUploadProgress=="function"&&ne.upload&&ne.upload.addEventListener("progress",progressEventReducer(Y.onUploadProgress)),(Y.cancelToken||Y.signal)&&(se=ie=>{ne&&(G(!ie||ie.type?new CanceledError(null,W,ne):ie),ne.abort(),ne=null)},Y.cancelToken&&Y.cancelToken.subscribe(se),Y.signal&&(Y.signal.aborted?se():Y.signal.addEventListener("abort",se)));const te=parseProtocol(Y.url);if(te&&platform.protocols.indexOf(te)===-1){G(new AxiosError("Unsupported protocol "+te+":",AxiosError.ERR_BAD_REQUEST,W));return}ne.send(K||null)})},composeSignals=(W,O)=>{let U=new AbortController,G;const Y=function(se){if(!G){G=!0,J();const ee=se instanceof Error?se:this.reason;U.abort(ee instanceof AxiosError?ee:new CanceledError(ee instanceof Error?ee.message:ee))}};let K=O&&setTimeout(()=>{Y(new AxiosError(`timeout ${O} of ms exceeded`,AxiosError.ETIMEDOUT))},O);const J=()=>{W&&(K&&clearTimeout(K),K=null,W.forEach(se=>{se&&(se.removeEventListener?se.removeEventListener("abort",Y):se.unsubscribe(Y))}),W=null)};W.forEach(se=>se&&se.addEventListener&&se.addEventListener("abort",Y));const{signal:X}=U;return X.unsubscribe=J,[X,()=>{K&&clearTimeout(K),K=null}]},streamChunk=function*(W,O){let U=W.byteLength;if(!O||U<O){yield W;return}let G=0,Y;for(;G<U;)Y=G+O,yield W.slice(G,Y),G=Y},readBytes=async function*(W,O,U){for await(const G of W)yield*streamChunk(ArrayBuffer.isView(G)?G:await U(String(G)),O)},trackStream=(W,O,U,G,Y)=>{const K=readBytes(W,O,Y);let J=0;return new ReadableStream({type:"bytes",async pull(X){const{done:se,value:ee}=await K.next();if(se){X.close(),G();return}let ne=ee.byteLength;U&&U(J+=ne),X.enqueue(new Uint8Array(ee))},cancel(X){return G(X),K.return()}},{highWaterMark:2})},fetchProgressDecorator=(W,O)=>{const U=W!=null;return G=>setTimeout(()=>O({lengthComputable:U,total:W,loaded:G}))},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(W=>O=>W.encode(O))(new TextEncoder):async W=>new Uint8Array(await new Response(W).arrayBuffer())),supportsRequestStream=isReadableStreamSupported&&(()=>{let W=!1;const O=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return W=!0,"half"}}).headers.has("Content-Type");return W&&!O})(),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&!!(()=>{try{return utils$1.isReadableStream(new Response("").body)}catch{}})(),resolvers={stream:supportsResponseStream&&(W=>W.body)};isFetchSupported&&(W=>{["text","arrayBuffer","blob","formData","stream"].forEach(O=>{!resolvers[O]&&(resolvers[O]=utils$1.isFunction(W[O])?U=>U[O]():(U,G)=>{throw new AxiosError(`Response type '${O}' is not supported`,AxiosError.ERR_NOT_SUPPORT,G)})})})(new Response);const getBodyLength=async W=>{if(W==null)return 0;if(utils$1.isBlob(W))return W.size;if(utils$1.isSpecCompliantForm(W))return(await new Request(W).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(W))return W.byteLength;if(utils$1.isURLSearchParams(W)&&(W=W+""),utils$1.isString(W))return(await encodeText(W)).byteLength},resolveBodyLength=async(W,O)=>{const U=utils$1.toFiniteNumber(W.getContentLength());return U??getBodyLength(O)},fetchAdapter=isFetchSupported&&(async W=>{let{url:O,method:U,data:G,signal:Y,cancelToken:K,timeout:J,onDownloadProgress:X,onUploadProgress:se,responseType:ee,headers:ne,withCredentials:Q="same-origin",fetchOptions:te}=resolveConfig(W);ee=ee?(ee+"").toLowerCase():"text";let[ie,le]=Y||K||J?composeSignals([Y,K],J):[],oe,re;const ae=()=>{!oe&&setTimeout(()=>{ie&&ie.unsubscribe()}),oe=!0};let ce;try{if(se&&supportsRequestStream&&U!=="get"&&U!=="head"&&(ce=await resolveBodyLength(ne,G))!==0){let me=new Request(O,{method:"POST",body:G,duplex:"half"}),ge;utils$1.isFormData(G)&&(ge=me.headers.get("content-type"))&&ne.setContentType(ge),me.body&&(G=trackStream(me.body,DEFAULT_CHUNK_SIZE,fetchProgressDecorator(ce,progressEventReducer(se)),null,encodeText))}utils$1.isString(Q)||(Q=Q?"cors":"omit"),re=new Request(O,{...te,signal:ie,method:U.toUpperCase(),headers:ne.normalize().toJSON(),body:G,duplex:"half",withCredentials:Q});let ue=await fetch(re);const de=supportsResponseStream&&(ee==="stream"||ee==="response");if(supportsResponseStream&&(X||de)){const me={};["status","statusText","headers"].forEach(we=>{me[we]=ue[we]});const ge=utils$1.toFiniteNumber(ue.headers.get("content-length"));ue=new Response(trackStream(ue.body,DEFAULT_CHUNK_SIZE,X&&fetchProgressDecorator(ge,progressEventReducer(X,!0)),de&&ae,encodeText),me)}ee=ee||"text";let he=await resolvers[utils$1.findKey(resolvers,ee)||"text"](ue,W);return!de&&ae(),le&&le(),await new Promise((me,ge)=>{settle(me,ge,{data:he,headers:AxiosHeaders.from(ue.headers),status:ue.status,statusText:ue.statusText,config:W,request:re})})}catch(ue){throw ae(),ue&&ue.name==="TypeError"&&/fetch/i.test(ue.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,W,re),{cause:ue.cause||ue}):AxiosError.from(ue,ue&&ue.code,W,re)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(W,O)=>{if(W){try{Object.defineProperty(W,"name",{value:O})}catch{}Object.defineProperty(W,"adapterName",{value:O})}});const renderReason=W=>`- ${W}`,isResolvedHandle=W=>utils$1.isFunction(W)||W===null||W===!1,adapters={getAdapter:W=>{W=utils$1.isArray(W)?W:[W];const{length:O}=W;let U,G;const Y={};for(let K=0;K<O;K++){U=W[K];let J;if(G=U,!isResolvedHandle(U)&&(G=knownAdapters[(J=String(U)).toLowerCase()],G===void 0))throw new AxiosError(`Unknown adapter '${J}'`);if(G)break;Y[J||"#"+K]=G}if(!G){const K=Object.entries(Y).map(([X,se])=>`adapter ${X} `+(se===!1?"is not supported by the environment":"is not available in the build"));let J=O?K.length>1?`since :
174
187
  `+K.map(renderReason).join(`
175
- `):" "+renderReason(K[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+J,"ERR_NOT_SUPPORT")}return G},adapters:knownAdapters};function throwIfCancellationRequested(W){if(W.cancelToken&&W.cancelToken.throwIfRequested(),W.signal&&W.signal.aborted)throw new CanceledError(null,W)}function dispatchRequest(W){return throwIfCancellationRequested(W),W.headers=AxiosHeaders.from(W.headers),W.data=transformData.call(W,W.transformRequest),["post","put","patch"].indexOf(W.method)!==-1&&W.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(W.adapter||defaults.adapter)(W).then(function(G){return throwIfCancellationRequested(W),G.data=transformData.call(W,W.transformResponse,G),G.headers=AxiosHeaders.from(G.headers),G},function(G){return isCancel(G)||(throwIfCancellationRequested(W),G&&G.response&&(G.response.data=transformData.call(W,W.transformResponse,G.response),G.response.headers=AxiosHeaders.from(G.response.headers))),Promise.reject(G)})}const VERSION="1.7.2",validators$1={};["object","boolean","number","function","string","symbol"].forEach((W,O)=>{validators$1[W]=function(G){return typeof G===W||"a"+(O<1?"n ":" ")+W}});const deprecatedWarnings={};validators$1.transitional=function(O,U,G){function Y(K,J){return"[Axios v"+VERSION+"] Transitional option '"+K+"'"+J+(G?". "+G:"")}return(K,J,X)=>{if(O===!1)throw new AxiosError(Y(J," has been removed"+(U?" in "+U:"")),AxiosError.ERR_DEPRECATED);return U&&!deprecatedWarnings[J]&&(deprecatedWarnings[J]=!0,console.warn(Y(J," has been deprecated since v"+U+" and will be removed in the near future"))),O?O(K,J,X):!0}};function assertOptions(W,O,U){if(typeof W!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const G=Object.keys(W);let Y=G.length;for(;Y-- >0;){const K=G[Y],J=O[K];if(J){const X=W[K],ie=X===void 0||J(X,K,W);if(ie!==!0)throw new AxiosError("option "+K+" must be "+ie,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(U!==!0)throw new AxiosError("Unknown option "+K,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(O){this.defaults=O,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(O,U){try{return await this._request(O,U)}catch(G){if(G instanceof Error){let Y;Error.captureStackTrace?Error.captureStackTrace(Y={}):Y=new Error;const K=Y.stack?Y.stack.replace(/^.+\n/,""):"";try{G.stack?K&&!String(G.stack).endsWith(K.replace(/^.+\n.+\n/,""))&&(G.stack+=`
176
- `+K):G.stack=K}catch{}}throw G}}_request(O,U){typeof O=="string"?(U=U||{},U.url=O):U=O||{},U=mergeConfig(this.defaults,U);const{transitional:G,paramsSerializer:Y,headers:K}=U;G!==void 0&&validator.assertOptions(G,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),Y!=null&&(utils$1.isFunction(Y)?U.paramsSerializer={serialize:Y}:validator.assertOptions(Y,{encode:validators.function,serialize:validators.function},!0)),U.method=(U.method||this.defaults.method||"get").toLowerCase();let J=K&&utils$1.merge(K.common,K[U.method]);K&&utils$1.forEach(["delete","get","head","post","put","patch","common"],le=>{delete K[le]}),U.headers=AxiosHeaders.concat(J,K);const X=[];let ie=!0;this.interceptors.request.forEach(function(oe){typeof oe.runWhen=="function"&&oe.runWhen(U)===!1||(ie=ie&&oe.synchronous,X.unshift(oe.fulfilled,oe.rejected))});const ee=[];this.interceptors.response.forEach(function(oe){ee.push(oe.fulfilled,oe.rejected)});let ne,Q=0,te;if(!ie){const le=[dispatchRequest.bind(this),void 0];for(le.unshift.apply(le,X),le.push.apply(le,ee),te=le.length,ne=Promise.resolve(U);Q<te;)ne=ne.then(le[Q++],le[Q++]);return ne}te=X.length;let se=U;for(Q=0;Q<te;){const le=X[Q++],oe=X[Q++];try{se=le(se)}catch(re){oe.call(this,re);break}}try{ne=dispatchRequest.call(this,se)}catch(le){return Promise.reject(le)}for(Q=0,te=ee.length;Q<te;)ne=ne.then(ee[Q++],ee[Q++]);return ne}getUri(O){O=mergeConfig(this.defaults,O);const U=buildFullPath(O.baseURL,O.url);return buildURL(U,O.params,O.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(O){Axios.prototype[O]=function(U,G){return this.request(mergeConfig(G||{},{method:O,url:U,data:(G||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(O){function U(G){return function(K,J,X){return this.request(mergeConfig(X||{},{method:O,headers:G?{"Content-Type":"multipart/form-data"}:{},url:K,data:J}))}}Axios.prototype[O]=U(),Axios.prototype[O+"Form"]=U(!0)});class CancelToken{constructor(O){if(typeof O!="function")throw new TypeError("executor must be a function.");let U;this.promise=new Promise(function(K){U=K});const G=this;this.promise.then(Y=>{if(!G._listeners)return;let K=G._listeners.length;for(;K-- >0;)G._listeners[K](Y);G._listeners=null}),this.promise.then=Y=>{let K;const J=new Promise(X=>{G.subscribe(X),K=X}).then(Y);return J.cancel=function(){G.unsubscribe(K)},J},O(function(K,J,X){G.reason||(G.reason=new CanceledError(K,J,X),U(G.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(O){if(this.reason){O(this.reason);return}this._listeners?this._listeners.push(O):this._listeners=[O]}unsubscribe(O){if(!this._listeners)return;const U=this._listeners.indexOf(O);U!==-1&&this._listeners.splice(U,1)}static source(){let O;return{token:new CancelToken(function(Y){O=Y}),cancel:O}}}function spread(W){return function(U){return W.apply(null,U)}}function isAxiosError(W){return utils$1.isObject(W)&&W.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([W,O])=>{HttpStatusCode[O]=W});function createInstance(W){const O=new Axios(W),U=bind(Axios.prototype.request,O);return utils$1.extend(U,Axios.prototype,O,{allOwnKeys:!0}),utils$1.extend(U,O,null,{allOwnKeys:!0}),U.create=function(Y){return createInstance(mergeConfig(W,Y))},U}const axios=createInstance(defaults);axios.Axios=Axios,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(O){return Promise.all(O)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders,axios.formToJSON=W=>formDataToJSON(utils$1.isHTMLForm(W)?new FormData(W):W),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode,axios.default=axios;const token="eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ1S2hQbXhscHB4d2sxUDVfWmQ5am9CeTV6N2p5MHFPd0ZWY3RwZjBDa0E4In0.eyJleHAiOjE3MjEzMDc3MTcsImlhdCI6MTcyMTMwNzQxNywianRpIjoiNWRkMDE1YzgtNTQ5Yy00ZGM2LWE4YWItMTUzNDJiMWRhNThmIiwiaXNzIjoiaHR0cHM6Ly9pbnRlZ3JhY2lvLnBkcy5oZXMuY2F0c2FsdXQuaW50cmFuZXQuZ2VuY2F0LmNhdC9hdXRoL3JlYWxtcy9FVEMiLCJzdWIiOiJlMjRlMzFlMC01NWZiLTRhZmEtYTQzNi0yYmRhOGYyYWQ0ZWUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJldGMtY2NmLWludCIsInNlc3Npb25fc3RhdGUiOiJhY2M2ZDBlYi1iMTBjLTQ3ZDEtYjFlOC0xYWQ5ODU5NTAyNTkiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZGVmYXVsdC1yb2xlcy1oZXMtY2FtIl19LCJzY29wZSI6IiIsInNpZCI6ImFjYzZkMGViLWIxMGMtNDdkMS1iMWU4LTFhZDk4NTk1MDI1OSIsImNsaWVudEhvc3QiOiIxMC41My4yNTQuMTUwIiwiYWNjZXNzX3J1bGVzIjp7fSwiYWNjZXNzX2luZm8iOnsicGF0aWVudF9nZW5kZXIiOiIxIiwicGF0aWVudF9iaXJ0aGRhdGUiOiIxOTk5MDEwMSIsInByb2Zlc3Npb25hbF9yb2xlIjoiQURNIiwicHJvZmVzc2lvbmFsX2lkIjoiMTIzNDU2Nzg5MCIsInVwX2NvZGUiOiIwNzczMyIsInBhdGllbnRfZ2l2ZW5fbmFtZSI6ImNhc3RhbnkiLCJwYXRpZW50X2lkIjoiMTIzNDU2Nzg5MCIsInByb2Zlc3Npb25hbF9zcGVjaWFsaXR5IjoiU1BFQzAxIiwicHJvZmVzc2lvbmFsX3NlcnZpY2UiOiJTRVJWMDEiLCJwYXRpZW50X2xhc3RfbmFtZSI6IkFSRUdBTEwiLCJlcF9jb2RlIjoiMDIwOCJ9LCJjbGllbnRBZGRyZXNzIjoiMTAuNTMuMjU0LjE1MCIsImNsaWVudF9pZCI6ImV0Yy1jY2YtaW50In0.NiDKnMchNB4zqL9zOdq15G8y2BYGOyjk8n1xofB2WyxhVpbTXhXAgApS-4DCqczmdPt4sOwtt-FVVxcYku2gKcQQ1Leapb7CmHoUT_ak5ovOE8ZrD5Ryz6rfC_O1lO8Ut4M_J-KzMxj7WvUNYhkIqcHFSMwDdNC6xxc4ZYMOUI4bOif_Tiy7CxvMIpFGm1YS_jiGS2PGI8Y1o_1DApqMs88MxK9ItO-DIfQgKcR3wV6J-QZueaKVtih-kLma33TZc0jz7xG1EyOMJ5cC4r1Sxp877b9ut4JCmMaWOfWNf2tldLcpXTvV_BWg53YpwYOl4pvZdg3lFWEb009DofTQbQ";let instance=axios.create({headers:{Authorization:"Bearer "+token}});const createHttpClient=()=>({request:instance.request}),broker=createBroker(),regionManager=u$4("primaria"),PrimariaRegionHost=l$2(regionManager),primariaApiFactory=W=>({pluginInfo:W,regionManager:createRegionManagerProxy(W,regionManager),httpClient:createHttpClient(),interactionManager:{...createInteractionManager()},broker,createLocaleManager:createLocaleManager(W.pluginId),globalStateManager:createGlobalStateManager(broker)}),shellApi=primariaApiFactory({pluginId:"primaria-shell"});var __defProp$b=Object.defineProperty,__getOwnPropDesc$b=Object.getOwnPropertyDescriptor,__decorateClass$b=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$b(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$b(O,U,Y),Y};let ClinicalMonitoring=class extends PrimariaRegionHost(s$8){render(){return x$1`${template$6()}`}};ClinicalMonitoring.styles=i$9`
188
+ `):" "+renderReason(K[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+J,"ERR_NOT_SUPPORT")}return G},adapters:knownAdapters};function throwIfCancellationRequested(W){if(W.cancelToken&&W.cancelToken.throwIfRequested(),W.signal&&W.signal.aborted)throw new CanceledError(null,W)}function dispatchRequest(W){return throwIfCancellationRequested(W),W.headers=AxiosHeaders.from(W.headers),W.data=transformData.call(W,W.transformRequest),["post","put","patch"].indexOf(W.method)!==-1&&W.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(W.adapter||defaults.adapter)(W).then(function(G){return throwIfCancellationRequested(W),G.data=transformData.call(W,W.transformResponse,G),G.headers=AxiosHeaders.from(G.headers),G},function(G){return isCancel(G)||(throwIfCancellationRequested(W),G&&G.response&&(G.response.data=transformData.call(W,W.transformResponse,G.response),G.response.headers=AxiosHeaders.from(G.response.headers))),Promise.reject(G)})}const VERSION="1.7.2",validators$1={};["object","boolean","number","function","string","symbol"].forEach((W,O)=>{validators$1[W]=function(G){return typeof G===W||"a"+(O<1?"n ":" ")+W}});const deprecatedWarnings={};validators$1.transitional=function(O,U,G){function Y(K,J){return"[Axios v"+VERSION+"] Transitional option '"+K+"'"+J+(G?". "+G:"")}return(K,J,X)=>{if(O===!1)throw new AxiosError(Y(J," has been removed"+(U?" in "+U:"")),AxiosError.ERR_DEPRECATED);return U&&!deprecatedWarnings[J]&&(deprecatedWarnings[J]=!0,console.warn(Y(J," has been deprecated since v"+U+" and will be removed in the near future"))),O?O(K,J,X):!0}};function assertOptions(W,O,U){if(typeof W!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const G=Object.keys(W);let Y=G.length;for(;Y-- >0;){const K=G[Y],J=O[K];if(J){const X=W[K],se=X===void 0||J(X,K,W);if(se!==!0)throw new AxiosError("option "+K+" must be "+se,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(U!==!0)throw new AxiosError("Unknown option "+K,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(O){this.defaults=O,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(O,U){try{return await this._request(O,U)}catch(G){if(G instanceof Error){let Y;Error.captureStackTrace?Error.captureStackTrace(Y={}):Y=new Error;const K=Y.stack?Y.stack.replace(/^.+\n/,""):"";try{G.stack?K&&!String(G.stack).endsWith(K.replace(/^.+\n.+\n/,""))&&(G.stack+=`
189
+ `+K):G.stack=K}catch{}}throw G}}_request(O,U){typeof O=="string"?(U=U||{},U.url=O):U=O||{},U=mergeConfig(this.defaults,U);const{transitional:G,paramsSerializer:Y,headers:K}=U;G!==void 0&&validator.assertOptions(G,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),Y!=null&&(utils$1.isFunction(Y)?U.paramsSerializer={serialize:Y}:validator.assertOptions(Y,{encode:validators.function,serialize:validators.function},!0)),U.method=(U.method||this.defaults.method||"get").toLowerCase();let J=K&&utils$1.merge(K.common,K[U.method]);K&&utils$1.forEach(["delete","get","head","post","put","patch","common"],le=>{delete K[le]}),U.headers=AxiosHeaders.concat(J,K);const X=[];let se=!0;this.interceptors.request.forEach(function(oe){typeof oe.runWhen=="function"&&oe.runWhen(U)===!1||(se=se&&oe.synchronous,X.unshift(oe.fulfilled,oe.rejected))});const ee=[];this.interceptors.response.forEach(function(oe){ee.push(oe.fulfilled,oe.rejected)});let ne,Q=0,te;if(!se){const le=[dispatchRequest.bind(this),void 0];for(le.unshift.apply(le,X),le.push.apply(le,ee),te=le.length,ne=Promise.resolve(U);Q<te;)ne=ne.then(le[Q++],le[Q++]);return ne}te=X.length;let ie=U;for(Q=0;Q<te;){const le=X[Q++],oe=X[Q++];try{ie=le(ie)}catch(re){oe.call(this,re);break}}try{ne=dispatchRequest.call(this,ie)}catch(le){return Promise.reject(le)}for(Q=0,te=ee.length;Q<te;)ne=ne.then(ee[Q++],ee[Q++]);return ne}getUri(O){O=mergeConfig(this.defaults,O);const U=buildFullPath(O.baseURL,O.url);return buildURL(U,O.params,O.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(O){Axios.prototype[O]=function(U,G){return this.request(mergeConfig(G||{},{method:O,url:U,data:(G||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(O){function U(G){return function(K,J,X){return this.request(mergeConfig(X||{},{method:O,headers:G?{"Content-Type":"multipart/form-data"}:{},url:K,data:J}))}}Axios.prototype[O]=U(),Axios.prototype[O+"Form"]=U(!0)});class CancelToken{constructor(O){if(typeof O!="function")throw new TypeError("executor must be a function.");let U;this.promise=new Promise(function(K){U=K});const G=this;this.promise.then(Y=>{if(!G._listeners)return;let K=G._listeners.length;for(;K-- >0;)G._listeners[K](Y);G._listeners=null}),this.promise.then=Y=>{let K;const J=new Promise(X=>{G.subscribe(X),K=X}).then(Y);return J.cancel=function(){G.unsubscribe(K)},J},O(function(K,J,X){G.reason||(G.reason=new CanceledError(K,J,X),U(G.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(O){if(this.reason){O(this.reason);return}this._listeners?this._listeners.push(O):this._listeners=[O]}unsubscribe(O){if(!this._listeners)return;const U=this._listeners.indexOf(O);U!==-1&&this._listeners.splice(U,1)}static source(){let O;return{token:new CancelToken(function(Y){O=Y}),cancel:O}}}function spread(W){return function(U){return W.apply(null,U)}}function isAxiosError(W){return utils$1.isObject(W)&&W.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([W,O])=>{HttpStatusCode[O]=W});function createInstance(W){const O=new Axios(W),U=bind(Axios.prototype.request,O);return utils$1.extend(U,Axios.prototype,O,{allOwnKeys:!0}),utils$1.extend(U,O,null,{allOwnKeys:!0}),U.create=function(Y){return createInstance(mergeConfig(W,Y))},U}const axios=createInstance(defaults);axios.Axios=Axios,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(O){return Promise.all(O)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders,axios.formToJSON=W=>formDataToJSON(utils$1.isHTMLForm(W)?new FormData(W):W),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode,axios.default=axios;const token="eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ1S2hQbXhscHB4d2sxUDVfWmQ5am9CeTV6N2p5MHFPd0ZWY3RwZjBDa0E4In0.eyJleHAiOjE3MjEzMDc3MTcsImlhdCI6MTcyMTMwNzQxNywianRpIjoiNWRkMDE1YzgtNTQ5Yy00ZGM2LWE4YWItMTUzNDJiMWRhNThmIiwiaXNzIjoiaHR0cHM6Ly9pbnRlZ3JhY2lvLnBkcy5oZXMuY2F0c2FsdXQuaW50cmFuZXQuZ2VuY2F0LmNhdC9hdXRoL3JlYWxtcy9FVEMiLCJzdWIiOiJlMjRlMzFlMC01NWZiLTRhZmEtYTQzNi0yYmRhOGYyYWQ0ZWUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJldGMtY2NmLWludCIsInNlc3Npb25fc3RhdGUiOiJhY2M2ZDBlYi1iMTBjLTQ3ZDEtYjFlOC0xYWQ5ODU5NTAyNTkiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZGVmYXVsdC1yb2xlcy1oZXMtY2FtIl19LCJzY29wZSI6IiIsInNpZCI6ImFjYzZkMGViLWIxMGMtNDdkMS1iMWU4LTFhZDk4NTk1MDI1OSIsImNsaWVudEhvc3QiOiIxMC41My4yNTQuMTUwIiwiYWNjZXNzX3J1bGVzIjp7fSwiYWNjZXNzX2luZm8iOnsicGF0aWVudF9nZW5kZXIiOiIxIiwicGF0aWVudF9iaXJ0aGRhdGUiOiIxOTk5MDEwMSIsInByb2Zlc3Npb25hbF9yb2xlIjoiQURNIiwicHJvZmVzc2lvbmFsX2lkIjoiMTIzNDU2Nzg5MCIsInVwX2NvZGUiOiIwNzczMyIsInBhdGllbnRfZ2l2ZW5fbmFtZSI6ImNhc3RhbnkiLCJwYXRpZW50X2lkIjoiMTIzNDU2Nzg5MCIsInByb2Zlc3Npb25hbF9zcGVjaWFsaXR5IjoiU1BFQzAxIiwicHJvZmVzc2lvbmFsX3NlcnZpY2UiOiJTRVJWMDEiLCJwYXRpZW50X2xhc3RfbmFtZSI6IkFSRUdBTEwiLCJlcF9jb2RlIjoiMDIwOCJ9LCJjbGllbnRBZGRyZXNzIjoiMTAuNTMuMjU0LjE1MCIsImNsaWVudF9pZCI6ImV0Yy1jY2YtaW50In0.NiDKnMchNB4zqL9zOdq15G8y2BYGOyjk8n1xofB2WyxhVpbTXhXAgApS-4DCqczmdPt4sOwtt-FVVxcYku2gKcQQ1Leapb7CmHoUT_ak5ovOE8ZrD5Ryz6rfC_O1lO8Ut4M_J-KzMxj7WvUNYhkIqcHFSMwDdNC6xxc4ZYMOUI4bOif_Tiy7CxvMIpFGm1YS_jiGS2PGI8Y1o_1DApqMs88MxK9ItO-DIfQgKcR3wV6J-QZueaKVtih-kLma33TZc0jz7xG1EyOMJ5cC4r1Sxp877b9ut4JCmMaWOfWNf2tldLcpXTvV_BWg53YpwYOl4pvZdg3lFWEb009DofTQbQ";let instance=axios.create({headers:{Authorization:"Bearer "+token}});const createHttpClient=()=>({request:instance.request}),broker=createBroker(),regionManager=u$4("primaria"),PrimariaRegionHost=l$2(regionManager),globalStateManager=createGlobalStateManager(broker),primariaApiFactory=W=>({pluginInfo:W,regionManager:createRegionManagerProxy(W,regionManager),httpClient:createHttpClient(),interactionManager:{...createInteractionManager()},broker,createLocaleManager:createLocaleManager(W.pluginId),globalStateManager}),shellApi=primariaApiFactory({pluginId:"primaria-shell"});var __defProp$b=Object.defineProperty,__getOwnPropDesc$b=Object.getOwnPropertyDescriptor,__decorateClass$b=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$b(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$b(O,U,Y),Y};let ClinicalMonitoring=class extends PrimariaRegionHost(s$8){render(){return x$1`${template$6()}`}};ClinicalMonitoring.styles=i$9`
177
190
  ${r$a(styles$9)}
178
191
  `,__decorateClass$b([s$5({targetId:"widgets-sidebar-region",name:clinicalMonitoringRegions.sidebar})],ClinicalMonitoring.prototype,"sidebarRegion",2),__decorateClass$b([s$5({targetId:"header-widgets-region",name:clinicalMonitoringRegions.header})],ClinicalMonitoring.prototype,"headerRegion",2),__decorateClass$b([s$5({targetId:"content-widgets-region",name:clinicalMonitoringRegions.content})],ClinicalMonitoring.prototype,"contentRegion",2),ClinicalMonitoring=__decorateClass$b([t$7("clinical-monitoring")],ClinicalMonitoring);const styles$5="*[hidden]{display:none!important}:host{width:100%;overflow:hidden}.container{width:100%;height:100%;display:flex;flex-direction:column;background:#fff}.header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 16px;height:60px;background-color:#fff;color:#000;z-index:1;box-shadow:#0000001f 4px -1px 3px,#0000003d 0 1px 2px}.header__left{display:flex;flex-direction:row;align-items:center;gap:24px}.header .header-logo{align-self:center}.header #actions-toolbar-region-container{display:flex;flex-direction:row}.main-container{min-height:1px;height:100%;display:flex}.main-container .sidebar{display:flex;flex-direction:column;justify-content:space-between;background:var(--color-primary-800);width:15%;height:100%;color:#fff}.main-container .content{display:flex;height:100%;width:85%}.main-container #main-region-container{min-height:1px;height:100%;flex:1}.main-container #floating-region-container{position:fixed;z-index:200}.footer{display:flex;height:50px;padding:0 16px}.footer .footer-logo{align-self:center}";function __decorate(W,O,U,G){var Y=arguments.length,K=Y<3?O:G===null?G=Object.getOwnPropertyDescriptor(O,U):G,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")K=Reflect.decorate(W,O,U,G);else for(var X=W.length-1;X>=0;X--)(J=W[X])&&(K=(Y<3?J(K):Y>3?J(O,U,K):J(O,U))||K);return Y>3&&K&&Object.defineProperty(O,U,K),K}typeof SuppressedError=="function"&&SuppressedError;const symbolStyles=i$5`
179
192
  .dss-icon,
@@ -317,7 +330,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
317
330
  * @license
318
331
  * Copyright 2018 Google LLC
319
332
  * SPDX-License-Identifier: BSD-3-Clause
320
- */const o=e$1(class extends i$1{constructor(W){var O;if(super(W),W.type!==t$2.ATTRIBUTE||W.name!=="class"||((O=W.strings)===null||O===void 0?void 0:O.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(W){return" "+Object.keys(W).filter(O=>W[O]).join(" ")+" "}update(W,[O]){var U,G;if(this.it===void 0){this.it=new Set,W.strings!==void 0&&(this.nt=new Set(W.strings.join(" ").split(/\s/).filter(K=>K!=="")));for(const K in O)O[K]&&!(!((U=this.nt)===null||U===void 0)&&U.has(K))&&this.it.add(K);return this.render(O)}const Y=W.element.classList;this.it.forEach(K=>{K in O||(Y.remove(K),this.it.delete(K))});for(const K in O){const J=!!O[K];J===this.it.has(K)||!((G=this.nt)===null||G===void 0)&&G.has(K)||(J?(Y.add(K),this.it.add(K)):(Y.remove(K),this.it.delete(K)))}return T$3}});function toDate(W){const O=Object.prototype.toString.call(W);return W instanceof Date||typeof W=="object"&&O==="[object Date]"?new W.constructor(+W):typeof W=="number"||O==="[object Number]"||typeof W=="string"||O==="[object String]"?new Date(W):new Date(NaN)}function endOfMonth(W){const O=toDate(W),U=O.getMonth();return O.setFullYear(O.getFullYear(),U+1,0),O.setHours(23,59,59,999),O}function eachDayOfInterval(W,O){const U=toDate(W.start),G=toDate(W.end);let Y=+U>+G;const K=Y?+U:+G,J=Y?G:U;J.setHours(0,0,0,0);let X=1;const ie=[];for(;+J<=K;)ie.push(toDate(J)),J.setDate(J.getDate()+X),J.setHours(0,0,0,0);return Y?ie.reverse():ie}function startOfMonth(W){const O=toDate(W);return O.setDate(1),O.setHours(0,0,0,0),O}function getDay(W){return toDate(W).getDay()}const buttonStyles=i$5`
333
+ */const o=e$1(class extends i$1{constructor(W){var O;if(super(W),W.type!==t$2.ATTRIBUTE||W.name!=="class"||((O=W.strings)===null||O===void 0?void 0:O.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(W){return" "+Object.keys(W).filter(O=>W[O]).join(" ")+" "}update(W,[O]){var U,G;if(this.it===void 0){this.it=new Set,W.strings!==void 0&&(this.nt=new Set(W.strings.join(" ").split(/\s/).filter(K=>K!=="")));for(const K in O)O[K]&&!(!((U=this.nt)===null||U===void 0)&&U.has(K))&&this.it.add(K);return this.render(O)}const Y=W.element.classList;this.it.forEach(K=>{K in O||(Y.remove(K),this.it.delete(K))});for(const K in O){const J=!!O[K];J===this.it.has(K)||!((G=this.nt)===null||G===void 0)&&G.has(K)||(J?(Y.add(K),this.it.add(K)):(Y.remove(K),this.it.delete(K)))}return T$3}});function toDate(W){const O=Object.prototype.toString.call(W);return W instanceof Date||typeof W=="object"&&O==="[object Date]"?new W.constructor(+W):typeof W=="number"||O==="[object Number]"||typeof W=="string"||O==="[object String]"?new Date(W):new Date(NaN)}function endOfMonth(W){const O=toDate(W),U=O.getMonth();return O.setFullYear(O.getFullYear(),U+1,0),O.setHours(23,59,59,999),O}function eachDayOfInterval(W,O){const U=toDate(W.start),G=toDate(W.end);let Y=+U>+G;const K=Y?+U:+G,J=Y?G:U;J.setHours(0,0,0,0);let X=1;const se=[];for(;+J<=K;)se.push(toDate(J)),J.setDate(J.getDate()+X),J.setHours(0,0,0,0);return Y?se.reverse():se}function startOfMonth(W){const O=toDate(W);return O.setDate(1),O.setHours(0,0,0,0),O}function getDay(W){return toDate(W).getDay()}const buttonStyles=i$5`
321
334
  .dss-button {
322
335
  border-radius: 128px;
323
336
  border: none;
@@ -1021,7 +1034,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1021
1034
  cursor: not-allowed;
1022
1035
  color: (--color-neutral-500);
1023
1036
  }
1024
- `]}set selectedDate(O){const U=this._selectedDate;this._selectedDate=this._getDateString(O),this._updateCurrentDate(),this.requestUpdate("selectedDate",U)}set minDate(O){const U=this._minDate;this._minDate=this._getDateString(O),this.requestUpdate("minDate",U)}set maxDate(O){const U=this._maxDate;this._maxDate=this._getDateString(O),this.requestUpdate("maxDate",U)}set showTime(O){const U=this._showTime;this._showTime=O,this.requestUpdate("showTime",U)}set showButtons(O){const U=this._showButtons;this._showButtons=O,this.requestUpdate("showButtons",U)}set leftLabel(O){const U=this._leftLabel;this._leftLabel=O,this.requestUpdate("leftLabel",U)}set rightLabel(O){const U=this._rightLabel;this._rightLabel=O,this.requestUpdate("rightLabel",U)}set timepicker(O){const U=this._timepicker;this._timepicker=O,this.requestUpdate("timepicker",U)}set minutesRange(O){const U=this._minutesRange;this._minutesRange=O,this.requestUpdate("minutesRange",U)}set minHour(O){const U=this._minHour;this._minHour=O,this.requestUpdate("minHour",U)}set maxHour(O){const U=this._maxHour;this._maxHour=O,this.requestUpdate("maxHour",U)}set customTimeListOptions(O){const U=this._customTimeListOptions;this._customTimeListOptions=O,this.requestUpdate("customTimeListOptions",U)}set timepickerLabel(O){const U=this._timepickerLabel;this._timepickerLabel=O,this.requestUpdate("timepickerLabel",U)}_prev(){this._currMonth-=1,this._update()}_next(){this._currMonth+=1,this._update()}_update(){(this._currMonth<0||this._currMonth>11)&&(this._date=new Date(this._currYear,this._currMonth,new Date().getDate()),this._currYear=this._date.getFullYear(),this._currMonth=this._date.getMonth()),this._days=this._getDays(),this.requestUpdate()}_getDays(){const O=[],U=startOfMonth(new Date(this._currYear,this._currMonth)),G=endOfMonth(new Date(this._currYear,this._currMonth)),Y=eachDayOfInterval({start:U,end:G}),K=getDay(U);for(let J=K===0?6:K-1;J>0;J-=1)O.push(0);for(const J of Y)O.push(J.getDate());return O}_isToday(O){const U=new Date;return O===U.getDate()&&this._currMonth===U.getMonth()&&this._currYear===U.getFullYear()}_isInactive(O){const U=new Date(this._currYear,this._currMonth,O);return O?this._minDate&&this._maxDate?!(U>=this._minDate&&U<=this._maxDate):this._minDate?!(U>=this._minDate):this._maxDate?!(U<=this._maxDate):!1:!0}_isSelected(O){var U,G,Y;return O===((U=this._selectedDate)===null||U===void 0?void 0:U.getDate())&&this._currMonth===((G=this._selectedDate)===null||G===void 0?void 0:G.getMonth())&&this._currYear===((Y=this._selectedDate)===null||Y===void 0?void 0:Y.getFullYear())}_selectDate(O){this._selectedDate=new Date(this._currYear,this._currMonth,O),this.requestUpdate(),!this._showButtons&&this._emitDate()}_onCancel(){const O=new CustomEvent("onCancel",{bubbles:!0,composed:!0});this.dispatchEvent(O)}_onAccept(){this._emitDate()}_emitDate(){var O,U,G,Y,K;const J=(U=(O=this._selectedDate)===null||O===void 0?void 0:O.getDate())===null||U===void 0?void 0:U.toString().padStart(2,"0"),X=(G=this._currMonth+1)===null||G===void 0?void 0:G.toString().padStart(2,"0");let ie=`${J}/${X}/${this._currYear}`;if(this._showTime){const ne=(Y=this._currHour)===null||Y===void 0?void 0:Y.toString().padStart(2,"0"),Q=(K=this._currMin)===null||K===void 0?void 0:K.toString().padStart(2,"0");ie+=` ${ne}:${Q}`}const ee=new CustomEvent("onDateChange",{detail:ie,bubbles:!0,composed:!0});this.dispatchEvent(ee)}_updateCurrentDate(){if(!this._selectedDate){this._currYear=this._date.getFullYear(),this._currMonth=this._date.getMonth();return}this._currMonth=this._selectedDate.getMonth(),this._currYear=this._selectedDate.getFullYear(),this._currHour=this._selectedDate.getHours(),this._currMin=this._selectedDate.getMinutes(),this._days=this._getDays(),this._currHour>=10?this._timepickerValue=`${this._currHour}:`:this._timepickerValue=`0${this._currHour}:`,this._currMin>=10?this._timepickerValue+=this._currMin:this._timepickerValue+=`0${this._currMin}`}_getDateString(O){const U=O==null?void 0:O.replace(/(\d+[/])(\d+[/])/,"$2$1"),G=this._showTime?14:8;return(U==null?void 0:U.length)>G?new Date(U):null}_onSelectTime(O){if(O.detail.status==="VALID"){const U=O.detail.value;this._currHour=+U.substring(0,2),this._currMin=+U.substring(3,5),this.requestUpdate()}}_toggleMonthSelector(){this._showMonthSelector=!0,this.requestUpdate()}_onMonthSelectorClick(O){const U=MONTH.indexOf(O);this._currMonth=U,this._update(),this._showMonthSelector=!1,this.requestUpdate()}_toggleYearSelector(){this._showYearSelector=!0,this.requestUpdate()}_onYearSelectorClick(O){this._currYear=O,this._update(),this._showYearSelector=!1,this.requestUpdate()}_generateYearsRangeOptions(){const O=[];for(let G=this._yearsRangeStart;G<=this._yearsRangeEnd;G+=1)O.push(G);return O.map(G=>{const Y=Q=>{Q&&Q.focus()},K=Q=>{let te=0;const se=this.renderRoot.querySelectorAll(".calendar-selector-options__item--year"),le=se.length-1;Q===se[0]?Y(se[le]):(se.forEach((oe,re)=>{oe===Q&&(te=re)}),Y(se[te-1]))},J=Q=>{let te=0;const se=this.renderRoot.querySelectorAll(".calendar-selector-options__item--year"),le=se.length-1;Q===se[le]?Y(se[0]):(se.forEach((oe,re)=>{oe===Q&&(te=re)}),Y(se[te+1]))},X=Q=>{const te=Q.currentTarget,se=Q;let le=!1;switch(se.key){case"ArrowUp":case"ArrowLeft":K(te),le=!0;break;case"ArrowDown":case"ArrowRight":J(te),le=!0;break;case"Enter":const oe=Q.target,re=this.renderRoot.querySelector('.calendar-selector-options__item--year[tabindex="0"]');re==null||re.setAttribute("tabindex","-1"),Q.target.setAttribute("tabindex","0"),oe.click(),le=!0;break;case"Escape":this.renderRoot.querySelector(".calendar-selector-options__item--selected").click(),le=!0;break}le&&(Q.stopPropagation(),Q.preventDefault())},ee=new Date().getFullYear(),ne={"calendar-selector-options__item--current":G===ee,"calendar-selector-options__item--selected":G===this._currYear};return x`
1037
+ `]}set selectedDate(O){const U=this._selectedDate;this._selectedDate=this._getDateString(O),this._updateCurrentDate(),this.requestUpdate("selectedDate",U)}set minDate(O){const U=this._minDate;this._minDate=this._getDateString(O),this.requestUpdate("minDate",U)}set maxDate(O){const U=this._maxDate;this._maxDate=this._getDateString(O),this.requestUpdate("maxDate",U)}set showTime(O){const U=this._showTime;this._showTime=O,this.requestUpdate("showTime",U)}set showButtons(O){const U=this._showButtons;this._showButtons=O,this.requestUpdate("showButtons",U)}set leftLabel(O){const U=this._leftLabel;this._leftLabel=O,this.requestUpdate("leftLabel",U)}set rightLabel(O){const U=this._rightLabel;this._rightLabel=O,this.requestUpdate("rightLabel",U)}set timepicker(O){const U=this._timepicker;this._timepicker=O,this.requestUpdate("timepicker",U)}set minutesRange(O){const U=this._minutesRange;this._minutesRange=O,this.requestUpdate("minutesRange",U)}set minHour(O){const U=this._minHour;this._minHour=O,this.requestUpdate("minHour",U)}set maxHour(O){const U=this._maxHour;this._maxHour=O,this.requestUpdate("maxHour",U)}set customTimeListOptions(O){const U=this._customTimeListOptions;this._customTimeListOptions=O,this.requestUpdate("customTimeListOptions",U)}set timepickerLabel(O){const U=this._timepickerLabel;this._timepickerLabel=O,this.requestUpdate("timepickerLabel",U)}_prev(){this._currMonth-=1,this._update()}_next(){this._currMonth+=1,this._update()}_update(){(this._currMonth<0||this._currMonth>11)&&(this._date=new Date(this._currYear,this._currMonth,new Date().getDate()),this._currYear=this._date.getFullYear(),this._currMonth=this._date.getMonth()),this._days=this._getDays(),this.requestUpdate()}_getDays(){const O=[],U=startOfMonth(new Date(this._currYear,this._currMonth)),G=endOfMonth(new Date(this._currYear,this._currMonth)),Y=eachDayOfInterval({start:U,end:G}),K=getDay(U);for(let J=K===0?6:K-1;J>0;J-=1)O.push(0);for(const J of Y)O.push(J.getDate());return O}_isToday(O){const U=new Date;return O===U.getDate()&&this._currMonth===U.getMonth()&&this._currYear===U.getFullYear()}_isInactive(O){const U=new Date(this._currYear,this._currMonth,O);return O?this._minDate&&this._maxDate?!(U>=this._minDate&&U<=this._maxDate):this._minDate?!(U>=this._minDate):this._maxDate?!(U<=this._maxDate):!1:!0}_isSelected(O){var U,G,Y;return O===((U=this._selectedDate)===null||U===void 0?void 0:U.getDate())&&this._currMonth===((G=this._selectedDate)===null||G===void 0?void 0:G.getMonth())&&this._currYear===((Y=this._selectedDate)===null||Y===void 0?void 0:Y.getFullYear())}_selectDate(O){this._selectedDate=new Date(this._currYear,this._currMonth,O),this.requestUpdate(),!this._showButtons&&this._emitDate()}_onCancel(){const O=new CustomEvent("onCancel",{bubbles:!0,composed:!0});this.dispatchEvent(O)}_onAccept(){this._emitDate()}_emitDate(){var O,U,G,Y,K;const J=(U=(O=this._selectedDate)===null||O===void 0?void 0:O.getDate())===null||U===void 0?void 0:U.toString().padStart(2,"0"),X=(G=this._currMonth+1)===null||G===void 0?void 0:G.toString().padStart(2,"0");let se=`${J}/${X}/${this._currYear}`;if(this._showTime){const ne=(Y=this._currHour)===null||Y===void 0?void 0:Y.toString().padStart(2,"0"),Q=(K=this._currMin)===null||K===void 0?void 0:K.toString().padStart(2,"0");se+=` ${ne}:${Q}`}const ee=new CustomEvent("onDateChange",{detail:se,bubbles:!0,composed:!0});this.dispatchEvent(ee)}_updateCurrentDate(){if(!this._selectedDate){this._currYear=this._date.getFullYear(),this._currMonth=this._date.getMonth();return}this._currMonth=this._selectedDate.getMonth(),this._currYear=this._selectedDate.getFullYear(),this._currHour=this._selectedDate.getHours(),this._currMin=this._selectedDate.getMinutes(),this._days=this._getDays(),this._currHour>=10?this._timepickerValue=`${this._currHour}:`:this._timepickerValue=`0${this._currHour}:`,this._currMin>=10?this._timepickerValue+=this._currMin:this._timepickerValue+=`0${this._currMin}`}_getDateString(O){const U=O==null?void 0:O.replace(/(\d+[/])(\d+[/])/,"$2$1"),G=this._showTime?14:8;return(U==null?void 0:U.length)>G?new Date(U):null}_onSelectTime(O){if(O.detail.status==="VALID"){const U=O.detail.value;this._currHour=+U.substring(0,2),this._currMin=+U.substring(3,5),this.requestUpdate()}}_toggleMonthSelector(){this._showMonthSelector=!0,this.requestUpdate()}_onMonthSelectorClick(O){const U=MONTH.indexOf(O);this._currMonth=U,this._update(),this._showMonthSelector=!1,this.requestUpdate()}_toggleYearSelector(){this._showYearSelector=!0,this.requestUpdate()}_onYearSelectorClick(O){this._currYear=O,this._update(),this._showYearSelector=!1,this.requestUpdate()}_generateYearsRangeOptions(){const O=[];for(let G=this._yearsRangeStart;G<=this._yearsRangeEnd;G+=1)O.push(G);return O.map(G=>{const Y=Q=>{Q&&Q.focus()},K=Q=>{let te=0;const ie=this.renderRoot.querySelectorAll(".calendar-selector-options__item--year"),le=ie.length-1;Q===ie[0]?Y(ie[le]):(ie.forEach((oe,re)=>{oe===Q&&(te=re)}),Y(ie[te-1]))},J=Q=>{let te=0;const ie=this.renderRoot.querySelectorAll(".calendar-selector-options__item--year"),le=ie.length-1;Q===ie[le]?Y(ie[0]):(ie.forEach((oe,re)=>{oe===Q&&(te=re)}),Y(ie[te+1]))},X=Q=>{const te=Q.currentTarget,ie=Q;let le=!1;switch(ie.key){case"ArrowUp":case"ArrowLeft":K(te),le=!0;break;case"ArrowDown":case"ArrowRight":J(te),le=!0;break;case"Enter":const oe=Q.target,re=this.renderRoot.querySelector('.calendar-selector-options__item--year[tabindex="0"]');re==null||re.setAttribute("tabindex","-1"),Q.target.setAttribute("tabindex","0"),oe.click(),le=!0;break;case"Escape":this.renderRoot.querySelector(".calendar-selector-options__item--selected").click(),le=!0;break}le&&(Q.stopPropagation(),Q.preventDefault())},ee=new Date().getFullYear(),ne={"calendar-selector-options__item--current":G===ee,"calendar-selector-options__item--selected":G===this._currYear};return x`
1025
1038
  <div
1026
1039
  class="calendar-selector-options__item calendar-selector-options__item--year ${o(ne)}"
1027
1040
  tabindex="${G===this._currYear?0:-1}"
@@ -1031,7 +1044,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1031
1044
  >
1032
1045
  ${G}
1033
1046
  </div>
1034
- `})}_generateMonthsOptions(){return MONTH.map(U=>{const G=ne=>{ne&&ne.focus()},Y=ne=>{let Q=0;const te=this.renderRoot.querySelectorAll(".calendar-selector-options__item--month"),se=te.length-1;ne===te[0]?G(te[se]):(te.forEach((le,oe)=>{le===ne&&(Q=oe)}),G(te[Q-1]))},K=ne=>{let Q=0;const te=this.renderRoot.querySelectorAll(".calendar-selector-options__item--month"),se=te.length-1;ne===te[se]?G(te[0]):(te.forEach((le,oe)=>{le===ne&&(Q=oe)}),G(te[Q+1]))},J=ne=>{const Q=ne.currentTarget,te=ne;let se=!1;switch(te.key){case"ArrowUp":case"ArrowLeft":Y(Q),se=!0;break;case"ArrowDown":case"ArrowRight":K(Q),se=!0;break;case"Enter":const le=ne.target,oe=this.renderRoot.querySelector('.calendar-selector-options__item--month[tabindex="0"]');oe==null||oe.setAttribute("tabindex","-1"),ne.target.setAttribute("tabindex","0"),le.click(),se=!0;break;case"Escape":this.renderRoot.querySelector(".calendar-selector-options__item--selected").click(),se=!0;break}se&&(ne.stopPropagation(),ne.preventDefault())},ie=new Date().getMonth(),ee={"calendar-selector-options__item--current":MONTH.indexOf(U)===ie,"calendar-selector-options__item--selected":MONTH.indexOf(U)===this._currMonth};return x`
1047
+ `})}_generateMonthsOptions(){return MONTH.map(U=>{const G=ne=>{ne&&ne.focus()},Y=ne=>{let Q=0;const te=this.renderRoot.querySelectorAll(".calendar-selector-options__item--month"),ie=te.length-1;ne===te[0]?G(te[ie]):(te.forEach((le,oe)=>{le===ne&&(Q=oe)}),G(te[Q-1]))},K=ne=>{let Q=0;const te=this.renderRoot.querySelectorAll(".calendar-selector-options__item--month"),ie=te.length-1;ne===te[ie]?G(te[0]):(te.forEach((le,oe)=>{le===ne&&(Q=oe)}),G(te[Q+1]))},J=ne=>{const Q=ne.currentTarget,te=ne;let ie=!1;switch(te.key){case"ArrowUp":case"ArrowLeft":Y(Q),ie=!0;break;case"ArrowDown":case"ArrowRight":K(Q),ie=!0;break;case"Enter":const le=ne.target,oe=this.renderRoot.querySelector('.calendar-selector-options__item--month[tabindex="0"]');oe==null||oe.setAttribute("tabindex","-1"),ne.target.setAttribute("tabindex","0"),le.click(),ie=!0;break;case"Escape":this.renderRoot.querySelector(".calendar-selector-options__item--selected").click(),ie=!0;break}ie&&(ne.stopPropagation(),ne.preventDefault())},se=new Date().getMonth(),ee={"calendar-selector-options__item--current":MONTH.indexOf(U)===se,"calendar-selector-options__item--selected":MONTH.indexOf(U)===this._currMonth};return x`
1035
1048
  <div
1036
1049
  class="calendar-selector-options__item calendar-selector-options__item--month ${o(ee)}"
1037
1050
  tabindex="${MONTH.indexOf(U)===this._currMonth?0:-1}"
@@ -1352,7 +1365,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1352
1365
  :host([small]) dss-Calendar {
1353
1366
  top: 48px;
1354
1367
  }
1355
- `}get _input(){var O;return(O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector("input")}set value(O){const U=this._value;this._value=O,this._input&&(this._input.value=O),this.requestUpdate("value",U)}set label(O){const U=this._label;this._label=O,this.requestUpdate("label",U)}set placeHolder(O){const U=this._placeHolder;this._placeHolder=O,this.requestUpdate("placeHolder",U)}set required(O){const U=this._required;this._required=O,this.requestUpdate("required",U)}set disabled(O){const U=this._disabled;this._disabled=O,this.requestUpdate("disabled",U)}set readonly(O){const U=this._readonly;this._readonly=O,this.requestUpdate("readonly",U)}set showTime(O){const U=this._showTime;this._showTime=O,this.requestUpdate("showTime",U)}set showButtons(O){const U=this._showButtons;this._showButtons=O,this.requestUpdate("showButtons",U)}set leftLabel(O){const U=this._leftLabel;this._leftLabel=O,this.requestUpdate("leftLabel",U)}set rightLabel(O){const U=this._rightLabel;this._rightLabel=O,this.requestUpdate("rightLabel",U)}set minDate(O){const U=this._minDate;this._minDate=O,this.requestUpdate("minDate",U)}set maxDate(O){const U=this._maxDate;this._maxDate=O,this.requestUpdate("maxDate",U)}set invalid(O){const U=this._invalid;this._invalid=O,this.requestUpdate("invalid",U)}get value(){let O="";return this._input?O=this._input.value:O=this._value,O}get form(){return this._internals.form}get name(){return this.getAttribute("name")}get type(){return this.localName}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}formResetCallback(){this._input.value="",this.requestUpdate()}async firstUpdated(){try{await this.updateComplete,this._value&&(this._input.value=this._value),this._closeDropdown(),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}_closeDropdown(){document.addEventListener("click",O=>{O.target!==this&&(this._showCalendar=!1,this._isFocused=!1,this.requestUpdate())}),document.addEventListener("focusout",O=>{O.target===this&&(this._showCalendar=!1,this._isFocused=!1,this.requestUpdate())})}_handleKeyUp(O){var U,G,Y,K,J,X;if((O==null?void 0:O.key)==="Tab"?(this._isFocused=!0,this._handleBlur()):(O==null?void 0:O.key)==="Enter"||(O==null?void 0:O.key)===" "?(this._showCalendar=!0,this._handleBlur()):(O==null?void 0:O.key)==="Escape"&&(this._isFocused=!0,this._showCalendar=!1,this._handleBlur()),O.key==="Enter"&&((U=this._input.value)===null||U===void 0?void 0:U.length)>7){const ie=(G=this._input.value)===null||G===void 0?void 0:G.replace(/(\d+[/])(\d+[/])/,"$2$1"),ee=new Date(ie),ne=(Y=ee.getDate())===null||Y===void 0?void 0:Y.toString().padStart(2,"0"),Q=(K=ee.getMonth()+1)===null||K===void 0?void 0:K.toString().padStart(2,"0"),te=ee.getFullYear(),se=(J=ee.getHours())===null||J===void 0?void 0:J.toString().padStart(2,"0"),le=(X=ee.getMinutes())===null||X===void 0?void 0:X.toString().padStart(2,"0");let oe=`${ne}/${Q}/${te}`;this._showTime&&(oe+=` ${se}:${le}`),this._input.value=oe,this._dispatchValueChange(),this.requestUpdate()}}_handleInput(O){var U;const G=(U=O.target.value)===null||U===void 0?void 0:U.replace(/\D/g,"");this._input.value=this._formatDate(G),this._dispatchValueChange(),this.requestUpdate()}_formatDate(O){let U=O.substring(0,2),G=O.substring(2,4);const Y=O.substring(4,8);let K=O.substring(8,10),J=O.substring(10,12);Number(U)>3&&(U=U==null?void 0:U.padStart(2,"0")),Number(G)>1&&(G=G==null?void 0:G.padStart(2,"0")),Number(U)>31&&(U="31"),Number(G)>12&&(G="12"),G==="02"&&Number(U)>28&&(Y==null?void 0:Y.length)===4&&(U=new Date(Number(Y),1,29).getMonth()===1?"29":"28");let X=`${U}${G?`/${G}`:""}${Y?`/${Y}`:""}`;return this._showTime&&(Number(K)>2&&(K=K==null?void 0:K.padStart(2,"0")),Number(K)>23&&(K="23"),Number(J)>5&&(J=J==null?void 0:J.padStart(2,"0")),X=`${X}${K?` ${K}`:""}${J?`:${J}`:""}`),X}_handleFocus(){this._readonly||(this._placeHolder=this._showTime?"DD/MM/YYYY HH:MM":"DD/MM/YYYY",this.requestUpdate())}_handleBlur(){this.requestUpdate()}_handelLabelClick(){var O;(O=this._input)===null||O===void 0||O.focus(),this.requestUpdate()}_onDateChange(O){const U=O.detail;this._input.value=U,this._showCalendar=!1,this._dispatchValueChange(),this.requestUpdate()}_onCancel(){this._showCalendar=!1,this._input.value=this._previousDate||"",this.placeHolder="",this.requestUpdate()}_onclick(){var O,U;this._disabled||this._readonly||(this._showCalendar=!this._showCalendar,this._previousDate=this._input.value,this._showCalendar?(O=this._input)===null||O===void 0||O.focus():((U=this._input)===null||U===void 0||U.blur(),this._onCancel()),this.requestUpdate())}_dispatchValueChange(){const O={detail:this._input.value,bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onValueChange",O))}render(){var O;const U={"dss-input--invalid":this._invalid,"dss-input--disabled":this._disabled},G={"dss-input__group--focused":((O=this._input)===null||O===void 0?void 0:O.value)||this._placeHolder||this._showCalendar||this._isFocused,"dss-input__group--required":this._required,"dss-input__group--active":this._showCalendar||this._isFocused};return x`
1368
+ `}get _input(){var O;return(O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector("input")}set value(O){const U=this._value;this._value=O,this._input&&(this._input.value=O),this.requestUpdate("value",U)}set label(O){const U=this._label;this._label=O,this.requestUpdate("label",U)}set placeHolder(O){const U=this._placeHolder;this._placeHolder=O,this.requestUpdate("placeHolder",U)}set required(O){const U=this._required;this._required=O,this.requestUpdate("required",U)}set disabled(O){const U=this._disabled;this._disabled=O,this.requestUpdate("disabled",U)}set readonly(O){const U=this._readonly;this._readonly=O,this.requestUpdate("readonly",U)}set showTime(O){const U=this._showTime;this._showTime=O,this.requestUpdate("showTime",U)}set showButtons(O){const U=this._showButtons;this._showButtons=O,this.requestUpdate("showButtons",U)}set leftLabel(O){const U=this._leftLabel;this._leftLabel=O,this.requestUpdate("leftLabel",U)}set rightLabel(O){const U=this._rightLabel;this._rightLabel=O,this.requestUpdate("rightLabel",U)}set minDate(O){const U=this._minDate;this._minDate=O,this.requestUpdate("minDate",U)}set maxDate(O){const U=this._maxDate;this._maxDate=O,this.requestUpdate("maxDate",U)}set invalid(O){const U=this._invalid;this._invalid=O,this.requestUpdate("invalid",U)}get value(){let O="";return this._input?O=this._input.value:O=this._value,O}get form(){return this._internals.form}get name(){return this.getAttribute("name")}get type(){return this.localName}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}formResetCallback(){this._input.value="",this.requestUpdate()}async firstUpdated(){try{await this.updateComplete,this._value&&(this._input.value=this._value),this._closeDropdown(),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}_closeDropdown(){document.addEventListener("click",O=>{O.target!==this&&(this._showCalendar=!1,this._isFocused=!1,this.requestUpdate())}),document.addEventListener("focusout",O=>{O.target===this&&(this._showCalendar=!1,this._isFocused=!1,this.requestUpdate())})}_handleKeyUp(O){var U,G,Y,K,J,X;if((O==null?void 0:O.key)==="Tab"?(this._isFocused=!0,this._handleBlur()):(O==null?void 0:O.key)==="Enter"||(O==null?void 0:O.key)===" "?(this._showCalendar=!0,this._handleBlur()):(O==null?void 0:O.key)==="Escape"&&(this._isFocused=!0,this._showCalendar=!1,this._handleBlur()),O.key==="Enter"&&((U=this._input.value)===null||U===void 0?void 0:U.length)>7){const se=(G=this._input.value)===null||G===void 0?void 0:G.replace(/(\d+[/])(\d+[/])/,"$2$1"),ee=new Date(se),ne=(Y=ee.getDate())===null||Y===void 0?void 0:Y.toString().padStart(2,"0"),Q=(K=ee.getMonth()+1)===null||K===void 0?void 0:K.toString().padStart(2,"0"),te=ee.getFullYear(),ie=(J=ee.getHours())===null||J===void 0?void 0:J.toString().padStart(2,"0"),le=(X=ee.getMinutes())===null||X===void 0?void 0:X.toString().padStart(2,"0");let oe=`${ne}/${Q}/${te}`;this._showTime&&(oe+=` ${ie}:${le}`),this._input.value=oe,this._dispatchValueChange(),this.requestUpdate()}}_handleInput(O){var U;const G=(U=O.target.value)===null||U===void 0?void 0:U.replace(/\D/g,"");this._input.value=this._formatDate(G),this._dispatchValueChange(),this.requestUpdate()}_formatDate(O){let U=O.substring(0,2),G=O.substring(2,4);const Y=O.substring(4,8);let K=O.substring(8,10),J=O.substring(10,12);Number(U)>3&&(U=U==null?void 0:U.padStart(2,"0")),Number(G)>1&&(G=G==null?void 0:G.padStart(2,"0")),Number(U)>31&&(U="31"),Number(G)>12&&(G="12"),G==="02"&&Number(U)>28&&(Y==null?void 0:Y.length)===4&&(U=new Date(Number(Y),1,29).getMonth()===1?"29":"28");let X=`${U}${G?`/${G}`:""}${Y?`/${Y}`:""}`;return this._showTime&&(Number(K)>2&&(K=K==null?void 0:K.padStart(2,"0")),Number(K)>23&&(K="23"),Number(J)>5&&(J=J==null?void 0:J.padStart(2,"0")),X=`${X}${K?` ${K}`:""}${J?`:${J}`:""}`),X}_handleFocus(){this._readonly||(this._placeHolder=this._showTime?"DD/MM/YYYY HH:MM":"DD/MM/YYYY",this.requestUpdate())}_handleBlur(){this.requestUpdate()}_handelLabelClick(){var O;(O=this._input)===null||O===void 0||O.focus(),this.requestUpdate()}_onDateChange(O){const U=O.detail;this._input.value=U,this._showCalendar=!1,this._dispatchValueChange(),this.requestUpdate()}_onCancel(){this._showCalendar=!1,this._input.value=this._previousDate||"",this.placeHolder="",this.requestUpdate()}_onclick(){var O,U;this._disabled||this._readonly||(this._showCalendar=!this._showCalendar,this._previousDate=this._input.value,this._showCalendar?(O=this._input)===null||O===void 0||O.focus():((U=this._input)===null||U===void 0||U.blur(),this._onCancel()),this.requestUpdate())}_dispatchValueChange(){const O={detail:this._input.value,bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onValueChange",O))}render(){var O;const U={"dss-input--invalid":this._invalid,"dss-input--disabled":this._disabled},G={"dss-input__group--focused":((O=this._input)===null||O===void 0?void 0:O.value)||this._placeHolder||this._showCalendar||this._isFocused,"dss-input__group--required":this._required,"dss-input__group--active":this._showCalendar||this._isFocused};return x`
1356
1369
  <div
1357
1370
  class="dss-input ${o(U)}"
1358
1371
  @click=${this._onclick}
@@ -1644,7 +1657,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1644
1657
  .dss-calendar--md {
1645
1658
  top: 44px;
1646
1659
  }
1647
- `]}get _input(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="input"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}get _label(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="label"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}set showTime(O){const U=this._showTime;this._showTime=O,this._showButtons=!0,this.requestUpdate("showTime",U)}set showButtons(O){const U=this._showButtons;this._showButtons=O,this.requestUpdate("showButtons",U)}set leftLabel(O){const U=this._leftLabel;this._leftLabel=O,this.requestUpdate("leftLabel",U)}set rightLabel(O){const U=this._rightLabel;this._rightLabel=O,this.requestUpdate("rightLabel",U)}set minDate(O){const U=this._minDate;this._minDate=O,this.requestUpdate("minDate",U)}set maxDate(O){const U=this._maxDate;this._maxDate=O,this.requestUpdate("maxDate",U)}set invalid(O){const U=this._invalid;this._invalid=O,this.requestUpdate("invalid",U)}set inputSize(O){const U=this._inputSize;O==="md"?this._inputSize=O:this._inputSize="lg",this.requestUpdate("inputSize",U)}set helpText(O){const U=this._helpText;this._helpText=O,this.requestUpdate("helpText",U)}set timepicker(O){const U=this._timepicker;this._timepicker=O,this.requestUpdate("timepicker",U)}set minutesRange(O){const U=this._minutesRange;this._minutesRange=O,this.requestUpdate("minutesRange",U)}set minHour(O){const U=this._minHour;this._minHour=O,this.requestUpdate("minHour",U)}set maxHour(O){const U=this._maxHour;this._maxHour=O,this.requestUpdate("maxHour",U)}set customTimeListOptions(O){const U=this._customTimeListOptions;this._customTimeListOptions=O,this.requestUpdate("customTimeListOptions",U)}set timepickerLabel(O){const U=this._timepickerLabel;this._timepickerLabel=O,this.requestUpdate("timepickerLabel",U)}disconnectedCallback(){this.observer.disconnect()}async firstUpdated(){try{await this.updateComplete,this._input&&(this._checkInputAttributes(),this.observer.observe(this._input,this.observerConfig)),this._closeDropdown(),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}_checkInputAttributes(){var O,U,G,Y,K,J;const X=(O=this._input)===null||O===void 0?void 0:O.getAttribute("placeholder");X&&(this._placeholder=X),((U=this._input)===null||U===void 0?void 0:U.getAttribute("readonly"))!==null&&(this._readonly=!0),((G=this._input)===null||G===void 0?void 0:G.getAttribute("disabled"))!==null&&(this._disabled=!0),((Y=this._input)===null||Y===void 0?void 0:Y.getAttribute("required"))!==null&&(this._required=!0),!((K=this._input)===null||K===void 0)&&K.value&&((J=this._input)===null||J===void 0?void 0:J.value)!==""&&this._handleValidity(),this.requestUpdate()}_handleValidity(){var O;const U=(O=this._input)===null||O===void 0?void 0:O.checkValidity();U!==void 0&&(this._inputValidity=U)}_closeDropdown(){document.addEventListener("click",O=>{var U;O.composedPath().includes(this)||this._showCalendar&&(this._placeholder="",(U=this._input)===null||U===void 0||U.removeAttribute("placeholder"),this._isFocused=!1,this._showCalendar=!1,this.requestUpdate())}),this.addEventListener("focusout",O=>{var U;const G=O.relatedTarget;G!==null&&G!==this&&G!==this._input&&G!==this._label&&this._showCalendar&&((U=this._input)===null||U===void 0||U.removeAttribute("placeholder"),this._placeholder="",this._isFocused=!1,this._showCalendar=!1,this.requestUpdate())})}_handleKeyUp(O){var U,G,Y,K,J,X;if((O==null?void 0:O.key)==="Tab"?(this._isFocused=!0,this._handleBlur()):(O==null?void 0:O.key)==="Enter"||(O==null?void 0:O.key)===" "?(this._showCalendar=!0,this._handleBlur()):(O==null?void 0:O.key)==="Escape"&&(this._isFocused=!0,this._showCalendar=!1,this._handleBlur()),O.key==="Enter"&&this._input&&((U=this._input.value)===null||U===void 0?void 0:U.length)>7&&this._input){const ie=(G=this._input.value)===null||G===void 0?void 0:G.replace(/(\d+[/])(\d+[/])/,"$2$1"),ee=new Date(ie),ne=(Y=ee.getDate())===null||Y===void 0?void 0:Y.toString().padStart(2,"0"),Q=(K=ee.getMonth()+1)===null||K===void 0?void 0:K.toString().padStart(2,"0"),te=ee.getFullYear(),se=(J=ee.getHours())===null||J===void 0?void 0:J.toString().padStart(2,"0"),le=(X=ee.getMinutes())===null||X===void 0?void 0:X.toString().padStart(2,"0");let oe=`${ne}/${Q}/${te}`;this._showTime&&(oe+=` ${se}:${le}`,this._handleValidity()),this._input&&(this._input.value=oe),this._dispatchValueChange(),this.requestUpdate()}}_handleInput(O){var U;const G=(U=O.target.value)===null||U===void 0?void 0:U.replace(/\D/g,"");this._input&&(this._input.value=this._formatDate(G),this._handleValidity()),this._dispatchValueChange(),this.requestUpdate()}_formatDate(O){let U=O.substring(0,2),G=O.substring(2,4);const Y=O.substring(4,8);let K=O.substring(8,10),J=O.substring(10,12);Number(U)>3&&(U=U==null?void 0:U.padStart(2,"0")),Number(G)>1&&(G=G==null?void 0:G.padStart(2,"0")),Number(U)>31&&(U="31"),Number(G)>12&&(G="12"),G==="02"&&Number(U)>28&&(Y==null?void 0:Y.length)===4&&(U=new Date(Number(Y),1,29).getMonth()===1?"29":"28");let X=`${U}${G?`/${G}`:""}${Y?`/${Y}`:""}`;return this._showTime&&(Number(K)>2&&(K=K==null?void 0:K.padStart(2,"0")),Number(K)>23&&(K="23"),Number(J)>5&&(J=J==null?void 0:J.padStart(2,"0")),X=`${X}${K?` ${K}`:""}${J?`:${J}`:""}`),X}_handleFocus(){var O;this._readonly||(this._placeholder=this._showTime?"DD/MM/YYYY HH:MM":"DD/MM/YYYY",(O=this._input)===null||O===void 0||O.setAttribute("placeholder",this._placeholder),this.requestUpdate())}_handleBlur(){this.requestUpdate()}_focusInput(){var O;(O=this._input)===null||O===void 0||O.focus(),this._handleClick()}_handleClick(){this._showCalendar=!0,this.requestUpdate()}_onDateChange(O){var U;const G=O.detail;this._input&&(this._input.value=G,this._handleValidity()),(U=this._input)===null||U===void 0||U.removeAttribute("placeholder"),this._placeholder="",this._isFocused=!1,this._showCalendar=!1,this._dispatchValueChange(),this.requestUpdate()}_onCancel(){var O;(O=this._input)===null||O===void 0||O.removeAttribute("placeholder"),this._placeholder="",this._isFocused=!1,this._showCalendar=!1,this._input&&(this._input.value=this._previousDate||"",this._handleValidity()),this.requestUpdate()}_dispatchValueChange(){var O;const U={detail:(O=this._input)===null||O===void 0?void 0:O.value,bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onValueChange",U))}render(){var O,U;const G={"dss-input-group--focused":((O=this._input)===null||O===void 0?void 0:O.value)||this._placeholder||this._isFocused,"dss-input-group--lg":this._inputSize==="lg","dss-input-group--md":this._inputSize==="md","dss-input-group--invalid":this._invalid||!this._inputValidity,"dss-input-group--required":this._required,"dss-input-group--disabled":this._disabled,"dss-input-group--read-only":this._readonly},Y={"dss-datepicker-help--invalid":this._invalid||!this._inputValidity,"dss-datepicker-help--disabled":this._disabled},K={"dss-calendar":!0,"dss-calendar--disabled":this._disabled,"dss-calendar--md":this._inputSize==="md"};return x`
1660
+ `]}get _input(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="input"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}get _label(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="label"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}set showTime(O){const U=this._showTime;this._showTime=O,this._showButtons=!0,this.requestUpdate("showTime",U)}set showButtons(O){const U=this._showButtons;this._showButtons=O,this.requestUpdate("showButtons",U)}set leftLabel(O){const U=this._leftLabel;this._leftLabel=O,this.requestUpdate("leftLabel",U)}set rightLabel(O){const U=this._rightLabel;this._rightLabel=O,this.requestUpdate("rightLabel",U)}set minDate(O){const U=this._minDate;this._minDate=O,this.requestUpdate("minDate",U)}set maxDate(O){const U=this._maxDate;this._maxDate=O,this.requestUpdate("maxDate",U)}set invalid(O){const U=this._invalid;this._invalid=O,this.requestUpdate("invalid",U)}set inputSize(O){const U=this._inputSize;O==="md"?this._inputSize=O:this._inputSize="lg",this.requestUpdate("inputSize",U)}set helpText(O){const U=this._helpText;this._helpText=O,this.requestUpdate("helpText",U)}set timepicker(O){const U=this._timepicker;this._timepicker=O,this.requestUpdate("timepicker",U)}set minutesRange(O){const U=this._minutesRange;this._minutesRange=O,this.requestUpdate("minutesRange",U)}set minHour(O){const U=this._minHour;this._minHour=O,this.requestUpdate("minHour",U)}set maxHour(O){const U=this._maxHour;this._maxHour=O,this.requestUpdate("maxHour",U)}set customTimeListOptions(O){const U=this._customTimeListOptions;this._customTimeListOptions=O,this.requestUpdate("customTimeListOptions",U)}set timepickerLabel(O){const U=this._timepickerLabel;this._timepickerLabel=O,this.requestUpdate("timepickerLabel",U)}disconnectedCallback(){this.observer.disconnect()}async firstUpdated(){try{await this.updateComplete,this._input&&(this._checkInputAttributes(),this.observer.observe(this._input,this.observerConfig)),this._closeDropdown(),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}_checkInputAttributes(){var O,U,G,Y,K,J;const X=(O=this._input)===null||O===void 0?void 0:O.getAttribute("placeholder");X&&(this._placeholder=X),((U=this._input)===null||U===void 0?void 0:U.getAttribute("readonly"))!==null&&(this._readonly=!0),((G=this._input)===null||G===void 0?void 0:G.getAttribute("disabled"))!==null&&(this._disabled=!0),((Y=this._input)===null||Y===void 0?void 0:Y.getAttribute("required"))!==null&&(this._required=!0),!((K=this._input)===null||K===void 0)&&K.value&&((J=this._input)===null||J===void 0?void 0:J.value)!==""&&this._handleValidity(),this.requestUpdate()}_handleValidity(){var O;const U=(O=this._input)===null||O===void 0?void 0:O.checkValidity();U!==void 0&&(this._inputValidity=U)}_closeDropdown(){document.addEventListener("click",O=>{var U;O.composedPath().includes(this)||this._showCalendar&&(this._placeholder="",(U=this._input)===null||U===void 0||U.removeAttribute("placeholder"),this._isFocused=!1,this._showCalendar=!1,this.requestUpdate())}),this.addEventListener("focusout",O=>{var U;const G=O.relatedTarget;G!==null&&G!==this&&G!==this._input&&G!==this._label&&this._showCalendar&&((U=this._input)===null||U===void 0||U.removeAttribute("placeholder"),this._placeholder="",this._isFocused=!1,this._showCalendar=!1,this.requestUpdate())})}_handleKeyUp(O){var U,G,Y,K,J,X;if((O==null?void 0:O.key)==="Tab"?(this._isFocused=!0,this._handleBlur()):(O==null?void 0:O.key)==="Enter"||(O==null?void 0:O.key)===" "?(this._showCalendar=!0,this._handleBlur()):(O==null?void 0:O.key)==="Escape"&&(this._isFocused=!0,this._showCalendar=!1,this._handleBlur()),O.key==="Enter"&&this._input&&((U=this._input.value)===null||U===void 0?void 0:U.length)>7&&this._input){const se=(G=this._input.value)===null||G===void 0?void 0:G.replace(/(\d+[/])(\d+[/])/,"$2$1"),ee=new Date(se),ne=(Y=ee.getDate())===null||Y===void 0?void 0:Y.toString().padStart(2,"0"),Q=(K=ee.getMonth()+1)===null||K===void 0?void 0:K.toString().padStart(2,"0"),te=ee.getFullYear(),ie=(J=ee.getHours())===null||J===void 0?void 0:J.toString().padStart(2,"0"),le=(X=ee.getMinutes())===null||X===void 0?void 0:X.toString().padStart(2,"0");let oe=`${ne}/${Q}/${te}`;this._showTime&&(oe+=` ${ie}:${le}`,this._handleValidity()),this._input&&(this._input.value=oe),this._dispatchValueChange(),this.requestUpdate()}}_handleInput(O){var U;const G=(U=O.target.value)===null||U===void 0?void 0:U.replace(/\D/g,"");this._input&&(this._input.value=this._formatDate(G),this._handleValidity()),this._dispatchValueChange(),this.requestUpdate()}_formatDate(O){let U=O.substring(0,2),G=O.substring(2,4);const Y=O.substring(4,8);let K=O.substring(8,10),J=O.substring(10,12);Number(U)>3&&(U=U==null?void 0:U.padStart(2,"0")),Number(G)>1&&(G=G==null?void 0:G.padStart(2,"0")),Number(U)>31&&(U="31"),Number(G)>12&&(G="12"),G==="02"&&Number(U)>28&&(Y==null?void 0:Y.length)===4&&(U=new Date(Number(Y),1,29).getMonth()===1?"29":"28");let X=`${U}${G?`/${G}`:""}${Y?`/${Y}`:""}`;return this._showTime&&(Number(K)>2&&(K=K==null?void 0:K.padStart(2,"0")),Number(K)>23&&(K="23"),Number(J)>5&&(J=J==null?void 0:J.padStart(2,"0")),X=`${X}${K?` ${K}`:""}${J?`:${J}`:""}`),X}_handleFocus(){var O;this._readonly||(this._placeholder=this._showTime?"DD/MM/YYYY HH:MM":"DD/MM/YYYY",(O=this._input)===null||O===void 0||O.setAttribute("placeholder",this._placeholder),this.requestUpdate())}_handleBlur(){this.requestUpdate()}_focusInput(){var O;(O=this._input)===null||O===void 0||O.focus(),this._handleClick()}_handleClick(){this._showCalendar=!0,this.requestUpdate()}_onDateChange(O){var U;const G=O.detail;this._input&&(this._input.value=G,this._handleValidity()),(U=this._input)===null||U===void 0||U.removeAttribute("placeholder"),this._placeholder="",this._isFocused=!1,this._showCalendar=!1,this._dispatchValueChange(),this.requestUpdate()}_onCancel(){var O;(O=this._input)===null||O===void 0||O.removeAttribute("placeholder"),this._placeholder="",this._isFocused=!1,this._showCalendar=!1,this._input&&(this._input.value=this._previousDate||"",this._handleValidity()),this.requestUpdate()}_dispatchValueChange(){var O;const U={detail:(O=this._input)===null||O===void 0?void 0:O.value,bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onValueChange",U))}render(){var O,U;const G={"dss-input-group--focused":((O=this._input)===null||O===void 0?void 0:O.value)||this._placeholder||this._isFocused,"dss-input-group--lg":this._inputSize==="lg","dss-input-group--md":this._inputSize==="md","dss-input-group--invalid":this._invalid||!this._inputValidity,"dss-input-group--required":this._required,"dss-input-group--disabled":this._disabled,"dss-input-group--read-only":this._readonly},Y={"dss-datepicker-help--invalid":this._invalid||!this._inputValidity,"dss-datepicker-help--disabled":this._disabled},K={"dss-calendar":!0,"dss-calendar--disabled":this._disabled,"dss-calendar--md":this._inputSize==="md"};return x`
1648
1661
  <div class="dss-datepicker">
1649
1662
  <div
1650
1663
  class="dss-input-group dss-input-group--has-icon ${o(G)}"
@@ -1979,10 +1992,10 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1979
1992
  input[type='number'] {
1980
1993
  -moz-appearance: textfield;
1981
1994
  }
1982
- `}set value(O){const U=this._value;this._value=O,this.requestUpdate("value",U)}set type(O){const U=this._type;this._type=O,this.requestUpdate("type",U)}set label(O){const U=this._label;this._label=O,this.requestUpdate("label",U)}set description(O){const U=this._description;this._description=O,this.requestUpdate("description",U)}set placeHolder(O){const U=this._placeHolder;this._placeHolder=O,this.requestUpdate("placeHolder",U)}set required(O){const U=this._required;this._required=O,this.requestUpdate("required",U)}set disabled(O){const U=this._disabled;this._disabled=O,this.requestUpdate("disabled",U)}set readonly(O){const U=this._readonly;this._readonly=O,this.requestUpdate("readonly",U)}set icon(O){const U=this._icon;this._icon=O,this.requestUpdate("icon",U)}set clearable(O){const U=this._clearable;this._clearable=O,this.requestUpdate("clearable",U)}set showError(O){const U=this._showError;this._showError=O,this.requestUpdate("showError",U)}set maxLength(O){const U=this._maxLength;this._maxLength=O,this.requestUpdate("maxLength",U)}set minLength(O){const U=this._minLength;this._minLength=O,this.requestUpdate("minLength",U)}set max(O){const U=this._max;this._max=O,this.requestUpdate("max",U)}set min(O){const U=this._min;this._min=O,this.requestUpdate("min",U)}set step(O){const U=this._step;this._step=O,this.requestUpdate("step",U)}get _input(){var O;return(O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector("input")}_handleInput(){this._dispatchValueChange(),this.requestUpdate()}_handleKeypress(O){O.keyCode<32&&O.preventDefault(),this._maxLength&&O.target.value.length>=this._maxLength&&O.preventDefault()}_handleKeyup(O){(O.keyCode?O.keyCode:O.which)===9&&(this._isGroupFocusedVisible=!0,this._isInputFocused=!0,this._handelLabelClick())}_handleFocus(){this._readonly||(this._isGroupFocusedVisible=!0,this._isInputFocused=!0,this.requestUpdate())}_handleFocusOut(){var O,U;this._handleBlur(),this._isGroupFocusedVisible=!1,this._isInputFocused=!1,((U=(O=this._input)===null||O===void 0?void 0:O.value)===null||U===void 0?void 0:U.length)===0&&(this._value="",this._input.value=this._value),this.requestUpdate()}_handleBlur(){this._isInputFocused=!1,this.requestUpdate()}_handelLabelClick(){var O;(O=this._input)===null||O===void 0||O.focus(),this.requestUpdate()}_cleanInput(){var O,U;!((U=(O=this._input)===null||O===void 0?void 0:O.value)===null||U===void 0)&&U.length&&(this._value="",this._input.value=this._value),this._dispatchValueChange(),this.requestUpdate()}_stepUp(){var O,U;(O=this._input)===null||O===void 0||O.stepUp(),this._value=((U=this._input)===null||U===void 0?void 0:U.value)||"",this._dispatchValueChange(),this.requestUpdate()}_stepDown(){var O,U;(O=this._input)===null||O===void 0||O.stepDown(),this._value=((U=this._input)===null||U===void 0?void 0:U.value)||"",this._dispatchValueChange(),this.requestUpdate()}_dispatchValueChange(){var O,U;const G={detail:this._isTypeNumeric?Number((O=this._input)===null||O===void 0?void 0:O.value):(U=this._input)===null||U===void 0?void 0:U.value,bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onValueChange",G))}async firstUpdated(){try{await this.updateComplete,this._isTypeNumeric=this._type===INPUT_TYPE_NUMBER,this.requestUpdate()}catch{console.error("ERROR OCURRED")}}render(){var O,U,G,Y,K,J;const X={"dss-input--invalid":this._showError,"dss-input--disabled":this._disabled,"dss-input--gap":this._maxLength||!!this._description},ie={"dss-input__group--focused":((O=this._input)===null||O===void 0?void 0:O.value)||this._isInputFocused||this._placeHolder,"dss-input__group--focused-visible":this._isGroupFocusedVisible,"dss-input__group--required":this._required,"dss-input__group--readOnly":this._readonly,"dss-input__group--numeric":this._isTypeNumeric,"dss-input__group--icon":this._clearable};return x`
1995
+ `}set value(O){const U=this._value;this._value=O,this.requestUpdate("value",U)}set type(O){const U=this._type;this._type=O,this.requestUpdate("type",U)}set label(O){const U=this._label;this._label=O,this.requestUpdate("label",U)}set description(O){const U=this._description;this._description=O,this.requestUpdate("description",U)}set placeHolder(O){const U=this._placeHolder;this._placeHolder=O,this.requestUpdate("placeHolder",U)}set required(O){const U=this._required;this._required=O,this.requestUpdate("required",U)}set disabled(O){const U=this._disabled;this._disabled=O,this.requestUpdate("disabled",U)}set readonly(O){const U=this._readonly;this._readonly=O,this.requestUpdate("readonly",U)}set icon(O){const U=this._icon;this._icon=O,this.requestUpdate("icon",U)}set clearable(O){const U=this._clearable;this._clearable=O,this.requestUpdate("clearable",U)}set showError(O){const U=this._showError;this._showError=O,this.requestUpdate("showError",U)}set maxLength(O){const U=this._maxLength;this._maxLength=O,this.requestUpdate("maxLength",U)}set minLength(O){const U=this._minLength;this._minLength=O,this.requestUpdate("minLength",U)}set max(O){const U=this._max;this._max=O,this.requestUpdate("max",U)}set min(O){const U=this._min;this._min=O,this.requestUpdate("min",U)}set step(O){const U=this._step;this._step=O,this.requestUpdate("step",U)}get _input(){var O;return(O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector("input")}_handleInput(){this._dispatchValueChange(),this.requestUpdate()}_handleKeypress(O){O.keyCode<32&&O.preventDefault(),this._maxLength&&O.target.value.length>=this._maxLength&&O.preventDefault()}_handleKeyup(O){(O.keyCode?O.keyCode:O.which)===9&&(this._isGroupFocusedVisible=!0,this._isInputFocused=!0,this._handelLabelClick())}_handleFocus(){this._readonly||(this._isGroupFocusedVisible=!0,this._isInputFocused=!0,this.requestUpdate())}_handleFocusOut(){var O,U;this._handleBlur(),this._isGroupFocusedVisible=!1,this._isInputFocused=!1,((U=(O=this._input)===null||O===void 0?void 0:O.value)===null||U===void 0?void 0:U.length)===0&&(this._value="",this._input.value=this._value),this.requestUpdate()}_handleBlur(){this._isInputFocused=!1,this.requestUpdate()}_handelLabelClick(){var O;(O=this._input)===null||O===void 0||O.focus(),this.requestUpdate()}_cleanInput(){var O,U;!((U=(O=this._input)===null||O===void 0?void 0:O.value)===null||U===void 0)&&U.length&&(this._value="",this._input.value=this._value),this._dispatchValueChange(),this.requestUpdate()}_stepUp(){var O,U;(O=this._input)===null||O===void 0||O.stepUp(),this._value=((U=this._input)===null||U===void 0?void 0:U.value)||"",this._dispatchValueChange(),this.requestUpdate()}_stepDown(){var O,U;(O=this._input)===null||O===void 0||O.stepDown(),this._value=((U=this._input)===null||U===void 0?void 0:U.value)||"",this._dispatchValueChange(),this.requestUpdate()}_dispatchValueChange(){var O,U;const G={detail:this._isTypeNumeric?Number((O=this._input)===null||O===void 0?void 0:O.value):(U=this._input)===null||U===void 0?void 0:U.value,bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onValueChange",G))}async firstUpdated(){try{await this.updateComplete,this._isTypeNumeric=this._type===INPUT_TYPE_NUMBER,this.requestUpdate()}catch{console.error("ERROR OCURRED")}}render(){var O,U,G,Y,K,J;const X={"dss-input--invalid":this._showError,"dss-input--disabled":this._disabled,"dss-input--gap":this._maxLength||!!this._description},se={"dss-input__group--focused":((O=this._input)===null||O===void 0?void 0:O.value)||this._isInputFocused||this._placeHolder,"dss-input__group--focused-visible":this._isGroupFocusedVisible,"dss-input__group--required":this._required,"dss-input__group--readOnly":this._readonly,"dss-input__group--numeric":this._isTypeNumeric,"dss-input__group--icon":this._clearable};return x`
1983
1996
  <div class="dss-input ${o(X)}">
1984
1997
  <div
1985
- class="dss-input__group ${o(ie)}"
1998
+ class="dss-input__group ${o(se)}"
1986
1999
  tabindex="0"
1987
2000
  @keyup=${this._handleKeyup}
1988
2001
  >
@@ -2191,11 +2204,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
2191
2204
  .pagination__item--dot {
2192
2205
  pointer-events: none;
2193
2206
  }
2194
- `}set length(O){const U=this._length;this._length=O,this.requestUpdate("length",U)}set pageSize(O){const U=this._pageSize;this._pageSize=O,this.requestUpdate("pageSize",U)}set size(O){const U=this._size;this._size=O,this.requestUpdate("size",U)}set currentIndex(O){const U=this._currentIndex;this._currentIndex=O,this.requestUpdate("currentIndex",U)}_next(){this._currentIndex++,this._updateButtons(),this._emitCurrentPage()}_prev(){this._currentIndex--,this._updateButtons(),this._emitCurrentPage()}_emitCurrentPage(){this.dispatchEvent(new CustomEvent("onChangePage",{detail:this._currentIndex,bubbles:!0,composed:!0}))}_updateButtons(){this._buttons=[];const O=1,U=Math.max(this._currentIndex-1,1),G=Math.min(this._currentIndex+1,this._totalPages),Y=U>2,K=G<this._totalPages-2,J=this._getButtons(O,O),X=this._getButtons(this._totalPages,this._totalPages),ie=x`
2207
+ `}set length(O){const U=this._length;this._length=O,this.requestUpdate("length",U)}set pageSize(O){const U=this._pageSize;this._pageSize=O,this.requestUpdate("pageSize",U)}set size(O){const U=this._size;this._size=O,this.requestUpdate("size",U)}set currentIndex(O){const U=this._currentIndex;this._currentIndex=O,this.requestUpdate("currentIndex",U)}_next(){this._currentIndex++,this._updateButtons(),this._emitCurrentPage()}_prev(){this._currentIndex--,this._updateButtons(),this._emitCurrentPage()}_emitCurrentPage(){this.dispatchEvent(new CustomEvent("onChangePage",{detail:this._currentIndex,bubbles:!0,composed:!0}))}_updateButtons(){this._buttons=[];const O=1,U=Math.max(this._currentIndex-1,1),G=Math.min(this._currentIndex+1,this._totalPages),Y=U>2,K=G<this._totalPages-2,J=this._getButtons(O,O),X=this._getButtons(this._totalPages,this._totalPages),se=x`
2195
2208
  <button class="pagination__item pagination__item--dot" tabindex="-1">
2196
2209
  ...
2197
2210
  </button>
2198
- `;if(this._totalPages<=6){this._buttons=this._getButtons(O,this._totalPages),this.requestUpdate();return}if(!Y&&K){const ne=this._getButtons(O,4);this._buttons=[...ne,ie,X]}if(Y&&!K){const ne=this._getButtons(this._totalPages-3,this._totalPages);this._buttons=[J,ie,...ne]}if(Y&&K){const ee=this._getButtons(U+1,G);this._buttons=[J,ie,...ee,ie,X]}this.requestUpdate()}_getButtons(O,U){const G=U-O+1;return Array(G).fill(0).map((Y,K)=>{const J=K+O,X={"pagination__item--selected":this._currentIndex===J,"pagination__item--large":J>=10};return x`
2211
+ `;if(this._totalPages<=6){this._buttons=this._getButtons(O,this._totalPages),this.requestUpdate();return}if(!Y&&K){const ne=this._getButtons(O,4);this._buttons=[...ne,se,X]}if(Y&&!K){const ne=this._getButtons(this._totalPages-3,this._totalPages);this._buttons=[J,se,...ne]}if(Y&&K){const ee=this._getButtons(U+1,G);this._buttons=[J,se,...ee,se,X]}this.requestUpdate()}_getButtons(O,U){const G=U-O+1;return Array(G).fill(0).map((Y,K)=>{const J=K+O,X={"pagination__item--selected":this._currentIndex===J,"pagination__item--large":J>=10};return x`
2199
2212
  <button
2200
2213
  class="pagination__item ${o(X)}"
2201
2214
  @click=${()=>this._selectItem(J)}
@@ -3075,11 +3088,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3075
3088
  font-size: 14px;
3076
3089
  color: var(--color-blue-800);
3077
3090
  }
3078
- `]}set multiple(O){const U=this._multiple;this._multiple=O,this.requestUpdate("multiple",U)}set tick(O){const U=this._tick;this._tick=O,this.requestUpdate("tick",U)}set deselectable(O){const U=this._deselectable;this._deselectable=O,this.requestUpdate("deselectable",U)}set disabled(O){const U=this._disabled;this._disabled=O,this.requestUpdate("disabled",U)}set elements(O){const U=this._elements;this._elements=O,this.requestUpdate("elements",U)}set selectedValue(O){var U,G;const Y=this._selectedValue;if(!O||O.length===0){this._selectedValue=null,this.requestUpdate("selectedValue",Y);return}if(this._multiple){this._selectedValue=((U=this._elements)===null||U===void 0?void 0:U.filter(J=>O.includes(J.value)))||null,this.requestUpdate("selectedValue",Y);return}const K=(G=this._elements)===null||G===void 0?void 0:G.find(J=>J.value===O[0]);this._selectedValue=K?[K]:null,this.requestUpdate("selectedValue",Y)}set type(O){const U=this._type;O==="default"||O==="green"?this._type=O:this._type="default",this.requestUpdate("type",U)}set boxStyle(O){const U=this._style;this._style=O,this.requestUpdate("style",U)}set filtre(O){if(O){const U=this._filtre;this._filtre=O.toLowerCase(),this.requestUpdate("filtre",U)}}set labelSelectAll(O){const U=this._labelSelectAll;O!==""&&(this._labelSelectAll=O),this.requestUpdate("labelSelectAll",U)}set labelDeselectAll(O){const U=this._labelDeselectAll;O!==""&&(this._labelDeselectAll=O),this.requestUpdate("labelDeselectAll",U)}set selectAll(O){const U=this._selectAll;this._selectAll=O,this.requestUpdate("selectAll",U)}set elementsSelected(O){const U=this._elementsSelected;this._elementsSelected=O,this.requestUpdate("elementsSelected",U)}_valueIsSelected(O){var U;return((U=this._selectedValue)===null||U===void 0?void 0:U.some(G=>G.value===O))||!1}_manuallySelect(O,U){if(O.preventDefault(),O.stopPropagation(),this._disabled)return;const G=this._valueIsSelected(U);if(!this._multiple&&!this._deselectable&&G)return;const Y=O.target;Y.className.includes("dss-form-field")?Y.querySelector("input").checked=!G:Y.parentElement.querySelector("input").checked=!G,this._returnSelectedValues(U),this._areAllElementsSelected()}_manuallySelectAll(O){if(O.preventDefault(),O.stopPropagation(),this._disabled||!this._multiple&&!this._deselectable&&this._isAllSelected)return;const U=O.target;U.className.includes("dss-form-field")?(U.querySelector("input").checked=!U.querySelector("input").checked,this._returnSelecteAllValues(U.querySelector("input").checked)):(U.parentElement.querySelector("input").checked=!U.parentElement.querySelector("input").checked,this._returnSelecteAllValues(U.parentElement.querySelector("input").checked)),this._areAllElementsSelected()}_returnSelecteAllValues(O){var U,G;O?this._selectedValue=((U=this._elements)===null||U===void 0?void 0:U.filter(J=>J.value))||[]:this._selectedValue=[];const K={detail:((G=this._selectedValue)===null||G===void 0?void 0:G.map(J=>J.value))||null,bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onValueChange",K)),this.requestUpdate()}_returnSelectedValues(O){var U,G;const Y=Array.from(((U=this.shadowRoot)===null||U===void 0?void 0:U.querySelectorAll("input:checked"))||[]).map(ie=>ie.getAttribute("value")).filter(ie=>ie==null?!1:this._multiple?!0:ie===O),K=Y.indexOf(this._elementSelectAll[0]);K!==-1&&Y.splice(K,1),this._selectedValue=((G=this._elements)===null||G===void 0?void 0:G.filter(ie=>Y.includes(ie.value)))||[];let J;this._multiple?J=Y:J=Y[0]||null;const X={detail:J,bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onValueChange",X)),this.requestUpdate()}_getIndexSubtext(O){if(!this._filtre)return[-1,-1];const U=O.toLowerCase();return[U.indexOf(this._filtre),U.indexOf(this._filtre)+this._filtre.length]}_focusEvent(O){const G=O.target.closest(".dss-form-field");G==null||G.classList.add("dss-form-field__focus")}_blurEvent(O){const G=O.target.closest(".dss-form-field");G==null||G.classList.remove("dss-form-field__focus")}async firstUpdated(){try{await this.updateComplete,this._elementSelectAll=[this._labelSelectAll],this._areAllElementsSelected(),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}_areAllElementsSelected(){if(!this._elements||!this._selectedValue){this._elementSelectAll=[this._labelSelectAll],this._isAllSelected=!1;return}const O=this._selectedValue.map(G=>G.value),U=this._elements.map(G=>G.value);this._isAllSelected=O.length===U.length&&O.every(G=>U.includes(G)),this._isAllSelected?this._elementSelectAll=[this._labelDeselectAll]:this._elementSelectAll=[this._labelSelectAll],this.requestUpdate()}generateListInputsElements(){var O;return(O=this._elements)===null||O===void 0?void 0:O.map((G,Y)=>{const K=this._valueIsSelected(G.value),J=this._tick&&!this._multiple,X=o({disabled:this._disabled,"dss-disabled":this._disabled,"dss-form-field":!0,"dss-type--default":this._type==="default","dss-type--green":this._type==="green","dss-ticked":J,"dss-selected":K&&J,"dss-first-unselected":Y&&Y>0&&Y===this._elementsSelected}),ie=o({"dss-checkbox":this._multiple,"dss-radio":!this._multiple,"dss-disabled":this._disabled,hidden:J}),ee=J&&K?"visible":"hidden",ne=x`
3091
+ `]}set multiple(O){const U=this._multiple;this._multiple=O,this.requestUpdate("multiple",U)}set tick(O){const U=this._tick;this._tick=O,this.requestUpdate("tick",U)}set deselectable(O){const U=this._deselectable;this._deselectable=O,this.requestUpdate("deselectable",U)}set disabled(O){const U=this._disabled;this._disabled=O,this.requestUpdate("disabled",U)}set elements(O){const U=this._elements;this._elements=O,this.requestUpdate("elements",U)}set selectedValue(O){var U,G;const Y=this._selectedValue;if(!O||O.length===0){this._selectedValue=null,this.requestUpdate("selectedValue",Y);return}if(this._multiple){this._selectedValue=((U=this._elements)===null||U===void 0?void 0:U.filter(J=>O.includes(J.value)))||null,this.requestUpdate("selectedValue",Y);return}const K=(G=this._elements)===null||G===void 0?void 0:G.find(J=>J.value===O[0]);this._selectedValue=K?[K]:null,this.requestUpdate("selectedValue",Y)}set type(O){const U=this._type;O==="default"||O==="green"?this._type=O:this._type="default",this.requestUpdate("type",U)}set boxStyle(O){const U=this._style;this._style=O,this.requestUpdate("style",U)}set filtre(O){if(O){const U=this._filtre;this._filtre=O.toLowerCase(),this.requestUpdate("filtre",U)}}set labelSelectAll(O){const U=this._labelSelectAll;O!==""&&(this._labelSelectAll=O),this.requestUpdate("labelSelectAll",U)}set labelDeselectAll(O){const U=this._labelDeselectAll;O!==""&&(this._labelDeselectAll=O),this.requestUpdate("labelDeselectAll",U)}set selectAll(O){const U=this._selectAll;this._selectAll=O,this.requestUpdate("selectAll",U)}set elementsSelected(O){const U=this._elementsSelected;this._elementsSelected=O,this.requestUpdate("elementsSelected",U)}_valueIsSelected(O){var U;return((U=this._selectedValue)===null||U===void 0?void 0:U.some(G=>G.value===O))||!1}_manuallySelect(O,U){if(O.preventDefault(),O.stopPropagation(),this._disabled)return;const G=this._valueIsSelected(U);if(!this._multiple&&!this._deselectable&&G)return;const Y=O.target;Y.className.includes("dss-form-field")?Y.querySelector("input").checked=!G:Y.parentElement.querySelector("input").checked=!G,this._returnSelectedValues(U),this._areAllElementsSelected()}_manuallySelectAll(O){if(O.preventDefault(),O.stopPropagation(),this._disabled||!this._multiple&&!this._deselectable&&this._isAllSelected)return;const U=O.target;U.className.includes("dss-form-field")?(U.querySelector("input").checked=!U.querySelector("input").checked,this._returnSelecteAllValues(U.querySelector("input").checked)):(U.parentElement.querySelector("input").checked=!U.parentElement.querySelector("input").checked,this._returnSelecteAllValues(U.parentElement.querySelector("input").checked)),this._areAllElementsSelected()}_returnSelecteAllValues(O){var U,G;O?this._selectedValue=((U=this._elements)===null||U===void 0?void 0:U.filter(J=>J.value))||[]:this._selectedValue=[];const K={detail:((G=this._selectedValue)===null||G===void 0?void 0:G.map(J=>J.value))||null,bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onValueChange",K)),this.requestUpdate()}_returnSelectedValues(O){var U,G;const Y=Array.from(((U=this.shadowRoot)===null||U===void 0?void 0:U.querySelectorAll("input:checked"))||[]).map(se=>se.getAttribute("value")).filter(se=>se==null?!1:this._multiple?!0:se===O),K=Y.indexOf(this._elementSelectAll[0]);K!==-1&&Y.splice(K,1),this._selectedValue=((G=this._elements)===null||G===void 0?void 0:G.filter(se=>Y.includes(se.value)))||[];let J;this._multiple?J=Y:J=Y[0]||null;const X={detail:J,bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onValueChange",X)),this.requestUpdate()}_getIndexSubtext(O){if(!this._filtre)return[-1,-1];const U=O.toLowerCase();return[U.indexOf(this._filtre),U.indexOf(this._filtre)+this._filtre.length]}_focusEvent(O){const G=O.target.closest(".dss-form-field");G==null||G.classList.add("dss-form-field__focus")}_blurEvent(O){const G=O.target.closest(".dss-form-field");G==null||G.classList.remove("dss-form-field__focus")}async firstUpdated(){try{await this.updateComplete,this._elementSelectAll=[this._labelSelectAll],this._areAllElementsSelected(),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}_areAllElementsSelected(){if(!this._elements||!this._selectedValue){this._elementSelectAll=[this._labelSelectAll],this._isAllSelected=!1;return}const O=this._selectedValue.map(G=>G.value),U=this._elements.map(G=>G.value);this._isAllSelected=O.length===U.length&&O.every(G=>U.includes(G)),this._isAllSelected?this._elementSelectAll=[this._labelDeselectAll]:this._elementSelectAll=[this._labelSelectAll],this.requestUpdate()}generateListInputsElements(){var O;return(O=this._elements)===null||O===void 0?void 0:O.map((G,Y)=>{const K=this._valueIsSelected(G.value),J=this._tick&&!this._multiple,X=o({disabled:this._disabled,"dss-disabled":this._disabled,"dss-form-field":!0,"dss-type--default":this._type==="default","dss-type--green":this._type==="green","dss-ticked":J,"dss-selected":K&&J,"dss-first-unselected":Y&&Y>0&&Y===this._elementsSelected}),se=o({"dss-checkbox":this._multiple,"dss-radio":!this._multiple,"dss-disabled":this._disabled,hidden:J}),ee=J&&K?"visible":"hidden",ne=x`
3079
3092
  <input
3080
3093
  name="${this._elementId}"
3081
3094
  type="checkbox"
3082
- class="${ie}"
3095
+ class="${se}"
3083
3096
  .value="${G.value}"
3084
3097
  .checked="${K}"
3085
3098
  @focus="${this._focusEvent}"
@@ -3089,8 +3102,8 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3089
3102
  `,Q=x`<span
3090
3103
  class="dss-icon--checked"
3091
3104
  style="visibility: ${ee}"
3092
- ></span>`,te=ae=>{this._manuallySelect(ae,G.value)},se=ae=>{var ce,ue,de,he;if(ae.key==="Enter"||ae.key===" ")this._manuallySelect(ae,G.value);else if(ae.key==="ArrowUp"){const me=ae.target,ge=(ue=(ce=me==null?void 0:me.closest(".dss-form-field"))===null||ce===void 0?void 0:ce.previousElementSibling)===null||ue===void 0?void 0:ue.querySelector("input");ge==null||ge.focus()}else if(ae.key==="ArrowDown"){const me=ae.target,ge=(he=(de=me==null?void 0:me.closest(".dss-form-field"))===null||de===void 0?void 0:de.nextElementSibling)===null||he===void 0?void 0:he.querySelector("input");ge==null||ge.focus()}},[le,oe]=this._getIndexSubtext(G.label);let re=x`${G.label}`;if(le!==-1&&oe!==-1){const ae=G.label.slice(0,le),ce=G.label.slice(le,oe),ue=G.label.slice(oe);re=x`${ae}<span class="bold">${ce}</span>${ue}`}return x`
3093
- <div class="${X}" @keyup="${se}" @click="${te}">
3105
+ ></span>`,te=ae=>{this._manuallySelect(ae,G.value)},ie=ae=>{var ce,ue,de,he;if(ae.key==="Enter"||ae.key===" ")this._manuallySelect(ae,G.value);else if(ae.key==="ArrowUp"){const me=ae.target,ge=(ue=(ce=me==null?void 0:me.closest(".dss-form-field"))===null||ce===void 0?void 0:ce.previousElementSibling)===null||ue===void 0?void 0:ue.querySelector("input");ge==null||ge.focus()}else if(ae.key==="ArrowDown"){const me=ae.target,ge=(he=(de=me==null?void 0:me.closest(".dss-form-field"))===null||de===void 0?void 0:de.nextElementSibling)===null||he===void 0?void 0:he.querySelector("input");ge==null||ge.focus()}},[le,oe]=this._getIndexSubtext(G.label);let re=x`${G.label}`;if(le!==-1&&oe!==-1){const ae=G.label.slice(0,le),ce=G.label.slice(le,oe),ue=G.label.slice(oe);re=x`${ae}<span class="bold">${ce}</span>${ue}`}return x`
3106
+ <div class="${X}" @keyup="${ie}" @click="${te}">
3094
3107
  ${ne}
3095
3108
  <label>${re}</label>
3096
3109
  ${Q}
@@ -3107,7 +3120,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3107
3120
  />
3108
3121
  <div class="dss-check-overlay"></div>
3109
3122
  `;return x`
3110
- <div class="${Y}" @keyup="${ee=>{var ne,Q,te,se;if(ee.key==="Enter"||ee.key===" ")this._manuallySelectAll(ee);else if(ee.key==="ArrowUp"){const le=ee.target,oe=(Q=(ne=le==null?void 0:le.closest(".dss-form-field"))===null||ne===void 0?void 0:ne.previousElementSibling)===null||Q===void 0?void 0:Q.querySelector("input");oe==null||oe.focus()}else if(ee.key==="ArrowDown"){const le=ee.target,oe=(se=(te=le==null?void 0:le.closest(".dss-form-field"))===null||te===void 0?void 0:te.nextElementSibling)===null||se===void 0?void 0:se.querySelector("input");oe==null||oe.focus()}}}" @click="${ee=>{this._manuallySelectAll(ee)}}">
3123
+ <div class="${Y}" @keyup="${ee=>{var ne,Q,te,ie;if(ee.key==="Enter"||ee.key===" ")this._manuallySelectAll(ee);else if(ee.key==="ArrowUp"){const le=ee.target,oe=(Q=(ne=le==null?void 0:le.closest(".dss-form-field"))===null||ne===void 0?void 0:ne.previousElementSibling)===null||Q===void 0?void 0:Q.querySelector("input");oe==null||oe.focus()}else if(ee.key==="ArrowDown"){const le=ee.target,oe=(ie=(te=le==null?void 0:le.closest(".dss-form-field"))===null||te===void 0?void 0:te.nextElementSibling)===null||ie===void 0?void 0:ie.querySelector("input");oe==null||oe.focus()}}}" @click="${ee=>{this._manuallySelectAll(ee)}}">
3111
3124
  ${J}
3112
3125
  <label>${G}</label>
3113
3126
  </div>
@@ -3491,8 +3504,8 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3491
3504
  .dss-textarea--invalid .dss-textarea__help::after {
3492
3505
  color: #b60000;
3493
3506
  }
3494
- `}set showError(O){const U=this._showError;this._showError=O,this.requestUpdate("showError",U)}get _label(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="label"]'))||void 0;return U==null?void 0:U.assignedElements()[0]}get _textarea(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="textarea"]'))||void 0;return U==null?void 0:U.assignedElements()[0]}get _description(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="description"]'))||void 0;return U==null?void 0:U.assignedElements()[0]}async firstUpdated(){try{await this.updateComplete;const{maxLength:O}=this._textarea;this._maxLength=O>0?O:0,this._addEventListeners(),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}_addEventListeners(){this._textarea.addEventListener("input",this._handleInput.bind(this)),this._textarea.addEventListener("focus",this._handleFocus.bind(this)),this._textarea.addEventListener("focusout",this._handleFocusOut.bind(this)),this._textarea.addEventListener("blur",this._handleBlur.bind(this)),this._label.addEventListener("click",this._handelLabelClick.bind(this)),this._textarea.addEventListener("keyup",this._handleKeyup.bind(this))}_handleInput(){this.requestUpdate()}_handleKeyup(O){(O.keyCode?O.keyCode:O.which)===9&&this._handleFocus()}_handleFocus(){this._isGroupFocusedVisible=!0,this._isTextareaFocused=!0,this.requestUpdate()}_handleFocusOut(){this._handleBlur(),this._isGroupFocusedVisible=!1,this._isTextareaFocused=!1,this.requestUpdate()}_handleBlur(){this._isTextareaFocused=!1,this.requestUpdate()}_handelLabelClick(){this._textarea.focus(),this.requestUpdate()}_handleSlotChange(){this.requestUpdate()}render(){var O,U,G,Y,K,J,X;const ie={"dss-textarea--invalid":this._showError,"dss-textarea--disabled":(O=this._textarea)===null||O===void 0?void 0:O.disabled,"dss-textarea--gap":this._maxLength||!!this._description},ee={"dss-textarea__group--focused":((U=this._textarea)===null||U===void 0?void 0:U.value)||this._isTextareaFocused||((G=this._textarea)===null||G===void 0?void 0:G.placeholder),"dss-textarea__group--focused-visible":this._isGroupFocusedVisible,"dss-textarea__group--required":(Y=this._textarea)===null||Y===void 0?void 0:Y.required,"dss-textarea__group--readOnly":(K=this._textarea)===null||K===void 0?void 0:K.readOnly};return x`
3495
- <div class="dss-textarea ${o(ie)}">
3507
+ `}set showError(O){const U=this._showError;this._showError=O,this.requestUpdate("showError",U)}get _label(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="label"]'))||void 0;return U==null?void 0:U.assignedElements()[0]}get _textarea(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="textarea"]'))||void 0;return U==null?void 0:U.assignedElements()[0]}get _description(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="description"]'))||void 0;return U==null?void 0:U.assignedElements()[0]}async firstUpdated(){try{await this.updateComplete;const{maxLength:O}=this._textarea;this._maxLength=O>0?O:0,this._addEventListeners(),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}_addEventListeners(){this._textarea.addEventListener("input",this._handleInput.bind(this)),this._textarea.addEventListener("focus",this._handleFocus.bind(this)),this._textarea.addEventListener("focusout",this._handleFocusOut.bind(this)),this._textarea.addEventListener("blur",this._handleBlur.bind(this)),this._label.addEventListener("click",this._handelLabelClick.bind(this)),this._textarea.addEventListener("keyup",this._handleKeyup.bind(this))}_handleInput(){this.requestUpdate()}_handleKeyup(O){(O.keyCode?O.keyCode:O.which)===9&&this._handleFocus()}_handleFocus(){this._isGroupFocusedVisible=!0,this._isTextareaFocused=!0,this.requestUpdate()}_handleFocusOut(){this._handleBlur(),this._isGroupFocusedVisible=!1,this._isTextareaFocused=!1,this.requestUpdate()}_handleBlur(){this._isTextareaFocused=!1,this.requestUpdate()}_handelLabelClick(){this._textarea.focus(),this.requestUpdate()}_handleSlotChange(){this.requestUpdate()}render(){var O,U,G,Y,K,J,X;const se={"dss-textarea--invalid":this._showError,"dss-textarea--disabled":(O=this._textarea)===null||O===void 0?void 0:O.disabled,"dss-textarea--gap":this._maxLength||!!this._description},ee={"dss-textarea__group--focused":((U=this._textarea)===null||U===void 0?void 0:U.value)||this._isTextareaFocused||((G=this._textarea)===null||G===void 0?void 0:G.placeholder),"dss-textarea__group--focused-visible":this._isGroupFocusedVisible,"dss-textarea__group--required":(Y=this._textarea)===null||Y===void 0?void 0:Y.required,"dss-textarea__group--readOnly":(K=this._textarea)===null||K===void 0?void 0:K.readOnly};return x`
3508
+ <div class="dss-textarea ${o(se)}">
3496
3509
  <div class="dss-textarea__group ${o(ee)}">
3497
3510
  <div class="dss-textarea__content">
3498
3511
  <slot name="label"></slot>
@@ -3728,7 +3741,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3728
3741
  .dss-icon-button:focus-visible:enabled {
3729
3742
  outline: none;
3730
3743
  }
3731
- `}get _input(){var O;return(O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector("input")}get _DSSinput(){var O;return(O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector(".dss-input")}set icon(O){const U=this._icon;this._icon=O,this.requestUpdate("label",U)}set label(O){const U=this._label;this._label=O,this.requestUpdate("label",U)}set placeHolder(O){const U=this._placeHolder;this._placeHolder=O,this.requestUpdate("placeHolder",U)}set required(O){const U=this._required;this._required=O,this.requestUpdate("required",U)}set disabled(O){const U=this._disabled;this._disabled=O,this.requestUpdate("disabled",U)}set readonly(O){const U=this._readonly;this._readonly=O,this.requestUpdate("readonly",U)}set elements(O){const U=this._elements;this._elements=O,this.requestUpdate("elements",U)}set multiple(O){const U=this._multiple;this._multiple=O,this.requestUpdate("multiple",U)}set openWithSearch(O){const U=this._openWithSearch;this._openWithSearch=O,this.requestUpdate("openWithSearch",U)}set tick(O){const U=this._tick;this._tick=O,this.requestUpdate("tick",U)}set deselectable(O){const U=this._deselectable;this._deselectable=O,this.requestUpdate("deselectable",U)}set selectedValue(O){const U=this._selectedValue;this._selectedValue=O,this.requestUpdate("selectedValue",U)}set type(O){const U=this._type;O==="default"||O==="green"?this._type=O:this._type="default",this.requestUpdate("type",U)}set boxStyle(O){const U=this._boxStyle;this._boxStyle=O,this.requestUpdate("boxStyle",U)}set inputStyle(O){const U=this._inputStyle;this._inputStyle=O,this._inputStyle=`${this._inputStyle} box-sizing: border-box;`,this.requestUpdate("inputStyle",U)}set labelSelectAll(O){const U=this._labelSelectAll;O!==""&&(this._labelSelectAll=O),this.requestUpdate("labelSelectAll",U)}set labelDeselectAll(O){const U=this._labelDeselectAll;O!==""&&(this._labelDeselectAll=O),this.requestUpdate("labelDeselectAll",U)}set SelectAll(O){const U=this._selectAll;this._selectAll=O,this.requestUpdate("selectAll",U)}get _filteredElements(){var O;const U=this._input.value.toLowerCase();return(O=this._elements)===null||O===void 0?void 0:O.filter(G=>G.label.toLowerCase().includes(U))}get _showPlaceHolder(){return l(this._placeHolder)&&!this._showSelector?void 0:this._placeHolder}async firstUpdated(){try{await this.updateComplete,this._copyElements=JSON.parse(JSON.stringify(this._elements)),this._initElementsSelected(),!this._openWithSearch&&!this._disabled&&document.addEventListener("click",O=>{this._clickedOutsideDropdown(this,O)}),this._showSelectValuesInInput(this._selectedValue?this._selectedValue:[]),this._openWithSearch&&this._onclick(!0),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}_initElementsSelected(){this._showSelectValuesInInput(this._selectedValue?this._selectedValue:[])}_clickedOutsideDropdown(O,U){O!==U.target&&(this._showSelectValuesInInput(this._selectedValue?this._selectedValue:[]),this._showSelector=!1,this.requestUpdate())}_handleInput(){this.requestUpdate()}_handleFocus(){this._readonly||(this._isFocused=!0,this._isGroupFocusedVisible=!0,this.requestUpdate())}_handleBlurEsc(){this._readonly||this._openWithSearch||(this._isFocused=!0,this._showSelector=!1,this.requestUpdate())}_handleBlur(){this._isFocused=!1,this._isGroupFocusedVisible=!1,this.requestUpdate()}_handleBlurComponent(O,U){var G;if(O!==U.target){if(this._openWithSearch)return;(G=this._input)===null||G===void 0||G.focus(),this._handleBlurEsc(),this._showSelectValuesInInput(this._selectedValue?this._selectedValue:[])}}_onCancel(){this._showSelector=!1,this._isFocused=!1,this.requestUpdate()}_cleanInput(){this._input.value="",this.requestUpdate()}_onclick(O,U){var G,Y;O||(this._isFocused=!0);let K="";this._boxStyle&&(K+=this._boxStyle,K.endsWith(";")||(K+=";")),this._style=`${K} overflow: auto;${this._openWithSearch?"":"box-shadow: 0 1px 3px 0 #0000001a, 0 4px 8px 3px #0000000d;"}`,this._openWithSearch?this._showSelector=!0:this._handleKeyInput(U),this._showSelector?(this._input.value="",O||(G=this._input)===null||G===void 0||G.focus()):(this._showSelectValuesInInput(this._selectedValue?this._selectedValue:[]),(!U||U.key!=="Enter"&&U.key!==" "&&U.key!=="Escape")&&((Y=this._input)===null||Y===void 0||Y.blur(),this._onCancel())),this.requestUpdate()}_handleKeyInput(O){(O==null?void 0:O.key)==="Enter"||(O==null?void 0:O.key)===" "?this._showSelector=!0:(O==null?void 0:O.key)==="Escape"?this._handleBlurEsc():this._showSelector=!this._showSelector}_dispatchValueChange(){if(this._input.value){const O={detail:this._input.value,bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onValueChange",O))}}_onSelectorChanges(O){this._selectedValue=O.detail,this._dispatchValueChange(),!this._multiple&&!this._openWithSearch&&!this._disabled&&this._clickedOutsideDropdown(this,O),this.requestUpdate()}_showSelectValuesInInput(O){var U,G,Y,K;!this._multiple&&Array.isArray(O)&&O.length>1&&O.splice(1);const J=(U=this._elements)===null||U===void 0?void 0:U.filter(ie=>O.includes(ie.value));if(this._elements=[...this._copyElements],this._openWithSearch?this._selectElements=0:this._selectElements=J!=null&&J.length?J.length:0,J&&J.length>0){const ie=this._elements.filter(ee=>J.includes(ee));ie.push(...this._elements.filter(ee=>!J.includes(ee))),this._elements=[...ie]}if(!this._multiple){this._input.value=(Y=(G=J==null?void 0:J[0])===null||G===void 0?void 0:G.label)!==null&&Y!==void 0?Y:"";return}const X=J==null?void 0:J.map(ie=>ie.label);this._input.value=(K=X==null?void 0:X.join(", "))!==null&&K!==void 0?K:""}_evalueFocus(O){var U;((U=O.target)===null||U===void 0?void 0:U.id)!=="dss-dropdownlist"&&this._showSelector&&this._handleFocus()}_handleKeyup(O){(O.keyCode?O.keyCode:O.which)===9&&(this._isGroupFocusedVisible=!0,this._isFocused=!0,this._handelLabelClick())}_handelLabelClick(){var O;(O=this._input)===null||O===void 0||O.focus(),this.requestUpdate()}render(){var O,U,G,Y;const K={"dss-input--disabled":this._disabled},J={"dss-selector":!this._openWithSearch,"dss-selector--disabled":this._disabled,"dss-selector-dropdown":!0},X={"dss-input__group--focused":((O=this._input)===null||O===void 0?void 0:O.value)||this._showPlaceHolder||this._showSelector,"dss-input__group--focused-visible":this._isGroupFocusedVisible,"dss-input__group--required":this._required,"dss-input__group--active":this._isFocused,"dss-input__group--readOnly":this._readonly,"dss-input__group--disabled":this._disabled};return x` <div
3744
+ `}get _input(){var O;return(O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector("input")}get _DSSinput(){var O;return(O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector(".dss-input")}set icon(O){const U=this._icon;this._icon=O,this.requestUpdate("label",U)}set label(O){const U=this._label;this._label=O,this.requestUpdate("label",U)}set placeHolder(O){const U=this._placeHolder;this._placeHolder=O,this.requestUpdate("placeHolder",U)}set required(O){const U=this._required;this._required=O,this.requestUpdate("required",U)}set disabled(O){const U=this._disabled;this._disabled=O,this.requestUpdate("disabled",U)}set readonly(O){const U=this._readonly;this._readonly=O,this.requestUpdate("readonly",U)}set elements(O){const U=this._elements;this._elements=O,this.requestUpdate("elements",U)}set multiple(O){const U=this._multiple;this._multiple=O,this.requestUpdate("multiple",U)}set openWithSearch(O){const U=this._openWithSearch;this._openWithSearch=O,this.requestUpdate("openWithSearch",U)}set tick(O){const U=this._tick;this._tick=O,this.requestUpdate("tick",U)}set deselectable(O){const U=this._deselectable;this._deselectable=O,this.requestUpdate("deselectable",U)}set selectedValue(O){const U=this._selectedValue;this._selectedValue=O,this.requestUpdate("selectedValue",U)}set type(O){const U=this._type;O==="default"||O==="green"?this._type=O:this._type="default",this.requestUpdate("type",U)}set boxStyle(O){const U=this._boxStyle;this._boxStyle=O,this.requestUpdate("boxStyle",U)}set inputStyle(O){const U=this._inputStyle;this._inputStyle=O,this._inputStyle=`${this._inputStyle} box-sizing: border-box;`,this.requestUpdate("inputStyle",U)}set labelSelectAll(O){const U=this._labelSelectAll;O!==""&&(this._labelSelectAll=O),this.requestUpdate("labelSelectAll",U)}set labelDeselectAll(O){const U=this._labelDeselectAll;O!==""&&(this._labelDeselectAll=O),this.requestUpdate("labelDeselectAll",U)}set SelectAll(O){const U=this._selectAll;this._selectAll=O,this.requestUpdate("selectAll",U)}get _filteredElements(){var O;const U=this._input.value.toLowerCase();return(O=this._elements)===null||O===void 0?void 0:O.filter(G=>G.label.toLowerCase().includes(U))}get _showPlaceHolder(){return l(this._placeHolder)&&!this._showSelector?void 0:this._placeHolder}async firstUpdated(){try{await this.updateComplete,this._copyElements=JSON.parse(JSON.stringify(this._elements)),this._initElementsSelected(),!this._openWithSearch&&!this._disabled&&document.addEventListener("click",O=>{this._clickedOutsideDropdown(this,O)}),this._showSelectValuesInInput(this._selectedValue?this._selectedValue:[]),this._openWithSearch&&this._onclick(!0),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}_initElementsSelected(){this._showSelectValuesInInput(this._selectedValue?this._selectedValue:[])}_clickedOutsideDropdown(O,U){O!==U.target&&(this._showSelectValuesInInput(this._selectedValue?this._selectedValue:[]),this._showSelector=!1,this.requestUpdate())}_handleInput(){this.requestUpdate()}_handleFocus(){this._readonly||(this._isFocused=!0,this._isGroupFocusedVisible=!0,this.requestUpdate())}_handleBlurEsc(){this._readonly||this._openWithSearch||(this._isFocused=!0,this._showSelector=!1,this.requestUpdate())}_handleBlur(){this._isFocused=!1,this._isGroupFocusedVisible=!1,this.requestUpdate()}_handleBlurComponent(O,U){var G;if(O!==U.target){if(this._openWithSearch)return;(G=this._input)===null||G===void 0||G.focus(),this._handleBlurEsc(),this._showSelectValuesInInput(this._selectedValue?this._selectedValue:[])}}_onCancel(){this._showSelector=!1,this._isFocused=!1,this.requestUpdate()}_cleanInput(){this._input.value="",this.requestUpdate()}_onclick(O,U){var G,Y;O||(this._isFocused=!0);let K="";this._boxStyle&&(K+=this._boxStyle,K.endsWith(";")||(K+=";")),this._style=`${K} overflow: auto;${this._openWithSearch?"":"box-shadow: 0 1px 3px 0 #0000001a, 0 4px 8px 3px #0000000d;"}`,this._openWithSearch?this._showSelector=!0:this._handleKeyInput(U),this._showSelector?(this._input.value="",O||(G=this._input)===null||G===void 0||G.focus()):(this._showSelectValuesInInput(this._selectedValue?this._selectedValue:[]),(!U||U.key!=="Enter"&&U.key!==" "&&U.key!=="Escape")&&((Y=this._input)===null||Y===void 0||Y.blur(),this._onCancel())),this.requestUpdate()}_handleKeyInput(O){(O==null?void 0:O.key)==="Enter"||(O==null?void 0:O.key)===" "?this._showSelector=!0:(O==null?void 0:O.key)==="Escape"?this._handleBlurEsc():this._showSelector=!this._showSelector}_dispatchValueChange(){if(this._input.value){const O={detail:this._input.value,bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onValueChange",O))}}_onSelectorChanges(O){this._selectedValue=O.detail,this._dispatchValueChange(),!this._multiple&&!this._openWithSearch&&!this._disabled&&this._clickedOutsideDropdown(this,O),this.requestUpdate()}_showSelectValuesInInput(O){var U,G,Y,K;!this._multiple&&Array.isArray(O)&&O.length>1&&O.splice(1);const J=(U=this._elements)===null||U===void 0?void 0:U.filter(se=>O.includes(se.value));if(this._elements=[...this._copyElements],this._openWithSearch?this._selectElements=0:this._selectElements=J!=null&&J.length?J.length:0,J&&J.length>0){const se=this._elements.filter(ee=>J.includes(ee));se.push(...this._elements.filter(ee=>!J.includes(ee))),this._elements=[...se]}if(!this._multiple){this._input.value=(Y=(G=J==null?void 0:J[0])===null||G===void 0?void 0:G.label)!==null&&Y!==void 0?Y:"";return}const X=J==null?void 0:J.map(se=>se.label);this._input.value=(K=X==null?void 0:X.join(", "))!==null&&K!==void 0?K:""}_evalueFocus(O){var U;((U=O.target)===null||U===void 0?void 0:U.id)!=="dss-dropdownlist"&&this._showSelector&&this._handleFocus()}_handleKeyup(O){(O.keyCode?O.keyCode:O.which)===9&&(this._isGroupFocusedVisible=!0,this._isFocused=!0,this._handelLabelClick())}_handelLabelClick(){var O;(O=this._input)===null||O===void 0||O.focus(),this.requestUpdate()}render(){var O,U,G,Y;const K={"dss-input--disabled":this._disabled},J={"dss-selector":!this._openWithSearch,"dss-selector--disabled":this._disabled,"dss-selector-dropdown":!0},X={"dss-input__group--focused":((O=this._input)===null||O===void 0?void 0:O.value)||this._showPlaceHolder||this._showSelector,"dss-input__group--focused-visible":this._isGroupFocusedVisible,"dss-input__group--required":this._required,"dss-input__group--active":this._isFocused,"dss-input__group--readOnly":this._readonly,"dss-input__group--disabled":this._disabled};return x` <div
3732
3745
  id="previous-input"
3733
3746
  class="dss-input ${o(K)}"
3734
3747
  style=${l(this._inputStyle)}
@@ -3748,7 +3761,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3748
3761
  ?readonly=${this._readonly||!this._showSelector}
3749
3762
  @input=${this._handleInput}
3750
3763
  @focus="${this._evalueFocus}"
3751
- @keydown="${ie=>{(ie.key==="Enter"||ie.key===" "||ie.key==="Escape")&&this._onclick(!1,ie)}}"
3764
+ @keydown="${se=>{(se.key==="Enter"||se.key===" "||se.key==="Escape")&&this._onclick(!1,se)}}"
3752
3765
  @blur=${this._handleBlur}
3753
3766
  placeholder=${this._showPlaceHolder}
3754
3767
  type="text"
@@ -3795,7 +3808,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3795
3808
  boxStyle=${this._style}
3796
3809
  elementsSelected=${this._selectElements}
3797
3810
  @onValueChange="${this._onSelectorChanges}"
3798
- @keydown="${ie=>{ie.key==="Escape"&&this._handleBlurComponent(this,ie)}}"
3811
+ @keydown="${se=>{se.key==="Escape"&&this._handleBlurComponent(this,se)}}"
3799
3812
  >
3800
3813
  </dss-selector>
3801
3814
  `:null}
@@ -4139,8 +4152,8 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
4139
4152
  color: var(--color-white);
4140
4153
  background-color: var(--color-primary-500);
4141
4154
  }
4142
- `]}get _input(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="input"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}get _label(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="label"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}set value(O){const U=this._value;this._value=O,this._input&&(this._input.value=O),this.requestUpdate("value",U)}set invalid(O){const U=this._invalid;this._invalid=O,this.requestUpdate("invalid",U)}set inputSize(O){const U=this._inputSize;O==="md"?this._inputSize=O:this._inputSize="lg",this.requestUpdate("inputSize",U)}set helpText(O){const U=this._helpText;this._helpText=O,this._oldHelpText=O,this.requestUpdate("helpText",U)}set errorTimeFormatText(O){const U=this._errorTimeFormatText;this._errorTimeFormatText=O,this.requestUpdate("errorTimeFormatText",U)}set errorTimeOptionText(O){const U=this._errorTimeOptionText;this._errorTimeOptionText=O,this.requestUpdate("errorTimeOptionText",U)}set dropdown(O){const U=this._dropdown;this._dropdown=O,this.requestUpdate("dropdown",U)}set showDropdown(O){const U=this._showDropdown;this._showDropdown=O,this.requestUpdate("showDropdown",U)}set minutesRange(O){const U=this._minutesRange;this._minutesRange=O,this._isFirstUpdated||this._updateTimeOptions(),this.requestUpdate("minutesRange",U)}set minHour(O){const U=this._minHour;this._minHour=O,this._isFirstUpdated||this._updateTimeOptions(),this.requestUpdate("minHour",U)}set maxHour(O){const U=this._maxHour;this._maxHour=O,this._isFirstUpdated||this._updateTimeOptions(),this.requestUpdate("maxHour",U)}set customTimeListOptions(O){const U=this._customTimeListOptions;this._customTimeListOptions=O,this.requestUpdate("customTimeListOptions",U)}set icon(O){const U=this._icon;this._icon=O,this.requestUpdate("icon",U)}disconnectedCallback(){this.observer.disconnect()}async firstUpdated(){try{await this.updateComplete,this._closeDropdown(),this._input&&(this._checkInputAttributes(),this.observer.observe(this._input,this.observerConfig)),this._updateTimeOptions(),this._isFirstUpdated=!1,this.requestUpdate()}catch{console.error("ERROR OCURRED")}}_updateTimeOptions(){this._dropdown&&(this._timeListOptions=this._generateTimeListOptions(),this._timeManualHourOptions=this._generateTimeManualHoursOptions(),this._timeManualMinutesOptions=this._generateTimeManualMinutesOptions())}_checkInputAttributes(){var O,U,G,Y,K,J,X;const ie=(O=this._input)===null||O===void 0?void 0:O.getAttribute("placeholder");ie&&(this._placeholder=ie),((U=this._input)===null||U===void 0?void 0:U.getAttribute("readonly"))!==null&&(this._readonly=!0),((G=this._input)===null||G===void 0?void 0:G.getAttribute("disabled"))!==null&&(this._disabled=!0),((Y=this._input)===null||Y===void 0?void 0:Y.getAttribute("required"))!==null&&(this._required=!0);const te=(K=this._input)===null||K===void 0?void 0:K.getAttribute("value");te!==null&&(this._value=te),!((J=this._input)===null||J===void 0)&&J.value&&((X=this._input)===null||X===void 0?void 0:X.value)!==""&&this._handleValidity(),this.requestUpdate()}_handleValidity(){var O;const U=(O=this._input)===null||O===void 0?void 0:O.checkValidity();U!==void 0&&(this._inputValidity=U)}_closeDropdown(){document.addEventListener("click",O=>{O.composedPath().includes(this)||this._showDropdown&&(this._showDropdown=!1,this.requestUpdate())}),this.addEventListener("focusout",O=>{const U=O.relatedTarget;U!==null&&U!==this&&U!==this._input&&U!==this._label&&(this._showDropdown&&(this._showDropdown=!1),this.requestUpdate())})}_timeMask(O,U,G){const Y=[];for(let K=0;K<O.length;K+=1)K!==0&&K%U===0&&Y.push(G),Y.push(O[K]);return Y.join("")}_timeUnmask(O){return O.replace(/[^\d]/g,"")}_timeValidate(O){const U=O.slice(0,2),G=O.slice(3,5);this._input&&+U>=0&&+U<=23&&+G>=0&&+G<=59?(this._invalid=!1,this._helpText=this._oldHelpText,this._dropdown&&this._dropdown==="list"&&!this._timeListOptions.includes(this._input.value)?(this._helpText=this._errorTimeOptionText,this._invalid=!0):this._dropdown&&this._dropdown==="manual"&&(!this._timeManualHourOptions.includes(U)||!this._timeManualMinutesOptions.includes(G))?(this._helpText=this._errorTimeOptionText,this._invalid=!0):this._showDropdown=!1):(this._helpText=this._errorTimeFormatText,this._invalid=!0),this._dispatchValueChange(),this.requestUpdate()}_dispatchValueChange(){if(this._input){const O={detail:{value:this._input.value,status:this._invalid?"INVALID":"VALID"},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onTimepickerChange",O))}}_handleClick(){if(this._showDropdown=!0,this._value&&(this._dropdown&&this._dropdown==="list"&&this._timeListOptionsScrollTo(),this._dropdown&&this._dropdown==="manual")){const O=this._value.slice(0,2);this._timeManualOptionsScrollTo(O),setTimeout(()=>{this._timeManualOptionsScrollTo()},500)}this.requestUpdate()}_handleInput(){if(this._input){let O=this._input.value;O=this._timeUnmask(O),O.match(this._timePattern)?(O=this._timeMask(O,2,this._timeSeparator),this._input.value=O):this._input.value=this._timeInputOldValue,this._input.value.length===5&&(this._timeValidate(this._input.value),this._handleValidity()),this._dropdown&&this._dropdown==="list"&&this._timeListOptionsScrollTo(),this._dropdown&&this._dropdown==="manual"&&this._timeManualOptionsScrollTo()}}_handleKeyDown(O){this._input&&(this._timeInputOldValue=this._input.value,(O==null?void 0:O.key)==="Enter"||(O==null?void 0:O.key)===" "?(this._showDropdown=!0,this.requestUpdate()):(O==null?void 0:O.key)==="Escape"&&(this._showDropdown=!1,this.requestUpdate()))}_handleFocus(){this._placeholder="00:00",this._input&&this._input.setAttribute("placeholder",this._placeholder),this.requestUpdate()}_handleBlur(){this._placeholder="",this._input&&this._input.removeAttribute("placeholder"),this.requestUpdate()}_focusInput(){var O;(O=this._input)===null||O===void 0||O.focus(),this._handleClick()}_generateTimeListOptions(){const O=[];for(let U=this._minHour;U<this._maxHour;U+=1)for(let G=0;G<60;G+=this._minutesRange){const Y=U.toString().padStart(2,"0"),K=G.toString().padStart(2,"0");O.push(`${Y}:${K}`)}return O}_generateTimeListOptionsHTML(O,U){let G=!0;const Y=U&&U.length>0;return(Y?U:O).map(X=>{const ie=oe=>{oe&&oe.focus()},ee=oe=>{let re=0;const ae=this.renderRoot.querySelectorAll(".dss-timepicker-dropdown__label"),ce=ae.length-1;oe===ae[0]?ie(ae[ce]):(ae.forEach((ue,de)=>{ue===oe&&(re=de)}),ie(ae[re-1]))},ne=oe=>{let re=0;const ae=this.renderRoot.querySelectorAll(".dss-timepicker-dropdown__label"),ce=ae.length-1;oe===ae[ce]?ie(ae[0]):(ae.forEach((ue,de)=>{ue===oe&&(re=de)}),ie(ae[re+1]))},Q=oe=>{if(this._input){const re=oe.target.getAttribute("value");re&&(this._input.value=re,this._helpText=this._oldHelpText,this._invalid=!1,this._showDropdown=!1,this._handleValidity(),this.requestUpdate(),this._dispatchValueChange())}},te=oe=>{const re=oe.currentTarget,ae=oe;let ce=!1;switch(ae.key){case"ArrowUp":ee(re),ce=!0;break;case"ArrowDown":ne(re),ce=!0;break;case"Enter":const ue=oe.target.querySelector("input"),de=this.renderRoot.querySelector('.dss-timepicker-dropdown__label[tabindex="0"]');de==null||de.setAttribute("tabindex","-1"),oe.target.setAttribute("tabindex","0"),ue==null||ue.click(),ce=!0;break}ce&&(oe.stopPropagation(),oe.preventDefault())},se={"option--busy":typeof X=="object"&&X.state==="ocupat"},le=x`
4143
- <div class="dss-timepicker-dropdown__option ${o(se)}">
4155
+ `]}get _input(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="input"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}get _label(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="label"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}set value(O){const U=this._value;this._value=O,this._input&&(this._input.value=O),this.requestUpdate("value",U)}set invalid(O){const U=this._invalid;this._invalid=O,this.requestUpdate("invalid",U)}set inputSize(O){const U=this._inputSize;O==="md"?this._inputSize=O:this._inputSize="lg",this.requestUpdate("inputSize",U)}set helpText(O){const U=this._helpText;this._helpText=O,this._oldHelpText=O,this.requestUpdate("helpText",U)}set errorTimeFormatText(O){const U=this._errorTimeFormatText;this._errorTimeFormatText=O,this.requestUpdate("errorTimeFormatText",U)}set errorTimeOptionText(O){const U=this._errorTimeOptionText;this._errorTimeOptionText=O,this.requestUpdate("errorTimeOptionText",U)}set dropdown(O){const U=this._dropdown;this._dropdown=O,this.requestUpdate("dropdown",U)}set showDropdown(O){const U=this._showDropdown;this._showDropdown=O,this.requestUpdate("showDropdown",U)}set minutesRange(O){const U=this._minutesRange;this._minutesRange=O,this._isFirstUpdated||this._updateTimeOptions(),this.requestUpdate("minutesRange",U)}set minHour(O){const U=this._minHour;this._minHour=O,this._isFirstUpdated||this._updateTimeOptions(),this.requestUpdate("minHour",U)}set maxHour(O){const U=this._maxHour;this._maxHour=O,this._isFirstUpdated||this._updateTimeOptions(),this.requestUpdate("maxHour",U)}set customTimeListOptions(O){const U=this._customTimeListOptions;this._customTimeListOptions=O,this.requestUpdate("customTimeListOptions",U)}set icon(O){const U=this._icon;this._icon=O,this.requestUpdate("icon",U)}disconnectedCallback(){this.observer.disconnect()}async firstUpdated(){try{await this.updateComplete,this._closeDropdown(),this._input&&(this._checkInputAttributes(),this.observer.observe(this._input,this.observerConfig)),this._updateTimeOptions(),this._isFirstUpdated=!1,this.requestUpdate()}catch{console.error("ERROR OCURRED")}}_updateTimeOptions(){this._dropdown&&(this._timeListOptions=this._generateTimeListOptions(),this._timeManualHourOptions=this._generateTimeManualHoursOptions(),this._timeManualMinutesOptions=this._generateTimeManualMinutesOptions())}_checkInputAttributes(){var O,U,G,Y,K,J,X;const se=(O=this._input)===null||O===void 0?void 0:O.getAttribute("placeholder");se&&(this._placeholder=se),((U=this._input)===null||U===void 0?void 0:U.getAttribute("readonly"))!==null&&(this._readonly=!0),((G=this._input)===null||G===void 0?void 0:G.getAttribute("disabled"))!==null&&(this._disabled=!0),((Y=this._input)===null||Y===void 0?void 0:Y.getAttribute("required"))!==null&&(this._required=!0);const te=(K=this._input)===null||K===void 0?void 0:K.getAttribute("value");te!==null&&(this._value=te),!((J=this._input)===null||J===void 0)&&J.value&&((X=this._input)===null||X===void 0?void 0:X.value)!==""&&this._handleValidity(),this.requestUpdate()}_handleValidity(){var O;const U=(O=this._input)===null||O===void 0?void 0:O.checkValidity();U!==void 0&&(this._inputValidity=U)}_closeDropdown(){document.addEventListener("click",O=>{O.composedPath().includes(this)||this._showDropdown&&(this._showDropdown=!1,this.requestUpdate())}),this.addEventListener("focusout",O=>{const U=O.relatedTarget;U!==null&&U!==this&&U!==this._input&&U!==this._label&&(this._showDropdown&&(this._showDropdown=!1),this.requestUpdate())})}_timeMask(O,U,G){const Y=[];for(let K=0;K<O.length;K+=1)K!==0&&K%U===0&&Y.push(G),Y.push(O[K]);return Y.join("")}_timeUnmask(O){return O.replace(/[^\d]/g,"")}_timeValidate(O){const U=O.slice(0,2),G=O.slice(3,5);this._input&&+U>=0&&+U<=23&&+G>=0&&+G<=59?(this._invalid=!1,this._helpText=this._oldHelpText,this._dropdown&&this._dropdown==="list"&&!this._timeListOptions.includes(this._input.value)?(this._helpText=this._errorTimeOptionText,this._invalid=!0):this._dropdown&&this._dropdown==="manual"&&(!this._timeManualHourOptions.includes(U)||!this._timeManualMinutesOptions.includes(G))?(this._helpText=this._errorTimeOptionText,this._invalid=!0):this._showDropdown=!1):(this._helpText=this._errorTimeFormatText,this._invalid=!0),this._dispatchValueChange(),this.requestUpdate()}_dispatchValueChange(){if(this._input){const O={detail:{value:this._input.value,status:this._invalid?"INVALID":"VALID"},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onTimepickerChange",O))}}_handleClick(){if(this._showDropdown=!0,this._value&&(this._dropdown&&this._dropdown==="list"&&this._timeListOptionsScrollTo(),this._dropdown&&this._dropdown==="manual")){const O=this._value.slice(0,2);this._timeManualOptionsScrollTo(O),setTimeout(()=>{this._timeManualOptionsScrollTo()},500)}this.requestUpdate()}_handleInput(){if(this._input){let O=this._input.value;O=this._timeUnmask(O),O.match(this._timePattern)?(O=this._timeMask(O,2,this._timeSeparator),this._input.value=O):this._input.value=this._timeInputOldValue,this._input.value.length===5&&(this._timeValidate(this._input.value),this._handleValidity()),this._dropdown&&this._dropdown==="list"&&this._timeListOptionsScrollTo(),this._dropdown&&this._dropdown==="manual"&&this._timeManualOptionsScrollTo()}}_handleKeyDown(O){this._input&&(this._timeInputOldValue=this._input.value,(O==null?void 0:O.key)==="Enter"||(O==null?void 0:O.key)===" "?(this._showDropdown=!0,this.requestUpdate()):(O==null?void 0:O.key)==="Escape"&&(this._showDropdown=!1,this.requestUpdate()))}_handleFocus(){this._placeholder="00:00",this._input&&this._input.setAttribute("placeholder",this._placeholder),this.requestUpdate()}_handleBlur(){this._placeholder="",this._input&&this._input.removeAttribute("placeholder"),this.requestUpdate()}_focusInput(){var O;(O=this._input)===null||O===void 0||O.focus(),this._handleClick()}_generateTimeListOptions(){const O=[];for(let U=this._minHour;U<this._maxHour;U+=1)for(let G=0;G<60;G+=this._minutesRange){const Y=U.toString().padStart(2,"0"),K=G.toString().padStart(2,"0");O.push(`${Y}:${K}`)}return O}_generateTimeListOptionsHTML(O,U){let G=!0;const Y=U&&U.length>0;return(Y?U:O).map(X=>{const se=oe=>{oe&&oe.focus()},ee=oe=>{let re=0;const ae=this.renderRoot.querySelectorAll(".dss-timepicker-dropdown__label"),ce=ae.length-1;oe===ae[0]?se(ae[ce]):(ae.forEach((ue,de)=>{ue===oe&&(re=de)}),se(ae[re-1]))},ne=oe=>{let re=0;const ae=this.renderRoot.querySelectorAll(".dss-timepicker-dropdown__label"),ce=ae.length-1;oe===ae[ce]?se(ae[0]):(ae.forEach((ue,de)=>{ue===oe&&(re=de)}),se(ae[re+1]))},Q=oe=>{if(this._input){const re=oe.target.getAttribute("value");re&&(this._input.value=re,this._helpText=this._oldHelpText,this._invalid=!1,this._showDropdown=!1,this._handleValidity(),this.requestUpdate(),this._dispatchValueChange())}},te=oe=>{const re=oe.currentTarget,ae=oe;let ce=!1;switch(ae.key){case"ArrowUp":ee(re),ce=!0;break;case"ArrowDown":ne(re),ce=!0;break;case"Enter":const ue=oe.target.querySelector("input"),de=this.renderRoot.querySelector('.dss-timepicker-dropdown__label[tabindex="0"]');de==null||de.setAttribute("tabindex","-1"),oe.target.setAttribute("tabindex","0"),ue==null||ue.click(),ce=!0;break}ce&&(oe.stopPropagation(),oe.preventDefault())},ie={"option--busy":typeof X=="object"&&X.state==="ocupat"},le=x`
4156
+ <div class="dss-timepicker-dropdown__option ${o(ie)}">
4144
4157
  <label
4145
4158
  class="dss-timepicker-dropdown__label"
4146
4159
  tabindex="${G?0:-1}"
@@ -4160,7 +4173,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
4160
4173
  >
4161
4174
  </label>
4162
4175
  </div>
4163
- `;return G=!1,le})}_generateTimeManualHoursOptions(){const O=[];for(let U=this._minHour;U<this._maxHour;U+=1){const G=U.toString().padStart(2,"0");O.push(G)}return O}_generateTimeManualMinutesOptions(){const O=[];for(let U=0;U<60;U+=this._minutesRange){const G=U.toString().padStart(2,"0");O.push(G)}return O}_generateTimeManualOptionsHTML(O,U){let G=!0;return U.map(K=>{const J=ee=>{const ne=ee.target.getAttribute("value");ne&&(O==="timepickerManualHour"?this._manualHourSelector=ne:O==="timepickerManualMinutes"&&(this._manualMinuteSelector=ne),this.requestUpdate())},X=ee=>{const ne=ee.currentTarget,Q=ee;let te=!1;const se=re=>{re&&re.focus()},le=re=>{let ae=0;const ce=this.renderRoot.querySelectorAll(`.dss-timepicker-manual-item__label.${O}`),ue=ce.length-1;re===ce[0]?se(ce[ue]):(ce.forEach((de,he)=>{de===re&&(ae=he)}),se(ce[ae-1]))},oe=re=>{let ae=0;const ce=this.renderRoot.querySelectorAll(`.dss-timepicker-manual-item__label.${O}`),ue=ce.length-1;re===ce[ue]?se(ce[0]):(ce.forEach((de,he)=>{de===re&&(ae=he)}),se(ce[ae+1]))};switch(Q.key){case"ArrowUp":le(ne),te=!0;break;case"ArrowDown":oe(ne),te=!0;break;case"Enter":const re=ee.target.parentElement,ae=re==null?void 0:re.querySelector("input"),ce=this.renderRoot.querySelector(`.dss-timepicker-manual-item__label[tabindex="0"].${O}`);if(ce==null||ce.setAttribute("tabindex","-1"),ee.target.setAttribute("tabindex","0"),ae==null||ae.click(),O==="timepickerManualHour"){const ue=this.renderRoot.querySelector('.dss-timepicker-manual-item__label[tabindex="0"].timepickerManualMinutes');se(ue)}else if(O==="timepickerManualMinutes"){const ue=this.renderRoot.querySelector(".dss-timepicker-dropdown__actions-select");setTimeout(()=>{ue.focus()},0)}te=!0;break}te&&(ee.stopPropagation(),ee.preventDefault())},ie=x`
4176
+ `;return G=!1,le})}_generateTimeManualHoursOptions(){const O=[];for(let U=this._minHour;U<this._maxHour;U+=1){const G=U.toString().padStart(2,"0");O.push(G)}return O}_generateTimeManualMinutesOptions(){const O=[];for(let U=0;U<60;U+=this._minutesRange){const G=U.toString().padStart(2,"0");O.push(G)}return O}_generateTimeManualOptionsHTML(O,U){let G=!0;return U.map(K=>{const J=ee=>{const ne=ee.target.getAttribute("value");ne&&(O==="timepickerManualHour"?this._manualHourSelector=ne:O==="timepickerManualMinutes"&&(this._manualMinuteSelector=ne),this.requestUpdate())},X=ee=>{const ne=ee.currentTarget,Q=ee;let te=!1;const ie=re=>{re&&re.focus()},le=re=>{let ae=0;const ce=this.renderRoot.querySelectorAll(`.dss-timepicker-manual-item__label.${O}`),ue=ce.length-1;re===ce[0]?ie(ce[ue]):(ce.forEach((de,he)=>{de===re&&(ae=he)}),ie(ce[ae-1]))},oe=re=>{let ae=0;const ce=this.renderRoot.querySelectorAll(`.dss-timepicker-manual-item__label.${O}`),ue=ce.length-1;re===ce[ue]?ie(ce[0]):(ce.forEach((de,he)=>{de===re&&(ae=he)}),ie(ce[ae+1]))};switch(Q.key){case"ArrowUp":le(ne),te=!0;break;case"ArrowDown":oe(ne),te=!0;break;case"Enter":const re=ee.target.parentElement,ae=re==null?void 0:re.querySelector("input"),ce=this.renderRoot.querySelector(`.dss-timepicker-manual-item__label[tabindex="0"].${O}`);if(ce==null||ce.setAttribute("tabindex","-1"),ee.target.setAttribute("tabindex","0"),ae==null||ae.click(),O==="timepickerManualHour"){const ue=this.renderRoot.querySelector('.dss-timepicker-manual-item__label[tabindex="0"].timepickerManualMinutes');ie(ue)}else if(O==="timepickerManualMinutes"){const ue=this.renderRoot.querySelector(".dss-timepicker-dropdown__actions-select");setTimeout(()=>{ue.focus()},0)}te=!0;break}te&&(ee.stopPropagation(),ee.preventDefault())},se=x`
4164
4177
  <div class="dss-timepicker-manual-item">
4165
4178
  <input
4166
4179
  id="${O+K}"
@@ -4179,7 +4192,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
4179
4192
  ${K}
4180
4193
  </label>
4181
4194
  </div>
4182
- `;return G=!1,ie})}_checkDisableTimeManualSelector(){return this._manualHourSelector===""||this._manualMinuteSelector===""}_timeManualSelectorCancel(){const O=this.renderRoot.querySelectorAll(".dss-timepicker-manual-item__input-radio:checked");O.length&&O.forEach(U=>{U.checked=!1}),this._manualHourSelector="",this._manualMinuteSelector="",this._showDropdown=!1,this._handleValidity(),this.requestUpdate()}_timeManualSelectorAccept(){this._input&&(this._input.value=`${this._manualHourSelector}:${this._manualMinuteSelector}`,this._helpText=this._oldHelpText,this._invalid=!1,this._showDropdown=!1,this._handleValidity(),this.requestUpdate(),this._dispatchValueChange())}_timeListOptionsScrollTo(){if(this._input){const O=this._input.value.trim(),U=this.renderRoot.querySelectorAll(".dss-timepicker-dropdown__input-radio");let G=!1;U.forEach(Y=>{const K=Y.value;if(!G&&K.startsWith(O)){const J=Y.closest("label");G=!0,J&&(setTimeout(()=>{J.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},0),K===O&&(Y.checked=!0))}})}}_timeManualOptionsScrollTo(O){if(this._input){const U=O?O.trim():this._input.value.trim();if(U.length<=2){const G=this.renderRoot.querySelectorAll(".dss-timepicker-dropdown__items--hour .dss-timepicker-manual-item__label");let Y=!1;G.forEach(K=>{const J=K.innerHTML.replace(/<!--[\s\S]*?-->/g,"").trim();!Y&&J.startsWith(U)&&(Y=!0,setTimeout(()=>{K.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},0),J===U&&K.click())})}else{const G=U.slice(3),Y=this.renderRoot.querySelectorAll(".dss-timepicker-dropdown__items--minute .dss-timepicker-manual-item__label");let K=!1;Y.forEach(J=>{const X=J.innerHTML.replace(/<!--[\s\S]*?-->/g,"").trim();!K&&X.startsWith(G)&&(K=!0,J.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),X===G&&J.click())})}}}render(){var O;const U={"dss-input-group--focused":((O=this._input)===null||O===void 0?void 0:O.value)||this._placeholder,"dss-input-group--lg":this._inputSize==="lg","dss-input-group--md":this._inputSize==="md","dss-input-group--dropdown":this._dropdown==="manual","dss-input-group--invalid":this._invalid||!this._inputValidity,"dss-input-group--required":this._required,"dss-input-group--disabled":this._disabled,"dss-input-group--read-only":this._readonly},G={"dss-timepicker-help--invalid":this._invalid||!this._inputValidity,"dss-timepicker-help--disabled":this._disabled},Y={"dss-timepicker-dropdown--open":this._showDropdown,"dss-timepicker-dropdown--lg":this._inputSize==="lg","dss-timepicker-dropdown--md":this._inputSize==="md"};return x`
4195
+ `;return G=!1,se})}_checkDisableTimeManualSelector(){return this._manualHourSelector===""||this._manualMinuteSelector===""}_timeManualSelectorCancel(){const O=this.renderRoot.querySelectorAll(".dss-timepicker-manual-item__input-radio:checked");O.length&&O.forEach(U=>{U.checked=!1}),this._manualHourSelector="",this._manualMinuteSelector="",this._showDropdown=!1,this._handleValidity(),this.requestUpdate()}_timeManualSelectorAccept(){this._input&&(this._input.value=`${this._manualHourSelector}:${this._manualMinuteSelector}`,this._helpText=this._oldHelpText,this._invalid=!1,this._showDropdown=!1,this._handleValidity(),this.requestUpdate(),this._dispatchValueChange())}_timeListOptionsScrollTo(){if(this._input){const O=this._input.value.trim(),U=this.renderRoot.querySelectorAll(".dss-timepicker-dropdown__input-radio");let G=!1;U.forEach(Y=>{const K=Y.value;if(!G&&K.startsWith(O)){const J=Y.closest("label");G=!0,J&&(setTimeout(()=>{J.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},0),K===O&&(Y.checked=!0))}})}}_timeManualOptionsScrollTo(O){if(this._input){const U=O?O.trim():this._input.value.trim();if(U.length<=2){const G=this.renderRoot.querySelectorAll(".dss-timepicker-dropdown__items--hour .dss-timepicker-manual-item__label");let Y=!1;G.forEach(K=>{const J=K.innerHTML.replace(/<!--[\s\S]*?-->/g,"").trim();!Y&&J.startsWith(U)&&(Y=!0,setTimeout(()=>{K.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},0),J===U&&K.click())})}else{const G=U.slice(3),Y=this.renderRoot.querySelectorAll(".dss-timepicker-dropdown__items--minute .dss-timepicker-manual-item__label");let K=!1;Y.forEach(J=>{const X=J.innerHTML.replace(/<!--[\s\S]*?-->/g,"").trim();!K&&X.startsWith(G)&&(K=!0,J.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),X===G&&J.click())})}}}render(){var O;const U={"dss-input-group--focused":((O=this._input)===null||O===void 0?void 0:O.value)||this._placeholder,"dss-input-group--lg":this._inputSize==="lg","dss-input-group--md":this._inputSize==="md","dss-input-group--dropdown":this._dropdown==="manual","dss-input-group--invalid":this._invalid||!this._inputValidity,"dss-input-group--required":this._required,"dss-input-group--disabled":this._disabled,"dss-input-group--read-only":this._readonly},G={"dss-timepicker-help--invalid":this._invalid||!this._inputValidity,"dss-timepicker-help--disabled":this._disabled},Y={"dss-timepicker-dropdown--open":this._showDropdown,"dss-timepicker-dropdown--lg":this._inputSize==="lg","dss-timepicker-dropdown--md":this._inputSize==="md"};return x`
4183
4196
  <div class="dss-timepicker">
4184
4197
  ${this._dropdown===""?x`
4185
4198
  <div
@@ -4278,9 +4291,9 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
4278
4291
  `:null}
4279
4292
  <div></div>
4280
4293
  </div>
4281
- `}};__decorate([n$2({type:String,attribute:!0})],Timepicker.prototype,"value",null),__decorate([n$2({type:Boolean})],Timepicker.prototype,"invalid",null),__decorate([n$2({type:String})],Timepicker.prototype,"inputSize",null),__decorate([n$2({type:String})],Timepicker.prototype,"helpText",null),__decorate([n$2({type:String})],Timepicker.prototype,"errorTimeFormatText",null),__decorate([n$2({type:String})],Timepicker.prototype,"errorTimeOptionText",null),__decorate([n$2({type:String})],Timepicker.prototype,"dropdown",null),__decorate([n$2({type:Boolean})],Timepicker.prototype,"showDropdown",null),__decorate([n$2({type:Number})],Timepicker.prototype,"minutesRange",null),__decorate([n$2({type:Number})],Timepicker.prototype,"minHour",null),__decorate([n$2({type:Number})],Timepicker.prototype,"maxHour",null),__decorate([n$2({type:Array})],Timepicker.prototype,"customTimeListOptions",null),__decorate([n$2({type:String})],Timepicker.prototype,"icon",null),Timepicker=__decorate([e$5("dss-timepicker")],Timepicker);let Input=class extends s$1{constructor(){super(...arguments),this._label="Label",this._icon="add_box",this._placeholder="",this._inputSize="lg",this._maxLength=void 0,this._invalid=!1,this._helpText="",this._isFocused=!1,this._isTypeNumeric=!1,this._inputValidity=!0,this.observerConfig={attributes:!0,childList:!0,subtree:!0},this.callback=O=>{for(const U of O)U.type==="attributes"&&(this._checkInputAttributes(),this.requestUpdate())},this.observer=new MutationObserver(this.callback)}static get styles(){return[symbolStyles,inputStyles,iconButtonStyles,i$5``]}get _input(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="input"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}set label(O){const U=this._label;this._label=O,this.requestUpdate("label",U)}set icon(O){const U=this._icon;this._icon=O,this.requestUpdate("icon",U)}set inputSize(O){const U=this._inputSize;O==="md"?this._inputSize=O:this._inputSize="lg",this.requestUpdate("inputSize",U)}set helpText(O){const U=this._helpText;this._helpText=O,this.requestUpdate("helpText",U)}set invalid(O){const U=this._invalid;this._invalid=O,this.requestUpdate("invalid",U)}disconnectedCallback(){this.observer.disconnect()}_handleClick(){this.requestUpdate()}_handleInput(){this._isTypeNumeric&&this._maxLength&&this._input&&(this._input.value=this._input.value.slice(0,this._maxLength)),this._handleValidity(),this.requestUpdate()}_handleFocusIn(){this._isFocused=!0,this.requestUpdate()}_handleFocusOut(){this._isFocused=!1,this.requestUpdate()}_focusInput(){var O;(O=this._input)===null||O===void 0||O.focus()}_handleValidity(){var O;const U=(O=this._input)===null||O===void 0?void 0:O.checkValidity();U!==void 0&&(this._inputValidity=U)}_stepUp(){var O;(O=this._input)===null||O===void 0||O.stepUp(),this._handleValidity(),this._dispatchValueChange(),this.requestUpdate()}_stepDown(){var O;(O=this._input)===null||O===void 0||O.stepDown(),this._handleValidity(),this._dispatchValueChange(),this.requestUpdate()}_dispatchValueChange(){if(this._input){const O={detail:this._input.value,bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onInputChange",O))}}_checkInputAttributes(){var O,U,G,Y,K;const J=(O=this._input)===null||O===void 0?void 0:O.getAttribute("placeholder");J&&(this._placeholder=J),((U=this._input)===null||U===void 0?void 0:U.getAttribute("type"))==="number"&&(this._isTypeNumeric=!0);const X=(G=this._input)===null||G===void 0?void 0:G.getAttribute("maxlength");this._maxLength=X?+X:void 0,!((Y=this._input)===null||Y===void 0)&&Y.value&&((K=this._input)===null||K===void 0?void 0:K.value)!==""&&this._handleValidity()}async firstUpdated(){try{await this.updateComplete,this._input&&(this._checkInputAttributes(),this.observer.observe(this._input,this.observerConfig)),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}render(){var O,U,G,Y,K,J,X;const ie={"dss-input-group--invalid":this._invalid||!this._inputValidity,"dss-input-group--disabled":(O=this._input)===null||O===void 0?void 0:O.disabled,"dss-input-group--required":(U=this._input)===null||U===void 0?void 0:U.required,"dss-input-group--read-only":(G=this._input)===null||G===void 0?void 0:G.readOnly,"dss-input-group--focused":((Y=this._input)===null||Y===void 0?void 0:Y.value)||this._placeholder||this._isFocused,"dss-input-group--lg":this._inputSize==="lg","dss-input-group--md":this._inputSize==="md","dss-input-group--numeric":this._isTypeNumeric,"dss-input-group--has-icon":this._icon&&this._icon!==""},ee={"dss-input-help--invalid":this._invalid,"dss-input-help--disabled":(K=this._input)===null||K===void 0?void 0:K.disabled};return x`
4294
+ `}};__decorate([n$2({type:String,attribute:!0})],Timepicker.prototype,"value",null),__decorate([n$2({type:Boolean})],Timepicker.prototype,"invalid",null),__decorate([n$2({type:String})],Timepicker.prototype,"inputSize",null),__decorate([n$2({type:String})],Timepicker.prototype,"helpText",null),__decorate([n$2({type:String})],Timepicker.prototype,"errorTimeFormatText",null),__decorate([n$2({type:String})],Timepicker.prototype,"errorTimeOptionText",null),__decorate([n$2({type:String})],Timepicker.prototype,"dropdown",null),__decorate([n$2({type:Boolean})],Timepicker.prototype,"showDropdown",null),__decorate([n$2({type:Number})],Timepicker.prototype,"minutesRange",null),__decorate([n$2({type:Number})],Timepicker.prototype,"minHour",null),__decorate([n$2({type:Number})],Timepicker.prototype,"maxHour",null),__decorate([n$2({type:Array})],Timepicker.prototype,"customTimeListOptions",null),__decorate([n$2({type:String})],Timepicker.prototype,"icon",null),Timepicker=__decorate([e$5("dss-timepicker")],Timepicker);let Input=class extends s$1{constructor(){super(...arguments),this._label="Label",this._icon="add_box",this._placeholder="",this._inputSize="lg",this._maxLength=void 0,this._invalid=!1,this._helpText="",this._isFocused=!1,this._isTypeNumeric=!1,this._inputValidity=!0,this.observerConfig={attributes:!0,childList:!0,subtree:!0},this.callback=O=>{for(const U of O)U.type==="attributes"&&(this._checkInputAttributes(),this.requestUpdate())},this.observer=new MutationObserver(this.callback)}static get styles(){return[symbolStyles,inputStyles,iconButtonStyles,i$5``]}get _input(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="input"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}set label(O){const U=this._label;this._label=O,this.requestUpdate("label",U)}set icon(O){const U=this._icon;this._icon=O,this.requestUpdate("icon",U)}set inputSize(O){const U=this._inputSize;O==="md"?this._inputSize=O:this._inputSize="lg",this.requestUpdate("inputSize",U)}set helpText(O){const U=this._helpText;this._helpText=O,this.requestUpdate("helpText",U)}set invalid(O){const U=this._invalid;this._invalid=O,this.requestUpdate("invalid",U)}disconnectedCallback(){this.observer.disconnect()}_handleClick(){this.requestUpdate()}_handleInput(){this._isTypeNumeric&&this._maxLength&&this._input&&(this._input.value=this._input.value.slice(0,this._maxLength)),this._handleValidity(),this.requestUpdate()}_handleFocusIn(){this._isFocused=!0,this.requestUpdate()}_handleFocusOut(){this._isFocused=!1,this.requestUpdate()}_focusInput(){var O;(O=this._input)===null||O===void 0||O.focus()}_handleValidity(){var O;const U=(O=this._input)===null||O===void 0?void 0:O.checkValidity();U!==void 0&&(this._inputValidity=U)}_stepUp(){var O;(O=this._input)===null||O===void 0||O.stepUp(),this._handleValidity(),this._dispatchValueChange(),this.requestUpdate()}_stepDown(){var O;(O=this._input)===null||O===void 0||O.stepDown(),this._handleValidity(),this._dispatchValueChange(),this.requestUpdate()}_dispatchValueChange(){if(this._input){const O={detail:this._input.value,bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onInputChange",O))}}_checkInputAttributes(){var O,U,G,Y,K;const J=(O=this._input)===null||O===void 0?void 0:O.getAttribute("placeholder");J&&(this._placeholder=J),((U=this._input)===null||U===void 0?void 0:U.getAttribute("type"))==="number"&&(this._isTypeNumeric=!0);const X=(G=this._input)===null||G===void 0?void 0:G.getAttribute("maxlength");this._maxLength=X?+X:void 0,!((Y=this._input)===null||Y===void 0)&&Y.value&&((K=this._input)===null||K===void 0?void 0:K.value)!==""&&this._handleValidity()}async firstUpdated(){try{await this.updateComplete,this._input&&(this._checkInputAttributes(),this.observer.observe(this._input,this.observerConfig)),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}render(){var O,U,G,Y,K,J,X;const se={"dss-input-group--invalid":this._invalid||!this._inputValidity,"dss-input-group--disabled":(O=this._input)===null||O===void 0?void 0:O.disabled,"dss-input-group--required":(U=this._input)===null||U===void 0?void 0:U.required,"dss-input-group--read-only":(G=this._input)===null||G===void 0?void 0:G.readOnly,"dss-input-group--focused":((Y=this._input)===null||Y===void 0?void 0:Y.value)||this._placeholder||this._isFocused,"dss-input-group--lg":this._inputSize==="lg","dss-input-group--md":this._inputSize==="md","dss-input-group--numeric":this._isTypeNumeric,"dss-input-group--has-icon":this._icon&&this._icon!==""},ee={"dss-input-help--invalid":this._invalid,"dss-input-help--disabled":(K=this._input)===null||K===void 0?void 0:K.disabled};return x`
4282
4295
  <div class="dss-input-wrapper">
4283
- <div class="dss-input-group ${o(ie)}">
4296
+ <div class="dss-input-group ${o(se)}">
4284
4297
  ${this._icon?x`
4285
4298
  <span class="dss-icon dss-icon--md dss-input-icon">
4286
4299
  ${this._icon}
@@ -4355,7 +4368,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
4355
4368
  .dss-input-group__action-button--sm {
4356
4369
  top: var(--dss-spacing-sm);
4357
4370
  }
4358
- `]}get _input(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="input"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}get _label(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="label"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}set icon(O){const U=this._icon;this._icon=O,this.requestUpdate("icon",U)}set placeHolder(O){const U=this._placeHolder;this._placeHolder=O,this.requestUpdate("placeHolder",U)}set elements(O){const U=this._elements;this._elements=O,O&&(this._input&&(this._input.value=""),this._filteredElements=this._getFilteredElements(),this._copyElements=JSON.parse(JSON.stringify(this._elements)),this._initElementsSelected(),this.requestUpdate()),this.requestUpdate("elements",U)}set multiple(O){const U=this._multiple;this._multiple=O,this.requestUpdate("multiple",U)}set tick(O){const U=this._tick;this._tick=O,this.requestUpdate("tick",U)}set openWithSearch(O){const U=this._openWithSearch;this._openWithSearch=O,O&&(this._showDropdown=O,this._isFocused=!0),this.requestUpdate("openWithSearch",U)}set showDropdown(O){const U=this._showDropdown;this._showDropdown=O,this.requestUpdate("showDropdown",U)}set deselectable(O){const U=this._deselectable;this._deselectable=O,this.requestUpdate("deselectable",U)}set selectedValue(O){const U=this._selectedValue;O&&(this._selectedValue=O),this._elements&&this._selectedValue&&(this._selectedValue.length>0&&(this._isFocused=!0),this._initElementsSelected()),this.requestUpdate("selectedValue",U)}set type(O){const U=this._type;O==="default"||O==="green"?this._type=O:this._type="default",this.requestUpdate("type",U)}set boxStyle(O){const U=this._boxStyle;this._boxStyle=O,this.requestUpdate("boxStyle",U)}set selectorStyle(O){const U=this._selectorStyle;this._selectorStyle=O,this.requestUpdate("selectorStyle",U)}set labelSelectAll(O){const U=this._labelSelectAll;O!==""&&(this._labelSelectAll=O),this.requestUpdate("labelSelectAll",U)}set labelDeselectAll(O){const U=this._labelDeselectAll;O!==""&&(this._labelDeselectAll=O),this.requestUpdate("labelDeselectAll",U)}set selectAll(O){const U=this._selectAll;this._selectAll=O,this.requestUpdate("selectAll",U)}set invalid(O){const U=this._invalid;this._invalid=O,this.requestUpdate("invalid",U)}set inputSize(O){const U=this._inputSize;O==="md"?this._inputSize=O:this._inputSize="lg",this.requestUpdate("inputSize",U)}set helpText(O){const U=this._helpText;this._helpText=O,this.requestUpdate("helpText",U)}set dropdownPlaceholder(O){const U=this._dropdownPlaceholder;this._dropdownPlaceholder=O,this.requestUpdate("dropdownPlaceholder",U)}disconnectedCallback(){this.observer.disconnect()}_getFilteredElements(){var O,U;if(this._input&&this._input.value){const G=(O=this._input)===null||O===void 0?void 0:O.value.toLowerCase();if(G)return(U=this._elements)===null||U===void 0?void 0:U.filter(Y=>Y.label.toLowerCase().includes(G))}else return this._elements}async firstUpdated(){var O;try{await this.updateComplete,this._input&&(this.observer.observe(this._input,this.observerConfig),this._checkInputAttributes()),this._elements&&(this._filteredElements=this._getFilteredElements(),this._copyElements=this._elements,this._initElementsSelected()),this._openWithSearch&&this._input&&(this._input.value="",!((O=this._input)===null||O===void 0)&&O.getAttribute("placeholder")||this._input.setAttribute("placeholder",this._dropdownPlaceholder)),!this._openWithSearch&&!this._disabled&&document.addEventListener("click",U=>{this._clickedOutsideDropdown(this,U)}),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}_initElementsSelected(){this._showSelectValuesInInput(this._selectedValue?this._selectedValue:[])}_clickedOutsideDropdown(O,U){this._showDropdown&&(U.composedPath().includes(O)||(this._input&&(this._input.value=""),this._initElementsSelected(),(!this._selectedValue||this._selectedValue.length<=0)&&(this._filteredElements=this._getFilteredElements()),this._hidePlaceholder(),this._showDropdown=!1,this._isFocused=!1,this.requestUpdate()))}_handleInput(){this._filteredElements=this._getFilteredElements(),this.requestUpdate()}_handleBlurEsc(){this._readonly||this._openWithSearch||(this._isFocused=!0,this._showDropdown=!1,this.requestUpdate())}_handleBlurSelector(O,U){var G;if(O!==U.target){if(this._openWithSearch)return;(G=this._input)===null||G===void 0||G.focus(),this._handleBlurEsc(),this._showSelectValuesInInput(this._selectedValue?this._selectedValue:[])}}_toggleDropdown(){var O;this._showDropdown&&this._input?(this._initElementsSelected(),(!this._selectedValue||this._selectedValue.length<=0)&&(this._filteredElements=this._getFilteredElements())):!this._showDropdown&&this._input&&(this._input.value="",this._showPlaceholder(),(O=this._input)===null||O===void 0||O.focus()),this._showDropdown=!this._showDropdown,this.requestUpdate()}_handleKeyInput(O){(O==null?void 0:O.key)==="Enter"?this._showDropdown=!0:(O==null?void 0:O.key)==="Escape"?this._handleBlurEsc():this._showDropdown=!this._showDropdown}_dispatchValueChange(){if(this._input){const O={detail:{inputValue:this._input.value,selectedValue:this._selectedValue},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onInputDropdownChange",O))}}_onSelectorChanges(O){const U=O.detail;this._selectedValue=typeof U=="string"?[O.detail]:O.detail,!this._multiple&&!this._openWithSearch&&!this._disabled&&(this._showDropdown=!1,this._initElementsSelected(),this._handleValidity()),this._dispatchValueChange(),this.requestUpdate()}_showSelectValuesInInput(O){var U,G,Y,K;!this._multiple&&Array.isArray(O)&&O.length>1&&O.splice(1);const J=(U=this._elements)===null||U===void 0?void 0:U.filter(ie=>O.includes(ie.value));if(this._elements=[...this._copyElements],this._openWithSearch?this._selectElements=0:this._selectElements=J!=null&&J.length?J.length:0,J&&J.length>0){const ie=this._elements.filter(ee=>J.includes(ee));ie.push(...this._elements.filter(ee=>!J.includes(ee))),this._elements=[...ie],this._filteredElements=this._elements}if(!this._multiple&&this._input){this._input.value=(Y=(G=J==null?void 0:J[0])===null||G===void 0?void 0:G.label)!==null&&Y!==void 0?Y:"";return}const X=J==null?void 0:J.map(ie=>ie.label);this._input&&(this._input.value=(K=X==null?void 0:X.join(", "))!==null&&K!==void 0?K:"")}_checkInputAttributes(){var O,U,G,Y,K,J;const X=(O=this._input)===null||O===void 0?void 0:O.getAttribute("placeholder");X&&(this._placeHolder=X);const ie=(U=this._input)===null||U===void 0?void 0:U.getAttribute("readonly");this._readonly=ie!==null;const ee=(G=this._input)===null||G===void 0?void 0:G.getAttribute("disabled");this._disabled=ee!==null;const ne=(Y=this._input)===null||Y===void 0?void 0:Y.getAttribute("required");this._required=ne!==null,!((K=this._input)===null||K===void 0)&&K.value&&((J=this._input)===null||J===void 0?void 0:J.value)!==""&&this._handleValidity(),this.requestUpdate()}_handleFocusIn(){this._isFocused=!0,this.requestUpdate()}_handleFocusOut(O){var U,G;const Y=O.relatedTarget;if(Y instanceof HTMLElement&&Y.contains(this))return;const K=(U=this.shadowRoot)===null||U===void 0?void 0:U.querySelector("dss-selector"),J=(G=this.shadowRoot)===null||G===void 0?void 0:G.querySelector(".dss-input-group__action-button");Y!==null&&Y!==this._input&&Y!==K&&Y!==J&&(this._selectedValue&&this._initElementsSelected(),this._showDropdown=!1,this._isFocused=!1,this._hidePlaceholder()),this.requestUpdate()}_handleKeyDown(O){(O==null?void 0:O.key)==="Enter"?(this._handleClick(),this.requestUpdate()):(O==null?void 0:O.key)==="Escape"&&(this._showDropdown=!1,this._initElementsSelected(),this._hidePlaceholder(),this.requestUpdate())}_handleClick(){!this._disabled&&!this._readonly&&(this._input&&(this._openWithSearch||(this._input.value=""),this._showPlaceholder()),this._isFocused=!0,this._showDropdown=!0,this.requestUpdate())}_focusInput(){var O;(O=this._input)===null||O===void 0||O.focus(),this._handleClick()}_showPlaceholder(){var O;this._placeHolder||(O=this._input)===null||O===void 0||O.setAttribute("placeholder",this._dropdownPlaceholder)}_hidePlaceholder(){var O;this._placeHolder||(O=this._input)===null||O===void 0||O.removeAttribute("placeholder")}_handleValidity(){var O;const U=(O=this._input)===null||O===void 0?void 0:O.checkValidity();U!==void 0&&(this._inputValidity=U)}_cleanInput(){this._input&&(this._input.value="",this._filteredElements=this._getFilteredElements(),this.requestUpdate())}render(){var O,U;const G={"dss-selector":!this._openWithSearch,"dss-selector--disabled":this._disabled,"dss-selector-dropdown":!0,"dss-selector--md":!this._openWithSearch&&this._inputSize==="md"},Y={"dss-input-group--invalid":this._invalid||!this._inputValidity,"dss-input-group--required":this._required,"dss-input-group--disabled":this._disabled,"dss-input-group--focused":((O=this._input)===null||O===void 0?void 0:O.value)||this._placeHolder||this._isFocused,"dss-input-group--lg":this._inputSize==="lg","dss-input-group--md":this._inputSize==="md","dss-input-group--dropdown":!0,"dss-input-group--read-only":this._readonly,"dss-input-group--has-icon":this._icon&&this._icon!==""},K={"dss-input-help--invalid":this._invalid,"dss-input-help--disabled":this._disabled};return x` <div class="dss-wrapper" style=${l(this._boxStyle)}>
4371
+ `]}get _input(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="input"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}get _label(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="label"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}set icon(O){const U=this._icon;this._icon=O,this.requestUpdate("icon",U)}set placeHolder(O){const U=this._placeHolder;this._placeHolder=O,this.requestUpdate("placeHolder",U)}set elements(O){const U=this._elements;this._elements=O,O&&(this._input&&(this._input.value=""),this._filteredElements=this._getFilteredElements(),this._copyElements=JSON.parse(JSON.stringify(this._elements)),this._initElementsSelected(),this.requestUpdate()),this.requestUpdate("elements",U)}set multiple(O){const U=this._multiple;this._multiple=O,this.requestUpdate("multiple",U)}set tick(O){const U=this._tick;this._tick=O,this.requestUpdate("tick",U)}set openWithSearch(O){const U=this._openWithSearch;this._openWithSearch=O,O&&(this._showDropdown=O,this._isFocused=!0),this.requestUpdate("openWithSearch",U)}set showDropdown(O){const U=this._showDropdown;this._showDropdown=O,this.requestUpdate("showDropdown",U)}set deselectable(O){const U=this._deselectable;this._deselectable=O,this.requestUpdate("deselectable",U)}set selectedValue(O){const U=this._selectedValue;O&&(this._selectedValue=O),this._elements&&this._selectedValue&&(this._selectedValue.length>0&&(this._isFocused=!0),this._initElementsSelected()),this.requestUpdate("selectedValue",U)}set type(O){const U=this._type;O==="default"||O==="green"?this._type=O:this._type="default",this.requestUpdate("type",U)}set boxStyle(O){const U=this._boxStyle;this._boxStyle=O,this.requestUpdate("boxStyle",U)}set selectorStyle(O){const U=this._selectorStyle;this._selectorStyle=O,this.requestUpdate("selectorStyle",U)}set labelSelectAll(O){const U=this._labelSelectAll;O!==""&&(this._labelSelectAll=O),this.requestUpdate("labelSelectAll",U)}set labelDeselectAll(O){const U=this._labelDeselectAll;O!==""&&(this._labelDeselectAll=O),this.requestUpdate("labelDeselectAll",U)}set selectAll(O){const U=this._selectAll;this._selectAll=O,this.requestUpdate("selectAll",U)}set invalid(O){const U=this._invalid;this._invalid=O,this.requestUpdate("invalid",U)}set inputSize(O){const U=this._inputSize;O==="md"?this._inputSize=O:this._inputSize="lg",this.requestUpdate("inputSize",U)}set helpText(O){const U=this._helpText;this._helpText=O,this.requestUpdate("helpText",U)}set dropdownPlaceholder(O){const U=this._dropdownPlaceholder;this._dropdownPlaceholder=O,this.requestUpdate("dropdownPlaceholder",U)}disconnectedCallback(){this.observer.disconnect()}_getFilteredElements(){var O,U;if(this._input&&this._input.value){const G=(O=this._input)===null||O===void 0?void 0:O.value.toLowerCase();if(G)return(U=this._elements)===null||U===void 0?void 0:U.filter(Y=>Y.label.toLowerCase().includes(G))}else return this._elements}async firstUpdated(){var O;try{await this.updateComplete,this._input&&(this.observer.observe(this._input,this.observerConfig),this._checkInputAttributes()),this._elements&&(this._filteredElements=this._getFilteredElements(),this._copyElements=this._elements,this._initElementsSelected()),this._openWithSearch&&this._input&&(this._input.value="",!((O=this._input)===null||O===void 0)&&O.getAttribute("placeholder")||this._input.setAttribute("placeholder",this._dropdownPlaceholder)),!this._openWithSearch&&!this._disabled&&document.addEventListener("click",U=>{this._clickedOutsideDropdown(this,U)}),this.requestUpdate()}catch{console.error("ERROR OCURRED")}}_initElementsSelected(){this._showSelectValuesInInput(this._selectedValue?this._selectedValue:[])}_clickedOutsideDropdown(O,U){this._showDropdown&&(U.composedPath().includes(O)||(this._input&&(this._input.value=""),this._initElementsSelected(),(!this._selectedValue||this._selectedValue.length<=0)&&(this._filteredElements=this._getFilteredElements()),this._hidePlaceholder(),this._showDropdown=!1,this._isFocused=!1,this.requestUpdate()))}_handleInput(){this._filteredElements=this._getFilteredElements(),this.requestUpdate()}_handleBlurEsc(){this._readonly||this._openWithSearch||(this._isFocused=!0,this._showDropdown=!1,this.requestUpdate())}_handleBlurSelector(O,U){var G;if(O!==U.target){if(this._openWithSearch)return;(G=this._input)===null||G===void 0||G.focus(),this._handleBlurEsc(),this._showSelectValuesInInput(this._selectedValue?this._selectedValue:[])}}_toggleDropdown(){var O;this._showDropdown&&this._input?(this._initElementsSelected(),(!this._selectedValue||this._selectedValue.length<=0)&&(this._filteredElements=this._getFilteredElements())):!this._showDropdown&&this._input&&(this._input.value="",this._showPlaceholder(),(O=this._input)===null||O===void 0||O.focus()),this._showDropdown=!this._showDropdown,this.requestUpdate()}_handleKeyInput(O){(O==null?void 0:O.key)==="Enter"?this._showDropdown=!0:(O==null?void 0:O.key)==="Escape"?this._handleBlurEsc():this._showDropdown=!this._showDropdown}_dispatchValueChange(){if(this._input){const O={detail:{inputValue:this._input.value,selectedValue:this._selectedValue},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onInputDropdownChange",O))}}_onSelectorChanges(O){const U=O.detail;this._selectedValue=typeof U=="string"?[O.detail]:O.detail,!this._multiple&&!this._openWithSearch&&!this._disabled&&(this._showDropdown=!1,this._initElementsSelected(),this._handleValidity()),this._dispatchValueChange(),this.requestUpdate()}_showSelectValuesInInput(O){var U,G,Y,K;!this._multiple&&Array.isArray(O)&&O.length>1&&O.splice(1);const J=(U=this._elements)===null||U===void 0?void 0:U.filter(se=>O.includes(se.value));if(this._elements=[...this._copyElements],this._openWithSearch?this._selectElements=0:this._selectElements=J!=null&&J.length?J.length:0,J&&J.length>0){const se=this._elements.filter(ee=>J.includes(ee));se.push(...this._elements.filter(ee=>!J.includes(ee))),this._elements=[...se],this._filteredElements=this._elements}if(!this._multiple&&this._input){this._input.value=(Y=(G=J==null?void 0:J[0])===null||G===void 0?void 0:G.label)!==null&&Y!==void 0?Y:"";return}const X=J==null?void 0:J.map(se=>se.label);this._input&&(this._input.value=(K=X==null?void 0:X.join(", "))!==null&&K!==void 0?K:"")}_checkInputAttributes(){var O,U,G,Y,K,J;const X=(O=this._input)===null||O===void 0?void 0:O.getAttribute("placeholder");X&&(this._placeHolder=X);const se=(U=this._input)===null||U===void 0?void 0:U.getAttribute("readonly");this._readonly=se!==null;const ee=(G=this._input)===null||G===void 0?void 0:G.getAttribute("disabled");this._disabled=ee!==null;const ne=(Y=this._input)===null||Y===void 0?void 0:Y.getAttribute("required");this._required=ne!==null,!((K=this._input)===null||K===void 0)&&K.value&&((J=this._input)===null||J===void 0?void 0:J.value)!==""&&this._handleValidity(),this.requestUpdate()}_handleFocusIn(){this._isFocused=!0,this.requestUpdate()}_handleFocusOut(O){var U,G;const Y=O.relatedTarget;if(Y instanceof HTMLElement&&Y.contains(this))return;const K=(U=this.shadowRoot)===null||U===void 0?void 0:U.querySelector("dss-selector"),J=(G=this.shadowRoot)===null||G===void 0?void 0:G.querySelector(".dss-input-group__action-button");Y!==null&&Y!==this._input&&Y!==K&&Y!==J&&(this._selectedValue&&this._initElementsSelected(),this._showDropdown=!1,this._isFocused=!1,this._hidePlaceholder()),this.requestUpdate()}_handleKeyDown(O){(O==null?void 0:O.key)==="Enter"?(this._handleClick(),this.requestUpdate()):(O==null?void 0:O.key)==="Escape"&&(this._showDropdown=!1,this._initElementsSelected(),this._hidePlaceholder(),this.requestUpdate())}_handleClick(){!this._disabled&&!this._readonly&&(this._input&&(this._openWithSearch||(this._input.value=""),this._showPlaceholder()),this._isFocused=!0,this._showDropdown=!0,this.requestUpdate())}_focusInput(){var O;(O=this._input)===null||O===void 0||O.focus(),this._handleClick()}_showPlaceholder(){var O;this._placeHolder||(O=this._input)===null||O===void 0||O.setAttribute("placeholder",this._dropdownPlaceholder)}_hidePlaceholder(){var O;this._placeHolder||(O=this._input)===null||O===void 0||O.removeAttribute("placeholder")}_handleValidity(){var O;const U=(O=this._input)===null||O===void 0?void 0:O.checkValidity();U!==void 0&&(this._inputValidity=U)}_cleanInput(){this._input&&(this._input.value="",this._filteredElements=this._getFilteredElements(),this.requestUpdate())}render(){var O,U;const G={"dss-selector":!this._openWithSearch,"dss-selector--disabled":this._disabled,"dss-selector-dropdown":!0,"dss-selector--md":!this._openWithSearch&&this._inputSize==="md"},Y={"dss-input-group--invalid":this._invalid||!this._inputValidity,"dss-input-group--required":this._required,"dss-input-group--disabled":this._disabled,"dss-input-group--focused":((O=this._input)===null||O===void 0?void 0:O.value)||this._placeHolder||this._isFocused,"dss-input-group--lg":this._inputSize==="lg","dss-input-group--md":this._inputSize==="md","dss-input-group--dropdown":!0,"dss-input-group--read-only":this._readonly,"dss-input-group--has-icon":this._icon&&this._icon!==""},K={"dss-input-help--invalid":this._invalid,"dss-input-help--disabled":this._disabled};return x` <div class="dss-wrapper" style=${l(this._boxStyle)}>
4359
4372
  <div
4360
4373
  class="dss-input-group dss-input-group--dropdown ${o(Y)}"
4361
4374
  role="combobox"
@@ -5200,24 +5213,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
5200
5213
  .dss-search-bar__chips .dss-chip__counter:hover .dss-chip__tooltip {
5201
5214
  display: block;
5202
5215
  }
5203
- `]}get _input(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="input"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}set multiple(O){const U=this._multiple;this._multiple=O,this.requestUpdate("multiple",U)}set icon(O){const U=this._icon;this._icon=O,this.requestUpdate("icon",U)}set inputSize(O){const U=this._inputSize;O==="md"?this._inputSize=O:this._inputSize="lg",this.requestUpdate("inputSize",U)}set helpText(O){const U=this._helpText;this._helpText=O,this.requestUpdate("helpText",U)}set invalid(O){const U=this._invalid;O?this._invalid=O:this._invalid=this._inputValidity?O:!0,this.requestUpdate("invalid",U)}set threshold(O){const U=this._threshold;this._threshold=O,this.requestUpdate("threshold",U)}set searchTerms(O){const U=this._searchTerms;this._searchTerms=O,this.requestUpdate("searchTerms",U)}set catalog(O){const U=this._catalog;this._catalog=O,this.requestUpdate("catalog",U)}set emptyDropdownText(O){const U=this._emptyDropdownText;this._emptyDropdownText=O,this.requestUpdate("emptyDropdownText",U)}set recentSearchesText(O){const U=this._recentSearchesText;this._recentSearchesText=O,this.requestUpdate("recentSearchesText",U)}set recentSearches(O){const U=this._recentSearches;this._recentSearches=O,this.requestUpdate("recentSearches",U)}set isCatalogLoading(O){const U=this._isCatalogLoading;this._isCatalogLoading=O,this.requestUpdate("isCatalogLoading",U)}set dropdownStyle(O){const U=this._dropdownStyle;this._dropdownStyle=O,this.requestUpdate("dropdownStyle",U)}_getSearchStyle(){return`top: ${this.renderRoot.querySelectorAll(".dss-search-bar")[0].offsetHeight+4}px; ${this._dropdownStyle}`}get _inputValidity(){var O;return this._input&&this._input.value!==""?(O=this._input)===null||O===void 0?void 0:O.checkValidity():!0}_handleClick(){this.requestUpdate()}_handleInput(){let O=this._input.value;O.length>=this._threshold?(this._showDropdown=!0,this._filteredCatalog=this._getFilterCatalog(O),this._multiple&&O.endsWith(",")&&(O=O.slice(0,-1),this._searchTerms.push(O),this._input.value="",this._searchTerms.length&&this._dispatchSearchChange()),this._searchboxStyle=this._getSearchStyle(),this.requestUpdate()):this._hideDropdown(),this.requestUpdate()}_handleFocusIn(){this._isFocused=!0,this._showClearButton=!0,this.requestUpdate()}_handleFocusOut(){this._isFocused=!1,this._showClearButton=!1,this.requestUpdate()}_handleKeyDown(O){(O==null?void 0:O.key)==="Enter"?(this._showDropdown=!0,!this._multiple&&this._input.value!==""&&(this._searchTerms=[],this._searchTerms.push(this._input.value),this._dispatchSearchChange(),this._showDropdown=!1),this._searchboxStyle=this._getSearchStyle()):(O==null?void 0:O.key)==="Escape"&&(this._showDropdown=!1),this.requestUpdate()}_focusInput(){var O;(O=this._input)===null||O===void 0||O.focus()}_clearSearch(){this._input&&(this._input.value="",this._input.focus()),this._searchTerms=[],this._dispatchSearchChange(),this._hideDropdown(),this.requestUpdate()}_hideDropdown(){this._showDropdown=!1,this._filteredCatalog=[]}_getFilterCatalog(O){return this._catalog.filter(U=>U.value.toLowerCase().includes(O.toLowerCase()))}_generateSearchChips(){let O=0;return this._searchTerms.map(G=>{var Y,K,J,X,ie;const ee=te=>{const se=te.target.getAttribute("term");this._searchTerms=this._searchTerms.filter(le=>le!==se),this._dispatchSearchChange(),this.requestUpdate()};O+=1;const ne={disabled:((Y=this._input)===null||Y===void 0?void 0:Y.disabled)||((K=this._input)===null||K===void 0?void 0:K.readOnly),"dss-chip--selected":!(!((J=this._input)===null||J===void 0)&&J.disabled)&&!(!((X=this._input)===null||X===void 0)&&X.readOnly),"dss-chip--hide":O>5};return x`
5216
+ `]}get _input(){var O;const U=((O=this.shadowRoot)===null||O===void 0?void 0:O.querySelector('slot[name="input"]'))||void 0;return this.requestUpdate(),U==null?void 0:U.assignedElements()[0]}set multiple(O){const U=this._multiple;this._multiple=O,this.requestUpdate("multiple",U)}set icon(O){const U=this._icon;this._icon=O,this.requestUpdate("icon",U)}set inputSize(O){const U=this._inputSize;O==="md"?this._inputSize=O:this._inputSize="lg",this.requestUpdate("inputSize",U)}set helpText(O){const U=this._helpText;this._helpText=O,this.requestUpdate("helpText",U)}set invalid(O){const U=this._invalid;O?this._invalid=O:this._invalid=this._inputValidity?O:!0,this.requestUpdate("invalid",U)}set threshold(O){const U=this._threshold;this._threshold=O,this.requestUpdate("threshold",U)}set searchTerms(O){const U=this._searchTerms;this._searchTerms=O,this.requestUpdate("searchTerms",U)}set catalog(O){const U=this._catalog;this._catalog=O,this.requestUpdate("catalog",U)}set emptyDropdownText(O){const U=this._emptyDropdownText;this._emptyDropdownText=O,this.requestUpdate("emptyDropdownText",U)}set recentSearchesText(O){const U=this._recentSearchesText;this._recentSearchesText=O,this.requestUpdate("recentSearchesText",U)}set recentSearches(O){const U=this._recentSearches;this._recentSearches=O,this.requestUpdate("recentSearches",U)}set isCatalogLoading(O){const U=this._isCatalogLoading;this._isCatalogLoading=O,this.requestUpdate("isCatalogLoading",U)}set dropdownStyle(O){const U=this._dropdownStyle;this._dropdownStyle=O,this.requestUpdate("dropdownStyle",U)}_getSearchStyle(){return`top: ${this.renderRoot.querySelectorAll(".dss-search-bar")[0].offsetHeight+4}px; ${this._dropdownStyle}`}get _inputValidity(){var O;return this._input&&this._input.value!==""?(O=this._input)===null||O===void 0?void 0:O.checkValidity():!0}_handleClick(){this.requestUpdate()}_handleInput(){let O=this._input.value;O.length>=this._threshold?(this._showDropdown=!0,this._filteredCatalog=this._getFilterCatalog(O),this._multiple&&O.endsWith(",")&&(O=O.slice(0,-1),this._searchTerms.push(O),this._input.value="",this._searchTerms.length&&this._dispatchSearchChange()),this._searchboxStyle=this._getSearchStyle(),this.requestUpdate()):this._hideDropdown(),this.requestUpdate()}_handleFocusIn(){this._isFocused=!0,this._showClearButton=!0,this.requestUpdate()}_handleFocusOut(){this._isFocused=!1,this._showClearButton=!1,this.requestUpdate()}_handleKeyDown(O){(O==null?void 0:O.key)==="Enter"?(this._showDropdown=!0,!this._multiple&&this._input.value!==""&&(this._searchTerms=[],this._searchTerms.push(this._input.value),this._dispatchSearchChange(),this._showDropdown=!1),this._searchboxStyle=this._getSearchStyle()):(O==null?void 0:O.key)==="Escape"&&(this._showDropdown=!1),this.requestUpdate()}_focusInput(){var O;(O=this._input)===null||O===void 0||O.focus()}_clearSearch(){this._input&&(this._input.value="",this._input.focus()),this._searchTerms=[],this._dispatchSearchChange(),this._hideDropdown(),this.requestUpdate()}_hideDropdown(){this._showDropdown=!1,this._filteredCatalog=[]}_getFilterCatalog(O){return this._catalog.filter(U=>U.value.toLowerCase().includes(O.toLowerCase()))}_generateSearchChips(){let O=0;return this._searchTerms.map(G=>{var Y,K,J,X,se;const ee=te=>{const ie=te.target.getAttribute("term");this._searchTerms=this._searchTerms.filter(le=>le!==ie),this._dispatchSearchChange(),this.requestUpdate()};O+=1;const ne={disabled:((Y=this._input)===null||Y===void 0?void 0:Y.disabled)||((K=this._input)===null||K===void 0?void 0:K.readOnly),"dss-chip--selected":!(!((J=this._input)===null||J===void 0)&&J.disabled)&&!(!((X=this._input)===null||X===void 0)&&X.readOnly),"dss-chip--hide":O>5};return x`
5204
5217
  <span tabindex="0" class="dss-chip dss-chip--sm ${o(ne)}">
5205
5218
  ${G}
5206
5219
  <button
5207
5220
  class="dss-chip__icon-button dss-icon-button dss-icon-button--primary dss-icon-button--sm"
5208
- ?disabled=${(ie=this._input)===null||ie===void 0?void 0:ie.disabled}
5221
+ ?disabled=${(se=this._input)===null||se===void 0?void 0:se.disabled}
5209
5222
  @click="${ee}"
5210
5223
  >
5211
5224
  <span class="dss-icon" term="${G}">cancel</span>
5212
5225
  </button>
5213
5226
  </span>
5214
- `})}_generateFilterCatalog(){let O=!0;return this._filteredCatalog.map(G=>{const Y=Q=>{const te=Q.target.getAttribute("value");te&&(this._multiple?this._searchTerms.includes(te)?this._searchTerms=this._searchTerms.filter(le=>le!==te):this._searchTerms.push(te):(this._input.value=te,this._showDropdown=!1,this._searchTerms=[],this._searchTerms.push(te)),this.requestUpdate(),this._dispatchSearchChange())},K=Q=>{Q&&Q.focus()},J=Q=>{let te=0;const se=this.renderRoot.querySelectorAll(".dss-catalog-item"),le=se.length-1;Q===se[0]?K(se[le]):(se.forEach((oe,re)=>{oe===Q&&(te=re)}),K(se[te-1]))},X=Q=>{let te=0;const se=this.renderRoot.querySelectorAll(".dss-catalog-item"),le=se.length-1;Q===se[le]?K(se[0]):(se.forEach((oe,re)=>{oe===Q&&(te=re)}),K(se[te+1]))},ie=Q=>{const te=Q.currentTarget,se=Q;let le=!1;switch(se.key){case"ArrowUp":J(te),le=!0;break;case"ArrowDown":X(te),le=!0;break;case"Enter":const oe=Q.target,re=this.renderRoot.querySelector('.dss-catalog-item[tabindex="0"]');re==null||re.setAttribute("tabindex","-1"),Q.target.setAttribute("tabindex","0"),oe.click(),le=!0;break}le&&(Q.stopPropagation(),Q.preventDefault())},ee={"dss-catalog-item--selected":this._searchTerms.includes(G.value)},ne=x`
5227
+ `})}_generateFilterCatalog(){let O=!0;return this._filteredCatalog.map(G=>{const Y=Q=>{const te=Q.target.getAttribute("value");te&&(this._multiple?this._searchTerms.includes(te)?this._searchTerms=this._searchTerms.filter(le=>le!==te):this._searchTerms.push(te):(this._input.value=te,this._showDropdown=!1,this._searchTerms=[],this._searchTerms.push(te)),this.requestUpdate(),this._dispatchSearchChange())},K=Q=>{Q&&Q.focus()},J=Q=>{let te=0;const ie=this.renderRoot.querySelectorAll(".dss-catalog-item"),le=ie.length-1;Q===ie[0]?K(ie[le]):(ie.forEach((oe,re)=>{oe===Q&&(te=re)}),K(ie[te-1]))},X=Q=>{let te=0;const ie=this.renderRoot.querySelectorAll(".dss-catalog-item"),le=ie.length-1;Q===ie[le]?K(ie[0]):(ie.forEach((oe,re)=>{oe===Q&&(te=re)}),K(ie[te+1]))},se=Q=>{const te=Q.currentTarget,ie=Q;let le=!1;switch(ie.key){case"ArrowUp":J(te),le=!0;break;case"ArrowDown":X(te),le=!0;break;case"Enter":const oe=Q.target,re=this.renderRoot.querySelector('.dss-catalog-item[tabindex="0"]');re==null||re.setAttribute("tabindex","-1"),Q.target.setAttribute("tabindex","0"),oe.click(),le=!0;break}le&&(Q.stopPropagation(),Q.preventDefault())},ee={"dss-catalog-item--selected":this._searchTerms.includes(G.value)},ne=x`
5215
5228
  <div
5216
5229
  class="dss-catalog-item ${o(ee)}"
5217
5230
  value="${G.value}"
5218
5231
  tabindex="${O?0:-1}"
5219
5232
  @click="${Y}"
5220
- @keydown=${ie}
5233
+ @keydown=${se}
5221
5234
  >
5222
5235
  ${G.icon?x`
5223
5236
  <span
@@ -5257,8 +5270,8 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
5257
5270
  align="left"
5258
5271
  noHeightLimit
5259
5272
  >
5260
- ${this._searchTerms.slice(5,this._searchTerms.length).map(ie=>x`<span class="dss-chip__tooltip-item">
5261
- ${ie}
5273
+ ${this._searchTerms.slice(5,this._searchTerms.length).map(se=>x`<span class="dss-chip__tooltip-item">
5274
+ ${se}
5262
5275
  </span>`)}
5263
5276
  </dss-tooltip>
5264
5277
  </div>
@@ -6461,16 +6474,16 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
6461
6474
  >
6462
6475
  <div class="table-header-column table-header-column--actions"></div>
6463
6476
  </th>
6464
- `);let K=!0;const J=this._tableHeader.map((X,ie)=>{const ee=()=>{this._sortBy(X,this._tableHeaderSort[X]),this.requestUpdate()},ne=oe=>{const re=oe.currentTarget,ae=oe;let ce=!1;switch(ae.key){case"ArrowLeft":moveFocusToPreviousTarget(this.renderRoot,re,".table-header-column--clickable"),ce=!0;break;case"ArrowRight":moveFocusToNextTarget(this.renderRoot,re,".table-header-column--clickable"),ce=!0;break;case"Enter":const ue=oe.target;onKeyboardEnter(this.renderRoot,ue,".table-header-column--clickable"),ce=!0;break}ce&&(oe.stopPropagation(),oe.preventDefault())};let Q="";this._customData&&this._customData.length>0?Q=this._pipeData[0][X].type:this._data&&this._data.length>0&&(Q=typeof this._pipeData[0][X]);const te={"table-th--review":Q==="review","table-th--link":Q==="link"},se={"table-header-column--review":Q==="review","table-header-column--number":Q==="number","table-header-column--link":Q==="link"},le=x`
6477
+ `);let K=!0;const J=this._tableHeader.map((X,se)=>{const ee=()=>{this._sortBy(X,this._tableHeaderSort[X]),this.requestUpdate()},ne=oe=>{const re=oe.currentTarget,ae=oe;let ce=!1;switch(ae.key){case"ArrowLeft":moveFocusToPreviousTarget(this.renderRoot,re,".table-header-column--clickable"),ce=!0;break;case"ArrowRight":moveFocusToNextTarget(this.renderRoot,re,".table-header-column--clickable"),ce=!0;break;case"Enter":const ue=oe.target;onKeyboardEnter(this.renderRoot,ue,".table-header-column--clickable"),ce=!0;break}ce&&(oe.stopPropagation(),oe.preventDefault())};let Q="";this._customData&&this._customData.length>0?Q=this._pipeData[0][X].type:this._data&&this._data.length>0&&(Q=typeof this._pipeData[0][X]);const te={"table-th--review":Q==="review","table-th--link":Q==="link"},ie={"table-header-column--review":Q==="review","table-header-column--number":Q==="number","table-header-column--link":Q==="link"},le=x`
6465
6478
  <th class="table-th ${o(te)}">
6466
6479
  <div
6467
- class="table-header-column table-header-column--clickable ${o(se)}"
6480
+ class="table-header-column table-header-column--clickable ${o(ie)}"
6468
6481
  tabindex="${K?0:-1}"
6469
6482
  @keydown=${ne}
6470
6483
  @click=${ee}
6471
6484
  >
6472
6485
  <span class="table-header-column__title">
6473
- ${this._customTableHeader?x`${this._customTableHeader[ie]}`:x`${X}`}
6486
+ ${this._customTableHeader?x`${this._customTableHeader[se]}`:x`${X}`}
6474
6487
  </span>
6475
6488
  <span class="dss-icon dss-icon--sm table-header-column__icon">
6476
6489
  ${X===this._currentSortColumn?this._currentSortType==="ASC"?x`arrow_upward`:this._currentSortType==="DSC"?x`arrow_downward`:x`swap_vert`:x`swap_vert`}
@@ -6587,7 +6600,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
6587
6600
  `)}
6588
6601
  </div>
6589
6602
  </td>
6590
- `}_resetRowsTabIndex(){const O=this.renderRoot.querySelector('.table-body-row[tabindex="0"]');O==null||O.setAttribute("tabindex","-1"),this.renderRoot.querySelectorAll(".table-body-row")[0].setAttribute("tabindex","0")}_generateDefaultTableBody(){let O,U=!0;return this._data&&this._data.length>0&&(O=this._pipeData.map(G=>{const Y=G.checked?G.checked:!1,K=G.deleted?G.deleted:!1,J=G.disabled?G.disabled:!1,X=re=>{const ae=re.relatedTarget;ae&&!ae.className.includes("table-body-row")&&!ae.className.includes("table-body-row__action")&&this._resetRowsTabIndex()},ie=re=>{const ae=re.currentTarget,ce=re;let ue=!1;switch(ce.key){case"ArrowUp":moveFocusToPreviousTarget(this.renderRoot,ae,".table-body-row"),ue=!0;break;case"ArrowDown":moveFocusToNextTarget(this.renderRoot,ae,".table-body-row"),ue=!0;break;case"Enter":const de=re.target;onKeyboardEnter(this.renderRoot,de,".table-body-row"),(this._multiselect||this._radioselect)&&((!K&&!J||this._enableRowActionsOnDeleted&&K||this._enableRowActionsOnDisabled&&J)&&(G.checked?G.checked=!G.checked:G.checked=!0),this.requestUpdate()),ue=!0;break;case"Escape":const me=re.composedPath().find(ge=>ge instanceof HTMLElement&&ge.classList.contains("table-body-row"));me&&me.focus();break}ue&&(re.stopPropagation(),re.preventDefault())},ee=this._multiselect?this._generateTableTdCheckbox(G,Y,J,K):x``,ne=this._radioselect?this._generateTableTdRadio(Y,J,K):x``,Q=this._hasRowButton?this._generateTableTdButton(G,J,K):x``,te=this._hasRowActions?this._generateTableTdActions(G,J,K):x``,se=this._tableHeader.map(re=>{const ae={"table-body-column--number":typeof G[re]=="number"};return x`
6603
+ `}_resetRowsTabIndex(){const O=this.renderRoot.querySelector('.table-body-row[tabindex="0"]');O==null||O.setAttribute("tabindex","-1"),this.renderRoot.querySelectorAll(".table-body-row")[0].setAttribute("tabindex","0")}_generateDefaultTableBody(){let O,U=!0;return this._data&&this._data.length>0&&(O=this._pipeData.map(G=>{const Y=G.checked?G.checked:!1,K=G.deleted?G.deleted:!1,J=G.disabled?G.disabled:!1,X=re=>{const ae=re.relatedTarget;ae&&!ae.className.includes("table-body-row")&&!ae.className.includes("table-body-row__action")&&this._resetRowsTabIndex()},se=re=>{const ae=re.currentTarget,ce=re;let ue=!1;switch(ce.key){case"ArrowUp":moveFocusToPreviousTarget(this.renderRoot,ae,".table-body-row"),ue=!0;break;case"ArrowDown":moveFocusToNextTarget(this.renderRoot,ae,".table-body-row"),ue=!0;break;case"Enter":const de=re.target;onKeyboardEnter(this.renderRoot,de,".table-body-row"),(this._multiselect||this._radioselect)&&((!K&&!J||this._enableRowActionsOnDeleted&&K||this._enableRowActionsOnDisabled&&J)&&(G.checked?G.checked=!G.checked:G.checked=!0),this.requestUpdate()),ue=!0;break;case"Escape":const me=re.composedPath().find(ge=>ge instanceof HTMLElement&&ge.classList.contains("table-body-row"));me&&me.focus();break}ue&&(re.stopPropagation(),re.preventDefault())},ee=this._multiselect?this._generateTableTdCheckbox(G,Y,J,K):x``,ne=this._radioselect?this._generateTableTdRadio(Y,J,K):x``,Q=this._hasRowButton?this._generateTableTdButton(G,J,K):x``,te=this._hasRowActions?this._generateTableTdActions(G,J,K):x``,ie=this._tableHeader.map(re=>{const ae={"table-body-column--number":typeof G[re]=="number"};return x`
6591
6604
  <td class="table-td">
6592
6605
  <div
6593
6606
  class="table-body-column table-body-column--custom ${o(ae)}"
@@ -6600,12 +6613,12 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
6600
6613
  class="table-body-row ${o({"table-body-row--selected":Y,"table-body-row--deleted":K,"table-body-row--disabled":J})}"
6601
6614
  tabindex="${U?0:-1}"
6602
6615
  style=${l(this._tableGridStyle)}
6603
- @keydown=${ie}
6616
+ @keydown=${se}
6604
6617
  @focusout=${X}
6605
6618
  >
6606
- ${ee} ${ne} ${se}
6619
+ ${ee} ${ne} ${ie}
6607
6620
  ${Q} ${te}
6608
- </tr>`;return U=!1,oe})),O}_generateCustomTableBody(){let O,U=!0;return this._customData&&(O=this._pipeData.map(G=>{const Y=G.checked?G.checked:!1,K=G.deleted?G.deleted:!1,J=G.disabled?G.disabled:!1,X=re=>{const ae=re.relatedTarget;ae&&!ae.className.includes("table-body-row")&&!ae.className.includes("table-body-row__action")&&this._resetRowsTabIndex()},ie=re=>{const ae=re.currentTarget,ce=re;let ue=!1;switch(ce.key){case"ArrowUp":moveFocusToPreviousTarget(this.renderRoot,ae,".table-body-row"),ue=!0;break;case"ArrowDown":moveFocusToNextTarget(this.renderRoot,ae,".table-body-row"),ue=!0;break;case"Enter":const de=re.target;onKeyboardEnter(this.renderRoot,de,".table-body-row"),(this._multiselect||this._radioselect)&&((!K&&!J||this._enableRowActionsOnDeleted&&K||this._enableRowActionsOnDisabled&&J)&&(G.checked?G.checked=!G.checked:G.checked=!0),this.requestUpdate()),ue=!0;break;case"Escape":const me=re.composedPath().find(ge=>ge instanceof HTMLElement&&ge.classList.contains("table-body-row"));me&&me.focus();break}ue&&(re.stopPropagation(),re.preventDefault())},ee=this._multiselect?this._generateTableTdCheckbox(G,Y,J,K):x``,ne=this._radioselect?this._generateTableTdRadio(Y,J,K):x``,Q=this._hasRowButton?this._generateTableTdButton(G,J,K):x``,te=this._hasRowActions?this._generateTableTdActions(G,J,K):x``,se=this._tableHeader.map(re=>{const ae=ue=>{G[ue].value=!G[ue].value;const de={detail:{action:"review",row:G},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onRowAction",de)),this.requestUpdate()},ce={"table-body-column--text":G[re].type==="text","table-body-column--number":G[re].type==="number","table-body-column--link":G[re].type==="link","table-body-column--badge":G[re].type==="badge","table-body-column--result":G[re].type==="result","table-body-column--review":G[re].type==="review","table-body-column--progress":G[re].type==="progress","table-body-column--font-bold":G[re].fontType==="bold","table-body-column--font-black":G[re].fontType==="black","table-body-column--icon-right":G[re].iconRight};return x`
6621
+ </tr>`;return U=!1,oe})),O}_generateCustomTableBody(){let O,U=!0;return this._customData&&(O=this._pipeData.map(G=>{const Y=G.checked?G.checked:!1,K=G.deleted?G.deleted:!1,J=G.disabled?G.disabled:!1,X=re=>{const ae=re.relatedTarget;ae&&!ae.className.includes("table-body-row")&&!ae.className.includes("table-body-row__action")&&this._resetRowsTabIndex()},se=re=>{const ae=re.currentTarget,ce=re;let ue=!1;switch(ce.key){case"ArrowUp":moveFocusToPreviousTarget(this.renderRoot,ae,".table-body-row"),ue=!0;break;case"ArrowDown":moveFocusToNextTarget(this.renderRoot,ae,".table-body-row"),ue=!0;break;case"Enter":const de=re.target;onKeyboardEnter(this.renderRoot,de,".table-body-row"),(this._multiselect||this._radioselect)&&((!K&&!J||this._enableRowActionsOnDeleted&&K||this._enableRowActionsOnDisabled&&J)&&(G.checked?G.checked=!G.checked:G.checked=!0),this.requestUpdate()),ue=!0;break;case"Escape":const me=re.composedPath().find(ge=>ge instanceof HTMLElement&&ge.classList.contains("table-body-row"));me&&me.focus();break}ue&&(re.stopPropagation(),re.preventDefault())},ee=this._multiselect?this._generateTableTdCheckbox(G,Y,J,K):x``,ne=this._radioselect?this._generateTableTdRadio(Y,J,K):x``,Q=this._hasRowButton?this._generateTableTdButton(G,J,K):x``,te=this._hasRowActions?this._generateTableTdActions(G,J,K):x``,ie=this._tableHeader.map(re=>{const ae=ue=>{G[ue].value=!G[ue].value;const de={detail:{action:"review",row:G},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("onRowAction",de)),this.requestUpdate()},ce={"table-body-column--text":G[re].type==="text","table-body-column--number":G[re].type==="number","table-body-column--link":G[re].type==="link","table-body-column--badge":G[re].type==="badge","table-body-column--result":G[re].type==="result","table-body-column--review":G[re].type==="review","table-body-column--progress":G[re].type==="progress","table-body-column--font-bold":G[re].fontType==="bold","table-body-column--font-black":G[re].fontType==="black","table-body-column--icon-right":G[re].iconRight};return x`
6609
6622
  <td class="table-td" style="${l(G[re].style)}">
6610
6623
  <div
6611
6624
  class="table-body-column table-body-column--custom ${o(ce)}"
@@ -6712,12 +6725,12 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
6712
6725
  class="table-body-row ${o({"table-body-row--selected":Y,"table-body-row--deleted":K,"table-body-row--disabled":J})}"
6713
6726
  tabindex="${U?0:-1}"
6714
6727
  style=${l(this._tableGridStyle)}
6715
- @keydown=${ie}
6728
+ @keydown=${se}
6716
6729
  @focusout=${X}
6717
6730
  >
6718
- ${ee} ${ne} ${se}
6731
+ ${ee} ${ne} ${ie}
6719
6732
  ${Q} ${te}
6720
- </tr>`;return U=!1,oe})),O}_generateFilterChips(){let O;return this._filters&&(O=this._filters.map(U=>{const G=J=>{const X=J.target.getAttribute("term");typeof U=="string"?this._filters=this._filters.filter(ie=>ie!==X):this._filters=this._filters.filter(ie=>ie.value.trim()!==(X==null?void 0:X.trim())),this._emitChangeFilters(),this.requestUpdate()};return x`
6733
+ </tr>`;return U=!1,oe})),O}_generateFilterChips(){let O;return this._filters&&(O=this._filters.map(U=>{const G=J=>{const X=J.target.getAttribute("term");typeof U=="string"?this._filters=this._filters.filter(se=>se!==X):this._filters=this._filters.filter(se=>se.value.trim()!==(X==null?void 0:X.trim())),this._emitChangeFilters(),this.requestUpdate()};return x`
6721
6734
  <span tabindex="0" class="dss-chip dss-chip--sm dss-chip--selected">
6722
6735
  ${typeof U==="string"?x`
6723
6736
  ${U}
@@ -7005,7 +7018,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
7005
7018
  align-items: center;
7006
7019
  gap: var(--dss-spacing-xs);
7007
7020
  }
7008
- `,badgeStyles]}set filters(O){const U=this._filters;this._filters=O,this.requestUpdate("filters",U)}set headerTitle(O){const U=this._headerTitle;this._headerTitle=O,this.requestUpdate("headerTitle",U)}set innerFilters(O){const U=this._innerFilters;this._innerFilters=O,this.requestUpdate("innerFilters",U)}set expandTable(O){const U=this._expandTable;this._expandTable=O,this.requestUpdate("expandTable",U)}set expandLabel(O){const U=this._expandLabel;this._expandLabel=O,this.requestUpdate("expandLabel",U)}set collapseLabel(O){const U=this._collapseLabel;this._collapseLabel=O,this.requestUpdate("collapseLabel",U)}set rowsOnCollapsed(O){const U=this._rowsOnCollapsed;this._rowsOnCollapsed=O,this.requestUpdate("rowsOnCollapsed",U)}set filtersLabel(O){const U=this._filtersLabel;this._filtersLabel=O,this.requestUpdate("filtersLabel",U)}set cleanFiltersLabel(O){const U=this._cleanFiltersLabel;this._cleanFiltersLabel=O,this.requestUpdate("cleanFiltersLabel",U)}_generateFilterChips(){let O;return this._filters&&(O=this._filters.map(U=>{const G=J=>{const X=J.target.getAttribute("term");typeof U=="string"?this._filters=this._filters.filter(ie=>ie!==X):this._filters=this._filters.filter(ie=>ie.value.trim()!==(X==null?void 0:X.trim())),this._emitChangeFilters(),this.requestUpdate()};return x`
7021
+ `,badgeStyles]}set filters(O){const U=this._filters;this._filters=O,this.requestUpdate("filters",U)}set headerTitle(O){const U=this._headerTitle;this._headerTitle=O,this.requestUpdate("headerTitle",U)}set innerFilters(O){const U=this._innerFilters;this._innerFilters=O,this.requestUpdate("innerFilters",U)}set expandTable(O){const U=this._expandTable;this._expandTable=O,this.requestUpdate("expandTable",U)}set expandLabel(O){const U=this._expandLabel;this._expandLabel=O,this.requestUpdate("expandLabel",U)}set collapseLabel(O){const U=this._collapseLabel;this._collapseLabel=O,this.requestUpdate("collapseLabel",U)}set rowsOnCollapsed(O){const U=this._rowsOnCollapsed;this._rowsOnCollapsed=O,this.requestUpdate("rowsOnCollapsed",U)}set filtersLabel(O){const U=this._filtersLabel;this._filtersLabel=O,this.requestUpdate("filtersLabel",U)}set cleanFiltersLabel(O){const U=this._cleanFiltersLabel;this._cleanFiltersLabel=O,this.requestUpdate("cleanFiltersLabel",U)}_generateFilterChips(){let O;return this._filters&&(O=this._filters.map(U=>{const G=J=>{const X=J.target.getAttribute("term");typeof U=="string"?this._filters=this._filters.filter(se=>se!==X):this._filters=this._filters.filter(se=>se.value.trim()!==(X==null?void 0:X.trim())),this._emitChangeFilters(),this.requestUpdate()};return x`
7009
7022
  <span tabindex="0" class="dss-chip dss-chip--sm dss-chip--selected">
7010
7023
  ${typeof U==="string"?x`
7011
7024
  ${U}
@@ -8012,14 +8025,14 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
8012
8025
  }
8013
8026
  </style>
8014
8027
  <ol class="dss-stepper ${o(Y)}">
8015
- ${(O=this._steps)===null||O===void 0?void 0:O.map((K,J)=>{const X=J+1,ie=te=>{te.key==="Enter"&&this._onStepClick(K,X)},ee=K.state==="disabled",ne={"dss-bubble--active":X===this._currentStep,"dss-bubble--completed":X<this._currentStep,"dss-bubble--checked":K.state==="checked"&&X!==this._currentStep,"dss-bubble--error":K.state==="error"&&X!==this._currentStep,"dss-bubble--info":K.state==="info"&&X!==this._currentStep,"dss-bubble--alert":K.state==="alert"&&X!==this._currentStep,"dss-bubble--disabled":K.state==="disabled","dss-bubble--icon":!!(K!=null&&K.icon)&&this._size!=="sm"},Q={"dss-bubble-label--disabled":K.state==="disabled","hide-label":this._hideLabel};return x`
8028
+ ${(O=this._steps)===null||O===void 0?void 0:O.map((K,J)=>{const X=J+1,se=te=>{te.key==="Enter"&&this._onStepClick(K,X)},ee=K.state==="disabled",ne={"dss-bubble--active":X===this._currentStep,"dss-bubble--completed":X<this._currentStep,"dss-bubble--checked":K.state==="checked"&&X!==this._currentStep,"dss-bubble--error":K.state==="error"&&X!==this._currentStep,"dss-bubble--info":K.state==="info"&&X!==this._currentStep,"dss-bubble--alert":K.state==="alert"&&X!==this._currentStep,"dss-bubble--disabled":K.state==="disabled","dss-bubble--icon":!!(K!=null&&K.icon)&&this._size!=="sm"},Q={"dss-bubble-label--disabled":K.state==="disabled","hide-label":this._hideLabel};return x`
8016
8029
  <li
8017
8030
  class="dss-bubble ${o(ne)}"
8018
8031
  icon="${(K==null?void 0:K.icon)||""}"
8019
8032
  tabindex="${ee?-1:0}"
8020
8033
  aria-label="Step ${K==null?void 0:K.state}"
8021
8034
  @click=${()=>this._onStepClick(K,X)}
8022
- @keydown=${ie}
8035
+ @keydown=${se}
8023
8036
  >
8024
8037
  <span class="dss-bubble-label ${o(Q)}"
8025
8038
  >${K.label}</span
@@ -8587,7 +8600,7 @@ Registered bindings:`,Y.forEach(function(K){var J="Object";K.implementationType!
8587
8600
  `+J,K.constraint.metaData&&(G=G+" - "+K.constraint.metaData)})),G}function alreadyDependencyChain(W,O){return W.parentRequest===null?!1:W.parentRequest.serviceIdentifier===O?!0:alreadyDependencyChain(W.parentRequest,O)}function dependencyChainToString(W){function O(G,Y){Y===void 0&&(Y=[]);var K=getServiceIdentifierAsString(G.serviceIdentifier);return Y.push(K),G.parentRequest!==null?O(G.parentRequest,Y):Y}var U=O(W);return U.reverse().join(" --> ")}function circularDependencyToException(W){W.childRequests.forEach(function(O){if(alreadyDependencyChain(O,O.serviceIdentifier)){var U=dependencyChainToString(O);throw new Error(CIRCULAR_DEPENDENCY+" "+U)}else circularDependencyToException(O)})}function listMetadataForTarget(W,O){if(O.isTagged()||O.isNamed()){var U="",G=O.getNamedTag(),Y=O.getCustomTags();return G!==null&&(U+=G.toString()+`
8588
8601
  `),Y!==null&&Y.forEach(function(K){U+=K.toString()+`
8589
8602
  `})," "+W+`
8590
- `+W+" - "+U}else return" "+W}function getFunctionName(W){if(W.name)return W.name;var O=W.toString(),U=O.match(/^function\s*([^\s(]+)/);return U?U[1]:"Anonymous function: "+O}function getSymbolDescription(W){return W.toString().slice(7,-1)}var Context=function(){function W(O){this.id=id(),this.container=O}return W.prototype.addPlan=function(O){this.plan=O},W.prototype.setCurrentRequest=function(O){this.currentRequest=O},W}(),Metadata=function(){function W(O,U){this.key=O,this.value=U}return W.prototype.toString=function(){return this.key===NAMED_TAG?"named: "+String(this.value).toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+String(this.value)+" }"},W}(),Plan=function(){function W(O,U){this.parentContext=O,this.rootRequest=U}return W}(),LazyServiceIdentifier=function(){function W(O){this._cb=O}return W.prototype.unwrap=function(){return this._cb()},W}(),QueryableString=function(){function W(O){this.str=O}return W.prototype.startsWith=function(O){return this.str.indexOf(O)===0},W.prototype.endsWith=function(O){var U="",G=O.split("").reverse().join("");return U=this.str.split("").reverse().join(""),this.startsWith.call({str:U},G)},W.prototype.contains=function(O){return this.str.indexOf(O)!==-1},W.prototype.equals=function(O){return this.str===O},W.prototype.value=function(){return this.str},W}(),Target=function(){function W(O,U,G,Y){this.id=id(),this.type=O,this.serviceIdentifier=G;var K=typeof U=="symbol"?getSymbolDescription(U):U;this.name=new QueryableString(K||""),this.identifier=U,this.metadata=new Array;var J=null;typeof Y=="string"?J=new Metadata(NAMED_TAG,Y):Y instanceof Metadata&&(J=Y),J!==null&&this.metadata.push(J)}return W.prototype.hasTag=function(O){for(var U=0,G=this.metadata;U<G.length;U++){var Y=G[U];if(Y.key===O)return!0}return!1},W.prototype.isArray=function(){return this.hasTag(MULTI_INJECT_TAG)},W.prototype.matchesArray=function(O){return this.matchesTag(MULTI_INJECT_TAG)(O)},W.prototype.isNamed=function(){return this.hasTag(NAMED_TAG)},W.prototype.isTagged=function(){return this.metadata.some(function(O){return NON_CUSTOM_TAG_KEYS.every(function(U){return O.key!==U})})},W.prototype.isOptional=function(){return this.matchesTag(OPTIONAL_TAG)(!0)},W.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(O){return O.key===NAMED_TAG})[0]:null},W.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(O){return NON_CUSTOM_TAG_KEYS.every(function(U){return O.key!==U})}):null},W.prototype.matchesNamedTag=function(O){return this.matchesTag(NAMED_TAG)(O)},W.prototype.matchesTag=function(O){var U=this;return function(G){for(var Y=0,K=U.metadata;Y<K.length;Y++){var J=K[Y];if(J.key===O&&J.value===G)return!0}return!1}},W}(),__spreadArray$2=function(W,O,U){if(U||arguments.length===2)for(var G=0,Y=O.length,K;G<Y;G++)(K||!(G in O))&&(K||(K=Array.prototype.slice.call(O,0,G)),K[G]=O[G]);return W.concat(K||Array.prototype.slice.call(O))};function getDependencies(W,O){var U=getFunctionName(O);return getTargets(W,U,O,!1)}function getTargets(W,O,U,G){var Y=W.getConstructorMetadata(U),K=Y.compilerGeneratedMetadata;if(K===void 0){var J=MISSING_INJECTABLE_ANNOTATION+" "+O+".";throw new Error(J)}var X=Y.userGeneratedMetadata,ie=Object.keys(X),ee=U.length===0&&ie.length>0,ne=ie.length>U.length,Q=ee||ne?ie.length:U.length,te=getConstructorArgsAsTargets(G,O,K,X,Q),se=getClassPropsAsTargets(W,U,O),le=__spreadArray$2(__spreadArray$2([],te,!0),se,!0);return le}function getConstructorArgsAsTarget(W,O,U,G,Y){var K=Y[W.toString()]||[],J=formatTargetMetadata(K),X=J.unmanaged!==!0,ie=G[W],ee=J.inject||J.multiInject;if(ie=ee||ie,ie instanceof LazyServiceIdentifier&&(ie=ie.unwrap()),X){var ne=ie===Object,Q=ie===Function,te=ie===void 0,se=ne||Q||te;if(!O&&se){var le=MISSING_INJECT_ANNOTATION+" argument "+W+" in class "+U+".";throw new Error(le)}var oe=new Target(TargetTypeEnum.ConstructorArgument,J.targetName,ie);return oe.metadata=K,oe}return null}function getConstructorArgsAsTargets(W,O,U,G,Y){for(var K=[],J=0;J<Y;J++){var X=J,ie=getConstructorArgsAsTarget(X,W,O,U,G);ie!==null&&K.push(ie)}return K}function _getServiceIdentifierForProperty(W,O,U,G){var Y=W||O;if(Y===void 0){var K=MISSING_INJECTABLE_ANNOTATION+" for property "+String(U)+" in class "+G+".";throw new Error(K)}return Y}function getClassPropsAsTargets(W,O,U){for(var G=W.getPropertiesMetadata(O),Y=[],K=Object.getOwnPropertySymbols(G),J=Object.keys(G),X=J.concat(K),ie=0,ee=X;ie<ee.length;ie++){var ne=ee[ie],Q=G[ne],te=formatTargetMetadata(Q),se=te.targetName||ne,le=_getServiceIdentifierForProperty(te.inject,te.multiInject,ne,U),oe=new Target(TargetTypeEnum.ClassProperty,se,le);oe.metadata=Q,Y.push(oe)}var re=Object.getPrototypeOf(O.prototype).constructor;if(re!==Object){var ae=getClassPropsAsTargets(W,re,U);Y=__spreadArray$2(__spreadArray$2([],Y,!0),ae,!0)}return Y}function getBaseClassDependencyCount(W,O){var U=Object.getPrototypeOf(O.prototype).constructor;if(U!==Object){var G=getFunctionName(U),Y=getTargets(W,G,U,!0),K=Y.map(function(ie){return ie.metadata.filter(function(ee){return ee.key===UNMANAGED_TAG})}),J=[].concat.apply([],K).length,X=Y.length-J;return X>0?X:getBaseClassDependencyCount(W,U)}else return 0}function formatTargetMetadata(W){var O={};return W.forEach(function(U){O[U.key.toString()]=U.value}),{inject:O[INJECT_TAG],multiInject:O[MULTI_INJECT_TAG],targetName:O[NAME_TAG],unmanaged:O[UNMANAGED_TAG]}}var Request$1=function(){function W(O,U,G,Y,K){this.id=id(),this.serviceIdentifier=O,this.parentContext=U,this.parentRequest=G,this.target=K,this.childRequests=[],this.bindings=Array.isArray(Y)?Y:[Y],this.requestScope=G===null?new Map:null}return W.prototype.addChildRequest=function(O,U,G){var Y=new W(O,this.parentContext,this,U,G);return this.childRequests.push(Y),Y},W}();function getBindingDictionary(W){return W._bindingDictionary}function _createTarget(W,O,U,G,Y,K){var J=W?MULTI_INJECT_TAG:INJECT_TAG,X=new Metadata(J,U),ie=new Target(O,G,U,X);if(Y!==void 0){var ee=new Metadata(Y,K);ie.metadata.push(ee)}return ie}function _getActiveBindings(W,O,U,G,Y){var K=getBindings(U.container,Y.serviceIdentifier),J=[];return K.length===BindingCount.NoBindingsAvailable&&U.container.options.autoBindInjectable&&typeof Y.serviceIdentifier=="function"&&W.getConstructorMetadata(Y.serviceIdentifier).compilerGeneratedMetadata&&(U.container.bind(Y.serviceIdentifier).toSelf(),K=getBindings(U.container,Y.serviceIdentifier)),O?J=K:J=K.filter(function(X){var ie=new Request$1(X.serviceIdentifier,U,G,X,Y);return X.constraint(ie)}),_validateActiveBindingCount(Y.serviceIdentifier,J,Y,U.container),J}function _validateActiveBindingCount(W,O,U,G){switch(O.length){case BindingCount.NoBindingsAvailable:if(U.isOptional())return O;var Y=getServiceIdentifierAsString(W),K=NOT_REGISTERED;throw K+=listMetadataForTarget(Y,U),K+=listRegisteredBindingsForServiceIdentifier(G,Y,getBindings),new Error(K);case BindingCount.OnlyOneBindingAvailable:return O;case BindingCount.MultipleBindingsAvailable:default:if(U.isArray())return O;var Y=getServiceIdentifierAsString(W),K=AMBIGUOUS_MATCH+" "+Y;throw K+=listRegisteredBindingsForServiceIdentifier(G,Y,getBindings),new Error(K)}}function _createSubRequests(W,O,U,G,Y,K){var J,X;if(Y===null){J=_getActiveBindings(W,O,G,null,K),X=new Request$1(U,G,null,J,K);var ie=new Plan(G,X);G.addPlan(ie)}else J=_getActiveBindings(W,O,G,Y,K),X=Y.addChildRequest(K.serviceIdentifier,J,K);J.forEach(function(ee){var ne=null;if(K.isArray())ne=X.addChildRequest(ee.serviceIdentifier,ee,K);else{if(ee.cache)return;ne=X}if(ee.type===BindingTypeEnum.Instance&&ee.implementationType!==null){var Q=getDependencies(W,ee.implementationType);if(!G.container.options.skipBaseClassChecks){var te=getBaseClassDependencyCount(W,ee.implementationType);if(Q.length<te){var se=ARGUMENTS_LENGTH_MISMATCH(getFunctionName(ee.implementationType));throw new Error(se)}}Q.forEach(function(le){_createSubRequests(W,!1,le.serviceIdentifier,G,ne,le)})}})}function getBindings(W,O){var U=[],G=getBindingDictionary(W);return G.hasKey(O)?U=G.get(O):W.parent!==null&&(U=getBindings(W.parent,O)),U}function plan(W,O,U,G,Y,K,J,X){X===void 0&&(X=!1);var ie=new Context(O),ee=_createTarget(U,G,Y,"",K,J);try{return _createSubRequests(W,X,Y,ie,null,ee),ie}catch(ne){throw isStackOverflowExeption(ne)&&circularDependencyToException(ie.plan.rootRequest),ne}}function createMockRequest(W,O,U,G){var Y=new Target(TargetTypeEnum.Variable,"",O,new Metadata(U,G)),K=new Context(W),J=new Request$1(O,K,null,[],Y);return J}function isPromise(W){var O=typeof W=="object"&&W!==null||typeof W=="function";return O&&typeof W.then=="function"}function isPromiseOrContainsPromise(W){return isPromise(W)?!0:Array.isArray(W)&&W.some(isPromise)}var __awaiter$3=function(W,O,U,G){function Y(K){return K instanceof U?K:new U(function(J){J(K)})}return new(U||(U=Promise))(function(K,J){function X(ne){try{ee(G.next(ne))}catch(Q){J(Q)}}function ie(ne){try{ee(G.throw(ne))}catch(Q){J(Q)}}function ee(ne){ne.done?K(ne.value):Y(ne.value).then(X,ie)}ee((G=G.apply(W,O||[])).next())})},__generator$3=function(W,O){var U={label:0,sent:function(){if(K[0]&1)throw K[1];return K[1]},trys:[],ops:[]},G,Y,K,J;return J={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function X(ee){return function(ne){return ie([ee,ne])}}function ie(ee){if(G)throw new TypeError("Generator is already executing.");for(;U;)try{if(G=1,Y&&(K=ee[0]&2?Y.return:ee[0]?Y.throw||((K=Y.return)&&K.call(Y),0):Y.next)&&!(K=K.call(Y,ee[1])).done)return K;switch(Y=0,K&&(ee=[ee[0]&2,K.value]),ee[0]){case 0:case 1:K=ee;break;case 4:return U.label++,{value:ee[1],done:!1};case 5:U.label++,Y=ee[1],ee=[0];continue;case 7:ee=U.ops.pop(),U.trys.pop();continue;default:if(K=U.trys,!(K=K.length>0&&K[K.length-1])&&(ee[0]===6||ee[0]===2)){U=0;continue}if(ee[0]===3&&(!K||ee[1]>K[0]&&ee[1]<K[3])){U.label=ee[1];break}if(ee[0]===6&&U.label<K[1]){U.label=K[1],K=ee;break}if(K&&U.label<K[2]){U.label=K[2],U.ops.push(ee);break}K[2]&&U.ops.pop(),U.trys.pop();continue}ee=O.call(W,U)}catch(ne){ee=[6,ne],Y=0}finally{G=K=0}if(ee[0]&5)throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}},tryGetFromScope=function(W,O){return O.scope===BindingScopeEnum.Singleton&&O.activated?O.cache:O.scope===BindingScopeEnum.Request&&W.has(O.id)?W.get(O.id):null},saveToScope=function(W,O,U){O.scope===BindingScopeEnum.Singleton&&_saveToSingletonScope(O,U),O.scope===BindingScopeEnum.Request&&_saveToRequestScope(W,O,U)},_saveToRequestScope=function(W,O,U){W.has(O.id)||W.set(O.id,U)},_saveToSingletonScope=function(W,O){W.cache=O,W.activated=!0,isPromise(O)&&_saveAsyncResultToSingletonScope(W,O)},_saveAsyncResultToSingletonScope=function(W,O){return __awaiter$3(void 0,void 0,void 0,function(){var U,G;return __generator$3(this,function(Y){switch(Y.label){case 0:return Y.trys.push([0,2,,3]),[4,O];case 1:return U=Y.sent(),W.cache=U,[3,3];case 2:throw G=Y.sent(),W.cache=null,W.activated=!1,G;case 3:return[2]}})})},FactoryType;(function(W){W.DynamicValue="toDynamicValue",W.Factory="toFactory",W.Provider="toProvider"})(FactoryType||(FactoryType={}));var ensureFullyBound=function(W){var O=null;switch(W.type){case BindingTypeEnum.ConstantValue:case BindingTypeEnum.Function:O=W.cache;break;case BindingTypeEnum.Constructor:case BindingTypeEnum.Instance:O=W.implementationType;break;case BindingTypeEnum.DynamicValue:O=W.dynamicValue;break;case BindingTypeEnum.Provider:O=W.provider;break;case BindingTypeEnum.Factory:O=W.factory;break}if(O===null){var U=getServiceIdentifierAsString(W.serviceIdentifier);throw new Error(INVALID_BINDING_TYPE+" "+U)}},getFactoryDetails=function(W){switch(W.type){case BindingTypeEnum.Factory:return{factory:W.factory,factoryType:FactoryType.Factory};case BindingTypeEnum.Provider:return{factory:W.provider,factoryType:FactoryType.Provider};case BindingTypeEnum.DynamicValue:return{factory:W.dynamicValue,factoryType:FactoryType.DynamicValue};default:throw new Error("Unexpected factory type "+W.type)}},__assign$1=function(){return __assign$1=Object.assign||function(W){for(var O,U=1,G=arguments.length;U<G;U++){O=arguments[U];for(var Y in O)Object.prototype.hasOwnProperty.call(O,Y)&&(W[Y]=O[Y])}return W},__assign$1.apply(this,arguments)},__awaiter$2=function(W,O,U,G){function Y(K){return K instanceof U?K:new U(function(J){J(K)})}return new(U||(U=Promise))(function(K,J){function X(ne){try{ee(G.next(ne))}catch(Q){J(Q)}}function ie(ne){try{ee(G.throw(ne))}catch(Q){J(Q)}}function ee(ne){ne.done?K(ne.value):Y(ne.value).then(X,ie)}ee((G=G.apply(W,O||[])).next())})},__generator$2=function(W,O){var U={label:0,sent:function(){if(K[0]&1)throw K[1];return K[1]},trys:[],ops:[]},G,Y,K,J;return J={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function X(ee){return function(ne){return ie([ee,ne])}}function ie(ee){if(G)throw new TypeError("Generator is already executing.");for(;U;)try{if(G=1,Y&&(K=ee[0]&2?Y.return:ee[0]?Y.throw||((K=Y.return)&&K.call(Y),0):Y.next)&&!(K=K.call(Y,ee[1])).done)return K;switch(Y=0,K&&(ee=[ee[0]&2,K.value]),ee[0]){case 0:case 1:K=ee;break;case 4:return U.label++,{value:ee[1],done:!1};case 5:U.label++,Y=ee[1],ee=[0];continue;case 7:ee=U.ops.pop(),U.trys.pop();continue;default:if(K=U.trys,!(K=K.length>0&&K[K.length-1])&&(ee[0]===6||ee[0]===2)){U=0;continue}if(ee[0]===3&&(!K||ee[1]>K[0]&&ee[1]<K[3])){U.label=ee[1];break}if(ee[0]===6&&U.label<K[1]){U.label=K[1],K=ee;break}if(K&&U.label<K[2]){U.label=K[2],U.ops.push(ee);break}K[2]&&U.ops.pop(),U.trys.pop();continue}ee=O.call(W,U)}catch(ne){ee=[6,ne],Y=0}finally{G=K=0}if(ee[0]&5)throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}},__spreadArray$1=function(W,O,U){if(U||arguments.length===2)for(var G=0,Y=O.length,K;G<Y;G++)(K||!(G in O))&&(K||(K=Array.prototype.slice.call(O,0,G)),K[G]=O[G]);return W.concat(K||Array.prototype.slice.call(O))};function _resolveRequests(W,O){return W.reduce(function(U,G){var Y=O(G),K=G.target.type;return K===TargetTypeEnum.ConstructorArgument?U.constructorInjections.push(Y):(U.propertyRequests.push(G),U.propertyInjections.push(Y)),U.isAsync||(U.isAsync=isPromiseOrContainsPromise(Y)),U},{constructorInjections:[],propertyInjections:[],propertyRequests:[],isAsync:!1})}function _createInstance(W,O,U){var G;if(O.length>0){var Y=_resolveRequests(O,U),K=__assign$1(__assign$1({},Y),{constr:W});Y.isAsync?G=createInstanceWithInjectionsAsync(K):G=createInstanceWithInjections(K)}else G=new W;return G}function createInstanceWithInjections(W){var O,U=new((O=W.constr).bind.apply(O,__spreadArray$1([void 0],W.constructorInjections,!1)));return W.propertyRequests.forEach(function(G,Y){var K=G.target.identifier,J=W.propertyInjections[Y];(!G.target.isOptional()||J!==void 0)&&(U[K]=J)}),U}function createInstanceWithInjectionsAsync(W){return __awaiter$2(this,void 0,void 0,function(){var O,U;return __generator$2(this,function(G){switch(G.label){case 0:return[4,possiblyWaitInjections(W.constructorInjections)];case 1:return O=G.sent(),[4,possiblyWaitInjections(W.propertyInjections)];case 2:return U=G.sent(),[2,createInstanceWithInjections(__assign$1(__assign$1({},W),{constructorInjections:O,propertyInjections:U}))]}})})}function possiblyWaitInjections(W){return __awaiter$2(this,void 0,void 0,function(){var O,U,G,Y;return __generator$2(this,function(K){for(O=[],U=0,G=W;U<G.length;U++)Y=G[U],Array.isArray(Y)?O.push(Promise.all(Y)):O.push(Y);return[2,Promise.all(O)]})})}function _getInstanceAfterPostConstruct(W,O){var U=_postConstruct(W,O);return isPromise(U)?U.then(function(){return O}):O}function _postConstruct(W,O){var U,G;if(Reflect.hasMetadata(POST_CONSTRUCT,W)){var Y=Reflect.getMetadata(POST_CONSTRUCT,W);try{return(G=(U=O)[Y.value])===null||G===void 0?void 0:G.call(U)}catch(K){if(K instanceof Error)throw new Error(POST_CONSTRUCT_ERROR(W.name,K.message))}}}function _validateInstanceResolution(W,O){W.scope!==BindingScopeEnum.Singleton&&_throwIfHandlingDeactivation(W,O)}function _throwIfHandlingDeactivation(W,O){var U="Class cannot be instantiated in "+(W.scope===BindingScopeEnum.Request?"request":"transient")+" scope.";if(typeof W.onDeactivation=="function")throw new Error(ON_DEACTIVATION_ERROR(O.name,U));if(Reflect.hasMetadata(PRE_DESTROY,O))throw new Error(PRE_DESTROY_ERROR(O.name,U))}function resolveInstance(W,O,U,G){_validateInstanceResolution(W,O);var Y=_createInstance(O,U,G);return isPromise(Y)?Y.then(function(K){return _getInstanceAfterPostConstruct(O,K)}):_getInstanceAfterPostConstruct(O,Y)}var __awaiter$1=function(W,O,U,G){function Y(K){return K instanceof U?K:new U(function(J){J(K)})}return new(U||(U=Promise))(function(K,J){function X(ne){try{ee(G.next(ne))}catch(Q){J(Q)}}function ie(ne){try{ee(G.throw(ne))}catch(Q){J(Q)}}function ee(ne){ne.done?K(ne.value):Y(ne.value).then(X,ie)}ee((G=G.apply(W,O||[])).next())})},__generator$1=function(W,O){var U={label:0,sent:function(){if(K[0]&1)throw K[1];return K[1]},trys:[],ops:[]},G,Y,K,J;return J={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function X(ee){return function(ne){return ie([ee,ne])}}function ie(ee){if(G)throw new TypeError("Generator is already executing.");for(;U;)try{if(G=1,Y&&(K=ee[0]&2?Y.return:ee[0]?Y.throw||((K=Y.return)&&K.call(Y),0):Y.next)&&!(K=K.call(Y,ee[1])).done)return K;switch(Y=0,K&&(ee=[ee[0]&2,K.value]),ee[0]){case 0:case 1:K=ee;break;case 4:return U.label++,{value:ee[1],done:!1};case 5:U.label++,Y=ee[1],ee=[0];continue;case 7:ee=U.ops.pop(),U.trys.pop();continue;default:if(K=U.trys,!(K=K.length>0&&K[K.length-1])&&(ee[0]===6||ee[0]===2)){U=0;continue}if(ee[0]===3&&(!K||ee[1]>K[0]&&ee[1]<K[3])){U.label=ee[1];break}if(ee[0]===6&&U.label<K[1]){U.label=K[1],K=ee;break}if(K&&U.label<K[2]){U.label=K[2],U.ops.push(ee);break}K[2]&&U.ops.pop(),U.trys.pop();continue}ee=O.call(W,U)}catch(ne){ee=[6,ne],Y=0}finally{G=K=0}if(ee[0]&5)throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}},_resolveRequest=function(W){return function(O){O.parentContext.setCurrentRequest(O);var U=O.bindings,G=O.childRequests,Y=O.target&&O.target.isArray(),K=!O.parentRequest||!O.parentRequest.target||!O.target||!O.parentRequest.target.matchesArray(O.target.serviceIdentifier);if(Y&&K)return G.map(function(X){var ie=_resolveRequest(W);return ie(X)});if(O.target.isOptional()&&U.length===0)return;var J=U[0];return _resolveBinding(W,O,J)}},_resolveFactoryFromBinding=function(W,O){var U=getFactoryDetails(W);return tryAndThrowErrorIfStackOverflow(function(){return U.factory.bind(W)(O)},function(){return new Error(CIRCULAR_DEPENDENCY_IN_FACTORY(U.factoryType,O.currentRequest.serviceIdentifier.toString()))})},_getResolvedFromBinding=function(W,O,U){var G,Y=O.childRequests;switch(ensureFullyBound(U),U.type){case BindingTypeEnum.ConstantValue:case BindingTypeEnum.Function:G=U.cache;break;case BindingTypeEnum.Constructor:G=U.implementationType;break;case BindingTypeEnum.Instance:G=resolveInstance(U,U.implementationType,Y,_resolveRequest(W));break;default:G=_resolveFactoryFromBinding(U,O.parentContext)}return G},_resolveInScope=function(W,O,U){var G=tryGetFromScope(W,O);return G!==null||(G=U(),saveToScope(W,O,G)),G},_resolveBinding=function(W,O,U){return _resolveInScope(W,U,function(){var G=_getResolvedFromBinding(W,O,U);return isPromise(G)?G=G.then(function(Y){return _onActivation(O,U,Y)}):G=_onActivation(O,U,G),G})};function _onActivation(W,O,U){var G=_bindingActivation(W.parentContext,O,U),Y=_getContainersIterator(W.parentContext.container),K,J=Y.next();do{K=J.value;var X=W.parentContext,ie=W.serviceIdentifier,ee=_getContainerActivationsForService(K,ie);isPromise(G)?G=_activateContainerAsync(ee,X,G):G=_activateContainer(ee,X,G),J=Y.next()}while(J.done!==!0&&!getBindingDictionary(K).hasKey(W.serviceIdentifier));return G}var _bindingActivation=function(W,O,U){var G;return typeof O.onActivation=="function"?G=O.onActivation(W,U):G=U,G},_activateContainer=function(W,O,U){for(var G=W.next();!G.done;){if(U=G.value(O,U),isPromise(U))return _activateContainerAsync(W,O,U);G=W.next()}return U},_activateContainerAsync=function(W,O,U){return __awaiter$1(void 0,void 0,void 0,function(){var G,Y;return __generator$1(this,function(K){switch(K.label){case 0:return[4,U];case 1:G=K.sent(),Y=W.next(),K.label=2;case 2:return Y.done?[3,4]:[4,Y.value(O,G)];case 3:return G=K.sent(),Y=W.next(),[3,2];case 4:return[2,G]}})})},_getContainerActivationsForService=function(W,O){var U=W._activations;return U.hasKey(O)?U.get(O).values():[].values()},_getContainersIterator=function(W){for(var O=[W],U=W.parent;U!==null;)O.push(U),U=U.parent;var G=function(){var K=O.pop();return K!==void 0?{done:!1,value:K}:{done:!0,value:void 0}},Y={next:G};return Y};function resolve(W){var O=_resolveRequest(W.plan.rootRequest.requestScope);return O(W.plan.rootRequest)}var traverseAncerstors=function(W,O){var U=W.parentRequest;return U!==null?O(U)?!0:traverseAncerstors(U,O):!1},taggedConstraint=function(W){return function(O){var U=function(G){return G!==null&&G.target!==null&&G.target.matchesTag(W)(O)};return U.metaData=new Metadata(W,O),U}},namedConstraint=taggedConstraint(NAMED_TAG),typeConstraint=function(W){return function(O){var U=null;if(O!==null)if(U=O.bindings[0],typeof W=="string"){var G=U.serviceIdentifier;return G===W}else{var Y=O.bindings[0].implementationType;return W===Y}return!1}},BindingWhenSyntax=function(){function W(O){this._binding=O}return W.prototype.when=function(O){return this._binding.constraint=O,new BindingOnSyntax(this._binding)},W.prototype.whenTargetNamed=function(O){return this._binding.constraint=namedConstraint(O),new BindingOnSyntax(this._binding)},W.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(O){if(O===null)return!1;var U=O.target!==null&&!O.target.isNamed()&&!O.target.isTagged();return U},new BindingOnSyntax(this._binding)},W.prototype.whenTargetTagged=function(O,U){return this._binding.constraint=taggedConstraint(O)(U),new BindingOnSyntax(this._binding)},W.prototype.whenInjectedInto=function(O){return this._binding.constraint=function(U){return U!==null&&typeConstraint(O)(U.parentRequest)},new BindingOnSyntax(this._binding)},W.prototype.whenParentNamed=function(O){return this._binding.constraint=function(U){return U!==null&&namedConstraint(O)(U.parentRequest)},new BindingOnSyntax(this._binding)},W.prototype.whenParentTagged=function(O,U){return this._binding.constraint=function(G){return G!==null&&taggedConstraint(O)(U)(G.parentRequest)},new BindingOnSyntax(this._binding)},W.prototype.whenAnyAncestorIs=function(O){return this._binding.constraint=function(U){return U!==null&&traverseAncerstors(U,typeConstraint(O))},new BindingOnSyntax(this._binding)},W.prototype.whenNoAncestorIs=function(O){return this._binding.constraint=function(U){return U!==null&&!traverseAncerstors(U,typeConstraint(O))},new BindingOnSyntax(this._binding)},W.prototype.whenAnyAncestorNamed=function(O){return this._binding.constraint=function(U){return U!==null&&traverseAncerstors(U,namedConstraint(O))},new BindingOnSyntax(this._binding)},W.prototype.whenNoAncestorNamed=function(O){return this._binding.constraint=function(U){return U!==null&&!traverseAncerstors(U,namedConstraint(O))},new BindingOnSyntax(this._binding)},W.prototype.whenAnyAncestorTagged=function(O,U){return this._binding.constraint=function(G){return G!==null&&traverseAncerstors(G,taggedConstraint(O)(U))},new BindingOnSyntax(this._binding)},W.prototype.whenNoAncestorTagged=function(O,U){return this._binding.constraint=function(G){return G!==null&&!traverseAncerstors(G,taggedConstraint(O)(U))},new BindingOnSyntax(this._binding)},W.prototype.whenAnyAncestorMatches=function(O){return this._binding.constraint=function(U){return U!==null&&traverseAncerstors(U,O)},new BindingOnSyntax(this._binding)},W.prototype.whenNoAncestorMatches=function(O){return this._binding.constraint=function(U){return U!==null&&!traverseAncerstors(U,O)},new BindingOnSyntax(this._binding)},W}(),BindingOnSyntax=function(){function W(O){this._binding=O}return W.prototype.onActivation=function(O){return this._binding.onActivation=O,new BindingWhenSyntax(this._binding)},W.prototype.onDeactivation=function(O){return this._binding.onDeactivation=O,new BindingWhenSyntax(this._binding)},W}(),BindingWhenOnSyntax=function(){function W(O){this._binding=O,this._bindingWhenSyntax=new BindingWhenSyntax(this._binding),this._bindingOnSyntax=new BindingOnSyntax(this._binding)}return W.prototype.when=function(O){return this._bindingWhenSyntax.when(O)},W.prototype.whenTargetNamed=function(O){return this._bindingWhenSyntax.whenTargetNamed(O)},W.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},W.prototype.whenTargetTagged=function(O,U){return this._bindingWhenSyntax.whenTargetTagged(O,U)},W.prototype.whenInjectedInto=function(O){return this._bindingWhenSyntax.whenInjectedInto(O)},W.prototype.whenParentNamed=function(O){return this._bindingWhenSyntax.whenParentNamed(O)},W.prototype.whenParentTagged=function(O,U){return this._bindingWhenSyntax.whenParentTagged(O,U)},W.prototype.whenAnyAncestorIs=function(O){return this._bindingWhenSyntax.whenAnyAncestorIs(O)},W.prototype.whenNoAncestorIs=function(O){return this._bindingWhenSyntax.whenNoAncestorIs(O)},W.prototype.whenAnyAncestorNamed=function(O){return this._bindingWhenSyntax.whenAnyAncestorNamed(O)},W.prototype.whenAnyAncestorTagged=function(O,U){return this._bindingWhenSyntax.whenAnyAncestorTagged(O,U)},W.prototype.whenNoAncestorNamed=function(O){return this._bindingWhenSyntax.whenNoAncestorNamed(O)},W.prototype.whenNoAncestorTagged=function(O,U){return this._bindingWhenSyntax.whenNoAncestorTagged(O,U)},W.prototype.whenAnyAncestorMatches=function(O){return this._bindingWhenSyntax.whenAnyAncestorMatches(O)},W.prototype.whenNoAncestorMatches=function(O){return this._bindingWhenSyntax.whenNoAncestorMatches(O)},W.prototype.onActivation=function(O){return this._bindingOnSyntax.onActivation(O)},W.prototype.onDeactivation=function(O){return this._bindingOnSyntax.onDeactivation(O)},W}(),BindingInSyntax=function(){function W(O){this._binding=O}return W.prototype.inRequestScope=function(){return this._binding.scope=BindingScopeEnum.Request,new BindingWhenOnSyntax(this._binding)},W.prototype.inSingletonScope=function(){return this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},W.prototype.inTransientScope=function(){return this._binding.scope=BindingScopeEnum.Transient,new BindingWhenOnSyntax(this._binding)},W}(),BindingInWhenOnSyntax=function(){function W(O){this._binding=O,this._bindingWhenSyntax=new BindingWhenSyntax(this._binding),this._bindingOnSyntax=new BindingOnSyntax(this._binding),this._bindingInSyntax=new BindingInSyntax(O)}return W.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},W.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},W.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},W.prototype.when=function(O){return this._bindingWhenSyntax.when(O)},W.prototype.whenTargetNamed=function(O){return this._bindingWhenSyntax.whenTargetNamed(O)},W.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},W.prototype.whenTargetTagged=function(O,U){return this._bindingWhenSyntax.whenTargetTagged(O,U)},W.prototype.whenInjectedInto=function(O){return this._bindingWhenSyntax.whenInjectedInto(O)},W.prototype.whenParentNamed=function(O){return this._bindingWhenSyntax.whenParentNamed(O)},W.prototype.whenParentTagged=function(O,U){return this._bindingWhenSyntax.whenParentTagged(O,U)},W.prototype.whenAnyAncestorIs=function(O){return this._bindingWhenSyntax.whenAnyAncestorIs(O)},W.prototype.whenNoAncestorIs=function(O){return this._bindingWhenSyntax.whenNoAncestorIs(O)},W.prototype.whenAnyAncestorNamed=function(O){return this._bindingWhenSyntax.whenAnyAncestorNamed(O)},W.prototype.whenAnyAncestorTagged=function(O,U){return this._bindingWhenSyntax.whenAnyAncestorTagged(O,U)},W.prototype.whenNoAncestorNamed=function(O){return this._bindingWhenSyntax.whenNoAncestorNamed(O)},W.prototype.whenNoAncestorTagged=function(O,U){return this._bindingWhenSyntax.whenNoAncestorTagged(O,U)},W.prototype.whenAnyAncestorMatches=function(O){return this._bindingWhenSyntax.whenAnyAncestorMatches(O)},W.prototype.whenNoAncestorMatches=function(O){return this._bindingWhenSyntax.whenNoAncestorMatches(O)},W.prototype.onActivation=function(O){return this._bindingOnSyntax.onActivation(O)},W.prototype.onDeactivation=function(O){return this._bindingOnSyntax.onDeactivation(O)},W}(),BindingToSyntax=function(){function W(O){this._binding=O}return W.prototype.to=function(O){return this._binding.type=BindingTypeEnum.Instance,this._binding.implementationType=O,new BindingInWhenOnSyntax(this._binding)},W.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+INVALID_TO_SELF_VALUE);var O=this._binding.serviceIdentifier;return this.to(O)},W.prototype.toConstantValue=function(O){return this._binding.type=BindingTypeEnum.ConstantValue,this._binding.cache=O,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},W.prototype.toDynamicValue=function(O){return this._binding.type=BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=O,this._binding.implementationType=null,new BindingInWhenOnSyntax(this._binding)},W.prototype.toConstructor=function(O){return this._binding.type=BindingTypeEnum.Constructor,this._binding.implementationType=O,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},W.prototype.toFactory=function(O){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=O,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},W.prototype.toFunction=function(O){if(typeof O!="function")throw new Error(INVALID_FUNCTION_BINDING);var U=this.toConstantValue(O);return this._binding.type=BindingTypeEnum.Function,this._binding.scope=BindingScopeEnum.Singleton,U},W.prototype.toAutoFactory=function(O){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=function(U){var G=function(){return U.container.get(O)};return G},this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},W.prototype.toAutoNamedFactory=function(O){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=function(U){return function(G){return U.container.getNamed(O,G)}},new BindingWhenOnSyntax(this._binding)},W.prototype.toProvider=function(O){return this._binding.type=BindingTypeEnum.Provider,this._binding.provider=O,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},W.prototype.toService=function(O){this.toDynamicValue(function(U){return U.container.get(O)})},W}(),ContainerSnapshot=function(){function W(){}return W.of=function(O,U,G,Y,K){var J=new W;return J.bindings=O,J.middleware=U,J.deactivations=Y,J.activations=G,J.moduleActivationStore=K,J},W}();function isClonable(W){return typeof W=="object"&&W!==null&&"clone"in W&&typeof W.clone=="function"}var Lookup=function(){function W(){this._map=new Map}return W.prototype.getMap=function(){return this._map},W.prototype.add=function(O,U){if(O==null)throw new Error(NULL_ARGUMENT);if(U==null)throw new Error(NULL_ARGUMENT);var G=this._map.get(O);G!==void 0?G.push(U):this._map.set(O,[U])},W.prototype.get=function(O){if(O==null)throw new Error(NULL_ARGUMENT);var U=this._map.get(O);if(U!==void 0)return U;throw new Error(KEY_NOT_FOUND)},W.prototype.remove=function(O){if(O==null)throw new Error(NULL_ARGUMENT);if(!this._map.delete(O))throw new Error(KEY_NOT_FOUND)},W.prototype.removeIntersection=function(O){var U=this;this.traverse(function(G,Y){var K=O.hasKey(G)?O.get(G):void 0;if(K!==void 0){var J=Y.filter(function(X){return!K.some(function(ie){return X===ie})});U._setValue(G,J)}})},W.prototype.removeByCondition=function(O){var U=this,G=[];return this._map.forEach(function(Y,K){for(var J=[],X=0,ie=Y;X<ie.length;X++){var ee=ie[X],ne=O(ee);ne?G.push(ee):J.push(ee)}U._setValue(K,J)}),G},W.prototype.hasKey=function(O){if(O==null)throw new Error(NULL_ARGUMENT);return this._map.has(O)},W.prototype.clone=function(){var O=new W;return this._map.forEach(function(U,G){U.forEach(function(Y){return O.add(G,isClonable(Y)?Y.clone():Y)})}),O},W.prototype.traverse=function(O){this._map.forEach(function(U,G){O(G,U)})},W.prototype._setValue=function(O,U){U.length>0?this._map.set(O,U):this._map.delete(O)},W}(),ModuleActivationStore=function(){function W(){this._map=new Map}return W.prototype.remove=function(O){if(this._map.has(O)){var U=this._map.get(O);return this._map.delete(O),U}return this._getEmptyHandlersStore()},W.prototype.addDeactivation=function(O,U,G){this._getModuleActivationHandlers(O).onDeactivations.add(U,G)},W.prototype.addActivation=function(O,U,G){this._getModuleActivationHandlers(O).onActivations.add(U,G)},W.prototype.clone=function(){var O=new W;return this._map.forEach(function(U,G){O._map.set(G,{onActivations:U.onActivations.clone(),onDeactivations:U.onDeactivations.clone()})}),O},W.prototype._getModuleActivationHandlers=function(O){var U=this._map.get(O);return U===void 0&&(U=this._getEmptyHandlersStore(),this._map.set(O,U)),U},W.prototype._getEmptyHandlersStore=function(){var O={onActivations:new Lookup,onDeactivations:new Lookup};return O},W}(),__assign=function(){return __assign=Object.assign||function(W){for(var O,U=1,G=arguments.length;U<G;U++){O=arguments[U];for(var Y in O)Object.prototype.hasOwnProperty.call(O,Y)&&(W[Y]=O[Y])}return W},__assign.apply(this,arguments)},__awaiter=function(W,O,U,G){function Y(K){return K instanceof U?K:new U(function(J){J(K)})}return new(U||(U=Promise))(function(K,J){function X(ne){try{ee(G.next(ne))}catch(Q){J(Q)}}function ie(ne){try{ee(G.throw(ne))}catch(Q){J(Q)}}function ee(ne){ne.done?K(ne.value):Y(ne.value).then(X,ie)}ee((G=G.apply(W,O||[])).next())})},__generator=function(W,O){var U={label:0,sent:function(){if(K[0]&1)throw K[1];return K[1]},trys:[],ops:[]},G,Y,K,J;return J={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function X(ee){return function(ne){return ie([ee,ne])}}function ie(ee){if(G)throw new TypeError("Generator is already executing.");for(;U;)try{if(G=1,Y&&(K=ee[0]&2?Y.return:ee[0]?Y.throw||((K=Y.return)&&K.call(Y),0):Y.next)&&!(K=K.call(Y,ee[1])).done)return K;switch(Y=0,K&&(ee=[ee[0]&2,K.value]),ee[0]){case 0:case 1:K=ee;break;case 4:return U.label++,{value:ee[1],done:!1};case 5:U.label++,Y=ee[1],ee=[0];continue;case 7:ee=U.ops.pop(),U.trys.pop();continue;default:if(K=U.trys,!(K=K.length>0&&K[K.length-1])&&(ee[0]===6||ee[0]===2)){U=0;continue}if(ee[0]===3&&(!K||ee[1]>K[0]&&ee[1]<K[3])){U.label=ee[1];break}if(ee[0]===6&&U.label<K[1]){U.label=K[1],K=ee;break}if(K&&U.label<K[2]){U.label=K[2],U.ops.push(ee);break}K[2]&&U.ops.pop(),U.trys.pop();continue}ee=O.call(W,U)}catch(ne){ee=[6,ne],Y=0}finally{G=K=0}if(ee[0]&5)throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}},__spreadArray=function(W,O,U){if(U||arguments.length===2)for(var G=0,Y=O.length,K;G<Y;G++)(K||!(G in O))&&(K||(K=Array.prototype.slice.call(O,0,G)),K[G]=O[G]);return W.concat(K||Array.prototype.slice.call(O))},Container=function(){function W(O){var U=O||{};if(typeof U!="object")throw new Error(""+CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(U.defaultScope===void 0)U.defaultScope=BindingScopeEnum.Transient;else if(U.defaultScope!==BindingScopeEnum.Singleton&&U.defaultScope!==BindingScopeEnum.Transient&&U.defaultScope!==BindingScopeEnum.Request)throw new Error(""+CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(U.autoBindInjectable===void 0)U.autoBindInjectable=!1;else if(typeof U.autoBindInjectable!="boolean")throw new Error(""+CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(U.skipBaseClassChecks===void 0)U.skipBaseClassChecks=!1;else if(typeof U.skipBaseClassChecks!="boolean")throw new Error(""+CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:U.autoBindInjectable,defaultScope:U.defaultScope,skipBaseClassChecks:U.skipBaseClassChecks},this.id=id(),this._bindingDictionary=new Lookup,this._snapshots=[],this._middleware=null,this._activations=new Lookup,this._deactivations=new Lookup,this.parent=null,this._metadataReader=new MetadataReader,this._moduleActivationStore=new ModuleActivationStore}return W.merge=function(O,U){for(var G=[],Y=2;Y<arguments.length;Y++)G[Y-2]=arguments[Y];var K=new W,J=__spreadArray([O,U],G,!0).map(function(ee){return getBindingDictionary(ee)}),X=getBindingDictionary(K);function ie(ee,ne){ee.traverse(function(Q,te){te.forEach(function(se){ne.add(se.serviceIdentifier,se.clone())})})}return J.forEach(function(ee){ie(ee,X)}),K},W.prototype.load=function(){for(var O=[],U=0;U<arguments.length;U++)O[U]=arguments[U];for(var G=this._getContainerModuleHelpersFactory(),Y=0,K=O;Y<K.length;Y++){var J=K[Y],X=G(J.id);J.registry(X.bindFunction,X.unbindFunction,X.isboundFunction,X.rebindFunction,X.unbindAsyncFunction,X.onActivationFunction,X.onDeactivationFunction)}},W.prototype.loadAsync=function(){for(var O=[],U=0;U<arguments.length;U++)O[U]=arguments[U];return __awaiter(this,void 0,void 0,function(){var G,Y,K,J,X;return __generator(this,function(ie){switch(ie.label){case 0:G=this._getContainerModuleHelpersFactory(),Y=0,K=O,ie.label=1;case 1:return Y<K.length?(J=K[Y],X=G(J.id),[4,J.registry(X.bindFunction,X.unbindFunction,X.isboundFunction,X.rebindFunction,X.unbindAsyncFunction,X.onActivationFunction,X.onDeactivationFunction)]):[3,4];case 2:ie.sent(),ie.label=3;case 3:return Y++,[3,1];case 4:return[2]}})})},W.prototype.unload=function(){for(var O=this,U=[],G=0;G<arguments.length;G++)U[G]=arguments[G];U.forEach(function(Y){var K=O._removeModuleBindings(Y.id);O._deactivateSingletons(K),O._removeModuleHandlers(Y.id)})},W.prototype.unloadAsync=function(){for(var O=[],U=0;U<arguments.length;U++)O[U]=arguments[U];return __awaiter(this,void 0,void 0,function(){var G,Y,K,J;return __generator(this,function(X){switch(X.label){case 0:G=0,Y=O,X.label=1;case 1:return G<Y.length?(K=Y[G],J=this._removeModuleBindings(K.id),[4,this._deactivateSingletonsAsync(J)]):[3,4];case 2:X.sent(),this._removeModuleHandlers(K.id),X.label=3;case 3:return G++,[3,1];case 4:return[2]}})})},W.prototype.bind=function(O){var U=this.options.defaultScope||BindingScopeEnum.Transient,G=new Binding(O,U);return this._bindingDictionary.add(O,G),new BindingToSyntax(G)},W.prototype.rebind=function(O){return this.unbind(O),this.bind(O)},W.prototype.rebindAsync=function(O){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(U){switch(U.label){case 0:return[4,this.unbindAsync(O)];case 1:return U.sent(),[2,this.bind(O)]}})})},W.prototype.unbind=function(O){if(this._bindingDictionary.hasKey(O)){var U=this._bindingDictionary.get(O);this._deactivateSingletons(U)}this._removeServiceFromDictionary(O)},W.prototype.unbindAsync=function(O){return __awaiter(this,void 0,void 0,function(){var U;return __generator(this,function(G){switch(G.label){case 0:return this._bindingDictionary.hasKey(O)?(U=this._bindingDictionary.get(O),[4,this._deactivateSingletonsAsync(U)]):[3,2];case 1:G.sent(),G.label=2;case 2:return this._removeServiceFromDictionary(O),[2]}})})},W.prototype.unbindAll=function(){var O=this;this._bindingDictionary.traverse(function(U,G){O._deactivateSingletons(G)}),this._bindingDictionary=new Lookup},W.prototype.unbindAllAsync=function(){return __awaiter(this,void 0,void 0,function(){var O,U=this;return __generator(this,function(G){switch(G.label){case 0:return O=[],this._bindingDictionary.traverse(function(Y,K){O.push(U._deactivateSingletonsAsync(K))}),[4,Promise.all(O)];case 1:return G.sent(),this._bindingDictionary=new Lookup,[2]}})})},W.prototype.onActivation=function(O,U){this._activations.add(O,U)},W.prototype.onDeactivation=function(O,U){this._deactivations.add(O,U)},W.prototype.isBound=function(O){var U=this._bindingDictionary.hasKey(O);return!U&&this.parent&&(U=this.parent.isBound(O)),U},W.prototype.isCurrentBound=function(O){return this._bindingDictionary.hasKey(O)},W.prototype.isBoundNamed=function(O,U){return this.isBoundTagged(O,NAMED_TAG,U)},W.prototype.isBoundTagged=function(O,U,G){var Y=!1;if(this._bindingDictionary.hasKey(O)){var K=this._bindingDictionary.get(O),J=createMockRequest(this,O,U,G);Y=K.some(function(X){return X.constraint(J)})}return!Y&&this.parent&&(Y=this.parent.isBoundTagged(O,U,G)),Y},W.prototype.snapshot=function(){this._snapshots.push(ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware,this._activations.clone(),this._deactivations.clone(),this._moduleActivationStore.clone()))},W.prototype.restore=function(){var O=this._snapshots.pop();if(O===void 0)throw new Error(NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=O.bindings,this._activations=O.activations,this._deactivations=O.deactivations,this._middleware=O.middleware,this._moduleActivationStore=O.moduleActivationStore},W.prototype.createChild=function(O){var U=new W(O||this.options);return U.parent=this,U},W.prototype.applyMiddleware=function(){for(var O=[],U=0;U<arguments.length;U++)O[U]=arguments[U];var G=this._middleware?this._middleware:this._planAndResolve();this._middleware=O.reduce(function(Y,K){return K(Y)},G)},W.prototype.applyCustomMetadataReader=function(O){this._metadataReader=O},W.prototype.get=function(O){var U=this._getNotAllArgs(O,!1);return this._getButThrowIfAsync(U)},W.prototype.getAsync=function(O){return __awaiter(this,void 0,void 0,function(){var U;return __generator(this,function(G){return U=this._getNotAllArgs(O,!1),[2,this._get(U)]})})},W.prototype.getTagged=function(O,U,G){var Y=this._getNotAllArgs(O,!1,U,G);return this._getButThrowIfAsync(Y)},W.prototype.getTaggedAsync=function(O,U,G){return __awaiter(this,void 0,void 0,function(){var Y;return __generator(this,function(K){return Y=this._getNotAllArgs(O,!1,U,G),[2,this._get(Y)]})})},W.prototype.getNamed=function(O,U){return this.getTagged(O,NAMED_TAG,U)},W.prototype.getNamedAsync=function(O,U){return this.getTaggedAsync(O,NAMED_TAG,U)},W.prototype.getAll=function(O){var U=this._getAllArgs(O);return this._getButThrowIfAsync(U)},W.prototype.getAllAsync=function(O){var U=this._getAllArgs(O);return this._getAll(U)},W.prototype.getAllTagged=function(O,U,G){var Y=this._getNotAllArgs(O,!0,U,G);return this._getButThrowIfAsync(Y)},W.prototype.getAllTaggedAsync=function(O,U,G){var Y=this._getNotAllArgs(O,!0,U,G);return this._getAll(Y)},W.prototype.getAllNamed=function(O,U){return this.getAllTagged(O,NAMED_TAG,U)},W.prototype.getAllNamedAsync=function(O,U){return this.getAllTaggedAsync(O,NAMED_TAG,U)},W.prototype.resolve=function(O){var U=this.isBound(O);U||this.bind(O).toSelf();var G=this.get(O);return U||this.unbind(O),G},W.prototype._preDestroy=function(O,U){var G,Y;if(Reflect.hasMetadata(PRE_DESTROY,O)){var K=Reflect.getMetadata(PRE_DESTROY,O);return(Y=(G=U)[K.value])===null||Y===void 0?void 0:Y.call(G)}},W.prototype._removeModuleHandlers=function(O){var U=this._moduleActivationStore.remove(O);this._activations.removeIntersection(U.onActivations),this._deactivations.removeIntersection(U.onDeactivations)},W.prototype._removeModuleBindings=function(O){return this._bindingDictionary.removeByCondition(function(U){return U.moduleId===O})},W.prototype._deactivate=function(O,U){var G=this,Y=Object.getPrototypeOf(U).constructor;try{if(this._deactivations.hasKey(O.serviceIdentifier)){var K=this._deactivateContainer(U,this._deactivations.get(O.serviceIdentifier).values());if(isPromise(K))return this._handleDeactivationError(K.then(function(){return G._propagateContainerDeactivationThenBindingAndPreDestroyAsync(O,U,Y)}),Y)}var J=this._propagateContainerDeactivationThenBindingAndPreDestroy(O,U,Y);if(isPromise(J))return this._handleDeactivationError(J,Y)}catch(X){if(X instanceof Error)throw new Error(ON_DEACTIVATION_ERROR(Y.name,X.message))}},W.prototype._handleDeactivationError=function(O,U){return __awaiter(this,void 0,void 0,function(){var G;return __generator(this,function(Y){switch(Y.label){case 0:return Y.trys.push([0,2,,3]),[4,O];case 1:return Y.sent(),[3,3];case 2:if(G=Y.sent(),G instanceof Error)throw new Error(ON_DEACTIVATION_ERROR(U.name,G.message));return[3,3];case 3:return[2]}})})},W.prototype._deactivateContainer=function(O,U){for(var G=this,Y=U.next();Y.value;){var K=Y.value(O);if(isPromise(K))return K.then(function(){return G._deactivateContainerAsync(O,U)});Y=U.next()}},W.prototype._deactivateContainerAsync=function(O,U){return __awaiter(this,void 0,void 0,function(){var G;return __generator(this,function(Y){switch(Y.label){case 0:G=U.next(),Y.label=1;case 1:return G.value?[4,G.value(O)]:[3,3];case 2:return Y.sent(),G=U.next(),[3,1];case 3:return[2]}})})},W.prototype._getContainerModuleHelpersFactory=function(){var O=this,U=function(ne,Q){ne._binding.moduleId=Q},G=function(ne){return function(Q){var te=O.bind(Q);return U(te,ne),te}},Y=function(){return function(ne){return O.unbind(ne)}},K=function(){return function(ne){return O.unbindAsync(ne)}},J=function(){return function(ne){return O.isBound(ne)}},X=function(ne){return function(Q){var te=O.rebind(Q);return U(te,ne),te}},ie=function(ne){return function(Q,te){O._moduleActivationStore.addActivation(ne,Q,te),O.onActivation(Q,te)}},ee=function(ne){return function(Q,te){O._moduleActivationStore.addDeactivation(ne,Q,te),O.onDeactivation(Q,te)}};return function(ne){return{bindFunction:G(ne),isboundFunction:J(),onActivationFunction:ie(ne),onDeactivationFunction:ee(ne),rebindFunction:X(ne),unbindFunction:Y(),unbindAsyncFunction:K()}}},W.prototype._getAll=function(O){return Promise.all(this._get(O))},W.prototype._get=function(O){var U=__assign(__assign({},O),{contextInterceptor:function(Y){return Y},targetType:TargetTypeEnum.Variable});if(this._middleware){var G=this._middleware(U);if(G==null)throw new Error(INVALID_MIDDLEWARE_RETURN);return G}return this._planAndResolve()(U)},W.prototype._getButThrowIfAsync=function(O){var U=this._get(O);if(isPromiseOrContainsPromise(U))throw new Error(LAZY_IN_SYNC(O.serviceIdentifier));return U},W.prototype._getAllArgs=function(O){var U={avoidConstraints:!0,isMultiInject:!0,serviceIdentifier:O};return U},W.prototype._getNotAllArgs=function(O,U,G,Y){var K={avoidConstraints:!1,isMultiInject:U,serviceIdentifier:O,key:G,value:Y};return K},W.prototype._planAndResolve=function(){var O=this;return function(U){var G=plan(O._metadataReader,O,U.isMultiInject,U.targetType,U.serviceIdentifier,U.key,U.value,U.avoidConstraints);G=U.contextInterceptor(G);var Y=resolve(G);return Y}},W.prototype._deactivateIfSingleton=function(O){var U=this;if(O.activated)return isPromise(O.cache)?O.cache.then(function(G){return U._deactivate(O,G)}):this._deactivate(O,O.cache)},W.prototype._deactivateSingletons=function(O){for(var U=0,G=O;U<G.length;U++){var Y=G[U],K=this._deactivateIfSingleton(Y);if(isPromise(K))throw new Error(ASYNC_UNBIND_REQUIRED)}},W.prototype._deactivateSingletonsAsync=function(O){return __awaiter(this,void 0,void 0,function(){var U=this;return __generator(this,function(G){switch(G.label){case 0:return[4,Promise.all(O.map(function(Y){return U._deactivateIfSingleton(Y)}))];case 1:return G.sent(),[2]}})})},W.prototype._propagateContainerDeactivationThenBindingAndPreDestroy=function(O,U,G){return this.parent?this._deactivate.bind(this.parent)(O,U):this._bindingDeactivationAndPreDestroy(O,U,G)},W.prototype._propagateContainerDeactivationThenBindingAndPreDestroyAsync=function(O,U,G){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(Y){switch(Y.label){case 0:return this.parent?[4,this._deactivate.bind(this.parent)(O,U)]:[3,2];case 1:return Y.sent(),[3,4];case 2:return[4,this._bindingDeactivationAndPreDestroyAsync(O,U,G)];case 3:Y.sent(),Y.label=4;case 4:return[2]}})})},W.prototype._removeServiceFromDictionary=function(O){try{this._bindingDictionary.remove(O)}catch{throw new Error(CANNOT_UNBIND+" "+getServiceIdentifierAsString(O))}},W.prototype._bindingDeactivationAndPreDestroy=function(O,U,G){var Y=this;if(typeof O.onDeactivation=="function"){var K=O.onDeactivation(U);if(isPromise(K))return K.then(function(){return Y._preDestroy(G,U)})}return this._preDestroy(G,U)},W.prototype._bindingDeactivationAndPreDestroyAsync=function(O,U,G){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(Y){switch(Y.label){case 0:return typeof O.onDeactivation!="function"?[3,2]:[4,O.onDeactivation(U)];case 1:Y.sent(),Y.label=2;case 2:return[4,this._preDestroy(G,U)];case 3:return Y.sent(),[2]}})})},W}();function getFirstArrayDuplicate(W){for(var O=new Set,U=0,G=W;U<G.length;U++){var Y=G[U];if(O.has(Y))return Y;O.add(Y)}}function targetIsConstructorFunction(W){return W.prototype!==void 0}function _throwIfMethodParameter(W){if(W!==void 0)throw new Error(INVALID_DECORATOR_OPERATION)}function tagParameter(W,O,U,G){_throwIfMethodParameter(O),_tagParameterOrProperty(TAGGED,W,U.toString(),G)}function tagProperty(W,O,U){if(targetIsConstructorFunction(W))throw new Error(INVALID_DECORATOR_OPERATION);_tagParameterOrProperty(TAGGED_PROP,W.constructor,O,U)}function _ensureNoMetadataKeyDuplicates(W){var O=[];if(Array.isArray(W)){O=W;var U=getFirstArrayDuplicate(O.map(function(G){return G.key}));if(U!==void 0)throw new Error(DUPLICATED_METADATA+" "+U.toString())}else O=[W];return O}function _tagParameterOrProperty(W,O,U,G){var Y=_ensureNoMetadataKeyDuplicates(G),K={};Reflect.hasOwnMetadata(W,O)&&(K=Reflect.getMetadata(W,O));var J=K[U];if(J===void 0)J=[];else for(var X=function(Q){if(Y.some(function(te){return te.key===Q.key}))throw new Error(DUPLICATED_METADATA+" "+Q.key.toString())},ie=0,ee=J;ie<ee.length;ie++){var ne=ee[ie];X(ne)}J.push.apply(J,Y),K[U]=J,Reflect.defineMetadata(W,K,O)}function createTaggedDecorator(W){return function(O,U,G){typeof G=="number"?tagParameter(O,U,G,W):tagProperty(O,U,W)}}function injectable(){return function(W){if(Reflect.hasOwnMetadata(PARAM_TYPES,W))throw new Error(DUPLICATED_INJECTABLE_DECORATOR);var O=Reflect.getMetadata(DESIGN_PARAM_TYPES,W)||[];return Reflect.defineMetadata(PARAM_TYPES,O,W),W}}function injectBase(W){return function(O){return function(U,G,Y){if(O===void 0){var K=typeof U=="function"?U.name:U.constructor.name;throw new Error(UNDEFINED_INJECT_ANNOTATION(K))}return createTaggedDecorator(new Metadata(W,O))(U,G,Y)}}}var inject=injectBase(INJECT_TAG);const container=new Container,registerDep=W=>{container.bind(W).toSelf()},unregisterDep=W=>{container.isBound(W)&&container.unbind(W)},TYPES={primaryApi:Symbol.for("primaryApi"),store:Symbol.for("store"),localeManager:Symbol.for("localeManager")},registerRequest=(W,O)=>(U,G)=>{O.bind(G).to(G).inTransientScope(),injectable()(G),W.broker.registerRequest(U,Y=>O.get(G).handle(Y))},unregisterRequest=W=>O=>{W.isBound(O)&&W.unbind(O)};class InvalidTokenError extends Error{}InvalidTokenError.prototype.name="InvalidTokenError";function b64DecodeUnicode(W){return decodeURIComponent(atob(W).replace(/(.)/g,(O,U)=>{let G=U.charCodeAt(0).toString(16).toUpperCase();return G.length<2&&(G="0"+G),"%"+G}))}function base64UrlDecode(W){let O=W.replace(/-/g,"+").replace(/_/g,"/");switch(O.length%4){case 0:break;case 2:O+="==";break;case 3:O+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return b64DecodeUnicode(O)}catch{return atob(O)}}function jwtDecode(W,O){if(typeof W!="string")throw new InvalidTokenError("Invalid token specified: must be a string");O||(O={});const U=O.header===!0?0:1,G=W.split(".")[U];if(typeof G!="string")throw new InvalidTokenError(`Invalid token specified: missing part #${U+1}`);let Y;try{Y=base64UrlDecode(G)}catch(K){throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${U+1} (${K.message})`)}try{return JSON.parse(Y)}catch(K){throw new InvalidTokenError(`Invalid token specified: invalid json for part #${U+1} (${K.message})`)}}var __defProp$9=Object.defineProperty,__getOwnPropDesc$9=Object.getOwnPropertyDescriptor,__decorateClass$9=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$9(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$9(O,U,Y),Y};let GetUserInfoBackendAdapter=class{constructor(){this.token="eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ1S2hQbXhscHB4d2sxUDVfWmQ5am9CeTV6N2p5MHFPd0ZWY3RwZjBDa0E4In0.eyJleHAiOjE3MjEzMDc3MTcsImlhdCI6MTcyMTMwNzQxNywianRpIjoiNWRkMDE1YzgtNTQ5Yy00ZGM2LWE4YWItMTUzNDJiMWRhNThmIiwiaXNzIjoiaHR0cHM6Ly9pbnRlZ3JhY2lvLnBkcy5oZXMuY2F0c2FsdXQuaW50cmFuZXQuZ2VuY2F0LmNhdC9hdXRoL3JlYWxtcy9FVEMiLCJzdWIiOiJlMjRlMzFlMC01NWZiLTRhZmEtYTQzNi0yYmRhOGYyYWQ0ZWUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJldGMtY2NmLWludCIsInNlc3Npb25fc3RhdGUiOiJhY2M2ZDBlYi1iMTBjLTQ3ZDEtYjFlOC0xYWQ5ODU5NTAyNTkiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZGVmYXVsdC1yb2xlcy1oZXMtY2FtIl19LCJzY29wZSI6IiIsInNpZCI6ImFjYzZkMGViLWIxMGMtNDdkMS1iMWU4LTFhZDk4NTk1MDI1OSIsImNsaWVudEhvc3QiOiIxMC41My4yNTQuMTUwIiwiYWNjZXNzX3J1bGVzIjp7fSwiYWNjZXNzX2luZm8iOnsicGF0aWVudF9nZW5kZXIiOiIxIiwicGF0aWVudF9iaXJ0aGRhdGUiOiIxOTk5MDEwMSIsInByb2Zlc3Npb25hbF9yb2xlIjoiQURNIiwicHJvZmVzc2lvbmFsX2lkIjoiMTIzNDU2Nzg5MCIsInVwX2NvZGUiOiIwNzczMyIsInBhdGllbnRfZ2l2ZW5fbmFtZSI6ImNhc3RhbnkiLCJwYXRpZW50X2lkIjoiMTIzNDU2Nzg5MCIsInByb2Zlc3Npb25hbF9zcGVjaWFsaXR5IjoiU1BFQzAxIiwicHJvZmVzc2lvbmFsX3NlcnZpY2UiOiJTRVJWMDEiLCJwYXRpZW50X2xhc3RfbmFtZSI6IkFSRUdBTEwiLCJlcF9jb2RlIjoiMDIwOCJ9LCJjbGllbnRBZGRyZXNzIjoiMTAuNTMuMjU0LjE1MCIsImNsaWVudF9pZCI6ImV0Yy1jY2YtaW50In0.NiDKnMchNB4zqL9zOdq15G8y2BYGOyjk8n1xofB2WyxhVpbTXhXAgApS-4DCqczmdPt4sOwtt-FVVxcYku2gKcQQ1Leapb7CmHoUT_ak5ovOE8ZrD5Ryz6rfC_O1lO8Ut4M_J-KzMxj7WvUNYhkIqcHFSMwDdNC6xxc4ZYMOUI4bOif_Tiy7CxvMIpFGm1YS_jiGS2PGI8Y1o_1DApqMs88MxK9ItO-DIfQgKcR3wV6J-QZueaKVtih-kLma33TZc0jz7xG1EyOMJ5cC4r1Sxp877b9ut4JCmMaWOfWNf2tldLcpXTvV_BWg53YpwYOl4pvZdg3lFWEb009DofTQbQ"}getUserInfo(){const W=jwtDecode(this.token),O={userId:W.access_info.professional_id,firstName:"Nom",lastName:"Cognom",role:W.access_info.professional_role,speciality:W.access_info.professional_speciality,service:W.access_info.professional_service};return Promise.resolve(O)}};GetUserInfoBackendAdapter=__decorateClass$9([injectable()],GetUserInfoBackendAdapter);var __defProp$8=Object.defineProperty,__getOwnPropDesc$8=Object.getOwnPropertyDescriptor,__decorateClass$8=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$8(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$8(O,U,Y),Y},__decorateParam$1=(W,O)=>(U,G)=>O(U,G,W);let GetUserInfoHandler=class{constructor(W,O){this.api=W,this.backendAdapter=O}async handle(W){try{const O=await this.backendAdapter.getUserInfo();return this.api.globalStateManager.setData("userInfo",O),O}catch(O){this.api.interactionManager.notify({type:"error",message:O.message})}}};GetUserInfoHandler=__decorateClass$8([__decorateParam$1(0,inject(TYPES.primaryApi)),__decorateParam$1(1,inject(GetUserInfoBackendAdapter))],GetUserInfoHandler);class GetUserInfo{}const bootstrapGetUserInfo=()=>{teardownGetUserInfo(),registerRequest(shellApi,container)(GetUserInfo,GetUserInfoHandler),registerDep(GetUserInfoBackendAdapter)},teardownGetUserInfo=()=>{unregisterRequest(container)(GetUserInfoHandler),unregisterDep(GetUserInfoBackendAdapter)};var __defProp$7=Object.defineProperty,__getOwnPropDesc$7=Object.getOwnPropertyDescriptor,__decorateClass$7=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$7(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$7(O,U,Y),Y};let GetPatientInfoBackendAdapter=class{constructor(){this.token="eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ1S2hQbXhscHB4d2sxUDVfWmQ5am9CeTV6N2p5MHFPd0ZWY3RwZjBDa0E4In0.eyJleHAiOjE3MjEzMDc3MTcsImlhdCI6MTcyMTMwNzQxNywianRpIjoiNWRkMDE1YzgtNTQ5Yy00ZGM2LWE4YWItMTUzNDJiMWRhNThmIiwiaXNzIjoiaHR0cHM6Ly9pbnRlZ3JhY2lvLnBkcy5oZXMuY2F0c2FsdXQuaW50cmFuZXQuZ2VuY2F0LmNhdC9hdXRoL3JlYWxtcy9FVEMiLCJzdWIiOiJlMjRlMzFlMC01NWZiLTRhZmEtYTQzNi0yYmRhOGYyYWQ0ZWUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJldGMtY2NmLWludCIsInNlc3Npb25fc3RhdGUiOiJhY2M2ZDBlYi1iMTBjLTQ3ZDEtYjFlOC0xYWQ5ODU5NTAyNTkiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZGVmYXVsdC1yb2xlcy1oZXMtY2FtIl19LCJzY29wZSI6IiIsInNpZCI6ImFjYzZkMGViLWIxMGMtNDdkMS1iMWU4LTFhZDk4NTk1MDI1OSIsImNsaWVudEhvc3QiOiIxMC41My4yNTQuMTUwIiwiYWNjZXNzX3J1bGVzIjp7fSwiYWNjZXNzX2luZm8iOnsicGF0aWVudF9nZW5kZXIiOiIxIiwicGF0aWVudF9iaXJ0aGRhdGUiOiIxOTk5MDEwMSIsInByb2Zlc3Npb25hbF9yb2xlIjoiQURNIiwicHJvZmVzc2lvbmFsX2lkIjoiMTIzNDU2Nzg5MCIsInVwX2NvZGUiOiIwNzczMyIsInBhdGllbnRfZ2l2ZW5fbmFtZSI6ImNhc3RhbnkiLCJwYXRpZW50X2lkIjoiMTIzNDU2Nzg5MCIsInByb2Zlc3Npb25hbF9zcGVjaWFsaXR5IjoiU1BFQzAxIiwicHJvZmVzc2lvbmFsX3NlcnZpY2UiOiJTRVJWMDEiLCJwYXRpZW50X2xhc3RfbmFtZSI6IkFSRUdBTEwiLCJlcF9jb2RlIjoiMDIwOCJ9LCJjbGllbnRBZGRyZXNzIjoiMTAuNTMuMjU0LjE1MCIsImNsaWVudF9pZCI6ImV0Yy1jY2YtaW50In0.NiDKnMchNB4zqL9zOdq15G8y2BYGOyjk8n1xofB2WyxhVpbTXhXAgApS-4DCqczmdPt4sOwtt-FVVxcYku2gKcQQ1Leapb7CmHoUT_ak5ovOE8ZrD5Ryz6rfC_O1lO8Ut4M_J-KzMxj7WvUNYhkIqcHFSMwDdNC6xxc4ZYMOUI4bOif_Tiy7CxvMIpFGm1YS_jiGS2PGI8Y1o_1DApqMs88MxK9ItO-DIfQgKcR3wV6J-QZueaKVtih-kLma33TZc0jz7xG1EyOMJ5cC4r1Sxp877b9ut4JCmMaWOfWNf2tldLcpXTvV_BWg53YpwYOl4pvZdg3lFWEb009DofTQbQ"}getPatientInfo(){const W=jwtDecode(this.token);console.log(W);const O={patientId:W.access_info.professional_id,firstName:W.access_info.patient_given_name,lastName:W.access_info.patient_last_name,gender:W.access_info.patient_gender,birthdate:W.access_info.patient_birthdate};return Promise.resolve(O)}};GetPatientInfoBackendAdapter=__decorateClass$7([injectable()],GetPatientInfoBackendAdapter);var __defProp$6=Object.defineProperty,__getOwnPropDesc$6=Object.getOwnPropertyDescriptor,__decorateClass$6=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$6(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$6(O,U,Y),Y},__decorateParam=(W,O)=>(U,G)=>O(U,G,W);let GetPatientInfoHandler=class{constructor(W,O){this.api=W,this.backendAdapter=O}async handle(W){try{const O=await this.backendAdapter.getPatientInfo();return this.api.globalStateManager.setData("patientInfo",O),O}catch(O){this.api.interactionManager.notify({type:"error",message:O.message})}}};GetPatientInfoHandler=__decorateClass$6([__decorateParam(0,inject(TYPES.primaryApi)),__decorateParam(1,inject(GetPatientInfoBackendAdapter))],GetPatientInfoHandler);class GetPatientInfo{}const bootstrapGetPatientInfo=()=>{teardownGetPatientInfo(),registerRequest(shellApi,container)(GetPatientInfo,GetPatientInfoHandler),registerDep(GetPatientInfoBackendAdapter)},teardownGetPatientInfo=()=>{unregisterRequest(container)(GetPatientInfoHandler),unregisterDep(GetPatientInfoBackendAdapter)},bootstrapFeatures=W=>{container.bind(TYPES.primaryApi).toConstantValue(W),bootstrapGetUserInfo(),bootstrapGetPatientInfo()},initializeShell=async W=>{initializeLocalization(shellApi),p$6.registerAdapterFactory("primaria-content-switcher",d$4);const O=new PrimariaShell;W.appendChild(O),registerViews(),bootstrapFeatures(shellApi),shellApi.broker.send(new GetUserInfo),shellApi.broker.send(new GetPatientInfo)},registerViews=()=>{shellApi.regionManager.registerMainView({id:clinicalMonitoringId,factory:()=>{const W=new ClinicalMonitoring;return Promise.resolve(W)}},"Seguiment Clínic"),shellApi.regionManager.registerMenu({id:clinicalMonitoringId,factory:()=>{const W=new exports.PrimariaMenuItem("add_box","Seguiment clínic",()=>{shellApi.regionManager.activateView(shellRegions.main,"clinical-monitoring")});return Promise.resolve(W)}})},bootstrapPlugins=W=>d(W,primariaApiFactory),styles$4="*[hidden]{display:none!important}.container{display:flex;flex-direction:row;gap:8px;background:#dedede;padding:8px 12px}.container .breadcumb{display:flex;flex-direction:row;align-items:center}.container .breadcumb .label{color:#000}.container .breadcumb:hover{font-weight:700}.container .breadcumb:hover .label{color:var(--color-primary-500)}.container .breadcumb[selected]{pointer-events:none}.container .breadcumb[selected] .label{font-weight:700;color:var(--color-primary-500)}";/**
8603
+ `+W+" - "+U}else return" "+W}function getFunctionName(W){if(W.name)return W.name;var O=W.toString(),U=O.match(/^function\s*([^\s(]+)/);return U?U[1]:"Anonymous function: "+O}function getSymbolDescription(W){return W.toString().slice(7,-1)}var Context=function(){function W(O){this.id=id(),this.container=O}return W.prototype.addPlan=function(O){this.plan=O},W.prototype.setCurrentRequest=function(O){this.currentRequest=O},W}(),Metadata=function(){function W(O,U){this.key=O,this.value=U}return W.prototype.toString=function(){return this.key===NAMED_TAG?"named: "+String(this.value).toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+String(this.value)+" }"},W}(),Plan=function(){function W(O,U){this.parentContext=O,this.rootRequest=U}return W}(),LazyServiceIdentifier=function(){function W(O){this._cb=O}return W.prototype.unwrap=function(){return this._cb()},W}(),QueryableString=function(){function W(O){this.str=O}return W.prototype.startsWith=function(O){return this.str.indexOf(O)===0},W.prototype.endsWith=function(O){var U="",G=O.split("").reverse().join("");return U=this.str.split("").reverse().join(""),this.startsWith.call({str:U},G)},W.prototype.contains=function(O){return this.str.indexOf(O)!==-1},W.prototype.equals=function(O){return this.str===O},W.prototype.value=function(){return this.str},W}(),Target=function(){function W(O,U,G,Y){this.id=id(),this.type=O,this.serviceIdentifier=G;var K=typeof U=="symbol"?getSymbolDescription(U):U;this.name=new QueryableString(K||""),this.identifier=U,this.metadata=new Array;var J=null;typeof Y=="string"?J=new Metadata(NAMED_TAG,Y):Y instanceof Metadata&&(J=Y),J!==null&&this.metadata.push(J)}return W.prototype.hasTag=function(O){for(var U=0,G=this.metadata;U<G.length;U++){var Y=G[U];if(Y.key===O)return!0}return!1},W.prototype.isArray=function(){return this.hasTag(MULTI_INJECT_TAG)},W.prototype.matchesArray=function(O){return this.matchesTag(MULTI_INJECT_TAG)(O)},W.prototype.isNamed=function(){return this.hasTag(NAMED_TAG)},W.prototype.isTagged=function(){return this.metadata.some(function(O){return NON_CUSTOM_TAG_KEYS.every(function(U){return O.key!==U})})},W.prototype.isOptional=function(){return this.matchesTag(OPTIONAL_TAG)(!0)},W.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(O){return O.key===NAMED_TAG})[0]:null},W.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(O){return NON_CUSTOM_TAG_KEYS.every(function(U){return O.key!==U})}):null},W.prototype.matchesNamedTag=function(O){return this.matchesTag(NAMED_TAG)(O)},W.prototype.matchesTag=function(O){var U=this;return function(G){for(var Y=0,K=U.metadata;Y<K.length;Y++){var J=K[Y];if(J.key===O&&J.value===G)return!0}return!1}},W}(),__spreadArray$2=function(W,O,U){if(U||arguments.length===2)for(var G=0,Y=O.length,K;G<Y;G++)(K||!(G in O))&&(K||(K=Array.prototype.slice.call(O,0,G)),K[G]=O[G]);return W.concat(K||Array.prototype.slice.call(O))};function getDependencies(W,O){var U=getFunctionName(O);return getTargets(W,U,O,!1)}function getTargets(W,O,U,G){var Y=W.getConstructorMetadata(U),K=Y.compilerGeneratedMetadata;if(K===void 0){var J=MISSING_INJECTABLE_ANNOTATION+" "+O+".";throw new Error(J)}var X=Y.userGeneratedMetadata,se=Object.keys(X),ee=U.length===0&&se.length>0,ne=se.length>U.length,Q=ee||ne?se.length:U.length,te=getConstructorArgsAsTargets(G,O,K,X,Q),ie=getClassPropsAsTargets(W,U,O),le=__spreadArray$2(__spreadArray$2([],te,!0),ie,!0);return le}function getConstructorArgsAsTarget(W,O,U,G,Y){var K=Y[W.toString()]||[],J=formatTargetMetadata(K),X=J.unmanaged!==!0,se=G[W],ee=J.inject||J.multiInject;if(se=ee||se,se instanceof LazyServiceIdentifier&&(se=se.unwrap()),X){var ne=se===Object,Q=se===Function,te=se===void 0,ie=ne||Q||te;if(!O&&ie){var le=MISSING_INJECT_ANNOTATION+" argument "+W+" in class "+U+".";throw new Error(le)}var oe=new Target(TargetTypeEnum.ConstructorArgument,J.targetName,se);return oe.metadata=K,oe}return null}function getConstructorArgsAsTargets(W,O,U,G,Y){for(var K=[],J=0;J<Y;J++){var X=J,se=getConstructorArgsAsTarget(X,W,O,U,G);se!==null&&K.push(se)}return K}function _getServiceIdentifierForProperty(W,O,U,G){var Y=W||O;if(Y===void 0){var K=MISSING_INJECTABLE_ANNOTATION+" for property "+String(U)+" in class "+G+".";throw new Error(K)}return Y}function getClassPropsAsTargets(W,O,U){for(var G=W.getPropertiesMetadata(O),Y=[],K=Object.getOwnPropertySymbols(G),J=Object.keys(G),X=J.concat(K),se=0,ee=X;se<ee.length;se++){var ne=ee[se],Q=G[ne],te=formatTargetMetadata(Q),ie=te.targetName||ne,le=_getServiceIdentifierForProperty(te.inject,te.multiInject,ne,U),oe=new Target(TargetTypeEnum.ClassProperty,ie,le);oe.metadata=Q,Y.push(oe)}var re=Object.getPrototypeOf(O.prototype).constructor;if(re!==Object){var ae=getClassPropsAsTargets(W,re,U);Y=__spreadArray$2(__spreadArray$2([],Y,!0),ae,!0)}return Y}function getBaseClassDependencyCount(W,O){var U=Object.getPrototypeOf(O.prototype).constructor;if(U!==Object){var G=getFunctionName(U),Y=getTargets(W,G,U,!0),K=Y.map(function(se){return se.metadata.filter(function(ee){return ee.key===UNMANAGED_TAG})}),J=[].concat.apply([],K).length,X=Y.length-J;return X>0?X:getBaseClassDependencyCount(W,U)}else return 0}function formatTargetMetadata(W){var O={};return W.forEach(function(U){O[U.key.toString()]=U.value}),{inject:O[INJECT_TAG],multiInject:O[MULTI_INJECT_TAG],targetName:O[NAME_TAG],unmanaged:O[UNMANAGED_TAG]}}var Request$1=function(){function W(O,U,G,Y,K){this.id=id(),this.serviceIdentifier=O,this.parentContext=U,this.parentRequest=G,this.target=K,this.childRequests=[],this.bindings=Array.isArray(Y)?Y:[Y],this.requestScope=G===null?new Map:null}return W.prototype.addChildRequest=function(O,U,G){var Y=new W(O,this.parentContext,this,U,G);return this.childRequests.push(Y),Y},W}();function getBindingDictionary(W){return W._bindingDictionary}function _createTarget(W,O,U,G,Y,K){var J=W?MULTI_INJECT_TAG:INJECT_TAG,X=new Metadata(J,U),se=new Target(O,G,U,X);if(Y!==void 0){var ee=new Metadata(Y,K);se.metadata.push(ee)}return se}function _getActiveBindings(W,O,U,G,Y){var K=getBindings(U.container,Y.serviceIdentifier),J=[];return K.length===BindingCount.NoBindingsAvailable&&U.container.options.autoBindInjectable&&typeof Y.serviceIdentifier=="function"&&W.getConstructorMetadata(Y.serviceIdentifier).compilerGeneratedMetadata&&(U.container.bind(Y.serviceIdentifier).toSelf(),K=getBindings(U.container,Y.serviceIdentifier)),O?J=K:J=K.filter(function(X){var se=new Request$1(X.serviceIdentifier,U,G,X,Y);return X.constraint(se)}),_validateActiveBindingCount(Y.serviceIdentifier,J,Y,U.container),J}function _validateActiveBindingCount(W,O,U,G){switch(O.length){case BindingCount.NoBindingsAvailable:if(U.isOptional())return O;var Y=getServiceIdentifierAsString(W),K=NOT_REGISTERED;throw K+=listMetadataForTarget(Y,U),K+=listRegisteredBindingsForServiceIdentifier(G,Y,getBindings),new Error(K);case BindingCount.OnlyOneBindingAvailable:return O;case BindingCount.MultipleBindingsAvailable:default:if(U.isArray())return O;var Y=getServiceIdentifierAsString(W),K=AMBIGUOUS_MATCH+" "+Y;throw K+=listRegisteredBindingsForServiceIdentifier(G,Y,getBindings),new Error(K)}}function _createSubRequests(W,O,U,G,Y,K){var J,X;if(Y===null){J=_getActiveBindings(W,O,G,null,K),X=new Request$1(U,G,null,J,K);var se=new Plan(G,X);G.addPlan(se)}else J=_getActiveBindings(W,O,G,Y,K),X=Y.addChildRequest(K.serviceIdentifier,J,K);J.forEach(function(ee){var ne=null;if(K.isArray())ne=X.addChildRequest(ee.serviceIdentifier,ee,K);else{if(ee.cache)return;ne=X}if(ee.type===BindingTypeEnum.Instance&&ee.implementationType!==null){var Q=getDependencies(W,ee.implementationType);if(!G.container.options.skipBaseClassChecks){var te=getBaseClassDependencyCount(W,ee.implementationType);if(Q.length<te){var ie=ARGUMENTS_LENGTH_MISMATCH(getFunctionName(ee.implementationType));throw new Error(ie)}}Q.forEach(function(le){_createSubRequests(W,!1,le.serviceIdentifier,G,ne,le)})}})}function getBindings(W,O){var U=[],G=getBindingDictionary(W);return G.hasKey(O)?U=G.get(O):W.parent!==null&&(U=getBindings(W.parent,O)),U}function plan(W,O,U,G,Y,K,J,X){X===void 0&&(X=!1);var se=new Context(O),ee=_createTarget(U,G,Y,"",K,J);try{return _createSubRequests(W,X,Y,se,null,ee),se}catch(ne){throw isStackOverflowExeption(ne)&&circularDependencyToException(se.plan.rootRequest),ne}}function createMockRequest(W,O,U,G){var Y=new Target(TargetTypeEnum.Variable,"",O,new Metadata(U,G)),K=new Context(W),J=new Request$1(O,K,null,[],Y);return J}function isPromise(W){var O=typeof W=="object"&&W!==null||typeof W=="function";return O&&typeof W.then=="function"}function isPromiseOrContainsPromise(W){return isPromise(W)?!0:Array.isArray(W)&&W.some(isPromise)}var __awaiter$3=function(W,O,U,G){function Y(K){return K instanceof U?K:new U(function(J){J(K)})}return new(U||(U=Promise))(function(K,J){function X(ne){try{ee(G.next(ne))}catch(Q){J(Q)}}function se(ne){try{ee(G.throw(ne))}catch(Q){J(Q)}}function ee(ne){ne.done?K(ne.value):Y(ne.value).then(X,se)}ee((G=G.apply(W,O||[])).next())})},__generator$3=function(W,O){var U={label:0,sent:function(){if(K[0]&1)throw K[1];return K[1]},trys:[],ops:[]},G,Y,K,J;return J={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function X(ee){return function(ne){return se([ee,ne])}}function se(ee){if(G)throw new TypeError("Generator is already executing.");for(;U;)try{if(G=1,Y&&(K=ee[0]&2?Y.return:ee[0]?Y.throw||((K=Y.return)&&K.call(Y),0):Y.next)&&!(K=K.call(Y,ee[1])).done)return K;switch(Y=0,K&&(ee=[ee[0]&2,K.value]),ee[0]){case 0:case 1:K=ee;break;case 4:return U.label++,{value:ee[1],done:!1};case 5:U.label++,Y=ee[1],ee=[0];continue;case 7:ee=U.ops.pop(),U.trys.pop();continue;default:if(K=U.trys,!(K=K.length>0&&K[K.length-1])&&(ee[0]===6||ee[0]===2)){U=0;continue}if(ee[0]===3&&(!K||ee[1]>K[0]&&ee[1]<K[3])){U.label=ee[1];break}if(ee[0]===6&&U.label<K[1]){U.label=K[1],K=ee;break}if(K&&U.label<K[2]){U.label=K[2],U.ops.push(ee);break}K[2]&&U.ops.pop(),U.trys.pop();continue}ee=O.call(W,U)}catch(ne){ee=[6,ne],Y=0}finally{G=K=0}if(ee[0]&5)throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}},tryGetFromScope=function(W,O){return O.scope===BindingScopeEnum.Singleton&&O.activated?O.cache:O.scope===BindingScopeEnum.Request&&W.has(O.id)?W.get(O.id):null},saveToScope=function(W,O,U){O.scope===BindingScopeEnum.Singleton&&_saveToSingletonScope(O,U),O.scope===BindingScopeEnum.Request&&_saveToRequestScope(W,O,U)},_saveToRequestScope=function(W,O,U){W.has(O.id)||W.set(O.id,U)},_saveToSingletonScope=function(W,O){W.cache=O,W.activated=!0,isPromise(O)&&_saveAsyncResultToSingletonScope(W,O)},_saveAsyncResultToSingletonScope=function(W,O){return __awaiter$3(void 0,void 0,void 0,function(){var U,G;return __generator$3(this,function(Y){switch(Y.label){case 0:return Y.trys.push([0,2,,3]),[4,O];case 1:return U=Y.sent(),W.cache=U,[3,3];case 2:throw G=Y.sent(),W.cache=null,W.activated=!1,G;case 3:return[2]}})})},FactoryType;(function(W){W.DynamicValue="toDynamicValue",W.Factory="toFactory",W.Provider="toProvider"})(FactoryType||(FactoryType={}));var ensureFullyBound=function(W){var O=null;switch(W.type){case BindingTypeEnum.ConstantValue:case BindingTypeEnum.Function:O=W.cache;break;case BindingTypeEnum.Constructor:case BindingTypeEnum.Instance:O=W.implementationType;break;case BindingTypeEnum.DynamicValue:O=W.dynamicValue;break;case BindingTypeEnum.Provider:O=W.provider;break;case BindingTypeEnum.Factory:O=W.factory;break}if(O===null){var U=getServiceIdentifierAsString(W.serviceIdentifier);throw new Error(INVALID_BINDING_TYPE+" "+U)}},getFactoryDetails=function(W){switch(W.type){case BindingTypeEnum.Factory:return{factory:W.factory,factoryType:FactoryType.Factory};case BindingTypeEnum.Provider:return{factory:W.provider,factoryType:FactoryType.Provider};case BindingTypeEnum.DynamicValue:return{factory:W.dynamicValue,factoryType:FactoryType.DynamicValue};default:throw new Error("Unexpected factory type "+W.type)}},__assign$1=function(){return __assign$1=Object.assign||function(W){for(var O,U=1,G=arguments.length;U<G;U++){O=arguments[U];for(var Y in O)Object.prototype.hasOwnProperty.call(O,Y)&&(W[Y]=O[Y])}return W},__assign$1.apply(this,arguments)},__awaiter$2=function(W,O,U,G){function Y(K){return K instanceof U?K:new U(function(J){J(K)})}return new(U||(U=Promise))(function(K,J){function X(ne){try{ee(G.next(ne))}catch(Q){J(Q)}}function se(ne){try{ee(G.throw(ne))}catch(Q){J(Q)}}function ee(ne){ne.done?K(ne.value):Y(ne.value).then(X,se)}ee((G=G.apply(W,O||[])).next())})},__generator$2=function(W,O){var U={label:0,sent:function(){if(K[0]&1)throw K[1];return K[1]},trys:[],ops:[]},G,Y,K,J;return J={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function X(ee){return function(ne){return se([ee,ne])}}function se(ee){if(G)throw new TypeError("Generator is already executing.");for(;U;)try{if(G=1,Y&&(K=ee[0]&2?Y.return:ee[0]?Y.throw||((K=Y.return)&&K.call(Y),0):Y.next)&&!(K=K.call(Y,ee[1])).done)return K;switch(Y=0,K&&(ee=[ee[0]&2,K.value]),ee[0]){case 0:case 1:K=ee;break;case 4:return U.label++,{value:ee[1],done:!1};case 5:U.label++,Y=ee[1],ee=[0];continue;case 7:ee=U.ops.pop(),U.trys.pop();continue;default:if(K=U.trys,!(K=K.length>0&&K[K.length-1])&&(ee[0]===6||ee[0]===2)){U=0;continue}if(ee[0]===3&&(!K||ee[1]>K[0]&&ee[1]<K[3])){U.label=ee[1];break}if(ee[0]===6&&U.label<K[1]){U.label=K[1],K=ee;break}if(K&&U.label<K[2]){U.label=K[2],U.ops.push(ee);break}K[2]&&U.ops.pop(),U.trys.pop();continue}ee=O.call(W,U)}catch(ne){ee=[6,ne],Y=0}finally{G=K=0}if(ee[0]&5)throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}},__spreadArray$1=function(W,O,U){if(U||arguments.length===2)for(var G=0,Y=O.length,K;G<Y;G++)(K||!(G in O))&&(K||(K=Array.prototype.slice.call(O,0,G)),K[G]=O[G]);return W.concat(K||Array.prototype.slice.call(O))};function _resolveRequests(W,O){return W.reduce(function(U,G){var Y=O(G),K=G.target.type;return K===TargetTypeEnum.ConstructorArgument?U.constructorInjections.push(Y):(U.propertyRequests.push(G),U.propertyInjections.push(Y)),U.isAsync||(U.isAsync=isPromiseOrContainsPromise(Y)),U},{constructorInjections:[],propertyInjections:[],propertyRequests:[],isAsync:!1})}function _createInstance(W,O,U){var G;if(O.length>0){var Y=_resolveRequests(O,U),K=__assign$1(__assign$1({},Y),{constr:W});Y.isAsync?G=createInstanceWithInjectionsAsync(K):G=createInstanceWithInjections(K)}else G=new W;return G}function createInstanceWithInjections(W){var O,U=new((O=W.constr).bind.apply(O,__spreadArray$1([void 0],W.constructorInjections,!1)));return W.propertyRequests.forEach(function(G,Y){var K=G.target.identifier,J=W.propertyInjections[Y];(!G.target.isOptional()||J!==void 0)&&(U[K]=J)}),U}function createInstanceWithInjectionsAsync(W){return __awaiter$2(this,void 0,void 0,function(){var O,U;return __generator$2(this,function(G){switch(G.label){case 0:return[4,possiblyWaitInjections(W.constructorInjections)];case 1:return O=G.sent(),[4,possiblyWaitInjections(W.propertyInjections)];case 2:return U=G.sent(),[2,createInstanceWithInjections(__assign$1(__assign$1({},W),{constructorInjections:O,propertyInjections:U}))]}})})}function possiblyWaitInjections(W){return __awaiter$2(this,void 0,void 0,function(){var O,U,G,Y;return __generator$2(this,function(K){for(O=[],U=0,G=W;U<G.length;U++)Y=G[U],Array.isArray(Y)?O.push(Promise.all(Y)):O.push(Y);return[2,Promise.all(O)]})})}function _getInstanceAfterPostConstruct(W,O){var U=_postConstruct(W,O);return isPromise(U)?U.then(function(){return O}):O}function _postConstruct(W,O){var U,G;if(Reflect.hasMetadata(POST_CONSTRUCT,W)){var Y=Reflect.getMetadata(POST_CONSTRUCT,W);try{return(G=(U=O)[Y.value])===null||G===void 0?void 0:G.call(U)}catch(K){if(K instanceof Error)throw new Error(POST_CONSTRUCT_ERROR(W.name,K.message))}}}function _validateInstanceResolution(W,O){W.scope!==BindingScopeEnum.Singleton&&_throwIfHandlingDeactivation(W,O)}function _throwIfHandlingDeactivation(W,O){var U="Class cannot be instantiated in "+(W.scope===BindingScopeEnum.Request?"request":"transient")+" scope.";if(typeof W.onDeactivation=="function")throw new Error(ON_DEACTIVATION_ERROR(O.name,U));if(Reflect.hasMetadata(PRE_DESTROY,O))throw new Error(PRE_DESTROY_ERROR(O.name,U))}function resolveInstance(W,O,U,G){_validateInstanceResolution(W,O);var Y=_createInstance(O,U,G);return isPromise(Y)?Y.then(function(K){return _getInstanceAfterPostConstruct(O,K)}):_getInstanceAfterPostConstruct(O,Y)}var __awaiter$1=function(W,O,U,G){function Y(K){return K instanceof U?K:new U(function(J){J(K)})}return new(U||(U=Promise))(function(K,J){function X(ne){try{ee(G.next(ne))}catch(Q){J(Q)}}function se(ne){try{ee(G.throw(ne))}catch(Q){J(Q)}}function ee(ne){ne.done?K(ne.value):Y(ne.value).then(X,se)}ee((G=G.apply(W,O||[])).next())})},__generator$1=function(W,O){var U={label:0,sent:function(){if(K[0]&1)throw K[1];return K[1]},trys:[],ops:[]},G,Y,K,J;return J={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function X(ee){return function(ne){return se([ee,ne])}}function se(ee){if(G)throw new TypeError("Generator is already executing.");for(;U;)try{if(G=1,Y&&(K=ee[0]&2?Y.return:ee[0]?Y.throw||((K=Y.return)&&K.call(Y),0):Y.next)&&!(K=K.call(Y,ee[1])).done)return K;switch(Y=0,K&&(ee=[ee[0]&2,K.value]),ee[0]){case 0:case 1:K=ee;break;case 4:return U.label++,{value:ee[1],done:!1};case 5:U.label++,Y=ee[1],ee=[0];continue;case 7:ee=U.ops.pop(),U.trys.pop();continue;default:if(K=U.trys,!(K=K.length>0&&K[K.length-1])&&(ee[0]===6||ee[0]===2)){U=0;continue}if(ee[0]===3&&(!K||ee[1]>K[0]&&ee[1]<K[3])){U.label=ee[1];break}if(ee[0]===6&&U.label<K[1]){U.label=K[1],K=ee;break}if(K&&U.label<K[2]){U.label=K[2],U.ops.push(ee);break}K[2]&&U.ops.pop(),U.trys.pop();continue}ee=O.call(W,U)}catch(ne){ee=[6,ne],Y=0}finally{G=K=0}if(ee[0]&5)throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}},_resolveRequest=function(W){return function(O){O.parentContext.setCurrentRequest(O);var U=O.bindings,G=O.childRequests,Y=O.target&&O.target.isArray(),K=!O.parentRequest||!O.parentRequest.target||!O.target||!O.parentRequest.target.matchesArray(O.target.serviceIdentifier);if(Y&&K)return G.map(function(X){var se=_resolveRequest(W);return se(X)});if(O.target.isOptional()&&U.length===0)return;var J=U[0];return _resolveBinding(W,O,J)}},_resolveFactoryFromBinding=function(W,O){var U=getFactoryDetails(W);return tryAndThrowErrorIfStackOverflow(function(){return U.factory.bind(W)(O)},function(){return new Error(CIRCULAR_DEPENDENCY_IN_FACTORY(U.factoryType,O.currentRequest.serviceIdentifier.toString()))})},_getResolvedFromBinding=function(W,O,U){var G,Y=O.childRequests;switch(ensureFullyBound(U),U.type){case BindingTypeEnum.ConstantValue:case BindingTypeEnum.Function:G=U.cache;break;case BindingTypeEnum.Constructor:G=U.implementationType;break;case BindingTypeEnum.Instance:G=resolveInstance(U,U.implementationType,Y,_resolveRequest(W));break;default:G=_resolveFactoryFromBinding(U,O.parentContext)}return G},_resolveInScope=function(W,O,U){var G=tryGetFromScope(W,O);return G!==null||(G=U(),saveToScope(W,O,G)),G},_resolveBinding=function(W,O,U){return _resolveInScope(W,U,function(){var G=_getResolvedFromBinding(W,O,U);return isPromise(G)?G=G.then(function(Y){return _onActivation(O,U,Y)}):G=_onActivation(O,U,G),G})};function _onActivation(W,O,U){var G=_bindingActivation(W.parentContext,O,U),Y=_getContainersIterator(W.parentContext.container),K,J=Y.next();do{K=J.value;var X=W.parentContext,se=W.serviceIdentifier,ee=_getContainerActivationsForService(K,se);isPromise(G)?G=_activateContainerAsync(ee,X,G):G=_activateContainer(ee,X,G),J=Y.next()}while(J.done!==!0&&!getBindingDictionary(K).hasKey(W.serviceIdentifier));return G}var _bindingActivation=function(W,O,U){var G;return typeof O.onActivation=="function"?G=O.onActivation(W,U):G=U,G},_activateContainer=function(W,O,U){for(var G=W.next();!G.done;){if(U=G.value(O,U),isPromise(U))return _activateContainerAsync(W,O,U);G=W.next()}return U},_activateContainerAsync=function(W,O,U){return __awaiter$1(void 0,void 0,void 0,function(){var G,Y;return __generator$1(this,function(K){switch(K.label){case 0:return[4,U];case 1:G=K.sent(),Y=W.next(),K.label=2;case 2:return Y.done?[3,4]:[4,Y.value(O,G)];case 3:return G=K.sent(),Y=W.next(),[3,2];case 4:return[2,G]}})})},_getContainerActivationsForService=function(W,O){var U=W._activations;return U.hasKey(O)?U.get(O).values():[].values()},_getContainersIterator=function(W){for(var O=[W],U=W.parent;U!==null;)O.push(U),U=U.parent;var G=function(){var K=O.pop();return K!==void 0?{done:!1,value:K}:{done:!0,value:void 0}},Y={next:G};return Y};function resolve(W){var O=_resolveRequest(W.plan.rootRequest.requestScope);return O(W.plan.rootRequest)}var traverseAncerstors=function(W,O){var U=W.parentRequest;return U!==null?O(U)?!0:traverseAncerstors(U,O):!1},taggedConstraint=function(W){return function(O){var U=function(G){return G!==null&&G.target!==null&&G.target.matchesTag(W)(O)};return U.metaData=new Metadata(W,O),U}},namedConstraint=taggedConstraint(NAMED_TAG),typeConstraint=function(W){return function(O){var U=null;if(O!==null)if(U=O.bindings[0],typeof W=="string"){var G=U.serviceIdentifier;return G===W}else{var Y=O.bindings[0].implementationType;return W===Y}return!1}},BindingWhenSyntax=function(){function W(O){this._binding=O}return W.prototype.when=function(O){return this._binding.constraint=O,new BindingOnSyntax(this._binding)},W.prototype.whenTargetNamed=function(O){return this._binding.constraint=namedConstraint(O),new BindingOnSyntax(this._binding)},W.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(O){if(O===null)return!1;var U=O.target!==null&&!O.target.isNamed()&&!O.target.isTagged();return U},new BindingOnSyntax(this._binding)},W.prototype.whenTargetTagged=function(O,U){return this._binding.constraint=taggedConstraint(O)(U),new BindingOnSyntax(this._binding)},W.prototype.whenInjectedInto=function(O){return this._binding.constraint=function(U){return U!==null&&typeConstraint(O)(U.parentRequest)},new BindingOnSyntax(this._binding)},W.prototype.whenParentNamed=function(O){return this._binding.constraint=function(U){return U!==null&&namedConstraint(O)(U.parentRequest)},new BindingOnSyntax(this._binding)},W.prototype.whenParentTagged=function(O,U){return this._binding.constraint=function(G){return G!==null&&taggedConstraint(O)(U)(G.parentRequest)},new BindingOnSyntax(this._binding)},W.prototype.whenAnyAncestorIs=function(O){return this._binding.constraint=function(U){return U!==null&&traverseAncerstors(U,typeConstraint(O))},new BindingOnSyntax(this._binding)},W.prototype.whenNoAncestorIs=function(O){return this._binding.constraint=function(U){return U!==null&&!traverseAncerstors(U,typeConstraint(O))},new BindingOnSyntax(this._binding)},W.prototype.whenAnyAncestorNamed=function(O){return this._binding.constraint=function(U){return U!==null&&traverseAncerstors(U,namedConstraint(O))},new BindingOnSyntax(this._binding)},W.prototype.whenNoAncestorNamed=function(O){return this._binding.constraint=function(U){return U!==null&&!traverseAncerstors(U,namedConstraint(O))},new BindingOnSyntax(this._binding)},W.prototype.whenAnyAncestorTagged=function(O,U){return this._binding.constraint=function(G){return G!==null&&traverseAncerstors(G,taggedConstraint(O)(U))},new BindingOnSyntax(this._binding)},W.prototype.whenNoAncestorTagged=function(O,U){return this._binding.constraint=function(G){return G!==null&&!traverseAncerstors(G,taggedConstraint(O)(U))},new BindingOnSyntax(this._binding)},W.prototype.whenAnyAncestorMatches=function(O){return this._binding.constraint=function(U){return U!==null&&traverseAncerstors(U,O)},new BindingOnSyntax(this._binding)},W.prototype.whenNoAncestorMatches=function(O){return this._binding.constraint=function(U){return U!==null&&!traverseAncerstors(U,O)},new BindingOnSyntax(this._binding)},W}(),BindingOnSyntax=function(){function W(O){this._binding=O}return W.prototype.onActivation=function(O){return this._binding.onActivation=O,new BindingWhenSyntax(this._binding)},W.prototype.onDeactivation=function(O){return this._binding.onDeactivation=O,new BindingWhenSyntax(this._binding)},W}(),BindingWhenOnSyntax=function(){function W(O){this._binding=O,this._bindingWhenSyntax=new BindingWhenSyntax(this._binding),this._bindingOnSyntax=new BindingOnSyntax(this._binding)}return W.prototype.when=function(O){return this._bindingWhenSyntax.when(O)},W.prototype.whenTargetNamed=function(O){return this._bindingWhenSyntax.whenTargetNamed(O)},W.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},W.prototype.whenTargetTagged=function(O,U){return this._bindingWhenSyntax.whenTargetTagged(O,U)},W.prototype.whenInjectedInto=function(O){return this._bindingWhenSyntax.whenInjectedInto(O)},W.prototype.whenParentNamed=function(O){return this._bindingWhenSyntax.whenParentNamed(O)},W.prototype.whenParentTagged=function(O,U){return this._bindingWhenSyntax.whenParentTagged(O,U)},W.prototype.whenAnyAncestorIs=function(O){return this._bindingWhenSyntax.whenAnyAncestorIs(O)},W.prototype.whenNoAncestorIs=function(O){return this._bindingWhenSyntax.whenNoAncestorIs(O)},W.prototype.whenAnyAncestorNamed=function(O){return this._bindingWhenSyntax.whenAnyAncestorNamed(O)},W.prototype.whenAnyAncestorTagged=function(O,U){return this._bindingWhenSyntax.whenAnyAncestorTagged(O,U)},W.prototype.whenNoAncestorNamed=function(O){return this._bindingWhenSyntax.whenNoAncestorNamed(O)},W.prototype.whenNoAncestorTagged=function(O,U){return this._bindingWhenSyntax.whenNoAncestorTagged(O,U)},W.prototype.whenAnyAncestorMatches=function(O){return this._bindingWhenSyntax.whenAnyAncestorMatches(O)},W.prototype.whenNoAncestorMatches=function(O){return this._bindingWhenSyntax.whenNoAncestorMatches(O)},W.prototype.onActivation=function(O){return this._bindingOnSyntax.onActivation(O)},W.prototype.onDeactivation=function(O){return this._bindingOnSyntax.onDeactivation(O)},W}(),BindingInSyntax=function(){function W(O){this._binding=O}return W.prototype.inRequestScope=function(){return this._binding.scope=BindingScopeEnum.Request,new BindingWhenOnSyntax(this._binding)},W.prototype.inSingletonScope=function(){return this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},W.prototype.inTransientScope=function(){return this._binding.scope=BindingScopeEnum.Transient,new BindingWhenOnSyntax(this._binding)},W}(),BindingInWhenOnSyntax=function(){function W(O){this._binding=O,this._bindingWhenSyntax=new BindingWhenSyntax(this._binding),this._bindingOnSyntax=new BindingOnSyntax(this._binding),this._bindingInSyntax=new BindingInSyntax(O)}return W.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},W.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},W.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},W.prototype.when=function(O){return this._bindingWhenSyntax.when(O)},W.prototype.whenTargetNamed=function(O){return this._bindingWhenSyntax.whenTargetNamed(O)},W.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},W.prototype.whenTargetTagged=function(O,U){return this._bindingWhenSyntax.whenTargetTagged(O,U)},W.prototype.whenInjectedInto=function(O){return this._bindingWhenSyntax.whenInjectedInto(O)},W.prototype.whenParentNamed=function(O){return this._bindingWhenSyntax.whenParentNamed(O)},W.prototype.whenParentTagged=function(O,U){return this._bindingWhenSyntax.whenParentTagged(O,U)},W.prototype.whenAnyAncestorIs=function(O){return this._bindingWhenSyntax.whenAnyAncestorIs(O)},W.prototype.whenNoAncestorIs=function(O){return this._bindingWhenSyntax.whenNoAncestorIs(O)},W.prototype.whenAnyAncestorNamed=function(O){return this._bindingWhenSyntax.whenAnyAncestorNamed(O)},W.prototype.whenAnyAncestorTagged=function(O,U){return this._bindingWhenSyntax.whenAnyAncestorTagged(O,U)},W.prototype.whenNoAncestorNamed=function(O){return this._bindingWhenSyntax.whenNoAncestorNamed(O)},W.prototype.whenNoAncestorTagged=function(O,U){return this._bindingWhenSyntax.whenNoAncestorTagged(O,U)},W.prototype.whenAnyAncestorMatches=function(O){return this._bindingWhenSyntax.whenAnyAncestorMatches(O)},W.prototype.whenNoAncestorMatches=function(O){return this._bindingWhenSyntax.whenNoAncestorMatches(O)},W.prototype.onActivation=function(O){return this._bindingOnSyntax.onActivation(O)},W.prototype.onDeactivation=function(O){return this._bindingOnSyntax.onDeactivation(O)},W}(),BindingToSyntax=function(){function W(O){this._binding=O}return W.prototype.to=function(O){return this._binding.type=BindingTypeEnum.Instance,this._binding.implementationType=O,new BindingInWhenOnSyntax(this._binding)},W.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+INVALID_TO_SELF_VALUE);var O=this._binding.serviceIdentifier;return this.to(O)},W.prototype.toConstantValue=function(O){return this._binding.type=BindingTypeEnum.ConstantValue,this._binding.cache=O,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},W.prototype.toDynamicValue=function(O){return this._binding.type=BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=O,this._binding.implementationType=null,new BindingInWhenOnSyntax(this._binding)},W.prototype.toConstructor=function(O){return this._binding.type=BindingTypeEnum.Constructor,this._binding.implementationType=O,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},W.prototype.toFactory=function(O){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=O,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},W.prototype.toFunction=function(O){if(typeof O!="function")throw new Error(INVALID_FUNCTION_BINDING);var U=this.toConstantValue(O);return this._binding.type=BindingTypeEnum.Function,this._binding.scope=BindingScopeEnum.Singleton,U},W.prototype.toAutoFactory=function(O){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=function(U){var G=function(){return U.container.get(O)};return G},this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},W.prototype.toAutoNamedFactory=function(O){return this._binding.type=BindingTypeEnum.Factory,this._binding.factory=function(U){return function(G){return U.container.getNamed(O,G)}},new BindingWhenOnSyntax(this._binding)},W.prototype.toProvider=function(O){return this._binding.type=BindingTypeEnum.Provider,this._binding.provider=O,this._binding.scope=BindingScopeEnum.Singleton,new BindingWhenOnSyntax(this._binding)},W.prototype.toService=function(O){this.toDynamicValue(function(U){return U.container.get(O)})},W}(),ContainerSnapshot=function(){function W(){}return W.of=function(O,U,G,Y,K){var J=new W;return J.bindings=O,J.middleware=U,J.deactivations=Y,J.activations=G,J.moduleActivationStore=K,J},W}();function isClonable(W){return typeof W=="object"&&W!==null&&"clone"in W&&typeof W.clone=="function"}var Lookup=function(){function W(){this._map=new Map}return W.prototype.getMap=function(){return this._map},W.prototype.add=function(O,U){if(O==null)throw new Error(NULL_ARGUMENT);if(U==null)throw new Error(NULL_ARGUMENT);var G=this._map.get(O);G!==void 0?G.push(U):this._map.set(O,[U])},W.prototype.get=function(O){if(O==null)throw new Error(NULL_ARGUMENT);var U=this._map.get(O);if(U!==void 0)return U;throw new Error(KEY_NOT_FOUND)},W.prototype.remove=function(O){if(O==null)throw new Error(NULL_ARGUMENT);if(!this._map.delete(O))throw new Error(KEY_NOT_FOUND)},W.prototype.removeIntersection=function(O){var U=this;this.traverse(function(G,Y){var K=O.hasKey(G)?O.get(G):void 0;if(K!==void 0){var J=Y.filter(function(X){return!K.some(function(se){return X===se})});U._setValue(G,J)}})},W.prototype.removeByCondition=function(O){var U=this,G=[];return this._map.forEach(function(Y,K){for(var J=[],X=0,se=Y;X<se.length;X++){var ee=se[X],ne=O(ee);ne?G.push(ee):J.push(ee)}U._setValue(K,J)}),G},W.prototype.hasKey=function(O){if(O==null)throw new Error(NULL_ARGUMENT);return this._map.has(O)},W.prototype.clone=function(){var O=new W;return this._map.forEach(function(U,G){U.forEach(function(Y){return O.add(G,isClonable(Y)?Y.clone():Y)})}),O},W.prototype.traverse=function(O){this._map.forEach(function(U,G){O(G,U)})},W.prototype._setValue=function(O,U){U.length>0?this._map.set(O,U):this._map.delete(O)},W}(),ModuleActivationStore=function(){function W(){this._map=new Map}return W.prototype.remove=function(O){if(this._map.has(O)){var U=this._map.get(O);return this._map.delete(O),U}return this._getEmptyHandlersStore()},W.prototype.addDeactivation=function(O,U,G){this._getModuleActivationHandlers(O).onDeactivations.add(U,G)},W.prototype.addActivation=function(O,U,G){this._getModuleActivationHandlers(O).onActivations.add(U,G)},W.prototype.clone=function(){var O=new W;return this._map.forEach(function(U,G){O._map.set(G,{onActivations:U.onActivations.clone(),onDeactivations:U.onDeactivations.clone()})}),O},W.prototype._getModuleActivationHandlers=function(O){var U=this._map.get(O);return U===void 0&&(U=this._getEmptyHandlersStore(),this._map.set(O,U)),U},W.prototype._getEmptyHandlersStore=function(){var O={onActivations:new Lookup,onDeactivations:new Lookup};return O},W}(),__assign=function(){return __assign=Object.assign||function(W){for(var O,U=1,G=arguments.length;U<G;U++){O=arguments[U];for(var Y in O)Object.prototype.hasOwnProperty.call(O,Y)&&(W[Y]=O[Y])}return W},__assign.apply(this,arguments)},__awaiter=function(W,O,U,G){function Y(K){return K instanceof U?K:new U(function(J){J(K)})}return new(U||(U=Promise))(function(K,J){function X(ne){try{ee(G.next(ne))}catch(Q){J(Q)}}function se(ne){try{ee(G.throw(ne))}catch(Q){J(Q)}}function ee(ne){ne.done?K(ne.value):Y(ne.value).then(X,se)}ee((G=G.apply(W,O||[])).next())})},__generator=function(W,O){var U={label:0,sent:function(){if(K[0]&1)throw K[1];return K[1]},trys:[],ops:[]},G,Y,K,J;return J={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function X(ee){return function(ne){return se([ee,ne])}}function se(ee){if(G)throw new TypeError("Generator is already executing.");for(;U;)try{if(G=1,Y&&(K=ee[0]&2?Y.return:ee[0]?Y.throw||((K=Y.return)&&K.call(Y),0):Y.next)&&!(K=K.call(Y,ee[1])).done)return K;switch(Y=0,K&&(ee=[ee[0]&2,K.value]),ee[0]){case 0:case 1:K=ee;break;case 4:return U.label++,{value:ee[1],done:!1};case 5:U.label++,Y=ee[1],ee=[0];continue;case 7:ee=U.ops.pop(),U.trys.pop();continue;default:if(K=U.trys,!(K=K.length>0&&K[K.length-1])&&(ee[0]===6||ee[0]===2)){U=0;continue}if(ee[0]===3&&(!K||ee[1]>K[0]&&ee[1]<K[3])){U.label=ee[1];break}if(ee[0]===6&&U.label<K[1]){U.label=K[1],K=ee;break}if(K&&U.label<K[2]){U.label=K[2],U.ops.push(ee);break}K[2]&&U.ops.pop(),U.trys.pop();continue}ee=O.call(W,U)}catch(ne){ee=[6,ne],Y=0}finally{G=K=0}if(ee[0]&5)throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}},__spreadArray=function(W,O,U){if(U||arguments.length===2)for(var G=0,Y=O.length,K;G<Y;G++)(K||!(G in O))&&(K||(K=Array.prototype.slice.call(O,0,G)),K[G]=O[G]);return W.concat(K||Array.prototype.slice.call(O))},Container=function(){function W(O){var U=O||{};if(typeof U!="object")throw new Error(""+CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(U.defaultScope===void 0)U.defaultScope=BindingScopeEnum.Transient;else if(U.defaultScope!==BindingScopeEnum.Singleton&&U.defaultScope!==BindingScopeEnum.Transient&&U.defaultScope!==BindingScopeEnum.Request)throw new Error(""+CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(U.autoBindInjectable===void 0)U.autoBindInjectable=!1;else if(typeof U.autoBindInjectable!="boolean")throw new Error(""+CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(U.skipBaseClassChecks===void 0)U.skipBaseClassChecks=!1;else if(typeof U.skipBaseClassChecks!="boolean")throw new Error(""+CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:U.autoBindInjectable,defaultScope:U.defaultScope,skipBaseClassChecks:U.skipBaseClassChecks},this.id=id(),this._bindingDictionary=new Lookup,this._snapshots=[],this._middleware=null,this._activations=new Lookup,this._deactivations=new Lookup,this.parent=null,this._metadataReader=new MetadataReader,this._moduleActivationStore=new ModuleActivationStore}return W.merge=function(O,U){for(var G=[],Y=2;Y<arguments.length;Y++)G[Y-2]=arguments[Y];var K=new W,J=__spreadArray([O,U],G,!0).map(function(ee){return getBindingDictionary(ee)}),X=getBindingDictionary(K);function se(ee,ne){ee.traverse(function(Q,te){te.forEach(function(ie){ne.add(ie.serviceIdentifier,ie.clone())})})}return J.forEach(function(ee){se(ee,X)}),K},W.prototype.load=function(){for(var O=[],U=0;U<arguments.length;U++)O[U]=arguments[U];for(var G=this._getContainerModuleHelpersFactory(),Y=0,K=O;Y<K.length;Y++){var J=K[Y],X=G(J.id);J.registry(X.bindFunction,X.unbindFunction,X.isboundFunction,X.rebindFunction,X.unbindAsyncFunction,X.onActivationFunction,X.onDeactivationFunction)}},W.prototype.loadAsync=function(){for(var O=[],U=0;U<arguments.length;U++)O[U]=arguments[U];return __awaiter(this,void 0,void 0,function(){var G,Y,K,J,X;return __generator(this,function(se){switch(se.label){case 0:G=this._getContainerModuleHelpersFactory(),Y=0,K=O,se.label=1;case 1:return Y<K.length?(J=K[Y],X=G(J.id),[4,J.registry(X.bindFunction,X.unbindFunction,X.isboundFunction,X.rebindFunction,X.unbindAsyncFunction,X.onActivationFunction,X.onDeactivationFunction)]):[3,4];case 2:se.sent(),se.label=3;case 3:return Y++,[3,1];case 4:return[2]}})})},W.prototype.unload=function(){for(var O=this,U=[],G=0;G<arguments.length;G++)U[G]=arguments[G];U.forEach(function(Y){var K=O._removeModuleBindings(Y.id);O._deactivateSingletons(K),O._removeModuleHandlers(Y.id)})},W.prototype.unloadAsync=function(){for(var O=[],U=0;U<arguments.length;U++)O[U]=arguments[U];return __awaiter(this,void 0,void 0,function(){var G,Y,K,J;return __generator(this,function(X){switch(X.label){case 0:G=0,Y=O,X.label=1;case 1:return G<Y.length?(K=Y[G],J=this._removeModuleBindings(K.id),[4,this._deactivateSingletonsAsync(J)]):[3,4];case 2:X.sent(),this._removeModuleHandlers(K.id),X.label=3;case 3:return G++,[3,1];case 4:return[2]}})})},W.prototype.bind=function(O){var U=this.options.defaultScope||BindingScopeEnum.Transient,G=new Binding(O,U);return this._bindingDictionary.add(O,G),new BindingToSyntax(G)},W.prototype.rebind=function(O){return this.unbind(O),this.bind(O)},W.prototype.rebindAsync=function(O){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(U){switch(U.label){case 0:return[4,this.unbindAsync(O)];case 1:return U.sent(),[2,this.bind(O)]}})})},W.prototype.unbind=function(O){if(this._bindingDictionary.hasKey(O)){var U=this._bindingDictionary.get(O);this._deactivateSingletons(U)}this._removeServiceFromDictionary(O)},W.prototype.unbindAsync=function(O){return __awaiter(this,void 0,void 0,function(){var U;return __generator(this,function(G){switch(G.label){case 0:return this._bindingDictionary.hasKey(O)?(U=this._bindingDictionary.get(O),[4,this._deactivateSingletonsAsync(U)]):[3,2];case 1:G.sent(),G.label=2;case 2:return this._removeServiceFromDictionary(O),[2]}})})},W.prototype.unbindAll=function(){var O=this;this._bindingDictionary.traverse(function(U,G){O._deactivateSingletons(G)}),this._bindingDictionary=new Lookup},W.prototype.unbindAllAsync=function(){return __awaiter(this,void 0,void 0,function(){var O,U=this;return __generator(this,function(G){switch(G.label){case 0:return O=[],this._bindingDictionary.traverse(function(Y,K){O.push(U._deactivateSingletonsAsync(K))}),[4,Promise.all(O)];case 1:return G.sent(),this._bindingDictionary=new Lookup,[2]}})})},W.prototype.onActivation=function(O,U){this._activations.add(O,U)},W.prototype.onDeactivation=function(O,U){this._deactivations.add(O,U)},W.prototype.isBound=function(O){var U=this._bindingDictionary.hasKey(O);return!U&&this.parent&&(U=this.parent.isBound(O)),U},W.prototype.isCurrentBound=function(O){return this._bindingDictionary.hasKey(O)},W.prototype.isBoundNamed=function(O,U){return this.isBoundTagged(O,NAMED_TAG,U)},W.prototype.isBoundTagged=function(O,U,G){var Y=!1;if(this._bindingDictionary.hasKey(O)){var K=this._bindingDictionary.get(O),J=createMockRequest(this,O,U,G);Y=K.some(function(X){return X.constraint(J)})}return!Y&&this.parent&&(Y=this.parent.isBoundTagged(O,U,G)),Y},W.prototype.snapshot=function(){this._snapshots.push(ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware,this._activations.clone(),this._deactivations.clone(),this._moduleActivationStore.clone()))},W.prototype.restore=function(){var O=this._snapshots.pop();if(O===void 0)throw new Error(NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=O.bindings,this._activations=O.activations,this._deactivations=O.deactivations,this._middleware=O.middleware,this._moduleActivationStore=O.moduleActivationStore},W.prototype.createChild=function(O){var U=new W(O||this.options);return U.parent=this,U},W.prototype.applyMiddleware=function(){for(var O=[],U=0;U<arguments.length;U++)O[U]=arguments[U];var G=this._middleware?this._middleware:this._planAndResolve();this._middleware=O.reduce(function(Y,K){return K(Y)},G)},W.prototype.applyCustomMetadataReader=function(O){this._metadataReader=O},W.prototype.get=function(O){var U=this._getNotAllArgs(O,!1);return this._getButThrowIfAsync(U)},W.prototype.getAsync=function(O){return __awaiter(this,void 0,void 0,function(){var U;return __generator(this,function(G){return U=this._getNotAllArgs(O,!1),[2,this._get(U)]})})},W.prototype.getTagged=function(O,U,G){var Y=this._getNotAllArgs(O,!1,U,G);return this._getButThrowIfAsync(Y)},W.prototype.getTaggedAsync=function(O,U,G){return __awaiter(this,void 0,void 0,function(){var Y;return __generator(this,function(K){return Y=this._getNotAllArgs(O,!1,U,G),[2,this._get(Y)]})})},W.prototype.getNamed=function(O,U){return this.getTagged(O,NAMED_TAG,U)},W.prototype.getNamedAsync=function(O,U){return this.getTaggedAsync(O,NAMED_TAG,U)},W.prototype.getAll=function(O){var U=this._getAllArgs(O);return this._getButThrowIfAsync(U)},W.prototype.getAllAsync=function(O){var U=this._getAllArgs(O);return this._getAll(U)},W.prototype.getAllTagged=function(O,U,G){var Y=this._getNotAllArgs(O,!0,U,G);return this._getButThrowIfAsync(Y)},W.prototype.getAllTaggedAsync=function(O,U,G){var Y=this._getNotAllArgs(O,!0,U,G);return this._getAll(Y)},W.prototype.getAllNamed=function(O,U){return this.getAllTagged(O,NAMED_TAG,U)},W.prototype.getAllNamedAsync=function(O,U){return this.getAllTaggedAsync(O,NAMED_TAG,U)},W.prototype.resolve=function(O){var U=this.isBound(O);U||this.bind(O).toSelf();var G=this.get(O);return U||this.unbind(O),G},W.prototype._preDestroy=function(O,U){var G,Y;if(Reflect.hasMetadata(PRE_DESTROY,O)){var K=Reflect.getMetadata(PRE_DESTROY,O);return(Y=(G=U)[K.value])===null||Y===void 0?void 0:Y.call(G)}},W.prototype._removeModuleHandlers=function(O){var U=this._moduleActivationStore.remove(O);this._activations.removeIntersection(U.onActivations),this._deactivations.removeIntersection(U.onDeactivations)},W.prototype._removeModuleBindings=function(O){return this._bindingDictionary.removeByCondition(function(U){return U.moduleId===O})},W.prototype._deactivate=function(O,U){var G=this,Y=Object.getPrototypeOf(U).constructor;try{if(this._deactivations.hasKey(O.serviceIdentifier)){var K=this._deactivateContainer(U,this._deactivations.get(O.serviceIdentifier).values());if(isPromise(K))return this._handleDeactivationError(K.then(function(){return G._propagateContainerDeactivationThenBindingAndPreDestroyAsync(O,U,Y)}),Y)}var J=this._propagateContainerDeactivationThenBindingAndPreDestroy(O,U,Y);if(isPromise(J))return this._handleDeactivationError(J,Y)}catch(X){if(X instanceof Error)throw new Error(ON_DEACTIVATION_ERROR(Y.name,X.message))}},W.prototype._handleDeactivationError=function(O,U){return __awaiter(this,void 0,void 0,function(){var G;return __generator(this,function(Y){switch(Y.label){case 0:return Y.trys.push([0,2,,3]),[4,O];case 1:return Y.sent(),[3,3];case 2:if(G=Y.sent(),G instanceof Error)throw new Error(ON_DEACTIVATION_ERROR(U.name,G.message));return[3,3];case 3:return[2]}})})},W.prototype._deactivateContainer=function(O,U){for(var G=this,Y=U.next();Y.value;){var K=Y.value(O);if(isPromise(K))return K.then(function(){return G._deactivateContainerAsync(O,U)});Y=U.next()}},W.prototype._deactivateContainerAsync=function(O,U){return __awaiter(this,void 0,void 0,function(){var G;return __generator(this,function(Y){switch(Y.label){case 0:G=U.next(),Y.label=1;case 1:return G.value?[4,G.value(O)]:[3,3];case 2:return Y.sent(),G=U.next(),[3,1];case 3:return[2]}})})},W.prototype._getContainerModuleHelpersFactory=function(){var O=this,U=function(ne,Q){ne._binding.moduleId=Q},G=function(ne){return function(Q){var te=O.bind(Q);return U(te,ne),te}},Y=function(){return function(ne){return O.unbind(ne)}},K=function(){return function(ne){return O.unbindAsync(ne)}},J=function(){return function(ne){return O.isBound(ne)}},X=function(ne){return function(Q){var te=O.rebind(Q);return U(te,ne),te}},se=function(ne){return function(Q,te){O._moduleActivationStore.addActivation(ne,Q,te),O.onActivation(Q,te)}},ee=function(ne){return function(Q,te){O._moduleActivationStore.addDeactivation(ne,Q,te),O.onDeactivation(Q,te)}};return function(ne){return{bindFunction:G(ne),isboundFunction:J(),onActivationFunction:se(ne),onDeactivationFunction:ee(ne),rebindFunction:X(ne),unbindFunction:Y(),unbindAsyncFunction:K()}}},W.prototype._getAll=function(O){return Promise.all(this._get(O))},W.prototype._get=function(O){var U=__assign(__assign({},O),{contextInterceptor:function(Y){return Y},targetType:TargetTypeEnum.Variable});if(this._middleware){var G=this._middleware(U);if(G==null)throw new Error(INVALID_MIDDLEWARE_RETURN);return G}return this._planAndResolve()(U)},W.prototype._getButThrowIfAsync=function(O){var U=this._get(O);if(isPromiseOrContainsPromise(U))throw new Error(LAZY_IN_SYNC(O.serviceIdentifier));return U},W.prototype._getAllArgs=function(O){var U={avoidConstraints:!0,isMultiInject:!0,serviceIdentifier:O};return U},W.prototype._getNotAllArgs=function(O,U,G,Y){var K={avoidConstraints:!1,isMultiInject:U,serviceIdentifier:O,key:G,value:Y};return K},W.prototype._planAndResolve=function(){var O=this;return function(U){var G=plan(O._metadataReader,O,U.isMultiInject,U.targetType,U.serviceIdentifier,U.key,U.value,U.avoidConstraints);G=U.contextInterceptor(G);var Y=resolve(G);return Y}},W.prototype._deactivateIfSingleton=function(O){var U=this;if(O.activated)return isPromise(O.cache)?O.cache.then(function(G){return U._deactivate(O,G)}):this._deactivate(O,O.cache)},W.prototype._deactivateSingletons=function(O){for(var U=0,G=O;U<G.length;U++){var Y=G[U],K=this._deactivateIfSingleton(Y);if(isPromise(K))throw new Error(ASYNC_UNBIND_REQUIRED)}},W.prototype._deactivateSingletonsAsync=function(O){return __awaiter(this,void 0,void 0,function(){var U=this;return __generator(this,function(G){switch(G.label){case 0:return[4,Promise.all(O.map(function(Y){return U._deactivateIfSingleton(Y)}))];case 1:return G.sent(),[2]}})})},W.prototype._propagateContainerDeactivationThenBindingAndPreDestroy=function(O,U,G){return this.parent?this._deactivate.bind(this.parent)(O,U):this._bindingDeactivationAndPreDestroy(O,U,G)},W.prototype._propagateContainerDeactivationThenBindingAndPreDestroyAsync=function(O,U,G){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(Y){switch(Y.label){case 0:return this.parent?[4,this._deactivate.bind(this.parent)(O,U)]:[3,2];case 1:return Y.sent(),[3,4];case 2:return[4,this._bindingDeactivationAndPreDestroyAsync(O,U,G)];case 3:Y.sent(),Y.label=4;case 4:return[2]}})})},W.prototype._removeServiceFromDictionary=function(O){try{this._bindingDictionary.remove(O)}catch{throw new Error(CANNOT_UNBIND+" "+getServiceIdentifierAsString(O))}},W.prototype._bindingDeactivationAndPreDestroy=function(O,U,G){var Y=this;if(typeof O.onDeactivation=="function"){var K=O.onDeactivation(U);if(isPromise(K))return K.then(function(){return Y._preDestroy(G,U)})}return this._preDestroy(G,U)},W.prototype._bindingDeactivationAndPreDestroyAsync=function(O,U,G){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(Y){switch(Y.label){case 0:return typeof O.onDeactivation!="function"?[3,2]:[4,O.onDeactivation(U)];case 1:Y.sent(),Y.label=2;case 2:return[4,this._preDestroy(G,U)];case 3:return Y.sent(),[2]}})})},W}();function getFirstArrayDuplicate(W){for(var O=new Set,U=0,G=W;U<G.length;U++){var Y=G[U];if(O.has(Y))return Y;O.add(Y)}}function targetIsConstructorFunction(W){return W.prototype!==void 0}function _throwIfMethodParameter(W){if(W!==void 0)throw new Error(INVALID_DECORATOR_OPERATION)}function tagParameter(W,O,U,G){_throwIfMethodParameter(O),_tagParameterOrProperty(TAGGED,W,U.toString(),G)}function tagProperty(W,O,U){if(targetIsConstructorFunction(W))throw new Error(INVALID_DECORATOR_OPERATION);_tagParameterOrProperty(TAGGED_PROP,W.constructor,O,U)}function _ensureNoMetadataKeyDuplicates(W){var O=[];if(Array.isArray(W)){O=W;var U=getFirstArrayDuplicate(O.map(function(G){return G.key}));if(U!==void 0)throw new Error(DUPLICATED_METADATA+" "+U.toString())}else O=[W];return O}function _tagParameterOrProperty(W,O,U,G){var Y=_ensureNoMetadataKeyDuplicates(G),K={};Reflect.hasOwnMetadata(W,O)&&(K=Reflect.getMetadata(W,O));var J=K[U];if(J===void 0)J=[];else for(var X=function(Q){if(Y.some(function(te){return te.key===Q.key}))throw new Error(DUPLICATED_METADATA+" "+Q.key.toString())},se=0,ee=J;se<ee.length;se++){var ne=ee[se];X(ne)}J.push.apply(J,Y),K[U]=J,Reflect.defineMetadata(W,K,O)}function createTaggedDecorator(W){return function(O,U,G){typeof G=="number"?tagParameter(O,U,G,W):tagProperty(O,U,W)}}function injectable(){return function(W){if(Reflect.hasOwnMetadata(PARAM_TYPES,W))throw new Error(DUPLICATED_INJECTABLE_DECORATOR);var O=Reflect.getMetadata(DESIGN_PARAM_TYPES,W)||[];return Reflect.defineMetadata(PARAM_TYPES,O,W),W}}function injectBase(W){return function(O){return function(U,G,Y){if(O===void 0){var K=typeof U=="function"?U.name:U.constructor.name;throw new Error(UNDEFINED_INJECT_ANNOTATION(K))}return createTaggedDecorator(new Metadata(W,O))(U,G,Y)}}}var inject=injectBase(INJECT_TAG);const container=new Container,registerDep=W=>{container.bind(W).toSelf()},unregisterDep=W=>{container.isBound(W)&&container.unbind(W)},TYPES={primaryApi:Symbol.for("primaryApi"),store:Symbol.for("store"),localeManager:Symbol.for("localeManager")},registerRequest=(W,O)=>(U,G)=>{O.bind(G).to(G).inTransientScope(),injectable()(G),W.broker.registerRequest(U,Y=>O.get(G).handle(Y))},unregisterRequest=W=>O=>{W.isBound(O)&&W.unbind(O)};class InvalidTokenError extends Error{}InvalidTokenError.prototype.name="InvalidTokenError";function b64DecodeUnicode(W){return decodeURIComponent(atob(W).replace(/(.)/g,(O,U)=>{let G=U.charCodeAt(0).toString(16).toUpperCase();return G.length<2&&(G="0"+G),"%"+G}))}function base64UrlDecode(W){let O=W.replace(/-/g,"+").replace(/_/g,"/");switch(O.length%4){case 0:break;case 2:O+="==";break;case 3:O+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return b64DecodeUnicode(O)}catch{return atob(O)}}function jwtDecode(W,O){if(typeof W!="string")throw new InvalidTokenError("Invalid token specified: must be a string");O||(O={});const U=O.header===!0?0:1,G=W.split(".")[U];if(typeof G!="string")throw new InvalidTokenError(`Invalid token specified: missing part #${U+1}`);let Y;try{Y=base64UrlDecode(G)}catch(K){throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${U+1} (${K.message})`)}try{return JSON.parse(Y)}catch(K){throw new InvalidTokenError(`Invalid token specified: invalid json for part #${U+1} (${K.message})`)}}var __defProp$9=Object.defineProperty,__getOwnPropDesc$9=Object.getOwnPropertyDescriptor,__decorateClass$9=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$9(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$9(O,U,Y),Y};let GetUserInfoBackendAdapter=class{constructor(){this.token="eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ1S2hQbXhscHB4d2sxUDVfWmQ5am9CeTV6N2p5MHFPd0ZWY3RwZjBDa0E4In0.eyJleHAiOjE3MjEzMDc3MTcsImlhdCI6MTcyMTMwNzQxNywianRpIjoiNWRkMDE1YzgtNTQ5Yy00ZGM2LWE4YWItMTUzNDJiMWRhNThmIiwiaXNzIjoiaHR0cHM6Ly9pbnRlZ3JhY2lvLnBkcy5oZXMuY2F0c2FsdXQuaW50cmFuZXQuZ2VuY2F0LmNhdC9hdXRoL3JlYWxtcy9FVEMiLCJzdWIiOiJlMjRlMzFlMC01NWZiLTRhZmEtYTQzNi0yYmRhOGYyYWQ0ZWUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJldGMtY2NmLWludCIsInNlc3Npb25fc3RhdGUiOiJhY2M2ZDBlYi1iMTBjLTQ3ZDEtYjFlOC0xYWQ5ODU5NTAyNTkiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZGVmYXVsdC1yb2xlcy1oZXMtY2FtIl19LCJzY29wZSI6IiIsInNpZCI6ImFjYzZkMGViLWIxMGMtNDdkMS1iMWU4LTFhZDk4NTk1MDI1OSIsImNsaWVudEhvc3QiOiIxMC41My4yNTQuMTUwIiwiYWNjZXNzX3J1bGVzIjp7fSwiYWNjZXNzX2luZm8iOnsicGF0aWVudF9nZW5kZXIiOiIxIiwicGF0aWVudF9iaXJ0aGRhdGUiOiIxOTk5MDEwMSIsInByb2Zlc3Npb25hbF9yb2xlIjoiQURNIiwicHJvZmVzc2lvbmFsX2lkIjoiMTIzNDU2Nzg5MCIsInVwX2NvZGUiOiIwNzczMyIsInBhdGllbnRfZ2l2ZW5fbmFtZSI6ImNhc3RhbnkiLCJwYXRpZW50X2lkIjoiMTIzNDU2Nzg5MCIsInByb2Zlc3Npb25hbF9zcGVjaWFsaXR5IjoiU1BFQzAxIiwicHJvZmVzc2lvbmFsX3NlcnZpY2UiOiJTRVJWMDEiLCJwYXRpZW50X2xhc3RfbmFtZSI6IkFSRUdBTEwiLCJlcF9jb2RlIjoiMDIwOCJ9LCJjbGllbnRBZGRyZXNzIjoiMTAuNTMuMjU0LjE1MCIsImNsaWVudF9pZCI6ImV0Yy1jY2YtaW50In0.NiDKnMchNB4zqL9zOdq15G8y2BYGOyjk8n1xofB2WyxhVpbTXhXAgApS-4DCqczmdPt4sOwtt-FVVxcYku2gKcQQ1Leapb7CmHoUT_ak5ovOE8ZrD5Ryz6rfC_O1lO8Ut4M_J-KzMxj7WvUNYhkIqcHFSMwDdNC6xxc4ZYMOUI4bOif_Tiy7CxvMIpFGm1YS_jiGS2PGI8Y1o_1DApqMs88MxK9ItO-DIfQgKcR3wV6J-QZueaKVtih-kLma33TZc0jz7xG1EyOMJ5cC4r1Sxp877b9ut4JCmMaWOfWNf2tldLcpXTvV_BWg53YpwYOl4pvZdg3lFWEb009DofTQbQ"}getUserInfo(){const W=jwtDecode(this.token),O={userId:W.access_info.professional_id,firstName:"Nom",lastName:"Cognom",role:W.access_info.professional_role,speciality:W.access_info.professional_speciality,service:W.access_info.professional_service};return Promise.resolve(O)}};GetUserInfoBackendAdapter=__decorateClass$9([injectable()],GetUserInfoBackendAdapter);var __defProp$8=Object.defineProperty,__getOwnPropDesc$8=Object.getOwnPropertyDescriptor,__decorateClass$8=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$8(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$8(O,U,Y),Y},__decorateParam$1=(W,O)=>(U,G)=>O(U,G,W);let GetUserInfoHandler=class{constructor(W,O){this.api=W,this.backendAdapter=O}async handle(W){try{const O=await this.backendAdapter.getUserInfo();return this.api.globalStateManager.setData("userInfo",O),O}catch(O){this.api.interactionManager.notify({type:"error",message:O.message})}}};GetUserInfoHandler=__decorateClass$8([__decorateParam$1(0,inject(TYPES.primaryApi)),__decorateParam$1(1,inject(GetUserInfoBackendAdapter))],GetUserInfoHandler);class GetUserInfo{}const bootstrapGetUserInfo=()=>{teardownGetUserInfo(),registerRequest(shellApi,container)(GetUserInfo,GetUserInfoHandler),registerDep(GetUserInfoBackendAdapter)},teardownGetUserInfo=()=>{unregisterRequest(container)(GetUserInfoHandler),unregisterDep(GetUserInfoBackendAdapter)};var __defProp$7=Object.defineProperty,__getOwnPropDesc$7=Object.getOwnPropertyDescriptor,__decorateClass$7=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$7(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$7(O,U,Y),Y};let GetPatientInfoBackendAdapter=class{constructor(){this.token="eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ1S2hQbXhscHB4d2sxUDVfWmQ5am9CeTV6N2p5MHFPd0ZWY3RwZjBDa0E4In0.eyJleHAiOjE3MjEzMDc3MTcsImlhdCI6MTcyMTMwNzQxNywianRpIjoiNWRkMDE1YzgtNTQ5Yy00ZGM2LWE4YWItMTUzNDJiMWRhNThmIiwiaXNzIjoiaHR0cHM6Ly9pbnRlZ3JhY2lvLnBkcy5oZXMuY2F0c2FsdXQuaW50cmFuZXQuZ2VuY2F0LmNhdC9hdXRoL3JlYWxtcy9FVEMiLCJzdWIiOiJlMjRlMzFlMC01NWZiLTRhZmEtYTQzNi0yYmRhOGYyYWQ0ZWUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJldGMtY2NmLWludCIsInNlc3Npb25fc3RhdGUiOiJhY2M2ZDBlYi1iMTBjLTQ3ZDEtYjFlOC0xYWQ5ODU5NTAyNTkiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZGVmYXVsdC1yb2xlcy1oZXMtY2FtIl19LCJzY29wZSI6IiIsInNpZCI6ImFjYzZkMGViLWIxMGMtNDdkMS1iMWU4LTFhZDk4NTk1MDI1OSIsImNsaWVudEhvc3QiOiIxMC41My4yNTQuMTUwIiwiYWNjZXNzX3J1bGVzIjp7fSwiYWNjZXNzX2luZm8iOnsicGF0aWVudF9nZW5kZXIiOiIxIiwicGF0aWVudF9iaXJ0aGRhdGUiOiIxOTk5MDEwMSIsInByb2Zlc3Npb25hbF9yb2xlIjoiQURNIiwicHJvZmVzc2lvbmFsX2lkIjoiMTIzNDU2Nzg5MCIsInVwX2NvZGUiOiIwNzczMyIsInBhdGllbnRfZ2l2ZW5fbmFtZSI6ImNhc3RhbnkiLCJwYXRpZW50X2lkIjoiMTIzNDU2Nzg5MCIsInByb2Zlc3Npb25hbF9zcGVjaWFsaXR5IjoiU1BFQzAxIiwicHJvZmVzc2lvbmFsX3NlcnZpY2UiOiJTRVJWMDEiLCJwYXRpZW50X2xhc3RfbmFtZSI6IkFSRUdBTEwiLCJlcF9jb2RlIjoiMDIwOCJ9LCJjbGllbnRBZGRyZXNzIjoiMTAuNTMuMjU0LjE1MCIsImNsaWVudF9pZCI6ImV0Yy1jY2YtaW50In0.NiDKnMchNB4zqL9zOdq15G8y2BYGOyjk8n1xofB2WyxhVpbTXhXAgApS-4DCqczmdPt4sOwtt-FVVxcYku2gKcQQ1Leapb7CmHoUT_ak5ovOE8ZrD5Ryz6rfC_O1lO8Ut4M_J-KzMxj7WvUNYhkIqcHFSMwDdNC6xxc4ZYMOUI4bOif_Tiy7CxvMIpFGm1YS_jiGS2PGI8Y1o_1DApqMs88MxK9ItO-DIfQgKcR3wV6J-QZueaKVtih-kLma33TZc0jz7xG1EyOMJ5cC4r1Sxp877b9ut4JCmMaWOfWNf2tldLcpXTvV_BWg53YpwYOl4pvZdg3lFWEb009DofTQbQ"}getPatientInfo(){const W=jwtDecode(this.token);console.log(W);const O={patientId:W.access_info.professional_id,firstName:W.access_info.patient_given_name,lastName:W.access_info.patient_last_name,gender:W.access_info.patient_gender,birthdate:W.access_info.patient_birthdate};return Promise.resolve(O)}};GetPatientInfoBackendAdapter=__decorateClass$7([injectable()],GetPatientInfoBackendAdapter);var __defProp$6=Object.defineProperty,__getOwnPropDesc$6=Object.getOwnPropertyDescriptor,__decorateClass$6=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$6(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$6(O,U,Y),Y},__decorateParam=(W,O)=>(U,G)=>O(U,G,W);let GetPatientInfoHandler=class{constructor(W,O){this.api=W,this.backendAdapter=O}async handle(W){try{const O=await this.backendAdapter.getPatientInfo();return this.api.globalStateManager.setData("patientInfo",O),O}catch(O){this.api.interactionManager.notify({type:"error",message:O.message})}}};GetPatientInfoHandler=__decorateClass$6([__decorateParam(0,inject(TYPES.primaryApi)),__decorateParam(1,inject(GetPatientInfoBackendAdapter))],GetPatientInfoHandler);class GetPatientInfo{}const bootstrapGetPatientInfo=()=>{teardownGetPatientInfo(),registerRequest(shellApi,container)(GetPatientInfo,GetPatientInfoHandler),registerDep(GetPatientInfoBackendAdapter)},teardownGetPatientInfo=()=>{unregisterRequest(container)(GetPatientInfoHandler),unregisterDep(GetPatientInfoBackendAdapter)},bootstrapFeatures=W=>{container.bind(TYPES.primaryApi).toConstantValue(W),bootstrapGetUserInfo(),bootstrapGetPatientInfo()},initializeShell=async W=>{initializeLocalization(shellApi),p$6.registerAdapterFactory("primaria-content-switcher",d$4);const O=new PrimariaShell;W.appendChild(O),registerViews(),bootstrapFeatures(shellApi),shellApi.broker.send(new GetUserInfo),shellApi.broker.send(new GetPatientInfo)},registerViews=()=>{shellApi.regionManager.registerMainView({id:clinicalMonitoringId,factory:()=>{const W=new ClinicalMonitoring;return Promise.resolve(W)}},"Seguiment Clínic"),shellApi.regionManager.registerMenu({id:clinicalMonitoringId,factory:()=>{const W=new exports.PrimariaMenuItem("add_box","Seguiment clínic",()=>{shellApi.regionManager.activateView(shellRegions.main,"clinical-monitoring")});return Promise.resolve(W)}})},bootstrapPlugins=W=>d(W,primariaApiFactory),styles$4="*[hidden]{display:none!important}.container{display:flex;flex-direction:row;gap:8px;background:#dedede;padding:8px 12px}.container .breadcumb{display:flex;flex-direction:row;align-items:center}.container .breadcumb .label{color:#000}.container .breadcumb:hover{font-weight:700}.container .breadcumb:hover .label{color:var(--color-primary-500)}.container .breadcumb[selected]{pointer-events:none}.container .breadcumb[selected] .label{font-weight:700;color:var(--color-primary-500)}";/**
8591
8604
  * @license
8592
8605
  * Copyright 2017 Google LLC
8593
8606
  * SPDX-License-Identifier: BSD-3-Clause
@@ -8595,11 +8608,11 @@ Registered bindings:`,Y.forEach(function(K){var J="Object";K.implementationType!
8595
8608
  * @license
8596
8609
  * Copyright 2020 Google LLC
8597
8610
  * SPDX-License-Identifier: BSD-3-Clause
8598
- */const{I:t}=z$1,s=()=>document.createComment(""),r=(W,O,U)=>{var K;const G=W._$AA.parentNode,Y=O===void 0?W._$AB:O._$AA;if(U===void 0){const J=G.insertBefore(s(),Y),X=G.insertBefore(s(),Y);U=new t(J,X,W,W.options)}else{const J=U._$AB.nextSibling,X=U._$AM,ie=X!==W;if(ie){let ee;(K=U._$AQ)==null||K.call(U,W),U._$AM=W,U._$AP!==void 0&&(ee=W._$AU)!==X._$AU&&U._$AP(ee)}if(J!==Y||ie){let ee=U._$AA;for(;ee!==J;){const ne=ee.nextSibling;G.insertBefore(ee,Y),ee=ne}}}return U},v=(W,O,U=W)=>(W._$AI(O,U),W),u$1={},m=(W,O=u$1)=>W._$AH=O,p=W=>W._$AH,h=W=>{var G;(G=W._$AP)==null||G.call(W,!1,!0);let O=W._$AA;const U=W._$AB.nextSibling;for(;O!==U;){const Y=O.nextSibling;O.remove(),O=Y}};/**
8611
+ */const{I:t}=z$1,s=()=>document.createComment(""),r=(W,O,U)=>{var K;const G=W._$AA.parentNode,Y=O===void 0?W._$AB:O._$AA;if(U===void 0){const J=G.insertBefore(s(),Y),X=G.insertBefore(s(),Y);U=new t(J,X,W,W.options)}else{const J=U._$AB.nextSibling,X=U._$AM,se=X!==W;if(se){let ee;(K=U._$AQ)==null||K.call(U,W),U._$AM=W,U._$AP!==void 0&&(ee=W._$AU)!==X._$AU&&U._$AP(ee)}if(J!==Y||se){let ee=U._$AA;for(;ee!==J;){const ne=ee.nextSibling;G.insertBefore(ee,Y),ee=ne}}}return U},v=(W,O,U=W)=>(W._$AI(O,U),W),u$1={},m=(W,O=u$1)=>W._$AH=O,p=W=>W._$AH,h=W=>{var G;(G=W._$AP)==null||G.call(W,!1,!0);let O=W._$AA;const U=W._$AB.nextSibling;for(;O!==U;){const Y=O.nextSibling;O.remove(),O=Y}};/**
8599
8612
  * @license
8600
8613
  * Copyright 2017 Google LLC
8601
8614
  * SPDX-License-Identifier: BSD-3-Clause
8602
- */const u=(W,O,U)=>{const G=new Map;for(let Y=O;Y<=U;Y++)G.set(W[Y],Y);return G},c=e(class extends i{constructor(W){if(super(W),W.type!==t$1.CHILD)throw Error("repeat() can only be used in text expressions")}dt(W,O,U){let G;U===void 0?U=O:O!==void 0&&(G=O);const Y=[],K=[];let J=0;for(const X of W)Y[J]=G?G(X,J):J,K[J]=U(X,J),J++;return{values:K,keys:Y}}render(W,O,U){return this.dt(W,O,U).values}update(W,[O,U,G]){const Y=p(W),{values:K,keys:J}=this.dt(O,U,G);if(!Array.isArray(Y))return this.ut=J,K;const X=this.ut??(this.ut=[]),ie=[];let ee,ne,Q=0,te=Y.length-1,se=0,le=K.length-1;for(;Q<=te&&se<=le;)if(Y[Q]===null)Q++;else if(Y[te]===null)te--;else if(X[Q]===J[se])ie[se]=v(Y[Q],K[se]),Q++,se++;else if(X[te]===J[le])ie[le]=v(Y[te],K[le]),te--,le--;else if(X[Q]===J[le])ie[le]=v(Y[Q],K[le]),r(W,ie[le+1],Y[Q]),Q++,le--;else if(X[te]===J[se])ie[se]=v(Y[te],K[se]),r(W,Y[Q],Y[te]),te--,se++;else if(ee===void 0&&(ee=u(J,se,le),ne=u(X,Q,te)),ee.has(X[Q]))if(ee.has(X[te])){const oe=ne.get(J[se]),re=oe!==void 0?Y[oe]:null;if(re===null){const ae=r(W,Y[Q]);v(ae,K[se]),ie[se]=ae}else ie[se]=v(re,K[se]),r(W,Y[Q],re),Y[oe]=null;se++}else h(Y[te]),te--;else h(Y[Q]),Q++;for(;se<=le;){const oe=r(W,ie[le+1]);v(oe,K[se]),ie[se++]=oe}for(;Q<=te;){const oe=Y[Q++];oe!==null&&h(oe)}return this.ut=J,m(W,ie),w$3}}),template$3=W=>x$1`
8615
+ */const u=(W,O,U)=>{const G=new Map;for(let Y=O;Y<=U;Y++)G.set(W[Y],Y);return G},c=e(class extends i{constructor(W){if(super(W),W.type!==t$1.CHILD)throw Error("repeat() can only be used in text expressions")}dt(W,O,U){let G;U===void 0?U=O:O!==void 0&&(G=O);const Y=[],K=[];let J=0;for(const X of W)Y[J]=G?G(X,J):J,K[J]=U(X,J),J++;return{values:K,keys:Y}}render(W,O,U){return this.dt(W,O,U).values}update(W,[O,U,G]){const Y=p(W),{values:K,keys:J}=this.dt(O,U,G);if(!Array.isArray(Y))return this.ut=J,K;const X=this.ut??(this.ut=[]),se=[];let ee,ne,Q=0,te=Y.length-1,ie=0,le=K.length-1;for(;Q<=te&&ie<=le;)if(Y[Q]===null)Q++;else if(Y[te]===null)te--;else if(X[Q]===J[ie])se[ie]=v(Y[Q],K[ie]),Q++,ie++;else if(X[te]===J[le])se[le]=v(Y[te],K[le]),te--,le--;else if(X[Q]===J[le])se[le]=v(Y[Q],K[le]),r(W,se[le+1],Y[Q]),Q++,le--;else if(X[te]===J[ie])se[ie]=v(Y[te],K[ie]),r(W,Y[Q],Y[te]),te--,ie++;else if(ee===void 0&&(ee=u(J,ie,le),ne=u(X,Q,te)),ee.has(X[Q]))if(ee.has(X[te])){const oe=ne.get(J[ie]),re=oe!==void 0?Y[oe]:null;if(re===null){const ae=r(W,Y[Q]);v(ae,K[ie]),se[ie]=ae}else se[ie]=v(re,K[ie]),r(W,Y[Q],re),Y[oe]=null;ie++}else h(Y[te]),te--;else h(Y[Q]),Q++;for(;ie<=le;){const oe=r(W,se[le+1]);v(oe,K[ie]),se[ie++]=oe}for(;Q<=te;){const oe=Y[Q++];oe!==null&&h(oe)}return this.ut=J,m(W,se),w$3}}),template$3=W=>x$1`
8603
8616
  <div class="container">
8604
8617
  ${c(W.breadcumbs,(O,U)=>x$1`
8605
8618
  <div class="breadcumb" @click=${()=>W._breadcumbClick(O)} ?selected=${U===W.breadcumbs.length-1}>
@@ -8616,52 +8629,52 @@ Registered bindings:`,Y.forEach(function(K){var J="Object";K.implementationType!
8616
8629
  :host > ::slotted(:not(slot):not(.selected)) {
8617
8630
  display: none !important;
8618
8631
  }
8619
- `,__decorateClass$4([n$8()],PrimariaContentSwitcher.prototype,"selected",2),__decorateClass$4([n$8()],PrimariaContentSwitcher.prototype,"attrForSelected",2),__decorateClass$4([n$8()],PrimariaContentSwitcher.prototype,"animation",2),PrimariaContentSwitcher=__decorateClass$4([t$7("primaria-content-switcher")],PrimariaContentSwitcher);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(W){return W&&W.__esModule&&Object.prototype.hasOwnProperty.call(W,"default")?W.default:W}var quill={exports:{}};/*!
8632
+ `,__decorateClass$4([n$8()],PrimariaContentSwitcher.prototype,"selected",2),__decorateClass$4([n$8()],PrimariaContentSwitcher.prototype,"attrForSelected",2),__decorateClass$4([n$8()],PrimariaContentSwitcher.prototype,"animation",2),PrimariaContentSwitcher=__decorateClass$4([t$7("primaria-content-switcher")],PrimariaContentSwitcher);var quill={exports:{}};/*!
8620
8633
  * Quill Editor v1.3.6
8621
8634
  * https://quilljs.com/
8622
8635
  * Copyright (c) 2014, Jason Chen
8623
8636
  * Copyright (c) 2013, salesforce.com
8624
- */(function(W,O){(function(G,Y){W.exports=Y()})(typeof self<"u"?self:commonjsGlobal,function(){return function(U){var G={};function Y(K){if(G[K])return G[K].exports;var J=G[K]={i:K,l:!1,exports:{}};return U[K].call(J.exports,J,J.exports,Y),J.l=!0,J.exports}return Y.m=U,Y.c=G,Y.d=function(K,J,X){Y.o(K,J)||Object.defineProperty(K,J,{configurable:!1,enumerable:!0,get:X})},Y.n=function(K){var J=K&&K.__esModule?function(){return K.default}:function(){return K};return Y.d(J,"a",J),J},Y.o=function(K,J){return Object.prototype.hasOwnProperty.call(K,J)},Y.p="",Y(Y.s=110)}([function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(17),J=Y(18),X=Y(19),ie=Y(46),ee=Y(47),ne=Y(48),Q=Y(49),te=Y(50),se=Y(12),le=Y(32),oe=Y(33),re=Y(31),ae=Y(1),ce={Scope:ae.Scope,create:ae.create,find:ae.find,query:ae.query,register:ae.register,Container:K.default,Format:J.default,Leaf:X.default,Embed:Q.default,Scroll:ie.default,Block:ne.default,Inline:ee.default,Text:te.default,Attributor:{Attribute:se.default,Class:le.default,Style:oe.default,Store:re.default}};G.default=ce},function(U,G,Y){var K=this&&this.__extends||function(){var re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,ce){ae.__proto__=ce}||function(ae,ce){for(var ue in ce)ce.hasOwnProperty(ue)&&(ae[ue]=ce[ue])};return function(ae,ce){re(ae,ce);function ue(){this.constructor=ae}ae.prototype=ce===null?Object.create(ce):(ue.prototype=ce.prototype,new ue)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=function(re){K(ae,re);function ae(ce){var ue=this;return ce="[Parchment] "+ce,ue=re.call(this,ce)||this,ue.message=ce,ue.name=ue.constructor.name,ue}return ae}(Error);G.ParchmentError=J;var X={},ie={},ee={},ne={};G.DATA_KEY="__blot";var Q;(function(re){re[re.TYPE=3]="TYPE",re[re.LEVEL=12]="LEVEL",re[re.ATTRIBUTE=13]="ATTRIBUTE",re[re.BLOT=14]="BLOT",re[re.INLINE=7]="INLINE",re[re.BLOCK=11]="BLOCK",re[re.BLOCK_BLOT=10]="BLOCK_BLOT",re[re.INLINE_BLOT=6]="INLINE_BLOT",re[re.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",re[re.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",re[re.ANY=15]="ANY"})(Q=G.Scope||(G.Scope={}));function te(re,ae){var ce=le(re);if(ce==null)throw new J("Unable to create "+re+" blot");var ue=ce,de=re instanceof Node||re.nodeType===Node.TEXT_NODE?re:ue.create(ae);return new ue(de,ae)}G.create=te;function se(re,ae){return ae===void 0&&(ae=!1),re==null?null:re[G.DATA_KEY]!=null?re[G.DATA_KEY].blot:ae?se(re.parentNode,ae):null}G.find=se;function le(re,ae){ae===void 0&&(ae=Q.ANY);var ce;if(typeof re=="string")ce=ne[re]||X[re];else if(re instanceof Text||re.nodeType===Node.TEXT_NODE)ce=ne.text;else if(typeof re=="number")re&Q.LEVEL&Q.BLOCK?ce=ne.block:re&Q.LEVEL&Q.INLINE&&(ce=ne.inline);else if(re instanceof HTMLElement){var ue=(re.getAttribute("class")||"").split(/\s+/);for(var de in ue)if(ce=ie[ue[de]],ce)break;ce=ce||ee[re.tagName]}return ce==null?null:ae&Q.LEVEL&ce.scope&&ae&Q.TYPE&ce.scope?ce:null}G.query=le;function oe(){for(var re=[],ae=0;ae<arguments.length;ae++)re[ae]=arguments[ae];if(re.length>1)return re.map(function(de){return oe(de)});var ce=re[0];if(typeof ce.blotName!="string"&&typeof ce.attrName!="string")throw new J("Invalid definition");if(ce.blotName==="abstract")throw new J("Cannot register abstract class");if(ne[ce.blotName||ce.attrName]=ce,typeof ce.keyName=="string")X[ce.keyName]=ce;else if(ce.className!=null&&(ie[ce.className]=ce),ce.tagName!=null){Array.isArray(ce.tagName)?ce.tagName=ce.tagName.map(function(de){return de.toUpperCase()}):ce.tagName=ce.tagName.toUpperCase();var ue=Array.isArray(ce.tagName)?ce.tagName:[ce.tagName];ue.forEach(function(de){(ee[de]==null||ce.className==null)&&(ee[de]=ce)})}return ce}G.register=oe},function(U,G,Y){var K=Y(52),J=Y(11),X=Y(3),ie=Y(20),ee="\0",ne=function(Q){Array.isArray(Q)?this.ops=Q:Q!=null&&Array.isArray(Q.ops)?this.ops=Q.ops:this.ops=[]};ne.prototype.insert=function(Q,te){var se={};return Q.length===0?this:(se.insert=Q,te!=null&&typeof te=="object"&&Object.keys(te).length>0&&(se.attributes=te),this.push(se))},ne.prototype.delete=function(Q){return Q<=0?this:this.push({delete:Q})},ne.prototype.retain=function(Q,te){if(Q<=0)return this;var se={retain:Q};return te!=null&&typeof te=="object"&&Object.keys(te).length>0&&(se.attributes=te),this.push(se)},ne.prototype.push=function(Q){var te=this.ops.length,se=this.ops[te-1];if(Q=X(!0,{},Q),typeof se=="object"){if(typeof Q.delete=="number"&&typeof se.delete=="number")return this.ops[te-1]={delete:se.delete+Q.delete},this;if(typeof se.delete=="number"&&Q.insert!=null&&(te-=1,se=this.ops[te-1],typeof se!="object"))return this.ops.unshift(Q),this;if(J(Q.attributes,se.attributes)){if(typeof Q.insert=="string"&&typeof se.insert=="string")return this.ops[te-1]={insert:se.insert+Q.insert},typeof Q.attributes=="object"&&(this.ops[te-1].attributes=Q.attributes),this;if(typeof Q.retain=="number"&&typeof se.retain=="number")return this.ops[te-1]={retain:se.retain+Q.retain},typeof Q.attributes=="object"&&(this.ops[te-1].attributes=Q.attributes),this}}return te===this.ops.length?this.ops.push(Q):this.ops.splice(te,0,Q),this},ne.prototype.chop=function(){var Q=this.ops[this.ops.length-1];return Q&&Q.retain&&!Q.attributes&&this.ops.pop(),this},ne.prototype.filter=function(Q){return this.ops.filter(Q)},ne.prototype.forEach=function(Q){this.ops.forEach(Q)},ne.prototype.map=function(Q){return this.ops.map(Q)},ne.prototype.partition=function(Q){var te=[],se=[];return this.forEach(function(le){var oe=Q(le)?te:se;oe.push(le)}),[te,se]},ne.prototype.reduce=function(Q,te){return this.ops.reduce(Q,te)},ne.prototype.changeLength=function(){return this.reduce(function(Q,te){return te.insert?Q+ie.length(te):te.delete?Q-te.delete:Q},0)},ne.prototype.length=function(){return this.reduce(function(Q,te){return Q+ie.length(te)},0)},ne.prototype.slice=function(Q,te){Q=Q||0,typeof te!="number"&&(te=1/0);for(var se=[],le=ie.iterator(this.ops),oe=0;oe<te&&le.hasNext();){var re;oe<Q?re=le.next(Q-oe):(re=le.next(te-oe),se.push(re)),oe+=ie.length(re)}return new ne(se)},ne.prototype.compose=function(Q){var te=ie.iterator(this.ops),se=ie.iterator(Q.ops),le=[],oe=se.peek();if(oe!=null&&typeof oe.retain=="number"&&oe.attributes==null){for(var re=oe.retain;te.peekType()==="insert"&&te.peekLength()<=re;)re-=te.peekLength(),le.push(te.next());oe.retain-re>0&&se.next(oe.retain-re)}for(var ae=new ne(le);te.hasNext()||se.hasNext();)if(se.peekType()==="insert")ae.push(se.next());else if(te.peekType()==="delete")ae.push(te.next());else{var ce=Math.min(te.peekLength(),se.peekLength()),ue=te.next(ce),de=se.next(ce);if(typeof de.retain=="number"){var he={};typeof ue.retain=="number"?he.retain=ce:he.insert=ue.insert;var me=ie.attributes.compose(ue.attributes,de.attributes,typeof ue.retain=="number");if(me&&(he.attributes=me),ae.push(he),!se.hasNext()&&J(ae.ops[ae.ops.length-1],he)){var ge=new ne(te.rest());return ae.concat(ge).chop()}}else typeof de.delete=="number"&&typeof ue.retain=="number"&&ae.push(de)}return ae.chop()},ne.prototype.concat=function(Q){var te=new ne(this.ops.slice());return Q.ops.length>0&&(te.push(Q.ops[0]),te.ops=te.ops.concat(Q.ops.slice(1))),te},ne.prototype.diff=function(Q,te){if(this.ops===Q.ops)return new ne;var se=[this,Q].map(function(ce){return ce.map(function(ue){if(ue.insert!=null)return typeof ue.insert=="string"?ue.insert:ee;var de=ce===Q?"on":"with";throw new Error("diff() called "+de+" non-document")}).join("")}),le=new ne,oe=K(se[0],se[1],te),re=ie.iterator(this.ops),ae=ie.iterator(Q.ops);return oe.forEach(function(ce){for(var ue=ce[1].length;ue>0;){var de=0;switch(ce[0]){case K.INSERT:de=Math.min(ae.peekLength(),ue),le.push(ae.next(de));break;case K.DELETE:de=Math.min(ue,re.peekLength()),re.next(de),le.delete(de);break;case K.EQUAL:de=Math.min(re.peekLength(),ae.peekLength(),ue);var he=re.next(de),me=ae.next(de);J(he.insert,me.insert)?le.retain(de,ie.attributes.diff(he.attributes,me.attributes)):le.push(me).delete(de);break}ue-=de}}),le.chop()},ne.prototype.eachLine=function(Q,te){te=te||`
8625
- `;for(var se=ie.iterator(this.ops),le=new ne,oe=0;se.hasNext();){if(se.peekType()!=="insert")return;var re=se.peek(),ae=ie.length(re)-se.peekLength(),ce=typeof re.insert=="string"?re.insert.indexOf(te,ae)-ae:-1;if(ce<0)le.push(se.next());else if(ce>0)le.push(se.next(ce));else{if(Q(le,se.next(1).attributes||{},oe)===!1)return;oe+=1,le=new ne}}le.length()>0&&Q(le,{},oe)},ne.prototype.transform=function(Q,te){if(te=!!te,typeof Q=="number")return this.transformPosition(Q,te);for(var se=ie.iterator(this.ops),le=ie.iterator(Q.ops),oe=new ne;se.hasNext()||le.hasNext();)if(se.peekType()==="insert"&&(te||le.peekType()!=="insert"))oe.retain(ie.length(se.next()));else if(le.peekType()==="insert")oe.push(le.next());else{var re=Math.min(se.peekLength(),le.peekLength()),ae=se.next(re),ce=le.next(re);if(ae.delete)continue;ce.delete?oe.push(ce):oe.retain(re,ie.attributes.transform(ae.attributes,ce.attributes,te))}return oe.chop()},ne.prototype.transformPosition=function(Q,te){te=!!te;for(var se=ie.iterator(this.ops),le=0;se.hasNext()&&le<=Q;){var oe=se.peekLength(),re=se.peekType();if(se.next(),re==="delete"){Q-=Math.min(oe,Q-le);continue}else re==="insert"&&(le<Q||!te)&&(Q+=oe);le+=oe}return Q},U.exports=ne},function(U,G){var Y=Object.prototype.hasOwnProperty,K=Object.prototype.toString,J=Object.defineProperty,X=Object.getOwnPropertyDescriptor,ie=function(se){return typeof Array.isArray=="function"?Array.isArray(se):K.call(se)==="[object Array]"},ee=function(se){if(!se||K.call(se)!=="[object Object]")return!1;var le=Y.call(se,"constructor"),oe=se.constructor&&se.constructor.prototype&&Y.call(se.constructor.prototype,"isPrototypeOf");if(se.constructor&&!le&&!oe)return!1;var re;for(re in se);return typeof re>"u"||Y.call(se,re)},ne=function(se,le){J&&le.name==="__proto__"?J(se,le.name,{enumerable:!0,configurable:!0,value:le.newValue,writable:!0}):se[le.name]=le.newValue},Q=function(se,le){if(le==="__proto__")if(Y.call(se,le)){if(X)return X(se,le).value}else return;return se[le]};U.exports=function te(){var se,le,oe,re,ae,ce,ue=arguments[0],de=1,he=arguments.length,me=!1;for(typeof ue=="boolean"&&(me=ue,ue=arguments[1]||{},de=2),(ue==null||typeof ue!="object"&&typeof ue!="function")&&(ue={});de<he;++de)if(se=arguments[de],se!=null)for(le in se)oe=Q(ue,le),re=Q(se,le),ue!==re&&(me&&re&&(ee(re)||(ae=ie(re)))?(ae?(ae=!1,ce=oe&&ie(oe)?oe:[]):ce=oe&&ee(oe)?oe:{},ne(ue,{name:le,newValue:te(me,ce,re)})):typeof re<"u"&&ne(ue,{name:le,newValue:re}));return ue}},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.BlockEmbed=G.bubbleFormats=void 0;var K=function(){function fe(be,ve){for(var $e=0;$e<ve.length;$e++){var qe=ve[$e];qe.enumerable=qe.enumerable||!1,qe.configurable=!0,"value"in qe&&(qe.writable=!0),Object.defineProperty(be,qe.key,qe)}}return function(be,ve,$e){return ve&&fe(be.prototype,ve),$e&&fe(be,$e),be}}(),J=function fe(be,ve,$e){be===null&&(be=Function.prototype);var qe=Object.getOwnPropertyDescriptor(be,ve);if(qe===void 0){var Ce=Object.getPrototypeOf(be);return Ce===null?void 0:fe(Ce,ve,$e)}else{if("value"in qe)return qe.value;var Ie=qe.get;return Ie===void 0?void 0:Ie.call($e)}},X=Y(3),ie=ue(X),ee=Y(2),ne=ue(ee),Q=Y(0),te=ue(Q),se=Y(16),le=ue(se),oe=Y(6),re=ue(oe),ae=Y(7),ce=ue(ae);function ue(fe){return fe&&fe.__esModule?fe:{default:fe}}function de(fe,be){if(!(fe instanceof be))throw new TypeError("Cannot call a class as a function")}function he(fe,be){if(!fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be&&(typeof be=="object"||typeof be=="function")?be:fe}function me(fe,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof be);fe.prototype=Object.create(be&&be.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),be&&(Object.setPrototypeOf?Object.setPrototypeOf(fe,be):fe.__proto__=be)}var ge=1,we=function(fe){me(be,fe);function be(){return de(this,be),he(this,(be.__proto__||Object.getPrototypeOf(be)).apply(this,arguments))}return K(be,[{key:"attach",value:function(){J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"attach",this).call(this),this.attributes=new te.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new ne.default().insert(this.value(),(0,ie.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function($e,qe){var Ce=te.default.query($e,te.default.Scope.BLOCK_ATTRIBUTE);Ce!=null&&this.attributes.attribute(Ce,qe)}},{key:"formatAt",value:function($e,qe,Ce,Ie){this.format(Ce,Ie)}},{key:"insertAt",value:function($e,qe,Ce){if(typeof qe=="string"&&qe.endsWith(`
8626
- `)){var Ie=te.default.create(ke.blotName);this.parent.insertBefore(Ie,$e===0?this:this.next),Ie.insertAt(0,qe.slice(0,-1))}else J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"insertAt",this).call(this,$e,qe,Ce)}}]),be}(te.default.Embed);we.scope=te.default.Scope.BLOCK_BLOT;var ke=function(fe){me(be,fe);function be(ve){de(this,be);var $e=he(this,(be.__proto__||Object.getPrototypeOf(be)).call(this,ve));return $e.cache={},$e}return K(be,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(te.default.Leaf).reduce(function($e,qe){return qe.length()===0?$e:$e.insert(qe.value(),_e(qe))},new ne.default).insert(`
8627
- `,_e(this))),this.cache.delta}},{key:"deleteAt",value:function($e,qe){J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"deleteAt",this).call(this,$e,qe),this.cache={}}},{key:"formatAt",value:function($e,qe,Ce,Ie){qe<=0||(te.default.query(Ce,te.default.Scope.BLOCK)?$e+qe===this.length()&&this.format(Ce,Ie):J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"formatAt",this).call(this,$e,Math.min(qe,this.length()-$e-1),Ce,Ie),this.cache={})}},{key:"insertAt",value:function($e,qe,Ce){if(Ce!=null)return J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"insertAt",this).call(this,$e,qe,Ce);if(qe.length!==0){var Ie=qe.split(`
8628
- `),Ve=Ie.shift();Ve.length>0&&($e<this.length()-1||this.children.tail==null?J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"insertAt",this).call(this,Math.min($e,this.length()-1),Ve):this.children.tail.insertAt(this.children.tail.length(),Ve),this.cache={});var De=this;Ie.reduce(function(Te,ye){return De=De.split(Te,!0),De.insertAt(0,ye),ye.length},$e+Ve.length)}}},{key:"insertBefore",value:function($e,qe){var Ce=this.children.head;J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"insertBefore",this).call(this,$e,qe),Ce instanceof le.default&&Ce.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"length",this).call(this)+ge),this.cache.length}},{key:"moveChildren",value:function($e,qe){J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"moveChildren",this).call(this,$e,qe),this.cache={}}},{key:"optimize",value:function($e){J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"optimize",this).call(this,$e),this.cache={}}},{key:"path",value:function($e){return J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"path",this).call(this,$e,!0)}},{key:"removeChild",value:function($e){J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"removeChild",this).call(this,$e),this.cache={}}},{key:"split",value:function($e){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(qe&&($e===0||$e>=this.length()-ge)){var Ce=this.clone();return $e===0?(this.parent.insertBefore(Ce,this),this):(this.parent.insertBefore(Ce,this.next),Ce)}else{var Ie=J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"split",this).call(this,$e,qe);return this.cache={},Ie}}}]),be}(te.default.Block);ke.blotName="block",ke.tagName="P",ke.defaultChild="break",ke.allowedChildren=[re.default,te.default.Embed,ce.default];function _e(fe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return fe==null||(typeof fe.formats=="function"&&(be=(0,ie.default)(be,fe.formats())),fe.parent==null||fe.parent.blotName=="scroll"||fe.parent.statics.scope!==fe.statics.scope)?be:_e(fe.parent,be)}G.bubbleFormats=_e,G.BlockEmbed=we,G.default=ke},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.overload=G.expandConfig=void 0;var K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(De){return typeof De}:function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De},J=function(){function De(Te,ye){var Ae=[],Oe=!0,Pe=!1,Le=void 0;try{for(var Ee=Te[Symbol.iterator](),Re;!(Oe=(Re=Ee.next()).done)&&(Ae.push(Re.value),!(ye&&Ae.length===ye));Oe=!0);}catch(Me){Pe=!0,Le=Me}finally{try{!Oe&&Ee.return&&Ee.return()}finally{if(Pe)throw Le}}return Ae}return function(Te,ye){if(Array.isArray(Te))return Te;if(Symbol.iterator in Object(Te))return De(Te,ye);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),X=function(){function De(Te,ye){for(var Ae=0;Ae<ye.length;Ae++){var Oe=ye[Ae];Oe.enumerable=Oe.enumerable||!1,Oe.configurable=!0,"value"in Oe&&(Oe.writable=!0),Object.defineProperty(Te,Oe.key,Oe)}}return function(Te,ye,Ae){return ye&&De(Te.prototype,ye),Ae&&De(Te,Ae),Te}}();Y(51);var ie=Y(2),ee=_e(ie),ne=Y(14),Q=_e(ne),te=Y(8),se=_e(te),le=Y(9),oe=_e(le),re=Y(0),ae=_e(re),ce=Y(15),ue=_e(ce),de=Y(3),he=_e(de),me=Y(10),ge=_e(me),we=Y(35),ke=_e(we);function _e(De){return De&&De.__esModule?De:{default:De}}function fe(De,Te,ye){return Te in De?Object.defineProperty(De,Te,{value:ye,enumerable:!0,configurable:!0,writable:!0}):De[Te]=ye,De}function be(De,Te){if(!(De instanceof Te))throw new TypeError("Cannot call a class as a function")}var ve=(0,ge.default)("quill"),$e=function(){X(De,null,[{key:"debug",value:function(ye){ye===!0&&(ye="log"),ge.default.level(ye)}},{key:"find",value:function(ye){return ye.__quill||ae.default.find(ye)}},{key:"import",value:function(ye){return this.imports[ye]==null&&ve.error("Cannot import "+ye+". Are you sure it was registered?"),this.imports[ye]}},{key:"register",value:function(ye,Ae){var Oe=this,Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof ye!="string"){var Le=ye.attrName||ye.blotName;typeof Le=="string"?this.register("formats/"+Le,ye,Ae):Object.keys(ye).forEach(function(Ee){Oe.register(Ee,ye[Ee],Ae)})}else this.imports[ye]!=null&&!Pe&&ve.warn("Overwriting "+ye+" with",Ae),this.imports[ye]=Ae,(ye.startsWith("blots/")||ye.startsWith("formats/"))&&Ae.blotName!=="abstract"?ae.default.register(Ae):ye.startsWith("modules")&&typeof Ae.register=="function"&&Ae.register()}}]);function De(Te){var ye=this,Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(be(this,De),this.options=qe(Te,Ae),this.container=this.options.container,this.container==null)return ve.error("Invalid Quill container",Te);this.options.debug&&De.debug(this.options.debug);var Oe=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 se.default,this.scroll=ae.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new Q.default(this.scroll),this.selection=new ue.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(se.default.events.EDITOR_CHANGE,function(Le){Le===se.default.events.TEXT_CHANGE&&ye.root.classList.toggle("ql-blank",ye.editor.isBlank())}),this.emitter.on(se.default.events.SCROLL_UPDATE,function(Le,Ee){var Re=ye.selection.lastRange,Me=Re&&Re.length===0?Re.index:void 0;Ce.call(ye,function(){return ye.editor.update(null,Ee,Me)},Le)});var Pe=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+Oe+"<p><br></p></div>");this.setContents(Pe),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return X(De,[{key:"addContainer",value:function(ye){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof ye=="string"){var Oe=ye;ye=document.createElement("div"),ye.classList.add(Oe)}return this.container.insertBefore(ye,Ae),ye}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ye,Ae,Oe){var Pe=this,Le=Ie(ye,Ae,Oe),Ee=J(Le,4);return ye=Ee[0],Ae=Ee[1],Oe=Ee[3],Ce.call(this,function(){return Pe.editor.deleteText(ye,Ae)},Oe,ye,-1*Ae)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(ye),this.container.classList.toggle("ql-disabled",!ye)}},{key:"focus",value:function(){var ye=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=ye,this.scrollIntoView()}},{key:"format",value:function(ye,Ae){var Oe=this,Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:se.default.sources.API;return Ce.call(this,function(){var Le=Oe.getSelection(!0),Ee=new ee.default;if(Le==null)return Ee;if(ae.default.query(ye,ae.default.Scope.BLOCK))Ee=Oe.editor.formatLine(Le.index,Le.length,fe({},ye,Ae));else{if(Le.length===0)return Oe.selection.format(ye,Ae),Ee;Ee=Oe.editor.formatText(Le.index,Le.length,fe({},ye,Ae))}return Oe.setSelection(Le,se.default.sources.SILENT),Ee},Pe)}},{key:"formatLine",value:function(ye,Ae,Oe,Pe,Le){var Ee=this,Re=void 0,Me=Ie(ye,Ae,Oe,Pe,Le),Be=J(Me,4);return ye=Be[0],Ae=Be[1],Re=Be[2],Le=Be[3],Ce.call(this,function(){return Ee.editor.formatLine(ye,Ae,Re)},Le,ye,0)}},{key:"formatText",value:function(ye,Ae,Oe,Pe,Le){var Ee=this,Re=void 0,Me=Ie(ye,Ae,Oe,Pe,Le),Be=J(Me,4);return ye=Be[0],Ae=Be[1],Re=Be[2],Le=Be[3],Ce.call(this,function(){return Ee.editor.formatText(ye,Ae,Re)},Le,ye,0)}},{key:"getBounds",value:function(ye){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Oe=void 0;typeof ye=="number"?Oe=this.selection.getBounds(ye,Ae):Oe=this.selection.getBounds(ye.index,ye.length);var Pe=this.container.getBoundingClientRect();return{bottom:Oe.bottom-Pe.top,height:Oe.height,left:Oe.left-Pe.left,right:Oe.right-Pe.left,top:Oe.top-Pe.top,width:Oe.width}}},{key:"getContents",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-ye,Oe=Ie(ye,Ae),Pe=J(Oe,2);return ye=Pe[0],Ae=Pe[1],this.editor.getContents(ye,Ae)}},{key:"getFormat",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof ye=="number"?this.editor.getFormat(ye,Ae):this.editor.getFormat(ye.index,ye.length)}},{key:"getIndex",value:function(ye){return ye.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(ye){return this.scroll.leaf(ye)}},{key:"getLine",value:function(ye){return this.scroll.line(ye)}},{key:"getLines",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof ye!="number"?this.scroll.lines(ye.index,ye.length):this.scroll.lines(ye,Ae)}},{key:"getModule",value:function(ye){return this.theme.modules[ye]}},{key:"getSelection",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return ye&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-ye,Oe=Ie(ye,Ae),Pe=J(Oe,2);return ye=Pe[0],Ae=Pe[1],this.editor.getText(ye,Ae)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ye,Ae,Oe){var Pe=this,Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:De.sources.API;return Ce.call(this,function(){return Pe.editor.insertEmbed(ye,Ae,Oe)},Le,ye)}},{key:"insertText",value:function(ye,Ae,Oe,Pe,Le){var Ee=this,Re=void 0,Me=Ie(ye,0,Oe,Pe,Le),Be=J(Me,4);return ye=Be[0],Re=Be[2],Le=Be[3],Ce.call(this,function(){return Ee.editor.insertText(ye,Ae,Re)},Le,ye,Ae.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(ye,Ae,Oe){this.clipboard.dangerouslyPasteHTML(ye,Ae,Oe)}},{key:"removeFormat",value:function(ye,Ae,Oe){var Pe=this,Le=Ie(ye,Ae,Oe),Ee=J(Le,4);return ye=Ee[0],Ae=Ee[1],Oe=Ee[3],Ce.call(this,function(){return Pe.editor.removeFormat(ye,Ae)},Oe,ye)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(ye){var Ae=this,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se.default.sources.API;return Ce.call(this,function(){ye=new ee.default(ye);var Pe=Ae.getLength(),Le=Ae.editor.deleteText(0,Pe),Ee=Ae.editor.applyDelta(ye),Re=Ee.ops[Ee.ops.length-1];Re!=null&&typeof Re.insert=="string"&&Re.insert[Re.insert.length-1]===`
8629
- `&&(Ae.editor.deleteText(Ae.getLength()-1,1),Ee.delete(1));var Me=Le.compose(Ee);return Me},Oe)}},{key:"setSelection",value:function(ye,Ae,Oe){if(ye==null)this.selection.setRange(null,Ae||De.sources.API);else{var Pe=Ie(ye,Ae,Oe),Le=J(Pe,4);ye=Le[0],Ae=Le[1],Oe=Le[3],this.selection.setRange(new ce.Range(ye,Ae),Oe),Oe!==se.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(ye){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se.default.sources.API,Oe=new ee.default().insert(ye);return this.setContents(Oe,Ae)}},{key:"update",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:se.default.sources.USER,Ae=this.scroll.update(ye);return this.selection.update(ye),Ae}},{key:"updateContents",value:function(ye){var Ae=this,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se.default.sources.API;return Ce.call(this,function(){return ye=new ee.default(ye),Ae.editor.applyDelta(ye,Oe)},Oe,!0)}}]),De}();$e.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},$e.events=se.default.events,$e.sources=se.default.sources,$e.version="1.3.6",$e.imports={delta:ee.default,parchment:ae.default,"core/module":oe.default,"core/theme":ke.default};function qe(De,Te){if(Te=(0,he.default)(!0,{container:De,modules:{clipboard:!0,keyboard:!0,history:!0}},Te),!Te.theme||Te.theme===$e.DEFAULTS.theme)Te.theme=ke.default;else if(Te.theme=$e.import("themes/"+Te.theme),Te.theme==null)throw new Error("Invalid theme "+Te.theme+". Did you register it?");var ye=(0,he.default)(!0,{},Te.theme.DEFAULTS);[ye,Te].forEach(function(Pe){Pe.modules=Pe.modules||{},Object.keys(Pe.modules).forEach(function(Le){Pe.modules[Le]===!0&&(Pe.modules[Le]={})})});var Ae=Object.keys(ye.modules).concat(Object.keys(Te.modules)),Oe=Ae.reduce(function(Pe,Le){var Ee=$e.import("modules/"+Le);return Ee==null?ve.error("Cannot load "+Le+" module. Are you sure you registered it?"):Pe[Le]=Ee.DEFAULTS||{},Pe},{});return Te.modules!=null&&Te.modules.toolbar&&Te.modules.toolbar.constructor!==Object&&(Te.modules.toolbar={container:Te.modules.toolbar}),Te=(0,he.default)(!0,{},$e.DEFAULTS,{modules:Oe},ye,Te),["bounds","container","scrollingContainer"].forEach(function(Pe){typeof Te[Pe]=="string"&&(Te[Pe]=document.querySelector(Te[Pe]))}),Te.modules=Object.keys(Te.modules).reduce(function(Pe,Le){return Te.modules[Le]&&(Pe[Le]=Te.modules[Le]),Pe},{}),Te}function Ce(De,Te,ye,Ae){if(this.options.strict&&!this.isEnabled()&&Te===se.default.sources.USER)return new ee.default;var Oe=ye==null?null:this.getSelection(),Pe=this.editor.delta,Le=De();if(Oe!=null&&(ye===!0&&(ye=Oe.index),Ae==null?Oe=Ve(Oe,Le,Te):Ae!==0&&(Oe=Ve(Oe,ye,Ae,Te)),this.setSelection(Oe,se.default.sources.SILENT)),Le.length()>0){var Ee,Re=[se.default.events.TEXT_CHANGE,Le,Pe,Te];if((Ee=this.emitter).emit.apply(Ee,[se.default.events.EDITOR_CHANGE].concat(Re)),Te!==se.default.sources.SILENT){var Me;(Me=this.emitter).emit.apply(Me,Re)}}return Le}function Ie(De,Te,ye,Ae,Oe){var Pe={};return typeof De.index=="number"&&typeof De.length=="number"?typeof Te!="number"?(Oe=Ae,Ae=ye,ye=Te,Te=De.length,De=De.index):(Te=De.length,De=De.index):typeof Te!="number"&&(Oe=Ae,Ae=ye,ye=Te,Te=0),(typeof ye>"u"?"undefined":K(ye))==="object"?(Pe=ye,Oe=Ae):typeof ye=="string"&&(Ae!=null?Pe[ye]=Ae:Oe=ye),Oe=Oe||se.default.sources.API,[De,Te,Pe,Oe]}function Ve(De,Te,ye,Ae){if(De==null)return null;var Oe=void 0,Pe=void 0;if(Te instanceof ee.default){var Le=[De.index,De.index+De.length].map(function(Be){return Te.transformPosition(Be,Ae!==se.default.sources.USER)}),Ee=J(Le,2);Oe=Ee[0],Pe=Ee[1]}else{var Re=[De.index,De.index+De.length].map(function(Be){return Be<Te||Be===Te&&Ae===se.default.sources.USER?Be:ye>=0?Be+ye:Math.max(Te,Be+ye)}),Me=J(Re,2);Oe=Me[0],Pe=Me[1]}return new ce.Range(Oe,Pe-Oe)}G.expandConfig=qe,G.overload=Ie,G.default=$e},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function re(ae,ce){for(var ue=0;ue<ce.length;ue++){var de=ce[ue];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ae,de.key,de)}}return function(ae,ce,ue){return ce&&re(ae.prototype,ce),ue&&re(ae,ue),ae}}(),J=function re(ae,ce,ue){ae===null&&(ae=Function.prototype);var de=Object.getOwnPropertyDescriptor(ae,ce);if(de===void 0){var he=Object.getPrototypeOf(ae);return he===null?void 0:re(he,ce,ue)}else{if("value"in de)return de.value;var me=de.get;return me===void 0?void 0:me.call(ue)}},X=Y(7),ie=Q(X),ee=Y(0),ne=Q(ee);function Q(re){return re&&re.__esModule?re:{default:re}}function te(re,ae){if(!(re instanceof ae))throw new TypeError("Cannot call a class as a function")}function se(re,ae){if(!re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae&&(typeof ae=="object"||typeof ae=="function")?ae:re}function le(re,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ae);re.prototype=Object.create(ae&&ae.prototype,{constructor:{value:re,enumerable:!1,writable:!0,configurable:!0}}),ae&&(Object.setPrototypeOf?Object.setPrototypeOf(re,ae):re.__proto__=ae)}var oe=function(re){le(ae,re);function ae(){return te(this,ae),se(this,(ae.__proto__||Object.getPrototypeOf(ae)).apply(this,arguments))}return K(ae,[{key:"formatAt",value:function(ue,de,he,me){if(ae.compare(this.statics.blotName,he)<0&&ne.default.query(he,ne.default.Scope.BLOT)){var ge=this.isolate(ue,de);me&&ge.wrap(he,me)}else J(ae.prototype.__proto__||Object.getPrototypeOf(ae.prototype),"formatAt",this).call(this,ue,de,he,me)}},{key:"optimize",value:function(ue){if(J(ae.prototype.__proto__||Object.getPrototypeOf(ae.prototype),"optimize",this).call(this,ue),this.parent instanceof ae&&ae.compare(this.statics.blotName,this.parent.statics.blotName)>0){var de=this.parent.isolate(this.offset(),this.length());this.moveChildren(de),de.wrap(this)}}}],[{key:"compare",value:function(ue,de){var he=ae.order.indexOf(ue),me=ae.order.indexOf(de);return he>=0||me>=0?he-me:ue===de?0:ue<de?-1:1}}]),ae}(ne.default.Inline);oe.allowedChildren=[oe,ne.default.Embed,ie.default],oe.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],G.default=oe},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(0),J=X(K);function X(te){return te&&te.__esModule?te:{default:te}}function ie(te,se){if(!(te instanceof se))throw new TypeError("Cannot call a class as a function")}function ee(te,se){if(!te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:te}function ne(te,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);te.prototype=Object.create(se&&se.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(te,se):te.__proto__=se)}var Q=function(te){ne(se,te);function se(){return ie(this,se),ee(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return se}(J.default.Text);G.default=Q},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function he(me,ge){for(var we=0;we<ge.length;we++){var ke=ge[we];ke.enumerable=ke.enumerable||!1,ke.configurable=!0,"value"in ke&&(ke.writable=!0),Object.defineProperty(me,ke.key,ke)}}return function(me,ge,we){return ge&&he(me.prototype,ge),we&&he(me,we),me}}(),J=function he(me,ge,we){me===null&&(me=Function.prototype);var ke=Object.getOwnPropertyDescriptor(me,ge);if(ke===void 0){var _e=Object.getPrototypeOf(me);return _e===null?void 0:he(_e,ge,we)}else{if("value"in ke)return ke.value;var fe=ke.get;return fe===void 0?void 0:fe.call(we)}},X=Y(55),ie=te(X),ee=Y(10),ne=te(ee),Q=Y(34);function te(he){return he&&he.__esModule?he:{default:he}}function se(he,me){if(!(he instanceof me))throw new TypeError("Cannot call a class as a function")}function le(he,me){if(!he)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:he}function oe(he,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);he.prototype=Object.create(me&&me.prototype,{constructor:{value:he,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(he,me):he.__proto__=me)}var re=(0,ne.default)("quill:events"),ae=[Q.SHADOW_SELECTIONCHANGE,"mousedown","mouseup","click"],ce=[],ue="getRootNode"in document;ae.forEach(function(he){document.addEventListener(he,function(){for(var me=arguments.length,ge=Array(me),we=0;we<me;we++)ge[we]=arguments[we];ce.forEach(function(ke){ke.handleDOM.apply(ke,ge)})})});var de=function(he){oe(me,he);function me(){se(this,me);var ge=le(this,(me.__proto__||Object.getPrototypeOf(me)).call(this));return ge.listeners={},ce.push(ge),ge.on("error",re.error),ge}return K(me,[{key:"emit",value:function(){re.log.apply(re,arguments),J(me.prototype.__proto__||Object.getPrototypeOf(me.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(we){for(var ke=arguments.length,_e=Array(ke>1?ke-1:0),fe=1;fe<ke;fe++)_e[fe-1]=arguments[fe];var be=we.composedPath?we.composedPath()[0]:we.target,ve=function(qe,Ce){if(!ue||Ce.getRootNode()===document)return qe.contains(Ce);for(;!qe.contains(Ce);){var Ie=Ce.getRootNode();if(!Ie||!Ie.host)return!1;Ce=Ie.host}return!0};(this.listeners[we.type]||[]).forEach(function($e){var qe=$e.node,Ce=$e.handler;(be===qe||ve(qe,be))&&Ce.apply(void 0,[we].concat(_e))})}},{key:"listenDOM",value:function(we,ke,_e){this.listeners[we]||(this.listeners[we]=[]),this.listeners[we].push({node:ke,handler:_e})}}]),me}(ie.default);de.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"},de.sources={API:"api",SILENT:"silent",USER:"user"},G.default=de},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});function K(X,ie){if(!(X instanceof ie))throw new TypeError("Cannot call a class as a function")}var J=function X(ie){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};K(this,X),this.quill=ie,this.options=ee};J.DEFAULTS={},G.default=J},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=["error","warn","log","info"],J="warn";function X(ee){if(K.indexOf(ee)<=K.indexOf(J)){for(var ne,Q=arguments.length,te=Array(Q>1?Q-1:0),se=1;se<Q;se++)te[se-1]=arguments[se];(ne=console)[ee].apply(ne,te)}}function ie(ee){return K.reduce(function(ne,Q){return ne[Q]=X.bind(console,Q,ee),ne},{})}X.level=ie.level=function(ee){J=ee},G.default=ie},function(U,G,Y){var K=Array.prototype.slice,J=Y(53),X=Y(54),ie=U.exports=function(te,se,le){return le||(le={}),te===se?!0:te instanceof Date&&se instanceof Date?te.getTime()===se.getTime():!te||!se||typeof te!="object"&&typeof se!="object"?le.strict?te===se:te==se:Q(te,se,le)};function ee(te){return te==null}function ne(te){return!(!te||typeof te!="object"||typeof te.length!="number"||typeof te.copy!="function"||typeof te.slice!="function"||te.length>0&&typeof te[0]!="number")}function Q(te,se,le){var oe,re;if(ee(te)||ee(se)||te.prototype!==se.prototype)return!1;if(X(te))return X(se)?(te=K.call(te),se=K.call(se),ie(te,se,le)):!1;if(ne(te)){if(!ne(se)||te.length!==se.length)return!1;for(oe=0;oe<te.length;oe++)if(te[oe]!==se[oe])return!1;return!0}try{var ae=J(te),ce=J(se)}catch{return!1}if(ae.length!=ce.length)return!1;for(ae.sort(),ce.sort(),oe=ae.length-1;oe>=0;oe--)if(ae[oe]!=ce[oe])return!1;for(oe=ae.length-1;oe>=0;oe--)if(re=ae[oe],!ie(te[re],se[re],le))return!1;return typeof te==typeof se}},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(1),J=function(){function X(ie,ee,ne){ne===void 0&&(ne={}),this.attrName=ie,this.keyName=ee;var Q=K.Scope.TYPE&K.Scope.ATTRIBUTE;ne.scope!=null?this.scope=ne.scope&K.Scope.LEVEL|Q:this.scope=K.Scope.ATTRIBUTE,ne.whitelist!=null&&(this.whitelist=ne.whitelist)}return X.keys=function(ie){return[].map.call(ie.attributes,function(ee){return ee.name})},X.prototype.add=function(ie,ee){return this.canAdd(ie,ee)?(ie.setAttribute(this.keyName,ee),!0):!1},X.prototype.canAdd=function(ie,ee){var ne=K.query(ie,K.Scope.BLOT&(this.scope|K.Scope.TYPE));return ne==null?!1:this.whitelist==null?!0:typeof ee=="string"?this.whitelist.indexOf(ee.replace(/["']/g,""))>-1:this.whitelist.indexOf(ee)>-1},X.prototype.remove=function(ie){ie.removeAttribute(this.keyName)},X.prototype.value=function(ie){var ee=ie.getAttribute(this.keyName);return this.canAdd(ie,ee)&&ee?ee:""},X}();G.default=J},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.Code=void 0;var K=function(){function we(ke,_e){var fe=[],be=!0,ve=!1,$e=void 0;try{for(var qe=ke[Symbol.iterator](),Ce;!(be=(Ce=qe.next()).done)&&(fe.push(Ce.value),!(_e&&fe.length===_e));be=!0);}catch(Ie){ve=!0,$e=Ie}finally{try{!be&&qe.return&&qe.return()}finally{if(ve)throw $e}}return fe}return function(ke,_e){if(Array.isArray(ke))return ke;if(Symbol.iterator in Object(ke))return we(ke,_e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),J=function(){function we(ke,_e){for(var fe=0;fe<_e.length;fe++){var be=_e[fe];be.enumerable=be.enumerable||!1,be.configurable=!0,"value"in be&&(be.writable=!0),Object.defineProperty(ke,be.key,be)}}return function(ke,_e,fe){return _e&&we(ke.prototype,_e),fe&&we(ke,fe),ke}}(),X=function we(ke,_e,fe){ke===null&&(ke=Function.prototype);var be=Object.getOwnPropertyDescriptor(ke,_e);if(be===void 0){var ve=Object.getPrototypeOf(ke);return ve===null?void 0:we(ve,_e,fe)}else{if("value"in be)return be.value;var $e=be.get;return $e===void 0?void 0:$e.call(fe)}},ie=Y(2),ee=ce(ie),ne=Y(0),Q=ce(ne),te=Y(4),se=ce(te),le=Y(6),oe=ce(le),re=Y(7),ae=ce(re);function ce(we){return we&&we.__esModule?we:{default:we}}function ue(we,ke){if(!(we instanceof ke))throw new TypeError("Cannot call a class as a function")}function de(we,ke){if(!we)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ke&&(typeof ke=="object"||typeof ke=="function")?ke:we}function he(we,ke){if(typeof ke!="function"&&ke!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ke);we.prototype=Object.create(ke&&ke.prototype,{constructor:{value:we,enumerable:!1,writable:!0,configurable:!0}}),ke&&(Object.setPrototypeOf?Object.setPrototypeOf(we,ke):we.__proto__=ke)}var me=function(we){he(ke,we);function ke(){return ue(this,ke),de(this,(ke.__proto__||Object.getPrototypeOf(ke)).apply(this,arguments))}return ke}(oe.default);me.blotName="code",me.tagName="CODE";var ge=function(we){he(ke,we);function ke(){return ue(this,ke),de(this,(ke.__proto__||Object.getPrototypeOf(ke)).apply(this,arguments))}return J(ke,[{key:"delta",value:function(){var fe=this,be=this.domNode.textContent;return be.endsWith(`
8637
+ */(function(W,O){(function(G,Y){W.exports=Y()})(typeof self<"u"?self:commonjsGlobal,function(){return function(U){var G={};function Y(K){if(G[K])return G[K].exports;var J=G[K]={i:K,l:!1,exports:{}};return U[K].call(J.exports,J,J.exports,Y),J.l=!0,J.exports}return Y.m=U,Y.c=G,Y.d=function(K,J,X){Y.o(K,J)||Object.defineProperty(K,J,{configurable:!1,enumerable:!0,get:X})},Y.n=function(K){var J=K&&K.__esModule?function(){return K.default}:function(){return K};return Y.d(J,"a",J),J},Y.o=function(K,J){return Object.prototype.hasOwnProperty.call(K,J)},Y.p="",Y(Y.s=110)}([function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(17),J=Y(18),X=Y(19),se=Y(46),ee=Y(47),ne=Y(48),Q=Y(49),te=Y(50),ie=Y(12),le=Y(32),oe=Y(33),re=Y(31),ae=Y(1),ce={Scope:ae.Scope,create:ae.create,find:ae.find,query:ae.query,register:ae.register,Container:K.default,Format:J.default,Leaf:X.default,Embed:Q.default,Scroll:se.default,Block:ne.default,Inline:ee.default,Text:te.default,Attributor:{Attribute:ie.default,Class:le.default,Style:oe.default,Store:re.default}};G.default=ce},function(U,G,Y){var K=this&&this.__extends||function(){var re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,ce){ae.__proto__=ce}||function(ae,ce){for(var ue in ce)ce.hasOwnProperty(ue)&&(ae[ue]=ce[ue])};return function(ae,ce){re(ae,ce);function ue(){this.constructor=ae}ae.prototype=ce===null?Object.create(ce):(ue.prototype=ce.prototype,new ue)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=function(re){K(ae,re);function ae(ce){var ue=this;return ce="[Parchment] "+ce,ue=re.call(this,ce)||this,ue.message=ce,ue.name=ue.constructor.name,ue}return ae}(Error);G.ParchmentError=J;var X={},se={},ee={},ne={};G.DATA_KEY="__blot";var Q;(function(re){re[re.TYPE=3]="TYPE",re[re.LEVEL=12]="LEVEL",re[re.ATTRIBUTE=13]="ATTRIBUTE",re[re.BLOT=14]="BLOT",re[re.INLINE=7]="INLINE",re[re.BLOCK=11]="BLOCK",re[re.BLOCK_BLOT=10]="BLOCK_BLOT",re[re.INLINE_BLOT=6]="INLINE_BLOT",re[re.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",re[re.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",re[re.ANY=15]="ANY"})(Q=G.Scope||(G.Scope={}));function te(re,ae){var ce=le(re);if(ce==null)throw new J("Unable to create "+re+" blot");var ue=ce,de=re instanceof Node||re.nodeType===Node.TEXT_NODE?re:ue.create(ae);return new ue(de,ae)}G.create=te;function ie(re,ae){return ae===void 0&&(ae=!1),re==null?null:re[G.DATA_KEY]!=null?re[G.DATA_KEY].blot:ae?ie(re.parentNode,ae):null}G.find=ie;function le(re,ae){ae===void 0&&(ae=Q.ANY);var ce;if(typeof re=="string")ce=ne[re]||X[re];else if(re instanceof Text||re.nodeType===Node.TEXT_NODE)ce=ne.text;else if(typeof re=="number")re&Q.LEVEL&Q.BLOCK?ce=ne.block:re&Q.LEVEL&Q.INLINE&&(ce=ne.inline);else if(re instanceof HTMLElement){var ue=(re.getAttribute("class")||"").split(/\s+/);for(var de in ue)if(ce=se[ue[de]],ce)break;ce=ce||ee[re.tagName]}return ce==null?null:ae&Q.LEVEL&ce.scope&&ae&Q.TYPE&ce.scope?ce:null}G.query=le;function oe(){for(var re=[],ae=0;ae<arguments.length;ae++)re[ae]=arguments[ae];if(re.length>1)return re.map(function(de){return oe(de)});var ce=re[0];if(typeof ce.blotName!="string"&&typeof ce.attrName!="string")throw new J("Invalid definition");if(ce.blotName==="abstract")throw new J("Cannot register abstract class");if(ne[ce.blotName||ce.attrName]=ce,typeof ce.keyName=="string")X[ce.keyName]=ce;else if(ce.className!=null&&(se[ce.className]=ce),ce.tagName!=null){Array.isArray(ce.tagName)?ce.tagName=ce.tagName.map(function(de){return de.toUpperCase()}):ce.tagName=ce.tagName.toUpperCase();var ue=Array.isArray(ce.tagName)?ce.tagName:[ce.tagName];ue.forEach(function(de){(ee[de]==null||ce.className==null)&&(ee[de]=ce)})}return ce}G.register=oe},function(U,G,Y){var K=Y(52),J=Y(11),X=Y(3),se=Y(20),ee="\0",ne=function(Q){Array.isArray(Q)?this.ops=Q:Q!=null&&Array.isArray(Q.ops)?this.ops=Q.ops:this.ops=[]};ne.prototype.insert=function(Q,te){var ie={};return Q.length===0?this:(ie.insert=Q,te!=null&&typeof te=="object"&&Object.keys(te).length>0&&(ie.attributes=te),this.push(ie))},ne.prototype.delete=function(Q){return Q<=0?this:this.push({delete:Q})},ne.prototype.retain=function(Q,te){if(Q<=0)return this;var ie={retain:Q};return te!=null&&typeof te=="object"&&Object.keys(te).length>0&&(ie.attributes=te),this.push(ie)},ne.prototype.push=function(Q){var te=this.ops.length,ie=this.ops[te-1];if(Q=X(!0,{},Q),typeof ie=="object"){if(typeof Q.delete=="number"&&typeof ie.delete=="number")return this.ops[te-1]={delete:ie.delete+Q.delete},this;if(typeof ie.delete=="number"&&Q.insert!=null&&(te-=1,ie=this.ops[te-1],typeof ie!="object"))return this.ops.unshift(Q),this;if(J(Q.attributes,ie.attributes)){if(typeof Q.insert=="string"&&typeof ie.insert=="string")return this.ops[te-1]={insert:ie.insert+Q.insert},typeof Q.attributes=="object"&&(this.ops[te-1].attributes=Q.attributes),this;if(typeof Q.retain=="number"&&typeof ie.retain=="number")return this.ops[te-1]={retain:ie.retain+Q.retain},typeof Q.attributes=="object"&&(this.ops[te-1].attributes=Q.attributes),this}}return te===this.ops.length?this.ops.push(Q):this.ops.splice(te,0,Q),this},ne.prototype.chop=function(){var Q=this.ops[this.ops.length-1];return Q&&Q.retain&&!Q.attributes&&this.ops.pop(),this},ne.prototype.filter=function(Q){return this.ops.filter(Q)},ne.prototype.forEach=function(Q){this.ops.forEach(Q)},ne.prototype.map=function(Q){return this.ops.map(Q)},ne.prototype.partition=function(Q){var te=[],ie=[];return this.forEach(function(le){var oe=Q(le)?te:ie;oe.push(le)}),[te,ie]},ne.prototype.reduce=function(Q,te){return this.ops.reduce(Q,te)},ne.prototype.changeLength=function(){return this.reduce(function(Q,te){return te.insert?Q+se.length(te):te.delete?Q-te.delete:Q},0)},ne.prototype.length=function(){return this.reduce(function(Q,te){return Q+se.length(te)},0)},ne.prototype.slice=function(Q,te){Q=Q||0,typeof te!="number"&&(te=1/0);for(var ie=[],le=se.iterator(this.ops),oe=0;oe<te&&le.hasNext();){var re;oe<Q?re=le.next(Q-oe):(re=le.next(te-oe),ie.push(re)),oe+=se.length(re)}return new ne(ie)},ne.prototype.compose=function(Q){var te=se.iterator(this.ops),ie=se.iterator(Q.ops),le=[],oe=ie.peek();if(oe!=null&&typeof oe.retain=="number"&&oe.attributes==null){for(var re=oe.retain;te.peekType()==="insert"&&te.peekLength()<=re;)re-=te.peekLength(),le.push(te.next());oe.retain-re>0&&ie.next(oe.retain-re)}for(var ae=new ne(le);te.hasNext()||ie.hasNext();)if(ie.peekType()==="insert")ae.push(ie.next());else if(te.peekType()==="delete")ae.push(te.next());else{var ce=Math.min(te.peekLength(),ie.peekLength()),ue=te.next(ce),de=ie.next(ce);if(typeof de.retain=="number"){var he={};typeof ue.retain=="number"?he.retain=ce:he.insert=ue.insert;var me=se.attributes.compose(ue.attributes,de.attributes,typeof ue.retain=="number");if(me&&(he.attributes=me),ae.push(he),!ie.hasNext()&&J(ae.ops[ae.ops.length-1],he)){var ge=new ne(te.rest());return ae.concat(ge).chop()}}else typeof de.delete=="number"&&typeof ue.retain=="number"&&ae.push(de)}return ae.chop()},ne.prototype.concat=function(Q){var te=new ne(this.ops.slice());return Q.ops.length>0&&(te.push(Q.ops[0]),te.ops=te.ops.concat(Q.ops.slice(1))),te},ne.prototype.diff=function(Q,te){if(this.ops===Q.ops)return new ne;var ie=[this,Q].map(function(ce){return ce.map(function(ue){if(ue.insert!=null)return typeof ue.insert=="string"?ue.insert:ee;var de=ce===Q?"on":"with";throw new Error("diff() called "+de+" non-document")}).join("")}),le=new ne,oe=K(ie[0],ie[1],te),re=se.iterator(this.ops),ae=se.iterator(Q.ops);return oe.forEach(function(ce){for(var ue=ce[1].length;ue>0;){var de=0;switch(ce[0]){case K.INSERT:de=Math.min(ae.peekLength(),ue),le.push(ae.next(de));break;case K.DELETE:de=Math.min(ue,re.peekLength()),re.next(de),le.delete(de);break;case K.EQUAL:de=Math.min(re.peekLength(),ae.peekLength(),ue);var he=re.next(de),me=ae.next(de);J(he.insert,me.insert)?le.retain(de,se.attributes.diff(he.attributes,me.attributes)):le.push(me).delete(de);break}ue-=de}}),le.chop()},ne.prototype.eachLine=function(Q,te){te=te||`
8638
+ `;for(var ie=se.iterator(this.ops),le=new ne,oe=0;ie.hasNext();){if(ie.peekType()!=="insert")return;var re=ie.peek(),ae=se.length(re)-ie.peekLength(),ce=typeof re.insert=="string"?re.insert.indexOf(te,ae)-ae:-1;if(ce<0)le.push(ie.next());else if(ce>0)le.push(ie.next(ce));else{if(Q(le,ie.next(1).attributes||{},oe)===!1)return;oe+=1,le=new ne}}le.length()>0&&Q(le,{},oe)},ne.prototype.transform=function(Q,te){if(te=!!te,typeof Q=="number")return this.transformPosition(Q,te);for(var ie=se.iterator(this.ops),le=se.iterator(Q.ops),oe=new ne;ie.hasNext()||le.hasNext();)if(ie.peekType()==="insert"&&(te||le.peekType()!=="insert"))oe.retain(se.length(ie.next()));else if(le.peekType()==="insert")oe.push(le.next());else{var re=Math.min(ie.peekLength(),le.peekLength()),ae=ie.next(re),ce=le.next(re);if(ae.delete)continue;ce.delete?oe.push(ce):oe.retain(re,se.attributes.transform(ae.attributes,ce.attributes,te))}return oe.chop()},ne.prototype.transformPosition=function(Q,te){te=!!te;for(var ie=se.iterator(this.ops),le=0;ie.hasNext()&&le<=Q;){var oe=ie.peekLength(),re=ie.peekType();if(ie.next(),re==="delete"){Q-=Math.min(oe,Q-le);continue}else re==="insert"&&(le<Q||!te)&&(Q+=oe);le+=oe}return Q},U.exports=ne},function(U,G){var Y=Object.prototype.hasOwnProperty,K=Object.prototype.toString,J=Object.defineProperty,X=Object.getOwnPropertyDescriptor,se=function(ie){return typeof Array.isArray=="function"?Array.isArray(ie):K.call(ie)==="[object Array]"},ee=function(ie){if(!ie||K.call(ie)!=="[object Object]")return!1;var le=Y.call(ie,"constructor"),oe=ie.constructor&&ie.constructor.prototype&&Y.call(ie.constructor.prototype,"isPrototypeOf");if(ie.constructor&&!le&&!oe)return!1;var re;for(re in ie);return typeof re>"u"||Y.call(ie,re)},ne=function(ie,le){J&&le.name==="__proto__"?J(ie,le.name,{enumerable:!0,configurable:!0,value:le.newValue,writable:!0}):ie[le.name]=le.newValue},Q=function(ie,le){if(le==="__proto__")if(Y.call(ie,le)){if(X)return X(ie,le).value}else return;return ie[le]};U.exports=function te(){var ie,le,oe,re,ae,ce,ue=arguments[0],de=1,he=arguments.length,me=!1;for(typeof ue=="boolean"&&(me=ue,ue=arguments[1]||{},de=2),(ue==null||typeof ue!="object"&&typeof ue!="function")&&(ue={});de<he;++de)if(ie=arguments[de],ie!=null)for(le in ie)oe=Q(ue,le),re=Q(ie,le),ue!==re&&(me&&re&&(ee(re)||(ae=se(re)))?(ae?(ae=!1,ce=oe&&se(oe)?oe:[]):ce=oe&&ee(oe)?oe:{},ne(ue,{name:le,newValue:te(me,ce,re)})):typeof re<"u"&&ne(ue,{name:le,newValue:re}));return ue}},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.BlockEmbed=G.bubbleFormats=void 0;var K=function(){function fe(be,ve){for(var $e=0;$e<ve.length;$e++){var Te=ve[$e];Te.enumerable=Te.enumerable||!1,Te.configurable=!0,"value"in Te&&(Te.writable=!0),Object.defineProperty(be,Te.key,Te)}}return function(be,ve,$e){return ve&&fe(be.prototype,ve),$e&&fe(be,$e),be}}(),J=function fe(be,ve,$e){be===null&&(be=Function.prototype);var Te=Object.getOwnPropertyDescriptor(be,ve);if(Te===void 0){var Ce=Object.getPrototypeOf(be);return Ce===null?void 0:fe(Ce,ve,$e)}else{if("value"in Te)return Te.value;var Ie=Te.get;return Ie===void 0?void 0:Ie.call($e)}},X=Y(3),se=ue(X),ee=Y(2),ne=ue(ee),Q=Y(0),te=ue(Q),ie=Y(16),le=ue(ie),oe=Y(6),re=ue(oe),ae=Y(7),ce=ue(ae);function ue(fe){return fe&&fe.__esModule?fe:{default:fe}}function de(fe,be){if(!(fe instanceof be))throw new TypeError("Cannot call a class as a function")}function he(fe,be){if(!fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be&&(typeof be=="object"||typeof be=="function")?be:fe}function me(fe,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof be);fe.prototype=Object.create(be&&be.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),be&&(Object.setPrototypeOf?Object.setPrototypeOf(fe,be):fe.__proto__=be)}var ge=1,we=function(fe){me(be,fe);function be(){return de(this,be),he(this,(be.__proto__||Object.getPrototypeOf(be)).apply(this,arguments))}return K(be,[{key:"attach",value:function(){J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"attach",this).call(this),this.attributes=new te.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new ne.default().insert(this.value(),(0,se.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function($e,Te){var Ce=te.default.query($e,te.default.Scope.BLOCK_ATTRIBUTE);Ce!=null&&this.attributes.attribute(Ce,Te)}},{key:"formatAt",value:function($e,Te,Ce,Ie){this.format(Ce,Ie)}},{key:"insertAt",value:function($e,Te,Ce){if(typeof Te=="string"&&Te.endsWith(`
8639
+ `)){var Ie=te.default.create(Se.blotName);this.parent.insertBefore(Ie,$e===0?this:this.next),Ie.insertAt(0,Te.slice(0,-1))}else J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"insertAt",this).call(this,$e,Te,Ce)}}]),be}(te.default.Embed);we.scope=te.default.Scope.BLOCK_BLOT;var Se=function(fe){me(be,fe);function be(ve){de(this,be);var $e=he(this,(be.__proto__||Object.getPrototypeOf(be)).call(this,ve));return $e.cache={},$e}return K(be,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(te.default.Leaf).reduce(function($e,Te){return Te.length()===0?$e:$e.insert(Te.value(),_e(Te))},new ne.default).insert(`
8640
+ `,_e(this))),this.cache.delta}},{key:"deleteAt",value:function($e,Te){J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"deleteAt",this).call(this,$e,Te),this.cache={}}},{key:"formatAt",value:function($e,Te,Ce,Ie){Te<=0||(te.default.query(Ce,te.default.Scope.BLOCK)?$e+Te===this.length()&&this.format(Ce,Ie):J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"formatAt",this).call(this,$e,Math.min(Te,this.length()-$e-1),Ce,Ie),this.cache={})}},{key:"insertAt",value:function($e,Te,Ce){if(Ce!=null)return J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"insertAt",this).call(this,$e,Te,Ce);if(Te.length!==0){var Ie=Te.split(`
8641
+ `),Ge=Ie.shift();Ge.length>0&&($e<this.length()-1||this.children.tail==null?J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"insertAt",this).call(this,Math.min($e,this.length()-1),Ge):this.children.tail.insertAt(this.children.tail.length(),Ge),this.cache={});var De=this;Ie.reduce(function(Oe,ye){return De=De.split(Oe,!0),De.insertAt(0,ye),ye.length},$e+Ge.length)}}},{key:"insertBefore",value:function($e,Te){var Ce=this.children.head;J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"insertBefore",this).call(this,$e,Te),Ce instanceof le.default&&Ce.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"length",this).call(this)+ge),this.cache.length}},{key:"moveChildren",value:function($e,Te){J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"moveChildren",this).call(this,$e,Te),this.cache={}}},{key:"optimize",value:function($e){J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"optimize",this).call(this,$e),this.cache={}}},{key:"path",value:function($e){return J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"path",this).call(this,$e,!0)}},{key:"removeChild",value:function($e){J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"removeChild",this).call(this,$e),this.cache={}}},{key:"split",value:function($e){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Te&&($e===0||$e>=this.length()-ge)){var Ce=this.clone();return $e===0?(this.parent.insertBefore(Ce,this),this):(this.parent.insertBefore(Ce,this.next),Ce)}else{var Ie=J(be.prototype.__proto__||Object.getPrototypeOf(be.prototype),"split",this).call(this,$e,Te);return this.cache={},Ie}}}]),be}(te.default.Block);Se.blotName="block",Se.tagName="P",Se.defaultChild="break",Se.allowedChildren=[re.default,te.default.Embed,ce.default];function _e(fe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return fe==null||(typeof fe.formats=="function"&&(be=(0,se.default)(be,fe.formats())),fe.parent==null||fe.parent.blotName=="scroll"||fe.parent.statics.scope!==fe.statics.scope)?be:_e(fe.parent,be)}G.bubbleFormats=_e,G.BlockEmbed=we,G.default=Se},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.overload=G.expandConfig=void 0;var K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(De){return typeof De}:function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De},J=function(){function De(Oe,ye){var ke=[],qe=!0,Le=!1,Ne=void 0;try{for(var Ee=Oe[Symbol.iterator](),Re;!(qe=(Re=Ee.next()).done)&&(ke.push(Re.value),!(ye&&ke.length===ye));qe=!0);}catch(Be){Le=!0,Ne=Be}finally{try{!qe&&Ee.return&&Ee.return()}finally{if(Le)throw Ne}}return ke}return function(Oe,ye){if(Array.isArray(Oe))return Oe;if(Symbol.iterator in Object(Oe))return De(Oe,ye);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),X=function(){function De(Oe,ye){for(var ke=0;ke<ye.length;ke++){var qe=ye[ke];qe.enumerable=qe.enumerable||!1,qe.configurable=!0,"value"in qe&&(qe.writable=!0),Object.defineProperty(Oe,qe.key,qe)}}return function(Oe,ye,ke){return ye&&De(Oe.prototype,ye),ke&&De(Oe,ke),Oe}}();Y(51);var se=Y(2),ee=_e(se),ne=Y(14),Q=_e(ne),te=Y(8),ie=_e(te),le=Y(9),oe=_e(le),re=Y(0),ae=_e(re),ce=Y(15),ue=_e(ce),de=Y(3),he=_e(de),me=Y(10),ge=_e(me),we=Y(35),Se=_e(we);function _e(De){return De&&De.__esModule?De:{default:De}}function fe(De,Oe,ye){return Oe in De?Object.defineProperty(De,Oe,{value:ye,enumerable:!0,configurable:!0,writable:!0}):De[Oe]=ye,De}function be(De,Oe){if(!(De instanceof Oe))throw new TypeError("Cannot call a class as a function")}var ve=(0,ge.default)("quill"),$e=function(){X(De,null,[{key:"debug",value:function(ye){ye===!0&&(ye="log"),ge.default.level(ye)}},{key:"find",value:function(ye){return ye.__quill||ae.default.find(ye)}},{key:"import",value:function(ye){return this.imports[ye]==null&&ve.error("Cannot import "+ye+". Are you sure it was registered?"),this.imports[ye]}},{key:"register",value:function(ye,ke){var qe=this,Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof ye!="string"){var Ne=ye.attrName||ye.blotName;typeof Ne=="string"?this.register("formats/"+Ne,ye,ke):Object.keys(ye).forEach(function(Ee){qe.register(Ee,ye[Ee],ke)})}else this.imports[ye]!=null&&!Le&&ve.warn("Overwriting "+ye+" with",ke),this.imports[ye]=ke,(ye.startsWith("blots/")||ye.startsWith("formats/"))&&ke.blotName!=="abstract"?ae.default.register(ke):ye.startsWith("modules")&&typeof ke.register=="function"&&ke.register()}}]);function De(Oe){var ye=this,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(be(this,De),this.options=Te(Oe,ke),this.container=this.options.container,this.container==null)return ve.error("Invalid Quill container",Oe);this.options.debug&&De.debug(this.options.debug);var qe=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 ie.default,this.scroll=ae.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new Q.default(this.scroll),this.selection=new ue.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(ie.default.events.EDITOR_CHANGE,function(Ne){Ne===ie.default.events.TEXT_CHANGE&&ye.root.classList.toggle("ql-blank",ye.editor.isBlank())}),this.emitter.on(ie.default.events.SCROLL_UPDATE,function(Ne,Ee){var Re=ye.selection.lastRange,Be=Re&&Re.length===0?Re.index:void 0;Ce.call(ye,function(){return ye.editor.update(null,Ee,Be)},Ne)});var Le=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+qe+"<p><br></p></div>");this.setContents(Le),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return X(De,[{key:"addContainer",value:function(ye){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof ye=="string"){var qe=ye;ye=document.createElement("div"),ye.classList.add(qe)}return this.container.insertBefore(ye,ke),ye}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ye,ke,qe){var Le=this,Ne=Ie(ye,ke,qe),Ee=J(Ne,4);return ye=Ee[0],ke=Ee[1],qe=Ee[3],Ce.call(this,function(){return Le.editor.deleteText(ye,ke)},qe,ye,-1*ke)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(ye),this.container.classList.toggle("ql-disabled",!ye)}},{key:"focus",value:function(){var ye=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=ye,this.scrollIntoView()}},{key:"format",value:function(ye,ke){var qe=this,Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ie.default.sources.API;return Ce.call(this,function(){var Ne=qe.getSelection(!0),Ee=new ee.default;if(Ne==null)return Ee;if(ae.default.query(ye,ae.default.Scope.BLOCK))Ee=qe.editor.formatLine(Ne.index,Ne.length,fe({},ye,ke));else{if(Ne.length===0)return qe.selection.format(ye,ke),Ee;Ee=qe.editor.formatText(Ne.index,Ne.length,fe({},ye,ke))}return qe.setSelection(Ne,ie.default.sources.SILENT),Ee},Le)}},{key:"formatLine",value:function(ye,ke,qe,Le,Ne){var Ee=this,Re=void 0,Be=Ie(ye,ke,qe,Le,Ne),Ue=J(Be,4);return ye=Ue[0],ke=Ue[1],Re=Ue[2],Ne=Ue[3],Ce.call(this,function(){return Ee.editor.formatLine(ye,ke,Re)},Ne,ye,0)}},{key:"formatText",value:function(ye,ke,qe,Le,Ne){var Ee=this,Re=void 0,Be=Ie(ye,ke,qe,Le,Ne),Ue=J(Be,4);return ye=Ue[0],ke=Ue[1],Re=Ue[2],Ne=Ue[3],Ce.call(this,function(){return Ee.editor.formatText(ye,ke,Re)},Ne,ye,0)}},{key:"getBounds",value:function(ye){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,qe=void 0;typeof ye=="number"?qe=this.selection.getBounds(ye,ke):qe=this.selection.getBounds(ye.index,ye.length);var Le=this.container.getBoundingClientRect();return{bottom:qe.bottom-Le.top,height:qe.height,left:qe.left-Le.left,right:qe.right-Le.left,top:qe.top-Le.top,width:qe.width}}},{key:"getContents",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-ye,qe=Ie(ye,ke),Le=J(qe,2);return ye=Le[0],ke=Le[1],this.editor.getContents(ye,ke)}},{key:"getFormat",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof ye=="number"?this.editor.getFormat(ye,ke):this.editor.getFormat(ye.index,ye.length)}},{key:"getIndex",value:function(ye){return ye.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(ye){return this.scroll.leaf(ye)}},{key:"getLine",value:function(ye){return this.scroll.line(ye)}},{key:"getLines",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof ye!="number"?this.scroll.lines(ye.index,ye.length):this.scroll.lines(ye,ke)}},{key:"getModule",value:function(ye){return this.theme.modules[ye]}},{key:"getSelection",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return ye&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-ye,qe=Ie(ye,ke),Le=J(qe,2);return ye=Le[0],ke=Le[1],this.editor.getText(ye,ke)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ye,ke,qe){var Le=this,Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:De.sources.API;return Ce.call(this,function(){return Le.editor.insertEmbed(ye,ke,qe)},Ne,ye)}},{key:"insertText",value:function(ye,ke,qe,Le,Ne){var Ee=this,Re=void 0,Be=Ie(ye,0,qe,Le,Ne),Ue=J(Be,4);return ye=Ue[0],Re=Ue[2],Ne=Ue[3],Ce.call(this,function(){return Ee.editor.insertText(ye,ke,Re)},Ne,ye,ke.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(ye,ke,qe){this.clipboard.dangerouslyPasteHTML(ye,ke,qe)}},{key:"removeFormat",value:function(ye,ke,qe){var Le=this,Ne=Ie(ye,ke,qe),Ee=J(Ne,4);return ye=Ee[0],ke=Ee[1],qe=Ee[3],Ce.call(this,function(){return Le.editor.removeFormat(ye,ke)},qe,ye)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(ye){var ke=this,qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ie.default.sources.API;return Ce.call(this,function(){ye=new ee.default(ye);var Le=ke.getLength(),Ne=ke.editor.deleteText(0,Le),Ee=ke.editor.applyDelta(ye),Re=Ee.ops[Ee.ops.length-1];Re!=null&&typeof Re.insert=="string"&&Re.insert[Re.insert.length-1]===`
8642
+ `&&(ke.editor.deleteText(ke.getLength()-1,1),Ee.delete(1));var Be=Ne.compose(Ee);return Be},qe)}},{key:"setSelection",value:function(ye,ke,qe){if(ye==null)this.selection.setRange(null,ke||De.sources.API);else{var Le=Ie(ye,ke,qe),Ne=J(Le,4);ye=Ne[0],ke=Ne[1],qe=Ne[3],this.selection.setRange(new ce.Range(ye,ke),qe),qe!==ie.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(ye){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ie.default.sources.API,qe=new ee.default().insert(ye);return this.setContents(qe,ke)}},{key:"update",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ie.default.sources.USER,ke=this.scroll.update(ye);return this.selection.update(ye),ke}},{key:"updateContents",value:function(ye){var ke=this,qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ie.default.sources.API;return Ce.call(this,function(){return ye=new ee.default(ye),ke.editor.applyDelta(ye,qe)},qe,!0)}}]),De}();$e.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},$e.events=ie.default.events,$e.sources=ie.default.sources,$e.version="1.3.6",$e.imports={delta:ee.default,parchment:ae.default,"core/module":oe.default,"core/theme":Se.default};function Te(De,Oe){if(Oe=(0,he.default)(!0,{container:De,modules:{clipboard:!0,keyboard:!0,history:!0}},Oe),!Oe.theme||Oe.theme===$e.DEFAULTS.theme)Oe.theme=Se.default;else if(Oe.theme=$e.import("themes/"+Oe.theme),Oe.theme==null)throw new Error("Invalid theme "+Oe.theme+". Did you register it?");var ye=(0,he.default)(!0,{},Oe.theme.DEFAULTS);[ye,Oe].forEach(function(Le){Le.modules=Le.modules||{},Object.keys(Le.modules).forEach(function(Ne){Le.modules[Ne]===!0&&(Le.modules[Ne]={})})});var ke=Object.keys(ye.modules).concat(Object.keys(Oe.modules)),qe=ke.reduce(function(Le,Ne){var Ee=$e.import("modules/"+Ne);return Ee==null?ve.error("Cannot load "+Ne+" module. Are you sure you registered it?"):Le[Ne]=Ee.DEFAULTS||{},Le},{});return Oe.modules!=null&&Oe.modules.toolbar&&Oe.modules.toolbar.constructor!==Object&&(Oe.modules.toolbar={container:Oe.modules.toolbar}),Oe=(0,he.default)(!0,{},$e.DEFAULTS,{modules:qe},ye,Oe),["bounds","container","scrollingContainer"].forEach(function(Le){typeof Oe[Le]=="string"&&(Oe[Le]=document.querySelector(Oe[Le]))}),Oe.modules=Object.keys(Oe.modules).reduce(function(Le,Ne){return Oe.modules[Ne]&&(Le[Ne]=Oe.modules[Ne]),Le},{}),Oe}function Ce(De,Oe,ye,ke){if(this.options.strict&&!this.isEnabled()&&Oe===ie.default.sources.USER)return new ee.default;var qe=ye==null?null:this.getSelection(),Le=this.editor.delta,Ne=De();if(qe!=null&&(ye===!0&&(ye=qe.index),ke==null?qe=Ge(qe,Ne,Oe):ke!==0&&(qe=Ge(qe,ye,ke,Oe)),this.setSelection(qe,ie.default.sources.SILENT)),Ne.length()>0){var Ee,Re=[ie.default.events.TEXT_CHANGE,Ne,Le,Oe];if((Ee=this.emitter).emit.apply(Ee,[ie.default.events.EDITOR_CHANGE].concat(Re)),Oe!==ie.default.sources.SILENT){var Be;(Be=this.emitter).emit.apply(Be,Re)}}return Ne}function Ie(De,Oe,ye,ke,qe){var Le={};return typeof De.index=="number"&&typeof De.length=="number"?typeof Oe!="number"?(qe=ke,ke=ye,ye=Oe,Oe=De.length,De=De.index):(Oe=De.length,De=De.index):typeof Oe!="number"&&(qe=ke,ke=ye,ye=Oe,Oe=0),(typeof ye>"u"?"undefined":K(ye))==="object"?(Le=ye,qe=ke):typeof ye=="string"&&(ke!=null?Le[ye]=ke:qe=ye),qe=qe||ie.default.sources.API,[De,Oe,Le,qe]}function Ge(De,Oe,ye,ke){if(De==null)return null;var qe=void 0,Le=void 0;if(Oe instanceof ee.default){var Ne=[De.index,De.index+De.length].map(function(Ue){return Oe.transformPosition(Ue,ke!==ie.default.sources.USER)}),Ee=J(Ne,2);qe=Ee[0],Le=Ee[1]}else{var Re=[De.index,De.index+De.length].map(function(Ue){return Ue<Oe||Ue===Oe&&ke===ie.default.sources.USER?Ue:ye>=0?Ue+ye:Math.max(Oe,Ue+ye)}),Be=J(Re,2);qe=Be[0],Le=Be[1]}return new ce.Range(qe,Le-qe)}G.expandConfig=Te,G.overload=Ie,G.default=$e},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function re(ae,ce){for(var ue=0;ue<ce.length;ue++){var de=ce[ue];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ae,de.key,de)}}return function(ae,ce,ue){return ce&&re(ae.prototype,ce),ue&&re(ae,ue),ae}}(),J=function re(ae,ce,ue){ae===null&&(ae=Function.prototype);var de=Object.getOwnPropertyDescriptor(ae,ce);if(de===void 0){var he=Object.getPrototypeOf(ae);return he===null?void 0:re(he,ce,ue)}else{if("value"in de)return de.value;var me=de.get;return me===void 0?void 0:me.call(ue)}},X=Y(7),se=Q(X),ee=Y(0),ne=Q(ee);function Q(re){return re&&re.__esModule?re:{default:re}}function te(re,ae){if(!(re instanceof ae))throw new TypeError("Cannot call a class as a function")}function ie(re,ae){if(!re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae&&(typeof ae=="object"||typeof ae=="function")?ae:re}function le(re,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ae);re.prototype=Object.create(ae&&ae.prototype,{constructor:{value:re,enumerable:!1,writable:!0,configurable:!0}}),ae&&(Object.setPrototypeOf?Object.setPrototypeOf(re,ae):re.__proto__=ae)}var oe=function(re){le(ae,re);function ae(){return te(this,ae),ie(this,(ae.__proto__||Object.getPrototypeOf(ae)).apply(this,arguments))}return K(ae,[{key:"formatAt",value:function(ue,de,he,me){if(ae.compare(this.statics.blotName,he)<0&&ne.default.query(he,ne.default.Scope.BLOT)){var ge=this.isolate(ue,de);me&&ge.wrap(he,me)}else J(ae.prototype.__proto__||Object.getPrototypeOf(ae.prototype),"formatAt",this).call(this,ue,de,he,me)}},{key:"optimize",value:function(ue){if(J(ae.prototype.__proto__||Object.getPrototypeOf(ae.prototype),"optimize",this).call(this,ue),this.parent instanceof ae&&ae.compare(this.statics.blotName,this.parent.statics.blotName)>0){var de=this.parent.isolate(this.offset(),this.length());this.moveChildren(de),de.wrap(this)}}}],[{key:"compare",value:function(ue,de){var he=ae.order.indexOf(ue),me=ae.order.indexOf(de);return he>=0||me>=0?he-me:ue===de?0:ue<de?-1:1}}]),ae}(ne.default.Inline);oe.allowedChildren=[oe,ne.default.Embed,se.default],oe.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],G.default=oe},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(0),J=X(K);function X(te){return te&&te.__esModule?te:{default:te}}function se(te,ie){if(!(te instanceof ie))throw new TypeError("Cannot call a class as a function")}function ee(te,ie){if(!te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ie&&(typeof ie=="object"||typeof ie=="function")?ie:te}function ne(te,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ie);te.prototype=Object.create(ie&&ie.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}),ie&&(Object.setPrototypeOf?Object.setPrototypeOf(te,ie):te.__proto__=ie)}var Q=function(te){ne(ie,te);function ie(){return se(this,ie),ee(this,(ie.__proto__||Object.getPrototypeOf(ie)).apply(this,arguments))}return ie}(J.default.Text);G.default=Q},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function he(me,ge){for(var we=0;we<ge.length;we++){var Se=ge[we];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(me,Se.key,Se)}}return function(me,ge,we){return ge&&he(me.prototype,ge),we&&he(me,we),me}}(),J=function he(me,ge,we){me===null&&(me=Function.prototype);var Se=Object.getOwnPropertyDescriptor(me,ge);if(Se===void 0){var _e=Object.getPrototypeOf(me);return _e===null?void 0:he(_e,ge,we)}else{if("value"in Se)return Se.value;var fe=Se.get;return fe===void 0?void 0:fe.call(we)}},X=Y(55),se=te(X),ee=Y(10),ne=te(ee),Q=Y(34);function te(he){return he&&he.__esModule?he:{default:he}}function ie(he,me){if(!(he instanceof me))throw new TypeError("Cannot call a class as a function")}function le(he,me){if(!he)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:he}function oe(he,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);he.prototype=Object.create(me&&me.prototype,{constructor:{value:he,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(he,me):he.__proto__=me)}var re=(0,ne.default)("quill:events"),ae=[Q.SHADOW_SELECTIONCHANGE,"mousedown","mouseup","click"],ce=[],ue="getRootNode"in document;ae.forEach(function(he){document.addEventListener(he,function(){for(var me=arguments.length,ge=Array(me),we=0;we<me;we++)ge[we]=arguments[we];ce.forEach(function(Se){Se.handleDOM.apply(Se,ge)})})});var de=function(he){oe(me,he);function me(){ie(this,me);var ge=le(this,(me.__proto__||Object.getPrototypeOf(me)).call(this));return ge.listeners={},ce.push(ge),ge.on("error",re.error),ge}return K(me,[{key:"emit",value:function(){re.log.apply(re,arguments),J(me.prototype.__proto__||Object.getPrototypeOf(me.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(we){for(var Se=arguments.length,_e=Array(Se>1?Se-1:0),fe=1;fe<Se;fe++)_e[fe-1]=arguments[fe];var be=we.composedPath?we.composedPath()[0]:we.target,ve=function(Te,Ce){if(!ue||Ce.getRootNode()===document)return Te.contains(Ce);for(;!Te.contains(Ce);){var Ie=Ce.getRootNode();if(!Ie||!Ie.host)return!1;Ce=Ie.host}return!0};(this.listeners[we.type]||[]).forEach(function($e){var Te=$e.node,Ce=$e.handler;(be===Te||ve(Te,be))&&Ce.apply(void 0,[we].concat(_e))})}},{key:"listenDOM",value:function(we,Se,_e){this.listeners[we]||(this.listeners[we]=[]),this.listeners[we].push({node:Se,handler:_e})}}]),me}(se.default);de.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"},de.sources={API:"api",SILENT:"silent",USER:"user"},G.default=de},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});function K(X,se){if(!(X instanceof se))throw new TypeError("Cannot call a class as a function")}var J=function X(se){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};K(this,X),this.quill=se,this.options=ee};J.DEFAULTS={},G.default=J},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=["error","warn","log","info"],J="warn";function X(ee){if(K.indexOf(ee)<=K.indexOf(J)){for(var ne,Q=arguments.length,te=Array(Q>1?Q-1:0),ie=1;ie<Q;ie++)te[ie-1]=arguments[ie];(ne=console)[ee].apply(ne,te)}}function se(ee){return K.reduce(function(ne,Q){return ne[Q]=X.bind(console,Q,ee),ne},{})}X.level=se.level=function(ee){J=ee},G.default=se},function(U,G,Y){var K=Array.prototype.slice,J=Y(53),X=Y(54),se=U.exports=function(te,ie,le){return le||(le={}),te===ie?!0:te instanceof Date&&ie instanceof Date?te.getTime()===ie.getTime():!te||!ie||typeof te!="object"&&typeof ie!="object"?le.strict?te===ie:te==ie:Q(te,ie,le)};function ee(te){return te==null}function ne(te){return!(!te||typeof te!="object"||typeof te.length!="number"||typeof te.copy!="function"||typeof te.slice!="function"||te.length>0&&typeof te[0]!="number")}function Q(te,ie,le){var oe,re;if(ee(te)||ee(ie)||te.prototype!==ie.prototype)return!1;if(X(te))return X(ie)?(te=K.call(te),ie=K.call(ie),se(te,ie,le)):!1;if(ne(te)){if(!ne(ie)||te.length!==ie.length)return!1;for(oe=0;oe<te.length;oe++)if(te[oe]!==ie[oe])return!1;return!0}try{var ae=J(te),ce=J(ie)}catch{return!1}if(ae.length!=ce.length)return!1;for(ae.sort(),ce.sort(),oe=ae.length-1;oe>=0;oe--)if(ae[oe]!=ce[oe])return!1;for(oe=ae.length-1;oe>=0;oe--)if(re=ae[oe],!se(te[re],ie[re],le))return!1;return typeof te==typeof ie}},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(1),J=function(){function X(se,ee,ne){ne===void 0&&(ne={}),this.attrName=se,this.keyName=ee;var Q=K.Scope.TYPE&K.Scope.ATTRIBUTE;ne.scope!=null?this.scope=ne.scope&K.Scope.LEVEL|Q:this.scope=K.Scope.ATTRIBUTE,ne.whitelist!=null&&(this.whitelist=ne.whitelist)}return X.keys=function(se){return[].map.call(se.attributes,function(ee){return ee.name})},X.prototype.add=function(se,ee){return this.canAdd(se,ee)?(se.setAttribute(this.keyName,ee),!0):!1},X.prototype.canAdd=function(se,ee){var ne=K.query(se,K.Scope.BLOT&(this.scope|K.Scope.TYPE));return ne==null?!1:this.whitelist==null?!0:typeof ee=="string"?this.whitelist.indexOf(ee.replace(/["']/g,""))>-1:this.whitelist.indexOf(ee)>-1},X.prototype.remove=function(se){se.removeAttribute(this.keyName)},X.prototype.value=function(se){var ee=se.getAttribute(this.keyName);return this.canAdd(se,ee)&&ee?ee:""},X}();G.default=J},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.Code=void 0;var K=function(){function we(Se,_e){var fe=[],be=!0,ve=!1,$e=void 0;try{for(var Te=Se[Symbol.iterator](),Ce;!(be=(Ce=Te.next()).done)&&(fe.push(Ce.value),!(_e&&fe.length===_e));be=!0);}catch(Ie){ve=!0,$e=Ie}finally{try{!be&&Te.return&&Te.return()}finally{if(ve)throw $e}}return fe}return function(Se,_e){if(Array.isArray(Se))return Se;if(Symbol.iterator in Object(Se))return we(Se,_e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),J=function(){function we(Se,_e){for(var fe=0;fe<_e.length;fe++){var be=_e[fe];be.enumerable=be.enumerable||!1,be.configurable=!0,"value"in be&&(be.writable=!0),Object.defineProperty(Se,be.key,be)}}return function(Se,_e,fe){return _e&&we(Se.prototype,_e),fe&&we(Se,fe),Se}}(),X=function we(Se,_e,fe){Se===null&&(Se=Function.prototype);var be=Object.getOwnPropertyDescriptor(Se,_e);if(be===void 0){var ve=Object.getPrototypeOf(Se);return ve===null?void 0:we(ve,_e,fe)}else{if("value"in be)return be.value;var $e=be.get;return $e===void 0?void 0:$e.call(fe)}},se=Y(2),ee=ce(se),ne=Y(0),Q=ce(ne),te=Y(4),ie=ce(te),le=Y(6),oe=ce(le),re=Y(7),ae=ce(re);function ce(we){return we&&we.__esModule?we:{default:we}}function ue(we,Se){if(!(we instanceof Se))throw new TypeError("Cannot call a class as a function")}function de(we,Se){if(!we)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Se&&(typeof Se=="object"||typeof Se=="function")?Se:we}function he(we,Se){if(typeof Se!="function"&&Se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Se);we.prototype=Object.create(Se&&Se.prototype,{constructor:{value:we,enumerable:!1,writable:!0,configurable:!0}}),Se&&(Object.setPrototypeOf?Object.setPrototypeOf(we,Se):we.__proto__=Se)}var me=function(we){he(Se,we);function Se(){return ue(this,Se),de(this,(Se.__proto__||Object.getPrototypeOf(Se)).apply(this,arguments))}return Se}(oe.default);me.blotName="code",me.tagName="CODE";var ge=function(we){he(Se,we);function Se(){return ue(this,Se),de(this,(Se.__proto__||Object.getPrototypeOf(Se)).apply(this,arguments))}return J(Se,[{key:"delta",value:function(){var fe=this,be=this.domNode.textContent;return be.endsWith(`
8630
8643
  `)&&(be=be.slice(0,-1)),be.split(`
8631
8644
  `).reduce(function(ve,$e){return ve.insert($e).insert(`
8632
- `,fe.formats())},new ee.default)}},{key:"format",value:function(fe,be){if(!(fe===this.statics.blotName&&be)){var ve=this.descendant(ae.default,this.length()-1),$e=K(ve,1),qe=$e[0];qe!=null&&qe.deleteAt(qe.length()-1,1),X(ke.prototype.__proto__||Object.getPrototypeOf(ke.prototype),"format",this).call(this,fe,be)}}},{key:"formatAt",value:function(fe,be,ve,$e){if(be!==0&&!(Q.default.query(ve,Q.default.Scope.BLOCK)==null||ve===this.statics.blotName&&$e===this.statics.formats(this.domNode))){var qe=this.newlineIndex(fe);if(!(qe<0||qe>=fe+be)){var Ce=this.newlineIndex(fe,!0)+1,Ie=qe-Ce+1,Ve=this.isolate(Ce,Ie),De=Ve.next;Ve.format(ve,$e),De instanceof ke&&De.formatAt(0,fe-Ce+be-Ie,ve,$e)}}}},{key:"insertAt",value:function(fe,be,ve){if(ve==null){var $e=this.descendant(ae.default,fe),qe=K($e,2),Ce=qe[0],Ie=qe[1];Ce.insertAt(Ie,be)}}},{key:"length",value:function(){var fe=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
8645
+ `,fe.formats())},new ee.default)}},{key:"format",value:function(fe,be){if(!(fe===this.statics.blotName&&be)){var ve=this.descendant(ae.default,this.length()-1),$e=K(ve,1),Te=$e[0];Te!=null&&Te.deleteAt(Te.length()-1,1),X(Se.prototype.__proto__||Object.getPrototypeOf(Se.prototype),"format",this).call(this,fe,be)}}},{key:"formatAt",value:function(fe,be,ve,$e){if(be!==0&&!(Q.default.query(ve,Q.default.Scope.BLOCK)==null||ve===this.statics.blotName&&$e===this.statics.formats(this.domNode))){var Te=this.newlineIndex(fe);if(!(Te<0||Te>=fe+be)){var Ce=this.newlineIndex(fe,!0)+1,Ie=Te-Ce+1,Ge=this.isolate(Ce,Ie),De=Ge.next;Ge.format(ve,$e),De instanceof Se&&De.formatAt(0,fe-Ce+be-Ie,ve,$e)}}}},{key:"insertAt",value:function(fe,be,ve){if(ve==null){var $e=this.descendant(ae.default,fe),Te=K($e,2),Ce=Te[0],Ie=Te[1];Ce.insertAt(Ie,be)}}},{key:"length",value:function(){var fe=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
8633
8646
  `)?fe:fe+1}},{key:"newlineIndex",value:function(fe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(be)return this.domNode.textContent.slice(0,fe).lastIndexOf(`
8634
8647
  `);var ve=this.domNode.textContent.slice(fe).indexOf(`
8635
8648
  `);return ve>-1?fe+ve:-1}},{key:"optimize",value:function(fe){this.domNode.textContent.endsWith(`
8636
8649
  `)||this.appendChild(Q.default.create("text",`
8637
- `)),X(ke.prototype.__proto__||Object.getPrototypeOf(ke.prototype),"optimize",this).call(this,fe);var be=this.next;be!=null&&be.prev===this&&be.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===be.statics.formats(be.domNode)&&(be.optimize(fe),be.moveChildren(this),be.remove())}},{key:"replace",value:function(fe){X(ke.prototype.__proto__||Object.getPrototypeOf(ke.prototype),"replace",this).call(this,fe),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(be){var ve=Q.default.find(be);ve==null?be.parentNode.removeChild(be):ve instanceof Q.default.Embed?ve.remove():ve.unwrap()})}}],[{key:"create",value:function(fe){var be=X(ke.__proto__||Object.getPrototypeOf(ke),"create",this).call(this,fe);return be.setAttribute("spellcheck",!1),be}},{key:"formats",value:function(){return!0}}]),ke}(se.default);ge.blotName="code-block",ge.tagName="PRE",ge.TAB=" ",G.Code=me,G.default=ge},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(De){return typeof De}:function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De},J=function(){function De(Te,ye){var Ae=[],Oe=!0,Pe=!1,Le=void 0;try{for(var Ee=Te[Symbol.iterator](),Re;!(Oe=(Re=Ee.next()).done)&&(Ae.push(Re.value),!(ye&&Ae.length===ye));Oe=!0);}catch(Me){Pe=!0,Le=Me}finally{try{!Oe&&Ee.return&&Ee.return()}finally{if(Pe)throw Le}}return Ae}return function(Te,ye){if(Array.isArray(Te))return Te;if(Symbol.iterator in Object(Te))return De(Te,ye);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),X=function(){function De(Te,ye){for(var Ae=0;Ae<ye.length;Ae++){var Oe=ye[Ae];Oe.enumerable=Oe.enumerable||!1,Oe.configurable=!0,"value"in Oe&&(Oe.writable=!0),Object.defineProperty(Te,Oe.key,Oe)}}return function(Te,ye,Ae){return ye&&De(Te.prototype,ye),Ae&&De(Te,Ae),Te}}(),ie=Y(2),ee=be(ie),ne=Y(20),Q=be(ne),te=Y(0),se=be(te),le=Y(13),oe=be(le),re=Y(24),ae=be(re),ce=Y(4),ue=be(ce),de=Y(16),he=be(de),me=Y(21),ge=be(me),we=Y(11),ke=be(we),_e=Y(3),fe=be(_e);function be(De){return De&&De.__esModule?De:{default:De}}function ve(De,Te,ye){return Te in De?Object.defineProperty(De,Te,{value:ye,enumerable:!0,configurable:!0,writable:!0}):De[Te]=ye,De}function $e(De,Te){if(!(De instanceof Te))throw new TypeError("Cannot call a class as a function")}var qe=/^[ -~]*$/,Ce=function(){function De(Te){$e(this,De),this.scroll=Te,this.delta=this.getDelta()}return X(De,[{key:"applyDelta",value:function(ye){var Ae=this,Oe=!1;this.scroll.update();var Pe=this.scroll.length();return this.scroll.batchStart(),ye=Ve(ye),ye.reduce(function(Le,Ee){var Re=Ee.retain||Ee.delete||Ee.insert.length||1,Me=Ee.attributes||{};if(Ee.insert!=null){if(typeof Ee.insert=="string"){var Be=Ee.insert;Be.endsWith(`
8638
- `)&&Oe&&(Oe=!1,Be=Be.slice(0,-1)),Le>=Pe&&!Be.endsWith(`
8639
- `)&&(Oe=!0),Ae.scroll.insertAt(Le,Be);var He=Ae.scroll.line(Le),Je=J(He,2),Qe=Je[0],et=Je[1],it=(0,fe.default)({},(0,ce.bubbleFormats)(Qe));if(Qe instanceof ue.default){var lt=Qe.descendant(se.default.Leaf,et),vt=J(lt,1),bt=vt[0];it=(0,fe.default)(it,(0,ce.bubbleFormats)(bt))}Me=Q.default.attributes.diff(it,Me)||{}}else if(K(Ee.insert)==="object"){var Fe=Object.keys(Ee.insert)[0];if(Fe==null)return Le;Ae.scroll.insertAt(Le,Fe,Ee.insert[Fe])}Pe+=Re}return Object.keys(Me).forEach(function(je){Ae.scroll.formatAt(Le,Re,je,Me[je])}),Le+Re},0),ye.reduce(function(Le,Ee){return typeof Ee.delete=="number"?(Ae.scroll.deleteAt(Le,Ee.delete),Le):Le+(Ee.retain||Ee.insert.length||1)},0),this.scroll.batchEnd(),this.update(ye)}},{key:"deleteText",value:function(ye,Ae){return this.scroll.deleteAt(ye,Ae),this.update(new ee.default().retain(ye).delete(Ae))}},{key:"formatLine",value:function(ye,Ae){var Oe=this,Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(Pe).forEach(function(Le){if(!(Oe.scroll.whitelist!=null&&!Oe.scroll.whitelist[Le])){var Ee=Oe.scroll.lines(ye,Math.max(Ae,1)),Re=Ae;Ee.forEach(function(Me){var Be=Me.length();if(!(Me instanceof oe.default))Me.format(Le,Pe[Le]);else{var He=ye-Me.offset(Oe.scroll),Je=Me.newlineIndex(He+Re)-He+1;Me.formatAt(He,Je,Le,Pe[Le])}Re-=Be})}}),this.scroll.optimize(),this.update(new ee.default().retain(ye).retain(Ae,(0,ge.default)(Pe)))}},{key:"formatText",value:function(ye,Ae){var Oe=this,Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(Pe).forEach(function(Le){Oe.scroll.formatAt(ye,Ae,Le,Pe[Le])}),this.update(new ee.default().retain(ye).retain(Ae,(0,ge.default)(Pe)))}},{key:"getContents",value:function(ye,Ae){return this.delta.slice(ye,ye+Ae)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(ye,Ae){return ye.concat(Ae.delta())},new ee.default)}},{key:"getFormat",value:function(ye){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Oe=[],Pe=[];Ae===0?this.scroll.path(ye).forEach(function(Ee){var Re=J(Ee,1),Me=Re[0];Me instanceof ue.default?Oe.push(Me):Me instanceof se.default.Leaf&&Pe.push(Me)}):(Oe=this.scroll.lines(ye,Ae),Pe=this.scroll.descendants(se.default.Leaf,ye,Ae));var Le=[Oe,Pe].map(function(Ee){if(Ee.length===0)return{};for(var Re=(0,ce.bubbleFormats)(Ee.shift());Object.keys(Re).length>0;){var Me=Ee.shift();if(Me==null)return Re;Re=Ie((0,ce.bubbleFormats)(Me),Re)}return Re});return fe.default.apply(fe.default,Le)}},{key:"getText",value:function(ye,Ae){return this.getContents(ye,Ae).filter(function(Oe){return typeof Oe.insert=="string"}).map(function(Oe){return Oe.insert}).join("")}},{key:"insertEmbed",value:function(ye,Ae,Oe){return this.scroll.insertAt(ye,Ae,Oe),this.update(new ee.default().retain(ye).insert(ve({},Ae,Oe)))}},{key:"insertText",value:function(ye,Ae){var Oe=this,Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ae=Ae.replace(/\r\n/g,`
8650
+ `)),X(Se.prototype.__proto__||Object.getPrototypeOf(Se.prototype),"optimize",this).call(this,fe);var be=this.next;be!=null&&be.prev===this&&be.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===be.statics.formats(be.domNode)&&(be.optimize(fe),be.moveChildren(this),be.remove())}},{key:"replace",value:function(fe){X(Se.prototype.__proto__||Object.getPrototypeOf(Se.prototype),"replace",this).call(this,fe),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(be){var ve=Q.default.find(be);ve==null?be.parentNode.removeChild(be):ve instanceof Q.default.Embed?ve.remove():ve.unwrap()})}}],[{key:"create",value:function(fe){var be=X(Se.__proto__||Object.getPrototypeOf(Se),"create",this).call(this,fe);return be.setAttribute("spellcheck",!1),be}},{key:"formats",value:function(){return!0}}]),Se}(ie.default);ge.blotName="code-block",ge.tagName="PRE",ge.TAB=" ",G.Code=me,G.default=ge},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(De){return typeof De}:function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De},J=function(){function De(Oe,ye){var ke=[],qe=!0,Le=!1,Ne=void 0;try{for(var Ee=Oe[Symbol.iterator](),Re;!(qe=(Re=Ee.next()).done)&&(ke.push(Re.value),!(ye&&ke.length===ye));qe=!0);}catch(Be){Le=!0,Ne=Be}finally{try{!qe&&Ee.return&&Ee.return()}finally{if(Le)throw Ne}}return ke}return function(Oe,ye){if(Array.isArray(Oe))return Oe;if(Symbol.iterator in Object(Oe))return De(Oe,ye);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),X=function(){function De(Oe,ye){for(var ke=0;ke<ye.length;ke++){var qe=ye[ke];qe.enumerable=qe.enumerable||!1,qe.configurable=!0,"value"in qe&&(qe.writable=!0),Object.defineProperty(Oe,qe.key,qe)}}return function(Oe,ye,ke){return ye&&De(Oe.prototype,ye),ke&&De(Oe,ke),Oe}}(),se=Y(2),ee=be(se),ne=Y(20),Q=be(ne),te=Y(0),ie=be(te),le=Y(13),oe=be(le),re=Y(24),ae=be(re),ce=Y(4),ue=be(ce),de=Y(16),he=be(de),me=Y(21),ge=be(me),we=Y(11),Se=be(we),_e=Y(3),fe=be(_e);function be(De){return De&&De.__esModule?De:{default:De}}function ve(De,Oe,ye){return Oe in De?Object.defineProperty(De,Oe,{value:ye,enumerable:!0,configurable:!0,writable:!0}):De[Oe]=ye,De}function $e(De,Oe){if(!(De instanceof Oe))throw new TypeError("Cannot call a class as a function")}var Te=/^[ -~]*$/,Ce=function(){function De(Oe){$e(this,De),this.scroll=Oe,this.delta=this.getDelta()}return X(De,[{key:"applyDelta",value:function(ye){var ke=this,qe=!1;this.scroll.update();var Le=this.scroll.length();return this.scroll.batchStart(),ye=Ge(ye),ye.reduce(function(Ne,Ee){var Re=Ee.retain||Ee.delete||Ee.insert.length||1,Be=Ee.attributes||{};if(Ee.insert!=null){if(typeof Ee.insert=="string"){var Ue=Ee.insert;Ue.endsWith(`
8651
+ `)&&qe&&(qe=!1,Ue=Ue.slice(0,-1)),Ne>=Le&&!Ue.endsWith(`
8652
+ `)&&(qe=!0),ke.scroll.insertAt(Ne,Ue);var He=ke.scroll.line(Ne),nt=J(He,2),at=nt[0],dt=nt[1],ft=(0,fe.default)({},(0,ce.bubbleFormats)(at));if(at instanceof ue.default){var _t=at.descendant(ie.default.Leaf,dt),It=J(_t,1),St=It[0];ft=(0,fe.default)(ft,(0,ce.bubbleFormats)(St))}Be=Q.default.attributes.diff(ft,Be)||{}}else if(K(Ee.insert)==="object"){var Ve=Object.keys(Ee.insert)[0];if(Ve==null)return Ne;ke.scroll.insertAt(Ne,Ve,Ee.insert[Ve])}Le+=Re}return Object.keys(Be).forEach(function(ze){ke.scroll.formatAt(Ne,Re,ze,Be[ze])}),Ne+Re},0),ye.reduce(function(Ne,Ee){return typeof Ee.delete=="number"?(ke.scroll.deleteAt(Ne,Ee.delete),Ne):Ne+(Ee.retain||Ee.insert.length||1)},0),this.scroll.batchEnd(),this.update(ye)}},{key:"deleteText",value:function(ye,ke){return this.scroll.deleteAt(ye,ke),this.update(new ee.default().retain(ye).delete(ke))}},{key:"formatLine",value:function(ye,ke){var qe=this,Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(Le).forEach(function(Ne){if(!(qe.scroll.whitelist!=null&&!qe.scroll.whitelist[Ne])){var Ee=qe.scroll.lines(ye,Math.max(ke,1)),Re=ke;Ee.forEach(function(Be){var Ue=Be.length();if(!(Be instanceof oe.default))Be.format(Ne,Le[Ne]);else{var He=ye-Be.offset(qe.scroll),nt=Be.newlineIndex(He+Re)-He+1;Be.formatAt(He,nt,Ne,Le[Ne])}Re-=Ue})}}),this.scroll.optimize(),this.update(new ee.default().retain(ye).retain(ke,(0,ge.default)(Le)))}},{key:"formatText",value:function(ye,ke){var qe=this,Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(Le).forEach(function(Ne){qe.scroll.formatAt(ye,ke,Ne,Le[Ne])}),this.update(new ee.default().retain(ye).retain(ke,(0,ge.default)(Le)))}},{key:"getContents",value:function(ye,ke){return this.delta.slice(ye,ye+ke)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(ye,ke){return ye.concat(ke.delta())},new ee.default)}},{key:"getFormat",value:function(ye){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,qe=[],Le=[];ke===0?this.scroll.path(ye).forEach(function(Ee){var Re=J(Ee,1),Be=Re[0];Be instanceof ue.default?qe.push(Be):Be instanceof ie.default.Leaf&&Le.push(Be)}):(qe=this.scroll.lines(ye,ke),Le=this.scroll.descendants(ie.default.Leaf,ye,ke));var Ne=[qe,Le].map(function(Ee){if(Ee.length===0)return{};for(var Re=(0,ce.bubbleFormats)(Ee.shift());Object.keys(Re).length>0;){var Be=Ee.shift();if(Be==null)return Re;Re=Ie((0,ce.bubbleFormats)(Be),Re)}return Re});return fe.default.apply(fe.default,Ne)}},{key:"getText",value:function(ye,ke){return this.getContents(ye,ke).filter(function(qe){return typeof qe.insert=="string"}).map(function(qe){return qe.insert}).join("")}},{key:"insertEmbed",value:function(ye,ke,qe){return this.scroll.insertAt(ye,ke,qe),this.update(new ee.default().retain(ye).insert(ve({},ke,qe)))}},{key:"insertText",value:function(ye,ke){var qe=this,Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ke=ke.replace(/\r\n/g,`
8640
8653
  `).replace(/\r/g,`
8641
- `),this.scroll.insertAt(ye,Ae),Object.keys(Pe).forEach(function(Le){Oe.scroll.formatAt(ye,Ae.length,Le,Pe[Le])}),this.update(new ee.default().retain(ye).insert(Ae,(0,ge.default)(Pe)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var ye=this.scroll.children.head;return ye.statics.blotName!==ue.default.blotName||ye.children.length>1?!1:ye.children.head instanceof he.default}},{key:"removeFormat",value:function(ye,Ae){var Oe=this.getText(ye,Ae),Pe=this.scroll.line(ye+Ae),Le=J(Pe,2),Ee=Le[0],Re=Le[1],Me=0,Be=new ee.default;Ee!=null&&(Ee instanceof oe.default?Me=Ee.newlineIndex(Re)-Re+1:Me=Ee.length()-Re,Be=Ee.delta().slice(Re,Re+Me-1).insert(`
8642
- `));var He=this.getContents(ye,Ae+Me),Je=He.diff(new ee.default().insert(Oe).concat(Be)),Qe=new ee.default().retain(ye).concat(Je);return this.applyDelta(Qe)}},{key:"update",value:function(ye){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,Pe=this.delta;if(Ae.length===1&&Ae[0].type==="characterData"&&Ae[0].target.data.match(qe)&&se.default.find(Ae[0].target)){var Le=se.default.find(Ae[0].target),Ee=(0,ce.bubbleFormats)(Le),Re=Le.offset(this.scroll),Me=Ae[0].oldValue.replace(ae.default.CONTENTS,""),Be=new ee.default().insert(Me),He=new ee.default().insert(Le.value()),Je=new ee.default().retain(Re).concat(Be.diff(He,Oe));ye=Je.reduce(function(Qe,et){return et.insert?Qe.insert(et.insert,Ee):Qe.push(et)},new ee.default),this.delta=Pe.compose(ye)}else this.delta=this.getDelta(),(!ye||!(0,ke.default)(Pe.compose(ye),this.delta))&&(ye=Pe.diff(this.delta,Oe));return ye}}]),De}();function Ie(De,Te){return Object.keys(Te).reduce(function(ye,Ae){return De[Ae]==null||(Te[Ae]===De[Ae]?ye[Ae]=Te[Ae]:Array.isArray(Te[Ae])?Te[Ae].indexOf(De[Ae])<0&&(ye[Ae]=Te[Ae].concat([De[Ae]])):ye[Ae]=[Te[Ae],De[Ae]]),ye},{})}function Ve(De){return De.reduce(function(Te,ye){if(ye.insert===1){var Ae=(0,ge.default)(ye.attributes);return delete Ae.image,Te.insert({image:ye.attributes.image},Ae)}if(ye.attributes!=null&&(ye.attributes.list===!0||ye.attributes.bullet===!0)&&(ye=(0,ge.default)(ye),ye.attributes.list?ye.attributes.list="ordered":(ye.attributes.list="bullet",delete ye.attributes.bullet)),typeof ye.insert=="string"){var Oe=ye.insert.replace(/\r\n/g,`
8654
+ `),this.scroll.insertAt(ye,ke),Object.keys(Le).forEach(function(Ne){qe.scroll.formatAt(ye,ke.length,Ne,Le[Ne])}),this.update(new ee.default().retain(ye).insert(ke,(0,ge.default)(Le)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var ye=this.scroll.children.head;return ye.statics.blotName!==ue.default.blotName||ye.children.length>1?!1:ye.children.head instanceof he.default}},{key:"removeFormat",value:function(ye,ke){var qe=this.getText(ye,ke),Le=this.scroll.line(ye+ke),Ne=J(Le,2),Ee=Ne[0],Re=Ne[1],Be=0,Ue=new ee.default;Ee!=null&&(Ee instanceof oe.default?Be=Ee.newlineIndex(Re)-Re+1:Be=Ee.length()-Re,Ue=Ee.delta().slice(Re,Re+Be-1).insert(`
8655
+ `));var He=this.getContents(ye,ke+Be),nt=He.diff(new ee.default().insert(qe).concat(Ue)),at=new ee.default().retain(ye).concat(nt);return this.applyDelta(at)}},{key:"update",value:function(ye){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,Le=this.delta;if(ke.length===1&&ke[0].type==="characterData"&&ke[0].target.data.match(Te)&&ie.default.find(ke[0].target)){var Ne=ie.default.find(ke[0].target),Ee=(0,ce.bubbleFormats)(Ne),Re=Ne.offset(this.scroll),Be=ke[0].oldValue.replace(ae.default.CONTENTS,""),Ue=new ee.default().insert(Be),He=new ee.default().insert(Ne.value()),nt=new ee.default().retain(Re).concat(Ue.diff(He,qe));ye=nt.reduce(function(at,dt){return dt.insert?at.insert(dt.insert,Ee):at.push(dt)},new ee.default),this.delta=Le.compose(ye)}else this.delta=this.getDelta(),(!ye||!(0,Se.default)(Le.compose(ye),this.delta))&&(ye=Le.diff(this.delta,qe));return ye}}]),De}();function Ie(De,Oe){return Object.keys(Oe).reduce(function(ye,ke){return De[ke]==null||(Oe[ke]===De[ke]?ye[ke]=Oe[ke]:Array.isArray(Oe[ke])?Oe[ke].indexOf(De[ke])<0&&(ye[ke]=Oe[ke].concat([De[ke]])):ye[ke]=[Oe[ke],De[ke]]),ye},{})}function Ge(De){return De.reduce(function(Oe,ye){if(ye.insert===1){var ke=(0,ge.default)(ye.attributes);return delete ke.image,Oe.insert({image:ye.attributes.image},ke)}if(ye.attributes!=null&&(ye.attributes.list===!0||ye.attributes.bullet===!0)&&(ye=(0,ge.default)(ye),ye.attributes.list?ye.attributes.list="ordered":(ye.attributes.list="bullet",delete ye.attributes.bullet)),typeof ye.insert=="string"){var qe=ye.insert.replace(/\r\n/g,`
8643
8656
  `).replace(/\r/g,`
8644
- `);return Te.insert(Oe,ye.attributes)}return Te.push(ye)},new ee.default)}G.default=Ce},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.Range=void 0;var K=function(){function ke(_e,fe){var be=[],ve=!0,$e=!1,qe=void 0;try{for(var Ce=_e[Symbol.iterator](),Ie;!(ve=(Ie=Ce.next()).done)&&(be.push(Ie.value),!(fe&&be.length===fe));ve=!0);}catch(Ve){$e=!0,qe=Ve}finally{try{!ve&&Ce.return&&Ce.return()}finally{if($e)throw qe}}return be}return function(_e,fe){if(Array.isArray(_e))return _e;if(Symbol.iterator in Object(_e))return ke(_e,fe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),J=function(){function ke(_e,fe){for(var be=0;be<fe.length;be++){var ve=fe[be];ve.enumerable=ve.enumerable||!1,ve.configurable=!0,"value"in ve&&(ve.writable=!0),Object.defineProperty(_e,ve.key,ve)}}return function(_e,fe,be){return fe&&ke(_e.prototype,fe),be&&ke(_e,be),_e}}(),X=Y(0),ie=ce(X),ee=Y(21),ne=ce(ee),Q=Y(11),te=ce(Q),se=Y(8),le=ce(se),oe=Y(10),re=ce(oe),ae=Y(34);function ce(ke){return ke&&ke.__esModule?ke:{default:ke}}function ue(ke){if(Array.isArray(ke)){for(var _e=0,fe=Array(ke.length);_e<ke.length;_e++)fe[_e]=ke[_e];return fe}else return Array.from(ke)}function de(ke,_e){if(!(ke instanceof _e))throw new TypeError("Cannot call a class as a function")}var he=(0,re.default)("quill:selection"),me=function ke(_e){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;de(this,ke),this.index=_e,this.length=fe},ge=function(){function ke(_e,fe){var be=this;de(this,ke),this.emitter=fe,this.scroll=_e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.rootDocument=this.root.getRootNode?this.root.getRootNode():document,this.cursor=ie.default.create("cursor",this),this.lastRange=this.savedRange=new me(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM(ae.SHADOW_SELECTIONCHANGE,document,function(){be.mouseDown||setTimeout(be.update.bind(be,le.default.sources.USER),1)}),this.emitter.on(le.default.events.EDITOR_CHANGE,function(ve,$e){ve===le.default.events.TEXT_CHANGE&&$e.length()>0&&be.update(le.default.sources.SILENT)}),this.emitter.on(le.default.events.SCROLL_BEFORE_UPDATE,function(){if(be.hasFocus()){var ve=be.getNativeRange();ve!=null&&ve.start.node!==be.cursor.textNode&&be.emitter.once(le.default.events.SCROLL_UPDATE,function(){try{be.setNativeRange(ve.start.node,ve.start.offset,ve.end.node,ve.end.offset)}catch{}})}}),this.emitter.on(le.default.events.SCROLL_OPTIMIZE,function(ve,$e){if($e.range){var qe=$e.range,Ce=qe.startNode,Ie=qe.startOffset,Ve=qe.endNode,De=qe.endOffset;be.setNativeRange(Ce,Ie,Ve,De)}}),this.update(le.default.sources.SILENT)}return J(ke,[{key:"handleComposition",value:function(){var fe=this;this.root.addEventListener("compositionstart",function(){fe.composing=!0}),this.root.addEventListener("compositionend",function(){if(fe.composing=!1,fe.cursor.parent){var be=fe.cursor.restore();if(!be)return;setTimeout(function(){fe.setNativeRange(be.startNode,be.startOffset,be.endNode,be.endOffset)},1)}})}},{key:"handleDragging",value:function(){var fe=this;this.emitter.listenDOM("mousedown",document.body,function(){fe.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){fe.mouseDown=!1,fe.update(le.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(fe,be){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[fe])){this.scroll.update();var ve=this.getNativeRange();if(!(ve==null||!ve.native.collapsed||ie.default.query(fe,ie.default.Scope.BLOCK))){if(ve.start.node!==this.cursor.textNode){var $e=ie.default.find(ve.start.node,!1);if($e==null)return;if($e instanceof ie.default.Leaf){var qe=$e.split(ve.start.offset);$e.parent.insertBefore(this.cursor,qe)}else $e.insertBefore(this.cursor,ve.start.node);this.cursor.attach()}this.cursor.format(fe,be),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(fe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ve=this.scroll.length();fe=Math.min(fe,ve-1),be=Math.min(fe+be,ve-1)-fe;var $e=void 0,qe=this.scroll.leaf(fe),Ce=K(qe,2),Ie=Ce[0],Ve=Ce[1];if(Ie==null)return null;var De=Ie.position(Ve,!0),Te=K(De,2);$e=Te[0],Ve=Te[1];var ye=document.createRange();if(be>0){ye.setStart($e,Ve);var Ae=this.scroll.leaf(fe+be),Oe=K(Ae,2);if(Ie=Oe[0],Ve=Oe[1],Ie==null)return null;var Pe=Ie.position(Ve,!0),Le=K(Pe,2);return $e=Le[0],Ve=Le[1],ye.setEnd($e,Ve),ye.getBoundingClientRect()}else{var Ee="left",Re=void 0;return $e instanceof Text?(Ve<$e.data.length?(ye.setStart($e,Ve),ye.setEnd($e,Ve+1)):(ye.setStart($e,Ve-1),ye.setEnd($e,Ve),Ee="right"),Re=ye.getBoundingClientRect()):(Re=Ie.domNode.getBoundingClientRect(),Ve>0&&(Ee="right")),{bottom:Re.top+Re.height,height:Re.height,left:Re[Ee],right:Re[Ee],top:Re.top,width:0}}}},{key:"getNativeRange",value:function(){var fe=(0,ae.getRange)(this.rootDocument);if(fe==null)return null;var be=this.normalizeNative(fe);return he.info("getNativeRange",be),be}},{key:"getRange",value:function(){var fe=this.getNativeRange();if(fe==null)return[null,null];var be=this.normalizedToRange(fe);return[be,fe]}},{key:"hasFocus",value:function(){return this.rootDocument.activeElement===this.root}},{key:"normalizedToRange",value:function(fe){var be=this,ve=[[fe.start.node,fe.start.offset]];fe.native.collapsed||ve.push([fe.end.node,fe.end.offset]);var $e=ve.map(function(Ie){var Ve=K(Ie,2),De=Ve[0],Te=Ve[1],ye=ie.default.find(De,!0),Ae=ye.offset(be.scroll);return Te===0?Ae:ye instanceof ie.default.Container?Ae+ye.length():Ae+ye.index(De,Te)}),qe=Math.min(Math.max.apply(Math,ue($e)),this.scroll.length()-1),Ce=Math.min.apply(Math,[qe].concat(ue($e)));return new me(Ce,qe-Ce)}},{key:"normalizeNative",value:function(fe){if(!we(this.root,fe.startContainer)||!fe.collapsed&&!we(this.root,fe.endContainer))return null;var be={start:{node:fe.startContainer,offset:fe.startOffset},end:{node:fe.endContainer,offset:fe.endOffset},native:fe};return[be.start,be.end].forEach(function(ve){for(var $e=ve.node,qe=ve.offset;!($e instanceof Text)&&$e.childNodes.length>0;)if($e.childNodes.length>qe)$e=$e.childNodes[qe],qe=0;else if($e.childNodes.length===qe)$e=$e.lastChild,qe=$e instanceof Text?$e.data.length:$e.childNodes.length+1;else break;ve.node=$e,ve.offset=qe}),be}},{key:"rangeToNative",value:function(fe){var be=this,ve=fe.collapsed?[fe.index]:[fe.index,fe.index+fe.length],$e=[],qe=this.scroll.length();return ve.forEach(function(Ce,Ie){Ce=Math.min(qe-1,Ce);var Ve=void 0,De=be.scroll.leaf(Ce),Te=K(De,2),ye=Te[0],Ae=Te[1],Oe=ye.position(Ae,Ie!==0),Pe=K(Oe,2);Ve=Pe[0],Ae=Pe[1],$e.push(Ve,Ae)}),$e.length<2&&($e=$e.concat($e)),$e}},{key:"scrollIntoView",value:function(fe){var be=this.lastRange;if(be!=null){var ve=this.getBounds(be.index,be.length);if(ve!=null){var $e=this.scroll.length()-1,qe=this.scroll.line(Math.min(be.index,$e)),Ce=K(qe,1),Ie=Ce[0],Ve=Ie;if(be.length>0){var De=this.scroll.line(Math.min(be.index+be.length,$e)),Te=K(De,1);Ve=Te[0]}if(!(Ie==null||Ve==null)){var ye=fe.getBoundingClientRect();ve.top<ye.top?fe.scrollTop-=ye.top-ve.top:ve.bottom>ye.bottom&&(fe.scrollTop+=ve.bottom-ye.bottom)}}}}},{key:"setNativeRange",value:function(fe,be){var ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fe,$e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:be,qe=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(he.info("setNativeRange",fe,be,ve,$e),!(fe!=null&&(this.root.parentNode==null||fe.parentNode==null||ve.parentNode==null))){var Ce=typeof this.rootDocument.getSelection=="function"?this.rootDocument.getSelection():document.getSelection();if(Ce!=null)if(fe!=null){this.hasFocus()||this.root.focus();var Ie=(this.getNativeRange()||{}).native;if(Ie==null||qe||fe!==Ie.startContainer||be!==Ie.startOffset||ve!==Ie.endContainer||$e!==Ie.endOffset){fe.tagName=="BR"&&(be=[].indexOf.call(fe.parentNode.childNodes,fe),fe=fe.parentNode),ve.tagName=="BR"&&($e=[].indexOf.call(ve.parentNode.childNodes,ve),ve=ve.parentNode);var Ve=document.createRange();Ve.setStart(fe,be),Ve.setEnd(ve,$e),Ce.removeAllRanges(),Ce.addRange(Ve)}}else Ce.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(fe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le.default.sources.API;if(typeof be=="string"&&(ve=be,be=!1),he.info("setRange",fe),fe!=null){var $e=this.rangeToNative(fe);this.setNativeRange.apply(this,ue($e).concat([be]))}else this.setNativeRange(null);this.update(ve)}},{key:"update",value:function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.default.sources.USER,be=this.lastRange,ve=this.getRange(),$e=K(ve,2),qe=$e[0],Ce=$e[1];if(this.lastRange=qe,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,te.default)(be,this.lastRange)){var Ie;!this.composing&&Ce!=null&&Ce.native.collapsed&&Ce.start.node!==this.cursor.textNode&&this.cursor.restore();var Ve=[le.default.events.SELECTION_CHANGE,(0,ne.default)(this.lastRange),(0,ne.default)(be),fe];if((Ie=this.emitter).emit.apply(Ie,[le.default.events.EDITOR_CHANGE].concat(Ve)),fe!==le.default.sources.SILENT){var De;(De=this.emitter).emit.apply(De,Ve)}}}}]),ke}();function we(ke,_e){try{_e.parentNode}catch{return!1}return _e instanceof Text&&(_e=_e.parentNode),ke.contains(_e)}G.Range=me,G.default=ge},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function le(oe,re){for(var ae=0;ae<re.length;ae++){var ce=re[ae];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(oe,ce.key,ce)}}return function(oe,re,ae){return re&&le(oe.prototype,re),ae&&le(oe,ae),oe}}(),J=function le(oe,re,ae){oe===null&&(oe=Function.prototype);var ce=Object.getOwnPropertyDescriptor(oe,re);if(ce===void 0){var ue=Object.getPrototypeOf(oe);return ue===null?void 0:le(ue,re,ae)}else{if("value"in ce)return ce.value;var de=ce.get;return de===void 0?void 0:de.call(ae)}},X=Y(0),ie=ee(X);function ee(le){return le&&le.__esModule?le:{default:le}}function ne(le,oe){if(!(le instanceof oe))throw new TypeError("Cannot call a class as a function")}function Q(le,oe){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:le}function te(le,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);le.prototype=Object.create(oe&&oe.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(le,oe):le.__proto__=oe)}var se=function(le){te(oe,le);function oe(){return ne(this,oe),Q(this,(oe.__proto__||Object.getPrototypeOf(oe)).apply(this,arguments))}return K(oe,[{key:"insertInto",value:function(ae,ce){ae.children.length===0?J(oe.prototype.__proto__||Object.getPrototypeOf(oe.prototype),"insertInto",this).call(this,ae,ce):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),oe}(ie.default.Embed);se.blotName="break",se.tagName="BR",G.default=se},function(U,G,Y){var K=this&&this.__extends||function(){var Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,se){te.__proto__=se}||function(te,se){for(var le in se)se.hasOwnProperty(le)&&(te[le]=se[le])};return function(te,se){Q(te,se);function le(){this.constructor=te}te.prototype=se===null?Object.create(se):(le.prototype=se.prototype,new le)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(45),X=Y(30),ie=Y(1),ee=function(Q){K(te,Q);function te(se){var le=Q.call(this,se)||this;return le.build(),le}return te.prototype.appendChild=function(se){this.insertBefore(se)},te.prototype.attach=function(){Q.prototype.attach.call(this),this.children.forEach(function(se){se.attach()})},te.prototype.build=function(){var se=this;this.children=new J.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(le){try{var oe=ne(le);se.insertBefore(oe,se.children.head||void 0)}catch(re){if(re instanceof ie.ParchmentError)return;throw re}})},te.prototype.deleteAt=function(se,le){if(se===0&&le===this.length())return this.remove();this.children.forEachAt(se,le,function(oe,re,ae){oe.deleteAt(re,ae)})},te.prototype.descendant=function(se,le){var oe=this.children.find(le),re=oe[0],ae=oe[1];return se.blotName==null&&se(re)||se.blotName!=null&&re instanceof se?[re,ae]:re instanceof te?re.descendant(se,ae):[null,-1]},te.prototype.descendants=function(se,le,oe){le===void 0&&(le=0),oe===void 0&&(oe=Number.MAX_VALUE);var re=[],ae=oe;return this.children.forEachAt(le,oe,function(ce,ue,de){(se.blotName==null&&se(ce)||se.blotName!=null&&ce instanceof se)&&re.push(ce),ce instanceof te&&(re=re.concat(ce.descendants(se,ue,ae))),ae-=de}),re},te.prototype.detach=function(){this.children.forEach(function(se){se.detach()}),Q.prototype.detach.call(this)},te.prototype.formatAt=function(se,le,oe,re){this.children.forEachAt(se,le,function(ae,ce,ue){ae.formatAt(ce,ue,oe,re)})},te.prototype.insertAt=function(se,le,oe){var re=this.children.find(se),ae=re[0],ce=re[1];if(ae)ae.insertAt(ce,le,oe);else{var ue=oe==null?ie.create("text",le):ie.create(le,oe);this.appendChild(ue)}},te.prototype.insertBefore=function(se,le){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(oe){return se instanceof oe}))throw new ie.ParchmentError("Cannot insert "+se.statics.blotName+" into "+this.statics.blotName);se.insertInto(this,le)},te.prototype.length=function(){return this.children.reduce(function(se,le){return se+le.length()},0)},te.prototype.moveChildren=function(se,le){this.children.forEach(function(oe){se.insertBefore(oe,le)})},te.prototype.optimize=function(se){if(Q.prototype.optimize.call(this,se),this.children.length===0)if(this.statics.defaultChild!=null){var le=ie.create(this.statics.defaultChild);this.appendChild(le),le.optimize(se)}else this.remove()},te.prototype.path=function(se,le){le===void 0&&(le=!1);var oe=this.children.find(se,le),re=oe[0],ae=oe[1],ce=[[this,se]];return re instanceof te?ce.concat(re.path(ae,le)):(re!=null&&ce.push([re,ae]),ce)},te.prototype.removeChild=function(se){this.children.remove(se)},te.prototype.replace=function(se){se instanceof te&&se.moveChildren(this),Q.prototype.replace.call(this,se)},te.prototype.split=function(se,le){if(le===void 0&&(le=!1),!le){if(se===0)return this;if(se===this.length())return this.next}var oe=this.clone();return this.parent.insertBefore(oe,this.next),this.children.forEachAt(se,this.length(),function(re,ae,ce){re=re.split(ae,le),oe.appendChild(re)}),oe},te.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},te.prototype.update=function(se,le){var oe=this,re=[],ae=[];se.forEach(function(ce){ce.target===oe.domNode&&ce.type==="childList"&&(re.push.apply(re,ce.addedNodes),ae.push.apply(ae,ce.removedNodes))}),ae.forEach(function(ce){if(!(ce.parentNode!=null&&ce.tagName!=="IFRAME"&&document.body.compareDocumentPosition(ce)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var ue=ie.find(ce);ue!=null&&(ue.domNode.parentNode==null||ue.domNode.parentNode===oe.domNode)&&ue.detach()}}),re.filter(function(ce){return ce.parentNode==oe.domNode}).sort(function(ce,ue){return ce===ue?0:ce.compareDocumentPosition(ue)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(ce){var ue=null;ce.nextSibling!=null&&(ue=ie.find(ce.nextSibling));var de=ne(ce);(de.next!=ue||de.next==null)&&(de.parent!=null&&de.parent.removeChild(oe),oe.insertBefore(de,ue||void 0))})},te}(X.default);function ne(Q){var te=ie.find(Q);if(te==null)try{te=ie.create(Q)}catch{te=ie.create(ie.Scope.INLINE),[].slice.call(Q.childNodes).forEach(function(le){te.domNode.appendChild(le)}),Q.parentNode&&Q.parentNode.replaceChild(te.domNode,Q),te.attach()}return te}G.default=ee},function(U,G,Y){var K=this&&this.__extends||function(){var Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,se){te.__proto__=se}||function(te,se){for(var le in se)se.hasOwnProperty(le)&&(te[le]=se[le])};return function(te,se){Q(te,se);function le(){this.constructor=te}te.prototype=se===null?Object.create(se):(le.prototype=se.prototype,new le)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(12),X=Y(31),ie=Y(17),ee=Y(1),ne=function(Q){K(te,Q);function te(se){var le=Q.call(this,se)||this;return le.attributes=new X.default(le.domNode),le}return te.formats=function(se){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return se.tagName.toLowerCase()},te.prototype.format=function(se,le){var oe=ee.query(se);oe instanceof J.default?this.attributes.attribute(oe,le):le&&oe!=null&&(se!==this.statics.blotName||this.formats()[se]!==le)&&this.replaceWith(se,le)},te.prototype.formats=function(){var se=this.attributes.values(),le=this.statics.formats(this.domNode);return le!=null&&(se[this.statics.blotName]=le),se},te.prototype.replaceWith=function(se,le){var oe=Q.prototype.replaceWith.call(this,se,le);return this.attributes.copy(oe),oe},te.prototype.update=function(se,le){var oe=this;Q.prototype.update.call(this,se,le),se.some(function(re){return re.target===oe.domNode&&re.type==="attributes"})&&this.attributes.build()},te.prototype.wrap=function(se,le){var oe=Q.prototype.wrap.call(this,se,le);return oe instanceof te&&oe.statics.scope===this.statics.scope&&this.attributes.move(oe),oe},te}(ie.default);G.default=ne},function(U,G,Y){var K=this&&this.__extends||function(){var ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,Q){ne.__proto__=Q}||function(ne,Q){for(var te in Q)Q.hasOwnProperty(te)&&(ne[te]=Q[te])};return function(ne,Q){ee(ne,Q);function te(){this.constructor=ne}ne.prototype=Q===null?Object.create(Q):(te.prototype=Q.prototype,new te)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(30),X=Y(1),ie=function(ee){K(ne,ee);function ne(){return ee!==null&&ee.apply(this,arguments)||this}return ne.value=function(Q){return!0},ne.prototype.index=function(Q,te){return this.domNode===Q||this.domNode.compareDocumentPosition(Q)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(te,1):-1},ne.prototype.position=function(Q,te){var se=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return Q>0&&(se+=1),[this.parent.domNode,se]},ne.prototype.value=function(){var Q;return Q={},Q[this.statics.blotName]=this.statics.value(this.domNode)||!0,Q},ne.scope=X.Scope.INLINE_BLOT,ne}(J.default);G.default=ie},function(U,G,Y){var K=Y(11),J=Y(3),X={attributes:{compose:function(ee,ne,Q){typeof ee!="object"&&(ee={}),typeof ne!="object"&&(ne={});var te=J(!0,{},ne);Q||(te=Object.keys(te).reduce(function(le,oe){return te[oe]!=null&&(le[oe]=te[oe]),le},{}));for(var se in ee)ee[se]!==void 0&&ne[se]===void 0&&(te[se]=ee[se]);return Object.keys(te).length>0?te:void 0},diff:function(ee,ne){typeof ee!="object"&&(ee={}),typeof ne!="object"&&(ne={});var Q=Object.keys(ee).concat(Object.keys(ne)).reduce(function(te,se){return K(ee[se],ne[se])||(te[se]=ne[se]===void 0?null:ne[se]),te},{});return Object.keys(Q).length>0?Q:void 0},transform:function(ee,ne,Q){if(typeof ee!="object")return ne;if(typeof ne=="object"){if(!Q)return ne;var te=Object.keys(ne).reduce(function(se,le){return ee[le]===void 0&&(se[le]=ne[le]),se},{});return Object.keys(te).length>0?te:void 0}}},iterator:function(ee){return new ie(ee)},length:function(ee){return typeof ee.delete=="number"?ee.delete:typeof ee.retain=="number"?ee.retain:typeof ee.insert=="string"?ee.insert.length:1}};function ie(ee){this.ops=ee,this.index=0,this.offset=0}ie.prototype.hasNext=function(){return this.peekLength()<1/0},ie.prototype.next=function(ee){ee||(ee=1/0);var ne=this.ops[this.index];if(ne){var Q=this.offset,te=X.length(ne);if(ee>=te-Q?(ee=te-Q,this.index+=1,this.offset=0):this.offset+=ee,typeof ne.delete=="number")return{delete:ee};var se={};return ne.attributes&&(se.attributes=ne.attributes),typeof ne.retain=="number"?se.retain=ee:typeof ne.insert=="string"?se.insert=ne.insert.substr(Q,ee):se.insert=ne.insert,se}else return{retain:1/0}},ie.prototype.peek=function(){return this.ops[this.index]},ie.prototype.peekLength=function(){return this.ops[this.index]?X.length(this.ops[this.index])-this.offset:1/0},ie.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},ie.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var ee=this.offset,ne=this.index,Q=this.next(),te=this.ops.slice(this.index);return this.offset=ee,this.index=ne,[Q].concat(te)}else return[]},U.exports=X},function(U,G){var Y=function(){function K(oe,re){return re!=null&&oe instanceof re}var J;try{J=Map}catch{J=function(){}}var X;try{X=Set}catch{X=function(){}}var ie;try{ie=Promise}catch{ie=function(){}}function ee(oe,re,ae,ce,ue){typeof re=="object"&&(ae=re.depth,ce=re.prototype,ue=re.includeNonEnumerable,re=re.circular);var de=[],he=[],me=typeof Buffer<"u";typeof re>"u"&&(re=!0),typeof ae>"u"&&(ae=1/0);function ge(we,ke){if(we===null)return null;if(ke===0)return we;var _e,fe;if(typeof we!="object")return we;if(K(we,J))_e=new J;else if(K(we,X))_e=new X;else if(K(we,ie))_e=new ie(function(Te,ye){we.then(function(Ae){Te(ge(Ae,ke-1))},function(Ae){ye(ge(Ae,ke-1))})});else if(ee.__isArray(we))_e=[];else if(ee.__isRegExp(we))_e=new RegExp(we.source,le(we)),we.lastIndex&&(_e.lastIndex=we.lastIndex);else if(ee.__isDate(we))_e=new Date(we.getTime());else{if(me&&Buffer.isBuffer(we))return Buffer.allocUnsafe?_e=Buffer.allocUnsafe(we.length):_e=new Buffer(we.length),we.copy(_e),_e;K(we,Error)?_e=Object.create(we):typeof ce>"u"?(fe=Object.getPrototypeOf(we),_e=Object.create(fe)):(_e=Object.create(ce),fe=ce)}if(re){var be=de.indexOf(we);if(be!=-1)return he[be];de.push(we),he.push(_e)}K(we,J)&&we.forEach(function(Te,ye){var Ae=ge(ye,ke-1),Oe=ge(Te,ke-1);_e.set(Ae,Oe)}),K(we,X)&&we.forEach(function(Te){var ye=ge(Te,ke-1);_e.add(ye)});for(var ve in we){var $e;fe&&($e=Object.getOwnPropertyDescriptor(fe,ve)),!($e&&$e.set==null)&&(_e[ve]=ge(we[ve],ke-1))}if(Object.getOwnPropertySymbols)for(var qe=Object.getOwnPropertySymbols(we),ve=0;ve<qe.length;ve++){var Ce=qe[ve],Ie=Object.getOwnPropertyDescriptor(we,Ce);Ie&&!Ie.enumerable&&!ue||(_e[Ce]=ge(we[Ce],ke-1),Ie.enumerable||Object.defineProperty(_e,Ce,{enumerable:!1}))}if(ue)for(var Ve=Object.getOwnPropertyNames(we),ve=0;ve<Ve.length;ve++){var De=Ve[ve],Ie=Object.getOwnPropertyDescriptor(we,De);Ie&&Ie.enumerable||(_e[De]=ge(we[De],ke-1),Object.defineProperty(_e,De,{enumerable:!1}))}return _e}return ge(oe,ae)}ee.clonePrototype=function(re){if(re===null)return null;var ae=function(){};return ae.prototype=re,new ae};function ne(oe){return Object.prototype.toString.call(oe)}ee.__objToStr=ne;function Q(oe){return typeof oe=="object"&&ne(oe)==="[object Date]"}ee.__isDate=Q;function te(oe){return typeof oe=="object"&&ne(oe)==="[object Array]"}ee.__isArray=te;function se(oe){return typeof oe=="object"&&ne(oe)==="[object RegExp]"}ee.__isRegExp=se;function le(oe){var re="";return oe.global&&(re+="g"),oe.ignoreCase&&(re+="i"),oe.multiline&&(re+="m"),re}return ee.__getRegExpFlags=le,ee}();typeof U=="object"&&U.exports&&(U.exports=Y)},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function _e(fe,be){var ve=[],$e=!0,qe=!1,Ce=void 0;try{for(var Ie=fe[Symbol.iterator](),Ve;!($e=(Ve=Ie.next()).done)&&(ve.push(Ve.value),!(be&&ve.length===be));$e=!0);}catch(De){qe=!0,Ce=De}finally{try{!$e&&Ie.return&&Ie.return()}finally{if(qe)throw Ce}}return ve}return function(fe,be){if(Array.isArray(fe))return fe;if(Symbol.iterator in Object(fe))return _e(fe,be);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),J=function(){function _e(fe,be){for(var ve=0;ve<be.length;ve++){var $e=be[ve];$e.enumerable=$e.enumerable||!1,$e.configurable=!0,"value"in $e&&($e.writable=!0),Object.defineProperty(fe,$e.key,$e)}}return function(fe,be,ve){return be&&_e(fe.prototype,be),ve&&_e(fe,ve),fe}}(),X=function _e(fe,be,ve){fe===null&&(fe=Function.prototype);var $e=Object.getOwnPropertyDescriptor(fe,be);if($e===void 0){var qe=Object.getPrototypeOf(fe);return qe===null?void 0:_e(qe,be,ve)}else{if("value"in $e)return $e.value;var Ce=$e.get;return Ce===void 0?void 0:Ce.call(ve)}},ie=Y(0),ee=de(ie),ne=Y(8),Q=de(ne),te=Y(4),se=de(te),le=Y(16),oe=de(le),re=Y(13),ae=de(re),ce=Y(25),ue=de(ce);function de(_e){return _e&&_e.__esModule?_e:{default:_e}}function he(_e,fe){if(!(_e instanceof fe))throw new TypeError("Cannot call a class as a function")}function me(_e,fe){if(!_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe&&(typeof fe=="object"||typeof fe=="function")?fe:_e}function ge(_e,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof fe);_e.prototype=Object.create(fe&&fe.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),fe&&(Object.setPrototypeOf?Object.setPrototypeOf(_e,fe):_e.__proto__=fe)}function we(_e){return _e instanceof se.default||_e instanceof te.BlockEmbed}var ke=function(_e){ge(fe,_e);function fe(be,ve){he(this,fe);var $e=me(this,(fe.__proto__||Object.getPrototypeOf(fe)).call(this,be));return $e.emitter=ve.emitter,Array.isArray(ve.whitelist)&&($e.whitelist=ve.whitelist.reduce(function(qe,Ce){return qe[Ce]=!0,qe},{})),$e.domNode.addEventListener("DOMNodeInserted",function(){}),$e.optimize(),$e.enable(),$e}return J(fe,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(ve,$e){var qe=this.line(ve),Ce=K(qe,2),Ie=Ce[0],Ve=Ce[1],De=this.line(ve+$e),Te=K(De,1),ye=Te[0];if(X(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"deleteAt",this).call(this,ve,$e),ye!=null&&Ie!==ye&&Ve>0){if(Ie instanceof te.BlockEmbed||ye instanceof te.BlockEmbed){this.optimize();return}if(Ie instanceof ae.default){var Ae=Ie.newlineIndex(Ie.length(),!0);if(Ae>-1&&(Ie=Ie.split(Ae+1),Ie===ye)){this.optimize();return}}else if(ye instanceof ae.default){var Oe=ye.newlineIndex(0);Oe>-1&&ye.split(Oe+1)}var Pe=ye.children.head instanceof oe.default?null:ye.children.head;Ie.moveChildren(ye,Pe),Ie.remove()}this.optimize()}},{key:"enable",value:function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",ve)}},{key:"formatAt",value:function(ve,$e,qe,Ce){this.whitelist!=null&&!this.whitelist[qe]||(X(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"formatAt",this).call(this,ve,$e,qe,Ce),this.optimize())}},{key:"insertAt",value:function(ve,$e,qe){if(!(qe!=null&&this.whitelist!=null&&!this.whitelist[$e])){if(ve>=this.length())if(qe==null||ee.default.query($e,ee.default.Scope.BLOCK)==null){var Ce=ee.default.create(this.statics.defaultChild);this.appendChild(Ce),qe==null&&$e.endsWith(`
8645
- `)&&($e=$e.slice(0,-1)),Ce.insertAt(0,$e,qe)}else{var Ie=ee.default.create($e,qe);this.appendChild(Ie)}else X(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"insertAt",this).call(this,ve,$e,qe);this.optimize()}}},{key:"insertBefore",value:function(ve,$e){if(ve.statics.scope===ee.default.Scope.INLINE_BLOT){var qe=ee.default.create(this.statics.defaultChild);qe.appendChild(ve),ve=qe}X(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"insertBefore",this).call(this,ve,$e)}},{key:"leaf",value:function(ve){return this.path(ve).pop()||[null,-1]}},{key:"line",value:function(ve){return ve===this.length()?this.line(ve-1):this.descendant(we,ve)}},{key:"lines",value:function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,$e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,qe=function Ce(Ie,Ve,De){var Te=[],ye=De;return Ie.children.forEachAt(Ve,De,function(Ae,Oe,Pe){we(Ae)?Te.push(Ae):Ae instanceof ee.default.Container&&(Te=Te.concat(Ce(Ae,Oe,ye))),ye-=Pe}),Te};return qe(this,ve,$e)}},{key:"optimize",value:function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(X(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"optimize",this).call(this,ve,$e),ve.length>0&&this.emitter.emit(Q.default.events.SCROLL_OPTIMIZE,ve,$e))}},{key:"path",value:function(ve){return X(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"path",this).call(this,ve).slice(1)}},{key:"update",value:function(ve){if(this.batch!==!0){var $e=Q.default.sources.USER;typeof ve=="string"&&($e=ve),Array.isArray(ve)||(ve=this.observer.takeRecords()),ve.length>0&&this.emitter.emit(Q.default.events.SCROLL_BEFORE_UPDATE,$e,ve),X(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"update",this).call(this,ve.concat([])),ve.length>0&&this.emitter.emit(Q.default.events.SCROLL_UPDATE,$e,ve)}}}]),fe}(ee.default.Scroll);ke.blotName="scroll",ke.className="ql-editor",ke.tagName="DIV",ke.defaultChild="block",ke.allowedChildren=[se.default,te.BlockEmbed,ue.default],G.default=ke},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.SHORTKEY=G.default=void 0;var K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ee){return typeof Ee}:function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},J=function(){function Ee(Re,Me){var Be=[],He=!0,Je=!1,Qe=void 0;try{for(var et=Re[Symbol.iterator](),it;!(He=(it=et.next()).done)&&(Be.push(it.value),!(Me&&Be.length===Me));He=!0);}catch(lt){Je=!0,Qe=lt}finally{try{!He&&et.return&&et.return()}finally{if(Je)throw Qe}}return Be}return function(Re,Me){if(Array.isArray(Re))return Re;if(Symbol.iterator in Object(Re))return Ee(Re,Me);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),X=function(){function Ee(Re,Me){for(var Be=0;Be<Me.length;Be++){var He=Me[Be];He.enumerable=He.enumerable||!1,He.configurable=!0,"value"in He&&(He.writable=!0),Object.defineProperty(Re,He.key,He)}}return function(Re,Me,Be){return Me&&Ee(Re.prototype,Me),Be&&Ee(Re,Be),Re}}(),ie=Y(21),ee=_e(ie),ne=Y(11),Q=_e(ne),te=Y(3),se=_e(te),le=Y(2),oe=_e(le),re=Y(20),ae=_e(re),ce=Y(0),ue=_e(ce),de=Y(5),he=_e(de),me=Y(10),ge=_e(me),we=Y(9),ke=_e(we);function _e(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}function fe(Ee,Re,Me){return Re in Ee?Object.defineProperty(Ee,Re,{value:Me,enumerable:!0,configurable:!0,writable:!0}):Ee[Re]=Me,Ee}function be(Ee,Re){if(!(Ee instanceof Re))throw new TypeError("Cannot call a class as a function")}function ve(Ee,Re){if(!Ee)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Re&&(typeof Re=="object"||typeof Re=="function")?Re:Ee}function $e(Ee,Re){if(typeof Re!="function"&&Re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Re);Ee.prototype=Object.create(Re&&Re.prototype,{constructor:{value:Ee,enumerable:!1,writable:!0,configurable:!0}}),Re&&(Object.setPrototypeOf?Object.setPrototypeOf(Ee,Re):Ee.__proto__=Re)}var qe=(0,ge.default)("quill:keyboard"),Ce=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",Ie=function(Ee){$e(Re,Ee),X(Re,null,[{key:"match",value:function(Be,He){return He=Le(He),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Je){return!!He[Je]!==Be[Je]&&He[Je]!==null})?!1:He.key===(Be.which||Be.keyCode)}}]);function Re(Me,Be){be(this,Re);var He=ve(this,(Re.__proto__||Object.getPrototypeOf(Re)).call(this,Me,Be));return He.bindings={},Object.keys(He.options.bindings).forEach(function(Je){Je==="list autofill"&&Me.scroll.whitelist!=null&&!Me.scroll.whitelist.list||He.options.bindings[Je]&&He.addBinding(He.options.bindings[Je])}),He.addBinding({key:Re.keys.ENTER,shiftKey:null},Ae),He.addBinding({key:Re.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(He.addBinding({key:Re.keys.BACKSPACE},{collapsed:!0},De),He.addBinding({key:Re.keys.DELETE},{collapsed:!0},Te)):(He.addBinding({key:Re.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},De),He.addBinding({key:Re.keys.DELETE},{collapsed:!0,suffix:/^.?$/},Te)),He.addBinding({key:Re.keys.BACKSPACE},{collapsed:!1},ye),He.addBinding({key:Re.keys.DELETE},{collapsed:!1},ye),He.addBinding({key:Re.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},De),He.listen(),He}return X(Re,[{key:"addBinding",value:function(Be){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qe=Le(Be);if(Qe==null||Qe.key==null)return qe.warn("Attempted to add invalid keyboard binding",Qe);typeof He=="function"&&(He={handler:He}),typeof Je=="function"&&(Je={handler:Je}),Qe=(0,se.default)(Qe,He,Je),this.bindings[Qe.key]=this.bindings[Qe.key]||[],this.bindings[Qe.key].push(Qe)}},{key:"listen",value:function(){var Be=this;this.quill.root.addEventListener("keydown",function(He){if(!He.defaultPrevented){var Je=He.which||He.keyCode,Qe=(Be.bindings[Je]||[]).filter(function(_t){return Re.match(He,_t)});if(Qe.length!==0){var et=Be.quill.getSelection();if(!(et==null||!Be.quill.hasFocus())){var it=Be.quill.getLine(et.index),lt=J(it,2),vt=lt[0],bt=lt[1],Fe=Be.quill.getLeaf(et.index),je=J(Fe,2),Ye=je[0],Ke=je[1],We=et.length===0?[Ye,Ke]:Be.quill.getLeaf(et.index+et.length),tt=J(We,2),nt=tt[0],st=tt[1],mt=Ye instanceof ue.default.Text?Ye.value().slice(0,Ke):"",$t=nt instanceof ue.default.Text?nt.value().slice(st):"",ut={collapsed:et.length===0,empty:et.length===0&&vt.length()<=1,format:Be.quill.getFormat(et),offset:bt,prefix:mt,suffix:$t},Mt=Qe.some(function(_t){if(_t.collapsed!=null&&_t.collapsed!==ut.collapsed||_t.empty!=null&&_t.empty!==ut.empty||_t.offset!=null&&_t.offset!==ut.offset)return!1;if(Array.isArray(_t.format)){if(_t.format.every(function(kt){return ut.format[kt]==null}))return!1}else if(K(_t.format)==="object"&&!Object.keys(_t.format).every(function(kt){return _t.format[kt]===!0?ut.format[kt]!=null:_t.format[kt]===!1?ut.format[kt]==null:(0,Q.default)(_t.format[kt],ut.format[kt])}))return!1;return _t.prefix!=null&&!_t.prefix.test(ut.prefix)||_t.suffix!=null&&!_t.suffix.test(ut.suffix)?!1:_t.handler.call(Be,et,ut)!==!0});Mt&&He.preventDefault()}}}})}}]),Re}(ke.default);Ie.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},Ie.DEFAULTS={bindings:{bold:Pe("bold"),italic:Pe("italic"),underline:Pe("underline"),indent:{key:Ie.keys.TAB,format:["blockquote","indent","list"],handler:function(Re,Me){if(Me.collapsed&&Me.offset!==0)return!0;this.quill.format("indent","+1",he.default.sources.USER)}},outdent:{key:Ie.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(Re,Me){if(Me.collapsed&&Me.offset!==0)return!0;this.quill.format("indent","-1",he.default.sources.USER)}},"outdent backspace":{key:Ie.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(Re,Me){Me.format.indent!=null?this.quill.format("indent","-1",he.default.sources.USER):Me.format.list!=null&&this.quill.format("list",!1,he.default.sources.USER)}},"indent code-block":Oe(!0),"outdent code-block":Oe(!1),"remove tab":{key:Ie.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(Re){this.quill.deleteText(Re.index-1,1,he.default.sources.USER)}},tab:{key:Ie.keys.TAB,handler:function(Re){this.quill.history.cutoff();var Me=new oe.default().retain(Re.index).delete(Re.length).insert(" ");this.quill.updateContents(Me,he.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(Re.index+1,he.default.sources.SILENT)}},"list empty enter":{key:Ie.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(Re,Me){this.quill.format("list",!1,he.default.sources.USER),Me.format.indent&&this.quill.format("indent",!1,he.default.sources.USER)}},"checklist enter":{key:Ie.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(Re){var Me=this.quill.getLine(Re.index),Be=J(Me,2),He=Be[0],Je=Be[1],Qe=(0,se.default)({},He.formats(),{list:"checked"}),et=new oe.default().retain(Re.index).insert(`
8646
- `,Qe).retain(He.length()-Je-1).retain(1,{list:"unchecked"});this.quill.updateContents(et,he.default.sources.USER),this.quill.setSelection(Re.index+1,he.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:Ie.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(Re,Me){var Be=this.quill.getLine(Re.index),He=J(Be,2),Je=He[0],Qe=He[1],et=new oe.default().retain(Re.index).insert(`
8647
- `,Me.format).retain(Je.length()-Qe-1).retain(1,{header:null});this.quill.updateContents(et,he.default.sources.USER),this.quill.setSelection(Re.index+1,he.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(Re,Me){var Be=Me.prefix.length,He=this.quill.getLine(Re.index),Je=J(He,2),Qe=Je[0],et=Je[1];if(et>Be)return!0;var it=void 0;switch(Me.prefix.trim()){case"[]":case"[ ]":it="unchecked";break;case"[x]":it="checked";break;case"-":case"*":it="bullet";break;default:it="ordered"}this.quill.insertText(Re.index," ",he.default.sources.USER),this.quill.history.cutoff();var lt=new oe.default().retain(Re.index-et).delete(Be+1).retain(Qe.length()-2-et).retain(1,{list:it});this.quill.updateContents(lt,he.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(Re.index-Be,he.default.sources.SILENT)}},"code exit":{key:Ie.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(Re){var Me=this.quill.getLine(Re.index),Be=J(Me,2),He=Be[0],Je=Be[1],Qe=new oe.default().retain(Re.index+He.length()-Je-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Qe,he.default.sources.USER)}},"embed left":Ve(Ie.keys.LEFT,!1),"embed left shift":Ve(Ie.keys.LEFT,!0),"embed right":Ve(Ie.keys.RIGHT,!1),"embed right shift":Ve(Ie.keys.RIGHT,!0)}};function Ve(Ee,Re){var Me,Be=Ee===Ie.keys.LEFT?"prefix":"suffix";return Me={key:Ee,shiftKey:Re,altKey:null},fe(Me,Be,/^$/),fe(Me,"handler",function(Je){var Qe=Je.index;Ee===Ie.keys.RIGHT&&(Qe+=Je.length+1);var et=this.quill.getLeaf(Qe),it=J(et,1),lt=it[0];return lt instanceof ue.default.Embed?(Ee===Ie.keys.LEFT?Re?this.quill.setSelection(Je.index-1,Je.length+1,he.default.sources.USER):this.quill.setSelection(Je.index-1,he.default.sources.USER):Re?this.quill.setSelection(Je.index,Je.length+1,he.default.sources.USER):this.quill.setSelection(Je.index+Je.length+1,he.default.sources.USER),!1):!0}),Me}function De(Ee,Re){if(!(Ee.index===0||this.quill.getLength()<=1)){var Me=this.quill.getLine(Ee.index),Be=J(Me,1),He=Be[0],Je={};if(Re.offset===0){var Qe=this.quill.getLine(Ee.index-1),et=J(Qe,1),it=et[0];if(it!=null&&it.length()>1){var lt=He.formats(),vt=this.quill.getFormat(Ee.index-1,1);Je=ae.default.attributes.diff(lt,vt)||{}}}var bt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Re.prefix)?2:1;this.quill.deleteText(Ee.index-bt,bt,he.default.sources.USER),Object.keys(Je).length>0&&this.quill.formatLine(Ee.index-bt,bt,Je,he.default.sources.USER),this.quill.focus()}}function Te(Ee,Re){var Me=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Re.suffix)?2:1;if(!(Ee.index>=this.quill.getLength()-Me)){var Be={},He=0,Je=this.quill.getLine(Ee.index),Qe=J(Je,1),et=Qe[0];if(Re.offset>=et.length()-1){var it=this.quill.getLine(Ee.index+1),lt=J(it,1),vt=lt[0];if(vt){var bt=et.formats(),Fe=this.quill.getFormat(Ee.index,1);Be=ae.default.attributes.diff(bt,Fe)||{},He=vt.length()}}this.quill.deleteText(Ee.index,Me,he.default.sources.USER),Object.keys(Be).length>0&&this.quill.formatLine(Ee.index+He-1,Me,Be,he.default.sources.USER)}}function ye(Ee){var Re=this.quill.getLines(Ee),Me={};if(Re.length>1){var Be=Re[0].formats(),He=Re[Re.length-1].formats();Me=ae.default.attributes.diff(He,Be)||{}}this.quill.deleteText(Ee,he.default.sources.USER),Object.keys(Me).length>0&&this.quill.formatLine(Ee.index,1,Me,he.default.sources.USER),this.quill.setSelection(Ee.index,he.default.sources.SILENT),this.quill.focus()}function Ae(Ee,Re){var Me=this;Ee.length>0&&this.quill.scroll.deleteAt(Ee.index,Ee.length);var Be=Object.keys(Re.format).reduce(function(He,Je){return ue.default.query(Je,ue.default.Scope.BLOCK)&&!Array.isArray(Re.format[Je])&&(He[Je]=Re.format[Je]),He},{});this.quill.insertText(Ee.index,`
8648
- `,Be,he.default.sources.USER),this.quill.setSelection(Ee.index+1,he.default.sources.SILENT),this.quill.focus(),Object.keys(Re.format).forEach(function(He){Be[He]==null&&(Array.isArray(Re.format[He])||He!=="link"&&Me.quill.format(He,Re.format[He],he.default.sources.USER))})}function Oe(Ee){return{key:Ie.keys.TAB,shiftKey:!Ee,format:{"code-block":!0},handler:function(Me){var Be=ue.default.query("code-block"),He=Me.index,Je=Me.length,Qe=this.quill.scroll.descendant(Be,He),et=J(Qe,2),it=et[0],lt=et[1];if(it!=null){var vt=this.quill.getIndex(it),bt=it.newlineIndex(lt,!0)+1,Fe=it.newlineIndex(vt+lt+Je),je=it.domNode.textContent.slice(bt,Fe).split(`
8649
- `);lt=0,je.forEach(function(Ye,Ke){Ee?(it.insertAt(bt+lt,Be.TAB),lt+=Be.TAB.length,Ke===0?He+=Be.TAB.length:Je+=Be.TAB.length):Ye.startsWith(Be.TAB)&&(it.deleteAt(bt+lt,Be.TAB.length),lt-=Be.TAB.length,Ke===0?He-=Be.TAB.length:Je-=Be.TAB.length),lt+=Ye.length+1}),this.quill.update(he.default.sources.USER),this.quill.setSelection(He,Je,he.default.sources.SILENT)}}}}function Pe(Ee){return{key:Ee[0].toUpperCase(),shortKey:!0,handler:function(Me,Be){this.quill.format(Ee,!Be.format[Ee],he.default.sources.USER)}}}function Le(Ee){if(typeof Ee=="string"||typeof Ee=="number")return Le({key:Ee});if((typeof Ee>"u"?"undefined":K(Ee))==="object"&&(Ee=(0,ee.default)(Ee,!1)),typeof Ee.key=="string")if(Ie.keys[Ee.key.toUpperCase()]!=null)Ee.key=Ie.keys[Ee.key.toUpperCase()];else if(Ee.key.length===1)Ee.key=Ee.key.toUpperCase().charCodeAt(0);else return null;return Ee.shortKey&&(Ee[Ce]=Ee.shortKey,delete Ee.shortKey),Ee}G.default=Ie,G.SHORTKEY=Ce},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function ae(ce,ue){var de=[],he=!0,me=!1,ge=void 0;try{for(var we=ce[Symbol.iterator](),ke;!(he=(ke=we.next()).done)&&(de.push(ke.value),!(ue&&de.length===ue));he=!0);}catch(_e){me=!0,ge=_e}finally{try{!he&&we.return&&we.return()}finally{if(me)throw ge}}return de}return function(ce,ue){if(Array.isArray(ce))return ce;if(Symbol.iterator in Object(ce))return ae(ce,ue);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),J=function ae(ce,ue,de){ce===null&&(ce=Function.prototype);var he=Object.getOwnPropertyDescriptor(ce,ue);if(he===void 0){var me=Object.getPrototypeOf(ce);return me===null?void 0:ae(me,ue,de)}else{if("value"in he)return he.value;var ge=he.get;return ge===void 0?void 0:ge.call(de)}},X=function(){function ae(ce,ue){for(var de=0;de<ue.length;de++){var he=ue[de];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(ce,he.key,he)}}return function(ce,ue,de){return ue&&ae(ce.prototype,ue),de&&ae(ce,de),ce}}(),ie=Y(0),ee=te(ie),ne=Y(7),Q=te(ne);function te(ae){return ae&&ae.__esModule?ae:{default:ae}}function se(ae,ce){if(!(ae instanceof ce))throw new TypeError("Cannot call a class as a function")}function le(ae,ce){if(!ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:ae}function oe(ae,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);ae.prototype=Object.create(ce&&ce.prototype,{constructor:{value:ae,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(ae,ce):ae.__proto__=ce)}var re=function(ae){oe(ce,ae),X(ce,null,[{key:"value",value:function(){}}]);function ce(ue,de){se(this,ce);var he=le(this,(ce.__proto__||Object.getPrototypeOf(ce)).call(this,ue));return he.selection=de,he.textNode=document.createTextNode(ce.CONTENTS),he.domNode.appendChild(he.textNode),he._length=0,he}return X(ce,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(de,he){if(this._length!==0)return J(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"format",this).call(this,de,he);for(var me=this,ge=0;me!=null&&me.statics.scope!==ee.default.Scope.BLOCK_BLOT;)ge+=me.offset(me.parent),me=me.parent;me!=null&&(this._length=ce.CONTENTS.length,me.optimize(),me.formatAt(ge,ce.CONTENTS.length,de,he),this._length=0)}},{key:"index",value:function(de,he){return de===this.textNode?0:J(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"index",this).call(this,de,he)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){J(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var de=this.textNode,he=this.selection.getNativeRange(),me=void 0,ge=void 0,we=void 0;if(he!=null&&he.start.node===de&&he.end.node===de){var ke=[de,he.start.offset,he.end.offset];me=ke[0],ge=ke[1],we=ke[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==ce.CONTENTS){var _e=this.textNode.data.split(ce.CONTENTS).join("");this.next instanceof Q.default?(me=this.next.domNode,this.next.insertAt(0,_e),this.textNode.data=ce.CONTENTS):(this.textNode.data=_e,this.parent.insertBefore(ee.default.create(this.textNode),this),this.textNode=document.createTextNode(ce.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),ge!=null){var fe=[ge,we].map(function(ve){return Math.max(0,Math.min(me.data.length,ve-1))}),be=K(fe,2);return ge=be[0],we=be[1],{startNode:me,startOffset:ge,endNode:me,endOffset:we}}}}},{key:"update",value:function(de,he){var me=this;if(de.some(function(we){return we.type==="characterData"&&we.target===me.textNode})){var ge=this.restore();ge&&(he.range=ge)}}},{key:"value",value:function(){return""}}]),ce}(ee.default.Embed);re.blotName="cursor",re.className="ql-cursor",re.tagName="span",re.CONTENTS="\uFEFF",G.default=re},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(0),J=ee(K),X=Y(4),ie=ee(X);function ee(le){return le&&le.__esModule?le:{default:le}}function ne(le,oe){if(!(le instanceof oe))throw new TypeError("Cannot call a class as a function")}function Q(le,oe){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:le}function te(le,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);le.prototype=Object.create(oe&&oe.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(le,oe):le.__proto__=oe)}var se=function(le){te(oe,le);function oe(){return ne(this,oe),Q(this,(oe.__proto__||Object.getPrototypeOf(oe)).apply(this,arguments))}return oe}(J.default.Container);se.allowedChildren=[ie.default,X.BlockEmbed,se],G.default=se},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.ColorStyle=G.ColorClass=G.ColorAttributor=void 0;var K=function(){function re(ae,ce){for(var ue=0;ue<ce.length;ue++){var de=ce[ue];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ae,de.key,de)}}return function(ae,ce,ue){return ce&&re(ae.prototype,ce),ue&&re(ae,ue),ae}}(),J=function re(ae,ce,ue){ae===null&&(ae=Function.prototype);var de=Object.getOwnPropertyDescriptor(ae,ce);if(de===void 0){var he=Object.getPrototypeOf(ae);return he===null?void 0:re(he,ce,ue)}else{if("value"in de)return de.value;var me=de.get;return me===void 0?void 0:me.call(ue)}},X=Y(0),ie=ee(X);function ee(re){return re&&re.__esModule?re:{default:re}}function ne(re,ae){if(!(re instanceof ae))throw new TypeError("Cannot call a class as a function")}function Q(re,ae){if(!re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae&&(typeof ae=="object"||typeof ae=="function")?ae:re}function te(re,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ae);re.prototype=Object.create(ae&&ae.prototype,{constructor:{value:re,enumerable:!1,writable:!0,configurable:!0}}),ae&&(Object.setPrototypeOf?Object.setPrototypeOf(re,ae):re.__proto__=ae)}var se=function(re){te(ae,re);function ae(){return ne(this,ae),Q(this,(ae.__proto__||Object.getPrototypeOf(ae)).apply(this,arguments))}return K(ae,[{key:"value",value:function(ue){var de=J(ae.prototype.__proto__||Object.getPrototypeOf(ae.prototype),"value",this).call(this,ue);return de.startsWith("rgb(")?(de=de.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+de.split(",").map(function(he){return("00"+parseInt(he).toString(16)).slice(-2)}).join("")):de}}]),ae}(ie.default.Attributor.Style),le=new ie.default.Attributor.Class("color","ql-color",{scope:ie.default.Scope.INLINE}),oe=new se("color","color",{scope:ie.default.Scope.INLINE});G.ColorAttributor=se,G.ColorClass=le,G.ColorStyle=oe},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.sanitize=G.default=void 0;var K=function(){function oe(re,ae){for(var ce=0;ce<ae.length;ce++){var ue=ae[ce];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(re,ue.key,ue)}}return function(re,ae,ce){return ae&&oe(re.prototype,ae),ce&&oe(re,ce),re}}(),J=function oe(re,ae,ce){re===null&&(re=Function.prototype);var ue=Object.getOwnPropertyDescriptor(re,ae);if(ue===void 0){var de=Object.getPrototypeOf(re);return de===null?void 0:oe(de,ae,ce)}else{if("value"in ue)return ue.value;var he=ue.get;return he===void 0?void 0:he.call(ce)}},X=Y(6),ie=ee(X);function ee(oe){return oe&&oe.__esModule?oe:{default:oe}}function ne(oe,re){if(!(oe instanceof re))throw new TypeError("Cannot call a class as a function")}function Q(oe,re){if(!oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re&&(typeof re=="object"||typeof re=="function")?re:oe}function te(oe,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof re);oe.prototype=Object.create(re&&re.prototype,{constructor:{value:oe,enumerable:!1,writable:!0,configurable:!0}}),re&&(Object.setPrototypeOf?Object.setPrototypeOf(oe,re):oe.__proto__=re)}var se=function(oe){te(re,oe);function re(){return ne(this,re),Q(this,(re.__proto__||Object.getPrototypeOf(re)).apply(this,arguments))}return K(re,[{key:"format",value:function(ce,ue){if(ce!==this.statics.blotName||!ue)return J(re.prototype.__proto__||Object.getPrototypeOf(re.prototype),"format",this).call(this,ce,ue);ue=this.constructor.sanitize(ue),this.domNode.setAttribute("href",ue)}}],[{key:"create",value:function(ce){var ue=J(re.__proto__||Object.getPrototypeOf(re),"create",this).call(this,ce);return ce=this.sanitize(ce),ue.setAttribute("href",ce),ue.setAttribute("target","_blank"),ue}},{key:"formats",value:function(ce){return ce.getAttribute("href")}},{key:"sanitize",value:function(ce){return le(ce,this.PROTOCOL_WHITELIST)?ce:this.SANITIZED_URL}}]),re}(ie.default);se.blotName="link",se.tagName="A",se.SANITIZED_URL="about:blank",se.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function le(oe,re){var ae=document.createElement("a");ae.href=oe;var ce=ae.href.slice(0,ae.href.indexOf(":"));return re.indexOf(ce)>-1}G.default=se,G.sanitize=le},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(re){return typeof re}:function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re},J=function(){function re(ae,ce){for(var ue=0;ue<ce.length;ue++){var de=ce[ue];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ae,de.key,de)}}return function(ae,ce,ue){return ce&&re(ae.prototype,ce),ue&&re(ae,ue),ae}}(),X=Y(23),ie=Q(X),ee=Y(108),ne=Q(ee);function Q(re){return re&&re.__esModule?re:{default:re}}function te(re,ae){if(!(re instanceof ae))throw new TypeError("Cannot call a class as a function")}var se=0;function le(re,ae){re.setAttribute(ae,re.getAttribute(ae)!=="true")}var oe=function(){function re(ae){var ce=this;te(this,re),this.select=ae,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(){ce.togglePicker()}),this.label.addEventListener("keydown",function(ue){switch(ue.keyCode){case ie.default.keys.ENTER:ce.togglePicker();break;case ie.default.keys.ESCAPE:ce.escape(),ue.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return J(re,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),le(this.label,"aria-expanded"),le(this.options,"aria-hidden")}},{key:"buildItem",value:function(ce){var ue=this,de=document.createElement("span");return de.tabIndex="0",de.setAttribute("role","button"),de.classList.add("ql-picker-item"),ce.hasAttribute("value")&&de.setAttribute("data-value",ce.getAttribute("value")),ce.textContent&&de.setAttribute("data-label",ce.textContent),de.addEventListener("click",function(){ue.selectItem(de,!0)}),de.addEventListener("keydown",function(he){switch(he.keyCode){case ie.default.keys.ENTER:ue.selectItem(de,!0),he.preventDefault();break;case ie.default.keys.ESCAPE:ue.escape(),he.preventDefault();break}}),de}},{key:"buildLabel",value:function(){var ce=document.createElement("span");return ce.classList.add("ql-picker-label"),ce.innerHTML=ne.default,ce.tabIndex="0",ce.setAttribute("role","button"),ce.setAttribute("aria-expanded","false"),this.container.appendChild(ce),ce}},{key:"buildOptions",value:function(){var ce=this,ue=document.createElement("span");ue.classList.add("ql-picker-options"),ue.setAttribute("aria-hidden","true"),ue.tabIndex="-1",ue.id="ql-picker-options-"+se,se+=1,this.label.setAttribute("aria-controls",ue.id),this.options=ue,[].slice.call(this.select.options).forEach(function(de){var he=ce.buildItem(de);ue.appendChild(he),de.selected===!0&&ce.selectItem(he)}),this.container.appendChild(ue)}},{key:"buildPicker",value:function(){var ce=this;[].slice.call(this.select.attributes).forEach(function(ue){ce.container.setAttribute(ue.name,ue.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var ce=this;this.close(),setTimeout(function(){return ce.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(ce){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,de=this.container.querySelector(".ql-selected");if(ce!==de&&(de!=null&&de.classList.remove("ql-selected"),ce!=null&&(ce.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(ce.parentNode.children,ce),ce.hasAttribute("data-value")?this.label.setAttribute("data-value",ce.getAttribute("data-value")):this.label.removeAttribute("data-value"),ce.hasAttribute("data-label")?this.label.setAttribute("data-label",ce.getAttribute("data-label")):this.label.removeAttribute("data-label"),ue))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":K(Event))==="object"){var he=document.createEvent("Event");he.initEvent("change",!0,!0),this.select.dispatchEvent(he)}this.close()}}},{key:"update",value:function(){var ce=void 0;if(this.select.selectedIndex>-1){var ue=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];ce=this.select.options[this.select.selectedIndex],this.selectItem(ue)}else this.selectItem(null);var de=ce!=null&&ce!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",de)}}]),re}();G.default=oe},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(0),J=qe(K),X=Y(5),ie=qe(X),ee=Y(4),ne=qe(ee),Q=Y(16),te=qe(Q),se=Y(25),le=qe(se),oe=Y(24),re=qe(oe),ae=Y(36),ce=qe(ae),ue=Y(6),de=qe(ue),he=Y(22),me=qe(he),ge=Y(7),we=qe(ge),ke=Y(56),_e=qe(ke),fe=Y(43),be=qe(fe),ve=Y(23),$e=qe(ve);function qe(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}ie.default.register({"blots/block":ne.default,"blots/block/embed":ee.BlockEmbed,"blots/break":te.default,"blots/container":le.default,"blots/cursor":re.default,"blots/embed":ce.default,"blots/inline":de.default,"blots/scroll":me.default,"blots/text":we.default,"modules/clipboard":_e.default,"modules/history":be.default,"modules/keyboard":$e.default}),J.default.register(ne.default,te.default,re.default,de.default,me.default,we.default),G.default=ie.default},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(1),J=function(){function X(ie){this.domNode=ie,this.domNode[K.DATA_KEY]={blot:this}}return Object.defineProperty(X.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),X.create=function(ie){if(this.tagName==null)throw new K.ParchmentError("Blot definition missing tagName");var ee;return Array.isArray(this.tagName)?(typeof ie=="string"&&(ie=ie.toUpperCase(),parseInt(ie).toString()===ie&&(ie=parseInt(ie))),typeof ie=="number"?ee=document.createElement(this.tagName[ie-1]):this.tagName.indexOf(ie)>-1?ee=document.createElement(ie):ee=document.createElement(this.tagName[0])):ee=document.createElement(this.tagName),this.className&&ee.classList.add(this.className),ee},X.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},X.prototype.clone=function(){var ie=this.domNode.cloneNode(!1);return K.create(ie)},X.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[K.DATA_KEY]},X.prototype.deleteAt=function(ie,ee){var ne=this.isolate(ie,ee);ne.remove()},X.prototype.formatAt=function(ie,ee,ne,Q){var te=this.isolate(ie,ee);if(K.query(ne,K.Scope.BLOT)!=null&&Q)te.wrap(ne,Q);else if(K.query(ne,K.Scope.ATTRIBUTE)!=null){var se=K.create(this.statics.scope);te.wrap(se),se.format(ne,Q)}},X.prototype.insertAt=function(ie,ee,ne){var Q=ne==null?K.create("text",ee):K.create(ee,ne),te=this.split(ie);this.parent.insertBefore(Q,te)},X.prototype.insertInto=function(ie,ee){ee===void 0&&(ee=null),this.parent!=null&&this.parent.children.remove(this);var ne=null;ie.children.insertBefore(this,ee),ee!=null&&(ne=ee.domNode),(this.domNode.parentNode!=ie.domNode||this.domNode.nextSibling!=ne)&&ie.domNode.insertBefore(this.domNode,ne),this.parent=ie,this.attach()},X.prototype.isolate=function(ie,ee){var ne=this.split(ie);return ne.split(ee),ne},X.prototype.length=function(){return 1},X.prototype.offset=function(ie){return ie===void 0&&(ie=this.parent),this.parent==null||this==ie?0:this.parent.children.offset(this)+this.parent.offset(ie)},X.prototype.optimize=function(ie){this.domNode[K.DATA_KEY]!=null&&delete this.domNode[K.DATA_KEY].mutations},X.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},X.prototype.replace=function(ie){ie.parent!=null&&(ie.parent.insertBefore(this,ie.next),ie.remove())},X.prototype.replaceWith=function(ie,ee){var ne=typeof ie=="string"?K.create(ie,ee):ie;return ne.replace(this),ne},X.prototype.split=function(ie,ee){return ie===0?this:this.next},X.prototype.update=function(ie,ee){},X.prototype.wrap=function(ie,ee){var ne=typeof ie=="string"?K.create(ie,ee):ie;return this.parent!=null&&this.parent.insertBefore(ne,this.next),ne.appendChild(this),ne},X.blotName="abstract",X}();G.default=J},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(12),J=Y(32),X=Y(33),ie=Y(1),ee=function(){function ne(Q){this.attributes={},this.domNode=Q,this.build()}return ne.prototype.attribute=function(Q,te){te?Q.add(this.domNode,te)&&(Q.value(this.domNode)!=null?this.attributes[Q.attrName]=Q:delete this.attributes[Q.attrName]):(Q.remove(this.domNode),delete this.attributes[Q.attrName])},ne.prototype.build=function(){var Q=this;this.attributes={};var te=K.default.keys(this.domNode),se=J.default.keys(this.domNode),le=X.default.keys(this.domNode);te.concat(se).concat(le).forEach(function(oe){var re=ie.query(oe,ie.Scope.ATTRIBUTE);re instanceof K.default&&(Q.attributes[re.attrName]=re)})},ne.prototype.copy=function(Q){var te=this;Object.keys(this.attributes).forEach(function(se){var le=te.attributes[se].value(te.domNode);Q.format(se,le)})},ne.prototype.move=function(Q){var te=this;this.copy(Q),Object.keys(this.attributes).forEach(function(se){te.attributes[se].remove(te.domNode)}),this.attributes={}},ne.prototype.values=function(){var Q=this;return Object.keys(this.attributes).reduce(function(te,se){return te[se]=Q.attributes[se].value(Q.domNode),te},{})},ne}();G.default=ee},function(U,G,Y){var K=this&&this.__extends||function(){var ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,Q){ne.__proto__=Q}||function(ne,Q){for(var te in Q)Q.hasOwnProperty(te)&&(ne[te]=Q[te])};return function(ne,Q){ee(ne,Q);function te(){this.constructor=ne}ne.prototype=Q===null?Object.create(Q):(te.prototype=Q.prototype,new te)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(12);function X(ee,ne){var Q=ee.getAttribute("class")||"";return Q.split(/\s+/).filter(function(te){return te.indexOf(ne+"-")===0})}var ie=function(ee){K(ne,ee);function ne(){return ee!==null&&ee.apply(this,arguments)||this}return ne.keys=function(Q){return(Q.getAttribute("class")||"").split(/\s+/).map(function(te){return te.split("-").slice(0,-1).join("-")})},ne.prototype.add=function(Q,te){return this.canAdd(Q,te)?(this.remove(Q),Q.classList.add(this.keyName+"-"+te),!0):!1},ne.prototype.remove=function(Q){var te=X(Q,this.keyName);te.forEach(function(se){Q.classList.remove(se)}),Q.classList.length===0&&Q.removeAttribute("class")},ne.prototype.value=function(Q){var te=X(Q,this.keyName)[0]||"",se=te.slice(this.keyName.length+1);return this.canAdd(Q,se)?se:""},ne}(J.default);G.default=ie},function(U,G,Y){var K=this&&this.__extends||function(){var ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,Q){ne.__proto__=Q}||function(ne,Q){for(var te in Q)Q.hasOwnProperty(te)&&(ne[te]=Q[te])};return function(ne,Q){ee(ne,Q);function te(){this.constructor=ne}ne.prototype=Q===null?Object.create(Q):(te.prototype=Q.prototype,new te)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(12);function X(ee){var ne=ee.split("-"),Q=ne.slice(1).map(function(te){return te[0].toUpperCase()+te.slice(1)}).join("");return ne[0]+Q}var ie=function(ee){K(ne,ee);function ne(){return ee!==null&&ee.apply(this,arguments)||this}return ne.keys=function(Q){return(Q.getAttribute("style")||"").split(";").map(function(te){var se=te.split(":");return se[0].trim()})},ne.prototype.add=function(Q,te){return this.canAdd(Q,te)?(Q.style[X(this.keyName)]=te,!0):!1},ne.prototype.remove=function(Q){Q.style[X(this.keyName)]="",Q.getAttribute("style")||Q.removeAttribute("style")},ne.prototype.value=function(Q){var te=Q.style[X(this.keyName)];return this.canAdd(Q,te)?te:""},ne}(J.default);G.default=ie},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.getRange=ge,G.internalGetShadowSelection=ke;var K=G.SHADOW_SELECTIONCHANGE="-shadow-selectionchange",J="attachShadow"in Element.prototype&&"getRootNode"in Element.prototype,X=!!(J&&document.createElement("div").attachShadow({mode:"open"}).getSelection),ie=window.ShadyDOM&&window.ShadyDOM.inUse,ee=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ne=!J||ie||!X&&!ee,Q=[Node.ELEMENT_NODE,Node.TEXT_NODE,Node.DOCUMENT_FRAGMENT_NODE];function te(_e){return Q.includes(_e.nodeType)}function se(_e,fe,be){var ve=fe.childNodes||fe.children;if(!ve)return fe;for(var $e=0;$e<ve.length;++$e){var qe=be?$e:ve.length-1-$e,Ce=ve[qe];if(te(Ce)&&_e.containsNode(Ce,!0))return _e.containsNode(Ce,!1)?Ce:se(_e,Ce,be)}return fe}var le=function(){if(X||ne)return document.addEventListener("selectionchange",function(){document.dispatchEvent(new CustomEvent(K))}),function(){};var _e=!1,fe=[];return document.addEventListener("selectionchange",function(be){_e||(document.dispatchEvent(new CustomEvent(K)),_e=!0,window.setTimeout(function(){_e=!1},2),fe.forEach(function(ve){return ve(be)}))}),function(be){return fe.push(be)}}(),oe=!1,re=null;le(function(){var _e=window.getSelection();_e.type==="Caret"?oe=!0:oe&&!re&&(re=Promise.resolve(!0).then(function(){oe=!1,re=null}))});function ae(_e,fe,be){for(var ve=fe;(fe=ue(fe,be))&&fe.contains(ve););return fe?fe instanceof Element&&_e.containsNode(fe,!0):!1}function ce(_e,fe,be){if(_e.type==="Range"){var ve=function(){return _e.toString().length},$e=ve();if($e===1&&oe&&fe===be){_e.extend(fe,0),_e.collapseToEnd();return}var qe=void 0;if(_e.modify("extend","forward","character"),qe=ve(),qe>$e||ae(_e,be,!0))return _e.modify("extend","backward","character"),!0;if(qe<$e||!_e.containsNode(fe))return _e.modify("extend","backward","character"),!1;if(_e.modify("extend","backward","character"),qe=ve(),qe>$e||ae(_e,fe,!1))return _e.modify("extend","forward","character"),!1;if(qe<$e||!_e.containsNode(be))return _e.modify("extend","forward","character"),!0}}function ue(_e,fe){if(!fe)return _e.previousSibling||_e.parentNode||null;for(;_e;){if(_e.nextSibling)return _e.nextSibling;_e=_e.parentNode}return null}function de(_e){return _e.nodeType!==Node.TEXT_NODE?0:/^\s*/.exec(_e.textContent)[0].length}function he(_e){if(_e.nodeType!==Node.TEXT_NODE)return 0;var fe=/\s*$/.exec(_e.textContent)[0].length;return fe?fe-1:0}var me=new Map;function ge(_e){if(X||ne){var fe=(ne?document:_e).getSelection();return fe.rangeCount?fe.getRangeAt(0):null}var be=me.get(_e);if(be)return be;var ve=ke(_e);return me.set(_e,ve.range),window.setTimeout(function(){me.delete(_e)},0),ve.range}var we=document.createTextNode("");function ke(_e){var fe=document.createRange(),be=window.getSelection();if(!be.containsNode(_e.host,!0))return{range:null,mode:"none"};_e.insertBefore(we,_e.childNodes[0]);var ve=be.containsNode(we);if(we.remove(),ve)return{range:null,mode:"outside-before"};_e.appendChild(we);var $e=be.containsNode(we);if(we.remove(),$e)return{range:null,mode:"outside-after"};var qe=function(){return be.toString().length};if(!(be.type==="Caret"||be.type==="Range"))throw new TypeError("unexpected type: "+be.type);var Ce=se(be,_e,!0),Ie=void 0,Ve=void 0;if(be.type==="Range"&&(Ie=se(be,_e,!1),Ve=ce(be,Ce,Ie)),be.type==="Caret"){be.extend(Ce,0);var De=qe();return be.collapseToEnd(),fe.setStart(Ce,De),fe.setEnd(Ce,De),{range:fe,mode:"caret"}}else if(Ve===void 0){if(be.type!=="Range")throw new TypeError("unexpected type: "+be.type);return fe.setStart(Ce,0),fe.setEnd(Ie,Ie.length),{range:fe,mode:"all"}}var Te=qe(),ye=void 0,Ae=void 0,Oe=Ie.length-he(Ie);return Ve?(be.extend(Ce,0),ye=qe()+de(Ce),be.extend(Ie,Oe),Ae=Oe-(qe()-Te),be.extend(Ie,Ae)):(be.extend(Ie,Oe),Ae=Oe-qe(),be.extend(Ce,0),ye=qe()-Te+de(Ce),be.extend(Ce,ye)),fe.setStart(Ce,ye),fe.setEnd(Ie,Ae),{mode:Ve?"right":"left",range:fe}}},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function ie(ee,ne){for(var Q=0;Q<ne.length;Q++){var te=ne[Q];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(ee,te.key,te)}}return function(ee,ne,Q){return ne&&ie(ee.prototype,ne),Q&&ie(ee,Q),ee}}();function J(ie,ee){if(!(ie instanceof ee))throw new TypeError("Cannot call a class as a function")}var X=function(){function ie(ee,ne){J(this,ie),this.quill=ee,this.options=ne,this.modules={}}return K(ie,[{key:"init",value:function(){var ne=this;Object.keys(this.options.modules).forEach(function(Q){ne.modules[Q]==null&&ne.addModule(Q)})}},{key:"addModule",value:function(ne){var Q=this.quill.constructor.import("modules/"+ne);return this.modules[ne]=new Q(this.quill,this.options.modules[ne]||{}),this.modules[ne]}}]),ie}();X.DEFAULTS={modules:{}},X.themes={default:X},G.default=X},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function ae(ce,ue){for(var de=0;de<ue.length;de++){var he=ue[de];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(ce,he.key,he)}}return function(ce,ue,de){return ue&&ae(ce.prototype,ue),de&&ae(ce,de),ce}}(),J=function ae(ce,ue,de){ce===null&&(ce=Function.prototype);var he=Object.getOwnPropertyDescriptor(ce,ue);if(he===void 0){var me=Object.getPrototypeOf(ce);return me===null?void 0:ae(me,ue,de)}else{if("value"in he)return he.value;var ge=he.get;return ge===void 0?void 0:ge.call(de)}},X=Y(0),ie=Q(X),ee=Y(7),ne=Q(ee);function Q(ae){return ae&&ae.__esModule?ae:{default:ae}}function te(ae,ce){if(!(ae instanceof ce))throw new TypeError("Cannot call a class as a function")}function se(ae,ce){if(!ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:ae}function le(ae,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);ae.prototype=Object.create(ce&&ce.prototype,{constructor:{value:ae,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(ae,ce):ae.__proto__=ce)}var oe="\uFEFF",re=function(ae){le(ce,ae);function ce(ue){te(this,ce);var de=se(this,(ce.__proto__||Object.getPrototypeOf(ce)).call(this,ue));return de.contentNode=document.createElement("span"),de.contentNode.setAttribute("contenteditable",!1),[].slice.call(de.domNode.childNodes).forEach(function(he){de.contentNode.appendChild(he)}),de.leftGuard=document.createTextNode(oe),de.rightGuard=document.createTextNode(oe),de.domNode.appendChild(de.leftGuard),de.domNode.appendChild(de.contentNode),de.domNode.appendChild(de.rightGuard),de}return K(ce,[{key:"index",value:function(de,he){return de===this.leftGuard?0:de===this.rightGuard?1:J(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"index",this).call(this,de,he)}},{key:"restore",value:function(de){var he=void 0,me=void 0,ge=de.data.split(oe).join("");if(de===this.leftGuard)if(this.prev instanceof ne.default){var we=this.prev.length();this.prev.insertAt(we,ge),he={startNode:this.prev.domNode,startOffset:we+ge.length}}else me=document.createTextNode(ge),this.parent.insertBefore(ie.default.create(me),this),he={startNode:me,startOffset:ge.length};else de===this.rightGuard&&(this.next instanceof ne.default?(this.next.insertAt(0,ge),he={startNode:this.next.domNode,startOffset:ge.length}):(me=document.createTextNode(ge),this.parent.insertBefore(ie.default.create(me),this.next),he={startNode:me,startOffset:ge.length}));return de.data=oe,he}},{key:"update",value:function(de,he){var me=this;de.forEach(function(ge){if(ge.type==="characterData"&&(ge.target===me.leftGuard||ge.target===me.rightGuard)){var we=me.restore(ge.target);we&&(he.range=we)}})}}]),ce}(ie.default.Embed);G.default=re},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.AlignStyle=G.AlignClass=G.AlignAttribute=void 0;var K=Y(0),J=X(K);function X(te){return te&&te.__esModule?te:{default:te}}var ie={scope:J.default.Scope.BLOCK,whitelist:["right","center","justify"]},ee=new J.default.Attributor.Attribute("align","align",ie),ne=new J.default.Attributor.Class("align","ql-align",ie),Q=new J.default.Attributor.Style("align","text-align",ie);G.AlignAttribute=ee,G.AlignClass=ne,G.AlignStyle=Q},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.BackgroundStyle=G.BackgroundClass=void 0;var K=Y(0),J=ie(K),X=Y(26);function ie(Q){return Q&&Q.__esModule?Q:{default:Q}}var ee=new J.default.Attributor.Class("background","ql-bg",{scope:J.default.Scope.INLINE}),ne=new X.ColorAttributor("background","background-color",{scope:J.default.Scope.INLINE});G.BackgroundClass=ee,G.BackgroundStyle=ne},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.DirectionStyle=G.DirectionClass=G.DirectionAttribute=void 0;var K=Y(0),J=X(K);function X(te){return te&&te.__esModule?te:{default:te}}var ie={scope:J.default.Scope.BLOCK,whitelist:["rtl"]},ee=new J.default.Attributor.Attribute("direction","dir",ie),ne=new J.default.Attributor.Class("direction","ql-direction",ie),Q=new J.default.Attributor.Style("direction","direction",ie);G.DirectionAttribute=ee,G.DirectionClass=ne,G.DirectionStyle=Q},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.FontClass=G.FontStyle=void 0;var K=function(){function ae(ce,ue){for(var de=0;de<ue.length;de++){var he=ue[de];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(ce,he.key,he)}}return function(ce,ue,de){return ue&&ae(ce.prototype,ue),de&&ae(ce,de),ce}}(),J=function ae(ce,ue,de){ce===null&&(ce=Function.prototype);var he=Object.getOwnPropertyDescriptor(ce,ue);if(he===void 0){var me=Object.getPrototypeOf(ce);return me===null?void 0:ae(me,ue,de)}else{if("value"in he)return he.value;var ge=he.get;return ge===void 0?void 0:ge.call(de)}},X=Y(0),ie=ee(X);function ee(ae){return ae&&ae.__esModule?ae:{default:ae}}function ne(ae,ce){if(!(ae instanceof ce))throw new TypeError("Cannot call a class as a function")}function Q(ae,ce){if(!ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:ae}function te(ae,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);ae.prototype=Object.create(ce&&ce.prototype,{constructor:{value:ae,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(ae,ce):ae.__proto__=ce)}var se={scope:ie.default.Scope.INLINE,whitelist:["serif","monospace"]},le=new ie.default.Attributor.Class("font","ql-font",se),oe=function(ae){te(ce,ae);function ce(){return ne(this,ce),Q(this,(ce.__proto__||Object.getPrototypeOf(ce)).apply(this,arguments))}return K(ce,[{key:"value",value:function(de){return J(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"value",this).call(this,de).replace(/["']/g,"")}}]),ce}(ie.default.Attributor.Style),re=new oe("font","font-family",se);G.FontStyle=re,G.FontClass=le},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.SizeStyle=G.SizeClass=void 0;var K=Y(0),J=X(K);function X(ne){return ne&&ne.__esModule?ne:{default:ne}}var ie=new J.default.Attributor.Class("size","ql-size",{scope:J.default.Scope.INLINE,whitelist:["small","large","huge"]}),ee=new J.default.Attributor.Style("size","font-size",{scope:J.default.Scope.INLINE,whitelist:["10px","18px","32px"]});G.SizeClass=ie,G.SizeStyle=ee},function(U,G,Y){U.exports={align:{"":Y(77),center:Y(78),right:Y(79),justify:Y(80)},background:Y(81),blockquote:Y(82),bold:Y(83),clean:Y(84),code:Y(59),"code-block":Y(59),color:Y(85),direction:{"":Y(86),rtl:Y(87)},float:{center:Y(88),full:Y(89),left:Y(90),right:Y(91)},formula:Y(92),header:{1:Y(93),2:Y(94)},italic:Y(95),image:Y(96),indent:{"+1":Y(97),"-1":Y(98)},link:Y(99),list:{ordered:Y(100),bullet:Y(101),check:Y(102)},script:{sub:Y(103),super:Y(104)},strike:Y(105),underline:Y(106),video:Y(107)}},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.getLastChangeIndex=G.default=void 0;var K=function(){function ue(de,he){for(var me=0;me<he.length;me++){var ge=he[me];ge.enumerable=ge.enumerable||!1,ge.configurable=!0,"value"in ge&&(ge.writable=!0),Object.defineProperty(de,ge.key,ge)}}return function(de,he,me){return he&&ue(de.prototype,he),me&&ue(de,me),de}}(),J=Y(0),X=te(J),ie=Y(5),ee=te(ie),ne=Y(9),Q=te(ne);function te(ue){return ue&&ue.__esModule?ue:{default:ue}}function se(ue,de){if(!(ue instanceof de))throw new TypeError("Cannot call a class as a function")}function le(ue,de){if(!ue)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de&&(typeof de=="object"||typeof de=="function")?de:ue}function oe(ue,de){if(typeof de!="function"&&de!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof de);ue.prototype=Object.create(de&&de.prototype,{constructor:{value:ue,enumerable:!1,writable:!0,configurable:!0}}),de&&(Object.setPrototypeOf?Object.setPrototypeOf(ue,de):ue.__proto__=de)}var re=function(ue){oe(de,ue);function de(he,me){se(this,de);var ge=le(this,(de.__proto__||Object.getPrototypeOf(de)).call(this,he,me));return ge.lastRecorded=0,ge.ignoreChange=!1,ge.clear(),ge.quill.on(ee.default.events.EDITOR_CHANGE,function(we,ke,_e,fe){we!==ee.default.events.TEXT_CHANGE||ge.ignoreChange||(!ge.options.userOnly||fe===ee.default.sources.USER?ge.record(ke,_e):ge.transform(ke))}),ge.quill.keyboard.addBinding({key:"Z",shortKey:!0},ge.undo.bind(ge)),ge.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},ge.redo.bind(ge)),/Win/i.test(navigator.platform)&&ge.quill.keyboard.addBinding({key:"Y",shortKey:!0},ge.redo.bind(ge)),ge}return K(de,[{key:"change",value:function(me,ge){if(this.stack[me].length!==0){var we=this.stack[me].pop();this.stack[ge].push(we),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(we[me],ee.default.sources.USER),this.ignoreChange=!1;var ke=ce(we[me]);this.quill.setSelection(ke)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(me,ge){if(me.ops.length!==0){this.stack.redo=[];var we=this.quill.getContents().diff(ge),ke=Date.now();if(this.lastRecorded+this.options.delay>ke&&this.stack.undo.length>0){var _e=this.stack.undo.pop();we=we.compose(_e.undo),me=_e.redo.compose(me)}else this.lastRecorded=ke;this.stack.undo.push({redo:me,undo:we}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(me){this.stack.undo.forEach(function(ge){ge.undo=me.transform(ge.undo,!0),ge.redo=me.transform(ge.redo,!0)}),this.stack.redo.forEach(function(ge){ge.undo=me.transform(ge.undo,!0),ge.redo=me.transform(ge.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),de}(Q.default);re.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function ae(ue){var de=ue.ops[ue.ops.length-1];return de==null?!1:de.insert!=null?typeof de.insert=="string"&&de.insert.endsWith(`
8650
- `):de.attributes!=null?Object.keys(de.attributes).some(function(he){return X.default.query(he,X.default.Scope.BLOCK)!=null}):!1}function ce(ue){var de=ue.reduce(function(me,ge){return me+=ge.delete||0,me},0),he=ue.length()-de;return ae(ue)&&(he-=1),he}G.default=re,G.getLastChangeIndex=ce},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.BaseTooltip=void 0;var K=function(){function Ae(Oe,Pe){for(var Le=0;Le<Pe.length;Le++){var Ee=Pe[Le];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(Oe,Ee.key,Ee)}}return function(Oe,Pe,Le){return Pe&&Ae(Oe.prototype,Pe),Le&&Ae(Oe,Le),Oe}}(),J=function Ae(Oe,Pe,Le){Oe===null&&(Oe=Function.prototype);var Ee=Object.getOwnPropertyDescriptor(Oe,Pe);if(Ee===void 0){var Re=Object.getPrototypeOf(Oe);return Re===null?void 0:Ae(Re,Pe,Le)}else{if("value"in Ee)return Ee.value;var Me=Ee.get;return Me===void 0?void 0:Me.call(Le)}},X=Y(3),ie=ke(X),ee=Y(2),ne=ke(ee),Q=Y(8),te=ke(Q),se=Y(23),le=ke(se),oe=Y(35),re=ke(oe),ae=Y(60),ce=ke(ae),ue=Y(61),de=ke(ue),he=Y(28),me=ke(he),ge=Y(62),we=ke(ge);function ke(Ae){return Ae&&Ae.__esModule?Ae:{default:Ae}}function _e(Ae,Oe){if(!(Ae instanceof Oe))throw new TypeError("Cannot call a class as a function")}function fe(Ae,Oe){if(!Ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Oe&&(typeof Oe=="object"||typeof Oe=="function")?Oe:Ae}function be(Ae,Oe){if(typeof Oe!="function"&&Oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Oe);Ae.prototype=Object.create(Oe&&Oe.prototype,{constructor:{value:Ae,enumerable:!1,writable:!0,configurable:!0}}),Oe&&(Object.setPrototypeOf?Object.setPrototypeOf(Ae,Oe):Ae.__proto__=Oe)}var ve=[!1,"center","right","justify"],$e=["#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"],qe=[!1,"serif","monospace"],Ce=["1","2","3",!1],Ie=["petita",!1,"gran","enorme"],Ve=function(Ae){be(Oe,Ae);function Oe(Pe,Le){_e(this,Oe);var Ee=fe(this,(Oe.__proto__||Object.getPrototypeOf(Oe)).call(this,Pe,Le)),Re=function Me(Be){if(!document.body.contains(Pe.root))return document.body.removeEventListener("click",Me);Ee.tooltip!=null&&!Ee.tooltip.root.contains(Be.target)&&document.activeElement!==Ee.tooltip.textbox&&!Ee.quill.hasFocus()&&Ee.tooltip.hide(),Ee.pickers!=null&&Ee.pickers.forEach(function(He){He.container.contains(Be.target)||He.close()})};return Pe.emitter.listenDOM("click",document.body,Re),Ee}return K(Oe,[{key:"addModule",value:function(Le){var Ee=J(Oe.prototype.__proto__||Object.getPrototypeOf(Oe.prototype),"addModule",this).call(this,Le);return Le==="toolbar"&&this.extendToolbar(Ee),Ee}},{key:"buildButtons",value:function(Le,Ee){Le.forEach(function(Re){var Me=Re.getAttribute("class")||"";Me.split(/\s+/).forEach(function(Be){if(Be.startsWith("ql-")&&(Be=Be.slice(3),Ee[Be]!=null))if(Be==="direction")Re.innerHTML=Ee[Be][""]+Ee[Be].rtl;else if(typeof Ee[Be]=="string")Re.innerHTML=Ee[Be];else{var He=Re.value||"";He!=null&&Ee[Be][He]&&(Re.innerHTML=Ee[Be][He])}})})}},{key:"buildPickers",value:function(Le,Ee){var Re=this;this.pickers=Le.map(function(Be){if(Be.classList.contains("ql-align"))return Be.querySelector("option")==null&&ye(Be,ve),new de.default(Be,Ee.align);if(Be.classList.contains("ql-background")||Be.classList.contains("ql-color")){var He=Be.classList.contains("ql-background")?"background":"color";return Be.querySelector("option")==null&&ye(Be,$e,He==="background"?"#ffffff":"#000000"),new ce.default(Be,Ee[He])}else return Be.querySelector("option")==null&&(Be.classList.contains("ql-font")?ye(Be,qe):Be.classList.contains("ql-header")?ye(Be,Ce):Be.classList.contains("ql-size")&&ye(Be,Ie)),new me.default(Be)});var Me=function(){Re.pickers.forEach(function(He){He.update()})};this.quill.on(te.default.events.EDITOR_CHANGE,Me)}}]),Oe}(re.default);Ve.DEFAULTS=(0,ie.default)(!0,{},re.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var Oe=this,Pe=this.container.querySelector("input.ql-image[type=file]");Pe==null&&(Pe=document.createElement("input"),Pe.setAttribute("type","file"),Pe.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),Pe.classList.add("ql-image"),Pe.addEventListener("change",function(){if(Pe.files!=null&&Pe.files[0]!=null){var Le=new FileReader;Le.onload=function(Ee){var Re=Oe.quill.getSelection(!0);Oe.quill.updateContents(new ne.default().retain(Re.index).delete(Re.length).insert({image:Ee.target.result}),te.default.sources.USER),Oe.quill.setSelection(Re.index+1,te.default.sources.SILENT),Pe.value=""},Le.readAsDataURL(Pe.files[0])}}),this.container.appendChild(Pe)),Pe.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var De=function(Ae){be(Oe,Ae);function Oe(Pe,Le){_e(this,Oe);var Ee=fe(this,(Oe.__proto__||Object.getPrototypeOf(Oe)).call(this,Pe,Le));return Ee.textbox=Ee.root.querySelector('input[type="text"]'),Ee.listen(),Ee}return K(Oe,[{key:"listen",value:function(){var Le=this;this.textbox.addEventListener("keydown",function(Ee){le.default.match(Ee,"enter")?(Le.save(),Ee.preventDefault()):le.default.match(Ee,"escape")&&(Le.cancel(),Ee.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),Ee!=null?this.textbox.value=Ee:Le!==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-"+Le)||""),this.root.setAttribute("data-mode",Le)}},{key:"restoreFocus",value:function(){var Le=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=Le}},{key:"save",value:function(){var Le=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var Ee=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",Le,te.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",Le,te.default.sources.USER)),this.quill.root.scrollTop=Ee;break}case"video":Le=Te(Le);case"formula":{if(!Le)break;var Re=this.quill.getSelection(!0);if(Re!=null){var Me=Re.index+Re.length;this.quill.insertEmbed(Me,this.root.getAttribute("data-mode"),Le,te.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(Me+1," ",te.default.sources.USER),this.quill.setSelection(Me+2,te.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),Oe}(we.default);function Te(Ae){var Oe=Ae.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||Ae.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return Oe?(Oe[1]||"https")+"://www.youtube.com/embed/"+Oe[2]+"?showinfo=0":(Oe=Ae.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(Oe[1]||"https")+"://player.vimeo.com/video/"+Oe[2]+"/":Ae}function ye(Ae,Oe){var Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Oe.forEach(function(Le){var Ee=document.createElement("option");Le===Pe?Ee.setAttribute("selected","selected"):Ee.setAttribute("value",Le),Ae.appendChild(Ee)})}G.BaseTooltip=De,G.default=Ve},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function J(){this.head=this.tail=null,this.length=0}return J.prototype.append=function(){for(var X=[],ie=0;ie<arguments.length;ie++)X[ie]=arguments[ie];this.insertBefore(X[0],null),X.length>1&&this.append.apply(this,X.slice(1))},J.prototype.contains=function(X){for(var ie,ee=this.iterator();ie=ee();)if(ie===X)return!0;return!1},J.prototype.insertBefore=function(X,ie){X&&(X.next=ie,ie!=null?(X.prev=ie.prev,ie.prev!=null&&(ie.prev.next=X),ie.prev=X,ie===this.head&&(this.head=X)):this.tail!=null?(this.tail.next=X,X.prev=this.tail,this.tail=X):(X.prev=null,this.head=this.tail=X),this.length+=1)},J.prototype.offset=function(X){for(var ie=0,ee=this.head;ee!=null;){if(ee===X)return ie;ie+=ee.length(),ee=ee.next}return-1},J.prototype.remove=function(X){this.contains(X)&&(X.prev!=null&&(X.prev.next=X.next),X.next!=null&&(X.next.prev=X.prev),X===this.head&&(this.head=X.next),X===this.tail&&(this.tail=X.prev),this.length-=1)},J.prototype.iterator=function(X){return X===void 0&&(X=this.head),function(){var ie=X;return X!=null&&(X=X.next),ie}},J.prototype.find=function(X,ie){ie===void 0&&(ie=!1);for(var ee,ne=this.iterator();ee=ne();){var Q=ee.length();if(X<Q||ie&&X===Q&&(ee.next==null||ee.next.length()!==0))return[ee,X];X-=Q}return[null,0]},J.prototype.forEach=function(X){for(var ie,ee=this.iterator();ie=ee();)X(ie)},J.prototype.forEachAt=function(X,ie,ee){if(!(ie<=0))for(var ne=this.find(X),Q=ne[0],te=ne[1],se,le=X-te,oe=this.iterator(Q);(se=oe())&&le<X+ie;){var re=se.length();X>le?ee(se,X-le,Math.min(ie,le+re-X)):ee(se,0,Math.min(re,X+ie-le)),le+=re}},J.prototype.map=function(X){return this.reduce(function(ie,ee){return ie.push(X(ee)),ie},[])},J.prototype.reduce=function(X,ie){for(var ee,ne=this.iterator();ee=ne();)ie=X(ie,ee);return ie},J}();G.default=K},function(U,G,Y){var K=this&&this.__extends||function(){var Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,se){te.__proto__=se}||function(te,se){for(var le in se)se.hasOwnProperty(le)&&(te[le]=se[le])};return function(te,se){Q(te,se);function le(){this.constructor=te}te.prototype=se===null?Object.create(se):(le.prototype=se.prototype,new le)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(17),X=Y(1),ie={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},ee=100,ne=function(Q){K(te,Q);function te(se){var le=Q.call(this,se)||this;return le.scroll=le,le.observer=new MutationObserver(function(oe){le.update(oe)}),le.observer.observe(le.domNode,ie),le.attach(),le}return te.prototype.detach=function(){Q.prototype.detach.call(this),this.observer.disconnect()},te.prototype.deleteAt=function(se,le){this.update(),se===0&&le===this.length()?this.children.forEach(function(oe){oe.remove()}):Q.prototype.deleteAt.call(this,se,le)},te.prototype.formatAt=function(se,le,oe,re){this.update(),Q.prototype.formatAt.call(this,se,le,oe,re)},te.prototype.insertAt=function(se,le,oe){this.update(),Q.prototype.insertAt.call(this,se,le,oe)},te.prototype.optimize=function(se,le){var oe=this;se===void 0&&(se=[]),le===void 0&&(le={}),Q.prototype.optimize.call(this,le);for(var re=[].slice.call(this.observer.takeRecords());re.length>0;)se.push(re.pop());for(var ae=function(he,me){me===void 0&&(me=!0),!(he==null||he===oe)&&he.domNode.parentNode!=null&&(he.domNode[X.DATA_KEY].mutations==null&&(he.domNode[X.DATA_KEY].mutations=[]),me&&ae(he.parent))},ce=function(he){he.domNode[X.DATA_KEY]==null||he.domNode[X.DATA_KEY].mutations==null||(he instanceof J.default&&he.children.forEach(ce),he.optimize(le))},ue=se,de=0;ue.length>0;de+=1){if(de>=ee)throw new Error("[Parchment] Maximum optimize iterations reached");for(ue.forEach(function(he){var me=X.find(he.target,!0);me!=null&&(me.domNode===he.target&&(he.type==="childList"?(ae(X.find(he.previousSibling,!1)),[].forEach.call(he.addedNodes,function(ge){var we=X.find(ge,!1);ae(we,!1),we instanceof J.default&&we.children.forEach(function(ke){ae(ke,!1)})})):he.type==="attributes"&&ae(me.prev)),ae(me))}),this.children.forEach(ce),ue=[].slice.call(this.observer.takeRecords()),re=ue.slice();re.length>0;)se.push(re.pop())}},te.prototype.update=function(se,le){var oe=this;le===void 0&&(le={}),se=se||this.observer.takeRecords(),se.map(function(re){var ae=X.find(re.target,!0);return ae==null?null:ae.domNode[X.DATA_KEY].mutations==null?(ae.domNode[X.DATA_KEY].mutations=[re],ae):(ae.domNode[X.DATA_KEY].mutations.push(re),null)}).forEach(function(re){re==null||re===oe||re.domNode[X.DATA_KEY]==null||re.update(re.domNode[X.DATA_KEY].mutations||[],le)}),this.domNode[X.DATA_KEY].mutations!=null&&Q.prototype.update.call(this,this.domNode[X.DATA_KEY].mutations,le),this.optimize(se,le)},te.blotName="scroll",te.defaultChild="block",te.scope=X.Scope.BLOCK_BLOT,te.tagName="DIV",te}(J.default);G.default=ne},function(U,G,Y){var K=this&&this.__extends||function(){var ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,te){Q.__proto__=te}||function(Q,te){for(var se in te)te.hasOwnProperty(se)&&(Q[se]=te[se])};return function(Q,te){ne(Q,te);function se(){this.constructor=Q}Q.prototype=te===null?Object.create(te):(se.prototype=te.prototype,new se)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(18),X=Y(1);function ie(ne,Q){if(Object.keys(ne).length!==Object.keys(Q).length)return!1;for(var te in ne)if(ne[te]!==Q[te])return!1;return!0}var ee=function(ne){K(Q,ne);function Q(){return ne!==null&&ne.apply(this,arguments)||this}return Q.formats=function(te){if(te.tagName!==Q.tagName)return ne.formats.call(this,te)},Q.prototype.format=function(te,se){var le=this;te===this.statics.blotName&&!se?(this.children.forEach(function(oe){oe instanceof J.default||(oe=oe.wrap(Q.blotName,!0)),le.attributes.copy(oe)}),this.unwrap()):ne.prototype.format.call(this,te,se)},Q.prototype.formatAt=function(te,se,le,oe){if(this.formats()[le]!=null||X.query(le,X.Scope.ATTRIBUTE)){var re=this.isolate(te,se);re.format(le,oe)}else ne.prototype.formatAt.call(this,te,se,le,oe)},Q.prototype.optimize=function(te){ne.prototype.optimize.call(this,te);var se=this.formats();if(Object.keys(se).length===0)return this.unwrap();var le=this.next;le instanceof Q&&le.prev===this&&ie(se,le.formats())&&(le.moveChildren(this),le.remove())},Q.blotName="inline",Q.scope=X.Scope.INLINE_BLOT,Q.tagName="SPAN",Q}(J.default);G.default=ee},function(U,G,Y){var K=this&&this.__extends||function(){var ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,Q){ne.__proto__=Q}||function(ne,Q){for(var te in Q)Q.hasOwnProperty(te)&&(ne[te]=Q[te])};return function(ne,Q){ee(ne,Q);function te(){this.constructor=ne}ne.prototype=Q===null?Object.create(Q):(te.prototype=Q.prototype,new te)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(18),X=Y(1),ie=function(ee){K(ne,ee);function ne(){return ee!==null&&ee.apply(this,arguments)||this}return ne.formats=function(Q){var te=X.query(ne.blotName).tagName;if(Q.tagName!==te)return ee.formats.call(this,Q)},ne.prototype.format=function(Q,te){X.query(Q,X.Scope.BLOCK)!=null&&(Q===this.statics.blotName&&!te?this.replaceWith(ne.blotName):ee.prototype.format.call(this,Q,te))},ne.prototype.formatAt=function(Q,te,se,le){X.query(se,X.Scope.BLOCK)!=null?this.format(se,le):ee.prototype.formatAt.call(this,Q,te,se,le)},ne.prototype.insertAt=function(Q,te,se){if(se==null||X.query(te,X.Scope.INLINE)!=null)ee.prototype.insertAt.call(this,Q,te,se);else{var le=this.split(Q),oe=X.create(te,se);le.parent.insertBefore(oe,le)}},ne.prototype.update=function(Q,te){navigator.userAgent.match(/Trident/)?this.build():ee.prototype.update.call(this,Q,te)},ne.blotName="block",ne.scope=X.Scope.BLOCK_BLOT,ne.tagName="P",ne}(J.default);G.default=ie},function(U,G,Y){var K=this&&this.__extends||function(){var ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,ne){ee.__proto__=ne}||function(ee,ne){for(var Q in ne)ne.hasOwnProperty(Q)&&(ee[Q]=ne[Q])};return function(ee,ne){ie(ee,ne);function Q(){this.constructor=ee}ee.prototype=ne===null?Object.create(ne):(Q.prototype=ne.prototype,new Q)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(19),X=function(ie){K(ee,ie);function ee(){return ie!==null&&ie.apply(this,arguments)||this}return ee.formats=function(ne){},ee.prototype.format=function(ne,Q){ie.prototype.formatAt.call(this,0,this.length(),ne,Q)},ee.prototype.formatAt=function(ne,Q,te,se){ne===0&&Q===this.length()?this.format(te,se):ie.prototype.formatAt.call(this,ne,Q,te,se)},ee.prototype.formats=function(){return this.statics.formats(this.domNode)},ee}(J.default);G.default=X},function(U,G,Y){var K=this&&this.__extends||function(){var ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,Q){ne.__proto__=Q}||function(ne,Q){for(var te in Q)Q.hasOwnProperty(te)&&(ne[te]=Q[te])};return function(ne,Q){ee(ne,Q);function te(){this.constructor=ne}ne.prototype=Q===null?Object.create(Q):(te.prototype=Q.prototype,new te)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(19),X=Y(1),ie=function(ee){K(ne,ee);function ne(Q){var te=ee.call(this,Q)||this;return te.text=te.statics.value(te.domNode),te}return ne.create=function(Q){return document.createTextNode(Q)},ne.value=function(Q){var te=Q.data;return te.normalize&&(te=te.normalize()),te},ne.prototype.deleteAt=function(Q,te){this.domNode.data=this.text=this.text.slice(0,Q)+this.text.slice(Q+te)},ne.prototype.index=function(Q,te){return this.domNode===Q?te:-1},ne.prototype.insertAt=function(Q,te,se){se==null?(this.text=this.text.slice(0,Q)+te+this.text.slice(Q),this.domNode.data=this.text):ee.prototype.insertAt.call(this,Q,te,se)},ne.prototype.length=function(){return this.text.length},ne.prototype.optimize=function(Q){ee.prototype.optimize.call(this,Q),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof ne&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},ne.prototype.position=function(Q,te){return[this.domNode,Q]},ne.prototype.split=function(Q,te){if(te===void 0&&(te=!1),!te){if(Q===0)return this;if(Q===this.length())return this.next}var se=X.create(this.domNode.splitText(Q));return this.parent.insertBefore(se,this.next),this.text=this.statics.value(this.domNode),se},ne.prototype.update=function(Q,te){var se=this;Q.some(function(le){return le.type==="characterData"&&le.target===se.domNode})&&(this.text=this.statics.value(this.domNode))},ne.prototype.value=function(){return this.text},ne.blotName="text",ne.scope=X.Scope.INLINE_BLOT,ne}(J.default);G.default=ie},function(U,G,Y){var K=document.createElement("div");if(K.classList.toggle("test-class",!1),K.classList.contains("test-class")){var J=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(X,ie){return arguments.length>1&&!this.contains(X)==!ie?ie:J.call(this,X)}}String.prototype.startsWith||(String.prototype.startsWith=function(X,ie){return ie=ie||0,this.substr(ie,X.length)===X}),String.prototype.endsWith||(String.prototype.endsWith=function(X,ie){var ee=this.toString();(typeof ie!="number"||!isFinite(ie)||Math.floor(ie)!==ie||ie>ee.length)&&(ie=ee.length),ie-=X.length;var ne=ee.indexOf(X,ie);return ne!==-1&&ne===ie}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(ie){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof ie!="function")throw new TypeError("predicate must be a function");for(var ee=Object(this),ne=ee.length>>>0,Q=arguments[1],te,se=0;se<ne;se++)if(te=ee[se],ie.call(Q,te,se,ee))return te}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(U,G){var Y=-1,K=1,J=0;function X(de,he,me){if(de==he)return de?[[J,de]]:[];(me<0||de.length<me)&&(me=null);var ge=Q(de,he),we=de.substring(0,ge);de=de.substring(ge),he=he.substring(ge),ge=te(de,he);var ke=de.substring(de.length-ge);de=de.substring(0,de.length-ge),he=he.substring(0,he.length-ge);var _e=ie(de,he);return we&&_e.unshift([J,we]),ke&&_e.push([J,ke]),le(_e),me!=null&&(_e=ae(_e,me)),_e=ce(_e),_e}function ie(de,he){var me;if(!de)return[[K,he]];if(!he)return[[Y,de]];var ge=de.length>he.length?de:he,we=de.length>he.length?he:de,ke=ge.indexOf(we);if(ke!=-1)return me=[[K,ge.substring(0,ke)],[J,we],[K,ge.substring(ke+we.length)]],de.length>he.length&&(me[0][0]=me[2][0]=Y),me;if(we.length==1)return[[Y,de],[K,he]];var _e=se(de,he);if(_e){var fe=_e[0],be=_e[1],ve=_e[2],$e=_e[3],qe=_e[4],Ce=X(fe,ve),Ie=X(be,$e);return Ce.concat([[J,qe]],Ie)}return ee(de,he)}function ee(de,he){for(var me=de.length,ge=he.length,we=Math.ceil((me+ge)/2),ke=we,_e=2*we,fe=new Array(_e),be=new Array(_e),ve=0;ve<_e;ve++)fe[ve]=-1,be[ve]=-1;fe[ke+1]=0,be[ke+1]=0;for(var $e=me-ge,qe=$e%2!=0,Ce=0,Ie=0,Ve=0,De=0,Te=0;Te<we;Te++){for(var ye=-Te+Ce;ye<=Te-Ie;ye+=2){var Ae=ke+ye,Oe;ye==-Te||ye!=Te&&fe[Ae-1]<fe[Ae+1]?Oe=fe[Ae+1]:Oe=fe[Ae-1]+1;for(var Pe=Oe-ye;Oe<me&&Pe<ge&&de.charAt(Oe)==he.charAt(Pe);)Oe++,Pe++;if(fe[Ae]=Oe,Oe>me)Ie+=2;else if(Pe>ge)Ce+=2;else if(qe){var Le=ke+$e-ye;if(Le>=0&&Le<_e&&be[Le]!=-1){var Ee=me-be[Le];if(Oe>=Ee)return ne(de,he,Oe,Pe)}}}for(var Re=-Te+Ve;Re<=Te-De;Re+=2){var Le=ke+Re,Ee;Re==-Te||Re!=Te&&be[Le-1]<be[Le+1]?Ee=be[Le+1]:Ee=be[Le-1]+1;for(var Me=Ee-Re;Ee<me&&Me<ge&&de.charAt(me-Ee-1)==he.charAt(ge-Me-1);)Ee++,Me++;if(be[Le]=Ee,Ee>me)De+=2;else if(Me>ge)Ve+=2;else if(!qe){var Ae=ke+$e-Re;if(Ae>=0&&Ae<_e&&fe[Ae]!=-1){var Oe=fe[Ae],Pe=ke+Oe-Ae;if(Ee=me-Ee,Oe>=Ee)return ne(de,he,Oe,Pe)}}}}return[[Y,de],[K,he]]}function ne(de,he,me,ge){var we=de.substring(0,me),ke=he.substring(0,ge),_e=de.substring(me),fe=he.substring(ge),be=X(we,ke),ve=X(_e,fe);return be.concat(ve)}function Q(de,he){if(!de||!he||de.charAt(0)!=he.charAt(0))return 0;for(var me=0,ge=Math.min(de.length,he.length),we=ge,ke=0;me<we;)de.substring(ke,we)==he.substring(ke,we)?(me=we,ke=me):ge=we,we=Math.floor((ge-me)/2+me);return we}function te(de,he){if(!de||!he||de.charAt(de.length-1)!=he.charAt(he.length-1))return 0;for(var me=0,ge=Math.min(de.length,he.length),we=ge,ke=0;me<we;)de.substring(de.length-we,de.length-ke)==he.substring(he.length-we,he.length-ke)?(me=we,ke=me):ge=we,we=Math.floor((ge-me)/2+me);return we}function se(de,he){var me=de.length>he.length?de:he,ge=de.length>he.length?he:de;if(me.length<4||ge.length*2<me.length)return null;function we(Ie,Ve,De){for(var Te=Ie.substring(De,De+Math.floor(Ie.length/4)),ye=-1,Ae="",Oe,Pe,Le,Ee;(ye=Ve.indexOf(Te,ye+1))!=-1;){var Re=Q(Ie.substring(De),Ve.substring(ye)),Me=te(Ie.substring(0,De),Ve.substring(0,ye));Ae.length<Me+Re&&(Ae=Ve.substring(ye-Me,ye)+Ve.substring(ye,ye+Re),Oe=Ie.substring(0,De-Me),Pe=Ie.substring(De+Re),Le=Ve.substring(0,ye-Me),Ee=Ve.substring(ye+Re))}return Ae.length*2>=Ie.length?[Oe,Pe,Le,Ee,Ae]:null}var ke=we(me,ge,Math.ceil(me.length/4)),_e=we(me,ge,Math.ceil(me.length/2)),fe;if(!ke&&!_e)return null;_e?ke?fe=ke[4].length>_e[4].length?ke:_e:fe=_e:fe=ke;var be,ve,$e,qe;de.length>he.length?(be=fe[0],ve=fe[1],$e=fe[2],qe=fe[3]):($e=fe[0],qe=fe[1],be=fe[2],ve=fe[3]);var Ce=fe[4];return[be,ve,$e,qe,Ce]}function le(de){de.push([J,""]);for(var he=0,me=0,ge=0,we="",ke="",_e;he<de.length;)switch(de[he][0]){case K:ge++,ke+=de[he][1],he++;break;case Y:me++,we+=de[he][1],he++;break;case J:me+ge>1?(me!==0&&ge!==0&&(_e=Q(ke,we),_e!==0&&(he-me-ge>0&&de[he-me-ge-1][0]==J?de[he-me-ge-1][1]+=ke.substring(0,_e):(de.splice(0,0,[J,ke.substring(0,_e)]),he++),ke=ke.substring(_e),we=we.substring(_e)),_e=te(ke,we),_e!==0&&(de[he][1]=ke.substring(ke.length-_e)+de[he][1],ke=ke.substring(0,ke.length-_e),we=we.substring(0,we.length-_e))),me===0?de.splice(he-ge,me+ge,[K,ke]):ge===0?de.splice(he-me,me+ge,[Y,we]):de.splice(he-me-ge,me+ge,[Y,we],[K,ke]),he=he-me-ge+(me?1:0)+(ge?1:0)+1):he!==0&&de[he-1][0]==J?(de[he-1][1]+=de[he][1],de.splice(he,1)):he++,ge=0,me=0,we="",ke="";break}de[de.length-1][1]===""&&de.pop();var fe=!1;for(he=1;he<de.length-1;)de[he-1][0]==J&&de[he+1][0]==J&&(de[he][1].substring(de[he][1].length-de[he-1][1].length)==de[he-1][1]?(de[he][1]=de[he-1][1]+de[he][1].substring(0,de[he][1].length-de[he-1][1].length),de[he+1][1]=de[he-1][1]+de[he+1][1],de.splice(he-1,1),fe=!0):de[he][1].substring(0,de[he+1][1].length)==de[he+1][1]&&(de[he-1][1]+=de[he+1][1],de[he][1]=de[he][1].substring(de[he+1][1].length)+de[he+1][1],de.splice(he+1,1),fe=!0)),he++;fe&&le(de)}var oe=X;oe.INSERT=K,oe.DELETE=Y,oe.EQUAL=J,U.exports=oe;function re(de,he){if(he===0)return[J,de];for(var me=0,ge=0;ge<de.length;ge++){var we=de[ge];if(we[0]===Y||we[0]===J){var ke=me+we[1].length;if(he===ke)return[ge+1,de];if(he<ke){de=de.slice();var _e=he-me,fe=[we[0],we[1].slice(0,_e)],be=[we[0],we[1].slice(_e)];return de.splice(ge,1,fe,be),[ge+1,de]}else me=ke}}throw new Error("cursor_pos is out of bounds!")}function ae(de,he){var me=re(de,he),ge=me[1],we=me[0],ke=ge[we],_e=ge[we+1];if(ke==null)return de;if(ke[0]!==J)return de;if(_e!=null&&ke[1]+_e[1]===_e[1]+ke[1])return ge.splice(we,2,_e,ke),ue(ge,we,2);if(_e!=null&&_e[1].indexOf(ke[1])===0){ge.splice(we,2,[_e[0],ke[1]],[0,ke[1]]);var fe=_e[1].slice(ke[1].length);return fe.length>0&&ge.splice(we+2,0,[_e[0],fe]),ue(ge,we,3)}else return de}function ce(de){for(var he=!1,me=function(_e){return _e.charCodeAt(0)>=56320&&_e.charCodeAt(0)<=57343},ge=function(_e){return _e.charCodeAt(_e.length-1)>=55296&&_e.charCodeAt(_e.length-1)<=56319},we=2;we<de.length;we+=1)de[we-2][0]===J&&ge(de[we-2][1])&&de[we-1][0]===Y&&me(de[we-1][1])&&de[we][0]===K&&me(de[we][1])&&(he=!0,de[we-1][1]=de[we-2][1].slice(-1)+de[we-1][1],de[we][1]=de[we-2][1].slice(-1)+de[we][1],de[we-2][1]=de[we-2][1].slice(0,-1));if(!he)return de;for(var ke=[],we=0;we<de.length;we+=1)de[we][1].length>0&&ke.push(de[we]);return ke}function ue(de,he,me){for(var ge=he+me-1;ge>=0&&ge>=he-1;ge--)if(ge+1<de.length){var we=de[ge],ke=de[ge+1];we[0]===ke[1]&&de.splice(ge,2,[we[0],we[1]+ke[1]])}return de}},function(U,G){G=U.exports=typeof Object.keys=="function"?Object.keys:Y,G.shim=Y;function Y(K){var J=[];for(var X in K)J.push(X);return J}},function(U,G){var Y=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";G=U.exports=Y?K:J,G.supported=K;function K(X){return Object.prototype.toString.call(X)=="[object Arguments]"}G.unsupported=J;function J(X){return X&&typeof X=="object"&&typeof X.length=="number"&&Object.prototype.hasOwnProperty.call(X,"callee")&&!Object.prototype.propertyIsEnumerable.call(X,"callee")||!1}},function(U,G){var Y=Object.prototype.hasOwnProperty,K="~";function J(){}Object.create&&(J.prototype=Object.create(null),new J().__proto__||(K=!1));function X(ee,ne,Q){this.fn=ee,this.context=ne,this.once=Q||!1}function ie(){this._events=new J,this._eventsCount=0}ie.prototype.eventNames=function(){var ne=[],Q,te;if(this._eventsCount===0)return ne;for(te in Q=this._events)Y.call(Q,te)&&ne.push(K?te.slice(1):te);return Object.getOwnPropertySymbols?ne.concat(Object.getOwnPropertySymbols(Q)):ne},ie.prototype.listeners=function(ne,Q){var te=K?K+ne:ne,se=this._events[te];if(Q)return!!se;if(!se)return[];if(se.fn)return[se.fn];for(var le=0,oe=se.length,re=new Array(oe);le<oe;le++)re[le]=se[le].fn;return re},ie.prototype.emit=function(ne,Q,te,se,le,oe){var re=K?K+ne:ne;if(!this._events[re])return!1;var ae=this._events[re],ce=arguments.length,ue,de;if(ae.fn){switch(ae.once&&this.removeListener(ne,ae.fn,void 0,!0),ce){case 1:return ae.fn.call(ae.context),!0;case 2:return ae.fn.call(ae.context,Q),!0;case 3:return ae.fn.call(ae.context,Q,te),!0;case 4:return ae.fn.call(ae.context,Q,te,se),!0;case 5:return ae.fn.call(ae.context,Q,te,se,le),!0;case 6:return ae.fn.call(ae.context,Q,te,se,le,oe),!0}for(de=1,ue=new Array(ce-1);de<ce;de++)ue[de-1]=arguments[de];ae.fn.apply(ae.context,ue)}else{var he=ae.length,me;for(de=0;de<he;de++)switch(ae[de].once&&this.removeListener(ne,ae[de].fn,void 0,!0),ce){case 1:ae[de].fn.call(ae[de].context);break;case 2:ae[de].fn.call(ae[de].context,Q);break;case 3:ae[de].fn.call(ae[de].context,Q,te);break;case 4:ae[de].fn.call(ae[de].context,Q,te,se);break;default:if(!ue)for(me=1,ue=new Array(ce-1);me<ce;me++)ue[me-1]=arguments[me];ae[de].fn.apply(ae[de].context,ue)}}return!0},ie.prototype.on=function(ne,Q,te){var se=new X(Q,te||this),le=K?K+ne:ne;return this._events[le]?this._events[le].fn?this._events[le]=[this._events[le],se]:this._events[le].push(se):(this._events[le]=se,this._eventsCount++),this},ie.prototype.once=function(ne,Q,te){var se=new X(Q,te||this,!0),le=K?K+ne:ne;return this._events[le]?this._events[le].fn?this._events[le]=[this._events[le],se]:this._events[le].push(se):(this._events[le]=se,this._eventsCount++),this},ie.prototype.removeListener=function(ne,Q,te,se){var le=K?K+ne:ne;if(!this._events[le])return this;if(!Q)return--this._eventsCount===0?this._events=new J:delete this._events[le],this;var oe=this._events[le];if(oe.fn)oe.fn===Q&&(!se||oe.once)&&(!te||oe.context===te)&&(--this._eventsCount===0?this._events=new J:delete this._events[le]);else{for(var re=0,ae=[],ce=oe.length;re<ce;re++)(oe[re].fn!==Q||se&&!oe[re].once||te&&oe[re].context!==te)&&ae.push(oe[re]);ae.length?this._events[le]=ae.length===1?ae[0]:ae:--this._eventsCount===0?this._events=new J:delete this._events[le]}return this},ie.prototype.removeAllListeners=function(ne){var Q;return ne?(Q=K?K+ne:ne,this._events[Q]&&(--this._eventsCount===0?this._events=new J:delete this._events[Q])):(this._events=new J,this._eventsCount=0),this},ie.prototype.off=ie.prototype.removeListener,ie.prototype.addListener=ie.prototype.on,ie.prototype.setMaxListeners=function(){return this},ie.prefixed=K,ie.EventEmitter=ie,typeof U<"u"&&(U.exports=ie)},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.matchText=G.matchSpacing=G.matchNewline=G.matchBlot=G.matchAttributor=G.default=void 0;var K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},J=function(){function Fe(je,Ye){var Ke=[],We=!0,tt=!1,nt=void 0;try{for(var st=je[Symbol.iterator](),mt;!(We=(mt=st.next()).done)&&(Ke.push(mt.value),!(Ye&&Ke.length===Ye));We=!0);}catch($t){tt=!0,nt=$t}finally{try{!We&&st.return&&st.return()}finally{if(tt)throw nt}}return Ke}return function(je,Ye){if(Array.isArray(je))return je;if(Symbol.iterator in Object(je))return Fe(je,Ye);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),X=function(){function Fe(je,Ye){for(var Ke=0;Ke<Ye.length;Ke++){var We=Ye[Ke];We.enumerable=We.enumerable||!1,We.configurable=!0,"value"in We&&(We.writable=!0),Object.defineProperty(je,We.key,We)}}return function(je,Ye,Ke){return Ye&&Fe(je.prototype,Ye),Ke&&Fe(je,Ke),je}}(),ie=Y(3),ee=be(ie),ne=Y(2),Q=be(ne),te=Y(0),se=be(te),le=Y(5),oe=be(le),re=Y(10),ae=be(re),ce=Y(9),ue=be(ce),de=Y(37),he=Y(38),me=Y(13),ge=be(me),we=Y(26),ke=Y(39),_e=Y(40),fe=Y(41);function be(Fe){return Fe&&Fe.__esModule?Fe:{default:Fe}}function ve(Fe,je,Ye){return je in Fe?Object.defineProperty(Fe,je,{value:Ye,enumerable:!0,configurable:!0,writable:!0}):Fe[je]=Ye,Fe}function $e(Fe,je){if(!(Fe instanceof je))throw new TypeError("Cannot call a class as a function")}function qe(Fe,je){if(!Fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return je&&(typeof je=="object"||typeof je=="function")?je:Fe}function Ce(Fe,je){if(typeof je!="function"&&je!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof je);Fe.prototype=Object.create(je&&je.prototype,{constructor:{value:Fe,enumerable:!1,writable:!0,configurable:!0}}),je&&(Object.setPrototypeOf?Object.setPrototypeOf(Fe,je):Fe.__proto__=je)}var Ie=(0,ae.default)("quill:clipboard"),Ve="__ql-matcher",De=[[Node.TEXT_NODE,bt],[Node.TEXT_NODE,it],["br",Je],[Node.ELEMENT_NODE,it],[Node.ELEMENT_NODE,He],[Node.ELEMENT_NODE,lt],[Node.ELEMENT_NODE,Be],[Node.ELEMENT_NODE,vt],["li",et],["b",Me.bind(Me,"bold")],["i",Me.bind(Me,"italic")],["style",Qe]],Te=[de.AlignAttribute,ke.DirectionAttribute].reduce(function(Fe,je){return Fe[je.keyName]=je,Fe},{}),ye=[de.AlignStyle,he.BackgroundStyle,we.ColorStyle,ke.DirectionStyle,_e.FontStyle,fe.SizeStyle].reduce(function(Fe,je){return Fe[je.keyName]=je,Fe},{}),Ae=function(Fe){Ce(je,Fe);function je(Ye,Ke){$e(this,je);var We=qe(this,(je.__proto__||Object.getPrototypeOf(je)).call(this,Ye,Ke));return We.quill.root.addEventListener("paste",We.onPaste.bind(We)),We.container=We.quill.addContainer("ql-clipboard"),We.container.setAttribute("contenteditable",!0),We.container.setAttribute("tabindex",-1),We.matchers=[],De.concat(We.options.matchers).forEach(function(tt){var nt=J(tt,2),st=nt[0],mt=nt[1];!Ke.matchVisual&&mt===lt||We.addMatcher(st,mt)}),We}return X(je,[{key:"addMatcher",value:function(Ke,We){this.matchers.push([Ke,We])}},{key:"convert",value:function(Ke){if(typeof Ke=="string")return this.container.innerHTML=Ke.replace(/\>\r?\n +\</g,"><"),this.convert();var We=this.quill.getFormat(this.quill.selection.savedRange.index);if(We[ge.default.blotName]){var tt=this.container.innerText;return this.container.innerHTML="",new Q.default().insert(tt,ve({},ge.default.blotName,We[ge.default.blotName]))}var nt=this.prepareMatching(),st=J(nt,2),mt=st[0],$t=st[1],ut=Re(this.container,mt,$t);return Le(ut,`
8651
- `)&&ut.ops[ut.ops.length-1].attributes==null&&(ut=ut.compose(new Q.default().retain(ut.length()-1).delete(1))),Ie.log("convert",this.container.innerHTML,ut),this.container.innerHTML="",ut}},{key:"dangerouslyPasteHTML",value:function(Ke,We){var tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oe.default.sources.API;if(typeof Ke=="string")this.quill.setContents(this.convert(Ke),We),this.quill.setSelection(0,oe.default.sources.SILENT);else{var nt=this.convert(We);this.quill.updateContents(new Q.default().retain(Ke).concat(nt),tt),this.quill.setSelection(Ke+nt.length(),oe.default.sources.SILENT)}}},{key:"onPaste",value:function(Ke){var We=this;if(!(Ke.defaultPrevented||!this.quill.isEnabled())){var tt=this.quill.getSelection(),nt=new Q.default().retain(tt.index),st=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(oe.default.sources.SILENT),setTimeout(function(){nt=nt.concat(We.convert()).delete(tt.length),We.quill.updateContents(nt,oe.default.sources.USER),We.quill.setSelection(nt.length()-tt.length,oe.default.sources.SILENT),We.quill.scrollingContainer.scrollTop=st,We.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Ke=this,We=[],tt=[];return this.matchers.forEach(function(nt){var st=J(nt,2),mt=st[0],$t=st[1];switch(mt){case Node.TEXT_NODE:tt.push($t);break;case Node.ELEMENT_NODE:We.push($t);break;default:[].forEach.call(Ke.container.querySelectorAll(mt),function(ut){ut[Ve]=ut[Ve]||[],ut[Ve].push($t)});break}}),[We,tt]}}]),je}(ue.default);Ae.DEFAULTS={matchers:[],matchVisual:!0};function Oe(Fe,je,Ye){return(typeof je>"u"?"undefined":K(je))==="object"?Object.keys(je).reduce(function(Ke,We){return Oe(Ke,We,je[We])},Fe):Fe.reduce(function(Ke,We){return We.attributes&&We.attributes[je]?Ke.push(We):Ke.insert(We.insert,(0,ee.default)({},ve({},je,Ye),We.attributes))},new Q.default)}function Pe(Fe){if(Fe.nodeType!==Node.ELEMENT_NODE)return{};var je="__ql-computed-style";return Fe[je]||(Fe[je]=window.getComputedStyle(Fe))}function Le(Fe,je){for(var Ye="",Ke=Fe.ops.length-1;Ke>=0&&Ye.length<je.length;--Ke){var We=Fe.ops[Ke];if(typeof We.insert!="string")break;Ye=We.insert+Ye}return Ye.slice(-1*je.length)===je}function Ee(Fe){if(Fe.childNodes.length===0)return!1;var je=Pe(Fe);return["block","list-item"].indexOf(je.display)>-1}function Re(Fe,je,Ye){return Fe.nodeType===Fe.TEXT_NODE?Ye.reduce(function(Ke,We){return We(Fe,Ke)},new Q.default):Fe.nodeType===Fe.ELEMENT_NODE?[].reduce.call(Fe.childNodes||[],function(Ke,We){var tt=Re(We,je,Ye);return We.nodeType===Fe.ELEMENT_NODE&&(tt=je.reduce(function(nt,st){return st(We,nt)},tt),tt=(We[Ve]||[]).reduce(function(nt,st){return st(We,nt)},tt)),Ke.concat(tt)},new Q.default):new Q.default}function Me(Fe,je,Ye){return Oe(Ye,Fe,!0)}function Be(Fe,je){var Ye=se.default.Attributor.Attribute.keys(Fe),Ke=se.default.Attributor.Class.keys(Fe),We=se.default.Attributor.Style.keys(Fe),tt={};return Ye.concat(Ke).concat(We).forEach(function(nt){var st=se.default.query(nt,se.default.Scope.ATTRIBUTE);st!=null&&(tt[st.attrName]=st.value(Fe),tt[st.attrName])||(st=Te[nt],st!=null&&(st.attrName===nt||st.keyName===nt)&&(tt[st.attrName]=st.value(Fe)||void 0),st=ye[nt],st!=null&&(st.attrName===nt||st.keyName===nt)&&(st=ye[nt],tt[st.attrName]=st.value(Fe)||void 0))}),Object.keys(tt).length>0&&(je=Oe(je,tt)),je}function He(Fe,je){var Ye=se.default.query(Fe);if(Ye==null)return je;if(Ye.prototype instanceof se.default.Embed){var Ke={},We=Ye.value(Fe);We!=null&&(Ke[Ye.blotName]=We,je=new Q.default().insert(Ke,Ye.formats(Fe)))}else typeof Ye.formats=="function"&&(je=Oe(je,Ye.blotName,Ye.formats(Fe)));return je}function Je(Fe,je){return Le(je,`
8652
- `)||je.insert(`
8653
- `),je}function Qe(){return new Q.default}function et(Fe,je){var Ye=se.default.query(Fe);if(Ye==null||Ye.blotName!=="list-item"||!Le(je,`
8654
- `))return je;for(var Ke=-1,We=Fe.parentNode;!We.classList.contains("ql-clipboard");)(se.default.query(We)||{}).blotName==="list"&&(Ke+=1),We=We.parentNode;return Ke<=0?je:je.compose(new Q.default().retain(je.length()-1).retain(1,{indent:Ke}))}function it(Fe,je){return Le(je,`
8655
- `)||(Ee(Fe)||je.length()>0&&Fe.nextSibling&&Ee(Fe.nextSibling))&&je.insert(`
8656
- `),je}function lt(Fe,je){if(Ee(Fe)&&Fe.nextElementSibling!=null&&!Le(je,`
8657
-
8658
- `)){var Ye=Fe.offsetHeight+parseFloat(Pe(Fe).marginTop)+parseFloat(Pe(Fe).marginBottom);Fe.nextElementSibling.offsetTop>Fe.offsetTop+Ye*1.5&&je.insert(`
8659
- `)}return je}function vt(Fe,je){var Ye={},Ke=Fe.style||{};return Ke.fontStyle&&Pe(Fe).fontStyle==="italic"&&(Ye.italic=!0),Ke.fontWeight&&(Pe(Fe).fontWeight.startsWith("bold")||parseInt(Pe(Fe).fontWeight)>=700)&&(Ye.bold=!0),Object.keys(Ye).length>0&&(je=Oe(je,Ye)),parseFloat(Ke.textIndent||0)>0&&(je=new Q.default().insert(" ").concat(je)),je}function bt(Fe,je){var Ye=Fe.data;if(Fe.parentNode.tagName==="O:P")return je.insert(Ye.trim());if(Ye.trim().length===0&&Fe.parentNode.classList.contains("ql-clipboard"))return je;if(!Pe(Fe.parentNode).whiteSpace.startsWith("pre")){var Ke=function(tt,nt){return nt=nt.replace(/[^\u00a0]/g,""),nt.length<1&&tt?" ":nt};Ye=Ye.replace(/\r\n/g," ").replace(/\n/g," "),Ye=Ye.replace(/\s\s+/g,Ke.bind(Ke,!0)),(Fe.previousSibling==null&&Ee(Fe.parentNode)||Fe.previousSibling!=null&&Ee(Fe.previousSibling))&&(Ye=Ye.replace(/^\s+/,Ke.bind(Ke,!1))),(Fe.nextSibling==null&&Ee(Fe.parentNode)||Fe.nextSibling!=null&&Ee(Fe.nextSibling))&&(Ye=Ye.replace(/\s+$/,Ke.bind(Ke,!1)))}return je.insert(Ye)}G.default=Ae,G.matchAttributor=Be,G.matchBlot=He,G.matchNewline=it,G.matchSpacing=lt,G.matchText=bt},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function le(oe,re){for(var ae=0;ae<re.length;ae++){var ce=re[ae];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(oe,ce.key,ce)}}return function(oe,re,ae){return re&&le(oe.prototype,re),ae&&le(oe,ae),oe}}(),J=function le(oe,re,ae){oe===null&&(oe=Function.prototype);var ce=Object.getOwnPropertyDescriptor(oe,re);if(ce===void 0){var ue=Object.getPrototypeOf(oe);return ue===null?void 0:le(ue,re,ae)}else{if("value"in ce)return ce.value;var de=ce.get;return de===void 0?void 0:de.call(ae)}},X=Y(6),ie=ee(X);function ee(le){return le&&le.__esModule?le:{default:le}}function ne(le,oe){if(!(le instanceof oe))throw new TypeError("Cannot call a class as a function")}function Q(le,oe){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:le}function te(le,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);le.prototype=Object.create(oe&&oe.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(le,oe):le.__proto__=oe)}var se=function(le){te(oe,le);function oe(){return ne(this,oe),Q(this,(oe.__proto__||Object.getPrototypeOf(oe)).apply(this,arguments))}return K(oe,[{key:"optimize",value:function(ae){J(oe.prototype.__proto__||Object.getPrototypeOf(oe.prototype),"optimize",this).call(this,ae),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return J(oe.__proto__||Object.getPrototypeOf(oe),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),oe}(ie.default);se.blotName="bold",se.tagName=["STRONG","B"],G.default=se},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.addControls=G.default=void 0;var K=function(){function be(ve,$e){var qe=[],Ce=!0,Ie=!1,Ve=void 0;try{for(var De=ve[Symbol.iterator](),Te;!(Ce=(Te=De.next()).done)&&(qe.push(Te.value),!($e&&qe.length===$e));Ce=!0);}catch(ye){Ie=!0,Ve=ye}finally{try{!Ce&&De.return&&De.return()}finally{if(Ie)throw Ve}}return qe}return function(ve,$e){if(Array.isArray(ve))return ve;if(Symbol.iterator in Object(ve))return be(ve,$e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),J=function(){function be(ve,$e){for(var qe=0;qe<$e.length;qe++){var Ce=$e[qe];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(ve,Ce.key,Ce)}}return function(ve,$e,qe){return $e&&be(ve.prototype,$e),qe&&be(ve,qe),ve}}(),X=Y(2),ie=ae(X),ee=Y(0),ne=ae(ee),Q=Y(5),te=ae(Q),se=Y(10),le=ae(se),oe=Y(9),re=ae(oe);function ae(be){return be&&be.__esModule?be:{default:be}}function ce(be,ve,$e){return ve in be?Object.defineProperty(be,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):be[ve]=$e,be}function ue(be,ve){if(!(be instanceof ve))throw new TypeError("Cannot call a class as a function")}function de(be,ve){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:be}function he(be,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);be.prototype=Object.create(ve&&ve.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ve):be.__proto__=ve)}var me="getRootNode"in document,ge=(0,le.default)("quill:toolbar"),we=function(be){he(ve,be);function ve($e,qe){ue(this,ve);var Ce=de(this,(ve.__proto__||Object.getPrototypeOf(ve)).call(this,$e,qe));if(Array.isArray(Ce.options.container)){var Ie=document.createElement("div");_e(Ie,Ce.options.container),$e.container.parentNode.insertBefore(Ie,$e.container),Ce.container=Ie}else if(typeof Ce.options.container=="string"){var Ve=me?$e.container.getRootNode():document;Ce.container=Ve.querySelector(Ce.options.container)}else Ce.container=Ce.options.container;if(!(Ce.container instanceof HTMLElement)){var De;return De=ge.error("Container required for toolbar",Ce.options),de(Ce,De)}return Ce.container.classList.add("ql-toolbar"),Ce.controls=[],Ce.handlers={},Object.keys(Ce.options.handlers).forEach(function(Te){Ce.addHandler(Te,Ce.options.handlers[Te])}),[].forEach.call(Ce.container.querySelectorAll("button, select"),function(Te){Ce.attach(Te)}),Ce.quill.on(te.default.events.EDITOR_CHANGE,function(Te,ye){Te===te.default.events.SELECTION_CHANGE&&Ce.update(ye)}),Ce.quill.on(te.default.events.SCROLL_OPTIMIZE,function(){var Te=Ce.quill.selection.getRange(),ye=K(Te,1),Ae=ye[0];Ce.update(Ae)}),Ce}return J(ve,[{key:"addHandler",value:function(qe,Ce){this.handlers[qe]=Ce}},{key:"attach",value:function(qe){var Ce=this,Ie=[].find.call(qe.classList,function(De){return De.indexOf("ql-")===0});if(Ie){if(Ie=Ie.slice(3),qe.tagName==="BUTTON"&&qe.setAttribute("type","button"),this.handlers[Ie]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Ie]==null){ge.warn("ignoring attaching to disabled format",Ie,qe);return}if(ne.default.query(Ie)==null){ge.warn("ignoring attaching to nonexistent format",Ie,qe);return}}var Ve=qe.tagName==="SELECT"?"change":"click";qe.addEventListener(Ve,function(De){var Te=void 0;if(qe.tagName==="SELECT"){if(qe.selectedIndex<0)return;var ye=qe.options[qe.selectedIndex];ye.hasAttribute("selected")?Te=!1:Te=ye.value||!1}else qe.classList.contains("ql-active")?Te=!1:Te=qe.value||!qe.hasAttribute("value"),De.preventDefault();Ce.quill.focus();var Ae=Ce.quill.selection.getRange(),Oe=K(Ae,1),Pe=Oe[0];if(Ce.handlers[Ie]!=null)Ce.handlers[Ie].call(Ce,Te);else if(ne.default.query(Ie).prototype instanceof ne.default.Embed){if(Te=prompt("Enter "+Ie),!Te)return;Ce.quill.updateContents(new ie.default().retain(Pe.index).delete(Pe.length).insert(ce({},Ie,Te)),te.default.sources.USER)}else Ce.quill.format(Ie,Te,te.default.sources.USER);Ce.update(Pe)}),this.controls.push([Ie,qe])}}},{key:"update",value:function(qe){var Ce=qe==null?{}:this.quill.getFormat(qe);this.controls.forEach(function(Ie){var Ve=K(Ie,2),De=Ve[0],Te=Ve[1];if(Te.tagName==="SELECT"){var ye=void 0;if(qe==null)ye=null;else if(Ce[De]==null)ye=Te.querySelector("option[selected]");else if(!Array.isArray(Ce[De])){var Ae=Ce[De];typeof Ae=="string"&&(Ae=Ae.replace(/\"/g,'\\"')),ye=Te.querySelector('option[value="'+Ae+'"]')}ye==null?(Te.value="",Te.selectedIndex=-1):ye.selected=!0}else if(qe==null)Te.classList.remove("ql-active");else if(Te.hasAttribute("value")){var Oe=Ce[De]===Te.getAttribute("value")||Ce[De]!=null&&Ce[De].toString()===Te.getAttribute("value")||Ce[De]==null&&!Te.getAttribute("value");Te.classList.toggle("ql-active",Oe)}else Te.classList.toggle("ql-active",Ce[De]!=null)})}}]),ve}(re.default);we.DEFAULTS={};function ke(be,ve,$e){var qe=document.createElement("button");qe.setAttribute("type","button"),qe.classList.add("ql-"+ve),$e!=null&&(qe.value=$e),be.appendChild(qe)}function _e(be,ve){Array.isArray(ve[0])||(ve=[ve]),ve.forEach(function($e){var qe=document.createElement("span");qe.classList.add("ql-formats"),$e.forEach(function(Ce){if(typeof Ce=="string")ke(qe,Ce);else{var Ie=Object.keys(Ce)[0],Ve=Ce[Ie];Array.isArray(Ve)?fe(qe,Ie,Ve):ke(qe,Ie,Ve)}}),be.appendChild(qe)})}function fe(be,ve,$e){var qe=document.createElement("select");qe.classList.add("ql-"+ve),$e.forEach(function(Ce){var Ie=document.createElement("option");Ce!==!1?Ie.setAttribute("value",Ce):Ie.setAttribute("selected","selected"),qe.appendChild(Ie)}),be.appendChild(qe)}we.DEFAULTS={container:null,handlers:{clean:function(){var ve=this,$e=this.quill.getSelection();if($e!=null)if($e.length==0){var qe=this.quill.getFormat();Object.keys(qe).forEach(function(Ce){ne.default.query(Ce,ne.default.Scope.INLINE)!=null&&ve.quill.format(Ce,!1)})}else this.quill.removeFormat($e,te.default.sources.USER)},direction:function(ve){var $e=this.quill.getFormat().align;ve==="rtl"&&$e==null?this.quill.format("align","right",te.default.sources.USER):!ve&&$e==="right"&&this.quill.format("align",!1,te.default.sources.USER),this.quill.format("direction",ve,te.default.sources.USER)},indent:function(ve){var $e=this.quill.getSelection(),qe=this.quill.getFormat($e),Ce=parseInt(qe.indent||0);if(ve==="+1"||ve==="-1"){var Ie=ve==="+1"?1:-1;qe.direction==="rtl"&&(Ie*=-1),this.quill.format("indent",Ce+Ie,te.default.sources.USER)}},link:function(ve){ve===!0&&(ve=prompt("Enter link URL:")),this.quill.format("link",ve,te.default.sources.USER)},list:function(ve){var $e=this.quill.getSelection(),qe=this.quill.getFormat($e);ve==="check"?qe.list==="checked"||qe.list==="unchecked"?this.quill.format("list",!1,te.default.sources.USER):this.quill.format("list","unchecked",te.default.sources.USER):this.quill.format("list",ve,te.default.sources.USER)}}},G.default=we,G.addControls=_e},function(U,G){U.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(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function le(oe,re){for(var ae=0;ae<re.length;ae++){var ce=re[ae];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(oe,ce.key,ce)}}return function(oe,re,ae){return re&&le(oe.prototype,re),ae&&le(oe,ae),oe}}(),J=function le(oe,re,ae){oe===null&&(oe=Function.prototype);var ce=Object.getOwnPropertyDescriptor(oe,re);if(ce===void 0){var ue=Object.getPrototypeOf(oe);return ue===null?void 0:le(ue,re,ae)}else{if("value"in ce)return ce.value;var de=ce.get;return de===void 0?void 0:de.call(ae)}},X=Y(28),ie=ee(X);function ee(le){return le&&le.__esModule?le:{default:le}}function ne(le,oe){if(!(le instanceof oe))throw new TypeError("Cannot call a class as a function")}function Q(le,oe){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:le}function te(le,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);le.prototype=Object.create(oe&&oe.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(le,oe):le.__proto__=oe)}var se=function(le){te(oe,le);function oe(re,ae){ne(this,oe);var ce=Q(this,(oe.__proto__||Object.getPrototypeOf(oe)).call(this,re));return ce.label.innerHTML=ae,ce.container.classList.add("ql-color-picker"),[].slice.call(ce.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(ue){ue.classList.add("ql-primary")}),ce}return K(oe,[{key:"buildItem",value:function(ae){var ce=J(oe.prototype.__proto__||Object.getPrototypeOf(oe.prototype),"buildItem",this).call(this,ae);return ce.style.backgroundColor=ae.getAttribute("value")||"",ce}},{key:"selectItem",value:function(ae,ce){J(oe.prototype.__proto__||Object.getPrototypeOf(oe.prototype),"selectItem",this).call(this,ae,ce);var ue=this.label.querySelector(".ql-color-label"),de=ae&&ae.getAttribute("data-value")||"";ue&&(ue.tagName==="line"?ue.style.stroke=de:ue.style.fill=de)}}]),oe}(ie.default);G.default=se},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function le(oe,re){for(var ae=0;ae<re.length;ae++){var ce=re[ae];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(oe,ce.key,ce)}}return function(oe,re,ae){return re&&le(oe.prototype,re),ae&&le(oe,ae),oe}}(),J=function le(oe,re,ae){oe===null&&(oe=Function.prototype);var ce=Object.getOwnPropertyDescriptor(oe,re);if(ce===void 0){var ue=Object.getPrototypeOf(oe);return ue===null?void 0:le(ue,re,ae)}else{if("value"in ce)return ce.value;var de=ce.get;return de===void 0?void 0:de.call(ae)}},X=Y(28),ie=ee(X);function ee(le){return le&&le.__esModule?le:{default:le}}function ne(le,oe){if(!(le instanceof oe))throw new TypeError("Cannot call a class as a function")}function Q(le,oe){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:le}function te(le,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);le.prototype=Object.create(oe&&oe.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(le,oe):le.__proto__=oe)}var se=function(le){te(oe,le);function oe(re,ae){ne(this,oe);var ce=Q(this,(oe.__proto__||Object.getPrototypeOf(oe)).call(this,re));return ce.container.classList.add("ql-icon-picker"),[].forEach.call(ce.container.querySelectorAll(".ql-picker-item"),function(ue){ue.innerHTML=ae[ue.getAttribute("data-value")||""]}),ce.defaultItem=ce.container.querySelector(".ql-selected"),ce.selectItem(ce.defaultItem),ce}return K(oe,[{key:"selectItem",value:function(ae,ce){J(oe.prototype.__proto__||Object.getPrototypeOf(oe.prototype),"selectItem",this).call(this,ae,ce),ae=ae||this.defaultItem,this.label.innerHTML=ae.innerHTML}}]),oe}(ie.default);G.default=se},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function ie(ee,ne){for(var Q=0;Q<ne.length;Q++){var te=ne[Q];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(ee,te.key,te)}}return function(ee,ne,Q){return ne&&ie(ee.prototype,ne),Q&&ie(ee,Q),ee}}();function J(ie,ee){if(!(ie instanceof ee))throw new TypeError("Cannot call a class as a function")}var X=function(){function ie(ee,ne){var Q=this;J(this,ie),this.quill=ee,this.boundsContainer=ne||document.body,this.root=ee.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){Q.root.style.marginTop=-1*Q.quill.root.scrollTop+"px"}),this.hide()}return K(ie,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(ne){var Q=ne.left+ne.width/2-this.root.offsetWidth/2,te=ne.bottom+this.quill.root.scrollTop;this.root.style.left=Q+"px",this.root.style.top=te+"px",this.root.classList.remove("ql-flip");var se=this.boundsContainer.getBoundingClientRect(),le=this.root.getBoundingClientRect(),oe=0;if(le.right>se.right&&(oe=se.right-le.right,this.root.style.left=Q+oe+"px"),le.left<se.left&&(oe=se.left-le.left,this.root.style.left=Q+oe+"px"),le.bottom>se.bottom){var re=le.bottom-le.top,ae=ne.bottom-ne.top+re;this.root.style.top=te-ae+"px",this.root.classList.add("ql-flip")}return oe}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),ie}();G.default=X},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function _e(fe,be){var ve=[],$e=!0,qe=!1,Ce=void 0;try{for(var Ie=fe[Symbol.iterator](),Ve;!($e=(Ve=Ie.next()).done)&&(ve.push(Ve.value),!(be&&ve.length===be));$e=!0);}catch(De){qe=!0,Ce=De}finally{try{!$e&&Ie.return&&Ie.return()}finally{if(qe)throw Ce}}return ve}return function(fe,be){if(Array.isArray(fe))return fe;if(Symbol.iterator in Object(fe))return _e(fe,be);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),J=function _e(fe,be,ve){fe===null&&(fe=Function.prototype);var $e=Object.getOwnPropertyDescriptor(fe,be);if($e===void 0){var qe=Object.getPrototypeOf(fe);return qe===null?void 0:_e(qe,be,ve)}else{if("value"in $e)return $e.value;var Ce=$e.get;return Ce===void 0?void 0:Ce.call(ve)}},X=function(){function _e(fe,be){for(var ve=0;ve<be.length;ve++){var $e=be[ve];$e.enumerable=$e.enumerable||!1,$e.configurable=!0,"value"in $e&&($e.writable=!0),Object.defineProperty(fe,$e.key,$e)}}return function(fe,be,ve){return be&&_e(fe.prototype,be),ve&&_e(fe,ve),fe}}(),ie=Y(3),ee=ue(ie),ne=Y(8),Q=ue(ne),te=Y(44),se=ue(te),le=Y(27),oe=ue(le),re=Y(15),ae=Y(42),ce=ue(ae);function ue(_e){return _e&&_e.__esModule?_e:{default:_e}}function de(_e,fe){if(!(_e instanceof fe))throw new TypeError("Cannot call a class as a function")}function he(_e,fe){if(!_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe&&(typeof fe=="object"||typeof fe=="function")?fe:_e}function me(_e,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof fe);_e.prototype=Object.create(fe&&fe.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),fe&&(Object.setPrototypeOf?Object.setPrototypeOf(_e,fe):_e.__proto__=fe)}var ge=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],we=function(_e){me(fe,_e);function fe(be,ve){de(this,fe),ve.modules.toolbar!=null&&ve.modules.toolbar.container==null&&(ve.modules.toolbar.container=ge);var $e=he(this,(fe.__proto__||Object.getPrototypeOf(fe)).call(this,be,ve));return $e.quill.container.classList.add("ql-snow"),$e}return X(fe,[{key:"extendToolbar",value:function(ve){ve.container.classList.add("ql-snow"),this.buildButtons([].slice.call(ve.container.querySelectorAll("button")),ce.default),this.buildPickers([].slice.call(ve.container.querySelectorAll("select")),ce.default),this.tooltip=new ke(this.quill,this.options.bounds),ve.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function($e,qe){ve.handlers.link.call(ve,!qe.format.link)})}}]),fe}(se.default);we.DEFAULTS=(0,ee.default)(!0,{},se.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(fe){if(fe){var be=this.quill.getSelection();if(be==null||be.length==0)return;var ve=this.quill.getText(be);/^\S+@\S+\.\S+$/.test(ve)&&ve.indexOf("mailto:")!==0&&(ve="mailto:"+ve);var $e=this.quill.theme.tooltip;$e.edit("link",ve)}else this.quill.format("link",!1)}}}}});var ke=function(_e){me(fe,_e);function fe(be,ve){de(this,fe);var $e=he(this,(fe.__proto__||Object.getPrototypeOf(fe)).call(this,be,ve));return $e.preview=$e.root.querySelector("a.ql-preview"),$e}return X(fe,[{key:"listen",value:function(){var ve=this;J(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function($e){ve.root.classList.contains("ql-editing")?ve.save():ve.edit("link",ve.preview.textContent),$e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function($e){if(ve.linkRange!=null){var qe=ve.linkRange;ve.restoreFocus(),ve.quill.formatText(qe,"link",!1,Q.default.sources.USER),delete ve.linkRange}$e.preventDefault(),ve.hide()}),this.quill.on(Q.default.events.SELECTION_CHANGE,function($e,qe,Ce){if($e!=null){if($e.length===0&&Ce===Q.default.sources.USER){var Ie=ve.quill.scroll.descendant(oe.default,$e.index),Ve=K(Ie,2),De=Ve[0],Te=Ve[1];if(De!=null){ve.linkRange=new re.Range($e.index-Te,De.length());var ye=oe.default.formats(De.domNode);ve.preview.textContent=ye,ve.preview.setAttribute("href",ye),ve.show(),ve.position(ve.quill.getBounds(ve.linkRange));return}}else delete ve.linkRange;ve.hide()}})}},{key:"show",value:function(){J(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),fe}(te.BaseTooltip);ke.TEMPLATE=['<a class="ql-preview" 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(""),G.default=we},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(29),J=We(K),X=Y(37),ie=Y(39),ee=Y(65),ne=Y(66),Q=We(ne),te=Y(67),se=We(te),le=Y(68),oe=We(le),re=Y(38),ae=Y(26),ce=Y(40),ue=Y(41),de=Y(57),he=We(de),me=Y(69),ge=We(me),we=Y(27),ke=We(we),_e=Y(70),fe=We(_e),be=Y(71),ve=We(be),$e=Y(72),qe=We($e),Ce=Y(73),Ie=We(Ce),Ve=Y(74),De=We(Ve),Te=Y(13),ye=We(Te),Ae=Y(75),Oe=We(Ae),Pe=Y(76),Le=We(Pe),Ee=Y(58),Re=We(Ee),Me=Y(42),Be=We(Me),He=Y(28),Je=We(He),Qe=Y(60),et=We(Qe),it=Y(61),lt=We(it),vt=Y(62),bt=We(vt),Fe=Y(109),je=We(Fe),Ye=Y(63),Ke=We(Ye);function We(tt){return tt&&tt.__esModule?tt:{default:tt}}J.default.register({"attributors/attribute/direction":ie.DirectionAttribute,"attributors/class/align":X.AlignClass,"attributors/class/background":re.BackgroundClass,"attributors/class/color":ae.ColorClass,"attributors/class/direction":ie.DirectionClass,"attributors/class/font":ce.FontClass,"attributors/class/size":ue.SizeClass,"attributors/style/align":X.AlignStyle,"attributors/style/background":re.BackgroundStyle,"attributors/style/color":ae.ColorStyle,"attributors/style/direction":ie.DirectionStyle,"attributors/style/font":ce.FontStyle,"attributors/style/size":ue.SizeStyle},!0),J.default.register({"formats/align":X.AlignClass,"formats/direction":ie.DirectionClass,"formats/indent":ee.IndentClass,"formats/background":re.BackgroundStyle,"formats/color":ae.ColorStyle,"formats/font":ce.FontClass,"formats/size":ue.SizeClass,"formats/blockquote":Q.default,"formats/code-block":ye.default,"formats/header":se.default,"formats/list":oe.default,"formats/bold":he.default,"formats/code":Te.Code,"formats/italic":ge.default,"formats/link":ke.default,"formats/script":fe.default,"formats/strike":ve.default,"formats/underline":qe.default,"formats/image":Ie.default,"formats/video":De.default,"formats/list/item":le.ListItem,"modules/formula":Oe.default,"modules/syntax":Le.default,"modules/toolbar":Re.default,"themes/bubble":je.default,"themes/snow":Ke.default,"ui/icons":Be.default,"ui/picker":Je.default,"ui/icon-picker":lt.default,"ui/color-picker":et.default,"ui/tooltip":bt.default},!0),G.default=J.default},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.IndentClass=void 0;var K=function(){function oe(re,ae){for(var ce=0;ce<ae.length;ce++){var ue=ae[ce];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(re,ue.key,ue)}}return function(re,ae,ce){return ae&&oe(re.prototype,ae),ce&&oe(re,ce),re}}(),J=function oe(re,ae,ce){re===null&&(re=Function.prototype);var ue=Object.getOwnPropertyDescriptor(re,ae);if(ue===void 0){var de=Object.getPrototypeOf(re);return de===null?void 0:oe(de,ae,ce)}else{if("value"in ue)return ue.value;var he=ue.get;return he===void 0?void 0:he.call(ce)}},X=Y(0),ie=ee(X);function ee(oe){return oe&&oe.__esModule?oe:{default:oe}}function ne(oe,re){if(!(oe instanceof re))throw new TypeError("Cannot call a class as a function")}function Q(oe,re){if(!oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re&&(typeof re=="object"||typeof re=="function")?re:oe}function te(oe,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof re);oe.prototype=Object.create(re&&re.prototype,{constructor:{value:oe,enumerable:!1,writable:!0,configurable:!0}}),re&&(Object.setPrototypeOf?Object.setPrototypeOf(oe,re):oe.__proto__=re)}var se=function(oe){te(re,oe);function re(){return ne(this,re),Q(this,(re.__proto__||Object.getPrototypeOf(re)).apply(this,arguments))}return K(re,[{key:"add",value:function(ce,ue){if(ue==="+1"||ue==="-1"){var de=this.value(ce)||0;ue=ue==="+1"?de+1:de-1}return ue===0?(this.remove(ce),!0):J(re.prototype.__proto__||Object.getPrototypeOf(re.prototype),"add",this).call(this,ce,ue)}},{key:"canAdd",value:function(ce,ue){return J(re.prototype.__proto__||Object.getPrototypeOf(re.prototype),"canAdd",this).call(this,ce,ue)||J(re.prototype.__proto__||Object.getPrototypeOf(re.prototype),"canAdd",this).call(this,ce,parseInt(ue))}},{key:"value",value:function(ce){return parseInt(J(re.prototype.__proto__||Object.getPrototypeOf(re.prototype),"value",this).call(this,ce))||void 0}}]),re}(ie.default.Attributor.Class),le=new se("indent","ql-indent",{scope:ie.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});G.IndentClass=le},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(4),J=X(K);function X(te){return te&&te.__esModule?te:{default:te}}function ie(te,se){if(!(te instanceof se))throw new TypeError("Cannot call a class as a function")}function ee(te,se){if(!te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:te}function ne(te,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);te.prototype=Object.create(se&&se.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(te,se):te.__proto__=se)}var Q=function(te){ne(se,te);function se(){return ie(this,se),ee(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return se}(J.default);Q.blotName="blockquote",Q.tagName="blockquote",G.default=Q},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function se(le,oe){for(var re=0;re<oe.length;re++){var ae=oe[re];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(le,ae.key,ae)}}return function(le,oe,re){return oe&&se(le.prototype,oe),re&&se(le,re),le}}(),J=Y(4),X=ie(J);function ie(se){return se&&se.__esModule?se:{default:se}}function ee(se,le){if(!(se instanceof le))throw new TypeError("Cannot call a class as a function")}function ne(se,le){if(!se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return le&&(typeof le=="object"||typeof le=="function")?le:se}function Q(se,le){if(typeof le!="function"&&le!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof le);se.prototype=Object.create(le&&le.prototype,{constructor:{value:se,enumerable:!1,writable:!0,configurable:!0}}),le&&(Object.setPrototypeOf?Object.setPrototypeOf(se,le):se.__proto__=le)}var te=function(se){Q(le,se);function le(){return ee(this,le),ne(this,(le.__proto__||Object.getPrototypeOf(le)).apply(this,arguments))}return K(le,null,[{key:"formats",value:function(re){return this.tagName.indexOf(re.tagName)+1}}]),le}(X.default);te.blotName="header",te.tagName=["H1","H2","H3","H4","H5","H6"],G.default=te},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.ListItem=void 0;var K=function(){function de(he,me){for(var ge=0;ge<me.length;ge++){var we=me[ge];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(he,we.key,we)}}return function(he,me,ge){return me&&de(he.prototype,me),ge&&de(he,ge),he}}(),J=function de(he,me,ge){he===null&&(he=Function.prototype);var we=Object.getOwnPropertyDescriptor(he,me);if(we===void 0){var ke=Object.getPrototypeOf(he);return ke===null?void 0:de(ke,me,ge)}else{if("value"in we)return we.value;var _e=we.get;return _e===void 0?void 0:_e.call(ge)}},X=Y(0),ie=se(X),ee=Y(4),ne=se(ee),Q=Y(25),te=se(Q);function se(de){return de&&de.__esModule?de:{default:de}}function le(de,he,me){return he in de?Object.defineProperty(de,he,{value:me,enumerable:!0,configurable:!0,writable:!0}):de[he]=me,de}function oe(de,he){if(!(de instanceof he))throw new TypeError("Cannot call a class as a function")}function re(de,he){if(!de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return he&&(typeof he=="object"||typeof he=="function")?he:de}function ae(de,he){if(typeof he!="function"&&he!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof he);de.prototype=Object.create(he&&he.prototype,{constructor:{value:de,enumerable:!1,writable:!0,configurable:!0}}),he&&(Object.setPrototypeOf?Object.setPrototypeOf(de,he):de.__proto__=he)}var ce=function(de){ae(he,de);function he(){return oe(this,he),re(this,(he.__proto__||Object.getPrototypeOf(he)).apply(this,arguments))}return K(he,[{key:"format",value:function(ge,we){ge===ue.blotName&&!we?this.replaceWith(ie.default.create(this.statics.scope)):J(he.prototype.__proto__||Object.getPrototypeOf(he.prototype),"format",this).call(this,ge,we)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():J(he.prototype.__proto__||Object.getPrototypeOf(he.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(ge,we){return this.parent.isolate(this.offset(this.parent),this.length()),ge===this.parent.statics.blotName?(this.parent.replaceWith(ge,we),this):(this.parent.unwrap(),J(he.prototype.__proto__||Object.getPrototypeOf(he.prototype),"replaceWith",this).call(this,ge,we))}}],[{key:"formats",value:function(ge){return ge.tagName===this.tagName?void 0:J(he.__proto__||Object.getPrototypeOf(he),"formats",this).call(this,ge)}}]),he}(ne.default);ce.blotName="list-item",ce.tagName="LI";var ue=function(de){ae(he,de),K(he,null,[{key:"create",value:function(ge){var we=ge==="ordered"?"OL":"UL",ke=J(he.__proto__||Object.getPrototypeOf(he),"create",this).call(this,we);return(ge==="checked"||ge==="unchecked")&&ke.setAttribute("data-checked",ge==="checked"),ke}},{key:"formats",value:function(ge){if(ge.tagName==="OL")return"ordered";if(ge.tagName==="UL")return ge.hasAttribute("data-checked")?ge.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function he(me){oe(this,he);var ge=re(this,(he.__proto__||Object.getPrototypeOf(he)).call(this,me)),we=function(_e){if(_e.target.parentNode===me){var fe=ge.statics.formats(me),be=ie.default.find(_e.target);fe==="checked"?be.format("list","unchecked"):fe==="unchecked"&&be.format("list","checked")}};return me.addEventListener("touchstart",we),me.addEventListener("mousedown",we),ge}return K(he,[{key:"format",value:function(ge,we){this.children.length>0&&this.children.tail.format(ge,we)}},{key:"formats",value:function(){return le({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(ge,we){if(ge instanceof ce)J(he.prototype.__proto__||Object.getPrototypeOf(he.prototype),"insertBefore",this).call(this,ge,we);else{var ke=we==null?this.length():we.offset(this),_e=this.split(ke);_e.parent.insertBefore(ge,_e)}}},{key:"optimize",value:function(ge){J(he.prototype.__proto__||Object.getPrototypeOf(he.prototype),"optimize",this).call(this,ge);var we=this.next;we!=null&&we.prev===this&&we.statics.blotName===this.statics.blotName&&we.domNode.tagName===this.domNode.tagName&&we.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(we.moveChildren(this),we.remove())}},{key:"replace",value:function(ge){if(ge.statics.blotName!==this.statics.blotName){var we=ie.default.create(this.statics.defaultChild);ge.moveChildren(we),this.appendChild(we)}J(he.prototype.__proto__||Object.getPrototypeOf(he.prototype),"replace",this).call(this,ge)}}]),he}(te.default);ue.blotName="list",ue.scope=ie.default.Scope.BLOCK_BLOT,ue.tagName=["OL","UL"],ue.defaultChild="list-item",ue.allowedChildren=[ce],G.ListItem=ce,G.default=ue},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(57),J=X(K);function X(te){return te&&te.__esModule?te:{default:te}}function ie(te,se){if(!(te instanceof se))throw new TypeError("Cannot call a class as a function")}function ee(te,se){if(!te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:te}function ne(te,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);te.prototype=Object.create(se&&se.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(te,se):te.__proto__=se)}var Q=function(te){ne(se,te);function se(){return ie(this,se),ee(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return se}(J.default);Q.blotName="italic",Q.tagName=["EM","I"],G.default=Q},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function le(oe,re){for(var ae=0;ae<re.length;ae++){var ce=re[ae];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(oe,ce.key,ce)}}return function(oe,re,ae){return re&&le(oe.prototype,re),ae&&le(oe,ae),oe}}(),J=function le(oe,re,ae){oe===null&&(oe=Function.prototype);var ce=Object.getOwnPropertyDescriptor(oe,re);if(ce===void 0){var ue=Object.getPrototypeOf(oe);return ue===null?void 0:le(ue,re,ae)}else{if("value"in ce)return ce.value;var de=ce.get;return de===void 0?void 0:de.call(ae)}},X=Y(6),ie=ee(X);function ee(le){return le&&le.__esModule?le:{default:le}}function ne(le,oe){if(!(le instanceof oe))throw new TypeError("Cannot call a class as a function")}function Q(le,oe){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:le}function te(le,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);le.prototype=Object.create(oe&&oe.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(le,oe):le.__proto__=oe)}var se=function(le){te(oe,le);function oe(){return ne(this,oe),Q(this,(oe.__proto__||Object.getPrototypeOf(oe)).apply(this,arguments))}return K(oe,null,[{key:"create",value:function(ae){return ae==="super"?document.createElement("sup"):ae==="sub"?document.createElement("sub"):J(oe.__proto__||Object.getPrototypeOf(oe),"create",this).call(this,ae)}},{key:"formats",value:function(ae){if(ae.tagName==="SUB")return"sub";if(ae.tagName==="SUP")return"super"}}]),oe}(ie.default);se.blotName="script",se.tagName=["SUB","SUP"],G.default=se},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(6),J=X(K);function X(te){return te&&te.__esModule?te:{default:te}}function ie(te,se){if(!(te instanceof se))throw new TypeError("Cannot call a class as a function")}function ee(te,se){if(!te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:te}function ne(te,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);te.prototype=Object.create(se&&se.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(te,se):te.__proto__=se)}var Q=function(te){ne(se,te);function se(){return ie(this,se),ee(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return se}(J.default);Q.blotName="strike",Q.tagName="S",G.default=Q},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(6),J=X(K);function X(te){return te&&te.__esModule?te:{default:te}}function ie(te,se){if(!(te instanceof se))throw new TypeError("Cannot call a class as a function")}function ee(te,se){if(!te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:te}function ne(te,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);te.prototype=Object.create(se&&se.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(te,se):te.__proto__=se)}var Q=function(te){ne(se,te);function se(){return ie(this,se),ee(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return se}(J.default);Q.blotName="underline",Q.tagName="U",G.default=Q},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function re(ae,ce){for(var ue=0;ue<ce.length;ue++){var de=ce[ue];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ae,de.key,de)}}return function(ae,ce,ue){return ce&&re(ae.prototype,ce),ue&&re(ae,ue),ae}}(),J=function re(ae,ce,ue){ae===null&&(ae=Function.prototype);var de=Object.getOwnPropertyDescriptor(ae,ce);if(de===void 0){var he=Object.getPrototypeOf(ae);return he===null?void 0:re(he,ce,ue)}else{if("value"in de)return de.value;var me=de.get;return me===void 0?void 0:me.call(ue)}},X=Y(0),ie=ne(X),ee=Y(27);function ne(re){return re&&re.__esModule?re:{default:re}}function Q(re,ae){if(!(re instanceof ae))throw new TypeError("Cannot call a class as a function")}function te(re,ae){if(!re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae&&(typeof ae=="object"||typeof ae=="function")?ae:re}function se(re,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ae);re.prototype=Object.create(ae&&ae.prototype,{constructor:{value:re,enumerable:!1,writable:!0,configurable:!0}}),ae&&(Object.setPrototypeOf?Object.setPrototypeOf(re,ae):re.__proto__=ae)}var le=["alt","height","width"],oe=function(re){se(ae,re);function ae(){return Q(this,ae),te(this,(ae.__proto__||Object.getPrototypeOf(ae)).apply(this,arguments))}return K(ae,[{key:"format",value:function(ue,de){le.indexOf(ue)>-1?de?this.domNode.setAttribute(ue,de):this.domNode.removeAttribute(ue):J(ae.prototype.__proto__||Object.getPrototypeOf(ae.prototype),"format",this).call(this,ue,de)}}],[{key:"create",value:function(ue){var de=J(ae.__proto__||Object.getPrototypeOf(ae),"create",this).call(this,ue);return typeof ue=="string"&&de.setAttribute("src",this.sanitize(ue)),de}},{key:"formats",value:function(ue){return le.reduce(function(de,he){return ue.hasAttribute(he)&&(de[he]=ue.getAttribute(he)),de},{})}},{key:"match",value:function(ue){return/\.(jpe?g|gif|png)$/.test(ue)||/^data:image\/.+;base64/.test(ue)}},{key:"sanitize",value:function(ue){return(0,ee.sanitize)(ue,["http","https","data"])?ue:"//:0"}},{key:"value",value:function(ue){return ue.getAttribute("src")}}]),ae}(ie.default.Embed);oe.blotName="image",oe.tagName="IMG",G.default=oe},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function re(ae,ce){for(var ue=0;ue<ce.length;ue++){var de=ce[ue];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ae,de.key,de)}}return function(ae,ce,ue){return ce&&re(ae.prototype,ce),ue&&re(ae,ue),ae}}(),J=function re(ae,ce,ue){ae===null&&(ae=Function.prototype);var de=Object.getOwnPropertyDescriptor(ae,ce);if(de===void 0){var he=Object.getPrototypeOf(ae);return he===null?void 0:re(he,ce,ue)}else{if("value"in de)return de.value;var me=de.get;return me===void 0?void 0:me.call(ue)}},X=Y(4),ie=Y(27),ee=ne(ie);function ne(re){return re&&re.__esModule?re:{default:re}}function Q(re,ae){if(!(re instanceof ae))throw new TypeError("Cannot call a class as a function")}function te(re,ae){if(!re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae&&(typeof ae=="object"||typeof ae=="function")?ae:re}function se(re,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ae);re.prototype=Object.create(ae&&ae.prototype,{constructor:{value:re,enumerable:!1,writable:!0,configurable:!0}}),ae&&(Object.setPrototypeOf?Object.setPrototypeOf(re,ae):re.__proto__=ae)}var le=["height","width"],oe=function(re){se(ae,re);function ae(){return Q(this,ae),te(this,(ae.__proto__||Object.getPrototypeOf(ae)).apply(this,arguments))}return K(ae,[{key:"format",value:function(ue,de){le.indexOf(ue)>-1?de?this.domNode.setAttribute(ue,de):this.domNode.removeAttribute(ue):J(ae.prototype.__proto__||Object.getPrototypeOf(ae.prototype),"format",this).call(this,ue,de)}}],[{key:"create",value:function(ue){var de=J(ae.__proto__||Object.getPrototypeOf(ae),"create",this).call(this,ue);return de.setAttribute("frameborder","0"),de.setAttribute("allowfullscreen",!0),de.setAttribute("src",this.sanitize(ue)),de}},{key:"formats",value:function(ue){return le.reduce(function(de,he){return ue.hasAttribute(he)&&(de[he]=ue.getAttribute(he)),de},{})}},{key:"sanitize",value:function(ue){return ee.default.sanitize(ue)}},{key:"value",value:function(ue){return ue.getAttribute("src")}}]),ae}(X.BlockEmbed);oe.blotName="video",oe.className="ql-video",oe.tagName="IFRAME",G.default=oe},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.FormulaBlot=void 0;var K=function(){function ue(de,he){for(var me=0;me<he.length;me++){var ge=he[me];ge.enumerable=ge.enumerable||!1,ge.configurable=!0,"value"in ge&&(ge.writable=!0),Object.defineProperty(de,ge.key,ge)}}return function(de,he,me){return he&&ue(de.prototype,he),me&&ue(de,me),de}}(),J=function ue(de,he,me){de===null&&(de=Function.prototype);var ge=Object.getOwnPropertyDescriptor(de,he);if(ge===void 0){var we=Object.getPrototypeOf(de);return we===null?void 0:ue(we,he,me)}else{if("value"in ge)return ge.value;var ke=ge.get;return ke===void 0?void 0:ke.call(me)}},X=Y(36),ie=se(X),ee=Y(5),ne=se(ee),Q=Y(9),te=se(Q);function se(ue){return ue&&ue.__esModule?ue:{default:ue}}function le(ue,de){if(!(ue instanceof de))throw new TypeError("Cannot call a class as a function")}function oe(ue,de){if(!ue)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de&&(typeof de=="object"||typeof de=="function")?de:ue}function re(ue,de){if(typeof de!="function"&&de!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof de);ue.prototype=Object.create(de&&de.prototype,{constructor:{value:ue,enumerable:!1,writable:!0,configurable:!0}}),de&&(Object.setPrototypeOf?Object.setPrototypeOf(ue,de):ue.__proto__=de)}var ae=function(ue){re(de,ue);function de(){return le(this,de),oe(this,(de.__proto__||Object.getPrototypeOf(de)).apply(this,arguments))}return K(de,null,[{key:"create",value:function(me){var ge=J(de.__proto__||Object.getPrototypeOf(de),"create",this).call(this,me);return typeof me=="string"&&(window.katex.render(me,ge,{throwOnError:!1,errorColor:"#f00"}),ge.setAttribute("data-value",me)),ge}},{key:"value",value:function(me){return me.getAttribute("data-value")}}]),de}(ie.default);ae.blotName="formula",ae.className="ql-formula",ae.tagName="SPAN";var ce=function(ue){re(de,ue),K(de,null,[{key:"register",value:function(){ne.default.register(ae,!0)}}]);function de(){le(this,de);var he=oe(this,(de.__proto__||Object.getPrototypeOf(de)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return he}return de}(te.default);G.FormulaBlot=ae,G.default=ce},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.CodeToken=G.CodeBlock=void 0;var K=function(){function me(ge,we){for(var ke=0;ke<we.length;ke++){var _e=we[ke];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(ge,_e.key,_e)}}return function(ge,we,ke){return we&&me(ge.prototype,we),ke&&me(ge,ke),ge}}(),J=function me(ge,we,ke){ge===null&&(ge=Function.prototype);var _e=Object.getOwnPropertyDescriptor(ge,we);if(_e===void 0){var fe=Object.getPrototypeOf(ge);return fe===null?void 0:me(fe,we,ke)}else{if("value"in _e)return _e.value;var be=_e.get;return be===void 0?void 0:be.call(ke)}},X=Y(0),ie=oe(X),ee=Y(5),ne=oe(ee),Q=Y(9),te=oe(Q),se=Y(13),le=oe(se);function oe(me){return me&&me.__esModule?me:{default:me}}function re(me,ge){if(!(me instanceof ge))throw new TypeError("Cannot call a class as a function")}function ae(me,ge){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:me}function ce(me,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);me.prototype=Object.create(ge&&ge.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(me,ge):me.__proto__=ge)}var ue=function(me){ce(ge,me);function ge(){return re(this,ge),ae(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return K(ge,[{key:"replaceWith",value:function(ke){this.domNode.textContent=this.domNode.textContent,this.attach(),J(ge.prototype.__proto__||Object.getPrototypeOf(ge.prototype),"replaceWith",this).call(this,ke)}},{key:"highlight",value:function(ke){var _e=this.domNode.textContent;this.cachedText!==_e&&((_e.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=ke(_e),this.domNode.normalize(),this.attach()),this.cachedText=_e)}}]),ge}(le.default);ue.className="ql-syntax";var de=new ie.default.Attributor.Class("token","hljs",{scope:ie.default.Scope.INLINE}),he=function(me){ce(ge,me),K(ge,null,[{key:"register",value:function(){ne.default.register(de,!0),ne.default.register(ue,!0)}}]);function ge(we,ke){re(this,ge);var _e=ae(this,(ge.__proto__||Object.getPrototypeOf(ge)).call(this,we,ke));if(typeof _e.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var fe=null;return _e.quill.on(ne.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(fe),fe=setTimeout(function(){_e.highlight(),fe=null},_e.options.interval)}),_e.highlight(),_e}return K(ge,[{key:"highlight",value:function(){var ke=this;if(!this.quill.selection.composing){this.quill.update(ne.default.sources.USER);var _e=this.quill.getSelection();this.quill.scroll.descendants(ue).forEach(function(fe){fe.highlight(ke.options.highlight)}),this.quill.update(ne.default.sources.SILENT),_e!=null&&this.quill.setSelection(_e,ne.default.sources.SILENT)}}}]),ge}(te.default);he.DEFAULTS={highlight:function(){return window.hljs==null?null:function(me){var ge=window.hljs.highlightAuto(me);return ge.value}}(),interval:1e3},G.CodeBlock=ue,G.CodeToken=de,G.default=he},function(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.BubbleTooltip=void 0;var K=function ge(we,ke,_e){we===null&&(we=Function.prototype);var fe=Object.getOwnPropertyDescriptor(we,ke);if(fe===void 0){var be=Object.getPrototypeOf(we);return be===null?void 0:ge(be,ke,_e)}else{if("value"in fe)return fe.value;var ve=fe.get;return ve===void 0?void 0:ve.call(_e)}},J=function(){function ge(we,ke){for(var _e=0;_e<ke.length;_e++){var fe=ke[_e];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(we,fe.key,fe)}}return function(we,ke,_e){return ke&&ge(we.prototype,ke),_e&&ge(we,_e),we}}(),X=Y(3),ie=re(X),ee=Y(8),ne=re(ee),Q=Y(44),te=re(Q),se=Y(15),le=Y(42),oe=re(le);function re(ge){return ge&&ge.__esModule?ge:{default:ge}}function ae(ge,we){if(!(ge instanceof we))throw new TypeError("Cannot call a class as a function")}function ce(ge,we){if(!ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we&&(typeof we=="object"||typeof we=="function")?we:ge}function ue(ge,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof we);ge.prototype=Object.create(we&&we.prototype,{constructor:{value:ge,enumerable:!1,writable:!0,configurable:!0}}),we&&(Object.setPrototypeOf?Object.setPrototypeOf(ge,we):ge.__proto__=we)}var de=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],he=function(ge){ue(we,ge);function we(ke,_e){ae(this,we),_e.modules.toolbar!=null&&_e.modules.toolbar.container==null&&(_e.modules.toolbar.container=de);var fe=ce(this,(we.__proto__||Object.getPrototypeOf(we)).call(this,ke,_e));return fe.quill.container.classList.add("ql-bubble"),fe}return J(we,[{key:"extendToolbar",value:function(_e){this.tooltip=new me(this.quill,this.options.bounds),this.tooltip.root.appendChild(_e.container),this.buildButtons([].slice.call(_e.container.querySelectorAll("button")),oe.default),this.buildPickers([].slice.call(_e.container.querySelectorAll("select")),oe.default)}}]),we}(te.default);he.DEFAULTS=(0,ie.default)(!0,{},te.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(we){we?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var me=function(ge){ue(we,ge);function we(ke,_e){ae(this,we);var fe=ce(this,(we.__proto__||Object.getPrototypeOf(we)).call(this,ke,_e));return fe.quill.on(ne.default.events.EDITOR_CHANGE,function(be,ve,$e,qe){if(be===ne.default.events.SELECTION_CHANGE)if(ve!=null&&ve.length>0&&qe===ne.default.sources.USER){fe.show(),fe.root.style.left="0px",fe.root.style.width="",fe.root.style.width=fe.root.offsetWidth+"px";var Ce=fe.quill.getLines(ve.index,ve.length);if(Ce.length===1)fe.position(fe.quill.getBounds(ve));else{var Ie=Ce[Ce.length-1],Ve=fe.quill.getIndex(Ie),De=Math.min(Ie.length()-1,ve.index+ve.length-Ve),Te=fe.quill.getBounds(new se.Range(Ve,De));fe.position(Te)}}else document.activeElement!==fe.textbox&&fe.quill.hasFocus()&&fe.hide()}),fe}return J(we,[{key:"listen",value:function(){var _e=this;K(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){_e.root.classList.remove("ql-editing")}),this.quill.on(ne.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!_e.root.classList.contains("ql-hidden")){var fe=_e.quill.getSelection();fe!=null&&_e.position(_e.quill.getBounds(fe))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(_e){var fe=K(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"position",this).call(this,_e),be=this.root.querySelector(".ql-tooltip-arrow");if(be.style.marginLeft="",fe===0)return fe;be.style.marginLeft=-1*fe-be.offsetWidth/2+"px"}}]),we}(Q.BaseTooltip);me.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(""),G.BubbleTooltip=me,G.default=he},function(U,G,Y){U.exports=Y(64)}]).default})})(quill);var quillExports=quill.exports;const Quill=getDefaultExportFromCjs(quillExports),styles$3='@charset "UTF-8";*[hidden]{display:none!important}:host{height:100%}.container{width:100%;height:100%;display:flex;flex-direction:column;flex:1}.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative;color:#000;overflow-y:auto}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li{list-style-type:none}.ql-editor ul>li{list-style-type:disc}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:☑}.ql-editor ul[data-checked=false]>li:before{content:☐}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1;counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-2{counter-increment:list-2;counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-3{counter-increment:list-3;counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-4{counter-increment:list-4;counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-5{counter-increment:list-5;counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-6{counter-increment:list-6;counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-7{counter-increment:list-7;counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-8{counter-increment:list-8;counter-reset:list-9}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer: coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px);background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none;line-height:26px}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Petita"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Gran"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Enorme"}button.ql-indent{display:none!important}.ql-undo{font-size:14pt;font-weight:900;display:flex!important;align-items:center}.ql-undo:after{content:"↺";transform:rotate(-135deg)}.ql-redo{font-size:14pt;font-weight:900;display:flex!important;align-items:center}.ql-redo:after{content:"↻";transform:rotate(135deg)}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0px}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0px;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}',template$2=W=>x$1`
8657
+ `);return Oe.insert(qe,ye.attributes)}return Oe.push(ye)},new ee.default)}G.default=Ce},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.Range=void 0;var K=function(){function Se(_e,fe){var be=[],ve=!0,$e=!1,Te=void 0;try{for(var Ce=_e[Symbol.iterator](),Ie;!(ve=(Ie=Ce.next()).done)&&(be.push(Ie.value),!(fe&&be.length===fe));ve=!0);}catch(Ge){$e=!0,Te=Ge}finally{try{!ve&&Ce.return&&Ce.return()}finally{if($e)throw Te}}return be}return function(_e,fe){if(Array.isArray(_e))return _e;if(Symbol.iterator in Object(_e))return Se(_e,fe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),J=function(){function Se(_e,fe){for(var be=0;be<fe.length;be++){var ve=fe[be];ve.enumerable=ve.enumerable||!1,ve.configurable=!0,"value"in ve&&(ve.writable=!0),Object.defineProperty(_e,ve.key,ve)}}return function(_e,fe,be){return fe&&Se(_e.prototype,fe),be&&Se(_e,be),_e}}(),X=Y(0),se=ce(X),ee=Y(21),ne=ce(ee),Q=Y(11),te=ce(Q),ie=Y(8),le=ce(ie),oe=Y(10),re=ce(oe),ae=Y(34);function ce(Se){return Se&&Se.__esModule?Se:{default:Se}}function ue(Se){if(Array.isArray(Se)){for(var _e=0,fe=Array(Se.length);_e<Se.length;_e++)fe[_e]=Se[_e];return fe}else return Array.from(Se)}function de(Se,_e){if(!(Se instanceof _e))throw new TypeError("Cannot call a class as a function")}var he=(0,re.default)("quill:selection"),me=function Se(_e){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;de(this,Se),this.index=_e,this.length=fe},ge=function(){function Se(_e,fe){var be=this;de(this,Se),this.emitter=fe,this.scroll=_e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.rootDocument=this.root.getRootNode?this.root.getRootNode():document,this.cursor=se.default.create("cursor",this),this.lastRange=this.savedRange=new me(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM(ae.SHADOW_SELECTIONCHANGE,document,function(){be.mouseDown||setTimeout(be.update.bind(be,le.default.sources.USER),1)}),this.emitter.on(le.default.events.EDITOR_CHANGE,function(ve,$e){ve===le.default.events.TEXT_CHANGE&&$e.length()>0&&be.update(le.default.sources.SILENT)}),this.emitter.on(le.default.events.SCROLL_BEFORE_UPDATE,function(){if(be.hasFocus()){var ve=be.getNativeRange();ve!=null&&ve.start.node!==be.cursor.textNode&&be.emitter.once(le.default.events.SCROLL_UPDATE,function(){try{be.setNativeRange(ve.start.node,ve.start.offset,ve.end.node,ve.end.offset)}catch{}})}}),this.emitter.on(le.default.events.SCROLL_OPTIMIZE,function(ve,$e){if($e.range){var Te=$e.range,Ce=Te.startNode,Ie=Te.startOffset,Ge=Te.endNode,De=Te.endOffset;be.setNativeRange(Ce,Ie,Ge,De)}}),this.update(le.default.sources.SILENT)}return J(Se,[{key:"handleComposition",value:function(){var fe=this;this.root.addEventListener("compositionstart",function(){fe.composing=!0}),this.root.addEventListener("compositionend",function(){if(fe.composing=!1,fe.cursor.parent){var be=fe.cursor.restore();if(!be)return;setTimeout(function(){fe.setNativeRange(be.startNode,be.startOffset,be.endNode,be.endOffset)},1)}})}},{key:"handleDragging",value:function(){var fe=this;this.emitter.listenDOM("mousedown",document.body,function(){fe.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){fe.mouseDown=!1,fe.update(le.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(fe,be){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[fe])){this.scroll.update();var ve=this.getNativeRange();if(!(ve==null||!ve.native.collapsed||se.default.query(fe,se.default.Scope.BLOCK))){if(ve.start.node!==this.cursor.textNode){var $e=se.default.find(ve.start.node,!1);if($e==null)return;if($e instanceof se.default.Leaf){var Te=$e.split(ve.start.offset);$e.parent.insertBefore(this.cursor,Te)}else $e.insertBefore(this.cursor,ve.start.node);this.cursor.attach()}this.cursor.format(fe,be),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(fe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ve=this.scroll.length();fe=Math.min(fe,ve-1),be=Math.min(fe+be,ve-1)-fe;var $e=void 0,Te=this.scroll.leaf(fe),Ce=K(Te,2),Ie=Ce[0],Ge=Ce[1];if(Ie==null)return null;var De=Ie.position(Ge,!0),Oe=K(De,2);$e=Oe[0],Ge=Oe[1];var ye=document.createRange();if(be>0){ye.setStart($e,Ge);var ke=this.scroll.leaf(fe+be),qe=K(ke,2);if(Ie=qe[0],Ge=qe[1],Ie==null)return null;var Le=Ie.position(Ge,!0),Ne=K(Le,2);return $e=Ne[0],Ge=Ne[1],ye.setEnd($e,Ge),ye.getBoundingClientRect()}else{var Ee="left",Re=void 0;return $e instanceof Text?(Ge<$e.data.length?(ye.setStart($e,Ge),ye.setEnd($e,Ge+1)):(ye.setStart($e,Ge-1),ye.setEnd($e,Ge),Ee="right"),Re=ye.getBoundingClientRect()):(Re=Ie.domNode.getBoundingClientRect(),Ge>0&&(Ee="right")),{bottom:Re.top+Re.height,height:Re.height,left:Re[Ee],right:Re[Ee],top:Re.top,width:0}}}},{key:"getNativeRange",value:function(){var fe=(0,ae.getRange)(this.rootDocument);if(fe==null)return null;var be=this.normalizeNative(fe);return he.info("getNativeRange",be),be}},{key:"getRange",value:function(){var fe=this.getNativeRange();if(fe==null)return[null,null];var be=this.normalizedToRange(fe);return[be,fe]}},{key:"hasFocus",value:function(){return this.rootDocument.activeElement===this.root}},{key:"normalizedToRange",value:function(fe){var be=this,ve=[[fe.start.node,fe.start.offset]];fe.native.collapsed||ve.push([fe.end.node,fe.end.offset]);var $e=ve.map(function(Ie){var Ge=K(Ie,2),De=Ge[0],Oe=Ge[1],ye=se.default.find(De,!0),ke=ye.offset(be.scroll);return Oe===0?ke:ye instanceof se.default.Container?ke+ye.length():ke+ye.index(De,Oe)}),Te=Math.min(Math.max.apply(Math,ue($e)),this.scroll.length()-1),Ce=Math.min.apply(Math,[Te].concat(ue($e)));return new me(Ce,Te-Ce)}},{key:"normalizeNative",value:function(fe){if(!we(this.root,fe.startContainer)||!fe.collapsed&&!we(this.root,fe.endContainer))return null;var be={start:{node:fe.startContainer,offset:fe.startOffset},end:{node:fe.endContainer,offset:fe.endOffset},native:fe};return[be.start,be.end].forEach(function(ve){for(var $e=ve.node,Te=ve.offset;!($e instanceof Text)&&$e.childNodes.length>0;)if($e.childNodes.length>Te)$e=$e.childNodes[Te],Te=0;else if($e.childNodes.length===Te)$e=$e.lastChild,Te=$e instanceof Text?$e.data.length:$e.childNodes.length+1;else break;ve.node=$e,ve.offset=Te}),be}},{key:"rangeToNative",value:function(fe){var be=this,ve=fe.collapsed?[fe.index]:[fe.index,fe.index+fe.length],$e=[],Te=this.scroll.length();return ve.forEach(function(Ce,Ie){Ce=Math.min(Te-1,Ce);var Ge=void 0,De=be.scroll.leaf(Ce),Oe=K(De,2),ye=Oe[0],ke=Oe[1],qe=ye.position(ke,Ie!==0),Le=K(qe,2);Ge=Le[0],ke=Le[1],$e.push(Ge,ke)}),$e.length<2&&($e=$e.concat($e)),$e}},{key:"scrollIntoView",value:function(fe){var be=this.lastRange;if(be!=null){var ve=this.getBounds(be.index,be.length);if(ve!=null){var $e=this.scroll.length()-1,Te=this.scroll.line(Math.min(be.index,$e)),Ce=K(Te,1),Ie=Ce[0],Ge=Ie;if(be.length>0){var De=this.scroll.line(Math.min(be.index+be.length,$e)),Oe=K(De,1);Ge=Oe[0]}if(!(Ie==null||Ge==null)){var ye=fe.getBoundingClientRect();ve.top<ye.top?fe.scrollTop-=ye.top-ve.top:ve.bottom>ye.bottom&&(fe.scrollTop+=ve.bottom-ye.bottom)}}}}},{key:"setNativeRange",value:function(fe,be){var ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fe,$e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:be,Te=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(he.info("setNativeRange",fe,be,ve,$e),!(fe!=null&&(this.root.parentNode==null||fe.parentNode==null||ve.parentNode==null))){var Ce=typeof this.rootDocument.getSelection=="function"?this.rootDocument.getSelection():document.getSelection();if(Ce!=null)if(fe!=null){this.hasFocus()||this.root.focus();var Ie=(this.getNativeRange()||{}).native;if(Ie==null||Te||fe!==Ie.startContainer||be!==Ie.startOffset||ve!==Ie.endContainer||$e!==Ie.endOffset){fe.tagName=="BR"&&(be=[].indexOf.call(fe.parentNode.childNodes,fe),fe=fe.parentNode),ve.tagName=="BR"&&($e=[].indexOf.call(ve.parentNode.childNodes,ve),ve=ve.parentNode);var Ge=document.createRange();Ge.setStart(fe,be),Ge.setEnd(ve,$e),Ce.removeAllRanges(),Ce.addRange(Ge)}}else Ce.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(fe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le.default.sources.API;if(typeof be=="string"&&(ve=be,be=!1),he.info("setRange",fe),fe!=null){var $e=this.rangeToNative(fe);this.setNativeRange.apply(this,ue($e).concat([be]))}else this.setNativeRange(null);this.update(ve)}},{key:"update",value:function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.default.sources.USER,be=this.lastRange,ve=this.getRange(),$e=K(ve,2),Te=$e[0],Ce=$e[1];if(this.lastRange=Te,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,te.default)(be,this.lastRange)){var Ie;!this.composing&&Ce!=null&&Ce.native.collapsed&&Ce.start.node!==this.cursor.textNode&&this.cursor.restore();var Ge=[le.default.events.SELECTION_CHANGE,(0,ne.default)(this.lastRange),(0,ne.default)(be),fe];if((Ie=this.emitter).emit.apply(Ie,[le.default.events.EDITOR_CHANGE].concat(Ge)),fe!==le.default.sources.SILENT){var De;(De=this.emitter).emit.apply(De,Ge)}}}}]),Se}();function we(Se,_e){try{_e.parentNode}catch{return!1}return _e instanceof Text&&(_e=_e.parentNode),Se.contains(_e)}G.Range=me,G.default=ge},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function le(oe,re){for(var ae=0;ae<re.length;ae++){var ce=re[ae];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(oe,ce.key,ce)}}return function(oe,re,ae){return re&&le(oe.prototype,re),ae&&le(oe,ae),oe}}(),J=function le(oe,re,ae){oe===null&&(oe=Function.prototype);var ce=Object.getOwnPropertyDescriptor(oe,re);if(ce===void 0){var ue=Object.getPrototypeOf(oe);return ue===null?void 0:le(ue,re,ae)}else{if("value"in ce)return ce.value;var de=ce.get;return de===void 0?void 0:de.call(ae)}},X=Y(0),se=ee(X);function ee(le){return le&&le.__esModule?le:{default:le}}function ne(le,oe){if(!(le instanceof oe))throw new TypeError("Cannot call a class as a function")}function Q(le,oe){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:le}function te(le,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);le.prototype=Object.create(oe&&oe.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(le,oe):le.__proto__=oe)}var ie=function(le){te(oe,le);function oe(){return ne(this,oe),Q(this,(oe.__proto__||Object.getPrototypeOf(oe)).apply(this,arguments))}return K(oe,[{key:"insertInto",value:function(ae,ce){ae.children.length===0?J(oe.prototype.__proto__||Object.getPrototypeOf(oe.prototype),"insertInto",this).call(this,ae,ce):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),oe}(se.default.Embed);ie.blotName="break",ie.tagName="BR",G.default=ie},function(U,G,Y){var K=this&&this.__extends||function(){var Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,ie){te.__proto__=ie}||function(te,ie){for(var le in ie)ie.hasOwnProperty(le)&&(te[le]=ie[le])};return function(te,ie){Q(te,ie);function le(){this.constructor=te}te.prototype=ie===null?Object.create(ie):(le.prototype=ie.prototype,new le)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(45),X=Y(30),se=Y(1),ee=function(Q){K(te,Q);function te(ie){var le=Q.call(this,ie)||this;return le.build(),le}return te.prototype.appendChild=function(ie){this.insertBefore(ie)},te.prototype.attach=function(){Q.prototype.attach.call(this),this.children.forEach(function(ie){ie.attach()})},te.prototype.build=function(){var ie=this;this.children=new J.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(le){try{var oe=ne(le);ie.insertBefore(oe,ie.children.head||void 0)}catch(re){if(re instanceof se.ParchmentError)return;throw re}})},te.prototype.deleteAt=function(ie,le){if(ie===0&&le===this.length())return this.remove();this.children.forEachAt(ie,le,function(oe,re,ae){oe.deleteAt(re,ae)})},te.prototype.descendant=function(ie,le){var oe=this.children.find(le),re=oe[0],ae=oe[1];return ie.blotName==null&&ie(re)||ie.blotName!=null&&re instanceof ie?[re,ae]:re instanceof te?re.descendant(ie,ae):[null,-1]},te.prototype.descendants=function(ie,le,oe){le===void 0&&(le=0),oe===void 0&&(oe=Number.MAX_VALUE);var re=[],ae=oe;return this.children.forEachAt(le,oe,function(ce,ue,de){(ie.blotName==null&&ie(ce)||ie.blotName!=null&&ce instanceof ie)&&re.push(ce),ce instanceof te&&(re=re.concat(ce.descendants(ie,ue,ae))),ae-=de}),re},te.prototype.detach=function(){this.children.forEach(function(ie){ie.detach()}),Q.prototype.detach.call(this)},te.prototype.formatAt=function(ie,le,oe,re){this.children.forEachAt(ie,le,function(ae,ce,ue){ae.formatAt(ce,ue,oe,re)})},te.prototype.insertAt=function(ie,le,oe){var re=this.children.find(ie),ae=re[0],ce=re[1];if(ae)ae.insertAt(ce,le,oe);else{var ue=oe==null?se.create("text",le):se.create(le,oe);this.appendChild(ue)}},te.prototype.insertBefore=function(ie,le){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(oe){return ie instanceof oe}))throw new se.ParchmentError("Cannot insert "+ie.statics.blotName+" into "+this.statics.blotName);ie.insertInto(this,le)},te.prototype.length=function(){return this.children.reduce(function(ie,le){return ie+le.length()},0)},te.prototype.moveChildren=function(ie,le){this.children.forEach(function(oe){ie.insertBefore(oe,le)})},te.prototype.optimize=function(ie){if(Q.prototype.optimize.call(this,ie),this.children.length===0)if(this.statics.defaultChild!=null){var le=se.create(this.statics.defaultChild);this.appendChild(le),le.optimize(ie)}else this.remove()},te.prototype.path=function(ie,le){le===void 0&&(le=!1);var oe=this.children.find(ie,le),re=oe[0],ae=oe[1],ce=[[this,ie]];return re instanceof te?ce.concat(re.path(ae,le)):(re!=null&&ce.push([re,ae]),ce)},te.prototype.removeChild=function(ie){this.children.remove(ie)},te.prototype.replace=function(ie){ie instanceof te&&ie.moveChildren(this),Q.prototype.replace.call(this,ie)},te.prototype.split=function(ie,le){if(le===void 0&&(le=!1),!le){if(ie===0)return this;if(ie===this.length())return this.next}var oe=this.clone();return this.parent.insertBefore(oe,this.next),this.children.forEachAt(ie,this.length(),function(re,ae,ce){re=re.split(ae,le),oe.appendChild(re)}),oe},te.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},te.prototype.update=function(ie,le){var oe=this,re=[],ae=[];ie.forEach(function(ce){ce.target===oe.domNode&&ce.type==="childList"&&(re.push.apply(re,ce.addedNodes),ae.push.apply(ae,ce.removedNodes))}),ae.forEach(function(ce){if(!(ce.parentNode!=null&&ce.tagName!=="IFRAME"&&document.body.compareDocumentPosition(ce)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var ue=se.find(ce);ue!=null&&(ue.domNode.parentNode==null||ue.domNode.parentNode===oe.domNode)&&ue.detach()}}),re.filter(function(ce){return ce.parentNode==oe.domNode}).sort(function(ce,ue){return ce===ue?0:ce.compareDocumentPosition(ue)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(ce){var ue=null;ce.nextSibling!=null&&(ue=se.find(ce.nextSibling));var de=ne(ce);(de.next!=ue||de.next==null)&&(de.parent!=null&&de.parent.removeChild(oe),oe.insertBefore(de,ue||void 0))})},te}(X.default);function ne(Q){var te=se.find(Q);if(te==null)try{te=se.create(Q)}catch{te=se.create(se.Scope.INLINE),[].slice.call(Q.childNodes).forEach(function(le){te.domNode.appendChild(le)}),Q.parentNode&&Q.parentNode.replaceChild(te.domNode,Q),te.attach()}return te}G.default=ee},function(U,G,Y){var K=this&&this.__extends||function(){var Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,ie){te.__proto__=ie}||function(te,ie){for(var le in ie)ie.hasOwnProperty(le)&&(te[le]=ie[le])};return function(te,ie){Q(te,ie);function le(){this.constructor=te}te.prototype=ie===null?Object.create(ie):(le.prototype=ie.prototype,new le)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(12),X=Y(31),se=Y(17),ee=Y(1),ne=function(Q){K(te,Q);function te(ie){var le=Q.call(this,ie)||this;return le.attributes=new X.default(le.domNode),le}return te.formats=function(ie){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return ie.tagName.toLowerCase()},te.prototype.format=function(ie,le){var oe=ee.query(ie);oe instanceof J.default?this.attributes.attribute(oe,le):le&&oe!=null&&(ie!==this.statics.blotName||this.formats()[ie]!==le)&&this.replaceWith(ie,le)},te.prototype.formats=function(){var ie=this.attributes.values(),le=this.statics.formats(this.domNode);return le!=null&&(ie[this.statics.blotName]=le),ie},te.prototype.replaceWith=function(ie,le){var oe=Q.prototype.replaceWith.call(this,ie,le);return this.attributes.copy(oe),oe},te.prototype.update=function(ie,le){var oe=this;Q.prototype.update.call(this,ie,le),ie.some(function(re){return re.target===oe.domNode&&re.type==="attributes"})&&this.attributes.build()},te.prototype.wrap=function(ie,le){var oe=Q.prototype.wrap.call(this,ie,le);return oe instanceof te&&oe.statics.scope===this.statics.scope&&this.attributes.move(oe),oe},te}(se.default);G.default=ne},function(U,G,Y){var K=this&&this.__extends||function(){var ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,Q){ne.__proto__=Q}||function(ne,Q){for(var te in Q)Q.hasOwnProperty(te)&&(ne[te]=Q[te])};return function(ne,Q){ee(ne,Q);function te(){this.constructor=ne}ne.prototype=Q===null?Object.create(Q):(te.prototype=Q.prototype,new te)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(30),X=Y(1),se=function(ee){K(ne,ee);function ne(){return ee!==null&&ee.apply(this,arguments)||this}return ne.value=function(Q){return!0},ne.prototype.index=function(Q,te){return this.domNode===Q||this.domNode.compareDocumentPosition(Q)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(te,1):-1},ne.prototype.position=function(Q,te){var ie=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return Q>0&&(ie+=1),[this.parent.domNode,ie]},ne.prototype.value=function(){var Q;return Q={},Q[this.statics.blotName]=this.statics.value(this.domNode)||!0,Q},ne.scope=X.Scope.INLINE_BLOT,ne}(J.default);G.default=se},function(U,G,Y){var K=Y(11),J=Y(3),X={attributes:{compose:function(ee,ne,Q){typeof ee!="object"&&(ee={}),typeof ne!="object"&&(ne={});var te=J(!0,{},ne);Q||(te=Object.keys(te).reduce(function(le,oe){return te[oe]!=null&&(le[oe]=te[oe]),le},{}));for(var ie in ee)ee[ie]!==void 0&&ne[ie]===void 0&&(te[ie]=ee[ie]);return Object.keys(te).length>0?te:void 0},diff:function(ee,ne){typeof ee!="object"&&(ee={}),typeof ne!="object"&&(ne={});var Q=Object.keys(ee).concat(Object.keys(ne)).reduce(function(te,ie){return K(ee[ie],ne[ie])||(te[ie]=ne[ie]===void 0?null:ne[ie]),te},{});return Object.keys(Q).length>0?Q:void 0},transform:function(ee,ne,Q){if(typeof ee!="object")return ne;if(typeof ne=="object"){if(!Q)return ne;var te=Object.keys(ne).reduce(function(ie,le){return ee[le]===void 0&&(ie[le]=ne[le]),ie},{});return Object.keys(te).length>0?te:void 0}}},iterator:function(ee){return new se(ee)},length:function(ee){return typeof ee.delete=="number"?ee.delete:typeof ee.retain=="number"?ee.retain:typeof ee.insert=="string"?ee.insert.length:1}};function se(ee){this.ops=ee,this.index=0,this.offset=0}se.prototype.hasNext=function(){return this.peekLength()<1/0},se.prototype.next=function(ee){ee||(ee=1/0);var ne=this.ops[this.index];if(ne){var Q=this.offset,te=X.length(ne);if(ee>=te-Q?(ee=te-Q,this.index+=1,this.offset=0):this.offset+=ee,typeof ne.delete=="number")return{delete:ee};var ie={};return ne.attributes&&(ie.attributes=ne.attributes),typeof ne.retain=="number"?ie.retain=ee:typeof ne.insert=="string"?ie.insert=ne.insert.substr(Q,ee):ie.insert=ne.insert,ie}else return{retain:1/0}},se.prototype.peek=function(){return this.ops[this.index]},se.prototype.peekLength=function(){return this.ops[this.index]?X.length(this.ops[this.index])-this.offset:1/0},se.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},se.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var ee=this.offset,ne=this.index,Q=this.next(),te=this.ops.slice(this.index);return this.offset=ee,this.index=ne,[Q].concat(te)}else return[]},U.exports=X},function(U,G){var Y=function(){function K(oe,re){return re!=null&&oe instanceof re}var J;try{J=Map}catch{J=function(){}}var X;try{X=Set}catch{X=function(){}}var se;try{se=Promise}catch{se=function(){}}function ee(oe,re,ae,ce,ue){typeof re=="object"&&(ae=re.depth,ce=re.prototype,ue=re.includeNonEnumerable,re=re.circular);var de=[],he=[],me=typeof Buffer<"u";typeof re>"u"&&(re=!0),typeof ae>"u"&&(ae=1/0);function ge(we,Se){if(we===null)return null;if(Se===0)return we;var _e,fe;if(typeof we!="object")return we;if(K(we,J))_e=new J;else if(K(we,X))_e=new X;else if(K(we,se))_e=new se(function(Oe,ye){we.then(function(ke){Oe(ge(ke,Se-1))},function(ke){ye(ge(ke,Se-1))})});else if(ee.__isArray(we))_e=[];else if(ee.__isRegExp(we))_e=new RegExp(we.source,le(we)),we.lastIndex&&(_e.lastIndex=we.lastIndex);else if(ee.__isDate(we))_e=new Date(we.getTime());else{if(me&&Buffer.isBuffer(we))return Buffer.allocUnsafe?_e=Buffer.allocUnsafe(we.length):_e=new Buffer(we.length),we.copy(_e),_e;K(we,Error)?_e=Object.create(we):typeof ce>"u"?(fe=Object.getPrototypeOf(we),_e=Object.create(fe)):(_e=Object.create(ce),fe=ce)}if(re){var be=de.indexOf(we);if(be!=-1)return he[be];de.push(we),he.push(_e)}K(we,J)&&we.forEach(function(Oe,ye){var ke=ge(ye,Se-1),qe=ge(Oe,Se-1);_e.set(ke,qe)}),K(we,X)&&we.forEach(function(Oe){var ye=ge(Oe,Se-1);_e.add(ye)});for(var ve in we){var $e;fe&&($e=Object.getOwnPropertyDescriptor(fe,ve)),!($e&&$e.set==null)&&(_e[ve]=ge(we[ve],Se-1))}if(Object.getOwnPropertySymbols)for(var Te=Object.getOwnPropertySymbols(we),ve=0;ve<Te.length;ve++){var Ce=Te[ve],Ie=Object.getOwnPropertyDescriptor(we,Ce);Ie&&!Ie.enumerable&&!ue||(_e[Ce]=ge(we[Ce],Se-1),Ie.enumerable||Object.defineProperty(_e,Ce,{enumerable:!1}))}if(ue)for(var Ge=Object.getOwnPropertyNames(we),ve=0;ve<Ge.length;ve++){var De=Ge[ve],Ie=Object.getOwnPropertyDescriptor(we,De);Ie&&Ie.enumerable||(_e[De]=ge(we[De],Se-1),Object.defineProperty(_e,De,{enumerable:!1}))}return _e}return ge(oe,ae)}ee.clonePrototype=function(re){if(re===null)return null;var ae=function(){};return ae.prototype=re,new ae};function ne(oe){return Object.prototype.toString.call(oe)}ee.__objToStr=ne;function Q(oe){return typeof oe=="object"&&ne(oe)==="[object Date]"}ee.__isDate=Q;function te(oe){return typeof oe=="object"&&ne(oe)==="[object Array]"}ee.__isArray=te;function ie(oe){return typeof oe=="object"&&ne(oe)==="[object RegExp]"}ee.__isRegExp=ie;function le(oe){var re="";return oe.global&&(re+="g"),oe.ignoreCase&&(re+="i"),oe.multiline&&(re+="m"),re}return ee.__getRegExpFlags=le,ee}();typeof U=="object"&&U.exports&&(U.exports=Y)},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function _e(fe,be){var ve=[],$e=!0,Te=!1,Ce=void 0;try{for(var Ie=fe[Symbol.iterator](),Ge;!($e=(Ge=Ie.next()).done)&&(ve.push(Ge.value),!(be&&ve.length===be));$e=!0);}catch(De){Te=!0,Ce=De}finally{try{!$e&&Ie.return&&Ie.return()}finally{if(Te)throw Ce}}return ve}return function(fe,be){if(Array.isArray(fe))return fe;if(Symbol.iterator in Object(fe))return _e(fe,be);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),J=function(){function _e(fe,be){for(var ve=0;ve<be.length;ve++){var $e=be[ve];$e.enumerable=$e.enumerable||!1,$e.configurable=!0,"value"in $e&&($e.writable=!0),Object.defineProperty(fe,$e.key,$e)}}return function(fe,be,ve){return be&&_e(fe.prototype,be),ve&&_e(fe,ve),fe}}(),X=function _e(fe,be,ve){fe===null&&(fe=Function.prototype);var $e=Object.getOwnPropertyDescriptor(fe,be);if($e===void 0){var Te=Object.getPrototypeOf(fe);return Te===null?void 0:_e(Te,be,ve)}else{if("value"in $e)return $e.value;var Ce=$e.get;return Ce===void 0?void 0:Ce.call(ve)}},se=Y(0),ee=de(se),ne=Y(8),Q=de(ne),te=Y(4),ie=de(te),le=Y(16),oe=de(le),re=Y(13),ae=de(re),ce=Y(25),ue=de(ce);function de(_e){return _e&&_e.__esModule?_e:{default:_e}}function he(_e,fe){if(!(_e instanceof fe))throw new TypeError("Cannot call a class as a function")}function me(_e,fe){if(!_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe&&(typeof fe=="object"||typeof fe=="function")?fe:_e}function ge(_e,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof fe);_e.prototype=Object.create(fe&&fe.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),fe&&(Object.setPrototypeOf?Object.setPrototypeOf(_e,fe):_e.__proto__=fe)}function we(_e){return _e instanceof ie.default||_e instanceof te.BlockEmbed}var Se=function(_e){ge(fe,_e);function fe(be,ve){he(this,fe);var $e=me(this,(fe.__proto__||Object.getPrototypeOf(fe)).call(this,be));return $e.emitter=ve.emitter,Array.isArray(ve.whitelist)&&($e.whitelist=ve.whitelist.reduce(function(Te,Ce){return Te[Ce]=!0,Te},{})),$e.domNode.addEventListener("DOMNodeInserted",function(){}),$e.optimize(),$e.enable(),$e}return J(fe,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(ve,$e){var Te=this.line(ve),Ce=K(Te,2),Ie=Ce[0],Ge=Ce[1],De=this.line(ve+$e),Oe=K(De,1),ye=Oe[0];if(X(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"deleteAt",this).call(this,ve,$e),ye!=null&&Ie!==ye&&Ge>0){if(Ie instanceof te.BlockEmbed||ye instanceof te.BlockEmbed){this.optimize();return}if(Ie instanceof ae.default){var ke=Ie.newlineIndex(Ie.length(),!0);if(ke>-1&&(Ie=Ie.split(ke+1),Ie===ye)){this.optimize();return}}else if(ye instanceof ae.default){var qe=ye.newlineIndex(0);qe>-1&&ye.split(qe+1)}var Le=ye.children.head instanceof oe.default?null:ye.children.head;Ie.moveChildren(ye,Le),Ie.remove()}this.optimize()}},{key:"enable",value:function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",ve)}},{key:"formatAt",value:function(ve,$e,Te,Ce){this.whitelist!=null&&!this.whitelist[Te]||(X(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"formatAt",this).call(this,ve,$e,Te,Ce),this.optimize())}},{key:"insertAt",value:function(ve,$e,Te){if(!(Te!=null&&this.whitelist!=null&&!this.whitelist[$e])){if(ve>=this.length())if(Te==null||ee.default.query($e,ee.default.Scope.BLOCK)==null){var Ce=ee.default.create(this.statics.defaultChild);this.appendChild(Ce),Te==null&&$e.endsWith(`
8658
+ `)&&($e=$e.slice(0,-1)),Ce.insertAt(0,$e,Te)}else{var Ie=ee.default.create($e,Te);this.appendChild(Ie)}else X(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"insertAt",this).call(this,ve,$e,Te);this.optimize()}}},{key:"insertBefore",value:function(ve,$e){if(ve.statics.scope===ee.default.Scope.INLINE_BLOT){var Te=ee.default.create(this.statics.defaultChild);Te.appendChild(ve),ve=Te}X(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"insertBefore",this).call(this,ve,$e)}},{key:"leaf",value:function(ve){return this.path(ve).pop()||[null,-1]}},{key:"line",value:function(ve){return ve===this.length()?this.line(ve-1):this.descendant(we,ve)}},{key:"lines",value:function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,$e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,Te=function Ce(Ie,Ge,De){var Oe=[],ye=De;return Ie.children.forEachAt(Ge,De,function(ke,qe,Le){we(ke)?Oe.push(ke):ke instanceof ee.default.Container&&(Oe=Oe.concat(Ce(ke,qe,ye))),ye-=Le}),Oe};return Te(this,ve,$e)}},{key:"optimize",value:function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(X(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"optimize",this).call(this,ve,$e),ve.length>0&&this.emitter.emit(Q.default.events.SCROLL_OPTIMIZE,ve,$e))}},{key:"path",value:function(ve){return X(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"path",this).call(this,ve).slice(1)}},{key:"update",value:function(ve){if(this.batch!==!0){var $e=Q.default.sources.USER;typeof ve=="string"&&($e=ve),Array.isArray(ve)||(ve=this.observer.takeRecords()),ve.length>0&&this.emitter.emit(Q.default.events.SCROLL_BEFORE_UPDATE,$e,ve),X(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"update",this).call(this,ve.concat([])),ve.length>0&&this.emitter.emit(Q.default.events.SCROLL_UPDATE,$e,ve)}}}]),fe}(ee.default.Scroll);Se.blotName="scroll",Se.className="ql-editor",Se.tagName="DIV",Se.defaultChild="block",Se.allowedChildren=[ie.default,te.BlockEmbed,ue.default],G.default=Se},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.SHORTKEY=G.default=void 0;var K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ee){return typeof Ee}:function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},J=function(){function Ee(Re,Be){var Ue=[],He=!0,nt=!1,at=void 0;try{for(var dt=Re[Symbol.iterator](),ft;!(He=(ft=dt.next()).done)&&(Ue.push(ft.value),!(Be&&Ue.length===Be));He=!0);}catch(_t){nt=!0,at=_t}finally{try{!He&&dt.return&&dt.return()}finally{if(nt)throw at}}return Ue}return function(Re,Be){if(Array.isArray(Re))return Re;if(Symbol.iterator in Object(Re))return Ee(Re,Be);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),X=function(){function Ee(Re,Be){for(var Ue=0;Ue<Be.length;Ue++){var He=Be[Ue];He.enumerable=He.enumerable||!1,He.configurable=!0,"value"in He&&(He.writable=!0),Object.defineProperty(Re,He.key,He)}}return function(Re,Be,Ue){return Be&&Ee(Re.prototype,Be),Ue&&Ee(Re,Ue),Re}}(),se=Y(21),ee=_e(se),ne=Y(11),Q=_e(ne),te=Y(3),ie=_e(te),le=Y(2),oe=_e(le),re=Y(20),ae=_e(re),ce=Y(0),ue=_e(ce),de=Y(5),he=_e(de),me=Y(10),ge=_e(me),we=Y(9),Se=_e(we);function _e(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}function fe(Ee,Re,Be){return Re in Ee?Object.defineProperty(Ee,Re,{value:Be,enumerable:!0,configurable:!0,writable:!0}):Ee[Re]=Be,Ee}function be(Ee,Re){if(!(Ee instanceof Re))throw new TypeError("Cannot call a class as a function")}function ve(Ee,Re){if(!Ee)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Re&&(typeof Re=="object"||typeof Re=="function")?Re:Ee}function $e(Ee,Re){if(typeof Re!="function"&&Re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Re);Ee.prototype=Object.create(Re&&Re.prototype,{constructor:{value:Ee,enumerable:!1,writable:!0,configurable:!0}}),Re&&(Object.setPrototypeOf?Object.setPrototypeOf(Ee,Re):Ee.__proto__=Re)}var Te=(0,ge.default)("quill:keyboard"),Ce=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",Ie=function(Ee){$e(Re,Ee),X(Re,null,[{key:"match",value:function(Ue,He){return He=Ne(He),["altKey","ctrlKey","metaKey","shiftKey"].some(function(nt){return!!He[nt]!==Ue[nt]&&He[nt]!==null})?!1:He.key===(Ue.which||Ue.keyCode)}}]);function Re(Be,Ue){be(this,Re);var He=ve(this,(Re.__proto__||Object.getPrototypeOf(Re)).call(this,Be,Ue));return He.bindings={},Object.keys(He.options.bindings).forEach(function(nt){nt==="list autofill"&&Be.scroll.whitelist!=null&&!Be.scroll.whitelist.list||He.options.bindings[nt]&&He.addBinding(He.options.bindings[nt])}),He.addBinding({key:Re.keys.ENTER,shiftKey:null},ke),He.addBinding({key:Re.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(He.addBinding({key:Re.keys.BACKSPACE},{collapsed:!0},De),He.addBinding({key:Re.keys.DELETE},{collapsed:!0},Oe)):(He.addBinding({key:Re.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},De),He.addBinding({key:Re.keys.DELETE},{collapsed:!0,suffix:/^.?$/},Oe)),He.addBinding({key:Re.keys.BACKSPACE},{collapsed:!1},ye),He.addBinding({key:Re.keys.DELETE},{collapsed:!1},ye),He.addBinding({key:Re.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},De),He.listen(),He}return X(Re,[{key:"addBinding",value:function(Ue){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},at=Ne(Ue);if(at==null||at.key==null)return Te.warn("Attempted to add invalid keyboard binding",at);typeof He=="function"&&(He={handler:He}),typeof nt=="function"&&(nt={handler:nt}),at=(0,ie.default)(at,He,nt),this.bindings[at.key]=this.bindings[at.key]||[],this.bindings[at.key].push(at)}},{key:"listen",value:function(){var Ue=this;this.quill.root.addEventListener("keydown",function(He){if(!He.defaultPrevented){var nt=He.which||He.keyCode,at=(Ue.bindings[nt]||[]).filter(function($t){return Re.match(He,$t)});if(at.length!==0){var dt=Ue.quill.getSelection();if(!(dt==null||!Ue.quill.hasFocus())){var ft=Ue.quill.getLine(dt.index),_t=J(ft,2),It=_t[0],St=_t[1],Ve=Ue.quill.getLeaf(dt.index),ze=J(Ve,2),Xe=ze[0],et=ze[1],Ye=dt.length===0?[Xe,et]:Ue.quill.getLeaf(dt.index+dt.length),ut=J(Ye,2),ht=ut[0],pt=ut[1],Ct=Xe instanceof ue.default.Text?Xe.value().slice(0,et):"",Dt=ht instanceof ue.default.Text?ht.value().slice(pt):"",kt={collapsed:dt.length===0,empty:dt.length===0&&It.length()<=1,format:Ue.quill.getFormat(dt),offset:St,prefix:Ct,suffix:Dt},Zt=at.some(function($t){if($t.collapsed!=null&&$t.collapsed!==kt.collapsed||$t.empty!=null&&$t.empty!==kt.empty||$t.offset!=null&&$t.offset!==kt.offset)return!1;if(Array.isArray($t.format)){if($t.format.every(function(Me){return kt.format[Me]==null}))return!1}else if(K($t.format)==="object"&&!Object.keys($t.format).every(function(Me){return $t.format[Me]===!0?kt.format[Me]!=null:$t.format[Me]===!1?kt.format[Me]==null:(0,Q.default)($t.format[Me],kt.format[Me])}))return!1;return $t.prefix!=null&&!$t.prefix.test(kt.prefix)||$t.suffix!=null&&!$t.suffix.test(kt.suffix)?!1:$t.handler.call(Ue,dt,kt)!==!0});Zt&&He.preventDefault()}}}})}}]),Re}(Se.default);Ie.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},Ie.DEFAULTS={bindings:{bold:Le("bold"),italic:Le("italic"),underline:Le("underline"),indent:{key:Ie.keys.TAB,format:["blockquote","indent","list"],handler:function(Re,Be){if(Be.collapsed&&Be.offset!==0)return!0;this.quill.format("indent","+1",he.default.sources.USER)}},outdent:{key:Ie.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(Re,Be){if(Be.collapsed&&Be.offset!==0)return!0;this.quill.format("indent","-1",he.default.sources.USER)}},"outdent backspace":{key:Ie.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(Re,Be){Be.format.indent!=null?this.quill.format("indent","-1",he.default.sources.USER):Be.format.list!=null&&this.quill.format("list",!1,he.default.sources.USER)}},"indent code-block":qe(!0),"outdent code-block":qe(!1),"remove tab":{key:Ie.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(Re){this.quill.deleteText(Re.index-1,1,he.default.sources.USER)}},tab:{key:Ie.keys.TAB,handler:function(Re){this.quill.history.cutoff();var Be=new oe.default().retain(Re.index).delete(Re.length).insert(" ");this.quill.updateContents(Be,he.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(Re.index+1,he.default.sources.SILENT)}},"list empty enter":{key:Ie.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(Re,Be){this.quill.format("list",!1,he.default.sources.USER),Be.format.indent&&this.quill.format("indent",!1,he.default.sources.USER)}},"checklist enter":{key:Ie.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(Re){var Be=this.quill.getLine(Re.index),Ue=J(Be,2),He=Ue[0],nt=Ue[1],at=(0,ie.default)({},He.formats(),{list:"checked"}),dt=new oe.default().retain(Re.index).insert(`
8659
+ `,at).retain(He.length()-nt-1).retain(1,{list:"unchecked"});this.quill.updateContents(dt,he.default.sources.USER),this.quill.setSelection(Re.index+1,he.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:Ie.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(Re,Be){var Ue=this.quill.getLine(Re.index),He=J(Ue,2),nt=He[0],at=He[1],dt=new oe.default().retain(Re.index).insert(`
8660
+ `,Be.format).retain(nt.length()-at-1).retain(1,{header:null});this.quill.updateContents(dt,he.default.sources.USER),this.quill.setSelection(Re.index+1,he.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(Re,Be){var Ue=Be.prefix.length,He=this.quill.getLine(Re.index),nt=J(He,2),at=nt[0],dt=nt[1];if(dt>Ue)return!0;var ft=void 0;switch(Be.prefix.trim()){case"[]":case"[ ]":ft="unchecked";break;case"[x]":ft="checked";break;case"-":case"*":ft="bullet";break;default:ft="ordered"}this.quill.insertText(Re.index," ",he.default.sources.USER),this.quill.history.cutoff();var _t=new oe.default().retain(Re.index-dt).delete(Ue+1).retain(at.length()-2-dt).retain(1,{list:ft});this.quill.updateContents(_t,he.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(Re.index-Ue,he.default.sources.SILENT)}},"code exit":{key:Ie.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(Re){var Be=this.quill.getLine(Re.index),Ue=J(Be,2),He=Ue[0],nt=Ue[1],at=new oe.default().retain(Re.index+He.length()-nt-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(at,he.default.sources.USER)}},"embed left":Ge(Ie.keys.LEFT,!1),"embed left shift":Ge(Ie.keys.LEFT,!0),"embed right":Ge(Ie.keys.RIGHT,!1),"embed right shift":Ge(Ie.keys.RIGHT,!0)}};function Ge(Ee,Re){var Be,Ue=Ee===Ie.keys.LEFT?"prefix":"suffix";return Be={key:Ee,shiftKey:Re,altKey:null},fe(Be,Ue,/^$/),fe(Be,"handler",function(nt){var at=nt.index;Ee===Ie.keys.RIGHT&&(at+=nt.length+1);var dt=this.quill.getLeaf(at),ft=J(dt,1),_t=ft[0];return _t instanceof ue.default.Embed?(Ee===Ie.keys.LEFT?Re?this.quill.setSelection(nt.index-1,nt.length+1,he.default.sources.USER):this.quill.setSelection(nt.index-1,he.default.sources.USER):Re?this.quill.setSelection(nt.index,nt.length+1,he.default.sources.USER):this.quill.setSelection(nt.index+nt.length+1,he.default.sources.USER),!1):!0}),Be}function De(Ee,Re){if(!(Ee.index===0||this.quill.getLength()<=1)){var Be=this.quill.getLine(Ee.index),Ue=J(Be,1),He=Ue[0],nt={};if(Re.offset===0){var at=this.quill.getLine(Ee.index-1),dt=J(at,1),ft=dt[0];if(ft!=null&&ft.length()>1){var _t=He.formats(),It=this.quill.getFormat(Ee.index-1,1);nt=ae.default.attributes.diff(_t,It)||{}}}var St=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Re.prefix)?2:1;this.quill.deleteText(Ee.index-St,St,he.default.sources.USER),Object.keys(nt).length>0&&this.quill.formatLine(Ee.index-St,St,nt,he.default.sources.USER),this.quill.focus()}}function Oe(Ee,Re){var Be=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Re.suffix)?2:1;if(!(Ee.index>=this.quill.getLength()-Be)){var Ue={},He=0,nt=this.quill.getLine(Ee.index),at=J(nt,1),dt=at[0];if(Re.offset>=dt.length()-1){var ft=this.quill.getLine(Ee.index+1),_t=J(ft,1),It=_t[0];if(It){var St=dt.formats(),Ve=this.quill.getFormat(Ee.index,1);Ue=ae.default.attributes.diff(St,Ve)||{},He=It.length()}}this.quill.deleteText(Ee.index,Be,he.default.sources.USER),Object.keys(Ue).length>0&&this.quill.formatLine(Ee.index+He-1,Be,Ue,he.default.sources.USER)}}function ye(Ee){var Re=this.quill.getLines(Ee),Be={};if(Re.length>1){var Ue=Re[0].formats(),He=Re[Re.length-1].formats();Be=ae.default.attributes.diff(He,Ue)||{}}this.quill.deleteText(Ee,he.default.sources.USER),Object.keys(Be).length>0&&this.quill.formatLine(Ee.index,1,Be,he.default.sources.USER),this.quill.setSelection(Ee.index,he.default.sources.SILENT),this.quill.focus()}function ke(Ee,Re){var Be=this;Ee.length>0&&this.quill.scroll.deleteAt(Ee.index,Ee.length);var Ue=Object.keys(Re.format).reduce(function(He,nt){return ue.default.query(nt,ue.default.Scope.BLOCK)&&!Array.isArray(Re.format[nt])&&(He[nt]=Re.format[nt]),He},{});this.quill.insertText(Ee.index,`
8661
+ `,Ue,he.default.sources.USER),this.quill.setSelection(Ee.index+1,he.default.sources.SILENT),this.quill.focus(),Object.keys(Re.format).forEach(function(He){Ue[He]==null&&(Array.isArray(Re.format[He])||He!=="link"&&Be.quill.format(He,Re.format[He],he.default.sources.USER))})}function qe(Ee){return{key:Ie.keys.TAB,shiftKey:!Ee,format:{"code-block":!0},handler:function(Be){var Ue=ue.default.query("code-block"),He=Be.index,nt=Be.length,at=this.quill.scroll.descendant(Ue,He),dt=J(at,2),ft=dt[0],_t=dt[1];if(ft!=null){var It=this.quill.getIndex(ft),St=ft.newlineIndex(_t,!0)+1,Ve=ft.newlineIndex(It+_t+nt),ze=ft.domNode.textContent.slice(St,Ve).split(`
8662
+ `);_t=0,ze.forEach(function(Xe,et){Ee?(ft.insertAt(St+_t,Ue.TAB),_t+=Ue.TAB.length,et===0?He+=Ue.TAB.length:nt+=Ue.TAB.length):Xe.startsWith(Ue.TAB)&&(ft.deleteAt(St+_t,Ue.TAB.length),_t-=Ue.TAB.length,et===0?He-=Ue.TAB.length:nt-=Ue.TAB.length),_t+=Xe.length+1}),this.quill.update(he.default.sources.USER),this.quill.setSelection(He,nt,he.default.sources.SILENT)}}}}function Le(Ee){return{key:Ee[0].toUpperCase(),shortKey:!0,handler:function(Be,Ue){this.quill.format(Ee,!Ue.format[Ee],he.default.sources.USER)}}}function Ne(Ee){if(typeof Ee=="string"||typeof Ee=="number")return Ne({key:Ee});if((typeof Ee>"u"?"undefined":K(Ee))==="object"&&(Ee=(0,ee.default)(Ee,!1)),typeof Ee.key=="string")if(Ie.keys[Ee.key.toUpperCase()]!=null)Ee.key=Ie.keys[Ee.key.toUpperCase()];else if(Ee.key.length===1)Ee.key=Ee.key.toUpperCase().charCodeAt(0);else return null;return Ee.shortKey&&(Ee[Ce]=Ee.shortKey,delete Ee.shortKey),Ee}G.default=Ie,G.SHORTKEY=Ce},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function ae(ce,ue){var de=[],he=!0,me=!1,ge=void 0;try{for(var we=ce[Symbol.iterator](),Se;!(he=(Se=we.next()).done)&&(de.push(Se.value),!(ue&&de.length===ue));he=!0);}catch(_e){me=!0,ge=_e}finally{try{!he&&we.return&&we.return()}finally{if(me)throw ge}}return de}return function(ce,ue){if(Array.isArray(ce))return ce;if(Symbol.iterator in Object(ce))return ae(ce,ue);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),J=function ae(ce,ue,de){ce===null&&(ce=Function.prototype);var he=Object.getOwnPropertyDescriptor(ce,ue);if(he===void 0){var me=Object.getPrototypeOf(ce);return me===null?void 0:ae(me,ue,de)}else{if("value"in he)return he.value;var ge=he.get;return ge===void 0?void 0:ge.call(de)}},X=function(){function ae(ce,ue){for(var de=0;de<ue.length;de++){var he=ue[de];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(ce,he.key,he)}}return function(ce,ue,de){return ue&&ae(ce.prototype,ue),de&&ae(ce,de),ce}}(),se=Y(0),ee=te(se),ne=Y(7),Q=te(ne);function te(ae){return ae&&ae.__esModule?ae:{default:ae}}function ie(ae,ce){if(!(ae instanceof ce))throw new TypeError("Cannot call a class as a function")}function le(ae,ce){if(!ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:ae}function oe(ae,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);ae.prototype=Object.create(ce&&ce.prototype,{constructor:{value:ae,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(ae,ce):ae.__proto__=ce)}var re=function(ae){oe(ce,ae),X(ce,null,[{key:"value",value:function(){}}]);function ce(ue,de){ie(this,ce);var he=le(this,(ce.__proto__||Object.getPrototypeOf(ce)).call(this,ue));return he.selection=de,he.textNode=document.createTextNode(ce.CONTENTS),he.domNode.appendChild(he.textNode),he._length=0,he}return X(ce,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(de,he){if(this._length!==0)return J(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"format",this).call(this,de,he);for(var me=this,ge=0;me!=null&&me.statics.scope!==ee.default.Scope.BLOCK_BLOT;)ge+=me.offset(me.parent),me=me.parent;me!=null&&(this._length=ce.CONTENTS.length,me.optimize(),me.formatAt(ge,ce.CONTENTS.length,de,he),this._length=0)}},{key:"index",value:function(de,he){return de===this.textNode?0:J(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"index",this).call(this,de,he)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){J(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var de=this.textNode,he=this.selection.getNativeRange(),me=void 0,ge=void 0,we=void 0;if(he!=null&&he.start.node===de&&he.end.node===de){var Se=[de,he.start.offset,he.end.offset];me=Se[0],ge=Se[1],we=Se[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==ce.CONTENTS){var _e=this.textNode.data.split(ce.CONTENTS).join("");this.next instanceof Q.default?(me=this.next.domNode,this.next.insertAt(0,_e),this.textNode.data=ce.CONTENTS):(this.textNode.data=_e,this.parent.insertBefore(ee.default.create(this.textNode),this),this.textNode=document.createTextNode(ce.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),ge!=null){var fe=[ge,we].map(function(ve){return Math.max(0,Math.min(me.data.length,ve-1))}),be=K(fe,2);return ge=be[0],we=be[1],{startNode:me,startOffset:ge,endNode:me,endOffset:we}}}}},{key:"update",value:function(de,he){var me=this;if(de.some(function(we){return we.type==="characterData"&&we.target===me.textNode})){var ge=this.restore();ge&&(he.range=ge)}}},{key:"value",value:function(){return""}}]),ce}(ee.default.Embed);re.blotName="cursor",re.className="ql-cursor",re.tagName="span",re.CONTENTS="\uFEFF",G.default=re},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(0),J=ee(K),X=Y(4),se=ee(X);function ee(le){return le&&le.__esModule?le:{default:le}}function ne(le,oe){if(!(le instanceof oe))throw new TypeError("Cannot call a class as a function")}function Q(le,oe){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:le}function te(le,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);le.prototype=Object.create(oe&&oe.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(le,oe):le.__proto__=oe)}var ie=function(le){te(oe,le);function oe(){return ne(this,oe),Q(this,(oe.__proto__||Object.getPrototypeOf(oe)).apply(this,arguments))}return oe}(J.default.Container);ie.allowedChildren=[se.default,X.BlockEmbed,ie],G.default=ie},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.ColorStyle=G.ColorClass=G.ColorAttributor=void 0;var K=function(){function re(ae,ce){for(var ue=0;ue<ce.length;ue++){var de=ce[ue];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ae,de.key,de)}}return function(ae,ce,ue){return ce&&re(ae.prototype,ce),ue&&re(ae,ue),ae}}(),J=function re(ae,ce,ue){ae===null&&(ae=Function.prototype);var de=Object.getOwnPropertyDescriptor(ae,ce);if(de===void 0){var he=Object.getPrototypeOf(ae);return he===null?void 0:re(he,ce,ue)}else{if("value"in de)return de.value;var me=de.get;return me===void 0?void 0:me.call(ue)}},X=Y(0),se=ee(X);function ee(re){return re&&re.__esModule?re:{default:re}}function ne(re,ae){if(!(re instanceof ae))throw new TypeError("Cannot call a class as a function")}function Q(re,ae){if(!re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae&&(typeof ae=="object"||typeof ae=="function")?ae:re}function te(re,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ae);re.prototype=Object.create(ae&&ae.prototype,{constructor:{value:re,enumerable:!1,writable:!0,configurable:!0}}),ae&&(Object.setPrototypeOf?Object.setPrototypeOf(re,ae):re.__proto__=ae)}var ie=function(re){te(ae,re);function ae(){return ne(this,ae),Q(this,(ae.__proto__||Object.getPrototypeOf(ae)).apply(this,arguments))}return K(ae,[{key:"value",value:function(ue){var de=J(ae.prototype.__proto__||Object.getPrototypeOf(ae.prototype),"value",this).call(this,ue);return de.startsWith("rgb(")?(de=de.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+de.split(",").map(function(he){return("00"+parseInt(he).toString(16)).slice(-2)}).join("")):de}}]),ae}(se.default.Attributor.Style),le=new se.default.Attributor.Class("color","ql-color",{scope:se.default.Scope.INLINE}),oe=new ie("color","color",{scope:se.default.Scope.INLINE});G.ColorAttributor=ie,G.ColorClass=le,G.ColorStyle=oe},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.sanitize=G.default=void 0;var K=function(){function oe(re,ae){for(var ce=0;ce<ae.length;ce++){var ue=ae[ce];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(re,ue.key,ue)}}return function(re,ae,ce){return ae&&oe(re.prototype,ae),ce&&oe(re,ce),re}}(),J=function oe(re,ae,ce){re===null&&(re=Function.prototype);var ue=Object.getOwnPropertyDescriptor(re,ae);if(ue===void 0){var de=Object.getPrototypeOf(re);return de===null?void 0:oe(de,ae,ce)}else{if("value"in ue)return ue.value;var he=ue.get;return he===void 0?void 0:he.call(ce)}},X=Y(6),se=ee(X);function ee(oe){return oe&&oe.__esModule?oe:{default:oe}}function ne(oe,re){if(!(oe instanceof re))throw new TypeError("Cannot call a class as a function")}function Q(oe,re){if(!oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re&&(typeof re=="object"||typeof re=="function")?re:oe}function te(oe,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof re);oe.prototype=Object.create(re&&re.prototype,{constructor:{value:oe,enumerable:!1,writable:!0,configurable:!0}}),re&&(Object.setPrototypeOf?Object.setPrototypeOf(oe,re):oe.__proto__=re)}var ie=function(oe){te(re,oe);function re(){return ne(this,re),Q(this,(re.__proto__||Object.getPrototypeOf(re)).apply(this,arguments))}return K(re,[{key:"format",value:function(ce,ue){if(ce!==this.statics.blotName||!ue)return J(re.prototype.__proto__||Object.getPrototypeOf(re.prototype),"format",this).call(this,ce,ue);ue=this.constructor.sanitize(ue),this.domNode.setAttribute("href",ue)}}],[{key:"create",value:function(ce){var ue=J(re.__proto__||Object.getPrototypeOf(re),"create",this).call(this,ce);return ce=this.sanitize(ce),ue.setAttribute("href",ce),ue.setAttribute("target","_blank"),ue}},{key:"formats",value:function(ce){return ce.getAttribute("href")}},{key:"sanitize",value:function(ce){return le(ce,this.PROTOCOL_WHITELIST)?ce:this.SANITIZED_URL}}]),re}(se.default);ie.blotName="link",ie.tagName="A",ie.SANITIZED_URL="about:blank",ie.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function le(oe,re){var ae=document.createElement("a");ae.href=oe;var ce=ae.href.slice(0,ae.href.indexOf(":"));return re.indexOf(ce)>-1}G.default=ie,G.sanitize=le},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(re){return typeof re}:function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re},J=function(){function re(ae,ce){for(var ue=0;ue<ce.length;ue++){var de=ce[ue];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ae,de.key,de)}}return function(ae,ce,ue){return ce&&re(ae.prototype,ce),ue&&re(ae,ue),ae}}(),X=Y(23),se=Q(X),ee=Y(108),ne=Q(ee);function Q(re){return re&&re.__esModule?re:{default:re}}function te(re,ae){if(!(re instanceof ae))throw new TypeError("Cannot call a class as a function")}var ie=0;function le(re,ae){re.setAttribute(ae,re.getAttribute(ae)!=="true")}var oe=function(){function re(ae){var ce=this;te(this,re),this.select=ae,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(){ce.togglePicker()}),this.label.addEventListener("keydown",function(ue){switch(ue.keyCode){case se.default.keys.ENTER:ce.togglePicker();break;case se.default.keys.ESCAPE:ce.escape(),ue.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return J(re,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),le(this.label,"aria-expanded"),le(this.options,"aria-hidden")}},{key:"buildItem",value:function(ce){var ue=this,de=document.createElement("span");return de.tabIndex="0",de.setAttribute("role","button"),de.classList.add("ql-picker-item"),ce.hasAttribute("value")&&de.setAttribute("data-value",ce.getAttribute("value")),ce.textContent&&de.setAttribute("data-label",ce.textContent),de.addEventListener("click",function(){ue.selectItem(de,!0)}),de.addEventListener("keydown",function(he){switch(he.keyCode){case se.default.keys.ENTER:ue.selectItem(de,!0),he.preventDefault();break;case se.default.keys.ESCAPE:ue.escape(),he.preventDefault();break}}),de}},{key:"buildLabel",value:function(){var ce=document.createElement("span");return ce.classList.add("ql-picker-label"),ce.innerHTML=ne.default,ce.tabIndex="0",ce.setAttribute("role","button"),ce.setAttribute("aria-expanded","false"),this.container.appendChild(ce),ce}},{key:"buildOptions",value:function(){var ce=this,ue=document.createElement("span");ue.classList.add("ql-picker-options"),ue.setAttribute("aria-hidden","true"),ue.tabIndex="-1",ue.id="ql-picker-options-"+ie,ie+=1,this.label.setAttribute("aria-controls",ue.id),this.options=ue,[].slice.call(this.select.options).forEach(function(de){var he=ce.buildItem(de);ue.appendChild(he),de.selected===!0&&ce.selectItem(he)}),this.container.appendChild(ue)}},{key:"buildPicker",value:function(){var ce=this;[].slice.call(this.select.attributes).forEach(function(ue){ce.container.setAttribute(ue.name,ue.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var ce=this;this.close(),setTimeout(function(){return ce.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(ce){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,de=this.container.querySelector(".ql-selected");if(ce!==de&&(de!=null&&de.classList.remove("ql-selected"),ce!=null&&(ce.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(ce.parentNode.children,ce),ce.hasAttribute("data-value")?this.label.setAttribute("data-value",ce.getAttribute("data-value")):this.label.removeAttribute("data-value"),ce.hasAttribute("data-label")?this.label.setAttribute("data-label",ce.getAttribute("data-label")):this.label.removeAttribute("data-label"),ue))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":K(Event))==="object"){var he=document.createEvent("Event");he.initEvent("change",!0,!0),this.select.dispatchEvent(he)}this.close()}}},{key:"update",value:function(){var ce=void 0;if(this.select.selectedIndex>-1){var ue=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];ce=this.select.options[this.select.selectedIndex],this.selectItem(ue)}else this.selectItem(null);var de=ce!=null&&ce!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",de)}}]),re}();G.default=oe},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(0),J=Te(K),X=Y(5),se=Te(X),ee=Y(4),ne=Te(ee),Q=Y(16),te=Te(Q),ie=Y(25),le=Te(ie),oe=Y(24),re=Te(oe),ae=Y(36),ce=Te(ae),ue=Y(6),de=Te(ue),he=Y(22),me=Te(he),ge=Y(7),we=Te(ge),Se=Y(56),_e=Te(Se),fe=Y(43),be=Te(fe),ve=Y(23),$e=Te(ve);function Te(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}se.default.register({"blots/block":ne.default,"blots/block/embed":ee.BlockEmbed,"blots/break":te.default,"blots/container":le.default,"blots/cursor":re.default,"blots/embed":ce.default,"blots/inline":de.default,"blots/scroll":me.default,"blots/text":we.default,"modules/clipboard":_e.default,"modules/history":be.default,"modules/keyboard":$e.default}),J.default.register(ne.default,te.default,re.default,de.default,me.default,we.default),G.default=se.default},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(1),J=function(){function X(se){this.domNode=se,this.domNode[K.DATA_KEY]={blot:this}}return Object.defineProperty(X.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),X.create=function(se){if(this.tagName==null)throw new K.ParchmentError("Blot definition missing tagName");var ee;return Array.isArray(this.tagName)?(typeof se=="string"&&(se=se.toUpperCase(),parseInt(se).toString()===se&&(se=parseInt(se))),typeof se=="number"?ee=document.createElement(this.tagName[se-1]):this.tagName.indexOf(se)>-1?ee=document.createElement(se):ee=document.createElement(this.tagName[0])):ee=document.createElement(this.tagName),this.className&&ee.classList.add(this.className),ee},X.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},X.prototype.clone=function(){var se=this.domNode.cloneNode(!1);return K.create(se)},X.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[K.DATA_KEY]},X.prototype.deleteAt=function(se,ee){var ne=this.isolate(se,ee);ne.remove()},X.prototype.formatAt=function(se,ee,ne,Q){var te=this.isolate(se,ee);if(K.query(ne,K.Scope.BLOT)!=null&&Q)te.wrap(ne,Q);else if(K.query(ne,K.Scope.ATTRIBUTE)!=null){var ie=K.create(this.statics.scope);te.wrap(ie),ie.format(ne,Q)}},X.prototype.insertAt=function(se,ee,ne){var Q=ne==null?K.create("text",ee):K.create(ee,ne),te=this.split(se);this.parent.insertBefore(Q,te)},X.prototype.insertInto=function(se,ee){ee===void 0&&(ee=null),this.parent!=null&&this.parent.children.remove(this);var ne=null;se.children.insertBefore(this,ee),ee!=null&&(ne=ee.domNode),(this.domNode.parentNode!=se.domNode||this.domNode.nextSibling!=ne)&&se.domNode.insertBefore(this.domNode,ne),this.parent=se,this.attach()},X.prototype.isolate=function(se,ee){var ne=this.split(se);return ne.split(ee),ne},X.prototype.length=function(){return 1},X.prototype.offset=function(se){return se===void 0&&(se=this.parent),this.parent==null||this==se?0:this.parent.children.offset(this)+this.parent.offset(se)},X.prototype.optimize=function(se){this.domNode[K.DATA_KEY]!=null&&delete this.domNode[K.DATA_KEY].mutations},X.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},X.prototype.replace=function(se){se.parent!=null&&(se.parent.insertBefore(this,se.next),se.remove())},X.prototype.replaceWith=function(se,ee){var ne=typeof se=="string"?K.create(se,ee):se;return ne.replace(this),ne},X.prototype.split=function(se,ee){return se===0?this:this.next},X.prototype.update=function(se,ee){},X.prototype.wrap=function(se,ee){var ne=typeof se=="string"?K.create(se,ee):se;return this.parent!=null&&this.parent.insertBefore(ne,this.next),ne.appendChild(this),ne},X.blotName="abstract",X}();G.default=J},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(12),J=Y(32),X=Y(33),se=Y(1),ee=function(){function ne(Q){this.attributes={},this.domNode=Q,this.build()}return ne.prototype.attribute=function(Q,te){te?Q.add(this.domNode,te)&&(Q.value(this.domNode)!=null?this.attributes[Q.attrName]=Q:delete this.attributes[Q.attrName]):(Q.remove(this.domNode),delete this.attributes[Q.attrName])},ne.prototype.build=function(){var Q=this;this.attributes={};var te=K.default.keys(this.domNode),ie=J.default.keys(this.domNode),le=X.default.keys(this.domNode);te.concat(ie).concat(le).forEach(function(oe){var re=se.query(oe,se.Scope.ATTRIBUTE);re instanceof K.default&&(Q.attributes[re.attrName]=re)})},ne.prototype.copy=function(Q){var te=this;Object.keys(this.attributes).forEach(function(ie){var le=te.attributes[ie].value(te.domNode);Q.format(ie,le)})},ne.prototype.move=function(Q){var te=this;this.copy(Q),Object.keys(this.attributes).forEach(function(ie){te.attributes[ie].remove(te.domNode)}),this.attributes={}},ne.prototype.values=function(){var Q=this;return Object.keys(this.attributes).reduce(function(te,ie){return te[ie]=Q.attributes[ie].value(Q.domNode),te},{})},ne}();G.default=ee},function(U,G,Y){var K=this&&this.__extends||function(){var ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,Q){ne.__proto__=Q}||function(ne,Q){for(var te in Q)Q.hasOwnProperty(te)&&(ne[te]=Q[te])};return function(ne,Q){ee(ne,Q);function te(){this.constructor=ne}ne.prototype=Q===null?Object.create(Q):(te.prototype=Q.prototype,new te)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(12);function X(ee,ne){var Q=ee.getAttribute("class")||"";return Q.split(/\s+/).filter(function(te){return te.indexOf(ne+"-")===0})}var se=function(ee){K(ne,ee);function ne(){return ee!==null&&ee.apply(this,arguments)||this}return ne.keys=function(Q){return(Q.getAttribute("class")||"").split(/\s+/).map(function(te){return te.split("-").slice(0,-1).join("-")})},ne.prototype.add=function(Q,te){return this.canAdd(Q,te)?(this.remove(Q),Q.classList.add(this.keyName+"-"+te),!0):!1},ne.prototype.remove=function(Q){var te=X(Q,this.keyName);te.forEach(function(ie){Q.classList.remove(ie)}),Q.classList.length===0&&Q.removeAttribute("class")},ne.prototype.value=function(Q){var te=X(Q,this.keyName)[0]||"",ie=te.slice(this.keyName.length+1);return this.canAdd(Q,ie)?ie:""},ne}(J.default);G.default=se},function(U,G,Y){var K=this&&this.__extends||function(){var ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,Q){ne.__proto__=Q}||function(ne,Q){for(var te in Q)Q.hasOwnProperty(te)&&(ne[te]=Q[te])};return function(ne,Q){ee(ne,Q);function te(){this.constructor=ne}ne.prototype=Q===null?Object.create(Q):(te.prototype=Q.prototype,new te)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(12);function X(ee){var ne=ee.split("-"),Q=ne.slice(1).map(function(te){return te[0].toUpperCase()+te.slice(1)}).join("");return ne[0]+Q}var se=function(ee){K(ne,ee);function ne(){return ee!==null&&ee.apply(this,arguments)||this}return ne.keys=function(Q){return(Q.getAttribute("style")||"").split(";").map(function(te){var ie=te.split(":");return ie[0].trim()})},ne.prototype.add=function(Q,te){return this.canAdd(Q,te)?(Q.style[X(this.keyName)]=te,!0):!1},ne.prototype.remove=function(Q){Q.style[X(this.keyName)]="",Q.getAttribute("style")||Q.removeAttribute("style")},ne.prototype.value=function(Q){var te=Q.style[X(this.keyName)];return this.canAdd(Q,te)?te:""},ne}(J.default);G.default=se},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.getRange=ge,G.internalGetShadowSelection=Se;var K=G.SHADOW_SELECTIONCHANGE="-shadow-selectionchange",J="attachShadow"in Element.prototype&&"getRootNode"in Element.prototype,X=!!(J&&document.createElement("div").attachShadow({mode:"open"}).getSelection),se=window.ShadyDOM&&window.ShadyDOM.inUse,ee=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ne=!J||se||!X&&!ee,Q=[Node.ELEMENT_NODE,Node.TEXT_NODE,Node.DOCUMENT_FRAGMENT_NODE];function te(_e){return Q.includes(_e.nodeType)}function ie(_e,fe,be){var ve=fe.childNodes||fe.children;if(!ve)return fe;for(var $e=0;$e<ve.length;++$e){var Te=be?$e:ve.length-1-$e,Ce=ve[Te];if(te(Ce)&&_e.containsNode(Ce,!0))return _e.containsNode(Ce,!1)?Ce:ie(_e,Ce,be)}return fe}var le=function(){if(X||ne)return document.addEventListener("selectionchange",function(){document.dispatchEvent(new CustomEvent(K))}),function(){};var _e=!1,fe=[];return document.addEventListener("selectionchange",function(be){_e||(document.dispatchEvent(new CustomEvent(K)),_e=!0,window.setTimeout(function(){_e=!1},2),fe.forEach(function(ve){return ve(be)}))}),function(be){return fe.push(be)}}(),oe=!1,re=null;le(function(){var _e=window.getSelection();_e.type==="Caret"?oe=!0:oe&&!re&&(re=Promise.resolve(!0).then(function(){oe=!1,re=null}))});function ae(_e,fe,be){for(var ve=fe;(fe=ue(fe,be))&&fe.contains(ve););return fe?fe instanceof Element&&_e.containsNode(fe,!0):!1}function ce(_e,fe,be){if(_e.type==="Range"){var ve=function(){return _e.toString().length},$e=ve();if($e===1&&oe&&fe===be){_e.extend(fe,0),_e.collapseToEnd();return}var Te=void 0;if(_e.modify("extend","forward","character"),Te=ve(),Te>$e||ae(_e,be,!0))return _e.modify("extend","backward","character"),!0;if(Te<$e||!_e.containsNode(fe))return _e.modify("extend","backward","character"),!1;if(_e.modify("extend","backward","character"),Te=ve(),Te>$e||ae(_e,fe,!1))return _e.modify("extend","forward","character"),!1;if(Te<$e||!_e.containsNode(be))return _e.modify("extend","forward","character"),!0}}function ue(_e,fe){if(!fe)return _e.previousSibling||_e.parentNode||null;for(;_e;){if(_e.nextSibling)return _e.nextSibling;_e=_e.parentNode}return null}function de(_e){return _e.nodeType!==Node.TEXT_NODE?0:/^\s*/.exec(_e.textContent)[0].length}function he(_e){if(_e.nodeType!==Node.TEXT_NODE)return 0;var fe=/\s*$/.exec(_e.textContent)[0].length;return fe?fe-1:0}var me=new Map;function ge(_e){if(X||ne){var fe=(ne?document:_e).getSelection();return fe.rangeCount?fe.getRangeAt(0):null}var be=me.get(_e);if(be)return be;var ve=Se(_e);return me.set(_e,ve.range),window.setTimeout(function(){me.delete(_e)},0),ve.range}var we=document.createTextNode("");function Se(_e){var fe=document.createRange(),be=window.getSelection();if(!be.containsNode(_e.host,!0))return{range:null,mode:"none"};_e.insertBefore(we,_e.childNodes[0]);var ve=be.containsNode(we);if(we.remove(),ve)return{range:null,mode:"outside-before"};_e.appendChild(we);var $e=be.containsNode(we);if(we.remove(),$e)return{range:null,mode:"outside-after"};var Te=function(){return be.toString().length};if(!(be.type==="Caret"||be.type==="Range"))throw new TypeError("unexpected type: "+be.type);var Ce=ie(be,_e,!0),Ie=void 0,Ge=void 0;if(be.type==="Range"&&(Ie=ie(be,_e,!1),Ge=ce(be,Ce,Ie)),be.type==="Caret"){be.extend(Ce,0);var De=Te();return be.collapseToEnd(),fe.setStart(Ce,De),fe.setEnd(Ce,De),{range:fe,mode:"caret"}}else if(Ge===void 0){if(be.type!=="Range")throw new TypeError("unexpected type: "+be.type);return fe.setStart(Ce,0),fe.setEnd(Ie,Ie.length),{range:fe,mode:"all"}}var Oe=Te(),ye=void 0,ke=void 0,qe=Ie.length-he(Ie);return Ge?(be.extend(Ce,0),ye=Te()+de(Ce),be.extend(Ie,qe),ke=qe-(Te()-Oe),be.extend(Ie,ke)):(be.extend(Ie,qe),ke=qe-Te(),be.extend(Ce,0),ye=Te()-Oe+de(Ce),be.extend(Ce,ye)),fe.setStart(Ce,ye),fe.setEnd(Ie,ke),{mode:Ge?"right":"left",range:fe}}},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function se(ee,ne){for(var Q=0;Q<ne.length;Q++){var te=ne[Q];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(ee,te.key,te)}}return function(ee,ne,Q){return ne&&se(ee.prototype,ne),Q&&se(ee,Q),ee}}();function J(se,ee){if(!(se instanceof ee))throw new TypeError("Cannot call a class as a function")}var X=function(){function se(ee,ne){J(this,se),this.quill=ee,this.options=ne,this.modules={}}return K(se,[{key:"init",value:function(){var ne=this;Object.keys(this.options.modules).forEach(function(Q){ne.modules[Q]==null&&ne.addModule(Q)})}},{key:"addModule",value:function(ne){var Q=this.quill.constructor.import("modules/"+ne);return this.modules[ne]=new Q(this.quill,this.options.modules[ne]||{}),this.modules[ne]}}]),se}();X.DEFAULTS={modules:{}},X.themes={default:X},G.default=X},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function ae(ce,ue){for(var de=0;de<ue.length;de++){var he=ue[de];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(ce,he.key,he)}}return function(ce,ue,de){return ue&&ae(ce.prototype,ue),de&&ae(ce,de),ce}}(),J=function ae(ce,ue,de){ce===null&&(ce=Function.prototype);var he=Object.getOwnPropertyDescriptor(ce,ue);if(he===void 0){var me=Object.getPrototypeOf(ce);return me===null?void 0:ae(me,ue,de)}else{if("value"in he)return he.value;var ge=he.get;return ge===void 0?void 0:ge.call(de)}},X=Y(0),se=Q(X),ee=Y(7),ne=Q(ee);function Q(ae){return ae&&ae.__esModule?ae:{default:ae}}function te(ae,ce){if(!(ae instanceof ce))throw new TypeError("Cannot call a class as a function")}function ie(ae,ce){if(!ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:ae}function le(ae,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);ae.prototype=Object.create(ce&&ce.prototype,{constructor:{value:ae,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(ae,ce):ae.__proto__=ce)}var oe="\uFEFF",re=function(ae){le(ce,ae);function ce(ue){te(this,ce);var de=ie(this,(ce.__proto__||Object.getPrototypeOf(ce)).call(this,ue));return de.contentNode=document.createElement("span"),de.contentNode.setAttribute("contenteditable",!1),[].slice.call(de.domNode.childNodes).forEach(function(he){de.contentNode.appendChild(he)}),de.leftGuard=document.createTextNode(oe),de.rightGuard=document.createTextNode(oe),de.domNode.appendChild(de.leftGuard),de.domNode.appendChild(de.contentNode),de.domNode.appendChild(de.rightGuard),de}return K(ce,[{key:"index",value:function(de,he){return de===this.leftGuard?0:de===this.rightGuard?1:J(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"index",this).call(this,de,he)}},{key:"restore",value:function(de){var he=void 0,me=void 0,ge=de.data.split(oe).join("");if(de===this.leftGuard)if(this.prev instanceof ne.default){var we=this.prev.length();this.prev.insertAt(we,ge),he={startNode:this.prev.domNode,startOffset:we+ge.length}}else me=document.createTextNode(ge),this.parent.insertBefore(se.default.create(me),this),he={startNode:me,startOffset:ge.length};else de===this.rightGuard&&(this.next instanceof ne.default?(this.next.insertAt(0,ge),he={startNode:this.next.domNode,startOffset:ge.length}):(me=document.createTextNode(ge),this.parent.insertBefore(se.default.create(me),this.next),he={startNode:me,startOffset:ge.length}));return de.data=oe,he}},{key:"update",value:function(de,he){var me=this;de.forEach(function(ge){if(ge.type==="characterData"&&(ge.target===me.leftGuard||ge.target===me.rightGuard)){var we=me.restore(ge.target);we&&(he.range=we)}})}}]),ce}(se.default.Embed);G.default=re},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.AlignStyle=G.AlignClass=G.AlignAttribute=void 0;var K=Y(0),J=X(K);function X(te){return te&&te.__esModule?te:{default:te}}var se={scope:J.default.Scope.BLOCK,whitelist:["right","center","justify"]},ee=new J.default.Attributor.Attribute("align","align",se),ne=new J.default.Attributor.Class("align","ql-align",se),Q=new J.default.Attributor.Style("align","text-align",se);G.AlignAttribute=ee,G.AlignClass=ne,G.AlignStyle=Q},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.BackgroundStyle=G.BackgroundClass=void 0;var K=Y(0),J=se(K),X=Y(26);function se(Q){return Q&&Q.__esModule?Q:{default:Q}}var ee=new J.default.Attributor.Class("background","ql-bg",{scope:J.default.Scope.INLINE}),ne=new X.ColorAttributor("background","background-color",{scope:J.default.Scope.INLINE});G.BackgroundClass=ee,G.BackgroundStyle=ne},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.DirectionStyle=G.DirectionClass=G.DirectionAttribute=void 0;var K=Y(0),J=X(K);function X(te){return te&&te.__esModule?te:{default:te}}var se={scope:J.default.Scope.BLOCK,whitelist:["rtl"]},ee=new J.default.Attributor.Attribute("direction","dir",se),ne=new J.default.Attributor.Class("direction","ql-direction",se),Q=new J.default.Attributor.Style("direction","direction",se);G.DirectionAttribute=ee,G.DirectionClass=ne,G.DirectionStyle=Q},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.FontClass=G.FontStyle=void 0;var K=function(){function ae(ce,ue){for(var de=0;de<ue.length;de++){var he=ue[de];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(ce,he.key,he)}}return function(ce,ue,de){return ue&&ae(ce.prototype,ue),de&&ae(ce,de),ce}}(),J=function ae(ce,ue,de){ce===null&&(ce=Function.prototype);var he=Object.getOwnPropertyDescriptor(ce,ue);if(he===void 0){var me=Object.getPrototypeOf(ce);return me===null?void 0:ae(me,ue,de)}else{if("value"in he)return he.value;var ge=he.get;return ge===void 0?void 0:ge.call(de)}},X=Y(0),se=ee(X);function ee(ae){return ae&&ae.__esModule?ae:{default:ae}}function ne(ae,ce){if(!(ae instanceof ce))throw new TypeError("Cannot call a class as a function")}function Q(ae,ce){if(!ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:ae}function te(ae,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);ae.prototype=Object.create(ce&&ce.prototype,{constructor:{value:ae,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(ae,ce):ae.__proto__=ce)}var ie={scope:se.default.Scope.INLINE,whitelist:["serif","monospace"]},le=new se.default.Attributor.Class("font","ql-font",ie),oe=function(ae){te(ce,ae);function ce(){return ne(this,ce),Q(this,(ce.__proto__||Object.getPrototypeOf(ce)).apply(this,arguments))}return K(ce,[{key:"value",value:function(de){return J(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"value",this).call(this,de).replace(/["']/g,"")}}]),ce}(se.default.Attributor.Style),re=new oe("font","font-family",ie);G.FontStyle=re,G.FontClass=le},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.SizeStyle=G.SizeClass=void 0;var K=Y(0),J=X(K);function X(ne){return ne&&ne.__esModule?ne:{default:ne}}var se=new J.default.Attributor.Class("size","ql-size",{scope:J.default.Scope.INLINE,whitelist:["small","large","huge"]}),ee=new J.default.Attributor.Style("size","font-size",{scope:J.default.Scope.INLINE,whitelist:["10px","18px","32px"]});G.SizeClass=se,G.SizeStyle=ee},function(U,G,Y){U.exports={align:{"":Y(77),center:Y(78),right:Y(79),justify:Y(80)},background:Y(81),blockquote:Y(82),bold:Y(83),clean:Y(84),code:Y(59),"code-block":Y(59),color:Y(85),direction:{"":Y(86),rtl:Y(87)},float:{center:Y(88),full:Y(89),left:Y(90),right:Y(91)},formula:Y(92),header:{1:Y(93),2:Y(94)},italic:Y(95),image:Y(96),indent:{"+1":Y(97),"-1":Y(98)},link:Y(99),list:{ordered:Y(100),bullet:Y(101),check:Y(102)},script:{sub:Y(103),super:Y(104)},strike:Y(105),underline:Y(106),video:Y(107)}},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.getLastChangeIndex=G.default=void 0;var K=function(){function ue(de,he){for(var me=0;me<he.length;me++){var ge=he[me];ge.enumerable=ge.enumerable||!1,ge.configurable=!0,"value"in ge&&(ge.writable=!0),Object.defineProperty(de,ge.key,ge)}}return function(de,he,me){return he&&ue(de.prototype,he),me&&ue(de,me),de}}(),J=Y(0),X=te(J),se=Y(5),ee=te(se),ne=Y(9),Q=te(ne);function te(ue){return ue&&ue.__esModule?ue:{default:ue}}function ie(ue,de){if(!(ue instanceof de))throw new TypeError("Cannot call a class as a function")}function le(ue,de){if(!ue)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de&&(typeof de=="object"||typeof de=="function")?de:ue}function oe(ue,de){if(typeof de!="function"&&de!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof de);ue.prototype=Object.create(de&&de.prototype,{constructor:{value:ue,enumerable:!1,writable:!0,configurable:!0}}),de&&(Object.setPrototypeOf?Object.setPrototypeOf(ue,de):ue.__proto__=de)}var re=function(ue){oe(de,ue);function de(he,me){ie(this,de);var ge=le(this,(de.__proto__||Object.getPrototypeOf(de)).call(this,he,me));return ge.lastRecorded=0,ge.ignoreChange=!1,ge.clear(),ge.quill.on(ee.default.events.EDITOR_CHANGE,function(we,Se,_e,fe){we!==ee.default.events.TEXT_CHANGE||ge.ignoreChange||(!ge.options.userOnly||fe===ee.default.sources.USER?ge.record(Se,_e):ge.transform(Se))}),ge.quill.keyboard.addBinding({key:"Z",shortKey:!0},ge.undo.bind(ge)),ge.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},ge.redo.bind(ge)),/Win/i.test(navigator.platform)&&ge.quill.keyboard.addBinding({key:"Y",shortKey:!0},ge.redo.bind(ge)),ge}return K(de,[{key:"change",value:function(me,ge){if(this.stack[me].length!==0){var we=this.stack[me].pop();this.stack[ge].push(we),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(we[me],ee.default.sources.USER),this.ignoreChange=!1;var Se=ce(we[me]);this.quill.setSelection(Se)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(me,ge){if(me.ops.length!==0){this.stack.redo=[];var we=this.quill.getContents().diff(ge),Se=Date.now();if(this.lastRecorded+this.options.delay>Se&&this.stack.undo.length>0){var _e=this.stack.undo.pop();we=we.compose(_e.undo),me=_e.redo.compose(me)}else this.lastRecorded=Se;this.stack.undo.push({redo:me,undo:we}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(me){this.stack.undo.forEach(function(ge){ge.undo=me.transform(ge.undo,!0),ge.redo=me.transform(ge.redo,!0)}),this.stack.redo.forEach(function(ge){ge.undo=me.transform(ge.undo,!0),ge.redo=me.transform(ge.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),de}(Q.default);re.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function ae(ue){var de=ue.ops[ue.ops.length-1];return de==null?!1:de.insert!=null?typeof de.insert=="string"&&de.insert.endsWith(`
8663
+ `):de.attributes!=null?Object.keys(de.attributes).some(function(he){return X.default.query(he,X.default.Scope.BLOCK)!=null}):!1}function ce(ue){var de=ue.reduce(function(me,ge){return me+=ge.delete||0,me},0),he=ue.length()-de;return ae(ue)&&(he-=1),he}G.default=re,G.getLastChangeIndex=ce},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.BaseTooltip=void 0;var K=function(){function ke(qe,Le){for(var Ne=0;Ne<Le.length;Ne++){var Ee=Le[Ne];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(qe,Ee.key,Ee)}}return function(qe,Le,Ne){return Le&&ke(qe.prototype,Le),Ne&&ke(qe,Ne),qe}}(),J=function ke(qe,Le,Ne){qe===null&&(qe=Function.prototype);var Ee=Object.getOwnPropertyDescriptor(qe,Le);if(Ee===void 0){var Re=Object.getPrototypeOf(qe);return Re===null?void 0:ke(Re,Le,Ne)}else{if("value"in Ee)return Ee.value;var Be=Ee.get;return Be===void 0?void 0:Be.call(Ne)}},X=Y(3),se=Se(X),ee=Y(2),ne=Se(ee),Q=Y(8),te=Se(Q),ie=Y(23),le=Se(ie),oe=Y(35),re=Se(oe),ae=Y(60),ce=Se(ae),ue=Y(61),de=Se(ue),he=Y(28),me=Se(he),ge=Y(62),we=Se(ge);function Se(ke){return ke&&ke.__esModule?ke:{default:ke}}function _e(ke,qe){if(!(ke instanceof qe))throw new TypeError("Cannot call a class as a function")}function fe(ke,qe){if(!ke)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return qe&&(typeof qe=="object"||typeof qe=="function")?qe:ke}function be(ke,qe){if(typeof qe!="function"&&qe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof qe);ke.prototype=Object.create(qe&&qe.prototype,{constructor:{value:ke,enumerable:!1,writable:!0,configurable:!0}}),qe&&(Object.setPrototypeOf?Object.setPrototypeOf(ke,qe):ke.__proto__=qe)}var ve=[!1,"center","right","justify"],$e=["#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"],Te=[!1,"serif","monospace"],Ce=["1","2","3",!1],Ie=["petita",!1,"gran","enorme"],Ge=function(ke){be(qe,ke);function qe(Le,Ne){_e(this,qe);var Ee=fe(this,(qe.__proto__||Object.getPrototypeOf(qe)).call(this,Le,Ne)),Re=function Be(Ue){if(!document.body.contains(Le.root))return document.body.removeEventListener("click",Be);Ee.tooltip!=null&&!Ee.tooltip.root.contains(Ue.target)&&document.activeElement!==Ee.tooltip.textbox&&!Ee.quill.hasFocus()&&Ee.tooltip.hide(),Ee.pickers!=null&&Ee.pickers.forEach(function(He){He.container.contains(Ue.target)||He.close()})};return Le.emitter.listenDOM("click",document.body,Re),Ee}return K(qe,[{key:"addModule",value:function(Ne){var Ee=J(qe.prototype.__proto__||Object.getPrototypeOf(qe.prototype),"addModule",this).call(this,Ne);return Ne==="toolbar"&&this.extendToolbar(Ee),Ee}},{key:"buildButtons",value:function(Ne,Ee){Ne.forEach(function(Re){var Be=Re.getAttribute("class")||"";Be.split(/\s+/).forEach(function(Ue){if(Ue.startsWith("ql-")&&(Ue=Ue.slice(3),Ee[Ue]!=null))if(Ue==="direction")Re.innerHTML=Ee[Ue][""]+Ee[Ue].rtl;else if(typeof Ee[Ue]=="string")Re.innerHTML=Ee[Ue];else{var He=Re.value||"";He!=null&&Ee[Ue][He]&&(Re.innerHTML=Ee[Ue][He])}})})}},{key:"buildPickers",value:function(Ne,Ee){var Re=this;this.pickers=Ne.map(function(Ue){if(Ue.classList.contains("ql-align"))return Ue.querySelector("option")==null&&ye(Ue,ve),new de.default(Ue,Ee.align);if(Ue.classList.contains("ql-background")||Ue.classList.contains("ql-color")){var He=Ue.classList.contains("ql-background")?"background":"color";return Ue.querySelector("option")==null&&ye(Ue,$e,He==="background"?"#ffffff":"#000000"),new ce.default(Ue,Ee[He])}else return Ue.querySelector("option")==null&&(Ue.classList.contains("ql-font")?ye(Ue,Te):Ue.classList.contains("ql-header")?ye(Ue,Ce):Ue.classList.contains("ql-size")&&ye(Ue,Ie)),new me.default(Ue)});var Be=function(){Re.pickers.forEach(function(He){He.update()})};this.quill.on(te.default.events.EDITOR_CHANGE,Be)}}]),qe}(re.default);Ge.DEFAULTS=(0,se.default)(!0,{},re.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var qe=this,Le=this.container.querySelector("input.ql-image[type=file]");Le==null&&(Le=document.createElement("input"),Le.setAttribute("type","file"),Le.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),Le.classList.add("ql-image"),Le.addEventListener("change",function(){if(Le.files!=null&&Le.files[0]!=null){var Ne=new FileReader;Ne.onload=function(Ee){var Re=qe.quill.getSelection(!0);qe.quill.updateContents(new ne.default().retain(Re.index).delete(Re.length).insert({image:Ee.target.result}),te.default.sources.USER),qe.quill.setSelection(Re.index+1,te.default.sources.SILENT),Le.value=""},Ne.readAsDataURL(Le.files[0])}}),this.container.appendChild(Le)),Le.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var De=function(ke){be(qe,ke);function qe(Le,Ne){_e(this,qe);var Ee=fe(this,(qe.__proto__||Object.getPrototypeOf(qe)).call(this,Le,Ne));return Ee.textbox=Ee.root.querySelector('input[type="text"]'),Ee.listen(),Ee}return K(qe,[{key:"listen",value:function(){var Ne=this;this.textbox.addEventListener("keydown",function(Ee){le.default.match(Ee,"enter")?(Ne.save(),Ee.preventDefault()):le.default.match(Ee,"escape")&&(Ne.cancel(),Ee.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),Ee!=null?this.textbox.value=Ee:Ne!==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-"+Ne)||""),this.root.setAttribute("data-mode",Ne)}},{key:"restoreFocus",value:function(){var Ne=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=Ne}},{key:"save",value:function(){var Ne=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var Ee=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",Ne,te.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",Ne,te.default.sources.USER)),this.quill.root.scrollTop=Ee;break}case"video":Ne=Oe(Ne);case"formula":{if(!Ne)break;var Re=this.quill.getSelection(!0);if(Re!=null){var Be=Re.index+Re.length;this.quill.insertEmbed(Be,this.root.getAttribute("data-mode"),Ne,te.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(Be+1," ",te.default.sources.USER),this.quill.setSelection(Be+2,te.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),qe}(we.default);function Oe(ke){var qe=ke.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||ke.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return qe?(qe[1]||"https")+"://www.youtube.com/embed/"+qe[2]+"?showinfo=0":(qe=ke.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(qe[1]||"https")+"://player.vimeo.com/video/"+qe[2]+"/":ke}function ye(ke,qe){var Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;qe.forEach(function(Ne){var Ee=document.createElement("option");Ne===Le?Ee.setAttribute("selected","selected"):Ee.setAttribute("value",Ne),ke.appendChild(Ee)})}G.BaseTooltip=De,G.default=Ge},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function J(){this.head=this.tail=null,this.length=0}return J.prototype.append=function(){for(var X=[],se=0;se<arguments.length;se++)X[se]=arguments[se];this.insertBefore(X[0],null),X.length>1&&this.append.apply(this,X.slice(1))},J.prototype.contains=function(X){for(var se,ee=this.iterator();se=ee();)if(se===X)return!0;return!1},J.prototype.insertBefore=function(X,se){X&&(X.next=se,se!=null?(X.prev=se.prev,se.prev!=null&&(se.prev.next=X),se.prev=X,se===this.head&&(this.head=X)):this.tail!=null?(this.tail.next=X,X.prev=this.tail,this.tail=X):(X.prev=null,this.head=this.tail=X),this.length+=1)},J.prototype.offset=function(X){for(var se=0,ee=this.head;ee!=null;){if(ee===X)return se;se+=ee.length(),ee=ee.next}return-1},J.prototype.remove=function(X){this.contains(X)&&(X.prev!=null&&(X.prev.next=X.next),X.next!=null&&(X.next.prev=X.prev),X===this.head&&(this.head=X.next),X===this.tail&&(this.tail=X.prev),this.length-=1)},J.prototype.iterator=function(X){return X===void 0&&(X=this.head),function(){var se=X;return X!=null&&(X=X.next),se}},J.prototype.find=function(X,se){se===void 0&&(se=!1);for(var ee,ne=this.iterator();ee=ne();){var Q=ee.length();if(X<Q||se&&X===Q&&(ee.next==null||ee.next.length()!==0))return[ee,X];X-=Q}return[null,0]},J.prototype.forEach=function(X){for(var se,ee=this.iterator();se=ee();)X(se)},J.prototype.forEachAt=function(X,se,ee){if(!(se<=0))for(var ne=this.find(X),Q=ne[0],te=ne[1],ie,le=X-te,oe=this.iterator(Q);(ie=oe())&&le<X+se;){var re=ie.length();X>le?ee(ie,X-le,Math.min(se,le+re-X)):ee(ie,0,Math.min(re,X+se-le)),le+=re}},J.prototype.map=function(X){return this.reduce(function(se,ee){return se.push(X(ee)),se},[])},J.prototype.reduce=function(X,se){for(var ee,ne=this.iterator();ee=ne();)se=X(se,ee);return se},J}();G.default=K},function(U,G,Y){var K=this&&this.__extends||function(){var Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,ie){te.__proto__=ie}||function(te,ie){for(var le in ie)ie.hasOwnProperty(le)&&(te[le]=ie[le])};return function(te,ie){Q(te,ie);function le(){this.constructor=te}te.prototype=ie===null?Object.create(ie):(le.prototype=ie.prototype,new le)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(17),X=Y(1),se={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},ee=100,ne=function(Q){K(te,Q);function te(ie){var le=Q.call(this,ie)||this;return le.scroll=le,le.observer=new MutationObserver(function(oe){le.update(oe)}),le.observer.observe(le.domNode,se),le.attach(),le}return te.prototype.detach=function(){Q.prototype.detach.call(this),this.observer.disconnect()},te.prototype.deleteAt=function(ie,le){this.update(),ie===0&&le===this.length()?this.children.forEach(function(oe){oe.remove()}):Q.prototype.deleteAt.call(this,ie,le)},te.prototype.formatAt=function(ie,le,oe,re){this.update(),Q.prototype.formatAt.call(this,ie,le,oe,re)},te.prototype.insertAt=function(ie,le,oe){this.update(),Q.prototype.insertAt.call(this,ie,le,oe)},te.prototype.optimize=function(ie,le){var oe=this;ie===void 0&&(ie=[]),le===void 0&&(le={}),Q.prototype.optimize.call(this,le);for(var re=[].slice.call(this.observer.takeRecords());re.length>0;)ie.push(re.pop());for(var ae=function(he,me){me===void 0&&(me=!0),!(he==null||he===oe)&&he.domNode.parentNode!=null&&(he.domNode[X.DATA_KEY].mutations==null&&(he.domNode[X.DATA_KEY].mutations=[]),me&&ae(he.parent))},ce=function(he){he.domNode[X.DATA_KEY]==null||he.domNode[X.DATA_KEY].mutations==null||(he instanceof J.default&&he.children.forEach(ce),he.optimize(le))},ue=ie,de=0;ue.length>0;de+=1){if(de>=ee)throw new Error("[Parchment] Maximum optimize iterations reached");for(ue.forEach(function(he){var me=X.find(he.target,!0);me!=null&&(me.domNode===he.target&&(he.type==="childList"?(ae(X.find(he.previousSibling,!1)),[].forEach.call(he.addedNodes,function(ge){var we=X.find(ge,!1);ae(we,!1),we instanceof J.default&&we.children.forEach(function(Se){ae(Se,!1)})})):he.type==="attributes"&&ae(me.prev)),ae(me))}),this.children.forEach(ce),ue=[].slice.call(this.observer.takeRecords()),re=ue.slice();re.length>0;)ie.push(re.pop())}},te.prototype.update=function(ie,le){var oe=this;le===void 0&&(le={}),ie=ie||this.observer.takeRecords(),ie.map(function(re){var ae=X.find(re.target,!0);return ae==null?null:ae.domNode[X.DATA_KEY].mutations==null?(ae.domNode[X.DATA_KEY].mutations=[re],ae):(ae.domNode[X.DATA_KEY].mutations.push(re),null)}).forEach(function(re){re==null||re===oe||re.domNode[X.DATA_KEY]==null||re.update(re.domNode[X.DATA_KEY].mutations||[],le)}),this.domNode[X.DATA_KEY].mutations!=null&&Q.prototype.update.call(this,this.domNode[X.DATA_KEY].mutations,le),this.optimize(ie,le)},te.blotName="scroll",te.defaultChild="block",te.scope=X.Scope.BLOCK_BLOT,te.tagName="DIV",te}(J.default);G.default=ne},function(U,G,Y){var K=this&&this.__extends||function(){var ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,te){Q.__proto__=te}||function(Q,te){for(var ie in te)te.hasOwnProperty(ie)&&(Q[ie]=te[ie])};return function(Q,te){ne(Q,te);function ie(){this.constructor=Q}Q.prototype=te===null?Object.create(te):(ie.prototype=te.prototype,new ie)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(18),X=Y(1);function se(ne,Q){if(Object.keys(ne).length!==Object.keys(Q).length)return!1;for(var te in ne)if(ne[te]!==Q[te])return!1;return!0}var ee=function(ne){K(Q,ne);function Q(){return ne!==null&&ne.apply(this,arguments)||this}return Q.formats=function(te){if(te.tagName!==Q.tagName)return ne.formats.call(this,te)},Q.prototype.format=function(te,ie){var le=this;te===this.statics.blotName&&!ie?(this.children.forEach(function(oe){oe instanceof J.default||(oe=oe.wrap(Q.blotName,!0)),le.attributes.copy(oe)}),this.unwrap()):ne.prototype.format.call(this,te,ie)},Q.prototype.formatAt=function(te,ie,le,oe){if(this.formats()[le]!=null||X.query(le,X.Scope.ATTRIBUTE)){var re=this.isolate(te,ie);re.format(le,oe)}else ne.prototype.formatAt.call(this,te,ie,le,oe)},Q.prototype.optimize=function(te){ne.prototype.optimize.call(this,te);var ie=this.formats();if(Object.keys(ie).length===0)return this.unwrap();var le=this.next;le instanceof Q&&le.prev===this&&se(ie,le.formats())&&(le.moveChildren(this),le.remove())},Q.blotName="inline",Q.scope=X.Scope.INLINE_BLOT,Q.tagName="SPAN",Q}(J.default);G.default=ee},function(U,G,Y){var K=this&&this.__extends||function(){var ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,Q){ne.__proto__=Q}||function(ne,Q){for(var te in Q)Q.hasOwnProperty(te)&&(ne[te]=Q[te])};return function(ne,Q){ee(ne,Q);function te(){this.constructor=ne}ne.prototype=Q===null?Object.create(Q):(te.prototype=Q.prototype,new te)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(18),X=Y(1),se=function(ee){K(ne,ee);function ne(){return ee!==null&&ee.apply(this,arguments)||this}return ne.formats=function(Q){var te=X.query(ne.blotName).tagName;if(Q.tagName!==te)return ee.formats.call(this,Q)},ne.prototype.format=function(Q,te){X.query(Q,X.Scope.BLOCK)!=null&&(Q===this.statics.blotName&&!te?this.replaceWith(ne.blotName):ee.prototype.format.call(this,Q,te))},ne.prototype.formatAt=function(Q,te,ie,le){X.query(ie,X.Scope.BLOCK)!=null?this.format(ie,le):ee.prototype.formatAt.call(this,Q,te,ie,le)},ne.prototype.insertAt=function(Q,te,ie){if(ie==null||X.query(te,X.Scope.INLINE)!=null)ee.prototype.insertAt.call(this,Q,te,ie);else{var le=this.split(Q),oe=X.create(te,ie);le.parent.insertBefore(oe,le)}},ne.prototype.update=function(Q,te){navigator.userAgent.match(/Trident/)?this.build():ee.prototype.update.call(this,Q,te)},ne.blotName="block",ne.scope=X.Scope.BLOCK_BLOT,ne.tagName="P",ne}(J.default);G.default=se},function(U,G,Y){var K=this&&this.__extends||function(){var se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,ne){ee.__proto__=ne}||function(ee,ne){for(var Q in ne)ne.hasOwnProperty(Q)&&(ee[Q]=ne[Q])};return function(ee,ne){se(ee,ne);function Q(){this.constructor=ee}ee.prototype=ne===null?Object.create(ne):(Q.prototype=ne.prototype,new Q)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(19),X=function(se){K(ee,se);function ee(){return se!==null&&se.apply(this,arguments)||this}return ee.formats=function(ne){},ee.prototype.format=function(ne,Q){se.prototype.formatAt.call(this,0,this.length(),ne,Q)},ee.prototype.formatAt=function(ne,Q,te,ie){ne===0&&Q===this.length()?this.format(te,ie):se.prototype.formatAt.call(this,ne,Q,te,ie)},ee.prototype.formats=function(){return this.statics.formats(this.domNode)},ee}(J.default);G.default=X},function(U,G,Y){var K=this&&this.__extends||function(){var ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,Q){ne.__proto__=Q}||function(ne,Q){for(var te in Q)Q.hasOwnProperty(te)&&(ne[te]=Q[te])};return function(ne,Q){ee(ne,Q);function te(){this.constructor=ne}ne.prototype=Q===null?Object.create(Q):(te.prototype=Q.prototype,new te)}}();Object.defineProperty(G,"__esModule",{value:!0});var J=Y(19),X=Y(1),se=function(ee){K(ne,ee);function ne(Q){var te=ee.call(this,Q)||this;return te.text=te.statics.value(te.domNode),te}return ne.create=function(Q){return document.createTextNode(Q)},ne.value=function(Q){var te=Q.data;return te.normalize&&(te=te.normalize()),te},ne.prototype.deleteAt=function(Q,te){this.domNode.data=this.text=this.text.slice(0,Q)+this.text.slice(Q+te)},ne.prototype.index=function(Q,te){return this.domNode===Q?te:-1},ne.prototype.insertAt=function(Q,te,ie){ie==null?(this.text=this.text.slice(0,Q)+te+this.text.slice(Q),this.domNode.data=this.text):ee.prototype.insertAt.call(this,Q,te,ie)},ne.prototype.length=function(){return this.text.length},ne.prototype.optimize=function(Q){ee.prototype.optimize.call(this,Q),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof ne&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},ne.prototype.position=function(Q,te){return[this.domNode,Q]},ne.prototype.split=function(Q,te){if(te===void 0&&(te=!1),!te){if(Q===0)return this;if(Q===this.length())return this.next}var ie=X.create(this.domNode.splitText(Q));return this.parent.insertBefore(ie,this.next),this.text=this.statics.value(this.domNode),ie},ne.prototype.update=function(Q,te){var ie=this;Q.some(function(le){return le.type==="characterData"&&le.target===ie.domNode})&&(this.text=this.statics.value(this.domNode))},ne.prototype.value=function(){return this.text},ne.blotName="text",ne.scope=X.Scope.INLINE_BLOT,ne}(J.default);G.default=se},function(U,G,Y){var K=document.createElement("div");if(K.classList.toggle("test-class",!1),K.classList.contains("test-class")){var J=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(X,se){return arguments.length>1&&!this.contains(X)==!se?se:J.call(this,X)}}String.prototype.startsWith||(String.prototype.startsWith=function(X,se){return se=se||0,this.substr(se,X.length)===X}),String.prototype.endsWith||(String.prototype.endsWith=function(X,se){var ee=this.toString();(typeof se!="number"||!isFinite(se)||Math.floor(se)!==se||se>ee.length)&&(se=ee.length),se-=X.length;var ne=ee.indexOf(X,se);return ne!==-1&&ne===se}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(se){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof se!="function")throw new TypeError("predicate must be a function");for(var ee=Object(this),ne=ee.length>>>0,Q=arguments[1],te,ie=0;ie<ne;ie++)if(te=ee[ie],se.call(Q,te,ie,ee))return te}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(U,G){var Y=-1,K=1,J=0;function X(de,he,me){if(de==he)return de?[[J,de]]:[];(me<0||de.length<me)&&(me=null);var ge=Q(de,he),we=de.substring(0,ge);de=de.substring(ge),he=he.substring(ge),ge=te(de,he);var Se=de.substring(de.length-ge);de=de.substring(0,de.length-ge),he=he.substring(0,he.length-ge);var _e=se(de,he);return we&&_e.unshift([J,we]),Se&&_e.push([J,Se]),le(_e),me!=null&&(_e=ae(_e,me)),_e=ce(_e),_e}function se(de,he){var me;if(!de)return[[K,he]];if(!he)return[[Y,de]];var ge=de.length>he.length?de:he,we=de.length>he.length?he:de,Se=ge.indexOf(we);if(Se!=-1)return me=[[K,ge.substring(0,Se)],[J,we],[K,ge.substring(Se+we.length)]],de.length>he.length&&(me[0][0]=me[2][0]=Y),me;if(we.length==1)return[[Y,de],[K,he]];var _e=ie(de,he);if(_e){var fe=_e[0],be=_e[1],ve=_e[2],$e=_e[3],Te=_e[4],Ce=X(fe,ve),Ie=X(be,$e);return Ce.concat([[J,Te]],Ie)}return ee(de,he)}function ee(de,he){for(var me=de.length,ge=he.length,we=Math.ceil((me+ge)/2),Se=we,_e=2*we,fe=new Array(_e),be=new Array(_e),ve=0;ve<_e;ve++)fe[ve]=-1,be[ve]=-1;fe[Se+1]=0,be[Se+1]=0;for(var $e=me-ge,Te=$e%2!=0,Ce=0,Ie=0,Ge=0,De=0,Oe=0;Oe<we;Oe++){for(var ye=-Oe+Ce;ye<=Oe-Ie;ye+=2){var ke=Se+ye,qe;ye==-Oe||ye!=Oe&&fe[ke-1]<fe[ke+1]?qe=fe[ke+1]:qe=fe[ke-1]+1;for(var Le=qe-ye;qe<me&&Le<ge&&de.charAt(qe)==he.charAt(Le);)qe++,Le++;if(fe[ke]=qe,qe>me)Ie+=2;else if(Le>ge)Ce+=2;else if(Te){var Ne=Se+$e-ye;if(Ne>=0&&Ne<_e&&be[Ne]!=-1){var Ee=me-be[Ne];if(qe>=Ee)return ne(de,he,qe,Le)}}}for(var Re=-Oe+Ge;Re<=Oe-De;Re+=2){var Ne=Se+Re,Ee;Re==-Oe||Re!=Oe&&be[Ne-1]<be[Ne+1]?Ee=be[Ne+1]:Ee=be[Ne-1]+1;for(var Be=Ee-Re;Ee<me&&Be<ge&&de.charAt(me-Ee-1)==he.charAt(ge-Be-1);)Ee++,Be++;if(be[Ne]=Ee,Ee>me)De+=2;else if(Be>ge)Ge+=2;else if(!Te){var ke=Se+$e-Re;if(ke>=0&&ke<_e&&fe[ke]!=-1){var qe=fe[ke],Le=Se+qe-ke;if(Ee=me-Ee,qe>=Ee)return ne(de,he,qe,Le)}}}}return[[Y,de],[K,he]]}function ne(de,he,me,ge){var we=de.substring(0,me),Se=he.substring(0,ge),_e=de.substring(me),fe=he.substring(ge),be=X(we,Se),ve=X(_e,fe);return be.concat(ve)}function Q(de,he){if(!de||!he||de.charAt(0)!=he.charAt(0))return 0;for(var me=0,ge=Math.min(de.length,he.length),we=ge,Se=0;me<we;)de.substring(Se,we)==he.substring(Se,we)?(me=we,Se=me):ge=we,we=Math.floor((ge-me)/2+me);return we}function te(de,he){if(!de||!he||de.charAt(de.length-1)!=he.charAt(he.length-1))return 0;for(var me=0,ge=Math.min(de.length,he.length),we=ge,Se=0;me<we;)de.substring(de.length-we,de.length-Se)==he.substring(he.length-we,he.length-Se)?(me=we,Se=me):ge=we,we=Math.floor((ge-me)/2+me);return we}function ie(de,he){var me=de.length>he.length?de:he,ge=de.length>he.length?he:de;if(me.length<4||ge.length*2<me.length)return null;function we(Ie,Ge,De){for(var Oe=Ie.substring(De,De+Math.floor(Ie.length/4)),ye=-1,ke="",qe,Le,Ne,Ee;(ye=Ge.indexOf(Oe,ye+1))!=-1;){var Re=Q(Ie.substring(De),Ge.substring(ye)),Be=te(Ie.substring(0,De),Ge.substring(0,ye));ke.length<Be+Re&&(ke=Ge.substring(ye-Be,ye)+Ge.substring(ye,ye+Re),qe=Ie.substring(0,De-Be),Le=Ie.substring(De+Re),Ne=Ge.substring(0,ye-Be),Ee=Ge.substring(ye+Re))}return ke.length*2>=Ie.length?[qe,Le,Ne,Ee,ke]:null}var Se=we(me,ge,Math.ceil(me.length/4)),_e=we(me,ge,Math.ceil(me.length/2)),fe;if(!Se&&!_e)return null;_e?Se?fe=Se[4].length>_e[4].length?Se:_e:fe=_e:fe=Se;var be,ve,$e,Te;de.length>he.length?(be=fe[0],ve=fe[1],$e=fe[2],Te=fe[3]):($e=fe[0],Te=fe[1],be=fe[2],ve=fe[3]);var Ce=fe[4];return[be,ve,$e,Te,Ce]}function le(de){de.push([J,""]);for(var he=0,me=0,ge=0,we="",Se="",_e;he<de.length;)switch(de[he][0]){case K:ge++,Se+=de[he][1],he++;break;case Y:me++,we+=de[he][1],he++;break;case J:me+ge>1?(me!==0&&ge!==0&&(_e=Q(Se,we),_e!==0&&(he-me-ge>0&&de[he-me-ge-1][0]==J?de[he-me-ge-1][1]+=Se.substring(0,_e):(de.splice(0,0,[J,Se.substring(0,_e)]),he++),Se=Se.substring(_e),we=we.substring(_e)),_e=te(Se,we),_e!==0&&(de[he][1]=Se.substring(Se.length-_e)+de[he][1],Se=Se.substring(0,Se.length-_e),we=we.substring(0,we.length-_e))),me===0?de.splice(he-ge,me+ge,[K,Se]):ge===0?de.splice(he-me,me+ge,[Y,we]):de.splice(he-me-ge,me+ge,[Y,we],[K,Se]),he=he-me-ge+(me?1:0)+(ge?1:0)+1):he!==0&&de[he-1][0]==J?(de[he-1][1]+=de[he][1],de.splice(he,1)):he++,ge=0,me=0,we="",Se="";break}de[de.length-1][1]===""&&de.pop();var fe=!1;for(he=1;he<de.length-1;)de[he-1][0]==J&&de[he+1][0]==J&&(de[he][1].substring(de[he][1].length-de[he-1][1].length)==de[he-1][1]?(de[he][1]=de[he-1][1]+de[he][1].substring(0,de[he][1].length-de[he-1][1].length),de[he+1][1]=de[he-1][1]+de[he+1][1],de.splice(he-1,1),fe=!0):de[he][1].substring(0,de[he+1][1].length)==de[he+1][1]&&(de[he-1][1]+=de[he+1][1],de[he][1]=de[he][1].substring(de[he+1][1].length)+de[he+1][1],de.splice(he+1,1),fe=!0)),he++;fe&&le(de)}var oe=X;oe.INSERT=K,oe.DELETE=Y,oe.EQUAL=J,U.exports=oe;function re(de,he){if(he===0)return[J,de];for(var me=0,ge=0;ge<de.length;ge++){var we=de[ge];if(we[0]===Y||we[0]===J){var Se=me+we[1].length;if(he===Se)return[ge+1,de];if(he<Se){de=de.slice();var _e=he-me,fe=[we[0],we[1].slice(0,_e)],be=[we[0],we[1].slice(_e)];return de.splice(ge,1,fe,be),[ge+1,de]}else me=Se}}throw new Error("cursor_pos is out of bounds!")}function ae(de,he){var me=re(de,he),ge=me[1],we=me[0],Se=ge[we],_e=ge[we+1];if(Se==null)return de;if(Se[0]!==J)return de;if(_e!=null&&Se[1]+_e[1]===_e[1]+Se[1])return ge.splice(we,2,_e,Se),ue(ge,we,2);if(_e!=null&&_e[1].indexOf(Se[1])===0){ge.splice(we,2,[_e[0],Se[1]],[0,Se[1]]);var fe=_e[1].slice(Se[1].length);return fe.length>0&&ge.splice(we+2,0,[_e[0],fe]),ue(ge,we,3)}else return de}function ce(de){for(var he=!1,me=function(_e){return _e.charCodeAt(0)>=56320&&_e.charCodeAt(0)<=57343},ge=function(_e){return _e.charCodeAt(_e.length-1)>=55296&&_e.charCodeAt(_e.length-1)<=56319},we=2;we<de.length;we+=1)de[we-2][0]===J&&ge(de[we-2][1])&&de[we-1][0]===Y&&me(de[we-1][1])&&de[we][0]===K&&me(de[we][1])&&(he=!0,de[we-1][1]=de[we-2][1].slice(-1)+de[we-1][1],de[we][1]=de[we-2][1].slice(-1)+de[we][1],de[we-2][1]=de[we-2][1].slice(0,-1));if(!he)return de;for(var Se=[],we=0;we<de.length;we+=1)de[we][1].length>0&&Se.push(de[we]);return Se}function ue(de,he,me){for(var ge=he+me-1;ge>=0&&ge>=he-1;ge--)if(ge+1<de.length){var we=de[ge],Se=de[ge+1];we[0]===Se[1]&&de.splice(ge,2,[we[0],we[1]+Se[1]])}return de}},function(U,G){G=U.exports=typeof Object.keys=="function"?Object.keys:Y,G.shim=Y;function Y(K){var J=[];for(var X in K)J.push(X);return J}},function(U,G){var Y=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";G=U.exports=Y?K:J,G.supported=K;function K(X){return Object.prototype.toString.call(X)=="[object Arguments]"}G.unsupported=J;function J(X){return X&&typeof X=="object"&&typeof X.length=="number"&&Object.prototype.hasOwnProperty.call(X,"callee")&&!Object.prototype.propertyIsEnumerable.call(X,"callee")||!1}},function(U,G){var Y=Object.prototype.hasOwnProperty,K="~";function J(){}Object.create&&(J.prototype=Object.create(null),new J().__proto__||(K=!1));function X(ee,ne,Q){this.fn=ee,this.context=ne,this.once=Q||!1}function se(){this._events=new J,this._eventsCount=0}se.prototype.eventNames=function(){var ne=[],Q,te;if(this._eventsCount===0)return ne;for(te in Q=this._events)Y.call(Q,te)&&ne.push(K?te.slice(1):te);return Object.getOwnPropertySymbols?ne.concat(Object.getOwnPropertySymbols(Q)):ne},se.prototype.listeners=function(ne,Q){var te=K?K+ne:ne,ie=this._events[te];if(Q)return!!ie;if(!ie)return[];if(ie.fn)return[ie.fn];for(var le=0,oe=ie.length,re=new Array(oe);le<oe;le++)re[le]=ie[le].fn;return re},se.prototype.emit=function(ne,Q,te,ie,le,oe){var re=K?K+ne:ne;if(!this._events[re])return!1;var ae=this._events[re],ce=arguments.length,ue,de;if(ae.fn){switch(ae.once&&this.removeListener(ne,ae.fn,void 0,!0),ce){case 1:return ae.fn.call(ae.context),!0;case 2:return ae.fn.call(ae.context,Q),!0;case 3:return ae.fn.call(ae.context,Q,te),!0;case 4:return ae.fn.call(ae.context,Q,te,ie),!0;case 5:return ae.fn.call(ae.context,Q,te,ie,le),!0;case 6:return ae.fn.call(ae.context,Q,te,ie,le,oe),!0}for(de=1,ue=new Array(ce-1);de<ce;de++)ue[de-1]=arguments[de];ae.fn.apply(ae.context,ue)}else{var he=ae.length,me;for(de=0;de<he;de++)switch(ae[de].once&&this.removeListener(ne,ae[de].fn,void 0,!0),ce){case 1:ae[de].fn.call(ae[de].context);break;case 2:ae[de].fn.call(ae[de].context,Q);break;case 3:ae[de].fn.call(ae[de].context,Q,te);break;case 4:ae[de].fn.call(ae[de].context,Q,te,ie);break;default:if(!ue)for(me=1,ue=new Array(ce-1);me<ce;me++)ue[me-1]=arguments[me];ae[de].fn.apply(ae[de].context,ue)}}return!0},se.prototype.on=function(ne,Q,te){var ie=new X(Q,te||this),le=K?K+ne:ne;return this._events[le]?this._events[le].fn?this._events[le]=[this._events[le],ie]:this._events[le].push(ie):(this._events[le]=ie,this._eventsCount++),this},se.prototype.once=function(ne,Q,te){var ie=new X(Q,te||this,!0),le=K?K+ne:ne;return this._events[le]?this._events[le].fn?this._events[le]=[this._events[le],ie]:this._events[le].push(ie):(this._events[le]=ie,this._eventsCount++),this},se.prototype.removeListener=function(ne,Q,te,ie){var le=K?K+ne:ne;if(!this._events[le])return this;if(!Q)return--this._eventsCount===0?this._events=new J:delete this._events[le],this;var oe=this._events[le];if(oe.fn)oe.fn===Q&&(!ie||oe.once)&&(!te||oe.context===te)&&(--this._eventsCount===0?this._events=new J:delete this._events[le]);else{for(var re=0,ae=[],ce=oe.length;re<ce;re++)(oe[re].fn!==Q||ie&&!oe[re].once||te&&oe[re].context!==te)&&ae.push(oe[re]);ae.length?this._events[le]=ae.length===1?ae[0]:ae:--this._eventsCount===0?this._events=new J:delete this._events[le]}return this},se.prototype.removeAllListeners=function(ne){var Q;return ne?(Q=K?K+ne:ne,this._events[Q]&&(--this._eventsCount===0?this._events=new J:delete this._events[Q])):(this._events=new J,this._eventsCount=0),this},se.prototype.off=se.prototype.removeListener,se.prototype.addListener=se.prototype.on,se.prototype.setMaxListeners=function(){return this},se.prefixed=K,se.EventEmitter=se,typeof U<"u"&&(U.exports=se)},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.matchText=G.matchSpacing=G.matchNewline=G.matchBlot=G.matchAttributor=G.default=void 0;var K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ve){return typeof Ve}:function(Ve){return Ve&&typeof Symbol=="function"&&Ve.constructor===Symbol&&Ve!==Symbol.prototype?"symbol":typeof Ve},J=function(){function Ve(ze,Xe){var et=[],Ye=!0,ut=!1,ht=void 0;try{for(var pt=ze[Symbol.iterator](),Ct;!(Ye=(Ct=pt.next()).done)&&(et.push(Ct.value),!(Xe&&et.length===Xe));Ye=!0);}catch(Dt){ut=!0,ht=Dt}finally{try{!Ye&&pt.return&&pt.return()}finally{if(ut)throw ht}}return et}return function(ze,Xe){if(Array.isArray(ze))return ze;if(Symbol.iterator in Object(ze))return Ve(ze,Xe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),X=function(){function Ve(ze,Xe){for(var et=0;et<Xe.length;et++){var Ye=Xe[et];Ye.enumerable=Ye.enumerable||!1,Ye.configurable=!0,"value"in Ye&&(Ye.writable=!0),Object.defineProperty(ze,Ye.key,Ye)}}return function(ze,Xe,et){return Xe&&Ve(ze.prototype,Xe),et&&Ve(ze,et),ze}}(),se=Y(3),ee=be(se),ne=Y(2),Q=be(ne),te=Y(0),ie=be(te),le=Y(5),oe=be(le),re=Y(10),ae=be(re),ce=Y(9),ue=be(ce),de=Y(37),he=Y(38),me=Y(13),ge=be(me),we=Y(26),Se=Y(39),_e=Y(40),fe=Y(41);function be(Ve){return Ve&&Ve.__esModule?Ve:{default:Ve}}function ve(Ve,ze,Xe){return ze in Ve?Object.defineProperty(Ve,ze,{value:Xe,enumerable:!0,configurable:!0,writable:!0}):Ve[ze]=Xe,Ve}function $e(Ve,ze){if(!(Ve instanceof ze))throw new TypeError("Cannot call a class as a function")}function Te(Ve,ze){if(!Ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ze&&(typeof ze=="object"||typeof ze=="function")?ze:Ve}function Ce(Ve,ze){if(typeof ze!="function"&&ze!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ze);Ve.prototype=Object.create(ze&&ze.prototype,{constructor:{value:Ve,enumerable:!1,writable:!0,configurable:!0}}),ze&&(Object.setPrototypeOf?Object.setPrototypeOf(Ve,ze):Ve.__proto__=ze)}var Ie=(0,ae.default)("quill:clipboard"),Ge="__ql-matcher",De=[[Node.TEXT_NODE,St],[Node.TEXT_NODE,ft],["br",nt],[Node.ELEMENT_NODE,ft],[Node.ELEMENT_NODE,He],[Node.ELEMENT_NODE,_t],[Node.ELEMENT_NODE,Ue],[Node.ELEMENT_NODE,It],["li",dt],["b",Be.bind(Be,"bold")],["i",Be.bind(Be,"italic")],["style",at]],Oe=[de.AlignAttribute,Se.DirectionAttribute].reduce(function(Ve,ze){return Ve[ze.keyName]=ze,Ve},{}),ye=[de.AlignStyle,he.BackgroundStyle,we.ColorStyle,Se.DirectionStyle,_e.FontStyle,fe.SizeStyle].reduce(function(Ve,ze){return Ve[ze.keyName]=ze,Ve},{}),ke=function(Ve){Ce(ze,Ve);function ze(Xe,et){$e(this,ze);var Ye=Te(this,(ze.__proto__||Object.getPrototypeOf(ze)).call(this,Xe,et));return Ye.quill.root.addEventListener("paste",Ye.onPaste.bind(Ye)),Ye.container=Ye.quill.addContainer("ql-clipboard"),Ye.container.setAttribute("contenteditable",!0),Ye.container.setAttribute("tabindex",-1),Ye.matchers=[],De.concat(Ye.options.matchers).forEach(function(ut){var ht=J(ut,2),pt=ht[0],Ct=ht[1];!et.matchVisual&&Ct===_t||Ye.addMatcher(pt,Ct)}),Ye}return X(ze,[{key:"addMatcher",value:function(et,Ye){this.matchers.push([et,Ye])}},{key:"convert",value:function(et){if(typeof et=="string")return this.container.innerHTML=et.replace(/\>\r?\n +\</g,"><"),this.convert();var Ye=this.quill.getFormat(this.quill.selection.savedRange.index);if(Ye[ge.default.blotName]){var ut=this.container.innerText;return this.container.innerHTML="",new Q.default().insert(ut,ve({},ge.default.blotName,Ye[ge.default.blotName]))}var ht=this.prepareMatching(),pt=J(ht,2),Ct=pt[0],Dt=pt[1],kt=Re(this.container,Ct,Dt);return Ne(kt,`
8664
+ `)&&kt.ops[kt.ops.length-1].attributes==null&&(kt=kt.compose(new Q.default().retain(kt.length()-1).delete(1))),Ie.log("convert",this.container.innerHTML,kt),this.container.innerHTML="",kt}},{key:"dangerouslyPasteHTML",value:function(et,Ye){var ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oe.default.sources.API;if(typeof et=="string")this.quill.setContents(this.convert(et),Ye),this.quill.setSelection(0,oe.default.sources.SILENT);else{var ht=this.convert(Ye);this.quill.updateContents(new Q.default().retain(et).concat(ht),ut),this.quill.setSelection(et+ht.length(),oe.default.sources.SILENT)}}},{key:"onPaste",value:function(et){var Ye=this;if(!(et.defaultPrevented||!this.quill.isEnabled())){var ut=this.quill.getSelection(),ht=new Q.default().retain(ut.index),pt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(oe.default.sources.SILENT),setTimeout(function(){ht=ht.concat(Ye.convert()).delete(ut.length),Ye.quill.updateContents(ht,oe.default.sources.USER),Ye.quill.setSelection(ht.length()-ut.length,oe.default.sources.SILENT),Ye.quill.scrollingContainer.scrollTop=pt,Ye.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var et=this,Ye=[],ut=[];return this.matchers.forEach(function(ht){var pt=J(ht,2),Ct=pt[0],Dt=pt[1];switch(Ct){case Node.TEXT_NODE:ut.push(Dt);break;case Node.ELEMENT_NODE:Ye.push(Dt);break;default:[].forEach.call(et.container.querySelectorAll(Ct),function(kt){kt[Ge]=kt[Ge]||[],kt[Ge].push(Dt)});break}}),[Ye,ut]}}]),ze}(ue.default);ke.DEFAULTS={matchers:[],matchVisual:!0};function qe(Ve,ze,Xe){return(typeof ze>"u"?"undefined":K(ze))==="object"?Object.keys(ze).reduce(function(et,Ye){return qe(et,Ye,ze[Ye])},Ve):Ve.reduce(function(et,Ye){return Ye.attributes&&Ye.attributes[ze]?et.push(Ye):et.insert(Ye.insert,(0,ee.default)({},ve({},ze,Xe),Ye.attributes))},new Q.default)}function Le(Ve){if(Ve.nodeType!==Node.ELEMENT_NODE)return{};var ze="__ql-computed-style";return Ve[ze]||(Ve[ze]=window.getComputedStyle(Ve))}function Ne(Ve,ze){for(var Xe="",et=Ve.ops.length-1;et>=0&&Xe.length<ze.length;--et){var Ye=Ve.ops[et];if(typeof Ye.insert!="string")break;Xe=Ye.insert+Xe}return Xe.slice(-1*ze.length)===ze}function Ee(Ve){if(Ve.childNodes.length===0)return!1;var ze=Le(Ve);return["block","list-item"].indexOf(ze.display)>-1}function Re(Ve,ze,Xe){return Ve.nodeType===Ve.TEXT_NODE?Xe.reduce(function(et,Ye){return Ye(Ve,et)},new Q.default):Ve.nodeType===Ve.ELEMENT_NODE?[].reduce.call(Ve.childNodes||[],function(et,Ye){var ut=Re(Ye,ze,Xe);return Ye.nodeType===Ve.ELEMENT_NODE&&(ut=ze.reduce(function(ht,pt){return pt(Ye,ht)},ut),ut=(Ye[Ge]||[]).reduce(function(ht,pt){return pt(Ye,ht)},ut)),et.concat(ut)},new Q.default):new Q.default}function Be(Ve,ze,Xe){return qe(Xe,Ve,!0)}function Ue(Ve,ze){var Xe=ie.default.Attributor.Attribute.keys(Ve),et=ie.default.Attributor.Class.keys(Ve),Ye=ie.default.Attributor.Style.keys(Ve),ut={};return Xe.concat(et).concat(Ye).forEach(function(ht){var pt=ie.default.query(ht,ie.default.Scope.ATTRIBUTE);pt!=null&&(ut[pt.attrName]=pt.value(Ve),ut[pt.attrName])||(pt=Oe[ht],pt!=null&&(pt.attrName===ht||pt.keyName===ht)&&(ut[pt.attrName]=pt.value(Ve)||void 0),pt=ye[ht],pt!=null&&(pt.attrName===ht||pt.keyName===ht)&&(pt=ye[ht],ut[pt.attrName]=pt.value(Ve)||void 0))}),Object.keys(ut).length>0&&(ze=qe(ze,ut)),ze}function He(Ve,ze){var Xe=ie.default.query(Ve);if(Xe==null)return ze;if(Xe.prototype instanceof ie.default.Embed){var et={},Ye=Xe.value(Ve);Ye!=null&&(et[Xe.blotName]=Ye,ze=new Q.default().insert(et,Xe.formats(Ve)))}else typeof Xe.formats=="function"&&(ze=qe(ze,Xe.blotName,Xe.formats(Ve)));return ze}function nt(Ve,ze){return Ne(ze,`
8665
+ `)||ze.insert(`
8666
+ `),ze}function at(){return new Q.default}function dt(Ve,ze){var Xe=ie.default.query(Ve);if(Xe==null||Xe.blotName!=="list-item"||!Ne(ze,`
8667
+ `))return ze;for(var et=-1,Ye=Ve.parentNode;!Ye.classList.contains("ql-clipboard");)(ie.default.query(Ye)||{}).blotName==="list"&&(et+=1),Ye=Ye.parentNode;return et<=0?ze:ze.compose(new Q.default().retain(ze.length()-1).retain(1,{indent:et}))}function ft(Ve,ze){return Ne(ze,`
8668
+ `)||(Ee(Ve)||ze.length()>0&&Ve.nextSibling&&Ee(Ve.nextSibling))&&ze.insert(`
8669
+ `),ze}function _t(Ve,ze){if(Ee(Ve)&&Ve.nextElementSibling!=null&&!Ne(ze,`
8670
+
8671
+ `)){var Xe=Ve.offsetHeight+parseFloat(Le(Ve).marginTop)+parseFloat(Le(Ve).marginBottom);Ve.nextElementSibling.offsetTop>Ve.offsetTop+Xe*1.5&&ze.insert(`
8672
+ `)}return ze}function It(Ve,ze){var Xe={},et=Ve.style||{};return et.fontStyle&&Le(Ve).fontStyle==="italic"&&(Xe.italic=!0),et.fontWeight&&(Le(Ve).fontWeight.startsWith("bold")||parseInt(Le(Ve).fontWeight)>=700)&&(Xe.bold=!0),Object.keys(Xe).length>0&&(ze=qe(ze,Xe)),parseFloat(et.textIndent||0)>0&&(ze=new Q.default().insert(" ").concat(ze)),ze}function St(Ve,ze){var Xe=Ve.data;if(Ve.parentNode.tagName==="O:P")return ze.insert(Xe.trim());if(Xe.trim().length===0&&Ve.parentNode.classList.contains("ql-clipboard"))return ze;if(!Le(Ve.parentNode).whiteSpace.startsWith("pre")){var et=function(ut,ht){return ht=ht.replace(/[^\u00a0]/g,""),ht.length<1&&ut?" ":ht};Xe=Xe.replace(/\r\n/g," ").replace(/\n/g," "),Xe=Xe.replace(/\s\s+/g,et.bind(et,!0)),(Ve.previousSibling==null&&Ee(Ve.parentNode)||Ve.previousSibling!=null&&Ee(Ve.previousSibling))&&(Xe=Xe.replace(/^\s+/,et.bind(et,!1))),(Ve.nextSibling==null&&Ee(Ve.parentNode)||Ve.nextSibling!=null&&Ee(Ve.nextSibling))&&(Xe=Xe.replace(/\s+$/,et.bind(et,!1)))}return ze.insert(Xe)}G.default=ke,G.matchAttributor=Ue,G.matchBlot=He,G.matchNewline=ft,G.matchSpacing=_t,G.matchText=St},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function le(oe,re){for(var ae=0;ae<re.length;ae++){var ce=re[ae];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(oe,ce.key,ce)}}return function(oe,re,ae){return re&&le(oe.prototype,re),ae&&le(oe,ae),oe}}(),J=function le(oe,re,ae){oe===null&&(oe=Function.prototype);var ce=Object.getOwnPropertyDescriptor(oe,re);if(ce===void 0){var ue=Object.getPrototypeOf(oe);return ue===null?void 0:le(ue,re,ae)}else{if("value"in ce)return ce.value;var de=ce.get;return de===void 0?void 0:de.call(ae)}},X=Y(6),se=ee(X);function ee(le){return le&&le.__esModule?le:{default:le}}function ne(le,oe){if(!(le instanceof oe))throw new TypeError("Cannot call a class as a function")}function Q(le,oe){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:le}function te(le,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);le.prototype=Object.create(oe&&oe.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(le,oe):le.__proto__=oe)}var ie=function(le){te(oe,le);function oe(){return ne(this,oe),Q(this,(oe.__proto__||Object.getPrototypeOf(oe)).apply(this,arguments))}return K(oe,[{key:"optimize",value:function(ae){J(oe.prototype.__proto__||Object.getPrototypeOf(oe.prototype),"optimize",this).call(this,ae),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return J(oe.__proto__||Object.getPrototypeOf(oe),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),oe}(se.default);ie.blotName="bold",ie.tagName=["STRONG","B"],G.default=ie},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.addControls=G.default=void 0;var K=function(){function be(ve,$e){var Te=[],Ce=!0,Ie=!1,Ge=void 0;try{for(var De=ve[Symbol.iterator](),Oe;!(Ce=(Oe=De.next()).done)&&(Te.push(Oe.value),!($e&&Te.length===$e));Ce=!0);}catch(ye){Ie=!0,Ge=ye}finally{try{!Ce&&De.return&&De.return()}finally{if(Ie)throw Ge}}return Te}return function(ve,$e){if(Array.isArray(ve))return ve;if(Symbol.iterator in Object(ve))return be(ve,$e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),J=function(){function be(ve,$e){for(var Te=0;Te<$e.length;Te++){var Ce=$e[Te];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(ve,Ce.key,Ce)}}return function(ve,$e,Te){return $e&&be(ve.prototype,$e),Te&&be(ve,Te),ve}}(),X=Y(2),se=ae(X),ee=Y(0),ne=ae(ee),Q=Y(5),te=ae(Q),ie=Y(10),le=ae(ie),oe=Y(9),re=ae(oe);function ae(be){return be&&be.__esModule?be:{default:be}}function ce(be,ve,$e){return ve in be?Object.defineProperty(be,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):be[ve]=$e,be}function ue(be,ve){if(!(be instanceof ve))throw new TypeError("Cannot call a class as a function")}function de(be,ve){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:be}function he(be,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);be.prototype=Object.create(ve&&ve.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(be,ve):be.__proto__=ve)}var me="getRootNode"in document,ge=(0,le.default)("quill:toolbar"),we=function(be){he(ve,be);function ve($e,Te){ue(this,ve);var Ce=de(this,(ve.__proto__||Object.getPrototypeOf(ve)).call(this,$e,Te));if(Array.isArray(Ce.options.container)){var Ie=document.createElement("div");_e(Ie,Ce.options.container),$e.container.parentNode.insertBefore(Ie,$e.container),Ce.container=Ie}else if(typeof Ce.options.container=="string"){var Ge=me?$e.container.getRootNode():document;Ce.container=Ge.querySelector(Ce.options.container)}else Ce.container=Ce.options.container;if(!(Ce.container instanceof HTMLElement)){var De;return De=ge.error("Container required for toolbar",Ce.options),de(Ce,De)}return Ce.container.classList.add("ql-toolbar"),Ce.controls=[],Ce.handlers={},Object.keys(Ce.options.handlers).forEach(function(Oe){Ce.addHandler(Oe,Ce.options.handlers[Oe])}),[].forEach.call(Ce.container.querySelectorAll("button, select"),function(Oe){Ce.attach(Oe)}),Ce.quill.on(te.default.events.EDITOR_CHANGE,function(Oe,ye){Oe===te.default.events.SELECTION_CHANGE&&Ce.update(ye)}),Ce.quill.on(te.default.events.SCROLL_OPTIMIZE,function(){var Oe=Ce.quill.selection.getRange(),ye=K(Oe,1),ke=ye[0];Ce.update(ke)}),Ce}return J(ve,[{key:"addHandler",value:function(Te,Ce){this.handlers[Te]=Ce}},{key:"attach",value:function(Te){var Ce=this,Ie=[].find.call(Te.classList,function(De){return De.indexOf("ql-")===0});if(Ie){if(Ie=Ie.slice(3),Te.tagName==="BUTTON"&&Te.setAttribute("type","button"),this.handlers[Ie]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Ie]==null){ge.warn("ignoring attaching to disabled format",Ie,Te);return}if(ne.default.query(Ie)==null){ge.warn("ignoring attaching to nonexistent format",Ie,Te);return}}var Ge=Te.tagName==="SELECT"?"change":"click";Te.addEventListener(Ge,function(De){var Oe=void 0;if(Te.tagName==="SELECT"){if(Te.selectedIndex<0)return;var ye=Te.options[Te.selectedIndex];ye.hasAttribute("selected")?Oe=!1:Oe=ye.value||!1}else Te.classList.contains("ql-active")?Oe=!1:Oe=Te.value||!Te.hasAttribute("value"),De.preventDefault();Ce.quill.focus();var ke=Ce.quill.selection.getRange(),qe=K(ke,1),Le=qe[0];if(Ce.handlers[Ie]!=null)Ce.handlers[Ie].call(Ce,Oe);else if(ne.default.query(Ie).prototype instanceof ne.default.Embed){if(Oe=prompt("Enter "+Ie),!Oe)return;Ce.quill.updateContents(new se.default().retain(Le.index).delete(Le.length).insert(ce({},Ie,Oe)),te.default.sources.USER)}else Ce.quill.format(Ie,Oe,te.default.sources.USER);Ce.update(Le)}),this.controls.push([Ie,Te])}}},{key:"update",value:function(Te){var Ce=Te==null?{}:this.quill.getFormat(Te);this.controls.forEach(function(Ie){var Ge=K(Ie,2),De=Ge[0],Oe=Ge[1];if(Oe.tagName==="SELECT"){var ye=void 0;if(Te==null)ye=null;else if(Ce[De]==null)ye=Oe.querySelector("option[selected]");else if(!Array.isArray(Ce[De])){var ke=Ce[De];typeof ke=="string"&&(ke=ke.replace(/\"/g,'\\"')),ye=Oe.querySelector('option[value="'+ke+'"]')}ye==null?(Oe.value="",Oe.selectedIndex=-1):ye.selected=!0}else if(Te==null)Oe.classList.remove("ql-active");else if(Oe.hasAttribute("value")){var qe=Ce[De]===Oe.getAttribute("value")||Ce[De]!=null&&Ce[De].toString()===Oe.getAttribute("value")||Ce[De]==null&&!Oe.getAttribute("value");Oe.classList.toggle("ql-active",qe)}else Oe.classList.toggle("ql-active",Ce[De]!=null)})}}]),ve}(re.default);we.DEFAULTS={};function Se(be,ve,$e){var Te=document.createElement("button");Te.setAttribute("type","button"),Te.classList.add("ql-"+ve),$e!=null&&(Te.value=$e),be.appendChild(Te)}function _e(be,ve){Array.isArray(ve[0])||(ve=[ve]),ve.forEach(function($e){var Te=document.createElement("span");Te.classList.add("ql-formats"),$e.forEach(function(Ce){if(typeof Ce=="string")Se(Te,Ce);else{var Ie=Object.keys(Ce)[0],Ge=Ce[Ie];Array.isArray(Ge)?fe(Te,Ie,Ge):Se(Te,Ie,Ge)}}),be.appendChild(Te)})}function fe(be,ve,$e){var Te=document.createElement("select");Te.classList.add("ql-"+ve),$e.forEach(function(Ce){var Ie=document.createElement("option");Ce!==!1?Ie.setAttribute("value",Ce):Ie.setAttribute("selected","selected"),Te.appendChild(Ie)}),be.appendChild(Te)}we.DEFAULTS={container:null,handlers:{clean:function(){var ve=this,$e=this.quill.getSelection();if($e!=null)if($e.length==0){var Te=this.quill.getFormat();Object.keys(Te).forEach(function(Ce){ne.default.query(Ce,ne.default.Scope.INLINE)!=null&&ve.quill.format(Ce,!1)})}else this.quill.removeFormat($e,te.default.sources.USER)},direction:function(ve){var $e=this.quill.getFormat().align;ve==="rtl"&&$e==null?this.quill.format("align","right",te.default.sources.USER):!ve&&$e==="right"&&this.quill.format("align",!1,te.default.sources.USER),this.quill.format("direction",ve,te.default.sources.USER)},indent:function(ve){var $e=this.quill.getSelection(),Te=this.quill.getFormat($e),Ce=parseInt(Te.indent||0);if(ve==="+1"||ve==="-1"){var Ie=ve==="+1"?1:-1;Te.direction==="rtl"&&(Ie*=-1),this.quill.format("indent",Ce+Ie,te.default.sources.USER)}},link:function(ve){ve===!0&&(ve=prompt("Enter link URL:")),this.quill.format("link",ve,te.default.sources.USER)},list:function(ve){var $e=this.quill.getSelection(),Te=this.quill.getFormat($e);ve==="check"?Te.list==="checked"||Te.list==="unchecked"?this.quill.format("list",!1,te.default.sources.USER):this.quill.format("list","unchecked",te.default.sources.USER):this.quill.format("list",ve,te.default.sources.USER)}}},G.default=we,G.addControls=_e},function(U,G){U.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(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function le(oe,re){for(var ae=0;ae<re.length;ae++){var ce=re[ae];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(oe,ce.key,ce)}}return function(oe,re,ae){return re&&le(oe.prototype,re),ae&&le(oe,ae),oe}}(),J=function le(oe,re,ae){oe===null&&(oe=Function.prototype);var ce=Object.getOwnPropertyDescriptor(oe,re);if(ce===void 0){var ue=Object.getPrototypeOf(oe);return ue===null?void 0:le(ue,re,ae)}else{if("value"in ce)return ce.value;var de=ce.get;return de===void 0?void 0:de.call(ae)}},X=Y(28),se=ee(X);function ee(le){return le&&le.__esModule?le:{default:le}}function ne(le,oe){if(!(le instanceof oe))throw new TypeError("Cannot call a class as a function")}function Q(le,oe){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:le}function te(le,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);le.prototype=Object.create(oe&&oe.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(le,oe):le.__proto__=oe)}var ie=function(le){te(oe,le);function oe(re,ae){ne(this,oe);var ce=Q(this,(oe.__proto__||Object.getPrototypeOf(oe)).call(this,re));return ce.label.innerHTML=ae,ce.container.classList.add("ql-color-picker"),[].slice.call(ce.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(ue){ue.classList.add("ql-primary")}),ce}return K(oe,[{key:"buildItem",value:function(ae){var ce=J(oe.prototype.__proto__||Object.getPrototypeOf(oe.prototype),"buildItem",this).call(this,ae);return ce.style.backgroundColor=ae.getAttribute("value")||"",ce}},{key:"selectItem",value:function(ae,ce){J(oe.prototype.__proto__||Object.getPrototypeOf(oe.prototype),"selectItem",this).call(this,ae,ce);var ue=this.label.querySelector(".ql-color-label"),de=ae&&ae.getAttribute("data-value")||"";ue&&(ue.tagName==="line"?ue.style.stroke=de:ue.style.fill=de)}}]),oe}(se.default);G.default=ie},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function le(oe,re){for(var ae=0;ae<re.length;ae++){var ce=re[ae];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(oe,ce.key,ce)}}return function(oe,re,ae){return re&&le(oe.prototype,re),ae&&le(oe,ae),oe}}(),J=function le(oe,re,ae){oe===null&&(oe=Function.prototype);var ce=Object.getOwnPropertyDescriptor(oe,re);if(ce===void 0){var ue=Object.getPrototypeOf(oe);return ue===null?void 0:le(ue,re,ae)}else{if("value"in ce)return ce.value;var de=ce.get;return de===void 0?void 0:de.call(ae)}},X=Y(28),se=ee(X);function ee(le){return le&&le.__esModule?le:{default:le}}function ne(le,oe){if(!(le instanceof oe))throw new TypeError("Cannot call a class as a function")}function Q(le,oe){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:le}function te(le,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);le.prototype=Object.create(oe&&oe.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(le,oe):le.__proto__=oe)}var ie=function(le){te(oe,le);function oe(re,ae){ne(this,oe);var ce=Q(this,(oe.__proto__||Object.getPrototypeOf(oe)).call(this,re));return ce.container.classList.add("ql-icon-picker"),[].forEach.call(ce.container.querySelectorAll(".ql-picker-item"),function(ue){ue.innerHTML=ae[ue.getAttribute("data-value")||""]}),ce.defaultItem=ce.container.querySelector(".ql-selected"),ce.selectItem(ce.defaultItem),ce}return K(oe,[{key:"selectItem",value:function(ae,ce){J(oe.prototype.__proto__||Object.getPrototypeOf(oe.prototype),"selectItem",this).call(this,ae,ce),ae=ae||this.defaultItem,this.label.innerHTML=ae.innerHTML}}]),oe}(se.default);G.default=ie},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function se(ee,ne){for(var Q=0;Q<ne.length;Q++){var te=ne[Q];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(ee,te.key,te)}}return function(ee,ne,Q){return ne&&se(ee.prototype,ne),Q&&se(ee,Q),ee}}();function J(se,ee){if(!(se instanceof ee))throw new TypeError("Cannot call a class as a function")}var X=function(){function se(ee,ne){var Q=this;J(this,se),this.quill=ee,this.boundsContainer=ne||document.body,this.root=ee.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){Q.root.style.marginTop=-1*Q.quill.root.scrollTop+"px"}),this.hide()}return K(se,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(ne){var Q=ne.left+ne.width/2-this.root.offsetWidth/2,te=ne.bottom+this.quill.root.scrollTop;this.root.style.left=Q+"px",this.root.style.top=te+"px",this.root.classList.remove("ql-flip");var ie=this.boundsContainer.getBoundingClientRect(),le=this.root.getBoundingClientRect(),oe=0;if(le.right>ie.right&&(oe=ie.right-le.right,this.root.style.left=Q+oe+"px"),le.left<ie.left&&(oe=ie.left-le.left,this.root.style.left=Q+oe+"px"),le.bottom>ie.bottom){var re=le.bottom-le.top,ae=ne.bottom-ne.top+re;this.root.style.top=te-ae+"px",this.root.classList.add("ql-flip")}return oe}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),se}();G.default=X},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function _e(fe,be){var ve=[],$e=!0,Te=!1,Ce=void 0;try{for(var Ie=fe[Symbol.iterator](),Ge;!($e=(Ge=Ie.next()).done)&&(ve.push(Ge.value),!(be&&ve.length===be));$e=!0);}catch(De){Te=!0,Ce=De}finally{try{!$e&&Ie.return&&Ie.return()}finally{if(Te)throw Ce}}return ve}return function(fe,be){if(Array.isArray(fe))return fe;if(Symbol.iterator in Object(fe))return _e(fe,be);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),J=function _e(fe,be,ve){fe===null&&(fe=Function.prototype);var $e=Object.getOwnPropertyDescriptor(fe,be);if($e===void 0){var Te=Object.getPrototypeOf(fe);return Te===null?void 0:_e(Te,be,ve)}else{if("value"in $e)return $e.value;var Ce=$e.get;return Ce===void 0?void 0:Ce.call(ve)}},X=function(){function _e(fe,be){for(var ve=0;ve<be.length;ve++){var $e=be[ve];$e.enumerable=$e.enumerable||!1,$e.configurable=!0,"value"in $e&&($e.writable=!0),Object.defineProperty(fe,$e.key,$e)}}return function(fe,be,ve){return be&&_e(fe.prototype,be),ve&&_e(fe,ve),fe}}(),se=Y(3),ee=ue(se),ne=Y(8),Q=ue(ne),te=Y(44),ie=ue(te),le=Y(27),oe=ue(le),re=Y(15),ae=Y(42),ce=ue(ae);function ue(_e){return _e&&_e.__esModule?_e:{default:_e}}function de(_e,fe){if(!(_e instanceof fe))throw new TypeError("Cannot call a class as a function")}function he(_e,fe){if(!_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe&&(typeof fe=="object"||typeof fe=="function")?fe:_e}function me(_e,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof fe);_e.prototype=Object.create(fe&&fe.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),fe&&(Object.setPrototypeOf?Object.setPrototypeOf(_e,fe):_e.__proto__=fe)}var ge=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],we=function(_e){me(fe,_e);function fe(be,ve){de(this,fe),ve.modules.toolbar!=null&&ve.modules.toolbar.container==null&&(ve.modules.toolbar.container=ge);var $e=he(this,(fe.__proto__||Object.getPrototypeOf(fe)).call(this,be,ve));return $e.quill.container.classList.add("ql-snow"),$e}return X(fe,[{key:"extendToolbar",value:function(ve){ve.container.classList.add("ql-snow"),this.buildButtons([].slice.call(ve.container.querySelectorAll("button")),ce.default),this.buildPickers([].slice.call(ve.container.querySelectorAll("select")),ce.default),this.tooltip=new Se(this.quill,this.options.bounds),ve.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function($e,Te){ve.handlers.link.call(ve,!Te.format.link)})}}]),fe}(ie.default);we.DEFAULTS=(0,ee.default)(!0,{},ie.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(fe){if(fe){var be=this.quill.getSelection();if(be==null||be.length==0)return;var ve=this.quill.getText(be);/^\S+@\S+\.\S+$/.test(ve)&&ve.indexOf("mailto:")!==0&&(ve="mailto:"+ve);var $e=this.quill.theme.tooltip;$e.edit("link",ve)}else this.quill.format("link",!1)}}}}});var Se=function(_e){me(fe,_e);function fe(be,ve){de(this,fe);var $e=he(this,(fe.__proto__||Object.getPrototypeOf(fe)).call(this,be,ve));return $e.preview=$e.root.querySelector("a.ql-preview"),$e}return X(fe,[{key:"listen",value:function(){var ve=this;J(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function($e){ve.root.classList.contains("ql-editing")?ve.save():ve.edit("link",ve.preview.textContent),$e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function($e){if(ve.linkRange!=null){var Te=ve.linkRange;ve.restoreFocus(),ve.quill.formatText(Te,"link",!1,Q.default.sources.USER),delete ve.linkRange}$e.preventDefault(),ve.hide()}),this.quill.on(Q.default.events.SELECTION_CHANGE,function($e,Te,Ce){if($e!=null){if($e.length===0&&Ce===Q.default.sources.USER){var Ie=ve.quill.scroll.descendant(oe.default,$e.index),Ge=K(Ie,2),De=Ge[0],Oe=Ge[1];if(De!=null){ve.linkRange=new re.Range($e.index-Oe,De.length());var ye=oe.default.formats(De.domNode);ve.preview.textContent=ye,ve.preview.setAttribute("href",ye),ve.show(),ve.position(ve.quill.getBounds(ve.linkRange));return}}else delete ve.linkRange;ve.hide()}})}},{key:"show",value:function(){J(fe.prototype.__proto__||Object.getPrototypeOf(fe.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),fe}(te.BaseTooltip);Se.TEMPLATE=['<a class="ql-preview" 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(""),G.default=we},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(29),J=Ye(K),X=Y(37),se=Y(39),ee=Y(65),ne=Y(66),Q=Ye(ne),te=Y(67),ie=Ye(te),le=Y(68),oe=Ye(le),re=Y(38),ae=Y(26),ce=Y(40),ue=Y(41),de=Y(57),he=Ye(de),me=Y(69),ge=Ye(me),we=Y(27),Se=Ye(we),_e=Y(70),fe=Ye(_e),be=Y(71),ve=Ye(be),$e=Y(72),Te=Ye($e),Ce=Y(73),Ie=Ye(Ce),Ge=Y(74),De=Ye(Ge),Oe=Y(13),ye=Ye(Oe),ke=Y(75),qe=Ye(ke),Le=Y(76),Ne=Ye(Le),Ee=Y(58),Re=Ye(Ee),Be=Y(42),Ue=Ye(Be),He=Y(28),nt=Ye(He),at=Y(60),dt=Ye(at),ft=Y(61),_t=Ye(ft),It=Y(62),St=Ye(It),Ve=Y(109),ze=Ye(Ve),Xe=Y(63),et=Ye(Xe);function Ye(ut){return ut&&ut.__esModule?ut:{default:ut}}J.default.register({"attributors/attribute/direction":se.DirectionAttribute,"attributors/class/align":X.AlignClass,"attributors/class/background":re.BackgroundClass,"attributors/class/color":ae.ColorClass,"attributors/class/direction":se.DirectionClass,"attributors/class/font":ce.FontClass,"attributors/class/size":ue.SizeClass,"attributors/style/align":X.AlignStyle,"attributors/style/background":re.BackgroundStyle,"attributors/style/color":ae.ColorStyle,"attributors/style/direction":se.DirectionStyle,"attributors/style/font":ce.FontStyle,"attributors/style/size":ue.SizeStyle},!0),J.default.register({"formats/align":X.AlignClass,"formats/direction":se.DirectionClass,"formats/indent":ee.IndentClass,"formats/background":re.BackgroundStyle,"formats/color":ae.ColorStyle,"formats/font":ce.FontClass,"formats/size":ue.SizeClass,"formats/blockquote":Q.default,"formats/code-block":ye.default,"formats/header":ie.default,"formats/list":oe.default,"formats/bold":he.default,"formats/code":Oe.Code,"formats/italic":ge.default,"formats/link":Se.default,"formats/script":fe.default,"formats/strike":ve.default,"formats/underline":Te.default,"formats/image":Ie.default,"formats/video":De.default,"formats/list/item":le.ListItem,"modules/formula":qe.default,"modules/syntax":Ne.default,"modules/toolbar":Re.default,"themes/bubble":ze.default,"themes/snow":et.default,"ui/icons":Ue.default,"ui/picker":nt.default,"ui/icon-picker":_t.default,"ui/color-picker":dt.default,"ui/tooltip":St.default},!0),G.default=J.default},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.IndentClass=void 0;var K=function(){function oe(re,ae){for(var ce=0;ce<ae.length;ce++){var ue=ae[ce];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(re,ue.key,ue)}}return function(re,ae,ce){return ae&&oe(re.prototype,ae),ce&&oe(re,ce),re}}(),J=function oe(re,ae,ce){re===null&&(re=Function.prototype);var ue=Object.getOwnPropertyDescriptor(re,ae);if(ue===void 0){var de=Object.getPrototypeOf(re);return de===null?void 0:oe(de,ae,ce)}else{if("value"in ue)return ue.value;var he=ue.get;return he===void 0?void 0:he.call(ce)}},X=Y(0),se=ee(X);function ee(oe){return oe&&oe.__esModule?oe:{default:oe}}function ne(oe,re){if(!(oe instanceof re))throw new TypeError("Cannot call a class as a function")}function Q(oe,re){if(!oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re&&(typeof re=="object"||typeof re=="function")?re:oe}function te(oe,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof re);oe.prototype=Object.create(re&&re.prototype,{constructor:{value:oe,enumerable:!1,writable:!0,configurable:!0}}),re&&(Object.setPrototypeOf?Object.setPrototypeOf(oe,re):oe.__proto__=re)}var ie=function(oe){te(re,oe);function re(){return ne(this,re),Q(this,(re.__proto__||Object.getPrototypeOf(re)).apply(this,arguments))}return K(re,[{key:"add",value:function(ce,ue){if(ue==="+1"||ue==="-1"){var de=this.value(ce)||0;ue=ue==="+1"?de+1:de-1}return ue===0?(this.remove(ce),!0):J(re.prototype.__proto__||Object.getPrototypeOf(re.prototype),"add",this).call(this,ce,ue)}},{key:"canAdd",value:function(ce,ue){return J(re.prototype.__proto__||Object.getPrototypeOf(re.prototype),"canAdd",this).call(this,ce,ue)||J(re.prototype.__proto__||Object.getPrototypeOf(re.prototype),"canAdd",this).call(this,ce,parseInt(ue))}},{key:"value",value:function(ce){return parseInt(J(re.prototype.__proto__||Object.getPrototypeOf(re.prototype),"value",this).call(this,ce))||void 0}}]),re}(se.default.Attributor.Class),le=new ie("indent","ql-indent",{scope:se.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});G.IndentClass=le},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(4),J=X(K);function X(te){return te&&te.__esModule?te:{default:te}}function se(te,ie){if(!(te instanceof ie))throw new TypeError("Cannot call a class as a function")}function ee(te,ie){if(!te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ie&&(typeof ie=="object"||typeof ie=="function")?ie:te}function ne(te,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ie);te.prototype=Object.create(ie&&ie.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}),ie&&(Object.setPrototypeOf?Object.setPrototypeOf(te,ie):te.__proto__=ie)}var Q=function(te){ne(ie,te);function ie(){return se(this,ie),ee(this,(ie.__proto__||Object.getPrototypeOf(ie)).apply(this,arguments))}return ie}(J.default);Q.blotName="blockquote",Q.tagName="blockquote",G.default=Q},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function ie(le,oe){for(var re=0;re<oe.length;re++){var ae=oe[re];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(le,ae.key,ae)}}return function(le,oe,re){return oe&&ie(le.prototype,oe),re&&ie(le,re),le}}(),J=Y(4),X=se(J);function se(ie){return ie&&ie.__esModule?ie:{default:ie}}function ee(ie,le){if(!(ie instanceof le))throw new TypeError("Cannot call a class as a function")}function ne(ie,le){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return le&&(typeof le=="object"||typeof le=="function")?le:ie}function Q(ie,le){if(typeof le!="function"&&le!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof le);ie.prototype=Object.create(le&&le.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),le&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,le):ie.__proto__=le)}var te=function(ie){Q(le,ie);function le(){return ee(this,le),ne(this,(le.__proto__||Object.getPrototypeOf(le)).apply(this,arguments))}return K(le,null,[{key:"formats",value:function(re){return this.tagName.indexOf(re.tagName)+1}}]),le}(X.default);te.blotName="header",te.tagName=["H1","H2","H3","H4","H5","H6"],G.default=te},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.ListItem=void 0;var K=function(){function de(he,me){for(var ge=0;ge<me.length;ge++){var we=me[ge];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(he,we.key,we)}}return function(he,me,ge){return me&&de(he.prototype,me),ge&&de(he,ge),he}}(),J=function de(he,me,ge){he===null&&(he=Function.prototype);var we=Object.getOwnPropertyDescriptor(he,me);if(we===void 0){var Se=Object.getPrototypeOf(he);return Se===null?void 0:de(Se,me,ge)}else{if("value"in we)return we.value;var _e=we.get;return _e===void 0?void 0:_e.call(ge)}},X=Y(0),se=ie(X),ee=Y(4),ne=ie(ee),Q=Y(25),te=ie(Q);function ie(de){return de&&de.__esModule?de:{default:de}}function le(de,he,me){return he in de?Object.defineProperty(de,he,{value:me,enumerable:!0,configurable:!0,writable:!0}):de[he]=me,de}function oe(de,he){if(!(de instanceof he))throw new TypeError("Cannot call a class as a function")}function re(de,he){if(!de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return he&&(typeof he=="object"||typeof he=="function")?he:de}function ae(de,he){if(typeof he!="function"&&he!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof he);de.prototype=Object.create(he&&he.prototype,{constructor:{value:de,enumerable:!1,writable:!0,configurable:!0}}),he&&(Object.setPrototypeOf?Object.setPrototypeOf(de,he):de.__proto__=he)}var ce=function(de){ae(he,de);function he(){return oe(this,he),re(this,(he.__proto__||Object.getPrototypeOf(he)).apply(this,arguments))}return K(he,[{key:"format",value:function(ge,we){ge===ue.blotName&&!we?this.replaceWith(se.default.create(this.statics.scope)):J(he.prototype.__proto__||Object.getPrototypeOf(he.prototype),"format",this).call(this,ge,we)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():J(he.prototype.__proto__||Object.getPrototypeOf(he.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(ge,we){return this.parent.isolate(this.offset(this.parent),this.length()),ge===this.parent.statics.blotName?(this.parent.replaceWith(ge,we),this):(this.parent.unwrap(),J(he.prototype.__proto__||Object.getPrototypeOf(he.prototype),"replaceWith",this).call(this,ge,we))}}],[{key:"formats",value:function(ge){return ge.tagName===this.tagName?void 0:J(he.__proto__||Object.getPrototypeOf(he),"formats",this).call(this,ge)}}]),he}(ne.default);ce.blotName="list-item",ce.tagName="LI";var ue=function(de){ae(he,de),K(he,null,[{key:"create",value:function(ge){var we=ge==="ordered"?"OL":"UL",Se=J(he.__proto__||Object.getPrototypeOf(he),"create",this).call(this,we);return(ge==="checked"||ge==="unchecked")&&Se.setAttribute("data-checked",ge==="checked"),Se}},{key:"formats",value:function(ge){if(ge.tagName==="OL")return"ordered";if(ge.tagName==="UL")return ge.hasAttribute("data-checked")?ge.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function he(me){oe(this,he);var ge=re(this,(he.__proto__||Object.getPrototypeOf(he)).call(this,me)),we=function(_e){if(_e.target.parentNode===me){var fe=ge.statics.formats(me),be=se.default.find(_e.target);fe==="checked"?be.format("list","unchecked"):fe==="unchecked"&&be.format("list","checked")}};return me.addEventListener("touchstart",we),me.addEventListener("mousedown",we),ge}return K(he,[{key:"format",value:function(ge,we){this.children.length>0&&this.children.tail.format(ge,we)}},{key:"formats",value:function(){return le({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(ge,we){if(ge instanceof ce)J(he.prototype.__proto__||Object.getPrototypeOf(he.prototype),"insertBefore",this).call(this,ge,we);else{var Se=we==null?this.length():we.offset(this),_e=this.split(Se);_e.parent.insertBefore(ge,_e)}}},{key:"optimize",value:function(ge){J(he.prototype.__proto__||Object.getPrototypeOf(he.prototype),"optimize",this).call(this,ge);var we=this.next;we!=null&&we.prev===this&&we.statics.blotName===this.statics.blotName&&we.domNode.tagName===this.domNode.tagName&&we.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(we.moveChildren(this),we.remove())}},{key:"replace",value:function(ge){if(ge.statics.blotName!==this.statics.blotName){var we=se.default.create(this.statics.defaultChild);ge.moveChildren(we),this.appendChild(we)}J(he.prototype.__proto__||Object.getPrototypeOf(he.prototype),"replace",this).call(this,ge)}}]),he}(te.default);ue.blotName="list",ue.scope=se.default.Scope.BLOCK_BLOT,ue.tagName=["OL","UL"],ue.defaultChild="list-item",ue.allowedChildren=[ce],G.ListItem=ce,G.default=ue},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(57),J=X(K);function X(te){return te&&te.__esModule?te:{default:te}}function se(te,ie){if(!(te instanceof ie))throw new TypeError("Cannot call a class as a function")}function ee(te,ie){if(!te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ie&&(typeof ie=="object"||typeof ie=="function")?ie:te}function ne(te,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ie);te.prototype=Object.create(ie&&ie.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}),ie&&(Object.setPrototypeOf?Object.setPrototypeOf(te,ie):te.__proto__=ie)}var Q=function(te){ne(ie,te);function ie(){return se(this,ie),ee(this,(ie.__proto__||Object.getPrototypeOf(ie)).apply(this,arguments))}return ie}(J.default);Q.blotName="italic",Q.tagName=["EM","I"],G.default=Q},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function le(oe,re){for(var ae=0;ae<re.length;ae++){var ce=re[ae];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(oe,ce.key,ce)}}return function(oe,re,ae){return re&&le(oe.prototype,re),ae&&le(oe,ae),oe}}(),J=function le(oe,re,ae){oe===null&&(oe=Function.prototype);var ce=Object.getOwnPropertyDescriptor(oe,re);if(ce===void 0){var ue=Object.getPrototypeOf(oe);return ue===null?void 0:le(ue,re,ae)}else{if("value"in ce)return ce.value;var de=ce.get;return de===void 0?void 0:de.call(ae)}},X=Y(6),se=ee(X);function ee(le){return le&&le.__esModule?le:{default:le}}function ne(le,oe){if(!(le instanceof oe))throw new TypeError("Cannot call a class as a function")}function Q(le,oe){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:le}function te(le,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);le.prototype=Object.create(oe&&oe.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(le,oe):le.__proto__=oe)}var ie=function(le){te(oe,le);function oe(){return ne(this,oe),Q(this,(oe.__proto__||Object.getPrototypeOf(oe)).apply(this,arguments))}return K(oe,null,[{key:"create",value:function(ae){return ae==="super"?document.createElement("sup"):ae==="sub"?document.createElement("sub"):J(oe.__proto__||Object.getPrototypeOf(oe),"create",this).call(this,ae)}},{key:"formats",value:function(ae){if(ae.tagName==="SUB")return"sub";if(ae.tagName==="SUP")return"super"}}]),oe}(se.default);ie.blotName="script",ie.tagName=["SUB","SUP"],G.default=ie},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(6),J=X(K);function X(te){return te&&te.__esModule?te:{default:te}}function se(te,ie){if(!(te instanceof ie))throw new TypeError("Cannot call a class as a function")}function ee(te,ie){if(!te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ie&&(typeof ie=="object"||typeof ie=="function")?ie:te}function ne(te,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ie);te.prototype=Object.create(ie&&ie.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}),ie&&(Object.setPrototypeOf?Object.setPrototypeOf(te,ie):te.__proto__=ie)}var Q=function(te){ne(ie,te);function ie(){return se(this,ie),ee(this,(ie.__proto__||Object.getPrototypeOf(ie)).apply(this,arguments))}return ie}(J.default);Q.blotName="strike",Q.tagName="S",G.default=Q},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=Y(6),J=X(K);function X(te){return te&&te.__esModule?te:{default:te}}function se(te,ie){if(!(te instanceof ie))throw new TypeError("Cannot call a class as a function")}function ee(te,ie){if(!te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ie&&(typeof ie=="object"||typeof ie=="function")?ie:te}function ne(te,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ie);te.prototype=Object.create(ie&&ie.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}),ie&&(Object.setPrototypeOf?Object.setPrototypeOf(te,ie):te.__proto__=ie)}var Q=function(te){ne(ie,te);function ie(){return se(this,ie),ee(this,(ie.__proto__||Object.getPrototypeOf(ie)).apply(this,arguments))}return ie}(J.default);Q.blotName="underline",Q.tagName="U",G.default=Q},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function re(ae,ce){for(var ue=0;ue<ce.length;ue++){var de=ce[ue];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ae,de.key,de)}}return function(ae,ce,ue){return ce&&re(ae.prototype,ce),ue&&re(ae,ue),ae}}(),J=function re(ae,ce,ue){ae===null&&(ae=Function.prototype);var de=Object.getOwnPropertyDescriptor(ae,ce);if(de===void 0){var he=Object.getPrototypeOf(ae);return he===null?void 0:re(he,ce,ue)}else{if("value"in de)return de.value;var me=de.get;return me===void 0?void 0:me.call(ue)}},X=Y(0),se=ne(X),ee=Y(27);function ne(re){return re&&re.__esModule?re:{default:re}}function Q(re,ae){if(!(re instanceof ae))throw new TypeError("Cannot call a class as a function")}function te(re,ae){if(!re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae&&(typeof ae=="object"||typeof ae=="function")?ae:re}function ie(re,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ae);re.prototype=Object.create(ae&&ae.prototype,{constructor:{value:re,enumerable:!1,writable:!0,configurable:!0}}),ae&&(Object.setPrototypeOf?Object.setPrototypeOf(re,ae):re.__proto__=ae)}var le=["alt","height","width"],oe=function(re){ie(ae,re);function ae(){return Q(this,ae),te(this,(ae.__proto__||Object.getPrototypeOf(ae)).apply(this,arguments))}return K(ae,[{key:"format",value:function(ue,de){le.indexOf(ue)>-1?de?this.domNode.setAttribute(ue,de):this.domNode.removeAttribute(ue):J(ae.prototype.__proto__||Object.getPrototypeOf(ae.prototype),"format",this).call(this,ue,de)}}],[{key:"create",value:function(ue){var de=J(ae.__proto__||Object.getPrototypeOf(ae),"create",this).call(this,ue);return typeof ue=="string"&&de.setAttribute("src",this.sanitize(ue)),de}},{key:"formats",value:function(ue){return le.reduce(function(de,he){return ue.hasAttribute(he)&&(de[he]=ue.getAttribute(he)),de},{})}},{key:"match",value:function(ue){return/\.(jpe?g|gif|png)$/.test(ue)||/^data:image\/.+;base64/.test(ue)}},{key:"sanitize",value:function(ue){return(0,ee.sanitize)(ue,["http","https","data"])?ue:"//:0"}},{key:"value",value:function(ue){return ue.getAttribute("src")}}]),ae}(se.default.Embed);oe.blotName="image",oe.tagName="IMG",G.default=oe},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0});var K=function(){function re(ae,ce){for(var ue=0;ue<ce.length;ue++){var de=ce[ue];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ae,de.key,de)}}return function(ae,ce,ue){return ce&&re(ae.prototype,ce),ue&&re(ae,ue),ae}}(),J=function re(ae,ce,ue){ae===null&&(ae=Function.prototype);var de=Object.getOwnPropertyDescriptor(ae,ce);if(de===void 0){var he=Object.getPrototypeOf(ae);return he===null?void 0:re(he,ce,ue)}else{if("value"in de)return de.value;var me=de.get;return me===void 0?void 0:me.call(ue)}},X=Y(4),se=Y(27),ee=ne(se);function ne(re){return re&&re.__esModule?re:{default:re}}function Q(re,ae){if(!(re instanceof ae))throw new TypeError("Cannot call a class as a function")}function te(re,ae){if(!re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae&&(typeof ae=="object"||typeof ae=="function")?ae:re}function ie(re,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ae);re.prototype=Object.create(ae&&ae.prototype,{constructor:{value:re,enumerable:!1,writable:!0,configurable:!0}}),ae&&(Object.setPrototypeOf?Object.setPrototypeOf(re,ae):re.__proto__=ae)}var le=["height","width"],oe=function(re){ie(ae,re);function ae(){return Q(this,ae),te(this,(ae.__proto__||Object.getPrototypeOf(ae)).apply(this,arguments))}return K(ae,[{key:"format",value:function(ue,de){le.indexOf(ue)>-1?de?this.domNode.setAttribute(ue,de):this.domNode.removeAttribute(ue):J(ae.prototype.__proto__||Object.getPrototypeOf(ae.prototype),"format",this).call(this,ue,de)}}],[{key:"create",value:function(ue){var de=J(ae.__proto__||Object.getPrototypeOf(ae),"create",this).call(this,ue);return de.setAttribute("frameborder","0"),de.setAttribute("allowfullscreen",!0),de.setAttribute("src",this.sanitize(ue)),de}},{key:"formats",value:function(ue){return le.reduce(function(de,he){return ue.hasAttribute(he)&&(de[he]=ue.getAttribute(he)),de},{})}},{key:"sanitize",value:function(ue){return ee.default.sanitize(ue)}},{key:"value",value:function(ue){return ue.getAttribute("src")}}]),ae}(X.BlockEmbed);oe.blotName="video",oe.className="ql-video",oe.tagName="IFRAME",G.default=oe},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.FormulaBlot=void 0;var K=function(){function ue(de,he){for(var me=0;me<he.length;me++){var ge=he[me];ge.enumerable=ge.enumerable||!1,ge.configurable=!0,"value"in ge&&(ge.writable=!0),Object.defineProperty(de,ge.key,ge)}}return function(de,he,me){return he&&ue(de.prototype,he),me&&ue(de,me),de}}(),J=function ue(de,he,me){de===null&&(de=Function.prototype);var ge=Object.getOwnPropertyDescriptor(de,he);if(ge===void 0){var we=Object.getPrototypeOf(de);return we===null?void 0:ue(we,he,me)}else{if("value"in ge)return ge.value;var Se=ge.get;return Se===void 0?void 0:Se.call(me)}},X=Y(36),se=ie(X),ee=Y(5),ne=ie(ee),Q=Y(9),te=ie(Q);function ie(ue){return ue&&ue.__esModule?ue:{default:ue}}function le(ue,de){if(!(ue instanceof de))throw new TypeError("Cannot call a class as a function")}function oe(ue,de){if(!ue)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de&&(typeof de=="object"||typeof de=="function")?de:ue}function re(ue,de){if(typeof de!="function"&&de!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof de);ue.prototype=Object.create(de&&de.prototype,{constructor:{value:ue,enumerable:!1,writable:!0,configurable:!0}}),de&&(Object.setPrototypeOf?Object.setPrototypeOf(ue,de):ue.__proto__=de)}var ae=function(ue){re(de,ue);function de(){return le(this,de),oe(this,(de.__proto__||Object.getPrototypeOf(de)).apply(this,arguments))}return K(de,null,[{key:"create",value:function(me){var ge=J(de.__proto__||Object.getPrototypeOf(de),"create",this).call(this,me);return typeof me=="string"&&(window.katex.render(me,ge,{throwOnError:!1,errorColor:"#f00"}),ge.setAttribute("data-value",me)),ge}},{key:"value",value:function(me){return me.getAttribute("data-value")}}]),de}(se.default);ae.blotName="formula",ae.className="ql-formula",ae.tagName="SPAN";var ce=function(ue){re(de,ue),K(de,null,[{key:"register",value:function(){ne.default.register(ae,!0)}}]);function de(){le(this,de);var he=oe(this,(de.__proto__||Object.getPrototypeOf(de)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return he}return de}(te.default);G.FormulaBlot=ae,G.default=ce},function(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.CodeToken=G.CodeBlock=void 0;var K=function(){function me(ge,we){for(var Se=0;Se<we.length;Se++){var _e=we[Se];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(ge,_e.key,_e)}}return function(ge,we,Se){return we&&me(ge.prototype,we),Se&&me(ge,Se),ge}}(),J=function me(ge,we,Se){ge===null&&(ge=Function.prototype);var _e=Object.getOwnPropertyDescriptor(ge,we);if(_e===void 0){var fe=Object.getPrototypeOf(ge);return fe===null?void 0:me(fe,we,Se)}else{if("value"in _e)return _e.value;var be=_e.get;return be===void 0?void 0:be.call(Se)}},X=Y(0),se=oe(X),ee=Y(5),ne=oe(ee),Q=Y(9),te=oe(Q),ie=Y(13),le=oe(ie);function oe(me){return me&&me.__esModule?me:{default:me}}function re(me,ge){if(!(me instanceof ge))throw new TypeError("Cannot call a class as a function")}function ae(me,ge){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:me}function ce(me,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);me.prototype=Object.create(ge&&ge.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(me,ge):me.__proto__=ge)}var ue=function(me){ce(ge,me);function ge(){return re(this,ge),ae(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return K(ge,[{key:"replaceWith",value:function(Se){this.domNode.textContent=this.domNode.textContent,this.attach(),J(ge.prototype.__proto__||Object.getPrototypeOf(ge.prototype),"replaceWith",this).call(this,Se)}},{key:"highlight",value:function(Se){var _e=this.domNode.textContent;this.cachedText!==_e&&((_e.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=Se(_e),this.domNode.normalize(),this.attach()),this.cachedText=_e)}}]),ge}(le.default);ue.className="ql-syntax";var de=new se.default.Attributor.Class("token","hljs",{scope:se.default.Scope.INLINE}),he=function(me){ce(ge,me),K(ge,null,[{key:"register",value:function(){ne.default.register(de,!0),ne.default.register(ue,!0)}}]);function ge(we,Se){re(this,ge);var _e=ae(this,(ge.__proto__||Object.getPrototypeOf(ge)).call(this,we,Se));if(typeof _e.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var fe=null;return _e.quill.on(ne.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(fe),fe=setTimeout(function(){_e.highlight(),fe=null},_e.options.interval)}),_e.highlight(),_e}return K(ge,[{key:"highlight",value:function(){var Se=this;if(!this.quill.selection.composing){this.quill.update(ne.default.sources.USER);var _e=this.quill.getSelection();this.quill.scroll.descendants(ue).forEach(function(fe){fe.highlight(Se.options.highlight)}),this.quill.update(ne.default.sources.SILENT),_e!=null&&this.quill.setSelection(_e,ne.default.sources.SILENT)}}}]),ge}(te.default);he.DEFAULTS={highlight:function(){return window.hljs==null?null:function(me){var ge=window.hljs.highlightAuto(me);return ge.value}}(),interval:1e3},G.CodeBlock=ue,G.CodeToken=de,G.default=he},function(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G){U.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(U,G,Y){Object.defineProperty(G,"__esModule",{value:!0}),G.default=G.BubbleTooltip=void 0;var K=function ge(we,Se,_e){we===null&&(we=Function.prototype);var fe=Object.getOwnPropertyDescriptor(we,Se);if(fe===void 0){var be=Object.getPrototypeOf(we);return be===null?void 0:ge(be,Se,_e)}else{if("value"in fe)return fe.value;var ve=fe.get;return ve===void 0?void 0:ve.call(_e)}},J=function(){function ge(we,Se){for(var _e=0;_e<Se.length;_e++){var fe=Se[_e];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(we,fe.key,fe)}}return function(we,Se,_e){return Se&&ge(we.prototype,Se),_e&&ge(we,_e),we}}(),X=Y(3),se=re(X),ee=Y(8),ne=re(ee),Q=Y(44),te=re(Q),ie=Y(15),le=Y(42),oe=re(le);function re(ge){return ge&&ge.__esModule?ge:{default:ge}}function ae(ge,we){if(!(ge instanceof we))throw new TypeError("Cannot call a class as a function")}function ce(ge,we){if(!ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we&&(typeof we=="object"||typeof we=="function")?we:ge}function ue(ge,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof we);ge.prototype=Object.create(we&&we.prototype,{constructor:{value:ge,enumerable:!1,writable:!0,configurable:!0}}),we&&(Object.setPrototypeOf?Object.setPrototypeOf(ge,we):ge.__proto__=we)}var de=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],he=function(ge){ue(we,ge);function we(Se,_e){ae(this,we),_e.modules.toolbar!=null&&_e.modules.toolbar.container==null&&(_e.modules.toolbar.container=de);var fe=ce(this,(we.__proto__||Object.getPrototypeOf(we)).call(this,Se,_e));return fe.quill.container.classList.add("ql-bubble"),fe}return J(we,[{key:"extendToolbar",value:function(_e){this.tooltip=new me(this.quill,this.options.bounds),this.tooltip.root.appendChild(_e.container),this.buildButtons([].slice.call(_e.container.querySelectorAll("button")),oe.default),this.buildPickers([].slice.call(_e.container.querySelectorAll("select")),oe.default)}}]),we}(te.default);he.DEFAULTS=(0,se.default)(!0,{},te.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(we){we?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var me=function(ge){ue(we,ge);function we(Se,_e){ae(this,we);var fe=ce(this,(we.__proto__||Object.getPrototypeOf(we)).call(this,Se,_e));return fe.quill.on(ne.default.events.EDITOR_CHANGE,function(be,ve,$e,Te){if(be===ne.default.events.SELECTION_CHANGE)if(ve!=null&&ve.length>0&&Te===ne.default.sources.USER){fe.show(),fe.root.style.left="0px",fe.root.style.width="",fe.root.style.width=fe.root.offsetWidth+"px";var Ce=fe.quill.getLines(ve.index,ve.length);if(Ce.length===1)fe.position(fe.quill.getBounds(ve));else{var Ie=Ce[Ce.length-1],Ge=fe.quill.getIndex(Ie),De=Math.min(Ie.length()-1,ve.index+ve.length-Ge),Oe=fe.quill.getBounds(new ie.Range(Ge,De));fe.position(Oe)}}else document.activeElement!==fe.textbox&&fe.quill.hasFocus()&&fe.hide()}),fe}return J(we,[{key:"listen",value:function(){var _e=this;K(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){_e.root.classList.remove("ql-editing")}),this.quill.on(ne.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!_e.root.classList.contains("ql-hidden")){var fe=_e.quill.getSelection();fe!=null&&_e.position(_e.quill.getBounds(fe))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(_e){var fe=K(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"position",this).call(this,_e),be=this.root.querySelector(".ql-tooltip-arrow");if(be.style.marginLeft="",fe===0)return fe;be.style.marginLeft=-1*fe-be.offsetWidth/2+"px"}}]),we}(Q.BaseTooltip);me.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(""),G.BubbleTooltip=me,G.default=he},function(U,G,Y){U.exports=Y(64)}]).default})})(quill);var quillExports=quill.exports;const Quill=getDefaultExportFromCjs(quillExports),styles$3='@charset "UTF-8";*[hidden]{display:none!important}:host{height:100%}.container{width:100%;height:100%;display:flex;flex-direction:column;flex:1}.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative;color:#000;overflow-y:auto}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li{list-style-type:none}.ql-editor ul>li{list-style-type:disc}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:☑}.ql-editor ul[data-checked=false]>li:before{content:☐}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1;counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-2{counter-increment:list-2;counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-3{counter-increment:list-3;counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-4{counter-increment:list-4;counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-5{counter-increment:list-5;counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-6{counter-increment:list-6;counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-7{counter-increment:list-7;counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-8{counter-increment:list-8;counter-reset:list-9}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer: coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px);background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none;line-height:26px}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Petita"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Gran"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Enorme"}button.ql-indent{display:none!important}.ql-undo{font-size:14pt;font-weight:900;display:flex!important;align-items:center}.ql-undo:after{content:"↺";transform:rotate(-135deg)}.ql-redo{font-size:14pt;font-weight:900;display:flex!important;align-items:center}.ql-redo:after{content:"↻";transform:rotate(135deg)}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0px}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0px;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}',template$2=W=>x$1`
8660
8673
  <div class="container">
8661
8674
  <div id="rte">
8662
8675
  </div>
8663
8676
  </div>
8664
- `,fixSpellCheckerIssue=W=>{const O=W.import("blots/inline");class U extends O{constructor(Y,K){super(Y,K);const J=this.replaceWith(new O(O.create()));return J.children.forEach(X=>{X.attributes&&X.attributes.copy(J),X.unwrap&&X.unwrap()}),Object.keys(Y.attributes).forEach(function(X){if(Y.attributes[X].name!="style"){const ie=Y.attributes[X].value;let ee=Y.attributes[X].name;ee=="face"&&(ee="font-family"),J.format(ee,ie)}}),this.remove(),J}}U.blotName="customAttributes",U.tagName="FONT",W.register(U,!0)};var __defProp$3=Object.defineProperty,__getOwnPropDesc$3=Object.getOwnPropertyDescriptor,__decorateClass$3=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$3(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$3(O,U,Y),Y};fixSpellCheckerIssue(Quill);let PrimariaRichTextEditor=class extends s$8{constructor(){super(...arguments),this.availableOptions=["bold","italic","underline","strike","blockquote","code-block","image","video","link","color","background","ol","ul","subindex","superindex","size","header","font","align","undo","redo"],this.availableFormats=["background","bold","color","font","code","italic","link","size","strike","script","underline","blockquote","header","list","align","direction","code-block","formula","image","video"]}render(){return x$1` ${template$2()} `}firstUpdated(){var W;this.quill=new Quill((W=this.shadowRoot)==null?void 0:W.querySelector("#rte"),this._getOptions()),this.quill.on("text-change",(O,U,G)=>{const Y=this.quill.getText(),K={html:this.shadowRoot.querySelector(".ql-editor").innerHTML,plain:Y},J=new CustomEvent("text-changed",{composed:!0,detail:K});this.dispatchEvent(J),this.range=this.getCursorPosition()}),this.quill.on("selection-change",(O,U,G)=>{O&&(this.range=O)})}_getOptions(){let W=[];const O=this.availableOptions;this.options===void 0||this.options.length===0?W=[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge","20px"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["image"],["video"]]:(W=this.options.split(","),W.forEach(G=>{O.indexOf(G)<=-1&&W.splice(W.indexOf(G),1)}),W=W.map(function(G){return G=="color"?{color:[]}:G=="ol"?{list:"ordered"}:G=="ul"?{list:"bullet"}:G=="subindex"?{script:"sub"}:G=="superindex"?{script:"super"}:G=="size"?{size:["small",!1,"large","huge"]}:G=="header"?{header:[1,2,3,4,5,6,!1]}:G=="background"?{background:[]}:G=="font"?{font:[]}:G=="align"?{align:[]}:G}));let U=this.availableFormats;return this.formats&&(U=this.formats.split(",")),{modules:{toolbar:{container:W,handlers:{redo(){this.quill.history.redo()},undo(){this.quill.history.undo()}}},history:{delay:1e3,maxStack:50,userOnly:!1},keyboard:{bindings:{indent:{key:"Tab",format:["blockquote","indent","list"],handler(G,Y){var K;return Y.collapsed&&Y.offset!==0||((K=Y.format)==null?void 0:K.list)==="ordered"?!0:(this.quill.format("indent","+1",Quill.sources.USER),!1)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*)$/,handler(G,Y){if(this.quill.scroll.query("list")==null)return!0;const{length:K}=Y.prefix;return this.quill.getLine(G.index)[1]>K?!0:(this.quill.insertText(G.index," ",Quill.sources.USER),this.quill.setSelection(G.index-K,Quill.sources.SILENT),!1)}}}}},theme:"snow",formats:U}}getCursorPosition(){return this.quill.getSelection()}};PrimariaRichTextEditor.styles=i$9`
8677
+ `,fixSpellCheckerIssue=W=>{const O=W.import("blots/inline");class U extends O{constructor(Y,K){super(Y,K);const J=this.replaceWith(new O(O.create()));return J.children.forEach(X=>{X.attributes&&X.attributes.copy(J),X.unwrap&&X.unwrap()}),Object.keys(Y.attributes).forEach(function(X){if(Y.attributes[X].name!="style"){const se=Y.attributes[X].value;let ee=Y.attributes[X].name;ee=="face"&&(ee="font-family"),J.format(ee,se)}}),this.remove(),J}}U.blotName="customAttributes",U.tagName="FONT",W.register(U,!0)};var __defProp$3=Object.defineProperty,__getOwnPropDesc$3=Object.getOwnPropertyDescriptor,__decorateClass$3=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$3(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$3(O,U,Y),Y};fixSpellCheckerIssue(Quill);let PrimariaRichTextEditor=class extends s$8{constructor(){super(...arguments),this.availableOptions=["bold","italic","underline","strike","blockquote","code-block","image","video","link","color","background","ol","ul","subindex","superindex","size","header","font","align","undo","redo"],this.availableFormats=["background","bold","color","font","code","italic","link","size","strike","script","underline","blockquote","header","list","align","direction","code-block","formula","image","video"]}render(){return x$1` ${template$2()} `}firstUpdated(){var W;this.quill=new Quill((W=this.shadowRoot)==null?void 0:W.querySelector("#rte"),this._getOptions()),this.quill.on("text-change",(O,U,G)=>{const Y=this.quill.getText(),K={html:this.shadowRoot.querySelector(".ql-editor").innerHTML,plain:Y},J=new CustomEvent("text-changed",{composed:!0,detail:K});this.dispatchEvent(J),this.range=this.getCursorPosition()}),this.quill.on("selection-change",(O,U,G)=>{O&&(this.range=O)})}_getOptions(){let W=[];const O=this.availableOptions;this.options===void 0||this.options.length===0?W=[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge","20px"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["image"],["video"]]:(W=this.options.split(","),W.forEach(G=>{O.indexOf(G)<=-1&&W.splice(W.indexOf(G),1)}),W=W.map(function(G){return G=="color"?{color:[]}:G=="ol"?{list:"ordered"}:G=="ul"?{list:"bullet"}:G=="subindex"?{script:"sub"}:G=="superindex"?{script:"super"}:G=="size"?{size:["small",!1,"large","huge"]}:G=="header"?{header:[1,2,3,4,5,6,!1]}:G=="background"?{background:[]}:G=="font"?{font:[]}:G=="align"?{align:[]}:G}));let U=this.availableFormats;return this.formats&&(U=this.formats.split(",")),{modules:{toolbar:{container:W,handlers:{redo(){this.quill.history.redo()},undo(){this.quill.history.undo()}}},history:{delay:1e3,maxStack:50,userOnly:!1},keyboard:{bindings:{indent:{key:"Tab",format:["blockquote","indent","list"],handler(G,Y){var K;return Y.collapsed&&Y.offset!==0||((K=Y.format)==null?void 0:K.list)==="ordered"?!0:(this.quill.format("indent","+1",Quill.sources.USER),!1)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*)$/,handler(G,Y){if(this.quill.scroll.query("list")==null)return!0;const{length:K}=Y.prefix;return this.quill.getLine(G.index)[1]>K?!0:(this.quill.insertText(G.index," ",Quill.sources.USER),this.quill.setSelection(G.index-K,Quill.sources.SILENT),!1)}}}}},theme:"snow",formats:U}}getCursorPosition(){return this.quill.getSelection()}};PrimariaRichTextEditor.styles=i$9`
8665
8678
  ${r$a(styles$3)}
8666
8679
  `,__decorateClass$3([n$8()],PrimariaRichTextEditor.prototype,"quill",2),__decorateClass$3([n$8()],PrimariaRichTextEditor.prototype,"options",2),__decorateClass$3([n$8({type:Object})],PrimariaRichTextEditor.prototype,"range",2),__decorateClass$3([n$8({type:Array})],PrimariaRichTextEditor.prototype,"availableOptions",2),__decorateClass$3([n$8({type:Array})],PrimariaRichTextEditor.prototype,"availableFormats",2),__decorateClass$3([n$8()],PrimariaRichTextEditor.prototype,"formats",2),PrimariaRichTextEditor=__decorateClass$3([t$7("primaria-rich-text-editor")],PrimariaRichTextEditor);const styles$2=`.dss-breadcrumb{align-items:center;display:flex;gap:.5rem;height:fit-content;width:100%}.dss-breadcrumb__item,.dss-breadcrumb__item:last-of-type{align-self:center;color:var(--color-neutral-500);cursor:pointer;display:flex;font-size:.875rem;font-weight:var(--font-semibold);text-decoration:none}.dss-breadcrumb__item:hover{transition:all .3s linear}.dss-breadcrumb__item:focus,.dss-breadcrumb__item:hover{color:var(--color-primary-500)}.dss-breadcrumb__item:active{color:var(--color-primary-400)}.dss-breadcrumb__item:not(:first-child):before{color:var(--color-neutral-500);content:"keyboard_arrow_right";font-family:Material Symbols Rounded;font-size:1rem;font-weight:var(--font-semibold);margin-right:.5rem;text-align:center}.dss-breadcrumb__item:last-of-type{color:var(--color-neutral-900)}.dss-breadcrumb__item:last-of-type:focus,.dss-breadcrumb__item:last-of-type:hover{color:var(--color-primary-500)}.dss-breadcrumb__item:last-of-type:active{color:var(--color-primary-400)}.dss-divider,.dss-divider--bold,.dss-divider--dashed,hr{border-color:var(--color-neutral-100);border-style:solid;border-width:.0625rem;margin-bottom:2rem;margin-top:2rem}.dss-divider--bold{border-width:.125rem}.dss-divider--dashed{border-style:dashed}.dss-floating-button{align-items:center;background-color:var(--color-primary-100);border:none;color:var(--color-primary-700);cursor:pointer;display:flex;font-weight:var(--font-semibold);height:fit-content;justify-content:space-between;transition:all .3s ease-in;width:fit-content}.dss-floating-button:hover:enabled{background-color:var(--color-primary-200)}.dss-floating-button:active:enabled{background-color:var(--color-primary-50);transition:none}.dss-floating-button:disabled{cursor:not-allowed;opacity:.4}.dss-floating-button:focus-visible:enabled{outline:.25rem solid var(--color-blue-200);transition:none}.dss-floating-button--sm{border-radius:.75rem;font-size:.875rem;gap:.5rem;line-height:1.5rem;padding:.75rem}.dss-floating-button--sm .dss-floating-button__icon{font-size:1rem}.dss-floating-button--sm:has(.dss-floating-button__text){padding-bottom:.5rem;padding-right:1rem;padding-top:.5rem}.dss-floating-button--md{border-radius:1rem;font-size:1rem;gap:.75rem;line-height:1.5rem;padding:1rem}.dss-floating-button--md .dss-floating-button__icon{font-size:1.5rem}.dss-floating-button--md:has(.dss-floating-button__text){padding-right:1.25rem}.dss-floating-button--lg{border-radius:1.25rem;font-size:1.25rem;gap:.75rem;line-height:2rem;padding:1.25rem}.dss-floating-button--lg .dss-floating-button__icon{font-size:2rem}.dss-list{align-items:flex-start;display:flex;flex-direction:column;gap:.5rem;height:fit-content;list-style:none;list-style-position:inside!important;width:fit-content}.dss-list__item{font-size:.875rem;font-weight:var(--font-regular);line-height:var(--line-24)}.dss-list.dss-list--ordered{list-style:decimal}.dss-list.dss-list--unordered>.dss-list__item:before{content:"·";margin-right:.25rem}.dss-skeleton{display:block;min-width:20rem;width:100%}.dss-skeleton__item{background-color:#d8d8d8;border-radius:.5rem;display:inline-block;height:2rem;overflow:hidden;position:relative;width:100%}.dss-skeleton__item:not(:first-child){margin-top:1rem}.dss-skeleton__item:after{animation:shimmer 2s infinite;background-image:linear-gradient(90deg,#fff0,#fff3 20%,#ffffff80 60%,#fff0);bottom:0;content:"";left:0;position:absolute;right:0;top:0;transform:translate(-100%)}@keyframes shimmer{to{transform:translate(100%)}}.dss-input::-webkit-inner-spin-button,.dss-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.dss-input[type=number]{-moz-appearance:textfield}.dss-decorative-icon{align-items:center;background-color:var(--color-primary-50);border-radius:var(--dss-radius-xxs);box-sizing:border-box;color:var(--color-primary-800);display:flex;font-size:16px;height:24px;justify-content:center;min-width:24px;width:24px}.dss-decorative-icon--md{border-radius:var(--dss-radius-xs);font-size:18px;height:32px;min-width:32px;width:32px}.dss-decorative-icon--lg{border-radius:var(--dss-radius-sm);font-size:24px;height:40px;min-width:40px;width:40px}.dss-decorative-icon--xl{border-radius:var(--dss-radius-sm);font-size:30px;height:48px;min-width:48px;width:48px}.dss-decorative-icon--disabled{background-color:var(--color-neutral-50);color:var(--color-neutral-500)}.dss-decorative-icon--success{background-color:var(--color-green-50);color:var(--color-green-800)}.dss-decorative-icon--error{background-color:var(--color-red-50);color:var(--color-red-800)}.dss-action-menu{border-radius:.5rem;box-shadow:0 .25rem .5rem .1875rem #0000000d,0 .0625rem .1875rem #0000001a;height:fit-content;list-style-type:none;max-width:280px;min-width:160px;width:fit-content}.dss-action-menu:has(.disabled){cursor:not-allowed}.dss-action-menu__item{align-items:center;background-color:var(--color-white);box-shadow:0 .0625rem 0 0 var(--color-neutral-100),0 -.0625rem 0 0 var(--color-neutral-100);color:var(--color-neutral-500);cursor:pointer;display:flex;font-size:1rem;font-weight:var(--font-regular);line-height:var(--line-24);padding:.75rem 2rem .75rem 1rem;transition:all .3s ease-in}.dss-action-menu__item.disabled{color:#c1c1c1;pointer-events:none}.dss-action-menu__item.disabled:focus-visible{color:#c1c1c1;outline:none}.dss-action-menu__item>[class^=material-]{font-size:1.5rem;margin-right:.625rem}.dss-action-menu__item:first-child{border-radius:.5rem .5rem 0 0}.dss-action-menu__item:first-child,.dss-action-menu__item:first-child:active{box-shadow:0 .0625rem 0 0 var(--color-neutral-100)}.dss-action-menu__item:last-child{border-radius:0 0 .5rem .5rem}.dss-action-menu__item:last-child,.dss-action-menu__item:last-child:active{box-shadow:0 -.0625rem 0 0 var(--color-neutral-100)}.dss-action-menu__item:only-child{border-radius:.5rem;box-shadow:none}.dss-action-menu__item:hover{background-color:var(--color-neutral-100);color:var(--color-neutral-700)}.dss-action-menu__item:active{background-color:var(--color-neutral-50);box-shadow:0 .0625rem 0 0 var(--color-neutral-100),0 -.0625rem 0 0 var(--color-neutral-100);color:var(--color-neutral-700);transition:none}.dss-action-menu__item:focus-visible{color:var(--color-neutral-700);outline:.25rem solid var(--color-blue-200);transition:none}.dss-action-menu__item--error{color:var(--color-red-500)}.dss-action-menu__item--error:focus-visible{color:var(--color-red-500)}.dss-action-menu__item--error:hover{background-color:var(--color-red-500);color:var(--color-white)}.dss-action-menu__item--error:active{background-color:var(--color-red-400);color:var(--color-white);transition:none}.dss-action-menu__item--error.disabled{color:#ee9597}.dss-action-menu__item--error.disabled:focus-visible{color:#ee9597;outline:none}.dss-list-menu{color:var(--color-neutral-900);min-width:160px;width:100%}.dss-list-menu-title{align-items:center;box-sizing:border-box;display:flex;font-size:1.25rem;font-weight:var(--font-bold);gap:var(--dss-spacing-xs);height:40px;justify-content:flex-start;line-height:1.875rem;overflow:hidden;padding:var(--dss-spacing-sm) var(--dss-spacing-md)}.dss-list-menu-description{box-sizing:border-box;font-size:.875rem;line-height:1.5rem;padding:var(--dss-spacing-xxs) var(--dss-spacing-md)}.dss-list-menu-nav{list-style:none;margin:0;padding:0}.dss-list-menu-item{align-items:center;background-color:transparent;border-radius:var(--dss-radius-sm);box-sizing:border-box;color:var(--color-neutral-900);cursor:pointer;display:flex;font-size:.875rem;font-weight:var(--font-regular);gap:var(--dss-spacing-xs);height:40px;justify-content:space-between;line-height:1.5rem;max-width:100%;min-width:10rem;overflow:hidden;padding:var(--dss-spacing-sm) var(--dss-spacing-md);transition:all .3s ease-in;width:100%}.dss-list-menu-item+.dss-list-menu-item{margin-top:var(--dss-spacing-xxs)}.dss-list-menu-item:not(.dss-list-menu-item--disabled):hover{background-color:var(--color-primary-50)}.dss-list-menu-item:not(.dss-list-menu-item--disabled):active{color:var(--color-neutral-500)}.dss-list-menu-item:not(.dss-list-menu-item--disabled):focus-visible{background-color:var(--color-white);outline:var(--dss-border-width-lg) solid var(--color-blue-200)}.dss-list-menu-item.dss-list-menu-item--selected{background-color:var(--color-primary-50)}.dss-list-menu-item.dss-list-menu-item--disabled{background-color:var(--color-neutral-50);color:var(--color-neutral-500);cursor:not-allowed}.dss-list-menu-item__content{align-items:center;display:flex;gap:var(--dss-spacing-xs);justify-content:flex-start}.dss-list-menu-item__content-text{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;height:24px;overflow:hidden}.dss-list-menu-item__action{align-items:center;display:flex;gap:var(--dss-spacing-xs);justify-content:flex-start}.dss-alert{align-items:center;border-radius:.5rem;display:flex;gap:1rem;height:fit-content;justify-content:space-between;padding:.75rem;width:fit-content}.dss-alert.dss-alert--error{background-color:var(--color-red-50);border:.0625rem solid var(--color-red-300);color:var(--color-red-700)}.dss-alert.dss-alert--warning{background-color:var(--color-yellow-50);border:.0625rem solid var(--color-yellow-500);color:var(--color-yellow-700)}.dss-alert.dss-alert--success{background-color:var(--color-green-50);border:.0625rem solid var(--color-green-300);color:var(--color-green-700)}.dss-alert.dss-alert--info{background-color:var(--color-blue-50);border:.0625rem solid var(--color-blue-300);color:var(--color-blue-700)}.dss-alert__message{align-items:center;display:flex;gap:.5rem;justify-content:flex-start}.dss-alert__message i{font-size:1.5rem;font-weight:var(--font-semibold)}.dss-alert:has(.dss-icon-button,.dss-table__badge__icon-button,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-toast__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-chip__icon-button){padding-bottom:.5rem;padding-right:.5rem;padding-top:.5rem}.dss-badge--md:has(.dss-icon-button,.dss-table__badge__icon-button,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-toast__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-chip__icon-button),.dss-table__badge:has(.dss-icon-button,.dss-table__badge__icon-button,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-toast__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-chip__icon-button){padding-bottom:0;padding-right:var(--dss-spacing-tiny);padding-top:0}.dss-badge--md:has(.dss-icon-button,.dss-table__badge__icon-button,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-toast__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-chip__icon-button) span,.dss-table__badge:has(.dss-icon-button,.dss-table__badge__icon-button,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-toast__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-chip__icon-button) span{margin-right:var(--dss-spacing-tiny)}.dss-badge--lg:has(.dss-icon-button,.dss-table__badge__icon-button,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-toast__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-chip__icon-button){padding-right:var(--dss-spacing-xxs)}.dss-badge--lg:has(.dss-icon-button,.dss-table__badge__icon-button,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-toast__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-chip__icon-button) span{margin-right:var(--dss-spacing-xs)}.dss-chip{align-items:center;background-color:var(--color-white);border:var(--dss-border-width-sm) solid var(--color-primary-700);border-radius:var(--dss-radius-xl);box-sizing:border-box;color:var(--color-primary-700);cursor:default;display:flex;font-size:.875rem;font-weight:var(--font-semibold);gap:var(--dss-spacing-xxs);height:32px;line-height:var(--line-24);overflow:hidden;padding:var(--dss-spacing-xxs) var(--dss-spacing-sm);transition:all .3s ease-in;width:fit-content}.dss-chip__icon{font-size:1rem}.dss-chip__icon-button{box-sizing:border-box;color:var(--color-primary-700);font-size:1rem;padding:var(--dss-spacing-tiny)}.dss-chip__icon-button:hover{background-color:var(--color-primary-100)}.dss-chip__icon-button:focus,.dss-chip__icon-button:focus-visible{outline:var(--dss-border-width-md) solid var(--color-blue-200)}.dss-chip.disabled,.dss-chip__icon-button:disabled{color:var(--color-neutral-500)}.dss-chip.disabled{background-color:var(--color-white);border-color:var(--color-neutral-500);cursor:not-allowed;outline:none}.dss-chip.disabled .dss-chip__icon-button{pointer-events:none}.dss-chip.dss-chip--sm{font-size:.75rem;gap:var(--dss-spacing-xxs);height:24px;line-height:var(--line-16);padding:var(--dss-spacing-xxs) var(--dss-spacing-xs)}.dss-chip.dss-chip--sm:has(.dss-chip__icon-button){padding-right:var(--dss-spacing-xxs)}.dss-chip.dss-chip--sm:has(.dss-chip__icon){padding-left:var(--dss-spacing-xxs)}.dss-chip.dss-chip--sm .dss-chip__icon-button{padding:.0625rem}.dss-chip.dss-chip--active,.dss-chip.dss-chip--selected{background-color:var(--color-primary-100);box-shadow:none}.dss-chip.dss-chip--active:not(.disabled):active,.dss-chip.dss-chip--selected:not(.disabled):active{background-color:var(--color-primary-50);transition:none}.dss-chip:not(.disabled):focus-visible{box-shadow:none;outline:var(--dss-border-width-lg) solid var(--color-blue-200);transition:none}.dss-chip:not(.disabled):hover{background-color:var(--color-primary-50);box-shadow:none}.dss-chip:not(.disabled):active{background-color:var(--color-primary-50);transition:none}.dss-chip:has(.dss-chip__icon-button){padding-right:var(--dss-spacing-xs)}.dss-chip:has(.dss-chip__icon){padding-left:var(--dss-spacing-xs)}.dss-chip--active.disabled,.dss-chip--selected.disabled{background-color:var(--color-white)}.dss-content-switcher{background-color:var(--color-neutral-50);gap:.25rem;height:fit-content;padding:.25rem}.dss-content-switcher,.dss-content-switcher__item{border-radius:6.25rem;display:flex;width:fit-content}.dss-content-switcher__item{box-sizing:border-box;min-width:90px;position:relative;transition:all .3s ease-in}.dss-content-switcher__item input[type=radio]{border-radius:6.25rem;cursor:pointer;height:100%;opacity:0;position:absolute;width:100%}.dss-content-switcher__item input[type=radio]:checked+label{background-color:var(--color-white)}.dss-content-switcher__item input[type=radio]:hover:not(:checked):not(:disabled)+label{color:var(--color-primary-600)}.dss-content-switcher__item input[type=radio]:active+label{color:var(--color-neutral-900)}.dss-content-switcher__item input[type=radio]:disabled{cursor:not-allowed}.dss-content-switcher__item input[type=radio]:disabled label{color:var(--color-neutral-500);cursor:not-allowed}.dss-content-switcher__item input[type=radio]:focus-visible:enabled+label{color:var(--color-neutral-700);outline:.25rem solid var(--color-blue-200)}.dss-content-switcher__item label{align-items:center;border-radius:6.25rem;box-sizing:border-box;color:var(--color-neutral-700);display:flex;font-size:.75rem;font-weight:var(--font-semibold);height:100%;justify-content:center;line-height:var(--line-16);min-width:90px;padding:var(--dss-spacing-xs);transition:all .3s ease-in;width:fit-content}:root{--legend-bg-color:var(--color-neutral-100)}.dss-legend{display:flex;flex-direction:row;gap:1.5rem;height:fit-content}.dss-legend--column{flex-direction:column;gap:.75rem}.dss-legend__item{display:flex;list-style:none}.dss-legend__item:before{background-color:var(--legend-bg-color);border-radius:.25rem;content:"";display:inline-block;height:1rem;margin-right:.5rem;width:1rem}.dss-task{align-items:center;display:flex;gap:1rem;height:fit-content}.dss-task__item{position:relative}.dss-task__item .dss-task__selector{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-color:transparent;cursor:pointer;height:100%;opacity:0;position:absolute;width:100%}.dss-task__item .dss-task__selector:checked+.dss-task__content,.dss-task__item .dss-task__selector:hover+.dss-task__content{animation:fadein .3s linear;box-shadow:inset 0 0 0 .125rem var(--color-primary-500),0 .25rem .5rem .1875rem #0000000d,0 .0625rem .1875rem #0000001a}.dss-task__item .dss-task__selector:active+.dss-task__content{box-shadow:inset 0 0 0 .125rem var(--color-primary-200),0 .25rem .5rem .1875rem #0000000d,0 .0625rem .1875rem #0000001a}.dss-task__item .dss-task__selector:disabled+.dss-task__content{cursor:not-allowed;opacity:.4}.dss-task__item .dss-task__selector:focus-visible:enabled+.dss-task__content{box-shadow:inset 0 0 0 .25rem var(--color-blue-500),0 .25rem .5rem .1875rem #0000000d,0 .0625rem .1875rem #0000001a}.dss-task__item .dss-task__content{background-color:var(--color-white);border-radius:.5rem;display:flex;flex-direction:column;min-height:4.5rem;overflow:hidden;padding:.5rem 1rem;width:7.5rem}.dss-task__item .dss-task__content .dss-task__title{margin-bottom:.5rem;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.dss-task__item .dss-task__content .dss-badge,.dss-task__item .dss-task__content .dss-table__badge{margin:0 auto;min-width:fit-content}@keyframes fadein{0%{box-shadow:inset 0 0 0 .125rem transparent,0 .25rem .5rem .1875rem #0000000d,0 .0625rem .1875rem #0000001a}to{box-shadow:inset 0 0 0 .125rem var(--color-primary-500),0 .25rem .5rem .1875rem #0000000d,0 .0625rem .1875rem #0000001a}}.dss-tile{align-items:center;background-color:var(--color-primary-50);border-radius:.5rem;display:flex;gap:1rem;justify-content:flex-start;overflow:hidden;padding:1rem;width:20rem}.dss-tile--disabled{cursor:not-allowed;opacity:.6;pointer-events:none}.dss-tile__icon-container{align-items:center;background-color:var(--color-primary-100);border-radius:.75rem;color:var(--color-primary-700);display:flex;justify-content:center;padding:.75rem}.dss-tile__content{align-items:center;display:flex;flex:1 1 100%;gap:1rem;justify-content:space-between;min-width:0;width:100%}.dss-tile__content__text,.dss-tile__content__text .dss-tile__description,.dss-tile__content__text .dss-tile__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dss-tile__content__icon-button-group{display:flex;gap:.5rem}.dss-toast{align-items:center;border-radius:.5rem;bottom:1.875rem;display:flex;gap:1rem;justify-content:space-between;left:1.875rem;padding:1rem;position:absolute;transform:translate(calc(-100% - 2.5rem));transition:all .5s cubic-bezier(.68,-.55,.25,1.35);width:fit-content}.dss-toast .dss-toast__content{display:flex;gap:.5rem}.dss-toast .dss-toast__content .dss-toast__icon,.dss-toast .dss-toast__content .dss-toast__text{color:var(--color-white)}.dss-toast .dss-toast__content .dss-toast__icon{font-weight:var(--font-regular)!important}.dss-toast:has(.dss-toast__icon-button){padding-bottom:.75rem;padding-right:.75rem;padding-top:.75rem}.dss-toast--open{transform:translate(0)}.dss-toast--error{background-color:var(--color-red-500)}.dss-toast--warning{background-color:var(--color-yellow-500)}.dss-toast--warning .dss-toast__content .dss-toast__icon,.dss-toast--warning .dss-toast__content .dss-toast__text{color:var(--color-yellow-900)}.dss-toast--success{background-color:var(--color-green-500)}.dss-toast--info{background-color:var(--color-blue-500)}.dss-tooltip{cursor:pointer;display:flex;height:fit-content;position:relative;width:fit-content}.dss-tooltip:after{background-color:var(--color-neutral-800);border-radius:.375rem;color:#fff;content:attr(tooltip-text);cursor:default;font-family:var(--font-family);font-size:.875rem;font-weight:var(--font-regular);line-height:var(--line-24);max-width:20.5rem;padding:.5rem 1rem;position:absolute;white-space:normal;width:max-content;z-index:1}.dss-tooltip:before{border-radius:.1875rem;content:"";height:1rem;opacity:0;position:absolute;width:1rem;z-index:1}.dss-tooltip:after,.dss-tooltip:before{opacity:0;visibility:hidden}.dss-tooltip:hover:after,.dss-tooltip:hover:before{opacity:1;transition:all .3s ease-in;visibility:visible}.dss-tooltip--top:after{left:50%;top:0;transform:translate(-50%,calc(-100% - 15px))}.dss-tooltip--top:before{background:linear-gradient(to right bottom,transparent 0,transparent 63%,var(--color-neutral-800) 50%,var(--color-neutral-800) 100%);left:50%;top:0;transform:translate(-50%,calc(-100% - .625rem)) rotate(45deg)}.dss-tooltip--bottom:after{bottom:0;left:50%;transform:translate(-50%,calc(100% + 15px))}.dss-tooltip--bottom:before{background:linear-gradient(to top left,transparent 0,transparent 63%,var(--color-neutral-800) 50%,var(--color-neutral-800) 100%);bottom:0;left:50%;transform:translate(-50%,calc(100% + .625rem)) rotate(45deg)}.dss-tooltip--right:after{right:0;top:50%;transform:translate(calc(100% + 15px),-50%)}.dss-tooltip--right:before{background:linear-gradient(to bottom left,transparent 0,transparent 63%,var(--color-neutral-800) 50%,var(--color-neutral-800) 100%);right:0;top:50%;transform:translate(calc(100% + .625rem),-50%) rotate(45deg)}.dss-tooltip--left:after{left:0;top:50%;transform:translate(calc(-100% - 15px),-50%)}.dss-tooltip--left:before{background:linear-gradient(to top right,transparent 0,transparent 63%,var(--color-neutral-800) 50%,var(--color-neutral-800) 100%);left:0;top:50%;transform:translate(calc(-100% - .625rem),-50%) rotate(45deg)}.dss-footer__container{align-items:center;box-shadow:0 .0625rem .125rem #0000000d,0 .0625rem .1875rem .0625rem #0000001a;display:flex;flex-direction:column;padding:1.5rem}@media (min-width:48rem){.dss-footer__container{flex-direction:row;padding:1rem 1.5rem;width:100%}}.dss-footer__logo-content{display:flex;height:1.5rem;margin-bottom:1.5rem}@media (min-width:48rem){.dss-footer__logo-content{margin-bottom:0}}.dss-footer__content{align-items:center;display:flex;justify-content:center;width:100%}@media (min-width:48rem){.dss-footer__content{justify-content:space-between}}.dss-footer__content span{display:none}@media (min-width:48rem){.dss-footer__content span{display:block;margin-left:2rem;position:relative}.dss-footer__content span:before{background-color:var(--color-neutral-100);content:"";height:1.5rem;left:-1rem;margin:auto;position:absolute;top:-.25rem;width:.0625rem}}.dss-footer__link-content{align-items:center;display:flex;flex-direction:column;font-size:.875rem;font-weight:var(--font-semibold);gap:1rem}@media (min-width:48rem){.dss-footer__link-content{flex-direction:row;gap:1.5rem;margin-left:auto;margin-right:0}}.dss-form-field{align-items:center;display:flex;gap:.625rem;width:fit-content}.dss-form-field label{color:var(--color-neutral-900)}.dss-header{background-color:var(--color-white);box-shadow:0 .0625rem .125rem #0000000d,0 .0625rem .1875rem .0625rem #0000001a;display:flex;justify-content:space-between;padding:1rem 1.5rem}.dss-header__divider{background-color:var(--color-neutral-100);height:2.5rem;width:.0625rem}.dss-header__divider--only-device{display:block}@media screen and (min-width:48rem){.dss-header__divider--only-device{display:none}}.dss-header__identity,.dss-header__identity-content{align-items:center;display:flex}.dss-header__identity-content{gap:1.5rem}.dss-header__identity-content>.dss-header__logo{height:1.5rem}@media screen and (min-width:48rem){.dss-header__identity-content{padding:1rem 0}}.dss-header__identity>.dss-header__divider{display:none}@media screen and (min-width:62rem){.dss-header__identity>.dss-header__divider{display:block;margin:0 .5rem 0 1.5rem}}.dss-header__navigation{align-items:center;display:flex;gap:1.5rem}@media screen and (min-width:62rem){.dss-header__navigation{gap:.5rem}}.dss-header__project-name{display:none;font-size:1.25rem;font-weight:var(--font-bold);letter-spacing:0;line-height:1.875rem;text-align:left}@media screen and (min-width:48rem){.dss-header__project-name{display:block}}.dss-header__list-item{display:flex;gap:.5rem}.dss-header__item{align-items:center;color:var(--color-neutral-500);display:flex;width:auto}@media screen and (min-width:48rem){.dss-header__item{padding:1.5rem 1rem}}.dss-header__item>.dss-alert,.dss-header__item>.dss-subtitle--sm,.dss-table thead tr .dss-header__item>th,.dss-tabs__selector .dss-header__item>label,.dss-tile__content__text .dss-header__item>.dss-tile__title,.dss-toast .dss-header__item>.dss-toast__content{color:var(--color-neutral-500);display:none}@media screen and (min-width:48rem){.dss-header__item>.dss-alert,.dss-header__item>.dss-subtitle--sm,.dss-table thead tr .dss-header__item>th,.dss-tabs__selector .dss-header__item>label,.dss-tile__content__text .dss-header__item>.dss-tile__title,.dss-toast .dss-header__item>.dss-toast__content{display:block;margin-left:.5rem}}.dss-header__person{display:none;padding:.75rem 1rem}.dss-header__person--disabled{opacity:.4;pointer-events:none}.dss-header__person-content{display:flex;flex-direction:column;font-size:.875rem;font-weight:var(--font-semibold);line-height:var(--line-24)}.dss-header__person-name{color:var(--color-neutral-700)}.dss-header__person-name--linked{color:var(--color-primary-500);text-decoration:underline}.dss-header__person-details{color:var(--color-neutral-500);font-weight:var(--font-regular)}.dss-header__person-arrow{color:var(--color-primary-500);font-size:1.5rem}.dss-header__person:before{background-color:var(--color-neutral-100);content:"";height:1.5rem;left:-1rem;margin:auto;position:absolute;top:-.25rem;width:.0625rem}@media screen and (min-width:62rem){.dss-header__person{align-items:center;display:flex;gap:1rem}}.dss-header__menu-icon{cursor:pointer;display:block}@media screen and (min-width:62rem){.dss-header__menu-icon{display:none!important}}@media screen and (min-width:48rem){.dss-header{padding:0 1.5rem}.dss-header__item:hover,.dss-header__person:hover{background-color:var(--color-neutral-100);cursor:pointer;transition:all .3s ease-in}.dss-header__item:active,.dss-header__person:active{background-color:var(--color-neutral-50);transition:none}.dss-header__item:focus-visible,.dss-header__person:focus-visible{box-shadow:inset 0 0 0 .25rem var(--color-blue-200);outline:none;transition:none}}@media screen and (min-width:62rem){.dss-header{padding:0 .5rem 0 1.5rem}}.dss-modal{background-color:var(--color-white);border-radius:1rem;display:grid;padding:2rem;position:relative;width:36.5rem}.dss-modal .dss-chip__icon-button,.dss-modal .dss-icon-button,.dss-modal .dss-table td .dss-table__icon-button,.dss-modal .dss-table th .dss-table__icon-button,.dss-modal .dss-table__badge__icon-button,.dss-modal .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-modal .dss-toast__icon-button,.dss-table td .dss-modal .dss-table__icon-button,.dss-table th .dss-modal .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-modal .dss-tile__icon-button{display:flex;justify-self:end;margin-bottom:.5rem}.dss-modal__content{align-items:center;display:flex;flex-direction:column;gap:2rem;margin-bottom:2rem;text-align:center}.dss-modal__content .dss-modal__icon{height:4rem;width:4rem}.dss-modal__content .dss-form-field{align-items:flex-start;gap:.5rem}.dss-modal__content .dss-form-field label{text-align:left}.dss-modal__buttons{align-items:center;display:flex;gap:1.25rem;justify-content:center}dss-modal:not(:defined){display:none}.dss-module-header__container{align-items:center;display:flex;gap:1rem;justify-content:space-between}.dss-module-header:first-child{width:100%}.dss-module-header__child-container{align-items:center;display:inline-flex;flex-shrink:0;flex-wrap:wrap;gap:1rem}.dss-module-header__child-container .dss-module-header__vertical-line{background-color:var(--color-neutral-100);display:inline-block;height:1.5rem;margin:auto;width:.0625rem}.dss-sidebar{align-items:flex-end;display:flex;flex-direction:column;min-height:100%;padding:1rem .75rem;position:relative;transition:all .3s linear;width:7.875rem}.dss-sidebar:has(.dss-sidebar--collapse:checked){align-items:center;width:4rem}.dss-sidebar:has(.dss-sidebar--collapse:checked) .dss-sidebar__text{display:none}.dss-sidebar:has(.dss-sidebar--collapse:checked) .dss-sidebar__link{gap:0;padding:.5rem}.dss-sidebar--collapse{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:6.25rem;color:var(--color-primary-500);cursor:pointer;display:flex;font-size:32px;height:40px;margin-bottom:.5rem;padding:.25rem;transition:all .3s linear;width:40px}.dss-sidebar--collapse:after{content:"chevron_right";font-family:Material Symbols Rounded}.dss-sidebar--collapse:hover{background-color:var(--color-primary-100)}.dss-sidebar--collapse:active{background-color:var(--color-primary-50);transition:none}.dss-sidebar--collapse:disabled{cursor:not-allowed;opacity:.4;transition:none}.dss-sidebar--collapse:focus-visible{outline:.25rem solid var(--color-blue-200);transition:none}.dss-sidebar--collapse:checked:after{content:"chevron_left";font-family:Material Symbols Rounded}.dss-sidebar--collapse:checked+.dss-sidebar__nav .dss-sidebar__link{padding:.5rem}.dss-sidebar--collapse.dss-sidebar--reverse:after{content:"chevron_left";font-family:Material Symbols Rounded}.dss-sidebar--collapse.dss-sidebar--reverse:checked:after{content:"chevron_right"}.dss-sidebar__nav{align-items:flex-start;display:flex;flex-direction:column;gap:.5rem;width:100%}.dss-sidebar__nav .dss-sidebar__link{align-items:center;border-radius:.5rem;color:var(--color-neutral-500);cursor:pointer;display:flex;gap:.5rem;justify-content:flex-start;padding:.5rem .75rem .5rem .5rem;text-decoration:none}.dss-sidebar__nav .dss-sidebar__link--disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.dss-sidebar__nav .dss-sidebar__link:visited{color:var(--color-neutral-500)}.dss-sidebar__nav .dss-sidebar__link:hover{background-color:var(--color-primary-500);color:var(--color-white);transition:all .3s linear}.dss-sidebar__nav .dss-sidebar__link:active:enabled{background-color:var(--color-primary-600);color:var(--color-white)}.dss-sidebar__nav .dss-sidebar__link:focus-visible{background-color:var(--color-primary-500);color:var(--color-white);transition:none}.dss-sidebar__nav .dss-sidebar__link .dss-sidebar__icon{font-size:1.5rem}.dss-sidebar__nav .dss-sidebar__link .dss-sidebar__text{font-weight:var(--font-semibold);padding:0}.dss-checkbox:focus-visible:enabled,.dss-table .dss-table__checkbox:focus-visible:enabled,.dss-user-feedback__button-group button.dss-user-feedback__button-primary:focus-visible:enabled,.dss-user-feedback__button-group button.dss-user-feedback__button-secondary:focus-visible:enabled,button.dss-button:focus-visible:enabled,button.dss-table__button:focus-visible:enabled,button.dss-toast__button:focus-visible:enabled{outline:var(--dss-border-width-lg) solid var(--color-blue-200)}.dss-checkbox,.dss-table .dss-table__checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:var(--dss-border-width-sm) solid var(--color-primary-500);border-radius:.125rem;cursor:pointer;flex-shrink:0;height:1.25rem!important;margin:var(--dss-spacing-tiny);overflow:hidden;position:relative;transition:all .3s linear;width:1.25rem!important}.dss-checkbox.dss-checkbox--validate,.dss-table .dss-checkbox--validate.dss-table__checkbox{border-color:var(--color-neutral-700)}.dss-checkbox:hover,.dss-table .dss-table__checkbox:hover{border-color:var(--color-primary-600);transition:all .3s linear}.dss-checkbox:hover.dss-checkbox--validate,.dss-table .dss-table__checkbox:hover.dss-checkbox--validate{border-color:var(--color-neutral-800)}.dss-checkbox:active,.dss-table .dss-table__checkbox:active{border-color:var(--color-primary-400);transition:all .3s linear}.dss-checkbox:active.dss-checkbox--validate,.dss-table .dss-table__checkbox:active.dss-checkbox--validate{border-color:var(--color-neutral-500)}.dss-checkbox:checked,.dss-table .dss-table__checkbox:checked{background-color:var(--color-primary-500)}.dss-checkbox:checked.dss-checkbox--validate,.dss-table .dss-table__checkbox:checked.dss-checkbox--validate{background-color:var(--color-green-500);border-color:var(--color-green-500)}.dss-checkbox:checked:before,.dss-table .dss-table__checkbox:checked:before{color:var(--color-white);content:"check";font-family:Material Symbols Rounded;font-size:1.375rem;left:-2px;position:absolute;text-align:center;top:-4px}.dss-checkbox:checked:hover,.dss-table .dss-table__checkbox:checked:hover{background-color:var(--color-primary-600);border-color:var(--color-primary-600);transition:all .3s linear}.dss-checkbox:checked:hover.dss-checkbox--validate,.dss-table .dss-table__checkbox:checked:hover.dss-checkbox--validate{background-color:var(--color-green-600);border-color:var(--color-green-600)}.dss-checkbox:checked:active,.dss-table .dss-table__checkbox:checked:active{background-color:var(--color-primary-400);transition:all .3s linear}.dss-checkbox:checked:active.dss-checkbox--validate,.dss-table .dss-table__checkbox:checked:active.dss-checkbox--validate{background-color:var(--color-green-400);border-color:var(--color-green-400)}.dss-checkbox:indeterminate,.dss-table .dss-table__checkbox:indeterminate{background-color:var(--color-primary-500)}.dss-checkbox:indeterminate:before,.dss-table .dss-table__checkbox:indeterminate:before{color:var(--color-white);content:"remove";font-family:Material Symbols Rounded;font-size:1.125rem;position:absolute;top:-1px}.dss-checkbox:indeterminate.dss-checkbox--validate,.dss-table .dss-table__checkbox:indeterminate.dss-checkbox--validate{background-color:var(--color-green-500)}.dss-checkbox:disabled,.dss-table .dss-table__checkbox:disabled{border-color:var(--color-neutral-400);color:var(--color-neutral-900);cursor:not-allowed}.dss-checkbox:disabled:checked,.dss-table .dss-table__checkbox:disabled:checked{background-color:var(--color-neutral-300)}.dss-checkbox:disabled:checked:before,.dss-table .dss-table__checkbox:disabled:checked:before{color:var(--color-neutral-900)}.dss-checkbox:disabled:checked.dss-checkbox--validate:hover,.dss-table .dss-table__checkbox:disabled:checked.dss-checkbox--validate:hover{background-color:var(--color-neutral-300)}.dss-checkbox-label{cursor:pointer}.dss-chip__icon-button,.dss-icon-button,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-table__badge__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-toast__icon-button{align-items:center;background-color:transparent;border:none;border-radius:100%;cursor:pointer;display:flex;height:fit-content;justify-content:center;transition:all .3s ease-in;width:fit-content}.dss-icon-button--default{color:var(--color-neutral-700)}.dss-icon-button--default:hover:enabled{background-color:var(--color-neutral-100)}.dss-icon-button--default:active:enabled{background-color:var(--color-neutral-50);color:var(--color-neutral-900);transition:none}.dss-icon-button--default:disabled{color:var(--color-neutral-500);cursor:not-allowed}.dss-icon-button--default:focus-visible:enabled{outline:var(--dss-spacing-xxs) solid var(--color-blue-200);transition:none}.dss-icon-button--white-default,.dss-toast__icon-button{color:var(--color-white)}.dss-icon-button--white-default:hover:enabled,.dss-toast__icon-button:hover:enabled{background-color:var(--color-neutral-100)}.dss-icon-button--white-default:active:enabled,.dss-toast__icon-button:active:enabled{background-color:var(--color-neutral-50);transition:none}.dss-icon-button--white-default:disabled,.dss-toast__icon-button:disabled{cursor:not-allowed;opacity:.4}.dss-icon-button--white-default:focus-visible:enabled,.dss-toast__icon-button:focus-visible:enabled{outline:var(--dss-spacing-xxs) solid var(--color-blue-200);transition:none}.dss-icon-button--primary,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button{color:var(--color-primary-700)}.dss-icon-button--primary:hover:enabled,.dss-table td .dss-table__icon-button:hover:enabled,.dss-table th .dss-table__icon-button:hover:enabled,.dss-tile__content__icon-button-group .dss-tile__icon-button:hover:enabled{background-color:var(--color-primary-100);color:var(--color-primary-800)}.dss-icon-button--primary:active:enabled,.dss-table td .dss-table__icon-button:active:enabled,.dss-table th .dss-table__icon-button:active:enabled,.dss-tile__content__icon-button-group .dss-tile__icon-button:active:enabled{background-color:var(--color-primary-50);color:var(--color-primary-500);transition:none}.dss-icon-button--primary:disabled,.dss-table td .dss-table__icon-button:disabled,.dss-table th .dss-table__icon-button:disabled,.dss-tile__content__icon-button-group .dss-tile__icon-button:disabled{color:var(--color-neutral-500);cursor:not-allowed}.dss-icon-button--primary:focus-visible:enabled,.dss-table td .dss-table__icon-button:focus-visible:enabled,.dss-table th .dss-table__icon-button:focus-visible:enabled,.dss-tile__content__icon-button-group .dss-tile__icon-button:focus-visible:enabled{outline:var(--dss-spacing-xxs) solid var(--color-blue-200);transition:none}.dss-icon-button--error,.dss-table__badge--red .dss-table__badge__icon-button{color:var(--color-red-500)}.dss-icon-button--error:hover:enabled,.dss-table__badge--red .dss-table__badge__icon-button:hover:enabled{background-color:var(--color-red-100);color:var(--color-red-700)}.dss-icon-button--error:active:enabled,.dss-table__badge--red .dss-table__badge__icon-button:active:enabled{background-color:var(--color-red-50);color:var(--color-red-700);transition:none}.dss-icon-button--error:disabled,.dss-table__badge--red .dss-table__badge__icon-button:disabled{color:var(--color-neutral-500);cursor:not-allowed}.dss-icon-button--error:focus-visible:enabled,.dss-table__badge--red .dss-table__badge__icon-button:focus-visible:enabled{outline:var(--dss-spacing-xxs) solid var(--color-blue-200);transition:none}.dss-icon-button--warning,.dss-table__badge--yellow .dss-table__badge__icon-button,.dss-toast--warning .dss-toast__icon-button{color:var(--color-yellow-700)}.dss-icon-button--warning:hover:enabled,.dss-table__badge--yellow .dss-table__badge__icon-button:hover:enabled,.dss-toast--warning .dss-toast__icon-button:hover:enabled{background-color:var(--color-yellow-100)}.dss-icon-button--warning:active:enabled,.dss-table__badge--yellow .dss-table__badge__icon-button:active:enabled,.dss-toast--warning .dss-toast__icon-button:active:enabled{background-color:var(--color-yellow-50);transition:none}.dss-icon-button--warning:disabled,.dss-table__badge--yellow .dss-table__badge__icon-button:disabled,.dss-toast--warning .dss-toast__icon-button:disabled{color:var(--color-neutral-500);cursor:not-allowed}.dss-icon-button--warning:focus-visible:enabled,.dss-table__badge--yellow .dss-table__badge__icon-button:focus-visible:enabled,.dss-toast--warning .dss-toast__icon-button:focus-visible:enabled{outline:var(--dss-spacing-xxs) solid var(--color-blue-200);transition:none}.dss-icon-button--success,.dss-table__badge--green .dss-table__badge__icon-button{color:var(--color-green-500)}.dss-icon-button--success:hover:enabled,.dss-table__badge--green .dss-table__badge__icon-button:hover:enabled{background-color:var(--color-green-100);color:var(--color-green-700)}.dss-icon-button--success:active:enabled,.dss-table__badge--green .dss-table__badge__icon-button:active:enabled{background-color:var(--color-green-50);color:var(--color-green-700);transition:none}.dss-icon-button--success:disabled,.dss-table__badge--green .dss-table__badge__icon-button:disabled{color:var(--color-neutral-500);cursor:not-allowed}.dss-icon-button--success:focus-visible:enabled,.dss-table__badge--green .dss-table__badge__icon-button:focus-visible:enabled{outline:var(--dss-spacing-xxs) solid var(--color-blue-200);transition:none}.dss-icon-button--info{color:var(--color-blue-500)}.dss-icon-button--info:hover:enabled{background-color:var(--color-blue-100);color:var(--color-blue-700)}.dss-icon-button--info:active:enabled{background-color:var(--color-blue-50);color:var(--color-blue-700);transition:none}.dss-icon-button--info:disabled{color:var(--color-neutral-500);cursor:not-allowed}.dss-icon-button--info:focus-visible:enabled{outline:var(--dss-spacing-xxs) solid var(--color-blue-200);transition:none}.dss-icon-button--sm,.dss-table th .dss-table__icon-button,.dss-table__badge__icon-button{font-size:1rem;padding:var(--dss-spacing-xxs)}.dss-icon-button--md,.dss-table td .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-toast__icon-button{font-size:1.5rem;padding:var(--dss-spacing-xxs)}.dss-icon-button--lg{font-size:2rem;padding:var(--dss-spacing-xxs)}.dss-icon-button--xl{font-size:2.5rem;padding:var(--dss-spacing-xxs)}.dss-radio,.dss-table .dss-table__radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--color-white);border:.0625rem solid var(--color-primary-500);border-radius:50%;color:var(--color-primary-500);cursor:pointer;display:grid;flex-shrink:0;height:1.25rem;margin:.125rem;place-content:center;transform:translateY(-.075em);transition:all .3s linear;width:1.25rem}.dss-radio:before,.dss-table .dss-table__radio:before{background-color:var(--color-white);border-radius:50%;box-shadow:inset 1rem 1rem var(--color-primary-500);content:"";height:.625rem;transform:scale(0);transition:transform .3s ease-in-out;width:.625rem}.dss-radio:checked,.dss-table .dss-table__radio:checked{border:.0625rem solid var(--color-primary-500)}.dss-radio:checked:before,.dss-table .dss-table__radio:checked:before{box-shadow:inset 1rem 1rem var(--color-primary-500);transform:scale(1)}.dss-radio:checked:hover,.dss-table .dss-table__radio:checked:hover{border:.0625rem solid var(--color-primary-600);transition:all .3s linear}.dss-radio:checked:hover:before,.dss-table .dss-table__radio:checked:hover:before{box-shadow:inset 1rem 1rem var(--color-primary-600);transform:scale(1);transition:all .3s linear}.dss-radio:checked:disabled,.dss-table .dss-table__radio:checked:disabled{cursor:not-allowed}.dss-radio:checked:disabled:before,.dss-table .dss-table__radio:checked:disabled:before{box-shadow:inset 1rem 1rem var(--color-neutral-400)}.dss-radio:hover,.dss-table .dss-table__radio:hover{border:.0625rem solid var(--color-neutral-600);transition:all .3s linear}.dss-radio:disabled,.dss-table .dss-table__radio:disabled{border:.0625rem solid var(--color-neutral-400);cursor:not-allowed}.dss-radio:focus-visible:enabled,.dss-table .dss-table__radio:focus-visible:enabled{outline:.25rem solid var(--color-blue-200)}.dss-badge,.dss-table__badge{align-items:center;display:flex;font-size:.75rem;font-weight:var(--font-semibold);height:fit-content;justify-content:center;line-height:1rem;min-width:2.5rem;width:fit-content}.dss-badge .dss-badge__icon,.dss-table__badge .dss-badge__icon{font-size:1rem}.dss-badge--dot{border-radius:100%;display:inline-block;height:var(--dss-spacing-md);margin:auto;min-width:var(--dss-spacing-md);padding:0;width:var(--dss-spacing-md)}.dss-badge--dot>*{display:none;padding:0}.dss-badge--sm{border-radius:var(--dss-radius-xs);padding:0 var(--dss-spacing-xs)}.dss-badge--sm>:not(span){display:none}.dss-badge--md,.dss-table__badge{border-radius:var(--dss-radius-xs);padding:var(--dss-spacing-xxs) var(--dss-spacing-sm)}.dss-badge--md:has(.dss-badge__icon),.dss-table__badge:has(.dss-badge__icon){padding-left:var(--dss-spacing-xs)}.dss-badge--md:has(.dss-badge__icon) span,.dss-table__badge:has(.dss-badge__icon) span{margin-left:var(--dss-spacing-xs)}.dss-badge--md:has(.dss-icon-button,.dss-table__badge__icon-button,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-chip__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-toast__icon-button),.dss-table__badge:has(.dss-icon-button,.dss-table__badge__icon-button,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-chip__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-toast__icon-button){padding-bottom:0;padding-right:var(--dss-spacing-tiny);padding-top:0}.dss-badge--md:has(.dss-icon-button,.dss-table__badge__icon-button,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-chip__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-toast__icon-button) span,.dss-table__badge:has(.dss-icon-button,.dss-table__badge__icon-button,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-chip__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-toast__icon-button) span{margin-right:var(--dss-spacing-tiny)}.dss-badge--lg{border-radius:var(--dss-radius-sm);font-size:.875rem;line-height:1.5rem;padding:var(--dss-spacing-xxs) var(--dss-spacing-md)}.dss-badge--lg:has(.dss-badge__icon){padding-left:var(--dss-spacing-sm)}.dss-badge--lg:has(.dss-badge__icon) span{margin-left:var(--dss-spacing-xs)}.dss-badge--lg:has(.dss-icon-button,.dss-table__badge__icon-button,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-chip__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-toast__icon-button){padding-right:var(--dss-spacing-xxs)}.dss-badge--lg:has(.dss-icon-button,.dss-table__badge__icon-button,.dss-table td .dss-table__icon-button,.dss-table th .dss-table__icon-button,.dss-chip__icon-button,.dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-toast__icon-button) span{margin-right:var(--dss-spacing-xs)}.dss-badge--default{background-color:var(--color-neutral-100);color:var(--color-neutral-700)}.dss-badge--default.dss-badge--dot{background-color:var(--color-neutral-500)}.dss-badge--default.dss-badge--outline{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-neutral-500);color:var(--color-neutral-700)}.dss-badge--default.dss-badge--outline.dss-badge--dot{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-md) var(--color-neutral-500)}.dss-badge--red,.dss-table__badge--red{background-color:var(--color-red-100);color:var(--color-red-700)}.dss-badge--dot.dss-table__badge--red,.dss-badge--red.dss-badge--dot{background-color:var(--color-red-500)}.dss-badge--outline.dss-table__badge--red,.dss-badge--red.dss-badge--outline{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-red-500);color:var(--color-red-700)}.dss-badge--outline.dss-badge--dot.dss-table__badge--red,.dss-badge--red.dss-badge--outline.dss-badge--dot{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-md) var(--color-red-500)}.dss-badge--orange{background-color:var(--color-orange-100);color:var(--color-orange-700)}.dss-badge--orange.dss-badge--dot{background-color:var(--color-orange-500)}.dss-badge--orange.dss-badge--outline{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-orange-500);color:var(--color-orange-700)}.dss-badge--orange.dss-badge--outline.dss-badge--dot{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-md) var(--color-orange-500)}.dss-badge--yellow,.dss-table__badge--yellow{background-color:var(--color-yellow-100);color:var(--color-yellow-700)}.dss-badge--dot.dss-table__badge--yellow,.dss-badge--yellow.dss-badge--dot{background-color:var(--color-yellow-500)}.dss-badge--outline.dss-table__badge--yellow,.dss-badge--yellow.dss-badge--outline{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-yellow-500);color:var(--color-yellow-700)}.dss-badge--outline.dss-badge--dot.dss-table__badge--yellow,.dss-badge--yellow.dss-badge--outline.dss-badge--dot{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-md) var(--color-yellow-500)}.dss-badge--green,.dss-table__badge--green{background-color:var(--color-green-100);color:var(--color-green-700)}.dss-badge--dot.dss-table__badge--green,.dss-badge--green.dss-badge--dot{background-color:var(--color-green-500)}.dss-badge--green.dss-badge--outline,.dss-badge--outline.dss-table__badge--green{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-green-500);color:var(--color-green-700)}.dss-badge--green.dss-badge--outline.dss-badge--dot,.dss-badge--outline.dss-badge--dot.dss-table__badge--green{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-md) var(--color-green-500)}.dss-badge--blue{background-color:var(--color-blue-100);color:var(--color-blue-700)}.dss-badge--blue.dss-badge--dot{background-color:var(--color-blue-500)}.dss-badge--blue.dss-badge--outline{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-blue-500);color:var(--color-blue-700)}.dss-badge--blue.dss-badge--outline.dss-badge--dot{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-md) var(--color-blue-500)}.dss-badge--purple{background-color:var(--color-purple-100);color:var(--color-purple-700)}.dss-badge--purple.dss-badge--dot{background-color:var(--color-purple-500)}.dss-badge--purple.dss-badge--outline{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-purple-500);color:var(--color-purple-700)}.dss-badge--purple.dss-badge--outline.dss-badge--dot{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-md) var(--color-purple-500)}.dss-badge--danger{background-color:var(--color-red-100);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-red-100);color:var(--color-red-900)}.dss-badge--danger.dss-badge--dot{background-color:var(--color-red-100);background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14' fill='none'%3E%3Cpath fill='%23F0C5C5' stroke='%23651D1D' d='M7.566 1.268a.5.5 0 0 1 .868 0l6.277 10.984a.5.5 0 0 1-.434.748H1.723a.5.5 0 0 1-.434-.748z'/%3E%3C/svg%3E");background-repeat:no-repeat;border-radius:0;box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-red-900);box-shadow:none;height:14px;width:16px}.dss-badge--danger .dss-chip__icon-button,.dss-badge--danger .dss-icon-button,.dss-badge--danger .dss-table td .dss-table__icon-button,.dss-badge--danger .dss-table th .dss-table__icon-button,.dss-badge--danger .dss-table__badge__icon-button,.dss-badge--danger .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--danger .dss-toast__icon-button,.dss-table td .dss-badge--danger .dss-table__icon-button,.dss-table th .dss-badge--danger .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--danger .dss-tile__icon-button{color:var(--color-red-900);font-size:inherit}.dss-badge--danger .dss-chip__icon-button i,.dss-badge--danger .dss-icon-button i,.dss-badge--danger .dss-table td .dss-table__icon-button i,.dss-badge--danger .dss-table th .dss-table__icon-button i,.dss-badge--danger .dss-table__badge__icon-button i,.dss-badge--danger .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--danger .dss-toast__icon-button i,.dss-table td .dss-badge--danger .dss-table__icon-button i,.dss-table th .dss-badge--danger .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--danger .dss-tile__icon-button i{font-size:inherit}.dss-badge--danger-low{color:var(--color-red-900)}.dss-badge--danger-low,.dss-badge--danger-low.dss-badge--dot{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-red-500)}.dss-badge--danger-low.dss-badge--dot{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14' fill='none'%3E%3Cpath fill='%23FFF' stroke='%23B60000' d='M7.566 1.268a.5.5 0 0 1 .868 0l6.277 10.984a.5.5 0 0 1-.434.748H1.723a.5.5 0 0 1-.434-.748z'/%3E%3C/svg%3E");background-repeat:no-repeat;border-radius:0;box-shadow:none;height:14px;width:16px}.dss-badge--danger-low .dss-chip__icon-button,.dss-badge--danger-low .dss-icon-button,.dss-badge--danger-low .dss-table td .dss-table__icon-button,.dss-badge--danger-low .dss-table th .dss-table__icon-button,.dss-badge--danger-low .dss-table__badge__icon-button,.dss-badge--danger-low .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--danger-low .dss-toast__icon-button,.dss-table td .dss-badge--danger-low .dss-table__icon-button,.dss-table th .dss-badge--danger-low .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--danger-low .dss-tile__icon-button{color:var(--color-red-900);font-size:inherit}.dss-badge--danger-low .dss-chip__icon-button i,.dss-badge--danger-low .dss-icon-button i,.dss-badge--danger-low .dss-table td .dss-table__icon-button i,.dss-badge--danger-low .dss-table th .dss-table__icon-button i,.dss-badge--danger-low .dss-table__badge__icon-button i,.dss-badge--danger-low .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--danger-low .dss-toast__icon-button i,.dss-table td .dss-badge--danger-low .dss-table__icon-button i,.dss-table th .dss-badge--danger-low .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--danger-low .dss-tile__icon-button i{font-size:inherit}.dss-badge--danger-high{background-color:var(--color-red-500);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-red-500);color:var(--color-white)}.dss-badge--danger-high.dss-badge--dot{background-color:var(--color-red-500);background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14' fill='none'%3E%3Cpath fill='%23B60000' stroke='%23651D1D' d='M7.566 1.268a.5.5 0 0 1 .868 0l6.277 10.984a.5.5 0 0 1-.434.748H1.723a.5.5 0 0 1-.434-.748z'/%3E%3C/svg%3E");background-repeat:no-repeat;border-radius:0;box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-red-900);box-shadow:none;height:14px;width:16px}.dss-badge--danger-high .dss-chip__icon-button,.dss-badge--danger-high .dss-icon-button,.dss-badge--danger-high .dss-table td .dss-table__icon-button,.dss-badge--danger-high .dss-table th .dss-table__icon-button,.dss-badge--danger-high .dss-table__badge__icon-button,.dss-badge--danger-high .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--danger-high .dss-toast__icon-button,.dss-table td .dss-badge--danger-high .dss-table__icon-button,.dss-table th .dss-badge--danger-high .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--danger-high .dss-tile__icon-button{color:var(--color-white);font-size:inherit}.dss-badge--danger-high .dss-chip__icon-button i,.dss-badge--danger-high .dss-icon-button i,.dss-badge--danger-high .dss-table td .dss-table__icon-button i,.dss-badge--danger-high .dss-table th .dss-table__icon-button i,.dss-badge--danger-high .dss-table__badge__icon-button i,.dss-badge--danger-high .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--danger-high .dss-toast__icon-button i,.dss-table td .dss-badge--danger-high .dss-table__icon-button i,.dss-table th .dss-badge--danger-high .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--danger-high .dss-tile__icon-button i{font-size:inherit}.dss-badge--moderate{background-color:var(--color-orange-100);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-orange-100);color:var(--color-orange-900)}.dss-badge--moderate.dss-badge--dot{background-color:var(--color-orange-100);background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath fill='%23FFE1A6' stroke='%23391B00' d='M1.06 8.354a.5.5 0 0 1 0-.708l6.586-6.585a.5.5 0 0 1 .708 0l6.585 6.585a.5.5 0 0 1 0 .708l-6.585 6.585a.5.5 0 0 1-.708 0z'/%3E%3C/svg%3E");background-repeat:no-repeat;border-radius:0;box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-orange-900);box-shadow:none;height:16px;width:16px}.dss-badge--moderate .dss-chip__icon-button,.dss-badge--moderate .dss-icon-button,.dss-badge--moderate .dss-table td .dss-table__icon-button,.dss-badge--moderate .dss-table th .dss-table__icon-button,.dss-badge--moderate .dss-table__badge__icon-button,.dss-badge--moderate .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--moderate .dss-toast__icon-button,.dss-table td .dss-badge--moderate .dss-table__icon-button,.dss-table th .dss-badge--moderate .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--moderate .dss-tile__icon-button{color:var(--color-orange-900);font-size:inherit}.dss-badge--moderate .dss-chip__icon-button i,.dss-badge--moderate .dss-icon-button i,.dss-badge--moderate .dss-table td .dss-table__icon-button i,.dss-badge--moderate .dss-table th .dss-table__icon-button i,.dss-badge--moderate .dss-table__badge__icon-button i,.dss-badge--moderate .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--moderate .dss-toast__icon-button i,.dss-table td .dss-badge--moderate .dss-table__icon-button i,.dss-table th .dss-badge--moderate .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--moderate .dss-tile__icon-button i{font-size:inherit}.dss-badge--moderate-low{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-orange-500);color:var(--color-orange-900)}.dss-badge--moderate-low.dss-badge--dot{background-color:var(--color-white);background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath fill='%23FFF' stroke='%23391B00' d='M1.06 8.354a.5.5 0 0 1 0-.708l6.586-6.585a.5.5 0 0 1 .708 0l6.585 6.585a.5.5 0 0 1 0 .708l-6.585 6.585a.5.5 0 0 1-.708 0z'/%3E%3C/svg%3E");background-repeat:no-repeat;border-radius:0;box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-orange-900);box-shadow:none;height:16px;width:16px}.dss-badge--moderate-low .dss-chip__icon-button,.dss-badge--moderate-low .dss-icon-button,.dss-badge--moderate-low .dss-table td .dss-table__icon-button,.dss-badge--moderate-low .dss-table th .dss-table__icon-button,.dss-badge--moderate-low .dss-table__badge__icon-button,.dss-badge--moderate-low .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--moderate-low .dss-toast__icon-button,.dss-table td .dss-badge--moderate-low .dss-table__icon-button,.dss-table th .dss-badge--moderate-low .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--moderate-low .dss-tile__icon-button{color:var(--color-orange-900);font-size:inherit}.dss-badge--moderate-low .dss-chip__icon-button i,.dss-badge--moderate-low .dss-icon-button i,.dss-badge--moderate-low .dss-table td .dss-table__icon-button i,.dss-badge--moderate-low .dss-table th .dss-table__icon-button i,.dss-badge--moderate-low .dss-table__badge__icon-button i,.dss-badge--moderate-low .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--moderate-low .dss-toast__icon-button i,.dss-table td .dss-badge--moderate-low .dss-table__icon-button i,.dss-table th .dss-badge--moderate-low .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--moderate-low .dss-tile__icon-button i{font-size:inherit}.dss-badge--moderate-high{background-color:var(--color-orange-500);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-orange-500);color:var(--color-orange-900)}.dss-badge--moderate-high.dss-badge--dot{background-color:var(--color-orange-500);background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath fill='%23FDB322' stroke='%23391B00' d='M1.06 8.354a.5.5 0 0 1 0-.708l6.586-6.585a.5.5 0 0 1 .708 0l6.585 6.585a.5.5 0 0 1 0 .708l-6.585 6.585a.5.5 0 0 1-.708 0z'/%3E%3C/svg%3E");background-repeat:no-repeat;border-radius:0;box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-orange-900);box-shadow:none;height:16px;width:16px}.dss-badge--moderate-high .dss-chip__icon-button,.dss-badge--moderate-high .dss-icon-button,.dss-badge--moderate-high .dss-table td .dss-table__icon-button,.dss-badge--moderate-high .dss-table th .dss-table__icon-button,.dss-badge--moderate-high .dss-table__badge__icon-button,.dss-badge--moderate-high .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--moderate-high .dss-toast__icon-button,.dss-table td .dss-badge--moderate-high .dss-table__icon-button,.dss-table th .dss-badge--moderate-high .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--moderate-high .dss-tile__icon-button{color:var(--color-orange-900);font-size:inherit}.dss-badge--moderate-high .dss-chip__icon-button i,.dss-badge--moderate-high .dss-icon-button i,.dss-badge--moderate-high .dss-table td .dss-table__icon-button i,.dss-badge--moderate-high .dss-table th .dss-table__icon-button i,.dss-badge--moderate-high .dss-table__badge__icon-button i,.dss-badge--moderate-high .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--moderate-high .dss-toast__icon-button i,.dss-table td .dss-badge--moderate-high .dss-table__icon-button i,.dss-table th .dss-badge--moderate-high .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--moderate-high .dss-tile__icon-button i{font-size:inherit}.dss-badge--slight{background-color:var(--color-yellow-100);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-yellow-100);color:var(--color-yellow-900)}.dss-badge--slight.dss-badge--dot{background-color:var(--color-yellow-100);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-yellow-900)}.dss-badge--slight .dss-chip__icon-button,.dss-badge--slight .dss-icon-button,.dss-badge--slight .dss-table td .dss-table__icon-button,.dss-badge--slight .dss-table th .dss-table__icon-button,.dss-badge--slight .dss-table__badge__icon-button,.dss-badge--slight .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--slight .dss-toast__icon-button,.dss-table td .dss-badge--slight .dss-table__icon-button,.dss-table th .dss-badge--slight .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--slight .dss-tile__icon-button{color:var(--color-yellow-900);font-size:inherit}.dss-badge--slight .dss-chip__icon-button i,.dss-badge--slight .dss-icon-button i,.dss-badge--slight .dss-table td .dss-table__icon-button i,.dss-badge--slight .dss-table th .dss-table__icon-button i,.dss-badge--slight .dss-table__badge__icon-button i,.dss-badge--slight .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--slight .dss-toast__icon-button i,.dss-table td .dss-badge--slight .dss-table__icon-button i,.dss-table th .dss-badge--slight .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--slight .dss-tile__icon-button i{font-size:inherit}.dss-badge--slight-low{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-yellow-500);color:var(--color-yellow-900)}.dss-badge--slight-low.dss-badge--dot{background-color:var(--color-white);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-yellow-900)}.dss-badge--slight-low .dss-chip__icon-button,.dss-badge--slight-low .dss-icon-button,.dss-badge--slight-low .dss-table td .dss-table__icon-button,.dss-badge--slight-low .dss-table th .dss-table__icon-button,.dss-badge--slight-low .dss-table__badge__icon-button,.dss-badge--slight-low .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--slight-low .dss-toast__icon-button,.dss-table td .dss-badge--slight-low .dss-table__icon-button,.dss-table th .dss-badge--slight-low .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--slight-low .dss-tile__icon-button{color:var(--color-yellow-900);font-size:inherit}.dss-badge--slight-low .dss-chip__icon-button i,.dss-badge--slight-low .dss-icon-button i,.dss-badge--slight-low .dss-table td .dss-table__icon-button i,.dss-badge--slight-low .dss-table th .dss-table__icon-button i,.dss-badge--slight-low .dss-table__badge__icon-button i,.dss-badge--slight-low .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--slight-low .dss-toast__icon-button i,.dss-table td .dss-badge--slight-low .dss-table__icon-button i,.dss-table th .dss-badge--slight-low .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--slight-low .dss-tile__icon-button i{font-size:inherit}.dss-badge--slight-high{background-color:var(--color-yellow-500);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-yellow-500);color:var(--color-yellow-900)}.dss-badge--slight-high.dss-badge--dot{background-color:var(--color-yellow-500);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-yellow-900)}.dss-badge--slight-high .dss-chip__icon-button,.dss-badge--slight-high .dss-icon-button,.dss-badge--slight-high .dss-table td .dss-table__icon-button,.dss-badge--slight-high .dss-table th .dss-table__icon-button,.dss-badge--slight-high .dss-table__badge__icon-button,.dss-badge--slight-high .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--slight-high .dss-toast__icon-button,.dss-table td .dss-badge--slight-high .dss-table__icon-button,.dss-table th .dss-badge--slight-high .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--slight-high .dss-tile__icon-button{color:var(--color-yellow-900);font-size:inherit}.dss-badge--slight-high .dss-chip__icon-button i,.dss-badge--slight-high .dss-icon-button i,.dss-badge--slight-high .dss-table td .dss-table__icon-button i,.dss-badge--slight-high .dss-table th .dss-table__icon-button i,.dss-badge--slight-high .dss-table__badge__icon-button i,.dss-badge--slight-high .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--slight-high .dss-toast__icon-button i,.dss-table td .dss-badge--slight-high .dss-table__icon-button i,.dss-table th .dss-badge--slight-high .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--slight-high .dss-tile__icon-button i{font-size:inherit}.dss-badge--correct{background-color:var(--color-green-100);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-green-100);color:var(--color-green-900)}.dss-badge--correct.dss-badge--dot{background-color:var(--color-green-100);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-green-900)}.dss-badge--correct .dss-chip__icon-button,.dss-badge--correct .dss-icon-button,.dss-badge--correct .dss-table td .dss-table__icon-button,.dss-badge--correct .dss-table th .dss-table__icon-button,.dss-badge--correct .dss-table__badge__icon-button,.dss-badge--correct .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--correct .dss-toast__icon-button,.dss-table td .dss-badge--correct .dss-table__icon-button,.dss-table th .dss-badge--correct .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--correct .dss-tile__icon-button{color:var(--color-green-900);font-size:inherit}.dss-badge--correct .dss-chip__icon-button i,.dss-badge--correct .dss-icon-button i,.dss-badge--correct .dss-table td .dss-table__icon-button i,.dss-badge--correct .dss-table th .dss-table__icon-button i,.dss-badge--correct .dss-table__badge__icon-button i,.dss-badge--correct .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--correct .dss-toast__icon-button i,.dss-table td .dss-badge--correct .dss-table__icon-button i,.dss-table th .dss-badge--correct .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--correct .dss-tile__icon-button i{font-size:inherit}.dss-badge--undeterminated{color:var(--color-neutral-900)}.dss-badge--undeterminated,.dss-badge--undeterminated.dss-badge--dot{background-color:var(--color-neutral-100);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-neutral-900)}.dss-badge--undeterminated .dss-chip__icon-button,.dss-badge--undeterminated .dss-icon-button,.dss-badge--undeterminated .dss-table td .dss-table__icon-button,.dss-badge--undeterminated .dss-table th .dss-table__icon-button,.dss-badge--undeterminated .dss-table__badge__icon-button,.dss-badge--undeterminated .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--undeterminated .dss-toast__icon-button,.dss-table td .dss-badge--undeterminated .dss-table__icon-button,.dss-table th .dss-badge--undeterminated .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--undeterminated .dss-tile__icon-button{color:var(--color-neutral-900);font-size:inherit}.dss-badge--undeterminated .dss-chip__icon-button i,.dss-badge--undeterminated .dss-icon-button i,.dss-badge--undeterminated .dss-table td .dss-table__icon-button i,.dss-badge--undeterminated .dss-table th .dss-table__icon-button i,.dss-badge--undeterminated .dss-table__badge__icon-button i,.dss-badge--undeterminated .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--undeterminated .dss-toast__icon-button i,.dss-table td .dss-badge--undeterminated .dss-table__icon-button i,.dss-table th .dss-badge--undeterminated .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--undeterminated .dss-tile__icon-button i{font-size:inherit}.dss-badge--critic{color:var(--color-white)}.dss-badge--critic,.dss-badge--critic.dss-badge--dot{background-color:var(--color-red-500)}.dss-badge--critic.dss-badge--outline{color:var(--color-red-800)}.dss-badge--critic.dss-badge--outline,.dss-badge--critic.dss-badge--outline.dss-badge--dot{background-color:var(--color-red-50);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-red-800)}.dss-badge--critic.dss-badge--outline .dss-chip__icon-button,.dss-badge--critic.dss-badge--outline .dss-icon-button,.dss-badge--critic.dss-badge--outline .dss-table td .dss-table__icon-button,.dss-badge--critic.dss-badge--outline .dss-table th .dss-table__icon-button,.dss-badge--critic.dss-badge--outline .dss-table__badge__icon-button,.dss-badge--critic.dss-badge--outline .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--critic.dss-badge--outline .dss-toast__icon-button,.dss-table td .dss-badge--critic.dss-badge--outline .dss-table__icon-button,.dss-table th .dss-badge--critic.dss-badge--outline .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--critic.dss-badge--outline .dss-tile__icon-button{color:var(--color-red-800)}.dss-badge--critic .dss-chip__icon-button,.dss-badge--critic .dss-icon-button,.dss-badge--critic .dss-table td .dss-table__icon-button,.dss-badge--critic .dss-table th .dss-table__icon-button,.dss-badge--critic .dss-table__badge__icon-button,.dss-badge--critic .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--critic .dss-toast__icon-button,.dss-table td .dss-badge--critic .dss-table__icon-button,.dss-table th .dss-badge--critic .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--critic .dss-tile__icon-button{color:var(--color-white);font-size:inherit}.dss-badge--critic .dss-chip__icon-button i,.dss-badge--critic .dss-icon-button i,.dss-badge--critic .dss-table td .dss-table__icon-button i,.dss-badge--critic .dss-table th .dss-table__icon-button i,.dss-badge--critic .dss-table__badge__icon-button i,.dss-badge--critic .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--critic .dss-toast__icon-button i,.dss-table td .dss-badge--critic .dss-table__icon-button i,.dss-table th .dss-badge--critic .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--critic .dss-tile__icon-button i{font-size:inherit}.dss-badge--alert{color:var(--color-black)}.dss-badge--alert,.dss-badge--alert.dss-badge--dot{background-color:var(--color-yellow-500)}.dss-badge--alert.dss-badge--outline{color:var(--color-yellow-800)}.dss-badge--alert.dss-badge--outline,.dss-badge--alert.dss-badge--outline.dss-badge--dot{background-color:var(--color-yellow-50);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-yellow-800)}.dss-badge--alert.dss-badge--outline .dss-chip__icon-button,.dss-badge--alert.dss-badge--outline .dss-icon-button,.dss-badge--alert.dss-badge--outline .dss-table td .dss-table__icon-button,.dss-badge--alert.dss-badge--outline .dss-table th .dss-table__icon-button,.dss-badge--alert.dss-badge--outline .dss-table__badge__icon-button,.dss-badge--alert.dss-badge--outline .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--alert.dss-badge--outline .dss-toast__icon-button,.dss-table td .dss-badge--alert.dss-badge--outline .dss-table__icon-button,.dss-table th .dss-badge--alert.dss-badge--outline .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--alert.dss-badge--outline .dss-tile__icon-button{color:var(--color-yellow-800)}.dss-badge--alert .dss-chip__icon-button,.dss-badge--alert .dss-icon-button,.dss-badge--alert .dss-table td .dss-table__icon-button,.dss-badge--alert .dss-table th .dss-table__icon-button,.dss-badge--alert .dss-table__badge__icon-button,.dss-badge--alert .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--alert .dss-toast__icon-button,.dss-table td .dss-badge--alert .dss-table__icon-button,.dss-table th .dss-badge--alert .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--alert .dss-tile__icon-button{color:var(--color-black);font-size:inherit}.dss-badge--alert .dss-chip__icon-button i,.dss-badge--alert .dss-icon-button i,.dss-badge--alert .dss-table td .dss-table__icon-button i,.dss-badge--alert .dss-table th .dss-table__icon-button i,.dss-badge--alert .dss-table__badge__icon-button i,.dss-badge--alert .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--alert .dss-toast__icon-button i,.dss-table td .dss-badge--alert .dss-table__icon-button i,.dss-table th .dss-badge--alert .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--alert .dss-tile__icon-button i{font-size:inherit}.dss-badge--ideal{color:var(--color-white)}.dss-badge--ideal,.dss-badge--ideal.dss-badge--dot{background-color:var(--color-green-500)}.dss-badge--ideal.dss-badge--outline{color:var(--color-green-800)}.dss-badge--ideal.dss-badge--outline,.dss-badge--ideal.dss-badge--outline.dss-badge--dot{background-color:var(--color-green-50);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-green-800)}.dss-badge--ideal.dss-badge--outline .dss-chip__icon-button,.dss-badge--ideal.dss-badge--outline .dss-icon-button,.dss-badge--ideal.dss-badge--outline .dss-table td .dss-table__icon-button,.dss-badge--ideal.dss-badge--outline .dss-table th .dss-table__icon-button,.dss-badge--ideal.dss-badge--outline .dss-table__badge__icon-button,.dss-badge--ideal.dss-badge--outline .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--ideal.dss-badge--outline .dss-toast__icon-button,.dss-table td .dss-badge--ideal.dss-badge--outline .dss-table__icon-button,.dss-table th .dss-badge--ideal.dss-badge--outline .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--ideal.dss-badge--outline .dss-tile__icon-button{color:var(--color-green-800)}.dss-badge--ideal .dss-chip__icon-button,.dss-badge--ideal .dss-icon-button,.dss-badge--ideal .dss-table td .dss-table__icon-button,.dss-badge--ideal .dss-table th .dss-table__icon-button,.dss-badge--ideal .dss-table__badge__icon-button,.dss-badge--ideal .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--ideal .dss-toast__icon-button,.dss-table td .dss-badge--ideal .dss-table__icon-button,.dss-table th .dss-badge--ideal .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--ideal .dss-tile__icon-button{color:var(--color-white);font-size:inherit}.dss-badge--ideal .dss-chip__icon-button i,.dss-badge--ideal .dss-icon-button i,.dss-badge--ideal .dss-table td .dss-table__icon-button i,.dss-badge--ideal .dss-table th .dss-table__icon-button i,.dss-badge--ideal .dss-table__badge__icon-button i,.dss-badge--ideal .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--ideal .dss-toast__icon-button i,.dss-table td .dss-badge--ideal .dss-table__icon-button i,.dss-table th .dss-badge--ideal .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--ideal .dss-tile__icon-button i{font-size:inherit}.dss-badge--info{color:var(--color-white)}.dss-badge--info,.dss-badge--info.dss-badge--dot{background-color:var(--color-blue-500)}.dss-badge--info.dss-badge--outline{color:var(--color-blue-800)}.dss-badge--info.dss-badge--outline,.dss-badge--info.dss-badge--outline.dss-badge--dot{background-color:var(--color-blue-50);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-blue-800)}.dss-badge--info.dss-badge--outline .dss-chip__icon-button,.dss-badge--info.dss-badge--outline .dss-icon-button,.dss-badge--info.dss-badge--outline .dss-table td .dss-table__icon-button,.dss-badge--info.dss-badge--outline .dss-table th .dss-table__icon-button,.dss-badge--info.dss-badge--outline .dss-table__badge__icon-button,.dss-badge--info.dss-badge--outline .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--info.dss-badge--outline .dss-toast__icon-button,.dss-table td .dss-badge--info.dss-badge--outline .dss-table__icon-button,.dss-table th .dss-badge--info.dss-badge--outline .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--info.dss-badge--outline .dss-tile__icon-button{color:var(--color-blue-800)}.dss-badge--info .dss-chip__icon-button,.dss-badge--info .dss-icon-button,.dss-badge--info .dss-table td .dss-table__icon-button,.dss-badge--info .dss-table th .dss-table__icon-button,.dss-badge--info .dss-table__badge__icon-button,.dss-badge--info .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--info .dss-toast__icon-button,.dss-table td .dss-badge--info .dss-table__icon-button,.dss-table th .dss-badge--info .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--info .dss-tile__icon-button{color:var(--color-white);font-size:inherit}.dss-badge--info .dss-chip__icon-button i,.dss-badge--info .dss-icon-button i,.dss-badge--info .dss-table td .dss-table__icon-button i,.dss-badge--info .dss-table th .dss-table__icon-button i,.dss-badge--info .dss-table__badge__icon-button i,.dss-badge--info .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--info .dss-toast__icon-button i,.dss-table td .dss-badge--info .dss-table__icon-button i,.dss-table th .dss-badge--info .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--info .dss-tile__icon-button i{font-size:inherit}.dss-badge--info-alt{color:var(--color-white)}.dss-badge--info-alt,.dss-badge--info-alt.dss-badge--dot{background-color:var(--color-purple-500)}.dss-badge--info-alt.dss-badge--outline{color:var(--color-purple-800)}.dss-badge--info-alt.dss-badge--outline,.dss-badge--info-alt.dss-badge--outline.dss-badge--dot{background-color:var(--color-purple-50);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-purple-800)}.dss-badge--info-alt.dss-badge--outline .dss-chip__icon-button,.dss-badge--info-alt.dss-badge--outline .dss-icon-button,.dss-badge--info-alt.dss-badge--outline .dss-table td .dss-table__icon-button,.dss-badge--info-alt.dss-badge--outline .dss-table th .dss-table__icon-button,.dss-badge--info-alt.dss-badge--outline .dss-table__badge__icon-button,.dss-badge--info-alt.dss-badge--outline .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--info-alt.dss-badge--outline .dss-toast__icon-button,.dss-table td .dss-badge--info-alt.dss-badge--outline .dss-table__icon-button,.dss-table th .dss-badge--info-alt.dss-badge--outline .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--info-alt.dss-badge--outline .dss-tile__icon-button{color:var(--color-purple-800)}.dss-badge--info-alt .dss-chip__icon-button,.dss-badge--info-alt .dss-icon-button,.dss-badge--info-alt .dss-table td .dss-table__icon-button,.dss-badge--info-alt .dss-table th .dss-table__icon-button,.dss-badge--info-alt .dss-table__badge__icon-button,.dss-badge--info-alt .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--info-alt .dss-toast__icon-button,.dss-table td .dss-badge--info-alt .dss-table__icon-button,.dss-table th .dss-badge--info-alt .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--info-alt .dss-tile__icon-button{color:var(--color-white);font-size:inherit}.dss-badge--info-alt .dss-chip__icon-button i,.dss-badge--info-alt .dss-icon-button i,.dss-badge--info-alt .dss-table td .dss-table__icon-button i,.dss-badge--info-alt .dss-table th .dss-table__icon-button i,.dss-badge--info-alt .dss-table__badge__icon-button i,.dss-badge--info-alt .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--info-alt .dss-toast__icon-button i,.dss-table td .dss-badge--info-alt .dss-table__icon-button i,.dss-table th .dss-badge--info-alt .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--info-alt .dss-tile__icon-button i{font-size:inherit}.dss-badge--neutral{color:var(--color-white)}.dss-badge--neutral,.dss-badge--neutral.dss-badge--dot{background-color:var(--color-neutral-500)}.dss-badge--neutral.dss-badge--outline{color:var(--color-neutral-900)}.dss-badge--neutral.dss-badge--outline,.dss-badge--neutral.dss-badge--outline.dss-badge--dot{background-color:var(--color-neutral-50);box-shadow:inset 0 0 0 var(--dss-border-width-sm) var(--color-neutral-900)}.dss-badge--neutral.dss-badge--outline .dss-chip__icon-button,.dss-badge--neutral.dss-badge--outline .dss-icon-button,.dss-badge--neutral.dss-badge--outline .dss-table td .dss-table__icon-button,.dss-badge--neutral.dss-badge--outline .dss-table th .dss-table__icon-button,.dss-badge--neutral.dss-badge--outline .dss-table__badge__icon-button,.dss-badge--neutral.dss-badge--outline .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--neutral.dss-badge--outline .dss-toast__icon-button,.dss-table td .dss-badge--neutral.dss-badge--outline .dss-table__icon-button,.dss-table th .dss-badge--neutral.dss-badge--outline .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--neutral.dss-badge--outline .dss-tile__icon-button{color:var(--color-neutral-900)}.dss-badge--neutral .dss-chip__icon-button,.dss-badge--neutral .dss-icon-button,.dss-badge--neutral .dss-table td .dss-table__icon-button,.dss-badge--neutral .dss-table th .dss-table__icon-button,.dss-badge--neutral .dss-table__badge__icon-button,.dss-badge--neutral .dss-tile__content__icon-button-group .dss-tile__icon-button,.dss-badge--neutral .dss-toast__icon-button,.dss-table td .dss-badge--neutral .dss-table__icon-button,.dss-table th .dss-badge--neutral .dss-table__icon-button,.dss-tile__content__icon-button-group .dss-badge--neutral .dss-tile__icon-button{color:var(--color-white);font-size:inherit}.dss-badge--neutral .dss-chip__icon-button i,.dss-badge--neutral .dss-icon-button i,.dss-badge--neutral .dss-table td .dss-table__icon-button i,.dss-badge--neutral .dss-table th .dss-table__icon-button i,.dss-badge--neutral .dss-table__badge__icon-button i,.dss-badge--neutral .dss-tile__content__icon-button-group .dss-tile__icon-button i,.dss-badge--neutral .dss-toast__icon-button i,.dss-table td .dss-badge--neutral .dss-table__icon-button i,.dss-table th .dss-badge--neutral .dss-table__icon-button i,.dss-tile__content__icon-button-group .dss-badge--neutral .dss-tile__icon-button i{font-size:inherit}@font-face{font-family:Material Symbols Rounded;font-style:normal;src:url(../4ebe18c53c6d0f0661ea.woff2) format("woff")}.dss-icon,.material-symbols,.material-symbols-rounded{display:inline-block;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1;text-transform:none;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";white-space:nowrap;-webkit-font-smoothing:antialiased;font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24}.dss-icon,.material-symbols-rounded{font-family:Material Symbols Rounded}.dss-icon--fill,.material-symbols-rounded--fill{font-variation-settings:"FILL" 1}:root{--icon-size-sm:1rem;--icon-size-md:1.5rem;--icon-size-lg:2rem;--icon-size-xl:2.5rem}.dss-icon--sm,.dss-table__status i{font-size:var(--icon-size-sm);height:var(--icon-size-sm);width:var(--icon-size-sm)}.dss-icon--md,.dss-table .dss-table__badge-warning-container .dss-table__badge-warning-icon,.dss-tile__icon-container .dss-tile__icon-item,.dss-toast .dss-toast__content .dss-toast__icon{font-size:var(--icon-size-md);height:var(--icon-size-md);width:var(--icon-size-md)}.dss-icon--lg{font-size:var(--icon-size-lg);height:var(--icon-size-lg);width:var(--icon-size-lg)}.dss-icon--xl{font-size:var(--icon-size-xl);height:var(--icon-size-xl);width:var(--icon-size-xl)}.dss-table{border-collapse:collapse;border-spacing:0;width:100%}.dss-table thead tr th{box-shadow:inset 0 -.125rem 0 0 var(--color-neutral-700)}.dss-table tbody tr td{box-shadow:inset 0 -.0625rem 0 0 var(--color-neutral-100)}.dss-table tbody tr td:empty:before{content:"remove";display:flex;font-family:Material Symbols Rounded;font-size:1.5rem;justify-content:flex-end}.dss-table td,.dss-table th{padding:1rem;text-align:left}.dss-table th .dss-table__icon-button{margin:auto}.dss-table th:has(.dss-table__checkbox)>*,.dss-table th:has(.dss-table__icon-button)>*{align-items:center;display:flex;justify-content:center;margin:auto}.dss-table td>*{align-items:center;display:flex;justify-content:flex-start;margin:auto}.dss-table td:has(.dss-table--nested)>*{display:inline-table}.dss-table td:has(.dss-table__review){padding:.75rem}.dss-table td:has(.dss-table__badge-container)>*,.dss-table td:has(.dss-table__badge-warning-container)>*{display:flex;justify-content:flex-end;margin:0}.dss-table td:has(.dss-table__button)>*,.dss-table td:has(.dss-table__checkbox)>*,.dss-table td:has(.dss-table__icon-button-container)>*,.dss-table td:has(.dss-table__radiobutton)>*,.dss-table td:has(.dss-table__review)>*{align-items:center;display:flex;justify-content:center;margin:auto}.dss-table td:has(.dss-table__checkbox),.dss-table td:has(.dss-table__icon-button:first-child),.dss-table td:has(.dss-table__radiobutton){width:3.5rem}.dss-table td:has(.dss-table__icon-button:nth-child(2)){width:6rem}.dss-table td:has(.dss-table__icon-button:nth-child(2))>.dss-table__icon-button-container{gap:1rem}.dss-table td:has(.dss-table__icon-button:nth-child(3)){width:8.5rem}.dss-table td:has(.dss-table__icon-button:nth-child(3))>.dss-table__icon-button-container{gap:1rem}.dss-table__text{display:-webkit-box!important;overflow:hidden;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.dss-table--align-center td,.dss-table--align-center th{text-align:center}.dss-table--align-center td>*{align-items:center;display:flex;justify-content:center;margin:auto}.dss-table--align-right td,.dss-table--align-right th{text-align:right}.dss-table--align-right td>*{margin:0 0 auto auto}.dss-table__cell--align-center{margin:auto;text-align:center!important}.dss-table__cell--align-center>*{display:flex;justify-content:center!important;margin:0!important}.dss-table__cell--align-right{margin:0 0 auto auto;text-align:right!important}.dss-table__cell--align-right>*{display:flex;justify-content:flex-end!important;margin:0!important}.dss-table--black,.dss-table--bold{font-weight:var(--font-bold)}.dss-table--black{color:var(--color-neutral-900)}.dss-table__status{align-items:center;display:flex;gap:.5rem;justify-content:flex-start;margin:0!important;width:fit-content}.dss-table__status--error{color:var(--color-red-500)}.dss-table .dss-table__badge-warning-container{align-items:center;display:inline-flex}.dss-table .dss-table__badge-warning-container .dss-table__badge-warning-icon{color:var(--color-red-500);font-weight:var(--font-regular);margin-right:.5rem}.dss-table__badge__icon-button{height:1.5rem}.dss-table__badge--dot{border-radius:100%;height:.5rem;min-width:.5rem;padding:0;width:.5rem}.dss-table__badge--dot *{display:none}.dss-table__badge--green.dss-table__badge--dot{background-color:var(--color-green-500)}.dss-table__badge--yellow.dss-table__badge--dot{background-color:var(--color-yellow-500)}.dss-table__badge--red.dss-table__badge--dot{background-color:var(--color-red-500)}.dss-table__review{-webkit-appearance:none;-moz-appearance:none;border-radius:.5rem;box-shadow:inset 0 0 0 .125rem var(--color-neutral-500);color:var(--color-neutral-500);cursor:pointer;height:2rem!important;overflow:hidden;transition:all .3s linear;width:2rem!important}.dss-table__review:disabled{cursor:not-allowed;opacity:.4}.dss-table__review:before{align-items:center;content:"";display:flex;font-family:Material Symbols Rounded;font-size:1.5rem;height:100%;justify-content:center;width:100%}.dss-table__review:checked,.dss-table__review:hover:enabled{box-shadow:none}.dss-table__review:checked:before,.dss-table__review:hover:enabled:before{color:var(--color-white)}.dss-table__review:focus-visible:enabled{outline:.25rem solid var(--color-blue-200)}.dss-table__review--check:checked,.dss-table__review--check:hover:enabled{background:var(--color-green-500)}.dss-table__review--check:checked:before,.dss-table__review--check:hover:enabled:before{content:"check"}.dss-table__review--check:focus-visible:enabled:before{content:"check"}.dss-table__review--check:checked:hover:enabled{background:var(--color-green-600)}.dss-table__review--check:active:enabled,.dss-table__review--check:checked:active:enabled{background:var(--color-green-400);transition:none}.dss-table__review--error:checked,.dss-table__review--error:hover:enabled{background:var(--color-red-500)}.dss-table__review--error:checked:before,.dss-table__review--error:hover:enabled:before{content:"close"}.dss-table__review--error:focus-visible:enabled:before{content:"close"}.dss-table__review--error:checked:hover:enabled{background:var(--color-red-600)}.dss-table__review--error:active:enabled,.dss-table__review--error:checked:active:enabled{background:var(--color-red-400);transition:none}.dss-table .dss-table--order{align-items:center;display:inline-flex;gap:var(--dss-spacing-xs);justify-content:space-between;text-align:justify}.dss-table .dss-table--order .dss-table__sort-icon{align-items:center;background-color:transparent;border-radius:.25rem;box-sizing:border-box;display:flex;justify-content:center;padding:var(--dss-spacing-sm);transition:all .2s ease-in}.dss-table .dss-table--order:hover .dss-table__sort-icon{background-color:var(--color-primary-500);color:var(--color-white)}.dss-table .dss-table--order .dss-table__arrow-order{-webkit-appearance:none;-moz-appearance:none;border-radius:.125rem;color:var(--color-neutral-700);cursor:pointer;flex-shrink:0;height:1rem!important;overflow:hidden;transition:all .3s linear;width:1rem!important}.dss-table .dss-table--order .dss-table__arrow-order:disabled{cursor:not-allowed;opacity:.4;transition:none}.dss-table .dss-table--order .dss-table__arrow-order:before{align-items:center;content:"arrow_upward";display:flex;font-family:Material Symbols Rounded;font-size:1rem;height:100%;justify-content:center;width:100%}.dss-table .dss-table--order .dss-table__arrow-order:hover:enabled{background-color:var(--color-neutral-500);color:var(--color-white)}.dss-table .dss-table--order .dss-table__arrow-order:active{background-color:var(--color-neutral-600);color:var(--color-white);transition:none}.dss-table .dss-table--order .dss-table__arrow-order:focus-visible:enabled{outline:.25rem solid var(--color-blue-200)}.dss-table .dss-table--order .dss-table__arrow-order:checked{background-color:var(--color-neutral-500);color:var(--color-white)}.dss-table .dss-table--order .dss-table__arrow-order:checked:before{content:"arrow_downward"}.dss-table .dss-table--order .dss-table__arrow-order:checked:hover:enabled{background-color:var(--color-neutral-600);color:var(--color-white)}.dss-table .dss-table--order .dss-table__arrow-order:checked:active:enabled{background-color:var(--color-neutral-400);color:var(--color-white);transition:none}.dss-table .dss-table--order .dss-table__arrow-order:checked:focus-visible:enabled{background-color:var(--color-neutral-500);color:var(--color-white);outline:.25rem solid var(--color-blue-200)}.dss-table .dss-table__checkbox{margin:auto}.dss-table .dss-table__radio{margin:0 auto!important}.dss-table .dss-table--nested thead tr th{box-shadow:inset 0 -.125rem 0 0 var(--color-neutral-200);color:var(--color-neutral-500)}.dss-table .dss-table--nested .dss-table__arrow-order{color:var(--color-neutral-500)}.dss-tabs{display:flex;flex-wrap:wrap;gap:.5rem}+.dss-tabs--icon{align-items:end;justify-content:center}+.dss-tabs--icon .dss-tabs__selector{align-items:center;display:flex;flex-direction:column;gap:.125rem;justify-content:center;padding-bottom:.25rem;padding-top:0}.dss-tabs__selector{margin-bottom:1rem;padding-bottom:.5rem;position:relative;width:fit-content}.dss-tabs__selector:has(input[type=radio]:checked)+.dss-tabs__content{display:block}.dss-tabs__selector:has(input[type=radio]:disabled),.dss-tabs__selector:has(input[type=radio]:disabled)+.dss-tabs__content{opacity:.4;transition:none}.dss-tabs__selector:has(input[type=radio]:checked),.dss-tabs__selector:has(input[type=radio]:focus){color:var(--color-neutral-700)}.dss-tabs__selector:has(input[type=radio]:hover){color:var(--color-neutral-700);transition:all .3s linear}.dss-tabs__selector:has(input[type=radio]:active){color:var(--color-neutral-600);transition:none}.dss-tabs__selector input[type=radio]{cursor:pointer;height:100%;left:0;opacity:0;padding:.125rem .75rem .375rem;position:absolute;top:0;width:100%}.dss-tabs__selector input[type=radio]:checked+label:after{animation:fade-in .3s linear;background-color:var(--color-primary-500);border-radius:.5rem;bottom:0;content:"";height:.125rem;left:0;margin:0 .5rem;position:absolute;right:0}.dss-tabs__selector input[type=radio]:disabled{cursor:not-allowed}.dss-tabs__selector label{margin-bottom:.25rem;padding:.125rem .75rem 0;text-align:center}.dss-tabs__content{display:none;order:99}@keyframes fade-in{0%{opacity:0;width:0}to{opacity:1;width:2.0625rem}}.dss-checkbox:focus-visible:enabled,.dss-table .dss-table__checkbox:focus-visible:enabled,.dss-user-feedback__button-group button.dss-user-feedback__button-primary:focus-visible:enabled,.dss-user-feedback__button-group button.dss-user-feedback__button-secondary:focus-visible:enabled,button.dss-button:focus-visible:enabled,button.dss-table__button:focus-visible:enabled,button.dss-toast__button:focus-visible:enabled{outline:var(--dss-spacing-xxs) solid var(--color-blue-200);transition:none}.dss-toast--error button.dss-toast__button:disabled,.dss-toast--info button.dss-toast__button:disabled,.dss-toast--success button.dss-toast__button:disabled,.dss-toast--warning button.dss-toast__button:disabled,.dss-user-feedback__button-group button.dss-user-feedback__button-primary:disabled,button.dss-button--error:disabled,button.dss-button--info:disabled,button.dss-button--primary:disabled,button.dss-button--success:disabled,button.dss-button--warning:disabled,button.dss-table__button--error:disabled,button.dss-table__button--info:disabled,button.dss-table__button--primary:disabled,button.dss-table__button--success:disabled,button.dss-table__button--warning:disabled{background:var(--color-neutral-100);color:var(--color-neutral-600);cursor:not-allowed}.dss-user-feedback__button-group button.dss-user-feedback__button-primary,.dss-user-feedback__button-group button.dss-user-feedback__button-secondary,button.dss-button,button.dss-table__button,button.dss-toast__button{align-items:center;border:none;border-radius:8rem;cursor:pointer;display:flex;font-weight:var(--font-semibold);height:fit-content;transition:all .3s ease-in;width:fit-content}.dss-user-feedback__button-group button.dss-user-feedback__button-primary:active:enabled,.dss-user-feedback__button-group button.dss-user-feedback__button-secondary:active:enabled,button.dss-button:active:enabled,button.dss-table__button:active:enabled,button.dss-toast__button:active:enabled{transition:none}.dss-user-feedback__button-group button.dss-user-feedback__button-primary,button.dss-button--primary,button.dss-table__button--primary{background-color:var(--color-primary-500);color:var(--color-white)}.dss-user-feedback__button-group button.dss-user-feedback__button-primary:hover:enabled,button.dss-button--primary:hover:enabled,button.dss-table__button--primary:hover:enabled{background-color:var(--color-primary-600)}.dss-user-feedback__button-group button.dss-user-feedback__button-primary:active:enabled,button.dss-button--primary:active:enabled,button.dss-table__button--primary:active:enabled{background-color:var(--color-primary-400)}.dss-user-feedback__button-group button.dss-user-feedback__button-secondary,button.dss-button--secondary,button.dss-table__button--secondary{background-color:transparent;box-shadow:inset 0 0 0 .0625rem var(--color-primary-600);color:var(--color-primary-600)}.dss-user-feedback__button-group button.dss-user-feedback__button-secondary:hover:enabled,button.dss-button--secondary:hover:enabled,button.dss-table__button--secondary:hover:enabled{background-color:var(--color-primary-50);box-shadow:inset 0 0 0 .0625rem var(--color-primary-700);color:var(--color-primary-700)}.dss-user-feedback__button-group button.dss-user-feedback__button-secondary:active:enabled,button.dss-button--secondary:active:enabled,button.dss-table__button--secondary:active:enabled{box-shadow:inset 0 0 0 .0625rem var(--color-primary-500);color:var(--color-primary-500)}.dss-user-feedback__button-group button.dss-user-feedback__button-secondary:focus-visible,button.dss-button--secondary:focus-visible,button.dss-table__button--secondary:focus-visible{box-shadow:inset 0 0 0 .125rem var(--color-primary-200);outline:var(--border-width-sm) solid var(--color-primary-200)}.dss-user-feedback__button-group button.dss-user-feedback__button-secondary:disabled,button.dss-button--secondary:disabled,button.dss-table__button--secondary:disabled{box-shadow:inset 0 0 0 .0625rem var(--color-neutral-600);color:var(--color-neutral-600);cursor:not-allowed}button.dss-button--subtle,button.dss-table__button--subtle{background:none;color:var(--color-primary-600)}button.dss-button--subtle:hover:enabled,button.dss-table__button--subtle:hover:enabled{background-color:var(--color-primary-50);color:var(--color-primary-800)}button.dss-button--subtle:active:enabled,button.dss-table__button--subtle:active:enabled{color:var(--color-primary-500)}button.dss-button--subtle:disabled,button.dss-table__button--subtle:disabled{color:var(--color-neutral-500);cursor:not-allowed}.dss-toast--error button.dss-toast__button,button.dss-button--error,button.dss-table__button--error{background-color:var(--color-red-500);color:var(--color-white)}.dss-toast--error button.dss-toast__button:hover:enabled,button.dss-button--error:hover:enabled,button.dss-table__button--error:hover:enabled{background-color:var(--color-red-600)}.dss-toast--error button.dss-toast__button:active:enabled,button.dss-button--error:active:enabled,button.dss-table__button--error:active:enabled{background-color:var(--color-red-400)}.dss-toast--warning button.dss-toast__button,button.dss-button--warning,button.dss-table__button--warning{background-color:var(--color-yellow-500);color:var(--color-yellow-900)}.dss-toast--warning button.dss-toast__button:hover:enabled,button.dss-button--warning:hover:enabled,button.dss-table__button--warning:hover:enabled{background-color:var(--color-yellow-600)}.dss-toast--warning button.dss-toast__button:active:enabled,button.dss-button--warning:active:enabled,button.dss-table__button--warning:active:enabled{background-color:var(--color-yellow-400)}.dss-toast--success button.dss-toast__button,button.dss-button--success,button.dss-table__button--success{background-color:var(--color-green-500);color:var(--color-white)}.dss-toast--success button.dss-toast__button:hover:enabled,button.dss-button--success:hover:enabled,button.dss-table__button--success:hover:enabled{background-color:var(--color-green-600)}.dss-toast--success button.dss-toast__button:active:enabled,button.dss-button--success:active:enabled,button.dss-table__button--success:active:enabled{background-color:var(--color-green-400)}.dss-toast--info button.dss-toast__button,button.dss-button--info,button.dss-table__button--info{background-color:var(--color-blue-500);color:var(--color-white)}.dss-toast--info button.dss-toast__button:hover:enabled,button.dss-button--info:hover:enabled,button.dss-table__button--info:hover:enabled{background-color:var(--color-blue-600)}.dss-toast--info button.dss-toast__button:active:enabled,button.dss-button--info:active:enabled,button.dss-table__button--info:active:enabled{background-color:var(--color-blue-400)}button.dss-button--sm,button.dss-table__button,button.dss-toast__button{font-size:var(--dss-spacing-sm);line-height:var(--line-16);padding:var(--dss-spacing-xxs) var(--dss-spacing-sm)}button.dss-button--icon-left.dss-table__button,button.dss-button--icon-left.dss-toast__button,button.dss-button--sm.dss-button--icon-left{padding:var(--dss-spacing-xxs) var(--dss-spacing-sm) var(--dss-spacing-xxs) var(--dss-spacing-xs)}button.dss-button--icon-left.dss-table__button .dss-icon,button.dss-button--icon-left.dss-table__button>[class^=material-],button.dss-button--icon-left.dss-toast__button .dss-icon,button.dss-button--icon-left.dss-toast__button>[class^=material-],button.dss-button--sm.dss-button--icon-left .dss-icon,button.dss-button--sm.dss-button--icon-left>[class^=material-]{font-size:1rem;margin-right:var(--dss-spacing-xxs)}button.dss-button--icon-right.dss-table__button,button.dss-button--icon-right.dss-toast__button,button.dss-button--sm.dss-button--icon-right{padding:var(--dss-spacing-xxs) var(--dss-spacing-xs) var(--dss-spacing-xxs) var(--dss-spacing-sm)}button.dss-button--icon-right.dss-table__button .dss-icon,button.dss-button--icon-right.dss-table__button>[class^=material-],button.dss-button--icon-right.dss-toast__button .dss-icon,button.dss-button--icon-right.dss-toast__button>[class^=material-],button.dss-button--sm.dss-button--icon-right .dss-icon,button.dss-button--sm.dss-button--icon-right>[class^=material-]{font-size:1rem;margin-left:var(--dss-spacing-xxs)}button.dss-button--only-icon.dss-table__button,button.dss-button--only-icon.dss-toast__button,button.dss-button--sm.dss-button--only-icon{font-size:1rem;padding:var(--dss-spacing-xxs)}.dss-sidebar__nav .dss-sidebar__link button.dss-sidebar__text,button.dss-button--md{font-size:.875rem;line-height:var(--line-24);padding:var(--dss-spacing-xxs) var(--dss-spacing-md)}.dss-sidebar__nav .dss-sidebar__link button.dss-button--icon-left.dss-sidebar__text,button.dss-button--md.dss-button--icon-left{padding:var(--dss-spacing-xxs) var(--dss-spacing-md) var(--dss-spacing-xxs) var(--dss-spacing-sm)}.dss-sidebar__nav .dss-sidebar__link button.dss-button--icon-left.dss-sidebar__text .dss-icon,.dss-sidebar__nav .dss-sidebar__link button.dss-button--icon-left.dss-sidebar__text>[class^=material-],button.dss-button--md.dss-button--icon-left .dss-icon,button.dss-button--md.dss-button--icon-left>[class^=material-]{font-size:1rem;margin-right:var(--dss-spacing-xxs)}.dss-sidebar__nav .dss-sidebar__link button.dss-button--icon-right.dss-sidebar__text,button.dss-button--md.dss-button--icon-right{padding:var(--dss-spacing-xxs) var(--dss-spacing-sm) var(--dss-spacing-xxs) var(--dss-spacing-md)}.dss-sidebar__nav .dss-sidebar__link button.dss-button--icon-right.dss-sidebar__text .dss-icon,.dss-sidebar__nav .dss-sidebar__link button.dss-button--icon-right.dss-sidebar__text>[class^=material-],button.dss-button--md.dss-button--icon-right .dss-icon,button.dss-button--md.dss-button--icon-right>[class^=material-]{font-size:1rem;margin-left:var(--dss-spacing-xxs)}.dss-sidebar__nav .dss-sidebar__link button.dss-button--only-icon.dss-sidebar__text,button.dss-button--md.dss-button--only-icon{font-size:1rem;padding:var(--dss-spacing-xs)}.dss-user-feedback__button-group button.dss-user-feedback__button-primary,.dss-user-feedback__button-group button.dss-user-feedback__button-secondary,button.dss-button--lg{font-size:1rem;line-height:var(--line-24);padding:var(--dss-spacing-xs) var(--dss-spacing-lg)}.dss-user-feedback__button-group button.dss-button--icon-left.dss-user-feedback__button-primary,.dss-user-feedback__button-group button.dss-button--icon-left.dss-user-feedback__button-secondary,button.dss-button--lg.dss-button--icon-left{padding:var(--dss-spacing-xs) var(--dss-spacing-lg) var(--dss-spacing-xs) var(--dss-spacing-md)}.dss-user-feedback__button-group button.dss-button--icon-left.dss-user-feedback__button-primary .dss-icon,.dss-user-feedback__button-group button.dss-button--icon-left.dss-user-feedback__button-primary>[class^=material-],.dss-user-feedback__button-group button.dss-button--icon-left.dss-user-feedback__button-secondary .dss-icon,.dss-user-feedback__button-group button.dss-button--icon-left.dss-user-feedback__button-secondary>[class^=material-],button.dss-button--lg.dss-button--icon-left .dss-icon,button.dss-button--lg.dss-button--icon-left>[class^=material-]{font-size:1.5rem;margin-right:var(--dss-spacing-xs)}.dss-user-feedback__button-group button.dss-button--icon-right.dss-user-feedback__button-primary,.dss-user-feedback__button-group button.dss-button--icon-right.dss-user-feedback__button-secondary,button.dss-button--lg.dss-button--icon-right{padding:var(--dss-spacing-xs) var(--dss-spacing-md) var(--dss-spacing-xs) var(--dss-spacing-lg)}.dss-user-feedback__button-group button.dss-button--icon-right.dss-user-feedback__button-primary .dss-icon,.dss-user-feedback__button-group button.dss-button--icon-right.dss-user-feedback__button-primary>[class^=material-],.dss-user-feedback__button-group button.dss-button--icon-right.dss-user-feedback__button-secondary .dss-icon,.dss-user-feedback__button-group button.dss-button--icon-right.dss-user-feedback__button-secondary>[class^=material-],button.dss-button--lg.dss-button--icon-right .dss-icon,button.dss-button--lg.dss-button--icon-right>[class^=material-]{font-size:1.5rem;margin-left:var(--dss-spacing-xs)}.dss-user-feedback__button-group button.dss-button--only-icon.dss-user-feedback__button-primary,.dss-user-feedback__button-group button.dss-button--only-icon.dss-user-feedback__button-secondary,button.dss-button--lg.dss-button--only-icon{font-size:1.5rem;padding:var(--dss-spacing-xs)}button.dss-button--icon-left{flex-direction:row}button.dss-button--icon-right{flex-direction:row-reverse}.dss-button-icon{align-items:center;display:flex;justify-content:space-between}.dss-button-icon .dss-icon,.dss-button-icon .dss-icon .path1:before,.dss-button-icon .dss-icon .path2:before{color:inherit}.dss-user-feedback{align-items:center;display:flex;flex-direction:column;gap:1rem;text-align:center;width:13.4375rem}.dss-user-feedback__image{margin:auto;text-align:center;width:100%}.dss-user-feedback__button-group{align-items:center;display:flex;gap:1.25rem;justify-content:center}.dss-content-switcher__item input[type=radio]:checked+label,.dss-elevation--sm{box-shadow:0 .0625rem .125rem #0000000d,0 .0625rem .1875rem .0625rem #0000001a}.dss-elevation--md,.dss-task__item .dss-task__content,.dss-toast,.dss-tooltip:after,.dss-tooltip:before{box-shadow:0 .25rem .5rem .1875rem #0000000d,0 .0625rem .1875rem #0000001a}.dss-elevation--lg,.dss-floating-button,.dss-modal{box-shadow:0 .5rem .75rem .375rem #0000000d,0 .25rem .25rem #0000001a}.dss-elevation--left{box-shadow:-2px 0 1px #0000000d}.dss-elevation--right{box-shadow:2px 0 1px #0000000d}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;src:url(../b8cc747a58ffa52b7ff9.ttf) format("truetype")}@font-face{font-family:Open Sans;font-style:italic;font-weight:400;src:url(../a9d385277b4833d366ce.ttf) format("truetype")}@font-face{font-family:Open Sans;font-style:normal;font-weight:600;src:url(../c7ab78a511011d4e147e.ttf) format("truetype")}@font-face{font-family:Open Sans;font-style:italic;font-weight:600;src:url(../4f6ebea557650fee8b62.ttf) format("truetype")}@font-face{font-family:Open Sans;font-style:normal;font-weight:700;src:url(../c790f99966352c531503.ttf) format("truetype")}@font-face{font-family:Open Sans;font-style:italic;font-weight:700;src:url(../509f36f6029476925dfd.ttf) format("truetype")}:root{--font-family:"Open Sans",sans-serif;--font-regular:400;--font-semibold:600;--font-bold:700;--line-52:3.25rem;--line-44:2.75rem;--line-36:2.25rem;--line-32:2rem;--line-30:1.875rem;--line-28:1.75rem;--line-24:1.5rem;--line-16:1rem}body{color:var(--color-body);font-family:var(--font-family);font-size:1rem;font-weight:var(--font-regular);line-height:var(--line-24)}a{color:var(--color-primary-500);cursor:pointer;font-size:inherit;text-decoration:underline}a:hover{color:var(--color-primary-600)}a:active{color:var(--color-primary-400)}a:visited{color:var(--color-purple-700)}a:focus-visible{color:var(--color-primary-500);outline:.25rem solid var(--color-blue-200)}.dss-headline--lg,.dss-headline--md,.dss-headline--sm,.dss-headline--xl,.dss-modal__content .dss-modal__title,.dss-user-feedback__title,h1,h2,h3,h4{color:var(--color-headline);font-size:2.375rem;font-weight:var(--font-bold);line-height:var(--line-52)}.dss-headline--xl,h1{font-size:2.375rem;line-height:var(--line-52)}.dss-headline--lg,h2{font-size:30px;line-height:var(--line-44)}.dss-headline--md,.dss-modal__content .dss-modal__title,h3{font-size:1.5rem;line-height:var(--line-36)}.dss-headline--sm,.dss-user-feedback__title,h4{font-size:1.25rem;line-height:var(--line-30)}.dss-subtitle--xl{font-size:1.25rem;line-height:var(--line-32)}.dss-subtitle--lg,.dss-subtitle--xl{color:var(--color-neutral-700);font-weight:var(--font-semibold)}.dss-subtitle--lg{font-size:1.125rem;line-height:var(--line-24)}.dss-subtitle--md{color:var(--color-neutral-700);font-size:1rem;font-weight:var(--font-semibold);line-height:var(--line-24)}.dss-alert,.dss-subtitle--sm,.dss-table .dss-table--nested thead tr th,.dss-table thead tr th,.dss-tabs__selector label,.dss-tile__content__text .dss-tile__title,.dss-toast .dss-toast__content{color:var(--color-neutral-700);font-size:.875rem;font-weight:var(--font-semibold);line-height:var(--line-24)}.dss-body--lg{font-size:1.125rem;line-height:var(--line-28)}.dss-body--md,.dss-modal__content .dss-modal__description{font-size:1rem;line-height:var(--line-24)}.dss-body--sm,.dss-form-field label,.dss-modal__content .dss-form-field label,.dss-table td,.dss-tile__content__text .dss-tile__description,.dss-user-feedback__description{font-size:.875rem;line-height:var(--line-24)}.dss-body--semibold{font-weight:var(--font-semibold)}.dss-body--bold{font-weight:var(--font-bold)}.dss-body--underline{text-decoration:underline}.dss-legend--lg{font-size:1rem;font-weight:var(--font-regular);line-height:var(--line-28)}.dss-legend--md{font-size:.875rem;font-weight:var(--font-regular);line-height:var(--line-24)}.dss-legend,.dss-legend--sm{font-size:.75rem;font-weight:var(--font-regular);line-height:var(--line-16)}.dss-button--lg,.dss-user-feedback__button-group .dss-user-feedback__button-primary,.dss-user-feedback__button-group .dss-user-feedback__button-secondary{font-size:1rem;font-weight:var(--font-semibold);font-weight:var(--font-regular);line-height:var(--line-28)}.dss-button--md,.dss-sidebar__nav .dss-sidebar__link .dss-sidebar__text{font-size:.875rem;font-weight:var(--font-semibold);font-weight:var(--font-regular);line-height:var(--line-24)}.dss-button--sm,.dss-table__button,.dss-toast__button{font-size:.75rem;font-weight:var(--font-semibold);font-weight:var(--font-regular);line-height:var(--line-16)}.dss-popover{border-radius:8px;box-shadow:0 1px 3px #000;display:flex;flex-direction:column;max-height:500px;max-width:500px;min-width:356px;padding:16px;position:relative;width:356px}.dss-popover,.dss-popover.dss-popover:after{background-color:#fff}.dss-popover[data-param=top]:after{rotate:-135deg;top:-6px}.dss-popover[data-param=bottom]:after,.dss-popover[data-param=top]:after{box-shadow:2px 2px 3px -2px #000;content:"";height:16px;left:15px;position:absolute;width:16px}.dss-popover[data-param=bottom]:after{rotate:45deg;top:calc(100% - 9px)}.dss-popover[data-param=left]:after{left:-6px;rotate:135deg}.dss-popover[data-param=left]:after,.dss-popover[data-param=right]:after{background-color:#fff;box-shadow:2px 2px 3px -2px #000;content:"";height:16px;position:absolute;top:calc(100% - 40px);width:16px}.dss-popover[data-param=right]:after{left:346px;rotate:-45deg}.dss-popover__titlecontent{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dss-popover__titlecontent h3{color:#1d1d1d;margin:0}.dss-popover__content{height:100%;margin-top:16px;overflow:auto;position:relative;text-overflow:ellipsis;white-space:break-spaces}.dss-popover-link{margin-top:16px}.dss-popover__group{display:flex;gap:8px;position:relative}*[hidden]{display:none!important}span{color:var(--color-primary-600)}#container{display:flex;align-items:center}.white{color:#fff}.neutral{color:var(--color-neutral-500)}.action-menu{position:relative;right:230px;box-shadow:none}`;var __defProp$2=Object.defineProperty,__getOwnPropDesc$2=Object.getOwnPropertyDescriptor,__decorateClass$2=(W,O,U,G)=>{for(var Y=G>1?void 0:G?__getOwnPropDesc$2(O,U):O,K=W.length-1,J;K>=0;K--)(J=W[K])&&(Y=(G?J(O,U,Y):J(Y))||Y);return G&&Y&&__defProp$2(O,U,Y),Y};let DssContainer=class extends s$8{render(){return x$1`
8667
8680
  <slot></slot>