PageSourceSearch

https://phmax-webapp.vercel.app/assets/vyrocni-zprava-docx-export-pw5st_zY.js

js phmax-webapp.vercel.app collected 2026-10-03 07:29:24 UTC 383,180 bytes, 40 lines download raw bytes

1import{g as mi,b as gi,c as vi,s as yi,p as wi,h as bi}from"./VyrocniZpravaPreviewPage-CqaX7opl.js";import{aX as _i,bC as Ae,bD as _r,r as xi,s as Ei,t as Si,ae as Gr,bE as Se,bF as Ti}from"./ensure-vz-school-year-platform-binding-CXnV2ZA0.js";import"./index-8A6Xwojn.js";import"./AuthorCreditFooter-DCgnZGsJ.js";import"./VyrocniZpravaLegalFrameworkPanel-DYvQGr8a.js";import"./use-school-profile-B85tKPdv.js";import"./scenario-label-school-shadow-establishment-runtime-DMLGWs5V.js";import"./VyrocniZpravaApplicabilityNotice-VOFbNbCk.js";import"./cs-format-DDptLcXi.js";import"./phmax-sd-logic-ByoQHnjQ.js";import"./sd-compute-phmax-total-from-snapshot-CpgumlQS.js";import"./phmax-ss-explainability-BqMv57cA.js";import"./ss-compute-phmax-total-from-snapshot-FQL9Izn6.js";import"./pv-compute-phmax-total-from-snapshot-DnAbarol.js";import"./phmax-pv-1d3-reduction-_pXvHT_6.js";import"./zs-form-snapshot-DT7fYxCb.js";var Ai=Object.create,mn=Object.defineProperty,ki=Object.getOwnPropertyDescriptor,Ri=Object.getOwnPropertyNames,Ci=Object.getPrototypeOf,Pi=Object.prototype.hasOwnProperty,gn=(e,t)=>()=>(e&&(t=e(e=0)),t),le=(e,t)=>
1()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Ii=(e,t,r,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(var l=Ri(t),a=0,s=l.length,n;a<s;a++)n=l[a],!Pi.call(e,n)&&n!==r&&mn(e,n,{get:(h=>t[h]).bind(null,n),enumerable:!(u=ki(t,n))||u.enumerable});return e},Tr=(e,t,r)=>(r=e!=null?Ai(Ci(e)):{},Ii(mn(r,"default",{value:e,enumerable:!0}),e)),qt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function Dt(e){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dt(e)}function Ni(e,t){if(Dt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var u=r.call(e,t);if(Dt(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oi(e){var t=Ni(e,"string");return Dt(t)=="symbol"?t:t+""}function ie(e,t,r){return(t=Oi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qt=class{constructor(e){ie(this,"rootKey",void 0),this.rootKey=e}},Fi=Object.seal({}),ce=class extends Qt{constructor(e){super(e),ie(this,"root",void 0),this.root=new Array}prepForXml(e){var t;e.stack.push(this);const r=this.root.map(u=>u instanceof Qt?u.prepForXml(e):u).filter(u=>u!==void 0);return e.stack.pop(),{[this.rootKey]:r.length?r.length===1&&(!((t=r[0])===null||t===void 0)&&t._attr)?r[0]:r:Fi}}addChildElement(e){return this.root.push(e),this}},tt=class extends ce{constructor(e,t){super(e),ie(this,"includeIfEmpty",void 0),this.includeIfEmpty=t}prepForXml(e){const t=super.prepForXml(e);if(this.includeIfEmpty||t&&(typeof t[this.rootKey]!="object"||Object.keys(t[this.rootKey]).length))return t}};function Vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),r.push.apply(r,u)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vr(Object(r),!0).forEach(function(u){ie(e,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vr(Object(r)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(r,u))})}return e}var _e=class extends Qt{constructor(e){super("_attr"),ie(this,"root",void 0),ie(this,"xmlKeys",void 0),this.root=e}prepForXml(e){const t={};return Object.entries(this.root).forEach(([r,u])=>{if(u!==void 0){const l=this.xmlKeys&&this.xmlKeys[r]||r;t[l]=u}}),{_attr:t}}},Bi=class extends Qt{constructor(e){super("_attr"),ie(this,"root",void 0),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:t})=>t!==void 0).reduce((t,{key:r,value:u})=>ge(ge({},t),{},{[r]:u}),{})}}},Fe=class extends _e{constructor(...e){super(...e),ie(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"})}},Ar=le((e,t)=>{var r=typeof Reflect=="object"?Reflect:null,u=r&&typeof r.apply=="function"?r.apply:function(O,U,I){return Function.prototype.apply.call(O,U,I)},l;r&&typeof r.ownKeys=="function"?l=r.ownKeys:Object.getOwnPropertySymbols?l=function(O){return Object.getOwnPropertyNames(O).concat(Object.getOwnPropertySymbols(O))}:l=function(O){return Object.getOwnPropertyNames(O)};function a(m){console&&console.warn&&console.warn(m)}var s=Number.isNaN||function(O){return O!==O};function n(){n.init.call(this)}t.exports=n,t.exports.once=T,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var h=10;function w(m){if(typeof m!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof m)}Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(m){if(typeof m!="number"||m<0||s(m))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+m+".");h=m}}),n.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},n.prototype.setMaxListeners=function(O){if(typeof O!="number"||O<0||s(O))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+O+".");return this._maxListeners=O,this};function _(m){return m._maxListeners===void 0?n.defaultMaxListeners:m._maxListeners}n.prototype.getMaxListeners=function(){return _(this)},n.prototype.emit=function(O){for(var U=[],I=1;I<arguments.length;
vendor: 4,740 bytes, line 1
1I++)U.push(arguments[I]);var K=O==="error",Q=this._events;if(Q!==void 0)K=K&&Q.error===void 0;else if(!K)return!1;if(K){var N;if(U.length>0&&(N=U[0]),N instanceof Error)throw N;var W=new Error("Unhandled error."+(N?" ("+N.message+")":""));throw W.context=N,W}var k=Q[O];if(k===void 0)return!1;if(typeof k=="function")u(k,this,U);else for(var H=k.length,J=A(k,H),I=0;I<H;++I)u(J[I],this,U);return!0};function y(m,O,U,I){var K,Q,N;if(w(U),Q=m._events,Q===void 0?(Q=m._events=Object.create(null),m._eventsCount=0):(Q.newListener!==void 0&&(m.emit("newListener",O,U.listener?U.listener:U),Q=m._events),N=Q[O]),N===void 0)N=Q[O]=U,++m._eventsCount;else if(typeof N=="function"?N=Q[O]=I?[U,N]:[N,U]:I?N.unshift(U):N.push(U),K=_(m),K>0&&N.length>K&&!N.warned){N.warned=!0;var W=new Error("Possible EventEmitter memory leak detected. "+N.length+" "+String(O)+" listeners added. Use emitter.setMaxListeners() to increase limit");W.name="MaxListenersExceededWarning",W.emitter=m,W.type=O,W.count=N.length,a(W)}return m}n.prototype.addListener=function(O,U){return y(this,O,U,!1)},n.prototype.on=n.prototype.addListener,n.prototype.prependListener=function(O,U){return y(this,O,U,!0)};function E(){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 g(m,O,U){var I={fired:!1,wrapFn:void 0,target:m,type:O,listener:U},K=E.bind(I);return K.listener=U,I.wrapFn=K,K}n.prototype.once=function(O,U){return w(U),this.on(O,g(this,O,U)),this},n.prototype.prependOnceListener=function(O,U){return w(U),this.prependListener(O,g(this,O,U)),this},n.prototype.removeListener=function(O,U){var I,K,Q,N,W;if(w(U),K=this._events,K===void 0)return this;if(I=K[O],I===void 0)return this;if(I===U||I.listener===U)--this._eventsCount===0?this._events=Object.create(null):(delete K[O],K.removeListener&&this.emit("removeListener",O,I.listener||U));else if(typeof I!="function"){for(Q=-1,N=I.length-1;N>=0;N--)if(I[N]===U||I[N].listener===U){W=I[N].listener,Q=N;break}if(Q<0)return this;Q===0?I.shift():P(I,Q),I.length===1&&(K[O]=I[0]),K.removeListener!==void 0&&this.emit("removeListener",O,W||U)}return this},n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=function(O){var U,I=this._events,K;if(I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[O]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[O]),this;if(arguments.length===0){var Q=Object.keys(I),N;for(K=0;K<Q.length;++K)N=Q[K],N!=="removeListener"&&this.removeAllListeners(N);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(U=I[O],typeof U=="function")this.removeListener(O,U);else if(U!==void 0)for(K=U.length-1;K>=0;K--)this.removeListener(O,U[K]);return this};function p(m,O,U){var I=m._events;if(I===void 0)return[];var K=I[O];return K===void 0?[]:typeof K=="function"?U?[K.listener||K]:[K]:U?b(K):A(K,K.length)}n.prototype.listeners=function(O){return p(this,O,!0)},n.prototype.rawListeners=function(O){return p(this,O,!1)},n.listenerCount=function(m,O){return typeof m.listenerCount=="function"?m.listenerCount(O):v.call(m,O)},n.prototype.listenerCount=v;function v(m){var O=this._events;if(O!==void 0){var U=O[m];if(typeof U=="function")return 1;if(U!==void 0)return U.length}return 0}n.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]};function A(m,O){for(var U=new Array(O),I=0;I<O;++I)U[I]=m[I];return U}function P(m,O){for(;O+1<m.length;O++)m[O]=m[O+1];m.pop()}function b(m){for(var O=new Array(m.length),U=0;U<O.length;++U)O[U]=m[U].listener||m[U];return O}function T(m,O){return new Promise(function(U,I){function K(N){m.removeListener(O,Q),I(N)}function Q(){typeof m.removeListener=="function"&&m.removeListener("error",K),U([].slice.call(arguments))}S(m,O,Q,{once:!0}),O!=="error"&&R(m,K,{once:!0})})}function R(m,O,U){typeof m.on=="function"&&S(m,"error",O,U)}function S(m,O,U,I){if(typeof m.on=="function")I.once?m.once(O,U):m.on(O,U);else if(typeof m.addEventListener=="function")m.addEventListener(O,function K(Q){I.once&&m.removeEventListener(O,K),U(Q)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof m)}}),rt=le((e,t)=>{typeof Object.create=="function"?t.exports=function(u,l){l&&(u.super_=l,u.prototype=Object.create(l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(u,l){if(l){u.super_=l;var a=function(){};a.prototype=l.prototype,u.prototype=new a,u.prototype.constructor=u}}}),De,Tt=gn(()=>{De=globalThis||self});
1function Di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xr(){throw new Error("setTimeout has not been defined")}function Er(){throw new Error("clearTimeout has not been defined")}function vn(e){if(Ge===setTimeout)return setTimeout(e,0);if((Ge===xr||!Ge)&&setTimeout)return Ge=setTimeout,setTimeout(e,0);try{return Ge(e,0)}catch{try{return Ge.call(null,e,0)}catch{return Ge.call(this,e,0)}}}function Li(e){if(Ve===clearTimeout)return clearTimeout(e);if((Ve===Er||!Ve)&&clearTimeout)return Ve=clearTimeout,clearTimeout(e);try{return Ve(e)}catch{try{return Ve.call(null,e)}catch{return Ve.call(this,e)}}}function Mi(){!ct||!lt||(ct=!1,lt.length?Ke=lt.concat(Ke):Ft=-1,Ke.length&&yn())}function yn(){if(!ct){var e=vn(Mi);ct=!0;for(var t=Ke.length;t;){for(lt=Ke,Ke=[];++Ft<t;)lt&&lt[Ft].run();Ft=-1,t=Ke.length}lt=null,ct=!1,Li(e)}}function Kr(e,t){this.fun=e,this.array=t}function Xe(){}var lr,Ce,Ge,Ve,Ke,ct,lt,Ft,qr,be,nt=gn(()=>{lr={exports:{}},Ce=lr.exports={},function(){try{typeof setTimeout=="function"?Ge=setTimeout:Ge=xr}catch{Ge=xr}try{typeof clearTimeout=="function"?Ve=clearTimeout:Ve=Er}catch{Ve=Er}}(),Ke=[],ct=!1,Ft=-1,Ce.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Ke.push(new Kr(e,t)),Ke.length===1&&!ct&&vn(yn)},Kr.prototype.run=function(){this.fun.apply(null,this.array)},Ce.title="browser",Ce.browser=!0,Ce.env={},Ce.argv=[],Ce.version="",Ce.versions={},Ce.on=Xe,Ce.addListener=Xe,Ce.once=Xe,Ce.off=Xe,Ce.removeListener=Xe,Ce.removeAllListeners=Xe,Ce.emit=Xe,Ce.prependListener=Xe,Ce.prependOnceListener=Xe,Ce.listeners=function(e){return[]},Ce.binding=function(e){throw new Error("process.binding is not supported")},Ce.cwd=function(){return"/"},Ce.chdir=function(e){throw new Error("process.chdir is not supported")},Ce.umask=function(){return 0}
vendor: 4,936 bytes, lines 1-6
1,qr=lr.exports,be=Di(qr)}),wn=le((e,t)=>{t.exports=Ar().EventEmitter}),Ui=le(e=>{e.byteLength=h,e.toByteArray=_,e.fromByteArray=g;for(var t=[],r=[],u=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=l.length;a<s;++a)t[a]=l[a],r[l.charCodeAt(a)]=a;r[45]=62,r[95]=63;function n(p){var v=p.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var A=p.indexOf("=");A===-1&&(A=v);var P=A===v?0:4-A%4;return[A,P]}function h(p){var v=n(p),A=v[0],P=v[1];return(A+P)*3/4-P}function w(p,v,A){return(v+A)*3/4-A}function _(p){var v,A=n(p),P=A[0],b=A[1],T=new u(w(p,P,b)),R=0,S=b>0?P-4:P,m;for(m=0;m<S;m+=4)v=r[p.charCodeAt(m)]<<18|r[p.charCodeAt(m+1)]<<12|r[p.charCodeAt(m+2)]<<6|r[p.charCodeAt(m+3)],T[R++]=v>>16&255,T[R++]=v>>8&255,T[R++]=v&255;return b===2&&(v=r[p.charCodeAt(m)]<<2|r[p.charCodeAt(m+1)]>>4,T[R++]=v&255),b===1&&(v=r[p.charCodeAt(m)]<<10|r[p.charCodeAt(m+1)]<<4|r[p.charCodeAt(m+2)]>>2,T[R++]=v>>8&255,T[R++]=v&255),T}function y(p){return t[p>>18&63]+t[p>>12&63]+t[p>>6&63]+t[p&63]}function E(p,v,A){for(var P,b=[],T=v;T<A;T+=3)P=(p[T]<<16&16711680)+(p[T+1]<<8&65280)+(p[T+2]&255),b.push(y(P));return b.join("")}function g(p){for(var v,A=p.length,P=A%3,b=[],T=16383,R=0,S=A-P;R<S;R+=T)b.push(E(p,R,R+T>S?S:R+T));return P===1?(v=p[A-1],b.push(t[v>>2]+t[v<<4&63]+"==")):P===2&&(v=(p[A-2]<<8)+p[A-1],b.push(t[v>>10]+t[v>>4&63]+t[v<<2&63]+"=")),b.join("")}}),zi=le(e=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */e.read=function(t,r,u,l,a){var s,n,h=a*8-l-1,w=(1<<h)-1,_=w>>1,y=-7,E=u?a-1:0,g=u?-1:1,p=t[r+E];for(E+=g,s=p&(1<<-y)-1,p>>=-y,y+=h;y>0;s=s*256+t[r+E],E+=g,y-=8);for(n=s&(1<<-y)-1,s>>=-y,y+=l;y>0;n=n*256+t[r+E],E+=g,y-=8);if(s===0)s=1-_;else{if(s===w)return n?NaN:(p?-1:1)*(1/0);n=n+Math.pow(2,l),s=s-_}return(p?-1:1)*n*Math.pow(2,s-l)},e.write=function(t,r,u,l,a,s){var n,h,w,_=s*8-a-1,y=(1<<_)-1,E=y>>1,g=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=l?0:s-1,v=l?1:-1,A=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,n=y):(n=Math.floor(Math.log(r)/Math.LN2),r*(w=Math.pow(2,-n))<1&&(n--,w*=2),n+E>=1?r+=g/w:r+=g*Math.pow(2,1-E),r*w>=2&&(n++,w/=2),n+E>=y?(h=0,n=y):n+E>=1?(h=(r*w-1)*Math.pow(2,a),n=n+E):(h=r*Math.pow(2,E-1)*Math.pow(2,a),n=0));a>=8;t[u+p]=h&255,p+=v,h/=256,a-=8);for(n=n<<a|h,_+=a;_>0;t[u+p]=n&255,p+=v,n/=256,_-=8);t[u+p-v]|=A*128}});/*!
2* The buffer module from node.js, for the browser.
3*
4* @author   Feross Aboukhadijeh <https://feross.org>
5* @license  MIT
6*/var rr=le(e=>{var t=Ui(),r=zi(),u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=n,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;var l=2147483647;e.kMaxLength=l,n.TYPED_ARRAY_SUPPORT=a(),!n.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&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 a(){try{var C=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(C,i),C.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.byteOffset}});function s(C){if(C>l)throw new RangeError('The value "'+C+'" is invalid for option "size"');var i=new Uint8Array(C);return Object.setPrototypeOf(i,n.prototype),i}function n(C,i,o){if(typeof C=="number"){if(typeof i=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(C)}return h(C,i,o)}n.poolSize=8192;function h(C,i,o){if(typeof C=="string")return E(C,i);if(ArrayBuffer.isView(C))return p(C);if(C==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(D(C,ArrayBuffer)||C&&D(C.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(D(C,SharedArrayBuffer)||C&&D(C.buffer,SharedArrayBuffer)))return v(C,i,o);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var d=C.valueOf&&C.valueOf();if(d!=null&&d!==C)return n.from(d,i,o);var L=A(C);if(L)return L;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof C[Symbol.toPrimitive]=="function")return n.from(C[Symbol.toPrimitive]("string"),i,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}n.from=function(C,i,o){return h(C,i,o)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function w(C){if(typeof C!="number")throw new TypeError('"size" argument must be of type number');
vendor: 12,822 bytes, line 6
6if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function _(C,i,o){return w(C),C<=0?s(C):i!==void 0?typeof o=="string"?s(C).fill(i,o):s(C).fill(i):s(C)}n.alloc=function(C,i,o){return _(C,i,o)};function y(C){return w(C),s(C<0?0:P(C)|0)}n.allocUnsafe=function(C){return y(C)},n.allocUnsafeSlow=function(C){return y(C)};function E(C,i){if((typeof i!="string"||i==="")&&(i="utf8"),!n.isEncoding(i))throw new TypeError("Unknown encoding: "+i);var o=T(C,i)|0,d=s(o),L=d.write(C,i);return L!==o&&(d=d.slice(0,L)),d}function g(C){for(var i=C.length<0?0:P(C.length)|0,o=s(i),d=0;d<i;d+=1)o[d]=C[d]&255;return o}function p(C){if(D(C,Uint8Array)){var i=new Uint8Array(C);return v(i.buffer,i.byteOffset,i.byteLength)}return g(C)}function v(C,i,o){if(i<0||C.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<i+(o||0))throw new RangeError('"length" is outside of buffer bounds');var d;return i===void 0&&o===void 0?d=new Uint8Array(C):o===void 0?d=new Uint8Array(C,i):d=new Uint8Array(C,i,o),Object.setPrototypeOf(d,n.prototype),d}function A(C){if(n.isBuffer(C)){var i=P(C.length)|0,o=s(i);return o.length===0||C.copy(o,0,0,i),o}if(C.length!==void 0)return typeof C.length!="number"||c(C.length)?s(0):g(C);if(C.type==="Buffer"&&Array.isArray(C.data))return g(C.data)}function P(C){if(C>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return C|0}function b(C){return+C!=C&&(C=0),n.alloc(+C)}n.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==n.prototype},n.compare=function(i,o){if(D(i,Uint8Array)&&(i=n.from(i,i.offset,i.byteLength)),D(o,Uint8Array)&&(o=n.from(o,o.offset,o.byteLength)),!n.isBuffer(i)||!n.isBuffer(o))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===o)return 0;for(var d=i.length,L=o.length,G=0,j=Math.min(d,L);G<j;++G)if(i[G]!==o[G]){d=i[G],L=o[G];break}return d<L?-1:L<d?1:0},n.isEncoding=function(i){switch(String(i).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}},n.concat=function(i,o){if(!Array.isArray(i))throw new TypeError('"list" argument must be an Array of Buffers');if(i.length===0)return n.alloc(0);var d;if(o===void 0)for(o=0,d=0;d<i.length;++d)o+=i[d].length;var L=n.allocUnsafe(o),G=0;for(d=0;d<i.length;++d){var j=i[d];if(D(j,Uint8Array))G+j.length>L.length?n.from(j).copy(L,G):Uint8Array.prototype.set.call(L,j,G);else if(n.isBuffer(j))j.copy(L,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=j.length}return L};function T(C,i){if(n.isBuffer(C))return C.length;if(ArrayBuffer.isView(C)||D(C,ArrayBuffer))return C.byteLength;if(typeof C!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);var o=C.length,d=arguments.length>2&&arguments[2]===!0;if(!d&&o===0)return 0;for(var L=!1;;)switch(i){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":return f(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o*2;case"hex":return o>>>1;case"base64":return re(C).length;default:if(L)return d?-1:f(C).length;i=(""+i).toLowerCase(),L=!0}}n.byteLength=T;function R(C,i,o){var d=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((o===void 0||o>this.length)&&(o=this.length),o<=0)||(o>>>=0,i>>>=0,o<=i))return"";for(C||(C="utf8");;)switch(C){case"hex":return Z(this,i,o);case"utf8":case"utf-8":return k(this,i,o);case"ascii":return $(this,i,o);case"latin1":case"binary":return oe(this,i,o);case"base64":return W(this,i,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,i,o);default:if(d)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),d=!0}}n.prototype._isBuffer=!0;function S(C,i,o){var d=C[i];C[i]=C[o],C[o]=d}n.prototype.swap16=function(){var i=this.length;if(i%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var o=0;o<i;o+=2)S(this,o,o+1);return this},n.prototype.swap32=function(){var i=this.length;if(i%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var o=0;o<i;o+=4)S(this,o,o+3),S(this,o+1,o+2);return this},n.prototype.swap64=function(){var i=this.length;if(i%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var o=0;o<i;o+=8)S(this,o,o+7),S(this,o+1,o+6),S(this,o+2,o+5),S(this,o+3,o+4);return this},n.prototype.toString=function(){var i=this.length;return i===0?"":arguments.length===0?k(this,0,i):R.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(i){if(!n.isBuffer(i))throw new TypeError("Argument must be a Buffer");return this===i?!0:n.compare(this,i)===0},n.prototype.inspect=function(){var i="",o=e.INSPECT_MAX_BYTES;return i=this.toString("hex",0,o).replace(/(.{2})/g,"$1 ").trim(),this.length>o&&(i+=" ... "),"<Buffer "+i+">"},u&&(n.prototype[u]=n.prototype.inspect),n.prototype.compare=function(i,o,d,L,G){if(D(i,Uint8Array)&&(i=n.from(i,i.offset,i.byteLength)),!n.isBuffer(i))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(o===void 0&&(o=0),d===void 0&&(d=i?i.length:0),L===void 0&&(L=0),G===void 0&&(G=this.length),o<0||d>i.length||L<0||G>this.length)throw new RangeError("out of range index");if(L>=G&&o>=d)return 0;if(L>=G)return-1;if(o>=d)return 1;if(o>>>=0,d>>>=0,L>>>=0,G>>>=0,this===i)return 0;for(var j=G-L,ne=d-o,se=Math.min(j,ne),ae=this.slice(L,G),fe=i.slice(o,d),me=0;me<se;++me)if(ae[me]!==fe[me]){j=ae[me],ne=fe[me];break}return j<ne?-1:ne<j?1:0};function m(C,i,o,d,L){if(C.length===0)return-1;if(typeof o=="string"?(d=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,c(o)&&(o=L?0:C.length-1),o<0&&(o=C.length+o),o>=C.length){if(L)return-1;o=C.length-1}else if(o<0)if(L)o=0;else return-1;if(typeof i=="string"&&(i=n.from(i,d)),n.isBuffer(i))return i.length===0?-1:O(C,i,o,d,L);if(typeof i=="number")return i=i&255,typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(C,i,o):Uint8Array.prototype.lastIndexOf.call(C,i,o):O(C,[i],o,d,L);throw new TypeError("val must be string, number or Buffer")}function O(C,i,o,d,L){var G=1,j=C.length,ne=i.length;if(d!==void 0&&(d=String(d).toLowerCase(),d==="ucs2"||d==="ucs-2"||d==="utf16le"||d==="utf-16le")){if(C.length<2||i.length<2)return-1;G=2,j/=2,ne/=2,o/=2}function se(Ie,Qe){return G===1?Ie[Qe]:Ie.readUInt16BE(Qe*G)}var ae;if(L){var fe=-1;for(ae=o;ae<j;ae++)if(se(C,ae)===se(i,fe===-1?0:ae-fe)){if(fe===-1&&(fe=ae),ae-fe+1===ne)return fe*G}else fe!==-1&&(ae-=ae-fe),fe=-1}else for(o+ne>j&&(o=j-ne),ae=o;ae>=0;ae--){for(var me=!0,ve=0;ve<ne;ve++)if(se(C,ae+ve)!==se(i,ve)){me=!1;break}if(me)return ae}return-1}n.prototype.includes=function(i,o,d){return this.indexOf(i,o,d)!==-1},n.prototype.indexOf=function(i,o,d){return m(this,i,o,d,!0)},n.prototype.lastIndexOf=function(i,o,d){return m(this,i,o,d,!1)};function U(C,i,o,d){o=Number(o)||0;var L=C.length-o;d?(d=Number(d),d>L&&(d=L)):d=L;var G=i.length;d>G/2&&(d=G/2);for(var j=0;j<d;++j){var ne=parseInt(i.substr(j*2,2),16);if(c(ne))return j;C[o+j]=ne}return j}function I(C,i,o,d){return B(f(i,C.length-o),C,o,d)}function K(C,i,o,d){return B(z(i),C,o,d)}function Q(C,i,o,d){return B(re(i),C,o,d)}function N(C,i,o,d){return B(M(i,C.length-o),C,o,d)}n.prototype.write=function(i,o,d,L){if(o===void 0)L="utf8",d=this.length,o=0;else if(d===void 0&&typeof o=="string")L=o,d=this.length,o=0;else if(isFinite(o))o=o>>>0,isFinite(d)?(d=d>>>0,L===void 0&&(L="utf8")):(L=d,d=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var G=this.length-o;if((d===void 0||d>G)&&(d=G),i.length>0&&(d<0||o<0)||o>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");for(var j=!1;;)switch(L){case"hex":return U(this,i,o,d);case"utf8":case"utf-8":return I(this,i,o,d);case"ascii":case"latin1":case"binary":return K(this,i,o,d);case"base64":return Q(this,i,o,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,i,o,d);default:if(j)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),j=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(C,i,o){return i===0&&o===C.length?t.fromByteArray(C):t.fromByteArray(C.slice(i,o))}function k(C,i,o){o=Math.min(C.length,o);for(var d=[],L=i;L<o;){var G=C[L],j=null,ne=G>239?4:G>223?3:G>191?2:1;if(L+ne<=o){var se,ae,fe,me;switch(ne){case 1:G<128&&(j=G);break;case 2:se=C[L+1],(se&192)===128&&(me=(G&31)<<6|se&63,me>127&&(j=me));break;case 3:se=C[L+1],ae=C[L+2],(se&192)===128&&(ae&192)===128&&(me=(G&15)<<12|(se&63)<<6|ae&63,me>2047&&(me<55296||me>57343)&&(j=me));break;case 4:se=C[L+1],ae=C[L+2],fe=C[L+3],(se&192)===128&&(ae&192)===128&&(fe&192)===128&&(me=(G&15)<<18|(se&63)<<12|(ae&63)<<6|fe&63,me>65535&&me<1114112&&(j=me))}}j===null?(j=65533,ne=1):j>65535&&(j-=65536,d.push(j>>>10&1023|55296),j=56320|j&1023),d.push(j),L+=ne}return J(d)}var H=4096;function J(C){var i=C.length;if(i<=H)return String.fromCharCode.apply(String,C);for(var o="",d=0;d<i;)o+=String.fromCharCode.apply(String,C.slice(d,d+=H));return o}function $(C,i,o){var d="";o=Math.min(C.length,o);for(var L=i;L<o;++L)d+=String.fromCharCode(C[L]&127);return d}function oe(C,i,o){var d="";o=Math.min(C.length,o);for(var L=i;L<o;++L)d+=String.fromCharCode(C[L]);return d}function Z(C,i,o){var d=C.length;(!i||i<0)&&(i=0),(!o||o<0||o>d)&&(o=d);for(var L="",G=i;G<o;++G)L+=V[C[G]];return L}function ee(C,i,o){for(var d=C.slice(i,o),L="",G=0;G<d.length-1;G+=2)L+=String.fromCharCode(d[G]+d[G+1]*256);return L}n.prototype.slice=function(i,o){var d=this.length;i=~~i,o=o===void 0?d:~~o,i<0?(i+=d,i<0&&(i=0)):i>d&&(i=d),o<0?(o+=d,o<0&&(o=0)):o>d&&(o=d),o<i&&(o=i);var L=this.subarray(i,o);return Object.setPrototypeOf(L,n.prototype),L};function q(C,i,o){if(C%1!==0||C<0)throw new RangeError("offset is not uint");if(C+i>o)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(i,o,d){i=i>>>0,o=o>>>0,d||q(i,o,this.length);for(var L=this[i],G=1,j=0;++j<o&&(G*=256);)L+=this[i+j]*G;return L},n.prototype.readUintBE=n.prototype.readUIntBE=function(i,o,d){i=i>>>0,o=o>>>0,d||q(i,o,this.length);for(var L=this[i+--o],G=1;o>0&&(G*=256);)L+=this[i+--o]*G;return L},n.prototype.readUint8=n.prototype.readUInt8=function(i,o){return i=i>>>0,o||q(i,1,this.length),this[i]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(i,o){return i=i>>>0,o||q(i,2,this.length),this[i]|this[i+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(i,o){return i=i>>>0,o||q(i,2,this.length),this[i]<<8|this[i+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(i,o){return i=i>>>0,o||q(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+this[i+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(i,o){return i=i>>>0,o||q(i,4,this.length),this[i]*16777216+(this[i+1]<<16|this[i+2]<<8|this[i+3])},n.prototype.readIntLE=function(i,o,d){i=i>>>0,o=o>>>0,d||q(i,o,this.length);for(var L=this[i],G=1,j=0;++j<o&&(G*=256);)L+=this[i+j]*G;return G*=128,L>=G&&(L-=Math.pow(2,8*o)),L},n.prototype.readIntBE=function(i,o,d){i=i>>>0,o=o>>>0,d||q(i,o,this.length);for(var L=o,G=1,j=this[i+--L];L>0&&(G*=256);)j+=this[i+--L]*G;return G*=128,j>=G&&(j-=Math.pow(2,8*o)),j},n.prototype.readInt8=function(i,o){return i=i>>>0,o||q(i,1,this.length),this[i]&128?(255-this[i]+1)*-1:this[i]},n.prototype.readInt16LE=function(i,o){i=i>>>0,o||q(i,2,this.length);var d=this[i]|this[i+1]<<8;return d&32768?d|4294901760:d},n.prototype.readInt16BE=function(i,o){i=i>>>0,o||q(i,2,this.length);var d=this[i+1]|this[i]<<8;return d&32768?d|4294901760:d},n.prototype.readInt32LE=function(i,o){return i=i>>>0,o||q(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},n.prototype.readInt32BE=function(i,o){return i=i>>>0,o||q(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},n.prototype.readFloatLE=function(i,o){return i=i>>>0,o||q(i,4,this.length),r.read(this,i,!0,23,4)},n.prototype.readFloatBE=function(i,o){return i=i>>>0,o||q(i,4,this.length),r.read(this,i,!1,23,4)},n.prototype.readDoubleLE=function(i,o){return i=i>>>0,o||q(i,8,this.length),r.read(this,i,!0,52,8)},n.prototype.readDoubleBE=function(i,o){return i=i>>>0,o||q(i,8,this.length),r.read(this,i,!1,52,8)};function F(C,i,o,d,L,G){if(!n.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>L||i<G)throw new RangeError('"value" argument is out of bounds');if(o+d>C.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(i,o,d,L){if
vendor: 4,293 bytes, line 6
6(i=+i,o=o>>>0,d=d>>>0,!L){var G=Math.pow(2,8*d)-1;F(this,i,o,d,G,0)}var j=1,ne=0;for(this[o]=i&255;++ne<d&&(j*=256);)this[o+ne]=i/j&255;return o+d},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(i,o,d,L){if(i=+i,o=o>>>0,d=d>>>0,!L){var G=Math.pow(2,8*d)-1;F(this,i,o,d,G,0)}var j=d-1,ne=1;for(this[o+j]=i&255;--j>=0&&(ne*=256);)this[o+j]=i/ne&255;return o+d},n.prototype.writeUint8=n.prototype.writeUInt8=function(i,o,d){return i=+i,o=o>>>0,d||F(this,i,o,1,255,0),this[o]=i&255,o+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(i,o,d){return i=+i,o=o>>>0,d||F(this,i,o,2,65535,0),this[o]=i&255,this[o+1]=i>>>8,o+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(i,o,d){return i=+i,o=o>>>0,d||F(this,i,o,2,65535,0),this[o]=i>>>8,this[o+1]=i&255,o+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(i,o,d){return i=+i,o=o>>>0,d||F(this,i,o,4,4294967295,0),this[o+3]=i>>>24,this[o+2]=i>>>16,this[o+1]=i>>>8,this[o]=i&255,o+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(i,o,d){return i=+i,o=o>>>0,d||F(this,i,o,4,4294967295,0),this[o]=i>>>24,this[o+1]=i>>>16,this[o+2]=i>>>8,this[o+3]=i&255,o+4},n.prototype.writeIntLE=function(i,o,d,L){if(i=+i,o=o>>>0,!L){var G=Math.pow(2,8*d-1);F(this,i,o,d,G-1,-G)}var j=0,ne=1,se=0;for(this[o]=i&255;++j<d&&(ne*=256);)i<0&&se===0&&this[o+j-1]!==0&&(se=1),this[o+j]=(i/ne>>0)-se&255;return o+d},n.prototype.writeIntBE=function(i,o,d,L){if(i=+i,o=o>>>0,!L){var G=Math.pow(2,8*d-1);F(this,i,o,d,G-1,-G)}var j=d-1,ne=1,se=0;for(this[o+j]=i&255;--j>=0&&(ne*=256);)i<0&&se===0&&this[o+j+1]!==0&&(se=1),this[o+j]=(i/ne>>0)-se&255;return o+d},n.prototype.writeInt8=function(i,o,d){return i=+i,o=o>>>0,d||F(this,i,o,1,127,-128),i<0&&(i=255+i+1),this[o]=i&255,o+1},n.prototype.writeInt16LE=function(i,o,d){return i=+i,o=o>>>0,d||F(this,i,o,2,32767,-32768),this[o]=i&255,this[o+1]=i>>>8,o+2},n.prototype.writeInt16BE=function(i,o,d){return i=+i,o=o>>>0,d||F(this,i,o,2,32767,-32768),this[o]=i>>>8,this[o+1]=i&255,o+2},n.prototype.writeInt32LE=function(i,o,d){return i=+i,o=o>>>0,d||F(this,i,o,4,2147483647,-2147483648),this[o]=i&255,this[o+1]=i>>>8,this[o+2]=i>>>16,this[o+3]=i>>>24,o+4},n.prototype.writeInt32BE=function(i,o,d){return i=+i,o=o>>>0,d||F(this,i,o,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[o]=i>>>24,this[o+1]=i>>>16,this[o+2]=i>>>8,this[o+3]=i&255,o+4};function X(C,i,o,d,L,G){if(o+d>C.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function Y(C,i,o,d,L){return i=+i,o=o>>>0,L||X(C,i,o,4),r.write(C,i,o,d,23,4),o+4}n.prototype.writeFloatLE=function(i,o,d){return Y(this,i,o,!0,d)},n.prototype.writeFloatBE=function(i,o,d){return Y(this,i,o,!1,d)};function te(C,i,o,d,L){return i=+i,o=o>>>0,L||X(C,i,o,8),r.write(C,i,o,d,52,8),o+8}n.prototype.writeDoubleLE=function(i,o,d){return te(this,i,o,!0,d)},n.prototype.writeDoubleBE=function(i,o,d){return te(this,i,o,!1,d)},n.prototype.copy=function(i,o,d,L){if(!n.isBuffer(i))throw new TypeError("argument should be a Buffer");if(d||(d=0),!L&&L!==0&&(L=this.length),o>=i.length&&(o=i.length),o||(o=0),L>0&&L<d&&(L=d),L===d||i.length===0||this.length===0)return 0;if(o<0)throw new RangeError("targetStart out of bounds");if(d<0||d>=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),i.length-o<L-d&&(L=i.length-o+d);var G=L-d;return this===i&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(o,d,L):Uint8Array.prototype.set.call(i,this.subarray(d,L),o),G},n.prototype.fill=function(i,o,d,L){if(typeof i=="string"){if(typeof o=="string"?(L=o,o=0,d=this.length):typeof d=="string"&&(L=d,d=this.length),L!==void 0&&typeof L!="string")throw new TypeError("encoding must be a string");if(typeof L=="string"&&!n.isEncoding(L))throw new TypeError("Unknown encoding: "+L);if(i.length===1){var G=i.charCodeAt(0);(L==="utf8"&&G<128||L==="latin1")&&(i=G)}}else typeof i=="number"?i=i&255:typeof i=="boolean"&&(i=Number(i));if(o<0||this.length<o||this.length<d)throw new RangeError("Out of range index");if(d<=o)return this;o=o>>>0,d=d===void 0?this.length:d>>>0,i||(i=0);var j;if(typeof i=="number")for(j=o;j<d;++j)this[j]=i;else{var ne=n.isBuffer(i)?i:n.from(i,L),se=ne.length;
6if(se===0)throw new TypeError('The value "'+i+'" is invalid for argument "value"');for(j=0;j<d-o;++j)this[j+o]=ne[j%se]}return this};var pe=/[^+/0-9A-Za-z-_]/g;function x(C){if(C=C.split("=")[0],C=C.trim().replace(pe,""),C.length<2)return"";for(;C.length%4!==0;)C=C+"=";return C}function f(C,i){i=i||1/0;for(var o,d=C.length,L=null,G=[],j=0;j<d;++j){if(o=C.charCodeAt(j),o>55295&&o<57344){if(!L){if(o>56319){(i-=3)>-1&&G.push(239,191,189);continue}else if(j+1===d){(i-=3)>-1&&G.push(239,191,189);continue}L=o;continue}if(o<56320){(i-=3)>-1&&G.push(239,191,189),L=o;continue}o=(L-55296<<10|o-56320)+65536}else L&&(i-=3)>-1&&G.push(239,191,189);if(L=null,o<128){if((i-=1)<0)break;G.push(o)}else if(o<2048){if((i-=2)<0)break;G.push(o>>6|192,o&63|128)}else if(o<65536){if((i-=3)<0)break;G.push(o>>12|224,o>>6&63|128,o&63|128)}else if(o<1114112){if((i-=4)<0)break;G.push(o>>18|240,o>>12&63|128,o>>6&63|128,o&63|128)}else throw new Error("Invalid code point")}return G}function z(C){for(var i=[],o=0;o<C.length;++o)i.push(C.charCodeAt(o)&255);return i}function M(C,i){for(var o,d,L,G=[],j=0;j<C.length&&!((i-=2)<0);++j)o=C.charCodeAt(j),d=o>>8,L=o%256,G.push(L),G.push(d);return G}function re(C){return t.toByteArray(x(C))}function B(C,i,o,d){for(var L=0;L<d&&!(L+o>=i.length||L>=C.length);++L)i[L+o]=C[L];return L}function D(C,i){return C instanceof i||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===i.name}function c(C){return C!==C}var V=function(){for(var C="0123456789abcdef",i=new Array(256),o=0;o<16;++o)for(var d=o*16,L=0;L<16;++L)i[d+L]=C[o]+C[L];return i}()}),bn=le((e,t)=>{t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var u={},l=Symbol("test"),a=Object(l);if(typeof l=="string"||Object.prototype.toString.call(l)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var s=42;u[l]=s;for(var n in u)return!1;if(typeof Object.keys=="function"&&Object.keys(u).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(u).length!==0)return!1;var h=Object.getOwnPropertySymbols(u);if(h.length!==1||h[0]!==l||!Object.prototype.propertyIsEnumerable.call(u,l))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var w=Object.getOwnPropertyDescriptor(u,l);if(w.value!==s||w.enumerable!==!0)return!1}return!0}}),kr=le((e,t)=>{var r=bn();t.exports=function(){return r()&&!!Symbol.toStringTag}}),_n=le((e,t)=>{t.exports=Object}),ji=le((e,t)=>{t.exports=Error}),Wi=le((e,t)=>{t.exports=EvalError}),Hi=le((e,t)=>{t.exports=RangeError}),Gi=le((e,t)=>{t.exports=ReferenceError}),xn=le((e,t)=>{t.exports=SyntaxError}),nr=le((e,t)=>{t.exports=TypeError}),Vi=le((e,t)=>{t.exports=URIError}),Ki=le((e,t)=>{t.exports=Math.abs}),qi=le((e,t)=>{t.exports=Math.floor}),$i=le((e,t)=>{t.exports=Math.max}),Xi=le((e,t)=>{t.exports=Math.min}),Zi=le((e,t)=>{t.exports=Math.pow}),Yi=le((e,t)=>{t.exports=Math.round}),Ji=le((e,t)=>{t.exports=Number.isNaN||function(u){return u!==u}}),Qi=le((e,t)=>{var r=Ji();t.exports=function(l){return r(l)||l===0?l:l<0?-1:1}}),ea=le((e,t)=>{t.exports=Object.getOwnPropertyDescriptor}),Ut=le((e,t)=>{var r=ea();if(r)try{r([],"length")}catch{r=null}t.exports=r}),ir=le((e,t)=>{var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}),ta=le((e,t)=>{var r=typeof Symbol<"u"&&Symbol,u=bn();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:u()}}),En=le((e,t)=>{t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),Sn=le((e,t)=>{t.exports=_n().getPrototypeOf||null}),ra=le((e,t)=>{var r="Function.prototype.bind called on incompatible ",u=Object.prototype.toString,l=Math.max,a="[object Function]",s=function(_,y){for(var E=[],g=0;g<_.length;g+=1)E[g]=_[g];for(var p=0;p<y.length;p+=1)E[p+_.length]=y[p];return E},n=function(_,y){for(var E=[],g=y,p=0;g<_.length;g+=1,p+=1)E[p]=_[g];return E},h=function(w,_){for(var y="",E=0;E<w.length;E+=1)y+=w[E],E+1<w.length&&(y+=_);return y};t.exports=function(_){var y=this;if(typeof y!="function"||u.apply(y)!==a)throw new TypeError(r+y);
6for(var E=n(arguments,1),g,p=function(){if(this instanceof g){var T=y.apply(this,s(E,arguments));return Object(T)===T?T:this}return y.apply(_,s(E,arguments))},v=l(0,y.length-E.length),A=[],P=0;P<v;P++)A[P]="$"+P;if(g=Function("binder","return function ("+h(A,",")+"){ return binder.apply(this,arguments); }")(p),y.prototype){var b=function(){};b.prototype=y.prototype,g.prototype=new b,b.prototype=null}return g}}),zt=le((e,t)=>{var r=ra();t.exports=Function.prototype.bind||r}),Rr=le((e,t)=>{t.exports=Function.prototype.call}),Cr=le((e,t)=>{t.exports=Function.prototype.apply}),na=le((e,t)=>{t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),Tn=le((e,t)=>{var r=zt(),u=Cr(),l=Rr();t.exports=na()||r.call(l,u)}),Pr=le((e,t)=>{var r=zt(),u=nr(),l=Rr(),a=Tn();t.exports=function(n){if(n.length<1||typeof n[0]!="function")throw new u("a function is required");return a(r,l,n)}}),ia=le((e,t)=>{var r=Pr(),u=Ut(),l;try{l=[].__proto__===Array.prototype}catch(h){if(!h||typeof h!="object"||!("code"in h)||h.code!=="ERR_PROTO_ACCESS")throw h}var a=!!l&&u&&u(Object.prototype,"__proto__"),s=Object,n=s.getPrototypeOf;t.exports=a&&typeof a.get=="function"?r([a.get]):typeof n=="function"?function(w){return n(w==null?w:s(w))}:!1}),An=le((e,t)=>{var r=En(),u=Sn(),l=ia();t.exports=r?function(s){return r(s)}:u?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return u(s)}:l?function(s){return l(s)}:null}),aa=le((e,t)=>{var r=Function.prototype.call,u=Object.prototype.hasOwnProperty;t.exports=zt().call(r,u)}),kn=le((e,t)=>{var r,u=_n(),l=ji(),a=Wi(),s=Hi(),n=Gi(),h=xn(),w=nr(),_=Vi(),y=Ki(),E=qi(),g=$i(),p=Xi(),v=Zi(),A=Yi(),P=Qi(),b=Function,T=function(M){try{return b('"use strict"; return ('+M+").constructor;")()}catch{}},R=Ut(),S=ir(),m=function(){throw new w},O=R?function(){try{return arguments.callee,m}catch{try{return R(arguments,"callee").get}catch{return m}}}():m,U=ta()(),I=An(),K=Sn(),Q=En(),N=Cr(),W=Rr(),k={},H=typeof Uint8Array>"u"||!I?r:I(Uint8Array),J={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":U&&I?I([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":k,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>
6"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":U&&I?I(I([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!U||!I?r:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":u,"%Object.getOwnPropertyDescriptor%":R,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":s,"%ReferenceError%":n,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!U||!I?r:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":U&&I?I(""[Symbol.iterator]()):r,"%Symbol%":U?Symbol:r,"%SyntaxError%":h,"%ThrowTypeError%":O,"%TypedArray%":H,"%TypeError%":w,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":_,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":W,"%Function.prototype.apply%":N,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":K,"%Math.abs%":y,"%Math.floor%":E,"%Math.max%":g,"%Math.min%":p,"%Math.pow%":v,"%Math.round%":A,"%Math.sign%":P,"%Reflect.getPrototypeOf%":Q};if(I)try{null.error}catch(M){J["%Error.prototype%"]=I(I(M))}var $=function M(re){var B;if(re==="%AsyncFunction%")B=T("async function () {}");else if(re==="%GeneratorFunction%")B=T("function* () {}");else if(re==="%AsyncGeneratorFunction%")B=T("async function* () {}");else if(re==="%AsyncGenerator%"){var D=M("%AsyncGeneratorFunction%");D&&(B=D.prototype)}else if(re==="%AsyncIteratorPrototype%"){var c=M("%AsyncGenerator%");c&&I&&(B=I(c.prototype))}return J[re]=B,B},oe={__proto__:null,"%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"]}
6,Z=zt(),ee=aa(),q=Z.call(W,Array.prototype.concat),F=Z.call(N,Array.prototype.splice),X=Z.call(W,String.prototype.replace),Y=Z.call(W,String.prototype.slice),te=Z.call(W,RegExp.prototype.exec),pe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,f=function(re){var B=Y(re,0,1),D=Y(re,-1);if(B==="%"&&D!=="%")throw new h("invalid intrinsic syntax, expected closing `%`");if(D==="%"&&B!=="%")throw new h("invalid intrinsic syntax, expected opening `%`");var c=[];return X(re,pe,function(V,C,i,o){c[c.length]=i?X(o,x,"$1"):C||V}),c},z=function(re,B){var D=re,c;if(ee(oe,D)&&(c=oe[D],D="%"+c[0]+"%"),ee(J,D)){var V=J[D];if(V===k&&(V=$(D)),typeof V>"u"&&!B)throw new w("intrinsic "+re+" exists, but is not available. Please file an issue!");return{alias:c,name:D,value:V}}throw new h("intrinsic "+re+" does not exist!")};t.exports=function(re,B){if(typeof re!="string"||re.length===0)throw new w("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new w('"allowMissing" argument must be a boolean');if(te(/^%?[^%]*%?$/,re)===null)throw new h("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var D=f(re),c=D.length>0?D[0]:"",V=z("%"+c+"%",B),C=V.name,i=V.value,o=!1,d=V.alias;d&&(c=d[0],F(D,q([0,1],d)));for(var L=1,G=!0;L<D.length;L+=1){var j=D[L],ne=Y(j,0,1),se=Y(j,-1);if((ne==='"'||ne==="'"||ne==="`"||se==='"'||se==="'"||se==="`")&&ne!==se)throw new h("property names with quotes must have matching quotes");if((j==="constructor"||!G)&&(o=!0),c+="."+j,C="%"+c+"%",ee(J,C))i=J[C];else if(i!=null){if(!(j in i)){if(!B)throw new w("base intrinsic for "+re+" exists, but the property is not available.");return}if(R&&L+1>=D.length){var ae=R(i,j);G=!!ae,G&&"get"in ae&&!("originalValue"in ae.get)?i=ae.get:i=i[j]}else G=ee(i,j),i=i[j];G&&!o&&(J[C]=i)}}return i}}),Rn=le((e,t)=>{var r=kn(),u=Pr(),l=u([r("%String.prototype.indexOf%")]);t.exports=function(s,n){var h=r(s,!!n);return typeof h=="function"&&l(s,".prototype.")>-1?u([h]):h}}),oa=le((e,t)=>{var r=kr()(),u=Rn()("Object.prototype.toString"),l=function(h){return r&&h&&typeof h=="object"&&Symbol.toStringTag in h?!1:u(h)==="[object Arguments]"},a=function(h){return l(h)?!0:h!==null&&typeof h=="object"&&"length"in h&&typeof h.length=="number"&&h.length>=0&&u(h)!=="[object Array]"&&"callee"in h&&u(h.callee)==="[object Function]"},s=function(){return l(arguments)}();l.isLegacyArguments=a,t.exports=s?l:a}),sa=le((e,t)=>{var r=Object.prototype.toString,u=Function.prototype.toString,l=/^\s*(?:function)?\*/,a=kr()(),s=Object.getPrototypeOf,n=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},h;t.exports=function(_){if(typeof _!="function")return!1;if(l.test(u.call(_)))return!0;if(!a)return r.call(_)==="[object GeneratorFunction]";if(!s)return!1;if(typeof h>"u"){var y=n();h=y?s(y):!1}return s(_)===h}}),ua=le((e,t)=>{var r=Function.prototype.toString,u=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,l,a;if(typeof u=="function"&&typeof Object.defineProperty=="function")try{l=Object.defineProperty({},"length",{get:function(){throw a}}),a={},u(function(){throw 42},null,l)}catch(R){R!==a&&(u=null)}else u=null;var s=/^\s*class\b/,n=function(S){try{var m=r.call(S);return s.test(m)}catch{return!1}},h=function(S){try{return n(S)?!1:(r.call(S),!0)}catch{return!1}},w=Object.prototype.toString,_="[object Object]",y="[object Function]",E="[object GeneratorFunction]",g="[object HTMLAllCollection]",p="[object HTML document.all class]",v="[object HTMLCollection]",A=typeof Symbol=="function"&&!!Symbol.toStringTag,P=!(0 in[,]),b=function(){return!1};if(typeof document=="object"){var T=document.all;w.call(T)===w.call(document.all)&&(b=function(S){if((P||!S)&&(typeof S>"u"||typeof S=="object"))try{var m=w.call(S);return(m===g||m===p||m===v||m===_)&&S("")==null}catch{}return!1})}t.exports=u?function(S){if(b(S))return!0;if(!S||typeof S!="function"&&typeof S!="object")return!1;try{u(S,null,l)}catch(m){if(m!==a)return!1}return!n(S)&&h(S)}:function(S){if(b(S))return!0;
6if(!S||typeof S!="function"&&typeof S!="object")return!1;if(A)return h(S);if(n(S))return!1;var m=w.call(S);return m!==y&&m!==E&&!/^\[object HTML/.test(m)?!1:h(S)}}),la=le((e,t)=>{var r=ua(),u=Object.prototype.toString,l=Object.prototype.hasOwnProperty,a=function(_,y,E){for(var g=0,p=_.length;g<p;g++)l.call(_,g)&&(E==null?y(_[g],g,_):y.call(E,_[g],g,_))},s=function(_,y,E){for(var g=0,p=_.length;g<p;g++)E==null?y(_.charAt(g),g,_):y.call(E,_.charAt(g),g,_)},n=function(_,y,E){for(var g in _)l.call(_,g)&&(E==null?y(_[g],g,_):y.call(E,_[g],g,_))};function h(w){return u.call(w)==="[object Array]"}t.exports=function(_,y,E){if(!r(y))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=E),h(_)?a(_,y,g):typeof _=="string"?s(_,y,g):n(_,y,g)}}),ca=le((e,t)=>{t.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),ha=le((e,t)=>{Tt();var r=ca(),u=typeof globalThis>"u"?De:globalThis;t.exports=function(){for(var a=[],s=0;s<r.length;s++)typeof u[r[s]]=="function"&&(a[a.length]=r[s]);return a}}),fa=le((e,t)=>{var r=ir(),u=xn(),l=nr(),a=Ut();t.exports=function(n,h,w){if(!n||typeof n!="object"&&typeof n!="function")throw new l("`obj` must be an object or a function`");if(typeof h!="string"&&typeof h!="symbol")throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new l("`loose`, if provided, must be a boolean");var _=arguments.length>3?arguments[3]:null,y=arguments.length>4?arguments[4]:null,E=arguments.length>5?arguments[5]:null,g=arguments.length>6?arguments[6]:!1,p=!!a&&a(n,h);if(r)r(n,h,{configurable:E===null&&p?p.configurable:!E,enumerable:_===null&&p?p.enumerable:!_,value:w,writable:y===null&&p?p.writable:!y});else if(g||!_&&!y&&!E)n[h]=w;else throw new u("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),da=le((e,t)=>{var r=ir(),u=function(){return!!r};u.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},t.exports=u}),pa=le((e,t)=>{var r=kn(),u=fa(),l=da()(),a=Ut(),s=nr(),n=r("%Math.floor%");t.exports=function(w,_){if(typeof w!="function")throw new s("`fn` is not a function");if(typeof _!="number"||_<0||_>4294967295||n(_)!==_)throw new s("`length` must be a positive 32-bit integer");var y=arguments.length>2&&!!arguments[2],E=!0,g=!0;if("length"in w&&a){var p=a(w,"length");p&&!p.configurable&&(E=!1),p&&!p.writable&&(g=!1)}return(E||g||!y)&&(l?u(w,"length",_,!0,!0):u(w,"length",_)),w}}),ma=le((e,t)=>{var r=zt(),u=Cr(),l=Tn();t.exports=function(){return l(r,u,arguments)}}),ga=le((e,t)=>{var r=pa(),u=ir(),l=Pr(),a=ma();t.exports=function(n){var h=l(arguments),w=n.length-(arguments.length-1);return r(h,1+(w>0?w:0),!0)},u?u(t.exports,"apply",{value:a}):t.exports.apply=a}),Cn=le((e,t)=>{Tt();var r=la(),u=ha(),l=ga(),a=Rn(),s=Ut(),n=An(),h=a("Object.prototype.toString"),w=kr()(),_=typeof globalThis>"u"?De:globalThis,y=u(),E=a("String.prototype.slice"),g=a("Array.prototype.indexOf",!0)||function(b,T){for(var R=0;R<b.length;R+=1)if(b[R]===T)return R;return-1},p={__proto__:null};w&&s&&n?r(y,function(P){var b=new _[P];if(Symbol.toStringTag in b&&n){var T=n(b),R=s(T,Symbol.toStringTag);!R&&T&&(R=s(n(T),Symbol.toStringTag)),p["$"+P]=l(R.get)}}):r(y,function(P){var b=new _[P],T=b.slice||b.set;T&&(p["$"+P]=l(T))});var v=function(b){var T=!1;return r(p,function(R,S){if(!T)try{"$"+R(b)===S&&(T=E(S,1))}catch{}}),T},A=function(b){var T=!1;return r(p,function(R,S){if(!T)try{R(b),T=E(S,1)}catch{}}),T};t.exports=function(b){if(!b||typeof b!="object")return!1;if(!w){var T=E(h(b),8,-1);return g(y,T)>-1?T:T!=="Object"?!1:A(b)}return s?v(b):null}}),va=le((e,t)=>{var r=Cn();t.exports=function(l){return!!r(l)}}),ya=le(e=>{var t=oa(),r=sa(),u=Cn(),l=va();function a(d){return d.call.bind(d)}var s=typeof BigInt<"u",n=typeof Symbol<"u",h=a(Object.prototype.toString),w=a(Number.prototype.valueOf),_=a(String.prototype.valueOf),y=a(Boolean.prototype.valueOf);if(s)var E=a(BigInt.prototype.valueOf);if(n)var g=a(Symbol.prototype.valueOf);function p(d,L){if(typeof d!="object")return!1;try{return L(d),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=l;function v(d){return typeof Promise<"u"&&d instanceof Promise||d!==null&&typeof d=="object"&&typeof d.then=="function"&&typeof d.cat
6ch=="function"}e.isPromise=v;function A(d){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(d):l(d)||X(d)}e.isArrayBufferView=A;function P(d){return u(d)==="Uint8Array"}e.isUint8Array=P;function b(d){return u(d)==="Uint8ClampedArray"}e.isUint8ClampedArray=b;function T(d){return u(d)==="Uint16Array"}e.isUint16Array=T;function R(d){return u(d)==="Uint32Array"}e.isUint32Array=R;function S(d){return u(d)==="Int8Array"}e.isInt8Array=S;function m(d){return u(d)==="Int16Array"}e.isInt16Array=m;function O(d){return u(d)==="Int32Array"}e.isInt32Array=O;function U(d){return u(d)==="Float32Array"}e.isFloat32Array=U;function I(d){return u(d)==="Float64Array"}e.isFloat64Array=I;function K(d){return u(d)==="BigInt64Array"}e.isBigInt64Array=K;function Q(d){return u(d)==="BigUint64Array"}e.isBigUint64Array=Q;function N(d){return h(d)==="[object Map]"}N.working=typeof Map<"u"&&N(new Map);function W(d){return typeof Map>"u"?!1:N.working?N(d):d instanceof Map}e.isMap=W;function k(d){return h(d)==="[object Set]"}k.working=typeof Set<"u"&&k(new Set);function H(d){return typeof Set>"u"?!1:k.working?k(d):d instanceof Set}e.isSet=H;function J(d){return h(d)==="[object WeakMap]"}J.working=typeof WeakMap<"u"&&J(new WeakMap);function $(d){return typeof WeakMap>"u"?!1:J.working?J(d):d instanceof WeakMap}e.isWeakMap=$;function oe(d){return h(d)==="[object WeakSet]"}oe.working=typeof WeakSet<"u"&&oe(new WeakSet);function Z(d){return oe(d)}e.isWeakSet=Z;function ee(d){return h(d)==="[object ArrayBuffer]"}ee.working=typeof ArrayBuffer<"u"&&ee(new ArrayBuffer);function q(d){return typeof ArrayBuffer>"u"?!1:ee.working?ee(d):d instanceof ArrayBuffer}e.isArrayBuffer=q;function F(d){return h(d)==="[object DataView]"}F.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&F(new DataView(new ArrayBuffer(1),0,1));function X(d){return typeof DataView>"u"?!1:F.working?F(d):d instanceof DataView}e.isDataView=X;var Y=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function te(d){return h(d)==="[object SharedArrayBuffer]"}function pe(d){return typeof Y>"u"?!1:(typeof te.working>"u"&&(te.working=te(new Y)),te.working?te(d):d instanceof Y)}e.isSharedArrayBuffer=pe;function x(d){return h(d)==="[object AsyncFunction]"}e.isAsyncFunction=x;function f(d){return h(d)==="[object Map Iterator]"}e.isMapIterator=f;function z(d){return h(d)==="[object Set Iterator]"}e.isSetIterator=z;function M(d){return h(d)==="[object Generator]"}e.isGeneratorObject=M;function re(d){return h(d)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=re;function B(d){return p(d,w)}e.isNumberObject=B;function D(d){return p(d,_)}e.isStringObject=D;function c(d){return p(d,y)}e.isBooleanObject=c;function V(d){return s&&p(d,E)}e.isBigIntObject=V;function C(d){return n&&p(d,g)}e.isSymbolObject=C;function i(d){return B(d)||D(d)||c(d)||V(d)||C(d)}e.isBoxedPrimitive=i;function o(d){return typeof Uint8Array<"u"&&(q(d)||pe(d))}e.isAnyArrayBuffer=o,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(d){Object.defineProperty(e,d,{enumerable:!1,value:function(){throw new Error(d+" is not supported in userland")}})})}),wa=le((e,t)=>{t.exports=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}}),Pn=le(e=>{nt();var t=Object.getOwnPropertyDescriptors||function(X){for(var Y=Object.keys(X),te={},pe=0;pe<Y.length;pe++)te[Y[pe]]=Object.getOwnPropertyDescriptor(X,Y[pe]);return te},r=/%[sdj%]/g;e.format=function(F){if(!S(F)){for(var X=[],Y=0;Y<arguments.length;Y++)X.push(s(arguments[Y]));return X.join(" ")}for(var Y=1,te=arguments,pe=te.length,x=String(F).replace(r,function(z){if(z==="%%")return"%";if(Y>=pe)return z;switch(z){case"%s":return String(te[Y++]);case"%d":return Number(te[Y++]);case"%j":try{return JSON.stringify(te[Y++])}catch{return"[Circular]"}default:return z}}),f=te[Y];Y<pe;f=te[++Y])b(f)||!I(f)?x+=" "+f:x+=" "+s(f);return x},e.deprecate=function(F,X){if(typeof be<"u"&&be.noDeprecation===!0)return F;if(typeof be>"u")return function(){return e.deprecate(F,X).apply(this,arguments)};var Y=!1;function te(){if(!Y){if(be.throwDeprecation)throw new Error(X);be.traceDeprecation?console.trace(X):console.error(X),Y=!0}return F.apply(this,arguments)}return te};var u={},l=/^$/;if(be.env.NODE_DEBUG){var a=be.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+a+"$","i")}e.debuglog=function(F){if(F=F.toUpperCase(),!u[F])if(l.test(F)){var X=be.pid;u[F]=function(){var Y=e.format.apply(e,arguments);console.error("%s %d: %s",F,X,Y)}}else u[F]=function(){};return u[F]};function s(F,X){var Y={seen:[],stylize:h};return arguments.length>=3&&(Y.depth=arguments[2]),arguments.length>=4&&(Y.colors=arguments[3]),P(X)?Y.showHidden=X:X&&e._extend(Y,X),O(Y.showHidden)&&(Y.showHidden=!1),O(Y.depth)&&(Y.depth=2),O(Y.colors)&&(Y.colors=!1),O(Y.customInspect)&&(Y.customInspect=!0),Y.colors&&(Y.stylize=n),_(Y,F,Y.depth)}e.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function n(F,X){var Y=s.styles[X];return Y?"\x1B["+s.colors[Y][0]+"m"+F+"\x1B["+s.colors[Y][1]+"m":F}function h(F,X){return F}function w(F){var X={};return F.forEach(function(Y,te){X[Y]=!0}),X}function _(F,X,Y){if(F.customInspect&&X&&N(X.inspect)&&X.inspect!==e.inspect&&!(X.constructor&&X.constructor.prototype===X)){var te=X.inspect(Y,F);return S(te)||(te=_(F,te,Y)),te}var pe=y(F,X);if(pe)return pe;var x=Object.keys(X),f=w(x);if(F.showHidden&&(x=Object.getOwnPropertyNames(X)),Q(X)&&(x.indexOf("message")>=0||x.indexOf("description")>=0))return E(X);if(x.length===0){if(N(X)){var z=X.name?": "+X.name:"";return F.stylize("[Function"+z+"]","special")}if(U(X))return F.stylize(RegExp.prototype.toString.call(X),"regexp");if(K(X))return F.stylize(Date.prototype.toString.call(X),"date");if(Q(X))return E(X)}var M="",re=!1,B=["{","}"];if(A(X)&&(re=!0,B=["[","]"]),N(X)&&(M=" [Function"+(X.name?": "+X.name:"")+"]"),U(X)&&(M=" "+RegExp.prototype.toString.call(X)),K(X)&&(M=" "+Date.prototype.toUTCString.call(X)),Q(X)&&(M=" "+E(X)),x.length===0&&(!re||X.length==0))return B[0]+M+B[1];if(Y<0)return U(X)?F.stylize(RegExp.prototype.toString.call(X),"regexp"):F.stylize("[Object]","special");F.seen.push(X);var D;return re?D=g(F,X,Y,f,x):D=x.map(function(c){return p(F,X,Y,f,c,re)}),F.seen.pop(),v(D,M,B)}function y(F,X){if(O(X))return F.stylize("undefined","undefined");if(S(X)){var Y="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return F.stylize(Y,"string")}if(R(X))return F.stylize(""+X,"number");if(P(X))return F.stylize(""+X,"boolean");if(b(X))return F.stylize("null","null")}function E(F){return"["+Error.prototype.toString.call(F)+"]"}function g(F,X,Y,te,pe){for(var x=[],f=0,z=X.length;f<z;++f)oe(X,String(f))?x.push(p(F,X,Y,te,String(f),!0)):x.push("");return pe.forEach(function(M){M.match(/^\d+$/)||x.push(p(F,X,Y,te,M,!0))}),x}
6function p(F,X,Y,te,pe,x){var f,z,M=Object.getOwnPropertyDescriptor(X,pe)||{value:X[pe]};if(M.get?M.set?z=F.stylize("[Getter/Setter]","special"):z=F.stylize("[Getter]","special"):M.set&&(z=F.stylize("[Setter]","special")),oe(te,pe)||(f="["+pe+"]"),z||(F.seen.indexOf(M.value)<0?(b(Y)?z=_(F,M.value,null):z=_(F,M.value,Y-1),z.indexOf(`
7`)>-1&&(x?z=z.split(`
8`).map(function(re){return"  "+re}).join(`
9`).slice(2):z=`
10`+z.split(`
11`).map(function(re){return"   "+re}).join(`
12`))):z=F.stylize("[Circular]","special")),O(f)){if(x&&pe.match(/^\d+$/))return z;f=JSON.stringify(""+pe),f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(f=f.slice(1,-1),f=F.stylize(f,"name")):(f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),f=F.stylize(f,"string"))}return f+": "+z}function v(F,X,Y){return F.reduce(function(te,pe){return pe.indexOf(`
13`)>=0,te+pe.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?Y[0]+(X===""?"":X+`
14 `)+" "+F.join(`,
15  `)+" "+Y[1]:Y[0]+X+" "+F.join(", ")+" "+Y[1]}e.types=ya();function A(F){return Array.isArray(F)}e.isArray=A;function P(F){return typeof F=="boolean"}e.isBoolean=P;function b(F){return F===null}e.isNull=b;function T(F){return F==null}e.isNullOrUndefined=T;function R(F){return typeof F=="number"}e.isNumber=R;function S(F){return typeof F=="string"}e.isString=S;function m(F){return typeof F=="symbol"}e.isSymbol=m;function O(F){return F===void 0}e.isUndefined=O;function U(F){return I(F)&&k(F)==="[object RegExp]"}e.isRegExp=U,e.types.isRegExp=U;function I(F){return typeof F=="object"&&F!==null}e.isObject=I;function K(F){return I(F)&&k(F)==="[object Date]"}e.isDate=K,e.types.isDate=K;function Q(F){return I(F)&&(k(F)==="[object Error]"||F instanceof Error)}e.isError=Q,e.types.isNativeError=Q;function N(F){return typeof F=="function"}e.isFunction=N;function W(F){return F===null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||typeof F=="symbol"||typeof F>"u"}e.isPrimitive=W,e.isBuffer=wa();function k(F){return Object.prototype.toString.call(F)}function H(F){return F<10?"0"+F.toString(10):F.toString(10)}var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $(){var F=new Date,X=[H(F.getHours()),H(F.getMinutes()),H(F.getSeconds())].join(":");return[F.getDate(),J[F.getMonth()],X].join(" ")}e.log=function(){console.log("%s - %s",$(),e.format.apply(e,arguments))},e.inherits=rt(),e._extend=function(F,X){if(!X||!I(X))return F;for(var Y=Object.keys(X),te=Y.length;te--;)F[Y[te]]=X[Y[te]];return F};function oe(F,X){return Object.prototype.hasOwnProperty.call(F,X)}var Z=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(X){if(typeof X!="function")throw new TypeError('The "original" argument must be of type Function');if(Z&&X[Z]){var Y=X[Z];if(typeof Y!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Y,Z,{value:Y,enumerable:!1,writable:!1,configurable:!0}),Y}function Y(){for(var te,pe,x=new Promise(function(M,re){te=M,pe=re}),f=[],z=0;z<arguments.length;z++)f.push(arguments[z]);f.push(function(M,re){M?pe(M):te(re)});try{X.apply(this,f)}catch(M){pe(M)}return x}return Object.setPrototypeOf(Y,Object.getPrototypeOf(X)),Z&&Object.defineProperty(Y,Z,{value:Y,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Y,t(X))},e.promisify.custom=Z;function ee(F,X){if(!F){var Y=new Error("Promise was rejected with a falsy value");Y.reason=F,F=Y}return X(F)}function q(F){if(typeof F!="function")throw new TypeError('The "original" argument must be of type Function');function X(){for(var Y=[],te=0;te<arguments.length;te++)Y.push(arguments[te]);var pe=Y.pop();if(typeof pe!="function")throw new TypeError("The last argument must be of type Function");var x=this,f=function(){return pe.apply(x,arguments)};F.apply(this,Y).then(function(z){be.nextTick(f.bind(null,null,z))},function(z){be.nextTick(ee.bind(null,z,f))})}return Object.setPrototypeOf(X,Object.getPrototypeOf(F)),Object.defineProperties(X,t(F)),X}e.callbackify=q}),ba=le((e,t)=>{function r(p,v){var A=Object.keys(p);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(p);v&&(P=P.filter(function(b){return Object.getOwnPropertyDescriptor(p,b).enumerable})),A.push.apply(A,P)}return A}function u(p){for(var v=1;v<arguments.length;v++){var A=arguments[v]!=null?arguments[v]:{};
vendor: 3,859 bytes, line 15
15v%2?r(Object(A),!0).forEach(function(P){l(p,P,A[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(A)):r(Object(A)).forEach(function(P){Object.defineProperty(p,P,Object.getOwnPropertyDescriptor(A,P))})}return p}function l(p,v,A){return v=h(v),v in p?Object.defineProperty(p,v,{value:A,enumerable:!0,configurable:!0,writable:!0}):p[v]=A,p}function a(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function s(p,v){for(var A=0;A<v.length;A++){var P=v[A];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(p,h(P.key),P)}}function n(p,v,A){return v&&s(p.prototype,v),Object.defineProperty(p,"prototype",{writable:!1}),p}function h(p){var v=w(p,"string");return typeof v=="symbol"?v:String(v)}function w(p,v){if(typeof p!="object"||p===null)return p;var A=p[Symbol.toPrimitive];if(A!==void 0){var P=A.call(p,v);if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}var _=rr().Buffer,y=Pn().inspect,E=y&&y.custom||"inspect";function g(p,v,A){_.prototype.copy.call(p,v,A)}t.exports=function(){function p(){a(this,p),this.head=null,this.tail=null,this.length=0}return n(p,[{key:"push",value:function(A){var P={data:A,next:null};this.length>0?this.tail.next=P:this.head=P,this.tail=P,++this.length}},{key:"unshift",value:function(A){var P={data:A,next:this.head};this.length===0&&(this.tail=P),this.head=P,++this.length}},{key:"shift",value:function(){if(this.length!==0){var A=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,A}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(A){if(this.length===0)return"";for(var P=this.head,b=""+P.data;P=P.next;)b+=A+P.data;return b}},{key:"concat",value:function(A){if(this.length===0)return _.alloc(0);for(var P=_.allocUnsafe(A>>>0),b=this.head,T=0;b;)g(b.data,P,T),T+=b.data.length,b=b.next;return P}},{key:"consume",value:function(A,P){var b;return A<this.head.data.length?(b=this.head.data.slice(0,A),this.head.data=this.head.data.slice(A)):A===this.head.data.length?b=this.shift():b=P?this._getString(A):this._getBuffer(A),b}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(A){var P=this.head,b=1,T=P.data;for(A-=T.length;P=P.next;){var R=P.data,S=A>R.length?R.length:A;if(S===R.length?T+=R:T+=R.slice(0,A),A-=S,A===0){S===R.length?(++b,P.next?this.head=P.next:this.head=this.tail=null):(this.head=P,P.data=R.slice(S));break}++b}return this.length-=b,T}},{key:"_getBuffer",value:function(A){var P=_.allocUnsafe(A),b=this.head,T=1;for(b.data.copy(P),A-=b.data.length;b=b.next;){var R=b.data,S=A>R.length?R.length:A;if(R.copy(P,P.length-A,0,S),A-=S,A===0){S===R.length?(++T,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=R.slice(S));break}++T}return this.length-=T,P}},{key:E,value:function(A,P){return y(this,u(u({},P),{},{depth:0,customInspect:!1}))}}]),p}()}),In=le((e,t)=>{nt();function r(h,w){var _=this,y=this._readableState&&this._readableState.destroyed,E=this._writableState&&this._writableState.destroyed;return y||E?(w?w(h):h&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,be.nextTick(s,this,h)):be.nextTick(s,this,h)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(g){!w&&g?_._writableState?_._writableState.errorEmitted?be.nextTick(l,_):(_._writableState.errorEmitted=!0,be.nextTick(u,_,g)):be.nextTick(u,_,g):w?(be.nextTick(l,_),w(g)):be.nextTick(l,_)}),this)}function u(h,w){s(h,w),l(h)}function l(h){h._writableState&&!h._writableState.emitClose||h._readableState&&!h._readableState.emitClose||h.emit
vendor: 15,010 bytes, line 15
15("close")}function a(){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 s(h,w){h.emit("error",w)}function n(h,w){var _=h._readableState,y=h._writableState;_&&_.autoDestroy||y&&y.autoDestroy?h.destroy(w):h.emit("error",w)}t.exports={destroy:r,undestroy:a,errorOrDestroy:n}}),At=le((e,t)=>{function r(w,_){w.prototype=Object.create(_.prototype),w.prototype.constructor=w,w.__proto__=_}var u={};function l(w,_,y){y||(y=Error);function E(p,v,A){return typeof _=="string"?_:_(p,v,A)}var g=function(p){r(v,p);function v(A,P,b){return p.call(this,E(A,P,b))||this}return v}(y);g.prototype.name=y.name,g.prototype.code=w,u[w]=g}function a(w,_){if(Array.isArray(w)){var y=w.length;return w=w.map(function(E){return String(E)}),y>2?"one of ".concat(_," ").concat(w.slice(0,y-1).join(", "),", or ")+w[y-1]:y===2?"one of ".concat(_," ").concat(w[0]," or ").concat(w[1]):"of ".concat(_," ").concat(w[0])}else return"of ".concat(_," ").concat(String(w))}function s(w,_,y){return w.substr(0,_.length)===_}function n(w,_,y){return(y===void 0||y>w.length)&&(y=w.length),w.substring(y-_.length,y)===_}function h(w,_,y){return typeof y!="number"&&(y=0),y+_.length>w.length?!1:w.indexOf(_,y)!==-1}l("ERR_INVALID_OPT_VALUE",function(w,_){return'The value "'+_+'" is invalid for option "'+w+'"'},TypeError),l("ERR_INVALID_ARG_TYPE",function(w,_,y){var E;typeof _=="string"&&s(_,"not ")?(E="must not be",_=_.replace(/^not /,"")):E="must be";var g;if(n(w," argument"))g="The ".concat(w," ").concat(E," ").concat(a(_,"type"));else{var p=h(w,".")?"property":"argument";g='The "'.concat(w,'" ').concat(p," ").concat(E," ").concat(a(_,"type"))}return g+=". Received type ".concat(typeof y),g},TypeError),l("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),l("ERR_METHOD_NOT_IMPLEMENTED",function(w){return"The "+w+" method is not implemented"}),l("ERR_STREAM_PREMATURE_CLOSE","Premature close"),l("ERR_STREAM_DESTROYED",function(w){return"Cannot call "+w+" after a stream was destroyed"}),l("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),l("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),l("ERR_STREAM_WRITE_AFTER_END","write after end"),l("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),l("ERR_UNKNOWN_ENCODING",function(w){return"Unknown encoding: "+w},TypeError),l("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=u}),Nn=le((e,t)=>{var r=At().codes.ERR_INVALID_OPT_VALUE;function u(a,s,n){return a.highWaterMark!=null?a.highWaterMark:s?a[n]:null}function l(a,s,n,h){var w=u(s,h,n);if(w!=null){if(!(isFinite(w)&&Math.floor(w)===w)||w<0)throw new r(h?n:"highWaterMark",w);return Math.floor(w)}return a.objectMode?16:16*1024}t.exports={getHighWaterMark:l}}),_a=le((e,t)=>{Tt(),t.exports=r;function r(l,a){if(u("noDeprecation"))return l;var s=!1;function n(){if(!s){if(u("throwDeprecation"))throw new Error(a);u("traceDeprecation")?console.trace(a):console.warn(a),s=!0}return l.apply(this,arguments)}return n}function u(l){try{if(!De.localStorage)return!1}catch{return!1}var a=De.localStorage[l];return a==null?!1:String(a).toLowerCase()==="true"}}),On=le((e,t)=>{Tt(),nt(),t.exports=I;function r(x){var f=this;this.next=null,this.entry=null,this.finish=function(){pe(f,x)}}var u;I.WritableState=O;var l={deprecate:_a()},a=wn(),s=rr().Buffer,n=(typeof De<"u"?De:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(x){return s.from(x)}function w(x){return s.isBuffer(x)||x instanceof n}var _=In(),y=Nn().getHighWaterMark,E=At().codes,g=E.ERR_INVALID_ARG_TYPE,p=E.ERR_METHOD_NOT_IMPLEMENTED,v=E.ERR_MULTIPLE_CALLBACK,A=E.ERR_STREAM_CANNOT_PIPE,P=E.ERR_STREAM_DESTROYED,b=E.ERR_STREAM_NULL_VALUES,T=E.ERR_STREAM_WRITE_AFTER_END,R=E.ERR_UNKNOWN_ENCODING,S=_.errorOrDestroy;rt()(I,a);function m(){}function O(x,f,z){u=u||wt(),x=x||{},typeof z!="boolean"&&(z=f instanceof u),this.objectMode=!!x.objectMode,z&&(this.objectMode=this.objectMode||!!x.writableObjectMode),this.highWaterMark=y(this,x,"writableHighWaterMark",z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=x.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=x.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(re){$(f,re)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=x.emitClose!==!1,this.autoDestroy=!!x.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}O.prototype.getBuffer=function(){for(var f=this.bufferedRequest,z=[];f;)z.push(f),f=f.next;return z},function(){try{Object.defineProperty(O.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var U;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(U=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(f){return U.call(this,f)?!0:this!==I?!1:f&&f._writableState instanceof O}})):U=function(f){return f instanceof this};function I(x){u=u||wt();var f=this instanceof u;if(!f&&!U.call(I,this))return new I(x);this._writableState=new O(x,this,f),this.writable=!0,x&&(typeof x.write=="function"&&(this._write=x.write),typeof x.writev=="function"&&(this._writev=x.writev),typeof x.destroy=="function"&&(this._destroy=x.destroy),typeof x.final=="function"&&(this._final=x.final)),a.call(this)}I.prototype.pipe=function(){S(this,new A)};function K(x,f){var z=new T;S(x,z),be.nextTick(f,z)}function Q(x,f,z,M){var re;return z===null?re=new b:typeof z!="string"&&!f.objectMode&&(re=new g("chunk",["string","Buffer"],z)),re?(S(x,re),be.nextTick(M,re),!1):!0}I.prototype.write=function(x,f,z){var M=this._writableState,re=!1,B=!M.objectMode&&w(x);return B&&!s.isBuffer(x)&&(x=h(x)),typeof f=="function"&&(z=f,f=null),B?f="buffer":f||(f=M.defaultEncoding),typeof z!="function"&&(z=m),M.ending?K(this,z):(B||Q(this,M,x,z))&&(M.pendingcb++,re=W(this,M,B,x,f,z)),re},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var x=this._writableState;x.corked&&(x.corked--,!x.writing&&!x.corked&&!x.bufferProcessing&&x.bufferedRequest&&ee(this,x))},I.prototype.setDefaultEncoding=function(f){if(typeof f=="string"&&(f=f.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((f+"").toLowerCase())>-1))throw new R(f);return this._writableState.defaultEncoding=f,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function N(x,f,z){return!x.objectMode&&x.decodeStrings!==!1&&typeof f=="string"&&(f=s.from(f,z)),f}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function W(x,f,z,M,re,B){if(!z){var D=N(f,M,re);M!==D&&(z=!0,re="buffer",M=D)}var c=f.objectMode?1:M.length;f.length+=c;var V=f.length<f.highWaterMark;if(V||(f.needDrain=!0),f.writing||f.corked){var C=f.lastBufferedRequest;f.lastBufferedRequest={chunk:M,encoding:re,isBuf:z,callback:B,next:null},C?C.next=f.lastBufferedRequest:f.bufferedRequest=f.lastBufferedRequest,f.bufferedRequestCount+=1}else k(x,f,!1,c,M,re,B);return V}function k(x,f,z,M,re,B,D){f.writelen=M,f.writecb=D,f.writing=!0,f.sync=!0,f.destroyed?f.onwrite(new P("write")):z?x._writev(re,f.onwrite):x._write(re,B,f.onwrite),f.sync=!1}function H(x,f,z,M,re){--f.pendingcb,z?(be.nextTick(re,M),be.nextTick(Y,x,f),x._writableState.errorEmitted=!0,S(x,M)):(re(M),x._writableState.errorEmitted=!0,S(x,M),Y(x,f))}function J(x){x.writing=!1,x.writecb=null,x.length-=x.writelen,x.writelen=0}function $(x,f){var z=x._writableState,M=z.sync,re=z.writecb;if(typeof re!="function")throw new v;if(J(z),f)H(x,z,M,f,re);else{var B=q(z)||x.destroyed;!B&&!z.corked&&!z.bufferProcessing&&z.bufferedRequest&&ee(x,z),M?be.nextTick(oe,x,z,B,re):oe(x,z,B,re)}}function oe(x,f,z,M){z||Z(x,f),f.pendingcb--,M(),Y(x,f)}function Z(x,f){f.length===0&&f.needDrain&&(f.needDrain=!1,x.emit("drain"))}function ee(x,f){f.bufferProcessing=!0;var z=f.bufferedRequest;if(x._writev&&z&&z.next){var M=f.bufferedRequestCount,re=new Array(M),B=f.corkedRequestsFree;B.entry=z;for(var D=0,c=!0;z;)re[D]=z,z.isBuf||(c=!1),z=z.next,D+=1;re.allBuffers=c,k(x,f,!0,f.length,re,"",B.finish),f.pendingcb++,f.lastBufferedRequest=null,B.next?(f.corkedRequestsFree=B.next,B.next=null):f.corkedRequestsFree=new r(f),f.bufferedRequestCount=0}else{for(;z;){var V=z.chunk,C=z.encoding,i=z.callback;if(k(x,f,!1,f.objectMode?1:V.length,V,C,i),z=z.next,f.bufferedRequestCount--,f.writing)break}z===null&&(f.lastBufferedRequest=null)}f.bufferedRequest=z,f.bufferProcessing=!1}I.prototype._write=function(x,f,z){z(new p("_write()"))},I.prototype._writev=null,I.prototype.end=function(x,f,z){var M=this._writableState;return typeof x=="function"?(z=x,x=null,f=null):typeof f=="function"&&(z=f,f=null),x!=null&&this.write(x,f),M.corked&&(M.corked=1,this.uncork()),M.ending||te(this,M,z),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function q(x){return x.ending&&x.length===0&&x.bufferedRequest===null&&!x.finished&&!x.writing}function F(x,f){x._final(function(z){f.pendingcb--,z&&S(x,z),f.prefinished=!0,x.emit("prefinish"),Y(x,f)})}function X(x,f){!f.prefinished&&!f.finalCalled&&(typeof x._final=="function"&&!f.destroyed?(f.pendingcb++,f.finalCalled=!0,be.nextTick(F,x,f)):(f.prefinished=!0,x.emit("prefinish")))}function Y(x,f){var z=q(f);if(z&&(X(x,f),f.pendingcb===0&&(f.finished=!0,x.emit("finish"),f.autoDestroy))){var M=x._readableState;(!M||M.autoDestroy&&M.endEmitted)&&x.destroy()}return z}function te(x,f,z){f.ending=!0,Y(x,f),z&&(f.finished?be.nextTick(z):x.once("finish",z)),f.ended=!0,x.writable=!1}function pe(x,f,z){var M=x.entry;for(x.entry=null;M;){var re=M.callback;f.pendingcb--,re(z),M=M.next}f.corkedRequestsFree.next=x}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(f){this._writableState&&(this._writableState.destroyed=f)}}),I.prototype.destroy=_.destroy,I.prototype._undestroy=_.undestroy,I.prototype._destroy=function(x,f){f(x)}}),wt=le((e,t)=>{nt();var r=Object.keys||function(y){var E=[];for(var g in y)E.push(g);return E};t.exports=h;var u=Fn(),l=On();rt()(h,u);for(var a=r(l.prototype),s=0;s<a.length;s++){var n=a[s];h.prototype[n]||(h.prototype[n]=l.prototype[n])}function h(y){if(!(this instanceof h))return new h(y);u.call(this,y),l.call(this,y),this.allowHalfOpen=!0,y&&(y.readable===!1&&(this.readable=!1),y.writable===!1&&(this.writable=!1),y.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",w)))}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function w(){this._writableState.ended||be.nextTick(_,this)}function _(y){y.end()}Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(E){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=E,this._writableState.destroyed=E)}})}),xa=le((e,t)=>{var r=rr(),u=r.Buffer;function l(s,n){for(var h in s)n[h]=s[h]}u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?t.exports=r:(l(r,e),e.Buffer=a);function a(s,n,h){return u(s,n,h)}l(u,a),a.from=function(s,n,h){if(typeof s=="number")throw new TypeError("Argument must not be a number");return u(s,n,h)},a.alloc=function(s,n,h){if(typeof s!="number")throw new TypeError("Argument must be a number");var w=u(s);return n!==void 0?typeof h=="string"?w.fill(n,h):w.fill(n):w.fill(0),w},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return u(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}}),Sr=le(e=>{var t=xa().Buffer,r=t.isEncoding||function(b){switch(b=""+b,b&&b.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 u(b){if(!b)return"utf8";for(var T;;)switch(b){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 b;default:if(T)return;b=(""+b).toLowerCase(),T=!0}}function l(b){var T=u(b);if(typeof T!="string"&&(t.isEncoding===r||!r(b)))throw new Error("Unknown encoding: "+b);return T||b}e.StringDecoder=a;function a(b){this.encoding=l(b);var T;switch(this.encoding){case"utf16le":this.text=E,this.end=g,T=4;break;case"utf8":this.fillLast=w,T=4;break;case"base64":this.text=p,this.end=v,T=3;break;default:this.write=A,this.end=P;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(T)}a.prototype.write=function(b){if(b.length===0)return"";var T,R;if(this.lastNeed){if(T=this.fillLast(b),T===void 0)return"";R=this.lastNeed,this.lastNeed=0}else R=0;return R<b.length?T?T+this.text(b,R):this.text(b,R):T||""},a.prototype.end=y,a.prototype.text=_,a.prototype.fillLast=function(b){if(this.lastNeed<=b.length)return b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,b.length),this.lastNeed-=b.length};function s(b){return b<=127?0:b>>5===6?2:b>>4===14?3:b>>3===30?4:b>>6===2?-1:-2}function n(b,T,R){var S=T.length-1;if(S<R)return 0;var m=s(T[S]);return m>=0?(m>0&&(b.lastNeed=m-1),m):--S<R||m===-2?0:(m=s(T[S]),m>=0?(m>0&&(b.lastNeed=m-2),m):--S<R||m===-2?0:(m=s(T[S]),m>=0?(m>0&&(m===2?m=0:b.lastNeed=m-3),m):0))}function h(b,T,R){if((T[0]&192)!==128)return b.lastNeed=0,"�";if(b.lastNeed>1&&T.length>1){if((T[1]&192)!==128)return b.lastNeed=1,"�";if(b.lastNeed>2&&T.length>2&&(T[2]&192)!==128)return b.lastNeed=2,"�"}}function w(b){var T=this.lastTotal-this.lastNeed,R=h(this,b);
vendor: 8,827 bytes, line 15
15if(R!==void 0)return R;if(this.lastNeed<=b.length)return b.copy(this.lastChar,T,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,T,0,b.length),this.lastNeed-=b.length}function _(b,T){var R=n(this,b,T);if(!this.lastNeed)return b.toString("utf8",T);this.lastTotal=R;var S=b.length-(R-this.lastNeed);return b.copy(this.lastChar,0,S),b.toString("utf8",T,S)}function y(b){var T=b&&b.length?this.write(b):"";return this.lastNeed?T+"�":T}function E(b,T){if((b.length-T)%2===0){var R=b.toString("utf16le",T);if(R){var S=R.charCodeAt(R.length-1);if(S>=55296&&S<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1],R.slice(0,-1)}return R}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=b[b.length-1],b.toString("utf16le",T,b.length-1)}function g(b){var T=b&&b.length?this.write(b):"";if(this.lastNeed){var R=this.lastTotal-this.lastNeed;return T+this.lastChar.toString("utf16le",0,R)}return T}function p(b,T){var R=(b.length-T)%3;return R===0?b.toString("base64",T):(this.lastNeed=3-R,this.lastTotal=3,R===1?this.lastChar[0]=b[b.length-1]:(this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1]),b.toString("base64",T,b.length-R))}function v(b){var T=b&&b.length?this.write(b):"";return this.lastNeed?T+this.lastChar.toString("base64",0,3-this.lastNeed):T}function A(b){return b.toString(this.encoding)}function P(b){return b&&b.length?this.write(b):""}}),Ir=le((e,t)=>{var r=At().codes.ERR_STREAM_PREMATURE_CLOSE;function u(n){var h=!1;return function(){if(!h){h=!0;for(var w=arguments.length,_=new Array(w),y=0;y<w;y++)_[y]=arguments[y];n.apply(this,_)}}}function l(){}function a(n){return n.setHeader&&typeof n.abort=="function"}function s(n,h,w){if(typeof h=="function")return s(n,null,h);h||(h={}),w=u(w||l);var _=h.readable||h.readable!==!1&&n.readable,y=h.writable||h.writable!==!1&&n.writable,E=function(){n.writable||p()},g=n._writableState&&n._writableState.finished,p=function(){y=!1,g=!0,_||w.call(n)},v=n._readableState&&n._readableState.endEmitted,A=function(){_=!1,v=!0,y||w.call(n)},P=function(S){w.call(n,S)},b=function(){var S;if(_&&!v)return(!n._readableState||!n._readableState.ended)&&(S=new r),w.call(n,S);if(y&&!g)return(!n._writableState||!n._writableState.ended)&&(S=new r),w.call(n,S)},T=function(){n.req.on("finish",p)};return a(n)?(n.on("complete",p),n.on("abort",b),n.req?T():n.on("request",T)):y&&!n._writableState&&(n.on("end",E),n.on("close",E)),n.on("end",A),n.on("finish",p),h.error!==!1&&n.on("error",P),n.on("close",b),function(){n.removeListener("complete",p),n.removeListener("abort",b),n.removeListener("request",T),n.req&&n.req.removeListener("finish",p),n.removeListener("end",E),n.removeListener("close",E),n.removeListener("finish",p),n.removeListener("end",A),n.removeListener("error",P),n.removeListener("close",b)}}t.exports=s}),Ea=le((e,t)=>{nt();var r;function u(R,S,m){return S=l(S),S in R?Object.defineProperty(R,S,{value:m,enumerable:!0,configurable:!0,writable:!0}):R[S]=m,R}function l(R){var S=a(R,"string");return typeof S=="symbol"?S:String(S)}function a(R,S){if(typeof R!="object"||R===null)return R;var m=R[Symbol.toPrimitive];if(m!==void 0){var O=m.call(R,S);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(R)}var s=Ir(),n=Symbol("lastResolve"),h=Symbol("lastReject"),w=Symbol("error"),_=Symbol("ended"),y=Symbol("lastPromise"),E=Symbol("handlePromise"),g=Symbol("stream");function p(R,S){return{value:R,done:S}}function v(R){var S=R[n];if(S!==null){var m=R[g].read();m!==null&&(R[y]=null,R[n]=null,R[h]=null,S(p(m,!1)))}}function A(R){be.nextTick(v,R)}function P(R,S){return function(m,O){R.then(function(){if(S[_]){m(p(void 0,!0));return}S[E](m,O)},O)}}var b=Object.getPrototypeOf(function(){}),T=Object.setPrototypeOf((r={get stream(){return this[g]},next:function(){var S=this,m=this[w];if(m!==null)return Promise.reject(m);if(this[_])return Promise.resolve(p(void 0,!0));if(this[g].destroyed)return new Promise(function(K,Q){be.nextTick(function(){S[w]?Q(S[w]):K(p(void 0,!0))})});var O=this[y],U;if(O)U=new Promise(P(O,this));else{var I=this[g].read();if(I!==null)return Promise.resolve(p(I,!1));U=new Promise(this[E])}return this[y]=U,U}},u(r,Symbol.asyncIterator,function(){return this}),u(r,"return",function(){var S=this;return new Promise(function(m,O){S[g].destroy(null,function(U){if(U){O(U);return}m(p(void 0,!0))})})}),r),b);t.exports=function(S){var m,O=Object.create(T,(m={},u(m,g,{value:S,writable:!0}),u(m,n,{value:null,writable:!0}),u(m,h,{value:null,writable:!0}),u(m,w,{value:null,writable:!0}),u(m,_,{value:S._readableState.endEmitted,writable:!0}),u(m,E,{value:function(I,K){var Q=O[g].read();Q?(O[y]=null,O[n]=null,O[h]=null,I(p(Q,!1))):(O[n]=I,O[h]=K)},writable:!0}),m));return O[y]=null,s(S,function(U){if(U&&U.code!=="ERR_STREAM_PREMATURE_CLOSE"){var I=O[h];I!==null&&(O[y]=null,O[n]=null,O[h]=null,I(U)),O[w]=U;return}var K=O[n];K!==null&&(O[y]=null,O[n]=null,O[h]=null,K(p(void 0,!0))),O[_]=!0}),S.on("readable",A.bind(null,O)),O}}),Sa=le((e,t)=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}}),Fn=le((e,t)=>{Tt(),nt(),t.exports=K;var r;K.ReadableState=I,Ar().EventEmitter;var u=function(D,c){return D.listeners(c).length},l=wn(),a=rr().Buffer,s=(typeof De<"u"?De:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(B){return a.from(B)}function h(B){return a.isBuffer(B)||B instanceof s}var w=Pn(),_;w&&w.debuglog?_=w.debuglog("stream"):_=function(){};var y=ba(),E=In(),g=Nn().getHighWaterMark,p=At().codes,v=p.ERR_INVALID_ARG_TYPE,A=p.ERR_STREAM_PUSH_AFTER_EOF,P=p.ERR_METHOD_NOT_IMPLEMENTED,b=p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,T,R,S;rt()(K,l);var m=E.errorOrDestroy,O=["error","close","destroy","pause","resume"];function U(B,D,c){if(typeof B.prependListener=="function")return B.prependListener(D,c);!B._events||!B._events[D]?B.on(D,c):Array.isArray(B._events[D])?B._events[D].unshift(c):B._events[D]=[c,B._events[D]]}function I(B,D,c){r=r||wt(),B=B||{},typeof c!="boolean"&&(c=D instanceof r),this.objectMode=!!B.objectMode,c&&(this.objectMode=this.objectMode||!!B.readableObjectMode),this.highWaterMark=g(this,B,"readableHighWaterMark",c),this.buffer=new y,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=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.destroyed=!1,this.defaultEncoding=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(T||(T=Sr().StringDecoder),this.decoder=new T(B.encoding),this.encoding=B.encoding)}function K(B){if(r=r||wt(),!(this instanceof K))return new K(B);var D=this instanceof r;this._readableState=new I(B,this,D),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),l.call(this)}Object.defineProperty(K.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(D){this._readableState&&(this._readableState.destroyed=D)}}),K.prototype.destroy=E.destroy,K.prototype._undestroy=E.undestroy,K.prototype._destroy=function(B,D){D(B)},K.prototype.push=function(B,D){var c=this._readableState,V;return c.objectMode?V=!0:typeof B=="string"&&(D=D||c.defaultEncoding,D!==c.encoding&&(B=a.from(B,D),D=""),V=!0),Q(this,B,D,!1,V)},K.prototype.unshift=function(B){return Q(this,B,null,!0,!1)};function Q(B,D,c,V,C){_("readableAddChunk",D);var i=B._readableState;if(D===null)i.reading=!1,$(B,i);else{var o;if(C||(o=W(i,D)),o)m(B,o);else if(i.objectMode||D&&D.length>0)if(typeof D!="string"&&!i.objectMode&&Object.getPrototypeOf(D)!==a.prototype&&(D=n(D)),V)i.endEmitted?m(B,new b):N(B,i,D,!0);else if(i.ended)m(B,new A);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!c?(D=i.decoder.write(D),i.objectMode||D.length!==0?N(B,i,D,!1):ee(B,i)):N(B,i,D,!1)}else V||(i.reading=!1,ee(B,i))}return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function N(B,D,c,V){D.flowing&&D.length===0&&!D.sync?(D.awaitDrain=0,B.emit("data",c)):(D.length+=D.objectMode?1:c.length,V?D.buffer.unshift(c):D.buffer.push(c),D.needReadable&&oe(B)),ee(B,D)}function W(B,D){var c;return!h(D)&&typeof D!="string"&&D!==void 0&&!B.objectMode&&(c=new v("chunk",["string","Buffer","Uint8Array"],D)),c}K.prototype.isPaused=function(){return this._readableState.flowing===!1},K.prototype.setEncoding=function(B){T||(T=Sr().StringDecoder);var D=new T(B);this._readableState.decoder=D,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 4,198 bytes, line 15
15for(var c=this._readableState.buffer.head,V="";c!==null;)V+=D.write(c.data),c=c.next;return this._readableState.buffer.clear(),V!==""&&this._readableState.buffer.push(V),this._readableState.length=V.length,this};var k=1073741824;function H(B){return B>=k?B=k:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}function J(B,D){return B<=0||D.length===0&&D.ended?0:D.objectMode?1:B!==B?D.flowing&&D.length?D.buffer.head.data.length:D.length:(B>D.highWaterMark&&(D.highWaterMark=H(B)),B<=D.length?B:D.ended?D.length:(D.needReadable=!0,0))}K.prototype.read=function(B){_("read",B),B=parseInt(B,10);var D=this._readableState,c=B;if(B!==0&&(D.emittedReadable=!1),B===0&&D.needReadable&&((D.highWaterMark!==0?D.length>=D.highWaterMark:D.length>0)||D.ended))return _("read: emitReadable",D.length,D.ended),D.length===0&&D.ended?z(this):oe(this),null;if(B=J(B,D),B===0&&D.ended)return D.length===0&&z(this),null;var V=D.needReadable;_("need readable",V),(D.length===0||D.length-B<D.highWaterMark)&&(V=!0,_("length less than watermark",V)),D.ended||D.reading?(V=!1,_("reading or ended",V)):V&&(_("do read"),D.reading=!0,D.sync=!0,D.length===0&&(D.needReadable=!0),this._read(D.highWaterMark),D.sync=!1,D.reading||(B=J(c,D)));var C;return B>0?C=f(B,D):C=null,C===null?(D.needReadable=D.length<=D.highWaterMark,B=0):(D.length-=B,D.awaitDrain=0),D.length===0&&(D.ended||(D.needReadable=!0),c!==B&&D.ended&&z(this)),C!==null&&this.emit("data",C),C};function $(B,D){if(_("onEofChunk"),!D.ended){if(D.decoder){var c=D.decoder.end();c&&c.length&&(D.buffer.push(c),D.length+=D.objectMode?1:c.length)}D.ended=!0,D.sync?oe(B):(D.needReadable=!1,D.emittedReadable||(D.emittedReadable=!0,Z(B)))}}function oe(B){var D=B._readableState;_("emitReadable",D.needReadable,D.emittedReadable),D.needReadable=!1,D.emittedReadable||(_("emitReadable",D.flowing),D.emittedReadable=!0,be.nextTick(Z,B))}function Z(B){var D=B._readableState;_("emitReadable_",D.destroyed,D.length,D.ended),!D.destroyed&&(D.length||D.ended)&&(B.emit("readable"),D.emittedReadable=!1),D.needReadable=!D.flowing&&!D.ended&&D.length<=D.highWaterMark,x(B)}function ee(B,D){D.readingMore||(D.readingMore=!0,be.nextTick(q,B,D))}function q(B,D){for(;!D.reading&&!D.ended&&(D.length<D.highWaterMark||D.flowing&&D.length===0);){var c=D.length;if(_("maybeReadMore read 0"),B.read(0),c===D.length)break}D.readingMore=!1}K.prototype._read=function(B){m(this,new P("_read()"))},K.prototype.pipe=function(B,D){var c=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=B;break;case 1:V.pipes=[V.pipes,B];break;default:V.pipes.push(B);break}V.pipesCount+=1,_("pipe count=%d opts=%j",V.pipesCount,D);var C=(!D||D.end!==!1)&&B!==be.stdout&&B!==be.stderr?o:fe;V.endEmitted?be.nextTick(C):c.once("end",C),B.on("unpipe",i);function i(me,ve){_("onunpipe"),me===c&&ve&&ve.hasUnpiped===!1&&(ve.hasUnpiped=!0,G())}function o(){_("onend"),B.end()}var d=F(c);B.on("drain",d);var L=!1;function G(){_("cleanup"),B.removeListener("close",se),B.removeListener("finish",ae),B.removeListener("drain",d),B.removeListener("error",ne),B.removeListener("unpipe",i),c.removeListener("end",o),c.removeListener("end",fe),c.removeListener("data",j),L=!0,V.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&d()}c.on("data",j);function j(me){_("ondata");var ve=B.write(me);_("dest.write",ve),ve===!1&&((V.pipesCount===1&&V.pipes===B||V.pipesCount>1&&re(V.pipes,B)!==-1)&&!L&&(_("false write response, pause",V.awaitDrain),V.awaitDrain++),c.pause())}function ne(me){_("onerror",me),fe(),B.removeListener("error",ne),u(B,"error")===0&&m(B,me)}U(B,"error",ne);function se(){B.removeListener("finish",ae),fe()}B.once("close",se);function ae(){_("onfinish"),B.removeListener("close",se),fe()}B.once("finish",ae);function fe(){_("unpipe"),c.unpipe(B)}return B.emit("pipe",c),V.flowing||(_("pipe resume"),c.resume()),B};function F(B){return function(){var c=B._readableState;_("pipeOnDrain",c.awaitDrain),c.awaitDrain&&c.awaitDrain--,c.awaitDrain===0&&u(B,"data")&&(c.flowing=!0,x(B))}}K.prototype.unpipe=function(B){var D=this._readableState,c={hasUnpiped:!1};if(D.pipesCount===0)return this;if(D.pipesCount===1)return B&&B!==D.pipes?this:(B||(B=D.pipes),D.pipes=null,D.pi
vendor: 4,048 bytes, line 15
15pesCount=0,D.flowing=!1,B&&B.emit("unpipe",this,c),this);if(!B){var V=D.pipes,C=D.pipesCount;D.pipes=null,D.pipesCount=0,D.flowing=!1;for(var i=0;i<C;i++)V[i].emit("unpipe",this,{hasUnpiped:!1});return this}var o=re(D.pipes,B);return o===-1?this:(D.pipes.splice(o,1),D.pipesCount-=1,D.pipesCount===1&&(D.pipes=D.pipes[0]),B.emit("unpipe",this,c),this)},K.prototype.on=function(B,D){var c=l.prototype.on.call(this,B,D),V=this._readableState;return B==="data"?(V.readableListening=this.listenerCount("readable")>0,V.flowing!==!1&&this.resume()):B==="readable"&&!V.endEmitted&&!V.readableListening&&(V.readableListening=V.needReadable=!0,V.flowing=!1,V.emittedReadable=!1,_("on readable",V.length,V.reading),V.length?oe(this):V.reading||be.nextTick(Y,this)),c},K.prototype.addListener=K.prototype.on,K.prototype.removeListener=function(B,D){var c=l.prototype.removeListener.call(this,B,D);return B==="readable"&&be.nextTick(X,this),c},K.prototype.removeAllListeners=function(B){var D=l.prototype.removeAllListeners.apply(this,arguments);return(B==="readable"||B===void 0)&&be.nextTick(X,this),D};function X(B){var D=B._readableState;D.readableListening=B.listenerCount("readable")>0,D.resumeScheduled&&!D.paused?D.flowing=!0:B.listenerCount("data")>0&&B.resume()}function Y(B){_("readable nexttick read 0"),B.read(0)}K.prototype.resume=function(){var B=this._readableState;return B.flowing||(_("resume"),B.flowing=!B.readableListening,te(this,B)),B.paused=!1,this};function te(B,D){D.resumeScheduled||(D.resumeScheduled=!0,be.nextTick(pe,B,D))}function pe(B,D){_("resume",D.reading),D.reading||B.read(0),D.resumeScheduled=!1,B.emit("resume"),x(B),D.flowing&&!D.reading&&B.read(0)}K.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function x(B){var D=B._readableState;for(_("flow",D.flowing);D.flowing&&B.read()!==null;);}K.prototype.wrap=function(B){var D=this,c=this._readableState,V=!1;B.on("end",function(){if(_("wrapped end"),c.decoder&&!c.ended){var o=c.decoder.end();o&&o.length&&D.push(o)}D.push(null)}),B.on("data",function(o){_("wrapped data"),c.decoder&&(o=c.decoder.write(o)),!(c.objectMode&&o==null)&&(!c.objectMode&&(!o||!o.length)||D.push(o)||(V=!0,B.pause()))});for(var C in B)this[C]===void 0&&typeof B[C]=="function"&&(this[C]=function(d){return function(){return B[d].apply(B,arguments)}}(C));for(var i=0;i<O.length;i++)B.on(O[i],this.emit.bind(this,O[i]));return this._read=function(o){_("wrapped _read",o),V&&(V=!1,B.resume())},this},typeof Symbol=="function"&&(K.prototype[Symbol.asyncIterator]=function(){return R===void 0&&(R=Ea()),R(this)}),Object.defineProperty(K.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(K.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(K.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(D){this._readableState&&(this._readableState.flowing=D)}}),K._fromList=f,Object.defineProperty(K.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function f(B,D){if(D.length===0)return null;var c;return D.objectMode?c=D.buffer.shift():!B||B>=D.length?(D.decoder?c=D.buffer.join(""):D.buffer.length===1?c=D.buffer.first():c=D.buffer.concat(D.length),D.buffer.clear()):c=D.buffer.consume(B,D.decoder),c}function z(B){var D=B._readableState;_("endReadable",D.endEmitted),D.endEmitted||(D.ended=!0,be.nextTick(M,D,B))}function M(B,D){if(_("endReadableNT",B.endEmitted,B.length),!B.endEmitted&&B.length===0&&(B.endEmitted=!0,D.readable=!1,D.emit("end"),B.autoDestroy)){var c=D._writableState;(!c||c.autoDestroy&&c.finished)&&D.destroy()}}typeof Symbol=="function"&&(K.from=function(B,D){return S===void 0&&(S=Sa()),S(K,B,D)});function re(B,D){for(var c=0,V=B.length;c<V;
15c++)if(B[c]===D)return c;return-1}}),Bn=le((e,t)=>{t.exports=w;var r=At().codes,u=r.ERR_METHOD_NOT_IMPLEMENTED,l=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,n=wt();rt()(w,n);function h(E,g){var p=this._transformState;p.transforming=!1;var v=p.writecb;if(v===null)return this.emit("error",new l);p.writechunk=null,p.writecb=null,g!=null&&this.push(g),v(E);var A=this._readableState;A.reading=!1,(A.needReadable||A.length<A.highWaterMark)&&this._read(A.highWaterMark)}function w(E){if(!(this instanceof w))return new w(E);n.call(this,E),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,E&&(typeof E.transform=="function"&&(this._transform=E.transform),typeof E.flush=="function"&&(this._flush=E.flush)),this.on("prefinish",_)}function _(){var E=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(g,p){y(E,g,p)}):y(this,null,null)}w.prototype.push=function(E,g){return this._transformState.needTransform=!1,n.prototype.push.call(this,E,g)},w.prototype._transform=function(E,g,p){p(new u("_transform()"))},w.prototype._write=function(E,g,p){var v=this._transformState;if(v.writecb=p,v.writechunk=E,v.writeencoding=g,!v.transforming){var A=this._readableState;(v.needTransform||A.needReadable||A.length<A.highWaterMark)&&this._read(A.highWaterMark)}},w.prototype._read=function(E){var g=this._transformState;g.writechunk!==null&&!g.transforming?(g.transforming=!0,this._transform(g.writechunk,g.writeencoding,g.afterTransform)):g.needTransform=!0},w.prototype._destroy=function(E,g){n.prototype._destroy.call(this,E,function(p){g(p)})};function y(E,g,p){if(g)return E.emit("error",g);if(p!=null&&E.push(p),E._writableState.length)throw new s;if(E._transformState.transforming)throw new a;return E.push(null)}}),Ta=le((e,t)=>{t.exports=u;var r=Bn();rt()(u,r);function u(l){if(!(this instanceof u))return new u(l);r.call(this,l)}u.prototype._transform=function(l,a,s){s(null,l)}}),Aa=le((e,t)=>{var r;function u(p){var v=!1;return function(){v||(v=!0,p.apply(void 0,arguments))}}var l=At().codes,a=l.ERR_MISSING_ARGS,s=l.ERR_STREAM_DESTROYED;function n(p){if(p)throw p}function h(p){return p.setHeader&&typeof p.abort=="function"}function w(p,v,A,P){P=u(P);var b=!1;p.on("close",function(){b=!0}),r===void 0&&(r=Ir()),r(p,{readable:v,writable:A},function(R){if(R)return P(R);b=!0,P()});var T=!1;return function(R){if(!b&&!T){if(T=!0,h(p))return p.abort();if(typeof p.destroy=="function")return p.destroy();P(R||new s("pipe"))}}}function _(p){p()}function y(p,v){return p.pipe(v)}function E(p){return!p.length||typeof p[p.length-1]!="function"?n:p.pop()}function g(){for(var p=arguments.length,v=new Array(p),A=0;A<p;A++)v[A]=arguments[A];var P=E(v);if(Array.isArray(v[0])&&(v=v[0]),v.length<2)throw new a("streams");var b,T=v.map(function(R,S){var m=S<v.length-1;return w(R,m,S>0,function(O){b||(b=O),O&&T.forEach(_),!m&&(T.forEach(_),P(b))})});return v.reduce(y)}t.exports=g}),Nr=le((e,t)=>{t.exports=u;var r=Ar().EventEmitter;rt()(u,r),u.Readable=Fn(),u.Writable=On(),u.Duplex=wt(),u.Transform=Bn(),u.PassThrough=Ta(),u.finished=Ir(),u.pipeline=Aa(),u.Stream=u;function u(){r.call(this)}u.prototype.pipe=function(l,a){var s=this;function n(p){l.writable&&l.write(p)===!1&&s.pause&&s.pause()}s.on("data",n);function h(){s.readable&&s.resume&&s.resume()}l.on("drain",h),!l._isStdio&&(!a||a.end!==!1)&&(s.on("end",_),s.on("close",y));var w=!1;function _(){w||(w=!0,l.end())}function y(){w||(w=!0,typeof l.destroy=="function"&&l.destroy())}function E(p){if(g(),r.listenerCount(this,"error")===0)throw p}s.on("error",E),l.on("error",E);function g(){s.removeListener("data",n),l.removeListener("drain",h),s.removeListener("end",_),s.removeListener("close",y),s.removeListener("error",E),l.removeListener("error",E),s.removeListener("end",g),s.removeListener("close",g),l.removeListener("close",g)}return s.on("end",g),s.on("close",g),l.on("close",g),l.emit("pipe",s),l}}),ka=le(e=>{(function(t){t.parser=function(x,f){return new u(x,f)},t.SAXParser=u,t.SAXStream=_,t.createStream=w,t.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function u(x,f){if(!(this instanceof u))return new u(x,f);var z=this;a(z),z.q=z.c="",z.bufferCheckPosition=t.MAX_BUFFER_LENGTH,z.opt=f||{},z.opt.lowercase=z.opt.lowercase||z.opt.lowercasetags,z.looseCase=z.opt.lowercase?"toLowerCase":"toUpperCase",z.tags=[],z.closed=z.closedRoot=z.sawRoot=!1,z.tag=z.error=null,z.strict=!!x,z.noscript=!!(x||z.opt.noscript),z.state=I.BEGIN,z.strictEntities=z.opt.strictEntities,z.ENTITIES=z.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),z.attribList=[],z.opt.xmlns&&(z.ns=Object.create(v)),z.trackPosition=z.opt.position!==!1,z.trackPosition&&(z.position=z.line=z.column=0),Q(z,"onready")}Object.create||(Object.create=function(x){function f(){}return f.prototype=x,new f}),Object.keys||(Object.keys=function(x){var f=[];for(var z in x)x.hasOwnProperty(z)&&f.push(z);return f});function l(x){for(var f=Math.max(t.MAX_BUFFER_LENGTH,10),z=0,M=0,re=r.length;M<re;M++){var B=x[r[M]].length;if(B>f)switch(r[M]){case"textNode":W(x);break;
vendor: 27,851 bytes, lines 15-25
15case"cdata":N(x,"oncdata",x.cdata),x.cdata="";break;case"script":N(x,"onscript",x.script),x.script="";break;default:H(x,"Max buffer length exceeded: "+r[M])}z=Math.max(z,B)}x.bufferCheckPosition=t.MAX_BUFFER_LENGTH-z+x.position}function a(x){for(var f=0,z=r.length;f<z;f++)x[r[f]]=""}function s(x){W(x),x.cdata!==""&&(N(x,"oncdata",x.cdata),x.cdata=""),x.script!==""&&(N(x,"onscript",x.script),x.script="")}u.prototype={end:function(){J(this)},write:pe,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){s(this)}};var n;try{n=Nr().Stream}catch{n=function(){}}var h=t.EVENTS.filter(function(x){return x!=="error"&&x!=="end"});function w(x,f){return new _(x,f)}function _(x,f){if(!(this instanceof _))return new _(x,f);n.apply(this),this._parser=new u(x,f),this.writable=!0,this.readable=!0;var z=this;this._parser.onend=function(){z.emit("end")},this._parser.onerror=function(M){z.emit("error",M),z._parser.error=null},this._decoder=null,h.forEach(function(M){Object.defineProperty(z,"on"+M,{get:function(){return z._parser["on"+M]},set:function(re){if(!re)return z.removeAllListeners(M),z._parser["on"+M]=re,re;z.on(M,re)},enumerable:!0,configurable:!1})})}_.prototype=Object.create(n.prototype,{constructor:{value:_}}),_.prototype.write=function(x){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(x)){if(!this._decoder){var f=Sr().StringDecoder;this._decoder=new f("utf8")}x=this._decoder.write(x)}return this._parser.write(x.toString()),this.emit("data",x),!0},_.prototype.end=function(x){return x&&x.length&&this.write(x),this._parser.end(),!0},_.prototype.on=function(x,f){var z=this;return!z._parser["on"+x]&&h.indexOf(x)!==-1&&(z._parser["on"+x]=function(){var M=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);M.splice(0,0,x),z.emit.apply(z,M)}),n.prototype.on.call(z,x,f)};var y="[CDATA[",E="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",p="http://www.w3.org/2000/xmlns/",v={xml:g,xmlns:p},A=/[:_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]/,P=/[:_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-]/,b=/[#:_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]/,T=/[#:_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 R(x){return x===" "||x===`
16`||x==="\r"||x==="	"}function S(x){return x==='"'||x==="'"}function m(x){return x===">"||R(x)}function O(x,f){return x.test(f)}function U(x,f){return!O(x,f)}var I=0;t.STATE={BEGIN:I++,BEGIN_WHITESPACE:I++,TEXT:I++,TEXT_ENTITY:I++,OPEN_WAKA:I++,SGML_DECL:I++,SGML_DECL_QUOTED:I++,DOCTYPE:I++,DOCTYPE_QUOTED:I++,DOCTYPE_DTD:I++,DOCTYPE_DTD_QUOTED:I++,COMMENT_STARTING:I++,COMMENT:I++,COMMENT_ENDING:I++,COMMENT_ENDED:I++,CDATA:I++,CDATA_ENDING:I++,CDATA_ENDING_2:I++,PROC_INST:I++,PROC_INST_BODY:I++,PROC_INST_ENDING:I++,OPEN_TAG:I++,OPEN_TAG_SLASH:I++,ATTRIB:I++,ATTRIB_NAME:I++,ATTRIB_NAME_SAW_WHITE:I++,ATTRIB_VALUE:I++,ATTRIB_VALUE_QUOTED:I++,ATTRIB_VALUE_CLOSED:I++,ATTRIB_VALUE_UNQUOTED:I++,ATTRIB_VALUE_ENTITY_Q:I++,ATTRIB_VALUE_ENTITY_U:I++,CLOSE_TAG:I++,CLOSE_TAG_SAW_WHITE:I++,SCRIPT:I++,SCRIPT_ENDING:I++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.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(t.ENTITIES).forEach(function(x){var f=t.ENTITIES[x],z=typeof f=="number"?String.fromCharCode(f):f;t.ENTITIES[x]=z});for(var K in t.STATE)t.STATE[t.STATE[K]]=K;I=t.STATE;function Q(x,f,z){x[f]&&x[f](z)}function N(x,f,z){x.textNode&&W(x),Q(x,f,z)}function W(x){x.textNode=k(x.opt,x.textNode),x.textNode&&Q(x,"ontext",x.textNode),x.textNode=""}function k(x,f){return x.trim&&(f=f.trim()),x.normalize&&(f=f.replace(/\s+/g," ")),f}function H(x,f){return W(x),x.trackPosition&&(f+=`
17Line: `+x.line+`
18Column: `+x.column+`
19Char: `+x.c),f=new Error(f),x.error=f,Q(x,"onerror",f),x}function J(x){return x.sawRoot&&!x.closedRoot&&$(x,"Unclosed root tag"),x.state!==I.BEGIN&&x.state!==I.BEGIN_WHITESPACE&&x.state!==I.TEXT&&H(x,"Unexpected end"),W(x),x.c="",x.closed=!0,Q(x,"onend"),u.call(x,x.strict,x.opt),x}function $(x,f){if(typeof x!="object"||!(x instanceof u))throw new Error("bad call to strictFail");x.strict&&H(x,f)}function oe(x){x.strict||(x.tagName=x.tagName[x.looseCase]());var f=x.tags[x.tags.length-1]||x,z=x.tag={name:x.tagName,attributes:{}};x.opt.xmlns&&(z.ns=f.ns),x.attribList.length=0,N(x,"onopentagstart",z)}function Z(x,f){var z=x.indexOf(":")<0?["",x]:x.split(":"),M=z[0],re=z[1];return f&&x==="xmlns"&&(M="xmlns",re=""),{prefix:M,local:re}}function ee(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 f=Z(x.attribName,!0),z=f.prefix,M=f.local;if(z==="xmlns")if(M==="xml"&&x.attribValue!==g)$(x,"xml: prefix must be bound to "+g+`
20Actual: `+x.attribValue);else if(M==="xmlns"&&x.attribValue!==p)$(x,"xmlns: prefix must be bound to "+p+`
21Actual: `+x.attribValue);else{var re=x.tag,B=x.tags[x.tags.length-1]||x;re.ns===B.ns&&(re.ns=Object.create(B.ns)),re.ns[M]=x.attribValue}x.attribList.push([x.attribName,x.attribValue])}else x.tag.attributes[x.attribName]=x.attribValue,N(x,"onattribute",{name:x.attribName,value:x.attribValue});x.attribName=x.attribValue=""}function q(x,f){if(x.opt.xmlns){var z=x.tag,M=Z(x.tagName);z.prefix=M.prefix,z.local=M.local,z.uri=z.ns[M.prefix]||"",z.prefix&&!z.uri&&($(x,"Unbound namespace prefix: "+JSON.stringify(x.tagName)),z.uri=M.prefix);var re=x.tags[x.tags.length-1]||x;z.ns&&re.ns!==z.ns&&Object.keys(z.ns).forEach(function(j){N(x,"onopennamespace",{prefix:j,uri:z.ns[j]})});for(var B=0,D=x.attribList.length;B<D;B++){var c=x.attribList[B],V=c[0],C=c[1],i=Z(V,!0),o=i.prefix,d=i.local,L=o===""?"":z.ns[o]||"",G={name:V,value:C,prefix:o,local:d,uri:L};o&&o!=="xmlns"&&!L&&($(x,"Unbound namespace prefix: "+JSON.stringify(o)),G.uri=o),x.tag.attributes[V]=G,N(x,"onattribute",G)}x.attribList.length=0}x.tag.isSelfClosing=!!f,x.sawRoot=!0,x.tags.push(x.tag),N(x,"onopentag",x.tag),f||(!x.noscript&&x.tagName.toLowerCase()==="script"?x.state=I.SCRIPT:x.state=I.TEXT,x.tag=null,x.tagName=""),x.attribName=x.attribValue="",x.attribList.length=0}function F(x){if(!x.tagName){$(x,"Weird empty close tag."),x.textNode+="</>",x.state=I.TEXT;return}if(x.script){if(x.tagName!=="script"){x.script+="</"+x.tagName+">",x.tagName="",x.state=I.SCRIPT;return}N(x,"onscript",x.script),x.script=""}var f=x.tags.length,z=x.tagName;x.strict||(z=z[x.looseCase]());for(var M=z;f--&&x.tags[f].name!==M;)$(x,"Unexpected close tag");if(f<0){$(x,"Unmatched closing tag: "+x.tagName),x.textNode+="</"+x.tagName+">",x.state=I.TEXT;return}x.tagName=z;for(var re=x.tags.length;re-- >f;){var B=x.tag=x.tags.pop();x.tagName=x.tag.name,N(x,"onclosetag",x.tagName);var D={};for(var c in B.ns)D[c]=B.ns[c];var V=x.tags[x.tags.length-1]||x;x.opt.xmlns&&B.ns!==V.ns&&Object.keys(B.ns).forEach(function(C){var i=B.ns[C];N(x,"onclosenamespace",{prefix:C,uri:i})})}f===0&&(x.closedRoot=!0),x.tagName=x.attribValue=x.attribName="",x.attribList.length=0,x.state=I.TEXT}function X(x){var f=x.entity,z=f.toLowerCase(),M,re="";return x.ENTITIES[f]?x.ENTITIES[f]:x.ENTITIES[z]?x.ENTITIES[z]:(f=z,f.charAt(0)==="#"&&(f.charAt(1)==="x"?(f=f.slice(2),M=parseInt(f,16),re=M.toString(16)):(f=f.slice(1),M=parseInt(f,10),re=M.toString(10))),f=f.replace(/^0+/,""),isNaN(M)||re.toLowerCase()!==f?($(x,"Invalid character entity"),"&"+x.entity+";"):String.fromCodePoint(M))}function Y(x,f){f==="<"?(x.state=I.OPEN_WAKA,x.startTagPosition=x.position):R(f)||($(x,"Non-whitespace before first tag."),x.textNode=f,x.state=I.TEXT)}function te(x,f){var z="";return f<x.length&&(z=x.charAt(f)),z}function pe(x){var f=this;if(this.error)throw this.error;if(f.closed)return H(f,"Cannot write after close. Assign an onready handler.");if(x===null)return J(f);typeof x=="object"&&(x=x.toString());for(var z=0,M="";M=te(x,z++),f.c=M,!!M;)switch(f.trackPosition&&(f.position++,M===`
22`?(f.line++,f.column=0):f.column++),f.state){case I.BEGIN:if(f.state=I.BEGIN_WHITESPACE,M==="\uFEFF")continue;Y(f,M);continue;case I.BEGIN_WHITESPACE:Y(f,M);continue;case I.TEXT:if(f.sawRoot&&!f.closedRoot){for(var re=z-1;M&&M!=="<"&&M!=="&";)M=te(x,z++),M&&f.trackPosition&&(f.position++,M===`
23`?(f.line++,f.column=0):f.column++);f.textNode+=x.substring(re,z-1)}M==="<"&&!(f.sawRoot&&f.closedRoot&&!f.strict)?(f.state=I.OPEN_WAKA,f.startTagPosition=f.position):(!R(M)&&(!f.sawRoot||f.closedRoot)&&$(f,"Text data outside of root node."),M==="&"?f.state=I.TEXT_ENTITY:f.textNode+=M);continue;case I.SCRIPT:M==="<"?f.state=I.SCRIPT_ENDING:f.script+=M;continue;case I.SCRIPT_ENDING:M==="/"?f.state=I.CLOSE_TAG:(f.script+="<"+M,f.state=I.SCRIPT);continue;case I.OPEN_WAKA:if(M==="!")f.state=I.SGML_DECL,f.sgmlDecl="";else if(!R(M))if(O(A,M))f.state=I.OPEN_TAG,f.tagName=M;else if(M==="/")f.state=I.CLOSE_TAG,f.tagName="";else if(M==="?")f.state=I.PROC_INST,f.procInstName=f.procInstBody="";else{if($(f,"Unencoded <"),f.startTagPosition+1<f.position){var B=f.position-f.startTagPosition;M=new Array(B).join(" ")+M}f.textNode+="<"+M,f.state=I.TEXT}continue;case I.SGML_DECL:(f.sgmlDecl+M).toUpperCase()===y?(N(f,"onopencdata"),f.state=I.CDATA,f.sgmlDecl="",f.cdata=""):f.sgmlDecl+M==="--"?(f.state=I.COMMENT,f.comment="",f.sgmlDecl=""):(f.sgmlDecl+M).toUpperCase()===E?(f.state=I.DOCTYPE,(f.doctype||f.sawRoot)&&$(f,"Inappropriately located doctype declaration"),f.doctype="",f.sgmlDecl=""):M===">"?(N(f,"onsgmldeclaration",f.sgmlDecl),f.sgmlDecl="",f.state=I.TEXT):(S(M)&&(f.state=I.SGML_DECL_QUOTED),f.sgmlDecl+=M);continue;case I.SGML_DECL_QUOTED:M===f.q&&(f.state=I.SGML_DECL,f.q=""),f.sgmlDecl+=M;continue;case I.DOCTYPE:M===">"?(f.state=I.TEXT,N(f,"ondoctype",f.doctype),f.doctype=!0):(f.doctype+=M,M==="["?f.state=I.DOCTYPE_DTD:S(M)&&(f.state=I.DOCTYPE_QUOTED,f.q=M));continue;case I.DOCTYPE_QUOTED:f.doctype+=M,M===f.q&&(f.q="",f.state=I.DOCTYPE);continue;case I.DOCTYPE_DTD:f.doctype+=M,M==="]"?f.state=I.DOCTYPE:S(M)&&(f.state=I.DOCTYPE_DTD_QUOTED,f.q=M);continue;case I.DOCTYPE_DTD_QUOTED:f.doctype+=M,M===f.q&&(f.state=I.DOCTYPE_DTD,f.q="");continue;case I.COMMENT:M==="-"?f.state=I.COMMENT_ENDING:f.comment+=M;continue;case I.COMMENT_ENDING:M==="-"?(f.state=I.COMMENT_ENDED,f.comment=k(f.opt,f.comment),f.comment&&N(f,"oncomment",f.comment),f.comment=""):(f.comment+="-"+M,f.state=I.COMMENT);continue;case I.COMMENT_ENDED:M!==">"?($(f,"Malformed comment"),f.comment+="--"+M,f.state=I.COMMENT):f.state=I.TEXT;continue;case I.CDATA:M==="]"?f.state=I.CDATA_ENDING:f.cdata+=M;continue;case I.CDATA_ENDING:M==="]"?f.state=I.CDATA_ENDING_2:(f.cdata+="]"+M,f.state=I.CDATA);continue;case I.CDATA_ENDING_2:M===">"?(f.cdata&&N(f,"oncdata",f.cdata),N(f,"onclosecdata"),f.cdata="",f.state=I.TEXT):M==="]"?f.cdata+="]":(f.cdata+="]]"+M,f.state=I.CDATA);continue;case I.PROC_INST:M==="?"?f.state=I.PROC_INST_ENDING:R(M)?f.state=I.PROC_INST_BODY:f.procInstName+=M;continue;case I.PROC_INST_BODY:if(!f.procInstBody&&R(M))continue;M==="?"?f.state=I.PROC_INST_ENDING:f.procInstBody+=M;continue;case I.PROC_INST_ENDING:M===">"?(N(f,"onprocessinginstruction",{name:f.procInstName,body:f.procInstBody}),f.procInstName=f.procInstBody="",f.state=I.TEXT):(f.procInstBody+="?"+M,f.state=I.PROC_INST_BODY);continue;case I.OPEN_TAG:O(P,M)?f.tagName+=M:(oe(f),M===">"?q(f):M==="/"?f.state=I.OPEN_TAG_SLASH:(R(M)||$(f,"Invalid character in tag name"),f.state=I.ATTRIB));continue;case I.OPEN_TAG_SLASH:M===">"?(q(f,!0),F(f)):($(f,"Forward-slash in opening tag not followed by >"),f.state=I.ATTRIB);continue;case I.ATTRIB:if(R(M))continue;M===">"?q(f):M==="/"?f.state=I.OPEN_TAG_SLASH:O(A,M)?(f.attribName=M,f.attribValue="",f.state=I.ATTRIB_NAME):$(f,"Invalid attribute name");continue;case I.ATTRIB_NAME:M==="="?f.state=I.ATTRIB_VALUE:M===">"?($(f,"Attribute without value"),f.attribValue=f.attribName,ee(f),q(f)):R(M)?f.state=I.ATTRIB_NAME_SAW_WHITE:O(P,M)?f.attribName+=M:$(f,"Invalid attribute name");continue;case I.ATTRIB_NAME_SAW_WHITE:if(M==="=")f.state=I.ATTRIB_VALUE;else{if(R(M))continue;$(f,"Attribute without value"),f.tag.attributes[f.attribName]="",f.attribValue="",N(f,"onattribute",{name:f.attribName,value:""}),f.attribName="",M===">"?q(f):O(A,M)?(f.attribName=M,f.state=I.ATTRIB_NAME):($(f,"Invalid attribute name"),f.state=I.ATTRIB)}continue;case I.ATTRIB_VALUE:if(R(M))continue;S(M)?(f.q=M,f.state=I.ATTRIB_VALUE_QUOTED):($(f,"Unquoted attribute value"),f.state=I.ATTRIB_VALUE_UNQUOTED,f.attribValue=M);continue;case I.ATTRIB_VALUE_QUOTED:if(M!==f.q){M==="&"?f.state=I.ATTRIB_VALUE_ENTITY_Q:f.attribValue+=M;continue}ee(f),f.q="",f.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:R(M)?f.state=I.ATTRIB:M===">"?q(f):M==="/"?f.state=I.OPEN_TAG_SLASH:O(A,M)?($(f,"No whitespace between attributes"),f.attribName=M,f.attribValue="",f.state=I.ATTRIB_NAME):$(f,"Invalid attribute name");continue;case I.ATTRIB_VALUE_UNQUOTED:if(!m(M)){M==="&"?f.state=I.ATTRIB_VALUE_ENTITY_U:f.attribValue+=M;continue}ee(f),M===">"?q(f):f.state=I.ATTRIB;continue;case I.CLOSE_TAG:if(f.tagName)M===">"?F(f):O(P,M)?f.tagName+=M:f.script?(f.script+="</"+f.tagName,f.tagName="",f.state=I.SCRIPT):(R(M)||$(f,"Invalid tagname in closing tag"),f.state=I.CLOSE_TAG_SAW_WHITE);else{if(R(M))continue;U(A,M)?f.script?(f.script+="</"+M,f.state=I.SCRIPT):$(f,"Invalid tagname in closing tag."):f.tagName=M}continue;case I.CLOSE_TAG_SAW_WHITE:if(R(M))continue;M===">"?F(f):$(f,"Invalid characters in closing tag");continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var D,c;switch(f.state){case I.TEXT_ENTITY:D=I.TEXT,c="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:D=I.ATTRIB_VALUE_QUOTED,c="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:D=I.ATTRIB_VALUE_UNQUOTED,c="attribValue";break}M===";"?(f[c]+=X(f),f.entity="",f.state=D):O(f.entity.length?T:b,M)?f.entity+=M:($(f,"Invalid character in entity name"),f[c]+="&"+f.entity+M,f.entity="",f.state=D);continue;default:throw new Error(f,"Unknown state: "+f.state)}return f.position>=f.bufferCheckPosition&&l(f),f}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var x=String.fromCharCode,f=Math.floor,z=function(){var M=16384,re=[],B,D,c=-1,V=arguments.length;if(!V)return"";for(var C="";++c<V;){var i=Number(arguments[c]);if(!isFinite(i)||i<0||i>1114111||f(i)!==i)throw RangeError("Invalid code point: "+i);i<=65535?re.push(i):(i-=65536,B=(i>>10)+55296,D=i%1024+56320,re.push(B,D)),(c+1===V||re.length>M)&&(C+=x.apply(null,re),re.length=0)}return C};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:z,configurable:!0,writable:!0}):String.fromCodePoint=z}()})(typeof e>"u"?e.sax={}:e)}),Or=le((e,t)=>{t.exports={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}}}),Fr=le((e,t)=>{var r=Or().isArray;t.exports={copyOptions:function(u){var l,a={};for(l in u)u.hasOwnProperty(l)&&(a[l]=u[l]);return a},ensureFlagExists:function(u,l){(!(u in l)||typeof l[u]!="boolean")&&(l[u]=!1)},ensureSpacesExists:function(u){(!("spaces"in u)||typeof u.spaces!="number"&&typeof u.spaces!="string")&&(u.spaces=0)},ensureAlwaysArrayExists:function(u){(!("alwaysArray"in u)||typeof u.alwaysArray!="boolean"&&!r(u.alwaysArray))&&(u.alwaysArray=!1)},ensureKeyExists:function(u,l){(!(u+"Key"in l)||typeof l[u+"Key"]!="string")&&(l[u+"Key"]=l.compact?"_"+u:u)},checkFnExists:function(u,l){return u+"Fn"in l}}}),Dn=le((e,t)=>{var r=ka(),u=Fr(),l=Or().isArray,a,s;function n(T){return a=u.copyOptions(T),u.ensureFlagExists("ignoreDeclaration",a),u.ensureFlagExists("ignoreInstruction",a),u.ensureFlagExists("ignoreAttributes",a),u.ensureFlagExists("ignoreText",a),u.ensureFlagExists("ignoreComment",a),u.ensureFlagExists("ignoreCdata",a),u.ensureFlagExists("ignoreDoctype",a),u.ensureFlagExists("compact",a),u.ensureFlagExists("alwaysChildren",a),u.ensureFlagExists("addParent",a),u.ensureFlagExists("trim",a),u.ensureFlagExists("nativeType",a),u.ensureFlagExists("nativeTypeAttributes",a),u.ensureFlagExists("sanitize",a),u.ensureFlagExists("instructionHasAttributes",a),u.ensureFlagExists("captureSpacesBetweenElements",a),u.ensureAlwaysArrayExists(a),u.ensureKeyExists("declaration",a),u.ensureKeyExists("instruction",a),u.ensureKeyExists("attributes",a),u.ensureKeyExists("text",a),u.ensureKeyExists("comment",a),u.ensureKeyExists("cdata",a),u.ensureKeyExists("doctype",a),u.ensureKeyExists("type",a),u.ensureKeyExists("name",a),u.ensureKeyExists("elements",a),u.ensureKeyExists("parent",a),u.checkFnExists("doctype",a),u.checkFnExists("instruction",a),u.checkFnExists("cdata",a),u.checkFnExists("comment",a),u.checkFnExists("text",a),u.checkFnExists("instructionName",a),u.checkFnExists("elementName",a),u.checkFnExists("attributeName",a),u.checkFnExists("attributeValue",a),u.checkFnExists("attributes",a),a}function h(T){var R=Number(T);if(!isNaN(R))return R;var S=T.toLowerCase();return S==="true"?!0:S==="false"?!1:T}function w(T,R){var S;if(a.compact){if(!s[a[T+"Key"]]&&(l(a.alwaysArray)?a.alwaysArray.indexOf(a[T+"Key"])!==-1:a.alwaysArray)&&(s[a[T+"Key"]]=[]),s[a[T+"Key"]]&&!l(s[a[T+"Key"]])&&(s[a[T+"Key"]]=[s[a[T+"Key"]]]),T+"Fn"in a&&typeof R=="string"&&(R=a[T+"Fn"](R,s)),T==="instruction"&&("instructionFn"in a||"instructionNameFn"in a)){for(S in R)if(R.hasOwnProperty(S))if("instructionFn"in a)R[S]=a.instructionFn(R[S],S,s);else{var m=R[S];delete R[S],R[a.instructionNameFn(S,m,s)]=m}}l(s[a[T+"Key"]])?s[a[T+"Key"]].push(R):s[a[T+"Key"]]=R}else{s[a.elementsKey]||(s[a.elementsKey]=[]);var O={};if(O[a.typeKey]=T,T==="instruction"){for(S in R)if(R.hasOwnProperty(S))break;O[a.nameKey]="instructionNameFn"in a?a.instructionNameFn(S,R,s):S,a.instructionHasAttributes?(O[a.attributesKey]=R[S][a.attributesKey],"instructionFn"in a&&(O[a.attributesKey]=a.instructionFn(O[a.attributesKey],S,s))):("instructionFn"in a&&(R[S]=a.instructionFn(R[S],S,s)),O[a.instructionKey]=R[S])}else T+"Fn"in a&&(R=a[T+"Fn"](R,s)),O[a[T+"Key"]]=R;a.addParent&&(O[a.parentKey]=s),s[a.elementsKey].push(O)}}function _(T){if("attributesFn"in a&&T&&(T=a.attributesFn(T,s)),(a.trim||"attributeValueFn"in a||"attributeNameFn"in a||a.nativeTypeAttributes)&&T){var R;for(R in T)if(T.hasOwnProperty(R)&&(a.trim&&(T[R]=T[R].trim()),a.nativeTypeAttributes&&(T[R]=h(T[R])),"attributeValueFn"in a&&(T[R]=a.attributeValueFn(T[R],R,s)),"attributeNameFn"in a)){var S=T[R];delete T[R],T[a.attributeNameFn(R,T[R],s)]=S}}return T}function y(T){var R={};if(T.body&&(T.name.toLowerCase()==="xml"||a.instructionHasAttributes)){for(var S=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,m;(m=S.exec(T.body))!==null;)R[m[1]]=m[2]||m[3]||m[4];R=_(R)}if(T.name.toLowerCase()==="xml"){if(a.ignoreDeclaration)return;s[a.declarationKey]={},Object.keys(R).length&&(s[a.declarationKey][a.attributesKey]=R),a.addParent&&(s[a.declarationKey][a.parentKey]=s)}else{if(a.ignoreInstruction)return;a.trim&&(T.body=T.body.trim());var O={};a.instructionHasAttributes&&Object.keys(R).length?(O[T.name]={},O[T.name][a.attributesKey]=R):O[T.name]=T.body,w("instruction",O)}}function E(T,R){var S;if(typeof T=="object"&&(R=T.attributes,T=T.name),R=_(R),"elementNameFn"in a&&(T=a.elementNameFn(T,s)),a.compact){if(S={},!a.ignoreAttributes&&R&&Object.keys(R).length){S[a.attributesKey]={};var m;for(m in R)R.hasOwnProperty(m)&&(S[a.attributesKey][m]=R[m])}!(T in s)&&(l(a.alwaysArray)?a.alwaysArray.indexOf(T)!==-1:a.alwaysArray)&&(s[T]=[]),s[T]&&!l(s[T])&&(s[T]=[s[T]]),l(s[T])?s[T].push(S):s[T]=S}else s[a.elementsKey]||(s[a.elementsKey]=[]),S={},S[a.typeKey]="element",S[a.nameKey]=T,!a.ignoreAttributes&&R&&Object.keys(R).length&&(S[a.attributesKey]=R),a.alwaysChildren&&(S[a.elementsKey]=[]),s[a.elementsKey].push(S);S[a.parentKey]=s,s=S}function g(T){a.ignoreText||!T.trim()&&!a.captureSpacesBetweenElements||(a.trim&&(T=T.trim()),a.nativeType&&(T=h(T)),a.sanitize&&(T=T.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),w("text",T))}function p(T){a.ignoreComment||(a.trim&&(T=T.trim()),w("comment",T))}function v(T){var R=s[a.parentKey];a.addParent||delete s[a.parentKey],s=R}function A(T){a.ignoreCdata||(a.trim&&(T=T.trim()),w("cdata",T))}function P(T){a.ignoreDoctype||(T=T.replace(/^ /,""),a.trim&&(T=T.trim()),w("doctype",T))}function b(T){T.note=T}t.exports=function(T,R){var S=r.parser(!0,{}),m={};if(s=m,a=n(R),S.opt={strictEntities:!0},S.onopentag=E,S.ontext=g,S.oncomment=p,S.onclosetag=v,S.onerror=b,S.oncdata=A,S.ondoctype=P,S.onprocessinginstruction=y,S.write(T).close(),m[a.elementsKey]){var O=m[a.elementsKey];delete m[a.elementsKey],m[a.elementsKey]=O,delete m.text}return m}}),Ra=le((e,t)=>{var r=Fr(),u=Dn();function l(a){var s=r.copyOptions(a);return r.ensureSpacesExists(s),s}t.exports=function(a,s){var n=l(s),h=u(a,n),w,_="compact"in n&&n.compact?"_parent":"parent";return"addParent"in n&&n.addParent?w=JSON.stringify(h,function(y,E){return y===_?"_":E},n.spaces):w=JSON.stringify(h,null,n.spaces),w.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}}),Ln=le((e,t)=>{var r=Fr(),u=Or().isArray,l,a;function s(S){var m=r.copyOptions(S);return r.ensureFlagExists("ignoreDeclaration",m),r.ensureFlagExists("ignoreInstruction",m),r.ensureFlagExists("ignoreAttributes",m),r.ensureFlagExists("ignoreText",m),r.ensureFlagExists("ignoreComment",m),r.ensureFlagExists("ignoreCdata",m),r.ensureFlagExists("ignoreDoctype",m),r.ensureFlagExists("compact",m),r.ensureFlagExists("indentText",m),r.ensureFlagExists("indentCdata",m),r.ensureFlagExists("indentAttributes",m),r.ensureFlagExists("indentInstruction",m),r.ensureFlagExists("fullTagEmptyElement",m),r.ensureFlagExists("noQuotesForNativeAttributes",m),r.ensureSpacesExists(m),typeof m.spaces=="number"&&(m.spaces=Array(m.spaces+1).join(" ")),r.ensureKeyExists("declaration",m),r.ensureKeyExists("instruction",m),r.ensureKeyExists("attributes",m),r.ensureKeyExists("text",m),r.ensureKeyExists("comment",m),r.ensureKeyExists("cdata",m),r.ensureKeyExists("doctype",m),r.ensureKeyExists("type",m),r.ensureKeyExists("name",m),r.ensureKeyExists("elements",m),r.checkFnExists("doctype",m),r.checkFnExists("instruction",m),r.checkFnExists("cdata",m),r.checkFnExists("comment",m),r.checkFnExists("text",m),r.checkFnExists("instructionName",m),r.checkFnExists("elementName",m),r.checkFnExists("attributeName",m),r.checkFnExists("attributeValue",m),r.checkFnExists("attributes",m),r.checkFnExists("fullTagEmptyElement",m),m}function n(S,m,O){return(!O&&S.spaces?`
24`:"")+Array(m+1).join(S.spaces)}function h(S,m,O){if(m.ignoreAttributes)return"";"attributesFn"in m&&(S=m.attributesFn(S,a,l));var U,I,K,Q,N=[];for(U in S)S.hasOwnProperty(U)&&S[U]!==null&&S[U]!==void 0&&(Q=m.noQuotesForNativeAttributes&&typeof S[U]!="string"?"":'"',I=""+S[U],I=I.replace(/"/g,"&quot;"),K="attributeNameFn"in m?m.attributeNameFn(U,I,a,l):U,N.push(m.spaces&&m.indentAttributes?n(m,O+1,!1):" "),N.push(K+"="+Q+("attributeValueFn"in m?m.attributeValueFn(I,U,a,l):I)+Q));return S&&Object.keys(S).length&&m.spaces&&m.indentAttributes&&N.push(n(m,O,!1)),N.join("")}function w(S,m,O){return l=S,a="xml",m.ignoreDeclaration?"":"<?xml"+h(S[m.attributesKey],m,O)+"?>"}function _(S,m,O){if(m.ignoreInstruction)return"";var U;for(U in S)if(S.hasOwnProperty(U))break;var I="instructionNameFn"in m?m.instructionNameFn(U,S[U],a,l):U;if(typeof S[U]=="object")return l=S,a=I,"<?"+I+h(S[U][m.attributesKey],m,O)+"?>";var K=S[U]?S[U]:"";return"instructionFn"in m&&(K=m.instructionFn(K,U,a,l)),"<?"+I+(K?" "+K:"")+"?>"}function y(S,m){return m.ignoreComment?"":"<!--"+("commentFn"in m?m.commentFn(S,a,l):S)+"-->"}function E(S,m){return m.ignoreCdata?"":"<![CDATA["+("cdataFn"in m?m.cdataFn(S,a,l):S.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function g(S,m){return m.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in m?m.doctypeFn(S,a,l):S)+">"}function p(S,m){return m.ignoreText?"":(S=""+S,S=S.replace(/&amp;/g,"&"),S=S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in m?m.textFn(S,a,l):S)}function v(S,m){var O;if(S.elements&&S.elements.length)for(O=0;O<S.elements.length;++O)switch(S.elements[O][m.typeKey]){case"text":if(m.indentText)return!0;break;case"cdata":if(m.indentCdata)return!0;break;case"instruction":if(m.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function A(S,m,O){l=S,a=S.name;var U=[],I="elementNameFn"in m?m.elementNameFn(S.name,S):S.name;U.push("<"+I),S[m.attributesKey]&&U.push(h(S[m.attributesKey],m,O));var K=S[m.elementsKey]&&S[m.elementsKey].length||S[m.attributesKey]&&S[m.attributesKey]["xml:space"]==="preserve";return K||("fullTagEmptyElementFn"in m?K=m.fullTagEmptyElementFn(S.name,S):K=m.fullTagEmptyElement),K?(U.push(">"),S[m.elementsKey]&&S[m.elementsKey].length&&(U.push(P(S[m.elementsKey],m,O+1)),l=S,a=S.name),U.push(m.spaces&&v(S,m)?`
25`+Array(O+1).join(m.spaces):""),U.push("</"+I+">")):U.push("/>"),U.join("")}function P(S,m,O,U){return S.reduce(function(I,K){var Q=n(m,O,U&&!I
25);switch(K.type){case"element":return I+Q+A(K,m,O);case"comment":return I+Q+y(K[m.commentKey],m);case"doctype":return I+Q+g(K[m.doctypeKey],m);case"cdata":return I+(m.indentCdata?Q:"")+E(K[m.cdataKey],m);case"text":return I+(m.indentText?Q:"")+p(K[m.textKey],m);case"instruction":var N={};return N[K[m.nameKey]]=K[m.attributesKey]?K:K[m.instructionKey],I+(m.indentInstruction?Q:"")+_(N,m,O)}},"")}function b(S,m,O){var U;for(U in S)if(S.hasOwnProperty(U))switch(U){case m.parentKey:case m.attributesKey:break;case m.textKey:if(m.indentText||O)return!0;break;case m.cdataKey:if(m.indentCdata||O)return!0;break;case m.instructionKey:if(m.indentInstruction||O)return!0;break;case m.doctypeKey:case m.commentKey:return!0;default:return!0}return!1}function T(S,m,O,U,I){l=S,a=m;var K="elementNameFn"in O?O.elementNameFn(m,S):m;if(typeof S>"u"||S===null||S==="")return"fullTagEmptyElementFn"in O&&O.fullTagEmptyElementFn(m,S)||O.fullTagEmptyElement?"<"+K+"></"+K+">":"<"+K+"/>";var Q=[];if(m){if(Q.push("<"+K),typeof S!="object")return Q.push(">"+p(S,O)+"</"+K+">"),Q.join("");S[O.attributesKey]&&Q.push(h(S[O.attributesKey],O,U));var N=b(S,O,!0)||S[O.attributesKey]&&S[O.attributesKey]["xml:space"]==="preserve";if(N||("fullTagEmptyElementFn"in O?N=O.fullTagEmptyElementFn(m,S):N=O.fullTagEmptyElement),N)Q.push(">");else return Q.push("/>"),Q.join("")}return Q.push(R(S,O,U+1,!1)),l=S,a=m,m&&Q.push((I?n(O,U,!1):"")+"</"+K+">"),Q.join("")}function R(S,m,O,U){var I,K,Q,N=[];for(K in S)if(S.hasOwnProperty(K))for(Q=u(S[K])?S[K]:[S[K]],I=0;I<Q.length;++I){switch(K){case m.declarationKey:N.push(w(Q[I],m,O));break;case m.instructionKey:N.push((m.indentInstruction?n(m,O,U):"")+_(Q[I],m,O));break;case m.attributesKey:case m.parentKey:break;case m.textKey:N.push((m.indentText?n(m,O,U):"")+p(Q[I],m));break;case m.cdataKey:N.push((m.indentCdata?n(m,O,U):"")+E(Q[I],m));break;case m.doctypeKey:N.push(n(m,O,U)+g(Q[I],m));break;case m.commentKey:N.push(n(m,O,U)+y(Q[I],m));break;default:N.push(n(m,O,U)+T(Q[I],K,m,O,b(Q[I],m)))}U=U&&!N.length}return N.join("")}t.exports=function(S,m){m=s(m);var O=[];return l=S,a="_root_",m.compact?O.push(R(S,m,0,!0)):(S[m.declarationKey]&&O.push(w(S[m.declarationKey],m,0)),S[m.elementsKey]&&S[m.elementsKey].length&&O.push(P(S[m.elementsKey],m,0,!O.length))),O.join("")}}),Ca=le((e,t)=>{var r=Ln();t.exports=function(u,l){u instanceof Buffer&&(u=u.toString());var a=null;if(typeof u=="string")try{a=JSON.parse(u)}catch{throw new Error("The JSON structure is invalid")}else a=u;return r(a,l)}}),Mn=le((e,t)=>{t.exports={xml2js:Dn(),xml2json:Ra(),js2xml:Ln(),json2xml:Ca()}})(),Br=e=>{switch(e.type){case void 0:case"element":const t=new Ia(e.name,e.attributes),r=e.elements||[];for(const u of r){const l=Br(u);l!==void 0&&t.push(l)}return t;case"text":return e.text;default:return}},Pa=class extends _e{},Ia=class extends ce{static fromXmlString(e){return Br((0,Mn.xml2js)(e,{compact:!1}))}constructor(e,t){super(e),t&&this.root.push(new Pa(t))}push(e){this.root.push(e)}},Na=class extends ce{constructor(e){super(""),ie(this,"_attr",void 0),this._attr=e}prepForXml(e){return{_attr:this._attr}}},Un=class extends ce{constructor(e,t){super(e),t&&(this.root=t.root)}},Oe=e=>{if(isNaN(e))throw new Error(`Invalid value '${e}' specified. Must be an integer.`);return Math.floor(e)},ar=e=>{const t=Oe(e);if(t<0)throw new Error(`Invalid value '${e}' specified. Must be a positive integer.`);return t},zn=(e,t)=>{const r=t*2;if(e.length!==r||isNaN(+`0x${e}`))throw new Error(`Invalid hex value '${e}'. Expected ${r} digit hex value`);return e},$r=e=>zn(e,1),Dr=e=>{const t=e.slice(-2),r=e.substring(0,e.length-2);return`${Number(r)}${t}`},jn=e=>{const t=Dr(e);if(parseFloat(t)<0)throw new Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},bt=e=>e==="auto"?e:zn(e.charAt(0)==="#"?e.substring(1):e,3),Je=e=>typeof e=="string"?Dr(e):Oe(e),Oa=e=>typeof e=="string"?jn(e):ar(e),Ne=e=>typeof e=="string"?jn(e):ar(e),Fa=e=>{const t=e.substring(0,e.length-1);return`${Number(t)}%`},Wn=e=>typeof e=="number"?Oe(e):e.slice(-1)==="%"?Fa(e):Dr(e),Ba=ar,Da=ar,La=e=>e.toISOString(),ue=class extends ce{constructor(e,t=!0){super(e),t!==!0&&this.root.push(new Fe({val:t}))}},cr=class extends ce{constructor(e,t){super(e),this.root.push(new Fe({val:Oa(t)}))}},Ma=class extends ce{},ht=class extends ce{constructor(e,t){super(e),this.root.push(new Fe({val:t}))}},Pt=(e,t)=>new ye({name:e,attributes:{value:{key:"w:val",value:t}}}),Bt=class extends ce{constructor(e,t){super(e),this.root.push(new Fe({val:t}))}},ot=class extends ce{constructor(e,t){super(e),this.root.push(t)}},ye=class extends ce{constructor({name:e,attributes:t,children:r}){super(e),t&&this.root.push(new Bi(t)),r&&this.root.push(...r)}}
25,We={START:"start",CENTER:"center",LEFT:"left"},Hn=e=>new ye({name:"w:jc",attributes:{val:{key:"w:val",value:e}}}),Re=(e,{color:t,size:r,space:u,style:l})=>new ye({name:e,attributes:{style:{key:"w:val",value:l},color:{key:"w:color",value:t===void 0?void 0:bt(t)},size:{key:"w:sz",value:r===void 0?void 0:Ba(r)},space:{key:"w:space",value:u===void 0?void 0:Da(u)}}}),Lr={SINGLE:"single",NONE:"none"},Ua=class extends tt{constructor(e){super("w:pBdr"),e.top&&this.root.push(Re("w:top",e.top)),e.bottom&&this.root.push(Re("w:bottom",e.bottom)),e.left&&this.root.push(Re("w:left",e.left)),e.right&&this.root.push(Re("w:right",e.right)),e.between&&this.root.push(Re("w:between",e.between))}},za=class extends ce{constructor(){super("w:pBdr");const e=Re("w:bottom",{color:"auto",space:1,style:Lr.SINGLE,size:6});this.root.push(e)}},ja=({start:e,end:t,left:r,right:u,hanging:l,firstLine:a,firstLineChars:s})=>new ye({name:"w:ind",attributes:{start:{key:"w:start",value:e===void 0?void 0:Je(e)},end:{key:"w:end",value:t===void 0?void 0:Je(t)},left:{key:"w:left",value:r===void 0?void 0:Je(r)},right:{key:"w:right",value:u===void 0?void 0:Je(u)},hanging:{key:"w:hanging",value:l===void 0?void 0:Ne(l)},firstLine:{key:"w:firstLine",value:a===void 0?void 0:Ne(a)},firstLineChars:{key:"w:firstLineChars",value:s===void 0?void 0:Oe(s)}}}),Wa=()=>new ye({name:"w:br"}),Mr={BEGIN:"begin",END:"end",SEPARATE:"separate"},Ur=(e,t)=>
25new ye({name:"w:fldChar",attributes:{type:{key:"w:fldCharType",value:e},dirty:{key:"w:dirty",value:t}}}),$t=e=>Ur(Mr.BEGIN,e),Xt=e=>Ur(Mr.SEPARATE,e),Zt=e=>Ur(Mr.END,e),_t={DEFAULT:"default",PRESERVE:"preserve"},xt=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{space:"xml:space"})}},Ha=class extends ce{constructor(){super("w:instrText"),this.root.push(new xt({space:_t.PRESERVE})),this.root.push("PAGE")}},Ga=class extends ce{constructor(){super("w:instrText"),this.root.push(new xt({space:_t.PRESERVE})),this.root.push("NUMPAGES")}},Va=class extends ce{constructor(){super("w:instrText"),this.root.push(new xt({space:_t.PRESERVE})),this.root.push("SECTIONPAGES")}},Ka=class extends ce{constructor(){super("w:instrText"),this.root.push(new xt({space:_t.PRESERVE})),this.root.push("SECTION")}},or=({fill:e,color:t,type:r})=>new ye({name:"w:shd",attributes:{fill:{key:"w:fill",value:e===void 0?void 0:bt(e)},color:{key:"w:color",value:t===void 0?void 0:bt(t)},type:{key:"w:val",value:r}}}),ze=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}},qa=class extends ce{constructor(e){super("w:del"),this.root.push(new ze({id:e.id,author:e.author,date:e.date}))}},$a=class extends ce{constructor(e){super("w:ins"),this.root.push(new ze({id:e.id,author:e.author,date:e.date}))}},Xa={DOT:"dot"},Za=(e=Xa.DOT)=>new ye({name:"w:em",attributes:{val:{key:"w:val",value:e}}}),Ya=class extends ce{constructor(e){super("w:spacing"),this.root.push(new Fe({val:Je(e)}))}},Ja=class extends ce{constructor(e){super("w:color"),this.root.push(new Fe({val:bt(e)}))}},Qa=class extends ce{constructor(e){super("w:highlight"),this.root.push(new Fe({val:e}))}},eo=class extends ce{constructor(e){super("w:highlightCs"),this.root.push(new Fe({val:e}))}},to=e=>new ye({name:"w:lang",attributes:{value:{key:"w:val",value:e.value},eastAsia:{key:"w:eastAsia",value:e.eastAsia},bidirectional:{key:"w:bidi",value:e.bidirectional}}}),hr=(e,t)=>{if(typeof e=="string"){const u=e;return new ye({name:"w:rFonts",attributes:{ascii:{key:"w:ascii",value:u},cs:{key:"w:cs",value:u},eastAsia:{key:"w:eastAsia",value:u},hAnsi:{key:"w:hAnsi",value:u},hint:{key:"w:hint",value:t}}})}const r=e;return new ye({name:"w:rFonts",attributes:{ascii:{key:"w:ascii",value:r.ascii},cs:{key:"w:cs",value:r.cs},eastAsia:{key:"w:eastAsia",value:r.eastAsia},hAnsi:{key:"w:hAnsi",value:r.hAnsi},hint:{key:"w:hint",value:r.hint}}})},Gn=e=>new ye({name:"w:vertAlign",attributes:{val:{key:"w:val",value:e}}}),ro=()=>Gn("superscript"),no=()=>Gn("subscript"),Vn={SINGLE:"single"},io=(e=Vn.SINGLE,t)=>new ye({name:"w:u",attributes:{val:{key:"w:val",value:e},color:{key:"w:color",value:t===void 0?void 0:bt(t)}}}),pt=class extends tt{constructor(e){if(super("w:rPr"),!e)return;if(e.style&&this.push(new ht("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(hr(e.font)):"name"in e.font?this.push(hr(e.font.name,e.font.hint)):this.push(hr(e.font))),e.bold!==void 0&&this.push(new ue("w:b",e.bold)),e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript){var t;this.push(new ue("w:bCs",(t=e.boldComplexScript)!==null&&t!==void 0?t:e.bold))}if(e.italics!==void 0&&this.push(new ue("w:i",e.italics)),e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript){var r;this.push(new ue("w:iCs",(r=e.italicsComplexScript)!==null&&r!==void 0?r:e.italics))}e.smallCaps!==void 0?this.push(new ue("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new ue("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new ue("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new ue("w:dstrike",e.doubleStrike)),e.emboss!==void 0&&this.push(new ue("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new ue("w:imprint",e.imprint)),e.noProof!==void 0&&this.push(new ue("w:noProof",e.noProof)),e.snapToGrid!==void 0&&this.push(new ue("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new ue("w:vanish",e.vanish)),e.color&&this.push(new Ja(e.color)),e.characterSpacing&&this.push(new Ya(e.characterSpacing)),e.scale!==void 0&&this.push(new Bt("w:w",e.scale)),e.kern&&this.push(new cr("w:kern",e.kern)),e.position&&this.push(new ht("w:position",e.position)),e.size!==void 0&&this.push(new cr("w:sz",e.size));const u=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;u&&this.push(new cr("w:szCs",u)),e.highlight&&this.push(new Qa(e.highlight));const l=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;l&&this.push(new eo(l)),e.underline&&this.push(io(e.underline.type,e.underline.color)),e.effect&&this.push(new ht("w:effect",e.effect)),e.border&&this.push(Re("w:bdr",e.border)),e.shading&&this.push(or(e.shading)),e.subScript&&this.push(no()),e.superScript&&this.push(ro()),e.rightToLeft!==void 0&&this.push(new ue("w:rtl",e.rightToLeft)),e.emphasisMark&&this.push(Za(e.emphasisMark.type)),e.language&&this.push(to(e.language)),e.specVanish&&this.push(new ue("w:specVanish",e.vanish)),e.math&&this.push(new ue("w:oMath",e.math)),e.revision&&this.push(new oo(e.revision))}push(e){this.root.push(e)}},ao=class extends pt{constructor(e){super(e),e!=null&&e.insertion&&this.push(new $a(e.insertion)),e!=null&&e.deletion&&this.push(new qa(e.deletion))}},oo=class extends ce{constructor(e){super("w:rPrChange"),this.root.push(new ze({id:e.id,author:e.author,date:e.date})),this.addChildElement(new pt(e))}},Xr=class extends ce{constructor(e){if(super("w:t"),typeof e=="string")this.root.push(new xt({space
25:_t.PRESERVE})),this.root.push(e);else{var t;this.root.push(new xt({space:(t=e.space)!==null&&t!==void 0?t:_t.DEFAULT})),this.root.push(e.text)}}},Yt={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"},jt=class extends ce{constructor(e){if(super("w:r"),ie(this,"properties",void 0),this.properties=new pt(e),this.root.push(this.properties),e.break)for(let t=0;t<e.break;t++)this.root.push(Wa());if(e.children)for(const t of e.children){if(typeof t=="string"){switch(t){case Yt.CURRENT:this.root.push($t()),this.root.push(new Ha),this.root.push(Xt()),this.root.push(Zt());break;case Yt.TOTAL_PAGES:this.root.push($t()),this.root.push(new Ga),this.root.push(Xt()),this.root.push(Zt());break;case Yt.TOTAL_PAGES_IN_SECTION:this.root.push($t()),this.root.push(new Va),this.root.push(Xt()),this.root.push(Zt());break;case Yt.CURRENT_SECTION:this.root.push($t()),this.root.push(new Ka),this.root.push(Xt()),this.root.push(Zt());break;default:this.root.push(new Xr(t));break}continue}this.root.push(t)}else e.text!==void 0&&this.root.push(new Xr(e.text))}},Et=class extends jt{constructor(e){super(typeof e=="string"?{text:e}:e)}},Wt=le((e,t)=>{t.exports=r;function r(u,l){if(!u)throw new Error(l||"Assertion failed")}r.equal=function(l,a,s){if(l!=a)throw new Error(s||"Assertion failed: "+l+" != "+a)}}),qe=le(e=>{var t=Wt();e.inherits=rt();function r(N,W){return(N.charCodeAt(W)&64512)!==55296||W<0||W+1>=N.length?!1:(N.charCodeAt(W+1)&64512)===56320}function u(N,W){if(Array.isArray(N))return N.slice();if(!N)return[];var k=[];if(typeof N=="string")if(W){if(W==="hex")for(N=N.replace(/[^a-z0-9]+/gi,""),N.length%2!==0&&(N="0"+N),J=0;J<N.length;J+=2)k.push(parseInt(N[J]+N[J+1],16))}else for(var H=0,J=0;J<N.length;J++){var $=N.charCodeAt(J);$<128?k[H++]=$:$<2048?(k[H++]=$>>6|192,k[H++]=$&63|128):r(N,J)?($=65536+(($&1023)<<10)+(N.charCodeAt(++J)&1023),k[H++]=$>>18|240,k[H++]=$>>12&63|128,k[H++]=$>>6&63|128,k[H++]=$&63|128):(k[H++]=$>>12|224,k[H++]=$>>6&63|128,k[H++]=$&63|128)}else for(J=0;J<N.length;J++)k[J]=N[J]|0;return k}e.toArray=u;function l(N){for(var W="",k=0;k<N.length;k++)W+=n(N[k].toString(16));return W}e.toHex=l;function a(N){return(N>>>24|N>>>8&65280|N<<8&16711680|(N&255)<<24)>>>0}e.htonl=a;function s(N,W){for(var k="",H=0;H<N.length;H++){var J=N[H];W==="little"&&(J=a(J)),k+=h(J.toString(16))}return k}e.toHex32=s;function n(N){return N.length===1?"0"+N:N}e.zero2=n;function h(N){return N.length===7?"0"+N:N.length===6?"00"+N:N.length===5?"000"+N:N.length===4?"0000"+N:N.length===3?"00000"+N:N.length===2?"000000"+N:N.length===1?"0000000"+N:N}e.zero8=h;function w(N,W,k,H){var J=k-W;t(J%4===0);for(var $=new Array(J/4),oe=0,Z=W;oe<$.length;oe++,Z+=4){var ee;H==="big"?ee=N[Z]<<24|N[Z+1]<<16|N[Z+2]<<8|N[Z+3]:ee=N[Z+3]<<24|N[Z+2]<<16|N[Z+1]<<8|N[Z],$[oe]=ee>>>0}return $}e.join32=w;function _(N,W){for(var k=new Array(N.length*4),H=0,J=0;H<N.length;H++,J+=4){var $=N[H];W==="big"?(k[J]=$>>>24,k[J+1]=$>>>16&255,k[J+2]=$>>>8&255,k[J+3]=$&255):(k[J+3]=$>>>24,k[J+2]=$>>>16&255,k[J+1]=$>>>8&255,k[J]=$&255)}return k}e.split32=_;function y(N,W){return N>>>W|N<<32-W}e.rotr32=y;function E(N,W){return N<<W|N>>>32-W}e.rotl32=E;function g(N,W){return N+W>>>0}e.sum32=g;function p(N,W,k){return N+W+k>>>0}e.sum32_3=p;function v(N,W,k,H){return N+W+k+H>>>0}e.sum32_4=v;function A(N,W,k,H,J){return N+W+k+H+J>>>0}e.sum32_5=A;function P(N,W,k,H){var J=N[W],$=H+N[W+1]>>>0;N[W]=($<H?1:0)+k+J>>>0,N[W+1]=$}e.sum64=P;function b(N,W,k,H){return(W+H>>>0<W?1:0)+N+k>>>0}e.sum64_hi=b;function T(N,W,k,H){return W+H>>>0}e.sum64_lo=T;function R(N,W,k,H,J,$,oe,Z){var ee=0,q=W;return q=q+H>>>0,ee+=q<W?1:0,q=q+$>>>0,ee+=q<$?1:0,q=q+Z>>>0,ee+=q<Z?1:0,N+k+J+oe+ee>>>0}e.sum64_4_hi=R;function S(N,W,k,H,J,$,oe,Z){return W+H+$+Z>>>0}e.sum64_4_lo=S;function m(N,W,k,H,J,$,oe,Z,ee,q){var F=0,X=W;return X=X+H>>>0,F+=X<W?1:0,X=X+$>>>0,F+=X<$?1:0,X=X+Z>>>0,F+=X<Z?1:0,X=X+q>>>0,F+=X<q?1:0,N+k+J+oe+ee+F>>>0}e.sum64_5_hi=m;function O(N,W,k,H,J,$,oe,Z,ee,q){return W+H+$+Z+q>>>0}e.sum64_5_lo=O;function U(N,W,k){return(W<<32-k|N>>>k)>>>0}e.rotr64_hi=U;function I(N,W,k){return(N<<32-k|W>>>k)>>>0}e.rotr64_lo=I;function K(N,W,k){return N>>>k}e.shr64_hi=K;function Q(N,W,k){return(N<<32-k|W>>>k)>>>0}e.shr64_lo=Q}),Ht=le(e=>{var t=qe(),r=Wt();function u(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=u,u.prototype.update=function(a,s){if(a=t.toArray(a,s),this.pending?this.pending=this.pending.concat(a):this.pending=a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){a=this.pending;var n=a.length%this._delta8;this.pending=a.slice(a.length-n,a.length),this.pending.length===0&&(this.pending=null),a=t.join32(a,0,a.length-n,this.endian);for(var h=0;h<a.length;h+=this._delta32)this._update(a,h,h+this._delta32)}return this},u.prototype.digest=function(a){return this.update(this._pad()),r(this.pending===null),this._digest(a)},u.prototype._pad=function(){var a=this.pendingTotal,s=this._delta8,n=s-(a+this.padLength)%s,h=new Array(n+this.padLength);h[0]=128;for(var w=1;w<n;w++)h[w]=0;if(a<<=3,this.endian==="big"){for(var _=8;_<this.padLength;_++)h[w++]=0;h[w++]=0,h[w++]=0,h[w++]=0,h[w++]=0,h[w++]=a>>>24&255,h[w++]=a>>>16&255,h[w++]=a>>>8&255,h[w++]=a&255}else for(h[w++]=a&255,h[w++]=a>>>8&255,h[w++]=a>>>16&255,h[w++]=a>>>24&255,h[w++]=0,h[w++]=0,h[w++]=0,h[w++]=0,_=8;_<this.padLength;_++)h[w++]=0;return h}}),Kn=le(e=>{var t=qe().rotr32;function r(_,y,E,g){if(_===0)return u(y,E,g);if(_===1||_===3)return a(y,E,g);if(_===2)return l(y,E,g)}e.ft_1=r;function u(_,y,E){return _&y^~_&E}e.ch32=u;function l(_,y,E){return _&y^_&E^y&E}e.maj32=l;function a(_,y,E){return _^y^E}e.p32=a;function s(_){return t(_,2)^t(_,13)^t(_,22)}e.s0_256=s;function n(_){return t(_,6)^t(_,11)^t(_,25)}e.s1_256=n;function h(_){return t(_,7)^t(_,18)^_>>>3}e.g0_256=h;function w(_){return t(_,17)^t(_,19)^_>>>10}e.g1_256=w}),so=le((e,t)=>{var r=qe(),u=Ht(),l=Kn(),a=r.rotl32,s=r.sum32,n=r.sum32_5,h=l.ft_1,w=u.BlockHash,_=[1518500249,1859775393,2400959708,3395469782];function y(){if(!(this instanceof y))return new y;w.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(y,w),t.exports=y,y.blockSize=512,y.outSize=160,y.hmacStrength=80,y.padLength=64,y.prototype._update=function(g,p){for(var v=this.W,A=0;A<16;A++)v[A]=g[p+A];for(;A<v.length;A++)v[A]=a(v[A-3]^v[A-8]^v[A-14]^v[A-16],1);var P=this.h[0],b=this.h[1],T=this.h[2],R=this.h[3],S=this.h[4];for(A=0;A<v.length;A++){var m=~~(A/20),O=n(a(P,5),h(m,b,T,R),S,v[A],_[m]);S=R,R=T,T=a(b,30),b=P,P=O}this.h[0]=s(this.h[0],P),this.h[1]=s(this.h[1],b),this.h[2]=s(this.h[2],T),this.h[3]=s(this.h[3],R),this.h[4]=s(this.h[4],S)},y.prototype._digest=function(g){return g==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")}}),qn=le((e,t)=>{var r=qe(),u=Ht(),l=Kn(),a=Wt(),s=r.sum32,n=r.sum32_4,h=r.sum32_5,w=l.ch32,_=l.maj32,y=l.s0_256,E=l.s1_256,g=l.g0_256,p=l.g1_256,v=u.BlockHash,A=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
25734187,3204031479,3329325298];function P(){if(!(this instanceof P))return new P;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=A,this.W=new Array(64)}r.inherits(P,v),t.exports=P,P.blockSize=512,P.outSize=256,P.hmacStrength=192,P.padLength=64,P.prototype._update=function(T,R){for(var S=this.W,m=0;m<16;m++)S[m]=T[R+m];for(;m<S.length;m++)S[m]=n(p(S[m-2]),S[m-7],g(S[m-15]),S[m-16]);var O=this.h[0],U=this.h[1],I=this.h[2],K=this.h[3],Q=this.h[4],N=this.h[5],W=this.h[6],k=this.h[7];for(a(this.k.length===S.length),m=0;m<S.length;m++){var H=h(k,E(Q),w(Q,N,W),this.k[m],S[m]),J=s(y(O),_(O,U,I));k=W,W=N,N=Q,Q=s(K,H),K=I,I=U,U=O,O=s(H,J)}this.h[0]=s(this.h[0],O),this.h[1]=s(this.h[1],U),this.h[2]=s(this.h[2],I),this.h[3]=s(this.h[3],K),this.h[4]=s(this.h[4],Q),this.h[5]=s(this.h[5],N),this.h[6]=s(this.h[6],W),this.h[7]=s(this.h[7],k)},P.prototype._digest=function(T){return T==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")}}),uo=le((e,t)=>{var r=qe(),u=qn();function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}
25r.inherits(l,u),t.exports=l,l.blockSize=512,l.outSize=224,l.hmacStrength=192,l.padLength=64,l.prototype._digest=function(s){return s==="hex"?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}}),$n=le((e,t)=>{var r=qe(),u=Ht(),l=Wt(),a=r.rotr64_hi,s=r.rotr64_lo,n=r.shr64_hi,h=r.shr64_lo,w=r.sum64,_=r.sum64_hi,y=r.sum64_lo,E=r.sum64_4_hi,g=r.sum64_4_lo,p=r.sum64_5_hi,v=r.sum64_5_lo,A=u.BlockHash,P=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
251126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;A.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=P,this.W=new Array(160)}r.inherits(b,A),t.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(J,$){for(var oe=this.W,Z=0;Z<32;Z++)oe[Z]=J[$+Z];for(;Z<oe.length;Z+=2){var ee=W(oe[Z-4],oe[Z-3]),q=k(oe[Z-4],oe[Z-3]),F=oe[Z-14],X=oe[Z-13],Y=Q(oe[Z-30],oe[Z-29]),te=N(oe[Z-30],oe[Z-29]),pe=oe[Z-32],x=oe[Z-31];oe[Z]=E(ee,q,F,X,Y,te,pe,x),oe[Z+1]=g(ee,q,F,X,Y,te,pe,x)}},b.prototype._update=function(J,$){this._prepareBlock(J,$);var oe=this.W,Z=this.h[0],ee=this.h[1],q=this.h[2],F=this.h[3],X=this.h[4],Y=this.h[5],te=this.h[6],pe=this.h[7],x=this.h[8],f=this.h[9],z=this.h[10],M=this.h[11],re=this.h[12],B=this.h[13],D=this.h[14],c=this.h[15];l(this.k.length===oe.length);for(var V=0;V<oe.length;V+=2){var C=D,i=c,o=I(x,f),d=K(x,f),L=T(x,f,z,M,re),G=R(x,f,z,M,re,B),j=this.k[V],ne=this.k[V+1],se=oe[V],ae=oe[V+1],fe=p(C,i,o,d,L,G,j,ne,se,ae),me=v(C,i,o,d,L,G,j,ne,se,ae);C=O(Z,ee),i=U(Z,ee),o=S(Z,ee,q,F,X),d=m(Z,ee,q,F,X,Y);var ve=_(C,i,o,d),Ie=y(C,i,o,d);D=re,c=B,re=z,B=M,z=x,M=f,x=_(te,pe,fe,me),f=y(pe,pe,fe,me),te=X,pe=Y,X=q,Y=F,q=Z,F=ee,Z=_(fe,me,ve,Ie),ee=y(fe,me,ve,Ie)}w(this.h,0,Z,ee),w(this.h,2,q,F),w(this.h,4,X,Y),w(this.h,6,te,pe),w(this.h,8,x,f),w(this.h,10,z,M),w(this.h,12,re,B),w(this.h,14,D,c)},b.prototype._digest=function(J){return J==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")};function T(H,J,$,oe,Z){var ee=H&$^~H&Z;return ee<0&&(ee+=4294967296),ee}function R(H,J,$,oe,Z,ee){var q=J&oe^~J&ee;return q<0&&(q+=4294967296),q}function S(H,J,$,oe,Z){var ee=H&$^H&Z^$&Z;return ee<0&&(ee+=4294967296),ee}function m(H,J,$,oe,Z,ee){var q=J&oe^J&ee^oe&ee;return q<0&&(q+=4294967296),q}function O(H,J){var $=a(H,J,28),oe=a(J,H,2),Z=a(J,H,7),ee=$^oe^Z;return ee<0&&(ee+=4294967296),ee}function U(H,J){var $=s(H,J,28),oe=s(J,H,2),Z=s(J,H,7),ee=$^oe^Z;return ee<0&&(ee+=4294967296),ee}function I(H,J){var $=a(H,J,14),oe=a(H,J,18),Z=a(J,H,9),ee=$^oe^Z;return ee<0&&(ee+=4294967296),ee}function K(H,J){var $=s(H,J,14),oe=s(H,J,18),Z=s(J,H,9),ee=$^oe^Z;return ee<0&&(ee+=4294967296),ee}function Q(H,J){var $=a(H,J,1),oe=a(H,J,8),Z=n(H,J,7),ee=$^oe^Z;return ee<0&&(ee+=4294967296),ee}function N(H,J){var $=s(H,J,1),oe=s(H,J,8),Z=h(H,J,7),ee=$^oe^Z;return ee<0&&(ee+=4294967296),ee}function W(H,J){var $=a(H,J,19),oe=a(J,H,29),Z=n(H,J,6),ee=$^oe^Z;return ee<0&&(ee+=4294967296),ee}function k(H,J){var $=s(H,J,19),oe=s(J,H,29),Z=h(H,J,6),ee=$^oe^Z;return ee<0&&(ee+=4294967296),ee}}),lo=le((e,t)=>{var r=qe(),u=$n();function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}
25r.inherits(l,u),t.exports=l,l.blockSize=1024,l.outSize=384,l.hmacStrength=192,l.padLength=128,l.prototype._digest=function(s){return s==="hex"?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}}),co=le(e=>{e.sha1=so(),e.sha224=uo(),e.sha256=qn(),e.sha384=lo(),e.sha512=$n()}),ho=le(e=>{var t=qe(),r=Ht(),u=t.rotl32,l=t.sum32,a=t.sum32_3,s=t.sum32_4,n=r.BlockHash;function h(){if(!(this instanceof h))return new h;n.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}t.inherits(h,n),e.ripemd160=h,h.blockSize=512,h.outSize=160,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(P,b){for(var T=this.h[0],R=this.h[1],S=this.h[2],m=this.h[3],O=this.h[4],U=T,I=R,K=S,Q=m,N=O,W=0;W<80;W++){var k=l(u(s(T,w(W,R,S,m),P[E[W]+b],_(W)),p[W]),O);T=O,O=m,m=u(S,10),S=R,R=k,k=l(u(s(U,w(79-W,I,K,Q),P[g[W]+b],y(W)),v[W]),N),U=N,N=Q,Q=u(K,10),K=I,I=k}k=a(this.h[1],S,Q),this.h[1]=a(this.h[2],m,N),this.h[2]=a(this.h[3],O,U),this.h[3]=a(this.h[4],T,I),this.h[4]=a(this.h[0],R,K),this.h[0]=k},h.prototype._digest=function(P){return P==="hex"?t.toHex32(this.h,"little"):t.split32(this.h,"little")};function w(A,P,b,T){return A<=15?P^b^T:A<=31?P&b|~P&T:A<=47?(P|~b)^T:A<=63?P&T|b&~T:P^(b|~T)}function _(A){return A<=15?0:A<=31?1518500249:A<=47?1859775393:A<=63?2400959708:2840853838}function y(A){return A<=15?1352829926:A<=31?1548603684:A<=47?1836072691:A<=63?2053994217:0}var E=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]}),fo=le((e,t)=>{var r=qe(),u=Wt();function l(a,s,n){if(!(this instanceof l))return new l(a,s,n);this.Hash=a,this.blockSize=a.blockSize/8,this.outSize=a.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(s,n))}t.exports=l,l.prototype._init=function(s){s.length>this.blockSize&&(s=new this.Hash().update(s).digest()),u(s.length<=this.blockSize);for(var n=s.length;n<this.blockSize;n++)s.push(0);for(n=0;n<s.length;n++)s[n]^=54;for(this.inner=new this.Hash().update(s),n=0;n<s.length;n++)s[n]^=106;this.outer=new this.Hash().update(s)},l.prototype.update=function(s,n){return this.inner.update(s,n),this},l.prototype.digest=function(s){return this.outer.update(this.inner.digest()),this.outer.digest(s)}});le(e=>{var t=e;t.utils=qe(),t.common=Ht(),t.sha=co(),t.ripemd=ho(),t.hmac=fo(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})();var po="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",mo=(e,t=21)=>(r=t)=>{let u="",l=r|0;for(;l--;)u+=e[Math.random()*e.length|0];return u},go=(e=21)=>{let t="",r=e|0;for(;r--;)t+=po[Math.random()*64|0];return t},je=e=>Math.floor(e*72*20),zr=(e=0)=>{let t=e;return()=>++t},vo=()=>zr(),yo=()=>zr(1),wo=()=>zr(),bo=()=>go().toLowerCase(),It=e=>mo("1234567890abcdef",e)(),_o=()=>`${It(8)}-${It(4)}-${It(4)}-${It(4)}-${It(12)}`,fr=e=>new Uint8Array(new TextEncoder().encode(e)),xo=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{xmlns:"xmlns"})}},Eo={EXTERNAL:"External"},So=(e,t,r,u)=>new ye({name:"Relationship",attributes:{id:{key:"Id",value:e},type:{key:"Type",value:t},target:{key:"Target",value:r},targetMode:{key:"TargetMode",value:u}}}),it=class extends ce{constructor(){super("Relationships"),this.root.push(new xo({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}addRelationship(e,t,r,u){this.root.push(So(`rId${e}`,t,r,u))}get RelationshipCount(){return this.root.length-1}}
25,To=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}},Ao=class extends _e{constructor(...e){super(...e),ie(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"})}},Zr=class extends ce{constructor({id:e,initials:t,author:r,date:u=new Date,children:l},a){super("w:comment"),ie(this,"paraId",void 0),this.paraId=a,this.root.push(new To({id:e,initials:t,author:r,date:u.toISOString()}));for(const s of l)this.root.push(s)}prepForXml(e){const t=super.prepForXml(e);if(!t||!this.paraId)return t;const r=t["w:comment"];if(!Array.isArray(r))return t;for(let u=r.length-1;u>=0;u--){const l=r[u];if(l&&typeof l=="object"&&"w:p"in l){const a=l["w:p"];Array.isArray(a)&&a.unshift({_attr:{"w14:paraId":this.paraId,"w14:textId":this.paraId}});break}}return t}},ko=e=>(e+1).toString(16).toUpperCase().padStart(8,"0"),Ro=class extends ce{constructor({children:e}){if(super("w:comments"),ie(this,"relationships",void 0),ie(this,"threadData",void 0),this.root.push(new Ao({"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"})),e.some(t=>t.parentId!==void 0)){const t=new Map(e.map(r=>[r.id,ko(r.id)]));for(const r of e)this.root.push(new Zr(r,t.get(r.id)));this.threadData=e.map(r=>({paraId:t.get(r.id),parentParaId:r.parentId!==void 0?t.get(r.parentId):void 0,done:r.resolved}))}else for(const t of e)this.root.push(new Zr(t));this.relationships=new it}get Relationships(){return this.relationships}get ThreadData(){return this.threadData}}
25,Co=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{"xmlns:wpc":"xmlns:wpc","xmlns:mc":"xmlns:mc","xmlns:w15":"xmlns:w15","mc:Ignorable":"mc:Ignorable"})}},Po=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{paraId:"w15:paraId",paraIdParent:"w15:paraIdParent",done:"w15:done"})}},Io=class extends ce{constructor(e){super("w15:commentEx"),this.root.push(new Po({paraId:e.paraId,paraIdParent:e.parentParaId,done:e.done!==void 0?e.done?"1":"0":void 0}))}},No=class extends ce{constructor(e){super("w15:commentsEx"),this.root.push(new Co({"xmlns:wpc":"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","mc:Ignorable":"w15"}));for(const t of e)this.root.push(new Io(t))}},Oo=class extends Ma{constructor(){super("w:endnoteRef")}},Fo=class extends ce{constructor(){super("w:pageBreakBefore")}},St={AUTO:"auto"},Bo=({after:e,before:t,line:r,lineRule:u,beforeAutoSpacing:l,afterAutoSpacing:a})=>new ye({name:"w:spacing",attributes:{after:{key:"w:after",value:e},before:{key:"w:before",value:t},line:{key:"w:line",value:r},lineRule:{key:"w:lineRule",value:u},beforeAutoSpacing:{key:"w:beforeAutospacing",value:l},afterAutoSpacing:{key:"w:afterAutospacing",value:a}}}),ft={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3"},Ot=e=>new ye({name:"w:pStyle",attributes:{val:{key:"w:val",value:e}}}),Yr={LEFT:"left",RIGHT:"right"},Do=({type:e,position:t,leader:r})=>new ye({name:"w:tab",attributes:{val:{key:"w:val",value:e},pos:{key:"w:pos",value:t},leader:{key:"w:leader",value:r}}}),Lo=e=>new ye({name:"w:tabs",children:e.map(t=>Do(t))}),dr=class extends ce{constructor(e,t){super("w:numPr"),this.root.push(new Mo(t)),this.root.push(new Uo(e))}},Mo=class extends ce{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 Fe({val:e}))}},Uo=class extends ce{constructor(e){super("w:numId"),this.root.push(new Fe({val:typeof e=="string"?`{${e}}`:e}))}},Xn=class extends ce{constructor(...e){super(...e),ie(this,"fileChild",Symbol())}},zo=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}},jo=class extends ce{constructor(e,t,r){super("w:hyperlink"),ie(this,"linkId",void 0),this.linkId=t;const u=new zo({history:1,anchor:r||void 0,id:r?void 0:`rId${this.linkId}`});this.root.push(u),e.forEach(l=>{this.root.push(l)})}},Wo=class extends ce{constructor(e){super("w:externalHyperlink"),ie(this,"options",void 0),this.options=e}},Ho=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{id:"w:id",name:"w:name"})}},Go=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{id:"w:id"})}},Vo=class{constructor(e){ie(this,"bookmarkUniqueNumericId",wo()),ie(this,"start",void 0),ie(this,"children",void 0),ie(this,"end",void 0);const t=this.bookmarkUniqueNumericId();this.start=new Ko(e.id,t),this.children=e.children,this.end=new qo(t)}},Ko=class extends ce{constructor(e,t){super("w:bookmarkStart");const r=new Ho({name:e,id:t});this.root.push(r)}},qo=class extends ce{constructor(e){super("w:bookmarkEnd");const t=new Go({id:e});this.root.push(t)}},$o=e=>new ye({name:"w:outlineLvl",attributes:{val:{key:"w:val",value:e}}}),Jt=({id:e,fontKey:t,subsetted:r},u)=>new ye({name:u,attributes:ge({id:{key:"r:id",value:e}},t?{fontKey:{key:"w:fontKey",value:`{${t}}`}}:{}),children:[...r?[new ue("w:subsetted",r)]:[]]}),Xo=({name:e,altName:t,panose1:r,charset:u,family:l,notTrueType:a,pitch:s,sig:n,embedRegular:h,embedBold:w,embedItalic:_,embedBoldItalic:y})=>new ye({name:"w:font",attributes:{name:{key:"w:name",value:e}},children:[...t?[Pt("w:altName",t)]:[],...r?[Pt("w:panose1",r)]:[],...u?[Pt("w:charset",u)]:[],Pt("w:family",l),...a?[new ue("w:notTrueType",a)]:[],Pt("w:pitch",s),...n?[new ye({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:n.usb0},usb1:{key:"w:usb1",value:n.usb1},usb2:{key:"w:usb2",value:n.usb2},usb3:{key:"w:usb3",value:n.usb3},csb0:{key:"w:csb0",value:n.csb0},csb1:{key:"w:csb1",value:n.csb1}}})]:[],...h?[Jt(h,"w:embedRegular")]:[],...w?[Jt(w,"w:embedBold")]:[],..._?[Jt(_,"w:embedItalic")]:[],...y?[Jt(y,"w:embedBoldItalic")]:[]]}),Zo=({name:e,index:t,fontKey:r,characterSet:u})=>
25Xo({name:e,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:u,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${t}`}}),Yo=e=>new ye({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:e.map((t,r)=>Zo({name:t.name,index:r+1,fontKey:t.fontKey,characterSet:t.characterSet}))}),Zn=class{constructor(e){ie(this,"options",void 0),ie(this,"fontTable",void 0),ie(this,"relationships",void 0),ie(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(t=>ge(ge({},t),{},{fontKey:_o()})),this.fontTable=Yo(this.fontOptionsWithKey),this.relationships=new it;for(let t=0;t<e.length;t++)this.relationships.addRelationship(t+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/font${t+1}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}},Jo=()=>new ye({name:"w:wordWrap",attributes:{val:{key:"w:val",value:0}}}),Qo=e=>{var t,r;return new ye({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:e.anchorLock},dropCap:{key:"w:dropCap",value:e.dropCap},width:{key:"w:w",value:e.width},height:{key:"w:h",value:e.height},x:{key:"w:x",value:e.position?e.position.x:void 0},y:{key:"w:y",value:e.position?e.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:e.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:e.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(t=e.space)===null||t===void 0?void 0:t.horizontal},spaceVertical:{key:"w:vSpace",value:(r=e.space)===null||r===void 0?void 0:r.vertical},rule:{key:"w:hRule",value:e.rule},alignmentX:{key:"w:xAlign",value:e.alignment?e.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:e.alignment?e.alignment.y:void 0},lines:{key:"w:lines",value:e.lines},wrap:{key:"w:wrap",value:e.wrap}}})},dt=class extends tt{constructor(e){if(super("w:pPr",e==null?void 0:e.includeIfEmpty),ie(this,"numberingReferences",[]),!e)return this;if(e.heading&&this.push(Ot(e.heading)),e.bullet&&this.push(Ot("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(Ot("ListParagraph"))),e.style&&this.push(Ot(e.style)),e.keepNext!==void 0&&this.push(new ue("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new ue("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new Fo),e.frame&&this.push(Qo(e.frame)),e.widowControl!==void 0&&this.push(new ue("w:widowControl",e.widowControl)),e.bullet&&this.push(new dr(1,e.bullet.level)),e.numbering){var t,r;this.numberingReferences.push({reference:e.numbering.reference,instance:(t=e.numbering.instance)!==null&&t!==void 0?t:0}),this.push(new dr(`${e.numbering.reference}-${(r=e.numbering.instance)!==null&&r!==void 0?r:0}`,e.numbering.level))}else e.numbering===!1&&this.push(new dr(0,0));e.border&&this.push(new Ua(e.border)),e.thematicBreak&&this.push(new za),e.shading&&this.push(or(e.shading)),e.wordWrap&&this.push(Jo()),e.overflowPunctuation&&this.push(new ue("w:overflowPunct",e.overflowPunctuation));const u=[...e.rightTabStop!==void 0?[{type:Yr.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:Yr.LEFT,position:e.leftTabStop}]:[]];u.length>0&&this.push(Lo(u)),e.bidirectional!==void 0&&this.push(new ue("w:bidi",e.bidirectional)),e.spacing&&this.push(Bo(e.spacing)),e.indent&&this.push(ja(e.indent)),e.contextualSpacing!==void 0&&this.push(new ue("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(Hn(e.alignment)),e.outlineLevel!==void 0&&this.push($o(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new ue("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new ue("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new ao(e.run)),e.revision&&this.push(new es(e.revision))}push(e){this.root.push(e)}prepForXml(e){if(!(e.viewWrapper instanceof Zn))for(const t of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(e)}},es=class extends ce{constructor(e){super("w:pPrChange"),this.root.push(new ze({id:e.id,author:e.author,date:e.date})),this.root.push(new dt(ge(ge({},e),{},{includeIfEmpty:!0})))}},Ue=class extends Xn{constructor(e){if(super("w:p"),ie(this,"properties",void 0),typeof e=="string")return this.properties=new dt({}),this.root.push(this.properties),this.root.push(new Et(e)),this;if(this.properties=new dt(e),this.root.push(this.properties),e.text&&this.root.push(new Et(e.text)),e.children)for(const t of e.children){if(t instanceof Vo){this.root.push(t.start);for(const r of t.children)this.root.push(r);this.root.push(t.end);continue}this.root.push(t)}}
25prepForXml(e){for(const t of this.root)if(t instanceof Wo){const r=this.root.indexOf(t),u=new jo(t.options.children,bo());e.viewWrapper.Relationships.addRelationship(u.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,Eo.EXTERNAL),this.root[r]=u}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}},ts=e=>new ye({name:"w:gridCol",attributes:e!==void 0?{width:{key:"w:w",value:Ne(e)}}:void 0}),Yn=class extends ce{constructor(e,t){super("w:tblGrid");for(const r of e)this.root.push(ts(r));t&&this.root.push(new ns(t))}},rs=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{id:"w:id"})}},ns=class extends ce{constructor(e){super("w:tblGridChange"),this.root.push(new rs({id:e.id})),this.root.push(new Yn(e.columnWidths))}},is=class extends ce{constructor(e){super("w:ins"),this.root.push(new ze({id:e.id,author:e.author,date:e.date}))}},as=class extends ce{constructor(e){super("w:del"),this.root.push(new ze({id:e.id,author:e.author,date:e.date}))}},os=class extends ce{constructor(e){super("w:cellIns"),this.root.push(new ze({id:e.id,author:e.author,date:e.date}))}},ss=class extends ce{constructor(e){super("w:cellDel"),this.root.push(new ze({id:e.id,author:e.author,date:e.date}))}},us=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date",verticalMerge:"w:vMerge",verticalMergeOriginal:"w:vMergeOrig"})}},ls=class extends ce{constructor(e){super("w:cellMerge"),this.root.push(new us(e))}},cs={TOP:"top",CENTER:"center",BOTTOM:"bottom"};ge(ge({},cs),{},{BOTH:"both"});var Jn=e=>new ye({name:"w:vAlign",attributes:{verticalAlign:{key:"w:val",value:e}}}),Qn=({marginUnitType:e=Lt.DXA,top:t,left:r,bottom:u,right:l})=>[{name:"w:top",size:t},{name:"w:left",size:r},{name:"w:bottom",size:u},{name:"w:right",size:l}].filter(a=>a.size!==void 0).map(({name:a,size:s})=>er(a,{type:e,size:s})),hs=e=>{const t=Qn(e);if(t.length!==0)return new ye({name:"w:tblCellMar",children:t})},fs=e=>{const t=Qn(e);if(t.length!==0)return new ye({name:"w:tcMar",children:t})},Lt={AUTO:"auto",DXA:"dxa",PERCENTAGE:"pct"},er=(e,{type:t=Lt.AUTO,size:r})=>{let u=r;return t===Lt.PERCENTAGE&&typeof r=="number"&&(u=`${r}%`),new ye({name:e,attributes:{type:{key:"w:type",value:t},size:{key:"w:w",value:Wn(u)}}})},ds=class extends tt{constructor(e){super("w:tcBorders"),e.top&&this.root.push(Re("w:top",e.top)),e.start&&this.root.push(Re("w:start",e.start)),e.left&&this.root.push(Re("w:left",e.left)),e.bottom&&this.root.push(Re("w:bottom",e.bottom)),e.end&&this.root.push(Re("w:end",e.end)),e.right&&this.root.push(Re("w:right",e.right))}},ps=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{val:"w:val"})}},ms=class extends ce{constructor(e){super("w:gridSpan"),this.root.push(new ps({val:Oe(e)}))}},ei={CONTINUE:"continue",RESTART:"restart"},gs=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{val:"w:val"})}},Jr=class extends ce{constructor(e){super("w:vMerge"),this.root.push(new gs({val:e}))}},vs=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{val:"w:val"})}},ys=class extends ce{constructor(e){super("w:textDirection"),this.root.push(new vs({val:e}))}},ti=class extends tt{constructor(e){if(super("w:tcPr",e.includeIfEmpty),e.width&&this.root.push(er("w:tcW",e.width)),e.columnSpan&&this.root.push(new ms(e.columnSpan)),e.verticalMerge?this.root.push(new Jr(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new Jr(ei.RESTART)),e.borders&&this.root.push(new ds(e.borders)),e.shading&&this.root.push(or(e.shading)),e.margins){const t=fs(e.margins);t&&this.root.push(t)}e.textDirection&&this.root.push(new ys(e.textDirection)),e.verticalAlign&&this.root.push(Jn(e.verticalAlign)),e.insertion&&this.root.push(new os(e.insertion)),e.deletion&&this.root.push(new ss(e.deletion)),e.revision&&this.root.push(new ws(e.revision)),e.cellMerge&&this.root.push(new ls(e.cellMerge))}},ws=class extends ce{constructor(e){super("w:tcPrChange"),this.root.push(new ze({id:e.id,author:e.author,date:e.date})),this.root.push(new ti(ge(ge({},e),{},{includeIfEmpty:!0})))}},jr=class extends ce{constructor(e){super("w:tc"),ie(this,"options",void 0),this.options=e,this.root.push(new ti(e));for(const t of e.children)this.root.push(t)}prepForXml(e){return this.root[this.root.length-1]instanceof Ue||this.root.push(new Ue({})),super.prepForXml(e)}},mt={style:Lr.NONE,size:0,color:"auto"},gt={style:Lr.SINGLE,size:4,color:"auto"},ri=class extends ce{constructor(e){var t,r,u,l,a,s;super("w:tblBorders"),this.root.push(Re("w:top",(t=e.top)!==null&&t!==void 0?t:gt)),this.root.push(Re("w:left",(r=e.left)!==null&&r!==void 0?r:gt)),this.root.push(Re("w:bottom",(u=e.bottom)!==null&&u!==void 0?u:gt)),this.root.push(Re("w:right",(l=e.right)!==null&&l!==void 0?l:gt)),this.root.push(Re("w:insideH",(a=e.insideHorizontal)!==null&&a!==void 0?a:gt)),this.root.push(Re("w:insideV",(s=e.insideVertical)!==null&&s!==void 0?s:gt))}};ie(ri,"NONE",{top:mt,bottom:mt,left:mt,right:mt,insideHorizontal:mt,insideVertical:mt});var bs=e=>
25new ye({name:"w:tblOverlap",attributes:{val:{key:"w:val",value:e}}}),_s=({horizontalAnchor:e,verticalAnchor:t,absoluteHorizontalPosition:r,relativeHorizontalPosition:u,absoluteVerticalPosition:l,relativeVerticalPosition:a,bottomFromText:s,topFromText:n,leftFromText:h,rightFromText:w,overlap:_})=>new ye({name:"w:tblpPr",attributes:{leftFromText:{key:"w:leftFromText",value:h===void 0?void 0:Ne(h)},rightFromText:{key:"w:rightFromText",value:w===void 0?void 0:Ne(w)},topFromText:{key:"w:topFromText",value:n===void 0?void 0:Ne(n)},bottomFromText:{key:"w:bottomFromText",value:s===void 0?void 0:Ne(s)},absoluteHorizontalPosition:{key:"w:tblpX",value:r===void 0?void 0:Je(r)},absoluteVerticalPosition:{key:"w:tblpY",value:l===void 0?void 0:Je(l)},horizontalAnchor:{key:"w:horzAnchor",value:e},relativeHorizontalPosition:{key:"w:tblpXSpec",value:u},relativeVerticalPosition:{key:"w:tblpYSpec",value:a},verticalAnchor:{key:"w:vertAnchor",value:t}},children:_?[bs(_)]:void 0}),xs={FIXED:"fixed"},Es=e=>new ye({name:"w:tblLayout",attributes:{type:{key:"w:type",value:e}}}),Ss={DXA:"dxa"},ni=({type:e=Ss.DXA,value:t})=>new ye({name:"w:tblCellSpacing",attributes:{type:{key:"w:type",value:e},value:{key:"w:w",value:Wn(t)}}}),Ts=({firstRow:e,lastRow:t,firstColumn:r,lastColumn:u,noHBand:l,noVBand:a})=>new ye({name:"w:tblLook",attributes:{firstRow:{key:"w:firstRow",value:e},lastRow:{key:"w:lastRow",value:t},firstColumn:{key:"w:firstColumn",value:r},lastColumn:{key:"w:lastColumn",value:u},noHBand:{key:"w:noHBand",value:l},noVBand:{key:"w:noVBand",value:a}}}),ii=class extends tt{constructor(e){if(super("w:tblPr",e.includeIfEmpty),e.style&&this.root.push(new ht("w:tblStyle",e.style)),e.float&&this.root.push(_s(e.float)),e.visuallyRightToLeft!==void 0&&this.root.push(new ue("w:bidiVisual",e.visuallyRightToLeft)),e.width&&this.root.push(er("w:tblW",e.width)),e.alignment&&this.root.push(Hn(e.alignment)),e.indent&&this.root.push(er("w:tblInd",e.indent)),e.borders&&this.root.push(new ri(e.borders)),e.shading&&this.root.push(or(e.shading)),e.layout&&this.root.push(Es(e.layout)),e.cellMargin){const t=hs(e.cellMargin);t&&this.root.push(t)}e.tableLook&&this.root.push(Ts(e.tableLook)),e.cellSpacing&&this.root.push(ni(e.cellSpacing)),e.revision&&this.root.push(new As(e.revision))}},As=class extends ce{constructor(e){super("w:tblPrChange"),this.root.push(new ze({id:e.id,author:e.author,date:e.date})),this.root.push(new ii(ge(ge({},e),{},{includeIfEmpty:!0})))}},ks=class extends Xn{constructor({rows:e,width:t,columnWidths:r=Array(Math.max(...e.map(v=>v.CellCount))).fill(100),columnWidthsRevision:u,margins:l,indent:a,float:s,layout:n,style:h,borders:w,alignment:_,visuallyRightToLeft:y,tableLook:E,cellSpacing:g,revision:p}){super("w:tbl"),this.root.push(new ii({borders:w??{},width:t??{size:100},indent:a,float:s,layout:n,style:h,alignment:_,cellMargin:l,visuallyRightToLeft:y,tableLook:E,cellSpacing:g,revision:p})),this.root.push(new Yn(r,u));for(const v of e)this.root.push(v);e.forEach((v,A)=>{if(A===e.length-1)return;let P=0;v.cells.forEach(b=>{if(b.options.rowSpan&&b.options.rowSpan>1){const T=new jr({rowSpan:b.options.rowSpan-1,columnSpan:b.options.columnSpan,borders:b.options.borders,children:[],verticalMerge:ei.CONTINUE});e[A+1].addCellToColumnIndex(T,P)}P+=b.options.columnSpan||1})})}},Rs=(e,t)=>new ye({name:"w:trHeight",attributes:{value:{key:"w:val",value:Ne(e)},rule:{key:"w:hRule",value:t}}}),ai=class extends tt{constructor(e){super("w:trPr",e.includeIfEmpty),e.cantSplit!==void 0&&this.root.push(new ue("w:cantSplit",e.cantSplit)),e.tableHeader!==void 0&&this.root.push(new ue("w:tblHeader",e.tableHeader)),e.height&&this.root.push(Rs(e.height.value,e.height.rule)),e.cellSpacing&&this.root.push(ni(e.cellSpacing)),e.insertion&&this.root.push(new is(e.insertion)),e.deletion&&this.root.push(new as(e.deletion)),e.revision&&this.root.push(new Cs(e.revision))}},Cs=class extends ce{constructor(e){super("w:trPrChange"),this.root.push(new ze({id:e.id,author:e.author,date:e.date})),this.root.push(new ai(ge(ge({},e),{},{includeIfEmpty:!0})))}},Ps=class extends ce{constructor(e){super("w:tr"),ie(this,"options",void 0),this.options=e,this.root.push(new ai(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 jr)}addCellToIndex(e,t){this.root.splice(t+1,0,e)}addCellToColumnIndex(e,t){const r=this.columnIndexToRootIndex(t,!0);this.addCellToIndex(e,r-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 r=1;r<e;r++){const u=this.root[r];t+=u.options.columnSpan||1}return t}columnIndexToRootIndex(e,t=!1){if(e<0)throw new Error("cell 'columnIndex' should not less than zero");let r=0,u=1;for(;r<=e;){if(u>=this.root.length){if(t)return this.root.length;throw new Error(`cell 'columnIndex' should not great than ${r-1}`)}const l=this.root[u];u+=1,r+=l&&l.options.columnSpan||1}return u-1}}
25,Is=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},Ns=class extends ce{constructor(){super("Properties"),this.root.push(new Is({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}},Os=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{xmlns:"xmlns"})}},Ze=(e,t)=>new ye({name:"Default",attributes:{contentType:{key:"ContentType",value:e},extension:{key:"Extension",value:t}}}),Le=(e,t)=>new ye({name:"Override",attributes:{contentType:{key:"ContentType",value:e},partName:{key:"PartName",value:t}}}),Fs=class extends ce{constructor(){super("Types"),this.root.push(new Os({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(Ze("image/png","png")),this.root.push(Ze("image/jpeg","jpeg")),this.root.push(Ze("image/jpeg","jpg")),this.root.push(Ze("image/bmp","bmp")),this.root.push(Ze("image/gif","gif")),this.root.push(Ze("image/svg+xml","svg")),this.root.push(Ze("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(Ze("application/xml","xml")),this.root.push(Ze("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(Le("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(Le("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(Le("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(Le("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(Le("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(Le("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(Le("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(Le("application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml","/word/endnotes.xml")),this.root.push(Le("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(Le("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(Le("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addCommentsExtended(){this.root.push(Le("application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml","/word/commentsExtended.xml"))}addFooter(e){this.root.push(Le("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(Le("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}},Qr={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",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",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"}
25,sr=class extends _e{constructor(e,t){super(ge({Ignorable:t},Object.fromEntries(e.map(r=>[r,Qr[r]])))),ie(this,"xmlKeys",ge({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(Qr).map(r=>[r,`xmlns:${r}`]))))}},Bs=class extends ce{constructor(e){super("cp:coreProperties"),this.root.push(new sr(["cp","dc","dcterms","dcmitype","xsi"])),e.title&&this.root.push(new ot("dc:title",e.title)),e.subject&&this.root.push(new ot("dc:subject",e.subject)),e.creator&&this.root.push(new ot("dc:creator",e.creator)),e.keywords&&this.root.push(new ot("cp:keywords",e.keywords)),e.description&&this.root.push(new ot("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new ot("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new ot("cp:revision",String(e.revision))),this.root.push(new en("dcterms:created")),this.root.push(new en("dcterms:modified"))}},Ds=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{type:"xsi:type"})}},en=class extends ce{constructor(e){super(e),this.root.push(new Ds({type:"dcterms:W3CDTF"})),this.root.push(La(new Date))}},Ls=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},Ms=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{formatId:"fmtid",pid:"pid",name:"name"})}},Us=class extends ce{constructor(e,t){super("property"),this.root.push(new Ms({formatId:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:t.name})),this.root.push(new zs(t.value))}},zs=class extends ce{constructor(e){super("vt:lpwstr"),this.root.push(e)}},js=class extends ce{constructor(e){super("Properties"),ie(this,"nextId",void 0),ie(this,"properties",[]),this.root.push(new Ls({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 Us(this.nextId++,e))}},Ws=({space:e,count:t,separate:r,equalWidth:u,children:l})=>new ye({name:"w:cols",attributes:{space:{key:"w:space",value:e===void 0?void 0:Ne(e)},count:{key:"w:num",value:t===void 0?void 0:Oe(t)},separate:{key:"w:sep",value:r},equalWidth:{key:"w:equalWidth",value:u}},children:!u&&l?l:void 0}),Hs=({type:e,linePitch:t,charSpace:r})=>new ye({name:"w:docGrid",attributes:{type:{key:"w:type",value:e},linePitch:{key:"w:linePitch",value:Oe(t)},charSpace:{key:"w:charSpace",value:r?Oe(r):void 0}}}),yt={DEFAULT:"default",FIRST:"first",EVEN:"even"},tn={HEADER:"w:headerReference",FOOTER:"w:footerReference"},pr=(e,t)=>new ye({name:e,attributes:{type:{key:"w:type",value:t.type||yt.DEFAULT},id:{key:"r:id",value:`rId${t.id}`}}}),Gs=({countBy:e,start:t,restart:r,distance:u})=>new ye({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:e===void 0?void 0:Oe(e)},start:{key:"w:start",value:t===void 0?void 0:Oe(t)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:u===void 0?void 0:Ne(u)}}}),rn=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}},Vs=class extends tt{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new rn({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new rn({})),e.pageBorderTop&&this.root.push(Re("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(Re("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(Re("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(Re("w:right",e.pageBorderRight))}},Ks=(e,t,r,u,l,a,s)=>new ye({name:"w:pgMar",attributes:{top:{key:"w:top",value:Je(e)},right:{key:"w:right",value:Ne(t)},bottom:{key:"w:bottom",value:Je(r)},left:{key:"w:left",value:Ne(u)},header:{key:"w:header",value:Ne(l)},footer:{key:"w:footer",value:Ne(a)},gutter:{key:"w:gutter",value:Ne(s)}}}),qs=({start:e,formatType:t,separator:r})=>new ye({name:"w:pgNumType",attributes:{start:{key:"w:start",value:e===void 0?void 0:Oe(e)},formatType:{key:"w:fmt",value:t},separator:{key:"w:chapSep",value:r}}}),Mt={PORTRAIT:"portrait",LANDSCAPE:"landscape"},$s=({width:e,height:t,orientation:r,code:u})=>{const l=Ne(e),a=Ne(t);return new ye({name:"w:pgSz",attributes:{width:{key:"w:w",value:r===Mt.LANDSCAPE?a:l},height:{key:"w:h",value:r===Mt.LANDSCAPE?l:a},orientation:{key:"w:orient",value:r},code:{key:"w:code",value:u}}})}
25,Xs=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{val:"w:val"})}},Zs=class extends ce{constructor(e){super("w:textDirection"),this.root.push(new Xs({val:e}))}},Ys=e=>new ye({name:"w:type",attributes:{val:{key:"w:val",value:e}}}),st={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},mr={WIDTH:11906,HEIGHT:16838,ORIENTATION:Mt.PORTRAIT},oi=class extends ce{constructor({page:{size:{width:e=mr.WIDTH,height:t=mr.HEIGHT,orientation:r=mr.ORIENTATION,code:u}={},margin:{top:l=st.TOP,right:a=st.RIGHT,bottom:s=st.BOTTOM,left:n=st.LEFT,header:h=st.HEADER,footer:w=st.FOOTER,gutter:_=st.GUTTER}={},pageNumbers:y={},borders:E,textDirection:g}={},grid:{linePitch:p=360,charSpace:v,type:A}={},headerWrapperGroup:P={},footerWrapperGroup:b={},lineNumbers:T,titlePage:R,verticalAlign:S,column:m,type:O,revision:U}={}){super("w:sectPr"),this.addHeaderFooterGroup(tn.HEADER,P),this.addHeaderFooterGroup(tn.FOOTER,b),O&&this.root.push(Ys(O)),this.root.push($s({width:e,height:t,orientation:r,code:u})),this.root.push(Ks(l,a,s,n,h,w,_)),E&&this.root.push(new Vs(E)),T&&this.root.push(Gs(T)),this.root.push(qs(y)),m&&this.root.push(Ws(m)),S&&this.root.push(Jn(S)),R!==void 0&&this.root.push(new ue("w:titlePg",R)),g&&this.root.push(new Zs(g)),U&&this.root.push(new Js(U)),this.root.push(Hs({linePitch:p,charSpace:v,type:A}))}addHeaderFooterGroup(e,t){t.default&&this.root.push(pr(e,{type:yt.DEFAULT,id:t.default.View.ReferenceId})),t.first&&this.root.push(pr(e,{type:yt.FIRST,id:t.first.View.ReferenceId})),t.even&&this.root.push(pr(e,{type:yt.EVEN,id:t.even.View.ReferenceId}))}},Js=class extends ce{constructor(e){super("w:sectPrChange"),this.root.push(new ze({id:e.id,author:e.author,date:e.date})),this.root.push(new oi(e))}},Qs=class extends ce{constructor(){super("w:body"),ie(this,"sections",[])}addSection(e){const t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new oi(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 Ue({}),r=new dt({});return r.push(e),t.addChildElement(r),t}},eu=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}},tu=class extends ce{constructor(e){super("w:background"),this.root.push(new eu({color:e.color===void 0?void 0:bt(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:$r(e.themeShade),themeTint:e.themeTint===void 0?void 0:$r(e.themeTint)}))}},ru=class extends ce{constructor(e){super("w:document"),ie(this,"body",void 0),this.root.push(new sr(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new Qs,e.background&&this.root.push(new tu(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}},nu=class{constructor(e){ie(this,"document",void 0),ie(this,"relationships",void 0),this.document=new ru(e),this.relationships=new it}get View(){return this.document}get Relationships(){return this.relationships}},iu=class extends _e{constructor(...e){super(...e),ie(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"})}},au=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{type:"w:type",id:"w:id"})}},ou=class extends jt{constructor(){super({style:"EndnoteReference"}),this.root.push(new Oo)}},nn={SEPARATOR:"separator",CONTINUATION_SEPARATOR:"continuationSeparator"},gr=class extends ce{constructor(e){super("w:endnote"),this.root.push(new au({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){const r=e.children[t];t===0&&r.addRunToFront(new ou),this.root.push(r)}}},su=class extends ce{constructor(){super("w:continuationSeparator")}},si=class extends jt{constructor(){super({}),this.root.push(new su)}},uu=class extends ce{constructor(){super("w:separator")}},ui=class extends jt{constructor(){super({}),this.root.push(new uu)}},lu=class extends ce{constructor(){super("w:endnotes"),this.root.push(new iu({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 gr({id:-1,type:nn.SEPARATOR,children:[new Ue({spacing:{after:0,line:240,lineRule:St.AUTO},children:[new ui]})]});this.root.push(e);const t=new gr({id:0,type:nn.CONTINUATION_SEPARATOR,children:[new Ue({spacing:{after:0,line:240,lineRule:St.AUTO},children:[new si]})]});this.root.push(t)}createEndnote(e,t){const r=new gr({id:e,children:t});this.root.push(r)}},cu=class{constructor(){ie(this,"endnotes",void 0),ie(this,"relationships",void 0),this.endnotes=new lu,this.relationships=new it}get View(){return this.endnotes}get Relationships(){return this.relationships}}
25,hu=class extends _e{constructor(...e){super(...e),ie(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"})}},fu=class extends Un{constructor(e,t){super("w:ftr",t),ie(this,"refId",void 0),this.refId=e,t||this.root.push(new hu({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)}},du=class{constructor(e,t,r){ie(this,"media",void 0),ie(this,"footer",void 0),ie(this,"relationships",void 0),this.media=e,this.footer=new fu(t,r),this.relationships=new it}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}},pu=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{type:"w:type",id:"w:id"})}},mu=class extends ce{constructor(){super("w:footnoteRef")}},gu=class extends jt{constructor(){super({style:"FootnoteReference"}),this.root.push(new mu)}},an={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"},vr=class extends ce{constructor(e){super("w:footnote"),this.root.push(new pu({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){const r=e.children[t];t===0&&r.addRunToFront(new gu),this.root.push(r)}}},vu=class extends _e{constructor(...e){super(...e),ie(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"})}},yu=class extends ce{constructor(){super("w:footnotes"),this.root.push(new vu({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 vr({id:-1,type:an.SEPERATOR,children:[new Ue({spacing:{after:0,line:240,lineRule:St.AUTO},children:[new ui]})]});this.root.push(e);const t=new vr({id:0,type:an.CONTINUATION_SEPERATOR,children:[new Ue({spacing:{after:0,line:240,lineRule:St.AUTO},children:[new si]})]});this.root.push(t)}createFootNote(e,t){const r=new vr({id:e,children:t});this.root.push(r)}},wu=class{constructor(){ie(this,"footnotess",void 0),ie(this,"relationships",void 0),this.footnotess=new yu,this.relationships=new it}get View(){return this.footnotess}get Relationships(){return this.relationships}}
25,bu=class extends _e{constructor(...e){super(...e),ie(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"})}},_u=class extends Un{constructor(e,t){super("w:hdr",t),ie(this,"refId",void 0),this.refId=e,t||this.root.push(new bu({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)}},xu=class{constructor(e,t,r){ie(this,"media",void 0),ie(this,"header",void 0),ie(this,"relationships",void 0),this.media=e,this.header=new _u(t,r),this.relationships=new it}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}},Eu=class{constructor(){ie(this,"map",void 0),this.map=new Map}addImage(e,t){this.map.set(e,t)}get Array(){return Array.from(this.map.values())}},Ye={BULLET:"bullet"},Su=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}},Tu=class extends ce{constructor(e){super("w:numFmt"),this.root.push(new Fe({val:e}))}},Au=class extends ce{constructor(e){super("w:lvlText"),this.root.push(new Fe({val:e}))}},ku=class extends ce{constructor(e){super("w:lvlJc"),this.root.push(new Fe({val:e}))}},Ru=class extends ce{constructor(e){super("w:suff"),this.root.push(new Fe({val:e}))}},Cu=class extends ce{constructor(){super("w:isLgl")}},Pu=class extends ce{constructor({level:e,format:t,text:r,alignment:u=We.START,start:l=1,style:a,suffix:s,isLegalNumberingStyle:n}){if(super("w:lvl"),ie(this,"paragraphProperties",void 0),ie(this,"runProperties",void 0),this.root.push(new Bt("w:start",Oe(l))),t&&this.root.push(new Tu(t)),s&&this.root.push(new Ru(s)),n&&this.root.push(new Cu),r&&this.root.push(new Au(r)),this.root.push(new ku(u)),a!=null&&a.style&&this.root.push(Ot(a.style)),this.paragraphProperties=new dt(a&&a.paragraph),this.runProperties=new pt(a&&a.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>
259)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 Su({ilvl:Oe(e),tentative:1}))}},Iu=class extends Pu{},Nu=class extends ce{constructor(e){super("w:multiLevelType"),this.root.push(new Fe({val:e}))}},Ou=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}},on=class extends ce{constructor(e,t){super("w:abstractNum"),ie(this,"id",void 0),this.root.push(new Ou({abstractNumId:Oe(e),restartNumberingAfterBreak:0})),this.root.push(new Nu("hybridMultilevel")),this.id=e;for(const r of t)this.root.push(new Iu(r))}},Fu=class extends ce{constructor(e){super("w:abstractNumId"),this.root.push(new Fe({val:e}))}},Bu=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{numId:"w:numId"})}},sn=class extends ce{constructor(e){if(super("w:num"),ie(this,"numId",void 0),ie(this,"reference",void 0),ie(this,"instance",void 0),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new Bu({numId:Oe(e.numId)})),this.root.push(new Fu(Oe(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const t of e.overrideLevels)this.root.push(new Lu(t.num,t.start))}},Du=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{ilvl:"w:ilvl"})}},Lu=class extends ce{constructor(e,t){super("w:lvlOverride"),this.root.push(new Du({ilvl:e})),t!==void 0&&this.root.push(new Uu(t))}},Mu=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{val:"w:val"})}},Uu=class extends ce{constructor(e){super("w:startOverride"),this.root.push(new Mu({val:e}))}},zu=class extends ce{constructor(e){super("w:numbering"),ie(this,"abstractNumberingMap",new Map),ie(this,"concreteNumberingMap",new Map),ie(this,"referenceConfigMap",new Map),ie(this,"abstractNumUniqueNumericId",vo()),ie(this,"concreteNumUniqueNumericId",yo()),this.root.push(new sr(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));const t=new on(this.abstractNumUniqueNumericId(),[{level:0,format:Ye.BULLET,text:"●",alignment:We.LEFT,style:{paragraph:{indent:{left:je(.5),hanging:je(.25)}}}},{level:1,format:Ye.BULLET,text:"○",alignment:We.LEFT,style:{paragraph:{indent:{left:je(1),hanging:je(.25)}}}},{level:2,format:Ye.BULLET,text:"■",alignment:We.LEFT,style:{paragraph:{indent:{left:2160,hanging:je(.25)}}}},{level:3,format:Ye.BULLET,text:"●",alignment:We.LEFT,style:{paragraph:{indent:{left:2880,hanging:je(.25)}}}},{level:4,format:Ye.BULLET,text:"○",alignment:We.LEFT,style:{paragraph:{indent:{left:3600,hanging:je(.25)}}}},{level:5,format:Ye.BULLET,text:"■",alignment:We.LEFT,style:{paragraph:{indent:{left:4320,hanging:je(.25)}}}},{level:6,format:Ye.BULLET,text:"●",alignment:We.LEFT,style:{paragraph:{indent:{left:5040,hanging:je(.25)}}}},{level:7,format:Ye.BULLET,text:"●",alignment:We.LEFT,style:{paragraph:{indent:{left:5760,hanging:je(.25)}}}},{level:8,format:Ye.BULLET,text:"●",alignment:We.LEFT,style:{paragraph:{indent:{left:6480,hanging:je(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new sn({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 r of e.config)this.abstractNumberingMap.set(r.reference,new on(this.abstractNumUniqueNumericId(),r.levels)),this.referenceConfigMap.set(r.reference,r.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 r=this.abstractNumberingMap.get(e);if(!r)return;const u=`${e}-${t}`;if(this.concreteNumberingMap.has(u))return;const l=this.referenceConfigMap.get(e),a=l&&l[0].start,s={numId:this.concreteNumUniqueNumericId(),abstractNumId:r.id,reference:e,instance:t,overrideLevels:[typeof a=="number"&&Number.isInteger(a)?{num:0,start:a}:{num:0,start:1}]};this.concreteNumberingMap.set(u,new sn(s))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}},ju=e=>new ye({name:"w:compatSetting",attributes:{version:{key:"w:val",value:e},name:{key:"w:name",value:"compatibilityMode"},uri:{key:"w:uri",value:"http://schemas.microsoft.com/office/word"}}}),Wu=class extends ce{constructor(e){super("w:compat"),e.version&&this.root.push(ju(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new ue("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new ue("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new ue("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new ue("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new ue("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new ue("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new ue("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new ue("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new ue("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new ue("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new ue("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new ue("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new ue("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new ue("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new ue("w:printColBlack",e.printColorsBlack)),e.spaceWi
25dth&&this.root.push(new ue("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new ue("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new ue("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new ue("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new ue("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new ue("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new ue("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new ue("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new ue("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new ue("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new ue("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new ue("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new ue("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new ue("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new ue("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new ue("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new ue("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new ue("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new ue("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new ue("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new ue("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new ue("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new ue("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new ue("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new ue("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new ue("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new ue("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new ue("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new ue("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new ue("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new ue("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new ue("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new ue("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new ue("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new ue("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new ue("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new ue("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new ue("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new ue("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new ue("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new ue("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new ue("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new ue("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new ue("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new ue("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new ue("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new ue("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new ue("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new ue("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new ue("w:cachedColBalance",e.cachedColumnBalance))}}
25,Hu=class extends _e{constructor(...e){super(...e),ie(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"})}},Gu=class extends ce{constructor(e){var t,r,u,l,a,s,n,h;super("w:settings"),this.root.push(new Hu({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 ue("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new ue("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new ue("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new ue("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new Bt("w:defaultTabStop",e.defaultTabStop)),((t=e.hyphenation)===null||t===void 0?void 0:t.autoHyphenation)!==void 0&&this.root.push(new ue("w:autoHyphenation",e.hyphenation.autoHyphenation)),((r=e.hyphenation)===null||r===void 0?void 0:r.hyphenationZone)!==void 0&&this.root.push(new Bt("w:hyphenationZone",e.hyphenation.hyphenationZone)),((u=e.hyphenation)===null||u===void 0?void 0:u.consecutiveHyphenLimit)!==void 0&&this.root.push(new Bt("w:consecutiveHyphenLimit",e.hyphenation.consecutiveHyphenLimit)),((l=e.hyphenation)===null||l===void 0?void 0:l.doNotHyphenateCaps)!==void 0&&this.root.push(new ue("w:doNotHyphenateCaps",e.hyphenation.doNotHyphenateCaps)),this.root.push(new Wu(ge(ge({},(a=e.compatibility)!==null&&a!==void 0?a:{}),{},{version:(s=(n=(h=e.compatibility)===null||h===void 0?void 0:h.version)!==null&&n!==void 0?n:e.compatibilityModeVersion)!==null&&s!==void 0?s:15})))}},li=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{val:"w:val"})}},Vu=class extends ce{constructor(e){super("w:name"),this.root.push(new li({val:e}))}},Ku=class extends ce{constructor(e){super("w:uiPriority"),this.root.push(new li({val:Oe(e)}))}},qu=class extends _e{constructor(...e){super(...e),ie(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}},ci=class extends ce{constructor(e,t){super("w:style"),this.root.push(new qu(e)),t.name&&this.root.push(new Vu(t.name)),t.basedOn&&this.root.push(new ht("w:basedOn",t.basedOn)),t.next&&this.root.push(new ht("w:next",t.next)),t.link&&this.root.push(new ht("w:link",t.link)),t.uiPriority!==void 0&&this.root.push(new Ku(t.uiPriority)),t.semiHidden!==void 0&&this.root.push(new ue("w:semiHidden",t.semiHidden)),t.unhideWhenUsed!==void 0&&this.root.push(new ue("w:unhideWhenUsed",t.unhideWhenUsed)),t.quickFormat!==void 0&&this.root.push(new ue("w:qFormat",t.quickFormat))}},Gt=class extends ci{constructor(e){super({type:"paragraph",styleId:e.id},e),ie(this,"paragraphProperties",void 0),ie(this,"runProperties",void 0),this.paragraphProperties=new dt(e.paragraph),this.runProperties=new pt(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}},kt=class extends ci{constructor(e){super({type:"character",styleId:e.id},ge({uiPriority:99,unhideWhenUsed:!0},e)),ie(this,"runProperties",void 0),this.runProperties=new pt(e.run),this.root.push(this.runProperties)}},at=class extends Gt{constructor(e){super(ge({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}},$u=class extends at{constructor(e){super(ge({id:"Title",name:"Title"},e))}},Xu=class extends at{constructor(e){super(ge({id:"Heading1",name:"Heading 1"},e))}},Zu=class extends at{constructor(e){super(ge({id:"Heading2",name:"Heading 2"},e))}},Yu=class extends at{constructor(e){super(ge({id:"Heading3",name:"Heading 3"},e))}},Ju=class extends at{constructor(e){super(ge({id:"Heading4",name:"Heading 4"},e))}},Qu=class extends at{constructor(e){super(ge({id:"Heading5",name:"Heading 5"},e))}},el=class extends at{constructor(e){super(ge({id:"Heading6",name:"Heading 6"},e))}},tl=class extends at{constructor(e){super(ge({id:"Strong",name:"Strong"},e))}},rl=class extends Gt{constructor(e){super(ge({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}},nl=class extends Gt{constructor(e){super(ge({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPr
25iority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:St.AUTO}},run:{size:20}},e))}},il=class extends kt{constructor(e){super(ge({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}},al=class extends kt{constructor(e){super(ge({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}},ol=class extends Gt{constructor(e){super(ge({id:"EndnoteText",name:"endnote text",link:"EndnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:St.AUTO}},run:{size:20}},e))}},sl=class extends kt{constructor(e){super(ge({id:"EndnoteReference",name:"endnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}},ul=class extends kt{constructor(e){super(ge({id:"EndnoteTextChar",name:"Endnote Text Char",basedOn:"DefaultParagraphFont",link:"EndnoteText",semiHidden:!0,run:{size:20}},e))}},ll=class extends kt{constructor(e){super(ge({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:Vn.SINGLE}}},e))}},yr=class extends ce{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 Gt(t));if(e.characterStyles)for(const t of e.characterStyles)this.root.push(new kt(t))}},cl=class extends ce{constructor(e){super("w:pPrDefault"),this.root.push(new dt(e))}},hl=class extends ce{constructor(e){super("w:rPrDefault"),this.root.push(new pt(e))}},fl=class extends ce{constructor(e){super("w:docDefaults"),ie(this,"runPropertiesDefaults",void 0),ie(this,"paragraphPropertiesDefaults",void 0),this.runPropertiesDefaults=new hl(e.run),this.paragraphPropertiesDefaults=new cl(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}},dl=class{newInstance(e){const t=(0,Mn.xml2js)(e,{compact:!1});let r;for(const l of t.elements||[])l.name==="w:styles"&&(r=l);if(r===void 0)throw new Error("can not find styles element");const u=r.elements||[];return{initialStyles:new Na(r.attributes),importedStyles:u.map(l=>Br(l))}}},wr=class{newInstance(e={}){var t;return{initialStyles:new sr(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new fl((t=e.document)!==null&&t!==void 0?t:{}),new $u(ge({run:{size:56}},e.title)),new Xu(ge({run:{color:"2E74B5",size:32}},e.heading1)),new Zu(ge({run:{color:"2E74B5",size:26}},e.heading2)),new Yu(ge({run:{color:"1F4D78",size:24}},e.heading3)),new Ju(ge({run:{color:"2E74B5",italics:!0}},e.heading4)),new Qu(ge({run:{color:"2E74B5"}},e.heading5)),new el(ge({run:{color:"1F4D78"}},e.heading6)),new tl(ge({run:{bold:!0}},e.strong)),new rl(e.listParagraph||{}),new ll(e.hyperlink||{}),new il(e.footnoteReference||{}),new nl(e.footnoteText||{}),new al(e.footnoteTextChar||{}),new sl(e.endnoteReference||{}),new ol(e.endnoteText||{}),new ul(e.endnoteTextChar||{})]}}},pl=class{constructor(e){var t,r,u,l,a,s,n,h,w,_,y,E;if(ie(this,"currentRelationshipId",1),ie(this,"documentWrapper",void 0),ie(this,"headers",[]),ie(this,"footers",[]),ie(this,"coreProperties",void 0),ie(this,"numbering",void 0),ie(this,"media",void 0),ie(this,"fileRelationships",void 0),ie(this,"footnotesWrapper",void 0),ie(this,"endnotesWrapper",void 0),ie(this,"settings",void 0),ie(this,"contentTypes",void 0),ie(this,"customProperties",void 0),ie(this,"appProperties",void 0),ie(this,"styles",void 0),ie(this,"comments",void 0),ie(this,"commentsExtended",void 0),ie(this,"fontWrapper",void 0),this.coreProperties=new Bs(ge(ge({},e),{},{creator:(t=e.creator)!==null&&t!==void 0?t:"Un-named",revision:(r=e.revision)!==null&&r!==void 0?r:1,lastModifiedBy:(u=e.lastModifiedBy)!==null&&u!==void 0?u:"Un-named"})),this.numbering=new zu(e.numbering?e.numbering:{config:[]}),this.comments=new Ro((l=e.comments)!==null&&l!==void 0?l:{children:[]}),this.comments.ThreadData&&(this.commentsExtended=new No(this.comments.ThreadData)),this.fileRelationships=new it,this.customProperties=new js((a=e.customProperties)!==null&&a!==void 0?a:[]),this.appProperties=new Ns,this.footnotesWrapper=new wu,this.endnotesWrapper=new cu,this.contentTypes=new Fs,this.documentWrapper=new nu({background:e.background}),this.settings=new Gu({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:(s=e.features)===null||s===void 0?void 0:s.trackRevisions,updateFields:(n=e.features)===null||n===void 0?void 0:n.updateFields,defaultTabStop:e.defaultTabStop,hyphenation:{autoHyphenation:(h=e.hyphenation)===null||h===void 0?void 0:h.autoHyphenation,hyphenationZone:(w=e.hyphenation)===null||w===void 0?void 0:w.hyphenationZone,consecutiveHyphenLimit:(_=e.hyphenation)===null||_===void 0?void 0:_.consecutiveHyphenLimit,doNotHyphenate
25Caps:(y=e.hyphenation)===null||y===void 0?void 0:y.doNotHyphenateCaps}}),this.media=new Eu,e.externalStyles!==void 0){var g;const p=new wr().newInstance((g=e.styles)===null||g===void 0?void 0:g.default),v=new dl().newInstance(e.externalStyles);this.styles=new yr(ge(ge({},v),{},{importedStyles:[...p.importedStyles,...v.importedStyles]}))}else if(e.styles){const p=new wr().newInstance(e.styles.default);this.styles=new yr(ge(ge({},p),e.styles))}else{const p=new wr;this.styles=new yr(p.newInstance())}this.addDefaultRelationships();for(const p of e.sections)this.addSection(p);if(e.footnotes)for(const p in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(p),e.footnotes[p].children);if(e.endnotes)for(const p in e.endnotes)this.endnotesWrapper.View.createEndnote(parseFloat(p),e.endnotes[p].children);this.fontWrapper=new Zn((E=e.fonts)!==null&&E!==void 0?E:[])}addSection({headers:e={},footers:t={},children:r,properties:u}){this.documentWrapper.View.Body.addSection(ge(ge({},u),{},{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 l of r)this.documentWrapper.View.add(l)}createHeader(e){const t=new xu(this.media,this.currentRelationshipId++);for(const r of e.options.children)t.add(r);return this.addHeaderToDocument(t),t}createFooter(e){const t=new du(this.media,this.currentRelationshipId++);for(const r of e.options.children)t.add(r);return this.addFooterToDocument(t),t}addHeaderToDocument(e,t=yt.DEFAULT){this.headers.push({header:e,type:t}),this.documentWrapper.Relationships.addRelationship(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=yt.DEFAULT){this.footers.push({footer:e,type:t}),this.documentWrapper.Relationships.addRelationship(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.addRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.addRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.addRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.addRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes","endnotes.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml"),this.commentsExtended&&(this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.microsoft.com/office/2011/relationships/commentsExtended","commentsExtended.xml"),this.contentTypes.addCommentsExtended())}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 Endnotes(){return this.endnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get CommentsExtended(){return this.commentsExtended}get FontTable(){return this.fontWrapper}},ml=class{constructor(e={children:[]}){ie(this,"options",void 0),this.options=e}},gl=le((e,t)=>{Tt(),nt();/*!
26
27JSZip v3.10.1 - A JavaScript class for generating and reading zip files
28<http://stuartk.com/jszip>
29
vendor: 4,817 bytes, lines 30-35
30(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
31Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
32
33JSZip uses the library pako released under the MIT license :
34https://github.com/nodeca/pako/blob/main/LICENSE
35*/(function(r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define([],r):(typeof window<"u"?window:typeof De<"u"?De:typeof self<"u"?self:this).JSZip=r()})(function(){return function r(u,l,a){function s(w,_){if(!l[w]){if(!u[w]){var y=typeof qt=="function"&&qt;if(!_&&y)return y(w,!0);if(n)return n(w,!0);var E=new Error("Cannot find module '"+w+"'");throw E.code="MODULE_NOT_FOUND",E}var g=l[w]={exports:{}};u[w][0].call(g.exports,function(p){var v=u[w][1][p];return s(v||p)},g,g.exports,r,u,l,a)}return l[w].exports}for(var n=typeof qt=="function"&&qt,h=0;h<a.length;h++)s(a[h]);return s}({1:[function(r,u,l){var a=r("./utils"),s=r("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";l.encode=function(h){for(var w,_,y,E,g,p,v,A=[],P=0,b=h.length,T=b,R=a.getTypeOf(h)!=="string";P<h.length;)T=b-P,y=R?(w=h[P++],_=P<b?h[P++]:0,P<b?h[P++]:0):(w=h.charCodeAt(P++),_=P<b?h.charCodeAt(P++):0,P<b?h.charCodeAt(P++):0),E=w>>2,g=(3&w)<<4|_>>4,p=1<T?(15&_)<<2|y>>6:64,v=2<T?63&y:64,A.push(n.charAt(E)+n.charAt(g)+n.charAt(p)+n.charAt(v));return A.join("")},l.decode=function(h){var w,_,y,E,g,p,v=0,A=0,P="data:";if(h.substr(0,P.length)===P)throw new Error("Invalid base64 input, it looks like a data url.");var b,T=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===n.charAt(64)&&T--,h.charAt(h.length-2)===n.charAt(64)&&T--,T%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=s.uint8array?new Uint8Array(0|T):new Array(0|T);v<h.length;)w=n.indexOf(h.charAt(v++))<<2|(E=n.indexOf(h.charAt(v++)))>>4,_=(15&E)<<4|(g=n.indexOf(h.charAt(v++)))>>2,y=(3&g)<<6|(p=n.indexOf(h.charAt(v++))),b[A++]=w,g!==64&&(b[A++]=_),p!==64&&(b[A++]=y);return b}},{"./support":30,"./utils":32}],2:[function(r,u,l){var a=r("./external"),s=r("./stream/DataWorker"),n=r("./stream/Crc32Probe"),h=r("./stream/DataLengthProbe");function w(_,y,E,g,p){this.compressedSize=_,this.uncompressedSize=y,this.crc32=E,this.compression=g,this.compressedContent=p}w.prototype={getContentWorker:function(){var _=new s(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),y=this;return _.on("end",function(){if(this.streamInfo.data_length!==y.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),_},getCompressedWorker:function(){return new s(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},w.createWorkerFrom=function(_,y,E){return _.pipe(new n).pipe(new h("uncompressedSize")).pipe(y.compressWorker(E)).pipe(new h("compressedSize")).withStreamInfo("compression",y)},u.exports=w},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,u,l){var a=r("./stream/GenericWorker");l.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},l.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,u,l){var a=r("./utils"),s=function(){for(var n,h=[],w=0;w<256;w++){n=w;for(var _=0;_<8;_++)n=1&n?3988292384^n>>>1:n>>>1;h[w]=n}return h}();u.exports=function(n,h){return n!==void 0&&n.length?a.getTypeOf(n)!=="string"?function(w,_,y,E){var g=s,p=E+y;w^=-1;for(var v=E;v<p;v++)w=w>>>8^g[255&(w^_[v])];return-1^w}(0|h,n,n.length,0):function(w,_,y,E){var g=s,p=E+y;w^=-1;for(var v=E;v<p;v++)w=w>>>8^g[255&(w^_.charCodeAt(v))];return-1^w}(0|h,n,n.length,0):0}},{"./utils":32}],5:[function(r,u,l){l.base64=!1,l.binary=!1,l.dir=!1,l.createFolders=!0,l.date=null,l.compression=null,l.compressionOptions=null,l.comment=null,l.unixPermissions=null,l.dosPermissions=null},{}],6:[function(r,u,l){var a=null;a=typeof Promise<"u"?Promise:r("lie"),u.exports={Promise:a}},{lie:37}],7:[function(r,u,l){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=r("pako"),n=r("./utils"),h=r("./stream/GenericWorker"),w=a?"uint8array":"array";function _(y,E){h.call(this,"FlateWorker/"+y),this._pako=null,this._pakoAction=y,this._pakoOptions=E,this.meta={}}l.magic="\b\0",n.inherits(_,h),_.prototype.processChunk=function(y){this.meta=y.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(w,y.data),!1)},_.prototype.flush=function(){h.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)}
vendor: 4,918 bytes, lines 35-36
35,_.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},_.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var y=this;this._pako.onData=function(E){y.push({data:E,meta:y.meta})}},l.compressWorker=function(y){return new _("Deflate",y)},l.uncompressWorker=function(){return new _("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,u,l){function a(g,p){var v,A="";for(v=0;v<p;v++)A+=String.fromCharCode(255&g),g>>>=8;return A}function s(g,p,v,A,P,b){var T,R,S=g.file,m=g.compression,O=b!==w.utf8encode,U=n.transformTo("string",b(S.name)),I=n.transformTo("string",w.utf8encode(S.name)),K=S.comment,Q=n.transformTo("string",b(K)),N=n.transformTo("string",w.utf8encode(K)),W=I.length!==S.name.length,k=N.length!==K.length,H="",J="",$="",oe=S.dir,Z=S.date,ee={crc32:0,compressedSize:0,uncompressedSize:0};p&&!v||(ee.crc32=g.crc32,ee.compressedSize=g.compressedSize,ee.uncompressedSize=g.uncompressedSize);var q=0;p&&(q|=8),O||!W&&!k||(q|=2048);var F=0,X=0;oe&&(F|=16),P==="UNIX"?(X=798,F|=function(te,pe){var x=te;return te||(x=pe?16893:33204),(65535&x)<<16}(S.unixPermissions,oe)):(X=20,F|=function(te){return 63&(te||0)}(S.dosPermissions)),T=Z.getUTCHours(),T<<=6,T|=Z.getUTCMinutes(),T<<=5,T|=Z.getUTCSeconds()/2,R=Z.getUTCFullYear()-1980,R<<=4,R|=Z.getUTCMonth()+1,R<<=5,R|=Z.getUTCDate(),W&&(J=a(1,1)+a(_(U),4)+I,H+="up"+a(J.length,2)+J),k&&($=a(1,1)+a(_(Q),4)+N,H+="uc"+a($.length,2)+$);var Y="";return Y+=`
36\0`,Y+=a(q,2),Y+=m.magic,Y+=a(T,2),Y+=a(R,2),Y+=a(ee.crc32,4),Y+=a(ee.compressedSize,4),Y+=a(ee.uncompressedSize,4),Y+=a(U.length,2),Y+=a(H.length,2),{fileRecord:y.LOCAL_FILE_HEADER+Y+U+H,dirRecord:y.CENTRAL_FILE_HEADER+a(X,2)+Y+a(Q.length,2)+"\0\0\0\0"+a(F,4)+a(A,4)+U+H+Q}}var n=r("../utils"),h=r("../stream/GenericWorker"),w=r("../utf8"),_=r("../crc32"),y=r("../signature");function E(g,p,v,A){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=v,this.encodeFileName=A,this.streamFiles=g,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(E,h),E.prototype.push=function(g){var p=g.meta.percent||0,v=this.entriesCount,A=this._sources.length;this.accumulate?this.contentBuffer.push(g):(this.bytesWritten+=g.data.length,h.prototype.push.call(this,{data:g.data,meta:{currentFile:this.currentFile,percent:v?(p+100*(v-A-1))/v:100}}))},E.prototype.openedSource=function(g){this.currentSourceOffset=this.bytesWritten,this.currentFile=g.file.name;var p=this.streamFiles&&!g.file.dir;if(p){var v=s(g,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:v.fileRecord,meta:{percent:0}})}else this.accumulate=!0},E.prototype.closedSource=function(g){this.accumulate=!1;var p=this.streamFiles&&!g.file.dir,v=s(g,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),p)this.push({data:function(A){return y.DATA_DESCRIPTOR+a(A.crc32,4)+a(A.compressedSize,4)+a(A.uncompressedSize,4)}(g),meta:{percent:100}});else for(this.push({data:v.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},E.prototype.flush=function(){for(var g=this.bytesWritten,p=0;p<this.dirRecords.length;p++)this.push({data:this.dirRecords[p],meta:{percent:100}});var v=this.bytesWritten-g,A=function(P,b,T,R,S){var m=n.transformTo("string",S(R));return y.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(P,2)+a(P,2)+a(b,4)+a(T,4)+a(m.length,2)+m}(this.dirRecords.length,v,g,this.zipComment,this.encodeFileName);this.push({data:A,meta:{percent:100}})},E.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},E.prototype.registerPrevious=function(g){this._sources.push(g);var p=this;return g.on("data",function(v){p.processChunk(v)}),g.on("end",function(){p.closedSource(p.previous.streamInfo),p._sources.length?p.prepareNextSource():p.end()}),g.on("error",function(v){p.error(v)}),this},E.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},E.prototype.error=function(g){var p=this._sources;if(!h.prototype.error.call(this,g))return!1;for(var v=0;v<p.length;v++)try{p[v].error(g)}catch{}return!0},E.prototype.lock=function(){h.prototype.lock.call(this);for(var g=this._sources,p=0;p<g.length;p++)g[p].lock()},u.exports=E},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,u,l){var a=r("../compressions"),s=r("./ZipFileWorker");l.generateWorker=function(n,h,w){var _=new s(h.streamFiles,w,h.platform,h.encodeFileName),y=0;
vendor: 28,889 bytes, line 36
36try{n.forEach(function(E,g){y++;var p=function(b,T){var R=b||T,S=a[R];if(!S)throw new Error(R+" is not a valid compression method !");return S}(g.options.compression,h.compression),v=g.options.compressionOptions||h.compressionOptions||{},A=g.dir,P=g.date;g._compressWorker(p,v).withStreamInfo("file",{name:E,dir:A,date:P,comment:g.comment||"",unixPermissions:g.unixPermissions,dosPermissions:g.dosPermissions}).pipe(_)}),_.entriesCount=y}catch(E){_.error(E)}return _}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,u,l){function a(){if(!(this instanceof a))return new a;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 s=new a;for(var n in this)typeof this[n]!="function"&&(s[n]=this[n]);return s}}(a.prototype=r("./object")).loadAsync=r("./load"),a.support=r("./support"),a.defaults=r("./defaults"),a.version="3.10.1",a.loadAsync=function(s,n){return new a().loadAsync(s,n)},a.external=r("./external"),u.exports=a},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,u,l){var a=r("./utils"),s=r("./external"),n=r("./utf8"),h=r("./zipEntries"),w=r("./stream/Crc32Probe"),_=r("./nodejsUtils");function y(E){return new s.Promise(function(g,p){var v=E.decompressed.getContentWorker().pipe(new w);v.on("error",function(A){p(A)}).on("end",function(){v.streamInfo.crc32!==E.decompressed.crc32?p(new Error("Corrupted zip : CRC32 mismatch")):g()}).resume()})}u.exports=function(E,g){var p=this;return g=a.extend(g||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),_.isNode&&_.isStream(E)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):a.prepareContent("the loaded zip file",E,!0,g.optimizedBinaryString,g.base64).then(function(v){var A=new h(g);return A.load(v),A}).then(function(v){var A=[s.Promise.resolve(v)],P=v.files;if(g.checkCRC32)for(var b=0;b<P.length;b++)A.push(y(P[b]));return s.Promise.all(A)}).then(function(v){for(var A=v.shift(),P=A.files,b=0;b<P.length;b++){var T=P[b],R=T.fileNameStr,S=a.resolve(T.fileNameStr);p.file(S,T.decompressed,{binary:!0,optimizedBinaryString:!0,date:T.date,dir:T.dir,comment:T.fileCommentStr.length?T.fileCommentStr:null,unixPermissions:T.unixPermissions,dosPermissions:T.dosPermissions,createFolders:g.createFolders}),T.dir||(p.file(S).unsafeOriginalName=R)}return A.zipComment.length&&(p.comment=A.zipComment),p})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,u,l){var a=r("../utils"),s=r("../stream/GenericWorker");function n(h,w){s.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(w)}a.inherits(n,s),n.prototype._bindStream=function(h){var w=this;(this._stream=h).pause(),h.on("data",function(_){w.push({data:_,meta:{percent:0}})}).on("error",function(_){w.isPaused?this.generatedError=_:w.error(_)}).on("end",function(){w.isPaused?w._upstreamEnded=!0:w.end()})},n.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},u.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,u,l){var a=r("readable-stream").Readable;function s(n,h,w){a.call(this,h),this._helper=n;var _=this;n.on("data",function(y,E){_.push(y)||_._helper.pause(),w&&w(E)}).on("error",function(y){_.emit("error",y)}).on("end",function(){_.push(null)})}r("../utils").inherits(s,a),s.prototype._read=function(){this._helper.resume()},u.exports=s},{"../utils":32,"readable-stream":16}],14:[function(r,u,l){u.exports={isNode:typeof Buffer<"u",newBufferFrom:function(a,s){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,s);if(typeof a=="number")throw new Error('The "data" argument must not be a number');return new Buffer(a,s)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var s=new Buffer(a);return s.fill(0),s},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&typeof a.on=="function"&&typeof a.pause=="function"&&typeof a.resume=="function"}}},{}],15:[function(r,u,l){function a(R,S,m){var O,U=n.getTypeOf(S),I=n.extend(m||{},_);I.date=I.date||new Date,I.compression!==null&&(I.compression=I.compression.toUpperCase()),typeof I.unixPermissions=="string"&&(I.unixPermissions=parseInt(I.unixPermissions,8)),I.unixPermissions&&16384&I.unixPermissions&&(I.dir=!0),I.dosPermissions&&16&I.dosPermissions&&(I.dir=!0),I.dir&&(R=P(R)),I.createFolders&&(O=A(R))&&b.call(this,O,!0);var K=U==="string"&&I.binary===!1&&I.base64===!1;m&&m.binary!==void 0||(I.binary=!K),(S instanceof y&&S.uncompressedSize===0||I.dir||!S||S.length===0)&&(I.base64=!1,I.binary=!0,S="",I.compression="STORE",U="string");var Q=null;Q=S instanceof y||S instanceof h?S:p.isNode&&p.isStream(S)?new v(R,S):n.prepareContent(R,S,I.binary,I.optimizedBinaryString,I.base64);var N=new E(R,Q,I);this.files[R]=N}var s=r("./utf8"),n=r("./utils"),h=r("./stream/GenericWorker"),w=r("./stream/StreamHelper"),_=r("./defaults"),y=r("./compressedObject"),E=r("./zipObject"),g=r("./generate"),p=r("./nodejsUtils"),v=r("./nodejs/NodejsStreamInputAdapter"),A=function(R){R.slice(-1)==="/"&&(R=R.substring(0,R.length-1));var S=R.lastIndexOf("/");return 0<S?R.substring(0,S):""},P=function(R){return R.slice(-1)!=="/"&&(R+="/"),R},b=function(R,S){return S=S!==void 0?S:_.createFolders,R=P(R),this.files[R]||a.call(this,R,null,{dir:!0,createFolders:S}),this.files[R]};function T(R){return Object.prototype.toString.call(R)==="[object RegExp]"}u.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(R){var S,m,O;for(S in this.files)O=this.files[S],(m=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&R(m,O)},filter:function(R){var S=[];return this.forEach(function(m,O){R(m,O)&&S.push(O)}),S},file:function(R,S,m){if(arguments.length!==1)return R=this.root+R,a.call(this,R,S,m),this;if(T(R)){var O=R;return this.filter(function(I,K){return!K.dir&&O.test(I)})}var U=this.files[this.root+R];return U&&!U.dir?U:null},folder:function(R){if(!R)return this;if(T(R))return this.filter(function(U,I){return I.dir&&R.test(U)});var S=this.root+R,m=b.call(this,S),O=this.clone();return O.root=m.name,O},remove:function(R){R=this.root+R;var S=this.files[R];if(S||(R.slice(-1)!=="/"&&(R+="/"),S=this.files[R]),S&&!S.dir)delete this.files[R];else for(var m=this.filter(function(U,I){return I.name.slice(0,R.length)===R}),O=0;O<m.length;O++)delete this.files[m[O].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(R){var S,m={};try{if((m=n.extend(R||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=m.type.toLowerCase(),m.compression=m.compression.toUpperCase(),m.type==="binarystring"&&(m.type="string"),!m.type)throw new Error("No output type specified.");n.checkSupport(m.type),m.platform!=="darwin"&&m.platform!=="freebsd"&&m.platform!=="linux"&&m.platform!=="sunos"||(m.platform="UNIX"),m.platform==="win32"&&(m.platform="DOS");var O=m.comment||this.comment||"";S=g.generateWorker(this,m,O)}catch(U){(S=new h("error")).error(U)}return new w(S,m.type||"string",m.mimeType)},generateAsync:function(R,S){return this.generateInternalStream(R).accumulate(S)},generateNodeStream:function(R,S){return(R=R||{}).type||(R.type="nodebuffer"),this.generateInternalStream(R).toNodejsStream(S)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,u,l){u.exports=r("stream")},{stream:void 0}],17:[function(r,u,l){var a=r("./DataReader");function s(n){a.call(this,n);for(var h=0;h<this.data.length;h++)n[h]=255&n[h]}r("../utils").inherits(s,a),s.prototype.byteAt=function(n){return this.data[this.zero+n]},s.prototype.lastIndexOfSignature=function(n){for(var h=n.charCodeAt(0),w=n.charCodeAt(1),_=n.charCodeAt(2),y=n.charCodeAt(3),E=this.length-4;0<=E;--E)if(this.data[E]===h&&this.data[E+1]===w&&this.data[E+2]===_&&this.data[E+3]===y)return E-this.zero;return-1},s.prototype.readAndCheckSignature=function(n){var h=n.charCodeAt(0),w=n.charCodeAt(1),_=n.charCodeAt(2),y=n.charCodeAt(3),E=this.readData(4);return h===E[0]&&w===E[1]&&_===E[2]&&y===E[3]},s.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},u.exports=s},{"../utils":32,"./DataReader":18}],18:[function(r,u,l){var a=r("../utils");function s(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var h,w=0;for(this.checkOffset(n),h=this.index+n-1;h>=this.index;h--)w=(w<<8)+this.byteAt(h);return this.index+=n,w},readString:function(n){return a.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},u.exports=s},{"../utils":32}],19:[function(r,u,l){var a=r("./Uint8ArrayReader");function s(n){a.call(this,n)}r("../utils").inherits(s,a),s.prototype.readData=function(n){this.checkOffset(n);var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},u.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,u,l){var a=r("./DataReader");function s(n){a.call(this,n)}r("../utils").inherits(s,a),s.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},s.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},s.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},s.prototype.readData=function(n){this.checkOffset(n);var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},u.exports=s},{"../utils":32,"./DataReader":18}],21:[function(r,u,l){var a=r("./ArrayReader");function s(n){a.call(this,n)}r("../utils").inherits(s,a),s.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},u.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(r,u,l){var a=r("../utils"),s=r("../support"),n=r("./ArrayReader"),h=r("./StringReader"),w=r("./NodeBufferReader"),_=r("./Uint8ArrayReader");u.exports=function(y){var E=a.getTypeOf(y);return a.checkSupport(E),E!=="string"||s.uint8array?E==="nodebuffer"?new w(y):s.uint8array?new _(a.transformTo("uint8array",y)):new n(a.transformTo("array",y)):new h(y)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,u,l){l.LOCAL_FILE_HEADER="PK��",l.CENTRAL_FILE_HEADER="PK��",l.CENTRAL_DIRECTORY_END="PK��",l.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK�\x07",l.ZIP64_CENTRAL_DIRECTORY_END="PK��",l.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,u,l){var a=r("./GenericWorker"),s=r("../utils");function n(h){a.call(this,"ConvertWorker to "+h),this.destType=h}s.inherits(n,a),n.prototype.processChunk=function(h){this.push({data:s.transformTo(this.destType,h.data),meta:h.meta})},u.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(r,u,l){var a=r("./GenericWorker"),s=r("../crc32");function n(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(n,a),n.prototype.processChunk=function(h){this.streamInfo.crc32=s(h.data,this.streamInfo.crc32||0),this.push(h)},u.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,u,l){var a=r("../utils"),s=r("./GenericWorker");function n(h){s.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}a.inherits(n,s),n.prototype.processChunk=function(h){if(h){var w=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=w+h.data.length}s.prototype.processChunk.call(this,h)},u.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(r,u,l){var a=r("../utils"),s=r("./GenericWorker");function n(h){s.call(this,"DataWorker");var w=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,h.then(function(_){w.dataIsReady=!0,w.data=_,w.max=_&&_.length||0,w.type=a.getTypeOf(_),w.isPaused||w._tickAndRepeat()},function(_){w.error(_)})}a.inherits(n,s),n.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,a.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(a.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var h=null,w=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":h=this.data.substring(this.index,w);break;case"uint8array":h=this.data.subarray(this.index,w);break;case"array":case"nodebuffer":h=this.data.slice(this.index,w)}return this.index=w,this.push({data:h,meta:{percent:this.max?this.index/this.max*100:0}})},u.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(r,u,l){function a(s){this.name=s||"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}a.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,n){return this._listeners[s].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,n){if(this._listeners[s])for(var h=0;h<this._listeners[s].length;h++)this._listeners[s][h].call(this,n)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var n=this;return s.on("data",function(h){n.processChunk(h)}),s.on("end",function(){n.end()}),s.on("error",function(h){n.error(h)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,n){return this.extraStreamInfo[s]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},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 s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},u.exports=a},{}],29:[function(r,u,l){var a=r("../utils"),s=r("./ConvertWorker"),n=r("./GenericWorker"),h=r("../base64"),w=r("../support"),_=r("../external"),y=null;if(w.nodestream)try{y=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function E(p,v){return new _.Promise(function(A,P){var b=[],T=p._internalType,R=p._outputType,S=p._mimeType;p.on("data",function(m,O){b.push(m),v&&v(O)}).on("error",function(m){b=[],P(m)}).on("end",function(){try{A(function(m,O,U){switch(m){case"blob":return a.newBlob(a.transformTo("arraybuffer",O),U);case"base64":return h.encode(O);default:return a.transformTo(m,O)}}(R,function(m,O){var U,I=0,K=null,Q=0;for(U=0;U<O.length;U++)Q+=O[U].length;switch(m){case"string":return O.join("");case"array":return Array.prototype.concat.apply([],O);case"uint8array":for(K=new Uint8Array(Q),U=0;U<O.length;U++)K.set(O[U],I),I+=O[U].length;return K;case"nodebuffer":return Buffer.concat(O);default:throw new Error("concat : unsupported type '"+m+"'")}}(T,b),S))}catch(m){P(m)}b=[]}).resume()})}function g(p,v,A){var P=v;switch(v){case"blob":case"arraybuffer":P="uint8array";break;case"base64":P="string"}try{this._internalType=P,this._outputType=v,this._mimeType=A,a.checkSupport(P),this._worker=p.pipe(new s(P)),p.lock()}catch(b){this._worker=new n("error"),this._worker.error(b)}}g.prototype={accumulate:function(p){return E(this,p)},on:function(p,v){var A=this;return p==="data"?this._worker.on(p,function(P){v.call(A,P.data,P.meta)}):this._worker.on(p,function(){a.delay(v,arguments,A)}),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(p){if(a.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new y(this,{objectMode:this._outputType!=="nodebuffer"},p)}},u.exports=g},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,u,l){if(l.base64=!0,l.array=!0,l.string=!0,l.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",l.nodebuffer=typeof Buffer<"u",l.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")l.blob=!1;else{var a=new ArrayBuffer(0);try{l.blob=new Blob([a],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(a),l.blob=s.getBlob("application/zip").size===0}catch{l.blob=!1}}}try{l.nodestream=!!r("readable-stream").Readable}catch{l.nodestream=!1}},{"readable-stream":16}],31:[function(r,u,l){for(var a=r("./utils"),s=r("./support"),n=r("./nodejsUtils"),h=r("./stream/GenericWorker"),w=new Array(256),_=0;_<256;_++)w[_]=252<=_?6:248<=_?5:240<=_?4:224<=_?3:192<=_?2:1;w[254]=w[254]=1;function y(){h.call(this,"utf-8 decode"),this.leftOver=null}function E(){h.call(this,"utf-8 encode")}l.utf8encode=function(g){return s.nodebuffer?n.newBufferFrom(g,"utf-8"):function(p){var v,A,P,b,T,R=p.length,S=0;for(b=0;b<R;b++)(64512&(A=p.charCodeAt(b)))==55296&&b+1<R&&(64512&(P=p.charCodeAt(b+1)))==56320&&(A=65536+(A-55296<<10)+(P-56320),b++),S+=A<128?1:A<2048?2:A<65536?3:4;for(v=s.uint8array?new Uint8Array(S):new Array(S),b=T=0;T<S;b++)(64512&(A=p.charCodeAt(b)))==55296&&b+1<R&&(64512&(P=p.charCodeAt(b+1)))==56320&&(A=65536+(A-55296<<10)+(P-56320),b++),A<128?v[T++]=A:(A<2048?v[T++]=192|A>>>6:(A<65536?v[T++]=224|A>>>12:(v[T++]=240|A>>>18,v[T++]=128|A>>>12&63),v[T++]=128|A>>>6&63),v[T++]=128|63&A);return v}(g)},l.utf8decode=function(g){return s.nodebuffer?a.transformTo("nodebuffer",g).toString("utf-8"):function(p){var v,A,P,b,T=p.length,R=new Array(2*T);for(v=A=0;v<T;)if((P=p[v++])<128)R[A++]=P;else if(4<(b=w[P]))R[A++]=65533,v+=b-1;else{for(P&=b===2?31:b===3?15:7;1<b&&v<T;)P=P<<6|63&p[v++],b--;1<b?R[A++]=65533:P<65536?R[A++]=P:(P-=65536,R[A++]=55296|P>>10&1023,R[A++]=56320|1023&P)}return R.length!==A&&(R.subarray?R=R.subarray(0,A):R.length=A),a.applyFromCharCode(R)}(g=a.transformTo(s.uint8array?"uint8array":"array",g))},a.inherits(y,h),y.prototype.processChunk=function(g){var p=a.transformTo(s.uint8array?"uint8array":"array",g.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var v=p;(p=new Uint8Array(v.length+this.leftOver.length)).set(this.leftOver,0),p.set(v,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var A=function(b,T){var R;for((T=T||b.length)>b.length&&(T=b.length),R=T-1;0<=R&&(192&b[R])==128;)R--;return R<0||R===0?T:R+w[b[R]]>T?R:T}(p),P=p;A!==p.length&&(s.uint8array?(P=p.subarray(0,A),this.leftOver=p.subarray(A,p.length)):(P=p.slice(0,A),this.leftOver=p.slice(A,p.length))),this.push({data:l.utf8decode(P),meta:g.meta})},y.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:l.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},l.Utf8DecodeWorker=y,a.inherits(E,h),E.prototype.processChunk=function(g){this.push({data:l.utf8encode(g.data),meta:g.meta})},l.Utf8EncodeWorker=E},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,u,l){var a=r("./support"),s=r("./base64"),n=r("./nodejsUtils"),h=r("./external");function w(v){return v}function _(v,A){for(var P=0;P<v.length;++P)A[P]=255&v.charCodeAt(P);return A}r("setimmediate"),l.newBlob=function(v,A){l.checkSupport("blob");try{return new Blob([v],{type:A})}catch{try{var P=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return P.append(v),P.getBlob(A)}catch{throw new Error("Bug : can't construct the Blob.")}}};var y={stringifyByChunk:function(v,A,P){var b=[],T=0,R=v.length;if(R<=P)return String.fromCharCode.apply(null,v);for(;T<R;)A==="array"||A==="nodebuffer"?b.push(String.fromCharCode.apply(null,v.slice(T,Math.min(T+P,R)))):b.push(String.fromCharCode.apply(null,v.subarray(T,Math.min(T+P,R)))),T+=P;return b.join("")},stringifyByChar:function(v){for(var A="",P=0;P<v.length;P++)A+=String.fromCharCode(v[P]);return A},applyCanBeUsed:{uint8array:function(){try{return a.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return a.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch{return!1}}()}};function E(v){var A=65536,P=l.getTypeOf(v),b=!0;if(P==="uint8array"?b=y.applyCanBeUsed.uint8array:P==="nodebuffer"&&(b=y.applyCanBeUsed.nodebuffer),b)for(;1<A;)try{return y.stringifyByChunk(v,P,A)}catch{A=Math.floor(A/2)}return y.stringifyByChar(v)}function g(v,A){for(var P=0;P<v.length;P++)A[P]=v[P];return A}l.applyFromCharCode=E;var p={};p.string={string:w,array:function(v){return _(v,new Array(v.length))},arraybuffer:function(v){return p.string.uint8array(v).buffer},uint8array:function(v){return _(v,new Uint8Array(v.length))},nodebuffer:function(v){return _(v,n.allocBuffer(v.length))}},p.array={string:E,array:w,arraybuffer:function(v){return new Uint8Array(v).buffer},uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return n.newBufferFrom(v)}},p.arraybuffer={string:function(v){return E(new Uint8Array(v))},array:function(v){return g(new Uint8Array(v),new Array(v.byteLength))},arraybuffer:w,uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return n.newBufferFrom(new Uint8Array(v))}},p.uint8array={string:E,array:function(v){return g(v,new Array(v.length))},arraybuffer:function(v){return v.buffer},uint8array:w,nodebuffer:function(v){return n.newBufferFrom(v)}},p.nodebuffer={string:E,array:function(v){return g(v,new Array(v.length))},arraybuffer:function(v){return p.nodebuffer.uint8array(v).buffer},uint8array:function(v){return g(v,new Uint8Array(v.length))},nodebuffer:w},l.transformTo=function(v,A){return A=A||"",v?(l.checkSupport(v),p[l.getTypeOf(A)][v](A)):A},l.resolve=function(v){for(var A=v.split("/"),P=[],b=0;b<A.length;b++){var T=A[b];T==="."||T===""&&b!==0&&b!==A.length-1||(T===".."?P.pop():P.push(T))}return P.join("/")},l.getTypeOf=function(v){return typeof v=="string"?"string":Object.prototype.toString.call(v)==="[object Array]"?"array":a.nodebuffer&&n.isBuffer(v)?"nodebuffer":a.uint8array&&v instanceof Uint8Array?"uint8array":a.arraybuffer&&v instanceof ArrayBuffer?"arraybuffer":void 0},l.checkSupport=function(v){if(!a[v.toLowerCase()])throw new Error(v+" is not supported by this platform")},l.MAX_VALUE_16BITS=65535,l.MAX_VALUE_32BITS=-1,l.pretty=function(v){var A,P,b="";for(P=0;P<(v||"").length;P++)b+="\\x"+((A=v.charCodeAt(P))<16?"0":"")+A.toString(16).toUpperCase();return b},l.delay=function(v,A,P){setImmediate(function(){v.apply(P||null,A||[])})},l.inherits=function(v,A){function P(){}P.prototype=A.prototype,v.prototype=new P},l.extend=function(){var v,A,P={};for(v=0;v<arguments.length;v++)for(A in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],A)&&P[A]===void 0&&(P[A]=arguments[v][A]);return P},l.prepareContent=function(v,A,P,b,T){return h.Promise.resolve(A).then(function(R){return a.blob&&(R instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(R))!==-1)&&typeof FileReader<"u"?new h.Promise(function(S,m){var O=new FileReader;O.onload=function(U){S(U.target.result)},O.onerror=function(U){m(U.target.error)},O.readAsArrayBuffer(R)}):R}).then(function(R){var S=l.getTypeOf(R);return S?(S==="arraybuffer"?R=l.transformTo("uint8array",R):S==="string"&&(T?R=s.decode(R):P&&b!==!0&&(R=function(m){return _(m,a.uint8array?new Uint8Array(m.length):new Array(m.length))}(R))),R):h.Promise.reject(new Error("Can't read the data of '"+v+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,u,l){var a=r("./reader/readerFor"),s=r("./utils"),n=r("./signature"),h=r("./zipEntry"),w=r("./support");function _(y){this.files=[],this.loadOptions=y}_.prototype={checkSignature:function(y){if(!this.reader.readAndCheckSignature(y)){this.reader.index-=4;var E=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(E)+", expected "+s.pretty(y)+")")}},isSignature:function(y,E){var g=this.reader.index;this.reader.setIndex(y);var p=this.reader.readString(4)===E;return this.reader.setIndex(g),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 y=this.reader.readData(this.zipCommentLength),E=w.uint8array?"uint8array":"array",g=s.transformTo(E,y);this.zipComment=this.loadOptions.decodeFileName(g)},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 y,E,g,p=this.zip64EndOfCentralSize-44;0<p;)y=this.reader.readInt(2),E=this.reader.readInt(4),g=this.reader.readData(E),this.zip64ExtensibleData[y]={id:y,length:E,value:g}},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 y,E;for(y=0;y<this.files.length;y++)E=this.files[y],this.reader.setIndex(E.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),E.readLocalPart(this.reader),E.handleUTF8(),E.processAttributes()},readCentralDir:function(){var y;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(y=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(y);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 y=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(y<0)throw this.isSignature(0,n.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
36ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(y);var E=y;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(y=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(y),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var g=this.centralDirOffset+this.centralDirSize;this.zip64&&(g+=20,g+=12+this.zip64EndOfCentralSize);var p=E-g;if(0<p)this.isSignature(E,n.CENTRAL_FILE_HEADER)||(this.reader.zero=p);else if(p<0)throw new Error("Corrupted zip: missing "+Math.abs(p)+" bytes.")},prepareReader:function(y){this.reader=a(y)},load:function(y){this.prepareReader(y),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},u.exports=_},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,u,l){var a=r("./reader/readerFor"),s=r("./utils"),n=r("./compressedObject"),h=r("./crc32"),w=r("./utf8"),_=r("./compressions"),y=r("./support");function E(g,p){this.options=g,this.loadOptions=p}E.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(g){var p,v;if(g.skip(22),this.fileNameLength=g.readInt(2),v=g.readInt(2),this.fileName=g.readData(this.fileNameLength),g.skip(v),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(A){for(var P in _)if(Object.prototype.hasOwnProperty.call(_,P)&&_[P].magic===A)return _[P];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,p,g.readData(this.compressedSize))},readCentralPart:function(g){this.versionMadeBy=g.readInt(2),g.skip(2),this.bitFlag=g.readInt(2),this.compressionMethod=g.readString(2),this.date=g.readDate(),this.crc32=g.readInt(4),this.compressedSize=g.readInt(4),this.uncompressedSize=g.readInt(4);var p=g.readInt(2);if(this.extraFieldsLength=g.readInt(2),this.fileCommentLength=g.readInt(2),this.diskNumberStart=g.readInt(2),this.internalFileAttributes=g.readInt(2),this.externalFileAttributes=g.readInt(4),this.localHeaderOffset=g.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");g.skip(p),this.readExtraFields(g),this.parseZIP64ExtraField(g),this.fileComment=g.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var g=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),g==0&&(this.dosPermissions=63&this.externalFileAttributes),g==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var g=a(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=g.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=g.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&
vendor: 7,719 bytes, line 36
36(this.localHeaderOffset=g.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=g.readInt(4))}},readExtraFields:function(g){var p,v,A,P=g.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});g.index+4<P;)p=g.readInt(2),v=g.readInt(2),A=g.readData(v),this.extraFields[p]={id:p,length:v,value:A};g.setIndex(P)},handleUTF8:function(){var g=y.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=w.utf8decode(this.fileName),this.fileCommentStr=w.utf8decode(this.fileComment);else{var p=this.findExtraFieldUnicodePath();if(p!==null)this.fileNameStr=p;else{var v=s.transformTo(g,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(v)}var A=this.findExtraFieldUnicodeComment();if(A!==null)this.fileCommentStr=A;else{var P=s.transformTo(g,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(P)}}},findExtraFieldUnicodePath:function(){var g=this.extraFields[28789];if(g){var p=a(g.value);return p.readInt(1)!==1||h(this.fileName)!==p.readInt(4)?null:w.utf8decode(p.readData(g.length-5))}return null},findExtraFieldUnicodeComment:function(){var g=this.extraFields[25461];if(g){var p=a(g.value);return p.readInt(1)!==1||h(this.fileComment)!==p.readInt(4)?null:w.utf8decode(p.readData(g.length-5))}return null}},u.exports=E},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,u,l){function a(p,v,A){this.name=p,this.dir=A.dir,this.date=A.date,this.comment=A.comment,this.unixPermissions=A.unixPermissions,this.dosPermissions=A.dosPermissions,this._data=v,this._dataBinary=A.binary,this.options={compression:A.compression,compressionOptions:A.compressionOptions}}var s=r("./stream/StreamHelper"),n=r("./stream/DataWorker"),h=r("./utf8"),w=r("./compressedObject"),_=r("./stream/GenericWorker");a.prototype={internalStream:function(p){var v=null,A="string";try{if(!p)throw new Error("No output type specified.");var P=(A=p.toLowerCase())==="string"||A==="text";A!=="binarystring"&&A!=="text"||(A="string"),v=this._decompressWorker();var b=!this._dataBinary;b&&!P&&(v=v.pipe(new h.Utf8EncodeWorker)),!b&&P&&(v=v.pipe(new h.Utf8DecodeWorker))}catch(T){(v=new _("error")).error(T)}return new s(v,A,"")},async:function(p,v){return this.internalStream(p).accumulate(v)},nodeStream:function(p,v){return this.internalStream(p||"nodebuffer").toNodejsStream(v)},_compressWorker:function(p,v){if(this._data instanceof w&&this._data.compression.magic===p.magic)return this._data.getCompressedWorker();var A=this._decompressWorker();return this._dataBinary||(A=A.pipe(new h.Utf8EncodeWorker)),w.createWorkerFrom(A,p,v)},_decompressWorker:function(){return this._data instanceof w?this._data.getContentWorker():this._data instanceof _?this._data:new n(this._data)}};for(var y=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],E=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},g=0;g<y.length;g++)a.prototype[y[g]]=E;u.exports=a},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,u,l){(function(a){var s,n,h=a.MutationObserver||a.WebKitMutationObserver;if(h){var w=0,_=new h(p),y=a.document.createTextNode("");_.observe(y,{characterData:!0}),s=function(){y.data=w=++w%2}}else if(a.setImmediate||a.MessageChannel===void 0)s="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var v=a.document.createElement("script");v.onreadystatechange=function(){p(),v.onreadystatechange=null,v.parentNode.removeChild(v),v=null},a.document.documentElement.appendChild(v)}:function(){setTimeout(p,0)};else{var E=new a.MessageChannel;E.port1.onmessage=p,s=function(){E.port2.postMessage(0)}}var g=[];function p(){var v,A;n=!0;for(var P=g.length;P;){for(A=g,g=[],v=-1;++v<P;)A[v]();P=g.length}n=!1}u.exports=function(v){g.push(v)!==1||n||s()}}).call(this,typeof De<"u"?De:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,u,l){var a=r("immediate");function s(){}var n={},h=["REJECTED"],w=["FULFILLED"],_=["PENDING"];function y(P){if(typeof P!="function")throw new TypeError("resolver must be a function");this.state=_,this.queue=[],this.outcome=void 0,P!==s&&v(this,P)}function E(P,b,T){this.promise=P,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof T=="function"&&(this.onRejected=T,this.callRejected=this.otherCallRejected)}function g(P,b,T){a(function(){var R;try{R=b(T)}catch(S){return n.reject(P,S)}R===P?n.reject(P,new TypeError("Cannot resolve promise with itself")):n.resolve(P,R)})}function p(P){var b=P&&P.then;if(P&&(typeof P=="object"||typeof P=="function")&&typeof b=="function")return function(){b.apply(P,arguments)}}function v(P,b){var T=!1;function R(O){T||(T=!0,n.reject(P,O))}function S(O){T||(T=!0,n.resolve(P,O))}var m=A(function(){b(S,R)});m.status==="error"&&R(m.value)}function A(P,b){var T={};try{T.value=P(b),T.status="success"}catch(R){T.status="error",T.value=R}return T}(u.exports=y).prototype.finally=function(P){if(typeof P!="function")return this;var b=this.constructor;return this.then(function(T){return b.resolve(P()).then(function(){return T})},function(T){return b.resolve(P()).then(function(){throw T})})},y.prototype.catch=function(P){return this.then(null,P)},y.prototype.then=function(P,b){if(typeof P!="function"&&this.state===w||typeof b!="function"&&this.state===h)return this;var T=new this.constructor(s);return this.state!==_?g(T,this.state===w?P:b,this.outcome):this.queue.push(new E(T,P,b)),T},E.prototype.callFulfilled=function(P){n.resolve(this.promise,P)},E.prototype.otherCallFulfilled=function(P){g(this.promise,this.onFulfilled,P)},E.prototype.callRejected=function(P){n.reject(this.promise,P)},E.prototype.otherCallRejected=function(P){g(this.promise,this.onRejected,P)},n.resolve=function(P,b){var T=A(p,b);if(T.status==="error")return n.reject(P,T.value);var R=T.value;if(R)v(P,R);else{P.state=w,P.outcome=b;for(var S=-1,m=P.queue.length;++S<m;)P.queue[S].callFulfilled(b)}return P},n.reject=function(P,b){P.state=h,P.outcome=b;for(var T=-1,R=P.queue.length;++T<R;)P.queue[T].callRejected(b);return P},y.resolve=function(P){return P instanceof this?P:n.resolve(new this(s),P)},y.reject=function(P){var b=new this(s);return n.reject(b,P)},y.all=function(P){var b=this;if(Object.prototype.toString.call(P)!=="[object Array]")return this.reject(new TypeError("must be an array"));var T=P.length,R=!1;if(!T)return this.resolve([]);for(var S=new Array(T),m=0,O=-1,U=new this(s);++O<T;)I(P[O],O);return U;function I(K,Q){b.resolve(K).then(function(N){S[Q]=N,++m!==T||R||(R=!0,n.resolve(U,S))},function(N){R||(R=!0,n.reject(U,N))})}},y.race=function(P){var b=this;if(Object.prototype.toString.call(P)!=="[object Array]")return this.reject(new TypeError("must be an array"));var T=P.length,R=!1;if(!T)return this.resolve([]);for(var S=-1,m=new this(s);++S<T;)O=P[S],b.resolve(O).then(function(U){R||(R=!0,n.resolve(m,U))},function(U){R||(R=!0,n.reject(m,U))});var O;return m}},{immediate:36}],38:[function(r,u,l){var a={};(0,r("./lib/utils/common").assign)(a,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),u.exports=a},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,u,l){var a=r("./zlib/deflate"),s=r("./utils/common"),n=r("./utils/strings"),h=r("./zlib/messages"),w=r("./zlib/zstream"),_=Object.prototype.toString,y=0,E=-1,g=0,p=8;function v(P){if(!(this instanceof v))return new v(P);this.options=s.assign({level:E,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:g,to:""},P||{});var b=this.options;
vendor: 4,869 bytes, line 36
36b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new w,this.strm.avail_out=0;var T=a.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(T!==y)throw new Error(h[T]);if(b.header&&a.deflateSetHeader(this.strm,b.header),b.dictionary){var R;if(R=typeof b.dictionary=="string"?n.string2buf(b.dictionary):_.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(T=a.deflateSetDictionary(this.strm,R))!==y)throw new Error(h[T]);this._dict_set=!0}}function A(P,b){var T=new v(b);if(T.push(P,!0),T.err)throw T.msg||h[T.err];return T.result}v.prototype.push=function(P,b){var T,R,S=this.strm,m=this.options.chunkSize;if(this.ended)return!1;R=b===~~b?b:b===!0?4:0,typeof P=="string"?S.input=n.string2buf(P):_.call(P)==="[object ArrayBuffer]"?S.input=new Uint8Array(P):S.input=P,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new s.Buf8(m),S.next_out=0,S.avail_out=m),(T=a.deflate(S,R))!==1&&T!==y)return this.onEnd(T),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||R!==4&&R!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(s.shrinkBuf(S.output,S.next_out))):this.onData(s.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&T!==1);return R===4?(T=a.deflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===y):R!==2||(this.onEnd(y),!(S.avail_out=0))},v.prototype.onData=function(P){this.chunks.push(P)},v.prototype.onEnd=function(P){P===y&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg},l.Deflate=v,l.deflate=A,l.deflateRaw=function(P,b){return(b=b||{}).raw=!0,A(P,b)},l.gzip=function(P,b){return(b=b||{}).gzip=!0,A(P,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,u,l){var a=r("./zlib/inflate"),s=r("./utils/common"),n=r("./utils/strings"),h=r("./zlib/constants"),w=r("./zlib/messages"),_=r("./zlib/zstream"),y=r("./zlib/gzheader"),E=Object.prototype.toString;function g(v){if(!(this instanceof g))return new g(v);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},v||{});var A=this.options;A.raw&&0<=A.windowBits&&A.windowBits<16&&(A.windowBits=-A.windowBits,A.windowBits===0&&(A.windowBits=-15)),!(0<=A.windowBits&&A.windowBits<16)||v&&v.windowBits||(A.windowBits+=32),15<A.windowBits&&A.windowBits<48&&!(15&A.windowBits)&&(A.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _,this.strm.avail_out=0;var P=a.inflateInit2(this.strm,A.windowBits);if(P!==h.Z_OK)throw new Error(w[P]);this.header=new y,a.inflateGetHeader(this.strm,this.header)}function p(v,A){var P=new g(A);if(P.push(v,!0),P.err)throw P.msg||w[P.err];return P.result}g.prototype.push=function(v,A){var P,b,T,R,S,m,O=this.strm,U=this.options.chunkSize,I=this.options.dictionary,K=!1;if(this.ended)return!1;b=A===~~A?A:A===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof v=="string"?O.input=n.binstring2buf(v):E.call(v)==="[object ArrayBuffer]"?O.input=new Uint8Array(v):O.input=v,O.next_in=0,O.avail_in=O.input.length;do{if(O.avail_out===0&&(O.output=new s.Buf8(U),O.next_out=0,O.avail_out=U),(P=a.inflate(O,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&I&&(m=typeof I=="string"?n.string2buf(I):E.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,P=a.inflateSetDictionary(this.strm,m)),P===h.Z_BUF_ERROR&&K===!0&&(P=h.Z_OK,K=!1),P!==h.Z_STREAM_END&&P!==h.Z_OK)return this.onEnd(P),!(this.ended=!0);O.next_out&&(O.avail_out!==0&&P!==h.Z_STREAM_END&&(O.avail_in!==0||b!==h.Z_FINISH&&b!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(T=n.utf8border(O.output,O.next_out),R=O.next_out-T,S=n.buf2string(O.output,T),O.next_out=R,O.avail_out=U-R,R&&s.arraySet(O.output,O.output,T,R,0),this.onData(S)):this.onData(s.shrinkBuf(O.output,O.next_out)))),O.avail_in===0&&O.avail_out===0&&(K=!0)}while((0<O.avail_in||O.avail_out===0)&&P!==h.Z_STREAM_END);return P===h.Z_STREAM_END&&(b=h.Z_FINISH),b===h.Z_FINISH?(P=a.inflateEnd(this.strm),this.onEnd(P),this.ended=!0,P===h.Z_OK):b!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(O.avail_out=0))},g.prototype.onData=function(v){this.chunks.push(v)},g.prototype.onEnd=function(v){v===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},l.Inflate=g,l.inflate=p,l.inflateRaw=function(v,A){return(A=A||{}).raw=!0,p(v,A)},l.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(r,u,l){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";l.assign=function(h){for(var w=Array.prototype.slice.call(arguments,1
vendor: 15,919 bytes, line 36
36);w.length;){var _=w.shift();if(_){if(typeof _!="object")throw new TypeError(_+"must be non-object");for(var y in _)_.hasOwnProperty(y)&&(h[y]=_[y])}}return h},l.shrinkBuf=function(h,w){return h.length===w?h:h.subarray?h.subarray(0,w):(h.length=w,h)};var s={arraySet:function(h,w,_,y,E){if(w.subarray&&h.subarray)h.set(w.subarray(_,_+y),E);else for(var g=0;g<y;g++)h[E+g]=w[_+g]},flattenChunks:function(h){var w,_,y,E,g,p;for(w=y=0,_=h.length;w<_;w++)y+=h[w].length;for(p=new Uint8Array(y),w=E=0,_=h.length;w<_;w++)g=h[w],p.set(g,E),E+=g.length;return p}},n={arraySet:function(h,w,_,y,E){for(var g=0;g<y;g++)h[E+g]=w[_+g]},flattenChunks:function(h){return[].concat.apply([],h)}};l.setTyped=function(h){h?(l.Buf8=Uint8Array,l.Buf16=Uint16Array,l.Buf32=Int32Array,l.assign(l,s)):(l.Buf8=Array,l.Buf16=Array,l.Buf32=Array,l.assign(l,n))},l.setTyped(a)},{}],42:[function(r,u,l){var a=r("./common"),s=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var h=new a.Buf8(256),w=0;w<256;w++)h[w]=252<=w?6:248<=w?5:240<=w?4:224<=w?3:192<=w?2:1;function _(y,E){if(E<65537&&(y.subarray&&n||!y.subarray&&s))return String.fromCharCode.apply(null,a.shrinkBuf(y,E));for(var g="",p=0;p<E;p++)g+=String.fromCharCode(y[p]);return g}h[254]=h[254]=1,l.string2buf=function(y){var E,g,p,v,A,P=y.length,b=0;for(v=0;v<P;v++)(64512&(g=y.charCodeAt(v)))==55296&&v+1<P&&(64512&(p=y.charCodeAt(v+1)))==56320&&(g=65536+(g-55296<<10)+(p-56320),v++),b+=g<128?1:g<2048?2:g<65536?3:4;for(E=new a.Buf8(b),v=A=0;A<b;v++)(64512&(g=y.charCodeAt(v)))==55296&&v+1<P&&(64512&(p=y.charCodeAt(v+1)))==56320&&(g=65536+(g-55296<<10)+(p-56320),v++),g<128?E[A++]=g:(g<2048?E[A++]=192|g>>>6:(g<65536?E[A++]=224|g>>>12:(E[A++]=240|g>>>18,E[A++]=128|g>>>12&63),E[A++]=128|g>>>6&63),E[A++]=128|63&g);return E},l.buf2binstring=function(y){return _(y,y.length)},l.binstring2buf=function(y){for(var E=new a.Buf8(y.length),g=0,p=E.length;g<p;g++)E[g]=y.charCodeAt(g);return E},l.buf2string=function(y,E){var g,p,v,A,P=E||y.length,b=new Array(2*P);for(g=p=0;g<P;)if((v=y[g++])<128)b[p++]=v;else if(4<(A=h[v]))b[p++]=65533,g+=A-1;else{for(v&=A===2?31:A===3?15:7;1<A&&g<P;)v=v<<6|63&y[g++],A--;1<A?b[p++]=65533:v<65536?b[p++]=v:(v-=65536,b[p++]=55296|v>>10&1023,b[p++]=56320|1023&v)}return _(b,p)},l.utf8border=function(y,E){var g;for((E=E||y.length)>y.length&&(E=y.length),g=E-1;0<=g&&(192&y[g])==128;)g--;return g<0||g===0?E:g+h[y[g]]>E?g:E}},{"./common":41}],43:[function(r,u,l){u.exports=function(a,s,n,h){for(var w=65535&a|0,_=a>>>16&65535|0,y=0;n!==0;){for(n-=y=2e3<n?2e3:n;_=_+(w=w+s[h++]|0)|0,--y;);w%=65521,_%=65521}return w|_<<16|0}},{}],44:[function(r,u,l){u.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,u,l){var a=function(){for(var s,n=[],h=0;h<256;h++){s=h;for(var w=0;w<8;w++)s=1&s?3988292384^s>>>1:s>>>1;n[h]=s}return n}();u.exports=function(s,n,h,w){var _=a,y=w+h;s^=-1;for(var E=w;E<y;E++)s=s>>>8^_[255&(s^n[E])];return-1^s}},{}],46:[function(r,u,l){var a,s=r("../utils/common"),n=r("./trees"),h=r("./adler32"),w=r("./crc32"),_=r("./messages"),y=0,E=4,g=0,p=-2,v=-1,A=4,P=2,b=8,T=9,R=286,S=30,m=19,O=2*R+1,U=15,I=3,K=258,Q=K+I+1,N=42,W=113,k=1,H=2,J=3,$=4;function oe(c,V){return c.msg=_[V],V}function Z(c){return(c<<1)-(4<c?9:0)}function ee(c){for(var V=c.length;0<=--V;)c[V]=0}function q(c){var V=c.state,C=V.pending;C>c.avail_out&&(C=c.avail_out),C!==0&&(s.arraySet(c.output,V.pending_buf,V.pending_out,C,c.next_out),c.next_out+=C,V.pending_out+=C,c.total_out+=C,c.avail_out-=C,V.pending-=C,V.pending===0&&(V.pending_out=0))}function F(c,V){n._tr_flush_block(c,0<=c.block_start?c.block_start:-1,c.strstart-c.block_start,V),c.block_start=c.strstart,q(c.strm)}function X(c,V){c.pending_buf[c.pending++]=V}function Y(c,V){c.pending_buf[c.pending++]=V>>>8&255,c.pending_buf[c.pending++]=255&V}function te(c,V){var C,i,o=c.max_chain_length,d=c.strstart,L=c.prev_length,G=c.nice_match,j=c.strstart>c.w_size-Q?c.strstart-(c.w_size-Q):0,ne=c.window,se=c.w_mask,ae=c.prev,fe=c.strstart+K,me=ne[d+L-1],ve=ne[d+L];c.prev_length>=c.good_match&&(o>>=2),G>c.lookahead&&(G=c.lookahead);do if(ne[(C=V)+L]===ve&&ne[C+L-1]===me&&ne[C]===ne[d]&&ne[++C]===ne[d+1]){d+=2,C++;do;while(ne[++d]===ne[++C]&&ne[++d]===ne[++C]&&ne[++d]===ne[++C]&&ne[++d]===ne[++C]&&ne[++d]===ne[++C]&&ne[++d]===ne[++C]&&ne[++d]===ne[++C]&&ne[++d]===ne[++C]&&d<fe);if(i=K-(fe-d),d=fe-K,L<i){if(c.match_start=V,G<=(L=i))break;me=ne[d+L-1],ve=ne[d+L]}}while((V=ae[V&se])>j&&--o!=0);return L<=c.lookahead?L:c.lookahead}function pe(c){var V,C,i,o,d,L,G,j,ne,se,ae=c.w_size;do{if(o=c.window_size-c.lookahead-c.strstart,c.strstart>=ae+(ae-Q)){for(s.arraySet(c.window,c.window,ae,ae,0),c.match_start-=ae,c.strstart-=ae,c.block_start-=ae,V=C=c.hash_size;i=c.head[--V],c.head[V]=ae<=i?i-ae:0,--C;);for(V=C=ae;i=c.prev[--V],c.prev[V]=ae<=i?i-ae:0,--C;);o+=ae}if(c.strm.avail_in===0)break;if(L=c.strm,G=c.window,j=c.strstart+c.lookahead,ne=o,se=void 0,se=L.avail_in,ne<se&&(se=ne),C=se===0?0:(L.avail_in-=se,s.arraySet(G,L.input,L.next_in,se,j),L.state.wrap===1?L.adler=h(L.adler,G,se,j):L.state.wrap===2&&(L.adler=w(L.adler,G,se,j)),L.next_in+=se,L.total_in+=se,se),c.lookahead+=C,c.lookahead+c.insert>=I)for(d=c.strstart-c.insert,c.ins_h=c.window[d],c.ins_h=(c.ins_h<<c.hash_shift^c.window[d+1])&c.hash_mask;c.insert&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[d+I-1])&c.hash_mask,c.prev[d&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=d,d++,c.insert--,!(c.lookahead+c.insert<I)););}while(c.lookahead<Q&&c.strm.avail_in!==0)}function x(c,V){for(var C,i;;){if(c.lookahead<Q){if(pe(c),c.lookahead<Q&&V===y)return k;if(c.lookahead===0)break}if(C=0,c.lookahead>=I&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+I-1])&c.hash_mask,C=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),C!==0&&c.strstart-C<=c.w_size-Q&&(c.match_length=te(c,C)),c.match_length>=I)if(i=n._tr_tally(c,c.strstart-c.match_start,c.match_length-I),c.lookahead-=c.match_length,c.match_length<=c.max_lazy_match&&c.lookahead>=I){for(c.match_length--;c.strstart++,c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+I-1])&c.hash_mask,C=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart,--c.match_length!=0;);c.strstart++}else c.strstart+=c.match_length,c.match_length=0,c.ins_h=c.window[c.strstart],c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+1])&c.hash_mask;else i=n._tr_tally(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++;if(i&&(F(c,!1),c.strm.avail_out===0))return k}return c.insert=c.strstart<I-1?c.strstart:I-1,V===E?(F(c,!0),c.strm.avail_out===0?J:$):c.last_lit&&(F(c,!1),c.strm.avail_out===0)?k:H}function f(c,V){for(var C,i,o;;){if(c.lookahead<Q){if(pe(c),c.lookahead<Q&&V===y)return k;if(c.lookahead===0)break}if(C=0,c.lookahead>=I&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+I-1])&c.hash_mask,C=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),c.prev_length=c.match_length,c.prev_match=c.match_start,c.match_length=I-1,C!==0&&c.prev_length<c.max_lazy_match&&c.strstart-C<=c.w_size-Q&&(c.match_length=te(c,C),c.match_length<=5&&(c.strategy===1||c.match_length===I&&4096<c.strstart-c.match_start)&&(c.match_length=I-1)),c.prev_length>=I&&c.match_length<=c.prev_length){for(o=c.strstart+c.lookahead-I,i=n._tr_tally(c,c.strstart-1-c.prev_match,c.prev_length-I),c.lookahead-=c.prev_length-1,c.prev_length-=2;++c.strstart<=o&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+I-1])&c.hash_mask,C=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),--c.prev_length!=0;);if(c.match_available=0,c.match_length=I-1,c.strstart++,i&&(F(c,!1),c.strm.avail_out===0))return k}else if(c.match_available){if((i=n._tr_tally(c,0,c.window[c.strstart-1]))&&F(c,!1),c.strstart++,c.lookahead--,c.strm.avail_out===0)return k}else c.match_available=1,c.strstart++,c.lookahead--}return c.match_available&&(i=n._tr_tally(c,0,c.window[c.strstart-1]),c.match_available=0),c.insert=c.strstart<I-1?c.strstart:I-1,V===E?(F(c,!0),c.strm.avail_out===0?J:$):c.last_lit&&(F(c,!1),c.strm.avail_out===0)?k:H}function z(c,V,C,i,o){this.good_length=c,this.max_lazy=V,this.nice_length=C,this.max_chain=i,this.func=o}function M(){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=b,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 s.Buf16(2*O),this.dyn_dtree=new s.Buf16(2*(2*S+1)),this.bl_tree=new s.Buf16(2*(2*m+1)),ee(this.dyn_ltree),ee(this.dyn_dtree),ee(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(U+1),this.heap=new s.Buf16(2*R+1),ee(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*R+1),ee(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 re(c){var V;return c&&c.state?(c.total_in=c.total_out=0,c.data_type=P,(V=c.state).pending=0,V.pending_out=0,V.wrap<0&&(V.wrap=-V.wrap),V.status=V.wrap?N:W,c.adler=V.wrap===2?0:1,V.last_flush=y,n._tr_init(V),g):oe(c,p)}function B(c){var V=re(c);return V===g&&function(C){C.window_size=2*C.w_size,ee(C.head),C.max_lazy_match=a[C.level].max_lazy,C.good_match=a[C.level].good_length,C.nice_match=a[C.level].nice_length,C.max_chain_length=a[C.level].max_chain,C.strstart=0,C.block_start=0,C.lookahead=0,C.insert=0,C.match_length=C.prev_length=I-1,C.match_available=0,C.ins_h=0}(c.state),V}function D(c,V,C,i,o,d){if(!c)return p;var L=1;if(V===v&&(V=6),i<0?(L=0,i=-i):15<i&&(L=2,i-=16),o<1||T<o||C!==b||i<8||15<i||V<0||9<V||d<0||A<d)return oe(c,p);i===8&&(i=9);var G=new M;return(c.state=G).strm=c,G.wrap=L,G.gzhead=null,G.w_bits=i,G.w_size=1<<G.w_bits,G.w_mask=G.w_size-1,G.hash_bits=o+7,G.hash_size=1<<G.hash_bits,G.hash_mask=G.hash_size-1,G.hash_shift=~~((G.hash_bits+I-1)/I),G.window=new s.Buf8(2*G.w_size),G.head=new s.Buf16(G.hash_size),G.prev=new s.Buf16(G.w_size),G.lit_bufsize=1<<o+6,G.pending_buf_size=4*G.lit_bufsize,G.pending_buf=new s.Buf8(G.pending_buf_size),G.d_buf=1*G.lit_bufsize,G.l_buf=3*G.lit_bufsize,G.level=V,G.strategy=d,G.method=C,B(c)}a=[new z(0,0,0,0,function(c,V){var C=65535;for(C>c.pending_buf_size-5&&(C=c.pending_buf_size-5);;){if(c.lookahead<=1){if(pe(c),c.lookahead===0&&V===y)return k;if(c.lookahead===0)break}c.strstart+=c.lookahead,c.lookahead=0;var i=c.block_start+C;if((c.strstart===0||c.strstart>=i)&&(c.lookahead=c.strstart-i,c.strstart=i,F(c,!1),c.strm.avail_out===0)||c.strstart-c.block_start>=c.w_size-Q&&(F(c,!1),c.strm.avail_out===0))return k}return c.insert=0,V===E?(F(c,!0),c.strm.avail_out===0?J:$):(c.strstart>c.block_start&&(F(c,!1),c.strm.avail_out),k)}),new z(4,4,8,4,x),new z(4,5,16,8,x),new z(4,6,32,32,x),new z(4,4,16,16,f),new z(8,16,32,32,f),new z(8,16,128,128,f),new z(8,32,128,256,f),new z(32,128,258,1024,f),new z(32,258,258,4096,f)],l.deflateInit=function(c,V){return D(c,V,b,15,8,0)},l.deflateInit2=D,l.deflateReset=B,l.deflateResetKeep=re,l.deflateSetHeader=function(c,V){return c&&c.state?c.state.wrap!==2?p:(c.state.gzhead=V,g):p},l.deflate=function(c,V){var C,i,o,d;if(!c||!c.state||5<V||V<0)return c?oe(c,p):p;if(i=c.state,!c.output||!c.input&&c.avail_in!==0||i.status===666&&V!==E)return oe(c,c.avail_out===0?-5:p);if(i.strm=c,C=i.last_flush,i.last_flush=V,i.status===N)if(i.wrap===2)c.adler=0,X(i,31),X(i,139),X(i,8),i.gzhead?(X(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),X(i,255&i.gzhead.time),X(i,i.gzhead.time>>8&255),X(i,i.gzhead.time>>16&255),X(i,i.gzhead.time>>24&255),X(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),X(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(X(i,255&i.gzhead.extra.length),X(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(c.adler=w(c.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(X(i,0),X(i,0),X(i,0),X(i,0),X(i,0),X(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),X(i,3),i.status=W);else{var L=b+(i.w_bits-8<<4)<<8;L|=(2<=i.strategy||i.level<2?0:i.level<6?1:i.level===6?2:3)<<6,i.strstart!==0&&(L|=32),L+=31-L%31,i.status=W,Y(i,L),i.strstart!==0&&(Y(i,c.adler>>>16),Y(i,65535&c.adler)),c.adler=1}if(i.status===69)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(c.adler=w(c.adler,i.pending_buf,i.pending-o,o)),q(c),o=i.pending,i.pending!==i.pending_buf_size));)X(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(c.adler=w(c.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(i.status===73)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(c.adler=w(c.adler,i.pending_buf,i.pending-o,o)),q(c),o=i.pending,i.pending===i.pending_buf_size)){d=1;break}d=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,X(i,d)}while(d!==0);i.gzhead.hcrc&&i.pending>o&&(c.adler=w(c.adler,i.pending_buf,i.pending-o,o)),d===0&&(i.gzindex=0,i.status=91)}else i.status=91;if(i.status===91)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(c.adler=w(c.adler,i.pending_buf,i.pending-o,o)),q(c),o=i.pending,i.pending===i.pending_buf_size)){d=1;break}d=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,X(i,d)}while(d!==0);i.gzhead.hcrc&&i.pending>o&&(c.adler=w(c.adler,i.pending_buf,i.pending-o,o)),d===0&&(i.status=103)}else i.status=103;if(i.status===103&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&q(c),i.pending+2<=i.pending_buf_size&&(X(i,255&c.adler),X(i,c.adler>>8&255),c.adler=0,i.status=W)):i.status=W),i.pending!==0){if(q(c),c.avail_out===0)return i.last_flush=-1,g}else if(c.avail_in===0&&Z(V)<=Z(C)&&V!==E)return oe(c,-5);if(i.status===666&&c.avail_in!==0)return oe(c,-5);if(c.avail_in!==0||i.lookahead!==0||V!==y&&i.status!==666){var G=i.strategy===2?function(j,ne){for(var se;;){if(j.lookahead===0&&(pe(j),j.lookahead===0)){if(ne===y)return k;break}if(j.match_length=0,se=n._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++,se&&(F(j,!1),j.strm.avail_out===0))return k}return j.insert=0,ne===E?(F(j,!0),j.strm.avail_out===0?J:$):j.last_lit&&(F(j,!1),j.strm.avail_out===0)?k:H}(i,V):i.strategy===3?function(j,ne){for(var se,ae,fe,me,ve=j.window;;){if(j.lookahead<=K){if(pe(j),j.lookahead<=K&&ne===y)return k;if(j.lookahead===0)break}if(j.match_length=0,j.lookahead>=I&&0<j.strstart&&(ae=ve[fe=j.strstart-1])===ve[++fe]&&ae===ve[++fe]&&ae===ve[++fe]){me=j.strstart+K;do;while(ae===ve[++fe]&&ae===ve[++fe]&&ae===ve[++fe]&&ae===ve[++fe]&&ae===ve[++fe]&&ae===ve[++fe]&&ae===ve[++fe]&&ae===ve[++fe]&&fe<me);j.match_length=K-(me-fe),j.match_length>j.lookahead&&(j.match_length=j.lookahead)}if(j.match_length>=I?(se=n._tr_tally(j,1,j.match_length-I),j.lookahead-=j.match_length,j.strstart+=j.match_length,j.match_length=0):(se=n._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++),se&&(F(j,!1),j.strm.avail_out===0))return k}return j.insert=0,ne===E?(F(j,!0),j.strm.avail_out===0?J:$):j.last_lit&&(F(j,
vendor: 5,903 bytes, line 36
36!1),j.strm.avail_out===0)?k:H}(i,V):a[i.level].func(i,V);if(G!==J&&G!==$||(i.status=666),G===k||G===J)return c.avail_out===0&&(i.last_flush=-1),g;if(G===H&&(V===1?n._tr_align(i):V!==5&&(n._tr_stored_block(i,0,0,!1),V===3&&(ee(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),q(c),c.avail_out===0))return i.last_flush=-1,g}return V!==E?g:i.wrap<=0?1:(i.wrap===2?(X(i,255&c.adler),X(i,c.adler>>8&255),X(i,c.adler>>16&255),X(i,c.adler>>24&255),X(i,255&c.total_in),X(i,c.total_in>>8&255),X(i,c.total_in>>16&255),X(i,c.total_in>>24&255)):(Y(i,c.adler>>>16),Y(i,65535&c.adler)),q(c),0<i.wrap&&(i.wrap=-i.wrap),i.pending!==0?g:1)},l.deflateEnd=function(c){var V;return c&&c.state?(V=c.state.status)!==N&&V!==69&&V!==73&&V!==91&&V!==103&&V!==W&&V!==666?oe(c,p):(c.state=null,V===W?oe(c,-3):g):p},l.deflateSetDictionary=function(c,V){var C,i,o,d,L,G,j,ne,se=V.length;if(!c||!c.state||(d=(C=c.state).wrap)===2||d===1&&C.status!==N||C.lookahead)return p;for(d===1&&(c.adler=h(c.adler,V,se,0)),C.wrap=0,se>=C.w_size&&(d===0&&(ee(C.head),C.strstart=0,C.block_start=0,C.insert=0),ne=new s.Buf8(C.w_size),s.arraySet(ne,V,se-C.w_size,C.w_size,0),V=ne,se=C.w_size),L=c.avail_in,G=c.next_in,j=c.input,c.avail_in=se,c.next_in=0,c.input=V,pe(C);C.lookahead>=I;){for(i=C.strstart,o=C.lookahead-(I-1);C.ins_h=(C.ins_h<<C.hash_shift^C.window[i+I-1])&C.hash_mask,C.prev[i&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=i,i++,--o;);C.strstart=i,C.lookahead=I-1,pe(C)}return C.strstart+=C.lookahead,C.block_start=C.strstart,C.insert=C.lookahead,C.lookahead=0,C.match_length=C.prev_length=I-1,C.match_available=0,c.next_in=G,c.input=j,c.avail_in=L,C.wrap=d,g},l.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,u,l){u.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,u,l){u.exports=function(a,s){var n=a.state,h=a.next_in,w,_,y,E,g,p,v,A,P,b,T,R,S,m,O,U,I,K,Q,N,W,k=a.input,H;w=h+(a.avail_in-5),_=a.next_out,H=a.output,y=_-(s-a.avail_out),E=_+(a.avail_out-257),g=n.dmax,p=n.wsize,v=n.whave,A=n.wnext,P=n.window,b=n.hold,T=n.bits,R=n.lencode,S=n.distcode,m=(1<<n.lenbits)-1,O=(1<<n.distbits)-1;e:do{T<15&&(b+=k[h++]<<T,T+=8,b+=k[h++]<<T,T+=8),U=R[b&m];t:for(;;){if(b>>>=I=U>>>24,T-=I,(I=U>>>16&255)===0)H[_++]=65535&U;else{if(!(16&I)){if(!(64&I)){U=R[(65535&U)+(b&(1<<I)-1)];continue t}if(32&I){n.mode=12;break e}a.msg="invalid literal/length code",n.mode=30;break e}K=65535&U,(I&=15)&&(T<I&&(b+=k[h++]<<T,T+=8),K+=b&(1<<I)-1,b>>>=I,T-=I),T<15&&(b+=k[h++]<<T,T+=8,b+=k[h++]<<T,T+=8),U=S[b&O];r:for(;;){if(b>>>=I=U>>>24,T-=I,!(16&(I=U>>>16&255))){if(!(64&I)){U=S[(65535&U)+(b&(1<<I)-1)];continue r}a.msg="invalid distance code",n.mode=30;break e}if(Q=65535&U,T<(I&=15)&&(b+=k[h++]<<T,(T+=8)<I&&(b+=k[h++]<<T,T+=8)),g<(Q+=b&(1<<I)-1)){a.msg="invalid distance too far back",n.mode=30;break e}if(b>>>=I,T-=I,(I=_-y)<Q){if(v<(I=Q-I)&&n.sane){a.msg="invalid distance too far back",n.mode=30;break e}if(W=P,(N=0)===A){if(N+=p-I,I<K){for(K-=I;H[_++]=P[N++],--I;);N=_-Q,W=H}}else if(A<I){if(N+=p+A-I,(I-=A)<K){for(K-=I;H[_++]=P[N++],--I;);if(N=0,A<K){for(K-=I=A;H[_++]=P[N++],--I;);N=_-Q,W=H}}}else if(N+=A-I,I<K){for(K-=I;H[_++]=P[N++],--I;);N=_-Q,W=H}for(;2<K;)H[_++]=W[N++],H[_++]=W[N++],H[_++]=W[N++],K-=3;K&&(H[_++]=W[N++],1<K&&(H[_++]=W[N++]))}else{for(N=_-Q;H[_++]=H[N++],H[_++]=H[N++],H[_++]=H[N++],2<(K-=3););K&&(H[_++]=H[N++],1<K&&(H[_++]=H[N++]))}break}}break}}while(h<w&&_<E);h-=K=T>>3,b&=(1<<(T-=K<<3))-1,a.next_in=h,a.next_out=_,a.avail_in=h<w?w-h+5:5-(h-w),a.avail_out=_<E?E-_+257:257-(_-E),n.hold=b,n.bits=T}},{}],49:[function(r,u,l){var a=r("../utils/common"),s=r("./adler32"),n=r("./crc32"),h=r("./inffast"),w=r("./inftrees"),_=1,y=2,E=0,g=-2,p=1,v=852,A=592;function P(N){return(N>>>24&255)+(N>>>8&65280)+((65280&N)<<8)+((255&N)<<24)}function b(){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 a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function T(N){var W;return N&&N.state?(W=N.state,N.total_in=N.total_out=W.total=0,N.msg="",W.wrap&&(N.adler=1&W.wrap),W.mode=p,W.last=0,W.havedict=0,W.dmax=32768,W.head=null,W.hold=0,W.bits=0,W.lencode=W.lendyn=new a.Buf32(v),W.distcode=W.distdyn=new a.Buf32(A),W.sane=1,W.back=-1,E):g}function R(N){var W;return N&&N.state?((W=N.state).wsize=0,W.whave=0,W.wnext=0,T(N)):g}function S(N,W){var k,H;return N&&N.state?(H=N.state,W<0?(k=0,W=-W):(k=1+(W>>4),W<48&&(W&=15)),W&&(W<8||15<W)?g:(H.window!==null&&H.wbits!==W&&(H.window=null),H.wrap=k,H.wbits=W,R(N))):g}function m(N,W){var k,H;return N?(H=new b,(N.state=H).window=null,(k=S(N,W))!==E&&(N.state=null),k):g}var O,U,I=!0;function K(N){if(I){var W;for(O=new a.Buf32(512),U=new a.Buf32(32),W=0;W<144;)N.lens[W++]=8;for(;W<256;)N.lens[W++]=9;for(;W<280;)N.lens[W++]=7;for(;W<288;)N.lens[W++]=8;for(w(_,N.lens,0,288,O,0,N.work,{bits:9}),W=0;W<32;)N.lens[W++]=5;w(y,N.lens,0,32,U,0,N.work,{bits:5}),I=!1}N.lencode=O,N.lenbits=9,N.distcode=U,N.distbits=5}function Q(N,W,k,H){var J,$=N.state;return $.window===null&&($.wsize=1<<$.wbits,$.wnext=0,$.whave=0,$.window=new a.Buf8($.wsize)),H>=$.wsize?(a.arraySet($.window,W,k-$.wsize,$.wsize,0),$.wnext=0,$.whave=$.wsize):(H<(J=$.wsize-$.wnext)&&(J=H),a.arraySet($.window,W,k-H,J,$.wnext),(H-=J)?(a.arraySet($.window,W,k-H,H,0),$.wnext=H,$.whave=$.wsize):($.wnext+=J,$.wnext===$.wsize&&($.wnext=0),$.whave<$.wsize&&($.whave+=J))),0}
vendor: 4,084 bytes, line 36
36l.inflateReset=R,l.inflateReset2=S,l.inflateResetKeep=T,l.inflateInit=function(N){return m(N,15)},l.inflateInit2=m,l.inflate=function(N,W){var k,H,J,$,oe,Z,ee,q,F,X,Y,te,pe,x,f,z,M,re,B,D,c,V,C,i,o=0,d=new a.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!N||!N.state||!N.output||!N.input&&N.avail_in!==0)return g;(k=N.state).mode===12&&(k.mode=13),oe=N.next_out,J=N.output,ee=N.avail_out,$=N.next_in,H=N.input,Z=N.avail_in,q=k.hold,F=k.bits,X=Z,Y=ee,V=E;e:for(;;)switch(k.mode){case p:if(k.wrap===0){k.mode=13;break}for(;F<16;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}if(2&k.wrap&&q===35615){d[k.check=0]=255&q,d[1]=q>>>8&255,k.check=n(k.check,d,2,0),F=q=0,k.mode=2;break}if(k.flags=0,k.head&&(k.head.done=!1),!(1&k.wrap)||(((255&q)<<8)+(q>>8))%31){N.msg="incorrect header check",k.mode=30;break}if((15&q)!=8){N.msg="unknown compression method",k.mode=30;break}if(F-=4,c=8+(15&(q>>>=4)),k.wbits===0)k.wbits=c;else if(c>k.wbits){N.msg="invalid window size",k.mode=30;break}k.dmax=1<<c,N.adler=k.check=1,k.mode=512&q?10:12,F=q=0;break;case 2:for(;F<16;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}if(k.flags=q,(255&k.flags)!=8){N.msg="unknown compression method",k.mode=30;break}if(57344&k.flags){N.msg="unknown header flags set",k.mode=30;break}k.head&&(k.head.text=q>>8&1),512&k.flags&&(d[0]=255&q,d[1]=q>>>8&255,k.check=n(k.check,d,2,0)),F=q=0,k.mode=3;case 3:for(;F<32;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}k.head&&(k.head.time=q),512&k.flags&&(d[0]=255&q,d[1]=q>>>8&255,d[2]=q>>>16&255,d[3]=q>>>24&255,k.check=n(k.check,d,4,0)),F=q=0,k.mode=4;case 4:for(;F<16;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}k.head&&(k.head.xflags=255&q,k.head.os=q>>8),512&k.flags&&(d[0]=255&q,d[1]=q>>>8&255,k.check=n(k.check,d,2,0)),F=q=0,k.mode=5;case 5:if(1024&k.flags){for(;F<16;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}k.length=q,k.head&&(k.head.extra_len=q),512&k.flags&&(d[0]=255&q,d[1]=q>>>8&255,k.check=n(k.check,d,2,0)),F=q=0}else k.head&&(k.head.extra=null);k.mode=6;case 6:if(1024&k.flags&&(Z<(te=k.length)&&(te=Z),te&&(k.head&&(c=k.head.extra_len-k.length,k.head.extra||(k.head.extra=new Array(k.head.extra_len)),a.arraySet(k.head.extra,H,$,te,c)),512&k.flags&&(k.check=n(k.check,H,te,$)),Z-=te,$+=te,k.length-=te),k.length))break e;k.length=0,k.mode=7;case 7:if(2048&k.flags){if(Z===0)break e;for(te=0;c=H[$+te++],k.head&&c&&k.length<65536&&(k.head.name+=String.fromCharCode(c)),c&&te<Z;);if(512&k.flags&&(k.check=n(k.check,H,te,$)),Z-=te,$+=te,c)break e}else k.head&&(k.head.name=null);k.length=0,k.mode=8;case 8:if(4096&k.flags){if(Z===0)break e;for(te=0;c=H[$+te++],k.head&&c&&k.length<65536&&(k.head.comment+=String.fromCharCode(c)),c&&te<Z;);if(512&k.flags&&(k.check=n(k.check,H,te,$)),Z-=te,$+=te,c)break e}else k.head&&(k.head.comment=null);k.mode=9;case 9:if(512&k.flags){for(;F<16;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}if(q!==(65535&k.check)){N.msg="header crc mismatch",k.mode=30;break}F=q=0}k.head&&(k.head.hcrc=k.flags>>9&1,k.head.done=!0),N.adler=k.check=0,k.mode=12;break;case 10:for(;F<32;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}N.adler=k.check=P(q),F=q=0,k.mode=11;case 11:if(k.havedict===0)return N.next_out=oe,N.avail_out=ee,N.next_in=$,N.avail_in=Z,k.hold=q,k.bits=F,2;N.adler=k.check=1,k.mode=12;case 12:if(W===5||W===6)break e;case 13:if(k.last){q>>>=7&F,F-=7&F,k.mode=27;break}for(;F<3;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}switch(k.last=1&q,F-=1,3&(q>>>=1)){case 0:k.mode=14;break;case 1:if(K(k),k.mode=20,W!==6)break;q>>>=2,F-=2;break e;case 2:k.mode=17;break;case 3:N.msg="invalid block type",k.mode=30}q>>>=2,F-=2;break;case 14:for(q>>>=7&F,F-=7&F;F<32;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}if((65535&q)!=(q>>>16^65535)){N.msg="invalid stored block lengths",k.mode=30;break}if(k.length=65535&q,F=q=0,k.mode=15,W===6)break e;case 15:k.mode=16;case 16:if(te=k.length){if(Z<te&&(te=Z),ee<te&&(te=ee),te===0)break e;a.arraySet(J,H,$,te,oe),Z-=te,$+=te,ee-=te,oe+=te,k.length-=te;break}k.mode=12;break;case 17:for(;F<14;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}if(k.nlen=257+(31&q),q>>>=5,F-=5,k.ndist=1+(31&q),q>>>=5,F-=5,k.ncode=4+(15&q),q>>>
vendor: 6,116 bytes, line 36
36=4,F-=4,286<k.nlen||30<k.ndist){N.msg="too many length or distance symbols",k.mode=30;break}k.have=0,k.mode=18;case 18:for(;k.have<k.ncode;){for(;F<3;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}k.lens[L[k.have++]]=7&q,q>>>=3,F-=3}for(;k.have<19;)k.lens[L[k.have++]]=0;if(k.lencode=k.lendyn,k.lenbits=7,C={bits:k.lenbits},V=w(0,k.lens,0,19,k.lencode,0,k.work,C),k.lenbits=C.bits,V){N.msg="invalid code lengths set",k.mode=30;break}k.have=0,k.mode=19;case 19:for(;k.have<k.nlen+k.ndist;){for(;z=(o=k.lencode[q&(1<<k.lenbits)-1])>>>16&255,M=65535&o,!((f=o>>>24)<=F);){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}if(M<16)q>>>=f,F-=f,k.lens[k.have++]=M;else{if(M===16){for(i=f+2;F<i;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}if(q>>>=f,F-=f,k.have===0){N.msg="invalid bit length repeat",k.mode=30;break}c=k.lens[k.have-1],te=3+(3&q),q>>>=2,F-=2}else if(M===17){for(i=f+3;F<i;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}F-=f,c=0,te=3+(7&(q>>>=f)),q>>>=3,F-=3}else{for(i=f+7;F<i;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}F-=f,c=0,te=11+(127&(q>>>=f)),q>>>=7,F-=7}if(k.have+te>k.nlen+k.ndist){N.msg="invalid bit length repeat",k.mode=30;break}for(;te--;)k.lens[k.have++]=c}}if(k.mode===30)break;if(k.lens[256]===0){N.msg="invalid code -- missing end-of-block",k.mode=30;break}if(k.lenbits=9,C={bits:k.lenbits},V=w(_,k.lens,0,k.nlen,k.lencode,0,k.work,C),k.lenbits=C.bits,V){N.msg="invalid literal/lengths set",k.mode=30;break}if(k.distbits=6,k.distcode=k.distdyn,C={bits:k.distbits},V=w(y,k.lens,k.nlen,k.ndist,k.distcode,0,k.work,C),k.distbits=C.bits,V){N.msg="invalid distances set",k.mode=30;break}if(k.mode=20,W===6)break e;case 20:k.mode=21;case 21:if(6<=Z&&258<=ee){N.next_out=oe,N.avail_out=ee,N.next_in=$,N.avail_in=Z,k.hold=q,k.bits=F,h(N,Y),oe=N.next_out,J=N.output,ee=N.avail_out,$=N.next_in,H=N.input,Z=N.avail_in,q=k.hold,F=k.bits,k.mode===12&&(k.back=-1);break}for(k.back=0;z=(o=k.lencode[q&(1<<k.lenbits)-1])>>>16&255,M=65535&o,!((f=o>>>24)<=F);){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}if(z&&!(240&z)){for(re=f,B=z,D=M;z=(o=k.lencode[D+((q&(1<<re+B)-1)>>re)])>>>16&255,M=65535&o,!(re+(f=o>>>24)<=F);){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}q>>>=re,F-=re,k.back+=re}if(q>>>=f,F-=f,k.back+=f,k.length=M,z===0){k.mode=26;break}if(32&z){k.back=-1,k.mode=12;break}if(64&z){N.msg="invalid literal/length code",k.mode=30;break}k.extra=15&z,k.mode=22;case 22:if(k.extra){for(i=k.extra;F<i;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}k.length+=q&(1<<k.extra)-1,q>>>=k.extra,F-=k.extra,k.back+=k.extra}k.was=k.length,k.mode=23;case 23:for(;z=(o=k.distcode[q&(1<<k.distbits)-1])>>>16&255,M=65535&o,!((f=o>>>24)<=F);){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}if(!(240&z)){for(re=f,B=z,D=M;z=(o=k.distcode[D+((q&(1<<re+B)-1)>>re)])>>>16&255,M=65535&o,!(re+(f=o>>>24)<=F);){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}q>>>=re,F-=re,k.back+=re}if(q>>>=f,F-=f,k.back+=f,64&z){N.msg="invalid distance code",k.mode=30;break}k.offset=M,k.extra=15&z,k.mode=24;case 24:if(k.extra){for(i=k.extra;F<i;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}k.offset+=q&(1<<k.extra)-1,q>>>=k.extra,F-=k.extra,k.back+=k.extra}if(k.offset>k.dmax){N.msg="invalid distance too far back",k.mode=30;break}k.mode=25;case 25:if(ee===0)break e;if(te=Y-ee,k.offset>te){if((te=k.offset-te)>k.whave&&k.sane){N.msg="invalid distance too far back",k.mode=30;break}pe=te>k.wnext?(te-=k.wnext,k.wsize-te):k.wnext-te,te>k.length&&(te=k.length),x=k.window}else x=J,pe=oe-k.offset,te=k.length;for(ee<te&&(te=ee),ee-=te,k.length-=te;J[oe++]=x[pe++],--te;);k.length===0&&(k.mode=21);break;case 26:if(ee===0)break e;J[oe++]=k.length,ee--,k.mode=21;break;case 27:if(k.wrap){for(;F<32;){if(Z===0)break e;Z--,q|=H[$++]<<F,F+=8}if(Y-=ee,N.total_out+=Y,k.total+=Y,Y&&(N.adler=k.check=k.flags?n(k.check,J,Y,oe-Y):s(k.check,J,Y,oe-Y)),Y=ee,(k.flags?q:P(q))!==k.check){N.msg="incorrect data check",k.mode=30;break}F=q=0}k.mode=28;case 28:if(k.wrap&&k.flags){for(;F<32;){if(Z===0)break e;Z--,q+=H[$++]<<F,F+=8}if(q!==(4294967295&k.total)){N.msg="incorrect length check",k.mode=30;break}F=q=0}k.mode=29;case 29:V=1;break e;case 30:V=-3;break e;case 31:return-4;case 32:default:return g}return N.next_out=oe,N.avail_out=ee,N.next_in=$,N.avail_in=Z,k.hold=q,k.bits=F,(k.wsize||Y!==N.avail_out&&k.mode<30&&(k.mode<27||W!==4))&&Q(N,N.output,N.next_out,Y-N.avail_out)?(k.mode=31,-4):(X-=N.avail_in,Y-=N.avail_out,N.total_in+=X,N.total_out+=Y,k.total+=Y,k.wrap&&Y&&(N.adler=k.check=k.flags?n(k.check,J,Y,N.next_out-Y):s(k.check,J,Y,N.next_out-Y)),N.data_type=k.bits+(k.last?64:0)+(k.mode===12?128:0)+(k.mode===20||k.mode===15?256:0),(X==0&&Y===0||W===4)&&V===E&&(V=-5),V)},l.inflateEnd=function(N){if(!N||!N.state)return g;var W=N.state;return W.window&&(W.window=null),N.state=null,E},l.inflateGetHeader=function(N,W){var k;return N&&N.state&&2&(k=N.state).wrap?((k.head=W).done=!1,E):g},l.inflateSetDictionary=function(N,W){var k,H=W.length;return N&&N.state?(k=N.state).wrap!==0&&k.mode!==11?g:k.mode===11&&s(1,W,H,0)!==k.check?-3:Q(N,W,H,H)?(k.mode=31,-4):(k.havedict=1,E):g},l.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,u,l){var a=r("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],h=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],w=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];u.exports=function(_,y,E,g,p,v,A,P){var b,T,R,S,m,O,U,I,K,Q=P.bits,N=0,W=0,k=0,H=0,J=0,$=0,oe=0,Z=0,ee=0,q=0,F=null,X=0,Y=new a.Buf16(16),te=new a.Buf16(16),pe=null,x=0;for(N=0;N<=15;N++)Y[N]=0;for(W=0;W<g;W++)Y[y[E+W]]++;for(J=Q,H=15;1<=H&&Y[H]===0;H--);if(H<J&&(J=H),H===0)return p[v++]=20971520,p[v++]=20971520,P.bits=1,0;for(k=1;k<H&&Y[k]===0;k++);for(J<k&&(J=k),N=Z=1;N<=15;N++)if(Z<<=1,(Z-=Y[N])<0)return-1;if(0<Z&&(_===0||H!==1))return-1;for(te[1]=0,N=1;N<15;N++)te[N+1]=te[N]+Y[N];for(W=0;W<g;W++)y[E+W]!==0&&(A[te[y[E+W]]++]=W);
vendor: 9,344 bytes, line 36
36if(O=_===0?(F=pe=A,19):_===1?(F=s,X-=257,pe=n,x-=257,256):(F=h,pe=w,-1),N=k,m=v,oe=W=q=0,R=-1,S=(ee=1<<($=J))-1,_===1&&852<ee||_===2&&592<ee)return 1;for(;;){for(U=N-oe,K=A[W]<O?(I=0,A[W]):A[W]>O?(I=pe[x+A[W]],F[X+A[W]]):(I=96,0),b=1<<N-oe,k=T=1<<$;p[m+(q>>oe)+(T-=b)]=U<<24|I<<16|K|0,T!==0;);for(b=1<<N-1;q&b;)b>>=1;if(b!==0?(q&=b-1,q+=b):q=0,W++,--Y[N]==0){if(N===H)break;N=y[E+A[W]]}if(J<N&&(q&S)!==R){for(oe===0&&(oe=J),m+=k,Z=1<<($=N-oe);$+oe<H&&!((Z-=Y[$+oe])<=0);)$++,Z<<=1;if(ee+=1<<$,_===1&&852<ee||_===2&&592<ee)return 1;p[R=q&S]=J<<24|$<<16|m-v|0}}return q!==0&&(p[m+q]=N-oe<<24|4194304),P.bits=J,0}},{"../utils/common":41}],51:[function(r,u,l){u.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,u,l){var a=r("../utils/common"),s=0,n=1;function h(o){for(var d=o.length;0<=--d;)o[d]=0}var w=0,_=29,y=256,E=y+1+_,g=30,p=19,v=2*E+1,A=15,P=16,b=7,T=256,R=16,S=17,m=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],U=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Q=new Array(2*(E+2));h(Q);var N=new Array(2*g);h(N);var W=new Array(512);h(W);var k=new Array(256);h(k);var H=new Array(_);h(H);var J,$,oe,Z=new Array(g);function ee(o,d,L,G,j){this.static_tree=o,this.extra_bits=d,this.extra_base=L,this.elems=G,this.max_length=j,this.has_stree=o&&o.length}function q(o,d){this.dyn_tree=o,this.max_code=0,this.stat_desc=d}function F(o){return o<256?W[o]:W[256+(o>>>7)]}function X(o,d){o.pending_buf[o.pending++]=255&d,o.pending_buf[o.pending++]=d>>>8&255}function Y(o,d,L){o.bi_valid>P-L?(o.bi_buf|=d<<o.bi_valid&65535,X(o,o.bi_buf),o.bi_buf=d>>P-o.bi_valid,o.bi_valid+=L-P):(o.bi_buf|=d<<o.bi_valid&65535,o.bi_valid+=L)}function te(o,d,L){Y(o,L[2*d],L[2*d+1])}function pe(o,d){for(var L=0;L|=1&o,o>>>=1,L<<=1,0<--d;);return L>>>1}function x(o,d,L){var G,j,ne=new Array(A+1),se=0;for(G=1;G<=A;G++)ne[G]=se=se+L[G-1]<<1;for(j=0;j<=d;j++){var ae=o[2*j+1];ae!==0&&(o[2*j]=pe(ne[ae]++,ae))}}function f(o){var d;for(d=0;d<E;d++)o.dyn_ltree[2*d]=0;for(d=0;d<g;d++)o.dyn_dtree[2*d]=0;for(d=0;d<p;d++)o.bl_tree[2*d]=0;o.dyn_ltree[2*T]=1,o.opt_len=o.static_len=0,o.last_lit=o.matches=0}function z(o){8<o.bi_valid?X(o,o.bi_buf):0<o.bi_valid&&(o.pending_buf[o.pending++]=o.bi_buf),o.bi_buf=0,o.bi_valid=0}function M(o,d,L,G){var j=2*d,ne=2*L;return o[j]<o[ne]||o[j]===o[ne]&&G[d]<=G[L]}function re(o,d,L){for(var G=o.heap[L],j=L<<1;j<=o.heap_len&&(j<o.heap_len&&M(d,o.heap[j+1],o.heap[j],o.depth)&&j++,!M(d,G,o.heap[j],o.depth));)o.heap[L]=o.heap[j],L=j,j<<=1;o.heap[L]=G}function B(o,d,L){var G,j,ne,se,ae=0;if(o.last_lit!==0)for(;G=o.pending_buf[o.d_buf+2*ae]<<8|o.pending_buf[o.d_buf+2*ae+1],j=o.pending_buf[o.l_buf+ae],ae++,G===0?te(o,j,d):(te(o,(ne=k[j])+y+1,d),(se=O[ne])!==0&&Y(o,j-=H[ne],se),te(o,ne=F(--G),L),(se=U[ne])!==0&&Y(o,G-=Z[ne],se)),ae<o.last_lit;);te(o,T,d)}function D(o,d){var L,G,j,ne=d.dyn_tree,se=d.stat_desc.static_tree,ae=d.stat_desc.has_stree,fe=d.stat_desc.elems,me=-1;for(o.heap_len=0,o.heap_max=v,L=0;L<fe;L++)ne[2*L]!==0?(o.heap[++o.heap_len]=me=L,o.depth[L]=0):ne[2*L+1]=0;for(;o.heap_len<2;)ne[2*(j=o.heap[++o.heap_len]=me<2?++me:0)]=1,o.depth[j]=0,o.opt_len--,ae&&(o.static_len-=se[2*j+1]);for(d.max_code=me,L=o.heap_len>>1;1<=L;L--)re(o,ne,L);for(j=fe;L=o.heap[1],o.heap[1]=o.heap[o.heap_len--],re(o,ne,1),G=o.heap[1],o.heap[--o.heap_max]=L,o.heap[--o.heap_max]=G,ne[2*j]=ne[2*L]+ne[2*G],o.depth[j]=(o.depth[L]>=o.depth[G]?o.depth[L]:o.depth[G])+1,ne[2*L+1]=ne[2*G+1]=j,o.heap[1]=j++,re(o,ne,1),2<=o.heap_len;);o.heap[--o.heap_max]=o.heap[1],function(ve,Ie){var Qe,He,Rt,Pe,Vt,ur,$e=Ie.dyn_tree,Wr=Ie.max_code,fi=Ie.stat_desc.static_tree,di=Ie.stat_desc.has_stree,pi=Ie.stat_desc.extra_bits,Hr=Ie.stat_desc.extra_base,Ct=Ie.stat_desc.max_length,Kt=0;for(Pe=0;Pe<=A;Pe++)ve.bl_count[Pe]=0;for($e[2*ve.heap[ve.heap_max]+1]=0,Qe=ve.heap_max+1;Qe<v;Qe++)Ct<(Pe=$e[2*$e[2*(He=ve.heap[Qe])+1]+1]+1)&&(Pe=Ct,Kt++),$e[2*He+1]=Pe,Wr<He||(ve.bl_count[Pe]++,Vt=0,Hr<=He&&(Vt=pi[He-Hr]),ur=$e[2*He],ve.opt_len+=ur*(Pe+Vt),di&&(ve.static_len+=ur*(fi[2*He+1]+Vt)));if(Kt!==0){do{for(Pe=Ct-1;ve.bl_count[Pe]===0;)Pe--;ve.bl_count[Pe]--,ve.bl_count[Pe+1]+=2,ve.bl_count[Ct]--,Kt-=2}while(0<Kt);for(Pe=Ct;Pe!==0;Pe--)for(He=ve.bl_count[Pe];He!==0;)Wr<(Rt=ve.heap[--Qe])||($e[2*Rt+1]!==Pe&&(ve.opt_len+=(Pe-$e[2*Rt+1])*$e[2*Rt],$e[2*Rt+1]=Pe),He--)}}(o,d),x(ne,me,o.bl_count)}function c(o,d,L){var G,j,ne=-1,se=d[1],ae=0,fe=7,me=4;for(se===0&&(fe=138,me=3),d[2*(L+1)+1]=65535,G=0;G<=L;G++)j=se,se=d[2*(G+1)+1],++ae<fe&&j===se||(ae<me?o.bl_tree[2*j]+=ae:j!==0?(j!==ne&&o.bl_tree[2*j]++,o.bl_tree[2*R]++):ae<=10?o.bl_tree[2*S]++:o.bl_tree[2*m]++,ne=j,me=(ae=0)===se?(fe=138,3):j===se?(fe=6,3):(fe=7,4))}function V(o,d,L){var G,j,ne=-1,se=d[1],ae=0,fe=7,me=4;for(se===0&&(fe=138,me=3),G=0;G<=L;G++)if(j=se,se=d[2*(G+1)+1],!(++ae<fe&&j===se)){if(ae<me)for(;te(o,j,o.bl_tree),--ae!=0;);else j!==0?(j!==ne&&(te(o,j,o.bl_tree),ae--),te(o,R,o.bl_tree),Y(o,ae-3,2)):ae<=10?(te(o,S,o.bl_tree),Y(o,ae-3,3)):(te(o,m,o.bl_tree),Y(o,ae-11,7));ne=j,me=(ae=0)===se?(fe=138,3):j===se?(fe=6,3):(fe=7,4)}}h(Z);var C=!1;function i(o,d,L,G){Y(o,(w<<1)+(G?1:0),3),function(j,ne,se,ae){z(j),X(j,se),X(j,~se),a.arraySet(j.pending_buf,j.window,ne,se,j.pending),j.pending+=se}(o,d,L)}l._tr_init=function(o){C||(function(){var d,L,G,j,ne,se=new Array(A+1);for(j=G=0;j<_-1;j++)for(H[j]=G,d=0;d<1<<O[j];d++)k[G++]=j;for(k[G-1]=j,j=ne=0;j<16;j++)for(Z[j]=ne,d=0;d<1<<U[j];d++)W[ne++]=j;for(ne>>=7;j<g;j++)for(Z[j]=ne<<7,d=0;d<1<<U[j]-7;d++)W[256+ne++]=j;for(L=0;L<=A;L++)se[L]=0;for(d=0;d<=143;)Q[2*d+1]=8,d++,se[8]++;for(;d<=255;)Q[2*d+1]=9,d++,se[9]++;for(;d<=279;)Q[2*d+1]=7,d++,se[7]++;for(;d<=287;)Q[2*d+1]=8,d++,se[8]++;for(x(Q,E+1,se),d=0;d<g;d++)N[2*d+1]=5,N[2*d]=pe(d,5);J=new ee(Q,O,y+1,E,A),$=new ee(N,U,0,g,A),oe=new ee(new Array(0),I,0,p,b)}(),C=!0),o.l_desc=new q(o.dyn_ltree,J),o.d_desc=new q(o.dyn_dtree,$),o.bl_desc=new q(o.bl_tree,oe),o.bi_buf=0,o.bi_valid=0,f(o)},l._tr_stored_block=i,l._tr_flush_block=function(o,d,L,G){var j,ne,se=0;0<o.level?(o.strm.data_type===2&&(o.strm.data_type=function(ae){var fe,me=4093624447;for(fe=0;fe<=31;fe++,me>>>=1)if(1&me&&ae.dyn_ltree[2*fe]!==0)return s;if(ae.dyn_ltree[18]!==0||ae.dyn_ltree[20]!==0||ae.dyn_ltree[26]!==0)return n;for(fe=32;fe<y;fe++)if(ae.dyn_ltree[2*fe]!==0)return n;return s}(o)),D(o,o.l_desc),D(o,o.d_desc),se=function(ae){var fe;for(c(ae,ae.dyn_ltree,ae.l_desc.max_code),c(ae,ae.dyn_dtree,ae.d_desc.max_code),D(ae,ae.bl_desc),fe=p-1;3<=fe&&ae.bl_tree[2*K[fe]+1]===0;fe--);return ae.opt_len+=3*(fe+1)+5+5+4,fe}(o),j=o.opt_len+3+7>>>3,(ne=o.static_len+3+7>>>3)<=j&&(j=ne)):j=ne=L+5,L+4<=j&&d!==-1?i(o,d,L,G):o.strategy===4||ne===j?(Y(o,2+(G?1:0),3),B(o,Q,N)):(Y(o,4+(G?1:0),3),function(ae,fe,me,ve){var Ie;for(Y(ae,fe-257,5),Y(ae,me-1,5),Y(ae,ve-4,4),Ie=0;Ie<ve;Ie++)Y(ae,ae.bl_tree[2*K[Ie]+1],3);V(ae,ae.dyn_ltree,fe-1),V(ae,ae.dyn_dtree,me-1)}(o,o.l_desc.max_code+1,o.d_desc.max_code+1,se+1),B(o,o.dyn_ltree,o.dyn_dtree)),f(o),G&&z(o)},l._tr_tally=function(o,d,L){return o.pending_buf[o.d_buf+2*o.last_lit]=d>>>8&255,o.pending_buf[o.d_buf+2*o.last_lit+1]=255&d,o.pending_buf[o.l_buf+o.last_lit]=255&L,o.last_lit++,d===0?o.dyn_ltree[2*L]++:(o.matches++,d--,o.dyn_ltree[2*(k[L]+y+1)]++,o.dyn_dtree[2*F(d)]++),o.last_lit===o.lit_bufsize-1},l._tr_align=function(o){Y(o,2,3),te(o,T,Q),function(d){d.bi_valid===16?(X(d,d.bi_buf),d.bi_buf=0,d.bi_valid=0):8<=d.bi_valid&&(d.pending_buf[d.pending++]=255&d.bi_buf,d.bi_buf>>=8,d.bi_valid-=8)}(o)}},{"../utils/common":41}],53:[function(r,u,l){u.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,u,l){(function(a){(function(s,n){if(!s.setImmediate){var h,w,_,y,E=1,g={},p=!1,v=s.document,A=Object.getPrototypeOf&&Object.getPrototypeOf(s);A=A&&A.setTimeout?A:s,h={}.toString.call(s.process)==="[object process]"?function(R){be.nextTick(function(){b(R)})}:function(){if(s.postMessage&&!s.importScripts){var R=!0,S=s.onmessage;return s.onmessage=function(){R=!1},s.postMessage("","*"),s.onmessage=S,R}}()?(y="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",T,!1):s.attachEvent("onmessage",T),function(R){s.postMessage(y+R,"*")}):s.MessageChannel?((_=new MessageChannel).port1.onmessage=function(R){b(R.data)},function(R){_.port2.postMessage(R)}):v&&"onreadystatechange"in v.createElement("script")?(w=v.documentElement,function(R){var S=v.createElement("script");S.onreadystatechange=function(){b(R),S.onreadystatechange=null,w.removeChild(S),S=null},w.appendChild(S)}):function(R){setTimeout(b,0,R)},A.setImmediate=function(R){typeof R!="function"&&(R=new Function(""+R));for(var S=new Array(arguments.length-1),m=0;m<S.length;m++)S[m]=arguments[m+1];return g[E]={callback:R,args:S},h(E),E++},A.clearImmediate=P}function P(R){delete g[R]}function b(R){if(p)setTimeout(b,0,R);else{var S=g[R];if(S){p=!0;try{(function(m){var O=m.callback,U=m.args;switch(U.length){case 0:O();break;case 1:O(U[0]);break;case 2:O(U[0],U[1]);break;case 3:O(U[0],U[1],U[2]);break;
36default:O.apply(n,U)}})(S)}finally{P(R),p=!1}}}}function T(R){R.source===s&&typeof R.data=="string"&&R.data.indexOf(y)===0&&b(+R.data.slice(y.length))}})(typeof self>"u"?a===void 0?this:a:self)}).call(this,typeof De<"u"?De:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}),vl=le((e,t)=>{var r={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};function u(l){return l&&l.replace?l.replace(/([&"<>'])/g,function(a,s){return r[s]}):l}t.exports=u}),yl=le((e,t)=>{nt();var r=vl(),u=Nr().Stream,l="    ";function a(y,E){typeof E!="object"&&(E={indent:E});var g=E.stream?new u:null,p="",v=!1,A=E.indent?E.indent===!0?l:E.indent:"",P=!0;function b(O){P?be.nextTick(O):O()}function T(O,U){if(U!==void 0&&(p+=U),O&&!v&&(g=g||new u,v=!0),O&&v){var I=p;b(function(){g.emit("data",I)}),p=""}}function R(O,U){w(T,h(O,A,A?1:0),U)}function S(){if(g){var O=p;b(function(){g.emit("data",O),g.emit("end"),g.readable=!1,g.emit("close")})}}function m(O){var U={version:"1.0",encoding:O.encoding||"UTF-8"};O.standalone&&(U.standalone=O.standalone),R({"?xml":{_attr:U}}),p=p.replace("/>","?>")}return b(function(){P=!1}),E.declaration&&m(E.declaration),y&&y.forEach?y.forEach(function(O,U){var I;U+1===y.length&&(I=S),R(O,I)}):R(y,S),g?(g.readable=!0,g):p}function s(){var y={_elem:h(Array.prototype.slice.call(arguments))};return y.push=function(E){if(!this.append)throw new Error("not assigned to a parent!");var g=this,p=this._elem.indent;w(this.append,h(E,p,this._elem.icount+(p?1:0)),function(){g.append(!0)})},y.close=function(E){E!==void 0&&this.push(E),this.end&&this.end()},y}function n(y,E){return new Array(E||0).join(y||"")}function h(y,E,g){g=g||0;var p=n(E,g),v,A=y,P=!1;if(typeof y=="object"&&(v=Object.keys(y)[0],A=y[v],A&&A._elem))return A._elem.name=v,A._elem.icount=g,A._elem.indent=E,A._elem.indents=p,A._elem.interrupt=A,A._elem;var b=[],T=[],R;function S(m){Object.keys(m).forEach(function(O){b.push(_(O,m[O]))})}switch(typeof A){case"object":if(A===null)break;A._attr&&S(A._attr),A._cdata&&T.push(("<![CDATA["+A._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),A.forEach&&(R=!1,T.push(""),A.forEach(function(m){typeof m=="object"?Object.keys(m)[0]=="_attr"?S(m._attr):T.push(h(m,E,g+1)):(T.pop(),R=!0,T.push(r(m)))}),R||T.push(""));break;default:T.push(r(A))}return{name:v,interrupt:P,attributes:b,content:T,icount:g,indents:p,indent:E}}function w(y,E,g){if(typeof E!="object")return y(!1,E);var p=E.interrupt?1:E.content.length;function v(){for(;E.content.length;){var P=E.content.shift();if(P!==void 0){if(A(P))return;w(y,P)}}y(!1,(p>1?E.indents:"")+(E.name?"</"+E.name+">":"")+(E.indent&&!g?`
37`:"")),g&&g()}function A(P){return P.interrupt?(P.interrupt.append=y,P.interrupt.end=v,P.interrupt=!1,y(!0),!0):!1}if(y(!1,E.indents+(E.name?"<"+E.name:"")+(E.attributes.length?" "+E.attributes.join(" "):"")+(p?E.name?">":"":E.name?"/>":"")+(E.indent&&p>1?`
38`:"")),!p)return y(!1,E.indent?`
39`:"");A(E)||v()}function _(y,E){return y+'="'+r(E)+'"'}t.exports=a,t.exports.element=t.exports.Element=s}),wl=Nr(),bl=Tr(gl()),ke=Tr(yl()),Nt=0,br=32,_l=32,xl=(e,t)=>{const r=t.replace(/-/g,"");if(r.length!==_l)throw new Error(`Error: Cannot extract GUID from font filename: ${t}`);const u=r.replace(/(..)/g,"$1 ").trim().split(" ").map(s=>parseInt(s,16));u.reverse();const l=e.slice(Nt,br).map((s,n)=>s^u[n%u.length]),a=new Uint8Array(Nt+l.length+Math.max(0,e.length-br));return a.set(e.slice(0,Nt)),a.set(l,Nt),a.set(e.slice(br),Nt+l.length),a},El=class{format(e,t={stack:[]}){const r=e.prepForXml(t);if(r)return r;throw Error("XMLComponent did not format correctly")}},Sl=class{replace(e,t,r){let u=e;return t.forEach((l,a)=>{u=u.replace(new RegExp(`{${l.fileName}}`,"g"),(r+a).toString())}),u}getMediaData(e,t){return t.Array.filter(r=>e.search(`{${r.fileName}}`)>0)}},Tl=class{replace(e,t){let r=e;for(const u of t)r=r.replace(new RegExp(`{${u.reference}-${u.instance}}`,"g"),u.numId.toString());return r}},Al=class{constructor(){ie(this,"formatter",void 0),ie(this,"imageReplacer",void 0),ie(this,"numberingReplacer",void 0),this.formatter=new El,this.imageReplacer=new Sl,this.numberingReplacer=new Tl}compile(e,t,r=[]){const u=new bl.default,l=this.xmlifyFile(e,t),a=new Map(Object.entries(l));for(const[,s]of a)if(Array.isArray(s))for(const n of s)u.file(n.path,fr(n.data));else u.file(s.path,fr(s.data));for(const s of r)u.file(s.path,fr(s.data));for(const s of e.Media.Array)s.type!=="svg"?u.file(`word/media/${s.fileName}`,s.data):(u.file(`word/media/${s.fileName}`,s.data),u.file(`word/media/${s.fallback.fileName}`,s.fallback.data));for(const[s,{data:n,fontKey:h}]of e.FontTable.fontOptionsWithKey.entries())u.file(`word/fonts/font${s+1}.odttf`,xl(n,h));return u}xmlifyFile(e,t){const r=e.Document.Relationships.RelationshipCount+1,u=(0,ke.default)(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),l=e.Comments.Relationships.RelationshipCount+1,a=(0,ke.default)(this.formatter.format(e.Comments,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),s=e.FootNotes.Relationships.RelationshipCount+1,n=(0,ke.default)(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),h=this.imageReplacer.getMediaData(u,e.Media),w=this.imageReplacer.getMediaData(a,e.Media),_=this.imageReplacer.getMediaData(n,e.Media);
39return ge(ge({Relationships:{data:(h.forEach((y,E)=>{e.Document.Relationships.addRelationship(r+E,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),e.Document.Relationships.addRelationship(e.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),(0,ke.default)(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 y=this.imageReplacer.replace(u,h,r);return this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const y=(0,ke.default)(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:(0,ke.default)(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:(0,ke.default)(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:(0,ke.default)(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((y,E)=>{const g=(0,ke.default)(this.formatter.format(y.View,{viewWrapper:y,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(g,e.Media).forEach((p,v)=>{y.Relationships.addRelationship(v,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${p.fileName}`)}),{data:(0,ke.default)(this.formatter.format(y.Relationships,{viewWrapper:y,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${E+1}.xml.rels`}}),FooterRelationships:e.Footers.map((y,E)=>{const g=(0,ke.default)(this.formatter.format(y.View,{viewWrapper:y,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(g,e.Media).forEach((p,v)=>{y.Relationships.addRelationship(v,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${p.fileName}`)}),{data:(0,ke.default)(this.formatter.format(y.Relationships,{viewWrapper:y,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${E+1}.xml.rels`}}),Headers:e.Headers.map((y,E)=>{const g=(0,ke.default)(this.formatter.format(y.View,{viewWrapper:y,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),p=this.imageReplacer.getMediaData(g,e.Media),v=this.imageReplacer.replace(g,p,0);return{data:this.numberingReplacer.replace(v,e.Numbering.ConcreteNumbering),path:`word/header${E+1}.xml`}}),Footers:e.Footers.map((y,E)=>{const g=(0,ke.default)(this.formatter.format(y.View,{viewWrapper:y,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),p=this.imageReplacer.getMediaData(g,e.Media),v=this.imageReplacer.replace(g,p,0);return{data:this.numberingReplacer.replace(v,e.Numbering.ConcreteNumbering),path:`word/footer${E+1}.xml`}}),ContentTypes:{data:(0,ke.default)(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:(0,ke.default)(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:(0,ke.default)(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:(()=>{const y=this.imageReplacer.replace(n,_,s);return this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering)})(),path:"word/footnotes.xml"},FootNotesRelationships:{data:(_.forEach((y,E)=>{e.FootNotes.Relationships.addRelationship(s+E,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),(0,ke.default)(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/footnotes.xml.rels"},Endnotes:{data:(0,ke.default)(this.formatter.format(e.Endnotes.View,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/endnotes.xml"},EndnotesRelationships:{data:(0,ke.default)(this.formatter.format(e.Endnotes.Relationships,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/endnotes.xml.rels"},Settings:{data:(0,ke.default)(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:(()=>{const y=this.imageReplacer.replace(a,w,l);return this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering)})(),path:"word/comments.xml"},CommentsRelationships:{data:(w.forEach((y,E)=>{e.Comments.Relationships.addRelationship(l+E,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),(0,ke.default)(this.formatter.format(e.Comments.Relationships,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/comments.xml.rels"}},e.CommentsExtended?{CommentsExtended:{data:(0,ke.default)(this.formatter.format(e.CommentsExtended,{viewWrapper:{View:e.CommentsExtended,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/commentsExtended.xml"}}:{}),{},{FontTable:{data:(0,ke.default)(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:(0,ke.default)(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}})}};function un(e,t,r,u,l,a,s){try{var n=e[a](s),h=n.value}catch(w){r(w);return}n.done?t(h):Promise.resolve(h).then(u,l)}function kl(e){return function(){var t=this,r=arguments;return new Promise(function(u,l){var a=e.apply(t,r);function s(h){un(a,u,l,s,n,"next",h)}function n(h){un(a,u,l,s,n,"throw",h)}s(void 0)})}}var Rl={WITH_2_BLANKS:"  "},ln=e=>e===!0?Rl.WITH_2_BLANKS:e===!1?void 0:e,hi=class vt{static pack(t,r,u){var l=this;return kl(function*(a,s,n,h=[]){return l.compiler.compile(a,ln(n),h).generateAsync({type:s,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}).apply(this,arguments)}static toString(t,r,u=[]){return vt.pack(t,"string",r,u)}static toBuffer(t,r,u=[]){return vt.pack(t,"nodebuffer",r,u)}static toBase64String(t,r,u=[]){return vt.pack(t,"base64",r,u)}static toBlob(t,r,u=[]){return vt.pack(t,"blob",r,u)}static toArrayBuffer(t,r,u=[]){return vt.pack(t,"arraybuffer",r,u)}static toStream(t,r,u=[]){const l=new wl.Stream;return this.compiler.compile(t,ln(r),u).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(a=>{l.emit("data",a),l.emit("end")}),l}};ie(hi,"compiler",new Al);function de(e){return(e??"").trim().length>0}function Te(e){return e.length>0}function xe(e){return{type:"heading",text:e,level:3}}function we(e,t,r){return{type:"table",headers:e,rows:t,layout:r==null?void 0:r.layout,columnWidthsPercent:r==null?void 0:r.columnWidthsPercent,boldBodyRowIndices:r==null?void 0:r.boldBodyRowIndices,pageOrientation:r==null?void 0:r.pageOrientation}}function he(e){return e===void 0?"—":Ae(e)}function et(e,t){return e===void 0?"—":_r(e,t)}function Ee(e){return de(e)?e.trim():"—"}function Me(e){return de(e)?e.trim():""}function Cl(e){const t=[["Oficiální název školy",Ee(e.name)],["Typ školy",Ee(_i(e.schoolType)??e.schoolType)],["IČO",Ee(e.ico)],["RED IZO",Ee(e.redIzo)],["IZO",Ee(e.izo)]];return t.some(r=>r[1]!=="—")?[xe("1.1 Název školy"),we(["Údaj","Hodnota"],t)]:[]}function Pl(e){const t=[],r=e.staffCounts,u=[["Učitelé",he(r.teachersPersons),et(r.teachersFte,{minimumFractionDigits:0,maximumFractionDigits:2})],["Vychovatelé",he(r.educatorsPersons),et(r.educatorsFte,{minimumFractionDigits:0,maximumFractionDigits:2}
39)],["Speciální pedagogové",he(r.specialPedagoguesPersons),et(r.specialPedagoguesFte,{minimumFractionDigits:0,maximumFractionDigits:2})],["Asistenti pedagoga",he(r.teachingAssistantsPersons),et(r.teachingAssistantsFte,{minimumFractionDigits:0,maximumFractionDigits:2})],["Správní a nepedagogičtí zaměstnanci",he(r.nonTeachingStaffPersons),et(r.nonTeachingStaffFte,{minimumFractionDigits:0,maximumFractionDigits:2})]],l=[r.teachersPersons,r.educatorsPersons,r.specialPedagoguesPersons,r.teachingAssistantsPersons].reduce((P,b)=>P+(b??0),0),a=[r.teachersFte,r.educatorsFte,r.specialPedagoguesFte,r.teachingAssistantsFte].reduce((P,b)=>P+(b??0),0),s=l+(r.nonTeachingStaffPersons??0),n=a+(r.nonTeachingStaffFte??0);u.push(["Celkem pedagogičtí pracovníci",Ae(l),_r(a,{minimumFractionDigits:0,maximumFractionDigits:2})]),u.push(["Celkem pracovníci školy",Ae(s),_r(n,{minimumFractionDigits:0,maximumFractionDigits:2})]),t.push(xe("3.1 Základní údaje o pracovnících školy")),t.push(we(["Kategorie","Fyzické osoby","Úvazky"],u));const h=e.ageAndGender,w=[["Do 35 let",he(h.under35.men),he(h.under35.women),Ae((h.under35.men??0)+(h.under35.women??0))],["36–45 let",he(h.age36to45.men),he(h.age36to45.women),Ae((h.age36to45.men??0)+(h.age36to45.women??0))],["46–55 let",he(h.age46to55.men),he(h.age46to55.women),Ae((h.age46to55.men??0)+(h.age46to55.women??0))],["Nad 55 let",he(h.over55.men),he(h.over55.women),Ae((h.over55.men??0)+(h.over55.women??0))],["V důchodovém věku",he(h.retirementAge.men),he(h.retirementAge.women),Ae((h.retirementAge.men??0)+(h.retirementAge.women??0))]],_=xi(e);w.push(["Celkem",Ae(_.totalMen),Ae(_.totalWomen),Ae(_.grandTotal)]),t.push(xe("3.2 Členění pedagogických zaměstnanců podle věku a pohlaví")),t.push(we(["Věková skupina","Muži","Ženy","Celkem"],w,{boldBodyRowIndices:[w.length-1]}));const y=e.educationAndGender,E=Ei(e),g=[["Nižší než maturita",he(y.belowMaturita.men),he(y.belowMaturita.women),Ae((y.belowMaturita.men??0)+(y.belowMaturita.women??0))],["Maturita",he(y.maturita.men),he(y.maturita.women),Ae((y.maturita.men??0)+(y.maturita.women??0))],["Vyšší odborné vzdělání",he(y.higherVocational.men),he(y.higherVocational.women),Ae((y.higherVocational.men??0)+(y.higherVocational.women??0))],["Vysokoškolské vzdělání",he(y.university.men),he(y.university.women),Ae((y.university.men??0)+(y.university.women??0))]];g.push(["Celkem",Ae(E.totalMen),Ae(E.totalWomen),Ae(E.grandTotal)]),t.push(xe("3.3 Členění pedagogických zaměstnanců podle vzdělání a pohlaví")),t.push(we(["Vzdělání","Muži","Ženy","Celkem"],g,{boldBodyRowIndices:[g.length-1]}));const p=e.qualification,v=Si(e),A=[["Učitel 1. stupně",he(p.primaryTeachers.qualified),he(p.primaryTeachers.notQualified),Ae((p.primaryTeachers.qualified??0)+(p.primaryTeachers.notQualified??0))],["Učitel 2. stupně",he(p.lowerSecondaryTeachers.qualified),he(p.lowerSecondaryTeachers.notQualified),Ae((p.lowerSecondaryTeachers.qualified??0)+(p.lowerSecondaryTeachers.notQualified??0))],["Vychovatel",he(p.educators.qualified),he(p.educators.notQualified),Ae((p.educators.qualified??0)+(p.educators.notQualified??0))],["Asistent pedagoga",he(p.teachingAssistants.qualified),he(p.teachingAssistants.notQualified),Ae((p.teachingAssistants.qualified??0)+(p.teachingAssistants.notQualified??0))],["Speciální pedagog",he(p.specialPedagogues.qualified),he(p.specialPedagogues.notQualified),Ae((p.specialPedagogues.qualified??0)+(p.specialPedagogues.notQualified??0))]];return A.push(["Celkem",Ae(v.totalQualified),Ae(v.totalNotQualified),Ae(v.grandTotal)]),t.push(xe("3.4 Členění pedagogických pracovníků podle odborné kvalifikace")),t.push(we(["Kategorie","Splňuje kvalifikaci","Nesplňuje kvalifikaci","Celkem"],A,{boldBodyRowIndices:[A.length-1]})),t}function cn(e){const t=Ti(e),r=[];return{tableRows:t.map((l,a)=>(l.isSummaryRow&&r.push(a),[l.label,he(l.boys),he(l.girls),he(l.total),l.isSummaryRow?"":l.classTeacher??"—"])),boldBodyRowIndices:r}}function Il(e){const t=[],r=E=>[["Poprvé u zápisu",he(E.firstTimeTotal),he(E.firstTimeGirls)],["Po odkladu",he(E.afterDeferralTotal),he(E.afterDeferralGirls)],["Zapsaní",he(E.enrolledTotal),he(E.enrolledGirls)],["Žádosti o odklad",he(E.deferralRequestsTotal),he(E.deferralRequestsGirls)]];t.push(xe("4.1 Žáci přijatí do 1. ročníku základní školy pro tento školní rok")),t.push(we(["Ukazatel","Celkem","Z toho dívek"],r(e.firstGradeAdmissionCurrentYear)));const u=e.pupilsAdmittedDuringYear.filter(E=>de(E.grade)).map(E=>[E.grade,he(E.count)]);Te(u)&&(t.push(xe("4.2 Žáci přijati v průběhu školního roku")),t.push(we(["Ročník","Počet žáků"],u)));const l=e.pupilsLeftDuringYear.filter(E=>de(E.grade)).map(E=>[E.grade,he(E.count)]);Te(l)&&(t.push(xe("4.3 Žáci v průběhu školního roku odhlášeni")),t.push(we(["Ročník","Počet žáků"],l))),t.push(xe("4.4 Zápis pro následující školní rok")),t.push(we(["Ukazatel","Celkem","Z toho dívek"],r(e.firstGradeEnrollmentNextYear))),t.push(xe("4.5 Zvláštní zápis")),t.push(we(["Ukazatel","Celkem","Z toho dívek"],[["Přijaté děti",he(e.specialEnrollment.admittedTotal),he(e.specialEnrollment.admittedGirls)]]));const a=[{display:"Víceleté gymnázium",keys:["víceleté gymnázium","vícelete gymnazium"]},{display:"Úplné střední všeobecné vzdělání",keys:["úplné střední všeobecné vzdělání","uplne stredni vseobecne vzdelani"]},{display:"Úplné střední odborné vzdělání s maturitou",keys:["úplné střední odborné vzdělání s maturitou","uplne stredni odborne vzdelani s maturitou"]},{display:"Úplné střední odborné vzdělání s vyučením i maturitou",keys:["úplné střední odborné vzdělání s vyučením i maturitou","uplne stredni odborne vzdelani s vyucenim i maturitou"]},{display:"Střední odborné vzdělání s výučním listem",keys:["střední odborné vzdělání s výučním listem","stredni odborne vzdelani s vyucnim listem"]},{display:"Nehlásí se nikam",keys:["nehlásí se nikam","nehlasi se nikam"]}],s=new Map;a.forEach((E,g)=>{E.keys.forEach(p=>s.set(Gr(p),{display:E.display,index:g}))});const n=new Map,h=new Map;e.secondarySchoolAdmissions.forEach(E=>{if(!de(E.schoolType))return;const g=Gr(E.schoolType),p=s.get(g);if(p){const A=n.get(p.index);n.set(p.index,{label:p.display,count:E.count??(A==null?void 0:A.count)});return}const v=h.get(g);h.set(g,{label:(v==null?void 0:v.label)??E.schoolType,count:E.count??(v==null?void 0:v.count)})});const w=[];a.forEach((E,g)=>{const p=n.get(g);p&&w.push([p.label,he(p.count)])}
39),[...h.values()].forEach(E=>{w.push([E.label,he(E.count)])}),Te(w)&&(t.push(xe("4.6 Žáci přijati ke vzdělávání do střední školy")),t.push(we(["Typ navazujícího vzdělávání","Počet žáků"],w)));const _=cn(e.pupilCountsSeptember);Te(_.tableRows)&&(t.push(xe("4.7 Počty žáků")),t.push({type:"paragraph",text:"Počty žáků k 1. září"}),t.push(we(["Třída","Chlapců","Dívek","Celkem","Třídní učitel"],_.tableRows,{boldBodyRowIndices:_.boldBodyRowIndices})));const y=cn(e.pupilCountsJune);return Te(y.tableRows)&&(Te(_.tableRows)||t.push(xe("4.7 Počty žáků")),t.push({type:"paragraph",text:"Počty žáků k 30. červnu"}),t.push(we(["Třída","Chlapců","Dívek","Celkem","Třídní učitel"],y.tableRows,{boldBodyRowIndices:y.boldBodyRowIndices}))),t}function Nl(e){return e?{VETSINA_HODIN:"Objevuje se ve většině hodin a činností",NEKTERE_HODINY:"Objevuje se pouze v některých hodinách a činnostech",NEOBJEVUJE_SE:"V hodinách a činnostech se neobjevuje"}[e]:"—"}function Ol(e){var l;const r=(((l=e.schoolCurriculumPlan.advancedCurriculumPlan)==null?void 0:l.rows)??[]).filter(a=>de(a.educationalArea)||de(a.subject)||(a.subjectDetails??[]).some(s=>de(s))||de(a.grade1)||de(a.grade2)||de(a.grade3)||de(a.grade4)||de(a.grade5)||de(a.firstStageAllocation)||de(a.grade6)||de(a.grade7)||de(a.grade8)||de(a.grade9)||de(a.secondStageAllocation)||a.isTotalRow===!0);if(r.length>0){const a=[],s=r.map((n,h)=>(n.isTotalRow&&a.push(h),[Me(n.educationalArea),[Me(n.subject),...(n.subjectDetails??[]).map(w=>w.trim()).filter(Boolean)].filter(Boolean).join(`
40`),Me(n.grade1),Me(n.grade2),Me(n.grade3),Me(n.grade4),Me(n.grade5),Me(n.firstStageAllocation),Me(n.grade6),Me(n.grade7),Me(n.grade8),Me(n.grade9),Me(n.secondStageAllocation)]));return[xe("5.2 Učební plán školy"),we(["Vzdělávací oblast","Předmět","1. r.","2. r.","3. r.","4. r.","5. r.","Dotace I.","6. r.","7. r.","8. r.","9. r.","Dotace II."],s,{layout:"wide",boldBodyRowIndices:a,pageOrientation:"landscape",columnWidthsPercent:[12,14,5,5,5,5,5,7,5,5,5,5,7]})]}const u=(e.schoolCurriculumPlan.weeklyHourPlan??[]).filter(a=>de(a.subject)).map(a=>[a.subject,he(a.grade1),he(a.grade2),he(a.grade3),he(a.grade4),he(a.grade5),he(a.grade6),he(a.grade7),he(a.grade8),he(a.grade9)]);return Te(u)?[xe("5.2 Učební plán školy"),we(["Předmět","1. r.","2. r.","3. r.","4. r.","5. r.","6. r.","7. r.","8. r.","9. r."],u,{layout:"wide"})]:[]}function Fl(e){const t=[],r=e.goalsEvaluation.filter(l=>de(l.goal)).map(l=>[l.goal.trim(),Nl(l.level),Ee(l.evidence),Ee(l.note)]);Te(r)&&(t.push(xe("5.3 Naplňování cílů")),t.push(we(["Cíl","Míra naplňování","Důkaz / příklad z praxe","Poznámka"],r,{layout:"wide",columnWidthsPercent:[24,22,30,24]})));const u=[];return de(e.overallEvaluation)&&u.push(["Celkové vyhodnocení",e.overallEvaluation.trim()]),de(e.strengths)&&u.push(["Silné stránky",e.strengths.trim()]),de(e.areasForImprovement)&&u.push(["Oblasti ke zlepšení",e.areasForImprovement.trim()]),de(e.measuresForNextYear)&&u.push(["Opatření pro další školní rok",e.measuresForNextYear.trim()]),Te(u)&&t.push(we(["Položka","Text"],u,{columnWidthsPercent:[28,72]})),t}function Bl(e){return[...Ol(e),...Fl(e)]}function hn(e){return e.filter(t=>de(t.className)).map(t=>[t.className,he(t.pupilsTotal),t.classTeacher??"—",he(t.passedWithHonours),he(t.passed),he(t.failed),he(t.notAssessed),he(t.reducedConductGrade),et(t.averageGrade,{minimumFractionDigits:2,maximumFractionDigits:2}),et(t.excusedAbsencePerPupil,{minimumFractionDigits:0,maximumFractionDigits:1}),et(t.unexcusedAbsencePerPupil,{minimumFractionDigits:0,maximumFractionDigits:1})])}function Dl(e){var a,s,n,h,w,_,y,E,g,p,v,A,P,b;const t=[],r=["Třída","Žáků","Třídní učitel","Vyzn.","Prospěl","Neprospěl","Nehodn.","Sn. chov.","Průměr","Oml. abs./žák","Neoml. abs./žák"],u=hn(e.firstTermClassResults);Te(u)&&(t.push(xe("6.1 Souhrnná statistika tříd 1. pololetí školního roku")),t.push(we(r,u,{layout:"wide"})));const l=hn(e.secondTermClassResults);return Te(l)&&(t.push(xe("6.2 Souhrnná statistika tříd 2. pololetí školního roku")),t.push(we(r,l,{layout:"wide"}))),t.push(xe("6.3 Výchovná opatření")),t.push(we(["Výchovné opatření","1. pololetí","2. pololetí"],[["Pochvala třídního učitele",he((a=e.educationalMeasures.firstTerm)==null?void 0:a.classTeacherPraise),he((s=e.educationalMeasures.secondTerm)==null?void 0:s.classTeacherPraise)],["Pochvala ředitele školy",he((n=e.educationalMeasures.firstTerm)==null?void 0:n.principalPraise),he((h=e.educationalMeasures.secondTerm)==null?void 0:h.principalPraise)],["Napomenutí třídního učitele",he((w=e.educationalMeasures.firstTerm)==null?void 0:w.classTeacherWarning),he((_=e.educationalMeasures.secondTerm)==null?void 0:_.classTeacherWarning)],["Důtka třídního učitele",he((y=e.educationalMeasures.firstTerm)==null?void 0:y.classTeacherReprimand),he((E=e.educationalMeasures.secondTerm)==null?void 0:E.
40classTeacherReprimand)],["Důtka ředitele školy",he((g=e.educationalMeasures.firstTerm)==null?void 0:g.principalReprimand),he((p=e.educationalMeasures.secondTerm)==null?void 0:p.principalReprimand)],["2. stupeň z chování",he((v=e.educationalMeasures.firstTerm)==null?void 0:v.secondConductGrade),he((A=e.educationalMeasures.secondTerm)==null?void 0:A.secondConductGrade)],["3. stupeň z chování",he((P=e.educationalMeasures.firstTerm)==null?void 0:P.thirdConductGrade),he((b=e.educationalMeasures.secondTerm)==null?void 0:b.thirdConductGrade)]])),t}function Ll(e){const t=[],r=[["Popis preventivní strategie školy",Ee(e.prevention.preventionStrategyDescription)],["Preventivní tým / odpovědné osoby",Ee(e.prevention.preventionTeam)],["Spolupráce s institucemi",Ee(e.prevention.cooperation)],["Vyhodnocení prevence",Ee(e.prevention.evaluation)]];t.push(xe("7.1 Prevence sociálně patologických jevů a rizikového chování")),t.push(we(["Oblast","Popis"],r,{columnWidthsPercent:[32,68]}));const u=(e.prevention.preventionProgrammes??[]).filter(s=>de(s.title)||de(s.targetGroup)||de(s.description)||de(s.dateOrPeriod)||de(s.provider)).map(s=>[Ee(s.title),Ee(s.targetGroup),Ee(s.description),Ee(s.dateOrPeriod),Ee(s.provider)]);Te(u)&&(t.push({type:"paragraph",text:"Preventivní programy a aktivity"}),t.push(we(["Název programu/aktivity","Cílová skupina","Popis","Období","Poskytovatel"],u,{layout:"wide",columnWidthsPercent:[18,12,34,12,24]})));const l=e.riskBehaviourIncidents.filter(s=>de(s.type)||s.count!==void 0||de(s.adoptedMeasures)||de(s.note)).map(s=>[Ee(s.type),he(s.count),Ee(s.adoptedMeasures),Me(s.note)]);Te(l)&&(t.push(xe("7.2 Počet výskytu rizikového chování, které škola řešila, a přijatá opatření")),t.push(we(["Typ rizikového chování","Počet řešených případů","Přijatá opatření","Poznámka"],l,{layout:"wide"}))),t.push(xe("7.3 Počty žáků se speciálními vzdělávacími potřebami")),t.push(we(["Ukazatel","Počet"],[["Žáci se SVP celkem",he(e.pupilsWithSupportNeeds.pupilsWithSvpTotal)],["Žáci s podpůrnými opatřeními",he(e.pupilsWithSupportNeeds.pupilsWithSupportMeasures)],["Žáci s IVP",he(e.pupilsWithSupportNeeds.pupilsWithIndividualEducationPlan)],["Žáci s pedagogickou intervencí",he(e.pupilsWithSupportNeeds.pupilsWithPedagogicalIntervention)],["Žáci s podporou asistenta pedagoga",he(e.pupilsWithSupportNeeds.pupilsWithTeachingAssistantSupport)],["Nadaní žáci",he(e.pupilsWithSupportNeeds.pupilsGifted)],["Mimořádně nadaní žáci",he(e.pupilsWithSupportNeeds.pupilsExceptionallyGifted)]])),t.push(xe("7.4 Podmínky pro vzdělávání a zajištění podpory")),t.push(we(["Oblast","Popis"],[["Popis práce školního poradenského pracoviště",Ee(e.supportConditions.counsellingWorkplaceDescription)],["Spolupráce s PPP/SPC",Ee(e.supportConditions.cooperationWithPppSpc)],["Popis podpůrných opatření",Ee(e.supportConditions.supportMeasuresDescription)],["Inkluzivní opatření",Ee(e.supportConditions.inclusionMeasures)],["Podpora nadaných a mimořádně nadaných žáků",Ee(e.supportConditions.giftedSupportDescription)],["Podpora asistenty pedagoga",Ee(e.supportConditions.teachingAssistantSupportDescription)],["Materiální a organizační podmínky",Ee(e.supportConditions.materialAndOrganizationalConditions)],["Vyhodnocení podpory",Ee(e.supportConditions.evaluation)]]));const a=e.languagePreparation.languagePreparationProvided==="ANO"?"ano":e.languagePreparation.languagePreparationProvided==="NE"?"ne":e.languagePreparation.languagePreparationProvided==="NERELEVANTNI"?"nerelevantní":"—";return t.push(xe("7.5 Zajištění podpory žáků s nárokem na poskytování jazykové přípravy")),t.push(we(["Údaj","Hodnota"],[["Počet žáků s nárokem na jazykovou přípravu",he(e.languagePreparation.pupilsWithLanguagePreparationEntitlement)],["Poskytování jazykové přípravy",a],["Popis zajištění jazykové přípravy",Ee(e.languagePreparation.description)],["Poskytovatel",Ee(e.languagePreparation.provider)],["Poznámka",Ee(e.languagePreparation.note)]])),t}function fn(e){return e==="ANO"?"ANO":e==="NE"?"NE":e==="PROBIHA"?"PROBÍHÁ":"—"}function Ml(e){const t=[],r=[];de(e.dvppOverview.description)&&r.push(["Popis DVPP ve školním roce",e.dvppOverview.description.trim()]),de(e.dvppOverview.priorities)&&r.push(["Priority DVPP",e.dvppOverview.priorities.trim()]),de(e.dvppOverview.evaluation)&&r.push(["Vyhodnocení DVPP",e.dvppOverview.evaluation.trim()]),Te(r)&&(t.push(xe("8.1 Další vzdělávání pedagogických pracovníků")),t.push(we(["Oblast","Popis"],r)));const u=e.qualificationStudies.filter(n=>
40de(n.title)||de(n.participantGroup)||de(n.provider)||de(n.period)||n.completed||de(n.note)).map(n=>[n.title||"—",n.participantGroup||"—",n.provider||"—",n.period||"—",fn(n.completed),n.note||"—"]);Te(u)&&(t.push(xe("8.1.1 Studium ke splnění kvalifikačních předpokladů")),t.push(we(["Název studia","Účastníci","Poskytovatel","Období","Dokončeno","Poznámka"],u)));const l=e.additionalQualificationStudies.filter(n=>de(n.title)||de(n.participantGroup)||de(n.provider)||de(n.period)||n.completed||de(n.note)).map(n=>[n.title||"—",n.participantGroup||"—",n.provider||"—",n.period||"—",fn(n.completed),n.note||"—"]);Te(l)&&(t.push(xe("8.1.2 Studium ke splnění dalších kvalifikačních předpokladů")),t.push(we(["Název studia","Účastníci","Poskytovatel","Období","Dokončeno","Poznámka"],l)));const a=e.professionalDevelopmentTrainings.filter(n=>de(n.title)||de(n.topic)||de(n.participantGroup)||de(n.provider)||de(n.period)||n.hours!==void 0).map(n=>[n.title||"—",n.topic||"—",n.participantGroup||"—",n.provider||"—",n.period||"—",he(n.hours)]);Te(a)&&(t.push(xe("8.1.3 Studium k prohlubování odborné kvalifikace")),t.push(we(["Název vzdělávání","Téma","Účastníci","Poskytovatel","Období","Počet hodin"],a)));const s=e.nonTeachingStaffDevelopment.filter(n=>de(n.title)||de(n.staffGroup)||de(n.provider)||de(n.period)||n.hours!==void 0).map(n=>[n.title||"—",n.staffGroup||"—",n.provider||"—",n.period||"—",he(n.hours)]);return Te(s)&&(t.push(xe("8.2 Odborný rozvoj nepedagogických pracovníků")),t.push(we(["Název vzdělávání","Skupina pracovníků","Poskytovatel","Období","Počet hodin"],s))),t}function Ul(e){return e==="ANO"?"ANO":e==="NE"?"NE":e==="CASTECNE"?"ČÁSTEČNĚ":"—"}function zl(e){const t=[],r=e.schoolEvents.filter(s=>de(s.title)||de(s.dateOrPeriod)||de(s.eventType)).map(s=>[s.dateOrPeriod||"—",s.title||"—",s.eventType||"—",s.targetGroup||"—",s.location||"—",Ul(s.publicEvent),s.description||"—"]);Te(r)&&(t.push(xe("9.1 Akce školy")),t.push(we(["Datum/období","Název akce","Typ","Určeno pro","Místo","Veřejná akce","Popis"],r,{layout:"wide"})));const u=e.competitions.filter(s=>de(s.title)||de(s.dateOrPeriod)||de(s.subjectOrArea)).map(s=>[s.dateOrPeriod||"—",s.title||"—",s.subjectOrArea||"—",s.participants||"—",s.result||"—",s.level||"—"]);Te(u)&&(t.push(xe("9.2 Účast žáků na soutěžích")),t.push(we(["Datum/období","Název soutěže","Oblast","Účastníci","Výsledek","Úroveň"],u,{layout:"wide"})));const l=e.projectsAndCooperation.filter(s=>de(s.title)||de(s.type)||de(s.partner)).map(s=>[s.title||"—",s.type||"—",s.partner||"—",s.period||"—",s.output||"—"]),a=[];return de(e.publicPresentation.description)&&a.push(["Popis prezentace školy",e.publicPresentation.description.trim()]),de(e.publicPresentation.website)&&a.push(["Web školy",e.publicPresentation.website.trim()]),de(e.publicPresentation.socialMedia)&&a.push(["Sociální sítě / online komunikace",e.publicPresentation.socialMedia.trim()]),de(e.publicPresentation.mediaOutputs)&&a.push(["Mediální výstupy",e.publicPresentation.mediaOutputs.trim()]),de(e.publicPresentation.cooperationWithCommunity)&&a.push(["Spolupráce s obcí, zřizovatelem a veřejností",e.publicPresentation.cooperationWithCommunity.trim()]),(Te(l)||Te(a))&&(t.push(xe("9.3 Projekty, spolupráce a prezentace školy na veřejnosti")),Te(l)&&(t.push(we(["Název","Typ","Partner","Období","Výstup"],l,{layout:"wide"})),e.projectsAndCooperation.filter(s=>de(s.title)&&de(s.description)).forEach(s=>{t.push({type:"paragraph",text:`Popis projektu „${s.title.trim()}“: ${s.description.trim()}`})}
40)),Te(a)&&t.push(we(["Oblast","Popis"],a))),t}function jl(e){const t=[];(e.economicResult.profitOrLoss??0)<0&&t.push("Hospodářský výsledek: záporná hodnota vyžaduje ověření."),(e.economicResult.mainActivityResult??0)<0&&t.push("Výsledek hlavní činnosti: záporná hodnota vyžaduje ověření.");const r=[xe("11.1 Přehled příjmů a výdajů školy"),{type:"paragraph",text:"Příjmy/výnosy"},we(["Položka","Částka"],[["Příspěvek ze státního rozpočtu",Se(e.revenue.stateBudgetContribution)],["Příspěvek zřizovatele",Se(e.revenue.founderContribution)],["Dotace a projekty",Se(e.revenue.grantsAndProjects)],["Vlastní příjmy",Se(e.revenue.ownRevenue)],["Dary",Se(e.revenue.donations)],["Ostatní příjmy",Se(e.revenue.otherRevenue)],["Příjmy / výnosy celkem",Se(e.revenue.totalRevenue)]]),{type:"paragraph",text:"Výdaje/náklady"},we(["Položka","Částka"],[["Mzdové náklady",Se(e.expenses.salaryCosts)],["Zákonné odvody",Se(e.expenses.statutoryContributions)],["Provozní náklady",Se(e.expenses.operatingCosts)],["Energie",Se(e.expenses.energyCosts)],["Opravy a údržba",Se(e.expenses.repairsAndMaintenance)],["Vybavení a materiál",Se(e.expenses.equipmentAndMaterials)],["Služby",Se(e.expenses.services)],["Výdaje projektů a dotací",Se(e.expenses.grantsAndProjectsExpenses)],["Ostatní výdaje",Se(e.expenses.otherExpenses)],["Výdaje / náklady celkem",Se(e.expenses.totalExpenses)]]),xe("11.2 Hospodářský výsledek"),we(["Ukazatel","Částka"],[["Hospodářský výsledek",Se(e.economicResult.profitOrLoss)],["Výsledek hlavní činnosti",Se(e.economicResult.mainActivityResult)],["Výsledek doplňkové činnosti",Se(e.economicResult.supplementaryActivityResult)],["Příděl do rezervního fondu",Se(e.economicResult.reserveFundAllocation)],["Orientační výsledek z uvedených celkových příjmů a výdajů",e.revenue.totalRevenue===void 0||e.expenses.totalExpenses===void 0?"neuvedeno":Se(e.revenue.totalRevenue-e.expenses.totalExpenses)]])],u=e.grantsAndSubsidies.filter(n=>de(n.title)||de(n.provider)||n.amount!==void 0||n.usedAmount!==void 0||de(n.purpose)).map(n=>[n.title||"—",n.provider||"—",n.amount===void 0?"—":Se(n.amount),n.purpose||"—",n.usedAmount===void 0?"—":Se(n.usedAmount)]);Te(u)&&(r.push(xe("11.3 Dotace, granty a projekty")),r.push(we(["Název","Poskytovatel","Částka","Účel","Čerpáno"],u)));const l=[["Doplňková činnost vykonávána",e.supplementaryActivity.carriedOut??"NEUVEDENO"],["Popis doplňkové činnosti",e.supplementaryActivity.description||"—"],["Výnosy doplňkové činnosti",e.supplementaryActivity.revenue===void 0?"—":Se(e.supplementaryActivity.revenue)],["Náklady doplňkové činnosti",e.supplementaryActivity.expenses===void 0?"—":Se(e.supplementaryActivity.expenses)],["Výsledek doplňkové činnosti",e.supplementaryActivity.result===void 0?"—":Se(e.supplementaryActivity.result)],["Poznámka",e.supplementaryActivity.note||"—"]];l.some(n=>n[1]!=="—"&&n[1]!=="NEUVEDENO")&&(r.push(xe("11.4 Doplňková činnost")),r.push(we(["Ukazatel","Hodnota"],l)));const a=e.investmentsAndRepairs.filter(n=>de(n.title)||n.amount!==void 0||de(n.fundingSource)||de(n.description)).map(n=>[n.title||"—",n.amount===void 0?"—":Se(n.amount),n.fundingSource||"—",n.description||"—"]);Te(a)&&(r.push(xe("11.5 Investice, opravy a větší nákupy")),r.push(we(["Název","Částka","Zdroj financování","Popis"],a)));const s=[];return de(e.summaryCommentary)&&s.push(["Souhrnný komentář",e.summaryCommentary.trim()]),t.length>0&&t.forEach(n=>s.push(["Upozornění k ověření dat",n])),Te(s)&&(r.push(xe("11.6 Souhrnný komentář k hospodaření školy")),r.push(we(["Položka","Text"],s))),r}function Wl(e,t){return t?e==="01"&&t.schoolProfileData?Cl(t.schoolProfileData):e==="03"&&t.section03Data?Pl(t.section03Data):e==="04"&&t.section04Data?Il(t.section04Data):e==="05"&&t.section05Data?Bl(t.section05Data):e==="06"&&t.section06Data?Dl(t.section06Data):e==="07"&&t.section07Data?Ll(t.section07Data):e==="08"&&t.section08Data?Ml(t.section08Data):e==="09"&&t.section09Data?zl(t.section09Data):e==="11"&&t.section11Data?jl(t.section11Data):[]:[]}function Be(e){return new Ue({spacing:{after:180},children:[new Et({text:e.length>0?e:" ",size:22})]})}function tr(e,t,r=!1){return new Ue({heading:t,pageBreakBefore:r,spacing:{after:200},children:[new Et({text:e,size:t===ft.HEADING_1?36:t===ft.HEADING_2?30:26})]})}function Hl(e,t){const r=(t==null?void 0:t.layout)==="wide",u=r?16:22,l=t==null?void 0:t.columnWidthsPercent,a=new Set((t==null?void 0:t.boldBodyRowIndices)??[]);return new ks({width:{size:100,type:Lt.PERCENTAGE},layout:xs.FIXED,rows:e.map((s,n)=>new Ps({children:s.map((h,w)=>new jr({width:l&&l[w]!==void 0?{size:l[w],type:Lt.PERCENTAGE}:void 0,margins:r?{top:60,bottom:60,left:60,right:60}:void 0,children:[new Ue({spacing:{after:r?60:120},children:[new Et({text:h||" ",bold:n===0||a.has(n-1),size:u})]})]}))}))})}function dn(e){return e.type==="heading"?tr(e.text,e.level==="H2"?ft.HEADING_2:ft.HEADING_3,!1):e.type==="table"?Hl(e.rows,{layout:e.layout,columnWidthsPercent:e.columnWidthsPercent,boldBodyRowIndices:e.boldBodyRowIndices}):Be(e.text)}function Gl(e){return e.type==="table"&&e.pageOrientation==="landscape"?"landscape":"portrait"}function Vl(e,t){const r=Gl(t),u=e[e.length-1];if(!u||u.orientation!==r){e.push({orientation:r,children:[dn(t)]});return}u.children.push(dn(t))}function Kl(e,t){if(!bi(e)||!e)return[];const r=[new Ue({pageBreakBefore:!0,text:" "}),tr("Schválení výroční zprávy",ft.HEADING_2)];return t&&e.discussedByPedagogicalCouncilDate?r.push(Be(`Výroční zpráva o činnosti školy za školní rok ${t} byla projednána pedagogickou radou dne ${e.discussedByPedagogicalCouncilDate}.`)):e.discussedByPedagogicalCouncilDate&&r.push(Be(`Výroční zpráva byla projednána pedagogickou radou dne ${e.discussedByPedagogicalCouncilDate}.`)),e.approvedBySchoolCouncilDate&&r.push(Be(`Školská rada výroční zprávu schválila dne ${e.approvedBySchoolCouncilDate}.`)),e.placeAndDate&&r.push(Be(e.placeAndDate)),r.push(Be("")),e.principalSignature&&(r.push(Be(e.principalSignature)),r.push(Be("ředitel/ka školy"))),r.push(Be("")),r.push(Be("")),e.schoolCouncilChairSignature&&(r.push(Be(e.schoolCouncilChairSignature)),r.push(Be("předseda/předsedkyně školské rady"))),r}function pn(e){return e.replace(/\s+/g," ").trim().toLowerCase()}function ql(e){return e.map(t=>t.type==="heading"?{type:"heading",text:t.text,level:t.level===3?"H3":"H2"}:t.type==="table"?{type:"table",rows:[t.headers,...t.rows],layout:t.layout,columnWidthsPercent:t.columnWidthsPercent,boldBodyRowIndices:t.boldBodyRowIndices,pageOrientation:t.pageOrientation}:{type:"paragraph",text:t.text})}function $l(e,t){if(t.length===0)return e;const r=ql(t),u=new Map;for(let s=0;s<r.length;s+=1){const n=r[s];if(n.type!=="heading"||n.level!=="H3")continue;const h=pn(n.text),w=[n];for(let _=s+1;_<r.length;_+=1){const y=r[_];if(y.type==="heading"&&y.level==="H3")break;w.push(y)}u.set(h,w)}if(u.size===0)return e;const l=new Set,a=[];for(let s=0;s<e.length;s+=1){const n=e[s];if(n.type==="heading"&&n.level==="H3"){const h=pn(n.text),w=u.get(h);if(w){l.add(h),a.push(...w);for(let _=s+1;_<e.length;_+=1){if(e[_].type==="heading"){s=_-1;break}_===e.length-1&&(s=e.length)}continue}}a.push(n)}for(const[s,n]of u)l.has(s)||a.push(...n);return a}function ut(e,t,r="portrait"){const u=e[e.length-1];if(!u||u.orientation!==r){e.push({orientation:r,children:[t]});return}u.children.push(t)}function Xl(e){const t=[];ut(t,tr(e.title,ft.HEADING_1)),e.schoolName&&ut(t,Be(`Škola: ${e.schoolName}`)),e.schoolYear&&ut(t,Be(`Školní rok: ${e.schoolYear}`)),ut(t,Be("Dokument byl vytvořen v aplikaci Ředitelský průvodce.")),ut(t,new Ue({pageBreakBefore:!0,text:" "})),e.sections.forEach((r,u)=>{ut(t,tr(`${r.number} ${r.title}`,ft.HEADING_2,u>0));const l=yi(r),a=wi(l),s=Wl(r.number,e.structuredData),n=$l(a,s);for(const h of n)Vl(t,h)});for(const r of Kl(e.publicationBlock,e.schoolYear))ut(t,r);return t.filter(r=>r.children.length>0)}function Zl(e,t){const r=URL.createObjectURL(e),u=document.createElement("a");u.href=r,u.download=t,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(r)}async function pc(e,t){const r=await Yl(e,t);
40return r.exported?(Zl(r.blob,r.filename),{exported:!0}):r}async function Yl(e,t){const r=(t==null?void 0:t.mode)??"visible-generated",u=mi(e,r);if(!u.ok)return{exported:!1,reason:"STALE_GENERATED_TEXT",staleSections:u.staleSections};const l=gi(e,r,{structuredData:t==null?void 0:t.structuredData});if(l.sections.length===0)return{exported:!1,reason:"NO_SECTIONS"};const a=new pl({styles:{default:{document:{run:{size:22,font:"Calibri"},paragraph:{spacing:{after:180}}}}},sections:Xl(l).map(h=>({properties:{page:{size:{orientation:h.orientation==="landscape"?Mt.LANDSCAPE:Mt.PORTRAIT}}},footers:{default:new ml({children:[new Ue({alignment:We.CENTER,children:[new Et({text:"Výroční zpráva o činnosti školy",size:18})]})]})},children:h.children}))}),s=await hi.toBlob(a),n=vi({schoolName:l.schoolName,schoolYear:l.schoolYear});return{exported:!0,blob:s,filename:n}}export{Yl as buildAnnualReportDocxBlob,pc as exportAnnualReportPreviewToDocx};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.