mirror of https://gitee.com/godoos/godoos.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
166 lines
1.5 MiB
166 lines
1.5 MiB
var U1=Object.defineProperty;var W1=(r,e,t)=>e in r?U1(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Rr=(r,e,t)=>(W1(r,typeof e!="symbol"?e+"":e,t),t);const V1=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}};V1();const Y1=[],Yu=[],k1={margins:[100,120,100,120],watermark:{data:"",size:120},pageNumber:{format:"\u7B2C{pageNo}\u9875/\u5171{pageCount}\u9875"},placeholder:{data:"\u8BF7\u8F93\u5165\u6B63\u6587"},zone:{tipDisabled:!1},maskMargin:[60,0,30,0]};var Bn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Z1(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Q1(r){if(r.__esModule)return r;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(t){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}),e}function Ho(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ed={exports:{}};(function(r){var e=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
*
|
|
* @license MIT <https://opensource.org/licenses/MIT>
|
|
* @author Lea Verou <https://lea.verou.me>
|
|
* @namespace
|
|
* @public
|
|
*/var t=function(n){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,a={},s={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function m(x){return x instanceof l?new l(x.type,m(x.content),x.alias):Array.isArray(x)?x.map(m):x.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++o}),m.__id},clone:function m(x,T){T=T||{};var P,A;switch(s.util.type(x)){case"Object":if(A=s.util.objId(x),T[A])return T[A];P={},T[A]=P;for(var D in x)x.hasOwnProperty(D)&&(P[D]=m(x[D],T));return P;case"Array":return A=s.util.objId(x),T[A]?T[A]:(P=[],T[A]=P,x.forEach(function(W,_){P[_]=m(W,T)}),P);default:return x}},getLanguage:function(m){for(;m;){var x=i.exec(m.className);if(x)return x[1].toLowerCase();m=m.parentElement}return"none"},setLanguage:function(m,x){m.className=m.className.replace(RegExp(i,"gi"),""),m.classList.add("language-"+x)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(P){var m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(P.stack)||[])[1];if(m){var x=document.getElementsByTagName("script");for(var T in x)if(x[T].src==m)return x[T]}return null}},isActive:function(m,x,T){for(var P="no-"+x;m;){var A=m.classList;if(A.contains(x))return!0;if(A.contains(P))return!1;m=m.parentElement}return!!T}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(m,x){var T=s.util.clone(s.languages[m]);for(var P in x)T[P]=x[P];return T},insertBefore:function(m,x,T,P){P=P||s.languages;var A=P[m],D={};for(var W in A)if(A.hasOwnProperty(W)){if(W==x)for(var _ in T)T.hasOwnProperty(_)&&(D[_]=T[_]);T.hasOwnProperty(W)||(D[W]=A[W])}var Q=P[m];return P[m]=D,s.languages.DFS(s.languages,function(te,O){O===Q&&te!=m&&(this[te]=D)}),D},DFS:function m(x,T,P,A){A=A||{};var D=s.util.objId;for(var W in x)if(x.hasOwnProperty(W)){T.call(x,W,x[W],P||W);var _=x[W],Q=s.util.type(_);Q==="Object"&&!A[D(_)]?(A[D(_)]=!0,m(_,T,null,A)):Q==="Array"&&!A[D(_)]&&(A[D(_)]=!0,m(_,T,W,A))}}},plugins:{},highlightAll:function(m,x){s.highlightAllUnder(document,m,x)},highlightAllUnder:function(m,x,T){var P={callback:T,container:m,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",P),P.elements=Array.prototype.slice.apply(P.container.querySelectorAll(P.selector)),s.hooks.run("before-all-elements-highlight",P);for(var A=0,D;D=P.elements[A++];)s.highlightElement(D,x===!0,P.callback)},highlightElement:function(m,x,T){var P=s.util.getLanguage(m),A=s.languages[P];s.util.setLanguage(m,P);var D=m.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(D,P);var W=m.textContent,_={element:m,language:P,grammar:A,code:W};function Q(O){_.highlightedCode=O,s.hooks.run("before-insert",_),_.element.innerHTML=_.highlightedCode,s.hooks.run("after-highlight",_),s.hooks.run("complete",_),T&&T.call(_.element)}if(s.hooks.run("before-sanity-check",_),D=_.element.parentElement,D&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!_.code){s.hooks.run("complete",_),T&&T.call(_.element);return}if(s.hooks.run("before-highlight",_),!_.grammar){Q(s.util.encode(_.code));return}if(x&&n.Worker){var te=new Worker(s.filename);te.onmessage=function(O){Q(O.data)},te.postMessage(JSON.stringify({language:_.language,code:_.code,immediateClose:!0}))}else Q(s.highlight(_.code,_.grammar,_.language))},highlight:function(m,x,T){var P={code:m,grammar:x,language:T};if(s.hooks.run("before-tokenize",P),!P.grammar)throw new Error('The language "'+P.language+'" has no grammar.');return P.tokens=s.tokenize(P.code,P.grammar),s.hooks.run("after-tokenize",P),l.stringify(s.util.encode(P.tokens),P.language)},tokenize:function(m,x){var T=x.rest;if(T){for(var P in T)x[P]=T[P];delete x.rest}var A=new h;return d(A,A.head,m),u(m,A,x,A.head,0),p(A)},hooks:{all:{},add:function(m,x){var T=s.hooks.all;T[m]=T[m]||[],T[m].push(x)},run:function(m,x){var T=s.hooks.all[m];if(!(!T||!T.length))for(var P=0,A;A=T[P++];)A(x)}},Token:l};n.Prism=s;function l(m,x,T,P){this.type=m,this.content=x,this.alias=T,this.length=(P||"").length|0}l.stringify=function m(x,T){if(typeof x=="string")return x;if(Array.isArray(x)){var P="";return x.forEach(function(Q){P+=m(Q,T)}),P}var A={type:x.type,content:m(x.content,T),tag:"span",classes:["token",x.type],attributes:{},language:T},D=x.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(A.classes,D):A.classes.push(D)),s.hooks.run("wrap",A);var W="";for(var _ in A.attributes)W+=" "+_+'="'+(A.attributes[_]||"").replace(/"/g,""")+'"';return"<"+A.tag+' class="'+A.classes.join(" ")+'"'+W+">"+A.content+"</"+A.tag+">"};function c(m,x,T,P){m.lastIndex=x;var A=m.exec(T);if(A&&P&&A[1]){var D=A[1].length;A.index+=D,A[0]=A[0].slice(D)}return A}function u(m,x,T,P,A,D){for(var W in T)if(!(!T.hasOwnProperty(W)||!T[W])){var _=T[W];_=Array.isArray(_)?_:[_];for(var Q=0;Q<_.length;++Q){if(D&&D.cause==W+","+Q)return;var te=_[Q],O=te.inside,I=!!te.lookbehind,y=!!te.greedy,L=te.alias;if(y&&!te.pattern.global){var k=te.pattern.toString().match(/[imsuy]*$/)[0];te.pattern=RegExp(te.pattern.source,k+"g")}for(var F=te.pattern||te,Y=P.next,V=A;Y!==x.tail&&!(D&&V>=D.reach);V+=Y.value.length,Y=Y.next){var ie=Y.value;if(x.length>m.length)return;if(!(ie instanceof l)){var U=1,N;if(y){if(N=c(F,V,m,I),!N||N.index>=m.length)break;var ee=N.index,J=N.index+N[0].length,B=V;for(B+=Y.value.length;ee>=B;)Y=Y.next,B+=Y.value.length;if(B-=Y.value.length,V=B,Y.value instanceof l)continue;for(var re=Y;re!==x.tail&&(B<J||typeof re.value=="string");re=re.next)U++,B+=re.value.length;U--,ie=m.slice(V,B),N.index-=V}else if(N=c(F,0,ie,I),!N)continue;var ee=N.index,X=N[0],C=ie.slice(0,ee),G=ie.slice(ee+X.length),z=V+ie.length;D&&z>D.reach&&(D.reach=z);var H=Y.prev;C&&(H=d(x,H,C),V+=C.length),f(x,H,U);var j=new l(W,O?s.tokenize(X,O):X,L,X);if(Y=d(x,H,j),G&&d(x,Y,G),U>1){var ue={cause:W+","+Q,reach:z};u(m,x,T,Y.prev,V,ue),D&&ue.reach>D.reach&&(D.reach=ue.reach)}}}}}}function h(){var m={value:null,prev:null,next:null},x={value:null,prev:m,next:null};m.next=x,this.head=m,this.tail=x,this.length=0}function d(m,x,T){var P=x.next,A={value:T,prev:x,next:P};return x.next=A,P.prev=A,m.length++,A}function f(m,x,T){for(var P=x.next,A=0;A<T&&P!==m.tail;A++)P=P.next;x.next=P,P.prev=x,m.length-=A}function p(m){for(var x=[],T=m.head.next;T!==m.tail;)x.push(T.value),T=T.next;return x}if(!n.document)return n.addEventListener&&(s.disableWorkerMessageHandler||n.addEventListener("message",function(m){var x=JSON.parse(m.data),T=x.language,P=x.code,A=x.immediateClose;n.postMessage(s.highlight(P,s.languages[T],T)),A&&n.close()},!1)),s;var g=s.util.currentScript();g&&(s.filename=g.src,g.hasAttribute("data-manual")&&(s.manual=!0));function v(){s.manual||s.highlightAll()}if(!s.manual){var R=document.readyState;R==="loading"||R==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return s}(e);r.exports&&(r.exports=t),typeof Bn!="undefined"&&(Bn.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(i,o){var a={};a["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[o]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};s["language-"+o]={pattern:/[\s\S]+/,inside:t.languages[o]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:s},t.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,i){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:t.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(n){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(typeof t=="undefined"||typeof document=="undefined")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n="Loading\u2026",i=function(g,v){return"\u2716 Error "+g+" while fetching file: "+v},o="\u2716 Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",l="loading",c="loaded",u="failed",h="pre[data-src]:not(["+s+'="'+c+'"]):not(['+s+'="'+l+'"])';function d(g,v,R){var m=new XMLHttpRequest;m.open("GET",g,!0),m.onreadystatechange=function(){m.readyState==4&&(m.status<400&&m.responseText?v(m.responseText):m.status>=400?R(i(m.status,m.statusText)):R(o))},m.send(null)}function f(g){var v=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(v){var R=Number(v[1]),m=v[2],x=v[3];return m?x?[R,Number(x)]:[R,void 0]:[R,R]}}t.hooks.add("before-highlightall",function(g){g.selector+=", "+h}),t.hooks.add("before-sanity-check",function(g){var v=g.element;if(v.matches(h)){g.code="",v.setAttribute(s,l);var R=v.appendChild(document.createElement("CODE"));R.textContent=n;var m=v.getAttribute("data-src"),x=g.language;if(x==="none"){var T=(/\.(\w+)$/.exec(m)||[,"none"])[1];x=a[T]||T}t.util.setLanguage(R,x),t.util.setLanguage(v,x);var P=t.plugins.autoloader;P&&P.loadLanguages(x),d(m,function(A){v.setAttribute(s,c);var D=f(v.getAttribute("data-range"));if(D){var W=A.split(/\r\n?|\n/g),_=D[0],Q=D[1]==null?W.length:D[1];_<0&&(_+=W.length),_=Math.max(0,Math.min(_-1,W.length)),Q<0&&(Q+=W.length),Q=Math.max(0,Math.min(Q,W.length)),A=W.slice(_,Q).join(`
|
|
`),v.hasAttribute("data-start")||v.setAttribute("data-start",String(_+1))}R.textContent=A,t.highlightElement(R)},function(A){v.setAttribute(s,u),R.textContent=A})}}),t.plugins.fileHighlight={highlight:function(v){for(var R=(v||document).querySelectorAll(h),m=0,x;x=R[m++];)t.highlightElement(x)}};var p=!1;t.fileHighlight=function(){p||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),p=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Ed);var ku=Ed.exports;const K1="0.9.81";var Ei=(r=>(r.HALF="half",r.ONE_THIRD="one-third",r.QUARTER="quarter",r))(Ei||{}),Ia=(r=>(r.ARABIC="arabic",r.CHINESE="chinese",r))(Ia||{}),ze=(r=>(r.INLINE="inline",r.BLOCK="block",r.FLOAT_TOP="float-top",r.FLOAT_BOTTOM="float-bottom",r))(ze||{});const Ne="\u200B",Zu=`
|
|
`,H1=" ",Qu=" ",B1=["\xB7","\u3001",":","\uFF1A",",","\uFF0C",".","\u3002",";","\uFF1B","?","\uFF1F","!","\uFF01"],_d={[Ei.HALF]:1/2,[Ei.ONE_THIRD]:1/3,[Ei.QUARTER]:1/4},G1={ENGLISH:"A-Za-z",SPANISH:"A-Za-z\xC1\xC9\xCD\xD3\xDA\xE1\xE9\xED\xF3\xFA\xD1\xF1\xDC\xFC",FRENCH:"A-Za-z\xC0\xC2\xC7\xE0\xE2\xE7\xC9\xE9\xC8\xE8\xCA\xEA\xCB\xEB\xCE\xEE\xCF\xEF\xD4\xF4\xD9\xF9\xDB\xFB\u0178\xFF",GERMAN:"A-Za-z\xC4\xE4\xD6\xF6\xDC\xFC\xDF",RUSSIAN:"\u0410-\u042F\u0430-\u044F\u0401\u0451",PORTUGUESE:"A-Za-z\xC1\xC9\xCD\xD3\xDA\xE1\xE9\xED\xF3\xFA\xC3\xD5\xE3\xF5\xC7\xE7",ITALIAN:"A-Za-z\xC0\xE0\xC8\xE8\xC9\xE9\xCC\xEC\xCD\xED\xCE\xEE\xD3\xF3\xD2\xF2\xD9\xF9",DUTCH:"A-Za-z\xC0\xE0\xC1\xE1\xC2\xE2\xC4\xE4\xC8\xE8\xC9\xE9\xCA\xEA\xCB\xEB\xCC\xEC\xCD\xED\xCE\xEE\xCF\xEF\xD3\xF3\xD2\xF2\xD4\xF4\xD6\xF6\xD9\xF9\xDB\xFB\xDC\xFC",SWEDISH:"A-Za-z\xC5\xE5\xC4\xE4\xD6\xF6",GREEK:"\u0391\u03B1\u0392\u03B2\u0393\u03B3\u0394\u03B4\u0395\u03B5\u0396\u03B6\u0397\u03B7\u0398\u03B8\u0399\u03B9\u039A\u03BA\u039B\u03BB\u039C\u03BC\u039D\u03BD\u039E\u03BE\u039F\u03BF\u03A0\u03C0\u03A1\u03C1\u03A3\u03C3\u03C2\u03A4\u03C4\u03A5\u03C5\u03A6\u03C6\u03A7\u03C7\u03A8\u03C8\u03A9\u03C9"},J1="\u65E5";var Ge=(r=>(r.LEFT="left",r.CENTER="center",r.RIGHT="right",r.ALIGNMENT="alignment",r.JUSTIFY="justify",r))(Ge||{});const ms=/[0-9.]/,z1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/,$1=/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,j1=new RegExp(`${$1.source}|${z1.source}`,"g"),q1=/[、,。?!;:……「」“”‘’*()【】〔〕〖〗〘〙〚〛《》———﹝﹞–—\\/·.,!?;:`~<>()[\]{}'"|]/,Id=new RegExp(`^[${Ne}
|
|
]`);function Nd(r,e){let t;return function(...n){t&&window.clearTimeout(t),t=window.setTimeout(()=>{r.apply(this,n)},e)}}function eg(r,e){let t=0,n;return function(...i){const o=Date.now();o-t>=e?(window.clearTimeout(n),r.apply(this,i),t=o):(window.clearTimeout(n),n=window.setTimeout(()=>{r.apply(this,i),t=o},e))}}function Cl(r,e){if(!r||typeof r!="object")return r;let t={};return Array.isArray(r)?t=r.map(n=>Cl(n,e)):Object.keys(r).forEach(n=>{if(!e.includes(n))return t[n]=Cl(r[n],e)}),t}function gt(r){if(!r||typeof r!="object")return r;let e={};return Array.isArray(r)?e=r.map(t=>gt(t)):Object.keys(r).forEach(t=>e[t]=gt(r[t])),e}function vs(r){return r&&r.nodeType===1&&r.tagName.toLowerCase()==="body"}function Na(r,e,t){if(r&&!vs(r))for(r=t?r:r.parentNode;r;){if(!e||e(r)||vs(r))return e&&!e(r)&&vs(r)?null:r;r=r.parentNode}return null}function it(){function r(){return((1+Math.random())*65536|0).toString(16).substring(1)}return r()+r()+"-"+r()+"-"+r()+"-"+r()+"-"+r()+r()+r()}function Wr(r){const e=[];if(Intl.Segmenter){const n=new Intl.Segmenter().segment(r);for(const{segment:i}of n)e.push(i)}else{const t=new Map;for(const i of r.matchAll(j1))t.set(i.index,i[0]);let n=0;for(;n<r.length;){const i=t.get(n);i?(e.push(i),n+=i.length):(e.push(r[n]),n++)}}return e}function Md(r,e){const t=document.createElement("a");t.href=r,t.download=e,t.click()}function tg(r,e){rg(3,r,e)}function rg(r,e,t){let n=0,i=0;const o=function(a){n=new Date().getTime()-i<300?n+1:0,i=new Date().getTime(),n>=r-1&&(t(a),n=0)};e.addEventListener("click",o)}function Ma(r){return Object.prototype.toString.call(r)==="[object Object]"}function Ku(r){return Array.isArray(r)}function Ld(r,e){if(Ma(r)&&Ma(e)){const t=e;for(const[n,i]of Object.entries(r))t[n]?t[n]=Ld(i,t[n]):t[n]=i}else Ku(r)&&Ku(e)&&e.push(...r);return e}function La(r){setTimeout(()=>{r()},0)}function Hu(r){const e=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],t=["","\u5341","\u767E","\u5343","\u4E07","\u5341","\u767E","\u5343","\u4EBF","\u5341","\u767E","\u5343","\u4E07","\u5341","\u767E","\u5343","\u4EBF"];if(!r||isNaN(r))return"\u96F6";const n=r.toString().split("");let i="";for(let o=0;o<n.length;o++){const a=n.length-1-o;i=`${t[o]}${i}`,i=`${e[Number(n[a])]}${i}`}return i=i.replace(/零(千|百|十)/g,"\u96F6").replace(/十零/g,"\u5341"),i=i.replace(/零+/g,"\u96F6"),i=i.replace(/零亿/g,"\u4EBF").replace(/零万/g,"\u4E07"),i=i.replace(/亿万/g,"\u4EBF"),i=i.replace(/零+$/,""),i=i.replace(/^一十/g,"\u5341"),i}function va(r,e,t){for(let n=0;n<r.length;n++){const i=r[n],o=e[i];o!==void 0?t[i]=o:delete t[i]}}function un(r,e){const t={};for(const n in r)e.includes(n)&&(t[n]=r[n]);return t}function Eo(r,e){const t={};for(const n in r)e.includes(n)||(t[n]=r[n]);return t}function ng(r){const t=new TextEncoder().encode(r),n=Array.from(t,o=>String.fromCharCode(o));return window.btoa(n.join(""))}function ig(r){let e=r.parentElement;for(;e;){const n=window.getComputedStyle(e).getPropertyValue("overflow-y");if(e.scrollHeight>e.clientHeight&&(n==="auto"||n==="scroll"))return e;e=e.parentElement}return document.documentElement}function og(r,e){return r.length!==e.length?!1:!r.some(t=>!e.includes(t))}function ag(r,e){if(!Ma(r)||!Ma(e))return!1;const t=Object.keys(r),n=Object.keys(e);return t.length!==n.length?!1:!t.some(i=>e[i]!==r[i])}const sg=12,lg={width:1,color:"#000000",dragWidth:2,dragColor:"#0000FF"},fn="editor-component",Fe="ce",Rc=`${Fe}-clipboard`;var ir=(r=>(r.UP="top",r.DOWN="down",r.LEFT="left",r.RIGHT="right",r))(ir||{}),ae=(r=>(r.TEXT="text",r.IMAGE="image",r.TABLE="table",r.HYPERLINK="hyperlink",r.SUPERSCRIPT="superscript",r.SUBSCRIPT="subscript",r.SEPARATOR="separator",r.PAGE_BREAK="pageBreak",r.CONTROL="control",r.CHECKBOX="checkbox",r.RADIO="radio",r.LATEX="latex",r.TAB="tab",r.DATE="date",r.BLOCK="block",r.TITLE="title",r.LIST="list",r))(ae||{});const ri=["bold","color","highlight","font","size","italic","underline","strikeout","textDecoration"],Mo=["rowFlex","rowMargin"],cg=["type","font","size","bold","color","italic","highlight","underline","strikeout","rowFlex","url","hyperlinkId","dateId","dateFormat","groupIds","rowMargin","textDecoration"],ug=["type","font","size","bold","color","italic","highlight","underline","strikeout","rowFlex","rowMargin","dashArray","trList","borderType","width","height","url","colgroup","valueList","control","checkbox","radio","dateFormat","block","level","title","listType","listStyle","listWrap","groupIds","conceptId","imgDisplay","imgFloatPosition","textDecoration","extension","externalId"],hg=["verticalAlign","backgroundColor","borderTypes","slashTypes"],mc=["tdId","trId","tableId"],fg=["level","titleId","title"],Fd=["listId","listType","listStyle"],Bu=["control","controlId","controlComponent"],Ci=["font","size","bold","highlight","italic","strikeout"],Cd=[...mc,...fg,...Fd,...Mo],Gr=[ae.TEXT,ae.HYPERLINK,ae.SUBSCRIPT,ae.SUPERSCRIPT,ae.CONTROL,ae.DATE],dg=[ae.IMAGE,ae.LATEX],pg=[ae.BLOCK,ae.PAGE_BREAK,ae.SEPARATOR,ae.TABLE],gg=["HR","TABLE","UL","OL"],Rg=[ae.TITLE,ae.LIST];class Ad{constructor(e){this.draw=e,this.options=e.getOptions(),this.container=e.getContainer(),this.imageCache=new Map,this.floatImageContainer=null,this.floatImage=null}createFloatImage(e){const{scale:t}=this.options;let n=this.floatImageContainer,i=this.floatImage;n||(n=document.createElement("div"),n.classList.add(`${Fe}-float-image`),this.container.append(n),this.floatImageContainer=n),i||(i=document.createElement("img"),n.append(i),this.floatImage=i),n.style.display="none",i.style.width=`${e.width*t}px`,i.style.height=`${e.height*t}px`;const o=this.draw.getHeight(),a=this.draw.getPageGap(),s=this.draw.getPageNo()*(o+a),l=e.imgFloatPosition;n.style.left=`${l.x}px`,n.style.top=`${s+l.y}px`,i.src=e.value}dragFloatImage(e,t){if(!this.floatImageContainer)return;this.floatImageContainer.style.display="block";const n=parseFloat(this.floatImageContainer.style.left)+e,i=parseFloat(this.floatImageContainer.style.top)+t;this.floatImageContainer.style.left=`${n}px`,this.floatImageContainer.style.top=`${i}px`}destroyFloatImage(){this.floatImageContainer&&(this.floatImageContainer.style.display="none")}addImageObserver(e){this.draw.getImageObserver().add(e)}getFallbackImage(e,t){const i=(e-Math.ceil(e/8)*8)/2,o=(t-Math.ceil(t/8)*8)/2,a=`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${t}" viewBox="0 0 ${e} ${t}">
|
|
<rect width="${e}" height="${t}" fill="url(#mosaic)" />
|
|
<defs>
|
|
<pattern id="mosaic" x="${i}" y="${o}" width="${8*2}" height="${8*2}" patternUnits="userSpaceOnUse">
|
|
<rect width="${8}" height="${8}" fill="#cccccc" />
|
|
<rect width="${8}" height="${8}" fill="#cccccc" transform="translate(${8}, ${8})" />
|
|
</pattern>
|
|
</defs>
|
|
</svg>`,s=new Image;return s.src=`data:image/svg+xml;base64,${ng(a)}`,s}render(e,t,n,i){const{scale:o}=this.options,a=t.width*o,s=t.height*o;if(this.imageCache.has(t.id)){const l=this.imageCache.get(t.id);e.drawImage(l,n,i,a,s)}else{const l=new Promise((c,u)=>{const h=new Image;h.setAttribute("crossOrigin","Anonymous"),h.src=t.value,h.onload=()=>{this.imageCache.set(t.id,h),c(t),t.imgDisplay===ze.FLOAT_BOTTOM?this.draw.render({isCompute:!1,isSetCursor:!1,isSubmitHistory:!1}):e.drawImage(h,n,i,a,s)},h.onerror=d=>{const f=this.getFallbackImage(a,s);f.onload=()=>{e.drawImage(f,n,i,a,s),this.imageCache.set(t.id,f)},u(d)}});this.addImageObserver(l)}}}const Bo="R".charCodeAt(0);function wi(r){return Al[r]==null&&mg(r),Al[r]}function mg(r){const e=vg[r];if(e==null)return;const t=e.substring(3,5),n=1*t.charCodeAt(0)-Bo,i=1*t.charCodeAt(1)-Bo,o=e.substring(5),a=[[]];let s=1/0,l=-1/0,c=1/0,u=-1/0,h=0;for(;h<o.length;){const d=o.substring(h,h+2);if(d==" R")a.push([]);else{const f=d.charCodeAt(0)-Bo-n,p=d.charCodeAt(1)-Bo;s=Math.min(p,s),l=Math.max(p,l),c=Math.min(f,c),u=Math.max(f,u),a[a.length-1].push([f,p])}h+=2}Al[r]={w:i-n,xmin:c,xmax:u,ymin:s,ymax:l,polylines:a}}const Al={},vg={1:" 9MWRMNV RRMVV RPSTS",2:" 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",3:" 11MXVNTMRMPNOPOSPURVTVVU",4:" 12MWOMOV ROMRMTNUPUSTURVOV",5:" 12MWOMOV ROMUM ROQSQ ROVUV",6:" 9MVOMOV ROMUM ROQSQ",7:" 15MXVNTMRMPNOPOSPURVTVVUVR RSRVR",8:" 9MWOMOV RUMUV ROQUQ",9:" 3PTRMRV",10:" 7NUSMSTRVPVOTOS",11:" 9MWOMOV RUMOS RQQUV",12:" 6MVOMOV ROVUV",13:" 12LXNMNV RNMRV RVMRV RVMVV",14:" 9MWOMOV ROMUV RUMUV",15:" 14MXRMPNOPOSPURVSVUUVSVPUNSMRM",16:" 10MWOMOV ROMSMUNUQSROR",17:" 17MXRMPNOPOSPURVSVUUVSVPUNSMRM RSTVW",18:" 13MWOMOV ROMSMUNUQSROR RRRUV",19:" 13MWUNSMQMONOOPPTRUSUUSVQVOU",20:" 6MWRMRV RNMVM",21:" 9MXOMOSPURVSVUUVSVM",22:" 6MWNMRV RVMRV",23:" 12LXNMPV RRMPV RRMTV RVMTV",24:" 6MWOMUV RUMOV",25:" 7MWNMRQRV RVMRQ",26:" 9MWUMOV ROMUM ROVUV",27:" 9MWRMNV RRMVV RPSTS",28:" 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",29:" 6MVOMOV ROMUM",30:" 9MWRMNV RRMVV RNVVV",31:" 12MWOMOV ROMUM ROQSQ ROVUV",32:" 9MWUMOV ROMUM ROVUV",33:" 9MWOMOV RUMUV ROQUQ",34:" 20MXRMPNOPOSPURVSVUUVSVPUNSMRM RQQTR RTQQR",35:" 3PTRMRV",36:" 9MWOMOV RUMOS RQQUV",37:" 6MWRMNV RRMVV",38:" 12LXNMNV RNMRV RVMRV RVMVV",39:" 9MWOMOV ROMUV RUMUV",40:" 12MWOMUM RPQTR RTQPR ROVUV",41:" 14MXRMPNOPOSPURVSVUUVSVPUNSMRM",42:" 9MWOMOV RUMUV ROMUM",43:" 10MWOMOV ROMSMUNUQSROR",44:" 10MWOMRQOV ROMUM ROVUV",45:" 6MWRMRV RNMVM",46:" 15MWNONNOMPMQNRPRV RVOVNUMTMSNRP",47:" 13LXRMRV RPONPNSPTTTVSVPTOPO",48:" 6MWOMUV RUMOV",49:" 12LXRMRV RNOOPOSQTSTUSUPVO",50:" 13MXOVQVOROPPNRMSMUNVPVRTVVV",200:" 12MWRMPNOPOSPURVTUUSUPTNRM",201:" 4MWPORMRV",202:" 9MWONQMSMUNUPTROVUV",203:" 15MWONQMSMUNUPSQ RRQSQURUUSVQVOU",204:" 7MWSMSV RSMNSVS",205:" 14MWPMOQQPRPTQUSTURVQVOU RPMTM",206:" 14MWTMRMPNOPOSPURVTUUSTQRPPQOS",207:" 6MWUMQV ROMUM",208:" 19MWQMONOPQQSQUPUNSMQM RQQOROUQVSVUUURSQ",209:" 14MWUPTRRSPROPPNRMTNUPUSTURVPV",210:" 6PURURVSVSURU",211:" 7PUSVRVRUSUSWRY",212:" 12PURPRQSQSPRP RRURVSVSURU",213:" 13PURPRQSQSPRP RSVRVRUSUSWRY",214:" 12PURMRR RSMSR RRURVSVSURU",215:" 17NWPNRMSMUNUPRQRRSRSQUP RRURVSVSURU",216:" 3PTRMRQ",217:" 6NVPMPQ RTMTQ",218:" 10NVQMPNPPQQSQTPTNSMQM",219:" 16MWUNSMQMONOPQQTRUSUUSVQVOU RRLRW",220:" 3MWVLNW",221:" 7OVTLRNQPQSRUTW",222:" 7NUPLRNSPSSRUPW",223:" 3PTRLRW",224:" 3LXNRVR",225:" 6LXRNRV RNRVR",226:" 6LXNPVP RNTVT",227:" 6MWOOUU RUOOU",228:" 9MWRORU ROPUT RUPOT",229:" 6PURQRRSRSQRQ",230:" 7PUSMRORQSQSPRP",231:" 7PUSNRNRMSMSORQ",232:" 7LXSOVRSU RNRVR",233:" 12MXRLPW RULSW ROPVP ROSVS",234:" 21LXVRURTSSURVOVNUNSORRQSPSNRMPMONOPQSSUUVVV",235:" 20LXNNOQOSNV RVNUQUSVV RNNQOSOVN RNVQUSUVV",501:" 9I[RFJ[ RRFZ[ RMTWT",502:" 24G\\KFK[ RKFTFWGXHYJYLXNWOTP RKPTPWQXRYTYWXYWZT[K[",503:" 19H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZV",504:" 16G\\KFK[ RKFRFUGWIXKYNYSXVWXUZR[K[",505:" 12H[LFL[ RLFYF RLPTP RL[Y[",506:" 9HZLFL[ RLFYF RLPTP",507:" 23H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZVZS RUSZS",508:" 9G]KFK[ RYFY[ RKPYP",509:" 3NVRFR[",510:" 11JZVFVVUYTZR[P[NZMYLVLT",511:" 9G\\KFK[ RYFKT RPOY[",512:" 6HYLFL[ RL[X[",513:" 12F^JFJ[ RJFR[ RZFR[ RZFZ[",514:" 9G]KFK[ RKFY[ RYFY[",515:" 22G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF",516:" 14G\\KFK[ RKFTFWGXHYJYMXOWPTQKQ",517:" 25G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF RSWY]",518:" 17G\\KFK[ RKFTFWGXHYJYLXNWOTPKP RRPY[",519:" 21H\\YIWGTFPFMGKIKKLMMNOOUQWRXSYUYXWZT[P[MZKX",520:" 6JZRFR[ RKFYF",521:" 11G]KFKULXNZQ[S[VZXXYUYF",522:" 6I[JFR[ RZFR[",523:" 12F^HFM[ RRFM[ RRFW[ R\\FW[",524:" 6H\\KFY[ RYFK[",525:" 7I[JFRPR[ RZFRP",526:" 9H\\YFK[ RKFYF RK[Y[",527:" 9I[RFJ[ RRFZ[ RMTWT",528:" 24G\\KFK[ RKFTFWGXHYJYLXNWOTP RKPTPWQXRYTYWXYWZT[K[",529:" 6HYLFL[ RLFXF",530:" 9I[RFJ[ RRFZ[ RJ[Z[",531:" 12H[LFL[ RLFYF RLPTP RL[Y[",532:" 9H\\YFK[ RKFYF RK[Y[",533:" 9G]KFK[ RYFY[ RKPYP",534:" 25G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF ROPUP",535:" 3NVRFR[",536:" 9G\\KFK[ RYFKT RPOY[",537:" 6I[RFJ[ RRFZ[",538:" 12F^JFJ[ RJFR[ RZFR[ RZFZ[",539:" 9G]KFK[ RKFY[ RYFY[",540:" 9I[KFYF ROPUP RK[Y[",541:" 22G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF",542:" 9G]KFK[ RYFY[ RKFYF",543:" 14G\\KFK[ RKFTFWGXHYJYMXOWPTQKQ",544:" 10I[KFRPK[ RKFYF RK[Y[",545:" 6JZRFR[ RKFYF",546:" 19I[KKKILGMFOFPGQIRMR[ RYKYIXGWFUFTGSIRM",547:" 21H\\RFR[ RPKMLLMKOKRLTMUPVTVWUXTYRYOXMWLTKPK",548:" 6H\\KFY[ RK[YF",549:" 18G]RFR[ RILJLKMLQMSNTQUSUVTWSXQYMZL[L",550:" 17H\\K[O[LTKPKLLINGQFSFVGXIYLYPXTU[Y[",551:" 20G[G[IZLWOSSLVFV[UXSUQSNQLQKRKTLVNXQZT[Y[",552:" 41F]SHTITLSPRSQUOXMZK[J[IZIWJRKOLMNJPHRGUFXFZG[I[KZMYNWOTP RSPTPWQXRYTYWXYWZU[R[PZOX",553:" 24H\\TLTMUNWNYMZKZIYGWFTFQGOIMLLNKRKVLYMZO[Q[TZVXWV",554:" 35G^TFRGQIPMOSNVMXKZI[G[FZFXGWIWKXMZP[S[VZXXZT[O[KZHYGWFTFRHRJSMUPWRZT\\U",555:" 28H\\VJVKWLYLZKZIYGVFRFOGNINLONPOSPPPMQLRKTKWLYMZP[S[VZXXYV",556:" 28H\\RLPLNKMINGQFTFXG[G]F RXGVNTTRXPZN[L[JZIXIVJULUNV RQPZP",557:" 29G^G[IZMVPQQNRJRGQFPFOGNINLONQOUOXNYMZKZQYVXXVZS[O[LZJXIVIT",558:" 38F^MMKLJJJIKGMFNFPGQIQKPONULYJ[H[GZGX RMRVOXN[L]J^H^G]F\\FZHXLVRUWUZV[W[YZZY\\V",559:" 25IZWVUTSQROQLQIRGSFUFVGWIWLVQTVSXQZO[M[KZJXJVKUMUOV",560:" 25JYT^R[PVOPOJPGRFTFUGVJVMURR[PaOdNfLgKfKdLaN^P\\SZWX",561:" 39F^MMKLJJJIKGMFNFPGQIQKPONULYJ[H[GZGX R^I^G]F\\FZGXIVLTNROPO RROSQSXTZU[V[XZYY[V",562:" 29I\\MRORSQVOXMYKYHXFVFUGTISNRSQVPXNZL[J[IZIXJWLWNXQZT[V[YZ[X",563:" 45@aEMCLBJBICGEFFFHGIIIKHPGTE[ RGTJLLHMGOFPFRGSISKRPQTO[ RQTTLVHWGYFZF\\G]I]K\\PZWZZ[[\\[^Z_YaV",564:" 32E]JMHLGJGIHGJFKFMGNINKMPLTJ[ RLTOLQHRGTFVFXGYIYKXPVWVZW[X[ZZ[Y]V",565:" 29H]TFQGOIMLLNKRKVLYMZO[Q[TZVXXUYSZOZKYHXGVFTFRHRKSNUQWSZU\\V",566:" 31F_SHTITLSPRSQUOXMZK[J[IZIWJRKOLMNJPHRGUFZF\\G]H^J^M]O\\PZQWQUPTO",567:" 32H^ULTNSOQPOPNNNLOIQGTFWFYGZIZMYPWSSWPYNZK[I[HZHXIWKWMXPZS[V[YZ[X",568:" 38F_SHTITLSPRSQUOXMZK[J[IZIWJRKOLMNJPHRGUFYF[G\\H]J]M\\O[PYQVQSPTQUSUXVZX[ZZ[Y]V",569:" 28H\\H[JZLXOTQQSMTJTGSFRFQGPIPKQMSOVQXSYUYWXYWZT[P[MZKXJVJT",570:" 25H[RLPLNKMINGQFTFXG[G]F RXGVNTTRXPZN[L[JZIXIVJULUNV",571:" 33E]JMHLGJGIHGJFKFMGNINKMOLRKVKXLZN[P[RZSYUUXMZF RXMWQVWVZW[X[ZZ[Y]V",572:" 32F]KMILHJHIIGKFLFNGOIOKNOMRLVLYM[O[QZTWVTXPYMZIZGYFXFWGVIVKWNYP[Q",573:" 25C_HMFLEJEIFGHFIFKGLILLK[ RUFK[ RUFS[ RaF_G\\JYNVTS[",574:" 36F^NLLLKKKILGNFPFRGSISLQUQXRZT[V[XZYXYVXUVU R]I]G\\FZFXGVITLPUNXLZJ[H[GZGX",575:" 38F]KMILHJHIIGKFLFNGOIOKNOMRLVLXMZN[P[RZTXVUWSYM R[FYMVWT]RbPfNgMfMdNaP^S[VY[V",576:" 40H]ULTNSOQPOPNNNLOIQGTFWFYGZIZMYPWTTWPZN[K[JZJXKWNWPXQYR[R^QaPcNfLgKfKdLaN^Q[TYZV",583:" 9I[JFR[ RZFR[ RJFZF",601:" 18I\\XMX[ RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",602:" 18H[LFL[ RLPNNPMSMUNWPXSXUWXUZS[P[NZLX",603:" 15I[XPVNTMQMONMPLSLUMXOZQ[T[VZXX",604:" 18I\\XFX[ RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",605:" 18I[LSXSXQWOVNTMQMONMPLSLUMXOZQ[T[VZXX",606:" 9MYWFUFSGRJR[ ROMVM",607:" 23I\\XMX]W`VaTbQbOa RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",608:" 11I\\MFM[ RMQPNRMUMWNXQX[",609:" 9NVQFRGSFREQF RRMR[",610:" 12MWRFSGTFSERF RSMS^RaPbNb",611:" 9IZMFM[ RWMMW RQSX[",612:" 3NVRFR[",613:" 19CaGMG[ RGQJNLMOMQNRQR[ RRQUNWMZM\\N]Q][",614:" 11I\\MMM[ RMQPNRMUMWNXQX[",615:" 18I\\QMONMPLSLUMXOZQ[T[VZXXYUYSXPVNTMQM",616:" 18H[LMLb RLPNNPMSMUNWPXSXUWXUZS[P[NZLX",617:" 18I\\XMXb RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",618:" 9KXOMO[ ROSPPRNTMWM",619:" 18J[XPWNTMQMNNMPNRPSUTWUXWXXWZT[Q[NZMX",620:" 9MYRFRWSZU[W[ ROMVM",621:" 11I\\MMMWNZP[S[UZXW RXMX[",622:" 6JZLMR[ RXMR[",623:" 12G]JMN[ RRMN[ RRMV[ RZMV[",624:" 6J[MMX[ RXMM[",625:" 10JZLMR[ RXMR[P_NaLbKb",626:" 9J[XMM[ RMMXM RM[X[",627:" 24H]QMONMPLRKUKXLZN[P[RZUWWTYPZM RQMSMTNUPWXXZY[Z[",628:" 31I\\UFSGQIOMNPMTLZKb RUFWFYHYKXMWNUORO RROTPVRWTWWVYUZS[Q[OZNYMV",629:" 17I\\JPLNNMOMQNROSRSVR[ RZMYPXRR[P_Ob",630:" 24I[TMQMONMPLSLVMYNZP[R[TZVXWUWRVOTMRKQIQGRFTFVGXI",631:" 19JZWOVNTMQMONOPPRSS RSSOTMVMXNZP[S[UZWX",632:" 23JYTFRGQHQIRJUKXK RXKTMQONRMUMWNYP[S]T_TaSbQbP`",633:" 19H\\IQJOLMNMONOPNTL[ RNTPPRNTMVMXOXRWWTb",634:" 27G\\HQIOKMMMNNNPMUMXNZO[Q[SZUWVUWRXMXJWGUFSFRHRJSMUPWRZT",635:" 9LWRMPTOXOZP[R[TYUW",636:" 19I[OMK[ RYNXMWMUNQROSNS RNSPTQUSZT[U[VZ",637:" 9JZKFMFOGPHX[ RRML[",638:" 21H]OMIb RNQMVMYO[Q[SZUXWT RYMWTVXVZW[Y[[Y\\W",639:" 14I[LMOMNSMXL[ RYMXPWRUURXOZL[",640:" 29JZTFRGQHQIRJUKXK RUKRLPMOOOQQSTTVT RTTPUNVMXMZO\\S^T_TaRbPb",641:" 18J[RMPNNPMSMVNYOZQ[S[UZWXXUXRWOVNTMRM",642:" 13G]PML[ RUMVSWXX[ RIPKNNM[M",643:" 19I[MSMVNYOZQ[S[UZWXXUXRWOVNTMRMPNNPMSIb",644:" 18I][MQMONMPLSLVMYNZP[R[TZVXWUWRVOUNSM",645:" 8H\\SMP[ RJPLNOMZM",646:" 16H\\IQJOLMNMONOPMVMYO[Q[TZVXXTYPYM",647:" 21G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb",648:" 14I[KMMMOOU`WbYb RZMYOWRM]K`Jb",649:" 20F]VFNb RGQHOJMLMMNMPLULXMZO[Q[TZVXXUZP[M",650:" 23F]NMLNJQITIWJZK[M[OZQW RRSQWRZS[U[WZYWZTZQYNXM",651:" 22L\\UUTSRRPRNSMTLVLXMZO[Q[SZTXVRUWUZV[W[YZZY\\V",652:" 23M[MVOSRNSLTITGSFQGPIOMNTNZO[P[RZTXUUURVVWWYW[V",653:" 14MXTTTSSRQROSNTMVMXNZP[S[VYXV",654:" 24L\\UUTSRRPRNSMTLVLXMZO[Q[SZTXZF RVRUWUZV[W[YZZY\\V",655:" 17NXOYQXRWSUSSRRQROSNUNXOZQ[S[UZVYXV",656:" 24OWOVSQUNVLWIWGVFTGSIQQNZKaJdJfKgMfNcOZP[R[TZUYWV",657:" 28L[UUTSRRPRNSMTLVLXMZO[Q[SZTY RVRTYPdOfMgLfLdMaP^S\\U[XY[V",658:" 29M\\MVOSRNSLTITGSFQGPIOMNSM[ RM[NXOVQSSRURVSVUUXUZV[W[YZZY\\V",659:" 16PWSMSNTNTMSM RPVRRPXPZQ[R[TZUYWV",660:" 20PWSMSNTNTMSM RPVRRLdKfIgHfHdIaL^O\\Q[TYWV",661:" 33M[MVOSRNSLTITGSFQGPIOMNSM[ RM[NXOVQSSRURVSVUTVQV RQVSWTZU[V[XZYY[V",662:" 18OWOVQSTNULVIVGUFSGRIQMPTPZQ[R[TZUYWV",663:" 33E^EVGSIRJSJTIXH[ RIXJVLSNRPRQSQTPXO[ RPXQVSSURWRXSXUWXWZX[Y[[Z\\Y^V",664:" 23J\\JVLSNROSOTNXM[ RNXOVQSSRURVSVUUXUZV[W[YZZY\\V",665:" 23LZRRPRNSMTLVLXMZO[Q[SZTYUWUUTSRRQSQURWTXWXYWZV",666:" 24KZKVMSNQMUGg RMUNSPRRRTSUUUWTYSZQ[ RMZO[R[UZWYZV",667:" 27L[UUTSRRPRNSMTLVLXMZO[Q[SZ RVRUUSZPaOdOfPgRfScS\\U[XY[V",668:" 15MZMVOSPQPSSSTTTVSYSZT[U[WZXYZV",669:" 16NYNVPSQQQSSVTXTZR[ RNZP[T[VZWYYV",670:" 16OXOVQSSO RVFPXPZQ[S[UZVYXV RPNWN",671:" 19L[LVNRLXLZM[O[QZSXUU RVRTXTZU[V[XZYY[V",672:" 17L[LVNRMWMZN[O[RZTXUUUR RURVVWWYW[V",673:" 25I^LRJTIWIYJ[L[NZPX RRRPXPZQ[S[UZWXXUXR RXRYVZW\\W^V",674:" 20JZJVLSNRPRQSQZR[U[XYZV RWSVRTRSSOZN[L[KZ",675:" 23L[LVNRLXLZM[O[QZSXUU RVRPdOfMgLfLdMaP^S\\U[XY[V",676:" 23LZLVNSPRRRTTTVSXQZN[P\\Q^QaPdOfMgLfLdMaP^S\\WYZV",677:" 22J\\K[NZQXSVUSWOXKXIWGUFSGRHQJPOPTQXRZT[V[XZYY",683:" 26I[WUWRVOUNSMQMONMPLSLVMYNZP[R[TZVXWUXPXKWHVGTFRFPGNI",684:" 16JZWNUMRMPNNPMSMVNYOZQ[T[VZ RMTUT",685:" 23J[TFRGPJOLNOMTMXNZO[Q[SZUWVUWRXMXIWGVFTF RNPWP",686:" 21H\\VFNb RQMNNLPKSKVLXNZQ[S[VZXXYUYRXPVNSMQM",687:" 16I[XOWNTMQMNNMOLQLSMUOWSZT\\T^S_Q_",700:" 18H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF",701:" 5H\\NJPISFS[",702:" 15H\\LKLJMHNGPFTFVGWHXJXLWNUQK[Y[",703:" 16H\\MFXFRNUNWOXPYSYUXXVZS[P[MZLYKW",704:" 7H\\UFKTZT RUFU[",705:" 18H\\WFMFLOMNPMSMVNXPYSYUXXVZS[P[MZLYKW",706:" 24H\\XIWGTFRFOGMJLOLTMXOZR[S[VZXXYUYTXQVOSNRNOOMQLT",707:" 6H\\YFO[ RKFYF",708:" 30H\\PFMGLILKMMONSOVPXRYTYWXYWZT[P[MZLYKWKTLRNPQOUNWMXKXIWGTFPF",709:" 24H\\XMWPURRSQSNRLPKMKLLINGQFRFUGWIXMXRWWUZR[P[MZLX",710:" 6MWRYQZR[SZRY",711:" 9MWSZR[QZRYSZS\\R^Q_",712:" 12MWRMQNROSNRM RRYQZR[SZRY",713:" 15MWRMQNROSNRM RSZR[QZRYSZS\\R^Q_",714:" 9MWRFRT RRYQZR[SZRY",715:" 21I[LKLJMHNGPFTFVGWHXJXLWNVORQRT RRYQZR[SZRY",716:" 3NVRFRM",717:" 6JZNFNM RVFVM",718:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",719:" 27H\\PBP_ RTBT_ RYIWGTFPFMGKIKKLMMNOOUQWRXSYUYXWZT[P[MZKX",720:" 3G][BIb",721:" 11KYVBTDRGPKOPOTPYR]T`Vb",722:" 11KYNBPDRGTKUPUTTYR]P`Nb",723:" 3NVRBRb",724:" 3E_IR[R",725:" 6E_RIR[ RIR[R",726:" 6E_IO[O RIU[U",727:" 6G]KKYY RYKKY",728:" 9JZRLRX RMOWU RWOMU",729:" 6MWRQQRRSSRRQ",730:" 8MWSFRGQIQKRLSKRJ",731:" 8MWRHQGRFSGSIRKQL",732:" 9E_UMXP[RXTUW RIR[R",733:" 12H]SBLb RYBRb RLOZO RKUYU",734:" 35E_\\O\\N[MZMYNXPVUTXRZP[L[JZIYHWHUISJRQNRMSKSIRGPFNGMIMKNNPQUXWZY[[[\\Z\\Y",735:" 28G]IIJKKOKUJYI[ R[IZKYOYUZY[[ RIIKJOKUKYJ[I RI[KZOYUYYZ[[",737:" 6KYOBO[ RUBU[",738:" 6F^RBR[ RI[[[",739:" 4F^[BI[[[",740:" 18E_RIQJRKSJRI RIYHZI[JZIY R[YZZ[[\\Z[Y",741:" 33F^RHNLKPJSJUKWMXOXQWRU RRHVLYPZSZUYWWXUXSWRU RRUQYP\\ RRUSYT\\ RP\\T\\",742:" 26F^RNQKPINHMHKIJKJOKRLTNWR\\ RRNSKTIVHWHYIZKZOYRXTVWR\\",743:" 20F^RGPJLOIR RRGTJXO[R RIRLUPZR] R[RXUTZR]",744:" 48F^RTTWVXXXZW[U[SZQXPVPSQ RSQUOVMVKUISHQHOINKNMOOQQ RQQNPLPJQISIUJWLXNXPWRT RRTQYP\\ RRTSYT\\ RP\\T\\",745:" 55F^RRR[Q\\ RRVQ\\ RRIQHOHNINKONRR RRISHUHVIVKUNRR RRRNOLNJNIOIQJR RRRVOXNZN[O[QZR RRRNULVJVIUISJR RRRVUXVZV[U[SZR",746:" 55F^ISJSLTMVMXLZ RISIRJQLQMRNTNWMYLZ RRGPIOLOOQUQXPZR\\ RRGTIULUOSUSXTZR\\ R[S[RZQXQWRVTVWWYXZ R[SZSXTWVWXXZ RKVYV",750:" 18PSSRRSQSPRPQQPRPSQSSRUQV RQQQRRRRQQQ",751:" 16PTQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",752:" 9NVPOTU RTOPU RNRVR",753:" 28MWRKQMOPMR RRKSMUPWR RRMOQ RRMUQ RROPQ RROTQ RQQSQ RMRWR",754:" 26MWMRMQNOONQMSMUNVOWQWR RPNTN ROOUO RNPVP RNQVQ RMRWR",755:" 14LRLFLRRRLF RLIPQ RLLOR RLOMQ",756:" 10MWRKQMOPMR RRKSMUPWR",757:" 11MWWRWQVOUNSMQMONNOMQMR",758:" 13G]]R]P\\MZJWHTGPGMHJJHMGPGR",759:" 11MWMRMSNUOVQWSWUVVUWSWR",760:" 7LXLPNRQSSSVRXP",761:" 6RURUTTURTPRO",762:" 7RVRRUPVNVLUKTK",763:" 7NRRROPNNNLOKPK",764:" 21MWWHVGTFQFOGNHMJMLNNOOUSVTWVWXVZU[S\\P\\N[MZ",765:" 21G]IWHVGTGQHOINKMMMONPOTUUVWWYW[V\\U]S]P\\N[M",766:" 31G]RRTUUVWWYW[V\\U]S]Q\\O[NYMWMUNTOPUOVMWKWIVHUGSGQHOINKMMMONPORR",767:" 22H\\KFK[ RHF[FQP[Z RZV[Y\\[ RZVZY RWYZY RWYZZ\\[",768:" 30KYUARBPCNELHKLKRLUNWQXSXVWXUYR RKPLMNKQJSJVKXMYPYVXZV]T_R`Oa",796:" 3>f>RfR",797:" 3D`D``D",798:" 3RRR>Rf",799:" 3D`DD``",800:" 3D`DR`R",801:" 3F^FY^K",802:" 3KYK^YF",803:" 3RRRDR`",804:" 3KYKFY^",805:" 3F^FK^Y",806:" 3KYKRYR",807:" 3MWMWWM",808:" 3RRRKRY",809:" 3MWMMWW",810:" 8GRRGPGMHJJHMGPGR",811:" 8GRGRGTHWJZM\\P]R]",812:" 8R]R]T]W\\ZZ\\W]T]R",813:" 8R]]R]P\\MZJWHTGRG",814:" 9D`DOGQKSPTTTYS]Q`O",815:" 9PUUDSGQKPPPTQYS]U`",816:" 9OTODQGSKTPTTSYQ]O`",817:" 9D`DUGSKQPPTPYQ]S`U",818:" 5KYRJYNKVRZ",819:" 5JZJRNKVYZR",820:" 5KYKVKNYVYN",821:" 5JZLXJPZTXL",822:" 23JZJ]L]O\\Q[TXUVVSVOULTJSIQIPJOLNONSOVPXS[U\\X]Z]",823:" 23I]]Z]X\\U[SXPVOSNONLOJPIQISJTLUOVSVVUXT[Q\\O]L]J",824:" 23JZZGXGUHSIPLONNQNUOXPZQ[S[TZUXVUVQUNTLQIOHLGJG",825:" 23G[GJGLHOIQLTNUQVUVXUZT[S[QZPXOUNQNNOLPISHUGXGZ",826:" 21E[EPFRHTJUMVQVUUXSZP[NZLWLSMQNNPLSKVKYL\\M^",827:" 19EYETHVKWPWSVVTXQYNYLXKVKSLPNNQMTMYN\\P_",828:" 26OUQOOQOSQUSUUSUQSOQO RQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",829:" 11RWRMSMUNVOWQWSVUUVSWRW",830:" 9D`DRJR RORUR RZR`R",831:" 5D`DUDO`O`U",832:" 6JZRDJR RRDZR",833:" 9D`DR`R RJYZY RP`T`",834:" 9D`DR`R RDRRb R`RRb",840:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",841:" 6LXLLLXXXXLLL",842:" 5KYRJKVYVRJ",843:" 6LXRHLRR\\XRRH",844:" 12JZRIPOJOOSMYRUWYUSZOTORI",845:" 6KYRKRY RKRYR",846:" 6MWMMWW RWMMW",847:" 9MWRLRX RMOWU RWOMU",850:" 35NVQNOONQNSOUQVSVUUVSVQUOSNQN ROQOS RPPPT RQOQU RRORU RSOSU RTPTT RUQUS",851:" 27NVNNNVVVVNNN ROOOU RPOPU RQOQU RRORU RSOSU RTOTU RUOUU",852:" 17MWRLMUWURL RROOT RROUT RRRQT RRRST",853:" 17LULRUWUMLR RORTU RORTO RRRTS RRRTQ",854:" 17MWRXWOMORX RRUUP RRUOP RRRSP RRRQP",855:" 17OXXROMOWXR RURPO RURPU RRRPQ RRRPS",856:" 22LXRLNWXPLPVWRL RRRRL RRRLP RRRNW RRRVW RRRXP",857:" 11RYRKRY RRKYNRQ RSMVNSO",860:" 13MWRLRX ROOUO RMUOWQXSXUWWU",861:" 11LXRLRX RLQMOWOXQ RPWTW",862:" 14KYMNWX RWNMX ROLLOKQ RULXOYQ",863:" 18I[NII[ RVI[[ RMM[[ RWMI[ RNIVI RMMWM",864:" 21I[RGRV RMJWP RWJMP RIVL\\ R[VX\\ RIV[V RL\\X\\",865:" 11G[MJSV RKPSL RG\\[\\[RG\\",866:" 14LXPLPPLPLTPTPXTXTTXTXPTPTLPL",867:" 32KYYPXNVLSKQKNLLNKQKSLVNXQYSYVXXVYT RYPWNUMSMQNPOOQOSPUQVSWUWWVYT",868:" 10KYRJKVYVRJ RRZYNKNRZ",869:" 34G]PIPGQFSFTGTI RGZHXJVKTLPLKMJOIUIWJXKXPYTZV\\X]Z RGZ]Z RQZP[Q\\S\\T[SZ",870:" 64JZRMRS RRSQ\\ RRSS\\ RQ\\S\\ RRMQJPHNG RQJNG RRMSJTHVG RSJVG RRMNKLKJM RPLLLJM RRMVKXKZM RTLXLZM RRMPNOOOR RRMPOOR RRMTNUOUR RRMTOUR",871:" 94JZRIRK RRNRP RRSRU RRYQ\\ RRYS\\ RQ\\S\\ RRGQIPJ RRGSITJ RPJRITJ RRKPNNOMN RRKTNVOWN RNOPORNTOVO RRPPSNTLTKRKSLT RRPTSVTXTYRYSXT RNTPTRSTTVT RRUPXOYMZLZKYJWJYLZ RRUTXUYWZXZYYZWZYXZ RMZOZRYUZWZ",872:" 40JZRYQ\\ RRYS\\ RQ\\S\\ RRYUZXZZXZUYTWTYRZOYMWLUMVJUHSGQGOHNJOMMLKMJOKRMTKTJUJXLZOZRY",873:" 32JZRYQ\\ RRYS\\ RQ\\S\\ RRYVXVVXUXRZQZLYIXHVHTGPGNHLHKIJLJQLRLUNVNXRY",874:" 15I[IPKR RLKNP RRGRO RXKVP R[PYR",899:" 6QSRQQRRSSRRQ",900:" 10PTQPPQPSQTSTTSTQSPQP",901:" 14NVQNOONQNSOUQVSVUUVSVQUOSNQN",902:" 18MWQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM",903:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",904:" 22G]PGMHJJHMGPGTHWJZM\\P]T]W\\ZZ\\W]T]P\\MZJWHTGPG",905:" 34AcPALBJCGEEGCJBLAPATBXCZE]G_JaLbPcTcXbZa]__]aZbXcTcPbLaJ_G]EZCXBTAPA",906:" 34<hP<K=G?DAAD?G=K<P<T=Y?]A`DcGeKgPhThYg]e`cc`e]gYhThPgKeGcD`A]?Y=T<P<",907:" 50){O)I*E+@-;073370;-@+E*I)O)U*[+_-d0i3m7q;t@wEyIzO{U{[z_ydwitmqqmtiwdy_z[{U{OzIyEw@t;q7m3i0d-_+[*U)O)",908:" 34>fRAPCMDJDGCEA>H@JAMAZB]D_G`M`PaRc RRATCWDZD]C_AfHdJcMcZb]`_]`W`TaRc",909:" 33AcRAPCMDJDGCEABGAKAPBTDXG\\L`Rc RRATCWDZD]C_AbGcKcPbT`X]\\X`Rc RBHbH",997:" 3MWMXWX",998:" 3JZJZZZ",999:" 3JZJ]Z]",1001:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1002:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1003:" 24KYVLWKWOVLTKQKOLNMMPMSNVOWQXTXVWWU RQKOMNPNSOVQX",1004:" 26JZNKNX ROKOX RLKSKVLWMXPXSWVVWSXLX RSKULVMWPWSVVUWSX",1005:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1006:" 20JXNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXQX",1007:" 36K[VLWKWOVLTKQKOLNMMPMSNVOWQXTXVW RQKOMNPNSOVQX RTXUWVU RVSVX RWSWX RTSYS",1008:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1009:" 12NWRKRX RSKSX RPKUK RPXUX",1010:" 19LXSKSURWQX RTKTUSWQXPXNWMUNTOUNV RQKVK",1011:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1012:" 14KXOKOX RPKPX RMKRK RMXWXWTVX",1013:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1014:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1015:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1016:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1017:" 47KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RPWPUQTSTTUUZV[W[XZ RTUUXVZW[",1018:" 37JZNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX RSRTSUWVXWXXW RSRUSVWWX",1019:" 32KZVMWKWOVMULSKQKOLNMNOOPQQTRVSWT RNNOOQPTQVRWSWVVWTXRXPWOVNTNXOV",1020:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1021:" 20J[NKNUOWQXTXVWWUWK ROKOUPWQX RLKQK RUKYK",1022:" 15KYMKRX RNKRU RWKRX RKKPK RTKYK",1023:" 24I[LKOX RMKOT RRKOX RRKUX RSKUT RXKUX RJKOK RVKZK",1024:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1025:" 20LYNKRRRX ROKSR RWKSRSX RLKQK RTKYK RPXUX",1026:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1027:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1028:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1029:" 14KXOKOX RPKPX RMKWKWOVK RMXRX",1030:" 15KYRKLX RRMWX RRKXX RMWVW RLXXX",1031:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1032:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1033:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1034:" 44KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RQOQT RTOTT RQQTQ RQRTR",1035:" 12NWRKRX RSKSX RPKUK RPXUX",1036:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1037:" 15KYRKMX RRNVX RRKWX RKXPX RTXYX",1038:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1039:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1040:" 36JZMJLM RXJWM RPPOS RUPTS RMVLY RXVWY RMKWK RMLWL RPQTQ RPRTR RMWWW RMXWX",1041:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1042:" 21J[NKNX ROKOX RVKVX RWKWX RLKYK RLXQX RTXYX",1043:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1044:" 20K[MKRQ RNKSQMX RMKWKXOVK RNWWW RMXWXXTVX",1045:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1046:" 33KZMONLOKPKQLRORX RXOWLVKUKTLSOSX RMONMOLPLQMRO RXOWMVLULTMSO RPXUX",1047:" 40KZRKRX RSKSX RQNNOMQMRNTQUTUWTXRXQWOTNQN RQNOONQNROTQU RTUVTWRWQVOTN RPKUK RPXUX",1048:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1049:" 33J[RKRX RSKSX RLPMONOOSQU RTUVSWOXOYP RMONROTQUTUVTWRXO RPKUK RPXUX",1050:" 35KZMVNXQXMRMONMOLQKTKVLWMXOXRTXWXXV ROUNRNOOMQK RTKVMWOWRVU RNWPW RUWWW",1051:" 18KYTKKX RSMTX RTKUX RNTTT RIXNX RRXWX",1052:" 34JYPKLX RQKMX RNKUKWLWNVPSQ RUKVLVNUPSQ ROQRQTRUSUUTWQXJX RRQTSTUSWQX",1053:" 25KXVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUU RRKPMOONRNVPX",1054:" 26JYPKLX RQKMX RNKTKVLWNWQVTUVTWQXJX RTKULVNVQUTTVSWQX",1055:" 22JYPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXTXUUSX",1056:" 20JXPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXOX",1057:" 33KYVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUVVS RRKPMOONRNVPX RRXTVUS RSSXS",1058:" 27J[PKLX RQKMX RXKTX RYKUX RNKSK RVK[K ROQVQ RJXOX RRXWX",1059:" 12NWTKPX RUKQX RRKWK RNXSX",1060:" 19LXUKRUQWPX RVKSURWPXOXMWLUMTNUMV RSKXK",1061:" 27JZPKLX RQKMX RYKOR RRPTX RSPUX RNKSK RVK[K RJXOX RRXWX",1062:" 14KXQKMX RRKNX ROKTK RKXUXVUTX",1063:" 30I\\OKKX ROMPX RPKQV RYKPX RYKUX RZKVX RMKPK RYK\\K RIXMX RSXXX",1064:" 21JZPKLX RPKTX RQKTU RXKTX RNKQK RVKZK RJXNX",1065:" 32KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK",1066:" 24JYPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RJXOX",1067:" 46KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK ROWOVPUQURVRZS[T[UZ RRVSZT[",1068:" 35JZPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RSRTWUXVXWW RSRTSUWVX RJXOX",1069:" 28KZWLXLYKXNWLUKRKPLOMOOPPUSVT RONPOURVSVVUWSXPXNWMULXMWNW",1070:" 16KZTKPX RUKQX RPKNNOKZKYNYK RNXSX",1071:" 20J[PKMUMWOXSXUWVUYK RQKNUNWOX RNKSK RWK[K",1072:" 15KYOKPX RPKQV RYKPX RMKRK RVK[K",1073:" 24I[NKMX ROKNV RTKMX RTKSX RUKTV RZKSX RLKQK RXK\\K",1074:" 21KZPKTX RQKUX RYKLX RNKSK RVK[K RJXOX RRXWX",1075:" 20LYPKRQPX RQKSQ RYKSQQX RNKSK RVK[K RNXSX",1076:" 16LYXKLX RYKMX RQKONPKYK RLXUXVUTX",1101:" 32LZQOPPPQOQOPQOTOVQVWWXXX RTOUQUWWX RURRSPTOUOWPXSXTWUU RRSPUPWQX",1102:" 29JYNKNX ROKOX RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLKOK",1103:" 24LXVQUQURVRVQUPSOQOOPNRNUOWQXSXUWVV RQOPPOROUPWQX",1104:" 32L[VKVX RWKWX RVRUPSOQOOPNRNUOWQXSXUWVU RQOPPOROUPWQX RTKWK RVXYX",1105:" 26LXOSVSVRUPSOQOOPNRNUOWQXSXUWVV RUSUQSO RQOPPOROUPWQX",1106:" 20LWTKULUMVMVLTKRKPMPX RRKQMQX RNOSO RNXSX",1107:" 42LYQOOQOSQUSUUSUQSOQO RQOPQPSQU RSUTSTQSO RTPUOVO RPTOUOXPYTYVZ ROWPXTXVYV[T\\P\\N[NYPX",1108:" 28J[NKNX ROKOX RORPPROTOVPWRWX RTOUPVRVX RLKOK RLXQX RTXYX",1109:" 18NWRKRLSLSKRK RRORX RSOSX RPOSO RPXUX",1110:" 23NWSKSLTLTKSK RSOSZR\\ RTOTZR\\P\\O[OZPZP[O[ RQOTO",1111:" 27JZNKNX ROKOX RWOOU RRSVX RSSWX RLKOK RTOYO RLXQX RTXYX",1112:" 12NWRKRX RSKSX RPKSK RPXUX",1113:" 44F_JOJX RKOKX RKRLPNOPORPSRSX RPOQPRRRX RSRTPVOXOZP[R[X RXOYPZRZX RHOKO RHXMX RPXUX RXX]X",1114:" 28J[NONX ROOOX RORPPROTOVPWRWX RTOUPVRVX RLOOO RLXQX RTXYX",1115:" 28LYQOOPNRNUOWQXTXVWWUWRVPTOQO RQOPPOROUPWQX RTXUWVUVRUPTO",1116:" 32JYNON\\ ROOO\\ RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLOOO RL\\Q\\",1117:" 29KYUOU\\ RVOV\\ RURTPROPONPMRMUNWPXRXTWUU RPOOPNRNUOWPX RS\\X\\",1118:" 22KXOOOX RPOPX RPRQPSOUOVPVQUQUPVP RMOPO RMXRX",1119:" 26LYTOUPUQVQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWOVPVPWQX",1120:" 14LWPKPVRXTXUWUV RQKQVRX RNOTO",1121:" 28J[NONUOWQXSXUWVU ROOOUPWQX RVOVX RWOWX RLOOO RTOWO RVXYX",1122:" 15KYNORX ROORV RVORX RLOQO RTOXO",1123:" 24I[LOOX RMOOU RROOX RROUX RSOUU RXOUX RJOOO RVOZO",1124:" 21KYNOUX ROOVX RVONX RLOQO RTOXO RLXPX RSXXX",1125:" 23KYNORX ROORV RVORXP[N\\M\\L[LZMZM[L[ RLOQO RTOXO",1126:" 16LXUONX RVOOX ROONQNOVO RNXVXVVUX",1127:" 32K[QOOPNQMSMUNWPXQXSWUUWRXO RQOOQNSNUOWPX RQOSOUPWWXX RSOTPVWXXYX",1128:" 40KXRKPMOOMUK\\ RQLPNNTL\\ RRKTKVLVNUPRQ RTKULUNTPRQ RRQTRUTUVTWRXQXOWNT RRQSRTTTVRX",1129:" 19KYLQNOPORPSSSXR\\ RLQNPPPRQSS RWOVRSXQ\\",1130:" 39KYSOQOOPNQMSMUNWPXRXTWUVVTVRUPRNQLQKRJTJUKVM RQOOQNSNVPX RRXTVUTUQSO RQLRKTKVM",1131:" 27LXVPTOQOOPOQPRRS RQOPPPQRS RRSOTNUNWPXSXUW RRSPTOUOWPX",1132:" 28LWRKQLQMSNVNVMSNPOOPNRNTOVPWRXSYS[R\\P\\O[ RSNQOPPOROTPVRX",1133:" 26IYJRKPLONOOPOQMX RMONPNQLX ROQPPROTOVPVRS\\ RTOUPURR\\",1134:" 35IYJSKQLPNPOQOVPX RMPNQNUOWPXQXSWTVUTVQVNULTKRKQLQNRPURWS RQXSVTTUQUNTK",1135:" 13NWROPVPWQXSXUWVU RSOQVQWRX",1136:" 26KYOOLX RPOMX RUOVPWPVOTORQOR RORPSRWTXVWWU RORQSSWTX",1137:" 15LXLKNKPLWX RNKOLVX RRPMX RRPNX",1138:" 26KZOOK\\ RPOL\\ RNUNWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1139:" 19JYNOMX ROONUMX RVRVOWOVRTUQWNXMX RLOOO",1140:" 36MXRKQLQMSNVN RTNQOPPPRRSUS RTNROQPQRRS RSSPTOUOWQXSYTZT[S\\Q\\ RSSQTPUPWQX",1141:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1142:" 20IZPPMX RPPNX RTPSX RTPTX RKQMOXO RKQMPXP",1143:" 29JXSOQOOPNQMSJ\\ RQOOQNSK\\ RSOUPVRVTUVTWRXPXNWMU RSOUQUTTVRX",1144:" 28K[YOQOOPNQMSMUNWPXRXTWUVVTVRUPYP RQOOQNSNVPX RRXTVUTUQSO",1145:" 14KZSPQX RSPRX RMQOOXO RMQOPXP",1146:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1147:" 35KZOPNQMSMUNWPXRXUWWUXRXPWOUOTPSRRUO\\ RMUNVPWRWUVWTXR RXQWPUPSR RRUQXP\\",1148:" 17KXMONOPPS[T\\ RNOOPR[T\\U\\ RVOTRNYL\\",1149:" 28I[TKQ\\ RUKP\\ RJRKPLONOOPOVPWSWUVWT RMONPNTOWPXSXUWWTXRYO",1150:" 36JZNPPPPONPMQLSLUMWNXPXQWRUSR RLUNWPWRU RRRRWSXUXWVXTXRWPVOVPWP RRUSWUWWV",1151:" 32KZVOTVTWUXWXXWYU RWOUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1152:" 32JXOKMR RPKNRNVPX RNROPQOSOUPVRVTUVTWRXPXNWMUMR RSOUQUTTVRX RMKPK",1153:" 22KXUPUQVQUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1154:" 35KZWKTVTWUXWXXWYU RXKUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RUKXK",1155:" 23KWNURTTSURUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1156:" 23MXWKXLXKVKTLSNPYO[N\\ RVKULTNQYP[N\\L\\L[M\\ RPOVO",1157:" 34KYVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1158:" 29KZPKLX RQKMX ROQPPROTOVPVRUUUWVX RTOUPURTUTWUXWXXWYU RNKQK",1159:" 26MWSKSLTLTKSK RNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1160:" 26MWTKTLULUKTK RORPPQOSOTPTRRYQ[O\\M\\M[N\\ RROSPSRQYP[O\\",1161:" 32KXPKLX RQKMX RVPUQVQVPUOTORQPROR RORPSQWRXTXUWVU RORQSRWSX RNKQK",1162:" 16NVSKPVPWQXSXTWUU RTKQVQWRX RQKTK",1163:" 46F^GRHPIOKOLPLQJX RJOKPKQIX RLQMPOOQOSPSQQX RQORPRQPX RSQTPVOXOZPZRYUYWZX RXOYPYRXUXWYX[X\\W]U",1164:" 33J[KRLPMOOOPPPQNX RNOOPOQMX RPQQPSOUOWPWRVUVWWX RUOVPVRUUUWVXXXYWZU",1165:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1166:" 35JYKRLPMOOOPPPQM\\ RNOOPOQL\\ RPQROTOVPWRWTVVUWSXQXOVOT RTOVQVTUVSX RJ\\O\\",1167:" 28KYVOR\\ RWOS\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RP\\U\\",1168:" 22LXMRNPOOQORPRQPX RPOQPQQOX RRQSPUOVOWPWQVQWP",1169:" 24LYVPVQWQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWNVOVOW",1170:" 16NWSKPVPWQXSXTWUU RTKQVQWRX RPOUO",1171:" 33IZJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1172:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1173:" 37H\\IRJPKOMONPNRMUMWNX RLOMPMRLULWNXOXQWRV RTORVRWTX RUOSVSWTXUXWWYUZRZOYOZP",1174:" 38JZMRNPPOROSPSR RQORPRRQUPWNXMXLWLVMVLW RXPWQXQXPWOVOTPSRRURWSX RQUQWRXTXVWWU",1175:" 35IYJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\",1176:" 27KYWOWPVQNVMWMX RNQOOROUQ ROPRPUQVQ RNVOVRWUW ROVRXUXVV",1177:" 39H[RKSLSMTMTLRKOKMLLNLX ROKNLMNMX RXKYLYMZMZLXKVKTMTX RVKUMUX RJOWO RJXOX RRXWX",1178:" 29J[UKVLWLWKQKOLNNNX RQKPLONOX RVOVX RWOWX RLOWO RLXQX RTXYX",1179:" 27J[WKQKOLNNNX RQKPLONOX RUKVLVX RWKWX RLOVO RLXQX RTXYX",1180:" 48F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX RYKZL[L[KUKSLRNRX RUKTLSNSX RZOZX R[O[X RHO[O RHXMX RPXUX RXX]X",1181:" 46F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX R[KUKSLRNRX RUKTLSNSX RYKZLZX R[K[X RHOZO RHXMX RPXUX RXX]X",1182:" 12NWRORX RSOSX RPOSO RPXUX",1184:" 21LXVPTOROPPOQNSNUOWQXSXUW RROPQOSOVQX ROSSS",1185:" 35LYSKQLPMOONRNUOWPXRXTWUVVTWQWNVLUKSK RSKQMPOOSOVPX RRXTVUTVPVMUK ROQVQ",1186:" 34KZTKQ\\ RUKP\\ RQONPMRMUNWQXTXWWXUXRWPTOQO RQOOPNRNUOWQX RTXVWWUWRVPTO",1187:" 22LXUPVRVQUPSOQOOPNRNTOVRX RQOOQOTPVRXSYS[R\\P\\",1191:" 45I[VKWLXLVKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RZK[L[KYKWLVNSYR[Q\\ RYKXLWNTYS[Q\\O\\O[P\\ RLOYO",1192:" 38IZVKWLXLXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RVOTVTWUXWXXWYU RWOUVUWVX RLOWO",1193:" 38IZVKWL RXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RWKTVTWUXWXXWYU RXKUVUWVX RLOVO",1194:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L\\L\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ RZOXVXWYX[X\\W]U R[OYVYWZX RIO[O",1195:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L R\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ R[KXVXWYX[X\\W]U R\\KYVYWZX RIOZO",1196:" 20MWNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1200:" 28LYQKOLNONTOWQXTXVWWTWOVLTKQK RQKPLOOOTPWQX RTXUWVTVOULTK",1201:" 10LYPNSKSX RRLRX ROXVX",1202:" 35LYOMONNNNMOLQKTKVLWNVPTQQROSNUNX RTKULVNUPTQ RNWOVPVSWVWWV RPVSXVXWVWU",1203:" 39LYOMONNNNMOLQKTKVLWNVPTQ RTKULVNUPTQ RRQTQVRWTWUVWTXQXOWNVNUOUOV RTQURVTVUUWTX",1204:" 13LYSMSX RTKTX RTKMTXT RQXVX",1205:" 33LYOKNQ ROKVK ROLSLVK RNQOPQOTOVPWRWUVWTXQXOWNVNUOUOV RTOUPVRVUUWTX",1206:" 36LYVMVNWNWMVLTKRKPLOMNPNUOWQXTXVWWUWSVQTPQPNR RRKPMOPOUPWQX RTXUWVUVSUQTP",1207:" 22LYNKNO RVMRTPX RWKTQQX RNMPKRKUM RNMPLRLUMVM",1208:" 51LYQKOLNNOPQQTQVPWNVLTKQK RQKPLONPPQQ RTQUPVNULTK RQQORNTNUOWQXTXVWWUWTVRTQ RQQPROTOUPWQX RTXUWVUVTURTQ",1209:" 36LYOVOUNUNVOWQXSXUWVVWSWNVLTKQKOLNNNPORQSTSWQ RSXUVVSVNULTK RQKPLONOPPRQS",1210:" 6NVRVQWRXSWRV",1211:" 8NVSWRXQWRVSWSYQ[",1212:" 12NVROQPRQSPRO RRVQWRXSWRV",1213:" 14NVROQPRQSPRO RSWRXQWRVSWSYQ[",1214:" 15NVRKQLRSSLRK RRLRO RRVQWRXSWRV",1215:" 29LYNNONOONONNOLQKTKVLWNWOVQSRRSRTST RTKVMVPUQSR RRWRXSXSWRW",1216:" 6OVRKRP RSKRP",1217:" 12LXOKOP RPKOP RUKUP RVKUP",1218:" 10MWQKPLPNQOSOTNTLSKQK",1219:" 9MWRJRP ROKUO RUKOO",1220:" 3KZXHM\\",1221:" 16MWUHSJQMPPPTQWSZU\\ RSJRLQPQTRXSZ",1222:" 16MWOHQJSMTPTTSWQZO\\ RQJRLSPSTRXQZ",1223:" 12MWPHP\\ RQHQ\\ RPHUH RP\\U\\",1224:" 12MWSHS\\ RTHT\\ ROHTH RO\\T\\",1225:" 38LWSHQIPJPLRNSP RQIPL RSNRQ RPJQLSNSPRQPRRSSTSVQXPZ RRSSV RPXQ[ RSTRVPXPZQ[S\\",1226:" 38MXQHSITJTLRNQP RSITL RQNRQ RTJSLQNQPRQTRRSQTQVSXTZ RRSQV RTXS[ RQTRVTXTZS[Q\\",1227:" 4MWTHPRT\\",1228:" 4MWPHTRP\\",1229:" 3OURHR\\",1230:" 6MWPHP\\ RTHT\\",1231:" 3I[LRXR",1232:" 6I[RLRX RLRXR",1233:" 9JZRMRX RMRWR RMXWX",1234:" 9JZRMRX RMMWM RMRWR",1235:" 6JZMMWW RWMMW",1236:" 6NVRQQRRSSRRQ",1237:" 15I[RLQMRNSMRL RLRXR RRVQWRXSWRV",1238:" 6I[LPXP RLTXT",1239:" 9I[WLMX RLPXP RLTXT",1240:" 9I[LNXN RLRXR RLVXV",1241:" 4JZWLMRWX",1242:" 4JZMLWRMX",1243:" 10JZWKMOWS RMTWT RMXWX",1244:" 10JZMKWOMS RMTWT RMXWX",1245:" 21H[YUWUUTTSRPQOONNNLOKQKRLTNUOUQTRSTPUOWNYN",1246:" 16JZLTLRMPOPUSWSXR RLRMQOQUTWTXRXP",1247:" 8JZMSRPWS RMSRQWS",1248:" 7NVSKPO RSKTLPO",1249:" 7NVQKTO RQKPLTO",1250:" 14LXNKOMQNSNUMVK RNKONQOSOUNVK",1251:" 8NVSLRMQLRKSLSNQP",1252:" 8NVSKQMQORPSORNQO",1253:" 8NVQLRMSLRKQLQNSP",1254:" 8NVQKSMSORPQORNSO",1256:" 11JZWMQMONNOMQMSNUOVQWWW",1257:" 11JZMMMSNUOVQWSWUVVUWSWM",1258:" 11JZMMSMUNVOWQWSVUUVSWMW",1259:" 11JZMWMQNOONQMSMUNVOWQWW",1260:" 14JZWMQMONNOMQMSNUOVQWWW RMRUR",1261:" 13I[TOUPXRUTTU RUPWRUT RLRWR",1262:" 13MWRMRX ROPPORLTOUP RPORMTO",1263:" 13I[POOPLROTPU ROPMROT RMRXR",1264:" 13MWRLRW ROTPURXTUUT RPURWTU",1265:" 37KYVSUPSOQOOPNQMSMUNWPXRXTWUVVTWQWNVLTKQKPLQLRK RQOOQNSNVPX RRXTVUTVQVNULTK",1266:" 15JZLKRX RMKRV RXKRX RLKXK RNLWL",1267:" 10G[IOLORW RKORX R[FRX",1268:" 26I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[",1269:" 40I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[ RQNOONQNSOUQVSVUUVSVQUOSNQN",1270:" 26H\\ZRYTWUVUTTSSQPPONNMNKOJQJRKTMUNUPTQSSPTOVNWNYOZQZR",1271:" 26JZXKLX ROKPLPNOOMOLNLLMKOKSLVLXK RUTTUTWUXWXXWXUWTUT",1272:" 41J[YPXPXQYQYPXOWOVPUTTVSWQXOXMWLVLTMSORRPSNSLRKPKOLONPQUWWXXXYW ROXMVMTOR RONPPVWWX",1273:" 29J[UPSOQOPQPRQTSTUS RUOUSVTXTYRYQXNVLSKRKOLMNLQLRMUOWRXSXVW",1274:" 34KZQHQ\\ RTHT\\ RWLVLVMWMWLUKPKNLNNOPVSWT RNNOOVRWTWVVWTXQXOWNVNUOUOVNV",1275:" 12KYRKN\\ RVKR\\ RNQWQ RMVVV",1276:" 40LXTLSLSMTMTLSKQKPLPNQPTRUS RPNQOTQUSUUSW RQPOROTPVSXTY ROTPUSWTYT[S\\Q\\P[PZQZQ[P[",1277:" 29LXRKQLRMSLRK RRMRQ RRQQSRVSSRQ RRVR\\ RPOONNOOPPOTOUNVOUPTO",1278:" 42LXRMSLRKQLRMRQQRSURV RRQSRQURVRZQ[R\\S[RZ RPOONNOOPPOTOUNVOUPTO RPXOWNXOYPXTXUWVXUYTX",1279:" 12LYVKVX RNKVK RQQVQ RNXVX",1281:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRQQRRSSRRQ",1282:" 33LYQKPLPMQN RTKULUMTN RRNPOOQORPTRUSUUTVRVQUOSNRN RRURY RSUSY ROWVW",1283:" 23LYRKPLONOOPQRRSRUQVOVNULSKRK RRRRX RSRSX ROUVU",1284:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRKRY RKRYR",1285:" 25JYRRPQOQMRLTLUMWOXPXRWSUSTRR RWMRR RRMWMWR RRMVNWR",1286:" 25JZLLMKOKQLRNRPQRPSNT ROKPLQNQQPS RVKUX RWKTX RNTXT",1287:" 27JYNKNU ROKNR RNROPQOSOUPVQVTTVTXUYVYWX RSOUQUTTV RLKOK",1288:" 27LYONRKRQ RVNSKSQ RRQPROTOUPWRXSXUWVUVTURSQ RRTRUSUSTRT",1289:" 27JZRKRY RMKMPNRPSTSVRWPWK RLMMKNM RQMRKSM RVMWKXM ROVUV",1290:" 27JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXVXVUUX",1291:" 20LYWKTKQLONNQNSOVQXTYWY RWKTLRNQQQSRVTXWY",1292:" 23JZRRPQOQMRLTLUMWOXPXRWSUSTRR RSLQQ RWMRR RXQSS",1293:" 12KYPMTW RTMPW RMPWT RWPMT",1294:" 34J[OUMULVLXMYOYPXPVNTMRMONMOLQKTKVLWMXOXRWTUVUXVYXYYXYVXUVU RNMPLULWM",1295:" 34J[OOMOLNLLMKOKPLPNNPMRMUNWOXQYTYVXWWXUXRWPUNULVKXKYLYNXOVO RNWPXUXWW",1401:" 21F^KHK\\ RLHL\\ RXHX\\ RYHY\\ RHH\\H RH\\O\\ RU\\\\\\",1402:" 20H]KHRQJ\\ RJHQQ RJHYHZMXH RK[X[ RJ\\Y\\ZWX\\",1403:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",1404:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",1405:" 12KYOBOb RPBPb ROBVB RObVb",1406:" 12KYTBTb RUBUb RNBUB RNbUb",1407:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",1408:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",1409:" 24KYU@RCPFOIOLPOSVTYT\\S_Ra RRCQEPHPKQNTUUXU[T^RaOd",1410:" 24KYO@RCTFUIULTOQVPYP\\Q_Ra RRCSETHTKSNPUOXO[P^RaUd",1411:" 13AXCRGRR` RGSRa RFSRb RX:Rb",1412:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2001:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2002:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2003:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2004:" 30G]LFL[ RMFM[ RIFSFVGXIYKZNZSYVXXVZS[I[ RSFUGWIXKYNYSXVWXUZS[",2005:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2006:" 20G[LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[P[",2007:" 40G^XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXX RQFOGMILKKNKSLVMXOZQ[ RXSX[ RYSY[ RUS\\S",2008:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2009:" 12MXRFR[ RSFS[ ROFVF RO[V[",2010:" 20KZUFUWTZR[P[NZMXMVNUOVNW RTFTWSZR[ RQFXF",2011:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2012:" 14I[NFN[ ROFO[ RKFRF RK[Z[ZUY[",2013:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2014:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2015:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2016:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2017:" 64G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF RNYNXOVQURUTVUXV_W`Y`Z^Z] RUXV\\W^X_Y_Z^",2018:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUPMP RUFWGXHYJYLXNWOUP RI[P[ RRPTQURXYYZZZ[Y RTQUSWZX[Z[[Y[X",2019:" 34H\\XIYFYLXIVGSFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[Q[NZLXKUK[LX",2020:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2021:" 23F^KFKULXNZQ[S[VZXXYUYF RLFLUMXOZQ[ RHFOF RVF\\F",2022:" 15H\\KFR[ RLFRX RYFR[ RIFOF RUF[F",2023:" 24F^JFN[ RKFNV RRFN[ RRFV[ RSFVV RZFV[ RGFNF RWF]F",2024:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2025:" 20H]KFRQR[ RLFSQS[ RZFSQ RIFOF RVF\\F RO[V[",2026:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2027:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2028:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2029:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2030:" 15H\\RFJ[ RRFZ[ RRIY[ RKZYZ RJ[Z[",2031:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2032:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2033:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2034:" 56G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF ROMOT RUMUT ROPUP ROQUQ",2035:" 12MXRFR[ RSFS[ ROFVF RO[V[",2036:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2037:" 15H\\RFK[ RRFY[ RRIX[ RI[O[ RU[[[",2038:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2039:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2040:" 36G]KEJJ RZEYJ RONNS RVNUS RKWJ\\ RZWY\\ RKGYG RKHYH ROPUP ROQUQ RKYYY RKZYZ",2041:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2042:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2043:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2044:" 20H]KFRPJ[ RJFQP RJFYFZLXF RKZXZ RJ[Y[ZUX[",2045:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2046:" 33I\\KKKILGMFOFPGQIRMR[ RKIMGOGQI RZKZIYGXFVFUGTISMS[ RZIXGVGTI RO[V[",2047:" 48H]RFR[ RSFS[ RPKMLLMKOKRLTMUPVUVXUYTZRZOYMXLUKPK RPKNLMMLOLRMTNUPV RUVWUXTYRYOXMWLUK ROFVF RO[V[",2048:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2049:" 41G^RFR[ RSFS[ RIMJLLMMQNSOTQU RJLKMLQMSNTQUTUWTXSYQZM[L RTUVTWSXQYM[L\\M ROFVF RO[V[",2050:" 43G]JXK[O[MWKSJPJLKIMGPFTFWGYIZLZPYSWWU[Y[ZX RMWLTKPKLLINGPF RTFVGXIYLYPXTWW RKZNZ RVZYZ",2051:" 18H\\UFH[ RUFV[ RTHU[ RLUUU RF[L[ RR[X[",2052:" 41F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVP RWFYGZIZKYNXOVP RMPVPXQYSYUXXVZR[F[ RVPWQXSXUWXUZR[",2053:" 34H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RTFRGPINLMOLSLVMYNZP[",2054:" 30F]OFI[ RPFJ[ RLFUFXGYHZKZOYSWWUYSZO[F[ RUFWGXHYKYOXSVWTYRZO[",2055:" 22F]OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[U[WVT[",2056:" 20F\\OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[M[",2057:" 42H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RTFRGPINLMOLSLVMYNZP[ RR[TZVXXT RUT\\T",2058:" 27E_NFH[ ROFI[ R[FU[ R\\FV[ RKFRF RXF_F RLPXP RE[L[ RR[Y[",2059:" 12LYUFO[ RVFP[ RRFYF RL[S[",2060:" 21I[XFSWRYQZO[M[KZJXJVKULVKW RWFRWQYO[ RTF[F",2061:" 27F]OFI[ RPFJ[ R]FLS RSOW[ RROV[ RLFSF RYF_F RF[M[ RS[Y[",2062:" 14H\\QFK[ RRFL[ RNFUF RH[W[YUV[",2063:" 30E`NFH[ RNFO[ ROFPY R\\FO[ R\\FV[ R]FW[ RKFOF R\\F`F RE[K[ RS[Z[",2064:" 21F_OFI[ ROFVX ROIV[ R\\FV[ RLFOF RYF_F RF[L[",2065:" 42G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF",2066:" 27F]OFI[ RPFJ[ RLFXF[G\\I\\K[NYPUQMQ RXFZG[I[KZNXPUQ RF[M[",2067:" 61G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF RLYLXMVOUPURVSXS_T`V`W^W] RSXT^U_V_W^",2068:" 42F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVPMP RWFYGZIZKYNXOVP RRPTQURVZW[Y[ZYZX RURWYXZYZZY RF[M[",2069:" 35G^ZH[H\\F[L[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJUI[JYKY",2070:" 16H]UFO[ RVFP[ ROFLLNF]F\\L\\F RL[S[",2071:" 25F_NFKQJUJXKZN[R[UZWXXU\\F ROFLQKUKXLZN[ RKFRF RYF_F",2072:" 15H\\NFO[ ROFPY R\\FO[ RLFRF RXF^F",2073:" 24E_MFK[ RNFLY RUFK[ RUFS[ RVFTY R]FS[ RJFQF RZF`F",2074:" 21G]NFU[ ROFV[ R\\FH[ RLFRF RXF^F RF[L[ RR[X[",2075:" 20H]NFRPO[ ROFSPP[ R]FSP RLFRF RYF_F RL[S[",2076:" 16G][FH[ R\\FI[ ROFLLNF\\F RH[V[XUU[",2077:" 46H\\KILKXWYYY[ RLLXX RKIKKLMXYY[ RPPLTKVKXLZK[ RKVMZ RLTLVMXMZK[ RSSXN RVIVLWNYNYLWKVI RVIWLYN",2101:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2102:" 33G\\LFL[ RMFM[ RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIFMF",2103:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2104:" 36H]WFW[ RXFX[ RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTFXF RW[[[",2105:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2106:" 22KXUGTHUIVHVGUFSFQGPIP[ RSFRGQIQ[ RMMUM RM[T[",2107:" 60I\\QMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM RONNPNTOV RUVVTVPUN RVOWNYMYNWN RNUMVLXLYM[P\\U\\X]Y^ RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[",2108:" 28G]LFL[ RMFM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIFMF RI[P[ RT[[[",2109:" 18MXRFQGRHSGRF RRMR[ RSMS[ ROMSM RO[V[",2110:" 25MXSFRGSHTGSF RTMT_SaQbObNaN`O_P`Oa RSMS_RaQb RPMTM",2111:" 27G\\LFL[ RMFM[ RWMMW RRSX[ RQSW[ RIFMF RTMZM RI[P[ RT[Z[",2112:" 12MXRFR[ RSFS[ ROFSF RO[V[",2113:" 44BcGMG[ RHMH[ RHPJNMMOMRNSPS[ ROMQNRPR[ RSPUNXMZM]N^P^[ RZM\\N]P][ RDMHM RD[K[ RO[V[ RZ[a[",2114:" 28G]LML[ RMMM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIMMM RI[P[ RT[[[",2115:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2116:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2117:" 33H\\WMWb RXMXb RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTb[b",2118:" 23IZNMN[ ROMO[ ROSPPRNTMWMXNXOWPVOWN RKMOM RK[R[",2119:" 32J[WOXMXQWOVNTMPMNNMOMQNRPSUUWVXW RMPNQPRUTWUXVXYWZU[Q[OZNYMWM[NY",2120:" 16KZPFPWQZS[U[WZXX RQFQWRZS[ RMMUM",2121:" 28G]LMLXMZP[R[UZWX RMMMXNZP[ RWMW[ RXMX[ RIMMM RTMXM RW[[[",2122:" 15I[LMR[ RMMRY RXMR[ RJMPM RTMZM",2123:" 24F^JMN[ RKMNX RRMN[ RRMV[ RSMVX RZMV[ RGMNM RWM]M",2124:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2125:" 22H[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2126:" 16I[WML[ RXMM[ RMMLQLMXM RL[X[XWW[",2127:" 40G^QMNNLPKRJUJXKZN[P[RZUWWTYPZM RQMONMPLRKUKXLZN[ RQMSMUNVPXXYZZ[ RSMTNUPWXXZZ[[[",2128:" 57G\\TFQGOIMMLPKTJZIb RTFRGPINMMPLTKZJb RTFVFXGYHYKXMWNTOPO RVFXHXKWMVNTO RPOTPVRWTWWVYUZR[P[NZMYLV RPOSPURVTVWUYTZR[",2129:" 28H\\IPKNMMOMQNROSRSVRZOb RJOLNPNRO RZMYPXRSYP^Nb RYMXPWRSY",2130:" 44I\\VNTMRMONMQLTLWMYNZP[R[UZWWXTXQWOSJRHRFSEUEWFYH RRMPNNQMTMXNZ RR[TZVWWTWPVNTKSISGTFVFYH",2131:" 32I[XPVNTMPMNNNPPRSS RPMONOPQRSS RSSNTLVLXMZP[S[UZWX RSSOTMVMXNZP[",2132:" 31I[TFRGQHQIRJUKZKZJWKSMPOMRLULWMYP[S]T_TaSbQbPa RULQONRMUMWNYP[",2133:" 32G]HQIOKMNMONOPNTL[ RMMNNNPMTK[ RNTPPRNTMVMXNYOYRXWUb RVMXOXRWWTb",2134:" 44F]GQHOJMMMNNNPMUMXNZO[ RLMMNMPLULXMZO[Q[SZUXWUXRYMYIXGVFTFRHRJSMUPWRZT RSZUWVUWRXMXIWGVF",2135:" 15LXRMPTOXOZP[S[UYVW RSMQTPXPZQ[",2136:" 29H\\NMJ[ ROMK[ RXMYNZNYMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW",2137:" 23H\\KFMFOGPHQJWXXZY[ RMFOHPJVXWZY[Z[ RRMJ[ RRMK[",2138:" 28F]MMGb RNMHb RMPLVLYN[P[RZTXVU RXMUXUZV[Y[[Y\\W RYMVXVZW[",2139:" 24H\\NML[ ROMNSMXL[ RYMXQVU RZMYPXRVUTWQYOZL[ RKMOM",2140:" 45IZTFRGQHQIRJUKXK RUKQLOMNONQPSSTVT RUKRLPMOOOQQSST RSTOUMVLXLZN\\S^T_TaRbPb RSTPUNVMXMZO\\S^",2141:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2142:" 22G]PNL[ RPNM[ RVNV[ RVNW[ RIPKNNM[M RIPKONN[N",2143:" 31H[LVMYNZP[R[UZWWXTXQWOVNTMRMONMQLTHb RR[TZVWWTWPVN RRMPNNQMTIb",2144:" 35H][MQMNNLQKTKWLYMZO[Q[TZVWWTWQVOUNSM RQMONMQLTLXMZ RQ[SZUWVTVPUN RUN[N",2145:" 16H\\SNP[ RSNQ[ RJPLNOMZM RJPLOONZN",2146:" 31H\\IQJOLMOMPNPPNVNYP[ RNMONOPMVMYNZP[Q[TZVXXUYRYOXMWNXOYR RXUYO",2147:" 37G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb RJWLYNZQZTYWWYU RZOXNVNTPRSPYNb",2148:" 23I[KMMMONPPU_VaWb RMMNNOPT_UaWbYb RZMYOWRM]K`Jb",2149:" 34F]UFOb RVFNb RGQHOJMMMNNNPMUMXOZRZTYWVYS RLMMNMPLULXMZO[R[TZVXXUYS[M",2150:" 44F]JQLOONNMLNJQITIWJZK[M[OZQWRT RIWJYKZMZOYQW RQTQWRZS[U[WZYWZTZQYNXMWNYOZQ RQWRYSZUZWYYW",2151:" 39H]XMVTUXUZV[Y[[Y\\W RYMWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2152:" 36H[PFLSLVMYNZ RQFMS RMSNPPNRMTMVNWOXQXTWWUZR[P[NZMWMS RVNWPWTVWTZR[ RMFQF",2153:" 25I[WPWQXQXPWNUMRMONMQLTLWMYNZP[R[UZWW RRMPNNQMTMXNZ",2154:" 42H]ZFVTUXUZV[Y[[Y\\W R[FWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RWF[F",2155:" 26I[MVQUTTWRXPWNUMRMONMQLTLWMYNZP[R[UZWX RRMPNNQMTMXNZ",2156:" 35KZZGYHZI[H[GZFXFVGUHTJSMP[O_Na RXFVHUJTNRWQ[P^O`NaLbJbIaI`J_K`Ja ROMYM",2157:" 43H\\YMU[T^RaObLbJaI`I_J^K_J` RXMT[S^QaOb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2158:" 31H]PFJ[ RQFK[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W RMFQF",2159:" 26LYUFTGUHVGUF RMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2160:" 32LYVFUGVHWGVF RNQOOQMTMUNUQR[Q^P`OaMbKbJaJ`K_L`Ka RSMTNTQQ[P^O`Mb",2161:" 34H\\PFJ[ RQFK[ RXNWOXPYOYNXMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW RMFQF",2162:" 18MYUFQTPXPZQ[T[VYWW RVFRTQXQZR[ RRFVF",2163:" 52AbBQCOEMHMINIPHTF[ RGMHNHPGTE[ RHTJPLNNMPMRNSOSQP[ RPMRORQO[ RRTTPVNXMZM\\N]O]Q[W[Z\\[ RZM\\O\\QZWZZ[[^[`YaW",2164:" 37F]GQHOJMMMNNNPMTK[ RLMMNMPLTJ[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W",2165:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2166:" 42G\\HQIOKMNMONOPNTJb RMMNNNPMTIb RNTOQQNSMUMWNXOYQYTXWVZS[Q[OZNWNT RWNXPXTWWUZS[ RFbMb",2167:" 33H\\XMRb RYMSb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RObVb",2168:" 26IZJQKOMMPMQNQPPTN[ ROMPNPPOTM[ RPTRPTNVMXMYNYOXPWOXN",2169:" 28J[XOXPYPYOXNUMRMONNONQORVVWW RNPOQVUWVWYVZS[P[MZLYLXMXMY",2170:" 18KYTFPTOXOZP[S[UYVW RUFQTPXPZQ[ RNMWM",2171:" 37F]GQHOJMMMNNNQLWLYN[ RLMMNMQKWKYLZN[P[RZTXVT RXMVTUXUZV[Y[[Y\\W RYMWTVXVZW[",2172:" 26H\\IQJOLMOMPNPQNWNYP[ RNMONOQMWMYNZP[Q[TZVXXUYQYMXMYO",2173:" 41C`DQEOGMJMKNKQIWIYK[ RIMJNJQHWHYIZK[M[OZQXRV RTMRVRYSZU[W[YZ[X\\V]R]M\\M]O RUMSVSYU[",2174:" 42H\\KQMNOMRMSOSR RQMRORRQVPXNZL[K[JZJYKXLYKZ RQVQYR[U[WZYW RYNXOYPZOZNYMXMVNTPSRRVRYS[",2175:" 41G\\HQIOKMNMONOQMWMYO[ RMMNNNQLWLYMZO[Q[SZUXWT RZMV[U^SaPbMbKaJ`J_K^L_K` RYMU[T^RaPb",2176:" 31H\\YMXOVQNWLYK[ RLQMOOMRMVO RMOONRNVOXO RLYNYRZUZWY RNYR[U[WYXW",2177:" 43G^VGUHVIWHWGUFRFOGMILLL[ RRFPGNIMLM[ R\\G[H\\I]H]G\\FZFXGWIW[ RZFYGXIX[ RIM[M RI[P[ RT[[[",2178:" 33G]WGVHWIXHWGUFRFOGMILLL[ RRFPGNIMLM[ RWMW[ RXMX[ RIMXM RI[P[ RT[[[",2179:" 35G]VGUHVIWHWGUF RXFRFOGMILLL[ RRFPGNIMLM[ RWHW[ RXFX[ RIMWM RI[P[ RT[[[",2180:" 54BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R]G\\H]I^H]G[FXFUGSIRLR[ RXFVGTISLS[ R]M][ R^M^[ RDM^M RD[K[ RO[V[ RZ[a[",2181:" 56BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R\\G[H\\I]H]G[F R^FXFUGSIRLR[ RXFVGTISLS[ R]H][ R^F^[ RDM]M RD[K[ RO[V[ RZ[a[",2182:" 12MXRMR[ RSMS[ ROMSM RO[V[",2184:" 25IZWNUMRMONMPLSLVMYNZQ[T[VZ RRMPNNPMSMVNYOZQ[ RMTUT",2185:" 43I\\TFQGOJNLMOLTLXMZO[Q[TZVWWUXRYMYIXGVFTF RTFRGPJOLNOMTMXNZO[ RQ[SZUWVUWRXMXIWGVF RNPWP",2186:" 42G]UFOb RVFNb RQMMNKPJSJVKXMZP[S[WZYXZUZRYPWNTMQM RQMNNLPKSKVLXNZP[ RS[VZXXYUYRXPVNTM",2187:" 27I[TMVNXPXOWNTMQMNNMOLQLSMUOWSZ RQMONNOMQMSNUSZT\\T^S_Q_",2190:" 45G]LMKNJPJRKUOYP[ RJRKTOXP[P]O`MbLbKaJ_J\\KXMTOQRNTMVMYNZPZTYXWZU[T[SZSXTWUXTY RVMXNYPYTXXWZ",2191:" 69E_YGXHYIZHYGWFTFQGOINKMNLRJ[I_Ha RTFRGPIOKNNLWK[J^I`HaFbDbCaC`D_E`Da R_G^H_I`H`G_F]F[GZHYJXMU[T_Sa R]F[HZJYNWWV[U^T`SaQbObNaN`O_P`Oa RIM^M",2192:" 52F^[GZH[I\\H[GXFUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea RYMWTVXVZW[Z[\\Y]W RZMXTWXWZX[ RJMZM",2193:" 54F^YGXHYIZHZGXF R\\FUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea R[FWTVXVZW[Z[\\Y]W R\\FXTWXWZX[ RJMYM",2194:" 86@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R`G_H`IaH`G]FZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R^M\\T[X[Z\\[_[aYbW R_M]T\\X\\Z][ RDM_M",2195:" 88@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R^G]H^I_H_G]F RaFZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R`F\\T[X[Z\\[_[aYbW RaF]T\\X\\Z][ RDM^M",2196:" 20LYMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2200:" 40H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RQFOGNHMJLOLRMWNYOZQ[ RS[UZVYWWXRXOWJVHUGSF",2201:" 11H\\NJPISFS[ RRGR[ RN[W[",2202:" 45H\\LJMKLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RTFVGWHXJXLWNTPPR RKYLXNXSZVZXYYX RNXS[W[XZYXYV",2203:" 47H\\LJMKLLKKKJLHMGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[P[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2204:" 13H\\THT[ RUFU[ RUFJUZU RQ[X[",2205:" 39H\\MFKP RKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMVLW RSMUNWPXSXUWXUZS[ RMFWF RMGRGWF",2206:" 48H\\WIVJWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNRNOOMQLT RRFPGNIMKLOLUMXOZQ[ RS[UZWXXUXTWQUOSN",2207:" 31H\\KFKL RKJLHNFPFUIWIXHYF RLHNGPGUI RYFYIXLTQSSRVR[ RXLSQRSQVQ[",2208:" 63H\\PFMGLILLMNPOTOWNXLXIWGTFPF RPFNGMIMLNNPO RTOVNWLWIVGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RPONPMQLSLWMYNZP[ RT[VZWYXWXSWQVPTO",2209:" 48H\\XMWPURRSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNWMX RQSORMPLMLLMIOGQF RSFUGWIXLXRWVVXTZR[",2210:" 6MWRYQZR[SZRY",2211:" 8MWR[QZRYSZS\\R^Q_",2212:" 12MWRMQNROSNRM RRYQZR[SZRY",2213:" 14MWRMQNROSNRM RR[QZRYSZS\\R^Q_",2214:" 15MWRFQHRTSHRF RRHRN RRYQZR[SZRY",2215:" 32I[MJNKMLLKLJMHNGPFSFVGWHXJXLWNVORQRT RSFUGVHWJWLVNTP RRYQZR[SZRY",2216:" 6NVRFQM RSFQM",2217:" 12JZNFMM ROFMM RVFUM RWFUM",2218:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",2219:" 9JZRFRR RMIWO RWIMO",2220:" 3G][BIb",2221:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",2222:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",2223:" 12KYOBOb RPBPb ROBVB RObVb",2224:" 12KYTBTb RUBUb RNBUB RNbUb",2225:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",2226:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",2227:" 4KYUBNRUb",2228:" 4KYOBVROb",2229:" 3NVRBRb",2230:" 6KYOBOb RUBUb",2231:" 3E_IR[R",2232:" 6E_RIR[ RIR[R",2233:" 9F^RJR[ RJRZR RJ[Z[",2234:" 9F^RJR[ RJJZJ RJRZR",2235:" 6G]KKYY RYKKY",2236:" 6MWRQQRRSSRRQ",2237:" 15E_RIQJRKSJRI RIR[R RRYQZR[SZRY",2238:" 6E_IO[O RIU[U",2239:" 9E_YIK[ RIO[O RIU[U",2240:" 9E_IM[M RIR[R RIW[W",2241:" 4F^ZIJRZ[",2242:" 4F^JIZRJ[",2243:" 10F^ZFJMZT RJVZV RJ[Z[",2244:" 10F^JFZMJT RJVZV RJ[Z[",2245:" 21F_[WYWWVUTRPQOONMNKOJQJSKUMVOVQURTUPWNYM[M",2246:" 24F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",2247:" 8G]JTROZT RJTRPZT",2248:" 7LXTFOL RTFUGOL",2249:" 7LXPFUL RPFOGUL",2250:" 18H\\KFLHNJQKSKVJXHYF RKFLINKQLSLVKXIYF",2251:" 8MWRHQGRFSGSIRKQL",2252:" 8MWSFRGQIQKRLSKRJ",2253:" 8MWRHSGRFQGQIRKSL",2254:" 8MWQFRGSISKRLQKRJ",2255:" 10E[HMLMRY RKMR[ R[BR[",2256:" 13F^ZJSJOKMLKNJQJSKVMXOYSZZZ",2257:" 13F^JJJQKULWNYQZSZVYXWYUZQZJ",2258:" 13F^JJQJUKWLYNZQZSYVWXUYQZJZ",2259:" 13F^JZJSKOLMNKQJSJVKXMYOZSZZ",2260:" 16F^ZJSJOKMLKNJQJSKVMXOYSZZZ RJRVR",2261:" 11E_XP[RXT RUMZRUW RIRZR",2262:" 11JZPLRITL RMORJWO RRJR[",2263:" 11E_LPIRLT ROMJROW RJR[R",2264:" 11JZPXR[TX RMURZWU RRIRZ",2265:" 44I\\XRWOVNTMRMONMQLTLWMYNZP[R[UZWXXUYPYKXHWGUFRFPGOHOIPIPH RRMPNNQMTMXNZ RR[TZVXWUXPXKWHUF",2266:" 15H\\JFR[ RKFRY RZFR[ RJFZF RKGYG",2267:" 10AbDMIMRY RHNR[ Rb:R[",2268:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2269:" 50F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia RQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",2270:" 26F_\\S[UYVWVUUTTQPPONNLNJOIQISJULVNVPUQTTPUOWNYN[O\\Q\\S",2271:" 32F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",2272:" 49F_[NZO[P\\O\\N[MZMYNXPVUTXRZP[M[JZIXIUJSPORMSKSIRGPFNGMIMKNNPQUXWZZ[[[\\Z\\Y RM[KZJXJUKSMQ RMKNMVXXZZ[",2273:" 56E`WNVLTKQKOLNMMPMSNUPVSVUUVS RQKOMNPNSOUPV RWKVSVUXVZV\\T]Q]O\\L[JYHWGTFQFNGLHJJILHOHRIUJWLYNZQ[T[WZYYZX RXKWSWUXV",2274:" 42H\\PBP_ RTBT_ RXIWJXKYJYIWGTFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[P[MZKXKWLVMWLX",2275:" 12H]SFLb RYFRb RLQZQ RKWYW",2276:" 46JZUITJUKVJVIUGSFQFOGNINKOMQOVR ROMTPVRWTWVVXTZ RPNNPMRMTNVPXU[ RNVSYU[V]V_UaSbQbOaN_N^O]P^O_",2277:" 30JZRFQHRJSHRF RRFRb RRQQTRbSTRQ RLMNNPMNLLM RLMXM RTMVNXMVLTM",2278:" 56JZRFQHRJSHRF RRFRT RRPQRSVRXQVSRRP RRTRb RR^Q`RbS`R^ RLMNNPMNLLM RLMXM RTMVNXMVLTM RL[N\\P[NZL[ RL[X[ RT[V\\X[VZT[",2279:" 12I\\XFX[ RKFXF RPPXP RK[X[",2281:" 38E`QFNGKIILHOHRIUKXNZQ[T[WZZX\\U]R]O\\LZIWGTFQF RROQPQQRRSRTQTPSORO RRPRQSQSPRP",2282:" 45J[PFNGOIQJ RPFOGOI RUFWGVITJ RUFVGVI RQJOKNLMNMQNSOTQUTUVTWSXQXNWLVKTJQJ RRUR[ RSUS[ RNXWX",2283:" 27I\\RFOGMILLLMMPORRSSSVRXPYMYLXIVGSFRF RRSR[ RSSS[ RNWWW",2284:" 28D`PFMGJIHLGOGSHVJYM[P\\T\\W[ZY\\V]S]O\\LZIWGTFPF RRFR\\ RGQ]Q",2285:" 31G`PMMNKPJSJTKWMYPZQZTYVWWTWSVPTNQMPM R]GWG[HUN R]G]M\\IVO R\\HVN",2286:" 28F\\IIJGLFOFQGRIRLQOPQNSKU ROFPGQIQMPPNS RVFT[ RWFS[ RKUYU",2287:" 30I\\MFMU RNFMQ RMQNOONQMTMWNXPXRWTUV RTMVNWPWRTXTZU[W[YY RKFNF",2288:" 44I\\RNOOMQLTLUMXOZR[S[VZXXYUYTXQVOSNRN RRHNJRFRN RSHWJSFSN RRSQTQURVSVTUTTSSRS RRTRUSUSTRT",2289:" 37G^QHRFR[ RTHSFS[ RJHKFKMLPNRQSRS RMHLFLNMQ R[HZFZMYPWRTSSS RXHYFYNXQ RNWWW",2290:" 31G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[Y[YVX[",2291:" 24H[YGUGQHNJLMKPKSLVNYQ[U\\Y\\ RYGVHSJQMPPPSQVSYV[Y\\",2292:" 27F_OQMQKRJSIUIWJYKZM[O[QZRYSWSURSQROQ RSHPQ RZJRR R\\QST",2293:" 12H\\OKUY RUKOY RKOYU RYOKU",2294:" 48F^NVLUKUIVHXHYI[K\\L\\N[OYOXNVKRJOJMKJMHPGTGWHYJZMZOYRVVUXUYV[X\\Y\\[[\\Y\\X[VYUXUVV RJMKKMIPHTHWIYKZM",2295:" 48F^NMLNKNIMHKHJIHKGLGNHOJOKNMKQJTJVKYM[P\\T\\W[YYZVZTYQVMUKUJVHXGYG[H\\J\\K[MYNXNVM RJVKXMZP[T[WZYXZV",2301:" 40F_JMILIJJHLGNGPHQIRKSP RIJKHMHOIPJQLRPR[ R[M\\L\\J[HYGWGUHTISKRP R\\JZHXHVIUJTLSPS[",2302:" 51F^IGJKKMMOPPTPWOYMZK[G RIGJJKLMNPOTOWNYLZJ[G RPONPMQLSLVMXOZQ[S[UZWXXVXSWQVPTO RPPNQMSMVNY RVYWVWSVQTP",2303:" 30F^MJMV RNKNU RVKVU RWJWV RIGKIMJPKTKWJYI[G RIYKWMVPUTUWVYW[Y",2304:" 48F^[ILIJJILINJPLQNQPPQNQLPJ[J RIMJOKPMQ RQMPKOJMI RIXXXZW[U[SZQXPVPTQSSSUTWIW R[TZRYQWP RSTTVUWWX",2305:" 48F]OUMTLTJUIWIXJZL[M[OZPXPWOUJPINIKJILHOGSGWHYJZLZOYRVUUWUYV[X[YZZX RMSKPJNJKKILH RSGVHXJYLYOXRVU",2306:" 48G_HKKHMKMV RJILLLV RMKPHRKRU ROIQLQU RRKUHWKW[ RTIVLV[ RWKZH[J\\M\\P[SZUXWUYP[ RYIZJ[M[PZSYUWWTYP[",2307:" 41F^ISMSLRKOKMLJNHQGSGVHXJYMYOXRWS[S RITOTMRLOLMMJOHQG RSGUHWJXMXOWRUT[T RKXYX RKYYY",2308:" 30F_GLJIMLMX RIJLMLX RMLPISLSX ROJRMRX RSLVIYLYW[Y RUJXMXXZZ]W",2309:" 33G]ZIJY RZIWJQJ RXKUKQJ RZIYLYR RXKXNYR RQRJR RPSMSJR RQRQY RPSPVQY",2310:" 33F^HOJKOU RJMOWRPWPZO[M[KZIXHWHUITKTMUPVRWUWXUZ RWHVIUKUMWQXTXWWYUZ",2311:" 36F^IOLLPN RKMOORLUN RQMTOWLYN RVMXO[L RIULRPT RKSOURRUT RQSTUWRYT RVSXU[R",2312:" 48F^JHNJPLQOQRPUNWJY RJHMIOJQLRO RRRQUOWMXJY RZHWIUJSLRO RRRSUUWWXZY RZHVJTLSOSRTUVWZY RIP[P RIQ[Q",2317:" 12NVQQQSSSSQQQ RQQSS RSQQS",2318:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2319:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2320:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2321:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2322:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2323:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2324:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2325:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2326:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2327:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2328:" 49JZMLWX RMLONQOTOVNWMWKUKUMTO RONTO RQOWM RVKVN RULWL RWXUVSUPUNVMWMYOYOWPU RUVPU RSUMW RNVNY RMXOX",2329:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLWY",2330:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2331:"103EfNSOUQVSVUUVSVQUOSNQNOONPMSMVNYP[S\\V\\Y[[Y\\W]T]P\\MZJXIUHRHOIMJKLIOHSHXI]KaMcPeTfYf]e`cba RKLJNIRIXJ\\L`NbQdUeYe]d_cba RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU RaLaNcNcLaL RbLbN RaMcM RaVaXcXcVaV RbVbX RaWcW",2332:" 30D`H@Hd RM@Md RW@Wd R\\@\\d RMMWK RMNWL RMOWM RMWWU RMXWV RMYWW",2367:" 12NVQQQSSSSQQQ RQQSS RSQQS",2368:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2369:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2370:" 32H\\PMMNLOKQKSLUMVPWTWWVXUYSYQXOWNTMPM RMNLPLSMUNVPW RWVXTXQWOVNTM",2371:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2372:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2373:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2374:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2375:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2376:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2377:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2378:" 36JZQCVMRTRU RULQS RTITKPRRUUY RW\\UYSXQXOYN[N]O_Ra RW\\UZSYOYO]P_Ra RSXPZN]",2379:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLSY",2380:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2381:" 89IjNQOOQNSNUOVQVSUUSVQVOUNTMQMNNKPISHWH[I^K`NaRaW`[_]]`ZcVfQiMk RWHZI]K_N`R`W_[^]\\`YcTgQi RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU ReLeNgNgLeL RfLfN ReMgM ReVeXgXgVeV RfVfX ReWgW",2382:" 85D`H>Hf RI>If RM>Mf RQBSBSDQDQAR?T>W>Y?[A\\D\\I[LYNWOUOSNRLQNOQNROSQVRXSVUUWUYV[X\\[\\`[cYeWfTfReQcQ`S`SbQb RRBRD RQCSC RY?ZA[D[IZLYN RRLRNPQNRPSRVRX RYVZX[[[`ZcYe RR`Rb RQaSa",2401:" 21AcHBHb RIBIb R[B[b R\\B\\b RDB`B RDbMb RWb`b",2402:" 23BaGBQPFb RFBPP REBPQ REB\\B^I[B RGa\\a RFb\\b^[[b",2403:" 28I[X+U1R8P=OANFMNMVN^OcPgRlUsXy RU1S6Q<P@OFNNNVO^PdQhSnUs",2404:" 28I[L+O1R8T=UAVFWNWVV^UcTgRlOsLy RO1Q6S<T@UFVNVVU^TdShQnOs",2405:" 14I[M+MRMy RN+NRNy RM+X+ RMyXy",2406:" 14I[V+VRVy RW+WRWy RL+W+ RLyWy",2407:" 48I[V+S-Q/P1O4O8P<TDUGUJTMRP RS-Q0P4P8Q;UCVGVJUMRPNRRTUWVZV]UaQiPlPpQtSw RRTTWUZU]T`PhOlOpPsQuSwVy",2408:" 48I[N+Q-S/T1U4U8T<PDOGOJPMRP RQ-S0T4T8S;OCNGNJOMRPVRRTOWNZN]OaSiTlTpStQw RRTPWOZO]P`ThUlUpTsSuQwNy",2409:" 32I[V.S1Q4O8N=NCOIPMSXT\\UbUgTlSoQs RS1Q5P8O=OBPHQLTWU[VaVgUlSpQsNv",2410:" 32I[N.Q1S4U8V=VCUITMQXP\\ObOgPlQoSs RQ1S5T8U=UBTHSLPWO[NaNgOlQpSsVv",2411:' 147Z:RARRo R@RQo R?RRr RZ"VJRr',2412:" 57Ca].\\.[/[0\\1]1^0^.],[+Y+W,U.T0S3R:QJQjPsOv R\\/\\0]0]/\\/ RR:Rj RU.T1S:SZRjQqPtOvMxKyIyGxFvFtGsHsItIuHvGv RGtGuHuHtGt",2501:" 20H\\RFJ[ RRIK[J[ RRIY[Z[ RRFZ[ RMUWU RLVXV",2502:" 44H\\LFL[ RMGMZ RLFTFWGXHYJYMXOWPTQ RMGTGWHXJXMWOTP RMPTPWQXRYTYWXYWZT[L[ RMQTQWRXTXWWYTZMZ",2503:" 38H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZV RZKYKXIWHUGQGOHMKLNLSMVOYQZUZWYXXYVZV",2504:" 32H]LFL[ RMGMZ RLFSFVGXIYKZNZSYVXXVZS[L[ RMGSGVHWIXKYNYSXVWXVYSZMZ",2505:" 27I\\MFM[ RNGNZ RMFYF RNGYGYF RNPTPTQ RNQTQ RNZYZY[ RM[Y[",2506:" 21I[MFM[ RNGN[M[ RMFYF RNGYGYF RNPTPTQ RNQTQ",2507:" 44H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZVZRUR RZKYKXIWHUGQGOHNIMKLNLSMVNXOYQZUZWYXXYVYSUSUR",2508:" 22G]KFK[ RKFLFL[K[ RYFXFX[Y[ RYFY[ RLPXP RLQXQ",2509:" 8NWRFR[S[ RRFSFS[",2510:" 20J[VFVVUYSZQZOYNVMV RVFWFWVVYUZS[Q[OZNYMV",2511:" 22H]LFL[M[ RLFMFM[ RZFYFMR RZFMS RPOY[Z[ RQOZ[",2512:" 14IZMFM[ RMFNFNZ RNZYZY[ RM[Y[",2513:" 26F^JFJ[ RKKK[J[ RKKR[ RJFRX RZFRX RYKR[ RYKY[Z[ RZFZ[",2514:" 20G]KFK[ RLIL[K[ RLIY[ RKFXX RXFXX RXFYFY[",2515:" 40G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF RQGNHLKKNKSLVNYQZSZVYXVYSYNXKVHSGQG",2516:" 27H\\LFL[ RMGM[L[ RLFUFWGXHYJYMXOWPUQMQ RMGUGWHXJXMWOUPMP",2517:" 48G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF RQGNHLKKNKSLVNYQZSZVYXVYSYNXKVHSGQG RSXX]Y] RSXTXY]",2518:" 34H\\LFL[ RMGM[L[ RLFTFWGXHYJYMXOWPTQMQ RMGTGWHXJXMWOTPMP RRQX[Y[ RSQY[",2519:" 43H\\YIWGTFPFMGKIKKLMMNOOTQVRWSXUXXWYTZPZNYMXKX RYIWIVHTGPGMHLILKMMONTPVQXSYUYXWZT[P[MZKX",2520:" 15J[RGR[ RSGS[R[ RLFYFYG RLFLGYG",2521:" 24G]KFKULXNZQ[S[VZXXYUYF RKFLFLUMXNYQZSZVYWXXUXFYF",2522:" 14H\\JFR[ RJFKFRX RZFYFRX RZFR[",2523:" 26E_GFM[ RGFHFMX RRFMX RRIM[ RRIW[ RRFWX R]F\\FWX R]FW[",2524:" 16H\\KFX[Y[ RKFLFY[ RYFXFK[ RYFL[K[",2525:" 17I\\KFRPR[S[ RKFLFSP RZFYFRP RZFSPS[",2526:" 20H\\XFK[ RYFL[ RKFYF RKFKGXG RLZYZY[ RK[Y[",2551:" 38E\\XFVHTKQPOSLWIZG[E[DZDXEWFXEY RXFWJUTT[ RXFU[ RT[TYSVRTPRNQLQKRKTLWOZR[V[XZ",2552:" 70F^UGTHSJQOOUNWLZJ[ RTHSKQSPVOXMZJ[H[GZGXHWIXHY ROLNNMOKOJNJLKJMHOGRFXFZG[I[KZMXNTORO RXFYGZIZKYMXN RTOWPXQYSYVXYWZU[S[RZRXSU RTOVPWQXSXVWYU[",2553:" 41H]KHJJJLKNNOQOUNWMYKZIZGYFWFTGQJOMMQLULXMZP[R[UZWXXVXTWRURSSRU RWFUGRJPMNQMUMXNZP[",2554:" 43F]UGTHSJQOOUNWLZJ[ RTHSKQSPVOXMZJ[H[GZGXHWJWLXNZP[S[UZWXYTZOZLYIWGUFPFMGKIJKJMKNMNNMOK",2555:" 49I\\WIVJVLWMYMZKZIYGWFTFRGQHPJPLQNSO RTFRHQJQMSO RSOQONPLRKTKWLYMZO[R[UZWXXVXTWRURSSRU RQOOPMRLTLXMZ",2556:" 46G\\WHVJTORUQWOZM[ RQLPNNOLOKMKKLINGQF[FXGWHVKTSSVRXPZM[K[IZHYHXIWJXIY RSFWGXG ROSPRRQVQXPZMXT",2557:" 53G]JIIKIMJOLPOPROTNWKXHXGWFVFTGRIQKPNPQQSSTUTWSYQZO RWFUGSIRKQNQRST RZOYSWWUYSZO[L[JZIXIWJVKWJX RYSWVUXRZO[",2558:" 55F^LLKKKILGOFRFOQMWLYKZI[G[FZFXGWHXGY RRFOONRLWKYI[ RJTKSMRVOXN[L]J^H^G]F\\FZGXJWLURTVTYV[W[YZ[X R\\FZHXLVRUVUYV[",2559:" 33IYWHUKSPQUPWNZL[ RYLWNTOQOONNLNJOHQGUFYFWHVJTPRVQXOZL[J[IZIXJWKXJY",2560:" 34IZYFWHUKSPPYN] RYMWOTPQPOONMNKOIQGUFYFWIVKSTQXPZN]M^K_J^J\\KZMXOWRVVU",2561:" 59F^LLKKKIMGPFRFOQMWLYKZI[G[FZFXGWHXGY RRFOONRLWKYI[ RZGWKUMSNPO R]G\\H]I^H^G]F\\FZGWLVMTNPO RPOSPTRUYV[ RPORPSRTYV[W[YZ[X",2562:" 40I[MILKLMMOOPRPUOWNZK[H[GZFYFWGVHTKPUOWMZK[ RVHTLRSQVPXNZK[I[HZHXIWKWMXPZR[U[WZYX",2563:" 49D`RFNOKUIXGZE[C[BZBXCWDXCY RRFPMOQNVNZP[ RRFQJPOOVOZP[ R[FWORXP[ R[FYMXQWVWZY[Z[\\Z^X R[FZJYOXVXZY[",2564:" 38G^RFQJOPMULWJZH[F[EZEXFWGXFY RRFRKSVT[ RRFSKTVT[ R`G_H`IaHaG`F^F\\GZJYLWQUWT[",2565:" 34H]SFQGOIMLLNKRKVLYMZO[Q[TZVXXUYSZOZKYHXGWGUHSJQNPSPV RQGOJMNLRLVMYO[",2566:" 53F]UGTHSJQOOUNWLZJ[ RTHSKQSPVOXMZJ[H[GZGXHWIXHY ROLNNMOKOJNJLKJMHOGRFVFYGZH[J[MZOYPVQTQRP RVFXGYHZJZMYOXPVQ",2567:" 43H]UJULTNSOQPOPNNNLOIQGTFWFYGZIZMYPWSSWPYNZK[I[HZHXIWKWMXPZS[V[XZZX RWFXGYIYMXPVSSVOYK[",2568:" 65F^UGTHSJQOOUNWLZJ[ RTHSKQSPVOXMZJ[H[GZGXHWIXHY ROLNNMOKOJNJLKJMHOGRFWFZG[I[KZMYNVORO RWFYGZIZKYMXNVO RROUPVRWYX[ RROTPURVYX[Y[[Z]X",2569:" 36H\\NIMKMMNOPPSPVOXN[K\\H\\G[FZFXGWHVJUMSTRWPZN[ RVJUNTUSXQZN[K[IZHXHWIVJWIX",2570:" 38I[YHXJVOTUSWQZO[ RSLRNPONOMMMKNIPGSF\\FZGYHXKVSUVTXRZO[M[KZJYJXKWLXKY RUFYGZG",2571:" 39G]HJJGLFMFOHOKNNKVKYL[ RMFNHNKKSJVJYL[N[PZSWUTVR RZFVRUVUYW[X[ZZ\\X R[FWRVVVYW[",2572:" 36G\\HJJGLFMFOHOKNOLVLYM[ RMFNHNKLRKVKYM[N[QZTWVTXPYMZIZGYFXFWGVIVLWNYP[Q]Q",2573:" 41F]ILHLGKGIHGJFNFMHLLKUJ[ RLLLUK[ RVFTHRLOUMYK[ RVFUHTLSUR[ RTLTUS[ R`F^G\\IZLWUUYS[",2574:" 52H\\PKOLMLLKLIMGOFQFSGTITLSPQUOXMZJ[H[GZGXHWIXHY RQFRGSISLRPPUNXLZJ[ R]G\\H]I^H^G]F[FYGWIULSPRURXSZT[U[WZYX",2575:" 42G]JJLGNFOFQGQIOOORPT ROFPGPINONRPTRTUSWQYNZL R\\FZLWTUX R]F[LYQWUUXSZP[L[JZIXIWJVKWJX",2576:" 44G\\ZHYJWOVRUTSWQYOZL[ RSLRNPONOMMMKNIPGSF]F[GZHYKXOVUTXQZL[H[GZGXHWJWLXOZQ[T[WZYX RVFZG[G",2601:" 36H\\WMW[X[ RWMXMX[ RWPUNSMPMNNLPKSKULXNZP[S[UZWX RWPSNPNNOMPLSLUMXNYPZSZWX",2602:" 36H\\LFL[M[ RLFMFM[ RMPONQMTMVNXPYSYUXXVZT[Q[OZMX RMPQNTNVOWPXSXUWXVYTZQZMX",2603:" 32I[XPVNTMQMONMPLSLUMXOZQ[T[VZXX RXPWQVOTNQNOONPMSMUNXOYQZTZVYWWXX",2604:" 36H\\WFW[X[ RWFXFX[ RWPUNSMPMNNLPKSKULXNZP[S[UZWX RWPSNPNNOMPLSLUMXNYPZSZWX",2605:" 36I[MTXTXQWOVNTMQMONMPLSLUMXOZQ[T[VZXX RMSWSWQVOTNQNOONPMSMUNXOYQZTZVYWWXX",2606:" 24LZWFUFSGRJR[S[ RWFWGUGSH RTGSJS[ ROMVMVN ROMONVN",2607:" 48H\\XMWMW\\V_U`SaQaO`N_L_ RXMX\\W_UaSbPbNaL_ RWPUNSMPMNNLPKSKULXNZP[S[UZWX RWPSNPNNOMPLSLUMXNYPZSZWX",2608:" 25H\\LFL[M[ RLFMFM[ RMQPNRMUMWNXQX[ RMQPORNTNVOWQW[X[",2609:" 24NWRFQGQHRISITHTGSFRF RRGRHSHSGRG RRMR[S[ RRMSMS[",2610:" 24NWRFQGQHRISITHTGSFRF RRGRHSHSGRG RRMRbSb RRMSMSb",2611:" 22H[LFL[M[ RLFMFM[ RXMWMMW RXMMX RPTV[X[ RQSX[",2612:" 8NWRFR[S[ RRFSFS[",2613:" 42CbGMG[H[ RGMHMH[ RHQKNMMPMRNSQS[ RHQKOMNONQORQR[S[ RSQVNXM[M]N^Q^[ RSQVOXNZN\\O]Q][^[",2614:" 25H\\LML[M[ RLMMMM[ RMQPNRMUMWNXQX[ RMQPORNTNVOWQW[X[",2615:" 36I\\QMONMPLSLUMXOZQ[T[VZXXYUYSXPVNTMQM RQNOONPMSMUNXOYQZTZVYWXXUXSWPVOTNQN",2616:" 36H\\LMLbMb RLMMMMb RMPONQMTMVNXPYSYUXXVZT[Q[OZMX RMPQNTNVOWPXSXUWXVYTZQZMX",2617:" 36H\\WMWbXb RWMXMXb RWPUNSMPMNNLPKSKULXNZP[S[UZWX RWPSNPNNOMPLSLUMXNYPZSZWX",2618:" 21KYOMO[P[ ROMPMP[ RPSQPSNUMXM RPSQQSOUNXNXM",2619:" 50J[XPWNTMQMNNMPNRPSUUWV RVUWWWXVZ RWYTZQZNY ROZNXMX RXPWPVN RWOTNQNNO RONNPOR RNQPRUTWUXWXXWZT[Q[NZMX",2620:" 16MXRFR[S[ RRFSFS[ ROMVMVN ROMONVN",2621:" 25H\\LMLWMZO[R[TZWW RLMMMMWNYPZRZTYWW RWMW[X[ RWMXMX[",2622:" 14JZLMR[ RLMMMRY RXMWMRY RXMR[",2623:" 26F^IMN[ RIMJMNX RRMNX RRPN[ RRPV[ RRMVX R[MZMVX R[MV[",2624:" 16I[LMW[X[ RLMMMX[ RXMWML[ RXMM[L[",2625:" 17JZLMR[ RLMMMRY RXMWMRYNb RXMR[ObNb",2626:" 20I[VNL[ RXMNZ RLMXM RLMLNVN RNZXZX[ RL[X[",2651:" 33K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RVRTXTZV[XZYY[V RWRUXUZV[",2652:" 23LZLVNSPO RSFMXMZO[P[RZTXUUURVVWWXWZV RTFNXNZO[",2653:" 22LXTSSTTTTSSRQROSNTMVMXNZP[S[VYXV RQROTNVNYP[",2654:" 33K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RZFTXTZV[XZYY[V R[FUXUZV[",2655:" 23LXOYQXRWSUSSRRQROSNTMVMXNZP[S[VYXV RQROTNVNYP[",2656:" 27OXRRUOWLXIXGWFUGTIKdKfLgNfOcPZQ[S[UZVYXV RTISNRRO[M`Kd",2657:" 38K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RVRPd RWRT[R`PdOfMgLfLdMaO_R]V[YY[V",2658:" 30L[LVNSPO RSFL[ RTFM[ ROUQSSRTRVSVUUXUZV[ RTRUSUUTXTZV[XZYY[V",2659:" 19NVSLRMSNTMSL RQROXOZQ[SZTYVV RRRPXPZQ[",2660:" 24NVSLRMSNTMSL RQRKd RRRO[M`KdJfHgGfGdHaJ_M]Q[TYVV",2661:" 31LZLVNSPO RSFL[ RTFM[ RURUSVSURTRRTOU ROURVSZT[ ROUQVRZT[U[XYZV",2662:" 17NVNVPSRO RUFOXOZQ[SZTYVV RVFPXPZQ[",2663:" 45E^EVGSIRKSKUI[ RIRJSJUH[ RKUMSORPRRSRUP[ RPRQSQUO[ RRUTSVRWRYSYUXXXZY[ RWRXSXUWXWZY[[Z\\Y^V",2664:" 32I[IVKSMROSOUM[ RMRNSNUL[ ROUQSSRTRVSVUUXUZV[ RTRUSUUTXTZV[XZYY[V",2665:" 29KYRRPRNSMTLVLXMZO[Q[SZTYUWUUTSRRQSQURWTXVXXWYV RPRNTMVMYO[",2666:" 30L[LVNSPO RQLHg RRLIg ROUQSSRTRVSVUUXUZV[ RTRUSUUTXTZV[XZYY[V",2667:" 35K[UUTSRRPRNSMTLVLXMZO[Q[SZ RPRNTMVMYO[ RVRPdPfQgSfTcT[V[YY[V RWRT[R`Pd",2668:" 24LZLVNSPRRSRUP[ RPRQSQUO[ RRUTSVRWRVU RVRVUWWXWZV",2669:" 22NZNVPSQQQSTUUWUYTZR[ RQSSUTWTYR[ RNZP[U[XYZV",2670:" 20NVNVPSRO RUFOXOZQ[SZTYVV RVFPXPZQ[ RPNVN",2671:" 27K[NRLXLZN[O[QZSXUU RORMXMZN[ RVRTXTZV[XZYY[V RWRUXUZV[",2672:" 23KZNRMTLWLZN[O[RZTXUUUR RORNTMWMZN[ RURVVWWXWZV",2673:" 36H]LRJTIWIZK[L[NZPX RMRKTJWJZK[ RRRPXPZR[S[UZWXXUXR RSRQXQZR[ RXRYVZW[W]V",2674:" 42JZJVLSNRPRQSQUPXOZM[L[KZKYLYKZ RWSVTWTWSVRURSSRUQXQZR[U[XYZV RQSRU RSSQU RPXQZ RQXOZ",2675:" 32K[NRLXLZN[O[QZSXUU RORMXMZN[ RVRPd RWRT[R`PdOfMgLfLdMaO_R]V[YY[V",2676:" 38LYLVNSPRRRTSTVSXPZN[ RRRSSSVRXPZ RN[P\\Q^QaPdNfLgKfKdLaO^R\\VYYV RN[O\\P^PaOdNf",2700:" 42H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF ROGMJLOLRMWOZ RNYQZSZVY RUZWWXRXOWJUG RVHSGQGNH",2701:" 12H\\NJPISFS[ RNJNKPJRHR[S[",2702:" 34H\\LKLJMHNGPFTFVGWHXJXLWNUQL[ RLKMKMJNHPGTGVHWJWLVNTQK[ RLZYZY[ RK[Y[",2703:" 48H\\MFXFQO RMFMGWG RWFPO RQNSNVOXQYTYUXXVZS[P[MZLYKWLW RPOSOVPXS RTOWQXTXUWXTZ RXVVYSZPZMYLW ROZLX",2704:" 18H\\UIU[V[ RVFV[ RVFKVZV RUILV RLUZUZV",2705:" 53H\\MFLO RNGMN RMFWFWG RNGWG RMNPMSMVNXPYSYUXXVZS[P[MZLYKWLW RLOMOONSNVOXR RTNWPXSXUWXTZ RXVVYSZPZMYLW ROZLX",2706:" 62H\\VGWIXIWGTFRFOGMJLOLTMXOZR[S[VZXXYUYTXQVOSNRNOOMQ RWHTGRGOH RPGNJMOMTNXQZ RMVOYRZSZVYXV RTZWXXUXTWQTO RXSVPSOROOPMS RQONQMT",2707:" 12H\\KFYFO[ RKFKGXG RXFN[O[",2708:" 68H\\PFMGLILKMMNNPOTPVQWRXTXWWYTZPZMYLWLTMRNQPPTOVNWMXKXIWGTFPF RNGMIMKNMPNTOVPXRYTYWXYWZT[P[MZLYKWKTLRNPPOTNVMWKWIVG RWHTGPGMH RLXOZ RUZXX",2709:" 62H\\WPURRSQSNRLPKMKLLINGQFRFUGWIXMXRWWUZR[P[MZLXMXNZ RWMVPSR RWNUQRRQRNQLN RPRMPLMLLMIPG RLKNHQGRGUHWK RSGVIWMWRVWTZ RUYRZPZMY",2710:" 16MXRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2711:" 24MXTZS[R[QZQYRXSXTYT\\S^Q_ RRYRZSZSYRY RS[T\\ RTZS^",2712:" 32MXRMQNQORPSPTOTNSMRM RRNROSOSNRN RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2713:" 40MXRMQNQORPSPTOTNSMRM RRNROSOSNRN RTZS[R[QZQYRXSXTYT\\S^Q_ RRYRZSZSYRY RS[T\\ RTZS^",2714:" 24MXRFRTST RRFSFST RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2715:" 58I\\LKLJMHNGQFTFWGXHYJYLXNWOUPRQ RLKMKMJNHQGTGWHXJXLWNUORP RMIPG RUGXI RXMTP RRPRTSTSP RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2716:" 24MXTFRGQIQLRMSMTLTKSJRJQK RRKRLSLSKRK RRGQK RQIRJ",2717:" 24MXTHSIRIQHQGRFSFTGTJSLQM RRGRHSHSGRG RSITJ RTHSL",2718:" 71F_\\MZMXNWPUVTXSYQZMZKYJWJUKSLRQOSMTKTISGQFPFNGMIMKNNPQUWXZZ[\\[ R\\M\\NZNXO RYNXPVVUXSZQ[M[KZJYIWIUJSLQQNRMSKSIRG RSHQGPGNH ROGNINKONQQVWXYZZ\\Z\\[",2719:" 51I\\RBR_S_ RRBSBS_ RWIYIWGTFQFNGLILKMMNNVRWSXUXWWYTZQZOYNX RWIVHTGQGNHMIMKNMVQXSYUYWXYWZT[Q[NZLXNX RXXUZ",2720:" 8G^[BIbJb R[B\\BJb",2721:" 24KYUBSDQGOKNPNTOYQ]S`UbVb RUBVBTDRGPKOPOTPYR]T`Vb",2722:" 24KYNBPDRGTKUPUTTYR]P`NbOb RNBOBQDSGUKVPVTUYS]Q`Ob",2723:" 39JZRFQGSQRR RRFRR RRFSGQQRR RMINIVOWO RMIWO RMIMJWNWO RWIVINOMO RWIMO RWIWJMNMO",2724:" 8F_JQ[Q[R RJQJR[R",2725:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",2726:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",2727:" 11NWSFRGRM RSGRM RSFTGRM",2728:" 22I[NFMGMM RNGMM RNFOGMM RWFVGVM RWGVM RWFXGVM",2729:" 30KYQFOGNINKOMQNSNUMVKVIUGSFQF RQFNIOMSNVKUGQF RSFOGNKQNUMVISF",2750:" 42H]TFQGOIMLLOKSKVLYMZO[Q[TZVXXUYRZNZKYHXGVFTF RTFRGPINLMOLSLVMYO[ RQ[SZUXWUXRYNYKXHVF",2751:" 15H]TJO[ RVFP[ RVFSIPKNL RUIQKNL",2752:" 42H]OJPKOLNKNJOHPGSFVFYGZIZKYMWOTQPSMUKWI[ RVFXGYIYKXMVOPS RJYKXMXRZUZWYXW RMXR[U[WZXW",2753:" 50H]OJPKOLNKNJOHPGSFVFYGZIZKYMVOSP RVFXGYIYKXMVO RQPSPVQWRXTXWWYVZS[O[LZKYJWJVKULVKW RSPUQVRWTWWVYUZS[",2754:" 10H]XGR[ RYFS[ RYFJUZU",2755:" 39H]QFLP RQF[F RQGVG[F RLPMOPNSNVOWPXRXUWXUZR[O[LZKYJWJVKULVKW RSNUOVPWRWUVXTZR[",2756:" 46H]YIXJYKZJZIYGWFTFQGOIMLLOKSKWLYMZO[R[UZWXXVXSWQVPTOQOOPMRLT RTFRGPINLMOLSLXMZ RR[TZVXWVWRVP",2757:" 30H]NFLL R[FZIXLSRQUPWO[ RXLRRPUOWN[ RMIPFRFWI RNHPGRGWIYIZH[F",2758:" 63H]SFPGOHNJNMOOQPTPXOYNZLZIYGVFSF RSFQGPHOJOMPOQP RTPWOXNYLYIXGVF RQPMQKSJUJXKZN[R[VZWYXWXTWRVQTP RQPNQLSKUKXLZN[ RR[UZVYWWWSVQ",2759:" 46H]YMXOVQTRQROQNPMNMKNIPGSFVFXGYHZJZNYRXUVXTZQ[N[LZKXKWLVMWLX ROQNONKOIQGSF RXGYIYNXRWUUXSZQ[",2760:" 6MXPYOZP[QZPY",2761:" 8MXP[OZPYQZQ[P]N_",2762:" 11MXSMRNSOTNSM RPYOZP[QZ",2763:" 14MXSMRNSOTNSM RP[OZPYQZQ[P]N_",2764:" 17MXUFTGRS RUGRS RUFVGRS RPYOZP[QZPY",2765:" 34H]OJPKOLNKNJOHPGSFWFZG[I[KZMYNSPQQQSRTTT RWFYGZIZKYMXNVO RPYOZP[QZPY",2766:" 8MXVFTHSJSKTLUKTJ",2767:" 8MXUHTGUFVGVHUJSL",2768:" 55E_\\N[O\\P]O]N\\M[MYNWPRXPZN[K[HZGXGVHTISKRPPROTMUKUITGRFPGOIOLPRQUSXUZW[Y[ZYZX RK[IZHXHVITJSPP ROLPQQTSWUYWZYZZY",2769:" 41H]TBL_ RYBQ_ RZJYKZL[K[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJVKULVKW",2770:" 3G]_BEb",2771:" 20KZZBVESHQKOONTNXO]P`Qb RVESIQMPPOUOZP_Qb",2772:" 20JYSBTDUGVLVPUUSYQ\\N_Jb RSBTEUJUOTTSWQ[N_",2773:" 9J[TFTR ROIYO RYIOO",2774:" 3E_IR[R",2775:" 6E_RIR[ RIR[R",2776:" 6E_IO[O RIU[U",2777:" 6NWUFSM RVFSM",2778:" 12I[PFNM RQFNM RYFWM RZFWM",2779:" 14KZSFQGPIPKQMSNUNWMXKXIWGUFSF",2801:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2802:" 31G]LFL[ RMFM[ RIFYFYLXF RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2803:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2804:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2805:" 31F^NFNLMTLXKZJ[ RXFX[ RYFY[ RKF\\F RG[\\[ RG[Gb RH[Gb R[[\\b R\\[\\b",2806:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2807:" 71CbRFR[ RSFS[ ROFVF RGGHHGIFHFGGFHFIGJIKMLONPWPYOZM[I\\G]F^F_G_H^I]H^G RNPLQKSJXIZH[ RNPMQLSKXJZI[G[FZEX RWPYQZS[X\\Z][ RWPXQYSZX[Z\\[^[_Z`X RO[V[",2808:" 45H\\LIKFKLLINGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[O[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2809:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RXHLY RH[O[ RU[\\[",2810:" 37F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RXHLY RH[O[ RU[\\[ RN@N?M?M@NBPCTCVBW@",2811:" 43F^KFK[ RLFL[ RHFOF RLPSPUOVMWIXGYFZF[G[HZIYHZG RSPUQVSWXXZY[ RSPTQUSVXWZX[Z[[Z\\X RH[O[",2812:" 25E^MFMLLTKXJZI[H[GZGYHXIYHZ RXFX[ RYFY[ RJF\\F RU[\\[",2813:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2814:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2815:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2816:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2817:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2818:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2819:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2820:" 24H]KFRV RLFSV RZFSVQYPZN[M[LZLYMXNYMZ RIFOF RVF\\F",2821:" 48F_RFR[ RSFS[ ROFVF RPILJJLIOIRJULWPXUXYW[U\\R\\O[LYJUIPI RPIMJKLJOJRKUMWPX RUXXWZU[R[OZLXJUI RO[V[",2822:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2823:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RH[\\[ R[[\\b R\\[\\b",2824:" 28F]KFKQLSOTRTUSWQ RLFLQMSOT RWFW[ RXFX[ RHFOF RTF[F RT[[[",2825:" 30BcGFG[ RHFH[ RRFR[ RSFS[ R]F][ R^F^[ RDFKF ROFVF RZFaF RD[a[",2826:" 36BcGFG[ RHFH[ RRFR[ RSFS[ R]F][ R^F^[ RDFKF ROFVF RZFaF RD[a[ R`[ab Ra[ab",2827:" 31F`PFP[ RQFQ[ RIFHLHFTF RQPXP[Q\\R]T]W\\Y[ZX[M[ RXPZQ[R\\T\\W[YZZX[",2828:" 41CaHFH[ RIFI[ REFLF RIPPPSQTRUTUWTYSZP[E[ RPPRQSRTTTWSYRZP[ R[F[[ R\\F\\[ RXF_F RX[_[",2829:" 29H]MFM[ RNFN[ RJFQF RNPUPXQYRZTZWYYXZU[J[ RUPWQXRYTYWXYWZU[",2830:" 39H]LIKFKLLINGQFSFVGXIYKZNZSYVXXVZS[P[MZLYKWKVLUMVLW RSFUGWIXKYNYSXVWXUZS[ RPPYP",2831:" 59CbHFH[ RIFI[ REFLF RE[L[ RVFSGQIPKOOORPVQXSZV[X[[Z]X^V_R_O^K]I[GXFVF RVFTGRIQKPOPRQVRXTZV[ RX[ZZ\\X]V^R^O]K\\IZGXF RIPOP",2832:" 45G]WFW[ RXFX[ R[FOFLGKHJJJLKNLOOPWP ROFMGLHKJKLLNMOOP RRPPQORLYKZJZIY RPQOSMZL[J[IYIX RT[[[",2901:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2902:" 48H\\XFWGQINKLNKQKULXNZQ[S[VZXXYUYSXPVNSMQMNNLPKS RXFWHUIQJNLLN RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2903:" 37H\\MMM[ RNMN[ RJMUMXNYPYQXSUT RUMWNXPXQWSUT RNTUTXUYWYXXZU[J[ RUTWUXWXXWZU[",2904:" 14HZMMM[ RNMN[ RJMXMXRWM RJ[Q[",2905:" 22F]NMNQMWLZK[ RWMW[ RXMX[ RKM[M RI[H`H[[[[`Z[",2906:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2907:" 59E`RMR[ RSMS[ ROMVM RJNIOHNIMJMKNMRNSPTUTWSXRZN[M\\M]N\\O[N RPTNUMVKZJ[ RPTNVLZK[I[HZGX RUTWUXVZZ[[ RUTWVYZZ[\\[]Z^X RO[V[",2908:" 42I[MOLMLQMONNPMTMWNXPXQWSTT RTMVNWPWQVSTT RQTTTWUXWXXWZT[P[MZLXLWMVNWMX RTTVUWWWXVZT[",2909:" 27G]LML[ RMMM[ RWMW[ RXMX[ RIMPM RTM[M RI[P[ RT[[[ RWNMZ",2910:" 37G]LML[ RMMM[ RWMW[ RXMX[ RIMPM RTM[M RI[P[ RT[[[ RWNMZ ROGOFNFNGOIQJSJUIVG",2911:" 38H\\MMM[ RNMN[ RJMQM RNTPTSSTRVNWMXMYNXOWN RPTSUTVVZW[ RPTRUSVUZV[X[YZZX RJ[Q[",2912:" 22G]NMNQMWLZK[J[IZJYKZ RWMW[ RXMX[ RKM[M RT[[[",2913:" 30G^LML[ RLMR[ RMMRY RXMR[ RXMX[ RYMY[ RIMMM RXM\\M RI[O[ RU[\\[",2914:" 27G]LML[ RMMM[ RWMW[ RXMX[ RIMPM RTM[M RMTWT RI[P[ RT[[[",2915:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2916:" 21G]LML[ RMMM[ RWMW[ RXMX[ RIM[M RI[P[ RT[[[",2917:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2918:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2919:" 16I\\RMR[ RSMS[ RMMLRLMYMYRXM RO[V[",2920:" 22I[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2921:" 52H]RFRb RSFSb ROFSF RRPQNPMNMLNKQKWLZN[P[QZRX RNMMNLQLWMZN[ RWMXNYQYWXZW[ RSPTNUMWMYNZQZWYZW[U[TZSX RObVb",2922:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2923:" 23G]LML[ RMMM[ RWMW[ RXMX[ RIMPM RTM[M RI[[[[`Z[",2924:" 28G]LMLTMVPWRWUVWT RMMMTNVPW RWMW[ RXMX[ RIMPM RTM[M RT[[[",2925:" 30CbHMH[ RIMI[ RRMR[ RSMS[ R\\M\\[ R]M][ REMLM ROMVM RYM`M RE[`[",2926:" 32CbHMH[ RIMI[ RRMR[ RSMS[ R\\M\\[ R]M][ REMLM ROMVM RYM`M RE[`[``_[",2927:" 27H]QMQ[ RRMR[ RLMKRKMUM RRTVTYUZWZXYZV[N[ RVTXUYWYXXZV[",2928:" 37E_JMJ[ RKMK[ RGMNM RKTOTRUSWSXRZO[G[ ROTQURWRXQZO[ RYMY[ RZMZ[ RVM]M RV[][",2929:" 25J[OMO[ RPMP[ RLMSM RPTTTWUXWXXWZT[L[ RTTVUWWWXVZT[",2930:" 34I\\MOLMLQMONNPMSMVNXPYSYUXXVZS[P[NZLXLWMVNWMX RSMUNWPXSXUWXUZS[ RRTXT",2931:" 51DaIMI[ RJMJ[ RFMMM RF[M[ RVMSNQPPSPUQXSZV[X[[Z]X^U^S]P[NXMVM RVMTNRPQSQURXTZV[ RX[ZZ\\X]U]S\\PZNXM RJTPT",2932:" 40G\\VMV[ RWMW[ RZMOMLNKPKQLSOTVT ROMMNLPLQMSOT RTTQUPVNZM[ RTTRUQVOZN[L[KZJX RS[Z[",3001:" 36H\\RFKZ RQIW[ RRIX[ RRFY[ RMUVU RI[O[ RT[[[ RKZJ[ RKZM[ RWZU[ RWYV[ RXYZ[",3002:" 78G]LFL[ RMGMZ RNFN[ RIFUFXGYHZJZLYNXOUP RXHYJYLXN RUFWGXIXMWOUP RNPUPXQYRZTZWYYXZU[I[ RXRYTYWXY RUPWQXSXXWZU[ RJFLG RKFLH ROFNH RPFNG RLZJ[ RLYK[ RNYO[ RNZP[",3003:" 37G\\XIYFYLXIVGTFQFNGLIKKJNJSKVLXNZQ[T[VZXXYV RMILKKNKSLVMX RQFOGMJLNLSMWOZQ[",3004:" 62G]LFL[ RMGMZ RNFN[ RIFSFVGXIYKZNZSYVXXVZS[I[ RWIXKYNYSXVWX RSFUGWJXNXSWWUZS[ RJFLG RKFLH ROFNH RPFNG RLZJ[ RLYK[ RNYO[ RNZP[",3005:" 83G\\LFL[ RMGMZ RNFN[ RIFYFYL RNPTP RTLTT RI[Y[YU RJFLG RKFLH ROFNH RPFNG RTFYG RVFYH RWFYI RXFYL RTLSPTT RTNRPTR RTOPPTQ RLZJ[ RLYK[ RNYO[ RNZP[ RT[YZ RV[YY RW[YX RX[YU",3006:" 70G[LFL[ RMGMZ RNFN[ RIFYFYL RNPTP RTLTT RI[Q[ RJFLG RKFLH ROFNH RPFNG RTFYG RVFYH RWFYI RXFYL RTLSPTT RTNRPTR RTOPPTQ RLZJ[ RLYK[ RNYO[ RNZP[",3007:" 60G^XIYFYLXIVGTFQFNGLIKKJNJSKVLXNZQ[T[VZXZY[YS RMILKKNKSLVMX RQFOGMJLNLSMWOZQ[ RXTXY RWSWYVZ RTS\\S RUSWT RVSWU RZSYU R[SYT",3008:" 81F^KFK[ RLGLZ RMFM[ RWFW[ RXGXZ RYFY[ RHFPF RTF\\F RMPWP RH[P[ RT[\\[ RIFKG RJFKH RNFMH ROFMG RUFWG RVFWH RZFYH R[FYG RKZI[ RKYJ[ RMYN[ RMZO[ RWZU[ RWYV[ RYYZ[ RYZ[[",3009:" 39LXQFQ[ RRGRZ RSFS[ RNFVF RN[V[ ROFQG RPFQH RTFSH RUFSG RQZO[ RQYP[ RSYT[ RSZU[",3010:" 45JYSFSWRZQ[ RTGTWSZ RUFUWTZQ[O[MZLXLVMUNUOVOWNXMX RMVMWNWNVMV RPFXF RQFSG RRFSH RVFUH RWFUG",3011:" 69F\\KFK[ RLGLZ RMFM[ RXGMR RPPW[ RQPX[ RQNY[ RHFPF RUF[F RH[P[ RT[[[ RIFKG RJFKH RNFMH ROFMG RWFXG RZFXG RKZI[ RKYJ[ RMYN[ RMZO[ RWYU[ RWYZ[",3012:" 52I[NFN[ ROGOZ RPFP[ RKFSF RK[Z[ZU RLFNG RMFNH RQFPH RRFPG RNZL[ RNYM[ RPYQ[ RPZR[ RU[ZZ RW[ZY RX[ZX RY[ZU",3013:" 63E_JFJZ RJFQ[ RKFQX RLFRX RXFQ[ RXFX[ RYGYZ RZFZ[ RGFLF RXF]F RG[M[ RU[][ RHFJG R[FZH R\\FZG RJZH[ RJZL[ RXZV[ RXYW[ RZY[[ RZZ\\[",3014:" 39F^KFKZ RKFY[ RLFXX RMFYX RYGY[ RHFMF RVF\\F RH[N[ RIFKG RWFYG R[FYG RKZI[ RKZM[",3015:" 54G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RMILKKNKSLVMX RWXXVYSYNXKWI RQFOGMJLNLSMWOZQ[ RS[UZWWXSXNWJUGSF",3016:" 59G]LFL[ RMGMZ RNFN[ RIFUFXGYHZJZMYOXPUQNQ RXHYJYMXO RUFWGXIXNWPUQ RI[Q[ RJFLG RKFLH ROFNH RPFNG RLZJ[ RLYK[ RNYO[ RNZP[",3017:" 77G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RMILKKNKSLVMX RWXXVYSYNXKWI RQFOGMJLNLSMWOZQ[ RS[UZWWXSXNWJUGSF RNXOVQURUTVUXV^W`Y`Z^Z\\ RV\\W^X_Y_ RUXW]X^Y^Z]",3018:" 80G]LFL[ RMGMZ RNFN[ RIFUFXGYHZJZLYNXOUPNP RXHYJYLXN RUFWGXIXMWOUP RRPTQUSWYX[Z[[Y[W RWWXYYZZZ RTQURXXYYZY[X RI[Q[ RJFLG RKFLH ROFNH RPFNG RLZJ[ RLYK[ RNYO[ RNZP[",3019:" 44H\\XIYFYLXIVGSFPFMGKIKLLNOPURWSXUXXWZ RLLMNOOUQWRXT RMGLILKMMONUPXRYTYWXYWZT[Q[NZLXKUK[LX",3020:" 57H\\JFJL RQFQ[ RRGRZ RSFS[ RZFZL RJFZF RN[V[ RKFJL RLFJI RMFJH ROFJG RUFZG RWFZH RXFZI RYFZL RQZO[ RQYP[ RSYT[ RSZU[",3021:" 45F^KFKULXNZQ[S[VZXXYUYG RLGLVMX RMFMVNYOZQ[ RHFPF RVF\\F RIFKG RJFKH RNFMH ROFMG RWFYG R[FYG",3022:" 34H\\KFR[ RLFRXR[ RMFSX RYGR[ RIFPF RUF[F RJFLH RNFMH ROFMG RWFYG RZFYG",3023:" 55F^JFN[ RKFNVN[ RLFOV RRFOVN[ RRFV[ RSFVVV[ RTFWV RZGWVV[ RGFOF RRFTF RWF]F RHFKG RIFKH RMFLH RNFLG RXFZG R\\FZG",3024:" 54H\\KFW[ RLFX[ RMFY[ RXGLZ RIFPF RUF[F RI[O[ RT[[[ RJFMH RNFMH ROFMG RVFXG RZFXG RLZJ[ RLZN[ RWZU[ RWYV[ RWYZ[",3025:" 48G]JFQQQ[ RKFRQRZ RLFSQS[ RYGSQ RHFOF RVF\\F RN[V[ RIFKG RNFLG RWFYG R[FYG RQZO[ RQYP[ RSYT[ RSZU[",3026:" 41H\\YFKFKL RWFK[ RXFL[ RYFM[ RK[Y[YU RLFKL RMFKI RNFKH RPFKG RT[YZ RV[YY RW[YX RX[YU",3051:" 38H\\UFIZ RSJT[ RTHUZ RUFUHVYV[ RLUTU RF[L[ RQ[X[ RIZG[ RIZK[ RTZR[ RTYS[ RVYW[",3052:" 78F^OFI[ RPFJ[ RQFK[ RLFWFZG[I[KZNYOVP RYGZIZKYNXO RWFXGYIYKXNVP RNPVPXQYSYUXXVZR[F[ RWQXSXUWXUZ RVPWRWUVXTZR[ RMFPG RNFOH RRFPH RSFPG RJZG[ RJYH[ RKYL[ RJZM[",3053:" 41H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RQHOJNLMOLSLWMY RTFRGPJOLNOMSMXNZP[",3054:" 63F]OFI[ RPFJ[ RQFK[ RLFUFXGYHZKZOYSWWUYSZO[F[ RWGXHYKYOXSVWTY RUFWHXKXOWSUWRZO[ RMFPG RNFOH RRFPH RSFPG RJZG[ RJYH[ RKYL[ RJZM[",3055:" 80F]OFI[ RPFJ[ RQFK[ RULST RLF[FZL RNPTP RF[U[WV RMFPG RNFOH RRFPH RSFPG RWFZG RXFZH RYFZI RZFZL RULSPST RTNRPSR RTOQPSQ RJZG[ RJYH[ RKYL[ RJZM[ RP[UZ RR[UY RUYWV",3056:" 70F\\OFI[ RPFJ[ RQFK[ RULST RLF[FZL RNPTP RF[N[ RMFPG RNFOH RRFPH RSFPG RWFZG RXFZH RYFZI RZFZL RULSPST RTNRPSR RTOQPSQ RJZG[ RJYH[ RKYL[ RJZM[",3057:" 65H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RQHOJNLMOLSLWMY RVXWWXT RTFRGPJOLNOMSMXNZP[ RR[TZVWWT RTT\\T RUTWU RVTWW RZTXV R[TXU",3058:" 81E_NFH[ ROFI[ RPFJ[ RZFT[ R[FU[ R\\FV[ RKFSF RWF_F RLPXP RE[M[ RQ[Y[ RLFOG RMFNH RQFOH RRFOG RXF[G RYFZH R]F[H R^F[G RIZF[ RIYG[ RJYK[ RIZL[ RUZR[ RUYS[ RVYW[ RUZX[",3059:" 39KYTFN[ RUFO[ RVFP[ RQFYF RK[S[ RRFUG RSFTH RWFUH RXFUG ROZL[ ROYM[ RPYQ[ ROZR[",3060:" 47I\\WFRWQYO[ RXFTSSVRX RYFUSSXQZO[M[KZJXJVKULUMVMWLXKX RKVKWLWLVKV RTF\\F RUFXG RVFWH RZFXH R[FXG",3061:" 72F]OFI[ RPFJ[ RQFK[ R\\GMR RQOU[ RROV[ RSNWZ RLFTF RYF_F RF[N[ RR[Y[ RMFPG RNFOH RRFPH RSFPG RZF\\G R^F\\G RJZG[ RJYH[ RKYL[ RJZM[ RUZS[ RUYT[ RVYX[",3062:" 49H\\QFK[ RRFL[ RSFM[ RNFVF RH[W[YU ROFRG RPFQH RTFRH RUFRG RLZI[ RLYJ[ RMYN[ RLZO[ RR[WZ RT[XX RV[YU",3063:" 68D`MFGZ RMGNYN[ RNFOY ROFPX R[FPXN[ R[FU[ R\\FV[ R]FW[ RJFOF R[F`F RD[J[ RR[Z[ RKFMG RLFMH R^F\\H R_F\\G RGZE[ RGZI[ RVZS[ RVYT[ RWYX[ RVZY[",3064:" 43F_OFIZ ROFV[ RPFVX RQFWX R\\GWXV[ RLFQF RYF_F RF[L[ RMFPG RNFPH RZF\\G R^F\\G RIZG[ RIZK[",3065:" 56G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF ROIMLLOKSKWLY RUXWUXRYNYJXH RSFQGOJNLMOLSLXMZN[ RQ[SZUWVUWRXNXIWGVF",3066:" 60F]OFI[ RPFJ[ RQFK[ RLFXF[G\\I\\K[NYPUQMQ RZG[I[KZNXP RXFYGZIZKYNWPUQ RF[N[ RMFPG RNFOH RRFPH RSFPG RJZG[ RJYH[ RKYL[ RJZM[",3067:" 78G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF ROIMLLOKSKWLY RUXWUXRYNYJXH RSFQGOJNLMOLSLXMZN[ RQ[SZUWVUWRXNXIWGVF RLXMVOUPURVSXT]U^V^W] RT^U_V_ RSXS_T`V`W]W\\",3068:" 78F^OFI[ RPFJ[ RQFK[ RLFWFZG[I[KZNYOVPNP RYGZIZKYNXO RWFXGYIYKXNVP RRPTQURWXXYYYZX RWYXZYZ RURVZW[Y[ZXZW RF[N[ RMFPG RNFOH RRFPH RSFPG RJZG[ RJYH[ RKYL[ RJZM[",3069:" 44G^ZH[H\\F[L[JZHYGVFRFOGMIMLNNPPVSWUWXVZ RNLONVRWT ROGNINKOMUPWRXTXWWYVZS[O[LZKYJWJUI[JYKY",3070:" 54G]TFN[ RUFO[ RVFP[ RMFKL R]F\\L RMF]F RK[S[ RNFKL RPFLI RRFMG RYF\\G RZF\\H R[F\\I R\\F\\L ROZL[ ROYM[ RPYQ[ ROZR[",3071:" 48F_NFKQJUJXKZN[R[UZWXXU\\G ROFLQKUKYLZ RPFMQLULYN[ RKFSF RYF_F RLFOG RMFNH RQFOH RRFOG RZF\\G R^F\\G",3072:" 35H\\NFNHOYO[ ROGPX RPFQW R[GO[ RLFSF RXF^F RMFNH RQFPH RRFOG RYF[G R]F[G",3073:" 57E_MFMHKYK[ RNGLX ROFMW RUFMWK[ RUFUHSYS[ RVGTX RWFUW R]GUWS[ RJFRF RUFWF RZF`F RKFNG RLFMH RPFNI RQFNG R[F]G R_F]G",3074:" 54G]NFT[ ROFU[ RPFV[ R[GIZ RLFSF RXF^F RF[L[ RQ[X[ RMFOH RQFPH RRFPG RYF[G R]F[G RIZG[ RIZK[ RTZR[ RTYS[ RUYW[",3075:" 51G]MFQPN[ RNFRPO[ ROFSPP[ R\\GSP RKFRF RYF_F RK[S[ RLFNG RPFOH RQFNG RZF\\G R^F\\G ROZL[ ROYM[ RPYQ[ ROZR[",3076:" 35G]ZFH[ R[FI[ R\\FJ[ R\\FNFLL RH[V[XU ROFLL RPFMI RRFNG RR[VZ RT[WX RU[XU",3101:" 54I]NPNOOOOQMQMONNPMTMVNWOXQXXYZZ[ RVOWQWXXZ RTMUNVPVXWZZ[[[ RVRUSPTMULWLXMZP[S[UZVX RNUMWMXNZ RUSQTOUNWNXOZP[",3102:" 47G\\LFL[MZOZ RMGMY RIFNFNZ RNPONQMSMVNXPYSYUXXVZS[Q[OZNX RWPXRXVWX RSMUNVOWRWVVYUZS[ RJFLG RKFLH",3103:" 34H[WQWPVPVRXRXPVNTMQMNNLPKSKULXNZQ[S[VZXX RMPLRLVMX RQMONNOMRMVNYOZQ[",3104:" 52H]VFV[[[ RWGWZ RSFXFX[ RVPUNSMQMNNLPKSKULXNZQ[S[UZVX RMPLRLVMX RQMONNOMRMVNYOZQ[ RTFVG RUFVH RXYY[ RXZZ[",3105:" 41H[MSXSXQWOVNSMQMNNLPKSKULXNZQ[S[VZXX RWRWQVO RMPLRLVMX RVSVPUNSM RQMONNOMRMVNYOZQ[",3106:" 40KYWHWGVGVIXIXGWFTFRGQHPKP[ RRHQKQZ RTFSGRIR[ RMMVM RM[U[ RPZN[ RPYO[ RRYS[ RRZT[",3107:" 89I\\XNYOZNYMXMVNUO RQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM ROONQNSOU RUUVSVQUO RQMPNOPOTPVQW RSWTVUTUPTNSM RNUMVLXLYM[N\\Q]U]X^Y_ RN[Q\\U\\X] RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[ RObMaL_L^M\\O[",3108:" 65G^LFL[ RMGMZ RIFNFN[ RNQOOPNRMUMWNXOYRY[ RWOXRXZ RUMVNWQW[ RI[Q[ RT[\\[ RJFLG RKFLH RLZJ[ RLYK[ RNYO[ RNZP[ RWZU[ RWYV[ RYYZ[ RYZ[[",3109:" 43LXQFQHSHSFQF RRFRH RQGSG RQMQ[ RRNRZ RNMSMS[ RN[V[ ROMQN RPMQO RQZO[ RQYP[ RSYT[ RSZU[",3110:" 41KXRFRHTHTFRF RSFSH RRGTG RRMR^QaPb RSNS]R` ROMTMT]S`RaPbMbLaL_N_NaMaM` RPMRN RQMRO",3111:" 61G]LFL[ RMGMZ RIFNFN[ RWNNW RRSY[ RRTX[ RQTW[ RTM[M RI[Q[ RT[[[ RJFLG RKFLH RUMWN RZMWN RLZJ[ RLYK[ RNYO[ RNZP[ RWYU[ RVYZ[",3112:" 31LXQFQ[ RRGRZ RNFSFS[ RN[V[ ROFQG RPFQH RQZO[ RQYP[ RSYT[ RSZU[",3113:" 99AcFMF[ RGNGZ RCMHMH[ RHQIOJNLMOMQNROSRS[ RQORRRZ ROMPNQQQ[ RSQTOUNWMZM\\N]O^R^[ R\\O]R]Z RZM[N\\Q\\[ RC[K[ RN[V[ RY[a[ RDMFN REMFO RFZD[ RFYE[ RHYI[ RHZJ[ RQZO[ RQYP[ RSYT[ RSZU[ R\\ZZ[ R\\Y[[ R^Y_[ R^Z`[",3114:" 65G^LML[ RMNMZ RIMNMN[ RNQOOPNRMUMWNXOYRY[ RWOXRXZ RUMVNWQW[ RI[Q[ RT[\\[ RJMLN RKMLO RLZJ[ RLYK[ RNYO[ RNZP[ RWZU[ RWYV[ RYYZ[ RYZ[[",3115:" 46H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RMPLRLVMX RWXXVXRWP RQMONNOMRMVNYOZQ[ RS[UZVYWVWRVOUNSM",3116:" 60G\\LMLb RMNMa RIMNMNb RNPONQMSMVNXPYSYUXXVZS[Q[OZNX RWPXRXVWX RSMUNVOWRWVVYUZS[ RIbQb RJMLN RKMLO RLaJb RL`Kb RN`Ob RNaPb",3117:" 55H\\VNVb RWOWa RUNWNXMXb RVPUNSMQMNNLPKSKULXNZQ[S[UZVX RMPLRLVMX RQMONNOMRMVNYOZQ[ RSb[b RVaTb RV`Ub RX`Yb RXaZb",3118:" 43IZNMN[ RONOZ RKMPMP[ RWOWNVNVPXPXNWMUMSNQPPS RK[S[ RLMNN RMMNO RNZL[ RNYM[ RPYQ[ RPZR[",3119:" 43J[WOXMXQWOVNTMPMNNMOMQNSPTUUWVXY RNNMQ RNRPSUTWU RXVWZ RMONQPRUSWTXVXYWZU[Q[OZNYMWM[NY",3120:" 22KZPHPVQYRZT[V[XZYX RQHQWRY RPHRFRWSZT[ RMMVM",3121:" 43G^LMLVMYNZP[S[UZVYWW RMNMWNY RIMNMNWOZP[ RWMW[\\[ RXNXZ RTMYMY[ RJMLN RKMLO RYYZ[ RYZ[[",3122:" 31I[LMR[ RMMRY RNMSY RXNSYR[ RJMQM RTMZM RKMNO RPMNN RVMXN RYMXN",3123:" 45F^JMN[ RKMNX RLMOX RRMOXN[ RRMV[ RSMVX RRMTMWX RZNWXV[ RGMOM RWM]M RHMKN RNMLN RXMZN R\\MZN",3124:" 48H\\LMV[ RMMW[ RNMX[ RWNMZ RJMQM RTMZM RJ[P[ RS[Z[ RKMMN RPMNN RUMWN RYMWN RMZK[ RMZO[ RVZT[ RWZY[",3125:" 40H[LMR[ RMMRY RNMSY RXNSYP_NaLbJbIaI_K_KaJaJ` RJMQM RTMZM RKMNO RPMNN RVMXN RYMXN",3126:" 41I[VML[ RWMM[ RXMN[ RXMLMLQ RL[X[XW RMMLQ RNMLP ROMLO RQMLN RS[XZ RU[XY RV[XX RW[XW",3151:" 50G]WMUTUXVZW[Y[[Y\\W RXMVTVZ RWMYMWTVX RUTUQTNRMPMMNKQJTJVKYLZN[P[RZSYTWUT RNNLQKTKWLY RPMNOMQLTLWMZN[",3152:" 52I\\PFNMMSMWNYOZQ[S[VZXWYTYRXOWNUMSMQNPOOQNT RQFOMNQNWOZ RVYWWXTXQWO RMFRFPMNT RS[UYVWWTWQVNUM RNFQG ROFPH",3153:" 34I[WQWPVPVRXRXPWNUMRMONMQLTLVMYNZP[R[UZWW ROONQMTMWNY RRMPOOQNTNWOZP[",3154:" 58G]YFVQUUUXVZW[Y[[Y\\W RZFWQVUVZ RVF[FWTVX RUTUQTNRMPMMNKQJTJVKYLZN[P[RZSYTWUT RMOLQKTKWLY RPMNOMQLTLWMZN[ RWFZG RXFYH",3155:" 33I[MVQUTTWRXPWNUMRMONMQLTLVMYNZP[R[UZWX ROONQMTMWNY RRMPOOQNTNWOZP[",3156:" 45JZZHZGYGYI[I[GZFXFVGTISKRNQRO[N^M`Kb RTJSMRRP[O^ RXFVHUJTMSRQZP]O_MaKbIbHaH_J_JaIaI` RNMYM",3157:" 57H]XMT[S^QaOb RYMU[S_ RXMZMV[T_RaObLbJaI`I^K^K`J`J_ RVTVQUNSMQMNNLQKTKVLYMZO[Q[SZTYUWVT RNOMQLTLWMY RQMOONQMTMWNZO[",3158:" 41G]OFI[K[ RPFJ[ RLFQFK[ RMTOPQNSMUMWNXPXSVX RWNWRVVVZ RWPUUUXVZW[Y[[Y\\W RMFPG RNFOH",3159:" 35KXSFSHUHUFSF RTFTH RSGUG RLQMOOMQMRNSPSSQX RRNRRQVQZ RRPPUPXQZR[T[VYWW",3160:" 45KXUFUHWHWFUF RVFVH RUGWG RMQNOPMRMSNTPTSRZQ]P_NaLbJbIaI_K_KaJaJ` RSNSSQZP]O_ RSPRTP[O^N`Lb",3161:" 49G]OFI[K[ RPFJ[ RLFQFK[ RYOYNXNXPZPZNYMWMUNQROS RMSOSQTRUTYUZWZ RQUSYTZ ROSPTRZS[U[WZYW RMFPG RNFOH",3162:" 26LXTFQQPUPXQZR[T[VYWW RUFRQQUQZ RQFVFRTQX RRFUG RSFTH",3163:" 61@cAQBODMFMGNHPHSF[ RGNGSE[ RGPFTD[F[ RHSJPLNNMPMRNSPSSQ[ RRNRSP[ RRPQTO[Q[ RSSUPWNYM[M]N^P^S\\X R]N]R\\V\\Z R]P[U[X\\Z][_[aYbW",3164:" 42F^GQHOJMLMMNNPNSL[ RMNMSK[ RMPLTJ[L[ RNSPPRNTMVMXNYPYSWX RXNXRWVWZ RXPVUVXWZX[Z[\\Y]W",3165:" 46H\\QMNNLQKTKVLYMZP[S[VZXWYTYRXOWNTMQM RNOMQLTLWMY RVYWWXTXQWO RQMOONQMTMWNZP[ RS[UYVWWTWQVNTM",3166:" 66G]HQIOKMMMNNOPOSNWKb RNNNSMWJb RNPMTIb ROTPQQORNTMVMXNYOZRZTYWWZT[R[PZOWOT RXOYQYTXWWY RVMWNXQXTWWVYT[ RFbNb RJaGb RJ`Hb RK`Lb RJaMb",3167:" 57G\\WMQb RXMRb RWMYMSb RUTUQTNRMPMMNKQJTJVKYLZN[P[RZSYTWUT RMOLQKTKWLY RPMNOMQLTLWMZN[ RNbVb RRaOb RR`Pb RS`Tb RRaUb",3168:" 30I[JQKOMMOMPNQPQTO[ RPNPTN[ RPPOTM[O[ RYOYNXNXPZPZNYMWMUNSPQT",3169:" 47J[XPXOWOWQYQYOXNUMRMONNONQOSQTTUVVWX RONNQ RORQSTTVU RWVVZ RNOOQQRTSVTWVWXVZS[P[MZLYLWNWNYMYMX",3170:" 23KYTFQQPUPXQZR[T[VYWW RUFRQQUQZ RTFVFRTQX RNMXM",3171:" 42F^GQHOJMLMMNNPNSLX RMNMRLVLZ RMPKUKXLZN[P[RZTXVU RXMVUVXWZX[Z[\\Y]W RYMWUWZ RXMZMXTWX",3172:" 29H\\IQJOLMNMONPPPSNX RONORNVNZ ROPMUMXNZP[R[TZVXXUYQYMXMXNYP",3173:" 48CaDQEOGMIMJNKPKSIX RJNJRIVIZ RJPHUHXIZK[M[OZQXRU RTMRURXSZU[W[YZ[X]U^Q^M]M]N^P RUMSUSZ RTMVMTTSX",3174:" 51G]JQLNNMPMRNSPSR RPMQNQRPVOXMZK[I[HZHXJXJZIZIY RRORRQVQY RZOZNYNYP[P[NZMXMVNTPSRRVRZS[ RPVPXQZS[U[WZYW",3175:" 49G]HQIOKMMMNNOPOSMX RNNNRMVMZ RNPLULXMZO[Q[SZUXWT RYMU[T^RaPb RZMV[T_ RYM[MW[U_SaPbMbKaJ`J^L^L`K`K_",3176:" 39H\\YMXOVQNWLYK[ RXOOOMPLR RVORNONNO RVORMOMMOLR RLYUYWXXV RNYRZUZVY RNYR[U[WYXV",3200:" 50H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RNHMJLNLSMWNY RVYWWXSXNWJVH RQFOGNIMNMSNXOZQ[ RS[UZVXWSWNVIUGSF",3201:" 28H\\QHQ[ RRHRZ RSFS[ RSFPINJ RM[W[ RQZO[ RQYP[ RSYT[ RSZU[",3202:" 62H\\LJLKMKMJLJ RLIMINJNKMLLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RWHXJXLWN RTFVGWJWLVNTPPR RKYLXNXSYWYYX RNXSZWZXY RNXS[W[XZYXYV",3203:" 76H\\LJLKMKMJLJ RLIMINJNKMLLLKKKJLHMGPFTFWGXIXLWNTO RVGWIWLVN RSFUGVIVLUNSO RQOTOVPXRYTYWXYWZT[P[MZLYKWKVLUMUNVNWMXLX RWRXTXWWY RSOUPVQWTWWVZT[ RLVLWMWMVLV",3204:" 28H\\SIS[ RTHTZ RUFU[ RUFJUZU RP[X[ RSZQ[ RSYR[ RUYV[ RUZW[",3205:" 55H\\MFKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMUNVNWMXLX RWPXRXVWX RSMUNVOWRWVVYUZS[ RLVLWMWMVLV RMFWF RMGUG RMHQHUGWF",3206:" 69H\\VIVJWJWIVI RWHVHUIUJVKWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNQNOONPMR RNIMKLOLUMXNY RWXXVXSWQ RRFPGOHNJMNMUNXOZQ[ RS[UZVYWVWSVPUOSN",3207:" 43H\\KFKL RYFYIXLTQSSRWR[ RSRRTQWQ[ RXLSQQTPWP[R[ RKJLHNFPFUIWIXHYF RMHNGPGRH RKJLINHPHUI",3208:" 79H\\PFMGLILLMNPOTOWNXLXIWGTFPF RNGMIMLNN RVNWLWIVG RPFOGNINLONPO RTOUNVLVIUGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RMQLSLWMY RWYXWXSWQ RPONPMSMWNZP[ RT[VZWWWSVPTO",3209:" 69H\\MWMXNXNWMW RWOVQURSSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNVOWOXNYMY RMPLNLKMI RVHWIXLXRWVVX RQSORNQMNMKNHOGQF RSFUGVIWLWSVWUYTZR[",3210:" 16MXRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",3211:" 24MXTZS[R[QZQYRXSXTYT\\S^Q_ RRYRZSZSYRY RS[T\\ RTZS^",3212:" 32MXRMQNQORPSPTOTNSMRM RRNROSOSNRN RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",3213:" 40MXRMQNQORPSPTOTNSMRM RRNROSOSNRN RTZS[R[QZQYRXSXTYT\\S^Q_ RRYRZSZSYRY RS[T\\ RTZS^",3214:" 34MXRFQGQIRQ RRFRTST RRFSFST RSFTGTISQ RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",3215:" 52I\\MKMJNJNLLLLJMHNGPFTFWGXHYJYLXNWOSQ RWHXIXMWN RTFVGWIWMVOUP RRQRTSTSQRQ RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",3216:" 24MXTFRGQIQLRMSMTLTKSJRJQK RRKRLSLSKRK RRGQK RQIRJ",3217:" 24MXTHSIRIQHQGRFSFTGTJSLQM RRGRHSHSGRG RSITJ RTHSL",3218:" 74E_[O[NZNZP\\P\\N[MZMYNXPVUTXRZP[L[JZIXIUJSPORMSKSIRGPFNGMIMLNOPRTWWZY[[[\\Y\\X RKZJXJUKSLR RRMSI RSKRG RNGMK RNNPQTVWYYZ RN[LZKXKULSPO RMINMQQUVXYZZ[Z\\Y",3219:" 56H\\PBP_ RTBT_ RXKXJWJWLYLYJXHWGTFPFMGKIKLLNOPURWSXUXXWZ RLLMNOOUQWRXT RMGLILKMMONUPXRYTYWXYWZT[P[MZLYKWKUMUMWLWLV",3220:" 8G^[BIbJb R[B\\BJb",3221:" 27KYUBSDQGOKNPNTOYQ]S`Ub RQHPKOOOUPYQ\\ RSDRFQIPOPUQ[R^S`",3222:" 27KYOBQDSGUKVPVTUYS]Q`Ob RSHTKUOUUTYS\\ RQDRFSITOTUS[R^Q`",3223:" 39JZRFQGSQRR RRFRR RRFSGQQRR RMINIVOWO RMIWO RMIMJWNWO RWIVINOMO RWIMO RWIWJMNMO",3224:" 8F_JQ[Q[R RJQJR[R",3225:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",3226:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",3227:" 11NWSFRGRM RSGRM RSFTGRM",3228:" 22I[NFMGMM RNGMM RNFOGMM RWFVGVM RWGVM RWFXGVM",3229:" 30KYQFOGNINKOMQNSNUMVKVIUGSFQF RQFNIOMSNVKUGQF RSFOGNKQNUMVISF",3250:" 58H]TFQGOIMLLOKSKVLYMZO[Q[TZVXXUYRZNZKYHXGVFTF RQHOJNLMOLSLWMY RTYVWWUXRYNYJXH RTFRGPJOLNOMSMXNZO[ RQ[SZUWVUWRXNXIWGVF",3251:" 20H]TJO[Q[ RWFUJP[ RWFQ[ RWFTIQKOL RTJRKOL",3252:" 52H]OKOJPJPLNLNJOHPGSFVFYGZIZKYMWOMUKWI[ RXGYIYKXMVOSQ RVFWGXIXKWMUOMU RJYKXMXRYWYXX RMXRZWZ RMXR[U[WZXXXW",3253:" 64H]OKOJPJPLNLNJOHPGSFVFYGZIZKYMXNVOSP RXGYIYKXMWN RVFWGXIXKWMUOSP RQPSPVQWRXTXWWYUZR[O[LZKYJWJULULWKWKV RVRWTWWVY RSPUQVSVWUYTZR[",3254:" 15H]WJR[T[ RZFXJS[ RZFT[ RZFJUZU",3255:" 49H]QFLP RQF[F RQGYG RPHUHYG[F RLPMOPNSNVOWPXRXUWXUZQ[N[LZKYJWJULULWKWKV RVPWRWUVXTZ RSNUOVQVUUXSZQ[",3256:" 61H]YJYIXIXKZKZIYGWFTFQGOIMLLOKSKVLYMZO[R[UZWXXVXSWQVPTOQOOPNQMS RPINLMOLSLWMY RVXWVWSVQ RTFRGPJOLNOMSMXNZO[ RR[TZUYVVVRUPTO",3257:" 39H]NFLL R[FZIXLTQRTQWP[ RRSPWO[ RXLRRPUOWN[P[ RMIPFRFWI ROGRGWI RMIOHRHWIYIZH[F",3258:"104H]SFPGOHNJNMOOQPTPWOYNZLZIYGWFSF RUFPG RPHOJONPO ROORP RSPWO RXNYLYIXG RYGUF RSFQHPJPNQP RTPVOWNXLXHWF RQPMQKSJUJXKZN[R[VZWYXWXTWRVQTP RRPMQ RNQLSKUKXLZ RKZP[VZ RVYWWWTVR RVQSP RQPOQMSLULXMZN[ RR[TZUYVWVSUQTP",3259:" 61H]XNWPVQTRQROQNPMNMKNIPGSFVFXGYHZKZNYRXUVXTZQ[N[LZKXKVMVMXLXLW ROPNNNKOI RXHYJYNXRWUUX RQRPQOOOKPHQGSF RVFWGXIXNWRVUUWSZQ[",3260:" 16MXPXOYOZP[Q[RZRYQXPX RPYPZQZQYPY",3261:" 22MXQ[P[OZOYPXQXRYR[Q]P^N_ RPYPZQZQYPY RQ[Q\\P^",3262:" 32MXSMRNROSPTPUOUNTMSM RSNSOTOTNSN RPXOYOZP[Q[RZRYQXPX RPYPZQZQYPY",3263:" 38MXSMRNROSPTPUOUNTMSM RSNSOTOTNSN RQ[P[OZOYPXQXRYR[Q]P^N_ RPYPZQZQYPY RQ[Q\\P^",3264:" 34MXVFUFTGRT RVGUGRT RVGVHRT RVFWGWHRT RPXOYOZP[Q[RZRYQXPX RPYPZQZQYPY",3265:" 59H]OKOJPJPLNLNJOHPGSFWFZG[I[KZMYNWOSPQQQSSTTT RUFZG RYGZIZKYMXNVO RWFXGYIYKXMWNSPRQRSST RPXOYOZP[Q[RZRYQXPX RPYPZQZQYPY",3266:" 22MXWFUGTHSJSLTMUMVLVKUJTJ RUGTITJ RTKTLULUKTK",3267:" 22MXVIUITHTGUFVFWGWIVKULSM RUGUHVHVGUG RVIVJUL",3268:" 72E_\\O\\N[N[P]P]N\\M[MYNWPRXPZN[K[HZGXGVHTISKRPPROTMUKUITGRFPGOIOLPRQURWTZV[X[YYYX RL[HZ RIZHXHVITJSLR RPPQSTYVZ RK[JZIXIVJTKSMRRO ROLPOQRSVUYWZXZYY",3269:" 52H]TBL_ RYBQ_ RZKZJYJYL[L[JZHYGVFRFOGMIMLNNPPVSWUWXVZ RNLONVRWT ROGNINKOMUPWRXTXWWYVZS[O[LZKYJWJULULWKWKV",3270:" 8G^_BEbFb R_B`BFb",3271:" 32JZZBXCUERHPKNOMSMXN\\O_Qb RSHQKOONTN\\ RZBWDTGRJQLPOOSN\\ RNTO]P`Qb",3272:" 32JZSBUEVHWLWQVUTYR\\O_LaJb RVHVPUUSYQ\\ RSBTDUGVP RVHUQTUSXRZP]M`Jb",3273:" 39J[TFSGUQTR RTFTR RTFUGSQTR ROIPIXOYO ROIYO ROIOJYNYO RYIXIPOOO RYIOO RYIYJONOO",3274:" 8F_JQ[Q[R RJQJR[R",3275:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",3276:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",3277:" 11MWUFTGRM RUGRM RUFVGRM",3278:" 22H\\PFOGMM RPGMM RPFQGMM RZFYGWM RZGWM RZF[GWM",3279:" 30KZSFQGPIPKQMSNUNWMXKXIWGUFSF RSFPIQMUNXKWGSF RUFQGPKSNWMXIUF",3301:" 62F^IHJIIJHIIGKFMFOGPHQKQOPRNTLUIV ROHPKPPOR RMFNGOJOPNSLU RLVOY RKVOZ RIVN[UV R\\G[H\\H\\G[FYFWGVHUJUYW[[W RWHVJVXXZ RYFXGWJWWYY",3302:"101E_GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGQHRJRRQUOW RPHQJQT RNFOGPJPUOW RRISGUFWFYGZH[J\\K RYHZJ RWFXGYJZK\\K R\\KRP RYM[O\\R\\U[XYZV[S[PZJWIWHX RXNYN[P RVNYO[Q\\S RTZRZLWKW RZYXZUZRYNWKVIVHXHZI[JZIY",3303:" 79F^RHPFNFLGJJINIRJVLYNZQ[T[WZYY[W RLHKJJMJRKVMYPZ RNFMGLIKMKQLUMWOYRZUZXY[W RUFRHQIPKPLQNTPURUT RQKQLUPUQ RQIQJRLUNVPVRUTSURUPTOR RUFVGXHZH RUGVHWH RTGVIXIZH[G",3304:" 79E_HLHKIIKGNFRFUGWHYJ[M\\Q\\U[XYZV[S[PZJWIWHX RKHMGRGUHWIYK[N RTZRZLWKW RHKJIMHRHUIWJYL[O\\R RZYXZUZRYNWKVIVHXHZI[JZIY RPHMKLMLONSNU RMNMONQNR RMKMMOQOSNUMVKVJUJT",3305:" 95F^RHPFNFLGJJINIRJVLYNZQ[T[WZYY[W RLHKJJMJRKVMYPZ RNFMGLIKMKQLUMWOYRZUZXY[W RUFRHQIPKPLQNTPURUT RQKQLUPUQ RQIQJRLUNVPVRUTSURUPTOR RUFVGXHZH RUGVHWH RTGVIXIZH[G RUNYK RYKZL\\L RXLYMZM RWMXNZN\\L",3306:" 94F^MNKMJKJIKGNFQFTGXI RKHMGRGUH RJKKIMHRHXIZI[H[GZFYF RSHRIQKQMROVSWVWYV\\U]S^ RTPWSXVXYW[ RQMSOVQXSYVYYX[V]S^O^L]K\\JZJWLTLRKQ RL\\K[KWLU RO^M]L[LWMTMRLQJQIRIS RUPYL RYLZM\\M RXMYNZN RWNXOZO\\M",3307:" 99E_UJTHSGQFNFKGIJHNHRIUJWLYNZQ[T[WZYY[W\\T\\Q[NYL RKHJJIMIRJUKW RZW[U[QZNYM RNFLGKIJMJRKVLXNZ RWZYXZUZQYOWM RUFRHPJOLOMPOSQTSTU RPLPMTQTR RPJPKQMTOUQUSTURVQVOUNS RTOYLZJ R\\FZJ RYG]I R\\F[GYGZHZJ[I]I\\H\\F",3308:" 92F_RFPGNIMKMMNOPQQSQU RNLNMQQQR RNINKOMQORQRSQUPVNWLWJVIUHSHQIPJQIR RRFTHVHXG RQGSH RPGQHSIUIXG RRPYK RYK[N\\Q\\T[WYYVZR[ RXLZN[Q[UZW RVMWMYOZRZVYXXYVZ RVZTZRYPYNZM\\N^P_R_T^ RSZQZ RR[PZNZ",3309:" 83F_PPNPLOKNJLJJKHLGOFQFTGWJYK RLHNGRGTHUI RJJKIMHQHTIVJYK[K\\J\\H[GYG RJXKYJZIYIWJVLVNWPYR\\T^ RNXOYQ\\R] RLVMWNYP\\Q]S^V^X]Y\\ZZZWYUWRVPVO RYXYWVRVQ RX]Y[YYXWVTURUPWNYNZOZP",3310:" 83F_PPNPLOKNJLJJKHLGOFQFTGWJYK RLHNGRGTHUI RJJKIMHQHTIVJYK[K\\J\\H[GYG RJXKYJZIYIWJVLVNWPYR\\T^ RNXOYQ\\R] RLVMWNYP\\Q]S^V^X]Y\\ZZZWYUWRVPVO RYXYWVRVQ RX]Y[YYXWVTURUPWNYNZOZP",3311:" 81E_[KZIXGUFRFOGMILKLNMQPWPYN[ RMNMOPUPV RNHMJMMNOPSQVQXPZN[L[JZ RHVJZ RGYKW RHVHXGYIYJZJXKWIWHV RNONMOKQJTJVKXMYM RUKWM RRJTKULVN RYMPQ RUOYXZY[Y RTPXXZZ RSPWYY[\\X",3312:" 73G^ZSYTVTUSUQVOXLYJYH RVQVPYLYK RWTVSVRWPYNZLZJYHXGUFPFMGLHKJKLLNNQOSOTNV RLKLLOQOR RLHLJMLOOPQPSOUMWJY RMWOWRYUZXZZY RNXOXSZTZ RJYLXMXQZT[V[YZZY[W",3313:"128BbEQERFSHSJRJOIMGJGHIF RIOGK RHSIRIPGMFKFIGGIFKFMGOIPLPROUNWLYI[HZGZ RNIOLORNUMW RJZIYHY RKFMHNKNRMVLXKYJXIXF[ RNGPFRFTGVIWLWRVUUWSYQ[PZOZ RUIVLVRUV RRZQYPY RRFTHUKUSTWSYRXQXN[ RUHVGXFZF\\G]H^J_K R\\H]J RZF[G\\J]K_K R_K\\M[NZQZT[X][`X R\\N[P[T\\W^Z R_K]M\\O\\S]W_Y",3314:" 96D`GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGRISLSRRUQWOYL[KZIZG[ RQIRKRRQUPWOX RMZKYIY RNFPHQKQRPVNYLXJXG[ RRHSGUFWFYGZH[J\\K RYHZJ RWFXGYJZK\\K R\\KYMXNWQWTXXZ[]X RYNXPXTYW[Z R\\KZMYOYSZW\\Y",3315:" 72D`PFNGLIKKKMMQMS RLLLMMOMP RLILKNONQMSLTJTISIR RPFQGWIZK[M\\P\\S[VZXXZU[R[OZIWHWGX RPGQHWJYKZL RPFPHQIWKYL[N\\P RSZQZKWJW RYYWZTZQYMWJVHVGXGZH[IZHY",3316:"100E`HQHRISKSMRMOLMJJJHLF RLOJK RKSLRLPJMIKIIJGLFOFQGRHSJSU RSWS\\R^P_M_L^L\\M[N\\M] RQHRJR\\Q^ ROFPGQJQU RQWQ\\P^O_ RSJXF RXFZI[K\\O\\R[UYXV[ RWGZK[N[O RVHXJZM[P[SZVYX RWYUVSU RQUOVMX RWZUWSVPV RV[TXSW RQWOWMX",3317:" 88D`PFNGLIKKKMMQMS RLLLMMOMP RLILKNONQMSLTJTISIR RPFQGWIZK[M\\P\\S[VZX RXZU[R[OZIWHWGX RPGQHWJYKZL RPFPHQIWKYL[N\\P RSZQZKWJW RXZTZQYMWJVHVGXGZH[IZHY RTXVVXV\\Z]Z RWWXW[Z RUWVWZ[\\[^Y",3318:" 96D`GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGQHRJRVQXOZM[K[IZ RPHQJQVPX RNFOGPJPVOYM[ RGVIZ RFYJW RGVGXFYHYIZIXJWHWGV RRISGUFWFYGZH[J\\K RYHZJ RWFXGYJZK\\K R\\KRP RTOXYZ[]X RUOYX[Z RVNZX[Y\\Y",3319:" 83E`\\H[G\\F]G]I\\KZKVISHOHKIIK RYJVHSGOGLH R]I\\JZJVGSFOFLGJIIKHNHRIUJWLYNZQ[U[XZZY\\W]T]Q\\OZNWNUOSRQSOS RLXNYQZUZYY RIUKWMXPYUYYX[W\\V]T RXOWOSSRS R]Q[OYOWPUSSTQTOSNQNOOMQL",3320:" 81F_LNJMIKIIJGMFRFUGYJ[J\\I RJHLGRGUHXJ RIKJILHRHUIYK[K\\I\\G[FZG[H RUIRLQNQPSTSV RRORPSRSS RRLRNTRTTSVRWPWOVOT RJYKZJ[IZIXJVLVOWSYVZYZ[Y RLWMWSZUZ RIXJWKWMXQZT[W[ZZ\\X",3321:" 45G]JHKHLILWJX RKGMHMXPZ RIILFNHNWPYRY RJXKXMYO[RYVV RTHUHVIVYX[[X RUGWHWYYZ RSIVFYHXIXXYYZY",3322:"100D`GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGQHRJRRQUOW RPHQJQT RNFOGPJPUOW RRISGUFWFYG[J\\K RYHZJ RWFXGYJZK\\K RZKXKWLWNXP[R\\T RXO[Q RWMXN[P\\R\\V[XYZW[S[PZJWIWHX RTZRZLWKW RZYXZUZRYNWKVIVHXHZI[JZIY",3323:"143BcEQERFSHSJRJOIMGJGHIF RIOGK RHSIRIPGMFKFIGGIFLFNGOHPJPNOQMTKV RNHOJOONR RLFMGNJNOMSKV RNGPFSFUG RWFTGSISMTPVSWUWWVY RTMTNWSWT RWFUGTITLUNWQXTXVWXUZS[O[MZKXIWGWFX RNZKWJW RQ[OZLWJVGVFXFZG[HZGY RWFZF\\G^J_K R\\H]J RZF[G\\J]K_K R]K[KZLZN[P^R_T R[O^Q RZM[N^P_R_W^Y]Z[[X[UZ RYZXZVY R^Y\\ZZZXYWX",3324:" 86F^KHMHOIPJQMQO RQQQUPXM[KZI[ RNZLYKY ROYNYLXI[ RMGPHQIRLRUSWUYWZ RIINFPGRISLSO RSQSTTWUXWYYY RQURXTZV[[X RSLTIWFYG[F RVGXHYH RUHVHXI[F RKSMOQO RSOWOYM RMPWP RKSMQQQ RSQWQYM",3325:" 74E_HQHRISKSMRMOLMJJJHLF RLOJK RKSLRLPJMIKIIJGLFOFQGRHSJSORRQTQUSWTW RQHRJRPQSPUSX ROFPGQJQPPTOVRYUV RSJ[F RYGYZX] RZGZXY[ R[F[VZZY\\W^T_P_M^K\\JZKYLZK[",3326:" 74F^NIOGQFTFVGWHXJXMWOVPTQ RQQOPNN RVHWIWNVO RTFUGVIVNUPTQ RMUNSORQQTQWRYTZVZZY\\W^T_P_N^KZJY RXTYVYZX\\ RTQWSXUX[W]V^T_ RO^N]LZKY RR_P^O]MZLYIYHZH\\I]J]",3401:" 46J[TMQNOONPMSMVNYO[UX RNVOYPZ RQNOPNSNUOXQZ RRNSOUPUYW[ZX RSNVPVXXZ RTMUNWOXO RWPXO RWPWXXYYY",3402:" 50J[LHMINK RTFQGOINKNXMY RPIOKOXRZ RTFRGQHPKPXRYSZ RMYNYPZQ[TZ RPPVMWOXRXUWXVYTZ RUNVOWQ RTNVPWSWUVXTZ",3403:" 27KXRNTPVOTMRNOPNRNWOYQ[UY RSNUO RPPOROWPYQZ RQOPQPVQXSZ",3404:" 47J[QFNINKOLSNVPWRWUVXTZ ROJOKSMVOWP ROHOIPJUMWOXRXUWXTZQ[ RRNNPNXMY ROPOXRZ RPOPXRYSZ RMYNYPZQ[",3405:" 27KXPUVQSMOPNRNWOYQ[UY RUQRN RPPOROWPYQZ RTRROQOPQPVQXSZ",3406:" 49LYXFWGUGSFQFPHPMOONP RVHTHRGQG RXFWHVITIRHQHPI RPKQMRNTOVOVP RNPPP RRPVP RPPPTQ` RSOPOQNQ[ RRPRTQ`",3407:" 53J[TMQNOONPMSMVNYO[UX RNWOYPZ RQNOPNSNUOXQZ RRNSOUPUXV[V]U_ RSNVPVZ RTMUNWOXO RWPXO RWPW\\V^U_S`P`N_M^M]N]N^",3408:" 50J[LHMINK RTFQGOINKNXMY RPIOKOYPZ RTFRGQHPKPXQYRY RMYOZP[SX RPPVMWOXSXWWZV\\T^Q` RUNVOWR RTNVQWTWWV[T^",3409:" 39MWRFQGQHRISHSGRF RQGSH RQHSG ROOPOQPQYS[VX RPNRORXTZ RNPQMRNTO RSPTO RSPSXTYUY",3410:" 45MWRFQGQHRISHSGRF RQGSH RQHSG ROOPOQPQ[P^O_M` RPNROR[Q] RNPQMRNTO RSPTO RSPS[R]P_M` RS[T]U^",3411:" 63KYNHOIPK RUFSGQIPKPMOONP RPPPXOY RRIQKQM RQOPOQMQXSZ RUFSHRKRO RRPRXSYTY ROYQZR[UX RRLVIWJWLUNSO RUJVKVLUN RROWOWP RNPPP RRPWP",3412:" 29MWOHPIQK RWFTGRIQKQXPY RSIRKRYTZ RWFUGTHSKSXTYUY RPYRZS[VX",3413:" 74E_GOHOIPIXHYJ[ RHNJPJXIYJZKYJX RFPIMKOKXLYJ[ RNNPOQQQXPYR[ RPNQORQRXQYRZSYRX RKPNNPMRNSPSXTYR[ RVNWOYPYY[[^X RWNZPZX\\Z RSPVNXMYN[O\\O R[P\\O R[P[X\\Y]Y",3414:" 49I[KOLOMPMXLYN[ RLNNPNXMYNZOYNX RJPMMOOOXPYN[ RRNSOUPUYW[ZX RSNVPVXXZ ROPRNTMUNWOXO RWPXO RWPWXXYYY",3415:" 41J[NPNXMY ROPOXRZ RQOPPPXRYSZ RMYNYPZQ[TZ RNPQOVMWOXRXUWXVYTZ RUNVOWQ RTNVPWSWUVXTZ",3416:" 57J[OJMLMNNQNXLZ RNYO` RNMNNOQO[ RNKNLONPQPXQXSYTZ RPYO` RSZQY RTZR[PY RNYLZ RPPVMWOXRXUWXVYTZ RUNVOWQ RTNVPWSWUVXTZ",3417:" 43J[TMQNOONPMSMVNYO[UX RNWOYPZ RQNOPNSNUOXQZ RRNSOUPUXV` RSNVPV[ RTMUNWOXO RWPXO RWPWXV`",3418:" 32KYNOOOPPPXOY RONQPQYSZ RMPPMRORXSYTY ROYQZR[UX RTNUPWOVMRO RUNVO",3419:" 42LWXFWGUGSFQFPHPMOONP RVHTHRGQG RXFWHVITIRHQHPI RPKRP RPPPTQ` RQOPOQNQ[ RRPRTQ` RNPPP",3420:" 37LXSIRLQNPONP RSISOVOVP RNPQP RSPVP RQPQXPY RROQORMRXTZ RSPSXTYUY RPYRZS[VX",3421:" 47I[KOLOMPMXLY RLNNPNXPZ RJPMMOOOXQYRZ RLYMYOZP[RZUX RVMTOUPUYW[ZX RVPWOVNUOVPVXXZ RVMXOWPWXXYYY",3422:" 47J[OKMMMONRNXMY RNNNOOROXRZ RNLNMOOPRPXRYSZ RMYNYPZQ[TZ RPPVMWOXRXUWXVYTZ RUNVOWQ RTNVPWSWUVXTZ",3423:" 72F_KKIMIOJRJXIYK[ RJNJOKRKXJYKZLYKX RJLJMKOLRLXMYK[ RONQORQRXQY RQNROSQSXVZ RLPONQMSNTPTXVYWZ RQYRYTZU[XZ RTPZM[O\\R\\T[XZYXZ RYNZO[Q RXNZP[S[UZXXZ",3424:" 44KZOOPOQPQXPXNYM[M]N_P`S`V_V^U^U_ RPNRPRXUZ RNPQMSOSXUYVZ RXYT[SZQYOYM[ RUNVPXOWMSO RVNWO",3425:" 47J[OKMMMONRNXMY RNNNOOROYQZ RNLNMOOPRPXQYRY RMYOZP[SX RPPVMWOXSXWWZV\\T^Q` RUNVOWR RTNVQWTWWV[T^",3426:" 43KYNPSMUNVPVRUTQV RSNUO RRNTOUQURTTSU RSUUWVYV]U_S`Q`O_N]N[OYQXWV RRVTWUY RQVTXUZU]T_S`",3427:" 61JZRMPNMPMRNU RNPNROT RPNOOORPT RPNROTOVNWMWKVJTJ RQNSN RRMTNVN RNUVRWUWWVYR[ RUSVUVXUY RTSUUUXTZ RTZRYOYL[ RSZQZ RR[PZNZL[",3428:" 78J[VFUGSGQFOFNHNMMOLP RTHRHPGOG RVFUHTIRIPHOHNI RNKPP RNPNTO` ROONOONO[ RPPPTO` RLPNP RPPUMWNXPXRWTSV RUNWO RTNVOWQWRVTUU RUUWVXXX[W]U_R` RUVWW RSVTVVWWYW\\V^",3429:" 62J[PIOLNNMOKP RPIPXQYO[ ROONOONOXNYOZPYOX RKPNPNXMYO[ RPPUMWNXPXRWTSV RUNWO RTNVOWQWRVTUU RUUWVXXX[W]U_R` RUVWW RSVTVVWWYW\\V^",3501:" 60G]LINGPFRFSGZW[X]X RQGRHYXZZ[YYX RNGPGQHXXYZZ[[[]X RLMMLOKPKQL RPLPM RMLOLPN RG[IYKXNXPY RJYNYOZ RG[JZMZN[PY RRJLX RNSVS",3502:"110F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RRIQJPLPU RQKQS RRIRRQTPU RRIXFZG[I[KYMUO RXGZIZK RVGXHYIYLWN RWNZP[R[X RYPZRZW RWNXOYQYX RJ[MYPXTXWY RLZOYTYVZ RJ[NZSZU[WYYX[X RUOUX RURYR RUUYU",3503:" 69E]NGLHJJILHOHSIVJXMZP[S[VZXYZW[U RJKINISKWNYQZTZWY RNGLIKKJNJRKUNXQYTYWXYW[U RPJPV RQJQT RRIRSQUPV RPJRIUFWGYGZF RTGVHXH RSHUIWIYHZF RWIWX",3504:" 72G^IFWFYGZIZX RKGWGYIYW RIFJGLHWHXIXX ROKNLMNMOKOJPJRKQMQMV RNMNT RKPNP ROKOSNUMV RI[LYOXSXVY RKZNYSYUZ RI[MZRZT[VYXXZX RRHRX RRMTNVNXM RRSTRVRXS",3505:" 94G]IHKFMFOGQF RLGNG RIHKGMHOHQF RNKMLLNLOJOIPIRJQLQLW RMMMU RJPMP RNKNTMVLW RQMRJSHTGVFXF[G RTHVGXGZH RRJSIUHWHYI[G RQURRSPTOVOXP RTPVPWQ RRRSQUQVRXP RK[NYRXWX[Y RMZPYWYZZ RK[OZVZY[[Y RQMQX",3506:" 91F]JHLFOFQGSF RMGPG RJHLGNHQHSF RPKOLNNNOLOKPKRLQNQNV ROMOT RLPOP RPKPSOUNV RSJSYRZQZMXKXIYG[ RTJTX RTPXP RPZOZMYJY RUIUOXO RXQUQUWTYP[N[LZJZG[ RSJUIXFZG\\G]F RWGYH[H RVHXIZI\\H]F RXIXW",3507:" 87E^NGLHJJILHOHRIUJWLYNZQ[U[XZZX[V[SZQYPWOUO RJKINISJV RNGLIKKJNJSKVLXNZ RYXZWZSYQ RU[WZXYYWYSXQWPUO RPJPW RQJQU RRIRTQVPW RPJRIUFWGYGZF RTGVHXH RSHUIWIYHZF RYHUOU[ RUSYS RUVYV",3508:"112F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXSXUY RLZOYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRITGVFXFZG RWGXGYH RTGVGXIZG RUOWNYLZM[P[TZXX[ RXMYNZPZUYX RWNXNYPYUX[ RUOUY RURYR RUUYU",3509:" 67I\\LHNFQFTGVF ROGSG RLHNGQHTHVF RSKRLQNQOOONPNROQQQQV RRMRT ROPRP RSKSSRUQV RYHWJVMVXUZSZOXMXKYI[ RWKWW RRZQZOYLY RYHXJXVWXUZS[P[NZKZI[",3510:" 65H\\LHNFQFTGVF ROGSG RLHNGQHTHVF RSKRLQNQOOONPNROQQQQV RRMRT ROPRP RSKSSRUQV RYHWJVMVXUZ RWKWW RYHXJXVWXUZR[O[LZJXJVKULUMVLWKW RJVMV",3511:"115F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXSXUY RLZNYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRITGVFXFZG RWGXGYH RTGVGXIZG RUOXLYM[N RWMYN[N R[NYQWSUU RWSYTZX[Z\\Z RYVZZ RWSXTYZZ[[[\\Z RUOUY",3512:" 85G]IHKFNFPGRF RLGOG RIHKGMHPHRF RNKMLLNLOJOIPIRJQLQLW RMMMU RJPMP RNKNTMVLW RK[NYRXWX[Y RMZPYWYZZ RK[OZVZY[[Y RSIRJQLQU RRKRS RSISRRTQU RSIUGWFYF[G RXGYGZH RUGWGYI[G RWGWX",3513:"107D`LJKKJMJOHOGPGRHQJQJU RKLKS RHPKP RLJLRKTJU RE[GYIXKXMYNYOX RHYKYMZ RE[GZJZL[M[NZOX RLJPFTJTWUYVY RPGSJSXRYSZTYSX RPPSP RNHOHRKROOO ROQRQRXQYS[VYWX RTJXF\\J\\W]Y^Y RXG[J[X]Z RXP[P RVHWHZKZOWO RWQZQZY\\[^Y ROHOX RWHWX",3514:" 84E^GIIGKFMFOGQJVUXXYY RMGOIPKVWYZ RIGKGMHOKTVVYWZY[ RVHXIZI\\H]F RWGYH[H RVHXFZG\\G]F RKOIOHPHRIQKQ RIPKP RG[IYKXNXPY RJYMYOZ RG[JZMZN[PY RKGKX RYIY[ RRLSMUNWNYM RKTMSQSST",3515:" 79E_NFLGJIIKHNHRIUJWLYNZQ[S[VZXYZW[U\\R\\N[KZIXGVFUGRIOJ RJJIMISJV RNFLHKJJMJSKVLXNZ RZV[S[MYIXH RVZXXYVZSZMYKWHUG ROJOW RPJPU RQJQTPVOW RUGUZ RUMWNXNZM RUSWRXRZS",3516:" 70H^KFLGMIMOKOJPJRKQMQMYJ[MZMbO` RMHNJN` RKPNP RKFMGNHOJO` ROKRIVFZJZX RVGYJYX RTHUHXKXY RRXUXXY RSYUYWZ RRZTZV[XYZX RRIR_ RRMTNVNXM RRSTRVRXS",3517:" 99E_NFLGJIIKHNHRIUJWLYNZP[T[VZXYZW[U\\R\\N[KZIXGVFUGRIOJ RJJIMISJV RNFLHKJJMJSKVLXNZ RZV[S[MYIXH RVZXXYVZSZMYKWHUG ROJOW RPJPU RQJQTPVOW RUGUZ RUMWNXNZM RUSWRXRZS RP[QZRZT[X`Za[a RT\\V_XaYa RRZS[VaXbZb[a",3518:"108F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXRXUY RLZNYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRIUGWFYGZIZLYNXOTQRR RWGXGYIYMXN RUGWHXJXMWOTQ RTQVRWSZX[Y\\Y RWTYX[Z RTQVSXYZ[\\Y",3519:" 94G^UITHRGOF RVHTG RWGSFOFLGKHJJKLLMONWNYOZPZRYU RKKLLOMXMZN[O[QZS RKHKJLKOLYL[M\\O\\QYUU[ RIOJPLQUQVRVSUU RJQLRTRUS RIOIPJRLSSSUTUU RI[LYPXSXVY RKZNYRYUZ RI[MZRZU[ RWGUISL RRNPQ ROSMUKVJVJUKV",3520:" 71E]JJILHOHSIVKYMZP[S[VZXYZW[U RISJVLXNYQZTZWY RJJIMIQJTLWNXQYTYWXYW[U RHIIGKFOFUGYG[F RPGTHXH RHIIHKGNGTIWIYH[F RSIRJPKPV RQKQT RRJRSQUPV RWIWX",3521:" 89F^HHJFLFOGQF RKGNG RHHJGMHOHQF RKJJLIOISJVKXMZP[S[VZXYZ[\\Y RJSKVNYQZTZ RKJJNJQKTLVNXQYUYXX RUIQJPLPV RQKQT RRJRSQUPV RUIWHYFZG\\HZIZW[Y\\Y RYIZHYGXHYIYX[Z RWHXIXX RUIUY RUNXN RURXR",3522:" 72G^JFKGLILOJOIPIRJQLQLXJY RLHMJMX RJPMP RNYQYSZ RJFLGMHNJNXRXUY RJYMYPZR[UYXXZX RRJUIWHYFZG\\HZIZX RYIZHYGXHYIYW RWHXIXX RRJRX RRMTNVNXM RRSTRVRXS",3523:" 95E`HFIGJIJOHOGPGRHQJQJXHY RJHKJKX RHPKP RLYNYPZ RHFJGKHLJLXOXQY RHYKYNZO[QYTXVYW[YY\\X ROHRFTHTXWXYY RRGSHSX ROHQHRIRXQY RWYXZ RWHZF\\H\\X RZG[H[X RWHYHZIZXYY ROHOX RWHWX RONRN RORRR RWNZN RWRZR",3524:" 65G]HIJGLFNFOGWYXZZZ RMGNHVYWZ RJGLGMHUZV[X[ZZ\\X RWFYG[G\\F RWGXHZH RVHWIYI[H\\F RH[IYKXMXNY RJYLYMZ RH[IZKZM[ RWFSO RQRM[ RLPPP RSPXP",3525:" 86G^JFKGLILOJOIPIRJQLQLXJY RLHMJMX RJPMP RNYQYSZ RJFLGMHNJNXRXUY RJYMYPZR[UYXX RRJUIWHYFZG\\HZIZ^Y`WbUaQ`L` RYIZHYGXHYIYY RWHXIXXZ[ RXaV`S` RY`V_P_L` RRJRX RRMTNVNXM RRSTRVRXS",3526:" 57H\\XGWIROOSMWJ[ RVKNV RZFWJUNRRMXLZ RJHLFOGUGZF RKGOHSHWG RJHNIRIVHXG RLZNYRXVXZY RMZQYUYYZ RJ[OZUZX[ZY RMPQP RTPXP",3601:" 53J[PRNTMVMXNZP[RYUX RMVNXOYQZ RNTNVOXQYRY RNPPPSOUNVMXOWPWXXYYY RONNOQO RTOWOVNVYWZ RMOOMPNROUPUYW[YY RMORT",3602:" 44I[LHMJMXKY RNJMHNGNXQZ RLHOFOXQYRZ RKYMYOZP[RZUYWY ROPROTNUMVNXOYOWPWY RTNVOVX RROSOUPUY",3603:" 35JXNONXLYMYOZP[ ROOOYQZ RPOPXRYSYQZP[ RNORNTMUNWOXO RSNTOVO RPORNTPVPXO",3604:" 41IZRMPNMOMXKY RNONXQZ RRMOOOXQYRZ RKYMYOZP[RZUYWY RMHPFQIWOWY RPINHOGPIVOVX RMHUPUY",3605:" 32JXNONXLYMYOZP[ ROOOYQZ RPOPXRYSYQZP[ RNORNTMWQURPU RSNVQ RPORNUR",3606:" 41JWNHNXLYMYOZP[ ROHOYQZ RPHPXRYSYQZP[ RNHQGSFTGVHWH RRGSHUH RPHQGSIUIWH RKMNM RPMTM",3607:" 56I[MOMXKYLYNZO[PZRYUX RNPNYPZ ROOOXQYRY RMOOORNTMUNWOYOWPW\\V_TaRbQaO`M` RSNVPV\\ RSaQ`P` RRNSOUPUZV]V_ RTaS`Q_O_M`",3608:" 47I[LHMJMXKYLYNZO[ RNJMHNGNYPZ RLHOFOXQYO[ ROPROTNUMVNXOYOWPWYU[T] RTNVOVYU[ RROSOUPUYT]T`UbVbT`",3609:" 35MWRFPHRITHRF RRGQHSHRG RRMQNOOQPQYS[UY RRPSORNQORPRYSZ RRMSNUOSPSXTYUY",3610:" 39MWRFPHRITHRF RRGQHSHRG RRMQNOOQPQYS[T] RRPSORNQORPRYS[ RRMSNUOSPSYT]T`RbPbPaRb",3611:" 50IZLHMJMXKYLYNZO[ RNJMHNGNYPZ RLHOFOXQYO[ ROPRNTMVPSROU RSNUP RRNTQ RSRTSVXWYXY RSSTTUYVZ RRSSTTYV[XY",3612:" 22MWPHQJQXOYPYRZS[ RRJQHRGRYTZ RPHSFSXUYVYTZS[",3613:" 67E_GOHOIPIXGYHYJZK[ RINJOJYLZ RGOIMKOKXMYK[ RKPNOPNQMSOSXUYS[ RPNRORYTZ RNOOOQPQXPYRZS[ RSPVOXNYMZN\\O]O[P[X\\Y]Y RXNZOZY[Z RVOWOYPYY[[]Y",3614:" 45I[KOLOMPMXKYLYNZO[ RMNNONYPZ RKOMMOOOXQYO[ ROPROTNUMVNXOYOWPWXXYYY RTNVOVYWZ RROSOUPUYW[YY",3615:" 40I[MOMXKY RNPNXQZ ROOOXQYRZ RKYMYOZP[RZUYWY RMOOORNTMUNWOYOWPWY RSNVPVX RRNSOUPUY",3616:" 54I[LMMOMXKYMYMb RMNNONaO`N^ RNYOYQZ RLMNNOOOXQYRZ ROZP[RZUYWY ROZO^P`Mb ROPROTNUMVNXOYOWPWY RTNVOVX RROSOUPUY",3617:" 44I[MOMXKY RNPNYPZ ROOOXQYRY RKYLYNZO[PZRYUX RMOOORNTMUNWOYOWPWb RSNVPVaU`V^ RRNSOUPU^T`Wb",3618:" 38JXLOMONPNXLYMYOZP[ RMNOOOYQZ RLONMPOPXRYSYQZP[ RPOTMUNWOXO RSNTOVO RRNTPVPXO",3619:" 59JZMOMSOTUTWUWY RNONS RVUVY RPNOOOSQT RSTUUUYTZ RMOPNRMTNVNWM RQNSN RPNROTOVN RWYTZR[PZNZL[ RSZQZ RTZRYOYL[ RWMVOTROWL[",3620:" 28MWPHQJQXOYPYRZS[ RRJQHRGRYTZ RPHSFSXUYVYTZS[ RNMQM RSMVM",3621:" 47I[KOLOMPMXKY RLNNONYPZ RKOMMOOOXQYRY RKYLYNZO[PZRYUX RUMVNXOYOWPWXXYYY RTNVOVYWZ RUMSOUPUYW[YY",3622:" 36I[LMMOMXP[RYUXWX RMNNONXQZ RLMNNOOOWPXRY RUMVNXOYOWPWX RTNVOVW RUMSOUPUX",3623:" 57E_HMIOIXL[NYQX RINJOJXMZ RHMJNKOKWLXNY RQMOOQPQXT[VYYX[X RPNRORXUZ RQMRNTOSPSWTXVY RYMZN\\O]O[P[X RXNZOZW RYMWOYPYX",3624:" 59H[KOLONPOQSYTZV[XY RMNOOTYVZ RKOMMONPOTWUXWYXY RRSUMVNXNYM RUNVOWO RTOVPXOYM RQUN[MZKZJ[ RNZMYLY ROYMXKYJ[ RMTPT RSTVT",3625:" 60I[KOLOMPMXKY RLNNONYPZ RKOMMOOOXQYRY RKYLYNZO[PZRYUX RUMVNXOYOWPW\\V_TaRbQaO`M` RTNVOV\\ RSaQ`P` RUMSOUPUZV]V_ RTaS`Q_O_M`",3626:" 38I[XML[ RLONPQPTOXM RMNOOSO RLONMPNTNXM RL[PYSXVXXY RQYUYWZ RL[PZTZV[XY RNTVT",3700:" 42H\\LHLXJY RMIMXPZ RNHNXPYQZ RLHNHSGUF RSGTHVIVY RTGWIWX RUFVGXHZHXIXY RJYLYNZO[QZVYXY",3701:" 27H\\OHPIQKQXOY RQIPHQGRIRYTZ ROHRFSHSXUYVY ROYPYRZS[TZVY",3702:" 48H\\LHNHPGQFSGVHXH RPHRG RLHNIPIRHSG RVHVP RWIWO RXHXPQPNQLSKVK[ RK[OYSXVXZY RNZQYVYYZ RK[PZUZX[ZY",3703:" 57H\\LHMHOGPFRGVHXH ROHQG RLHNIPIRG RVHVO RWIWN RXHXOVOSPQQ RQPSQVRXRXY RWSWX RVRVY RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3704:" 41H\\UFKPKUTU RVUZU[V[TZU RLPLT RMNMU RTGTXRY RUJVHUGUYWZ RUFWHVJVXXYYY RRYSYUZV[WZYY",3705:" 53H\\LFLO RLFXF RMGVG RLHUHWGXF RVLUMSNOOLO RSNTNVOVY RUMWNWX RVLWMYNZNXOXY RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3706:" 59H\\LHLXJY RMIMXPZ RNHNXPYQZ RLHNHRGTFUGWHXH RSGUH RRGTIVIXH RNPOPSOUNVM RSOTOVPVY RUNWPWX RVMWNYOZOXPXY RJYLYNZO[QZVYXY",3707:" 38H\\KHMFPGUGZF RLGOHTHWG RKHOIRIVHZF RZFYHWKSOQRPUPXQ[ RRQQTQWRZ RUMSPRSRVSYQ[",3708:" 71H\\LILO RMJMN RNINO RLINISHUGVF RSHTHVIVO RUGWHWN RVFWGYHZHXIXO RLONOVRXR RXOVONRLR RLRLXJY RMSMXPZ RNRNXPYQZ RVRVY RWSWX RXRXY RJYLYNZO[QZVYXY",3709:" 60H\\LHLQJR RMIMROS RNHNQPRQR RLHNHSGUF RSGTHVIVY RTGWIWX RUFVGXHZHXIXY RJRKRMSNTOSQRUQVQ RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3710:" 11LXRXPZR[TZRX RRYQZSZRY",3711:" 14LXR^R\\PZRXSZS\\R^P_ RRYQZR[RY",3712:" 22LXRMPORPTORM RRNQOSORN RRXPZR[TZRX RRYQZSZRY",3713:" 25LXRMPORPTORM RRNQOSORN RR^R\\PZRXSZS\\R^P_ RRYQZR[RY",3714:" 30LXRFQGOHQIRT RRISHRGQHRIRT RRFSGUHSIRT RRXPZR[TZRX RRYQZSZRY",3715:" 51I[LJMHNGQFSFVGWHXJXLWNUPSQ RMJNH RVHWIWMVN RLJNKNIOGQF RSFUGVIVMUOSQ RRQRTSQQQRT RRXPZR[TZRX RRYQZSZRY",3716:" 14LXTFRGQIQKRMTKRIRG RRJRLSKRJ",3717:" 14LXRLRJPHRFSHSJRLPM RRGQHRIRG",3718:" 62E_YNZO[O\\N RXOYP[P RXPYQZQ[P\\N RYNST RRUL[HVNP ROOSKOFJLPRTXVZX[Z[[Z\\X RLZIV RRKOG RKLPQTWVYXZ[Z RMZIU RRLNG RKKQQUWVXXY[Y\\X",3719:" 60H\\PBP_ RTBT_ RTFVGWIWKYJXHWGTFPFMGKIKLLNOPURWSXUXXWZ RXJWH RLLMNOOUQWRXT RMYLW RMGLILKMMONUPXRYTYWXYWZT[P[MZLYKWMVMXNZP[",3720:" 8G^[BIbJb R[B\\BJb",3721:" 27KYUBSDQGOKNPNTOYQ]S`Ub RQHPKOOOUPYQ\\ RSDRFQIPOPUQ[R^S`",3722:" 27KYOBQDSGUKVPVTUYS]Q`Ob RSHTKUOUUTYS\\ RQDRFSITOTUS[R^Q`",3723:" 39JZRFQGSQRR RRFRR RRFSGQQRR RMINIVOWO RMIWO RMIMJWNWO RWIVINOMO RWIMO RWIWJMNMO",3724:" 8F_JQ[Q[R RJQJR[R",3725:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",3726:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",3727:" 11NWSFRGRM RSGRM RSFTGRM",3728:" 22I[NFMGMM RNGMM RNFOGMM RWFVGVM RWGVM RWFXGVM",3729:" 30KYQFOGNINKOMQNSNUMVKVIUGSFQF RQFNIOMSNVKUGQF RSFOGNKQNUMVISF",3801:" 52E_NHLIJKIMHPHSIUKV RJLIOISJU RNHLJKLJOJRKVKXJZH[ RVHXHXYVY RYHYY RZGZZ RHFKGQHVHZG\\F RJPXP RH[KZQYVYZZ\\[",3802:" 65E_LGLZ RMGMZ RPFNGNZP[ RHJJHLGPFUFXGZIZKYM RXHYIYKXM RUFWGXIXKWL RQUOTNRNPONPMSLVLYM[O\\Q\\T[WYYWZT[P[LZJYHW RZO[Q[UZW RVLYNZQZUYXWZ",3803:" 60E_\\F[HZJXHVGSFQFNGLHJJILHOHRIUJWLYNZQ[S[VZXYZW[Y\\[ R[HZMZT[Y RZKYJ RZNYKXIVG RJKINISJV RNGLIKKJNJSKVLXNZ RYWZV RVZXXYVZS",3804:" 46E_KGKZ RLGLZ RNFMGMZN[ RHKIIKGNFSFVGXHZJ[L\\O\\R[UZWXYVZS[N[KZIXHV RZK[N[SZV RVGXIYKZNZSYVXXVZ",3805:" 86E_\\F[HZJXHVGSFQFNGLHJJILHOHRIUJWLYNZQ[S[VZXYZW[Y\\[ R[HZMZT[Y RZKYJ RZMXIVG RJKINISJV RNGLIKKJNJSKVLXNZ RYWZV RVZXXYVZS RJPKONOUQXQZP RPPRQURWRYQ RMORRUSWSYRZP RZMYLXLWMXNYM",3806:" 69E_JHJZ RMGKHKY ROFMGLILYNY RHJJHLGOFSFVGXHYI\\F R\\F[HZLZO[S\\U RZIYK RVGXIYLZO RLPMOOOTPWPYO RQPTQVQXP RNOTRVRXQYOYLXKWKVLWMXL RH[JZNYSYYZ\\[",3807:" 90E_\\F[HZJXHVGSFQFNGLHJJILHOHRIUJWLYNZQ[T[VZXYYXZV[Y\\[ R[HZMZT[Y RZKYJ RZNYKXIVG RJKINISJV RNGLIKKJNJSKVLXNZ RXXYVYR RVZWYXVXQ RKSLRMSLTKTJS RJPKNMMOMRNUPWQ RKOMNONROTP RJPLOOOUQYQZP",3808:" 50E_JGJZH[ RKHKZ RNHLHLZ RHFJGNHSHYG\\F RLPMNOLRKVKYL[N\\Q\\T[UYV RZN[P[SZU RVKXLYMZOZSYVYXZZ\\[ RH[LZPZU[",3809:" 23E_QIQY RRJRX RSISY RHFLHPITIXH\\F RH[KZOYUYYZ\\[",3810:" 42E_TIVIVXUZS[ RWIWXVY RXHXY RHFLHPITIXH\\F RIOHQHUIXKZN[S[VZXYZW\\T RIUJXKY RHSJUKXLZN[",3811:" 70E_JGJZH[ RKHKZ RNHLHLZ RHFJGNHSHYG\\F RLPMNOLRKUKXLYMYOXPSRQSPTPUQVRUQT RWLXMXOWP RUKWMWOVPSR RSRVRYSZUZWYX RWSYUYW RSRVSXUYXZZ[[\\[ RH[LZPZU[",3812:" 45E_JGJZ RKHKY RNHLHLYNY R\\KZNYPXSXUYW[X RZOYRYUZW R\\K[MZQZT[X\\[ RHFJGNHSHYG\\F RH[JZNYSYYZ\\[",3813:" 68E_QIQY RRJRX RSISY RNYLWJVIUHRHMIJKHMGPFTFWGYH[J\\M\\R[UZVXWVY RJUIRIMJJ RLWKUJRJLKIMG RZJ[M[RZU RWGYIZLZRYUXW RHFLHPITIXH\\F RH[KZOYUYYZ\\[",3814:" 48E_JHJZH[ RLHKIKZ ROFMGLILZ RHJJHLGOFSFVGXHZJ[L\\O\\S[UYV RZK[N[RZU RVGXIYKZNZRYVYXZZ[[\\[ RH[LZPZU[",3815:" 54E_QFNGLHJJILHOHRIUJWLYNZQ[S[VZXYZW[U\\R\\O[LZJXHVGSFQF RJKINISJV RNGLIKKJNJSKVLXNZ RZV[S[NZK RVZXXYVZSZNYKXIVG",3816:" 51E_JIJZ RMHKJKY RQFOGMILKLYNY RHKJINGQFTFWGYH[J\\M\\O[RYTVURUOTMRLO RZJ[L[PZR RWGYIZLZPYSVU RH[JZNYSYYZ\\[",3817:" 74E_QFNGLHJJILHOHRIUJWLYNZQ[S[VZXYZW[U\\R\\O[LZJXHVGSFQF RJKINISJV RNGLIKKJNJSKVLXNZ RZV[S[NZK RVZXXYVZSZNYKXIVG RJSKUNVTW[W\\X\\Z[[[Z\\Y RPWRW RKUNWQXSXTW",3818:" 69E_JIJZH[ RKIKZ RLHLZ RHKJILHNGQFUFYG[I\\K\\N[PZQ RYHZI[K[NZP RUFWGYIZKZOYQ RXRUSRSPRPPROUOXPZR\\U\\W[XZX RXQYR[V[WZT RTOVPXRYTZX[Z\\[ RH[LZPZU[",3819:" 94E_TFZG\\F[H[JYHWGTFPFMGJJIMIOJRLTOURUTTUSVQVP R[GZH[J RJPKRLSOTRTTS RKIJKJNKPMRPSRSTRVPWOXO RLQMQNPPNRMUMWNYPZRZUYXWZ RPMRLULXMZO[R[UZW RIWJYIZ RNPNOOMPLRKUKXL[O\\R\\T[WYYWZT[P[MZKYIWIYH[JZP[",3820:" 66E_QHMHKIJJILHOHSIVJXKYMZP[S[VZXYZW[U\\R\\N[KYIWH RUHTITKULVKUJ RISJVLXNYQZTZWY RJJINIQJTLWNXQYTYWXYW[T\\R RHFKI RKHLG RIGJGKFMGQHWHZG\\F",3821:" 51E_LHJJILHOHRIUJWLYNZQ[U[XZZY RKJJLIOISJV RKILJLKKMJPJSKVLXNZ RVHXHXXWZU[ RYHYXXY RZGZY\\[ RHFKGQHVHZG\\F",3822:" 31E_HFR[ RIGJHQWRY RJGKHRWSX R\\FR[ RWNUS RYLUQTTTV RHFJGOHUHZG\\F",3823:" 67E_LHJJILHOHRIUJWLYNZQ[S[VZXYZW[U\\R\\O[LZJXH RJLIOIRJUKW RJJKKKLJOJRKVLXNZ RYWZU[R[OZL RVZXXYVZRZOYLYKZJ RQIQ[ RRJRZ RSIS[ RHFLHPITIXH\\F",3824:" 41E_HFXYYZ RIGKHZZ RLH\\[ R\\FSP RQRJZ RPSMULW RQRMTLUKWKY RHFLHPITIXH\\F RH[JZNYSYYZ\\[",3825:" 47E_XHXZ RYHYY RZGZY RKHIJHMHPISKUMVPWSWVVXU RLUOVUV RHPIRKTNUTUVV RHFLHPITIXH\\F RHWJYLZP[T[XZ\\X",3826:" 73E_HFIGKHNHSFVFYGZIZKYM RXGYIYKXM RVFWGXIXL RXNTOROPNPLRKTKXL RTKVLWMVNTO RYM[O\\R\\T[WYYWZT[P[MZKYIWHTHRIOJNLMNMPNPPOQNPOO RXMZO[Q[UZW RXNYOZQZUYXWZ",3901:" 42J[PQMTMXP[TY RNTNXPZ ROROWRZ RRSMNNMONNO RONSNUMWOWXXY RUNVOVXUYVZWYVX RSNUPUXTYV[XY",3902:" 31IZNHLFMJMXP[UYWX RNHNXPZ RNHPFOJOWRZ ROOTMWPWX RTNVPVX RRNUQUY",3903:" 23KWNPNYP[RY ROPOYPZ RPOPXQYRY RNPTMVOTPRN RSNUO",3904:" 32JZRMMPMXP[RZUYWY RNPNXPZ ROOOWRZ RPIPFQIWPWY RPIVPVX RPIMIPJUPUY",3905:" 25KXNPNYP[RY ROPOYPZ RPOPXQYRY RNPTMWQPU RSNVQ RRNUR",3906:" 32KWOIOXNYP[ RPIPXOYPZQYPX RQHQXRYP[ ROIUFWHUISG RTGVH RLMOM RQMUM",3907:" 41J[MPMXP[UY RNPNXPZ ROOOWRZ RMPOOTMWPW]V_U`SaQaO`MaObQa RTNVPV]U_ RPaNa RRNUQU^T`Sa",3908:" 42I[NHLFMJMXLYN[ RNHNXMYNZOYNX RNHPFOJOXPYN[ ROORNTMWPWYT]T`UbVbT` RTNVPVYU[ RRNUQUZT]",3909:" 37MWRFPHRJTHRF RRGQHRISHRG RRMPOQPQXPYR[ RRPSORNQORPRXQYRZSYRX RRMTOSPSXTYR[",3910:" 37MWRFPHRJTHRF RRGQHRISHRG RRMPOQPQYT] RRPSORNQORPRYS[ RRMTOSPSZT]T`RbPaPbRb",3911:" 51IZNHLFMJMXLYN[ RNHNXMYNZOYNX RNHPFOJOXPYN[ ROPRNTMVPSROU RSNUP RRNTQ RRSSTTYV[XY RSSTUUYVZ RSRTSVXWYXY",3912:" 21MWRHPFQJQXPYR[ RRHRXQYRZSYRX RRHTFSJSXTYR[",3913:" 66E_GOHOIPIXHYJ[ RINJOJXIYJZKYJX RGOIMKOKXLYJ[ RKONNPMSOSXTYR[ RPNRORXQYRZSYRX RNNQPQXPYR[ RSOVNXM[O[X\\YZ[ RXNZOZXYYZZ[YZX RVNYPYXXYZ[",3914:" 44I[KOLOMPMXLYN[ RMNNONXMYNZOYNX RKOMMOOOXPYN[ ROORNTMWOWXXYV[ RTNVOVXUYVZWYVX RRNUPUXTYV[",3915:" 28JZMPMXP[UYWX RNPNXPZ ROOOWRZ RMPOOTMWPWX RTNVPVX RRNUQUY",3916:" 47IZLMMOMXKYMYM_LbN` RNON` RLMNNOOOXQYRZ RNYOYQZ ROZP[UYWX ROZO_PbN` ROORNTMWPWX RTNVPVX RRNUQUY",3917:" 31J[MPMXP[UY RNPNXPZ ROOOWRZ RMPOOTMWPW_XbV` RTNVPV` RRNUQU_TbV`",3918:" 31KXMONOOPOXNYP[ RONPOPXOYPZQYPX RMOOMQOQXRYP[ RQOUMWOUPSN RTNVO",3919:" 41JZMPMSOUURWTWX RNPNSOT ROOOSPT RUSVTVX RTSUTUY RMPSMVNTOQN RRNUN RWXQ[MYOXSZ ROYQZ",3920:" 27MWRHPFQJQXPYR[ RRHRXQYRZSYRX RRHTFSJSXTYR[ RNMQM RSMVM",3921:" 40I[KOLOMPMYP[UY RMNNONYPZ RKOMMOOOXRZ RVMXOWPWXXYYY RVPWOVNUOVPVYWZ RVMTOUPUYW[YY",3922:" 36I[LMMOMXQ[SYWW RMNNONXQZ RLMNNOOOWRYSY RVMXOWPWW RVPWOVNUOVPVW RVMTOUPUX",3923:" 59E_HMIOIXM[OYQX RINJOJXMZ RHMJNKOKWNYOY RRMPOQPQXU[WY[W RRPSORNQORPRXUZ RRMTOSPSWVYWY RZM\\O[P[W RZP[OZNYOZPZW RZMXOYPYX",3924:" 39I[LONPUZV[XY RMNOOUYWZ RLONMONVXXY RXMVMVOXOXMVOSS RQUNYL[N[NYLYL[ RNTQT RSTVT",3925:" 49I[KOLOMPMYP[UY RMNNONYPZ RKOMMOOOXRZ RVMXOWPW]V_U`SaQaO`MaObQa RVPWOVNUOVPV^U_ RPaNa RVMTOUPU^T`Sa",3926:" 43L[RNOPOORNTMWOWSRU RTNVOVS RRNUPUSTT RRUWWW]V_U`SaQaO`MaObQa RVWV^U_ RPaNa RTVUWU^T`Sa"},Be={"\\frac":{glyph:0,arity:2,flags:{}},"\\binom":{glyph:0,arity:2,flags:{}},"\\sqrt":{glyph:2267,arity:1,flags:{opt:!0,xfl:!0,yfl:!0}},"^":{glyph:0,arity:1,flags:{}},_:{glyph:0,arity:1,flags:{}},"(":{glyph:2221,arity:0,flags:{yfl:!0}},")":{glyph:2222,arity:0,flags:{yfl:!0}},"[":{glyph:2223,arity:0,flags:{yfl:!0}},"]":{glyph:2224,arity:0,flags:{yfl:!0}},"\\langle":{glyph:2227,arity:0,flags:{yfl:!0}},"\\rangle":{glyph:2228,arity:0,flags:{yfl:!0}},"|":{glyph:2229,arity:0,flags:{yfl:!0}},"\\|":{glyph:2230,arity:0,flags:{yfl:!0}},"\\{":{glyph:2225,arity:0,flags:{yfl:!0}},"\\}":{glyph:2226,arity:0,flags:{yfl:!0}},"\\#":{glyph:2275,arity:0,flags:{}},"\\$":{glyph:2274,arity:0,flags:{}},"\\&":{glyph:2273,arity:0,flags:{}},"\\%":{glyph:2271,arity:0,flags:{}},"\\begin":{glyph:0,arity:1,flags:{}},"\\end":{glyph:0,arity:1,flags:{}},"\\left":{glyph:0,arity:1,flags:{}},"\\right":{glyph:0,arity:1,flags:{}},"\\middle":{glyph:0,arity:1,flags:{}},"\\cdot":{glyph:2236,arity:0,flags:{}},"\\pm":{glyph:2233,arity:0,flags:{}},"\\mp":{glyph:2234,arity:0,flags:{}},"\\times":{glyph:2235,arity:0,flags:{}},"\\div":{glyph:2237,arity:0,flags:{}},"\\leqq":{glyph:2243,arity:0,flags:{}},"\\geqq":{glyph:2244,arity:0,flags:{}},"\\leq":{glyph:2243,arity:0,flags:{}},"\\geq":{glyph:2244,arity:0,flags:{}},"\\propto":{glyph:2245,arity:0,flags:{}},"\\sim":{glyph:2246,arity:0,flags:{}},"\\equiv":{glyph:2240,arity:0,flags:{}},"\\dagger":{glyph:2277,arity:0,flags:{}},"\\ddagger":{glyph:2278,arity:0,flags:{}},"\\ell":{glyph:662,arity:0,flags:{}},"\\vec":{glyph:2261,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\overrightarrow":{glyph:2261,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\overleftarrow":{glyph:2263,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\bar":{glyph:2231,arity:1,flags:{hat:!0,xfl:!0}},"\\overline":{glyph:2231,arity:1,flags:{hat:!0,xfl:!0}},"\\widehat":{glyph:2247,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\hat":{glyph:2247,arity:1,flags:{hat:!0}},"\\acute":{glyph:2248,arity:1,flags:{hat:!0}},"\\grave":{glyph:2249,arity:1,flags:{hat:!0}},"\\breve":{glyph:2250,arity:1,flags:{hat:!0}},"\\tilde":{glyph:2246,arity:1,flags:{hat:!0}},"\\underline":{glyph:2231,arity:1,flags:{mat:!0,xfl:!0}},"\\not":{glyph:2220,arity:1,flags:{}},"\\neq":{glyph:2239,arity:1,flags:{}},"\\ne":{glyph:2239,arity:1,flags:{}},"\\exists":{glyph:2279,arity:0,flags:{}},"\\in":{glyph:2260,arity:0,flags:{}},"\\subset":{glyph:2256,arity:0,flags:{}},"\\supset":{glyph:2258,arity:0,flags:{}},"\\cup":{glyph:2257,arity:0,flags:{}},"\\cap":{glyph:2259,arity:0,flags:{}},"\\infty":{glyph:2270,arity:0,flags:{}},"\\partial":{glyph:2265,arity:0,flags:{}},"\\nabla":{glyph:2266,arity:0,flags:{}},"\\aleph":{glyph:2077,arity:0,flags:{}},"\\wp":{glyph:2190,arity:0,flags:{}},"\\therefore":{glyph:740,arity:0,flags:{}},"\\mid":{glyph:2229,arity:0,flags:{}},"\\sum":{glyph:2402,arity:0,flags:{big:!0}},"\\prod":{glyph:2401,arity:0,flags:{big:!0}},"\\bigoplus":{glyph:2284,arity:0,flags:{big:!0}},"\\bigodot":{glyph:2281,arity:0,flags:{big:!0}},"\\int":{glyph:2412,arity:0,flags:{yfl:!0}},"\\oint":{glyph:2269,arity:0,flags:{yfl:!0}},"\\oplus":{glyph:1284,arity:0,flags:{}},"\\odot":{glyph:1281,arity:0,flags:{}},"\\perp":{glyph:738,arity:0,flags:{}},"\\angle":{glyph:739,arity:0,flags:{}},"\\triangle":{glyph:842,arity:0,flags:{}},"\\Box":{glyph:841,arity:0,flags:{}},"\\rightarrow":{glyph:2261,arity:0,flags:{}},"\\to":{glyph:2261,arity:0,flags:{}},"\\leftarrow":{glyph:2263,arity:0,flags:{}},"\\gets":{glyph:2263,arity:0,flags:{}},"\\circ":{glyph:902,arity:0,flags:{}},"\\bigcirc":{glyph:904,arity:0,flags:{}},"\\bullet":{glyph:828,arity:0,flags:{}},"\\star":{glyph:856,arity:0,flags:{}},"\\diamond":{glyph:743,arity:0,flags:{}},"\\ast":{glyph:728,arity:0,flags:{}},"\\log":{glyph:0,arity:0,flags:{txt:!0}},"\\ln":{glyph:0,arity:0,flags:{txt:!0}},"\\exp":{glyph:0,arity:0,flags:{txt:!0}},"\\mod":{glyph:0,arity:0,flags:{txt:!0}},"\\lim":{glyph:0,arity:0,flags:{txt:!0,big:!0}},"\\sin":{glyph:0,arity:0,flags:{txt:!0}},"\\cos":{glyph:0,arity:0,flags:{txt:!0}},"\\tan":{glyph:0,arity:0,flags:{txt:!0}},"\\csc":{glyph:0,arity:0,flags:{txt:!0}},"\\sec":{glyph:0,arity:0,flags:{txt:!0}},"\\cot":{glyph:0,arity:0,flags:{txt:!0}},"\\sinh":{glyph:0,arity:0,flags:{txt:!0}},"\\cosh":{glyph:0,arity:0,flags:{txt:!0}},"\\tanh":{glyph:0,arity:0,flags:{txt:!0}},"\\csch":{glyph:0,arity:0,flags:{txt:!0}},"\\sech":{glyph:0,arity:0,flags:{txt:!0}},"\\coth":{glyph:0,arity:0,flags:{txt:!0}},"\\arcsin":{glyph:0,arity:0,flags:{txt:!0}},"\\arccos":{glyph:0,arity:0,flags:{txt:!0}},"\\arctan":{glyph:0,arity:0,flags:{txt:!0}},"\\arccsc":{glyph:0,arity:0,flags:{txt:!0}},"\\arcsec":{glyph:0,arity:0,flags:{txt:!0}},"\\arccot":{glyph:0,arity:0,flags:{txt:!0}},"\\text":{glyph:0,arity:1,flags:{}},"\\mathnormal":{glyph:0,arity:1,flags:{}},"\\mathrm":{glyph:0,arity:1,flags:{}},"\\mathit":{glyph:0,arity:1,flags:{}},"\\mathbf":{glyph:0,arity:1,flags:{}},"\\mathsf":{glyph:0,arity:1,flags:{}},"\\mathtt":{glyph:0,arity:1,flags:{}},"\\mathfrak":{glyph:0,arity:1,flags:{}},"\\mathcal":{glyph:0,arity:1,flags:{}},"\\mathbb":{glyph:0,arity:1,flags:{}},"\\mathscr":{glyph:0,arity:1,flags:{}},"\\rm":{glyph:0,arity:1,flags:{}},"\\it":{glyph:0,arity:1,flags:{}},"\\bf":{glyph:0,arity:1,flags:{}},"\\sf":{glyph:0,arity:1,flags:{}},"\\tt":{glyph:0,arity:1,flags:{}},"\\frak":{glyph:0,arity:1,flags:{}},"\\cal":{glyph:0,arity:1,flags:{}},"\\bb":{glyph:0,arity:1,flags:{}},"\\scr":{glyph:0,arity:1,flags:{}},"\\quad":{glyph:0,arity:0,flags:{}},"\\,":{glyph:0,arity:0,flags:{}},"\\.":{glyph:0,arity:0,flags:{}},"\\;":{glyph:0,arity:0,flags:{}},"\\!":{glyph:0,arity:0,flags:{}},"\\alpha":{glyph:2127,flags:{}},"\\beta":{glyph:2128,flags:{}},"\\gamma":{glyph:2129,flags:{}},"\\delta":{glyph:2130,flags:{}},"\\varepsilon":{glyph:2131,flags:{}},"\\zeta":{glyph:2132,flags:{}},"\\eta":{glyph:2133,flags:{}},"\\vartheta":{glyph:2134,flags:{}},"\\iota":{glyph:2135,flags:{}},"\\kappa":{glyph:2136,flags:{}},"\\lambda":{glyph:2137,flags:{}},"\\mu":{glyph:2138,flags:{}},"\\nu":{glyph:2139,flags:{}},"\\xi":{glyph:2140,flags:{}},"\\omicron":{glyph:2141,flags:{}},"\\pi":{glyph:2142,flags:{}},"\\rho":{glyph:2143,flags:{}},"\\sigma":{glyph:2144,flags:{}},"\\tau":{glyph:2145,flags:{}},"\\upsilon":{glyph:2146,flags:{}},"\\varphi":{glyph:2147,flags:{}},"\\chi":{glyph:2148,flags:{}},"\\psi":{glyph:2149,flags:{}},"\\omega":{glyph:2150,flags:{}},"\\epsilon":{glyph:2184,flags:{}},"\\theta":{glyph:2185,flags:{}},"\\phi":{glyph:2186,flags:{}},"\\varsigma":{glyph:2187,flags:{}},"\\Alpha":{glyph:2027,flags:{}},"\\Beta":{glyph:2028,flags:{}},"\\Gamma":{glyph:2029,flags:{}},"\\Delta":{glyph:2030,flags:{}},"\\Epsilon":{glyph:2031,flags:{}},"\\Zeta":{glyph:2032,flags:{}},"\\Eta":{glyph:2033,flags:{}},"\\Theta":{glyph:2034,flags:{}},"\\Iota":{glyph:2035,flags:{}},"\\Kappa":{glyph:2036,flags:{}},"\\Lambda":{glyph:2037,flags:{}},"\\Mu":{glyph:2038,flags:{}},"\\Nu":{glyph:2039,flags:{}},"\\Xi":{glyph:2040,flags:{}},"\\Omicron":{glyph:2041,flags:{}},"\\Pi":{glyph:2042,flags:{}},"\\Rho":{glyph:2043,flags:{}},"\\Sigma":{glyph:2044,flags:{}},"\\Tau":{glyph:2045,flags:{}},"\\Upsilon":{glyph:2046,flags:{}},"\\Phi":{glyph:2047,flags:{}},"\\Chi":{glyph:2048,flags:{}},"\\Psi":{glyph:2049,flags:{}},"\\Omega":{glyph:2050,flags:{}}};function ya(r,e="math"){const t=r.charCodeAt(0);if(65<=t&&t<=90){const n=t-65;return e=="text"||e=="rm"?n+2001:e=="tt"?n+501:e=="bf"||e=="bb"?n+3001:e=="sf"?n+2501:e=="frak"?n+3301:e=="scr"||e=="cal"?n+2551:n+2051}if(97<=t&&t<=122){const n=t-97;return e=="text"||e=="rm"?n+2101:e=="tt"?n+601:e=="bf"||e=="bb"?n+3101:e=="sf"?n+2601:e=="frak"?n+3401:e=="scr"||e=="cal"?n+2651:n+2151}if(48<=t&&t<=57){const n=t-48;return e=="it"?n+2750:e=="bf"?n+3200:e=="tt"?n+700:n+2200}return{".":2210,",":2211,":":2212,";":2213,"!":2214,"?":2215,"'":2216,'"':2217,"*":2219,"/":2220,"-":2231,"+":2232,"=":2238,"<":2241,">":2242,"~":2246,"@":2273,"\\":804}[r]}const Ur={SUB_SUP_SCALE:.5,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function yg(r){r=r.replace(/\n/g," ");let e=0;const t=[];let n="";for(;e<r.length;)r[e]==" "?n.length&&(t.push(n),n=""):r[e]=="\\"?n.length==1&&n[0]=="\\"?(n+=r[e],t.push(n),n=""):(n.length&&t.push(n),n=r[e]):/[A-Za-z0-9\.]/.test(r[e])?n+=r[e]:(n.length&&n!="\\"&&(t.push(n),n=""),n+=r[e],t.push(n),n=""),e++;return n.length&&t.push(n),t}function wg(r){return{type:Be[r]?"symb":"char",mode:"math",text:r,chld:[],bbox:null}}function Dl(r){let e=0,t={type:"node",text:"",mode:"math",chld:[],bbox:null};function n(){if(r[e]!="[")return null;let o=0,a=e;for(;a<r.length;){if(r[a]=="[")o++;else if(r[a]=="]"&&(o--,!o))break;a++}const s=Dl(r.slice(e+1,a));return e=a,s}function i(o){let a=e,s=a,l=0,c=0;const u=[];for(;a<r.length;){if(r[a]=="{")l||(s=a),l++;else if(r[a]=="}"){if(l--,!l&&(u.push(Dl(r.slice(s+1,a))),c++,c==o))break}else if(l==0&&(u.push(wg(r[a])),c++,c==o))break;a++}return e=a,u}for(e=0;e<r.length;e++){const o=Be[r[e]],a={type:"",text:r[e],mode:"math",chld:[],bbox:null};if(o)if(o.arity){e++,a.type="func";let s=null;o.flags.opt&&(s=n(),s&&e++);const l=i(o.arity);a.chld=l,s&&a.chld.push(s)}else a.type="symb";else r[e]=="{"?(a.type="node",a.text="",a.chld=i(1)):a.type="char";t.chld.push(a)}return t.chld.length==1&&(t=t.chld[0]),t}function Dd(r){let e=0;for(;e<r.length;){if(r[e].text=="\\begin"){let t;for(t=e;t<r.length&&r[t].text!="\\end";t++);const n=r.splice(e+1,t-(e+1));Dd(n),r[e].text=r[e].chld[0].text,r[e].chld=n,r.splice(e+1,1)}e++}}function Sr(r,e,t,n,i,o){if(t==null&&(t=e),!!r.bbox){o&&(r.bbox.x*=e,r.bbox.y*=t),r.bbox.w*=e,r.bbox.h*=t;for(let a=0;a<r.chld.length;a++)Sr(r.chld[a],e,t,0,0,!0);r.bbox.x+=n,r.bbox.y+=i}}function Xd(r){let e=1/0,t=-1/0,n=1/0,i=-1/0;for(let o=0;o<r.length;o++)!r[o].bbox||(e=Math.min(e,r[o].bbox.x),n=Math.min(n,r[o].bbox.y),t=Math.max(t,r[o].bbox.x+r[o].bbox.w),i=Math.max(i,r[o].bbox.y+r[o].bbox.h));return{x:e,y:n,w:t-e,h:i-n}}function Sg(r){if(!r.length)return null;const e=Xd(r);for(let n=0;n<r.length;n++)!r[n].bbox||(r[n].bbox.x-=e.x,r[n].bbox.y-=e.y);return{type:"node",text:"",mode:"math",chld:r,bbox:e}}function xg(r,e="center"){for(let c=0;c<r.length;c++)if(r[c].text=="^"||r[c].text=="'"){let u=0,h=c;for(;h>0&&(r[h].text=="^"||r[h].text=="_"||r[h].text=="'");)h--;u=r[h].bbox.y,r[c].text=="'"?r[c].bbox.y=u:(Sr(r[c],Ur.SUB_SUP_SCALE,null,0,0),Be[r[h].text]&&Be[r[h].text].flags.big?r[c].bbox.y=u-r[c].bbox.h:r[h].text=="\\int"?r[c].bbox.y=u:r[c].bbox.y=u-r[c].bbox.h/2)}else if(r[c].text=="_"){let u=1,h=c;for(;h>0&&(r[h].text=="^"||r[h].text=="_"||r[h].text=="'");)h--;u=r[h].bbox.y+r[h].bbox.h,Sr(r[c],Ur.SUB_SUP_SCALE,null,0,0),Be[r[h].text]&&Be[r[h].text].flags.big?r[c].bbox.y=u:r[h].text=="\\int"?r[c].bbox.y=u-r[c].bbox.h:r[c].bbox.y=u-r[c].bbox.h/2}function t(c,u,h,d,f){let p=c,g=f,v=1/0,R=-1/0;for(;d>0?p<r.length:p>=0;){if(r[p].text==u)g++;else if(r[p].text==h){if(g--,g==0)break}else r[p].text=="^"||r[p].text=="_"||r[p].bbox&&(v=Math.min(v,r[p].bbox.y),R=Math.max(R,r[p].bbox.y+r[p].bbox.h));p+=d}return[v,R]}for(let c=0;c<r.length;c++)if(r[c].text=="\\left"){const[u,h]=t(c,"\\left","\\right",1,0);u!=1/0&&h!=-1/0&&(r[c].bbox.y=u,Sr(r[c],1,(h-u)/r[c].bbox.h,0,0))}else if(r[c].text=="\\right"){const[u,h]=t(c,"\\right","\\left",-1,0);u!=1/0&&h!=-1/0&&(r[c].bbox.y=u,Sr(r[c],1,(h-u)/r[c].bbox.h,0,0))}else if(r[c].text=="\\middle"){const[u,h]=t(c,"\\right","\\left",-1,1),[d,f]=t(c,"\\left","\\right",1,1),p=Math.min(u,d),g=Math.max(h,f);p!=1/0&&g!=-1/0&&(r[c].bbox.y=p,Sr(r[c],1,(g-p)/r[c].bbox.h,0,0))}if(!r.some(c=>c.text=="&"||c.text=="\\\\"))return;const n=[];let i=[],o=[];for(let c=0;c<r.length;c++)r[c].text=="&"?(i.push(o),o=[]):r[c].text=="\\\\"?(o.length&&(i.push(o),o=[]),n.push(i),i=[]):o.push(r[c]);o.length&&i.push(o),i.length&&n.push(i);const a=[],s=[];for(let c=0;c<n.length;c++){const u=[];for(let h=0;h<n[c].length;h++){const d=Sg(n[c][h]);d&&(a[h]=a[h]||0,a[h]=Math.max(d.bbox.w+1,a[h])),u[h]=d}s.push(u)}const l=[];for(let c=0;c<s.length;c++){let u=1/0,h=-1/0;for(let d=0;d<s[c].length;d++)!s[c][d]||(u=Math.min(u,s[c][d].bbox.y),h=Math.max(h,s[c][d].bbox.y+s[c][d].bbox.h));l.push([u,h])}for(let c=0;c<l.length;c++)(l[c][0]==1/0||l[c][1]==1/0)&&(l[c][0]=c==0?0:l[c-1][1],l[c][1]=l[c][0]+2);for(let c=1;c<s.length;c++){const u=l[c-1][1]-l[c][0]+Ur.LINE_SPACING;for(let h=0;h<s[c].length;h++)s[c][h]&&(s[c][h].bbox.y+=u);l[c][0]+=u,l[c][1]+=u}r.splice(0,r.length);for(let c=0;c<s.length;c++){let u=0;for(let h=0;h<s[c].length;h++){const d=s[c][h];if(!d){u+=a[h];continue}d.bbox.x+=u,u+=a[h]-d.bbox.w,e=="center"?d.bbox.x+=(a[h]-d.bbox.w)/2:e=="left"||(e=="right"||e=="equation"&&h!=s[c].length-1)&&(d.bbox.x+=a[h]-d.bbox.w),r.push(d)}}}function qr(r,e="math"){var n,i,o;const t=(n={"\\text":"text","\\mathnormal":"math","\\mathrm":"rm","\\mathit":"it","\\mathbf":"bf","\\mathsf":"sf","\\mathtt":"tt","\\mathfrak":"frak","\\mathcal":"cal","\\mathbb":"bb","\\mathscr":"scr","\\rm":"rm","\\it":"it","\\bf":"bf","\\sf":"tt","\\tt":"tt","\\frak":"frak","\\cal":"cal","\\bb":"bb","\\scr":"scr"}[r.text])!=null?n:e;if(!r.chld.length){if(Be[r.text])if(Be[r.text].flags.big)r.text=="\\lim"?r.bbox={x:0,y:0,w:3.5,h:2}:r.bbox={x:0,y:-.5,w:3,h:3};else if(Be[r.text].flags.txt){let a=0;for(let s=1;s<r.text.length;s++)a+=wi(ya(r.text[s],"text")).w;a/=16,r.bbox={x:0,y:0,w:a,h:2}}else if(Be[r.text].glyph){let a=wi(Be[r.text].glyph).w;a/=16,r.text=="\\int"||r.text=="\\oint"?r.bbox={x:0,y:-1.5,w:a,h:5}:r.bbox={x:0,y:0,w:a,h:2}}else r.bbox={x:0,y:0,w:1,h:2};else{let a=0;for(let s=0;s<r.text.length;s++)!wi(ya(r.text[s],t))||(t=="tt"?a+=16:a+=wi(ya(r.text[s],t)).w);a/=16,r.bbox={x:0,y:0,w:a,h:2}}r.mode=t;return}if(r.text=="\\frac"){const a=r.chld[0],s=r.chld[1],l=Ur.FRAC_SCALE;qr(a),qr(s),a.bbox.x=0,a.bbox.y=0,s.bbox.x=0,s.bbox.y=0;const c=Math.max(a.bbox.w,s.bbox.w)*l;Sr(a,l,null,(c-a.bbox.w*l)/2,0),Sr(s,l,null,(c-s.bbox.w*l)/2,a.bbox.h+Ur.FRAC_SPACING),r.bbox={x:0,y:-a.bbox.h+1-Ur.FRAC_SPACING/2,w:c,h:a.bbox.h+s.bbox.h+Ur.FRAC_SPACING}}else if(r.text=="\\binom"){const a=r.chld[0],s=r.chld[1];qr(a),qr(s),a.bbox.x=0,a.bbox.y=0,s.bbox.x=0,s.bbox.y=0;const l=Math.max(a.bbox.w,s.bbox.w);Sr(a,1,null,(l-a.bbox.w)/2+1,0),Sr(s,1,null,(l-s.bbox.w)/2+1,a.bbox.h),r.bbox={x:0,y:-a.bbox.h+1,w:l+2,h:a.bbox.h+s.bbox.h}}else if(r.text=="\\sqrt"){const a=r.chld[0];qr(a);const s=r.chld[1];let l=0;s&&(qr(s),l=Math.max(s.bbox.w*Ur.SQRT_MAG_SCALE-.5,0),Sr(s,Ur.SQRT_MAG_SCALE,null,0,.5)),Sr(a,1,null,1+l,.5),r.bbox={x:0,y:2-a.bbox.h-.5,w:a.bbox.w+1+l,h:a.bbox.h+.5}}else if(Be[r.text]&&Be[r.text].flags.hat){const a=r.chld[0];qr(a);const s=a.bbox.y-.5;a.bbox.y=.5,r.bbox={x:0,y:s,w:a.bbox.w,h:a.bbox.h+.5}}else if(Be[r.text]&&Be[r.text].flags.mat){const a=r.chld[0];qr(a),r.bbox={x:0,y:0,w:a.bbox.w,h:a.bbox.h+.5}}else{let a=0,s=0,l=1;for(let p=0;p<r.chld.length;p++){const g=r.chld[p],v=(i={"\\quad":2,"\\,":2*3/18,"\\:":2*4/18,"\\;":2*5/18,"\\!":2*-3/18}[g.text])!=null?i:null;if(g.text=="\\\\"){s+=l,a=0,l=1;continue}else{if(g.text=="&")continue;if(v!=null){a+=v;continue}else{if(qr(g,t),Sr(g,1,null,a,s),g.text=="^"||g.text=="_"||g.text=="'"){let R=p;for(;R>0&&(r.chld[R].text=="^"||r.chld[R].text=="_"||r.chld[R].text=="'");)R--;const m=Be[r.chld[R].text]&&Be[r.chld[R].text].flags.big;if(g.text=="'"){let x=R+1,T=0;for(;x<p;)r.chld[x].text=="'"&&T++,x++;g.bbox.x=r.chld[R].bbox.x+r.chld[R].bbox.w+g.bbox.w*T,a=Math.max(a,g.bbox.x+g.bbox.w)}else if(m){const x=r.chld[R].bbox.x+(r.chld[R].bbox.w-g.bbox.w*Ur.SUB_SUP_SCALE)/2;g.bbox.x=x,a=Math.max(a,r.chld[R].bbox.x+r.chld[R].bbox.w+(g.bbox.w*Ur.SUB_SUP_SCALE-r.chld[R].bbox.w)/2)}else g.bbox.x=r.chld[R].bbox.x+r.chld[R].bbox.w,a=Math.max(a,g.bbox.x+g.bbox.w*Ur.SUB_SUP_SCALE)}else a+=g.bbox.w;e=="text"&&(a+=1),l=Math.max(g.bbox.y+g.bbox.h-s,l)}}}s+=l;const c={bmatrix:["[","]"],pmatrix:["(",")"],Bmatrix:["\\{","\\}"],cases:["\\{"]},u=(o={bmatrix:"center",pmatrix:"center",Bmatrix:"center",cases:"left",matrix:"center",aligned:"equation"}[r.text])!=null?o:"left",h=!!c[r.text],d=!!c[r.text]&&c[r.text].length>1;xg(r.chld,u);const f=Xd(r.chld);r.text=="\\text"&&(f.x-=1,f.w+=2);for(let p=0;p<r.chld.length;p++)Sr(r.chld[p],1,null,-f.x+(h?1.5:0),-f.y);r.bbox={x:0,y:0,w:f.w+1.5*Number(h)+1.5*Number(d),h:f.h},h&&r.chld.unshift({type:"symb",text:c[r.text][0],mode:r.mode,chld:[],bbox:{x:0,y:0,w:1,h:f.h}}),d&&r.chld.push({type:"symb",text:c[r.text][1],mode:r.mode,chld:[],bbox:{x:f.w+2,y:0,w:1,h:f.h}}),(h||d||r.text=="matrix")&&(r.type="node",r.text="",r.bbox.y-=(r.bbox.h-2)/2)}}function bg(r){function e(n,i,o){const a=[];if(n.bbox){if(i+=n.bbox.x,o+=n.bbox.y,n.text=="\\frac"){const s=n.chld[1].bbox.y-(n.chld[0].bbox.y+n.chld[0].bbox.h),l={type:"symb",mode:n.mode,text:"\\bar",bbox:{x:i,y:o+(n.chld[1].bbox.y-s/2)-s/2,w:n.bbox.w,h:s},chld:[]};a.push(l)}else if(n.text=="\\sqrt"){const s=n.chld[0].bbox.y,l=Math.max(0,n.chld[0].bbox.x-n.chld[0].bbox.h/2),c={type:"symb",mode:n.mode,text:"\\sqrt",bbox:{x:i+l,y:o+s/2,w:n.chld[0].bbox.x-l,h:n.bbox.h-s/2},chld:[]};a.push(c),a.push({type:"symb",text:"\\bar",mode:n.mode,bbox:{x:i+n.chld[0].bbox.x,y:o,w:n.bbox.w-n.chld[0].bbox.x,h:s},chld:[]})}else if(n.text=="\\binom"){const s=Math.min(n.chld[0].bbox.x,n.chld[1].bbox.x),l={type:"symb",mode:n.mode,text:"(",bbox:{x:i,y:o,w:s,h:n.bbox.h},chld:[]};a.push(l),a.push({type:"symb",text:")",mode:n.mode,bbox:{x:i+n.bbox.w-s,y:o,w:s,h:n.bbox.h},chld:[]})}else if(Be[n.text]&&Be[n.text].flags.hat){const s=n.chld[0].bbox.y,l={type:"symb",mode:n.mode,text:n.text,bbox:{x:i,y:o,w:n.bbox.w,h:s},chld:[]};a.push(l)}else if(Be[n.text]&&Be[n.text].flags.mat){const s=n.chld[0].bbox.h,l={type:"symb",text:n.text,mode:n.mode,bbox:{x:i,y:o+s,w:n.bbox.w,h:n.bbox.h-s},chld:[]};a.push(l)}else if(n.type!="node"&&n.text!="^"&&n.text!="_"){const s={type:n.type=="func"?"symb":n.type,text:n.text,mode:n.mode,bbox:{x:i,y:o,w:n.bbox.w,h:n.bbox.h},chld:[]};a.push(s)}}for(let s=0;s<n.chld.length;s++){const l=e(n.chld[s],i,o);a.push(...l)}return a}const t=e(r,-r.bbox.x,-r.bbox.y);r.type="node",r.text="",r.chld=t}function Og(r){const e=[];for(let t=0;t<r.chld.length;t++){const n=r.chld[t];let i=n.bbox.h/2,o=!1;if(Be[n.text]&&Be[n.text].flags.hat&&!Be[n.text].flags.xfl&&!Be[n.text].flags.yfl&&(i*=4,o=!0),Be[n.text]&&Be[n.text].glyph){const a=wi(Be[n.text].glyph);for(let s=0;s<a.polylines.length;s++){const l=[];for(let c=0;c<a.polylines[s].length;c++){let u=a.polylines[s][c][0],h=a.polylines[s][c][1];if(Be[n.text].flags.xfl)u=(u-a.xmin)/Math.max(a.xmax-a.xmin,1)*n.bbox.w,u+=n.bbox.x;else if(a.w/16*i>n.bbox.w)u=u/Math.max(a.w,1)*n.bbox.w,u+=n.bbox.x;else{u=u/16*i;const d=(n.bbox.w-a.w/16*i)/2;u+=n.bbox.x+d}Be[n.text].flags.yfl?(h=(h-a.ymin)/Math.max(a.ymax-a.ymin,1)*n.bbox.h,h+=n.bbox.y):(h=h/16*i,o&&(h-=(a.ymax+a.ymin)/2/16*i),h+=n.bbox.y+n.bbox.h/2),l.push([u,h])}e.push(l)}}else if(Be[n.text]&&Be[n.text].flags.txt||n.type=="char"){let a=n.bbox.x;const s=!!(Be[n.text]&&Be[n.text].flags.txt);for(let l=Number(s);l<n.text.length;l++){const c=wi(ya(n.text[l],s?"text":n.mode));if(!c){console.warn("unmapped character: "+n.text[l]);continue}for(let u=0;u<c.polylines.length;u++){const h=[];for(let d=0;d<c.polylines[u].length;d++){let f=c.polylines[u][d][0],p=c.polylines[u][d][1];f/=16,p/=16,f*=i,p*=i,n.mode=="tt"&&(c.w>16?f*=16/c.w:f+=(16-c.w)/2/16),f+=a,p+=n.bbox.y+n.bbox.h/2,h.push([f,p])}e.push(h)}n.mode=="tt"?a+=i:a+=c.w/16*i}}}return e}function jr(r){return Math.round(r*100)/100}class Tg{constructor(e){this._latex=e,this._tokens=yg(e),this._tree=Dl(this._tokens),Dd(this._tree.chld),qr(this._tree),bg(this._tree),this._polylines=Og(this._tree)}resolveScale(e){var a,s,l,c;if(e==null)return[16,16,16,16];let t=(a=e.SCALE_X)!=null?a:16,n=(s=e.SCALE_Y)!=null?s:16;if(e.MIN_CHAR_H!=null){let u=0;for(let d=0;d<this._tree.chld.length;d++){const f=this._tree.chld[d];(f.type=="char"||Be[f.text]&&(Be[f.text].flags.txt||!Object.keys(Be[f.text].flags).length))&&(u=Math.min(f.bbox.h,u))}const h=Math.max(1,e.MIN_CHAR_H/u);t*=h,n*=h}if(e.MAX_W!=null){const u=t;t=Math.min(t,e.MAX_W/this._tree.bbox.w),n*=t/u}if(e.MAX_H!=null){const u=n;n=Math.min(n,e.MAX_H/this._tree.bbox.h),t*=n/u}const i=(l=e.MARGIN_X)!=null?l:t,o=(c=e.MARGIN_Y)!=null?c:n;return[i,o,t,n]}polylines(e){e||(e={});const t=[],[n,i,o,a]=this.resolveScale(e);for(let s=0;s<this._polylines.length;s++){t.push([]);for(let l=0;l<this._polylines[s].length;l++){const[c,u]=this._polylines[s][l];t[t.length-1].push([n+c*o,i+u*a])}}return t}pathd(e){e||(e={});let t="";const[n,i,o,a]=this.resolveScale(e);for(let s=0;s<this._polylines.length;s++)for(let l=0;l<this._polylines[s].length;l++){const[c,u]=this._polylines[s][l];t+=l?"L":"M",t+=`${jr(n+c*o)} ${jr(i+u*a)}`}return t}svg(e){var c,u;e||(e={});const[t,n,i,o]=this.resolveScale(e),a=jr(this._tree.bbox.w*i+t*2),s=jr(this._tree.bbox.h*o+n*2);let l=`<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width="${a}" height="${s}"
|
|
fill="none" stroke="${(c=e.FG_COLOR)!=null?c:"black"}" stroke-width="${(u=e.STROKE_W)!=null?u:1}"
|
|
stroke-linecap="round" stroke-linejoin="round"
|
|
>`;e.BG_COLOR&&(l+=`<rect x="${0}" y="${0}" width="${a}" height="${s}" fill="${e.BG_COLOR}" stroke="none"></rect>`),l+='<path d="';for(let h=0;h<this._polylines.length;h++){l+="M";for(let d=0;d<this._polylines[h].length;d++){const[f,p]=this._polylines[h][d];l+=jr(t+f*i)+" "+jr(n+p*o)+" "}}return l+='"/>',l+="</svg>",{svg:`data:image/svg+xml;base64,${window.btoa(l)}`,width:Math.ceil(a),height:Math.ceil(s)}}pdf(e){var h;e||(e={});const[t,n,i,o]=this.resolveScale(e),a=jr(this._tree.bbox.w*i+t*2),s=jr(this._tree.bbox.h*o+n*2);let l=`%PDF-1.1
|
|
%%\xA5\xB1\xEB
|
|
1 0 obj
|
|
<< /Type /Catalog
|
|
/Pages 2 0 R
|
|
>>endobj
|
|
2 0 obj
|
|
<< /Type /Pages
|
|
/Kids [3 0 R]
|
|
/Count 1
|
|
/MediaBox [0 0 ${a} ${s}]
|
|
>>
|
|
endobj
|
|
3 0 obj
|
|
<< /Type /Page
|
|
/Parent 2 0 R
|
|
/Resources
|
|
<< /Font
|
|
<< /F1
|
|
<< /Type /Font
|
|
/Subtype /Type1
|
|
/BaseFont /Times-Roman
|
|
>>
|
|
>>
|
|
>>
|
|
/Contents [`,c="",u=4;for(let d=0;d<this._polylines.length;d++){c+=`${u} 0 obj
|
|
<< /Length 0 >>
|
|
stream
|
|
1 j 1 J ${(h=e.STROKE_W)!=null?h:1} w
|
|
`;for(let f=0;f<this._polylines[d].length;f++){const[p,g]=this._polylines[d][f];c+=`${jr(t+p*i)} ${jr(s-(n+g*o))} ${f?"l":"m"} `}c+=`
|
|
S
|
|
endstream
|
|
endobj
|
|
`,l+=`${u} 0 R `,u++}return l+=`]
|
|
>>
|
|
endobj
|
|
`,c+=`
|
|
trailer
|
|
<< /Root 1 0 R
|
|
/Size 0
|
|
>>startxref
|
|
|
|
%%EOF
|
|
`,l+c}boxes(e){e||(e={});const[t,n,i,o]=this.resolveScale(e),a=[];for(let s=0;s<this._tree.chld.length;s++){const{x:l,y:c,w:u,h}=this._tree.chld[s].bbox;a.push({x:t+l*i,y:n+c*o,w:u*i,h:h*o})}return a}box(e){e||(e={});const[t,n,i,o]=this.resolveScale(e);return{x:t+this._tree.bbox.x*i,y:n+this._tree.bbox.y*o,w:this._tree.bbox.w*i,h:this._tree.bbox.h*o}}}class Ud extends Ad{static convertLaTextToSVG(e){return new Tg(e).svg({SCALE_X:10,SCALE_Y:10,MARGIN_X:0,MARGIN_Y:0})}render(e,t,n,i){const{scale:o}=this.options,a=t.width*o,s=t.height*o;if(this.imageCache.has(t.value)){const l=this.imageCache.get(t.value);e.drawImage(l,n,i,a,s)}else{const l=new Promise((c,u)=>{const h=new Image;h.src=t.laTexSVG,h.onload=()=>{e.drawImage(h,n,i,a,s),this.imageCache.set(t.value,h),c(t)},h.onerror=d=>{u(d)}});this.addImageObserver(l)}}}var dn=(r=>(r.UL="ul",r.OL="ol",r))(dn||{}),Si=(r=>(r.DISC="disc",r.CIRCLE="circle",r.SQUARE="square",r.CHECKBOX="checkbox",r))(Si||{}),Er=(r=>(r.DISC="disc",r.CIRCLE="circle",r.SQUARE="square",r.DECIMAL="decimal",r.CHECKBOX="checkbox",r))(Er||{});const Xl={[Si.DISC]:"\u2022",[Si.CIRCLE]:"\u25E6",[Si.SQUARE]:"\u25AB\uFE0E",[Si.CHECKBOX]:"\u2611\uFE0F"},Pg={[dn.OL]:"ol",[dn.UL]:"ul"},Eg={[Er.DISC]:"disc",[Er.CIRCLE]:"circle",[Er.SQUARE]:"square",[Er.DECIMAL]:"decimal",[Er.CHECKBOX]:"checkbox"};var tt=(r=>(r.FIRST="first",r.SECOND="second",r.THIRD="third",r.FOURTH="fourth",r.FIFTH="fifth",r.SIXTH="sixth",r))(tt||{});const _g={defaultFirstSize:26,defaultSecondSize:24,defaultThirdSize:22,defaultFourthSize:20,defaultFifthSize:18,defaultSixthSize:16},Wd={[tt.FIRST]:"defaultFirstSize",[tt.SECOND]:"defaultSecondSize",[tt.THIRD]:"defaultThirdSize",[tt.FOURTH]:"defaultFourthSize",[tt.FIFTH]:"defaultFifthSize",[tt.SIXTH]:"defaultSixthSize"},Ul={[tt.FIRST]:1,[tt.SECOND]:2,[tt.THIRD]:3,[tt.FOURTH]:4,[tt.FIFTH]:5,[tt.SIXTH]:6},Ig={H1:tt.FIRST,H2:tt.SECOND,H3:tt.THIRD,H4:tt.FOURTH,H5:tt.FIFTH,H6:tt.SIXTH};var nt=(r=>(r.TEXT="text",r.SELECT="select",r.CHECKBOX="checkbox",r.RADIO="radio",r.DATE="date",r))(nt||{}),ye=(r=>(r.PREFIX="prefix",r.POSTFIX="postfix",r.PLACEHOLDER="placeholder",r.VALUE="value",r.CHECKBOX="checkbox",r.RADIO="radio",r))(ye||{}),Vd=(r=>(r.ROW_START="rowStart",r.VALUE_START="valueStart",r))(Vd||{});function Gu(r){const e=[];for(let t=0;t<r.length;t++){const n=r[t],i=Wr(n.value);for(let o=0;o<i.length;o++)e.push({...n,value:i[o]})}return e}function Nr(r,e){const{isHandleFirstElement:t,editorOptions:n}={isHandleFirstElement:!0,...e},i=r[0];t&&(i==null?void 0:i.type)!==ae.LIST&&((i==null?void 0:i.type)&&i.type!==ae.TEXT||!Id.test(i==null?void 0:i.value))&&r.unshift({value:Ne});let o=0;for(;o<r.length;){let a=r[o];if(a.type===ae.TITLE){r.splice(o,1);const s=a.valueList||[];if(Nr(s,{...e,isHandleFirstElement:!1}),s.length){const l=it(),c=n.title;for(let u=0;u<s.length;u++){const h=s[u];h.title=a.title,a.level&&(h.titleId=l,h.level=a.level),kd(h)&&(h.size||(h.size=c[Wd[h.level]]),h.bold===void 0&&(h.bold=!0)),r.splice(o,0,h),o++}}o--}else if(a.type===ae.LIST){r.splice(o,1);const s=a.valueList||[];if(Nr(s,{...e,isHandleFirstElement:!0}),s.length){const l=it();for(let c=0;c<s.length;c++){const u=s[c];u.listId=l,u.listType=a.listType,u.listStyle=a.listStyle,r.splice(o,0,u),o++}}o--}else if(a.type===ae.TABLE){const s=it();if(a.id=s,a.trList){const{defaultTrMinHeight:l}=n.table;for(let c=0;c<a.trList.length;c++){const u=a.trList[c],h=it();u.id=h,(!u.minHeight||u.minHeight<l)&&(u.minHeight=l),u.height<u.minHeight&&(u.height=u.minHeight);for(let d=0;d<u.tdList.length;d++){const f=u.tdList[d],p=it();f.id=p,Nr(f.value,{...e,isHandleFirstElement:!0});for(let g=0;g<f.value.length;g++){const v=f.value[g];v.tdId=p,v.trId=h,v.tableId=s}}}}}else if(a.type===ae.HYPERLINK){r.splice(o,1);const s=Gu(a.valueList||[]);if(s.length){const l=it();for(let c=0;c<s.length;c++){const u=s[c];u.type=a.type,u.url=a.url,u.hyperlinkId=l,r.splice(o,0,u),o++}}o--}else if(a.type===ae.DATE){r.splice(o,1);const s=Gu(a.valueList||[]);if(s.length){const l=it();for(let c=0;c<s.length;c++){const u=s[c];u.type=a.type,u.dateFormat=a.dateFormat,u.dateId=l,r.splice(o,0,u),o++}}o--}else if(a.type===ae.CONTROL){if(!a.control){o++;continue}const{prefix:s,postfix:l,value:c,placeholder:u,code:h,type:d,valueSets:f}=a.control,{editorOptions:{control:p,checkbox:g,radio:v}}=e,R=it();r.splice(o,1);const m=un(a,Cd),x=un(a.control,Ci),T={...x,color:n.control.bracketColor},P=Wr(s||p.prefix);for(let D=0;D<P.length;D++){const W=P[D];r.splice(o,0,{...m,...T,controlId:R,value:W,type:a.type,control:a.control,controlComponent:ye.PREFIX}),o++}if(c&&c.length||d===nt.CHECKBOX||d===nt.RADIO||d===nt.SELECT&&h&&(!c||!c.length)){let D=c||[];if(d===nt.CHECKBOX){const W=h?h.split(","):[];if(Array.isArray(f)&&f.length){const _=D.reduce((te,O)=>te.concat(O.value.split("").map(I=>({...O,value:I}))),[]);let Q=0;for(let te=0;te<f.length;te++){const O=f[te];r.splice(o,0,{...m,controlId:R,value:"",type:a.type,control:a.control,controlComponent:ye.CHECKBOX,checkbox:{code:O.code,value:W.includes(O.code)}}),o++;const I=Wr(O.value);for(let y=0;y<I.length;y++){const L=I[y],k=y===I.length-1;r.splice(o,0,{...m,...x,..._[Q],controlId:R,value:L===`
|
|
`?Ne:L,letterSpacing:k?g.gap:0,control:a.control,controlComponent:ye.VALUE}),Q++,o++}}}}else if(d===nt.RADIO){if(Array.isArray(f)&&f.length){const W=D.reduce((Q,te)=>Q.concat(te.value.split("").map(O=>({...te,value:O}))),[]);let _=0;for(let Q=0;Q<f.length;Q++){const te=f[Q];r.splice(o,0,{...m,controlId:R,value:"",type:a.type,control:a.control,controlComponent:ye.RADIO,radio:{code:te.code,value:h===te.code}}),o++;const O=Wr(te.value);for(let I=0;I<O.length;I++){const y=O[I],L=I===O.length-1;r.splice(o,0,{...m,...x,...W[_],controlId:R,value:y===`
|
|
`?Ne:y,letterSpacing:L?v.gap:0,control:a.control,controlComponent:ye.VALUE}),_++,o++}}}}else{if((!c||!c.length)&&Array.isArray(f)&&f.length){const W=f.find(_=>_.code===h);W&&(D=[{value:W.value}])}Nr(D,{...e,isHandleFirstElement:!1});for(let W=0;W<D.length;W++){const _=D[W],Q=_.value;r.splice(o,0,{...m,...x,..._,controlId:R,value:Q===`
|
|
`?Ne:Q,type:_.type||ae.TEXT,control:a.control,controlComponent:ye.VALUE}),o++}}}else if(u){const D={...x,color:n.control.placeholderColor},W=Wr(u);for(let _=0;_<W.length;_++){const Q=W[_];r.splice(o,0,{...m,...D,controlId:R,value:Q===`
|
|
`?Ne:Q,type:a.type,control:a.control,controlComponent:ye.PLACEHOLDER}),o++}}const A=Wr(l||p.postfix);for(let D=0;D<A.length;D++){const W=A[D];r.splice(o,0,{...m,...T,controlId:R,value:W,type:a.type,control:a.control,controlComponent:ye.POSTFIX}),o++}o--}else if((!a.type||Gr.includes(a.type))&&a.value.length>1){r.splice(o,1);const s=Wr(a.value);for(let l=0;l<s.length;l++)r.splice(o+l,0,{...a,value:s[l]});a=r[o]}if(a.value===`
|
|
`&&(a.value=Ne),(a.type===ae.IMAGE||a.type===ae.BLOCK)&&(a.id=it()),a.type===ae.LATEX){const{svg:s,width:l,height:c}=Ud.convertLaTextToSVG(a.value);a.width=a.width||l,a.height=a.height||c,a.laTexSVG=s,a.id=it()}o++}}function Ng(r,e){const t=Object.keys(r),n=Object.keys(e);if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){const o=t[i];if(o!=="value"&&!(o==="groupIds"&&Array.isArray(r[o])&&Array.isArray(e[o])&&og(r[o],e[o]))&&r[o]!==e[o])return!1}return!0}function _i(r,e={}){const{extraPickAttrs:t}=e,n=ug;t&&n.push(...t);const i={value:r.value===Ne?`
|
|
`:r.value};return n.forEach(o=>{const a=r[o];a!==void 0&&(i[o]=a)}),i}function bt(r,e={}){const{extraPickAttrs:t}=e,n=gt(r),i=[];let o=0;for(;o<n.length;){let a=n[o];if(o===0&&a.value===Ne&&!a.listId&&(!a.type||a.type===ae.TEXT)){o++;continue}if(a.titleId&&a.level){const l=a.titleId;if(l){const c=a.level,u={type:ae.TITLE,title:a.title,value:"",level:c},h=[];for(;o<n.length;){const d=n[o];if(l!==d.titleId){o--;break}delete d.level,delete d.title,h.push(d),o++}u.valueList=bt(h,e),a=u}}else if(a.listId&&a.listType){const l=a.listId;if(l){const c=a.listType,u=a.listStyle,h={type:ae.LIST,value:"",listId:l,listType:c,listStyle:u},d=[];for(;o<n.length;){const f=n[o];if(l!==f.listId){o--;break}delete f.listType,delete f.listStyle,d.push(f),o++}h.valueList=bt(d,e),a=h}}else if(a.type===ae.TABLE){if(a.pagingId){let l=o+1,c=0;for(;l<n.length;){const u=n[l];if(u.pagingId===a.pagingId)a.height+=u.height,a.trList.push(...u.trList),l++,c++;else break}o+=c}if(a.trList)for(let l=0;l<a.trList.length;l++){const c=a.trList[l];delete c.id;for(let u=0;u<c.tdList.length;u++){const h=c.tdList[u],d={colspan:h.colspan,rowspan:h.rowspan,value:bt(h.value,e)};hg.forEach(f=>{const p=h[f];p!==void 0&&(d[f]=p)}),c.tdList[u]=d}}}else if(a.type===ae.HYPERLINK){const l=a.hyperlinkId;if(l){const c={type:ae.HYPERLINK,value:"",url:a.url},u=[];for(;o<n.length;){const h=n[o];if(l!==h.hyperlinkId){o--;break}delete h.type,delete h.url,u.push(h),o++}c.valueList=bt(u,e),a=c}}else if(a.type===ae.DATE){const l=a.dateId;if(l){const c={type:ae.DATE,value:"",dateFormat:a.dateFormat},u=[];for(;o<n.length;){const h=n[o];if(l!==h.dateId){o--;break}delete h.type,delete h.dateFormat,u.push(h),o++}c.valueList=bt(u,e),a=c}}else if(a.controlId){const l=a.controlId;if(l){const c=un(a,Ci),u={...a.control,...c},h={...un(a,Mo),type:ae.CONTROL,value:"",control:u,controlId:l},d=[];for(;o<n.length;){const f=n[o];if(l!==f.controlId){o--;break}f.controlComponent===ye.VALUE&&(delete f.control,delete f.controlId,d.push(f)),o++}h.control.value=bt(d,e),a=_i(h,{extraPickAttrs:t})}}const s=_i(a,{extraPickAttrs:t});if(!a.type||a.type===ae.TEXT||a.type===ae.SUBSCRIPT||a.type===ae.SUPERSCRIPT)for(;o<n.length;){const l=n[o+1];if(o++,l&&Ng(s,_i(l,{extraPickAttrs:t}))){const c=l.value===Ne?`
|
|
`:l.value;s.value+=c}else break}else o++;i.push(s)}return i}function Mg(r){switch(window.getComputedStyle(r).textAlign){case"left":case"start":return Ge.LEFT;case"center":return Ge.CENTER;case"right":case"end":return Ge.RIGHT;case"justify":return Ge.ALIGNMENT;case"justify-all":return Ge.JUSTIFY;default:return Ge.LEFT}}function Yd(r){return r===Ge.ALIGNMENT?"justify":r}function Lg(r){switch(r){case Ge.LEFT:return"flex-start";case Ge.CENTER:return"center";case Ge.RIGHT:return"flex-end";case Ge.ALIGNMENT:case Ge.JUSTIFY:return"space-between";default:return"flex-start"}}function kd(r){return!r.type||Gr.includes(r.type)}function Lo(r,e){const t=r[e];if(!t)return null;const n=r[e+1];return!t.listId&&t.value===Ne&&n&&n.value!==Ne?n:t}function ar(r,e,t,n){var s,l;const i=Lo(r,t);if(!i)return;const{isBreakWhenWrap:o=!1}=n||{};let a=!1;for(let c=0;c<e.length;c++){const u=e[c];if(o&&!i.listId&&/^\n/.test(u.value)&&(a=!0),a||!i.listId&&u.type===ae.LIST){const h=[...mc,...Mo];va(h,i,u),(s=u.valueList)==null||s.forEach(d=>{va(h,i,d)});continue}(l=u.valueList)!=null&&l.length&&ar(r,u.valueList,t),va(Cd,i,u)}}function Fg(r,e){let t="span";r.type===ae.SUPERSCRIPT?t="sup":r.type===ae.SUBSCRIPT&&(t="sub");const n=document.createElement(t);return n.style.fontFamily=r.font||e.defaultFont,r.rowFlex&&(n.style.textAlign=Yd(r.rowFlex)),r.color&&(n.style.color=r.color),r.bold&&(n.style.fontWeight="600"),r.italic&&(n.style.fontStyle="italic"),n.style.fontSize=`${r.size||e.defaultSize}px`,r.highlight&&(n.style.backgroundColor=r.highlight),r.underline&&(n.style.textDecoration="underline"),r.strikeout&&(n.style.textDecoration+=" line-through"),n.innerText=r.value.replace(new RegExp(`${Ne}`,"g"),`
|
|
`),n}function Zd(r){let e=0;const t=new Map;for(let n=0;n<r.length;n++){const i=r[n];if(n===0){if(i.checkbox)continue;i.value=i.value.replace(Id,"")}if(i.listWrap){const o=t.get(e)||[];o.push(i),t.set(e,o)}else{const o=i.value.split(`
|
|
`);for(let a=0;a<o.length;a++){a>0&&(e+=1);const s=o[a],l=t.get(e)||[];l.push({...i,value:s}),t.set(e,l)}}}return t}function Cg(r){var n;const e=[];if(!r.length)return e;let t=((n=r[0])==null?void 0:n.rowFlex)||null;e.push({rowFlex:t,data:[r[0]]});for(let i=1;i<r.length;i++){const o=r[i],a=o.rowFlex||null;t===a&&!Fa(o)&&!Fa(r[i-1])?e[e.length-1].data.push(o):(e.push({rowFlex:a,data:[o]}),t=a)}for(let i=0;i<e.length;i++){const o=e[i];o.data=bt(o.data)}return e}function bo(r,e){function t(o){var s,l,c,u,h,d,f,p,g;const a=document.createElement("div");for(let v=0;v<o.length;v++){const R=o[v];if(R.type===ae.TABLE){const m=document.createElement("table");m.setAttribute("cellSpacing","0"),m.setAttribute("cellpadding","0"),m.setAttribute("border","0");const x="1px solid #000000";!R.borderType||R.borderType===hn.ALL?(m.style.borderTop=x,m.style.borderLeft=x):R.borderType===hn.EXTERNAL&&(m.style.border=x),m.style.width=`${R.width}px`;const T=document.createElement("colgroup");for(let A=0;A<R.colgroup.length;A++){const D=R.colgroup[A],W=document.createElement("col");W.setAttribute("width",`${D.width}`),T.append(W)}m.append(T);const P=R.trList;for(let A=0;A<P.length;A++){const D=document.createElement("tr"),W=P[A];D.style.height=`${W.height}px`;for(let _=0;_<W.tdList.length;_++){const Q=document.createElement("td");(!R.borderType||R.borderType===hn.ALL)&&(Q.style.borderBottom=Q.style.borderRight="1px solid");const te=W.tdList[_];Q.colSpan=te.colspan,Q.rowSpan=te.rowspan,Q.style.verticalAlign=te.verticalAlign||"top",(s=te.borderTypes)!=null&&s.includes(Mr.TOP)&&(Q.style.borderTop=x),(l=te.borderTypes)!=null&&l.includes(Mr.RIGHT)&&(Q.style.borderRight=x),(c=te.borderTypes)!=null&&c.includes(Mr.BOTTOM)&&(Q.style.borderBottom=x),(u=te.borderTypes)!=null&&u.includes(Mr.LEFT)&&(Q.style.borderLeft=x);const O=bo(te.value,e);Q.innerHTML=O.innerHTML,te.backgroundColor&&(Q.style.backgroundColor=te.backgroundColor),D.append(Q)}m.append(D)}a.append(m)}else if(R.type===ae.HYPERLINK){const m=document.createElement("a");m.innerText=R.valueList.map(x=>x.value).join(""),R.url&&(m.href=R.url),a.append(m)}else if(R.type===ae.TITLE){const m=document.createElement(`h${Ul[R.level]}`),x=t(R.valueList);m.innerHTML=x.innerHTML,a.append(m)}else if(R.type===ae.LIST){const m=document.createElement(Pg[R.listType]);R.listStyle&&(m.style.listStyleType=Eg[R.listStyle]);const x=bt(R.valueList);Zd(x).forEach(P=>{const A=document.createElement("li"),D=t(P);A.innerHTML=D.innerHTML,m.append(A)}),a.append(m)}else if(R.type===ae.IMAGE){const m=document.createElement("img");R.value&&(m.src=R.value,m.width=R.width,m.height=R.height),a.append(m)}else if(R.type===ae.SEPARATOR){const m=document.createElement("hr");a.append(m)}else if(R.type===ae.CHECKBOX){const m=document.createElement("input");m.type="checkbox",(h=R.checkbox)!=null&&h.value&&m.setAttribute("checked","true"),a.append(m)}else if(R.type===ae.RADIO){const m=document.createElement("input");m.type="radio",(d=R.radio)!=null&&d.value&&m.setAttribute("checked","true"),a.append(m)}else if(R.type===ae.TAB){const m=document.createElement("span");m.innerHTML=`${Qu}${Qu}`,a.append(m)}else if(R.type===ae.CONTROL){const m=document.createElement("span"),x=t(((f=R.control)==null?void 0:f.value)||[]);m.innerHTML=x.innerHTML,a.append(m)}else if(!R.type||R.type===ae.LATEX||Gr.includes(R.type)){let m="";if(R.type===ae.DATE?m=((p=R.valueList)==null?void 0:p.map(T=>T.value).join(""))||"":m=R.value,!m)continue;const x=Fg(R,e);((g=o[v-1])==null?void 0:g.type)===ae.TITLE&&(m=m.replace(/^\n/,"")),x.innerText=m.replace(new RegExp(`${Ne}`,"g"),`
|
|
`),a.append(x)}}return a}const n=document.createElement("div"),i=Cg(r);for(let o=0;o<i.length;o++){const a=i[o],s=!a.rowFlex||a.rowFlex===Ge.LEFT,l=document.createElement("div");if(!s){const c=a.data[0];Fa(c)?(l.style.display="flex",l.style.justifyContent=Lg(c.rowFlex)):l.style.textAlign=Yd(a.rowFlex)}l.innerHTML=t(a.data).innerHTML,s?l.childNodes.forEach(c=>{n.append(c.cloneNode(!0))}):n.append(l)}return n}function Ag(r){if(!r||r.nodeType!==3)return null;const e=r.parentNode,t=e.nodeName==="FONT"?e.parentNode:e,n=Mg(t),i=r.textContent,o=window.getComputedStyle(t);if(!i||t.nodeName==="STYLE")return null;const a={value:i,color:o.color,bold:Number(o.fontWeight)>500,italic:o.fontStyle.includes("italic"),size:Math.floor(parseFloat(o.fontSize))};return t.nodeName==="SUB"||o.verticalAlign==="sub"?a.type=ae.SUBSCRIPT:(t.nodeName==="SUP"||o.verticalAlign==="super")&&(a.type=ae.SUPERSCRIPT),n!==Ge.LEFT&&(a.rowFlex=n),o.backgroundColor!=="rgba(0, 0, 0, 0)"&&(a.highlight=o.backgroundColor),o.textDecorationLine.includes("underline")&&(a.underline=!0),o.textDecorationLine.includes("line-through")&&(a.strikeout=!0),a}function Oo(r,e){const t=[];function n(a){if(a.nodeType===3){const s=Ag(a);s&&t.push(s)}else if(a.nodeType===1){const s=a.childNodes;for(let l=0;l<s.length;l++){const c=s[l];if(c.nodeName==="BR")t.push({value:`
|
|
`});else if(c.nodeName==="A"){const u=c,h=u.innerText;h&&t.push({type:ae.HYPERLINK,value:"",valueList:[{value:h}],url:u.href})}else if(/H[1-6]/.test(c.nodeName)){const h=Oo(Dg(c,"div").outerHTML,e);t.push({value:"",type:ae.TITLE,level:Ig[c.nodeName],valueList:h}),c.nextSibling&&!gg.includes(c.nextSibling.nodeName)&&t.push({value:`
|
|
`})}else if(c.nodeName==="UL"||c.nodeName==="OL"){const u=c,h={value:"",type:ae.LIST,valueList:[]};c.nodeName==="OL"?h.listType=dn.OL:(h.listType=dn.UL,h.listStyle=u.style.listStyleType),u.querySelectorAll("li").forEach(d=>{const f=Oo(d.innerHTML,e);f.forEach(p=>{p.value===`
|
|
`&&(p.listWrap=!0)}),f.unshift({value:`
|
|
`}),h.valueList.push(...f)}),t.push(h)}else if(c.nodeName==="HR")t.push({value:`
|
|
`,type:ae.SEPARATOR});else if(c.nodeName==="IMG"){const{src:u,width:h,height:d}=c;u&&h&&d&&t.push({width:h,height:d,value:u,type:ae.IMAGE})}else if(c.nodeName==="TABLE"){const u=c,h={type:ae.TABLE,value:`
|
|
`,colgroup:[],trList:[]};if(u.querySelectorAll("tr").forEach(d=>{const f=window.getComputedStyle(d).height.replace("px",""),p={height:Number(f),tdList:[]};d.querySelectorAll("th,td").forEach(g=>{const v=g,R=Oo(v.innerHTML,e),m={colspan:v.colSpan,rowspan:v.rowSpan,value:R};v.style.backgroundColor&&(m.backgroundColor=v.style.backgroundColor),p.tdList.push(m)}),p.tdList.length&&h.trList.push(p)}),h.trList.length){const d=h.trList[0].tdList.reduce((p,g)=>p+g.colspan,0),f=Math.ceil(e.innerWidth/d);for(let p=0;p<d;p++)h.colgroup.push({width:f});t.push(h)}}else c.nodeName==="INPUT"&&c.type===ye.CHECKBOX?t.push({type:ae.CHECKBOX,value:"",checkbox:{value:c.checked}}):c.nodeName==="INPUT"&&c.type===ye.RADIO?t.push({type:ae.RADIO,value:"",radio:{value:c.checked}}):(n(c),c.nodeType===1&&l!==s.length-1&&window.getComputedStyle(c).display==="block"&&t.push({value:`
|
|
`}))}}}const i=document.createElement("div");i.innerHTML=r,document.body.appendChild(i);const o=[];return i.childNodes.forEach(a=>{var s;a.nodeType!==1&&!((s=a.textContent)!=null&&s.trim())&&o.push(a)}),o.forEach(a=>a.remove()),n(i),i.remove(),t}function Go(r){function e(t){var i,o,a,s,l;let n="";for(let c=0;c<t.length;c++){const u=t[c];if(u.type===ae.TABLE){n+=`
|
|
`;const h=u.trList;for(let d=0;d<h.length;d++){const f=h[d];for(let p=0;p<f.tdList.length;p++){const g=f.tdList[p],v=e(bt(g.value)),R=p===0,m=f.tdList.length-1===p;n+=`${R?"":" "}${v}${m?`
|
|
`:""}`}}}else if(u.type===ae.TAB)n+=" ";else if(u.type===ae.HYPERLINK)n+=u.valueList.map(h=>h.value).join("");else if(u.type===ae.TITLE)n+=`${e(bt(u.valueList))}`;else if(u.type===ae.LIST){const h=bt(u.valueList),d=Zd(h);let f="";u.listType===dn.UL&&(f=Xl[u.listStyle]),d.forEach((p,g)=>{const v=d.size-1===g;n+=`
|
|
${f||`${g+1}.`}${e(p)}${v?`
|
|
`:""}`})}else if(u.type===ae.CHECKBOX)n+=(i=u.checkbox)!=null&&i.value?"\u2611":"\u25A1";else if(u.type===ae.RADIO)n+=(o=u.radio)!=null&&o.value?"\u2609":"\u25CB";else if(!u.type||u.type===ae.LATEX||Gr.includes(u.type)){let h="";u.type===ae.CONTROL?h=((s=(a=u.control.value)==null?void 0:a[0])==null?void 0:s.value)||"":u.type===ae.DATE?h=((l=u.valueList)==null?void 0:l.map(d=>d.value).join(""))||"":h=u.value,n+=h.replace(new RegExp(`${Ne}`,"g"),`
|
|
`)}}return n}return e(bt(r))}function ys(r){return Cl(r,["metrics","style"])}function Fa(r){return!!(r!=null&&r.type)&&(pg.includes(r.type)||r.imgDisplay===ze.INLINE)}function Dg(r,e){const t=document.createElement(e);for(let n=0;n<r.attributes.length;n++){const i=r.attributes[n];t.setAttribute(i.name,i.value)}return t.innerHTML=r.innerHTML,t}function Xg(r){localStorage.setItem(Rc,JSON.stringify({text:r.text,elementList:r.elementList}))}function Qd(){const r=localStorage.getItem(Rc);return r?JSON.parse(r):null}function Kd(){localStorage.removeItem(Rc)}function Ug(r,e,t){if(!r&&!e&&!t.length)return;const n=new Blob([r],{type:"text/plain"}),i=new Blob([e],{type:"text/html"});if(window.ClipboardItem){const o=new ClipboardItem({[n.type]:n,[i.type]:i});window.navigator.clipboard.write([o])}else{const o=document.createElement("div");o.setAttribute("contenteditable","true"),o.innerHTML=e,document.body.append(o);const a=window.getSelection(),s=document.createRange(),l=document.createElement("span");l.innerText=`
|
|
`,o.append(l),s.selectNodeContents(o),a==null||a.removeAllRanges(),a==null||a.addRange(s),document.execCommand("copy"),o.remove()}Xg({text:r,elementList:t})}function Hd(r,e){const t=bo(r,e);document.body.append(t);const n=t.innerText;t.remove();const i=t.innerHTML;!n&&!i&&!r.length||Ug(n,i,bt(r))}function Wg(r){let e=!1;for(let t=0;t<r.items.length;t++)if(r.items[t].kind==="file"){e=!0;break}return e}function vc(r,e){const t=r.getDraw();if(t.isReadonly())return;const i=t.getRange(),{startIndex:o}=i.getRange(),a=t.getElementList();if(~o&&!i.getIsSelectAll()){const s=a[o];if((s==null?void 0:s.titleId)||(s==null?void 0:s.listId)){let l=0;for(;l<e.length;){const c=e[l];if(s.titleId&&/^\n/.test(c.value))break;if(Rg.includes(c.type)){if(e.splice(l,1),c.valueList)for(let u=0;u<c.valueList.length;u++){const h=c.valueList[u];h.value===Ne||h.value===`
|
|
`||(e.splice(l,0,h),l++)}l--}l++}}ar(a,e,o,{isBreakWhenWrap:!0})}t.insertElementList(e)}function Bd(r,e){const t=r.getDraw();if(t.isReadonly())return;const i=Oo(e,{innerWidth:t.getOriginalInnerWidth()});vc(r,i)}function yc(r,e){const t=r.getDraw();if(t.isReadonly())return;const i=t.getRange(),{startIndex:o}=i.getRange(),a=t.getElementList(),s=new FileReader;s.readAsDataURL(e),s.onload=()=>{const l=new Image,c=s.result;l.src=c,l.onload=()=>{const u={value:c,type:ae.IMAGE,width:l.width,height:l.height};~o&&ar(a,[u],o),t.insertElementList([u])}}}function Vg(r,e){const t=r.getDraw();if(t.isReadonly())return;const i=e.clipboardData;if(!i)return;const{paste:o}=t.getOverride();if(o){o(e);return}if(!Wg(i)){const s=i.getData("text"),l=Qd();if(s===(l==null?void 0:l.text)){vc(r,l.elementList);return}}Kd();let a=!1;for(let s=0;s<i.items.length;s++)if(i.items[s].type==="text/html"){a=!0;break}for(let s=0;s<i.items.length;s++){const l=i.items[s];if(l.kind==="string"){if(l.type==="text/plain"&&!a){l.getAsString(c=>{r.input(c)});break}if(l.type==="text/html"&&a){l.getAsString(c=>{Bd(r,c)});break}}else if(l.kind==="file"&&l.type.includes("image")){const c=l.getAsFile();c&&yc(r,c)}}}async function Yg(r,e){const t=r.getDraw();if(t.isReadonly())return;const{paste:i}=t.getOverride();if(i){i();return}const o=await navigator.clipboard.readText(),a=Qd();if(o===(a==null?void 0:a.text)){vc(r,a.elementList);return}if(Kd(),e!=null&&e.isPlainText)o&&r.input(o);else{const s=await navigator.clipboard.read();let l=!1;for(const c of s)if(c.types.includes("text/html")){l=!0;break}for(const c of s)if(c.types.includes("text/plain")&&!l){const h=await(await c.getType("text/plain")).text();h&&r.input(h)}else if(c.types.includes("text/html")&&l){const h=await(await c.getType("text/html")).text();h&&Bd(r,h)}else if(c.types.some(u=>u.startsWith("image/"))){const u=c.types.find(d=>d.startsWith("image/")),h=await c.getType(u);yc(r,h)}}}class kg{constructor(e,t){this.draw=e,this.container=e.getContainer(),this.canvasEvent=t;const n=document.createElement("textarea");n.autocomplete="off",n.classList.add(`${Fe}-inputarea`),n.innerText="",this.container.append(n),this.agentCursorDom=n,n.onkeydown=i=>this._keyDown(i),n.oninput=Nd(this._input.bind(this),0),n.onpaste=i=>this._paste(i),n.addEventListener("compositionstart",this._compositionstart.bind(this)),n.addEventListener("compositionend",this._compositionend.bind(this))}getAgentCursorDom(){return this.agentCursorDom}_keyDown(e){this.canvasEvent.keydown(e)}_input(e){!e.data||this.canvasEvent.input(e.data)}_paste(e){this.draw.isReadonly()||!e.clipboardData||(Vg(this.canvasEvent,e),e.preventDefault())}_compositionstart(){this.canvasEvent.compositionstart()}_compositionend(e){this.canvasEvent.compositionend(e)}}class Zg{constructor(e,t){this.ANIMATION_CLASS=`${Fe}-cursor--animation`,this.draw=e,this.container=e.getContainer(),this.position=e.getPosition(),this.options=e.getOptions(),this.cursorDom=document.createElement("div"),this.cursorDom.classList.add(`${Fe}-cursor`),this.container.append(this.cursorDom),this.cursorAgent=new kg(e,t),this.blinkTimeout=null}getCursorDom(){return this.cursorDom}getAgentDom(){return this.cursorAgent.getAgentCursorDom()}getAgentIsActive(){return this.getAgentDom()===document.activeElement}getAgentDomValue(){return this.getAgentDom().value}clearAgentDomValue(){this.getAgentDom().value=""}_blinkStart(){this.cursorDom.classList.add(this.ANIMATION_CLASS)}_blinkStop(){this.cursorDom.classList.remove(this.ANIMATION_CLASS)}_setBlinkTimeout(){this._clearBlinkTimeout(),this.blinkTimeout=window.setTimeout(()=>{this._blinkStart()},500)}_clearBlinkTimeout(){this.blinkTimeout&&(this._blinkStop(),window.clearTimeout(this.blinkTimeout),this.blinkTimeout=null)}drawCursor(e){let t=this.position.getCursorPosition();if(!t)return;const{scale:n,cursor:i}=this.options,{color:o,width:a,isShow:s=!0,isBlink:l=!0,isFocus:c=!0,hitLineStartIndex:u}={...i,...e},h=this.draw.getHeight(),d=this.draw.getPageGap();u&&(t=this.position.getPositionList()[u]);const{metrics:f,coordinate:{leftTop:p,rightTop:g},ascent:v,pageNo:R}=t,T=(this.draw.getZone().isMainActive()?R:this.draw.getPageNo())*(h+d),P=sg*n,A=Math.min(f.height/4,P),D=f.height+A*2,W=this.cursorAgent.getAgentCursorDom();c&&setTimeout(()=>{W.focus(),W.setSelectionRange(0,0)});const _=f.boundingBoxDescent<0?0:f.boundingBoxDescent,Q=p[1]+v+_-(D-A)+T,te=u?p[0]:g[0];if(W.style.left=`${te}px`,W.style.top=`${Q+D-P}px`,!s){this.recoveryCursor();return}const O=this.draw.isReadonly();this.cursorDom.style.width=`${a*n}px`,this.cursorDom.style.backgroundColor=o,this.cursorDom.style.left=`${te}px`,this.cursorDom.style.top=`${Q}px`,this.cursorDom.style.display=O?"none":"block",this.cursorDom.style.height=`${D}px`,l?this._setBlinkTimeout():this._clearBlinkTimeout()}recoveryCursor(){this.cursorDom.style.display="none",this._clearBlinkTimeout()}moveCursorToVisible(e){const{cursorPosition:t,direction:n}=e;if(!t||!n)return;const{pageNo:i,coordinate:{leftTop:o,leftBottom:a}}=t,s=i*(this.draw.getHeight()+this.draw.getPageGap())+this.container.getBoundingClientRect().top,l=n===ir.UP,c=a[0],u=l?o[1]+s:a[1]+s,h=ig(this.container),d={left:0,right:0,top:0,bottom:0};if(h===document.documentElement)d.right=window.innerWidth,d.bottom=window.innerHeight;else{const{left:p,right:g,top:v,bottom:R}=h.getBoundingClientRect();d.left=p,d.right=g,d.top=v,d.bottom=R}const{maskMargin:f}=this.options;if(d.top+=f[0],d.bottom-=f[2],!(c>=d.left&&c<=d.right&&u>=d.top&&u<=d.bottom)){const{scrollLeft:p,scrollTop:g}=h;l?h.scroll(p,g-(d.top-u)):h.scroll(p,g+u-d.bottom)}}}var Gd=(r=>(r[r.LEFT=0]="LEFT",r[r.CENTER=1]="CENTER",r[r.RIGHT=2]="RIGHT",r))(Gd||{});const Gn=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),Qg=typeof navigator!="undefined"&&/iPad|iPhone/.test(navigator.userAgent);function nn(r){return Gn?r.metaKey:r.ctrlKey}var Ce=(r=>(r.Delete="Delete",r.Backspace="Backspace",r.Enter="Enter",r.Left="ArrowLeft",r.Right="ArrowRight",r.Up="ArrowUp",r.Down="ArrowDown",r.ESC="Escape",r.TAB="Tab",r.META="Meta",r.LEFT_BRACKET="[",r.RIGHT_BRACKET="]",r.COMMA=",",r.PERIOD=".",r.LEFT_ANGLE_BRACKET="<",r.RIGHT_ANGLE_BRACKET=">",r.EQUAL="=",r.MINUS="-",r.PLUS="+",r.A="a",r.B="b",r.C="c",r.D="d",r.E="e",r.F="f",r.G="g",r.H="h",r.I="i",r.J="j",r.K="k",r.L="l",r.M="m",r.N="n",r.O="o",r.P="p",r.Q="q",r.R="r",r.S="s",r.T="t",r.U="u",r.V="v",r.W="w",r.X="x",r.Y="y",r.Z="z",r.A_UPPERCASE="A",r.B_UPPERCASE="B",r.C_UPPERCASE="C",r.D_UPPERCASE="D",r.E_UPPERCASE="E",r.F_UPPERCASE="F",r.G_UPPERCASE="G",r.H_UPPERCASE="H",r.I_UPPERCASE="I",r.J_UPPERCASE="J",r.K_UPPERCASE="K",r.L_UPPERCASE="L",r.M_UPPERCASE="M",r.N_UPPERCASE="N",r.O_UPPERCASE="O",r.P_UPPERCASE="P",r.Q_UPPERCASE="Q",r.R_UPPERCASE="R",r.S_UPPERCASE="S",r.T_UPPERCASE="T",r.U_UPPERCASE="U",r.V_UPPERCASE="V",r.W_UPPERCASE="W",r.X_UPPERCASE="X",r.Y_UPPERCASE="Y",r.Z_UPPERCASE="Z",r.ZERO="0",r.ONE="1",r.TWO="2",r.THREE="3",r.FOUR="4",r.FIVE="5",r.SIX="6",r.SEVEN="7",r.EIGHT="8",r.NINE="9",r))(Ce||{});class Ca{constructor(e,t){this.element=e,this.control=t}setElement(e){this.element=e}getElement(){return this.element}getCode(){var e;return((e=this.element.control)==null?void 0:e.code)||null}getValue(){const e=this.control.getElementList(),{startIndex:t}=this.control.getRange(),n=e[t],i=[];let o=t;for(;o>0;){const s=e[o];if(s.controlId!==n.controlId||s.controlComponent===ye.PREFIX)break;s.controlComponent===ye.VALUE&&i.unshift(s),o--}let a=t+1;for(;a<e.length;){const s=e[a];if(s.controlId!==n.controlId||s.controlComponent===ye.POSTFIX)break;s.controlComponent===ye.VALUE&&i.push(s),a++}return i}setValue(){return-1}setSelect(e,t={},n={}){if(!n.isIgnoreDisabledRule&&this.control.getIsDisabledControl())return;const{control:i}=this.element,o=t.elementList||this.control.getElementList(),{startIndex:a}=t.range||this.control.getRange(),s=o[a];let l=a;for(;l>0;){const u=o[l];if(u.controlId!==s.controlId||u.controlComponent===ye.PREFIX)break;if(u.controlComponent===ye.CHECKBOX){const h=u.checkbox;h.value=e.includes(h.code)}l--}let c=a+1;for(;c<o.length;){const u=o[c];if(u.controlId!==s.controlId||u.controlComponent===ye.POSTFIX)break;if(u.controlComponent===ye.CHECKBOX){const h=u.checkbox;h.value=e.includes(h.code)}c++}i.code=e.join(","),this.control.repaintControl()}keydown(e){if(this.control.getIsDisabledControl())return null;const t=this.control.getRange();this.control.shrinkBoundary();const{startIndex:n,endIndex:i}=t;return e.key===Ce.Backspace||e.key===Ce.Delete?this.control.removeControl(n):i}cut(){return-1}}class Wl extends Ca{setSelect(e,t={},n={}){if(!n.isIgnoreDisabledRule&&this.control.getIsDisabledControl())return;const{control:i}=this.element,o=t.elementList||this.control.getElementList(),{startIndex:a}=t.range||this.control.getRange(),s=o[a];let l=a;for(;l>0;){const u=o[l];if(u.controlId!==s.controlId||u.controlComponent===ye.PREFIX)break;if(u.controlComponent===ye.RADIO){const h=u.radio;h.value=e.includes(h.code)}l--}let c=a+1;for(;c<o.length;){const u=o[c];if(u.controlId!==s.controlId||u.controlComponent===ye.POSTFIX)break;if(u.controlComponent===ye.RADIO){const h=u.radio;h.value=e.includes(h.code)}c++}i.code=e.join(","),this.control.repaintControl()}}function Ju(r){const e=r.getDraw(),t=e.getPosition(),n=e.getRange();r.isAllowDrag=!0,r.cacheRange=gt(n.getRange()),r.cacheElementList=e.getElementList(),r.cachePositionList=t.getPositionList(),r.cachePositionContext=t.getPositionContext()}function Kg(r,e){var O;if(r.button===Gd.RIGHT)return;const t=e.getDraw(),n=t.isReadonly(),i=t.getRange(),o=t.getPosition();if(!e.isAllowDrag){const I=i.getRange();if(!n&&I.startIndex!==I.endIndex&&i.getIsPointInRange(r.offsetX,r.offsetY)){Ju(e);return}}const s=r.target.dataset.index;s&&t.setPageNo(Number(s)),e.isAllowSelection=!0;const l=o.adjustPositionContext({x:r.offsetX,y:r.offsetY});if(!l)return;const{index:c,isDirectHit:u,isCheckbox:h,isRadio:d,isImage:f,isTable:p,tdValueIndex:g,hitLineStartIndex:v}=l;e.mouseDownStartPosition={...l,index:p?g:c,x:r.offsetX,y:r.offsetY};const R=t.getElementList(),m=o.getPositionList(),x=p?g:c,T=R[x],P=!!(u&&f),A=!!(u&&h),D=!!(u&&d);if(~c){i.setRange(x,x),o.setCursorPosition(m[x]);const I=A&&!n,y=D&&!n;if(I){const{checkbox:L,control:k}=T;if(!k)t.getCheckboxParticle().setSelect(T);else{const F=((O=k==null?void 0:k.code)==null?void 0:O.split(","))||[];if(L!=null&&L.value){const V=F.findIndex(ie=>ie===L.code);F.splice(V,1)}else L!=null&&L.code&&F.push(L.code);const Y=t.getControl().getActiveControl();Y instanceof Ca&&Y.setSelect(F)}}else if(y){const{control:L,radio:k}=T;if(!L)t.getRadioParticle().setSelect(T);else{const F=k!=null&&k.code?[k.code]:[],Y=t.getControl().getActiveControl();Y instanceof Wl&&Y.setSelect(F)}}else t.render({curIndex:x,isCompute:!1,isSubmitHistory:!1,isSetCursor:!P&&!A&&!D});v&&e.getDraw().getCursor().drawCursor({hitLineStartIndex:v})}const W=t.getPreviewer();W.clearResizer(),P&&(W.drawResizer(T,m[x],T.type===ae.LATEX?{mime:"svg",srcKey:"laTexSVG"}:{}),t.getCursor().drawCursor({isShow:!1}),Ju(e),(T.imgDisplay===ze.FLOAT_TOP||T.imgDisplay===ze.FLOAT_BOTTOM)&&t.getImageParticle().createFloatImage(T));const _=t.getTableTool();_.dispose(),p&&!n&&_.render();const Q=t.getHyperlinkParticle();Q.clearHyperlinkPopup(),T.type===ae.HYPERLINK&&(nn(r)?Q.openHyperlink(T):Q.drawHyperlinkPopup(T,m[x]));const te=t.getDateParticle();te.clearDatePicker(),T.type===ae.DATE&&!n&&te.renderDatePicker(T,m[x])}function Jo(r){const e=it();return Reflect.set(r,"dragId",e),e}function zo(r,e){return e.findIndex(t=>t.dragId===r)}function zu(r,e,t){const n=t.getDraw();if(r.imgDisplay===ze.FLOAT_TOP||r.imgDisplay===ze.FLOAT_BOTTOM){const i=e.offsetX-t.mouseDownStartPosition.x,o=e.offsetY-t.mouseDownStartPosition.y,a=r.imgFloatPosition;r.imgFloatPosition={x:a.x+i,y:a.y+o}}n.getImageParticle().destroyFloatImage()}function Hg(r,e){var t,n,i,o;if(e.isAllowDrop){const a=e.getDraw();if(a.isReadonly())return;const s=a.getPosition(),l=s.getPositionList(),c=s.getPositionContext(),u=a.getRange(),h=e.cacheRange,d=e.cacheElementList,f=e.cachePositionList,p=u.getRange(),g=h.startIndex===h.endIndex,v=g?h.startIndex-1:h.startIndex,R=h.endIndex;if(p.startIndex>=v&&p.endIndex<=R&&((t=e.cachePositionContext)==null?void 0:t.tdId)===c.tdId){a.clearSideEffect();let C=!1;if(g){const G=d[R];if(G.type===ae.IMAGE||G.type===ae.LATEX)if(zu(G,r,e),G.imgDisplay===ze.FLOAT_TOP||G.imgDisplay===ze.FLOAT_BOTTOM)a.getPreviewer().drawResizer(G),C=!0;else{const z=f[R];a.getPreviewer().drawResizer(G,z)}}u.replaceRange({...h}),a.render({isSetCursor:!1,isCompute:!1,isSubmitHistory:C});return}const m=d.slice(v+1,R+1),x=m.find(C=>C.controlId);if(x){const C=d[v+1],G=d[R];if(!((!C.controlId||C.controlComponent===ye.PREFIX)&&(!G.controlId||G.controlComponent===ye.POSTFIX)||C.controlId===G.controlId&&C.controlComponent===ye.PREFIX&&G.controlComponent===ye.POSTFIX||((n=C.control)==null?void 0:n.type)===nt.TEXT&&C.controlComponent===ye.VALUE&&((i=G.control)==null?void 0:i.type)===nt.TEXT&&G.controlComponent===ye.VALUE)){a.render({curIndex:p.startIndex,isCompute:!1,isSubmitHistory:!1});return}}const T=a.getControl(),P=a.getElementList(),A=!x||!!P[p.startIndex].controlId||!T.getIsElementListContainFullControl(m),D=a.getOptions(),W=m.map(C=>{if(!C.type||C.type===ae.TEXT){const G={value:C.value},z=ri;return A||z.push(...Bu),z.forEach(H=>{const j=C[H];j!==void 0&&(G[H]=j)}),G}else{let G=gt(C);return A&&(G=Eo(G,Bu)),Nr([G],{isHandleFirstElement:!1,editorOptions:D}),G}});ar(P,W,p.startIndex);const _=d[v],Q=f[v],te=Jo(d[v]),O=Jo(d[R]),I=W.length;let y=p.startIndex,L=y+I;const k=T.getActiveControl();if(k&&d[y].controlComponent!==ye.POSTFIX?(L=k.setValue(W),y=L-I):a.spliceElementList(P,y+1,0,...W),!~L){a.render({isSetCursor:!1});return}const F=Jo(P[y]),Y=Jo(P[L]),V=zo(te,d),ie=zo(O,d),U=d[ie];U.controlId&&U.controlComponent!==ye.POSTFIX?(u.replaceRange({...h,startIndex:V,endIndex:ie}),(o=T.getActiveControl())==null||o.cut()):a.spliceElementList(d,V+1,ie-V);const N=P[p.startIndex],J=l[p.startIndex];let B=c.index;B&&(N.tableId&&!_.tableId?Q.index<B&&(B-=I):!N.tableId&&_.tableId&&J.index<B&&(B+=I),s.setPositionContext({...c,index:B}));const re=zo(F,P),ee=zo(Y,P);u.setRange(g?ee:re,ee,p.tableId,p.startTdIndex,p.endTdIndex,p.startTrIndex,p.endTrIndex),a.clearSideEffect();let X=null;if(g){const G=a.getElementList()[ee];(G.type===ae.IMAGE||G.type===ae.LATEX)&&(zu(G,r,e),X=G)}if(a.render({isSetCursor:!1}),X)if(X.imgDisplay===ze.FLOAT_TOP||X.imgDisplay===ze.FLOAT_BOTTOM)a.getPreviewer().drawResizer(X);else{const G=s.getPositionList()[ee];a.getPreviewer().drawResizer(X,G)}}else e.isAllowDrag&&e.mousedown(r)}function Bg(r,e){const n=e.getDraw().getPageContainer(),{x:i,y:o,width:a,height:s}=n.getBoundingClientRect();r.x>=i&&r.x<=i+a&&r.y>=o&&r.y<=o+s||e.setIsAllowSelection(!1)}function Gg(r,e){var T;const t=e.getDraw();if(e.isAllowDrag){const P=r.offsetX,A=r.offsetY,{startIndex:D,endIndex:W}=e.cacheRange,_=e.cachePositionList;for(let te=D+1;te<=W;te++){const{coordinate:{leftTop:O,rightBottom:I}}=_[te];if(P>=O[0]&&P<=I[0]&&A>=O[1]&&A<=I[1])return}const Q=(T=e.cacheRange)==null?void 0:T.startIndex;if(Q){const te=e.cacheElementList[Q];(te==null?void 0:te.type)===ae.IMAGE&&(te.imgDisplay===ze.FLOAT_TOP||te.imgDisplay===ze.FLOAT_BOTTOM)&&(t.getPreviewer().clearResizer(),t.getImageParticle().dragFloatImage(r.movementX,r.movementY))}e.dragover(r),e.isAllowDrop=!0;return}if(!e.isAllowSelection||!e.mouseDownStartPosition)return;const i=r.target.dataset.index;i&&t.setPageNo(Number(i));const a=t.getPosition().getPositionByXY({x:r.offsetX,y:r.offsetY});if(!~a.index)return;const{index:s,isTable:l,tdValueIndex:c,tdIndex:u,trIndex:h,tableId:d}=a,{index:f,isTable:p,tdIndex:g,trIndex:v,tableId:R}=e.mouseDownStartPosition,m=l?c:s,x=t.getRange();if(l&&p&&(u!==g||h!==v))x.setRange(m,m,d,g,u,v,h);else{let P=~m?m:0;if((p||l)&&R!==d)return;let A=f;if(A>P&&([A,P]=[P,A]),A===P)return;const D=t.getElementList(),W=D[A+1],_=D[P];if((W==null?void 0:W.controlComponent)===ye.PLACEHOLDER&&(_==null?void 0:_.controlComponent)===ye.PLACEHOLDER&&W.controlId===_.controlId)return;x.setRange(A,P)}t.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1})}var pn=(r=>(r.COMPONENT="component",r.MENU="menu",r.MAIN="main",r.FOOTER="footer",r.CONTEXTMENU="contextmenu",r.POPUP="popup",r.CATALOG="catalog",r.COMMENT="comment",r))(pn||{}),Mn=(r=>(r.PAGE="page",r.TABLE="table",r))(Mn||{}),Mt=(r=>(r.EDIT="edit",r.CLEAN="clean",r.READONLY="readonly",r.FORM="form",r.PRINT="print",r))(Mt||{}),Ke=(r=>(r.HEADER="header",r.MAIN="main",r.FOOTER="footer",r))(Ke||{}),Ln=(r=>(r.PAGING="paging",r.CONTINUITY="continuity",r))(Ln||{}),jn=(r=>(r.VERTICAL="vertical",r.HORIZONTAL="horizontal",r))(jn||{}),wc=(r=>(r.BREAK_ALL="break-all",r.BREAK_WORD="break-word",r))(wc||{});function Jg(r,e){const t=e.getDraw();if(t.isReadonly())return;const n=t.getRange();if(!n.getIsCanInput())return;const i=t.getControl();let o;if(i.getActiveControl()&&i.getIsRangeCanCaptureEvent())o=i.keydown(r);else{const a=t.getPosition(),s=a.getCursorPosition();if(!s)return;const{index:l}=s,{startIndex:c,endIndex:u}=n.getRange(),h=n.getIsCollapsed(),d=t.getElementList();if(h&&l===0){const p=d[l];if(p.value===Ne){p.listId&&t.getListParticle().unsetList(),r.preventDefault();return}}const f=d[c];if(h&&f.rowFlex&&f.value===Ne){const p=t.getRowList(),v=a.getPositionList()[c].rowNo;p[v].elementList.forEach(m=>{delete m.rowFlex})}h?t.spliceElementList(d,l,1):t.spliceElementList(d,c+1,u-c),o=h?l-1:c}o!==null&&(t.getGlobalEvent().setCanvasEventAbility(),n.setRange(o,o),t.render({curIndex:o}))}function zg(r,e){var c;const t=e.getDraw();if(t.isReadonly())return;const n=t.getRange();if(!n.getIsCanInput())return;const{startIndex:i,endIndex:o}=n.getRange(),a=t.getElementList(),s=t.getControl();let l;if(s.getActiveControl()&&s.getIsRangeWithinControl())l=s.keydown(r);else if((c=a[o+1])!=null&&c.controlId)l=s.removeControl(o+1);else{const u=t.getPosition(),h=u.getCursorPosition();if(!h)return;const{index:d}=h,f=u.getPositionContext();if(f.isDirectHit&&f.isImage)t.spliceElementList(a,d,1),l=d-1;else{const p=n.getIsCollapsed();if(!p)t.spliceElementList(a,i+1,o-i);else{if(!a[d+1])return;t.spliceElementList(a,d+1,1)}l=p?d:i}}l!==null&&(t.getGlobalEvent().setCanvasEventAbility(),n.setRange(l,l),t.render({curIndex:l}))}function $g(r,e){var p,g;const t=e.getDraw();if(t.isReadonly())return;const n=t.getRange();if(!n.getIsCanInput())return;const{startIndex:i,endIndex:o}=n.getRange(),a=n.getIsCollapsed(),s=t.getElementList(),l=s[i],c=s[o];if(a&&c.listId&&c.value===Ne&&((p=s[o+1])==null?void 0:p.listId)!==c.listId){t.getListParticle().unsetList();return}const u={value:Ne};if(r.shiftKey&&l.listId&&(u.listWrap=!0),!(c.titleId&&c.titleId!==((g=s[o+1])==null?void 0:g.titleId))){ar(s,[u],i);const v=Lo(s,o);if(v){const R=[...Mo];v.controlComponent!==ye.POSTFIX&&R.push(...ri),R.forEach(m=>{const x=v[m];x!==void 0&&(u[m]=x)})}}const h=t.getControl(),d=h.getActiveControl();let f;if(d&&h.getIsRangeWithinControl())f=h.setValue([u]);else{const R=t.getPosition().getCursorPosition();if(!R)return;const{index:m}=R;a?t.spliceElementList(s,m+1,0,u):t.spliceElementList(s,i+1,o-i,u),f=m+1}~f&&(n.setRange(f,f),t.render({curIndex:f})),r.preventDefault()}function jg(r,e){var x,T;const t=e.getDraw();if(t.isReadonly())return;const i=t.getPosition(),o=i.getCursorPosition();if(!o)return;const a=i.getPositionContext(),{index:s}=o;if(s<=0&&!a.isTable)return;const l=t.getRange(),{startIndex:c,endIndex:u}=l.getRange(),h=l.getIsCollapsed(),d=t.getElementList(),f=t.getControl();if(t.getMode()===Mt.FORM&&f.getActiveControl()&&((x=d[s])==null?void 0:x.controlComponent)===ye.PREFIX){f.initNextControl({direction:ir.UP});return}let p=1;if(nn(r)){const P=t.getLetterReg(),A=r.shiftKey&&!h&&c===(o==null?void 0:o.index)?u:c;if(P.test((T=d[A])==null?void 0:T.value)){let D=A-1;for(;D>0;){const W=d[D];if(!P.test(W.value))break;p++,D--}}}const g=c-p;let v=g,R=g;if(r.shiftKey&&o&&(c!==u?c===o.index?(v=c,R=u-p):(v=g,R=u):R=u),!r.shiftKey){const P=d[c];if(P.type===ae.TABLE){const A=P.trList,D=A.length-1,W=A[D],_=W.tdList.length-1,Q=W.tdList[_];i.setPositionContext({isTable:!0,index:c,trIndex:D,tdIndex:_,tdId:Q.id,trId:W.id,tableId:P.id}),v=Q.value.length-1,R=v,t.getTableTool().render()}else if(P.tableId&&c===0){const D=t.getOriginalElementList()[a.index].trList;e:for(let W=0;W<D.length;W++){const _=D[W];if(_.id!==P.trId)continue;const Q=_.tdList;for(let te=0;te<Q.length;te++)if(Q[te].id===P.tdId){if(W===0&&te===0)i.setPositionContext({isTable:!1}),v=a.index-1,R=v,t.getTableTool().dispose();else{let I=W,y=te-1;y<0&&(I=W-1,y=D[I].tdList.length-1);const L=D[I],k=L.tdList[y];i.setPositionContext({isTable:!0,index:a.index,trIndex:I,tdIndex:y,tdId:k.id,trId:L.id,tableId:P.id}),v=k.value.length-1,R=v,t.getTableTool().render()}break e}}}}if(!~v||!~R)return;l.setRange(v,R);const m=v===R;t.render({curIndex:m?v:void 0,isSetCursor:m,isSubmitHistory:!1,isCompute:!1}),r.preventDefault()}function qg(r,e){var P,A;const t=e.getDraw();if(t.isReadonly())return;const i=t.getPosition(),o=i.getCursorPosition();if(!o)return;const{index:a}=o,s=i.getPositionList(),l=i.getPositionContext();if(a>s.length-1&&!l.isTable)return;const c=t.getRange(),{startIndex:u,endIndex:h}=c.getRange(),d=c.getIsCollapsed();let f=t.getElementList();const p=t.getControl();if(t.getMode()===Mt.FORM&&p.getActiveControl()&&((P=f[a+1])==null?void 0:P.controlComponent)===ye.POSTFIX){p.initNextControl({direction:ir.DOWN});return}let g=1;if(nn(r)){const D=t.getLetterReg(),W=r.shiftKey&&!d&&u===(o==null?void 0:o.index)?h:u;if(D.test((A=f[W+1])==null?void 0:A.value)){let _=W+2;for(;_<f.length;){const Q=f[_];if(!D.test(Q.value))break;g++,_++}}}const v=h+g;let R=v,m=v;if(r.shiftKey&&o&&(u!==h?u===o.index?(R=u,m=v):(R=u+g,m=h):R=u),!r.shiftKey){const D=f[h],W=f[h+1];if((W==null?void 0:W.type)===ae.TABLE){const Q=W.trList[0],te=Q.tdList[0];i.setPositionContext({isTable:!0,index:h+1,trIndex:0,tdIndex:0,tdId:te.id,trId:Q.id,tableId:W.id}),R=0,m=0,t.getTableTool().render()}else if(D.tableId&&!W){const Q=t.getOriginalElementList()[l.index].trList;e:for(let te=0;te<Q.length;te++){const O=Q[te];if(O.id!==D.trId)continue;const I=O.tdList;for(let y=0;y<I.length;y++)if(I[y].id===D.tdId){if(te===Q.length-1&&y===I.length-1)i.setPositionContext({isTable:!1}),R=l.index,m=R,f=t.getElementList(),t.getTableTool().dispose();else{let k=te,F=y+1;F>I.length-1&&(k=te+1,F=0);const Y=Q[k],V=Y.tdList[F];i.setPositionContext({isTable:!0,index:l.index,trIndex:k,tdIndex:F,tdId:V.id,trId:Y.id,tableId:D.id}),R=0,m=R,t.getTableTool().render()}break e}}}}const x=f.length-1;if(R>x||m>x)return;c.setRange(R,m);const T=R===m;t.render({curIndex:T?R:void 0,isSetCursor:T,isSubmitHistory:!1,isCompute:!1}),r.preventDefault()}function eR(r,e){const t=e.getDraw();if(t.isReadonly())return;r.preventDefault();const i=t.getControl();if(i.getActiveControl()&&i.getIsRangeWithinControl())i.initNextControl({direction:r.shiftKey?ir.UP:ir.DOWN});else{const a={type:ae.TAB,value:""},s=t.getRange(),{startIndex:l}=s.getRange(),c=t.getElementList();ar(c,[a],l),t.insertElementList([a])}}function ws(r){const{positionList:e,index:t,isUp:n,rowNo:i,cursorX:o}=r;let a=-1;const s=[];if(n){let l=t-1;for(;l>=0;){const c=e[l];if(l--,c.rowNo!==i){if(s[0]&&s[0].rowNo!==c.rowNo)break;s.unshift(c)}}}else{let l=t+1;for(;l<e.length;){const c=e[l];if(l++,c.rowNo!==i){if(s[0]&&s[0].rowNo!==c.rowNo)break;s.push(c)}}}for(let l=0;l<s.length;l++){const c=s[l],{coordinate:{leftTop:[u],rightTop:[h]}}=c;if(l===s.length-1&&(a=c.index),!(o<u||o>h)){a=c.index;break}}return a}function tR(r,e){const t=e.getDraw();if(t.isReadonly())return;const i=t.getPosition(),o=i.getCursorPosition();if(!o)return;const a=t.getRange(),{startIndex:s,endIndex:l}=a.getRange();let c=i.getPositionList();const u=r.key===Ce.Up;let h=-1,d=-1;const f=i.getPositionContext();if(!r.shiftKey&&f.isTable&&(u&&o.rowIndex===0||!u&&o.rowIndex===t.getRowCount()-1)){const{index:g,trIndex:v,tdIndex:R,tableId:m}=f;if(u)if(v===0)i.setPositionContext({isTable:!1}),h=g-1,d=h,t.getTableTool().dispose();else{let x=-1,T=-1;const A=t.getOriginalElementList()[g].trList,D=A[v].tdList[R].colIndex;e:for(let Q=v-1;Q>=0;Q--){const O=A[Q].tdList;for(let I=0;I<O.length;I++){const y=O[I];if(y.colIndex===D||y.colIndex+y.colspan-1>=D&&y.colIndex<=D){x=Q,T=I;break e}}}if(!~x||!~T)return;const W=A[x],_=W.tdList[T];i.setPositionContext({isTable:!0,index:g,trIndex:x,tdIndex:T,tdId:W.id,trId:_.id,tableId:m}),h=_.value.length-1,d=h,t.getTableTool().render()}else{const T=t.getOriginalElementList()[g].trList;if(v===T.length-1)i.setPositionContext({isTable:!1}),h=g,d=h,t.getTableTool().dispose();else{let P=-1,A=-1;const D=T[v].tdList[R].colIndex;e:for(let Q=v+1;Q<T.length;Q++){const O=T[Q].tdList;for(let I=0;I<O.length;I++){const y=O[I];if(y.colIndex===D||y.colIndex+y.colspan-1>=D&&y.colIndex<=D){P=Q,A=I;break e}}}if(!~P||!~A)return;const W=T[P],_=W.tdList[A];i.setPositionContext({isTable:!0,index:g,trIndex:P,tdIndex:A,tdId:W.id,trId:_.id,tableId:m}),h=_.value.length-1,d=h,t.getTableTool().render()}}}else{let g=o;r.shiftKey&&(s===o.index?g=c[l]:g=c[s]);const{index:v,rowNo:R,rowIndex:m,coordinate:{rightTop:[x]}}=g;if(u&&m===0||!u&&m===t.getRowCount()-1)return;const T=ws({positionList:c,index:v,rowNo:R,isUp:u,cursorX:x});if(T<0)return;h=T,d=T,r.shiftKey&&(s!==l?s===o.index?h=s:d=l:u?d=l:h=s);const A=t.getElementList()[T];if(A.type===ae.TABLE){const{scale:D}=t.getOptions(),W=t.getMargins(),_=A.trList;let Q=-1,te=-1,O=-1;if(u){e:for(let I=_.length-1;I>=0;I--){const L=_[I].tdList;for(let k=0;k<L.length;k++){const F=L[k],Y=F.x*D+W[3],V=F.width*D;if(x>=Y&&x<=Y+V){const ie=F.positionList,U=ie[ie.length-1],N=ws({positionList:ie,index:U.index+1,rowNo:U.rowNo-1,isUp:u,cursorX:x})||U.index;Q=I,te=k,O=N;break e}}}}else{e:for(let I=0;I<_.length;I++){const L=_[I].tdList;for(let k=0;k<L.length;k++){const F=L[k],Y=F.x*D+W[3],V=F.width*D;if(x>=Y&&x<=Y+V){const ie=F.positionList,U=ws({positionList:ie,index:-1,rowNo:-1,isUp:u,cursorX:x})||0;Q=I,te=k,O=U;break e}}}}if(~Q&&~te&&~O){const I=_[Q],y=I.tdList[te];i.setPositionContext({isTable:!0,index:T,trIndex:Q,tdIndex:te,tdId:y.id,trId:I.id,tableId:A.id}),h=O,d=h,c=i.getPositionList(),t.getTableTool().render()}}}if(!~h||!~d)return;h>d&&([h,d]=[d,h]),a.setRange(h,d);const p=h===d;t.render({curIndex:p?h:void 0,isSetCursor:p,isSubmitHistory:!1,isCompute:!1}),t.getCursor().moveCursorToVisible({cursorPosition:c[u?h:d],direction:u?ir.UP:ir.DOWN})}function rR(r,e){if(e.isComposing)return;const t=e.getDraw();if(r.key===Ce.Backspace)Jg(r,e);else if(r.key===Ce.Delete)zg(r,e);else if(r.key===Ce.Enter)$g(r,e);else if(r.key===Ce.Left)jg(r,e);else if(r.key===Ce.Right)qg(r,e);else if(r.key===Ce.Up||r.key===Ce.Down)tR(r,e);else if(nn(r)&&r.key===Ce.Z){if(t.isReadonly()&&t.getMode()!==Mt.FORM)return;t.getHistoryManager().undo(),r.preventDefault()}else if(nn(r)&&r.key===Ce.Y){if(t.isReadonly()&&t.getMode()!==Mt.FORM)return;t.getHistoryManager().redo(),r.preventDefault()}else if(nn(r)&&r.key===Ce.C)e.copy(),r.preventDefault();else if(nn(r)&&r.key===Ce.X)e.cut(),r.preventDefault();else if(nn(r)&&r.key===Ce.A)e.selectAll(),r.preventDefault();else if(nn(r)&&r.key===Ce.S){if(t.isReadonly())return;const n=t.getListener();n.saved&&n.saved(t.getValue());const i=t.getEventBus();i.isSubscribe("saved")&&i.emit("saved",t.getValue()),r.preventDefault()}else if(r.key===Ce.ESC){e.clearPainterStyle();const n=t.getZone();n.isMainActive()||n.setZone(Ke.MAIN),r.preventDefault()}else r.key===Ce.TAB&&eR(r,e)}function Jd(r,e){var T;const t=e.getDraw();if(t.isReadonly())return;const i=t.getPosition().getCursorPosition();if(!r||!i)return;const o=e.isComposing;if(o&&((T=e.compositionInfo)==null?void 0:T.value)===r)return;const a=t.getRange();if(!a.getIsCanInput())return;zd(e),o||t.getCursor().clearAgentDomValue();const{TEXT:s,HYPERLINK:l,SUBSCRIPT:c,SUPERSCRIPT:u,DATE:h}=ae,d=r.replaceAll(`
|
|
`,Ne),{startIndex:f,endIndex:p}=a.getRange(),g=t.getElementList(),v=Lo(g,p);if(!v)return;const R=Wr(d).map(P=>{const A={value:P},D=g[p+1];return(!v.type||v.type===s||v.type===l&&(D==null?void 0:D.type)===l||v.type===h&&(D==null?void 0:D.type)===h||v.type===c&&(D==null?void 0:D.type)===c||v.type===u&&(D==null?void 0:D.type)===u)&&cg.forEach(W=>{if(W==="groupIds"&&!(D!=null&&D.groupIds))return;const _=v[W];_!==void 0&&(A[W]=_)}),o&&(A.underline=!0),A}),m=t.getControl();let x;if(m.getActiveControl()&&m.getIsRangeWithinControl())x=m.setValue(R);else{const P=f+1;f!==p&&t.spliceElementList(g,P,p-f),ar(g,R,f),t.spliceElementList(g,P,0,...R),x=f+R.length}~x&&(a.setRange(x,x),t.render({curIndex:x,isSubmitHistory:!o})),o&&(e.compositionInfo={elementList:g,value:d,startIndex:x-R.length,endIndex:x})}function zd(r){if(!r.compositionInfo)return;const{elementList:e,startIndex:t,endIndex:n}=r.compositionInfo;e.splice(t+1,n-t),r.getDraw().getRange().setRange(t,t),r.compositionInfo=null}function nR(r){const e=r.getDraw(),t=e.getRange(),{startIndex:n,endIndex:i}=t.getRange();if(!~n&&!~n||e.isReadonly()||!t.getIsCanInput())return;const o=e.getElementList();let a=n,s=i;if(n===i){const d=e.getPosition().getPositionList(),f=d[n],p=f.rowNo,g=f.pageNo,v=[];for(let m=0;m<d.length;m++){const x=d[m];if(x.pageNo>g)break;x.pageNo===g&&x.rowNo===p&&v.push(m)}const R=v[0]-1;a=R<0?0:R,s=v[v.length-1]}const l=e.getOptions();Hd(o.slice(a+1,s+1),l);const c=e.getControl();let u;c.getActiveControl()&&c.getIsRangeWithinControl()?u=c.cut():(e.spliceElementList(o,a+1,s-a),u=a),t.setRange(u,u),e.render({curIndex:u})}function iR(r){const e=r.getDraw(),{copy:t}=e.getOverride();if(t){t();return}const n=e.getRange(),i=n.getIsCollapsed()?n.getRangeRowElementList():n.getSelectionElementList();!(i!=null&&i.length)||Hd(i,e.getOptions())}function oR(r,e){var o,a;const t=e.getDraw(),{drop:n}=t.getOverride();if(n){n(r);return}r.preventDefault();const i=(o=r.dataTransfer)==null?void 0:o.getData("text");if(i)e.input(i);else{const s=(a=r.dataTransfer)==null?void 0:a.files;if(!s)return;for(let l=0;l<s.length;l++){const c=s[l];c.type.startsWith("image")&&yc(e,c)}}}function aR(r){var d;if(!Intl.Segmenter)return null;const e=r.getDraw(),t=e.getPosition().getCursorPosition();if(!t)return null;const i=e.getRange().getRangeParagraphInfo();if(!i)return null;const o=((d=i==null?void 0:i.elementList)==null?void 0:d.map(f=>!f.type||f.type!==ae.CONTROL&&Gr.includes(f.type)?f.value:Ne).join(""))||"";if(!o)return null;const a=t.index,s=i.startIndex,c=new Intl.Segmenter(void 0,{granularity:"word"}).segment(o);let u=-1,h=-1;for(const{segment:f,index:p,isWordLike:g}of c){const v=p+s;if(g&&a>=v&&a<v+f.length){u=v-1,h=u+f.length;break}}return~u&&~h?{startIndex:u,endIndex:h}:null}function sR(r){const e=r.getDraw(),t=e.getPosition().getCursorPosition();if(!t)return null;const{value:n,index:i}=t,o=e.getLetterReg();let a=0,s=0;const l=ms.test(n);if(l||o.test(n)){const u=e.getElementList();let h=i-1;for(;h>0;){const f=u[h].value;if(l&&ms.test(f)||!l&&o.test(f))a++,h--;else break}let d=i+1;for(;d<u.length;){const f=u[d].value;if(l&&ms.test(f)||!l&&o.test(f))s++,d++;else break}}const c=i-a-1;return c<0?null:{startIndex:c,endIndex:i+s}}function lR(r,e){const t=r.getDraw(),n=t.getPosition(),i=n.getPositionByXY({x:e.offsetX,y:e.offsetY});if(i.isImage&&i.isDirectHit){t.getPreviewer().render();return}if(t.getIsPagingMode()&&!~i.index&&i.zone){t.getZone().setZone(i.zone),t.clearSideEffect(),n.setPositionContext({isTable:!1});return}if((i.isCheckbox||i.isRadio)&&i.isDirectHit)return;const o=t.getRange(),a=aR(r)||sR(r);!a||(o.setRange(a.startIndex,a.endIndex),t.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1}),o.setRangeStyle())}function cR(r){var f,p;const e=r.getDraw(),n=e.getPosition().getCursorPosition();if(!n)return;const{index:i}=n,o=e.getElementList();let a=0,s=0,l=i-1;for(;l>0;){const g=o[l],v=o[l-1];if(g.value===Ne&&!g.listWrap||g.listId!==(v==null?void 0:v.listId)||g.titleId!==(v==null?void 0:v.titleId))break;a++,l--}let c=i+1;for(;c<o.length;){const g=o[c],v=o[c+1];if(g.value===Ne&&!g.listWrap||g.listId!==(v==null?void 0:v.listId)||g.titleId!==(v==null?void 0:v.titleId))break;s++,c++}const u=e.getRange();let h=i-a-1;if(((f=o[h])==null?void 0:f.value)!==Ne&&(h-=1),h<0)return;let d=i+s+1;((p=o[d])==null?void 0:p.value)===Ne&&(d-=1),u.setRange(h,d),e.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1})}var $u={dblclick:lR,threeClick:cR};function uR(r){r.isComposing=!0}function hR(r,e){r.isComposing=!1;const t=r.getDraw();if(e.data)setTimeout(()=>{r.compositionInfo&&Jd(e.data,r)},1);else{zd(r);const i=t.getRange(),{endIndex:o}=i.getRange();t.render({curIndex:o,isSubmitHistory:!1})}t.getCursor().clearAgentDomValue()}var ju={compositionstart:uR,compositionend:hR};function fR(r,e){const t=e.getDraw();if(t.isReadonly())return;r.preventDefault();const i=t.getPageContainer();if(!Na(r.target,m=>m===i,!0))return;const s=r.target.dataset.index;s&&t.setPageNo(Number(s));const l=t.getPosition(),c=l.adjustPositionContext({x:r.offsetX,y:r.offsetY});if(!c)return;const{isTable:u,tdValueIndex:h,index:d}=c,f=l.getPositionList(),p=u?h:d;~d&&(t.getRange().setRange(p,p),l.setCursorPosition(f[p]));const g=t.getCursor(),{cursor:{dragColor:v,dragWidth:R}}=t.getOptions();g.drawCursor({width:R,color:v,isBlink:!1})}var dR={dragover:fR};class pR{constructor(e){this.draw=e,this.pageContainer=e.getPageContainer(),this.pageList=e.getPageList(),this.range=this.draw.getRange(),this.position=this.draw.getPosition(),this.isAllowSelection=!1,this.isComposing=!1,this.compositionInfo=null,this.isAllowDrag=!1,this.isAllowDrop=!1,this.cacheRange=null,this.cacheElementList=null,this.cachePositionList=null,this.cachePositionContext=null,this.mouseDownStartPosition=null}getDraw(){return this.draw}register(){this.pageContainer.addEventListener("click",this.click.bind(this)),this.pageContainer.addEventListener("mousedown",this.mousedown.bind(this)),this.pageContainer.addEventListener("mouseup",this.mouseup.bind(this)),this.pageContainer.addEventListener("mouseleave",this.mouseleave.bind(this)),this.pageContainer.addEventListener("mousemove",this.mousemove.bind(this)),this.pageContainer.addEventListener("dblclick",this.dblclick.bind(this)),this.pageContainer.addEventListener("dragover",this.dragover.bind(this)),this.pageContainer.addEventListener("drop",this.drop.bind(this)),tg(this.pageContainer,this.threeClick.bind(this))}setIsAllowSelection(e){this.isAllowSelection=e,e||this.applyPainterStyle()}setIsAllowDrag(e){this.isAllowDrag=e,this.isAllowDrop=e}clearPainterStyle(){this.pageList.forEach(e=>{e.style.cursor="text"}),this.draw.setPainterStyle(null)}applyPainterStyle(){const e=this.draw.getPainterStyle();if(!e)return;const t=this.range.getSelection();if(!t)return;const n=Object.keys(e);t.forEach(o=>{n.forEach(a=>{const s=a;o[s]=e[s]})}),this.draw.render({isSetCursor:!1});const i=this.draw.getPainterOptions();(!i||!i.isDblclick)&&this.clearPainterStyle()}selectAll(){const e=this.position.getPositionList();this.range.setRange(0,e.length-1),this.draw.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1})}mousemove(e){Gg(e,this)}mousedown(e){Kg(e,this)}click(){Qg&&!this.draw.isReadonly()&&this.draw.getCursor().getAgentDom().focus()}mouseup(e){Hg(e,this)}mouseleave(e){Bg(e,this)}keydown(e){rR(e,this)}dblclick(e){$u.dblclick(this,e)}threeClick(){$u.threeClick(this)}input(e){Jd(e,this)}cut(){nR(this)}copy(){iR(this)}compositionstart(){ju.compositionstart(this)}compositionend(e){ju.compositionend(this,e)}drop(e){oR(e,this)}dragover(e){dR.dragover(e,this)}}class gR{constructor(e,t){this.clearSideEffect=n=>{if(!this.cursor)return;const i=(n==null?void 0:n.composedPath()[0])||n.target,o=this.draw.getPageList();if(Na(i,l=>o.includes(l),!0)){this.setRangeStyle();return}if(Na(i,l=>!!l&&l.nodeType===1&&!!l.getAttribute(fn),!0)){this.setRangeStyle(),this.watchCursorActive();return}this.cursor.recoveryCursor(),this.range.recoveryRangeStyle(),this.previewer.clearResizer(),this.tableTool.dispose(),this.hyperlinkParticle.clearHyperlinkPopup(),this.control.destroyControl(),this.dateParticle.clearDatePicker()},this.setCanvasEventAbility=()=>{this.canvasEvent.setIsAllowDrag(!1),this.canvasEvent.setIsAllowSelection(!1)},this.setRangeStyle=()=>{this.range.setRangeStyle()},this.setPageScale=n=>{if(!n.ctrlKey)return;n.preventDefault();const{scale:i}=this.options;if(n.deltaY<0){const o=i*10+1;o<=30&&this.draw.setPageScale(o/10)}else{const o=i*10-1;o>=5&&this.draw.setPageScale(o/10)}},this._handleVisibilityChange=()=>{if(document.visibilityState==="visible"){const n=this.range.getRange(),i=!!~n.startIndex&&!!~n.endIndex&&n.startIndex===n.endIndex;this.range.replaceRange(n),this.draw.render({isSetCursor:i,isCompute:!1,isSubmitHistory:!1,curIndex:n.startIndex})}},this._handleDprChange=()=>{this.draw.setPageDevicePixel()},this.draw=e,this.options=e.getOptions(),this.canvasEvent=t,this.cursor=null,this.range=e.getRange(),this.previewer=e.getPreviewer(),this.tableTool=e.getTableTool(),this.hyperlinkParticle=e.getHyperlinkParticle(),this.dateParticle=e.getDateParticle(),this.control=e.getControl(),this.dprMediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`)}register(){this.cursor=this.draw.getCursor(),this.addEvent()}addEvent(){window.addEventListener("blur",this.clearSideEffect),document.addEventListener("keyup",this.setRangeStyle),document.addEventListener("click",this.clearSideEffect),document.addEventListener("mouseup",this.setCanvasEventAbility),document.addEventListener("wheel",this.setPageScale,{passive:!1}),document.addEventListener("visibilitychange",this._handleVisibilityChange),this.dprMediaQueryList.addEventListener("change",this._handleDprChange)}removeEvent(){window.removeEventListener("blur",this.clearSideEffect),document.removeEventListener("keyup",this.setRangeStyle),document.removeEventListener("click",this.clearSideEffect),document.removeEventListener("mouseup",this.setCanvasEventAbility),document.removeEventListener("wheel",this.setPageScale),document.removeEventListener("visibilitychange",this._handleVisibilityChange),this.dprMediaQueryList.removeEventListener("change",this._handleDprChange)}watchCursorActive(){!this.range.getIsCollapsed()||setTimeout(()=>{var e,t;(e=this.cursor)!=null&&e.getAgentIsActive()||(t=this.cursor)==null||t.drawCursor({isFocus:!1,isBlink:!1})})}}class RR{constructor(e){this.undoStack=[],this.redoStack=[],this.maxRecordCount=e.getOptions().historyMaxRecordCount+1}undo(){if(this.undoStack.length>1){const e=this.undoStack.pop();this.redoStack.push(e),this.undoStack.length&&this.undoStack[this.undoStack.length-1]()}}redo(){if(this.redoStack.length){const e=this.redoStack.pop();this.undoStack.push(e),e()}}execute(e){for(this.undoStack.push(e),this.redoStack.length&&(this.redoStack=[]);this.undoStack.length>this.maxRecordCount;)this.undoStack.shift()}isCanUndo(){return this.undoStack.length>1}isCanRedo(){return!!this.redoStack.length}isStackEmpty(){return!this.undoStack.length&&!this.redoStack.length}recovery(){this.undoStack=[],this.redoStack=[]}popUndo(){return this.undoStack.pop()}}class mR{constructor(e){this.positionList=[],this.floatPositionList=[],this.cursorPosition=null,this.positionContext={isTable:!1,isControl:!1},this.draw=e,this.options=e.getOptions()}getFloatPositionList(){return this.floatPositionList}getTablePositionList(e){const{index:t,trIndex:n,tdIndex:i}=this.positionContext;return e[t].trList[n].tdList[i].positionList||[]}getPositionList(){return this.positionContext.isTable?this.getTablePositionList(this.draw.getOriginalElementList()):this.getOriginalPositionList()}getMainPositionList(){return this.positionContext.isTable?this.getTablePositionList(this.draw.getOriginalMainElementList()):this.positionList}getOriginalPositionList(){const e=this.draw.getZone();return e.isHeaderActive()?this.draw.getHeader().getPositionList():e.isFooterActive()?this.draw.getFooter().getPositionList():this.positionList}getOriginalMainPositionList(){return this.positionList}getSelectionPositionList(){const{startIndex:e,endIndex:t}=this.draw.getRange().getRange();return e===t?null:this.getPositionList().slice(e+1,t+1)}setPositionList(e){this.positionList=e}setFloatPositionList(e){this.floatPositionList=e}computePageRowPosition(e){const{positionList:t,rowList:n,pageNo:i,startX:o,startY:a,startRowIndex:s,startIndex:l,innerWidth:c,zone:u}=e,{scale:h,table:{tdPadding:d}}=this.options;let f=o,p=a,g=l;for(let v=0;v<n.length;v++){const R=n[v],m=R.width+(R.offsetX||0);R.rowFlex===Ge.CENTER?f+=(c-m)/2:R.rowFlex===Ge.RIGHT&&(f+=c-m),f+=R.offsetX||0;const x=f,T=p;for(let P=0;P<R.elementList.length;P++){const A=R.elementList[P],D=A.metrics,W=A.imgDisplay!==ze.INLINE&&A.type===ae.IMAGE||A.type===ae.LATEX?R.ascent-D.height:R.ascent;A.left&&(f+=A.left);const _={pageNo:i,index:g,value:A.value,rowIndex:s+v,rowNo:v,metrics:D,left:A.left||0,ascent:W,lineHeight:R.height,isFirstLetter:P===0,isLastLetter:P===R.elementList.length-1,coordinate:{leftTop:[f,p],leftBottom:[f,p+R.height],rightTop:[f+D.width,p],rightBottom:[f+D.width,p+R.height]}};if(A.imgDisplay===ze.FLOAT_TOP||A.imgDisplay===ze.FLOAT_BOTTOM){const Q=t[t.length-1];Q&&(_.metrics=Q.metrics,_.coordinate=Q.coordinate),A.imgFloatPosition||(A.imgFloatPosition={x:f,y:p}),this.floatPositionList.push({pageNo:i,element:A,position:_,isTable:e.isTable,index:e.index,tdIndex:e.tdIndex,trIndex:e.trIndex,tdValueIndex:g,zone:u})}if(t.push(_),g++,f+=D.width,A.type===ae.TABLE){const Q=d[1]+d[3],te=d[0]+d[2];for(let O=0;O<A.trList.length;O++){const I=A.trList[O];for(let y=0;y<I.tdList.length;y++){const L=I.tdList[y];L.positionList=[];const k=L.rowList,F=this.computePageRowPosition({positionList:L.positionList,rowList:k,pageNo:i,startRowIndex:0,startIndex:0,startX:(L.x+d[3])*h+x,startY:(L.y+d[0])*h+T,innerWidth:(L.width-Q)*h,isTable:!0,index:g-1,tdIndex:y,trIndex:O,zone:u});if(L.verticalAlign===Fn.MIDDLE||L.verticalAlign===Fn.BOTTOM){const Y=k.reduce((U,N)=>U+N.height,0),V=(L.height-te)*h-Y,ie=L.verticalAlign===Fn.MIDDLE?V/2:V;Math.floor(ie)>0&&L.positionList.forEach(U=>{const{coordinate:{leftTop:N,leftBottom:J,rightBottom:B,rightTop:re}}=U;N[1]+=ie,J[1]+=ie,B[1]+=ie,re[1]+=ie})}f=F.x,p=F.y}}f=x,p=T}}f=o,p+=R.height}return{x:f,y:p,index:g}}computePositionList(){var c;this.positionList=[];const e=this.draw.getInnerWidth(),t=this.draw.getPageRowList(),n=this.draw.getMargins(),i=n[3],a=this.draw.getHeader().getExtraHeight(),s=n[0]+a;let l=0;for(let u=0;u<t.length;u++){const h=t[u],d=(c=h[0])==null?void 0:c.startIndex;this.computePageRowPosition({positionList:this.positionList,rowList:h,pageNo:u,startRowIndex:l,startIndex:d,startX:i,startY:s,innerWidth:e}),l+=h.length}}computeRowPosition(e){const{row:t,innerWidth:n}=e,i=[];return this.computePageRowPosition({positionList:i,innerWidth:n,rowList:[gt(t)],pageNo:0,startX:0,startY:0,startIndex:0,startRowIndex:0}),i}setCursorPosition(e){this.cursorPosition=e}getCursorPosition(){return this.cursorPosition}getPositionContext(){return this.positionContext}setPositionContext(e){this.positionContext=e}getPositionByXY(e){var g,v,R,m,x;const{x:t,y:n,isTable:i}=e;let{elementList:o,positionList:a}=e;o||(o=this.draw.getOriginalElementList()),a||(a=this.getOriginalPositionList());const s=this.draw.getZone(),l=(g=e.pageNo)!=null?g:this.draw.getPageNo(),c=s.isMainActive(),u=c?l:0;if(!i){const T=this.getFloatPositionByXY({...e,imgDisplay:ze.FLOAT_TOP});if(T)return T}for(let T=0;T<a.length;T++){const{index:P,pageNo:A,left:D,isFirstLetter:W,coordinate:{leftTop:_,rightTop:Q,leftBottom:te}}=a[T];if(u===A){if(A>u)break;if(_[0]-D<=t&&Q[0]>=t&&_[1]<=n&&te[1]>=n){let O=T;const I=o[T];if(I.type===ae.TABLE)for(let L=0;L<I.trList.length;L++){const k=I.trList[L];for(let F=0;F<k.tdList.length;F++){const Y=k.tdList[F],V=this.getPositionByXY({x:t,y:n,td:Y,tablePosition:a[T],isTable:!0,elementList:Y.value,positionList:Y.positionList});if(~V.index){const{index:ie,hitLineStartIndex:U}=V,N=Y.value[ie];return{index:P,isCheckbox:V.isCheckbox||N.type===ae.CHECKBOX||N.controlComponent===ye.CHECKBOX,isRadio:N.type===ae.RADIO||N.controlComponent===ye.RADIO,isControl:!!N.controlId,isImage:V.isImage,isDirectHit:V.isDirectHit,isTable:!0,tdIndex:F,trIndex:L,tdValueIndex:ie,tdId:Y.id,trId:k.id,tableId:I.id,hitLineStartIndex:U}}}}if(I.type===ae.IMAGE||I.type===ae.LATEX)return{index:O,isDirectHit:!0,isImage:!0};if(I.type===ae.CHECKBOX||I.controlComponent===ye.CHECKBOX)return{index:O,isDirectHit:!0,isCheckbox:!0};if(I.type===ae.RADIO||I.controlComponent===ye.RADIO)return{index:O,isDirectHit:!0,isRadio:!0};let y;if(o[P].value!==Ne){const L=Q[0]-_[0];t<_[0]+L/2&&(O=T-1,W&&(y=T))}return{hitLineStartIndex:y,index:O,isControl:!!I.controlId}}}}if(!i){const T=this.getFloatPositionByXY({...e,imgDisplay:ze.FLOAT_BOTTOM});if(T)return T}let h=!1,d=-1,f;if(i){const{scale:T}=this.options,{td:P,tablePosition:A}=e;if(P&&A){const{leftTop:D}=A.coordinate,W=P.x*T+D[0],_=P.y*T+D[1],Q=P.width*T,te=P.height*T;if(!(W<t&&t<W+Q&&_<n&&n<_+te))return{index:d}}}const p=a.filter(T=>T.isLastLetter&&T.pageNo===u);for(let T=0;T<p.length;T++){const{index:P,rowNo:A,coordinate:{leftTop:D,leftBottom:W}}=p[T];if(n>D[1]&&n<=W[1]){const _=a.findIndex(Q=>Q.pageNo===u&&Q.rowNo===A);if(t<this.options.margins[3])~_?a[_].value===Ne?d=_:(d=_-1,f=_):d=P;else{if(o[_].listStyle===Er.CHECKBOX&&t<D[0])return{index:_,isDirectHit:!0,isCheckbox:!0};d=P}h=!0;break}}if(!h){const T=this.draw.getHeader(),P=T.getHeight(),A=T.getHeaderTop()+P,D=this.draw.getFooter(),_=this.draw.getHeight()-(D.getFooterBottom()+D.getHeight());if(c){if(n<A)return{index:-1,zone:Ke.HEADER};if(n>_)return{index:-1,zone:Ke.FOOTER}}else if(n<=_&&n>=A)return{index:-1,zone:Ke.MAIN};const Q=this.draw.getMargins();if(n<=Q[1])for(let te=0;te<a.length;te++){const O=a[te];if(O.pageNo!==u||O.rowNo!==0)continue;const{leftTop:I,rightTop:y}=O.coordinate;if(t<=Q[3]||t>=I[0]&&t<=y[0]||((v=a[te+1])==null?void 0:v.rowNo)!==0)return{index:O.index}}else{const te=p[p.length-1];if(te){const O=te.rowNo;for(let I=0;I<a.length;I++){const y=a[I];if(y.pageNo!==u||y.rowNo!==O)continue;const{leftTop:L,rightTop:k}=y.coordinate;if(t<=Q[3]||t>=L[0]&&t<=k[0]||((R=a[I+1])==null?void 0:R.rowNo)!==O)return{index:y.index}}}}return{index:((m=p[p.length-1])==null?void 0:m.index)||a.length-1}}return{hitLineStartIndex:f,index:d,isControl:!!((x=o[d])!=null&&x.controlId)}}getFloatPositionByXY(e){const{x:t,y:n}=e,i=this.draw.getZone().getZone();for(let o=0;o<this.floatPositionList.length;o++){const{position:a,element:s,isTable:l,index:c,trIndex:u,tdIndex:h,tdValueIndex:d,zone:f}=this.floatPositionList[o];if(s.type===ae.IMAGE&&s.imgDisplay===e.imgDisplay&&(!f||f===i)){const p=s.imgFloatPosition;if(t>=p.x&&t<=p.x+s.width&&n>=p.y&&n<=p.y+s.height)return l?{index:c,isDirectHit:!0,isImage:!0,isTable:l,trIndex:u,tdIndex:h,tdValueIndex:d,tdId:s.tdId,trId:s.trId,tableId:s.tableId}:{index:a.index,isDirectHit:!0,isImage:!0}}}}adjustPositionContext(e){const t=this.getPositionByXY(e);if(!~t.index)return null;if(t.isControl&&this.draw.getMode()!==Mt.READONLY){const{index:g,isTable:v,trIndex:R,tdIndex:m,tdValueIndex:x}=t,T=this.draw.getControl(),{newIndex:P}=T.moveCursor({index:g,isTable:v,trIndex:R,tdIndex:m,tdValueIndex:x});v?t.tdValueIndex=P:t.index=P}const{index:n,isCheckbox:i,isRadio:o,isControl:a,isImage:s,isDirectHit:l,isTable:c,trIndex:u,tdIndex:h,tdId:d,trId:f,tableId:p}=t;return this.setPositionContext({isTable:c||!1,isCheckbox:i||!1,isRadio:o||!1,isControl:a||!1,isImage:s||!1,isDirectHit:l||!1,index:n,trIndex:u,tdIndex:h,tdId:d,trId:f,tableId:p}),t}}class vR{constructor(e){this.draw=e,this.options=e.getOptions(),this.listener=e.getListener(),this.eventBus=e.getEventBus(),this.position=e.getPosition(),this.historyManager=e.getHistoryManager(),this.range={startIndex:-1,endIndex:-1}}getRange(){return this.range}clearRange(){this.setRange(-1,-1)}getIsCollapsed(){const{startIndex:e,endIndex:t}=this.range;return e===t}getSelection(){const{startIndex:e,endIndex:t}=this.range;return e===t?null:this.draw.getElementList().slice(e+1,t+1)}getSelectionElementList(){if(this.range.isCrossRowCol){const e=this.draw.getTableParticle().getRangeRowCol();if(!e)return null;const t=[];for(let n=0;n<e.length;n++){const i=e[n];for(let o=0;o<i.length;o++){const a=i[o];t.push(...a.value)}}return t}return this.getSelection()}getTextLikeSelection(){const e=this.getSelection();return e?e.filter(t=>!t.type||Gr.includes(t.type)):null}getTextLikeSelectionElementList(){const e=this.getSelectionElementList();return e?e.filter(t=>!t.type||Gr.includes(t.type)):null}getRangeRow(){const{startIndex:e,endIndex:t}=this.range;if(!~e&&!~t)return null;const n=this.position.getPositionList(),i=new Map;for(let o=e;o<t+1;o++){const{pageNo:a,rowNo:s}=n[o],l=i.get(a);l?l.has(s)||l.add(s):i.set(a,new Set([s]))}return i}getRangeRowElementList(){const{startIndex:e,endIndex:t,isCrossRowCol:n}=this.range;if(!~e&&!~t)return null;if(n)return this.getSelectionElementList();const i=this.getRangeRow();if(!i)return null;const o=this.position.getPositionList(),a=this.draw.getElementList(),s=[];for(let l=0;l<o.length;l++){const c=o[l],u=i.get(c.pageNo);!u||u.has(c.rowNo)&&s.push(a[l])}return s}getRangeParagraph(){const{startIndex:e,endIndex:t}=this.range;if(!~e&&!~t)return null;const n=this.position.getPositionList(),i=this.draw.getElementList(),o=new Map;let a=e;for(;a>=0;){const{pageNo:l,rowNo:c}=n[a];let u=o.get(l);u||(u=[],o.set(l,u)),u.includes(c)||u.unshift(c);const h=i[a],d=i[a-1];if(h.value===Ne&&!h.listWrap||h.listId!==(d==null?void 0:d.listId)||h.titleId!==(d==null?void 0:d.titleId))break;a--}if(e!==t){let l=e+1;for(;l<t;){const{pageNo:c,rowNo:u}=n[l];let h=o.get(c);h||(h=[],o.set(c,h)),h.includes(u)||h.push(u),l++}}let s=t;for(;s<n.length;){const l=i[s],c=i[s+1];if(l.value===Ne&&!l.listWrap||l.listId!==(c==null?void 0:c.listId)||l.titleId!==(c==null?void 0:c.titleId))break;const{pageNo:u,rowNo:h}=n[s];let d=o.get(u);d||(d=[],o.set(u,d)),d.includes(h)||d.push(h),s++}return o}getRangeParagraphInfo(){const{startIndex:e,endIndex:t}=this.range;if(!~e&&!~t)return null;let n=-1;const i=[],o=this.getRangeParagraph();if(!o)return null;const a=this.draw.getElementList(),s=this.position.getPositionList();for(let l=0;l<s.length;l++){const c=s[l],u=o.get(c.pageNo);!u||u.includes(c.rowNo)&&(~n||(n=c.index),i.push(a[l]))}return i.length?{elementList:i,startIndex:n}:null}getRangeParagraphElementList(){var e;return((e=this.getRangeParagraphInfo())==null?void 0:e.elementList)||null}getIsSelectAll(){const e=this.draw.getElementList(),{startIndex:t,endIndex:n}=this.range;return t===0&&e.length-1===n&&!this.position.getPositionContext().isTable}getIsPointInRange(e,t){const{startIndex:n,endIndex:i}=this.range,o=this.position.getPositionList();for(let a=n+1;a<=i&&o[a];a++){const{coordinate:{leftTop:l,rightBottom:c}}=o[a];if(e>=l[0]&&e<=c[0]&&t>=l[1]&&t<=c[1])return!0}return!1}getKeywordRangeList(e){const t=this.draw.getSearch().getMatchList(e,this.draw.getOriginalElementList()),n=new Map;for(const o of t){const a=n.get(o.groupId);if(a)a.endIndex+=1;else{const{type:s,groupId:l,tableId:c,index:u,tdIndex:h,trIndex:d}=o,f={startIndex:u-1,endIndex:u};s===Mn.TABLE&&(f.tableId=c,f.startTdIndex=h,f.endTdIndex=h,f.startTrIndex=d,f.endTrIndex=d),n.set(l,f)}}const i=[];return n.forEach(o=>{i.push(o)}),i}getIsCanInput(){const{startIndex:e,endIndex:t}=this.getRange();if(!~e&&!~t)return!1;if(e===t)return!0;const n=this.draw.getElementList(),i=n[e],o=n[t];return!i.controlId&&!o.controlId||(!i.controlId||i.controlComponent===ye.POSTFIX)&&(!o.controlId||o.controlComponent===ye.POSTFIX)||!!i.controlId&&o.controlId===i.controlId&&o.controlComponent!==ye.POSTFIX}setRange(e,t,n,i,o,a,s){this.range.startIndex=e,this.range.endIndex=t,this.range.tableId=n,this.range.startTdIndex=i,this.range.endTdIndex=o,this.range.startTrIndex=a,this.range.endTrIndex=s,this.range.isCrossRowCol=!!(i||o||a||s),this.range.zone=this.draw.getZone().getZone();const l=this.draw.getControl();if(~e&&~t){const u=this.draw.getElementList()[e];if(u!=null&&u.controlId){l.initControl();return}}l.destroyControl()}replaceRange(e){this.setRange(e.startIndex,e.endIndex,e.tableId,e.startTdIndex,e.endTdIndex,e.startTrIndex,e.endTrIndex)}setRangeStyle(){var y;const e=this.listener.rangeStyleChange,t=this.eventBus.isSubscribe("rangeStyleChange");if(!e&&!t)return;const{startIndex:n,endIndex:i,isCrossRowCol:o}=this.range;if(!~n&&!~i)return;let a;if(o){const L=this.draw.getOriginalElementList(),k=this.position.getPositionContext();a=L[k.index]}else{const L=~i?i:0,k=this.draw.getElementList();a=Lo(k,L)}if(!a)return;const s=this.getSelection()||[a],l=a.type||ae.TEXT,c=a.font||this.options.defaultFont,u=a.size||this.options.defaultSize,h=!~s.findIndex(L=>!L.bold),d=!~s.findIndex(L=>!L.italic),f=!~s.findIndex(L=>{var k;return!L.underline&&!((k=L.control)!=null&&k.underline)}),p=!~s.findIndex(L=>!L.strikeout),g=a.color||null,v=a.highlight||null,R=a.rowFlex||null,m=a.rowMargin||this.options.defaultRowMargin,x=a.dashArray||[],T=a.level||null,P=a.listType||null,A=a.listStyle||null,D=f&&a.textDecoration||null,W=!!this.draw.getPainterStyle(),_=this.historyManager.isCanUndo(),Q=this.historyManager.isCanRedo(),te=a.groupIds||null,O=(y=a.extension)!=null?y:null,I={type:l,undo:_,redo:Q,painter:W,font:c,size:u,bold:h,italic:d,underline:f,strikeout:p,color:g,highlight:v,rowFlex:R,rowMargin:m,dashArray:x,level:T,listType:P,listStyle:A,groupIds:te,textDecoration:D,extension:O};e&&e(I),t&&this.eventBus.emit("rangeStyleChange",I)}recoveryRangeStyle(){const e=this.listener.rangeStyleChange,t=this.eventBus.isSubscribe("rangeStyleChange");if(!e&&!t)return;const n=this.options.defaultFont,i=this.options.defaultSize,o=this.options.defaultRowMargin,a=!!this.draw.getPainterStyle(),s=this.historyManager.isCanUndo(),l=this.historyManager.isCanRedo(),c={type:null,undo:s,redo:l,painter:a,font:n,size:i,bold:!1,italic:!1,underline:!1,strikeout:!1,color:null,highlight:null,rowFlex:null,rowMargin:o,dashArray:[],level:null,listType:null,listStyle:null,groupIds:null,textDecoration:null,extension:null};e&&e(c),t&&this.eventBus.emit("rangeStyleChange",c)}shrinkBoundary(e={}){const t=e.elementList||this.draw.getElementList(),n=e.range||this.getRange(),{startIndex:i,endIndex:o}=n;if(!~i&&!~o)return;const a=t[i],s=t[o];if(i===o){if(a.controlComponent===ye.PLACEHOLDER){let l=i-1;for(;l>0;){const c=t[l];if(c.controlId!==a.controlId||c.controlComponent===ye.PREFIX){n.startIndex=l,n.endIndex=l;break}l--}}}else{if(a.controlComponent===ye.PLACEHOLDER||s.controlComponent===ye.PLACEHOLDER){let l=o-1;for(;l>0;){const c=t[l];if(c.controlId!==s.controlId||c.controlComponent===ye.PREFIX){n.startIndex=l,n.endIndex=l;return}l--}}if(a.controlComponent===ye.PREFIX){let l=i+1;for(;l<t.length;){const c=t[l];if(c.controlId!==a.controlId||c.controlComponent===ye.VALUE){n.startIndex=l-1;break}else if(c.controlComponent===ye.PLACEHOLDER){n.startIndex=l-1,n.endIndex=l-1;return}l++}}if(s.controlComponent!==ye.VALUE){let l=i-1;for(;l>0;){const c=t[l];if(c.controlId!==a.controlId||c.controlComponent===ye.VALUE){n.startIndex=l;break}else if(c.controlComponent===ye.PLACEHOLDER){n.startIndex=l,n.endIndex=l;return}l--}}}}render(e,t,n,i,o){e.save(),e.globalAlpha=this.options.rangeAlpha,e.fillStyle=this.options.rangeColor,e.fillRect(t,n,i,o),e.restore()}toString(){const e=this.getTextLikeSelection();return e?e.map(t=>t.value).join("").replace(new RegExp(Ne,"g"),""):""}}var Sc=(r=>(r.CONTAIN="contain",r.COVER="cover",r))(Sc||{}),Hn=(r=>(r.REPEAT="repeat",r.NO_REPEAT="no-repeat",r.REPEAT_X="repeat-x",r.REPEAT_Y="repeat-y",r))(Hn||{});class yR{constructor(e){this.draw=e,this.options=e.getOptions(),this.imageCache=new Map}_renderBackgroundColor(e,t,n,i){e.save(),e.fillStyle=t,e.fillRect(0,0,n,i),e.restore()}_drawImage(e,t,n,i){const{background:o,scale:a}=this.options;if(o.size===Sc.CONTAIN){const s=t.width*a,l=t.height*a;if(!o.repeat||o.repeat===Hn.NO_REPEAT)e.drawImage(t,0,0,s,l);else{let c=0,u=0;const h=o.repeat===Hn.REPEAT||o.repeat===Hn.REPEAT_X?Math.ceil(n*a/s):1,d=o.repeat===Hn.REPEAT||o.repeat===Hn.REPEAT_Y?Math.ceil(i*a/l):1;for(let f=0;f<h;f++){for(let p=0;p<d;p++)e.drawImage(t,c,u,s,l),u+=l;u=0,c+=s}}}else e.drawImage(t,0,0,n*a,i*a)}_renderBackgroundImage(e,t,n){const{background:i}=this.options,o=this.imageCache.get(i.image);if(o)this._drawImage(e,o,t,n);else{const a=new Image;a.setAttribute("crossOrigin","Anonymous"),a.src=i.image,a.onload=()=>{this.imageCache.set(i.image,a),this._drawImage(e,a,t,n),this.draw.render({isCompute:!1,isSubmitHistory:!1})}}}render(e,t){const{background:n}=this.options;if(n.image){const{width:i,height:o}=this.options;this._renderBackgroundImage(e,i,o)}else{const i=this.draw.getCanvasWidth(t),o=this.draw.getCanvasHeight(t);this._renderBackgroundColor(e,n.color,i,o)}}}class xc{constructor(){this.fillRect=this.clearFillInfo()}clearFillInfo(){return this.fillColor=void 0,this.fillDecorationStyle=void 0,this.fillRect={x:0,y:0,width:0,height:0},this.fillRect}recordFillInfo(e,t,n,i,o,a,s){const l=!this.fillRect.width;if(!l&&(this.fillColor!==a||this.fillDecorationStyle!==s)){this.render(e),this.clearFillInfo(),this.recordFillInfo(e,t,n,i,o,a,s);return}l&&(this.fillRect.x=t,this.fillRect.y=n),o&&this.fillRect.height<o&&(this.fillRect.height=o),this.fillRect.width+=i,this.fillColor=a,this.fillDecorationStyle=s}}class wR extends xc{constructor(e){super(),this.options=e.getOptions()}render(e){if(!this.fillRect.width)return;const{highlightAlpha:t}=this.options,{x:n,y:i,width:o,height:a}=this.fillRect;e.save(),e.globalAlpha=t,e.fillStyle=this.fillColor,e.fillRect(n,i,o,a),e.restore(),this.clearFillInfo()}}class SR{constructor(e){this.draw=e,this.options=e.getOptions()}render(e,t){const{marginIndicatorColor:n,pageMode:i}=this.options,o=this.draw.getWidth(),a=i===Ln.CONTINUITY?this.draw.getCanvasHeight(t):this.draw.getHeight(),s=this.draw.getMargins(),l=this.draw.getMarginIndicatorSize();e.save(),e.translate(.5,.5),e.strokeStyle=n,e.beginPath();const c=[s[3],s[0]],u=[o-s[1],s[0]],h=[s[3],a-s[2]],d=[o-s[1],a-s[2]];e.moveTo(c[0]-l,c[1]),e.lineTo(...c),e.lineTo(c[0],c[1]-l),e.moveTo(u[0]+l,u[1]),e.lineTo(...u),e.lineTo(u[0],u[1]-l),e.moveTo(h[0]-l,h[1]),e.lineTo(...h),e.lineTo(h[0],h[1]+l),e.moveTo(d[0]+l,d[1]),e.lineTo(...d),e.lineTo(d[0],d[1]+l),e.stroke(),e.restore()}}class xR{constructor(e){this.draw=e,this.options=e.getOptions(),this.position=e.getPosition(),this.searchNavigateIndex=null,this.searchKeyword=null,this.searchMatchList=[]}getSearchKeyword(){return this.searchKeyword}setSearchKeyword(e){this.searchKeyword=e,this.searchNavigateIndex=null}searchNavigatePre(){if(!this.searchMatchList.length||!this.searchKeyword)return null;if(this.searchNavigateIndex===null)this.searchNavigateIndex=0;else{let e=this.searchNavigateIndex-1,t=!1;const n=this.searchMatchList[this.searchNavigateIndex].groupId;for(;e>=0;){const i=this.searchMatchList[e];if(n!==i.groupId){t=!0,this.searchNavigateIndex=e-(this.searchKeyword.length-1);break}e--}if(!t){if(this.searchMatchList[this.searchMatchList.length-1].groupId===n)return null;this.searchNavigateIndex=this.searchMatchList.length-1-(this.searchKeyword.length-1)}}return this.searchNavigateIndex}searchNavigateNext(){if(!this.searchMatchList.length||!this.searchKeyword)return null;if(this.searchNavigateIndex===null)this.searchNavigateIndex=0;else{let e=this.searchNavigateIndex+1,t=!1;const n=this.searchMatchList[this.searchNavigateIndex].groupId;for(;e<this.searchMatchList.length;){const i=this.searchMatchList[e];if(n!==i.groupId){t=!0,this.searchNavigateIndex=e;break}e++}if(!t){if(this.searchMatchList[0].groupId===n)return null;this.searchNavigateIndex=0}}return this.searchNavigateIndex}searchNavigateScrollIntoView(e){const{coordinate:{leftTop:t,leftBottom:n,rightTop:i},pageNo:o}=e,a=this.draw.getHeight(),s=this.draw.getPageGap(),l=o*(a+s),c=document.createElement("div");c.style.position="absolute";const u=50;c.style.width=`${i[0]-t[0]+u}px`,c.style.height=`${n[1]-t[1]+u}px`,c.style.left=`${t[0]}px`,c.style.top=`${t[1]+l}px`,this.draw.getContainer().append(c),c.scrollIntoView(!1),c.remove()}getSearchNavigateIndexList(){return this.searchNavigateIndex===null||!this.searchKeyword?[]:new Array(this.searchKeyword.length).fill(this.searchNavigateIndex).map((e,t)=>e+t)}getSearchMatchList(){return this.searchMatchList}getSearchNavigateInfo(){if(!this.searchKeyword||!this.searchMatchList.length)return null;const e=this.searchNavigateIndex!==null?this.searchNavigateIndex/this.searchKeyword.length+1:0;let t=0,n=null;for(let i=0;i<this.searchMatchList.length;i++){const o=this.searchMatchList[i];n!==o.groupId&&(n=o.groupId,t+=1)}return{index:e,count:t}}getMatchList(e,t){const n=e.toLocaleLowerCase(),i=[],o=[],a=t.length,s=[];for(let h=0;h<a;h++)t[h].type===ae.TABLE&&s.push(h);let l=0,c=0;for(;c<a-1;){const h=s.length?s[l]:a,d=t.slice(c,h);d.length&&o.push({index:c,type:Mn.PAGE,elementList:d});const f=t[h];f&&o.push({index:h,type:Mn.TABLE,elementList:[f]}),c=h+1,l++}function u(h,d,f,p){if(!h)return;const g=f.map(m=>!m.type||Gr.includes(m.type)&&m.controlComponent!==ye.CHECKBOX?m.value:Ne).filter(Boolean).join("").toLocaleLowerCase(),v=[];let R=g.indexOf(h);for(;R!==-1;)v.push(R),R=g.indexOf(h,R+h.length);for(let m=0;m<v.length;m++){const x=v[m],T=it();for(let P=0;P<h.length;P++){const A=x+P+((p==null?void 0:p.startIndex)||0);i.push({type:d,index:A,groupId:T,...p})}}}for(let h=0;h<o.length;h++){const d=o[h];if(d.type===Mn.TABLE){const f=d.elementList[0];for(let p=0;p<f.trList.length;p++){const g=f.trList[p];for(let v=0;v<g.tdList.length;v++){const R=g.tdList[v],m={tableId:f.id,tableIndex:d.index,trIndex:p,tdIndex:v,tdId:R.id};u(n,d.type,R.value,m)}}}else u(n,d.type,d.elementList,{startIndex:d.index})}return i}compute(e){this.searchMatchList=this.getMatchList(e,this.draw.getOriginalElementList())}render(e,t){var l,c;if(!this.searchMatchList||!this.searchMatchList.length||!this.searchKeyword)return;const{searchMatchAlpha:n,searchMatchColor:i,searchNavigateMatchColor:o}=this.options,a=this.position.getOriginalPositionList(),s=this.draw.getOriginalElementList();e.save(),e.globalAlpha=n;for(let u=0;u<this.searchMatchList.length;u++){const h=this.searchMatchList[u];let d=null;if(h.type===Mn.TABLE){const{tableIndex:A,trIndex:D,tdIndex:W,index:_}=h;d=(c=(l=s[A])==null?void 0:l.trList[D].tdList[W])==null?void 0:c.positionList[_]}else d=a[h.index];if(!d)continue;const{coordinate:{leftTop:f,leftBottom:p,rightTop:g},pageNo:v}=d;if(v!==t)continue;if(this.getSearchNavigateIndexList().includes(u)){e.fillStyle=o;const A=this.searchMatchList[u-1];(!A||A.groupId!==h.groupId)&&this.searchNavigateScrollIntoView(d)}else e.fillStyle=i;const m=f[0],x=f[1],T=g[0]-f[0],P=p[1]-f[1];e.fillRect(m,x,T,P)}e.restore()}}class bR extends xc{constructor(e){super(),this.options=e.getOptions()}render(e){if(!this.fillRect.width)return;const{scale:t,strikeoutColor:n}=this.options,{x:i,y:o,width:a}=this.fillRect;e.save(),e.lineWidth=t,e.strokeStyle=n;const s=o+.5;e.beginPath(),e.moveTo(i,s),e.lineTo(i+a,s),e.stroke(),e.restore(),this.clearFillInfo()}}var Ro=(r=>(r.SOLID="solid",r.DOUBLE="double",r.DASHED="dashed",r.DOTTED="dotted",r.WAVY="wavy",r))(Ro||{}),mo=(r=>(r.SOLID="solid",r.DASHED="dashed",r.DOTTED="dotted",r))(mo||{});class OR extends xc{constructor(e){super(),this.options=e.getOptions()}_drawLine(e,t,n,i,o){const a=t+i;switch(e.beginPath(),o){case mo.DASHED:e.setLineDash([3,1]);break;case mo.DOTTED:e.setLineDash([1,1]);break}e.moveTo(t,n),e.lineTo(a,n),e.stroke()}_drawDouble(e,t,n,i){const a=t+i,s=n+3*this.options.scale;e.beginPath(),e.moveTo(t,n),e.lineTo(a,n),e.stroke(),e.beginPath(),e.moveTo(t,s),e.lineTo(a,s),e.stroke()}_drawWave(e,t,n,i){const{scale:o}=this.options,a=1.2*o,s=1/o,l=n+2*a;e.beginPath();for(let c=0;c<i;c++){const u=a*Math.sin(s*c);e.lineTo(t+c,l+u)}e.stroke()}render(e){if(!this.fillRect.width)return;const{underlineColor:t,scale:n}=this.options,{x:i,y:o,width:a}=this.fillRect;e.save(),e.strokeStyle=this.fillColor||t,e.lineWidth=n;const s=Math.floor(o+2*e.lineWidth)+.5;switch(this.fillDecorationStyle){case Ro.WAVY:this._drawWave(e,i,s,a);break;case Ro.DOUBLE:this._drawDouble(e,i,s,a);break;case Ro.DASHED:this._drawLine(e,i,s,a,mo.DASHED);break;case Ro.DOTTED:this._drawLine(e,i,s,a,mo.DOTTED);break;default:this._drawLine(e,i,s,a);break}e.restore(),this.clearFillInfo()}}class TR{constructor(e){this.draw=e,this.options=e.getOptions(),this.ctx=e.getCtx(),this.curX=-1,this.curY=-1,this.text="",this.curStyle="",this.cacheMeasureText=new Map}measureBasisWord(e,t){e.save(),e.font=t;const n=this.measureText(e,{value:J1});return e.restore(),n}measureWord(e,t,n){const i=this.draw.getLetterReg();let o=0,a=t[n],s=n;for(;s<t.length;){const l=t[s];if(l.type&&l.type!==ae.TEXT||!i.test(l.value)){a=l;break}o+=this.measureText(e,l).width,s++}return{width:o,endElement:a}}measurePunctuationWidth(e,t){return!t||!B1.includes(t.value)?0:this.measureText(e,t).width}measureText(e,t){if(t.width){const a=e.measureText(t.value);return{width:t.width,actualBoundingBoxAscent:a.actualBoundingBoxAscent,actualBoundingBoxDescent:a.actualBoundingBoxDescent,actualBoundingBoxLeft:a.actualBoundingBoxLeft,actualBoundingBoxRight:a.actualBoundingBoxRight,fontBoundingBoxAscent:a.fontBoundingBoxAscent,fontBoundingBoxDescent:a.fontBoundingBoxDescent}}const n=`${t.value}${e.font}`,i=this.cacheMeasureText.get(n);if(i)return i;const o=e.measureText(t.value);return this.cacheMeasureText.set(n,o),o}complete(){this._render(),this.text=""}record(e,t,n,i){this.ctx=e,this.text||this._setCurXY(n,i),(this.curStyle&&t.style!==this.curStyle||t.color!==this.curColor)&&(this.complete(),this._setCurXY(n,i)),this.text+=t.value,this.curStyle=t.style,this.curColor=t.color}_setCurXY(e,t){this.curX=e,this.curY=t}_render(){!this.text||!~this.curX||!~this.curX||(this.ctx.save(),this.ctx.font=this.curStyle,this.ctx.fillStyle=this.curColor||this.options.defaultColor,this.ctx.fillText(this.text,this.curX,this.curY),this.ctx.restore())}}const Vl={PAGE_NO:"{pageNo}",PAGE_COUNT:"{pageCount}"},PR={bottom:60,size:12,font:"Microsoft YaHei",color:"#000000",rowFlex:Ge.CENTER,format:Vl.PAGE_NO,numberType:Ia.ARABIC,disabled:!1,startPageNo:1,fromPageNo:0,maxPageNo:null};class ER{constructor(e){this.draw=e,this.options=e.getOptions()}render(e,t){const{scale:n,pageMode:i,pageNumber:{size:o,font:a,color:s,rowFlex:l,numberType:c,format:u,startPageNo:h,fromPageNo:d}}=this.options;if(t<d)return;let f=u;const p=new RegExp(Vl.PAGE_NO);if(p.test(f)){const D=t+h-d,W=c===Ia.CHINESE?Hu(D):`${D}`;f=f.replace(p,W)}const g=new RegExp(Vl.PAGE_COUNT);if(g.test(f)){const D=this.draw.getPageCount()-d,W=c===Ia.CHINESE?Hu(D):`${D}`;f=f.replace(g,W)}const v=this.draw.getWidth(),R=i===Ln.CONTINUITY?this.draw.getCanvasHeight(t):this.draw.getHeight(),m=this.draw.getPageNumberBottom(),x=R-m;e.save(),e.fillStyle=s,e.font=`${o*n}px ${a}`;let T=0;const P=this.draw.getMargins(),{width:A}=e.measureText(f);l===Ge.CENTER?T=(v-A)/2:l===Ge.RIGHT?T=v-A-P[1]:T=P[3],e.fillText(f,T,x),e.restore()}}class _R{constructor(e){this._observer=Nd(()=>{const{intersectionPageNo:t,visiblePageNoList:n}=this.getPageVisibleInfo();this.draw.setIntersectionPageNo(t),this.draw.setVisiblePageNoList(n)},150),this.draw=e,this.options=e.getOptions(),this.scrollContainer=this.getScrollContainer(),setTimeout(()=>{window.scrollY||this._observer()}),this._addEvent()}getScrollContainer(){return this.options.scrollContainerSelector&&document.querySelector(this.options.scrollContainerSelector)||document}_addEvent(){this.scrollContainer.addEventListener("scroll",this._observer)}removeEvent(){this.scrollContainer.removeEventListener("scroll",this._observer)}getElementVisibleInfo(e){const t=e.getBoundingClientRect(),n=this.scrollContainer===document?Math.max(document.documentElement.clientHeight,window.innerHeight):this.scrollContainer.clientHeight,i=Math.min(t.bottom,n)-Math.max(t.top,0);return{intersectionHeight:i>0?i:0}}getPageVisibleInfo(){const e=this.draw.getPageList(),t=[];let n=0,i=0;for(let o=0;o<e.length;o++){const a=e[o],{intersectionHeight:s}=this.getElementVisibleInfo(a);if(i&&!s)break;s&&t.push(o),s>i&&(i=s,n=o)}return{intersectionPageNo:n,visiblePageNoList:t}}}class IR{constructor(e){this.step=5,this.thresholdPoints=[70,40,10,20],this._mousedown=()=>{this.isMousedown=!0},this._mouseup=()=>{this.isMousedown=!1,this._stopMove()},this._mousemove=t=>{if(!this.isMousedown||this.rangeManager.getIsCollapsed())return;const{x:n,y:i}=t,o=document.documentElement.clientWidth,a=document.documentElement.clientHeight;i<this.thresholdPoints[0]?this._startMove(ir.UP):a-i<=this.thresholdPoints[1]?this._startMove(ir.DOWN):n<this.thresholdPoints[2]?this._startMove(ir.LEFT):o-n<this.thresholdPoints[3]?this._startMove(ir.RIGHT):this._stopMove()},this.requestAnimationFrameId=null,this.isMousedown=!1,this.isMoving=!1,this.rangeManager=e.getRange(),this._addEvent()}_addEvent(){document.addEventListener("mousedown",this._mousedown),document.addEventListener("mousemove",this._mousemove),document.addEventListener("mouseup",this._mouseup)}removeEvent(){document.removeEventListener("mousedown",this._mousedown),document.removeEventListener("mousemove",this._mousemove),document.removeEventListener("mouseup",this._mouseup)}_move(e){const t=window.scrollX,n=window.scrollY;e===ir.DOWN?window.scrollTo(t,n+this.step):e===ir.UP?window.scrollTo(t,n-this.step):e===ir.LEFT?window.scrollTo(t-this.step,n):window.scrollTo(t+this.step,n),this.requestAnimationFrameId=window.requestAnimationFrame(this._move.bind(this,e))}_startMove(e){this.isMoving||(this.isMoving=!0,this._move(e))}_stopMove(){this.requestAnimationFrameId&&(window.cancelAnimationFrame(this.requestAnimationFrameId),this.requestAnimationFrameId=null,this.isMoving=!1)}}var hn=(r=>(r.ALL="all",r.EMPTY="empty",r.EXTERNAL="external",r))(hn||{}),Mr=(r=>(r.TOP="top",r.RIGHT="right",r.BOTTOM="bottom",r.LEFT="left",r))(Mr||{}),_o=(r=>(r.FORWARD="forward",r.BACK="back",r))(_o||{});class NR{constructor(e){this.draw=e,this.range=e.getRange(),this.options=e.getOptions()}getTrListGroupByCol(e){var n;const t=gt(e);for(let i=0;i<e.length;i++){const o=t[i];for(let a=o.tdList.length-1;a>=0;a--){const s=o.tdList[a],{rowspan:l,rowIndex:c,colIndex:u}=s,h=c+l-1;if(h!==a){const d=o.tdList.splice(a,1)[0];(n=t[h])==null||n.tdList.splice(u,0,d)}}}return t}getRangeRowCol(){const{isTable:e,index:t,trIndex:n,tdIndex:i}=this.draw.getPosition().getPositionContext();if(!e)return null;const{isCrossRowCol:o,startTdIndex:a,endTdIndex:s,startTrIndex:l,endTrIndex:c}=this.range.getRange(),d=this.draw.getOriginalElementList()[t].trList;if(!o)return[[d[n].tdList[i]]];let f=d[l].tdList[a],p=d[c].tdList[s];(f.x>p.x||f.y>p.y)&&([f,p]=[p,f]);const g=f.colIndex,v=p.colIndex+(p.colspan-1),R=f.rowIndex,m=p.rowIndex+(p.rowspan-1),x=[];for(let T=0;T<d.length;T++){const P=d[T],A=[];for(let D=0;D<P.tdList.length;D++){const W=P.tdList[D],_=W.colIndex,Q=W.rowIndex;_>=g&&_<=v&&Q>=R&&Q<=m&&A.push(W)}A.length&&x.push(A)}return x.length?x:null}_drawOuterBorder(e){const{ctx:t,startX:n,startY:i,width:o,height:a,isDrawFullBorder:s}=e;t.beginPath();const l=Math.round(n),c=Math.round(i);t.translate(.5,.5),s?t.rect(l,c,o,a):(t.moveTo(l,c+a),t.lineTo(l,c),t.lineTo(l+o,c)),t.stroke(),t.translate(-.5,-.5)}_drawSlash(e,t,n,i){var u,h;const{scale:o}=this.options;e.save();const a=t.width*o,s=t.height*o,l=Math.round(t.x*o+n),c=Math.round(t.y*o+i);(u=t.slashTypes)!=null&&u.includes(_o.FORWARD)&&(e.moveTo(l+a,c),e.lineTo(l,c+s)),(h=t.slashTypes)!=null&&h.includes(_o.BACK)&&(e.moveTo(l,c),e.lineTo(l+a,c+s)),e.stroke(),e.restore()}_drawBorder(e,t,n,i){var f,p,g,v,R,m;const{colgroup:o,trList:a,borderType:s}=t;if(!o||!a)return;const{scale:l}=this.options,c=t.width*l,u=t.height*l,h=s===hn.EMPTY,d=s===hn.EXTERNAL;e.save(),e.lineWidth=l,h||this._drawOuterBorder({ctx:e,startX:n,startY:i,width:c,height:u,isDrawFullBorder:d});for(let x=0;x<a.length;x++){const T=a[x];for(let P=0;P<T.tdList.length;P++){const A=T.tdList[P];if((f=A.slashTypes)!=null&&f.length&&this._drawSlash(e,A,n,i),!((p=A.borderTypes)!=null&&p.length)&&(h||d))continue;const D=A.width*l,W=A.height*l,_=Math.round(A.x*l+n+D),Q=Math.round(A.y*l+i);e.translate(.5,.5),e.beginPath(),(g=A.borderTypes)!=null&&g.includes(Mr.TOP)&&(e.moveTo(_-D,Q),e.lineTo(_,Q),e.stroke()),(v=A.borderTypes)!=null&&v.includes(Mr.RIGHT)&&(e.moveTo(_,Q),e.lineTo(_,Q+W),e.stroke()),(R=A.borderTypes)!=null&&R.includes(Mr.BOTTOM)&&(e.moveTo(_,Q+W),e.lineTo(_-D,Q+W),e.stroke()),(m=A.borderTypes)!=null&&m.includes(Mr.LEFT)&&(e.moveTo(_-D,Q),e.lineTo(_-D,Q+W),e.stroke()),!h&&!d&&(e.moveTo(_,Q),e.lineTo(_,Q+W),e.lineTo(_-D,Q+W),e.stroke()),e.translate(-.5,-.5)}}e.restore()}_drawBackgroundColor(e,t,n,i){const{trList:o}=t;if(!o)return;const{scale:a}=this.options;for(let s=0;s<o.length;s++){const l=o[s];for(let c=0;c<l.tdList.length;c++){const u=l.tdList[c];if(!u.backgroundColor)continue;e.save();const h=u.width*a,d=u.height*a,f=Math.round(u.x*a+n),p=Math.round(u.y*a+i);e.fillStyle=u.backgroundColor,e.fillRect(f,p,h,d),e.restore()}}}getTableWidth(e){return e.colgroup.reduce((t,n)=>t+n.width,0)}getTableHeight(e){const t=e.trList;return t!=null&&t.length?this.getTdListByColIndex(t,0).reduce((n,i)=>n+i.height,0):0}getRowCountByColIndex(e,t){return this.getTdListByColIndex(e,t).reduce((n,i)=>n+i.rowspan,0)}getTdListByColIndex(e,t){const n=[];for(let i=0;i<e.length;i++){const o=e[i].tdList;for(let a=0;a<o.length;a++){const s=o[a],l=s.colIndex,c=l+s.colspan-1;t>=l&&t<=c&&n.push(s)}}return n}computeRowColInfo(e){const{colgroup:t,trList:n}=e;if(!t||!n)return;let i=0,o=0;for(let a=0;a<n.length;a++){const s=n[a],l=n.length-1===a;let c=0;for(let u=0;u<s.tdList.length;u++){const h=s.tdList[u];let d=0;if(n.length>1&&a!==0){const m=s.tdList[u-1],x=m?m.colIndex+m.colspan:u;for(let T=x;T<t.length;T++)if(this.getRowCountByColIndex(n.slice(0,a),T)===a){d=T;let A=0;for(let D=0;D<T;D++)A+=t[D].width;i=A;break}}else{const m=s.tdList[u-1];m&&(d=m.colIndex+m.colspan)}let f=0;for(let m=0;m<h.colspan;m++)f+=t[m+d].width;let p=0;for(let m=0;m<h.rowspan;m++)p+=(n[m+a]||n[a]).height;(c===0||c>p)&&(c=p);const g=s.tdList.length-1===u;let v=l;if(!v&&h.rowspan>1){const m=n.length-1-a;v=h.rowspan-1===m}const R=l&&g;h.isLastRowTd=g,h.isLastColTd=v,h.isLastTd=R,h.x=i,h.y=o,h.width=f,h.height=p,h.rowIndex=a,h.colIndex=d,i+=f,g&&!R&&(i=0,o+=c)}}}drawRange(e,t,n,i){const{scale:o,rangeAlpha:a,rangeColor:s}=this.options,{type:l,trList:c}=t;if(!c||l!==ae.TABLE)return;const{isCrossRowCol:u,startTdIndex:h,endTdIndex:d,startTrIndex:f,endTrIndex:p}=this.range.getRange();if(!u)return;let g=c[f].tdList[h],v=c[p].tdList[d];(g.x>v.x||g.y>v.y)&&([g,v]=[v,g]);const R=g.colIndex,m=v.colIndex+(v.colspan-1),x=g.rowIndex,T=v.rowIndex+(v.rowspan-1);e.save();for(let P=0;P<c.length;P++){const A=c[P];for(let D=0;D<A.tdList.length;D++){const W=A.tdList[D],_=W.colIndex,Q=W.rowIndex;if(_>=R&&_<=m&&Q>=x&&Q<=T){const te=W.x*o,O=W.y*o,I=W.width*o,y=W.height*o;e.globalAlpha=a,e.fillStyle=s,e.fillRect(te+n,O+i,I,y)}}}e.restore()}render(e,t,n,i){this._drawBackgroundColor(e,t,n,i),this._drawBorder(e,t,n,i)}}var _n=(r=>(r.ROW="row",r.COL="col",r))(_n||{});class MR{constructor(e){this.MIN_TD_WIDTH=20,this.ROW_COL_OFFSET=18,this.BORDER_VALUE=4,this.draw=e,this.canvas=e.getPage(),this.options=e.getOptions(),this.position=e.getPosition(),this.container=e.getContainer(),this.toolRowContainer=null,this.toolColContainer=null,this.toolBorderContainer=null,this.anchorLine=null,this.mousedownX=0,this.mousedownY=0}dispose(){var e,t,n;(e=this.toolRowContainer)==null||e.remove(),(t=this.toolColContainer)==null||t.remove(),(n=this.toolBorderContainer)==null||n.remove(),this.toolRowContainer=null,this.toolColContainer=null,this.toolBorderContainer=null}render(){const{isTable:e,index:t,trIndex:n,tdIndex:i}=this.position.getPositionContext();if(!e)return;this.dispose();const{scale:o}=this.options,a=this.draw.getOriginalElementList(),s=this.position.getOriginalPositionList(),l=a[t],c=s[t],{colgroup:u,trList:h}=l,{coordinate:{leftTop:d}}=c,f=this.draw.getHeight(),p=this.draw.getPageGap(),g=this.draw.getPageNo()*(f+p),v=d[0],R=d[1]+g,m=l.trList[n].tdList[i],x=m.rowIndex,T=m.colIndex,P=h.map(O=>O.height),A=document.createElement("div");A.classList.add(`${Fe}-table-tool__row`),A.style.transform=`translateX(-${this.ROW_COL_OFFSET*o}px)`;for(let O=0;O<P.length;O++){const I=P[O]*o,y=document.createElement("div");y.classList.add(`${Fe}-table-tool__row__item`),O===x&&y.classList.add("active");const L=document.createElement("div");L.classList.add(`${Fe}-table-tool__anchor`),L.onmousedown=k=>{this._mousedown({evt:k,element:l,index:O,order:_n.ROW})},y.append(L),y.style.height=`${I}px`,A.append(y)}A.style.left=`${v}px`,A.style.top=`${R}px`,this.container.append(A),this.toolRowContainer=A;const D=u.map(O=>O.width),W=document.createElement("div");W.classList.add(`${Fe}-table-tool__col`),W.style.transform=`translateY(-${this.ROW_COL_OFFSET*o}px)`;for(let O=0;O<D.length;O++){const I=D[O]*o,y=document.createElement("div");y.classList.add(`${Fe}-table-tool__col__item`),O===T&&y.classList.add("active");const L=document.createElement("div");L.classList.add(`${Fe}-table-tool__anchor`),L.onmousedown=k=>{this._mousedown({evt:k,element:l,index:O,order:_n.COL})},y.append(L),y.style.width=`${I}px`,W.append(y)}W.style.left=`${v}px`,W.style.top=`${R}px`,this.container.append(W),this.toolColContainer=W;const _=l.height*o,Q=l.width*o,te=document.createElement("div");te.classList.add(`${Fe}-table-tool__border`),te.style.height=`${_}px`,te.style.width=`${Q}px`,te.style.left=`${v}px`,te.style.top=`${R}px`;for(let O=0;O<h.length;O++){const I=h[O];for(let y=0;y<I.tdList.length;y++){const L=I.tdList[y],k=document.createElement("div");k.classList.add(`${Fe}-table-tool__border__row`),k.style.width=`${L.width*o}px`,k.style.height=`${this.BORDER_VALUE}px`,k.style.top=`${(L.y+L.height)*o-this.BORDER_VALUE/2}px`,k.style.left=`${L.x*o}px`,k.onmousedown=Y=>{this._mousedown({evt:Y,element:l,index:L.rowIndex+L.rowspan-1,order:_n.ROW})},te.appendChild(k);const F=document.createElement("div");F.classList.add(`${Fe}-table-tool__border__col`),F.style.width=`${this.BORDER_VALUE}px`,F.style.height=`${L.height*o}px`,F.style.top=`${L.y*o}px`,F.style.left=`${(L.x+L.width)*o-this.BORDER_VALUE/2}px`,F.onmousedown=Y=>{this._mousedown({evt:Y,element:l,index:L.colIndex+L.colspan-1,order:_n.COL})},te.appendChild(F)}}this.container.append(te),this.toolBorderContainer=te}_mousedown(e){const{evt:t,index:n,order:i,element:o}=e;this.canvas=this.draw.getPage();const{scale:a}=this.options,s=this.draw.getWidth(),l=this.draw.getHeight(),c=this.draw.getPageGap(),u=this.draw.getPageNo()*(l+c);this.mousedownX=t.x,this.mousedownY=t.y;const h=t.target,d=this.canvas.getBoundingClientRect(),f=window.getComputedStyle(h).cursor;document.body.style.cursor=f,this.canvas.style.cursor=f;let p=0,g=0;const v=document.createElement("div");v.classList.add(`${Fe}-table-anchor__line`),i===_n.ROW?(v.classList.add(`${Fe}-table-anchor__line__row`),v.style.width=`${s}px`,p=0,g=u+this.mousedownY-d.top):(v.classList.add(`${Fe}-table-anchor__line__col`),v.style.height=`${l}px`,p=this.mousedownX-d.left,g=u),v.style.left=`${p}px`,v.style.top=`${g}px`,this.container.append(v),this.anchorLine=v;let R=0,m=0;const x=T=>{const P=this._mousemove(T,i,p,g);P&&(R=P.dx,m=P.dy)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",()=>{var P;let T=!1;if(i===_n.ROW){const A=o.trList,D=A[n]||A[n-1],{defaultTrMinHeight:W}=this.options.table;m<0&&D.height+m<W&&(m=W-D.height),m&&(D.height+=m,D.minHeight=D.height,T=!0)}else{const{colgroup:A}=o;if(A&&R){const D=this.draw.getInnerWidth(),W=A[n].width;R<0&&W+R<this.MIN_TD_WIDTH&&(R=this.MIN_TD_WIDTH-W);const _=(P=A[n+1])==null?void 0:P.width;R>0&&_&&_-R<this.MIN_TD_WIDTH&&(R=_-this.MIN_TD_WIDTH);const Q=W+R;if(n===A.length-1){let te=0;for(let O=0;O<A.length;O++){const I=A[O];O===n+1&&(te-=R),O===n&&(te+=Q),O!==n&&(te+=I.width)}if(te>D){const O=o.width;R=D-O}}R&&(A.length-1!==n&&(A[n+1].width-=R/a),A[n].width+=R/a,T=!0)}}T&&this.draw.render({isSetCursor:!1}),v.remove(),document.removeEventListener("mousemove",x),document.body.style.cursor="",this.canvas.style.cursor="text"},{once:!0}),t.preventDefault()}_mousemove(e,t,n,i){if(!this.anchorLine)return null;const o=e.x-this.mousedownX,a=e.y-this.mousedownY;return t===_n.ROW?this.anchorLine.style.top=`${i+a}px`:this.anchorLine.style.left=`${n+o}px`,e.preventDefault(),{dx:o,dy:a}}}class LR{constructor(e){this.draw=e,this.options=e.getOptions(),this.container=e.getContainer();const{hyperlinkPopupContainer:t,hyperlinkDom:n}=this._createHyperlinkPopupDom();this.hyperlinkDom=n,this.hyperlinkPopupContainer=t}_createHyperlinkPopupDom(){const e=document.createElement("div");e.classList.add(`${Fe}-hyperlink-popup`);const t=document.createElement("a");return t.target="_blank",t.rel="noopener",e.append(t),this.container.append(e),{hyperlinkPopupContainer:e,hyperlinkDom:t}}drawHyperlinkPopup(e,t){const{coordinate:{leftTop:[n,i]},lineHeight:o}=t,a=this.draw.getHeight(),s=this.draw.getPageGap(),l=this.draw.getPageNo()*(a+s);this.hyperlinkPopupContainer.style.display="block",this.hyperlinkPopupContainer.style.left=`${n}px`,this.hyperlinkPopupContainer.style.top=`${i+l+o}px`;const c=e.url||"#";this.hyperlinkDom.href=c,this.hyperlinkDom.title=c,this.hyperlinkDom.innerText=c}clearHyperlinkPopup(){this.hyperlinkPopupContainer.style.display="none"}openHyperlink(e){const t=window.open(e.url,"_blank");t&&(t.opener=null)}render(e,t,n,i){e.save(),e.font=t.style,t.color||(t.color=this.options.defaultHyperlinkColor),e.fillStyle=t.color,t.underline===void 0&&(t.underline=!0),e.fillText(t.value,n,i),e.restore()}}class FR{constructor(e,t){this.draw=e,this.position=e.getPosition(),this.options=e.getOptions(),this.elementList=t||[],this.rowList=[],this.positionList=[]}getRowList(){return this.rowList}setElementList(e){this.elementList=e}getElementList(){return this.elementList}getPositionList(){return this.positionList}compute(){this.recovery(),this._computeRowList(),this._computePositionList()}recovery(){this.rowList=[],this.positionList=[]}_computeRowList(){const e=this.draw.getInnerWidth();this.rowList=this.draw.computeRowList({innerWidth:e,elementList:this.elementList})}_computePositionList(){const e=this.getHeaderTop(),t=this.draw.getInnerWidth(),i=this.draw.getMargins()[3],o=e;this.position.computePageRowPosition({positionList:this.positionList,rowList:this.rowList,pageNo:0,startRowIndex:0,startIndex:0,startX:i,startY:o,innerWidth:t,zone:Ke.HEADER})}getHeaderTop(){const{header:{top:e,disabled:t},scale:n}=this.options;return t?0:Math.floor(e*n)}getMaxHeight(){const{header:{maxHeightRadio:e}}=this.options,t=this.draw.getHeight();return Math.floor(t*_d[e])}getHeight(){const e=this.getMaxHeight(),t=this.getRowHeight();return t>e?e:t}getRowHeight(){return this.rowList.reduce((e,t)=>e+t.height,0)}getExtraHeight(){const e=this.draw.getMargins(),t=this.getHeight(),i=this.getHeaderTop()+t-e[0];return i<=0?0:i}render(e,t){e.globalAlpha=1;const n=this.draw.getInnerWidth(),i=this.getMaxHeight(),o=[];let a=0;for(let s=0;s<this.rowList.length;s++){const l=this.rowList[s];if(a+l.height>i)break;o.push(l),a+=l.height}this.draw.drawRow(e,{elementList:this.elementList,positionList:this.positionList,rowList:o,pageNo:t,startIndex:0,innerWidth:n,zone:Ke.HEADER})}}class CR{getOffsetY(e){return-e.metrics.height/2}render(e,t,n,i){e.save(),e.font=t.style,t.color&&(e.fillStyle=t.color),e.fillText(t.value,n,i+this.getOffsetY(t)),e.restore()}}class AR{getOffsetY(e){return e.metrics.height/2}render(e,t,n,i){e.save(),e.font=t.style,t.color&&(e.fillStyle=t.color),e.fillText(t.value,n,i+this.getOffsetY(t)),e.restore()}}class DR{constructor(e){this.options=e.getOptions()}render(e,t,n,i){var c;e.save();const{scale:o,separator:{lineWidth:a,strokeStyle:s}}=this.options;e.lineWidth=a*o,e.strokeStyle=t.color||s,(c=t.dashArray)!=null&&c.length&&e.setLineDash(t.dashArray);const l=Math.round(i);e.translate(0,e.lineWidth/2),e.beginPath(),e.moveTo(n,l),e.lineTo(n+t.width*o,l),e.stroke(),e.restore()}}class XR{constructor(e){this.draw=e,this.options=e.getOptions(),this.i18n=e.getI18n()}render(e,t,n,i){const{pageBreak:{font:o,fontSize:a,lineDash:s}}=this.options,l=this.i18n.t("pageBreak.displayName"),{scale:c,defaultRowMargin:u}=this.options,h=a*c,d=t.width*c,f=this.draw.getDefaultBasicRowMarginHeight()*u;e.save(),e.font=`${h}px ${o}`;const p=e.measureText(l),g=(d-p.width)/2;e.setLineDash(s),e.translate(0,.5+f),e.beginPath(),e.moveTo(n,i),e.lineTo(n+g,i),e.moveTo(n+g+p.width,i),e.lineTo(n+d,i),e.stroke(),e.fillText(l,n+g,i+p.actualBoundingBoxAscent-h/2),e.restore()}}class UR{constructor(e){this.draw=e,this.options=e.getOptions()}render(e){const{watermark:{data:t,opacity:n,font:i,size:o,color:a},scale:s}=this.options,l=this.draw.getWidth(),c=this.draw.getHeight(),u=l/2,h=c/2;e.save(),e.globalAlpha=n,e.font=`${o*s}px ${i}`,e.fillStyle=a;const d=e.measureText(t);e.translate(u,h),e.rotate(-45*Math.PI/180),e.fillText(t,-d.width/2,d.actualBoundingBoxAscent-o/2),e.restore()}}class WR{constructor(e){this.draw=e.getDraw(),this.options=this.draw.getOptions(),this.highlightList=[],this.highlightMatchResult=[]}getHighlightMatchResult(){return this.highlightMatchResult}getHighlightList(){return this.highlightList}setHighlightList(e){this.highlightList=e}computeHighlightList(){const e=this.draw.getSearch(),t=(n,i)=>{var a;let o=0;for(;o<n.length;){const s=n[o];if(o++,s.type===ae.TABLE){const g=s.trList;for(let v=0;v<g.length;v++){const R=g[v];for(let m=0;m<R.tdList.length;m++){const x=R.tdList[m],T={tableId:s.id,tableIndex:o-1,trIndex:v,tdIndex:m,tdId:x.id};t(x.value,T)}}}const l=(a=s==null?void 0:s.control)==null?void 0:a.conceptId;if(!l)continue;const c=this.highlightList.findIndex(g=>g.conceptId===l);if(!~c)continue;const u=o;let h=o;for(;h<n.length&&n[h].controlId===s.controlId;)h++;o=h;const d=n.slice(u,h),f=this.highlightList[c],{ruleList:p}=f;for(let g=0;g<p.length;g++){const v=p[g],R=e.getMatchList(v.keyword,d);this.highlightMatchResult.push(...R.map(m=>({...m,...v,...i,index:m.index+u})))}}};this.highlightMatchResult=[],t(this.draw.getOriginalMainElementList())}renderHighlightList(e,t){var s,l,c;if(!((s=this.highlightMatchResult)!=null&&s.length))return;const{searchMatchAlpha:n,searchMatchColor:i}=this.options,o=this.draw.getPosition().getOriginalPositionList(),a=this.draw.getOriginalElementList();e.save();for(let u=0;u<this.highlightMatchResult.length;u++){const h=this.highlightMatchResult[u];let d=null;if(h.tableId){const{tableIndex:P,trIndex:A,tdIndex:D,index:W}=h;d=(c=(l=a[P])==null?void 0:l.trList[A].tdList[D])==null?void 0:c.positionList[W]}else d=o[h.index];if(!d)continue;const{coordinate:{leftTop:f,leftBottom:p,rightTop:g},pageNo:v}=d;if(v!==t)continue;e.fillStyle=h.backgroundColor||i,e.globalAlpha=h.alpha||n;const R=f[0],m=f[1],x=g[0]-f[0],T=p[1]-f[1];e.fillRect(R,m,x,T)}e.restore()}}class VR{constructor(e){this.borderRect=this.clearBorderInfo(),this.options=e.getOptions()}clearBorderInfo(){return this.borderRect={x:0,y:0,width:0,height:0},this.borderRect}recordBorderInfo(e,t,n,i){!this.borderRect.width&&(this.borderRect.x=e,this.borderRect.y=t,this.borderRect.height=i),this.borderRect.width+=n}render(e){if(!this.borderRect.width)return;const{scale:t,control:{borderWidth:n,borderColor:i}}=this.options,{x:o,y:a,width:s,height:l}=this.borderRect;e.save(),e.translate(0,1*t),e.lineWidth=n*t,e.strokeStyle=i,e.beginPath(),e.rect(o,a,s,l),e.stroke(),e.restore(),this.clearBorderInfo()}}class to{constructor(e,t){this.element=e,this.control=t,this.isPopup=!1,this.selectDom=null}setElement(e){this.element=e}getElement(){return this.element}getIsPopup(){return this.isPopup}getCode(){var e;return((e=this.element.control)==null?void 0:e.code)||null}getValue(e={}){const t=e.elementList||this.control.getElementList(),{startIndex:n}=e.range||this.control.getRange(),i=t[n],o=[];let a=n;for(;a>0;){const l=t[a];if(l.controlId!==i.controlId||l.controlComponent===ye.PREFIX)break;l.controlComponent===ye.VALUE&&o.unshift(l),a--}let s=n+1;for(;s<t.length;){const l=t[s];if(l.controlId!==i.controlId||l.controlComponent===ye.POSTFIX)break;l.controlComponent===ye.VALUE&&o.push(l),s++}return o}setValue(){return-1}keydown(e){if(this.control.getIsDisabledControl())return null;const t=this.control.getElementList(),n=this.control.getRange();this.control.shrinkBoundary();const{startIndex:i,endIndex:o}=n,a=t[i],s=t[o];if(e.key===Ce.Backspace)return i!==o?this.clearSelect():a.controlComponent===ye.PREFIX||s.controlComponent===ye.POSTFIX||a.controlComponent===ye.PLACEHOLDER?this.control.removeControl(i):this.clearSelect();if(e.key===Ce.Delete){if(i!==o)return this.clearSelect();{const l=t[o+1];return a.controlComponent===ye.PREFIX&&l.controlComponent===ye.PLACEHOLDER||l.controlComponent===ye.POSTFIX||a.controlComponent===ye.PLACEHOLDER?this.control.removeControl(i):this.clearSelect()}}return o}cut(){if(this.control.getIsDisabledControl())return-1;this.control.shrinkBoundary();const{startIndex:e,endIndex:t}=this.control.getRange();return e===t?e:this.clearSelect()}clearSelect(e={},t={}){const{isIgnoreDisabledRule:n=!1,isAddPlaceholder:i=!0}=t;if(!n&&this.control.getIsDisabledControl())return-1;const o=e.elementList||this.control.getElementList(),{startIndex:a}=e.range||this.control.getRange(),s=o[a];let l=-1,c=-1,u=a;for(;u>0;){const f=o[u];if(f.controlId!==s.controlId||f.controlComponent===ye.PREFIX){l=u;break}u--}let h=a+1;for(;h<o.length;){const f=o[h];if(f.controlId!==s.controlId||f.controlComponent===ye.POSTFIX){c=h-1;break}h++}return!~l||!~c?-1:(this.control.getDraw().spliceElementList(o,l+1,c-l),i&&this.control.addPlaceholder(u,e),this.element.control.code=null,u)}setSelect(e,t={},n={}){if(!n.isIgnoreDisabledRule&&this.control.getIsDisabledControl())return;const i=t.elementList||this.control.getElementList(),o=t.range||this.control.getRange(),a=this.element.control,s=a.code;if(e===s){this.control.repaintControl({curIndex:o.startIndex,isCompute:!1,isSubmitHistory:!1}),this.destroy();return}const l=a.valueSets;if(!Array.isArray(l)||!l.length)return;const c=l.find(R=>R.code===e);if(!c)return;const u=this.getValue(t)[0],h=u?un(u,ri):un(i[o.startIndex],Ci),d=this.clearSelect(t,{isAddPlaceholder:!1});if(!~d)return;s||this.control.removePlaceholder(d,t);const f=Eo(i[d],ri),p=d+1,g=Wr(c.value),v=this.control.getDraw();for(let R=0;R<g.length;R++){const m={...h,...f,type:ae.TEXT,value:g[R],controlComponent:ye.VALUE};ar(i,[m],d),v.spliceElementList(i,p+R,0,m)}if(a.code=e,!t.range){const R=p+g.length-1;this.control.repaintControl({curIndex:R}),this.destroy()}}_createSelectPopupDom(){const t=this.element.control.valueSets;if(!Array.isArray(t)||!t.length)return;const n=this.control.getPosition();if(!n)return;const i=document.createElement("div");i.classList.add(`${Fe}-select-control-popup`),i.setAttribute(fn,pn.POPUP);const o=document.createElement("ul");for(let h=0;h<t.length;h++){const d=t[h],f=document.createElement("li");this.getCode()===d.code&&f.classList.add("active"),f.onclick=()=>{this.setSelect(d.code)},f.append(document.createTextNode(d.value)),o.append(f)}i.append(o);const{coordinate:{leftTop:[a,s]},lineHeight:l}=n,c=this.control.getPreY();i.style.left=`${a}px`,i.style.top=`${s+c+l}px`,this.control.getContainer().append(i),this.selectDom=i}awake(){var n;if(this.isPopup||this.control.getIsDisabledControl())return;const{startIndex:e}=this.control.getRange();((n=this.control.getElementList()[e+1])==null?void 0:n.controlId)===this.element.controlId&&(this._createSelectPopupDom(),this.isPopup=!0)}destroy(){var e;!this.isPopup||((e=this.selectDom)==null||e.remove(),this.isPopup=!1)}}class qu{constructor(e,t){this.element=e,this.control=t}setElement(e){this.element=e}getElement(){return this.element}getValue(e={}){const t=e.elementList||this.control.getElementList(),{startIndex:n}=e.range||this.control.getRange(),i=t[n],o=[];let a=n;for(;a>0;){const l=t[a];if(l.controlId!==i.controlId||l.controlComponent===ye.PREFIX)break;l.controlComponent===ye.VALUE&&o.unshift(l),a--}let s=n+1;for(;s<t.length;){const l=t[s];if(l.controlId!==i.controlId||l.controlComponent===ye.POSTFIX)break;l.controlComponent===ye.VALUE&&o.push(l),s++}return o}setValue(e,t={},n={}){if(!n.isIgnoreDisabledRule&&this.control.getIsDisabledControl())return-1;const i=t.elementList||this.control.getElementList(),o=t.range||this.control.getRange();this.control.shrinkBoundary(t);const{startIndex:a,endIndex:s}=o,l=this.control.getDraw();a!==s?l.spliceElementList(i,a+1,s-a):this.control.removePlaceholder(a,t);const c=i[a],u=c.type&&!Gr.includes(c.type)||c.controlComponent===ye.PREFIX?un(c,["control","controlId",...Ci]):Eo(c,["type"]),h=o.startIndex+1;for(let d=0;d<e.length;d++){const f={...u,...e[d],controlComponent:ye.VALUE};ar(i,[f],a),l.spliceElementList(i,h+d,0,f)}return h+e.length-1}clearValue(e={},t={}){if(!t.isIgnoreDisabledRule&&this.control.getIsDisabledControl())return-1;const n=e.elementList||this.control.getElementList(),i=e.range||this.control.getRange(),{startIndex:o,endIndex:a}=i;return this.control.getDraw().spliceElementList(n,o+1,a-o),this.getValue(e).length||this.control.addPlaceholder(o),o}keydown(e){if(this.control.getIsDisabledControl())return null;const t=this.control.getElementList(),n=this.control.getRange();this.control.shrinkBoundary();const{startIndex:i,endIndex:o}=n,a=t[i],s=t[o],l=this.control.getDraw();if(e.key===Ce.Backspace)return i!==o?(l.spliceElementList(t,i+1,o-i),this.getValue().length||this.control.addPlaceholder(i),i):a.controlComponent===ye.PREFIX||s.controlComponent===ye.POSTFIX||a.controlComponent===ye.PLACEHOLDER?this.control.removeControl(i):(l.spliceElementList(t,i,1),this.getValue().length||this.control.addPlaceholder(i-1),i-1);if(e.key===Ce.Delete){if(i!==o)return l.spliceElementList(t,i+1,o-i),this.getValue().length||this.control.addPlaceholder(i),i;{const c=t[o+1];return a.controlComponent===ye.PREFIX&&c.controlComponent===ye.PLACEHOLDER||c.controlComponent===ye.POSTFIX||a.controlComponent===ye.PLACEHOLDER?this.control.removeControl(i):(l.spliceElementList(t,i+1,1),this.getValue().length||this.control.addPlaceholder(i),i)}}return o}cut(){if(this.control.getIsDisabledControl())return-1;this.control.shrinkBoundary();const{startIndex:e,endIndex:t}=this.control.getRange();if(e===t)return e;const n=this.control.getDraw(),i=this.control.getElementList();return n.spliceElementList(i,e+1,t-e),this.getValue().length||this.control.addPlaceholder(e),e}}class $d{constructor(e,t={}){this.draw=e,this.options=t,this.lang=this._getLang(),this.now=new Date,this.dom=this._createDom(),this.renderOptions=null,this.isDatePicker=!0,this.pickDate=null,this._bindEvent()}_createDom(){const e=document.createElement("div");e.classList.add(`${Fe}-date-container`),e.setAttribute(fn,pn.POPUP);const t=document.createElement("div");t.classList.add(`${Fe}-date-wrap`);const n=document.createElement("div");n.classList.add(`${Fe}-date-title`);const i=document.createElement("span");i.classList.add(`${Fe}-date-title__pre-year`),i.innerText="<<";const o=document.createElement("span");o.classList.add(`${Fe}-date-title__pre-month`),o.innerText="<";const a=document.createElement("span");a.classList.add(`${Fe}-date-title__now`);const s=document.createElement("span");s.classList.add(`${Fe}-date-title__next-month`),s.innerText=">";const l=document.createElement("span");l.classList.add(`${Fe}-date-title__next-year`),l.innerText=">>",n.append(i),n.append(o),n.append(a),n.append(s),n.append(l);const c=document.createElement("div");c.classList.add(`${Fe}-date-week`);const{weeks:{sun:u,mon:h,tue:d,wed:f,thu:p,fri:g,sat:v}}=this.lang;[u,h,d,f,p,g,v].forEach(O=>{const I=document.createElement("span");I.innerText=`${O}`,c.append(I)});const m=document.createElement("div");m.classList.add(`${Fe}-date-day`),t.append(n),t.append(c),t.append(m);const x=document.createElement("ul");x.classList.add(`${Fe}-time-wrap`);let T,P,A;[this.lang.hour,this.lang.minute,this.lang.second].forEach((O,I)=>{const y=document.createElement("li"),L=document.createElement("span");L.innerText=O,y.append(L);const k=document.createElement("ol"),F=I===0,Y=I===1,V=F?24:60;for(let ie=0;ie<V;ie++){const U=document.createElement("li");U.innerText=`${String(ie).padStart(2,"0")}`,U.setAttribute("data-id",`${ie}`),k.append(U)}F?T=k:Y?P=k:A=k,y.append(k),x.append(y)});const W=document.createElement("div");W.classList.add(`${Fe}-date-menu`);const _=document.createElement("button");_.classList.add(`${Fe}-date-menu__time`),_.innerText=this.lang.timeSelect;const Q=document.createElement("button");Q.classList.add(`${Fe}-date-menu__now`),Q.innerText=this.lang.now;const te=document.createElement("button");return te.classList.add(`${Fe}-date-menu__submit`),te.innerText=this.lang.confirm,W.append(_),W.append(Q),W.append(te),e.append(t),e.append(x),e.append(W),this.draw.getContainer().append(e),{container:e,dateWrap:t,datePickerWeek:c,timeWrap:x,title:{preYear:i,preMonth:o,now:a,nextMonth:s,nextYear:l},day:m,time:{hour:T,minute:P,second:A},menu:{time:_,now:Q,submit:te}}}_bindEvent(){this.dom.title.preYear.onclick=()=>{this._preYear()},this.dom.title.preMonth.onclick=()=>{this._preMonth()},this.dom.title.nextMonth.onclick=()=>{this._nextMonth()},this.dom.title.nextYear.onclick=()=>{this._nextYear()},this.dom.menu.time.onclick=()=>{this.isDatePicker=!this.isDatePicker,this._toggleDateTimePicker()},this.dom.menu.now.onclick=()=>{this._now(),this._submit()},this.dom.menu.submit.onclick=()=>{this.dispose(),this._submit()},this.dom.time.hour.onclick=e=>{if(!this.pickDate)return;const n=e.target.dataset.id;!n||(this.pickDate.setHours(Number(n)),this._setTimePick(!1))},this.dom.time.minute.onclick=e=>{if(!this.pickDate)return;const n=e.target.dataset.id;!n||(this.pickDate.setMinutes(Number(n)),this._setTimePick(!1))},this.dom.time.second.onclick=e=>{if(!this.pickDate)return;const n=e.target.dataset.id;!n||(this.pickDate.setSeconds(Number(n)),this._setTimePick(!1))}}_setPosition(){if(!this.renderOptions)return;const{position:{coordinate:{leftTop:[e,t]},lineHeight:n,pageNo:i}}=this.renderOptions,o=this.draw.getHeight(),a=this.draw.getPageGap(),l=(i!=null?i:this.draw.getPageNo())*(o+a);this.dom.container.style.left=`${e}px`,this.dom.container.style.top=`${t+l+n}px`}isInvalidDate(e){return e.toDateString()==="Invalid Date"}_setValue(){var t;const e=(t=this.renderOptions)==null?void 0:t.value;if(e){const n=new Date(e);this.now=this.isInvalidDate(n)?new Date:n}else this.now=new Date;this.pickDate=new Date(this.now)}_getLang(){const e=this.draw.getI18n(),t=e.t.bind(e);return{now:t("datePicker.now"),confirm:t("datePicker.confirm"),return:t("datePicker.return"),timeSelect:t("datePicker.timeSelect"),weeks:{sun:t("datePicker.weeks.sun"),mon:t("datePicker.weeks.mon"),tue:t("datePicker.weeks.tue"),wed:t("datePicker.weeks.wed"),thu:t("datePicker.weeks.thu"),fri:t("datePicker.weeks.fri"),sat:t("datePicker.weeks.sat")},year:t("datePicker.year"),month:t("datePicker.month"),hour:t("datePicker.hour"),minute:t("datePicker.minute"),second:t("datePicker.second")}}_setLangChange(){this.dom.menu.time.innerText=this.lang.timeSelect,this.dom.menu.now.innerText=this.lang.now,this.dom.menu.submit.innerText=this.lang.confirm;const{weeks:{sun:e,mon:t,tue:n,wed:i,thu:o,fri:a,sat:s}}=this.lang,l=[e,t,n,i,o,a,s];this.dom.datePickerWeek.childNodes.forEach((d,f)=>{const p=d;p.innerText=l[f]});const c=this.dom.time.hour.previousElementSibling;c.innerText=this.lang.hour;const u=this.dom.time.minute.previousElementSibling;u.innerText=this.lang.minute;const h=this.dom.time.second.previousElementSibling;h.innerText=this.lang.second}_update(){const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,i=e.getDate();let o=null,a=null,s=null;this.pickDate&&(o=this.pickDate.getFullYear(),a=this.pickDate.getMonth()+1,s=this.pickDate.getDate());const l=this.now.getFullYear(),c=this.now.getMonth()+1;this.dom.title.now.innerText=`${l}${this.lang.year} ${String(c).padStart(2,"0")}${this.lang.month}`;const h=new Date(l,c,0).getDate();let d=new Date(l,c-1,1).getDay();d===0&&(d=7);const f=new Date(l,c-1,0).getDate();this.dom.day.innerHTML="";const p=f-d+1;for(let v=p;v<=f;v++){const R=document.createElement("div");R.classList.add("disable"),R.innerText=`${v}`,R.onclick=()=>{const m=c-2;this.now=new Date(l,m,v),this._setDatePick(l,m,v)},this.dom.day.append(R)}for(let v=1;v<=h;v++){const R=document.createElement("div");t===l&&n===c&&i===v&&R.classList.add("active"),this.pickDate&&o===l&&a===c&&s===v&&R.classList.add("select"),R.innerText=`${v}`,R.onclick=m=>{const x=c-1;this.now=new Date(l,x,v),this._setDatePick(l,x,v),m.stopPropagation()},this.dom.day.append(R)}const g=6*7-d-h;for(let v=1;v<=g;v++){const R=document.createElement("div");R.classList.add("disable"),R.innerText=`${v}`,R.onclick=()=>{this.now=new Date(l,c,v),this._setDatePick(l,c,v)},this.dom.day.append(R)}}_toggleDateTimePicker(){this.isDatePicker?(this.dom.dateWrap.classList.add("active"),this.dom.timeWrap.classList.remove("active"),this.dom.menu.time.innerText=this.lang.timeSelect):(this.dom.dateWrap.classList.remove("active"),this.dom.timeWrap.classList.add("active"),this.dom.menu.time.innerText=this.lang.return,this._setTimePick())}_setDatePick(e,t,n){var i,o,a;this.now=new Date(e,t,n),(i=this.pickDate)==null||i.setFullYear(e),(o=this.pickDate)==null||o.setMonth(t),(a=this.pickDate)==null||a.setDate(n),this._update()}_setTimePick(e=!0){var u,h,d;const t=((u=this.pickDate)==null?void 0:u.getHours())||0,n=((h=this.pickDate)==null?void 0:h.getMinutes())||0,i=((d=this.pickDate)==null?void 0:d.getSeconds())||0,{hour:o,minute:a,second:s}=this.dom.time;[o,a,s].forEach(f=>{f.querySelectorAll("li").forEach(p=>p.classList.remove("active"))}),[[o,t],[a,n],[s,i]].forEach(([f,p])=>{const g=f.querySelector(`[data-id='${p}']`);g.classList.add("active"),e&&this._scrollIntoView(f,g)})}_scrollIntoView(e,t){if(!t){e.scrollTop=0;return}const n=[];let i=t.offsetParent;for(;i&&e!==i&&e.contains(i);)n.push(i),i=i.offsetParent;const o=t.offsetTop+n.reduce((c,u)=>c+u.offsetTop,0),a=o+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;o<s?e.scrollTop=o:a>l&&(e.scrollTop=a-e.clientHeight)}_preMonth(){this.now.setMonth(this.now.getMonth()-1),this._update()}_nextMonth(){this.now.setMonth(this.now.getMonth()+1),this._update()}_preYear(){this.now.setFullYear(this.now.getFullYear()-1),this._update()}_nextYear(){this.now.setFullYear(this.now.getFullYear()+1),this._update()}_now(){this.pickDate=new Date,this.dispose()}_toggleVisible(e){e?this.dom.container.classList.add("active"):this.dom.container.classList.remove("active")}_submit(){var e;if(this.options.onSubmit&&this.pickDate){const t=(e=this.renderOptions)==null?void 0:e.dateFormat,n=this.formatDate(this.pickDate,t);this.options.onSubmit(n)}}formatDate(e,t="yyyy-MM-dd hh:mm:ss"){let n=t;const i={"y+":e.getFullYear().toString(),"M+":(e.getMonth()+1).toString(),"d+":e.getDate().toString(),"h+":e.getHours().toString(),"m+":e.getMinutes().toString(),"s+":e.getSeconds().toString()};for(const o in i){const a=new RegExp("("+o+")").exec(t),s=o;a&&(n=n.replace(a[1],a[1].length===1?i[s]:i[s].padStart(a[1].length,"0")))}return n}render(e){this.renderOptions=e,this.lang=this._getLang(),this._setLangChange(),this._setValue(),this._update(),this._setPosition(),this.isDatePicker=!0,this._toggleDateTimePicker(),this._toggleVisible(!0)}dispose(){this._toggleVisible(!1)}destroy(){this.dom.container.remove()}}class ro{constructor(e,t){const n=t.getDraw();this.draw=n,this.element=e,this.control=t,this.isPopup=!1,this.datePicker=null}setElement(e){this.element=e}getElement(){return this.element}getIsPopup(){return this.isPopup}getValueRange(e={}){const t=e.elementList||this.control.getElementList(),{startIndex:n}=e.range||this.control.getRange(),i=t[n];let o=n;for(;o>0;){const s=t[o];if(s.controlId!==i.controlId||s.controlComponent===ye.PREFIX)break;o--}let a=n+1;for(;a<t.length;){const s=t[a];if(s.controlId!==i.controlId||s.controlComponent===ye.POSTFIX)break;a++}return o===a?null:[o,a-1]}getValue(e={}){const t=e.elementList||this.control.getElementList(),n=this.getValueRange(e);if(!n)return[];const i=[],[o,a]=n;for(let s=o;s<=a;s++){const l=t[s];l.controlComponent===ye.VALUE&&i.push(l)}return i}setValue(e,t={},n={}){if(!n.isIgnoreDisabledRule&&this.control.getIsDisabledControl())return-1;const i=t.elementList||this.control.getElementList(),o=t.range||this.control.getRange();this.control.shrinkBoundary(t);const{startIndex:a,endIndex:s}=o,l=this.control.getDraw();a!==s?l.spliceElementList(i,a+1,s-a):this.control.removePlaceholder(a,t);const c=i[a],u=c.type&&!Gr.includes(c.type)||c.controlComponent===ye.PREFIX?un(c,["control","controlId",...Ci]):Eo(c,["type"]),h=o.startIndex+1;for(let d=0;d<e.length;d++){const f={...u,...e[d],controlComponent:ye.VALUE};ar(i,[f],a),l.spliceElementList(i,h+d,0,f)}return h+e.length-1}clearSelect(e={},t={}){const{isIgnoreDisabledRule:n=!1,isAddPlaceholder:i=!0}=t;if(!n&&this.control.getIsDisabledControl())return-1;const o=this.getValueRange(e);if(!o)return-1;const[a,s]=o;if(!~a||!~s)return-1;const l=e.elementList||this.control.getElementList();return this.control.getDraw().spliceElementList(l,a+1,s-a),i&&this.control.addPlaceholder(a,e),a}setSelect(e,t={},n={}){if(!n.isIgnoreDisabledRule&&this.control.getIsDisabledControl())return;const i=t.elementList||this.control.getElementList(),o=t.range||this.control.getRange(),a=this.getValue(t)[0],s=a?un(a,ri):un(i[o.startIndex],Ci),l=this.clearSelect(t,{isAddPlaceholder:!1});if(!~l)return;const c=Eo(i[l],ri),u=l+1,h=this.control.getDraw();for(let d=0;d<e.length;d++){const f={...s,...c,type:ae.TEXT,value:e[d],controlComponent:ye.VALUE};ar(i,[f],l),h.spliceElementList(i,u+d,0,f)}if(!t.range){const d=u+e.length-1;this.control.repaintControl({curIndex:d}),this.destroy()}}keydown(e){if(this.control.getIsDisabledControl())return null;const t=this.control.getElementList(),n=this.control.getRange();this.control.shrinkBoundary();const{startIndex:i,endIndex:o}=n,a=t[i],s=t[o],l=this.control.getDraw();if(e.key===Ce.Backspace)return i!==o?(l.spliceElementList(t,i+1,o-i),this.getValue().length||this.control.addPlaceholder(i),i):a.controlComponent===ye.PREFIX||s.controlComponent===ye.POSTFIX||a.controlComponent===ye.PLACEHOLDER?this.control.removeControl(i):(l.spliceElementList(t,i,1),this.getValue().length||this.control.addPlaceholder(i-1),i-1);if(e.key===Ce.Delete){if(i!==o)return l.spliceElementList(t,i+1,o-i),this.getValue().length||this.control.addPlaceholder(i),i;{const c=t[o+1];return a.controlComponent===ye.PREFIX&&c.controlComponent===ye.PLACEHOLDER||c.controlComponent===ye.POSTFIX||a.controlComponent===ye.PLACEHOLDER?this.control.removeControl(i):(l.spliceElementList(t,i+1,1),this.getValue().length||this.control.addPlaceholder(i),i)}}return o}cut(){if(this.control.getIsDisabledControl())return-1;this.control.shrinkBoundary();const{startIndex:e,endIndex:t}=this.control.getRange();if(e===t)return e;const n=this.control.getDraw(),i=this.control.getElementList();return n.spliceElementList(i,e+1,t-e),this.getValue().length||this.control.addPlaceholder(e),e}awake(){var a,s;if(this.isPopup||this.control.getIsDisabledControl())return;const e=this.control.getPosition();if(!e)return;const t=this.draw.getElementList(),{startIndex:n}=this.control.getRange();if(((a=t[n+1])==null?void 0:a.controlId)!==this.element.controlId)return;this.datePicker=new $d(this.draw,{onSubmit:this._setDate.bind(this)});const i=this.getValue().map(l=>l.value).join("")||"",o=(s=this.element.control)==null?void 0:s.dateFormat;this.datePicker.render({value:i,position:e,dateFormat:o}),this.isPopup=!0}destroy(){var e;!this.isPopup||((e=this.datePicker)==null||e.destroy(),this.isPopup=!1)}_setDate(e){e?this.setSelect(e):this.clearSelect(),this.destroy()}}class YR{constructor(e){this.controlBorder=new VR(e),this.draw=e,this.range=e.getRange(),this.listener=e.getListener(),this.eventBus=e.getEventBus(),this.controlSearch=new WR(this),this.options=e.getOptions(),this.controlOptions=this.options.control,this.activeControl=null}setHighlightList(e){this.controlSearch.setHighlightList(e)}computeHighlightList(){this.controlSearch.getHighlightList().length&&this.controlSearch.computeHighlightList()}renderHighlightList(e,t){this.controlSearch.getHighlightMatchResult().length&&this.controlSearch.renderHighlightList(e,t)}getDraw(){return this.draw}filterAssistElement(e){return e.filter(t=>{var n;if(t.type===ae.TABLE){const i=t.trList;for(let o=0;o<i.length;o++){const a=i[o];for(let s=0;s<a.tdList.length;s++){const l=a.tdList[s];l.value=this.filterAssistElement(l.value)}}}return t.controlId?(n=t.control)!=null&&n.minWidth&&(t.controlComponent===ye.PREFIX||t.controlComponent===ye.POSTFIX)?(t.value="",!0):t.controlComponent!==ye.PREFIX&&t.controlComponent!==ye.POSTFIX&&t.controlComponent!==ye.PLACEHOLDER:!0})}getIsRangeCanCaptureEvent(){if(!this.activeControl)return!1;const{startIndex:e,endIndex:t}=this.getRange();if(!~e&&!~t)return!1;const n=this.getElementList(),i=n[e];if(e===t&&i.controlComponent===ye.POSTFIX)return!0;const o=n[t];return!!(i.controlId&&i.controlId===o.controlId&&o.controlComponent!==ye.POSTFIX)}getIsRangeInPostfix(){if(!this.activeControl)return!1;const{startIndex:e,endIndex:t}=this.getRange();return e!==t?!1:this.getElementList()[e].controlComponent===ye.POSTFIX}getIsRangeWithinControl(){const{startIndex:e,endIndex:t}=this.getRange();if(!~e&&!~t)return!1;const n=this.getElementList(),i=n[e],o=n[t];return!!(i.controlId&&i.controlId===o.controlId&&o.controlComponent!==ye.POSTFIX)}getIsElementListContainFullControl(e){if(!e.some(i=>i.controlId))return!1;let t=0,n=0;for(let i=0;i<e.length;i++){const o=e[i];o.controlComponent===ye.PREFIX?t++:o.controlComponent===ye.POSTFIX&&n++}return!t||!n?!1:t===n}getIsDisabledControl(){var e,t;return!!((t=(e=this.activeControl)==null?void 0:e.getElement().control)!=null&&t.disabled)}getContainer(){return this.draw.getContainer()}getElementList(){return this.draw.getElementList()}getPosition(){const e=this.draw.getPosition().getPositionList(),{endIndex:t}=this.range.getRange();return e[t]||null}getPreY(){var i,o;const e=this.draw.getHeight(),t=this.draw.getPageGap();return((o=(i=this.getPosition())==null?void 0:i.pageNo)!=null?o:this.draw.getPageNo())*(e+t)}getRange(){return this.range.getRange()}shrinkBoundary(e={}){this.range.shrinkBoundary(e)}getActiveControl(){return this.activeControl}initControl(){if(this.draw.isReadonly())return;const t=this.getElementList(),n=this.getRange(),i=t[n.startIndex];if(this.activeControl){(this.activeControl instanceof to||this.activeControl instanceof ro)&&(i.controlComponent===ye.POSTFIX?this.activeControl.destroy():this.activeControl.awake());const a=this.activeControl.getElement();if(i.controlId===a.controlId)return}this.destroyControl();const o=i.control;if(o.type===nt.TEXT)this.activeControl=new qu(i,this);else if(o.type===nt.SELECT){const a=new to(i,this);this.activeControl=a,a.awake()}else if(o.type===nt.CHECKBOX)this.activeControl=new Ca(i,this);else if(o.type===nt.RADIO)this.activeControl=new Wl(i,this);else if(o.type===nt.DATE){const a=new ro(i,this);this.activeControl=a,a.awake()}La(()=>{var u;const a=this.listener.controlChange,s=this.eventBus.isSubscribe("controlChange");if(!a&&!s)return;let l;const c=(u=this.activeControl)==null?void 0:u.getValue();c&&c.length?l=bt(c)[0].control:l=_i(gt(i)).control,a&&a(l),s&&this.eventBus.emit("controlChange",l)})}destroyControl(){this.activeControl&&((this.activeControl instanceof to||this.activeControl instanceof ro)&&this.activeControl.destroy(),this.activeControl=null,La(()=>{const e=this.listener.controlChange,t=this.eventBus.isSubscribe("controlChange");!e&&!t||(e&&e(null),t&&this.eventBus.emit("controlChange",null))}))}repaintControl(e={}){const{curIndex:t,isCompute:n=!0,isSubmitHistory:i=!0}=e;t===void 0?(this.range.clearRange(),this.draw.render({isCompute:n,isSubmitHistory:i,isSetCursor:!1})):(this.range.setRange(t,t),this.draw.render({curIndex:t,isCompute:n,isSubmitHistory:i}))}reAwakeControl(){if(!this.activeControl)return;const e=this.getElementList(),t=this.getRange(),n=e[t.startIndex];this.activeControl.setElement(n),(this.activeControl instanceof ro||this.activeControl instanceof to)&&this.activeControl.getIsPopup()&&(this.activeControl.destroy(),this.activeControl.awake())}moveCursor(e){const{index:t,trIndex:n,tdIndex:i,tdValueIndex:o}=e;let a=this.draw.getOriginalElementList(),s;const l=e.isTable?o:t;if(e.isTable?(a=a[t].trList[n].tdList[i].value,s=a[o]):s=a[t],s.controlComponent===ye.VALUE)return{newIndex:l,newElement:s};if(s.controlComponent===ye.POSTFIX){let c=l+1;for(;c<a.length;){if(a[c].controlId!==s.controlId)return{newIndex:c-1,newElement:a[c-1]};c++}}else if(s.controlComponent===ye.PREFIX){let c=l+1;for(;c<a.length;){const u=a[c];if(u.controlId!==s.controlId||u.controlComponent!==ye.PREFIX)return{newIndex:c-1,newElement:a[c-1]};c++}}else if(s.controlComponent===ye.PLACEHOLDER){let c=l-1;for(;c>0;){const u=a[c];if(u.controlId!==s.controlId||u.controlComponent===ye.PREFIX)return{newIndex:c,newElement:a[c]};c--}}return{newIndex:l,newElement:s}}removeControl(e,t={}){const n=t.elementList||this.getElementList(),i=n[e],{deletable:o=!0}=i.control;if(!o)return null;let a=-1,s=-1,l=e;for(;l>0;){if(n[l].controlId!==i.controlId){a=l;break}l--}let c=e+1;for(;c<n.length;){if(n[c].controlId!==i.controlId){s=c-1;break}c++}return c===n.length&&(s=c-1),!~a&&!~s?e:(a=~a?a:0,this.draw.spliceElementList(n,a+1,s-a),a)}removePlaceholder(e,t={}){const n=t.elementList||this.getElementList(),i=n[e],o=n[e+1];if(i.controlComponent===ye.PLACEHOLDER||o.controlComponent===ye.PLACEHOLDER){let a=!1,s=e;for(;s<n.length;){const l=n[s];if(l.controlId!==i.controlId)break;l.controlComponent===ye.PLACEHOLDER?(a||(a=!0,this.draw.getHistoryManager().popUndo(),this.draw.submitHistory(e)),n.splice(s,1)):s++}}}addPlaceholder(e,t={}){const n=t.elementList||this.getElementList(),i=n[e],o=i.control;if(!o.placeholder)return;const a=Wr(o.placeholder);for(let s=0;s<a.length;s++){const c={value:a[s],controlId:i.controlId,type:ae.CONTROL,control:i.control,controlComponent:ye.PLACEHOLDER,color:this.controlOptions.placeholderColor};ar(n,[c],e),this.draw.spliceElementList(n,e+s+1,0,c)}}setValue(e){if(!this.activeControl)throw new Error("active control is null");return this.activeControl.setValue(e)}keydown(e){if(!this.activeControl)throw new Error("active control is null");return this.activeControl.keydown(e)}cut(){if(!this.activeControl)throw new Error("active control is null");return this.activeControl.cut()}getValueByConceptId(e){const{conceptId:t}=e,n=[],i=(a,s)=>{var c;let l=0;for(;l<a.length;){const u=a[l];if(l++,u.type===ae.TABLE){const v=u.trList;for(let R=0;R<v.length;R++){const m=v[R];for(let x=0;x<m.tdList.length;x++){const T=m.tdList[x];i(T.value,s)}}}if(((c=u==null?void 0:u.control)==null?void 0:c.conceptId)!==t)continue;const{type:h,code:d,valueSets:f}=u.control;let p=l,g="";for(;p<a.length;){const v=a[p];if(v.controlId!==u.controlId)break;(h===nt.TEXT||h===nt.DATE)&&v.controlComponent===ye.VALUE&&(g+=v.value),p++}if(h===nt.TEXT||h===nt.DATE)n.push({...u.control,zone:s,value:g||null,innerText:g||null});else if(h===nt.SELECT||h===nt.CHECKBOX||h===nt.RADIO){const v=d==null?void 0:d.split(",").map(R=>{var m;return(m=f==null?void 0:f.find(x=>x.code===R))==null?void 0:m.value}).filter(Boolean).join("");n.push({...u.control,zone:s,value:d||null,innerText:v||null})}l=p}},o=[{zone:Ke.HEADER,elementList:this.draw.getHeaderElementList()},{zone:Ke.MAIN,elementList:this.draw.getOriginalMainElementList()},{zone:Ke.FOOTER,elementList:this.draw.getFooterElementList()}];for(const{zone:a,elementList:s}of o)i(s,a);return n}setValueByConceptId(e){if(this.draw.isReadonly())return;let n=!1;const{conceptId:i,value:o}=e,a=l=>{var u;let c=0;for(;c<l.length;){const h=l[c];if(c++,h.type===ae.TABLE){const m=h.trList;for(let x=0;x<m.length;x++){const T=m[x];for(let P=0;P<T.tdList.length;P++){const A=T.tdList[P];a(A.value)}}}if(((u=h==null?void 0:h.control)==null?void 0:u.conceptId)!==i)continue;n=!0;const{type:d}=h.control;let f=c;for(;f<l.length&&l[f].controlId===h.controlId;)f++;const g={range:{startIndex:c-1,endIndex:f-2},elementList:l},v={isIgnoreDisabledRule:!0};if(d===nt.TEXT){const m=[{value:o}];Nr(m,{isHandleFirstElement:!1,editorOptions:this.options});const x=new qu(h,this);this.activeControl=x,o?x.setValue(m,g,v):x.clearValue(g,v)}else if(d===nt.SELECT){const m=new to(h,this);this.activeControl=m,o?m.setSelect(o,g,v):m.clearSelect(g,v)}else if(d===nt.CHECKBOX){const m=new Ca(h,this);this.activeControl=m;const x=(o==null?void 0:o.split(","))||[];m.setSelect(x,g,v)}else if(d===nt.RADIO){const m=new Wl(h,this);this.activeControl=m;const x=o?[o]:[];m.setSelect(x,g,v)}else if(d===nt.DATE){const m=new ro(h,this);this.activeControl=m,o?m.setSelect(o,g,v):m.clearSelect(g,v)}this.activeControl=null;let R=c;for(;R<l.length&&l[R].controlId===h.controlId;)R++;c=R}};this.destroyControl();const s=[this.draw.getHeaderElementList(),this.draw.getOriginalMainElementList(),this.draw.getFooterElementList()];for(const l of s)a(l);n&&this.draw.render({isSetCursor:!1})}setExtensionByConceptId(e){if(this.draw.isReadonly())return;const{conceptId:n,extension:i}=e,o=s=>{var c;let l=0;for(;l<s.length;){const u=s[l];if(l++,u.type===ae.TABLE){const d=u.trList;for(let f=0;f<d.length;f++){const p=d[f];for(let g=0;g<p.tdList.length;g++){const v=p.tdList[g];o(v.value)}}}if(((c=u==null?void 0:u.control)==null?void 0:c.conceptId)!==n)continue;u.control.extension=i;let h=l;for(;h<s.length&&s[h].controlId===u.controlId;)h++;l=h}},a=[this.draw.getHeaderElementList(),this.draw.getOriginalMainElementList(),this.draw.getFooterElementList()];for(const s of a)o(s)}setPropertiesByConceptId(e){var s;if(this.draw.isReadonly())return;const{conceptId:n,properties:i}=e;let o=!1;const a={header:this.draw.getHeaderElementList(),main:this.draw.getOriginalMainElementList(),footer:this.draw.getFooterElementList()};for(const l in a){const c=a[l];let u=0;for(;u<c.length;){const h=c[u];if(u++,((s=h==null?void 0:h.control)==null?void 0:s.conceptId)!==n)continue;o=!0,h.control={...h.control,...i,value:h.control.value};let d=u;for(;d<c.length&&c[d].controlId===h.controlId;)d++;u=d}}if(!!o){for(const l in a){const c=l,u=bt(a[c]);a[c]=u,Nr(u,{editorOptions:this.options})}this.draw.setEditorData(a),this.draw.render({isSetCursor:!1})}}getList(){const e=[];function t(i){for(let o=0;o<i.length;o++){const a=i[o];if(a.type===ae.TABLE){const s=a.trList;for(let l=0;l<s.length;l++){const c=s[l];for(let u=0;u<c.tdList.length;u++){const d=c.tdList[u].value;t(d)}}}a.controlId&&e.push(a)}}const n=[this.draw.getHeader().getElementList(),this.draw.getOriginalMainElementList(),this.draw.getFooter().getElementList()];for(const i of n)t(i);return bt(e,{extraPickAttrs:["controlId"]})}recordBorderInfo(e,t,n,i){this.controlBorder.recordBorderInfo(e,t,n,i)}drawBorder(e){this.controlBorder.render(e)}getPreControlContext(){if(!this.activeControl)return null;const t=this.draw.getPosition().getPositionContext();if(!t)return null;const n=this.activeControl.getElement();function i(l,c){for(let u=c;u>0;u--){const h=l[u];if(h.type===ae.TABLE){const f=h.trList||[];for(let p=f.length-1;p>=0;p--){const g=f[p],v=g.tdList;for(let R=v.length-1;R>=0;R--){const m=v[R],x=i(m.value,m.value.length-1);if(x)return{positionContext:{isTable:!0,index:u,trIndex:p,tdIndex:R,tdId:m.id,trId:g.id,tableId:h.id},nextIndex:x.nextIndex}}}}if(!h.controlId||h.controlId===n.controlId)continue;let d=u;for(;d>0;){const f=l[d];if(f.controlComponent===ye.VALUE||f.controlComponent===ye.PREFIX)break;d--}return{positionContext:{isTable:!1},nextIndex:d}}return null}const{startIndex:o}=this.range.getRange(),a=this.getElementList(),s=i(a,o);if(s)return{positionContext:t.isTable?t:s.positionContext,nextIndex:s.nextIndex};if(n.tableId){const l=this.draw.getOriginalElementList(),{index:c,trIndex:u,tdIndex:h}=t,d=l[c].trList;for(let p=u;p>=0;p--){const g=d[p],v=g.tdList;for(let R=v.length-1;R>=0;R--){if(u===p&&R>=h)continue;const m=v[R],x=i(m.value,m.value.length-1);if(x)return{positionContext:{isTable:!0,index:t.index,trIndex:p,tdIndex:R,tdId:m.id,trId:g.id,tableId:n.tableId},nextIndex:x.nextIndex}}}const f=i(l,c-1);if(f)return{positionContext:{isTable:!1},nextIndex:f.nextIndex}}return null}getNextControlContext(){if(!this.activeControl)return null;const t=this.draw.getPosition().getPositionContext();if(!t)return null;const n=this.activeControl.getElement();function i(l,c){for(let u=c;u<l.length;u++){const h=l[u];if(h.type===ae.TABLE){const d=h.trList||[];for(let f=0;f<d.length;f++){const p=d[f],g=p.tdList;for(let v=0;v<g.length;v++){const R=g[v],m=i(R.value,0);if(m)return{positionContext:{isTable:!0,index:u,trIndex:f,tdIndex:v,tdId:R.id,trId:p.id,tableId:h.id},nextIndex:m.nextIndex}}}}if(!(!h.controlId||h.controlId===n.controlId))return{positionContext:{isTable:!1},nextIndex:u}}return null}const{endIndex:o}=this.range.getRange(),a=this.getElementList(),s=i(a,o);if(s)return{positionContext:t.isTable?t:s.positionContext,nextIndex:s.nextIndex};if(n.tableId){const l=this.draw.getOriginalElementList(),{index:c,trIndex:u,tdIndex:h}=t,d=l[c].trList;for(let p=u;p<d.length;p++){const g=d[p],v=g.tdList;for(let R=0;R<v.length;R++){if(u===p&&R<=h)continue;const m=v[R],x=i(m.value,0);if(x)return{positionContext:{isTable:!0,index:t.index,trIndex:p,tdIndex:R,tdId:m.id,trId:g.id,tableId:n.tableId},nextIndex:x.nextIndex}}}const f=i(l,c+1);if(f)return{positionContext:{isTable:!1},nextIndex:f.nextIndex}}return null}initNextControl(e={}){const{direction:t=ir.DOWN}=e;let n=null;if(t===ir.UP?n=this.getPreControlContext():n=this.getNextControlContext(),!n)return;const{nextIndex:i,positionContext:o}=n,a=this.draw.getPosition();a.setPositionContext(o),this.draw.getRange().replaceRange({startIndex:i,endIndex:i}),this.draw.render({curIndex:i,isCompute:!1,isSetCursor:!0,isSubmitHistory:!1});const s=a.getPositionList();this.draw.getCursor().moveCursorToVisible({cursorPosition:s[i],direction:t})}}class kR{constructor(e){this.draw=e,this.options=e.getOptions()}setSelect(e){const{checkbox:t}=e;t?t.value=!t.value:e.checkbox={value:!0},this.draw.render({isCompute:!1,isSetCursor:!1})}render(e,t,n,i){const{checkbox:{gap:o,lineWidth:a,fillStyle:s,strokeStyle:l},scale:c}=this.options,{metrics:u,checkbox:h}=t,d=Math.round(n+o*c),f=Math.round(i-u.height+a),p=u.width-o*2*c,g=u.height;e.save(),e.beginPath(),e.translate(.5,.5),h!=null&&h.value?(e.lineWidth=a,e.strokeStyle=s,e.rect(d,f,p,g),e.stroke(),e.beginPath(),e.fillStyle=s,e.fillRect(d,f,p,g),e.beginPath(),e.strokeStyle=l,e.lineWidth=a*2*c,e.moveTo(d+2*c,f+g/2),e.lineTo(d+p/2,f+g-3*c),e.lineTo(d+p-2*c,f+3*c),e.stroke()):(e.lineWidth=a,e.rect(d,f,p,g),e.stroke()),e.closePath(),e.restore()}}class ZR{constructor(e){this.draw=e,this.options=e.getOptions()}setSelect(e){const{radio:t}=e;t?t.value=!t.value:e.radio={value:!0},this.draw.render({isCompute:!1,isSetCursor:!1})}render(e,t,n,i){const{radio:{gap:o,lineWidth:a,fillStyle:s,strokeStyle:l},scale:c}=this.options,{metrics:u,radio:h}=t,d=Math.round(n+o*c),f=Math.round(i-u.height+a),p=u.width-o*2*c,g=u.height;e.save(),e.beginPath(),e.translate(.5,.5),e.strokeStyle=h!=null&&h.value?s:l,e.lineWidth=a,e.arc(d+p/2,f+g/2,p/2,0,Math.PI*2),e.stroke(),h!=null&&h.value&&(e.beginPath(),e.fillStyle=s,e.arc(d+p/2,f+g/2,p/3,0,Math.PI*2),e.fill()),e.closePath(),e.restore()}}const jd="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IGE9Ilx1MjAwQiIsdT1gCmA7ZnVuY3Rpb24gZihpKXtsZXQgcz0iIixuPTA7Zm9yKDtuPGkubGVuZ3RoOyl7Y29uc3QgZT1pW25dO2lmKGUudHlwZT09PSJ0YWJsZSIpe2lmKGUudHJMaXN0KWZvcihsZXQgbD0wO2w8ZS50ckxpc3QubGVuZ3RoO2wrKyl7Y29uc3Qgbz1lLnRyTGlzdFtsXTtmb3IobGV0IHQ9MDt0PG8udGRMaXN0Lmxlbmd0aDt0Kyspe2NvbnN0IHI9by50ZExpc3RbdF07cys9ZihyLnZhbHVlKX19fWVsc2UgaWYoZS50eXBlPT09Imh5cGVybGluayIpe2NvbnN0IGw9ZS5oeXBlcmxpbmtJZCxvPVtdO2Zvcig7bjxpLmxlbmd0aDspe2NvbnN0IHQ9aVtuXTtpZihsIT09dC5oeXBlcmxpbmtJZCl7bi0tO2JyZWFrfWRlbGV0ZSB0LnR5cGUsby5wdXNoKHQpLG4rK31zKz1mKG8pfWVsc2UgaWYoZS5jb250cm9sSWQpe2NvbnN0IGw9ZS5jb250cm9sSWQsbz1bXTtmb3IoO248aS5sZW5ndGg7KXtjb25zdCB0PWlbbl07aWYobCE9PXQuY29udHJvbElkKXtuLS07YnJlYWt9dC5jb250cm9sQ29tcG9uZW50PT09InZhbHVlIiYmKGRlbGV0ZSB0LmNvbnRyb2xJZCxvLnB1c2godCkpLG4rK31zKz1mKG8pfWVsc2UoIWUudHlwZXx8ZS50eXBlPT09InRleHQiKSYmKHMrPWUudmFsdWUpO24rK31yZXR1cm4gc31mdW5jdGlvbiBoKGkpe2NvbnN0IHM9W10sbj0vWzAtOV0vLGU9L1tBLVphLXpdLyxsPS9ccy87bGV0IG89ITEsdD0hMSxyPSIiO2Z1bmN0aW9uIHAoKXtyJiYocy5wdXNoKHIpLHI9IiIpfWZvcihjb25zdCBjIG9mIGkpZS50ZXN0KGMpPyhvfHxwKCkscis9YyxvPSEwLHQ9ITEpOm4udGVzdChjKT8odHx8cCgpLHIrPWMsbz0hMSx0PSEwKToocCgpLG89ITEsdD0hMSxsLnRlc3QoYyl8fHMucHVzaChjKSk7cmV0dXJuIHAoKSxzfW9ubWVzc2FnZT1pPT57Y29uc3Qgcz1pLmRhdGEsZT1mKHMpLnJlcGxhY2UobmV3IFJlZ0V4cChgXiR7YX1gKSwiIikucmVwbGFjZShuZXcgUmVnRXhwKGEsImciKSx1KSxsPWgoZSk7cG9zdE1lc3NhZ2UobC5sZW5ndGgpfX0pKCk7Cg==",eh=typeof window!="undefined"&&window.Blob&&new Blob([atob(jd)],{type:"text/javascript;charset=utf-8"});function QR(){const r=eh&&(window.URL||window.webkitURL).createObjectURL(eh);try{return r?new Worker(r,{}):new Worker("data:application/javascript;base64,"+jd,{type:"module"})}finally{r&&(window.URL||window.webkitURL).revokeObjectURL(r)}}const qd="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IHU9e2ZpcnN0OjEsc2Vjb25kOjIsdGhpcmQ6Myxmb3VydGg6NCxmaWZ0aDo1LHNpeHRoOjZ9LGc9WyJ0ZXh0IiwiaHlwZXJsaW5rIiwic3Vic2NyaXB0Iiwic3VwZXJzY3JpcHQiLCJjb250cm9sIiwiZGF0ZSJdLGg9Ilx1MjAwQiI7ZnVuY3Rpb24gcChuKXtyZXR1cm4hbi50eXBlfHxnLmluY2x1ZGVzKG4udHlwZSl9ZnVuY3Rpb24gZChuKXtjb25zdCBvPVtdO2xldCBzPTA7Zm9yKDtzPG4ubGVuZ3RoOyl7Y29uc3QgZT1uW3NdO2lmKGUudGl0bGVJZCl7Y29uc3QgbD1lLnRpdGxlSWQsdD1lLmxldmVsLGk9e3R5cGU6InRpdGxlIix2YWx1ZToiIixsZXZlbDp0LHRpdGxlSWQ6bH0sYz1bXTtmb3IoO3M8bi5sZW5ndGg7KXtjb25zdCBhPW5bc107aWYobCE9PWEudGl0bGVJZCl7cy0tO2JyZWFrfWMucHVzaChhKSxzKyt9aS52YWx1ZT1jLmZpbHRlcihhPT5wKGEpKS5tYXAoYT0+YS52YWx1ZSkuam9pbigiIikucmVwbGFjZShuZXcgUmVnRXhwKGgsImciKSwiIiksby5wdXNoKGkpfXMrK31pZighby5sZW5ndGgpcmV0dXJuIG51bGw7Y29uc3Qgdj0oZSxsKT0+e2NvbnN0IHQ9bC5zdWJDYXRhbG9nW2wuc3ViQ2F0YWxvZy5sZW5ndGgtMV0saT11W3Q9PW51bGw/dm9pZCAwOnQubGV2ZWxdLGM9dVtlLmxldmVsXTt0JiZjPmk/dihlLHQpOmwuc3ViQ2F0YWxvZy5wdXNoKHtpZDplLnRpdGxlSWQsbmFtZTplLnZhbHVlLGxldmVsOmUubGV2ZWwsc3ViQ2F0YWxvZzpbXX0pfSxyPVtdO2ZvcihsZXQgZT0wO2U8by5sZW5ndGg7ZSsrKXtjb25zdCBsPW9bZV0sdD1yW3IubGVuZ3RoLTFdLGk9dVt0PT1udWxsP3ZvaWQgMDp0LmxldmVsXSxjPXVbbC5sZXZlbF07dCYmYz5pP3YobCx0KTpyLnB1c2goe2lkOmwudGl0bGVJZCxuYW1lOmwudmFsdWUsbGV2ZWw6bC5sZXZlbCxzdWJDYXRhbG9nOltdfSl9cmV0dXJuIHJ9b25tZXNzYWdlPW49Pntjb25zdCBvPW4uZGF0YSxzPWQobyk7cG9zdE1lc3NhZ2Uocyl9fSkoKTsK",th=typeof window!="undefined"&&window.Blob&&new Blob([atob(qd)],{type:"text/javascript;charset=utf-8"});function KR(){const r=th&&(window.URL||window.webkitURL).createObjectURL(th);try{return r?new Worker(r,{}):new Worker("data:application/javascript;base64,"+qd,{type:"module"})}finally{r&&(window.URL||window.webkitURL).revokeObjectURL(r)}}const e0="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIHUoZSl7Y29uc3QgdD1bXTtmb3IoY29uc3QgcyBvZiBlKXtpZihzLnR5cGU9PT0idGFibGUiKXtjb25zdCBvPXMudHJMaXN0O2ZvcihsZXQgbj0wO248by5sZW5ndGg7bisrKXtjb25zdCBjPW9bbl07Zm9yKGxldCByPTA7cjxjLnRkTGlzdC5sZW5ndGg7cisrKXtjb25zdCBpPWMudGRMaXN0W3JdO3QucHVzaCguLi51KGkudmFsdWUpKX19fWlmKCEhcy5ncm91cElkcylmb3IoY29uc3QgbyBvZiBzLmdyb3VwSWRzKXQuaW5jbHVkZXMobyl8fHQucHVzaChvKX1yZXR1cm4gdH1vbm1lc3NhZ2U9ZT0+e2NvbnN0IHQ9ZS5kYXRhLHM9dSh0KTtwb3N0TWVzc2FnZShzKX19KSgpOwo=",rh=typeof window!="undefined"&&window.Blob&&new Blob([atob(e0)],{type:"text/javascript;charset=utf-8"});function HR(){const r=rh&&(window.URL||window.webkitURL).createObjectURL(rh);try{return r?new Worker(r,{}):new Worker("data:application/javascript;base64,"+e0,{type:"module"})}finally{r&&(window.URL||window.webkitURL).revokeObjectURL(r)}}class BR{constructor(e){this.draw=e,this.wordCountWorker=new QR,this.catalogWorker=new KR,this.groupWorker=new HR}getWordCount(){return new Promise((e,t)=>{this.wordCountWorker.onmessage=i=>{e(i.data)},this.wordCountWorker.onerror=i=>{t(i)};const n=this.draw.getOriginalMainElementList();this.wordCountWorker.postMessage(n)})}getCatalog(){return new Promise((e,t)=>{this.catalogWorker.onmessage=i=>{e(i.data)},this.catalogWorker.onerror=i=>{t(i)};const n=this.draw.getOriginalMainElementList();this.catalogWorker.postMessage(n)})}getGroupIds(){return new Promise((e,t)=>{this.groupWorker.onmessage=i=>{e(i.data)},this.groupWorker.onerror=i=>{t(i)};const n=this.draw.getOriginalMainElementList();this.groupWorker.postMessage(n)})}}class GR{constructor(e){this._keydown=()=>{this.resizerSelection.style.display==="block"&&(this.clearResizer(),document.removeEventListener("keydown",this._keydown))},this.container=e.getContainer(),this.canvas=e.getPage(),this.draw=e,this.options=e.getOptions(),this.curElement=null,this.curElementSrc="",this.previewerDrawOption={},this.curPosition=null;const{resizerSelection:t,resizerHandleList:n,resizerImageContainer:i,resizerImage:o,resizerSize:a}=this._createResizerDom();this.resizerSelection=t,this.resizerHandleList=n,this.resizerImageContainer=i,this.resizerImage=o,this.resizerSize=a,this.width=0,this.height=0,this.mousedownX=0,this.mousedownY=0,this.curHandleIndex=0,this.previewerContainer=null,this.previewerImage=null}_getElementPosition(e,t=null){var c;let n=0,i=0;const o=this.draw.getHeight(),a=this.draw.getPageGap(),l=((c=t==null?void 0:t.pageNo)!=null?c:this.draw.getPageNo())*(o+a);if(e.imgFloatPosition)n=e.imgFloatPosition.x,i=e.imgFloatPosition.y+l;else if(t){const{coordinate:{leftTop:[u,h]},ascent:d}=t;n=u,i=h+l+d}return{x:n,y:i}}_createResizerDom(){const e=document.createElement("div");e.classList.add(`${Fe}-resizer-selection`),e.style.display="none",e.style.borderColor=this.options.resizerColor;const t=[];for(let s=0;s<8;s++){const l=document.createElement("div");l.style.background=this.options.resizerColor,l.classList.add("resizer-handle"),l.classList.add(`handle-${s}`),l.setAttribute("data-index",String(s)),l.onmousedown=this._mousedown.bind(this),e.append(l),t.push(l)}this.container.append(e);const n=document.createElement("div");n.classList.add(`${Fe}-resizer-size-view`);const i=document.createElement("span");n.append(i),e.append(n);const o=document.createElement("div");o.classList.add(`${Fe}-resizer-image`),o.style.display="none";const a=document.createElement("img");return o.append(a),this.container.append(o),{resizerSelection:e,resizerHandleList:t,resizerImageContainer:o,resizerImage:a,resizerSize:i}}_mousedown(e){if(this.canvas=this.draw.getPage(),!this.curElement)return;const{scale:t}=this.options;this.mousedownX=e.x,this.mousedownY=e.y;const n=e.target;this.curHandleIndex=Number(n.dataset.index);const i=window.getComputedStyle(n).cursor;document.body.style.cursor=i,this.canvas.style.cursor=i,this.resizerImage.src=this.curElementSrc,this.resizerImageContainer.style.display="block";const{x:o,y:a}=this._getElementPosition(this.curElement,this.curPosition);this.resizerImageContainer.style.left=`${o}px`,this.resizerImageContainer.style.top=`${a}px`,this.resizerImage.style.width=`${this.curElement.width*t}px`,this.resizerImage.style.height=`${this.curElement.height*t}px`;const s=this._mousemove.bind(this);document.addEventListener("mousemove",s),document.addEventListener("mouseup",()=>{var l;this.curElement&&(this.curElement.width=this.width,this.curElement.height=this.height,this.draw.render({isSetCursor:!0,curIndex:(l=this.curPosition)==null?void 0:l.index})),this.resizerImageContainer.style.display="none",document.removeEventListener("mousemove",s),document.body.style.cursor="",this.canvas.style.cursor="text"},{once:!0}),e.preventDefault()}_mousemove(e){if(!this.curElement)return;const{scale:t}=this.options;let n=0,i=0;switch(this.curHandleIndex){case 0:{const c=this.mousedownX-e.x,u=this.mousedownY-e.y;n=Math.cbrt(c**3+u**3),i=this.curElement.height*n/this.curElement.width}break;case 1:i=this.mousedownY-e.y;break;case 2:{const c=e.x-this.mousedownX,u=this.mousedownY-e.y;n=Math.cbrt(c**3+u**3),i=this.curElement.height*n/this.curElement.width}break;case 4:{const c=e.x-this.mousedownX,u=e.y-this.mousedownY;n=Math.cbrt(c**3+u**3),i=this.curElement.height*n/this.curElement.width}break;case 3:n=e.x-this.mousedownX;break;case 5:i=e.y-this.mousedownY;break;case 6:{const c=this.mousedownX-e.x,u=e.y-this.mousedownY;n=Math.cbrt(c**3+u**3),i=this.curElement.height*n/this.curElement.width}break;case 7:n=this.mousedownX-e.x;break}const o=this.curElement.width+n/t,a=this.curElement.height+i/t;if(o<=0||a<=0)return;this.width=o,this.height=a;const s=o*t,l=a*t;this.resizerImage.style.width=`${s}px`,this.resizerImage.style.height=`${l}px`,this._updateResizerRect(s,l),this._updateResizerSizeView(s,l),e.preventDefault()}_drawPreviewer(){const e=document.createElement("div");e.classList.add(`${Fe}-image-previewer`);const t=document.createElement("i");t.classList.add("image-close"),t.onclick=()=>{this._clearPreviewer()},e.append(t);const n=document.createElement("div");n.classList.add(`${Fe}-image-container`);const i=document.createElement("img");i.src=this.curElementSrc,i.draggable=!1,n.append(i),this.previewerImage=i,e.append(n);let o=0,a=0,s=1,l=0;const c=document.createElement("div");c.classList.add(`${Fe}-image-menu`);const u=document.createElement("i");u.classList.add("zoom-in"),u.onclick=()=>{s+=.1,this._setPreviewerTransform(s,l,o,a)},c.append(u);const h=document.createElement("i");h.onclick=()=>{s-.1<=.1||(s-=.1,this._setPreviewerTransform(s,l,o,a))},h.classList.add("zoom-out"),c.append(h);const d=document.createElement("i");d.classList.add("rotate"),d.onclick=()=>{l+=1,this._setPreviewerTransform(s,l,o,a)},c.append(d);const f=document.createElement("i");f.classList.add("original-size"),f.onclick=()=>{o=0,a=0,s=1,l=0,this._setPreviewerTransform(s,l,o,a)},c.append(f);const p=document.createElement("i");p.classList.add("image-download"),p.onclick=()=>{var x;const{mime:m}=this.previewerDrawOption;Md(i.src,`${(x=this.curElement)==null?void 0:x.id}.${m||"png"}`)},c.append(p),e.append(c),this.previewerContainer=e,document.body.append(e);let g=0,v=0,R=!1;i.onmousedown=m=>{R=!0,g=m.x,v=m.y,e.style.cursor="move"},e.onmousemove=m=>{!R||(o+=m.x-g,a+=m.y-v,g=m.x,v=m.y,this._setPreviewerTransform(s,l,o,a))},e.onmouseup=()=>{R=!1,e.style.cursor="auto"},e.onwheel=m=>{if(m.preventDefault(),m.deltaY<0)s+=.1;else{if(s-.1<=.1)return;s-=.1}this._setPreviewerTransform(s,l,o,a)}}_setPreviewerTransform(e,t,n,i){!this.previewerImage||(this.previewerImage.style.left=`${n}px`,this.previewerImage.style.top=`${i}px`,this.previewerImage.style.transform=`scale(${e}) rotate(${t*90}deg)`)}_clearPreviewer(){var e;(e=this.previewerContainer)==null||e.remove(),this.previewerContainer=null,document.body.style.overflow="auto"}_updateResizerRect(e,t){const n=this.options.resizerSize;this.resizerSelection.style.width=`${e}px`,this.resizerSelection.style.height=`${t}px`;for(let i=0;i<8;i++){const o=i===0||i===6||i===7?-n:i===1||i===5?e/2:e-n,a=i===0||i===1||i===2?-n:i===3||i===7?t/2-n:t-n;this.resizerHandleList[i].style.left=`${o}px`,this.resizerHandleList[i].style.top=`${a}px`}}_updateResizerSizeView(e,t){this.resizerSize.innerText=`${Math.round(e)} \xD7 ${Math.round(t)}`}render(){this._drawPreviewer(),document.body.style.overflow="hidden"}drawResizer(e,t=null,n={}){this.previewerDrawOption=n,this.curElementSrc=e[n.srcKey||"value"]||"",this.updateResizer(e,t),document.addEventListener("keydown",this._keydown)}updateResizer(e,t=null){const{scale:n}=this.options,i=e.width*n,o=e.height*n;this._updateResizerSizeView(i,o);const{x:a,y:s}=this._getElementPosition(e,t);this.resizerSelection.style.left=`${a}px`,this.resizerSelection.style.top=`${s}px`,this._updateResizerRect(i,o),this.resizerSelection.style.display="block",this.curElement=e,this.curPosition=t,this.width=i,this.height=o}clearResizer(){this.resizerSelection.style.display="none",document.removeEventListener("keydown",this._keydown)}}class JR{constructor(e){this.draw=e,this.range=e.getRange(),this.datePicker=new $d(e,{onSubmit:this._setValue.bind(this)})}_setValue(e){if(!e)return;const t=this.getDateElementRange();if(!t)return;const[n,i]=t,o=this.draw.getElementList(),a=o[n+1];this.draw.spliceElementList(o,n+1,i-n),this.range.setRange(n,n);const s={type:ae.DATE,value:"",dateFormat:a.dateFormat,valueList:[{value:e}]};ar(o,[s],n),this.draw.insertElementList([s])}getDateElementRange(){let e=-1,t=-1;const{startIndex:n,endIndex:i}=this.range.getRange();if(!~n&&!~i)return null;const o=this.draw.getElementList(),a=o[n];if(a.type!==ae.DATE)return null;let s=n;for(;s>0;){if(o[s].dateId!==a.dateId){e=s;break}s--}let l=n+1;for(;l<o.length;){if(o[l].dateId!==a.dateId){t=l-1;break}l++}return l===o.length&&(t=l-1),!~e||!~t?null:[e,t]}clearDatePicker(){this.datePicker.dispose()}renderDatePicker(e,t){const n=this.draw.getElementList(),i=this.getDateElementRange(),o=i?n.slice(i[0]+1,i[1]+1).map(a=>a.value).join(""):"";this.datePicker.render({value:o,position:t,dateFormat:e.dateFormat})}}var Io=(r=>(r.IFRAME="iframe",r.VIDEO="video",r))(Io||{});const t0=class{constructor(r){this.element=r}_defineIframeProperties(r){Object.defineProperties(r,{parent:{get:()=>null},__POWERED_BY_CANVAS_EDITOR__:{get:()=>!0}})}render(r){var n,i;const e=this.element.block,t=document.createElement("iframe");t.setAttribute("data-id",this.element.id),t.sandbox.add(...t0.sandbox),t.style.border="none",t.style.width="100%",t.style.height="100%",(n=e.iframeBlock)!=null&&n.src?t.src=e.iframeBlock.src:(i=e.iframeBlock)!=null&&i.srcdoc&&(t.srcdoc=e.iframeBlock.srcdoc),r.append(t),this._defineIframeProperties(t.contentWindow)}};let r0=t0;r0.sandbox=["allow-scripts","allow-same-origin"];class zR{constructor(e){this.element=e}render(e){var i;const t=this.element.block,n=document.createElement("video");n.style.width="100%",n.style.height="100%",n.style.objectFit="contain",n.src=((i=t.videoBlock)==null?void 0:i.src)||"",n.controls=!0,n.crossOrigin="anonymous",e.append(n)}}class $R{constructor(e,t){this.draw=e.getDraw(),this.blockContainer=e.getBlockContainer(),this.element=t,this.block=null,this.blockItem=this._createBlockItem(),this.blockContainer.append(this.blockItem)}getBlockElement(){return this.element}_createBlockItem(){const e=document.createElement("div");return e.classList.add(`${Fe}-block-item`),e}render(){const e=this.element.block;e.type===Io.IFRAME?(this.block=new r0(this.element),this.block.render(this.blockItem)):e.type===Io.VIDEO&&(this.block=new zR(this.element),this.block.render(this.blockItem))}setClientRects(e,t,n){const i=this.draw.getHeight(),o=this.draw.getPageGap(),a=e*(i+o),{metrics:s}=this.element;this.blockItem.style.width=`${s.width}px`,this.blockItem.style.height=`${s.height}px`,this.blockItem.style.left=`${t}px`,this.blockItem.style.top=`${a+n}px`}remove(){this.blockItem.remove()}}class jR{constructor(e){this.draw=e,this.container=e.getContainer(),this.blockMap=new Map,this.blockContainer=this._createBlockContainer(),this.container.append(this.blockContainer)}_createBlockContainer(){const e=document.createElement("div");return e.classList.add(`${Fe}-block-container`),e}getDraw(){return this.draw}getBlockContainer(){return this.blockContainer}render(e,t,n,i){const o=t.id,a=this.blockMap.get(o);if(a)a.setClientRects(e,n,i);else{const s=new $R(this,t);s.render(),s.setClientRects(e,n,i),this.blockMap.set(o,s)}}clear(){if(!this.blockMap.size)return;const e=this.draw.getElementList(),t=[];for(let n=0;n<e.length;n++){const i=e[n];i.type===ae.BLOCK&&t.push(i.id)}this.blockMap.forEach(n=>{const i=n.getBlockElement().id;t.includes(i)||(n.remove(),this.blockMap.delete(i))})}}const qR={global:{cut:"\u526A\u5207",copy:"\u590D\u5236",paste:"\u7C98\u8D34",selectAll:"\u5168\u9009",print:"\u6253\u5370"},control:{delete:"\u5220\u9664\u63A7\u4EF6"},hyperlink:{delete:"\u5220\u9664\u94FE\u63A5",cancel:"\u53D6\u6D88\u94FE\u63A5",edit:"\u7F16\u8F91\u94FE\u63A5"},image:{change:"\u66F4\u6539\u56FE\u7247",saveAs:"\u53E6\u5B58\u4E3A\u56FE\u7247",textWrap:"\u6587\u5B57\u73AF\u7ED5",textWrapType:{embed:"\u5D4C\u5165\u578B",upDown:"\u4E0A\u4E0B\u578B\u73AF\u7ED5",floatTop:"\u6D6E\u4E8E\u6587\u5B57\u4E0A\u65B9",floatBottom:"\u886C\u4E8E\u6587\u5B57\u4E0B\u65B9"}},table:{insertRowCol:"\u63D2\u5165\u884C\u5217",insertTopRow:"\u4E0A\u65B9\u63D2\u51651\u884C",insertBottomRow:"\u4E0B\u65B9\u63D2\u51651\u884C",insertLeftCol:"\u5DE6\u4FA7\u63D2\u51651\u5217",insertRightCol:"\u53F3\u4FA7\u63D2\u51651\u5217",deleteRowCol:"\u5220\u9664\u884C\u5217",deleteRow:"\u5220\u96641\u884C",deleteCol:"\u5220\u96641\u5217",deleteTable:"\u5220\u9664\u6574\u4E2A\u8868\u683C",mergeCell:"\u5408\u5E76\u5355\u5143\u683C",mergeCancelCell:"\u53D6\u6D88\u5408\u5E76",verticalAlign:"\u5782\u76F4\u5BF9\u9F50",verticalAlignTop:"\u9876\u7AEF\u5BF9\u9F50",verticalAlignMiddle:"\u5782\u76F4\u5C45\u4E2D",verticalAlignBottom:"\u5E95\u7AEF\u5BF9\u9F50",border:"\u8868\u683C\u8FB9\u6846",borderAll:"\u6240\u6709\u6846\u7EBF",borderEmpty:"\u65E0\u6846\u7EBF",borderExternal:"\u5916\u4FA7\u6846\u7EBF",borderTd:"\u5355\u5143\u683C\u8FB9\u6846",borderTdTop:"\u4E0A\u8FB9\u6846",borderTdRight:"\u53F3\u8FB9\u6846",borderTdBottom:"\u4E0B\u8FB9\u6846",borderTdLeft:"\u5DE6\u8FB9\u6846",borderTdForward:"\u6B63\u659C\u7EBF",borderTdBack:"\u53CD\u659C\u7EBF"}},em={now:"\u6B64\u523B",confirm:"\u786E\u5B9A",return:"\u8FD4\u56DE\u65E5\u671F",timeSelect:"\u65F6\u95F4\u9009\u62E9",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},year:"\u5E74",month:"\u6708",hour:"\u65F6",minute:"\u5206",second:"\u79D2"},tm={header:"\u9875\u7709",footer:"\u9875\u811A"},rm={displayName:"\u5206\u9875\u7B26"},nm={headerTip:"\u53CC\u51FB\u7F16\u8F91\u9875\u7709",footerTip:"\u53CC\u51FB\u7F16\u8F91\u9875\u811A"};var Ss={contextmenu:qR,datePicker:em,frame:tm,pageBreak:rm,zone:nm};const im={global:{cut:"Cut",copy:"Copy",paste:"Paste",selectAll:"Select all",print:"Print"},control:{delete:"Delete control"},hyperlink:{delete:"Delete hyperlink",cancel:"Cancel hyperlink",edit:"Edit hyperlink"},image:{change:"Change image",saveAs:"Save as image",textWrap:"Text wrap",textWrapType:{embed:"Embed",upDown:"Up down",floatTop:"Float above text",floatBottom:"Float below text"}},table:{insertRowCol:"Insert row col",insertTopRow:"Insert top 1 row",insertBottomRow:"Insert bottom 1 row",insertLeftCol:"Insert left 1 col",insertRightCol:"Insert right 1 col",deleteRowCol:"Delete row col",deleteRow:"Delete 1 row",deleteCol:"Delete 1 col",deleteTable:"Delete table",mergeCell:"Merge cell",mergeCancelCell:"Cancel merge cell",verticalAlign:"Vertical align",verticalAlignTop:"Top",verticalAlignMiddle:"Middle",verticalAlignBottom:"Bottom",border:"Table border",borderAll:"All",borderEmpty:"Empty",borderExternal:"External",borderTd:"Table cell border",borderTdTop:"Top",borderTdRight:"Right",borderTdBottom:"Bottom",borderTdLeft:"Left",borderTdForward:"Forward",borderTdBack:"Back"}},om={now:"Now",confirm:"Confirm",return:"Return",timeSelect:"Time select",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},year:" ",month:" ",hour:"Hour",minute:"Minute",second:"Second"},am={header:"Header",footer:"Footer"},sm={displayName:"Page Break"},lm={headerTip:"Double click to edit header",footerTip:"Double click to edit footer"};var cm={contextmenu:im,datePicker:om,frame:am,pageBreak:sm,zone:lm};class um{constructor(){this.langMap=new Map([["zhCN",Ss],["en",cm]]),this.currentLocale="zhCN"}registerLangMap(e,t){const n=this.langMap.get(e);this.langMap.set(e,Ld(n||Ss,t))}getLocale(){return this.currentLocale}setLocale(e){this.currentLocale=e}getLang(){return this.langMap.get(this.currentLocale)||Ss}t(e){const t=e.split(".");let n="",i=this.getLang();for(let o=0;o<t.length;o++){const a=t[o],s=Reflect.get(i,a);if(s)n=i=s;else return""}return n}}class hm{constructor(){this.promiseList=[]}add(e){this.promiseList.push(e)}clearAll(){this.promiseList=[]}allSettled(){return Promise.allSettled(this.promiseList)}}class fm{constructor(e,t){this.draw=e,this.zone=t,this.i18n=e.getI18n(),this.container=e.getContainer(),this.pageContainer=e.getPageContainer();const{tipContainer:n,tipContent:i}=this._drawZoneTip();this.tipContainer=n,this.tipContent=i,this.isDisableMouseMove=!0,this.currentMoveZone=Ke.MAIN;const o=[],{header:a,footer:s}=e.getOptions();a.disabled||o.push(Ke.HEADER),s.disabled||o.push(Ke.FOOTER),o.length&&this._watchMouseMoveZoneChange(o)}_watchMouseMoveZoneChange(e){this.pageContainer.addEventListener("mousemove",eg(t=>{if(!(this.isDisableMouseMove||!this.draw.getIsPagingMode())&&!!t.offsetY)if(t.target instanceof HTMLCanvasElement){const n=this.zone.getZoneByY(t.offsetY);if(!e.includes(n)){this._updateZoneTip(!1);return}this.currentMoveZone=n,this._updateZoneTip(this.zone.getZone()===Ke.MAIN&&(n===Ke.HEADER||n===Ke.FOOTER),t.x,t.y)}else this._updateZoneTip(!1)},250)),this.pageContainer.addEventListener("mouseenter",()=>{this.isDisableMouseMove=!1}),this.pageContainer.addEventListener("mouseleave",()=>{this.isDisableMouseMove=!0,this._updateZoneTip(!1)})}_drawZoneTip(){const e=document.createElement("div");e.classList.add(`${Fe}-zone-tip`);const t=document.createElement("span");return e.append(t),this.container.append(e),{tipContainer:e,tipContent:t}}_updateZoneTip(e,t,n){e?(this.tipContainer.classList.add("show"),this.tipContainer.style.left=`${t}px`,this.tipContainer.style.top=`${n}px`,this.tipContent.innerText=this.i18n.t(`zone.${this.currentMoveZone===Ke.HEADER?"headerTip":"footerTip"}`)):this.tipContainer.classList.remove("show")}}class dm{constructor(e){this.INDICATOR_PADDING=2,this.INDICATOR_TITLE_TRANSLATE=[20,5],this.draw=e,this.i18n=e.getI18n(),this.options=e.getOptions(),this.container=e.getContainer(),this.currentZone=Ke.MAIN,this.indicatorContainer=null,this.options.zone.tipDisabled||new fm(e,this)}isHeaderActive(){return this.getZone()===Ke.HEADER}isMainActive(){return this.getZone()===Ke.MAIN}isFooterActive(){return this.getZone()===Ke.FOOTER}getZone(){return this.currentZone}setZone(e){this.currentZone!==e&&(this.currentZone=e,this.draw.getRange().clearRange(),this.draw.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1}),this.drawZoneIndicator(),La(()=>{const t=this.draw.getListener();t.zoneChange&&t.zoneChange(e);const n=this.draw.getEventBus();n.isSubscribe("zoneChange")&&n.emit("zoneChange",e)}))}getZoneByY(e){const t=this.draw.getHeader(),n=t.getHeaderTop()+t.getHeight(),i=this.draw.getFooter(),a=this.draw.getHeight()-(i.getFooterBottom()+i.getHeight());return e<n?Ke.HEADER:e>a?Ke.FOOTER:Ke.MAIN}drawZoneIndicator(){if(this._clearZoneIndicator(),!this.isHeaderActive()&&!this.isFooterActive())return;const{scale:e}=this.options,t=this.isHeaderActive(),[n,i]=this.INDICATOR_TITLE_TRANSLATE,o=this.draw.getPageList(),a=this.draw.getMargins(),s=this.draw.getInnerWidth(),l=this.draw.getHeight(),c=this.draw.getPageGap(),u=l+c;this.indicatorContainer=document.createElement("div"),this.indicatorContainer.classList.add(`${Fe}-zone-indicator`);const h=this.draw.getHeader(),d=this.draw.getFooter(),f=t?h.getHeight():d.getHeight(),p=t?h.getHeaderTop():l-d.getFooterBottom()-f;for(let g=0;g<o.length;g++){const v=u*g+p,R=a[3]-this.INDICATOR_PADDING,m=a[3]+s+this.INDICATOR_PADDING,x=t?v-this.INDICATOR_PADDING:v+f+this.INDICATOR_PADDING,T=t?v+f+this.INDICATOR_PADDING:v-this.INDICATOR_PADDING,P=document.createElement("div");P.innerText=this.i18n.t(`frame.${t?"header":"footer"}`),P.style.top=`${T}px`,P.style.transform=`translate(${n*e}px, ${i*e}px) scale(${e})`,this.indicatorContainer.append(P);const A=document.createElement("span");A.classList.add(`${Fe}-zone-indicator-border__top`),A.style.top=`${x}px`,A.style.width=`${s}px`,A.style.marginLeft=`${a[3]}px`,this.indicatorContainer.append(A);const D=document.createElement("span");D.classList.add(`${Fe}-zone-indicator-border__left`),D.style.top=`${v}px`,D.style.height=`${f}px`,D.style.left=`${R}px`,this.indicatorContainer.append(D);const W=document.createElement("span");W.classList.add(`${Fe}-zone-indicator-border__bottom`),W.style.top=`${T}px`,this.indicatorContainer.append(W);const _=document.createElement("span");_.classList.add(`${Fe}-zone-indicator-border__right`),_.style.top=`${v}px`,_.style.height=`${f}px`,_.style.left=`${m}px`,this.indicatorContainer.append(_)}this.container.append(this.indicatorContainer)}_clearZoneIndicator(){var e;(e=this.indicatorContainer)==null||e.remove(),this.indicatorContainer=null}}class pm{constructor(e,t){this.draw=e,this.position=e.getPosition(),this.options=e.getOptions(),this.elementList=t||[],this.rowList=[],this.positionList=[]}getRowList(){return this.rowList}setElementList(e){this.elementList=e}getElementList(){return this.elementList}getPositionList(){return this.positionList}compute(){this.recovery(),this._computeRowList(),this._computePositionList()}recovery(){this.rowList=[],this.positionList=[]}_computeRowList(){const e=this.draw.getInnerWidth();this.rowList=this.draw.computeRowList({innerWidth:e,elementList:this.elementList})}_computePositionList(){const e=this.getFooterBottom(),t=this.draw.getInnerWidth(),i=this.draw.getMargins()[3],o=this.draw.getHeight(),a=this.getHeight(),s=o-e-a;this.position.computePageRowPosition({positionList:this.positionList,rowList:this.rowList,pageNo:0,startRowIndex:0,startIndex:0,startX:i,startY:s,innerWidth:t,zone:Ke.FOOTER})}getFooterBottom(){const{footer:{bottom:e,disabled:t},scale:n}=this.options;return t?0:Math.floor(e*n)}getMaxHeight(){const{footer:{maxHeightRadio:e}}=this.options,t=this.draw.getHeight();return Math.floor(t*_d[e])}getHeight(){const e=this.getMaxHeight(),t=this.getRowHeight();return t>e?e:t}getRowHeight(){return this.rowList.reduce((e,t)=>e+t.height,0)}getExtraHeight(){const e=this.draw.getMargins(),t=this.getHeight(),i=this.getFooterBottom()+t-e[2];return i<=0?0:i}render(e,t){e.globalAlpha=1;const n=this.draw.getInnerWidth(),i=this.getMaxHeight(),o=[];let a=0;for(let s=0;s<this.rowList.length;s++){const l=this.rowList[s];if(a+l.height>i)break;o.push(l),a+=l.height}this.draw.drawRow(e,{elementList:this.elementList,positionList:this.positionList,rowList:o,pageNo:t,startIndex:0,innerWidth:n,zone:Ke.FOOTER})}}class gm{constructor(e){this.UN_COUNT_STYLE_WIDTH=20,this.MEASURE_BASE_TEXT="0",this.LIST_GAP=10,this.draw=e,this.range=e.getRange(),this.options=e.getOptions()}setList(e,t){if(this.draw.isReadonly())return;const{startIndex:i,endIndex:o}=this.range.getRange();if(!~i&&!~o)return;const a=this.range.getRangeParagraphElementList();if(!a||!a.length)return;if(a.find(h=>h.listType===e&&h.listStyle===t)||!e){this.unsetList();return}const l=it();a.forEach(h=>{h.listId=l,h.listType=e,h.listStyle=t});const c=i===o,u=c?o:i;this.draw.render({curIndex:u,isSetCursor:c})}unsetList(){var c;if(this.draw.isReadonly())return;const{startIndex:t,endIndex:n}=this.range.getRange();if(!~t&&!~n)return;const i=(c=this.range.getRangeParagraphElementList())==null?void 0:c.filter(u=>u.listId);if(!i||!i.length)return;const o=this.draw.getElementList(),a=o[n];if(a.listId){let u=n+1;for(;u<o.length;){const h=o[u];if(h.value===Ne&&!h.listWrap)break;if(h.listId!==a.listId){this.draw.spliceElementList(o,u,0,{value:Ne});break}u++}}i.forEach(u=>{delete u.listId,delete u.listType,delete u.listStyle,delete u.listWrap});const s=t===n,l=s?n:t;this.draw.render({curIndex:l,isSetCursor:s})}computeListStyle(e,t){const n=new Map;let i=0,o=t[i].listId,a=[];const s=t.length;for(;i<s;){const l=t[i];if(o&&o===l.listId)a.push(l);else if(l.listId&&l.listId!==o){if(a.length){const c=this.getListStyleWidth(e,a);n.set(o,c)}o=l.listId,a=o?[l]:[]}i++}if(a.length){const l=this.getListStyleWidth(e,a);n.set(o,l)}return n}getListStyleWidth(e,t){const{scale:n,checkbox:i}=this.options,o=t[0];if(o.listStyle&&o.listStyle!==Er.DECIMAL)return o.listStyle===Er.CHECKBOX?(i.width+this.LIST_GAP)*n:this.UN_COUNT_STYLE_WIDTH*n;const a=t.reduce((c,u)=>(u.value===Ne&&(c+=1),c),0);if(!a)return 0;const s=`${this.MEASURE_BASE_TEXT.repeat(String(a).length)}${Ce.PERIOD}`,l=e.measureText(s);return Math.ceil((l.width+this.LIST_GAP)*n)}drawListStyle(e,t,n){var m;const{elementList:i,offsetX:o,listIndex:a,ascent:s}=t,l=i[0];if(l.value!==Ne||l.listWrap)return;let c=0;const{defaultTabWidth:u,scale:h,defaultFont:d,defaultSize:f}=this.options;for(let x=1;x<i.length;x++){const T=i[x];if((T==null?void 0:T.type)!==ae.TAB)break;c+=u*h}const{coordinate:{leftTop:[p,g]}}=n,v=p-o+c,R=g+s;if(l.listStyle===Er.CHECKBOX){const{width:x,height:T,gap:P}=this.options.checkbox,A={...l,checkbox:{value:!!((m=l.checkbox)!=null&&m.value)},metrics:{...l.metrics,width:(x+P*2)*h,height:T*h}};this.draw.getCheckboxParticle().render(e,A,v-P*h,R)}else{let x="";if(l.listType===dn.UL?x=Xl[l.listStyle]||Xl[Si.DISC]:x=`${a+1}${Ce.PERIOD}`,!x)return;e.save(),e.font=`${f*h}px ${d}`,e.fillText(x,v,R),e.restore()}}}const n0=class{constructor(r){this.options=r.getOptions()}render(r,e,t,n){const{scale:i,lineBreak:{color:o,lineWidth:a}}=this.options;r.save(),r.beginPath();const s=n-n0.HEIGHT*i/2,l=t+e.metrics.width;r.translate(l,s),r.scale(i,i),r.strokeStyle=o,r.lineWidth=a,r.lineCap="round",r.lineJoin="round",r.beginPath(),r.moveTo(8,0),r.lineTo(12,0),r.lineTo(12,6),r.lineTo(3,6),r.moveTo(3,6),r.lineTo(6,3),r.moveTo(3,6),r.lineTo(6,9),r.stroke(),r.closePath(),r.restore()}};let Ai=n0;Ai.WIDTH=12;Ai.HEIGHT=9;Ai.GAP=3;class Rm{constructor(e){this.draw=e,this.position=e.getPosition(),this.options=e.getOptions(),this.elementList=[],this.rowList=[],this.positionList=[]}_recovery(){this.elementList=[],this.rowList=[],this.positionList=[]}_compute(){this._computeRowList(),this._computePositionList()}_computeRowList(){const e=this.draw.getInnerWidth();this.rowList=this.draw.computeRowList({innerWidth:e,elementList:this.elementList})}_computePositionList(){const{lineBreak:e,scale:t}=this.options,n=this.draw.getHeader().getExtraHeight(),i=this.draw.getInnerWidth(),o=this.draw.getMargins();let a=o[3];e.disabled||(a+=(Ai.WIDTH+Ai.GAP)*t);const s=o[0]+n;this.position.computePageRowPosition({positionList:this.positionList,rowList:this.rowList,pageNo:0,startRowIndex:0,startIndex:0,startX:a,startY:s,innerWidth:i})}render(e){const{placeholder:{data:t,font:n,size:i,color:o,opacity:a}}=this.options;if(!t)return;this._recovery(),this.elementList=[{value:t,font:n,size:i,color:o}],Nr(this.elementList,{editorOptions:this.options}),this._compute();const s=this.draw.getInnerWidth();e.save(),e.globalAlpha=a,this.draw.drawRow(e,{elementList:this.elementList,positionList:this.positionList,rowList:this.rowList,pageNo:0,startIndex:0,innerWidth:s,isDrawLineBreak:!1}),e.restore()}}class mm{constructor(e){this.draw=e,this.options=e.getOptions(),this.range=e.getRange(),this.fillRectMap=new Map}setGroup(){if(this.draw.isReadonly()||this.draw.getZone().getZone()!==Ke.MAIN)return null;const e=this.range.getSelection();if(!e)return null;const t=it();return e.forEach(n=>{Array.isArray(n.groupIds)||(n.groupIds=[]),n.groupIds.push(t)}),this.draw.render({isSetCursor:!1,isCompute:!1}),t}getElementListByGroupId(e,t){var i,o;const n=[];for(let a=0;a<e.length;a++){const s=e[a];if(s.type===ae.TABLE){const l=s.trList;for(let c=0;c<l.length;c++){const u=l[c];for(let h=0;h<u.tdList.length;h++){const d=u.tdList[h],f=this.getElementListByGroupId(d.value,t);if(f.length)return n.push(...f),n}}}if((i=s==null?void 0:s.groupIds)!=null&&i.includes(t)){n.push(s);const l=e[a+1];if(!((o=l==null?void 0:l.groupIds)!=null&&o.includes(t)))break}}return n}deleteGroup(e){if(this.draw.isReadonly())return;const t=this.draw.getOriginalMainElementList(),n=this.getElementListByGroupId(t,e);if(!!n.length){for(let i=0;i<n.length;i++){const o=n[i],a=o.groupIds,s=a.findIndex(l=>l===e);a.splice(s,1),a.length||delete o.groupIds}this.draw.render({isSetCursor:!1,isCompute:!1})}}getContextByGroupId(e,t){var n,i;for(let o=0;o<e.length;o++){const a=e[o];if(a.type===ae.TABLE){const l=a.trList;for(let c=0;c<l.length;c++){const u=l[c];for(let h=0;h<u.tdList.length;h++){const d=u.tdList[h],f=this.getContextByGroupId(d.value,t);if(f)return{...f,isTable:!0,index:o,trIndex:c,tdIndex:h,tdId:d.id,trId:u.id,tableId:a.tableId}}}}const s=e[o+1];if(((n=a.groupIds)==null?void 0:n.includes(t))&&!((i=s==null?void 0:s.groupIds)!=null&&i.includes(t)))return{isTable:!1,startIndex:o,endIndex:o}}return null}clearFillInfo(){this.fillRectMap.clear()}recordFillInfo(e,t,n,i,o){const a=e.groupIds;if(!!a)for(const s of a){const l=this.fillRectMap.get(s);l?l.width+=i:this.fillRectMap.set(s,{x:t,y:n,width:i,height:o})}}render(e){var c;if(!this.fillRectMap.size)return;const t=this.range.getRange(),i=(c=this.draw.getElementList()[t.endIndex])==null?void 0:c.groupIds,{group:{backgroundColor:o,opacity:a,activeOpacity:s,activeBackgroundColor:l}}=this.options;e.save(),this.fillRectMap.forEach((u,h)=>{const{x:d,y:f,width:p,height:g}=u;i!=null&&i.includes(h)?(e.globalAlpha=s,e.fillStyle=l):(e.globalAlpha=a,e.fillStyle=o),e.fillRect(d,f,p,g)}),e.restore(),this.clearFillInfo()}}class vm{constructor(e,t,n,i,o,a){this.container=this._wrapContainer(e),this.pageList=[],this.ctxList=[],this.pageNo=0,this.pagePixelRatio=null,this.mode=t.mode,this.options=t,this.elementList=n.main,this.listener=i,this.eventBus=o,this.override=a,this._formatContainer(),this.pageContainer=this._createPageContainer(),this._createPage(0),this.i18n=new um,this.historyManager=new RR(this),this.position=new mR(this),this.zone=new dm(this),this.range=new vR(this),this.margin=new SR(this),this.background=new yR(this),this.search=new xR(this),this.group=new mm(this),this.underline=new OR(this),this.strikeout=new bR(this),this.highlight=new wR(this),this.previewer=new GR(this),this.imageParticle=new Ad(this),this.laTexParticle=new Ud(this),this.textParticle=new TR(this),this.tableParticle=new NR(this),this.tableTool=new MR(this),this.pageNumber=new ER(this),this.waterMark=new UR(this),this.placeholder=new Rm(this),this.header=new FR(this,n.header),this.footer=new pm(this,n.footer),this.hyperlinkParticle=new LR(this),this.dateParticle=new JR(this),this.separatorParticle=new DR(this),this.pageBreakParticle=new XR(this),this.superscriptParticle=new CR,this.subscriptParticle=new AR,this.checkboxParticle=new kR(this),this.radioParticle=new ZR(this),this.blockParticle=new jR(this),this.listParticle=new gm(this),this.lineBreakParticle=new Ai(this),this.control=new YR(this),this.scrollObserver=new _R(this),this.selectionObserver=new IR(this),this.imageObserver=new hm,this.canvasEvent=new pR(this),this.cursor=new Zg(this,this.canvasEvent),this.canvasEvent.register(),this.globalEvent=new gR(this,this.canvasEvent),this.globalEvent.register(),this.workerManager=new BR(this);const{letterClass:s}=t;this.LETTER_REG=new RegExp(`[${s.join("")}]`),this.WORD_LIKE_REG=new RegExp(`${s.map(l=>`[^${l}][${l}]`).join("|")}`),this.rowList=[],this.pageRowList=[],this.painterStyle=null,this.painterOptions=null,this.visiblePageNoList=[],this.intersectionPageNo=0,this.lazyRenderIntersectionObserver=null,this.printModeData=null,this.render({isInit:!0,isSetCursor:!1,isFirstRender:!0})}getLetterReg(){return this.LETTER_REG}getMode(){return this.mode}setMode(e){if(this.mode!==e){if(e===Mt.PRINT){this.printModeData={header:this.header.getElementList(),main:this.elementList,footer:this.footer.getElementList()};const t=gt(this.printModeData);["header","main","footer"].forEach(i=>{t[i]=this.control.filterAssistElement(t[i])}),this.setEditorData(t)}this.mode===Mt.PRINT&&this.printModeData&&(this.setEditorData(this.printModeData),this.printModeData=null),this.range.clearRange(),this.mode=e,this.render({isSetCursor:!1,isSubmitHistory:!1})}}isReadonly(){switch(this.mode){case Mt.READONLY:case Mt.PRINT:return!0;case Mt.FORM:return!this.control.getIsRangeWithinControl();default:return!1}}getOriginalWidth(){const{paperDirection:e,width:t,height:n}=this.options;return e===jn.VERTICAL?t:n}getOriginalHeight(){const{paperDirection:e,width:t,height:n}=this.options;return e===jn.VERTICAL?n:t}getWidth(){return Math.floor(this.getOriginalWidth()*this.options.scale)}getHeight(){return Math.floor(this.getOriginalHeight()*this.options.scale)}getMainHeight(){return this.getHeight()-this.getMainOuterHeight()}getMainOuterHeight(){const e=this.getMargins(),t=this.header.getExtraHeight(),n=this.footer.getExtraHeight();return e[0]+e[2]+t+n}getCanvasWidth(e=-1){return this.getPage(e).width}getCanvasHeight(e=-1){return this.getPage(e).height}getInnerWidth(){const e=this.getWidth(),t=this.getMargins();return e-t[1]-t[3]}getOriginalInnerWidth(){const e=this.getOriginalWidth(),t=this.getOriginalMargins();return e-t[1]-t[3]}getMargins(){return this.getOriginalMargins().map(e=>e*this.options.scale)}getOriginalMargins(){const{margins:e,paperDirection:t}=this.options;return t===jn.VERTICAL?e:[e[1],e[2],e[3],e[0]]}getPageGap(){return this.options.pageGap*this.options.scale}getOriginalPageGap(){return this.options.pageGap}getPageNumberBottom(){const{pageNumber:{bottom:e},scale:t}=this.options;return e*t}getMarginIndicatorSize(){return this.options.marginIndicatorSize*this.options.scale}getDefaultBasicRowMarginHeight(){return this.options.defaultBasicRowMarginHeight*this.options.scale}getTdPadding(){const{table:{tdPadding:e},scale:t}=this.options;return e.map(n=>n*t)}getContainer(){return this.container}getPageContainer(){return this.pageContainer}getVisiblePageNoList(){return this.visiblePageNoList}setVisiblePageNoList(e){this.visiblePageNoList=e,this.listener.visiblePageNoListChange&&this.listener.visiblePageNoListChange(this.visiblePageNoList),this.eventBus.isSubscribe("visiblePageNoListChange")&&this.eventBus.emit("visiblePageNoListChange",this.visiblePageNoList)}getIntersectionPageNo(){return this.intersectionPageNo}setIntersectionPageNo(e){this.intersectionPageNo=e,this.listener.intersectionPageNoChange&&this.listener.intersectionPageNoChange(this.intersectionPageNo),this.eventBus.isSubscribe("intersectionPageNoChange")&&this.eventBus.emit("intersectionPageNoChange",this.intersectionPageNo)}getPageNo(){return this.pageNo}setPageNo(e){this.pageNo=e}getPage(e=-1){return this.pageList[~e?e:this.pageNo]}getPageList(){return this.pageList}getPageCount(){return this.pageList.length}getTableRowList(e){const t=this.position.getPositionContext(),{index:n,trIndex:i,tdIndex:o}=t;return e[n].trList[i].tdList[o].rowList}getOriginalRowList(){const e=this.getZone();return e.isHeaderActive()?this.header.getRowList():e.isFooterActive()?this.footer.getRowList():this.rowList}getRowList(){return this.position.getPositionContext().isTable?this.getTableRowList(this.getOriginalElementList()):this.getOriginalRowList()}getPageRowList(){return this.pageRowList}getCtx(){return this.ctxList[this.pageNo]}getOptions(){return this.options}getSearch(){return this.search}getGroup(){return this.group}getHistoryManager(){return this.historyManager}getPosition(){return this.position}getZone(){return this.zone}getRange(){return this.range}getLineBreakParticle(){return this.lineBreakParticle}getHeaderElementList(){return this.header.getElementList()}getTableElementList(e){var a;const t=this.position.getPositionContext(),{index:n,trIndex:i,tdIndex:o}=t;return((a=e[n].trList)==null?void 0:a[i].tdList[o].value)||[]}getElementList(){const e=this.position.getPositionContext(),t=this.getOriginalElementList();return e.isTable?this.getTableElementList(t):t}getMainElementList(){return this.position.getPositionContext().isTable?this.getTableElementList(this.elementList):this.elementList}getOriginalElementList(){const e=this.getZone();return e.isHeaderActive()?this.getHeaderElementList():e.isFooterActive()?this.getFooterElementList():this.elementList}getOriginalMainElementList(){return this.elementList}getFooterElementList(){return this.footer.getElementList()}insertElementList(e){if(!e.length||!this.range.getIsCanInput())return;const{startIndex:t,endIndex:n}=this.range.getRange();if(!~t&&!~n)return;Nr(e,{isHandleFirstElement:!1,editorOptions:this.options});let i=-1,o=this.control.getActiveControl();if(!o&&this.control.getIsRangeWithinControl()&&(this.control.initControl(),o=this.control.getActiveControl()),o&&this.control.getIsRangeWithinControl())i=o.setValue(e,void 0,{isIgnoreDisabledRule:!0});else{const a=this.getElementList(),s=t===n,l=t+1;s||this.spliceElementList(a,l,n-t),this.spliceElementList(a,l,0,...e),i=t+e.length;const c=a[l-1];e[0].listId&&c&&!c.listId&&(c==null?void 0:c.value)===Ne&&(!c.type||c.type===ae.TEXT)&&(a.splice(t,1),i-=1)}~i&&(this.range.setRange(i,i),this.render({curIndex:i}))}appendElementList(e,t={}){if(!e.length)return;Nr(e,{isHandleFirstElement:!1,editorOptions:this.options});let n;const{isPrepend:i}=t;i?(this.elementList.splice(1,0,...e),n=e.length):(this.elementList.push(...e),n=this.elementList.length-1),this.range.setRange(n,n),this.render({curIndex:n})}spliceElementList(e,t,n,...i){var o,a,s;if(n>0){const l=t+n,c=e[l],u=c==null?void 0:c.listId;if(u&&((o=e[t-1])==null?void 0:o.listId)!==u){let h=l;for(;h<e.length;){const d=e[h];if(d.listId!==u||d.value===Ne)break;delete d.listId,delete d.listType,delete d.listStyle,h++}}if(this.control.getActiveControl())e.splice(t,n);else{let h=l-1;for(;h>=t;)((s=(a=e[h])==null?void 0:a.control)==null?void 0:s.deletable)!==!1&&e.splice(h,1),h--}}for(let l=0;l<i.length;l++)e.splice(t+l,0,i[l])}getCanvasEvent(){return this.canvasEvent}getGlobalEvent(){return this.globalEvent}getListener(){return this.listener}getEventBus(){return this.eventBus}getOverride(){return this.override}getCursor(){return this.cursor}getPreviewer(){return this.previewer}getImageParticle(){return this.imageParticle}getTableTool(){return this.tableTool}getTableParticle(){return this.tableParticle}getHeader(){return this.header}getFooter(){return this.footer}getHyperlinkParticle(){return this.hyperlinkParticle}getDateParticle(){return this.dateParticle}getListParticle(){return this.listParticle}getCheckboxParticle(){return this.checkboxParticle}getRadioParticle(){return this.radioParticle}getControl(){return this.control}getWorkerManager(){return this.workerManager}getImageObserver(){return this.imageObserver}getI18n(){return this.i18n}getRowCount(){return this.getRowList().length}async getDataURL(e={}){const{pixelRatio:t,mode:n}=e;t&&this.setPagePixelRatio(t);const i=this.mode,o=!!n&&i!==n;o&&this.setMode(n),this.render({isLazy:!1,isCompute:!1,isSetCursor:!1,isSubmitHistory:!1}),await this.imageObserver.allSettled();const a=this.pageList.map(s=>s.toDataURL());return t&&this.setPagePixelRatio(null),o&&this.setMode(i),a}getPainterStyle(){return this.painterStyle&&Object.keys(this.painterStyle).length?this.painterStyle:null}getPainterOptions(){return this.painterOptions}setPainterStyle(e,t){this.painterStyle=e,this.painterOptions=t||null,this.getPainterStyle()&&this.pageList.forEach(n=>n.style.cursor="copy")}setDefaultRange(){!this.elementList.length||setTimeout(()=>{const e=this.elementList.length-1;this.range.setRange(e,e),this.range.setRangeStyle()})}getIsPagingMode(){return this.options.pageMode===Ln.PAGING}setPageMode(e){if(!e||this.options.pageMode===e)return;if(this.options.pageMode=e,e===Ln.PAGING){const{height:i}=this.options,o=this.getPagePixelRatio(),a=this.pageList[0];a.style.height=`${i}px`,a.height=i*o,this._initPageContext(this.ctxList[0])}else this._disconnectLazyRender(),this.header.recovery(),this.footer.recovery(),this.zone.setZone(Ke.MAIN);const{startIndex:t}=this.range.getRange(),n=this.range.getIsCollapsed();this.render({isSetCursor:!0,curIndex:t,isSubmitHistory:!1}),n||this.cursor.drawCursor({isShow:!1}),setTimeout(()=>{this.listener.pageModeChange&&this.listener.pageModeChange(e),this.eventBus.isSubscribe("pageModeChange")&&this.eventBus.emit("pageModeChange",e)})}setPageScale(e){const t=this.getPagePixelRatio();this.options.scale=e;const n=this.getWidth(),i=this.getHeight();this.container.style.width=`${n}px`,this.pageList.forEach((a,s)=>{a.width=n*t,a.height=i*t,a.style.width=`${n}px`,a.style.height=`${i}px`,a.style.marginBottom=`${this.getPageGap()}px`,this._initPageContext(this.ctxList[s])});const o=this.position.getCursorPosition();this.render({isSubmitHistory:!1,isSetCursor:!!o,curIndex:o==null?void 0:o.index}),this.listener.pageScaleChange&&this.listener.pageScaleChange(e),this.eventBus.isSubscribe("pageScaleChange")&&this.eventBus.emit("pageScaleChange",e)}getPagePixelRatio(){return this.pagePixelRatio||window.devicePixelRatio}setPagePixelRatio(e){!this.pagePixelRatio&&e===window.devicePixelRatio||e===this.pagePixelRatio||(this.pagePixelRatio=e,this.setPageDevicePixel())}setPageDevicePixel(){const e=this.getPagePixelRatio(),t=this.getWidth(),n=this.getHeight();this.pageList.forEach((i,o)=>{i.width=t*e,i.height=n*e,this._initPageContext(this.ctxList[o])}),this.render({isSubmitHistory:!1,isSetCursor:!1})}setPaperSize(e,t){this.options.width=e,this.options.height=t;const n=this.getPagePixelRatio(),i=this.getWidth(),o=this.getHeight();this.container.style.width=`${i}px`,this.pageList.forEach((a,s)=>{a.width=i*n,a.height=o*n,a.style.width=`${i}px`,a.style.height=`${o}px`,this._initPageContext(this.ctxList[s])}),this.render({isSubmitHistory:!1,isSetCursor:!1})}setPaperDirection(e){const t=this.getPagePixelRatio();this.options.paperDirection=e;const n=this.getWidth(),i=this.getHeight();this.container.style.width=`${n}px`,this.pageList.forEach((o,a)=>{o.width=n*t,o.height=i*t,o.style.width=`${n}px`,o.style.height=`${i}px`,this._initPageContext(this.ctxList[a])}),this.render({isSubmitHistory:!1,isSetCursor:!1})}setPaperMargin(e){this.options.margins=e,this.render({isSubmitHistory:!1,isSetCursor:!1})}getValue(e={}){const{pageNo:t}=e;let n=this.elementList;Number.isInteger(t)&&t>=0&&t<this.pageRowList.length&&(n=this.pageRowList[t].flatMap(o=>o.elementList));const i={header:bt(this.getHeaderElementList()),main:bt(n),footer:bt(this.getFooterElementList())};return{version:K1,data:i,options:gt(this.options)}}setValue(e){const{header:t,main:n,footer:i}=gt(e);if(!t&&!n&&!i)return;[t,n,i].forEach(a=>{!a||Nr(a,{editorOptions:this.options})}),this.setEditorData({header:t,main:n,footer:i}),this.historyManager.recovery(),this.render({isSetCursor:!1,isFirstRender:!0})}setEditorData(e){const{header:t,main:n,footer:i}=e;t&&this.header.setElementList(t),n&&(this.elementList=n),i&&this.footer.setElementList(i)}_wrapContainer(e){const t=document.createElement("div");return e.append(t),t}_formatContainer(){this.container.style.position="relative",this.container.style.width=`${this.getWidth()}px`,this.container.setAttribute(fn,pn.MAIN)}_createPageContainer(){const e=document.createElement("div");return e.classList.add(`${Fe}-page-container`),this.container.append(e),e}_createPage(e){const t=this.getWidth(),n=this.getHeight(),i=document.createElement("canvas");i.style.width=`${t}px`,i.style.height=`${n}px`,i.style.display="block",i.style.backgroundColor="#ffffff",i.style.marginBottom=`${this.getPageGap()}px`,i.setAttribute("data-index",String(e)),this.pageContainer.append(i);const o=this.getPagePixelRatio();i.width=t*o,i.height=n*o,i.style.cursor="text";const a=i.getContext("2d");this._initPageContext(a),this.pageList.push(i),this.ctxList.push(a)}_initPageContext(e){const t=this.getPagePixelRatio();e.scale(t,t),e.letterSpacing="0px",e.wordSpacing="0px",e.direction="ltr"}getElementFont(e,t=1){const{defaultSize:n,defaultFont:i}=this.options,o=e.font||i,a=e.actualSize||e.size||n;return`${e.italic?"italic ":""}${e.bold?"bold ":""}${a*t}px ${o}`}getElementSize(e){return e.actualSize||e.size||this.options.defaultSize}getElementRowMargin(e){const{defaultBasicRowMarginHeight:t,defaultRowMargin:n,scale:i}=this.options;return t*(e.rowMargin||n)*i}computeRowList(e){var m,x,T,P,A,D,W,_,Q,te;const{innerWidth:t,elementList:n,isPagingMode:i=!1}=e,{defaultSize:o,defaultRowMargin:a,scale:s,table:{tdPadding:l},defaultTabWidth:c}=this.options,u=this.getDefaultBasicRowMarginHeight(),d=document.createElement("canvas").getContext("2d"),f=this.listParticle.computeListStyle(d,n),p=[];n.length&&p.push({width:0,height:0,ascent:0,elementList:[],startIndex:0,rowFlex:((m=n==null?void 0:n[0])==null?void 0:m.rowFlex)||((x=n==null?void 0:n[1])==null?void 0:x.rowFlex)});let g,v=0,R=0;for(let O=0;O<n.length;O++){const I=p[p.length-1],y=n[O],L=u*(y.rowMargin||a),k={width:0,height:0,boundingBoxAscent:0,boundingBoxDescent:0},F=I.offsetX||y.listId&&f.get(y.listId)||0,Y=t-F;if(y.type===ae.IMAGE||y.type===ae.LATEX){if(y.imgDisplay===ze.FLOAT_TOP||y.imgDisplay===ze.FLOAT_BOTTOM)k.width=0,k.height=0,k.boundingBoxDescent=0;else{const X=y.width*s,C=y.height*s;if(X>Y){const G=C*Y/X;y.width=Y/s,y.height=G/s,k.width=Y,k.height=G,k.boundingBoxDescent=G}else k.width=X,k.height=C,k.boundingBoxDescent=C}k.boundingBoxAscent=0}else if(y.type===ae.TABLE){const X=l[1]+l[3],C=l[0]+l[2];if(y.pagingId){let q=O+1,M=0;for(;q<n.length;){const w=n[q];if(w.pagingId===y.pagingId){const S=w.trList.filter(E=>!E.pagingRepeat);y.trList.push(...S),y.height+=w.height,q++,M++}else break}M&&n.splice(O+1,M)}y.pagingIndex=(T=y.pagingIndex)!=null?T:0,this.tableParticle.computeRowColInfo(y);const G=y.trList;for(let q=0;q<G.length;q++){const M=G[q];for(let w=0;w<M.tdList.length;w++){const S=M.tdList[w],E=this.computeRowList({innerWidth:(S.width-X)*s,elementList:S.value,isPagingMode:i}),K=E.reduce((se,ge)=>se+ge.height,0);S.rowList=E;const $=K/s+C;if(S.height<$){const se=$-S.height,ge=G[q+S.rowspan-1];ge.height+=se,ge.tdList.forEach(Oe=>{Oe.height+=se})}let Z=0,oe=0,ce=0;for(;ce<S.rowspan;){const se=G[ce+q]||G[q];Z+=se.minHeight,oe+=se.height,ce++}S.realMinHeight=Z,S.realHeight=oe,S.mainHeight=$}}const z=this.tableParticle.getTrListGroupByCol(G);for(let q=0;q<z.length;q++){const M=z[q];let w=-1;for(let S=0;S<M.tdList.length;S++){const E=M.tdList[S],K=E.realHeight,$=E.mainHeight,Z=E.realMinHeight,oe=$<Z?K-Z:K-$;(!~w||oe<w)&&(w=oe)}if(w>0){const S=G[q];S.height-=w,S.tdList.forEach(E=>{E.height-=w})}}this.tableParticle.computeRowColInfo(y);const H=this.tableParticle.getTableHeight(y),j=this.tableParticle.getTableWidth(y);y.width=j,y.height=H;const ue=j*s,b=H*s;if(k.width=ue,k.height=b,k.boundingBoxDescent=b,k.boundingBoxAscent=-L,i){const q=this.getHeight(),M=this.getMainOuterHeight();let w=M;for(let E=0;E<p.length;E++){const K=p[E];K.height+w>q||((P=p[E-1])==null?void 0:P.isPageBreak)?w=M+K.height:w+=K.height}const S=L*2*s;if((w+y.trList[0].height+S>q||y.pagingIndex!==0&&y.trList[0].pagingRepeat)&&(w=M),w+S+b>q){const E=y.trList;let K=0,$=0,Z=0;if(E.length>1)for(let oe=0;oe<E.length;oe++){const ce=E[oe],se=ce.height*s;if(w+S+Z+se>q){const ge=ce.tdList.reduce((Oe,Te)=>Oe+Te.colspan,0);((A=y.colgroup)==null?void 0:A.length)!==ge&&($=0);break}else K=oe+1,$=E.length-K,Z+=se}if($){const oe=E.splice(K,$),ce=oe.reduce((Te,Ye)=>Te+Ye.height,0),se=y.pagingId||it();y.pagingId=se,y.height-=ce,k.height-=ce,k.boundingBoxDescent-=ce;const ge=gt(y);ge.pagingId=se,ge.pagingIndex=y.pagingIndex+1;const Oe=E.filter(Te=>Te.pagingRepeat);if(Oe.length){const Te=gt(Oe);Te.forEach(Ye=>Ye.id=it()),oe.unshift(...Te)}ge.trList=oe,ge.id=it(),this.spliceElementList(n,O+1,0,ge)}}if(y.pagingId){const E=this.position.getPositionContext();if(E.isTable){let K=-1,$=-1,Z=O;for(;Z<n.length;){const oe=n[Z];if(oe.pagingId!==y.pagingId)break;const ce=oe.trList.findIndex(se=>se.id===E.trId);if(~ce){K=Z,$=ce;break}Z++}~K&&(E.index=K,E.trIndex=$,this.position.setPositionContext(E))}}}}else if(y.type===ae.SEPARATOR){const{separator:{lineWidth:X}}=this.options;y.width=Y/s,k.width=Y,k.height=X*s,k.boundingBoxAscent=-L,k.boundingBoxDescent=-L+k.height}else if(y.type===ae.PAGE_BREAK)y.width=Y/s,k.width=Y,k.height=o;else if(y.type===ae.RADIO||y.controlComponent===ye.RADIO){const{width:X,height:C,gap:G}=this.options.radio,z=X+G*2;y.width=z,k.width=z*s,k.height=C*s}else if(y.type===ae.CHECKBOX||y.controlComponent===ye.CHECKBOX){const{width:X,height:C,gap:G}=this.options.checkbox,z=X+G*2;y.width=z,k.width=z*s,k.height=C*s}else if(y.type===ae.TAB)k.width=c*s,k.height=o*s,k.boundingBoxDescent=0,k.boundingBoxAscent=k.height;else if(y.type===ae.BLOCK){if(!y.width)k.width=Y;else{const X=y.width*s;k.width=Math.min(X,Y)}k.height=y.height*s,k.boundingBoxDescent=k.height,k.boundingBoxAscent=0}else{const X=y.size||o;(y.type===ae.SUPERSCRIPT||y.type===ae.SUBSCRIPT)&&(y.actualSize=Math.ceil(X*.6)),k.height=(y.actualSize||X)*s,d.font=this.getElementFont(y);const C=this.textParticle.measureText(d,y);k.width=C.width*s,y.letterSpacing&&(k.width+=y.letterSpacing*s),k.boundingBoxAscent=(y.value===Ne?y.size||o:C.actualBoundingBoxAscent)*s,k.boundingBoxDescent=C.actualBoundingBoxDescent*s,y.type===ae.SUPERSCRIPT?k.boundingBoxAscent+=k.height/2:y.type===ae.SUBSCRIPT&&(k.boundingBoxDescent+=k.height/2)}const V=y.imgDisplay!==ze.INLINE&&y.type===ae.IMAGE||y.type===ae.LATEX?k.height+L:k.boundingBoxAscent+L,ie=L+k.boundingBoxAscent+k.boundingBoxDescent+L,U=Object.assign(y,{metrics:k,style:this.getElementFont(y,s)});if((D=U.control)!=null&&D.minWidth&&(U.controlComponent&&(R+=k.width),U.controlComponent===ye.POSTFIX)){const X=U.control.minWidth-R;if(X>0){const C=Y-I.width-k.width,G=Math.min(C,X)*s;U.left=G,I.width+=G}else U.left=0;R=0}const N=n[O-1];let J=n[O+1],B=I.width+k.width;if(this.options.wordBreak===wc.BREAK_WORD&&(!(N!=null&&N.type)||(N==null?void 0:N.type)===ae.TEXT)&&(!y.type||y.type===ae.TEXT)){const X=`${(N==null?void 0:N.value)||""}${y.value}`;if(this.WORD_LIKE_REG.test(X)){const{width:C,endElement:G}=this.textParticle.measureWord(d,n,O);C<=Y&&(B+=C,J=G)}B+=this.textParticle.measurePunctuationWidth(d,J)}y.listId&&(y.listId!==g?v=0:y.value===Ne&&!y.listWrap&&v++),g=y.listId;const re=y.type===ae.SEPARATOR||y.type===ae.TABLE||(N==null?void 0:N.type)===ae.TABLE||(N==null?void 0:N.type)===ae.BLOCK||y.type===ae.BLOCK||(N==null?void 0:N.imgDisplay)===ze.INLINE||y.imgDisplay===ze.INLINE||(N==null?void 0:N.listId)!==y.listId||O!==0&&y.value===Ne,ee=B>Y;if(re||ee){const X={width:k.width,height:ie,startIndex:O,elementList:[U],ascent:V,rowFlex:((W=n[O])==null?void 0:W.rowFlex)||((_=n[O+1])==null?void 0:_.rowFlex),isPageBreak:y.type===ae.PAGE_BREAK};if(U.controlComponent!==ye.PREFIX&&((Q=U.control)==null?void 0:Q.indentation)===Vd.VALUE_START){const C=I.elementList.findIndex(G=>G.controlId===U.controlId&&G.controlComponent!==ye.PREFIX);if(~C){const z=this.position.computeRowPosition({row:I,innerWidth:this.getInnerWidth()})[C];z&&(X.offsetX=z.coordinate.leftTop[0])}}y.listId&&(X.isList=!0,X.offsetX=f.get(y.listId),X.listIndex=v),p.push(X)}else I.width+=k.width,O===0&&Fa(n[1])?(I.height=u,I.ascent=u):I.height<ie&&(I.height=ie,I.ascent=V),I.elementList.push(U);if((re||ee||O===n.length-1)&&(I.isWidthNotEnough=ee&&!re,(N==null?void 0:N.rowFlex)===Ge.JUSTIFY||(N==null?void 0:N.rowFlex)===Ge.ALIGNMENT&&ee)){const X=((te=I.elementList[0])==null?void 0:te.value)===Ne?I.elementList.slice(1):I.elementList,C=(Y-I.width)/(X.length-1);for(let G=0;G<X.length-1;G++){const z=X[G];z.metrics.width+=C}I.width=Y}}return p}_computePageList(){var l;const e=[[]],{pageMode:t,pageNumber:{maxPageNo:n}}=this.options,i=this.getHeight(),o=this.getMainOuterHeight();let a=o,s=0;if(t===Ln.CONTINUITY){e[0]=this.rowList,a+=this.rowList.reduce((d,f)=>d+f.height,0);const c=this.getPagePixelRatio(),u=this.pageList[0],h=Number(u.style.height.replace("px",""));if(a>h)u.style.height=`${a}px`,u.height=a*c;else{const d=a<i?i:a;u.style.height=`${d}px`,u.height=d*c}this._initPageContext(this.ctxList[0])}else for(let c=0;c<this.rowList.length;c++){const u=this.rowList[c];if(u.height+a>i||((l=this.rowList[c-1])==null?void 0:l.isPageBreak)){if(Number.isInteger(n)&&s>=n){this.elementList=this.elementList.slice(0,u.startIndex);break}a=o+u.height,e.push([u]),s++}else a+=u.height,e[s].push(u)}return e}_drawHighlight(e,t){const{rowList:n,positionList:i}=t;for(let o=0;o<n.length;o++){const a=n[o];for(let s=0;s<a.elementList.length;s++){const l=a.elementList[s],c=a.elementList[s-1];if(l.highlight){c&&c.highlight&&c.highlight!==l.highlight&&this.highlight.render(e);const{coordinate:{leftTop:[u,h]}}=i[a.startIndex+s];this.highlight.recordFillInfo(e,u,h,l.metrics.width,a.height,l.highlight)}else c!=null&&c.highlight&&this.highlight.render(e)}this.highlight.render(e)}}drawRow(e,t){var m,x,T,P,A,D;this._drawHighlight(e,t);const{scale:n,table:{tdPadding:i},group:o,lineBreak:a}=this.options,{rowList:s,pageNo:l,elementList:c,positionList:u,startIndex:h,zone:d,isDrawLineBreak:f=!a.disabled}=t,p=this.mode===Mt.PRINT,{isCrossRowCol:g,tableId:v}=this.range.getRange();let R=h;for(let W=0;W<s.length;W++){const _=s[W],Q={x:0,y:0,width:0,height:0};let te=null;for(let O=0;O<_.elementList.length;O++){const I=_.elementList[O],y=I.metrics,{ascent:L,coordinate:{leftTop:[k,F]}}=u[_.startIndex+O],Y=_.elementList[O-1];if(I.type===ae.IMAGE)this.textParticle.complete(),I.imgDisplay!==ze.FLOAT_TOP&&I.imgDisplay!==ze.FLOAT_BOTTOM&&this.imageParticle.render(e,I,k,F+L);else if(I.type===ae.LATEX)this.textParticle.complete(),this.laTexParticle.render(e,I,k,F+L);else if(I.type===ae.TABLE)g&&(Q.x=k,Q.y=F,te=I),this.tableParticle.render(e,I,k,F);else if(I.type===ae.HYPERLINK)this.textParticle.complete(),this.hyperlinkParticle.render(e,I,k,F+L);else if(I.type===ae.DATE){const N=_.elementList[O+1];(!Y||Y.dateId!==I.dateId)&&this.textParticle.complete(),this.textParticle.record(e,I,k,F+L),(!N||N.dateId!==I.dateId)&&this.textParticle.complete()}else I.type===ae.SUPERSCRIPT?(this.textParticle.complete(),this.superscriptParticle.render(e,I,k,F+L)):I.type===ae.SUBSCRIPT?(this.underline.render(e),this.textParticle.complete(),this.subscriptParticle.render(e,I,k,F+L)):I.type===ae.SEPARATOR?this.separatorParticle.render(e,I,k,F):I.type===ae.PAGE_BREAK?this.mode!==Mt.CLEAN&&!p&&this.pageBreakParticle.render(e,I,k,F):I.type===ae.CHECKBOX||I.controlComponent===ye.CHECKBOX?(this.textParticle.complete(),this.checkboxParticle.render(e,I,k,F+L)):I.type===ae.RADIO||I.controlComponent===ye.RADIO?(this.textParticle.complete(),this.radioParticle.render(e,I,k,F+L)):I.type===ae.TAB?this.textParticle.complete():I.rowFlex===Ge.ALIGNMENT||I.rowFlex===Ge.JUSTIFY?(this.textParticle.record(e,I,k,F+L),this.textParticle.complete()):I.type===ae.BLOCK?(this.textParticle.complete(),this.blockParticle.render(l,I,k,F)):(I.left&&this.textParticle.complete(),this.textParticle.record(e,I,k,F+L),(I.width||I.letterSpacing||q1.test(I.value))&&this.textParticle.complete());if(f&&!p&&this.mode!==Mt.CLEAN&&!_.isWidthNotEnough&&O===_.elementList.length-1&&this.lineBreakParticle.render(e,I,k,F+_.height/2),(m=I.control)!=null&&m.border){((x=Y==null?void 0:Y.control)==null?void 0:x.border)&&Y.controlId!==I.controlId&&this.control.drawBorder(e);const N=this.getElementRowMargin(I);this.control.recordBorderInfo(k,F+N,I.metrics.width,_.height-2*N)}else(T=Y==null?void 0:Y.control)!=null&&T.border&&this.control.drawBorder(e);if(I.underline||((P=I.control)==null?void 0:P.underline)){(Y==null?void 0:Y.type)===ae.SUBSCRIPT&&I.type!==ae.SUBSCRIPT&&this.underline.render(e);const N=this.getElementRowMargin(I),J=I.left||0;let B=0;I.type===ae.SUBSCRIPT&&(B=this.subscriptParticle.getOffsetY(I));const re=I.controlComponent===ye.PLACEHOLDER?void 0:I.color;this.underline.recordFillInfo(e,k-J,F+_.height-N+B,y.width+J,0,re,(A=I.textDecoration)==null?void 0:A.style)}else((Y==null?void 0:Y.underline)||((D=Y==null?void 0:Y.control)==null?void 0:D.underline))&&this.underline.render(e);if(I.strikeout){if(!I.type||Gr.includes(I.type)){Y&&(Y.type===ae.SUBSCRIPT&&I.type!==ae.SUBSCRIPT||Y.type===ae.SUPERSCRIPT&&I.type!==ae.SUPERSCRIPT||this.getElementSize(Y)!==this.getElementSize(I))&&this.strikeout.render(e);const N=this.textParticle.measureBasisWord(e,this.getElementFont(I));let J=F+L+N.actualBoundingBoxDescent*n-y.height/2;I.type===ae.SUBSCRIPT?J+=this.subscriptParticle.getOffsetY(I):I.type===ae.SUPERSCRIPT&&(J+=this.superscriptParticle.getOffsetY(I)),this.strikeout.recordFillInfo(e,k,J,y.width)}}else Y!=null&&Y.strikeout&&this.strikeout.render(e);const{zone:V,startIndex:ie,endIndex:U}=this.range.getRange();if(V===d&&ie!==U&&ie<=R&&R<=U){const N=this.position.getPositionContext();if(!N.isTable&&!I.tdId||N.tdId===I.tdId)if(ie===R){const J=c[ie+1];J&&J.value===Ne&&(Q.x=k+y.width,Q.y=F,Q.height=_.height,Q.width+=this.options.rangeMinWidth)}else{let J=y.width;J===0&&_.elementList.length===1&&(J=this.options.rangeMinWidth),Q.width||(Q.x=k,Q.y=F,Q.height=_.height),Q.width+=J}}if(!o.disabled&&I.groupIds&&this.group.recordFillInfo(I,k,F,y.width,_.height),R++,I.type===ae.TABLE){const N=i[1]+i[3];for(let J=0;J<I.trList.length;J++){const B=I.trList[J];for(let re=0;re<B.tdList.length;re++){const ee=B.tdList[re];this.drawRow(e,{elementList:ee.value,positionList:ee.positionList,rowList:ee.rowList,pageNo:l,startIndex:0,innerWidth:(ee.width-N)*n,zone:d,isDrawLineBreak:f})}}}}if(_.isList&&this.listParticle.drawListStyle(e,_,u[_.startIndex]),this.textParticle.complete(),this.control.drawBorder(e),this.underline.render(e),this.strikeout.render(e),this.group.render(e),!p){if(Q.width&&Q.height){const{x:O,y:I,width:y,height:L}=Q;this.range.render(e,O,I,y,L)}if(g&&te&&te.id===v){const{coordinate:{leftTop:[O,I]}}=u[_.startIndex];this.tableParticle.drawRange(e,te,O,I)}}}}_drawFloat(e,t){const n=this.position.getFloatPositionList(),{imgDisplay:i,pageNo:o}=t;for(let a=0;a<n.length;a++){const s=n[a],l=s.element;if((o===s.pageNo||s.zone===Ke.HEADER||s.zone==Ke.FOOTER)&&l.imgDisplay===i&&l.type===ae.IMAGE){const c=l.imgFloatPosition;this.imageParticle.render(e,l,c.x,c.y)}}}_clearPage(e){const t=this.ctxList[e],n=this.pageList[e];t.clearRect(0,0,Math.max(n.width,this.getWidth()),Math.max(n.height,this.getHeight())),this.blockParticle.clear()}_drawPage(e){var p,g;const{elementList:t,positionList:n,rowList:i,pageNo:o}=e,{inactiveAlpha:a,pageMode:s,header:l,footer:c,pageNumber:u}=this.options,h=this.getInnerWidth(),d=this.ctxList[o];d.globalAlpha=this.zone.isMainActive()?1:a,this._clearPage(o),this.background.render(d,o),this.mode!==Mt.PRINT&&this.margin.render(d,o),this._drawFloat(d,{pageNo:o,imgDisplay:ze.FLOAT_BOTTOM}),this.control.renderHighlightList(d,o);const f=(p=i[0])==null?void 0:p.startIndex;this.drawRow(d,{elementList:t,positionList:n,rowList:i,pageNo:o,startIndex:f,innerWidth:h,zone:Ke.MAIN}),this.getIsPagingMode()&&(l.disabled||this.header.render(d,o),u.disabled||this.pageNumber.render(d,o),c.disabled||this.footer.render(d,o)),this._drawFloat(d,{pageNo:o,imgDisplay:ze.FLOAT_TOP}),this.search.getSearchKeyword()&&this.search.render(d,o),s!==Ln.CONTINUITY&&this.options.watermark.data&&this.waterMark.render(d),this.elementList.length<=1&&!((g=this.elementList[0])!=null&&g.listId)&&this.placeholder.render(d)}_disconnectLazyRender(){var e;(e=this.lazyRenderIntersectionObserver)==null||e.disconnect()}_lazyRender(){const e=this.position.getOriginalMainPositionList(),t=this.getOriginalMainElementList();this._disconnectLazyRender(),this.lazyRenderIntersectionObserver=new IntersectionObserver(n=>{n.forEach(i=>{if(i.isIntersecting){const o=Number(i.target.dataset.index);this._drawPage({elementList:t,positionList:e,rowList:this.pageRowList[o],pageNo:o})}})}),this.pageList.forEach(n=>{this.lazyRenderIntersectionObserver.observe(n)})}_immediateRender(){const e=this.position.getOriginalMainPositionList(),t=this.getOriginalMainElementList();for(let n=0;n<this.pageRowList.length;n++)this._drawPage({elementList:t,positionList:e,rowList:this.pageRowList[n],pageNo:n})}render(e){const{header:t,footer:n}=this.options,{isSubmitHistory:i=!0,isSetCursor:o=!0,isCompute:a=!0,isLazy:s=!0,isInit:l=!1,isSourceHistory:c=!1,isFirstRender:u=!1}=e||{};let{curIndex:h}=e||{};const d=this.getInnerWidth(),f=this.getIsPagingMode();if(a){this.position.setFloatPositionList([]),f&&(t.disabled||this.header.compute(),n.disabled||this.footer.compute()),this.rowList=this.computeRowList({isPagingMode:f,innerWidth:d,elementList:this.elementList}),this.pageRowList=this._computePageList(),this.position.computePositionList();const v=this.search.getSearchKeyword();v&&this.search.compute(v),this.control.computeHighlightList()}this.imageObserver.clearAll(),this.cursor.recoveryCursor();for(let v=0;v<this.pageRowList.length;v++)this.pageList[v]||this._createPage(v);const p=this.pageRowList.length,g=this.pageList.length;if(g>p){const v=g-p;this.ctxList.splice(p,v),this.pageList.splice(p,v).forEach(R=>R.remove())}s&&f?this._lazyRender():this._immediateRender(),o&&(h=this.setCursor(h)),(i&&!u||h!==void 0&&this.historyManager.isStackEmpty())&&this.submitHistory(h),La(()=>{a&&this.control.getActiveControl()&&this.control.reAwakeControl(),a&&!this.isReadonly()&&this.position.getPositionContext().isTable&&this.tableTool.render(),a&&!this.zone.isMainActive()&&this.zone.drawZoneIndicator(),this.listener.pageSizeChange&&this.listener.pageSizeChange(this.pageRowList.length),this.eventBus.isSubscribe("pageSizeChange")&&this.eventBus.emit("pageSizeChange",this.pageRowList.length),(i||c)&&!l&&(this.listener.contentChange&&this.listener.contentChange(),this.eventBus.isSubscribe("contentChange")&&this.eventBus.emit("contentChange"))})}setCursor(e){var o;const t=this.position.getPositionContext(),n=this.position.getPositionList();if(t.isTable){const{index:a,trIndex:s,tdIndex:l}=t,u=(o=this.getOriginalElementList()[a].trList)==null?void 0:o[s].tdList[l].positionList;e===void 0&&u&&(e=u.length-1);const h=u==null?void 0:u[e];this.position.setCursorPosition(h||null)}else this.position.setCursorPosition(e!==void 0?n[e]:null);let i=!0;if(e!==void 0&&t.isImage&&t.isDirectHit){const s=this.getElementList()[e];if(dg.includes(s.type)){i=!1;const l=this.position.getCursorPosition();this.previewer.updateResizer(s,l)}}return this.cursor.drawCursor({isShow:i}),e}submitHistory(e){const t=this.position.getPositionContext(),n=ys(this.elementList),i=ys(this.header.getElementList()),o=ys(this.footer.getElementList()),a=gt(this.range.getRange()),s=this.pageNo,l=gt(t),c=this.zone.getZone();this.historyManager.execute(()=>{this.zone.setZone(c),this.setPageNo(s),this.position.setPositionContext(gt(l)),this.header.setElementList(gt(i)),this.footer.setElementList(gt(o)),this.elementList=gt(n),this.range.replaceRange(gt(a)),this.render({curIndex:e,isSubmitHistory:!1,isSourceHistory:!0})})}destroy(){this.container.remove(),this.globalEvent.removeEvent(),this.scrollObserver.removeEvent(),this.selectionObserver.removeEvent()}clearSideEffect(){this.getPreviewer().clearResizer(),this.getTableTool().dispose(),this.getHyperlinkParticle().clearHyperlinkPopup(),this.getDateParticle().clearDatePicker()}}class ym{constructor(e){this.executeMode=e.mode.bind(e),this.executeCut=e.cut.bind(e),this.executeCopy=e.copy.bind(e),this.executePaste=e.paste.bind(e),this.executeSelectAll=e.selectAll.bind(e),this.executeBackspace=e.backspace.bind(e),this.executeSetRange=e.setRange.bind(e),this.executeReplaceRange=e.replaceRange.bind(e),this.executeSetPositionContext=e.setPositionContext.bind(e),this.executeForceUpdate=e.forceUpdate.bind(e),this.executeBlur=e.blur.bind(e),this.executeUndo=e.undo.bind(e),this.executeRedo=e.redo.bind(e),this.executePainter=e.painter.bind(e),this.executeApplyPainterStyle=e.applyPainterStyle.bind(e),this.executeFormat=e.format.bind(e),this.executeFont=e.font.bind(e),this.executeSize=e.size.bind(e),this.executeSizeAdd=e.sizeAdd.bind(e),this.executeSizeMinus=e.sizeMinus.bind(e),this.executeBold=e.bold.bind(e),this.executeItalic=e.italic.bind(e),this.executeUnderline=e.underline.bind(e),this.executeStrikeout=e.strikeout.bind(e),this.executeSuperscript=e.superscript.bind(e),this.executeSubscript=e.subscript.bind(e),this.executeColor=e.color.bind(e),this.executeHighlight=e.highlight.bind(e),this.executeTitle=e.title.bind(e),this.executeList=e.list.bind(e),this.executeRowFlex=e.rowFlex.bind(e),this.executeRowMargin=e.rowMargin.bind(e),this.executeInsertTable=e.insertTable.bind(e),this.executeInsertTableTopRow=e.insertTableTopRow.bind(e),this.executeInsertTableBottomRow=e.insertTableBottomRow.bind(e),this.executeInsertTableLeftCol=e.insertTableLeftCol.bind(e),this.executeInsertTableRightCol=e.insertTableRightCol.bind(e),this.executeDeleteTableRow=e.deleteTableRow.bind(e),this.executeDeleteTableCol=e.deleteTableCol.bind(e),this.executeDeleteTable=e.deleteTable.bind(e),this.executeMergeTableCell=e.mergeTableCell.bind(e),this.executeCancelMergeTableCell=e.cancelMergeTableCell.bind(e),this.executeTableTdVerticalAlign=e.tableTdVerticalAlign.bind(e),this.executeTableBorderType=e.tableBorderType.bind(e),this.executeTableTdBorderType=e.tableTdBorderType.bind(e),this.executeTableTdSlashType=e.tableTdSlashType.bind(e),this.executeTableTdBackgroundColor=e.tableTdBackgroundColor.bind(e),this.executeTableSelectAll=e.tableSelectAll.bind(e),this.executeImage=e.image.bind(e),this.executeHyperlink=e.hyperlink.bind(e),this.executeDeleteHyperlink=e.deleteHyperlink.bind(e),this.executeCancelHyperlink=e.cancelHyperlink.bind(e),this.executeEditHyperlink=e.editHyperlink.bind(e),this.executeSeparator=e.separator.bind(e),this.executePageBreak=e.pageBreak.bind(e),this.executeAddWatermark=e.addWatermark.bind(e),this.executeDeleteWatermark=e.deleteWatermark.bind(e),this.executeSearch=e.search.bind(e),this.executeSearchNavigatePre=e.searchNavigatePre.bind(e),this.executeSearchNavigateNext=e.searchNavigateNext.bind(e),this.executeReplace=e.replace.bind(e),this.executePrint=e.print.bind(e),this.executeReplaceImageElement=e.replaceImageElement.bind(e),this.executeSaveAsImageElement=e.saveAsImageElement.bind(e),this.executeChangeImageDisplay=e.changeImageDisplay.bind(e),this.executePageMode=e.pageMode.bind(e),this.executePageScaleRecovery=e.pageScaleRecovery.bind(e),this.executePageScaleMinus=e.pageScaleMinus.bind(e),this.executePageScaleAdd=e.pageScaleAdd.bind(e),this.executePaperSize=e.paperSize.bind(e),this.executePaperDirection=e.paperDirection.bind(e),this.executeSetPaperMargin=e.setPaperMargin.bind(e),this.executeInsertElementList=e.insertElementList.bind(e),this.executeAppendElementList=e.appendElementList.bind(e),this.executeSetValue=e.setValue.bind(e),this.executeRemoveControl=e.removeControl.bind(e),this.executeSetLocale=e.setLocale.bind(e),this.executeLocationCatalog=e.locationCatalog.bind(e),this.executeWordTool=e.wordTool.bind(e),this.executeSetHTML=e.setHTML.bind(e),this.executeSetGroup=e.setGroup.bind(e),this.executeDeleteGroup=e.deleteGroup.bind(e),this.executeLocationGroup=e.locationGroup.bind(e),this.executeSetZone=e.setZone.bind(e),this.executeUpdateOptions=e.updateOptions.bind(e),this.executeInsertTitle=e.insertTitle.bind(e),this.getImage=e.getImage.bind(e),this.getOptions=e.getOptions.bind(e),this.getValue=e.getValue.bind(e),this.getHTML=e.getHTML.bind(e),this.getText=e.getText.bind(e),this.getWordCount=e.getWordCount.bind(e),this.getRange=e.getRange.bind(e),this.getRangeText=e.getRangeText.bind(e),this.getRangeContext=e.getRangeContext.bind(e),this.getRangeRow=e.getRangeRow.bind(e),this.getRangeParagraph=e.getRangeParagraph.bind(e),this.getKeywordRangeList=e.getKeywordRangeList.bind(e),this.getCatalog=e.getCatalog.bind(e),this.getPaperMargin=e.getPaperMargin.bind(e),this.getSearchNavigateInfo=e.getSearchNavigateInfo.bind(e),this.getLocale=e.getLocale.bind(e),this.getGroupIds=e.getGroupIds.bind(e),this.getContainer=e.getContainer.bind(e),this.getTitleValue=e.getTitleValue.bind(e),this.executeSetControlValue=e.setControlValue.bind(e),this.executeSetControlExtension=e.setControlExtension.bind(e),this.executeSetControlProperties=e.setControlProperties.bind(e),this.executeSetControlHighlight=e.setControlHighlight.bind(e),this.getControlValue=e.getControlValue.bind(e),this.getControlList=e.getControlList.bind(e),this.executeLocationControl=e.locationControl.bind(e)}}const Yl={data:"",color:"#AEB5C0",opacity:.3,size:200,font:"Microsoft YaHei"};var Fn=(r=>(r.TOP="top",r.MIDDLE="middle",r.BOTTOM="bottom",r))(Fn||{});const wm={color:"#FFFFFF",image:"",size:Sc.COVER,repeat:Hn.NO_REPEAT},Sm={width:14,height:14,gap:5,lineWidth:1,fillStyle:"#5175f4",strokeStyle:"#ffffff"},xm={placeholderColor:"#9c9b9b",bracketColor:"#000000",prefix:"{",postfix:"}",borderWidth:1,borderColor:"#000000"},bm={bottom:30,maxHeightRadio:Ei.HALF,disabled:!1},Om={opacity:.1,backgroundColor:"#E99D00",activeOpacity:.5,activeBackgroundColor:"#E99D00",disabled:!1},Tm={top:30,maxHeightRadio:Ei.HALF,disabled:!1},Pm={disabled:!0,color:"#CCCCCC",lineWidth:1.5},Em={font:"Microsoft YaHei",fontSize:12,lineDash:[3,1]},_m={data:"",color:"#DCDFE6",opacity:1,size:16,font:"Microsoft YaHei"},Im={width:14,height:14,gap:5,lineWidth:1,fillStyle:"#5175f4",strokeStyle:"#000000"},Nm={lineWidth:1,strokeStyle:"#000000"},Mm={tdPadding:[0,5,5,5],defaultTrMinHeight:42,defaultColMinWidth:40},Lm={tipDisabled:!0};function i0(r={}){const e={...Mm,...r.table},t={...Tm,...r.header},n={...bm,...r.footer},i={...PR,...r.pageNumber},o={...Yl,...r.watermark},a={...xm,...r.control},s={...Sm,...r.checkbox},l={...Im,...r.radio},c={...lg,...r.cursor},u={..._g,...r.title},h={..._m,...r.placeholder},d={...Om,...r.group},f={...Em,...r.pageBreak},p={...Lm,...r.zone},g={...wm,...r.background},v={...Pm,...r.lineBreak},R={...Nm,...r.separator};return{mode:Mt.EDIT,defaultType:"TEXT",defaultColor:"#000000",defaultFont:"Microsoft YaHei",defaultSize:16,minSize:5,maxSize:72,defaultRowMargin:1,defaultBasicRowMarginHeight:8,defaultTabWidth:32,width:794,height:1123,scale:1,pageGap:20,underlineColor:"#000000",strikeoutColor:"#FF0000",rangeAlpha:.6,rangeColor:"#AECBFA",rangeMinWidth:5,searchMatchAlpha:.6,searchMatchColor:"#FFFF00",searchNavigateMatchColor:"#AAD280",highlightAlpha:.6,resizerColor:"#4182D9",resizerSize:5,marginIndicatorSize:35,marginIndicatorColor:"#BABABA",margins:[100,120,100,120],pageMode:Ln.PAGING,defaultHyperlinkColor:"#0000FF",paperDirection:jn.VERTICAL,inactiveAlpha:.6,historyMaxRecordCount:100,wordBreak:wc.BREAK_WORD,printPixelRatio:3,maskMargin:[0,0,0,0],letterClass:[G1.ENGLISH],contextMenuDisableKeys:[],scrollContainerSelector:"",...r,table:e,header:t,footer:n,pageNumber:i,watermark:o,control:a,checkbox:s,radio:l,cursor:c,title:u,placeholder:h,group:d,pageBreak:f,zone:p,background:g,lineBreak:v,separator:R}}function Fm(r,e){const{width:t,height:n,direction:i=jn.VERTICAL}=e,o=document.createElement("iframe");o.style.visibility="hidden",o.style.position="absolute",o.style.left="0",o.style.top="0",o.style.width="0",o.style.height="0",o.style.border="none",document.body.append(o);const a=o.contentWindow,s=a.document;s.open();const l=document.createElement("div");r.forEach(h=>{const d=document.createElement("img");d.style.width=`${t}px`,d.style.height=`${n}px`,d.src=h,l.append(d)});const c=document.createElement("style"),u=`
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
@page {
|
|
margin: 0;
|
|
size: ${i===jn.HORIZONTAL?"landscape":"portrait"};
|
|
}`;c.append(document.createTextNode(u)),setTimeout(()=>{s.write(`${c.outerHTML}${l.innerHTML}`),a.print(),s.close(),window.addEventListener("mouseover",()=>{o==null||o.remove()},{once:!0})})}class Cm{constructor(e){this.draw=e,this.range=e.getRange(),this.position=e.getPosition(),this.historyManager=e.getHistoryManager(),this.canvasEvent=e.getCanvasEvent(),this.tableTool=e.getTableTool(),this.options=e.getOptions(),this.control=e.getControl(),this.workerManager=e.getWorkerManager(),this.searchManager=e.getSearch(),this.i18n=e.getI18n()}mode(e){this.draw.setMode(e)}cut(){this.draw.isReadonly()||this.canvasEvent.cut()}copy(){this.canvasEvent.copy()}paste(e){this.draw.isReadonly()||Yg(this.canvasEvent,e)}selectAll(){this.canvasEvent.selectAll()}backspace(){if(this.draw.isReadonly())return;const t=this.draw.getElementList(),{startIndex:n,endIndex:i}=this.range.getRange(),o=n===i;if(o&&t[n].value===Ne&&n===0)return;o?this.draw.spliceElementList(t,n,1):this.draw.spliceElementList(t,n+1,i-n);const a=o?n-1:n;this.range.setRange(a,a),this.draw.render({curIndex:a})}setRange(e,t,n,i,o,a,s){if(e<0||t<0||t<e)return;this.range.setRange(e,t,n,i,o,a,s);const l=e===t;this.draw.render({curIndex:l?e:void 0,isCompute:!1,isSubmitHistory:!1,isSetCursor:l})}replaceRange(e){this.setRange(e.startIndex,e.endIndex,e.tableId,e.startTdIndex,e.endTdIndex,e.startTrIndex,e.endTrIndex)}setPositionContext(e){const{tableId:t,startTrIndex:n,startTdIndex:i}=e,o=this.draw.getOriginalElementList();if(t){const a=o.findIndex(u=>u.id===t);if(!~a)return;const l=o[a].trList[n],c=l.tdList[i];this.position.setPositionContext({isTable:!0,index:a,trIndex:n,tdIndex:i,tdId:c.id,trId:l.id,tableId:t})}else this.position.setPositionContext({isTable:!1})}forceUpdate(e){const{isSubmitHistory:t=!1}=e||{};this.range.clearRange(),this.draw.render({isSubmitHistory:t,isSetCursor:!1})}blur(){this.range.clearRange(),this.draw.getCursor().recoveryCursor()}undo(){this.draw.isReadonly()||this.historyManager.undo()}redo(){this.draw.isReadonly()||this.historyManager.redo()}painter(e){if(!e.isDblclick&&this.draw.getPainterStyle()){this.canvasEvent.clearPainterStyle();return}const t=this.range.getSelection();if(!t)return;const n={};t.forEach(i=>{ri.forEach(a=>{const s=a;n[s]===void 0&&(n[s]=i[s])})}),this.draw.setPainterStyle(n,e)}applyPainterStyle(){this.draw.isReadonly()||this.control.getIsDisabledControl()||this.canvasEvent.applyPainterStyle()}format(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const t=this.range.getSelectionElementList();let n={},i=[];if(t!=null&&t.length)i=t,n={isSetCursor:!1};else{const{endIndex:o}=this.range.getRange(),s=this.draw.getElementList()[o];(s==null?void 0:s.value)===Ne&&(i.push(s),n={curIndex:o})}!i.length||(i.forEach(o=>{delete o.size,delete o.font,delete o.color,delete o.bold,delete o.italic,delete o.underline,delete o.strikeout}),this.draw.render(n))}font(e){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();if(n!=null&&n.length)n.forEach(i=>{i.font=e}),this.draw.render({isSetCursor:!1});else{const{endIndex:i}=this.range.getRange(),a=this.draw.getElementList()[i];(a==null?void 0:a.value)===Ne&&(a.font=e,this.draw.render({curIndex:i,isCompute:!1}))}}size(e){const{minSize:t,maxSize:n,defaultSize:i}=this.options;if(e<t||e>n||this.draw.isReadonly()||this.control.getIsDisabledControl())return;let a={},s=[];const l=this.range.getTextLikeSelectionElementList();if(l!=null&&l.length)s=l,a={isSetCursor:!1};else{const{endIndex:u}=this.range.getRange(),d=this.draw.getElementList()[u];(d==null?void 0:d.value)===Ne&&(s.push(d),a={curIndex:u})}if(!s.length)return;let c=!1;s.forEach(u=>{!u.size&&e===i||u.size&&u.size===e||(u.size=e,c=!0)}),c&&this.draw.render(a)}sizeAdd(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const t=this.range.getTextLikeSelectionElementList();let n={},i=[];if(t!=null&&t.length)i=t,n={isSetCursor:!1};else{const{endIndex:l}=this.range.getRange(),u=this.draw.getElementList()[l];(u==null?void 0:u.value)===Ne&&(i.push(u),n={curIndex:l})}if(!i.length)return;const{defaultSize:o,maxSize:a}=this.options;let s=!1;i.forEach(l=>{l.size||(l.size=o),!(l.size>=a)&&(l.size+2>a?l.size=a:l.size+=2,s=!0)}),s&&this.draw.render(n)}sizeMinus(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const t=this.range.getTextLikeSelectionElementList();let n={},i=[];if(t!=null&&t.length)i=t,n={isSetCursor:!1};else{const{endIndex:l}=this.range.getRange(),u=this.draw.getElementList()[l];(u==null?void 0:u.value)===Ne&&(i.push(u),n={curIndex:l})}if(!i.length)return;const{defaultSize:o,minSize:a}=this.options;let s=!1;i.forEach(l=>{l.size||(l.size=o),!(l.size<=a)&&(l.size-2<a?l.size=a:l.size-=2,s=!0)}),s&&this.draw.render(n)}bold(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const t=this.range.getSelectionElementList();if(t!=null&&t.length){const n=t.findIndex(i=>!i.bold);t.forEach(i=>{i.bold=!!~n}),this.draw.render({isSetCursor:!1})}else{const{endIndex:n}=this.range.getRange(),o=this.draw.getElementList()[n];(o==null?void 0:o.value)===Ne&&(o.bold=!o.bold,this.draw.render({curIndex:n,isCompute:!1}))}}italic(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const t=this.range.getSelectionElementList();if(t!=null&&t.length){const n=t.findIndex(i=>!i.italic);t.forEach(i=>{i.italic=!!~n}),this.draw.render({isSetCursor:!1})}else{const{endIndex:n}=this.range.getRange(),o=this.draw.getElementList()[n];(o==null?void 0:o.value)===Ne&&(o.italic=!o.italic,this.draw.render({curIndex:n,isCompute:!1}))}}underline(e){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();if(n!=null&&n.length){const i=n.some(o=>!o.underline||!e&&o.textDecoration||e&&!o.textDecoration||e&&o.textDecoration&&!ag(o.textDecoration,e));n.forEach(o=>{o.underline=i,i&&e?o.textDecoration=e:delete o.textDecoration}),this.draw.render({isSetCursor:!1,isCompute:!1})}else{const{endIndex:i}=this.range.getRange(),a=this.draw.getElementList()[i];(a==null?void 0:a.value)===Ne&&(a.underline=!a.underline,this.draw.render({curIndex:i,isCompute:!1}))}}strikeout(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const t=this.range.getSelectionElementList();if(t!=null&&t.length){const n=t.findIndex(i=>!i.strikeout);t.forEach(i=>{i.strikeout=!!~n}),this.draw.render({isSetCursor:!1,isCompute:!1})}else{const{endIndex:n}=this.range.getRange(),o=this.draw.getElementList()[n];(o==null?void 0:o.value)===Ne&&(o.strikeout=!o.strikeout,this.draw.render({curIndex:n,isCompute:!1}))}}superscript(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const t=this.range.getSelectionElementList();if(!t)return;const n=t.findIndex(i=>i.type===ae.SUPERSCRIPT);t.forEach(i=>{~n?i.type===ae.SUPERSCRIPT&&(i.type=ae.TEXT,delete i.actualSize):(!i.type||i.type===ae.TEXT||i.type===ae.SUBSCRIPT)&&(i.type=ae.SUPERSCRIPT)}),this.draw.render({isSetCursor:!1})}subscript(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const t=this.range.getSelectionElementList();if(!t)return;const n=t.findIndex(i=>i.type===ae.SUBSCRIPT);t.forEach(i=>{~n?i.type===ae.SUBSCRIPT&&(i.type=ae.TEXT,delete i.actualSize):(!i.type||i.type===ae.TEXT||i.type===ae.SUPERSCRIPT)&&(i.type=ae.SUBSCRIPT)}),this.draw.render({isSetCursor:!1})}color(e){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();if(n!=null&&n.length)n.forEach(i=>{e?i.color=e:delete i.color}),this.draw.render({isSetCursor:!1,isCompute:!1});else{const{endIndex:i}=this.range.getRange(),a=this.draw.getElementList()[i];(a==null?void 0:a.value)===Ne&&(e?a.color=e:delete a.color,this.draw.render({curIndex:i,isCompute:!1}))}}highlight(e){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();if(n!=null&&n.length)n.forEach(i=>{e?i.highlight=e:delete i.highlight}),this.draw.render({isSetCursor:!1,isCompute:!1});else{const{endIndex:i}=this.range.getRange(),a=this.draw.getElementList()[i];(a==null?void 0:a.value)===Ne&&(e?a.highlight=e:delete a.highlight,this.draw.render({curIndex:i,isCompute:!1}))}}title(e){if(this.draw.isReadonly())return;const{startIndex:n,endIndex:i}=this.range.getRange();if(!~n&&!~i)return;const o=this.draw.getElementList(),a=n===i?this.range.getRangeParagraphElementList():o.slice(n+1,i+1);if(!a||!a.length)return;const s=it(),l=this.draw.getOptions().title;a.forEach(h=>{!h.type&&h.value===Ne||(e?(h.level=e,h.titleId=s,kd(h)&&(h.size=l[Wd[e]],h.bold=!0)):h.titleId&&(delete h.titleId,delete h.title,delete h.level,delete h.size,delete h.bold))});const c=n===i,u=c?i:n;this.draw.render({curIndex:u,isSetCursor:c})}list(e,t){this.draw.isReadonly()||this.draw.getListParticle().setList(e,t)}rowFlex(e){if(this.draw.isReadonly())return;const{startIndex:n,endIndex:i}=this.range.getRange();if(!~n&&!~i)return;const o=this.range.getRangeRowElementList();if(!o)return;o.forEach(l=>{l.rowFlex=e});const a=n===i,s=a?i:n;this.draw.render({curIndex:s,isSetCursor:a})}rowMargin(e){if(this.draw.isReadonly())return;const{startIndex:n,endIndex:i}=this.range.getRange();if(!~n&&!~i)return;const o=this.range.getRangeRowElementList();if(!o)return;o.forEach(l=>{l.rowMargin=e});const a=n===i,s=a?i:n;this.draw.render({curIndex:s,isSetCursor:a})}insertTable(e,t){var v;if(this.draw.isReadonly()||this.control.getActiveControl())return;const{startIndex:o,endIndex:a}=this.range.getRange();if(!~o&&!~a)return;const{defaultTrMinHeight:s}=this.options.table,l=this.draw.getElementList();let c=0;if((v=l[o])!=null&&v.listId){const R=this.position.getPositionList(),{rowIndex:m}=R[o],T=this.draw.getRowList()[m];c=(T==null?void 0:T.offsetX)||0}const u=this.draw.getOriginalInnerWidth()-c,h=[],d=u/t;for(let R=0;R<t;R++)h.push({width:d});const f=[];for(let R=0;R<e;R++){const m=[],x={height:s,tdList:m};for(let T=0;T<t;T++)m.push({colspan:1,rowspan:1,value:[{value:Ne,size:16}]});f.push(x)}const p={type:ae.TABLE,value:"",colgroup:h,trList:f};Nr([p],{editorOptions:this.options}),ar(l,[p],o);const g=o+1;this.draw.spliceElementList(l,g,o===a?0:a-o,p),this.range.setRange(g,g),this.draw.render({curIndex:g,isSetCursor:!1})}insertTableTopRow(){if(this.draw.isReadonly())return;const t=this.position.getPositionContext();if(!t.isTable)return;const{index:n,trIndex:i,tableId:o}=t,s=this.draw.getOriginalElementList()[n],l=s.trList,c=l[i];if(c.tdList.length<s.colgroup.length){const d=c.tdList[0].rowIndex;for(let f=0;f<i;f++){const p=l[f];for(let g=0;g<p.tdList.length;g++){const v=p.tdList[g];v.rowspan>1&&v.rowIndex+v.rowspan>=d+1&&(v.rowspan+=1)}}}const u=it(),h={height:c.height,id:u,tdList:[]};for(let d=0;d<c.tdList.length;d++){const f=c.tdList[d],p=it();h.tdList.push({id:p,rowspan:1,colspan:f.colspan,value:[{value:Ne,size:16,tableId:o,trId:u,tdId:p}]})}l.splice(i,0,h),this.position.setPositionContext({isTable:!0,index:n,trIndex:i,tdIndex:0,tdId:h.tdList[0].id,trId:h.id,tableId:o}),this.range.setRange(0,0),this.draw.render({curIndex:0}),this.tableTool.render()}insertTableBottomRow(){if(this.draw.isReadonly())return;const t=this.position.getPositionContext();if(!t.isTable)return;const{index:n,trIndex:i,tableId:o}=t,s=this.draw.getOriginalElementList()[n],l=s.trList,c=l[i],u=l.length-1===i?c:l[i+1];if(u.tdList.length<s.colgroup.length){const f=u.tdList[0].rowIndex;for(let p=0;p<i+1;p++){const g=l[p];for(let v=0;v<g.tdList.length;v++){const R=g.tdList[v];R.rowspan>1&&R.rowIndex+R.rowspan>=f+1&&(R.rowspan+=1)}}}const h=it(),d={height:u.height,id:h,tdList:[]};for(let f=0;f<u.tdList.length;f++){const p=u.tdList[f],g=it();d.tdList.push({id:g,rowspan:1,colspan:p.colspan,value:[{value:Ne,size:16,tableId:o,trId:h,tdId:g}]})}l.splice(i+1,0,d),this.position.setPositionContext({isTable:!0,index:n,trIndex:i+1,tdIndex:0,tdId:d.tdList[0].id,trId:d.id,tableId:o}),this.range.setRange(0,0),this.draw.render({curIndex:0}),this.tableTool.render()}insertTableLeftCol(){if(this.draw.isReadonly())return;const t=this.position.getPositionContext();if(!t.isTable)return;const{index:n,tdIndex:i,tableId:o}=t,s=this.draw.getOriginalElementList()[n],l=s.trList,c=i;for(let f=0;f<l.length;f++){const p=l[f],g=it();p.tdList.splice(c,0,{id:g,rowspan:1,colspan:1,value:[{value:Ne,size:16,tableId:o,trId:p.id,tdId:g}]})}const u=s.colgroup;u.splice(c,0,{width:this.options.table.defaultColMinWidth});const h=u.reduce((f,p)=>f+p.width,0),d=this.draw.getOriginalInnerWidth();if(h>d){const f=(h-d)/u.length;for(let p=0;p<u.length;p++){const g=u[p];g.width-=f}}this.position.setPositionContext({isTable:!0,index:n,trIndex:0,tdIndex:c,tdId:l[0].tdList[c].id,trId:l[0].id,tableId:o}),this.range.setRange(0,0),this.draw.render({curIndex:0}),this.tableTool.render()}insertTableRightCol(){if(this.draw.isReadonly())return;const t=this.position.getPositionContext();if(!t.isTable)return;const{index:n,tdIndex:i,tableId:o}=t,s=this.draw.getOriginalElementList()[n],l=s.trList,c=i+1;for(let f=0;f<l.length;f++){const p=l[f],g=it();p.tdList.splice(c,0,{id:g,rowspan:1,colspan:1,value:[{value:Ne,size:16,tableId:o,trId:p.id,tdId:g}]})}const u=s.colgroup;u.splice(c,0,{width:this.options.table.defaultColMinWidth});const h=u.reduce((f,p)=>f+p.width,0),d=this.draw.getOriginalInnerWidth();if(h>d){const f=(h-d)/u.length;for(let p=0;p<u.length;p++){const g=u[p];g.width-=f}}this.position.setPositionContext({isTable:!0,index:n,trIndex:0,tdIndex:c,tdId:l[0].tdList[c].id,trId:l[0].id,tableId:o}),this.range.setRange(0,0),this.draw.render({curIndex:0}),this.tableTool.render()}deleteTableRow(){if(this.draw.isReadonly())return;const t=this.position.getPositionContext();if(!t.isTable)return;const{index:n,trIndex:i,tdIndex:o}=t,s=this.draw.getOriginalElementList()[n],l=s.trList,c=l[i],u=c.tdList[o].rowIndex;if(l.length<=1){this.deleteTable();return}for(let h=0;h<u;h++){const f=l[h].tdList;for(let p=0;p<f.length;p++){const g=f[p];g.rowIndex+g.rowspan>u&&g.rowspan--}}for(let h=0;h<c.tdList.length;h++){const d=c.tdList[h];if(d.rowspan>1){const f=it(),p=l[i+1];p.tdList.splice(h,0,{id:f,rowspan:d.rowspan-1,colspan:d.colspan,value:[{value:Ne,size:16,tableId:s.id,trId:p.id,tdId:f}]})}}l.splice(i,1),this.position.setPositionContext({isTable:!1}),this.range.clearRange(),this.draw.render({curIndex:t.index}),this.tableTool.dispose()}deleteTableCol(){var d;if(this.draw.isReadonly())return;const t=this.position.getPositionContext();if(!t.isTable)return;const{index:n,tdIndex:i,trIndex:o}=t,s=this.draw.getOriginalElementList()[n],l=s.trList,u=l[o].tdList[i].colIndex;if(!l.find(f=>f.tdList.length>1)){this.deleteTable();return}for(let f=0;f<l.length;f++){const p=l[f];for(let g=0;g<p.tdList.length;g++){const v=p.tdList[g];if(v.colspan>1){const R=v.colIndex;R<=u&&R+v.colspan-1>=u&&(v.colspan-=1)}}}for(let f=0;f<l.length;f++){const p=l[f];let g=-1;for(let v=0;v<p.tdList.length;v++)p.tdList[v].colIndex===u&&(g=v);~g&&p.tdList.splice(g,1)}(d=s.colgroup)==null||d.splice(u,1),this.position.setPositionContext({isTable:!1}),this.range.setRange(0,0),this.draw.render({curIndex:t.index}),this.tableTool.dispose()}deleteTable(){if(this.draw.isReadonly())return;const t=this.position.getPositionContext();if(!t.isTable)return;this.draw.getOriginalElementList().splice(t.index,1);const i=t.index-1;this.position.setPositionContext({isTable:!1,index:i}),this.range.setRange(i,i),this.draw.render({curIndex:i}),this.tableTool.dispose()}mergeTableCell(){if(this.draw.isReadonly())return;const t=this.position.getPositionContext();if(!t.isTable)return;const{isCrossRowCol:n,startTdIndex:i,endTdIndex:o,startTrIndex:a,endTrIndex:s}=this.range.getRange();if(!n)return;const{index:l}=t,h=this.draw.getOriginalElementList()[l].trList;let d=h[a].tdList[i],f=h[s].tdList[o];(d.x>f.x||d.y>f.y)&&([d,f]=[f,d]);const p=d.colIndex,g=f.colIndex+(f.colspan-1),v=d.rowIndex,R=f.rowIndex+(f.rowspan-1),m=[];for(let I=0;I<h.length;I++){const y=h[I],L=[];for(let k=0;k<y.tdList.length;k++){const F=y.tdList[k],Y=F.colIndex,V=F.rowIndex;Y>=p&&Y<=g&&V>=v&&V<=R&&L.push(F)}L.length&&m.push(L)}if(!m.length)return;const x=m[m.length-1],T=m[0][0],P=x[x.length-1],A=T.x,D=T.y,W=P.x+P.width,_=P.y+P.height;for(let I=0;I<m.length;I++){const y=m[I];for(let L=0;L<y.length;L++){const k=y[L],F=k.x,Y=k.y,V=F+k.width,ie=Y+k.height;if(A>F||D>Y||W<V||_<ie)return}}const Q=[],te=m[0][0];for(let I=0;I<m.length;I++){const y=m[I];for(let L=0;L<y.length;L++){const k=y[L];I===0&&L===0||Q.push(k.id),I===0&&L!==0&&(te.colspan+=k.colspan),I!==0&&te.colIndex===k.colIndex&&(te.rowspan+=k.rowspan)}}for(let I=0;I<h.length;I++){const y=h[I];let L=0;for(;L<y.tdList.length;){const k=y.tdList[L];Q.includes(k.id)&&(y.tdList.splice(L,1),L--),L++}}const O=d.value.length-1;this.range.setRange(O,O),this.draw.render(),this.tableTool.render()}cancelMergeTableCell(){if(this.draw.isReadonly())return;const t=this.position.getPositionContext();if(!t.isTable)return;const{index:n,tdIndex:i,trIndex:o}=t,s=this.draw.getOriginalElementList()[n],l=s.trList,c=l[o],u=c.tdList[i];if(u.rowspan===1&&u.colspan===1)return;const h=u.colspan;if(u.colspan>1){for(let f=1;f<u.colspan;f++){const p=it();c.tdList.splice(i+f,0,{id:p,rowspan:1,colspan:1,value:[{value:Ne,size:16,tableId:s.id,trId:c.id,tdId:p}]})}u.colspan=1}if(u.rowspan>1){for(let f=1;f<u.rowspan;f++){const p=l[o+f];for(let g=0;g<h;g++){const v=it();p.tdList.splice(u.colIndex,0,{id:v,rowspan:1,colspan:1,value:[{value:Ne,size:16,tableId:s.id,trId:p.id,tdId:v}]})}}u.rowspan=1}const d=u.value.length-1;this.range.setRange(d,d),this.draw.render(),this.tableTool.render()}tableTdVerticalAlign(e){if(this.draw.isReadonly())return;const n=this.draw.getTableParticle().getRangeRowCol();if(!n)return;for(let o=0;o<n.length;o++){const a=n[o];for(let s=0;s<a.length;s++){const l=a[s];!l||l.verticalAlign===e||!l.verticalAlign&&e===Fn.TOP||(l.verticalAlign=e)}}const{endIndex:i}=this.range.getRange();this.draw.render({curIndex:i})}tableBorderType(e){if(this.draw.isReadonly())return;const n=this.position.getPositionContext();if(!n.isTable)return;const{index:i}=n,a=this.draw.getOriginalElementList()[i];if(!a.borderType&&e===hn.ALL||a.borderType===e)return;a.borderType=e;const{endIndex:s}=this.range.getRange();this.draw.render({curIndex:s})}tableTdBorderType(e){if(this.draw.isReadonly())return;const n=this.draw.getTableParticle().getRangeRowCol();if(!n)return;const i=n.flat(),o=i.some(s=>{var l;return!((l=s.borderTypes)!=null&&l.includes(e))});i.forEach(s=>{s.borderTypes||(s.borderTypes=[]);const l=s.borderTypes.findIndex(c=>c===e);o?~l||s.borderTypes.push(e):~l&&s.borderTypes.splice(l,1),s.borderTypes.length||delete s.borderTypes});const{endIndex:a}=this.range.getRange();this.draw.render({curIndex:a})}tableTdSlashType(e){if(this.draw.isReadonly())return;const n=this.draw.getTableParticle().getRangeRowCol();if(!n)return;const i=n.flat(),o=i.some(s=>{var l;return!((l=s.slashTypes)!=null&&l.includes(e))});i.forEach(s=>{s.slashTypes||(s.slashTypes=[]);const l=s.slashTypes.findIndex(c=>c===e);o?~l||s.slashTypes.push(e):~l&&s.slashTypes.splice(l,1),s.slashTypes.length||delete s.slashTypes});const{endIndex:a}=this.range.getRange();this.draw.render({curIndex:a})}tableTdBackgroundColor(e){if(this.draw.isReadonly())return;const n=this.draw.getTableParticle().getRangeRowCol();if(!n)return;for(let o=0;o<n.length;o++){const a=n[o];for(let s=0;s<a.length;s++){const l=a[s];l.backgroundColor=e}}const{endIndex:i}=this.range.getRange();this.range.setRange(i,i),this.draw.render({isCompute:!1})}tableSelectAll(){const e=this.position.getPositionContext(),{index:t,tableId:n,isTable:i}=e;if(!i||!n)return;const{startIndex:o,endIndex:a}=this.range.getRange(),l=this.draw.getOriginalElementList()[t].trList,c=l.length-1,u=l[c].tdList.length-1;this.range.replaceRange({startIndex:o,endIndex:a,tableId:n,startTdIndex:0,endTdIndex:u,startTrIndex:0,endTrIndex:c}),this.draw.render({isCompute:!1,isSubmitHistory:!1})}hyperlink(e){if(this.draw.isReadonly()||this.control.getActiveControl())return;const{startIndex:i,endIndex:o}=this.range.getRange();if(!~i&&!~o)return;const a=this.draw.getElementList(),{valueList:s,url:l}=e,c=it(),u=s==null?void 0:s.map(f=>({url:l,hyperlinkId:c,value:f.value,type:ae.HYPERLINK}));if(!u)return;const h=i+1;ar(a,u,i),this.draw.spliceElementList(a,h,i===o?0:o-i,...u);const d=h+u.length-1;this.range.setRange(d,d),this.draw.render({curIndex:d})}getHyperlinkRange(){let e=-1,t=-1;const{startIndex:n,endIndex:i}=this.range.getRange();if(!~n&&!~i)return null;const o=this.draw.getElementList(),a=o[n];if(a.type!==ae.HYPERLINK)return null;let s=n;for(;s>0;){if(o[s].hyperlinkId!==a.hyperlinkId){e=s+1;break}s--}let l=n+1;for(;l<o.length;){if(o[l].hyperlinkId!==a.hyperlinkId){t=l-1;break}l++}return l===o.length&&(t=l-1),!~e||!~t?null:[e,t]}deleteHyperlink(){if(this.draw.isReadonly())return;const t=this.getHyperlinkRange();if(!t)return;const n=this.draw.getElementList(),[i,o]=t;this.draw.spliceElementList(n,i,o-i+1),this.draw.getHyperlinkParticle().clearHyperlinkPopup();const a=i-1;this.range.setRange(a,a),this.draw.render({curIndex:a})}cancelHyperlink(){if(this.draw.isReadonly())return;const t=this.getHyperlinkRange();if(!t)return;const n=this.draw.getElementList(),[i,o]=t;for(let s=i;s<=o;s++){const l=n[s];delete l.type,delete l.url,delete l.hyperlinkId,delete l.underline}this.draw.getHyperlinkParticle().clearHyperlinkPopup();const{endIndex:a}=this.range.getRange();this.draw.render({curIndex:a,isCompute:!1})}editHyperlink(e){if(this.draw.isReadonly())return;const n=this.getHyperlinkRange();if(!n)return;const i=this.draw.getElementList(),[o,a]=n;for(let l=o;l<=a;l++){const c=i[l];c.url=e}this.draw.getHyperlinkParticle().clearHyperlinkPopup();const{endIndex:s}=this.range.getRange();this.draw.render({curIndex:s,isCompute:!1})}separator(e){if(this.draw.isReadonly()||this.control.getActiveControl())return;const{startIndex:i,endIndex:o}=this.range.getRange();if(!~i&&!~o)return;const a=this.draw.getElementList();let s=-1;const l=a[o+1];if(l&&l.type===ae.SEPARATOR){if(l.dashArray&&l.dashArray.join()===e.join())return;s=o,l.dashArray=e}else{const c={value:Zu,type:ae.SEPARATOR,dashArray:e};ar(a,[c],i),i!==0&&a[i].value===Ne?(this.draw.spliceElementList(a,i,1,c),s=i-1):(this.draw.spliceElementList(a,i+1,0,c),s=i)}this.range.setRange(s,s),this.draw.render({curIndex:s})}pageBreak(){this.draw.isReadonly()||this.control.getActiveControl()||this.insertElementList([{type:ae.PAGE_BREAK,value:Zu}])}addWatermark(e){if(this.draw.isReadonly())return;const n=this.draw.getOptions(),{color:i,size:o,opacity:a,font:s}=Yl;n.watermark.data=e.data,n.watermark.color=e.color||i,n.watermark.size=e.size||o,n.watermark.opacity=e.opacity||a,n.watermark.font=e.font||s,this.draw.render({isSetCursor:!1,isSubmitHistory:!1,isCompute:!1})}deleteWatermark(){if(this.draw.isReadonly())return;const t=this.draw.getOptions();t.watermark&&t.watermark.data&&(t.watermark={...Yl},this.draw.render({isSetCursor:!1,isSubmitHistory:!1,isCompute:!1}))}image(e){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const{startIndex:n,endIndex:i}=this.range.getRange();if(!~n&&!~i)return;const{value:o,width:a,height:s,imgDisplay:l}=e;this.insertElementList([{value:o,width:a,height:s,id:it(),type:ae.IMAGE,imgDisplay:l}])}search(e){this.searchManager.setSearchKeyword(e),this.draw.render({isSetCursor:!1,isSubmitHistory:!1})}searchNavigatePre(){this.searchManager.searchNavigatePre()!==null&&this.draw.render({isSetCursor:!1,isSubmitHistory:!1,isCompute:!1,isLazy:!1})}searchNavigateNext(){this.searchManager.searchNavigateNext()!==null&&this.draw.render({isSetCursor:!1,isSubmitHistory:!1,isCompute:!1,isLazy:!1})}getSearchNavigateInfo(){return this.searchManager.getSearchNavigateInfo()}replace(e){if(this.draw.isReadonly()||!e||new RegExp(`${Ne}`,"g").test(e))return;const n=this.draw.getSearch().getSearchMatchList();if(!n.length)return;let i=0,o=0,a="",s="",l=-1;const c=this.draw.getOriginalElementList();for(let d=0;d<n.length;d++){const f=n[d];if(f.type===Mn.TABLE){const{tableIndex:p,trIndex:g,tdIndex:v,index:R,tdId:m}=f;s&&m!==s&&(o=0),s=m;const x=p+i,T=c[x].trList[g].tdList[v].value,P=R+o,A=T[P];if(a===f.groupId){this.draw.spliceElementList(T,P,1),o--;continue}for(let D=0;D<e.length;D++){const W=e[D];D===0?A.value=W:(this.draw.spliceElementList(T,P+D,0,{...A,value:W}),o++)}}else{const p=f.index+i,g=c[p];if(g.type===ae.CONTROL&&g.controlComponent!==ye.VALUE)continue;if(~l||(l=d),a===f.groupId){this.draw.spliceElementList(c,p,1),i--;continue}for(let v=0;v<e.length;v++){const R=e[v];v===0?g.value=R:(this.draw.spliceElementList(c,p+v,0,{...g,value:R}),i++)}}a=f.groupId}if(!~l)return;const u=n[l],h=u.index+(e.length-1);if(u.type===Mn.TABLE){const{tableIndex:d,trIndex:f,tdIndex:p,index:g}=u,v=c[d].trList[f].tdList[p].value[g];this.position.setPositionContext({isTable:!0,index:d,trIndex:f,tdIndex:p,tdId:v.tdId,trId:v.trId,tableId:v.tableId})}else this.position.setPositionContext({isTable:!1});this.range.setRange(h,h),this.draw.render({curIndex:h})}async print(){const{scale:e,printPixelRatio:t,paperDirection:n}=this.options;e!==1&&this.draw.setPageScale(1);const i=this.draw.getOriginalWidth(),o=this.draw.getOriginalHeight(),a=await this.draw.getDataURL({pixelRatio:t,mode:Mt.PRINT});Fm(a,{width:i,height:o,direction:n}),e!==1&&this.draw.setPageScale(e)}replaceImageElement(e){const{startIndex:t}=this.range.getRange(),i=this.draw.getElementList()[t];!i||i.type!==ae.IMAGE||(i.id=it(),i.value=e,this.draw.render({isSetCursor:!1}))}saveAsImageElement(){const{startIndex:e}=this.range.getRange(),n=this.draw.getElementList()[e];!n||n.type!==ae.IMAGE||Md(n.value,`${n.id}.png`)}changeImageDisplay(e,t){if(e.imgDisplay===t)return;e.imgDisplay=t;const{startIndex:n,endIndex:i}=this.range.getRange();if(t===ze.FLOAT_TOP||t===ze.FLOAT_BOTTOM){const o=this.position.getPositionList(),{coordinate:{leftTop:a}}=o[n];e.imgFloatPosition={x:a[0],y:a[1]}}else delete e.imgFloatPosition;this.draw.getPreviewer().clearResizer(),this.draw.render({isSetCursor:!0,curIndex:i})}getImage(e){return this.draw.getDataURL(e)}getOptions(){return this.options}getValue(e){return this.draw.getValue(e)}getHTML(){const e=this.options,t=this.draw.getHeaderElementList(),n=this.draw.getOriginalMainElementList(),i=this.draw.getFooterElementList();return{header:bo(t,e).innerHTML,main:bo(n,e).innerHTML,footer:bo(i,e).innerHTML}}getText(){const e=this.draw.getHeaderElementList(),t=this.draw.getOriginalMainElementList(),n=this.draw.getFooterElementList();return{header:Go(e),main:Go(t),footer:Go(n)}}getWordCount(){return this.workerManager.getWordCount()}getRange(){return gt(this.range.getRange())}getRangeText(){return this.range.toString()}getRangeContext(){const e=this.range.getRange(),{startIndex:t,endIndex:n}=e;if(!~t&&!~n)return null;const i=t===n,o=this.range.toString(),a=bt(this.range.getSelectionElementList()||[]),s=this.draw.getElementList(),l=_i(s[i?t:t+1]),c=_i(s[n]),u=this.position.getPositionList(),h=u[t].pageNo,d=u[n].pageNo,f=[],p=this.draw.getOriginalHeight(),g=this.draw.getOriginalPageGap(),v=this.position.getSelectionPositionList();if(v){let D=null,W=0,_=null;for(let Q=0;Q<v.length;Q++){const{rowNo:te,pageNo:O,coordinate:{leftTop:I,rightTop:y},lineHeight:L}=v[Q];D===null||D!==te?(_&&f.push(_),_={x:I[0],y:I[1]+O*(p+g),width:y[0]-I[0],height:L},D=te,W=I[0]):_.width=y[0]-W,Q===v.length-1&&_&&f.push(_)}}else{const W=this.position.getPositionList()[n],{coordinate:{rightTop:_},pageNo:Q,lineHeight:te}=W;f.push({x:_[0],y:_[1]+Q*(p+g),width:0,height:te})}const R=this.draw.getZone().getZone(),{isTable:m,trIndex:x,tdIndex:T,index:P}=this.position.getPositionContext();let A=null;if(m){const W=this.draw.getOriginalElementList()[P]||null;W&&(A=bt([W])[0])}return gt({isCollapsed:i,startElement:l,endElement:c,startPageNo:h,endPageNo:d,rangeRects:f,zone:R,isTable:m,trIndex:x!=null?x:null,tdIndex:T!=null?T:null,tableElement:A,selectionText:o,selectionElementList:a})}getRangeRow(){const e=this.range.getRangeRowElementList();return e?bt(e):null}getRangeParagraph(){const e=this.range.getRangeParagraphElementList();return e?bt(e):null}getKeywordRangeList(e){return this.range.getKeywordRangeList(e)}pageMode(e){this.draw.setPageMode(e)}pageScaleRecovery(){const{scale:e}=this.options;e!==1&&this.draw.setPageScale(1)}pageScaleMinus(){const{scale:e}=this.options,t=e*10-1;t>=5&&this.draw.setPageScale(t/10)}pageScaleAdd(){const{scale:e}=this.options,t=e*10+1;t<=30&&this.draw.setPageScale(t/10)}paperSize(e,t){this.draw.setPaperSize(e,t)}paperDirection(e){this.draw.setPaperDirection(e)}getPaperMargin(){return this.options.margins}setPaperMargin(e){return this.draw.setPaperMargin(e)}insertElementList(e){if(!e.length||this.draw.isReadonly())return;const n=gt(e),{startIndex:i}=this.range.getRange(),o=this.draw.getElementList();ar(o,n,i),this.draw.insertElementList(n)}appendElementList(e,t){!e.length||this.draw.isReadonly()||this.draw.appendElementList(gt(e),t)}setValue(e){this.draw.setValue(e)}removeControl(){const{startIndex:e,endIndex:t}=this.range.getRange();if(e!==t||!this.draw.getElementList()[e].controlId)return;const a=this.draw.getControl().removeControl(e);a!==null&&(this.range.setRange(a,a),this.draw.render({curIndex:a}))}setLocale(e){this.i18n.setLocale(e)}getLocale(){return this.i18n.getLocale()}getCatalog(){return this.workerManager.getCatalog()}locationCatalog(e){var i;const t=this.draw.getMainElementList();let n=-1;for(let o=0;o<t.length;o++)if(t[o].titleId===e&&((i=t[o+1])==null?void 0:i.titleId)!==e){n=o;break}!~n||(this.range.setRange(n,n),this.draw.render({curIndex:n,isCompute:!1,isSubmitHistory:!1}))}wordTool(){const e=this.draw.getMainElementList();let t=!1;for(let n=0;n<e.length;n++)if(e[n].value===Ne)for(;n+1<e.length;){const o=e[n+1];if(o.value!==Ne&&o.value!==H1)break;e.splice(n+1,1),t=!0}if(t)this.draw.render({isSetCursor:!1});else{const n=this.range.getIsCollapsed();this.draw.getCursor().drawCursor({isShow:n})}}setHTML(e){const{header:t,main:n,footer:i}=e,o=this.draw.getOriginalInnerWidth(),a=s=>s!==void 0?Oo(s,{innerWidth:o}):void 0;this.setValue({header:a(t),main:a(n),footer:a(i)})}setGroup(){return this.draw.isReadonly()?null:this.draw.getGroup().setGroup()}deleteGroup(e){this.draw.isReadonly()||this.draw.getGroup().deleteGroup(e)}getGroupIds(){return this.draw.getWorkerManager().getGroupIds()}locationGroup(e){const t=this.draw.getOriginalMainElementList(),n=this.draw.getGroup().getContextByGroupId(t,e);if(!n)return;const{isTable:i,index:o,trIndex:a,tdIndex:s,tdId:l,trId:c,tableId:u,endIndex:h}=n;this.position.setPositionContext({isTable:i,index:o,trIndex:a,tdIndex:s,tdId:l,trId:c,tableId:u}),this.range.setRange(h,h),this.draw.render({curIndex:h,isCompute:!1,isSubmitHistory:!1})}setZone(e){this.draw.getZone().setZone(e)}getControlValue(e){return this.draw.getControl().getValueByConceptId(e)}setControlValue(e){this.draw.isReadonly()||this.draw.getControl().setValueByConceptId(e)}setControlExtension(e){this.draw.isReadonly()||this.draw.getControl().setExtensionByConceptId(e)}setControlProperties(e){this.draw.isReadonly()||this.draw.getControl().setPropertiesByConceptId(e)}setControlHighlight(e){this.draw.getControl().setHighlightList(e)}updateOptions(e){const t=i0(e);Object.entries(t).forEach(([n,i])=>{Reflect.set(this.options,n,i)}),this.forceUpdate()}getControlList(){return this.draw.getControl().getList()}locationControl(e){function t(i,o){let a=0;for(;a<i.length;){const s=i[a];if(a++,s.type===ae.TABLE){const c=s.trList;for(let u=0;u<c.length;u++){const h=c[u];for(let d=0;d<h.tdList.length;d++){const f=h.tdList[d],p=t(f.value,o);if(p)return{...p,positionContext:{isTable:!0,index:a-1,trIndex:u,tdIndex:d,tdId:s.tdId,trId:s.trId,tableId:s.tableId}}}}}if((s==null?void 0:s.controlId)!==e)continue;const l=a-1;return{zone:o,range:{startIndex:l,endIndex:l},positionContext:{isTable:!1}}}return null}const n=[{zone:Ke.HEADER,elementList:this.draw.getHeaderElementList()},{zone:Ke.MAIN,elementList:this.draw.getOriginalMainElementList()},{zone:Ke.FOOTER,elementList:this.draw.getFooterElementList()}];for(const i of n){const o=t(i.elementList,i.zone);if(o){this.setZone(o.zone),this.position.setPositionContext(o.positionContext),this.range.replaceRange(o.range),this.draw.render({curIndex:o.range.startIndex,isCompute:!1,isSubmitHistory:!1});break}}}getContainer(){return this.draw.getContainer()}getTitleValue(e){const{conceptId:t}=e,n=[],i=(a,s)=>{var c;let l=0;for(;l<a.length;){const u=a[l];if(l++,u.type===ae.TABLE){const f=u.trList;for(let p=0;p<f.length;p++){const g=f[p];for(let v=0;v<g.tdList.length;v++){const R=g.tdList[v];i(R.value,s)}}}if(((c=u==null?void 0:u.title)==null?void 0:c.conceptId)!==t)continue;const h=[];let d=l;for(;d<a.length;){const f=a[d];if(d++,u.titleId!==f.titleId){if(f.level&&Ul[f.level]<=Ul[u.level])break;h.push(f)}}n.push({...u.title,value:Go(h),elementList:bt(h),zone:s}),l=d}},o=[{zone:Ke.HEADER,elementList:this.draw.getHeaderElementList()},{zone:Ke.MAIN,elementList:this.draw.getOriginalMainElementList()},{zone:Ke.FOOTER,elementList:this.draw.getFooterElementList()}];for(const{zone:a,elementList:s}of o)i(s,a);return n}insertTitle(e){var l;if(this.draw.isReadonly())return;const n=gt(e),{startIndex:i}=this.range.getRange(),o=this.draw.getElementList(),a=Lo(o,i);if(!a)return;const s=[...mc,...Mo,...Fd];(l=n.valueList)==null||l.forEach(c=>{va(s,a,c)}),this.draw.insertElementList([n])}}class Am{constructor(){this.rangeStyleChange=null,this.visiblePageNoListChange=null,this.intersectionPageNoChange=null,this.pageSizeChange=null,this.pageScaleChange=null,this.saved=null,this.contentChange=null,this.controlChange=null,this.pageModeChange=null,this.zoneChange=null}}class Dm{constructor(e){const{contextMenu:t,shortcut:n,i18n:i}=e;this.contextMenuList=t.registerContextMenuList.bind(t),this.getContextMenuList=t.getContextMenuList.bind(t),this.shortcutList=n.registerShortcutList.bind(n),this.langMap=i.registerLangMap.bind(i)}}const nh={SELECTED_TEXT:"%s"},Fo={GLOBAL:{CUT:"globalCut",COPY:"globalCopy",PASTE:"globalPaste",SELECT_ALL:"globalSelectAll",PRINT:"globalPrint"},CONTROL:{DELETE:"controlDelete"},HYPERLINK:{DELETE:"hyperlinkDelete",CANCEL:"hyperlinkCancel",EDIT:"hyperlinkEdit"},IMAGE:{CHANGE:"imageChange",SAVE_AS:"imageSaveAs",TEXT_WRAP:"imageTextWrap",TEXT_WRAP_EMBED:"imageTextWrapEmbed",TEXT_WRAP_UP_DOWN:"imageTextWrapUpDown",TEXT_WRAP_FLOAT_TOP:"imageTextWrapFloatTop",TEXT_WRAP_FLOAT_BOTTOM:"imageTextWrapFloatBottom"},TABLE:{BORDER:"border",BORDER_ALL:"tableBorderAll",BORDER_EMPTY:"tableBorderEmpty",BORDER_EXTERNAL:"tableBorderExternal",BORDER_TD:"tableBorderTd",BORDER_TD_TOP:"tableBorderTdTop",BORDER_TD_RIGHT:"tableBorderTdRight",BORDER_TD_BOTTOM:"tableBorderTdBottom",BORDER_TD_LEFT:"tableBorderTdLeft",BORDER_TD_FORWARD:"tableBorderTdForward",BORDER_TD_BACK:"tableBorderTdBack",VERTICAL_ALIGN:"tableVerticalAlign",VERTICAL_ALIGN_TOP:"tableVerticalAlignTop",VERTICAL_ALIGN_MIDDLE:"tableVerticalAlignMiddle",VERTICAL_ALIGN_BOTTOM:"tableVerticalAlignBottom",INSERT_ROW_COL:"tableInsertRowCol",INSERT_TOP_ROW:"tableInsertTopRow",INSERT_BOTTOM_ROW:"tableInsertBottomRow",INSERT_LEFT_COL:"tableInsertLeftCol",INSERT_RIGHT_COL:"tableInsertRightCol",DELETE_ROW_COL:"tableDeleteRowCol",DELETE_ROW:"tableDeleteRow",DELETE_COL:"tableDeleteCol",DELETE_TABLE:"tableDeleteTable",MERGE_CELL:"tableMergeCell",CANCEL_MERGE_CELL:"tableCancelMergeCell"}},{CONTROL:{DELETE:Xm}}=Fo,Um=[{key:Xm,i18nPath:"contextmenu.control.delete",when:r=>{var e;return!r.isReadonly&&!r.editorHasSelection&&!!((e=r.startElement)!=null&&e.controlId)},callback:r=>{r.executeRemoveControl()}}],{GLOBAL:{CUT:Wm,COPY:Vm,PASTE:Ym,SELECT_ALL:km,PRINT:Zm}}=Fo,Qm=[{key:Wm,i18nPath:"contextmenu.global.cut",shortCut:`${Gn?"\u2318":"Ctrl"} + X`,when:r=>!r.isReadonly,callback:r=>{r.executeCut()}},{key:Vm,i18nPath:"contextmenu.global.copy",shortCut:`${Gn?"\u2318":"Ctrl"} + C`,when:r=>r.editorHasSelection||r.isCrossRowCol,callback:r=>{r.executeCopy()}},{key:Ym,i18nPath:"contextmenu.global.paste",shortCut:`${Gn?"\u2318":"Ctrl"} + V`,when:r=>!r.isReadonly&&r.editorTextFocus,callback:r=>{r.executePaste()}},{key:km,i18nPath:"contextmenu.global.selectAll",shortCut:`${Gn?"\u2318":"Ctrl"} + A`,when:r=>r.editorTextFocus,callback:r=>{r.executeSelectAll()}},{isDivider:!0},{key:Zm,i18nPath:"contextmenu.global.print",icon:"print",when:()=>!0,callback:r=>{r.executePrint()}}],{HYPERLINK:{DELETE:Km,CANCEL:Hm,EDIT:Bm}}=Fo,Gm=[{key:Km,i18nPath:"contextmenu.hyperlink.delete",when:r=>{var e;return!r.isReadonly&&((e=r.startElement)==null?void 0:e.type)===ae.HYPERLINK},callback:r=>{r.executeDeleteHyperlink()}},{key:Hm,i18nPath:"contextmenu.hyperlink.cancel",when:r=>{var e;return!r.isReadonly&&((e=r.startElement)==null?void 0:e.type)===ae.HYPERLINK},callback:r=>{r.executeCancelHyperlink()}},{key:Bm,i18nPath:"contextmenu.hyperlink.edit",when:r=>{var e;return!r.isReadonly&&((e=r.startElement)==null?void 0:e.type)===ae.HYPERLINK},callback:(r,e)=>{var n;const t=window.prompt("\u7F16\u8F91\u94FE\u63A5",(n=e.startElement)==null?void 0:n.url);t&&r.executeEditHyperlink(t)}}],{IMAGE:{CHANGE:Jm,SAVE_AS:zm,TEXT_WRAP:$m,TEXT_WRAP_EMBED:jm,TEXT_WRAP_UP_DOWN:qm,TEXT_WRAP_FLOAT_TOP:ev,TEXT_WRAP_FLOAT_BOTTOM:tv}}=Fo,rv=[{key:Jm,i18nPath:"contextmenu.image.change",icon:"image-change",when:r=>{var e;return!r.isReadonly&&!r.editorHasSelection&&((e=r.startElement)==null?void 0:e.type)===ae.IMAGE},callback:r=>{const e=document.createElement("input");e.type="file",e.accept=".png, .jpg, .jpeg",e.onchange=()=>{const t=e.files[0],n=new FileReader;n.readAsDataURL(t),n.onload=()=>{const i=n.result;r.executeReplaceImageElement(i)}},e.click()}},{key:zm,i18nPath:"contextmenu.image.saveAs",icon:"image",when:r=>{var e;return!r.editorHasSelection&&((e=r.startElement)==null?void 0:e.type)===ae.IMAGE},callback:r=>{r.executeSaveAsImageElement()}},{key:$m,i18nPath:"contextmenu.image.textWrap",when:r=>{var e;return!r.isReadonly&&!r.editorHasSelection&&((e=r.startElement)==null?void 0:e.type)===ae.IMAGE},childMenus:[{key:jm,i18nPath:"contextmenu.image.textWrapType.embed",when:()=>!0,callback:(r,e)=>{r.executeChangeImageDisplay(e.startElement,ze.BLOCK)}},{key:qm,i18nPath:"contextmenu.image.textWrapType.upDown",when:()=>!0,callback:(r,e)=>{r.executeChangeImageDisplay(e.startElement,ze.INLINE)}},{key:ev,i18nPath:"contextmenu.image.textWrapType.floatTop",when:()=>!0,callback:(r,e)=>{r.executeChangeImageDisplay(e.startElement,ze.FLOAT_TOP)}},{key:tv,i18nPath:"contextmenu.image.textWrapType.floatBottom",when:()=>!0,callback:(r,e)=>{r.executeChangeImageDisplay(e.startElement,ze.FLOAT_BOTTOM)}}]}],{TABLE:{BORDER:nv,BORDER_ALL:iv,BORDER_EMPTY:ov,BORDER_EXTERNAL:av,BORDER_TD:sv,BORDER_TD_TOP:lv,BORDER_TD_LEFT:cv,BORDER_TD_BOTTOM:uv,BORDER_TD_RIGHT:hv,BORDER_TD_BACK:fv,BORDER_TD_FORWARD:dv,VERTICAL_ALIGN:pv,VERTICAL_ALIGN_TOP:gv,VERTICAL_ALIGN_MIDDLE:Rv,VERTICAL_ALIGN_BOTTOM:mv,INSERT_ROW_COL:vv,INSERT_TOP_ROW:yv,INSERT_BOTTOM_ROW:wv,INSERT_LEFT_COL:Sv,INSERT_RIGHT_COL:xv,DELETE_ROW_COL:bv,DELETE_ROW:Ov,DELETE_COL:Tv,DELETE_TABLE:Pv,MERGE_CELL:Ev,CANCEL_MERGE_CELL:_v}}=Fo,Iv=[{isDivider:!0},{key:nv,i18nPath:"contextmenu.table.border",icon:"border-all",when:r=>!r.isReadonly&&r.isInTable,childMenus:[{key:iv,i18nPath:"contextmenu.table.borderAll",icon:"border-all",when:()=>!0,callback:r=>{r.executeTableBorderType(hn.ALL)}},{key:ov,i18nPath:"contextmenu.table.borderEmpty",icon:"border-empty",when:()=>!0,callback:r=>{r.executeTableBorderType(hn.EMPTY)}},{key:av,i18nPath:"contextmenu.table.borderExternal",icon:"border-external",when:()=>!0,callback:r=>{r.executeTableBorderType(hn.EXTERNAL)}},{key:sv,i18nPath:"contextmenu.table.borderTd",icon:"border-td",when:()=>!0,childMenus:[{key:lv,i18nPath:"contextmenu.table.borderTdTop",icon:"border-td-top",when:()=>!0,callback:r=>{r.executeTableTdBorderType(Mr.TOP)}},{key:hv,i18nPath:"contextmenu.table.borderTdRight",icon:"border-td-right",when:()=>!0,callback:r=>{r.executeTableTdBorderType(Mr.RIGHT)}},{key:uv,i18nPath:"contextmenu.table.borderTdBottom",icon:"border-td-bottom",when:()=>!0,callback:r=>{r.executeTableTdBorderType(Mr.BOTTOM)}},{key:cv,i18nPath:"contextmenu.table.borderTdLeft",icon:"border-td-left",when:()=>!0,callback:r=>{r.executeTableTdBorderType(Mr.LEFT)}},{key:dv,i18nPath:"contextmenu.table.borderTdForward",icon:"border-td-forward",when:()=>!0,callback:r=>{r.executeTableTdSlashType(_o.FORWARD)}},{key:fv,i18nPath:"contextmenu.table.borderTdBack",icon:"border-td-back",when:()=>!0,callback:r=>{r.executeTableTdSlashType(_o.BACK)}}]}]},{key:pv,i18nPath:"contextmenu.table.verticalAlign",icon:"vertical-align",when:r=>!r.isReadonly&&r.isInTable,childMenus:[{key:gv,i18nPath:"contextmenu.table.verticalAlignTop",icon:"vertical-align-top",when:()=>!0,callback:r=>{r.executeTableTdVerticalAlign(Fn.TOP)}},{key:Rv,i18nPath:"contextmenu.table.verticalAlignMiddle",icon:"vertical-align-middle",when:()=>!0,callback:r=>{r.executeTableTdVerticalAlign(Fn.MIDDLE)}},{key:mv,i18nPath:"contextmenu.table.verticalAlignBottom",icon:"vertical-align-bottom",when:()=>!0,callback:r=>{r.executeTableTdVerticalAlign(Fn.BOTTOM)}}]},{key:vv,i18nPath:"contextmenu.table.insertRowCol",icon:"insert-row-col",when:r=>!r.isReadonly&&r.isInTable,childMenus:[{key:yv,i18nPath:"contextmenu.table.insertTopRow",icon:"insert-top-row",when:()=>!0,callback:r=>{r.executeInsertTableTopRow()}},{key:wv,i18nPath:"contextmenu.table.insertBottomRow",icon:"insert-bottom-row",when:()=>!0,callback:r=>{r.executeInsertTableBottomRow()}},{key:Sv,i18nPath:"contextmenu.table.insertLeftCol",icon:"insert-left-col",when:()=>!0,callback:r=>{r.executeInsertTableLeftCol()}},{key:xv,i18nPath:"contextmenu.table.insertRightCol",icon:"insert-right-col",when:()=>!0,callback:r=>{r.executeInsertTableRightCol()}}]},{key:bv,i18nPath:"contextmenu.table.deleteRowCol",icon:"delete-row-col",when:r=>!r.isReadonly&&r.isInTable,childMenus:[{key:Ov,i18nPath:"contextmenu.table.deleteRow",icon:"delete-row",when:()=>!0,callback:r=>{r.executeDeleteTableRow()}},{key:Tv,i18nPath:"contextmenu.table.deleteCol",icon:"delete-col",when:()=>!0,callback:r=>{r.executeDeleteTableCol()}},{key:Pv,i18nPath:"contextmenu.table.deleteTable",icon:"delete-table",when:()=>!0,callback:r=>{r.executeDeleteTable()}}]},{key:Ev,i18nPath:"contextmenu.table.mergeCell",icon:"merge-cell",when:r=>!r.isReadonly&&r.isCrossRowCol,callback:r=>{r.executeMergeTableCell()}},{key:_v,i18nPath:"contextmenu.table.mergeCancelCell",icon:"merge-cancel-cell",when:r=>!r.isReadonly&&r.isInTable,callback:r=>{r.executeCancelMergeTableCell()}}];class Nv{constructor(e,t){this._proxyContextMenuEvent=n=>{this.context=this._getContext();const i=this._filterMenuList(this.contextMenuList);i.some(a=>!a.isDivider)&&(this.dispose(),this._render({contextMenuList:i,left:n.x,top:n.y})),n.preventDefault()},this._handleSideEffect=n=>{if(this.contextMenuContainerList.length){const i=(n==null?void 0:n.composedPath()[0])||n.target;Na(i,a=>!!a&&a.nodeType===1&&a.getAttribute(fn)===pn.CONTEXTMENU,!0)||this.dispose()}},this.options=e.getOptions(),this.draw=e,this.command=t,this.range=e.getRange(),this.position=e.getPosition(),this.i18n=e.getI18n(),this.container=e.getContainer(),this.context=null,this.contextMenuList=[...Qm,...Iv,...rv,...Um,...Gm],this.contextMenuContainerList=[],this.contextMenuRelationShip=new Map,this._addEvent()}getContextMenuList(){return this.contextMenuList}_addEvent(){this.container.addEventListener("contextmenu",this._proxyContextMenuEvent),document.addEventListener("mousedown",this._handleSideEffect)}removeEvent(){this.container.removeEventListener("contextmenu",this._proxyContextMenuEvent),document.removeEventListener("mousedown",this._handleSideEffect)}_filterMenuList(e){var i;const{contextMenuDisableKeys:t}=this.options,n=[];for(let o=0;o<e.length;o++){const a=e[o];a.disable||a.key&&t.includes(a.key)||(a.isDivider||(i=a.when)!=null&&i.call(a,this.context))&&n.push(a)}return n}_getContext(){const e=this.draw.isReadonly(),{isCrossRowCol:t,startIndex:n,endIndex:i}=this.range.getRange(),o=!!(~n||~i),a=o&&n!==i,{isTable:s,trIndex:l,tdIndex:c,index:u}=this.position.getPositionContext();let h=null;if(s){const m=this.draw.getOriginalElementList()[u]||null;m&&(h=bt([m])[0])}const d=s&&!!t,f=this.draw.getElementList(),p=f[n]||null,g=f[i]||null,v=this.draw.getZone().getZone();return{startElement:p,endElement:g,isReadonly:e,editorHasSelection:a,editorTextFocus:o,isCrossRowCol:d,zone:v,isInTable:s,trIndex:l!=null?l:null,tdIndex:c!=null?c:null,tableElement:h}}_createContextMenuContainer(){const e=document.createElement("div");return e.classList.add(`${Fe}-contextmenu-container`),e.setAttribute(fn,pn.CONTEXTMENU),this.container.append(e),e}_render(e){var v;const{contextMenuList:t,left:n,top:i,parentMenuContainer:o}=e,a=this._createContextMenuContainer(),s=document.createElement("div");s.classList.add(`${Fe}-contextmenu-content`);let l=null;o&&this.contextMenuRelationShip.set(o,a);for(let R=0;R<t.length;R++){const m=t[R];if(m.isDivider){if(R!==0&&R!==t.length-1&&!((v=t[R-1])!=null&&v.isDivider)){const x=document.createElement("div");x.classList.add(`${Fe}-contextmenu-divider`),s.append(x)}}else{const x=document.createElement("div");if(x.classList.add(`${Fe}-contextmenu-item`),m.childMenus){const D=this._filterMenuList(m.childMenus);D.some(_=>!_.isDivider)&&(x.classList.add(`${Fe}-contextmenu-sub-item`),x.onmouseenter=()=>{this._setHoverStatus(x,!0),this._removeSubMenu(a);const _=x.getBoundingClientRect(),Q=_.left+_.width,te=_.top;l=this._render({contextMenuList:D,left:Q,top:te,parentMenuContainer:a})},x.onmouseleave=_=>{(!l||!l.contains(_.relatedTarget))&&this._setHoverStatus(x,!1)})}else x.onmouseenter=()=>{this._setHoverStatus(x,!0),this._removeSubMenu(a)},x.onmouseleave=()=>{this._setHoverStatus(x,!1)},x.onclick=()=>{m.callback&&this.context&&m.callback(this.command,this.context),this.dispose()};const T=document.createElement("i");x.append(T),m.icon&&T.classList.add(`${Fe}-contextmenu-${m.icon}`);const P=document.createElement("span"),A=m.i18nPath?this._formatName(this.i18n.t(m.i18nPath)):this._formatName(m.name||"");if(P.append(document.createTextNode(A)),x.append(P),m.shortCut){const D=document.createElement("span");D.classList.add(`${Fe}-shortcut`),D.append(document.createTextNode(m.shortCut)),x.append(D)}s.append(x)}}a.append(s),a.style.display="block";const c=window.innerWidth,u=a.getBoundingClientRect(),h=u.width,d=n+h>c?n-h:n;a.style.left=`${d}px`;const f=window.innerHeight,p=u.height,g=i+p>f?i-p:i;return a.style.top=`${g}px`,this.contextMenuContainerList.push(a),a}_removeSubMenu(e){const t=this.contextMenuRelationShip.get(e);t&&(this._removeSubMenu(t),t.remove(),this.contextMenuRelationShip.delete(e))}_setHoverStatus(e,t){var n;t?((n=e.parentNode)==null||n.querySelectorAll(`${Fe}-contextmenu-item`).forEach(i=>i.classList.remove("hover")),e.classList.add("hover")):e.classList.remove("hover")}_formatName(e){const t=Object.values(nh),n=new RegExp(`${t.join("|")}`);let i=e;if(n.test(i)){const o=new RegExp(nh.SELECTED_TEXT,"g");if(o.test(i)){const a=this.range.toString();i=i.replace(o,a)}}return i}registerContextMenuList(e){this.contextMenuList.push(...e)}dispose(){this.contextMenuContainerList.forEach(e=>e.remove()),this.contextMenuContainerList=[],this.contextMenuRelationShip.clear()}}const Mv=[{key:Ce.X,ctrl:!0,shift:!0,callback:r=>{r.executeStrikeout()}},{key:Ce.LEFT_BRACKET,mod:!0,callback:r=>{r.executeSizeAdd()}},{key:Ce.RIGHT_BRACKET,mod:!0,callback:r=>{r.executeSizeMinus()}},{key:Ce.B,mod:!0,callback:r=>{r.executeBold()}},{key:Ce.I,mod:!0,callback:r=>{r.executeItalic()}},{key:Ce.U,mod:!0,callback:r=>{r.executeUnderline()}},{key:Gn?Ce.COMMA:Ce.RIGHT_ANGLE_BRACKET,mod:!0,shift:!0,callback:r=>{r.executeSuperscript()}},{key:Gn?Ce.PERIOD:Ce.LEFT_ANGLE_BRACKET,mod:!0,shift:!0,callback:r=>{r.executeSubscript()}},{key:Ce.L,mod:!0,callback:r=>{r.executeRowFlex(Ge.LEFT)}},{key:Ce.E,mod:!0,callback:r=>{r.executeRowFlex(Ge.CENTER)}},{key:Ce.R,mod:!0,callback:r=>{r.executeRowFlex(Ge.RIGHT)}},{key:Ce.J,mod:!0,callback:r=>{r.executeRowFlex(Ge.ALIGNMENT)}},{key:Ce.J,mod:!0,shift:!0,callback:r=>{r.executeRowFlex(Ge.JUSTIFY)}}],Lv=[{key:Ce.ZERO,alt:!0,ctrl:!0,callback:r=>{r.executeTitle(null)}},{key:Ce.ONE,alt:!0,ctrl:!0,callback:r=>{r.executeTitle(tt.FIRST)}},{key:Ce.TWO,alt:!0,ctrl:!0,callback:r=>{r.executeTitle(tt.SECOND)}},{key:Ce.THREE,alt:!0,ctrl:!0,callback:r=>{r.executeTitle(tt.THIRD)}},{key:Ce.FOUR,alt:!0,ctrl:!0,callback:r=>{r.executeTitle(tt.FOURTH)}},{key:Ce.FIVE,alt:!0,ctrl:!0,callback:r=>{r.executeTitle(tt.FIFTH)}},{key:Ce.SIX,alt:!0,ctrl:!0,callback:r=>{r.executeTitle(tt.SIXTH)}}],Fv=[{key:Ce.I,shift:!0,mod:!0,callback:r=>{r.executeList(dn.UL,Er.DISC)}},{key:Ce.U,shift:!0,mod:!0,callback:r=>{r.executeList(dn.OL)}}];class Cv{constructor(e,t){this._globalKeydown=i=>{!this.globalShortcutList.length||this._execute(i,this.globalShortcutList)},this.command=t,this.globalShortcutList=[],this.agentShortcutList=[],this._addShortcutList([...Mv,...Lv,...Fv]),this._addEvent(),e.getCursor().getAgentDom().addEventListener("keydown",this._agentKeydown.bind(this))}_addEvent(){document.addEventListener("keydown",this._globalKeydown)}removeEvent(){document.removeEventListener("keydown",this._globalKeydown)}_addShortcutList(e){for(let t=e.length-1;t>=0;t--){const n=e[t];n.isGlobal?this.globalShortcutList.unshift(n):this.agentShortcutList.unshift(n)}}registerShortcutList(e){this._addShortcutList(e)}_agentKeydown(e){!this.agentShortcutList.length||this._execute(e,this.agentShortcutList)}_execute(e,t){var n;for(let i=0;i<t.length;i++){const o=t[i];if((o.mod?nn(e)===!!o.mod:e.ctrlKey===!!o.ctrl&&e.metaKey===!!o.meta)&&e.shiftKey===!!o.shift&&e.altKey===!!o.alt&&e.key.toLowerCase()===o.key.toLowerCase()){o.disable||((n=o==null?void 0:o.callback)==null||n.call(o,this.command),e.preventDefault());break}}}}class Av{constructor(e){this.editor=e}use(e,t){e(this.editor,t)}}class Dv{constructor(){this.eventHub=new Map}on(e,t){if(!e||typeof t!="function")return;const n=this.eventHub.get(e)||new Set;n.add(t),this.eventHub.set(e,n)}emit(e,t){if(!e)return;const n=this.eventHub.get(e);if(!!n){if(n.size===1)return[...n][0](t);n.forEach(i=>i(t))}}off(e,t){if(!e||typeof t!="function")return;const n=this.eventHub.get(e);!n||n.delete(t)}isSubscribe(e){const t=this.eventHub.get(e);return!!t&&t.size>0}}class Xv{}class Uv{constructor(e,t,n={}){const i=i0(n);t=gt(t);let o=[],a=[],s=[];Array.isArray(t)?a=t:(o=t.header||[],a=t.main,s=t.footer||[]),[o,a,s].forEach(f=>{Nr(f,{editorOptions:i})}),this.listener=new Am,this.eventBus=new Dv,this.override=new Xv;const c=new vm(e,i,{header:o,main:a,footer:s},this.listener,this.eventBus,this.override);this.command=new ym(new Cm(c));const u=new Nv(c,this.command),h=new Cv(c,this.command);this.register=new Dm({contextMenu:u,shortcut:h,i18n:c.getI18n()}),this.destroy=()=>{c.destroy(),h.removeEvent(),u.removeEvent()};const d=new Av(this);this.use=d.use.bind(d)}}class zt{constructor(e){this.options=e,this.mask=null,this.container=null,this.inputList=[],this._render()}_render(){var v;const{title:e,data:t,onClose:n,onCancel:i,onConfirm:o}=this.options,a=document.createElement("div");a.classList.add("dialog-mask"),a.setAttribute(fn,pn.COMPONENT),document.body.append(a);const s=document.createElement("div");s.classList.add("dialog-container"),s.setAttribute(fn,pn.COMPONENT);const l=document.createElement("div");l.classList.add("dialog"),s.append(l);const c=document.createElement("div");c.classList.add("dialog-title");const u=document.createElement("span");u.append(document.createTextNode(e));const h=document.createElement("i");h.onclick=()=>{n&&n(),this._dispose()},c.append(u),c.append(h),l.append(c);const d=document.createElement("div");d.classList.add("dialog-option");for(let R=0;R<t.length;R++){const m=t[R],x=document.createElement("div");if(x.classList.add("dialog-option__item"),m.label){const P=document.createElement("span");P.append(document.createTextNode(m.label)),x.append(P),m.required&&P.classList.add("dialog-option__item--require")}let T;m.type==="select"?(T=document.createElement("select"),(v=m.options)==null||v.forEach(P=>{const A=document.createElement("option");A.value=P.value,A.label=P.label,T.append(A)})):m.type==="textarea"?T=document.createElement("textarea"):(T=document.createElement("input"),T.type=m.type),m.width&&(T.style.width=`${m.width}px`),m.height&&(T.style.height=`${m.height}px`),T.name=m.name,T.value=m.value||"",T instanceof HTMLSelectElement||(T.placeholder=m.placeholder||""),x.append(T),d.append(x),this.inputList.push(T)}l.append(d);const f=document.createElement("div");f.classList.add("dialog-menu");const p=document.createElement("button");p.classList.add("dialog-menu__cancel"),p.append(document.createTextNode("\u53D6\u6D88")),p.type="button",p.onclick=()=>{i&&i(),this._dispose()},f.append(p);const g=document.createElement("button");g.append(document.createTextNode("\u786E\u5B9A")),g.type="submit",g.onclick=()=>{if(o){const R=this.inputList.map(m=>({name:m.name,value:m.value}));o(R)}this._dispose()},f.append(g),l.append(f),document.body.append(s),this.container=s,this.mask=a}_dispose(){var e,t;(e=this.mask)==null||e.remove(),(t=this.container)==null||t.remove()}}function Wv(r){switch(r){case"comment":case"prolog":case"doctype":case"cdata":return{color:"#008000",italic:!0};case"namespace":return{opacity:.7};case"string":return{color:"#A31515"};case"punctuation":case"operator":return{color:"#393A34"};case"url":case"symbol":case"number":case"boolean":case"variable":case"constant":case"inserted":return{color:"#36acaa"};case"atrule":case"keyword":case"attr-value":return{color:"#0000ff"};case"function":return{color:"#b9a40a"};case"deleted":case"tag":return{color:"#9a050f"};case"selector":return{color:"#00009f"};case"important":return{color:"#e90",bold:!0};case"italic":return{italic:!0};case"class-name":case"property":return{color:"#2B91AF"};case"attr-name":case"regex":case"entity":return{color:"#ff0000"};default:return null}}function Vv(r){const e=[];function t(n){for(let i=0;i<n.length;i++){const o=n[i];if(typeof o=="string")e.push({content:o});else if(Array.isArray(o.content))t(o.content);else{const{type:a,content:s}=o;typeof s=="string"&&e.push({type:a,content:s,...Wv(a)})}}}return t(r),e}class Yv{constructor(e){this.MAX_RECORD_COUNT=1e3,this.DEFAULT_WIDTH=390,this.DEFAULT_HEIGHT=180,this.undoStack=[],this.x=0,this.y=0,this.isDrawing=!1,this.isDrawn=!1,this.linePoints=[],this.options=e,this.preTimeStamp=0,this.dpr=window.devicePixelRatio,this.canvasWidth=(e.width||this.DEFAULT_WIDTH)*this.dpr,this.canvasHeight=(e.height||this.DEFAULT_HEIGHT)*this.dpr;const{mask:t,container:n,trashContainer:i,undoContainer:o,canvas:a}=this._render();this.mask=t,this.container=n,this.trashContainer=i,this.undoContainer=o,this.canvas=a,this.ctx=a.getContext("2d"),this.ctx.scale(this.dpr,this.dpr),this.ctx.lineCap="round",this._bindEvent(),this._clearUndoFn()}_render(){const{onClose:e,onCancel:t,onConfirm:n}=this.options,i=document.createElement("div");i.classList.add("signature-mask"),i.setAttribute(fn,pn.COMPONENT),document.body.append(i);const o=document.createElement("div");o.classList.add("signature-container"),o.setAttribute(fn,pn.COMPONENT);const a=document.createElement("div");a.classList.add("signature"),o.append(a);const s=document.createElement("div");s.classList.add("signature-title");const l=document.createElement("span");l.append(document.createTextNode("\u63D2\u5165\u7B7E\u540D"));const c=document.createElement("i");c.onclick=()=>{e&&e(),this._dispose()},s.append(l),s.append(c),a.append(s);const u=document.createElement("div");u.classList.add("signature-operation");const h=document.createElement("div");h.classList.add("signature-operation__undo");const d=document.createElement("i"),f=document.createElement("span");f.innerText="\u64A4\u9500",h.append(d),h.append(f),u.append(h);const p=document.createElement("div");p.classList.add("signature-operation__trash");const g=document.createElement("i"),v=document.createElement("span");v.innerText="\u6E05\u7A7A",p.append(g),p.append(v),u.append(p),a.append(u);const R=document.createElement("div");R.classList.add("signature-canvas");const m=document.createElement("canvas");m.width=this.canvasWidth,m.height=this.canvasHeight,m.style.width=`${this.canvasWidth/this.dpr}px`,m.style.height=`${this.canvasHeight/this.dpr}px`,R.append(m),a.append(R);const x=document.createElement("div");x.classList.add("signature-menu");const T=document.createElement("button");T.classList.add("signature-menu__cancel"),T.append(document.createTextNode("\u53D6\u6D88")),T.type="button",T.onclick=()=>{t&&t(),this._dispose()},x.append(T);const P=document.createElement("button");return P.append(document.createTextNode("\u786E\u5B9A")),P.type="submit",P.onclick=()=>{n&&n(this._toData()),this._dispose()},x.append(P),a.append(x),document.body.append(o),this.container=o,this.mask=i,{mask:i,canvas:m,container:o,trashContainer:p,undoContainer:h}}_bindEvent(){this.trashContainer.onclick=this._clearCanvas.bind(this),this.undoContainer.onclick=this._undo.bind(this),this.canvas.onmousedown=this._startDraw.bind(this),this.canvas.onmousemove=this._draw.bind(this),this.container.onmouseup=this._stopDraw.bind(this)}_undo(){this.undoStack.length>1&&(this.undoStack.pop(),this.undoStack.length&&this.undoStack[this.undoStack.length-1]())}_saveUndoFn(e){for(this.undoStack.push(e);this.undoStack.length>this.MAX_RECORD_COUNT;)this.undoStack.shift()}_clearUndoFn(){const e=()=>{this.ctx.clearRect(0,0,this.canvasWidth,this.canvasHeight)};this.undoStack=[e]}_clearCanvas(){this._clearUndoFn(),this.ctx.clearRect(0,0,this.canvasWidth,this.canvasHeight)}_startDraw(e){this.isDrawing=!0,this.x=e.offsetX,this.y=e.offsetY,this.ctx.lineWidth=1}_draw(e){if(!this.isDrawing)return;const t=performance.now(),i=Math.sqrt(e.movementX**2+e.movementY**2)/(t-this.preTimeStamp),a=Math.min(5,Math.max(1,5-i*3)),s=.2;this.ctx.lineWidth=this.ctx.lineWidth*(1-s)+a*s;const{offsetX:l,offsetY:c}=e;this.ctx.beginPath(),this.ctx.moveTo(this.x,this.y),this.ctx.lineTo(l,c),this.ctx.stroke(),this.x=l,this.y=c,this.linePoints.push([l,c]),this.isDrawn=!0,this.preTimeStamp=t}_stopDraw(){if(this.isDrawing=!1,this.isDrawn){const e=this.ctx.getImageData(0,0,this.canvasWidth,this.canvasHeight),t=this;this._saveUndoFn(function(){t.ctx.clearRect(0,0,t.canvasWidth,t.canvasHeight),t.ctx.putImageData(e,0,0)}),this.isDrawn=!1}}_toData(){if(!this.linePoints.length)return null;const e=this.linePoints[0][0],t=this.linePoints[0][1];let n=e,i=t,o=e,a=t;for(let p=0;p<this.linePoints.length;p++){const g=this.linePoints[p];n>g[0]&&(n=g[0]),o<g[0]&&(o=g[0]),i>g[1]&&(i=g[1]),a<g[1]&&(a=g[1])}const s=this.ctx.lineWidth;n=n<s?0:n-s,i=i<s?0:i-s,o=o+s,a=a+s;const l=o-n,c=a-i,u=this.ctx.getImageData(n*this.dpr,i*this.dpr,l*this.dpr,c*this.dpr),h=document.createElement("canvas");return h.style.width=`${l}px`,h.style.height=`${c}px`,h.width=l*this.dpr,h.height=c*this.dpr,h.getContext("2d").putImageData(u,0,0),{value:h.toDataURL(),width:l,height:c}}_dispose(){this.mask.remove(),this.container.remove()}}function kv(r,e){let t;return function(...n){t&&window.clearTimeout(t),t=window.setTimeout(()=>{r.apply(this,n)},e)}}function Zv(r,e){if(!e){r.scrollTop=0;return}const t=[];let n=e.offsetParent;for(;n&&r!==n&&r.contains(n);)t.push(n),n=n.offsetParent;const i=e.offsetTop+t.reduce((l,c)=>l+c.offsetTop,0),o=i+e.offsetHeight,a=r.scrollTop,s=a+r.clientHeight;i<a?r.scrollTop=i:o>s&&(r.scrollTop=o-r.clientHeight)}function ih(r){(window.requestIdleCallback||window.setTimeout)(()=>{r()})}var o0={exports:{}},a0={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},s0={exports:{}},Qv=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},Kv=Qv,Hv=Array.prototype.concat,Bv=Array.prototype.slice,oh=s0.exports=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];Kv(o)?t=Hv.call(t,Bv.call(o)):t.push(o)}return t};oh.wrap=function(r){return function(){return r(oh(arguments))}};var To=a0,Co=s0.exports,l0=Object.hasOwnProperty,c0=Object.create(null);for(var xs in To)l0.call(To,xs)&&(c0[To[xs]]=xs);var Lr=o0.exports={to:{},get:{}};Lr.get=function(r){var e=r.substring(0,3).toLowerCase(),t,n;switch(e){case"hsl":t=Lr.get.hsl(r),n="hsl";break;case"hwb":t=Lr.get.hwb(r),n="hwb";break;default:t=Lr.get.rgb(r),n="rgb";break}return t?{model:n,value:t}:null};Lr.get.rgb=function(r){if(!r)return null;var e=/^#([a-f0-9]{3,4})$/i,t=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^(\w+)$/,a=[0,0,0,1],s,l,c;if(s=r.match(t)){for(c=s[2],s=s[1],l=0;l<3;l++){var u=l*2;a[l]=parseInt(s.slice(u,u+2),16)}c&&(a[3]=parseInt(c,16)/255)}else if(s=r.match(e)){for(s=s[1],c=s[3],l=0;l<3;l++)a[l]=parseInt(s[l]+s[l],16);c&&(a[3]=parseInt(c+c,16)/255)}else if(s=r.match(n)){for(l=0;l<3;l++)a[l]=parseInt(s[l+1],0);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else if(s=r.match(i)){for(l=0;l<3;l++)a[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else return(s=r.match(o))?s[1]==="transparent"?[0,0,0,0]:l0.call(To,s[1])?(a=To[s[1]],a[3]=1,a):null:null;for(l=0;l<3;l++)a[l]=Cn(a[l],0,255);return a[3]=Cn(a[3],0,1),a};Lr.get.hsl=function(r){if(!r)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,t=r.match(e);if(t){var n=parseFloat(t[4]),i=(parseFloat(t[1])%360+360)%360,o=Cn(parseFloat(t[2]),0,100),a=Cn(parseFloat(t[3]),0,100),s=Cn(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null};Lr.get.hwb=function(r){if(!r)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,t=r.match(e);if(t){var n=parseFloat(t[4]),i=(parseFloat(t[1])%360+360)%360,o=Cn(parseFloat(t[2]),0,100),a=Cn(parseFloat(t[3]),0,100),s=Cn(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null};Lr.to.hex=function(){var r=Co(arguments);return"#"+$o(r[0])+$o(r[1])+$o(r[2])+(r[3]<1?$o(Math.round(r[3]*255)):"")};Lr.to.rgb=function(){var r=Co(arguments);return r.length<4||r[3]===1?"rgb("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+")":"rgba("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+", "+r[3]+")"};Lr.to.rgb.percent=function(){var r=Co(arguments),e=Math.round(r[0]/255*100),t=Math.round(r[1]/255*100),n=Math.round(r[2]/255*100);return r.length<4||r[3]===1?"rgb("+e+"%, "+t+"%, "+n+"%)":"rgba("+e+"%, "+t+"%, "+n+"%, "+r[3]+")"};Lr.to.hsl=function(){var r=Co(arguments);return r.length<4||r[3]===1?"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)":"hsla("+r[0]+", "+r[1]+"%, "+r[2]+"%, "+r[3]+")"};Lr.to.hwb=function(){var r=Co(arguments),e="";return r.length>=4&&r[3]!==1&&(e=", "+r[3]),"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+e+")"};Lr.to.keyword=function(r){return c0[r.slice(0,3)]};function Cn(r,e,t){return Math.min(Math.max(e,r),t)}function $o(r){var e=Math.round(r).toString(16).toUpperCase();return e.length<2?"0"+e:e}const No=a0,u0={};for(const r of Object.keys(No))u0[No[r]]=r;const Le={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var h0=Le;for(const r of Object.keys(Le)){if(!("channels"in Le[r]))throw new Error("missing channels property: "+r);if(!("labels"in Le[r]))throw new Error("missing channel labels property: "+r);if(Le[r].labels.length!==Le[r].channels)throw new Error("channel and label counts mismatch: "+r);const{channels:e,labels:t}=Le[r];delete Le[r].channels,delete Le[r].labels,Object.defineProperty(Le[r],"channels",{value:e}),Object.defineProperty(Le[r],"labels",{value:t})}Le.rgb.hsl=function(r){const e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(e,t,n),o=Math.max(e,t,n),a=o-i;let s,l;o===i?s=0:e===o?s=(t-n)/a:t===o?s=2+(n-e)/a:n===o&&(s=4+(e-t)/a),s=Math.min(s*60,360),s<0&&(s+=360);const c=(i+o)/2;return o===i?l=0:c<=.5?l=a/(o+i):l=a/(2-o-i),[s,l*100,c*100]};Le.rgb.hsv=function(r){let e,t,n,i,o;const a=r[0]/255,s=r[1]/255,l=r[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),h=function(d){return(c-d)/6/u+1/2};return u===0?(i=0,o=0):(o=u/c,e=h(a),t=h(s),n=h(l),a===c?i=n-t:s===c?i=1/3+e-n:l===c&&(i=2/3+t-e),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,c*100]};Le.rgb.hwb=function(r){const e=r[0],t=r[1];let n=r[2];const i=Le.rgb.hsl(r)[0],o=1/255*Math.min(e,Math.min(t,n));return n=1-1/255*Math.max(e,Math.max(t,n)),[i,o*100,n*100]};Le.rgb.cmyk=function(r){const e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(1-e,1-t,1-n),o=(1-e-i)/(1-i)||0,a=(1-t-i)/(1-i)||0,s=(1-n-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function Gv(r,e){return(r[0]-e[0])**2+(r[1]-e[1])**2+(r[2]-e[2])**2}Le.rgb.keyword=function(r){const e=u0[r];if(e)return e;let t=1/0,n;for(const i of Object.keys(No)){const o=No[i],a=Gv(r,o);a<t&&(t=a,n=i)}return n};Le.keyword.rgb=function(r){return No[r]};Le.rgb.xyz=function(r){let e=r[0]/255,t=r[1]/255,n=r[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=e*.4124+t*.3576+n*.1805,o=e*.2126+t*.7152+n*.0722,a=e*.0193+t*.1192+n*.9505;return[i*100,o*100,a*100]};Le.rgb.lab=function(r){const e=Le.rgb.xyz(r);let t=e[0],n=e[1],i=e[2];t/=95.047,n/=100,i/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-i);return[o,a,s]};Le.hsl.rgb=function(r){const e=r[0]/360,t=r[1]/100,n=r[2]/100;let i,o,a;if(t===0)return a=n*255,[a,a,a];n<.5?i=n*(1+t):i=n+t-n*t;const s=2*n-i,l=[0,0,0];for(let c=0;c<3;c++)o=e+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,l[c]=a*255;return l};Le.hsl.hsv=function(r){const e=r[0];let t=r[1]/100,n=r[2]/100,i=t;const o=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,i*=o<=1?o:2-o;const a=(n+t)/2,s=n===0?2*i/(o+i):2*t/(n+t);return[e,s*100,a*100]};Le.hsv.rgb=function(r){const e=r[0]/60,t=r[1]/100;let n=r[2]/100;const i=Math.floor(e)%6,o=e-Math.floor(e),a=255*n*(1-t),s=255*n*(1-t*o),l=255*n*(1-t*(1-o));switch(n*=255,i){case 0:return[n,l,a];case 1:return[s,n,a];case 2:return[a,n,l];case 3:return[a,s,n];case 4:return[l,a,n];case 5:return[n,a,s]}};Le.hsv.hsl=function(r){const e=r[0],t=r[1]/100,n=r[2]/100,i=Math.max(n,.01);let o,a;a=(2-t)*n;const s=(2-t)*i;return o=t*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};Le.hwb.rgb=function(r){const e=r[0]/360;let t=r[1]/100,n=r[2]/100;const i=t+n;let o;i>1&&(t/=i,n/=i);const a=Math.floor(6*e),s=1-n;o=6*e-a,(a&1)!==0&&(o=1-o);const l=t+o*(s-t);let c,u,h;switch(a){default:case 6:case 0:c=s,u=l,h=t;break;case 1:c=l,u=s,h=t;break;case 2:c=t,u=s,h=l;break;case 3:c=t,u=l,h=s;break;case 4:c=l,u=t,h=s;break;case 5:c=s,u=t,h=l;break}return[c*255,u*255,h*255]};Le.cmyk.rgb=function(r){const e=r[0]/100,t=r[1]/100,n=r[2]/100,i=r[3]/100,o=1-Math.min(1,e*(1-i)+i),a=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i);return[o*255,a*255,s*255]};Le.xyz.rgb=function(r){const e=r[0]/100,t=r[1]/100,n=r[2]/100;let i,o,a;return i=e*3.2406+t*-1.5372+n*-.4986,o=e*-.9689+t*1.8758+n*.0415,a=e*.0557+t*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};Le.xyz.lab=function(r){let e=r[0],t=r[1],n=r[2];e/=95.047,t/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*t-16,o=500*(e-t),a=200*(t-n);return[i,o,a]};Le.lab.xyz=function(r){const e=r[0],t=r[1],n=r[2];let i,o,a;o=(e+16)/116,i=t/500+o,a=o-n/200;const s=o**3,l=i**3,c=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,a=c>.008856?c:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};Le.lab.lch=function(r){const e=r[0],t=r[1],n=r[2];let i;i=Math.atan2(n,t)*360/2/Math.PI,i<0&&(i+=360);const a=Math.sqrt(t*t+n*n);return[e,a,i]};Le.lch.lab=function(r){const e=r[0],t=r[1],i=r[2]/360*2*Math.PI,o=t*Math.cos(i),a=t*Math.sin(i);return[e,o,a]};Le.rgb.ansi16=function(r,e=null){const[t,n,i]=r;let o=e===null?Le.rgb.hsv(r)[2]:e;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return o===2&&(a+=60),a};Le.hsv.ansi16=function(r){return Le.rgb.ansi16(Le.hsv.rgb(r),r[2])};Le.rgb.ansi256=function(r){const e=r[0],t=r[1],n=r[2];return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)};Le.ansi16.rgb=function(r){let e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const t=(~~(r>50)+1)*.5,n=(e&1)*t*255,i=(e>>1&1)*t*255,o=(e>>2&1)*t*255;return[n,i,o]};Le.ansi256.rgb=function(r){if(r>=232){const o=(r-232)*10+8;return[o,o,o]}r-=16;let e;const t=Math.floor(r/36)/5*255,n=Math.floor((e=r%36)/6)/5*255,i=e%6/5*255;return[t,n,i]};Le.rgb.hex=function(r){const t=(((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};Le.hex.rgb=function(r){const e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let t=e[0];e[0].length===3&&(t=t.split("").map(s=>s+s).join(""));const n=parseInt(t,16),i=n>>16&255,o=n>>8&255,a=n&255;return[i,o,a]};Le.rgb.hcg=function(r){const e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.max(Math.max(e,t),n),o=Math.min(Math.min(e,t),n),a=i-o;let s,l;return a<1?s=o/(1-a):s=0,a<=0?l=0:i===e?l=(t-n)/a%6:i===t?l=2+(n-e)/a:l=4+(e-t)/a,l/=6,l%=1,[l*360,a*100,s*100]};Le.hsl.hcg=function(r){const e=r[1]/100,t=r[2]/100,n=t<.5?2*e*t:2*e*(1-t);let i=0;return n<1&&(i=(t-.5*n)/(1-n)),[r[0],n*100,i*100]};Le.hsv.hcg=function(r){const e=r[1]/100,t=r[2]/100,n=e*t;let i=0;return n<1&&(i=(t-n)/(1-n)),[r[0],n*100,i*100]};Le.hcg.rgb=function(r){const e=r[0]/360,t=r[1]/100,n=r[2]/100;if(t===0)return[n*255,n*255,n*255];const i=[0,0,0],o=e%1*6,a=o%1,s=1-a;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-t)*n,[(t*i[0]+l)*255,(t*i[1]+l)*255,(t*i[2]+l)*255]};Le.hcg.hsv=function(r){const e=r[1]/100,t=r[2]/100,n=e+t*(1-e);let i=0;return n>0&&(i=e/n),[r[0],i*100,n*100]};Le.hcg.hsl=function(r){const e=r[1]/100,n=r[2]/100*(1-e)+.5*e;let i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[r[0],i*100,n*100]};Le.hcg.hwb=function(r){const e=r[1]/100,t=r[2]/100,n=e+t*(1-e);return[r[0],(n-e)*100,(1-n)*100]};Le.hwb.hcg=function(r){const e=r[1]/100,t=r[2]/100,n=1-t,i=n-e;let o=0;return i<1&&(o=(n-i)/(1-i)),[r[0],i*100,o*100]};Le.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};Le.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};Le.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};Le.gray.hsl=function(r){return[0,0,r[0]]};Le.gray.hsv=Le.gray.hsl;Le.gray.hwb=function(r){return[0,100,r[0]]};Le.gray.cmyk=function(r){return[0,0,0,r[0]]};Le.gray.lab=function(r){return[r[0],0,0]};Le.gray.hex=function(r){const e=Math.round(r[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};Le.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]};const Aa=h0;function Jv(){const r={},e=Object.keys(Aa);for(let t=e.length,n=0;n<t;n++)r[e[n]]={distance:-1,parent:null};return r}function zv(r){const e=Jv(),t=[r];for(e[r].distance=0;t.length;){const n=t.pop(),i=Object.keys(Aa[n]);for(let o=i.length,a=0;a<o;a++){const s=i[a],l=e[s];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,t.unshift(s))}}return e}function $v(r,e){return function(t){return e(r(t))}}function jv(r,e){const t=[e[r].parent,r];let n=Aa[e[r].parent][r],i=e[r].parent;for(;e[i].parent;)t.unshift(e[i].parent),n=$v(Aa[e[i].parent][i],n),i=e[i].parent;return n.conversion=t,n}var qv=function(r){const e=zv(r),t={},n=Object.keys(e);for(let i=n.length,o=0;o<i;o++){const a=n[o];e[a].parent!==null&&(t[a]=jv(a,e))}return t};const kl=h0,ey=qv,vi={},ty=Object.keys(kl);function ry(r){const e=function(...t){const n=t[0];return n==null?n:(n.length>1&&(t=n),r(t))};return"conversion"in r&&(e.conversion=r.conversion),e}function ny(r){const e=function(...t){const n=t[0];if(n==null)return n;n.length>1&&(t=n);const i=r(t);if(typeof i=="object")for(let o=i.length,a=0;a<o;a++)i[a]=Math.round(i[a]);return i};return"conversion"in r&&(e.conversion=r.conversion),e}ty.forEach(r=>{vi[r]={},Object.defineProperty(vi[r],"channels",{value:kl[r].channels}),Object.defineProperty(vi[r],"labels",{value:kl[r].labels});const e=ey(r);Object.keys(e).forEach(n=>{const i=e[n];vi[r][n]=ny(i),vi[r][n].raw=ry(i)})});var iy=vi;const yi=o0.exports,_r=iy,f0=["keyword","gray","hex"],Zl={};for(const r of Object.keys(_r))Zl[[..._r[r].labels].sort().join("")]=r;const Da={};function qt(r,e){if(!(this instanceof qt))return new qt(r,e);if(e&&e in f0&&(e=null),e&&!(e in _r))throw new Error("Unknown model: "+e);let t,n;if(r==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(r instanceof qt)this.model=r.model,this.color=[...r.color],this.valpha=r.valpha;else if(typeof r=="string"){const i=yi.get(r);if(i===null)throw new Error("Unable to parse color from string: "+r);this.model=i.model,n=_r[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(r.length>0){this.model=e||"rgb",n=_r[this.model].channels;const i=Array.prototype.slice.call(r,0,n);this.color=Ql(i,n),this.valpha=typeof r[n]=="number"?r[n]:1}else if(typeof r=="number")this.model="rgb",this.color=[r>>16&255,r>>8&255,r&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(r);"alpha"in r&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof r.alpha=="number"?r.alpha:0);const o=i.sort().join("");if(!(o in Zl))throw new Error("Unable to parse color from object: "+JSON.stringify(r));this.model=Zl[o];const{labels:a}=_r[this.model],s=[];for(t=0;t<a.length;t++)s.push(r[a[t]]);this.color=Ql(s)}if(Da[this.model])for(n=_r[this.model].channels,t=0;t<n;t++){const i=Da[this.model][t];i&&(this.color[t]=i(this.color[t]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}qt.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(r){let e=this.model in yi.to?this:this.rgb();e=e.round(typeof r=="number"?r:1);const t=e.valpha===1?e.color:[...e.color,this.valpha];return yi.to[e.model](t)},percentString(r){const e=this.rgb().round(typeof r=="number"?r:1),t=e.valpha===1?e.color:[...e.color,this.valpha];return yi.to.rgb.percent(t)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const r={},{channels:e}=_r[this.model],{labels:t}=_r[this.model];for(let n=0;n<e;n++)r[t[n]]=this.color[n];return this.valpha!==1&&(r.alpha=this.valpha),r},unitArray(){const r=this.rgb().color;return r[0]/=255,r[1]/=255,r[2]/=255,this.valpha!==1&&r.push(this.valpha),r},unitObject(){const r=this.rgb().object();return r.r/=255,r.g/=255,r.b/=255,this.valpha!==1&&(r.alpha=this.valpha),r},round(r){return r=Math.max(r||0,0),new qt([...this.color.map(ay(r)),this.valpha],this.model)},alpha(r){return r!==void 0?new qt([...this.color,Math.max(0,Math.min(1,r))],this.model):this.valpha},red:Lt("rgb",0,kt(255)),green:Lt("rgb",1,kt(255)),blue:Lt("rgb",2,kt(255)),hue:Lt(["hsl","hsv","hsl","hwb","hcg"],0,r=>(r%360+360)%360),saturationl:Lt("hsl",1,kt(100)),lightness:Lt("hsl",2,kt(100)),saturationv:Lt("hsv",1,kt(100)),value:Lt("hsv",2,kt(100)),chroma:Lt("hcg",1,kt(100)),gray:Lt("hcg",2,kt(100)),white:Lt("hwb",1,kt(100)),wblack:Lt("hwb",2,kt(100)),cyan:Lt("cmyk",0,kt(100)),magenta:Lt("cmyk",1,kt(100)),yellow:Lt("cmyk",2,kt(100)),black:Lt("cmyk",3,kt(100)),x:Lt("xyz",0,kt(95.047)),y:Lt("xyz",1,kt(100)),z:Lt("xyz",2,kt(108.833)),l:Lt("lab",0,kt(100)),a:Lt("lab",1),b:Lt("lab",2),keyword(r){return r!==void 0?new qt(r):_r[this.model].keyword(this.color)},hex(r){return r!==void 0?new qt(r):yi.to.hex(this.rgb().round().color)},hexa(r){if(r!==void 0)return new qt(r);const e=this.rgb().round().color;let t=Math.round(this.valpha*255).toString(16).toUpperCase();return t.length===1&&(t="0"+t),yi.to.hex(e)+t},rgbNumber(){const r=this.rgb().color;return(r[0]&255)<<16|(r[1]&255)<<8|r[2]&255},luminosity(){const r=this.rgb().color,e=[];for(const[t,n]of r.entries()){const i=n/255;e[t]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(r){const e=this.luminosity(),t=r.luminosity();return e>t?(e+.05)/(t+.05):(t+.05)/(e+.05)},level(r){const e=this.contrast(r);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const r=this.rgb().color;return(r[0]*2126+r[1]*7152+r[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const r=this.rgb();for(let e=0;e<3;e++)r.color[e]=255-r.color[e];return r},lighten(r){const e=this.hsl();return e.color[2]+=e.color[2]*r,e},darken(r){const e=this.hsl();return e.color[2]-=e.color[2]*r,e},saturate(r){const e=this.hsl();return e.color[1]+=e.color[1]*r,e},desaturate(r){const e=this.hsl();return e.color[1]-=e.color[1]*r,e},whiten(r){const e=this.hwb();return e.color[1]+=e.color[1]*r,e},blacken(r){const e=this.hwb();return e.color[2]+=e.color[2]*r,e},grayscale(){const r=this.rgb().color,e=r[0]*.3+r[1]*.59+r[2]*.11;return qt.rgb(e,e,e)},fade(r){return this.alpha(this.valpha-this.valpha*r)},opaquer(r){return this.alpha(this.valpha+this.valpha*r)},rotate(r){const e=this.hsl();let t=e.color[0];return t=(t+r)%360,t=t<0?360+t:t,e.color[0]=t,e},mix(r,e){if(!r||!r.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r);const t=r.rgb(),n=this.rgb(),i=e===void 0?.5:e,o=2*i-1,a=t.alpha()-n.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return qt.rgb(s*t.red()+l*n.red(),s*t.green()+l*n.green(),s*t.blue()+l*n.blue(),t.alpha()*i+n.alpha()*(1-i))}};for(const r of Object.keys(_r)){if(f0.includes(r))continue;const{channels:e}=_r[r];qt.prototype[r]=function(...t){return this.model===r?new qt(this):t.length>0?new qt(t,r):new qt([...sy(_r[this.model][r].raw(this.color)),this.valpha],r)},qt[r]=function(...t){let n=t[0];return typeof n=="number"&&(n=Ql(t,e)),new qt(n,r)}}function oy(r,e){return Number(r.toFixed(e))}function ay(r){return function(e){return oy(e,r)}}function Lt(r,e,t){r=Array.isArray(r)?r:[r];for(const n of r)(Da[n]||(Da[n]=[]))[e]=t;return r=r[0],function(n){let i;return n!==void 0?(t&&(n=t(n)),i=this[r](),i.color[e]=n,i):(i=this[r]().color[e],t&&(i=t(i)),i)}}function kt(r){return function(e){return Math.max(0,Math.min(r,e))}}function sy(r){return Array.isArray(r)?r:[r]}function Ql(r,e){for(let t=0;t<e;t++)typeof r[t]!="number"&&(r[t]=0);return r}var ly=qt,ah=ly,cy=Object.defineProperty,uy=Object.defineProperties,hy=Object.getOwnPropertyDescriptors,sh=Object.getOwnPropertySymbols,fy=Object.prototype.hasOwnProperty,dy=Object.prototype.propertyIsEnumerable,Kl=(r,e,t)=>e in r?cy(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,$e=(r,e)=>{for(var t in e||(e={}))fy.call(e,t)&&Kl(r,t,e[t]);if(sh)for(var t of sh(e))dy.call(e,t)&&Kl(r,t,e[t]);return r},Di=(r,e)=>uy(r,hy(e)),pe=(r,e,t)=>(Kl(r,typeof e!="symbol"?e+"":e,t),t),jo=(r,e,t)=>new Promise((n,i)=>{var o=l=>{try{s(t.next(l))}catch(c){i(c)}},a=l=>{try{s(t.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((t=t.apply(r,e)).next())});class Xa{constructor(e){pe(this,"rootKey"),this.rootKey=e}}const py=Object.seal({});class de extends Xa{constructor(e){super(e),pe(this,"root"),this.root=new Array}prepForXml(e){var t;e.stack.push(this);const n=this.root.map(i=>i instanceof Xa?i.prepForXml(e):i).filter(i=>i!==void 0);return e.stack.pop(),{[this.rootKey]:n.length?n.length===1&&((t=n[0])==null?void 0:t._attr)?n[0]:n:py}}addChildElement(e){return this.root.push(e),this}}class xn extends de{prepForXml(e){const t=super.prepForXml(e);if(t&&(typeof t[this.rootKey]!="object"||Object.keys(t[this.rootKey]).length))return t}}class _e extends Xa{constructor(e){super("_attr"),pe(this,"xmlKeys"),this.root=e}prepForXml(e){const t={};return Object.keys(this.root).forEach(n=>{const i=this.root[n];if(i!==void 0){const o=this.xmlKeys&&this.xmlKeys[n]||n;t[o]=i}}),{_attr:t}}}class bn extends Xa{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:n})=>n!==void 0).reduce((n,{key:i,value:o})=>Di($e({},n),{[i]:o}),{})}}}class Ft extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var an=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function d0(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var p0={},bc={exports:{}},Ii=typeof Reflect=="object"?Reflect:null,lh=Ii&&typeof Ii.apply=="function"?Ii.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},wa;Ii&&typeof Ii.ownKeys=="function"?wa=Ii.ownKeys:Object.getOwnPropertySymbols?wa=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:wa=function(e){return Object.getOwnPropertyNames(e)};function gy(r){console&&console.warn&&console.warn(r)}var g0=Number.isNaN||function(e){return e!==e};function ht(){ht.init.call(this)}bc.exports=ht;bc.exports.once=yy;ht.EventEmitter=ht;ht.prototype._events=void 0;ht.prototype._eventsCount=0;ht.prototype._maxListeners=void 0;var ch=10;function Ga(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(ht,"defaultMaxListeners",{enumerable:!0,get:function(){return ch},set:function(r){if(typeof r!="number"||r<0||g0(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");ch=r}});ht.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};ht.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||g0(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function R0(r){return r._maxListeners===void 0?ht.defaultMaxListeners:r._maxListeners}ht.prototype.getMaxListeners=function(){return R0(this)};ht.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(l===void 0)return!1;if(typeof l=="function")lh(l,this,t);else for(var c=l.length,u=S0(l,c),n=0;n<c;++n)lh(u[n],this,t);return!0};function m0(r,e,t,n){var i,o,a;if(Ga(t),o=r._events,o===void 0?(o=r._events=Object.create(null),r._eventsCount=0):(o.newListener!==void 0&&(r.emit("newListener",e,t.listener?t.listener:t),o=r._events),a=o[e]),a===void 0)a=o[e]=t,++r._eventsCount;else if(typeof a=="function"?a=o[e]=n?[t,a]:[a,t]:n?a.unshift(t):a.push(t),i=R0(r),i>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=r,s.type=e,s.count=a.length,gy(s)}return r}ht.prototype.addListener=function(e,t){return m0(this,e,t,!1)};ht.prototype.on=ht.prototype.addListener;ht.prototype.prependListener=function(e,t){return m0(this,e,t,!0)};function Ry(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function v0(r,e,t){var n={fired:!1,wrapFn:void 0,target:r,type:e,listener:t},i=Ry.bind(n);return i.listener=t,n.wrapFn=i,i}ht.prototype.once=function(e,t){return Ga(t),this.on(e,v0(this,e,t)),this};ht.prototype.prependOnceListener=function(e,t){return Ga(t),this.prependListener(e,v0(this,e,t)),this};ht.prototype.removeListener=function(e,t){var n,i,o,a,s;if(Ga(t),i=this._events,i===void 0)return this;if(n=i[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(o=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,o=a;break}if(o<0)return this;o===0?n.shift():my(n,o),n.length===1&&(i[e]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",e,s||t)}return this};ht.prototype.off=ht.prototype.removeListener;ht.prototype.removeAllListeners=function(e){var t,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var o=Object.keys(n),a;for(i=0;i<o.length;++i)a=o[i],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t=="function")this.removeListener(e,t);else if(t!==void 0)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this};function y0(r,e,t){var n=r._events;if(n===void 0)return[];var i=n[e];return i===void 0?[]:typeof i=="function"?t?[i.listener||i]:[i]:t?vy(i):S0(i,i.length)}ht.prototype.listeners=function(e){return y0(this,e,!0)};ht.prototype.rawListeners=function(e){return y0(this,e,!1)};ht.listenerCount=function(r,e){return typeof r.listenerCount=="function"?r.listenerCount(e):w0.call(r,e)};ht.prototype.listenerCount=w0;function w0(r){var e=this._events;if(e!==void 0){var t=e[r];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}ht.prototype.eventNames=function(){return this._eventsCount>0?wa(this._events):[]};function S0(r,e){for(var t=new Array(e),n=0;n<e;++n)t[n]=r[n];return t}function my(r,e){for(;e+1<r.length;e++)r[e]=r[e+1];r.pop()}function vy(r){for(var e=new Array(r.length),t=0;t<e.length;++t)e[t]=r[t].listener||r[t];return e}function yy(r,e){return new Promise(function(t,n){function i(a){r.removeListener(e,o),n(a)}function o(){typeof r.removeListener=="function"&&r.removeListener("error",i),t([].slice.call(arguments))}x0(r,e,o,{once:!0}),e!=="error"&&wy(r,i,{once:!0})})}function wy(r,e,t){typeof r.on=="function"&&x0(r,"error",e,t)}function x0(r,e,t,n){if(typeof r.on=="function")n.once?r.once(e,t):r.on(e,t);else if(typeof r.addEventListener=="function")r.addEventListener(e,function i(o){n.once&&r.removeEventListener(e,i),t(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r)}var Oc=bc.exports,Hl={exports:{}};typeof Object.create=="function"?Hl.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Hl.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}};var ni=Hl.exports;function Sy(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var b0={exports:{}},Wt=b0.exports={},tn,rn;function Bl(){throw new Error("setTimeout has not been defined")}function Gl(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?tn=setTimeout:tn=Bl}catch{tn=Bl}try{typeof clearTimeout=="function"?rn=clearTimeout:rn=Gl}catch{rn=Gl}})();function O0(r){if(tn===setTimeout)return setTimeout(r,0);if((tn===Bl||!tn)&&setTimeout)return tn=setTimeout,setTimeout(r,0);try{return tn(r,0)}catch{try{return tn.call(null,r,0)}catch{return tn.call(this,r,0)}}}function xy(r){if(rn===clearTimeout)return clearTimeout(r);if((rn===Gl||!rn)&&clearTimeout)return rn=clearTimeout,clearTimeout(r);try{return rn(r)}catch{try{return rn.call(null,r)}catch{return rn.call(this,r)}}}var mn=[],Ni=!1,Jn,Sa=-1;function by(){!Ni||!Jn||(Ni=!1,Jn.length?mn=Jn.concat(mn):Sa=-1,mn.length&&T0())}function T0(){if(!Ni){var r=O0(by);Ni=!0;for(var e=mn.length;e;){for(Jn=mn,mn=[];++Sa<e;)Jn&&Jn[Sa].run();Sa=-1,e=mn.length}Jn=null,Ni=!1,xy(r)}}Wt.nextTick=function(r){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];mn.push(new P0(r,e)),mn.length===1&&!Ni&&O0(T0)};function P0(r,e){this.fun=r,this.array=e}P0.prototype.run=function(){this.fun.apply(null,this.array)};Wt.title="browser";Wt.browser=!0;Wt.env={};Wt.argv=[];Wt.version="";Wt.versions={};function On(){}Wt.on=On;Wt.addListener=On;Wt.once=On;Wt.off=On;Wt.removeListener=On;Wt.removeAllListeners=On;Wt.emit=On;Wt.prependListener=On;Wt.prependOnceListener=On;Wt.listeners=function(r){return[]};Wt.binding=function(r){throw new Error("process.binding is not supported")};Wt.cwd=function(){return"/"};Wt.chdir=function(r){throw new Error("process.chdir is not supported")};Wt.umask=function(){return 0};var Oy=b0.exports;const ke=Sy(Oy);var bs,uh;function E0(){return uh||(uh=1,bs=Oc.EventEmitter),bs}var Os={},no={},hh;function Ty(){if(hh)return no;hh=1,no.byteLength=s,no.toByteArray=c,no.fromByteArray=d;for(var r=[],e=[],t=typeof Uint8Array!="undefined"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)r[i]=n[i],e[n.charCodeAt(i)]=i;e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63;function a(f){var p=f.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=f.indexOf("=");g===-1&&(g=p);var v=g===p?0:4-g%4;return[g,v]}function s(f){var p=a(f),g=p[0],v=p[1];return(g+v)*3/4-v}function l(f,p,g){return(p+g)*3/4-g}function c(f){var p,g=a(f),v=g[0],R=g[1],m=new t(l(f,v,R)),x=0,T=R>0?v-4:v,P;for(P=0;P<T;P+=4)p=e[f.charCodeAt(P)]<<18|e[f.charCodeAt(P+1)]<<12|e[f.charCodeAt(P+2)]<<6|e[f.charCodeAt(P+3)],m[x++]=p>>16&255,m[x++]=p>>8&255,m[x++]=p&255;return R===2&&(p=e[f.charCodeAt(P)]<<2|e[f.charCodeAt(P+1)]>>4,m[x++]=p&255),R===1&&(p=e[f.charCodeAt(P)]<<10|e[f.charCodeAt(P+1)]<<4|e[f.charCodeAt(P+2)]>>2,m[x++]=p>>8&255,m[x++]=p&255),m}function u(f){return r[f>>18&63]+r[f>>12&63]+r[f>>6&63]+r[f&63]}function h(f,p,g){for(var v,R=[],m=p;m<g;m+=3)v=(f[m]<<16&16711680)+(f[m+1]<<8&65280)+(f[m+2]&255),R.push(u(v));return R.join("")}function d(f){for(var p,g=f.length,v=g%3,R=[],m=16383,x=0,T=g-v;x<T;x+=m)R.push(h(f,x,x+m>T?T:x+m));return v===1?(p=f[g-1],R.push(r[p>>2]+r[p<<4&63]+"==")):v===2&&(p=(f[g-2]<<8)+f[g-1],R.push(r[p>>10]+r[p>>4&63]+r[p<<2&63]+"=")),R.join("")}return no}var qo={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var fh;function Py(){return fh||(fh=1,qo.read=function(r,e,t,n,i){var o,a,s=i*8-n-1,l=(1<<s)-1,c=l>>1,u=-7,h=t?i-1:0,d=t?-1:1,f=r[e+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=o*256+r[e+h],h+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=a*256+r[e+h],h+=d,u-=8);if(o===0)o=1-c;else{if(o===l)return a?NaN:(f?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-c}return(f?-1:1)*a*Math.pow(2,o-n)},qo.write=function(r,e,t,n,i,o){var a,s,l,c=o*8-i-1,u=(1<<c)-1,h=u>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+h>=1?e+=d/l:e+=d*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a=a+h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;r[t+f]=s&255,f+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;r[t+f]=a&255,f+=p,a/=256,c-=8);r[t+f-p]|=g*128}),qo}/*!
|
|
* The buffer module from node.js, for the browser.
|
|
*
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
* @license MIT
|
|
*/var dh;function Ja(){return dh||(dh=1,function(r){var e=Ty(),t=Py(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=s,r.SlowBuffer=m,r.INSPECT_MAX_BYTES=50;var i=2147483647;r.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{var M=new Uint8Array(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,Uint8Array.prototype),Object.setPrototypeOf(M,w),M.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function a(M){if(M>i)throw new RangeError('The value "'+M+'" is invalid for option "size"');var w=new Uint8Array(M);return Object.setPrototypeOf(w,s.prototype),w}function s(M,w,S){if(typeof M=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(M)}return l(M,w,S)}s.poolSize=8192;function l(M,w,S){if(typeof M=="string")return d(M,w);if(ArrayBuffer.isView(M))return p(M);if(M==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);if(ue(M,ArrayBuffer)||M&&ue(M.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ue(M,SharedArrayBuffer)||M&&ue(M.buffer,SharedArrayBuffer)))return g(M,w,S);if(typeof M=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var E=M.valueOf&&M.valueOf();if(E!=null&&E!==M)return s.from(E,w,S);var K=v(M);if(K)return K;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof M[Symbol.toPrimitive]=="function")return s.from(M[Symbol.toPrimitive]("string"),w,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M)}s.from=function(M,w,S){return l(M,w,S)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(M){if(typeof M!="number")throw new TypeError('"size" argument must be of type number');if(M<0)throw new RangeError('The value "'+M+'" is invalid for option "size"')}function u(M,w,S){return c(M),M<=0?a(M):w!==void 0?typeof S=="string"?a(M).fill(w,S):a(M).fill(w):a(M)}s.alloc=function(M,w,S){return u(M,w,S)};function h(M){return c(M),a(M<0?0:R(M)|0)}s.allocUnsafe=function(M){return h(M)},s.allocUnsafeSlow=function(M){return h(M)};function d(M,w){if((typeof w!="string"||w==="")&&(w="utf8"),!s.isEncoding(w))throw new TypeError("Unknown encoding: "+w);var S=x(M,w)|0,E=a(S),K=E.write(M,w);return K!==S&&(E=E.slice(0,K)),E}function f(M){for(var w=M.length<0?0:R(M.length)|0,S=a(w),E=0;E<w;E+=1)S[E]=M[E]&255;return S}function p(M){if(ue(M,Uint8Array)){var w=new Uint8Array(M);return g(w.buffer,w.byteOffset,w.byteLength)}return f(M)}function g(M,w,S){if(w<0||M.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(M.byteLength<w+(S||0))throw new RangeError('"length" is outside of buffer bounds');var E;return w===void 0&&S===void 0?E=new Uint8Array(M):S===void 0?E=new Uint8Array(M,w):E=new Uint8Array(M,w,S),Object.setPrototypeOf(E,s.prototype),E}function v(M){if(s.isBuffer(M)){var w=R(M.length)|0,S=a(w);return S.length===0||M.copy(S,0,0,w),S}if(M.length!==void 0)return typeof M.length!="number"||b(M.length)?a(0):f(M);if(M.type==="Buffer"&&Array.isArray(M.data))return f(M.data)}function R(M){if(M>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return M|0}function m(M){return+M!=M&&(M=0),s.alloc(+M)}s.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==s.prototype},s.compare=function(w,S){if(ue(w,Uint8Array)&&(w=s.from(w,w.offset,w.byteLength)),ue(S,Uint8Array)&&(S=s.from(S,S.offset,S.byteLength)),!s.isBuffer(w)||!s.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===S)return 0;for(var E=w.length,K=S.length,$=0,Z=Math.min(E,K);$<Z;++$)if(w[$]!==S[$]){E=w[$],K=S[$];break}return E<K?-1:K<E?1:0},s.isEncoding=function(w){switch(String(w).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(w,S){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return s.alloc(0);var E;if(S===void 0)for(S=0,E=0;E<w.length;++E)S+=w[E].length;var K=s.allocUnsafe(S),$=0;for(E=0;E<w.length;++E){var Z=w[E];if(ue(Z,Uint8Array))$+Z.length>K.length?s.from(Z).copy(K,$):Uint8Array.prototype.set.call(K,Z,$);else if(s.isBuffer(Z))Z.copy(K,$);else throw new TypeError('"list" argument must be an Array of Buffers');$+=Z.length}return K};function x(M,w){if(s.isBuffer(M))return M.length;if(ArrayBuffer.isView(M)||ue(M,ArrayBuffer))return M.byteLength;if(typeof M!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof M);var S=M.length,E=arguments.length>2&&arguments[2]===!0;if(!E&&S===0)return 0;for(var K=!1;;)switch(w){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return C(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return H(M).length;default:if(K)return E?-1:C(M).length;w=(""+w).toLowerCase(),K=!0}}s.byteLength=x;function T(M,w,S){var E=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,w>>>=0,S<=w))return"";for(M||(M="utf8");;)switch(M){case"hex":return V(this,w,S);case"utf8":case"utf-8":return y(this,w,S);case"ascii":return F(this,w,S);case"latin1":case"binary":return Y(this,w,S);case"base64":return I(this,w,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,w,S);default:if(E)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),E=!0}}s.prototype._isBuffer=!0;function P(M,w,S){var E=M[w];M[w]=M[S],M[S]=E}s.prototype.swap16=function(){var w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var S=0;S<w;S+=2)P(this,S,S+1);return this},s.prototype.swap32=function(){var w=this.length;if(w%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var S=0;S<w;S+=4)P(this,S,S+3),P(this,S+1,S+2);return this},s.prototype.swap64=function(){var w=this.length;if(w%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var S=0;S<w;S+=8)P(this,S,S+7),P(this,S+1,S+6),P(this,S+2,S+5),P(this,S+3,S+4);return this},s.prototype.toString=function(){var w=this.length;return w===0?"":arguments.length===0?y(this,0,w):T.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(w){if(!s.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:s.compare(this,w)===0},s.prototype.inspect=function(){var w="",S=r.INSPECT_MAX_BYTES;return w=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(w+=" ... "),"<Buffer "+w+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(w,S,E,K,$){if(ue(w,Uint8Array)&&(w=s.from(w,w.offset,w.byteLength)),!s.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(S===void 0&&(S=0),E===void 0&&(E=w?w.length:0),K===void 0&&(K=0),$===void 0&&($=this.length),S<0||E>w.length||K<0||$>this.length)throw new RangeError("out of range index");if(K>=$&&S>=E)return 0;if(K>=$)return-1;if(S>=E)return 1;if(S>>>=0,E>>>=0,K>>>=0,$>>>=0,this===w)return 0;for(var Z=$-K,oe=E-S,ce=Math.min(Z,oe),se=this.slice(K,$),ge=w.slice(S,E),Oe=0;Oe<ce;++Oe)if(se[Oe]!==ge[Oe]){Z=se[Oe],oe=ge[Oe];break}return Z<oe?-1:oe<Z?1:0};function A(M,w,S,E,K){if(M.length===0)return-1;if(typeof S=="string"?(E=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,b(S)&&(S=K?0:M.length-1),S<0&&(S=M.length+S),S>=M.length){if(K)return-1;S=M.length-1}else if(S<0)if(K)S=0;else return-1;if(typeof w=="string"&&(w=s.from(w,E)),s.isBuffer(w))return w.length===0?-1:D(M,w,S,E,K);if(typeof w=="number")return w=w&255,typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(M,w,S):Uint8Array.prototype.lastIndexOf.call(M,w,S):D(M,[w],S,E,K);throw new TypeError("val must be string, number or Buffer")}function D(M,w,S,E,K){var $=1,Z=M.length,oe=w.length;if(E!==void 0&&(E=String(E).toLowerCase(),E==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(M.length<2||w.length<2)return-1;$=2,Z/=2,oe/=2,S/=2}function ce(Ye,Vt){return $===1?Ye[Vt]:Ye.readUInt16BE(Vt*$)}var se;if(K){var ge=-1;for(se=S;se<Z;se++)if(ce(M,se)===ce(w,ge===-1?0:se-ge)){if(ge===-1&&(ge=se),se-ge+1===oe)return ge*$}else ge!==-1&&(se-=se-ge),ge=-1}else for(S+oe>Z&&(S=Z-oe),se=S;se>=0;se--){for(var Oe=!0,Te=0;Te<oe;Te++)if(ce(M,se+Te)!==ce(w,Te)){Oe=!1;break}if(Oe)return se}return-1}s.prototype.includes=function(w,S,E){return this.indexOf(w,S,E)!==-1},s.prototype.indexOf=function(w,S,E){return A(this,w,S,E,!0)},s.prototype.lastIndexOf=function(w,S,E){return A(this,w,S,E,!1)};function W(M,w,S,E){S=Number(S)||0;var K=M.length-S;E?(E=Number(E),E>K&&(E=K)):E=K;var $=w.length;E>$/2&&(E=$/2);for(var Z=0;Z<E;++Z){var oe=parseInt(w.substr(Z*2,2),16);if(b(oe))return Z;M[S+Z]=oe}return Z}function _(M,w,S,E){return j(C(w,M.length-S),M,S,E)}function Q(M,w,S,E){return j(G(w),M,S,E)}function te(M,w,S,E){return j(H(w),M,S,E)}function O(M,w,S,E){return j(z(w,M.length-S),M,S,E)}s.prototype.write=function(w,S,E,K){if(S===void 0)K="utf8",E=this.length,S=0;else if(E===void 0&&typeof S=="string")K=S,E=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(E)?(E=E>>>0,K===void 0&&(K="utf8")):(K=E,E=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var $=this.length-S;if((E===void 0||E>$)&&(E=$),w.length>0&&(E<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");K||(K="utf8");for(var Z=!1;;)switch(K){case"hex":return W(this,w,S,E);case"utf8":case"utf-8":return _(this,w,S,E);case"ascii":case"latin1":case"binary":return Q(this,w,S,E);case"base64":return te(this,w,S,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,w,S,E);default:if(Z)throw new TypeError("Unknown encoding: "+K);K=(""+K).toLowerCase(),Z=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(M,w,S){return w===0&&S===M.length?e.fromByteArray(M):e.fromByteArray(M.slice(w,S))}function y(M,w,S){S=Math.min(M.length,S);for(var E=[],K=w;K<S;){var $=M[K],Z=null,oe=$>239?4:$>223?3:$>191?2:1;if(K+oe<=S){var ce,se,ge,Oe;switch(oe){case 1:$<128&&(Z=$);break;case 2:ce=M[K+1],(ce&192)===128&&(Oe=($&31)<<6|ce&63,Oe>127&&(Z=Oe));break;case 3:ce=M[K+1],se=M[K+2],(ce&192)===128&&(se&192)===128&&(Oe=($&15)<<12|(ce&63)<<6|se&63,Oe>2047&&(Oe<55296||Oe>57343)&&(Z=Oe));break;case 4:ce=M[K+1],se=M[K+2],ge=M[K+3],(ce&192)===128&&(se&192)===128&&(ge&192)===128&&(Oe=($&15)<<18|(ce&63)<<12|(se&63)<<6|ge&63,Oe>65535&&Oe<1114112&&(Z=Oe))}}Z===null?(Z=65533,oe=1):Z>65535&&(Z-=65536,E.push(Z>>>10&1023|55296),Z=56320|Z&1023),E.push(Z),K+=oe}return k(E)}var L=4096;function k(M){var w=M.length;if(w<=L)return String.fromCharCode.apply(String,M);for(var S="",E=0;E<w;)S+=String.fromCharCode.apply(String,M.slice(E,E+=L));return S}function F(M,w,S){var E="";S=Math.min(M.length,S);for(var K=w;K<S;++K)E+=String.fromCharCode(M[K]&127);return E}function Y(M,w,S){var E="";S=Math.min(M.length,S);for(var K=w;K<S;++K)E+=String.fromCharCode(M[K]);return E}function V(M,w,S){var E=M.length;(!w||w<0)&&(w=0),(!S||S<0||S>E)&&(S=E);for(var K="",$=w;$<S;++$)K+=q[M[$]];return K}function ie(M,w,S){for(var E=M.slice(w,S),K="",$=0;$<E.length-1;$+=2)K+=String.fromCharCode(E[$]+E[$+1]*256);return K}s.prototype.slice=function(w,S){var E=this.length;w=~~w,S=S===void 0?E:~~S,w<0?(w+=E,w<0&&(w=0)):w>E&&(w=E),S<0?(S+=E,S<0&&(S=0)):S>E&&(S=E),S<w&&(S=w);var K=this.subarray(w,S);return Object.setPrototypeOf(K,s.prototype),K};function U(M,w,S){if(M%1!==0||M<0)throw new RangeError("offset is not uint");if(M+w>S)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(w,S,E){w=w>>>0,S=S>>>0,E||U(w,S,this.length);for(var K=this[w],$=1,Z=0;++Z<S&&($*=256);)K+=this[w+Z]*$;return K},s.prototype.readUintBE=s.prototype.readUIntBE=function(w,S,E){w=w>>>0,S=S>>>0,E||U(w,S,this.length);for(var K=this[w+--S],$=1;S>0&&($*=256);)K+=this[w+--S]*$;return K},s.prototype.readUint8=s.prototype.readUInt8=function(w,S){return w=w>>>0,S||U(w,1,this.length),this[w]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(w,S){return w=w>>>0,S||U(w,2,this.length),this[w]|this[w+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(w,S){return w=w>>>0,S||U(w,2,this.length),this[w]<<8|this[w+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(w,S){return w=w>>>0,S||U(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(w,S){return w=w>>>0,S||U(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},s.prototype.readIntLE=function(w,S,E){w=w>>>0,S=S>>>0,E||U(w,S,this.length);for(var K=this[w],$=1,Z=0;++Z<S&&($*=256);)K+=this[w+Z]*$;return $*=128,K>=$&&(K-=Math.pow(2,8*S)),K},s.prototype.readIntBE=function(w,S,E){w=w>>>0,S=S>>>0,E||U(w,S,this.length);for(var K=S,$=1,Z=this[w+--K];K>0&&($*=256);)Z+=this[w+--K]*$;return $*=128,Z>=$&&(Z-=Math.pow(2,8*S)),Z},s.prototype.readInt8=function(w,S){return w=w>>>0,S||U(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},s.prototype.readInt16LE=function(w,S){w=w>>>0,S||U(w,2,this.length);var E=this[w]|this[w+1]<<8;return E&32768?E|4294901760:E},s.prototype.readInt16BE=function(w,S){w=w>>>0,S||U(w,2,this.length);var E=this[w+1]|this[w]<<8;return E&32768?E|4294901760:E},s.prototype.readInt32LE=function(w,S){return w=w>>>0,S||U(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},s.prototype.readInt32BE=function(w,S){return w=w>>>0,S||U(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},s.prototype.readFloatLE=function(w,S){return w=w>>>0,S||U(w,4,this.length),t.read(this,w,!0,23,4)},s.prototype.readFloatBE=function(w,S){return w=w>>>0,S||U(w,4,this.length),t.read(this,w,!1,23,4)},s.prototype.readDoubleLE=function(w,S){return w=w>>>0,S||U(w,8,this.length),t.read(this,w,!0,52,8)},s.prototype.readDoubleBE=function(w,S){return w=w>>>0,S||U(w,8,this.length),t.read(this,w,!1,52,8)};function N(M,w,S,E,K,$){if(!s.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>K||w<$)throw new RangeError('"value" argument is out of bounds');if(S+E>M.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(w,S,E,K){if(w=+w,S=S>>>0,E=E>>>0,!K){var $=Math.pow(2,8*E)-1;N(this,w,S,E,$,0)}var Z=1,oe=0;for(this[S]=w&255;++oe<E&&(Z*=256);)this[S+oe]=w/Z&255;return S+E},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(w,S,E,K){if(w=+w,S=S>>>0,E=E>>>0,!K){var $=Math.pow(2,8*E)-1;N(this,w,S,E,$,0)}var Z=E-1,oe=1;for(this[S+Z]=w&255;--Z>=0&&(oe*=256);)this[S+Z]=w/oe&255;return S+E},s.prototype.writeUint8=s.prototype.writeUInt8=function(w,S,E){return w=+w,S=S>>>0,E||N(this,w,S,1,255,0),this[S]=w&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(w,S,E){return w=+w,S=S>>>0,E||N(this,w,S,2,65535,0),this[S]=w&255,this[S+1]=w>>>8,S+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(w,S,E){return w=+w,S=S>>>0,E||N(this,w,S,2,65535,0),this[S]=w>>>8,this[S+1]=w&255,S+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(w,S,E){return w=+w,S=S>>>0,E||N(this,w,S,4,4294967295,0),this[S+3]=w>>>24,this[S+2]=w>>>16,this[S+1]=w>>>8,this[S]=w&255,S+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(w,S,E){return w=+w,S=S>>>0,E||N(this,w,S,4,4294967295,0),this[S]=w>>>24,this[S+1]=w>>>16,this[S+2]=w>>>8,this[S+3]=w&255,S+4},s.prototype.writeIntLE=function(w,S,E,K){if(w=+w,S=S>>>0,!K){var $=Math.pow(2,8*E-1);N(this,w,S,E,$-1,-$)}var Z=0,oe=1,ce=0;for(this[S]=w&255;++Z<E&&(oe*=256);)w<0&&ce===0&&this[S+Z-1]!==0&&(ce=1),this[S+Z]=(w/oe>>0)-ce&255;return S+E},s.prototype.writeIntBE=function(w,S,E,K){if(w=+w,S=S>>>0,!K){var $=Math.pow(2,8*E-1);N(this,w,S,E,$-1,-$)}var Z=E-1,oe=1,ce=0;for(this[S+Z]=w&255;--Z>=0&&(oe*=256);)w<0&&ce===0&&this[S+Z+1]!==0&&(ce=1),this[S+Z]=(w/oe>>0)-ce&255;return S+E},s.prototype.writeInt8=function(w,S,E){return w=+w,S=S>>>0,E||N(this,w,S,1,127,-128),w<0&&(w=255+w+1),this[S]=w&255,S+1},s.prototype.writeInt16LE=function(w,S,E){return w=+w,S=S>>>0,E||N(this,w,S,2,32767,-32768),this[S]=w&255,this[S+1]=w>>>8,S+2},s.prototype.writeInt16BE=function(w,S,E){return w=+w,S=S>>>0,E||N(this,w,S,2,32767,-32768),this[S]=w>>>8,this[S+1]=w&255,S+2},s.prototype.writeInt32LE=function(w,S,E){return w=+w,S=S>>>0,E||N(this,w,S,4,2147483647,-2147483648),this[S]=w&255,this[S+1]=w>>>8,this[S+2]=w>>>16,this[S+3]=w>>>24,S+4},s.prototype.writeInt32BE=function(w,S,E){return w=+w,S=S>>>0,E||N(this,w,S,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[S]=w>>>24,this[S+1]=w>>>16,this[S+2]=w>>>8,this[S+3]=w&255,S+4};function J(M,w,S,E,K,$){if(S+E>M.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function B(M,w,S,E,K){return w=+w,S=S>>>0,K||J(M,w,S,4),t.write(M,w,S,E,23,4),S+4}s.prototype.writeFloatLE=function(w,S,E){return B(this,w,S,!0,E)},s.prototype.writeFloatBE=function(w,S,E){return B(this,w,S,!1,E)};function re(M,w,S,E,K){return w=+w,S=S>>>0,K||J(M,w,S,8),t.write(M,w,S,E,52,8),S+8}s.prototype.writeDoubleLE=function(w,S,E){return re(this,w,S,!0,E)},s.prototype.writeDoubleBE=function(w,S,E){return re(this,w,S,!1,E)},s.prototype.copy=function(w,S,E,K){if(!s.isBuffer(w))throw new TypeError("argument should be a Buffer");if(E||(E=0),!K&&K!==0&&(K=this.length),S>=w.length&&(S=w.length),S||(S=0),K>0&&K<E&&(K=E),K===E||w.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(E<0||E>=this.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("sourceEnd out of bounds");K>this.length&&(K=this.length),w.length-S<K-E&&(K=w.length-S+E);var $=K-E;return this===w&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(S,E,K):Uint8Array.prototype.set.call(w,this.subarray(E,K),S),$},s.prototype.fill=function(w,S,E,K){if(typeof w=="string"){if(typeof S=="string"?(K=S,S=0,E=this.length):typeof E=="string"&&(K=E,E=this.length),K!==void 0&&typeof K!="string")throw new TypeError("encoding must be a string");if(typeof K=="string"&&!s.isEncoding(K))throw new TypeError("Unknown encoding: "+K);if(w.length===1){var $=w.charCodeAt(0);(K==="utf8"&&$<128||K==="latin1")&&(w=$)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));if(S<0||this.length<S||this.length<E)throw new RangeError("Out of range index");if(E<=S)return this;S=S>>>0,E=E===void 0?this.length:E>>>0,w||(w=0);var Z;if(typeof w=="number")for(Z=S;Z<E;++Z)this[Z]=w;else{var oe=s.isBuffer(w)?w:s.from(w,K),ce=oe.length;if(ce===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(Z=0;Z<E-S;++Z)this[Z+S]=oe[Z%ce]}return this};var ee=/[^+/0-9A-Za-z-_]/g;function X(M){if(M=M.split("=")[0],M=M.trim().replace(ee,""),M.length<2)return"";for(;M.length%4!==0;)M=M+"=";return M}function C(M,w){w=w||1/0;for(var S,E=M.length,K=null,$=[],Z=0;Z<E;++Z){if(S=M.charCodeAt(Z),S>55295&&S<57344){if(!K){if(S>56319){(w-=3)>-1&&$.push(239,191,189);continue}else if(Z+1===E){(w-=3)>-1&&$.push(239,191,189);continue}K=S;continue}if(S<56320){(w-=3)>-1&&$.push(239,191,189),K=S;continue}S=(K-55296<<10|S-56320)+65536}else K&&(w-=3)>-1&&$.push(239,191,189);if(K=null,S<128){if((w-=1)<0)break;$.push(S)}else if(S<2048){if((w-=2)<0)break;$.push(S>>6|192,S&63|128)}else if(S<65536){if((w-=3)<0)break;$.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((w-=4)<0)break;$.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return $}function G(M){for(var w=[],S=0;S<M.length;++S)w.push(M.charCodeAt(S)&255);return w}function z(M,w){for(var S,E,K,$=[],Z=0;Z<M.length&&!((w-=2)<0);++Z)S=M.charCodeAt(Z),E=S>>8,K=S%256,$.push(K),$.push(E);return $}function H(M){return e.toByteArray(X(M))}function j(M,w,S,E){for(var K=0;K<E&&!(K+S>=w.length||K>=M.length);++K)w[K+S]=M[K];return K}function ue(M,w){return M instanceof w||M!=null&&M.constructor!=null&&M.constructor.name!=null&&M.constructor.name===w.name}function b(M){return M!==M}var q=function(){for(var M="0123456789abcdef",w=new Array(256),S=0;S<16;++S)for(var E=S*16,K=0;K<16;++K)w[E+K]=M[S]+M[K];return w}()}(Os)),Os}var Ts={},Ps={},Es,ph;function _0(){return ph||(ph=1,Es=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==i||a.enumerable!==!0)return!1}return!0}),Es}var _s,gh;function Tc(){if(gh)return _s;gh=1;var r=_0();return _s=function(){return r()&&!!Symbol.toStringTag},_s}var Is,Rh;function Ey(){if(Rh)return Is;Rh=1;var r=typeof Symbol!="undefined"&&Symbol,e=_0();return Is=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Is}var Ns,mh;function _y(){if(mh)return Ns;mh=1;var r={foo:{}},e=Object;return Ns=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof e)},Ns}var Ms,vh;function Iy(){if(vh)return Ms;vh=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",i=function(l,c){for(var u=[],h=0;h<l.length;h+=1)u[h]=l[h];for(var d=0;d<c.length;d+=1)u[d+l.length]=c[d];return u},o=function(l,c){for(var u=[],h=c||0,d=0;h<l.length;h+=1,d+=1)u[d]=l[h];return u},a=function(s,l){for(var c="",u=0;u<s.length;u+=1)c+=s[u],u+1<s.length&&(c+=l);return c};return Ms=function(l){var c=this;if(typeof c!="function"||e.apply(c)!==n)throw new TypeError(r+c);for(var u=o(arguments,1),h,d=function(){if(this instanceof h){var R=c.apply(this,i(u,arguments));return Object(R)===R?R:this}return c.apply(l,i(u,arguments))},f=t(0,c.length-u.length),p=[],g=0;g<f;g++)p[g]="$"+g;if(h=Function("binder","return function ("+a(p,",")+"){ return binder.apply(this,arguments); }")(d),c.prototype){var v=function(){};v.prototype=c.prototype,h.prototype=new v,v.prototype=null}return h},Ms}var Ls,yh;function Pc(){if(yh)return Ls;yh=1;var r=Iy();return Ls=Function.prototype.bind||r,Ls}var Fs,wh;function Ny(){if(wh)return Fs;wh=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Pc();return Fs=t.call(r,e),Fs}var Cs,Sh;function Qi(){if(Sh)return Cs;Sh=1;var r,e=SyntaxError,t=Function,n=TypeError,i=function(O){try{return t('"use strict"; return ('+O+").constructor;")()}catch{}},o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch{o=null}var a=function(){throw new n},s=o?function(){try{return arguments.callee,a}catch{try{return o(arguments,"callee").get}catch{return a}}}():a,l=Ey()(),c=_y()(),u=Object.getPrototypeOf||(c?function(O){return O.__proto__}:null),h={},d=typeof Uint8Array=="undefined"||!u?r:u(Uint8Array),f={"%AggregateError%":typeof AggregateError=="undefined"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?r:ArrayBuffer,"%ArrayIteratorPrototype%":l&&u?u([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics=="undefined"?r:Atomics,"%BigInt%":typeof BigInt=="undefined"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?r:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?r:FinalizationRegistry,"%Function%":t,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array=="undefined"?r:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?r:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l&&u?u(u([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map=="undefined"?r:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!l||!u?r:u(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?r:Promise,"%Proxy%":typeof Proxy=="undefined"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?r:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!l||!u?r:u(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l&&u?u(""[Symbol.iterator]()):r,"%Symbol%":l?Symbol:r,"%SyntaxError%":e,"%ThrowTypeError%":s,"%TypedArray%":d,"%TypeError%":n,"%Uint8Array%":typeof Uint8Array=="undefined"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?r:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?r:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?r:WeakSet};if(u)try{null.error}catch(O){var p=u(u(O));f["%Error.prototype%"]=p}var g=function O(I){var y;if(I==="%AsyncFunction%")y=i("async function () {}");else if(I==="%GeneratorFunction%")y=i("function* () {}");else if(I==="%AsyncGeneratorFunction%")y=i("async function* () {}");else if(I==="%AsyncGenerator%"){var L=O("%AsyncGeneratorFunction%");L&&(y=L.prototype)}else if(I==="%AsyncIteratorPrototype%"){var k=O("%AsyncGenerator%");k&&u&&(y=u(k.prototype))}return f[I]=y,y},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=Pc(),m=Ny(),x=R.call(Function.call,Array.prototype.concat),T=R.call(Function.apply,Array.prototype.splice),P=R.call(Function.call,String.prototype.replace),A=R.call(Function.call,String.prototype.slice),D=R.call(Function.call,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,Q=function(I){var y=A(I,0,1),L=A(I,-1);if(y==="%"&&L!=="%")throw new e("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&y!=="%")throw new e("invalid intrinsic syntax, expected opening `%`");var k=[];return P(I,W,function(F,Y,V,ie){k[k.length]=V?P(ie,_,"$1"):Y||F}),k},te=function(I,y){var L=I,k;if(m(v,L)&&(k=v[L],L="%"+k[0]+"%"),m(f,L)){var F=f[L];if(F===h&&(F=g(L)),typeof F=="undefined"&&!y)throw new n("intrinsic "+I+" exists, but is not available. Please file an issue!");return{alias:k,name:L,value:F}}throw new e("intrinsic "+I+" does not exist!")};return Cs=function(I,y){if(typeof I!="string"||I.length===0)throw new n("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof y!="boolean")throw new n('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,I)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=Q(I),k=L.length>0?L[0]:"",F=te("%"+k+"%",y),Y=F.name,V=F.value,ie=!1,U=F.alias;U&&(k=U[0],T(L,x([0,1],U)));for(var N=1,J=!0;N<L.length;N+=1){var B=L[N],re=A(B,0,1),ee=A(B,-1);if((re==='"'||re==="'"||re==="`"||ee==='"'||ee==="'"||ee==="`")&&re!==ee)throw new e("property names with quotes must have matching quotes");if((B==="constructor"||!J)&&(ie=!0),k+="."+B,Y="%"+k+"%",m(f,Y))V=f[Y];else if(V!=null){if(!(B in V)){if(!y)throw new n("base intrinsic for "+I+" exists, but the property is not available.");return}if(o&&N+1>=L.length){var X=o(V,B);J=!!X,J&&"get"in X&&!("originalValue"in X.get)?V=X.get:V=V[B]}else J=m(V,B),V=V[B];J&&!ie&&(f[Y]=V)}}return V},Cs}var As={exports:{}},Ds,xh;function I0(){if(xh)return Ds;xh=1;var r=Qi(),e=r("%Object.defineProperty%",!0),t=function(){if(e)try{return e({},"a",{value:1}),!0}catch{return!1}return!1};return t.hasArrayLengthDefineBug=function(){if(!t())return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Ds=t,Ds}var Xs,bh;function Ec(){if(bh)return Xs;bh=1;var r=Qi(),e=r("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch{e=null}return Xs=e,Xs}var Us,Oh;function My(){if(Oh)return Us;Oh=1;var r=I0()(),e=Qi(),t=r&&e("%Object.defineProperty%",!0);if(t)try{t({},"a",{value:1})}catch{t=!1}var n=e("%SyntaxError%"),i=e("%TypeError%"),o=Ec();return Us=function(s,l,c){if(!s||typeof s!="object"&&typeof s!="function")throw new i("`obj` must be an object or a function`");if(typeof l!="string"&&typeof l!="symbol")throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,p=!!o&&o(s,l);if(t)t(s,l,{configurable:d===null&&p?p.configurable:!d,enumerable:u===null&&p?p.enumerable:!u,value:c,writable:h===null&&p?p.writable:!h});else if(f||!u&&!h&&!d)s[l]=c;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Us}var Ws,Th;function Ly(){if(Th)return Ws;Th=1;var r=Qi(),e=My(),t=I0()(),n=Ec(),i=r("%TypeError%"),o=r("%Math.floor%");return Ws=function(s,l){if(typeof s!="function")throw new i("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||o(l)!==l)throw new i("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],u=!0,h=!0;if("length"in s&&n){var d=n(s,"length");d&&!d.configurable&&(u=!1),d&&!d.writable&&(h=!1)}return(u||h||!c)&&(t?e(s,"length",l,!0,!0):e(s,"length",l)),s},Ws}var Ph;function N0(){return Ph||(Ph=1,function(r){var e=Pc(),t=Qi(),n=Ly(),i=t("%TypeError%"),o=t("%Function.prototype.apply%"),a=t("%Function.prototype.call%"),s=t("%Reflect.apply%",!0)||e.call(a,o),l=t("%Object.defineProperty%",!0),c=t("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}r.exports=function(d){if(typeof d!="function")throw new i("a function is required");var f=s(e,a,arguments);return n(f,1+c(0,d.length-(arguments.length-1)),!0)};var u=function(){return s(e,o,arguments)};l?l(r.exports,"apply",{value:u}):r.exports.apply=u}(As)),As.exports}var Vs,Eh;function M0(){if(Eh)return Vs;Eh=1;var r=Qi(),e=N0(),t=e(r("String.prototype.indexOf"));return Vs=function(i,o){var a=r(i,!!o);return typeof a=="function"&&t(i,".prototype.")>-1?e(a):a},Vs}var Ys,_h;function Fy(){if(_h)return Ys;_h=1;var r=Tc()(),e=M0(),t=e("Object.prototype.toString"),n=function(s){return r&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:t(s)==="[object Arguments]"},i=function(s){return n(s)?!0:s!==null&&typeof s=="object"&&typeof s.length=="number"&&s.length>=0&&t(s)!=="[object Array]"&&t(s.callee)==="[object Function]"},o=function(){return n(arguments)}();return n.isLegacyArguments=i,Ys=o?n:i,Ys}var ks,Ih;function Cy(){if(Ih)return ks;Ih=1;var r=Object.prototype.toString,e=Function.prototype.toString,t=/^\s*(?:function)?\*/,n=Tc()(),i=Object.getPrototypeOf,o=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},a;return ks=function(l){if(typeof l!="function")return!1;if(t.test(e.call(l)))return!0;if(!n){var c=r.call(l);return c==="[object GeneratorFunction]"}if(!i)return!1;if(typeof a=="undefined"){var u=o();a=u?i(u):!1}return i(l)===a},ks}var Zs,Nh;function Ay(){if(Nh)return Zs;Nh=1;var r=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,n;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},e(function(){throw 42},null,t)}catch(m){m!==n&&(e=null)}else e=null;var i=/^\s*class\b/,o=function(x){try{var T=r.call(x);return i.test(T)}catch{return!1}},a=function(x){try{return o(x)?!1:(r.call(x),!0)}catch{return!1}},s=Object.prototype.toString,l="[object Object]",c="[object Function]",u="[object GeneratorFunction]",h="[object HTMLAllCollection]",d="[object HTML document.all class]",f="[object HTMLCollection]",p=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),v=function(){return!1};if(typeof document=="object"){var R=document.all;s.call(R)===s.call(document.all)&&(v=function(x){if((g||!x)&&(typeof x=="undefined"||typeof x=="object"))try{var T=s.call(x);return(T===h||T===d||T===f||T===l)&&x("")==null}catch{}return!1})}return Zs=e?function(x){if(v(x))return!0;if(!x||typeof x!="function"&&typeof x!="object")return!1;try{e(x,null,t)}catch(T){if(T!==n)return!1}return!o(x)&&a(x)}:function(x){if(v(x))return!0;if(!x||typeof x!="function"&&typeof x!="object")return!1;if(p)return a(x);if(o(x))return!1;var T=s.call(x);return T!==c&&T!==u&&!/^\[object HTML/.test(T)?!1:a(x)},Zs}var Qs,Mh;function Dy(){if(Mh)return Qs;Mh=1;var r=Ay(),e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=function(l,c,u){for(var h=0,d=l.length;h<d;h++)t.call(l,h)&&(u==null?c(l[h],h,l):c.call(u,l[h],h,l))},i=function(l,c,u){for(var h=0,d=l.length;h<d;h++)u==null?c(l.charAt(h),h,l):c.call(u,l.charAt(h),h,l)},o=function(l,c,u){for(var h in l)t.call(l,h)&&(u==null?c(l[h],h,l):c.call(u,l[h],h,l))},a=function(l,c,u){if(!r(c))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=u),e.call(l)==="[object Array]"?n(l,c,h):typeof l=="string"?i(l,c,h):o(l,c,h)};return Qs=a,Qs}var Ks,Lh;function Xy(){if(Lh)return Ks;Lh=1;var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e=typeof globalThis=="undefined"?an:globalThis;return Ks=function(){for(var n=[],i=0;i<r.length;i++)typeof e[r[i]]=="function"&&(n[n.length]=r[i]);return n},Ks}var Hs,Fh;function L0(){if(Fh)return Hs;Fh=1;var r=Dy(),e=Xy(),t=N0(),n=M0(),i=Ec(),o=n("Object.prototype.toString"),a=Tc()(),s=typeof globalThis=="undefined"?an:globalThis,l=e(),c=n("String.prototype.slice"),u=Object.getPrototypeOf,h=n("Array.prototype.indexOf",!0)||function(v,R){for(var m=0;m<v.length;m+=1)if(v[m]===R)return m;return-1},d={__proto__:null};a&&i&&u?r(l,function(g){var v=new s[g];if(Symbol.toStringTag in v){var R=u(v),m=i(R,Symbol.toStringTag);if(!m){var x=u(R);m=i(x,Symbol.toStringTag)}d["$"+g]=t(m.get)}}):r(l,function(g){var v=new s[g],R=v.slice||v.set;R&&(d["$"+g]=t(R))});var f=function(v){var R=!1;return r(d,function(m,x){if(!R)try{"$"+m(v)===x&&(R=c(x,1))}catch{}}),R},p=function(v){var R=!1;return r(d,function(m,x){if(!R)try{m(v),R=c(x,1)}catch{}}),R};return Hs=function(v){if(!v||typeof v!="object")return!1;if(!a){var R=c(o(v),8,-1);return h(l,R)>-1?R:R!=="Object"?!1:p(v)}return i?f(v):null},Hs}var Bs,Ch;function Uy(){if(Ch)return Bs;Ch=1;var r=L0();return Bs=function(t){return!!r(t)},Bs}var Ah;function Wy(){return Ah||(Ah=1,function(r){var e=Fy(),t=Cy(),n=L0(),i=Uy();function o(E){return E.call.bind(E)}var a=typeof BigInt!="undefined",s=typeof Symbol!="undefined",l=o(Object.prototype.toString),c=o(Number.prototype.valueOf),u=o(String.prototype.valueOf),h=o(Boolean.prototype.valueOf);if(a)var d=o(BigInt.prototype.valueOf);if(s)var f=o(Symbol.prototype.valueOf);function p(E,K){if(typeof E!="object")return!1;try{return K(E),!0}catch{return!1}}r.isArgumentsObject=e,r.isGeneratorFunction=t,r.isTypedArray=i;function g(E){return typeof Promise!="undefined"&&E instanceof Promise||E!==null&&typeof E=="object"&&typeof E.then=="function"&&typeof E.catch=="function"}r.isPromise=g;function v(E){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(E):i(E)||J(E)}r.isArrayBufferView=v;function R(E){return n(E)==="Uint8Array"}r.isUint8Array=R;function m(E){return n(E)==="Uint8ClampedArray"}r.isUint8ClampedArray=m;function x(E){return n(E)==="Uint16Array"}r.isUint16Array=x;function T(E){return n(E)==="Uint32Array"}r.isUint32Array=T;function P(E){return n(E)==="Int8Array"}r.isInt8Array=P;function A(E){return n(E)==="Int16Array"}r.isInt16Array=A;function D(E){return n(E)==="Int32Array"}r.isInt32Array=D;function W(E){return n(E)==="Float32Array"}r.isFloat32Array=W;function _(E){return n(E)==="Float64Array"}r.isFloat64Array=_;function Q(E){return n(E)==="BigInt64Array"}r.isBigInt64Array=Q;function te(E){return n(E)==="BigUint64Array"}r.isBigUint64Array=te;function O(E){return l(E)==="[object Map]"}O.working=typeof Map!="undefined"&&O(new Map);function I(E){return typeof Map=="undefined"?!1:O.working?O(E):E instanceof Map}r.isMap=I;function y(E){return l(E)==="[object Set]"}y.working=typeof Set!="undefined"&&y(new Set);function L(E){return typeof Set=="undefined"?!1:y.working?y(E):E instanceof Set}r.isSet=L;function k(E){return l(E)==="[object WeakMap]"}k.working=typeof WeakMap!="undefined"&&k(new WeakMap);function F(E){return typeof WeakMap=="undefined"?!1:k.working?k(E):E instanceof WeakMap}r.isWeakMap=F;function Y(E){return l(E)==="[object WeakSet]"}Y.working=typeof WeakSet!="undefined"&&Y(new WeakSet);function V(E){return Y(E)}r.isWeakSet=V;function ie(E){return l(E)==="[object ArrayBuffer]"}ie.working=typeof ArrayBuffer!="undefined"&&ie(new ArrayBuffer);function U(E){return typeof ArrayBuffer=="undefined"?!1:ie.working?ie(E):E instanceof ArrayBuffer}r.isArrayBuffer=U;function N(E){return l(E)==="[object DataView]"}N.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&N(new DataView(new ArrayBuffer(1),0,1));function J(E){return typeof DataView=="undefined"?!1:N.working?N(E):E instanceof DataView}r.isDataView=J;var B=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function re(E){return l(E)==="[object SharedArrayBuffer]"}function ee(E){return typeof B=="undefined"?!1:(typeof re.working=="undefined"&&(re.working=re(new B)),re.working?re(E):E instanceof B)}r.isSharedArrayBuffer=ee;function X(E){return l(E)==="[object AsyncFunction]"}r.isAsyncFunction=X;function C(E){return l(E)==="[object Map Iterator]"}r.isMapIterator=C;function G(E){return l(E)==="[object Set Iterator]"}r.isSetIterator=G;function z(E){return l(E)==="[object Generator]"}r.isGeneratorObject=z;function H(E){return l(E)==="[object WebAssembly.Module]"}r.isWebAssemblyCompiledModule=H;function j(E){return p(E,c)}r.isNumberObject=j;function ue(E){return p(E,u)}r.isStringObject=ue;function b(E){return p(E,h)}r.isBooleanObject=b;function q(E){return a&&p(E,d)}r.isBigIntObject=q;function M(E){return s&&p(E,f)}r.isSymbolObject=M;function w(E){return j(E)||ue(E)||b(E)||q(E)||M(E)}r.isBoxedPrimitive=w;function S(E){return typeof Uint8Array!="undefined"&&(U(E)||ee(E))}r.isAnyArrayBuffer=S,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(E){Object.defineProperty(r,E,{enumerable:!1,value:function(){throw new Error(E+" is not supported in userland")}})})}(Ps)),Ps}var Gs,Dh;function Vy(){return Dh||(Dh=1,Gs=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),Gs}var Xh;function F0(){return Xh||(Xh=1,function(r){var e=Object.getOwnPropertyDescriptors||function(J){for(var B=Object.keys(J),re={},ee=0;ee<B.length;ee++)re[B[ee]]=Object.getOwnPropertyDescriptor(J,B[ee]);return re},t=/%[sdj%]/g;r.format=function(N){if(!P(N)){for(var J=[],B=0;B<arguments.length;B++)J.push(a(arguments[B]));return J.join(" ")}for(var B=1,re=arguments,ee=re.length,X=String(N).replace(t,function(G){if(G==="%%")return"%";if(B>=ee)return G;switch(G){case"%s":return String(re[B++]);case"%d":return Number(re[B++]);case"%j":try{return JSON.stringify(re[B++])}catch{return"[Circular]"}default:return G}}),C=re[B];B<ee;C=re[++B])m(C)||!_(C)?X+=" "+C:X+=" "+a(C);return X},r.deprecate=function(N,J){if(typeof ke!="undefined"&&ke.noDeprecation===!0)return N;if(typeof ke=="undefined")return function(){return r.deprecate(N,J).apply(this,arguments)};var B=!1;function re(){if(!B){if(ke.throwDeprecation)throw new Error(J);ke.traceDeprecation?console.trace(J):console.error(J),B=!0}return N.apply(this,arguments)}return re};var n={},i=/^$/;if(ke.env.NODE_DEBUG){var o=ke.env.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+o+"$","i")}r.debuglog=function(N){if(N=N.toUpperCase(),!n[N])if(i.test(N)){var J=ke.pid;n[N]=function(){var B=r.format.apply(r,arguments);console.error("%s %d: %s",N,J,B)}}else n[N]=function(){};return n[N]};function a(N,J){var B={seen:[],stylize:l};return arguments.length>=3&&(B.depth=arguments[2]),arguments.length>=4&&(B.colors=arguments[3]),R(J)?B.showHidden=J:J&&r._extend(B,J),D(B.showHidden)&&(B.showHidden=!1),D(B.depth)&&(B.depth=2),D(B.colors)&&(B.colors=!1),D(B.customInspect)&&(B.customInspect=!0),B.colors&&(B.stylize=s),u(B,N,B.depth)}r.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(N,J){var B=a.styles[J];return B?"\x1B["+a.colors[B][0]+"m"+N+"\x1B["+a.colors[B][1]+"m":N}function l(N,J){return N}function c(N){var J={};return N.forEach(function(B,re){J[B]=!0}),J}function u(N,J,B){if(N.customInspect&&J&&O(J.inspect)&&J.inspect!==r.inspect&&!(J.constructor&&J.constructor.prototype===J)){var re=J.inspect(B,N);return P(re)||(re=u(N,re,B)),re}var ee=h(N,J);if(ee)return ee;var X=Object.keys(J),C=c(X);if(N.showHidden&&(X=Object.getOwnPropertyNames(J)),te(J)&&(X.indexOf("message")>=0||X.indexOf("description")>=0))return d(J);if(X.length===0){if(O(J)){var G=J.name?": "+J.name:"";return N.stylize("[Function"+G+"]","special")}if(W(J))return N.stylize(RegExp.prototype.toString.call(J),"regexp");if(Q(J))return N.stylize(Date.prototype.toString.call(J),"date");if(te(J))return d(J)}var z="",H=!1,j=["{","}"];if(v(J)&&(H=!0,j=["[","]"]),O(J)){var ue=J.name?": "+J.name:"";z=" [Function"+ue+"]"}if(W(J)&&(z=" "+RegExp.prototype.toString.call(J)),Q(J)&&(z=" "+Date.prototype.toUTCString.call(J)),te(J)&&(z=" "+d(J)),X.length===0&&(!H||J.length==0))return j[0]+z+j[1];if(B<0)return W(J)?N.stylize(RegExp.prototype.toString.call(J),"regexp"):N.stylize("[Object]","special");N.seen.push(J);var b;return H?b=f(N,J,B,C,X):b=X.map(function(q){return p(N,J,B,C,q,H)}),N.seen.pop(),g(b,z,j)}function h(N,J){if(D(J))return N.stylize("undefined","undefined");if(P(J)){var B="'"+JSON.stringify(J).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return N.stylize(B,"string")}if(T(J))return N.stylize(""+J,"number");if(R(J))return N.stylize(""+J,"boolean");if(m(J))return N.stylize("null","null")}function d(N){return"["+Error.prototype.toString.call(N)+"]"}function f(N,J,B,re,ee){for(var X=[],C=0,G=J.length;C<G;++C)Y(J,String(C))?X.push(p(N,J,B,re,String(C),!0)):X.push("");return ee.forEach(function(z){z.match(/^\d+$/)||X.push(p(N,J,B,re,z,!0))}),X}function p(N,J,B,re,ee,X){var C,G,z;if(z=Object.getOwnPropertyDescriptor(J,ee)||{value:J[ee]},z.get?z.set?G=N.stylize("[Getter/Setter]","special"):G=N.stylize("[Getter]","special"):z.set&&(G=N.stylize("[Setter]","special")),Y(re,ee)||(C="["+ee+"]"),G||(N.seen.indexOf(z.value)<0?(m(B)?G=u(N,z.value,null):G=u(N,z.value,B-1),G.indexOf(`
|
|
`)>-1&&(X?G=G.split(`
|
|
`).map(function(H){return" "+H}).join(`
|
|
`).slice(2):G=`
|
|
`+G.split(`
|
|
`).map(function(H){return" "+H}).join(`
|
|
`))):G=N.stylize("[Circular]","special")),D(C)){if(X&&ee.match(/^\d+$/))return G;C=JSON.stringify(""+ee),C.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(C=C.slice(1,-1),C=N.stylize(C,"name")):(C=C.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),C=N.stylize(C,"string"))}return C+": "+G}function g(N,J,B){var re=N.reduce(function(ee,X){return X.indexOf(`
|
|
`)>=0,ee+X.replace(/\u001b\[\d\d?m/g,"").length+1},0);return re>60?B[0]+(J===""?"":J+`
|
|
`)+" "+N.join(`,
|
|
`)+" "+B[1]:B[0]+J+" "+N.join(", ")+" "+B[1]}r.types=Wy();function v(N){return Array.isArray(N)}r.isArray=v;function R(N){return typeof N=="boolean"}r.isBoolean=R;function m(N){return N===null}r.isNull=m;function x(N){return N==null}r.isNullOrUndefined=x;function T(N){return typeof N=="number"}r.isNumber=T;function P(N){return typeof N=="string"}r.isString=P;function A(N){return typeof N=="symbol"}r.isSymbol=A;function D(N){return N===void 0}r.isUndefined=D;function W(N){return _(N)&&y(N)==="[object RegExp]"}r.isRegExp=W,r.types.isRegExp=W;function _(N){return typeof N=="object"&&N!==null}r.isObject=_;function Q(N){return _(N)&&y(N)==="[object Date]"}r.isDate=Q,r.types.isDate=Q;function te(N){return _(N)&&(y(N)==="[object Error]"||N instanceof Error)}r.isError=te,r.types.isNativeError=te;function O(N){return typeof N=="function"}r.isFunction=O;function I(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||typeof N=="undefined"}r.isPrimitive=I,r.isBuffer=Vy();function y(N){return Object.prototype.toString.call(N)}function L(N){return N<10?"0"+N.toString(10):N.toString(10)}var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(){var N=new Date,J=[L(N.getHours()),L(N.getMinutes()),L(N.getSeconds())].join(":");return[N.getDate(),k[N.getMonth()],J].join(" ")}r.log=function(){console.log("%s - %s",F(),r.format.apply(r,arguments))},r.inherits=ni,r._extend=function(N,J){if(!J||!_(J))return N;for(var B=Object.keys(J),re=B.length;re--;)N[B[re]]=J[B[re]];return N};function Y(N,J){return Object.prototype.hasOwnProperty.call(N,J)}var V=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;r.promisify=function(J){if(typeof J!="function")throw new TypeError('The "original" argument must be of type Function');if(V&&J[V]){var B=J[V];if(typeof B!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(B,V,{value:B,enumerable:!1,writable:!1,configurable:!0}),B}function B(){for(var re,ee,X=new Promise(function(z,H){re=z,ee=H}),C=[],G=0;G<arguments.length;G++)C.push(arguments[G]);C.push(function(z,H){z?ee(z):re(H)});try{J.apply(this,C)}catch(z){ee(z)}return X}return Object.setPrototypeOf(B,Object.getPrototypeOf(J)),V&&Object.defineProperty(B,V,{value:B,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(B,e(J))},r.promisify.custom=V;function ie(N,J){if(!N){var B=new Error("Promise was rejected with a falsy value");B.reason=N,N=B}return J(N)}function U(N){if(typeof N!="function")throw new TypeError('The "original" argument must be of type Function');function J(){for(var B=[],re=0;re<arguments.length;re++)B.push(arguments[re]);var ee=B.pop();if(typeof ee!="function")throw new TypeError("The last argument must be of type Function");var X=this,C=function(){return ee.apply(X,arguments)};N.apply(this,B).then(function(G){ke.nextTick(C.bind(null,null,G))},function(G){ke.nextTick(ie.bind(null,G,C))})}return Object.setPrototypeOf(J,Object.getPrototypeOf(N)),Object.defineProperties(J,e(N)),J}r.callbackify=U}(Ts)),Ts}var Js,Uh;function Yy(){if(Uh)return Js;Uh=1;function r(d,f){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);f&&(g=g.filter(function(v){return Object.getOwnPropertyDescriptor(d,v).enumerable})),p.push.apply(p,g)}return p}function e(d){for(var f=1;f<arguments.length;f++){var p=arguments[f]!=null?arguments[f]:{};f%2?r(Object(p),!0).forEach(function(g){t(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):r(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function t(d,f,p){return f in d?Object.defineProperty(d,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[f]=p,d}function n(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function i(d,f){for(var p=0;p<f.length;p++){var g=f[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function o(d,f,p){return f&&i(d.prototype,f),p&&i(d,p),d}var a=Ja(),s=a.Buffer,l=F0(),c=l.inspect,u=c&&c.custom||"inspect";function h(d,f,p){s.prototype.copy.call(d,f,p)}return Js=function(){function d(){n(this,d),this.head=null,this.tail=null,this.length=0}return o(d,[{key:"push",value:function(p){var g={data:p,next:null};this.length>0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(p){var g={data:p,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var p=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,p}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(p){if(this.length===0)return"";for(var g=this.head,v=""+g.data;g=g.next;)v+=p+g.data;return v}},{key:"concat",value:function(p){if(this.length===0)return s.alloc(0);for(var g=s.allocUnsafe(p>>>0),v=this.head,R=0;v;)h(v.data,g,R),R+=v.data.length,v=v.next;return g}},{key:"consume",value:function(p,g){var v;return p<this.head.data.length?(v=this.head.data.slice(0,p),this.head.data=this.head.data.slice(p)):p===this.head.data.length?v=this.shift():v=g?this._getString(p):this._getBuffer(p),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(p){var g=this.head,v=1,R=g.data;for(p-=R.length;g=g.next;){var m=g.data,x=p>m.length?m.length:p;if(x===m.length?R+=m:R+=m.slice(0,p),p-=x,p===0){x===m.length?(++v,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=m.slice(x));break}++v}return this.length-=v,R}},{key:"_getBuffer",value:function(p){var g=s.allocUnsafe(p),v=this.head,R=1;for(v.data.copy(g),p-=v.data.length;v=v.next;){var m=v.data,x=p>m.length?m.length:p;if(m.copy(g,g.length-p,0,x),p-=x,p===0){x===m.length?(++R,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=m.slice(x));break}++R}return this.length-=R,g}},{key:u,value:function(p,g){return c(this,e({},g,{depth:0,customInspect:!1}))}}]),d}(),Js}var zs,Wh;function C0(){if(Wh)return zs;Wh=1;function r(a,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ke.nextTick(i,this,a)):ke.nextTick(i,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(h){!s&&h?l._writableState?l._writableState.errorEmitted?ke.nextTick(t,l):(l._writableState.errorEmitted=!0,ke.nextTick(e,l,h)):ke.nextTick(e,l,h):s?(ke.nextTick(t,l),s(h)):ke.nextTick(t,l)}),this)}function e(a,s){i(a,s),t(a)}function t(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(a,s){a.emit("error",s)}function o(a,s){var l=a._readableState,c=a._writableState;l&&l.autoDestroy||c&&c.autoDestroy?a.destroy(s):a.emit("error",s)}return zs={destroy:r,undestroy:n,errorOrDestroy:o},zs}var $s={},Vh;function Ki(){if(Vh)return $s;Vh=1;function r(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var e={};function t(s,l,c){c||(c=Error);function u(d,f,p){return typeof l=="string"?l:l(d,f,p)}var h=function(d){r(f,d);function f(p,g,v){return d.call(this,u(p,g,v))||this}return f}(c);h.prototype.name=c.name,h.prototype.code=s,e[s]=h}function n(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(u){return String(u)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function i(s,l,c){return s.substr(!c||c<0?0:+c,l.length)===l}function o(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function a(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return t("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&i(l,"not ")?(u="must not be",l=l.replace(/^not /,"")):u="must be";var h;if(o(s," argument"))h="The ".concat(s," ").concat(u," ").concat(n(l,"type"));else{var d=a(s,".")?"property":"argument";h='The "'.concat(s,'" ').concat(d," ").concat(u," ").concat(n(l,"type"))}return h+=". Received type ".concat(typeof c),h},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),$s.codes=e,$s}var js,Yh;function A0(){if(Yh)return js;Yh=1;var r=Ki().codes.ERR_INVALID_OPT_VALUE;function e(n,i,o){return n.highWaterMark!=null?n.highWaterMark:i?n[o]:null}function t(n,i,o,a){var s=e(i,a,o);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=a?o:"highWaterMark";throw new r(l,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return js={getHighWaterMark:t},js}var qs,kh;function ky(){if(kh)return qs;kh=1,qs=r;function r(t,n){if(e("noDeprecation"))return t;var i=!1;function o(){if(!i){if(e("throwDeprecation"))throw new Error(n);e("traceDeprecation")?console.trace(n):console.warn(n),i=!0}return t.apply(this,arguments)}return o}function e(t){try{if(!an.localStorage)return!1}catch{return!1}var n=an.localStorage[t];return n==null?!1:String(n).toLowerCase()==="true"}return qs}var el,Zh;function D0(){if(Zh)return el;Zh=1,el=W;function r(ee){var X=this;this.next=null,this.entry=null,this.finish=function(){re(X,ee)}}var e;W.WritableState=A;var t={deprecate:ky()},n=E0(),i=Ja().Buffer,o=an.Uint8Array||function(){};function a(ee){return i.from(ee)}function s(ee){return i.isBuffer(ee)||ee instanceof o}var l=C0(),c=A0(),u=c.getHighWaterMark,h=Ki().codes,d=h.ERR_INVALID_ARG_TYPE,f=h.ERR_METHOD_NOT_IMPLEMENTED,p=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,R=h.ERR_STREAM_NULL_VALUES,m=h.ERR_STREAM_WRITE_AFTER_END,x=h.ERR_UNKNOWN_ENCODING,T=l.errorOrDestroy;ni(W,n);function P(){}function A(ee,X,C){e=e||Xi(),ee=ee||{},typeof C!="boolean"&&(C=X instanceof e),this.objectMode=!!ee.objectMode,C&&(this.objectMode=this.objectMode||!!ee.writableObjectMode),this.highWaterMark=u(this,ee,"writableHighWaterMark",C),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var G=ee.decodeStrings===!1;this.decodeStrings=!G,this.defaultEncoding=ee.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(z){k(X,z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=ee.emitClose!==!1,this.autoDestroy=!!ee.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}A.prototype.getBuffer=function(){for(var X=this.bufferedRequest,C=[];X;)C.push(X),X=X.next;return C},function(){try{Object.defineProperty(A.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var D;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(D=Function.prototype[Symbol.hasInstance],Object.defineProperty(W,Symbol.hasInstance,{value:function(X){return D.call(this,X)?!0:this!==W?!1:X&&X._writableState instanceof A}})):D=function(X){return X instanceof this};function W(ee){e=e||Xi();var X=this instanceof e;if(!X&&!D.call(W,this))return new W(ee);this._writableState=new A(ee,this,X),this.writable=!0,ee&&(typeof ee.write=="function"&&(this._write=ee.write),typeof ee.writev=="function"&&(this._writev=ee.writev),typeof ee.destroy=="function"&&(this._destroy=ee.destroy),typeof ee.final=="function"&&(this._final=ee.final)),n.call(this)}W.prototype.pipe=function(){T(this,new g)};function _(ee,X){var C=new m;T(ee,C),ke.nextTick(X,C)}function Q(ee,X,C,G){var z;return C===null?z=new R:typeof C!="string"&&!X.objectMode&&(z=new d("chunk",["string","Buffer"],C)),z?(T(ee,z),ke.nextTick(G,z),!1):!0}W.prototype.write=function(ee,X,C){var G=this._writableState,z=!1,H=!G.objectMode&&s(ee);return H&&!i.isBuffer(ee)&&(ee=a(ee)),typeof X=="function"&&(C=X,X=null),H?X="buffer":X||(X=G.defaultEncoding),typeof C!="function"&&(C=P),G.ending?_(this,C):(H||Q(this,G,ee,C))&&(G.pendingcb++,z=O(this,G,H,ee,X,C)),z},W.prototype.cork=function(){this._writableState.corked++},W.prototype.uncork=function(){var ee=this._writableState;ee.corked&&(ee.corked--,!ee.writing&&!ee.corked&&!ee.bufferProcessing&&ee.bufferedRequest&&V(this,ee))},W.prototype.setDefaultEncoding=function(X){if(typeof X=="string"&&(X=X.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((X+"").toLowerCase())>-1))throw new x(X);return this._writableState.defaultEncoding=X,this},Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function te(ee,X,C){return!ee.objectMode&&ee.decodeStrings!==!1&&typeof X=="string"&&(X=i.from(X,C)),X}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function O(ee,X,C,G,z,H){if(!C){var j=te(X,G,z);G!==j&&(C=!0,z="buffer",G=j)}var ue=X.objectMode?1:G.length;X.length+=ue;var b=X.length<X.highWaterMark;if(b||(X.needDrain=!0),X.writing||X.corked){var q=X.lastBufferedRequest;X.lastBufferedRequest={chunk:G,encoding:z,isBuf:C,callback:H,next:null},q?q.next=X.lastBufferedRequest:X.bufferedRequest=X.lastBufferedRequest,X.bufferedRequestCount+=1}else I(ee,X,!1,ue,G,z,H);return b}function I(ee,X,C,G,z,H,j){X.writelen=G,X.writecb=j,X.writing=!0,X.sync=!0,X.destroyed?X.onwrite(new v("write")):C?ee._writev(z,X.onwrite):ee._write(z,H,X.onwrite),X.sync=!1}function y(ee,X,C,G,z){--X.pendingcb,C?(ke.nextTick(z,G),ke.nextTick(J,ee,X),ee._writableState.errorEmitted=!0,T(ee,G)):(z(G),ee._writableState.errorEmitted=!0,T(ee,G),J(ee,X))}function L(ee){ee.writing=!1,ee.writecb=null,ee.length-=ee.writelen,ee.writelen=0}function k(ee,X){var C=ee._writableState,G=C.sync,z=C.writecb;if(typeof z!="function")throw new p;if(L(C),X)y(ee,C,G,X,z);else{var H=ie(C)||ee.destroyed;!H&&!C.corked&&!C.bufferProcessing&&C.bufferedRequest&&V(ee,C),G?ke.nextTick(F,ee,C,H,z):F(ee,C,H,z)}}function F(ee,X,C,G){C||Y(ee,X),X.pendingcb--,G(),J(ee,X)}function Y(ee,X){X.length===0&&X.needDrain&&(X.needDrain=!1,ee.emit("drain"))}function V(ee,X){X.bufferProcessing=!0;var C=X.bufferedRequest;if(ee._writev&&C&&C.next){var G=X.bufferedRequestCount,z=new Array(G),H=X.corkedRequestsFree;H.entry=C;for(var j=0,ue=!0;C;)z[j]=C,C.isBuf||(ue=!1),C=C.next,j+=1;z.allBuffers=ue,I(ee,X,!0,X.length,z,"",H.finish),X.pendingcb++,X.lastBufferedRequest=null,H.next?(X.corkedRequestsFree=H.next,H.next=null):X.corkedRequestsFree=new r(X),X.bufferedRequestCount=0}else{for(;C;){var b=C.chunk,q=C.encoding,M=C.callback,w=X.objectMode?1:b.length;if(I(ee,X,!1,w,b,q,M),C=C.next,X.bufferedRequestCount--,X.writing)break}C===null&&(X.lastBufferedRequest=null)}X.bufferedRequest=C,X.bufferProcessing=!1}W.prototype._write=function(ee,X,C){C(new f("_write()"))},W.prototype._writev=null,W.prototype.end=function(ee,X,C){var G=this._writableState;return typeof ee=="function"?(C=ee,ee=null,X=null):typeof X=="function"&&(C=X,X=null),ee!=null&&this.write(ee,X),G.corked&&(G.corked=1,this.uncork()),G.ending||B(this,G,C),this},Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ie(ee){return ee.ending&&ee.length===0&&ee.bufferedRequest===null&&!ee.finished&&!ee.writing}function U(ee,X){ee._final(function(C){X.pendingcb--,C&&T(ee,C),X.prefinished=!0,ee.emit("prefinish"),J(ee,X)})}function N(ee,X){!X.prefinished&&!X.finalCalled&&(typeof ee._final=="function"&&!X.destroyed?(X.pendingcb++,X.finalCalled=!0,ke.nextTick(U,ee,X)):(X.prefinished=!0,ee.emit("prefinish")))}function J(ee,X){var C=ie(X);if(C&&(N(ee,X),X.pendingcb===0&&(X.finished=!0,ee.emit("finish"),X.autoDestroy))){var G=ee._readableState;(!G||G.autoDestroy&&G.endEmitted)&&ee.destroy()}return C}function B(ee,X,C){X.ending=!0,J(ee,X),C&&(X.finished?ke.nextTick(C):ee.once("finish",C)),X.ended=!0,ee.writable=!1}function re(ee,X,C){var G=ee.entry;for(ee.entry=null;G;){var z=G.callback;X.pendingcb--,z(C),G=G.next}X.corkedRequestsFree.next=ee}return Object.defineProperty(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(X){!this._writableState||(this._writableState.destroyed=X)}}),W.prototype.destroy=l.destroy,W.prototype._undestroy=l.undestroy,W.prototype._destroy=function(ee,X){X(ee)},el}var tl,Qh;function Xi(){if(Qh)return tl;Qh=1;var r=Object.keys||function(c){var u=[];for(var h in c)u.push(h);return u};tl=a;var e=X0(),t=D0();ni(a,e);for(var n=r(t.prototype),i=0;i<n.length;i++){var o=n[i];a.prototype[o]||(a.prototype[o]=t.prototype[o])}function a(c){if(!(this instanceof a))return new a(c);e.call(this,c),t.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||ke.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),tl}var rl={},ea={exports:{}},Kh;function Zy(){return Kh||(Kh=1,function(r,e){var t=Ja(),n=t.Buffer;function i(a,s){for(var l in a)s[l]=a[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?r.exports=t:(i(t,e),e.Buffer=o);function o(a,s,l){return n(a,s,l)}i(n,o),o.from=function(a,s,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,s,l)},o.alloc=function(a,s,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=n(a);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}}(ea,ea.exports)),ea.exports}var Hh;function Jl(){if(Hh)return rl;Hh=1;var r=Zy().Buffer,e=r.isEncoding||function(R){switch(R=""+R,R&&R.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function t(R){if(!R)return"utf8";for(var m;;)switch(R){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return R;default:if(m)return;R=(""+R).toLowerCase(),m=!0}}function n(R){var m=t(R);if(typeof m!="string"&&(r.isEncoding===e||!e(R)))throw new Error("Unknown encoding: "+R);return m||R}rl.StringDecoder=i;function i(R){this.encoding=n(R);var m;switch(this.encoding){case"utf16le":this.text=h,this.end=d,m=4;break;case"utf8":this.fillLast=l,m=4;break;case"base64":this.text=f,this.end=p,m=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(m)}i.prototype.write=function(R){if(R.length===0)return"";var m,x;if(this.lastNeed){if(m=this.fillLast(R),m===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<R.length?m?m+this.text(R,x):this.text(R,x):m||""},i.prototype.end=u,i.prototype.text=c,i.prototype.fillLast=function(R){if(this.lastNeed<=R.length)return R.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);R.copy(this.lastChar,this.lastTotal-this.lastNeed,0,R.length),this.lastNeed-=R.length};function o(R){return R<=127?0:R>>5===6?2:R>>4===14?3:R>>3===30?4:R>>6===2?-1:-2}function a(R,m,x){var T=m.length-1;if(T<x)return 0;var P=o(m[T]);return P>=0?(P>0&&(R.lastNeed=P-1),P):--T<x||P===-2?0:(P=o(m[T]),P>=0?(P>0&&(R.lastNeed=P-2),P):--T<x||P===-2?0:(P=o(m[T]),P>=0?(P>0&&(P===2?P=0:R.lastNeed=P-3),P):0))}function s(R,m,x){if((m[0]&192)!==128)return R.lastNeed=0,"\uFFFD";if(R.lastNeed>1&&m.length>1){if((m[1]&192)!==128)return R.lastNeed=1,"\uFFFD";if(R.lastNeed>2&&m.length>2&&(m[2]&192)!==128)return R.lastNeed=2,"\uFFFD"}}function l(R){var m=this.lastTotal-this.lastNeed,x=s(this,R);if(x!==void 0)return x;if(this.lastNeed<=R.length)return R.copy(this.lastChar,m,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);R.copy(this.lastChar,m,0,R.length),this.lastNeed-=R.length}function c(R,m){var x=a(this,R,m);if(!this.lastNeed)return R.toString("utf8",m);this.lastTotal=x;var T=R.length-(x-this.lastNeed);return R.copy(this.lastChar,0,T),R.toString("utf8",m,T)}function u(R){var m=R&&R.length?this.write(R):"";return this.lastNeed?m+"\uFFFD":m}function h(R,m){if((R.length-m)%2===0){var x=R.toString("utf16le",m);if(x){var T=x.charCodeAt(x.length-1);if(T>=55296&&T<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=R[R.length-2],this.lastChar[1]=R[R.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=R[R.length-1],R.toString("utf16le",m,R.length-1)}function d(R){var m=R&&R.length?this.write(R):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return m+this.lastChar.toString("utf16le",0,x)}return m}function f(R,m){var x=(R.length-m)%3;return x===0?R.toString("base64",m):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=R[R.length-1]:(this.lastChar[0]=R[R.length-2],this.lastChar[1]=R[R.length-1]),R.toString("base64",m,R.length-x))}function p(R){var m=R&&R.length?this.write(R):"";return this.lastNeed?m+this.lastChar.toString("base64",0,3-this.lastNeed):m}function g(R){return R.toString(this.encoding)}function v(R){return R&&R.length?this.write(R):""}return rl}var nl,Bh;function _c(){if(Bh)return nl;Bh=1;var r=Ki().codes.ERR_STREAM_PREMATURE_CLOSE;function e(o){var a=!1;return function(){if(!a){a=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];o.apply(this,l)}}}function t(){}function n(o){return o.setHeader&&typeof o.abort=="function"}function i(o,a,s){if(typeof a=="function")return i(o,null,a);a||(a={}),s=e(s||t);var l=a.readable||a.readable!==!1&&o.readable,c=a.writable||a.writable!==!1&&o.writable,u=function(){o.writable||d()},h=o._writableState&&o._writableState.finished,d=function(){c=!1,h=!0,l||s.call(o)},f=o._readableState&&o._readableState.endEmitted,p=function(){l=!1,f=!0,c||s.call(o)},g=function(x){s.call(o,x)},v=function(){var x;if(l&&!f)return(!o._readableState||!o._readableState.ended)&&(x=new r),s.call(o,x);if(c&&!h)return(!o._writableState||!o._writableState.ended)&&(x=new r),s.call(o,x)},R=function(){o.req.on("finish",d)};return n(o)?(o.on("complete",d),o.on("abort",v),o.req?R():o.on("request",R)):c&&!o._writableState&&(o.on("end",u),o.on("close",u)),o.on("end",p),o.on("finish",d),a.error!==!1&&o.on("error",g),o.on("close",v),function(){o.removeListener("complete",d),o.removeListener("abort",v),o.removeListener("request",R),o.req&&o.req.removeListener("finish",d),o.removeListener("end",u),o.removeListener("close",u),o.removeListener("finish",d),o.removeListener("end",p),o.removeListener("error",g),o.removeListener("close",v)}}return nl=i,nl}var il,Gh;function Qy(){if(Gh)return il;Gh=1;var r;function e(R,m,x){return m in R?Object.defineProperty(R,m,{value:x,enumerable:!0,configurable:!0,writable:!0}):R[m]=x,R}var t=_c(),n=Symbol("lastResolve"),i=Symbol("lastReject"),o=Symbol("error"),a=Symbol("ended"),s=Symbol("lastPromise"),l=Symbol("handlePromise"),c=Symbol("stream");function u(R,m){return{value:R,done:m}}function h(R){var m=R[n];if(m!==null){var x=R[c].read();x!==null&&(R[s]=null,R[n]=null,R[i]=null,m(u(x,!1)))}}function d(R){ke.nextTick(h,R)}function f(R,m){return function(x,T){R.then(function(){if(m[a]){x(u(void 0,!0));return}m[l](x,T)},T)}}var p=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((r={get stream(){return this[c]},next:function(){var m=this,x=this[o];if(x!==null)return Promise.reject(x);if(this[a])return Promise.resolve(u(void 0,!0));if(this[c].destroyed)return new Promise(function(D,W){ke.nextTick(function(){m[o]?W(m[o]):D(u(void 0,!0))})});var T=this[s],P;if(T)P=new Promise(f(T,this));else{var A=this[c].read();if(A!==null)return Promise.resolve(u(A,!1));P=new Promise(this[l])}return this[s]=P,P}},e(r,Symbol.asyncIterator,function(){return this}),e(r,"return",function(){var m=this;return new Promise(function(x,T){m[c].destroy(null,function(P){if(P){T(P);return}x(u(void 0,!0))})})}),r),p),v=function(m){var x,T=Object.create(g,(x={},e(x,c,{value:m,writable:!0}),e(x,n,{value:null,writable:!0}),e(x,i,{value:null,writable:!0}),e(x,o,{value:null,writable:!0}),e(x,a,{value:m._readableState.endEmitted,writable:!0}),e(x,l,{value:function(A,D){var W=T[c].read();W?(T[s]=null,T[n]=null,T[i]=null,A(u(W,!1))):(T[n]=A,T[i]=D)},writable:!0}),x));return T[s]=null,t(m,function(P){if(P&&P.code!=="ERR_STREAM_PREMATURE_CLOSE"){var A=T[i];A!==null&&(T[s]=null,T[n]=null,T[i]=null,A(P)),T[o]=P;return}var D=T[n];D!==null&&(T[s]=null,T[n]=null,T[i]=null,D(u(void 0,!0))),T[a]=!0}),m.on("readable",d.bind(null,T)),T};return il=v,il}var ol,Jh;function Ky(){return Jh||(Jh=1,ol=function(){throw new Error("Readable.from is not available in the browser")}),ol}var al,zh;function X0(){if(zh)return al;zh=1,al=_;var r;_.ReadableState=W,Oc.EventEmitter;var e=function(j,ue){return j.listeners(ue).length},t=E0(),n=Ja().Buffer,i=an.Uint8Array||function(){};function o(H){return n.from(H)}function a(H){return n.isBuffer(H)||H instanceof i}var s=F0(),l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=Yy(),u=C0(),h=A0(),d=h.getHighWaterMark,f=Ki().codes,p=f.ERR_INVALID_ARG_TYPE,g=f.ERR_STREAM_PUSH_AFTER_EOF,v=f.ERR_METHOD_NOT_IMPLEMENTED,R=f.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,m,x,T;ni(_,t);var P=u.errorOrDestroy,A=["error","close","destroy","pause","resume"];function D(H,j,ue){if(typeof H.prependListener=="function")return H.prependListener(j,ue);!H._events||!H._events[j]?H.on(j,ue):Array.isArray(H._events[j])?H._events[j].unshift(ue):H._events[j]=[ue,H._events[j]]}function W(H,j,ue){r=r||Xi(),H=H||{},typeof ue!="boolean"&&(ue=j instanceof r),this.objectMode=!!H.objectMode,ue&&(this.objectMode=this.objectMode||!!H.readableObjectMode),this.highWaterMark=d(this,H,"readableHighWaterMark",ue),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=H.emitClose!==!1,this.autoDestroy=!!H.autoDestroy,this.destroyed=!1,this.defaultEncoding=H.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,H.encoding&&(m||(m=Jl().StringDecoder),this.decoder=new m(H.encoding),this.encoding=H.encoding)}function _(H){if(r=r||Xi(),!(this instanceof _))return new _(H);var j=this instanceof r;this._readableState=new W(H,this,j),this.readable=!0,H&&(typeof H.read=="function"&&(this._read=H.read),typeof H.destroy=="function"&&(this._destroy=H.destroy)),t.call(this)}Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(j){!this._readableState||(this._readableState.destroyed=j)}}),_.prototype.destroy=u.destroy,_.prototype._undestroy=u.undestroy,_.prototype._destroy=function(H,j){j(H)},_.prototype.push=function(H,j){var ue=this._readableState,b;return ue.objectMode?b=!0:typeof H=="string"&&(j=j||ue.defaultEncoding,j!==ue.encoding&&(H=n.from(H,j),j=""),b=!0),Q(this,H,j,!1,b)},_.prototype.unshift=function(H){return Q(this,H,null,!0,!1)};function Q(H,j,ue,b,q){l("readableAddChunk",j);var M=H._readableState;if(j===null)M.reading=!1,k(H,M);else{var w;if(q||(w=O(M,j)),w)P(H,w);else if(M.objectMode||j&&j.length>0)if(typeof j!="string"&&!M.objectMode&&Object.getPrototypeOf(j)!==n.prototype&&(j=o(j)),b)M.endEmitted?P(H,new R):te(H,M,j,!0);else if(M.ended)P(H,new g);else{if(M.destroyed)return!1;M.reading=!1,M.decoder&&!ue?(j=M.decoder.write(j),M.objectMode||j.length!==0?te(H,M,j,!1):V(H,M)):te(H,M,j,!1)}else b||(M.reading=!1,V(H,M))}return!M.ended&&(M.length<M.highWaterMark||M.length===0)}function te(H,j,ue,b){j.flowing&&j.length===0&&!j.sync?(j.awaitDrain=0,H.emit("data",ue)):(j.length+=j.objectMode?1:ue.length,b?j.buffer.unshift(ue):j.buffer.push(ue),j.needReadable&&F(H)),V(H,j)}function O(H,j){var ue;return!a(j)&&typeof j!="string"&&j!==void 0&&!H.objectMode&&(ue=new p("chunk",["string","Buffer","Uint8Array"],j)),ue}_.prototype.isPaused=function(){return this._readableState.flowing===!1},_.prototype.setEncoding=function(H){m||(m=Jl().StringDecoder);var j=new m(H);this._readableState.decoder=j,this._readableState.encoding=this._readableState.decoder.encoding;for(var ue=this._readableState.buffer.head,b="";ue!==null;)b+=j.write(ue.data),ue=ue.next;return this._readableState.buffer.clear(),b!==""&&this._readableState.buffer.push(b),this._readableState.length=b.length,this};var I=1073741824;function y(H){return H>=I?H=I:(H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++),H}function L(H,j){return H<=0||j.length===0&&j.ended?0:j.objectMode?1:H!==H?j.flowing&&j.length?j.buffer.head.data.length:j.length:(H>j.highWaterMark&&(j.highWaterMark=y(H)),H<=j.length?H:j.ended?j.length:(j.needReadable=!0,0))}_.prototype.read=function(H){l("read",H),H=parseInt(H,10);var j=this._readableState,ue=H;if(H!==0&&(j.emittedReadable=!1),H===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return l("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?C(this):F(this),null;if(H=L(H,j),H===0&&j.ended)return j.length===0&&C(this),null;var b=j.needReadable;l("need readable",b),(j.length===0||j.length-H<j.highWaterMark)&&(b=!0,l("length less than watermark",b)),j.ended||j.reading?(b=!1,l("reading or ended",b)):b&&(l("do read"),j.reading=!0,j.sync=!0,j.length===0&&(j.needReadable=!0),this._read(j.highWaterMark),j.sync=!1,j.reading||(H=L(ue,j)));var q;return H>0?q=X(H,j):q=null,q===null?(j.needReadable=j.length<=j.highWaterMark,H=0):(j.length-=H,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),ue!==H&&j.ended&&C(this)),q!==null&&this.emit("data",q),q};function k(H,j){if(l("onEofChunk"),!j.ended){if(j.decoder){var ue=j.decoder.end();ue&&ue.length&&(j.buffer.push(ue),j.length+=j.objectMode?1:ue.length)}j.ended=!0,j.sync?F(H):(j.needReadable=!1,j.emittedReadable||(j.emittedReadable=!0,Y(H)))}}function F(H){var j=H._readableState;l("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(l("emitReadable",j.flowing),j.emittedReadable=!0,ke.nextTick(Y,H))}function Y(H){var j=H._readableState;l("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&(j.length||j.ended)&&(H.emit("readable"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,ee(H)}function V(H,j){j.readingMore||(j.readingMore=!0,ke.nextTick(ie,H,j))}function ie(H,j){for(;!j.reading&&!j.ended&&(j.length<j.highWaterMark||j.flowing&&j.length===0);){var ue=j.length;if(l("maybeReadMore read 0"),H.read(0),ue===j.length)break}j.readingMore=!1}_.prototype._read=function(H){P(this,new v("_read()"))},_.prototype.pipe=function(H,j){var ue=this,b=this._readableState;switch(b.pipesCount){case 0:b.pipes=H;break;case 1:b.pipes=[b.pipes,H];break;default:b.pipes.push(H);break}b.pipesCount+=1,l("pipe count=%d opts=%j",b.pipesCount,j);var q=(!j||j.end!==!1)&&H!==ke.stdout&&H!==ke.stderr,M=q?S:ge;b.endEmitted?ke.nextTick(M):ue.once("end",M),H.on("unpipe",w);function w(Oe,Te){l("onunpipe"),Oe===ue&&Te&&Te.hasUnpiped===!1&&(Te.hasUnpiped=!0,$())}function S(){l("onend"),H.end()}var E=U(ue);H.on("drain",E);var K=!1;function $(){l("cleanup"),H.removeListener("close",ce),H.removeListener("finish",se),H.removeListener("drain",E),H.removeListener("error",oe),H.removeListener("unpipe",w),ue.removeListener("end",S),ue.removeListener("end",ge),ue.removeListener("data",Z),K=!0,b.awaitDrain&&(!H._writableState||H._writableState.needDrain)&&E()}ue.on("data",Z);function Z(Oe){l("ondata");var Te=H.write(Oe);l("dest.write",Te),Te===!1&&((b.pipesCount===1&&b.pipes===H||b.pipesCount>1&&z(b.pipes,H)!==-1)&&!K&&(l("false write response, pause",b.awaitDrain),b.awaitDrain++),ue.pause())}function oe(Oe){l("onerror",Oe),ge(),H.removeListener("error",oe),e(H,"error")===0&&P(H,Oe)}D(H,"error",oe);function ce(){H.removeListener("finish",se),ge()}H.once("close",ce);function se(){l("onfinish"),H.removeListener("close",ce),ge()}H.once("finish",se);function ge(){l("unpipe"),ue.unpipe(H)}return H.emit("pipe",ue),b.flowing||(l("pipe resume"),ue.resume()),H};function U(H){return function(){var ue=H._readableState;l("pipeOnDrain",ue.awaitDrain),ue.awaitDrain&&ue.awaitDrain--,ue.awaitDrain===0&&e(H,"data")&&(ue.flowing=!0,ee(H))}}_.prototype.unpipe=function(H){var j=this._readableState,ue={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return H&&H!==j.pipes?this:(H||(H=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,H&&H.emit("unpipe",this,ue),this);if(!H){var b=j.pipes,q=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var M=0;M<q;M++)b[M].emit("unpipe",this,{hasUnpiped:!1});return this}var w=z(j.pipes,H);return w===-1?this:(j.pipes.splice(w,1),j.pipesCount-=1,j.pipesCount===1&&(j.pipes=j.pipes[0]),H.emit("unpipe",this,ue),this)},_.prototype.on=function(H,j){var ue=t.prototype.on.call(this,H,j),b=this._readableState;return H==="data"?(b.readableListening=this.listenerCount("readable")>0,b.flowing!==!1&&this.resume()):H==="readable"&&!b.endEmitted&&!b.readableListening&&(b.readableListening=b.needReadable=!0,b.flowing=!1,b.emittedReadable=!1,l("on readable",b.length,b.reading),b.length?F(this):b.reading||ke.nextTick(J,this)),ue},_.prototype.addListener=_.prototype.on,_.prototype.removeListener=function(H,j){var ue=t.prototype.removeListener.call(this,H,j);return H==="readable"&&ke.nextTick(N,this),ue},_.prototype.removeAllListeners=function(H){var j=t.prototype.removeAllListeners.apply(this,arguments);return(H==="readable"||H===void 0)&&ke.nextTick(N,this),j};function N(H){var j=H._readableState;j.readableListening=H.listenerCount("readable")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:H.listenerCount("data")>0&&H.resume()}function J(H){l("readable nexttick read 0"),H.read(0)}_.prototype.resume=function(){var H=this._readableState;return H.flowing||(l("resume"),H.flowing=!H.readableListening,B(this,H)),H.paused=!1,this};function B(H,j){j.resumeScheduled||(j.resumeScheduled=!0,ke.nextTick(re,H,j))}function re(H,j){l("resume",j.reading),j.reading||H.read(0),j.resumeScheduled=!1,H.emit("resume"),ee(H),j.flowing&&!j.reading&&H.read(0)}_.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ee(H){var j=H._readableState;for(l("flow",j.flowing);j.flowing&&H.read()!==null;);}_.prototype.wrap=function(H){var j=this,ue=this._readableState,b=!1;H.on("end",function(){if(l("wrapped end"),ue.decoder&&!ue.ended){var w=ue.decoder.end();w&&w.length&&j.push(w)}j.push(null)}),H.on("data",function(w){if(l("wrapped data"),ue.decoder&&(w=ue.decoder.write(w)),!(ue.objectMode&&w==null)&&!(!ue.objectMode&&(!w||!w.length))){var S=j.push(w);S||(b=!0,H.pause())}});for(var q in H)this[q]===void 0&&typeof H[q]=="function"&&(this[q]=function(S){return function(){return H[S].apply(H,arguments)}}(q));for(var M=0;M<A.length;M++)H.on(A[M],this.emit.bind(this,A[M]));return this._read=function(w){l("wrapped _read",w),b&&(b=!1,H.resume())},this},typeof Symbol=="function"&&(_.prototype[Symbol.asyncIterator]=function(){return x===void 0&&(x=Qy()),x(this)}),Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(_.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(_.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(j){this._readableState&&(this._readableState.flowing=j)}}),_._fromList=X,Object.defineProperty(_.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function X(H,j){if(j.length===0)return null;var ue;return j.objectMode?ue=j.buffer.shift():!H||H>=j.length?(j.decoder?ue=j.buffer.join(""):j.buffer.length===1?ue=j.buffer.first():ue=j.buffer.concat(j.length),j.buffer.clear()):ue=j.buffer.consume(H,j.decoder),ue}function C(H){var j=H._readableState;l("endReadable",j.endEmitted),j.endEmitted||(j.ended=!0,ke.nextTick(G,j,H))}function G(H,j){if(l("endReadableNT",H.endEmitted,H.length),!H.endEmitted&&H.length===0&&(H.endEmitted=!0,j.readable=!1,j.emit("end"),H.autoDestroy)){var ue=j._writableState;(!ue||ue.autoDestroy&&ue.finished)&&j.destroy()}}typeof Symbol=="function"&&(_.from=function(H,j){return T===void 0&&(T=Ky()),T(_,H,j)});function z(H,j){for(var ue=0,b=H.length;ue<b;ue++)if(H[ue]===j)return ue;return-1}return al}var sl,$h;function U0(){if($h)return sl;$h=1,sl=s;var r=Ki().codes,e=r.ERR_METHOD_NOT_IMPLEMENTED,t=r.ERR_MULTIPLE_CALLBACK,n=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=r.ERR_TRANSFORM_WITH_LENGTH_0,o=Xi();ni(s,o);function a(u,h){var d=this._transformState;d.transforming=!1;var f=d.writecb;if(f===null)return this.emit("error",new t);d.writechunk=null,d.writecb=null,h!=null&&this.push(h),f(u);var p=this._readableState;p.reading=!1,(p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);o.call(this,u),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function l(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(h,d){c(u,h,d)}):c(this,null,null)}s.prototype.push=function(u,h){return this._transformState.needTransform=!1,o.prototype.push.call(this,u,h)},s.prototype._transform=function(u,h,d){d(new e("_transform()"))},s.prototype._write=function(u,h,d){var f=this._transformState;if(f.writecb=d,f.writechunk=u,f.writeencoding=h,!f.transforming){var p=this._readableState;(f.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},s.prototype._read=function(u){var h=this._transformState;h.writechunk!==null&&!h.transforming?(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform)):h.needTransform=!0},s.prototype._destroy=function(u,h){o.prototype._destroy.call(this,u,function(d){h(d)})};function c(u,h,d){if(h)return u.emit("error",h);if(d!=null&&u.push(d),u._writableState.length)throw new i;if(u._transformState.transforming)throw new n;return u.push(null)}return sl}var ll,jh;function Hy(){if(jh)return ll;jh=1,ll=e;var r=U0();ni(e,r);function e(t){if(!(this instanceof e))return new e(t);r.call(this,t)}return e.prototype._transform=function(t,n,i){i(null,t)},ll}var cl,qh;function By(){if(qh)return cl;qh=1;var r;function e(d){var f=!1;return function(){f||(f=!0,d.apply(void 0,arguments))}}var t=Ki().codes,n=t.ERR_MISSING_ARGS,i=t.ERR_STREAM_DESTROYED;function o(d){if(d)throw d}function a(d){return d.setHeader&&typeof d.abort=="function"}function s(d,f,p,g){g=e(g);var v=!1;d.on("close",function(){v=!0}),r===void 0&&(r=_c()),r(d,{readable:f,writable:p},function(m){if(m)return g(m);v=!0,g()});var R=!1;return function(m){if(!v&&!R){if(R=!0,a(d))return d.abort();if(typeof d.destroy=="function")return d.destroy();g(m||new i("pipe"))}}}function l(d){d()}function c(d,f){return d.pipe(f)}function u(d){return!d.length||typeof d[d.length-1]!="function"?o:d.pop()}function h(){for(var d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];var g=u(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new n("streams");var v,R=f.map(function(m,x){var T=x<f.length-1,P=x>0;return s(m,T,P,function(A){v||(v=A),A&&R.forEach(l),!T&&(R.forEach(l),g(v))})});return f.reduce(c)}return cl=h,cl}var Ic=kr,Nc=Oc.EventEmitter,Gy=ni;Gy(kr,Nc);kr.Readable=X0();kr.Writable=D0();kr.Duplex=Xi();kr.Transform=U0();kr.PassThrough=Hy();kr.finished=_c();kr.pipeline=By();kr.Stream=kr;function kr(){Nc.call(this)}kr.prototype.pipe=function(r,e){var t=this;function n(u){r.writable&&r.write(u)===!1&&t.pause&&t.pause()}t.on("data",n);function i(){t.readable&&t.resume&&t.resume()}r.on("drain",i),!r._isStdio&&(!e||e.end!==!1)&&(t.on("end",a),t.on("close",s));var o=!1;function a(){o||(o=!0,r.end())}function s(){o||(o=!0,typeof r.destroy=="function"&&r.destroy())}function l(u){if(c(),Nc.listenerCount(this,"error")===0)throw u}t.on("error",l),r.on("error",l);function c(){t.removeListener("data",n),r.removeListener("drain",i),t.removeListener("end",a),t.removeListener("close",s),t.removeListener("error",l),r.removeListener("error",l),t.removeListener("end",c),t.removeListener("close",c),r.removeListener("close",c)}return t.on("end",c),t.on("close",c),r.on("close",c),r.emit("pipe",t),r};(function(r){(function(e){e.parser=function(X,C){return new n(X,C)},e.SAXParser=n,e.SAXStream=u,e.createStream=c,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(X,C){if(!(this instanceof n))return new n(X,C);var G=this;o(G),G.q=G.c="",G.bufferCheckPosition=e.MAX_BUFFER_LENGTH,G.opt=C||{},G.opt.lowercase=G.opt.lowercase||G.opt.lowercasetags,G.looseCase=G.opt.lowercase?"toLowerCase":"toUpperCase",G.tags=[],G.closed=G.closedRoot=G.sawRoot=!1,G.tag=G.error=null,G.strict=!!X,G.noscript=!!(X||G.opt.noscript),G.state=_.BEGIN,G.strictEntities=G.opt.strictEntities,G.ENTITIES=G.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),G.attribList=[],G.opt.xmlns&&(G.ns=Object.create(g)),G.trackPosition=G.opt.position!==!1,G.trackPosition&&(G.position=G.line=G.column=0),te(G,"onready")}Object.create||(Object.create=function(X){function C(){}C.prototype=X;var G=new C;return G}),Object.keys||(Object.keys=function(X){var C=[];for(var G in X)X.hasOwnProperty(G)&&C.push(G);return C});function i(X){for(var C=Math.max(e.MAX_BUFFER_LENGTH,10),G=0,z=0,H=t.length;z<H;z++){var j=X[t[z]].length;if(j>C)switch(t[z]){case"textNode":I(X);break;case"cdata":O(X,"oncdata",X.cdata),X.cdata="";break;case"script":O(X,"onscript",X.script),X.script="";break;default:L(X,"Max buffer length exceeded: "+t[z])}G=Math.max(G,j)}var ue=e.MAX_BUFFER_LENGTH-G;X.bufferCheckPosition=ue+X.position}function o(X){for(var C=0,G=t.length;C<G;C++)X[t[C]]=""}function a(X){I(X),X.cdata!==""&&(O(X,"oncdata",X.cdata),X.cdata=""),X.script!==""&&(O(X,"onscript",X.script),X.script="")}n.prototype={end:function(){k(this)},write:ee,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var s;try{s=Ic.Stream}catch{s=function(){}}var l=e.EVENTS.filter(function(X){return X!=="error"&&X!=="end"});function c(X,C){return new u(X,C)}function u(X,C){if(!(this instanceof u))return new u(X,C);s.apply(this),this._parser=new n(X,C),this.writable=!0,this.readable=!0;var G=this;this._parser.onend=function(){G.emit("end")},this._parser.onerror=function(z){G.emit("error",z),G._parser.error=null},this._decoder=null,l.forEach(function(z){Object.defineProperty(G,"on"+z,{get:function(){return G._parser["on"+z]},set:function(H){if(!H)return G.removeAllListeners(z),G._parser["on"+z]=H,H;G.on(z,H)},enumerable:!0,configurable:!1})})}u.prototype=Object.create(s.prototype,{constructor:{value:u}}),u.prototype.write=function(X){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(X)){if(!this._decoder){var C=Jl().StringDecoder;this._decoder=new C("utf8")}X=this._decoder.write(X)}return this._parser.write(X.toString()),this.emit("data",X),!0},u.prototype.end=function(X){return X&&X.length&&this.write(X),this._parser.end(),!0},u.prototype.on=function(X,C){var G=this;return!G._parser["on"+X]&&l.indexOf(X)!==-1&&(G._parser["on"+X]=function(){var z=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);z.splice(0,0,X),G.emit.apply(G,z)}),s.prototype.on.call(G,X,C)};var h="[CDATA[",d="DOCTYPE",f="http://www.w3.org/XML/1998/namespace",p="http://www.w3.org/2000/xmlns/",g={xml:f,xmlns:p},v=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,R=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,x=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function T(X){return X===" "||X===`
|
|
`||X==="\r"||X===" "}function P(X){return X==='"'||X==="'"}function A(X){return X===">"||T(X)}function D(X,C){return X.test(C)}function W(X,C){return!D(X,C)}var _=0;e.STATE={BEGIN:_++,BEGIN_WHITESPACE:_++,TEXT:_++,TEXT_ENTITY:_++,OPEN_WAKA:_++,SGML_DECL:_++,SGML_DECL_QUOTED:_++,DOCTYPE:_++,DOCTYPE_QUOTED:_++,DOCTYPE_DTD:_++,DOCTYPE_DTD_QUOTED:_++,COMMENT_STARTING:_++,COMMENT:_++,COMMENT_ENDING:_++,COMMENT_ENDED:_++,CDATA:_++,CDATA_ENDING:_++,CDATA_ENDING_2:_++,PROC_INST:_++,PROC_INST_BODY:_++,PROC_INST_ENDING:_++,OPEN_TAG:_++,OPEN_TAG_SLASH:_++,ATTRIB:_++,ATTRIB_NAME:_++,ATTRIB_NAME_SAW_WHITE:_++,ATTRIB_VALUE:_++,ATTRIB_VALUE_QUOTED:_++,ATTRIB_VALUE_CLOSED:_++,ATTRIB_VALUE_UNQUOTED:_++,ATTRIB_VALUE_ENTITY_Q:_++,ATTRIB_VALUE_ENTITY_U:_++,CLOSE_TAG:_++,CLOSE_TAG_SAW_WHITE:_++,SCRIPT:_++,SCRIPT_ENDING:_++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(X){var C=e.ENTITIES[X],G=typeof C=="number"?String.fromCharCode(C):C;e.ENTITIES[X]=G});for(var Q in e.STATE)e.STATE[e.STATE[Q]]=Q;_=e.STATE;function te(X,C,G){X[C]&&X[C](G)}function O(X,C,G){X.textNode&&I(X),te(X,C,G)}function I(X){X.textNode=y(X.opt,X.textNode),X.textNode&&te(X,"ontext",X.textNode),X.textNode=""}function y(X,C){return X.trim&&(C=C.trim()),X.normalize&&(C=C.replace(/\s+/g," ")),C}function L(X,C){return I(X),X.trackPosition&&(C+=`
|
|
Line: `+X.line+`
|
|
Column: `+X.column+`
|
|
Char: `+X.c),C=new Error(C),X.error=C,te(X,"onerror",C),X}function k(X){return X.sawRoot&&!X.closedRoot&&F(X,"Unclosed root tag"),X.state!==_.BEGIN&&X.state!==_.BEGIN_WHITESPACE&&X.state!==_.TEXT&&L(X,"Unexpected end"),I(X),X.c="",X.closed=!0,te(X,"onend"),n.call(X,X.strict,X.opt),X}function F(X,C){if(typeof X!="object"||!(X instanceof n))throw new Error("bad call to strictFail");X.strict&&L(X,C)}function Y(X){X.strict||(X.tagName=X.tagName[X.looseCase]());var C=X.tags[X.tags.length-1]||X,G=X.tag={name:X.tagName,attributes:{}};X.opt.xmlns&&(G.ns=C.ns),X.attribList.length=0,O(X,"onopentagstart",G)}function V(X,C){var G=X.indexOf(":"),z=G<0?["",X]:X.split(":"),H=z[0],j=z[1];return C&&X==="xmlns"&&(H="xmlns",j=""),{prefix:H,local:j}}function ie(X){if(X.strict||(X.attribName=X.attribName[X.looseCase]()),X.attribList.indexOf(X.attribName)!==-1||X.tag.attributes.hasOwnProperty(X.attribName)){X.attribName=X.attribValue="";return}if(X.opt.xmlns){var C=V(X.attribName,!0),G=C.prefix,z=C.local;if(G==="xmlns")if(z==="xml"&&X.attribValue!==f)F(X,"xml: prefix must be bound to "+f+`
|
|
Actual: `+X.attribValue);else if(z==="xmlns"&&X.attribValue!==p)F(X,"xmlns: prefix must be bound to "+p+`
|
|
Actual: `+X.attribValue);else{var H=X.tag,j=X.tags[X.tags.length-1]||X;H.ns===j.ns&&(H.ns=Object.create(j.ns)),H.ns[z]=X.attribValue}X.attribList.push([X.attribName,X.attribValue])}else X.tag.attributes[X.attribName]=X.attribValue,O(X,"onattribute",{name:X.attribName,value:X.attribValue});X.attribName=X.attribValue=""}function U(X,C){if(X.opt.xmlns){var G=X.tag,z=V(X.tagName);G.prefix=z.prefix,G.local=z.local,G.uri=G.ns[z.prefix]||"",G.prefix&&!G.uri&&(F(X,"Unbound namespace prefix: "+JSON.stringify(X.tagName)),G.uri=z.prefix);var H=X.tags[X.tags.length-1]||X;G.ns&&H.ns!==G.ns&&Object.keys(G.ns).forEach(function(Z){O(X,"onopennamespace",{prefix:Z,uri:G.ns[Z]})});for(var j=0,ue=X.attribList.length;j<ue;j++){var b=X.attribList[j],q=b[0],M=b[1],w=V(q,!0),S=w.prefix,E=w.local,K=S===""?"":G.ns[S]||"",$={name:q,value:M,prefix:S,local:E,uri:K};S&&S!=="xmlns"&&!K&&(F(X,"Unbound namespace prefix: "+JSON.stringify(S)),$.uri=S),X.tag.attributes[q]=$,O(X,"onattribute",$)}X.attribList.length=0}X.tag.isSelfClosing=!!C,X.sawRoot=!0,X.tags.push(X.tag),O(X,"onopentag",X.tag),C||(!X.noscript&&X.tagName.toLowerCase()==="script"?X.state=_.SCRIPT:X.state=_.TEXT,X.tag=null,X.tagName=""),X.attribName=X.attribValue="",X.attribList.length=0}function N(X){if(!X.tagName){F(X,"Weird empty close tag."),X.textNode+="</>",X.state=_.TEXT;return}if(X.script){if(X.tagName!=="script"){X.script+="</"+X.tagName+">",X.tagName="",X.state=_.SCRIPT;return}O(X,"onscript",X.script),X.script=""}var C=X.tags.length,G=X.tagName;X.strict||(G=G[X.looseCase]());for(var z=G;C--;){var H=X.tags[C];if(H.name!==z)F(X,"Unexpected close tag");else break}if(C<0){F(X,"Unmatched closing tag: "+X.tagName),X.textNode+="</"+X.tagName+">",X.state=_.TEXT;return}X.tagName=G;for(var j=X.tags.length;j-- >C;){var ue=X.tag=X.tags.pop();X.tagName=X.tag.name,O(X,"onclosetag",X.tagName);var b={};for(var q in ue.ns)b[q]=ue.ns[q];var M=X.tags[X.tags.length-1]||X;X.opt.xmlns&&ue.ns!==M.ns&&Object.keys(ue.ns).forEach(function(w){var S=ue.ns[w];O(X,"onclosenamespace",{prefix:w,uri:S})})}C===0&&(X.closedRoot=!0),X.tagName=X.attribValue=X.attribName="",X.attribList.length=0,X.state=_.TEXT}function J(X){var C=X.entity,G=C.toLowerCase(),z,H="";return X.ENTITIES[C]?X.ENTITIES[C]:X.ENTITIES[G]?X.ENTITIES[G]:(C=G,C.charAt(0)==="#"&&(C.charAt(1)==="x"?(C=C.slice(2),z=parseInt(C,16),H=z.toString(16)):(C=C.slice(1),z=parseInt(C,10),H=z.toString(10))),C=C.replace(/^0+/,""),isNaN(z)||H.toLowerCase()!==C?(F(X,"Invalid character entity"),"&"+X.entity+";"):String.fromCodePoint(z))}function B(X,C){C==="<"?(X.state=_.OPEN_WAKA,X.startTagPosition=X.position):T(C)||(F(X,"Non-whitespace before first tag."),X.textNode=C,X.state=_.TEXT)}function re(X,C){var G="";return C<X.length&&(G=X.charAt(C)),G}function ee(X){var C=this;if(this.error)throw this.error;if(C.closed)return L(C,"Cannot write after close. Assign an onready handler.");if(X===null)return k(C);typeof X=="object"&&(X=X.toString());for(var G=0,z="";z=re(X,G++),C.c=z,!!z;)switch(C.trackPosition&&(C.position++,z===`
|
|
`?(C.line++,C.column=0):C.column++),C.state){case _.BEGIN:if(C.state=_.BEGIN_WHITESPACE,z==="\uFEFF")continue;B(C,z);continue;case _.BEGIN_WHITESPACE:B(C,z);continue;case _.TEXT:if(C.sawRoot&&!C.closedRoot){for(var H=G-1;z&&z!=="<"&&z!=="&";)z=re(X,G++),z&&C.trackPosition&&(C.position++,z===`
|
|
`?(C.line++,C.column=0):C.column++);C.textNode+=X.substring(H,G-1)}z==="<"&&!(C.sawRoot&&C.closedRoot&&!C.strict)?(C.state=_.OPEN_WAKA,C.startTagPosition=C.position):(!T(z)&&(!C.sawRoot||C.closedRoot)&&F(C,"Text data outside of root node."),z==="&"?C.state=_.TEXT_ENTITY:C.textNode+=z);continue;case _.SCRIPT:z==="<"?C.state=_.SCRIPT_ENDING:C.script+=z;continue;case _.SCRIPT_ENDING:z==="/"?C.state=_.CLOSE_TAG:(C.script+="<"+z,C.state=_.SCRIPT);continue;case _.OPEN_WAKA:if(z==="!")C.state=_.SGML_DECL,C.sgmlDecl="";else if(!T(z))if(D(v,z))C.state=_.OPEN_TAG,C.tagName=z;else if(z==="/")C.state=_.CLOSE_TAG,C.tagName="";else if(z==="?")C.state=_.PROC_INST,C.procInstName=C.procInstBody="";else{if(F(C,"Unencoded <"),C.startTagPosition+1<C.position){var j=C.position-C.startTagPosition;z=new Array(j).join(" ")+z}C.textNode+="<"+z,C.state=_.TEXT}continue;case _.SGML_DECL:(C.sgmlDecl+z).toUpperCase()===h?(O(C,"onopencdata"),C.state=_.CDATA,C.sgmlDecl="",C.cdata=""):C.sgmlDecl+z==="--"?(C.state=_.COMMENT,C.comment="",C.sgmlDecl=""):(C.sgmlDecl+z).toUpperCase()===d?(C.state=_.DOCTYPE,(C.doctype||C.sawRoot)&&F(C,"Inappropriately located doctype declaration"),C.doctype="",C.sgmlDecl=""):z===">"?(O(C,"onsgmldeclaration",C.sgmlDecl),C.sgmlDecl="",C.state=_.TEXT):(P(z)&&(C.state=_.SGML_DECL_QUOTED),C.sgmlDecl+=z);continue;case _.SGML_DECL_QUOTED:z===C.q&&(C.state=_.SGML_DECL,C.q=""),C.sgmlDecl+=z;continue;case _.DOCTYPE:z===">"?(C.state=_.TEXT,O(C,"ondoctype",C.doctype),C.doctype=!0):(C.doctype+=z,z==="["?C.state=_.DOCTYPE_DTD:P(z)&&(C.state=_.DOCTYPE_QUOTED,C.q=z));continue;case _.DOCTYPE_QUOTED:C.doctype+=z,z===C.q&&(C.q="",C.state=_.DOCTYPE);continue;case _.DOCTYPE_DTD:C.doctype+=z,z==="]"?C.state=_.DOCTYPE:P(z)&&(C.state=_.DOCTYPE_DTD_QUOTED,C.q=z);continue;case _.DOCTYPE_DTD_QUOTED:C.doctype+=z,z===C.q&&(C.state=_.DOCTYPE_DTD,C.q="");continue;case _.COMMENT:z==="-"?C.state=_.COMMENT_ENDING:C.comment+=z;continue;case _.COMMENT_ENDING:z==="-"?(C.state=_.COMMENT_ENDED,C.comment=y(C.opt,C.comment),C.comment&&O(C,"oncomment",C.comment),C.comment=""):(C.comment+="-"+z,C.state=_.COMMENT);continue;case _.COMMENT_ENDED:z!==">"?(F(C,"Malformed comment"),C.comment+="--"+z,C.state=_.COMMENT):C.state=_.TEXT;continue;case _.CDATA:z==="]"?C.state=_.CDATA_ENDING:C.cdata+=z;continue;case _.CDATA_ENDING:z==="]"?C.state=_.CDATA_ENDING_2:(C.cdata+="]"+z,C.state=_.CDATA);continue;case _.CDATA_ENDING_2:z===">"?(C.cdata&&O(C,"oncdata",C.cdata),O(C,"onclosecdata"),C.cdata="",C.state=_.TEXT):z==="]"?C.cdata+="]":(C.cdata+="]]"+z,C.state=_.CDATA);continue;case _.PROC_INST:z==="?"?C.state=_.PROC_INST_ENDING:T(z)?C.state=_.PROC_INST_BODY:C.procInstName+=z;continue;case _.PROC_INST_BODY:if(!C.procInstBody&&T(z))continue;z==="?"?C.state=_.PROC_INST_ENDING:C.procInstBody+=z;continue;case _.PROC_INST_ENDING:z===">"?(O(C,"onprocessinginstruction",{name:C.procInstName,body:C.procInstBody}),C.procInstName=C.procInstBody="",C.state=_.TEXT):(C.procInstBody+="?"+z,C.state=_.PROC_INST_BODY);continue;case _.OPEN_TAG:D(R,z)?C.tagName+=z:(Y(C),z===">"?U(C):z==="/"?C.state=_.OPEN_TAG_SLASH:(T(z)||F(C,"Invalid character in tag name"),C.state=_.ATTRIB));continue;case _.OPEN_TAG_SLASH:z===">"?(U(C,!0),N(C)):(F(C,"Forward-slash in opening tag not followed by >"),C.state=_.ATTRIB);continue;case _.ATTRIB:if(T(z))continue;z===">"?U(C):z==="/"?C.state=_.OPEN_TAG_SLASH:D(v,z)?(C.attribName=z,C.attribValue="",C.state=_.ATTRIB_NAME):F(C,"Invalid attribute name");continue;case _.ATTRIB_NAME:z==="="?C.state=_.ATTRIB_VALUE:z===">"?(F(C,"Attribute without value"),C.attribValue=C.attribName,ie(C),U(C)):T(z)?C.state=_.ATTRIB_NAME_SAW_WHITE:D(R,z)?C.attribName+=z:F(C,"Invalid attribute name");continue;case _.ATTRIB_NAME_SAW_WHITE:if(z==="=")C.state=_.ATTRIB_VALUE;else{if(T(z))continue;F(C,"Attribute without value"),C.tag.attributes[C.attribName]="",C.attribValue="",O(C,"onattribute",{name:C.attribName,value:""}),C.attribName="",z===">"?U(C):D(v,z)?(C.attribName=z,C.state=_.ATTRIB_NAME):(F(C,"Invalid attribute name"),C.state=_.ATTRIB)}continue;case _.ATTRIB_VALUE:if(T(z))continue;P(z)?(C.q=z,C.state=_.ATTRIB_VALUE_QUOTED):(F(C,"Unquoted attribute value"),C.state=_.ATTRIB_VALUE_UNQUOTED,C.attribValue=z);continue;case _.ATTRIB_VALUE_QUOTED:if(z!==C.q){z==="&"?C.state=_.ATTRIB_VALUE_ENTITY_Q:C.attribValue+=z;continue}ie(C),C.q="",C.state=_.ATTRIB_VALUE_CLOSED;continue;case _.ATTRIB_VALUE_CLOSED:T(z)?C.state=_.ATTRIB:z===">"?U(C):z==="/"?C.state=_.OPEN_TAG_SLASH:D(v,z)?(F(C,"No whitespace between attributes"),C.attribName=z,C.attribValue="",C.state=_.ATTRIB_NAME):F(C,"Invalid attribute name");continue;case _.ATTRIB_VALUE_UNQUOTED:if(!A(z)){z==="&"?C.state=_.ATTRIB_VALUE_ENTITY_U:C.attribValue+=z;continue}ie(C),z===">"?U(C):C.state=_.ATTRIB;continue;case _.CLOSE_TAG:if(C.tagName)z===">"?N(C):D(R,z)?C.tagName+=z:C.script?(C.script+="</"+C.tagName,C.tagName="",C.state=_.SCRIPT):(T(z)||F(C,"Invalid tagname in closing tag"),C.state=_.CLOSE_TAG_SAW_WHITE);else{if(T(z))continue;W(v,z)?C.script?(C.script+="</"+z,C.state=_.SCRIPT):F(C,"Invalid tagname in closing tag."):C.tagName=z}continue;case _.CLOSE_TAG_SAW_WHITE:if(T(z))continue;z===">"?N(C):F(C,"Invalid characters in closing tag");continue;case _.TEXT_ENTITY:case _.ATTRIB_VALUE_ENTITY_Q:case _.ATTRIB_VALUE_ENTITY_U:var ue,b;switch(C.state){case _.TEXT_ENTITY:ue=_.TEXT,b="textNode";break;case _.ATTRIB_VALUE_ENTITY_Q:ue=_.ATTRIB_VALUE_QUOTED,b="attribValue";break;case _.ATTRIB_VALUE_ENTITY_U:ue=_.ATTRIB_VALUE_UNQUOTED,b="attribValue";break}z===";"?(C[b]+=J(C),C.entity="",C.state=ue):D(C.entity.length?x:m,z)?C.entity+=z:(F(C,"Invalid character in entity name"),C[b]+="&"+C.entity+z,C.entity="",C.state=ue);continue;default:throw new Error(C,"Unknown state: "+C.state)}return C.position>=C.bufferCheckPosition&&i(C),C}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var X=String.fromCharCode,C=Math.floor,G=function(){var z=16384,H=[],j,ue,b=-1,q=arguments.length;if(!q)return"";for(var M="";++b<q;){var w=Number(arguments[b]);if(!isFinite(w)||w<0||w>1114111||C(w)!==w)throw RangeError("Invalid code point: "+w);w<=65535?H.push(w):(w-=65536,j=(w>>10)+55296,ue=w%1024+56320,H.push(j,ue)),(b+1===q||H.length>z)&&(M+=X.apply(null,H),H.length=0)}return M};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:G,configurable:!0,writable:!0}):String.fromCodePoint=G}()})(r)})(p0);var Mc={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}},Jy=Mc.isArray,Lc={copyOptions:function(r){var e,t={};for(e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);return t},ensureFlagExists:function(r,e){(!(r in e)||typeof e[r]!="boolean")&&(e[r]=!1)},ensureSpacesExists:function(r){(!("spaces"in r)||typeof r.spaces!="number"&&typeof r.spaces!="string")&&(r.spaces=0)},ensureAlwaysArrayExists:function(r){(!("alwaysArray"in r)||typeof r.alwaysArray!="boolean"&&!Jy(r.alwaysArray))&&(r.alwaysArray=!1)},ensureKeyExists:function(r,e){(!(r+"Key"in e)||typeof e[r+"Key"]!="string")&&(e[r+"Key"]=e.compact?"_"+r:r)},checkFnExists:function(r,e){return r+"Fn"in e}},zy=p0,ot=Lc,Mi=Mc.isArray,me,We;function $y(r){return me=ot.copyOptions(r),ot.ensureFlagExists("ignoreDeclaration",me),ot.ensureFlagExists("ignoreInstruction",me),ot.ensureFlagExists("ignoreAttributes",me),ot.ensureFlagExists("ignoreText",me),ot.ensureFlagExists("ignoreComment",me),ot.ensureFlagExists("ignoreCdata",me),ot.ensureFlagExists("ignoreDoctype",me),ot.ensureFlagExists("compact",me),ot.ensureFlagExists("alwaysChildren",me),ot.ensureFlagExists("addParent",me),ot.ensureFlagExists("trim",me),ot.ensureFlagExists("nativeType",me),ot.ensureFlagExists("nativeTypeAttributes",me),ot.ensureFlagExists("sanitize",me),ot.ensureFlagExists("instructionHasAttributes",me),ot.ensureFlagExists("captureSpacesBetweenElements",me),ot.ensureAlwaysArrayExists(me),ot.ensureKeyExists("declaration",me),ot.ensureKeyExists("instruction",me),ot.ensureKeyExists("attributes",me),ot.ensureKeyExists("text",me),ot.ensureKeyExists("comment",me),ot.ensureKeyExists("cdata",me),ot.ensureKeyExists("doctype",me),ot.ensureKeyExists("type",me),ot.ensureKeyExists("name",me),ot.ensureKeyExists("elements",me),ot.ensureKeyExists("parent",me),me}function W0(r){var e=Number(r);if(!isNaN(e))return e;var t=r.toLowerCase();return t==="true"?!0:t==="false"?!1:r}function Ao(r,e){var t;if(me.compact){if(!We[me[r+"Key"]]&&(Mi(me.alwaysArray)?me.alwaysArray.indexOf(me[r+"Key"])!==-1:me.alwaysArray)&&(We[me[r+"Key"]]=[]),We[me[r+"Key"]]&&!Mi(We[me[r+"Key"]])&&(We[me[r+"Key"]]=[We[me[r+"Key"]]]),r+"Fn"in me&&typeof e=="string"&&(e=me[r+"Fn"](e,We)),r==="instruction"&&("instructionFn"in me||"instructionNameFn"in me)){for(t in e)if(e.hasOwnProperty(t))if("instructionFn"in me)e[t]=me.instructionFn(e[t],t,We);else{var n=e[t];delete e[t],e[me.instructionNameFn(t,n,We)]=n}}Mi(We[me[r+"Key"]])?We[me[r+"Key"]].push(e):We[me[r+"Key"]]=e}else{We[me.elementsKey]||(We[me.elementsKey]=[]);var i={};if(i[me.typeKey]=r,r==="instruction"){for(t in e)if(e.hasOwnProperty(t))break;i[me.nameKey]="instructionNameFn"in me?me.instructionNameFn(t,e,We):t,me.instructionHasAttributes?(i[me.attributesKey]=e[t][me.attributesKey],"instructionFn"in me&&(i[me.attributesKey]=me.instructionFn(i[me.attributesKey],t,We))):("instructionFn"in me&&(e[t]=me.instructionFn(e[t],t,We)),i[me.instructionKey]=e[t])}else r+"Fn"in me&&(e=me[r+"Fn"](e,We)),i[me[r+"Key"]]=e;me.addParent&&(i[me.parentKey]=We),We[me.elementsKey].push(i)}}function V0(r){if("attributesFn"in me&&r&&(r=me.attributesFn(r,We)),(me.trim||"attributeValueFn"in me||"attributeNameFn"in me||me.nativeTypeAttributes)&&r){var e;for(e in r)if(r.hasOwnProperty(e)&&(me.trim&&(r[e]=r[e].trim()),me.nativeTypeAttributes&&(r[e]=W0(r[e])),"attributeValueFn"in me&&(r[e]=me.attributeValueFn(r[e],e,We)),"attributeNameFn"in me)){var t=r[e];delete r[e],r[me.attributeNameFn(e,r[e],We)]=t}}return r}function jy(r){var e={};if(r.body&&(r.name.toLowerCase()==="xml"||me.instructionHasAttributes)){for(var t=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,n;(n=t.exec(r.body))!==null;)e[n[1]]=n[2]||n[3]||n[4];e=V0(e)}if(r.name.toLowerCase()==="xml"){if(me.ignoreDeclaration)return;We[me.declarationKey]={},Object.keys(e).length&&(We[me.declarationKey][me.attributesKey]=e),me.addParent&&(We[me.declarationKey][me.parentKey]=We)}else{if(me.ignoreInstruction)return;me.trim&&(r.body=r.body.trim());var i={};me.instructionHasAttributes&&Object.keys(e).length?(i[r.name]={},i[r.name][me.attributesKey]=e):i[r.name]=r.body,Ao("instruction",i)}}function qy(r,e){var t;if(typeof r=="object"&&(e=r.attributes,r=r.name),e=V0(e),"elementNameFn"in me&&(r=me.elementNameFn(r,We)),me.compact){if(t={},!me.ignoreAttributes&&e&&Object.keys(e).length){t[me.attributesKey]={};var n;for(n in e)e.hasOwnProperty(n)&&(t[me.attributesKey][n]=e[n])}!(r in We)&&(Mi(me.alwaysArray)?me.alwaysArray.indexOf(r)!==-1:me.alwaysArray)&&(We[r]=[]),We[r]&&!Mi(We[r])&&(We[r]=[We[r]]),Mi(We[r])?We[r].push(t):We[r]=t}else We[me.elementsKey]||(We[me.elementsKey]=[]),t={},t[me.typeKey]="element",t[me.nameKey]=r,!me.ignoreAttributes&&e&&Object.keys(e).length&&(t[me.attributesKey]=e),me.alwaysChildren&&(t[me.elementsKey]=[]),We[me.elementsKey].push(t);t[me.parentKey]=We,We=t}function ew(r){me.ignoreText||!r.trim()&&!me.captureSpacesBetweenElements||(me.trim&&(r=r.trim()),me.nativeType&&(r=W0(r)),me.sanitize&&(r=r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),Ao("text",r))}function tw(r){me.ignoreComment||(me.trim&&(r=r.trim()),Ao("comment",r))}function rw(r){var e=We[me.parentKey];me.addParent||delete We[me.parentKey],We=e}function nw(r){me.ignoreCdata||(me.trim&&(r=r.trim()),Ao("cdata",r))}function iw(r){me.ignoreDoctype||(r=r.replace(/^ /,""),me.trim&&(r=r.trim()),Ao("doctype",r))}function ow(r){r.note=r}var Y0=function(r,e){var t=zy.parser(!0,{}),n={};if(We=n,me=$y(e),t.opt={strictEntities:!0},t.onopentag=qy,t.ontext=ew,t.oncomment=tw,t.onclosetag=rw,t.onerror=ow,t.oncdata=nw,t.ondoctype=iw,t.onprocessinginstruction=jy,t.write(r).close(),n[me.elementsKey]){var i=n[me.elementsKey];delete n[me.elementsKey],n[me.elementsKey]=i,delete n.text}return n},ef=Lc,aw=Y0;function sw(r){var e=ef.copyOptions(r);return ef.ensureSpacesExists(e),e}var lw=function(r,e){var t,n,i,o;return t=sw(e),n=aw(r,t),o="compact"in t&&t.compact?"_parent":"parent","addParent"in t&&t.addParent?i=JSON.stringify(n,function(a,s){return a===o?"_":s},t.spaces):i=JSON.stringify(n,null,t.spaces),i.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},pt=Lc,cw=Mc.isArray,hr,fr;function uw(r){var e=pt.copyOptions(r);return pt.ensureFlagExists("ignoreDeclaration",e),pt.ensureFlagExists("ignoreInstruction",e),pt.ensureFlagExists("ignoreAttributes",e),pt.ensureFlagExists("ignoreText",e),pt.ensureFlagExists("ignoreComment",e),pt.ensureFlagExists("ignoreCdata",e),pt.ensureFlagExists("ignoreDoctype",e),pt.ensureFlagExists("compact",e),pt.ensureFlagExists("indentText",e),pt.ensureFlagExists("indentCdata",e),pt.ensureFlagExists("indentAttributes",e),pt.ensureFlagExists("indentInstruction",e),pt.ensureFlagExists("fullTagEmptyElement",e),pt.ensureFlagExists("noQuotesForNativeAttributes",e),pt.ensureSpacesExists(e),typeof e.spaces=="number"&&(e.spaces=Array(e.spaces+1).join(" ")),pt.ensureKeyExists("declaration",e),pt.ensureKeyExists("instruction",e),pt.ensureKeyExists("attributes",e),pt.ensureKeyExists("text",e),pt.ensureKeyExists("comment",e),pt.ensureKeyExists("cdata",e),pt.ensureKeyExists("doctype",e),pt.ensureKeyExists("type",e),pt.ensureKeyExists("name",e),pt.ensureKeyExists("elements",e),e}function on(r,e,t){return(!t&&r.spaces?`
|
|
`:"")+Array(e+1).join(r.spaces)}function za(r,e,t){if(e.ignoreAttributes)return"";"attributesFn"in e&&(r=e.attributesFn(r,fr,hr));var n,i,o,a,s=[];for(n in r)r.hasOwnProperty(n)&&r[n]!==null&&r[n]!==void 0&&(a=e.noQuotesForNativeAttributes&&typeof r[n]!="string"?"":'"',i=""+r[n],i=i.replace(/"/g,"""),o="attributeNameFn"in e?e.attributeNameFn(n,i,fr,hr):n,s.push(e.spaces&&e.indentAttributes?on(e,t+1,!1):" "),s.push(o+"="+a+("attributeValueFn"in e?e.attributeValueFn(i,n,fr,hr):i)+a));return r&&Object.keys(r).length&&e.spaces&&e.indentAttributes&&s.push(on(e,t,!1)),s.join("")}function k0(r,e,t){return hr=r,fr="xml",e.ignoreDeclaration?"":"<?xml"+za(r[e.attributesKey],e,t)+"?>"}function Z0(r,e,t){if(e.ignoreInstruction)return"";var n;for(n in r)if(r.hasOwnProperty(n))break;var i="instructionNameFn"in e?e.instructionNameFn(n,r[n],fr,hr):n;if(typeof r[n]=="object")return hr=r,fr=i,"<?"+i+za(r[n][e.attributesKey],e,t)+"?>";var o=r[n]?r[n]:"";return"instructionFn"in e&&(o=e.instructionFn(o,n,fr,hr)),"<?"+i+(o?" "+o:"")+"?>"}function Q0(r,e){return e.ignoreComment?"":"<!--"+("commentFn"in e?e.commentFn(r,fr,hr):r)+"-->"}function K0(r,e){return e.ignoreCdata?"":"<![CDATA["+("cdataFn"in e?e.cdataFn(r,fr,hr):r.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function H0(r,e){return e.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in e?e.doctypeFn(r,fr,hr):r)+">"}function Fc(r,e){return e.ignoreText?"":(r=""+r,r=r.replace(/&/g,"&"),r=r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in e?e.textFn(r,fr,hr):r)}function hw(r,e){var t;if(r.elements&&r.elements.length)for(t=0;t<r.elements.length;++t)switch(r.elements[t][e.typeKey]){case"text":if(e.indentText)return!0;break;case"cdata":if(e.indentCdata)return!0;break;case"instruction":if(e.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function fw(r,e,t){hr=r,fr=r.name;var n=[],i="elementNameFn"in e?e.elementNameFn(r.name,r):r.name;n.push("<"+i),r[e.attributesKey]&&n.push(za(r[e.attributesKey],e,t));var o=r[e.elementsKey]&&r[e.elementsKey].length||r[e.attributesKey]&&r[e.attributesKey]["xml:space"]==="preserve";return o||("fullTagEmptyElementFn"in e?o=e.fullTagEmptyElementFn(r.name,r):o=e.fullTagEmptyElement),o?(n.push(">"),r[e.elementsKey]&&r[e.elementsKey].length&&(n.push(B0(r[e.elementsKey],e,t+1)),hr=r,fr=r.name),n.push(e.spaces&&hw(r,e)?`
|
|
`+Array(t+1).join(e.spaces):""),n.push("</"+i+">")):n.push("/>"),n.join("")}function B0(r,e,t,n){return r.reduce(function(i,o){var a=on(e,t,n&&!i);switch(o.type){case"element":return i+a+fw(o,e,t);case"comment":return i+a+Q0(o[e.commentKey],e);case"doctype":return i+a+H0(o[e.doctypeKey],e);case"cdata":return i+(e.indentCdata?a:"")+K0(o[e.cdataKey],e);case"text":return i+(e.indentText?a:"")+Fc(o[e.textKey],e);case"instruction":var s={};return s[o[e.nameKey]]=o[e.attributesKey]?o:o[e.instructionKey],i+(e.indentInstruction?a:"")+Z0(s,e,t)}},"")}function G0(r,e,t){var n;for(n in r)if(r.hasOwnProperty(n))switch(n){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||t)return!0;break;case e.cdataKey:if(e.indentCdata||t)return!0;break;case e.instructionKey:if(e.indentInstruction||t)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function dw(r,e,t,n,i){hr=r,fr=e;var o="elementNameFn"in t?t.elementNameFn(e,r):e;if(typeof r=="undefined"||r===null||r==="")return"fullTagEmptyElementFn"in t&&t.fullTagEmptyElementFn(e,r)||t.fullTagEmptyElement?"<"+o+"></"+o+">":"<"+o+"/>";var a=[];if(e){if(a.push("<"+o),typeof r!="object")return a.push(">"+Fc(r,t)+"</"+o+">"),a.join("");r[t.attributesKey]&&a.push(za(r[t.attributesKey],t,n));var s=G0(r,t,!0)||r[t.attributesKey]&&r[t.attributesKey]["xml:space"]==="preserve";if(s||("fullTagEmptyElementFn"in t?s=t.fullTagEmptyElementFn(e,r):s=t.fullTagEmptyElement),s)a.push(">");else return a.push("/>"),a.join("")}return a.push(J0(r,t,n+1,!1)),hr=r,fr=e,e&&a.push((i?on(t,n,!1):"")+"</"+o+">"),a.join("")}function J0(r,e,t,n){var i,o,a,s=[];for(o in r)if(r.hasOwnProperty(o))for(a=cw(r[o])?r[o]:[r[o]],i=0;i<a.length;++i){switch(o){case e.declarationKey:s.push(k0(a[i],e,t));break;case e.instructionKey:s.push((e.indentInstruction?on(e,t,n):"")+Z0(a[i],e,t));break;case e.attributesKey:case e.parentKey:break;case e.textKey:s.push((e.indentText?on(e,t,n):"")+Fc(a[i],e));break;case e.cdataKey:s.push((e.indentCdata?on(e,t,n):"")+K0(a[i],e));break;case e.doctypeKey:s.push(on(e,t,n)+H0(a[i],e));break;case e.commentKey:s.push(on(e,t,n)+Q0(a[i],e));break;default:s.push(on(e,t,n)+dw(a[i],o,e,t,G0(a[i],e)))}n=n&&!s.length}return s.join("")}var z0=function(r,e){e=uw(e);var t=[];return hr=r,fr="_root_",e.compact?t.push(J0(r,e,0,!0)):(r[e.declarationKey]&&t.push(k0(r[e.declarationKey],e,0)),r[e.elementsKey]&&r[e.elementsKey].length&&t.push(B0(r[e.elementsKey],e,0,!t.length))),t.join("")},pw=z0,gw=function(r,e){r instanceof Buffer&&(r=r.toString());var t=null;if(typeof r=="string")try{t=JSON.parse(r)}catch{throw new Error("The JSON structure is invalid")}else t=r;return pw(t,e)},Rw=Y0,mw=lw,vw=z0,yw=gw,$0={xml2js:Rw,xml2json:mw,js2xml:vw,json2xml:yw};const Cc=r=>{switch(r.type){case void 0:case"element":const e=new Sw(r.name,r.attributes),t=r.elements||[];for(const n of t){const i=Cc(n);i!==void 0&&e.push(i)}return e;case"text":return r.text;default:return}};class ww extends _e{}class Sw extends de{static fromXmlString(e){const t=$0.xml2js(e,{compact:!1});return Cc(t)}constructor(e,t){super(e),t&&this.root.push(new ww(t))}push(e){this.root.push(e)}}class xw extends de{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}class j0 extends de{constructor(e,t){super(e),t&&(this.root=t.root)}}const dr=r=>{if(isNaN(r))throw new Error(`Invalid value '${r}' specified. Must be an integer.`);return Math.floor(r)},$a=r=>{const e=dr(r);if(e<0)throw new Error(`Invalid value '${r}' specified. Must be a positive integer.`);return e},q0=(r,e)=>{const t=e*2;if(r.length!==t||isNaN(Number(`0x${r}`)))throw new Error(`Invalid hex value '${r}'. Expected ${t} digit hex value`);return r},tf=r=>q0(r,1),Ac=r=>{const e=r.slice(-2),t=r.substring(0,r.length-2);return`${Number(t)}${e}`},ep=r=>{const e=Ac(r);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},Ui=r=>{if(r==="auto")return r;const e=r.charAt(0)==="#"?r.substring(1):r;return q0(e,3)},vn=r=>typeof r=="string"?Ac(r):dr(r),bw=r=>typeof r=="string"?ep(r):$a(r),or=r=>typeof r=="string"?ep(r):$a(r),Ow=r=>{const e=r.substring(0,r.length-1);return`${Number(e)}%`},Tw=r=>typeof r=="number"?dr(r):r.slice(-1)==="%"?Ow(r):Ac(r),Pw=$a,Ew=$a,_w=r=>r.toISOString();class be extends de{constructor(e,t=!0){super(e),t!==!0&&this.root.push(new Ft({val:t}))}}class ul extends de{constructor(e,t){super(e),this.root.push(new Ft({val:bw(t)}))}}class Iw extends de{}class qn extends de{constructor(e,t){super(e),this.root.push(new Ft({val:t}))}}const io=(r,e)=>new pr({name:r,attributes:{value:{key:"w:val",value:e}}});class Dc extends de{constructor(e,t){super(e),this.root.push(new Ft({val:t}))}}class Nw extends de{constructor(e,t){super(e),this.root.push(new Ft({val:t}))}}class Vn extends de{constructor(e,t){super(e),this.root.push(t)}}class pr extends de{constructor({name:e,attributes:t,children:n}){super(e),t&&this.root.push(new bn(t)),n&&this.root.push(...n)}}const en={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"};class Mw extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{val:"w:val"})}}class tp extends de{constructor(e){super("w:jc"),this.root.push(new Mw({val:e}))}}class ut extends de{constructor(e,{color:t,size:n,space:i,style:o}){super(e),this.root.push(new Lw({style:o,color:t===void 0?void 0:Ui(t),size:n===void 0?void 0:Pw(n),space:i===void 0?void 0:Ew(i)}))}}class Lw extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const Xc={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"};class Fw extends xn{constructor(e){super("w:pBdr"),e.top&&this.root.push(new ut("w:top",e.top)),e.bottom&&this.root.push(new ut("w:bottom",e.bottom)),e.left&&this.root.push(new ut("w:left",e.left)),e.right&&this.root.push(new ut("w:right",e.right))}}class Cw extends de{constructor(){super("w:pBdr");const e=new ut("w:bottom",{color:"auto",space:1,style:Xc.SINGLE,size:6});this.root.push(e)}}class Aw extends de{constructor({start:e,end:t,left:n,right:i,hanging:o,firstLine:a}){super("w:ind"),this.root.push(new bn({start:{key:"w:start",value:e===void 0?void 0:vn(e)},end:{key:"w:end",value:t===void 0?void 0:vn(t)},left:{key:"w:left",value:n===void 0?void 0:vn(n)},right:{key:"w:right",value:i===void 0?void 0:vn(i)},hanging:{key:"w:hanging",value:o===void 0?void 0:or(o)},firstLine:{key:"w:firstLine",value:a===void 0?void 0:or(a)}}))}}let Dw=class extends de{constructor(){super("w:br")}};const Uc={BEGIN:"begin",END:"end",SEPARATE:"separate"};class Wc extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class ta extends de{constructor(e){super("w:fldChar"),this.root.push(new Wc({type:Uc.BEGIN,dirty:e}))}}class ra extends de{constructor(e){super("w:fldChar"),this.root.push(new Wc({type:Uc.SEPARATE,dirty:e}))}}class na extends de{constructor(e){super("w:fldChar"),this.root.push(new Wc({type:Uc.END,dirty:e}))}}const Wi={DEFAULT:"default",PRESERVE:"preserve"};class Vi extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{space:"xml:space"})}}class Xw extends de{constructor(){super("w:instrText"),this.root.push(new Vi({space:Wi.PRESERVE})),this.root.push("PAGE")}}class Uw extends de{constructor(){super("w:instrText"),this.root.push(new Vi({space:Wi.PRESERVE})),this.root.push("NUMPAGES")}}class Ww extends de{constructor(){super("w:instrText"),this.root.push(new Vi({space:Wi.PRESERVE})),this.root.push("SECTIONPAGES")}}class Vw extends de{constructor(){super("w:instrText"),this.root.push(new Vi({space:Wi.PRESERVE})),this.root.push("SECTION")}}class Yw extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class ja extends de{constructor({fill:e,color:t,type:n}){super("w:shd"),this.root.push(new Yw({fill:e===void 0?void 0:Ui(e),color:t===void 0?void 0:Ui(t),type:n}))}}class kw extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const Zw={DOT:"dot"};class Qw extends de{constructor(e){super("w:em"),this.root.push(new Ft({val:e}))}}class Kw extends Qw{constructor(e=Zw.DOT){super(e)}}class Hw extends de{constructor(e){super("w:spacing"),this.root.push(new Ft({val:vn(e)}))}}class Bw extends de{constructor(e){super("w:color"),this.root.push(new Ft({val:Ui(e)}))}}class Gw extends de{constructor(e){super("w:highlight"),this.root.push(new Ft({val:e}))}}class Jw extends de{constructor(e){super("w:highlightCs"),this.root.push(new Ft({val:e}))}}const zw=r=>new pr({name:"w:lang",attributes:{value:{key:"w:val",value:r.value},eastAsia:{key:"w:eastAsia",value:r.eastAsia},bidirectional:{key:"w:bidi",value:r.bidirectional}}});class rf extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class hl extends de{constructor(e,t){if(super("w:rFonts"),typeof e=="string"){const n=e;this.root.push(new rf({ascii:n,cs:n,eastAsia:n,hAnsi:n,hint:t}))}else{const n=e;this.root.push(new rf(n))}}}let rp=class extends de{constructor(e){super("w:vertAlign"),this.root.push(new Ft({val:e}))}};class $w extends rp{constructor(){super("superscript")}}class jw extends rp{constructor(){super("subscript")}}const np={SINGLE:"single",WORDS:"words",DOUBLE:"double",THICK:"thick",DOTTED:"dotted",DOTTEDHEAVY:"dottedHeavy",DASH:"dash",DASHEDHEAVY:"dashedHeavy",DASHLONG:"dashLong",DASHLONGHEAVY:"dashLongHeavy",DOTDASH:"dotDash",DASHDOTHEAVY:"dashDotHeavy",DOTDOTDASH:"dotDotDash",DASHDOTDOTHEAVY:"dashDotDotHeavy",WAVE:"wave",WAVYHEAVY:"wavyHeavy",WAVYDOUBLE:"wavyDouble",NONE:"none"};class qw extends de{constructor(e=np.SINGLE,t){super("w:u"),this.root.push(new Ft({val:e,color:t===void 0?void 0:Ui(t)}))}}class ii extends xn{constructor(e){var t,n;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new be("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new be("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new be("w:bCs",(t=e.boldComplexScript)!=null?t:e.bold)),e.italics!==void 0&&this.push(new be("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new be("w:iCs",(n=e.italicsComplexScript)!=null?n:e.italics)),e.underline&&this.push(new qw(e.underline.type,e.underline.color)),e.effect&&this.push(new qn("w:effect",e.effect)),e.emphasisMark&&this.push(new Kw(e.emphasisMark.type)),e.color&&this.push(new Bw(e.color)),e.kern&&this.push(new ul("w:kern",e.kern)),e.position&&this.push(new qn("w:position",e.position)),e.size!==void 0&&this.push(new ul("w:sz",e.size));const i=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;i&&this.push(new ul("w:szCs",i)),e.rightToLeft!==void 0&&this.push(new be("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new be("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new be("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new be("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new be("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new jw),e.superScript&&this.push(new $w),e.style&&this.push(new qn("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new hl(e.font)):"name"in e.font?this.push(new hl(e.font.name,e.font.hint)):this.push(new hl(e.font))),e.highlight&&this.push(new Gw(e.highlight));const o=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;o&&this.push(new Jw(o)),e.characterSpacing&&this.push(new Hw(e.characterSpacing)),e.emboss!==void 0&&this.push(new be("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new be("w:imprint",e.imprint)),e.shading&&this.push(new ja(e.shading)),e.revision&&this.push(new eS(e.revision)),e.border&&this.push(new ut("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new be("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new be("w:vanish",e.vanish)),e.specVanish&&this.push(new be("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new Dc("w:w",e.scale)),e.language&&this.push(zw(e.language)),e.math&&this.push(new be("w:oMath",e.math))}push(e){this.root.push(e)}}class eS extends de{constructor(e){super("w:rPrChange"),this.root.push(new kw({id:e.id,author:e.author,date:e.date})),this.addChildElement(new ii(e))}}class zl extends de{constructor(e){var t;return super("w:t"),typeof e=="string"?(this.root.push(new Vi({space:Wi.PRESERVE})),this.root.push(e),this):(this.root.push(new Vi({space:(t=e.space)!=null?t:Wi.DEFAULT})),this.root.push(e.text),this)}}const ia={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class Do extends de{constructor(e){if(super("w:r"),pe(this,"properties"),this.properties=new ii(e),this.root.push(this.properties),e.break)for(let t=0;t<e.break;t++)this.root.push(new Dw);if(e.children)for(const t of e.children){if(typeof t=="string"){switch(t){case ia.CURRENT:this.root.push(new ta),this.root.push(new Xw),this.root.push(new ra),this.root.push(new na);break;case ia.TOTAL_PAGES:this.root.push(new ta),this.root.push(new Uw),this.root.push(new ra),this.root.push(new na);break;case ia.TOTAL_PAGES_IN_SECTION:this.root.push(new ta),this.root.push(new Ww),this.root.push(new ra),this.root.push(new na);break;case ia.CURRENT_SECTION:this.root.push(new ta),this.root.push(new Vw),this.root.push(new ra),this.root.push(new na);break;default:this.root.push(new zl(t));break}continue}this.root.push(t)}else e.text&&this.root.push(new zl(e.text))}}class Li extends Do{constructor(e){if(typeof e=="string")return super({}),this.root.push(new zl(e)),this;super(e)}}let tS="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",rS=(r,e=21)=>(t=e)=>{let n="",i=t;for(;i--;)n+=r[Math.random()*r.length|0];return n},nS=(r=21)=>{let e="",t=r;for(;t--;)e+=tS[Math.random()*64|0];return e};const Qr=r=>Math.floor(r*72*20),qa=(r=0)=>{let e=r;return()=>++e},iS=()=>qa(),oS=()=>qa(1),aS=()=>qa(),sS=()=>qa(),ip=()=>nS().toLowerCase(),oo=r=>rS("1234567890abcdef",r)(),lS=()=>`${oo(8)}-${oo(4)}-${oo(4)}-${oo(4)}-${oo(12)}`,cS={CHARACTER:"character",COLUMN:"column",INSIDE_MARGIN:"insideMargin",LEFT_MARGIN:"leftMargin",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",RIGHT_MARGIN:"rightMargin"},uS={BOTTOM_MARGIN:"bottomMargin",INSIDE_MARGIN:"insideMargin",LINE:"line",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",PARAGRAPH:"paragraph",TOP_MARGIN:"topMargin"};class hS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{x:"x",y:"y"})}}class fS extends de{constructor(){super("wp:simplePos"),this.root.push(new hS({x:0,y:0}))}}class op extends de{constructor(e){super("wp:align"),this.root.push(e)}}class ap extends de{constructor(e){super("wp:posOffset"),this.root.push(e.toString())}}class dS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{relativeFrom:"relativeFrom"})}}class pS extends de{constructor(e){if(super("wp:positionH"),this.root.push(new dS({relativeFrom:e.relative||cS.PAGE})),e.align)this.root.push(new op(e.align));else if(e.offset!==void 0)this.root.push(new ap(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}}class gS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{relativeFrom:"relativeFrom"})}}class RS extends de{constructor(e){if(super("wp:positionV"),this.root.push(new gS({relativeFrom:e.relative||uS.PAGE})),e.align)this.root.push(new op(e.align));else if(e.offset!==void 0)this.root.push(new ap(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}}class mS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{uri:"uri"})}}class vS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{embed:"r:embed",cstate:"cstate"})}}class yS extends de{constructor(e){super("a:blip"),this.root.push(new vS({embed:`rId{${e.fileName}}`,cstate:"none"}))}}class wS extends de{constructor(){super("a:srcRect")}}class SS extends de{constructor(){super("a:fillRect")}}class xS extends de{constructor(){super("a:stretch"),this.root.push(new SS)}}class bS extends de{constructor(e){super("pic:blipFill"),this.root.push(new yS(e)),this.root.push(new wS),this.root.push(new xS)}}class OS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}}class TS extends de{constructor(){super("a:picLocks"),this.root.push(new OS({noChangeAspect:1,noChangeArrowheads:1}))}}class PS extends de{constructor(){super("pic:cNvPicPr"),this.root.push(new TS)}}const sp=(r,e)=>new pr({name:"a:hlinkClick",attributes:Di($e({},e?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${r}`}})});class ES extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}}class _S extends de{constructor(){super("pic:cNvPr"),this.root.push(new ES({id:0,name:"",descr:""}))}prepForXml(e){for(let t=e.stack.length-1;t>=0;t--){const n=e.stack[t];if(n instanceof Vc){this.root.push(sp(n.linkId,!1));break}}return super.prepForXml(e)}}class IS extends de{constructor(){super("pic:nvPicPr"),this.root.push(new _S),this.root.push(new PS)}}class NS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{xmlns:"xmlns:pic"})}}class MS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class LS extends de{constructor(e,t){super("a:ext"),pe(this,"attributes"),this.attributes=new MS({cx:e,cy:t}),this.root.push(this.attributes)}}class FS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{x:"x",y:"y"})}}class CS extends de{constructor(){super("a:off"),this.root.push(new FS({x:0,y:0}))}}class AS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}}class DS extends de{constructor(e){var t,n;super("a:xfrm"),pe(this,"extents"),this.root.push(new AS({flipVertical:(t=e.flip)==null?void 0:t.vertical,flipHorizontal:(n=e.flip)==null?void 0:n.horizontal,rotation:e.rotation})),this.extents=new LS(e.emus.x,e.emus.y),this.root.push(new CS),this.root.push(this.extents)}}const lp=()=>new pr({name:"a:noFill"}),XS=r=>new pr({name:"a:schemeClr",attributes:{value:{key:"val",value:r.value}}}),US=r=>new pr({name:"a:srgbClr",attributes:{value:{key:"val",value:r.value}}}),nf=r=>new pr({name:"a:solidFill",children:[r.type==="rgb"?US(r):XS(r)]}),WS=r=>new pr({name:"a:ln",attributes:{width:{key:"w",value:r.width},cap:{key:"cap",value:r.cap},compoundLine:{key:"cmpd",value:r.compoundLine},align:{key:"algn",value:r.align}},children:[r.type==="noFill"?lp():r.solidFillType==="rgb"?nf({type:"rgb",value:r.value}):nf({type:"scheme",value:r.value})]});class VS extends de{constructor(){super("a:avLst")}}class YS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{prst:"prst"})}}class kS extends de{constructor(){super("a:prstGeom"),this.root.push(new YS({prst:"rect"})),this.root.push(new VS)}}class ZS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{bwMode:"bwMode"})}}class QS extends de{constructor({outline:e,transform:t}){super("pic:spPr"),pe(this,"form"),this.root.push(new ZS({bwMode:"auto"})),this.form=new DS(t),this.root.push(this.form),this.root.push(new kS),e&&(this.root.push(lp()),this.root.push(WS(e)))}}class KS extends de{constructor({mediaData:e,transform:t,outline:n}){super("pic:pic"),this.root.push(new NS({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new IS),this.root.push(new bS(e)),this.root.push(new QS({transform:t,outline:n}))}}class HS extends de{constructor({mediaData:e,transform:t,outline:n}){super("a:graphicData"),pe(this,"pic"),this.root.push(new mS({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new KS({mediaData:e,transform:t,outline:n}),this.root.push(this.pic)}}class BS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{a:"xmlns:a"})}}class cp extends de{constructor({mediaData:e,transform:t,outline:n}){super("a:graphic"),pe(this,"data"),this.root.push(new BS({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new HS({mediaData:e,transform:t,outline:n}),this.root.push(this.data)}}const oa={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},GS={BOTH_SIDES:"bothSides",LEFT:"left",RIGHT:"right",LARGEST:"largest"};class of extends de{constructor(){super("wp:wrapNone")}}class JS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}}class zS extends de{constructor(e,t={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new JS({wrapText:e.side||GS.BOTH_SIDES,distT:t.top,distB:t.bottom,distL:t.left,distR:t.right}))}}class $S extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class jS extends de{constructor(e={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new $S({distT:e.top,distB:e.bottom}))}}class qS extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class ex extends de{constructor(e={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new qS({distT:e.top,distB:e.bottom}))}}class up extends de{constructor({name:e,description:t,title:n}={name:"",description:"",title:""}){super("wp:docPr"),pe(this,"docPropertiesUniqueNumericId",aS()),this.root.push(new bn({id:{key:"id",value:this.docPropertiesUniqueNumericId()},name:{key:"name",value:e},description:{key:"descr",value:t},title:{key:"title",value:n}}))}prepForXml(e){for(let t=e.stack.length-1;t>=0;t--){const n=e.stack[t];if(n instanceof Vc){this.root.push(sp(n.linkId,!0));break}}return super.prepForXml(e)}}const hp=({top:r,right:e,bottom:t,left:n})=>new pr({name:"wp:effectExtent",attributes:{top:{key:"t",value:r},right:{key:"r",value:e},bottom:{key:"b",value:t},left:{key:"l",value:n}}});class tx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class fp extends de{constructor(e,t){super("wp:extent"),pe(this,"attributes"),this.attributes=new tx({cx:e,cy:t}),this.root.push(this.attributes)}}class rx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}}class nx extends de{constructor(){super("a:graphicFrameLocks"),this.root.push(new rx({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}class dp extends de{constructor(){super("wp:cNvGraphicFramePr"),this.root.push(new nx)}}class ix extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}}class ox extends de{constructor({mediaData:e,transform:t,drawingOptions:n}){super("wp:anchor");const i=$e({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},n.floating);if(this.root.push(new ix({distT:i.margins&&i.margins.top||0,distB:i.margins&&i.margins.bottom||0,distL:i.margins&&i.margins.left||0,distR:i.margins&&i.margins.right||0,simplePos:"0",allowOverlap:i.allowOverlap===!0?"1":"0",behindDoc:i.behindDocument===!0?"1":"0",locked:i.lockAnchor===!0?"1":"0",layoutInCell:i.layoutInCell===!0?"1":"0",relativeHeight:i.zIndex?i.zIndex:t.emus.y})),this.root.push(new fS),this.root.push(new pS(i.horizontalPosition)),this.root.push(new RS(i.verticalPosition)),this.root.push(new fp(t.emus.x,t.emus.y)),this.root.push(hp({top:0,right:0,bottom:0,left:0})),n.floating!==void 0&&n.floating.wrap!==void 0)switch(n.floating.wrap.type){case oa.SQUARE:this.root.push(new zS(n.floating.wrap,n.floating.margins));break;case oa.TIGHT:this.root.push(new jS(n.floating.margins));break;case oa.TOP_AND_BOTTOM:this.root.push(new ex(n.floating.margins));break;case oa.NONE:default:this.root.push(new of)}else this.root.push(new of);this.root.push(new up(n.docProperties)),this.root.push(new dp),this.root.push(new cp({mediaData:e,transform:t,outline:n.outline}))}}const ax=({mediaData:r,transform:e,docProperties:t,outline:n})=>{var i,o,a,s;return new pr({name:"wp:inline",attributes:{distanceTop:{key:"distT",value:0},distanceBottom:{key:"distB",value:0},distanceLeft:{key:"distL",value:0},distanceRight:{key:"distR",value:0}},children:[new fp(e.emus.x,e.emus.y),hp(n?{top:((i=n.width)!=null?i:9525)*2,right:((o=n.width)!=null?o:9525)*2,bottom:((a=n.width)!=null?a:9525)*2,left:((s=n.width)!=null?s:9525)*2}:{top:0,right:0,bottom:0,left:0}),new up(t),new dp,new cp({mediaData:r,transform:e,outline:n})]})};class sx extends de{constructor(e,t={}){super("w:drawing"),t.floating?this.root.push(new ox({mediaData:e,transform:e.transformation,drawingOptions:t})):this.root.push(ax({mediaData:e,transform:e.transformation,docProperties:t.docProperties,outline:t.outline}))}}class lx extends Do{constructor(e){super({}),pe(this,"key",`${ip()}.png`),pe(this,"imageData");const t=typeof e.data=="string"?this.convertDataURIToBinary(e.data):e.data;this.imageData={stream:t,fileName:this.key,transformation:{pixels:{x:Math.round(e.transformation.width),y:Math.round(e.transformation.height)},emus:{x:Math.round(e.transformation.width*9525),y:Math.round(e.transformation.height*9525)},flip:e.transformation.flip,rotation:e.transformation.rotation?e.transformation.rotation*6e4:void 0}};const n=new sx(this.imageData,{floating:e.floating,docProperties:e.altText,outline:e.outline});this.root.push(n)}prepForXml(e){return e.file.Media.addImage(this.key,this.imageData),super.prepForXml(e)}convertDataURIToBinary(e){if(typeof atob=="function"){const t=";base64,",n=e.indexOf(t),i=n===-1?0:n+t.length;return new Uint8Array(atob(e.substring(i)).split("").map(o=>o.charCodeAt(0)))}else{const t=require("buffer");return new t.Buffer(e,"base64")}}}class cx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class ux extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class hx extends de{constructor({id:e,initials:t,author:n,date:i=new Date,children:o}){super("w:comment"),this.root.push(new cx({id:e,initials:t,author:n,date:i.toISOString()}));for(const a of o)this.root.push(a)}}class fx extends de{constructor({children:e}){super("w:comments"),this.root.push(new ux({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const t of e)this.root.push(new hx(t))}}class dx extends Iw{constructor(){super("w:tab")}}class px extends de{constructor(){super("w:pageBreakBefore")}}const $l={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"};class gx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"})}}class Rx extends de{constructor(e){super("w:spacing"),this.root.push(new gx(e))}}const ui={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"};let aa=class extends de{constructor(e){super("w:pStyle"),this.root.push(new Ft({val:e}))}};class mx extends de{constructor(e){super("w:tabs");for(const t of e)this.root.push(new yx(t))}}const af={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};class vx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class yx extends de{constructor({type:e,position:t,leader:n}){super("w:tab"),this.root.push(new vx({val:e,pos:t,leader:n}))}}class sf extends de{constructor(e,t){super("w:numPr"),this.root.push(new wx(t)),this.root.push(new Sx(e))}}class wx extends de{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Ft({val:e}))}}class Sx extends de{constructor(e){super("w:numId"),this.root.push(new Ft({val:typeof e=="string"?`{${e}}`:e}))}}class pp extends de{constructor(){super(...arguments),pe(this,"fileChild",Symbol())}}class xx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const bx={EXTERNAL:"External"};class Ox extends de{constructor(e,t,n,i){super("Relationship"),this.root.push(new xx({id:e,type:t,target:n,targetMode:i}))}}class Tx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class Vc extends de{constructor(e,t,n){super("w:hyperlink"),pe(this,"linkId"),this.linkId=t;const i={history:1,anchor:n||void 0,id:n?void 0:`rId${this.linkId}`},o=new Tx(i);this.root.push(o),e.forEach(a=>{this.root.push(a)})}}class gp extends de{constructor(e){super("w:externalHyperlink"),this.options=e}}class Px extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class Ex extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{id:"w:id"})}}class _x{constructor(e){pe(this,"bookmarkUniqueNumericId",sS()),pe(this,"start"),pe(this,"children"),pe(this,"end");const t=this.bookmarkUniqueNumericId();this.start=new Ix(e.id,t),this.children=e.children,this.end=new Nx(t)}}class Ix extends de{constructor(e,t){super("w:bookmarkStart");const n=new Px({name:e,id:t});this.root.push(n)}}class Nx extends de{constructor(e){super("w:bookmarkEnd");const t=new Ex({id:e});this.root.push(t)}}class Mx extends de{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new Ft({val:e}))}}class Lx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{verticalAlign:"w:val"})}}class Rp extends de{constructor(e){super("w:vAlign"),this.root.push(new Lx({verticalAlign:e}))}}const Fi={DEFAULT:"default",FIRST:"first",EVEN:"even"};class Fx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const lf={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class fl extends de{constructor(e,t){super(e),this.root.push(new Fx({type:t.type||Fi.DEFAULT,id:`rId${t.id}`}))}}class Cx extends de{constructor({space:e,count:t,separate:n,equalWidth:i,children:o}){super("w:cols"),this.root.push(new bn({space:{key:"w:space",value:e===void 0?void 0:or(e)},count:{key:"w:num",value:t===void 0?void 0:dr(t)},separate:{key:"w:sep",value:n},equalWidth:{key:"w:equalWidth",value:i}})),!i&&o&&o.forEach(a=>this.addChildElement(a))}}class Ax extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class Dx extends de{constructor(e,t,n){super("w:docGrid"),this.root.push(new Ax({type:n,linePitch:dr(e),charSpace:t?dr(t):void 0}))}}const Xx=({countBy:r,start:e,restart:t,distance:n})=>new pr({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:r===void 0?void 0:dr(r)},start:{key:"w:start",value:e===void 0?void 0:dr(e)},restart:{key:"w:restart",value:t},distance:{key:"w:distance",value:n===void 0?void 0:or(n)}}});class cf extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class Ux extends xn{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new cf({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new cf({})),e.pageBorderTop&&this.root.push(new ut("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new ut("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new ut("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new ut("w:right",e.pageBorderRight))}}class Wx extends de{constructor(e,t,n,i,o,a,s){super("w:pgMar"),this.root.push(new bn({top:{key:"w:top",value:vn(e)},right:{key:"w:right",value:or(t)},bottom:{key:"w:bottom",value:vn(n)},left:{key:"w:left",value:or(i)},header:{key:"w:header",value:or(o)},footer:{key:"w:footer",value:or(a)},gutter:{key:"w:gutter",value:or(s)}}))}}class Vx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class Yx extends de{constructor({start:e,formatType:t,separator:n}){super("w:pgNumType"),this.root.push(new Vx({start:e===void 0?void 0:dr(e),formatType:t,separator:n}))}}const mp={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class kx extends de{constructor(e,t,n){super("w:pgSz");const i=n===mp.LANDSCAPE,o=or(e),a=or(t);this.root.push(new bn({width:{key:"w:w",value:i?a:o},height:{key:"w:h",value:i?o:a},orientation:{key:"w:orient",value:n}}))}}class Zx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{val:"w:val"})}}class Qx extends de{constructor(e){super("w:textDirection"),this.root.push(new Zx({val:e}))}}class Kx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{val:"w:val"})}}class Hx extends de{constructor(e){super("w:type"),this.root.push(new Kx({val:e}))}}const Yn={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},dl={WIDTH:11906,HEIGHT:16838,ORIENTATION:mp.PORTRAIT};class Bx extends de{constructor({page:{size:{width:e=dl.WIDTH,height:t=dl.HEIGHT,orientation:n=dl.ORIENTATION}={},margin:{top:i=Yn.TOP,right:o=Yn.RIGHT,bottom:a=Yn.BOTTOM,left:s=Yn.LEFT,header:l=Yn.HEADER,footer:c=Yn.FOOTER,gutter:u=Yn.GUTTER}={},pageNumbers:h={},borders:d,textDirection:f}={},grid:{linePitch:p=360,charSpace:g,type:v}={},headerWrapperGroup:R={},footerWrapperGroup:m={},lineNumbers:x,titlePage:T,verticalAlign:P,column:A,type:D}={}){super("w:sectPr"),this.addHeaderFooterGroup(lf.HEADER,R),this.addHeaderFooterGroup(lf.FOOTER,m),D&&this.root.push(new Hx(D)),this.root.push(new kx(e,t,n)),this.root.push(new Wx(i,o,a,s,l,c,u)),d&&this.root.push(new Ux(d)),x&&this.root.push(Xx(x)),this.root.push(new Yx(h)),A&&this.root.push(new Cx(A)),P&&this.root.push(new Rp(P)),T!==void 0&&this.root.push(new be("w:titlePg",T)),f&&this.root.push(new Qx(f)),this.root.push(new Dx(p,g,v))}addHeaderFooterGroup(e,t){t.default&&this.root.push(new fl(e,{type:Fi.DEFAULT,id:t.default.View.ReferenceId})),t.first&&this.root.push(new fl(e,{type:Fi.FIRST,id:t.first.View.ReferenceId})),t.even&&this.root.push(new fl(e,{type:Fi.EVEN,id:t.even.View.ReferenceId}))}}class Gx extends de{constructor(){super("w:body"),pe(this,"sections",[])}addSection(e){const t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new Bx(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const t=new An({}),n=new Yi({});return n.push(e),t.addChildElement(n),t}}class Xo extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",aink:"xmlns:aink",am3d:"xmlns:am3d",w16cex:"xmlns:w16cex",w16cid:"xmlns:w16cid",w16:"xmlns:w16",w16sdtdh:"xmlns:w16sdtdh",w16se:"xmlns:w16se"})}}class Jx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class zx extends de{constructor(e){super("w:background"),this.root.push(new Jx({color:e.color===void 0?void 0:Ui(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:tf(e.themeShade),themeTint:e.themeTint===void 0?void 0:tf(e.themeTint)}))}}class $x extends de{constructor(e){super("w:document"),pe(this,"body"),this.root.push(new Xo({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",Ignorable:"w14 w15 wp14"})),this.body=new Gx,e.background&&this.root.push(new zx(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}}class jx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{xmlns:"xmlns"})}}class Hi extends de{constructor(){super("Relationships"),this.root.push(new jx({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,t,n,i){const o=new Ox(`rId${e}`,t,n,i);return this.root.push(o),o}get RelationshipCount(){return this.root.length-1}}class vp{constructor(e){pe(this,"document"),pe(this,"relationships"),this.document=new $x(e),this.relationships=new Hi}get View(){return this.document}get Relationships(){return this.relationships}}class qx extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{val:"w:val"})}}class eb extends de{constructor(){super("w:wordWrap"),this.root.push(new qx({val:0}))}}const tb=r=>{var e,t;return new pr({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:r.anchorLock},dropCap:{key:"w:dropCap",value:r.dropCap},width:{key:"w:w",value:r.width},height:{key:"w:h",value:r.height},x:{key:"w:x",value:r.position?r.position.x:void 0},y:{key:"w:y",value:r.position?r.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:r.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:r.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=r.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(t=r.space)==null?void 0:t.vertical},rule:{key:"w:hRule",value:r.rule},alignmentX:{key:"w:xAlign",value:r.alignment?r.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:r.alignment?r.alignment.y:void 0},lines:{key:"w:lines",value:r.lines},wrap:{key:"w:wrap",value:r.wrap}}})};class Yi extends xn{constructor(e){var t,n;if(super("w:pPr"),pe(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new aa(e.heading)),e.bullet&&this.push(new aa("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new aa("ListParagraph"))),e.style&&this.push(new aa(e.style)),e.keepNext!==void 0&&this.push(new be("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new be("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new px),e.frame&&this.push(tb(e.frame)),e.widowControl!==void 0&&this.push(new be("w:widowControl",e.widowControl)),e.bullet&&this.push(new sf(1,e.bullet.level)),e.numbering&&(this.numberingReferences.push({reference:e.numbering.reference,instance:(t=e.numbering.instance)!=null?t:0}),this.push(new sf(`${e.numbering.reference}-${(n=e.numbering.instance)!=null?n:0}`,e.numbering.level))),e.border&&this.push(new Fw(e.border)),e.thematicBreak&&this.push(new Cw),e.shading&&this.push(new ja(e.shading)),e.wordWrap&&this.push(new eb),e.overflowPunctuation&&this.push(new be("w:overflowPunct",e.overflowPunctuation));const i=[...e.rightTabStop!==void 0?[{type:af.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:af.LEFT,position:e.leftTabStop}]:[]];i.length>0&&this.push(new mx(i)),e.bidirectional!==void 0&&this.push(new be("w:bidi",e.bidirectional)),e.spacing&&this.push(new Rx(e.spacing)),e.indent&&this.push(new Aw(e.indent)),e.contextualSpacing!==void 0&&this.push(new be("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new tp(e.alignment)),e.outlineLevel!==void 0&&this.push(new Mx(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new be("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new be("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new ii(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof vp)for(const t of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(e)}}class An extends pp{constructor(e){if(super("w:p"),pe(this,"properties"),typeof e=="string")return this.properties=new Yi({}),this.root.push(this.properties),this.root.push(new Li(e)),this;if(this.properties=new Yi(e),this.root.push(this.properties),e.text&&this.root.push(new Li(e.text)),e.children)for(const t of e.children){if(t instanceof _x){this.root.push(t.start);for(const n of t.children)this.root.push(n);this.root.push(t.end);continue}this.root.push(t)}}prepForXml(e){for(const t of this.root)if(t instanceof gp){const n=this.root.indexOf(t),i=new Vc(t.options.children,ip());e.viewWrapper.Relationships.createRelationship(i.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,bx.EXTERNAL),this.root[n]=i}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}class rb extends de{constructor(e){super("m:t"),this.root.push(e)}}class nb extends de{constructor(e){super("m:r"),this.root.push(new rb(e))}}class ib extends de{constructor(e){super("w:tblGrid");for(const t of e)this.root.push(new ob(t))}}class ob extends de{constructor(e){super("w:gridCol"),e!==void 0&&this.root.push(new bn({width:{key:"w:w",value:or(e)}}))}}const yp={TABLE:"w:tblCellMar",TABLE_CELL:"w:tcMar"};class wp extends xn{constructor(e,{marginUnitType:t=Ua.DXA,top:n,left:i,bottom:o,right:a}){super(e),n!==void 0&&this.root.push(new zn("w:top",{type:t,size:n})),i!==void 0&&this.root.push(new zn("w:left",{type:t,size:i})),o!==void 0&&this.root.push(new zn("w:bottom",{type:t,size:o})),a!==void 0&&this.root.push(new zn("w:right",{type:t,size:a}))}}const Ua={AUTO:"auto",DXA:"dxa",NIL:"nil",PERCENTAGE:"pct"};class zn extends de{constructor(e,{type:t=Ua.AUTO,size:n}){super(e);let i=n;t===Ua.PERCENTAGE&&typeof n=="number"&&(i=`${n}%`),this.root.push(new bn({type:{key:"w:type",value:t},size:{key:"w:w",value:Tw(i)}}))}}class ab extends xn{constructor(e){super("w:tcBorders"),e.top&&this.root.push(new ut("w:top",e.top)),e.start&&this.root.push(new ut("w:start",e.start)),e.left&&this.root.push(new ut("w:left",e.left)),e.bottom&&this.root.push(new ut("w:bottom",e.bottom)),e.end&&this.root.push(new ut("w:end",e.end)),e.right&&this.root.push(new ut("w:right",e.right))}}class sb extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{val:"w:val"})}}class lb extends de{constructor(e){super("w:gridSpan"),this.root.push(new sb({val:dr(e)}))}}const Sp={CONTINUE:"continue",RESTART:"restart"};class cb extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{val:"w:val"})}}class uf extends de{constructor(e){super("w:vMerge"),this.root.push(new cb({val:e}))}}class ub extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{val:"w:val"})}}class hb extends de{constructor(e){super("w:textDirection"),this.root.push(new ub({val:e}))}}class fb extends xn{constructor(e){super("w:tcPr"),e.width&&this.root.push(new zn("w:tcW",e.width)),e.columnSpan&&this.root.push(new lb(e.columnSpan)),e.verticalMerge?this.root.push(new uf(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new uf(Sp.RESTART)),e.borders&&this.root.push(new ab(e.borders)),e.shading&&this.root.push(new ja(e.shading)),e.margins&&this.root.push(new wp(yp.TABLE_CELL,e.margins)),e.textDirection&&this.root.push(new hb(e.textDirection)),e.verticalAlign&&this.root.push(new Rp(e.verticalAlign))}}class Yc extends de{constructor(e){super("w:tc"),this.options=e,this.root.push(new fb(e));for(const t of e.children)this.root.push(t)}prepForXml(e){return this.root[this.root.length-1]instanceof An||this.root.push(new An({})),super.prepForXml(e)}}const hi={style:Xc.NONE,size:0,color:"auto"},fi={style:Xc.SINGLE,size:4,color:"auto"};class xp extends de{constructor(e){super("w:tblBorders"),e.top?this.root.push(new ut("w:top",e.top)):this.root.push(new ut("w:top",fi)),e.left?this.root.push(new ut("w:left",e.left)):this.root.push(new ut("w:left",fi)),e.bottom?this.root.push(new ut("w:bottom",e.bottom)):this.root.push(new ut("w:bottom",fi)),e.right?this.root.push(new ut("w:right",e.right)):this.root.push(new ut("w:right",fi)),e.insideHorizontal?this.root.push(new ut("w:insideH",e.insideHorizontal)):this.root.push(new ut("w:insideH",fi)),e.insideVertical?this.root.push(new ut("w:insideV",e.insideVertical)):this.root.push(new ut("w:insideV",fi))}}pe(xp,"NONE",{top:hi,bottom:hi,left:hi,right:hi,insideHorizontal:hi,insideVertical:hi});class db extends de{constructor({horizontalAnchor:e,verticalAnchor:t,absoluteHorizontalPosition:n,relativeHorizontalPosition:i,absoluteVerticalPosition:o,relativeVerticalPosition:a,bottomFromText:s,topFromText:l,leftFromText:c,rightFromText:u,overlap:h}){super("w:tblpPr"),this.root.push(new bn({leftFromText:{key:"w:leftFromText",value:c===void 0?void 0:or(c)},rightFromText:{key:"w:rightFromText",value:u===void 0?void 0:or(u)},topFromText:{key:"w:topFromText",value:l===void 0?void 0:or(l)},bottomFromText:{key:"w:bottomFromText",value:s===void 0?void 0:or(s)},absoluteHorizontalPosition:{key:"w:tblpX",value:n===void 0?void 0:vn(n)},absoluteVerticalPosition:{key:"w:tblpY",value:o===void 0?void 0:vn(o)},horizontalAnchor:{key:"w:horzAnchor",value:e===void 0?void 0:e},relativeHorizontalPosition:{key:"w:tblpXSpec",value:i},relativeVerticalPosition:{key:"w:tblpYSpec",value:a},verticalAnchor:{key:"w:vertAnchor",value:t}})),h&&this.root.push(new Nw("w:tblOverlap",h))}}class pb extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{type:"w:type"})}}class gb extends de{constructor(e){super("w:tblLayout"),this.root.push(new pb({type:e}))}}class Rb extends xn{constructor(e){super("w:tblPr"),e.style&&this.root.push(new qn("w:tblStyle",e.style)),e.float&&this.root.push(new db(e.float)),e.visuallyRightToLeft!==void 0&&this.root.push(new be("w:bidiVisual",e.visuallyRightToLeft)),e.width&&this.root.push(new zn("w:tblW",e.width)),e.alignment&&this.root.push(new tp(e.alignment)),e.indent&&this.root.push(new zn("w:tblInd",e.indent)),e.borders&&this.root.push(new xp(e.borders)),e.shading&&this.root.push(new ja(e.shading)),e.layout&&this.root.push(new gb(e.layout)),e.cellMargin&&this.root.push(new wp(yp.TABLE,e.cellMargin))}}class mb extends pp{constructor({rows:e,width:t,columnWidths:n=Array(Math.max(...e.map(d=>d.CellCount))).fill(100),margins:i,indent:o,float:a,layout:s,style:l,borders:c,alignment:u,visuallyRightToLeft:h}){super("w:tbl"),this.root.push(new Rb({borders:c!=null?c:{},width:t!=null?t:{size:100},indent:o,float:a,layout:s,style:l,alignment:u,cellMargin:i,visuallyRightToLeft:h})),this.root.push(new ib(n));for(const d of e)this.root.push(d);e.forEach((d,f)=>{if(f===e.length-1)return;let p=0;d.cells.forEach(g=>{if(g.options.rowSpan&&g.options.rowSpan>1){const v=new Yc({rowSpan:g.options.rowSpan-1,columnSpan:g.options.columnSpan,borders:g.options.borders,children:[],verticalMerge:Sp.CONTINUE});e[f+1].addCellToColumnIndex(v,p)}p+=g.options.columnSpan||1})})}}class vb extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{value:"w:val",rule:"w:hRule"})}}class yb extends de{constructor(e,t){super("w:trHeight"),this.root.push(new vb({value:or(e),rule:t}))}}class wb extends xn{constructor(e){super("w:trPr"),e.cantSplit!==void 0&&this.root.push(new be("w:cantSplit",e.cantSplit)),e.tableHeader!==void 0&&this.root.push(new be("w:tblHeader",e.tableHeader)),e.height&&this.root.push(new yb(e.height.value,e.height.rule))}}class Sb extends de{constructor(e){super("w:tr"),this.options=e,this.root.push(new wb(e));for(const t of e.children)this.root.push(t)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(e=>e instanceof Yc)}addCellToIndex(e,t){this.root.splice(t+1,0,e)}addCellToColumnIndex(e,t){const n=this.columnIndexToRootIndex(t,!0);this.addCellToIndex(e,n-1)}rootIndexToColumnIndex(e){if(e<1||e>=this.root.length)throw new Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let t=0;for(let n=1;n<e;n++)t+=this.root[n].options.columnSpan||1;return t}columnIndexToRootIndex(e,t=!1){if(e<0)throw new Error("cell 'columnIndex' should not less than zero");let n=0,i=1;for(;n<=e;){if(i>=this.root.length){if(t)return this.root.length;throw new Error(`cell 'columnIndex' should not great than ${n-1}`)}const o=this.root[i];i+=1,n+=o&&o.options.columnSpan||1}return i-1}}class xb extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class bb extends de{constructor(){super("Properties"),this.root.push(new xb({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class Ob extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{xmlns:"xmlns"})}}class Tb extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class Tn extends de{constructor(e,t){super("Default"),this.root.push(new Tb({contentType:e,extension:t}))}}class Pb extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class Dr extends de{constructor(e,t){super("Override"),this.root.push(new Pb({contentType:e,partName:t}))}}class Eb extends de{constructor(){super("Types"),this.root.push(new Ob({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new Tn("image/png","png")),this.root.push(new Tn("image/jpeg","jpeg")),this.root.push(new Tn("image/jpeg","jpg")),this.root.push(new Tn("image/bmp","bmp")),this.root.push(new Tn("image/gif","gif")),this.root.push(new Tn("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new Tn("application/xml","xml")),this.root.push(new Tn("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new Dr("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new Dr("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new Dr("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new Dr("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new Dr("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new Dr("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new Dr("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new Dr("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new Dr("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new Dr("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new Dr("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new Dr("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class _b extends de{constructor(e){super("cp:coreProperties"),this.root.push(new Xo({cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"})),e.title&&this.root.push(new Vn("dc:title",e.title)),e.subject&&this.root.push(new Vn("dc:subject",e.subject)),e.creator&&this.root.push(new Vn("dc:creator",e.creator)),e.keywords&&this.root.push(new Vn("cp:keywords",e.keywords)),e.description&&this.root.push(new Vn("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new Vn("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new Vn("cp:revision",String(e.revision))),this.root.push(new hf("dcterms:created")),this.root.push(new hf("dcterms:modified"))}}class hf extends de{constructor(e){super(e),this.root.push(new Xo({type:"dcterms:W3CDTF"})),this.root.push(_w(new Date))}}class Ib extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class Nb extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class Mb extends de{constructor(e,t){super("property"),this.root.push(new Nb({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:t.name})),this.root.push(new Lb(t.value))}}class Lb extends de{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class Fb extends de{constructor(e){super("Properties"),pe(this,"nextId"),pe(this,"properties",[]),this.root.push(new Ib({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const t of e)this.addCustomProperty(t)}prepForXml(e){return this.properties.forEach(t=>this.root.push(t)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new Mb(this.nextId++,e))}}class Cb extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let Ab=class extends j0{constructor(e,t){super("w:ftr",t),pe(this,"refId"),this.refId=e,t||this.root.push(new Cb({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class Db{constructor(e,t,n){pe(this,"footer"),pe(this,"relationships"),this.media=e,this.footer=new Ab(t,n),this.relationships=new Hi}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class Xb extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class Ub extends de{constructor(){super("w:footnoteRef")}}class Wb extends Do{constructor(){super({style:"FootnoteReference"}),this.root.push(new Ub)}}const ff={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class pl extends de{constructor(e){super("w:footnote"),this.root.push(new Xb({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){const n=e.children[t];t===0&&n.addRunToFront(new Wb),this.root.push(n)}}}class Vb extends de{constructor(){super("w:continuationSeparator")}}class Yb extends Do{constructor(){super({}),this.root.push(new Vb)}}class kb extends de{constructor(){super("w:separator")}}class Zb extends Do{constructor(){super({}),this.root.push(new kb)}}class Qb extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class Kb extends de{constructor(){super("w:footnotes"),this.root.push(new Qb({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const e=new pl({id:-1,type:ff.SEPERATOR,children:[new An({spacing:{after:0,line:240,lineRule:$l.AUTO},children:[new Zb]})]});this.root.push(e);const t=new pl({id:0,type:ff.CONTINUATION_SEPERATOR,children:[new An({spacing:{after:0,line:240,lineRule:$l.AUTO},children:[new Yb]})]});this.root.push(t)}createFootNote(e,t){const n=new pl({id:e,children:t});this.root.push(n)}}class Hb{constructor(){pe(this,"footnotess"),pe(this,"relationships"),this.footnotess=new Kb,this.relationships=new Hi}get View(){return this.footnotess}get Relationships(){return this.relationships}}class Bb extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}}let Gb=class extends j0{constructor(e,t){super("w:hdr",t),pe(this,"refId"),this.refId=e,t||this.root.push(new Bb({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class Jb{constructor(e,t,n){pe(this,"header"),pe(this,"relationships"),this.media=e,this.header=new Gb(t,n),this.relationships=new Hi}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class zb{constructor(){pe(this,"map"),this.map=new Map}addImage(e,t){this.map.set(e,t)}get Array(){return Array.from(this.map.values())}}const gn={DECIMAL:"decimal",UPPER_ROMAN:"upperRoman",LOWER_ROMAN:"lowerRoman",UPPER_LETTER:"upperLetter",LOWER_LETTER:"lowerLetter",ORDINAL:"ordinal",CARDINAL_TEXT:"cardinalText",ORDINAL_TEXT:"ordinalText",HEX:"hex",CHICAGO:"chicago",IDEOGRAPH__DIGITAL:"ideographDigital",JAPANESE_COUNTING:"japaneseCounting",AIUEO:"aiueo",IROHA:"iroha",DECIMAL_FULL_WIDTH:"decimalFullWidth",DECIMAL_HALF_WIDTH:"decimalHalfWidth",JAPANESE_LEGAL:"japaneseLegal",JAPANESE_DIGITAL_TEN_THOUSAND:"japaneseDigitalTenThousand",DECIMAL_ENCLOSED_CIRCLE:"decimalEnclosedCircle",DECIMAL_FULL_WIDTH2:"decimalFullWidth2",AIUEO_FULL_WIDTH:"aiueoFullWidth",IROHA_FULL_WIDTH:"irohaFullWidth",DECIMAL_ZERO:"decimalZero",BULLET:"bullet",GANADA:"ganada",CHOSUNG:"chosung",DECIMAL_ENCLOSED_FULLSTOP:"decimalEnclosedFullstop",DECIMAL_ENCLOSED_PARENTHESES:"decimalEnclosedParen",DECIMAL_ENCLOSED_CIRCLE_CHINESE:"decimalEnclosedCircleChinese",IDEOGRAPH_ENCLOSED_CIRCLE:"ideographEnclosedCircle",IDEOGRAPH_TRADITIONAL:"ideographTraditional",IDEOGRAPH_ZODIAC:"ideographZodiac",IDEOGRAPH_ZODIAC_TRADITIONAL:"ideographZodiacTraditional",TAIWANESE_COUNTING:"taiwaneseCounting",IDEOGRAPH_LEGAL_TRADITIONAL:"ideographLegalTraditional",TAIWANESE_COUNTING_THOUSAND:"taiwaneseCountingThousand",TAIWANESE_DIGITAL:"taiwaneseDigital",CHINESE_COUNTING:"chineseCounting",CHINESE_LEGAL_SIMPLIFIED:"chineseLegalSimplified",CHINESE_COUNTING_THOUSAND:"chineseCountingThousand",KOREAN_DIGITAL:"koreanDigital",KOREAN_COUNTING:"koreanCounting",KOREAN_LEGAL:"koreanLegal",KOREAN_DIGITAL2:"koreanDigital2",VIETNAMESE_COUNTING:"vietnameseCounting",RUSSIAN_LOWER:"russianLower",RUSSIAN_UPPER:"russianUpper",NONE:"none",NUMBER_IN_DASH:"numberInDash",HEBREW1:"hebrew1",HEBREW2:"hebrew2",ARABIC_ALPHA:"arabicAlpha",ARABIC_ABJAD:"arabicAbjad",HINDI_VOWELS:"hindiVowels",HINDI_CONSONANTS:"hindiConsonants",HINDI_NUMBERS:"hindiNumbers",HINDI_COUNTING:"hindiCounting",THAI_LETTERS:"thaiLetters",THAI_NUMBERS:"thaiNumbers",THAI_COUNTING:"thaiCounting",BAHT_TEXT:"bahtText",DOLLAR_TEXT:"dollarText",CUSTOM:"custom"};class $b extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class jb extends de{constructor(e){super("w:numFmt"),this.root.push(new Ft({val:e}))}}class qb extends de{constructor(e){super("w:lvlText"),this.root.push(new Ft({val:e}))}}class eO extends de{constructor(e){super("w:lvlJc"),this.root.push(new Ft({val:e}))}}class tO extends de{constructor(e){super("w:suff"),this.root.push(new Ft({val:e}))}}class rO extends de{constructor(){super("w:isLgl")}}class nO extends de{constructor({level:e,format:t,text:n,alignment:i=en.START,start:o=1,style:a,suffix:s,isLegalNumberingStyle:l}){if(super("w:lvl"),pe(this,"paragraphProperties"),pe(this,"runProperties"),this.root.push(new Dc("w:start",dr(o))),t&&this.root.push(new jb(t)),s&&this.root.push(new tO(s)),l&&this.root.push(new rO),n&&this.root.push(new qb(n)),this.root.push(new eO(i)),this.paragraphProperties=new Yi(a&&a.paragraph),this.runProperties=new ii(a&&a.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new $b({ilvl:dr(e),tentative:1}))}}class iO extends nO{}class oO extends de{constructor(e){super("w:multiLevelType"),this.root.push(new Ft({val:e}))}}class aO extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class df extends de{constructor(e,t){super("w:abstractNum"),pe(this,"id"),this.root.push(new aO({abstractNumId:dr(e),restartNumberingAfterBreak:0})),this.root.push(new oO("hybridMultilevel")),this.id=e;for(const n of t)this.root.push(new iO(n))}}class sO extends de{constructor(e){super("w:abstractNumId"),this.root.push(new Ft({val:e}))}}class lO extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{numId:"w:numId"})}}class pf extends de{constructor(e){if(super("w:num"),pe(this,"numId"),pe(this,"reference"),pe(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new lO({numId:dr(e.numId)})),this.root.push(new sO(dr(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const t of e.overrideLevels)this.root.push(new uO(t.num,t.start))}}class cO extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{ilvl:"w:ilvl"})}}class uO extends de{constructor(e,t){super("w:lvlOverride"),this.root.push(new cO({ilvl:e})),t!==void 0&&this.root.push(new fO(t))}}class hO extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{val:"w:val"})}}class fO extends de{constructor(e){super("w:startOverride"),this.root.push(new hO({val:e}))}}class dO extends de{constructor(e){super("w:numbering"),pe(this,"abstractNumberingMap",new Map),pe(this,"concreteNumberingMap",new Map),pe(this,"referenceConfigMap",new Map),pe(this,"abstractNumUniqueNumericId",iS()),pe(this,"concreteNumUniqueNumericId",oS()),this.root.push(new Xo({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const t=new df(this.abstractNumUniqueNumericId(),[{level:0,format:gn.BULLET,text:"\u25CF",alignment:en.LEFT,style:{paragraph:{indent:{left:Qr(.5),hanging:Qr(.25)}}}},{level:1,format:gn.BULLET,text:"\u25CB",alignment:en.LEFT,style:{paragraph:{indent:{left:Qr(1),hanging:Qr(.25)}}}},{level:2,format:gn.BULLET,text:"\u25A0",alignment:en.LEFT,style:{paragraph:{indent:{left:2160,hanging:Qr(.25)}}}},{level:3,format:gn.BULLET,text:"\u25CF",alignment:en.LEFT,style:{paragraph:{indent:{left:2880,hanging:Qr(.25)}}}},{level:4,format:gn.BULLET,text:"\u25CB",alignment:en.LEFT,style:{paragraph:{indent:{left:3600,hanging:Qr(.25)}}}},{level:5,format:gn.BULLET,text:"\u25A0",alignment:en.LEFT,style:{paragraph:{indent:{left:4320,hanging:Qr(.25)}}}},{level:6,format:gn.BULLET,text:"\u25CF",alignment:en.LEFT,style:{paragraph:{indent:{left:5040,hanging:Qr(.25)}}}},{level:7,format:gn.BULLET,text:"\u25CF",alignment:en.LEFT,style:{paragraph:{indent:{left:5760,hanging:Qr(.25)}}}},{level:8,format:gn.BULLET,text:"\u25CF",alignment:en.LEFT,style:{paragraph:{indent:{left:6480,hanging:Qr(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new pf({numId:1,abstractNumId:t.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",t);for(const n of e.config)this.abstractNumberingMap.set(n.reference,new df(this.abstractNumUniqueNumericId(),n.levels)),this.referenceConfigMap.set(n.reference,n.levels)}prepForXml(e){for(const t of this.abstractNumberingMap.values())this.root.push(t);for(const t of this.concreteNumberingMap.values())this.root.push(t);return super.prepForXml(e)}createConcreteNumberingInstance(e,t){const n=this.abstractNumberingMap.get(e);if(!n)return;const i=`${e}-${t}`;if(this.concreteNumberingMap.has(i))return;const o=this.referenceConfigMap.get(e),a=o&&o[0].start,s={numId:this.concreteNumUniqueNumericId(),abstractNumId:n.id,reference:e,instance:t,overrideLevels:[a&&Number.isInteger(a)?{num:0,start:a}:{num:0,start:1}]};this.concreteNumberingMap.set(i,new pf(s))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class pO extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class gO extends de{constructor(e){super("w:compatSetting"),this.root.push(new pO({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class RO extends de{constructor(e){super("w:compat"),e.version&&this.root.push(new gO(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new be("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new be("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new be("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new be("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new be("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new be("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new be("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new be("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new be("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new be("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new be("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new be("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new be("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new be("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new be("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new be("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new be("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new be("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new be("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new be("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new be("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new be("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new be("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new be("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new be("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new be("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new be("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new be("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new be("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new be("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new be("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new be("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new be("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new be("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new be("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new be("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new be("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new be("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new be("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new be("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new be("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new be("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new be("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new be("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new be("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new be("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new be("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new be("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new be("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new be("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new be("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new be("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new be("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new be("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new be("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new be("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new be("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new be("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new be("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new be("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new be("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new be("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new be("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new be("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new be("w:cachedColBalance",e.cachedColumnBalance))}}class mO extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class vO extends de{constructor(e){var t,n,i,o;super("w:settings"),this.root.push(new mO({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new be("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new be("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new be("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new be("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new Dc("w:defaultTabStop",e.defaultTabStop)),this.root.push(new RO(Di($e({},(t=e.compatibility)!=null?t:{}),{version:(o=(i=(n=e.compatibility)==null?void 0:n.version)!=null?i:e.compatibilityModeVersion)!=null?o:15})))}}class bp extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{val:"w:val"})}}class yO extends de{constructor(e){super("w:name"),this.root.push(new bp({val:e}))}}class wO extends de{constructor(e){super("w:uiPriority"),this.root.push(new bp({val:dr(e)}))}}class SO extends _e{constructor(){super(...arguments),pe(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class Op extends de{constructor(e,t){super("w:style"),this.root.push(new SO(e)),t.name&&this.root.push(new yO(t.name)),t.basedOn&&this.root.push(new qn("w:basedOn",t.basedOn)),t.next&&this.root.push(new qn("w:next",t.next)),t.link&&this.root.push(new qn("w:link",t.link)),t.uiPriority!==void 0&&this.root.push(new wO(t.uiPriority)),t.semiHidden!==void 0&&this.root.push(new be("w:semiHidden",t.semiHidden)),t.unhideWhenUsed!==void 0&&this.root.push(new be("w:unhideWhenUsed",t.unhideWhenUsed)),t.quickFormat!==void 0&&this.root.push(new be("w:qFormat",t.quickFormat))}}class es extends Op{constructor(e){super({type:"paragraph",styleId:e.id},e),pe(this,"paragraphProperties"),pe(this,"runProperties"),this.paragraphProperties=new Yi(e.paragraph),this.runProperties=new ii(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class ts extends Op{constructor(e){super({type:"character",styleId:e.id},$e({uiPriority:99,unhideWhenUsed:!0},e)),pe(this,"runProperties"),this.runProperties=new ii(e.run),this.root.push(this.runProperties)}}class Un extends es{constructor(e){super($e({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class xO extends Un{constructor(e){super($e({id:"Title",name:"Title"},e))}}class bO extends Un{constructor(e){super($e({id:"Heading1",name:"Heading 1"},e))}}class OO extends Un{constructor(e){super($e({id:"Heading2",name:"Heading 2"},e))}}class TO extends Un{constructor(e){super($e({id:"Heading3",name:"Heading 3"},e))}}class PO extends Un{constructor(e){super($e({id:"Heading4",name:"Heading 4"},e))}}class EO extends Un{constructor(e){super($e({id:"Heading5",name:"Heading 5"},e))}}class _O extends Un{constructor(e){super($e({id:"Heading6",name:"Heading 6"},e))}}class IO extends Un{constructor(e){super($e({id:"Strong",name:"Strong"},e))}}class NO extends es{constructor(e){super($e({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class MO extends es{constructor(e){super($e({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:$l.AUTO}},run:{size:20}},e))}}class LO extends ts{constructor(e){super($e({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class FO extends ts{constructor(e){super($e({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class CO extends ts{constructor(e){super($e({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:np.SINGLE}}},e))}}class jl extends de{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const t of e.importedStyles)this.root.push(t);if(e.paragraphStyles)for(const t of e.paragraphStyles)this.root.push(new es(t));if(e.characterStyles)for(const t of e.characterStyles)this.root.push(new ts(t))}}class AO extends de{constructor(e){super("w:pPrDefault"),this.root.push(new Yi(e))}}class DO extends de{constructor(e){super("w:rPrDefault"),this.root.push(new ii(e))}}class XO extends de{constructor(e){super("w:docDefaults"),pe(this,"runPropertiesDefaults"),pe(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new DO(e.run),this.paragraphPropertiesDefaults=new AO(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class UO{newInstance(e){const t=$0.xml2js(e,{compact:!1});let n;for(const a of t.elements||[])a.name==="w:styles"&&(n=a);if(n===void 0)throw new Error("can not find styles element");const i=n.elements||[];return new jl({initialStyles:new xw(n.attributes),importedStyles:i.map(a=>Cc(a))})}}class gf{newInstance(e={}){var t;return{initialStyles:new Xo({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",Ignorable:"w14 w15"}),importedStyles:[new XO((t=e.document)!=null?t:{}),new xO($e({run:{size:56}},e.title)),new bO($e({run:{color:"2E74B5",size:32}},e.heading1)),new OO($e({run:{color:"2E74B5",size:26}},e.heading2)),new TO($e({run:{color:"1F4D78",size:24}},e.heading3)),new PO($e({run:{color:"2E74B5",italics:!0}},e.heading4)),new EO($e({run:{color:"2E74B5"}},e.heading5)),new _O($e({run:{color:"1F4D78"}},e.heading6)),new IO($e({run:{bold:!0}},e.strong)),new NO(e.listParagraph||{}),new CO(e.hyperlink||{}),new LO(e.footnoteReference||{}),new MO(e.footnoteText||{}),new FO(e.footnoteTextChar||{})]}}}const sa=({id:r,fontKey:e,subsetted:t},n)=>new pr({name:n,attributes:$e({id:{key:"r:id",value:r}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...t?[new be("w:subsetted",t)]:[]]}),WO=({name:r,altName:e,panose1:t,charset:n,family:i,notTrueType:o,pitch:a,sig:s,embedRegular:l,embedBold:c,embedItalic:u,embedBoldItalic:h})=>new pr({name:"w:font",attributes:{name:{key:"w:name",value:r}},children:[...e?[io("w:altName",e)]:[],...t?[io("w:panose1",t)]:[],...n?[io("w:charset",n)]:[],...i?[io("w:family",i)]:[],...o?[new be("w:notTrueType",o)]:[],...a?[io("w:pitch",a)]:[],...s?[new pr({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:s.usb0},usb1:{key:"w:usb1",value:s.usb1},usb2:{key:"w:usb2",value:s.usb2},usb3:{key:"w:usb3",value:s.usb3},csb0:{key:"w:csb0",value:s.csb0},csb1:{key:"w:csb1",value:s.csb1}}})]:[],...l?[sa(l,"w:embedRegular")]:[],...c?[sa(c,"w:embedBold")]:[],...u?[sa(u,"w:embedItalic")]:[],...h?[sa(h,"w:embedBoldItalic")]:[]]}),VO=({name:r,index:e,fontKey:t,characterSet:n})=>WO({name:r,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:n,family:"auto",pitch:"variable",embedRegular:{fontKey:t,id:`rId${e}`}}),YO=r=>new pr({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:r.map((e,t)=>VO({name:e.name,index:t+1,fontKey:e.fontKey}))});class kO{constructor(e){pe(this,"fontTable"),pe(this,"relationships"),pe(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(t=>Di($e({},t),{fontKey:lS()})),this.fontTable=YO(this.fontOptionsWithKey),this.relationships=new Hi;for(let t=0;t<e.length;t++)this.relationships.createRelationship(t+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${e[t].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}}class ZO{constructor(e){pe(this,"currentRelationshipId",1),pe(this,"documentWrapper"),pe(this,"headers",[]),pe(this,"footers",[]),pe(this,"coreProperties"),pe(this,"numbering"),pe(this,"media"),pe(this,"fileRelationships"),pe(this,"footnotesWrapper"),pe(this,"settings"),pe(this,"contentTypes"),pe(this,"customProperties"),pe(this,"appProperties"),pe(this,"styles"),pe(this,"comments"),pe(this,"fontWrapper");var t,n,i,o,a,s,l,c;if(this.coreProperties=new _b(Di($e({},e),{creator:(t=e.creator)!=null?t:"Un-named",revision:(n=e.revision)!=null?n:1,lastModifiedBy:(i=e.lastModifiedBy)!=null?i:"Un-named"})),this.numbering=new dO(e.numbering?e.numbering:{config:[]}),this.comments=new fx((o=e.comments)!=null?o:{children:[]}),this.fileRelationships=new Hi,this.customProperties=new Fb((a=e.customProperties)!=null?a:[]),this.appProperties=new bb,this.footnotesWrapper=new Hb,this.contentTypes=new Eb,this.documentWrapper=new vp({background:e.background}),this.settings=new vO({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:(s=e.features)==null?void 0:s.trackRevisions,updateFields:(l=e.features)==null?void 0:l.updateFields,defaultTabStop:e.defaultTabStop}),this.media=new zb,e.externalStyles){const u=new UO;this.styles=u.newInstance(e.externalStyles)}else if(e.styles){const h=new gf().newInstance(e.styles.default);this.styles=new jl($e($e({},h),e.styles))}else{const u=new gf;this.styles=new jl(u.newInstance())}this.addDefaultRelationships();for(const u of e.sections)this.addSection(u);if(e.footnotes)for(const u in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(u),e.footnotes[u].children);this.fontWrapper=new kO((c=e.fonts)!=null?c:[])}addSection({headers:e={},footers:t={},children:n,properties:i}){this.documentWrapper.View.Body.addSection(Di($e({},i),{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:t.default?this.createFooter(t.default):void 0,first:t.first?this.createFooter(t.first):void 0,even:t.even?this.createFooter(t.even):void 0}}));for(const o of n)this.documentWrapper.View.add(o)}createHeader(e){const t=new Jb(this.media,this.currentRelationshipId++);for(const n of e.options.children)t.add(n);return this.addHeaderToDocument(t),t}createFooter(e){const t=new Db(this.media,this.currentRelationshipId++);for(const n of e.options.children)t.add(n);return this.addFooterToDocument(t),t}addHeaderToDocument(e,t=Fi.DEFAULT){this.headers.push({header:e,type:t}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,t=Fi.DEFAULT){this.footers.push({footer:e,type:t}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(e=>e.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}class QO{constructor(e={children:[]}){pe(this,"options"),this.options=e}}class KO{constructor(e={children:[]}){pe(this,"options"),this.options=e}}function la(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Tp={exports:{}};(function(r,e){(function(t){r.exports=t()})(function(){return function t(n,i,o){function a(c,u){if(!i[c]){if(!n[c]){var h=typeof la=="function"&&la;if(!u&&h)return h(c,!0);if(s)return s(c,!0);var d=new Error("Cannot find module '"+c+"'");throw d.code="MODULE_NOT_FOUND",d}var f=i[c]={exports:{}};n[c][0].call(f.exports,function(p){var g=n[c][1][p];return a(g||p)},f,f.exports,t,n,i,o)}return i[c].exports}for(var s=typeof la=="function"&&la,l=0;l<o.length;l++)a(o[l]);return a}({1:[function(t,n,i){var o=t("./utils"),a=t("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(l){for(var c,u,h,d,f,p,g,v=[],R=0,m=l.length,x=m,T=o.getTypeOf(l)!=="string";R<l.length;)x=m-R,h=T?(c=l[R++],u=R<m?l[R++]:0,R<m?l[R++]:0):(c=l.charCodeAt(R++),u=R<m?l.charCodeAt(R++):0,R<m?l.charCodeAt(R++):0),d=c>>2,f=(3&c)<<4|u>>4,p=1<x?(15&u)<<2|h>>6:64,g=2<x?63&h:64,v.push(s.charAt(d)+s.charAt(f)+s.charAt(p)+s.charAt(g));return v.join("")},i.decode=function(l){var c,u,h,d,f,p,g=0,v=0,R="data:";if(l.substr(0,R.length)===R)throw new Error("Invalid base64 input, it looks like a data url.");var m,x=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&x--,l.charAt(l.length-2)===s.charAt(64)&&x--,x%1!=0)throw new Error("Invalid base64 input, bad content length.");for(m=a.uint8array?new Uint8Array(0|x):new Array(0|x);g<l.length;)c=s.indexOf(l.charAt(g++))<<2|(d=s.indexOf(l.charAt(g++)))>>4,u=(15&d)<<4|(f=s.indexOf(l.charAt(g++)))>>2,h=(3&f)<<6|(p=s.indexOf(l.charAt(g++))),m[v++]=c,f!==64&&(m[v++]=u),p!==64&&(m[v++]=h);return m}},{"./support":30,"./utils":32}],2:[function(t,n,i){var o=t("./external"),a=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),l=t("./stream/DataLengthProbe");function c(u,h,d,f,p){this.compressedSize=u,this.uncompressedSize=h,this.crc32=d,this.compression=f,this.compressedContent=p}c.prototype={getContentWorker:function(){var u=new a(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),h=this;return u.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new a(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(u,h,d){return u.pipe(new s).pipe(new l("uncompressedSize")).pipe(h.compressWorker(d)).pipe(new l("compressedSize")).withStreamInfo("compression",h)},n.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,n,i){var o=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,n,i){var o=t("./utils"),a=function(){for(var s,l=[],c=0;c<256;c++){s=c;for(var u=0;u<8;u++)s=1&s?3988292384^s>>>1:s>>>1;l[c]=s}return l}();n.exports=function(s,l){return s!==void 0&&s.length?o.getTypeOf(s)!=="string"?function(c,u,h,d){var f=a,p=d+h;c^=-1;for(var g=d;g<p;g++)c=c>>>8^f[255&(c^u[g])];return-1^c}(0|l,s,s.length,0):function(c,u,h,d){var f=a,p=d+h;c^=-1;for(var g=d;g<p;g++)c=c>>>8^f[255&(c^u.charCodeAt(g))];return-1^c}(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(t,n,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,n,i){var o=null;o=typeof Promise!="undefined"?Promise:t("lie"),n.exports={Promise:o}},{lie:37}],7:[function(t,n,i){var o=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",a=t("pako"),s=t("./utils"),l=t("./stream/GenericWorker"),c=o?"uint8array":"array";function u(h,d){l.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=d,this.meta={}}i.magic="\b\0",s.inherits(u,l),u.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(c,h.data),!1)},u.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(d){h.push({data:d,meta:h.meta})}},i.compressWorker=function(h){return new u("Deflate",h)},i.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,n,i){function o(f,p){var g,v="";for(g=0;g<p;g++)v+=String.fromCharCode(255&f),f>>>=8;return v}function a(f,p,g,v,R,m){var x,T,P=f.file,A=f.compression,D=m!==c.utf8encode,W=s.transformTo("string",m(P.name)),_=s.transformTo("string",c.utf8encode(P.name)),Q=P.comment,te=s.transformTo("string",m(Q)),O=s.transformTo("string",c.utf8encode(Q)),I=_.length!==P.name.length,y=O.length!==Q.length,L="",k="",F="",Y=P.dir,V=P.date,ie={crc32:0,compressedSize:0,uncompressedSize:0};p&&!g||(ie.crc32=f.crc32,ie.compressedSize=f.compressedSize,ie.uncompressedSize=f.uncompressedSize);var U=0;p&&(U|=8),D||!I&&!y||(U|=2048);var N=0,J=0;Y&&(N|=16),R==="UNIX"?(J=798,N|=function(re,ee){var X=re;return re||(X=ee?16893:33204),(65535&X)<<16}(P.unixPermissions,Y)):(J=20,N|=function(re){return 63&(re||0)}(P.dosPermissions)),x=V.getUTCHours(),x<<=6,x|=V.getUTCMinutes(),x<<=5,x|=V.getUTCSeconds()/2,T=V.getUTCFullYear()-1980,T<<=4,T|=V.getUTCMonth()+1,T<<=5,T|=V.getUTCDate(),I&&(k=o(1,1)+o(u(W),4)+_,L+="up"+o(k.length,2)+k),y&&(F=o(1,1)+o(u(te),4)+O,L+="uc"+o(F.length,2)+F);var B="";return B+=`
|
|
\0`,B+=o(U,2),B+=A.magic,B+=o(x,2),B+=o(T,2),B+=o(ie.crc32,4),B+=o(ie.compressedSize,4),B+=o(ie.uncompressedSize,4),B+=o(W.length,2),B+=o(L.length,2),{fileRecord:h.LOCAL_FILE_HEADER+B+W+L,dirRecord:h.CENTRAL_FILE_HEADER+o(J,2)+B+o(te.length,2)+"\0\0\0\0"+o(N,4)+o(v,4)+W+L+te}}var s=t("../utils"),l=t("../stream/GenericWorker"),c=t("../utf8"),u=t("../crc32"),h=t("../signature");function d(f,p,g,v){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=g,this.encodeFileName=v,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(d,l),d.prototype.push=function(f){var p=f.meta.percent||0,g=this.entriesCount,v=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,l.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:g?(p+100*(g-v-1))/g:100}}))},d.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var p=this.streamFiles&&!f.file.dir;if(p){var g=a(f,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(f){this.accumulate=!1;var p=this.streamFiles&&!f.file.dir,g=a(f,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),p)this.push({data:function(v){return h.DATA_DESCRIPTOR+o(v.crc32,4)+o(v.compressedSize,4)+o(v.uncompressedSize,4)}(f),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var f=this.bytesWritten,p=0;p<this.dirRecords.length;p++)this.push({data:this.dirRecords[p],meta:{percent:100}});var g=this.bytesWritten-f,v=function(R,m,x,T,P){var A=s.transformTo("string",P(T));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(R,2)+o(R,2)+o(m,4)+o(x,4)+o(A.length,2)+A}(this.dirRecords.length,g,f,this.zipComment,this.encodeFileName);this.push({data:v,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(f){this._sources.push(f);var p=this;return f.on("data",function(g){p.processChunk(g)}),f.on("end",function(){p.closedSource(p.previous.streamInfo),p._sources.length?p.prepareNextSource():p.end()}),f.on("error",function(g){p.error(g)}),this},d.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(f){var p=this._sources;if(!l.prototype.error.call(this,f))return!1;for(var g=0;g<p.length;g++)try{p[g].error(f)}catch{}return!0},d.prototype.lock=function(){l.prototype.lock.call(this);for(var f=this._sources,p=0;p<f.length;p++)f[p].lock()},n.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,n,i){var o=t("../compressions"),a=t("./ZipFileWorker");i.generateWorker=function(s,l,c){var u=new a(l.streamFiles,c,l.platform,l.encodeFileName),h=0;try{s.forEach(function(d,f){h++;var p=function(m,x){var T=m||x,P=o[T];if(!P)throw new Error(T+" is not a valid compression method !");return P}(f.options.compression,l.compression),g=f.options.compressionOptions||l.compressionOptions||{},v=f.dir,R=f.date;f._compressWorker(p,g).withStreamInfo("file",{name:d,dir:v,date:R,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(u)}),u.entriesCount=h}catch(d){u.error(d)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,n,i){function o(){if(!(this instanceof o))return new o;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 a=new o;for(var s in this)typeof this[s]!="function"&&(a[s]=this[s]);return a}}(o.prototype=t("./object")).loadAsync=t("./load"),o.support=t("./support"),o.defaults=t("./defaults"),o.version="3.10.1",o.loadAsync=function(a,s){return new o().loadAsync(a,s)},o.external=t("./external"),n.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,n,i){var o=t("./utils"),a=t("./external"),s=t("./utf8"),l=t("./zipEntries"),c=t("./stream/Crc32Probe"),u=t("./nodejsUtils");function h(d){return new a.Promise(function(f,p){var g=d.decompressed.getContentWorker().pipe(new c);g.on("error",function(v){p(v)}).on("end",function(){g.streamInfo.crc32!==d.decompressed.crc32?p(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}n.exports=function(d,f){var p=this;return f=o.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),u.isNode&&u.isStream(d)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",d,!0,f.optimizedBinaryString,f.base64).then(function(g){var v=new l(f);return v.load(g),v}).then(function(g){var v=[a.Promise.resolve(g)],R=g.files;if(f.checkCRC32)for(var m=0;m<R.length;m++)v.push(h(R[m]));return a.Promise.all(v)}).then(function(g){for(var v=g.shift(),R=v.files,m=0;m<R.length;m++){var x=R[m],T=x.fileNameStr,P=o.resolve(x.fileNameStr);p.file(P,x.decompressed,{binary:!0,optimizedBinaryString:!0,date:x.date,dir:x.dir,comment:x.fileCommentStr.length?x.fileCommentStr:null,unixPermissions:x.unixPermissions,dosPermissions:x.dosPermissions,createFolders:f.createFolders}),x.dir||(p.file(P).unsafeOriginalName=T)}return v.zipComment.length&&(p.comment=v.zipComment),p})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,n,i){var o=t("../utils"),a=t("../stream/GenericWorker");function s(l,c){a.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(c)}o.inherits(s,a),s.prototype._bindStream=function(l){var c=this;(this._stream=l).pause(),l.on("data",function(u){c.push({data:u,meta:{percent:0}})}).on("error",function(u){c.isPaused?this.generatedError=u:c.error(u)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},s.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,n,i){var o=t("readable-stream").Readable;function a(s,l,c){o.call(this,l),this._helper=s;var u=this;s.on("data",function(h,d){u.push(h)||u._helper.pause(),c&&c(d)}).on("error",function(h){u.emit("error",h)}).on("end",function(){u.push(null)})}t("../utils").inherits(a,o),a.prototype._read=function(){this._helper.resume()},n.exports=a},{"../utils":32,"readable-stream":16}],14:[function(t,n,i){n.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(o,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,a);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,a)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var a=new Buffer(o);return a.fill(0),a},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(t,n,i){function o(P,A,D){var W,_=s.getTypeOf(A),Q=s.extend(D||{},u);Q.date=Q.date||new Date,Q.compression!==null&&(Q.compression=Q.compression.toUpperCase()),typeof Q.unixPermissions=="string"&&(Q.unixPermissions=parseInt(Q.unixPermissions,8)),Q.unixPermissions&&16384&Q.unixPermissions&&(Q.dir=!0),Q.dosPermissions&&16&Q.dosPermissions&&(Q.dir=!0),Q.dir&&(P=R(P)),Q.createFolders&&(W=v(P))&&m.call(this,W,!0);var te=_==="string"&&Q.binary===!1&&Q.base64===!1;D&&D.binary!==void 0||(Q.binary=!te),(A instanceof h&&A.uncompressedSize===0||Q.dir||!A||A.length===0)&&(Q.base64=!1,Q.binary=!0,A="",Q.compression="STORE",_="string");var O=null;O=A instanceof h||A instanceof l?A:p.isNode&&p.isStream(A)?new g(P,A):s.prepareContent(P,A,Q.binary,Q.optimizedBinaryString,Q.base64);var I=new d(P,O,Q);this.files[P]=I}var a=t("./utf8"),s=t("./utils"),l=t("./stream/GenericWorker"),c=t("./stream/StreamHelper"),u=t("./defaults"),h=t("./compressedObject"),d=t("./zipObject"),f=t("./generate"),p=t("./nodejsUtils"),g=t("./nodejs/NodejsStreamInputAdapter"),v=function(P){P.slice(-1)==="/"&&(P=P.substring(0,P.length-1));var A=P.lastIndexOf("/");return 0<A?P.substring(0,A):""},R=function(P){return P.slice(-1)!=="/"&&(P+="/"),P},m=function(P,A){return A=A!==void 0?A:u.createFolders,P=R(P),this.files[P]||o.call(this,P,null,{dir:!0,createFolders:A}),this.files[P]};function x(P){return Object.prototype.toString.call(P)==="[object RegExp]"}var T={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(P){var A,D,W;for(A in this.files)W=this.files[A],(D=A.slice(this.root.length,A.length))&&A.slice(0,this.root.length)===this.root&&P(D,W)},filter:function(P){var A=[];return this.forEach(function(D,W){P(D,W)&&A.push(W)}),A},file:function(P,A,D){if(arguments.length!==1)return P=this.root+P,o.call(this,P,A,D),this;if(x(P)){var W=P;return this.filter(function(Q,te){return!te.dir&&W.test(Q)})}var _=this.files[this.root+P];return _&&!_.dir?_:null},folder:function(P){if(!P)return this;if(x(P))return this.filter(function(_,Q){return Q.dir&&P.test(_)});var A=this.root+P,D=m.call(this,A),W=this.clone();return W.root=D.name,W},remove:function(P){P=this.root+P;var A=this.files[P];if(A||(P.slice(-1)!=="/"&&(P+="/"),A=this.files[P]),A&&!A.dir)delete this.files[P];else for(var D=this.filter(function(_,Q){return Q.name.slice(0,P.length)===P}),W=0;W<D.length;W++)delete this.files[D[W].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(P){var A,D={};try{if((D=s.extend(P||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=D.type.toLowerCase(),D.compression=D.compression.toUpperCase(),D.type==="binarystring"&&(D.type="string"),!D.type)throw new Error("No output type specified.");s.checkSupport(D.type),D.platform!=="darwin"&&D.platform!=="freebsd"&&D.platform!=="linux"&&D.platform!=="sunos"||(D.platform="UNIX"),D.platform==="win32"&&(D.platform="DOS");var W=D.comment||this.comment||"";A=f.generateWorker(this,D,W)}catch(_){(A=new l("error")).error(_)}return new c(A,D.type||"string",D.mimeType)},generateAsync:function(P,A){return this.generateInternalStream(P).accumulate(A)},generateNodeStream:function(P,A){return(P=P||{}).type||(P.type="nodebuffer"),this.generateInternalStream(P).toNodejsStream(A)}};n.exports=T},{"./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(t,n,i){n.exports=t("stream")},{stream:void 0}],17:[function(t,n,i){var o=t("./DataReader");function a(s){o.call(this,s);for(var l=0;l<this.data.length;l++)s[l]=255&s[l]}t("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data[this.zero+s]},a.prototype.lastIndexOfSignature=function(s){for(var l=s.charCodeAt(0),c=s.charCodeAt(1),u=s.charCodeAt(2),h=s.charCodeAt(3),d=this.length-4;0<=d;--d)if(this.data[d]===l&&this.data[d+1]===c&&this.data[d+2]===u&&this.data[d+3]===h)return d-this.zero;return-1},a.prototype.readAndCheckSignature=function(s){var l=s.charCodeAt(0),c=s.charCodeAt(1),u=s.charCodeAt(2),h=s.charCodeAt(3),d=this.readData(4);return l===d[0]&&c===d[1]&&u===d[2]&&h===d[3]},a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=a},{"../utils":32,"./DataReader":18}],18:[function(t,n,i){var o=t("../utils");function a(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var l,c=0;for(this.checkOffset(s),l=this.index+s-1;l>=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=s,c},readString:function(s){return o.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},n.exports=a},{"../utils":32}],19:[function(t,n,i){var o=t("./Uint8ArrayReader");function a(s){o.call(this,s)}t("../utils").inherits(a,o),a.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,n,i){var o=t("./DataReader");function a(s){o.call(this,s)}t("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},a.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},a.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},a.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=a},{"../utils":32,"./DataReader":18}],21:[function(t,n,i){var o=t("./ArrayReader");function a(s){o.call(this,s)}t("../utils").inherits(a,o),a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(t,n,i){var o=t("../utils"),a=t("../support"),s=t("./ArrayReader"),l=t("./StringReader"),c=t("./NodeBufferReader"),u=t("./Uint8ArrayReader");n.exports=function(h){var d=o.getTypeOf(h);return o.checkSupport(d),d!=="string"||a.uint8array?d==="nodebuffer"?new c(h):a.uint8array?new u(o.transformTo("uint8array",h)):new s(o.transformTo("array",h)):new l(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,n,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,n,i){var o=t("./GenericWorker"),a=t("../utils");function s(l){o.call(this,"ConvertWorker to "+l),this.destType=l}a.inherits(s,o),s.prototype.processChunk=function(l){this.push({data:a.transformTo(this.destType,l.data),meta:l.meta})},n.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,n,i){var o=t("./GenericWorker"),a=t("../crc32");function s(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,o),s.prototype.processChunk=function(l){this.streamInfo.crc32=a(l.data,this.streamInfo.crc32||0),this.push(l)},n.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,n,i){var o=t("../utils"),a=t("./GenericWorker");function s(l){a.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}o.inherits(s,a),s.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}a.prototype.processChunk.call(this,l)},n.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,n,i){var o=t("../utils"),a=t("./GenericWorker");function s(l){a.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(u){c.dataIsReady=!0,c.data=u,c.max=u&&u.length||0,c.type=o.getTypeOf(u),c.isPaused||c._tickAndRepeat()},function(u){c.error(u)})}o.inherits(s,a),s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,n,i){function o(a){this.name=a||"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}o.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,s){return this._listeners[a].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,s){if(this._listeners[a])for(var l=0;l<this._listeners[a].length;l++)this._listeners[a][l].call(this,s)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var s=this;return a.on("data",function(l){s.processChunk(l)}),a.on("end",function(){s.end()}),a.on("error",function(l){s.error(l)}),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 a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,s){return this.extraStreamInfo[a]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},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 a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},n.exports=o},{}],29:[function(t,n,i){var o=t("../utils"),a=t("./ConvertWorker"),s=t("./GenericWorker"),l=t("../base64"),c=t("../support"),u=t("../external"),h=null;if(c.nodestream)try{h=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(p,g){return new u.Promise(function(v,R){var m=[],x=p._internalType,T=p._outputType,P=p._mimeType;p.on("data",function(A,D){m.push(A),g&&g(D)}).on("error",function(A){m=[],R(A)}).on("end",function(){try{var A=function(D,W,_){switch(D){case"blob":return o.newBlob(o.transformTo("arraybuffer",W),_);case"base64":return l.encode(W);default:return o.transformTo(D,W)}}(T,function(D,W){var _,Q=0,te=null,O=0;for(_=0;_<W.length;_++)O+=W[_].length;switch(D){case"string":return W.join("");case"array":return Array.prototype.concat.apply([],W);case"uint8array":for(te=new Uint8Array(O),_=0;_<W.length;_++)te.set(W[_],Q),Q+=W[_].length;return te;case"nodebuffer":return Buffer.concat(W);default:throw new Error("concat : unsupported type '"+D+"'")}}(x,m),P);v(A)}catch(D){R(D)}m=[]}).resume()})}function f(p,g,v){var R=g;switch(g){case"blob":case"arraybuffer":R="uint8array";break;case"base64":R="string"}try{this._internalType=R,this._outputType=g,this._mimeType=v,o.checkSupport(R),this._worker=p.pipe(new a(R)),p.lock()}catch(m){this._worker=new s("error"),this._worker.error(m)}}f.prototype={accumulate:function(p){return d(this,p)},on:function(p,g){var v=this;return p==="data"?this._worker.on(p,function(R){g.call(v,R.data,R.meta)}):this._worker.on(p,function(){o.delay(g,arguments,v)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(p){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},p)}},n.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",i.nodebuffer=typeof Buffer!="undefined",i.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")i.blob=!1;else{var o=new ArrayBuffer(0);try{i.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(o),i.blob=a.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(t,n,i){for(var o=t("./utils"),a=t("./support"),s=t("./nodejsUtils"),l=t("./stream/GenericWorker"),c=new Array(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;c[254]=c[254]=1;function h(){l.call(this,"utf-8 decode"),this.leftOver=null}function d(){l.call(this,"utf-8 encode")}i.utf8encode=function(f){return a.nodebuffer?s.newBufferFrom(f,"utf-8"):function(p){var g,v,R,m,x,T=p.length,P=0;for(m=0;m<T;m++)(64512&(v=p.charCodeAt(m)))==55296&&m+1<T&&(64512&(R=p.charCodeAt(m+1)))==56320&&(v=65536+(v-55296<<10)+(R-56320),m++),P+=v<128?1:v<2048?2:v<65536?3:4;for(g=a.uint8array?new Uint8Array(P):new Array(P),m=x=0;x<P;m++)(64512&(v=p.charCodeAt(m)))==55296&&m+1<T&&(64512&(R=p.charCodeAt(m+1)))==56320&&(v=65536+(v-55296<<10)+(R-56320),m++),v<128?g[x++]=v:(v<2048?g[x++]=192|v>>>6:(v<65536?g[x++]=224|v>>>12:(g[x++]=240|v>>>18,g[x++]=128|v>>>12&63),g[x++]=128|v>>>6&63),g[x++]=128|63&v);return g}(f)},i.utf8decode=function(f){return a.nodebuffer?o.transformTo("nodebuffer",f).toString("utf-8"):function(p){var g,v,R,m,x=p.length,T=new Array(2*x);for(g=v=0;g<x;)if((R=p[g++])<128)T[v++]=R;else if(4<(m=c[R]))T[v++]=65533,g+=m-1;else{for(R&=m===2?31:m===3?15:7;1<m&&g<x;)R=R<<6|63&p[g++],m--;1<m?T[v++]=65533:R<65536?T[v++]=R:(R-=65536,T[v++]=55296|R>>10&1023,T[v++]=56320|1023&R)}return T.length!==v&&(T.subarray?T=T.subarray(0,v):T.length=v),o.applyFromCharCode(T)}(f=o.transformTo(a.uint8array?"uint8array":"array",f))},o.inherits(h,l),h.prototype.processChunk=function(f){var p=o.transformTo(a.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var g=p;(p=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),p.set(g,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var v=function(m,x){var T;for((x=x||m.length)>m.length&&(x=m.length),T=x-1;0<=T&&(192&m[T])==128;)T--;return T<0||T===0?x:T+c[m[T]]>x?T:x}(p),R=p;v!==p.length&&(a.uint8array?(R=p.subarray(0,v),this.leftOver=p.subarray(v,p.length)):(R=p.slice(0,v),this.leftOver=p.slice(v,p.length))),this.push({data:i.utf8decode(R),meta:f.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,o.inherits(d,l),d.prototype.processChunk=function(f){this.push({data:i.utf8encode(f.data),meta:f.meta})},i.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,n,i){var o=t("./support"),a=t("./base64"),s=t("./nodejsUtils"),l=t("./external");function c(g){return g}function u(g,v){for(var R=0;R<g.length;++R)v[R]=255&g.charCodeAt(R);return v}t("setimmediate"),i.newBlob=function(g,v){i.checkSupport("blob");try{return new Blob([g],{type:v})}catch{try{var R=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return R.append(g),R.getBlob(v)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(g,v,R){var m=[],x=0,T=g.length;if(T<=R)return String.fromCharCode.apply(null,g);for(;x<T;)v==="array"||v==="nodebuffer"?m.push(String.fromCharCode.apply(null,g.slice(x,Math.min(x+R,T)))):m.push(String.fromCharCode.apply(null,g.subarray(x,Math.min(x+R,T)))),x+=R;return m.join("")},stringifyByChar:function(g){for(var v="",R=0;R<g.length;R++)v+=String.fromCharCode(g[R]);return v},applyCanBeUsed:{uint8array:function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}}()}};function d(g){var v=65536,R=i.getTypeOf(g),m=!0;if(R==="uint8array"?m=h.applyCanBeUsed.uint8array:R==="nodebuffer"&&(m=h.applyCanBeUsed.nodebuffer),m)for(;1<v;)try{return h.stringifyByChunk(g,R,v)}catch{v=Math.floor(v/2)}return h.stringifyByChar(g)}function f(g,v){for(var R=0;R<g.length;R++)v[R]=g[R];return v}i.applyFromCharCode=d;var p={};p.string={string:c,array:function(g){return u(g,new Array(g.length))},arraybuffer:function(g){return p.string.uint8array(g).buffer},uint8array:function(g){return u(g,new Uint8Array(g.length))},nodebuffer:function(g){return u(g,s.allocBuffer(g.length))}},p.array={string:d,array:c,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return s.newBufferFrom(g)}},p.arraybuffer={string:function(g){return d(new Uint8Array(g))},array:function(g){return f(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:c,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return s.newBufferFrom(new Uint8Array(g))}},p.uint8array={string:d,array:function(g){return f(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:c,nodebuffer:function(g){return s.newBufferFrom(g)}},p.nodebuffer={string:d,array:function(g){return f(g,new Array(g.length))},arraybuffer:function(g){return p.nodebuffer.uint8array(g).buffer},uint8array:function(g){return f(g,new Uint8Array(g.length))},nodebuffer:c},i.transformTo=function(g,v){if(v=v||"",!g)return v;i.checkSupport(g);var R=i.getTypeOf(v);return p[R][g](v)},i.resolve=function(g){for(var v=g.split("/"),R=[],m=0;m<v.length;m++){var x=v[m];x==="."||x===""&&m!==0&&m!==v.length-1||(x===".."?R.pop():R.push(x))}return R.join("/")},i.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":o.nodebuffer&&s.isBuffer(g)?"nodebuffer":o.uint8array&&g instanceof Uint8Array?"uint8array":o.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(g){if(!o[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(g){var v,R,m="";for(R=0;R<(g||"").length;R++)m+="\\x"+((v=g.charCodeAt(R))<16?"0":"")+v.toString(16).toUpperCase();return m},i.delay=function(g,v,R){setImmediate(function(){g.apply(R||null,v||[])})},i.inherits=function(g,v){function R(){}R.prototype=v.prototype,g.prototype=new R},i.extend=function(){var g,v,R={};for(g=0;g<arguments.length;g++)for(v in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],v)&&R[v]===void 0&&(R[v]=arguments[g][v]);return R},i.prepareContent=function(g,v,R,m,x){return l.Promise.resolve(v).then(function(T){return o.blob&&(T instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(T))!==-1)&&typeof FileReader!="undefined"?new l.Promise(function(P,A){var D=new FileReader;D.onload=function(W){P(W.target.result)},D.onerror=function(W){A(W.target.error)},D.readAsArrayBuffer(T)}):T}).then(function(T){var P=i.getTypeOf(T);return P?(P==="arraybuffer"?T=i.transformTo("uint8array",T):P==="string"&&(x?T=a.decode(T):R&&m!==!0&&(T=function(A){return u(A,o.uint8array?new Uint8Array(A.length):new Array(A.length))}(T))),T):l.Promise.reject(new Error("Can't read the data of '"+g+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,n,i){var o=t("./reader/readerFor"),a=t("./utils"),s=t("./signature"),l=t("./zipEntry"),c=t("./support");function u(h){this.files=[],this.loadOptions=h}u.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var d=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(d)+", expected "+a.pretty(h)+")")}},isSignature:function(h,d){var f=this.reader.index;this.reader.setIndex(h);var p=this.reader.readString(4)===d;return this.reader.setIndex(f),p},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 h=this.reader.readData(this.zipCommentLength),d=c.uint8array?"uint8array":"array",f=a.transformTo(d,h);this.zipComment=this.loadOptions.decodeFileName(f)},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 h,d,f,p=this.zip64EndOfCentralSize-44;0<p;)h=this.reader.readInt(2),d=this.reader.readInt(4),f=this.reader.readData(d),this.zip64ExtensibleData[h]={id:h,length:d,value:f}},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 h,d;for(h=0;h<this.files.length;h++)d=this.files[h],this.reader.setIndex(d.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),d.readLocalPart(this.reader),d.handleUTF8(),d.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(h=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var h=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(h<0)throw this.isSignature(0,s.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(h);var d=h;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(h=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(h),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.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(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var p=d-f;if(0<p)this.isSignature(d,s.CENTRAL_FILE_HEADER)||(this.reader.zero=p);else if(p<0)throw new Error("Corrupted zip: missing "+Math.abs(p)+" bytes.")},prepareReader:function(h){this.reader=o(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,n,i){var o=t("./reader/readerFor"),a=t("./utils"),s=t("./compressedObject"),l=t("./crc32"),c=t("./utf8"),u=t("./compressions"),h=t("./support");function d(f,p){this.options=f,this.loadOptions=p}d.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var p,g;if(f.skip(22),this.fileNameLength=f.readInt(2),g=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((p=function(v){for(var R in u)if(Object.prototype.hasOwnProperty.call(u,R)&&u[R].magic===v)return u[R];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,p,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var p=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");f.skip(p),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=o(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var p,g,v,R=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<R;)p=f.readInt(2),g=f.readInt(2),v=f.readData(g),this.extraFields[p]={id:p,length:g,value:v};f.setIndex(R)},handleUTF8:function(){var f=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var p=this.findExtraFieldUnicodePath();if(p!==null)this.fileNameStr=p;else{var g=a.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var R=a.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(R)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var p=o(f.value);return p.readInt(1)!==1||l(this.fileName)!==p.readInt(4)?null:c.utf8decode(p.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var p=o(f.value);return p.readInt(1)!==1||l(this.fileComment)!==p.readInt(4)?null:c.utf8decode(p.readData(f.length-5))}return null}},n.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,n,i){function o(p,g,v){this.name=p,this.dir=v.dir,this.date=v.date,this.comment=v.comment,this.unixPermissions=v.unixPermissions,this.dosPermissions=v.dosPermissions,this._data=g,this._dataBinary=v.binary,this.options={compression:v.compression,compressionOptions:v.compressionOptions}}var a=t("./stream/StreamHelper"),s=t("./stream/DataWorker"),l=t("./utf8"),c=t("./compressedObject"),u=t("./stream/GenericWorker");o.prototype={internalStream:function(p){var g=null,v="string";try{if(!p)throw new Error("No output type specified.");var R=(v=p.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),g=this._decompressWorker();var m=!this._dataBinary;m&&!R&&(g=g.pipe(new l.Utf8EncodeWorker)),!m&&R&&(g=g.pipe(new l.Utf8DecodeWorker))}catch(x){(g=new u("error")).error(x)}return new a(g,v,"")},async:function(p,g){return this.internalStream(p).accumulate(g)},nodeStream:function(p,g){return this.internalStream(p||"nodebuffer").toNodejsStream(g)},_compressWorker:function(p,g){if(this._data instanceof c&&this._data.compression.magic===p.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new l.Utf8EncodeWorker)),c.createWorkerFrom(v,p,g)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof u?this._data:new s(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<h.length;f++)o.prototype[h[f]]=d;n.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,n,i){(function(o){var a,s,l=o.MutationObserver||o.WebKitMutationObserver;if(l){var c=0,u=new l(p),h=o.document.createTextNode("");u.observe(h,{characterData:!0}),a=function(){h.data=c=++c%2}}else if(o.setImmediate||o.MessageChannel===void 0)a="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var g=o.document.createElement("script");g.onreadystatechange=function(){p(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},o.document.documentElement.appendChild(g)}:function(){setTimeout(p,0)};else{var d=new o.MessageChannel;d.port1.onmessage=p,a=function(){d.port2.postMessage(0)}}var f=[];function p(){var g,v;s=!0;for(var R=f.length;R;){for(v=f,f=[],g=-1;++g<R;)v[g]();R=f.length}s=!1}n.exports=function(g){f.push(g)!==1||s||a()}}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(t,n,i){var o=t("immediate");function a(){}var s={},l=["REJECTED"],c=["FULFILLED"],u=["PENDING"];function h(R){if(typeof R!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,R!==a&&g(this,R)}function d(R,m,x){this.promise=R,typeof m=="function"&&(this.onFulfilled=m,this.callFulfilled=this.otherCallFulfilled),typeof x=="function"&&(this.onRejected=x,this.callRejected=this.otherCallRejected)}function f(R,m,x){o(function(){var T;try{T=m(x)}catch(P){return s.reject(R,P)}T===R?s.reject(R,new TypeError("Cannot resolve promise with itself")):s.resolve(R,T)})}function p(R){var m=R&&R.then;if(R&&(typeof R=="object"||typeof R=="function")&&typeof m=="function")return function(){m.apply(R,arguments)}}function g(R,m){var x=!1;function T(D){x||(x=!0,s.reject(R,D))}function P(D){x||(x=!0,s.resolve(R,D))}var A=v(function(){m(P,T)});A.status==="error"&&T(A.value)}function v(R,m){var x={};try{x.value=R(m),x.status="success"}catch(T){x.status="error",x.value=T}return x}(n.exports=h).prototype.finally=function(R){if(typeof R!="function")return this;var m=this.constructor;return this.then(function(x){return m.resolve(R()).then(function(){return x})},function(x){return m.resolve(R()).then(function(){throw x})})},h.prototype.catch=function(R){return this.then(null,R)},h.prototype.then=function(R,m){if(typeof R!="function"&&this.state===c||typeof m!="function"&&this.state===l)return this;var x=new this.constructor(a);return this.state!==u?f(x,this.state===c?R:m,this.outcome):this.queue.push(new d(x,R,m)),x},d.prototype.callFulfilled=function(R){s.resolve(this.promise,R)},d.prototype.otherCallFulfilled=function(R){f(this.promise,this.onFulfilled,R)},d.prototype.callRejected=function(R){s.reject(this.promise,R)},d.prototype.otherCallRejected=function(R){f(this.promise,this.onRejected,R)},s.resolve=function(R,m){var x=v(p,m);if(x.status==="error")return s.reject(R,x.value);var T=x.value;if(T)g(R,T);else{R.state=c,R.outcome=m;for(var P=-1,A=R.queue.length;++P<A;)R.queue[P].callFulfilled(m)}return R},s.reject=function(R,m){R.state=l,R.outcome=m;for(var x=-1,T=R.queue.length;++x<T;)R.queue[x].callRejected(m);return R},h.resolve=function(R){return R instanceof this?R:s.resolve(new this(a),R)},h.reject=function(R){var m=new this(a);return s.reject(m,R)},h.all=function(R){var m=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=R.length,T=!1;if(!x)return this.resolve([]);for(var P=new Array(x),A=0,D=-1,W=new this(a);++D<x;)_(R[D],D);return W;function _(Q,te){m.resolve(Q).then(function(O){P[te]=O,++A!==x||T||(T=!0,s.resolve(W,P))},function(O){T||(T=!0,s.reject(W,O))})}},h.race=function(R){var m=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=R.length,T=!1;if(!x)return this.resolve([]);for(var P=-1,A=new this(a);++P<x;)D=R[P],m.resolve(D).then(function(W){T||(T=!0,s.resolve(A,W))},function(W){T||(T=!0,s.reject(A,W))});var D;return A}},{immediate:36}],38:[function(t,n,i){var o={};(0,t("./lib/utils/common").assign)(o,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),n.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,n,i){var o=t("./zlib/deflate"),a=t("./utils/common"),s=t("./utils/strings"),l=t("./zlib/messages"),c=t("./zlib/zstream"),u=Object.prototype.toString,h=0,d=-1,f=0,p=8;function g(R){if(!(this instanceof g))return new g(R);this.options=a.assign({level:d,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},R||{});var m=this.options;m.raw&&0<m.windowBits?m.windowBits=-m.windowBits:m.gzip&&0<m.windowBits&&m.windowBits<16&&(m.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var x=o.deflateInit2(this.strm,m.level,m.method,m.windowBits,m.memLevel,m.strategy);if(x!==h)throw new Error(l[x]);if(m.header&&o.deflateSetHeader(this.strm,m.header),m.dictionary){var T;if(T=typeof m.dictionary=="string"?s.string2buf(m.dictionary):u.call(m.dictionary)==="[object ArrayBuffer]"?new Uint8Array(m.dictionary):m.dictionary,(x=o.deflateSetDictionary(this.strm,T))!==h)throw new Error(l[x]);this._dict_set=!0}}function v(R,m){var x=new g(m);if(x.push(R,!0),x.err)throw x.msg||l[x.err];return x.result}g.prototype.push=function(R,m){var x,T,P=this.strm,A=this.options.chunkSize;if(this.ended)return!1;T=m===~~m?m:m===!0?4:0,typeof R=="string"?P.input=s.string2buf(R):u.call(R)==="[object ArrayBuffer]"?P.input=new Uint8Array(R):P.input=R,P.next_in=0,P.avail_in=P.input.length;do{if(P.avail_out===0&&(P.output=new a.Buf8(A),P.next_out=0,P.avail_out=A),(x=o.deflate(P,T))!==1&&x!==h)return this.onEnd(x),!(this.ended=!0);P.avail_out!==0&&(P.avail_in!==0||T!==4&&T!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(a.shrinkBuf(P.output,P.next_out))):this.onData(a.shrinkBuf(P.output,P.next_out)))}while((0<P.avail_in||P.avail_out===0)&&x!==1);return T===4?(x=o.deflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===h):T!==2||(this.onEnd(h),!(P.avail_out=0))},g.prototype.onData=function(R){this.chunks.push(R)},g.prototype.onEnd=function(R){R===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=R,this.msg=this.strm.msg},i.Deflate=g,i.deflate=v,i.deflateRaw=function(R,m){return(m=m||{}).raw=!0,v(R,m)},i.gzip=function(R,m){return(m=m||{}).gzip=!0,v(R,m)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,n,i){var o=t("./zlib/inflate"),a=t("./utils/common"),s=t("./utils/strings"),l=t("./zlib/constants"),c=t("./zlib/messages"),u=t("./zlib/zstream"),h=t("./zlib/gzheader"),d=Object.prototype.toString;function f(g){if(!(this instanceof f))return new f(g);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},g||{});var v=this.options;v.raw&&0<=v.windowBits&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),!(0<=v.windowBits&&v.windowBits<16)||g&&g.windowBits||(v.windowBits+=32),15<v.windowBits&&v.windowBits<48&&(15&v.windowBits)==0&&(v.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var R=o.inflateInit2(this.strm,v.windowBits);if(R!==l.Z_OK)throw new Error(c[R]);this.header=new h,o.inflateGetHeader(this.strm,this.header)}function p(g,v){var R=new f(v);if(R.push(g,!0),R.err)throw R.msg||c[R.err];return R.result}f.prototype.push=function(g,v){var R,m,x,T,P,A,D=this.strm,W=this.options.chunkSize,_=this.options.dictionary,Q=!1;if(this.ended)return!1;m=v===~~v?v:v===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof g=="string"?D.input=s.binstring2buf(g):d.call(g)==="[object ArrayBuffer]"?D.input=new Uint8Array(g):D.input=g,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new a.Buf8(W),D.next_out=0,D.avail_out=W),(R=o.inflate(D,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&_&&(A=typeof _=="string"?s.string2buf(_):d.call(_)==="[object ArrayBuffer]"?new Uint8Array(_):_,R=o.inflateSetDictionary(this.strm,A)),R===l.Z_BUF_ERROR&&Q===!0&&(R=l.Z_OK,Q=!1),R!==l.Z_STREAM_END&&R!==l.Z_OK)return this.onEnd(R),!(this.ended=!0);D.next_out&&(D.avail_out!==0&&R!==l.Z_STREAM_END&&(D.avail_in!==0||m!==l.Z_FINISH&&m!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(x=s.utf8border(D.output,D.next_out),T=D.next_out-x,P=s.buf2string(D.output,x),D.next_out=T,D.avail_out=W-T,T&&a.arraySet(D.output,D.output,x,T,0),this.onData(P)):this.onData(a.shrinkBuf(D.output,D.next_out)))),D.avail_in===0&&D.avail_out===0&&(Q=!0)}while((0<D.avail_in||D.avail_out===0)&&R!==l.Z_STREAM_END);return R===l.Z_STREAM_END&&(m=l.Z_FINISH),m===l.Z_FINISH?(R=o.inflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===l.Z_OK):m!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(D.avail_out=0))},f.prototype.onData=function(g){this.chunks.push(g)},f.prototype.onEnd=function(g){g===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},i.Inflate=f,i.inflate=p,i.inflateRaw=function(g,v){return(v=v||{}).raw=!0,p(g,v)},i.ungzip=p},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,n,i){var o=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";i.assign=function(l){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var u=c.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var h in u)u.hasOwnProperty(h)&&(l[h]=u[h])}}return l},i.shrinkBuf=function(l,c){return l.length===c?l:l.subarray?l.subarray(0,c):(l.length=c,l)};var a={arraySet:function(l,c,u,h,d){if(c.subarray&&l.subarray)l.set(c.subarray(u,u+h),d);else for(var f=0;f<h;f++)l[d+f]=c[u+f]},flattenChunks:function(l){var c,u,h,d,f,p;for(c=h=0,u=l.length;c<u;c++)h+=l[c].length;for(p=new Uint8Array(h),c=d=0,u=l.length;c<u;c++)f=l[c],p.set(f,d),d+=f.length;return p}},s={arraySet:function(l,c,u,h,d){for(var f=0;f<h;f++)l[d+f]=c[u+f]},flattenChunks:function(l){return[].concat.apply([],l)}};i.setTyped=function(l){l?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(o)},{}],42:[function(t,n,i){var o=t("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var l=new o.Buf8(256),c=0;c<256;c++)l[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(h,d){if(d<65537&&(h.subarray&&s||!h.subarray&&a))return String.fromCharCode.apply(null,o.shrinkBuf(h,d));for(var f="",p=0;p<d;p++)f+=String.fromCharCode(h[p]);return f}l[254]=l[254]=1,i.string2buf=function(h){var d,f,p,g,v,R=h.length,m=0;for(g=0;g<R;g++)(64512&(f=h.charCodeAt(g)))==55296&&g+1<R&&(64512&(p=h.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(p-56320),g++),m+=f<128?1:f<2048?2:f<65536?3:4;for(d=new o.Buf8(m),g=v=0;v<m;g++)(64512&(f=h.charCodeAt(g)))==55296&&g+1<R&&(64512&(p=h.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(p-56320),g++),f<128?d[v++]=f:(f<2048?d[v++]=192|f>>>6:(f<65536?d[v++]=224|f>>>12:(d[v++]=240|f>>>18,d[v++]=128|f>>>12&63),d[v++]=128|f>>>6&63),d[v++]=128|63&f);return d},i.buf2binstring=function(h){return u(h,h.length)},i.binstring2buf=function(h){for(var d=new o.Buf8(h.length),f=0,p=d.length;f<p;f++)d[f]=h.charCodeAt(f);return d},i.buf2string=function(h,d){var f,p,g,v,R=d||h.length,m=new Array(2*R);for(f=p=0;f<R;)if((g=h[f++])<128)m[p++]=g;else if(4<(v=l[g]))m[p++]=65533,f+=v-1;else{for(g&=v===2?31:v===3?15:7;1<v&&f<R;)g=g<<6|63&h[f++],v--;1<v?m[p++]=65533:g<65536?m[p++]=g:(g-=65536,m[p++]=55296|g>>10&1023,m[p++]=56320|1023&g)}return u(m,p)},i.utf8border=function(h,d){var f;for((d=d||h.length)>h.length&&(d=h.length),f=d-1;0<=f&&(192&h[f])==128;)f--;return f<0||f===0?d:f+l[h[f]]>d?f:d}},{"./common":41}],43:[function(t,n,i){n.exports=function(o,a,s,l){for(var c=65535&o|0,u=o>>>16&65535|0,h=0;s!==0;){for(s-=h=2e3<s?2e3:s;u=u+(c=c+a[l++]|0)|0,--h;);c%=65521,u%=65521}return c|u<<16|0}},{}],44:[function(t,n,i){n.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(t,n,i){var o=function(){for(var a,s=[],l=0;l<256;l++){a=l;for(var c=0;c<8;c++)a=1&a?3988292384^a>>>1:a>>>1;s[l]=a}return s}();n.exports=function(a,s,l,c){var u=o,h=c+l;a^=-1;for(var d=c;d<h;d++)a=a>>>8^u[255&(a^s[d])];return-1^a}},{}],46:[function(t,n,i){var o,a=t("../utils/common"),s=t("./trees"),l=t("./adler32"),c=t("./crc32"),u=t("./messages"),h=0,d=4,f=0,p=-2,g=-1,v=4,R=2,m=8,x=9,T=286,P=30,A=19,D=2*T+1,W=15,_=3,Q=258,te=Q+_+1,O=42,I=113,y=1,L=2,k=3,F=4;function Y(b,q){return b.msg=u[q],q}function V(b){return(b<<1)-(4<b?9:0)}function ie(b){for(var q=b.length;0<=--q;)b[q]=0}function U(b){var q=b.state,M=q.pending;M>b.avail_out&&(M=b.avail_out),M!==0&&(a.arraySet(b.output,q.pending_buf,q.pending_out,M,b.next_out),b.next_out+=M,q.pending_out+=M,b.total_out+=M,b.avail_out-=M,q.pending-=M,q.pending===0&&(q.pending_out=0))}function N(b,q){s._tr_flush_block(b,0<=b.block_start?b.block_start:-1,b.strstart-b.block_start,q),b.block_start=b.strstart,U(b.strm)}function J(b,q){b.pending_buf[b.pending++]=q}function B(b,q){b.pending_buf[b.pending++]=q>>>8&255,b.pending_buf[b.pending++]=255&q}function re(b,q){var M,w,S=b.max_chain_length,E=b.strstart,K=b.prev_length,$=b.nice_match,Z=b.strstart>b.w_size-te?b.strstart-(b.w_size-te):0,oe=b.window,ce=b.w_mask,se=b.prev,ge=b.strstart+Q,Oe=oe[E+K-1],Te=oe[E+K];b.prev_length>=b.good_match&&(S>>=2),$>b.lookahead&&($=b.lookahead);do if(oe[(M=q)+K]===Te&&oe[M+K-1]===Oe&&oe[M]===oe[E]&&oe[++M]===oe[E+1]){E+=2,M++;do;while(oe[++E]===oe[++M]&&oe[++E]===oe[++M]&&oe[++E]===oe[++M]&&oe[++E]===oe[++M]&&oe[++E]===oe[++M]&&oe[++E]===oe[++M]&&oe[++E]===oe[++M]&&oe[++E]===oe[++M]&&E<ge);if(w=Q-(ge-E),E=ge-Q,K<w){if(b.match_start=q,$<=(K=w))break;Oe=oe[E+K-1],Te=oe[E+K]}}while((q=se[q&ce])>Z&&--S!=0);return K<=b.lookahead?K:b.lookahead}function ee(b){var q,M,w,S,E,K,$,Z,oe,ce,se=b.w_size;do{if(S=b.window_size-b.lookahead-b.strstart,b.strstart>=se+(se-te)){for(a.arraySet(b.window,b.window,se,se,0),b.match_start-=se,b.strstart-=se,b.block_start-=se,q=M=b.hash_size;w=b.head[--q],b.head[q]=se<=w?w-se:0,--M;);for(q=M=se;w=b.prev[--q],b.prev[q]=se<=w?w-se:0,--M;);S+=se}if(b.strm.avail_in===0)break;if(K=b.strm,$=b.window,Z=b.strstart+b.lookahead,oe=S,ce=void 0,ce=K.avail_in,oe<ce&&(ce=oe),M=ce===0?0:(K.avail_in-=ce,a.arraySet($,K.input,K.next_in,ce,Z),K.state.wrap===1?K.adler=l(K.adler,$,ce,Z):K.state.wrap===2&&(K.adler=c(K.adler,$,ce,Z)),K.next_in+=ce,K.total_in+=ce,ce),b.lookahead+=M,b.lookahead+b.insert>=_)for(E=b.strstart-b.insert,b.ins_h=b.window[E],b.ins_h=(b.ins_h<<b.hash_shift^b.window[E+1])&b.hash_mask;b.insert&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[E+_-1])&b.hash_mask,b.prev[E&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=E,E++,b.insert--,!(b.lookahead+b.insert<_)););}while(b.lookahead<te&&b.strm.avail_in!==0)}function X(b,q){for(var M,w;;){if(b.lookahead<te){if(ee(b),b.lookahead<te&&q===h)return y;if(b.lookahead===0)break}if(M=0,b.lookahead>=_&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+_-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),M!==0&&b.strstart-M<=b.w_size-te&&(b.match_length=re(b,M)),b.match_length>=_)if(w=s._tr_tally(b,b.strstart-b.match_start,b.match_length-_),b.lookahead-=b.match_length,b.match_length<=b.max_lazy_match&&b.lookahead>=_){for(b.match_length--;b.strstart++,b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+_-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart,--b.match_length!=0;);b.strstart++}else b.strstart+=b.match_length,b.match_length=0,b.ins_h=b.window[b.strstart],b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+1])&b.hash_mask;else w=s._tr_tally(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++;if(w&&(N(b,!1),b.strm.avail_out===0))return y}return b.insert=b.strstart<_-1?b.strstart:_-1,q===d?(N(b,!0),b.strm.avail_out===0?k:F):b.last_lit&&(N(b,!1),b.strm.avail_out===0)?y:L}function C(b,q){for(var M,w,S;;){if(b.lookahead<te){if(ee(b),b.lookahead<te&&q===h)return y;if(b.lookahead===0)break}if(M=0,b.lookahead>=_&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+_-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),b.prev_length=b.match_length,b.prev_match=b.match_start,b.match_length=_-1,M!==0&&b.prev_length<b.max_lazy_match&&b.strstart-M<=b.w_size-te&&(b.match_length=re(b,M),b.match_length<=5&&(b.strategy===1||b.match_length===_&&4096<b.strstart-b.match_start)&&(b.match_length=_-1)),b.prev_length>=_&&b.match_length<=b.prev_length){for(S=b.strstart+b.lookahead-_,w=s._tr_tally(b,b.strstart-1-b.prev_match,b.prev_length-_),b.lookahead-=b.prev_length-1,b.prev_length-=2;++b.strstart<=S&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+_-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),--b.prev_length!=0;);if(b.match_available=0,b.match_length=_-1,b.strstart++,w&&(N(b,!1),b.strm.avail_out===0))return y}else if(b.match_available){if((w=s._tr_tally(b,0,b.window[b.strstart-1]))&&N(b,!1),b.strstart++,b.lookahead--,b.strm.avail_out===0)return y}else b.match_available=1,b.strstart++,b.lookahead--}return b.match_available&&(w=s._tr_tally(b,0,b.window[b.strstart-1]),b.match_available=0),b.insert=b.strstart<_-1?b.strstart:_-1,q===d?(N(b,!0),b.strm.avail_out===0?k:F):b.last_lit&&(N(b,!1),b.strm.avail_out===0)?y:L}function G(b,q,M,w,S){this.good_length=b,this.max_lazy=q,this.nice_length=M,this.max_chain=w,this.func=S}function z(){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=m,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 a.Buf16(2*D),this.dyn_dtree=new a.Buf16(2*(2*P+1)),this.bl_tree=new a.Buf16(2*(2*A+1)),ie(this.dyn_ltree),ie(this.dyn_dtree),ie(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(W+1),this.heap=new a.Buf16(2*T+1),ie(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*T+1),ie(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 H(b){var q;return b&&b.state?(b.total_in=b.total_out=0,b.data_type=R,(q=b.state).pending=0,q.pending_out=0,q.wrap<0&&(q.wrap=-q.wrap),q.status=q.wrap?O:I,b.adler=q.wrap===2?0:1,q.last_flush=h,s._tr_init(q),f):Y(b,p)}function j(b){var q=H(b);return q===f&&function(M){M.window_size=2*M.w_size,ie(M.head),M.max_lazy_match=o[M.level].max_lazy,M.good_match=o[M.level].good_length,M.nice_match=o[M.level].nice_length,M.max_chain_length=o[M.level].max_chain,M.strstart=0,M.block_start=0,M.lookahead=0,M.insert=0,M.match_length=M.prev_length=_-1,M.match_available=0,M.ins_h=0}(b.state),q}function ue(b,q,M,w,S,E){if(!b)return p;var K=1;if(q===g&&(q=6),w<0?(K=0,w=-w):15<w&&(K=2,w-=16),S<1||x<S||M!==m||w<8||15<w||q<0||9<q||E<0||v<E)return Y(b,p);w===8&&(w=9);var $=new z;return(b.state=$).strm=b,$.wrap=K,$.gzhead=null,$.w_bits=w,$.w_size=1<<$.w_bits,$.w_mask=$.w_size-1,$.hash_bits=S+7,$.hash_size=1<<$.hash_bits,$.hash_mask=$.hash_size-1,$.hash_shift=~~(($.hash_bits+_-1)/_),$.window=new a.Buf8(2*$.w_size),$.head=new a.Buf16($.hash_size),$.prev=new a.Buf16($.w_size),$.lit_bufsize=1<<S+6,$.pending_buf_size=4*$.lit_bufsize,$.pending_buf=new a.Buf8($.pending_buf_size),$.d_buf=1*$.lit_bufsize,$.l_buf=3*$.lit_bufsize,$.level=q,$.strategy=E,$.method=M,j(b)}o=[new G(0,0,0,0,function(b,q){var M=65535;for(M>b.pending_buf_size-5&&(M=b.pending_buf_size-5);;){if(b.lookahead<=1){if(ee(b),b.lookahead===0&&q===h)return y;if(b.lookahead===0)break}b.strstart+=b.lookahead,b.lookahead=0;var w=b.block_start+M;if((b.strstart===0||b.strstart>=w)&&(b.lookahead=b.strstart-w,b.strstart=w,N(b,!1),b.strm.avail_out===0)||b.strstart-b.block_start>=b.w_size-te&&(N(b,!1),b.strm.avail_out===0))return y}return b.insert=0,q===d?(N(b,!0),b.strm.avail_out===0?k:F):(b.strstart>b.block_start&&(N(b,!1),b.strm.avail_out),y)}),new G(4,4,8,4,X),new G(4,5,16,8,X),new G(4,6,32,32,X),new G(4,4,16,16,C),new G(8,16,32,32,C),new G(8,16,128,128,C),new G(8,32,128,256,C),new G(32,128,258,1024,C),new G(32,258,258,4096,C)],i.deflateInit=function(b,q){return ue(b,q,m,15,8,0)},i.deflateInit2=ue,i.deflateReset=j,i.deflateResetKeep=H,i.deflateSetHeader=function(b,q){return b&&b.state?b.state.wrap!==2?p:(b.state.gzhead=q,f):p},i.deflate=function(b,q){var M,w,S,E;if(!b||!b.state||5<q||q<0)return b?Y(b,p):p;if(w=b.state,!b.output||!b.input&&b.avail_in!==0||w.status===666&&q!==d)return Y(b,b.avail_out===0?-5:p);if(w.strm=b,M=w.last_flush,w.last_flush=q,w.status===O)if(w.wrap===2)b.adler=0,J(w,31),J(w,139),J(w,8),w.gzhead?(J(w,(w.gzhead.text?1:0)+(w.gzhead.hcrc?2:0)+(w.gzhead.extra?4:0)+(w.gzhead.name?8:0)+(w.gzhead.comment?16:0)),J(w,255&w.gzhead.time),J(w,w.gzhead.time>>8&255),J(w,w.gzhead.time>>16&255),J(w,w.gzhead.time>>24&255),J(w,w.level===9?2:2<=w.strategy||w.level<2?4:0),J(w,255&w.gzhead.os),w.gzhead.extra&&w.gzhead.extra.length&&(J(w,255&w.gzhead.extra.length),J(w,w.gzhead.extra.length>>8&255)),w.gzhead.hcrc&&(b.adler=c(b.adler,w.pending_buf,w.pending,0)),w.gzindex=0,w.status=69):(J(w,0),J(w,0),J(w,0),J(w,0),J(w,0),J(w,w.level===9?2:2<=w.strategy||w.level<2?4:0),J(w,3),w.status=I);else{var K=m+(w.w_bits-8<<4)<<8;K|=(2<=w.strategy||w.level<2?0:w.level<6?1:w.level===6?2:3)<<6,w.strstart!==0&&(K|=32),K+=31-K%31,w.status=I,B(w,K),w.strstart!==0&&(B(w,b.adler>>>16),B(w,65535&b.adler)),b.adler=1}if(w.status===69)if(w.gzhead.extra){for(S=w.pending;w.gzindex<(65535&w.gzhead.extra.length)&&(w.pending!==w.pending_buf_size||(w.gzhead.hcrc&&w.pending>S&&(b.adler=c(b.adler,w.pending_buf,w.pending-S,S)),U(b),S=w.pending,w.pending!==w.pending_buf_size));)J(w,255&w.gzhead.extra[w.gzindex]),w.gzindex++;w.gzhead.hcrc&&w.pending>S&&(b.adler=c(b.adler,w.pending_buf,w.pending-S,S)),w.gzindex===w.gzhead.extra.length&&(w.gzindex=0,w.status=73)}else w.status=73;if(w.status===73)if(w.gzhead.name){S=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>S&&(b.adler=c(b.adler,w.pending_buf,w.pending-S,S)),U(b),S=w.pending,w.pending===w.pending_buf_size)){E=1;break}E=w.gzindex<w.gzhead.name.length?255&w.gzhead.name.charCodeAt(w.gzindex++):0,J(w,E)}while(E!==0);w.gzhead.hcrc&&w.pending>S&&(b.adler=c(b.adler,w.pending_buf,w.pending-S,S)),E===0&&(w.gzindex=0,w.status=91)}else w.status=91;if(w.status===91)if(w.gzhead.comment){S=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>S&&(b.adler=c(b.adler,w.pending_buf,w.pending-S,S)),U(b),S=w.pending,w.pending===w.pending_buf_size)){E=1;break}E=w.gzindex<w.gzhead.comment.length?255&w.gzhead.comment.charCodeAt(w.gzindex++):0,J(w,E)}while(E!==0);w.gzhead.hcrc&&w.pending>S&&(b.adler=c(b.adler,w.pending_buf,w.pending-S,S)),E===0&&(w.status=103)}else w.status=103;if(w.status===103&&(w.gzhead.hcrc?(w.pending+2>w.pending_buf_size&&U(b),w.pending+2<=w.pending_buf_size&&(J(w,255&b.adler),J(w,b.adler>>8&255),b.adler=0,w.status=I)):w.status=I),w.pending!==0){if(U(b),b.avail_out===0)return w.last_flush=-1,f}else if(b.avail_in===0&&V(q)<=V(M)&&q!==d)return Y(b,-5);if(w.status===666&&b.avail_in!==0)return Y(b,-5);if(b.avail_in!==0||w.lookahead!==0||q!==h&&w.status!==666){var $=w.strategy===2?function(Z,oe){for(var ce;;){if(Z.lookahead===0&&(ee(Z),Z.lookahead===0)){if(oe===h)return y;break}if(Z.match_length=0,ce=s._tr_tally(Z,0,Z.window[Z.strstart]),Z.lookahead--,Z.strstart++,ce&&(N(Z,!1),Z.strm.avail_out===0))return y}return Z.insert=0,oe===d?(N(Z,!0),Z.strm.avail_out===0?k:F):Z.last_lit&&(N(Z,!1),Z.strm.avail_out===0)?y:L}(w,q):w.strategy===3?function(Z,oe){for(var ce,se,ge,Oe,Te=Z.window;;){if(Z.lookahead<=Q){if(ee(Z),Z.lookahead<=Q&&oe===h)return y;if(Z.lookahead===0)break}if(Z.match_length=0,Z.lookahead>=_&&0<Z.strstart&&(se=Te[ge=Z.strstart-1])===Te[++ge]&&se===Te[++ge]&&se===Te[++ge]){Oe=Z.strstart+Q;do;while(se===Te[++ge]&&se===Te[++ge]&&se===Te[++ge]&&se===Te[++ge]&&se===Te[++ge]&&se===Te[++ge]&&se===Te[++ge]&&se===Te[++ge]&&ge<Oe);Z.match_length=Q-(Oe-ge),Z.match_length>Z.lookahead&&(Z.match_length=Z.lookahead)}if(Z.match_length>=_?(ce=s._tr_tally(Z,1,Z.match_length-_),Z.lookahead-=Z.match_length,Z.strstart+=Z.match_length,Z.match_length=0):(ce=s._tr_tally(Z,0,Z.window[Z.strstart]),Z.lookahead--,Z.strstart++),ce&&(N(Z,!1),Z.strm.avail_out===0))return y}return Z.insert=0,oe===d?(N(Z,!0),Z.strm.avail_out===0?k:F):Z.last_lit&&(N(Z,!1),Z.strm.avail_out===0)?y:L}(w,q):o[w.level].func(w,q);if($!==k&&$!==F||(w.status=666),$===y||$===k)return b.avail_out===0&&(w.last_flush=-1),f;if($===L&&(q===1?s._tr_align(w):q!==5&&(s._tr_stored_block(w,0,0,!1),q===3&&(ie(w.head),w.lookahead===0&&(w.strstart=0,w.block_start=0,w.insert=0))),U(b),b.avail_out===0))return w.last_flush=-1,f}return q!==d?f:w.wrap<=0?1:(w.wrap===2?(J(w,255&b.adler),J(w,b.adler>>8&255),J(w,b.adler>>16&255),J(w,b.adler>>24&255),J(w,255&b.total_in),J(w,b.total_in>>8&255),J(w,b.total_in>>16&255),J(w,b.total_in>>24&255)):(B(w,b.adler>>>16),B(w,65535&b.adler)),U(b),0<w.wrap&&(w.wrap=-w.wrap),w.pending!==0?f:1)},i.deflateEnd=function(b){var q;return b&&b.state?(q=b.state.status)!==O&&q!==69&&q!==73&&q!==91&&q!==103&&q!==I&&q!==666?Y(b,p):(b.state=null,q===I?Y(b,-3):f):p},i.deflateSetDictionary=function(b,q){var M,w,S,E,K,$,Z,oe,ce=q.length;if(!b||!b.state||(E=(M=b.state).wrap)===2||E===1&&M.status!==O||M.lookahead)return p;for(E===1&&(b.adler=l(b.adler,q,ce,0)),M.wrap=0,ce>=M.w_size&&(E===0&&(ie(M.head),M.strstart=0,M.block_start=0,M.insert=0),oe=new a.Buf8(M.w_size),a.arraySet(oe,q,ce-M.w_size,M.w_size,0),q=oe,ce=M.w_size),K=b.avail_in,$=b.next_in,Z=b.input,b.avail_in=ce,b.next_in=0,b.input=q,ee(M);M.lookahead>=_;){for(w=M.strstart,S=M.lookahead-(_-1);M.ins_h=(M.ins_h<<M.hash_shift^M.window[w+_-1])&M.hash_mask,M.prev[w&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=w,w++,--S;);M.strstart=w,M.lookahead=_-1,ee(M)}return M.strstart+=M.lookahead,M.block_start=M.strstart,M.insert=M.lookahead,M.lookahead=0,M.match_length=M.prev_length=_-1,M.match_available=0,b.next_in=$,b.input=Z,b.avail_in=K,M.wrap=E,f},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,n,i){n.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(t,n,i){n.exports=function(o,a){var s,l,c,u,h,d,f,p,g,v,R,m,x,T,P,A,D,W,_,Q,te,O,I,y,L;s=o.state,l=o.next_in,y=o.input,c=l+(o.avail_in-5),u=o.next_out,L=o.output,h=u-(a-o.avail_out),d=u+(o.avail_out-257),f=s.dmax,p=s.wsize,g=s.whave,v=s.wnext,R=s.window,m=s.hold,x=s.bits,T=s.lencode,P=s.distcode,A=(1<<s.lenbits)-1,D=(1<<s.distbits)-1;e:do{x<15&&(m+=y[l++]<<x,x+=8,m+=y[l++]<<x,x+=8),W=T[m&A];t:for(;;){if(m>>>=_=W>>>24,x-=_,(_=W>>>16&255)===0)L[u++]=65535&W;else{if(!(16&_)){if((64&_)==0){W=T[(65535&W)+(m&(1<<_)-1)];continue t}if(32&_){s.mode=12;break e}o.msg="invalid literal/length code",s.mode=30;break e}Q=65535&W,(_&=15)&&(x<_&&(m+=y[l++]<<x,x+=8),Q+=m&(1<<_)-1,m>>>=_,x-=_),x<15&&(m+=y[l++]<<x,x+=8,m+=y[l++]<<x,x+=8),W=P[m&D];r:for(;;){if(m>>>=_=W>>>24,x-=_,!(16&(_=W>>>16&255))){if((64&_)==0){W=P[(65535&W)+(m&(1<<_)-1)];continue r}o.msg="invalid distance code",s.mode=30;break e}if(te=65535&W,x<(_&=15)&&(m+=y[l++]<<x,(x+=8)<_&&(m+=y[l++]<<x,x+=8)),f<(te+=m&(1<<_)-1)){o.msg="invalid distance too far back",s.mode=30;break e}if(m>>>=_,x-=_,(_=u-h)<te){if(g<(_=te-_)&&s.sane){o.msg="invalid distance too far back",s.mode=30;break e}if(I=R,(O=0)===v){if(O+=p-_,_<Q){for(Q-=_;L[u++]=R[O++],--_;);O=u-te,I=L}}else if(v<_){if(O+=p+v-_,(_-=v)<Q){for(Q-=_;L[u++]=R[O++],--_;);if(O=0,v<Q){for(Q-=_=v;L[u++]=R[O++],--_;);O=u-te,I=L}}}else if(O+=v-_,_<Q){for(Q-=_;L[u++]=R[O++],--_;);O=u-te,I=L}for(;2<Q;)L[u++]=I[O++],L[u++]=I[O++],L[u++]=I[O++],Q-=3;Q&&(L[u++]=I[O++],1<Q&&(L[u++]=I[O++]))}else{for(O=u-te;L[u++]=L[O++],L[u++]=L[O++],L[u++]=L[O++],2<(Q-=3););Q&&(L[u++]=L[O++],1<Q&&(L[u++]=L[O++]))}break}}break}}while(l<c&&u<d);l-=Q=x>>3,m&=(1<<(x-=Q<<3))-1,o.next_in=l,o.next_out=u,o.avail_in=l<c?c-l+5:5-(l-c),o.avail_out=u<d?d-u+257:257-(u-d),s.hold=m,s.bits=x}},{}],49:[function(t,n,i){var o=t("../utils/common"),a=t("./adler32"),s=t("./crc32"),l=t("./inffast"),c=t("./inftrees"),u=1,h=2,d=0,f=-2,p=1,g=852,v=592;function R(O){return(O>>>24&255)+(O>>>8&65280)+((65280&O)<<8)+((255&O)<<24)}function m(){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 o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function x(O){var I;return O&&O.state?(I=O.state,O.total_in=O.total_out=I.total=0,O.msg="",I.wrap&&(O.adler=1&I.wrap),I.mode=p,I.last=0,I.havedict=0,I.dmax=32768,I.head=null,I.hold=0,I.bits=0,I.lencode=I.lendyn=new o.Buf32(g),I.distcode=I.distdyn=new o.Buf32(v),I.sane=1,I.back=-1,d):f}function T(O){var I;return O&&O.state?((I=O.state).wsize=0,I.whave=0,I.wnext=0,x(O)):f}function P(O,I){var y,L;return O&&O.state?(L=O.state,I<0?(y=0,I=-I):(y=1+(I>>4),I<48&&(I&=15)),I&&(I<8||15<I)?f:(L.window!==null&&L.wbits!==I&&(L.window=null),L.wrap=y,L.wbits=I,T(O))):f}function A(O,I){var y,L;return O?(L=new m,(O.state=L).window=null,(y=P(O,I))!==d&&(O.state=null),y):f}var D,W,_=!0;function Q(O){if(_){var I;for(D=new o.Buf32(512),W=new o.Buf32(32),I=0;I<144;)O.lens[I++]=8;for(;I<256;)O.lens[I++]=9;for(;I<280;)O.lens[I++]=7;for(;I<288;)O.lens[I++]=8;for(c(u,O.lens,0,288,D,0,O.work,{bits:9}),I=0;I<32;)O.lens[I++]=5;c(h,O.lens,0,32,W,0,O.work,{bits:5}),_=!1}O.lencode=D,O.lenbits=9,O.distcode=W,O.distbits=5}function te(O,I,y,L){var k,F=O.state;return F.window===null&&(F.wsize=1<<F.wbits,F.wnext=0,F.whave=0,F.window=new o.Buf8(F.wsize)),L>=F.wsize?(o.arraySet(F.window,I,y-F.wsize,F.wsize,0),F.wnext=0,F.whave=F.wsize):(L<(k=F.wsize-F.wnext)&&(k=L),o.arraySet(F.window,I,y-L,k,F.wnext),(L-=k)?(o.arraySet(F.window,I,y-L,L,0),F.wnext=L,F.whave=F.wsize):(F.wnext+=k,F.wnext===F.wsize&&(F.wnext=0),F.whave<F.wsize&&(F.whave+=k))),0}i.inflateReset=T,i.inflateReset2=P,i.inflateResetKeep=x,i.inflateInit=function(O){return A(O,15)},i.inflateInit2=A,i.inflate=function(O,I){var y,L,k,F,Y,V,ie,U,N,J,B,re,ee,X,C,G,z,H,j,ue,b,q,M,w,S=0,E=new o.Buf8(4),K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!O||!O.state||!O.output||!O.input&&O.avail_in!==0)return f;(y=O.state).mode===12&&(y.mode=13),Y=O.next_out,k=O.output,ie=O.avail_out,F=O.next_in,L=O.input,V=O.avail_in,U=y.hold,N=y.bits,J=V,B=ie,q=d;e:for(;;)switch(y.mode){case p:if(y.wrap===0){y.mode=13;break}for(;N<16;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(2&y.wrap&&U===35615){E[y.check=0]=255&U,E[1]=U>>>8&255,y.check=s(y.check,E,2,0),N=U=0,y.mode=2;break}if(y.flags=0,y.head&&(y.head.done=!1),!(1&y.wrap)||(((255&U)<<8)+(U>>8))%31){O.msg="incorrect header check",y.mode=30;break}if((15&U)!=8){O.msg="unknown compression method",y.mode=30;break}if(N-=4,b=8+(15&(U>>>=4)),y.wbits===0)y.wbits=b;else if(b>y.wbits){O.msg="invalid window size",y.mode=30;break}y.dmax=1<<b,O.adler=y.check=1,y.mode=512&U?10:12,N=U=0;break;case 2:for(;N<16;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(y.flags=U,(255&y.flags)!=8){O.msg="unknown compression method",y.mode=30;break}if(57344&y.flags){O.msg="unknown header flags set",y.mode=30;break}y.head&&(y.head.text=U>>8&1),512&y.flags&&(E[0]=255&U,E[1]=U>>>8&255,y.check=s(y.check,E,2,0)),N=U=0,y.mode=3;case 3:for(;N<32;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}y.head&&(y.head.time=U),512&y.flags&&(E[0]=255&U,E[1]=U>>>8&255,E[2]=U>>>16&255,E[3]=U>>>24&255,y.check=s(y.check,E,4,0)),N=U=0,y.mode=4;case 4:for(;N<16;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}y.head&&(y.head.xflags=255&U,y.head.os=U>>8),512&y.flags&&(E[0]=255&U,E[1]=U>>>8&255,y.check=s(y.check,E,2,0)),N=U=0,y.mode=5;case 5:if(1024&y.flags){for(;N<16;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}y.length=U,y.head&&(y.head.extra_len=U),512&y.flags&&(E[0]=255&U,E[1]=U>>>8&255,y.check=s(y.check,E,2,0)),N=U=0}else y.head&&(y.head.extra=null);y.mode=6;case 6:if(1024&y.flags&&(V<(re=y.length)&&(re=V),re&&(y.head&&(b=y.head.extra_len-y.length,y.head.extra||(y.head.extra=new Array(y.head.extra_len)),o.arraySet(y.head.extra,L,F,re,b)),512&y.flags&&(y.check=s(y.check,L,re,F)),V-=re,F+=re,y.length-=re),y.length))break e;y.length=0,y.mode=7;case 7:if(2048&y.flags){if(V===0)break e;for(re=0;b=L[F+re++],y.head&&b&&y.length<65536&&(y.head.name+=String.fromCharCode(b)),b&&re<V;);if(512&y.flags&&(y.check=s(y.check,L,re,F)),V-=re,F+=re,b)break e}else y.head&&(y.head.name=null);y.length=0,y.mode=8;case 8:if(4096&y.flags){if(V===0)break e;for(re=0;b=L[F+re++],y.head&&b&&y.length<65536&&(y.head.comment+=String.fromCharCode(b)),b&&re<V;);if(512&y.flags&&(y.check=s(y.check,L,re,F)),V-=re,F+=re,b)break e}else y.head&&(y.head.comment=null);y.mode=9;case 9:if(512&y.flags){for(;N<16;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(U!==(65535&y.check)){O.msg="header crc mismatch",y.mode=30;break}N=U=0}y.head&&(y.head.hcrc=y.flags>>9&1,y.head.done=!0),O.adler=y.check=0,y.mode=12;break;case 10:for(;N<32;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}O.adler=y.check=R(U),N=U=0,y.mode=11;case 11:if(y.havedict===0)return O.next_out=Y,O.avail_out=ie,O.next_in=F,O.avail_in=V,y.hold=U,y.bits=N,2;O.adler=y.check=1,y.mode=12;case 12:if(I===5||I===6)break e;case 13:if(y.last){U>>>=7&N,N-=7&N,y.mode=27;break}for(;N<3;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}switch(y.last=1&U,N-=1,3&(U>>>=1)){case 0:y.mode=14;break;case 1:if(Q(y),y.mode=20,I!==6)break;U>>>=2,N-=2;break e;case 2:y.mode=17;break;case 3:O.msg="invalid block type",y.mode=30}U>>>=2,N-=2;break;case 14:for(U>>>=7&N,N-=7&N;N<32;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if((65535&U)!=(U>>>16^65535)){O.msg="invalid stored block lengths",y.mode=30;break}if(y.length=65535&U,N=U=0,y.mode=15,I===6)break e;case 15:y.mode=16;case 16:if(re=y.length){if(V<re&&(re=V),ie<re&&(re=ie),re===0)break e;o.arraySet(k,L,F,re,Y),V-=re,F+=re,ie-=re,Y+=re,y.length-=re;break}y.mode=12;break;case 17:for(;N<14;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(y.nlen=257+(31&U),U>>>=5,N-=5,y.ndist=1+(31&U),U>>>=5,N-=5,y.ncode=4+(15&U),U>>>=4,N-=4,286<y.nlen||30<y.ndist){O.msg="too many length or distance symbols",y.mode=30;break}y.have=0,y.mode=18;case 18:for(;y.have<y.ncode;){for(;N<3;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}y.lens[K[y.have++]]=7&U,U>>>=3,N-=3}for(;y.have<19;)y.lens[K[y.have++]]=0;if(y.lencode=y.lendyn,y.lenbits=7,M={bits:y.lenbits},q=c(0,y.lens,0,19,y.lencode,0,y.work,M),y.lenbits=M.bits,q){O.msg="invalid code lengths set",y.mode=30;break}y.have=0,y.mode=19;case 19:for(;y.have<y.nlen+y.ndist;){for(;G=(S=y.lencode[U&(1<<y.lenbits)-1])>>>16&255,z=65535&S,!((C=S>>>24)<=N);){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(z<16)U>>>=C,N-=C,y.lens[y.have++]=z;else{if(z===16){for(w=C+2;N<w;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(U>>>=C,N-=C,y.have===0){O.msg="invalid bit length repeat",y.mode=30;break}b=y.lens[y.have-1],re=3+(3&U),U>>>=2,N-=2}else if(z===17){for(w=C+3;N<w;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}N-=C,b=0,re=3+(7&(U>>>=C)),U>>>=3,N-=3}else{for(w=C+7;N<w;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}N-=C,b=0,re=11+(127&(U>>>=C)),U>>>=7,N-=7}if(y.have+re>y.nlen+y.ndist){O.msg="invalid bit length repeat",y.mode=30;break}for(;re--;)y.lens[y.have++]=b}}if(y.mode===30)break;if(y.lens[256]===0){O.msg="invalid code -- missing end-of-block",y.mode=30;break}if(y.lenbits=9,M={bits:y.lenbits},q=c(u,y.lens,0,y.nlen,y.lencode,0,y.work,M),y.lenbits=M.bits,q){O.msg="invalid literal/lengths set",y.mode=30;break}if(y.distbits=6,y.distcode=y.distdyn,M={bits:y.distbits},q=c(h,y.lens,y.nlen,y.ndist,y.distcode,0,y.work,M),y.distbits=M.bits,q){O.msg="invalid distances set",y.mode=30;break}if(y.mode=20,I===6)break e;case 20:y.mode=21;case 21:if(6<=V&&258<=ie){O.next_out=Y,O.avail_out=ie,O.next_in=F,O.avail_in=V,y.hold=U,y.bits=N,l(O,B),Y=O.next_out,k=O.output,ie=O.avail_out,F=O.next_in,L=O.input,V=O.avail_in,U=y.hold,N=y.bits,y.mode===12&&(y.back=-1);break}for(y.back=0;G=(S=y.lencode[U&(1<<y.lenbits)-1])>>>16&255,z=65535&S,!((C=S>>>24)<=N);){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(G&&(240&G)==0){for(H=C,j=G,ue=z;G=(S=y.lencode[ue+((U&(1<<H+j)-1)>>H)])>>>16&255,z=65535&S,!(H+(C=S>>>24)<=N);){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}U>>>=H,N-=H,y.back+=H}if(U>>>=C,N-=C,y.back+=C,y.length=z,G===0){y.mode=26;break}if(32&G){y.back=-1,y.mode=12;break}if(64&G){O.msg="invalid literal/length code",y.mode=30;break}y.extra=15&G,y.mode=22;case 22:if(y.extra){for(w=y.extra;N<w;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}y.length+=U&(1<<y.extra)-1,U>>>=y.extra,N-=y.extra,y.back+=y.extra}y.was=y.length,y.mode=23;case 23:for(;G=(S=y.distcode[U&(1<<y.distbits)-1])>>>16&255,z=65535&S,!((C=S>>>24)<=N);){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if((240&G)==0){for(H=C,j=G,ue=z;G=(S=y.distcode[ue+((U&(1<<H+j)-1)>>H)])>>>16&255,z=65535&S,!(H+(C=S>>>24)<=N);){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}U>>>=H,N-=H,y.back+=H}if(U>>>=C,N-=C,y.back+=C,64&G){O.msg="invalid distance code",y.mode=30;break}y.offset=z,y.extra=15&G,y.mode=24;case 24:if(y.extra){for(w=y.extra;N<w;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}y.offset+=U&(1<<y.extra)-1,U>>>=y.extra,N-=y.extra,y.back+=y.extra}if(y.offset>y.dmax){O.msg="invalid distance too far back",y.mode=30;break}y.mode=25;case 25:if(ie===0)break e;if(re=B-ie,y.offset>re){if((re=y.offset-re)>y.whave&&y.sane){O.msg="invalid distance too far back",y.mode=30;break}ee=re>y.wnext?(re-=y.wnext,y.wsize-re):y.wnext-re,re>y.length&&(re=y.length),X=y.window}else X=k,ee=Y-y.offset,re=y.length;for(ie<re&&(re=ie),ie-=re,y.length-=re;k[Y++]=X[ee++],--re;);y.length===0&&(y.mode=21);break;case 26:if(ie===0)break e;k[Y++]=y.length,ie--,y.mode=21;break;case 27:if(y.wrap){for(;N<32;){if(V===0)break e;V--,U|=L[F++]<<N,N+=8}if(B-=ie,O.total_out+=B,y.total+=B,B&&(O.adler=y.check=y.flags?s(y.check,k,B,Y-B):a(y.check,k,B,Y-B)),B=ie,(y.flags?U:R(U))!==y.check){O.msg="incorrect data check",y.mode=30;break}N=U=0}y.mode=28;case 28:if(y.wrap&&y.flags){for(;N<32;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(U!==(4294967295&y.total)){O.msg="incorrect length check",y.mode=30;break}N=U=0}y.mode=29;case 29:q=1;break e;case 30:q=-3;break e;case 31:return-4;case 32:default:return f}return O.next_out=Y,O.avail_out=ie,O.next_in=F,O.avail_in=V,y.hold=U,y.bits=N,(y.wsize||B!==O.avail_out&&y.mode<30&&(y.mode<27||I!==4))&&te(O,O.output,O.next_out,B-O.avail_out)?(y.mode=31,-4):(J-=O.avail_in,B-=O.avail_out,O.total_in+=J,O.total_out+=B,y.total+=B,y.wrap&&B&&(O.adler=y.check=y.flags?s(y.check,k,B,O.next_out-B):a(y.check,k,B,O.next_out-B)),O.data_type=y.bits+(y.last?64:0)+(y.mode===12?128:0)+(y.mode===20||y.mode===15?256:0),(J==0&&B===0||I===4)&&q===d&&(q=-5),q)},i.inflateEnd=function(O){if(!O||!O.state)return f;var I=O.state;return I.window&&(I.window=null),O.state=null,d},i.inflateGetHeader=function(O,I){var y;return O&&O.state?(2&(y=O.state).wrap)==0?f:((y.head=I).done=!1,d):f},i.inflateSetDictionary=function(O,I){var y,L=I.length;return O&&O.state?(y=O.state).wrap!==0&&y.mode!==11?f:y.mode===11&&a(1,I,L,0)!==y.check?-3:te(O,I,L,L)?(y.mode=31,-4):(y.havedict=1,d):f},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,n,i){var o=t("../utils/common"),a=[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],s=[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],l=[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],c=[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];n.exports=function(u,h,d,f,p,g,v,R){var m,x,T,P,A,D,W,_,Q,te=R.bits,O=0,I=0,y=0,L=0,k=0,F=0,Y=0,V=0,ie=0,U=0,N=null,J=0,B=new o.Buf16(16),re=new o.Buf16(16),ee=null,X=0;for(O=0;O<=15;O++)B[O]=0;for(I=0;I<f;I++)B[h[d+I]]++;for(k=te,L=15;1<=L&&B[L]===0;L--);if(L<k&&(k=L),L===0)return p[g++]=20971520,p[g++]=20971520,R.bits=1,0;for(y=1;y<L&&B[y]===0;y++);for(k<y&&(k=y),O=V=1;O<=15;O++)if(V<<=1,(V-=B[O])<0)return-1;if(0<V&&(u===0||L!==1))return-1;for(re[1]=0,O=1;O<15;O++)re[O+1]=re[O]+B[O];for(I=0;I<f;I++)h[d+I]!==0&&(v[re[h[d+I]]++]=I);if(D=u===0?(N=ee=v,19):u===1?(N=a,J-=257,ee=s,X-=257,256):(N=l,ee=c,-1),O=y,A=g,Y=I=U=0,T=-1,P=(ie=1<<(F=k))-1,u===1&&852<ie||u===2&&592<ie)return 1;for(;;){for(W=O-Y,Q=v[I]<D?(_=0,v[I]):v[I]>D?(_=ee[X+v[I]],N[J+v[I]]):(_=96,0),m=1<<O-Y,y=x=1<<F;p[A+(U>>Y)+(x-=m)]=W<<24|_<<16|Q|0,x!==0;);for(m=1<<O-1;U&m;)m>>=1;if(m!==0?(U&=m-1,U+=m):U=0,I++,--B[O]==0){if(O===L)break;O=h[d+v[I]]}if(k<O&&(U&P)!==T){for(Y===0&&(Y=k),A+=y,V=1<<(F=O-Y);F+Y<L&&!((V-=B[F+Y])<=0);)F++,V<<=1;if(ie+=1<<F,u===1&&852<ie||u===2&&592<ie)return 1;p[T=U&P]=k<<24|F<<16|A-g|0}}return U!==0&&(p[A+U]=O-Y<<24|64<<16|0),R.bits=k,0}},{"../utils/common":41}],51:[function(t,n,i){n.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(t,n,i){var o=t("../utils/common"),a=0,s=1;function l(S){for(var E=S.length;0<=--E;)S[E]=0}var c=0,u=29,h=256,d=h+1+u,f=30,p=19,g=2*d+1,v=15,R=16,m=7,x=256,T=16,P=17,A=18,D=[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],W=[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],_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],te=new Array(2*(d+2));l(te);var O=new Array(2*f);l(O);var I=new Array(512);l(I);var y=new Array(256);l(y);var L=new Array(u);l(L);var k,F,Y,V=new Array(f);function ie(S,E,K,$,Z){this.static_tree=S,this.extra_bits=E,this.extra_base=K,this.elems=$,this.max_length=Z,this.has_stree=S&&S.length}function U(S,E){this.dyn_tree=S,this.max_code=0,this.stat_desc=E}function N(S){return S<256?I[S]:I[256+(S>>>7)]}function J(S,E){S.pending_buf[S.pending++]=255&E,S.pending_buf[S.pending++]=E>>>8&255}function B(S,E,K){S.bi_valid>R-K?(S.bi_buf|=E<<S.bi_valid&65535,J(S,S.bi_buf),S.bi_buf=E>>R-S.bi_valid,S.bi_valid+=K-R):(S.bi_buf|=E<<S.bi_valid&65535,S.bi_valid+=K)}function re(S,E,K){B(S,K[2*E],K[2*E+1])}function ee(S,E){for(var K=0;K|=1&S,S>>>=1,K<<=1,0<--E;);return K>>>1}function X(S,E,K){var $,Z,oe=new Array(v+1),ce=0;for($=1;$<=v;$++)oe[$]=ce=ce+K[$-1]<<1;for(Z=0;Z<=E;Z++){var se=S[2*Z+1];se!==0&&(S[2*Z]=ee(oe[se]++,se))}}function C(S){var E;for(E=0;E<d;E++)S.dyn_ltree[2*E]=0;for(E=0;E<f;E++)S.dyn_dtree[2*E]=0;for(E=0;E<p;E++)S.bl_tree[2*E]=0;S.dyn_ltree[2*x]=1,S.opt_len=S.static_len=0,S.last_lit=S.matches=0}function G(S){8<S.bi_valid?J(S,S.bi_buf):0<S.bi_valid&&(S.pending_buf[S.pending++]=S.bi_buf),S.bi_buf=0,S.bi_valid=0}function z(S,E,K,$){var Z=2*E,oe=2*K;return S[Z]<S[oe]||S[Z]===S[oe]&&$[E]<=$[K]}function H(S,E,K){for(var $=S.heap[K],Z=K<<1;Z<=S.heap_len&&(Z<S.heap_len&&z(E,S.heap[Z+1],S.heap[Z],S.depth)&&Z++,!z(E,$,S.heap[Z],S.depth));)S.heap[K]=S.heap[Z],K=Z,Z<<=1;S.heap[K]=$}function j(S,E,K){var $,Z,oe,ce,se=0;if(S.last_lit!==0)for(;$=S.pending_buf[S.d_buf+2*se]<<8|S.pending_buf[S.d_buf+2*se+1],Z=S.pending_buf[S.l_buf+se],se++,$===0?re(S,Z,E):(re(S,(oe=y[Z])+h+1,E),(ce=D[oe])!==0&&B(S,Z-=L[oe],ce),re(S,oe=N(--$),K),(ce=W[oe])!==0&&B(S,$-=V[oe],ce)),se<S.last_lit;);re(S,x,E)}function ue(S,E){var K,$,Z,oe=E.dyn_tree,ce=E.stat_desc.static_tree,se=E.stat_desc.has_stree,ge=E.stat_desc.elems,Oe=-1;for(S.heap_len=0,S.heap_max=g,K=0;K<ge;K++)oe[2*K]!==0?(S.heap[++S.heap_len]=Oe=K,S.depth[K]=0):oe[2*K+1]=0;for(;S.heap_len<2;)oe[2*(Z=S.heap[++S.heap_len]=Oe<2?++Oe:0)]=1,S.depth[Z]=0,S.opt_len--,se&&(S.static_len-=ce[2*Z+1]);for(E.max_code=Oe,K=S.heap_len>>1;1<=K;K--)H(S,oe,K);for(Z=ge;K=S.heap[1],S.heap[1]=S.heap[S.heap_len--],H(S,oe,1),$=S.heap[1],S.heap[--S.heap_max]=K,S.heap[--S.heap_max]=$,oe[2*Z]=oe[2*K]+oe[2*$],S.depth[Z]=(S.depth[K]>=S.depth[$]?S.depth[K]:S.depth[$])+1,oe[2*K+1]=oe[2*$+1]=Z,S.heap[1]=Z++,H(S,oe,1),2<=S.heap_len;);S.heap[--S.heap_max]=S.heap[1],function(Te,Ye){var Vt,lt,ft,Ue,_t,Jt,Tt=Ye.dyn_tree,Cr=Ye.max_code,Jr=Ye.stat_desc.static_tree,lr=Ye.stat_desc.has_stree,zr=Ye.stat_desc.extra_bits,Ar=Ye.stat_desc.extra_base,er=Ye.stat_desc.max_length,cr=0;for(Ue=0;Ue<=v;Ue++)Te.bl_count[Ue]=0;for(Tt[2*Te.heap[Te.heap_max]+1]=0,Vt=Te.heap_max+1;Vt<g;Vt++)er<(Ue=Tt[2*Tt[2*(lt=Te.heap[Vt])+1]+1]+1)&&(Ue=er,cr++),Tt[2*lt+1]=Ue,Cr<lt||(Te.bl_count[Ue]++,_t=0,Ar<=lt&&(_t=zr[lt-Ar]),Jt=Tt[2*lt],Te.opt_len+=Jt*(Ue+_t),lr&&(Te.static_len+=Jt*(Jr[2*lt+1]+_t)));if(cr!==0){do{for(Ue=er-1;Te.bl_count[Ue]===0;)Ue--;Te.bl_count[Ue]--,Te.bl_count[Ue+1]+=2,Te.bl_count[er]--,cr-=2}while(0<cr);for(Ue=er;Ue!==0;Ue--)for(lt=Te.bl_count[Ue];lt!==0;)Cr<(ft=Te.heap[--Vt])||(Tt[2*ft+1]!==Ue&&(Te.opt_len+=(Ue-Tt[2*ft+1])*Tt[2*ft],Tt[2*ft+1]=Ue),lt--)}}(S,E),X(oe,Oe,S.bl_count)}function b(S,E,K){var $,Z,oe=-1,ce=E[1],se=0,ge=7,Oe=4;for(ce===0&&(ge=138,Oe=3),E[2*(K+1)+1]=65535,$=0;$<=K;$++)Z=ce,ce=E[2*($+1)+1],++se<ge&&Z===ce||(se<Oe?S.bl_tree[2*Z]+=se:Z!==0?(Z!==oe&&S.bl_tree[2*Z]++,S.bl_tree[2*T]++):se<=10?S.bl_tree[2*P]++:S.bl_tree[2*A]++,oe=Z,Oe=(se=0)===ce?(ge=138,3):Z===ce?(ge=6,3):(ge=7,4))}function q(S,E,K){var $,Z,oe=-1,ce=E[1],se=0,ge=7,Oe=4;for(ce===0&&(ge=138,Oe=3),$=0;$<=K;$++)if(Z=ce,ce=E[2*($+1)+1],!(++se<ge&&Z===ce)){if(se<Oe)for(;re(S,Z,S.bl_tree),--se!=0;);else Z!==0?(Z!==oe&&(re(S,Z,S.bl_tree),se--),re(S,T,S.bl_tree),B(S,se-3,2)):se<=10?(re(S,P,S.bl_tree),B(S,se-3,3)):(re(S,A,S.bl_tree),B(S,se-11,7));oe=Z,Oe=(se=0)===ce?(ge=138,3):Z===ce?(ge=6,3):(ge=7,4)}}l(V);var M=!1;function w(S,E,K,$){B(S,(c<<1)+($?1:0),3),function(Z,oe,ce,se){G(Z),se&&(J(Z,ce),J(Z,~ce)),o.arraySet(Z.pending_buf,Z.window,oe,ce,Z.pending),Z.pending+=ce}(S,E,K,!0)}i._tr_init=function(S){M||(function(){var E,K,$,Z,oe,ce=new Array(v+1);for(Z=$=0;Z<u-1;Z++)for(L[Z]=$,E=0;E<1<<D[Z];E++)y[$++]=Z;for(y[$-1]=Z,Z=oe=0;Z<16;Z++)for(V[Z]=oe,E=0;E<1<<W[Z];E++)I[oe++]=Z;for(oe>>=7;Z<f;Z++)for(V[Z]=oe<<7,E=0;E<1<<W[Z]-7;E++)I[256+oe++]=Z;for(K=0;K<=v;K++)ce[K]=0;for(E=0;E<=143;)te[2*E+1]=8,E++,ce[8]++;for(;E<=255;)te[2*E+1]=9,E++,ce[9]++;for(;E<=279;)te[2*E+1]=7,E++,ce[7]++;for(;E<=287;)te[2*E+1]=8,E++,ce[8]++;for(X(te,d+1,ce),E=0;E<f;E++)O[2*E+1]=5,O[2*E]=ee(E,5);k=new ie(te,D,h+1,d,v),F=new ie(O,W,0,f,v),Y=new ie(new Array(0),_,0,p,m)}(),M=!0),S.l_desc=new U(S.dyn_ltree,k),S.d_desc=new U(S.dyn_dtree,F),S.bl_desc=new U(S.bl_tree,Y),S.bi_buf=0,S.bi_valid=0,C(S)},i._tr_stored_block=w,i._tr_flush_block=function(S,E,K,$){var Z,oe,ce=0;0<S.level?(S.strm.data_type===2&&(S.strm.data_type=function(se){var ge,Oe=4093624447;for(ge=0;ge<=31;ge++,Oe>>>=1)if(1&Oe&&se.dyn_ltree[2*ge]!==0)return a;if(se.dyn_ltree[18]!==0||se.dyn_ltree[20]!==0||se.dyn_ltree[26]!==0)return s;for(ge=32;ge<h;ge++)if(se.dyn_ltree[2*ge]!==0)return s;return a}(S)),ue(S,S.l_desc),ue(S,S.d_desc),ce=function(se){var ge;for(b(se,se.dyn_ltree,se.l_desc.max_code),b(se,se.dyn_dtree,se.d_desc.max_code),ue(se,se.bl_desc),ge=p-1;3<=ge&&se.bl_tree[2*Q[ge]+1]===0;ge--);return se.opt_len+=3*(ge+1)+5+5+4,ge}(S),Z=S.opt_len+3+7>>>3,(oe=S.static_len+3+7>>>3)<=Z&&(Z=oe)):Z=oe=K+5,K+4<=Z&&E!==-1?w(S,E,K,$):S.strategy===4||oe===Z?(B(S,2+($?1:0),3),j(S,te,O)):(B(S,4+($?1:0),3),function(se,ge,Oe,Te){var Ye;for(B(se,ge-257,5),B(se,Oe-1,5),B(se,Te-4,4),Ye=0;Ye<Te;Ye++)B(se,se.bl_tree[2*Q[Ye]+1],3);q(se,se.dyn_ltree,ge-1),q(se,se.dyn_dtree,Oe-1)}(S,S.l_desc.max_code+1,S.d_desc.max_code+1,ce+1),j(S,S.dyn_ltree,S.dyn_dtree)),C(S),$&&G(S)},i._tr_tally=function(S,E,K){return S.pending_buf[S.d_buf+2*S.last_lit]=E>>>8&255,S.pending_buf[S.d_buf+2*S.last_lit+1]=255&E,S.pending_buf[S.l_buf+S.last_lit]=255&K,S.last_lit++,E===0?S.dyn_ltree[2*K]++:(S.matches++,E--,S.dyn_ltree[2*(y[K]+h+1)]++,S.dyn_dtree[2*N(E)]++),S.last_lit===S.lit_bufsize-1},i._tr_align=function(S){B(S,2,3),re(S,x,te),function(E){E.bi_valid===16?(J(E,E.bi_buf),E.bi_buf=0,E.bi_valid=0):8<=E.bi_valid&&(E.pending_buf[E.pending++]=255&E.bi_buf,E.bi_buf>>=8,E.bi_valid-=8)}(S)}},{"../utils/common":41}],53:[function(t,n,i){n.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(t,n,i){(function(o){(function(a,s){if(!a.setImmediate){var l,c,u,h,d=1,f={},p=!1,g=a.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(a);v=v&&v.setTimeout?v:a,l={}.toString.call(a.process)==="[object process]"?function(T){ke.nextTick(function(){m(T)})}:function(){if(a.postMessage&&!a.importScripts){var T=!0,P=a.onmessage;return a.onmessage=function(){T=!1},a.postMessage("","*"),a.onmessage=P,T}}()?(h="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",x,!1):a.attachEvent("onmessage",x),function(T){a.postMessage(h+T,"*")}):a.MessageChannel?((u=new MessageChannel).port1.onmessage=function(T){m(T.data)},function(T){u.port2.postMessage(T)}):g&&"onreadystatechange"in g.createElement("script")?(c=g.documentElement,function(T){var P=g.createElement("script");P.onreadystatechange=function(){m(T),P.onreadystatechange=null,c.removeChild(P),P=null},c.appendChild(P)}):function(T){setTimeout(m,0,T)},v.setImmediate=function(T){typeof T!="function"&&(T=new Function(""+T));for(var P=new Array(arguments.length-1),A=0;A<P.length;A++)P[A]=arguments[A+1];var D={callback:T,args:P};return f[d]=D,l(d),d++},v.clearImmediate=R}function R(T){delete f[T]}function m(T){if(p)setTimeout(m,0,T);else{var P=f[T];if(P){p=!0;try{(function(A){var D=A.callback,W=A.args;switch(W.length){case 0:D();break;case 1:D(W[0]);break;case 2:D(W[0],W[1]);break;case 3:D(W[0],W[1],W[2]);break;default:D.apply(s,W)}})(P)}finally{R(T),p=!1}}}}function x(T){T.source===a&&typeof T.data=="string"&&T.data.indexOf(h)===0&&m(+T.data.slice(h.length))}})(typeof self=="undefined"?o===void 0?this:o:self)}).call(this,typeof an!="undefined"?an:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})})(Tp);var HO=Tp.exports;const BO=d0(HO);var Wa={exports:{}},GO={"&":"&",'"':""","'":"'","<":"<",">":">"};function JO(r){return r&&r.replace?r.replace(/([&"<>'])/g,function(e,t){return GO[t]}):r}var zO=JO,ql=zO,Rf=Ic.Stream,$O=" ";function jO(r,e){typeof e!="object"&&(e={indent:e});var t=e.stream?new Rf:null,n="",i=!1,o=e.indent?e.indent===!0?$O:e.indent:"",a=!0;function s(d){a?ke.nextTick(d):d()}function l(d,f){if(f!==void 0&&(n+=f),d&&!i&&(t=t||new Rf,i=!0),d&&i){var p=n;s(function(){t.emit("data",p)}),n=""}}function c(d,f){kc(l,Va(d,o,o?1:0),f)}function u(){if(t){var d=n;s(function(){t.emit("data",d),t.emit("end"),t.readable=!1,t.emit("close")})}}function h(d){var f=d.encoding||"UTF-8",p={version:"1.0",encoding:f};d.standalone&&(p.standalone=d.standalone),c({"?xml":{_attr:p}}),n=n.replace("/>","?>")}return s(function(){a=!1}),e.declaration&&h(e.declaration),r&&r.forEach?r.forEach(function(d,f){var p;f+1===r.length&&(p=u),c(d,p)}):c(r,u),t?(t.readable=!0,t):n}function qO(){var r=Array.prototype.slice.call(arguments),e={_elem:Va(r)};return e.push=function(t){if(!this.append)throw new Error("not assigned to a parent!");var n=this,i=this._elem.indent;kc(this.append,Va(t,i,this._elem.icount+(i?1:0)),function(){n.append(!0)})},e.close=function(t){t!==void 0&&this.push(t),this.end&&this.end()},e}function e2(r,e){return new Array(e||0).join(r||"")}function Va(r,e,t){t=t||0;var n=e2(e,t),i,o=r,a=!1;if(typeof r=="object"){var s=Object.keys(r);if(i=s[0],o=r[i],o&&o._elem)return o._elem.name=i,o._elem.icount=t,o._elem.indent=e,o._elem.indents=n,o._elem.interrupt=o,o._elem}var l=[],c=[],u;function h(d){var f=Object.keys(d);f.forEach(function(p){l.push(t2(p,d[p]))})}switch(typeof o){case"object":if(o===null)break;o._attr&&h(o._attr),o._cdata&&c.push(("<![CDATA["+o._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),o.forEach&&(u=!1,c.push(""),o.forEach(function(d){if(typeof d=="object"){var f=Object.keys(d)[0];f=="_attr"?h(d._attr):c.push(Va(d,e,t+1))}else c.pop(),u=!0,c.push(ql(d))}),u||c.push(""));break;default:c.push(ql(o))}return{name:i,interrupt:a,attributes:l,content:c,icount:t,indents:n,indent:e}}function kc(r,e,t){if(typeof e!="object")return r(!1,e);var n=e.interrupt?1:e.content.length;function i(){for(;e.content.length;){var a=e.content.shift();if(a!==void 0){if(o(a))return;kc(r,a)}}r(!1,(n>1?e.indents:"")+(e.name?"</"+e.name+">":"")+(e.indent&&!t?`
|
|
`:"")),t&&t()}function o(a){return a.interrupt?(a.interrupt.append=r,a.interrupt.end=i,a.interrupt=!1,r(!0),!0):!1}if(r(!1,e.indents+(e.name?"<"+e.name:"")+(e.attributes.length?" "+e.attributes.join(" "):"")+(n?e.name?">":"":e.name?"/>":"")+(e.indent&&n>1?`
|
|
`:"")),!n)return r(!1,e.indent?`
|
|
`:"");o(e)||i()}function t2(r,e){return r+'="'+ql(e)+'"'}Wa.exports=jO;Wa.exports.element=Wa.exports.Element=qO;var r2=Wa.exports;const Ct=d0(r2),mf=0,vf=32,n2=32,i2=(r,e)=>{const t=e.replace(/-/g,"");if(t.length!==n2)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);const i=t.replace(/(..)/g,"$1 ").trim().split(" ").map(l=>parseInt(l,16));i.reverse();const a=r.slice(mf,vf).map((l,c)=>l^i[c%i.length]);return Buffer.concat([r.slice(0,mf),a,r.slice(vf)])};class o2{format(e,t={stack:[]}){const n=e.prepForXml(t);if(n)return n;throw Error("XMLComponent did not format correctly")}}class a2{replace(e,t,n){let i=e;return t.forEach((o,a)=>{i=i.replace(new RegExp(`{${o.fileName}}`,"g"),(n+a).toString())}),i}getMediaData(e,t){return t.Array.filter(n=>e.search(`{${n.fileName}}`)>0)}}class s2{replace(e,t){let n=e;for(const i of t)n=n.replace(new RegExp(`{${i.reference}-${i.instance}}`,"g"),i.numId.toString());return n}}class l2{constructor(){pe(this,"formatter"),pe(this,"imageReplacer"),pe(this,"numberingReplacer"),this.formatter=new o2,this.imageReplacer=new a2,this.numberingReplacer=new s2}compile(e,t){const n=new BO,i=this.xmlifyFile(e,t),o=new Map(Object.entries(i));for(const[,a]of o)if(Array.isArray(a))for(const s of a)n.file(s.path,s.data);else n.file(a.path,a.data);for(const{stream:a,fileName:s}of e.Media.Array)n.file(`word/media/${s}`,a);for(const{data:a,name:s,fontKey:l}of e.FontTable.fontOptionsWithKey){const[c]=s.split(".");n.file(`word/fonts/${c}.odttf`,i2(a,l))}return n}xmlifyFile(e,t){const n=e.Document.Relationships.RelationshipCount+1,i=Ct(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),o=this.imageReplacer.getMediaData(i,e.Media);return{Relationships:{data:(()=>(o.forEach((a,s)=>{e.Document.Relationships.createRelationship(n+s,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${a.fileName}`)}),Ct(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})))(),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const a=this.imageReplacer.replace(i,o,n);return this.numberingReplacer.replace(a,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const a=Ct(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(a,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Ct(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Ct(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Ct(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((a,s)=>{const l=Ct(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(l,e.Media).forEach((u,h)=>{a.Relationships.createRelationship(h,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${u.fileName}`)}),{data:Ct(this.formatter.format(a.Relationships,{viewWrapper:a,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${s+1}.xml.rels`}}),FooterRelationships:e.Footers.map((a,s)=>{const l=Ct(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(l,e.Media).forEach((u,h)=>{a.Relationships.createRelationship(h,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${u.fileName}`)}),{data:Ct(this.formatter.format(a.Relationships,{viewWrapper:a,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${s+1}.xml.rels`}}),Headers:e.Headers.map((a,s)=>{const l=Ct(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),c=this.imageReplacer.getMediaData(l,e.Media),u=this.imageReplacer.replace(l,c,0);return{data:this.numberingReplacer.replace(u,e.Numbering.ConcreteNumbering),path:`word/header${s+1}.xml`}}),Footers:e.Footers.map((a,s)=>{const l=Ct(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),c=this.imageReplacer.getMediaData(l,e.Media),u=this.imageReplacer.replace(l,c,0);return{data:this.numberingReplacer.replace(u,e.Numbering.ConcreteNumbering),path:`word/footer${s+1}.xml`}}),ContentTypes:{data:Ct(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Ct(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Ct(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Ct(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Ct(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Ct(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:Ct(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:Ct(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:(()=>Ct(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}))(),path:"word/_rels/fontTable.xml.rels"}}}}const c2={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},ao=r=>r===!0?c2.WITH_2_BLANKS:r===!1?void 0:r;class xa{static toString(e,t){return jo(this,null,function*(){return yield this.compiler.compile(e,ao(t)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(e,t){return jo(this,null,function*(){return yield this.compiler.compile(e,ao(t)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(e,t){return jo(this,null,function*(){return yield this.compiler.compile(e,ao(t)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(e,t){return jo(this,null,function*(){return yield this.compiler.compile(e,ao(t)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(e,t){const n=new Ic.Stream;return this.compiler.compile(e,ao(t)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(o=>{n.emit("data",o),n.emit("end")}),n}}pe(xa,"compiler",new l2);function u2(r,e){const t=document.createElement("a");t.href=window.URL.createObjectURL(r),t.download=e,t.click(),window.URL.revokeObjectURL(t.href)}const h2={[tt.FIRST]:ui.HEADING_1,[tt.SECOND]:ui.HEADING_2,[tt.THIRD]:ui.HEADING_3,[tt.FOURTH]:ui.HEADING_4,[tt.FIFTH]:ui.HEADING_5,[tt.SIXTH]:ui.HEADING_6};function gl(r){var e;return r.type===ae.IMAGE?new lx({data:r.value,transformation:{width:r.width,height:r.height}}):r.type===ae.HYPERLINK?new gp({children:[new Li({text:(e=r.valueList)==null?void 0:e.map(t=>t.value).join(""),style:"Hyperlink"})],link:r.url}):r.type===ae.TAB?new Li({children:[new dx]}):r.type===ae.LATEX?new nb(r.value):new Li({font:r.font,text:r.value,bold:r.bold,size:`${(r.size||16)/.75}pt`,color:ah(r.color).hex()||"#000000",italics:r.italic,strike:r.strikeout,highlight:r.highlight?ah(r.highlight).hex():void 0,superScript:r.type===ae.SUPERSCRIPT,subScript:r.type===ae.SUBSCRIPT,underline:r.underline?{}:void 0})}function ba(r){var i,o,a;const e=[];let t=[];function n(){t.length&&(e.push(new An({children:t})),t=[])}for(let s=0;s<r.length;s++){const l=r[s];if(l.type===ae.TITLE)n(),e.push(new An({heading:h2[l.level],children:((i=l.valueList)==null?void 0:i.map(c=>gl(c)))||[]}));else if(l.type===ae.LIST){n();const c=((o=l.valueList)==null?void 0:o.map(u=>u.value).join("").split(`
|
|
`).map((u,h)=>new An({children:[new Li({text:`${!l.listStyle||l.listStyle===Er.DECIMAL?`${h+1}. `:"\u2022 "}${u}`})]})))||[];e.push(...c)}else if(l.type===ae.TABLE){n();const{trList:c}=l,u=[];for(let h=0;h<c.length;h++){const d=c[h].tdList,f=[];for(let p=0;p<d.length;p++){const g=d[p];f.push(new Yc({columnSpan:g.colspan,rowSpan:g.rowspan,children:ba(g.value)||[]}))}u.push(new Sb({children:f}))}e.push(new mb({rows:u,width:{size:"100%",type:Ua.PERCENTAGE}}))}else l.type===ae.DATE?t.push(...((a=l.valueList)==null?void 0:a.map(c=>gl(c)))||[]):(/^\n/.test(l.value)&&(n(),l.value=l.value.replace(/^\n/,"")),t.push(gl(l)))}return n(),e}function f2(r){return new Promise((e,t)=>{const n=new FileReader;n.onload=function(i){const o=i.target.result.split(";base64,");e(o[1])},n.onerror=function(i){t(i)},n.readAsDataURL(r)})}function yf(r,e,t){const{data:{header:n,main:i,footer:o}}=r.getValue(),a=new ZO({sections:[{headers:{default:new QO({children:ba(n||[])})},footers:{default:new KO({children:ba(o||[])})},children:ba(i||[])}]});return t==="blob"?xa.toBlob(a):t==="base64"?new Promise((s,l)=>{xa.toBlob(a).then(c=>{f2(c).then(u=>{s(u)}).catch(u=>{l(u)})}).catch(c=>{l(c)})}):new Promise((s,l)=>{xa.toBlob(a).then(c=>{u2(c,`${e}.docx`),s()}).catch(l)})}var Pp={exports:{}};/*!
|
|
|
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
<http://stuartk.com/jszip>
|
|
|
|
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
|
|
JSZip uses the library pako released under the MIT license :
|
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
*/(function(r,e){(function(t){r.exports=t()})(function(){return function t(n,i,o){function a(c,u){if(!i[c]){if(!n[c]){var h=typeof Ho=="function"&&Ho;if(!u&&h)return h(c,!0);if(s)return s(c,!0);var d=new Error("Cannot find module '"+c+"'");throw d.code="MODULE_NOT_FOUND",d}var f=i[c]={exports:{}};n[c][0].call(f.exports,function(p){var g=n[c][1][p];return a(g||p)},f,f.exports,t,n,i,o)}return i[c].exports}for(var s=typeof Ho=="function"&&Ho,l=0;l<o.length;l++)a(o[l]);return a}({1:[function(t,n,i){var o=t("./utils"),a=t2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",l){for(var c,u,h,d,f,p,g,v=[],R=0,m=l.length,x=m,T=o.getTypeOf(l)!=="string";R<l.length;)x=m-R,h=T?(c=l[R++],u=R<m?l[R++]:0,R<m?l[R++]:0):(c=l.charCodeAt(R++),u=R<m?lte:"\xD3",oacute:"\xF3"l.charCodeAt(R++):0),d=c>>2,f=(3&c)<<4|u>>4,p=1<x?(15&u)<<2|h>>6:64,g=2<x?63&h:64,ve){return Ld.warning("Unrecognised "+t+" style: '"+e.styleNamev"' (Style ID: "+e.styleId+")"l){var c,u,h,d,f,p,g=0,v=0,R="data:";if(l.substr(0,R.length)===R)throw new Error("Invalid base64 input, it looks like a data url.");var m,x=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&x--,l.charAt(l.length-2)===s.charAt(64)&&x--,x%1!=0)throw new Error("Invalid base64 input, bad content length.");for(m=a.uint8array?new Uint8Array(0|x):new Array(0|x);g<l.length;)c=s.indexOf(l.charAt(g++))<<2|(d=s.indexOf(l.charAt(g++)))>>4,u=(15&d)<<4|(f=s.indexOf(l.charAt(g++)))>>2,h=(3&f)<<6|(p=s.indexOf(l.charAt(g++))),m[v++]=c,f!==64&&(m[v++]=u),p!==64&&(m[v++]=h);return m}},{"./support":30,"./utils":32}],2:[function(t,n,i){var o=t("./external"),a=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),l=t("./stream/DataLengthProbe");function c(u,h,d,f,p){this.compressedSize=u,this.uncompressedSize=h,this.crc32=d,this.compression=f,this.compressedContent=p}c.prototype={getContentWorker:function(){var u=new a(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),h=this;return u.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new a(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(u,h,d){return u.pipe(new s).pipe(new l("uncompressedSize")).pipe(h.compressWorker(d)).pipe(new l("compressedSize")).withStreamInfo("compression",h)},n.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,n,i){var o=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,n,i){var o=t("./utils"),a=function(){for(var s,l=[],c=0;c<256;c++){s=c;for(var u=0;u<8;u++)s=1&s?3988292384^s>>>1:s>>>1;l[c]=s}return l}();n.exports=function(s,l){return s!==void 0&&s.length?o.getTypeOf(s)!=="string"?function(c,u,h,d){var f=a,p=d+h;c^=-1;for(var g=d;g<p;g++)c=c>>>8^f[255&(c^u[g])];return-1^c}(0|l,s,s.length,0):function(c,u,h,d){var f=a,p=d+h;c^=-1;for(var g=d;g<p;g++)c=c>>>8^f[255&(c^u.charCodeAt(g))];return-1^c}(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(t,n,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,n,i){var o=null;o=typeof Promise!="undefined"?Promise:t("lie"),n.exports={Promise:o}},{lie:37}],7:[function(t,n,i){var o=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",a=t("pako"),s=t("./utils"),l=t("./stream/GenericWorker"),c=o?"uint8array":"array";function u(h,d){l.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=d,this.meta={}}i.magic="\b\0",s.inherits(u,l),u.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(c,h.data),!1)},u.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(d){h.push({data:d,meta:h.meta})}},i.compressWorker=function(h){return new u("Deflate",h)},i.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,n,i){function o(f,p){var g,v="";for(g=0;g<p;g++)v+=String.fromCharCode(255&f),f>>>=8;return v}function a(f,p,g,v,R,m){var x,T,P=f.file,A=f.compression,D=m!==c.utf8encode,W=s.transformTo("string",m(P.name)),_=s.transformTo("string",c.utf8encode(P.name)),Q=P.comment,te=s.transformTo("string",m(Q)),O=s.transformTo("string",c.utf8encode(Q)),I=_.length!==P.name.length,y=O.length!==Q.length,L="",k="",F="",Y=P.dir,V=P.date,ie={crc32:0,compressedSize:0,uncompressedSize:0};p&&!g||(ie.crc32=f.crc32,ie.compressedSize=f.compressedSize,ie.uncompressedSize=f.uncompressedSize);var U=0;p&&(U|=8),D||!I&&!y||(U|=2048);var N=0,J=0;Y&&(N|=16),R==="UNIX"?(J=798,N|=function(re,ee){var X=re;return re||(X=ee?16893:33204),(65535&X)<<16}(P.unixPermissions,Y)):(J=20,N|=function(re){return 63&(re||0)}(P.dosPermissions)),x=V.getUTCHours(),x<<=6,x|=V.getUTCMinutes(),x<<=5,x|=V.getUTCSeconds()/2,T=V.getUTCFullYear()-1980,T<<=4,T|=V.getUTCMonth()+1,T<<=5,T|=V.getUTCDate(),I&&(k=o(1,1)+o(u(W),4)+_,L+="up"+o(k.length,2)+k),y&&(F=o(1,1)+o(u(te),4)+O,L+="uc"+o(F.length,2)+F);var B="";return B+=`
|
|
\0`,B+=o(U,2),B+=A.magic,B+=o(x,2),B+=o(T,2),B+=o(ie.crc32,4),B+=o(ie.compressedSize,4),B+=o(ie.uncompressedSize,4),B+=o(W.length,2),B+=o(L.length,2),{fileRecord:h.LOCAL_FILE_HEADER+B+W+L,dirRecord:h.CENTRAL_FILE_HEADER+o(J,2)+B+o(te.length,2)+"\0\0\0\0"+o(N,4)+o(v,4)+W+L+te}}var s=t("../utils"),l=t("../stream/GenericWorker"),c=t("../utf8"),u=t("../crc32"),h=t("../signature");function d(f,p,g,v){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=g,this.encodeFileName=v,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(d,l),d.prototype.push=function(f){var p=f.meta.percent||0,g=this.entriesCount,v=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,l.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:g?(p+100*(g-v-1))/g:100}}))},d.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var p=this.streamFiles&&!f.file.dir;if(p){var g=a(f,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(f){this.accumulate=!1;var p=this.streamFiles&&!f.file.dir,g=a(f,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),p)this.push({data:function(v){return h.DATA_DESCRIPTOR+o(v.crc32,4)+o(v.compressedSize,4)+o(v.uncompressedSize,4)}(f),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var f=this.bytesWritten,p=0;p<this.dirRecords.length;p++)this.push({data:this.dirRecords[p],meta:{percent:100}});var g=this.bytesWritten-f,v=function(R,m,x,T,P){var A=s.transformTo("string",P(T));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(R,2)+o(R,2)+o(m,4)+o(x,4)+o(A.length,2)+A}(this.dirRecords.length,g,f,this.zipComment,this.encodeFileName);this.push({data:v,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(f){this._sources.push(f);var p=this;return f.on("data",function(g){p.processChunk(g)}),f.on("end",function(){p.closedSource(p.previous.streamInfo),p._sources.length?p.prepareNextSource():p.end()}),f.on("error",function(g){p.error(g)}),this},d.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(f){var p=this._sources;if(!l.prototype.error.call(this,f))return!1;for(var g=0;g<p.length;g++)try{p[g].error(f)}catch{}return!0},d.prototype.lock=function(){l.prototype.lock.call(this);for(var f=this._sources,p=0;p<f.length;p++)f[p].lock()},n.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,n,i){var o=t("../compressions"),a=t("./ZipFileWorker");i.generateWorker=function(s,l,c){var u=new a(l.streamFiles,c,l.platform,l.encodeFileName),h=0;try{s.forEach(function(d,f){h++;var p=function(m,x){var T=m||x,P=o[T];if(!P)throw new Error(T+" is not a valid compression method !");return P}(f.options.compression,l.compression),g=f.options.compressionOptions||l.compressionOptions||{},v=f.dir,R=f.date;f._compressWorker(p,g).withStreamInfo("file",{name:d,dir:v,date:R,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(u)}),u.entriesCount=h}catch(d){u.error(d)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,n,i){function o(){if(!(this instanceof o))return new o;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 a=new o;for(var s in this)typeof this[s]!="function"&&(a[s]=this[s]);return a}}(o.prototype=t("./object")).loadAsync=t("./load"),o.support=t("./support"),o.defaults=t("./defaults"),o.version="3.10.1",o.loadAsync=function(a,s){return new o().loadAsync(a,s)},o.external=t("./external"),n.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,n,i){var o=t("./utils"),a=t("./external"),s=t("./utf8"),l=t("./zipEntries"),c=t("./stream/Crc32Probe"),u=t("./nodejsUtils");function h(d){return new a.Promise(function(f,p){var g=d.decompressed.getContentWorker().pipe(new c);g.on("error",function(v){p(v)}).on("end",function(){g.streamInfo.crc32!==d.decompressed.crc32?p(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}n.exports=function(d,f){var p=this;return f=o.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),u.isNode&&u.isStream(d)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",d,!0,f.optimizedBinaryString,f.base64).then(function(g){var v=new l(f);return v.load(g),v}).then(function(g){var v=[a.Promise.resolve(g)],R=g.files;if(f.checkCRC32)for(var m=0;m<R.length;m++)v.push(h(R[m]));return a.Promise.all(v)}).then(function(g){for(var v=g.shift(),R=v.files,m=0;m<R.length;m++){var x=R[m],T=x.fileNameStr,P=o.resolve(x.fileNameStr);p.file(P,x.decompressed,{binary:!0,optimizedBinaryString:!0,date:x.date,dir:x.dir,comment:x.fileCommentStr.length?x.fileCommentStr:null,unixPermissions:x.unixPermissions,dosPermissions:x.dosPermissions,createFolders:f.createFolders}),x.dir||(p.file(P).unsafeOriginalName=T)}return v.zipComment.length&&(p.comment=v.zipComment),p})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,n,i){var o=t("../utils"),a=t("../stream/GenericWorker");function s(l,c){a.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(c)}o.inherits(s,a),s.prototype._bindStream=function(l){var c=this;(this._stream=l).pause(),l.on("data",function(u){c.push({data:u,meta:{percent:0}})}).on("error",function(u){c.isPaused?this.generatedError=u:c.error(u)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},s.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,n,i){var o=t("readable-stream").Readable;function a(s,l,c){o.call(this,l),this._helper=s;var u=this;s.on("data",function(h,d){u.push(h)||u._helper.pause(),c&&c(d)}).on("error",function(h){u.emit("error",h)}).on("end",function(){u.push(null)})}t("../utils").inherits(a,o),a.prototype._read=function(){this._helper.resume()},n.exports=a},{"../utils":32,"readable-stream":16}],14:[function(t,n,i){n.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(o,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,a);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,a)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var a=new Buffer(o);return a.fill(0),a},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(t,n,i){function o(P,A,D){var W,_=s.getTypeOf(A),Q=s.extend(D||{},u);Q.date=Q.date||new Date,Q.compression!==null&&(Q.compression=Q.compression.toUpperCase()),typeof Q.unixPermissions=="string"&&(Q.unixPermissions=parseInt(Q.unixPermissions,8)),Q.unixPermissions&&16384&Q.unixPermissions&&(Q.dir=!0),Q.dosPermissions&&16&Q.dosPermissions&&(Q.dir=!0),Q.dir&&(P=R(P)),Q.createFolders&&(W=v(P))&&m.call(this,W,!0);var te=_==="string"&&Q.binary===!1&&Q.base64===!1;D&&D.binary!==void 0||(Q.binary=!te),(A instanceof h&&A.uncompressedSize===0||Q.dir||!A||A.length===0)&&(Q.base64=!1,Q.binary=!0,A="",Q.compression="STORE",_="string");var O=null;O=A instanceof h||A instanceof l?A:p.isNode&&p.isStream(A)?new g(P,A):s.prepareContent(P,A,Q.binary,Q.optimizedBinaryString,Q.base64);var I=new d(P,O,Q);this.files[P]=I}var a=t("./utf8"),s=t("./utils"),l=t("./stream/GenericWorker"),c=t("./stream/StreamHelper"),u=t("./defaults"),h=t("./compressedObject"),d=t("./zipObject"),f=t("./generate"),p=t("./nodejsUtils"),g=t("./nodejs/NodejsStreamInputAdapter"),v=function(P){P.slice(-1)==="/"&&(P=P.substring(0,P.length-1));var A=P.lastIndexOf("/");return 0<A?P.substring(0,A):""},R=function(P){return P.slice(-1)!=="/"&&(P+="/"),P},m=function(P,A){return A=A!==void 0?A:u.createFolders,P=R(P),this.files[P]||o.call(this,P,null,{dir:!0,createFolders:A}),this.files[P]};function x(P){return Object.prototype.toString.call(P)==="[object RegExp]"}var T={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(P){var A,D,W;for(A in this.files)W=this.files[A],(D=A.slice(this.root.length,A.length))&&A.slice(0,this.root.length)===this.root&&P(D,W)},filter:function(P){var A=[];return this.forEach(function(D,W){P(D,W)&&A.push(W)}),A},file:function(P,A,D){if(arguments.length!==1)return P=this.root+P,o.call(this,P,A,D),this;if(x(P)){var W=P;return this.filter(function(Q,te){return!te.dir&&W.test(Q)})}var _=this.files[this.root+P];return _&&!_.dir?_:null},folder:function(P){if(!P)return this;if(x(P))return this.filter(function(_,Q){return Q.dir&&P.test(_)});var A=this.root+P,D=m.call(this,A),W=this.clone();return W.root=D.name,W},remove:function(P){P=this.root+P;var A=this.files[P];if(A||(P.slice(-1)!=="/"&&(P+="/"),A=this.files[P]),A&&!A.dir)delete this.files[P];else for(var D=this.filter(function(_,Q){return Q.name.slice(0,P.length)===P}),W=0;W<D.length;W++)delete this.files[D[W].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(P){var A,D={};try{if((D=s.extend(P||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=D.type.toLowerCase(),D.compression=D.compression.toUpperCase(),D.type==="binarystring"&&(D.type="string"),!D.type)throw new Error("No output type specified.");s.checkSupport(D.type),D.platform!=="darwin"&&D.platform!=="freebsd"&&D.platform!=="linux"&&D.platform!=="sunos"||(D.platform="UNIX"),D.platform==="win32"&&(D.platform="DOS");var W=D.comment||this.comment||"";A=f.generateWorker(this,D,W)}catch(_){(A=new l("error")).error(_)}return new c(A,D.type||"string",D.mimeType)},generateAsync:function(P,A){return this.generateInternalStream(P).accumulate(A)},generateNodeStream:function(P,A){return(P=P||{}).type||(P.type="nodebuffer"),this.generateInternalStream(P).toNodejsStream(A)}};n.exports=T},{"./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(t,n,i){n.exports=t("stream")},{stream:void 0}],17:[function(t,n,i){var o=t("./DataReader");function a(s){o.call(this,s);for(var l=0;l<this.data.length;l++)s[l]=255&s[l]}t("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data[this.zero+s]},a.prototype.lastIndexOfSignature=function(s){for(var l=s.charCodeAt(0),c=s.charCodeAt(1),u=s.charCodeAt(2),h=s.charCodeAt(3),d=this.length-4;0<=d;--d)if(this.data[d]===l&&this.data[d+1]===c&&this.data[d+2]===u&&this.data[d+3]===h)return d-this.zero;return-1},a.prototype.readAndCheckSignature=function(s){var l=s.charCodeAt(0),c=s.charCodeAt(1),u=s.charCodeAt(2),h=s.charCodeAt(3),d=this.readData(4);return l===d[0]&&c===d[1]&&u===d[2]&&h===d[3]},a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=a},{"../utils":32,"./DataReader":18}],18:[function(t,n,i){var o=t("../utils");function a(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var l,c=0;for(this.checkOffset(s),l=this.index+s-1;l>=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=s,c},readString:function(s){return o.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},n.exports=a},{"../utils":32}],19:[function(t,n,i){var o=t("./Uint8ArrayReader");function a(s){o.call(this,s)}t("../utils").inherits(a,o),a.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,n,i){var o=t("./DataReader");function a(s){o.call(this,s)}t("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},a.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},a.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},a.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=a},{"../utils":32,"./DataReader":18}],21:[function(t,n,i){var o=t("./ArrayReader");function a(s){o.call(this,s)}t("../utils").inherits(a,o),a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(t,n,i){var o=t("../utils"),a=t("../support"),s=t("./ArrayReader"),l=t("./StringReader"),c=t("./NodeBufferReader"),u=t("./Uint8ArrayReader");n.exports=function(h){var d=o.getTypeOf(h);return o.checkSupport(d),d!=="string"||a.uint8array?d==="nodebuffer"?new c(h):a.uint8array?new u(o.transformTo("uint8array",h)):new s(o.transformTo("array",h)):new l(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,n,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,n,i){var o=t("./GenericWorker"),a=t("../utils");function s(l){o.call(this,"ConvertWorker to "+l),this.destType=l}a.inherits(s,o),s.prototype.processChunk=function(l){this.push({data:a.transformTo(this.destType,l.data),meta:l.meta})},n.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,n,i){var o=t("./GenericWorker"),a=t("../crc32");function s(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,o),s.prototype.processChunk=function(l){this.streamInfo.crc32=a(l.data,this.streamInfo.crc32||0),this.push(l)},n.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,n,i){var o=t("../utils"),a=t("./GenericWorker");function s(l){a.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}o.inherits(s,a),s.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}a.prototype.processChunk.call(this,l)},n.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,n,i){var o=t("../utils"),a=t("./GenericWorker");function s(l){a.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(u){c.dataIsReady=!0,c.data=u,c.max=u&&u.length||0,c.type=o.getTypeOf(u),c.isPaused||c._tickAndRepeat()},function(u){c.error(u)})}o.inherits(s,a),s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,n,i){function o(a){this.name=a||"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}o.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,s){return this._listeners[a].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,s){if(this._listeners[a])for(var l=0;l<this._listeners[a].length;l++)this._listeners[a][l].call(this,s)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var s=this;return a.on("data",function(l){s.processChunk(l)}),a.on("end",function(){s.end()}),a.on("error",function(l){s.error(l)}),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 a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,s){return this.extraStreamInfo[a]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},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 a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},n.exports=o},{}],29:[function(t,n,i){var o=t("../utils"),a=t("./ConvertWorker"),s=t("./GenericWorker"),l=t("../base64"),c=t("../support"),u=t("../external"),h=null;if(c.nodestream)try{h=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(p,g){return new u.Promise(function(v,R){var m=[],x=p._internalType,T=p._outputType,P=p._mimeType;p.on("data",function(A,D){m.push(A),g&&g(D)}).on("error",function(A){m=[],R(A)}).on("end",function(){try{var A=function(D,W,_){switch(D){case"blob":return o.newBlob(o.transformTo("arraybuffer",W),_);case"base64":return l.encode(W);default:return o.transformTo(D,W)}}(T,function(D,W){var _,Q=0,te=null,O=0;for(_=0;_<W.length;_++)O+=W[_].length;switch(D){case"string":return W.join("");case"array":return Array.prototype.concat.apply([],W);case"uint8array":for(te=new Uint8Array(O),_=0;_<W.length;_++)te.set(W[_],Q),Q+=W[_].length;return te;case"nodebuffer":return Buffer.concat(W);default:throw new Error("concat : unsupported type '"+D+"'")}}(x,m),P);v(A)}catch(D){R(D)}m=[]}).resume()})}function f(p,g,v){var R=g;switch(g){case"blob":case"arraybuffer":R="uint8array";break;case"base64":R="string"}try{this._internalType=R,this._outputType=g,this._mimeType=v,o.checkSupport(R),this._worker=p.pipe(new a(R)),p.lock()}catch(m){this._worker=new s("error"),this._worker.error(m)}}f.prototype={accumulate:function(p){return d(this,p)},on:function(p,g){var v=this;return p==="data"?this._worker.on(p,function(R){g.call(v,R.data,R.meta)}):this._worker.on(p,function(){o.delay(g,arguments,v)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(p){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},p)}},n.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",i.nodebuffer=typeof Buffer!="undefined",i.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")i.blob=!1;else{var o=new ArrayBuffer(0);try{i.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(o),i.blob=a.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(t,n,i){for(var o=t("./utils"),a=t("./support"),s=t("./nodejsUtils"),l=t("./stream/GenericWorker"),c=new Array(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;c[254]=c[254]=1;function h(){l.call(this,"utf-8 decode"),this.leftOver=null}function d(){l.call(this,"utf-8 encode")}i.utf8encode=function(f){return a.nodebuffer?s.newBufferFrom(f,"utf-8"):function(p){var g,v,R,m,x,T=p.length,P=0;for(m=0;m<T;m++)(64512&(v=p.charCodeAt(m)))==55296&&m+1<T&&(64512&(R=p.charCodeAt(m+1)))==56320&&(v=65536+(v-55296<<10)+(R-56320),m++),P+=v<128?1:v<2048?2:v<65536?3:4;for(g=a.uint8array?new Uint8Array(P):new Array(P),m=x=0;x<P;m++)(64512&(v=p.charCodeAt(m)))==55296&&m+1<T&&(64512&(R=p.charCodeAt(m+1)))==56320&&(v=65536+(v-55296<<10)+(R-56320),m++),v<128?g[x++]=v:(v<2048?g[x++]=192|v>>>6:(v<65536?g[x++]=224|v>>>12:(g[x++]=240|v>>>18,g[x++]=128|v>>>12&63),g[x++]=128|v>>>6&63),g[x++]=128|63&v);return g}(f)},i.utf8decode=function(f){return a.nodebuffer?o.transformTo("nodebuffer",f).toString("utf-8"):function(p){var g,v,R,m,x=p.length,T=new Array(2*x);for(g=v=0;g<x;)if((R=p[g++])<128)T[v++]=R;else if(4<(m=c[R]))T[v++]=65533,g+=m-1;else{for(R&=m===2?31:m===3?15:7;1<m&&g<x;)R=R<<6|63&p[g++],m--;1<m?T[v++]=65533:R<65536?T[v++]=R:(R-=65536,T[v++]=55296|R>>10&1023,T[v++]=56320|1023&R)}return T.length!==v&&(T.subarray?T=T.subarray(0,v):T.length=v),o.applyFromCharCode(T)}(f=o.transformTo(a.uint8array?"uint8array":"array",f))},o.inherits(h,l),h.prototype.processChunk=function(f){var p=o.transformTo(a.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var g=p;(p=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),p.set(g,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var v=function(m,x){var T;for((x=x||m.length)>m.length&&(x=m.length),T=x-1;0<=T&&(192&m[T])==128;)T--;return T<0||T===0?x:T+c[m[T]]>x?T:x}(p),R=p;v!==p.length&&(a.uint8array?(R=p.subarray(0,v),this.leftOver=p.subarray(v,p.length)):(R=p.slice(0,v),this.leftOver=p.slice(v,p.length))),this.push({data:i.utf8decode(R),meta:f.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,o.inherits(d,l),d.prototype.processChunk=function(f){this.push({data:i.utf8encode(f.data),meta:f.meta})},i.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,n,i){var o=t("./support"),a=t("./base64"),s=t("./nodejsUtils"),l=t("./external");function c(g){return g}function u(g,v){for(var R=0;R<g.length;++R)v[R]=255&g.charCodeAt(R);return v}t("setimmediate"),i.newBlob=function(g,v){i.checkSupport("blob");try{return new Blob([g],{type:v})}catch{try{var R=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return R.append(g),R.getBlob(v)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(g,v,R){var m=[],x=0,T=g.length;if(T<=R)return String.fromCharCode.apply(null,g);for(;x<T;)v==="array"||v==="nodebuffer"?m.push(String.fromCharCode.apply(null,g.slice(x,Math.min(x+R,T)))):m.push(String.fromCharCode.apply(null,g.subarray(x,Math.min(x+R,T)))),x+=R;return m.join("")},stringifyByChar:function(g){for(var v="",R=0;R<g.length;R++)v+=String.fromCharCode(g[R]);return v},applyCanBeUsed:{uint8array:function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}}()}};function d(g){var v=65536,R=i.getTypeOf(g),m=!0;if(R==="uint8array"?m=h.applyCanBeUsed.uint8array:R==="nodebuffer"&&(m=h.applyCanBeUsed.nodebuffer),m)for(;1<v;)try{return h.stringifyByChunk(g,R,v)}catch{v=Math.floor(v/2)}return h.stringifyByChar(g)}function f(g,v){for(var R=0;R<g.length;R++)v[R]=g[R];return v}i.applyFromCharCode=d;var p={};p.string={string:c,array:function(g){return u(g,new Array(g.length))},arraybuffer:function(g){return p.string.uint8array(g).buffer},uint8array:function(g){return u(g,new Uint8Array(g.length))},nodebuffer:function(g){return u(g,s.allocBuffer(g.length))}},p.array={string:d,array:c,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return s.newBufferFrom(g)}},p.arraybuffer={string:function(g){return d(new Uint8Array(g))},array:function(g){return f(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:c,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return s.newBufferFrom(new Uint8Array(g))}},p.uint8array={string:d,array:function(g){return f(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:c,nodebuffer:function(g){return s.newBufferFrom(g)}},p.nodebuffer={string:d,array:function(g){return f(g,new Array(g.length))},arraybuffer:function(g){return p.nodebuffer.uint8array(g).buffer},uint8array:function(g){return f(g,new Uint8Array(g.length))},nodebuffer:c},i.transformTo=function(g,v){if(v=v||"",!g)return v;i.checkSupport(g);var R=i.getTypeOf(v);return p[R][g](v)},i.resolve=function(g){for(var v=g.split("/"),R=[],m=0;m<v.length;m++){var x=v[m];x==="."||x===""&&m!==0&&m!==v.length-1||(x===".."?R.pop():R.push(x))}return R.join("/")},i.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":o.nodebuffer&&s.isBuffer(g)?"nodebuffer":o.uint8array&&g instanceof Uint8Array?"uint8array":o.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(g){if(!o[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(g){var v,R,m="";for(R=0;R<(g||"").length;R++)m+="\\x"+((v=g.charCodeAt(R))<16?"0":"")+v.toString(16).toUpperCase();return m},i.delay=function(g,v,R){setImmediate(function(){g.apply(R||null,v||[])})},i.inherits=function(g,v){function R(){}R.prototype=v.prototype,g.prototype=new R},i.extend=function(){var g,v,R={};for(g=0;g<arguments.length;g++)for(v in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],v)&&R[v]===void 0&&(R[v]=arguments[g][v]);return R},i.prepareContent=function(g,v,R,m,x){return l.Promise.resolve(v).then(function(T){return o.blob&&(T instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(T))!==-1)&&typeof FileReader!="undefined"?new l.Promise(function(P,A){var D=new FileReader;D.onload=function(W){P(W.target.result)},D.onerror=function(W){A(W.target.error)},D.readAsArrayBuffer(T)}):T}).then(function(T){var P=i.getTypeOf(T);return P?(P==="arraybuffer"?T=i.transformTo("uint8array",T):P==="string"&&(x?T=a.decode(T):R&&m!==!0&&(T=function(A){return u(A,o.uint8array?new Uint8Array(A.length):new Array(A.length))}(T))),T):l.Promise.reject(new Error("Can't read the data of '"+g+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,n,i){var o=t("./reader/readerFor"),a=t("./utils"),s=t("./signature"),l=t("./zipEntry"),c=t("./support");function u(h){this.files=[],this.loadOptions=h}u.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var d=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(d)+", expected "+a.pretty(h)+")")}},isSignature:function(h,d){var f=this.reader.index;this.reader.setIndex(h);var p=this.reader.readString(4)===d;return this.reader.setIndex(f),p},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 h=this.reader.readData(this.zipCommentLength),d=c.uint8array?"uint8array":"array",f=a.transformTo(d,h);this.zipComment=this.loadOptions.decodeFileName(f)},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 h,d,f,p=this.zip64EndOfCentralSize-44;0<p;)h=this.reader.readInt(2),d=this.reader.readInt(4),f=this.reader.readData(d),this.zip64ExtensibleData[h]={id:h,length:d,value:f}},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 h,d;for(h=0;h<this.files.length;h++)d=this.files[h],this.reader.setIndex(d.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),d.readLocalPart(this.reader),d.handleUTF8(),d.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(h=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var h=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(h<0)throw this.isSignature(0,s.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(h);var d=h;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(h=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(h),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.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(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var p=d-f;if(0<p)this.isSignature(d,s.CENTRAL_FILE_HEADER)||(this.reader.zero=p);else if(p<0)throw new Error("Corrupted zip: missing "+Math.abs(p)+" bytes.")},prepareReader:function(h){this.reader=o(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,n,i){var o=t("./reader/readerFor"),a=t("./utils"),s=t("./compressedObject"),l=t("./crc32"),c=t("./utf8"),u=t("./compressions"),h=t("./support");function d(f,p){this.options=f,this.loadOptions=p}d.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var p,g;if(f.skip(22),this.fileNameLength=f.readInt(2),g=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((p=function(v){for(var R in u)if(Object.prototype.hasOwnProperty.call(u,R)&&u[R].magic===v)return u[R];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,p,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var p=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");f.skip(p),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=o(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var p,g,v,R=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<R;)p=f.readInt(2),g=f.readInt(2),v=f.readData(g),this.extraFields[p]={id:p,length:g,value:v};f.setIndex(R)},handleUTF8:function(){var f=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var p=this.findExtraFieldUnicodePath();if(p!==null)this.fileNameStr=p;else{var g=a.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var R=a.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(R)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var p=o(f.value);return p.readInt(1)!==1||l(this.fileName)!==p.readInt(4)?null:c.utf8decode(p.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var p=o(f.value);return p.readInt(1)!==1||l(this.fileComment)!==p.readInt(4)?null:c.utf8decode(p.readData(f.length-5))}return null}},n.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,n,i){function o(p,g,v){this.name=p,this.dir=v.dir,this.date=v.date,this.comment=v.comment,this.unixPermissions=v.unixPermissions,this.dosPermissions=v.dosPermissions,this._data=g,this._dataBinary=v.binary,this.options={compression:v.compression,compressionOptions:v.compressionOptions}}var a=t("./stream/StreamHelper"),s=t("./stream/DataWorker"),l=t("./utf8"),c=t("./compressedObject"),u=t("./stream/GenericWorker");o.prototype={internalStream:function(p){var g=null,v="string";try{if(!p)throw new Error("No output type specified.");var R=(v=p.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),g=this._decompressWorker();var m=!this._dataBinary;m&&!R&&(g=g.pipe(new l.Utf8EncodeWorker)),!m&&R&&(g=g.pipe(new l.Utf8DecodeWorker))}catch(x){(g=new u("error")).error(x)}return new a(g,v,"")},async:function(p,g){return this.internalStream(p).accumulate(g)},nodeStream:function(p,g){return this.internalStream(p||"nodebuffer").toNodejsStream(g)},_compressWorker:function(p,g){if(this._data instanceof c&&this._data.compression.magic===p.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new l.Utf8EncodeWorker)),c.createWorkerFrom(v,p,g)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof u?this._data:new s(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<h.length;f++)o.prototype[h[f]]=d;n.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,n,i){(function(o){var a,s,l=o.MutationObserver||o.WebKitMutationObserver;if(l){var c=0,u=new l(p),h=o.document.createTextNode("");u.observe(h,{characterData:!0}),a=function(){h.data=c=++c%2}}else if(o.setImmediate||o.MessageChannel===void 0)a="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var g=o.document.createElement("script");g.onreadystatechange=function(){p(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},o.document.documentElement.appendChild(g)}:function(){setTimeout(p,0)};else{var d=new o.MessageChannel;d.port1.onmessage=p,a=function(){d.port2.postMessage(0)}}var f=[];function p(){var g,v;s=!0;for(var R=f.length;R;){for(v=f,f=[],g=-1;++g<R;)v[g]();R=f.length}s=!1}n.exports=function(g){f.push(g)!==1||s||a()}}).call(this,typeof Bn!="undefined"?Bn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(t,n,i){var o=t("immediate");function a(){}var s={},l=["REJECTED"],c=["FULFILLED"],u=["PENDING"];function h(R){if(typeof R!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,R!==a&&g(this,R)}function d(R,m,x){this.promise=R,typeof m=="function"&&(this.onFulfilled=m,this.callFulfilled=this.otherCallFulfilled),typeof x=="function"&&(this.onRejected=x,this.callRejected=this.otherCallRejected)}function f(R,m,x){o(function(){var T;try{T=m(x)}catch(P){return s.reject(R,P)}T===R?s.reject(R,new TypeError("Cannot resolve promise with itself")):s.resolve(R,T)})}function p(R){var m=R&&R.then;if(R&&(typeof R=="object"||typeof R=="function")&&typeof m=="function")return function(){m.apply(R,arguments)}}function g(R,m){var x=!1;function T(D){x||(x=!0,s.reject(R,D))}function P(D){x||(x=!0,s.resolve(R,D))}var A=v(function(){m(P,T)});A.status==="error"&&T(A.value)}function v(R,m){var x={};try{x.value=R(m),x.status="success"}catch(T){x.status="error",x.value=T}return x}(n.exports=h).prototype.finally=function(R){if(typeof R!="function")return this;var m=this.constructor;return this.then(function(x){return m.resolve(R()).then(function(){return x})},function(x){return m.resolve(R()).then(function(){throw x})})},h.prototype.catch=function(R){return this.then(null,R)},h.prototype.then=function(R,m){if(typeof R!="function"&&this.state===c||typeof m!="function"&&this.state===l)return this;var x=new this.constructor(a);return this.state!==u?f(x,this.state===c?R:m,this.outcome):this.queue.push(new d(x,R,m)),x},d.prototype.callFulfilled=function(R){s.resolve(this.promise,R)},d.prototype.otherCallFulfilled=function(R){f(this.promise,this.onFulfilled,R)},d.prototype.callRejected=function(R){s.reject(this.promise,R)},d.prototype.otherCallRejected=function(R){f(this.promise,this.onRejected,R)},s.resolve=function(R,m){var x=v(p,m);if(x.status==="error")return s.reject(R,x.value);var T=x.value;if(T)g(R,T);else{R.state=c,R.outcome=m;for(var P=-1,A=R.queue.length;++P<A;)R.queue[P].callFulfilled(m)}return R},s.reject=function(R,m){R.state=l,R.outcome=m;for(var x=-1,T=R.queue.length;++x<T;)R.queue[x].callRejected(m);return R},h.resolve=function(R){return R instanceof this?R:s.resolve(new this(a),R)},h.reject=function(R){var m=new this(a);return s.reject(m,R)},h.all=function(R){var m=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=R.length,T=!1;if(!x)return this.resolve([]);for(var P=new Array(x),A=0,D=-1,W=new this(a);++D<x;)_(R[D],D);return W;function _(Q,te){m.resolve(Q).then(function(O){P[te]=O,++A!==x||T||(T=!0,s.resolve(W,P))},function(O){T||(T=!0,s.reject(W,O))})}},h.race=function(R){var m=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=R.length,T=!1;if(!x)return this.resolve([]);for(var P=-1,A=new this(a);++P<x;)D=R[P],m.resolve(D).then(function(W){T||(T=!0,s.resolve(A,W))},function(W){T||(T=!0,s.reject(A,W))});var D;return A}},{immediate:36}],38:[function(t,n,i){var o={};(0,t("./lib/utils/common").assign)(o,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),n.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,n,i){var o=t("./zlib/deflate"),a=t("./utils/common"),s=t("./utils/strings"),l=t("./zlib/messages"),c=t("./zlib/zstream"),u=Object.prototype.toString,h=0,d=-1,f=0,p=8;function g(R){if(!(this instanceof g))return new g(R);this.options=a.assign({level:d,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},R||{});var m=this.options;m.raw&&0<m.windowBits?m.windowBits=-m.windowBits:m.gzip&&0<m.windowBits&&m.windowBits<16&&(m.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var x=o.deflateInit2(this.strm,m.level,m.method,m.windowBits,m.memLevel,m.strategy);if(x!==h)throw new Error(l[x]);if(m.header&&o.deflateSetHeader(this.strm,m.header),m.dictionary){var T;if(T=typeof m.dictionary=="string"?s.string2buf(m.dictionary):u.call(m.dictionary)==="[object ArrayBuffer]"?new Uint8Array(m.dictionary):m.dictionary,(x=o.deflateSetDictionary(this.strm,T))!==h)throw new Error(l[x]);this._dict_set=!0}}function v(R,m){var x=new g(m);if(x.push(R,!0),x.err)throw x.msg||l[x.err];return x.result}g.prototype.push=function(R,m){var x,T,P=this.strm,A=this.options.chunkSize;if(this.ended)return!1;T=m===~~m?m:m===!0?4:0,typeof R=="string"?P.input=s.string2buf(R):u.call(R)==="[object ArrayBuffer]"?P.input=new Uint8Array(R):P.input=R,P.next_in=0,P.avail_in=P.input.length;do{if(P.avail_out===0&&(P.output=new a.Buf8(A),P.next_out=0,P.avail_out=A),(x=o.deflate(P,T))!==1&&x!==h)return this.onEnd(x),!(this.ended=!0);P.avail_out!==0&&(P.avail_in!==0||T!==4&&T!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(a.shrinkBuf(P.output,P.next_out))):this.onData(a.shrinkBuf(P.output,P.next_out)))}while((0<P.avail_in||P.avail_out===0)&&x!==1);return T===4?(x=o.deflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===h):T!==2||(this.onEnd(h),!(P.avail_out=0))},g.prototype.onData=function(R){this.chunks.push(R)},g.prototype.onEnd=function(R){R===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=R,this.msg=this.strm.msg},i.Deflate=g,i.deflate=v,i.deflateRaw=function(R,m){return(m=m||{}).raw=!0,v(R,m)},i.gzip=function(R,m){return(m=m||{}).gzip=!0,v(R,m)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,n,i){var o=t("./zlib/inflate"),a=t("./utils/common"),s=t("./utils/strings"),l=t("./zlib/constants"),c=t("./zlib/messages"),u=t("./zlib/zstream"),h=t("./zlib/gzheader"),d=Object.prototype.toString;function f(g){if(!(this instanceof f))return new f(g);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},g||{});var v=this.options;v.raw&&0<=v.windowBits&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),!(0<=v.windowBits&&v.windowBits<16)||g&&g.windowBits||(v.windowBits+=32),15<v.windowBits&&v.windowBits<48&&(15&v.windowBits)==0&&(v.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var R=o.inflateInit2(this.strm,v.windowBits);if(R!==l.Z_OK)throw new Error(c[R]);this.header=new h,o.inflateGetHeader(this.strm,this.header)}function p(g,v){var R=new f(v);if(R.push(g,!0),R.err)throw R.msg||c[R.err];return R.result}f.prototype.push=function(g,v){var R,m,x,T,P,A,D=this.strm,W=this.options.chunkSize,_=this.options.dictionary,Q=!1;if(this.ended)return!1;m=v===~~v?v:v===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof g=="string"?D.input=s.binstring2buf(g):d.call(g)==="[object ArrayBuffer]"?D.input=new Uint8Array(g):D.input=g,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new a.Buf8(W),D.next_out=0,D.avail_out=W),(R=o.inflate(D,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&_&&(A=typeof _=="string"?s.string2buf(_):d.call(_)==="[object ArrayBuffer]"?new Uint8Array(_):_,R=o.inflateSetDictionary(this.strm,A)),R===l.Z_BUF_ERROR&&Q===!0&&(R=l.Z_OK,Q=!1),R!==l.Z_STREAM_END&&R!==l.Z_OK)return this.onEnd(R),!(this.ended=!0);D.next_out&&(D.avail_out!==0&&R!==l.Z_STREAM_END&&(D.avail_in!==0||m!==l.Z_FINISH&&m!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(x=s.utf8border(D.output,D.next_out),T=D.next_out-x,P=s.buf2string(D.output,x),D.next_out=T,D.avail_out=W-T,T&&a.arraySet(D.output,D.output,x,T,0),this.onData(P)):this.onData(a.shrinkBuf(D.output,D.next_out)))),D.avail_in===0&&D.avail_out===0&&(Q=!0)}while((0<D.avail_in||D.avail_out===0)&&R!==l.Z_STREAM_END);return R===l.Z_STREAM_END&&(m=l.Z_FINISH),m===l.Z_FINISH?(R=o.inflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===l.Z_OK):m!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(D.avail_out=0))},f.prototype.onData=function(g){this.chunks.push(g)},f.prototype.onEnd=function(g){g===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},i.Inflate=f,i.inflate=p,i.inflateRaw=function(g,v){return(v=v||{}).raw=!0,p(g,v)},i.ungzip=p},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,n,i){var o=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";i.assign=function(l){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var u=c.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var h in u)u.hasOwnProperty(h)&&(l[h]=u[h])}}return l},i.shrinkBuf=function(l,c){return l.length===c?l:l.subarray?l.subarray(0,c):(l.length=c,l)};var a={arraySet:function(l,c,u,h,d){if(c.subarray&&l.subarray)l.set(c.subarray(u,u+h),d);else for(var f=0;f<h;f++)l[d+f]=c[u+f]},flattenChunks:function(l){var c,u,h,d,f,p;for(c=h=0,u=l.length;c<u;c++)h+=l[c].length;for(p=new Uint8Array(h),c=d=0,u=l.length;c<u;c++)f=l[c],p.set(f,d),d+=f.length;return p}},s={arraySet:function(l,c,u,h,d){for(var f=0;f<h;f++)l[d+f]=c[u+f]},flattenChunks:function(l){return[].concat.apply([],l)}};i.setTyped=function(l){l?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(o)},{}],42:[function(t,n,i){var o=t("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var l=new o.Buf8(256),c=0;c<256;c++)l[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(h,d){if(d<65537&&(h.subarray&&s||!h.subarray&&a))return String.fromCharCode.apply(null,o.shrinkBuf(h,d));for(var f="",p=0;p<d;p++)f+=String.fromCharCode(h[p]);return f}l[254]=l[254]=1,i.string2buf=function(h){var d,f,p,g,v,R=h.length,m=0;for(g=0;g<R;g++)(64512&(f=h.charCodeAt(g)))==55296&&g+1<R&&(64512&(p=h.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(p-56320),g++),m+=f<128?1:f<2048?2:f<65536?3:4;for(d=new o.Buf8(m),g=v=0;v<m;g++)(64512&(f=h.charCodeAt(g)))==55296&&g+1<R&&(64512&(p=h.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(p-56320),g++),f<128?d[v++]=f:(f<2048?d[v++]=192|f>>>6:(f<65536?d[v++]=224|f>>>12:(d[v++]=240|f>>>18,d[v++]=128|f>>>12&63),d[v++]=128|f>>>6&63),d[v++]=128|63&f);return d},i.buf2binstring=function(h){return u(h,h.length)},i.binstring2buf=function(h){for(var d=new o.Buf8(h.length),f=0,p=d.length;f<p;f++)d[f]=h.charCodeAt(f);return d},i.buf2string=function(h,d){var f,p,g,v,R=d||h.length,m=new Array(2*R);for(f=p=0;f<R;)if((g=h[f++])<128)m[p++]=g;else if(4<(v=l[g]))m[p++]=65533,f+=v-1;else{for(g&=v===2?31:v===3?15:7;1<v&&f<R;)g=g<<6|63&h[f++],v--;1<v?m[p++]=65533:g<65536?m[p++]=g:(g-=65536,m[p++]=55296|g>>10&1023,m[p++]=56320|1023&g)}return u(m,p)},i.utf8border=function(h,d){var f;for((d=d||h.length)>h.length&&(d=h.length),f=d-1;0<=f&&(192&h[f])==128;)f--;return f<0||f===0?d:f+l[h[f]]>d?f:d}},{"./common":41}],43:[function(t,n,i){n.exports=function(o,a,s,l){for(var c=65535&o|0,u=o>>>16&65535|0,h=0;s!==0;){for(s-=h=2e3<s?2e3:s;u=u+(c=c+a[l++]|0)|0,--h;);c%=65521,u%=65521}return c|u<<16|0}},{}],44:[function(t,n,i){n.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(t,n,i){var o=function(){for(var a,s=[],l=0;l<256;l++){a=l;for(var c=0;c<8;c++)a=1&a?3988292384^a>>>1:a>>>1;s[l]=a}return s}();n.exports=function(a,s,l,c){var u=o,h=c+l;a^=-1;for(var d=c;d<h;d++)a=a>>>8^u[255&(a^s[d])];return-1^a}},{}],46:[function(t,n,i){var o,a=t("../utils/common"),s=t("./trees"),l=t("./adler32"),c=t("./crc32"),u=t("./messages"),h=0,d=4,f=0,p=-2,g=-1,v=4,R=2,m=8,x=9,T=286,P=30,A=19,D=2*T+1,W=15,_=3,Q=258,te=Q+_+1,O=42,I=113,y=1,L=2,k=3,F=4;function Y(b,q){return b.msg=u[q],q}function V(b){return(b<<1)-(4<b?9:0)}function ie(b){for(var q=b.length;0<=--q;)b[q]=0}function U(b){var q=b.state,M=q.pending;M>b.avail_out&&(M=b.avail_out),M!==0&&(a.arraySet(b.output,q.pending_buf,q.pending_out,M,b.next_out),b.next_out+=M,q.pending_out+=M,b.total_out+=M,b.avail_out-=M,q.pending-=M,q.pending===0&&(q.pending_out=0))}function N(b,q){s._tr_flush_block(b,0<=b.block_start?b.block_start:-1,b.strstart-b.block_start,q),b.block_start=b.strstart,U(b.strm)}function J(b,q){b.pending_buf[b.pending++]=q}function B(b,q){b.pending_buf[b.pending++]=q>>>8&255,b.pending_buf[b.pending++]=255&q}function re(b,q){var M,w,S=b.max_chain_length,E=b.strstart,K=b.prev_length,$=b.nice_match,Z=b.strstart>b.w_size-te?b.strstart-(b.w_size-te):0,oe=b.window,ce=b.w_mask,se=b.prev,ge=b.strstart+Q,Oe=oe[E+K-1],Te=oe[E+K];b.prev_length>=b.good_match&&(S>>=2),$>b.lookahead&&($=b.lookahead);do if(oe[(M=q)+K]===Te&&oe[M+K-1]===Oe&&oe[M]===oe[E]&&oe[++M]===oe[E+1]){E+=2,M++;do;while(oe[++E]===oe[++M]&&oe[++E]===oe[++M]&&oe[++E]===oe[++M]&&oe[++E]===oe[++M]&&oe[++E]===oe[++M]&&oe[++E]===oe[++M]&&oe[++E]===oe[++M]&&oe[++E]===oe[++M]&&E<ge);if(w=Q-(ge-E),E=ge-Q,K<w){if(b.match_start=q,$<=(K=w))break;Oe=oe[E+K-1],Te=oe[E+K]}}while((q=se[q&ce])>Z&&--S!=0);return K<=b.lookahead?K:b.lookahead}function ee(b){var q,M,w,S,E,K,$,Z,oe,ce,se=b.w_size;do{if(S=b.window_size-b.lookahead-b.strstart,b.strstart>=se+(se-te)){for(a.arraySet(b.window,b.window,se,se,0),b.match_start-=se,b.strstart-=se,b.block_start-=se,q=M=b.hash_size;w=b.head[--q],b.head[q]=se<=w?w-se:0,--M;);for(q=M=se;w=b.prev[--q],b.prev[q]=se<=w?w-se:0,--M;);S+=se}if(b.strm.avail_in===0)break;if(K=b.strm,$=b.window,Z=b.strstart+b.lookahead,oe=S,ce=void 0,ce=K.avail_in,oe<ce&&(ce=oe),M=ce===0?0:(K.avail_in-=ce,a.arraySet($,K.input,K.next_in,ce,Z),K.state.wrap===1?K.adler=l(K.adler,$,ce,Z):K.state.wrap===2&&(K.adler=c(K.adler,$,ce,Z)),K.next_in+=ce,K.total_in+=ce,ce),b.lookahead+=M,b.lookahead+b.insert>=_)for(E=b.strstart-b.insert,b.ins_h=b.window[E],b.ins_h=(b.ins_h<<b.hash_shift^b.window[E+1])&b.hash_mask;b.insert&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[E+_-1])&b.hash_mask,b.prev[E&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=E,E++,b.insert--,!(b.lookahead+b.insert<_)););}while(b.lookahead<te&&b.strm.avail_in!==0)}function X(b,q){for(var M,w;;){if(b.lookahead<te){if(ee(b),b.lookahead<te&&q===h)return y;if(b.lookahead===0)break}if(M=0,b.lookahead>=_&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+_-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),M!==0&&b.strstart-M<=b.w_size-te&&(b.match_length=re(b,M)),b.match_length>=_)if(w=s._tr_tally(b,b.strstart-b.match_start,b.match_length-_),b.lookahead-=b.match_length,b.match_length<=b.max_lazy_match&&b.lookahead>=_){for(b.match_length--;b.strstart++,b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+_-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart,--b.match_length!=0;);b.strstart++}else b.strstart+=b.match_length,b.match_length=0,b.ins_h=b.window[b.strstart],b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+1])&b.hash_mask;else w=s._tr_tally(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++;if(w&&(N(b,!1),b.strm.avail_out===0))return y}return b.insert=b.strstart<_-1?b.strstart:_-1,q===d?(N(b,!0),b.strm.avail_out===0?k:F):b.last_lit&&(N(b,!1),b.strm.avail_out===0)?y:L}function C(b,q){for(var M,w,S;;){if(b.lookahead<te){if(ee(b),b.lookahead<te&&q===h)return y;if(b.lookahead===0)break}if(M=0,b.lookahead>=_&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+_-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),b.prev_length=b.match_length,b.prev_match=b.match_start,b.match_length=_-1,M!==0&&b.prev_length<b.max_lazy_match&&b.strstart-M<=b.w_size-te&&(b.match_length=re(b,M),b.match_length<=5&&(b.strategy===1||b.match_length===_&&4096<b.strstart-b.match_start)&&(b.match_length=_-1)),b.prev_length>=_&&b.match_length<=b.prev_length){for(S=b.strstart+b.lookahead-_,w=s._tr_tally(b,b.strstart-1-b.prev_match,b.prev_length-_),b.lookahead-=b.prev_length-1,b.prev_length-=2;++b.strstart<=S&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+_-1])&b.hash_mask,M=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),--b.prev_length!=0;);if(b.match_available=0,b.match_length=_-1,b.strstart++,w&&(N(b,!1),b.strm.avail_out===0))return y}else if(b.match_available){if((w=s._tr_tally(b,0,b.window[b.strstart-1]))&&N(b,!1),b.strstart++,b.lookahead--,b.strm.avail_out===0)return y}else b.match_available=1,b.strstart++,b.lookahead--}return b.match_available&&(w=s._tr_tally(b,0,b.window[b.strstart-1]),b.match_available=0),b.insert=b.strstart<_-1?b.strstart:_-1,q===d?(N(b,!0),b.strm.avail_out===0?k:F):b.last_lit&&(N(b,!1),b.strm.avail_out===0)?y:L}function G(b,q,M,w,S){this.good_length=b,this.max_lazy=q,this.nice_length=M,this.max_chain=w,this.func=S}function z(){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=m,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 a.Buf16(2*D),this.dyn_dtree=new a.Buf16(2*(2*P+1)),this.bl_tree=new a.Buf16(2*(2*A+1)),ie(this.dyn_ltree),ie(this.dyn_dtree),ie(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(W+1),this.heap=new a.Buf16(2*T+1),ie(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*T+1),ie(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 H(b){var q;return b&&b.state?(b.total_in=b.total_out=0,b.data_type=R,(q=b.state).pending=0,q.pending_out=0,q.wrap<0&&(q.wrap=-q.wrap),q.status=q.wrap?O:I,b.adler=q.wrap===2?0:1,q.last_flush=h,s._tr_init(q),f):Y(b,p)}function j(b){var q=H(b);return q===f&&function(M){M.window_size=2*M.w_size,ie(M.head),M.max_lazy_match=o[M.level].max_lazy,M.good_match=o[M.level].good_length,M.nice_match=o[M.level].nice_length,M.max_chain_length=o[M.level].max_chain,M.strstart=0,M.block_start=0,M.lookahead=0,M.insert=0,M.match_length=M.prev_length=_-1,M.match_available=0,M.ins_h=0}(b.state),q}function ue(b,q,M,w,S,E){if(!b)return p;var K=1;if(q===g&&(q=6),w<0?(K=0,w=-w):15<w&&(K=2,w-=16),S<1||x<S||M!==m||w<8||15<w||q<0||9<q||E<0||v<E)return Y(b,p);w===8&&(w=9);var $=new z;return(b.state=$).strm=b,$.wrap=K,$.gzhead=null,$.w_bits=w,$.w_size=1<<$.w_bits,$.w_mask=$.w_size-1,$.hash_bits=S+7,$.hash_size=1<<$.hash_bits,$.hash_mask=$.hash_size-1,$.hash_shift=~~(($.hash_bits+_-1)/_),$.window=new a.Buf8(2*$.w_size),$.head=new a.Buf16($.hash_size),$.prev=new a.Buf16($.w_size),$.lit_bufsize=1<<S+6,$.pending_buf_size=4*$.lit_bufsize,$.pending_buf=new a.Buf8($.pending_buf_size),$.d_buf=1*$.lit_bufsize,$.l_buf=3*$.lit_bufsize,$.level=q,$.strategy=E,$.method=M,j(b)}o=[new G(0,0,0,0,function(b,q){var M=65535;for(M>b.pending_buf_size-5&&(M=b.pending_buf_size-5);;){if(b.lookahead<=1){if(ee(b),b.lookahead===0&&q===h)return y;if(b.lookahead===0)break}b.strstart+=b.lookahead,b.lookahead=0;var w=b.block_start+M;if((b.strstart===0||b.strstart>=w)&&(b.lookahead=b.strstart-w,b.strstart=w,N(b,!1),b.strm.avail_out===0)||b.strstart-b.block_start>=b.w_size-te&&(N(b,!1),b.strm.avail_out===0))return y}return b.insert=0,q===d?(N(b,!0),b.strm.avail_out===0?k:F):(b.strstart>b.block_start&&(N(b,!1),b.strm.avail_out),y)}),new G(4,4,8,4,X),new G(4,5,16,8,X),new G(4,6,32,32,X),new G(4,4,16,16,C),new G(8,16,32,32,C),new G(8,16,128,128,C),new G(8,32,128,256,C),new G(32,128,258,1024,C),new G(32,258,258,4096,C)],i.deflateInit=function(b,q){return ue(b,q,m,15,8,0)},i.deflateInit2=ue,i.deflateReset=j,i.deflateResetKeep=H,i.deflateSetHeader=function(b,q){return b&&b.state?b.state.wrap!==2?p:(b.state.gzhead=q,f):p},i.deflate=function(b,q){var M,w,S,E;if(!b||!b.state||5<q||q<0)return b?Y(b,p):p;if(w=b.state,!b.output||!b.input&&b.avail_in!==0||w.status===666&&q!==d)return Y(b,b.avail_out===0?-5:p);if(w.strm=b,M=w.last_flush,w.last_flush=q,w.status===O)if(w.wrap===2)b.adler=0,J(w,31),J(w,139),J(w,8),w.gzhead?(J(w,(w.gzhead.text?1:0)+(w.gzhead.hcrc?2:0)+(w.gzhead.extra?4:0)+(w.gzhead.name?8:0)+(w.gzhead.comment?16:0)),J(w,255&w.gzhead.time),J(w,w.gzhead.time>>8&255),J(w,w.gzhead.time>>16&255),J(w,w.gzhead.time>>24&255),J(w,w.level===9?2:2<=w.strategy||w.level<2?4:0),J(w,255&w.gzhead.os),w.gzhead.extra&&w.gzhead.extra.length&&(J(w,255&w.gzhead.extra.length),J(w,w.gzhead.extra.length>>8&255)),w.gzhead.hcrc&&(b.adler=c(b.adler,w.pending_buf,w.pending,0)),w.gzindex=0,w.status=69):(J(w,0),J(w,0),J(w,0),J(w,0),J(w,0),J(w,w.level===9?2:2<=w.strategy||w.level<2?4:0),J(w,3),w.status=I);else{var K=m+(w.w_bits-8<<4)<<8;K|=(2<=w.strategy||w.level<2?0:w.level<6?1:w.level===6?2:3)<<6,w.strstart!==0&&(K|=32),K+=31-K%31,w.status=I,B(w,K),w.strstart!==0&&(B(w,b.adler>>>16),B(w,65535&b.adler)),b.adler=1}if(w.status===69)if(w.gzhead.extra){for(S=w.pending;w.gzindex<(65535&w.gzhead.extra.length)&&(w.pending!==w.pending_buf_size||(w.gzhead.hcrc&&w.pending>S&&(b.adler=c(b.adler,w.pending_buf,w.pending-S,S)),U(b),S=w.pending,w.pending!==w.pending_buf_size));)J(w,255&w.gzhead.extra[w.gzindex]),w.gzindex++;w.gzhead.hcrc&&w.pending>S&&(b.adler=c(b.adler,w.pending_buf,w.pending-S,S)),w.gzindex===w.gzhead.extra.length&&(w.gzindex=0,w.status=73)}else w.status=73;if(w.status===73)if(w.gzhead.name){S=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>S&&(b.adler=c(b.adler,w.pending_buf,w.pending-S,S)),U(b),S=w.pending,w.pending===w.pending_buf_size)){E=1;break}E=w.gzindex<w.gzhead.name.length?255&w.gzhead.name.charCodeAt(w.gzindex++):0,J(w,E)}while(E!==0);w.gzhead.hcrc&&w.pending>S&&(b.adler=c(b.adler,w.pending_buf,w.pending-S,S)),E===0&&(w.gzindex=0,w.status=91)}else w.status=91;if(w.status===91)if(w.gzhead.comment){S=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>S&&(b.adler=c(b.adler,w.pending_buf,w.pending-S,S)),U(b),S=w.pending,w.pending===w.pending_buf_size)){E=1;break}E=w.gzindex<w.gzhead.comment.length?255&w.gzhead.comment.charCodeAt(w.gzindex++):0,J(w,E)}while(E!==0);w.gzhead.hcrc&&w.pending>S&&(b.adler=c(b.adler,w.pending_buf,w.pending-S,S)),E===0&&(w.status=103)}else w.status=103;if(w.status===103&&(w.gzhead.hcrc?(w.pending+2>w.pending_buf_size&&U(b),w.pending+2<=w.pending_buf_size&&(J(w,255&b.adler),J(w,b.adler>>8&255),b.adler=0,w.status=I)):w.status=I),w.pending!==0){if(U(b),b.avail_out===0)return w.last_flush=-1,f}else if(b.avail_in===0&&V(q)<=V(M)&&q!==d)return Y(b,-5);if(w.status===666&&b.avail_in!==0)return Y(b,-5);if(b.avail_in!==0||w.lookahead!==0||q!==h&&w.status!==666){var $=w.strategy===2?function(Z,oe){for(var ce;;){if(Z.lookahead===0&&(ee(Z),Z.lookahead===0)){if(oe===h)return y;break}if(Z.match_length=0,ce=s._tr_tally(Z,0,Z.window[Z.strstart]),Z.lookahead--,Z.strstart++,ce&&(N(Z,!1),Z.strm.avail_out===0))return y}return Z.insert=0,oe===d?(N(Z,!0),Z.strm.avail_out===0?k:F):Z.last_lit&&(N(Z,!1),Z.strm.avail_out===0)?y:L}(w,q):w.strategy===3?function(Z,oe){for(var ce,se,ge,Oe,Te=Z.window;;){if(Z.lookahead<=Q){if(ee(Z),Z.lookahead<=Q&&oe===h)return y;if(Z.lookahead===0)break}if(Z.match_length=0,Z.lookahead>=_&&0<Z.strstart&&(se=Te[ge=Z.strstart-1])===Te[++ge]&&se===Te[++ge]&&se===Te[++ge]){Oe=Z.strstart+Q;do;while(se===Te[++ge]&&se===Te[++ge]&&se===Te[++ge]&&se===Te[++ge]&&se===Te[++ge]&&se===Te[++ge]&&se===Te[++ge]&&se===Te[++ge]&&ge<Oe);Z.match_length=Q-(Oe-ge),Z.match_length>Z.lookahead&&(Z.match_length=Z.lookahead)}if(Z.match_length>=_?(ce=s._tr_tally(Z,1,Z.match_length-_),Z.lookahead-=Z.match_length,Z.strstart+=Z.match_length,Z.match_length=0):(ce=s._tr_tally(Z,0,Z.window[Z.strstart]),Z.lookahead--,Z.strstart++),ce&&(N(Z,!1),Z.strm.avail_out===0))return y}return Z.insert=0,oe===d?(N(Z,!0),Z.strm.avail_out===0?k:F):Z.last_lit&&(N(Z,!1),Z.strm.avail_out===0)?y:L}(w,q):o[w.level].func(w,q);if($!==k&&$!==F||(w.status=666),$===y||$===k)return b.avail_out===0&&(w.last_flush=-1),f;if($===L&&(q===1?s._tr_align(w):q!==5&&(s._tr_stored_block(w,0,0,!1),q===3&&(ie(w.head),w.lookahead===0&&(w.strstart=0,w.block_start=0,w.insert=0))),U(b),b.avail_out===0))return w.last_flush=-1,f}return q!==d?f:w.wrap<=0?1:(w.wrap===2?(J(w,255&b.adler),J(w,b.adler>>8&255),J(w,b.adler>>16&255),J(w,b.adler>>24&255),J(w,255&b.total_in),J(w,b.total_in>>8&255),J(w,b.total_in>>16&255),J(w,b.total_in>>24&255)):(B(w,b.adler>>>16),B(w,65535&b.adler)),U(b),0<w.wrap&&(w.wrap=-w.wrap),w.pending!==0?f:1)},i.deflateEnd=function(b){var q;return b&&b.state?(q=b.state.status)!==O&&q!==69&&q!==73&&q!==91&&q!==103&&q!==I&&q!==666?Y(b,p):(b.state=null,q===I?Y(b,-3):f):p},i.deflateSetDictionary=function(b,q){var M,w,S,E,K,$,Z,oe,ce=q.length;if(!b||!b.state||(E=(M=b.state).wrap)===2||E===1&&M.status!==O||M.lookahead)return p;for(E===1&&(b.adler=l(b.adler,q,ce,0)),M.wrap=0,ce>=M.w_size&&(E===0&&(ie(M.head),M.strstart=0,M.block_start=0,M.insert=0),oe=new a.Buf8(M.w_size),a.arraySet(oe,q,ce-M.w_size,M.w_size,0),q=oe,ce=M.w_size),K=b.avail_in,$=b.next_in,Z=b.input,b.avail_in=ce,b.next_in=0,b.input=q,ee(M);M.lookahead>=_;){for(w=M.strstart,S=M.lookahead-(_-1);M.ins_h=(M.ins_h<<M.hash_shift^M.window[w+_-1])&M.hash_mask,M.prev[w&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=w,w++,--S;);M.strstart=w,M.lookahead=_-1,ee(M)}return M.strstart+=M.lookahead,M.block_start=M.strstart,M.insert=M.lookahead,M.lookahead=0,M.match_length=M.prev_length=_-1,M.match_available=0,b.next_in=$,b.input=Z,b.avail_in=K,M.wrap=E,f},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,n,i){n.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(t,n,i){n.exports=function(o,a){var s,l,c,u,h,d,f,p,g,v,R,m,x,T,P,A,D,W,_,Q,te,O,I,y,L;s=o.state,l=o.next_in,y=o.input,c=l+(o.avail_in-5),u=o.next_out,L=o.output,h=u-(a-o.avail_out),d=u+(o.avail_out-257),f=s.dmax,p=s.wsize,g=s.whave,v=s.wnext,R=s.window,m=s.hold,x=s.bits,T=s.lencode,P=s.distcode,A=(1<<s.lenbits)-1,D=(1<<s.distbits)-1;e:do{x<15&&(m+=y[l++]<<x,x+=8,m+=y[l++]<<x,x+=8),W=T[m&A];t:for(;;){if(m>>>=_=W>>>24,x-=_,(_=W>>>16&255)===0)L[u++]=65535&W;else{if(!(16&_)){if((64&_)==0){W=T[(65535&W)+(m&(1<<_)-1)];continue t}if(32&_){s.mode=12;break e}o.msg="invalid literal/length code",s.mode=30;break e}Q=65535&W,(_&=15)&&(x<_&&(m+=y[l++]<<x,x+=8),Q+=m&(1<<_)-1,m>>>=_,x-=_),x<15&&(m+=y[l++]<<x,x+=8,m+=y[l++]<<x,x+=8),W=P[m&D];r:for(;;){if(m>>>=_=W>>>24,x-=_,!(16&(_=W>>>16&255))){if((64&_)==0){W=P[(65535&W)+(m&(1<<_)-1)];continue r}o.msg="invalid distance code",s.mode=30;break e}if(te=65535&W,x<(_&=15)&&(m+=y[l++]<<x,(x+=8)<_&&(m+=y[l++]<<x,x+=8)),f<(te+=m&(1<<_)-1)){o.msg="invalid distance too far back",s.mode=30;break e}if(m>>>=_,x-=_,(_=u-h)<te){if(g<(_=te-_)&&s.sane){o.msg="invalid distance too far back",s.mode=30;break e}if(I=R,(O=0)===v){if(O+=p-_,_<Q){for(Q-=_;L[u++]=R[O++],--_;);O=u-te,I=L}}else if(v<_){if(O+=p+v-_,(_-=v)<Q){for(Q-=_;L[u++]=R[O++],--_;);if(O=0,v<Q){for(Q-=_=v;L[u++]=R[O++],--_;);O=u-te,I=L}}}else if(O+=v-_,_<Q){for(Q-=_;L[u++]=R[O++],--_;);O=u-te,I=L}for(;2<Q;)L[u++]=I[O++],L[u++]=I[O++],L[u++]=I[O++],Q-=3;Q&&(L[u++]=I[O++],1<Q&&(L[u++]=I[O++]))}else{for(O=u-te;L[u++]=L[O++],L[u++]=L[O++],L[u++]=L[O++],2<(Q-=3););Q&&(L[u++]=L[O++],1<Q&&(L[u++]=L[O++]))}break}}break}}while(l<c&&u<d);l-=Q=x>>3,m&=(1<<(x-=Q<<3))-1,o.next_in=l,o.next_out=u,o.avail_in=l<c?c-l+5:5-(l-c),o.avail_out=u<d?d-u+257:257-(u-d),s.hold=m,s.bits=x}},{}],49:[function(t,n,i){var o=t("../utils/common"),a=t("./adler32"),s=t("./crc32"),l=t("./inffast"),c=t("./inftrees"),u=1,h=2,d=0,f=-2,p=1,g=852,v=592;function R(O){return(O>>>24&255)+(O>>>8&65280)+((65280&O)<<8)+((255&O)<<24)}function m(){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 o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function x(O){var I;return O&&O.state?(I=O.state,O.total_in=O.total_out=I.total=0,O.msg="",I.wrap&&(O.adler=1&I.wrap),I.mode=p,I.last=0,I.havedict=0,I.dmax=32768,I.head=null,I.hold=0,I.bits=0,I.lencode=I.lendyn=new o.Buf32(g),I.distcode=I.distdyn=new o.Buf32(v),I.sane=1,I.back=-1,d):f}function T(O){var I;return O&&O.state?((I=O.state).wsize=0,I.whave=0,I.wnext=0,x(O)):f}function P(O,I){var y,L;return O&&O.state?(L=O.state,I<0?(y=0,I=-I):(y=1+(I>>4),I<48&&(I&=15)),I&&(I<8||15<I)?f:(L.window!==null&&L.wbits!==I&&(L.window=null),L.wrap=y,L.wbits=I,T(O))):f}function A(O,I){var y,L;return O?(L=new m,(O.state=L).window=null,(y=P(O,I))!==d&&(O.state=null),y):f}var D,W,_=!0;function Q(O){if(_){var I;for(D=new o.Buf32(512),W=new o.Buf32(32),I=0;I<144;)O.lens[I++]=8;for(;I<256;)O.lens[I++]=9;for(;I<280;)O.lens[I++]=7;for(;I<288;)O.lens[I++]=8;for(c(u,O.lens,0,288,D,0,O.work,{bits:9}),I=0;I<32;)O.lens[I++]=5;c(h,O.lens,0,32,W,0,O.work,{bits:5}),_=!1}O.lencode=D,O.lenbits=9,O.distcode=W,O.distbits=5}function te(O,I,y,L){var k,F=O.state;return F.window===null&&(F.wsize=1<<F.wbits,F.wnext=0,F.whave=0,F.window=new o.Buf8(F.wsize)),L>=F.wsize?(o.arraySet(F.window,I,y-F.wsize,F.wsize,0),F.wnext=0,F.whave=F.wsize):(L<(k=F.wsize-F.wnext)&&(k=L),o.arraySet(F.window,I,y-L,k,F.wnext),(L-=k)?(o.arraySet(F.window,I,y-L,L,0),F.wnext=L,F.whave=F.wsize):(F.wnext+=k,F.wnext===F.wsize&&(F.wnext=0),F.whave<F.wsize&&(F.whave+=k))),0}i.inflateReset=T,i.inflateReset2=P,i.inflateResetKeep=x,i.inflateInit=function(O){return A(O,15)},i.inflateInit2=A,i.inflate=function(O,I){var y,L,k,F,Y,V,ie,U,N,J,B,re,ee,X,C,G,z,H,j,ue,b,q,M,w,S=0,E=new o.Buf8(4),K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!O||!O.state||!O.output||!O.input&&O.avail_in!==0)return f;(y=O.state).mode===12&&(y.mode=13),Y=O.next_out,k=O.output,ie=O.avail_out,F=O.next_in,L=O.input,V=O.avail_in,U=y.hold,N=y.bits,J=V,B=ie,q=d;e:for(;;)switch(y.mode){case p:if(y.wrap===0){y.mode=13;break}for(;N<16;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(2&y.wrap&&U===35615){E[y.check=0]=255&U,E[1]=U>>>8&255,y.check=s(y.check,E,2,0),N=U=0,y.mode=2;break}if(y.flags=0,y.head&&(y.head.done=!1),!(1&y.wrap)||(((255&U)<<8)+(U>>8))%31){O.msg="incorrect header check",y.mode=30;break}if((15&U)!=8){O.msg="unknown compression method",y.mode=30;break}if(N-=4,b=8+(15&(U>>>=4)),y.wbits===0)y.wbits=b;else if(b>y.wbits){O.msg="invalid window size",y.mode=30;break}y.dmax=1<<b,O.adler=y.check=1,y.mode=512&U?10:12,N=U=0;break;case 2:for(;N<16;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(y.flags=U,(255&y.flags)!=8){O.msg="unknown compression method",y.mode=30;break}if(57344&y.flags){O.msg="unknown header flags set",y.mode=30;break}y.head&&(y.head.text=U>>8&1),512&y.flags&&(E[0]=255&U,E[1]=U>>>8&255,y.check=s(y.check,E,2,0)),N=U=0,y.mode=3;case 3:for(;N<32;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}y.head&&(y.head.time=U),512&y.flags&&(E[0]=255&U,E[1]=U>>>8&255,E[2]=U>>>16&255,E[3]=U>>>24&255,y.check=s(y.check,E,4,0)),N=U=0,y.mode=4;case 4:for(;N<16;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}y.head&&(y.head.xflags=255&U,y.head.os=U>>8),512&y.flags&&(E[0]=255&U,E[1]=U>>>8&255,y.check=s(y.check,E,2,0)),N=U=0,y.mode=5;case 5:if(1024&y.flags){for(;N<16;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}y.length=U,y.head&&(y.head.extra_len=U),512&y.flags&&(E[0]=255&U,E[1]=U>>>8&255,y.check=s(y.check,E,2,0)),N=U=0}else y.head&&(y.head.extra=null);y.mode=6;case 6:if(1024&y.flags&&(V<(re=y.length)&&(re=V),re&&(y.head&&(b=y.head.extra_len-y.length,y.head.extra||(y.head.extra=new Array(y.head.extra_len)),o.arraySet(y.head.extra,L,F,re,b)),512&y.flags&&(y.check=s(y.check,L,re,F)),V-=re,F+=re,y.length-=re),y.length))break e;y.length=0,y.mode=7;case 7:if(2048&y.flags){if(V===0)break e;for(re=0;b=L[F+re++],y.head&&b&&y.length<65536&&(y.head.name+=String.fromCharCode(b)),b&&re<V;);if(512&y.flags&&(y.check=s(y.check,L,re,F)),V-=re,F+=re,b)break e}else y.head&&(y.head.name=null);y.length=0,y.mode=8;case 8:if(4096&y.flags){if(V===0)break e;for(re=0;b=L[F+re++],y.head&&b&&y.length<65536&&(y.head.comment+=String.fromCharCode(b)),b&&re<V;);if(512&y.flags&&(y.check=s(y.check,L,re,F)),V-=re,F+=re,b)break e}else y.head&&(y.head.comment=null);y.mode=9;case 9:if(512&y.flags){for(;N<16;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(U!==(65535&y.check)){O.msg="header crc mismatch",y.mode=30;break}N=U=0}y.head&&(y.head.hcrc=y.flags>>9&1,y.head.done=!0),O.adler=y.check=0,y.mode=12;break;case 10:for(;N<32;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}O.adler=y.check=R(U),N=U=0,y.mode=11;case 11:if(y.havedict===0)return O.next_out=Y,O.avail_out=ie,O.next_in=F,O.avail_in=V,y.hold=U,y.bits=N,2;O.adler=y.check=1,y.mode=12;case 12:if(I===5||I===6)break e;case 13:if(y.last){U>>>=7&N,N-=7&N,y.mode=27;break}for(;N<3;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}switch(y.last=1&U,N-=1,3&(U>>>=1)){case 0:y.mode=14;break;case 1:if(Q(y),y.mode=20,I!==6)break;U>>>=2,N-=2;break e;case 2:y.mode=17;break;case 3:O.msg="invalid block type",y.mode=30}U>>>=2,N-=2;break;case 14:for(U>>>=7&N,N-=7&N;N<32;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if((65535&U)!=(U>>>16^65535)){O.msg="invalid stored block lengths",y.mode=30;break}if(y.length=65535&U,N=U=0,y.mode=15,I===6)break e;case 15:y.mode=16;case 16:if(re=y.length){if(V<re&&(re=V),ie<re&&(re=ie),re===0)break e;o.arraySet(k,L,F,re,Y),V-=re,F+=re,ie-=re,Y+=re,y.length-=re;break}y.mode=12;break;case 17:for(;N<14;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(y.nlen=257+(31&U),U>>>=5,N-=5,y.ndist=1+(31&U),U>>>=5,N-=5,y.ncode=4+(15&U),U>>>=4,N-=4,286<y.nlen||30<y.ndist){O.msg="too many length or distance symbols",y.mode=30;break}y.have=0,y.mode=18;case 18:for(;y.have<y.ncode;){for(;N<3;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}y.lens[K[y.have++]]=7&U,U>>>=3,N-=3}for(;y.have<19;)y.lens[K[y.have++]]=0;if(y.lencode=y.lendyn,y.lenbits=7,M={bits:y.lenbits},q=c(0,y.lens,0,19,y.lencode,0,y.work,M),y.lenbits=M.bits,q){O.msg="invalid code lengths set",y.mode=30;break}y.have=0,y.mode=19;case 19:for(;y.have<y.nlen+y.ndist;){for(;G=(S=y.lencode[U&(1<<y.lenbits)-1])>>>16&255,z=65535&S,!((C=S>>>24)<=N);){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(z<16)U>>>=C,N-=C,y.lens[y.have++]=z;else{if(z===16){for(w=C+2;N<w;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(U>>>=C,N-=C,y.have===0){O.msg="invalid bit length repeat",y.mode=30;break}b=y.lens[y.have-1],re=3+(3&U),U>>>=2,N-=2}else if(z===17){for(w=C+3;N<w;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}N-=C,b=0,re=3+(7&(U>>>=C)),U>>>=3,N-=3}else{for(w=C+7;N<w;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}N-=C,b=0,re=11+(127&(U>>>=C)),U>>>=7,N-=7}if(y.have+re>y.nlen+y.ndist){O.msg="invalid bit length repeat",y.mode=30;break}for(;re--;)y.lens[y.have++]=b}}if(y.mode===30)break;if(y.lens[256]===0){O.msg="invalid code -- missing end-of-block",y.mode=30;break}if(y.lenbits=9,M={bits:y.lenbits},q=c(u,y.lens,0,y.nlen,y.lencode,0,y.work,M),y.lenbits=M.bits,q){O.msg="invalid literal/lengths set",y.mode=30;break}if(y.distbits=6,y.distcode=y.distdyn,M={bits:y.distbits},q=c(h,y.lens,y.nlen,y.ndist,y.distcode,0,y.work,M),y.distbits=M.bits,q){O.msg="invalid distances set",y.mode=30;break}if(y.mode=20,I===6)break e;case 20:y.mode=21;case 21:if(6<=V&&258<=ie){O.next_out=Y,O.avail_out=ie,O.next_in=F,O.avail_in=V,y.hold=U,y.bits=N,l(O,B),Y=O.next_out,k=O.output,ie=O.avail_out,F=O.next_in,L=O.input,V=O.avail_in,U=y.hold,N=y.bits,y.mode===12&&(y.back=-1);break}for(y.back=0;G=(S=y.lencode[U&(1<<y.lenbits)-1])>>>16&255,z=65535&S,!((C=S>>>24)<=N);){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(G&&(240&G)==0){for(H=C,j=G,ue=z;G=(S=y.lencode[ue+((U&(1<<H+j)-1)>>H)])>>>16&255,z=65535&S,!(H+(C=S>>>24)<=N);){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}U>>>=H,N-=H,y.back+=H}if(U>>>=C,N-=C,y.back+=C,y.length=z,G===0){y.mode=26;break}if(32&G){y.back=-1,y.mode=12;break}if(64&G){O.msg="invalid literal/length code",y.mode=30;break}y.extra=15&G,y.mode=22;case 22:if(y.extra){for(w=y.extra;N<w;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}y.length+=U&(1<<y.extra)-1,U>>>=y.extra,N-=y.extra,y.back+=y.extra}y.was=y.length,y.mode=23;case 23:for(;G=(S=y.distcode[U&(1<<y.distbits)-1])>>>16&255,z=65535&S,!((C=S>>>24)<=N);){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if((240&G)==0){for(H=C,j=G,ue=z;G=(S=y.distcode[ue+((U&(1<<H+j)-1)>>H)])>>>16&255,z=65535&S,!(H+(C=S>>>24)<=N);){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}U>>>=H,N-=H,y.back+=H}if(U>>>=C,N-=C,y.back+=C,64&G){O.msg="invalid distance code",y.mode=30;break}y.offset=z,y.extra=15&G,y.mode=24;case 24:if(y.extra){for(w=y.extra;N<w;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}y.offset+=U&(1<<y.extra)-1,U>>>=y.extra,N-=y.extra,y.back+=y.extra}if(y.offset>y.dmax){O.msg="invalid distance too far back",y.mode=30;break}y.mode=25;case 25:if(ie===0)break e;if(re=B-ie,y.offset>re){if((re=y.offset-re)>y.whave&&y.sane){O.msg="invalid distance too far back",y.mode=30;break}ee=re>y.wnext?(re-=y.wnext,y.wsize-re):y.wnext-re,re>y.length&&(re=y.length),X=y.window}else X=k,ee=Y-y.offset,re=y.length;for(ie<re&&(re=ie),ie-=re,y.length-=re;k[Y++]=X[ee++],--re;);y.length===0&&(y.mode=21);break;case 26:if(ie===0)break e;k[Y++]=y.length,ie--,y.mode=21;break;case 27:if(y.wrap){for(;N<32;){if(V===0)break e;V--,U|=L[F++]<<N,N+=8}if(B-=ie,O.total_out+=B,y.total+=B,B&&(O.adler=y.check=y.flags?s(y.check,k,B,Y-B):a(y.check,k,B,Y-B)),B=ie,(y.flags?U:R(U))!==y.check){O.msg="incorrect data check",y.mode=30;break}N=U=0}y.mode=28;case 28:if(y.wrap&&y.flags){for(;N<32;){if(V===0)break e;V--,U+=L[F++]<<N,N+=8}if(U!==(4294967295&y.total)){O.msg="incorrect length check",y.mode=30;break}N=U=0}y.mode=29;case 29:q=1;break e;case 30:q=-3;break e;case 31:return-4;case 32:default:return f}return O.next_out=Y,O.avail_out=ie,O.next_in=F,O.avail_in=V,y.hold=U,y.bits=N,(y.wsize||B!==O.avail_out&&y.mode<30&&(y.mode<27||I!==4))&&te(O,O.output,O.next_out,B-O.avail_out)?(y.mode=31,-4):(J-=O.avail_in,B-=O.avail_out,O.total_in+=J,O.total_out+=B,y.total+=B,y.wrap&&B&&(O.adler=y.check=y.flags?s(y.check,k,B,O.next_out-B):a(y.check,k,B,O.next_out-B)),O.data_type=y.bits+(y.last?64:0)+(y.mode===12?128:0)+(y.mode===20||y.mode===15?256:0),(J==0&&B===0||I===4)&&q===d&&(q=-5),q)},i.inflateEnd=function(O){if(!O||!O.state)return f;var I=O.state;return I.window&&(I.window=null),O.state=null,d},i.inflateGetHeader=function(O,I){var y;return O&&O.state?(2&(y=O.state).wrap)==0?f:((y.head=I).done=!1,d):f},i.inflateSetDictionary=function(O,I){var y,L=I.length;return O&&O.state?(y=O.state).wrap!==0&&y.mode!==11?f:y.mode===11&&a(1,I,L,0)!==y.check?-3:te(O,I,L,L)?(y.mode=31,-4):(y.havedict=1,d):f},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,n,i){var o=t("../utils/common"),a=[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],s=[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],l=[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],c=[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];n.exports=function(u,h,d,f,p,g,v,R){var m,x,T,P,A,D,W,_,Q,te=R.bits,O=0,I=0,y=0,L=0,k=0,F=0,Y=0,V=0,ie=0,U=0,N=null,J=0,B=new o.Buf16(16),re=new o.Buf16(16),ee=null,X=0;for(O=0;O<=15;O++)B[O]=0;for(I=0;I<f;I++)B[h[d+I]]++;for(k=te,L=15;1<=L&&B[L]===0;L--);if(L<k&&(k=L),L===0)return p[g++]=20971520,p[g++]=20971520,R.bits=1,0;for(y=1;y<L&&B[y]===0;y++);for(k<y&&(k=y),O=V=1;O<=15;O++)if(V<<=1,(V-=B[O])<0)return-1;if(0<V&&(u===0||L!==1))return-1;for(re[1]=0,O=1;O<15;O++)re[O+1]=re[O]+B[O];for(I=0;I<f;I++)h[d+I]!==0&&(v[re[h[d+I]]++]=I);if(D=u===0?(N=ee=v,19):u===1?(N=a,J-=257,ee=s,X-=257,256):(N=l,ee=c,-1),O=y,A=g,Y=I=U=0,T=-1,P=(ie=1<<(F=k))-1,u===1&&852<ie||u===2&&592<ie)return 1;for(;;){for(W=O-Y,Q=v[I]<D?(_=0,v[I]):v[I]>D?(_=ee[X+v[I]],N[J+v[I]]):(_=96,0),m=1<<O-Y,y=x=1<<F;p[A+(U>>Y)+(x-=m)]=W<<24|_<<16|Q|0,x!==0;);for(m=1<<O-1;U&m;)m>>=1;if(m!==0?(U&=m-1,U+=m):U=0,I++,--B[O]==0){if(O===L)break;O=h[d+v[I]]}if(k<O&&(U&P)!==T){for(Y===0&&(Y=k),A+=y,V=1<<(F=O-Y);F+Y<L&&!((V-=B[F+Y])<=0);)F++,V<<=1;if(ie+=1<<F,u===1&&852<ie||u===2&&592<ie)return 1;p[T=U&P]=k<<24|F<<16|A-g|0}}return U!==0&&(p[A+U]=O-Y<<24|64<<16|0),R.bits=k,0}},{"../utils/common":41}],51:[function(t,n,i){n.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(t,n,i){var o=t("../utils/common"),a=0,s=1;function l(S){for(var E=S.length;0<=--E;)S[E]=0}var c=0,u=29,h=256,d=h+1+u,f=30,p=19,g=2*d+1,v=15,R=16,m=7,x=256,T=16,P=17,A=18,D=[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],W=[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],_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],te=new Array(2*(d+2));l(te);var O=new Array(2*f);l(O);var I=new Array(512);l(I);var y=new Array(256);l(y);var L=new Array(u);l(L);var k,F,Y,V=new Array(f);function ie(S,E,K,$,Z){this.static_tree=S,this.extra_bits=E,this.extra_base=K,this.elems=$,this.max_length=Z,this.has_stree=S&&S.length}function U(S,E){this.dyn_tree=S,this.max_code=0,this.stat_desc=E}function N(S){return S<256?I[S]:I[256+(S>>>7)]}function J(S,E){S.pending_buf[S.pending++]=255&E,S.pending_buf[S.pending++]=E>>>8&255}function B(S,E,K){S.bi_valid>R-K?(S.bi_buf|=E<<S.bi_valid&65535,J(S,S.bi_buf),S.bi_buf=E>>R-S.bi_valid,S.bi_valid+=K-R):(S.bi_buf|=E<<S.bi_valid&65535,S.bi_valid+=K)}function re(S,E,K){B(S,K[2*E],K[2*E+1])}function ee(S,E){for(var K=0;K|=1&S,S>>>=1,K<<=1,0<--E;);return K>>>1}function X(S,E,K){var $,Z,oe=new Array(v+1),ce=0;for($=1;$<=v;$++)oe[$]=ce=ce+K[$-1]<<1;for(Z=0;Z<=E;Z++){var se=S[2*Z+1];se!==0&&(S[2*Z]=ee(oe[se]++,se))}}function C(S){var E;for(E=0;E<d;E++)S.dyn_ltree[2*E]=0;for(E=0;E<f;E++)S.dyn_dtree[2*E]=0;for(E=0;E<p;E++)S.bl_tree[2*E]=0;S.dyn_ltree[2*x]=1,S.opt_len=S.static_len=0,S.last_lit=S.matches=0}function G(S){8<S.bi_valid?J(S,S.bi_buf):0<S.bi_valid&&(S.pending_buf[S.pending++]=S.bi_buf),S.bi_buf=0,S.bi_valid=0}function z(S,E,K,$){var Z=2*E,oe=2*K;return S[Z]<S[oe]||S[Z]===S[oe]&&$[E]<=$[K]}function H(S,E,K){for(var $=S.heap[K],Z=K<<1;Z<=S.heap_len&&(Z<S.heap_len&&z(E,S.heap[Z+1],S.heap[Z],S.depth)&&Z++,!z(E,$,S.heap[Z],S.depth));)S.heap[K]=S.heap[Z],K=Z,Z<<=1;S.heap[K]=$}function j(S,E,K){var $,Z,oe,ce,se=0;if(S.last_lit!==0)for(;$=S.pending_buf[S.d_buf+2*se]<<8|S.pending_buf[S.d_buf+2*se+1],Z=S.pending_buf[S.l_buf+se],se++,$===0?re(S,Z,E):(re(S,(oe=y[Z])+h+1,E),(ce=D[oe])!==0&&B(S,Z-=L[oe],ce),re(S,oe=N(--$),K),(ce=W[oe])!==0&&B(S,$-=V[oe],ce)),se<S.last_lit;);re(S,x,E)}function ue(S,E){var K,$,Z,oe=E.dyn_tree,ce=E.stat_desc.static_tree,se=E.stat_desc.has_stree,ge=E.stat_desc.elems,Oe=-1;for(S.heap_len=0,S.heap_max=g,K=0;K<ge;K++)oe[2*K]!==0?(S.heap[++S.heap_len]=Oe=K,S.depth[K]=0):oe[2*K+1]=0;for(;S.heap_len<2;)oe[2*(Z=S.heap[++S.heap_len]=Oe<2?++Oe:0)]=1,S.depth[Z]=0,S.opt_len--,se&&(S.static_len-=ce[2*Z+1]);for(E.max_code=Oe,K=S.heap_len>>1;1<=K;K--)H(S,oe,K);for(Z=ge;K=S.heap[1],S.heap[1]=S.heap[S.heap_len--],H(S,oe,1),$=S.heap[1],S.heap[--S.heap_max]=K,S.heap[--S.heap_max]=$,oe[2*Z]=oe[2*K]+oe[2*$],S.depth[Z]=(S.depth[K]>=S.depth[$]?S.depth[K]:S.depth[$])+1,oe[2*K+1]=oe[2*$+1]=Z,S.heap[1]=Z++,H(S,oe,1),2<=S.heap_len;);S.heap[--S.heap_max]=S.heap[1],function(Te,Ye){var Vt,lt,ft,Ue,_t,Jt,Tt=Ye.dyn_tree,Cr=Ye.max_code,Jr=Ye.stat_desc.static_tree,lr=Ye.stat_desc.has_stree,zr=Ye.stat_desc.extra_bits,Ar=Ye.stat_desc.extra_base,er=Ye.stat_desc.max_length,cr=0;for(Ue=0;Ue<=v;Ue++)Te.bl_count[Ue]=0;for(Tt[2*Te.heap[Te.heap_max]+1]=0,Vt=Te.heap_max+1;Vt<g;Vt++)er<(Ue=Tt[2*Tt[2*(lt=Te.heap[Vt])+1]+1]+1)&&(Ue=er,cr++),Tt[2*lt+1]=Ue,Cr<lt||(Te.bl_count[Ue]++,_t=0,Ar<=lt&&(_t=zr[lt-Ar]),Jt=Tt[2*lt],Te.opt_len+=Jt*(Ue+_t),lr&&(Te.static_len+=Jt*(Jr[2*lt+1]+_t)));if(cr!==0){do{for(Ue=er-1;Te.bl_count[Ue]===0;)Ue--;Te.bl_count[Ue]--,Te.bl_count[Ue+1]+=2,Te.bl_count[er]--,cr-=2}while(0<cr);for(Ue=er;Ue!==0;Ue--)for(lt=Te.bl_count[Ue];lt!==0;)Cr<(ft=Te.heap[--Vt])||(Tt[2*ft+1]!==Ue&&(Te.opt_len+=(Ue-Tt[2*ft+1])*Tt[2*ft],Tt[2*ft+1]=Ue),lt--)}}(S,E),X(oe,Oe,S.bl_count)}function b(S,E,K){var $,Z,oe=-1,ce=E[1],se=0,ge=7,Oe=4;for(ce===0&&(ge=138,Oe=3),E[2*(K+1)+1]=65535,$=0;$<=K;$++)Z=ce,ce=E[2*($+1)+1],++se<ge&&Z===ce||(se<Oe?S.bl_tree[2*Z]+=se:Z!==0?(Z!==oe&&S.bl_tree[2*Z]++,S.bl_tree[2*T]++):se<=10?S.bl_tree[2*P]++:S.bl_tree[2*A]++,oe=Z,Oe=(se=0)===ce?(ge=138,3):Z===ce?(ge=6,3):(ge=7,4))}function q(S,E,K){var $,Z,oe=-1,ce=E[1],se=0,ge=7,Oe=4;for(ce===0&&(ge=138,Oe=3),$=0;$<=K;$++)if(Z=ce,ce=E[2*($+1)+1],!(++se<ge&&Z===ce)){if(se<Oe)for(;re(S,Z,S.bl_tree),--se!=0;);else Z!==0?(Z!==oe&&(re(S,Z,S.bl_tree),se--),re(S,T,S.bl_tree),B(S,se-3,2)):se<=10?(re(S,P,S.bl_tree),B(S,se-3,3)):(re(S,A,S.bl_tree),B(S,se-11,7));oe=Z,Oe=(se=0)===ce?(ge=138,3):Z===ce?(ge=6,3):(ge=7,4)}}l(V);var M=!1;function w(S,E,K,$){B(S,(c<<1)+($?1:0),3),function(Z,oe,ce,se){G(Z),se&&(J(Z,ce),J(Z,~ce)),o.arraySet(Z.pending_buf,Z.window,oe,ce,Z.pending),Z.pending+=ce}(S,E,K,!0)}i._tr_init=function(S){M||(function(){var E,K,$,Z,oe,ce=new Array(v+1);for(Z=$=0;Z<u-1;Z++)for(L[Z]=$,E=0;E<1<<D[Z];E++)y[$++]=Z;for(y[$-1]=Z,Z=oe=0;Z<16;Z++)for(V[Z]=oe,E=0;E<1<<W[Z];E++)I[oe++]=Z;for(oe>>=7;Z<f;Z++)for(V[Z]=oe<<7,E=0;E<1<<W[Z]-7;E++)I[256+oe++]=Z;for(K=0;K<=v;K++)ce[K]=0;for(E=0;E<=143;)te[2*E+1]=8,E++,ce[8]++;for(;E<=255;)te[2*E+1]=9,E++,ce[9]++;for(;E<=279;)te[2*E+1]=7,E++,ce[7]++;for(;E<=287;)te[2*E+1]=8,E++,ce[8]++;for(X(te,d+1,ce),E=0;E<f;E++)O[2*E+1]=5,O[2*E]=ee(E,5);k=new ie(te,D,h+1,d,v),F=new ie(O,W,0,f,v),Y=new ie(new Array(0),_,0,p,m)}(),M=!0),S.l_desc=new U(S.dyn_ltree,k),S.d_desc=new U(S.dyn_dtree,F),S.bl_desc=new U(S.bl_tree,Y),S.bi_buf=0,S.bi_valid=0,C(S)},i._tr_stored_block=w,i._tr_flush_block=function(S,E,K,$){var Z,oe,ce=0;0<S.level?(S.strm.data_type===2&&(S.strm.data_type=function(se){var ge,Oe=4093624447;for(ge=0;ge<=31;ge++,Oe>>>=1)if(1&Oe&&se.dyn_ltree[2*ge]!==0)return a;if(se.dyn_ltree[18]!==0||se.dyn_ltree[20]!==0||se.dyn_ltree[26]!==0)return s;for(ge=32;ge<h;ge++)if(se.dyn_ltree[2*ge]!==0)return s;return a}(S)),ue(S,S.l_desc),ue(S,S.d_desc),ce=function(se){var ge;for(b(se,se.dyn_ltree,se.l_desc.max_code),b(se,se.dyn_dtree,se.d_desc.max_code),ue(se,se.bl_desc),ge=p-1;3<=ge&&se.bl_tree[2*Q[ge]+1]===0;ge--);return se.opt_len+=3*(ge+1)+5+5+4,ge}(S),Z=S.opt_len+3+7>>>3,(oe=S.static_len+3+7>>>3)<=Z&&(Z=oe)):Z=oe=K+5,K+4<=Z&&E!==-1?w(S,E,K,$):S.strategy===4||oe===Z?(B(S,2+($?1:0),3),j(S,te,O)):(B(S,4+($?1:0),3),function(se,ge,Oe,Te){var Ye;for(B(se,ge-257,5),B(se,Oe-1,5),B(se,Te-4,4),Ye=0;Ye<Te;Ye++)B(se,se.bl_tree[2*Q[Ye]+1],3);q(se,se.dyn_ltree,ge-1),q(se,se.dyn_dtree,Oe-1)}(S,S.l_desc.max_code+1,S.d_desc.max_code+1,ce+1),j(S,S.dyn_ltree,S.dyn_dtree)),C(S),$&&G(S)},i._tr_tally=function(S,E,K){return S.pending_buf[S.d_buf+2*S.last_lit]=E>>>8&255,S.pending_buf[S.d_buf+2*S.last_lit+1]=255&E,S.pending_buf[S.l_buf+S.last_lit]=255&K,S.last_lit++,E===0?S.dyn_ltree[2*K]++:(S.matches++,E--,S.dyn_ltree[2*(y[K]+h+1)]++,S.dyn_dtree[2*N(E)]++),S.last_lit===S.lit_bufsize-1},i._tr_align=function(S){B(S,2,3),re(S,x,te),function(E){E.bi_valid===16?(J(E,E.bi_buf),E.bi_buf=0,E.bi_valid=0):8<=E.bi_valid&&(E.pending_buf[E.pending++]=255&E.bi_buf,E.bi_buf>>=8,E.bi_valid-=8)}(S)}},{"../utils/common":41}],53:[function(t,n,i){n.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(t,n,i){(function(o){(function(a,s){if(!a.setImmediate){var l,c,u,h,d=1,f={},p=!1,g=a.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(a);v=v&&v.setTimeout?v:a,l={}.toString.call(a.process)==="[object process]"?function(T){process.nextTick(function(){m(T)})}:function(){if(a.postMessage&&!a.importScripts){var T=!0,P=a.onmessage;return a.onmessage=function(){T=!1},a.postMessage("","*"),a.onmessage=P,T}}()?(h="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",x,!1):a.attachEvent("onmessage",x),function(T){a.postMessage(h+T,"*")}):a.MessageChannel?((u=new MessageChannel).port1.onmessage=function(T){m(T.data)},function(T){u.port2.postMessage(T)}):g&&"onreadystatechange"in g.createElement("script")?(c=g.documentElement,function(T){var P=g.createElement("script");P.onreadystatechange=function(){m(T),P.onreadystatechange=null,c.removeChild(P),P=null},c.appendChild(P)}):function(T){setTimeout(m,0,T)},v.setImmediate=function(T){typeof T!="function"&&(T=new Function(""+T));for(var P=new Array(arguments.length-1),A=0;A<P.length;A++)P[A]=arguments[A+1];var D={callback:T,args:P};return f[d]=D,l(d),d++},v.clearImmediate=R}function R(T){delete f[T]}function m(T){if(p)setTimeout(m,0,T);else{var P=f[T];if(P){p=!0;try{(function(A){var D=A.callback,W=A.args;switch(W.length){case 0:D();break;case 1:D(W[0]);break;case 2:D(W[0],W[1]);break;case 3:D(W[0],W[1],W[2]);break;default:D.apply(s,W)}})(P)}finally{R(T),p=!1}}}}function x(T){T.source===a&&typeof T.data=="string"&&T.data.indexOf(h)===0&&m(+T.data.slice(h.length))}})(typeof self=="undefined"?o===void 0?this:o:self)}).call(this,typeof Bn!="undefined"?Bn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})})(Pp);var d2=Pp.exports,At;(function(r){r.OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",r.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",r.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",r.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",r.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",r.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",r.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",r.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",r.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",r.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",r.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",r.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",r.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",r.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",r.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",r.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties",r.Comments="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",r.CommentsExtended="http://schemas.microsoft.com/office/2011/relationships/commentsExtended"})(At||(At={}));function p2(r,e){return e.elements(r).map(t=>({id:e.attr(t,"Id"),type:e.attr(t,"Type"),target:e.attr(t,"Target"),targetMode:e.attr(t,"TargetMode")}))}const Ep={wordml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",drawingml:"http://schemas.openxmlformats.org/drawingml/2006/main",picture:"http://schemas.openxmlformats.org/drawingml/2006/picture",compatibility:"http://schemas.openxmlformats.org/markup-compatibility/2006",math:"http://schemas.openxmlformats.org/officeDocument/2006/math"},Dt={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:1/240,unit:""},VmlEmu:{mul:1/12700,unit:""}};function _p(r,e=Dt.Dxa){return r==null||/.+(p[xt]|[%])$/.test(r)?r:`${(parseInt(r)*e.mul).toFixed(2)}${e.unit}`}function g2(r,e=!1){switch(r){case"1":return!0;case"0":return!1;case"on":return!0;case"off":return!1;case"true":return!0;case"false":return!1;default:return e}}function Ip(r,e,t){if(r.namespaceURI!=Ep.wordml)return!1;switch(r.localName){case"color":e.color=t.attr(r,"val");break;case"sz":e.fontSize=t.lengthAttr(r,"val",Dt.FontSize);break;default:return!1}return!0}function R2(r,e=!1){e&&(r=r.replace(/<[?].*[?]>/,"")),r=v2(r);const t=new DOMParser().parseFromString(r,"application/xml"),n=m2(t);if(n)throw new Error(n);return t}function m2(r){var e;return(e=r.getElementsByTagName("parsererror")[0])==null?void 0:e.textContent}function v2(r){return r.charCodeAt(0)===65279?r.substring(1):r}function y2(r){return new XMLSerializer().serializeToString(r)}class Np{elements(e,t=null){const n=[];for(let i=0,o=e.childNodes.length;i<o;i++){let a=e.childNodes.item(i);a.nodeType==1&&(t==null||a.localName==t)&&n.push(a)}return n}element(e,t){for(let n=0,i=e.childNodes.length;n<i;n++){let o=e.childNodes.item(n);if(o.nodeType==1&&o.localName==t)return o}return null}elementAttr(e,t,n){var i=this.element(e,t);return i?this.attr(i,n):void 0}attrs(e){return Array.from(e.attributes)}attr(e,t){for(let n=0,i=e.attributes.length;n<i;n++){let o=e.attributes.item(n);if(o.localName==t)return o.value}return null}intAttr(e,t,n=null){var i=this.attr(e,t);return i?parseInt(i):n}hexAttr(e,t,n=null){var i=this.attr(e,t);return i?parseInt(i,16):n}floatAttr(e,t,n=null){var i=this.attr(e,t);return i?parseFloat(i):n}boolAttr(e,t,n=null){return g2(this.attr(e,t),n)}lengthAttr(e,t,n=Dt.Dxa){return _p(this.attr(e,t),n)}}const he=new Np;class Fr{constructor(e,t){this._package=e,this.path=t}async load(){this.rels=await this._package.loadRelationships(this.path);const e=await this._package.load(this.path),t=this._package.parseXmlDocument(e);this._package.options.keepOrigin&&(this._xmlDocument=t),this.parseXml(t.firstElementChild)}save(){this._package.update(this.path,y2(this._xmlDocument))}parseXml(e){}}const w2={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function S2(r,e){return e.elements(r).map(t=>x2(t,e))}function x2(r,e){let t={name:e.attr(r,"name"),embedFontRefs:[]};for(let n of e.elements(r))switch(n.localName){case"family":t.family=e.attr(n,"val");break;case"altName":t.altName=e.attr(n,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":t.embedFontRefs.push(b2(n,e));break}return t}function b2(r,e){return{id:e.attr(r,"id"),key:e.attr(r,"fontKey"),type:w2[r.localName]}}class O2 extends Fr{parseXml(e){this.fonts=S2(e,this._package.xmlParser)}}function T2(r){return r==null?void 0:r.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()}function Oa(r){let e=r.lastIndexOf("/")+1,t=e==0?"":r.substring(0,e),n=e==0?r:r.substring(e);return[t,n]}function Rl(r,e){try{const t="http://docx/";return new URL(r,t+e).toString().substring(t.length)}catch{return`${e}${r}`}}function In(r,e){return r.reduce((t,n)=>(t[e(n)]=n,t),{})}function P2(r){return new Promise((e,t)=>{const n=new FileReader;n.onloadend=()=>e(n.result),n.onerror=()=>t(),n.readAsDataURL(r)})}function ml(r){return r&&typeof r=="object"&&!Array.isArray(r)}function E2(r){return typeof r=="string"||r instanceof String}function Ya(r,...e){var n;if(!e.length)return r;const t=e.shift();if(ml(r)&&ml(t))for(const i in t)if(ml(t[i])){const o=(n=r[i])!=null?n:r[i]={};Ya(o,t[i])}else r[i]=t[i];return Ya(r,...e)}function so(r){return Array.isArray(r)?r:[r]}class Zc{constructor(e,t){this._zip=e,this.options=t,this.xmlParser=new Np}get(e){var n;const t=_2(e);return(n=this._zip.files[t])!=null?n:this._zip.files[t.replace(/\//g,"\\")]}update(e,t){this._zip.file(e,t)}static async load(e,t){const n=await d2.loadAsync(e);return new Zc(n,t)}save(e="blob"){return this._zip.generateAsync({type:e})}load(e,t="string"){var n,i;return(i=(n=this.get(e))==null?void 0:n.async(t))!=null?i:Promise.resolve(null)}async loadRelationships(e=null){let t="_rels/.rels";if(e!=null){const[i,o]=Oa(e);t=`${i}_rels/${o}.rels`}const n=await this.load(t);return n?p2(this.parseXmlDocument(n).firstElementChild,this.xmlParser):null}parseXmlDocument(e){return R2(e,this.options.trimXmlDeclaration)}}function _2(r){return r.startsWith("/")?r.substr(1):r}class I2 extends Fr{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.body=this._documentParser.parseDocumentFile(e)}}function ca(r,e){return{type:e.attr(r,"val"),color:e.attr(r,"color"),size:e.lengthAttr(r,"sz",Dt.Border),offset:e.lengthAttr(r,"space",Dt.Point),frame:e.boolAttr(r,"frame"),shadow:e.boolAttr(r,"shadow")}}function N2(r,e){var t={};for(let n of e.elements(r))switch(n.localName){case"left":t.left=ca(n,e);break;case"top":t.top=ca(n,e);break;case"right":t.right=ca(n,e);break;case"bottom":t.bottom=ca(n,e);break}return t}var wf;(function(r){r.Continuous="continuous",r.NextPage="nextPage",r.NextColumn="nextColumn",r.EvenPage="evenPage",r.OddPage="oddPage"})(wf||(wf={}));function Mp(r,e=he){var n,i;var t={};for(let o of e.elements(r))switch(o.localName){case"pgSz":t.pageSize={width:e.lengthAttr(o,"w"),height:e.lengthAttr(o,"h"),orientation:e.attr(o,"orient")};break;case"type":t.type=e.attr(o,"val");break;case"pgMar":t.pageMargins={left:e.lengthAttr(o,"left"),right:e.lengthAttr(o,"right"),top:e.lengthAttr(o,"top"),bottom:e.lengthAttr(o,"bottom"),header:e.lengthAttr(o,"header"),footer:e.lengthAttr(o,"footer"),gutter:e.lengthAttr(o,"gutter")};break;case"cols":t.columns=M2(o,e);break;case"headerReference":((n=t.headerRefs)!=null?n:t.headerRefs=[]).push(Sf(o,e));break;case"footerReference":((i=t.footerRefs)!=null?i:t.footerRefs=[]).push(Sf(o,e));break;case"titlePg":t.titlePage=e.boolAttr(o,"val",!0);break;case"pgBorders":t.pageBorders=N2(o,e);break;case"pgNumType":t.pageNumber=L2(o,e);break}return t}function M2(r,e){return{numberOfColumns:e.intAttr(r,"num"),space:e.lengthAttr(r,"space"),separator:e.boolAttr(r,"sep"),equalWidth:e.boolAttr(r,"equalWidth",!0),columns:e.elements(r,"col").map(t=>({width:e.lengthAttr(t,"w"),space:e.lengthAttr(t,"space")}))}}function L2(r,e){return{chapSep:e.attr(r,"chapSep"),chapStyle:e.attr(r,"chapStyle"),format:e.attr(r,"fmt"),start:e.intAttr(r,"start")}}function Sf(r,e){return{id:e.attr(r,"id"),type:e.attr(r,"type")}}function F2(r,e){return{before:e.lengthAttr(r,"before"),after:e.lengthAttr(r,"after"),line:e.intAttr(r,"line"),lineRule:e.attr(r,"lineRule")}}function Qc(r,e){let t={};for(let n of e.elements(r))C2(n,t,e);return t}function C2(r,e,t){return!!Ip(r,e,t)}function Lp(r,e){let t={};for(let n of e.elements(r))Fp(n,t,e);return t}function Fp(r,e,t){if(r.namespaceURI!=Ep.wordml)return!1;if(Ip(r,e,t))return!0;switch(r.localName){case"tabs":e.tabs=A2(r,t);break;case"sectPr":e.sectionProps=Mp(r,t);break;case"numPr":e.numbering=D2(r,t);break;case"spacing":return e.lineSpacing=F2(r,t),!1;case"textAlignment":return e.textAlignment=t.attr(r,"val"),!1;case"keepLines":e.keepLines=t.boolAttr(r,"val",!0);break;case"keepNext":e.keepNext=t.boolAttr(r,"val",!0);break;case"pageBreakBefore":e.pageBreakBefore=t.boolAttr(r,"val",!0);break;case"outlineLvl":e.outlineLevel=t.intAttr(r,"val");break;case"pStyle":e.styleName=t.attr(r,"val");break;case"rPr":e.runProps=Qc(r,t);break;default:return!1}return!0}function A2(r,e){return e.elements(r,"tab").map(t=>({position:e.lengthAttr(t,"pos"),leader:e.attr(t,"leader"),style:e.attr(t,"val")}))}function D2(r,e){var t={};for(let n of e.elements(r))switch(n.localName){case"numId":t.id=e.attr(n,"val");break;case"ilvl":t.level=e.intAttr(n,"val");break}return t}function X2(r,e){let t={numberings:[],abstractNumberings:[],bulletPictures:[]};for(let n of e.elements(r))switch(n.localName){case"num":t.numberings.push(U2(n,e));break;case"abstractNum":t.abstractNumberings.push(W2(n,e));break;case"numPicBullet":t.bulletPictures.push(Y2(n,e));break}return t}function U2(r,e){let t={id:e.attr(r,"numId"),overrides:[]};for(let n of e.elements(r))switch(n.localName){case"abstractNumId":t.abstractId=e.attr(n,"val");break;case"lvlOverride":t.overrides.push(V2(n,e));break}return t}function W2(r,e){let t={id:e.attr(r,"abstractNumId"),levels:[]};for(let n of e.elements(r))switch(n.localName){case"name":t.name=e.attr(n,"val");break;case"multiLevelType":t.multiLevelType=e.attr(n,"val");break;case"numStyleLink":t.numberingStyleLink=e.attr(n,"val");break;case"styleLink":t.styleLink=e.attr(n,"val");break;case"lvl":t.levels.push(Cp(n,e));break}return t}function Cp(r,e){let t={level:e.intAttr(r,"ilvl")};for(let n of e.elements(r))switch(n.localName){case"start":t.start=e.attr(n,"val");break;case"lvlRestart":t.restart=e.intAttr(n,"val");break;case"numFmt":t.format=e.attr(n,"val");break;case"lvlText":t.text=e.attr(n,"val");break;case"lvlJc":t.justification=e.attr(n,"val");break;case"lvlPicBulletId":t.bulletPictureId=e.attr(n,"val");break;case"pStyle":t.paragraphStyle=e.attr(n,"val");break;case"pPr":t.paragraphProps=Lp(n,e);break;case"rPr":t.runProps=Qc(n,e);break}return t}function V2(r,e){let t={level:e.intAttr(r,"ilvl")};for(let n of e.elements(r))switch(n.localName){case"startOverride":t.start=e.intAttr(n,"val");break;case"lvl":t.numberingLevel=Cp(n,e);break}return t}function Y2(r,e){var t=e.element(r,"pict"),n=t&&e.element(t,"shape"),i=n&&e.element(n,"imagedata");return i?{id:e.attr(r,"numPicBulletId"),referenceId:e.attr(i,"id"),style:e.attr(n,"style")}:null}class k2 extends Fr{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){Object.assign(this,X2(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)}}class Z2 extends Fr{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.styles=this._documentParser.parseStylesFile(e)}}var Re;(function(r){r.Document="document",r.Paragraph="paragraph",r.Run="run",r.Break="break",r.NoBreakHyphen="noBreakHyphen",r.Table="table",r.Row="row",r.Cell="cell",r.Hyperlink="hyperlink",r.SmartTag="smartTag",r.Drawing="drawing",r.Image="image",r.Text="text",r.Tab="tab",r.Symbol="symbol",r.BookmarkStart="bookmarkStart",r.BookmarkEnd="bookmarkEnd",r.Footer="footer",r.Header="header",r.FootnoteReference="footnoteReference",r.EndnoteReference="endnoteReference",r.Footnote="footnote",r.Endnote="endnote",r.SimpleField="simpleField",r.ComplexField="complexField",r.Instruction="instruction",r.VmlPicture="vmlPicture",r.MmlMath="mmlMath",r.MmlMathParagraph="mmlMathParagraph",r.MmlFraction="mmlFraction",r.MmlFunction="mmlFunction",r.MmlFunctionName="mmlFunctionName",r.MmlNumerator="mmlNumerator",r.MmlDenominator="mmlDenominator",r.MmlRadical="mmlRadical",r.MmlBase="mmlBase",r.MmlDegree="mmlDegree",r.MmlSuperscript="mmlSuperscript",r.MmlSubscript="mmlSubscript",r.MmlPreSubSuper="mmlPreSubSuper",r.MmlSubArgument="mmlSubArgument",r.MmlSuperArgument="mmlSuperArgument",r.MmlNary="mmlNary",r.MmlDelimiter="mmlDelimiter",r.MmlRun="mmlRun",r.MmlEquationArray="mmlEquationArray",r.MmlLimit="mmlLimit",r.MmlLimitLower="mmlLimitLower",r.MmlMatrix="mmlMatrix",r.MmlMatrixRow="mmlMatrixRow",r.MmlBox="mmlBox",r.MmlBar="mmlBar",r.MmlGroupChar="mmlGroupChar",r.VmlElement="vmlElement",r.Inserted="inserted",r.Deleted="deleted",r.DeletedText="deletedText",r.Comment="comment",r.CommentReference="commentReference",r.CommentRangeStart="commentRangeStart",r.CommentRangeEnd="commentRangeEnd"})(Re||(Re={}));class oi{constructor(){this.children=[],this.cssStyle={}}}class Q2 extends oi{constructor(){super(...arguments),this.type=Re.Header}}class K2 extends oi{constructor(){super(...arguments),this.type=Re.Footer}}class Ap extends Fr{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}}class H2 extends Ap{createRootElement(){return new Q2}}class B2 extends Ap{createRootElement(){return new K2}}function G2(r,e){const t={};for(let n of e.elements(r))switch(n.localName){case"Template":t.template=n.textContent;break;case"Pages":t.pages=lo(n.textContent);break;case"Words":t.words=lo(n.textContent);break;case"Characters":t.characters=lo(n.textContent);break;case"Application":t.application=n.textContent;break;case"Lines":t.lines=lo(n.textContent);break;case"Paragraphs":t.paragraphs=lo(n.textContent);break;case"Company":t.company=n.textContent;break;case"AppVersion":t.appVersion=n.textContent;break}return t}function lo(r){if(typeof r!="undefined")return parseInt(r)}class J2 extends Fr{parseXml(e){this.props=G2(e,this._package.xmlParser)}}function z2(r,e){const t={};for(let n of e.elements(r))switch(n.localName){case"title":t.title=n.textContent;break;case"description":t.description=n.textContent;break;case"subject":t.subject=n.textContent;break;case"creator":t.creator=n.textContent;break;case"keywords":t.keywords=n.textContent;break;case"language":t.language=n.textContent;break;case"lastModifiedBy":t.lastModifiedBy=n.textContent;break;case"revision":n.textContent&&(t.revision=parseInt(n.textContent));break}return t}class $2 extends Fr{parseXml(e){this.props=z2(e,this._package.xmlParser)}}class j2{}function q2(r,e){var t=new j2,n=e.element(r,"themeElements");for(let i of e.elements(n))switch(i.localName){case"clrScheme":t.colorScheme=eT(i,e);break;case"fontScheme":t.fontScheme=tT(i,e);break}return t}function eT(r,e){var t={name:e.attr(r,"name"),colors:{}};for(let o of e.elements(r)){var n=e.element(o,"srgbClr"),i=e.element(o,"sysClr");n?t.colors[o.localName]=e.attr(n,"val"):i&&(t.colors[o.localName]=e.attr(i,"lastClr"))}return t}function tT(r,e){var t={name:e.attr(r,"name")};for(let n of e.elements(r))switch(n.localName){case"majorFont":t.majorFont=xf(n,e);break;case"minorFont":t.minorFont=xf(n,e);break}return t}function xf(r,e){return{latinTypeface:e.elementAttr(r,"latin","typeface"),eaTypeface:e.elementAttr(r,"ea","typeface"),csTypeface:e.elementAttr(r,"cs","typeface")}}class rT extends Fr{constructor(e,t){super(e,t)}parseXml(e){this.theme=q2(e,this._package.xmlParser)}}class Dp{}class nT extends Dp{constructor(){super(...arguments),this.type=Re.Footnote}}class iT extends Dp{constructor(){super(...arguments),this.type=Re.Endnote}}class Xp extends Fr{constructor(e,t,n){super(e,t),this._documentParser=n}}class oT extends Xp{constructor(e,t,n){super(e,t,n)}parseXml(e){this.notes=this._documentParser.parseNotes(e,"footnote",nT)}}class aT extends Xp{constructor(e,t,n){super(e,t,n)}parseXml(e){this.notes=this._documentParser.parseNotes(e,"endnote",iT)}}function sT(r,e){var t={};for(let n of e.elements(r))switch(n.localName){case"defaultTabStop":t.defaultTabStop=e.lengthAttr(n,"val");break;case"footnotePr":t.footnoteProps=bf(n,e);break;case"endnotePr":t.endnoteProps=bf(n,e);break;case"autoHyphenation":t.autoHyphenation=e.boolAttr(n,"val");break}return t}function bf(r,e){var t={defaultNoteIds:[]};for(let n of e.elements(r))switch(n.localName){case"numFmt":t.nummeringFormat=e.attr(n,"val");break;case"footnote":case"endnote":t.defaultNoteIds.push(e.attr(n,"id"));break}return t}class lT extends Fr{constructor(e,t){super(e,t)}parseXml(e){this.settings=sT(e,this._package.xmlParser)}}function cT(r,e){return e.elements(r,"property").map(t=>{const n=t.firstChild;return{formatId:e.attr(t,"fmtid"),name:e.attr(t,"name"),type:n.nodeName,value:n.textContent}})}class uT extends Fr{parseXml(e){this.props=cT(e,this._package.xmlParser)}}class hT extends Fr{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.comments=this._documentParser.parseComments(e),this.commentMap=In(this.comments,t=>t.id)}}class fT extends Fr{constructor(e,t){super(e,t),this.comments=[]}parseXml(e){const t=this._package.xmlParser;for(let n of t.elements(e,"commentEx"))this.comments.push({paraId:t.attr(n,"paraId"),paraIdParent:t.attr(n,"paraIdParent"),done:t.boolAttr(n,"done")});this.commentMap=In(this.comments,n=>n.paraId)}}const dT=[{type:At.OfficeDocument,target:"word/document.xml"},{type:At.ExtendedProperties,target:"docProps/app.xml"},{type:At.CoreProperties,target:"docProps/core.xml"},{type:At.CustomProperties,target:"docProps/custom.xml"}];class Kc{constructor(){this.parts=[],this.partsMap={}}static async load(e,t,n){var i=new Kc;return i._options=n,i._parser=t,i._package=await Zc.load(e,n),i.rels=await i._package.loadRelationships(),await Promise.all(dT.map(o=>{var s;const a=(s=i.rels.find(l=>l.type===o.type))!=null?s:o;return i.loadRelationshipPart(a.target,a.type)})),i}save(e="blob"){return this._package.save(e)}async loadRelationshipPart(e,t){var i;if(this.partsMap[e])return this.partsMap[e];if(!this._package.get(e))return null;let n=null;switch(t){case At.OfficeDocument:this.documentPart=n=new I2(this._package,e,this._parser);break;case At.FontTable:this.fontTablePart=n=new O2(this._package,e);break;case At.Numbering:this.numberingPart=n=new k2(this._package,e,this._parser);break;case At.Styles:this.stylesPart=n=new Z2(this._package,e,this._parser);break;case At.Theme:this.themePart=n=new rT(this._package,e);break;case At.Footnotes:this.footnotesPart=n=new oT(this._package,e,this._parser);break;case At.Endnotes:this.endnotesPart=n=new aT(this._package,e,this._parser);break;case At.Footer:n=new B2(this._package,e,this._parser);break;case At.Header:n=new H2(this._package,e,this._parser);break;case At.CoreProperties:this.corePropsPart=n=new $2(this._package,e);break;case At.ExtendedProperties:this.extendedPropsPart=n=new J2(this._package,e);break;case At.CustomProperties:n=new uT(this._package,e);break;case At.Settings:this.settingsPart=n=new lT(this._package,e);break;case At.Comments:this.commentsPart=n=new hT(this._package,e,this._parser);break;case At.CommentsExtended:this.commentsExtendedPart=n=new fT(this._package,e);break}if(n==null)return Promise.resolve(null);if(this.partsMap[e]=n,this.parts.push(n),await n.load(),((i=n.rels)==null?void 0:i.length)>0){const[o]=Oa(n.path);await Promise.all(n.rels.map(a=>this.loadRelationshipPart(Rl(a.target,o),a.type)))}return n}async loadDocumentImage(e,t){const n=await this.loadResource(t!=null?t:this.documentPart,e,"blob");return this.blobToURL(n)}async loadNumberingImage(e){const t=await this.loadResource(this.numberingPart,e,"blob");return this.blobToURL(t)}async loadFont(e,t){const n=await this.loadResource(this.fontTablePart,e,"uint8array");return n&&this.blobToURL(new Blob([pT(n,t)]))}blobToURL(e){return e?this._options.useBase64URL?P2(e):URL.createObjectURL(e):null}findPartByRelId(e,t=null){var o;var n=((o=t.rels)!=null?o:this.rels).find(a=>a.id==e);const i=t?Oa(t.path)[0]:"";return n?this.partsMap[Rl(n.target,i)]:null}getPathById(e,t){const n=e.rels.find(o=>o.id==t),[i]=Oa(e.path);return n?Rl(n.target,i):null}loadResource(e,t,n){const i=this.getPathById(e,t);return i?this._package.load(i,n):Promise.resolve(null)}}function pT(r,e){const n=e.replace(/{|}|-/g,""),i=new Array(16);for(let o=0;o<16;o++)i[16-o-1]=parseInt(n.substr(o*2,2),16);for(let o=0;o<32;o++)r[o]=r[o]^i[o%16];return r}function gT(r,e){return{type:Re.BookmarkStart,id:e.attr(r,"id"),name:e.attr(r,"name"),colFirst:e.intAttr(r,"colFirst"),colLast:e.intAttr(r,"colLast")}}function RT(r,e){return{type:Re.BookmarkEnd,id:e.attr(r,"id")}}class mT extends oi{constructor(){super(...arguments),this.type=Re.VmlElement,this.attrs={}}}function Up(r,e){var t=new mT;switch(r.localName){case"rect":t.tagName="rect",Object.assign(t.attrs,{width:"100%",height:"100%"});break;case"oval":t.tagName="ellipse",Object.assign(t.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":t.tagName="line";break;case"shape":t.tagName="g";break;case"textbox":t.tagName="foreignObject",Object.assign(t.attrs,{width:"100%",height:"100%"});break;default:return null}for(const n of he.attrs(r))switch(n.localName){case"style":t.cssStyleText=n.value;break;case"fillcolor":t.attrs.fill=n.value;break;case"from":const[i,o]=Of(n.value);Object.assign(t.attrs,{x1:i,y1:o});break;case"to":const[a,s]=Of(n.value);Object.assign(t.attrs,{x2:a,y2:s});break}for(const n of he.elements(r))switch(n.localName){case"stroke":Object.assign(t.attrs,vT(n));break;case"fill":Object.assign(t.attrs,yT());break;case"imagedata":t.tagName="image",Object.assign(t.attrs,{width:"100%",height:"100%"}),t.imageHref={id:he.attr(n,"id"),title:he.attr(n,"title")};break;case"txbxContent":t.children.push(...e.parseBodyElements(n));break;default:const i=Up(n,e);i&&t.children.push(i);break}return t}function vT(r){var e;return{stroke:he.attr(r,"color"),"stroke-width":(e=he.lengthAttr(r,"weight",Dt.Emu))!=null?e:"1px"}}function yT(r){return{}}function Of(r){return r.split(",")}class wT extends oi{constructor(){super(...arguments),this.type=Re.Comment}}class ST extends oi{constructor(e){super(),this.id=e,this.type=Re.CommentReference}}class xT extends oi{constructor(e){super(),this.id=e,this.type=Re.CommentRangeStart}}class bT extends oi{constructor(e){super(),this.id=e,this.type=Re.CommentRangeEnd}}var Ta={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"};const OT=[],Tf={oMath:Re.MmlMath,oMathPara:Re.MmlMathParagraph,f:Re.MmlFraction,func:Re.MmlFunction,fName:Re.MmlFunctionName,num:Re.MmlNumerator,den:Re.MmlDenominator,rad:Re.MmlRadical,deg:Re.MmlDegree,e:Re.MmlBase,sSup:Re.MmlSuperscript,sSub:Re.MmlSubscript,sPre:Re.MmlPreSubSuper,sup:Re.MmlSuperArgument,sub:Re.MmlSubArgument,d:Re.MmlDelimiter,nary:Re.MmlNary,eqArr:Re.MmlEquationArray,lim:Re.MmlLimit,limLow:Re.MmlLimitLower,m:Re.MmlMatrix,mr:Re.MmlMatrixRow,box:Re.MmlBox,bar:Re.MmlBar,groupChr:Re.MmlGroupChar};class TT{constructor(e){this.options={ignoreWidth:!1,debug:!1,...e}}parseNotes(e,t,n){var i=[];for(let o of he.elements(e,t)){const a=new n;a.id=he.attr(o,"id"),a.noteType=he.attr(o,"type"),a.children=this.parseBodyElements(o),i.push(a)}return i}parseComments(e){var t=[];for(let n of he.elements(e,"comment")){const i=new wT;i.id=he.attr(n,"id"),i.author=he.attr(n,"author"),i.initials=he.attr(n,"initials"),i.date=he.attr(n,"date"),i.children=this.parseBodyElements(n),t.push(i)}return t}parseDocumentFile(e){var t=he.element(e,"body"),n=he.element(e,"background"),i=he.element(t,"sectPr");return{type:Re.Document,children:this.parseBodyElements(t),props:i?Mp(i,he):{},cssStyle:n?this.parseBackground(n):{}}}parseBackground(e){var t={},n=Et.colorAttr(e,"color");return n&&(t["background-color"]=n),t}parseBodyElements(e){var t=[];for(let n of he.elements(e))switch(n.localName){case"p":t.push(this.parseParagraph(n));break;case"tbl":t.push(this.parseTable(n));break;case"sdt":t.push(...this.parseSdt(n,i=>this.parseBodyElements(i)));break}return t}parseStylesFile(e){var t=[];return Et.foreach(e,n=>{switch(n.localName){case"style":t.push(this.parseStyle(n));break;case"docDefaults":t.push(this.parseDefaultStyles(n));break}}),t}parseDefaultStyles(e){var t={id:null,name:null,target:null,basedOn:null,styles:[]};return Et.foreach(e,n=>{switch(n.localName){case"rPrDefault":var i=he.element(n,"rPr");i&&t.styles.push({target:"span",values:this.parseDefaultProperties(i,{})});break;case"pPrDefault":var o=he.element(n,"pPr");o&&t.styles.push({target:"p",values:this.parseDefaultProperties(o,{})});break}}),t}parseStyle(e){var t={id:he.attr(e,"styleId"),isDefault:he.boolAttr(e,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(he.attr(e,"type")){case"paragraph":t.target="p";break;case"table":t.target="table";break;case"character":t.target="span";break}return Et.foreach(e,n=>{switch(n.localName){case"basedOn":t.basedOn=he.attr(n,"val");break;case"name":t.name=he.attr(n,"val");break;case"link":t.linked=he.attr(n,"val");break;case"next":t.next=he.attr(n,"val");break;case"aliases":t.aliases=he.attr(n,"val").split(",");break;case"pPr":t.styles.push({target:"p",values:this.parseDefaultProperties(n,{})}),t.paragraphProps=Lp(n,he);break;case"rPr":t.styles.push({target:"span",values:this.parseDefaultProperties(n,{})}),t.runProps=Qc(n,he);break;case"tblPr":case"tcPr":t.styles.push({target:"td",values:this.parseDefaultProperties(n,{})});break;case"tblStylePr":for(let i of this.parseTableStyle(n))t.styles.push(i);break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:this.options.debug&&console.warn(`DOCX: Unknown style element: ${n.localName}`)}}),t}parseTableStyle(e){var t=[],n=he.attr(e,"type"),i="",o="";switch(n){case"firstRow":o=".first-row",i="tr.first-row td";break;case"lastRow":o=".last-row",i="tr.last-row td";break;case"firstCol":o=".first-col",i="td.first-col";break;case"lastCol":o=".last-col",i="td.last-col";break;case"band1Vert":o=":not(.no-vband)",i="td.odd-col";break;case"band2Vert":o=":not(.no-vband)",i="td.even-col";break;case"band1Horz":o=":not(.no-hband)",i="tr.odd-row";break;case"band2Horz":o=":not(.no-hband)",i="tr.even-row";break;default:return[]}return Et.foreach(e,a=>{switch(a.localName){case"pPr":t.push({target:`${i} p`,mod:o,values:this.parseDefaultProperties(a,{})});break;case"rPr":t.push({target:`${i} span`,mod:o,values:this.parseDefaultProperties(a,{})});break;case"tblPr":case"tcPr":t.push({target:i,mod:o,values:this.parseDefaultProperties(a,{})});break}}),t}parseNumberingFile(e){var t=[],n={},i=[];return Et.foreach(e,o=>{switch(o.localName){case"abstractNum":this.parseAbstractNumbering(o,i).forEach(l=>t.push(l));break;case"numPicBullet":i.push(this.parseNumberingPicBullet(o));break;case"num":var a=he.attr(o,"numId"),s=he.elementAttr(o,"abstractNumId","val");n[s]=a;break}}),t.forEach(o=>o.id=n[o.id]),t}parseNumberingPicBullet(e){var t=he.element(e,"pict"),n=t&&he.element(t,"shape"),i=n&&he.element(n,"imagedata");return i?{id:he.intAttr(e,"numPicBulletId"),src:he.attr(i,"id"),style:he.attr(n,"style")}:null}parseAbstractNumbering(e,t){var n=[],i=he.attr(e,"abstractNumId");return Et.foreach(e,o=>{switch(o.localName){case"lvl":n.push(this.parseNumberingLevel(i,o,t));break}}),n}parseNumberingLevel(e,t,n){var i={id:e,level:he.intAttr(t,"ilvl"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return Et.foreach(t,o=>{switch(o.localName){case"start":i.start=he.intAttr(o,"val");break;case"pPr":this.parseDefaultProperties(o,i.pStyle);break;case"rPr":this.parseDefaultProperties(o,i.rStyle);break;case"lvlPicBulletId":var a=he.intAttr(o,"val");i.bullet=n.find(s=>(s==null?void 0:s.id)==a);break;case"lvlText":i.levelText=he.attr(o,"val");break;case"pStyle":i.pStyleName=he.attr(o,"val");break;case"numFmt":i.format=he.attr(o,"val");break;case"suff":i.suff=he.attr(o,"val");break}}),i}parseSdt(e,t){const n=he.element(e,"sdtContent");return n?t(n):[]}parseInserted(e,t){var n,i;return{type:Re.Inserted,children:(i=(n=t(e))==null?void 0:n.children)!=null?i:[]}}parseDeleted(e,t){var n,i;return{type:Re.Deleted,children:(i=(n=t(e))==null?void 0:n.children)!=null?i:[]}}parseParagraph(e){var t={type:Re.Paragraph,children:[]};for(let n of he.elements(e))switch(n.localName){case"pPr":this.parseParagraphProperties(n,t);break;case"r":t.children.push(this.parseRun(n,t));break;case"hyperlink":t.children.push(this.parseHyperlink(n,t));break;case"smartTag":t.children.push(this.parseSmartTag(n,t));break;case"bookmarkStart":t.children.push(gT(n,he));break;case"bookmarkEnd":t.children.push(RT(n,he));break;case"commentRangeStart":t.children.push(new xT(he.attr(n,"id")));break;case"commentRangeEnd":t.children.push(new bT(he.attr(n,"id")));break;case"oMath":case"oMathPara":t.children.push(this.parseMathElement(n));break;case"sdt":t.children.push(...this.parseSdt(n,i=>this.parseParagraph(i).children));break;case"ins":t.children.push(this.parseInserted(n,i=>this.parseParagraph(i)));break;case"del":t.children.push(this.parseDeleted(n,i=>this.parseParagraph(i)));break}return t}parseParagraphProperties(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,n=>{if(Fp(n,t,he))return!0;switch(n.localName){case"pStyle":t.styleName=he.attr(n,"val");break;case"cnfStyle":t.className=yt.classNameOfCnfStyle(n);break;case"framePr":this.parseFrame(n,t);break;case"rPr":break;default:return!1}return!0})}parseFrame(e,t){var n=he.attr(e,"dropCap");n=="drop"&&(t.cssStyle.float="left")}parseHyperlink(e,t){var n={type:Re.Hyperlink,parent:t,children:[]},i=he.attr(e,"anchor"),o=he.attr(e,"id");return i&&(n.href="#"+i),o&&(n.id=o),Et.foreach(e,a=>{switch(a.localName){case"r":n.children.push(this.parseRun(a,n));break}}),n}parseSmartTag(e,t){var n={type:Re.SmartTag,parent:t,children:[]},i=he.attr(e,"uri"),o=he.attr(e,"element");return i&&(n.uri=i),o&&(n.element=o),Et.foreach(e,a=>{switch(a.localName){case"r":n.children.push(this.parseRun(a,n));break}}),n}parseRun(e,t){var n={type:Re.Run,parent:t,children:[]};return Et.foreach(e,i=>{switch(i=this.checkAlternateContent(i),i.localName){case"t":n.children.push({type:Re.Text,text:i.textContent});break;case"delText":n.children.push({type:Re.DeletedText,text:i.textContent});break;case"commentReference":n.children.push(new ST(he.attr(i,"id")));break;case"fldSimple":n.children.push({type:Re.SimpleField,instruction:he.attr(i,"instr"),lock:he.boolAttr(i,"lock",!1),dirty:he.boolAttr(i,"dirty",!1)});break;case"instrText":n.fieldRun=!0,n.children.push({type:Re.Instruction,text:i.textContent});break;case"fldChar":n.fieldRun=!0,n.children.push({type:Re.ComplexField,charType:he.attr(i,"fldCharType"),lock:he.boolAttr(i,"lock",!1),dirty:he.boolAttr(i,"dirty",!1)});break;case"noBreakHyphen":n.children.push({type:Re.NoBreakHyphen});break;case"br":n.children.push({type:Re.Break,break:he.attr(i,"type")||"textWrapping"});break;case"lastRenderedPageBreak":n.children.push({type:Re.Break,break:"lastRenderedPageBreak"});break;case"sym":n.children.push({type:Re.Symbol,font:he.attr(i,"font"),char:he.attr(i,"char")});break;case"tab":n.children.push({type:Re.Tab});break;case"footnoteReference":n.children.push({type:Re.FootnoteReference,id:he.attr(i,"id")});break;case"endnoteReference":n.children.push({type:Re.EndnoteReference,id:he.attr(i,"id")});break;case"drawing":let o=this.parseDrawing(i);o&&(n.children=[o]);break;case"pict":n.children.push(this.parseVmlPicture(i));break;case"rPr":this.parseRunProperties(i,n);break}}),n}parseMathElement(e){const t=`${e.localName}Pr`,n={type:Tf[e.localName],children:[]};for(const o of he.elements(e))if(Tf[o.localName])n.children.push(this.parseMathElement(o));else if(o.localName=="r"){var i=this.parseRun(o);i.type=Re.MmlRun,n.children.push(i)}else o.localName==t&&(n.props=this.parseMathProperies(o));return n}parseMathProperies(e){const t={};for(const n of he.elements(e))switch(n.localName){case"chr":t.char=he.attr(n,"val");break;case"vertJc":t.verticalJustification=he.attr(n,"val");break;case"pos":t.position=he.attr(n,"val");break;case"degHide":t.hideDegree=he.boolAttr(n,"val");break;case"begChr":t.beginChar=he.attr(n,"val");break;case"endChr":t.endChar=he.attr(n,"val");break}return t}parseRunProperties(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,n=>{switch(n.localName){case"rStyle":t.styleName=he.attr(n,"val");break;case"vertAlign":t.verticalAlign=yt.valueOfVertAlign(n,!0);break;default:return!1}return!0})}parseVmlPicture(e){const t={type:Re.VmlPicture,children:[]};for(const n of he.elements(e)){const i=Up(n,this);i&&t.children.push(i)}return t}checkAlternateContent(e){var o;if(e.localName!="AlternateContent")return e;var t=he.element(e,"Choice");if(t){var n=he.attr(t,"Requires"),i=e.lookupNamespaceURI(n);if(OT.includes(i))return t.firstElementChild}return(o=he.element(e,"Fallback"))==null?void 0:o.firstElementChild}parseDrawing(e){for(var t of he.elements(e))switch(t.localName){case"inline":case"anchor":return this.parseDrawingWrapper(t)}}parseDrawingWrapper(e){var d;var t={type:Re.Drawing,children:[],cssStyle:{}},n=e.localName=="anchor";let i=null,o=he.boolAttr(e,"simplePos");he.boolAttr(e,"behindDoc");let a={relative:"page",align:"left",offset:"0"},s={relative:"page",align:"top",offset:"0"};for(var l of he.elements(e))switch(l.localName){case"simplePos":o&&(a.offset=he.lengthAttr(l,"x",Dt.Emu),s.offset=he.lengthAttr(l,"y",Dt.Emu));break;case"extent":t.cssStyle.width=he.lengthAttr(l,"cx",Dt.Emu),t.cssStyle.height=he.lengthAttr(l,"cy",Dt.Emu);break;case"positionH":case"positionV":if(!o){let f=l.localName=="positionH"?a:s;var c=he.element(l,"align"),u=he.element(l,"posOffset");f.relative=(d=he.attr(l,"relativeFrom"))!=null?d:f.relative,c&&(f.align=c.textContent),u&&(f.offset=Et.sizeValue(u,Dt.Emu))}break;case"wrapTopAndBottom":i="wrapTopAndBottom";break;case"wrapNone":i="wrapNone";break;case"graphic":var h=this.parseGraphic(l);h&&t.children.push(h);break}return i=="wrapTopAndBottom"?(t.cssStyle.display="block",a.align&&(t.cssStyle["text-align"]=a.align,t.cssStyle.width="100%")):i=="wrapNone"?(t.cssStyle.display="block",t.cssStyle.position="relative",t.cssStyle.width="0px",t.cssStyle.height="0px",a.offset&&(t.cssStyle.left=a.offset),s.offset&&(t.cssStyle.top=s.offset)):n&&(a.align=="left"||a.align=="right")&&(t.cssStyle.float=a.align),t}parseGraphic(e){var t=he.element(e,"graphicData");for(let n of he.elements(t))switch(n.localName){case"pic":return this.parsePicture(n)}return null}parsePicture(e){var t={type:Re.Image,src:"",cssStyle:{}},n=he.element(e,"blipFill"),i=he.element(n,"blip");t.src=he.attr(i,"embed");var o=he.element(e,"spPr"),a=he.element(o,"xfrm");t.cssStyle.position="relative";for(var s of he.elements(a))switch(s.localName){case"ext":t.cssStyle.width=he.lengthAttr(s,"cx",Dt.Emu),t.cssStyle.height=he.lengthAttr(s,"cy",Dt.Emu);break;case"off":t.cssStyle.left=he.lengthAttr(s,"x",Dt.Emu),t.cssStyle.top=he.lengthAttr(s,"y",Dt.Emu);break}return t}parseTable(e){var t={type:Re.Table,children:[]};return Et.foreach(e,n=>{switch(n.localName){case"tr":t.children.push(this.parseTableRow(n));break;case"tblGrid":t.columns=this.parseTableColumns(n);break;case"tblPr":this.parseTableProperties(n,t);break}}),t}parseTableColumns(e){var t=[];return Et.foreach(e,n=>{switch(n.localName){case"gridCol":t.push({width:he.lengthAttr(n,"w")});break}}),t}parseTableProperties(e,t){switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(e,t.cssStyle,t.cellStyle,n=>{switch(n.localName){case"tblStyle":t.styleName=he.attr(n,"val");break;case"tblLook":t.className=yt.classNameOftblLook(n);break;case"tblpPr":this.parseTablePosition(n,t);break;case"tblStyleColBandSize":t.colBandSize=he.intAttr(n,"val");break;case"tblStyleRowBandSize":t.rowBandSize=he.intAttr(n,"val");break;default:return!1}return!0}),t.cssStyle["text-align"]){case"center":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto",t.cssStyle["margin-right"]="auto";break;case"right":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto";break}}parseTablePosition(e,t){var n=he.lengthAttr(e,"topFromText"),i=he.lengthAttr(e,"bottomFromText"),o=he.lengthAttr(e,"rightFromText"),a=he.lengthAttr(e,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=yt.addSize(t.cssStyle["margin-bottom"],i),t.cssStyle["margin-left"]=yt.addSize(t.cssStyle["margin-left"],a),t.cssStyle["margin-right"]=yt.addSize(t.cssStyle["margin-right"],o),t.cssStyle["margin-top"]=yt.addSize(t.cssStyle["margin-top"],n)}parseTableRow(e){var t={type:Re.Row,children:[]};return Et.foreach(e,n=>{switch(n.localName){case"tc":t.children.push(this.parseTableCell(n));break;case"trPr":this.parseTableRowProperties(n,t);break}}),t}parseTableRowProperties(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,n=>{switch(n.localName){case"cnfStyle":t.className=yt.classNameOfCnfStyle(n);break;case"tblHeader":t.isHeader=he.boolAttr(n,"val");break;default:return!1}return!0})}parseTableCell(e){var t={type:Re.Cell,children:[]};return Et.foreach(e,n=>{switch(n.localName){case"tbl":t.children.push(this.parseTable(n));break;case"p":t.children.push(this.parseParagraph(n));break;case"tcPr":this.parseTableCellProperties(n,t);break}}),t}parseTableCellProperties(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,n=>{var i;switch(n.localName){case"gridSpan":t.span=he.intAttr(n,"val",null);break;case"vMerge":t.verticalMerge=(i=he.attr(n,"val"))!=null?i:"continue";break;case"cnfStyle":t.className=yt.classNameOfCnfStyle(n);break;default:return!1}return!0})}parseDefaultProperties(e,t=null,n=null,i=null){return t=t||{},Et.foreach(e,o=>{if(!(i!=null&&i(o)))switch(o.localName){case"jc":t["text-align"]=yt.valueOfJc(o);break;case"textAlignment":t["vertical-align"]=yt.valueOfTextAlignment(o);break;case"color":t.color=Et.colorAttr(o,"val",null,Ta.color);break;case"sz":t["font-size"]=t["min-height"]=he.lengthAttr(o,"val",Dt.FontSize);break;case"shd":t["background-color"]=Et.colorAttr(o,"fill",null,Ta.shd);break;case"highlight":t["background-color"]=Et.colorAttr(o,"val",null,Ta.highlight);break;case"vertAlign":break;case"position":t.verticalAlign=he.lengthAttr(o,"val",Dt.FontSize);break;case"tcW":if(this.options.ignoreWidth)break;case"tblW":t.width=yt.valueOfSize(o,"w");break;case"trHeight":this.parseTrHeight(o,t);break;case"strike":t["text-decoration"]=he.boolAttr(o,"val",!0)?"line-through":"none";break;case"b":t["font-weight"]=he.boolAttr(o,"val",!0)?"bold":"normal";break;case"i":t["font-style"]=he.boolAttr(o,"val",!0)?"italic":"normal";break;case"caps":t["text-transform"]=he.boolAttr(o,"val",!0)?"uppercase":"none";break;case"smallCaps":t["font-variant"]=he.boolAttr(o,"val",!0)?"small-caps":"none";break;case"u":this.parseUnderline(o,t);break;case"ind":case"tblInd":this.parseIndentation(o,t);break;case"rFonts":this.parseFont(o,t);break;case"tblBorders":this.parseBorderProperties(o,n||t);break;case"tblCellSpacing":t["border-spacing"]=yt.valueOfMargin(o),t["border-collapse"]="separate";break;case"pBdr":this.parseBorderProperties(o,t);break;case"bdr":t.border=yt.valueOfBorder(o);break;case"tcBorders":this.parseBorderProperties(o,t);break;case"vanish":he.boolAttr(o,"val",!0)&&(t.display="none");break;case"kern":break;case"noWrap":break;case"tblCellMar":case"tcMar":this.parseMarginProperties(o,n||t);break;case"tblLayout":t["table-layout"]=yt.valueOfTblLayout(o);break;case"vAlign":t["vertical-align"]=yt.valueOfTextAlignment(o);break;case"spacing":e.localName=="pPr"&&this.parseSpacing(o,t);break;case"wordWrap":he.boolAttr(o,"val")&&(t["overflow-wrap"]="break-word");break;case"suppressAutoHyphens":t.hyphens=he.boolAttr(o,"val",!0)?"none":"auto";break;case"lang":t.$lang=he.attr(o,"val");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:this.options.debug&&console.warn(`DOCX: Unknown document element: ${e.localName}.${o.localName}`);break}}),t}parseUnderline(e,t){var n=he.attr(e,"val");if(n!=null){switch(n){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":t["text-decoration"]="underline dashed";break;case"dotted":case"dottedHeavy":t["text-decoration"]="underline dotted";break;case"double":t["text-decoration"]="underline double";break;case"single":case"thick":t["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":t["text-decoration"]="underline wavy";break;case"words":t["text-decoration"]="underline";break;case"none":t["text-decoration"]="none";break}var i=Et.colorAttr(e,"color");i&&(t["text-decoration-color"]=i)}}parseFont(e,t){var n=he.attr(e,"ascii"),i=yt.themeValue(e,"asciiTheme"),o=[n,i].filter(a=>a).join(", ");o.length>0&&(t["font-family"]=o)}parseIndentation(e,t){var n=he.lengthAttr(e,"firstLine"),i=he.lengthAttr(e,"hanging"),o=he.lengthAttr(e,"left"),a=he.lengthAttr(e,"start"),s=he.lengthAttr(e,"right"),l=he.lengthAttr(e,"end");n&&(t["text-indent"]=n),i&&(t["text-indent"]=`-${i}`),(o||a)&&(t["margin-left"]=o||a),(s||l)&&(t["margin-right"]=s||l)}parseSpacing(e,t){var n=he.lengthAttr(e,"before"),i=he.lengthAttr(e,"after"),o=he.intAttr(e,"line",null),a=he.attr(e,"lineRule");if(n&&(t["margin-top"]=n),i&&(t["margin-bottom"]=i),o!==null)switch(a){case"auto":t["line-height"]=`${(o/240).toFixed(2)}`;break;case"atLeast":t["line-height"]=`calc(100% + ${o/20}pt)`;break;default:t["line-height"]=t["min-height"]=`${o/20}pt`;break}}parseMarginProperties(e,t){Et.foreach(e,n=>{switch(n.localName){case"left":t["padding-left"]=yt.valueOfMargin(n);break;case"right":t["padding-right"]=yt.valueOfMargin(n);break;case"top":t["padding-top"]=yt.valueOfMargin(n);break;case"bottom":t["padding-bottom"]=yt.valueOfMargin(n);break}})}parseTrHeight(e,t){switch(he.attr(e,"hRule")){case"exact":t.height=he.lengthAttr(e,"val");break;case"atLeast":default:t.height=he.lengthAttr(e,"val");break}}parseBorderProperties(e,t){Et.foreach(e,n=>{switch(n.localName){case"start":case"left":t["border-left"]=yt.valueOfBorder(n);break;case"end":case"right":t["border-right"]=yt.valueOfBorder(n);break;case"top":t["border-top"]=yt.valueOfBorder(n);break;case"bottom":t["border-bottom"]=yt.valueOfBorder(n);break}})}}const PT=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"];class Et{static foreach(e,t){for(var n=0;n<e.childNodes.length;n++){let i=e.childNodes[n];i.nodeType==Node.ELEMENT_NODE&&t(i)}}static colorAttr(e,t,n=null,i="black"){var o=he.attr(e,t);if(o)return o=="auto"?i:PT.includes(o)?o:`#${o}`;var a=he.attr(e,"themeColor");return a?`var(--docx-${a}-color)`:n}static sizeValue(e,t=Dt.Dxa){return _p(e.textContent,t)}}class yt{static themeValue(e,t){var n=he.attr(e,t);return n?`var(--docx-${n}-font)`:null}static valueOfSize(e,t){var n=Dt.Dxa;switch(he.attr(e,"type")){case"dxa":break;case"pct":n=Dt.Percent;break;case"auto":return"auto"}return he.lengthAttr(e,t,n)}static valueOfMargin(e){return he.lengthAttr(e,"w")}static valueOfBorder(e){var t=he.attr(e,"val");if(t=="nil")return"none";var n=Et.colorAttr(e,"color"),i=he.lengthAttr(e,"sz",Dt.Border);return`${i} solid ${n=="auto"?Ta.borderColor:n}`}static valueOfTblLayout(e){var t=he.attr(e,"val");return t=="fixed"?"fixed":"auto"}static classNameOfCnfStyle(e){const t=he.attr(e,"val");return["first-row","last-row","first-col","last-col","odd-col","even-col","odd-row","even-row","ne-cell","nw-cell","se-cell","sw-cell"].filter((i,o)=>t[o]=="1").join(" ")}static valueOfJc(e){var t=he.attr(e,"val");switch(t){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return t}static valueOfVertAlign(e,t=!1){var n=he.attr(e,"val");switch(n){case"subscript":return"sub";case"superscript":return t?"sup":"super"}return t?null:n}static valueOfTextAlignment(e){var t=he.attr(e,"val");switch(t){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return t}static addSize(e,t){return e==null?t:t==null?e:`calc(${e} + ${t})`}static classNameOftblLook(e){const t=he.hexAttr(e,"val",0);let n="";return(he.boolAttr(e,"firstRow")||t&32)&&(n+=" first-row"),(he.boolAttr(e,"lastRow")||t&64)&&(n+=" last-row"),(he.boolAttr(e,"firstColumn")||t&128)&&(n+=" first-col"),(he.boolAttr(e,"lastColumn")||t&256)&&(n+=" last-col"),(he.boolAttr(e,"noHBand")||t&512)&&(n+=" no-hband"),(he.boolAttr(e,"noVBand")||t&1024)&&(n+=" no-vband"),n.trim()}}const Pf={pos:0,leader:"none",style:"left"},ET=50;function _T(r=document.body){const e=document.createElement("div");e.style.width="100pt",r.appendChild(e);const t=100/e.offsetWidth;return r.removeChild(e),t}function IT(r,e,t,n=72/96){const i=r.closest("p"),o=r.getBoundingClientRect(),a=i.getBoundingClientRect(),s=getComputedStyle(i),l=(e==null?void 0:e.length)>0?e.map(m=>({pos:Ef(m.position),leader:m.leader,style:m.style})).sort((m,x)=>m.pos-x.pos):[Pf],c=l[l.length-1],u=a.width*n,h=Ef(t);let d=c.pos+h;if(d<u)for(;d<u&&l.length<ET;d+=h)l.push({...Pf,pos:d});const f=parseFloat(s.marginLeft),p=a.left+f,g=(o.left-p)*n,v=l.find(m=>m.style!="clear"&&m.pos>g);if(v==null)return;let R=1;if(v.style=="right"||v.style=="center"){const m=Array.from(i.querySelectorAll(`.${r.className}`)),x=m.indexOf(r)+1,T=document.createRange();T.setStart(r,1),x<m.length?T.setEndBefore(m[x]):T.setEndAfter(i);const P=v.style=="center"?.5:1,A=T.getBoundingClientRect(),D=A.left+P*A.width-(a.left-f);R=v.pos-D*n}else R=v.pos-g;switch(r.innerHTML=" ",r.style.textDecoration="inherit",r.style.wordSpacing=`${R.toFixed(0)}pt`,v.leader){case"dot":case"middleDot":r.style.textDecoration="underline",r.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":r.style.textDecoration="underline";break}}function Ef(r){return parseFloat(r)}const He={svg:"http://www.w3.org/2000/svg",mathML:"http://www.w3.org/1998/Math/MathML"};class NT{constructor(e){this.htmlDocument=e,this.className="docx",this.styleMap={},this.currentPart=null,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.usedHederFooterParts=[],this.currentTabs=[],this.tabsTimeout=0,this.commentMap={},this.tasks=[],this.postRenderTasks=[],this.createElement=Qn}render(e,t,n=null,i){var a;this.document=e,this.options=i,this.className=i.className,this.rootSelector=i.inWrapper?`.${this.className}-wrapper`:":root",this.styleMap=null,this.tasks=[],this.options.renderComments&&globalThis.Highlight&&(this.commentHighlight=new Highlight),n=n||t,If(n),If(t),co(n,"docxjs library predefined styles"),n.appendChild(this.renderDefaultStyle()),e.themePart&&(co(n,"docxjs document theme values"),this.renderTheme(e.themePart,n)),e.stylesPart!=null&&(this.styleMap=this.processStyles(e.stylesPart.styles),co(n,"docxjs document styles"),n.appendChild(this.renderStyles(e.stylesPart.styles))),e.numberingPart&&(this.prodessNumberings(e.numberingPart.domNumberings),co(n,"docxjs document numbering styles"),n.appendChild(this.renderNumbering(e.numberingPart.domNumberings,n))),e.footnotesPart&&(this.footnoteMap=In(e.footnotesPart.notes,s=>s.id)),e.endnotesPart&&(this.endnoteMap=In(e.endnotesPart.notes,s=>s.id)),e.settingsPart&&(this.defaultTabSize=(a=e.settingsPart.settings)==null?void 0:a.defaultTabStop),!i.ignoreFonts&&e.fontTablePart&&this.renderFontTable(e.fontTablePart,n);var o=this.renderSections(e.documentPart.body);this.options.inWrapper?t.appendChild(this.renderWrapper(o)):ec(t,o),this.commentHighlight&&i.renderComments&&CSS.highlights.set(`${this.className}-comments`,this.commentHighlight),this.refreshTabStops(),this.postRenderTasks.forEach(s=>s())}renderTheme(e,t){var s,l;const n={},i=(s=e.theme)==null?void 0:s.fontScheme;i&&(i.majorFont&&(n["--docx-majorHAnsi-font"]=i.majorFont.latinTypeface),i.minorFont&&(n["--docx-minorHAnsi-font"]=i.minorFont.latinTypeface));const o=(l=e.theme)==null?void 0:l.colorScheme;if(o)for(let[c,u]of Object.entries(o.colors))n[`--docx-${c}-color`]=`#${u}`;const a=this.styleToString(`.${this.className}`,n);t.appendChild(di(a))}renderFontTable(e,t){for(let n of e.fonts)for(let i of n.embedFontRefs)this.tasks.push(this.document.loadFont(i.id,i.key).then(o=>{const a={"font-family":n.name,src:`url(${o})`};(i.type=="bold"||i.type=="boldItalic")&&(a["font-weight"]="bold"),(i.type=="italic"||i.type=="boldItalic")&&(a["font-style"]="italic"),co(t,`docxjs ${n.name} font`);const s=this.styleToString("@font-face",a);t.appendChild(di(s)),this.refreshTabStops()}))}processStyleName(e){return e?`${this.className}_${T2(e)}`:this.className}processStyles(e){const t=In(e.filter(i=>i.id!=null),i=>i.id);for(const i of e.filter(o=>o.basedOn)){var n=t[i.basedOn];if(n){i.paragraphProps=Ya(i.paragraphProps,n.paragraphProps),i.runProps=Ya(i.runProps,n.runProps);for(const o of n.styles){const a=i.styles.find(s=>s.target==o.target);a?this.copyStyleProperties(o.values,a.values):i.styles.push({...o,values:{...o.values}})}}else this.options.debug&&console.warn(`Can't find base style ${i.basedOn}`)}for(let i of e)i.cssName=this.processStyleName(i.id);return t}prodessNumberings(e){var t;for(let n of e.filter(i=>i.pStyleName)){const i=this.findStyle(n.pStyleName);(t=i==null?void 0:i.paragraphProps)!=null&&t.numbering&&(i.paragraphProps.numbering.level=n.level)}}processElement(e){if(e.children)for(var t of e.children)t.parent=e,t.type==Re.Table?this.processTable(t):this.processElement(t)}processTable(e){for(var t of e.children)for(var n of t.children)n.cssStyle=this.copyStyleProperties(e.cellStyle,n.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(n)}copyStyleProperties(e,t,n=null){if(!e)return t;t==null&&(t={}),n==null&&(n=Object.getOwnPropertyNames(e));for(var i of n)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i]);return t}createPageElement(e,t){var n=this.createElement("section",{className:e});return t&&(t.pageMargins&&(n.style.paddingLeft=t.pageMargins.left,n.style.paddingRight=t.pageMargins.right,n.style.paddingTop=t.pageMargins.top,n.style.paddingBottom=t.pageMargins.bottom),t.pageSize&&(this.options.ignoreWidth||(n.style.width=t.pageSize.width),this.options.ignoreHeight||(n.style.minHeight=t.pageSize.height))),n}createSectionContent(e){var t=this.createElement("article");return e.columns&&e.columns.numberOfColumns&&(t.style.columnCount=`${e.columns.numberOfColumns}`,t.style.columnGap=e.columns.space,e.columns.separator&&(t.style.columnRule="1px solid black")),t}renderSections(e){const t=[];this.processElement(e);const n=this.splitBySection(e.children,e.props),i=this.groupByPageBreaks(n);let o=null;for(let s=0,l=i.length;s<l;s++){this.currentFootnoteIds=[];let u=i[s][0].sectProps;const h=this.createPageElement(this.className,u);this.renderStyleValues(e.cssStyle,h),this.options.renderHeaders&&this.renderHeaderFooter(u.headerRefs,u,t.length,o!=u,h);for(const d of i[s]){var a=this.createSectionContent(d.sectProps);this.renderElements(d.elements,a),h.appendChild(a),u=d.sectProps}this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,h),this.options.renderEndnotes&&s==l-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,h),this.options.renderFooters&&this.renderHeaderFooter(u.footerRefs,u,t.length,o!=u,h),t.push(h),o=u}return t}renderHeaderFooter(e,t,n,i,o){var l,c;if(!!e){var a=(c=(l=t.titlePage&&i?e.find(u=>u.type=="first"):null)!=null?l:n%2==1?e.find(u=>u.type=="even"):null)!=null?c:e.find(u=>u.type=="default"),s=a&&this.document.findPartByRelId(a.id,this.document.documentPart);if(s){this.currentPart=s,this.usedHederFooterParts.includes(s.path)||(this.processElement(s.rootElement),this.usedHederFooterParts.push(s.path));const[u]=this.renderElements([s.rootElement],o);t!=null&&t.pageMargins&&(s.rootElement.type===Re.Header?(u.style.marginTop=`calc(${t.pageMargins.header} - ${t.pageMargins.top})`,u.style.minHeight=`calc(${t.pageMargins.top} - ${t.pageMargins.header})`):s.rootElement.type===Re.Footer&&(u.style.marginBottom=`calc(${t.pageMargins.footer} - ${t.pageMargins.bottom})`,u.style.minHeight=`calc(${t.pageMargins.bottom} - ${t.pageMargins.footer})`)),this.currentPart=null}}}isPageBreakElement(e){return e.type!=Re.Break?!1:e.break=="lastRenderedPageBreak"?!this.options.ignoreLastRenderedPageBreak:e.break=="page"}isPageBreakSection(e,t){var n,i,o,a,s,l;return!e||!t?!1:((n=e.pageSize)==null?void 0:n.orientation)!=((i=t.pageSize)==null?void 0:i.orientation)||((o=e.pageSize)==null?void 0:o.width)!=((a=t.pageSize)==null?void 0:a.width)||((s=e.pageSize)==null?void 0:s.height)!=((l=t.pageSize)==null?void 0:l.height)}splitBySection(e,t){var h;var n={sectProps:null,elements:[],pageBreak:!1},i=[n];for(let d of e){if(d.type==Re.Paragraph){const f=this.findStyle(d.styleName);(h=f==null?void 0:f.paragraphProps)!=null&&h.pageBreakBefore&&(n.sectProps=o,n.pageBreak=!0,n={sectProps:null,elements:[],pageBreak:!1},i.push(n))}if(n.elements.push(d),d.type==Re.Paragraph){const f=d;var o=f.sectionProps,a=-1,s=-1;if(this.options.breakPages&&f.children&&(a=f.children.findIndex(p=>{var g,v;return s=(v=(g=p.children)==null?void 0:g.findIndex(this.isPageBreakElement.bind(this)))!=null?v:-1,s!=-1})),(o||a!=-1)&&(n.sectProps=o,n.pageBreak=a!=-1,n={sectProps:null,elements:[],pageBreak:!1},i.push(n)),a!=-1){let p=f.children[a],g=s<p.children.length-1;if(a<f.children.length-1||g){var l=d.children,c={...d,children:l.slice(a)};if(d.children=l.slice(0,a),n.elements.push(c),g){let v=p.children,R={...p,children:v.slice(0,s)};d.children.push(R),p.children=v.slice(s)}}}}}let u=null;for(let d=i.length-1;d>=0;d--)i[d].sectProps==null?i[d].sectProps=u!=null?u:t:u=i[d].sectProps;return i}groupByPageBreaks(e){let t=[],n;const i=[t];for(let o of e)t.push(o),(this.options.ignoreLastRenderedPageBreak||o.pageBreak||this.isPageBreakSection(n,o.sectProps))&&i.push(t=[]),n=o.sectProps;return i.filter(o=>o.length>0)}renderWrapper(e){return this.createElement("div",{className:`${this.className}-wrapper`},e)}renderDefaultStyle(){var e=this.className,t=`
|
|
.${e}-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; }
|
|
.${e}-wrapper>section.${e} { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }
|
|
.${e} { color: black; hyphens: auto; text-underline-position: from-font; }
|
|
section.${e} { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }
|
|
section.${e}>article { margin-bottom: auto; z-index: 1; }
|
|
section.${e}>footer { z-index: 1; }
|
|
.${e} table { border-collapse: collapse; }
|
|
.${e} table td, .${e} table th { vertical-align: top; }
|
|
.${e} p { margin: 0pt; min-height: 1em; }
|
|
.${e} span { white-space: pre-wrap; overflow-wrap: break-word; }
|
|
.${e} a { color: inherit; text-decoration: inherit; }
|
|
.${e} svg { fill: transparent; }
|
|
`;return this.options.renderComments&&(t+=`
|
|
.${e}-comment-ref { cursor: default; }
|
|
.${e}-comment-popover { display: none; z-index: 1000; padding: 0.5rem; background: white; position: absolute; box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.25); width: 30ch; }
|
|
.${e}-comment-ref:hover~.${e}-comment-popover { display: block; }
|
|
.${e}-comment-author,.${e}-comment-date { font-size: 0.875rem; color: #888; }
|
|
`),di(t)}renderNumbering(e,t){var n="",i=[];for(var o of e){var a=`p.${this.numberingClass(o.id,o.level)}`,s="none";if(o.bullet){let l=`--${this.className}-${o.bullet.src}`.toLowerCase();n+=this.styleToString(`${a}:before`,{content:"' '",display:"inline-block",background:`var(${l})`},o.bullet.style),this.tasks.push(this.document.loadNumberingImage(o.bullet.src).then(c=>{var u=`${this.rootSelector} { ${l}: url(${c}) }`;t.appendChild(di(u))}))}else if(o.levelText){let l=this.numberingCounter(o.id,o.level);const c=l+" "+(o.start-1);o.level>0&&(n+=this.styleToString(`p.${this.numberingClass(o.id,o.level-1)}`,{"counter-reset":c})),i.push(c),n+=this.styleToString(`${a}:before`,{content:this.levelTextToContent(o.levelText,o.suff,o.id,this.numFormatToCssValue(o.format)),"counter-increment":l,...o.rStyle})}else s=this.numFormatToCssValue(o.format);n+=this.styleToString(a,{display:"list-item","list-style-position":"inside","list-style-type":s,...o.pStyle})}return i.length>0&&(n+=this.styleToString(this.rootSelector,{"counter-reset":i.join(" ")})),di(n)}renderStyles(e){var l;var t="";const n=this.styleMap,i=In(e.filter(c=>c.isDefault),c=>c.target);for(const c of e){var o=c.styles;if(c.linked){var a=c.linked&&n[c.linked];a?o=o.concat(a.styles):this.options.debug&&console.warn(`Can't find linked style ${c.linked}`)}for(const u of o){var s=`${(l=c.target)!=null?l:""}.${c.cssName}`;c.target!=u.target&&(s+=` ${u.target}`),i[c.target]==c&&(s=`.${this.className} ${c.target}, `+s),t+=this.styleToString(s,u.values)}}return di(t)}renderNotes(e,t,n){var i=e.map(a=>t[a]).filter(a=>a);if(i.length>0){var o=this.createElement("ol",null,this.renderElements(i));n.appendChild(o)}}renderElement(e){switch(e.type){case Re.Paragraph:return this.renderParagraph(e);case Re.BookmarkStart:return this.renderBookmarkStart(e);case Re.BookmarkEnd:return null;case Re.Run:return this.renderRun(e);case Re.Table:return this.renderTable(e);case Re.Row:return this.renderTableRow(e);case Re.Cell:return this.renderTableCell(e);case Re.Hyperlink:return this.renderHyperlink(e);case Re.SmartTag:return this.renderSmartTag(e);case Re.Drawing:return this.renderDrawing(e);case Re.Image:return this.renderImage(e);case Re.Text:return this.renderText(e);case Re.Text:return this.renderText(e);case Re.DeletedText:return this.renderDeletedText(e);case Re.Tab:return this.renderTab(e);case Re.Symbol:return this.renderSymbol(e);case Re.Break:return this.renderBreak(e);case Re.Footer:return this.renderContainer(e,"footer");case Re.Header:return this.renderContainer(e,"header");case Re.Footnote:case Re.Endnote:return this.renderContainer(e,"li");case Re.FootnoteReference:return this.renderFootnoteReference(e);case Re.EndnoteReference:return this.renderEndnoteReference(e);case Re.NoBreakHyphen:return this.createElement("wbr");case Re.VmlPicture:return this.renderVmlPicture(e);case Re.VmlElement:return this.renderVmlElement(e);case Re.MmlMath:return this.renderContainerNS(e,He.mathML,"math",{xmlns:He.mathML});case Re.MmlMathParagraph:return this.renderContainer(e,"span");case Re.MmlFraction:return this.renderContainerNS(e,He.mathML,"mfrac");case Re.MmlBase:return this.renderContainerNS(e,He.mathML,e.parent.type==Re.MmlMatrixRow?"mtd":"mrow");case Re.MmlNumerator:case Re.MmlDenominator:case Re.MmlFunction:case Re.MmlLimit:case Re.MmlBox:return this.renderContainerNS(e,He.mathML,"mrow");case Re.MmlGroupChar:return this.renderMmlGroupChar(e);case Re.MmlLimitLower:return this.renderContainerNS(e,He.mathML,"munder");case Re.MmlMatrix:return this.renderContainerNS(e,He.mathML,"mtable");case Re.MmlMatrixRow:return this.renderContainerNS(e,He.mathML,"mtr");case Re.MmlRadical:return this.renderMmlRadical(e);case Re.MmlSuperscript:return this.renderContainerNS(e,He.mathML,"msup");case Re.MmlSubscript:return this.renderContainerNS(e,He.mathML,"msub");case Re.MmlDegree:case Re.MmlSuperArgument:case Re.MmlSubArgument:return this.renderContainerNS(e,He.mathML,"mn");case Re.MmlFunctionName:return this.renderContainerNS(e,He.mathML,"ms");case Re.MmlDelimiter:return this.renderMmlDelimiter(e);case Re.MmlRun:return this.renderMmlRun(e);case Re.MmlNary:return this.renderMmlNary(e);case Re.MmlPreSubSuper:return this.renderMmlPreSubSuper(e);case Re.MmlBar:return this.renderMmlBar(e);case Re.MmlEquationArray:return this.renderMllList(e);case Re.Inserted:return this.renderInserted(e);case Re.Deleted:return this.renderDeleted(e);case Re.CommentRangeStart:return this.renderCommentRangeStart(e);case Re.CommentRangeEnd:return this.renderCommentRangeEnd(e);case Re.CommentReference:return this.renderCommentReference(e)}return null}renderChildren(e,t){return this.renderElements(e.children,t)}renderElements(e,t){if(e==null)return null;var n=e.flatMap(i=>this.renderElement(i)).filter(i=>i!=null);return t&&ec(t,n),n}renderContainer(e,t,n){return this.createElement(t,n,this.renderChildren(e))}renderContainerNS(e,t,n,i){return wt(t,n,i,this.renderChildren(e))}renderParagraph(e){var o,a,s,l;var t=this.createElement("p");const n=this.findStyle(e.styleName);(a=e.tabs)!=null||(e.tabs=(o=n==null?void 0:n.paragraphProps)==null?void 0:o.tabs),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.renderCommonProperties(t.style,e);const i=(l=e.numbering)!=null?l:(s=n==null?void 0:n.paragraphProps)==null?void 0:s.numbering;return i&&t.classList.add(this.numberingClass(i.id,i.level)),t}renderRunProperties(e,t){this.renderCommonProperties(e,t)}renderCommonProperties(e,t){t!=null&&(t.color&&(e.color=t.color),t.fontSize&&(e["font-size"]=t.fontSize))}renderHyperlink(e){var t=this.createElement("a");if(this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.href)t.href=e.href;else if(e.id){const n=this.document.documentPart.rels.find(i=>i.id==e.id&&i.targetMode==="External");t.href=n==null?void 0:n.target}return t}renderSmartTag(e){var t=this.createElement("span");return this.renderChildren(e,t),t}renderCommentRangeStart(e){var i;if(!this.options.renderComments)return null;const t=new Range;(i=this.commentHighlight)==null||i.add(t);const n=this.htmlDocument.createComment(`start of comment #${e.id}`);return this.later(()=>t.setStart(n,0)),this.commentMap[e.id]=t,n}renderCommentRangeEnd(e){if(!this.options.renderComments)return null;const t=this.commentMap[e.id],n=this.htmlDocument.createComment(`end of comment #${e.id}`);return this.later(()=>t==null?void 0:t.setEnd(n,0)),n}renderCommentReference(e){var a;if(!this.options.renderComments)return null;var t=(a=this.document.commentsPart)==null?void 0:a.commentMap[e.id];if(!t)return null;const n=new DocumentFragment,i=Qn("span",{className:`${this.className}-comment-ref`},["\u{1F4AC}"]),o=Qn("div",{className:`${this.className}-comment-popover`});return this.renderCommentContent(t,o),n.appendChild(this.htmlDocument.createComment(`comment #${t.id} by ${t.author} on ${t.date}`)),n.appendChild(i),n.appendChild(o),n}renderCommentContent(e,t){t.appendChild(Qn("div",{className:`${this.className}-comment-author`},[e.author])),t.appendChild(Qn("div",{className:`${this.className}-comment-date`},[new Date(e.date).toLocaleString()])),this.renderChildren(e,t)}renderDrawing(e){var t=this.createElement("div");return t.style.display="inline-block",t.style.position="relative",t.style.textIndent="0px",this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),t}renderImage(e){let t=this.createElement("img");return this.renderStyleValues(e.cssStyle,t),this.document&&this.tasks.push(this.document.loadDocumentImage(e.src,this.currentPart).then(n=>{t.src=n})),t}renderText(e){return this.htmlDocument.createTextNode(e.text)}renderDeletedText(e){return this.options.renderEndnotes?this.htmlDocument.createTextNode(e.text):null}renderBreak(e){return e.break=="textWrapping"?this.createElement("br"):null}renderInserted(e){return this.options.renderChanges?this.renderContainer(e,"ins"):this.renderChildren(e)}renderDeleted(e){return this.options.renderChanges?this.renderContainer(e,"del"):null}renderSymbol(e){var t=this.createElement("span");return t.style.fontFamily=e.font,t.innerHTML=`&#x${e.char};`,t}renderFootnoteReference(e){var t=this.createElement("sup");return this.currentFootnoteIds.push(e.id),t.textContent=`${this.currentFootnoteIds.length}`,t}renderEndnoteReference(e){var t=this.createElement("sup");return this.currentEndnoteIds.push(e.id),t.textContent=`${this.currentEndnoteIds.length}`,t}renderTab(e){var i;var t=this.createElement("span");if(t.innerHTML=" ",this.options.experimental){t.className=this.tabStopClass();var n=(i=MT(e,Re.Paragraph))==null?void 0:i.tabs;this.currentTabs.push({stops:n,span:t})}return t}renderBookmarkStart(e){var t=this.createElement("span");return t.id=e.name,t}renderRun(e){if(e.fieldRun)return null;const t=this.createElement("span");if(e.id&&(t.id=e.id),this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.verticalAlign){const n=this.createElement(e.verticalAlign);this.renderChildren(e,n),t.appendChild(n)}else this.renderChildren(e,t);return t}renderTable(e){let t=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},e.columns&&t.appendChild(this.renderTableColumns(e.columns)),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),t}renderTableColumns(e){let t=this.createElement("colgroup");for(let n of e){let i=this.createElement("col");n.width&&(i.style.width=n.width),t.appendChild(i)}return t}renderTableRow(e){let t=this.createElement("tr");return this.currentCellPosition.col=0,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentCellPosition.row++,t}renderTableCell(e){let t=this.createElement("td");const n=this.currentCellPosition.col;return e.verticalMerge?e.verticalMerge=="restart"?(this.currentVerticalMerge[n]=t,t.rowSpan=1):this.currentVerticalMerge[n]&&(this.currentVerticalMerge[n].rowSpan+=1,t.style.display="none"):this.currentVerticalMerge[n]=null,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.span&&(t.colSpan=e.span),this.currentCellPosition.col+=t.colSpan,t}renderVmlPicture(e){var t=Qn("div");return this.renderChildren(e,t),t}renderVmlElement(e){var i,o;var t=_f("svg");t.setAttribute("style",e.cssStyleText);const n=this.renderVmlChildElement(e);return(i=e.imageHref)!=null&&i.id&&this.tasks.push((o=this.document)==null?void 0:o.loadDocumentImage(e.imageHref.id,this.currentPart).then(a=>n.setAttribute("href",a))),t.appendChild(n),requestAnimationFrame(()=>{const a=t.firstElementChild.getBBox();t.setAttribute("width",`${Math.ceil(a.x+a.width)}`),t.setAttribute("height",`${Math.ceil(a.y+a.height)}`)}),t}renderVmlChildElement(e){const t=_f(e.tagName);Object.entries(e.attrs).forEach(([n,i])=>t.setAttribute(n,i));for(let n of e.children)n.type==Re.VmlElement?t.appendChild(this.renderVmlChildElement(n)):t.appendChild(...so(this.renderElement(n)));return t}renderMmlRadical(e){var i;const t=e.children.find(o=>o.type==Re.MmlBase);if((i=e.props)!=null&&i.hideDegree)return wt(He.mathML,"msqrt",null,this.renderElements([t]));const n=e.children.find(o=>o.type==Re.MmlDegree);return wt(He.mathML,"mroot",null,this.renderElements([t,n]))}renderMmlDelimiter(e){var n,i;const t=[];return t.push(wt(He.mathML,"mo",null,[(n=e.props.beginChar)!=null?n:"("])),t.push(...this.renderElements(e.children)),t.push(wt(He.mathML,"mo",null,[(i=e.props.endChar)!=null?i:")"])),wt(He.mathML,"mrow",null,t)}renderMmlNary(e){var c,u;const t=[],n=In(e.children,h=>h.type),i=n[Re.MmlSuperArgument],o=n[Re.MmlSubArgument],a=i?wt(He.mathML,"mo",null,so(this.renderElement(i))):null,s=o?wt(He.mathML,"mo",null,so(this.renderElement(o))):null,l=wt(He.mathML,"mo",null,[(u=(c=e.props)==null?void 0:c.char)!=null?u:"\u222B"]);return a||s?t.push(wt(He.mathML,"munderover",null,[l,s,a])):a?t.push(wt(He.mathML,"mover",null,[l,a])):s?t.push(wt(He.mathML,"munder",null,[l,s])):t.push(l),t.push(...this.renderElements(n[Re.MmlBase].children)),wt(He.mathML,"mrow",null,t)}renderMmlPreSubSuper(e){const t=[],n=In(e.children,c=>c.type),i=n[Re.MmlSuperArgument],o=n[Re.MmlSubArgument],a=i?wt(He.mathML,"mo",null,so(this.renderElement(i))):null,s=o?wt(He.mathML,"mo",null,so(this.renderElement(o))):null,l=wt(He.mathML,"mo",null);return t.push(wt(He.mathML,"msubsup",null,[l,s,a])),t.push(...this.renderElements(n[Re.MmlBase].children)),wt(He.mathML,"mrow",null,t)}renderMmlGroupChar(e){const t=e.props.verticalJustification==="bot"?"mover":"munder",n=this.renderContainerNS(e,He.mathML,t);return e.props.char&&n.appendChild(wt(He.mathML,"mo",null,[e.props.char])),n}renderMmlBar(e){const t=this.renderContainerNS(e,He.mathML,"mrow");switch(e.props.position){case"top":t.style.textDecoration="overline";break;case"bottom":t.style.textDecoration="underline";break}return t}renderMmlRun(e){const t=wt(He.mathML,"ms");return this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e,t),t}renderMllList(e){const t=wt(He.mathML,"mtable");this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e);for(let n of this.renderChildren(e))t.appendChild(wt(He.mathML,"mtr",null,[wt(He.mathML,"mtd",null,[n])]));return t}renderStyleValues(e,t){for(let n in e)n.startsWith("$")?t.setAttribute(n.slice(1),e[n]):t.style[n]=e[n]}renderClass(e,t){e.className&&(t.className=e.className),e.styleName&&t.classList.add(this.processStyleName(e.styleName))}findStyle(e){var t;return e&&((t=this.styleMap)==null?void 0:t[e])}numberingClass(e,t){return`${this.className}-num-${e}-${t}`}tabStopClass(){return`${this.className}-tab-stop`}styleToString(e,t,n=null){let i=`${e} {\r
|
|
`;for(const o in t)o.startsWith("$")||(i+=` ${o}: ${t[o]};\r
|
|
`);return n&&(i+=n),i+`}\r
|
|
`}numberingCounter(e,t){return`${this.className}-num-${e}-${t}`}levelTextToContent(e,t,n,i){var s;const o={tab:"\\9",space:"\\a0"};var a=e.replace(/%\d*/g,l=>{let c=parseInt(l.substring(1),10)-1;return`"counter(${this.numberingCounter(n,c)}, ${i})"`});return`"${a}${(s=o[t])!=null?s:""}"`}numFormatToCssValue(e){var n;var t={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"};return(n=t[e])!=null?n:e}refreshTabStops(){!this.options.experimental||(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout(()=>{const e=_T();for(let t of this.currentTabs)IT(t.span,t.stops,this.defaultTabSize,e)},500))}later(e){this.postRenderTasks.push(e)}}function Qn(r,e,t){return wt(void 0,r,e,t)}function _f(r,e,t){return wt(He.svg,r,e,t)}function wt(r,e,t,n){var i=r?document.createElementNS(r,e):document.createElement(e);return Object.assign(i,t),n&&ec(i,n),i}function If(r){r.innerHTML=""}function ec(r,e){e.forEach(t=>r.appendChild(E2(t)?document.createTextNode(t):t))}function di(r){return Qn("style",{innerHTML:r})}function co(r,e){r.appendChild(document.createComment(e))}function MT(r,e){for(var t=r.parent;t!=null&&t.type!=e;)t=t.parent;return t}const Wp={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,renderChanges:!1,renderComments:!1};function LT(r,e){const t={...Wp,...e};return Kc.load(r,new TT(t),t)}async function FT(r,e,t,n){const i={...Wp,...n},o=new NT(window.document);return o.render(r,e,t,i),Promise.allSettled(o.tasks)}async function CT(r,e,t,n){const i=await LT(r,n);return await FT(i,e,t,n),i}async function vl(r,e){const{arrayBuffer:t}=e,n=document.createElement("div"),i=document.createElement("style"),o=await CT(t,n,i,{useBase64URL:!0});console.log(o),r.executeSetHTML({main:n.innerHTML})}var Hc={},rs={},Or={};Object.defineProperty(Or,"__esModule",{value:!0});function AT(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var DT=function r(e,t){AT(this,r),this.data=e,this.text=t.text||e,this.options=t};Or.default=DT;Object.defineProperty(rs,"__esModule",{value:!0});rs.CODE39=void 0;var XT=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),UT=Or,WT=VT(UT);function VT(r){return r&&r.__esModule?r:{default:r}}function YT(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function kT(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function ZT(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var QT=function(r){ZT(e,r);function e(t,n){return YT(this,e),t=t.toUpperCase(),n.mod43&&(t+=BT(GT(t))),kT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return XT(e,[{key:"encode",value:function(){for(var n=yl("*"),i=0;i<this.data.length;i++)n+=yl(this.data[i])+"0";return n+=yl("*"),{data:n,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),e}(WT.default),Vp=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],KT=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function yl(r){return HT(Yp(r))}function HT(r){return KT[r].toString(2)}function BT(r){return Vp[r]}function Yp(r){return Vp.indexOf(r)}function GT(r){for(var e=0,t=0;t<r.length;t++)e+=Yp(r[t]);return e=e%43,e}rs.CODE39=QT;var sn={},Bc={},Bi={},Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});var uo;function wl(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var kp=Ot.SET_A=0,Zp=Ot.SET_B=1,Qp=Ot.SET_C=2;Ot.SHIFT=98;var JT=Ot.START_A=103,zT=Ot.START_B=104,$T=Ot.START_C=105;Ot.MODULO=103;Ot.STOP=106;Ot.FNC1=207;Ot.SET_BY_CODE=(uo={},wl(uo,JT,kp),wl(uo,zT,Zp),wl(uo,$T,Qp),uo);Ot.SWAP={101:kp,100:Zp,99:Qp};Ot.A_START_CHAR=String.fromCharCode(208);Ot.B_START_CHAR=String.fromCharCode(209);Ot.C_START_CHAR=String.fromCharCode(210);Ot.A_CHARS="[\0-_\xC8-\xCF]";Ot.B_CHARS="[ -\x7F\xC8-\xCF]";Ot.C_CHARS="(\xCF*[0-9]{2}\xCF*)";Ot.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011];Object.defineProperty(Bi,"__esModule",{value:!0});var jT=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),qT=Or,eP=tP(qT),Pr=Ot;function tP(r){return r&&r.__esModule?r:{default:r}}function rP(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function nP(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function iP(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var oP=function(r){iP(e,r);function e(t,n){rP(this,e);var i=nP(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.substring(1),n));return i.bytes=t.split("").map(function(o){return o.charCodeAt(0)}),i}return jT(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var n=this.bytes,i=n.shift()-105,o=Pr.SET_BY_CODE[i];if(o===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&n.unshift(Pr.FNC1);var a=e.next(n,1,o);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(i)+a.result+e.getBar((a.checksum+i)%Pr.MODULO)+e.getBar(Pr.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var n=this.options.ean128||!1;return typeof n=="string"&&(n=n.toLowerCase()==="true"),n}}],[{key:"getBar",value:function(n){return Pr.BARS[n]?Pr.BARS[n].toString():""}},{key:"correctIndex",value:function(n,i){if(i===Pr.SET_A){var o=n.shift();return o<32?o+64:o-32}else return i===Pr.SET_B?n.shift()-32:(n.shift()-48)*10+n.shift()-48}},{key:"next",value:function(n,i,o){if(!n.length)return{result:"",checksum:0};var a=void 0,s=void 0;if(n[0]>=200){s=n.shift()-105;var l=Pr.SWAP[s];l!==void 0?a=e.next(n,i+1,l):((o===Pr.SET_A||o===Pr.SET_B)&&s===Pr.SHIFT&&(n[0]=o===Pr.SET_A?n[0]>95?n[0]-96:n[0]:n[0]<32?n[0]+96:n[0]),a=e.next(n,i+1,o))}else s=e.correctIndex(n,o),a=e.next(n,i+1,o);var c=e.getBar(s),u=s*i;return{result:c+a.result,checksum:u+a.checksum}}}]),e}(eP.default);Bi.default=oP;var Gc={};Object.defineProperty(Gc,"__esModule",{value:!0});var Dn=Ot,Kp=function(e){return e.match(new RegExp("^"+Dn.A_CHARS+"*"))[0].length},Hp=function(e){return e.match(new RegExp("^"+Dn.B_CHARS+"*"))[0].length},Bp=function(e){return e.match(new RegExp("^"+Dn.C_CHARS+"*"))[0]};function Jc(r,e){var t=e?Dn.A_CHARS:Dn.B_CHARS,n=r.match(new RegExp("^("+t+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(n)return n[1]+String.fromCharCode(204)+Gp(r.substring(n[1].length));var i=r.match(new RegExp("^"+t+"+"))[0];return i.length===r.length?r:i+String.fromCharCode(e?205:206)+Jc(r.substring(i.length),!e)}function Gp(r){var e=Bp(r),t=e.length;if(t===r.length)return r;r=r.substring(t);var n=Kp(r)>=Hp(r);return e+String.fromCharCode(n?206:205)+Jc(r,n)}Gc.default=function(r){var e=void 0,t=Bp(r).length;if(t>=2)e=Dn.C_START_CHAR+Gp(r);else{var n=Kp(r)>Hp(r);e=(n?Dn.A_START_CHAR:Dn.B_START_CHAR)+Jc(r,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(i,o){return String.fromCharCode(203)+o})};Object.defineProperty(Bc,"__esModule",{value:!0});var aP=Bi,sP=Jp(aP),lP=Gc,cP=Jp(lP);function Jp(r){return r&&r.__esModule?r:{default:r}}function uP(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Sl(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function hP(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var fP=function(r){hP(e,r);function e(t,n){if(uP(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var i=Sl(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,cP.default)(t),n));else var i=Sl(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return Sl(i)}return e}(sP.default);Bc.default=fP;var zc={};Object.defineProperty(zc,"__esModule",{value:!0});var dP=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),pP=Bi,gP=RP(pP),Nf=Ot;function RP(r){return r&&r.__esModule?r:{default:r}}function mP(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function vP(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function yP(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var wP=function(r){yP(e,r);function e(t,n){return mP(this,e),vP(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Nf.A_START_CHAR+t,n))}return dP(e,[{key:"valid",value:function(){return new RegExp("^"+Nf.A_CHARS+"+$").test(this.data)}}]),e}(gP.default);zc.default=wP;var $c={};Object.defineProperty($c,"__esModule",{value:!0});var SP=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),xP=Bi,bP=OP(xP),Mf=Ot;function OP(r){return r&&r.__esModule?r:{default:r}}function TP(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function PP(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function EP(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var _P=function(r){EP(e,r);function e(t,n){return TP(this,e),PP(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Mf.B_START_CHAR+t,n))}return SP(e,[{key:"valid",value:function(){return new RegExp("^"+Mf.B_CHARS+"+$").test(this.data)}}]),e}(bP.default);$c.default=_P;var jc={};Object.defineProperty(jc,"__esModule",{value:!0});var IP=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),NP=Bi,MP=LP(NP),Lf=Ot;function LP(r){return r&&r.__esModule?r:{default:r}}function FP(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function CP(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function AP(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var DP=function(r){AP(e,r);function e(t,n){return FP(this,e),CP(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Lf.C_START_CHAR+t,n))}return IP(e,[{key:"valid",value:function(){return new RegExp("^"+Lf.C_CHARS+"+$").test(this.data)}}]),e}(MP.default);jc.default=DP;Object.defineProperty(sn,"__esModule",{value:!0});sn.CODE128C=sn.CODE128B=sn.CODE128A=sn.CODE128=void 0;var XP=Bc,UP=ns(XP),WP=zc,VP=ns(WP),YP=$c,kP=ns(YP),ZP=jc,QP=ns(ZP);function ns(r){return r&&r.__esModule?r:{default:r}}sn.CODE128=UP.default;sn.CODE128A=VP.default;sn.CODE128B=kP.default;sn.CODE128C=QP.default;var xr={},qc={},Zr={};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.SIDE_BIN="101";Zr.MIDDLE_BIN="01010";Zr.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]};Zr.EAN2_STRUCTURE=["LL","LG","GL","GG"];Zr.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"];Zr.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var is={},ai={};Object.defineProperty(ai,"__esModule",{value:!0});var KP=Zr,HP=function(e,t,n){var i=e.split("").map(function(a,s){return KP.BINARIES[t[s]]}).map(function(a,s){return a?a[e[s]]:""});if(n){var o=e.length-1;i=i.map(function(a,s){return s<o?a+n:a})}return i.join("")};ai.default=HP;Object.defineProperty(is,"__esModule",{value:!0});var BP=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),pi=Zr,GP=ai,Ff=zp(GP),JP=Or,zP=zp(JP);function zp(r){return r&&r.__esModule?r:{default:r}}function $P(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function jP(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function qP(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var eE=function(r){qP(e,r);function e(t,n){$P(this,e);var i=jP(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.fontSize=!n.flat&&n.fontSize>n.width*10?n.width*10:n.fontSize,i.guardHeight=n.height+i.fontSize/2+n.textMargin,i}return BP(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(n,i){return this.text.substr(n,i)}},{key:"leftEncode",value:function(n,i){return(0,Ff.default)(n,i)}},{key:"rightText",value:function(n,i){return this.text.substr(n,i)}},{key:"rightEncode",value:function(n,i){return(0,Ff.default)(n,i)}},{key:"encodeGuarded",value:function(){var n={fontSize:this.fontSize},i={height:this.guardHeight};return[{data:pi.SIDE_BIN,options:i},{data:this.leftEncode(),text:this.leftText(),options:n},{data:pi.MIDDLE_BIN,options:i},{data:this.rightEncode(),text:this.rightText(),options:n},{data:pi.SIDE_BIN,options:i}]}},{key:"encodeFlat",value:function(){var n=[pi.SIDE_BIN,this.leftEncode(),pi.MIDDLE_BIN,this.rightEncode(),pi.SIDE_BIN];return{data:n.join(""),text:this.text}}}]),e}(zP.default);is.default=eE;Object.defineProperty(qc,"__esModule",{value:!0});var tE=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),ho=function r(e,t,n){e===null&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(i===void 0){var o=Object.getPrototypeOf(e);return o===null?void 0:r(o,t,n)}else{if("value"in i)return i.value;var a=i.get;return a===void 0?void 0:a.call(n)}},rE=Zr,nE=is,iE=oE(nE);function oE(r){return r&&r.__esModule?r:{default:r}}function aE(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function sE(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function lE(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Cf=function(e){var t=e.substr(0,12).split("").map(function(n){return+n}).reduce(function(n,i,o){return o%2?n+i*3:n+i},0);return(10-t%10)%10},cE=function(r){lE(e,r);function e(t,n){aE(this,e),t.search(/^[0-9]{12}$/)!==-1&&(t+=Cf(t));var i=sE(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.lastChar=n.lastChar,i}return tE(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===Cf(this.data)}},{key:"leftText",value:function(){return ho(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var n=this.data.substr(1,6),i=rE.EAN13_STRUCTURE[this.data[0]];return ho(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,n,i)}},{key:"rightText",value:function(){return ho(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var n=this.data.substr(7,6);return ho(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,n,"RRRRRR")}},{key:"encodeGuarded",value:function(){var n=ho(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(n.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(n.push({data:"00"}),n.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),n}}]),e}(iE.default);qc.default=cE;var eu={};Object.defineProperty(eu,"__esModule",{value:!0});var uE=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),ua=function r(e,t,n){e===null&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(i===void 0){var o=Object.getPrototypeOf(e);return o===null?void 0:r(o,t,n)}else{if("value"in i)return i.value;var a=i.get;return a===void 0?void 0:a.call(n)}},hE=is,fE=dE(hE);function dE(r){return r&&r.__esModule?r:{default:r}}function pE(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function gE(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function RE(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Af=function(e){var t=e.substr(0,7).split("").map(function(n){return+n}).reduce(function(n,i,o){return o%2?n+i:n+i*3},0);return(10-t%10)%10},mE=function(r){RE(e,r);function e(t,n){return pE(this,e),t.search(/^[0-9]{7}$/)!==-1&&(t+=Af(t)),gE(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return uE(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===Af(this.data)}},{key:"leftText",value:function(){return ua(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var n=this.data.substr(0,4);return ua(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,n,"LLLL")}},{key:"rightText",value:function(){return ua(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var n=this.data.substr(4,4);return ua(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,n,"RRRR")}}]),e}(fE.default);eu.default=mE;var tu={};Object.defineProperty(tu,"__esModule",{value:!0});var vE=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),yE=Zr,wE=ai,SE=$p(wE),xE=Or,bE=$p(xE);function $p(r){return r&&r.__esModule?r:{default:r}}function OE(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function TE(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function PE(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var EE=function(e){var t=e.split("").map(function(n){return+n}).reduce(function(n,i,o){return o%2?n+i*9:n+i*3},0);return t%10},_E=function(r){PE(e,r);function e(t,n){return OE(this,e),TE(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return vE(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var n=yE.EAN5_STRUCTURE[EE(this.data)];return{data:"1011"+(0,SE.default)(this.data,n,"01"),text:this.text}}}]),e}(bE.default);tu.default=_E;var ru={};Object.defineProperty(ru,"__esModule",{value:!0});var IE=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),NE=Zr,ME=ai,LE=jp(ME),FE=Or,CE=jp(FE);function jp(r){return r&&r.__esModule?r:{default:r}}function AE(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function DE(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function XE(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var UE=function(r){XE(e,r);function e(t,n){return AE(this,e),DE(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return IE(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var n=NE.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,LE.default)(this.data,n,"01"),text:this.text}}}]),e}(CE.default);ru.default=UE;var Uo={};Object.defineProperty(Uo,"__esModule",{value:!0});var WE=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();Uo.checksum=tc;var VE=ai,gi=qp(VE),YE=Or,kE=qp(YE);function qp(r){return r&&r.__esModule?r:{default:r}}function ZE(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function QE(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function KE(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var HE=function(r){KE(e,r);function e(t,n){ZE(this,e),t.search(/^[0-9]{11}$/)!==-1&&(t+=tc(t));var i=QE(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.displayValue=n.displayValue,n.fontSize>n.width*10?i.fontSize=n.width*10:i.fontSize=n.fontSize,i.guardHeight=n.height+i.fontSize/2+n.textMargin,i}return WE(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==tc(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=(0,gi.default)(this.data.substr(0,6),"LLLLLL"),n+="01010",n+=(0,gi.default)(this.data.substr(6,6),"RRRRRR"),n+="101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101"+(0,gi.default)(this.data[0],"L"),options:{height:this.guardHeight}}),n.push({data:(0,gi.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),n.push({data:"01010",options:{height:this.guardHeight}}),n.push({data:(0,gi.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),n.push({data:(0,gi.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),n}}]),e}(kE.default);function tc(r){var e=0,t;for(t=1;t<11;t+=2)e+=parseInt(r[t]);for(t=0;t<11;t+=2)e+=parseInt(r[t])*3;return(10-e%10)%10}Uo.default=HE;var nu={};Object.defineProperty(nu,"__esModule",{value:!0});var BE=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),GE=ai,JE=e1(GE),zE=Or,$E=e1(zE),jE=Uo;function e1(r){return r&&r.__esModule?r:{default:r}}function qE(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function xl(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function e_(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var t_=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],r_=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],n_=function(r){e_(e,r);function e(t,n){qE(this,e);var i=xl(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(i.isValid=!1,t.search(/^[0-9]{6}$/)!==-1)i.middleDigits=t,i.upcA=Df(t,"0"),i.text=n.text||""+i.upcA[0]+t+i.upcA[i.upcA.length-1],i.isValid=!0;else if(t.search(/^[01][0-9]{7}$/)!==-1)if(i.middleDigits=t.substring(1,t.length-1),i.upcA=Df(i.middleDigits,t[0]),i.upcA[i.upcA.length-1]===t[t.length-1])i.isValid=!0;else return xl(i);else return xl(i);return i.displayValue=n.displayValue,n.fontSize>n.width*10?i.fontSize=n.width*10:i.fontSize=n.fontSize,i.guardHeight=n.height+i.fontSize/2+n.textMargin,i}return BE(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=this.encodeMiddleDigits(),n+="010101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101",options:{height:this.guardHeight}}),n.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),n.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),n}},{key:"encodeMiddleDigits",value:function(){var n=this.upcA[0],i=this.upcA[this.upcA.length-1],o=r_[parseInt(i)][parseInt(n)];return(0,JE.default)(this.middleDigits,o)}}]),e}($E.default);function Df(r,e){for(var t=parseInt(r[r.length-1]),n=t_[t],i="",o=0,a=0;a<n.length;a++){var s=n[a];s==="X"?i+=r[o++]:i+=s}return i=""+e+i,""+i+(0,jE.checksum)(i)}nu.default=n_;Object.defineProperty(xr,"__esModule",{value:!0});xr.UPCE=xr.UPC=xr.EAN2=xr.EAN5=xr.EAN8=xr.EAN13=void 0;var i_=qc,o_=Gi(i_),a_=eu,s_=Gi(a_),l_=tu,c_=Gi(l_),u_=ru,h_=Gi(u_),f_=Uo,d_=Gi(f_),p_=nu,g_=Gi(p_);function Gi(r){return r&&r.__esModule?r:{default:r}}xr.EAN13=o_.default;xr.EAN8=s_.default;xr.EAN5=c_.default;xr.EAN2=h_.default;xr.UPC=d_.default;xr.UPCE=g_.default;var ki={},os={},Wo={};Object.defineProperty(Wo,"__esModule",{value:!0});Wo.START_BIN="1010";Wo.END_BIN="11101";Wo.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"];Object.defineProperty(os,"__esModule",{value:!0});var R_=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),ha=Wo,m_=Or,v_=y_(m_);function y_(r){return r&&r.__esModule?r:{default:r}}function w_(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function S_(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function x_(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var b_=function(r){x_(e,r);function e(){return w_(this,e),S_(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return R_(e,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var n=this,i=this.data.match(/.{2}/g).map(function(o){return n.encodePair(o)}).join("");return{data:ha.START_BIN+i+ha.END_BIN,text:this.text}}},{key:"encodePair",value:function(n){var i=ha.BINARIES[n[1]];return ha.BINARIES[n[0]].split("").map(function(o,a){return(o==="1"?"111":"1")+(i[a]==="1"?"000":"0")}).join("")}}]),e}(v_.default);os.default=b_;var iu={};Object.defineProperty(iu,"__esModule",{value:!0});var O_=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),T_=os,P_=E_(T_);function E_(r){return r&&r.__esModule?r:{default:r}}function __(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function I_(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function N_(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Xf=function(e){var t=e.substr(0,13).split("").map(function(n){return parseInt(n,10)}).reduce(function(n,i,o){return n+i*(3-o%2*2)},0);return Math.ceil(t/10)*10-t},M_=function(r){N_(e,r);function e(t,n){return __(this,e),t.search(/^[0-9]{13}$/)!==-1&&(t+=Xf(t)),I_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return O_(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===Xf(this.data)}}]),e}(P_.default);iu.default=M_;Object.defineProperty(ki,"__esModule",{value:!0});ki.ITF14=ki.ITF=void 0;var L_=os,F_=t1(L_),C_=iu,A_=t1(C_);function t1(r){return r&&r.__esModule?r:{default:r}}ki.ITF=F_.default;ki.ITF14=A_.default;var Vr={},si={};Object.defineProperty(si,"__esModule",{value:!0});var D_=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),X_=Or,U_=W_(X_);function W_(r){return r&&r.__esModule?r:{default:r}}function V_(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Y_(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function k_(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Z_=function(r){k_(e,r);function e(t,n){return V_(this,e),Y_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return D_(e,[{key:"encode",value:function(){for(var n="110",i=0;i<this.data.length;i++){var o=parseInt(this.data[i]),a=o.toString(2);a=Q_(a,4-a.length);for(var s=0;s<a.length;s++)n+=a[s]=="0"?"100":"110"}return n+="1001",{data:n,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),e}(U_.default);function Q_(r,e){for(var t=0;t<e;t++)r="0"+r;return r}si.default=Z_;var ou={},li={};Object.defineProperty(li,"__esModule",{value:!0});li.mod10=K_;li.mod11=H_;function K_(r){for(var e=0,t=0;t<r.length;t++){var n=parseInt(r[t]);(t+r.length)%2===0?e+=n:e+=n*2%10+Math.floor(n*2/10)}return(10-e%10)%10}function H_(r){for(var e=0,t=[2,3,4,5,6,7],n=0;n<r.length;n++){var i=parseInt(r[r.length-1-n]);e+=t[n%t.length]*i}return(11-e%11)%11}Object.defineProperty(ou,"__esModule",{value:!0});var B_=si,G_=z_(B_),J_=li;function z_(r){return r&&r.__esModule?r:{default:r}}function $_(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function j_(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function q_(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var eI=function(r){q_(e,r);function e(t,n){return $_(this,e),j_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,J_.mod10)(t),n))}return e}(G_.default);ou.default=eI;var au={};Object.defineProperty(au,"__esModule",{value:!0});var tI=si,rI=iI(tI),nI=li;function iI(r){return r&&r.__esModule?r:{default:r}}function oI(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function aI(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function sI(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var lI=function(r){sI(e,r);function e(t,n){return oI(this,e),aI(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,nI.mod11)(t),n))}return e}(rI.default);au.default=lI;var su={};Object.defineProperty(su,"__esModule",{value:!0});var cI=si,uI=hI(cI),Uf=li;function hI(r){return r&&r.__esModule?r:{default:r}}function fI(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function dI(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function pI(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var gI=function(r){pI(e,r);function e(t,n){return fI(this,e),t+=(0,Uf.mod10)(t),t+=(0,Uf.mod10)(t),dI(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return e}(uI.default);su.default=gI;var lu={};Object.defineProperty(lu,"__esModule",{value:!0});var RI=si,mI=vI(RI),Wf=li;function vI(r){return r&&r.__esModule?r:{default:r}}function yI(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function wI(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function SI(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var xI=function(r){SI(e,r);function e(t,n){return yI(this,e),t+=(0,Wf.mod11)(t),t+=(0,Wf.mod10)(t),wI(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return e}(mI.default);lu.default=xI;Object.defineProperty(Vr,"__esModule",{value:!0});Vr.MSI1110=Vr.MSI1010=Vr.MSI11=Vr.MSI10=Vr.MSI=void 0;var bI=si,OI=Vo(bI),TI=ou,PI=Vo(TI),EI=au,_I=Vo(EI),II=su,NI=Vo(II),MI=lu,LI=Vo(MI);function Vo(r){return r&&r.__esModule?r:{default:r}}Vr.MSI=OI.default;Vr.MSI10=PI.default;Vr.MSI11=_I.default;Vr.MSI1010=NI.default;Vr.MSI1110=LI.default;var as={};Object.defineProperty(as,"__esModule",{value:!0});as.pharmacode=void 0;var FI=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),CI=Or,AI=DI(CI);function DI(r){return r&&r.__esModule?r:{default:r}}function XI(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function UI(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function WI(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var VI=function(r){WI(e,r);function e(t,n){XI(this,e);var i=UI(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.number=parseInt(t,10),i}return FI(e,[{key:"encode",value:function(){for(var n=this.number,i="";!isNaN(n)&&n!=0;)n%2===0?(i="11100"+i,n=(n-2)/2):(i="100"+i,n=(n-1)/2);return i=i.slice(0,-2),{data:i,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(AI.default);as.pharmacode=VI;var ss={};Object.defineProperty(ss,"__esModule",{value:!0});ss.codabar=void 0;var YI=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),kI=Or,ZI=QI(kI);function QI(r){return r&&r.__esModule?r:{default:r}}function KI(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function HI(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function BI(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var GI=function(r){BI(e,r);function e(t,n){KI(this,e),t.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(t="A"+t+"A");var i=HI(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.toUpperCase(),n));return i.text=i.options.text||i.text.replace(/[A-D]/g,""),i}return YI(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var n=[],i=this.getEncodings(),o=0;o<this.data.length;o++)n.push(i[this.data.charAt(o)]),o!==this.data.length-1&&n.push("0");return{text:this.text,data:n.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(ZI.default);ss.codabar=GI;var ls={};Object.defineProperty(ls,"__esModule",{value:!0});ls.GenericBarcode=void 0;var JI=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),zI=Or,$I=jI(zI);function jI(r){return r&&r.__esModule?r:{default:r}}function qI(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function eN(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function tN(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var rN=function(r){tN(e,r);function e(t,n){return qI(this,e),eN(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return JI(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}($I.default);ls.GenericBarcode=rN;Object.defineProperty(Hc,"__esModule",{value:!0});var nN=rs,fa=sn,Ri=xr,Vf=ki,fo=Vr,iN=as,oN=ss,aN=ls;Hc.default={CODE39:nN.CODE39,CODE128:fa.CODE128,CODE128A:fa.CODE128A,CODE128B:fa.CODE128B,CODE128C:fa.CODE128C,EAN13:Ri.EAN13,EAN8:Ri.EAN8,EAN5:Ri.EAN5,EAN2:Ri.EAN2,UPC:Ri.UPC,UPCE:Ri.UPCE,ITF14:Vf.ITF14,ITF:Vf.ITF,MSI:fo.MSI,MSI10:fo.MSI10,MSI11:fo.MSI11,MSI1010:fo.MSI1010,MSI1110:fo.MSI1110,pharmacode:iN.pharmacode,codabar:oN.codabar,GenericBarcode:aN.GenericBarcode};var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0});var sN=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r};Ji.default=function(r,e){return sN({},r,e)};var cu={};Object.defineProperty(cu,"__esModule",{value:!0});cu.default=lN;function lN(r){var e=[];function t(n){if(Array.isArray(n))for(var i=0;i<n.length;i++)t(n[i]);else n.text=n.text||"",n.data=n.data||"",e.push(n)}return t(r),e}var uu={};Object.defineProperty(uu,"__esModule",{value:!0});uu.default=cN;function cN(r){return r.marginTop=r.marginTop||r.margin,r.marginBottom=r.marginBottom||r.margin,r.marginRight=r.marginRight||r.margin,r.marginLeft=r.marginLeft||r.margin,r}var hu={},fu={},cs={};Object.defineProperty(cs,"__esModule",{value:!0});cs.default=uN;function uN(r){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var t in e)e.hasOwnProperty(t)&&(t=e[t],typeof r[t]=="string"&&(r[t]=parseInt(r[t],10)));return typeof r.displayValue=="string"&&(r.displayValue=r.displayValue!="false"),r}var us={};Object.defineProperty(us,"__esModule",{value:!0});var hN={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};us.default=hN;Object.defineProperty(fu,"__esModule",{value:!0});var fN=cs,dN=r1(fN),pN=us,Yf=r1(pN);function r1(r){return r&&r.__esModule?r:{default:r}}function gN(r){var e={};for(var t in Yf.default)Yf.default.hasOwnProperty(t)&&(r.hasAttribute("jsbarcode-"+t.toLowerCase())&&(e[t]=r.getAttribute("jsbarcode-"+t.toLowerCase())),r.hasAttribute("data-"+t.toLowerCase())&&(e[t]=r.getAttribute("data-"+t.toLowerCase())));return e.value=r.getAttribute("jsbarcode-value")||r.getAttribute("data-value"),e=(0,dN.default)(e),e}fu.default=gN;var du={},pu={},Ir={};Object.defineProperty(Ir,"__esModule",{value:!0});Ir.getTotalWidthOfEncodings=Ir.calculateEncodingAttributes=Ir.getBarcodePadding=Ir.getEncodingHeight=Ir.getMaximumHeightOfEncodings=void 0;var RN=Ji,mN=vN(RN);function vN(r){return r&&r.__esModule?r:{default:r}}function n1(r,e){return e.height+(e.displayValue&&r.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function i1(r,e,t){if(t.displayValue&&e<r){if(t.textAlign=="center")return Math.floor((r-e)/2);if(t.textAlign=="left")return 0;if(t.textAlign=="right")return Math.floor(r-e)}return 0}function yN(r,e,t){for(var n=0;n<r.length;n++){var i=r[n],o=(0,mN.default)(e,i.options),a;o.displayValue?a=xN(i.text,o,t):a=0;var s=i.data.length*o.width;i.width=Math.ceil(Math.max(a,s)),i.height=n1(i,o),i.barcodePadding=i1(a,s,o)}}function wN(r){for(var e=0,t=0;t<r.length;t++)e+=r[t].width;return e}function SN(r){for(var e=0,t=0;t<r.length;t++)r[t].height>e&&(e=r[t].height);return e}function xN(r,e,t){var n;if(t)n=t;else if(typeof document!="undefined")n=document.createElement("canvas").getContext("2d");else return 0;n.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var i=n.measureText(r);if(!i)return 0;var o=i.width;return o}Ir.getMaximumHeightOfEncodings=SN;Ir.getEncodingHeight=n1;Ir.getBarcodePadding=i1;Ir.calculateEncodingAttributes=yN;Ir.getTotalWidthOfEncodings=wN;Object.defineProperty(pu,"__esModule",{value:!0});var bN=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),ON=Ji,TN=PN(ON),bl=Ir;function PN(r){return r&&r.__esModule?r:{default:r}}function EN(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var _N=function(){function r(e,t,n){EN(this,r),this.canvas=e,this.encodings=t,this.options=n}return bN(r,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var t=0;t<this.encodings.length;t++){var n=(0,TN.default)(this.options,this.encodings[t].options);this.drawCanvasBarcode(n,this.encodings[t]),this.drawCanvasText(n,this.encodings[t]),this.moveCanvasDrawing(this.encodings[t])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var t=this.canvas.getContext("2d");t.save(),(0,bl.calculateEncodingAttributes)(this.encodings,this.options,t);var n=(0,bl.getTotalWidthOfEncodings)(this.encodings),i=(0,bl.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=n+this.options.marginLeft+this.options.marginRight,this.canvas.height=i,t.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(t.fillStyle=this.options.background,t.fillRect(0,0,this.canvas.width,this.canvas.height)),t.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(t,n){var i=this.canvas.getContext("2d"),o=n.data,a;t.textPosition=="top"?a=t.marginTop+t.fontSize+t.textMargin:a=t.marginTop,i.fillStyle=t.lineColor;for(var s=0;s<o.length;s++){var l=s*t.width+n.barcodePadding;o[s]==="1"?i.fillRect(l,a,t.width,t.height):o[s]&&i.fillRect(l,a,t.width,t.height*o[s])}}},{key:"drawCanvasText",value:function(t,n){var i=this.canvas.getContext("2d"),o=t.fontOptions+" "+t.fontSize+"px "+t.font;if(t.displayValue){var a,s;t.textPosition=="top"?s=t.marginTop+t.fontSize-t.textMargin:s=t.height+t.textMargin+t.marginTop+t.fontSize,i.font=o,t.textAlign=="left"||n.barcodePadding>0?(a=0,i.textAlign="left"):t.textAlign=="right"?(a=n.width-1,i.textAlign="right"):(a=n.width/2,i.textAlign="center"),i.fillText(n.text,a,s)}}},{key:"moveCanvasDrawing",value:function(t){var n=this.canvas.getContext("2d");n.translate(t.width,0)}},{key:"restoreCanvas",value:function(){var t=this.canvas.getContext("2d");t.restore()}}]),r}();pu.default=_N;var gu={};Object.defineProperty(gu,"__esModule",{value:!0});var IN=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),NN=Ji,MN=LN(NN),Ol=Ir;function LN(r){return r&&r.__esModule?r:{default:r}}function FN(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var da="http://www.w3.org/2000/svg",CN=function(){function r(e,t,n){FN(this,r),this.svg=e,this.encodings=t,this.options=n,this.document=n.xmlDocument||document}return IN(r,[{key:"render",value:function(){var t=this.options.marginLeft;this.prepareSVG();for(var n=0;n<this.encodings.length;n++){var i=this.encodings[n],o=(0,MN.default)(this.options,i.options),a=this.createGroup(t,o.marginTop,this.svg);this.setGroupOptions(a,o),this.drawSvgBarcode(a,o,i),this.drawSVGText(a,o,i),t+=i.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,Ol.calculateEncodingAttributes)(this.encodings,this.options);var t=(0,Ol.getTotalWidthOfEncodings)(this.encodings),n=(0,Ol.getMaximumHeightOfEncodings)(this.encodings),i=t+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(i,n),this.options.background&&this.drawRect(0,0,i,n,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(t,n,i){var o=i.data,a;n.textPosition=="top"?a=n.fontSize+n.textMargin:a=0;for(var s=0,l=0,c=0;c<o.length;c++)l=c*n.width+i.barcodePadding,o[c]==="1"?s++:s>0&&(this.drawRect(l-n.width*s,a,n.width*s,n.height,t),s=0);s>0&&this.drawRect(l-n.width*(s-1),a,n.width*s,n.height,t)}},{key:"drawSVGText",value:function(t,n,i){var o=this.document.createElementNS(da,"text");if(n.displayValue){var a,s;o.setAttribute("style","font:"+n.fontOptions+" "+n.fontSize+"px "+n.font),n.textPosition=="top"?s=n.fontSize-n.textMargin:s=n.height+n.textMargin+n.fontSize,n.textAlign=="left"||i.barcodePadding>0?(a=0,o.setAttribute("text-anchor","start")):n.textAlign=="right"?(a=i.width-1,o.setAttribute("text-anchor","end")):(a=i.width/2,o.setAttribute("text-anchor","middle")),o.setAttribute("x",a),o.setAttribute("y",s),o.appendChild(this.document.createTextNode(i.text)),t.appendChild(o)}}},{key:"setSvgAttributes",value:function(t,n){var i=this.svg;i.setAttribute("width",t+"px"),i.setAttribute("height",n+"px"),i.setAttribute("x","0px"),i.setAttribute("y","0px"),i.setAttribute("viewBox","0 0 "+t+" "+n),i.setAttribute("xmlns",da),i.setAttribute("version","1.1"),i.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(t,n,i){var o=this.document.createElementNS(da,"g");return o.setAttribute("transform","translate("+t+", "+n+")"),i.appendChild(o),o}},{key:"setGroupOptions",value:function(t,n){t.setAttribute("style","fill:"+n.lineColor+";")}},{key:"drawRect",value:function(t,n,i,o,a){var s=this.document.createElementNS(da,"rect");return s.setAttribute("x",t),s.setAttribute("y",n),s.setAttribute("width",i),s.setAttribute("height",o),a.appendChild(s),s}}]),r}();gu.default=CN;var Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});var AN=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();function DN(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var XN=function(){function r(e,t,n){DN(this,r),this.object=e,this.encodings=t,this.options=n}return AN(r,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),r}();Ru.default=XN;Object.defineProperty(du,"__esModule",{value:!0});var UN=pu,WN=mu(UN),VN=gu,YN=mu(VN),kN=Ru,ZN=mu(kN);function mu(r){return r&&r.__esModule?r:{default:r}}du.default={CanvasRenderer:WN.default,SVGRenderer:YN.default,ObjectRenderer:ZN.default};var zi={};Object.defineProperty(zi,"__esModule",{value:!0});function vu(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function yu(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function wu(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var QN=function(r){wu(e,r);function e(t,n){vu(this,e);var i=yu(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.name="InvalidInputException",i.symbology=t,i.input=n,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return e}(Error),KN=function(r){wu(e,r);function e(){vu(this,e);var t=yu(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="InvalidElementException",t.message="Not supported type to render on",t}return e}(Error),HN=function(r){wu(e,r);function e(){vu(this,e);var t=yu(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="NoElementException",t.message="No element to render on.",t}return e}(Error);zi.InvalidInputException=QN;zi.InvalidElementException=KN;zi.NoElementException=HN;Object.defineProperty(hu,"__esModule",{value:!0});var BN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},GN=fu,rc=o1(GN),JN=du,vo=o1(JN),zN=zi;function o1(r){return r&&r.__esModule?r:{default:r}}function Su(r){if(typeof r=="string")return $N(r);if(Array.isArray(r)){for(var e=[],t=0;t<r.length;t++)e.push(Su(r[t]));return e}else{if(typeof HTMLCanvasElement!="undefined"&&r instanceof HTMLImageElement)return jN(r);if(r&&r.nodeName&&r.nodeName.toLowerCase()==="svg"||typeof SVGElement!="undefined"&&r instanceof SVGElement)return{element:r,options:(0,rc.default)(r),renderer:vo.default.SVGRenderer};if(typeof HTMLCanvasElement!="undefined"&&r instanceof HTMLCanvasElement)return{element:r,options:(0,rc.default)(r),renderer:vo.default.CanvasRenderer};if(r&&r.getContext)return{element:r,renderer:vo.default.CanvasRenderer};if(r&&(typeof r=="undefined"?"undefined":BN(r))==="object"&&!r.nodeName)return{element:r,renderer:vo.default.ObjectRenderer};throw new zN.InvalidElementException}}function $N(r){var e=document.querySelectorAll(r);if(e.length!==0){for(var t=[],n=0;n<e.length;n++)t.push(Su(e[n]));return t}}function jN(r){var e=document.createElement("canvas");return{element:e,options:(0,rc.default)(r),renderer:vo.default.CanvasRenderer,afterRender:function(){r.setAttribute("src",e.toDataURL())}}}hu.default=Su;var xu={};Object.defineProperty(xu,"__esModule",{value:!0});var qN=function(){function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();function eM(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var tM=function(){function r(e){eM(this,r),this.api=e}return qN(r,[{key:"handleCatch",value:function(t){if(t.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw t.message;else throw t;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(t){try{var n=t.apply(void 0,arguments);return this.api._options.valid(!0),n}catch(i){return this.handleCatch(i),this.api}}}]),r}();xu.default=tM;var rM=Hc,ei=Wn(rM),nM=Ji,Yo=Wn(nM),iM=cu,a1=Wn(iM),oM=uu,kf=Wn(oM),aM=hu,sM=Wn(aM),lM=cs,cM=Wn(lM),uM=xu,hM=Wn(uM),s1=zi,fM=us,l1=Wn(fM);function Wn(r){return r&&r.__esModule?r:{default:r}}var wn=function(){},hs=function(e,t,n){var i=new wn;if(typeof e=="undefined")throw Error("No element to render on was provided.");return i._renderProperties=(0,sM.default)(e),i._encodings=[],i._options=l1.default,i._errorHandler=new hM.default(i),typeof t!="undefined"&&(n=n||{},n.format||(n.format=u1()),i.options(n)[n.format](t,n).render()),i};hs.getModule=function(r){return ei.default[r]};for(var Zf in ei.default)ei.default.hasOwnProperty(Zf)&&dM(ei.default,Zf);function dM(r,e){wn.prototype[e]=wn.prototype[e.toUpperCase()]=wn.prototype[e.toLowerCase()]=function(t,n){var i=this;return i._errorHandler.wrapBarcodeCall(function(){n.text=typeof n.text=="undefined"?void 0:""+n.text;var o=(0,Yo.default)(i._options,n);o=(0,cM.default)(o);var a=r[e],s=c1(t,a,o);return i._encodings.push(s),i})}}function c1(r,e,t){r=""+r;var n=new e(r,t);if(!n.valid())throw new s1.InvalidInputException(n.constructor.name,r);var i=n.encode();i=(0,a1.default)(i);for(var o=0;o<i.length;o++)i[o].options=(0,Yo.default)(t,i[o].options);return i}function u1(){return ei.default.CODE128?"CODE128":Object.keys(ei.default)[0]}wn.prototype.options=function(r){return this._options=(0,Yo.default)(this._options,r),this};wn.prototype.blank=function(r){var e=new Array(r+1).join("0");return this._encodings.push({data:e}),this};wn.prototype.init=function(){if(!!this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var r;for(var e in this._renderProperties){r=this._renderProperties[e];var t=(0,Yo.default)(this._options,r.options);t.format=="auto"&&(t.format=u1()),this._errorHandler.wrapBarcodeCall(function(){var n=t.value,i=ei.default[t.format.toUpperCase()],o=c1(n,i,t);nc(r,o,t)})}}};wn.prototype.render=function(){if(!this._renderProperties)throw new s1.NoElementException;if(Array.isArray(this._renderProperties))for(var r=0;r<this._renderProperties.length;r++)nc(this._renderProperties[r],this._encodings,this._options);else nc(this._renderProperties,this._encodings,this._options);return this};wn.prototype._defaults=l1.default;function nc(r,e,t){e=(0,a1.default)(e);for(var n=0;n<e.length;n++)e[n].options=(0,Yo.default)(t,e[n].options),(0,kf.default)(e[n].options);(0,kf.default)(t);var i=r.renderer,o=new i(r.element,e,t);o.render(),r.afterRender&&r.afterRender()}typeof window!="undefined"&&(window.JsBarcode=hs);typeof jQuery!="undefined"&&(jQuery.fn.JsBarcode=function(r,e){var t=[];return jQuery(this).each(function(){t.push(this)}),hs(t,r,e)});var pM=hs;function gM(r){return`data:image/svg+xml;base64,${btoa(decodeURIComponent(r.outerHTML))}`}function RM(r,e){const t=document.createElement("svg");pM(t,e.content),r.executeInsertElementList([{type:ae.IMAGE,value:gM(t),width:e.width,height:e.height}])}function mM(r,e){var t=Object.setPrototypeOf;t?t(r,e):r.__proto__=e}function vM(r,e){e===void 0&&(e=r.constructor);var t=Error.captureStackTrace;t&&t(r,e)}var yM=function(){var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a])},r(t,n)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),wM=function(r){yM(e,r);function e(t,n){var i=this.constructor,o=r.call(this,t,n)||this;return Object.defineProperty(o,"name",{value:i.name,enumerable:!1,configurable:!0}),mM(o,i.prototype),vM(o),o}return e}(Error),SM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Tr=function(r){SM(e,r);function e(t){t===void 0&&(t=void 0);var n=r.call(this,t)||this;return n.message=t,n}return e.prototype.getKind=function(){var t=this.constructor;return t.kind},e.kind="Exception",e}(wM),xM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xt=function(r){xM(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="ArgumentException",e}(Tr),bM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xe=function(r){bM(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="IllegalArgumentException",e}(Tr),h1=function(){function r(e){if(this.binarizer=e,e===null)throw new Xe("Binarizer must be non-null.")}return r.prototype.getWidth=function(){return this.binarizer.getWidth()},r.prototype.getHeight=function(){return this.binarizer.getHeight()},r.prototype.getBlackRow=function(e,t){return this.binarizer.getBlackRow(e,t)},r.prototype.getBlackMatrix=function(){return(this.matrix===null||this.matrix===void 0)&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},r.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},r.prototype.crop=function(e,t,n,i){var o=this.binarizer.getLuminanceSource().crop(e,t,n,i);return new r(this.binarizer.createBinarizer(o))},r.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},r.prototype.rotateCounterClockwise=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new r(this.binarizer.createBinarizer(e))},r.prototype.rotateCounterClockwise45=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new r(this.binarizer.createBinarizer(e))},r.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},r}(),OM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Yt=function(r){OM(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getChecksumInstance=function(){return new e},e.kind="ChecksumException",e}(Tr),TM=function(){function r(e){this.source=e}return r.prototype.getLuminanceSource=function(){return this.source},r.prototype.getWidth=function(){return this.source.getWidth()},r.prototype.getHeight=function(){return this.source.getHeight()},r}(),mt=function(){function r(){}return r.arraycopy=function(e,t,n,i,o){for(;o--;)n[i++]=e[t++]},r.currentTimeMillis=function(){return Date.now()},r}(),PM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),bu=function(r){PM(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="IndexOutOfBoundsException",e}(Tr),EM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Qf=function(r){EM(e,r);function e(t,n){t===void 0&&(t=void 0),n===void 0&&(n=void 0);var i=r.call(this,n)||this;return i.index=t,i.message=n,i}return e.kind="ArrayIndexOutOfBoundsException",e}(bu),_M=globalThis&&globalThis.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Bt=function(){function r(){}return r.fill=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n]=t},r.fillWithin=function(e,t,n,i){r.rangeCheck(e.length,t,n);for(var o=t;o<n;o++)e[o]=i},r.rangeCheck=function(e,t,n){if(t>n)throw new Xe("fromIndex("+t+") > toIndex("+n+")");if(t<0)throw new Qf(t);if(n>e)throw new Qf(n)},r.asList=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},r.create=function(e,t,n){var i=Array.from({length:e});return i.map(function(o){return Array.from({length:t}).fill(n)})},r.createInt32Array=function(e,t,n){var i=Array.from({length:e});return i.map(function(o){return Int32Array.from({length:t}).fill(n)})},r.equals=function(e,t){if(!e||!t||!e.length||!t.length||e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n++)if(e[n]!==t[n])return!1;return!0},r.hashCode=function(e){var t,n;if(e===null)return 0;var i=1;try{for(var o=_M(e),a=o.next();!a.done;a=o.next()){var s=a.value;i=31*i+s}}catch(l){t={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i},r.fillUint8Array=function(e,t){for(var n=0;n!==e.length;n++)e[n]=t},r.copyOf=function(e,t){return e.slice(0,t)},r.copyOfUint8Array=function(e,t){if(e.length<=t){var n=new Uint8Array(t);return n.set(e),n}return e.slice(0,t)},r.copyOfRange=function(e,t,n){var i=n-t,o=new Int32Array(i);return mt.arraycopy(e,t,o,0,i),o},r.binarySearch=function(e,t,n){n===void 0&&(n=r.numberComparator);for(var i=0,o=e.length-1;i<=o;){var a=o+i>>1,s=n(t,e[a]);if(s>0)i=a+1;else if(s<0)o=a-1;else return a}return-i-1},r.numberComparator=function(e,t){return e-t},r}(),Ut=function(){function r(){}return r.numberOfTrailingZeros=function(e){var t;if(e===0)return 32;var n=31;return t=e<<16,t!==0&&(n-=16,e=t),t=e<<8,t!==0&&(n-=8,e=t),t=e<<4,t!==0&&(n-=4,e=t),t=e<<2,t!==0&&(n-=2,e=t),n-(e<<1>>>31)},r.numberOfLeadingZeros=function(e){if(e===0)return 32;var t=1;return e>>>16===0&&(t+=16,e<<=16),e>>>24===0&&(t+=8,e<<=8),e>>>28===0&&(t+=4,e<<=4),e>>>30===0&&(t+=2,e<<=2),t-=e>>>31,t},r.toHexString=function(e){return e.toString(16)},r.toBinaryString=function(e){return String(parseInt(String(e),2))},r.bitCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e=e+(e>>>8),e=e+(e>>>16),e&63},r.truncDivision=function(e,t){return Math.trunc(e/t)},r.parseInt=function(e,t){return t===void 0&&(t=void 0),parseInt(e,t)},r.MIN_VALUE_32_BITS=-2147483648,r.MAX_VALUE=Number.MAX_SAFE_INTEGER,r}(),br=function(){function r(e,t){e===void 0?(this.size=0,this.bits=new Int32Array(1)):(this.size=e,t==null?this.bits=r.makeArray(e):this.bits=t)}return r.prototype.getSize=function(){return this.size},r.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},r.prototype.ensureCapacity=function(e){if(e>this.bits.length*32){var t=r.makeArray(e);mt.arraycopy(this.bits,0,t,0,this.bits.length),this.bits=t}},r.prototype.get=function(e){return(this.bits[Math.floor(e/32)]&1<<(e&31))!==0},r.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(e&31)},r.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(e&31)},r.prototype.getNextSet=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,i=Math.floor(e/32),o=n[i];o&=~((1<<(e&31))-1);for(var a=n.length;o===0;){if(++i===a)return t;o=n[i]}var s=i*32+Ut.numberOfTrailingZeros(o);return s>t?t:s},r.prototype.getNextUnset=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,i=Math.floor(e/32),o=~n[i];o&=~((1<<(e&31))-1);for(var a=n.length;o===0;){if(++i===a)return t;o=~n[i]}var s=i*32+Ut.numberOfTrailingZeros(o);return s>t?t:s},r.prototype.setBulk=function(e,t){this.bits[Math.floor(e/32)]=t},r.prototype.setRange=function(e,t){if(t<e||e<0||t>this.size)throw new Xe;if(t!==e){t--;for(var n=Math.floor(e/32),i=Math.floor(t/32),o=this.bits,a=n;a<=i;a++){var s=a>n?0:e&31,l=a<i?31:t&31,c=(2<<l)-(1<<s);o[a]|=c}}},r.prototype.clear=function(){for(var e=this.bits.length,t=this.bits,n=0;n<e;n++)t[n]=0},r.prototype.isRange=function(e,t,n){if(t<e||e<0||t>this.size)throw new Xe;if(t===e)return!0;t--;for(var i=Math.floor(e/32),o=Math.floor(t/32),a=this.bits,s=i;s<=o;s++){var l=s>i?0:e&31,c=s<o?31:t&31,u=(2<<c)-(1<<l)&4294967295;if((a[s]&u)!==(n?u:0))return!1}return!0},r.prototype.appendBit=function(e){this.ensureCapacity(this.size+1),e&&(this.bits[Math.floor(this.size/32)]|=1<<(this.size&31)),this.size++},r.prototype.appendBits=function(e,t){if(t<0||t>32)throw new Xe("Num bits must be between 0 and 32");this.ensureCapacity(this.size+t);for(var n=t;n>0;n--)this.appendBit((e>>n-1&1)===1)},r.prototype.appendBitArray=function(e){var t=e.size;this.ensureCapacity(this.size+t);for(var n=0;n<t;n++)this.appendBit(e.get(n))},r.prototype.xor=function(e){if(this.size!==e.size)throw new Xe("Sizes don't match");for(var t=this.bits,n=0,i=t.length;n<i;n++)t[n]^=e.bits[n]},r.prototype.toBytes=function(e,t,n,i){for(var o=0;o<i;o++){for(var a=0,s=0;s<8;s++)this.get(e)&&(a|=1<<7-s),e++;t[n+o]=a}},r.prototype.getBitArray=function(){return this.bits},r.prototype.reverse=function(){for(var e=new Int32Array(this.bits.length),t=Math.floor((this.size-1)/32),n=t+1,i=this.bits,o=0;o<n;o++){var a=i[o];a=a>>1&1431655765|(a&1431655765)<<1,a=a>>2&858993459|(a&858993459)<<2,a=a>>4&252645135|(a&252645135)<<4,a=a>>8&16711935|(a&16711935)<<8,a=a>>16&65535|(a&65535)<<16,e[t-o]=a}if(this.size!==n*32){for(var s=n*32-this.size,l=e[0]>>>s,o=1;o<n;o++){var c=e[o];l|=c<<32-s,e[o-1]=l,l=c>>>s}e[n-1]=l}this.bits=e},r.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},r.prototype.equals=function(e){if(!(e instanceof r))return!1;var t=e;return this.size===t.size&&Bt.equals(this.bits,t.bits)},r.prototype.hashCode=function(){return 31*this.size+Bt.hashCode(this.bits)},r.prototype.toString=function(){for(var e="",t=0,n=this.size;t<n;t++)(t&7)===0&&(e+=" "),e+=this.get(t)?"X":".";return e},r.prototype.clone=function(){return new r(this.size,this.bits.slice())},r.prototype.toArray=function(){for(var e=[],t=0,n=this.size;t<n;t++)e.push(this.get(t));return e},r}(),ic;(function(r){r[r.OTHER=0]="OTHER",r[r.PURE_BARCODE=1]="PURE_BARCODE",r[r.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",r[r.TRY_HARDER=3]="TRY_HARDER",r[r.CHARACTER_SET=4]="CHARACTER_SET",r[r.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",r[r.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",r[r.ENABLE_CODE_39_EXTENDED_MODE=7]="ENABLE_CODE_39_EXTENDED_MODE",r[r.ASSUME_GS1=8]="ASSUME_GS1",r[r.RETURN_CODABAR_START_END=9]="RETURN_CODABAR_START_END",r[r.NEED_RESULT_POINT_CALLBACK=10]="NEED_RESULT_POINT_CALLBACK",r[r.ALLOWED_EAN_EXTENSIONS=11]="ALLOWED_EAN_EXTENSIONS"})(ic||(ic={}));var vt=ic,IM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ee=function(r){IM(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getFormatInstance=function(){return new e},e.kind="FormatException",e}(Tr),NM=globalThis&&globalThis.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},at;(function(r){r[r.Cp437=0]="Cp437",r[r.ISO8859_1=1]="ISO8859_1",r[r.ISO8859_2=2]="ISO8859_2",r[r.ISO8859_3=3]="ISO8859_3",r[r.ISO8859_4=4]="ISO8859_4",r[r.ISO8859_5=5]="ISO8859_5",r[r.ISO8859_6=6]="ISO8859_6",r[r.ISO8859_7=7]="ISO8859_7",r[r.ISO8859_8=8]="ISO8859_8",r[r.ISO8859_9=9]="ISO8859_9",r[r.ISO8859_10=10]="ISO8859_10",r[r.ISO8859_11=11]="ISO8859_11",r[r.ISO8859_13=12]="ISO8859_13",r[r.ISO8859_14=13]="ISO8859_14",r[r.ISO8859_15=14]="ISO8859_15",r[r.ISO8859_16=15]="ISO8859_16",r[r.SJIS=16]="SJIS",r[r.Cp1250=17]="Cp1250",r[r.Cp1251=18]="Cp1251",r[r.Cp1252=19]="Cp1252",r[r.Cp1256=20]="Cp1256",r[r.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",r[r.UTF8=22]="UTF8",r[r.ASCII=23]="ASCII",r[r.Big5=24]="Big5",r[r.GB18030=25]="GB18030",r[r.EUC_KR=26]="EUC_KR"})(at||(at={}));var Ht=function(){function r(e,t,n){for(var i,o,a=[],s=3;s<arguments.length;s++)a[s-3]=arguments[s];this.valueIdentifier=e,this.name=n,typeof t=="number"?this.values=Int32Array.from([t]):this.values=t,this.otherEncodingNames=a,r.VALUE_IDENTIFIER_TO_ECI.set(e,this),r.NAME_TO_ECI.set(n,this);for(var l=this.values,c=0,u=l.length;c!==u;c++){var h=l[c];r.VALUES_TO_ECI.set(h,this)}try{for(var d=NM(a),f=d.next();!f.done;f=d.next()){var p=f.value;r.NAME_TO_ECI.set(p,this)}}catch(g){i={error:g}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}return r.prototype.getValueIdentifier=function(){return this.valueIdentifier},r.prototype.getName=function(){return this.name},r.prototype.getValue=function(){return this.values[0]},r.getCharacterSetECIByValue=function(e){if(e<0||e>=900)throw new Ee("incorect value");var t=r.VALUES_TO_ECI.get(e);if(t===void 0)throw new Ee("incorect value");return t},r.getCharacterSetECIByName=function(e){var t=r.NAME_TO_ECI.get(e);if(t===void 0)throw new Ee("incorect value");return t},r.prototype.equals=function(e){if(!(e instanceof r))return!1;var t=e;return this.getName()===t.getName()},r.VALUE_IDENTIFIER_TO_ECI=new Map,r.VALUES_TO_ECI=new Map,r.NAME_TO_ECI=new Map,r.Cp437=new r(at.Cp437,Int32Array.from([0,2]),"Cp437"),r.ISO8859_1=new r(at.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),r.ISO8859_2=new r(at.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),r.ISO8859_3=new r(at.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),r.ISO8859_4=new r(at.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),r.ISO8859_5=new r(at.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),r.ISO8859_6=new r(at.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),r.ISO8859_7=new r(at.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),r.ISO8859_8=new r(at.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),r.ISO8859_9=new r(at.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),r.ISO8859_10=new r(at.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),r.ISO8859_11=new r(at.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),r.ISO8859_13=new r(at.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),r.ISO8859_14=new r(at.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),r.ISO8859_15=new r(at.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),r.ISO8859_16=new r(at.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),r.SJIS=new r(at.SJIS,20,"SJIS","Shift_JIS"),r.Cp1250=new r(at.Cp1250,21,"Cp1250","windows-1250"),r.Cp1251=new r(at.Cp1251,22,"Cp1251","windows-1251"),r.Cp1252=new r(at.Cp1252,23,"Cp1252","windows-1252"),r.Cp1256=new r(at.Cp1256,24,"Cp1256","windows-1256"),r.UnicodeBigUnmarked=new r(at.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),r.UTF8=new r(at.UTF8,26,"UTF8","UTF-8"),r.ASCII=new r(at.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),r.Big5=new r(at.Big5,28,"Big5"),r.GB18030=new r(at.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),r.EUC_KR=new r(at.EUC_KR,30,"EUC_KR","EUC-KR"),r}(),MM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Pa=function(r){MM(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="UnsupportedOperationException",e}(Tr),Yr=function(){function r(){}return r.decode=function(e,t){var n=this.encodingName(t);return this.customDecoder?this.customDecoder(e,n):typeof TextDecoder=="undefined"||this.shouldDecodeOnFallback(n)?this.decodeFallback(e,n):new TextDecoder(n).decode(e)},r.shouldDecodeOnFallback=function(e){return!r.isBrowser()&&e==="ISO-8859-1"},r.encode=function(e,t){var n=this.encodingName(t);return this.customEncoder?this.customEncoder(e,n):typeof TextEncoder=="undefined"?this.encodeFallback(e):new TextEncoder().encode(e)},r.isBrowser=function(){return typeof window!="undefined"&&{}.toString.call(window)==="[object Window]"},r.encodingName=function(e){return typeof e=="string"?e:e.getName()},r.encodingCharacterSet=function(e){return e instanceof Ht?e:Ht.getCharacterSetECIByName(e)},r.decodeFallback=function(e,t){var n=this.encodingCharacterSet(t);if(r.isDecodeFallbackSupported(n)){for(var i="",o=0,a=e.length;o<a;o++){var s=e[o].toString(16);s.length<2&&(s="0"+s),i+="%"+s}return decodeURIComponent(i)}if(n.equals(Ht.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(e.buffer));throw new Pa("Encoding "+this.encodingName(t)+" not supported by fallback.")},r.isDecodeFallbackSupported=function(e){return e.equals(Ht.UTF8)||e.equals(Ht.ISO8859_1)||e.equals(Ht.ASCII)},r.encodeFallback=function(e){for(var t=btoa(unescape(encodeURIComponent(e))),n=t.split(""),i=[],o=0;o<n.length;o++)i.push(n[o].charCodeAt(0));return new Uint8Array(i)},r}(),Rt=function(){function r(){}return r.castAsNonUtf8Char=function(e,t){t===void 0&&(t=null);var n=t?t.getName():this.ISO88591;return Yr.decode(new Uint8Array([e]),n)},r.guessEncoding=function(e,t){if(t!=null&&t.get(vt.CHARACTER_SET)!==void 0)return t.get(vt.CHARACTER_SET).toString();for(var n=e.length,i=!0,o=!0,a=!0,s=0,l=0,c=0,u=0,h=0,d=0,f=0,p=0,g=0,v=0,R=0,m=e.length>3&&e[0]===239&&e[1]===187&&e[2]===191,x=0;x<n&&(i||o||a);x++){var T=e[x]&255;a&&(s>0?(T&128)===0?a=!1:s--:(T&128)!==0&&((T&64)===0?a=!1:(s++,(T&32)===0?l++:(s++,(T&16)===0?c++:(s++,(T&8)===0?u++:a=!1))))),i&&(T>127&&T<160?i=!1:T>159&&(T<192||T===215||T===247)&&R++),o&&(h>0?T<64||T===127||T>252?o=!1:h--:T===128||T===160||T>239?o=!1:T>160&&T<224?(d++,p=0,f++,f>g&&(g=f)):T>127?(h++,f=0,p++,p>v&&(v=p)):(f=0,p=0))}return a&&s>0&&(a=!1),o&&h>0&&(o=!1),a&&(m||l+c+u>0)?r.UTF8:o&&(r.ASSUME_SHIFT_JIS||g>=3||v>=3)?r.SHIFT_JIS:i&&o?g===2&&d===2||R*10>=n?r.SHIFT_JIS:r.ISO88591:i?r.ISO88591:o?r.SHIFT_JIS:a?r.UTF8:r.PLATFORM_DEFAULT_ENCODING},r.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=-1;function o(s,l,c,u,h,d){if(s==="%%")return"%";if(t[++i]!==void 0){s=u?parseInt(u.substr(1)):void 0;var f=h?parseInt(h.substr(1)):void 0,p;switch(d){case"s":p=t[i];break;case"c":p=t[i][0];break;case"f":p=parseFloat(t[i]).toFixed(s);break;case"p":p=parseFloat(t[i]).toPrecision(s);break;case"e":p=parseFloat(t[i]).toExponential(s);break;case"x":p=parseInt(t[i]).toString(f||16);break;case"d":p=parseFloat(parseInt(t[i],f||10).toPrecision(s)).toFixed(0);break}p=typeof p=="object"?JSON.stringify(p):(+p).toString(f);for(var g=parseInt(c),v=c&&c[0]+""=="0"?"0":" ";p.length<g;)p=l!==void 0?p+v:v+p;return p}}var a=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return e.replace(a,o)},r.getBytes=function(e,t){return Yr.encode(e,t)},r.getCharCode=function(e,t){return t===void 0&&(t=0),e.charCodeAt(t)},r.getCharAt=function(e){return String.fromCharCode(e)},r.SHIFT_JIS=Ht.SJIS.getName(),r.GB2312="GB2312",r.ISO88591=Ht.ISO8859_1.getName(),r.EUC_JP="EUC_JP",r.UTF8=Ht.UTF8.getName(),r.PLATFORM_DEFAULT_ENCODING=r.UTF8,r.ASSUME_SHIFT_JIS=!1,r}(),Ze=function(){function r(e){e===void 0&&(e=""),this.value=e}return r.prototype.enableDecoding=function(e){return this.encoding=e,this},r.prototype.append=function(e){return typeof e=="string"?this.value+=e.toString():this.encoding?this.value+=Rt.castAsNonUtf8Char(e,this.encoding):this.value+=String.fromCharCode(e),this},r.prototype.appendChars=function(e,t,n){for(var i=t;t<t+n;i++)this.append(e[i]);return this},r.prototype.length=function(){return this.value.length},r.prototype.charAt=function(e){return this.value.charAt(e)},r.prototype.deleteCharAt=function(e){this.value=this.value.substr(0,e)+this.value.substring(e+1)},r.prototype.setCharAt=function(e,t){this.value=this.value.substr(0,e)+t+this.value.substr(e+1)},r.prototype.substring=function(e,t){return this.value.substring(e,t)},r.prototype.setLengthToZero=function(){this.value=""},r.prototype.toString=function(){return this.value},r.prototype.insert=function(e,t){this.value=this.value.substring(0,e)+t+this.value.substring(e)},r}(),Sn=function(){function r(e,t,n,i){if(this.width=e,this.height=t,this.rowSize=n,this.bits=i,t==null&&(t=e),this.height=t,e<1||t<1)throw new Xe("Both dimensions must be greater than 0");n==null&&(n=Math.floor((e+31)/32)),this.rowSize=n,i==null&&(this.bits=new Int32Array(this.rowSize*this.height))}return r.parseFromBooleanArray=function(e){for(var t=e.length,n=e[0].length,i=new r(n,t),o=0;o<t;o++)for(var a=e[o],s=0;s<n;s++)a[s]&&i.set(s,o);return i},r.parseFromString=function(e,t,n){if(e===null)throw new Xe("stringRepresentation cannot be null");for(var i=new Array(e.length),o=0,a=0,s=-1,l=0,c=0;c<e.length;)if(e.charAt(c)===`
|
|
`||e.charAt(c)==="\r"){if(o>a){if(s===-1)s=o-a;else if(o-a!==s)throw new Xe("row lengths do not match");a=o,l++}c++}else if(e.substring(c,c+t.length)===t)c+=t.length,i[o]=!0,o++;else if(e.substring(c,c+n.length)===n)c+=n.length,i[o]=!1,o++;else throw new Xe("illegal character encountered: "+e.substring(c));if(o>a){if(s===-1)s=o-a;else if(o-a!==s)throw new Xe("row lengths do not match");l++}for(var u=new r(s,l),h=0;h<o;h++)i[h]&&u.set(Math.floor(h%s),Math.floor(h/s));return u},r.prototype.get=function(e,t){var n=t*this.rowSize+Math.floor(e/32);return(this.bits[n]>>>(e&31)&1)!==0},r.prototype.set=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]|=1<<(e&31)&4294967295},r.prototype.unset=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]&=~(1<<(e&31)&4294967295)},r.prototype.flip=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]^=1<<(e&31)&4294967295},r.prototype.xor=function(e){if(this.width!==e.getWidth()||this.height!==e.getHeight()||this.rowSize!==e.getRowSize())throw new Xe("input matrix dimensions do not match");for(var t=new br(Math.floor(this.width/32)+1),n=this.rowSize,i=this.bits,o=0,a=this.height;o<a;o++)for(var s=o*n,l=e.getRow(o,t).getBitArray(),c=0;c<n;c++)i[s+c]^=l[c]},r.prototype.clear=function(){for(var e=this.bits,t=e.length,n=0;n<t;n++)e[n]=0},r.prototype.setRegion=function(e,t,n,i){if(t<0||e<0)throw new Xe("Left and top must be nonnegative");if(i<1||n<1)throw new Xe("Height and width must be at least 1");var o=e+n,a=t+i;if(a>this.height||o>this.width)throw new Xe("The region must fit inside the matrix");for(var s=this.rowSize,l=this.bits,c=t;c<a;c++)for(var u=c*s,h=e;h<o;h++)l[u+Math.floor(h/32)]|=1<<(h&31)&4294967295},r.prototype.getRow=function(e,t){t==null||t.getSize()<this.width?t=new br(this.width):t.clear();for(var n=this.rowSize,i=this.bits,o=e*n,a=0;a<n;a++)t.setBulk(a*32,i[o+a]);return t},r.prototype.setRow=function(e,t){mt.arraycopy(t.getBitArray(),0,this.bits,e*this.rowSize,this.rowSize)},r.prototype.rotate180=function(){for(var e=this.getWidth(),t=this.getHeight(),n=new br(e),i=new br(e),o=0,a=Math.floor((t+1)/2);o<a;o++)n=this.getRow(o,n),i=this.getRow(t-1-o,i),n.reverse(),i.reverse(),this.setRow(o,i),this.setRow(t-1-o,n)},r.prototype.getEnclosingRectangle=function(){for(var e=this.width,t=this.height,n=this.rowSize,i=this.bits,o=e,a=t,s=-1,l=-1,c=0;c<t;c++)for(var u=0;u<n;u++){var h=i[c*n+u];if(h!==0){if(c<a&&(a=c),c>l&&(l=c),u*32<o){for(var d=0;(h<<31-d&4294967295)===0;)d++;u*32+d<o&&(o=u*32+d)}if(u*32+31>s){for(var d=31;h>>>d===0;)d--;u*32+d>s&&(s=u*32+d)}}}return s<o||l<a?null:Int32Array.from([o,a,s-o+1,l-a+1])},r.prototype.getTopLeftOnBit=function(){for(var e=this.rowSize,t=this.bits,n=0;n<t.length&&t[n]===0;)n++;if(n===t.length)return null;for(var i=n/e,o=n%e*32,a=t[n],s=0;(a<<31-s&4294967295)===0;)s++;return o+=s,Int32Array.from([o,i])},r.prototype.getBottomRightOnBit=function(){for(var e=this.rowSize,t=this.bits,n=t.length-1;n>=0&&t[n]===0;)n--;if(n<0)return null;for(var i=Math.floor(n/e),o=Math.floor(n%e)*32,a=t[n],s=31;a>>>s===0;)s--;return o+=s,Int32Array.from([o,i])},r.prototype.getWidth=function(){return this.width},r.prototype.getHeight=function(){return this.height},r.prototype.getRowSize=function(){return this.rowSize},r.prototype.equals=function(e){if(!(e instanceof r))return!1;var t=e;return this.width===t.width&&this.height===t.height&&this.rowSize===t.rowSize&&Bt.equals(this.bits,t.bits)},r.prototype.hashCode=function(){var e=this.width;return e=31*e+this.width,e=31*e+this.height,e=31*e+this.rowSize,e=31*e+Bt.hashCode(this.bits),e},r.prototype.toString=function(e,t,n){return e===void 0&&(e="X "),t===void 0&&(t=" "),n===void 0&&(n=`
|
|
`),this.buildToString(e,t,n)},r.prototype.buildToString=function(e,t,n){for(var i=new Ze,o=0,a=this.height;o<a;o++){for(var s=0,l=this.width;s<l;s++)i.append(this.get(s,o)?e:t);i.append(n)}return i.toString()},r.prototype.clone=function(){return new r(this.width,this.height,this.rowSize,this.bits.slice())},r}(),LM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),we=function(r){LM(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getNotFoundInstance=function(){return new e},e.kind="NotFoundException",e}(Tr),FM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),CM=function(r){FM(e,r);function e(t){var n=r.call(this,t)||this;return n.luminances=e.EMPTY,n.buckets=new Int32Array(e.LUMINANCE_BUCKETS),n}return e.prototype.getBlackRow=function(t,n){var i=this.getLuminanceSource(),o=i.getWidth();n==null||n.getSize()<o?n=new br(o):n.clear(),this.initArrays(o);for(var a=i.getRow(t,this.luminances),s=this.buckets,l=0;l<o;l++)s[(a[l]&255)>>e.LUMINANCE_SHIFT]++;var c=e.estimateBlackPoint(s);if(o<3)for(var l=0;l<o;l++)(a[l]&255)<c&&n.set(l);else for(var u=a[0]&255,h=a[1]&255,l=1;l<o-1;l++){var d=a[l+1]&255;(h*4-u-d)/2<c&&n.set(l),u=h,h=d}return n},e.prototype.getBlackMatrix=function(){var t=this.getLuminanceSource(),n=t.getWidth(),i=t.getHeight(),o=new Sn(n,i);this.initArrays(n);for(var a=this.buckets,s=1;s<5;s++)for(var l=Math.floor(i*s/5),c=t.getRow(l,this.luminances),u=Math.floor(n*4/5),h=Math.floor(n/5);h<u;h++){var d=c[h]&255;a[d>>e.LUMINANCE_SHIFT]++}for(var f=e.estimateBlackPoint(a),p=t.getMatrix(),s=0;s<i;s++)for(var g=s*n,h=0;h<n;h++){var d=p[g+h]&255;d<f&&o.set(h,s)}return o},e.prototype.createBinarizer=function(t){return new e(t)},e.prototype.initArrays=function(t){this.luminances.length<t&&(this.luminances=new Uint8ClampedArray(t));for(var n=this.buckets,i=0;i<e.LUMINANCE_BUCKETS;i++)n[i]=0},e.estimateBlackPoint=function(t){for(var n=t.length,i=0,o=0,a=0,s=0;s<n;s++)t[s]>a&&(o=s,a=t[s]),t[s]>i&&(i=t[s]);for(var l=0,c=0,s=0;s<n;s++){var u=s-o,h=t[s]*u*u;h>c&&(l=s,c=h)}if(o>l){var d=o;o=l,l=d}if(l-o<=n/16)throw new we;for(var f=l-1,p=-1,s=l-1;s>o;s--){var g=s-o,h=g*g*(l-s)*(i-t[s]);h>p&&(f=s,p=h)}return f<<e.LUMINANCE_SHIFT},e.LUMINANCE_BITS=5,e.LUMINANCE_SHIFT=8-e.LUMINANCE_BITS,e.LUMINANCE_BUCKETS=1<<e.LUMINANCE_BITS,e.EMPTY=Uint8ClampedArray.from([0]),e}(TM),AM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),f1=function(r){AM(e,r);function e(t){var n=r.call(this,t)||this;return n.matrix=null,n}return e.prototype.getBlackMatrix=function(){if(this.matrix!==null)return this.matrix;var t=this.getLuminanceSource(),n=t.getWidth(),i=t.getHeight();if(n>=e.MINIMUM_DIMENSION&&i>=e.MINIMUM_DIMENSION){var o=t.getMatrix(),a=n>>e.BLOCK_SIZE_POWER;(n&e.BLOCK_SIZE_MASK)!==0&&a++;var s=i>>e.BLOCK_SIZE_POWER;(i&e.BLOCK_SIZE_MASK)!==0&&s++;var l=e.calculateBlackPoints(o,a,s,n,i),c=new Sn(n,i);e.calculateThresholdForBlock(o,a,s,n,i,l,c),this.matrix=c}else this.matrix=r.prototype.getBlackMatrix.call(this);return this.matrix},e.prototype.createBinarizer=function(t){return new e(t)},e.calculateThresholdForBlock=function(t,n,i,o,a,s,l){for(var c=a-e.BLOCK_SIZE,u=o-e.BLOCK_SIZE,h=0;h<i;h++){var d=h<<e.BLOCK_SIZE_POWER;d>c&&(d=c);for(var f=e.cap(h,2,i-3),p=0;p<n;p++){var g=p<<e.BLOCK_SIZE_POWER;g>u&&(g=u);for(var v=e.cap(p,2,n-3),R=0,m=-2;m<=2;m++){var x=s[f+m];R+=x[v-2]+x[v-1]+x[v]+x[v+1]+x[v+2]}var T=R/25;e.thresholdBlock(t,g,d,T,o,l)}}},e.cap=function(t,n,i){return t<n?n:t>i?i:t},e.thresholdBlock=function(t,n,i,o,a,s){for(var l=0,c=i*a+n;l<e.BLOCK_SIZE;l++,c+=a)for(var u=0;u<e.BLOCK_SIZE;u++)(t[c+u]&255)<=o&&s.set(n+u,i+l)},e.calculateBlackPoints=function(t,n,i,o,a){for(var s=a-e.BLOCK_SIZE,l=o-e.BLOCK_SIZE,c=new Array(i),u=0;u<i;u++){c[u]=new Int32Array(n);var h=u<<e.BLOCK_SIZE_POWER;h>s&&(h=s);for(var d=0;d<n;d++){var f=d<<e.BLOCK_SIZE_POWER;f>l&&(f=l);for(var p=0,g=255,v=0,R=0,m=h*o+f;R<e.BLOCK_SIZE;R++,m+=o){for(var x=0;x<e.BLOCK_SIZE;x++){var T=t[m+x]&255;p+=T,T<g&&(g=T),T>v&&(v=T)}if(v-g>e.MIN_DYNAMIC_RANGE)for(R++,m+=o;R<e.BLOCK_SIZE;R++,m+=o)for(var x=0;x<e.BLOCK_SIZE;x++)p+=t[m+x]&255}var P=p>>e.BLOCK_SIZE_POWER*2;if(v-g<=e.MIN_DYNAMIC_RANGE&&(P=g/2,u>0&&d>0)){var A=(c[u-1][d]+2*c[u][d-1]+c[u-1][d-1])/4;g<A&&(P=A)}c[u][d]=P}}return c},e.BLOCK_SIZE_POWER=3,e.BLOCK_SIZE=1<<e.BLOCK_SIZE_POWER,e.BLOCK_SIZE_MASK=e.BLOCK_SIZE-1,e.MINIMUM_DIMENSION=e.BLOCK_SIZE*5,e.MIN_DYNAMIC_RANGE=24,e}(CM),ko=function(){function r(e,t){this.width=e,this.height=t}return r.prototype.getWidth=function(){return this.width},r.prototype.getHeight=function(){return this.height},r.prototype.isCropSupported=function(){return!1},r.prototype.crop=function(e,t,n,i){throw new Pa("This luminance source does not support cropping.")},r.prototype.isRotateSupported=function(){return!1},r.prototype.rotateCounterClockwise=function(){throw new Pa("This luminance source does not support rotation by 90 degrees.")},r.prototype.rotateCounterClockwise45=function(){throw new Pa("This luminance source does not support rotation by 45 degrees.")},r.prototype.toString=function(){for(var e=new Uint8ClampedArray(this.width),t=new Ze,n=0;n<this.height;n++){for(var i=this.getRow(n,e),o=0;o<this.width;o++){var a=i[o]&255,s=void 0;a<64?s="#":a<128?s="+":a<192?s=".":s=" ",t.append(s)}t.append(`
|
|
`)}return t.toString()},r}(),DM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),fs=function(r){DM(e,r);function e(t){var n=r.call(this,t.getWidth(),t.getHeight())||this;return n.delegate=t,n}return e.prototype.getRow=function(t,n){for(var i=this.delegate.getRow(t,n),o=this.getWidth(),a=0;a<o;a++)i[a]=255-(i[a]&255);return i},e.prototype.getMatrix=function(){for(var t=this.delegate.getMatrix(),n=this.getWidth()*this.getHeight(),i=new Uint8ClampedArray(n),o=0;o<n;o++)i[o]=255-(t[o]&255);return i},e.prototype.isCropSupported=function(){return this.delegate.isCropSupported()},e.prototype.crop=function(t,n,i,o){return new e(this.delegate.crop(t,n,i,o))},e.prototype.isRotateSupported=function(){return this.delegate.isRotateSupported()},e.prototype.invert=function(){return this.delegate},e.prototype.rotateCounterClockwise=function(){return new e(this.delegate.rotateCounterClockwise())},e.prototype.rotateCounterClockwise45=function(){return new e(this.delegate.rotateCounterClockwise45())},e}(ko),XM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),UM=function(r){XM(e,r);function e(t){var n=r.call(this,t.width,t.height)||this;return n.canvas=t,n.tempCanvasElement=null,n.buffer=e.makeBufferFromCanvasImageData(t),n}return e.makeBufferFromCanvasImageData=function(t){var n=t.getContext("2d").getImageData(0,0,t.width,t.height);return e.toGrayscaleBuffer(n.data,t.width,t.height)},e.toGrayscaleBuffer=function(t,n,i){var o=new Uint8ClampedArray(n*i);if(e.FRAME_INDEX=!e.FRAME_INDEX,e.FRAME_INDEX)for(var a=0,s=0,l=t.length;a<l;a+=4,s++){var c=void 0,u=t[a+3];if(u===0)c=255;else{var h=t[a],d=t[a+1],f=t[a+2];c=306*h+601*d+117*f+512>>10}o[s]=c}else for(var a=0,s=0,p=t.length;a<p;a+=4,s++){var c=void 0,u=t[a+3];if(u===0)c=255;else{var h=t[a],d=t[a+1],f=t[a+2];c=306*h+601*d+117*f+512>>10}o[s]=255-c}return o},e.prototype.getRow=function(t,n){if(t<0||t>=this.getHeight())throw new Xe("Requested row is outside the image: "+t);var i=this.getWidth(),o=t*i;return n===null?n=this.buffer.slice(o,o+i):(n.length<i&&(n=new Uint8ClampedArray(i)),n.set(this.buffer.slice(o,o+i))),n},e.prototype.getMatrix=function(){return this.buffer},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(t,n,i,o){return r.prototype.crop.call(this,t,n,i,o),this},e.prototype.isRotateSupported=function(){return!0},e.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},e.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},e.prototype.getTempCanvasElement=function(){if(this.tempCanvasElement===null){var t=this.canvas.ownerDocument.createElement("canvas");t.width=this.canvas.width,t.height=this.canvas.height,this.tempCanvasElement=t}return this.tempCanvasElement},e.prototype.rotate=function(t){var n=this.getTempCanvasElement(),i=n.getContext("2d"),o=t*e.DEGREE_TO_RADIANS,a=this.canvas.width,s=this.canvas.height,l=Math.ceil(Math.abs(Math.cos(o))*a+Math.abs(Math.sin(o))*s),c=Math.ceil(Math.abs(Math.sin(o))*a+Math.abs(Math.cos(o))*s);return n.width=l,n.height=c,i.translate(l/2,c/2),i.rotate(o),i.drawImage(this.canvas,a/-2,s/-2),this.buffer=e.makeBufferFromCanvasImageData(n),this},e.prototype.invert=function(){return new fs(this)},e.DEGREE_TO_RADIANS=Math.PI/180,e.FRAME_INDEX=!0,e}(ko),WM=function(){function r(e,t,n){this.deviceId=e,this.label=t,this.kind="videoinput",this.groupId=n||void 0}return r.prototype.toJSON=function(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}},r}(),mr=globalThis&&globalThis.__awaiter||function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(u){try{c(n.next(u))}catch(h){a(h)}}function l(u){try{c(n.throw(u))}catch(h){a(h)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((n=n.apply(r,e||[])).next())})},vr=globalThis&&globalThis.__generator||function(r,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,i=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){t.label=c[1];break}if(c[0]===6&&t.label<o[1]){t.label=o[1],o=c;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(c);break}o[2]&&t.ops.pop(),t.trys.pop();continue}c=e.call(r,t)}catch(u){c=[6,u],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},VM=globalThis&&globalThis.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$i=function(){function r(e,t,n){t===void 0&&(t=500),this.reader=e,this.timeBetweenScansMillis=t,this._hints=n,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(r.prototype,"hasNavigator",{get:function(){return typeof navigator!="undefined"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canEnumerateDevices",{get:function(){return!!(this.isMediaDevicesSuported&&navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(e){this._timeBetweenDecodingAttempts=e<0?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hints",{get:function(){return this._hints},set:function(e){this._hints=e||null},enumerable:!1,configurable:!0}),r.prototype.listVideoInputDevices=function(){return mr(this,void 0,void 0,function(){var e,t,n,i,o,a,s,l,c,u,h,d;return vr(this,function(f){switch(f.label){case 0:if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:e=f.sent(),t=[];try{for(n=VM(e),i=n.next();!i.done;i=n.next())o=i.value,a=o.kind==="video"?"videoinput":o.kind,a==="videoinput"&&(s=o.deviceId||o.id,l=o.label||"Video device "+(t.length+1),c=o.groupId,u={deviceId:s,label:l,kind:a,groupId:c},t.push(u))}catch(p){h={error:p}}finally{try{i&&!i.done&&(d=n.return)&&d.call(n)}finally{if(h)throw h.error}}return[2,t]}})})},r.prototype.getVideoInputDevices=function(){return mr(this,void 0,void 0,function(){var e;return vr(this,function(t){switch(t.label){case 0:return[4,this.listVideoInputDevices()];case 1:return e=t.sent(),[2,e.map(function(n){return new WM(n.deviceId,n.label)})]}})})},r.prototype.findDeviceById=function(e){return mr(this,void 0,void 0,function(){var t;return vr(this,function(n){switch(n.label){case 0:return[4,this.listVideoInputDevices()];case 1:return t=n.sent(),t?[2,t.find(function(i){return i.deviceId===e})]:[2,null]}})})},r.prototype.decodeFromInputVideoDevice=function(e,t){return mr(this,void 0,void 0,function(){return vr(this,function(n){switch(n.label){case 0:return[4,this.decodeOnceFromVideoDevice(e,t)];case 1:return[2,n.sent()]}})})},r.prototype.decodeOnceFromVideoDevice=function(e,t){return mr(this,void 0,void 0,function(){var n,i;return vr(this,function(o){switch(o.label){case 0:return this.reset(),e?n={deviceId:{exact:e}}:n={facingMode:"environment"},i={video:n},[4,this.decodeOnceFromConstraints(i,t)];case 1:return[2,o.sent()]}})})},r.prototype.decodeOnceFromConstraints=function(e,t){return mr(this,void 0,void 0,function(){var n;return vr(this,function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return n=i.sent(),[4,this.decodeOnceFromStream(n,t)];case 2:return[2,i.sent()]}})})},r.prototype.decodeOnceFromStream=function(e,t){return mr(this,void 0,void 0,function(){var n,i;return vr(this,function(o){switch(o.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,t)];case 1:return n=o.sent(),[4,this.decodeOnce(n)];case 2:return i=o.sent(),[2,i]}})})},r.prototype.decodeFromInputVideoDeviceContinuously=function(e,t,n){return mr(this,void 0,void 0,function(){return vr(this,function(i){switch(i.label){case 0:return[4,this.decodeFromVideoDevice(e,t,n)];case 1:return[2,i.sent()]}})})},r.prototype.decodeFromVideoDevice=function(e,t,n){return mr(this,void 0,void 0,function(){var i,o;return vr(this,function(a){switch(a.label){case 0:return e?i={deviceId:{exact:e}}:i={facingMode:"environment"},o={video:i},[4,this.decodeFromConstraints(o,t,n)];case 1:return[2,a.sent()]}})})},r.prototype.decodeFromConstraints=function(e,t,n){return mr(this,void 0,void 0,function(){var i;return vr(this,function(o){switch(o.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return i=o.sent(),[4,this.decodeFromStream(i,t,n)];case 2:return[2,o.sent()]}})})},r.prototype.decodeFromStream=function(e,t,n){return mr(this,void 0,void 0,function(){var i;return vr(this,function(o){switch(o.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,t)];case 1:return i=o.sent(),[4,this.decodeContinuously(i,n)];case 2:return[2,o.sent()]}})})},r.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},r.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},r.prototype.attachStreamToVideo=function(e,t){return mr(this,void 0,void 0,function(){var n;return vr(this,function(i){switch(i.label){case 0:return n=this.prepareVideoElement(t),this.addVideoSource(n,e),this.videoElement=n,this.stream=e,[4,this.playVideoOnLoadAsync(n)];case 1:return i.sent(),[2,n]}})})},r.prototype.playVideoOnLoadAsync=function(e){var t=this;return new Promise(function(n,i){return t.playVideoOnLoad(e,function(){return n()})})},r.prototype.playVideoOnLoad=function(e,t){var n=this;this.videoEndedListener=function(){return n.stopStreams()},this.videoCanPlayListener=function(){return n.tryPlayVideo(e)},e.addEventListener("ended",this.videoEndedListener),e.addEventListener("canplay",this.videoCanPlayListener),e.addEventListener("playing",t),this.tryPlayVideo(e)},r.prototype.isVideoPlaying=function(e){return e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2},r.prototype.tryPlayVideo=function(e){return mr(this,void 0,void 0,function(){return vr(this,function(t){switch(t.label){case 0:if(this.isVideoPlaying(e))return console.warn("Trying to play video that is already playing."),[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,e.play()];case 2:return t.sent(),[3,4];case 3:return t.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}})})},r.prototype.getMediaElement=function(e,t){var n=document.getElementById(e);if(!n)throw new Xt("element with id '"+e+"' not found");if(n.nodeName.toLowerCase()!==t.toLowerCase())throw new Xt("element with id '"+e+"' must be an "+t+" element");return n},r.prototype.decodeFromImage=function(e,t){if(!e&&!t)throw new Xt("either imageElement with a src set or an url must be provided");return t&&!e?this.decodeFromImageUrl(t):this.decodeFromImageElement(e)},r.prototype.decodeFromVideo=function(e,t){if(!e&&!t)throw new Xt("Either an element with a src set or an URL must be provided");return t&&!e?this.decodeFromVideoUrl(t):this.decodeFromVideoElement(e)},r.prototype.decodeFromVideoContinuously=function(e,t,n){if(e===void 0&&t===void 0)throw new Xt("Either an element with a src set or an URL must be provided");return t&&!e?this.decodeFromVideoUrlContinuously(t,n):this.decodeFromVideoElementContinuously(e,n)},r.prototype.decodeFromImageElement=function(e){if(!e)throw new Xt("An image element must be provided.");this.reset();var t=this.prepareImageElement(e);this.imageElement=t;var n;return this.isImageLoaded(t)?n=this.decodeOnce(t,!1,!0):n=this._decodeOnLoadImage(t),n},r.prototype.decodeFromVideoElement=function(e){var t=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideo(t)},r.prototype.decodeFromVideoElementContinuously=function(e,t){var n=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideoContinuously(n,t)},r.prototype._decodeFromVideoElementSetup=function(e){if(!e)throw new Xt("A video element must be provided.");this.reset();var t=this.prepareVideoElement(e);return this.videoElement=t,t},r.prototype.decodeFromImageUrl=function(e){if(!e)throw new Xt("An URL must be provided.");this.reset();var t=this.prepareImageElement();this.imageElement=t;var n=this._decodeOnLoadImage(t);return t.src=e,n},r.prototype.decodeFromVideoUrl=function(e){if(!e)throw new Xt("An URL must be provided.");this.reset();var t=this.prepareVideoElement(),n=this.decodeFromVideoElement(t);return t.src=e,n},r.prototype.decodeFromVideoUrlContinuously=function(e,t){if(!e)throw new Xt("An URL must be provided.");this.reset();var n=this.prepareVideoElement(),i=this.decodeFromVideoElementContinuously(n,t);return n.src=e,i},r.prototype._decodeOnLoadImage=function(e){var t=this;return new Promise(function(n,i){t.imageLoadedListener=function(){return t.decodeOnce(e,!1,!0).then(n,i)},e.addEventListener("load",t.imageLoadedListener)})},r.prototype._decodeOnLoadVideo=function(e){return mr(this,void 0,void 0,function(){return vr(this,function(t){switch(t.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return t.sent(),[4,this.decodeOnce(e)];case 2:return[2,t.sent()]}})})},r.prototype._decodeOnLoadVideoContinuously=function(e,t){return mr(this,void 0,void 0,function(){return vr(this,function(n){switch(n.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return n.sent(),this.decodeContinuously(e,t),[2]}})})},r.prototype.isImageLoaded=function(e){return!(!e.complete||e.naturalWidth===0)},r.prototype.prepareImageElement=function(e){var t;return typeof e=="undefined"&&(t=document.createElement("img"),t.width=200,t.height=200),typeof e=="string"&&(t=this.getMediaElement(e,"img")),e instanceof HTMLImageElement&&(t=e),t},r.prototype.prepareVideoElement=function(e){var t;return!e&&typeof document!="undefined"&&(t=document.createElement("video"),t.width=200,t.height=200),typeof e=="string"&&(t=this.getMediaElement(e,"video")),e instanceof HTMLVideoElement&&(t=e),t.setAttribute("autoplay","true"),t.setAttribute("muted","true"),t.setAttribute("playsinline","true"),t},r.prototype.decodeOnce=function(e,t,n){var i=this;t===void 0&&(t=!0),n===void 0&&(n=!0),this._stopAsyncDecode=!1;var o=function(a,s){if(i._stopAsyncDecode){s(new we("Video stream has ended before any code could be detected.")),i._stopAsyncDecode=void 0;return}try{var l=i.decode(e);a(l)}catch(d){var c=t&&d instanceof we,u=d instanceof Yt||d instanceof Ee,h=u&&n;if(c||h)return setTimeout(o,i._timeBetweenDecodingAttempts,a,s);s(d)}};return new Promise(function(a,s){return o(a,s)})},r.prototype.decodeContinuously=function(e,t){var n=this;this._stopContinuousDecode=!1;var i=function(){if(n._stopContinuousDecode){n._stopContinuousDecode=void 0;return}try{var o=n.decode(e);t(o,null),setTimeout(i,n.timeBetweenScansMillis)}catch(l){t(null,l);var a=l instanceof Yt||l instanceof Ee,s=l instanceof we;(a||s)&&setTimeout(i,n._timeBetweenDecodingAttempts)}};i()},r.prototype.decode=function(e){var t=this.createBinaryBitmap(e);return this.decodeBitmap(t)},r.prototype.createBinaryBitmap=function(e){this.getCaptureCanvasContext(e),e instanceof HTMLVideoElement?this.drawFrameOnCanvas(e):this.drawImageOnCanvas(e);var t=this.getCaptureCanvas(e),n=new UM(t),i=new f1(n);return new h1(i)},r.prototype.getCaptureCanvasContext=function(e){if(!this.captureCanvasContext){var t=this.getCaptureCanvas(e),n=void 0;try{n=t.getContext("2d",{willReadFrequently:!0})}catch{n=t.getContext("2d")}this.captureCanvasContext=n}return this.captureCanvasContext},r.prototype.getCaptureCanvas=function(e){if(!this.captureCanvas){var t=this.createCaptureCanvas(e);this.captureCanvas=t}return this.captureCanvas},r.prototype.drawFrameOnCanvas=function(e,t,n){t===void 0&&(t={sx:0,sy:0,sWidth:e.videoWidth,sHeight:e.videoHeight,dx:0,dy:0,dWidth:e.videoWidth,dHeight:e.videoHeight}),n===void 0&&(n=this.captureCanvasContext),n.drawImage(e,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight)},r.prototype.drawImageOnCanvas=function(e,t,n){t===void 0&&(t={sx:0,sy:0,sWidth:e.naturalWidth,sHeight:e.naturalHeight,dx:0,dy:0,dWidth:e.naturalWidth,dHeight:e.naturalHeight}),n===void 0&&(n=this.captureCanvasContext),n.drawImage(e,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight)},r.prototype.decodeBitmap=function(e){return this.reader.decode(e,this._hints)},r.prototype.createCaptureCanvas=function(e){if(typeof document=="undefined")return this._destroyCaptureCanvas(),null;var t=document.createElement("canvas"),n,i;return typeof e!="undefined"&&(e instanceof HTMLVideoElement?(n=e.videoWidth,i=e.videoHeight):e instanceof HTMLImageElement&&(n=e.naturalWidth||e.width,i=e.naturalHeight||e.height)),t.style.width=n+"px",t.style.height=i+"px",t.width=n,t.height=i,t},r.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach(function(e){return e.stop()}),this.stream=void 0),this._stopAsyncDecode===!1&&this.stopAsyncDecode(),this._stopContinuousDecode===!1&&this.stopContinuousDecode()},r.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},r.prototype._destroyVideoElement=function(){!this.videoElement||(typeof this.videoEndedListener!="undefined"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener!="undefined"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener!="undefined"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},r.prototype._destroyImageElement=function(){!this.imageElement||(this.imageLoadedListener!==void 0&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},r.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},r.prototype.addVideoSource=function(e,t){try{e.srcObject=t}catch{e.src=URL.createObjectURL(t)}},r.prototype.cleanVideoSource=function(e){try{e.srcObject=null}catch{e.src=""}this.videoElement.removeAttribute("src")},r}(),gr=function(){function r(e,t,n,i,o,a){n===void 0&&(n=t==null?0:8*t.length),a===void 0&&(a=mt.currentTimeMillis()),this.text=e,this.rawBytes=t,this.numBits=n,this.resultPoints=i,this.format=o,this.timestamp=a,this.text=e,this.rawBytes=t,n==null?this.numBits=t==null?0:8*t.length:this.numBits=n,this.resultPoints=i,this.format=o,this.resultMetadata=null,a==null?this.timestamp=mt.currentTimeMillis():this.timestamp=a}return r.prototype.getText=function(){return this.text},r.prototype.getRawBytes=function(){return this.rawBytes},r.prototype.getNumBits=function(){return this.numBits},r.prototype.getResultPoints=function(){return this.resultPoints},r.prototype.getBarcodeFormat=function(){return this.format},r.prototype.getResultMetadata=function(){return this.resultMetadata},r.prototype.putMetadata=function(e,t){this.resultMetadata===null&&(this.resultMetadata=new Map),this.resultMetadata.set(e,t)},r.prototype.putAllMetadata=function(e){e!==null&&(this.resultMetadata===null?this.resultMetadata=e:this.resultMetadata=new Map(e))},r.prototype.addResultPoints=function(e){var t=this.resultPoints;if(t===null)this.resultPoints=e;else if(e!==null&&e.length>0){var n=new Array(t.length+e.length);mt.arraycopy(t,0,n,0,t.length),mt.arraycopy(e,0,n,t.length,e.length),this.resultPoints=n}},r.prototype.getTimestamp=function(){return this.timestamp},r.prototype.toString=function(){return this.text},r}(),oc;(function(r){r[r.AZTEC=0]="AZTEC",r[r.CODABAR=1]="CODABAR",r[r.CODE_39=2]="CODE_39",r[r.CODE_93=3]="CODE_93",r[r.CODE_128=4]="CODE_128",r[r.DATA_MATRIX=5]="DATA_MATRIX",r[r.EAN_8=6]="EAN_8",r[r.EAN_13=7]="EAN_13",r[r.ITF=8]="ITF",r[r.MAXICODE=9]="MAXICODE",r[r.PDF_417=10]="PDF_417",r[r.QR_CODE=11]="QR_CODE",r[r.RSS_14=12]="RSS_14",r[r.RSS_EXPANDED=13]="RSS_EXPANDED",r[r.UPC_A=14]="UPC_A",r[r.UPC_E=15]="UPC_E",r[r.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"})(oc||(oc={}));var De=oc,ac;(function(r){r[r.OTHER=0]="OTHER",r[r.ORIENTATION=1]="ORIENTATION",r[r.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",r[r.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",r[r.ISSUE_NUMBER=4]="ISSUE_NUMBER",r[r.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",r[r.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",r[r.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",r[r.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",r[r.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",r[r.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"})(ac||(ac={}));var sr=ac,ds=function(){function r(e,t,n,i,o,a){o===void 0&&(o=-1),a===void 0&&(a=-1),this.rawBytes=e,this.text=t,this.byteSegments=n,this.ecLevel=i,this.structuredAppendSequenceNumber=o,this.structuredAppendParity=a,this.numBits=e==null?0:8*e.length}return r.prototype.getRawBytes=function(){return this.rawBytes},r.prototype.getNumBits=function(){return this.numBits},r.prototype.setNumBits=function(e){this.numBits=e},r.prototype.getText=function(){return this.text},r.prototype.getByteSegments=function(){return this.byteSegments},r.prototype.getECLevel=function(){return this.ecLevel},r.prototype.getErrorsCorrected=function(){return this.errorsCorrected},r.prototype.setErrorsCorrected=function(e){this.errorsCorrected=e},r.prototype.getErasures=function(){return this.erasures},r.prototype.setErasures=function(e){this.erasures=e},r.prototype.getOther=function(){return this.other},r.prototype.setOther=function(e){this.other=e},r.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},r.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},r.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},r}(),yo=function(){function r(){}return r.prototype.exp=function(e){return this.expTable[e]},r.prototype.log=function(e){if(e===0)throw new Xe;return this.logTable[e]},r.addOrSubtract=function(e,t){return e^t},r}(),Xn=function(){function r(e,t){if(t.length===0)throw new Xe;this.field=e;var n=t.length;if(n>1&&t[0]===0){for(var i=1;i<n&&t[i]===0;)i++;i===n?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(n-i),mt.arraycopy(t,i,this.coefficients,0,this.coefficients.length))}else this.coefficients=t}return r.prototype.getCoefficients=function(){return this.coefficients},r.prototype.getDegree=function(){return this.coefficients.length-1},r.prototype.isZero=function(){return this.coefficients[0]===0},r.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},r.prototype.evaluateAt=function(e){if(e===0)return this.getCoefficient(0);var t=this.coefficients,n;if(e===1){n=0;for(var i=0,o=t.length;i!==o;i++){var a=t[i];n=yo.addOrSubtract(n,a)}return n}n=t[0];for(var s=t.length,l=this.field,i=1;i<s;i++)n=yo.addOrSubtract(l.multiply(e,n),t[i]);return n},r.prototype.addOrSubtract=function(e){if(!this.field.equals(e.field))throw new Xe("GenericGFPolys do not have same GenericGF field");if(this.isZero())return e;if(e.isZero())return this;var t=this.coefficients,n=e.coefficients;if(t.length>n.length){var i=t;t=n,n=i}var o=new Int32Array(n.length),a=n.length-t.length;mt.arraycopy(n,0,o,0,a);for(var s=a;s<n.length;s++)o[s]=yo.addOrSubtract(t[s-a],n[s]);return new r(this.field,o)},r.prototype.multiply=function(e){if(!this.field.equals(e.field))throw new Xe("GenericGFPolys do not have same GenericGF field");if(this.isZero()||e.isZero())return this.field.getZero();for(var t=this.coefficients,n=t.length,i=e.coefficients,o=i.length,a=new Int32Array(n+o-1),s=this.field,l=0;l<n;l++)for(var c=t[l],u=0;u<o;u++)a[l+u]=yo.addOrSubtract(a[l+u],s.multiply(c,i[u]));return new r(s,a)},r.prototype.multiplyScalar=function(e){if(e===0)return this.field.getZero();if(e===1)return this;for(var t=this.coefficients.length,n=this.field,i=new Int32Array(t),o=this.coefficients,a=0;a<t;a++)i[a]=n.multiply(o[a],e);return new r(n,i)},r.prototype.multiplyByMonomial=function(e,t){if(e<0)throw new Xe;if(t===0)return this.field.getZero();for(var n=this.coefficients,i=n.length,o=new Int32Array(i+e),a=this.field,s=0;s<i;s++)o[s]=a.multiply(n[s],t);return new r(a,o)},r.prototype.divide=function(e){if(!this.field.equals(e.field))throw new Xe("GenericGFPolys do not have same GenericGF field");if(e.isZero())throw new Xe("Divide by 0");for(var t=this.field,n=t.getZero(),i=this,o=e.getCoefficient(e.getDegree()),a=t.inverse(o);i.getDegree()>=e.getDegree()&&!i.isZero();){var s=i.getDegree()-e.getDegree(),l=t.multiply(i.getCoefficient(i.getDegree()),a),c=e.multiplyByMonomial(s,l),u=t.buildMonomial(s,l);n=n.addOrSubtract(u),i=i.addOrSubtract(c)}return[n,i]},r.prototype.toString=function(){for(var e="",t=this.getDegree();t>=0;t--){var n=this.getCoefficient(t);if(n!==0){if(n<0?(e+=" - ",n=-n):e.length>0&&(e+=" + "),t===0||n!==1){var i=this.field.log(n);i===0?e+="1":i===1?e+="a":(e+="a^",e+=i)}t!==0&&(t===1?e+="x":(e+="x^",e+=t))}}return e},r}(),YM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),d1=function(r){YM(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="ArithmeticException",e}(Tr),kM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),yn=function(r){kM(e,r);function e(t,n,i){var o=r.call(this)||this;o.primitive=t,o.size=n,o.generatorBase=i;for(var a=new Int32Array(n),s=1,l=0;l<n;l++)a[l]=s,s*=2,s>=n&&(s^=t,s&=n-1);o.expTable=a;for(var c=new Int32Array(n),l=0;l<n-1;l++)c[a[l]]=l;return o.logTable=c,o.zero=new Xn(o,Int32Array.from([0])),o.one=new Xn(o,Int32Array.from([1])),o}return e.prototype.getZero=function(){return this.zero},e.prototype.getOne=function(){return this.one},e.prototype.buildMonomial=function(t,n){if(t<0)throw new Xe;if(n===0)return this.zero;var i=new Int32Array(t+1);return i[0]=n,new Xn(this,i)},e.prototype.inverse=function(t){if(t===0)throw new d1;return this.expTable[this.size-this.logTable[t]-1]},e.prototype.multiply=function(t,n){return t===0||n===0?0:this.expTable[(this.logTable[t]+this.logTable[n])%(this.size-1)]},e.prototype.getSize=function(){return this.size},e.prototype.getGeneratorBase=function(){return this.generatorBase},e.prototype.toString=function(){return"GF(0x"+Ut.toHexString(this.primitive)+","+this.size+")"},e.prototype.equals=function(t){return t===this},e.AZTEC_DATA_12=new e(4201,4096,1),e.AZTEC_DATA_10=new e(1033,1024,1),e.AZTEC_DATA_6=new e(67,64,1),e.AZTEC_PARAM=new e(19,16,1),e.QR_CODE_FIELD_256=new e(285,256,0),e.DATA_MATRIX_FIELD_256=new e(301,256,1),e.AZTEC_DATA_8=e.DATA_MATRIX_FIELD_256,e.MAXICODE_FIELD_64=e.AZTEC_DATA_6,e}(yo),ZM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),pa=function(r){ZM(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="ReedSolomonException",e}(Tr),QM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ji=function(r){QM(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="IllegalStateException",e}(Tr),ps=function(){function r(e){this.field=e}return r.prototype.decode=function(e,t){for(var n=this.field,i=new Xn(n,e),o=new Int32Array(t),a=!0,s=0;s<t;s++){var l=i.evaluateAt(n.exp(s+n.getGeneratorBase()));o[o.length-1-s]=l,l!==0&&(a=!1)}if(!a)for(var c=new Xn(n,o),u=this.runEuclideanAlgorithm(n.buildMonomial(t,1),c,t),h=u[0],d=u[1],f=this.findErrorLocations(h),p=this.findErrorMagnitudes(d,f),s=0;s<f.length;s++){var g=e.length-1-n.log(f[s]);if(g<0)throw new pa("Bad error location");e[g]=yn.addOrSubtract(e[g],p[s])}},r.prototype.runEuclideanAlgorithm=function(e,t,n){if(e.getDegree()<t.getDegree()){var i=e;e=t,t=i}for(var o=this.field,a=e,s=t,l=o.getZero(),c=o.getOne();s.getDegree()>=(n/2|0);){var u=a,h=l;if(a=s,l=c,a.isZero())throw new pa("r_{i-1} was zero");s=u;for(var d=o.getZero(),f=a.getCoefficient(a.getDegree()),p=o.inverse(f);s.getDegree()>=a.getDegree()&&!s.isZero();){var g=s.getDegree()-a.getDegree(),v=o.multiply(s.getCoefficient(s.getDegree()),p);d=d.addOrSubtract(o.buildMonomial(g,v)),s=s.addOrSubtract(a.multiplyByMonomial(g,v))}if(c=d.multiply(l).addOrSubtract(h),s.getDegree()>=a.getDegree())throw new ji("Division algorithm failed to reduce polynomial?")}var R=c.getCoefficient(0);if(R===0)throw new pa("sigmaTilde(0) was zero");var m=o.inverse(R),x=c.multiplyScalar(m),T=s.multiplyScalar(m);return[x,T]},r.prototype.findErrorLocations=function(e){var t=e.getDegree();if(t===1)return Int32Array.from([e.getCoefficient(1)]);for(var n=new Int32Array(t),i=0,o=this.field,a=1;a<o.getSize()&&i<t;a++)e.evaluateAt(a)===0&&(n[i]=o.inverse(a),i++);if(i!==t)throw new pa("Error locator degree does not match number of roots");return n},r.prototype.findErrorMagnitudes=function(e,t){for(var n=t.length,i=new Int32Array(n),o=this.field,a=0;a<n;a++){for(var s=o.inverse(t[a]),l=1,c=0;c<n;c++)if(a!==c){var u=o.multiply(t[c],s),h=(u&1)===0?u|1:u&-2;l=o.multiply(l,h)}i[a]=o.multiply(e.evaluateAt(s),o.inverse(l)),o.getGeneratorBase()!==0&&(i[a]=o.multiply(i[a],s))}return i},r}(),rr;(function(r){r[r.UPPER=0]="UPPER",r[r.LOWER=1]="LOWER",r[r.MIXED=2]="MIXED",r[r.DIGIT=3]="DIGIT",r[r.PUNCT=4]="PUNCT",r[r.BINARY=5]="BINARY"})(rr||(rr={}));var Kf=function(){function r(){}return r.prototype.decode=function(e){this.ddata=e;var t=e.getBits(),n=this.extractBits(t),i=this.correctBits(n),o=r.convertBoolArrayToByteArray(i),a=r.getEncodedData(i),s=new ds(o,a,null,null);return s.setNumBits(i.length),s},r.highLevelDecode=function(e){return this.getEncodedData(e)},r.getEncodedData=function(e){for(var t=e.length,n=rr.UPPER,i=rr.UPPER,o="",a=0;a<t;)if(i===rr.BINARY){if(t-a<5)break;var s=r.readCode(e,a,5);if(a+=5,s===0){if(t-a<11)break;s=r.readCode(e,a,11)+31,a+=11}for(var l=0;l<s;l++){if(t-a<8){a=t;break}var c=r.readCode(e,a,8);o+=Rt.castAsNonUtf8Char(c),a+=8}i=n}else{var u=i===rr.DIGIT?4:5;if(t-a<u)break;var c=r.readCode(e,a,u);a+=u;var h=r.getCharacter(i,c);h.startsWith("CTRL_")?(n=i,i=r.getTable(h.charAt(5)),h.charAt(6)==="L"&&(n=i)):(o+=h,i=n)}return o},r.getTable=function(e){switch(e){case"L":return rr.LOWER;case"P":return rr.PUNCT;case"M":return rr.MIXED;case"D":return rr.DIGIT;case"B":return rr.BINARY;case"U":default:return rr.UPPER}},r.getCharacter=function(e,t){switch(e){case rr.UPPER:return r.UPPER_TABLE[t];case rr.LOWER:return r.LOWER_TABLE[t];case rr.MIXED:return r.MIXED_TABLE[t];case rr.PUNCT:return r.PUNCT_TABLE[t];case rr.DIGIT:return r.DIGIT_TABLE[t];default:throw new ji("Bad table")}},r.prototype.correctBits=function(e){var t,n;this.ddata.getNbLayers()<=2?(n=6,t=yn.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(n=8,t=yn.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(n=10,t=yn.AZTEC_DATA_10):(n=12,t=yn.AZTEC_DATA_12);var i=this.ddata.getNbDatablocks(),o=e.length/n;if(o<i)throw new Ee;for(var a=e.length%n,s=new Int32Array(o),l=0;l<o;l++,a+=n)s[l]=r.readCode(e,a,n);try{var c=new ps(t);c.decode(s,o-i)}catch(v){throw new Ee(v)}for(var u=(1<<n)-1,h=0,l=0;l<i;l++){var d=s[l];if(d===0||d===u)throw new Ee;(d===1||d===u-1)&&h++}for(var f=new Array(i*n-h),p=0,l=0;l<i;l++){var d=s[l];if(d===1||d===u-1)f.fill(d>1,p,p+n-1),p+=n-1;else for(var g=n-1;g>=0;--g)f[p++]=(d&1<<g)!==0}return f},r.prototype.extractBits=function(e){var t=this.ddata.isCompact(),n=this.ddata.getNbLayers(),i=(t?11:14)+n*4,o=new Int32Array(i),a=new Array(this.totalBitsInLayer(n,t));if(t)for(var s=0;s<o.length;s++)o[s]=s;else for(var l=i+1+2*Ut.truncDivision(Ut.truncDivision(i,2)-1,15),c=i/2,u=Ut.truncDivision(l,2),s=0;s<c;s++){var h=s+Ut.truncDivision(s,15);o[c-s-1]=u-h-1,o[c+s]=u+h+1}for(var s=0,d=0;s<n;s++){for(var f=(n-s)*4+(t?9:12),p=s*2,g=i-1-p,v=0;v<f;v++)for(var R=v*2,m=0;m<2;m++)a[d+R+m]=e.get(o[p+m],o[p+v]),a[d+2*f+R+m]=e.get(o[p+v],o[g-m]),a[d+4*f+R+m]=e.get(o[g-m],o[g-v]),a[d+6*f+R+m]=e.get(o[g-v],o[p+m]);d+=f*8}return a},r.readCode=function(e,t,n){for(var i=0,o=t;o<t+n;o++)i<<=1,e[o]&&(i|=1);return i},r.readByte=function(e,t){var n=e.length-t;return n>=8?r.readCode(e,t,8):r.readCode(e,t,n)<<8-n},r.convertBoolArrayToByteArray=function(e){for(var t=new Uint8Array((e.length+7)/8),n=0;n<t.length;n++)t[n]=r.readByte(e,8*n);return t},r.prototype.totalBitsInLayer=function(e,t){return((t?88:112)+16*e)*e},r.UPPER_TABLE=["CTRL_PS"," ","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","CTRL_LL","CTRL_ML","CTRL_DL","CTRL_BS"],r.LOWER_TABLE=["CTRL_PS"," ","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","CTRL_US","CTRL_ML","CTRL_DL","CTRL_BS"],r.MIXED_TABLE=["CTRL_PS"," ","\\1","\\2","\\3","\\4","\\5","\\6","\\7","\b"," ",`
|
|
`,"\\13","\f","\r","\\33","\\34","\\35","\\36","\\37","@","\\","^","_","`","|","~","\\177","CTRL_LL","CTRL_UL","CTRL_PL","CTRL_BS"],r.PUNCT_TABLE=["","\r",`\r
|
|
`,". ",", ",": ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}","CTRL_UL"],r.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],r}(),je=function(){function r(){}return r.round=function(e){return isNaN(e)?0:e<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:e>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e+(e<0?-.5:.5)|0},r.distance=function(e,t,n,i){var o=e-n,a=t-i;return Math.sqrt(o*o+a*a)},r.sum=function(e){for(var t=0,n=0,i=e.length;n!==i;n++){var o=e[n];t+=o}return t},r}(),sc=function(){function r(){}return r.floatToIntBits=function(e){return e},r.MAX_VALUE=Number.MAX_SAFE_INTEGER,r}(),Me=function(){function r(e,t){this.x=e,this.y=t}return r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.equals=function(e){if(e instanceof r){var t=e;return this.x===t.x&&this.y===t.y}return!1},r.prototype.hashCode=function(){return 31*sc.floatToIntBits(this.x)+sc.floatToIntBits(this.y)},r.prototype.toString=function(){return"("+this.x+","+this.y+")"},r.orderBestPatterns=function(e){var t=this.distance(e[0],e[1]),n=this.distance(e[1],e[2]),i=this.distance(e[0],e[2]),o,a,s;if(n>=t&&n>=i?(a=e[0],o=e[1],s=e[2]):i>=n&&i>=t?(a=e[1],o=e[0],s=e[2]):(a=e[2],o=e[0],s=e[1]),this.crossProductZ(o,a,s)<0){var l=o;o=s,s=l}e[0]=o,e[1]=a,e[2]=s},r.distance=function(e,t){return je.distance(e.x,e.y,t.x,t.y)},r.crossProductZ=function(e,t,n){var i=t.x,o=t.y;return(n.x-i)*(e.y-o)-(n.y-o)*(e.x-i)},r}(),Ou=function(){function r(e,t){this.bits=e,this.points=t}return r.prototype.getBits=function(){return this.bits},r.prototype.getPoints=function(){return this.points},r}(),KM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),HM=function(r){KM(e,r);function e(t,n,i,o,a){var s=r.call(this,t,n)||this;return s.compact=i,s.nbDatablocks=o,s.nbLayers=a,s}return e.prototype.getNbLayers=function(){return this.nbLayers},e.prototype.getNbDatablocks=function(){return this.nbDatablocks},e.prototype.isCompact=function(){return this.compact},e}(Ou),lc=function(){function r(e,t,n,i){this.image=e,this.height=e.getHeight(),this.width=e.getWidth(),t==null&&(t=r.INIT_SIZE),n==null&&(n=e.getWidth()/2|0),i==null&&(i=e.getHeight()/2|0);var o=t/2|0;if(this.leftInit=n-o,this.rightInit=n+o,this.upInit=i-o,this.downInit=i+o,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new we}return r.prototype.detect=function(){for(var e=this.leftInit,t=this.rightInit,n=this.upInit,i=this.downInit,o=!1,a=!0,s=!1,l=!1,c=!1,u=!1,h=!1,d=this.width,f=this.height;a;){a=!1;for(var p=!0;(p||!l)&&t<d;)p=this.containsBlackPoint(n,i,t,!1),p?(t++,a=!0,l=!0):l||t++;if(t>=d){o=!0;break}for(var g=!0;(g||!c)&&i<f;)g=this.containsBlackPoint(e,t,i,!0),g?(i++,a=!0,c=!0):c||i++;if(i>=f){o=!0;break}for(var v=!0;(v||!u)&&e>=0;)v=this.containsBlackPoint(n,i,e,!1),v?(e--,a=!0,u=!0):u||e--;if(e<0){o=!0;break}for(var R=!0;(R||!h)&&n>=0;)R=this.containsBlackPoint(e,t,n,!0),R?(n--,a=!0,h=!0):h||n--;if(n<0){o=!0;break}a&&(s=!0)}if(!o&&s){for(var m=t-e,x=null,T=1;x===null&&T<m;T++)x=this.getBlackPointOnSegment(e,i-T,e+T,i);if(x==null)throw new we;for(var P=null,T=1;P===null&&T<m;T++)P=this.getBlackPointOnSegment(e,n+T,e+T,n);if(P==null)throw new we;for(var A=null,T=1;A===null&&T<m;T++)A=this.getBlackPointOnSegment(t,n+T,t-T,n);if(A==null)throw new we;for(var D=null,T=1;D===null&&T<m;T++)D=this.getBlackPointOnSegment(t,i-T,t-T,i);if(D==null)throw new we;return this.centerEdges(D,x,A,P)}else throw new we},r.prototype.getBlackPointOnSegment=function(e,t,n,i){for(var o=je.round(je.distance(e,t,n,i)),a=(n-e)/o,s=(i-t)/o,l=this.image,c=0;c<o;c++){var u=je.round(e+c*a),h=je.round(t+c*s);if(l.get(u,h))return new Me(u,h)}return null},r.prototype.centerEdges=function(e,t,n,i){var o=e.getX(),a=e.getY(),s=t.getX(),l=t.getY(),c=n.getX(),u=n.getY(),h=i.getX(),d=i.getY(),f=r.CORR;return o<this.width/2?[new Me(h-f,d+f),new Me(s+f,l+f),new Me(c-f,u-f),new Me(o+f,a-f)]:[new Me(h+f,d+f),new Me(s+f,l-f),new Me(c-f,u+f),new Me(o-f,a-f)]},r.prototype.containsBlackPoint=function(e,t,n,i){var o=this.image;if(i){for(var a=e;a<=t;a++)if(o.get(a,n))return!0}else for(var s=e;s<=t;s++)if(o.get(n,s))return!0;return!1},r.INIT_SIZE=10,r.CORR=1,r}(),Hf=function(){function r(){}return r.checkAndNudgePoints=function(e,t){for(var n=e.getWidth(),i=e.getHeight(),o=!0,a=0;a<t.length&&o;a+=2){var s=Math.floor(t[a]),l=Math.floor(t[a+1]);if(s<-1||s>n||l<-1||l>i)throw new we;o=!1,s===-1?(t[a]=0,o=!0):s===n&&(t[a]=n-1,o=!0),l===-1?(t[a+1]=0,o=!0):l===i&&(t[a+1]=i-1,o=!0)}o=!0;for(var a=t.length-2;a>=0&&o;a-=2){var s=Math.floor(t[a]),l=Math.floor(t[a+1]);if(s<-1||s>n||l<-1||l>i)throw new we;o=!1,s===-1?(t[a]=0,o=!0):s===n&&(t[a]=n-1,o=!0),l===-1?(t[a+1]=0,o=!0):l===i&&(t[a+1]=i-1,o=!0)}},r}(),p1=function(){function r(e,t,n,i,o,a,s,l,c){this.a11=e,this.a21=t,this.a31=n,this.a12=i,this.a22=o,this.a32=a,this.a13=s,this.a23=l,this.a33=c}return r.quadrilateralToQuadrilateral=function(e,t,n,i,o,a,s,l,c,u,h,d,f,p,g,v){var R=r.quadrilateralToSquare(e,t,n,i,o,a,s,l),m=r.squareToQuadrilateral(c,u,h,d,f,p,g,v);return m.times(R)},r.prototype.transformPoints=function(e){for(var t=e.length,n=this.a11,i=this.a12,o=this.a13,a=this.a21,s=this.a22,l=this.a23,c=this.a31,u=this.a32,h=this.a33,d=0;d<t;d+=2){var f=e[d],p=e[d+1],g=o*f+l*p+h;e[d]=(n*f+a*p+c)/g,e[d+1]=(i*f+s*p+u)/g}},r.prototype.transformPointsWithValues=function(e,t){for(var n=this.a11,i=this.a12,o=this.a13,a=this.a21,s=this.a22,l=this.a23,c=this.a31,u=this.a32,h=this.a33,d=e.length,f=0;f<d;f++){var p=e[f],g=t[f],v=o*p+l*g+h;e[f]=(n*p+a*g+c)/v,t[f]=(i*p+s*g+u)/v}},r.squareToQuadrilateral=function(e,t,n,i,o,a,s,l){var c=e-n+o-s,u=t-i+a-l;if(c===0&&u===0)return new r(n-e,o-n,e,i-t,a-i,t,0,0,1);var h=n-o,d=s-o,f=i-a,p=l-a,g=h*p-d*f,v=(c*p-d*u)/g,R=(h*u-c*f)/g;return new r(n-e+v*n,s-e+R*s,e,i-t+v*i,l-t+R*l,t,v,R,1)},r.quadrilateralToSquare=function(e,t,n,i,o,a,s,l){return r.squareToQuadrilateral(e,t,n,i,o,a,s,l).buildAdjoint()},r.prototype.buildAdjoint=function(){return new r(this.a22*this.a33-this.a23*this.a32,this.a23*this.a31-this.a21*this.a33,this.a21*this.a32-this.a22*this.a31,this.a13*this.a32-this.a12*this.a33,this.a11*this.a33-this.a13*this.a31,this.a12*this.a31-this.a11*this.a32,this.a12*this.a23-this.a13*this.a22,this.a13*this.a21-this.a11*this.a23,this.a11*this.a22-this.a12*this.a21)},r.prototype.times=function(e){return new r(this.a11*e.a11+this.a21*e.a12+this.a31*e.a13,this.a11*e.a21+this.a21*e.a22+this.a31*e.a23,this.a11*e.a31+this.a21*e.a32+this.a31*e.a33,this.a12*e.a11+this.a22*e.a12+this.a32*e.a13,this.a12*e.a21+this.a22*e.a22+this.a32*e.a23,this.a12*e.a31+this.a22*e.a32+this.a32*e.a33,this.a13*e.a11+this.a23*e.a12+this.a33*e.a13,this.a13*e.a21+this.a23*e.a22+this.a33*e.a23,this.a13*e.a31+this.a23*e.a32+this.a33*e.a33)},r}(),BM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),GM=function(r){BM(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.sampleGrid=function(t,n,i,o,a,s,l,c,u,h,d,f,p,g,v,R,m,x,T){var P=p1.quadrilateralToQuadrilateral(o,a,s,l,c,u,h,d,f,p,g,v,R,m,x,T);return this.sampleGridWithTransform(t,n,i,P)},e.prototype.sampleGridWithTransform=function(t,n,i,o){if(n<=0||i<=0)throw new we;for(var a=new Sn(n,i),s=new Float32Array(2*n),l=0;l<i;l++){for(var c=s.length,u=l+.5,h=0;h<c;h+=2)s[h]=h/2+.5,s[h+1]=u;o.transformPoints(s),Hf.checkAndNudgePoints(t,s);try{for(var h=0;h<c;h+=2)t.get(Math.floor(s[h]),Math.floor(s[h+1]))&&a.set(h/2,l)}catch{throw new we}}return a},e}(Hf),Tu=function(){function r(){}return r.setGridSampler=function(e){r.gridSampler=e},r.getInstance=function(){return r.gridSampler},r.gridSampler=new GM,r}(),wr=function(){function r(e,t){this.x=e,this.y=t}return r.prototype.toResultPoint=function(){return new Me(this.getX(),this.getY())},r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r}(),JM=function(){function r(e){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=e}return r.prototype.detect=function(){return this.detectMirror(!1)},r.prototype.detectMirror=function(e){var t=this.getMatrixCenter(),n=this.getBullsEyeCorners(t);if(e){var i=n[0];n[0]=n[2],n[2]=i}this.extractParameters(n);var o=this.sampleGrid(this.image,n[this.shift%4],n[(this.shift+1)%4],n[(this.shift+2)%4],n[(this.shift+3)%4]),a=this.getMatrixCornerPoints(n);return new HM(o,a,this.compact,this.nbDataBlocks,this.nbLayers)},r.prototype.extractParameters=function(e){if(!this.isValidPoint(e[0])||!this.isValidPoint(e[1])||!this.isValidPoint(e[2])||!this.isValidPoint(e[3]))throw new we;var t=2*this.nbCenterLayers,n=new Int32Array([this.sampleLine(e[0],e[1],t),this.sampleLine(e[1],e[2],t),this.sampleLine(e[2],e[3],t),this.sampleLine(e[3],e[0],t)]);this.shift=this.getRotation(n,t);for(var i=0,o=0;o<4;o++){var a=n[(this.shift+o)%4];this.compact?(i<<=7,i+=a>>1&127):(i<<=10,i+=(a>>2&31<<5)+(a>>1&31))}var s=this.getCorrectedParameterData(i,this.compact);this.compact?(this.nbLayers=(s>>6)+1,this.nbDataBlocks=(s&63)+1):(this.nbLayers=(s>>11)+1,this.nbDataBlocks=(s&2047)+1)},r.prototype.getRotation=function(e,t){var n=0;e.forEach(function(o,a,s){var l=(o>>t-2<<1)+(o&1);n=(n<<3)+l}),n=((n&1)<<11)+(n>>1);for(var i=0;i<4;i++)if(Ut.bitCount(n^this.EXPECTED_CORNER_BITS[i])<=2)return i;throw new we},r.prototype.getCorrectedParameterData=function(e,t){var n,i;t?(n=7,i=2):(n=10,i=4);for(var o=n-i,a=new Int32Array(n),s=n-1;s>=0;--s)a[s]=e&15,e>>=4;try{var l=new ps(yn.AZTEC_PARAM);l.decode(a,o)}catch{throw new we}for(var c=0,s=0;s<i;s++)c=(c<<4)+a[s];return c},r.prototype.getBullsEyeCorners=function(e){var t=e,n=e,i=e,o=e,a=!0;for(this.nbCenterLayers=1;this.nbCenterLayers<9;this.nbCenterLayers++){var s=this.getFirstDifferent(t,a,1,-1),l=this.getFirstDifferent(n,a,1,1),c=this.getFirstDifferent(i,a,-1,1),u=this.getFirstDifferent(o,a,-1,-1);if(this.nbCenterLayers>2){var h=this.distancePoint(u,s)*this.nbCenterLayers/(this.distancePoint(o,t)*(this.nbCenterLayers+2));if(h<.75||h>1.25||!this.isWhiteOrBlackRectangle(s,l,c,u))break}t=s,n=l,i=c,o=u,a=!a}if(this.nbCenterLayers!==5&&this.nbCenterLayers!==7)throw new we;this.compact=this.nbCenterLayers===5;var d=new Me(t.getX()+.5,t.getY()-.5),f=new Me(n.getX()+.5,n.getY()+.5),p=new Me(i.getX()-.5,i.getY()+.5),g=new Me(o.getX()-.5,o.getY()-.5);return this.expandSquare([d,f,p,g],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},r.prototype.getMatrixCenter=function(){var e,t,n,i;try{var o=new lc(this.image).detect();e=o[0],t=o[1],n=o[2],i=o[3]}catch{var a=this.image.getWidth()/2,s=this.image.getHeight()/2;e=this.getFirstDifferent(new wr(a+7,s-7),!1,1,-1).toResultPoint(),t=this.getFirstDifferent(new wr(a+7,s+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new wr(a-7,s+7),!1,-1,1).toResultPoint(),i=this.getFirstDifferent(new wr(a-7,s-7),!1,-1,-1).toResultPoint()}var l=je.round((e.getX()+i.getX()+t.getX()+n.getX())/4),c=je.round((e.getY()+i.getY()+t.getY()+n.getY())/4);try{var o=new lc(this.image,15,l,c).detect();e=o[0],t=o[1],n=o[2],i=o[3]}catch{e=this.getFirstDifferent(new wr(l+7,c-7),!1,1,-1).toResultPoint(),t=this.getFirstDifferent(new wr(l+7,c+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new wr(l-7,c+7),!1,-1,1).toResultPoint(),i=this.getFirstDifferent(new wr(l-7,c-7),!1,-1,-1).toResultPoint()}return l=je.round((e.getX()+i.getX()+t.getX()+n.getX())/4),c=je.round((e.getY()+i.getY()+t.getY()+n.getY())/4),new wr(l,c)},r.prototype.getMatrixCornerPoints=function(e){return this.expandSquare(e,2*this.nbCenterLayers,this.getDimension())},r.prototype.sampleGrid=function(e,t,n,i,o){var a=Tu.getInstance(),s=this.getDimension(),l=s/2-this.nbCenterLayers,c=s/2+this.nbCenterLayers;return a.sampleGrid(e,s,s,l,l,c,l,c,c,l,c,t.getX(),t.getY(),n.getX(),n.getY(),i.getX(),i.getY(),o.getX(),o.getY())},r.prototype.sampleLine=function(e,t,n){for(var i=0,o=this.distanceResultPoint(e,t),a=o/n,s=e.getX(),l=e.getY(),c=a*(t.getX()-e.getX())/o,u=a*(t.getY()-e.getY())/o,h=0;h<n;h++)this.image.get(je.round(s+h*c),je.round(l+h*u))&&(i|=1<<n-h-1);return i},r.prototype.isWhiteOrBlackRectangle=function(e,t,n,i){var o=3;e=new wr(e.getX()-o,e.getY()+o),t=new wr(t.getX()-o,t.getY()-o),n=new wr(n.getX()+o,n.getY()-o),i=new wr(i.getX()+o,i.getY()+o);var a=this.getColor(i,e);if(a===0)return!1;var s=this.getColor(e,t);return s!==a||(s=this.getColor(t,n),s!==a)?!1:(s=this.getColor(n,i),s===a)},r.prototype.getColor=function(e,t){for(var n=this.distancePoint(e,t),i=(t.getX()-e.getX())/n,o=(t.getY()-e.getY())/n,a=0,s=e.getX(),l=e.getY(),c=this.image.get(e.getX(),e.getY()),u=Math.ceil(n),h=0;h<u;h++)s+=i,l+=o,this.image.get(je.round(s),je.round(l))!==c&&a++;var d=a/n;return d>.1&&d<.9?0:d<=.1===c?1:-1},r.prototype.getFirstDifferent=function(e,t,n,i){for(var o=e.getX()+n,a=e.getY()+i;this.isValid(o,a)&&this.image.get(o,a)===t;)o+=n,a+=i;for(o-=n,a-=i;this.isValid(o,a)&&this.image.get(o,a)===t;)o+=n;for(o-=n;this.isValid(o,a)&&this.image.get(o,a)===t;)a+=i;return a-=i,new wr(o,a)},r.prototype.expandSquare=function(e,t,n){var i=n/(2*t),o=e[0].getX()-e[2].getX(),a=e[0].getY()-e[2].getY(),s=(e[0].getX()+e[2].getX())/2,l=(e[0].getY()+e[2].getY())/2,c=new Me(s+i*o,l+i*a),u=new Me(s-i*o,l-i*a);o=e[1].getX()-e[3].getX(),a=e[1].getY()-e[3].getY(),s=(e[1].getX()+e[3].getX())/2,l=(e[1].getY()+e[3].getY())/2;var h=new Me(s+i*o,l+i*a),d=new Me(s-i*o,l-i*a),f=[c,h,u,d];return f},r.prototype.isValid=function(e,t){return e>=0&&e<this.image.getWidth()&&t>0&&t<this.image.getHeight()},r.prototype.isValidPoint=function(e){var t=je.round(e.getX()),n=je.round(e.getY());return this.isValid(t,n)},r.prototype.distancePoint=function(e,t){return je.distance(e.getX(),e.getY(),t.getX(),t.getY())},r.prototype.distanceResultPoint=function(e,t){return je.distance(e.getX(),e.getY(),t.getX(),t.getY())},r.prototype.getDimension=function(){return this.compact?4*this.nbLayers+11:this.nbLayers<=4?4*this.nbLayers+15:4*this.nbLayers+2*(Ut.truncDivision(this.nbLayers-4,8)+1)+15},r}(),ka=function(){function r(){}return r.prototype.decode=function(e,t){t===void 0&&(t=null);var n=null,i=new JM(e.getBlackMatrix()),o=null,a=null;try{var s=i.detectMirror(!1);o=s.getPoints(),this.reportFoundResultPoints(t,o),a=new Kf().decode(s)}catch(h){n=h}if(a==null)try{var s=i.detectMirror(!0);o=s.getPoints(),this.reportFoundResultPoints(t,o),a=new Kf().decode(s)}catch(h){throw n!=null?n:h}var l=new gr(a.getText(),a.getRawBytes(),a.getNumBits(),o,De.AZTEC,mt.currentTimeMillis()),c=a.getByteSegments();c!=null&&l.putMetadata(sr.BYTE_SEGMENTS,c);var u=a.getECLevel();return u!=null&&l.putMetadata(sr.ERROR_CORRECTION_LEVEL,u),l},r.prototype.reportFoundResultPoints=function(e,t){if(e!=null){var n=e.get(vt.NEED_RESULT_POINT_CALLBACK);n!=null&&t.forEach(function(i,o,a){n.foundPossibleResultPoint(i)})}},r.prototype.reset=function(){},r}(),zM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();(function(r){zM(e,r);function e(t){return t===void 0&&(t=500),r.call(this,new ka,t)||this}return e})($i);var Gt=function(){function r(){}return r.prototype.decode=function(e,t){try{return this.doDecode(e,t)}catch{var n=t&&t.get(vt.TRY_HARDER)===!0;if(n&&e.isRotateSupported()){var i=e.rotateCounterClockwise(),o=this.doDecode(i,t),a=o.getResultMetadata(),s=270;a!==null&&a.get(sr.ORIENTATION)===!0&&(s=s+a.get(sr.ORIENTATION)%360),o.putMetadata(sr.ORIENTATION,s);var l=o.getResultPoints();if(l!==null)for(var c=i.getHeight(),u=0;u<l.length;u++)l[u]=new Me(c-l[u].getY()-1,l[u].getX());return o}else throw new we}},r.prototype.reset=function(){},r.prototype.doDecode=function(e,t){var n=e.getWidth(),i=e.getHeight(),o=new br(n),a=t&&t.get(vt.TRY_HARDER)===!0,s=Math.max(1,i>>(a?8:5)),l;a?l=i:l=15;for(var c=Math.trunc(i/2),u=0;u<l;u++){var h=Math.trunc((u+1)/2),d=(u&1)===0,f=c+s*(d?h:-h);if(f<0||f>=i)break;try{o=e.getBlackRow(f,o)}catch{continue}for(var p=function(m){if(m===1&&(o.reverse(),t&&t.get(vt.NEED_RESULT_POINT_CALLBACK)===!0)){var x=new Map;t.forEach(function(A,D){return x.set(D,A)}),x.delete(vt.NEED_RESULT_POINT_CALLBACK),t=x}try{var T=g.decodeRow(f,o,t);if(m===1){T.putMetadata(sr.ORIENTATION,180);var P=T.getResultPoints();P!==null&&(P[0]=new Me(n-P[0].getX()-1,P[0].getY()),P[1]=new Me(n-P[1].getX()-1,P[1].getY()))}return{value:T}}catch{}},g=this,v=0;v<2;v++){var R=p(v);if(typeof R=="object")return R.value}}throw new we},r.recordPattern=function(e,t,n){for(var i=n.length,o=0;o<i;o++)n[o]=0;var a=e.getSize();if(t>=a)throw new we;for(var s=!e.get(t),l=0,c=t;c<a;){if(e.get(c)!==s)n[l]++;else{if(++l===i)break;n[l]=1,s=!s}c++}if(!(l===i||l===i-1&&c===a))throw new we},r.recordPatternInReverse=function(e,t,n){for(var i=n.length,o=e.get(t);t>0&&i>=0;)e.get(--t)!==o&&(i--,o=!o);if(i>=0)throw new we;r.recordPattern(e,t+1,n)},r.patternMatchVariance=function(e,t,n){for(var i=e.length,o=0,a=0,s=0;s<i;s++)o+=e[s],a+=t[s];if(o<a)return Number.POSITIVE_INFINITY;var l=o/a;n*=l;for(var c=0,u=0;u<i;u++){var h=e[u],d=t[u]*l,f=h>d?h-d:d-h;if(f>n)return Number.POSITIVE_INFINITY;c+=f}return c/o},r}(),$M=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Bf=function(r){$M(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.findStartPattern=function(t){for(var n=t.getSize(),i=t.getNextSet(0),o=0,a=Int32Array.from([0,0,0,0,0,0]),s=i,l=!1,c=6,u=i;u<n;u++)if(t.get(u)!==l)a[o]++;else{if(o===c-1){for(var h=e.MAX_AVG_VARIANCE,d=-1,f=e.CODE_START_A;f<=e.CODE_START_C;f++){var p=Gt.patternMatchVariance(a,e.CODE_PATTERNS[f],e.MAX_INDIVIDUAL_VARIANCE);p<h&&(h=p,d=f)}if(d>=0&&t.isRange(Math.max(0,s-(u-s)/2),s,!1))return Int32Array.from([s,u,d]);s+=a[0]+a[1],a=a.slice(2,a.length),a[o-1]=0,a[o]=0,o--}else o++;a[o]=1,l=!l}throw new we},e.decodeCode=function(t,n,i){Gt.recordPattern(t,i,n);for(var o=e.MAX_AVG_VARIANCE,a=-1,s=0;s<e.CODE_PATTERNS.length;s++){var l=e.CODE_PATTERNS[s],c=this.patternMatchVariance(n,l,e.MAX_INDIVIDUAL_VARIANCE);c<o&&(o=c,a=s)}if(a>=0)return a;throw new we},e.prototype.decodeRow=function(t,n,i){var o=i&&i.get(vt.ASSUME_GS1)===!0,a=e.findStartPattern(n),s=a[2],l=0,c=new Uint8Array(20);c[l++]=s;var u;switch(s){case e.CODE_START_A:u=e.CODE_CODE_A;break;case e.CODE_START_B:u=e.CODE_CODE_B;break;case e.CODE_START_C:u=e.CODE_CODE_C;break;default:throw new Ee}for(var h=!1,d=!1,f="",p=a[0],g=a[1],v=Int32Array.from([0,0,0,0,0,0]),R=0,m=0,x=s,T=0,P=!0,A=!1,D=!1;!h;){var W=d;switch(d=!1,R=m,m=e.decodeCode(n,v,g),c[l++]=m,m!==e.CODE_STOP&&(P=!0),m!==e.CODE_STOP&&(T++,x+=T*m),p=g,g+=v.reduce(function(F,Y){return F+Y},0),m){case e.CODE_START_A:case e.CODE_START_B:case e.CODE_START_C:throw new Ee}switch(u){case e.CODE_CODE_A:if(m<64)D===A?f+=String.fromCharCode(" ".charCodeAt(0)+m):f+=String.fromCharCode(" ".charCodeAt(0)+m+128),D=!1;else if(m<96)D===A?f+=String.fromCharCode(m-64):f+=String.fromCharCode(m+64),D=!1;else switch(m!==e.CODE_STOP&&(P=!1),m){case e.CODE_FNC_1:o&&(f.length===0?f+="]C1":f+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_A:!A&&D?(A=!0,D=!1):A&&D?(A=!1,D=!1):D=!0;break;case e.CODE_SHIFT:d=!0,u=e.CODE_CODE_B;break;case e.CODE_CODE_B:u=e.CODE_CODE_B;break;case e.CODE_CODE_C:u=e.CODE_CODE_C;break;case e.CODE_STOP:h=!0;break}break;case e.CODE_CODE_B:if(m<96)D===A?f+=String.fromCharCode(" ".charCodeAt(0)+m):f+=String.fromCharCode(" ".charCodeAt(0)+m+128),D=!1;else switch(m!==e.CODE_STOP&&(P=!1),m){case e.CODE_FNC_1:o&&(f.length===0?f+="]C1":f+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_B:!A&&D?(A=!0,D=!1):A&&D?(A=!1,D=!1):D=!0;break;case e.CODE_SHIFT:d=!0,u=e.CODE_CODE_A;break;case e.CODE_CODE_A:u=e.CODE_CODE_A;break;case e.CODE_CODE_C:u=e.CODE_CODE_C;break;case e.CODE_STOP:h=!0;break}break;case e.CODE_CODE_C:if(m<100)m<10&&(f+="0"),f+=m;else switch(m!==e.CODE_STOP&&(P=!1),m){case e.CODE_FNC_1:o&&(f.length===0?f+="]C1":f+=String.fromCharCode(29));break;case e.CODE_CODE_A:u=e.CODE_CODE_A;break;case e.CODE_CODE_B:u=e.CODE_CODE_B;break;case e.CODE_STOP:h=!0;break}break}W&&(u=u===e.CODE_CODE_A?e.CODE_CODE_B:e.CODE_CODE_A)}var _=g-p;if(g=n.getNextUnset(g),!n.isRange(g,Math.min(n.getSize(),g+(g-p)/2),!1))throw new we;if(x-=T*R,x%103!==R)throw new Yt;var Q=f.length;if(Q===0)throw new we;Q>0&&P&&(u===e.CODE_CODE_C?f=f.substring(0,Q-2):f=f.substring(0,Q-1));for(var te=(a[1]+a[0])/2,O=p+_/2,I=c.length,y=new Uint8Array(I),L=0;L<I;L++)y[L]=c[L];var k=[new Me(te,t),new Me(O,t)];return new gr(f,y,0,k,De.CODE_128,new Date().getTime())},e.CODE_PATTERNS=[Int32Array.from([2,1,2,2,2,2]),Int32Array.from([2,2,2,1,2,2]),Int32Array.from([2,2,2,2,2,1]),Int32Array.from([1,2,1,2,2,3]),Int32Array.from([1,2,1,3,2,2]),Int32Array.from([1,3,1,2,2,2]),Int32Array.from([1,2,2,2,1,3]),Int32Array.from([1,2,2,3,1,2]),Int32Array.from([1,3,2,2,1,2]),Int32Array.from([2,2,1,2,1,3]),Int32Array.from([2,2,1,3,1,2]),Int32Array.from([2,3,1,2,1,2]),Int32Array.from([1,1,2,2,3,2]),Int32Array.from([1,2,2,1,3,2]),Int32Array.from([1,2,2,2,3,1]),Int32Array.from([1,1,3,2,2,2]),Int32Array.from([1,2,3,1,2,2]),Int32Array.from([1,2,3,2,2,1]),Int32Array.from([2,2,3,2,1,1]),Int32Array.from([2,2,1,1,3,2]),Int32Array.from([2,2,1,2,3,1]),Int32Array.from([2,1,3,2,1,2]),Int32Array.from([2,2,3,1,1,2]),Int32Array.from([3,1,2,1,3,1]),Int32Array.from([3,1,1,2,2,2]),Int32Array.from([3,2,1,1,2,2]),Int32Array.from([3,2,1,2,2,1]),Int32Array.from([3,1,2,2,1,2]),Int32Array.from([3,2,2,1,1,2]),Int32Array.from([3,2,2,2,1,1]),Int32Array.from([2,1,2,1,2,3]),Int32Array.from([2,1,2,3,2,1]),Int32Array.from([2,3,2,1,2,1]),Int32Array.from([1,1,1,3,2,3]),Int32Array.from([1,3,1,1,2,3]),Int32Array.from([1,3,1,3,2,1]),Int32Array.from([1,1,2,3,1,3]),Int32Array.from([1,3,2,1,1,3]),Int32Array.from([1,3,2,3,1,1]),Int32Array.from([2,1,1,3,1,3]),Int32Array.from([2,3,1,1,1,3]),Int32Array.from([2,3,1,3,1,1]),Int32Array.from([1,1,2,1,3,3]),Int32Array.from([1,1,2,3,3,1]),Int32Array.from([1,3,2,1,3,1]),Int32Array.from([1,1,3,1,2,3]),Int32Array.from([1,1,3,3,2,1]),Int32Array.from([1,3,3,1,2,1]),Int32Array.from([3,1,3,1,2,1]),Int32Array.from([2,1,1,3,3,1]),Int32Array.from([2,3,1,1,3,1]),Int32Array.from([2,1,3,1,1,3]),Int32Array.from([2,1,3,3,1,1]),Int32Array.from([2,1,3,1,3,1]),Int32Array.from([3,1,1,1,2,3]),Int32Array.from([3,1,1,3,2,1]),Int32Array.from([3,3,1,1,2,1]),Int32Array.from([3,1,2,1,1,3]),Int32Array.from([3,1,2,3,1,1]),Int32Array.from([3,3,2,1,1,1]),Int32Array.from([3,1,4,1,1,1]),Int32Array.from([2,2,1,4,1,1]),Int32Array.from([4,3,1,1,1,1]),Int32Array.from([1,1,1,2,2,4]),Int32Array.from([1,1,1,4,2,2]),Int32Array.from([1,2,1,1,2,4]),Int32Array.from([1,2,1,4,2,1]),Int32Array.from([1,4,1,1,2,2]),Int32Array.from([1,4,1,2,2,1]),Int32Array.from([1,1,2,2,1,4]),Int32Array.from([1,1,2,4,1,2]),Int32Array.from([1,2,2,1,1,4]),Int32Array.from([1,2,2,4,1,1]),Int32Array.from([1,4,2,1,1,2]),Int32Array.from([1,4,2,2,1,1]),Int32Array.from([2,4,1,2,1,1]),Int32Array.from([2,2,1,1,1,4]),Int32Array.from([4,1,3,1,1,1]),Int32Array.from([2,4,1,1,1,2]),Int32Array.from([1,3,4,1,1,1]),Int32Array.from([1,1,1,2,4,2]),Int32Array.from([1,2,1,1,4,2]),Int32Array.from([1,2,1,2,4,1]),Int32Array.from([1,1,4,2,1,2]),Int32Array.from([1,2,4,1,1,2]),Int32Array.from([1,2,4,2,1,1]),Int32Array.from([4,1,1,2,1,2]),Int32Array.from([4,2,1,1,1,2]),Int32Array.from([4,2,1,2,1,1]),Int32Array.from([2,1,2,1,4,1]),Int32Array.from([2,1,4,1,2,1]),Int32Array.from([4,1,2,1,2,1]),Int32Array.from([1,1,1,1,4,3]),Int32Array.from([1,1,1,3,4,1]),Int32Array.from([1,3,1,1,4,1]),Int32Array.from([1,1,4,1,1,3]),Int32Array.from([1,1,4,3,1,1]),Int32Array.from([4,1,1,1,1,3]),Int32Array.from([4,1,1,3,1,1]),Int32Array.from([1,1,3,1,4,1]),Int32Array.from([1,1,4,1,3,1]),Int32Array.from([3,1,1,1,4,1]),Int32Array.from([4,1,1,1,3,1]),Int32Array.from([2,1,1,4,1,2]),Int32Array.from([2,1,1,2,1,4]),Int32Array.from([2,1,1,2,3,2]),Int32Array.from([2,3,3,1,1,1,2])],e.MAX_AVG_VARIANCE=.25,e.MAX_INDIVIDUAL_VARIANCE=.7,e.CODE_SHIFT=98,e.CODE_CODE_C=99,e.CODE_CODE_B=100,e.CODE_CODE_A=101,e.CODE_FNC_1=102,e.CODE_FNC_2=97,e.CODE_FNC_3=96,e.CODE_FNC_4_A=101,e.CODE_FNC_4_B=100,e.CODE_START_A=103,e.CODE_START_B=104,e.CODE_START_C=105,e.CODE_STOP=106,e}(Gt),jM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Tl=globalThis&&globalThis.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Gf=function(r){jM(e,r);function e(t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=r.call(this)||this;return i.usingCheckDigit=t,i.extendedMode=n,i.decodeRowResult="",i.counters=new Int32Array(9),i}return e.prototype.decodeRow=function(t,n,i){var o,a,s,l,c=this.counters;c.fill(0),this.decodeRowResult="";var u=e.findAsteriskPattern(n,c),h=n.getNextSet(u[1]),d=n.getSize(),f,p;do{e.recordPattern(n,h,c);var g=e.toNarrowWidePattern(c);if(g<0)throw new we;f=e.patternToChar(g),this.decodeRowResult+=f,p=h;try{for(var v=(o=void 0,Tl(c)),R=v.next();!R.done;R=v.next()){var m=R.value;h+=m}}catch(I){o={error:I}}finally{try{R&&!R.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}h=n.getNextSet(h)}while(f!=="*");this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var x=0;try{for(var T=Tl(c),P=T.next();!P.done;P=T.next()){var m=P.value;x+=m}}catch(I){s={error:I}}finally{try{P&&!P.done&&(l=T.return)&&l.call(T)}finally{if(s)throw s.error}}var A=h-p-x;if(h!==d&&A*2<x)throw new we;if(this.usingCheckDigit){for(var D=this.decodeRowResult.length-1,W=0,_=0;_<D;_++)W+=e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(_));if(this.decodeRowResult.charAt(D)!==e.ALPHABET_STRING.charAt(W%43))throw new Yt;this.decodeRowResult=this.decodeRowResult.substring(0,D)}if(this.decodeRowResult.length===0)throw new we;var Q;this.extendedMode?Q=e.decodeExtended(this.decodeRowResult):Q=this.decodeRowResult;var te=(u[1]+u[0])/2,O=p+x/2;return new gr(Q,null,0,[new Me(te,t),new Me(O,t)],De.CODE_39,new Date().getTime())},e.findAsteriskPattern=function(t,n){for(var i=t.getSize(),o=t.getNextSet(0),a=0,s=o,l=!1,c=n.length,u=o;u<i;u++)if(t.get(u)!==l)n[a]++;else{if(a===c-1){if(this.toNarrowWidePattern(n)===e.ASTERISK_ENCODING&&t.isRange(Math.max(0,s-Math.floor((u-s)/2)),s,!1))return[s,u];s+=n[0]+n[1],n.copyWithin(0,2,2+a-1),n[a-1]=0,n[a]=0,a--}else a++;n[a]=1,l=!l}throw new we},e.toNarrowWidePattern=function(t){var n,i,o=t.length,a=0,s;do{var l=2147483647;try{for(var c=(n=void 0,Tl(t)),u=c.next();!u.done;u=c.next()){var h=u.value;h<l&&h>a&&(l=h)}}catch(g){n={error:g}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}a=l,s=0;for(var d=0,f=0,p=0;p<o;p++){var h=t[p];h>a&&(f|=1<<o-1-p,s++,d+=h)}if(s===3){for(var p=0;p<o&&s>0;p++){var h=t[p];if(h>a&&(s--,h*2>=d))return-1}return f}}while(s>3);return-1},e.patternToChar=function(t){for(var n=0;n<e.CHARACTER_ENCODINGS.length;n++)if(e.CHARACTER_ENCODINGS[n]===t)return e.ALPHABET_STRING.charAt(n);if(t===e.ASTERISK_ENCODING)return"*";throw new we},e.decodeExtended=function(t){for(var n=t.length,i="",o=0;o<n;o++){var a=t.charAt(o);if(a==="+"||a==="$"||a==="%"||a==="/"){var s=t.charAt(o+1),l="\0";switch(a){case"+":if(s>="A"&&s<="Z")l=String.fromCharCode(s.charCodeAt(0)+32);else throw new Ee;break;case"$":if(s>="A"&&s<="Z")l=String.fromCharCode(s.charCodeAt(0)-64);else throw new Ee;break;case"%":if(s>="A"&&s<="E")l=String.fromCharCode(s.charCodeAt(0)-38);else if(s>="F"&&s<="J")l=String.fromCharCode(s.charCodeAt(0)-11);else if(s>="K"&&s<="O")l=String.fromCharCode(s.charCodeAt(0)+16);else if(s>="P"&&s<="T")l=String.fromCharCode(s.charCodeAt(0)+43);else if(s==="U")l="\0";else if(s==="V")l="@";else if(s==="W")l="`";else if(s==="X"||s==="Y"||s==="Z")l="\x7F";else throw new Ee;break;case"/":if(s>="A"&&s<="O")l=String.fromCharCode(s.charCodeAt(0)-32);else if(s==="Z")l=":";else throw new Ee;break}i+=l,o++}else i+=a}return i},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",e.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],e.ASTERISK_ENCODING=148,e}(Gt),qM=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Pl=globalThis&&globalThis.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Jf=function(r){qM(e,r);function e(){var t=r.call(this)||this;return t.decodeRowResult="",t.counters=new Int32Array(6),t}return e.prototype.decodeRow=function(t,n,i){var o,a,s,l,c=this.findAsteriskPattern(n),u=n.getNextSet(c[1]),h=n.getSize(),d=this.counters;d.fill(0),this.decodeRowResult="";var f,p;do{e.recordPattern(n,u,d);var g=this.toPattern(d);if(g<0)throw new we;f=this.patternToChar(g),this.decodeRowResult+=f,p=u;try{for(var v=(o=void 0,Pl(d)),R=v.next();!R.done;R=v.next()){var m=R.value;u+=m}}catch(_){o={error:_}}finally{try{R&&!R.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}u=n.getNextSet(u)}while(f!=="*");this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var x=0;try{for(var T=Pl(d),P=T.next();!P.done;P=T.next()){var m=P.value;x+=m}}catch(_){s={error:_}}finally{try{P&&!P.done&&(l=T.return)&&l.call(T)}finally{if(s)throw s.error}}if(u===h||!n.get(u))throw new we;if(this.decodeRowResult.length<2)throw new we;this.checkChecksums(this.decodeRowResult),this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-2);var A=this.decodeExtended(this.decodeRowResult),D=(c[1]+c[0])/2,W=p+x/2;return new gr(A,null,0,[new Me(D,t),new Me(W,t)],De.CODE_93,new Date().getTime())},e.prototype.findAsteriskPattern=function(t){var n=t.getSize(),i=t.getNextSet(0);this.counters.fill(0);for(var o=this.counters,a=i,s=!1,l=o.length,c=0,u=i;u<n;u++)if(t.get(u)!==s)o[c]++;else{if(c===l-1){if(this.toPattern(o)===e.ASTERISK_ENCODING)return new Int32Array([a,u]);a+=o[0]+o[1],o.copyWithin(0,2,2+c-1),o[c-1]=0,o[c]=0,c--}else c++;o[c]=1,s=!s}throw new we},e.prototype.toPattern=function(t){var n,i,o=0;try{for(var a=Pl(t),s=a.next();!s.done;s=a.next()){var l=s.value;o+=l}}catch(p){n={error:p}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}for(var c=0,u=t.length,h=0;h<u;h++){var d=Math.round(t[h]*9/o);if(d<1||d>4)return-1;if((h&1)===0)for(var f=0;f<d;f++)c=c<<1|1;else c<<=d}return c},e.prototype.patternToChar=function(t){for(var n=0;n<e.CHARACTER_ENCODINGS.length;n++)if(e.CHARACTER_ENCODINGS[n]===t)return e.ALPHABET_STRING.charAt(n);throw new we},e.prototype.decodeExtended=function(t){for(var n=t.length,i="",o=0;o<n;o++){var a=t.charAt(o);if(a>="a"&&a<="d"){if(o>=n-1)throw new Ee;var s=t.charAt(o+1),l="\0";switch(a){case"d":if(s>="A"&&s<="Z")l=String.fromCharCode(s.charCodeAt(0)+32);else throw new Ee;break;case"a":if(s>="A"&&s<="Z")l=String.fromCharCode(s.charCodeAt(0)-64);else throw new Ee;break;case"b":if(s>="A"&&s<="E")l=String.fromCharCode(s.charCodeAt(0)-38);else if(s>="F"&&s<="J")l
|