FastAPI backend (Python 3.11, MSSQL ODBC for SambaPOS, Azure DI OCR),
kitchen_db on central PG. React/TS/Vite frontend with navy sidebar layout.
Backend: auth.py (APP_SLUG=kitchen, SimpleNamespace — archive routes use
.kitchen_id/.is_admin without modification), main.py (51 migrations, scheduler,
internal router for KDS bookings feed), api/internal.py, full archive API
(31 routers: invoices, recipes, menus, sambapos, resos, newbook, disputes,
purchase_orders, etc.), models, migrations, OCR pipeline.
kitchen_id pinned to 1 (B1 — single hotel).
Frontend: AuthGate (app=kitchen, token shim for archive compat — B5b pending),
Layout (navy sidebar, 6 sections, Lucide icons, teal --app-primary),
App.tsx (Outlet pattern, UploadApp outside Layout), index.css (full :root block).
strict: false — archive components have type issues; build clean.
Note: 45 archive components call fetch('/api/...') without /kitchen/ prefix
(B5b). Runtime 404s; deferred until after initial testing.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
No EOL
117 KiB
JavaScript
28 lines
No EOL
117 KiB
JavaScript
/**
|
||
* @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 = 5.7.284
|
||
* pdfjsBuild = 7e5b36c2d
|
||
*/var t={9306(t,e,r){var n=r(4901),i=r(6823),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not a function")}},8551(t,e,r){var n=r(34),i=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not an object")}},9617(t,e,r){var n=r(5397),i=r(5610),o=r(6198),createMethod=function(t){return function(e,r,s){var a=n(e),u=o(a);if(0===u)return!t&&-1;var l,c=i(s,u);if(t&&r!=r){for(;u>c;)if((l=a[c++])!=l)return!0}else for(;u>c;c++)if((t||c in a)&&a[c]===r)return t||c||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},4527(t,e,r){var n=r(3724),i=r(4376),o=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(i(t)&&!s(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},7680(t,e,r){var n=r(9504);t.exports=n([].slice)},2195(t,e,r){var n=r(9504),i=n({}.toString),o=n("".slice);t.exports=function(t){return o(i(t),8,-1)}},6955(t,e,r){var n=r(2140),i=r(4901),o=r(2195),s=r(8227)("toStringTag"),a=Object,u="Arguments"===o(function(){return arguments}());t.exports=n?o:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?r:u?o(e):"Object"===(n=o(e))&&i(e.callee)?"Arguments":n}},7740(t,e,r){var n=r(9297),i=r(5031),o=r(7347),s=r(4913);t.exports=function(t,e,r){for(var a=i(e),u=s.f,l=o.f,c=0;c<a.length;c++){var h=a[c];n(t,h)||r&&n(r,h)||u(t,h,l(e,h))}}},6699(t,e,r){var n=r(3724),i=r(4913),o=r(6980);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){t[e]=r;return t}},6980(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6840(t,e,r){var n=r(4901),i=r(4913),o=r(283),s=r(9433);t.exports=function(t,e,r,a){a||(a={});var u=a.enumerable,l=void 0!==a.name?a.name:e;n(r)&&o(r,l,a);if(a.global)u?t[e]=r:s(e,r);else{try{a.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},9433(t,e,r){var n=r(4576),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},3724(t,e,r){var n=r(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055(t,e,r){var n=r(4576),i=r(34),o=n.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},6837(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw new e("Maximum allowed index exceeded");return t}},8727(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839(t,e,r){var n=r(4576).navigator,i=n&&n.userAgent;t.exports=i?String(i):""},9519(t,e,r){var n,i,o=r(4576),s=r(2839),a=o.process,u=o.Deno,l=a&&a.versions||u&&u.version,c=l&&l.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1]));!i&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(i=+n[1]);t.exports=i},6518(t,e,r){var n=r(4576),i=r(7347).f,o=r(6699),s=r(6840),a=r(9433),u=r(7740),l=r(2796);t.exports=function(t,e){var r,c,h,d,p,f=t.target,g=t.global,m=t.stat;if(r=g?n:m?n[f]||a(f,{}):n[f]&&n[f].prototype)for(c in e){d=e[c];h=t.dontCallGetSet?(p=i(r,c))&&p.value:r[c];if(!l(g?c:f+(m?".":"#")+c,t.forced)&&void 0!==h){if(typeof d==typeof h)continue;u(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0);s(r,c,d,t)}}},9039(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},8745(t,e,r){var n=r(616),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},616(t,e,r){var n=r(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565(t,e,r){var n=r(616),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},350(t,e,r){var n=r(3724),i=r(9297),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function something(){}.name,l=a&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:l}},9504(t,e,r){var n=r(616),i=Function.prototype,o=i.call,s=n&&i.bind.bind(o,o);t.exports=n?s:function(t){return function(){return o.apply(t,arguments)}}},7751(t,e,r){var n=r(4576),i=r(4901);t.exports=function(t,e){return arguments.length<2?(r=n[t],i(r)?r:void 0):n[t]&&n[t][e];var r}},5966(t,e,r){var n=r(9306),i=r(4117);t.exports=function(t,e){var r=t[e];return i(r)?void 0:n(r)}},4576(t){var check=function(t){return t&&t.Math===Math&&t};t.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")()},9297(t,e,r){var n=r(9504),i=r(8981),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(t,e){return o(i(t),e)}},421(t){t.exports={}},5917(t,e,r){var n=r(3724),i=r(9039),o=r(4055);t.exports=!n&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},7055(t,e,r){var n=r(9504),i=r(9039),o=r(2195),s=Object,a=n("".split);t.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"===o(t)?a(t,""):s(t)}:s},3706(t,e,r){var n=r(9504),i=r(4901),o=r(7629),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)});t.exports=o.inspectSource},1181(t,e,r){var n,i,o,s=r(8622),a=r(4576),u=r(34),l=r(6699),c=r(9297),h=r(7629),d=r(6119),p=r(421),f="Object already initialized",g=a.TypeError,m=a.WeakMap;if(s||h.state){var _=h.state||(h.state=new m);_.get=_.get;_.has=_.has;_.set=_.set;n=function(t,e){if(_.has(t))throw new g(f);e.facade=t;_.set(t,e);return e};i=function(t){return _.get(t)||{}};o=function(t){return _.has(t)}}else{var b=d("state");p[b]=!0;n=function(t,e){if(c(t,b))throw new g(f);e.facade=t;l(t,b,e);return e};i=function(t){return c(t,b)?t[b]:{}};o=function(t){return c(t,b)}}t.exports={set:n,get:i,has:o,enforce:function(t){return o(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=i(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return r}}}},4376(t,e,r){var n=r(2195);t.exports=Array.isArray||function isArray(t){return"Array"===n(t)}},4901(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796(t,e,r){var n=r(9039),i=r(4901),o=/#|\.prototype\./,isForced=function(t,e){var r=a[s(t)];return r===l||r!==u&&(i(e)?n(e):!!e)},s=isForced.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=isForced.data={},u=isForced.NATIVE="N",l=isForced.POLYFILL="P";t.exports=isForced},4117(t){t.exports=function(t){return null==t}},34(t,e,r){var n=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},6395(t){t.exports=!1},5810(t,e,r){var n=r(34),i=r(1181).get;t.exports=function isRawJSON(t){if(!n(t))return!1;var e=i(t);return!!e&&"RawJSON"===e.type}},757(t,e,r){var n=r(7751),i=r(4901),o=r(1625),s=r(7040),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&o(e.prototype,a(t))}},6198(t,e,r){var n=r(8014);t.exports=function(t){return n(t.length)}},283(t,e,r){var n=r(9504),i=r(9039),o=r(4901),s=r(9297),a=r(3724),u=r(350).CONFIGURABLE,l=r(3706),c=r(1181),h=c.enforce,d=c.get,p=String,f=Object.defineProperty,g=n("".slice),m=n("".replace),_=n([].join),b=a&&!i(function(){return 8!==f(function(){},"length",{value:8}).length}),v=String(String).split("String"),y=t.exports=function(t,e,r){"Symbol("===g(p(e),0,7)&&(e="["+m(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]");r&&r.getter&&(e="get "+e);r&&r.setter&&(e="set "+e);(!s(t,"name")||u&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e);b&&r&&s(r,"arity")&&t.length!==r.arity&&f(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=h(t);s(n,"source")||(n.source=_(v,"string"==typeof e?e:""));return t};Function.prototype.toString=y(function toString(){return o(this)&&d(this).source||l(this)},"toString")},2248(t,e,r){var n=r(9504),i=Map.prototype;t.exports={Map,set:n(i.set),get:n(i.get),has:n(i.has),remove:n(i.delete),proto:i}},741(t){var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function trunc(t){var n=+t;return(n>0?r:e)(n)}},7819(t,e,r){var n=r(9039);t.exports=!n(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})},4913(t,e,r){var n=r(3724),i=r(5917),o=r(8686),s=r(8551),a=r(6969),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";e.f=n?o?function defineProperty(t,e,r){s(t);e=a(e);s(r);if("function"==typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]){var n=c(t,e);if(n&&n[p]){t[e]=r.value;r={configurable:d in r?r[d]:n[d],enumerable:h in r?r[h]:n[h],writable:!1}}}return l(t,e,r)}:l:function defineProperty(t,e,r){s(t);e=a(e);s(r);if(i)try{return l(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new u("Accessors not supported");"value"in r&&(t[e]=r.value);return t}},7347(t,e,r){var n=r(3724),i=r(9565),o=r(8773),s=r(6980),a=r(5397),u=r(6969),l=r(9297),c=r(5917),h=Object.getOwnPropertyDescriptor;e.f=n?h:function getOwnPropertyDescriptor(t,e){t=a(t);e=u(e);if(c)try{return h(t,e)}catch(t){}if(l(t,e))return s(!i(o.f,t,e),t[e])}},8480(t,e,r){var n=r(1828),i=r(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return n(t,i)}},3717(t,e){e.f=Object.getOwnPropertySymbols},1625(t,e,r){var n=r(9504);t.exports=n({}.isPrototypeOf)},1828(t,e,r){var n=r(9504),i=r(9297),o=r(5397),s=r(9617).indexOf,a=r(421),u=n([].push);t.exports=function(t,e){var r,n=o(t),l=0,c=[];for(r in n)!i(a,r)&&i(n,r)&&u(c,r);for(;e.length>l;)i(n,r=e[l++])&&(~s(c,r)||u(c,r));return c}},8773(t,e){var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function propertyIsEnumerable(t){var e=n(this,t);return!!e&&e.enumerable}:r},4270(t,e,r){var n=r(9565),i=r(4901),o=r(34),s=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&i(r=t.toString)&&!o(a=n(r,t)))return a;if(i(r=t.valueOf)&&!o(a=n(r,t)))return a;if("string"!==e&&i(r=t.toString)&&!o(a=n(r,t)))return a;throw new s("Can't convert object to primitive value")}},5031(t,e,r){var n=r(7751),i=r(9504),o=r(8480),s=r(3717),a=r(8551),u=i([].concat);t.exports=n("Reflect","ownKeys")||function ownKeys(t){var e=o.f(a(t)),r=s.f;return r?u(e,r(t)):e}},8235(t,e,r){var n=r(9504),i=r(9297),o=SyntaxError,s=parseInt,a=String.fromCharCode,u=n("".charAt),l=n("".slice),c=n(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},d=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var r=!0,n="";e<t.length;){var f=u(t,e);if("\\"===f){var g=l(t,e,e+2);if(i(h,g)){n+=h[g];e+=2}else{if("\\u"!==g)throw new o('Unknown escape sequence: "'+g+'"');var m=l(t,e+=2,e+4);if(!c(d,m))throw new o("Bad Unicode escape at: "+e);n+=a(s(m,16));e+=4}}else{if('"'===f){r=!1;e++;break}if(c(p,f))throw new o("Bad control character in string literal at: "+e);n+=f;e++}}if(r)throw new o("Unterminated string at: "+e);return{value:n,end:e}}},7750(t,e,r){var n=r(4117),i=TypeError;t.exports=function(t){if(n(t))throw new i("Can't call method on "+t);return t}},6119(t,e,r){var n=r(5745),i=r(3392),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},7629(t,e,r){var n=r(6395),i=r(4576),o=r(9433),s="__core-js_shared__",a=t.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:n?"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.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745(t,e,r){var n=r(7629);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},4495(t,e,r){var n=r(9519),i=r(9039),o=r(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},5610(t,e,r){var n=r(1291),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},5397(t,e,r){var n=r(7055),i=r(7750);t.exports=function(t){return n(i(t))}},1291(t,e,r){var n=r(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8014(t,e,r){var n=r(1291),i=Math.min;t.exports=function(t){var e=n(t);return e>0?i(e,9007199254740991):0}},8981(t,e,r){var n=r(7750),i=Object;t.exports=function(t){return i(n(t))}},2777(t,e,r){var n=r(9565),i=r(34),o=r(757),s=r(5966),a=r(4270),u=r(8227),l=TypeError,c=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var r,u=s(t,c);if(u){void 0===e&&(e="default");r=n(u,t,e);if(!i(r)||o(r))return r;throw new l("Can't convert object to primitive value")}void 0===e&&(e="number");return a(t,e)}},6969(t,e,r){var n=r(2777),i=r(757);t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},2140(t,e,r){var n={};n[r(8227)("toStringTag")]="z";t.exports="[object z]"===String(n)},655(t,e,r){var n=r(6955),i=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},6823(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392(t,e,r){var n=r(9504),i=0,o=Math.random(),s=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},7040(t,e,r){var n=r(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686(t,e,r){var n=r(3724),i=r(9039);t.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8622(t,e,r){var n=r(4576),i=r(4901),o=n.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},8227(t,e,r){var n=r(4576),i=r(5745),o=r(9297),s=r(3392),a=r(4495),u=r(7040),l=n.Symbol,c=i("wks"),h=u?l.for||l:l&&l.withoutSetter||s;t.exports=function(t){o(c,t)||(c[t]=a&&o(l,t)?l[t]:h("Symbol."+t));return c[t]}},4114(t,e,r){var n=r(6518),i=r(8981),o=r(6198),s=r(4527),a=r(6837);n({target:"Array",proto:!0,arity:1,forced:r(9039)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function push(t){var e=i(this),r=o(e),n=arguments.length;a(r+n);for(var u=0;u<n;u++){e[r]=arguments[u];r++}s(e,r);return r}})},3110(t,e,r){var n=r(6518),i=r(7751),o=r(8745),s=r(9565),a=r(9504),u=r(9039),l=r(4376),c=r(4901),h=r(5810),d=r(757),p=r(2195),f=r(655),g=r(7680),m=r(8235),_=r(3392),b=r(4495),v=r(7819),y=String,w=i("JSON","stringify"),x=a(/./.exec),S=a("".charAt),O=a("".charCodeAt),I=a("".replace),A=a("".slice),C=a([].push),E=a(1.1.toString),F=/[\uD800-\uDFFF]/g,j=/^[\uD800-\uDBFF]$/,T=/^[\uDC00-\uDFFF]$/,P=_(),k=P.length,M=!b||u(function(){var t=i("Symbol")("stringify detection");return"[null]"!==w([t])||"{}"!==w({a:t})||"{}"!==w(Object(t))}),D=u(function(){return'"\\udf06\\ud834"'!==w("\udf06\ud834")||'"\\udead"'!==w("\udead")}),N=M?function(t,e){var r=g(arguments),n=getReplacerFunction(e);if(c(n)||void 0!==t&&!d(t)){r[1]=function(t,e){c(n)&&(e=s(n,this,y(t),e));if(!d(e))return e};return o(w,null,r)}}:w,fixIllFormedJSON=function(t,e,r){var n=S(r,e-1),i=S(r,e+1);return x(j,t)&&!x(T,i)||x(T,t)&&!x(j,n)?"\\u"+E(O(t,0),16):t},getReplacerFunction=function(t){if(c(t))return t;if(l(t)){for(var e=t.length,r=[],n=0;n<e;n++){var i=t[n];"string"==typeof i?C(r,i):"number"!=typeof i&&"Number"!==p(i)&&"String"!==p(i)||C(r,f(i))}var o=r.length,s=!0;return function(t,e){if(s){s=!1;return e}if(l(this))return e;for(var n=0;n<o;n++)if(r[n]===t)return e}}};w&&n({target:"JSON",stat:!0,arity:3,forced:M||D||!v},{stringify:function stringify(t,e,r){var n=getReplacerFunction(e),i=[],o=N(t,function(t,e){var r=c(n)?s(n,this,y(t),e):e;return!v&&h(r)?P+(C(i,r.rawJSON)-1):r},r);if("string"!=typeof o)return o;D&&(o=I(o,F,fixIllFormedJSON));if(v)return o;for(var a="",u=o.length,l=0;l<u;l++){var d=S(o,l);if('"'===d){var p=m(o,++l).end-1,f=A(o,l,p);a+=A(f,0,k)===P?i[A(f,k)]:'"'+f+'"';l=p}else a+=d}return a}})},2731(t,e,r){var n=r(6518),i=r(9306),o=r(2248),s=r(6395),a=o.get,u=o.has,l=o.set;n({target:"Map",proto:!0,real:!0,forced:s},{getOrInsertComputed:function getOrInsertComputed(t,e){var r=u(this,t);i(e);if(r)return a(this,t);0===t&&1/t==-1/0&&(t=0);var n=e(t);l(this,t,n);return n}})},5367(t,e,r){var n=r(6518),i=r(2248),o=r(6395),s=i.get,a=i.has,u=i.set;n({target:"Map",proto:!0,real:!0,forced:o},{getOrInsert:function getOrInsert(t,e){if(a(this,t))return s(this,t);u(this,t,e);return e}})}},e={};function __webpack_require__(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={exports:{}};t[r].call(i.exports,i,i.exports,__webpack_require__);return i.exports}__webpack_require__.d=(t,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})};__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);__webpack_require__(4114),__webpack_require__(3110),__webpack_require__(5367),__webpack_require__(2731);class SandboxSupportBase{constructor(t){this.win=t;this.timeoutIds=new Map;this.commFun=null}destroy(){this.commFun=null;for(const t of this.timeoutIds.values())this.win.clearTimeout(t);this.timeoutIds=null}exportValueToSandbox(t){throw new Error("Not implemented")}importValueFromSandbox(t){throw new Error("Not implemented")}createErrorForSandbox(t){throw new Error("Not implemented")}callSandboxFunction(t,e){if(this.commFun)try{e=this.exportValueToSandbox(e);this.commFun(t,e)}catch(t){this.win.console.error(t)}}createSandboxExternals(){const t={setTimeout:(t,e)=>{if("number"!=typeof t||"number"!=typeof e)return;0===t&&this.win.clearTimeout(this.timeoutIds.get(t));const r=this.win.setTimeout(()=>{this.timeoutIds.delete(t);this.callSandboxFunction("timeoutCb",{callbackId:t,interval:!1})},e);this.timeoutIds.set(t,r)},clearTimeout:t=>{this.win.clearTimeout(this.timeoutIds.get(t));this.timeoutIds.delete(t)},setInterval:(t,e)=>{if("number"!=typeof t||"number"!=typeof e)return;const r=this.win.setInterval(()=>{this.callSandboxFunction("timeoutCb",{callbackId:t,interval:!0})},e);this.timeoutIds.set(t,r)},clearInterval:t=>{this.win.clearInterval(this.timeoutIds.get(t));this.timeoutIds.delete(t)},alert:t=>{"string"==typeof t&&this.win.alert(t)},confirm:t=>"string"==typeof t&&this.win.confirm(t),prompt:(t,e)=>"string"!=typeof t||"string"!=typeof e?null:this.win.prompt(t,e),parseURL:t=>{const e=new this.win.URL(t);return Object.fromEntries(["hash","host","hostname","href","origin","password","pathname","port","protocol","search","searchParams","username"].map(t=>[t,e[t].toString()]))},send:t=>{if(!t)return;const e=new this.win.CustomEvent("updatefromsandbox",{detail:this.importValueFromSandbox(t)});this.win.dispatchEvent(e)}};Object.setPrototypeOf(t,null);return(e,r)=>{try{const n=t[e](...r);return this.exportValueToSandbox(n)}catch(t){throw this.createErrorForSandbox(t?.toString()??"")}}}}class SandboxSupport extends SandboxSupportBase{exportValueToSandbox(t){return JSON.stringify(t)}importValueFromSandbox(t){return t}createErrorForSandbox(t){return new Error(t)}}class Sandbox{constructor(t,e){this.support=new SandboxSupport(t,this);e.externalCall=this.support.createSandboxExternals();this._module=e;this._alertOnError=0}create(t){const e=['var t={9306(t,e,r){var n=r(4901),i=r(6823),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not a function")}},7080(t,e,r){var n=r(4402).has;t.exports=function(t){n(t);return t}},4328(t,e,r){var n=r(4995),i=new n.WeakMap,o=n.set,s=n.remove;t.exports=function(t){o(i,t,1);s(i,t);return t}},6557(t,e,r){var n=r(4995).has;t.exports=function(t){n(t);return t}},6469(t,e,r){var n=r(8227),i=r(2360),o=r(4913).f,s=n("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:i(null)});t.exports=function(t){a[s][t]=!0}},679(t,e,r){var n=r(1625),i=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new i("Incorrect invocation")}},8551(t,e,r){var n=r(34),i=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not an object")}},9617(t,e,r){var n=r(5397),i=r(5610),o=r(6198),createMethod=function(t){return function(e,r,s){var a=n(e),l=o(a);if(0===l)return!t&&-1;var u,c=i(s,l);if(t&&r!=r){for(;l>c;)if((u=a[c++])!=u)return!0}else for(;l>c;c++)if((t||c in a)&&a[c]===r)return t||c||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},4527(t,e,r){var n=r(3724),i=r(4376),o=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(i(t)&&!s(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},7680(t,e,r){var n=r(9504);t.exports=n([].slice)},6319(t,e,r){var n=r(8551),i=r(9539);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){i(t,"throw",e)}}},2195(t,e,r){var n=r(9504),i=n({}.toString),o=n("".slice);t.exports=function(t){return o(i(t),8,-1)}},6955(t,e,r){var n=r(2140),i=r(4901),o=r(2195),s=r(8227)("toStringTag"),a=Object,l="Arguments"===o(function(){return arguments}());t.exports=n?o:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?r:l?o(e):"Object"===(n=o(e))&&i(e.callee)?"Arguments":n}},7740(t,e,r){var n=r(9297),i=r(5031),o=r(7347),s=r(4913);t.exports=function(t,e,r){for(var a=i(e),l=s.f,u=o.f,c=0;c<a.length;c++){var h=a[c];n(t,h)||r&&n(r,h)||l(t,h,u(e,h))}}},2211(t,e,r){var n=r(9039);t.exports=!n(function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype})},2529(t){t.exports=function(t,e){return{value:t,done:e}}},6699(t,e,r){var n=r(3724),i=r(4913),o=r(6980);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){t[e]=r;return t}},6980(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4659(t,e,r){var n=r(3724),i=r(4913),o=r(6980);t.exports=function(t,e,r){n?i.f(t,e,o(0,r)):t[e]=r}},2106(t,e,r){var n=r(283),i=r(4913);t.exports=function(t,e,r){r.get&&n(r.get,e,{getter:!0});r.set&&n(r.set,e,{setter:!0});return i.f(t,e,r)}},6840(t,e,r){var n=r(4901),i=r(4913),o=r(283),s=r(9433);t.exports=function(t,e,r,a){a||(a={});var l=a.enumerable,u=void 0!==a.name?a.name:e;n(r)&&o(r,u,a);if(a.global)l?t[e]=r:s(e,r);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},6279(t,e,r){var n=r(6840);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},9433(t,e,r){var n=r(4576),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},3724(t,e,r){var n=r(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055(t,e,r){var n=r(4576),i=r(34),o=n.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},6837(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw new e("Maximum allowed index exceeded");return t}},8727(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839(t,e,r){var n=r(4576).navigator,i=n&&n.userAgent;t.exports=i?String(i):""},9519(t,e,r){var n,i,o=r(4576),s=r(2839),a=o.process,l=o.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1]));!i&&s&&(!(n=s.match(/Edge\\/(\\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\\/(\\d+)/))&&(i=+n[1]);t.exports=i},6518(t,e,r){var n=r(4576),i=r(7347).f,o=r(6699),s=r(6840),a=r(9433),l=r(7740),u=r(2796);t.exports=function(t,e){var r,c,h,d,p,f=t.target,g=t.global,_=t.stat;if(r=g?n:_?n[f]||a(f,{}):n[f]&&n[f].prototype)for(c in e){d=e[c];h=t.dontCallGetSet?(p=i(r,c))&&p.value:r[c];if(!u(g?c:f+(_?".":"#")+c,t.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0);s(r,c,d,t)}}},9039(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},8745(t,e,r){var n=r(616),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},6080(t,e,r){var n=r(7476),i=r(9306),o=r(616),s=n(n.bind);t.exports=function(t,e){i(t);return void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},616(t,e,r){var n=r(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565(t,e,r){var n=r(616),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},350(t,e,r){var n=r(3724),i=r(9297),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=i(o,"name"),l=a&&"something"===function something(){}.name,u=a&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:u}},6706(t,e,r){var n=r(9504),i=r(9306);t.exports=function(t,e,r){try{return n(i(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},7476(t,e,r){var n=r(2195),i=r(9504);t.exports=function(t){if("Function"===n(t))return i(t)}},9504(t,e,r){var n=r(616),i=Function.prototype,o=i.call,s=n&&i.bind.bind(o,o);t.exports=n?s:function(t){return function(){return o.apply(t,arguments)}}},7751(t,e,r){var n=r(4576),i=r(4901);t.exports=function(t,e){return arguments.length<2?(r=n[t],i(r)?r:void 0):n[t]&&n[t][e];var r}},1767(t){t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},851(t,e,r){var n=r(6955),i=r(5966),o=r(4117),s=r(6269),a=r(8227)("iterator");t.exports=function(t){if(!o(t))return i(t,a)||i(t,"@@iterator")||s[n(t)]}},81(t,e,r){var n=r(9565),i=r(9306),o=r(8551),s=r(6823),a=r(851),l=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(i(r))return o(n(r,t));throw new l(s(t)+" is not iterable")}},5966(t,e,r){var n=r(9306),i=r(4117);t.exports=function(t,e){var r=t[e];return i(r)?void 0:n(r)}},3789(t,e,r){var n=r(9306),i=r(8551),o=r(9565),s=r(1291),a=r(1767),l="Invalid size",u=RangeError,c=TypeError,h=Math.max,SetRecord=function(t,e){this.set=t;this.size=h(e,0);this.has=n(t.has);this.keys=n(t.keys)};SetRecord.prototype={getIterator:function(){return a(i(o(this.keys,this.set)))},includes:function(t){return o(this.has,this.set,t)}};t.exports=function(t){i(t);var e=+t.size;if(e!=e)throw new c(l);var r=s(e);if(r<0)throw new u(l);return new SetRecord(t,r)}},4576(t){var check=function(t){return t&&t.Math===Math&&t};t.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")()},9297(t,e,r){var n=r(9504),i=r(8981),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(t,e){return o(i(t),e)}},421(t){t.exports={}},397(t,e,r){var n=r(7751);t.exports=n("document","documentElement")},5917(t,e,r){var n=r(3724),i=r(9039),o=r(4055);t.exports=!n&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},7055(t,e,r){var n=r(9504),i=r(9039),o=r(2195),s=Object,a=n("".split);t.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"===o(t)?a(t,""):s(t)}:s},3706(t,e,r){var n=r(9504),i=r(4901),o=r(7629),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)});t.exports=o.inspectSource},1181(t,e,r){var n,i,o,s=r(8622),a=r(4576),l=r(34),u=r(6699),c=r(9297),h=r(7629),d=r(6119),p=r(421),f="Object already initialized",g=a.TypeError,_=a.WeakMap;if(s||h.state){var m=h.state||(h.state=new _);m.get=m.get;m.has=m.has;m.set=m.set;n=function(t,e){if(m.has(t))throw new g(f);e.facade=t;m.set(t,e);return e};i=function(t){return m.get(t)||{}};o=function(t){return m.has(t)}}else{var b=d("state");p[b]=!0;n=function(t,e){if(c(t,b))throw new g(f);e.facade=t;u(t,b,e);return e};i=function(t){return c(t,b)?t[b]:{}};o=function(t){return c(t,b)}}t.exports={set:n,get:i,has:o,enforce:function(t){return o(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!l(e)||(r=i(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return r}}}},4209(t,e,r){var n=r(8227),i=r(6269),o=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[o]===t)}},4376(t,e,r){var n=r(2195);t.exports=Array.isArray||function isArray(t){return"Array"===n(t)}},4901(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796(t,e,r){var n=r(9039),i=r(4901),o=/#|\\.prototype\\./,isForced=function(t,e){var r=a[s(t)];return r===u||r!==l&&(i(e)?n(e):!!e)},s=isForced.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=isForced.data={},l=isForced.NATIVE="N",u=isForced.POLYFILL="P";t.exports=isForced},4117(t){t.exports=function(t){return null==t}},34(t,e,r){var n=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},6395(t){t.exports=!1},5810(t,e,r){var n=r(34),i=r(1181).get;t.exports=function isRawJSON(t){if(!n(t))return!1;var e=i(t);return!!e&&"RawJSON"===e.type}},757(t,e,r){var n=r(7751),i=r(4901),o=r(1625),s=r(7040),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&o(e.prototype,a(t))}},507(t,e,r){var n=r(9565);t.exports=function(t,e,r){for(var i,o,s=r?t:t.iterator,a=t.next;!(i=n(a,s)).done;)if(void 0!==(o=e(i.value)))return o}},2652(t,e,r){var n=r(6080),i=r(9565),o=r(8551),s=r(6823),a=r(4209),l=r(6198),u=r(1625),c=r(81),h=r(851),d=r(9539),p=TypeError,Result=function(t,e){this.stopped=t;this.result=e},f=Result.prototype;t.exports=function(t,e,r){var g,_,m,b,y,v,w,x=r&&r.that,A=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),I=!(!r||!r.IS_ITERATOR),C=!(!r||!r.INTERRUPTED),O=n(e,x),stop=function(t){var e=g;g=void 0;e&&d(e,"normal");return new Result(!0,t)},callFn=function(t){if(A){o(t);return C?O(t[0],t[1],stop):O(t[0],t[1])}return C?O(t,stop):O(t)};if(S)g=t.iterator;else if(I)g=t;else{if(!(_=h(t)))throw new p(s(t)+" is not iterable");if(a(_)){for(m=0,b=l(t);b>m;m++)if((y=callFn(t[m]))&&u(f,y))return y;return new Result(!1)}g=c(t,_)}v=S?t.next:g.next;for(;!(w=i(v,g)).done;){var E=w.value;try{y=callFn(E)}catch(t){if(!g)throw t;d(g,"throw",t)}if("object"==typeof y&&y&&u(f,y))return y}return new Result(!1)}},1385(t,e,r){var n=r(9539);t.exports=function(t,e,r){for(var i=t.length-1;i>=0;i--)if(void 0!==t[i])try{r=n(t[i].iterator,e,r)}catch(t){e="throw";r=t}if("throw"===e)throw r;return r}},9539(t,e,r){var n=r(9565),i=r(8551),o=r(5966);t.exports=function(t,e,r){var s,a;i(t);try{if(!(s=o(t,"return"))){if("throw"===e)throw r;return r}s=n(s,t)}catch(t){a=!0;s=t}if("throw"===e)throw r;if(a)throw s;i(s);return r}},9462(t,e,r){var n=r(9565),i=r(2360),o=r(6699),s=r(6279),a=r(8227),l=r(1181),u=r(5966),c=r(7657).IteratorPrototype,h=r(2529),d=r(9539),p=r(1385),f=a("toStringTag"),g="IteratorHelper",_="WrapForValidIterator",m="normal",b="throw",y=l.set,createIteratorProxyPrototype=function(t){var e=l.getterFor(t?_:g);return s(i(c),{next:function next(){var r=e(this);if(t)return r.nextHandler();if(r.done)return h(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:h(n,r.done)}catch(t){r.done=!0;throw t}},return:function(){var r=e(this),i=r.iterator,o=r.done;r.done=!0;if(t){var s=u(i,"return");return s?n(s,i):h(void 0,!0)}if(o)return h(void 0,!0);if(r.inner)try{d(r.inner.iterator,m)}catch(t){return d(i,b,t)}if(r.openIters)try{p(r.openIters,m)}catch(t){if(i)return d(i,b,t);throw t}i&&d(i,m);return h(void 0,!0)}})},v=createIteratorProxyPrototype(!0),w=createIteratorProxyPrototype(!1);o(w,f,"Iterator Helper");t.exports=function(t,e,r){var n=function Iterator(n,i){if(i){i.iterator=n.iterator;i.next=n.next}else i=n;i.type=e?_:g;i.returnHandlerResult=!!r;i.nextHandler=t;i.counter=0;i.done=!1;y(this,i)};n.prototype=e?v:w;return n}},684(t){t.exports=function(t,e){var r="function"==typeof Iterator&&Iterator.prototype[t];if(r)try{r.call({next:null},e).next()}catch(t){return!0}}},4549(t,e,r){var n=r(4576);t.exports=function(t,e){var r=n.Iterator,i=r&&r.prototype,o=i&&i[t],s=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(t){t instanceof e||(s=!1)}if(!s)return o}},7657(t,e,r){var n,i,o,s=r(9039),a=r(4901),l=r(34),u=r(2360),c=r(2787),h=r(6840),d=r(8227),p=r(6395),f=d("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(n=i):g=!0);!l(n)||s(function(){var t={};return n[f].call(t)!==t})?n={}:p&&(n=u(n));a(n[f])||h(n,f,function(){return this});t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},6269(t){t.exports={}},6198(t,e,r){var n=r(8014);t.exports=function(t){return n(t.length)}},283(t,e,r){var n=r(9504),i=r(9039),o=r(4901),s=r(9297),a=r(3724),l=r(350).CONFIGURABLE,u=r(3706),c=r(1181),h=c.enforce,d=c.get,p=String,f=Object.defineProperty,g=n("".slice),_=n("".replace),m=n([].join),b=a&&!i(function(){return 8!==f(function(){},"length",{value:8}).length}),y=String(String).split("String"),v=t.exports=function(t,e,r){"Symbol("===g(p(e),0,7)&&(e="["+_(p(e),/^Symbol\\(([^)]*)\\).*$/,"$1")+"]");r&&r.getter&&(e="get "+e);r&&r.setter&&(e="set "+e);(!s(t,"name")||l&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e);b&&r&&s(r,"arity")&&t.length!==r.arity&&f(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=h(t);s(n,"source")||(n.source=m(y,"string"==typeof e?e:""));return t};Function.prototype.toString=v(function toString(){return o(this)&&d(this).source||u(this)},"toString")},2248(t,e,r){var n=r(9504),i=Map.prototype;t.exports={Map,set:n(i.set),get:n(i.get),has:n(i.has),remove:n(i.delete),proto:i}},741(t){var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function trunc(t){var n=+t;return(n>0?r:e)(n)}},7819(t,e,r){var n=r(9039);t.exports=!n(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})},2360(t,e,r){var n,i=r(8551),o=r(6801),s=r(8727),a=r(421),l=r(397),u=r(4055),c=r(6119),h="prototype",d="script",p=c("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<"+d+">"+t+"</"+d+">"},NullProtoObjectViaActiveX=function(t){t.write(scriptTag(""));t.close();var e=t.parentWindow.Object;t=null;return e},NullProtoObject=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}NullProtoObject="undefined"!=typeof document?document.domain&&n?NullProtoObjectViaActiveX(n):function(){var t,e=u("iframe"),r="java"+d+":";e.style.display="none";l.appendChild(e);e.src=String(r);(t=e.contentWindow.document).open();t.write(scriptTag("document.F=Object"));t.close();return t.F}():NullProtoObjectViaActiveX(n);for(var t=s.length;t--;)delete NullProtoObject[h][s[t]];return NullProtoObject()};a[p]=!0;t.exports=Object.create||function create(t,e){var r;if(null!==t){EmptyConstructor[h]=i(t);r=new EmptyConstructor;EmptyConstructor[h]=null;r[p]=t}else r=NullProtoObject();return void 0===e?r:o.f(r,e)}},6801(t,e,r){var n=r(3724),i=r(8686),o=r(4913),s=r(8551),a=r(5397),l=r(1072);e.f=n&&!i?Object.defineProperties:function defineProperties(t,e){s(t);for(var r,n=a(e),i=l(e),u=i.length,c=0;u>c;)o.f(t,r=i[c++],n[r]);return t}},4913(t,e,r){var n=r(3724),i=r(5917),o=r(8686),s=r(8551),a=r(6969),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";e.f=n?o?function defineProperty(t,e,r){s(t);e=a(e);s(r);if("function"==typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]){var n=c(t,e);if(n&&n[p]){t[e]=r.value;r={configurable:d in r?r[d]:n[d],enumerable:h in r?r[h]:n[h],writable:!1}}}return u(t,e,r)}:u:function defineProperty(t,e,r){s(t);e=a(e);s(r);if(i)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new l("Accessors not supported");"value"in r&&(t[e]=r.value);return t}},7347(t,e,r){var n=r(3724),i=r(9565),o=r(8773),s=r(6980),a=r(5397),l=r(6969),u=r(9297),c=r(5917),h=Object.getOwnPropertyDescriptor;e.f=n?h:function getOwnPropertyDescriptor(t,e){t=a(t);e=l(e);if(c)try{return h(t,e)}catch(t){}if(u(t,e))return s(!i(o.f,t,e),t[e])}},8480(t,e,r){var n=r(1828),i=r(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return n(t,i)}},3717(t,e){e.f=Object.getOwnPropertySymbols},2787(t,e,r){var n=r(9297),i=r(4901),o=r(8981),s=r(6119),a=r(2211),l=s("IE_PROTO"),u=Object,c=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=o(t);if(n(e,l))return e[l];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof u?c:null}},1625(t,e,r){var n=r(9504);t.exports=n({}.isPrototypeOf)},1828(t,e,r){var n=r(9504),i=r(9297),o=r(5397),s=r(9617).indexOf,a=r(421),l=n([].push);t.exports=function(t,e){var r,n=o(t),u=0,c=[];for(r in n)!i(a,r)&&i(n,r)&&l(c,r);for(;e.length>u;)i(n,r=e[u++])&&(~s(c,r)||l(c,r));return c}},1072(t,e,r){var n=r(1828),i=r(8727);t.exports=Object.keys||function keys(t){return n(t,i)}},8773(t,e){var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function propertyIsEnumerable(t){var e=n(this,t);return!!e&&e.enumerable}:r},4270(t,e,r){var n=r(9565),i=r(4901),o=r(34),s=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&i(r=t.toString)&&!o(a=n(r,t)))return a;if(i(r=t.valueOf)&&!o(a=n(r,t)))return a;if("string"!==e&&i(r=t.toString)&&!o(a=n(r,t)))return a;throw new s("Can\'t convert object to primitive value")}},5031(t,e,r){var n=r(7751),i=r(9504),o=r(8480),s=r(3717),a=r(8551),l=i([].concat);t.exports=n("Reflect","ownKeys")||function ownKeys(t){var e=o.f(a(t)),r=s.f;return r?l(e,r(t)):e}},8235(t,e,r){var n=r(9504),i=r(9297),o=SyntaxError,s=parseInt,a=String.fromCharCode,l=n("".charAt),u=n("".slice),c=n(/./.exec),h={\'\\\\"\':\'"\',"\\\\\\\\":"\\\\","\\\\/":"/","\\\\b":"\\b","\\\\f":"\\f","\\\\n":"\\n","\\\\r":"\\r","\\\\t":"\\t"},d=/^[\\da-f]{4}$/i,p=/^[\\u0000-\\u001F]$/;t.exports=function(t,e){for(var r=!0,n="";e<t.length;){var f=l(t,e);if("\\\\"===f){var g=u(t,e,e+2);if(i(h,g)){n+=h[g];e+=2}else{if("\\\\u"!==g)throw new o(\'Unknown escape sequence: "\'+g+\'"\');var _=u(t,e+=2,e+4);if(!c(d,_))throw new o("Bad Unicode escape at: "+e);n+=a(s(_,16));e+=4}}else{if(\'"\'===f){r=!1;e++;break}if(c(p,f))throw new o("Bad control character in string literal at: "+e);n+=f;e++}}if(r)throw new o("Unterminated string at: "+e);return{value:n,end:e}}},7750(t,e,r){var n=r(4117),i=TypeError;t.exports=function(t){if(n(t))throw new i("Can\'t call method on "+t);return t}},9286(t,e,r){var n=r(4402),i=r(8469),o=n.Set,s=n.add;t.exports=function(t){var e=new o;i(t,function(t){s(e,t)});return e}},3440(t,e,r){var n=r(7080),i=r(4402),o=r(9286),s=r(5170),a=r(3789),l=r(8469),u=r(507),c=i.has,h=i.remove;t.exports=function difference(t){var e=n(this),r=a(t),i=o(e);s(i)<=r.size?l(i,function(t){r.includes(t)&&h(i,t)}):u(r.getIterator(),function(t){c(i,t)&&h(i,t)});return i}},4402(t,e,r){var n=r(9504),i=Set.prototype;t.exports={Set,add:n(i.add),has:n(i.has),remove:n(i.delete),proto:i}},8750(t,e,r){var n=r(7080),i=r(4402),o=r(5170),s=r(3789),a=r(8469),l=r(507),u=i.Set,c=i.add,h=i.has;t.exports=function intersection(t){var e=n(this),r=s(t),i=new u;o(e)>r.size?l(r.getIterator(),function(t){h(e,t)&&c(i,t)}):a(e,function(t){r.includes(t)&&c(i,t)});return i}},4449(t,e,r){var n=r(7080),i=r(4402).has,o=r(5170),s=r(3789),a=r(8469),l=r(507),u=r(9539);t.exports=function isDisjointFrom(t){var e=n(this),r=s(t);if(o(e)<=r.size)return!1!==a(e,function(t){if(r.includes(t))return!1},!0);var c=r.getIterator();return!1!==l(c,function(t){if(i(e,t))return u(c.iterator,"normal",!1)})}},3838(t,e,r){var n=r(7080),i=r(5170),o=r(8469),s=r(3789);t.exports=function isSubsetOf(t){var e=n(this),r=s(t);return!(i(e)>r.size)&&!1!==o(e,function(t){if(!r.includes(t))return!1},!0)}},8527(t,e,r){var n=r(7080),i=r(4402).has,o=r(5170),s=r(3789),a=r(507),l=r(9539);t.exports=function isSupersetOf(t){var e=n(this),r=s(t);if(o(e)<r.size)return!1;var u=r.getIterator();return!1!==a(u,function(t){if(!i(e,t))return l(u.iterator,"normal",!1)})}},8469(t,e,r){var n=r(9504),i=r(507),o=r(4402),s=o.Set,a=o.proto,l=n(a.forEach),u=n(a.keys),c=u(new s).next;t.exports=function(t,e,r){return r?i({iterator:u(t),next:c},e):l(t,e)}},4916(t,e,r){var n=r(7751),createSetLike=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},createSetLikeWithInfinitySize=function(t){return{size:t,has:function(){return!0},keys:function(){throw new Error("e")}}};t.exports=function(t,e){var r=n("Set");try{(new r)[t](createSetLike(0));try{(new r)[t](createSetLike(-1));return!1}catch(n){if(!e)return!0;try{(new r)[t](createSetLikeWithInfinitySize(-1/0));return!1}catch(n){return e(new r([1,2])[t](createSetLikeWithInfinitySize(1/0)))}}}catch(t){return!1}}},9835(t){t.exports=function(t){try{var e=new Set,r={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){e.clear();e.add(4);return function(){return{done:!0}}}})}},n=e[t](r);return 1===n.size&&4===n.values().next().value}catch(t){return!1}}},5170(t,e,r){var n=r(6706),i=r(4402);t.exports=n(i.proto,"size","get")||function(t){return t.size}},3650(t,e,r){var n=r(7080),i=r(4402),o=r(9286),s=r(3789),a=r(507),l=i.add,u=i.has,c=i.remove;t.exports=function symmetricDifference(t){var e=n(this),r=s(t).getIterator(),i=o(e);a(r,function(t){u(e,t)?c(i,t):l(i,t)});return i}},4204(t,e,r){var n=r(7080),i=r(4402).add,o=r(9286),s=r(3789),a=r(507);t.exports=function union(t){var e=n(this),r=s(t).getIterator(),l=o(e);a(r,function(t){i(l,t)});return l}},6119(t,e,r){var n=r(5745),i=r(3392),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},7629(t,e,r){var n=r(6395),i=r(4576),o=r(9433),s="__core-js_shared__",a=t.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:n?"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.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745(t,e,r){var n=r(7629);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},4495(t,e,r){var n=r(9519),i=r(9039),o=r(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},5610(t,e,r){var n=r(1291),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},5397(t,e,r){var n=r(7055),i=r(7750);t.exports=function(t){return n(i(t))}},1291(t,e,r){var n=r(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8014(t,e,r){var n=r(1291),i=Math.min;t.exports=function(t){var e=n(t);return e>0?i(e,9007199254740991):0}},8981(t,e,r){var n=r(7750),i=Object;t.exports=function(t){return i(n(t))}},2777(t,e,r){var n=r(9565),i=r(34),o=r(757),s=r(5966),a=r(4270),l=r(8227),u=TypeError,c=l("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var r,l=s(t,c);if(l){void 0===e&&(e="default");r=n(l,t,e);if(!i(r)||o(r))return r;throw new u("Can\'t convert object to primitive value")}void 0===e&&(e="number");return a(t,e)}},6969(t,e,r){var n=r(2777),i=r(757);t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},2140(t,e,r){var n={};n[r(8227)("toStringTag")]="z";t.exports="[object z]"===String(n)},655(t,e,r){var n=r(6955),i=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},6823(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392(t,e,r){var n=r(9504),i=0,o=Math.random(),s=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},7040(t,e,r){var n=r(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686(t,e,r){var n=r(3724),i=r(9039);t.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8622(t,e,r){var n=r(4576),i=r(4901),o=n.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},4995(t,e,r){var n=r(9504),i=WeakMap.prototype;t.exports={WeakMap,set:n(i.set),get:n(i.get),has:n(i.has),remove:n(i.delete)}},8227(t,e,r){var n=r(4576),i=r(5745),o=r(9297),s=r(3392),a=r(4495),l=r(7040),u=n.Symbol,c=i("wks"),h=l?u.for||u:u&&u.withoutSetter||s;t.exports=function(t){o(c,t)||(c[t]=a&&o(u,t)?u[t]:h("Symbol."+t));return c[t]}},4423(t,e,r){var n=r(6518),i=r(9617).includes,o=r(9039),s=r(6469),a=o(function(){return!Array(1).includes()}),l=o(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:a||l},{includes:function includes(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}});s("includes")},4114(t,e,r){var n=r(6518),i=r(8981),o=r(6198),s=r(4527),a=r(6837);n({target:"Array",proto:!0,arity:1,forced:r(9039)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function push(t){var e=i(this),r=o(e),n=arguments.length;a(r+n);for(var l=0;l<n;l++){e[r]=arguments[l];r++}s(e,r);return r}})},8111(t,e,r){var n=r(6518),i=r(4576),o=r(679),s=r(8551),a=r(4901),l=r(2787),u=r(2106),c=r(4659),h=r(9039),d=r(9297),p=r(8227),f=r(7657).IteratorPrototype,g=r(3724),_=r(6395),m="constructor",b="Iterator",y=p("toStringTag"),v=TypeError,w=i[b],x=_||!a(w)||w.prototype!==f||!h(function(){w({})}),A=function Iterator(){o(this,f);if(l(this)===f)throw new v("Abstract class Iterator not directly constructable")},defineIteratorPrototypeAccessor=function(t,e){g?u(f,t,{configurable:!0,get:function(){return e},set:function(e){s(this);if(this===f)throw new v("You can\'t redefine this property");d(this,t)?this[t]=e:c(this,t,e)}}):f[t]=e};d(f,y)||defineIteratorPrototypeAccessor(y,b);!x&&d(f,m)&&f[m]!==Object||defineIteratorPrototypeAccessor(m,A);A.prototype=f;n({global:!0,constructor:!0,forced:x},{Iterator:A})},1148(t,e,r){var n=r(6518),i=r(9565),o=r(2652),s=r(9306),a=r(8551),l=r(1767),u=r(9539),c=r(4549)("every",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:c},{every:function every(t){a(this);try{s(t)}catch(t){u(this,"throw",t)}if(c)return i(c,this,t);var e=l(this),r=0;return!o(e,function(e,n){if(!t(e,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},2489(t,e,r){var n=r(6518),i=r(9565),o=r(9306),s=r(8551),a=r(1767),l=r(9462),u=r(6319),c=r(6395),h=r(9539),d=r(684),p=r(4549),f=!c&&!d("filter",function(){}),g=!c&&!f&&p("filter",TypeError),_=c||f||g,m=l(function(){for(var t,e,r=this.iterator,n=this.predicate,o=this.next;;){t=s(i(o,r));if(this.done=!!t.done)return;e=t.value;if(u(r,n,[e,this.counter++],!0))return e}});n({target:"Iterator",proto:!0,real:!0,forced:_},{filter:function filter(t){s(this);try{o(t)}catch(t){h(this,"throw",t)}return g?i(g,this,t):new m(a(this),{predicate:t})}})},7588(t,e,r){var n=r(6518),i=r(9565),o=r(2652),s=r(9306),a=r(8551),l=r(1767),u=r(9539),c=r(4549)("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function forEach(t){a(this);try{s(t)}catch(t){u(this,"throw",t)}if(c)return i(c,this,t);var e=l(this),r=0;o(e,function(e){t(e,r++)},{IS_RECORD:!0})}})},1701(t,e,r){var n=r(6518),i=r(9565),o=r(9306),s=r(8551),a=r(1767),l=r(9462),u=r(6319),c=r(9539),h=r(684),d=r(4549),p=r(6395),f=!p&&!h("map",function(){}),g=!p&&!f&&d("map",TypeError),_=p||f||g,m=l(function(){var t=this.iterator,e=s(i(this.next,t));if(!(this.done=!!e.done))return u(t,this.mapper,[e.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:_},{map:function map(t){s(this);try{o(t)}catch(t){c(this,"throw",t)}return g?i(g,this,t):new m(a(this),{mapper:t})}})},8237(t,e,r){var n=r(6518),i=r(2652),o=r(9306),s=r(8551),a=r(1767),l=r(9539),u=r(4549),c=r(8745),h=r(9039),d=TypeError,p=h(function(){[].keys().reduce(function(){},void 0)}),f=!p&&u("reduce",d);n({target:"Iterator",proto:!0,real:!0,forced:p||f},{reduce:function reduce(t){s(this);try{o(t)}catch(t){l(this,"throw",t)}var e=arguments.length<2,r=e?void 0:arguments[1];if(f)return c(f,this,e?[t]:[t,r]);var n=a(this),u=0;i(n,function(n){if(e){e=!1;r=n}else r=t(r,n,u);u++},{IS_RECORD:!0});if(e)throw new d("Reduce of empty iterator with no initial value");return r}})},3579(t,e,r){var n=r(6518),i=r(9565),o=r(2652),s=r(9306),a=r(8551),l=r(1767),u=r(9539),c=r(4549)("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:c},{some:function some(t){a(this);try{s(t)}catch(t){u(this,"throw",t)}if(c)return i(c,this,t);var e=l(this),r=0;return o(e,function(e,n){if(t(e,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3110(t,e,r){var n=r(6518),i=r(7751),o=r(8745),s=r(9565),a=r(9504),l=r(9039),u=r(4376),c=r(4901),h=r(5810),d=r(757),p=r(2195),f=r(655),g=r(7680),_=r(8235),m=r(3392),b=r(4495),y=r(7819),v=String,w=i("JSON","stringify"),x=a(/./.exec),A=a("".charAt),S=a("".charCodeAt),I=a("".replace),C=a("".slice),O=a([].push),E=a(1.1.toString),T=/[\\uD800-\\uDFFF]/g,k=/^[\\uD800-\\uDBFF]$/,j=/^[\\uDC00-\\uDFFF]$/,P=m(),D=P.length,M=!b||l(function(){var t=i("Symbol")("stringify detection");return"[null]"!==w([t])||"{}"!==w({a:t})||"{}"!==w(Object(t))}),V=l(function(){return\'"\\\\udf06\\\\ud834"\'!==w("\\udf06\\ud834")||\'"\\\\udead"\'!==w("\\udead")}),R=M?function(t,e){var r=g(arguments),n=getReplacerFunction(e);if(c(n)||void 0!==t&&!d(t)){r[1]=function(t,e){c(n)&&(e=s(n,this,v(t),e));if(!d(e))return e};return o(w,null,r)}}:w,fixIllFormedJSON=function(t,e,r){var n=A(r,e-1),i=A(r,e+1);return x(k,t)&&!x(j,i)||x(j,t)&&!x(k,n)?"\\\\u"+E(S(t,0),16):t},getReplacerFunction=function(t){if(c(t))return t;if(u(t)){for(var e=t.length,r=[],n=0;n<e;n++){var i=t[n];"string"==typeof i?O(r,i):"number"!=typeof i&&"Number"!==p(i)&&"String"!==p(i)||O(r,f(i))}var o=r.length,s=!0;return function(t,e){if(s){s=!1;return e}if(u(this))return e;for(var n=0;n<o;n++)if(r[n]===t)return e}}};w&&n({target:"JSON",stat:!0,arity:3,forced:M||V||!y},{stringify:function stringify(t,e,r){var n=getReplacerFunction(e),i=[],o=R(t,function(t,e){var r=c(n)?s(n,this,v(t),e):e;return!y&&h(r)?P+(O(i,r.rawJSON)-1):r},r);if("string"!=typeof o)return o;V&&(o=I(o,T,fixIllFormedJSON));if(y)return o;for(var a="",l=o.length,u=0;u<l;u++){var d=A(o,u);if(\'"\'===d){var p=_(o,++u).end-1,f=C(o,u,p);a+=C(f,0,D)===P?i[C(f,D)]:\'"\'+f+\'"\';u=p}else a+=d}return a}})},2731(t,e,r){var n=r(6518),i=r(9306),o=r(2248),s=r(6395),a=o.get,l=o.has,u=o.set;n({target:"Map",proto:!0,real:!0,forced:s},{getOrInsertComputed:function getOrInsertComputed(t,e){var r=l(this,t);i(e);if(r)return a(this,t);0===t&&1/t==-1/0&&(t=0);var n=e(t);u(this,t,n);return n}})},5367(t,e,r){var n=r(6518),i=r(2248),o=r(6395),s=i.get,a=i.has,l=i.set;n({target:"Map",proto:!0,real:!0,forced:o},{getOrInsert:function getOrInsert(t,e){if(a(this,t))return s(this,t);l(this,t,e);return e}})},3068(t,e,r){var n=r(6518),i=r(9504),o=r(2652),s=RangeError,a=TypeError,l=1/0,u=Math.abs,c=Math.pow,h=i([].push),d=c(2,1023),p=c(2,53)-1,f=Number.MAX_VALUE,g=c(2,971),_={},m={},b={},y={},v={},twosum=function(t,e){var r=t+e;return{hi:r,lo:e-(r-t)}};n({target:"Math",stat:!0},{sumPrecise:function sumPrecise(t){var e=[],r=0,n=y;o(t,function(t){if(++r>p)throw new s("Maximum allowed index exceeded");if("number"!=typeof t)throw new a("Value is not a number");if(n!==_)if(t!=t)n=_;else if(t===l)n=n===m?_:b;else if(t===-1/0)n=n===b?_:m;else if(!(0===t&&1/t!==l||n!==y&&n!==v)){n=v;h(e,t)}});switch(n){case _:return NaN;case m:return-1/0;case b:return l;case y:return-0}for(var i,c,w,x,A,S,I=[],C=0,O=0;O<e.length;O++){i=e[O];for(var E=0,T=0;T<I.length;T++){c=I[T];if(u(i)<u(c)){S=i;i=c;c=S}x=(w=twosum(i,c)).hi;A=w.lo;if(u(x)===l){var k=x===l?1:-1;C+=k;if(u(i=i-k*d-k*d)<u(c)){S=i;i=c;c=S}x=(w=twosum(i,c)).hi;A=w.lo}0!==A&&(I[E++]=A);i=x}I.length=E;0!==i&&h(I,i)}var j=I.length-1;x=0;A=0;if(0!==C){var P=j>=0?I[j]:0;j--;if(u(C)>1||C>0&&P>0||C<0&&P<0)return C>0?l:-1/0;x=(w=twosum(C*d,P/2)).hi;A=w.lo;A*=2;if(u(2*x)===l)return x>0?x===d&&A===-g/2&&j>=0&&I[j]<0?f:l:x===-d&&A===g/2&&j>=0&&I[j]>0?-f:-1/0;if(0!==A){I[++j]=A;A=0}x*=2}for(;j>=0;){x=(w=twosum(x,I[j--])).hi;if(0!==(A=w.lo))break}j>=0&&(A<0&&I[j]<0||A>0&&I[j]>0)&&(c=2*A)===(i=x+c)-x&&(x=i);return x}})},7642(t,e,r){var n=r(6518),i=r(3440),o=r(9039);n({target:"Set",proto:!0,real:!0,forced:!r(4916)("difference",function(t){return 0===t.size})||o(function(){var t={size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var r=t++>1;e.has(1)&&e.clear();return{done:r,value:2}}}}},e=new Set([1,2,3,4]);return 3!==e.difference(t).size})},{difference:i})},8004(t,e,r){var n=r(6518),i=r(9039),o=r(8750);n({target:"Set",proto:!0,real:!0,forced:!r(4916)("intersection",function(t){return 2===t.size&&t.has(1)&&t.has(2)})||i(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:o})},3853(t,e,r){var n=r(6518),i=r(4449);n({target:"Set",proto:!0,real:!0,forced:!r(4916)("isDisjointFrom",function(t){return!t})},{isDisjointFrom:i})},5876(t,e,r){var n=r(6518),i=r(3838);n({target:"Set",proto:!0,real:!0,forced:!r(4916)("isSubsetOf",function(t){return t})},{isSubsetOf:i})},2475(t,e,r){var n=r(6518),i=r(8527);n({target:"Set",proto:!0,real:!0,forced:!r(4916)("isSupersetOf",function(t){return!t})},{isSupersetOf:i})},5024(t,e,r){var n=r(6518),i=r(3650),o=r(9835);n({target:"Set",proto:!0,real:!0,forced:!r(4916)("symmetricDifference")||!o("symmetricDifference")},{symmetricDifference:i})},1698(t,e,r){var n=r(6518),i=r(4204),o=r(9835);n({target:"Set",proto:!0,real:!0,forced:!r(4916)("union")||!o("union")},{union:i})},9452(t,e,r){var n=r(6518),i=r(9306),o=r(6557),s=r(4328),a=r(4995),l=r(6395),u=a.get,c=a.has,h=a.set;n({target:"WeakMap",proto:!0,real:!0,forced:l||!function(){try{WeakMap.prototype.getOrInsertComputed&&(new WeakMap).getOrInsertComputed(1,function(){throw 1})}catch(t){return t instanceof TypeError}}()},{getOrInsertComputed:function getOrInsertComputed(t,e){l||o(this);s(t);i(e);if(c(this,t))return u(this,t);var r=e(t);h(this,t,r);return r}})},8454(t,e,r){var n=r(6518),i=r(4995),o=r(6395),s=i.get,a=i.has,l=i.set;n({target:"WeakMap",proto:!0,real:!0,forced:o},{getOrInsert:function getOrInsert(t,e){if(a(this,t))return s(this,t);l(this,t,e);return e}})}},e={};function __webpack_require__(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={exports:{}};t[r].call(i.exports,i,i.exports,__webpack_require__);return i.exports}__webpack_require__(4114),__webpack_require__(8111),__webpack_require__(1701);const r=Object.freeze({s:"solid",d:"dashed",b:"beveled",i:"inset",u:"underline"}),n=Object.freeze({visible:0,hidden:1,delay:2}),i=Object.freeze({visible:0,hidden:1,noPrint:2,noView:3}),o=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"}),s=Object.freeze({n:"none",i:"invert",p:"push",o:"outline"}),a=Object.freeze({textOnly:0,iconOnly:1,iconTextV:2,textIconV:3,iconTextH:4,textIconH:5,overlay:6}),l=Object.freeze({proportional:0,anamorphic:1}),u=Object.freeze({always:0,never:1,tooBig:2,tooSmall:3}),c=Object.freeze({ch:"check",cr:"cross",di:"diamond",ci:"circle",st:"star",sq:"square"}),h=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"}),d=Object.freeze({none:"NoVary",fitP:"FitPage",fitW:"FitWidth",fitH:"FitHeight",fitV:"FitVisibleWidth",pref:"Preferred",refW:"ReflowWidth"}),p=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}"]});__webpack_require__(1148),__webpack_require__(2489),__webpack_require__(7588),__webpack_require__(3579),__webpack_require__(7642),__webpack_require__(8004),__webpack_require__(3853),__webpack_require__(5876),__webpack_require__(2475),__webpack_require__(5024),__webpack_require__(1698),__webpack_require__(5367),__webpack_require__(2731);const f=0,g=1,_=2,m=3,b=4;function createActionsMap(t){return new Map(t?Object.entries(t):null)}function MathClamp(t,e,r){return Math.min(Math.max(t,e),r)}function makeColorComp(t){return Math.floor(255*MathClamp(t,0,1)).toString(16).padStart(2,"0")}function scaleAndClamp(t){return 255*MathClamp(t,0,1)}class ColorConverters{static CMYK_G([t,e,r,n]){return["G",1-Math.min(1,.3*t+.59*r+.11*e+n)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_rgb([t]){return[t=scaleAndClamp(t),t,t]}static G_HTML([t]){const e=makeColorComp(t);return`#${e}${e}${e}`}static RGB_G([t,e,r]){return["G",.3*t+.59*e+.11*r]}static RGB_rgb(t){return t.map(scaleAndClamp)}static RGB_HTML(t){return`#${t.map(makeColorComp).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,e,r,n]){return["RGB",1-Math.min(1,t+n),1-Math.min(1,r+n),1-Math.min(1,e+n)]}static CMYK_rgb([t,e,r,n]){return[scaleAndClamp(1-Math.min(1,t+n)),scaleAndClamp(1-Math.min(1,r+n)),scaleAndClamp(1-Math.min(1,e+n))]}static CMYK_HTML(t){const e=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(e)}static RGB_CMYK([t,e,r]){const n=1-t,i=1-e,o=1-r;return["CMYK",n,i,o,Math.min(n,i,o)]}}const y=["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"],v=["HH:MM","h:MM tt","HH:MM:ss","h:MM:ss tt"];class PDFObject{constructor(t){this._expandos=Object.create(null);this._send=t.send||null;this._id=t.id||null}}class Color extends PDFObject{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];constructor(){super({})}static _isValidSpace(t){return"string"==typeof t&&("T"===t||"G"===t||"RGB"===t||"CMYK"===t)}static _isValidColor(t){if(!Array.isArray(t)||0===t.length)return!1;const e=t[0];if(!Color._isValidSpace(e))return!1;switch(e){case"T":if(1!==t.length)return!1;break;case"G":if(2!==t.length)return!1;break;case"RGB":if(4!==t.length)return!1;break;case"CMYK":if(5!==t.length)return!1;break;default:return!1}return t.slice(1).every(t=>"number"==typeof t&&t>=0&&t<=1)}static _getCorrectColor(t){return Color._isValidColor(t)?t:["G",0]}convert(t,e){return Color._isValidSpace(e)?"T"===e?["T"]:(t=Color._getCorrectColor(t))[0]===e?t:"T"===t[0]?this.convert(this.black,e):ColorConverters[`${t[0]}_${e}`](t.slice(1)):this.black}equal(t,e){t=Color._getCorrectColor(t);e=Color._getCorrectColor(e);if("T"===t[0]||"T"===e[0])return"T"===t[0]&&"T"===e[0];t[0]!==e[0]&&(e=this.convert(e,t[0]));return t.slice(1).every((t,r)=>t===e[r+1])}}__webpack_require__(8237),__webpack_require__(3068);function serializeError(t){return{command:"error",value:`${t.toString()}\\n${t.stack}`}}const makeArr=()=>[],makeMap=()=>new Map;"function"!=typeof Math.sumPrecise&&(Math.sumPrecise=function(t){return t.reduce((t,e)=>t+e,0)});"function"!=typeof Map.prototype.getOrInsertComputed&&(Map.prototype.getOrInsertComputed=function(t,e){this.has(t)||this.set(t,e(t));return this.get(t)});class Field extends PDFObject{constructor(t){super(t);this.alignment=t.alignment||"left";this.borderStyle=t.borderStyle||"";this.buttonAlignX=t.buttonAlignX||50;this.buttonAlignY=t.buttonAlignY||50;this.buttonFitBounds=t.buttonFitBounds;this.buttonPosition=t.buttonPosition;this.buttonScaleHow=t.buttonScaleHow;this.ButtonScaleWhen=t.buttonScaleWhen;this.calcOrderIndex=t.calcOrderIndex;this.comb=t.comb;this.commitOnSelChange=t.commitOnSelChange;this.currentValueIndices=t.currentValueIndices;this.defaultStyle=t.defaultStyle;this.defaultValue=t.defaultValue;this.doNotScroll=t.doNotScroll;this.doNotSpellCheck=t.doNotSpellCheck;this.delay=t.delay;this.display=t.display;this.doc=t.doc.wrapped;this.editable=t.editable;this.exportValues=t.exportValues;this.fileSelect=t.fileSelect;this.hidden=t.hidden;this.highlight=t.highlight;this.lineWidth=t.lineWidth;this.multiline=t.multiline;this.multipleSelection=!!t.multipleSelection;this.name=t.name;this.password=t.password;this.print=t.print;this.radiosInUnison=t.radiosInUnison;this.readonly=t.readonly;this.rect=t.rect;this.required=t.required;this.richText=t.richText;this.richValue=t.richValue;this.style=t.style;this.submitName=t.submitName;this.textFont=t.textFont;this.textSize=t.textSize;this.type=t.type;this.userName=t.userName;this._actions=createActionsMap(t.actions);this._browseForFileToSubmit=t.browseForFileToSubmit||null;this._buttonCaption=null;this._buttonIcon=null;this._charLimit=t.charLimit;this._children=null;this._currentValueIndices=t.currentValueIndices||0;this._document=t.doc;this._fieldPath=t.fieldPath;this._fillColor=t.fillColor||["T"];this._isChoice=Array.isArray(t.items);this._items=t.items||[];this._hasValue=Object.hasOwn(t,"value");this._page=t.page||0;this._strokeColor=t.strokeColor||["G",0];this._textColor=t.textColor||["G",0];this._value=null;this._kidIds=t.kidIds||null;this._fieldType=function getFieldType(t){let e=t.get("Format");if(!e)return f;e=e[0];e=e.trim();return e.startsWith("AFNumber_")?g:e.startsWith("AFPercent_")?_:e.startsWith("AFDate_")?m:e.startsWith("AFTime_")?b:f}(this._actions);this._siblings=t.siblings||null;this._rotation=t.rotation||0;this._datetimeFormat=t.datetimeFormat||null;this._hasDateOrTime=!!t.hasDatetimeHTML;this._util=t.util;this._globalEval=t.globalEval;this._appObjects=t.appObjects;this.value=t.value||""}get currentValueIndices(){return this._isChoice?this._currentValueIndices:0}set currentValueIndices(t){if(this._isChoice){Array.isArray(t)||(t=[t]);if(t.every(t=>"number"==typeof t&&Number.isInteger(t)&&t>=0&&t<this.numItems)){t.sort();if(this.multipleSelection){this._currentValueIndices=t;this._value=[];t.forEach(t=>{this._value.push(this._items[t].displayValue)})}else if(t.length>0){t=t.splice(1,t.length-1);this._currentValueIndices=t[0];this._value=this._items[this._currentValueIndices]}this._send({id:this._id,indices:t})}}}get fillColor(){return this._fillColor}set fillColor(t){Color._isValidColor(t)&&(this._fillColor=t)}get bgColor(){return this.fillColor}set bgColor(t){this.fillColor=t}get charLimit(){return this._charLimit}set charLimit(t){if("number"!=typeof t)throw new Error("Invalid argument value");this._charLimit=Math.max(0,Math.floor(t))}get numItems(){if(!this._isChoice)throw new Error("Not a choice widget");return this._items.length}set numItems(t){throw new Error("field.numItems is read-only")}get strokeColor(){return this._strokeColor}set strokeColor(t){Color._isValidColor(t)&&(this._strokeColor=t)}get borderColor(){return this.strokeColor}set borderColor(t){this.strokeColor=t}get page(){return this._page}set page(t){throw new Error("field.page is read-only")}get rotation(){return this._rotation}set rotation(t){if((t=Math.floor(t))%90!=0)throw new Error("Invalid rotation: must be a multiple of 90");(t%=360)<0&&(t+=360);this._rotation=t}get textColor(){return this._textColor}set textColor(t){Color._isValidColor(t)&&(this._textColor=t)}get fgColor(){return this.textColor}set fgColor(t){this.textColor=t}get value(){return this._value}set value(t){if(this._isChoice){this._setChoiceValue(t);return}if(this._hasDateOrTime&&t){const e=this._util.scand(this._datetimeFormat,t);if(e){this._originalValue=e.valueOf();t=this._util.printd(this._datetimeFormat,e);this._value=isNaN(t)?t:parseFloat(t);return}}if(""===t||"string"!=typeof t||this._fieldType>=m){this._originalValue=void 0;this._value=t;return}this._originalValue=t;const e=t.trim().replace(",",".");this._value=isNaN(e)?t:parseFloat(e)}get _initialValue(){return this._hasDateOrTime&&this._originalValue||null}_getValue(){return this._originalValue??this.value}_setChoiceValue(t){if(this.multipleSelection){Array.isArray(t)||(t=[t]);const e=new Set(t);if(Array.isArray(this._currentValueIndices)){this._currentValueIndices.length=0;this._value.length=0}else{this._currentValueIndices=[];this._value=[]}this._items.forEach((t,r)=>{if(e.has(t.exportValue)){this._currentValueIndices.push(r);this._value.push(t.exportValue)}})}else{Array.isArray(t)&&(t=t[0]);const e=this._items.findIndex(({exportValue:e})=>t===e);if(-1!==e){this._currentValueIndices=e;this._value=this._items[e].exportValue}}}get valueAsString(){return(this._value??"").toString()}set valueAsString(t){}browseForFileToSubmit(){this._browseForFileToSubmit&&this._browseForFileToSubmit()}buttonGetCaption(t=0){return this._buttonCaption?this._buttonCaption[t]:""}buttonGetIcon(t=0){return this._buttonIcon?this._buttonIcon[t]:null}buttonImportIcon(t=null,e=0){}buttonSetCaption(t,e=0){this._buttonCaption||(this._buttonCaption=["","",""]);this._buttonCaption[e]=t}buttonSetIcon(t,e=0){this._buttonIcon||(this._buttonIcon=[null,null,null]);this._buttonIcon[e]=t}checkThisBox(t,e=!0){}clearItems(){if(!this._isChoice)throw new Error("Not a choice widget");this._items=[];this._send({id:this._id,clear:null})}deleteItemAt(t=null){if(!this._isChoice)throw new Error("Not a choice widget");if(this.numItems){if(null===t){t=Array.isArray(this._currentValueIndices)?this._currentValueIndices[0]:this._currentValueIndices;t||=0}(t<0||t>=this.numItems)&&(t=this.numItems-1);this._items.splice(t,1);if(Array.isArray(this._currentValueIndices)){let e=this._currentValueIndices.findIndex(e=>e>=t);if(-1!==e){this._currentValueIndices[e]===t&&this._currentValueIndices.splice(e,1);for(const t=this._currentValueIndices.length;e<t;e++)--this._currentValueIndices[e]}}else this._currentValueIndices===t?this._currentValueIndices=this.numItems>0?0:-1:this._currentValueIndices>t&&--this._currentValueIndices;this._send({id:this._id,remove:t})}}getItemAt(t=-1,e=!1){if(!this._isChoice)throw new Error("Not a choice widget");(t<0||t>=this.numItems)&&(t=this.numItems-1);const r=this._items[t];return e?r.exportValue:r.displayValue}getArray(){if(this._kidIds){const t=[],fillArrayWithKids=e=>{for(const r of e){const e=this._appObjects[r];if(e){e.obj._hasValue&&t.push(e.wrapped);e.obj._kidIds&&fillArrayWithKids(e.obj._kidIds)}}};fillArrayWithKids(this._kidIds);return t}return this._children??=this._document.obj._getTerminalChildren(this._fieldPath)}getLock(){}isBoxChecked(t){return!1}isDefaultChecked(t){return!1}insertItemAt(t,e=void 0,r=0){if(!this._isChoice)throw new Error("Not a choice widget");if(!t)return;(r<0||r>this.numItems)&&(r=this.numItems);if(this._items.some(({displayValue:e})=>e===t))return;void 0===e&&(e=t);const n={displayValue:t,exportValue:e};this._items.splice(r,0,n);if(Array.isArray(this._currentValueIndices)){let t=this._currentValueIndices.findIndex(t=>t>=r);if(-1!==t)for(const e=this._currentValueIndices.length;t<e;t++)++this._currentValueIndices[t]}else this._currentValueIndices>=r&&++this._currentValueIndices;this._send({id:this._id,insert:{index:r,...n}})}setAction(t,e){if("string"==typeof t&&"string"==typeof e){t in this._actions||(this._actions[t]=[]);this._actions[t].push(e)}}setFocus(){this._send({id:this._id,focus:!0})}setItems(t){if(!this._isChoice)throw new Error("Not a choice widget");this._items.length=0;for(const e of t){let t,r;if(Array.isArray(e)){t=e[0]?.toString()||"";r=e[1]?.toString()||""}else t=r=e?.toString()||"";this._items.push({displayValue:t,exportValue:r})}this._currentValueIndices=0;this._send({id:this._id,items:this._items})}setLock(){}signatureGetModifications(){}signatureGetSeedValue(){}signatureInfo(){}signatureSetSeedValue(){}signatureSign(){}signatureValidate(){}_isButton(){return!1}_reset(){this.value=this.defaultValue}_runActions(t){const e=t.name;if(!this._actions.has(e))return!1;const r=this._actions.get(e);for(const t of r)try{this._globalEval(t)}catch(t){const r=serializeError(t);r.value=`Error when executing "${e}" for field "${this._id}"\\n${r.value}`;this._send(r)}return!0}}class RadioButtonField extends Field{constructor(t,e){super(e);this.exportValues=[this.exportValues];this._radioIds=[this._id];this._radioActions=[this._actions];for(const e of t){this.exportValues.push(e.exportValues);this._radioIds.push(e.id);this._radioActions.push(createActionsMap(e.actions));this._value===e.exportValues&&(this._id=e.id)}this._hasBeenInitialized=!0;this._value=e.value||""}get _siblings(){return this._radioIds.filter(t=>t!==this._id)}set _siblings(t){}get value(){return this._value}set value(t){if(!this._hasBeenInitialized)return;null==t&&(this._value="");const e=this.exportValues.indexOf(t);if(0<=e&&e<this._radioIds.length){this._id=this._radioIds[e];this._value=t}else if("Off"===t&&2===this._radioIds.length){const t=(1+this._radioIds.indexOf(this._id))%2;this._id=this._radioIds[t];this._value=this.exportValues[t]}}checkThisBox(t,e=!0){if(!(t<0||t>=this._radioIds.length)&&e){this._id=this._radioIds[t];this._value=this.exportValues[t];this._send({id:this._id,value:this._value})}}isBoxChecked(t){return t>=0&&t<this._radioIds.length&&this._id===this._radioIds[t]}isDefaultChecked(t){return t>=0&&t<this.exportValues.length&&this.defaultValue===this.exportValues[t]}_getExportValue(t){const e=this._radioIds.indexOf(this._id);return this.exportValues[e]}_runActions(t){const e=this._radioIds.indexOf(this._id);this._actions=this._radioActions[e];return super._runActions(t)}_isButton(){return!0}}class CheckboxField extends RadioButtonField{get value(){return this._value}set value(t){t&&"Off"!==t?super.value=t:this._value="Off"}_getExportValue(t){return t?super._getExportValue(t):"Off"}isBoxChecked(t){return"Off"!==this._value&&super.isBoxChecked(t)}isDefaultChecked(t){return"Off"===this.defaultValue?"Off"===this._value:super.isDefaultChecked(t)}checkThisBox(t,e=!0){if(!(t<0||t>=this._radioIds.length)){this._id=this._radioIds[t];this._value=e?this.exportValues[t]:"Off";this._send({id:this._id,value:this._value})}}}class AForm{constructor(t,e,r,n){this._document=t;this._app=e;this._util=r;this._color=n;this._emailRegex=new RegExp("^[a-zA-Z0-9.!#$%&\'*+\\\\/=?^_`{|}~-]+@[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])?)*$")}_mkTargetName(t){return t.target?`[ ${t.target.name} ]`:""}_parseDate(t,e){let r=null;try{r=this._util._scand(t,e,!1)}catch{}if(r)return r;r=Date.parse(e);return isNaN(r)?null:new Date(r)}AFMergeChange(t=globalThis.event){return t.willCommit?t.value.toString():this._app._eventDispatcher.mergeChange(t)}AFParseDateEx(t,e){return this._parseDate(e,t)}AFExtractNums(t){if("number"==typeof t)return[t];if(!t||"string"!=typeof t)return null;const e=t.charAt(0);"."!==e&&","!==e||(t=`0${t}`);const r=t.match(/(\\d+)/g);return 0===r.length?null:r}AFMakeNumber(t){if("number"==typeof t)return t;if("string"!=typeof t)return null;t=t.trim().replace(",",".");const e=parseFloat(t);return isNaN(e)||!isFinite(e)?null:e}AFMakeArrayFromList(t){return"string"==typeof t?t.split(/, ?/g):t}AFNumber_Format(t,e,r,n,i,o){const s=globalThis.event;let a=this.AFMakeNumber(s.value);if(null===a){s.value="";return}const l=Math.sign(a),u=[];let c=!1;-1===l&&o&&0===r&&u.push("-");if((2===r||3===r)&&-1===l){u.push("(");c=!0}o&&u.push(i);e=MathClamp(Math.floor(e),0,4);u.push("%,",e,".",t.toString(),"f");o||u.push(i);c&&u.push(")");1!==r&&3!==r||(s.target.textColor=1===l?this._color.black:this._color.red);0===r&&!o||-1!==l||(a=-a);const h=u.join("");s.value=this._util.printf(h,a)}AFNumber_Keystroke(t,e,r,n,i,o){const s=globalThis.event;let a,l=this.AFMergeChange(s);if(l){l=l.trim();a=e>1?s.willCommit?/^[+-]?(\\d+(,\\d*)?|,\\d+)$/:/^[+-]?\\d*,?\\d*$/:s.willCommit?/^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)$/:/^[+-]?\\d*\\.?\\d*$/;if(!a.test(l)){if(s.willCommit){const t=`${p.IDS_INVALID_VALUE} ${this._mkTargetName(s)}`;this._app.alert(t)}s.rc=!1}s.willCommit&&e>1&&(s.value=parseFloat(l.replace(",",".")))}}AFPercent_Format(t,e,r=!1){if("number"!=typeof t)return;if("number"!=typeof e)return;if(t<0)throw new Error("Invalid nDec value in AFPercent_Format");const n=globalThis.event;if(t>512){n.value="%";return}t=Math.floor(t);e=MathClamp(Math.floor(e),0,4);let i=this.AFMakeNumber(n.value);if(null===i){n.value="%";return}const o=`%,${e}.${t}f`;i=this._util.printf(o,100*i);n.value=r?`%${i}`:`${i}%`}AFPercent_Keystroke(t,e){this.AFNumber_Keystroke(t,e,0,0,"",!0)}AFDate_FormatEx(t){const e=globalThis.event,r=e.value;if(!r)return;const n=this._parseDate(t,r);null!==n&&(e.value=this._util.printd(t,n))}AFDate_Format(t){this.AFDate_FormatEx(y[t]??t)}AFDate_KeystrokeEx(t){const e=globalThis.event;if(!e.willCommit)return;const r=this.AFMergeChange(e);if(r&&null===this._parseDate(t,r)){const r=p.IDS_INVALID_DATE,n=p.IDS_INVALID_DATE2,i=`${r} ${this._mkTargetName(e)}${n}${t}`;this._app.alert(i);e.rc=!1}}AFDate_Keystroke(t){t>=0&&t<y.length&&this.AFDate_KeystrokeEx(y[t])}AFRange_Validate(t,e,r,n){const i=globalThis.event;if(!i.value)return;const o=this.AFMakeNumber(i.value);if(null===o)return;r=!!r;if((t=!!t)&&null===(e=this.AFMakeNumber(e)))return;if(r&&null===(n=this.AFMakeNumber(n)))return;let s="";t&&r?(o<e||o>n)&&(s=this._util.printf(p.IDS_GT_AND_LT,e,n)):t?o<e&&(s=this._util.printf(p.IDS_GREATER_THAN,e)):o>n&&(s=this._util.printf(p.IDS_LESS_THAN,n));if(s){this._app.alert(s);i.rc=!1}}AFSimple(t,e,r){const n=this.AFMakeNumber(e);if(null===n)throw new Error("Invalid nValue1 in AFSimple");const i=this.AFMakeNumber(r);if(null===i)throw new Error("Invalid nValue2 in AFSimple");switch(t){case"AVG":return(n+i)/2;case"SUM":return n+i;case"PRD":return n*i;case"MIN":return Math.min(n,i);case"MAX":return Math.max(n,i)}throw new Error("Invalid cFunction in AFSimple")}AFSimple_Calculate(t,e){const r={AVG:t=>Math.sumPrecise(t)/t.length,SUM:t=>Math.sumPrecise(t),PRD:t=>t.reduce((t,e)=>t*e,1),MIN:t=>Math.min(...t),MAX:t=>Math.max(...t)};if(!(t in r))throw new TypeError("Invalid function in AFSimple_Calculate");const n=globalThis.event,i=[];e=this.AFMakeArrayFromList(e);for(const t of e){const e=this._document.getField(t);if(e)for(const t of e.getArray()){const e=this.AFMakeNumber(t.value);i.push(e??0)}}if(0===i.length){n.value=0;return}const o=r[t](i);n.value=Math.round(1e6*o)/1e6}AFSpecial_Format(t){const e=globalThis.event;if(!e.value)return;let r;switch(t=this.AFMakeNumber(t)){case 0:r="99999";break;case 1:r="99999-9999";break;case 2:r=this._util.printx("9999999999",e.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")}e.value=this._util.printx(r,e.value)}AFSpecial_KeystrokeEx(t){const e=globalThis.event,r=t.replaceAll(/[^9AOX]/g,"");this.#t(r,null,!1);if(!e.rc){e.rc=!0;this.#t(t,null,!0)}}#t(t,e,r){if(!t)return;const n=globalThis.event;e||=this.AFMergeChange(n);if(!e)return;const i=new Map([["9",t=>t>="0"&&t<="9"],["A",t=>"a"<=t&&t<="z"||"A"<=t&&t<="Z"],["O",t=>"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"0"<=t&&t<="9"],["X",t=>!0]]);function _checkValidity(t,e){for(let r=0,n=t.length;r<n;r++){const n=e.charAt(r),o=t.charAt(r),s=i.get(n);if(s){if(!s(o))return!1}else if(n!==o)return!1}return!0}const o=`${p.IDS_INVALID_VALUE} = "${t}"`;if(e.length>t.length){r&&this._app.alert(o);n.rc=!1}else if(n.willCommit){if(e.length<t.length){r&&this._app.alert(o);n.rc=!1;return}if(!_checkValidity(e,t)){r&&this._app.alert(o);n.rc=!1;return}n.value+=t.substring(e.length)}else{e.length<t.length&&(t=t.substring(0,e.length));if(!_checkValidity(e,t)){r&&this._app.alert(o);n.rc=!1}}}AFSpecial_Keystroke(t){const e=globalThis.event;t=this.AFMakeNumber(t);let r,n,i=this.AFMergeChange(e);switch(t){case 0:r="99999";break;case 1:r="99999-9999";break;case 2:r="999-9999";n="(999) 999-9999";break;case 3:r="999-99-9999";break;default:throw new Error("Invalid psf in AFSpecial_Keystroke")}const o=n?[r,n]:[r];for(const t of o){this.#t(t,i,!1);if(e.rc)return;e.rc=!0}const s=/([-()]|\\s)+/g;i=i.replaceAll(s,"");for(const t of o){this.#t(t.replaceAll(s,""),i,!1);if(e.rc)return;e.rc=!0}this.AFSpecial_KeystrokeEx((n&&i.match(/\\d/g)||[]).length>7?n:r)}AFTime_FormatEx(t){this.AFDate_FormatEx(t)}AFTime_Format(t){this.AFDate_FormatEx(v[t]??t)}AFTime_KeystrokeEx(t){this.AFDate_KeystrokeEx(t)}AFTime_Keystroke(t){t>=0&&t<v.length&&this.AFDate_KeystrokeEx(v[t])}eMailValidate(t){return this._emailRegex.test(t)}AFExactMatch(t,e){return t instanceof RegExp?e.match(t)?.[0]===e||0:t.findIndex(t=>e.match(t)?.[0]===e)+1}}__webpack_require__(4423),__webpack_require__(8454),__webpack_require__(9452);class Event{constructor(t){this.change=t.change||"";this.changeEx=t.changeEx||null;this.commitKey=t.commitKey||0;this.fieldFull=t.fieldFull||!1;this.keyDown=t.keyDown||!1;this.modifier=t.modifier||!1;this.name=t.name;this.rc=!0;this.richChange=t.richChange||[];this.richChangeEx=t.richChangeEx||[];this.richValue=t.richValue||[];this.selEnd=t.selEnd??-1;this.selStart=t.selStart??-1;this.shift=t.shift||!1;this.source=t.source||null;this.target=t.target||null;this.targetName="";this.type="Field";this.value=t.value||"";this.willCommit=t.willCommit||!1}}class EventDispatcher{constructor(t,e,r,n){this._document=t;this._calculationOrder=e;this._objects=r;this._externalCall=n;this._document.obj._eventDispatcher=this;this._isCalculating=!1}mergeChange(t){let e=t.value;if(Array.isArray(e))return e;"string"!=typeof e&&(e=e.toString());const r=t.selStart>=0?e.substring(0,t.selStart):"",n=t.selEnd>=0&&t.selEnd<=e.length?e.substring(t.selEnd):"";return`${r}${t.change}${n}`}userActivation(){this._document.obj._userActivation=!0;this._externalCall("setTimeout",[0,5e3])}dispatch(t){const e=t.id;if(!(e in this._objects)){let r;if("doc"===e||"page"===e){r=globalThis.event=new Event(t);r.source=r.target=this._document.wrapped;r.name=t.name}if("doc"===e){const t=r.name;if("Open"===t){this.userActivation();this._document.obj._initActions();this.formatAll()}["DidPrint","DidSave","WillPrint","WillSave"].includes(t)||this.userActivation();this._document.obj._dispatchDocEvent(r.name)}else if("page"===e){this.userActivation();this._document.obj._dispatchPageEvent(r.name,t.actions,t.pageNumber)}else if("app"===e&&"ResetForm"===t.name){this.userActivation();for(const e of t.ids){const t=this._objects[e];t?.obj._reset()}}return}const r=t.name,n=this._objects[e],i=globalThis.event=new Event(t);let o;this.userActivation();if(n.obj._isButton()){n.obj._id=e;i.value=n.obj._getExportValue(i.value);"Action"===r&&(n.obj._value=i.value)}switch(r){case"Keystroke":o={value:i.value,changeEx:i.changeEx,change:i.change,selStart:i.selStart,selEnd:i.selEnd};break;case"Blur":case"Focus":Object.defineProperty(i,"value",{configurable:!1,writable:!1,enumerable:!0,value:i.value});break;case"Validate":this.runValidation(n,i);return;case"Action":this.runActions(n,n,i,r);this.runCalculate(n,i);return}this.runActions(n,n,i,r);if("Keystroke"===r)if(i.rc)if(i.willCommit)this.runValidation(n,i);else{if(n.obj._isChoice){n.obj.value=o.changeEx;n.obj._send({id:n.obj._id,siblings:n.obj._siblings,value:n.obj.value});return}const t=n.obj.value=this.mergeChange(i);let e,r;if(i.selStart!==o.selStart||i.selEnd!==o.selEnd){e=i.selStart;r=i.selEnd}else r=e=o.selStart+i.change.length;n.obj._send({id:n.obj._id,siblings:n.obj._siblings,value:t,selRange:[e,r]})}else i.willCommit?n.obj._send({id:n.obj._id,siblings:n.obj._siblings,value:"",formattedValue:null,selRange:[0,0]}):n.obj._send({id:n.obj._id,siblings:n.obj._siblings,value:o.value,selRange:[o.selStart,o.selEnd]})}formatAll(){const t=globalThis.event=new Event({});for(const e of Object.values(this._objects)){t.value=e.obj._getValue();this.runActions(e,e,t,"Format")}}runValidation(t,e){const r=this.runActions(t,t,e,"Validate");if(e.rc){t.obj.value=e.value;this.runCalculate(t,e);const r=e.value=t.obj._getValue();let n=null;this.runActions(t,t,e,"Format")&&(n=e.value?.toString?.());t.obj._send({id:t.obj._id,siblings:t.obj._siblings,value:r,formattedValue:n});e.value=r}else r&&t.obj._send({id:t.obj._id,siblings:t.obj._siblings,value:"",formattedValue:null,selRange:[0,0],focus:!0})}runActions(t,e,r,n){r.source=t.wrapped;r.target=e.wrapped;r.name=n;r.targetName=e.obj.name;r.rc=!0;return e.obj._runActions(r)}calculateNow(){if(!this._calculationOrder||this._isCalculating||!this._document.obj.calculate)return;this._isCalculating=!0;const t=this._calculationOrder[0],e=this._objects[t];globalThis.event=new Event({});this.runCalculate(e,globalThis.event);this._isCalculating=!1}runCalculate(t,e){if(this._calculationOrder&&this._document.obj.calculate)for(const r of this._calculationOrder){if(!(r in this._objects))continue;if(!this._document.obj.calculate)break;e.value=null;const n=this._objects[r];let i=n.obj._getValue();this.runActions(t,n,e,"Calculate");if(!e.rc)continue;null!==e.value?n.obj.value=e.value:e.value=n.obj._getValue();this.runActions(n,n,e,"Validate");if(!e.rc){n.obj._getValue()!==i&&(n.wrapped.value=i);continue}null===e.value&&(e.value=n.obj._getValue());i=n.obj._getValue();let o=null;this.runActions(n,n,e,"Format")&&(o=e.value?.toString?.());n.obj._send({id:n.obj._id,siblings:n.obj._siblings,value:i,formattedValue:o})}}}class FullScreen extends PDFObject{_backgroundColor=[];_clickAdvances=!0;_cursor=n.hidden;_defaultTransition="";_escapeExits=!0;_isFullScreen=!0;_loop=!1;_timeDelay=3600;_usePageTiming=!1;_useTimer=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(t){}get clickAdvances(){return this._clickAdvances}set clickAdvances(t){}get cursor(){return this._cursor}set cursor(t){}get defaultTransition(){return this._defaultTransition}set defaultTransition(t){}get escapeExits(){return this._escapeExits}set escapeExits(t){}get isFullScreen(){return this._isFullScreen}set isFullScreen(t){}get loop(){return this._loop}set loop(t){}get timeDelay(){return this._timeDelay}set timeDelay(t){}get transitions(){return["Replace","WipeRight","WipeLeft","WipeDown","WipeUp","SplitHorizontalIn","SplitHorizontalOut","SplitVerticalIn","SplitVerticalOut","BlindsHorizontal","BlindsVertical","BoxIn","BoxOut","GlitterRight","GlitterDown","GlitterRightDown","Dissolve","Random"]}set transitions(t){throw new Error("fullscreen.transitions is read-only")}get usePageTiming(){return this._usePageTiming}set usePageTiming(t){}get useTimer(){return this._useTimer}set useTimer(t){}}class Thermometer extends PDFObject{_cancelled=!1;_duration=100;_text="";_value=0;get cancelled(){return this._cancelled}set cancelled(t){throw new Error("thermometer.cancelled is read-only")}get duration(){return this._duration}set duration(t){this._duration=t}get text(){return this._text}set text(t){this._text=t}get value(){return this._value}set value(t){this._value=t}begin(){}end(){}}class App extends PDFObject{constructor(t){super(t);this._constants=null;this._focusRect=!0;this._fs=null;this._language=App._getLanguage(t.language);this._openInPlace=!1;this._platform=App._getPlatform(t.platform);this._runtimeHighlight=!1;this._runtimeHighlightColor=["T"];this._thermometer=null;this._toolbar=!1;this._document=t._document;this._proxyHandler=t.proxyHandler;this._objects=Object.create(null);this._eventDispatcher=new EventDispatcher(this._document,t.calculationOrder,this._objects,t.externalCall);this._timeoutIds=new WeakMap;this._timeoutIdsRegistry=new FinalizationRegistry(this._cleanTimeout.bind(this));this._timeoutCallbackIds=new Map;this._timeoutCallbackId=1;this._globalEval=t.globalEval;this._externalCall=t.externalCall}_dispatchEvent(t){this._eventDispatcher.dispatch(t)}_registerTimeoutCallback(t){const e=this._timeoutCallbackId++;this._timeoutCallbackIds.set(e,t);return e}_unregisterTimeoutCallback(t){this._timeoutCallbackIds.delete(t)}_evalCallback({callbackId:t,interval:e}){const r=this._document.obj;if(0===t){r._userActivation=!1;return}const n=this._timeoutCallbackIds.get(t);e||this._unregisterTimeoutCallback(t);if(n){const t=r._userActivation;r._userActivation=!1;this._globalEval(n);r._userActivation=t}}_registerTimeout(t,e){const r=Object.create(null),n={callbackId:t,interval:e};this._timeoutIds.set(r,n);this._timeoutIdsRegistry.register(r,n);return r}_unregisterTimeout(t){this._timeoutIdsRegistry.unregister(t);const e=this._timeoutIds.get(t);if(e){this._timeoutIds.delete(t);this._cleanTimeout(e)}}_cleanTimeout({callbackId:t,interval:e}){this._unregisterTimeoutCallback(t);e?this._externalCall("clearInterval",[t]):this._externalCall("clearTimeout",[t])}static _getPlatform(t){if("string"==typeof t){if((t=t.toLowerCase()).includes("win"))return"WIN";if(t.includes("mac"))return"MAC"}return"UNIX"}static _getLanguage(t){const[e,r]=t.toLowerCase().split(/[-_]/,2);switch(e){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[this._document.wrapped]}set activeDocs(t){throw new Error("app.activeDocs is read-only")}get calculate(){return this._document.obj.calculate}set calculate(t){this._document.obj.calculate=t}get constants(){return this._constants??=Object.freeze({align:Object.freeze({left:0,center:1,right:2,top:3,bottom:4})})}set constants(t){throw new Error("app.constants is read-only")}get focusRect(){return this._focusRect}set focusRect(t){this._focusRect=t}get formsVersion(){return 21.00720099}set formsVersion(t){throw new Error("app.formsVersion is read-only")}get fromPDFConverters(){return[]}set fromPDFConverters(t){throw new Error("app.fromPDFConverters is read-only")}get fs(){return this._fs??=new Proxy(new FullScreen({send:this._send}),this._proxyHandler)}set fs(t){throw new Error("app.fs is read-only")}get language(){return this._language}set language(t){throw new Error("app.language is read-only")}get media(){}set media(t){throw new Error("app.media is read-only")}get monitors(){return[]}set monitors(t){throw new Error("app.monitors is read-only")}get numPlugins(){return 0}set numPlugins(t){throw new Error("app.numPlugins is read-only")}get openInPlace(){return this._openInPlace}set openInPlace(t){this._openInPlace=t}get platform(){return this._platform}set platform(t){throw new Error("app.platform is read-only")}get plugins(){return[]}set plugins(t){throw new Error("app.plugins is read-only")}get printColorProfiles(){return[]}set printColorProfiles(t){throw new Error("app.printColorProfiles is read-only")}get printerNames(){return[]}set printerNames(t){throw new Error("app.printerNames is read-only")}get runtimeHighlight(){return this._runtimeHighlight}set runtimeHighlight(t){this._runtimeHighlight=t}get runtimeHighlightColor(){return this._runtimeHighlightColor}set runtimeHighlightColor(t){Color._isValidColor(t)&&(this._runtimeHighlightColor=t)}get thermometer(){return this._thermometer??=new Proxy(new Thermometer({send:this._send}),this._proxyHandler)}set thermometer(t){throw new Error("app.thermometer is read-only")}get toolbar(){return this._toolbar}set toolbar(t){this._toolbar=t}get toolbarHorizontal(){return this.toolbar}set toolbarHorizontal(t){this.toolbar=t}get toolbarVertical(){return this.toolbar}set toolbarVertical(t){this.toolbar=t}get viewerType(){return"PDF.js"}set viewerType(t){throw new Error("app.viewerType is read-only")}get viewerVariation(){return"Full"}set viewerVariation(t){throw new Error("app.viewerVariation is read-only")}get viewerVersion(){return 21.00720099}set viewerVersion(t){throw new Error("app.viewerVersion is read-only")}addMenuItem(){}addSubMenu(){}addToolButton(){}alert(t,e=0,r=0,n="PDF.js",i=null,o=null){if(!this._document.obj._userActivation)return 0;this._document.obj._userActivation=!1;if(t&&"object"==typeof t){r=t.nType;t=t.cMsg}if(!(t=(t||"").toString()))return 0;if((r="number"!=typeof r||isNaN(r)||r<0||r>3?0:r)>=2)return this._externalCall("confirm",[t])?4:3;this._externalCall("alert",[t]);return 1}beep(){}beginPriv(){}browseForDoc(){}clearInterval(t){this._unregisterTimeout(t)}clearTimeOut(t){this._unregisterTimeout(t)}endPriv(){}execDialog(){}execMenuItem(t){if(this._document.obj._userActivation){this._document.obj._userActivation=!1;switch(t){case"SaveAs":if(this._document.obj._disableSaving)return;this._send({command:t});break;case"FirstPage":case"LastPage":case"NextPage":case"PrevPage":case"ZoomViewIn":case"ZoomViewOut":this._send({command:t});break;case"FitPage":this._send({command:"zoom",value:"page-fit"});break;case"Print":if(this._document.obj._disablePrinting)return;this._send({command:"print"})}}}getNthPlugInName(){}getPath(){}goBack(){}goForward(){}hideMenuItem(){}hideToolbarButton(){}launchURL(){}listMenuItems(){}listToolbarButtons(){}loadPolicyFile(){}mailGetAddrs(){}mailMsg(){}newDoc(){}newCollection(){}newFDF(){}openDoc(){}openFDF(){}popUpMenu(){}popUpMenuEx(){}removeToolButton(){}response(t,e="",r="",n="",i=""){if(!this._document.obj._userActivation)return null;this._document.obj._userActivation=!1;if(t&&"object"==typeof t){r=t.cDefault;t=t.cQuestion}t=(t||"").toString();r=(r||"").toString();return this._externalCall("prompt",[t,r||""])}setInterval(t,e=0){if(t&&"object"==typeof t){e=t.nMilliseconds||0;t=t.cExpr}if("string"!=typeof t)throw new TypeError("First argument of app.setInterval must be a string");if("number"!=typeof e)throw new TypeError("Second argument of app.setInterval must be a number");const r=this._registerTimeoutCallback(t);this._externalCall("setInterval",[r,e]);return this._registerTimeout(r,!0)}setTimeOut(t,e=0){if(t&&"object"==typeof t){e=t.nMilliseconds||0;t=t.cExpr}if("string"!=typeof t)throw new TypeError("First argument of app.setTimeOut must be a string");if("number"!=typeof e)throw new TypeError("Second argument of app.setTimeOut must be a number");const r=this._registerTimeoutCallback(t);this._externalCall("setTimeout",[r,e]);return this._registerTimeout(r,!1)}trustedFunction(){}trustPropagatorFunction(){}}__webpack_require__(3110);class Console extends PDFObject{clear(){this._send({id:"clear"})}hide(){}println(t){if("string"!=typeof t)try{t=JSON.stringify(t)}catch{t=t.toString?.()||"[Unserializable object]"}this._send({command:"println",value:"PDF.js Console:: "+t})}show(){}}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:2,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(t){this.lastPage=t.lastPage}}class InfoProxyHandler{static get(t,e){return t[e.toLowerCase()]}static set(t,e,r){throw new Error(`doc.info.${e} is read-only`)}}class Doc extends PDFObject{#e=null;#r=null;constructor(t){super(t);this._expandos=globalThis;this._baseURL=t.baseURL||"";this._calculate=!0;this._delay=!1;this._dirty=!1;this._disclosed=!1;this._media=void 0;this._metadata=t.metadata||"";this._noautocomplete=void 0;this._nocache=void 0;this._spellDictionaryOrder=[];this._spellLanguageOrder=[];this._printParams=null;this._fields=new Map;this._fieldNames=[];this._event=null;this._author=t.Author||"";this._creator=t.Creator||"";this._creationDate=this._getDate(t.CreationDate)||null;this._docID=t.docID||["",""];this._documentFileName=t.filename||"";this._filesize=t.filesize||0;this._keywords=t.Keywords||"";this._layout=t.layout||"";this._modDate=this._getDate(t.ModDate)||null;this._numFields=0;this._numPages=t.numPages||1;this._pageNum=t.pageNum||0;this._producer=t.Producer||"";this._securityHandler=t.EncryptFilterName||null;this._subject=t.Subject||"";this._title=t.Title||"";this._URL=t.URL||"";this._info=new Proxy({title:this._title,author:this._author,authors:t.authors||[this._author],subject:this._subject,keywords:this._keywords,creator:this._creator,producer:this._producer,creationdate:this._creationDate,moddate:this._modDate,trapped:t.Trapped||"Unknown"},InfoProxyHandler);this._zoomType=d.none;this._zoom=t.zoom||100;this._actions=createActionsMap(t.actions);this._globalEval=t.globalEval;this._userActivation=!1;this._disablePrinting=!1;this._disableSaving=!1}_initActions(){for(const{obj:t}of this._fields.values()){const e=t._initialValue;e&&this._send({id:t._id,siblings:t._siblings,value:e,formattedValue:t.value.toString()})}const t=new Set(["WillClose","WillSave","DidSave","WillPrint","DidPrint","OpenAction"]);this._disableSaving=!0;for(const e of this._actions.keys())t.has(e)||this._runActions(e);this._runActions("OpenAction");this._disableSaving=!1}_dispatchDocEvent(t){switch(t){case"Open":this._disableSaving=!0;this._runActions("OpenAction");this._disableSaving=!1;break;case"WillPrint":this._disablePrinting=!0;try{this._runActions(t)}catch(t){this._send(serializeError(t))}this._send({command:"WillPrintFinished"});this._disablePrinting=!1;break;case"WillSave":this._disableSaving=!0;this._runActions(t);this._disableSaving=!1;break;default:this._runActions(t)}}_dispatchPageEvent(t,e,r){if("PageOpen"===t){this.#e??=new Map;this.#e.has(r)||this.#e.set(r,createActionsMap(e));this._pageNum=r-1}for(const n of[this.#e,this.#r]){e=n?.get(r)?.get(t);if(e)for(const t of e)this._globalEval(t)}}_runActions(t){const e=this._actions.get(t);if(e)for(const r of e)try{this._globalEval(r)}catch(e){const r=serializeError(e);r.value=`Error when executing "${t}" for document\\n${r.value}`;this._send(r)}}_addField(t,e){this._fields.set(t,e);this._fieldNames.push(t);this._numFields++;const r=e.obj._actions.get("PageOpen"),n=e.obj._actions.get("PageClose");if(r||n){this.#r??=new Map;const t=this.#r.getOrInsertComputed(e.obj._page+1,makeMap);r&&t.getOrInsertComputed("PageOpen",makeArr).push(...r);n&&t.getOrInsertComputed("PageClose",makeArr).push(...n)}}_getDate(t){if(!t||t.length<15||!t.startsWith("D:"))return t;const e=(t=t.substring(2)).substring(0,4),r=t.substring(4,6),n=t.substring(6,8),i=t.substring(8,10),o=t.substring(10,12),s=t.charAt(12);let a,l;if("Z"===s||"+"===s||"-"===s){a="00";l=12}else{a=t.substring(12,14);l=14}const u=t.substring(l).replaceAll("\'","");return new Date(`${e}-${r}-${n}T${i}:${o}:${a}${u}`)}get author(){return this._author}set author(t){throw new Error("doc.author is read-only")}get baseURL(){return this._baseURL}set baseURL(t){this._baseURL=t}get bookmarkRoot(){}set bookmarkRoot(t){throw new Error("doc.bookmarkRoot is read-only")}get calculate(){return this._calculate}set calculate(t){this._calculate=t}get creator(){return this._creator}set creator(t){throw new Error("doc.creator is read-only")}get dataObjects(){return[]}set dataObjects(t){throw new Error("doc.dataObjects is read-only")}get delay(){return this._delay}set delay(t){this._delay=t}get dirty(){return this._dirty}set dirty(t){this._dirty=t}get disclosed(){return this._disclosed}set disclosed(t){this._disclosed=t}get docID(){return this._docID}set docID(t){throw new Error("doc.docID is read-only")}get documentFileName(){return this._documentFileName}set documentFileName(t){throw new Error("doc.documentFileName is read-only")}get dynamicXFAForm(){return!1}set dynamicXFAForm(t){throw new Error("doc.dynamicXFAForm is read-only")}get external(){return false}set external(t){throw new Error("doc.external is read-only")}get filesize(){return this._filesize}set filesize(t){throw new Error("doc.filesize is read-only")}get hidden(){return!1}set hidden(t){throw new Error("doc.hidden is read-only")}get hostContainer(){}set hostContainer(t){throw new Error("doc.hostContainer is read-only")}get icons(){}set icons(t){throw new Error("doc.icons is read-only")}get info(){return this._info}set info(t){throw new Error("doc.info is read-only")}get innerAppWindowRect(){return[0,0,0,0]}set innerAppWindowRect(t){throw new Error("doc.innerAppWindowRect is read-only")}get innerDocWindowRect(){return[0,0,0,0]}set innerDocWindowRect(t){throw new Error("doc.innerDocWindowRect is read-only")}get isModal(){return!1}set isModal(t){throw new Error("doc.isModal is read-only")}get keywords(){return this._keywords}set keywords(t){throw new Error("doc.keywords is read-only")}get layout(){return this._layout}set layout(t){if(this._userActivation){this._userActivation=!1;if("string"==typeof t){"SinglePage"!==t&&"OneColumn"!==t&&"TwoColumnLeft"!==t&&"TwoPageLeft"!==t&&"TwoColumnRight"!==t&&"TwoPageRight"!==t&&(t="SinglePage");this._send({command:"layout",value:t});this._layout=t}}}get media(){return this._media}set media(t){this._media=t}get metadata(){return this._metadata}set metadata(t){this._metadata=t}get modDate(){return this._modDate}set modDate(t){throw new Error("doc.modDate is read-only")}get mouseX(){return 0}set mouseX(t){throw new Error("doc.mouseX is read-only")}get mouseY(){return 0}set mouseY(t){throw new Error("doc.mouseY is read-only")}get noautocomplete(){return this._noautocomplete}set noautocomplete(t){this._noautocomplete=t}get nocache(){return this._nocache}set nocache(t){this._nocache=t}get numFields(){return this._numFields}set numFields(t){throw new Error("doc.numFields is read-only")}get numPages(){return this._numPages}set numPages(t){throw new Error("doc.numPages is read-only")}get numTemplates(){return 0}set numTemplates(t){throw new Error("doc.numTemplates is read-only")}get outerAppWindowRect(){return[0,0,0,0]}set outerAppWindowRect(t){throw new Error("doc.outerAppWindowRect is read-only")}get outerDocWindowRect(){return[0,0,0,0]}set outerDocWindowRect(t){throw new Error("doc.outerDocWindowRect is read-only")}get pageNum(){return this._pageNum}set pageNum(t){if(this._userActivation){this._userActivation=!1;if(!("number"!=typeof t||t<0||t>=this._numPages)){this._send({command:"page-num",value:t});this._pageNum=t}}}get pageWindowRect(){return[0,0,0,0]}set pageWindowRect(t){throw new Error("doc.pageWindowRect is read-only")}get path(){return""}set path(t){throw new Error("doc.path is read-only")}get permStatusReady(){return!0}set permStatusReady(t){throw new Error("doc.permStatusReady is read-only")}get producer(){return this._producer}set producer(t){throw new Error("doc.producer is read-only")}get requiresFullSave(){return!1}set requiresFullSave(t){throw new Error("doc.requiresFullSave is read-only")}get securityHandler(){return this._securityHandler}set securityHandler(t){throw new Error("doc.securityHandler is read-only")}get selectedAnnots(){return[]}set selectedAnnots(t){throw new Error("doc.selectedAnnots is read-only")}get sounds(){return[]}set sounds(t){throw new Error("doc.sounds is read-only")}get spellDictionaryOrder(){return this._spellDictionaryOrder}set spellDictionaryOrder(t){this._spellDictionaryOrder=t}get spellLanguageOrder(){return this._spellLanguageOrder}set spellLanguageOrder(t){this._spellLanguageOrder=t}get subject(){return this._subject}set subject(t){throw new Error("doc.subject is read-only")}get templates(){return[]}set templates(t){throw new Error("doc.templates is read-only")}get title(){return this._title}set title(t){throw new Error("doc.title is read-only")}get URL(){return this._URL}set URL(t){throw new Error("doc.URL is read-only")}get viewState(){}set viewState(t){throw new Error("doc.viewState is read-only")}get xfa(){return this._xfa}set xfa(t){throw new Error("doc.xfa is read-only")}get XFAForeground(){return!1}set XFAForeground(t){throw new Error("doc.XFAForeground is read-only")}get zoomType(){return this._zoomType}set zoomType(t){if(this._userActivation){this._userActivation=!1;if("string"==typeof t){switch(t){case d.none:this._send({command:"zoom",value:1});break;case d.fitP:this._send({command:"zoom",value:"page-fit"});break;case d.fitW:this._send({command:"zoom",value:"page-width"});break;case d.fitH:this._send({command:"zoom",value:"page-height"});break;case d.fitV:this._send({command:"zoom",value:"auto"});break;case d.pref:case d.refW:break;default:return}this._zoomType=t}}}get zoom(){return this._zoom}set zoom(t){if(this._userActivation){this._userActivation=!1;"number"!=typeof t||t<8.33||t>6400||this._send({command:"zoom",value:t/100})}}addAnnot(){}addField(){}addIcon(){}addLink(){}addRecipientListCryptFilter(){}addRequirement(){}addScript(){}addThumbnails(){}addWatermarkFromFile(){}addWatermarkFromText(){}addWeblinks(){}bringToFront(){}calculateNow(){this._eventDispatcher.calculateNow()}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(t){t&&"object"==typeof t&&(t=t.cName);if("string"!=typeof t)throw new TypeError("Invalid field name: must be a string");const e=this._fields.get(t);if(e)return e;const r=t.split("#");let n=NaN;if(2===r.length){n=Math.floor(parseFloat(r[1]));t=r[0]}for(const[e,r]of this._fields)if(e.endsWith(t)){if(!isNaN(n)){const r=this._getChildren(e);(n<0||n>=r.length)&&(n=0);if(n<r.length){this._fields.set(t,r[n]);return r[n]}}this._fields.set(t,r);return r}return null}getField(t){const e=this._getField(t);return e?e.wrapped:null}_getChildren(t){const e=t.length,r=[],n=/^\\.[^.]+$/;for(const[i,o]of this._fields)if(i.startsWith(t)){const t=i.slice(e);n.test(t)&&r.push(o)}return r}_getTerminalChildren(t){const e=[],r=t.length;for(const[n,i]of this._fields)if(n.startsWith(t)){const t=n.slice(r);i.obj._hasValue&&(""===t||t.startsWith("."))&&e.push(i.wrapped)}return e}getIcon(){}getLegalWarnings(){}getLinks(){}getNthFieldName(t){t&&"object"==typeof t&&(t=t.nIndex);if("number"!=typeof t)throw new TypeError("Invalid field index: must be a number");return 0<=t&&t<this.numFields?this._fieldNames[Math.trunc(t)]:null}getNthTemplate(){return null}getOCGs(){}getOCGOrder(){}getPageBox(){}getPageLabel(){}getPageNthWord(){}getPageNthWordQuads(){}getPageNumWords(){}getPageRotation(){}getPageTransition(){}getPrintParams(){return this._printParams||=new PrintParams({lastPage:this._numPages-1})}getSound(){}getTemplate(){}getURL(){}gotoNamedDest(){}importAnFDF(){}importAnXFDF(){}importDataObject(){}importIcon(){}importSound(){}importTextData(){}importXFAData(){}insertPages(){}mailDoc(){}mailForm(){}movePage(){}newPage(){}openDataObject(){}print(t=!0,e=0,r=-1,n=!1,i=!1,o=!1,s=!1,a=!0,l=null){if(!this._disablePrinting&&this._userActivation){this._userActivation=!1;if(t&&"object"==typeof t){e=t.nStart;r=t.nEnd;t.bSilent;t.bShrinkToFit;t.bPrintAsImage;t.bReverse;t.bAnnotations;l=t.printParams;t=t.bUI}if(l){e=l.firstPage;r=l.lastPage}e="number"==typeof e?Math.max(0,Math.trunc(e)):0;r="number"==typeof r?Math.max(0,Math.trunc(r)):-1;this._send({command:"print",start:e,end:r})}}removeDataObject(){}removeField(){}removeIcon(){}removeLinks(){}removeRequirement(){}removeScript(){}removeTemplate(){}removeThumbnails(){}removeWeblinks(){}replacePages(){}resetForm(t=null){t&&"object"==typeof t&&!Array.isArray(t)&&(t=t.aFields);t&&!Array.isArray(t)&&(t=[t]);let e,r=!1;if(t){e=[];for(const n of t){if(!n)continue;if("string"!=typeof n){e=null;break}const t=this._getField(n);if(t){e.push(t);r=!0}}}if(!e){e=this._fields.values();r=0!==this._fields.size}for(const t of e){t.obj.value=t.obj.defaultValue;this._send({id:t.obj._id,siblings:t.obj._siblings,value:t.obj.defaultValue,formattedValue:null,selRange:[0,0]})}r&&this.calculateNow()}saveAs(){}scroll(){}selectPageNthWord(){}setAction(){}setDataObjectContents(){}setOCGOrder(){}setPageAction(){}setPageBoxes(){}setPageLabels(){}setPageRotations(){}setPageTabOrder(){}setPageTransitions(){}spawnPageFromTemplate(){}submitForm(){}syncAnnotScan(){}}class ProxyHandler{nosend=new Set(["delay"]);get(t,e){if(e in t._expandos){const r=t._expandos[e];return"function"==typeof r?r.bind(t):r}if("string"==typeof e&&!e.startsWith("_")&&e in t){const r=t[e];return"function"==typeof r?r.bind(t):r}}set(t,e,r){t._kidIds&&t._kidIds.forEach(n=>{t._appObjects[n].wrapped[e]=r});if("string"==typeof e&&!e.startsWith("_")&&e in t){const n=t[e];t[e]=r;if(!this.nosend.has(e)&&t._send&&null!==t._id&&"function"!=typeof n){const r={id:t._id};r[e]="value"===e?t._getValue():t[e];if(t._siblings){r.siblings=t._siblings;t._send(r)}else t._send(r)}}else t._expandos[e]=r;return!0}has(t,e){return e in t._expandos||"string"==typeof e&&!e.startsWith("_")&&e in t}getPrototypeOf(t){return null}setPrototypeOf(t,e){return!1}isExtensible(t){return!0}preventExtensions(t){return!1}getOwnPropertyDescriptor(t,e){return e in t._expandos?{configurable:!0,enumerable:!0,value:t._expandos[e]}:"string"==typeof e&&!e.startsWith("_")&&e in t?{configurable:!0,enumerable:!0,value:t[e]}:void 0}defineProperty(t,e,r){Object.defineProperty(t._expandos,e,r);return!0}deleteProperty(t,e){e in t._expandos&&delete t._expandos[e]}ownKeys(t){const e=Reflect.ownKeys(t._expandos),r=Reflect.ownKeys(t).filter(t=>!t.startsWith("_"));return e.concat(r)}}class Util extends PDFObject{#n=null;constructor(t){super(t);this._scandCache=new Map;this._months=["January","February","March","April","May","June","July","August","September","October","November","December"];this._days=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];this.MILLISECONDS_IN_DAY=864e5;this.MILLISECONDS_IN_WEEK=6048e5;this._externalCall=t.externalCall}printf(...t){if(0===t.length)throw new Error("Invalid number of params in printf");if("string"!=typeof t[0])throw new TypeError("First argument of printf must be a string");let e=0;return t[0].replaceAll(/%(,[0-4])?([+ 0#]+)?(\\d+)?(\\.\\d+)?(.)/g,function(r,n,i,o,s,a){if("d"!==a&&"f"!==a&&"s"!==a&&"x"!==a){const t=["%"];for(const e of[n,i,o,s,a])e&&t.push(e);return t.join("")}e++;if(e===t.length)throw new Error("Not enough arguments in printf");const l=t[e];if("s"===a)return l.toString();let u=0;if(i)for(const t of i)switch(t){case"+":u|=1;break;case" ":u|=2;break;case"0":u|=4;break;case"#":u|=8}i=u;o&&(o=parseInt(o));let c=Math.trunc(l);if("x"===a){let t=Math.abs(c).toString(16).toUpperCase();void 0!==o&&(t=t.padStart(o,4&i?"0":" "));8&i&&(t=`0x${t}`);return t}s&&(s=parseInt(s.substring(1)));n=n?n.substring(1):"0";const[h,d]={0:[",","."],1:["","."],2:[".",","],3:["",","],4:["\'","."]}[n];let p="";if("f"===a){p=void 0!==s?Math.abs(l-c).toFixed(s):Math.abs(l-c).toString();if(p.length>2)if(/^1\\.0+$/.test(p)){c+=Math.sign(l);p=`${d}${p.split(".")[1]}`}else p=`${d}${p.substring(2)}`;else{"1"===p&&(c+=Math.sign(l));p=8&i?".":""}}let f="";if(c<0){f="-";c=-c}else 1&i?f="+":2&i&&(f=" ");if(h&&c>=1e3){const t=[];for(;;){t.push((c%1e3).toString().padStart(3,"0"));c=Math.trunc(c/1e3);if(c<1e3){t.push(c.toString());break}}c=t.reverse().join(h)}else c=c.toString();let g=`${c}${p}`;void 0!==o&&(g=g.padStart(o-f.length,4&i?"0":" "));return`${f}${g}`})}iconStreamFromIcon(){}printd(t,e){switch(t){case 0:return this.printd("D:yyyymmddHHMMss",e);case 1:return this.printd("yyyy.mm.dd HH:MM:ss",e);case 2:return this.printd("m/d/yy h:MM:ss tt",e)}const r={mmmm:t=>this._months[t.month],mmm:t=>this._months[t.month].substring(0,3),mm:t=>(t.month+1).toString().padStart(2,"0"),m:t=>(t.month+1).toString(),dddd:t=>this._days[t.dayOfWeek],ddd:t=>this._days[t.dayOfWeek].substring(0,3),dd:t=>t.day.toString().padStart(2,"0"),d:t=>t.day.toString(),yyyy:t=>t.year.toString().padStart(4,"0"),yy:t=>(t.year%100).toString().padStart(2,"0"),HH:t=>t.hours.toString().padStart(2,"0"),H:t=>t.hours.toString(),hh:t=>(1+(t.hours+11)%12).toString().padStart(2,"0"),h:t=>(1+(t.hours+11)%12).toString(),MM:t=>t.minutes.toString().padStart(2,"0"),M:t=>t.minutes.toString(),ss:t=>t.seconds.toString().padStart(2,"0"),s:t=>t.seconds.toString(),tt:t=>t.hours<12?"am":"pm",t:t=>t.hours<12?"a":"p"},n={year:e.getFullYear(),month:e.getMonth(),day:e.getDate(),dayOfWeek:e.getDay(),hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()};return t.replaceAll(/(mmmm|mmm|mm|m|dddd|ddd|dd|d|yyyy|yy|HH|H|hh|h|MM|M|ss|s|tt|t|\\\\.)/g,function(t,e){return e in r?r[e](n):e.charCodeAt(1)})}printx(t,e){const r=[t=>t,t=>t.toUpperCase(),t=>t.toLowerCase()],n=[];let i=0;const o=(e=(e??"").toString()).length;let s=r[0],a=!1;for(const l of t)if(a){n.push(l);a=!1}else{if(i>=o)break;switch(l){case"?":n.push(s(e.charAt(i++)));break;case"X":for(;i<o;){const t=e.charAt(i++);if("a"<=t&&t<="z"||"A"<=t&&t<="Z"||"0"<=t&&t<="9"){n.push(s(t));break}}break;case"A":for(;i<o;){const t=e.charAt(i++);if("a"<=t&&t<="z"||"A"<=t&&t<="Z"){n.push(s(t));break}}break;case"9":for(;i<o;){const t=e.charAt(i++);if("0"<=t&&t<="9"){n.push(t);break}}break;case"*":for(;i<o;)n.push(s(e.charAt(i++)));break;case"\\\\":a=!0;break;case">":s=r[1];break;case"<":s=r[2];break;case"=":s=r[0];break;default:n.push(l)}}return n.join("")}#i(t,e){let r=(this.#n||=new Map).get(t);if(!r){r=[];this.#n.set(t,r);t.replaceAll(/(d+)|(m+)|(y+)|(H+)|(M+)|(s+)/g,function(t,e,n,i,o,s,a){e?r.push((t,e)=>{if(t>=1&&t<=31){e.day=t;return!0}return!1}):n?r.push((t,e)=>{if(t>=1&&t<=12){e.month=t-1;return!0}return!1}):i?r.push((t,e)=>{t<50?t+=2e3:t<100&&(t+=1900);e.year=t;return!0}):o?r.push((t,e)=>{if(t>=0&&t<=23){e.hours=t;return!0}return!1}):s?r.push((t,e)=>{if(t>=0&&t<=59){e.minutes=t;return!0}return!1}):a&&r.push((t,e)=>{if(t>=0&&t<=59){e.seconds=t;return!0}return!1});return""})}const n=/\\d+/g;let i,o=0;const s={year:(new Date).getFullYear(),month:0,day:1,hours:12,minutes:0,seconds:0};for(;null!==(i=n.exec(e))&&o<r.length;)if(!r[o++](parseInt(i[0]),s))return null;return 0===o?null:new Date(s.year,s.month,s.day,s.hours,s.minutes,s.seconds)}scand(t,e){return this._scand(t,e)}_scand(t,e,r=!1){if("string"!=typeof e)return new Date(e);if(""===e)return new Date;switch(t){case 0:return this.scand("D:yyyymmddHHMMss",e);case 1:return this.scand("yyyy.mm.dd HH:MM:ss",e);case 2:return this.scand("m/d/yy h:MM:ss tt",e)}if(!this._scandCache.has(t)){const e=this._months,r=this._days,n={mmmm:{pattern:`(${e.join("|")})`,action:(t,r)=>{r.month=e.indexOf(t)}},mmm:{pattern:`(${e.map(t=>t.substring(0,3)).join("|")})`,action:(t,r)=>{r.month=e.findIndex(e=>e.substring(0,3)===t)}},mm:{pattern:"(\\\\d{2})",action:(t,e)=>{e.month=parseInt(t)-1}},m:{pattern:"(\\\\d{1,2})",action:(t,e)=>{e.month=parseInt(t)-1}},dddd:{pattern:`(${r.join("|")})`,action:(t,e)=>{e.day=r.indexOf(t)}},ddd:{pattern:`(${r.map(t=>t.substring(0,3)).join("|")})`,action:(t,e)=>{e.day=r.findIndex(e=>e.substring(0,3)===t)}},dd:{pattern:"(\\\\d{2})",action:(t,e)=>{e.day=parseInt(t)}},d:{pattern:"(\\\\d{1,2})",action:(t,e)=>{e.day=parseInt(t)}},yyyy:{pattern:"(\\\\d{4})",action:(t,e)=>{e.year=parseInt(t)}},yy:{pattern:"(\\\\d{2})",action:(t,e)=>{e.year=2e3+parseInt(t)}},HH:{pattern:"(\\\\d{2})",action:(t,e)=>{e.hours=parseInt(t)}},H:{pattern:"(\\\\d{1,2})",action:(t,e)=>{e.hours=parseInt(t)}},hh:{pattern:"(\\\\d{2})",action:(t,e)=>{e.hours=parseInt(t)}},h:{pattern:"(\\\\d{1,2})",action:(t,e)=>{e.hours=parseInt(t)}},MM:{pattern:"(\\\\d{2})",action:(t,e)=>{e.minutes=parseInt(t)}},M:{pattern:"(\\\\d{1,2})",action:(t,e)=>{e.minutes=parseInt(t)}},ss:{pattern:"(\\\\d{2})",action:(t,e)=>{e.seconds=parseInt(t)}},s:{pattern:"(\\\\d{1,2})",action:(t,e)=>{e.seconds=parseInt(t)}},tt:{pattern:"([aApP][mM])",action:(t,e)=>{const r=t.charAt(0);e.am="a"===r||"A"===r}},t:{pattern:"([aApP])",action:(t,e)=>{e.am="a"===t||"A"===t}}},i=t.replaceAll(/[.*+\\-?^${}()|[\\]\\\\]/g,"\\\\$&"),o=/(mmmm|mmm|mm|m|dddd|ddd|dd|d|yyyy|yy|HH|H|hh|h|MM|M|ss|s|tt|t)/g,s=[],a=i.replaceAll(o,function(t,e){const{pattern:r,action:i}=n[e];s.push(i);return r});this._scandCache.set(t,[a,s])}const[n,i]=this._scandCache.get(t),o=new RegExp(`^${n}$`,"g").exec(e);if(!o||o.length!==i.length+1)return r?null:this.#i(t,e);const s={year:2e3,month:0,day:1,hours:0,minutes:0,seconds:0,am:null};i.forEach((t,e)=>t(o[e+1],s));null!==s.am&&(s.hours=s.hours%12+(s.am?0:12));return new Date(s.year,s.month,s.day,s.hours,s.minutes,s.seconds)}spansToXML(){}stringFromStream(){}xmlToSpans(){}}globalThis.pdfjsScripting={initSandbox:function initSandbox(t){delete globalThis.pdfjsScripting;const e=globalThis.callExternalFunction;delete globalThis.callExternalFunction;const globalEval=t=>globalThis.eval(t),send=t=>e("send",[t]),f=new ProxyHandler,{data:g}=t,_=new Doc({send,globalEval,...g.docInfo}),m={obj:_,wrapped:new Proxy(_,f)},b=new App({send,globalEval,externalCall:e,_document:m,calculationOrder:g.calculationOrder,proxyHandler:f,...g.appInfo}),y=new Util({externalCall:e}),v=b._objects;if(g.objects){const t=[];for(const[e,r]of Object.entries(g.objects)){t.length=0;let n=null;for(const e of r)""!==e.type?t.push(e):n=e;let i=n;if(t.length>0){i=t[0];i.send=send}i.globalEval=globalEval;i.doc=m;i.fieldPath=e;i.appObjects=v;i.util=y;const o=t.slice(1);let s;switch(i.type){case"radiobutton":s=new RadioButtonField(o,i);break;case"checkbox":s=new CheckboxField(o,i);break;default:o.length>0&&(i.siblings=o.map(t=>t.id));s=new Field(i)}const a={obj:s,wrapped:new Proxy(s,f)};_._addField(e,a);for(const t of r)v[t.id]=a;n&&(v[n.id]=a)}}const w=new Color;globalThis.event=null;globalThis.global=Object.create(null);globalThis.app=new Proxy(b,f);globalThis.color=new Proxy(w,f);globalThis.console=new Proxy(new Console({send}),f);globalThis.util=new Proxy(y,f);globalThis.border=r;globalThis.cursor=n;globalThis.display=i;globalThis.font=o;globalThis.highlight=s;globalThis.position=a;globalThis.scaleHow=l;globalThis.scaleWhen=u;globalThis.style=c;globalThis.trans=h;globalThis.zoomtype=d;globalThis.ADBE={Reader_Value_Asked:!0,Viewer_Value_Asked:!0};const x=new AForm(_,b,y,w);for(const t of Object.getOwnPropertyNames(AForm.prototype))"constructor"===t||t.startsWith("_")||(globalThis[t]=x[t].bind(x));for(const[t,e]of Object.entries(p))Object.defineProperty(globalThis,t,{value:e,writable:!1});Object.defineProperties(globalThis,{ColorConvert:{value:w.convert.bind(w),writable:!0},ColorEqual:{value:w.equal.bind(w),writable:!0}});const A=Object.create(null);for(const t of Object.getOwnPropertyNames(Doc.prototype)){if("constructor"===t||t.startsWith("_"))continue;const e=Object.getOwnPropertyDescriptor(Doc.prototype,t);e.get?A[t]={get:e.get.bind(_),set:e.set.bind(_)}:A[t]={value:Doc.prototype[t].bind(_)}}Object.defineProperties(globalThis,A);const S={dispatchEvent:b._dispatchEvent.bind(b),timeoutCb:b._evalCallback.bind(b)};return(t,e)=>{try{S[t](e)}catch(t){send(serializeError(t))}}}};'];e.push("delete dump;");let r=!1,n=0;try{const i=JSON.stringify(t);e.push(`pdfjsScripting.initSandbox({ data: ${i} })`);n=this._module.stringToNewUTF8(e.join("\n"));r=!!this._module.ccall("init","number",["number","number"],[n,this._alertOnError])}catch(t){console.error(t)}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(t){this.support?.callSandboxFunction("dispatchEvent",t)}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(t,e){throw new Error("Not implemented: evalForTesting")}}async function QuickJSSandbox(t="../web/wasm/"){const{default:e}=await import(
|
||
/*webpackIgnore: true*/
|
||
/*@vite-ignore*/
|
||
`${t}quickjs-eval.js`),r=await e();return new Sandbox(window,r)}globalThis.pdfjsSandbox={QuickJSSandbox};export{QuickJSSandbox}; |