UNPKG

pdfjs-dist

Version:

Generic build of Mozilla's PDF.js library.

27 lines • 125 kB
/**
 * @licstart The following is the entire license notice for the
 * JavaScript code in this page
 *
 * Copyright 2024 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * @licend The above is the entire license notice for the
 * JavaScript code in this page
 */
/**
 * pdfjsVersion = 6.5.438
 * pdfjsBuild = 0a4153349
 */var e={306(e,t,r){var n=r(901),i=r(823),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},576(e,t,r){var n=r(504),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},837(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}},39(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},616(e,t,r){var n=r(39);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},504(e,t,r){var n=r(616),i=Function.prototype,o=i.call,a=n&&i.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},966(e,t,r){var n=r(306),i=r(117);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},55(e,t,r){var n=r(504),i=r(39),o=r(576),a=Object,s=n("".split);e.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?s(e,""):a(e)}:a},376(e,t,r){var n=r(576);e.exports=Array.isArray||function isArray(e){return"Array"===n(e)}},901(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},796(e,t,r){var n=r(39),i=r(901),o=/#|\.prototype\./,isForced=function(e,t){var r=s[a(e)];return r===u||r!==c&&(i(t)?n(t):!!t)},a=isForced.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=isForced.data={},c=isForced.NATIVE="N",u=isForced.POLYFILL="P";e.exports=isForced},117(e){e.exports=function(e){return null==e}},395(e){e.exports=!1},248(e,t,r){var n=r(504),i=Map.prototype;e.exports={Map,set:n(i.set),get:n(i.get),has:n(i.has),remove:n(i.delete),proto:i}},741(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function trunc(e){var n=+e;return(n>0?r:t)(n)}},819(e,t,r){var n=r(39);e.exports=!n(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},717(e,t){t.f=Object.getOwnPropertySymbols},625(e,t,r){var n=r(504);e.exports=n({}.isPrototypeOf)},750(e,t,r){var n=r(117),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},240(e,t,r){var n=r(504);e.exports=n(1.1.valueOf)},291(e,t,r){var n=r(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},14(e,t,r){var n=r(291),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},981(e,t,r){var n=r(750),i=Object;e.exports=function(e){return i(n(e))}},823(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},392(e,t,r){var n=r(504),i=0,o=Math.random(),a=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}}};const t={};function __webpack_require__(r){const n=t[r];if(void 0!==n)return n.exports;const i=t[r]={exports:{}};e[r](i,i.exports,__webpack_require__);return i.exports}__webpack_require__.cw=e=>{var t;return()=>{if(e){var r=e;e=0;t={exports:{}};r.call(t.exports,t,t.exports)}return t.exports}};__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})};__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r=__webpack_require__.cw(e=>{var t=F(),r=String,n=TypeError;e.exports=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}),n=__webpack_require__.cw(e=>{var t=G(),r=J(),n=T(),createMethod=function(e){return function(i,o,a){var s=t(i),c=n(s);if(0===c)return!e&&-1;var u,l=r(a,c);if(e&&o!=o){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===o)return e||l||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}}),i=__webpack_require__.cw(e=>{var t=p(),r=is_array_namespaceFn(),n=TypeError,i=Object.getOwnPropertyDescriptor,o=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(r(e)&&!i(e,"length").writable)throw new n("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}}),classof_raw_namespaceFn=()=>__webpack_require__(576),o=__webpack_require__.cw(e=>{var t=Y(),r=is_callable_namespaceFn(),n=classof_raw_namespaceFn(),i=re()("toStringTag"),o=Object,a="Arguments"===n(function(){return arguments}());e.exports=t?n:function(e){var t,s,c;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(t=o(e),i))?s:a?n(t):"Object"===(c=n(t))&&r(t.callee)?"Arguments":c}}),a=__webpack_require__.cw(e=>{var t=v(),r=H(),n=M(),i=q();e.exports=function(e,o,a){for(var s=r(o),c=i.f,u=n.f,l=0;l<s.length;l++){var p=s[l];t(e,p)||a&&t(a,p)||c(e,p,u(o,p))}}}),s=__webpack_require__.cw(e=>{var t=p(),r=q(),n=c();e.exports=t?function(e,t,i){return r.f(e,t,n(1,i))}:function(e,t,r){e[t]=r;return e}}),c=__webpack_require__.cw(e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}}),u=__webpack_require__.cw(e=>{var t=is_callable_namespaceFn(),r=q(),n=P(),i=l();e.exports=function(e,o,a,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:o;t(a)&&n(a,u,s);if(s.global)c?e[o]=a:i(o,a);else{try{s.unsafe?e[o]&&(c=!0):delete e[o]}catch(e){}c?e[o]=a:r.f(e,o,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}}),l=__webpack_require__.cw(e=>{var t=y(),r=Object.defineProperty;e.exports=function(e,n){try{r(t,e,{value:n,configurable:!0,writable:!0})}catch(r){t[e]=n}return n}}),p=__webpack_require__.cw(e=>{var t=fails_namespaceFn();e.exports=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}),h=__webpack_require__.cw(e=>{var t=y(),r=F(),n=t.document,i=r(n)&&r(n.createElement);e.exports=function(e){return i?n.createElement(e):{}}}),f=__webpack_require__.cw(e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),_=__webpack_require__.cw(e=>{var t=y().navigator,r=t&&t.userAgent;e.exports=r?String(r):""}),d=__webpack_require__.cw(e=>{var t,r,n=y(),i=_(),o=n.process,a=n.Deno,s=o&&o.versions||a&&a.version,c=s&&s.v8;c&&(r=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1]));!r&&i&&(!(t=i.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=i.match(/Chrome\/(\d+)/))&&(r=+t[1]);e.exports=r}),g=__webpack_require__.cw(e=>{var t=y(),r=M().f,n=s(),i=u(),o=l(),c=a(),p=is_forced_namespaceFn();e.exports=function(e,a){var s,u,l,h,f,_=e.target,d=e.global,g=e.stat;if(s=d?t:g?t[_]||o(_,{}):t[_]&&t[_].prototype)for(u in a){h=a[u];l=e.dontCallGetSet?(f=r(s,u))&&f.value:s[u];if(!p(d?u:_+(g?".":"#")+u,e.forced)&&void 0!==l){if(typeof h==typeof l)continue;c(h,l)}(e.sham||l&&l.sham)&&n(h,"sham",!0);i(s,u,h,e)}}}),fails_namespaceFn=()=>__webpack_require__(39),m=__webpack_require__.cw(e=>{var t=__webpack_require__(616),r=Function.prototype.call;e.exports=t?r.bind(r):function(){return r.apply(r,arguments)}}),w=__webpack_require__.cw(e=>{var t=p(),r=v(),n=Function.prototype,i=t&&Object.getOwnPropertyDescriptor,o=r(n,"name"),a=o&&(!t||t&&i(n,"name").configurable);e.exports={CONFIGURABLE:a}}),function_uncurry_this_namespaceFn=()=>__webpack_require__(504),b=__webpack_require__.cw(e=>{var t=y(),r=is_callable_namespaceFn();e.exports=function(e,n){return arguments.length<2?(i=t[e],r(i)?i:void 0):t[e]&&t[e][n];var i}}),y=__webpack_require__.cw(function(e){var check=function(e){return e&&e.Math===Math&&e};e.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||check("object"==typeof this&&this)||function(){return this}()||Function("return this")()}),v=__webpack_require__.cw(e=>{var t=function_uncurry_this_namespaceFn(),r=to_object_namespaceFn(),n=t({}.hasOwnProperty);e.exports=Object.hasOwn||function hasOwn(e,t){return n(r(e),t)}}),S=__webpack_require__.cw(e=>{e.exports={}}),x=__webpack_require__.cw(e=>{var t=b();e.exports=t("document","documentElement")}),k=__webpack_require__.cw(e=>{var t=p(),r=fails_namespaceFn(),n=h();e.exports=!t&&!r(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}),O=__webpack_require__.cw(e=>{var t=function_uncurry_this_namespaceFn(),r=is_callable_namespaceFn(),n=$(),i=t(Function.toString);r(n.inspectSource)||(n.inspectSource=function(e){return i(e)});e.exports=n.inspectSource}),E=__webpack_require__.cw(e=>{var t,r,n,i=te(),o=y(),a=F(),c=s(),u=v(),l=$(),p=L(),h=S(),f="Object already initialized",_=o.TypeError,d=o.WeakMap;if(i||l.state){var g=l.state||(l.state=new d);g.get=g.get;g.has=g.has;g.set=g.set;t=function(e,t){if(g.has(e))throw new _(f);t.facade=e;g.set(e,t);return t};r=function(e){return g.get(e)||{}};n=function(e){return g.has(e)}}else{var m=p("state");h[m]=!0;t=function(e,t){if(u(e,m))throw new _(f);t.facade=e;c(e,m,t);return t};r=function(e){return u(e,m)?e[m]:{}};n=function(e){return u(e,m)}}e.exports={set:t,get:r,has:n,enforce:function(e){return n(e)?r(e):t(e,{})},getterFor:function(e){return function(t){var n;if(!a(t)||(n=r(t)).type!==e)throw new _("Incompatible receiver, "+e+" required");return n}}}}),is_array_namespaceFn=()=>__webpack_require__(376),is_callable_namespaceFn=()=>__webpack_require__(901),is_forced_namespaceFn=()=>__webpack_require__(796),F=__webpack_require__.cw(e=>{var t=is_callable_namespaceFn();e.exports=function(e){return"object"==typeof e?null!==e:t(e)}}),is_pure_namespaceFn=()=>__webpack_require__(395),A=__webpack_require__.cw(e=>{var t=F(),r=E().get;e.exports=function isRawJSON(e){if(!t(e))return!1;var n=r(e);return!!n&&"RawJSON"===n.type}}),I=__webpack_require__.cw(e=>{var t=b(),r=is_callable_namespaceFn(),n=object_is_prototype_of_namespaceFn(),i=Q(),o=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var i=t("Symbol");return r(i)&&n(i.prototype,o(e))}}),T=__webpack_require__.cw(e=>{var t=to_length_namespaceFn();e.exports=function(e){return t(e.length)}}),P=__webpack_require__.cw(e=>{var t=function_uncurry_this_namespaceFn(),r=fails_namespaceFn(),n=is_callable_namespaceFn(),i=v(),o=p(),a=w().CONFIGURABLE,s=O(),c=E(),u=c.enforce,l=c.get,h=String,f=Object.defineProperty,_=t("".slice),d=t("".replace),g=t([].join),m=o&&!r(function(){return 8!==f(function(){},"length",{value:8}).length}),b=String(String).split("String"),y=e.exports=function(e,t,r){"Symbol("===_(h(t),0,7)&&(t="["+d(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]");r&&r.getter&&(t="get "+t);r&&r.setter&&(t="set "+t);(!i(e,"name")||a&&e.name!==t)&&(o?f(e,"name",{value:t,configurable:!0}):e.name=t);m&&r&&i(r,"arity")&&e.length!==r.arity&&f(e,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?o&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=u(e);i(n,"source")||(n.source=g(b,"string"==typeof t?t:""));return e};Function.prototype.toString=y(function toString(){return n(this)&&l(this).source||s(this)},"toString")}),map_helpers_namespaceFn=()=>__webpack_require__(248),j=__webpack_require__.cw(e=>{var t,n=r(),i=C(),o=f(),a=S(),s=x(),c=h(),u=L(),l="prototype",p="script",_=u("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return"<"+p+">"+e+"</"+p+">"},NullProtoObjectViaActiveX=function(e){e.write(scriptTag(""));e.close();var t=e.parentWindow.Object;e=null;return t},NullProtoObject=function(){try{t=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"!=typeof document?document.domain&&t?NullProtoObjectViaActiveX(t):function(){var e,t=c("iframe"),r="java"+p+":";t.style.display="none";s.appendChild(t);t.src=String(r);(e=t.contentWindow.document).open();e.write(scriptTag("document.F=Object"));e.close();return e.F}():NullProtoObjectViaActiveX(t);for(var e=o.length;e--;)delete NullProtoObject[l][o[e]];return NullProtoObject()};a[_]=!0;e.exports=Object.create||function create(e,t){var r;if(null!==e){EmptyConstructor[l]=n(e);r=new EmptyConstructor;EmptyConstructor[l]=null;r[_]=e}else r=NullProtoObject();return void 0===t?r:i.f(r,t)}}),C=__webpack_require__.cw((e,t)=>{var n=p(),i=ee(),o=q(),a=r(),s=G(),c=R();t.f=n&&!i?Object.defineProperties:function defineProperties(e,t){a(e);for(var r,n=s(t),i=c(t),u=i.length,l=0;u>l;)o.f(e,r=i[l++],n[r]);return e}}),q=__webpack_require__.cw((e,t)=>{var n=p(),i=k(),o=ee(),a=r(),s=X(),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",_="writable";t.f=n?o?function defineProperty(e,t,r){a(e);t=s(t);a(r);if("function"==typeof e&&"prototype"===t&&"value"in r&&_ in r&&!r[_]){var n=l(e,t);if(n&&n[_]){e[t]=r.value;r={configurable:f in r?r[f]:n[f],enumerable:h in r?r[h]:n[h],writable:!1}}}return u(e,t,r)}:u:function defineProperty(e,t,r){a(e);t=s(t);a(r);if(i)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");"value"in r&&(e[t]=r.value);return e}}),M=__webpack_require__.cw((e,t)=>{var r=p(),n=m(),i=V(),o=c(),a=G(),s=X(),u=v(),l=k(),h=Object.getOwnPropertyDescriptor;t.f=r?h:function getOwnPropertyDescriptor(e,t){e=a(e);t=s(t);if(l)try{return h(e,t)}catch(e){}if(u(e,t))return o(!n(i.f,e,t),e[t])}}),D=__webpack_require__.cw((e,t)=>{var r=N(),n=f().concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return r(e,n)}}),object_is_prototype_of_namespaceFn=()=>__webpack_require__(625),N=__webpack_require__.cw(e=>{var t=function_uncurry_this_namespaceFn(),r=v(),i=G(),o=n().indexOf,a=S(),s=t([].push);e.exports=function(e,t){var n,c=i(e),u=0,l=[];for(n in c)!r(a,n)&&r(c,n)&&s(l,n);for(;t.length>u;)r(c,n=t[u++])&&(~o(l,n)||s(l,n));return l}}),R=__webpack_require__.cw(e=>{var t=N(),r=f();e.exports=Object.keys||function keys(e){return t(e,r)}}),V=__webpack_require__.cw((e,t)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function propertyIsEnumerable(e){var t=n(this,e);return!!t&&t.enumerable}:r}),z=__webpack_require__.cw(e=>{var t=m(),r=is_callable_namespaceFn(),n=F(),i=TypeError;e.exports=function(e,o){var a,s;if("string"===o&&r(a=e.toString)&&!n(s=t(a,e)))return s;if(r(a=e.valueOf)&&!n(s=t(a,e)))return s;if("string"!==o&&r(a=e.toString)&&!n(s=t(a,e)))return s;throw new i("Can't convert object to primitive value")}}),H=__webpack_require__.cw(e=>{var t=b(),n=function_uncurry_this_namespaceFn(),i=D(),o=__webpack_require__(717),a=r(),s=n([].concat);e.exports=t("Reflect","ownKeys")||function ownKeys(e){var t=i.f(a(e)),r=o.f;return r?s(t,r(e)):t}}),W=__webpack_require__.cw(e=>{var t=function_uncurry_this_namespaceFn(),r=v(),n=SyntaxError,i=parseInt,o=String.fromCharCode,a=t("".charAt),s=t("".slice),c=t(/./.exec),u={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},l=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var h=!0,f="";t<e.length;){var _=a(e,t);if("\\"===_){var d=s(e,t,t+2);if(r(u,d)){f+=u[d];t+=2}else{if("\\u"!==d)throw new n('Unknown escape sequence: "'+d+'"');var g=s(e,t+=2,t+4);if(!c(l,g))throw new n("Bad Unicode escape at: "+t);f+=o(i(g,16));t+=4}}else{if('"'===_){h=!1;t++;break}if(c(p,_))throw new n("Bad control character in string literal at: "+t);f+=_;t++}}if(h)throw new n("Unterminated string at: "+t);return{value:f,end:t}}}),L=__webpack_require__.cw(e=>{var t=B(),r=uid_namespaceFn(),n=t("keys");e.exports=function(e){return n[e]||(n[e]=r(e))}}),$=__webpack_require__.cw(e=>{var t=is_pure_namespaceFn(),r=y(),n=l(),i="__core-js_shared__",o=e.exports=r[i]||n(i,{});(o.versions||(o.versions=[])).push({version:"3.51.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.51.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),B=__webpack_require__.cw(e=>{var t=$(),r=Object.create||Object;e.exports=function(e,n){return t[e]||(t[e]=n||r(null))}}),U=__webpack_require__.cw(e=>{var t=d(),r=fails_namespaceFn(),n=y().String;e.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}),J=__webpack_require__.cw(e=>{var t=to_integer_or_infinity_namespaceFn(),r=Math.max,n=Math.min;e.exports=function(e,i){var o=t(e);return o<0?r(o+i,0):n(o,i)}}),G=__webpack_require__.cw(e=>{var t=__webpack_require__(55),r=__webpack_require__(750);e.exports=function(e){return t(r(e))}}),to_integer_or_infinity_namespaceFn=()=>__webpack_require__(291),to_length_namespaceFn=()=>__webpack_require__(14),to_object_namespaceFn=()=>__webpack_require__(981),K=__webpack_require__.cw(e=>{var t=m(),r=F(),n=I(),i=__webpack_require__(966),o=z(),a=re(),s=TypeError,c=a("toPrimitive");e.exports=function(e,a){if(!r(e)||n(e))return e;var u,l=i(e,c);if(l){void 0===a&&(a="default");u=t(l,e,a);if(!r(u)||n(u))return u;throw new s("Can't convert object to primitive value")}void 0===a&&(a="number");return o(e,a)}}),X=__webpack_require__.cw(e=>{var t=K(),r=I();e.exports=function(e){var n=t(e,"string");return r(n)?n:n+""}}),Y=__webpack_require__.cw(e=>{var t={};t[re()("toStringTag")]="z";e.exports="[object z]"===String(t)}),Z=__webpack_require__.cw(e=>{var t=o(),r=String;e.exports=function(e){if("Symbol"===t(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}}),uid_namespaceFn=()=>__webpack_require__(392),Q=__webpack_require__.cw(e=>{var t=U();e.exports=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}),ee=__webpack_require__.cw(e=>{var t=p(),r=fails_namespaceFn();e.exports=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}),te=__webpack_require__.cw(e=>{var t=y(),r=is_callable_namespaceFn(),n=t.WeakMap;e.exports=r(n)&&/native code/.test(String(n))}),re=__webpack_require__.cw(e=>{var t=y(),r=B(),n=v(),i=uid_namespaceFn(),o=U(),a=Q(),s=t.Symbol,c=r("wks"),u=a?s.for||s:s&&s.withoutSetter||i;e.exports=function(e){n(c,e)||(c[e]=o&&n(s,e)?s[e]:u("Symbol."+e));return c[e]}}),ne=__webpack_require__.cw(()=>{var e=g(),t=to_object_namespaceFn(),r=T(),n=i(),o=__webpack_require__(837);e({target:"Array",proto:!0,arity:1,forced:fails_namespaceFn()(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function push(e){var i=t(this),a=r(i),s=arguments.length;o(a+s);for(var c=0;c<s;c++){i[a]=arguments[c];a++}n(i,a);return a}})}),ie=__webpack_require__.cw(()=>{var e=g(),t=b(),r=m(),i=function_uncurry_this_namespaceFn(),o=fails_namespaceFn(),a=is_array_namespaceFn(),s=is_callable_namespaceFn(),c=F(),u=j(),l=A(),p=I(),h=classof_raw_namespaceFn(),f=__webpack_require__(240),_=n().includes,d=v(),w=Z(),y=W(),S=uid_namespaceFn(),x=U(),k=__webpack_require__(819),O=String,E=TypeError,T=t("JSON","stringify"),P=t("BigInt"),C=i("".valueOf),q=i((!0).valueOf),M=P&&i(P.prototype.valueOf),D=i(/./.exec),N=i("".charAt),R=i("".charCodeAt),V=i("".replace),z=i("".slice),H=i([].push),L=i([].pop),$=i(1.1.toString),B=/[\uD800-\uDFFF]/g,J=/^[\uD800-\uDBFF]$/,G=/^[\uDC00-\uDFFF]$/,K=/^\d+$/,X=S(),Y=S(),Q=S(),ee=X.length,te=Y.length,re=!x||o(function(){var e=t("Symbol")("stringify detection");return"[null]"!==T([e])||"{}"!==T({a:e})||"{}"!==T(Object(e))}),ne=o(function(){return'"\\udf06\\ud834"'!==T("\udf06\ud834")||'"\\udead"'!==T("\udead")}),ie=k?t("JSON","isRawJSON"):l,oe=re?function(e,t,n){return T(e,function(e,n){var i=r(t,this,e,n);if(!p(i))return i},n)}:T,fixIllFormedJSON=function(e,t,r){var n=N(r,t-1),i=N(r,t+1);return D(J,e)&&!D(G,i)||D(G,e)&&!D(J,n)?"\\u"+$(R(e,0),16):e},hasInternalSlot=function(e,t){try{e(t);return!0}catch(e){return!1}},isSerializedAsObject=function(e){if(!c(e)||s(e)||a(e))return!1;try{return!function(e){var t=h(e);return"Number"===t&&hasInternalSlot(f,e)||"String"===t&&hasInternalSlot(C,e)||"Boolean"===t&&hasInternalSlot(q,e)||!!M&&"BigInt"===t&&hasInternalSlot(M,e)}(e)}catch(e){return!0}},createElementHolder=function(e,t){return{toJSON:function(){var n=e[t];if(c(n)||"bigint"==typeof n){var i=n.toJSON;s(i)&&(n=r(i,n,t))}return n}}};T&&e({target:"JSON",stat:!0,arity:3,forced:re||ne||!k},{stringify:function stringify(e,t,n){var i,o=s(t)?t:void 0,c=o?void 0:function(e){if(a(e)){for(var t=e.length,r=[],n=u(null),i=0;i<t;i++){var o,s=e[i];if("string"==typeof s)o=s;else{if("number"!=typeof s&&"Number"!==h(s)&&"String"!==h(s))continue;o=w(s)}if(!d(n,o)){n[o]=!0;H(r,o)}}return r}}(t),l=c&&function(e){for(var t=0,r=e.length;t<r;t++)if(D(K,e[t]))return Y;return""}(c),p=[],f=[],g=[],m=!1,b=!0,v=oe(e,function(e,t){e=O(e);if(c){if(e===Q){L(f);i=L(g);return}if(b)b=!1;else if(this!==i&&!a(this)&&!_(c,e))return}else o&&(t=r(o,this,e,t));if(ie(t)){if(k)return t;m=!0;return X+(H(p,t.rawJSON)-1)}if(c&&isSerializedAsObject(t)){if(_(f,t))throw new E("Converting circular structure to JSON");var n=function(e,t,r){for(var n=u(null),i=0,o=t.length;i<o;i++){var a=t[i];n[r+a]=createElementHolder(e,a)}n[Q]=null;return n}(t,c,l);H(f,t);H(g,i);i=n;l&&(m=!0);return n}return t},n);if("string"!=typeof v)return v;ne&&(v=V(v,B,fixIllFormedJSON));if(!m)return v;for(var S="",x=v.length,F=0;F<x;F++){var A=N(v,F);if('"'===A){var I=y(v,++F).end-1,T=z(v,F,I);z(T,0,ee)===X?S+=p[z(T,ee)]:z(T,0,te)===Y?S+='"'+z(T,te)+'"':S+='"'+T+'"';F=I}else S+=A}return S}})}),oe=__webpack_require__.cw(()=>{var e=g(),t=__webpack_require__(306),r=map_helpers_namespaceFn(),n=is_pure_namespaceFn(),i=r.get,o=r.has,a=r.set;e({target:"Map",proto:!0,real:!0,forced:n},{getOrInsertComputed:function getOrInsertComputed(e,r){var n=o(this,e);t(r);if(n)return i(this,e);0===e&&1/e==-1/0&&(e=0);var s=r(e);a(this,e,s);return s}})}),ae=__webpack_require__.cw(()=>{var e=g(),t=map_helpers_namespaceFn(),r=is_pure_namespaceFn(),n=t.get,i=t.has,o=t.set;e({target:"Map",proto:!0,real:!0,forced:r},{getOrInsert:function getOrInsert(e,t){if(i(this,e))return n(this,e);o(this,e,t);return t}})});ne();ie();ae();oe();class SandboxSupportBase{constructor(e){this.win=e;this.timeoutIds=new Map;this.commFun=null}destroy(){this.commFun=null;for(const e of this.timeoutIds.values())this.win.clearTimeout(e);this.timeoutIds=null}exportValueToSandbox(e){throw new Error("Not implemented")}importValueFromSandbox(e){throw new Error("Not implemented")}createErrorForSandbox(e){throw new Error("Not implemented")}callSandboxFunction(e,t){if(this.commFun)try{t=this.exportValueToSandbox(t);this.commFun(e,t)}catch(e){this.win.console.error(e)}}createSandboxExternals(){const e={setTimeout:(e,t)=>{if("number"!=typeof e||"number"!=typeof t)return;0===e&&this.win.clearTimeout(this.timeoutIds.get(e));const r=this.win.setTimeout(()=>{this.timeoutIds.delete(e);this.callSandboxFunction("timeoutCb",{callbackId:e,interval:!1})},t);this.timeoutIds.set(e,r)},clearTimeout:e=>{this.win.clearTimeout(this.timeoutIds.get(e));this.timeoutIds.delete(e)},setInterval:(e,t)=>{if("number"!=typeof e||"number"!=typeof t)return;const r=this.win.setInterval(()=>{this.callSandboxFunction("timeoutCb",{callbackId:e,interval:!0})},t);this.timeoutIds.set(e,r)},clearInterval:e=>{this.win.clearInterval(this.timeoutIds.get(e));this.timeoutIds.delete(e)},alert:e=>{"string"==typeof e&&this.win.alert(e)},confirm:e=>"string"==typeof e&&this.win.confirm(e),prompt:(e,t)=>"string"!=typeof e||"string"!=typeof t?null:this.win.prompt(e,t),parseURL:e=>{const t=new this.win.URL(e);return Object.fromEntries(["hash","host","hostname","href","origin","password","pathname","port","protocol","search","searchParams","username"].map(e=>[e,t[e].toString()]))},send:e=>{if(!e)return;const t=new this.win.CustomEvent("updatefromsandbox",{detail:this.importValueFromSandbox(e)});this.win.dispatchEvent(t)}};Object.setPrototypeOf(e,null);return(t,r)=>{try{const n=e[t](...r);return this.exportValueToSandbox(n)}catch(e){throw this.createErrorForSandbox(e?.toString()??"")}}}}class SandboxSupport extends SandboxSupportBase{exportValueToSandbox(e){return JSON.stringify(e,(e,t)=>t instanceof Map?Object.fromEntries(t):t)}importValueFromSandbox(e){return e}createErrorForSandbox(e){return new Error(e)}}class Sandbox{constructor(e,t){this.support=new SandboxSupport(e,this);t.externalCall=this.support.createSandboxExternals();this._module=t;this._alertOnError=0}create(e){const t=['(()=>{"use strict";var e={529(e){e.exports=function(e,t){return{value:e,done:t}}},837(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}},767(e){e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},117(e){e.exports=function(e){return null==e}},859(e){e.exports=function(e){e.iterator=e.next=e.nextHandler=e.mapper=e.predicate=e.inner=e.iterables=e.iters=e.openIters=e.padding=e.finishResults=e.buffer=null}},684(e){e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}},269(e){e.exports=Object.create?Object.create(null):{}},741(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function trunc(e){var i=+e;return(i>0?r:t)(i)}},717(e,t){t.f=Object.getOwnPropertySymbols},750(e,t,r){var i=r(117),n=TypeError;e.exports=function(e){if(i(e))throw new n("Can\'t call method on "+e);return e}},835(e){e.exports=function(e){try{var t=new Set,r={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){t.clear();t.add(4);return function(){return{done:!0}}}})}},i=t[e](r);return 1===i.size&&4===i.values().next().value}catch(e){return!1}}},291(e,t,r){var i=r(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},14(e,t,r){var i=r(291),n=Math.min;e.exports=function(e){var t=i(e);return t>0?n(t,9007199254740991):0}},981(e,t,r){var i=r(750),n=Object;e.exports=function(e){return n(i(e))}},823(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}}};const t={};function __webpack_require__(r){const i=t[r];if(void 0!==i)return i.exports;const n=t[r]={exports:{}};e[r](n,n.exports,__webpack_require__);return n.exports}__webpack_require__.cw=e=>{var t;return()=>{if(e){var r=e;e=0;t={exports:{}};r.call(t.exports,t,t.exports)}return t.exports}};var r=__webpack_require__.cw(e=>{var t=te(),r=try_to_string_namespaceFn(),i=TypeError;e.exports=function(e){if(t(e))return e;throw new i(r(e)+" is not a function")}}),i=__webpack_require__.cw(e=>{var t=ne(),r=String,i=TypeError;e.exports=function(e){if(t(e))return e;throw new i("Can\'t set "+r(e)+" as a prototype")}}),n=__webpack_require__.cw(e=>{var t=je().has;e.exports=function(e){t(e);return e}}),o=__webpack_require__.cw(e=>{var t=at(),r=new t.WeakMap,i=t.set,n=t.remove;e.exports=function(e){i(r,e,1);n(r,e);return e}}),a=__webpack_require__.cw(e=>{var t=at().has;e.exports=function(e){t(e);return e}}),s=__webpack_require__.cw(e=>{var t=st(),r=we(),i=ye().f,n=t("unscopables"),o=Array.prototype;void 0===o[n]&&i(o,n,{configurable:!0,value:r(null)});e.exports=function(e){o[n][e]=!0}}),c=__webpack_require__.cw(e=>{var t=xe(),r=TypeError;e.exports=function(e,i){if(t(i,e))return e;throw new r("Incorrect invocation")}}),u=__webpack_require__.cw(e=>{var t=ie(),r=String,i=TypeError;e.exports=function(e){if(t(e))return e;throw new i(r(e)+" is not an object")}}),l=__webpack_require__.cw(e=>{var t=Xe(),r=Ye(),i=ge(),createMethod=function(e){return function(n,o,a){var s=t(n),c=i(s);if(0===c)return!e&&-1;var u,l=r(a,c);if(e&&o!=o){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===o)return e||l||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}}),h=__webpack_require__.cw(e=>{var t=S(),r=ee(),i=TypeError,n=Object.getOwnPropertyDescriptor,o=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(r(e)&&!n(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}}),d=__webpack_require__.cw(e=>{var t=u(),r=he();e.exports=function(e,i,n,o){try{return o?i(t(n)[0],n[1]):i(n)}catch(t){r(e,"throw",t)}}}),p=__webpack_require__.cw(e=>{var t=q(),r=t({}.toString),i=t("".slice);e.exports=function(e){return i(r(e),8,-1)}}),f=__webpack_require__.cw(e=>{var t=et(),r=te(),i=p(),n=st()("toStringTag"),o=Object,a="Arguments"===i(function(){return arguments}());e.exports=t?i:function(e){var t,s,c;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(t=o(e),n))?s:a?i(t):"Object"===(c=i(t))&&r(t.callee)?"Arguments":c}}),g=__webpack_require__.cw(e=>{var t=U(),r=Fe(),i=Ae(),n=ye();e.exports=function(e,o,a){for(var s=r(o),c=n.f,u=i.f,l=0;l<s.length;l++){var h=s[l];t(e,h)||a&&t(a,h)||c(e,h,u(o,h))}}}),m=__webpack_require__.cw(e=>{var t=T();e.exports=!t(function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype})}),_=__webpack_require__.cw(e=>{var t=S(),r=ye(),i=b();e.exports=t?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,r){e[t]=r;return e}}),b=__webpack_require__.cw(e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}}),w=__webpack_require__.cw(e=>{var t=S(),r=ye(),i=b();e.exports=function(e,n,o){t?r.f(e,n,i(0,o)):e[n]=o}}),v=__webpack_require__.cw(e=>{var t=me(),r=ye();e.exports=function(e,i,n){n.get&&t(n.get,i,{getter:!0});n.set&&t(n.set,i,{setter:!0});return r.f(e,i,n)}}),y=__webpack_require__.cw(e=>{var t=te(),r=ye(),i=me(),n=k();e.exports=function(e,o,a,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:o;t(a)&&i(a,u,s);if(s.global)c?e[o]=a:n(o,a);else{try{s.unsafe?e[o]&&(c=!0):delete e[o]}catch(e){}c?e[o]=a:r.f(e,o,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}}),A=__webpack_require__.cw(e=>{var t=y();e.exports=function(e,r,i){for(var n in r)t(e,n,r[n],i);return e}}),k=__webpack_require__.cw(e=>{var t=B(),r=Object.defineProperty;e.exports=function(e,i){try{r(t,e,{value:i,configurable:!0,writable:!0})}catch(r){t[e]=i}return i}}),S=__webpack_require__.cw(e=>{var t=T();e.exports=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}),x=__webpack_require__.cw(e=>{var t=B(),r=ie(),i=t.document,n=r(i)&&r(i.createElement);e.exports=function(e){return n?i.createElement(e):{}}}),I=__webpack_require__.cw(e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),O=__webpack_require__.cw(e=>{var t=B().navigator,r=t&&t.userAgent;e.exports=r?String(r):""}),C=__webpack_require__.cw(e=>{var t,r,i=B(),n=O(),o=i.process,a=i.Deno,s=o&&o.versions||a&&a.version,c=s&&s.v8;c&&(r=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1]));!r&&n&&(!(t=n.match(/Edge\\/(\\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\\/(\\d+)/))&&(r=+t[1]);e.exports=r}),E=__webpack_require__.cw(e=>{var t=B(),r=Ae().f,i=_(),n=y(),o=k(),a=g(),s=re();e.exports=function(e,c){var u,l,h,d,p,f=e.target,g=e.global,m=e.stat;if(u=g?t:m?t[f]||o(f,{}):t[f]&&t[f].prototype)for(l in c){d=c[l];h=e.dontCallGetSet?(p=r(u,l))&&p.value:u[l];if(!s(g?l:f+(m?".":"#")+l,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;a(d,h)}(e.sham||h&&h.sham)&&i(d,"sham",!0);n(u,l,d,e)}}}),T=__webpack_require__.cw(e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}}),D=__webpack_require__.cw(e=>{var t=M(),r=Function.prototype,i=r.apply,n=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(t?n.bind(i):function(){return n.apply(i,arguments)})}),P=__webpack_require__.cw(e=>{var t=R(),i=r(),n=M(),o=t(t.bind);e.exports=function(e,t){i(e);return void 0===t?e:n?o(e,t):function(){return e.apply(t,arguments)}}}),M=__webpack_require__.cw(e=>{var t=T();e.exports=!t(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}),j=__webpack_require__.cw(e=>{var t=M(),r=Function.prototype.call;e.exports=t?r.bind(r):function(){return r.apply(r,arguments)}}),V=__webpack_require__.cw(e=>{var t=S(),r=U(),i=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=r(i,"name"),a=o&&(!t||t&&n(i,"name").configurable);e.exports={CONFIGURABLE:a}}),N=__webpack_require__.cw(e=>{var t=q(),i=r();e.exports=function(e,r,n){try{return t(i(Object.getOwnPropertyDescriptor(e,r)[n]))}catch(e){}}}),R=__webpack_require__.cw(e=>{var t=p(),r=q();e.exports=function(e){if("Function"===t(e))return r(e)}}),q=__webpack_require__.cw(e=>{var t=M(),r=Function.prototype,i=r.call,n=t&&r.bind.bind(i,i);e.exports=t?n:function(e){return function(){return i.apply(e,arguments)}}}),z=__webpack_require__.cw(e=>{var t=B(),r=te();e.exports=function(e,i){return arguments.length<2?(n=t[e],r(n)?n:void 0):t[e]&&t[e][i];var n}}),get_iterator_direct_namespaceFn=()=>__webpack_require__(767),H=__webpack_require__.cw(e=>{var t=j(),r=te(),i=u(),n=try_to_string_namespaceFn(),o=W(),a=TypeError;e.exports=function(e,s){var c=arguments.length<2?o(e):s;if(r(c))return i(t(c,e));throw new a(n(e)+" is not iterable")}}),W=__webpack_require__.cw(e=>{var t=p(),r=is_null_or_undefined_namespaceFn(),i=L(),n=st()("iterator"),o=Array.prototype;e.exports=function(e){if(!r(e))return i(e,n)||i(e,"@@iterator")||("Arguments"===t(e)?o[n]:void 0)}}),L=__webpack_require__.cw(e=>{var t=r(),i=is_null_or_undefined_namespaceFn();e.exports=function(e,r){var n=e[r];return i(n)?void 0:t(n)}}),$=__webpack_require__.cw(e=>{var t=r(),i=u(),n=j(),o=to_integer_or_infinity_namespaceFn(),a=get_iterator_direct_namespaceFn(),s="Invalid size",c=RangeError,l=TypeError,h=Math.max,SetRecord=function(e,r){this.set=e;this.size=h(r,0);this.has=t(e.has);this.keys=t(e.keys)};SetRecord.prototype={getIterator:function(){return a(i(n(this.keys,this.set)))},includes:function(e){return n(this.has,this.set,e)}};e.exports=function(e){i(e);var t=+e.size;if(t!=t)throw new l(s);var r=o(t);if(r<0)throw new c(s);return new SetRecord(e,r)}}),B=__webpack_require__.cw(function(e){var check=function(e){return e&&e.Math===Math&&e};e.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||check("object"==typeof this&&this)||function(){return this}()||Function("return this")()}),U=__webpack_require__.cw(e=>{var t=q(),r=to_object_namespaceFn(),i=t({}.hasOwnProperty);e.exports=Object.hasOwn||function hasOwn(e,t){return i(r(e),t)}}),G=__webpack_require__.cw(e=>{e.exports={}}),K=__webpack_require__.cw(e=>{var t=z();e.exports=t("document","documentElement")}),J=__webpack_require__.cw(e=>{var t=S(),r=T(),i=x();e.exports=!t&&!r(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})}),Y=__webpack_require__.cw(e=>{var t=q(),r=T(),i=p(),n=Object,o=t("".split);e.exports=r(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?o(e,""):n(e)}:n}),X=__webpack_require__.cw(e=>{var t=q(),r=te(),i=Ue(),n=t(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return n(e)});e.exports=i.inspectSource}),Z=__webpack_require__.cw(e=>{var t,r,i,n=ot(),o=B(),a=ie(),s=_(),c=U(),u=Ue(),l=Be(),h=G(),d="Object already initialized",p=o.TypeError,f=o.WeakMap;if(n||u.state){var g=u.state||(u.state=new f);g.get=g.get;g.has=g.has;g.set=g.set;t=function(e,t){if(g.has(e))throw new p(d);t.facade=e;g.set(e,t);return t};r=function(e){return g.get(e)||{}};i=function(e){return g.has(e)}}else{var m=l("state");h[m]=!0;t=function(e,t){if(c(e,m))throw new p(d);t.facade=e;s(e,m,t);return t};r=function(e){return c(e,m)?e[m]:{}};i=function(e){return c(e,m)}}e.exports={set:t,get:r,has:i,enforce:function(e){return i(e)?r(e):t(e,{})},getterFor:function(e){return function(t){var i;if(!a(t)||(i=r(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return i}}}}),Q=__webpack_require__.cw(e=>{var t=st(),r=iterators_namespaceFn(),i=t("iterator"),n=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||n[i]===e)}}),ee=__webpack_require__.cw(e=>{var t=p();e.exports=Array.isArray||function isArray(e){return"Array"===t(e)}}),te=__webpack_require__.cw(e=>{var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}}),re=__webpack_require__.cw(e=>{var t=T(),r=te(),i=/#|\\.prototype\\./,isForced=function(e,i){var c=o[n(e)];return c===s||c!==a&&(r(i)?t(i):!!i)},n=isForced.normalize=function(e){return String(e).replace(i,".").toLowerCase()},o=isForced.data={},a=isForced.NATIVE="N",s=isForced.POLYFILL="P";e.exports=isForced}),is_null_or_undefined_namespaceFn=()=>__webpack_require__(117),ie=__webpack_require__.cw(e=>{var t=te();e.exports=function(e){return"object"==typeof e?null!==e:t(e)}}),ne=__webpack_require__.cw(e=>{var t=ie();e.exports=function(e){return t(e)||null===e}}),oe=__webpack_require__.cw(e=>{e.exports=!1}),ae=__webpack_require__.cw(e=>{var t=ie(),r=Z().get;e.exports=function isRawJSON(e){if(!t(e))return!1;var i=r(e);return!!i&&"RawJSON"===i.type}}),se=__webpack_require__.cw(e=>{var t=z(),r=te(),i=xe(),n=it(),o=Object;e.exports=n?function(e){return"symbol"==typeof e}:function(e){var n=t("Symbol");return r(n)&&i(n.prototype,o(e))}}),ce=__webpack_require__.cw(e=>{var t=j();e.exports=function(e,r,i){for(var n,o,a=i?e:e.iterator,s=e.next;!(n=t(s,a)).done;)if(void 0!==(o=r(n.value)))return o}}),ue=__webpack_require__.cw(e=>{var t=P(),r=j(),i=u(),n=try_to_string_namespaceFn(),o=Q(),a=ge(),s=xe(),c=H(),l=W(),h=he(),d=TypeError,Result=function(e,t){this.stopped=e;this.result=t},p=Result.prototype;e.exports=function(e,u,f){var g,m,_,b,w,v,y,A=f&&f.that,k=!(!f||!f.AS_ENTRIES),S=!(!f||!f.IS_RECORD),x=!(!f||!f.IS_ITERATOR),I=!(!f||!f.INTERRUPTED),O=t(u,A),stop=function(e){var t=g;g=void 0;t&&h(t,"normal");return new Result(!0,e)},callFn=function(e){if(k){i(e);return I?O(e[0],e[1],stop):O(e[0],e[1])}return I?O(e,stop):O(e)};if(S)g=e.iterator;else if(x)g=e;else{if(!(m=l(e)))throw new d(n(e)+" is not iterable");if(o(m)){for(_=0,b=a(e);b>_;_++)if((w=callFn(e[_]))&&s(p,w))return w;return new Result(!1)}g=c(e,m)}v=S?e.next:g.next;for(;!(y=r(v,g)).done;){var C=y.value;try{w=callFn(C)}catch(e){if(!g)throw e;h(g,"throw",e)}if("object"==typeof w&&w&&s(p,w))return w}return new Result(!1)}}),le=__webpack_require__.cw(e=>{var t=he();e.exports=function(e,r,i){for(var n=e.length-1;n>=0;n--)if(void 0!==e[n])try{i=t(e[n].iterator,r,i)}catch(e){r="throw";i=e}if("throw"===r)throw i;return i}}),he=__webpack_require__.cw(e=>{var t=j(),r=u(),i=L();e.exports=function(e,n,o){var a,s;r(e);try{if(!(a=i(e,"return"))){if("throw"===n)throw o;return o}a=t(a,e)}catch(e){s=!0;a=e}if("throw"===n)throw o;if(s)throw a;r(a);return o}}),de=__webpack_require__.cw(e=>{var t=j(),r=we(),i=_(),n=A(),o=st(),a=Z(),s=L(),c=fe().IteratorPrototype,u=__webpack_require__(529),l=he(),h=le(),d=__webpack_require__(859),p=o("toStringTag"),f="IteratorHelper",g="WrapForValidIterator",m="normal",b="throw",w=a.set,createIteratorProxyPrototype=function(e){var i=a.getterFor(e?g:f);return n(r(c),{next:function next(){var t=i(this);if(e)return t.nextHandler();if(t.done)return u(void 0,!0);try{var r=t.nextHandler();t.done&&d(t);return t.returnHandlerResult?r:u(r,t.done)}catch(e){t.done=!0;d(t);throw e}},return:function(){var r=i(this),n=r.iterator,o=r.inner,a=r.openIters,c=r.done;r.done=!0;if(e){var p=s(n,"return");return p?t(p,n):u(void 0,!0)}d(r);if(c)return u(void 0,!0);if(o)try{l(o.iterator,m)}catch(e){return l(n,b,e)}if(a)try{h(a,m)}catch(e){if(n)return l(n,b,e);throw e}n&&l(n,m);return u(void 0,!0)}})},v=createIteratorProxyPrototype(!0),y=createIteratorProxyPrototype(!1);i(y,p,"Iterator Helper");e.exports=function(e,t,r){var i=function Iterator(i,n){if(n){n.iterator=i.iterator;n.next=i.next}else n=i;n.type=t?g:f;n.returnHandlerResult=!!r;n.nextHandler=e;n.counter=0;n.done=!1;w(this,n)};i.prototype=t?v:y;return i}}),iterator_helper_throws_on_invalid_iterator_namespaceFn=()=>__webpack_require__(684),pe=__webpack_require__.cw(e=>{var t=B();e.exports=function(e,r){var i=t.Iterator,n=i&&i.prototype,o=n&&n[e],a=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(e){e instanceof r||(a=!1)}if(!a)return o}}),fe=__webpack_require__.cw(e=>{var t,r,i,n=T(),o=te(),a=ie(),s=we(),c=Se(),u=y(),l=st(),h=oe(),d=l("iterator");[].keys&&("next"in(i=[].keys())?(r=c(c(i)))!==Object.prototype&&(t=r):!0);!a(t)||n(function(){var e={};return t[d].call(e)!==e})?t={}:h&&(t=s(t));o(t[d])||u(t,d,function(){return this});e.exports={IteratorPrototype:t}}),iterators_namespaceFn=()=>__webpack_require__(269),ge=__webpack_require__.cw(e=>{var t=to_length_namespaceFn();e.exports=function(e){return t(e.length)}}),me=__webpack_require__.cw(e=>{var t=q(),r=T(),i=te(),n=U(),o=S(),a=V().CONFIGURABLE,s=X(),c=Z(),u=c.enforce,l=c.get,h=String,d=Object.defineProperty,p=t("".slice),f=t("".replace),g=t([].join),m=o&&!r(function(){return 8!==d(function(){},"length",{value:8}).length}),_=String(String).split("String"),b=e.exports=function(e,t,r){"Symbol("===p(h(t),0,7)&&(t="["+f(h(t),/^Symbol\\(([^)]*)\\).*$/,"$1")+"]");r&&r.getter&&(t="get "+t);r&&r.setter&&(t="set "+t);(!n(e,"name")||a&&e.name!==t)&&(o?d(e,"name",{value:t,configurable:!0}):e.name=t);m&&r&&n(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?o&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=u(e);n(i,"source")||(i.source=g(_,"string"==typeof t?t:""));return e};Function.prototype.toString=b(function toString(){return i(this)&&l(this).source||s(this)},"toString")}),_e=__webpack_require__.cw(e=>{var t=q(),r=Map.prototype;e.exports={Map,set:t(r.set),get:t(r.get),has:t(r.has),remove:t(r.delete),proto:r}}),be=__webpack_require__.cw(e=>{var t=T();e.exports=!t(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})}),we=__webpack_require__.cw(e=>{var t,r=u(),i=ve(),n=I(),o=G(),a=K(),s=x(),c=Be(),l="prototype",h="script",d=c("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return"<"+h+">"+e+"</"+h+">"},NullProtoObjectViaActiveX=function(e){e.write(scriptTag(""));e.close();var t=e.parentWindow.Object;e=null;return t},NullProtoObject=function(){try{t=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"!=typeof document?document.domain&&t?NullProtoObjectViaActiveX(t):function(){var e,t=s("iframe"),r="java"+h+":";t.style.display="none";a.appendChild(t);t.src=String(r);(e=t.contentWindow.document).open();e.write(scriptTag("document.F=Object"));e.close();return e.F}():NullProtoObjectViaActiveX(t);for(var e=n.length;e--;)delete NullProtoObject[l][n[e]];return NullProtoObject()};o[d]=!0;e.exports=Object.create||function create(e,t){var n;if(null!==e){EmptyConstructor[l]=r(e);n=new EmptyConstructor;EmptyConstructor[l]=null;n[d]=e}else n=NullProtoObject();return void 0===t?n:i.f(n,t)}}),ve=__webpack_require__.cw((e,t)=>{var r=S(),i=nt(),n=ye(),o=u(),a=Xe(),s=Oe();t.f=r&&!i?Object.defineProperties:function defineProperties(e,t){o(e);for(var r,i=a(t),c=s(t),u=c.length,l=0;u>l;)n.f(e,r=c[l++],i[r]);return e}}),ye=__webpack_require__.cw((e,t)=>{var r=S(),i=J(),n=nt(),o=u(),a=Qe(),s=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";t.f=r?n?function defineProperty(e,t,r){o(e);t=a(t);o(r);if("function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var i=l(e,t);if(i&&i[p]){e[t]=r.value;r={configurable:d in r?r[d]:i[d],enumerable:h in r?r[h]:i[h],writable:!1}}}return c(e,t,r)}:c:function defineProperty(e,t,r){o(e);t=a(t);o(r);if(i)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new s("Accessors not supported");"value"in r&&(e[t]=r.value);return e}}),Ae=__webpack_require__.cw((e,t)=>{var r=S(),i=j(),n=Ce(),o=b(),a=Xe(),s=Qe(),c=U(),u=J(),l=Object.getOwnPropertyDescriptor;t.f=r?l:function getOwnPropertyDescriptor(e,t){e=a(e);t=s(t);if(u)try{return l(e,t)}catch(e){}if(c(e,t))return o(!i(n.f,e,t),e[t])}}),ke=__webpack_require__.cw((e,t)=>{var r=Ie(),i=I().concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return r(e,i)}}),Se=__webpack_require__.cw(e=>{var t=U(),r=te(),i=to_object_namespaceFn(),n=Be(),o=m(),a=n("IE_PROTO"),s=Object,c=s.prototype;e.exports=o?s.getPrototypeOf:function(e){var n=i(e);if(t(n,a))return n[a];var o=n.constructor;return r(o)&&n instanceof o?o.prototype:n instanceof s?c:null}}),xe=__webpack_require__.cw(e=>{var t=q();e.exports=t({}.isPrototypeOf)}),Ie=__webpack_require__.cw(e=>{var t=q(),r=U(),i=Xe(),n=l().indexOf,o=G(),a=t([].push);e.exports=function(e,t){var s,c=i(e),u=0,l=[];for(s in c)!r(o,s)&&r(c,s)&&a(l,s);for(;t.length>u;)r(c,s=t[u++])&&(~n(l,s)||a(l,s));return l}}),Oe=__webpack_require__.cw(e=>{var t=Ie(),r=I();e.exports=Object.keys||function keys(e){return t(e,r)}}),Ce=__webpack_require__.cw((e,t)=>{var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,n=i&&!r.call({1:2},1);t.f=n?function propertyIsEnumerable(e){var t=i(this,e);return!!t&&t.enumerable}:r}),Ee=__webpack_require__.cw(e=>{var t=N(),r=ie(),n=require_object_coercible_namespaceFn(),o=i();e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,i=!1,a={};try{(e=t(Object.prototype,"__proto__","set"))(a,[]);i=a instanceof Array}catch(e){}return function setPrototypeOf(t,a){n(t);o(a);if(!r(t))return t;i?e(t,a):t.__proto__=a;return t}}():void 0)}),Te=__webpack_require__.cw(e=>{var t=j(),r=te(),i=ie(),n=TypeError;e.exports=function(e,o){var a,s;if("string"===o&&r(a=e.toString)&&!i(s=t(a,e)))return s;if(r(a=e.valueOf)&&!i(s=t(a,e)))return s;if("string"!==o&&r(a=e.toString)&&!i(s=t(a,e)))return s;throw new n("Can\'t convert object to primitive value")}}),Fe=__webpack_require__.cw(e=>{var t=z(),r=q(),i=ke(),n=__webpack_require__(717),o=u(),a=r([].concat);e.exports=t("Reflect","ownKeys")||function ownKeys(e){var t=i.f(o(e)),r=n.f;return r?a(t,r(e)):t}}),De=__webpack_require__.cw(e=>{var t=q(),r=U(),i=SyntaxError,n=parseInt,o=String.fromCharCode,a=t("".charAt),s=t("".slice),c=t(/./.exec),u={\'\\\\"\':\'"\',"\\\\\\\\":"\\\\","\\\\/":"/","\\\\b":"\\b","\\\\f":"\\f","\\\\n":"\\n","\\\\r":"\\r","\\\\t":"\\t"},l=/^[\\da-f]{4}$/i,h=/^[\\u0000-\\u001F]$/;e.exports=function(e,t){for(var d=!0,p="";t<e.length;){var f=a(e,t);if("\\\\"===f){var g=s(e,t,t+2);if(r(u,g)){p+=u[g];t+=2}else{if("\\\\u"!==g)throw new i(\'Unknown escape sequence: "\'+g+\'"\');var m=s(e,t+=2,t+4);if(!c(l,m))throw new i("Bad Unicode escape at: "+t);p+=o(n(m,16));t+=4}}else{if(\'"\'===f){d=!1;t++;break}if(c(h,f))throw new i("Bad control character in string literal at: "+t);p+=f;t++}}if(d)throw new i("Unterminated string at: "+t);return{value:p,end:t}}}),require_object_coercible_namespaceFn=()=>__webpack_require__(750),Pe=__webpack_require__.cw(e=>{var t=je(),r=ze(),i=t.Set,n=t.add;e.exports=function(e){var t=new i;r(e,function(e){n(t,e)});return t}}),Me=__webpack_require__.cw(e=>{var t=n(),r=je(),i=Pe(),o=We(),a=$(),s=ze(),c=ce(),u=r.has,l=r.remove;e.exports=function difference(e){var r=t(this),n=a(e),h=i(r);o(h)<=n.size?s(h,function(e){n.includes(e)&&l(h,e)}):c(n.getIterator(),function(e){u(h,e)&&l(h,e)});return h}}),je=__webpack_require__.cw(e=>{var t=q(),r=Set.prototype;e.exports={Set,add:t(r.add),has:t(r.has),remove:t(r.delete),proto:r}}),Ve=__webpack_require__.cw(e=>{var t=n(),r=je(),i=We(),o=$(),a=ze(),s=ce(),c=r.Set,u=r.add,l=r.has;e.exports=function intersection(e){var r=t(this),n=o(e),h=new c;i(r)>n.size?s(n.getIterator(),function(e){l(r,e)&&u(h,e)}):a(r,function(e){n.includes(e)&&u(h,e)});return h}}),Ne=__webpack_require__.cw(e=>{var t=n(),r=je().has,i=We(),o=$(),a=ze(),s=ce(),c=he();e.exports=function isDisjointFrom(e){var n=t(this),u=o(e);if(i(n)<=u.size)return!1!==a(n,function(e){if(u.includes(e))return!1},!0);var l=u.getIterator();return!1!==s(l,function(e){if(r(n,e))return c(l.iterator,"normal",!1)})}}),Re=__webpack_require__.cw(e=>{var t=n(),r=We(),i=ze(),o=$();e.exports=function isSubsetOf(e){var n=t(this),a=o(e);return!(r(n)>a.size)&&!1!==i(n,function(e){if(!a.includes(e))return!1},!0)}}),qe=__webpack_require__.cw(e=>{var t=n(),r=je().has,i=We(),o=$(),a=ce(),s=he();e.exports=function isSupersetOf(e){var n=t(this),c=o(e);if(i(n)<c.size)return!1;var u=c.getIterator();return!1!==a(u,function(e){if(!r(n,e))return s(u.iterator,"normal",!1)})}}),ze=__webpack_require__.cw(e=>{var t=q(),r=ce(),i=je(),n=i.Set,o=i.proto,a=t(o.forEach),s=t(o.keys),c=s(new n).next;e.exports=function(e,t,i){return i?r({iterator:s(e),next:c},t):a(e,t)}}),He=__webpack_require__.cw(e=>{var t=z(),createSetLike=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},createSetLikeWithInfinitySize=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,r){var i=t("Set");try{(new i)[e](createSetLike(0));try{(new i)[e](createSetLike(-1));return!1}catch(t){if(!r)return!0;try{(new i)[e](createSetLikeWithInfinitySize(-1/0));return!1}catch(t){return r(new i([1,2])[e](createSetLikeWithInfinitySize(1/0)))}}}catch(e){return!1}}}),set_method_get_keys_before_cloning_detection_namespaceFn=()=>__webpack_require__(835),We=__webpack_require__.cw(e=>{var t=N(),r=je();e.exports=t(r.proto,"size","get")||function(e){return e.size}}),Le=__webpack_require__.cw(e=>{var t=n(),r=je(),i=Pe(),o=$(),a=ce(),s=r.add,c=r.has,u=r.remove;e.exports=function symmetricDifference(e){var r=t(this),n=o(e).getIterator(),l=i(r);a(n,function(e){c(r,e)?u(l,e):s(l,e)});return l}}),$e=__webpack_require__.cw(e=>{var t=n(),r=je().add,i=Pe(),o=$(),a=ce();e.exports=function union(e){var n=t(this),s=o(e).getIterator(),c=i(n);a(s,function(e){r(c,e)});return c}}),Be=__webpack_require__.cw(e=>{var t=Ge(),r=rt(),i=t("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}}),Ue=__webpack_require__.cw(e=>{var t=oe(),r=B(),i=k(),n="__core-js_shared__",o=e.exports=r[n]||i(n,{});(o.versions||(o.versions=[])).push({version:"3.51.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.51.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),Ge=__webpack_require__.cw(e=>{var t=Ue(),r=Object.create||Object;e.exports=function(e,i){return t[e]||(t[e]=i||r(null))}}),Ke=__webpack_require__.cw(e=>{var t=C(),r=T(),i=B().String;e.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})}),Je=__webpack_require__.cw(e=>{var t=q();e.exports=t(1.1.valueOf)}),Ye=__webpack_require__.cw(e=>{var t=to_integer_or_infinity_namespaceFn(),r=Math.max,i=Math.min;e.exports=function(e,n){var o=t(e);return o<0?r(o+n,0):i(o,n)}}),Xe=__webpack_require__.cw(e=>{var t=Y(),r=require_object_coercible_namespaceFn();e.exports=function(e){return t(r(e))}}),to_integer_or_infinity_namespaceFn=()=>__webpack_require__(291),to_length_namespaceFn=()=>__webpack_require__(14),to_object_namespaceFn=()=>__webpack_require__(981),Ze=__webpack_require__.cw(e=>{var t=j(),r=ie(),i=se(),n=L(),o=Te(),a=st(),s=TypeError,c=a("toPrimitive");e.exports=function(e,a){if(!r(e)||i(e))return e;var u,l=n(e,c);if(l){void 0===a&&(a="default");u=t(l,e,a);if(!r(u)||i(u))return u;throw new s("Can\'t convert object to primitive value")}void 0===a&&(a="number");return o(e,a)}}),Qe=__webpack_require__.cw(e=>{var t=Ze(),r=se();e.exports=function(e){var i=t(e,"string");return r(i)?i:i+""}}),et=__webpack_require__.cw(e=>{var t={};t[st()("toStringTag")]="z";e.exports="[object z]"===String(t)}),tt=__webpack_require__.cw(e=>{var t=f(),r=String;e.exports=function(e){if("Symbol"===t(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}}),try_to_string_namespaceFn=()=>__webpack_require__(823),rt=__webpack_require__.cw(e=>{var t=q(),r=0,i=Math.random(),n=t(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++r+i,36)}}),it=__webpack_require__.cw(e=>{var t=Ke();e.exports=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}),nt=__webpack_require__.cw(e=>{var t=S(),r=T();e.exports=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}),ot=__webpack_require__.cw(e=>{var t=B(),r=te(),i=t.WeakMap;e.exports=r(i)&&/native code/.test(String(i))}),at=__webpack_require__.cw(e=>{var t=q(),r=WeakMap.prototype;e.exports={WeakMap,set:t(r.set),get:t(r.get),has:t(r.has),remove:t(r.delete)}}),st=__webpack_require__.cw(e=>{var t=B(),r=Ge(),i=U(),n=rt(),o=Ke(),a=it(),s=t.Symbol,c=r("wks"),u=a?s.for||s:s&&s.withoutSetter||n;e.exports=function(e){i(c,e)||(c[e]=o&&i(s,e)?s[e]:u("Symbol."+e));return c[e]}}),ct=__webpack_require__.cw(()=>{var e=E(),t=l().includes,r=T(),i=s(),n=r(function(){return!Array(1).includes()}),o=r(function(){return[,1].includes(void 0,1)});e({target:"Array",proto:!0,forced:n||o},{includes:function includes(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}});i("includes")}),ut=__webpack_require__.cw(()=>{var e=E(),t=to_object_namespaceFn(),r=ge(),i=h(),n=__webpack_require__(837);e({target:"Array",proto:!0,arity:1,forced:T()(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function push(e){var o=t(this),a=r(o),s=arguments.length;n(a+s);for(var c=0;c<s;c++){o[a]=arguments[c];a++}i(o,a);return a}})}),lt=__webpack_require__.cw(()=>{var e=E(),t=B(),r=c(),i=u(),n=te(),o=Se(),a=v(),s=w(),l=T(),h=U(),d=st(),p=fe().IteratorPrototype,f=S(),g=oe(),m="constructor",_="Iterator",b=d("toStringTag"),y=TypeError,A=t[_],k=g||!n(A)||A.prototype!==p||!l(function(){A({})}),x=function Iterator(){r(this,p);if(o(this)===p)throw new y("Abstract class Iterator not directly constructable")},defineIteratorPrototypeAccessor=function(e,t){f?a(p,e,{configurable:!0,get:function(){return t},set:function(t){i(this);if(this===p)throw new y("You can\'t redefine this property");h(this,e)?this[e]=t:s(this,e,t)}}):p[e]=t};h(p,b)||defineIteratorPrototypeAccessor(b,_);!k&&h(p,m)&&p[m]!==Object||defineIteratorPrototypeAccessor(m,x);x.prototype=p;e({global:!0,constructor:!0,forced:k},{Iterator:x})}),ht=__webpack_require__.cw(()=>{var e=E(),t=j(),i=ue(),n=r(),o=u(),a=get_iterator_direct_namespaceFn(),s=he(),c=pe()("every",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:c},{every:function every(e){o(this);try{n(e)}catch(e){s(this,"throw",e)}if(c)return t(c,this,e);var r=a(this),u=0;return!i(r,function(t,r){if(!e(t,u++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}),dt=__webpack_require__.cw(()=>{var e=E(),t=j(),i=r(),n=u(),o=get_iterator_direct_namespaceFn(),a=de(),s=d(),c=oe(),l=he(),h=iterator_helper_throws_on_invalid_iterator_namespaceFn(),p=pe(),f=!c&&!h("filter",function(){}),g=!c&&!f&&p("filter",TypeError),m=c||f||g,_=a(function(){for(var e,r,i=this.iterator,o=this.predicate,a=this.next;;){e=n(t(a,i));if(this.done=!!e.done)return;r=e.value;if(s(i,o,[r,this.counter++],!0))return r}});e({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function filter(e){n(this);try{i(e)}catch(e){l(this,"throw",e)}return g?t(g,this,e):new _(o(this),{predicate:e})}})}),pt=__webpack_require__.cw(()=>{var e=E(),t=j(),i=ue(),n=r(),o=u(),a=get_iterator_direct_namespaceFn(),s=he(),c=pe()("forEach",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function forEach(e){o(this);try{n(e)}catch(e){s(this,"throw",e)}if(c)return t(c,this,e);var r=a(this),u=0;i(r,function(t){e(t,u++)},{IS_RECORD:!0})}})}),ft=__webpack_require__.cw(()=>{var e=E(),t=j(),i=r(),n=u(),o=get_iterator_direct_namespaceFn(),a=de(),s=d(),c=he(),l=iterator_helper_throws_on_invalid_iterator_namespaceFn(),h=pe(),p=oe(),f=!p&&!l("map",function(){}),g=!p&&!f&&h("map",TypeError),m=p||f||g,_=a(function(){var e=this.iterator,r=n(t(this.next,e));if(!(this.done=!!r.done))return s(e,this.mapper,[r.value,this.counter++],!0)});e({target:"Iterator",proto:!0,real:!0,forced:m},{map:function map(e){n(this);try{i(e)}catch(e){c(this,"throw",e)}return g?t(g,this,e):new _(o(this),{mapper:e})}})}),gt=__webpack_require__.cw(()=>{var e=E(),t=ue(),i=r(),n=u(),o=get_iterator_direct_namespaceFn(),a=he(),s=pe(),c=D(),l=T(),h=TypeError,d=l(function(){[].keys().reduce(function(){},void 0)}),p=!d&&s("reduce",h);e({target:"Iterator",proto:!0,real:!0,forced:d||p},{reduce:function reduce(e){n(this);try{i(e)}catch(e){a(this,"throw",e)}var r=arguments.length<2,s=r?void 0:arguments[1];if(p)return c(p,this,r?[e]:[e,s]);var u=o(this),l=0;t(u,function(t){if(r){r=!1;s=t}else s=e(s,t,l);l++},{IS_RECORD:!0});if(r)throw new h("Reduce of empty iterator with no initial value");return s}})}),mt=__webpack_require__.cw(()=>{var e=E(),t=j(),i=ue(),n=r(),o=u(),a=get_iterator_direct_namespaceFn(),s=he(),c=pe()("some",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:c},{some:function some(e){o(this);try{n(e)}catch(e){s(this,"throw",e)}if(c)return t(c,this,e);var r=a(this),u=0;return i(r,function(t,r){if(e(t,u++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}),_t=__webpack_require__.cw(()=>{var e=E(),t=z(),r=j(),i=q(),n=T(),o=ee(),a=te(),s=ie(),c=we(),u=ae(),h=se(),d=p(),f=Je(),g=l().includes,m=U(),_=tt(),b=De(),w=rt(),v=Ke(),y=be(),A=String,k=TypeError,S=t("JSON","stringify"),x=t("BigInt"),I=i("".valueOf),O=i((!0).valueOf),C=x&&i(x.prototype.valueOf),D=i(/./.exec),P=i("".charAt),M=i("".charCodeAt),V=i("".replace),N=i("".slice),R=i([].push),H=i([].pop),W=i(1.1.toString),L=/[\\uD800-\\uDFFF]/g,$=/^[\\uD800-\\uDBFF]$/,B=/^[\\uDC00-\\uDFFF]$/,G=/^\\d+$/,K=w(),J=w(),Y=w(),X=K.length,Z=J.length,Q=!v||n(function(){var e=t("Symbol")("stringify detection");return"[null]"!==S([e])||"{}"!==S({a:e})||"{}"!==S(Object(e))}),re=n(function(){return\'"\\\\udf06\\\\ud834"\'!==S("\\udf06\\ud834")||\'"\\\\udead"\'!==S("\\udead")}),ne=y?t("JSON","isRawJSON"):u,oe=Q?function(e,t,i){return S(e,function(e,i){var n=r(t,this,e,i);if(!h(n))return n},i)}:S,fixIllFormedJSON=function(e,t,r){var i=P(r,t-1),n=P(r,t+1);return D($,e)&&!D(B,n)||D(B,e)&&!D($,i)?"\\\\u"+W(M(e,0),16):e},hasInternalSlot=function(e,t){try{e(t);return!0}catch(e){return!1}},isSerializedAsObject=function(e){if(!s(e)||a(e)||o(e))return!1;try{return!function(e){var t=d(e);return"Number"===t&&hasInternalSlot(f,e)||"String"===t&&hasInternalSlot(I,e)||"Boolean"===t&&hasInternalSlot(O,e)||!!C&&"BigInt"===t&&hasInternalSlot(C,e)}(e)}catch(e){return!0}},createElementHolder=function(e,t){return{toJSON:function(){var i=e[t];if(s(i)||"bigint"==typeof i){var n=i.toJSON;a(n)&&(i=r(n,i,t))}return i}}};S&&e({target:"JSON",stat:!0,arity:3,forced:Q||re||!y},{stringify:function stringify(e,t,i){var n,s=a(t)?t:void 0,u=s?void 0:function(e){if(o(e)){for(var t=e.length,r=[],i=c(null),n=0;n<t;n++){var a,s=e[n];if("string"==typeof s)a=s;else{if("number"!=typeof s&&"Number"!==d(s)&&"String"!==d(s))continue;a=_(s)}if(!m(i,a)){i[a]=!0;R(r,a)}}return r}}(t),l=u&&function(e){for(var t=0,r=e.length;t<r;t++)if(D(G,e[t]))return J;return""}(u),h=[],p=[],f=[],w=!1,v=!0,S=oe(e,function(e,t){e=A(e);if(u){if(e===Y){H(p);n=H(f);return}if(v)v=!1;else if(this!==n&&!o(this)&&!g(u,e))return}else s&&(t=r(s,this,e,t));if(ne(t)){if(y)return t;w=!0;return K+(R(h,t.rawJSON)-1)}if(u&&isSerializedAsObject(t)){if(g(p,t))throw new k("Converting circular structure to JSON");var i=function(e,t,r){for(var i=c(null),n=0,o=t.length;n<o;n++){var a=t[n];i[r+a]=createElementHolder(e,a)}i[Y]=null;return i}(t,u,l);R(p,t);R(f,n);n=i;l&&(w=!0);return i}return t},i);if("string"!=typeof S)return S;re&&(S=V(S,L,fixIllFormedJSON));if(!w)return S;for(var x="",I=S.length,O=0;O<I;O++){var C=P(S,O);if(\'"\'===C){var E=b(S,++O).end-1,T=N(S,O,E);N(T,0,X)===K?x+=h[N(T,X)]:N(T,0,Z)===J?x+=\'"\'+N(T,Z)+\'"\':x+=\'"\'+T+\'"\';O=E}else x+=C}return x}})}),bt=__webpack_require__.cw(()=>{var e=E(),t=r(),i=_e(),n=oe(),o=i.get,a=i.has,s=i.set;e({target:"Map",proto:!0,real:!0,forced:n},{getOrInsertComputed:function getOrInsertComputed(e,r){var i=a(this,e);t(r);if(i)return o(this,e);0===e&&1/e==-1/0&&(e=0);var n=r(e);s(this,e,n);return n}})}),wt=__webpack_require__.cw(()=>{var e=E(),t=_e(),r=oe(),i=t.get,n=t.has,o=t.set;e({target:"Map",proto:!0,real:!0,forced:r},{getOrInsert:function getOrInsert(e,t){if(n(this,e))return i(this,e);o(this,e,t);return t}})}),vt=__webpack_require__.cw(()=>{var e=E(),t=q(),r=ue(),i=T(),n=H(),o=Ee(),a=st(),s=RangeError,c=TypeError,u=1/0,l=Math.sumPrecise,h=Math.abs,d=Math.pow,p=t([].push),f=a("iterator"),g=d(2,1023),m=d(2,53)-1,_=Number.MAX_VALUE,b=d(2,971),w={},v={},y={},A={},k={},S=i(function(){if(-1!==l([-1])||l([-_])!==-_)return!0;if(!o)return!1;try{l(o([1],{}));return!0}catch(e){}try{var e={};e[f]=function(){return this};l(o(n([1]),e));return!0}catch(e){}}),twosum=function(e,t){var r=e+t;return{hi:r,lo:t-(r-e)}};e({target:"Math",stat:!0,forced:S},{sumPrecise:function sumPrecise(e){var t=[],i=0,n=A;r(e,function(e){if(++i>m)throw new s("Maximum allowed index exceeded");if("number"!=typeof e)throw new c("Value is not a number");if(n!==w)if(e!=e)n=w;else if(e===u)n=n===v?w:y;else if(e===-1/0)n=n===y?w:v;else if(!(0===e&&1/e!==u||n!==A&&n!==k)){n=k;p(t,e)}});switch(n){case w:return NaN;case v:return-1/0;case y:return u;case A:return-0}for(var o,a,l,d,f,S,x=[],I=0,O=0;O<t.length;O++){o=t[O];for(var C=0,E=0;E<x.length;E++){a=x[E];if(h(o)<h(a)){S=o;o=a;a=S}d=(l=twosum(o,a)).hi;f=l.lo;if(h(d)===u){var T=d===u?1:-1;I+=T;if(h(o=o-T*g-T*g)<h(a)){S=o;o=a;a=S}d=(l=twosum(o,a)).hi;f=l.lo}0!==f&&(x[C++]=f);o=d}x.length=C;0!==o&&p(x,o)}var D=x.length-1;d=0;f=0;if(0!==I){var P=D>=0?x[D]:0;D--;if(h(I)>1||I>0&&P>0||I<0&&P<0)return I>0?u:-1/0;d=(l=twosum(I*g,P/2)).hi;f=l.lo;f*=2;if(h(2*d)===u)return d>0?d===g&&f===-b/2&&D>=0&&x[D]<0?_:u:d===-g&&f===b/2&&D>=0&&x[D]>0?-_:-1/0;if(0!==f){x[++D]=f;f=0}d*=2}for(;D>=0;){d=(l=twosum(d,x[D--])).hi;if(0!==(f=l.lo))break}D>=0&&(f<0&&x[D]<0||f>0&&x[D]>0)&&(a=2*f)===(o=d+a)-d&&(d=o);return d}})}),yt=__webpack_require__.cw(()=>{var e=E(),t=Me(),r=T();e({target:"Set",proto:!0,real:!0,forced:!He()("difference",function(e){return 0===e.size})||r(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var r=e++>1;t.has(1)&&t.clear();return{done:r,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:t})}),At=__webpack_require__.cw(()=>{var e=E(),t=T(),r=Ve();e({target:"Set",proto:!0,real:!0,forced:!He()("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||t(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:r})}),kt=__webpack_require__.cw(()=>{var e=E(),t=Ne();e({target:"Set",proto:!0,real:!0,forced:!He()("isDisjointFrom",function(e){return!e})},{isDisjointFrom:t})}),St=__webpack_require__.cw(()=>{var e=E(),t=Re();e({target:"Set",proto:!0,real:!0,forced:!He()("isSubsetOf",function(e){return e})},{isSubsetOf:t})}),xt=__webpack_require__.cw(()=>{var e=E(),t=qe();e({target:"Set",proto:!0,real:!0,forced:!He()("isSupersetOf",function(e){return!e})},{isSupersetOf:t})}),It=__webpack_require__.cw(()=>{var e=E(),t=Le(),r=set_method_get_keys_before_cloning_detection_namespaceFn();e({target:"Set",proto:!0,real:!0,forced:!He()("symmetricDifference")||!r("symmetricDifference")},{symmetricDifference:t})}),Ot=__webpack_require__.cw(()=>{var e=E(),t=$e(),r=set_method_get_keys_before_cloning_detection_namespaceFn();e({target:"Set",proto:!0,real:!0,forced:!He()("union")||!r("union")},{union:t})}),Ct=__webpack_require__.cw(()=>{var e=E(),t=r(),i=a(),n=o(),s=at(),c=oe(),u=s.get,l=s.has,h=s.set;e({target:"WeakMap",proto:!0,real:!0,forced:c||!function(){try{WeakMap.prototype.getOrInsertComputed&&(new WeakMap).getOrInsertComputed(1,function(){throw 1})}catch(e){return e instanceof TypeError}}()},{getOrInsertComputed:function getOrInsertComputed(e,r){c||i(this);n(e);t(r);if(l(this,e))return u(this,e);var o=r(e);h(this,e,o);return o}})}),Et=__webpack_require__.cw(()=>{var e=E(),t=at(),r=oe(),i=t.get,n=t.has,o=t.set;e({target:"WeakMap",proto:!0,real:!0,forced:r},{getOrInsert:function getOrInsert(e,t){if(n(this,e))return i(this,e);o(this,e,t);return t}})});ut();ct();wt();bt();Et();Ct();const{apply:Tt}=Reflect;function app_utils_uncurryThis(e){return(t,...r)=>Tt(e,t,r)}function serializeError(e,t=""){let r,i;try{r=String(e)}catch{r="Unknown error"}try{i=e?.stack}catch{}return{command:"error",value:`${t}${"string"==typeof i?`${r}\\n${i}`:r}`}}const makeArr=()=>[],makeMap=()=>new Map,Ft=new Map,Dt=new WeakSet;function addPublicFunctions(...e){for(const t of e)"function"==typeof t&&Dt.add(t)}function exposeObject(e,t=!1){const r=Object.getPrototypeOf(e);let i=!t&&Ft.get(r);if(!i){const n=Object.getOwnPropertyDescriptors(r);delete n.constructor;for(const r of Object.values(n)){const{value:i,get:n,set:o}=r;addPublicFunctions(i,n,o);t&&"function"==typeof i&&(r.value=i.bind(e))}i=Object.create(Object.prototype,n);t||Ft.set(r,i)}return Object.setPrototypeOf(e,i)}const Pt=Object.freeze({s:"solid",d:"dashed",b:"beveled",i:"inset",u:"underline"}),Mt=Object.freeze({visible:0,hidden:1,delay:2}),jt=Object.freeze({visible:0,hidden:1,noPrint:2,noView:3}),Vt=Object.freeze({Times:"Times-Roman",TimesB:"Times-Bold",TimesI:"Times-Italic",TimesBI:"Times-BoldItalic",Helv:"Helvetica",HelvB:"Helvetica-Bold",HelvI:"Helvetica-Oblique",HelvBI:"Helvetica-BoldOblique",Cour:"Courier",CourB:"Courier-Bold",CourI:"Courier-Oblique",CourBI:"Courier-BoldOblique",Symbol:"Symbol",ZapfD:"ZapfDingbats",KaGo:"HeiseiKakuGo-W5-UniJIS-UCS2-H",KaMi:"HeiseiMin-W3-UniJIS-UCS2-H"}),Nt=Object.freeze({n:"none",i:"invert",p:"push",o:"outline"}),Rt=Object.freeze({textOnly:0,iconOnly:1,iconTextV:2,textIconV:3,iconTextH:4,textIconH:5,overlay:6}),qt=Object.freeze({proportional:0,anamorphic:1}),zt=Object.freeze({always:0,never:1,tooBig:2,tooSmall:3}),Ht=Object.freeze({ch:"check",cr:"cross",di:"diamond",ci:"circle",st:"star",sq:"square"}),Wt=Object.freeze({blindsH:"BlindsHorizontal",blindsV:"BlindsVertical",boxI:"BoxIn",boxO:"BoxOut",dissolve:"Dissolve",glitterD:"GlitterDown",glitterR:"GlitterRight",glitterRD:"GlitterRightDown",random:"Random",replace:"Replace",splitHI:"SplitHorizontalIn",splitHO:"SplitHorizontalOut",splitVI:"SplitVerticalIn",splitVO:"SplitVerticalOut",wipeD:"WipeDown",wipeL:"WipeLeft",wipeR:"WipeRight",wipeU:"WipeUp"}),Lt=Object.freeze({none:"NoVary",fitP:"FitPage",fitW:"FitWidth",fitH:"FitHeight",fitV:"FitVisibleWidth",pref:"Preferred",refW:"ReflowWidth"}),$t=Object.freeze({IDS_GREATER_THAN:"Invalid value: must be greater than or equal to % s.",IDS_GT_AND_LT:"Invalid value: must be greater than or equal to % s and less than or equal to % s.",IDS_LESS_THAN:"Invalid value: must be less than or equal to % s.",IDS_INVALID_MONTH:"** Invalid **",IDS_INVALID_DATE:"Invalid date / time: please ensure that the date / time exists. Field",IDS_INVALID_DATE2:" should match format ",IDS_INVALID_VALUE:"The value entered does not match the format of the field",IDS_AM:"am",IDS_PM:"pm",IDS_MONTH_INFO:"January[1] February[2] March[3] April[4] May[5] June[6] July[7] August[8] September[9] October[10] November[11] December[12] Sept[9] Jan[1] Feb[2] Mar[3] Apr[4] Jun[6] Jul[7] Aug[8] Sep[9] Oct[10] Nov[11] Dec[12]",IDS_STARTUP_CONSOLE_MSG:"** ^ _ ^ **",RE_NUMBER_ENTRY_DOT_SEP:["[+-]?\\\\d*\\\\.?\\\\d*"],RE_NUMBER_COMMIT_DOT_SEP:["[+-]?\\\\d+(\\\\.\\\\d+)?","[+-]?\\\\.\\\\d+","[+-]?\\\\d+\\\\."],RE_NUMBER_ENTRY_COMMA_SEP:["[+-]?\\\\d*,?\\\\d*"],RE_NUMBER_COMMIT_COMMA_SEP:["[+-]?\\\\d+([.,]\\\\d+)?","[+-]?[.,]\\\\d+","[+-]?\\\\d+[.,]"],RE_ZIP_ENTRY:["\\\\d{0,5}"],RE_ZIP_COMMIT:["\\\\d{5}"],RE_ZIP4_ENTRY:["\\\\d{0,5}(\\\\.|[- ])?\\\\d{0,4}"],RE_ZIP4_COMMIT:["\\\\d{5}(\\\\.|[- ])?\\\\d{4}"],RE_PHONE_ENTRY:["\\\\d{0,3}(\\\\.|[- ])?\\\\d{0,3}(\\\\.|[- ])?\\\\d{0,4}","\\\\(\\\\d{0,3}","\\\\(\\\\d{0,3}\\\\)(\\\\.|[- ])?\\\\d{0,3}(\\\\.|[- ])?\\\\d{0,4}","\\\\(\\\\d{0,3}(\\\\.|[- ])?\\\\d{0,3}(\\\\.|[- ])?\\\\d{0,4}","\\\\d{0,3}\\\\)(\\\\.|[- ])?\\\\d{0,3}(\\\\.|[- ])?\\\\d{0,4}","011(\\\\.|[- \\\\d])*"],RE_PHONE_COMMIT:["\\\\d{3}(\\\\.|[- ])?\\\\d{4}","\\\\d{3}(\\\\.|[- ])?\\\\d{3}(\\\\.|[- ])?\\\\d{4}","\\\\(\\\\d{3}\\\\)(\\\\.|[- ])?\\\\d{3}(\\\\.|[- ])?\\\\d{4}","011(\\\\.|[- \\\\d])*"],RE_SSN_ENTRY:["\\\\d{0,3}(\\\\.|[- ])?\\\\d{0,2}(\\\\.|[- ])?\\\\d{0,4}"],RE_SSN_COMMIT:["\\\\d{3}(\\\\.|[- ])?\\\\d{2}(\\\\.|[- ])?\\\\d{4}"]});class FullScreen{#e=[];#t=!0;#r=Mt.hidden;#i="";#n=!0;#o=!0;#a=!1;#s=3600;#c=!1;#u=!1;get backgroundColor(){return this.#e}set backgroundColor(e){}get clickAdvances(){return this.#t}set clickAdvances(e){}get cursor(){return this.#r}set cursor(e){}get defaultTransition(){return this.#i}set defaultTransition(e){}get escapeExits(){return this.#n}set escapeExits(e){}get isFullScreen(){return this.#o}set isFullScreen(e){}get loop(){return this.#a}set loop(e){}get timeDelay(){return this.#s}set timeDelay(e){}get transitions(){return["Replace","WipeRight","WipeLeft","WipeDown","WipeUp","SplitHorizontalIn","SplitHorizontalOut","SplitVerticalIn","SplitVerticalOut","BlindsHorizontal","BlindsVertical","BoxIn","BoxOut","GlitterRight","GlitterDown","GlitterRightDown","Dissolve","Random"]}set transitions(e){throw new Error("fullscreen.transitions is read-only")}get usePageTiming(){return this.#c}set usePageTiming(e){}get useTimer(){return this.#u}set useTimer(e){}}lt();ht();ft();function MathClamp(e,t,r){return Math.min(Math.max(e,t),r)}function makeColorComp(e){return Math.floor(255*MathClamp(e,0,1)).toString(16).padStart(2,"0")}function scaleAndClamp(e){return 255*MathClamp(e,0,1)}class ColorConverters{static CMYK_G([e,t,r,i]){return["G",1-Math.min(1,.3*e+.59*r+.11*t+i)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_rgb([e]){return[e=scaleAndClamp(e),e,e]}static G_HTML([e]){const t=makeColorComp(e);return`#${t}${t}${t}`}static RGB_G([e,t,r]){return["G",.3*e+.59*t+.11*r]}static RGB_rgb(e){return e.map(scaleAndClamp)}static RGB_HTML(e){return`#${e.map(makeColorComp).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([e,t,r,i]){return["RGB",1-Math.min(1,e+i),1-Math.min(1,r+i),1-Math.min(1,t+i)]}static CMYK_rgb([e,t,r,i]){return[scaleAndClamp(1-Math.min(1,e+i)),scaleAndClamp(1-Math.min(1,r+i)),scaleAndClamp(1-Math.min(1,t+i))]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK([e,t,r]){const i=1-e,n=1-t,o=1-r;return["CMYK",i,n,o,Math.min(i,n,o)]}}const Bt=["m/d","m/d/yy","mm/dd/yy","mm/yy","d-mmm","d-mmm-yy","dd-mmm-yy","yy-mm-dd","mmm-yy","mmmm-yy","mmm d, yyyy","mmmm d, yyyy","m/d/yy h:MM tt","m/d/yy HH:MM"],Ut=["HH:MM","h:MM tt","HH:MM:ss","h:MM:ss tt"];function isValidSpace(e){return"string"==typeof e&&("T"===e||"G"===e||"RGB"===e||"CMYK"===e)}function isValidColor(e){if(!Array.isArray(e)||0===e.length)return!1;const t=e[0];if(!isValidSpace(t))return!1;const r={T:1,G:2,RGB:4,CMYK:5}[t];return e.length===r&&e.slice(1).every(e=>"number"==typeof e&&e>=0&&e<=1)}function getCorrectColor(e){return isValidColor(e)?e:["G",0]}class Color{transparent=["T"];black=["G",0];white=["G",1];red=["RGB",1,0,0];green=["RGB",0,1,0];blue=["RGB",0,0,1];cyan=["CMYK",1,0,0,0];magenta=["CMYK",0,1,0,0];yellow=["CMYK",0,0,1,0];dkGray=["G",.25];gray=["G",.5];ltGray=["G",.75];convert(e,t){return isValidSpace(t)?"T"===t?["T"]:(e=getCorrectColor(e))[0]===t?e:"T"===e[0]?this.convert(this.black,t):ColorConverters[`${e[0]}_${t}`](e.slice(1)):this.black}equal(e,t){e=getCorrectColor(e);t=getCorrectColor(t);if("T"===e[0]||"T"===t[0])return"T"===e[0]&&"T"===t[0];e[0]!==t[0]&&(t=this.convert(t,e[0]));return e.slice(1).every((e,r)=>e===t[r+1])}}class Thermometer{#l=!1;#h=100;#d="";#p=0;get cancelled(){return this.#l}set cancelled(e){throw new Error("thermometer.cancelled is read-only")}get duration(){return this.#h}set duration(e){this.#h=e}get text(){return this.#d}set text(e){this.#d=e}get value(){return this.#p}set value(e){this.#p=e}begin(){}end(){}}const Gt=app_utils_uncurryThis(Map.prototype.delete),Kt=app_utils_uncurryThis(Map.prototype.get),Jt=app_utils_uncurryThis(Map.prototype.set),Yt=app_utils_uncurryThis(WeakMap.prototype.delete),Xt=app_utils_uncurryThis(WeakMap.prototype.get),Zt=app_utils_uncurryThis(WeakMap.prototype.set),Qt=app_utils_uncurryThis(FinalizationRegistry.prototype.register),er=app_utils_uncurryThis(FinalizationRegistry.prototype.unregister),tr=Object.create(null);class App{#f=null;#g=!0;#m=exposeObject(new FullScreen,!0);#_;#b=!1;#w;#v=!1;#y=["T"];#A=exposeObject(new Thermometer,!0);#k=!1;#S;#x=new WeakMap;#I=new FinalizationRegistry(this.#O.bind(this));#C=new Map;#E=1;#T;#F;#D;#P;constructor(e){this.#D=e.send;this.#P=e.userActivationData;this.#_=App.#M(e.language);this.#w=App.#j(e.platform);this.#S=e.doc;this.#T=e.globalEval;this.#F=e.externalCall}static{Object.assign(tr,{evalCallback:(e,t)=>e.#V(t)})}#N(e){const t=this.#E++;Jt(this.#C,t,e);return t}#R(e){Gt(this.#C,e)}#V({callbackId:e,interval:t}){if(0===e){this.#P.userActivation=!1;return}const r=Kt(this.#C,e);t||this.#R(e);if(r){const e=this.#P.userActivation;this.#P.userActivation=!1;this.#T(r);this.#P.userActivation=e}}#q(e,t){const r=Object.create(null),i={callbackId:e,interval:t};Zt(this.#x,r,i);Qt(this.#I,r,i,r);return r}#z(e){const t=Xt(this.#x,e);if(t){Yt(this.#x,e);er(this.#I,e);this.#O(t)}}#O({callbackId:e,interval:t}){this.#R(e);t?this.#F("clearInterval",[e]):this.#F("clearTimeout",[e])}static#j(e){if("string"==typeof e){if((e=e.toLowerCase()).includes("win"))return"WIN";if(e.includes("mac"))return"MAC"}return"UNIX"}static#M(e){const[t,r]=e.toLowerCase().split(/[-_]/,2);switch(t){case"zh":return"cn"===r||"sg"===r?"CHS":"CHT";case"da":return"DAN";case"de":return"DEU";case"es":return"ESP";case"fr":return"FRA";case"it":return"ITA";case"ko":return"KOR";case"ja":return"JPN";case"nl":return"NLD";case"no":return"NOR";case"pt":return"br"===r?"PTB":"ENU";case"fi":return"SUO";case"SV":return"SVE";default:return"ENU"}}get activeDocs(){return[globalThis]}set activeDocs(e){throw new Error("app.activeDocs is read-only")}get calculate(){return this.#S.calculate}set calculate(e){this.#S.calculate=e}get constants(){return this.#f??=Object.freeze({align:Object.freeze({left:0,center:1,right:2,top:3,bottom:4})})}set constants(e){throw new Error("app.constants is read-only")}get focusRect(){return this.#g}set focusRect(e){this.#g=e}get formsVersion(){return 21.00720099}set formsVersion(e){throw new Error("app.formsVersion is read-only")}get fromPDFConverters(){return[]}set fromPDFConverters(e){throw new Error("app.fromPDFConverters is read-only")}get fs(){return this.#m}set fs(e){throw new Error("app.fs is read-only")}get language(){return this.#_}set language(e){throw new Error("app.language is read-only")}get media(){}set media(e){throw new Error("app.media is read-only")}get monitors(){return[]}set monitors(e){throw new Error("app.monitors is read-only")}get numPlugins(){return 0}set numPlugins(e){throw new Error("app.numPlugins is read-only")}get openInPlace(){return this.#b}set openInPlace(e){this.#b=e}get platform(){return this.#w}set platform(e){throw new Error("app.platform is read-only")}get plugins(){return[]}set plugins(e){throw new Error("app.plugins is read-only")}get printColorProfiles(){return[]}set printColorProfiles(e){throw new Error("app.printColorProfiles is read-only")}get printerNames(){return[]}set printerNames(e){throw new Error("app.printerNames is read-only")}get runtimeHighlight(){return this.#v}set runtimeHighlight(e){this.#v=e}get runtimeHighlightColor(){return this.#y}set runtimeHighlightColor(e){isValidColor(e)&&(this.#y=e)}get thermometer(){return this.#A}set thermometer(e){throw new Error("app.thermometer is read-only")}get toolbar(){return this.#k}set toolbar(e){this.#k=e}get toolbarHorizontal(){return this.toolbar}set toolbarHorizontal(e){this.toolbar=e}get toolbarVertical(){return this.toolbar}set toolbarVertical(e){this.toolbar=e}get viewerType(){return"PDF.js"}set viewerType(e){throw new Error("app.viewerType is read-only")}get viewerVariation(){return"Full"}set viewerVariation(e){throw new Error("app.viewerVariation is read-only")}get viewerVersion(){return 21.00720099}set viewerVersion(e){throw new Error("app.viewerVersion is read-only")}addMenuItem(){}addSubMenu(){}addToolButton(){}alert(e,t=0,r=0,i="PDF.js",n=null,o=null){if(!this.#P.userActivation)return 0;this.#P.userActivation=!1;if(e&&"object"==typeof e){r=e.nType;e=e.cMsg}if(!(e=(e||"").toString()))return 0;if((r="number"!=typeof r||isNaN(r)||r<0||r>3?0:r)>=2)return this.#F("confirm",[e])?4:3;this.#F("alert",[e]);return 1}beep(){}beginPriv(){}browseForDoc(){}clearInterval(e){this.#z(e)}clearTimeOut(e){this.#z(e)}endPriv(){}execDialog(){}execMenuItem(e){if(this.#P.userActivation){this.#P.userActivation=!1;switch(e){case"SaveAs":if(this.#P.disableSaving)return;this.#D({command:e});break;case"FirstPage":case"LastPage":case"NextPage":case"PrevPage":case"ZoomViewIn":case"ZoomViewOut":this.#D({command:e});break;case"FitPage":this.#D({command:"zoom",value:"page-fit"});break;case"Print":if(this.#P.disablePrinting)return;this.#D({command:"print"})}}}getNthPlugInName(){}getPath(){}goBack(){}goForward(){}hideMenuItem(){}hideToolbarButton(){}launchURL(){}listMenuItems(){}listToolbarButtons(){}loadPolicyFile(){}mailGetAddrs(){}mailMsg(){}newDoc(){}newCollection(){}newFDF(){}openDoc(){}openFDF(){}popUpMenu(){}popUpMenuEx(){}removeToolButton(){}response(e,t="",r="",i="",n=""){if(!this.#P.userActivation)return null;this.#P.userActivation=!1;if(e&&"object"==typeof e){r=e.cDefault;e=e.cQuestion}e=(e||"").toString();r=(r||"").toString();return this.#F("prompt",[e,r||""])}setInterval(e,t=0){if(e&&"object"==typeof e){t=e.nMilliseconds||0;e=e.cExpr}if("string"!=typeof e)throw new TypeError("First argument of app.setInterval must be a string");if("number"!=typeof t)throw new TypeError("Second argument of app.setInterval must be a number");const r=this.#N(e);this.#F("setInterval",[r,t]);return this.#q(r,!0)}setTimeOut(e,t=0){if(e&&"object"==typeof e){t=e.nMilliseconds||0;e=e.cExpr}if("string"!=typeof e)throw new TypeError("First argument of app.setTimeOut must be a string");if("number"!=typeof t)throw new TypeError("Second argument of app.setTimeOut must be a number");const r=this.#N(e);this.#F("setTimeout",[r,t]);return this.#q(r,!1)}trustedFunction(){}trustPropagatorFunction(){}}yt();At();kt();St();xt();It();Ot();const rr=0,ir=1,nr=2,or=3,ar=4;function createMap(e){return e instanceof Map?e:new Map(e?Object.entries(e):null)}dt();pt();mt();const sr=Object.create(null);let cr=null;const ur=["display","editable","hidden","multipleSelection","print","readonly","required","userName"];class Field{#H;#W;#L;#$=null;#B=null;#U;#G=null;#K=null;#J;#Y;#X;#Z;#Q;#ee;#T;#te;#re;#ie;#ne=!1;#oe;#ae;#se;#ce;#ue=null;#le;#he=null;#de=null;#pe=null;#fe;#D;#ge;#me;#_e;#be;#p=null;#we;constructor(e,t=[]){this.alignment=e.alignment||"left";this.borderStyle=e.borderStyle||"";this.buttonAlignX=e.buttonAlignX||50;this.buttonAlignY=e.buttonAlignY||50;this.buttonFitBounds=e.buttonFitBounds;this.buttonPosition=e.buttonPosition;this.buttonScaleHow=e.buttonScaleHow;this.ButtonScaleWhen=e.buttonScaleWhen;this.calcOrderIndex=e.calcOrderIndex;this.comb=e.comb;this.commitOnSelChange=e.commitOnSelChange;this.defaultStyle=e.defaultStyle;this.defaultValue=e.defaultValue;this.doNotScroll=e.doNotScroll;this.doNotSpellCheck=e.doNotSpellCheck;this.delay=e.delay;this.doc=globalThis;this.exportValues=e.exportValues;this.fileSelect=e.fileSelect;this.highlight=e.highlight;this.lineWidth=e.lineWidth;this.multiline=e.multiline;this.name=e.name;this.password=e.password;this.radiosInUnison=e.radiosInUnison;this.rect=e.rect;this.richText=e.richText;this.richValue=e.richValue;this.style=e.style;this.submitName=e.submitName;this.textFont=e.textFont;this.textSize=e.textSize;this.type=e.type;this.#H=createMap(e.actions);this.#W=e.appObjects;this.#L=e.browseForFileToSubmit||null;this.#U=e.charLimit;this.#J=e.currentValueIndices||0;this.#Y=e.datetimeFormat||null;this.#X=e.fieldPath;this.#Z=function getFieldType(e){let t=e.get("Format");if(!t)return rr;t=t[0].trim();return t.startsWith("AFNumber_")?ir:t.startsWith("AFPercent_")?nr:t.startsWith("AFDate_")?or:t.startsWith("AFTime_")?ar:rr}(this.#H);this.#Q=e.fillColor||["T"];this.#ee=e.getTerminalChildren;this.#T=e.globalEval;this.#te=!!e.hasDatetimeHTML;this.#re=Object.hasOwn(e,"value");this.#ie=e.id;this.#oe=Array.isArray(e.items);this.#ae=e.items||[];this.#se=e.kidIds||null;this.#le=e.page||0;this.#fe=e.rotation||0;this.#D=e.send||(()=>{});this.#ge=e.sendError;this.#me=e.strokeColor||["G",0];this.#_e=e.textColor||["G",0];this.#be=e.util;this.#we=Object.fromEntries(ur.map(t=>[t,e[t]]));this.#we.multipleSelection=!!e.multipleSelection;if("radiobutton"===e.type||"checkbox"===e.type){this.#ne="checkbox"===e.type;this.exportValues=[this.exportValues];this.#de=[this.#ie];this.#he=[this.#H];this.#pe=[this.#le];for(const r of t){this.exportValues.push(r.exportValues);this.#de.push(r.id);this.#he.push(createMap(r.actions));this.#pe.push(r.page||0);e.value===r.exportValues&&(this.#ie=r.id)}this.#p=e.value||""}else{t.length>0&&(this.#ue=t.map(e=>e.id));this.#ve(e.value||"")}if(this.#se){this.#K={...this};cr??=Field.#ye(Object.keys(this));Object.defineProperties(this,cr)}}static#ye(e){const t=Object.create(null);for(const r of e){const e={get(){return this.#K[r]},set(e){this.#K[r]=e;this.#Ae(r,e)},enumerable:!0,configurable:!0};addPublicFunctions(e.get,e.set);t[r]=e}return t}static{Object.assign(sr,{getComputedValue:e=>e.#ce??e.#p,getHasValue:e=>e.#re,getInitialValue:e=>e.#te&&e.#ce||null,getIsChoice:e=>e.#oe,getKidIds:e=>e.#se,getPageActions:e=>e.#ke(),getValue:e=>e.#p,setValue:(e,t)=>e.#ve(t),prepareEvent(e,t,r){if(e.#de){e.#ie=t;r.value=e.#ne&&!r.value?"Off":e.exportValues[e.#Se];"Action"===r.name&&(e.#p=r.value)}},runActions:(e,t)=>e.#xe(t),send:(e,t)=>e.#Ie(t)});for(const e of ur)Object.defineProperty(Field.prototype,e,{get(){return this.#we[e]},set(t){this.#we[e]=t;this.#Oe(e,t)},configurable:!0});for(const[e,{value:t}]of Object.entries(Object.getOwnPropertyDescriptors(Field.prototype)))"constructor"!==e&&"function"==typeof t&&Object.defineProperty(Field.prototype,e,{writable:!1})}get#Ce(){return this.#de?.filter(e=>e!==this.#ie)??this.#ue}#ke(){const e=this.#he??[this.#H],t=this.#pe??[this.#le],r=[];for(let i=0,n=e.length;i<n;i++)for(const n of["PageOpen","PageClose"]){const o=e[i].get(n);o&&r.push([t[i],n,o])}return r}#Ae(e,t){if(this.#se)for(const r of this.#se){const i=this.#W[r];i&&(i[e]=t)}}#Ie(e){const t=this.#Ce;this.#D(t?{id:this.#ie,siblings:t,...e}:{id:this.#ie,...e})}#Oe(e,t,r=t){this.#Ae(e,t);this.#Ie({[e]:r})}get currentValueIndices(){return this.#oe?this.#J:0}set currentValueIndices(e){this.#Ae("currentValueIndices",e);if(this.#oe){Array.isArray(e)||(e=[e]);if(e.every(e=>Number.isInteger(e)&&e>=0&&e<this.numItems)){e.sort((e,t)=>e-t);if(this.#we.multipleSelection){this.#J=e;this.#p=e.map(e=>this.#ae[e].exportValue)}else if(e.length>0){e=[e[0]];this.#J=e[0];this.#p=this.#ae[e[0]].exportValue}this.#D({id:this.#ie,indices:e})}}}get fillColor(){return this.#Q}set fillColor(e){if(isValidColor(e)){this.#Q=e;this.#Oe("fillColor",e)}}get bgColor(){return this.fillColor}set bgColor(e){this.fillColor=e}get charLimit(){return this.#U}set charLimit(e){if("number"!=typeof e)throw new Error("Invalid argument value");this.#U=Math.max(0,Math.floor(e));this.#Oe("charLimit",this.#U)}get numItems(){if(!this.#oe)throw new Error("Not a choice widget");return this.#ae.length}set numItems(e){throw new Error("field.numItems is read-only")}get strokeColor(){return this.#me}set strokeColor(e){if(isValidColor(e)){this.#me=e;this.#Oe("strokeColor",e)}}get borderColor(){return this.strokeColor}set borderColor(e){this.strokeColor=e}get page(){return this.#le}set page(e){throw new Error("field.page is read-only")}get rotation(){return this.#fe}set rotation(e){if((e=Math.floor(e))%90!=0)throw new Error("Invalid rotation: must be a multiple of 90");(e%=360)<0&&(e+=360);this.#fe=e;this.#Oe("rotation",e)}get textColor(){return this.#_e}set textColor(e){if(isValidColor(e)){this.#_e=e;this.#Oe("textColor",e)}}get fgColor(){return this.textColor}set fgColor(e){this.textColor=e}get value(){return this.#p}set value(e){this.#ve(e)&&this.#Oe("value",e,this.#ce??this.#p)}#ve(e){if(this.#de)return this.#Ee(e);if(this.#oe){this.#Te(e);return!0}if(this.#te&&e){const t=this.#be.scand(this.#Y,e);if(t){this.#ce=t.valueOf();e=this.#be.printd(this.#Y,t);this.#p=isNaN(e)?e:parseFloat(e);return!0}}if(""===e||"string"!=typeof e||this.#Z>=or){this.#ce=void 0;this.#p=e;return!0}this.#ce=e;const t=e.trim().replace(",",".");this.#p=isNaN(t)?e:parseFloat(t);return!0}get#Se(){return this.#de.indexOf(this.#ie)}#Fe(e){if(!this.#de)return-1;const t=Number(e);return Number.isInteger(t)&&t>=0&&t<this.#de.length&&`${t}`==`${e}`?t:-1}#De(e,t){this.#ie=this.#de[e];this.#p=t}#Ee(e){if(this.#ne&&(!e||"Off"===e||!this.exportValues.includes(e))){this.#p="Off";return!0}if(null==e){this.#p="";return!0}const t=this.exportValues.indexOf(e);if(-1!==t){this.#De(t,e);return!0}if("Off"===e&&2===this.#de.length){const e=(1+this.#Se)%2;this.#De(e,this.exportValues[e]);return!0}return!1}#Te(e){if(this.#we.multipleSelection){Array.isArray(e)||(e=[e]);const t=new Set(e);if(Array.isArray(this.#J)){this.#J.length=0;this.#p.length=0}else{this.#J=[];this.#p=[]}this.#ae.forEach((e,r)=>{if(t.has(e.exportValue)){this.#J.push(r);this.#p.push(e.exportValue)}})}else{Array.isArray(e)&&(e=e[0]);const t=this.#ae.findIndex(({exportValue:t})=>e===t);if(-1!==t){this.#J=t;this.#p=this.#ae[t].exportValue}}}get valueAsString(){return(this.#p??"").toString()}set valueAsString(e){}browseForFileToSubmit(){this.#L&&this.#L()}buttonGetCaption(e=0){return this.#$?this.#$[e]:""}buttonGetIcon(e=0){return this.#B?this.#B[e]:null}buttonImportIcon(e=null,t=0){}buttonSetCaption(e,t=0){this.#$??=["","",""];this.#$[t]=e}buttonSetIcon(e,t=0){this.#B??=[null,null,null];this.#B[t]=e}checkThisBox(e,t=!0){const r=this.#Fe(e);if(-1===r||!t&&!this.#ne)return;const i=t?this.exportValues[r]:"Off";this.#De(r,i);this.#D({id:this.#ie,value:i})}clearItems(){if(!this.#oe)throw new Error("Not a choice widget");this.#ae=[];this.#D({id:this.#ie,clear:null})}deleteItemAt(e=null){if(!this.#oe)throw new Error("Not a choice widget");if(this.numItems){if(null===e){e=Array.isArray(this.#J)?this.#J[0]:this.#J;e||=0}(e<0||e>=this.numItems)&&(e=this.numItems-1);this.#ae.splice(e,1);if(Array.isArray(this.#J)){let t=this.#J.findIndex(t=>t>=e);if(-1!==t){this.#J[t]===e&&this.#J.splice(t,1);for(const e=this.#J.length;t<e;t++)--this.#J[t]}}else this.#J===e?this.#J=this.numItems>0?0:-1:this.#J>e&&--this.#J;this.#D({id:this.#ie,remove:e})}}getItemAt(e=-1,t=!1){if(!this.#oe)throw new Error("Not a choice widget");(e<0||e>=this.numItems)&&(e=this.numItems-1);const r=this.#ae[e];return t?r.exportValue:r.displayValue}getArray(){if(this.#se){const e=[],fillArrayWithKids=t=>{for(const r of t){const t=this.#W[r];if(t){t.#re&&e.push(t);t.#se&&fillArrayWithKids(t.#se)}}};fillArrayWithKids(this.#se);return e}return this.#G??=this.#ee(this.#X)}getLock(){}isBoxChecked(e){const t=this.#Fe(e);return-1!==t&&this.#ie===this.#de[t]&&this.#p===this.exportValues[t]}isDefaultChecked(e){const t=this.#Fe(e);return-1!==t&&this.defaultValue===this.exportValues[t]}insertItemAt(e,t=void 0,r=0){if(!this.#oe)throw new Error("Not a choice widget");if(!e)return;(r<0||r>this.numItems)&&(r=this.numItems);if(this.#ae.some(({displayValue:t})=>t===e))return;void 0===t&&(t=e);const i={displayValue:e,exportValue:t};this.#ae.splice(r,0,i);if(Array.isArray(this.#J)){let e=this.#J.findIndex(e=>e>=r);if(-1!==e)for(const t=this.#J.length;e<t;e++)++this.#J[e]}else this.#J>=r&&++this.#J;this.#D({id:this.#ie,insert:{index:r,...i}})}setAction(e,t){"string"==typeof e&&"string"==typeof t&&this.#H.getOrInsertComputed(e,makeArr).push(t)}setFocus(){this.#D({id:this.#ie,focus:!0})}setItems(e){if(!this.#oe)throw new Error("Not a choice widget");this.#ae.length=0;for(const t of e){let e,r;if(Array.isArray(t)){e=t[0]?.toString()||"";r=t[1]?.toString()||""}else e=r=t?.toString()||"";this.#ae.push({displayValue:e,exportValue:r})}this.#J=0;this.#D({id:this.#ie,items:this.#ae})}setLock(){}signatureGetModifications(){}signatureGetSeedValue(){}signatureInfo(){}signatureSetSeedValue(){}signatureSign(){}signatureValidate(){}#xe(e){this.#de&&(this.#H=this.#he[this.#Se]);const t=e.name,r=this.#H.get(t);if(!r)return!1;for(const e of r)try{this.#T(e)}catch(e){this.#ge(serializeError(e,`Error when executing "${t}" for field "${this.#ie}"\\n`))}return!0}}class PrintParams{binaryOk=!0;bitmapDPI=150;booklet={binding:0,duplexMode:0,subsetFrom:0,subsetTo:-1};colorOverride=0;colorProfile="";constants=Object.freeze({bookletBindings:Object.freeze({Left:0,Right:1,LeftTall:2,RightTall:3}),bookletDuplexMode:Object.freeze({BothSides:0,FrontSideOnly:1,BasicSideOnly:2}),colorOverrides:Object.freeze({auto:0,gray:1,mono:2}),fontPolicies:Object.freeze({everyPage:0,jobStart:1,pageRange:2}),handling:Object.freeze({none:0,fit:1,shrink:2,tileAll:3,tileLarge:4,nUp:5,booklet:6}),interactionLevel:Object.freeze({automatic:0,full:1,silent:2}),nUpPageOrders:Object.freeze({Horizontal:0,HorizontalReversed:1,Vertical:2}),printContents:Object.freeze({doc:0,docAndComments:1,formFieldsOnly:2}),flagValues:Object.freeze({applyOverPrint:1,applySoftProofSettings:2,applyWorkingColorSpaces:4,emitHalftones:8,emitPostScriptXObjects:16,emitFormsAsPSForms:32,maxJP2KRes:64,setPageSize:128,suppressBG:256,suppressCenter:512,suppressCJKFontSubst:1024,suppressCropClip:2048,suppressRotate:4096,suppressTransfer:8192,suppressUCR:16384,useTrapAnnots:32768,usePrintersMarks:65536}),rasterFlagValues:Object.freeze({textToOutline:1,strokesToOutline:2,allowComplexClip:4,preserveOverprint:8}),subsets:Object.freeze({all:0,even:1,odd:2}),tileMarks:Object.freeze({none:0,west:1,east:2}),usages:Object.freeze({auto:0,use:1,noUse:2})});downloadFarEastFonts=!1;fileName="";firstPage=0;flags=0;fontPolicy=0;gradientDPI=150;interactive=1;npUpAutoRotate=!1;npUpNumPagesH=2;npUpNumPagesV=2;npUpPageBorder=!1;npUpPageOrder=0;pageHandling=0;pageSubset=0;printAsImage=!1;printContent=0;printerName="";psLevel=0;rasterFlags=0;reversePages=!1;tileLabel=!1;tileMark=0;tileOverlap=0;tileScale=1;transparencyLevel=75;usePrinterCRD=0;useT1Conversion=0;constructor(e){this.lastPage=e.lastPage}}class InfoProxyHandler{static get(e,t){return e[t.toLowerCase()]}static set(e,t,r){throw new Error(`doc.info.${t} is read-only`)}}const lr=Object.create(null);class Doc{#Pe=null;#Me=null;#je;#Ve=!0;#Ne=!1;#Re=!1;#qe=!1;#ze;#He;#We;#Le;#$e=[];#Be=[];#Ue;#Ge=new Map;#Ke=[];#Je;#Ye;#Xe;#Ze;#Qe;#et;#tt;#rt;#it;#nt;#ot;#at;#st;#ct;#ut;#lt;#ht;#dt=Lt.none;#pt;#H;#W;#T;#D;#P;#ft;constructor(e){this.#je=e.baseURL||"";this.#He=e.metadata||"";this.#Je=e.Author||"";this.#Ye=e.Creator||"";this.#Xe=this.#gt(e.CreationDate)||null;this.#Ze=e.docID||["",""];this.#Qe=e.filename||"";this.#et=e.filesize||0;this.#tt=e.Keywords||"";this.#rt=e.layout||"";this.#it=this.#gt(e.ModDate)||null;this.#nt=e.numPages||1;this.#ot=e.pageNum||0;this.#at=e.Producer||"";this.#st=e.EncryptFilterName||null;this.#ct=e.Subject||"";this.#ut=e.Title||"";this.#lt=e.URL||"";this.#ht=new Proxy(Object.assign(Object.create(null),{title:this.#ut,author:this.#Je,authors:e.authors||[this.#Je],subject:this.#ct,keywords:this.#tt,creator:this.#Ye,producer:this.#at,creationdate:this.#Xe,moddate:this.#it,trapped:e.Trapped||"Unknown"}),InfoProxyHandler);this.#pt=e.zoom||100;this.#H=createMap(e.actions);this.#W=e.appObjects;this.#ft=e.calculateNow;this.#T=e.globalEval;this.#D=e.send;this.#P=e.userActivationData;this.#Ue=exposeObject(new PrintParams({lastPage:this.#nt-1}),!0)}static{Object.assign(lr,{addField:(e,t,r)=>e.#mt(t,r),dispatchDocEvent:(e,t)=>e.#_t(t),dispatchPageEvent:(e,t,r,i)=>e.#bt(t,r,i),getTerminalChildren:(e,t)=>e.#ee(t),initActions:e=>e.#wt()})}#wt(){for(const e of this.#Ge.values()){const t=sr.getInitialValue(e);t&&sr.send(e,{value:t,formattedValue:sr.getValue(e).toString()})}const e=new Set(["WillClose","WillSave","DidSave","WillPrint","DidPrint","OpenAction"]);this.#P.disableSaving=!0;for(const t of this.#H.keys())e.has(t)||this.#xe(t);this.#P.disableSaving=!1}#_t(e){switch(e){case"Open":this.#P.disableSaving=!0;this.#xe("OpenAction");this.#P.disableSaving=!1;break;case"WillPrint":this.#P.disablePrinting=!0;try{this.#xe(e)}catch(e){this.#D(serializeError(e))}this.#D({command:"WillPrintFinished"});this.#P.disablePrinting=!1;break;case"WillSave":this.#P.disableSaving=!0;try{this.#xe(e)}catch(e){this.#D(serializeError(e))}this.#D({command:"WillSaveFinished"});this.#P.disableSaving=!1;break;default:this.#xe(e)}}#bt(e,t,r){if("PageOpen"===e){this.#Pe??=new Map;this.#Pe.getOrInsertComputed(r,()=>createMap(t));this.#ot=r-1}for(const i of[this.#Pe,this.#Me]){t=i?.get(r)?.get(e);if(t)for(const e of t)this.#T(e)}}#xe(e){const t=this.#H.get(e);if(t)for(const r of t)try{this.#T(r)}catch(t){this.#D(serializeError(t,`Error when executing "${e}" for document\\n`))}}#mt(e,t){this.#Ge.set(e,t);this.#Ke.push(e);for(const[e,r,i]of sr.getPageActions(t)){this.#Me??=new Map;this.#Me.getOrInsertComputed(e+1,makeMap).getOrInsertComputed(r,makeArr).push(...i)}}#gt(e){if(!e||e.length<15||!e.startsWith("D:"))return e;const t=(e=e.substring(2)).substring(0,4),r=e.substring(4,6),i=e.substring(6,8),n=e.substring(8,10),o=e.substring(10,12),a=e.charAt(12);let s,c;if("Z"===a||"+"===a||"-"===a){s="00";c=12}else{s=e.substring(12,14);c=14}const u=e.substring(c).replaceAll("\'","");return new Date(`${t}-${r}-${i}T${n}:${o}:${s}${u}`)}get author(){return this.#Je}set author(e){throw new Error("doc.author is read-only")}get baseURL(){return this.#je}set baseURL(e){this.#je=e}get bookmarkRoot(){}set bookmarkRoot(e){throw new Error("doc.bookmarkRoot is read-only")}get calculate(){return this.#Ve}set calculate(e){this.#Ve=e}get creator(){return this.#Ye}set creator(e){throw new Error("doc.creator is read-only")}get dataObjects(){return[]}set dataObjects(e){throw new Error("doc.dataObjects is read-only")}get delay(){return this.#Ne}set delay(e){this.#Ne=e}get dirty(){return this.#Re}set dirty(e){this.#Re=e}get disclosed(){return this.#qe}set disclosed(e){this.#qe=e}get docID(){return this.#Ze}set docID(e){throw new Error("doc.docID is read-only")}get documentFileName(){return this.#Qe}set documentFileName(e){throw new Error("doc.documentFileName is read-only")}get dynamicXFAForm(){return!1}set dynamicXFAForm(e){throw new Error("doc.dynamicXFAForm is read-only")}get external(){return false}set external(e){throw new Error("doc.external is read-only")}get filesize(){return this.#et}set filesize(e){throw new Error("doc.filesize is read-only")}get hidden(){return!1}set hidden(e){throw new Error("doc.hidden is read-only")}get hostContainer(){}set hostContainer(e){throw new Error("doc.hostContainer is read-only")}get icons(){}set icons(e){throw new Error("doc.icons is read-only")}get info(){return this.#ht}set info(e){throw new Error("doc.info is read-only")}get innerAppWindowRect(){return[0,0,0,0]}set innerAppWindowRect(e){throw new Error("doc.innerAppWindowRect is read-only")}get innerDocWindowRect(){return[0,0,0,0]}set innerDocWindowRect(e){throw new Error("doc.innerDocWindowRect is read-only")}get isModal(){return!1}set isModal(e){throw new Error("doc.isModal is read-only")}get keywords(){return this.#tt}set keywords(e){throw new Error("doc.keywords is read-only")}get layout(){return this.#rt}set layout(e){if(this.#P.userActivation){this.#P.userActivation=!1;if("string"==typeof e){"SinglePage"!==e&&"OneColumn"!==e&&"TwoColumnLeft"!==e&&"TwoPageLeft"!==e&&"TwoColumnRight"!==e&&"TwoPageRight"!==e&&(e="SinglePage");this.#D({command:"layout",value:e});this.#rt=e}}}get media(){return this.#ze}set media(e){this.#ze=e}get metadata(){return this.#He}set metadata(e){this.#He=e}get modDate(){return this.#it}set modDate(e){throw new Error("doc.modDate is read-only")}get mouseX(){return 0}set mouseX(e){throw new Error("doc.mouseX is read-only")}get mouseY(){return 0}set mouseY(e){throw new Error("doc.mouseY is read-only")}get noautocomplete(){return this.#We}set noautocomplete(e){this.#We=e}get nocache(){return this.#Le}set nocache(e){this.#Le=e}get numFields(){return this.#Ke.length}set numFields(e){throw new Error("doc.numFields is read-only")}get numPages(){return this.#nt}set numPages(e){throw new Error("doc.numPages is read-only")}get numTemplates(){return 0}set numTemplates(e){throw new Error("doc.numTemplates is read-only")}get outerAppWindowRect(){return[0,0,0,0]}set outerAppWindowRect(e){throw new Error("doc.outerAppWindowRect is read-only")}get outerDocWindowRect(){return[0,0,0,0]}set outerDocWindowRect(e){throw new Error("doc.outerDocWindowRect is read-only")}get pageNum(){return this.#ot}set pageNum(e){if(this.#P.userActivation){this.#P.userActivation=!1;if(!("number"!=typeof e||e<0||e>=this.#nt)){this.#D({command:"page-num",value:e});this.#ot=e}}}get pageWindowRect(){return[0,0,0,0]}set pageWindowRect(e){throw new Error("doc.pageWindowRect is read-only")}get path(){return""}set path(e){throw new Error("doc.path is read-only")}get permStatusReady(){return!0}set permStatusReady(e){throw new Error("doc.permStatusReady is read-only")}get producer(){return this.#at}set producer(e){throw new Error("doc.producer is read-only")}get requiresFullSave(){return!1}set requiresFullSave(e){throw new Error("doc.requiresFullSave is read-only")}get securityHandler(){return this.#st}set securityHandler(e){throw new Error("doc.securityHandler is read-only")}get selectedAnnots(){return[]}set selectedAnnots(e){throw new Error("doc.selectedAnnots is read-only")}get sounds(){return[]}set sounds(e){throw new Error("doc.sounds is read-only")}get spellDictionaryOrder(){return this.#$e}set spellDictionaryOrder(e){this.#$e=e}get spellLanguageOrder(){return this.#Be}set spellLanguageOrder(e){this.#Be=e}get subject(){return this.#ct}set subject(e){throw new Error("doc.subject is read-only")}get templates(){return[]}set templates(e){throw new Error("doc.templates is read-only")}get title(){return this.#ut}set title(e){throw new Error("doc.title is read-only")}get URL(){return this.#lt}set URL(e){throw new Error("doc.URL is read-only")}get viewState(){}set viewState(e){throw new Error("doc.viewState is read-only")}get xfa(){}set xfa(e){throw new Error("doc.xfa is read-only")}get XFAForeground(){return!1}set XFAForeground(e){throw new Error("doc.XFAForeground is read-only")}get zoomType(){return this.#dt}set zoomType(e){if(this.#P.userActivation){this.#P.userActivation=!1;if("string"==typeof e){switch(e){case Lt.none:this.#D({command:"zoom",value:1});break;case Lt.fitP:this.#D({command:"zoom",value:"page-fit"});break;case Lt.fitW:this.#D({command:"zoom",value:"page-width"});break;case Lt.fitH:this.#D({command:"zoom",value:"page-height"});break;case Lt.fitV:this.#D({command:"zoom",value:"auto"});break;case Lt.pref:case Lt.refW:break;default:return}this.#dt=e}}}get zoom(){return this.#pt}set zoom(e){if(this.#P.userActivation){this.#P.userActivation=!1;"number"!=typeof e||e<8.33||e>6400||this.#D({command:"zoom",value:e/100})}}addAnnot(){}addField(){}addIcon(){}addLink(){}addRecipientListCryptFilter(){}addRequirement(){}addScript(){}addThumbnails(){}addWatermarkFromFile(){}addWatermarkFromText(){}addWeblinks(){}bringToFront(){}calculateNow(){this.#ft()}closeDoc(){}colorConvertPage(){}createDataObject(){}createTemplate(){}deletePages(){}deleteSound(){}embedDocAsDataObject(){}embedOutputIntent(){}encryptForRecipients(){}encryptUsingPolicy(){}exportAsFDF(){}exportAsFDFStr(){}exportAsText(){}exportAsXFDF(){}exportAsXFDFStr(){}exportDataObject(){}exportXFAData(){}extractPages(){}flattenPages(){}getAnnot(){}getAnnots(){}getAnnot3D(){}getAnnots3D(){}getColorConvertAction(){}getDataObject(){}getDataObjectContents(){}getField(e){e&&"object"==typeof e&&(e=e.cName);if("string"!=typeof e)throw new TypeError("Invalid field name: must be a string");const t=this.#Ge.get(e);if(t)return t;const r=e.split("#");let i=NaN;if(2===r.length){i=Math.floor(parseFloat(r[1]));e=r[0]}for(const[t,r]of this.#Ge)if(t.endsWith(e)){if(!isNaN(i)){const r=this.#vt(t);(i<0||i>=r.length)&&(i=0);if(i<r.length){this.#Ge.set(e,r[i]);return r[i]}}this.#Ge.set(e,r);return r}return null}#vt(e){const t=e.length,r=[],i=/^\\.[^.]+$/;for(const[n,o]of this.#Ge)if(n.startsWith(e)){const e=n.slice(t);i.test(e)&&r.push(o)}return r}#ee(e){const t=[],r=e.length;for(const[i,n]of this.#Ge)if(i.startsWith(e)){const e=i.slice(r);sr.getHasValue(n)&&(""===e||e.startsWith("."))&&t.push(n)}return t}getIcon(){}getLegalWarnings(){}getLinks(){}getNthFieldName(e){e&&"object"==typeof e&&(e=e.nIndex);if("number"!=typeof e)throw new TypeError("Invalid field index: must be a number");return e>=0&&e<this.numFields?this.#Ke[Math.trunc(e)]:null}getNthTemplate(){return null}getOCGs(){}getOCGOrder(){}getPageBox(){}getPageLabel(){}getPageNthWord(){}getPageNthWordQuads(){}getPageNumWords(){}getPageRotation(){}getPageTransition(){}getPrintParams(){return this.#Ue}getSound(){}getTemplate(){}getURL(){}gotoNamedDest(){}importAnFDF(){}importAnXFDF(){}importDataObject(){}importIcon(){}importSound(){}importTextData(){}importXFAData(){}insertPages(){}mailDoc(){}mailForm(){}movePage(){}newPage(){}openDataObject(){}print(e=!0,t=0,r=-1,i=!1,n=!1,o=!1,a=!1,s=!0,c=null){if(!this.#P.disablePrinting&&this.#P.userActivation){this.#P.userActivation=!1;if(e&&"object"==typeof e){t=e.nStart;r=e.nEnd;e.bSilent;e.bShrinkToFit;e.bPrintAsImage;e.bReverse;e.bAnnotations;c=e.printParams;e=e.bUI}if(c){t=c.firstPage;r=c.lastPage}t="number"==typeof t?Math.max(0,Math.trunc(t)):0;r="number"==typeof r?Math.max(0,Math.trunc(r)):-1;this.#D({command:"print",start:t,end:r})}}removeDataObject(){}removeField(){}removeIcon(){}removeLinks(){}removeRequirement(){}removeScript(){}removeTemplate(){}removeThumbnails(){}removeWeblinks(){}replacePages(){}resetForm(e=null){e&&"object"==typeof e&&!Array.isArray(e)&&(e=e.aFields);e&&!Array.isArray(e)&&(e=[e]);let t,r=!1;if(e){t=new Set;for(const i of e){if(!i)continue;if("string"!=typeof i){t=null;break}const e=this.getField(i);if(e){t.add(e);r=!0}}}if(t)for(const e of t)for(const r of sr.getKidIds(e)||[]){const e=this.#W[r];e&&t.add(e)}else{t=this.#Ge.values();r=0!==this.#Ge.size}for(const e of t){sr.setValue(e,e.defaultValue);sr.send(e,{value:e.defaultValue,formattedValue:null,selRange:[0,0]})}r&&this.calculateNow()}saveAs(){}scroll(){}selectPageNthWord(){}setAction(){}setDataObjectContents(){}setOCGOrder(){}setPageAction(){}setPageBoxes(){}setPageLabels(){}setPageRotations(){}setPageTabOrder(){}setPageTransitions(){}spawnPageFromTemplate(){}submitForm(){}syncAnnotScan(){}}gt();vt();const{values:hr}=Object,dr=Object.create(Object.prototype,{[Symbol.toStringTag]:{value:"Event"}});function createEvent(e){return{__proto__:dr,change:e.change||"",changeEx:e.changeEx||null,commitKey:e.commitKey||0,fieldFull:e.fieldFull||!1,keyDown:e.keyDown||!1,modifier:e.modifier||!1,name:e.name,rc:!0,richChange:e.richChange||[],richChangeEx:e.richChangeEx||[],richValue:e.richValue||[],selEnd:e.selEnd??-1,selStart:e.selStart??-1,shift:e.shift||!1,source:e.source||null,target:e.target||null,targetName:"",type:"Field",value:e.value||"",willCommit:e.willCommit||!1}}function mergeChange(e){let t=e.value;if(Array.isArray(t))return t;"string"!=typeof t&&(t=t.toString());const r=e.selStart>=0?t.substring(0,e.selStart):"",i=e.selEnd>=0&&e.selEnd<=t.length?t.substring(e.selEnd):"";return`${r}${e.change}${i}`}class EventDispatcher{#yt;#S;#F;#At=!1;#kt;#P;constructor(e,t,r,i,n){this.#S=e;this.#yt=t;this.#kt=r;this.#F=i;this.#P=n}#St(){this.#P.userActivation=!0;this.#F("setTimeout",[0,5e3])}dispatch(e){const t=e.id;if(!(t in this.#kt)){let r;if("doc"===t||"page"===t){r=globalThis.event=createEvent(e);r.source=r.target=globalThis}if("doc"===t){const e=r.name;if("Open"===e){this.#St();lr.initActions(this.#S);this.#xt()}["DidPrint","DidSave","WillPrint","WillSave"].includes(e)||this.#St();lr.dispatchDocEvent(this.#S,r.name)}else if("page"===t){this.#St();lr.dispatchPageEvent(this.#S,r.name,e.actions,e.pageNumber)}else if("app"===t&&"ResetForm"===e.name){this.#St();for(const t of e.ids){const e=this.#kt[t];e&&sr.setValue(e,e.defaultValue)}}return}const r=e.name,i=this.#kt[t],n=globalThis.event=createEvent(e);let o;this.#St();sr.prepareEvent(i,t,n);switch(r){case"Keystroke":o={value:n.value,changeEx:n.changeEx,change:n.change,selStart:n.selStart,selEnd:n.selEnd};break;case"Blur":case"Focus":Object.defineProperty(n,"value",{configurable:!1,writable:!1,enumerable:!0,value:n.value});break;case"Validate":this.#It(i,n);return;case"Action":this.#xe(i,i,n,r);this.#Ot(i,n);return}this.#xe(i,i,n,r);if("Keystroke"===r)if(n.rc)if(n.willCommit)this.#It(i,n);else{if(sr.getIsChoice(i)){sr.setValue(i,o.changeEx);sr.send(i,{value:sr.getValue(i)});return}const e=mergeChange(n);sr.setValue(i,e);let t,r;if(n.selStart!==o.selStart||n.selEnd!==o.selEnd){t=n.selStart;r=n.selEnd}else r=t=o.selStart+n.change.length;sr.send(i,{value:e,selRange:[t,r]})}else n.willCommit?sr.send(i,{value:"",formattedValue:null,selRange:[0,0]}):sr.send(i,{value:o.value,selRange:[o.selStart,o.selEnd]})}#xt(){const e=globalThis.event=createEvent({});for(const t of hr(this.#kt)){e.value=sr.getComputedValue(t);this.#xe(t,t,e,"Format")}}#It(e,t){const r=this.#xe(e,e,t,"Validate");if(t.rc){sr.setValue(e,t.value);this.#Ot(e,t);const r=t.value=sr.getComputedValue(e),i=this.#xe(e,e,t,"Format")?t.value?.toString?.():null;sr.send(e,{value:r,formattedValue:i});t.value=r}else r&&sr.send(e,{value:"",formattedValue:null,selRange:[0,0],focus:!0})}#xe(e,t,r,i){r.source=e;r.target=t;r.name=i;r.targetName=t.name;r.rc=!0;return sr.runActions(t,r)}calculateNow(){if(!this.#yt||this.#At||!this.#S.calculate)return;this.#At=!0;const e=this.#yt[0],t=this.#kt[e];globalThis.event=createEvent({});this.#Ot(t,globalThis.event);this.#At=!1}#Ot(e,t){if(this.#yt&&this.#S.calculate)for(const r of this.#yt){if(!(r in this.#kt))continue;if(!this.#S.calculate)break;t.value=null;const i=this.#kt[r];let n=sr.getComputedValue(i);this.#xe(e,i,t,"Calculate");if(!t.rc)continue;null!==t.value?sr.setValue(i,t.value):t.value=sr.getComputedValue(i);this.#xe(i,i,t,"Validate");if(!t.rc){sr.getComputedValue(i)!==n&&(i.value=n);continue}null===t.value&&(t.value=sr.getComputedValue(i));n=sr.getComputedValue(i);const o=this.#xe(i,i,t,"Format")?t.value?.toString?.():null;sr.send(i,{value:n,formattedValue:o})}}}class AForm{#Ct;#Et;#be;#Tt;#Ft=new RegExp("^[\\\\w.!#$%&\'*+/=?^`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$");constructor(e,t,r,i){this.#Ct=e;this.#Et=t;this.#be=r;this.#Tt=i}#Dt(e){return e.target?`[ ${e.target.name} ]`:""}#Pt(e,t){let r=null;try{r=this.#be.scand(e,t)}catch{}if(r)return r;r=Date.parse(t);return isNaN(r)?null:new Date(r)}AFMergeChange(e=globalThis.event){return e.willCommit?e.value.toString():mergeChange(e)}AFParseDateEx(e,t){return this.#Pt(t,e)}AFExtractNums(e){if("number"==typeof e)return[e];if(!e||"string"!=typeof e)return null;const t=e.charAt(0);"."!==t&&","!==t||(e=`0${e}`);const r=e.match(/(\\d+)/g);return 0===r.length?null:r}AFMakeNumber(e){if("number"==typeof e)return e;if("string"!=typeof e)return null;e=e.trim().replace(",",".");const t=parseFloat(e);return isNaN(t)||!isFinite(t)?null:t}AFMakeArrayFromList(e){return"string"==typeof e?e.split(/, ?/g):e}AFNumber_Format(e,t,r,i,n,o){const a=globalThis.event;let s=this.AFMakeNumber(a.value);if(null===s){a.value="";return}const c=Math.sign(s),u=[];let l=!1;-1===c&&o&&0===r&&u.push("-");if((2===r||3===r)&&-1===c){u.push("(");l=!0}o&&u.push(n);t=MathClamp(Math.floor(t),0,4);u.push("%,",t,".",e.toString(),"f");o||u.push(n);l&&u.push(")");1!==r&&3!==r||(a.target.textColor=1===c?this.#Tt.black:this.#Tt.red);0===r&&!o||-1!==c||(s=-s);const h=u.join("");a.value=this.#be.printf(h,s)}AFNumber_Keystroke(e,t,r,i,n,o){const a=globalThis.event;let s,c=this.AFMergeChange(a);if(c){c=c.trim();s=t>1?a.willCommit?/^[+-]?(\\d+(,\\d*)?|,\\d+)$/:/^[+-]?\\d*(?:,\\d*)?$/:a.willCommit?/^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)$/:/^[+-]?\\d*(?:\\.\\d*)?$/;if(!s.test(c)){if(a.willCommit){const e=`${$t.IDS_INVALID_VALUE} ${this.#Dt(a)}`;this.#Et.alert(e)}a.rc=!1}a.willCommit&&t>1&&(a.value=parseFloat(c.replace(",",".")))}}AFPercent_Format(e,t,r=!1){if("number"!=typeof e||"number"!=typeof t)return;if(e<0)throw new Error("Invalid nDec value in AFPercent_Format");const i=globalThis.event;if(e>512){i.value="%";return}e=Math.floor(e);t=MathClamp(Math.floor(t),0,4);let n=this.AFMakeNumber(i.value);if(null===n){i.value="%";return}const o=`%,${t}.${e}f`;n=this.#be.printf(o,100*n);i.value=r?`%${n}`:`${n}%`}AFPercent_Keystroke(e,t){this.AFNumber_Keystroke(e,t,0,0,"",!0)}AFDate_FormatEx(e){const t=globalThis.event,r=t.value;if(!r)return;const i=this.#Pt(e,r);null!==i&&(t.value=this.#be.printd(e,i))}AFDate_Format(e){this.AFDate_FormatEx(Bt[e]??e)}AFDate_KeystrokeEx(e){const t=globalThis.event;if(!t.willCommit)return;const r=this.AFMergeChange(t);if(r&&null===this.#Pt(e,r)){const r=$t.IDS_INVALID_DATE,i=$t.IDS_INVALID_DATE2,n=`${r} ${this.#Dt(t)}${i}${e}`;this.#Et.alert(n);t.rc=!1}}AFDate_Keystroke(e){e>=0&&e<Bt.length&&this.AFDate_KeystrokeEx(Bt[e])}AFRange_Validate(e,t,r,i){const n=globalThis.event;if(!n.value)return;const o=this.AFMakeNumber(n.value);if(null===o)return;r=!!r;if((e=!!e)&&null===(t=this.AFMakeNumber(t)))return;if(r&&null===(i=this.AFMakeNumber(i)))return;let a="";e&&r?(o<t||o>i)&&(a=this.#be.printf($t.IDS_GT_AND_LT,t,i)):e?o<t&&(a=this.#be.printf($t.IDS_GREATER_THAN,t)):o>i&&(a=this.#be.printf($t.IDS_LESS_THAN,i));if(a){this.#Et.alert(a);n.rc=!1}}AFSimple(e,t,r){const i=this.AFMakeNumber(t);if(null===i)throw new Error("Invalid nValue1 in AFSimple");const n=this.AFMakeNumber(r);if(null===n)throw new Error("Invalid nValue2 in AFSimple");switch(e){case"AVG":return(i+n)/2;case"SUM":return i+n;case"PRD":return i*n;case"MIN":return Math.min(i,n);case"MAX":return Math.max(i,n)}throw new Error("Invalid cFunction in AFSimple")}AFSimple_Calculate(e,t){const r={AVG:e=>Math.sumPrecise(e)/e.length,SUM:e=>Math.sumPrecise(e),PRD:e=>e.reduce((e,t)=>e*t,1),MIN:e=>Math.min(...e),MAX:e=>Math.max(...e)};if(!(e in r))throw new TypeError("Invalid function in AFSimple_Calculate");const i=globalThis.event,n=[];t=this.AFMakeArrayFromList(t);for(const e of t){const t=this.#Ct.getField(e);if(t)for(const e of t.getArray()){const t=this.AFMakeNumber(e.value);n.push(t??0)}}if(0===n.length){i.value=0;return}const o=r[e](n);i.value=Math.round(1e6*o)/1e6}AFSpecial_Format(e){const t=globalThis.event;if(!t.value)return;let r;switch(e=this.AFMakeNumber(e)){case 0:r="99999";break;case 1:r="99999-9999";break;case 2:r=this.#be.printx("9999999999",t.value).length>=10?"(999) 999-9999":"999-9999";break;case 3:r="999-99-9999";break;default:throw new Error("Invalid psf in AFSpecial_Format")}t.value=this.#be.printx(r,t.value)}AFSpecial_KeystrokeEx(e){const t=globalThis.event,r=e.replaceAll(/[^9AOX]/g,"");this.#Mt(r,null,!1);if(!t.rc){t.rc=!0;this.#Mt(e,null,!0)}}#Mt(e,t,r){if(!e)return;const i=globalThis.event;t||=this.AFMergeChange(i);if(!t)return;const n=new Map([["9",e=>e>="0"&&e<="9"],["A",e=>"a"<=e&&e<="z"||"A"<=e&&e<="Z"],["O",e=>"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"0"<=e&&e<="9"],["X",e=>!0]]);function _checkValidity(e,t){for(let r=0,i=e.length;r<i;r++){const i=t.charAt(r),o=e.charAt(r),a=n.get(i);if(a){if(!a(o))return!1}else if(i!==o)return!1}return!0}const o=`${$t.IDS_INVALID_VALUE} = "${e}"`;if(t.length>e.length){r&&this.#Et.alert(o);i.rc=!1}else if(i.willCommit){if(t.length<e.length){r&&this.#Et.alert(o);i.rc=!1;return}if(!_checkValidity(t,e)){r&&this.#Et.alert(o);i.rc=!1;return}i.value+=e.substring(t.length)}else{t.length<e.length&&(e=e.substring(0,t.length));if(!_checkValidity(t,e)){r&&this.#Et.alert(o);i.rc=!1}}}AFSpecial_Keystroke(e){const t=globalThis.event;e=this.AFMakeNumber(e);let r,i,n=this.AFMergeChange(t);switch(e){case 0:r="99999";break;case 1:r="99999-9999";break;case 2:r="999-9999";i="(999) 999-9999";break;case 3:r="999-99-9999";break;default:throw new Error("Invalid psf in AFSpecial_Keystroke")}const o=i?[r,i]:[r];for(const e of o){this.#Mt(e,n,!1);if(t.rc)return;t.rc=!0}const a=/[-()\\s]+/g;n=n.replaceAll(a,"");for(const e of o){this.#Mt(e.replaceAll(a,""),n,!1);if(t.rc)return;t.rc=!0}this.AFSpecial_KeystrokeEx((i&&n.match(/\\d/g)||[]).length>7?i:r)}AFTime_FormatEx(e){this.AFDate_FormatEx(e)}AFTime_Format(e){this.AFDate_FormatEx(Ut[e]??e)}AFTime_KeystrokeEx(e){this.AFDate_KeystrokeEx(e)}AFTime_Keystroke(e){e>=0&&e<Ut.length&&this.AFDate_KeystrokeEx(Ut[e])}eMailValidate(e){return this.#Ft.test(e)}AFExactMatch(e,t){return e instanceof RegExp?t.match(e)?.[0]===t||0:e.findIndex(e=>t.match(e)?.[0]===t)+1}}_t();class Console{#D;constructor({send:e}){this.#D=e}clear(){this.#D({id:"clear"})}hide(){}println(e){if("string"!=typeof e)try{e=JSON.stringify(e)}catch{e=e.toString?.()||"[Unserializable object]"}this.#D({command:"println",value:`PDF.js Console:: ${e}`})}show(){}}class Util{#jt=this.#Vt.bind(this);#Nt=this.#Rt.bind(this);#qt=null;#zt=null;#Ht=["January","February","March","April","May","June","July","August","September","October","November","December"];#Wt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];MILLISECONDS_IN_DAY=864e5;MILLISECONDS_IN_WEEK=6048e5;printf(...e){if(0===e.length)throw new Error("Invalid number of params in printf");if("string"!=typeof e[0])throw new TypeError("First argument of printf must be a string");let t=0;return e[0].replaceAll(/%(,[0-4])?([+ 0#]+)?(\\d+)?(\\.\\d+)?(.)/g,function(r,i,n,o,a,s){if("d"!==s&&"f"!==s&&"s"!==s&&"x"!==s){const e=["%"];for(const t of[i,n,o,a,s])t&&e.push(t);return e.join("")}t++;if(t===e.length)throw new Error("Not enough arguments in printf");const c=e[t];if("s"===s)return c.toString();let u=0;if(n)for(const e of n)switch(e){case"+":u|=1;break;case" ":u|=2;break;case"0":u|=4;break;case"#":u|=8}n=u;o&&=parseInt(o);let l=Math.trunc(c);if("x"===s){let e=Math.abs(l).toString(16).toUpperCase();void 0!==o&&(e=e.padStart(o,4&n?"0":" "));8&n&&(e=`0x${e}`);return e}a&&=parseInt(a.substring(1));i=i?i.substring(1):"0";const[h,d]={0:[",","."],1:["","."],2:[".",","],3:["",","],4:["\'","."]}[i];let p="";if("f"===s){p=void 0!==a?Math.abs(c-l).toFixed(a):Math.abs(c-l).toString();if(p.length>2)if(/^1\\.0+$/.test(p)){l+=Math.sign(c);p=`${d}${p.split(".")[1]}`}else p=`${d}${p.substring(2)}`;else{"1"===p&&(l+=Math.sign(c));p=8&n?".":""}}let f="";if(l<0||"f"===s&&c<0){f="-";l=-l}else 1&n?f="+":2&n&&(f=" ");if(h&&l>=1e3){const e=[];for(;;){e.push((l%1e3).toString().padStart(3,"0"));l=Math.trunc(l/1e3);if(l<1e3){e.push(l.toString());break}}l=e.reverse().join(h)}else l=l.toString();let g=`${l}${p}`;void 0!==o&&(g=g.padStart(o-f.length,4&n?"0":" "));return`${f}${g}`})}iconStreamFromIcon(){}printd(e,t){switch(e){case 0:return this.printd("D:yyyymmddHHMMss",t);case 1:return this.printd("yyyy.mm.dd HH:MM:ss",t);case 2:return this.printd("m/d/yy h:MM:ss tt",t)}const r={mmmm:e=>this.#Ht[e.month],mmm:e=>this.#Ht[e.month].substring(0,3),mm:e=>(e.month+1).toString().padStart(2,"0"),m:e=>(e.month+1).toString(),dddd:e=>this.#Wt[e.dayOfWeek],ddd:e=>this.#Wt[e.dayOfWeek].substring(0,3),dd:e=>e.day.toString().padStart(2,"0"),d:e=>e.day.toString(),yyyy:e=>e.year.toString().padStart(4,"0"),yy:e=>(e.year%100).toString().padStart(2,"0"),HH:e=>e.hours.toString().padStart(2,"0"),H:e=>e.hours.toString(),hh:e=>(1+(e.hours+11)%12).toString().padStart(2,"0"),h:e=>(1+(e.hours+11)%12).toString(),MM:e=>e.minutes.toString().padStart(2,"0"),M:e=>e.minutes.toString(),ss:e=>e.seconds.toString().padStart(2,"0"),s:e=>e.seconds.toString(),tt:e=>e.hours<12?"am":"pm",t:e=>e.hours<12?"a":"p"},i={year:t.getFullYear(),month:t.getMonth(),day:t.getDate(),dayOfWeek:t.getDay(),hours:t.getHours(),minutes:t.getMinutes(),seconds:t.getSeconds()};return e.replaceAll(/(mmmm|mmm|mm|m|dddd|ddd|dd|d|yyyy|yy|HH|H|hh|h|MM|M|ss|s|tt|t|\\\\.)/g,(e,t)=>t in r?r[t](i):t.charAt(1))}printx(e,t){const r=[e=>e,e=>e.toUpperCase(),e=>e.toLowerCase()],i=[];let n=0;const o=(t=(t??"").toString()).length;let a=r[0],s=!1;for(const c of e)if(s){i.push(c);s=!1}else{if(n>=o)break;switch(c){case"?":i.push(a(t.charAt(n++)));break;case"X":for(;n<o;){const e=t.charAt(n++);if("a"<=e&&e<="z"||"A"<=e&&e<="Z"||"0"<=e&&e<="9"){i.push(a(e));break}}break;case"A":for(;n<o;){const e=t.charAt(n++);if("a"<=e&&e<="z"||"A"<=e&&e<="Z"){i.push(a(e));break}}break;case"9":for(;n<o;){const e=t.charAt(n++);if("0"<=e&&e<="9"){i.push(e);break}}break;case"*":for(;n<o;)i.push(a(t.charAt(n++)));break;case"\\\\":s=!0;break;case">":a=r[1];break;case"<":a=r[2];break;case"=":a=r[0];break;default:i.push(c)}}return i.join("")}#Vt(e){const t=[];e.replaceAll(/(d+)|(m+)|(y+)|(H+)|(M+)|(s+)/g,function(e,r,i,n,o,a,s){r?t.push((e,t)=>{if(e>=1&&e<=31){t.day=e;return!0}return!1}):i?t.push((e,t)=>{if(e>=1&&e<=12){t.month=e-1;return!0}return!1}):n?t.push((e,t)=>{e<50?e+=2e3:e<100&&(e+=1900);t.year=e;return!0}):o?t.push((e,t)=>{if(e>=0&&e<=23){t.hours=e;return!0}return!1}):a?t.push((e,t)=>{if(e>=0&&e<=59){t.minutes=e;return!0}return!1}):s&&t.push((e,t)=>{if(e>=0&&e<=59){t.seconds=e;return!0}return!1});return""});return t}#Lt(e,t){const r=(this.#qt??=new Map).getOrInsertComputed(e,this.#jt),i=/\\d+/g;let n,o=0;const a={year:(new Date).getFullYear(),month:0,day:1,hours:12,minutes:0,seconds:0};for(;null!==(n=i.exec(t))&&o<r.length;)if(!r[o++](parseInt(n[0]),a))return null;return 0===o?null:new Date(a.year,a.month,a.day,a.hours,a.minutes,a.seconds)}#Rt(e){const t=this.#Ht,r=this.#Wt,i={mmmm:{pattern:`(${t.join("|")})`,action:(e,r)=>{r.month=t.indexOf(e)}},mmm:{pattern:`(${t.map(e=>e.substring(0,3)).join("|")})`,action:(e,r)=>{r.month=t.findIndex(t=>t.substring(0,3)===e)}},mm:{pattern:"(\\\\d{2})",action:(e,t)=>{t.month=parseInt(e)-1}},m:{pattern:"(\\\\d{1,2})",action:(e,t)=>{t.month=parseInt(e)-1}},dddd:{pattern:`(${r.join("|")})`,action:(e,t)=>{t.day=r.indexOf(e)}},ddd:{pattern:`(${r.map(e=>e.substring(0,3)).join("|")})`,action:(e,t)=>{t.day=r.findIndex(t=>t.substring(0,3)===e)}},dd:{pattern:"(\\\\d{2})",action:(e,t)=>{t.day=parseInt(e)}},d:{pattern:"(\\\\d{1,2})",action:(e,t)=>{t.day=parseInt(e)}},yyyy:{pattern:"(\\\\d{4})",action:(e,t)=>{t.year=parseInt(e)}},yy:{pattern:"(\\\\d{2})",action:(e,t)=>{t.year=2e3+parseInt(e)}},HH:{pattern:"(\\\\d{2})",action:(e,t)=>{t.hours=parseInt(e)}},H:{pattern:"(\\\\d{1,2})",action:(e,t)=>{t.hours=parseInt(e)}},hh:{pattern:"(\\\\d{2})",action:(e,t)=>{t.hours=parseInt(e)}},h:{pattern:"(\\\\d{1,2})",action:(e,t)=>{t.hours=parseInt(e)}},MM:{pattern:"(\\\\d{2})",action:(e,t)=>{t.minutes=parseInt(e)}},M:{pattern:"(\\\\d{1,2})",action:(e,t)=>{t.minutes=parseInt(e)}},ss:{pattern:"(\\\\d{2})",action:(e,t)=>{t.seconds=parseInt(e)}},s:{pattern:"(\\\\d{1,2})",action:(e,t)=>{t.seconds=parseInt(e)}},tt:{pattern:"([aApP][mM])",action:(e,t)=>{const r=e.charAt(0);t.am="a"===r||"A"===r}},t:{pattern:"([aApP])",action:(e,t)=>{t.am="a"===e||"A"===e}}},n=e.replaceAll(/[.*+\\-?^${}()|[\\]\\\\]/g,"\\\\$&"),o=[],a=n.replaceAll(/(mmmm|mmm|mm|m|dddd|ddd|dd|d|yyyy|yy|HH|H|hh|h|MM|M|ss|s|tt|t)/g,function(e,t){const{pattern:r,action:n}=i[t];o.push(n);return r.includes(",")?`(?=${r})\\\\${o.length}`:r});return[new RegExp(`^${a}$`),o]}scand(e,t){if("string"!=typeof t)return new Date(t);if(""===t)return new Date;switch(e){case 0:return this.scand("D:yyyymmddHHMMss",t);case 1:return this.scand("yyyy.mm.dd HH:MM:ss",t);case 2:return this.scand("m/d/yy h:MM:ss tt",t)}const[r,i]=(this.#zt??=new Map).getOrInsertComputed(e,this.#Nt),n=r.exec(t);if(!n||n.length!==i.length+1)return this.#Lt(e,t);const o={year:2e3,month:0,day:1,hours:0,minutes:0,seconds:0,am:null};i.forEach((e,t)=>e(n[t+1],o));null!==o.am&&(o.hours=o.hours%12+(o.am?0:12));return new Date(o.year,o.month,o.day,o.hours,o.minutes,o.seconds)}spansToXML(){}stringFromStream(){}xmlToSpans(){}}globalThis.pdfjsScripting={initSandbox:function initSandbox(e){delete globalThis.pdfjsScripting;const t=globalThis.callExternalFunction;delete globalThis.callExternalFunction;const r=globalThis.eval.bind(globalThis),send=e=>t("send",[e]),{data:i}=e,n=Object.create(null),o={userActivation:!1,disablePrinting:!1,disableSaving:!1};let a=null;const s=new Doc({...i.docInfo,send,globalEval:r,appObjects:n,userActivationData:o,calculateNow:()=>a.calculateNow()});a=new EventDispatcher(s,i.calculationOrder,n,t,o);const c=new App({...i.appInfo,send,globalEval:r,externalCall:t,doc:s,userActivationData:o}),u=new Util,getTerminalChildren=e=>lr.getTerminalChildren(s,e);for(const[e,t]of createMap(i.objects)){const i=[];let o=null;for(const e of t)""!==e.type?i.push(e):o=e;let a=o;if(i.length>0){a=i[0];a.send=send}a.globalEval=r;a.sendError=send;a.fieldPath=e;a.appObjects=n;a.util=u;a.getTerminalChildren=getTerminalChildren;const c=exposeObject(new Field(a,i.slice(1)));lr.addField(s,e,c);for(const e of t)n[e.id]=c;o&&(n[o.id]=c)}const l=exposeObject(new Color,!0);globalThis.event=null;globalThis.global=Object.create(null);globalThis.app=exposeObject(c,!0);globalThis.color=l;globalThis.console=exposeObject(new Console({send}),!0);globalThis.util=exposeObject(u,!0);globalThis.border=Pt;globalThis.cursor=Mt;globalThis.display=jt;globalThis.font=Vt;globalThis.highlight=Nt;globalThis.position=Rt;globalThis.scaleHow=qt;globalThis.scaleWhen=zt;globalThis.style=Ht;globalThis.trans=Wt;globalThis.zoomtype=Lt;globalThis.ADBE={Reader_Value_Asked:!0,Viewer_Value_Asked:!0};const h=new AForm(s,c,u,l);for(const e of Object.getOwnPropertyNames(AForm.prototype))"constructor"!==e&&(globalThis[e]=h[e].bind(h));for(const[e,t]of Object.entries($t))Object.defineProperty(globalThis,e,{value:t,writable:!1});Object.defineProperties(globalThis,{ColorConvert:{value:l.convert.bind(l),writable:!0},ColorEqual:{value:l.equal.bind(l),writable:!0}});const d=Object.create(null);for(const e of Object.getOwnPropertyNames(Doc.prototype)){if("constructor"===e)continue;const t=Object.getOwnPropertyDescriptor(Doc.prototype,e);t.get?d[e]={get:t.get.bind(s),set:t.set.bind(s)}:d[e]={value:Doc.prototype[e].bind(s)}}Object.defineProperties(globalThis,d);!function useNativeToStringForPublicFunctions(){const e=Function.prototype.toString,t=app_utils_uncurryThis(WeakSet.prototype.has),[r,i]=Tt(e,e,[]).split("toString"),{toString:n}={toString(){return t(Dt,this)?`${r}${this.name}${i}`:Tt(e,this,[])}};Dt.add(n);Object.defineProperty(Function.prototype,"toString",{value:n,writable:!0,configurable:!0})}();const p={dispatchEvent:e=>a.dispatch(e),timeoutCb:e=>tr.evalCallback(c,e)};return(e,t)=>{try{p[e](t)}catch(e){send(serializeError(e))}}}}})();'];t.push("delete dump;");let r=!1,n=0;try{const i=this.support.exportValueToSandbox(e);t.push(`pdfjsScripting.initSandbox({ data: ${i} })`);n=this._module.stringToNewUTF8(t.join("\n"));r=!!this._module.ccall("init","number",["number","number"],[n,this._alertOnError])}catch(e){console.error(e)}finally{n&&this._module.ccall("free","number",["number"],[n])}if(!r){this.nukeSandbox();throw new Error("Cannot start sandbox")}this.support.commFun=this._module.cwrap("commFun",null,["string","string"])}dispatchEvent(e){this.support?.callSandboxFunction("dispatchEvent",e)}dumpMemoryUse(){this._module?.ccall("dumpMemoryUse",null,[])}nukeSandbox(){if(null!==this._module){this.support.destroy();this.support=null;this._module.ccall("nukeSandbox",null,[]);this._module=null}}evalForTesting(e,t){throw new Error("Not implemented: evalForTesting")}}async function QuickJSSandbox(e="../web/wasm/"){const{default:t}=await(import(
/*webpackIgnore: true*/
/*@vite-ignore*/
`${e}quickjs-eval.js`)),r=await t();return new Sandbox(window,r)}globalThis.pdfjsSandbox={QuickJSSandbox};export{QuickJSSandbox};