@qaecy/cue-ui 0.0.50 → 0.0.52
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.
- package/1138.js +1 -0
- package/1153.js +1 -0
- package/{247.js → 1247.js} +1 -1
- package/1338.js +1 -0
- package/1359.js +1 -0
- package/1520.js +1 -0
- package/1573.js +1 -0
- package/1931.js +1 -0
- package/1985.js +1 -0
- package/2245.js +1 -0
- package/2269.js +1 -0
- package/2312.js +1 -0
- package/2399.js +1 -0
- package/2724.js +1 -0
- package/2839.js +1 -0
- package/29.js +1 -0
- package/3036.js +1 -0
- package/3039.js +1 -0
- package/{418.js → 3418.js} +1 -1
- package/3523.js +1 -0
- package/4283.js +1 -0
- package/4284.js +1 -0
- package/4311.js +1 -0
- package/4613.js +1 -0
- package/4687.js +1 -0
- package/4879.js +1 -0
- package/503.js +1 -0
- package/5137.js +1 -0
- package/5187.js +1 -0
- package/5500.js +1 -0
- package/5559.js +1 -0
- package/5649.js +1 -0
- package/5738.js +1 -0
- package/5740.js +1 -0
- package/5872.js +1 -0
- package/617.js +1 -0
- package/63.js +1 -0
- package/6376.js +1 -0
- package/640.js +1 -0
- package/6419.js +1 -0
- package/6423.js +1 -0
- package/6586.js +1 -0
- package/6911.js +1 -0
- package/6947.js +1 -0
- package/7056.js +1 -0
- package/7247.js +1 -0
- package/7284.js +1 -0
- package/7441.js +1 -0
- package/7598.js +1 -0
- package/7719.js +1 -0
- package/804.js +1 -0
- package/8336.js +1 -0
- package/836.js +1 -1
- package/8560.js +1 -0
- package/8855.js +1 -0
- package/8957.js +1 -0
- package/9004.js +1 -0
- package/928.js +1 -1
- package/9396.js +1 -0
- package/9417.js +1 -0
- package/9443.js +1 -0
- package/9495.js +1 -0
- package/9695.js +1 -0
- package/9769.js +1 -0
- package/README.md +183 -0
- package/common.js +1 -1
- package/index.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/runtime.js +1 -1
- package/149.js +0 -1
- package/153.js +0 -1
- package/245.js +0 -1
- package/269.js +0 -1
- package/284.js +0 -1
- package/311.js +0 -1
- package/336.js +0 -1
- package/36.js +0 -1
- package/376.js +0 -1
- package/393.js +0 -1
- package/396.js +0 -1
- package/399.js +0 -1
- package/4.js +0 -1
- package/41.js +0 -1
- package/419.js +0 -1
- package/423.js +0 -1
- package/494.js +0 -1
- package/523.js +0 -1
- package/560.js +0 -1
- package/586.js +0 -1
- package/598.js +0 -1
- package/613.js +0 -1
- package/628.js +0 -1
- package/7.js +0 -1
- package/719.js +0 -1
- package/724.js +0 -1
- package/740.js +0 -1
- package/773.js +0 -1
- package/791.js +0 -1
- package/799.js +0 -1
- package/802.js +0 -1
- package/839.js +0 -1
- package/855.js +0 -1
- package/872.js +0 -1
- package/879.js +0 -1
- package/903.js +0 -1
- package/911.js +0 -1
- package/931.js +0 -1
package/6586.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[6586],{6586(U,V,b){b.d(V,{MarkdownViewer:()=>rt});var A=b(467),d=b(5802),T=b(7705),S=b(5547),H=b(4226),M=b(2771),w=b(7673),E=b(4572),D=b(1397),j=b(8141),m=b(9437);const I=(0,b(1853).L)(c=>function(){c(this),this.name="EmptyError",this.message="no elements in sequence"});var O=b(5964),R=b(6697),W=b(9974),Z=b(4360);function Ie(c=Se){return(0,W.N)((p,e)=>{let t=!1;p.subscribe((0,Z._)(e,n=>{t=!0,e.next(n)},()=>t?e.complete():e.error(c())))})}function Se(){return new I}var Te=b(3669);function ae(c,p){const e=arguments.length>=2;return t=>t.pipe(c?(0,O.p)((n,o)=>c(n,o,t)):Te.D,(0,R.s)(1),e?function $(c){return(0,W.N)((p,e)=>{let t=!1;p.subscribe((0,Z._)(e,n=>{t=!0,e.next(n)},()=>{t||e.next(c),e.complete()}))})}(p):Ie(()=>new I))}var we=b(6354),G=b(177),Ee=b(345);const le=new d.nKC("All of the settings registered in the whole app."),Y=new d.nKC("The settings collected from all ancestor injectors"),ue=new d.nKC("The settings for the currently loaded module."),q="__ngx_dynamic_hooks_content",ee="dynamic-component-anchor",B="__ngx_dynamic_hooks_anchor_id",P="__ngx_dynamic_hooks_anchor_parsetoken",Be=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];var te=function(c){return c[c.All=0]="All",c[c.Linear=1]="Linear",c[c.None=2]="None",c}(te||{});const x={},pe="[a-zA-Z_$]+[a-zA-Z0-9_$]*",ne="[a-zA-Z$\\-_:][a-zA-Z$\\-_:0-9\\.]*";function N(c,p){if(!p.global)throw Error("TypeError: matchAll called with a non-global RegExp argument");const e=[];let t=p.exec(c);for(;null!==t;)e.push(t),t=p.exec(c);return p.lastIndex=0,e}function oe(c){return void 0!==c?.__ngContext__}x.attributeNameNoBracketsRegex="("+ne+")",x.attributeNameBracketsRegex="\\[("+ne+")\\]",x.attributeNameRoundBracketsRegex="\\(("+ne+")\\)",x.attributeNameRegex="(?:"+x.attributeNameNoBracketsRegex+"|"+x.attributeNameBracketsRegex+"|"+x.attributeNameRoundBracketsRegex+")",x.attributeValueDoubleQuotesRegex='"((?:\\\\.|[^"])*?)"',x.attributeValueSingleQuotesRegex="'((?:\\\\.|[^'])*?)'",x.variablePathDotNotation="\\."+pe,x.variableBracketsNotation="\\[[^\\]]*\\]",x.variablePathFunctionCall="\\([^\\)]*\\)",x.variablePathPartRegex="(?:"+x.variablePathDotNotation+"|"+x.variableBracketsNotation+"|"+x.variablePathFunctionCall+")",x.contextVariableRegex="context"+x.variablePathPartRegex+"*",x.placeholderVariablePathDotNotation="\\@@@cxtDot@@@"+pe,x.placeholderVariableBracketsNotation="@@@cxtOpenSquareBracket@@@[^\\]]*@@@cxtCloseSquareBracket@@@",x.placeholderVariablePathFunctionCall="@@@cxtOpenRoundBracket@@@[^\\)]*@@@cxtCloseRoundBracket@@@",x.placeholderVariablePathPartRegex="(?:"+x.placeholderVariablePathDotNotation+"|"+x.placeholderVariableBracketsNotation+"|"+x.placeholderVariablePathFunctionCall+")",x.placeholderContextVariableRegex="__CXT__"+x.placeholderVariablePathPartRegex+"*";class Ae{constructor(p,e,t,n){this.configResolver=e,this.tagHookFinder=t,this.bindingsValueManager=n,this.savedBindings={},this.config=this.configResolver.processConfig(p),this.name=this.config.name}findHooks(p,e,t){let n=this.config.enclosing?this.tagHookFinder.findEnclosingTags(p,this.config.selector,this.config.bracketStyle,t):this.tagHookFinder.findSingleTags(p,this.config.selector,this.config.bracketStyle,t);return this.config.allowSelfClosing&&(n=[...n,...this.tagHookFinder.findSelfClosingTags(p,this.config.selector,this.config.bracketStyle,t)],n.sort((o,r)=>o.openingTagStartIndex-r.openingTagStartIndex)),n}loadComponent(p,e,t,n,o){return{component:this.config.component,hostElementTag:this.config.hostElementTag||this.config.selector,injector:this.config.injector,environmentInjector:this.config.environmentInjector}}getBindings(p,e,t,n){let o=this.savedBindings[p];return void 0===o&&(o=this.createBindings(e.openingTag),this.savedBindings[p]=o),this.bindingsValueManager.checkInputBindings(o.inputs,t,this.config,n),this.bindingsValueManager.checkOutputBindings(o.outputs,this.config,n),{inputs:this.getValuesFromSavedBindings(o.inputs),outputs:this.getValuesFromSavedBindings(o.outputs)}}createBindings(p){const e=this.collectRawInputs(p),t={};for(const[r,s]of Object.entries(e))t[r]={raw:s,parsed:!1,value:null,boundContextVariables:{}};const n=this.collectRawOutputs(p),o={};for(const[r,s]of Object.entries(n))o[r]={raw:s,parsed:!1,value:null,boundContextVariables:{}};return{inputs:t,outputs:o}}collectRawInputs(p){const e=this.getBindingsFromOpeningTag(p,"noBracketInputs",this.config.inputsBlacklist||null,this.config.inputsWhitelist||null),t=this.getBindingsFromOpeningTag(p,"bracketInputs",this.config.inputsBlacklist||null,this.config.inputsWhitelist||null);for(const[n,o]of Object.entries(e))e[n]="'"+o+"'";return{...e,...t}}collectRawOutputs(p){return this.getBindingsFromOpeningTag(p,"outputs",this.config.outputsBlacklist||null,this.config.outputsWhitelist||null)}getBindingsFromOpeningTag(p,e,t,n){const o={},r="(?:"+x.attributeValueDoubleQuotesRegex+"|"+x.attributeValueSingleQuotesRegex+")";let s;switch(e){case"noBracketInputs":s=x.attributeNameNoBracketsRegex;break;case"bracketInputs":s=x.attributeNameBracketsRegex;break;case"outputs":s=x.attributeNameRoundBracketsRegex}const l=N(p,new RegExp(s+"="+r,"gim"));for(const u of l){let h=u[2]||u[3];void 0===h&&"noBracketInputs"===e&&(h=""),o[u[1]]=h}const g={};for(const[u,h]of Object.entries(o))t&&t.includes(u)||n&&!n.includes(u)||(g[u]=h);return g}getValuesFromSavedBindings(p){const e={};for(const[t,n]of Object.entries(p))e[t]=n.value;return e}}class Ne{constructor(p,e,t,n){this.configResolver=e,this.platformService=t,this.bindingsValueManager=n,this.savedBindings={},this.config=this.configResolver.processConfig(p),this.name=this.config.name}findHookElements(p,e,t){return Array.from(this.platformService.querySelectorAll(p,this.config.selector))}loadComponent(p,e,t,n,o){return this.scrubAngularBindingAttrs(e.element),{component:this.config.component,hostElementTag:this.config.hostElementTag,injector:this.config.injector,environmentInjector:this.config.environmentInjector}}getBindings(p,e,t,n){let o=this.savedBindings[p];return void 0===o&&(o=this.createBindings(e.elementSnapshot),this.savedBindings[p]=o),this.bindingsValueManager.checkInputBindings(o.inputs,t,this.config,n),this.bindingsValueManager.checkOutputBindings(o.outputs,this.config,n),{inputs:this.getValuesFromSavedBindings(o.inputs),outputs:this.getValuesFromSavedBindings(o.outputs)}}scrubAngularBindingAttrs(p){const e=Array.from(p.attributes).map(t=>t.name).filter(t=>t.startsWith("[")&&t.endsWith("]")||t.startsWith("(")&&t.endsWith(")"));for(const t of e)this.platformService.removeAttribute(p,t)}createBindings(p){const e=this.collectRawBindings(p,"inputs",this.config.inputsBlacklist||null,this.config.inputsWhitelist||null),t={};for(const[r,s]of Object.entries(e))t[r]={raw:s,parsed:!1,value:null,boundContextVariables:{}};const n=this.collectRawBindings(p,"outputs",this.config.outputsBlacklist||null,this.config.outputsWhitelist||null),o={};for(const[r,s]of Object.entries(n))o[r]={raw:s,parsed:!1,value:null,boundContextVariables:{}};return{inputs:t,outputs:o}}collectRawBindings(p,e,t,n){const o={},r=this.platformService.getAttributeNames(p);for(let i of r)if("inputs"===e&&(!i.startsWith("(")||!i.endsWith(")"))||"outputs"===e&&i.startsWith("(")&&i.endsWith(")")){let a=this.platformService.getAttribute(p,i);"inputs"===e&&i.startsWith("[")&&i.endsWith("]")&&""===a&&(a=void 0),"inputs"===e&&(!i.startsWith("[")||!i.endsWith("]"))&&(a=`'${a}'`),i=i.replace(/^\[|^\(|\]$|\)$/g,""),o[i]=a}const s={};for(const[i,a]of Object.entries(o))t&&t.includes(i)||n&&!n.includes(i)||(s[i]=a);return s}getValuesFromSavedBindings(p){const e={};for(const[t,n]of Object.entries(p))e[t]=n.value;return e}}const Pe={component:void 0,name:void 0,parseWithRegex:!1,selector:void 0,hostElementTag:void 0,injector:void 0,allowSelfClosing:!0,enclosing:!0,bracketStyle:{opening:"<",closing:">"},parseInputs:!0,unescapeStrings:!0,inputsBlacklist:void 0,inputsWhitelist:void 0,outputsBlacklist:void 0,outputsWhitelist:void 0,allowContextInBindings:!0,allowContextFunctionCalls:!0};let De=(()=>{class c{constructor(){}processConfig(e){const t=JSON.parse(JSON.stringify(Pe));if(!e||!e.hasOwnProperty("component"))throw Error('Missing the required "component" property for the SelectorHookParserConfig. Must be either the component class or a LazyLoadComponentConfig.');if(t.component=e.component,e.component.hasOwnProperty("prototype")){const n=(0,T.HJs)(e.component);t.selector=n.selector}else{if(!e.component.hasOwnProperty("importPromise")||!e.component.hasOwnProperty("importName"))throw Error('The "component" property in the SelectorHookParserConfig must either contain the component class or a LazyLoadComponentConfig.');if(!e.hasOwnProperty("selector"))throw Error('When using lazy-loaded dynamic components, you have to specify the "selector" property in the parser config, as the real selector can\'t be known before the component is loaded.')}if(e.hasOwnProperty("name")){if("string"!=typeof e.name)throw Error('The submitted "name" property in the SelectorHookParserConfig must be of type string, was '+typeof e.name);t.name=e.name}if(e.hasOwnProperty("selector")){if("string"!=typeof e.selector)throw Error('The submitted "selector" property in the SelectorHookParserConfig must be of type string, was '+typeof e.selector);t.selector=e.selector}if(e.hasOwnProperty("hostElementTag")){if("string"!=typeof e.hostElementTag)throw Error('The submitted "hostElementTag" property in the SelectorHookParserConfig must be of type string, was '+typeof e.hostElementTag);t.hostElementTag=e.hostElementTag}if(e.hasOwnProperty("parseWithRegex")){if("boolean"!=typeof e.parseWithRegex)throw Error('The submitted "parseWithRegex" property in the SelectorHookParserConfig must be of type boolean, was '+typeof e.parseWithRegex);t.parseWithRegex=e.parseWithRegex}if(e.hasOwnProperty("allowSelfClosing")){if("boolean"!=typeof e.allowSelfClosing)throw Error('The submitted "allowSelfClosing" property in the SelectorHookParserConfig must be of type boolean, was '+typeof e.allowSelfClosing);t.allowSelfClosing=e.allowSelfClosing}if(e.hasOwnProperty("enclosing")){if("boolean"!=typeof e.enclosing)throw Error('The submitted "enclosing" property in the SelectorHookParserConfig must be of type boolean, was '+typeof e.enclosing);t.enclosing=e.enclosing}if(e.hasOwnProperty("bracketStyle")){if("object"!=typeof e.bracketStyle||"string"!=typeof e.bracketStyle.opening||"string"!=typeof e.bracketStyle.closing)throw Error('The submitted "bracketStyle" property in the SelectorHookParserConfig must have the form {opening: string, closing: string}');t.bracketStyle=e.bracketStyle}if(e.hasOwnProperty("injector")&&(t.injector=e.injector),e.hasOwnProperty("environmentInjector")&&(t.environmentInjector=e.environmentInjector),e.hasOwnProperty("unescapeStrings")){if("boolean"!=typeof e.unescapeStrings)throw Error('The submitted "unescapeStrings" property in the SelectorHookParserConfig must be of type boolean, was '+typeof e.unescapeStrings);t.unescapeStrings=e.unescapeStrings}if(e.hasOwnProperty("parseInputs")){if("boolean"!=typeof e.parseInputs)throw Error('The submitted "parseInputs" property in the SelectorHookParserConfig must be of type boolean, was '+typeof e.parseInputs);t.parseInputs=e.parseInputs}if(e.hasOwnProperty("inputsBlacklist")){if(!Array.isArray(e.inputsBlacklist))throw Error('The submitted "inputsBlacklist" property in the SelectorHookParserConfig must be an array of strings.');for(const n of e.inputsBlacklist)if("string"!=typeof n)throw Error('All entries of the submitted "inputsBlacklist" property in the SelectorHookParserConfig must be of type string, '+typeof n+" found.");t.inputsBlacklist=e.inputsBlacklist}if(e.hasOwnProperty("inputsWhitelist")){if(!Array.isArray(e.inputsWhitelist))throw Error('The submitted "inputsWhitelist" property in the SelectorHookParserConfig must be an array of strings.');for(const n of e.inputsWhitelist)if("string"!=typeof n)throw Error('All entries of the submitted "inputsWhitelist" property in the SelectorHookParserConfig must be of type string, '+typeof n+" found.");t.inputsWhitelist=e.inputsWhitelist}if(e.hasOwnProperty("outputsBlacklist")){if(!Array.isArray(e.outputsBlacklist))throw Error('The submitted "outputsBlacklist" property in the SelectorHookParserConfig must be an array of strings.');for(const n of e.outputsBlacklist)if("string"!=typeof n)throw Error('All entries of the submitted "outputsBlacklist" property in the SelectorHookParserConfig must be of type string, '+typeof n+" found.");t.outputsBlacklist=e.outputsBlacklist}if(e.hasOwnProperty("outputsWhitelist")){if(!Array.isArray(e.outputsWhitelist))throw Error('The submitted "outputsWhitelist" property in the SelectorHookParserConfig must be an array of strings.');for(const n of e.outputsWhitelist)if("string"!=typeof n)throw Error('All entries of the submitted "outputsWhitelist" property in the SelectorHookParserConfig must be of type string, '+typeof n+" found.");t.outputsWhitelist=e.outputsWhitelist}if(e.hasOwnProperty("allowContextInBindings")){if("boolean"!=typeof e.allowContextInBindings)throw Error('The submitted "allowContextInBindings" property in the SelectorHookParserConfig must be of type boolean, was '+typeof e.allowContextInBindings);t.allowContextInBindings=e.allowContextInBindings}if(e.hasOwnProperty("allowContextFunctionCalls")){if("boolean"!=typeof e.allowContextFunctionCalls)throw Error('The submitted "allowContextFunctionCalls" property in the SelectorHookParserConfig must be of type boolean, was '+typeof e.allowContextFunctionCalls);t.allowContextFunctionCalls=e.allowContextFunctionCalls}return t}static{this.\u0275fac=function(t){return new(t||c)}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();const de=new d.nKC("An injection token to retrieve an optionally user-provided PlatformService");let Ve=(()=>{class c{constructor(e,t,n){this.document=e,this.rendererFactory=t,this.sanitizer=n,this.renderer=this.rendererFactory.createRenderer(null,null)}getNgVersion(){if(typeof this.document<"u"){const t=this.querySelectorAll(this.document,"[ng-version]")?.[0]?.getAttribute("ng-version");if(t)return parseInt(t,10)}return null}sanitize(e){return this.sanitizer.sanitize(S.WPN.HTML,e)||""}createElement(e){return this.renderer.createElement(e)}sortElements(e,t){return e===t?0:e.compareDocumentPosition?2&e.compareDocumentPosition(t)?1:-1:e.sourceIndex-t.sourceIndex}cloneElement(e){return e.cloneNode(!0)}getTagName(e){return e.tagName}getOpeningTag(e){const n=e.outerHTML.length;return e.outerHTML.slice(0,"/"===e.outerHTML[n-2]?n:n-e.innerHTML.length-e.tagName.length-3)}getClosingTag(e){return e.outerHTML.slice(e.outerHTML.length-e.tagName.length-3)}getAttributeNames(e){return"function"==typeof e.getAttributeNames?e.getAttributeNames():[]}getAttribute(e,t){return"function"==typeof e.getAttribute?e.getAttribute(t):null}setAttribute(e,t,n){this.renderer.setAttribute(e,t,n)}removeAttribute(e,t){this.renderer.removeAttribute(e,t)}getParentNode(e){try{return this.renderer.parentNode(e)}catch{return null}}querySelectorAll(e,t){return Array.from(e.querySelectorAll(t))}getChildNodes(e){return Array.prototype.slice.call(e.childNodes)}appendChild(e,t){this.renderer.appendChild(e,t)}insertBefore(e,t,n){this.renderer.insertBefore(e,t,n)}clearChildNodes(e){if(e)for(;e.firstChild;)this.removeChild(e,e.firstChild)}removeChild(e,t){e.removeChild(t)}getInnerContent(e){return e.innerHTML}setInnerContent(e,t){e&&(e.innerHTML=t)}isTextNode(e){return e.nodeType===Node.TEXT_NODE}createTextNode(e){return document.createTextNode(e)}getTextContent(e){return e.textContent}dispatchEvent(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(d.qQL),d.KVO(S._9s),d.KVO(Ee.up))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),K=(()=>{class c{constructor(e,t){this.userPlatformService=e,this.defaultPlatformService=t}getFor(e){return this.userPlatformService&&"function"==typeof this.userPlatformService[e]?this.userPlatformService:this.defaultPlatformService}getNgVersion(){return this.getFor("getNgVersion").getNgVersion()}sanitize(e){return this.getFor("sanitize").sanitize(e)}createElement(e){return this.getFor("createElement").createElement(e)}sortElements(e,t){return this.getFor("sortElements").sortElements(e,t)}cloneElement(e){return this.getFor("cloneElement").cloneElement(e)}getTagName(e){return this.getFor("getTagName").getTagName(e)}getOpeningTag(e){return this.getFor("getOpeningTag").getOpeningTag(e)}getClosingTag(e){return this.getFor("getClosingTag").getClosingTag(e)}getAttributeNames(e){return this.getFor("getAttributeNames").getAttributeNames(e)}getAttribute(e,t){return this.getFor("getAttribute").getAttribute(e,t)}setAttribute(e,t,n){return this.getFor("setAttribute").setAttribute(e,t,n)}removeAttribute(e,t){return this.getFor("removeAttribute").removeAttribute(e,t)}getParentNode(e){return this.getFor("getParentNode").getParentNode(e)}querySelectorAll(e,t){return this.getFor("querySelectorAll").querySelectorAll(e,t)}getChildNodes(e){return this.getFor("getChildNodes").getChildNodes(e)}appendChild(e,t){return this.getFor("appendChild").appendChild(e,t)}insertBefore(e,t,n){return this.getFor("insertBefore").insertBefore(e,t,n)}clearChildNodes(e){return this.getFor("clearChildNodes").clearChildNodes(e)}removeChild(e,t){return this.getFor("removeChild").removeChild(e,t)}getInnerContent(e){return this.getFor("getInnerContent").getInnerContent(e)}setInnerContent(e,t){return this.getFor("setInnerContent").setInnerContent(e,t)}isTextNode(e){return this.getFor("isTextNode").isTextNode(e)}createTextNode(e){return this.getFor("createTextNode").createTextNode(e)}getTextContent(e){return this.getFor("getTextContent").getTextContent(e)}dispatchEvent(e,t,n){return this.getFor("dispatchEvent").dispatchEvent(e,t,n)}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(de,8),d.KVO(Ve))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),F=(()=>{class c{constructor(e){this.platformId=e}log(e,t){this.handleLog(e,t,"log")}warn(e,t){this.handleLog(e,t,"warn")}error(e,t){this.handleLog(e,t,"error")}handleLog(e,t,n){(t.logOptions?.dev&&this.isDevMode()&&(0,G.UE)(this.platformId)||t.logOptions?.prod&&!this.isDevMode()&&(0,G.UE)(this.platformId)||t.logOptions?.ssr&&!(0,G.UE)(this.platformId))&&console[n](...e)}isDevMode(){return(0,T.naY)()}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(S.Agw))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),Me=(()=>{class c{constructor(e){this.logger=e}find(e,t,n,o,r={sanitize:!0,convertHTMLEntities:!0,fixParagraphTags:!0,updateOnPushOnly:!1,compareInputsByValue:!1,compareOutputsByValue:!1,compareByValueDepth:5,triggerDOMEvents:!1,ignoreInputAliases:!1,ignoreOutputAliases:!1,acceptInputsForAnyProperty:!1,acceptOutputsForAnyObservable:!1,logOptions:{dev:!0,prod:!1,ssr:!1}}){return n?this.findEnclosingHooks(e,t,n,o,r):this.findSingletagHooks(e,t)}findSingletagHooks(e,t){const n=[],o=N(e,t);for(const r of o)n.push({openingTagStartIndex:r.index,openingTagEndIndex:r.index+r[0].length,closingTagStartIndex:null,closingTagEndIndex:null});return n}findEnclosingHooks(e,t,n,o,r={sanitize:!0,convertHTMLEntities:!0,fixParagraphTags:!0,updateOnPushOnly:!1,compareInputsByValue:!1,compareOutputsByValue:!1,compareByValueDepth:5,triggerDOMEvents:!1,ignoreInputAliases:!1,ignoreOutputAliases:!1,acceptInputsForAnyProperty:!1,acceptOutputsForAnyObservable:!1,logOptions:{dev:!0,prod:!1,ssr:!1}}){const s=[],i=[],a=N(e,t);for(const u of a)s.push({isOpening:!0,value:u[0],startIndex:u.index,endIndex:u.index+u[0].length});const l=N(e,n);for(const u of l)s.push({isOpening:!1,value:u[0],startIndex:u.index,endIndex:u.index+u[0].length});s.sort((u,h)=>u.startIndex-h.startIndex);const g=[];for(const[u,h]of s.entries())if(u>0&&h.startIndex<s[u-1].endIndex)this.logger.warn(['Syntax error - New tag "'+h.value+'" started at position '+h.startIndex+' before previous tag "'+s[u-1].value+'" ended at position '+s[u-1].endIndex+". Ignoring."],r);else if(h.isOpening)g.push(h);else{if(0===g.length){this.logger.warn(['Syntax error - Closing tag without preceding opening tag found: "'+h.value+'". Ignoring.'],r);continue}if(!1===o&&g.length>1){g.pop();continue}const f=g[g.length-1];i.push({openingTagStartIndex:f.startIndex,openingTagEndIndex:f.startIndex+f.value.length,closingTagStartIndex:h.startIndex,closingTagEndIndex:h.startIndex+h.value.length}),g.pop()}return g.length>0&&this.logger.warn(["Syntax error - Opening tags without corresponding closing tags found."],r),i}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(F))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),He=(()=>{class c{constructor(e){this.hookFinder=e}findSingleTags(e,t,n={opening:"<",closing:">"},o){const r=this.generateOpeningTagRegex(t,n);return this.hookFinder.find(e,r,void 0,void 0,o)}findEnclosingTags(e,t,n={opening:"<",closing:">"},o){const r=this.generateOpeningTagRegex(t,n),s=this.generateClosingTagRegex(t,n);return this.hookFinder.find(e,r,s,!0,o)}findSelfClosingTags(e,t,n={opening:"<",closing:">"},o){const r=this.generateOpeningTagRegex(t,n,!0);return this.hookFinder.find(e,r,void 0,void 0,o)}generateOpeningTagRegex(e,t={opening:"<",closing:">"},n=!1){const o=this.escapeRegex(t.opening),r=this.escapeRegex(e),s=(n?"\\/":"")+this.escapeRegex(t.closing);return new RegExp(o+r+"(?:\\s*"+s+"|(?:\\s+"+x.attributeNameRegex+"=(?:"+x.attributeValueDoubleQuotesRegex+"|"+x.attributeValueSingleQuotesRegex+"))+\\s*"+s+")","gim")}generateClosingTagRegex(e,t={opening:"<",closing:">"}){const n=this.escapeRegex(t.opening)+"/",o=this.escapeRegex(e),r=this.escapeRegex(t.closing);return new RegExp(n+o+r,"gim")}escapeRegex(e){return e.replace(new RegExp("[-\\/\\\\^$*+?.()|[\\]{}]","g"),"\\$&")}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(Me))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),Fe=(()=>{class c{encodeSubstrings(e){const r=[...N(e,/'/gm).filter(l=>0===l.index||"\\"!==e[l.index-1]),...N(e,/"/gm).filter(l=>0===l.index||"\\"!==e[l.index-1]),...N(e,/`/gm).filter(l=>0===l.index||"\\"!==e[l.index-1])];r.sort((l,g)=>l.index-g.index);const s=[];let i=null;for(const l of r)i?i[0]===l[0]&&(s.push({startIndex:i.index+1,endIndex:l.index}),i=null):i=l;if(null!==i)throw Error("Input parse error. String was opened, but not closed.");return this.encodeTextSegments(e,s,this.encodeStringSpecialChars)}encodeStringSpecialChars(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/'/g,"@@@singlequote@@@")).replace(/"/g,"@@@doublequote@@@")).replace(/`/g,"@@@gravequote@@@")).replace(/:/g,"@@@colon@@@")).replace(/;/g,"@@@semicolon@@@")).replace(/\./g,"@@@dot@@@")).replace(/,/g,"@@@comma@@@")).replace(/\\/g,"@@@backslash@@@")).replace(/\(/g,"@@@openRoundBracket@@@")).replace(/\)/g,"@@@closeRoundBracket@@@")).replace(/\[/g,"@@@openSquareBracket@@@")).replace(/\]/g,"@@@closeSquareBracket@@@")).replace(/\{/g,"@@@openCurlyBracket@@@")).replace(/\}/g,"@@@closeCurlyBracket@@@")}decodeStringSpecialChars(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/@@@singlequote@@@/g,"'")).replace(/@@@doublequote@@@/g,'"')).replace(/@@@gravequote@@@/g,"`")).replace(/@@@colon@@@/g,":")).replace(/@@@semicolon@@@/g,";")).replace(/@@@dot@@@/g,".")).replace(/@@@comma@@@/g,",")).replace(/@@@backslash@@@/g,"\\")).replace(/@@@openRoundBracket@@@/g,"(")).replace(/@@@closeRoundBracket@@@/g,")")).replace(/@@@openSquareBracket@@@/g,"[")).replace(/@@@closeSquareBracket@@@/g,"]")).replace(/@@@openCurlyBracket@@@/g,"{")).replace(/@@@closeCurlyBracket@@@/g,"}")}encodeSubfunctions(e){const o=[...N(e,/\(/gm),...N(e,/\)/gm)];o.sort((a,l)=>a.index-l.index);const r=[],s=[];for(const a of o)if("("===a[0])s.push(a);else{if(0===s.length)throw Error("Input parse error. Closed function bracket without opening it first.");1===s.length&&r.push({startIndex:s[0].index+1,endIndex:a.index}),s.pop()}if(0!==s.length)throw Error("Input parse error. Opened function bracket without closing it.");return this.encodeTextSegments(e,r,this.encodeFunctionBrackets)}encodeFunctionBrackets(e){return(e=e.replace(/\(/g,"@@@fnOpenBracket@@@")).replace(/\)/g,"@@@fnCloseBracket@@@")}decodeFunctionBrackets(e){return(e=e.replace(/@@@fnOpenBracket@@@/g,"(")).replace(/@@@fnCloseBracket@@@/g,")")}encodeVariableSubbrackets(e){const o=N(e,new RegExp("(?:[a-zA-Z_$\\])])(\\[)","gm")),r=[];for(const a of o){const l=e.substring(a.index+2),h=[...N(l,/\[/gm),...N(l,/\]/gm)];h.sort((v,C)=>v.index-C.index);let f=1;for(const v of h)if(f="]"===v[0]?f-1:f+1,0===f){r.push({startIndex:a.index+2,endIndex:a.index+2+v.index});break}if(0!==f)throw Error("Input parse error. Opened bracket without closing it.")}const s=[];for(const a of r)(0===s.length||s[s.length-1].endIndex<a.startIndex)&&s.push(a);return this.encodeTextSegments(e,s,this.encodeVariableBrackets)}encodeVariableBrackets(e){return(e=e.replace(/\[/g,"@@@variableOpeningBracket@@@")).replace(/\]/g,"@@@variableClosingBracket@@@")}decodeVariableBrackets(e){return(e=e.replace(/@@@variableOpeningBracket@@@/g,"[")).replace(/@@@variableClosingBracket@@@/g,"]")}transformContextVarIntoPlacerholder(e){return(e=(e=(e=(e=(e=(e="__CXT__"+e.substring(7)).replace(/\"/g,"@@@cxtDoubleQuote@@@")).replace(/\./g,"@@@cxtDot@@@")).replace(/\[/g,"@@@cxtOpenSquareBracket@@@")).replace(/\]/g,"@@@cxtCloseSquareBracket@@@")).replace(/\(/g,"@@@cxtOpenRoundBracket@@@")).replace(/\)/g,"@@@cxtCloseRoundBracket@@@")}transformPlaceholderIntoContextVar(e){return(e=(e=(e=(e=(e=(e="context"+e.substring(7)).replace(/@@@cxtDoubleQuote@@@/g,'"')).replace(/@@@cxtDot@@@/g,".")).replace(/@@@cxtOpenSquareBracket@@@/g,"[")).replace(/@@@cxtCloseSquareBracket@@@/g,"]")).replace(/@@@cxtOpenRoundBracket@@@/g,"(")).replace(/@@@cxtCloseRoundBracket@@@/g,")")}encodeTextSegments(e,t,n){const o=[];for(const i of t){const a=0===o.length?0:o[o.length-1].endIndex;o.push({type:"text",startIndex:a,endIndex:i.startIndex,string:e.substring(a,i.startIndex)}),o.push({type:"special",startIndex:i.startIndex,endIndex:i.endIndex,string:e.substring(i.startIndex,i.endIndex)})}const r=0===o.length?0:o[o.length-1].endIndex;o.push({type:"text",startIndex:r,endIndex:e.length-1,string:e.substring(r)});for(const i of o)"special"===i.type&&(i.string=n(i.string));let s="";for(const i of o)s+=i.string;return s}stripSlashes(e){return e.replace(/\\(.)/g,"$1")}escapeDoubleQuotes(e){return e.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')}static{this.\u0275fac=function(t){return new(t||c)}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),je=(()=>{class c{constructor(e,t){this.dataTypeEncoder=e,this.logger=t}evaluate(e,t={},n,o=!0,r={},s=!0,i={sanitize:!0,convertHTMLEntities:!0,fixParagraphTags:!0,updateOnPushOnly:!1,compareInputsByValue:!1,compareOutputsByValue:!1,compareByValueDepth:5,triggerDOMEvents:!1,ignoreInputAliases:!1,ignoreOutputAliases:!1,acceptInputsForAnyProperty:!1,acceptOutputsForAnyObservable:!1,logOptions:{dev:!0,prod:!1,ssr:!1}}){if("null"===e)return null;if("undefined"!==e){if("true"===e)return!0;if("false"===e)return!1;if(!isNaN(e))return parseInt(e,10);if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")||e.startsWith("`")&&e.endsWith("`")){let a=e.substring(1,e.length-1);return a=o?this.dataTypeEncoder.stripSlashes(a):a,a}if((e=this.encodeDataTypeString(e)).startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]")){const a=this.parseAsJSON(e,o);return this.loadJSONVariables(a,t,n,o,r,s,i)}if("$event"===e)return n;if(e.match(new RegExp("^\\s*"+x.contextVariableRegex+"\\s*$","gm")))return this.loadContextVariable(e,t,n,o,r,s,i);throw Error('Data type for following input was not recognized and could not be parsed: "'+e+'"')}}encodeDataTypeString(e){return e=this.dataTypeEncoder.encodeSubstrings(e),e=this.dataTypeEncoder.encodeSubfunctions(e),this.dataTypeEncoder.encodeVariableSubbrackets(e)}decodeDataTypeString(e){return e=this.dataTypeEncoder.decodeStringSpecialChars(e),e=this.dataTypeEncoder.decodeFunctionBrackets(e),(e=this.dataTypeEncoder.decodeVariableBrackets(e)).trim()}parseAsJSON(e,t){if((e=(e=(e=e.replace(/\'(\\.|[^\'])*?\'/gm,i=>'"'+i.slice(1,-1)+'"')).replace(/\`(\\.|[^\`])*?\`/gm,i=>'"'+i.slice(1,-1)+'"')).replace(/"?([a-z0-9A-Z_]+)"?\s*:/g,'"$1": ')).match(/"?__proto__"?\s*:/g))throw Error('Setting the "__proto__" property in a hook input object is not allowed.');if(e.match(/"?prototype"?\s*:/g))throw Error('Setting the "prototype" property in a hook input object is not allowed.');if(e.match(/"?constructor"?\s*:/g))throw Error('Setting the "constructor" property in a hook input object is not allowed.');e=this.replaceValuesInJSONString(e,"undefined",i=>"null"),e=this.replaceValuesInJSONString(e,x.contextVariableRegex,i=>'"'+this.dataTypeEncoder.transformContextVarIntoPlacerholder(i)+'"'),e=this.replaceValuesInJSONString(e,"\\$event",i=>'"__EVENT__"');const s=JSON.parse(e);return this.decodeJSONStrings(s,t),s}replaceValuesInJSONString(e,t,n){return e.replace(new RegExp("(?:(:\\s*)("+t+")(?=\\s*[,}])|([\\[,]\\s*)("+t+")(?=\\s*[\\],]))","gm"),(s,i,a,l,g)=>(i||l)+n(a||g))}decodeJSONStrings(e,t){for(const n in e)if("string"==typeof e[n]){if('__EVENT__"'===e[n]||e[n].match(new RegExp("^\\s*"+x.placeholderContextVariableRegex+"\\s*$","gm")))continue;let o=this.decodeDataTypeString(e[n]);o=t?this.dataTypeEncoder.stripSlashes(o):o,e[n]=o}else"object"==typeof e[n]&&this.decodeJSONStrings(e[n],t)}loadJSONVariables(e,t,n,o,r,s,i){for(const a in e)if("string"==typeof e[a]){if("__EVENT__"===e[a])e[a]=n;else if(e[a].match(new RegExp("^\\s*"+x.placeholderContextVariableRegex+"\\s*$","gm"))){const l=this.dataTypeEncoder.transformPlaceholderIntoContextVar(e[a].trim());e[a]=this.loadContextVariable(l,t,n,o,r,s,i)}}else"object"==typeof e[a]&&this.loadJSONVariables(e[a],t,n,o,r,s,i);return e}loadContextVariable(e,t={},n,o=!0,r={},s=!0,i={sanitize:!0,convertHTMLEntities:!0,fixParagraphTags:!0,updateOnPushOnly:!1,compareInputsByValue:!1,compareOutputsByValue:!1,compareByValueDepth:5,triggerDOMEvents:!1,ignoreInputAliases:!1,ignoreOutputAliases:!1,acceptInputsForAnyProperty:!1,acceptOutputsForAnyObservable:!1,logOptions:{dev:!0,prod:!1,ssr:!1}}){try{const a=e.substring(7);if(""===a.trim())return t;const l=[],g=N(a,new RegExp(x.variablePathPartRegex,"gm"));for(const u of g){if(u[0].startsWith(".")&&l.push({type:"property",value:u[0].substring(1)}),u[0].startsWith("[")&&u[0].endsWith("]")){let h=u[0].substring(1,u[0].length-1);h=this.decodeDataTypeString(h),h=this.evaluate(h,t,n,o,r,s),l.push({type:"property",value:h})}if(u[0].startsWith("(")&&u[0].endsWith(")")){if(!s)throw Error("Tried to call a function in a context variable. This has been disallowed in the current config.");const h=u[0].substring(1,u[0].length-1),f=[];if(""!==h)for(const v of h.split(",")){let C=this.decodeDataTypeString(v);C=this.evaluate(C,t,n,o,r,s),f.push(C)}l.push({type:"function",value:f})}}try{const u=this.fetchContextVariable(t,l);return r[this.decodeDataTypeString(e)]=u,u}catch{throw Error('The required context variable "'+this.decodeDataTypeString(e)+'" could not be found in the context object. Returning undefined instead.')}}catch(a){return this.logger.warn([a],i),void(r[this.decodeDataTypeString(e)]=void 0)}}fetchContextVariable(e,t){if("__proto__"===t[0].value)throw Error("Accessing the __proto__ property through a context variable is not allowed.");if("prototype"===t[0].value)throw Error("Accessing the prototype property through a context variable is not allowed.");if("constructor"===t[0].value)throw Error("Accessing the constructor property through a context variable is not allowed.");if(void 0===e)throw Error("Context variable path could not be resolved. Trying to access "+("property"===t[0].type?'property "'+t[0].value+'" of undefined.':"undefined function."));let n;return"property"===t[0].type?e.hasOwnProperty(t[0].value)?(n=e[t[0].value],"function"==typeof n&&(n=n.bind(e))):e.__proto__.hasOwnProperty(t[0].value)?(n=e.__proto__[t[0].value],"function"==typeof n&&(n=n.bind(e))):n=void 0:"function"===t[0].type&&(n=e(...t[0].value)),t.shift(),t.length>0&&(n=this.fetchContextVariable(n,t)),n}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(Fe),d.KVO(F))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),We=(()=>{class c{constructor(e,t){this.dataTypeParser=e,this.logger=t}checkInputBindings(e,t,n,o){for(const[r,s]of Object.entries(e))if(n.parseInputs)if(s.parsed)this.updateInputBindingIfStale(s,t,n);else try{s.value=this.dataTypeParser.evaluate(s.raw,n.allowContextInBindings?t:{},void 0,n.unescapeStrings,s.boundContextVariables,n.allowContextFunctionCalls,o),s.parsed=!0}catch(i){this.logger.error(["Hook input parsing error\nselector: "+n.selector+"\ninput: "+r+'\nvalue: "'+s.value+'"'],o),this.logger.error([i.stack],o),delete e[r]}else s.value=s.raw}updateInputBindingIfStale(e,t,n){if(Object.keys(e.boundContextVariables).length>0){let o=!1;for(const[r,s]of Object.entries(e.boundContextVariables)){const i=this.dataTypeParser.encodeDataTypeString(r);if(this.dataTypeParser.loadContextVariable(i,t,void 0,n.unescapeStrings,{},n.allowContextFunctionCalls)!==s){o=!0;break}}o&&(e.boundContextVariables={},e.value=this.dataTypeParser.evaluate(e.raw,n.allowContextInBindings?t:{},void 0,n.unescapeStrings,e.boundContextVariables,n.allowContextFunctionCalls))}}checkOutputBindings(e,t,n){for(const[o,r]of Object.entries(e))r.parsed||(r.value=(s,i)=>{try{this.dataTypeParser.evaluate(r.raw,t.allowContextInBindings?i:{},s,t.unescapeStrings,r.boundContextVariables,t.allowContextFunctionCalls)}catch(a){this.logger.error(["Hook output parsing error\nselector: "+t.selector+"\noutput: "+o+'\nvalue: "'+r.value+'"'],n),this.logger.error([a.stack],n)}},r.parsed=!0)}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(je),d.KVO(F))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),$e=(()=>{class c{constructor(e,t,n,o,r,s){this.injector=e,this.parserResolver=t,this.platformService=n,this.tagHookFinder=o,this.bindingsValueManager=r,this.logger=s}resolve(e,t,n,o,r){const s=[];for(const l of e){const g=this.resolveEntry(l,t,r);g&&s.push(g)}const i=this.validateParserFunctions(s,r);if(this.checkParserNames(i,r),!n&&!o)return i;this.checkBlackAndWhitelist(i,n,o,r);const a=[];for(const l of i)l.hasOwnProperty("name")&&"string"==typeof l.name&&(n&&n.includes(l.name)||o&&!o.includes(l.name))||a.push(l);return a}resolveEntry(e,t,n){if(e.hasOwnProperty("prototype")){if((0,T.HJs)(e))return this.createSelectorHookParser({component:e});try{return t.get(e)}catch{return new e}}else if("object"==typeof e){if("Object"!==e.constructor.name)return e;try{return this.createSelectorHookParser(e)}catch(o){return this.logger.error(["Invalid parser config - "+o.message,e],n),null}}return this.logger.error(["Invalid parser config - ",e],n),null}createSelectorHookParser(e){return e.hasOwnProperty("parseWithRegex")&&e.parseWithRegex||e.hasOwnProperty("enclosing")&&!e.enclosing||e.hasOwnProperty("bracketStyle")&&e.bracketStyle?new Ae(e,this.parserResolver,this.tagHookFinder,this.bindingsValueManager):new Ne(e,this.parserResolver,this.platformService,this.bindingsValueManager)}validateParserFunctions(e,t){const n=[];for(const o of e)"function"==typeof o.findHooks||"function"==typeof o.findHookElements?"function"==typeof o.loadComponent?"function"==typeof o.getBindings?n.push(o):this.logger.error(['Submitted parser does not implement "getBindings()". Removing from list of active parsers:',o],t):this.logger.error(['Submitted parser does not implement "loadComponent()". Removing from list of active parsers:',o],t):this.logger.error(['Submitted parser neither implements "findHooks()" nor "findHookElements()". One is required. Removing from list of active parsers:',o],t);return n}checkParserNames(e,t){const n=e.map(s=>s.name).filter(s=>void 0!==s),o=[],r=[];for(const s of n)o.includes(s)&&!r.includes(s)&&(this.logger.warn(['Parser name "'+s+'" is not unique and appears multiple times in the list of active parsers.'],t),r.push(s)),o.push(s)}checkBlackAndWhitelist(e,t,n,o){const r=e.map(s=>s.name).filter(s=>void 0!==s);if(t)for(const s of t)r.includes(s)||this.logger.warn(['Blacklisted parser name "'+s+'" does not appear in the list of global parsers names. Make sure both spellings are identical.'],o);if(n)for(const s of n)r.includes(s)||this.logger.warn(['Whitelisted parser name "'+s+'" does not appear in the list of global parsers names. Make sure both spellings are identical.'],o)}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(d.zZn),d.KVO(De),d.KVO(K),d.KVO(He),d.KVO(We),d.KVO(F))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),Le=(()=>{class c{constructor(e){this.parserEntryResolver=e}resolve(e,t,n,o,r,s=null,i=null,a=null,l=null){let g={};n=n||[],o=o||[];const u={options:{sanitize:!0,convertHTMLEntities:!0,fixParagraphTags:!0,updateOnPushOnly:!1,compareInputsByValue:!1,compareOutputsByValue:!1,compareByValueDepth:5,triggerDOMEvents:!1,ignoreInputAliases:!1,ignoreOutputAliases:!1,acceptInputsForAnyProperty:!1,acceptOutputsForAnyObservable:!1,logOptions:{dev:!0,prod:!1,ssr:!1}}};g=(r=r||{}).hasOwnProperty("inheritance")&&r.inheritance!==te.Linear?this.mergeSettings(r.inheritance===te.All?[u,...n,...o,{options:i||void 0}]:[u,r||{},{options:i||void 0}]):this.mergeSettings([u,...o,{parsers:s||void 0,options:i||void 0}]);const h=g.options;t&&"string"!=typeof t&&(h.sanitize=!1);let f=[];return s?f=this.parserEntryResolver.resolve(s,e,null,null,h):g.parsers&&(f=this.parserEntryResolver.resolve(g.parsers,e,a,l,h)),{parsers:f,options:h}}mergeSettings(e){const t={};for(const n of e){if(void 0!==n.parsers){void 0===t.parsers&&(t.parsers=[]);for(const o of n.parsers)t.parsers.includes(o)||t.parsers.push(o)}void 0!==n.options&&(void 0===t.options&&(t.options={}),t.options=this.recursiveAssign(t.options,n.options))}return t}recursiveAssign(e,t){if(Object(t)!==t)return t;Object(e)!==e&&(e={});for(const n in t)e[n]=this.recursiveAssign(e[n],t[n]);return e}static{this.\u0275fac=function(t){return new(t||c)(d.KVO($e))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();const he="_ngx_dynamic_hooks_node_placeholder";let ze=(()=>{class c{constructor(e,t){this.platformService=e,this.logger=t}findInElement(e,t,n,o,r,s){for(const i of n)if("function"==typeof i.findHooks){this.checkElement(e,t,n,o,r,s);break}}checkElement(e,t,n,o,r,s,i={counter:0,nodes:{}}){let a=this.platformService.getChildNodes(e),l="";const g={};for(const f of a)if(this.platformService.isTextNode(f))l+=this.platformService.getTextContent(f);else{const v=i.counter++;l+=`${he}__${v}__`,g[v]=f}const u=Object.keys(s).length,h=this.find(l,t,n,o,r,s);if(Object.keys(s).length>u&&(this.platformService.clearChildNodes(e),this.platformService.setInnerContent(e,h.content),a=this.platformService.getChildNodes(e),i.nodes={...i.nodes,...g}),Object.keys(i.nodes).length)for(const f of a)if(this.platformService.isTextNode(f)){let v=this.platformService.getTextContent(f);if(v){const C=N(v,new RegExp(`${he}__(\\d*)__`,"g"));if(C.length){const k=[];let z=0;for(const _ of C){const xe=v.substring(z,_.index),X=parseInt(_[1]);xe&&k.push(this.platformService.createTextNode(xe)),X&&i.nodes[X]&&(k.push(i.nodes[X]),delete i.nodes[X]),z=_.index+_[0].length}const be=v.substring(z);be&&k.push(this.platformService.createTextNode(be));const ie=this.platformService.getParentNode(f);for(const _ of k)this.platformService.insertBefore(ie,_,f);this.platformService.removeChild(ie,f),a=this.platformService.getChildNodes(ie)}}}for(const f of a)f.nodeType!==Node.TEXT_NODE&&this.checkElement(f,t,n,o,r,s,i)}find(e,t,n,o,r,s){if(""===e)return{content:e,hookIndex:s};r.convertHTMLEntities&&(e=this.convertHTMLEntities(e));let i=[];for(const l of n)if("function"==typeof l.findHooks)for(const g of l.findHooks(e,t,r))i.push({parser:l,hookPosition:g});i.sort((l,g)=>l.hookPosition.openingTagStartIndex-g.hookPosition.openingTagStartIndex),i=this.validateHookPositions(i,e,r);const a=[];for(const l of i){const g=Object.keys(s).length+1,u=this.getHookSegments(l.hookPosition,e);if(a.push({startIndex:l.hookPosition.openingTagStartIndex,endIndex:l.hookPosition.openingTagEndIndex,replacement:`<${ee} ${B}="${g}" ${P}="${o}">`}),a.push({startIndex:u.enclosing?l.hookPosition.closingTagStartIndex:l.hookPosition.openingTagEndIndex,endIndex:u.enclosing?l.hookPosition.closingTagEndIndex:l.hookPosition.openingTagEndIndex,replacement:`</${ee}>`}),s[g]={id:g,parser:l.parser,value:{openingTag:u.openingTag,closingTag:u.closingTag,element:null,elementSnapshot:null},data:null,isLazy:!1,bindings:null,previousBindings:null,componentRef:null,dirtyInputs:new Set,outputSubscriptions:{},htmlEventSubscriptions:{}},u.enclosing&&r.fixParagraphTags){const h=this.removeTagArtifacts(u.textBefore,"<p>","</p>",u.innerValue,"</p>","<p>");u.textBefore=h.firstText,u.innerValue=h.secondText;const f=this.removeTagArtifacts(u.innerValue,"<p>","</p>",u.textAfter,"</p>","<p>");u.innerValue=f.firstText,u.textAfter=f.secondText,e=u.textBefore+u.openingTag+u.innerValue+u.closingTag+u.textAfter}}a.sort((l,g)=>{let u=g.startIndex-l.startIndex;return 0===u&&(u=g.endIndex-l.endIndex),u});for(const l of a){const g=e.substring(0,l.startIndex),u=e.substring(l.endIndex);e=g+l.replacement+u}return{content:e,hookIndex:s}}getHookSegments(e,t){const n=Number.isInteger(e.closingTagStartIndex)&&Number.isInteger(e.closingTagEndIndex);return{enclosing:n,textBefore:t.substring(0,e.openingTagStartIndex),openingTag:t.substring(e.openingTagStartIndex,e.openingTagEndIndex),innerValue:n?t.substring(e.openingTagEndIndex,e.closingTagStartIndex):null,closingTag:n?t.substring(e.closingTagStartIndex,e.closingTagEndIndex):null,textAfter:t.substring(n?e.closingTagEndIndex:e.openingTagEndIndex)}}validateHookPositions(e,t,n){const o=[];e:for(const[r,s]of e.entries()){const i=Number.isInteger(s.hookPosition.closingTagStartIndex)&&Number.isInteger(s.hookPosition.closingTagEndIndex),a=s.hookPosition;if(a.openingTagStartIndex>=a.openingTagEndIndex){this.logger.warn(["Text hook error: openingTagEndIndex has to be greater than openingTagStartIndex. Ignoring.",a],n);continue}if(i&&a.openingTagEndIndex>a.closingTagStartIndex){this.logger.warn(["Text hook error: closingTagStartIndex has to be greater than openingTagEndIndex. Ignoring.",a],n);continue}if(i&&a.closingTagStartIndex>=a.closingTagEndIndex){this.logger.warn(["Text hook error: closingTagEndIndex has to be greater than closingTagStartIndex. Ignoring.",a],n);continue}const l=e.slice(0,r);for(const g of l){const u=g.hookPosition,h=Number.isInteger(u.closingTagStartIndex)&&Number.isInteger(u.closingTagEndIndex);if(a.openingTagStartIndex===u.openingTagStartIndex&&a.openingTagEndIndex===u.openingTagEndIndex&&(!i||!h||a.closingTagStartIndex===u.closingTagStartIndex&&a.closingTagEndIndex===u.closingTagEndIndex)){this.generateHookPosWarning("A text hook with the same position as another text hook was found. There may be multiple parsers looking for the same text pattern. Ignoring duplicates.",a,u,t,n);continue e}if(a.openingTagStartIndex<u.openingTagEndIndex){this.generateHookPosWarning("Text hook error: Hook opening tag starts before previous hook opening tag ends. Ignoring.",a,u,t,n);continue e}if(h&&!(a.openingTagEndIndex<=u.closingTagStartIndex||a.openingTagStartIndex>=u.closingTagEndIndex)){this.generateHookPosWarning("Text hook error: Opening tag of hook overlaps with closing tag of previous hook. Ignoring.",a,u,t,n);continue e}if(h&&i&&!(a.closingTagEndIndex<=u.closingTagStartIndex||a.closingTagStartIndex>=u.closingTagEndIndex)){this.generateHookPosWarning("Text hook error: Closing tag of hook overlaps with closing tag of previous hook. Ignoring.",a,u,t,n);continue e}if(i&&h&&a.openingTagEndIndex<=u.closingTagStartIndex&&a.closingTagStartIndex>=u.closingTagEndIndex){this.generateHookPosWarning("Text hook error: The closing tag of a nested hook lies beyond the closing tag of the outer hook. Ignoring.",a,u,t,n);continue e}}o.push(s)}return o}generateHookPosWarning(e,t,n,o,r){const s=this.getHookSegments(n,o),i=this.getHookSegments(t,o);this.logger.warn([e+"\nFirst hook: ",{openingTag:s.openingTag,openingTagStartIndex:n.openingTagStartIndex,openingTagEndIndex:n.openingTagEndIndex,closingTag:s.closingTag,closingTagStartIndex:n.closingTagStartIndex,closingTagEndIndex:n.closingTagEndIndex},"\nSecond hook:",{openingTag:i.openingTag,openingTagStartIndex:t.openingTagStartIndex,openingTagEndIndex:t.openingTagEndIndex,closingTag:i.closingTag,closingTagStartIndex:t.closingTagStartIndex,closingTagEndIndex:t.closingTagEndIndex}],r)}removeTagArtifacts(e,t,n,o,r,s){let i=!1,a=!1;const l=e.lastIndexOf(t),g=e.lastIndexOf(n);(l>=0&&-1===g||l>g)&&(i=!0);const u=o.indexOf(r),h=o.indexOf(s);return(u>=0&&-1===h||u<h)&&(a=!0),i&&a&&(e=e.substring(0,l)+" ".repeat(t.length)+e.substring(l+t.length),o=o.substring(0,u)+" ".repeat(r.length)+o.substring(u+r.length)),{firstText:e,secondText:o}}convertHTMLEntities(e){const t=this.platformService.createElement("div");return e.replace(/&[#A-Za-z0-9]+;/gi,o=>" "===o?" ":(this.platformService.setInnerContent(t,o),this.platformService.getTextContent(t)))}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(K),d.KVO(F))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),Ke=(()=>{class c{constructor(e,t){this.platformService=e,this.logger=t}find(e,t,n,o,r,s){let i=[];for(const a of n)if("function"==typeof a.findHookElements)for(const l of a.findHookElements(e,t,r))i.push({parser:a,hookElement:l});i=function Re(c,p,e){return[...c].sort(function(n,o){return"function"==typeof e&&(n=e(n),o=e(o)),p(n,o)})}(i,this.platformService.sortElements.bind(this.platformService),a=>a.hookElement),i=this.validateHookElements(i,e,r);for(const a of i){const l=Object.keys(s).length+1;s[l]={id:l,parser:a.parser,value:{openingTag:this.platformService.getOpeningTag(a.hookElement),closingTag:this.platformService.getClosingTag(a.hookElement),element:a.hookElement,elementSnapshot:this.platformService.cloneElement(a.hookElement)},data:null,isLazy:!1,bindings:null,previousBindings:null,componentRef:null,dirtyInputs:new Set,outputSubscriptions:{},htmlEventSubscriptions:{}},this.platformService.setAttribute(a.hookElement,B,l.toString()),this.platformService.setAttribute(a.hookElement,P,o)}return s}validateHookElements(e,t,n){const o=[];for(const[r,s]of e.entries())o.slice(0,r).findIndex(l=>l.hookElement===s.hookElement)>=0||this.platformService.getAttributeNames(s.hookElement).includes(B)||this.platformService.getAttributeNames(s.hookElement).includes(P)?this.logger.warn(["An element hook tried to use an element that was found by another hook before. There may be multiple parsers looking for the same elements. Ignoring duplicates.",s.hookElement],n):oe(s.hookElement)||o.push(s);return o}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(K),d.KVO(F))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();const re="dynamic-hooks-sanitization-placeholder",_e=new RegExp(`</?${re}.*?>`,"g");let Ue=(()=>{class c{constructor(e){this.platformService=e,this.attrWhitelist=[B,P,"class","href","src"]}sanitize(e,t,n){const o={};for(const a of Object.values(t)){const l=this.platformService.querySelectorAll(e,`[${B}="${a.id}"][${P}="${n}"]`)?.[0];if(l){o[a.id]=l;const g=this.platformService.getParentNode(l),u=this.platformService.getChildNodes(l),h=this.platformService.createElement(re);this.platformService.setAttribute(h,B,a.id.toString()),this.platformService.setAttribute(h,P,n),this.platformService.insertBefore(g,h,l),this.platformService.removeChild(g,l);for(const f of u)this.platformService.appendChild(h,f)}}let r=this.platformService.getInnerContent(e);r=this.findAndEncodeTags(r,_e);const s=console.warn;console.warn=()=>{};let i=this.platformService.sanitize(r);console.warn=s,i=this.decodeTagString(i),e.innerHTML=i||"";for(const[a,l]of Object.entries(o)){const g=this.platformService.querySelectorAll(e,`${re}[${B}="${a}"]`)?.[0];if(g){const u=this.platformService.getParentNode(g),h=this.platformService.getChildNodes(g);this.platformService.insertBefore(u,l,g),this.platformService.removeChild(u,g);for(const f of h)this.platformService.appendChild(l,f);this.sanitizeElementAttrs(l)}}return e}sanitizeElementAttrs(e){const t=this.platformService.getAttributeNames(e),n=this.platformService.createElement("div"),o=this.platformService.createElement("span");this.platformService.appendChild(n,o);for(const i of t){try{this.platformService.setAttribute(o,i,this.platformService.getAttribute(e,i))}catch{}try{i!==B&&i!==P&&this.platformService.removeAttribute(e,i)}catch{}}n.innerHTML=this.platformService.sanitize(this.platformService.getInnerContent(n));const r=this.platformService.querySelectorAll(n,"span")[0],s=this.platformService.getAttributeNames(r);for(const i of s)try{this.platformService.setAttribute(e,i,this.platformService.getAttribute(r,i))}catch{}return e}findAndEncodeTags(e,t){let n=e;const o=N(e,t);o.sort((r,s)=>s.index-r.index);for(const r of o){const s=r.index,i=r.index+r[0].length,a=n.substring(0,s),l=this.encodeTagString(n.substring(s,i)),g=n.substring(i);n=a+l+g}return n}encodeTagString(e){return(e=(e=e.replace(/</g,"@@@hook-lt@@@")).replace(/>/g,"@@@hook-gt@@@")).replace(/"/g,"@@@hook-dq@@@")}decodeTagString(e){return(e=(e=e.replace(/@@@hook-lt@@@/g,"<")).replace(/@@@hook-gt@@@/g,">")).replace(/@@@hook-dq@@@/g,'"')}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(K))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),qe=(()=>{class c{constructor(e){this.logger=e}isEqual(e,t,n,o={sanitize:!0,convertHTMLEntities:!0,fixParagraphTags:!0,updateOnPushOnly:!1,compareInputsByValue:!1,compareOutputsByValue:!1,compareByValueDepth:5,triggerDOMEvents:!1,ignoreInputAliases:!1,ignoreOutputAliases:!1,acceptInputsForAnyProperty:!1,acceptOutputsForAnyObservable:!1,logOptions:{dev:!0,prod:!1,ssr:!1}}){const r=this.detailedStringify(e,n),s=this.detailedStringify(t,n);return null===r.result||null===s.result?(this.logger.warn(["Objects could not be compared by value as one or both of them could not be stringified. Returning false. \n","Objects:",e,t],o),!1):r.result===s.result}detailedStringify(e,t){try{const n={count:0},o=this.decycle(e,[],t,n);return{result:JSON.stringify(o,(s,i)=>void 0===i?"undefined":"function"==typeof i||"symbol"==typeof i?i.toString():i),depthReachedCount:n.count}}catch{return{result:null,depthReachedCount:0}}}decycle(e,t=[],n=5,o){if(t.length>n)return o.count++,null;if(!e||"object"!=typeof e||e instanceof Date)return e;for(const s of t)if(this.objEqualsProperties(e,s))return null;const r=t.concat([e]);if(Array.isArray(e)){const s=[];for(const i of e)s.push(this.decycle(i,r,n,o));return s}{const s={};for(const i of Object.keys(e))s[i]=this.decycle(e[i],r,n,o);return s}}objEqualsProperties(e,t){const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(e[r]!==t[r])return!1;return!0}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(F))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),ge=(()=>{class c{constructor(e,t){this.deepComparer=e,this.logger=t}refresh(e,t,n,o){for(const[r,s]of Object.entries(e))this.updateBindings(s,t,n);if(o)for(const r of Object.values(e)){if(!r.componentRef)return;"function"==typeof r.componentRef.instance.onDynamicChanges&&r.componentRef.instance.onDynamicChanges({context:t})}}updateBindings(e,t,n){e.componentRef&&(e.bindings=e.parser.getBindings(e.id,e.value,t,n),this.updateComponentWithNewInputs(e,n),this.updateComponentWithNewOutputs(e,t,n),e.previousBindings={inputs:this.savePreviousBindings(e,"inputs",n.compareInputsByValue,n.compareByValueDepth),outputs:this.savePreviousBindings(e,"outputs",n.compareOutputsByValue,n.compareByValueDepth)})}savePreviousBindings(e,t,n,o){const r={};if(e.bindings.hasOwnProperty(t))for(const[s,i]of Object.entries(e.bindings[t]))r[s]={reference:i,stringified:n?this.deepComparer.detailedStringify(i,o):null};return r}updateComponentWithNewInputs(e,t){const n=e.componentRef.instance,o=this.getChangedBindings(e,"inputs",t),r=[],s=(0,T.HJs)(e.componentRef.componentType);for(const[i,a]of Object.entries(o)){const l=t.ignoreInputAliases?"propName":"templateName",g=s.inputs.find(u=>i===u[l])||s.inputs.find(u=>i.toLowerCase()===u[l].toLowerCase())||s.inputs.find(u=>i.replace(/-/g,"")===u[l])||s.inputs.find(u=>i.replace(/-/g,"").toLowerCase()===u[l].toLowerCase());if(g)r.push({propName:g.propName,templateName:g.templateName,value:a});else if(t.acceptInputsForAnyProperty){const h=Object.getOwnPropertyNames(n).find(f=>i===f)||Object.getOwnPropertyNames(n).find(f=>i.toLowerCase()===f.toLowerCase())||i;if(["__proto__","prototype","constructor"].includes(h)){this.logger.error(['Tried to overwrite a __proto__, prototype or constructor property with input "'+h+'" for hook "'+e.componentRef.componentType.name+'". This is not allowed.'],t);continue}r.push({propName:h,templateName:null,value:a})}}for(const{propName:i,templateName:a,value:l}of r)a?e.componentRef?.setInput(a,l):i&&(e.componentRef.instance[i]=l);r.length&&e.componentRef?.changeDetectorRef.detectChanges()}updateComponentWithNewOutputs(e,t,n){const o=e.componentRef.instance,r=this.getChangedBindings(e,"outputs",n),s=[],i=(0,T.HJs)(e.componentRef.componentType);for(const[a,l]of Object.entries(r)){const g=n.ignoreOutputAliases?"propName":"templateName",u=i.outputs.find(h=>a===h[g])||i.outputs.find(h=>a.toLowerCase()===h[g].toLowerCase())||i.outputs.find(h=>a.replace(/-/g,"")===h[g])||i.outputs.find(h=>a.replace(/-/g,"").toLowerCase()===h[g].toLowerCase());if(u)s.push({propName:u.propName,templateName:u.templateName,value:l});else if(n.acceptOutputsForAnyObservable){let h=Object.getOwnPropertyNames(o).find(f=>o[f]instanceof H.c&&a===f)||Object.getOwnPropertyNames(o).find(f=>o[f]instanceof H.c&&a.toLowerCase()===f.toLowerCase());h&&s.push({propName:h,templateName:null,value:l})}}for(const{propName:a,value:g}of s)e.outputSubscriptions[a]&&e.outputSubscriptions[a].unsubscribe(),e.outputSubscriptions[a]=e.componentRef.instance[a].subscribe(u=>{g(u,t)})}getChangedBindings(e,t,n){const o={};if(e.bindings.hasOwnProperty(t))for(const[r,s]of Object.entries(e.bindings[t]))if(e.previousBindings&&e.previousBindings[t].hasOwnProperty(r))if("inputs"===t?n.compareInputsByValue:n.compareOutputsByValue){const i=this.deepComparer.detailedStringify(s,n.compareByValueDepth);this.checkDetailedStringifyResultPair(r,e.componentRef.componentType.name,n,e.previousBindings[t][r].stringified,i)?i.result!==e.previousBindings[t][r].stringified.result&&(o[r]=s):s!==e.previousBindings[t][r].reference&&(o[r]=s)}else s!==e.previousBindings[t][r].reference&&(o[r]=s);else o[r]=s;return o}checkDetailedStringifyResultPair(e,t,n,o,r){return null===o.result&&null===r.result?(this.logger.warn(['Could stringify neither new nor old value for hook binding "'+e+'" for component "'+t+'" to compare by value. Defaulting to comparison by reference instead.'],n),!1):null===o.result?(this.logger.warn(['Could not stringify old value for hook binding "'+e+'" for component "'+t+'" to compare by value. Defaulting to comparison by reference instead.'],n),!1):null===r.result?(this.logger.warn(['Could not stringify new value for hook binding "'+e+'" for component "'+t+'" to compare by value. Defaulting to comparison by reference instead.'],n),!1):(o.depthReachedCount>0&&r.depthReachedCount>0?this.logger.warn(["Maximum compareByValueDepth of "+n.compareByValueDepth+" reached "+r.depthReachedCount+" time(s) for new value and "+o.depthReachedCount+' time(s) for old value while comparing binding "'+e+'" for component "'+t+".\n","If this impacts performance, consider simplifying this binding, reducing comparison depth or setting compareInputsByValue/compareOutputsByValue to false."],n):o.depthReachedCount>0?this.logger.warn(["Maximum compareByValueDepth of "+n.compareByValueDepth+" reached "+o.depthReachedCount+' time(s) for old value while comparing binding "'+e+'" for component "'+t+".\n","If this impacts performance, consider simplifying this binding, reducing comparison depth or setting compareInputsByValue/compareOutputsByValue to false."],n):r.depthReachedCount>0&&this.logger.warn(["Maximum compareByValueDepth of "+n.compareByValueDepth+" reached "+r.depthReachedCount+' time(s) for new value while comparing binding "'+e+'" for component "'+t+".\n","If this impacts performance, consider simplifying this binding, reducing comparison depth or setting compareInputsByValue/compareOutputsByValue to false."],n),!0)}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(qe),d.KVO(F))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),Qe=(()=>{class c{constructor(e,t,n,o,r){this.platformId=e,this.appRef=t,this.componentUpdater=n,this.platformService=o,this.logger=r}init(e,t,n,o,r,s,i){const a=new M.m(1),l=[],g={};if(0===Object.keys(t).length)return a.next(!0),a;for(let h of this.platformService.querySelectorAll(e,`[${B}][${P}]`)){const f=parseInt(this.platformService.getAttribute(h,B));if(0===this.platformService.querySelectorAll(e,`[${B}="${f}"][${P}="${n}"]`).length){delete t[f];continue}const v=t[f];v.data=v.parser.loadComponent(v.id,v.value,o,this.platformService.getChildNodes(h),r),v.isLazy=v.data.component.hasOwnProperty("importPromise")&&v.data.component.hasOwnProperty("importName"),(0,G.UE)(this.platformId)||!v.isLazy?(!v.data.hostElementTag&&Be.includes(this.platformService.getTagName(h).toLowerCase())&&(v.data.hostElementTag=ee),v.data.hostElementTag&&(h=this.useCustomHostElement(h,v.data.hostElementTag),v.value.element=h),this.createContentSlotElements(h,v,n),g[f]=h):delete t[f]}const u=Object.keys(g).map(h=>parseInt(h));for(const[h,f]of Object.entries(t))u.includes(parseInt(h))||(this.logger.warn(["Error when trying to load components - The anchor element for the following hook was found initially, but could not be found again for loading the component. Ignoring.",f],r),delete t[h]);for(const[h,f]of Object.entries(g)){const v=t[h];l.push((0,w.of)(!0).pipe((0,D.Z)(()=>this.loadComponentClass(v.data.component))).pipe((0,j.M)(C=>{const k=this.extractContentSlotElements(f,n);this.createComponent(v,o,f,k,r,C,s,i)})).pipe((0,m.W)(C=>(this.logger.error([C.stack],r),delete t[v.id],(0,w.of)(null)))))}return 0===l.length?(a.next(!0),a):((0,E.z)([...l]).pipe(ae()).subscribe(()=>{for(const h of Object.values(t)){const f=[];("function"==typeof h.componentRef.instance.onDynamicMount||"function"==typeof h.componentRef.instance.onDynamicChanges)&&this.findContentChildren(h.componentRef.location.nativeElement,f,t,n),"function"==typeof h.componentRef.instance.onDynamicChanges&&h.componentRef.instance.onDynamicChanges({contentChildren:f}),"function"==typeof h.componentRef.instance.onDynamicMount&&h.componentRef.instance.onDynamicMount({context:o,contentChildren:f})}for(const h of Object.values(g))this.platformService.removeAttribute(h,B),this.platformService.removeAttribute(h,P),this.platformService.removeAttribute(h,"ng-version");a.next(!0)}),a)}useCustomHostElement(e,t){const n=this.platformService.createElement(t);this.platformService.setAttribute(n,B,this.platformService.getAttribute(e,B)),this.platformService.setAttribute(n,P,this.platformService.getAttribute(e,P)),this.platformService.removeAttribute(e,B),this.platformService.removeAttribute(e,P);const o=this.platformService.getChildNodes(e);for(const r of o)this.platformService.appendChild(n,r);return this.platformService.insertBefore(this.platformService.getParentNode(e),n,e),this.platformService.removeChild(this.platformService.getParentNode(e),e),n}createContentSlotElements(e,t,n){let o;o=t.data.hasOwnProperty("content")&&Array.isArray(t.data.content)?t.data.content:[this.platformService.getChildNodes(e)],this.platformService.clearChildNodes(e);for(const[r,s]of o.entries())if(null!=s){const i=this.platformService.createElement("dynamic-component-contentslot");this.platformService.setAttribute(i,"slotIndex",r.toString()),this.platformService.setAttribute(i,"parsetoken",n);for(const a of s)this.platformService.appendChild(i,a);this.platformService.appendChild(e,i)}}extractContentSlotElements(e,t){const n=[],o=this.platformService.getChildNodes(e).filter(r=>"DYNAMIC-COMPONENT-CONTENTSLOT"===this.platformService.getTagName(r)&&this.platformService.getAttribute(r,"parsetoken")===t);for(const r of o){const s=this.platformService.getAttribute(r,"slotIndex");n[parseInt(s)]=this.platformService.getChildNodes(r)}return this.platformService.clearChildNodes(e),n}loadComponentClass(e){const t=new M.m(1);if(e.hasOwnProperty("prototype"))t.next(e);else if("function"==typeof e)e().then(n=>{t.next(n)});else{if(!e.hasOwnProperty("importPromise")||!e.hasOwnProperty("importName"))throw Error('The "component" property of a returned HookData object must either contain the component class, a function that returns a promise with the component class or an explicit LazyLoadComponentConfig');if(e.importPromise instanceof Promise)throw Error('When lazy-loading a component, the "importPromise"-field must contain a function returning the import-promise, but it contained the promise itself.');e.importPromise().then(n=>{const o=e.importName,r=Object.prototype.hasOwnProperty.call(n,o)?n[o]:n.default;t.next(r)})}return t}createComponent(e,t,n,o,r,s,i,a){const l=(0,T.a0P)(s,{hostElement:n,environmentInjector:e.data.environmentInjector||i,elementInjector:e.data.injector||a,projectableNodes:o});e.componentRef=l,this.mapOutputsToHTMLEvents(e,r),this.componentUpdater.updateBindings(e,t,r),"function"==typeof e.componentRef.instance.onDynamicChanges&&void 0!==t&&e.componentRef.instance.onDynamicChanges({context:t}),this.appRef.attachView(l.hostView),l.changeDetectorRef.detectChanges()}mapOutputsToHTMLEvents(e,t){const n=(0,T.HJs)(e.componentRef.componentType);for(const o of n.outputs){const r=t.ignoreOutputAliases?o.propName:o.templateName;e.htmlEventSubscriptions[r]=e.componentRef.instance[o.propName].subscribe(s=>{t.triggerDOMEvents&&this.platformService.dispatchEvent(e.componentRef?.location.nativeElement,r,s)})}}findContentChildren(e,t=[],n,o){const r=this.platformService.getChildNodes(e);null!=r&&r.length>0&&r.forEach((s,i)=>{let a=!1;const l=this.platformService.getAttribute(s,P);if(null!==l&&l===o&&this.platformService.getAttribute(s,B)){const u=parseInt(this.platformService.getAttribute(s,B),10);n.hasOwnProperty(u)&&(t.push({componentRef:n[u].componentRef,contentChildren:[],hookValue:n[u].value}),a=!0)}this.findContentChildren(s,a?t[t.length-1].contentChildren:t,n,o)})}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(S.Agw),d.KVO(S.o8S),d.KVO(ge),d.KVO(K),d.KVO(F))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),fe=(()=>{class c{constructor(e,t,n,o,r,s,i,a,l,g,u){this.allSettings=e,this.ancestorSettings=t,this.moduleSettings=n,this.settingsResolver=o,this.textHookFinder=r,this.elementHookFinder=s,this.contentSanitizer=i,this.componentCreator=a,this.platformService=l,this.environmentInjector=g,this.injector=u}parse(e=null,t=null,n=null,o=null,r=null,s=null,i=null,a={},l=null,g=null){const u=l||this.environmentInjector,h=g||this.injector,{parsers:f,options:v}=this.settingsResolver.resolve(h,e,this.allSettings,this.ancestorSettings,this.moduleSettings,t,o,r,s);if(!e)return(0,w.of)({element:i||this.platformService.createElement("div"),hookIndex:a,context:n,usedParsers:f,usedOptions:v,usedInjector:h,usedEnvironmentInjector:u,destroy:()=>this.destroy(a)});const C=Math.random().toString(36).substring(2,12);let k="string"==typeof e?this.platformService.createElement("div"):e;if(this.platformService.setAttribute(k,q,"1"),"string"==typeof e){const z=this.textHookFinder.find(e,n,f,C,v,a);this.platformService.setInnerContent(k,z.content)}else this.textHookFinder.findInElement(k,n,f,C,v,a);if(a=this.elementHookFinder.find(k,n,f,C,v,a),v?.sanitize&&this.contentSanitizer.sanitize(k,a,C),i&&i!==k){this.platformService.removeAttribute(k,q),this.platformService.setAttribute(i,q,"1"),this.platformService.clearChildNodes(i);for(const z of this.platformService.getChildNodes(k))this.platformService.appendChild(i,z);k=i}return this.componentCreator.init(k,a,C,n,v,u,h).pipe(ae()).pipe((0,we.T)(z=>(this.platformService.removeAttribute(k,q),{element:k,hookIndex:a,context:n,usedParsers:f,usedOptions:v,usedInjector:h,usedEnvironmentInjector:u,destroy:()=>this.destroy(a)})))}destroy(e){if(e){for(const t of Object.values(e))t.componentRef&&t.componentRef.destroy();for(const t of Object.values(e)){for(const n of Object.values(t.outputSubscriptions))n&&n.unsubscribe();for(const n of Object.values(t.htmlEventSubscriptions))n&&n.unsubscribe()}}}static{this.\u0275fac=function(t){return new(t||c)(d.KVO(le,8),d.KVO(Y,8),d.KVO(ue,8),d.KVO(Le),d.KVO(ze),d.KVO(Ke),d.KVO(Ue),d.KVO(Qe),d.KVO(K),d.KVO(d.uvJ),d.KVO(d.zZn))}}static{this.\u0275prov=d.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})(),tt=(()=>{class c{constructor(e,t,n,o,r,s){this.hostElement=e,this.dynamicHooksService=t,this.componentUpdater=n,this.platformService=o,this.environmentInjector=r,this.injector=s,this.content=null,this.context=null,this.globalParsersBlacklist=null,this.globalParsersWhitelist=null,this.parsers=null,this.options=null,this.componentsLoaded=new d.bkB,this.hookIndex={},this.activeOptions={sanitize:!0,convertHTMLEntities:!0,fixParagraphTags:!0,updateOnPushOnly:!1,compareInputsByValue:!1,compareOutputsByValue:!1,compareByValueDepth:5,triggerDOMEvents:!1,ignoreInputAliases:!1,ignoreOutputAliases:!1,acceptInputsForAnyProperty:!1,acceptOutputsForAnyObservable:!1,logOptions:{dev:!0,prod:!1,ssr:!1}},this.activeParsers=[],this.token=Math.random().toString(36).substring(2,12),this.initialized=!1}ngDoCheck(){this.activeOptions.updateOnPushOnly||this.refresh(!1)}ngOnChanges(e){e.hasOwnProperty("content")||e.hasOwnProperty("globalParsersBlacklist")||e.hasOwnProperty("globalParsersWhitelist")||e.hasOwnProperty("parsers")||e.hasOwnProperty("options")?(this.reset(),this.parse(this.content)):e.hasOwnProperty("context")&&this.refresh(!0)}ngAfterViewInit(){}ngAfterViewChecked(){}ngOnDestroy(){this.reset()}reset(){this.dynamicHooksService.destroy(this.hookIndex),this.platformService.setInnerContent(this.hostElement.nativeElement,""),this.hookIndex={},this.activeOptions={sanitize:!0,convertHTMLEntities:!0,fixParagraphTags:!0,updateOnPushOnly:!1,compareInputsByValue:!1,compareOutputsByValue:!1,compareByValueDepth:5,triggerDOMEvents:!1,ignoreInputAliases:!1,ignoreOutputAliases:!1,acceptInputsForAnyProperty:!1,acceptOutputsForAnyObservable:!1,logOptions:{dev:!0,prod:!1,ssr:!1}},this.activeParsers=[],this.initialized=!1}parse(e){this.dynamicHooksService.parse(e,this.parsers,this.context,this.options,this.globalParsersBlacklist,this.globalParsersWhitelist,this.hostElement.nativeElement,this.hookIndex,this.environmentInjector,this.injector).subscribe(t=>{this.activeParsers=t.usedParsers,this.activeOptions=t.usedOptions,this.initialized=!0;const n=Object.values(this.hookIndex).map(o=>({hookId:o.id,hookValue:o.value,hookParser:o.parser,componentRef:o.componentRef}));this.componentsLoaded.emit(n)})}refresh(e){this.initialized&&this.componentUpdater.refresh(this.hookIndex,this.context,this.activeOptions,e)}static{this.\u0275fac=function(t){return new(t||c)(S.rXU(S.aKT),S.rXU(fe),S.rXU(ge),S.rXU(K),S.rXU(d.uvJ),S.rXU(d.zZn))}}static{this.\u0275cmp=S.VBU({type:c,selectors:[["ngx-dynamic-hooks"]],inputs:{content:"content",context:"context",globalParsersBlacklist:"globalParsersBlacklist",globalParsersWhitelist:"globalParsersWhitelist",parsers:"parsers",options:"options"},outputs:{componentsLoaded:"componentsLoaded"},features:[S.OA$],decls:0,vars:0,template:function(t,n){},encapsulation:2})}}return c})();var me=b(222),ye=b(58),ve=b(2306),nt=b(140);class ot extends me.A4{baseSize;documentListHandlers;entityListHandlers;_handlers;context={};counters={};getIndex(p){const e=this.counters[p]||0;return this.counters[p]=e+1,e}constructor(p="m",e){super(),this.baseSize=p,this._handlers=e,this.documentListHandlers=e?.documentList,this.entityListHandlers=e?.entityList,this.setupRenderers()}resetContext(){this.context={},this.counters={}}getContext(){return this.context}scaleSize(p){const e=["xs","s","m","l","xl"],t=e.indexOf(this.baseSize),n=e.indexOf(p);return e[Math.max(0,Math.min(e.length-1,n+(t-2)))]}setupRenderers(){this.heading=({tokens:p,depth:e})=>{const r=this.scaleSize({1:"xl",2:"l",3:"l",4:"m",5:"m",6:"s"}[e]),s={1:"bold",2:"semibold",3:"semibold",4:"semibold",5:"medium",6:"medium"}[e],i=this.parser?.parseInline(p)||"";return`<cue-typography size="${r}" weight="${s}"${this.getIndex("heading")>0?' style="margin-top: 24px; display: block;"':' style="display: block;"'}>${i}</cue-typography>\n`},this.paragraph=({tokens:p})=>{const e=this.scaleSize("m"),t=this.parser?.parseInline(p)||"";return/^(?:\s*,?\s*<cue-href-chip\b[^>]*><\/cue-href-chip>)+\s*$/.test(t)?`<div style="display: flex; gap: 6px; flex-wrap: wrap;">${t.replace(/(<\/cue-href-chip>)\s*,?\s*/g,"$1").trim()}</div>\n`:`<div class="cue-md-p"><cue-typography size="${e}" weight="regular">${t}</cue-typography></div>\n`},this.listitem=({tokens:p})=>{const e=this.scaleSize("m");return`<li class="cue-md-li" style="font-size: var(--cue-font-${e}-size);"><cue-typography size="${e}" weight="regular">${this.parser?.parseInline(p)||""}</cue-typography></li>`},this.tablecell=({tokens:p,header:e,align:t})=>{const n=e?"th":"td",r=e?"semibold":"regular";return`<${n}${t?` style="text-align: ${t}"`:""}><cue-typography size="${this.scaleSize("m")}" weight="${r}">${this.parser?.parseInline(p)||""}</cue-typography></${n}>`},this.blockquote=({text:p,tokens:e})=>/^\[!(NOTE|WARNING|IMPORTANT|TIP|CAUTION)\]/i.test(p.trimStart())?"":`<blockquote class="cue-md-blockquote"><cue-typography size="${this.scaleSize("m")}" weight="regular">${this.parser?.parse(e)||""}</cue-typography></blockquote>`,this.link=({href:p,title:e,tokens:t})=>{const n=this.parser?.parseInline(t)||"";if(!p){const r=this.getIndex("hrefchip"),s=`hrefchip_menuitems_${r}`,i=`hrefchip_id_${r}`,a=`hrefchip_click_${r}`,l=n.replace(/<[^>]*>/g,"");return this.context[i]=l,this.context[s]=()=>this._handlers?.hrefChip?.menuItems?.(l)??[],this.context[a]=()=>{this._handlers?.hrefChip?.clicked?.(l)},`<cue-href-chip [label]="context.${i}" [menuItems]="context.${s}()" (clicked)="context.${a}()"></cue-href-chip>`}return`<a href="${p}"${e?` title="${e}"`:""} target="_blank" rel="noopener noreferrer">${n}</a>`},this.codespan=({text:p})=>`<code class="cue-code-inline">${p}</code>`,this.code=p=>{const e="36px";if("document-list"===p.lang){const t=p.documentRefs;if(!t||0===t.length)return"";const o=`doc_refs_${this.getIndex("doc")}`;return this.context[o]=t,this._handlers?.availableContentCategories&&(this.context.availableContentCategories=this._handlers.availableContentCategories),`<cue-document-list [documentRefs]="context.${o}" [documentdata]="context.documentdata" [handlers]="context.documentlisthandlers" [availableContentCategories]="context.availableContentCategories" (clickedDocument)="context.documentclickedrow($event)" style="margin-bottom: ${e};"></cue-document-list>`}if("entity-list"===p.lang){const t=p.iris;if(!t)return"";const o=`entity_iris_${this.getIndex("entity")}`;return this.context[o]=t,this._handlers?.availableEntityCategories&&(this.context.availableEntityCategories=this._handlers.availableEntityCategories),this._handlers?.availableEntityRelationships&&(this.context.availableEntityRelationships=this._handlers.availableEntityRelationships),`<cue-ent-list-inner [entities]="context.${o}" [entitydata]="context.entitydata" [entityLocations]="context.entitylocations" [handlers]="context.entitylisthandlers" [availableEntityCategories]="context.availableEntityCategories" [availableEntityRelationships]="context.availableEntityRelationships" [mapboxToken]="context.mapboxToken" (rowClicked)="context.entityclickedrow($event)" style="margin-bottom: ${e};"></cue-ent-list-inner>`}if("map"===p.lang){const t=p.mapData;if(!t||!t.layers)return"";const n=this.getIndex("map"),o=`map_layers_${n}`,r=`map_settings_${n}`;return this.context[o]=t.layers,this.context[r]=t.settings,`<cue-card style="height: 300px; display: block; margin-bottom: ${e};" [padded]="false"><cue-map [layers]="context.${o}" [settings]="context.${r}"></cue-map></cue-card>`}return`<div style="margin-bottom: ${e};">${super.code(p)}</div>`}}walkTokens(p){return(0,A.A)(function*(){if("code"===p.type&&"document-list"===p.lang){const e=p.text.split("\n").filter(o=>o.trim().length>0),t=new Map,n=[];for(const o of e){const r=o.trim(),s=r.match(/^(.+)\?page=(\d+)$/);if(s){const i=s[1],a=s[2];t.has(i)||(t.set(i,{id:i,pages:[]}),n.push(i));const l=t.get(i);l.pages||(l.pages=[]),l.pages.push({id:r,page:a,relevance:0})}else t.has(r)||(t.set(r,{id:r}),n.push(r))}p.documentRefs=n.map(o=>t.get(o))}if("code"===p.type&&"entity-list"===p.lang){const e=p.text.split("\n").filter(t=>t.trim().length>0);p.iris=e}if("code"===p.type&&"map"===p.lang){const e=p.text.split("\n").filter(i=>i.trim().length>0),t=e[0]?.trim()||"",n=e.slice(1),o={};n.forEach(i=>{const a=i.split(";"),l=a[0]?.trim(),g=a[1]?.trim(),u=a[2]?.trim();if(!l||!g)return;const h=(0,ye.S)(g);if(!h)return;const f=(0,ye.n)(h);let v={};if(u)try{v=JSON.parse(u)}catch{}o[l]||(o[l]=[]),o[l].push({type:"Feature",properties:v,geometry:f})});const r=[];Object.keys(o).forEach(i=>{const a=new ve.ux(i);a.collection=new nt.o(o[i]),r.push(a)});const s=new ve.yY;s.mapboxToken=t,s.contextMenu.showFlyTo=!1,p.mapData={layers:r,settings:s}}})()}}let rt=(()=>{class c{envInjector=(0,d.WQX)(d.uvJ);fileURL=T.hFB.required();html=(0,d.vPA)("");hookOptions={sanitize:!1,globalParsersBlueprint:{environmentInjector:this.envInjector}};parsers=[{component:{importPromise:()=>Promise.resolve().then(b.bind(b,2245)),importName:"Typography"},selector:"cue-typography"}];onFile=(0,d.QZP)((()=>{var e=this;return(0,A.A)(function*(){const n=yield(yield fetch(e.fileURL())).text(),o=new ot("m");o.resetContext();const r=yield me.xI.parse(n,{gfm:!0,breaks:!1,renderer:o,async:!0,walkTokens:o.walkTokens.bind(o)});e.html.set(r)})})());static \u0275fac=function(t){return new(t||c)};static \u0275cmp=S.VBU({type:c,selectors:[["cue-md-viewer"]],inputs:{fileURL:[1,"fileURL"]},decls:2,vars:3,consts:[[1,"page"],[3,"parsers","content","options"]],template:function(t,n){1&t&&(S.j41(0,"div",0),S.nrm(1,"ngx-dynamic-hooks",1),S.k0s()),2&t&&(S.R7$(),S.Y8G("parsers",n.parsers)("content",n.html())("options",n.hookOptions))},dependencies:[tt],styles:[".page[_ngcontent-%COMP%]{overflow-y:auto;height:100%;padding:16px;box-sizing:border-box}[_nghost-%COMP%] cue-typography{display:inline-block}[_nghost-%COMP%] .cue-md-p{margin-bottom:24px;opacity:.9;line-height:1.6;display:block}[_nghost-%COMP%] .cue-md-p:last-child{margin-bottom:0}[_nghost-%COMP%] .cue-md-blockquote{margin-bottom:24px;opacity:.9;border-left:4px solid var(--cue-border-color);padding-left:16px}[_nghost-%COMP%] ul, [_nghost-%COMP%] ol{margin-bottom:24px;padding-left:28px;font-family:var(--cue-font-family);opacity:.9;line-height:1.6}[_nghost-%COMP%] li.cue-md-li{margin-bottom:12px}[_nghost-%COMP%] table{margin-bottom:24px;border-collapse:collapse;width:100%}[_nghost-%COMP%] th, [_nghost-%COMP%] td{padding:8px 12px;border-bottom:1px solid var(--cue-border-color, #eee);text-align:left}[_nghost-%COMP%] th cue-typography{font-weight:var(--cue-font-weight-semibold)}[_nghost-%COMP%] .cue-code-inline{background-color:var(--cue-border-color);padding:0 4px;border-radius:4px;font-family:monospace;font-size:1.1em;font-weight:500;color:var(--cue-main-foreground)}"],changeDetection:0})}return c})()},2306(U,V,b){b.d(V,{AA:()=>S,ux:()=>H,yY:()=>T});var A=b(140),d=b(8402);class T{mapboxToken;contextMenu={showProperties:!0,showFlyTo:!0};toolbar=new S}class S{hidden=!1;position="bottom";margin="20px";displayZoom=!0;displayGeofenceDraw=!1;displayLayerToggle=!0;clearGeofenceAfterDraw=!0}class H{label;id;collection=new A.o;color;visible=!0;cluster=!0;zoomToFit=!0;category;constructor(w,E=(0,d.A)()){this.label=w,this.id=E}}},140(U,V,b){b.d(V,{o:()=>A});class A{type="FeatureCollection";features=[];bbox;id;constructor(T=[]){this.features=T}addFeature(T){this.features.push(T)}removeFeature(T){return this.features.splice(T,1)[0]}getFeatureCount(){return this.features.length}clear(){this.features=[]}}},58(U,V,b){function A(m){let y=0,I=-1,O=-1;for(let R=0;R<m.length;R++)if("("===m[R])y++,1===y&&(I=R+1);else if(")"===m[R]&&(y--,0===y)){O=R;break}return-1!==I&&-1!==O?m.substring(I,O):null}b.d(V,{S:()=>D,n:()=>j});class d{x;y;z;constructor(y,I,O){this.x=y,this.y=I,this.z=O}}class T{points;constructor(y){this.points=y}}class S{lines;constructor(y){this.lines=y}}function D(m){if(m){if((m=m.trim().toUpperCase()).startsWith("POINT"))return function M(m){m=m.trim().toUpperCase();const I=A(m)?.split(" ")??[];return m.includes("POINT Z")?new d(parseFloat(I[0]),parseFloat(I[1]),parseFloat(I[2])):new d(parseFloat(I[0]),parseFloat(I[1]))}(m);if(m.startsWith("LINESTRING"))return function H(m){const y=A(m=m.trim().toUpperCase()),I=[];return y?.split(",").map(O=>O.trim().split(" ").map(R=>parseFloat(R))).map(O=>{I.push(new d(O[0],O[1],O[2]))}),new T(I)}(m);if(m.startsWith("POLYGON"))return function w(m){const y=A(m=m.trim().toUpperCase());if(!y)return new S([]);const I=y.match(/\(([^)]+)\)/g);if(!I)return new S([]);const O=I.map(R=>{const W=A(R);return W?W.split(",").map(Z=>{const $=Z.trim().split(" ");return $.length>=3?new d(parseFloat($[0]),parseFloat($[1]),parseFloat($[2])):new d(parseFloat($[0]),parseFloat($[1]))}):[]});return new S(O)}(m)}}function j(m){if(m instanceof d)return{type:"Point",coordinates:void 0!==m.z?[m.x,m.y,m.z]:[m.x,m.y]};if(m instanceof T)return{type:"LineString",coordinates:m.points.map(y=>void 0!==y.z?[y.x,y.y,y.z]:[y.x,y.y])};if(m instanceof S)return{type:"Polygon",coordinates:m.lines.map(y=>y.map(I=>void 0!==I.z?[I.x,I.y,I.z]:[I.x,I.y]))};throw new Error("Unknown WKT type")}},5332(U,V,b){b.d(V,{k:()=>S});for(var d=[],T=0;T<256;++T)d.push((T+256).toString(16).slice(1));function S(w,E=0){return(d[w[E+0]]+d[w[E+1]]+d[w[E+2]]+d[w[E+3]]+"-"+d[w[E+4]]+d[w[E+5]]+"-"+d[w[E+6]]+d[w[E+7]]+"-"+d[w[E+8]]+d[w[E+9]]+"-"+d[w[E+10]]+d[w[E+11]]+d[w[E+12]]+d[w[E+13]]+d[w[E+14]]+d[w[E+15]]).toLowerCase()}},8402(U,V,b){b.d(V,{A:()=>E});const d={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var T,S=new Uint8Array(16);function H(){if(!T&&!(T=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return T(S)}var M=b(5332);const E=function w(D,j,m){if(d.randomUUID&&!j&&!D)return d.randomUUID();var y=(D=D||{}).random||(D.rng||H)();if(y[6]=15&y[6]|64,y[8]=63&y[8]|128,j){m=m||0;for(var I=0;I<16;++I)j[m+I]=y[I];return j}return(0,M.k)(y)}}}]);
|
package/6911.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[4613,6911],{6911(v,y,a){a.d(y,{ByCueLogo:()=>M});var o=a(7705),n=a(4613),s=a(5547);let M=(()=>{class c{src=o.hFB.required();alt=(0,o.hFB)("");active=(0,o.hFB)(!0,{transform:o.L39});continuous=(0,o.hFB)(!1,{transform:o.L39});static \u0275fac=function(d){return new(d||c)};static \u0275cmp=s.VBU({type:c,selectors:[["cue-by-cue-logo"]],inputs:{src:[1,"src"],alt:[1,"alt"],active:[1,"active"],continuous:[1,"continuous"]},decls:7,vars:5,consts:[[1,"wrapper"],[1,"main-logo",3,"src","alt"],[1,"by-cue"],[1,"by-text"],[1,"logo-wrapper"],[3,"size","active","continuous"]],template:function(d,t){1&d&&(s.j41(0,"div",0),s.nrm(1,"img",1),s.j41(2,"div",2)(3,"span",3),s.EFF(4,"by"),s.k0s(),s.j41(5,"div",4),s.nrm(6,"cue-logo",5),s.k0s()()()),2&d&&(s.R7$(),s.Y8G("src",t.src(),s.B4B)("alt",t.alt()),s.R7$(5),s.Y8G("size","xs")("active",t.active())("continuous",t.continuous()))},dependencies:[n.Logo],styles:[":host{display:inline-block}.wrapper{position:relative;display:inline-block;width:var(--by-cue-logo-width, 200px);container-type:inline-size}.main-logo{display:block;width:100%;height:auto}.by-cue{position:absolute;bottom:clamp(-20px,-7cqi,-8px);right:clamp(-30px,-10cqi,-10px);display:flex;align-items:flex-end;gap:clamp(2px,2cqi,6px);opacity:.55}.by-cue:hover{opacity:1;transition:opacity .3s ease}.by-text{font-family:Poppins,sans-serif;font-size:clamp(8px,5cqi,13px);font-weight:300;font-style:italic;letter-spacing:.04em;color:currentColor;line-height:1}.logo-wrapper{width:clamp(24px,20cqi,56px);aspect-ratio:221.545 / 86.191;display:block}cue-logo{width:100%!important;height:100%!important;display:block}\n"],encapsulation:3})}return c})()},4613(v,y,a){a.d(y,{Logo:()=>g});var o=a(7705),n=a(5547),s=a(5802),M=a(2271),c=a(6170);let g=(()=>{class f{size=(0,o.hFB)("m");sizeMap={xs:"40px",s:"80px",m:"160px",l:"222px",xl:"320px"};active=(0,o.hFB)(!0,{transform:o.L39});continuous=(0,o.hFB)(!1,{transform:o.L39});mode=(0,o.hFB)("default");isDarkMode=(0,o.geq)(!1);handleDarkModeChange(t){this.isDarkMode.set(t),-1===this.raf&&this.animate()}colorA=(0,M.EW)(()=>this.isDarkMode()?[221,246,18]:[18,28,43]);colorB=[0,202,204];paths=[];raf=-1;playfulPhase="idle";playfulIdleUntil=0;playfulAnimStart=0;playfulAnimDuration=2e3;playfulRetractAmount=.3;appearTime=0;disappearTime=0;tip=0;toe=0;mix=[0,0,0];norm=0;animate=t=>{if(void 0!==t){const e=5e-4*(t-this.appearTime);"glow"===this.mode()?this.tip=e%1:"playful"!==this.mode()&&(this.tip=Math.min(1,e),this.active()||(this.toe=Math.min(1,6e-4*(t-this.disappearTime))))}if("playful"===this.mode())return void 0!==t&&("idle"===this.playfulPhase?t>=this.playfulIdleUntil&&(this.playfulPhase="animating",this.playfulAnimStart=t,this.playfulRetractAmount=.2+.75*Math.random(),this.playfulAnimDuration=2*this.playfulRetractAmount/5e-4):(t-this.playfulAnimStart)/this.playfulAnimDuration>=1&&(this.playfulPhase="idle",this.playfulIdleUntil=t+1e3+4e3*Math.random())),this.renderPlayful(t),void(void 0!==t&&(this.raf=requestAnimationFrame(this.animate)));if("glow"===this.mode()){const e=.06666666666666667,i=this.rgbToSvg(this.colorA());return this.paths.forEach((l,h)=>{this.norm=1/this.paths.length*h;let r=this.tip-this.norm;if(r<-(1-e)&&(r+=1),r>=0&&r<e){const p=1-r/e;l.setAttribute("stroke",this.rgbToSvg(this.colorB)),l.setAttribute("stroke-opacity",p.toFixed(3))}else l.setAttribute("stroke",i),l.setAttribute("stroke-opacity","0.005")}),void(this.raf=requestAnimationFrame(this.animate))}if(this.paths.forEach((e,i)=>{this.norm=1/this.paths.length*i,this.mix=this.mixRgb(this.colorA(),this.colorB,Math.max(0,Math.min(1,15*(this.tip-this.norm)))),e.setAttribute("stroke",this.tip*this.paths.length>i&&(this.active()||this.toe*this.paths.length<i)?this.rgbToSvg(this.mix):"transparent")}),this.tip>=1&&(this.active()||this.toe>=1))return this.continuous()?void setTimeout(()=>{this.appearTime=performance.now(),this.tip=0,this.toe=0,this.raf=requestAnimationFrame(this.animate)},500):void(this.raf=-1);this.raf=requestAnimationFrame(this.animate)};activate(){this.appearTime=performance.now(),"playful"===this.mode()&&(this.playfulPhase="intro",this.playfulAnimStart=this.appearTime),this.animate(this.appearTime)}deactivate(){this.disappearTime=performance.now(),-1===this.raf&&this.animate(this.disappearTime)}renderPlayful(t){if(void 0===t)return void this.renderPlayfulDraw(1);const e=Math.min(1,5e-4*(t-this.playfulAnimStart));if("intro"===this.playfulPhase)this.renderPlayfulDraw(e),e>=1&&(this.playfulPhase="idle",this.playfulIdleUntil=t+1e3+4e3*Math.random());else if("idle"===this.playfulPhase)this.renderPlayfulDraw(1);else{const i=Math.min(1,(t-this.playfulAnimStart)/this.playfulAnimDuration),h=1-this.playfulRetractAmount*(1-Math.cos(2*i*Math.PI))/2;this.renderPlayfulDraw(h)}}renderPlayfulDraw(t){const e=this.paths.length,i=this.colorA();this.paths.forEach((l,h)=>{if(this.norm=h/e,t*e>h){const r=Math.max(0,Math.min(1,15*(t-this.norm)));this.mix=this.mixRgb(i,this.colorB,r),l.setAttribute("stroke",this.rgbToSvg(this.mix)),l.setAttribute("stroke-opacity","1")}else l.setAttribute("stroke","transparent")})}mixChannel(t,e,i){return parseInt((t*i+e*(1-i)).toFixed())}mixRgb(t,e,i){return[this.mixChannel(t[0],e[0],i),this.mixChannel(t[1],e[1],i),this.mixChannel(t[2],e[2],i)]}rgbToSvg(t){return`rgb(${t[0]},${t[1]},${t[2]})`}constructor(){(0,s.QZP)(()=>{"glow"===this.mode()||"playful"===this.mode()||this.active()?this.activate():this.deactivate()}),(0,s.QZP)(()=>{this.isDarkMode(),this.animate()});const t=(0,s.WQX)(n.aKT);(0,n.mal)({read:()=>{if(this.paths.length)return;const e=t.nativeElement.querySelector("svg"),i=t.nativeElement.querySelector("#original-path");if(!i)return;const l=i.getTotalLength(),r=[];for(let p=0;p<400;p++){const u=i.getPointAtLength(l/400*p);r.push({x:parseFloat(u.x.toFixed(2)),y:parseFloat(u.y.toFixed(2))})}r.push(i.getPointAtLength(l)),r.reverse(),r.forEach((p,u)=>{if(0===u||1===u)return;const m=document.createElementNS("http://www.w3.org/2000/svg","path");m.setAttribute("d",`M${r[u-2].x},${r[u-2].y}L${r[u-1].x},${r[u-1].y}L${p.x},${p.y}`),m.setAttribute("fill","none"),m.setAttribute("stroke","transparent"),m.setAttribute("stroke-width",i?.getAttribute("stroke-width")||"1"),m.setAttribute("stroke-miterlimit",i?.getAttribute("stroke-miterlimit")||"1"),e.appendChild(m),this.paths.push(m)})}})}ngOnDestroy(){this.paths=[],cancelAnimationFrame(this.raf),this.raf=-1}static \u0275fac=function(e){return new(e||f)};static \u0275cmp=n.VBU({type:f,selectors:[["cue-logo"]],hostVars:2,hostBindings:function(e,i){2&e&&n.xc7("width",i.sizeMap[i.size()])},inputs:{size:[1,"size"],active:[1,"active"],continuous:[1,"continuous"],mode:[1,"mode"],isDarkMode:[1,"isDarkMode"]},outputs:{isDarkMode:"isDarkModeChange"},decls:2,vars:0,consts:[["cueDarkMode","","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 221.545 86.191","width","222","height","86","overflow","visible",3,"darkModeChange"],["id","original-path","fill","none","stroke","transparent","stroke-miterlimit","10","stroke-width","12","d","M216.046 56.638s-10.561 24.201-36.192 22.991c-25.631-1.21-22.771-24.751-20.351-37.622 2.42-12.871 10.451-20.351 16.831-18.041 6.283 2.275 8.03 9.68 2.09 21.891-5.94 12.211-21.341 37.567-35.862 33.992-12.413-3.056-13.281-23.162-13.281-23.162V29.762v26.925c0 14.471-12.47 23.212-24.672 23.212s-24.672-8.301-24.672-23.212V29.829l-.006.105v13.031c0 20.416-16.55 36.966-36.966 36.966S6 63.381 6 42.966 22.55 6 42.966 6c6.91 0 13.377 1.896 18.91 5.196"]],template:function(e,i){1&e&&(s.qSk(),n.j41(0,"svg",0),n.bIt("darkModeChange",function(h){return i.handleDarkModeChange(h)}),n.nrm(1,"path",1),n.k0s())},dependencies:[c.R],styles:["[_nghost-%COMP%]{display:block}svg[_ngcontent-%COMP%]{flex:1;display:block;width:100%;height:auto}"]})}return f})()},6170(v,y,a){a.d(y,{R:()=>c});var o=a(7705),n=a(5802),s=a(2271),M=a(5547);let c=(()=>{class g{destroyRef=(0,n.WQX)(n.abz);_isDarkMode=(0,n.vPA)(this.hasDarkClass());isDarkMode=(0,s.EW)(()=>this._isDarkMode());darkModeChange=(0,o.CGW)();constructor(){const d=new MutationObserver(t=>{t.forEach(e=>{if("attributes"===e.type&&"class"===e.attributeName){const i=this.hasDarkClass();i!==this._isDarkMode()&&this._isDarkMode.set(i)}})});d.observe(document.body,{attributes:!0,attributeFilter:["class"]}),this.destroyRef.onDestroy(()=>d.disconnect()),(0,n.QZP)(()=>{this.darkModeChange.emit(this._isDarkMode()),document.documentElement.style.colorScheme=this._isDarkMode()?"dark":"light"})}hasDarkClass(){return document.body.classList.contains("dark")}toggleDarkMode(){document.body.classList.toggle("dark")}static \u0275fac=function(t){return new(t||g)};static \u0275dir=M.FsC({type:g,selectors:[["","cueDarkMode",""]],outputs:{darkModeChange:"darkModeChange"},exportAs:["darkModeDetector"]})}return g})()}}]);
|
package/6947.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[6947],{6947(E,p,r){r.d(p,{CueDocumentFilter:()=>b});var o=r(467),_=r(7705),g=r(2271),m=r(7427),f=r(9822),i=r(5547);let b=(()=>{class u{projectId=_.hFB.required();sdkState=_.hFB.required();filtersChange=(0,_.CGW)();_handlers=(0,g.EW)(()=>{var n=this;const t=this.sdkState(),e=this.projectId(),a=new m.NV(t.cue.api,e,t.graphType);let l=null;const C=()=>(l||(l=this._loadSchemaLabels(t,e)),l);return{requestAvailableFilters:(d=(0,o.A)(function*(s){const[c,h]=yield Promise.all([a.availableFilters(s),C()]);return n._withSchemaLabels(c,h)}),function(c){return d.apply(this,arguments)}),requestAvailableEntities:function(){var d=(0,o.A)(function*(s,c){return yield a.availableEntities(s,c)});return function(c,h){return d.apply(this,arguments)}}()};var d});_loadSchemaLabels(n,t){return(0,o.A)(function*(){try{const e=new m.Ug(n.cue.api,t,n.cue.api.language,void 0,n.graphType);return yield e.ready,{content:new Map(e.availableContentCategories.get().map(a=>[a.iri,a.label])),entity:new Map(e.availableEntityCategories.get().map(a=>[a.iri,a.label]))}}catch(e){return console.error("[document-filter] Failed to load schema labels",e),{content:new Map,entity:new Map}}})()}_withSchemaLabels(n,t){return{mimes:n.mimes.map(e=>({iri:e.iri,label:e.label.replace(/FileContent$/,"")})),contents:n.contents.map(e=>({iri:e.iri,label:t.content.get(e.iri)??e.label})),entityCategories:n.entityCategories.map(e=>({iri:e.iri,label:t.entity.get(e.iri)??e.label}))}}static \u0275fac=function(t){return new(t||u)};static \u0275cmp=i.VBU({type:u,selectors:[["cue-document-filter"]],inputs:{projectId:[1,"projectId"],sdkState:[1,"sdkState"]},outputs:{filtersChange:"filtersChange"},decls:1,vars:1,consts:[[3,"filtersChange","handlers"]],template:function(t,e){1&t&&(i.j41(0,"cue-doc-filter",0),i.bIt("filtersChange",function(l){return e.filtersChange.emit(l)}),i.k0s()),2&t&&i.Y8G("handlers",e._handlers())},dependencies:[f.y],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return u})()}}]);
|
package/7056.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[4613,7056],{4613(x,v,l){l.d(v,{Logo:()=>o});var u=l(7705),a=l(5547),t=l(5802),r=l(2271),h=l(6170);let o=(()=>{class g{size=(0,u.hFB)("m");sizeMap={xs:"40px",s:"80px",m:"160px",l:"222px",xl:"320px"};active=(0,u.hFB)(!0,{transform:u.L39});continuous=(0,u.hFB)(!1,{transform:u.L39});mode=(0,u.hFB)("default");isDarkMode=(0,u.geq)(!1);handleDarkModeChange(i){this.isDarkMode.set(i),-1===this.raf&&this.animate()}colorA=(0,r.EW)(()=>this.isDarkMode()?[221,246,18]:[18,28,43]);colorB=[0,202,204];paths=[];raf=-1;playfulPhase="idle";playfulIdleUntil=0;playfulAnimStart=0;playfulAnimDuration=2e3;playfulRetractAmount=.3;appearTime=0;disappearTime=0;tip=0;toe=0;mix=[0,0,0];norm=0;animate=i=>{if(void 0!==i){const e=5e-4*(i-this.appearTime);"glow"===this.mode()?this.tip=e%1:"playful"!==this.mode()&&(this.tip=Math.min(1,e),this.active()||(this.toe=Math.min(1,6e-4*(i-this.disappearTime))))}if("playful"===this.mode())return void 0!==i&&("idle"===this.playfulPhase?i>=this.playfulIdleUntil&&(this.playfulPhase="animating",this.playfulAnimStart=i,this.playfulRetractAmount=.2+.75*Math.random(),this.playfulAnimDuration=2*this.playfulRetractAmount/5e-4):(i-this.playfulAnimStart)/this.playfulAnimDuration>=1&&(this.playfulPhase="idle",this.playfulIdleUntil=i+1e3+4e3*Math.random())),this.renderPlayful(i),void(void 0!==i&&(this.raf=requestAnimationFrame(this.animate)));if("glow"===this.mode()){const e=.06666666666666667,n=this.rgbToSvg(this.colorA());return this.paths.forEach((s,d)=>{this.norm=1/this.paths.length*d;let m=this.tip-this.norm;if(m<-(1-e)&&(m+=1),m>=0&&m<e){const p=1-m/e;s.setAttribute("stroke",this.rgbToSvg(this.colorB)),s.setAttribute("stroke-opacity",p.toFixed(3))}else s.setAttribute("stroke",n),s.setAttribute("stroke-opacity","0.005")}),void(this.raf=requestAnimationFrame(this.animate))}if(this.paths.forEach((e,n)=>{this.norm=1/this.paths.length*n,this.mix=this.mixRgb(this.colorA(),this.colorB,Math.max(0,Math.min(1,15*(this.tip-this.norm)))),e.setAttribute("stroke",this.tip*this.paths.length>n&&(this.active()||this.toe*this.paths.length<n)?this.rgbToSvg(this.mix):"transparent")}),this.tip>=1&&(this.active()||this.toe>=1))return this.continuous()?void setTimeout(()=>{this.appearTime=performance.now(),this.tip=0,this.toe=0,this.raf=requestAnimationFrame(this.animate)},500):void(this.raf=-1);this.raf=requestAnimationFrame(this.animate)};activate(){this.appearTime=performance.now(),"playful"===this.mode()&&(this.playfulPhase="intro",this.playfulAnimStart=this.appearTime),this.animate(this.appearTime)}deactivate(){this.disappearTime=performance.now(),-1===this.raf&&this.animate(this.disappearTime)}renderPlayful(i){if(void 0===i)return void this.renderPlayfulDraw(1);const e=Math.min(1,5e-4*(i-this.playfulAnimStart));if("intro"===this.playfulPhase)this.renderPlayfulDraw(e),e>=1&&(this.playfulPhase="idle",this.playfulIdleUntil=i+1e3+4e3*Math.random());else if("idle"===this.playfulPhase)this.renderPlayfulDraw(1);else{const n=Math.min(1,(i-this.playfulAnimStart)/this.playfulAnimDuration),d=1-this.playfulRetractAmount*(1-Math.cos(2*n*Math.PI))/2;this.renderPlayfulDraw(d)}}renderPlayfulDraw(i){const e=this.paths.length,n=this.colorA();this.paths.forEach((s,d)=>{if(this.norm=d/e,i*e>d){const m=Math.max(0,Math.min(1,15*(i-this.norm)));this.mix=this.mixRgb(n,this.colorB,m),s.setAttribute("stroke",this.rgbToSvg(this.mix)),s.setAttribute("stroke-opacity","1")}else s.setAttribute("stroke","transparent")})}mixChannel(i,e,n){return parseInt((i*n+e*(1-n)).toFixed())}mixRgb(i,e,n){return[this.mixChannel(i[0],e[0],n),this.mixChannel(i[1],e[1],n),this.mixChannel(i[2],e[2],n)]}rgbToSvg(i){return`rgb(${i[0]},${i[1]},${i[2]})`}constructor(){(0,t.QZP)(()=>{"glow"===this.mode()||"playful"===this.mode()||this.active()?this.activate():this.deactivate()}),(0,t.QZP)(()=>{this.isDarkMode(),this.animate()});const i=(0,t.WQX)(a.aKT);(0,a.mal)({read:()=>{if(this.paths.length)return;const e=i.nativeElement.querySelector("svg"),n=i.nativeElement.querySelector("#original-path");if(!n)return;const s=n.getTotalLength(),m=[];for(let p=0;p<400;p++){const f=n.getPointAtLength(s/400*p);m.push({x:parseFloat(f.x.toFixed(2)),y:parseFloat(f.y.toFixed(2))})}m.push(n.getPointAtLength(s)),m.reverse(),m.forEach((p,f)=>{if(0===f||1===f)return;const M=document.createElementNS("http://www.w3.org/2000/svg","path");M.setAttribute("d",`M${m[f-2].x},${m[f-2].y}L${m[f-1].x},${m[f-1].y}L${p.x},${p.y}`),M.setAttribute("fill","none"),M.setAttribute("stroke","transparent"),M.setAttribute("stroke-width",n?.getAttribute("stroke-width")||"1"),M.setAttribute("stroke-miterlimit",n?.getAttribute("stroke-miterlimit")||"1"),e.appendChild(M),this.paths.push(M)})}})}ngOnDestroy(){this.paths=[],cancelAnimationFrame(this.raf),this.raf=-1}static \u0275fac=function(e){return new(e||g)};static \u0275cmp=a.VBU({type:g,selectors:[["cue-logo"]],hostVars:2,hostBindings:function(e,n){2&e&&a.xc7("width",n.sizeMap[n.size()])},inputs:{size:[1,"size"],active:[1,"active"],continuous:[1,"continuous"],mode:[1,"mode"],isDarkMode:[1,"isDarkMode"]},outputs:{isDarkMode:"isDarkModeChange"},decls:2,vars:0,consts:[["cueDarkMode","","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 221.545 86.191","width","222","height","86","overflow","visible",3,"darkModeChange"],["id","original-path","fill","none","stroke","transparent","stroke-miterlimit","10","stroke-width","12","d","M216.046 56.638s-10.561 24.201-36.192 22.991c-25.631-1.21-22.771-24.751-20.351-37.622 2.42-12.871 10.451-20.351 16.831-18.041 6.283 2.275 8.03 9.68 2.09 21.891-5.94 12.211-21.341 37.567-35.862 33.992-12.413-3.056-13.281-23.162-13.281-23.162V29.762v26.925c0 14.471-12.47 23.212-24.672 23.212s-24.672-8.301-24.672-23.212V29.829l-.006.105v13.031c0 20.416-16.55 36.966-36.966 36.966S6 63.381 6 42.966 22.55 6 42.966 6c6.91 0 13.377 1.896 18.91 5.196"]],template:function(e,n){1&e&&(t.qSk(),a.j41(0,"svg",0),a.bIt("darkModeChange",function(d){return n.handleDarkModeChange(d)}),a.nrm(1,"path",1),a.k0s())},dependencies:[h.R],styles:["[_nghost-%COMP%]{display:block}svg[_ngcontent-%COMP%]{flex:1;display:block;width:100%;height:auto}"]})}return g})()},6279(x,v,l){l.d(v,{D:()=>c});var u=l(7705),a=l(2271),t=l(2245),r=l(7089),h=l(5547);const o=[[["","before",""]],"*",[["","after",""]]],g=["[before]","*","[after]"];let c=(()=>{class i{selected=(0,u.hFB)(!1);disabled=(0,u.hFB)(!1);size=(0,u.hFB)("s");tooltip=(0,u.hFB)("");getClass=(0,a.EW)(()=>this.selected()?"selected":"");getTabindex=(0,a.EW)(()=>this.disabled()||this.selected()?"-1":"0");getStyles=(0,a.EW)(()=>`min-width: var(--cue-menu-item-${this.size()}-min-width);\n width: 100%;`);static \u0275fac=function(s){return new(s||i)};static \u0275cmp=h.VBU({type:i,selectors:[["cue-menu-item"]],inputs:{selected:[1,"selected"],disabled:[1,"disabled"],size:[1,"size"],tooltip:[1,"tooltip"]},ngContentSelectors:g,decls:6,vars:8,consts:[["tooltipPlacement","right",3,"disabled","cueTooltip"],[3,"noWrap"],[1,"flexer"]],template:function(s,d){1&s&&(h.NAR(o),h.j41(0,"button",0),h.SdG(1),h.j41(2,"cue-typography",1),h.SdG(3,1),h.k0s(),h.nrm(4,"div",2),h.SdG(5,2),h.k0s()),2&s&&(h.Aen(d.getStyles()),h.HbH(d.getClass()),h.Y8G("disabled",d.disabled())("cueTooltip",d.tooltip()),h.BMQ("tabIndex",d.getTabindex()),h.R7$(2),h.Y8G("noWrap",!0))},dependencies:[t.Typography,r.d],styles:["[_nghost-%COMP%]{display:contents}button[_ngcontent-%COMP%]{appearance:none;font:inherit;display:flex;border:0;align-items:center;justify-content:start;background:transparent;height:var(--cue-menu-item-height);border-radius:var(--cue-menu-item-border-radius);padding:0 var(--cue-menu-item-padding-x);gap:0 var(--cue-menu-item-gap);--cue-icon-width: var(--cue-menu-item-icon-size);background:var(--cue-menu-item-background-color)}button[_ngcontent-%COMP%]:focus{outline:none}button[_ngcontent-%COMP%]:hover:not(:disabled), button[_ngcontent-%COMP%]:focus:not(:disabled){background:var(--cue-menu-item-focus-background-color)}button.selected[_ngcontent-%COMP%]{background:var(--cue-menu-item-selected-background-color)!important}button[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default!important;background:var(--cue-menu-item-background-color)!important}button[_ngcontent-%COMP%]:hover{cursor:pointer}button[_ngcontent-%COMP%]:disabled:hover{cursor:not-allowed}.flexer[_ngcontent-%COMP%]{flex:1}"]})}return i})()},356(x,v,l){l.d(v,{M:()=>h});var u=l(7705),a=l(2271),t=l(5547);const r=["*"];let h=(()=>{class o{maxHeight=(0,u.hFB)(void 0);size=(0,u.hFB)(void 0);maxHeightStyle=(0,a.EW)(()=>{const c=this.maxHeight();if(void 0!==c)return"number"==typeof c?`${c}px`:c});static \u0275fac=function(i){return new(i||o)};static \u0275cmp=t.VBU({type:o,selectors:[["cue-menu-wrap"]],hostVars:4,hostBindings:function(i,e){2&i&&(t.HbH(e.size()?"size-"+e.size():""),t.xc7("max-height",e.maxHeightStyle()))},inputs:{maxHeight:[1,"maxHeight"],size:[1,"size"]},ngContentSelectors:r,decls:2,vars:0,consts:[[1,"cue-menu-wrap-inner"]],template:function(i,e){1&i&&(t.NAR(),t.rj2(0,"div",0),t.SdG(1),t.eux())},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:var(--cue-menu-gap);padding:var(--cue-menu-padding-y) var(--cue-menu-padding-x);border-radius:var(--cue-menu-border-radius);border:1px solid var(--cue-menu-border-color);background:var(--cue-menu-background-color);color:var(--cue-menu-foreground-color);max-height:var(--cue-menu-max-height);overflow-y:auto}.size-s[_nghost-%COMP%]{font-size:13px;--cue-menu-item-height: var(--cue-dim-elem-s);--cue-menu-item-padding-x: 10px;--cue-menu-item-gap: 10px;--cue-menu-item-icon-size: 16px;--cue-menu-padding-y: 6px;--cue-menu-padding-x: 6px;--cue-menu-gap: 4px}.size-xs[_nghost-%COMP%]{font-size:12px;--cue-menu-item-height: var(--cue-dim-elem-xs);--cue-menu-item-padding-x: 8px;--cue-menu-item-gap: 8px;--cue-menu-item-icon-size: 14px;--cue-menu-padding-y: 4px;--cue-menu-padding-x: 4px;--cue-menu-gap: 2px}.cue-menu-wrap-inner[_ngcontent-%COMP%]{--cue-input-value-color: var(--cue-menu-foreground-color);width:100%;height:100%;display:flex;flex-direction:column;gap:var(--cue-menu-gap)}"]})}return o})()},6117(x,v,l){l.d(v,{W:()=>i});var u=l(7705),a=l(7023),t=l(5547);const r=["contextMenuDirective"],h=[[["","trigger",""]],[["","menu",""]],[["","menu",""]]],o=["[trigger]","[menu]","[menu]"];function g(e,n){1&e&&t.SdG(0,1)}function c(e,n){1&e&&t.SdG(0,2)}let i=(()=>{class e{contextMenuData=(0,u.hFB)({});trigger=(0,u.hFB)("leftclick");positioning=(0,u.hFB)(void 0);size=(0,u.hFB)("m");contextEnabled=(0,u.hFB)(!0);menuClosed=(0,u.CGW)();keepOpenOnInsideClick=(0,u.hFB)(!1);contextMenuDirective=(0,u.ebz)("contextMenuDirective",{read:a.Q});onMenuClose(){this.menuClosed.emit()}closeMenu(){const s=this.contextMenuDirective();s&&s.closeContextMenu()}static \u0275fac=function(d){return new(d||e)};static \u0275cmp=t.VBU({type:e,selectors:[["cue-menu"]],viewQuery:function(d,m){1&d&&t.wEZ(m.contextMenuDirective,r,5,a.Q),2&d&&t.NyB()},inputs:{contextMenuData:[1,"contextMenuData"],trigger:[1,"trigger"],positioning:[1,"positioning"],size:[1,"size"],contextEnabled:[1,"contextEnabled"],keepOpenOnInsideClick:[1,"keepOpenOnInsideClick"]},outputs:{menuClosed:"menuClosed"},ngContentSelectors:o,decls:7,vars:7,consts:[["contextMenuDirective",""],["menuTemplate",""],[3,"contextMenuClose","cueContextMenu","contextMenuData","cueContextEnabled","trigger","positioning","menuSize","keepOpenOnInsideClick"]],template:function(d,m){if(1&d&&(t.NAR(h),t.j41(0,"div",2,0),t.bIt("contextMenuClose",function(){return m.onMenuClose()}),t.SdG(2),t.k0s(),t.DNE(3,g,1,0,"ng-template",null,1,t.C5r)(5,c,1,0,"ng-template",null,1,t.C5r)),2&d){const p=t.sdS(4);t.Y8G("cueContextMenu",p)("contextMenuData",m.contextMenuData)("cueContextEnabled",m.contextEnabled())("trigger",m.trigger())("positioning",m.positioning())("menuSize",m.size())("keepOpenOnInsideClick",m.keepOpenOnInsideClick())}},dependencies:[a.Q],styles:["[_nghost-%COMP%]{display:block}"]})}return e})()},7023(x,v,l){l.d(v,{Q:()=>g});var u=l(7705),a=l(5547),t=l(5802),r=l(9769),h=l(9595);let o=(()=>{class c{template=u.hFB.required();context=(0,u.hFB)({});positioning=(0,u.hFB)("bottomright");size=(0,u.hFB)("m");menuClick=(0,u.CGW)();positioningClass=()=>this.positioning();static \u0275fac=function(n){return new(n||c)};static \u0275cmp=a.VBU({type:c,selectors:[["cue-context-menu-container"]],hostVars:2,hostBindings:function(n,s){2&n&&a.HbH("clickoutside-ignore size-"+s.size()+" "+s.positioning())},inputs:{template:[1,"template"],context:[1,"context"],positioning:[1,"positioning"],size:[1,"size"]},outputs:{menuClick:"menuClick"},decls:2,vars:4,consts:[[1,"context-menu-wrapper","clickoutside-ignore",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,s){1&n&&(a.j41(0,"div",0),a.bIt("click",function(){return s.menuClick.emit()}),a.eu8(1,1),a.k0s()),2&n&&(a.HbH(s.positioningClass()),a.R7$(),a.Y8G("ngTemplateOutlet",s.template())("ngTemplateOutletContext",s.context()))},dependencies:[r.MD,r.T3],styles:["[_nghost-%COMP%]{position:fixed;pointer-events:auto;z-index:10000;min-width:10px;min-height:10px}.topleft[_nghost-%COMP%]{transform:translate(-100%,-100%)}.topright[_nghost-%COMP%]{transform:translateY(-100%)}.bottomleft[_nghost-%COMP%]{transform:translate(-100%)}.bottomright[_nghost-%COMP%]{transform:translate(0)}.rightstart[_nghost-%COMP%]{transform:translate(0)}.rightend[_nghost-%COMP%]{transform:translateY(-100%)}.leftstart[_nghost-%COMP%]{transform:translate(-100%)}.leftend[_nghost-%COMP%]{transform:translate(-100%,-100%)}.size-s[_nghost-%COMP%]{font-size:13px;--cue-menu-item-height: var(--cue-dim-elem-s);--cue-menu-item-padding-x: 10px;--cue-menu-item-gap: 10px;--cue-menu-item-icon-size: 16px;--cue-menu-padding-y: 6px;--cue-menu-padding-x: 6px;--cue-menu-gap: 4px}.size-xs[_nghost-%COMP%]{font-size:12px;--cue-menu-item-height: var(--cue-dim-elem-xs);--cue-menu-item-padding-x: 8px;--cue-menu-item-gap: 8px;--cue-menu-item-icon-size: 14px;--cue-menu-padding-y: 4px;--cue-menu-padding-x: 4px;--cue-menu-gap: 2px}.context-menu-wrapper[_ngcontent-%COMP%]{pointer-events:auto;min-width:150px;min-height:10px;cursor:pointer}"]})}return c})(),g=(()=>{class c{elementRef=(0,t.WQX)(a.aKT);applicationRef=(0,t.WQX)(a.o8S);environmentInjector=(0,t.WQX)(t.uvJ);mousePressHandler=h.B.getInstance();static openMenus=[];cueContextMenu=u.hFB.required();contextMenuData=(0,u.hFB)();cueContextEnabled=(0,u.hFB)(!0);trigger=(0,u.hFB)("rightclick");positioning=(0,u.hFB)(void 0);positionAtCursor=(0,u.hFB)(!1);menuSize=(0,u.hFB)("m");keepOpenOnInsideClick=(0,u.hFB)(!1);contextMenuOpen=(0,u.CGW)();contextMenuClose=(0,u.CGW)();contextMenuRef=null;documentClickHandlerAttached=!1;documentClickHandler=this.onDocumentClick.bind(this);documentScrollHandler=this.onDocumentScroll.bind(this);hoverTimeout=null;closeTimeout=null;hoverDelay=150;menuMouseEnterHandler=null;menuMouseLeaveHandler=null;boundOnShortRightPress=this.onShortRightPress.bind(this);boundOnShortLeftPress=this.onShortLeftPress.bind(this);boundOnLongRightPress=this.onLongRightPress.bind(this);boundOnLongLeftPress=this.onLongLeftPress.bind(this);constructor(){(0,t.QZP)(()=>{!this.cueContextEnabled()&&this.contextMenuRef&&setTimeout(()=>{this.contextMenuRef&&this.closeContextMenu()},0)})}ngOnInit(){const e=document.querySelectorAll("cue-context-menu-container");if(e.length>0){const n=new Set(c.openMenus.filter(s=>s.contextMenuRef).map(s=>s.contextMenuRef.location.nativeElement));e.forEach(s=>{s.parentNode&&!n.has(s)&&s.parentNode.removeChild(s)})}("rightclick"===this.trigger()||"both"===this.trigger()||"longpress"===this.trigger())&&this.mousePressHandler.setSuppressNativeContextMenu(!0),this.mousePressHandler.events.addListener("shortPressedRight",this.boundOnShortRightPress),this.mousePressHandler.events.addListener("shortPressedLeft",this.boundOnShortLeftPress),"longpress"===this.trigger()&&(this.mousePressHandler.events.addListener("longPressedRight",this.boundOnLongRightPress),this.mousePressHandler.events.addListener("longPressedLeft",this.boundOnLongLeftPress)),"hover"===this.trigger()&&(this.elementRef.nativeElement.addEventListener("mouseenter",this.onMouseEnter.bind(this)),this.elementRef.nativeElement.addEventListener("mouseleave",this.onMouseLeave.bind(this)))}onShortRightPress(e){if(this.isEventOnThisElement(e)&&("rightclick"===this.trigger()||"both"===this.trigger())){if(this.contextMenuRef)return e.preventDefault(),e.stopPropagation(),void this.closeContextMenu();if(!this.cueContextEnabled?.())return;e.preventDefault(),e.stopPropagation(),this.showContextMenu(e)}}onShortLeftPress(e){if(this.isEventOnThisElement(e)&&("leftclick"===this.trigger()||"both"===this.trigger())){if(this.contextMenuRef)return e.preventDefault(),e.stopPropagation(),void this.closeContextMenu();if(!this.cueContextEnabled?.())return;e.preventDefault(),e.stopPropagation(),this.showContextMenu(e)}}onLongRightPress(e){this.cueContextEnabled?.()&&this.isEventOnThisElement(e)&&("longpress"===this.trigger()||"rightclick"===this.trigger()||"both"===this.trigger())&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu(e))}onLongLeftPress(e){this.cueContextEnabled?.()&&this.isEventOnThisElement(e)&&("longpress"===this.trigger()||"leftclick"===this.trigger()||"both"===this.trigger())&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu(e))}isEventOnThisElement(e){return this.elementRef.nativeElement.contains(e.target)}onMouseEnter(e){!this.cueContextEnabled?.()||"hover"!==this.trigger()||(this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null),c.openMenus.slice().forEach(n=>{n!==this&&(n.contextMenuRef?.location.nativeElement?.contains(this.elementRef.nativeElement)||n.closeContextMenu())}),this.contextMenuRef||(this.hoverTimeout=setTimeout(()=>{this.showContextMenu(e)},this.hoverDelay)))}onMouseLeave(e){!this.cueContextEnabled?.()||"hover"!==this.trigger()||(this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null),this.closeTimeout=setTimeout(()=>{this.contextMenuRef&&this.closeContextMenu()},this.hoverDelay))}onDocumentClick(e){if(!this.contextMenuRef)return;const s=this.contextMenuRef.location.nativeElement.contains(e.target),d=this.elementRef.nativeElement.contains(e.target);if(!s&&!d){if(this.keepOpenOnInsideClick()){const m=e.target;if(c.openMenus.some(f=>{const M=f.contextMenuRef?.location.nativeElement;return!!M&&M.contains(m)}))return}this.closeContextMenu()}}onDocumentScroll(e){this.contextMenuRef&&(this.contextMenuRef.location.nativeElement.contains(e.target)||this.closeContextMenu())}showContextMenu(e){const n=this.elementRef.nativeElement.getBoundingClientRect();c.openMenus.forEach(M=>{M!==this&&(M.contextMenuRef?.location.nativeElement?.contains(this.elementRef.nativeElement)||M.closeContextMenu())}),this.closeContextMenu();const s=this.calculatePositioning(e,n),d=this.cueContextMenu();if(!(d&&d instanceof a.C4Q))return void console.error("Invalid template provided to context menu");this.contextMenuRef=(0,u.a0P)(o,{environmentInjector:this.environmentInjector}),this.contextMenuRef.setInput("template",d),this.contextMenuRef.setInput("context",{$implicit:this.contextMenuData(),event:e}),this.contextMenuRef.setInput("positioning",s),this.contextMenuRef.setInput("size",this.menuSize());const m=this.contextMenuRef.instance.menuClick.subscribe(()=>{this.closeContextMenu()}),p=this.contextMenuRef.location.nativeElement;p.style.zIndex="10000","hover"!==this.trigger()||this.positionAtCursor()?(p.style.left=`${e.clientX}px`,p.style.top=`${e.clientY}px`):this.positionSubmenu(p,s,n),this.applicationRef.attachView(this.contextMenuRef.hostView),(this.elementRef.nativeElement.closest("dialog")||document.body).appendChild(p),this.contextMenuRef._menuClickSubscription=m,"hover"===this.trigger()&&(this.menuMouseEnterHandler=()=>{this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null)},this.menuMouseLeaveHandler=()=>{this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null),this.closeTimeout=setTimeout(()=>{this.contextMenuRef&&this.closeContextMenu()},this.hoverDelay)},p.addEventListener("mouseenter",this.menuMouseEnterHandler),p.addEventListener("mouseleave",this.menuMouseLeaveHandler)),this.documentClickHandlerAttached||(document.addEventListener("mousedown",this.documentClickHandler,!0),document.addEventListener("contextmenu",this.documentClickHandler,!0),document.addEventListener("scroll",this.documentScrollHandler,!0),this.documentClickHandlerAttached=!0),c.openMenus.includes(this)||c.openMenus.push(this),this.contextMenuOpen.emit({event:e,data:this.contextMenuData(),suggestedPositioning:s})}calculatePositioning(e,n){const s=this.positioning();if(s)return s;if("hover"===this.trigger()&&!this.positionAtCursor())return this.calculateSubmenuPositioning(n);const d=window.innerWidth,m=window.innerHeight,f=e.clientX>d-200,M=e.clientY>m-200;return f&&M?"topleft":f?"bottomleft":M?"topright":"bottomright"}calculateSubmenuPositioning(e){const n=window.innerWidth,s=window.innerHeight,C=n-e.right>=300,_=s-e.bottom>=150;return C&&_?"rightstart":C&&!_?"rightend":!C&&_?"leftstart":"leftend"}positionSubmenu(e,n,s){const m=this.elementRef.nativeElement.closest?.("cue-context-menu-container")?.getBoundingClientRect()??s;switch(n){case"rightstart":default:e.style.left=`${m.right}px`,e.style.top=`${s.top}px`;break;case"rightend":e.style.left=`${m.right}px`,e.style.top=`${s.bottom}px`;break;case"leftstart":e.style.left=`${m.left}px`,e.style.top=`${s.top}px`;break;case"leftend":e.style.left=`${m.left}px`,e.style.top=`${s.bottom}px`}requestAnimationFrame(()=>{if(!e.isConnected)return;const f=(e.querySelector(".context-menu-wrapper")??e).getBoundingClientRect(),M=window.innerWidth,C=window.innerHeight;let E=parseFloat(e.style.left)||0,y=parseFloat(e.style.top)||0;f.right>M-8&&(E-=f.right-(M-8)),f.left<8&&(E+=8-f.left),f.bottom>C-8&&(y-=f.bottom-(C-8)),f.top<8&&(y+=8-f.top),e.style.left=`${E}px`,e.style.top=`${y}px`})}closeContextMenu(){if(this.contextMenuRef){const n=this.contextMenuRef.location.nativeElement;this.menuMouseEnterHandler&&(n.removeEventListener("mouseenter",this.menuMouseEnterHandler),this.menuMouseEnterHandler=null),this.menuMouseLeaveHandler&&(n.removeEventListener("mouseleave",this.menuMouseLeaveHandler),this.menuMouseLeaveHandler=null),this.documentClickHandlerAttached&&(document.removeEventListener("mousedown",this.documentClickHandler,!0),document.removeEventListener("contextmenu",this.documentClickHandler,!0),document.removeEventListener("scroll",this.documentScrollHandler,!0),this.documentClickHandlerAttached=!1);const s=this.contextMenuRef._menuClickSubscription;s&&s.unsubscribe(),this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null);try{n.parentNode?n.parentNode.removeChild(n):document.body.contains(n)&&document.body.removeChild(n)}catch{try{n.remove&&n.remove()}catch{}}this.applicationRef.detachView(this.contextMenuRef.hostView),this.contextMenuRef.destroy(),this.contextMenuRef=null,this.contextMenuClose.emit()}const e=c.openMenus.indexOf(this);e>-1&&c.openMenus.splice(e,1)}ngOnDestroy(){this.mousePressHandler.setSuppressNativeContextMenu(!1),this.mousePressHandler.events.removeListener("shortPressedRight",this.boundOnShortRightPress),this.mousePressHandler.events.removeListener("shortPressedLeft",this.boundOnShortLeftPress),this.mousePressHandler.events.removeListener("longPressedRight",this.boundOnLongRightPress),this.mousePressHandler.events.removeListener("longPressedLeft",this.boundOnLongLeftPress),"hover"===this.trigger()&&(this.elementRef.nativeElement.removeEventListener("mouseenter",this.onMouseEnter),this.elementRef.nativeElement.removeEventListener("mouseleave",this.onMouseLeave)),this.hoverTimeout&&clearTimeout(this.hoverTimeout),this.closeTimeout&&clearTimeout(this.closeTimeout),this.closeContextMenu()}static \u0275fac=function(n){return new(n||c)};static \u0275dir=a.FsC({type:c,selectors:[["","cueContextMenu",""]],inputs:{cueContextMenu:[1,"cueContextMenu"],contextMenuData:[1,"contextMenuData"],cueContextEnabled:[1,"cueContextEnabled"],trigger:[1,"trigger"],positioning:[1,"positioning"],positionAtCursor:[1,"positionAtCursor"],menuSize:[1,"menuSize"],keepOpenOnInsideClick:[1,"keepOpenOnInsideClick"]},outputs:{contextMenuOpen:"contextMenuOpen",contextMenuClose:"contextMenuClose"}})}return c})()},6170(x,v,l){l.d(v,{R:()=>h});var u=l(7705),a=l(5802),t=l(2271),r=l(5547);let h=(()=>{class o{destroyRef=(0,a.WQX)(a.abz);_isDarkMode=(0,a.vPA)(this.hasDarkClass());isDarkMode=(0,t.EW)(()=>this._isDarkMode());darkModeChange=(0,u.CGW)();constructor(){const c=new MutationObserver(i=>{i.forEach(e=>{if("attributes"===e.type&&"class"===e.attributeName){const n=this.hasDarkClass();n!==this._isDarkMode()&&this._isDarkMode.set(n)}})});c.observe(document.body,{attributes:!0,attributeFilter:["class"]}),this.destroyRef.onDestroy(()=>c.disconnect()),(0,a.QZP)(()=>{this.darkModeChange.emit(this._isDarkMode()),document.documentElement.style.colorScheme=this._isDarkMode()?"dark":"light"})}hasDarkClass(){return document.body.classList.contains("dark")}toggleDarkMode(){document.body.classList.toggle("dark")}static \u0275fac=function(i){return new(i||o)};static \u0275dir=r.FsC({type:o,selectors:[["","cueDarkMode",""]],outputs:{darkModeChange:"darkModeChange"},exportAs:["darkModeDetector"]})}return o})()},7851(x,v,l){l.d(v,{k:()=>c});var u=l(7705),a=l(5547),t=l(5802),r=l(4613),h=l(2245);function o(i,e){if(1&i&&(a.j41(0,"cue-typography",1),a.EFF(1),a.k0s()),2&i){const n=a.XpG();a.R7$(),a.JRh(n.message)}}let g=(()=>{class i{message="";static \u0275fac=function(s){return new(s||i)};static \u0275cmp=a.VBU({type:i,selectors:[["cue-logo-loader-overlay"]],decls:2,vars:1,consts:[["size","m","mode","glow"],["size","s",1,"message"]],template:function(s,d){1&s&&(a.nrm(0,"cue-logo",0),a.nVh(1,o,2,1,"cue-typography",1)),2&s&&(a.R7$(),a.vxM(d.message?1:-1))},dependencies:[r.Logo,h.Typography],styles:["[_nghost-%COMP%]{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;z-index:1000;pointer-events:none}.message[_ngcontent-%COMP%]{color:var(--color-text-secondary)}"],changeDetection:0})}return i})(),c=(()=>{class i{cueLogoLoader=(0,u.hFB)(!1);cueLogoLoaderMessage=(0,u.hFB)("");el=(0,t.WQX)(a.aKT);appRef=(0,t.WQX)(a.o8S);envInjector=(0,t.WQX)(t.uvJ);renderer=(0,t.WQX)(a.sFG);overlayRef;constructor(){(0,t.QZP)(()=>{const n=this.cueLogoLoader(),s=this.cueLogoLoaderMessage();n?(this.overlayRef||this.createOverlay(),this.overlayRef&&(this.overlayRef.instance.message=s,this.overlayRef.changeDetectorRef.markForCheck())):this.destroyOverlay()})}createOverlay(){this.overlayRef=(0,u.a0P)(g,{environmentInjector:this.envInjector}),this.appRef.attachView(this.overlayRef.hostView),this.renderer.appendChild(this.el.nativeElement,this.overlayRef.hostView.rootNodes[0])}destroyOverlay(){this.overlayRef&&(this.appRef.detachView(this.overlayRef.hostView),this.overlayRef.destroy(),this.overlayRef=void 0)}ngOnDestroy(){this.destroyOverlay()}static \u0275fac=function(s){return new(s||i)};static \u0275dir=a.FsC({type:i,selectors:[["","cueLogoLoader",""]],hostVars:2,hostBindings:function(s,d){2&s&&a.xc7("position","relative")},inputs:{cueLogoLoader:[1,"cueLogoLoader"],cueLogoLoaderMessage:[1,"cueLogoLoaderMessage"]}})}return i})()},9595(x,v,l){l.d(v,{B:()=>t});var u=l(1339);let a=(()=>{class r{static _instance;_pressTimer;_shortPressDuration=300;_longPressDuration=1e3;_pressTime;_emittedLongPress=!1;events=new u.EventEmitter;constructor(){document.addEventListener("keydown",o=>{void 0===this._pressTime&&(this._pressTime=(new Date).getTime(),this._pressTimer=setTimeout(()=>{this._handleLongPress(o.key),this._emittedLongPress=!0,clearTimeout(this._pressTimer)},this._longPressDuration),this.events.emit("holdingKey",o.key))}),document.addEventListener("keyup",o=>{void 0!==this._pressTime&&(clearTimeout(this._pressTimer),this._pressTime-(new Date).getTime()<this._shortPressDuration&&!this._emittedLongPress&&this._handleShortPress(o.key),this._reset(),this.events.emit("releasedKey",o.key))})}static getInstance(){return this._instance||(this._instance=new r),this._instance}_handleShortPress(o){"Escape"===o&&this.events.emit("shortPressedEsc"),this.events.emit("shortPressedKey",o)}_handleLongPress(o){"Escape"===o&&this.events.emit("longPressedEsc"),this.events.emit("longPressedKey",o)}_reset(){this._pressTime=void 0,this._emittedLongPress=!1}}return r})(),t=(()=>{class r{static _instance;_pressTimer;_shortPressDuration=200;_pressTime;_emittedLongPress=!1;_holdingControl=!1;_keyPressHandler=a.getInstance();_suppressNativeContextMenu=!1;events=new u.EventEmitter;constructor(){this._keyPressHandler.events.addListener("holdingKey",o=>{this._holdingControl="Control"===o}),this._keyPressHandler.events.addListener("releasedKey",o=>{"Control"===o&&(this._holdingControl=!1)}),document.addEventListener("mousedown",o=>{void 0===this._pressTime&&(this._pressTime=(new Date).getTime(),this._pressTimer=setTimeout(()=>{this._handlePress(o,"long"),this._emittedLongPress=!0,clearTimeout(this._pressTimer)},this._shortPressDuration))}),document.addEventListener("mouseup",o=>{void 0!==this._pressTime&&(clearTimeout(this._pressTimer),this._pressTime-(new Date).getTime()<this._shortPressDuration&&!this._emittedLongPress&&this._handlePress(o,"short"),this._reset())}),document.addEventListener("contextmenu",o=>{this._suppressNativeContextMenu&&(o.preventDefault(),o.stopPropagation())})}static getInstance(){return this._instance||(this._instance=new r),this._instance}setSuppressNativeContextMenu(o){this._suppressNativeContextMenu=o}get suppressNativeContextMenu(){return this._suppressNativeContextMenu}_handlePress(o,g){0===o.button&&!this._holdingControl&&this.events.emit(`${g}PressedLeft`,o),0===o.button&&this._holdingControl&&this.events.emit(`${g}PressedRight`,o),2===o.button&&this.events.emit(`${g}PressedRight`,o)}_reset(){this._pressTime=void 0,this._emittedLongPress=!1}}return r})()},2001(x,v){var l=this&&this.__spreadArrays||function(){for(var a=0,t=0,r=arguments.length;t<r;t++)a+=arguments[t].length;var h=Array(a),o=0;for(t=0;t<r;t++)for(var g=arguments[t],c=0,i=g.length;c<i;c++,o++)h[o]=g[c];return h};Object.defineProperty(v,"__esModule",{value:!0});var u=function(){return function a(){var t=this;this.events={},this.maxListeners=1/0,this.emit=function(r){for(var h=[],o=1;o<arguments.length;o++)h[o-1]=arguments[o];if(t.events[r]){for(var g=t.events[r].length,i=0,e=Array.from(t.events[r]);i<e.length;i++)e[i].apply(void 0,h);return!!g}return!1},this.on=function(r,h){return t.addListener(r,h),t},this.once=function(r,h){var o=function(){for(var g=[],c=0;c<arguments.length;c++)g[c]=arguments[c];h.apply(void 0,g),t.removeListener(r,o)};return t.addListener(r,o),t},this.addListener=function(r,h){return r in t.events?t.events[r].push(h):t.events[r]=[h],t.maxListeners!==1/0&&t.maxListeners<=t.events[r].length&&console.warn('Maximum event listeners for "'+r+'" event!'),t},this.removeListener=function(r,h){if(r in t.events){var o=t.events[r].indexOf(h);-1!==o&&t.events[r].splice(o,1)}return t},this.hasListeners=function(r){return t.events[r]&&!!t.events[r].length},this.prependListener=function(r,h){return r in t.events?t.events[r].unshift(h):t.events[r]=[h],t},this.prependOnceListener=function(r,h){var o=function(){for(var g=[],c=0;c<arguments.length;c++)g[c]=arguments[c];h.apply(void 0,g),t.removeListener(r,o)};return t.prependListener(r,o),t},this.off=function(r,h){return t.removeListener(r,h)},this.removeAllListeners=function(r){return delete t.events[r],t},this.setMaxListeners=function(r){return t.maxListeners=r,t},this.getMaxListeners=function(){return t.maxListeners},this.listeners=function(r){return l(t.events[r])},this.rawListeners=function(r){return t.events[r]},this.eventNames=function(){return Object.keys(t.events)},this.listenerCount=function(r){return t.events[r]&&t.events[r].length||0}}}();v.EventEmitter=u},1339(x,v,l){function u(a){for(var t in a)v.hasOwnProperty(t)||(v[t]=a[t])}Object.defineProperty(v,"__esModule",{value:!0}),u(l(9146)),u(l(2001))},9146(x,v){Object.defineProperty(v,"__esModule",{value:!0}),v.asTypedEventEmitter=function l(u){return u}}}]);
|
package/7247.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[7247],{7247(wt){wt.exports=function b(U,k,l){function o(_,y){if(!k[_]){if(!U[_]){if(n)return n(_,!0);var g=new Error("Cannot find module '"+_+"'");throw g.code="MODULE_NOT_FOUND",g}var i=k[_]={exports:{}};U[_][0].call(i.exports,function(c){return o(U[_][1][c]||c)},i,i.exports,b,U,k,l)}return k[_].exports}for(var n=void 0,h=0;h<l.length;h++)o(l[h]);return o}({1:[function(b,U,k){"use strict";var l=b("./utils"),o=b("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";k.encode=function(h){for(var _,y,m,i,c,e,u=[],s=0,d=h.length,v=d,S="string"!==l.getTypeOf(h);s<h.length;)v=d-s,m=S?(_=h[s++],y=s<d?h[s++]:0,s<d?h[s++]:0):(_=h.charCodeAt(s++),y=s<d?h.charCodeAt(s++):0,s<d?h.charCodeAt(s++):0),i=(3&_)<<4|y>>4,c=1<v?(15&y)<<2|m>>6:64,e=2<v?63&m:64,u.push(n.charAt(_>>2)+n.charAt(i)+n.charAt(c)+n.charAt(e));return u.join("")},k.decode=function(h){var _,y,m,g,i,c,e=0,u=0,s="data:";if(h.substr(0,5)===s)throw new Error("Invalid base64 input, it looks like a data url.");var d,v=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===n.charAt(64)&&v--,h.charAt(h.length-2)===n.charAt(64)&&v--,v%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=o.uint8array?new Uint8Array(0|v):new Array(0|v);e<h.length;)_=n.indexOf(h.charAt(e++))<<2|(g=n.indexOf(h.charAt(e++)))>>4,y=(15&g)<<4|(i=n.indexOf(h.charAt(e++)))>>2,m=(3&i)<<6|(c=n.indexOf(h.charAt(e++))),d[u++]=_,64!==i&&(d[u++]=y),64!==c&&(d[u++]=m);return d}},{"./support":30,"./utils":32}],2:[function(b,U,k){"use strict";var l=b("./external"),o=b("./stream/DataWorker"),n=b("./stream/Crc32Probe"),h=b("./stream/DataLengthProbe");function _(y,m,g,i,c){this.compressedSize=y,this.uncompressedSize=m,this.crc32=g,this.compression=i,this.compressedContent=c}_.prototype={getContentWorker:function(){var y=new o(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),m=this;return y.on("end",function(){if(this.streamInfo.data_length!==m.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new o(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},_.createWorkerFrom=function(y,m,g){return y.pipe(new n).pipe(new h("uncompressedSize")).pipe(m.compressWorker(g)).pipe(new h("compressedSize")).withStreamInfo("compression",m)},U.exports=_},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(b,U,k){"use strict";var l=b("./stream/GenericWorker");k.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},k.DEFLATE=b("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(b,U,k){"use strict";var l=b("./utils"),o=function(){for(var n,h=[],_=0;_<256;_++){n=_;for(var y=0;y<8;y++)n=1&n?3988292384^n>>>1:n>>>1;h[_]=n}return h}();U.exports=function(n,h){return void 0!==n&&n.length?"string"!==l.getTypeOf(n)?function(_,y,m){var i=o,c=0+m;_^=-1;for(var e=0;e<c;e++)_=_>>>8^i[255&(_^y[e])];return-1^_}(0|h,n,n.length):function(_,y,m){var i=o,c=0+m;_^=-1;for(var e=0;e<c;e++)_=_>>>8^i[255&(_^y.charCodeAt(e))];return-1^_}(0|h,n,n.length):0}},{"./utils":32}],5:[function(b,U,k){"use strict";k.base64=!1,k.binary=!1,k.dir=!1,k.createFolders=!0,k.date=null,k.compression=null,k.compressionOptions=null,k.comment=null,k.unixPermissions=null,k.dosPermissions=null},{}],6:[function(b,U,k){"use strict";var l;l=typeof Promise<"u"?Promise:b("lie"),U.exports={Promise:l}},{lie:37}],7:[function(b,U,k){"use strict";var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=b("pako"),n=b("./utils"),h=b("./stream/GenericWorker"),_=l?"uint8array":"array";function y(m,g){h.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=g,this.meta={}}k.magic="\b\0",n.inherits(y,h),y.prototype.processChunk=function(m){this.meta=m.meta,null===this._pako&&this._createPako(),this._pako.push(n.transformTo(_,m.data),!1)},y.prototype.flush=function(){h.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var m=this;this._pako.onData=function(g){m.push({data:g,meta:m.meta})}},k.compressWorker=function(m){return new y("Deflate",m)},k.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(b,U,k){"use strict";function l(i,c){var e,u="";for(e=0;e<c;e++)u+=String.fromCharCode(255&i),i>>>=8;return u}function o(i,c,e,u,s,d){var v,S,x=i.file,D=i.compression,O=d!==_.utf8encode,L=n.transformTo("string",d(x.name)),I=n.transformTo("string",_.utf8encode(x.name)),M=x.comment,V=n.transformTo("string",d(M)),p=n.transformTo("string",_.utf8encode(M)),B=I.length!==x.name.length,r=p.length!==M.length,T="",J="",P="",$=x.dir,j=x.date,q={crc32:0,compressedSize:0,uncompressedSize:0};c&&!e||(q.crc32=i.crc32,q.compressedSize=i.compressedSize,q.uncompressedSize=i.uncompressedSize);var E=0;c&&(E|=8),O||!B&&!r||(E|=2048);var H,ot,C=0,X=0;$&&(C|=16),"UNIX"===s?(X=798,C|=(ot=H=x.unixPermissions,H||(ot=$?16893:33204),(65535&ot)<<16)):(X=20,C|=function(H){return 63&(H||0)}(x.dosPermissions)),v=j.getUTCHours(),v<<=6,v|=j.getUTCMinutes(),v<<=5,v|=j.getUTCSeconds()/2,S=j.getUTCFullYear()-1980,S<<=4,S|=j.getUTCMonth()+1,S<<=5,S|=j.getUTCDate(),B&&(J=l(1,1)+l(y(L),4)+I,T+="up"+l(J.length,2)+J),r&&(P=l(1,1)+l(y(V),4)+p,T+="uc"+l(P.length,2)+P);var G="";return G+="\n\0",G+=l(E,2),G+=D.magic,G+=l(v,2),G+=l(S,2),G+=l(q.crc32,4),G+=l(q.compressedSize,4),G+=l(q.uncompressedSize,4),G+=l(L.length,2),G+=l(T.length,2),{fileRecord:m.LOCAL_FILE_HEADER+G+L+T,dirRecord:m.CENTRAL_FILE_HEADER+l(X,2)+G+l(V.length,2)+"\0\0\0\0"+l(C,4)+l(u,4)+L+T+V}}var n=b("../utils"),h=b("../stream/GenericWorker"),_=b("../utf8"),y=b("../crc32"),m=b("../signature");function g(i,c,e,u){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=c,this.zipPlatform=e,this.encodeFileName=u,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(g,h),g.prototype.push=function(i){var c=i.meta.percent||0,e=this.entriesCount,u=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,h.prototype.push.call(this,{data:i.data,meta:{currentFile:this.currentFile,percent:e?(c+100*(e-u-1))/e:100}}))},g.prototype.openedSource=function(i){this.currentSourceOffset=this.bytesWritten,this.currentFile=i.file.name;var c=this.streamFiles&&!i.file.dir;if(c){var e=o(i,c,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:e.fileRecord,meta:{percent:0}})}else this.accumulate=!0},g.prototype.closedSource=function(i){this.accumulate=!1;var u,c=this.streamFiles&&!i.file.dir,e=o(i,c,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(e.dirRecord),c)this.push({data:(u=i,m.DATA_DESCRIPTOR+l(u.crc32,4)+l(u.compressedSize,4)+l(u.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:e.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},g.prototype.flush=function(){for(var i=this.bytesWritten,c=0;c<this.dirRecords.length;c++)this.push({data:this.dirRecords[c],meta:{percent:100}});var s,d,v,D,u=(s=this.dirRecords.length,d=this.bytesWritten-i,v=i,D=n.transformTo("string",(0,this.encodeFileName)(this.zipComment)),m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(s,2)+l(s,2)+l(d,4)+l(v,4)+l(D.length,2)+D);this.push({data:u,meta:{percent:100}})},g.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},g.prototype.registerPrevious=function(i){this._sources.push(i);var c=this;return i.on("data",function(e){c.processChunk(e)}),i.on("end",function(){c.closedSource(c.previous.streamInfo),c._sources.length?c.prepareNextSource():c.end()}),i.on("error",function(e){c.error(e)}),this},g.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},g.prototype.error=function(i){var c=this._sources;if(!h.prototype.error.call(this,i))return!1;for(var e=0;e<c.length;e++)try{c[e].error(i)}catch{}return!0},g.prototype.lock=function(){h.prototype.lock.call(this);for(var i=this._sources,c=0;c<i.length;c++)i[c].lock()},U.exports=g},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(b,U,k){"use strict";var l=b("../compressions"),o=b("./ZipFileWorker");k.generateWorker=function(n,h,_){var y=new o(h.streamFiles,_,h.platform,h.encodeFileName),m=0;try{n.forEach(function(g,i){m++;var c=function(d,v){var S=d||v,x=l[S];if(!x)throw new Error(S+" is not a valid compression method !");return x}(i.options.compression,h.compression),u=i.dir,s=i.date;i._compressWorker(c,i.options.compressionOptions||h.compressionOptions||{}).withStreamInfo("file",{name:g,dir:u,date:s,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(y)}),y.entriesCount=m}catch(g){y.error(g)}return y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(b,U,k){"use strict";function l(){if(!(this instanceof l))return new l;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new l;for(var n in this)"function"!=typeof this[n]&&(o[n]=this[n]);return o}}(l.prototype=b("./object")).loadAsync=b("./load"),l.support=b("./support"),l.defaults=b("./defaults"),l.version="3.10.1",l.loadAsync=function(o,n){return(new l).loadAsync(o,n)},l.external=b("./external"),U.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(b,U,k){"use strict";var l=b("./utils"),o=b("./external"),n=b("./utf8"),h=b("./zipEntries"),_=b("./stream/Crc32Probe"),y=b("./nodejsUtils");function m(g){return new o.Promise(function(i,c){var e=g.decompressed.getContentWorker().pipe(new _);e.on("error",function(u){c(u)}).on("end",function(){e.streamInfo.crc32!==g.decompressed.crc32?c(new Error("Corrupted zip : CRC32 mismatch")):i()}).resume()})}U.exports=function(g,i){var c=this;return i=l.extend(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),y.isNode&&y.isStream(g)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",g,!0,i.optimizedBinaryString,i.base64).then(function(e){var u=new h(i);return u.load(e),u}).then(function(e){var u=[o.Promise.resolve(e)],s=e.files;if(i.checkCRC32)for(var d=0;d<s.length;d++)u.push(m(s[d]));return o.Promise.all(u)}).then(function(e){for(var u=e.shift(),s=u.files,d=0;d<s.length;d++){var v=s[d],S=v.fileNameStr,x=l.resolve(v.fileNameStr);c.file(x,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:i.createFolders}),v.dir||(c.file(x).unsafeOriginalName=S)}return u.zipComment.length&&(c.comment=u.zipComment),c})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(b,U,k){"use strict";var l=b("../utils"),o=b("../stream/GenericWorker");function n(h,_){o.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(_)}l.inherits(n,o),n.prototype._bindStream=function(h){var _=this;(this._stream=h).pause(),h.on("data",function(y){_.push({data:y,meta:{percent:0}})}).on("error",function(y){_.isPaused?this.generatedError=y:_.error(y)}).on("end",function(){_.isPaused?_._upstreamEnded=!0:_.end()})},n.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},U.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(b,U,k){"use strict";var l=b("readable-stream").Readable;function o(n,h,_){l.call(this,h),this._helper=n;var y=this;n.on("data",function(m,g){y.push(m)||y._helper.pause(),_&&_(g)}).on("error",function(m){y.emit("error",m)}).on("end",function(){y.push(null)})}b("../utils").inherits(o,l),o.prototype._read=function(){this._helper.resume()},U.exports=o},{"../utils":32,"readable-stream":16}],14:[function(b,U,k){"use strict";U.exports={isNode:typeof Buffer<"u",newBufferFrom:function(l,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(l,o);if("number"==typeof l)throw new Error('The "data" argument must not be a number');return new Buffer(l,o)},allocBuffer:function(l){if(Buffer.alloc)return Buffer.alloc(l);var o=new Buffer(l);return o.fill(0),o},isBuffer:function(l){return Buffer.isBuffer(l)},isStream:function(l){return l&&"function"==typeof l.on&&"function"==typeof l.pause&&"function"==typeof l.resume}}},{}],15:[function(b,U,k){"use strict";function l(x,D,O){var L,I=n.getTypeOf(D),M=n.extend(O||{},y);M.date=M.date||new Date,null!==M.compression&&(M.compression=M.compression.toUpperCase()),"string"==typeof M.unixPermissions&&(M.unixPermissions=parseInt(M.unixPermissions,8)),M.unixPermissions&&16384&M.unixPermissions&&(M.dir=!0),M.dosPermissions&&16&M.dosPermissions&&(M.dir=!0),M.dir&&(x=s(x)),M.createFolders&&(L=u(x))&&d.call(this,L,!0),O&&void 0!==O.binary||(M.binary=!("string"===I&&!1===M.binary&&!1===M.base64)),(D instanceof m&&0===D.uncompressedSize||M.dir||!D||0===D.length)&&(M.base64=!1,M.binary=!0,D="",M.compression="STORE",I="string");var p;p=D instanceof m||D instanceof h?D:c.isNode&&c.isStream(D)?new e(x,D):n.prepareContent(x,D,M.binary,M.optimizedBinaryString,M.base64);var B=new g(x,p,M);this.files[x]=B}var o=b("./utf8"),n=b("./utils"),h=b("./stream/GenericWorker"),_=b("./stream/StreamHelper"),y=b("./defaults"),m=b("./compressedObject"),g=b("./zipObject"),i=b("./generate"),c=b("./nodejsUtils"),e=b("./nodejs/NodejsStreamInputAdapter"),u=function(x){"/"===x.slice(-1)&&(x=x.substring(0,x.length-1));var D=x.lastIndexOf("/");return 0<D?x.substring(0,D):""},s=function(x){return"/"!==x.slice(-1)&&(x+="/"),x},d=function(x,D){return D=void 0!==D?D:y.createFolders,x=s(x),this.files[x]||l.call(this,x,null,{dir:!0,createFolders:D}),this.files[x]};function v(x){return"[object RegExp]"===Object.prototype.toString.call(x)}var S={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var D,O,L;for(D in this.files)L=this.files[D],(O=D.slice(this.root.length,D.length))&&D.slice(0,this.root.length)===this.root&&x(O,L)},filter:function(x){var D=[];return this.forEach(function(O,L){x(O,L)&&D.push(L)}),D},file:function(x,D,O){if(1!==arguments.length)return l.call(this,x=this.root+x,D,O),this;if(v(x)){var L=x;return this.filter(function(M,V){return!V.dir&&L.test(M)})}var I=this.files[this.root+x];return I&&!I.dir?I:null},folder:function(x){if(!x)return this;if(v(x))return this.filter(function(I,M){return M.dir&&x.test(I)});var O=d.call(this,this.root+x),L=this.clone();return L.root=O.name,L},remove:function(x){var D=this.files[x=this.root+x];if(D||("/"!==x.slice(-1)&&(x+="/"),D=this.files[x]),D&&!D.dir)delete this.files[x];else for(var O=this.filter(function(I,M){return M.name.slice(0,x.length)===x}),L=0;L<O.length;L++)delete this.files[O[L].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var D,O={};try{if((O=n.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=O.type.toLowerCase(),O.compression=O.compression.toUpperCase(),"binarystring"===O.type&&(O.type="string"),!O.type)throw new Error("No output type specified.");n.checkSupport(O.type),"darwin"!==O.platform&&"freebsd"!==O.platform&&"linux"!==O.platform&&"sunos"!==O.platform||(O.platform="UNIX"),"win32"===O.platform&&(O.platform="DOS"),D=i.generateWorker(this,O,O.comment||this.comment||"")}catch(I){(D=new h("error")).error(I)}return new _(D,O.type||"string",O.mimeType)},generateAsync:function(x,D){return this.generateInternalStream(x).accumulate(D)},generateNodeStream:function(x,D){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(D)}};U.exports=S},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(b,U,k){"use strict";U.exports=b("stream")},{stream:void 0}],17:[function(b,U,k){"use strict";var l=b("./DataReader");function o(n){l.call(this,n);for(var h=0;h<this.data.length;h++)n[h]=255&n[h]}b("../utils").inherits(o,l),o.prototype.byteAt=function(n){return this.data[this.zero+n]},o.prototype.lastIndexOfSignature=function(n){for(var h=n.charCodeAt(0),_=n.charCodeAt(1),y=n.charCodeAt(2),m=n.charCodeAt(3),g=this.length-4;0<=g;--g)if(this.data[g]===h&&this.data[g+1]===_&&this.data[g+2]===y&&this.data[g+3]===m)return g-this.zero;return-1},o.prototype.readAndCheckSignature=function(n){var h=n.charCodeAt(0),_=n.charCodeAt(1),y=n.charCodeAt(2),m=n.charCodeAt(3),g=this.readData(4);return h===g[0]&&_===g[1]&&y===g[2]&&m===g[3]},o.prototype.readData=function(n){if(this.checkOffset(n),0===n)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},U.exports=o},{"../utils":32,"./DataReader":18}],18:[function(b,U,k){"use strict";var l=b("../utils");function o(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var h,_=0;for(this.checkOffset(n),h=this.index+n-1;h>=this.index;h--)_=(_<<8)+this.byteAt(h);return this.index+=n,_},readString:function(n){return l.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},U.exports=o},{"../utils":32}],19:[function(b,U,k){"use strict";var l=b("./Uint8ArrayReader");function o(n){l.call(this,n)}b("../utils").inherits(o,l),o.prototype.readData=function(n){this.checkOffset(n);var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},U.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(b,U,k){"use strict";var l=b("./DataReader");function o(n){l.call(this,n)}b("../utils").inherits(o,l),o.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},o.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},o.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},o.prototype.readData=function(n){this.checkOffset(n);var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},U.exports=o},{"../utils":32,"./DataReader":18}],21:[function(b,U,k){"use strict";var l=b("./ArrayReader");function o(n){l.call(this,n)}b("../utils").inherits(o,l),o.prototype.readData=function(n){if(this.checkOffset(n),0===n)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},U.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(b,U,k){"use strict";var l=b("../utils"),o=b("../support"),n=b("./ArrayReader"),h=b("./StringReader"),_=b("./NodeBufferReader"),y=b("./Uint8ArrayReader");U.exports=function(m){var g=l.getTypeOf(m);return l.checkSupport(g),"string"!==g||o.uint8array?"nodebuffer"===g?new _(m):o.uint8array?new y(l.transformTo("uint8array",m)):new n(l.transformTo("array",m)):new h(m)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(b,U,k){"use strict";k.LOCAL_FILE_HEADER="PK\x03\x04",k.CENTRAL_FILE_HEADER="PK\x01\x02",k.CENTRAL_DIRECTORY_END="PK\x05\x06",k.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",k.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",k.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(b,U,k){"use strict";var l=b("./GenericWorker"),o=b("../utils");function n(h){l.call(this,"ConvertWorker to "+h),this.destType=h}o.inherits(n,l),n.prototype.processChunk=function(h){this.push({data:o.transformTo(this.destType,h.data),meta:h.meta})},U.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(b,U,k){"use strict";var l=b("./GenericWorker"),o=b("../crc32");function n(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}b("../utils").inherits(n,l),n.prototype.processChunk=function(h){this.streamInfo.crc32=o(h.data,this.streamInfo.crc32||0),this.push(h)},U.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(b,U,k){"use strict";var l=b("../utils"),o=b("./GenericWorker");function n(h){o.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}l.inherits(n,o),n.prototype.processChunk=function(h){h&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+h.data.length),o.prototype.processChunk.call(this,h)},U.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(b,U,k){"use strict";var l=b("../utils"),o=b("./GenericWorker");function n(h){o.call(this,"DataWorker");var _=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,h.then(function(y){_.dataIsReady=!0,_.data=y,_.max=y&&y.length||0,_.type=l.getTypeOf(y),_.isPaused||_._tickAndRepeat()},function(y){_.error(y)})}l.inherits(n,o),n.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var h=null,_=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":h=this.data.substring(this.index,_);break;case"uint8array":h=this.data.subarray(this.index,_);break;case"array":case"nodebuffer":h=this.data.slice(this.index,_)}return this.index=_,this.push({data:h,meta:{percent:this.max?this.index/this.max*100:0}})},U.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(b,U,k){"use strict";function l(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}l.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,n){return this._listeners[o].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,n){if(this._listeners[o])for(var h=0;h<this._listeners[o].length;h++)this._listeners[o][h].call(this,n)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var n=this;return o.on("data",function(h){n.processChunk(h)}),o.on("end",function(){n.end()}),o.on("error",function(h){n.error(h)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,n){return this.extraStreamInfo[o]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},U.exports=l},{}],29:[function(b,U,k){"use strict";var l=b("../utils"),o=b("./ConvertWorker"),n=b("./GenericWorker"),h=b("../base64"),_=b("../support"),y=b("../external"),m=null;if(_.nodestream)try{m=b("../nodejs/NodejsStreamOutputAdapter")}catch{}function i(c,e,u){var s=e;switch(e){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=e,this._mimeType=u,l.checkSupport(s),this._worker=c.pipe(new o(s)),c.lock()}catch(d){this._worker=new n("error"),this._worker.error(d)}}i.prototype={accumulate:function(c){return function g(c,e){return new y.Promise(function(u,s){var d=[],v=c._internalType,S=c._outputType,x=c._mimeType;c.on("data",function(D,O){d.push(D),e&&e(O)}).on("error",function(D){d=[],s(D)}).on("end",function(){try{var D=function(O,L,I){switch(O){case"blob":return l.newBlob(l.transformTo("arraybuffer",L),I);case"base64":return h.encode(L);default:return l.transformTo(O,L)}}(S,function(O,L){var I,M=0,V=null,p=0;for(I=0;I<L.length;I++)p+=L[I].length;switch(O){case"string":return L.join("");case"array":return Array.prototype.concat.apply([],L);case"uint8array":for(V=new Uint8Array(p),I=0;I<L.length;I++)V.set(L[I],M),M+=L[I].length;return V;case"nodebuffer":return Buffer.concat(L);default:throw new Error("concat : unsupported type '"+O+"'")}}(v,d),x);u(D)}catch(O){s(O)}d=[]}).resume()})}(this,c)},on:function(c,e){var u=this;return this._worker.on(c,"data"===c?function(s){e.call(u,s.data,s.meta)}:function(){l.delay(e,arguments,u)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(c){if(l.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new m(this,{objectMode:"nodebuffer"!==this._outputType},c)}},U.exports=i},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(b,U,k){"use strict";if(k.base64=!0,k.array=!0,k.string=!0,k.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",k.nodebuffer=typeof Buffer<"u",k.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")k.blob=!1;else{var l=new ArrayBuffer(0);try{k.blob=0===new Blob([l],{type:"application/zip"}).size}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(l),k.blob=0===o.getBlob("application/zip").size}catch{k.blob=!1}}}try{k.nodestream=!!b("readable-stream").Readable}catch{k.nodestream=!1}},{"readable-stream":16}],31:[function(b,U,k){"use strict";for(var l=b("./utils"),o=b("./support"),n=b("./nodejsUtils"),h=b("./stream/GenericWorker"),_=new Array(256),y=0;y<256;y++)_[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;function m(){h.call(this,"utf-8 decode"),this.leftOver=null}function g(){h.call(this,"utf-8 encode")}_[254]=_[254]=1,k.utf8encode=function(i){return o.nodebuffer?n.newBufferFrom(i,"utf-8"):function(c){var e,u,s,d,v,S=c.length,x=0;for(d=0;d<S;d++)55296==(64512&(u=c.charCodeAt(d)))&&d+1<S&&56320==(64512&(s=c.charCodeAt(d+1)))&&(u=65536+(u-55296<<10)+(s-56320),d++),x+=u<128?1:u<2048?2:u<65536?3:4;for(e=o.uint8array?new Uint8Array(x):new Array(x),d=v=0;v<x;d++)55296==(64512&(u=c.charCodeAt(d)))&&d+1<S&&56320==(64512&(s=c.charCodeAt(d+1)))&&(u=65536+(u-55296<<10)+(s-56320),d++),u<128?e[v++]=u:(u<2048?e[v++]=192|u>>>6:(u<65536?e[v++]=224|u>>>12:(e[v++]=240|u>>>18,e[v++]=128|u>>>12&63),e[v++]=128|u>>>6&63),e[v++]=128|63&u);return e}(i)},k.utf8decode=function(i){return o.nodebuffer?l.transformTo("nodebuffer",i).toString("utf-8"):function(c){var e,u,s,d,v=c.length,S=new Array(2*v);for(e=u=0;e<v;)if((s=c[e++])<128)S[u++]=s;else if(4<(d=_[s]))S[u++]=65533,e+=d-1;else{for(s&=2===d?31:3===d?15:7;1<d&&e<v;)s=s<<6|63&c[e++],d--;1<d?S[u++]=65533:s<65536?S[u++]=s:(S[u++]=55296|(s-=65536)>>10&1023,S[u++]=56320|1023&s)}return S.length!==u&&(S.subarray?S=S.subarray(0,u):S.length=u),l.applyFromCharCode(S)}(i=l.transformTo(o.uint8array?"uint8array":"array",i))},l.inherits(m,h),m.prototype.processChunk=function(i){var c=l.transformTo(o.uint8array?"uint8array":"array",i.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var e=c;(c=new Uint8Array(e.length+this.leftOver.length)).set(this.leftOver,0),c.set(e,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var u=function(d,v){var S;for((v=v||d.length)>d.length&&(v=d.length),S=v-1;0<=S&&128==(192&d[S]);)S--;return S<0||0===S?v:S+_[d[S]]>v?S:v}(c),s=c;u!==c.length&&(o.uint8array?(s=c.subarray(0,u),this.leftOver=c.subarray(u,c.length)):(s=c.slice(0,u),this.leftOver=c.slice(u,c.length))),this.push({data:k.utf8decode(s),meta:i.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:k.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},k.Utf8DecodeWorker=m,l.inherits(g,h),g.prototype.processChunk=function(i){this.push({data:k.utf8encode(i.data),meta:i.meta})},k.Utf8EncodeWorker=g},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(b,U,k){"use strict";var l=b("./support"),o=b("./base64"),n=b("./nodejsUtils"),h=b("./external");function _(e){return e}function y(e,u){for(var s=0;s<e.length;++s)u[s]=255&e.charCodeAt(s);return u}b("setimmediate"),k.newBlob=function(e,u){k.checkSupport("blob");try{return new Blob([e],{type:u})}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return s.append(e),s.getBlob(u)}catch{throw new Error("Bug : can't construct the Blob.")}}};var m={stringifyByChunk:function(e,u,s){var d=[],v=0,S=e.length;if(S<=s)return String.fromCharCode.apply(null,e);for(;v<S;)d.push(String.fromCharCode.apply(null,"array"===u||"nodebuffer"===u?e.slice(v,Math.min(v+s,S)):e.subarray(v,Math.min(v+s,S)))),v+=s;return d.join("")},stringifyByChar:function(e){for(var u="",s=0;s<e.length;s++)u+=String.fromCharCode(e[s]);return u},applyCanBeUsed:{uint8array:function(){try{return l.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch{return!1}}(),nodebuffer:function(){try{return l.nodebuffer&&1===String.fromCharCode.apply(null,n.allocBuffer(1)).length}catch{return!1}}()}};function g(e){var u=65536,s=k.getTypeOf(e),d=!0;if("uint8array"===s?d=m.applyCanBeUsed.uint8array:"nodebuffer"===s&&(d=m.applyCanBeUsed.nodebuffer),d)for(;1<u;)try{return m.stringifyByChunk(e,s,u)}catch{u=Math.floor(u/2)}return m.stringifyByChar(e)}function i(e,u){for(var s=0;s<e.length;s++)u[s]=e[s];return u}k.applyFromCharCode=g;var c={};c.string={string:_,array:function(e){return y(e,new Array(e.length))},arraybuffer:function(e){return c.string.uint8array(e).buffer},uint8array:function(e){return y(e,new Uint8Array(e.length))},nodebuffer:function(e){return y(e,n.allocBuffer(e.length))}},c.array={string:g,array:_,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(e)}},c.arraybuffer={string:function(e){return g(new Uint8Array(e))},array:function(e){return i(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:_,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(new Uint8Array(e))}},c.uint8array={string:g,array:function(e){return i(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:_,nodebuffer:function(e){return n.newBufferFrom(e)}},c.nodebuffer={string:g,array:function(e){return i(e,new Array(e.length))},arraybuffer:function(e){return c.nodebuffer.uint8array(e).buffer},uint8array:function(e){return i(e,new Uint8Array(e.length))},nodebuffer:_},k.transformTo=function(e,u){if(u=u||"",!e)return u;k.checkSupport(e);var s=k.getTypeOf(u);return c[s][e](u)},k.resolve=function(e){for(var u=e.split("/"),s=[],d=0;d<u.length;d++){var v=u[d];"."===v||""===v&&0!==d&&d!==u.length-1||(".."===v?s.pop():s.push(v))}return s.join("/")},k.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":l.nodebuffer&&n.isBuffer(e)?"nodebuffer":l.uint8array&&e instanceof Uint8Array?"uint8array":l.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},k.checkSupport=function(e){if(!l[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},k.MAX_VALUE_16BITS=65535,k.MAX_VALUE_32BITS=-1,k.pretty=function(e){var u,s,d="";for(s=0;s<(e||"").length;s++)d+="\\x"+((u=e.charCodeAt(s))<16?"0":"")+u.toString(16).toUpperCase();return d},k.delay=function(e,u,s){setImmediate(function(){e.apply(s||null,u||[])})},k.inherits=function(e,u){function s(){}s.prototype=u.prototype,e.prototype=new s},k.extend=function(){var e,u,s={};for(e=0;e<arguments.length;e++)for(u in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],u)&&void 0===s[u]&&(s[u]=arguments[e][u]);return s},k.prepareContent=function(e,u,s,d,v){return h.Promise.resolve(u).then(function(S){return l.blob&&(S instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S)))&&typeof FileReader<"u"?new h.Promise(function(x,D){var O=new FileReader;O.onload=function(L){x(L.target.result)},O.onerror=function(L){D(L.target.error)},O.readAsArrayBuffer(S)}):S}).then(function(S){var D,x=k.getTypeOf(S);return x?("arraybuffer"===x?S=k.transformTo("uint8array",S):"string"===x&&(v?S=o.decode(S):s&&!0!==d&&(S=y(D=S,l.uint8array?new Uint8Array(D.length):new Array(D.length)))),S):h.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(b,U,k){"use strict";var l=b("./reader/readerFor"),o=b("./utils"),n=b("./signature"),h=b("./zipEntry"),_=b("./support");function y(m){this.files=[],this.loadOptions=m}y.prototype={checkSignature:function(m){if(!this.reader.readAndCheckSignature(m)){this.reader.index-=4;var g=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(g)+", expected "+o.pretty(m)+")")}},isSignature:function(m,g){var i=this.reader.index;this.reader.setIndex(m);var c=this.reader.readString(4)===g;return this.reader.setIndex(i),c},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var m=this.reader.readData(this.zipCommentLength),i=o.transformTo(_.uint8array?"uint8array":"array",m);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var m,g,i,c=this.zip64EndOfCentralSize-44;0<c;)m=this.reader.readInt(2),g=this.reader.readInt(4),i=this.reader.readData(g),this.zip64ExtensibleData[m]={id:m,length:g,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var m,g;for(m=0;m<this.files.length;m++)this.reader.setIndex((g=this.files[m]).localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),g.readLocalPart(this.reader),g.handleUTF8(),g.processAttributes()},readCentralDir:function(){var m;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(m=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(m);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var m=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(m<0)throw this.isSignature(0,n.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(m);var g=m;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(m=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(m),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var c=g-i;if(0<c)this.isSignature(g,n.CENTRAL_FILE_HEADER)||(this.reader.zero=c);else if(c<0)throw new Error("Corrupted zip: missing "+Math.abs(c)+" bytes.")},prepareReader:function(m){this.reader=l(m)},load:function(m){this.prepareReader(m),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},U.exports=y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(b,U,k){"use strict";var l=b("./reader/readerFor"),o=b("./utils"),n=b("./compressedObject"),h=b("./crc32"),_=b("./utf8"),y=b("./compressions"),m=b("./support");function g(i,c){this.options=i,this.loadOptions=c}g.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(i){var c,e;if(i.skip(22),this.fileNameLength=i.readInt(2),e=i.readInt(2),this.fileName=i.readData(this.fileNameLength),i.skip(e),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(c=function(u){for(var s in y)if(Object.prototype.hasOwnProperty.call(y,s)&&y[s].magic===u)return y[s];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,c,i.readData(this.compressedSize))},readCentralPart:function(i){this.versionMadeBy=i.readInt(2),i.skip(2),this.bitFlag=i.readInt(2),this.compressionMethod=i.readString(2),this.date=i.readDate(),this.crc32=i.readInt(4),this.compressedSize=i.readInt(4),this.uncompressedSize=i.readInt(4);var c=i.readInt(2);if(this.extraFieldsLength=i.readInt(2),this.fileCommentLength=i.readInt(2),this.diskNumberStart=i.readInt(2),this.internalFileAttributes=i.readInt(2),this.externalFileAttributes=i.readInt(4),this.localHeaderOffset=i.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");i.skip(c),this.readExtraFields(i),this.parseZIP64ExtraField(i),this.fileComment=i.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var i=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==i&&(this.dosPermissions=63&this.externalFileAttributes),3==i&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var i=l(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=i.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=i.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=i.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=i.readInt(4))}},readExtraFields:function(i){var c,e,u,s=i.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});i.index+4<s;)c=i.readInt(2),e=i.readInt(2),u=i.readData(e),this.extraFields[c]={id:c,length:e,value:u};i.setIndex(s)},handleUTF8:function(){var i=m.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=_.utf8decode(this.fileName),this.fileCommentStr=_.utf8decode(this.fileComment);else{var c=this.findExtraFieldUnicodePath();if(null!==c)this.fileNameStr=c;else{var e=o.transformTo(i,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(e)}var u=this.findExtraFieldUnicodeComment();if(null!==u)this.fileCommentStr=u;else{var s=o.transformTo(i,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var i=this.extraFields[28789];if(i){var c=l(i.value);return 1!==c.readInt(1)||h(this.fileName)!==c.readInt(4)?null:_.utf8decode(c.readData(i.length-5))}return null},findExtraFieldUnicodeComment:function(){var i=this.extraFields[25461];if(i){var c=l(i.value);return 1!==c.readInt(1)||h(this.fileComment)!==c.readInt(4)?null:_.utf8decode(c.readData(i.length-5))}return null}},U.exports=g},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(b,U,k){"use strict";function l(c,e,u){this.name=c,this.dir=u.dir,this.date=u.date,this.comment=u.comment,this.unixPermissions=u.unixPermissions,this.dosPermissions=u.dosPermissions,this._data=e,this._dataBinary=u.binary,this.options={compression:u.compression,compressionOptions:u.compressionOptions}}var o=b("./stream/StreamHelper"),n=b("./stream/DataWorker"),h=b("./utf8"),_=b("./compressedObject"),y=b("./stream/GenericWorker");l.prototype={internalStream:function(c){var e=null,u="string";try{if(!c)throw new Error("No output type specified.");var s="string"===(u=c.toLowerCase())||"text"===u;"binarystring"!==u&&"text"!==u||(u="string"),e=this._decompressWorker();var d=!this._dataBinary;d&&!s&&(e=e.pipe(new h.Utf8EncodeWorker)),!d&&s&&(e=e.pipe(new h.Utf8DecodeWorker))}catch(v){(e=new y("error")).error(v)}return new o(e,u,"")},async:function(c,e){return this.internalStream(c).accumulate(e)},nodeStream:function(c,e){return this.internalStream(c||"nodebuffer").toNodejsStream(e)},_compressWorker:function(c,e){if(this._data instanceof _&&this._data.compression.magic===c.magic)return this._data.getCompressedWorker();var u=this._decompressWorker();return this._dataBinary||(u=u.pipe(new h.Utf8EncodeWorker)),_.createWorkerFrom(u,c,e)},_decompressWorker:function(){return this._data instanceof _?this._data.getContentWorker():this._data instanceof y?this._data:new n(this._data)}};for(var m=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],g=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},i=0;i<m.length;i++)l.prototype[m[i]]=g;U.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(b,U,k){(function(l){"use strict";var o,n,h=l.MutationObserver||l.WebKitMutationObserver;if(h){var _=0,y=new h(c),m=l.document.createTextNode("");y.observe(m,{characterData:!0}),o=function(){m.data=_=++_%2}}else if(l.setImmediate||void 0===l.MessageChannel)o="document"in l&&"onreadystatechange"in l.document.createElement("script")?function(){var e=l.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},l.document.documentElement.appendChild(e)}:function(){setTimeout(c,0)};else{var g=new l.MessageChannel;g.port1.onmessage=c,o=function(){g.port2.postMessage(0)}}var i=[];function c(){var e,u;n=!0;for(var s=i.length;s;){for(u=i,i=[],e=-1;++e<s;)u[e]();s=i.length}n=!1}U.exports=function(e){1!==i.push(e)||n||o()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(b,U,k){"use strict";var l=b("immediate");function o(){}var n={},h=["REJECTED"],_=["FULFILLED"],y=["PENDING"];function m(s){if("function"!=typeof s)throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,s!==o&&e(this,s)}function g(s,d,v){this.promise=s,"function"==typeof d&&(this.onFulfilled=d,this.callFulfilled=this.otherCallFulfilled),"function"==typeof v&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function i(s,d,v){l(function(){var S;try{S=d(v)}catch(x){return n.reject(s,x)}S===s?n.reject(s,new TypeError("Cannot resolve promise with itself")):n.resolve(s,S)})}function c(s){var d=s&&s.then;if(s&&("object"==typeof s||"function"==typeof s)&&"function"==typeof d)return function(){d.apply(s,arguments)}}function e(s,d){var v=!1;function S(O){v||(v=!0,n.reject(s,O))}function x(O){v||(v=!0,n.resolve(s,O))}var D=u(function(){d(x,S)});"error"===D.status&&S(D.value)}function u(s,d){var v={};try{v.value=s(d),v.status="success"}catch(S){v.status="error",v.value=S}return v}(U.exports=m).prototype.finally=function(s){if("function"!=typeof s)return this;var d=this.constructor;return this.then(function(v){return d.resolve(s()).then(function(){return v})},function(v){return d.resolve(s()).then(function(){throw v})})},m.prototype.catch=function(s){return this.then(null,s)},m.prototype.then=function(s,d){if("function"!=typeof s&&this.state===_||"function"!=typeof d&&this.state===h)return this;var v=new this.constructor(o);return this.state!==y?i(v,this.state===_?s:d,this.outcome):this.queue.push(new g(v,s,d)),v},g.prototype.callFulfilled=function(s){n.resolve(this.promise,s)},g.prototype.otherCallFulfilled=function(s){i(this.promise,this.onFulfilled,s)},g.prototype.callRejected=function(s){n.reject(this.promise,s)},g.prototype.otherCallRejected=function(s){i(this.promise,this.onRejected,s)},n.resolve=function(s,d){var v=u(c,d);if("error"===v.status)return n.reject(s,v.value);var S=v.value;if(S)e(s,S);else{s.state=_,s.outcome=d;for(var x=-1,D=s.queue.length;++x<D;)s.queue[x].callFulfilled(d)}return s},n.reject=function(s,d){s.state=h,s.outcome=d;for(var v=-1,S=s.queue.length;++v<S;)s.queue[v].callRejected(d);return s},m.resolve=function(s){return s instanceof this?s:n.resolve(new this(o),s)},m.reject=function(s){var d=new this(o);return n.reject(d,s)},m.all=function(s){var d=this;if("[object Array]"!==Object.prototype.toString.call(s))return this.reject(new TypeError("must be an array"));var v=s.length,S=!1;if(!v)return this.resolve([]);for(var x=new Array(v),D=0,O=-1,L=new this(o);++O<v;)I(s[O],O);return L;function I(M,V){d.resolve(M).then(function(p){x[V]=p,++D!==v||S||(S=!0,n.resolve(L,x))},function(p){S||(S=!0,n.reject(L,p))})}},m.race=function(s){if("[object Array]"!==Object.prototype.toString.call(s))return this.reject(new TypeError("must be an array"));var v=s.length,S=!1;if(!v)return this.resolve([]);for(var x=-1,D=new this(o);++x<v;)this.resolve(s[x]).then(function(L){S||(S=!0,n.resolve(D,L))},function(L){S||(S=!0,n.reject(D,L))});return D}},{immediate:36}],38:[function(b,U,k){"use strict";var l={};(0,b("./lib/utils/common").assign)(l,b("./lib/deflate"),b("./lib/inflate"),b("./lib/zlib/constants")),U.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(b,U,k){"use strict";var l=b("./zlib/deflate"),o=b("./utils/common"),n=b("./utils/strings"),h=b("./zlib/messages"),_=b("./zlib/zstream"),y=Object.prototype.toString;function e(s){if(!(this instanceof e))return new e(s);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},s||{});var d=this.options;d.raw&&0<d.windowBits?d.windowBits=-d.windowBits:d.gzip&&0<d.windowBits&&d.windowBits<16&&(d.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _,this.strm.avail_out=0;var v=l.deflateInit2(this.strm,d.level,d.method,d.windowBits,d.memLevel,d.strategy);if(0!==v)throw new Error(h[v]);if(d.header&&l.deflateSetHeader(this.strm,d.header),d.dictionary){var S;if(S="string"==typeof d.dictionary?n.string2buf(d.dictionary):"[object ArrayBuffer]"===y.call(d.dictionary)?new Uint8Array(d.dictionary):d.dictionary,0!==(v=l.deflateSetDictionary(this.strm,S)))throw new Error(h[v]);this._dict_set=!0}}function u(s,d){var v=new e(d);if(v.push(s,!0),v.err)throw v.msg||h[v.err];return v.result}e.prototype.push=function(s,d){var v,S,x=this.strm,D=this.options.chunkSize;if(this.ended)return!1;S=d===~~d?d:!0===d?4:0,x.input="string"==typeof s?n.string2buf(s):"[object ArrayBuffer]"===y.call(s)?new Uint8Array(s):s,x.next_in=0,x.avail_in=x.input.length;do{if(0===x.avail_out&&(x.output=new o.Buf8(D),x.next_out=0,x.avail_out=D),1!==(v=l.deflate(x,S))&&0!==v)return this.onEnd(v),!(this.ended=!0);0!==x.avail_out&&(0!==x.avail_in||4!==S&&2!==S)||this.onData("string"===this.options.to?n.buf2binstring(o.shrinkBuf(x.output,x.next_out)):o.shrinkBuf(x.output,x.next_out))}while((0<x.avail_in||0===x.avail_out)&&1!==v);return 4===S?(v=l.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,0===v):2!==S||(this.onEnd(0),!(x.avail_out=0))},e.prototype.onData=function(s){this.chunks.push(s)},e.prototype.onEnd=function(s){0===s&&(this.result="string"===this.options.to?this.chunks.join(""):o.flattenChunks(this.chunks)),this.chunks=[],this.err=s,this.msg=this.strm.msg},k.Deflate=e,k.deflate=u,k.deflateRaw=function(s,d){return(d=d||{}).raw=!0,u(s,d)},k.gzip=function(s,d){return(d=d||{}).gzip=!0,u(s,d)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(b,U,k){"use strict";var l=b("./zlib/inflate"),o=b("./utils/common"),n=b("./utils/strings"),h=b("./zlib/constants"),_=b("./zlib/messages"),y=b("./zlib/zstream"),m=b("./zlib/gzheader"),g=Object.prototype.toString;function i(e){if(!(this instanceof i))return new i(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var u=this.options;u.raw&&0<=u.windowBits&&u.windowBits<16&&(u.windowBits=-u.windowBits,0===u.windowBits&&(u.windowBits=-15)),!(0<=u.windowBits&&u.windowBits<16)||e&&e.windowBits||(u.windowBits+=32),15<u.windowBits&&u.windowBits<48&&!(15&u.windowBits)&&(u.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var s=l.inflateInit2(this.strm,u.windowBits);if(s!==h.Z_OK)throw new Error(_[s]);this.header=new m,l.inflateGetHeader(this.strm,this.header)}function c(e,u){var s=new i(u);if(s.push(e,!0),s.err)throw s.msg||_[s.err];return s.result}i.prototype.push=function(e,u){var s,d,v,S,x,D,O=this.strm,L=this.options.chunkSize,I=this.options.dictionary,M=!1;if(this.ended)return!1;d=u===~~u?u:!0===u?h.Z_FINISH:h.Z_NO_FLUSH,O.input="string"==typeof e?n.binstring2buf(e):"[object ArrayBuffer]"===g.call(e)?new Uint8Array(e):e,O.next_in=0,O.avail_in=O.input.length;do{if(0===O.avail_out&&(O.output=new o.Buf8(L),O.next_out=0,O.avail_out=L),(s=l.inflate(O,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&I&&(D="string"==typeof I?n.string2buf(I):"[object ArrayBuffer]"===g.call(I)?new Uint8Array(I):I,s=l.inflateSetDictionary(this.strm,D)),s===h.Z_BUF_ERROR&&!0===M&&(s=h.Z_OK,M=!1),s!==h.Z_STREAM_END&&s!==h.Z_OK)return this.onEnd(s),!(this.ended=!0);O.next_out&&(0!==O.avail_out&&s!==h.Z_STREAM_END&&(0!==O.avail_in||d!==h.Z_FINISH&&d!==h.Z_SYNC_FLUSH)||("string"===this.options.to?(v=n.utf8border(O.output,O.next_out),S=O.next_out-v,x=n.buf2string(O.output,v),O.next_out=S,O.avail_out=L-S,S&&o.arraySet(O.output,O.output,v,S,0),this.onData(x)):this.onData(o.shrinkBuf(O.output,O.next_out)))),0===O.avail_in&&0===O.avail_out&&(M=!0)}while((0<O.avail_in||0===O.avail_out)&&s!==h.Z_STREAM_END);return s===h.Z_STREAM_END&&(d=h.Z_FINISH),d===h.Z_FINISH?(s=l.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===h.Z_OK):d!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(O.avail_out=0))},i.prototype.onData=function(e){this.chunks.push(e)},i.prototype.onEnd=function(e){e===h.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},k.Inflate=i,k.inflate=c,k.inflateRaw=function(e,u){return(u=u||{}).raw=!0,c(e,u)},k.ungzip=c},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(b,U,k){"use strict";var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";k.assign=function(h){for(var _=Array.prototype.slice.call(arguments,1);_.length;){var y=_.shift();if(y){if("object"!=typeof y)throw new TypeError(y+"must be non-object");for(var m in y)y.hasOwnProperty(m)&&(h[m]=y[m])}}return h},k.shrinkBuf=function(h,_){return h.length===_?h:h.subarray?h.subarray(0,_):(h.length=_,h)};var o={arraySet:function(h,_,y,m,g){if(_.subarray&&h.subarray)h.set(_.subarray(y,y+m),g);else for(var i=0;i<m;i++)h[g+i]=_[y+i]},flattenChunks:function(h){var _,y,m,g,i,c;for(_=m=0,y=h.length;_<y;_++)m+=h[_].length;for(c=new Uint8Array(m),_=g=0,y=h.length;_<y;_++)c.set(i=h[_],g),g+=i.length;return c}},n={arraySet:function(h,_,y,m,g){for(var i=0;i<m;i++)h[g+i]=_[y+i]},flattenChunks:function(h){return[].concat.apply([],h)}};k.setTyped=function(h){h?(k.Buf8=Uint8Array,k.Buf16=Uint16Array,k.Buf32=Int32Array,k.assign(k,o)):(k.Buf8=Array,k.Buf16=Array,k.Buf32=Array,k.assign(k,n))},k.setTyped(l)},{}],42:[function(b,U,k){"use strict";var l=b("./common"),o=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var h=new l.Buf8(256),_=0;_<256;_++)h[_]=252<=_?6:248<=_?5:240<=_?4:224<=_?3:192<=_?2:1;function y(m,g){if(g<65537&&(m.subarray&&n||!m.subarray&&o))return String.fromCharCode.apply(null,l.shrinkBuf(m,g));for(var i="",c=0;c<g;c++)i+=String.fromCharCode(m[c]);return i}h[254]=h[254]=1,k.string2buf=function(m){var g,i,c,e,u,s=m.length,d=0;for(e=0;e<s;e++)55296==(64512&(i=m.charCodeAt(e)))&&e+1<s&&56320==(64512&(c=m.charCodeAt(e+1)))&&(i=65536+(i-55296<<10)+(c-56320),e++),d+=i<128?1:i<2048?2:i<65536?3:4;for(g=new l.Buf8(d),e=u=0;u<d;e++)55296==(64512&(i=m.charCodeAt(e)))&&e+1<s&&56320==(64512&(c=m.charCodeAt(e+1)))&&(i=65536+(i-55296<<10)+(c-56320),e++),i<128?g[u++]=i:(i<2048?g[u++]=192|i>>>6:(i<65536?g[u++]=224|i>>>12:(g[u++]=240|i>>>18,g[u++]=128|i>>>12&63),g[u++]=128|i>>>6&63),g[u++]=128|63&i);return g},k.buf2binstring=function(m){return y(m,m.length)},k.binstring2buf=function(m){for(var g=new l.Buf8(m.length),i=0,c=g.length;i<c;i++)g[i]=m.charCodeAt(i);return g},k.buf2string=function(m,g){var i,c,e,u,s=g||m.length,d=new Array(2*s);for(i=c=0;i<s;)if((e=m[i++])<128)d[c++]=e;else if(4<(u=h[e]))d[c++]=65533,i+=u-1;else{for(e&=2===u?31:3===u?15:7;1<u&&i<s;)e=e<<6|63&m[i++],u--;1<u?d[c++]=65533:e<65536?d[c++]=e:(d[c++]=55296|(e-=65536)>>10&1023,d[c++]=56320|1023&e)}return y(d,c)},k.utf8border=function(m,g){var i;for((g=g||m.length)>m.length&&(g=m.length),i=g-1;0<=i&&128==(192&m[i]);)i--;return i<0||0===i?g:i+h[m[i]]>g?i:g}},{"./common":41}],43:[function(b,U,k){"use strict";U.exports=function(l,o,n,h){for(var _=65535&l,y=l>>>16&65535,m=0;0!==n;){for(n-=m=2e3<n?2e3:n;y=y+(_=_+o[h++]|0)|0,--m;);_%=65521,y%=65521}return _|y<<16}},{}],44:[function(b,U,k){"use strict";U.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(b,U,k){"use strict";var l=function(){for(var o,n=[],h=0;h<256;h++){o=h;for(var _=0;_<8;_++)o=1&o?3988292384^o>>>1:o>>>1;n[h]=o}return n}();U.exports=function(o,n,h,_){var y=l,m=_+h;o^=-1;for(var g=_;g<m;g++)o=o>>>8^y[255&(o^n[g])];return-1^o}},{}],46:[function(b,U,k){"use strict";var l,o=b("../utils/common"),n=b("./trees"),h=b("./adler32"),_=b("./crc32"),y=b("./messages"),c=-2,M=258,V=262,B=113;function $(t,R){return t.msg=y[R],R}function j(t){return(t<<1)-(4<t?9:0)}function q(t){for(var R=t.length;0<=--R;)t[R]=0}function E(t){var R=t.state,A=R.pending;A>t.avail_out&&(A=t.avail_out),0!==A&&(o.arraySet(t.output,R.pending_buf,R.pending_out,A,t.next_out),t.next_out+=A,R.pending_out+=A,t.total_out+=A,t.avail_out-=A,R.pending-=A,0===R.pending&&(R.pending_out=0))}function C(t,R){n._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,R),t.block_start=t.strstart,E(t.strm)}function X(t,R){t.pending_buf[t.pending++]=R}function G(t,R){t.pending_buf[t.pending++]=R>>>8&255,t.pending_buf[t.pending++]=255&R}function H(t,R){var A,f,a=t.max_chain_length,w=t.strstart,F=t.prev_length,N=t.nice_match,z=t.strstart>t.w_size-V?t.strstart-(t.w_size-V):0,Z=t.window,K=t.w_mask,W=t.prev,Y=t.strstart+M,et=Z[w+F-1],tt=Z[w+F];t.prev_length>=t.good_match&&(a>>=2),N>t.lookahead&&(N=t.lookahead);do{if(Z[(A=R)+F]===tt&&Z[A+F-1]===et&&Z[A]===Z[w]&&Z[++A]===Z[w+1]){w+=2,A++;do{}while(Z[++w]===Z[++A]&&Z[++w]===Z[++A]&&Z[++w]===Z[++A]&&Z[++w]===Z[++A]&&Z[++w]===Z[++A]&&Z[++w]===Z[++A]&&Z[++w]===Z[++A]&&Z[++w]===Z[++A]&&w<Y);if(f=M-(Y-w),w=Y-M,F<f){if(t.match_start=R,N<=(F=f))break;et=Z[w+F-1],tt=Z[w+F]}}}while((R=W[R&K])>z&&0!=--a);return F<=t.lookahead?F:t.lookahead}function nt(t){var R,A,f,a,w,F,N,z,Z,K,W=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=W+(W-V)){for(o.arraySet(t.window,t.window,W,W,0),t.match_start-=W,t.strstart-=W,t.block_start-=W,R=A=t.hash_size;f=t.head[--R],t.head[R]=W<=f?f-W:0,--A;);for(R=A=W;f=t.prev[--R],t.prev[R]=W<=f?f-W:0,--A;);a+=W}if(0===t.strm.avail_in)break;if(N=t.window,z=t.strstart+t.lookahead,K=void 0,(Z=a)<(K=(F=t.strm).avail_in)&&(K=Z),A=0===K?0:(F.avail_in-=K,o.arraySet(N,F.input,F.next_in,K,z),1===F.state.wrap?F.adler=h(F.adler,N,K,z):2===F.state.wrap&&(F.adler=_(F.adler,N,K,z)),F.next_in+=K,F.total_in+=K,K),t.lookahead+=A,t.lookahead+t.insert>=3)for(t.ins_h=t.window[w=t.strstart-t.insert],t.ins_h=(t.ins_h<<t.hash_shift^t.window[w+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[w+3-1])&t.hash_mask,t.prev[w&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=w,w++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<V&&0!==t.strm.avail_in)}function ot(t,R){for(var A,f;;){if(t.lookahead<V){if(nt(t),t.lookahead<V&&0===R)return 1;if(0===t.lookahead)break}if(A=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==A&&t.strstart-A<=t.w_size-V&&(t.match_length=H(t,A)),t.match_length>=3)if(f=n._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else f=n._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(f&&(C(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===R?(C(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(C(t,!1),0===t.strm.avail_out)?1:2}function Q(t,R){for(var A,f,a;;){if(t.lookahead<V){if(nt(t),t.lookahead<V&&0===R)return 1;if(0===t.lookahead)break}if(A=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==A&&t.prev_length<t.max_lazy_match&&t.strstart-A<=t.w_size-V&&(t.match_length=H(t,A),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(a=t.strstart+t.lookahead-3,f=n._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=a&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,f&&(C(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((f=n._tr_tally(t,0,t.window[t.strstart-1]))&&C(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(f=n._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===R?(C(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(C(t,!1),0===t.strm.avail_out)?1:2}function rt(t,R,A,f,a){this.good_length=t,this.max_lazy=R,this.nice_length=A,this.max_chain=f,this.func=a}function at(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(1146),this.dyn_dtree=new o.Buf16(122),this.bl_tree=new o.Buf16(78),q(this.dyn_ltree),q(this.dyn_dtree),q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(16),this.heap=new o.Buf16(573),q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(573),q(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function it(t){var R;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(R=t.state).pending=0,R.pending_out=0,R.wrap<0&&(R.wrap=-R.wrap),R.status=R.wrap?42:B,t.adler=2===R.wrap?0:1,R.last_flush=0,n._tr_init(R),0):$(t,c)}function lt(t){var A,R=it(t);return 0===R&&((A=t.state).window_size=2*A.w_size,q(A.head),A.max_lazy_match=l[A.level].max_lazy,A.good_match=l[A.level].good_length,A.nice_match=l[A.level].nice_length,A.max_chain_length=l[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=2,A.match_available=0,A.ins_h=0),R}function ut(t,R,A,f,a,w){if(!t)return c;var F=1;if(-1===R&&(R=6),f<0?(F=0,f=-f):15<f&&(F=2,f-=16),a<1||9<a||8!==A||f<8||15<f||R<0||9<R||w<0||4<w)return $(t,c);8===f&&(f=9);var N=new at;return(t.state=N).strm=t,N.wrap=F,N.gzhead=null,N.w_bits=f,N.w_size=1<<N.w_bits,N.w_mask=N.w_size-1,N.hash_bits=a+7,N.hash_size=1<<N.hash_bits,N.hash_mask=N.hash_size-1,N.hash_shift=~~((N.hash_bits+3-1)/3),N.window=new o.Buf8(2*N.w_size),N.head=new o.Buf16(N.hash_size),N.prev=new o.Buf16(N.w_size),N.lit_bufsize=1<<a+6,N.pending_buf_size=4*N.lit_bufsize,N.pending_buf=new o.Buf8(N.pending_buf_size),N.d_buf=1*N.lit_bufsize,N.l_buf=3*N.lit_bufsize,N.level=R,N.strategy=w,N.method=A,lt(t)}l=[new rt(0,0,0,0,function(t,R){var A=65535;for(A>t.pending_buf_size-5&&(A=t.pending_buf_size-5);;){if(t.lookahead<=1){if(nt(t),0===t.lookahead&&0===R)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var f=t.block_start+A;if((0===t.strstart||t.strstart>=f)&&(t.lookahead=t.strstart-f,t.strstart=f,C(t,!1),0===t.strm.avail_out)||t.strstart-t.block_start>=t.w_size-V&&(C(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===R?(C(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&C(t,!1),1)}),new rt(4,4,8,4,ot),new rt(4,5,16,8,ot),new rt(4,6,32,32,ot),new rt(4,4,16,16,Q),new rt(8,16,32,32,Q),new rt(8,16,128,128,Q),new rt(8,32,128,256,Q),new rt(32,128,258,1024,Q),new rt(32,258,258,4096,Q)],k.deflateInit=function(t,R){return ut(t,R,8,15,8,0)},k.deflateInit2=ut,k.deflateReset=lt,k.deflateResetKeep=it,k.deflateSetHeader=function(t,R){return t&&t.state?2!==t.state.wrap?c:(t.state.gzhead=R,0):c},k.deflate=function(t,R){var A,f,a,w;if(!t||!t.state||5<R||R<0)return t?$(t,c):c;if(f=t.state,!t.output||!t.input&&0!==t.avail_in||666===f.status&&4!==R)return $(t,0===t.avail_out?-5:c);if(f.strm=t,A=f.last_flush,f.last_flush=R,42===f.status)if(2===f.wrap)t.adler=0,X(f,31),X(f,139),X(f,8),f.gzhead?(X(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),X(f,255&f.gzhead.time),X(f,f.gzhead.time>>8&255),X(f,f.gzhead.time>>16&255),X(f,f.gzhead.time>>24&255),X(f,9===f.level?2:2<=f.strategy||f.level<2?4:0),X(f,255&f.gzhead.os),f.gzhead.extra&&f.gzhead.extra.length&&(X(f,255&f.gzhead.extra.length),X(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(t.adler=_(t.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):(X(f,0),X(f,0),X(f,0),X(f,0),X(f,0),X(f,9===f.level?2:2<=f.strategy||f.level<2?4:0),X(f,3),f.status=B);else{var F=8+(f.w_bits-8<<4)<<8;F|=(2<=f.strategy||f.level<2?0:f.level<6?1:6===f.level?2:3)<<6,0!==f.strstart&&(F|=32),F+=31-F%31,f.status=B,G(f,F),0!==f.strstart&&(G(f,t.adler>>>16),G(f,65535&t.adler)),t.adler=1}if(69===f.status)if(f.gzhead.extra){for(a=f.pending;f.gzindex<(65535&f.gzhead.extra.length)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>a&&(t.adler=_(t.adler,f.pending_buf,f.pending-a,a)),E(t),a=f.pending,f.pending!==f.pending_buf_size));)X(f,255&f.gzhead.extra[f.gzindex]),f.gzindex++;f.gzhead.hcrc&&f.pending>a&&(t.adler=_(t.adler,f.pending_buf,f.pending-a,a)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=73)}else f.status=73;if(73===f.status)if(f.gzhead.name){a=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>a&&(t.adler=_(t.adler,f.pending_buf,f.pending-a,a)),E(t),a=f.pending,f.pending===f.pending_buf_size)){w=1;break}w=f.gzindex<f.gzhead.name.length?255&f.gzhead.name.charCodeAt(f.gzindex++):0,X(f,w)}while(0!==w);f.gzhead.hcrc&&f.pending>a&&(t.adler=_(t.adler,f.pending_buf,f.pending-a,a)),0===w&&(f.gzindex=0,f.status=91)}else f.status=91;if(91===f.status)if(f.gzhead.comment){a=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>a&&(t.adler=_(t.adler,f.pending_buf,f.pending-a,a)),E(t),a=f.pending,f.pending===f.pending_buf_size)){w=1;break}w=f.gzindex<f.gzhead.comment.length?255&f.gzhead.comment.charCodeAt(f.gzindex++):0,X(f,w)}while(0!==w);f.gzhead.hcrc&&f.pending>a&&(t.adler=_(t.adler,f.pending_buf,f.pending-a,a)),0===w&&(f.status=103)}else f.status=103;if(103===f.status&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&E(t),f.pending+2<=f.pending_buf_size&&(X(f,255&t.adler),X(f,t.adler>>8&255),t.adler=0,f.status=B)):f.status=B),0!==f.pending){if(E(t),0===t.avail_out)return f.last_flush=-1,0}else if(0===t.avail_in&&j(R)<=j(A)&&4!==R)return $(t,-5);if(666===f.status&&0!==t.avail_in)return $(t,-5);if(0!==t.avail_in||0!==f.lookahead||0!==R&&666!==f.status){var N=2===f.strategy?function(z,Z){for(var K;;){if(0===z.lookahead&&(nt(z),0===z.lookahead)){if(0===Z)return 1;break}if(z.match_length=0,K=n._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,K&&(C(z,!1),0===z.strm.avail_out))return 1}return z.insert=0,4===Z?(C(z,!0),0===z.strm.avail_out?3:4):z.last_lit&&(C(z,!1),0===z.strm.avail_out)?1:2}(f,R):3===f.strategy?function(z,Z){for(var K,W,Y,et,tt=z.window;;){if(z.lookahead<=M){if(nt(z),z.lookahead<=M&&0===Z)return 1;if(0===z.lookahead)break}if(z.match_length=0,z.lookahead>=3&&0<z.strstart&&(W=tt[Y=z.strstart-1])===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]){et=z.strstart+M;do{}while(W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&Y<et);z.match_length=M-(et-Y),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=3?(K=n._tr_tally(z,1,z.match_length-3),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(K=n._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),K&&(C(z,!1),0===z.strm.avail_out))return 1}return z.insert=0,4===Z?(C(z,!0),0===z.strm.avail_out?3:4):z.last_lit&&(C(z,!1),0===z.strm.avail_out)?1:2}(f,R):l[f.level].func(f,R);if(3!==N&&4!==N||(f.status=666),1===N||3===N)return 0===t.avail_out&&(f.last_flush=-1),0;if(2===N&&(1===R?n._tr_align(f):5!==R&&(n._tr_stored_block(f,0,0,!1),3===R&&(q(f.head),0===f.lookahead&&(f.strstart=0,f.block_start=0,f.insert=0))),E(t),0===t.avail_out))return f.last_flush=-1,0}return 4!==R?0:f.wrap<=0?1:(2===f.wrap?(X(f,255&t.adler),X(f,t.adler>>8&255),X(f,t.adler>>16&255),X(f,t.adler>>24&255),X(f,255&t.total_in),X(f,t.total_in>>8&255),X(f,t.total_in>>16&255),X(f,t.total_in>>24&255)):(G(f,t.adler>>>16),G(f,65535&t.adler)),E(t),0<f.wrap&&(f.wrap=-f.wrap),0!==f.pending?0:1)},k.deflateEnd=function(t){var R;return t&&t.state?42!==(R=t.state.status)&&69!==R&&73!==R&&91!==R&&103!==R&&R!==B&&666!==R?$(t,c):(t.state=null,R===B?$(t,-3):0):c},k.deflateSetDictionary=function(t,R){var A,f,a,w,F,N,z,Z,K=R.length;if(!t||!t.state||2===(w=(A=t.state).wrap)||1===w&&42!==A.status||A.lookahead)return c;for(1===w&&(t.adler=h(t.adler,R,K,0)),A.wrap=0,K>=A.w_size&&(0===w&&(q(A.head),A.strstart=0,A.block_start=0,A.insert=0),Z=new o.Buf8(A.w_size),o.arraySet(Z,R,K-A.w_size,A.w_size,0),R=Z,K=A.w_size),F=t.avail_in,N=t.next_in,z=t.input,t.avail_in=K,t.next_in=0,t.input=R,nt(A);A.lookahead>=3;){for(f=A.strstart,a=A.lookahead-2;A.ins_h=(A.ins_h<<A.hash_shift^A.window[f+3-1])&A.hash_mask,A.prev[f&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=f,f++,--a;);A.strstart=f,A.lookahead=2,nt(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=2,A.match_available=0,t.next_in=N,t.input=z,t.avail_in=F,A.wrap=w,0},k.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(b,U,k){"use strict";U.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(b,U,k){"use strict";U.exports=function(l,o){var n,h,_,y,m,g,i,c,e,u,s,d,v,S,x,D,O,L,I,M,V,p,B,r,T;r=l.input,_=(h=l.next_in)+(l.avail_in-5),T=l.output,m=(y=l.next_out)-(o-l.avail_out),g=y+(l.avail_out-257),i=(n=l.state).dmax,c=n.wsize,e=n.whave,u=n.wnext,s=n.window,d=n.hold,v=n.bits,S=n.lencode,x=n.distcode,D=(1<<n.lenbits)-1,O=(1<<n.distbits)-1;t:do{v<15&&(d+=r[h++]<<v,d+=r[h++]<<(v+=8),v+=8),L=S[d&D];r:for(;;){if(d>>>=I=L>>>24,v-=I,0==(I=L>>>16&255))T[y++]=65535&L;else{if(!(16&I)){if(!(64&I)){L=S[(65535&L)+(d&(1<<I)-1)];continue r}if(32&I){n.mode=12;break t}l.msg="invalid literal/length code",n.mode=30;break t}M=65535&L,(I&=15)&&(v<I&&(d+=r[h++]<<v,v+=8),M+=d&(1<<I)-1,d>>>=I,v-=I),v<15&&(d+=r[h++]<<v,d+=r[h++]<<(v+=8),v+=8),L=x[d&O];e:for(;;){if(d>>>=I=L>>>24,v-=I,!(16&(I=L>>>16&255))){if(!(64&I)){L=x[(65535&L)+(d&(1<<I)-1)];continue e}l.msg="invalid distance code",n.mode=30;break t}if(V=65535&L,v<(I&=15)&&(d+=r[h++]<<v,(v+=8)<I&&(d+=r[h++]<<v,v+=8)),i<(V+=d&(1<<I)-1)){l.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=I,v-=I,(I=y-m)<V){if(e<(I=V-I)&&n.sane){l.msg="invalid distance too far back",n.mode=30;break t}if(B=s,(p=0)===u){if(p+=c-I,I<M){for(M-=I;T[y++]=s[p++],--I;);p=y-V,B=T}}else if(u<I){if(p+=c+u-I,(I-=u)<M){for(M-=I;T[y++]=s[p++],--I;);if(p=0,u<M){for(M-=I=u;T[y++]=s[p++],--I;);p=y-V,B=T}}}else if(p+=u-I,I<M){for(M-=I;T[y++]=s[p++],--I;);p=y-V,B=T}for(;2<M;)T[y++]=B[p++],T[y++]=B[p++],T[y++]=B[p++],M-=3;M&&(T[y++]=B[p++],1<M&&(T[y++]=B[p++]))}else{for(p=y-V;T[y++]=T[p++],T[y++]=T[p++],T[y++]=T[p++],2<(M-=3););M&&(T[y++]=T[p++],1<M&&(T[y++]=T[p++]))}break}}break}}while(h<_&&y<g);h-=M=v>>3,d&=(1<<(v-=M<<3))-1,l.next_in=h,l.next_out=y,l.avail_in=h<_?_-h+5:5-(h-_),l.avail_out=y<g?g-y+257:257-(y-g),n.hold=d,n.bits=v}},{}],49:[function(b,U,k){"use strict";var l=b("../utils/common"),o=b("./adler32"),n=b("./crc32"),h=b("./inffast"),_=b("./inftrees"),i=-2;function s(p){return(p>>>24&255)+(p>>>8&65280)+((65280&p)<<8)+((255&p)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new l.Buf16(320),this.work=new l.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(p){var B;return p&&p.state?(p.total_in=p.total_out=(B=p.state).total=0,p.msg="",B.wrap&&(p.adler=1&B.wrap),B.mode=1,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new l.Buf32(852),B.distcode=B.distdyn=new l.Buf32(592),B.sane=1,B.back=-1,0):i}function S(p){var B;return p&&p.state?((B=p.state).wsize=0,B.whave=0,B.wnext=0,v(p)):i}function x(p,B){var r,T;return p&&p.state?(T=p.state,B<0?(r=0,B=-B):(r=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?i:(null!==T.window&&T.wbits!==B&&(T.window=null),T.wrap=r,T.wbits=B,S(p))):i}function D(p,B){var r,T;return p?(T=new d,(p.state=T).window=null,0!==(r=x(p,B))&&(p.state=null),r):i}var O,L,I=!0;function M(p){if(I){var B;for(O=new l.Buf32(512),L=new l.Buf32(32),B=0;B<144;)p.lens[B++]=8;for(;B<256;)p.lens[B++]=9;for(;B<280;)p.lens[B++]=7;for(;B<288;)p.lens[B++]=8;for(_(1,p.lens,0,288,O,0,p.work,{bits:9}),B=0;B<32;)p.lens[B++]=5;_(2,p.lens,0,32,L,0,p.work,{bits:5}),I=!1}p.lencode=O,p.lenbits=9,p.distcode=L,p.distbits=5}function V(p,B,r,T){var J,P=p.state;return null===P.window&&(P.wsize=1<<P.wbits,P.wnext=0,P.whave=0,P.window=new l.Buf8(P.wsize)),T>=P.wsize?(l.arraySet(P.window,B,r-P.wsize,P.wsize,0),P.wnext=0,P.whave=P.wsize):(T<(J=P.wsize-P.wnext)&&(J=T),l.arraySet(P.window,B,r-T,J,P.wnext),(T-=J)?(l.arraySet(P.window,B,r-T,T,0),P.wnext=T,P.whave=P.wsize):(P.wnext+=J,P.wnext===P.wsize&&(P.wnext=0),P.whave<P.wsize&&(P.whave+=J))),0}k.inflateReset=S,k.inflateReset2=x,k.inflateResetKeep=v,k.inflateInit=function(p){return D(p,15)},k.inflateInit2=D,k.inflate=function(p,B){var r,T,J,P,$,j,q,E,C,X,G,H,nt,ot,Q,rt,at,it,lt,ut,t,R,A,f,a=0,w=new l.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!p||!p.state||!p.output||!p.input&&0!==p.avail_in)return i;12===(r=p.state).mode&&(r.mode=13),$=p.next_out,J=p.output,P=p.next_in,T=p.input,E=r.hold,C=r.bits,X=j=p.avail_in,G=q=p.avail_out,R=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;C<16;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}if(2&r.wrap&&35615===E){w[r.check=0]=255&E,w[1]=E>>>8&255,r.check=n(r.check,w,2,0),C=E=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&E)<<8)+(E>>8))%31){p.msg="incorrect header check",r.mode=30;break}if(8!=(15&E)){p.msg="unknown compression method",r.mode=30;break}if(C-=4,t=8+(15&(E>>>=4)),0===r.wbits)r.wbits=t;else if(t>r.wbits){p.msg="invalid window size",r.mode=30;break}r.dmax=1<<t,p.adler=r.check=1,r.mode=512&E?10:12,C=E=0;break;case 2:for(;C<16;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}if(r.flags=E,8!=(255&r.flags)){p.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){p.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=E>>8&1),512&r.flags&&(w[0]=255&E,w[1]=E>>>8&255,r.check=n(r.check,w,2,0)),C=E=0,r.mode=3;case 3:for(;C<32;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}r.head&&(r.head.time=E),512&r.flags&&(w[0]=255&E,w[1]=E>>>8&255,w[2]=E>>>16&255,w[3]=E>>>24&255,r.check=n(r.check,w,4,0)),C=E=0,r.mode=4;case 4:for(;C<16;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}r.head&&(r.head.xflags=255&E,r.head.os=E>>8),512&r.flags&&(w[0]=255&E,w[1]=E>>>8&255,r.check=n(r.check,w,2,0)),C=E=0,r.mode=5;case 5:if(1024&r.flags){for(;C<16;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}r.length=E,r.head&&(r.head.extra_len=E),512&r.flags&&(w[0]=255&E,w[1]=E>>>8&255,r.check=n(r.check,w,2,0)),C=E=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(j<(H=r.length)&&(H=j),H&&(r.head&&(t=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),l.arraySet(r.head.extra,T,P,H,t)),512&r.flags&&(r.check=n(r.check,T,H,P)),j-=H,P+=H,r.length-=H),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===j)break t;for(H=0;t=T[P+H++],r.head&&t&&r.length<65536&&(r.head.name+=String.fromCharCode(t)),t&&H<j;);if(512&r.flags&&(r.check=n(r.check,T,H,P)),j-=H,P+=H,t)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===j)break t;for(H=0;t=T[P+H++],r.head&&t&&r.length<65536&&(r.head.comment+=String.fromCharCode(t)),t&&H<j;);if(512&r.flags&&(r.check=n(r.check,T,H,P)),j-=H,P+=H,t)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;C<16;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}if(E!==(65535&r.check)){p.msg="header crc mismatch",r.mode=30;break}C=E=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),p.adler=r.check=0,r.mode=12;break;case 10:for(;C<32;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}p.adler=r.check=s(E),C=E=0,r.mode=11;case 11:if(0===r.havedict)return p.next_out=$,p.avail_out=q,p.next_in=P,p.avail_in=j,r.hold=E,r.bits=C,2;p.adler=r.check=1,r.mode=12;case 12:if(5===B||6===B)break t;case 13:if(r.last){E>>>=7&C,C-=7&C,r.mode=27;break}for(;C<3;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}switch(r.last=1&E,C-=1,3&(E>>>=1)){case 0:r.mode=14;break;case 1:if(M(r),r.mode=20,6!==B)break;E>>>=2,C-=2;break t;case 2:r.mode=17;break;case 3:p.msg="invalid block type",r.mode=30}E>>>=2,C-=2;break;case 14:for(E>>>=7&C,C-=7&C;C<32;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}if((65535&E)!=(E>>>16^65535)){p.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&E,C=E=0,r.mode=15,6===B)break t;case 15:r.mode=16;case 16:if(H=r.length){if(j<H&&(H=j),q<H&&(H=q),0===H)break t;l.arraySet(J,T,P,H,$),j-=H,P+=H,q-=H,$+=H,r.length-=H;break}r.mode=12;break;case 17:for(;C<14;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}if(r.nlen=257+(31&E),C-=5,r.ndist=1+(31&(E>>>=5)),C-=5,r.ncode=4+(15&(E>>>=5)),E>>>=4,C-=4,286<r.nlen||30<r.ndist){p.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;C<3;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}r.lens[F[r.have++]]=7&E,E>>>=3,C-=3}for(;r.have<19;)r.lens[F[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R=_(0,r.lens,0,19,r.lencode,0,r.work,A={bits:r.lenbits}),r.lenbits=A.bits,R){p.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;rt=(a=r.lencode[E&(1<<r.lenbits)-1])>>>16&255,at=65535&a,!((Q=a>>>24)<=C);){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}if(at<16)E>>>=Q,C-=Q,r.lens[r.have++]=at;else{if(16===at){for(f=Q+2;C<f;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}if(E>>>=Q,C-=Q,0===r.have){p.msg="invalid bit length repeat",r.mode=30;break}t=r.lens[r.have-1],H=3+(3&E),E>>>=2,C-=2}else if(17===at){for(f=Q+3;C<f;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}C-=Q,t=0,H=3+(7&(E>>>=Q)),E>>>=3,C-=3}else{for(f=Q+7;C<f;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}C-=Q,t=0,H=11+(127&(E>>>=Q)),E>>>=7,C-=7}if(r.have+H>r.nlen+r.ndist){p.msg="invalid bit length repeat",r.mode=30;break}for(;H--;)r.lens[r.have++]=t}}if(30===r.mode)break;if(0===r.lens[256]){p.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,R=_(1,r.lens,0,r.nlen,r.lencode,0,r.work,A={bits:r.lenbits}),r.lenbits=A.bits,R){p.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,R=_(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,A={bits:r.distbits}),r.distbits=A.bits,R){p.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===B)break t;case 20:r.mode=21;case 21:if(6<=j&&258<=q){p.next_out=$,p.avail_out=q,p.next_in=P,p.avail_in=j,r.hold=E,r.bits=C,h(p,G),$=p.next_out,J=p.output,q=p.avail_out,P=p.next_in,T=p.input,j=p.avail_in,E=r.hold,C=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;rt=(a=r.lencode[E&(1<<r.lenbits)-1])>>>16&255,at=65535&a,!((Q=a>>>24)<=C);){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}if(rt&&!(240&rt)){for(it=Q,lt=rt,ut=at;rt=(a=r.lencode[ut+((E&(1<<it+lt)-1)>>it)])>>>16&255,at=65535&a,!(it+(Q=a>>>24)<=C);){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}E>>>=it,C-=it,r.back+=it}if(E>>>=Q,C-=Q,r.back+=Q,r.length=at,0===rt){r.mode=26;break}if(32&rt){r.back=-1,r.mode=12;break}if(64&rt){p.msg="invalid literal/length code",r.mode=30;break}r.extra=15&rt,r.mode=22;case 22:if(r.extra){for(f=r.extra;C<f;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}r.length+=E&(1<<r.extra)-1,E>>>=r.extra,C-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;rt=(a=r.distcode[E&(1<<r.distbits)-1])>>>16&255,at=65535&a,!((Q=a>>>24)<=C);){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}if(!(240&rt)){for(it=Q,lt=rt,ut=at;rt=(a=r.distcode[ut+((E&(1<<it+lt)-1)>>it)])>>>16&255,at=65535&a,!(it+(Q=a>>>24)<=C);){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}E>>>=it,C-=it,r.back+=it}if(E>>>=Q,C-=Q,r.back+=Q,64&rt){p.msg="invalid distance code",r.mode=30;break}r.offset=at,r.extra=15&rt,r.mode=24;case 24:if(r.extra){for(f=r.extra;C<f;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}r.offset+=E&(1<<r.extra)-1,E>>>=r.extra,C-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){p.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===q)break t;if(r.offset>(H=G-q)){if((H=r.offset-H)>r.whave&&r.sane){p.msg="invalid distance too far back",r.mode=30;break}nt=H>r.wnext?r.wsize-(H-=r.wnext):r.wnext-H,H>r.length&&(H=r.length),ot=r.window}else ot=J,nt=$-r.offset,H=r.length;for(q<H&&(H=q),q-=H,r.length-=H;J[$++]=ot[nt++],--H;);0===r.length&&(r.mode=21);break;case 26:if(0===q)break t;J[$++]=r.length,q--,r.mode=21;break;case 27:if(r.wrap){for(;C<32;){if(0===j)break t;j--,E|=T[P++]<<C,C+=8}if(p.total_out+=G-=q,r.total+=G,G&&(p.adler=r.check=r.flags?n(r.check,J,G,$-G):o(r.check,J,G,$-G)),G=q,(r.flags?E:s(E))!==r.check){p.msg="incorrect data check",r.mode=30;break}C=E=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;C<32;){if(0===j)break t;j--,E+=T[P++]<<C,C+=8}if(E!==(4294967295&r.total)){p.msg="incorrect length check",r.mode=30;break}C=E=0}r.mode=29;case 29:R=1;break t;case 30:R=-3;break t;case 31:return-4;default:return i}return p.next_out=$,p.avail_out=q,p.next_in=P,p.avail_in=j,r.hold=E,r.bits=C,(r.wsize||G!==p.avail_out&&r.mode<30&&(r.mode<27||4!==B))&&V(p,p.output,p.next_out,G-p.avail_out)?(r.mode=31,-4):(G-=p.avail_out,p.total_in+=X-=p.avail_in,p.total_out+=G,r.total+=G,r.wrap&&G&&(p.adler=r.check=r.flags?n(r.check,J,G,p.next_out-G):o(r.check,J,G,p.next_out-G)),p.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==X&&0===G||4===B)&&0===R&&(R=-5),R)},k.inflateEnd=function(p){if(!p||!p.state)return i;var B=p.state;return B.window&&(B.window=null),p.state=null,0},k.inflateGetHeader=function(p,B){var r;return p&&p.state&&2&(r=p.state).wrap?((r.head=B).done=!1,0):i},k.inflateSetDictionary=function(p,B){var r,T=B.length;return p&&p.state?0!==(r=p.state).wrap&&11!==r.mode?i:11===r.mode&&o(1,B,T,0)!==r.check?-3:V(p,B,T,T)?(r.mode=31,-4):(r.havedict=1,0):i},k.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(b,U,k){"use strict";var l=b("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],h=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],_=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];U.exports=function(y,m,g,i,c,e,u,s){var d,v,S,x,D,O,L,I,M,V=s.bits,p=0,B=0,r=0,T=0,J=0,P=0,$=0,j=0,q=0,E=0,C=null,X=0,G=new l.Buf16(16),H=new l.Buf16(16),nt=null,ot=0;for(p=0;p<=15;p++)G[p]=0;for(B=0;B<i;B++)G[m[g+B]]++;for(J=V,T=15;1<=T&&0===G[T];T--);if(T<J&&(J=T),0===T)return c[e++]=20971520,c[e++]=20971520,s.bits=1,0;for(r=1;r<T&&0===G[r];r++);for(J<r&&(J=r),p=j=1;p<=15;p++)if(j<<=1,(j-=G[p])<0)return-1;if(0<j&&(0===y||1!==T))return-1;for(H[1]=0,p=1;p<15;p++)H[p+1]=H[p]+G[p];for(B=0;B<i;B++)0!==m[g+B]&&(u[H[m[g+B]]++]=B);if(O=0===y?(C=nt=u,19):1===y?(C=o,X-=257,nt=n,ot-=257,256):(C=h,nt=_,-1),p=r,D=e,$=B=E=0,S=-1,x=(q=1<<(P=J))-1,1===y&&852<q||2===y&&592<q)return 1;for(;;){for(L=p-$,M=u[B]<O?(I=0,u[B]):u[B]>O?(I=nt[ot+u[B]],C[X+u[B]]):(I=96,0),d=1<<p-$,r=v=1<<P;c[D+(E>>$)+(v-=d)]=L<<24|I<<16|M,0!==v;);for(d=1<<p-1;E&d;)d>>=1;if(0!==d?(E&=d-1,E+=d):E=0,B++,0==--G[p]){if(p===T)break;p=m[g+u[B]]}if(J<p&&(E&x)!==S){for(0===$&&($=J),D+=r,j=1<<(P=p-$);P+$<T&&!((j-=G[P+$])<=0);)P++,j<<=1;if(q+=1<<P,1===y&&852<q||2===y&&592<q)return 1;c[S=E&x]=J<<24|P<<16|D-e}}return 0!==E&&(c[D+E]=p-$<<24|64<<16),s.bits=J,0}},{"../utils/common":41}],51:[function(b,U,k){"use strict";U.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(b,U,k){"use strict";var l=b("../utils/common");function h(a){for(var w=a.length;0<=--w;)a[w]=0}var m=256,g=286,i=30,u=15,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],L=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],V=new Array(576);h(V);var p=new Array(60);h(p);var B=new Array(512);h(B);var r=new Array(256);h(r);var T=new Array(29);h(T);var J,P,$,j=new Array(i);function q(a,w,F,N,z){this.static_tree=a,this.extra_bits=w,this.extra_base=F,this.elems=N,this.max_length=z,this.has_stree=a&&a.length}function E(a,w){this.dyn_tree=a,this.max_code=0,this.stat_desc=w}function C(a){return a<256?B[a]:B[256+(a>>>7)]}function X(a,w){a.pending_buf[a.pending++]=255&w,a.pending_buf[a.pending++]=w>>>8&255}function G(a,w,F){a.bi_valid>16-F?(a.bi_buf|=w<<a.bi_valid&65535,X(a,a.bi_buf),a.bi_buf=w>>16-a.bi_valid,a.bi_valid+=F-16):(a.bi_buf|=w<<a.bi_valid&65535,a.bi_valid+=F)}function H(a,w,F){G(a,F[2*w],F[2*w+1])}function nt(a,w){for(var F=0;F|=1&a,a>>>=1,F<<=1,0<--w;);return F>>>1}function ot(a,w,F){var N,z,Z=new Array(16),K=0;for(N=1;N<=u;N++)Z[N]=K=K+F[N-1]<<1;for(z=0;z<=w;z++){var W=a[2*z+1];0!==W&&(a[2*z]=nt(Z[W]++,W))}}function Q(a){var w;for(w=0;w<g;w++)a.dyn_ltree[2*w]=0;for(w=0;w<i;w++)a.dyn_dtree[2*w]=0;for(w=0;w<19;w++)a.bl_tree[2*w]=0;a.dyn_ltree[512]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function rt(a){8<a.bi_valid?X(a,a.bi_buf):0<a.bi_valid&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function at(a,w,F,N){var z=2*w,Z=2*F;return a[z]<a[Z]||a[z]===a[Z]&&N[w]<=N[F]}function it(a,w,F){for(var N=a.heap[F],z=F<<1;z<=a.heap_len&&(z<a.heap_len&&at(w,a.heap[z+1],a.heap[z],a.depth)&&z++,!at(w,N,a.heap[z],a.depth));)a.heap[F]=a.heap[z],F=z,z<<=1;a.heap[F]=N}function lt(a,w,F){var N,z,Z,K,W=0;if(0!==a.last_lit)for(;N=a.pending_buf[a.d_buf+2*W]<<8|a.pending_buf[a.d_buf+2*W+1],z=a.pending_buf[a.l_buf+W],W++,0===N?H(a,z,w):(H(a,(Z=r[z])+m+1,w),0!==(K=O[Z])&&G(a,z-=T[Z],K),H(a,Z=C(--N),F),0!==(K=L[Z])&&G(a,N-=j[Z],K)),W<a.last_lit;);H(a,256,w)}function ut(a,w){var F,N,z,Z=w.dyn_tree,K=w.stat_desc.static_tree,W=w.stat_desc.has_stree,Y=w.stat_desc.elems,et=-1;for(a.heap_len=0,a.heap_max=573,F=0;F<Y;F++)0!==Z[2*F]?(a.heap[++a.heap_len]=et=F,a.depth[F]=0):Z[2*F+1]=0;for(;a.heap_len<2;)Z[2*(z=a.heap[++a.heap_len]=et<2?++et:0)]=1,a.depth[z]=0,a.opt_len--,W&&(a.static_len-=K[2*z+1]);for(w.max_code=et,F=a.heap_len>>1;1<=F;F--)it(a,Z,F);for(z=Y;F=a.heap[1],a.heap[1]=a.heap[a.heap_len--],it(a,Z,1),N=a.heap[1],a.heap[--a.heap_max]=F,a.heap[--a.heap_max]=N,Z[2*z]=Z[2*F]+Z[2*N],a.depth[z]=(a.depth[F]>=a.depth[N]?a.depth[F]:a.depth[N])+1,Z[2*F+1]=Z[2*N+1]=z,a.heap[1]=z++,it(a,Z,1),2<=a.heap_len;);a.heap[--a.heap_max]=a.heap[1],function(tt,ht){var dt,ft,pt,st,_t,bt,ct=ht.dyn_tree,vt=ht.max_code,kt=ht.stat_desc.static_tree,xt=ht.stat_desc.has_stree,St=ht.stat_desc.extra_bits,yt=ht.stat_desc.extra_base,mt=ht.stat_desc.max_length,gt=0;for(st=0;st<=u;st++)tt.bl_count[st]=0;for(ct[2*tt.heap[tt.heap_max]+1]=0,dt=tt.heap_max+1;dt<573;dt++)mt<(st=ct[2*ct[2*(ft=tt.heap[dt])+1]+1]+1)&&(st=mt,gt++),ct[2*ft+1]=st,vt<ft||(tt.bl_count[st]++,_t=0,yt<=ft&&(_t=St[ft-yt]),tt.opt_len+=(bt=ct[2*ft])*(st+_t),xt&&(tt.static_len+=bt*(kt[2*ft+1]+_t)));if(0!==gt){do{for(st=mt-1;0===tt.bl_count[st];)st--;tt.bl_count[st]--,tt.bl_count[st+1]+=2,tt.bl_count[mt]--,gt-=2}while(0<gt);for(st=mt;0!==st;st--)for(ft=tt.bl_count[st];0!==ft;)vt<(pt=tt.heap[--dt])||(ct[2*pt+1]!==st&&(tt.opt_len+=(st-ct[2*pt+1])*ct[2*pt],ct[2*pt+1]=st),ft--)}}(a,w),ot(Z,et,a.bl_count)}function t(a,w,F){var N,z,Z=-1,K=w[1],W=0,Y=7,et=4;for(0===K&&(Y=138,et=3),w[2*(F+1)+1]=65535,N=0;N<=F;N++)z=K,K=w[2*(N+1)+1],++W<Y&&z===K||(W<et?a.bl_tree[2*z]+=W:0!==z?(z!==Z&&a.bl_tree[2*z]++,a.bl_tree[32]++):W<=10?a.bl_tree[34]++:a.bl_tree[36]++,Z=z,et=(W=0)===K?(Y=138,3):z===K?(Y=6,3):(Y=7,4))}function R(a,w,F){var N,z,Z=-1,K=w[1],W=0,Y=7,et=4;for(0===K&&(Y=138,et=3),N=0;N<=F;N++)if(z=K,K=w[2*(N+1)+1],!(++W<Y&&z===K)){if(W<et)for(;H(a,z,a.bl_tree),0!=--W;);else 0!==z?(z!==Z&&(H(a,z,a.bl_tree),W--),H(a,16,a.bl_tree),G(a,W-3,2)):W<=10?(H(a,17,a.bl_tree),G(a,W-3,3)):(H(a,18,a.bl_tree),G(a,W-11,7));Z=z,et=(W=0)===K?(Y=138,3):z===K?(Y=6,3):(Y=7,4)}}h(j);var A=!1;function f(a,w,F,N){var z,Z,K;G(a,0+(N?1:0),3),Z=w,K=F,rt(z=a),X(z,K),X(z,~K),l.arraySet(z.pending_buf,z.window,Z,K,z.pending),z.pending+=K}k._tr_init=function(a){A||(function(){var w,F,N,z,Z,K=new Array(16);for(z=N=0;z<28;z++)for(T[z]=N,w=0;w<1<<O[z];w++)r[N++]=z;for(r[N-1]=z,z=Z=0;z<16;z++)for(j[z]=Z,w=0;w<1<<L[z];w++)B[Z++]=z;for(Z>>=7;z<i;z++)for(j[z]=Z<<7,w=0;w<1<<L[z]-7;w++)B[256+Z++]=z;for(F=0;F<=u;F++)K[F]=0;for(w=0;w<=143;)V[2*w+1]=8,w++,K[8]++;for(;w<=255;)V[2*w+1]=9,w++,K[9]++;for(;w<=279;)V[2*w+1]=7,w++,K[7]++;for(;w<=287;)V[2*w+1]=8,w++,K[8]++;for(ot(V,287,K),w=0;w<i;w++)p[2*w+1]=5,p[2*w]=nt(w,5);J=new q(V,O,257,g,u),P=new q(p,L,0,i,u),$=new q(new Array(0),I,0,19,7)}(),A=!0),a.l_desc=new E(a.dyn_ltree,J),a.d_desc=new E(a.dyn_dtree,P),a.bl_desc=new E(a.bl_tree,$),a.bi_buf=0,a.bi_valid=0,Q(a)},k._tr_stored_block=f,k._tr_flush_block=function(a,w,F,N){var z,Z,K=0;0<a.level?(2===a.strm.data_type&&(a.strm.data_type=function(W){var Y,et=4093624447;for(Y=0;Y<=31;Y++,et>>>=1)if(1&et&&0!==W.dyn_ltree[2*Y])return 0;if(0!==W.dyn_ltree[18]||0!==W.dyn_ltree[20]||0!==W.dyn_ltree[26])return 1;for(Y=32;Y<m;Y++)if(0!==W.dyn_ltree[2*Y])return 1;return 0}(a)),ut(a,a.l_desc),ut(a,a.d_desc),K=function(W){var Y;for(t(W,W.dyn_ltree,W.l_desc.max_code),t(W,W.dyn_dtree,W.d_desc.max_code),ut(W,W.bl_desc),Y=18;3<=Y&&0===W.bl_tree[2*M[Y]+1];Y--);return W.opt_len+=3*(Y+1)+5+5+4,Y}(a),(Z=a.static_len+3+7>>>3)<=(z=a.opt_len+3+7>>>3)&&(z=Z)):z=Z=F+5,F+4<=z&&-1!==w?f(a,w,F,N):4===a.strategy||Z===z?(G(a,2+(N?1:0),3),lt(a,V,p)):(G(a,4+(N?1:0),3),function(W,Y,et,tt){var ht;for(G(W,Y-257,5),G(W,et-1,5),G(W,tt-4,4),ht=0;ht<tt;ht++)G(W,W.bl_tree[2*M[ht]+1],3);R(W,W.dyn_ltree,Y-1),R(W,W.dyn_dtree,et-1)}(a,a.l_desc.max_code+1,a.d_desc.max_code+1,K+1),lt(a,a.dyn_ltree,a.dyn_dtree)),Q(a),N&&rt(a)},k._tr_tally=function(a,w,F){return a.pending_buf[a.d_buf+2*a.last_lit]=w>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&w,a.pending_buf[a.l_buf+a.last_lit]=255&F,a.last_lit++,0===w?a.dyn_ltree[2*F]++:(a.matches++,w--,a.dyn_ltree[2*(r[F]+m+1)]++,a.dyn_dtree[2*C(w)]++),a.last_lit===a.lit_bufsize-1},k._tr_align=function(a){var w;G(a,2,3),H(a,256,V),16===(w=a).bi_valid?(X(w,w.bi_buf),w.bi_buf=0,w.bi_valid=0):8<=w.bi_valid&&(w.pending_buf[w.pending++]=255&w.bi_buf,w.bi_buf>>=8,w.bi_valid-=8)}},{"../utils/common":41}],53:[function(b,U,k){"use strict";U.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(b,U,k){(function(l){!function(o){"use strict";if(!o.setImmediate){var h,_,y,m,g=1,i={},c=!1,e=o.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(o);u=u&&u.setTimeout?u:o,h="[object process]"==={}.toString.call(o.process)?function(S){process.nextTick(function(){d(S)})}:function(){if(o.postMessage&&!o.importScripts){var S=!0,x=o.onmessage;return o.onmessage=function(){S=!1},o.postMessage("","*"),o.onmessage=x,S}}()?(m="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",v,!1):o.attachEvent("onmessage",v),function(S){o.postMessage(m+S,"*")}):o.MessageChannel?((y=new MessageChannel).port1.onmessage=function(S){d(S.data)},function(S){y.port2.postMessage(S)}):e&&"onreadystatechange"in e.createElement("script")?(_=e.documentElement,function(S){var x=e.createElement("script");x.onreadystatechange=function(){d(S),x.onreadystatechange=null,_.removeChild(x),x=null},_.appendChild(x)}):function(S){setTimeout(d,0,S)},u.setImmediate=function(S){"function"!=typeof S&&(S=new Function(""+S));for(var x=new Array(arguments.length-1),D=0;D<x.length;D++)x[D]=arguments[D+1];return i[g]={callback:S,args:x},h(g),g++},u.clearImmediate=s}function s(S){delete i[S]}function d(S){if(c)setTimeout(d,0,S);else{var x=i[S];if(x){c=!0;try{!function(D){var O=D.callback,L=D.args;switch(L.length){case 0:O();break;case 1:O(L[0]);break;case 2:O(L[0],L[1]);break;case 3:O(L[0],L[1],L[2]);break;default:O.apply(void 0,L)}}(x)}finally{s(S),c=!1}}}}function v(S){S.source===o&&"string"==typeof S.data&&0===S.data.indexOf(m)&&d(+S.data.slice(m.length))}}(typeof self>"u"?void 0===l?this:l:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)}}]);
|