@micro-lc/preview 0.3.3 → 0.4.1

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.
@@ -16,7 +16,7 @@
16
16
  }
17
17
  </style>
18
18
 
19
- <script type="module" crossorigin src="./assets/index-255e36a6.js"></script>
19
+ <script type="module" crossorigin src="./assets/index-7a3e0004.js"></script>
20
20
  </head>
21
21
  <body></body>
22
22
  </html>
@@ -1,14 +1,14 @@
1
1
  {
2
- "../../.yarn/__virtual__/@micro-lc-composer-virtual-a46718addc/0/cache/@micro-lc-composer-npm-2.0.2-7131dd7b57-5a43a6052a.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js": {
2
+ "../../.yarn/__virtual__/@micro-lc-composer-virtual-1e9d239e46/0/cache/@micro-lc-composer-npm-2.0.3-7d85cea61f-88452090ec.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js": {
3
3
  "file": "assets/errors-5a0ccde7.js",
4
4
  "isDynamicEntry": true,
5
- "src": "../../.yarn/__virtual__/@micro-lc-composer-virtual-a46718addc/0/cache/@micro-lc-composer-npm-2.0.2-7131dd7b57-5a43a6052a.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
5
+ "src": "../../.yarn/__virtual__/@micro-lc-composer-virtual-1e9d239e46/0/cache/@micro-lc-composer-npm-2.0.3-7d85cea61f-88452090ec.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
6
6
  },
7
7
  "index.html": {
8
8
  "dynamicImports": [
9
- "../../.yarn/__virtual__/@micro-lc-composer-virtual-a46718addc/0/cache/@micro-lc-composer-npm-2.0.2-7131dd7b57-5a43a6052a.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
9
+ "../../.yarn/__virtual__/@micro-lc-composer-virtual-1e9d239e46/0/cache/@micro-lc-composer-npm-2.0.3-7d85cea61f-88452090ec.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
10
10
  ],
11
- "file": "assets/index-255e36a6.js",
11
+ "file": "assets/index-7a3e0004.js",
12
12
  "isEntry": true,
13
13
  "src": "index.html"
14
14
  }
@@ -16,7 +16,7 @@
16
16
  }
17
17
  </style>
18
18
 
19
- <script type="module" crossorigin src="./assets/index-c7368f38.js"></script>
19
+ <script type="module" crossorigin src="./assets/index-210024ad.js"></script>
20
20
  </head>
21
21
  <body></body>
22
22
  </html>
@@ -1,14 +1,14 @@
1
1
  {
2
- "../../.yarn/__virtual__/@micro-lc-composer-virtual-a46718addc/0/cache/@micro-lc-composer-npm-2.0.2-7131dd7b57-5a43a6052a.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js": {
2
+ "../../.yarn/__virtual__/@micro-lc-composer-virtual-1e9d239e46/0/cache/@micro-lc-composer-npm-2.0.3-7d85cea61f-88452090ec.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js": {
3
3
  "file": "assets/errors-af3a2945.js",
4
4
  "isDynamicEntry": true,
5
- "src": "../../.yarn/__virtual__/@micro-lc-composer-virtual-a46718addc/0/cache/@micro-lc-composer-npm-2.0.2-7131dd7b57-5a43a6052a.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
5
+ "src": "../../.yarn/__virtual__/@micro-lc-composer-virtual-1e9d239e46/0/cache/@micro-lc-composer-npm-2.0.3-7d85cea61f-88452090ec.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
6
6
  },
7
7
  "index.html": {
8
8
  "dynamicImports": [
9
- "../../.yarn/__virtual__/@micro-lc-composer-virtual-a46718addc/0/cache/@micro-lc-composer-npm-2.0.2-7131dd7b57-5a43a6052a.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
9
+ "../../.yarn/__virtual__/@micro-lc-composer-virtual-1e9d239e46/0/cache/@micro-lc-composer-npm-2.0.3-7d85cea61f-88452090ec.zip/node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
10
10
  ],
11
- "file": "assets/index-c7368f38.js",
11
+ "file": "assets/index-210024ad.js",
12
12
  "isEntry": true,
13
13
  "src": "index.html"
14
14
  }
@@ -1,15 +0,0 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function t(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=t(s);fetch(s.href,o)}})();var Mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){const n=typeof window<"u",e=typeof document<"u",t=()=>{},r=e?document.querySelector("script[type=esms-options]"):void 0,s=r?JSON.parse(r.innerHTML):{};Object.assign(s,self.esmsInitOptions||{});let o=e?!!s.shimMode:!0;const c=H(o&&s.onimport),h=H(o&&s.resolve);let d=s.fetch?H(s.fetch):fetch;const m=s.meta?H(o&&s.meta):t,A=s.mapOverrides;let $=s.nonce;if(!$&&e){const l=document.querySelector("script[nonce]");l&&($=l.nonce||l.getAttribute("nonce"))}const S=H(s.onerror||t),T=s.onpolyfill?H(s.onpolyfill):()=>{console.log("%c^^ Module TypeError above is polyfilled and can be ignored ^^","font-weight:900;color:#391")},{revokeBlobURLs:j,noLoadEventRetriggers:I,enforceIntegrity:J}=s;function H(l){return typeof l=="string"?self[l]:l}const M=Array.isArray(s.polyfillEnable)?s.polyfillEnable:[],F=M.includes("css-modules"),R=M.includes("json-modules"),oe=!navigator.userAgentData&&!!navigator.userAgent.match(/Edge\/\d+\.\d+/),Q=e?document.baseURI:`${location.protocol}//${location.host}${location.pathname.includes("/")?location.pathname.slice(0,location.pathname.lastIndexOf("/")+1):location.pathname}`,q=(l,f="text/javascript")=>URL.createObjectURL(new Blob([l],{type:f}));let{skip:de}=s;if(Array.isArray(de)){const l=de.map(f=>new URL(f,Q).href);de=f=>l.some(v=>v[v.length-1]==="/"&&f.startsWith(v)||f===v)}else if(typeof de=="string"){const l=new RegExp(de);de=f=>l.test(f)}const Jr=l=>setTimeout(()=>{throw l}),Et=l=>{(self.reportError||n&&window.safari&&console.error||Jr)(l),S(l)};function Fe(l){return l?` imported from ${l}`:""}let at=!1;function Kr(){at=!0}if(!o)if(document.querySelectorAll("script[type=module-shim],script[type=importmap-shim],link[rel=modulepreload-shim]").length)o=!0;else{let l=!1;for(const f of document.querySelectorAll("script[type=module],script[type=importmap]"))if(!l)f.type==="module"&&!f.ep&&(l=!0);else if(f.type==="importmap"&&l){at=!0;break}}const Qr=/\\/g;function Ot(l){if(l.indexOf(":")===-1)return!1;try{return new URL(l),!0}catch{return!1}}function dn(l,f){return $e(l,f)||(Ot(l)?l:$e("./"+l,f))}function $e(l,f){const v=f.indexOf("#"),k=f.indexOf("?");if(v+k>-2&&(f=f.slice(0,v===-1?k:k===-1||k>v?v:k)),l.indexOf("\\")!==-1&&(l=l.replace(Qr,"/")),l[0]==="/"&&l[1]==="/")return f.slice(0,f.indexOf(":")+1)+l;if(l[0]==="."&&(l[1]==="/"||l[1]==="."&&(l[2]==="/"||l.length===2&&(l+="/"))||l.length===1&&(l+="/"))||l[0]==="/"){const g=f.slice(0,f.indexOf(":")+1);let w;if(f[g.length+1]==="/"?g!=="file:"?(w=f.slice(g.length+2),w=w.slice(w.indexOf("/")+1)):w=f.slice(8):w=f.slice(g.length+(f[g.length]==="/")),l[0]==="/")return f.slice(0,f.length-w.length-1)+l;const x=w.slice(0,w.lastIndexOf("/")+1)+l,O=[];let P=-1;for(let E=0;E<x.length;E++){if(P!==-1){x[E]==="/"&&(O.push(x.slice(P,E+1)),P=-1);continue}else if(x[E]==="."){if(x[E+1]==="."&&(x[E+2]==="/"||E+2===x.length)){O.pop(),E+=2;continue}else if(x[E+1]==="/"||E+1===x.length){E+=1;continue}}for(;x[E]==="/";)E++;P=E}return P!==-1&&O.push(x.slice(P)),f.slice(0,f.length-w.length)+O.join("")}}function pn(l,f,v){const k={imports:Object.assign({},v.imports),scopes:Object.assign({},v.scopes)};if(l.imports&&bn(l.imports,k.imports,f,v),l.scopes)for(let g in l.scopes){const w=dn(g,f);bn(l.scopes[g],k.scopes[w]||(k.scopes[w]={}),f,v)}return k}function It(l,f){if(f[l])return l;let v=l.length;do{const k=l.slice(0,v+1);if(k in f)return k}while((v=l.lastIndexOf("/",v-1))!==-1)}function mn(l,f){const v=It(l,f);if(v){const k=f[v];return k===null?void 0:k+l.slice(v.length)}}function Ct(l,f,v){let k=v&&It(v,l.scopes);for(;k;){const g=mn(f,l.scopes[k]);if(g)return g;k=It(k.slice(0,k.lastIndexOf("/")),l.scopes)}return mn(f,l.imports)||f.indexOf(":")!==-1&&f}function bn(l,f,v,k){for(let g in l){const w=$e(g,v)||g;if((!o||!A)&&f[w]&&f[w]!==l[w])throw Error(`Rejected map override "${w}" from ${f[w]} to ${l[w]}.`);let x=l[g];if(typeof x!="string")continue;const O=Ct(k,$e(x,v)||x,v);if(O){f[w]=O;continue}console.warn(`Mapping "${g}" -> "${l[g]}" does not resolve`)}}let ae=!e&&(0,eval)("u=>import(u)"),ct;const Xr=e&&new Promise(l=>{const f=Object.assign(document.createElement("script"),{src:q("self._d=u=>import(u)"),ep:!0});f.setAttribute("nonce",$),f.addEventListener("load",()=>{if(!(ct=!!(ae=self._d))){let v;window.addEventListener("error",k=>v=k),ae=(k,g)=>new Promise((w,x)=>{const O=Object.assign(document.createElement("script"),{type:"module",src:q(`import*as m from'${k}';self._esmsi=m`)});v=void 0,O.ep=!0,$&&O.setAttribute("nonce",$),O.addEventListener("error",P),O.addEventListener("load",P);function P(E){document.head.removeChild(O),self._esmsi?(w(self._esmsi,Q),self._esmsi=void 0):(x(!(E instanceof Event)&&E||v&&v.error||new Error(`Error loading ${g&&g.errUrl||k} (${O.src}).`)),v=void 0)}document.head.appendChild(O)})}document.head.removeChild(f),delete self._d,l()}),document.head.appendChild(f)});let lt=!1,ut=!1,pe=e&&HTMLScriptElement.supports?HTMLScriptElement.supports("importmap"):!1,ft=pe;const vn="import.meta",yn='import"x"assert{type:"css"}',Zr='import"x"assert{type:"json"}',ei=Promise.resolve(Xr).then(()=>{if(!(!ct||pe&&!F&&!R))return e?new Promise(l=>{const f=document.createElement("iframe");f.style.display="none",f.setAttribute("nonce",$);function v({data:[g,w,x,O]}){pe=g,ft=w,ut=x,lt=O,l(),document.head.removeChild(f),window.removeEventListener("message",v,!1)}window.addEventListener("message",v,!1);const k=`<script nonce=${$||""}>b=(s,type='text/javascript')=>URL.createObjectURL(new Blob([s],{type}));document.head.appendChild(Object.assign(document.createElement('script'),{type:'importmap',nonce:"${$}",innerText:\`{"imports":{"x":"\${b('')}"}}\`}));Promise.all([${pe?"true,true":`'x',b('${vn}')`}, ${F?`b('${yn}'.replace('x',b('','text/css')))`:"false"}, ${R?`b('${Zr}'.replace('x',b('{}','text/json')))`:"false"}].map(x =>typeof x==='string'?import(x).then(x =>!!x,()=>false):x)).then(a=>parent.postMessage(a,'*'))<\/script>`;f.onload=()=>{const g=f.contentDocument;if(g&&g.head.childNodes.length===0){const w=g.createElement("script");$&&w.setAttribute("nonce",$),w.innerHTML=k.slice(15+($?$.length:0),-9),g.head.appendChild(w)}},document.head.appendChild(f),"srcdoc"in f?f.srcdoc=k:f.contentDocument.write(k)}):Promise.all([pe||ae(q(vn)).then(()=>ft=!0,t),F&&ae(q(yn.replace("x",q("","text/css")))).then(()=>ut=!0,t),R&&ae(q(jsonModulescheck.replace("x",q("{}","text/json")))).then(()=>lt=!0,t)])});let W,ht,Tt,Ue=2<<19;const gn=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(l,f){const v=l.length;let k=0;for(;k<v;)f[k]=l.charCodeAt(k++)}:function(l,f){const v=l.length;let k=0;for(;k<v;){const g=l.charCodeAt(k);f[k++]=(255&g)<<8|g>>>8}},ti="xportmportlassetaromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileforifcatcfinallels";let B,_n,N;function ni(l,f="@"){B=l,_n=f;const v=2*B.length+(2<<18);if(v>Ue||!W){for(;v>Ue;)Ue*=2;ht=new ArrayBuffer(Ue),gn(ti,new Uint16Array(ht,16,105)),W=function(x,O,P){var E=new x.Int8Array(P),_=new x.Int16Array(P),a=new x.Int32Array(P),re=new x.Uint8Array(P),ce=new x.Uint16Array(P),ee=1024;function Y(){var i=0,u=0,p=0,y=0,b=0,C=0,ve=0;ve=ee,ee=ee+10240|0,E[795]=1,_[395]=0,_[396]=0,a[67]=a[2],E[796]=0,a[66]=0,E[794]=0,a[68]=ve+2048,a[69]=ve,E[797]=0,i=(a[3]|0)+-2|0,a[70]=i,u=i+(a[64]<<1)|0,a[71]=u;e:for(;;){if(p=i+2|0,a[70]=p,i>>>0>=u>>>0){b=18;break}n:do switch(_[p>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(_[396]|0)&&ze(p)|0&&!(K(i+4|0,16,10)|0)&&(Ae(),(E[795]|0)==0)){b=9;break e}else b=17;break}case 105:{ze(p)|0&&!(K(i+4|0,26,10)|0)&&Ge(),b=17;break}case 59:{b=17;break}case 47:switch(_[i+4>>1]|0){case 47:{Vt();break n}case 42:{Dt(1);break n}default:{b=16;break e}}default:{b=16;break e}}while(0);(b|0)==17&&(b=0,a[67]=a[70]),i=a[70]|0,u=a[71]|0}(b|0)==9?(i=a[70]|0,a[67]=i,b=19):(b|0)==16?(E[795]=0,a[70]=i,b=19):(b|0)==18&&(E[794]|0?i=0:(i=p,b=19));do if((b|0)==19){e:for(;;){if(u=i+2|0,a[70]=u,y=u,i>>>0>=(a[71]|0)>>>0){b=82;break}n:do switch(_[u>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(_[396]|0)&&ze(u)|0&&!(K(i+4|0,16,10)|0)&&Ae(),b=81;break}case 105:{ze(u)|0&&!(K(i+4|0,26,10)|0)&&Ge(),b=81;break}case 99:{ze(u)|0&&!(K(i+4|0,36,8)|0)&&Je(_[i+12>>1]|0)|0&&(E[797]=1),b=81;break}case 40:{y=a[68]|0,u=_[396]|0,b=u&65535,a[y+(b<<3)>>2]=1,p=a[67]|0,_[396]=u+1<<16>>16,a[y+(b<<3)+4>>2]=p,b=81;break}case 41:{if(u=_[396]|0,!(u<<16>>16)){b=36;break e}u=u+-1<<16>>16,_[396]=u,p=_[395]|0,p<<16>>16&&(C=a[(a[69]|0)+((p&65535)+-1<<2)>>2]|0,(a[C+20>>2]|0)==(a[(a[68]|0)+((u&65535)<<3)+4>>2]|0))&&(u=C+4|0,a[u>>2]|0||(a[u>>2]=y),a[C+12>>2]=i+4,_[395]=p+-1<<16>>16),b=81;break}case 123:{b=a[67]|0,y=a[61]|0,i=b;do if((_[b>>1]|0)==41&(y|0)!=0&&(a[y+4>>2]|0)==(b|0))if(u=a[62]|0,a[61]=u,u){a[u+28>>2]=0;break}else{a[57]=0;break}while(0);y=a[68]|0,p=_[396]|0,b=p&65535,a[y+(b<<3)>>2]=E[797]|0?6:2,_[396]=p+1<<16>>16,a[y+(b<<3)+4>>2]=i,E[797]=0,b=81;break}case 125:{if(i=_[396]|0,!(i<<16>>16)){b=49;break e}y=a[68]|0,b=i+-1<<16>>16,_[396]=b,(a[y+((b&65535)<<3)>>2]|0)==4&&Ce(),b=81;break}case 39:{X(39),b=81;break}case 34:{X(34),b=81;break}case 47:switch(_[i+4>>1]|0){case 47:{Vt();break n}case 42:{Dt(1);break n}default:{i=a[67]|0,y=_[i>>1]|0;t:do if(pi(y)|0)switch(y<<16>>16){case 46:if(((_[i+-2>>1]|0)+-48&65535)<10){b=66;break t}else{b=69;break t}case 43:if((_[i+-2>>1]|0)==43){b=66;break t}else{b=69;break t}case 45:if((_[i+-2>>1]|0)==45){b=66;break t}else{b=69;break t}default:{b=69;break t}}else{switch(y<<16>>16){case 41:if(yi(a[(a[68]|0)+(ce[396]<<3)+4>>2]|0)|0){b=69;break t}else{b=66;break t}case 125:break;default:{b=66;break t}}u=a[68]|0,p=ce[396]|0,!(di(a[u+(p<<3)+4>>2]|0)|0)&&(a[u+(p<<3)>>2]|0)!=6?b=66:b=69}while(0);t:do if((b|0)==66)if(b=0,be(i)|0)b=69;else{switch(y<<16>>16){case 0:{b=69;break t}case 47:{if(E[796]|0){b=69;break t}break}default:}p=a[3]|0,u=y;do{if(i>>>0<=p>>>0)break;i=i+-2|0,a[67]=i,u=_[i>>1]|0}while(!(qt(u)|0));if(bt(u)|0){do{if(i>>>0<=p>>>0)break;i=i+-2|0,a[67]=i}while(bt(_[i>>1]|0)|0);if(bi(i)|0){Dn(),E[796]=0,b=81;break n}else i=1}else i=1}while(0);(b|0)==69&&(Dn(),i=0),E[796]=i,b=81;break n}}case 96:{y=a[68]|0,p=_[396]|0,b=p&65535,a[y+(b<<3)+4>>2]=a[67],_[396]=p+1<<16>>16,a[y+(b<<3)>>2]=3,Ce(),b=81;break}default:b=81}while(0);(b|0)==81&&(b=0,a[67]=a[70]),i=a[70]|0}if((b|0)==36){Z(),i=0;break}else if((b|0)==49){Z(),i=0;break}else if((b|0)==82){i=E[794]|0?0:(_[395]|_[396])<<16>>16==0;break}}while(0);return ee=ve,i|0}function Ae(){var i=0,u=0,p=0,y=0,b=0,C=0,ve=0,xe=0,Gt=0,Yt=0,zt=0,Jt=0,U=0,D=0;xe=a[70]|0,Gt=a[63]|0,D=xe+12|0,a[70]=D,p=L(1)|0,i=a[70]|0,(i|0)==(D|0)&&!(mt(p)|0)||(U=3);e:do if((U|0)==3){n:do switch(p<<16>>16){case 123:{for(a[70]=i+2,i=L(1)|0,p=a[70]|0;;){if(Ke(i)|0?(X(i),i=(a[70]|0)+2|0,a[70]=i):(Se(i)|0,i=a[70]|0),L(1)|0,i=Wn(p,i)|0,i<<16>>16==44&&(a[70]=(a[70]|0)+2,i=L(1)|0),u=p,p=a[70]|0,i<<16>>16==125){U=15;break}if((p|0)==(u|0)){U=12;break}if(p>>>0>(a[71]|0)>>>0){U=14;break}}if((U|0)==12){Z();break e}else if((U|0)==14){Z();break e}else if((U|0)==15){a[70]=p+2;break n}break}case 42:{a[70]=i+2,L(1)|0,D=a[70]|0,Wn(D,D)|0;break}default:{switch(E[795]=0,p<<16>>16){case 100:{switch(xe=i+14|0,a[70]=xe,(L(1)|0)<<16>>16){case 97:{u=a[70]|0,!(K(u+2|0,56,8)|0)&&(b=u+10|0,bt(_[b>>1]|0)|0)&&(a[70]=b,L(0)|0,U=22);break}case 102:{U=22;break}case 99:{u=a[70]|0,!(K(u+2|0,36,8)|0)&&(y=u+10|0,D=_[y>>1]|0,Je(D)|0|D<<16>>16==123)&&(a[70]=y,C=L(1)|0,C<<16>>16!=123)&&(Jt=C,U=31);break}default:}t:do if((U|0)==22&&(ve=a[70]|0,(K(ve+2|0,64,14)|0)==0)){if(p=ve+16|0,u=_[p>>1]|0,!(Je(u)|0))switch(u<<16>>16){case 40:case 42:break;default:break t}a[70]=p,u=L(1)|0,u<<16>>16==42&&(a[70]=(a[70]|0)+2,u=L(1)|0),u<<16>>16!=40&&(Jt=u,U=31)}while(0);if((U|0)==31&&(Yt=a[70]|0,Se(Jt)|0,zt=a[70]|0,zt>>>0>Yt>>>0)){Te(i,xe,Yt,zt),a[70]=(a[70]|0)+-2;break e}Te(i,xe,0,0),a[70]=i+12;break e}case 97:{a[70]=i+10,L(0)|0,i=a[70]|0,U=35;break}case 102:{U=35;break}case 99:{if(!(K(i+2|0,36,8)|0)&&(u=i+10|0,qt(_[u>>1]|0)|0)){a[70]=u,D=L(1)|0,U=a[70]|0,Se(D)|0,D=a[70]|0,Te(U,D,U,D),a[70]=(a[70]|0)+-2;break e}i=i+4|0,a[70]=i;break}case 108:case 118:break;default:break e}if((U|0)==35){a[70]=i+16,i=L(1)|0,i<<16>>16==42&&(a[70]=(a[70]|0)+2,i=L(1)|0),U=a[70]|0,Se(i)|0,D=a[70]|0,Te(U,D,U,D),a[70]=(a[70]|0)+-2;break e}i=i+4|0,a[70]=i,E[795]=0;t:for(;;){switch(a[70]=i+2,D=L(1)|0,i=a[70]|0,(Se(D)|0)<<16>>16){case 91:case 123:break t;default:}if(u=a[70]|0,(u|0)==(i|0))break e;if(Te(i,u,i,u),(L(1)|0)<<16>>16!=44)break;i=a[70]|0}a[70]=(a[70]|0)+-2;break e}}while(0);if(D=(L(1)|0)<<16>>16==102,i=a[70]|0,D&&!(K(i+2|0,50,6)|0))for(a[70]=i+8,le(xe,L(1)|0),i=Gt|0?Gt+16|0:232;;){if(i=a[i>>2]|0,!i)break e;a[i+12>>2]=0,a[i+8>>2]=0,i=i+16|0}a[70]=i+-2}while(0)}function Ge(){var i=0,u=0,p=0,y=0,b=0,C=0;b=a[70]|0,i=b+12|0,a[70]=i;e:do switch((L(1)|0)<<16>>16){case 40:{if(u=a[68]|0,C=_[396]|0,p=C&65535,a[u+(p<<3)>>2]=5,i=a[70]|0,_[396]=C+1<<16>>16,a[u+(p<<3)+4>>2]=i,(_[a[67]>>1]|0)!=46){switch(a[70]=i+2,C=L(1)|0,Wt(b,a[70]|0,0,i),u=a[61]|0,p=a[69]|0,b=_[395]|0,_[395]=b+1<<16>>16,a[p+((b&65535)<<2)>>2]=u,C<<16>>16){case 39:{X(39);break}case 34:{X(34);break}default:{a[70]=(a[70]|0)+-2;break e}}switch(i=(a[70]|0)+2|0,a[70]=i,(L(1)|0)<<16>>16){case 44:{a[70]=(a[70]|0)+2,L(1)|0,b=a[61]|0,a[b+4>>2]=i,C=a[70]|0,a[b+16>>2]=C,E[b+24>>0]=1,a[70]=C+-2;break e}case 41:{_[396]=(_[396]|0)+-1<<16>>16,C=a[61]|0,a[C+4>>2]=i,a[C+12>>2]=(a[70]|0)+2,E[C+24>>0]=1,_[395]=(_[395]|0)+-1<<16>>16;break e}default:{a[70]=(a[70]|0)+-2;break e}}}break}case 46:{if(a[70]=(a[70]|0)+2,(L(1)|0)<<16>>16==109&&(u=a[70]|0,(K(u+2|0,44,6)|0)==0)){if(i=a[67]|0,!(Vn(i)|0)&&(_[i>>1]|0)==46)break e;Wt(b,b,u+8|0,2)}break}case 42:case 39:case 34:{y=18;break}case 123:{if(i=a[70]|0,_[396]|0){a[70]=i+-2;break e}for(;!(i>>>0>=(a[71]|0)>>>0);){if(i=L(1)|0,Ke(i)|0)X(i);else if(i<<16>>16==125){y=33;break}i=(a[70]|0)+2|0,a[70]=i}if((y|0)==33&&(a[70]=(a[70]|0)+2),C=(L(1)|0)<<16>>16==102,i=a[70]|0,C&&K(i+2|0,50,6)|0){Z();break e}if(a[70]=i+8,i=L(1)|0,Ke(i)|0){le(b,i);break e}else{Z();break e}}default:(a[70]|0)==(i|0)?a[70]=b+10:y=18}while(0);do if((y|0)==18){if(_[396]|0){a[70]=(a[70]|0)+-2;break}for(i=a[71]|0,u=a[70]|0;;){if(u>>>0>=i>>>0){y=25;break}if(p=_[u>>1]|0,Ke(p)|0){y=23;break}C=u+2|0,a[70]=C,u=C}if((y|0)==23){le(b,p);break}else if((y|0)==25){Z();break}}while(0)}function be(i){i=i|0;e:do switch(_[i>>1]|0){case 100:switch(_[i+-2>>1]|0){case 105:{i=V(i+-4|0,88,2)|0;break e}case 108:{i=V(i+-4|0,92,3)|0;break e}default:{i=0;break e}}case 101:switch(_[i+-2>>1]|0){case 115:switch(_[i+-4>>1]|0){case 108:{i=Ye(i+-6|0,101)|0;break e}case 97:{i=Ye(i+-6|0,99)|0;break e}default:{i=0;break e}}case 116:{i=V(i+-4|0,98,4)|0;break e}case 117:{i=V(i+-4|0,106,6)|0;break e}default:{i=0;break e}}case 102:{if((_[i+-2>>1]|0)==111&&(_[i+-4>>1]|0)==101)switch(_[i+-6>>1]|0){case 99:{i=V(i+-8|0,118,6)|0;break e}case 112:{i=V(i+-8|0,130,2)|0;break e}default:{i=0;break e}}else i=0;break}case 107:{i=V(i+-2|0,134,4)|0;break}case 110:{i=i+-2|0,Ye(i,105)|0?i=1:i=V(i,142,5)|0;break}case 111:{i=Ye(i+-2|0,100)|0;break}case 114:{i=V(i+-2|0,152,7)|0;break}case 116:{i=V(i+-2|0,166,4)|0;break}case 119:switch(_[i+-2>>1]|0){case 101:{i=Ye(i+-4|0,110)|0;break e}case 111:{i=V(i+-4|0,174,3)|0;break e}default:{i=0;break e}}default:i=0}while(0);return i|0}function le(i,u){i=i|0,u=u|0;var p=0,y=0;switch(p=(a[70]|0)+2|0,u<<16>>16){case 39:{X(39),y=5;break}case 34:{X(34),y=5;break}default:Z()}do if((y|0)==5){if(Wt(i,p,a[70]|0,1),a[70]=(a[70]|0)+2,y=(L(0)|0)<<16>>16==97,u=a[70]|0,y&&!(K(u+2|0,78,10)|0)){if(a[70]=u+12,(L(1)|0)<<16>>16!=123){a[70]=u;break}i=a[70]|0,p=i;e:for(;;){switch(a[70]=p+2,p=L(1)|0,p<<16>>16){case 39:{X(39),a[70]=(a[70]|0)+2,p=L(1)|0;break}case 34:{X(34),a[70]=(a[70]|0)+2,p=L(1)|0;break}default:p=Se(p)|0}if(p<<16>>16!=58){y=16;break}switch(a[70]=(a[70]|0)+2,(L(1)|0)<<16>>16){case 39:{X(39);break}case 34:{X(34);break}default:{y=20;break e}}switch(a[70]=(a[70]|0)+2,(L(1)|0)<<16>>16){case 125:{y=25;break e}case 44:break;default:{y=24;break e}}if(a[70]=(a[70]|0)+2,(L(1)|0)<<16>>16==125){y=25;break}p=a[70]|0}if((y|0)==16){a[70]=u;break}else if((y|0)==20){a[70]=u;break}else if((y|0)==24){a[70]=u;break}else if((y|0)==25){y=a[61]|0,a[y+16>>2]=i,a[y+12>>2]=(a[70]|0)+2;break}}a[70]=u+-2}while(0)}function Ce(){var i=0,u=0,p=0,y=0;u=a[71]|0,p=a[70]|0;e:for(;;){if(i=p+2|0,p>>>0>=u>>>0){u=10;break}switch(_[i>>1]|0){case 96:{u=7;break e}case 36:{if((_[p+4>>1]|0)==123){u=6;break e}break}case 92:{i=p+4|0;break}default:}p=i}(u|0)==6?(i=p+4|0,a[70]=i,u=a[68]|0,y=_[396]|0,p=y&65535,a[u+(p<<3)>>2]=4,_[396]=y+1<<16>>16,a[u+(p<<3)+4>>2]=i):(u|0)==7?(a[70]=i,p=a[68]|0,y=(_[396]|0)+-1<<16>>16,_[396]=y,(a[p+((y&65535)<<3)>>2]|0)!=3&&Z()):(u|0)==10&&(a[70]=i,Z())}function L(i){i=i|0;var u=0,p=0,y=0;p=a[70]|0;e:do{u=_[p>>1]|0;n:do if(u<<16>>16!=47)if(i){if(Je(u)|0)break;break e}else{if(bt(u)|0)break;break e}else switch(_[p+2>>1]|0){case 47:{Vt();break n}case 42:{Dt(i);break n}default:{u=47;break e}}while(0);y=a[70]|0,p=y+2|0,a[70]=p}while(y>>>0<(a[71]|0)>>>0);return u|0}function X(i){i=i|0;var u=0,p=0,y=0,b=0;for(b=a[71]|0,u=a[70]|0;;){if(y=u+2|0,u>>>0>=b>>>0){u=9;break}if(p=_[y>>1]|0,p<<16>>16==i<<16>>16){u=10;break}if(p<<16>>16==92)p=u+4|0,(_[p>>1]|0)==13?(u=u+6|0,u=(_[u>>1]|0)==10?u:p):u=p;else if(Gn(p)|0){u=9;break}else u=y}(u|0)==9?(a[70]=y,Z()):(u|0)==10&&(a[70]=y)}function Wn(i,u){i=i|0,u=u|0;var p=0,y=0,b=0,C=0;return p=a[70]|0,y=_[p>>1]|0,C=(i|0)==(u|0),b=C?0:i,C=C?0:u,y<<16>>16==97&&(a[70]=p+4,p=L(1)|0,i=a[70]|0,Ke(p)|0?(X(p),u=(a[70]|0)+2|0,a[70]=u):(Se(p)|0,u=a[70]|0),y=L(1)|0,p=a[70]|0),(p|0)!=(i|0)&&Te(i,u,b,C),y|0}function Wt(i,u,p,y){i=i|0,u=u|0,p=p|0,y=y|0;var b=0,C=0;b=a[65]|0,a[65]=b+32,C=a[61]|0,a[(C|0?C+28|0:228)>>2]=b,a[62]=C,a[61]=b,a[b+8>>2]=i,(y|0)==2?i=p:i=(y|0)==1?p+2|0:0,a[b+12>>2]=i,a[b>>2]=u,a[b+4>>2]=p,a[b+16>>2]=0,a[b+20>>2]=y,E[b+24>>0]=(y|0)==1&1,a[b+28>>2]=0}function hi(){var i=0,u=0,p=0;p=a[71]|0,u=a[70]|0;e:for(;;){if(i=u+2|0,u>>>0>=p>>>0){u=6;break}switch(_[i>>1]|0){case 13:case 10:{u=6;break e}case 93:{u=7;break e}case 92:{i=u+4|0;break}default:}u=i}return(u|0)==6?(a[70]=i,Z(),i=0):(u|0)==7&&(a[70]=i,i=93),i|0}function Dn(){var i=0,u=0,p=0;e:for(;;){if(i=a[70]|0,u=i+2|0,a[70]=u,i>>>0>=(a[71]|0)>>>0){p=7;break}switch(_[u>>1]|0){case 13:case 10:{p=7;break e}case 47:break e;case 91:{hi()|0;break}case 92:{a[70]=i+4;break}default:}}(p|0)==7&&Z()}function di(i){switch(i=i|0,_[i>>1]|0){case 62:{i=(_[i+-2>>1]|0)==61;break}case 41:case 59:{i=1;break}case 104:{i=V(i+-2|0,200,4)|0;break}case 121:{i=V(i+-2|0,208,6)|0;break}case 101:{i=V(i+-2|0,220,3)|0;break}default:i=0}return i|0}function Dt(i){i=i|0;var u=0,p=0,y=0,b=0,C=0;for(b=(a[70]|0)+2|0,a[70]=b,p=a[71]|0;u=b+2|0,!(b>>>0>=p>>>0||(y=_[u>>1]|0,!i&&Gn(y)|0));){if(y<<16>>16==42&&(_[b+4>>1]|0)==47){C=8;break}b=u}(C|0)==8&&(a[70]=u,u=b+4|0),a[70]=u}function K(i,u,p){i=i|0,u=u|0,p=p|0;var y=0,b=0;e:do if(!p)i=0;else{for(;y=E[i>>0]|0,b=E[u>>0]|0,y<<24>>24==b<<24>>24;)if(p=p+-1|0,p)i=i+1|0,u=u+1|0;else{i=0;break e}i=(y&255)-(b&255)|0}while(0);return i|0}function mt(i){i=i|0;e:do switch(i<<16>>16){case 38:case 37:case 33:{i=1;break}default:if((i&-8)<<16>>16==40|(i+-58&65535)<6)i=1;else{switch(i<<16>>16){case 91:case 93:case 94:{i=1;break e}default:}i=(i+-123&65535)<4}}while(0);return i|0}function pi(i){i=i|0;e:do switch(i<<16>>16){case 38:case 37:case 33:break;default:if(!((i+-58&65535)<6|(i+-40&65535)<7&i<<16>>16!=41)){switch(i<<16>>16){case 91:case 94:break e;default:}return i<<16>>16!=125&(i+-123&65535)<4|0}}while(0);return 1}function qn(i){i=i|0;var u=0;u=_[i>>1]|0;e:do if((u+-9&65535)>=5){switch(u<<16>>16){case 160:case 32:{u=1;break e}default:}if(mt(u)|0)return u<<16>>16!=46|(Vn(i)|0)|0;u=0}else u=1;while(0);return u|0}function mi(i){i=i|0;var u=0,p=0,y=0,b=0;return p=ee,ee=ee+16|0,y=p,a[y>>2]=0,a[64]=i,u=a[3]|0,b=u+(i<<1)|0,i=b+2|0,_[b>>1]=0,a[y>>2]=i,a[65]=i,a[57]=0,a[61]=0,a[59]=0,a[58]=0,a[63]=0,a[60]=0,ee=p,u|0}function V(i,u,p){i=i|0,u=u|0,p=p|0;var y=0,b=0;return y=i+(0-p<<1)|0,b=y+2|0,i=a[3]|0,b>>>0>=i>>>0&&!(K(b,u,p<<1)|0)?(b|0)==(i|0)?i=1:i=qn(y)|0:i=0,i|0}function Te(i,u,p,y){i=i|0,u=u|0,p=p|0,y=y|0;var b=0,C=0;b=a[65]|0,a[65]=b+20,C=a[63]|0,a[(C|0?C+16|0:232)>>2]=b,a[63]=b,a[b>>2]=i,a[b+4>>2]=u,a[b+8>>2]=p,a[b+12>>2]=y,a[b+16>>2]=0}function bi(i){switch(i=i|0,_[i>>1]|0){case 107:{i=V(i+-2|0,134,4)|0;break}case 101:{(_[i+-2>>1]|0)==117?i=V(i+-4|0,106,6)|0:i=0;break}default:i=0}return i|0}function Ye(i,u){i=i|0,u=u|0;var p=0;return p=a[3]|0,p>>>0<=i>>>0&&(_[i>>1]|0)==u<<16>>16?(p|0)==(i|0)?p=1:p=qt(_[i+-2>>1]|0)|0:p=0,p|0}function qt(i){i=i|0;e:do if((i+-9&65535)<5)i=1;else{switch(i<<16>>16){case 32:case 160:{i=1;break e}default:}i=i<<16>>16!=46&(mt(i)|0)}while(0);return i|0}function Vt(){var i=0,u=0,p=0;i=a[71]|0,p=a[70]|0;e:for(;u=p+2|0,!(p>>>0>=i>>>0);)switch(_[u>>1]|0){case 13:case 10:break e;default:p=u}a[70]=u}function Se(i){for(i=i|0;!(Je(i)|0||mt(i)|0);)if(i=(a[70]|0)+2|0,a[70]=i,i=_[i>>1]|0,!(i<<16>>16)){i=0;break}return i|0}function vi(){var i=0;switch(i=a[(a[59]|0)+20>>2]|0,i|0){case 1:{i=-1;break}case 2:{i=-2;break}default:i=i-(a[3]|0)>>1}return i|0}function yi(i){return i=i|0,!(V(i,180,5)|0)&&!(V(i,190,3)|0)?i=V(i,196,2)|0:i=1,i|0}function bt(i){switch(i=i|0,i<<16>>16){case 160:case 32:case 12:case 11:case 9:{i=1;break}default:i=0}return i|0}function Vn(i){return i=i|0,(_[i>>1]|0)==46&&(_[i+-2>>1]|0)==46?i=(_[i+-4>>1]|0)==46:i=0,i|0}function ze(i){return i=i|0,(a[3]|0)==(i|0)?i=1:i=qn(i+-2|0)|0,i|0}function gi(){var i=0;return i=a[(a[60]|0)+12>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function _i(){var i=0;return i=a[(a[59]|0)+12>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function wi(){var i=0;return i=a[(a[60]|0)+8>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function $i(){var i=0;return i=a[(a[59]|0)+16>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function ki(){var i=0;return i=a[(a[59]|0)+4>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function Ai(){var i=0;return i=a[59]|0,i=a[(i|0?i+28|0:228)>>2]|0,a[59]=i,(i|0)!=0|0}function Si(){var i=0;return i=a[60]|0,i=a[(i|0?i+16|0:232)>>2]|0,a[60]=i,(i|0)!=0|0}function Z(){E[794]=1,a[66]=(a[70]|0)-(a[3]|0)>>1,a[70]=(a[71]|0)+2}function Je(i){return i=i|0,(i|128)<<16>>16==160|(i+-9&65535)<5|0}function Ke(i){return i=i|0,i<<16>>16==39|i<<16>>16==34|0}function xi(){return(a[(a[59]|0)+8>>2]|0)-(a[3]|0)>>1|0}function Ei(){return(a[(a[60]|0)+4>>2]|0)-(a[3]|0)>>1|0}function Gn(i){return i=i|0,i<<16>>16==13|i<<16>>16==10|0}function Oi(){return(a[a[59]>>2]|0)-(a[3]|0)>>1|0}function Ii(){return(a[a[60]>>2]|0)-(a[3]|0)>>1|0}function Ci(){return re[(a[59]|0)+24>>0]|0|0}function Ti(i){i=i|0,a[3]=i}function Li(){return(E[795]|0)!=0|0}function Pi(){return a[66]|0}function ji(i){return i=i|0,ee=i+992+15&-16,992}return{su:ji,ai:$i,e:Pi,ee:Ei,ele:gi,els:wi,es:Ii,f:Li,id:vi,ie:ki,ip:Ci,is:Oi,p:Y,re:Si,ri:Ai,sa:mi,se:_i,ses:Ti,ss:xi}}(typeof self<"u"?self:Mi,{},ht),Tt=W.su(Ue-(2<<17))}const k=B.length+1;W.ses(Tt),W.sa(k-1),gn(B,new Uint16Array(ht,Tt,k)),W.p()||(N=W.e(),me());const g=[],w=[];for(;W.ri();){const x=W.is(),O=W.ie(),P=W.ai(),E=W.id(),_=W.ss(),a=W.se();let re;W.ip()&&(re=Lt(E===-1?x:x+1,B.charCodeAt(E===-1?x-1:x))),g.push({n:re,s:x,e:O,ss:_,se:a,d:E,a:P})}for(;W.re();){const x=W.es(),O=W.ee(),P=W.els(),E=W.ele(),_=B.charCodeAt(x),a=P>=0?B.charCodeAt(P):-1;w.push({s:x,e:O,ls:P,le:E,n:_===34||_===39?Lt(x+1,_):B.slice(x,O),ln:P<0?void 0:a===34||a===39?Lt(P+1,a):B.slice(P,E)})}return[g,w,!!W.f()]}function Lt(l,f){N=l;let v="",k=N;for(;;){N>=B.length&&me();const g=B.charCodeAt(N);if(g===f)break;g===92?(v+=B.slice(k,N),v+=ri(),k=N):(g===8232||g===8233||wn(g)&&me(),++N)}return v+=B.slice(k,N++),v}function ri(){let l=B.charCodeAt(++N);switch(++N,l){case 110:return`
2
- `;case 114:return"\r";case 120:return String.fromCharCode(Pt(2));case 117:return function(){let f;return B.charCodeAt(N)===123?(++N,f=Pt(B.indexOf("}",N)-N),++N,f>1114111&&me()):f=Pt(4),f<=65535?String.fromCharCode(f):(f-=65536,String.fromCharCode(55296+(f>>10),56320+(1023&f)))}();case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:B.charCodeAt(N)===10&&++N;case 10:return"";case 56:case 57:me();default:if(l>=48&&l<=55){let f=B.substr(N-1,3).match(/^[0-7]+/)[0],v=parseInt(f,8);return v>255&&(f=f.slice(0,-1),v=parseInt(f,8)),N+=f.length-1,l=B.charCodeAt(N),f==="0"&&l!==56&&l!==57||me(),String.fromCharCode(v)}return wn(l)?"":String.fromCharCode(l)}}function Pt(l){const f=N;let v=0,k=0;for(let g=0;g<l;++g,++N){let w,x=B.charCodeAt(N);if(x!==95){if(x>=97)w=x-97+10;else if(x>=65)w=x-65+10;else{if(!(x>=48&&x<=57))break;w=x-48}if(w>=16)break;k=x,v=16*v+w}else k!==95&&g!==0||me(),k=x}return k!==95&&N-f===l||me(),v}function wn(l){return l===13||l===10}function me(){throw Object.assign(Error(`Parse error ${_n}:${B.slice(0,N).split(`
3
- `).length}:${N-B.lastIndexOf(`
4
- `,N-1)}`),{idx:N})}async function $n(l,f){const v=$e(l,f);return{r:Ct(ke,v||l,f)||An(l,f),b:!v&&!Ot(l)}}const kn=h?async(l,f)=>{let v=h(l,f,jt);return v&&v.then&&(v=await v),v?{r:v,b:!$e(l,f)&&!Ot(l)}:$n(l,f)}:$n;async function Be(l,...f){let v=f[f.length-1];return typeof v!="string"&&(v=Q),await De,c&&await c(l,typeof f[1]!="string"?f[1]:{},v),(qe||o||!Ie)&&(e&&Nt(!0),o||(qe=!1)),await dt,On((await kn(l,v)).r,{credentials:"same-origin"})}self.importShim=Be;function jt(l,f){return Ct(ke,$e(l,f)||l,f)||An(l,f)}function An(l,f){throw Error(`Unable to resolve specifier '${l}'${Fe(f)}`)}const Sn=(l,f=Q)=>{f=`${f}`;const v=h&&h(l,f,jt);return v&&!v.then?v:jt(l,f)};function ii(l,f=this.url){return Sn(l,f)}Be.resolve=Sn,Be.getImportMap=()=>JSON.parse(JSON.stringify(ke)),Be.addImportMap=l=>{if(!o)throw new Error("Unsupported in polyfill mode.");ke=pn(l,Q,ke)};const We=Be._r={};async function xn(l,f){l.b||f[l.u]||(f[l.u]=1,await l.L,await Promise.all(l.d.map(v=>xn(v,f))),l.n||(l.n=l.d.some(v=>v.n)))}let ke={imports:{},scopes:{}},Ie;const De=ei.then(()=>{if(Ie=s.polyfillEnable!==!0&&ct&&ft&&pe&&(!R||lt)&&(!F||ut)&&!at&&!0,e){if(!pe){const l=HTMLScriptElement.supports||(f=>f==="classic"||f==="module");HTMLScriptElement.supports=f=>f==="importmap"||l(f)}if(o||!Ie)if(new MutationObserver(l=>{for(const f of l)if(f.type==="childList")for(const v of f.addedNodes)v.tagName==="SCRIPT"?(v.type===(o?"module-shim":"module")&&Un(v,!0),v.type===(o?"importmap-shim":"importmap")&&Fn(v,!0)):v.tagName==="LINK"&&v.rel===(o?"modulepreload-shim":"modulepreload")&&Bn(v)}).observe(document,{childList:!0,subtree:!0}),Nt(),document.readyState==="complete")Ut();else{async function l(){await De,Nt(),document.readyState==="complete"&&(Ut(),document.removeEventListener("readystatechange",l))}document.addEventListener("readystatechange",l)}}});let dt=De,En=!0,qe=!0;async function On(l,f,v,k,g){if(o||(qe=!1),await De,await dt,c&&await c(l,typeof f!="string"?f:{},""),!o&&Ie)return k?null:(await g,ae(v?q(v):l,{errUrl:l||v}));const w=jn(l,f,null,v),x={};if(await xn(w,x),pt=void 0,Cn(w,x),await g,v&&!o&&!w.n)return k?void 0:(j&&In(Object.keys(x)),await ae(q(v),{errUrl:v}));En&&!o&&w.n&&k&&(T(),En=!1);const O=await ae(!o&&!w.n&&k?w.u:w.b,{errUrl:w.u});return w.s&&(await ae(w.s)).u$_(O),j&&In(Object.keys(x)),O}function In(l){let f=0;const v=l.length,k=self.requestIdleCallback?self.requestIdleCallback:self.requestAnimationFrame;k(g);function g(){const w=f*100;if(!(w>v)){for(const x of l.slice(w,w+100)){const O=We[x];O&&URL.revokeObjectURL(O.b)}f++,k(g)}}}function Mt(l){return`'${l.replace(/'/g,"\\'")}'`}let pt;function Cn(l,f){if(l.b||!f[l.u])return;f[l.u]=0;for(const O of l.d)Cn(O,f);const[v,k]=l.a,g=l.S;let w=oe&&pt?`import '${pt}';`:"";if(!v.length)w+=g;else{let _=function(a){for(;E[E.length-1]<a;){const re=E.pop();w+=`${g.slice(O,re)}, ${Mt(l.r)}`,O=re}w+=g.slice(O,a),O=a},O=0,P=0,E=[];for(const{s:a,ss:re,se:ce,d:ee}of v)if(ee===-1){let Y=l.d[P++],Ae=Y.b,Ge=!Ae;Ge&&((Ae=Y.s)||(Ae=Y.s=q(`export function u$_(m){${Y.a[1].map(({s:be,e:le},Ce)=>{const L=Y.S[be]==='"'||Y.S[be]==="'";return`e$_${Ce}=m${L?"[":"."}${Y.S.slice(be,le)}${L?"]":""}`}).join(",")}}${Y.a[1].length?`let ${Y.a[1].map((be,le)=>`e$_${le}`).join(",")};`:""}export {${Y.a[1].map(({s:be,e:le},Ce)=>`e$_${Ce} as ${Y.S.slice(be,le)}`).join(",")}}
5
- //# sourceURL=${Y.r}?cycle`))),_(a-1),w+=`/*${g.slice(a-1,ce)}*/${Mt(Ae)}`,!Ge&&Y.s&&(w+=`;import*as m$_${P} from'${Y.b}';import{u$_ as u$_${P}}from'${Y.s}';u$_${P}(m$_${P})`,Y.s=void 0),O=ce}else ee===-2?(l.m={url:l.r,resolve:ii},m(l.m,l.u),_(a),w+=`importShim._r[${Mt(l.u)}].m`,O=ce):(_(re+6),w+="Shim(",E.push(ce-1),O=a);l.s&&(w+=`
6
- ;import{u$_}from'${l.s}';try{u$_({${k.filter(a=>a.ln).map(({s:a,e:re,ln:ce})=>`${g.slice(a,re)}:${ce}`).join(",")}})}catch(_){};
7
- `),_(g.length)}let x=!1;w=w.replace(si,(O,P,E)=>(x=!P,O.replace(E,()=>new URL(E,l.r)))),x||(w+=`
8
- //# sourceURL=`+l.r),l.b=pt=q(w),l.S=void 0}const si=/\n\/\/# source(Mapping)?URL=([^\n]+)\s*((;|\/\/[^#][^\n]*)\s*)*$/,oi=/^(text|application)\/(x-)?javascript(;|$)/,ai=/^(text|application)\/json(;|$)/,ci=/^(text|application)\/css(;|$)/,li=/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g;let Rt=[],Tn=0;function ui(){if(++Tn>100)return new Promise(l=>Rt.push(l))}function fi(){Tn--,Rt.length&&Rt.shift()()}async function Ln(l,f,v){if(J&&!f.integrity)throw Error(`No integrity for ${l}${Fe(v)}.`);const k=ui();k&&await k;try{var g=await d(l,f)}catch(w){throw w.message=`Unable to fetch ${l}${Fe(v)} - see network log for details.
9
- `+w.message,w}finally{fi()}if(!g.ok)throw Error(`${g.status} ${g.statusText} ${g.url}${Fe(v)}`);return g}async function Pn(l,f,v){const k=await Ln(l,f,v),g=k.headers.get("content-type");if(oi.test(g))return{r:k.url,s:await k.text(),t:"js"};if(ai.test(g))return{r:k.url,s:`export default ${await k.text()}`,t:"json"};if(ci.test(g))return{r:k.url,s:`var s=new CSSStyleSheet();s.replaceSync(${JSON.stringify((await k.text()).replace(li,(w,x="",O,P)=>`url(${x}${dn(O||P,l)}${x})`))});export default s;`,t:"css"};throw Error(`Unsupported Content-Type "${g}" loading ${l}${Fe(v)}. Modules must be served with a valid MIME type like application/javascript.`)}function jn(l,f,v,k){let g=We[l];if(g&&!k)return g;if(g={u:l,r:k?l:void 0,f:void 0,S:void 0,L:void 0,a:void 0,d:void 0,b:void 0,s:void 0,n:!1,t:null,m:null},We[l]){let w=0;for(;We[g.u+ ++w];);g.u+=w}return We[g.u]=g,g.f=(async()=>{if(!k){let w;if({r:g.r,s:k,t:w}=await(Bt[l]||Pn(l,f,v)),w&&!o){if(w==="css"&&!F||w==="json"&&!R)throw Error(`${w}-modules require <script type="esms-options">{ "polyfillEnable": ["${w}-modules"] }<\/script>`);(w==="css"&&!ut||w==="json"&&!lt)&&(g.n=!0)}}try{g.a=ni(k,g.u)}catch(w){Et(w),g.a=[[],[],!1]}return g.S=k,g})(),g.L=g.f.then(async()=>{let w=f;g.d=(await Promise.all(g.a[0].map(async({n:x,d:O})=>{if((O>=0&&!ct||O===-2&&!ft)&&(g.n=!0),O!==-1||!x)return;const{r:P,b:E}=await kn(x,g.r||g.u);if(E&&(!pe||at)&&(g.n=!0),O===-1)return de&&de(P)?{b:P}:(w.integrity&&(w=Object.assign({},w,{integrity:void 0})),jn(P,w,g.r).f)}))).filter(x=>x)}),g}function Nt(l=!1){if(!l)for(const f of document.querySelectorAll(o?"link[rel=modulepreload-shim]":"link[rel=modulepreload]"))Bn(f);for(const f of document.querySelectorAll(o?"script[type=importmap-shim]":"script[type=importmap]"))Fn(f);if(!l)for(const f of document.querySelectorAll(o?"script[type=module-shim]":"script[type=module]"))Un(f)}function Ht(l){const f={};return l.integrity&&(f.integrity=l.integrity),l.referrerPolicy&&(f.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?f.credentials="include":l.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}let Mn=Promise.resolve(),Ft=1;function Rn(){--Ft===0&&!I&&(o||!Ie)&&document.dispatchEvent(new Event("DOMContentLoaded"))}e&&document.addEventListener("DOMContentLoaded",async()=>{await De,Rn()});let Ve=1;function Ut(){--Ve===0&&!I&&(o||!Ie)&&document.dispatchEvent(new Event("readystatechange"))}const Nn=l=>l.nextSibling||l.parentNode&&Nn(l.parentNode),Hn=(l,f)=>l.ep||!f&&(!l.src&&!l.innerHTML||!Nn(l))||l.getAttribute("noshim")!==null||!(l.ep=!0);function Fn(l,f=Ve>0){if(!Hn(l,f)){if(l.src){if(!o)return;Kr()}qe&&(dt=dt.then(async()=>{ke=pn(l.src?await(await Ln(l.src,Ht(l))).json():JSON.parse(l.innerHTML),l.src||Q,ke)}).catch(v=>{console.log(v),v instanceof SyntaxError&&(v=new Error(`Unable to parse import map ${v.message} in: ${l.src||l.innerHTML}`)),Et(v)}),o||(qe=!1))}}function Un(l,f=Ve>0){if(Hn(l,f))return;const v=l.getAttribute("async")===null&&Ve>0,k=Ft>0;v&&Ve++,k&&Ft++;const g=On(l.src||Q,Ht(l),!l.src&&l.innerHTML,!o,v&&Mn).then(()=>{o&&l.dispatchEvent(new Event("load"))}).catch(Et);v&&(Mn=g.then(Ut)),k&&g.then(Rn)}const Bt={};function Bn(l){l.ep||(l.ep=!0,!Bt[l.href]&&(Bt[l.href]=Pn(l.href,Ht(l))))}})();var tn=function(n,e){return tn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])},tn(n,e)};function se(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");tn(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Ri(n,e,t,r){function s(o){return o instanceof t?o:new t(function(c){c(o)})}return new(t||(t=Promise))(function(o,c){function h(A){try{m(r.next(A))}catch($){c($)}}function d(A){try{m(r.throw(A))}catch($){c($)}}function m(A){A.done?o(A.value):s(A.value).then(h,d)}m((r=r.apply(n,e||[])).next())})}function pr(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,s,o,c;return c={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function h(m){return function(A){return d([m,A])}}function d(m){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,m[0]&&(t=0)),t;)try{if(r=1,s&&(o=m[0]&2?s.return:m[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,m[1])).done)return o;switch(s=0,o&&(m=[m[0]&2,o.value]),m[0]){case 0:case 1:o=m;break;case 4:return t.label++,{value:m[1],done:!1};case 5:t.label++,s=m[1],m=[0];continue;case 7:m=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(m[0]===6||m[0]===2)){t=0;continue}if(m[0]===3&&(!o||m[1]>o[0]&&m[1]<o[3])){t.label=m[1];break}if(m[0]===6&&t.label<o[1]){t.label=o[1],o=m;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(m);break}o[2]&&t.ops.pop(),t.trys.pop();continue}m=e.call(n,t)}catch(A){m=[6,A],s=0}finally{r=o=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function Oe(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function je(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),s,o=[],c;try{for(;(e===void 0||e-- >0)&&!(s=r.next()).done;)o.push(s.value)}catch(h){c={error:h}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return o}function Me(n,e,t){if(t||arguments.length===2)for(var r=0,s=e.length,o;r<s;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||Array.prototype.slice.call(e))}function Le(n){return this instanceof Le?(this.v=n,this):new Le(n)}function Ni(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(n,e||[]),s,o=[];return s={},c("next"),c("throw"),c("return"),s[Symbol.asyncIterator]=function(){return this},s;function c(S){r[S]&&(s[S]=function(T){return new Promise(function(j,I){o.push([S,T,j,I])>1||h(S,T)})})}function h(S,T){try{d(r[S](T))}catch(j){$(o[0][3],j)}}function d(S){S.value instanceof Le?Promise.resolve(S.value.v).then(m,A):$(o[0][2],S)}function m(S){h("next",S)}function A(S){h("throw",S)}function $(S,T){S(T),o.shift(),o.length&&h(o[0][0],o[0][1])}}function Hi(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof Oe=="function"?Oe(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=n[o]&&function(c){return new Promise(function(h,d){c=n[o](c),s(h,d,c.done,c.value)})}}function s(o,c,h,d){Promise.resolve(d).then(function(m){o({value:m,done:h})},c)}}function G(n){return typeof n=="function"}function cn(n){var e=function(r){Error.call(r),r.stack=new Error().stack},t=n(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Kt=cn(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
10
- `+t.map(function(r,s){return s+1+") "+r.toString()}).join(`
11
- `):"",this.name="UnsubscriptionError",this.errors=t}});function Ze(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}var he=function(){function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var e,t,r,s,o;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var h=Oe(c),d=h.next();!d.done;d=h.next()){var m=d.value;m.remove(this)}}catch(I){e={error:I}}finally{try{d&&!d.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}else c.remove(this);var A=this.initialTeardown;if(G(A))try{A()}catch(I){o=I instanceof Kt?I.errors:[I]}var $=this._finalizers;if($){this._finalizers=null;try{for(var S=Oe($),T=S.next();!T.done;T=S.next()){var j=T.value;try{Yn(j)}catch(I){o=o??[],I instanceof Kt?o=Me(Me([],je(o)),je(I.errors)):o.push(I)}}}catch(I){r={error:I}}finally{try{T&&!T.done&&(s=S.return)&&s.call(S)}finally{if(r)throw r.error}}}if(o)throw new Kt(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Yn(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ze(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&Ze(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}(),mr=he.EMPTY;function br(n){return n instanceof he||n&&"closed"in n&&G(n.remove)&&G(n.add)&&G(n.unsubscribe)}function Yn(n){G(n)?n():n.unsubscribe()}var vr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},nn={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var s=nn.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,Me([n,e],je(t))):setTimeout.apply(void 0,Me([n,e],je(t)))},clearTimeout:function(n){var e=nn.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(n)},delegate:void 0};function yr(n){nn.setTimeout(function(){throw n})}function zn(){}function gt(n){n()}var ln=function(n){se(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,br(t)&&t.add(r)):r.destination=Wi,r}return e.create=function(t,r,s){return new rn(t,r,s)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(he),Fi=Function.prototype.bind;function Qt(n,e){return Fi.call(n,e)}var Ui=function(){function n(e){this.partialObserver=e}return n.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){vt(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){vt(r)}else vt(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){vt(t)}},n}(),rn=function(n){se(e,n);function e(t,r,s){var o=n.call(this)||this,c;if(G(t)||!t)c={next:t??void 0,error:r??void 0,complete:s??void 0};else{var h;o&&vr.useDeprecatedNextContext?(h=Object.create(t),h.unsubscribe=function(){return o.unsubscribe()},c={next:t.next&&Qt(t.next,h),error:t.error&&Qt(t.error,h),complete:t.complete&&Qt(t.complete,h)}):c=t}return o.destination=new Ui(c),o}return e}(ln);function vt(n){yr(n)}function Bi(n){throw n}var Wi={closed:!0,next:zn,error:Bi,complete:zn},un=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Di(n){return n}function qi(n){return n.length===0?Di:n.length===1?n[0]:function(t){return n.reduce(function(r,s){return s(r)},t)}}var ne=function(){function n(e){e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var s=this,o=Gi(e)?e:new rn(e,t,r);return gt(function(){var c=s,h=c.operator,d=c.source;o.add(h?h.call(o,d):d?s._subscribe(o):s._trySubscribe(o))}),o},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},n.prototype.forEach=function(e,t){var r=this;return t=Jn(t),new t(function(s,o){var c=new rn({next:function(h){try{e(h)}catch(d){o(d),c.unsubscribe()}},error:o,complete:s});r.subscribe(c)})},n.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},n.prototype[un]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return qi(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=Jn(e),new e(function(r,s){var o;t.subscribe(function(c){return o=c},function(c){return s(c)},function(){return r(o)})})},n.create=function(e){return new n(e)},n}();function Jn(n){var e;return(e=n??vr.Promise)!==null&&e!==void 0?e:Promise}function Vi(n){return n&&G(n.next)&&G(n.error)&&G(n.complete)}function Gi(n){return n&&n instanceof ln||Vi(n)&&br(n)}function Yi(n){return G(n==null?void 0:n.lift)}function we(n){return function(e){if(Yi(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function _e(n,e,t,r,s){return new zi(n,e,t,r,s)}var zi=function(n){se(e,n);function e(t,r,s,o,c,h){var d=n.call(this,t)||this;return d.onFinalize=c,d.shouldUnsubscribe=h,d._next=r?function(m){try{r(m)}catch(A){t.error(A)}}:n.prototype._next,d._error=o?function(m){try{o(m)}catch(A){t.error(A)}finally{this.unsubscribe()}}:n.prototype._error,d._complete=s?function(){try{s()}catch(m){t.error(m)}finally{this.unsubscribe()}}:n.prototype._complete,d}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;n.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(ln),Ji=cn(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),At=function(n){se(e,n);function e(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new Kn(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Ji},e.prototype.next=function(t){var r=this;gt(function(){var s,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var c=Oe(r.currentObservers),h=c.next();!h.done;h=c.next()){var d=h.value;d.next(t)}}catch(m){s={error:m}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(s)throw s.error}}}})},e.prototype.error=function(t){var r=this;gt(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var s=r.observers;s.length;)s.shift().error(t)}})},e.prototype.complete=function(){var t=this;gt(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,s=this,o=s.hasError,c=s.isStopped,h=s.observers;return o||c?mr:(this.currentObservers=null,h.push(t),new he(function(){r.currentObservers=null,Ze(h,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,s=r.hasError,o=r.thrownError,c=r.isStopped;s?t.error(o):c&&t.complete()},e.prototype.asObservable=function(){var t=new ne;return t.source=this,t},e.create=function(t,r){return new Kn(t,r)},e}(ne),Kn=function(n){se(e,n);function e(t,r){var s=n.call(this)||this;return s.destination=t,s.source=r,s}return e.prototype.next=function(t){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.next)===null||s===void 0||s.call(r,t)},e.prototype.error=function(t){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.error)===null||s===void 0||s.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,s;return(s=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&s!==void 0?s:mr},e}(At),Qn=function(n){se(e,n);function e(t){var r=n.call(this)||this;return r._value=t,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var r=n.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},e.prototype.getValue=function(){var t=this,r=t.hasError,s=t.thrownError,o=t._value;if(r)throw s;return this._throwIfClosed(),o},e.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},e}(At),fn={now:function(){return(fn.delegate||Date).now()},delegate:void 0},Xe=function(n){se(e,n);function e(t,r,s){t===void 0&&(t=1/0),r===void 0&&(r=1/0),s===void 0&&(s=fn);var o=n.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=s,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return e.prototype.next=function(t){var r=this,s=r.isStopped,o=r._buffer,c=r._infiniteTimeWindow,h=r._timestampProvider,d=r._windowTime;s||(o.push(t),!c&&o.push(h.now()+d)),this._trimBuffer(),n.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),s=this,o=s._infiniteTimeWindow,c=s._buffer,h=c.slice(),d=0;d<h.length&&!t.closed;d+=o?1:2)t.next(h[d]);return this._checkFinalizedStatuses(t),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,s=t._timestampProvider,o=t._buffer,c=t._infiniteTimeWindow,h=(c?1:2)*r;if(r<1/0&&h<o.length&&o.splice(0,o.length-h),!c){for(var d=s.now(),m=0,A=1;A<o.length&&o[A]<=d;A+=2)m=A;m&&o.splice(0,m+1)}},e}(At),Ki=function(n){se(e,n);function e(t,r){return n.call(this)||this}return e.prototype.schedule=function(t,r){return this},e}(he),_t={setInterval:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var s=_t.delegate;return s!=null&&s.setInterval?s.setInterval.apply(s,Me([n,e],je(t))):setInterval.apply(void 0,Me([n,e],je(t)))},clearInterval:function(n){var e=_t.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(n)},delegate:void 0},Qi=function(n){se(e,n);function e(t,r){var s=n.call(this,t,r)||this;return s.scheduler=t,s.work=r,s.pending=!1,s}return e.prototype.schedule=function(t,r){var s;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var o=this.id,c=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(c,o,r)),this.pending=!0,this.delay=r,this.id=(s=this.id)!==null&&s!==void 0?s:this.requestAsyncId(c,this.id,r),this},e.prototype.requestAsyncId=function(t,r,s){return s===void 0&&(s=0),_t.setInterval(t.flush.bind(t,this),s)},e.prototype.recycleAsyncId=function(t,r,s){if(s===void 0&&(s=0),s!=null&&this.delay===s&&this.pending===!1)return r;r!=null&&_t.clearInterval(r)},e.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var s=this._execute(t,r);if(s)return s;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,r){var s=!1,o;try{this.work(t)}catch(c){s=!0,o=c||new Error("Scheduled action threw falsy error")}if(s)return this.unsubscribe(),o},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,s=t.scheduler,o=s.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ze(o,this),r!=null&&(this.id=this.recycleAsyncId(s,r,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},e}(Ki),Xn=function(){function n(e,t){t===void 0&&(t=n.now),this.schedulerActionCtor=e,this.now=t}return n.prototype.schedule=function(e,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},n.now=fn.now,n}(),Xi=function(n){se(e,n);function e(t,r){r===void 0&&(r=Xn.now);var s=n.call(this,t,r)||this;return s.actions=[],s._active=!1,s}return e.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var s;this._active=!0;do if(s=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,s){for(;t=r.shift();)t.unsubscribe();throw s}},e}(Xn),Zi=new Xi(Qi),es=new ne(function(n){return n.complete()});function ts(n){return n&&G(n.schedule)}function ns(n){return n[n.length-1]}function gr(n){return ts(ns(n))?n.pop():void 0}var _r=function(n){return n&&typeof n.length=="number"&&typeof n!="function"};function wr(n){return G(n==null?void 0:n.then)}function $r(n){return G(n[un])}function kr(n){return Symbol.asyncIterator&&G(n==null?void 0:n[Symbol.asyncIterator])}function Ar(n){return new TypeError("You provided "+(n!==null&&typeof n=="object"?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function rs(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Sr=rs();function xr(n){return G(n==null?void 0:n[Sr])}function Er(n){return Ni(this,arguments,function(){var t,r,s,o;return pr(this,function(c){switch(c.label){case 0:t=n.getReader(),c.label=1;case 1:c.trys.push([1,,9,10]),c.label=2;case 2:return[4,Le(t.read())];case 3:return r=c.sent(),s=r.value,o=r.done,o?[4,Le(void 0)]:[3,5];case 4:return[2,c.sent()];case 5:return[4,Le(s)];case 6:return[4,c.sent()];case 7:return c.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Or(n){return G(n==null?void 0:n.getReader)}function st(n){if(n instanceof ne)return n;if(n!=null){if($r(n))return is(n);if(_r(n))return ss(n);if(wr(n))return os(n);if(kr(n))return Ir(n);if(xr(n))return as(n);if(Or(n))return cs(n)}throw Ar(n)}function is(n){return new ne(function(e){var t=n[un]();if(G(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ss(n){return new ne(function(e){for(var t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}function os(n){return new ne(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,yr)})}function as(n){return new ne(function(e){var t,r;try{for(var s=Oe(n),o=s.next();!o.done;o=s.next()){var c=o.value;if(e.next(c),e.closed)return}}catch(h){t={error:h}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}e.complete()})}function Ir(n){return new ne(function(e){ls(n,e).catch(function(t){return e.error(t)})})}function cs(n){return Ir(Er(n))}function ls(n,e){var t,r,s,o;return Ri(this,void 0,void 0,function(){var c,h;return pr(this,function(d){switch(d.label){case 0:d.trys.push([0,5,6,11]),t=Hi(n),d.label=1;case 1:return[4,t.next()];case 2:if(r=d.sent(),!!r.done)return[3,4];if(c=r.value,e.next(c),e.closed)return[2];d.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return h=d.sent(),s={error:h},[3,11];case 6:return d.trys.push([6,,9,10]),r&&!r.done&&(o=t.return)?[4,o.call(t)]:[3,8];case 7:d.sent(),d.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function ie(n,e,t,r,s){r===void 0&&(r=0),s===void 0&&(s=!1);var o=e.schedule(function(){t(),s?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(o),!s)return o}function Cr(n,e){return e===void 0&&(e=0),we(function(t,r){t.subscribe(_e(r,function(s){return ie(r,n,function(){return r.next(s)},e)},function(){return ie(r,n,function(){return r.complete()},e)},function(s){return ie(r,n,function(){return r.error(s)},e)}))})}function Tr(n,e){return e===void 0&&(e=0),we(function(t,r){r.add(n.schedule(function(){return t.subscribe(r)},e))})}function us(n,e){return st(n).pipe(Tr(e),Cr(e))}function fs(n,e){return st(n).pipe(Tr(e),Cr(e))}function hs(n,e){return new ne(function(t){var r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}function ds(n,e){return new ne(function(t){var r;return ie(t,e,function(){r=n[Sr](),ie(t,e,function(){var s,o,c;try{s=r.next(),o=s.value,c=s.done}catch(h){t.error(h);return}c?t.complete():t.next(o)},0,!0)}),function(){return G(r==null?void 0:r.return)&&r.return()}})}function Lr(n,e){if(!n)throw new Error("Iterable cannot be null");return new ne(function(t){ie(t,e,function(){var r=n[Symbol.asyncIterator]();ie(t,e,function(){r.next().then(function(s){s.done?t.complete():t.next(s.value)})},0,!0)})})}function ps(n,e){return Lr(Er(n),e)}function ms(n,e){if(n!=null){if($r(n))return us(n,e);if(_r(n))return hs(n,e);if(wr(n))return fs(n,e);if(kr(n))return Lr(n,e);if(xr(n))return ds(n,e);if(Or(n))return ps(n,e)}throw Ar(n)}function St(n,e){return e?ms(n,e):st(n)}function bs(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=gr(n);return St(n,t)}var vs=cn(function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}});function Zn(n,e){var t=typeof e=="object";return new Promise(function(r,s){var o=!1,c;n.subscribe({next:function(h){c=h,o=!0},error:s,complete:function(){o?r(c):t?r(e.defaultValue):s(new vs)}})})}function Pr(n,e){return we(function(t,r){var s=0;t.subscribe(_e(r,function(o){r.next(n.call(e,o,s++))}))})}function ys(n,e,t,r,s,o,c,h){var d=[],m=0,A=0,$=!1,S=function(){$&&!d.length&&!m&&e.complete()},T=function(I){return m<r?j(I):d.push(I)},j=function(I){o&&e.next(I),m++;var J=!1;st(t(I,A++)).subscribe(_e(e,function(H){s==null||s(H),o?T(H):e.next(H)},function(){J=!0},void 0,function(){if(J)try{m--;for(var H=function(){var M=d.shift();c?ie(e,c,function(){return j(M)}):j(M)};d.length&&m<r;)H();S()}catch(M){e.error(M)}}))};return n.subscribe(_e(e,T,function(){$=!0,S()})),function(){h==null||h()}}function wt(n,e,t){return t===void 0&&(t=1/0),G(e)?wt(function(r,s){return Pr(function(o,c){return e(r,o,s,c)})(st(n(r,s)))},t):(typeof e=="number"&&(t=e),we(function(r,s){return ys(r,s,n,t)}))}function et(n,e){return we(function(t,r){var s=0;t.subscribe(_e(r,function(o){return n.call(e,o,s++)&&r.next(o)}))})}function gs(n){for(var e,t,r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var o=(e=gr(r))!==null&&e!==void 0?e:Zi,c=(t=r[0])!==null&&t!==void 0?t:null,h=r[1]||1/0;return we(function(d,m){var A=[],$=!1,S=function(I){var J=I.buffer,H=I.subs;H.unsubscribe(),Ze(A,I),m.next(J),$&&T()},T=function(){if(A){var I=new he;m.add(I);var J=[],H={buffer:J,subs:I};A.push(H),ie(I,o,function(){return S(H)},n)}};c!==null&&c>=0?ie(m,o,T,c,!0):$=!0,T();var j=_e(m,function(I){var J,H,M=A.slice();try{for(var F=Oe(M),R=F.next();!R.done;R=F.next()){var oe=R.value,Q=oe.buffer;Q.push(I),h<=Q.length&&S(oe)}}catch(q){J={error:q}}finally{try{R&&!R.done&&(H=F.return)&&H.call(F)}finally{if(J)throw J.error}}},function(){for(;A!=null&&A.length;)m.next(A.shift().buffer);j==null||j.unsubscribe(),m.complete(),m.unsubscribe()},void 0,function(){return A=null});d.subscribe(j)})}function sn(n){return n<=0?function(){return es}:we(function(e,t){var r=0;e.subscribe(_e(t,function(s){++r<=n&&(t.next(s),n<=r&&t.complete())}))})}function _s(){return we(function(n,e){var t,r=!1;n.subscribe(_e(e,function(s){var o=t;t=s,r&&e.next([o,s]),r=!0}))})}const ws=(n,e,t=0)=>{const{selectors:r}=e;return n.querySelector(r[t])};function $s(n){return document.querySelector(n)}const ks=(n,e)=>{const t=e.get(n);if(t){const{css:r,rest:s,subscription:o}=t;s.forEach(c=>{var h;return(h=c.__unfocus_handler)==null?void 0:h.call(c)}),o.unsubscribe(),Object.assign(t.elementToFocus.style,r)}e.delete(n)};function As(n,e,t){const r=new Map,s=$s.bind(n),o=e.pipe(_s()).subscribe(([c,h])=>{var d,m,A;if(c!==void 0){const $=ws(n,c);$!==null&&((d=$.__unfocus_handler)==null||d.call($),ks($,r))}if(h!==void 0){const[$,...S]=h.selectors,T=S.reduce((R,oe)=>{var Q;const q=s(oe);return q&&R.push(q),(Q=q==null?void 0:q.__focus_handler)==null||Q.call(q),R},[]),j=s($),I=(A=(m=j.__focus_handler)==null?void 0:m.call(j))!=null?A:j,J=Object.keys(h.style),H=new he,M={css:{},elementToFocus:I,rest:T,subscription:H},F=J.reduce((R,oe)=>(Object.assign(R.css,{[oe]:I.style[oe]}),R),M);H.add(t.pipe(et(R=>R==="select"),sn(1)).subscribe(()=>{Object.assign(I.style,h.style)})),r.set(j,F)}});return()=>o.unsubscribe()}var Ss=Object.defineProperty,xs=(n,e,t)=>e in n?Ss(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ye=(n,e,t)=>(xs(n,typeof e!="symbol"?e+"":e,t),t);let Es=class{constructor(e){ye(this,"_input"),ye(this,"_length"),ye(this,"_idx",0),ye(this,"_mode",0),ye(this,"_literals",[]),ye(this,"_variables",[]),ye(this,"_braketCount",0),ye(this,"_done",!1),this._input=e,this._length=e.length}concatToLastLiteral(e){this._literals.push(this._literals.pop().concat(e))}concatToLastVariable(e){this._variables.push(this._variables.pop().concat(e))}get(){const e=[...this._literals],t=Object.assign([],e);return Object.defineProperty(t,"raw",{value:e,writable:!1}),{literals:t,variables:this._variables}}run(){for(this._length===0&&this._literals.push("");this._idx<this._length;){const e=this._input.charAt(this._idx);switch(this._mode){case 0:{this._literals.length===0&&this._literals.push(""),e==="{"&&this._idx+1!==this._length&&this._input.charAt(this._idx+1)==="{"?(this._literals.push(""),this._variables.push(""),this._mode=1,this._idx+=1):this.concatToLastLiteral(e);break}case 1:e==="}"&&this._input.charAt(this._idx+1)==="}"?(this._mode=0,this._idx+=1):this.concatToLastVariable(e);break}this._idx+=1}this._mode===1&&(this._literals.pop(),this.concatToLastLiteral(`{{${this._variables.pop()}`)),this._done=!0}};const Os=n=>{const e=n.trim();if(!(e.startsWith("[")&&e.endsWith("]")))return!1;const t=e.slice(1).slice(0,-1).trim();return Number.parseInt(t).toString(10)===t},Is=n=>Number.parseInt(n.trim().slice(1).slice(0,-1).trim());function Cs(n,e,t){if(!e.trim())return t?`{{${e}}}`:"";const r=e.trim().split(".").reduce((s,o)=>{if(Array.isArray(s)&&Os(o))return s[Is(o)];if(typeof s=="object"&&s!==null&&o in s)return s[o]},{...n});return typeof r=="string"?r:t?`{{${e}}}`:""}function Ts(n,e,t=!1){const r=new Es(n);r.run();const s=r.get();let[o]=s.literals;for(let c=0;c<s.variables.length;c++)o=o.concat(Cs(e,s.variables[c],t)).concat(s.literals[c+1]);return o}const Ls=(n,e)=>Object.fromEntries(Object.entries(n).map(([t,r])=>[t,Ts(r,e)]));var Ps=Object.defineProperty,js=(n,e,t)=>e in n?Ps(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,yt=(n,e,t)=>(js(n,typeof e!="symbol"?e+"":e,t),t);const on="__mia_preview_id",Ms=1e6,jr={"click-element":0,"ctrl-space":0,"focus-element":0,mousedown:0,mousemove:1,"new-configuration":0,notification:0,options:0,"tag-info":0,update:0,updated:0},Rs=n=>Object.keys(jr).includes(n);function Ns(n,e){if(n===null||typeof n!="object"||!("type"in n)||typeof n.type!="string")return!1;const{type:t}=n;if(!t.startsWith(e))return!1;const r=t.substring(e.length);return!!Rs(r)}const Hs=(n,e)=>({...e,type:`${n}${e.type}`}),Fs=(n,e)=>{let{type:t}=e;return t.startsWith(n)&&(t=t.substring(n.length)),{...e,type:t}},Us=()=>{let n="#";for(let e=0;e<3;e++)n+=`0${Math.floor(Math.random()*Math.pow(16,2)/2).toString(16)}`.slice(-2);return n};class Bs{constructor(e){yt(this,"__instance"),yt(this,"__handler"),yt(this,"__window"),yt(this,"__randomColor"),this.__instance="",this.__handler=e,this.__window=window,this.__randomColor=Us()}postMessage(e,t,r){if(this.__window.__BACKOFFICE_CONFIGURATOR_LOG_LEVEL__==="debug"&&console.assert(e!==this.__window),this.__window.__BACKOFFICE_CONFIGURATOR_LOG_LEVEL__==="debug"&&jr[t.type]!==1){const s=this.__randomColor,c={background:`${s}22`,color:s},h=this.__window.top!==this.__window;console.groupCollapsed(`%c Msg from ${this.__window.origin} ${h?"(inner)":"(top)"} `,Object.entries(c).map(([d,m])=>`${d}: ${m}`).join("; ")),console.info(`window '${this.__window.origin}' is sending a message of type %c ${t.type} `,"background: lightgreen; color: darkgreen"),console.log(t.content),console.groupEnd()}e.postMessage(Hs(this.__instance,t),r)}set instance(e){this.__instance=e}get window(){return this.__window}set window(e){this.__window=e}send(e,t,r="*"){this.__window!==e&&this.postMessage(e,t,r)}recv(e){const t=({data:r})=>{if(Ns(r,this.__instance)){const s=Fs(this.__instance,r);this.__handler(s)}};return e.addEventListener("message",t),()=>e.removeEventListener("message",t)}}var Xt;const $t=window,Re=$t.trustedTypes,er=Re?Re.createPolicy("lit-html",{createHTML:n=>n}):void 0,ge=`lit$${(Math.random()+"").slice(9)}$`,Mr="?"+ge,Ws=`<${Mr}>`,Ne=document,tt=(n="")=>Ne.createComment(n),nt=n=>n===null||typeof n!="object"&&typeof n!="function",Rr=Array.isArray,Ds=n=>Rr(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Qe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tr=/-->/g,nr=/>/g,Ee=RegExp(`>|[
12
- \f\r](?:([^\\s"'>=/]+)([
13
- \f\r]*=[
14
- \f\r]*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),rr=/'/g,ir=/"/g,Nr=/^(?:script|style|textarea|title)$/i,qs=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),Vs=qs(1),rt=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),sr=new WeakMap,Pe=Ne.createTreeWalker(Ne,129,null,!1),Gs=(n,e)=>{const t=n.length-1,r=[];let s,o=e===2?"<svg>":"",c=Qe;for(let d=0;d<t;d++){const m=n[d];let A,$,S=-1,T=0;for(;T<m.length&&(c.lastIndex=T,$=c.exec(m),$!==null);)T=c.lastIndex,c===Qe?$[1]==="!--"?c=tr:$[1]!==void 0?c=nr:$[2]!==void 0?(Nr.test($[2])&&(s=RegExp("</"+$[2],"g")),c=Ee):$[3]!==void 0&&(c=Ee):c===Ee?$[0]===">"?(c=s??Qe,S=-1):$[1]===void 0?S=-2:(S=c.lastIndex-$[2].length,A=$[1],c=$[3]===void 0?Ee:$[3]==='"'?ir:rr):c===ir||c===rr?c=Ee:c===tr||c===nr?c=Qe:(c=Ee,s=void 0);const j=c===Ee&&n[d+1].startsWith("/>")?" ":"";o+=c===Qe?m+Ws:S>=0?(r.push(A),m.slice(0,S)+"$lit$"+m.slice(S)+ge+j):m+ge+(S===-2?(r.push(void 0),d):j)}const h=o+(n[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[er!==void 0?er.createHTML(h):h,r]};class it{constructor({strings:e,_$litType$:t},r){let s;this.parts=[];let o=0,c=0;const h=e.length-1,d=this.parts,[m,A]=Gs(e,t);if(this.el=it.createElement(m,r),Pe.currentNode=this.el.content,t===2){const $=this.el.content,S=$.firstChild;S.remove(),$.append(...S.childNodes)}for(;(s=Pe.nextNode())!==null&&d.length<h;){if(s.nodeType===1){if(s.hasAttributes()){const $=[];for(const S of s.getAttributeNames())if(S.endsWith("$lit$")||S.startsWith(ge)){const T=A[c++];if($.push(S),T!==void 0){const j=s.getAttribute(T.toLowerCase()+"$lit$").split(ge),I=/([.?@])?(.*)/.exec(T);d.push({type:1,index:o,name:I[2],strings:j,ctor:I[1]==="."?zs:I[1]==="?"?Ks:I[1]==="@"?Qs:xt})}else d.push({type:6,index:o})}for(const S of $)s.removeAttribute(S)}if(Nr.test(s.tagName)){const $=s.textContent.split(ge),S=$.length-1;if(S>0){s.textContent=Re?Re.emptyScript:"";for(let T=0;T<S;T++)s.append($[T],tt()),Pe.nextNode(),d.push({type:2,index:++o});s.append($[S],tt())}}}else if(s.nodeType===8)if(s.data===Mr)d.push({type:2,index:o});else{let $=-1;for(;($=s.data.indexOf(ge,$+1))!==-1;)d.push({type:7,index:o}),$+=ge.length-1}o++}}static createElement(e,t){const r=Ne.createElement("template");return r.innerHTML=e,r}}function He(n,e,t=n,r){var s,o,c,h;if(e===rt)return e;let d=r!==void 0?(s=t._$Co)===null||s===void 0?void 0:s[r]:t._$Cl;const m=nt(e)?void 0:e._$litDirective$;return(d==null?void 0:d.constructor)!==m&&((o=d==null?void 0:d._$AO)===null||o===void 0||o.call(d,!1),m===void 0?d=void 0:(d=new m(n),d._$AT(n,t,r)),r!==void 0?((c=(h=t)._$Co)!==null&&c!==void 0?c:h._$Co=[])[r]=d:t._$Cl=d),d!==void 0&&(e=He(n,d._$AS(n,e.values),d,r)),e}class Ys{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;const{el:{content:r},parts:s}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:Ne).importNode(r,!0);Pe.currentNode=o;let c=Pe.nextNode(),h=0,d=0,m=s[0];for(;m!==void 0;){if(h===m.index){let A;m.type===2?A=new ot(c,c.nextSibling,this,e):m.type===1?A=new m.ctor(c,m.name,m.strings,this,e):m.type===6&&(A=new Xs(c,this,e)),this.u.push(A),m=s[++d]}h!==(m==null?void 0:m.index)&&(c=Pe.nextNode(),h++)}return o}p(e){let t=0;for(const r of this.u)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class ot{constructor(e,t,r,s){var o;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=s,this._$Cm=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=He(this,e,t),nt(e)?e===z||e==null||e===""?(this._$AH!==z&&this._$AR(),this._$AH=z):e!==this._$AH&&e!==rt&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ds(e)?this.k(e):this.g(e)}O(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==z&&nt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ne.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:s}=e,o=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=it.createElement(s.h,this.options)),s);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.p(r);else{const c=new Ys(o,this),h=c.v(this.options);c.p(r),this.T(h),this._$AH=c}}_$AC(e){let t=sr.get(e.strings);return t===void 0&&sr.set(e.strings,t=new it(e)),t}k(e){Rr(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,s=0;for(const o of e)s===t.length?t.push(r=new ot(this.O(tt()),this.O(tt()),this,this.options)):r=t[s],r._$AI(o),s++;s<t.length&&(this._$AR(r&&r._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class xt{constructor(e,t,r,s,o){this.type=1,this._$AH=z,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,s){const o=this.strings;let c=!1;if(o===void 0)e=He(this,e,t,0),c=!nt(e)||e!==this._$AH&&e!==rt,c&&(this._$AH=e);else{const h=e;let d,m;for(e=o[0],d=0;d<o.length-1;d++)m=He(this,h[r+d],t,d),m===rt&&(m=this._$AH[d]),c||(c=!nt(m)||m!==this._$AH[d]),m===z?e=z:e!==z&&(e+=(m??"")+o[d+1]),this._$AH[d]=m}c&&!s&&this.j(e)}j(e){e===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class zs extends xt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===z?void 0:e}}const Js=Re?Re.emptyScript:"";class Ks extends xt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==z?this.element.setAttribute(this.name,Js):this.element.removeAttribute(this.name)}}class Qs extends xt{constructor(e,t,r,s,o){super(e,t,r,s,o),this.type=5}_$AI(e,t=this){var r;if((e=(r=He(this,e,t,0))!==null&&r!==void 0?r:z)===rt)return;const s=this._$AH,o=e===z&&s!==z||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,c=e!==z&&(s===z||o);o&&this.element.removeEventListener(this.name,this,s),c&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e)}}class Xs{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){He(this,e)}}const or=$t.litHtmlPolyfillSupport;or==null||or(it,ot),((Xt=$t.litHtmlVersions)!==null&&Xt!==void 0?Xt:$t.litHtmlVersions=[]).push("2.6.1");const Zs=(n,e,t)=>{var r,s;const o=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:e;let c=o._$litPart$;if(c===void 0){const h=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=c=new ot(e.insertBefore(tt(),h),h,void 0,t??{})}return c._$AI(n),c};const eo=n=>{const e=n.charAt(0);return!(e!==n.charAt(n.length-1)||e!=="'"&&e!=='"')};function to(n){const e=n.match(/([^.]+)/g);return t=>e.reduce((r,s)=>{let o=s;if(s.startsWith("[")&&s.endsWith("]")){const c=s.slice(1,-1),h=Number.parseInt(c);!Number.isNaN(h)&&h.toString()===c?o=h:(c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'"))&&(o=c.slice(1,-1))}if(o==="")throw new TypeError("42",{cause:n});return typeof r=="object"&&r!==null?r[o]:void 0},t)}function no(n,e={}){return n.reduce((t,r,s)=>{const o=r.trim(),c=Number.parseInt(o),h=Number.parseFloat(o);if(o==="")t[s]=o;else if(eo(o))t[s]=o.slice(1,-1);else if(["true","false"].includes(o))t[s]=o==="true";else if(!Number.isNaN(c)&&c.toString()===o)t[s]=c;else if(!Number.isNaN(h)&&h.toString()===o)t[s]=h;else if(o.startsWith("{")||o.startsWith("["))try{t[s]=JSON.parse(o)}catch(d){if(d instanceof SyntaxError)throw new TypeError("43",{cause:d.message})}else t[s]=to(o)(e);return t},[])}function Hr(n){return Array.isArray(n)?n:[n]}function ro(n){const e=typeof n=="string"?[n]:n;return Array.isArray(e)?e:Hr(e.uris)}const io=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function so(n){return io.includes(n.tag)}function oo(n){return Array.isArray(n)?n:[n]}function Fr(n,e,t){if(typeof e!="object"){n.push(`${e}`);return}oo(e).forEach(r=>{if(typeof r!="object"){n.push(`${r}`);return}const{tag:s,attributes:o={},booleanAttributes:c=[],properties:h={}}=r,d=so(r),m=`<${s}`,A=d?"/>":">",$=`</${s}>`,S=Object.entries(o).reduce((M,[F,R])=>(M.push(`${F}="${R}"`),M),[]),T=Hr(c),{override:j,props:I}=Object.entries(h).reduce((M,[F,R])=>(t.has(F)?typeof R=="string"&&(M.override[F]=R):M.props[F]=R,M),{override:{},props:{}}),J=Array.from(t.keys()).map(M=>{var F;return`.${M}=\${${(F=j[M])!=null?F:M}}`}),H=Object.entries(I).reduce((M,[F,R])=>{switch(typeof R){case"object":case"number":case"boolean":M.push(`.${F}=\${${JSON.stringify(R)}}`);break;case"string":M.push(`.${F}=\${"${R}"}`);break}return M},[]);if(n.push([m,S.join(" "),T.join(" "),J.join(" "),H.join(" "),A].join(" ")),!d){const{content:M}=r;M!==void 0&&Fr(n,M,t),n.push($)}})}function ao(n,e=new Set){const t=[];return Fr(t,n,e),t.join(" ")}const co="modulepreload",lo=function(n,e){return new URL(n,e).href},ar={},uo=function(e,t,r){if(!t||t.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(t.map(o=>{if(o=lo(o,r),o in ar)return;ar[o]=!0;const c=o.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(!!r)for(let A=s.length-1;A>=0;A--){const $=s[A];if($.href===o&&(!c||$.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${h}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":co,c||(m.as="script",m.crossOrigin=""),m.href=o,document.head.appendChild(m),c)return new Promise((A,$)=>{m.addEventListener("load",A),m.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e())};function Ur(n,...e){uo(()=>import("./errors-af3a2945.js"),[],import.meta.url).then(({default:t})=>{const r=t[n];r?console.error(r(...e)):console.error(...e)}).catch(t=>{console.error(`[micro-lc][composer]: Dynamic import error while importing logger utils - ${t.message}`)})}function fo(n){return e=>{Ur("0",n,e.message)}}const ho=Object.freeze(Object.defineProperty({__proto__:null,dynamicImportError:fo,error:Ur},Symbol.toStringTag,{value:"Module"}));var cr=ho;var po=Object.defineProperty,mo=(n,e,t)=>e in n?po(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ue=(n,e,t)=>(mo(n,typeof e!="symbol"?e+"":e,t),t);class bo{constructor(e){ue(this,"_i",0),ue(this,"_s"),ue(this,"_l"),ue(this,"_d",!1),ue(this,"_m",0),ue(this,"_st",[]),ue(this,"_n",0),ue(this,"_li",[]),ue(this,"_v",[]),this._s=e,this._l=e.length,e.length===0&&(this._d=!0)}_sw(e){this._m=e}_fst(){this._st=[]}_fn(){this._v.push(this._st.join("")),this._fst()}_fs(){this._li.push(this._st.join("")),this._fst()}_fpn(){this._li.push(this._st.slice(0,-1).join("")),this._fst()}_nx(){const e=this._s.charAt(this._i);switch(this._m){case 1:{e==="{"?(this._n+=1,this._st.push(e)):e==="}"&&this._n===0?(this._fn(),this._sw(0)):e==="}"&&this._n>0?(this._st.push(e),this._n-=1):this._st.push(e);break}case 2:{e==="{"?(this._fpn(),this._sw(1)):(this._sw(0),this._st.push(e));break}case 0:default:{e==="$"&&this._sw(2),this._st.push(e);break}}if(this._i+=1,this._i===this._l){if(this._m===2)this._sw(0);else if(this._m===1)throw new TypeError("41",{cause:`${this._i}`});this._fs(),this._d=!0}}_c(){const e=[...this._li],t=Object.assign([],e);return Object.defineProperty(t,"raw",{value:e,writable:!1}),{literals:t,variables:this._v}}run(){for(;!this._d;)this._nx();return this._c()}}const vo=async(n,e="SHA-1")=>window.crypto.subtle.digest(e,new TextEncoder().encode(n)),Zt=new Map;async function yo(n){const e=await vo(n).catch(t=>{cr.error("40",n,t.message)});if(!e||!Zt.has(e)){let t;try{t=new bo(n).run(),e&&Zt.set(e,t)}catch(r){r instanceof TypeError&&cr.error(r.message,n,r.cause);const s=[];Object.defineProperty(s,"raw",{value:s,writable:!1}),t={literals:s,variables:[]}}return t}return Zt.get(e)}class en extends Xe{}function go(){const n=[],e=new Proxy({},{get(t,r,s){return typeof r=="string"&&!Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=new en),Reflect.get(t,r,s)}});return new Proxy(new en,{get(t,r,s){if(r==="pool")return e;const o=typeof r=="string"?Number.parseInt(r,10):Number.NaN;return Number.isNaN(o)?Reflect.get(t,r,s):(n.at(o)===void 0&&(n[o]=new en),n[o])}})}async function _o(n,{extraProperties:e,context:t={}}={}){const r=Array.isArray(e)?new Set(e):e,s=ao(n,r),o=await yo(s),c=no(o.variables,t),h=Vs(o.literals,...c);return(d,m)=>Zs(h,d,m)}async function wo(n,e=window,t=console.error){var r;let s=[],o,c=Promise.resolve();if(n.sources){const{sources:h}=n;o=!Array.isArray(h)&&typeof h!="string"?(r=h.importmap)!=null?r:{}:{};try{e.importShim.addImportMap(o)}catch(d){t(d)}s=ro(h),s.length>0&&(c=Promise.all(s.map(d=>e.importShim(d).catch(t))))}return c.then(()=>({...n,sources:{importmap:o,uris:s}}))}async function $o(n,e,t={}){return _o(n.content,{context:t,extraProperties:new Set(Object.keys(t))}).then(s=>(s(e),null))}function ko(){return{configuration:new Xe,focus:new Qn(void 0),infos:new Xe,mocks:new Xe,mode:new Qn("select"),notification:new Xe,updated:new At,uppercaseTags:new Set}}const Br=n=>{let e=0;const t=n.getValue();return t==="interact"?e="select":t==="select"&&(e="interact"),n.next(e),e},te=ko();function Ao(n){switch(n.type){case"options":{const{content:{disableOverlay:e,instance:t,redirectTo:r}}=n;e&&(Object.defineProperty(this.window,"__BACKOFFICE_CONFIGURATOR_DISABLE_OVERLAY__",{value:!0}),te.mode.next("interact")),t&&(this.instance=t);const{window:{history:s}}=this;r&&s.pushState(s.state,"",r);break}case"ctrl-space":Br(te.mode);break;case"new-configuration":te.configuration.next({...n.content,type:"reset"});break;case"update":te.configuration.next({...n.content,type:"update"});break;case"focus-element":te.focus.next(n.content);break}}const fe=new Bs(Ao),So=n=>{var e;return{data:{message:n.message,name:n.name,stack:(e=n.stack)!=null?e:""},description:"preview.notifications.error.description",message:"preview.notifications.error.message",status:"error"}},Wr=(n,e)=>fe.send(n.parent,{content:So(e),type:"notification"}),Dr=n=>"clientX"in n&&"clientY"in n;function lr(n,e){return t=>{Dr(t)&&fe.send(n.parent,{content:{bubbles:!0,cancelable:!1,clientX:t.clientX,clientY:t.clientY},type:e})}}const xo=(n,e)=>n.has(e.tagName)&&e.hasAttribute(on),Eo=(n,e)=>{const{document:t}=n;return r=>{let s;if(Dr(r)){const{clientX:o,clientY:c}=r;s=t.elementsFromPoint(o,c).reduce((h,d)=>{if(xo(e.uppercaseTags,d)){const m=d.getAttribute(on);h.ids.push(m),h.selectors.push(`[${on}="${m}"]`)}return h},{ids:[],selectors:[]})}(e.mode.getValue()==="select"||s===void 0)&&fe.send(n.parent,{content:s&&(s.ids.length>0?s:void 0),type:"click-element"})}},Oo=n=>e=>{e.ctrlKey&&e.key===" "&&(e.preventDefault(),Br(n.mode),n.focus.next(void 0))},Io="en",Co=(n,e=Io)=>typeof n=="string"?n:n==null?void 0:n[e];function To(n){return Object.entries(n).reduce((e,[t,r])=>(e[t]=Co(r),e),{})}const kt=(...n)=>{},Lo=n=>Array.isArray(n)?n:[n],qr=({document:{baseURI:n},location:{href:e}})=>t=>new URL(t,new URL(n,e)),Vr=(n,e)=>{let t=e;return e instanceof URL||(t=n(typeof e=="string"?e:e.url)),t},Po=(n,e)=>{const{href:t,origin:r}=e;return n===r?t.substring(n.length):t},jo=([n,e])=>St(e.then(t=>[n,t])),Mo=([n,e])=>{const t={label:n,properties:{},type:"layout"},{__manifest:r=Promise.resolve(t)}=e,s=r.then(o=>[e,{__manifest:{...t,...o},tag:n}]).catch(()=>[e,{__manifest:t,tag:n}]);return St(s)},Ro=(n,e)=>St(e.map(t=>[t,n.whenDefined(t)])).pipe(wt(jo),wt(Mo)),No=500;function hn(n){n instanceof Error&&Wr(this,n)}function Ho(n,e){const t=hn.bind(this);return n.pipe(wt(([,{__manifest:{label:r,description:s,...o},tag:c}])=>(delete o.mocks,bs({info:{...To({description:s,label:r}),...o},tag:c}))),gs(No),et(r=>r.length>0)).subscribe({error:t,next:r=>e(r)})}function Fo(n){const e=hn.bind(this);return n.pipe(Pr(([,{__manifest:{mocks:t={}},tag:r}])=>[r,t])).subscribe({error:e,next:t=>{te.mocks.next(t)}})}async function Gr(n,{addInfo:e,tags:t}){const{subscription:r}=this,s=hn.bind(this);if(n){const o=Ro(this.customElements,t);return wo(n,this,s).then(()=>{r.add(Ho.call(this,o,e)),r.add(Fo.call(this,o))})}}const Yr=(n,e)=>{const{document:t}=n;let r=e.firstElementChild;return r===null&&(r=t.createElement("div"),r.style.height="inherit",r.style.display="flex",e.appendChild(r)),r};async function an(n,e){const t=go(),{proxyWindow:r=this}=this;return $o({content:n,sources:{importmap:{},uris:[]}},Yr(this,e),{eventBus:t,proxyWindow:r})}function zr(n){Yr(this,n).remove()}var Uo=Object.defineProperty,Bo=(n,e,t)=>e in n?Uo(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Wo=(n,e,t)=>(Bo(n,typeof e!="symbol"?e+"":e,t),t);const ur=(n,e,t)=>{const{properties:r,attributes:s,booleanAttributes:o=[]}=n,c=Object.assign(Object.fromEntries(Lo(o).map(d=>[d,!0])),{...s,...r});return e(c).map(({url:d,method:m="GET",handler:A=()=>Promise.resolve(new Response)})=>{var $;const S=Ls({...d,method:m},c);return[new URL(S.pathname,($=S.origin)!=null?$:t).href,m,(j,I)=>A(j,I)]})},Do=(n,e)=>{const{href:t,search:r}=n;return t.replace(/\?$/,"").substring(0,t.length-r.length).match(new RegExp(`^${e}$`))!==null},qo=(n,e)=>{const{href:t}=n;return t.match(new RegExp(`^${e.replace(/\/$/,"")}/`))!==null};class Vo extends Map{constructor(){super(...arguments),Wo(this,"__urlMap",new Map)}add(e,t){var r,s;const{method:o,url:c}=e,h=(r=this.get(o))!=null?r:new Map,d=(s=this.__urlMap.get(o))!=null?s:[];h.set(c,t),d.push(c),this.set(o,h),this.__urlMap.set(o,d)}match(e){var t;const{method:r,url:s}=e,o=this.__urlMap.get(r);if(o===void 0)return;const c=o.reduce((h,d,m,A)=>{if(Do(s,d)||qo(s,d)){if(h===void 0)return m;if(A[h].length<d.length)return m}return h},void 0);if(c!==void 0)return(t=this.get(r))==null?void 0:t.get(o[c])}}const Go=n=>([e,t,r])=>n.add({method:t,url:e},r);async function fr(n,e,t,r){const s=Go(n);return Array.isArray(e)?Promise.all(e.map(o=>ur(o,t,r)).flat().map(s)).then(kt):Promise.all(ur(e,t,r).map(s)).then(kt)}const Yo=n=>n.includes("-");async function zo(n,e=[]){const{location:{href:t}}=this,r=qr(this),s=new Vo;await Promise.all(e.map(async c=>{var h;const[,{fetch:d=()=>[]}]=await Zn(te.mocks.pipe(et(([A])=>A===c),sn(1))),m=(h=n.get(c))!=null?h:[];return fr(s,m,d,t)})).catch(c=>c instanceof Error&&Wr(this,c));const o=async(c,h)=>{var d;const m=Vr(r,c),A=s.match({method:(d=h==null?void 0:h.method)!=null?d:"GET",url:m});return A!==void 0?A(m,h).then($=>$):this.fetch(c,h)};this.proxyWindow&&(this.proxyWindow.fetch=Object.assign(o,{update:async c=>{let h=()=>[];if(Yo(c.tag)){const[,{fetch:d}]=await Zn(te.mocks.pipe(et(([m])=>m===c.tag),sn(1)));d!==void 0&&(h=d)}return fr(s,c,h,t)}}))}function Jo(n,e){const{href:t,origin:r,pathname:s}=new URL(n??"",this.location.href);let o=t;return r===this.location.origin&&(o=`{ your domain }${s}`),this.notify({data:{nextUrl:o,target:e??"[undefined]"},description:"preview.notifications.navigation-event.description.open",message:"preview.notifications.navigation-event.message",status:"default"}),this}function Ko(n,e,t){const{href:r,origin:s,pathname:o}=new URL(t);let c=r;s===this.location.origin&&(c=`${o}`),this.notify({data:{nextUrl:c},description:"preview.notifications.navigation-event.description.pushState",message:"preview.notifications.navigation-event.message",status:"default"})}function Qo(n,e,t){const{href:r,origin:s,pathname:o,search:c}=new URL(t);let h=r;s===this.location.origin&&(h=`${o}${c}`),this.notify({data:{nextUrl:h},description:"preview.notifications.navigation-event.description.replaceState",message:"preview.notifications.navigation-event.message",status:"info"})}function Xo(n){return new Proxy(n,{get:(e,t)=>t==="pushState"?(r,s,o)=>{Ko.call(this,r,s,new URL(o??"",new URL(this.document.baseURI,this.location.href)))}:t==="replaceState"?(r,s,o)=>{Qo.call(this,r,s,new URL(o??"",new URL(this.document.baseURI,this.location.href)))}:e[t]})}class hr extends Map{get length(){return this.size}clear(){super.clear()}getItem(e){var t;return(t=super.get(e))!=null?t:null}key(){return null}removeItem(e){super.delete(e)}setItem(e,t){super.set(e,t)}}const Zo=n=>n.tagName==="A";function ea(n){const{prototype:{createElement:e}}=Document;return Document.prototype.createElement=function(r,s){const o=e.call(this,r,s);if(Zo(o)){const c=()=>{var h;return n.notify({data:{href:Po(n.location.origin,new URL(o.href,n.location.href)),target:(h=o.getAttribute("target"))!=null?h:"_self"},description:"preview.notifications.anchor.description",message:"preview.notifications.anchor.message",status:"info"})};Object.defineProperty(o,"click",{get(){return c},set:kt})}return o},()=>{Document.prototype.createElement=e}}function ta(n,e){let t=n.fetch.bind(n);const r={notify:A=>e.next(A)},s=new hr,o=new hr,c=Object.assign(n,r),h=new Proxy(c,{get(A,$,S){if($==="fetch")return t;if($==="history")return Xo.call(A,A.history);if($==="open")return Jo.bind(A);if($==="localStorage")return s;if($==="sessionStorage")return o;const T=Reflect.get(A,$);return typeof T!="function"?T:function(...I){return Reflect.apply(T,this===S?n:this,I)}},set(A,$,S){return $==="fetch"?(t=S,!0):Reflect.set(A,$,S)}}),d=Object.assign(c,{proxyWindow:h}),m=ea(d);return{sandbox:d,unpatch:m}}var na=Object.defineProperty,ra=(n,e,t)=>e in n?na(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,dr=(n,e,t)=>(ra(n,typeof e!="symbol"?e+"":e,t),t);function ia(n,e){const{document:t}=n,r=t.createElement("div"),s="";r.style.display=s,r.style.position="fixed",r.style.width="100vw",r.style.height="100%",r.style.backgroundColor="rgba(10, 10, 10, 0.2)",r.style.zIndex=`${Ms}`;const o=()=>r.style.display===s,c=()=>o()?r.style.display="none":r.style.display=s,h=e.pipe(et(d=>n.__BACKOFFICE_CONFIGURATOR_DISABLE_OVERLAY__?d==="interact":!0)).subscribe(d=>{switch(d){case"interact":n.dispatchEvent(new Event("mousedown")),r.style.display="none";break;case"select":r.style.display=s;break;case 0:default:c();break}});return t.body.appendChild(r),{cleanup:()=>h.unsubscribe(),overlay:r}}const sa=n=>{const e=n.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.height="inherit",n.body.appendChild(e),e};function oa(n){const e=n;return Object.assign(n,{bootstrap:Gr.bind(e),mocks:{fetch:new Map},subscription:new he,unmount:zr.bind(e),update:an.bind(e)})}class aa{constructor(){dr(this,"_results",new Map),dr(this,"_queue",Promise.resolve())}add(e){const r=[...e].map(s=>{let o,c;const h=new Promise((d,m)=>{o=d,c=m});return this._queue=this._queue.then(()=>s()).then(d=>{o(d)}).catch(d=>c(d)),h});return Promise.allSettled(r)}get(e){return this._results.get(e)}}const ca=n=>e=>{e.forEach(t=>{t.status==="rejected"&&n.next({data:{reason:t.reason},description:"preview.notifications.lifecycle.description",message:"preview.notifications.lifecycle.message",status:"error"})})},la=n=>e=>{n.infos.next(e),e.forEach(({tag:t})=>n.uppercaseTags.add(t.toUpperCase()))},ua=(n,e,t)=>{const r=new aa,s=t.configuration.subscribe(o=>{const{configuration:c}=o,{content:h}=c;let d;if(o.type==="reset"){const{contexts:m,tags:A}=o;d=r.add([()=>zr.call(n,e),()=>Gr.call(n,c,{addInfo:la(t),tags:A}),()=>zo.call(n,m,o.tags),()=>an.call(n,h,e).finally(()=>t.updated.next(0))])}else{const{context:m}=o;d=r.add([()=>{var A,$,S;return(S=(A=n.proxyWindow)==null?void 0:($=A.fetch).update)==null?void 0:S.call($,m)},()=>an.call(n,h,e).finally(()=>t.updated.next(0))])}d.then(ca(t.notification)).catch(kt)});return()=>s.unsubscribe()},fa=n=>{const{body:e}=n;e.style.height="100%",e.style.padding="0",e.style.margin="0"},ha=(n,e)=>{const{location:{origin:t,port:r,protocol:s}}=n;return!(t!==e.origin||r!==e.port||s!==e.protocol)},da=(n,e)=>{const t=qr(n),{document:r,parent:s}=n;if(s===n)return;const o=n.fetch.bind(n);n.fetch=(c,h)=>{var d;const m=Vr(t,c);return ha(r,m)&&e.next({data:{method:(d=h==null?void 0:h.method)!=null?d:"GET",url:m.href.substring(m.origin.length)},description:"preview.notifications.fetch-event.description",message:"preview.notifications.fetch-event.message",status:"info"}),o(c,h)}};function pa(n,e){fa(n.document),da(n,e.notification);const{cleanup:t}=ia(n,e.mode.asObservable()),r=As(n.document,e.focus.asObservable(),e.mode.asObservable()),s=sa(n.document),o=oa(n),{sandbox:c,unpatch:h}=ta(o,e.notification),d=ua(c,s,e);return{cleanup:()=>{d(),h(),r(),t()},sandboxedWindow:c}}const ma=n=>{fe.window=n};function ba(n){const e=new he;return e.add(n.updated.subscribe(()=>{fe.send(window.parent,{content:{},type:"updated"})})),e.add(n.infos.subscribe(t=>{fe.send(window.parent,{content:t,type:"tag-info"})})),e.add(n.notification.subscribe(t=>{fe.send(window.parent,{content:t,type:"notification"})})),e.add(n.mode.subscribe(t=>{fe.send(window.parent,{content:{mode:t},type:"ctrl-space"})})),()=>e.unsubscribe()}function va(n,...e){const t=e.map(({type:r,handler:s})=>(n.addEventListener(r,s),()=>n.removeEventListener(r,s)));return()=>{t.forEach(r=>r())}}function ya(n,e){n.addEventListener("unload",()=>{n.subscription.unsubscribe(),e.forEach(t=>t())})}(n=>{ma(n);const e=fe.recv(n),t=ba(te),r=va(n,{handler:Oo(te),type:"keydown"},{handler:lr(n,"mousemove"),type:"mousemove"},{handler:lr(n,"mousedown"),type:"mousedown"},{handler:Eo(n,te),type:"mousedown"}),{cleanup:s,sandboxedWindow:o}=pa(n,te);ya(o,[s,r,t,e])})(window);