@nutrient-sdk/viewer
Version:
View and annotate PDF files in your web app. Full support for mobile and desktop. Runs in the browser using WASM.
13 lines • 162 kB
JavaScript
/*!
* Nutrient Web SDK 1.15.1 (https://www.nutrient.io/sdk/web)
*
* Copyright (c) 2016-2026 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
* This notice may not be removed from this file.
*
* PSPDFKit uses several open source third-party components: https://www.nutrient.io/legal/acknowledgements/web-acknowledgements/
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.NutrientViewer=e():t.NutrientViewer=e()}(globalThis,()=>(()=>{var t={71300(t,e,r){"use strict";var n=r(51711),i=r(39253),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not a function")}},28777(t,e,r){"use strict";var n=r(37060),i=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not an object")}},56335(t,e,r){"use strict";var n=r(27963),i=r(93132),o=r(52676),s=function(t){return function(e,r,s){var a=n(e),u=o(a);if(0===u)return!t&&-1;var c,f=i(s,u);if(t&&r!=r){for(;u>f;)if((c=a[f++])!=c)return!0}else for(;u>f;f++)if((t||f in a)&&a[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},54806(t,e,r){"use strict";var n=r(25942);t.exports=n([].slice)},97122(t,e,r){"use strict";var n=r(25942),i=n({}.toString),o=n("".slice);t.exports=function(t){return o(i(t),8,-1)}},42666(t,e,r){"use strict";var n=r(3199),i=r(78133),o=r(58901),s=r(2839);t.exports=function(t,e,r){for(var a=i(e),u=s.f,c=o.f,f=0;f<a.length;f++){var l=a[f];n(t,l)||r&&n(r,l)||u(t,l,c(e,l))}}},87481(t,e,r){"use strict";var n=r(15322),i=r(2839),o=r(31966);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},31966(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},89422(t,e,r){"use strict";var n=r(51711),i=r(2839),o=r(36437),s=r(32227);t.exports=function(t,e,r,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:e;if(n(r)&&o(r,c,a),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}},32227(t,e,r){"use strict";var n=r(98950),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}},15322(t,e,r){"use strict";var n=r(36101);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},58269(t,e,r){"use strict";var n=r(98950),i=r(37060),o=n.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},57737(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},37670(t,e,r){"use strict";var n=r(55921);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},42491(t,e,r){"use strict";var n=r(28765);t.exports="NODE"===n},55921(t,e,r){"use strict";var n=r(98950).navigator,i=n&&n.userAgent;t.exports=i?String(i):""},17617(t,e,r){"use strict";var n,i,o=r(98950),s=r(55921),a=o.process,u=o.Deno,c=a&&a.versions||u&&u.version,f=c&&c.v8;f&&(i=(n=f.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},28765(t,e,r){"use strict";var n=r(98950),i=r(55921),o=r(97122),s=function(t){return i.slice(0,t.length)===t};t.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},26976(t,e,r){"use strict";var n=r(98950),i=r(58901).f,o=r(87481),s=r(89422),a=r(32227),u=r(42666),c=r(62302);t.exports=function(t,e){var r,f,l,h,p,d=t.target,_=t.global,y=t.stat;if(r=_?n:y?n[d]||a(d,{}):n[d]&&n[d].prototype)for(f in e){if(h=e[f],l=t.dontCallGetSet?(p=i(r,f))&&p.value:r[f],!c(_?f:d+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;u(h,l)}(t.sham||l&&l.sham)&&o(h,"sham",!0),s(r,f,h,t)}}},36101(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},15279(t,e,r){"use strict";var n=r(97926),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)})},11574(t,e,r){"use strict";var n=r(50286),i=r(71300),o=r(97926),s=n(n.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},97926(t,e,r){"use strict";var n=r(36101);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},67987(t,e,r){"use strict";var n=r(97926),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},15708(t,e,r){"use strict";var n=r(15322),i=r(3199),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,c=a&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},50286(t,e,r){"use strict";var n=r(97122),i=r(25942);t.exports=function(t){if("Function"===n(t))return i(t)}},25942(t,e,r){"use strict";var n=r(97926),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)}}},46109(t,e,r){"use strict";var n=r(98950),i=r(51711);t.exports=function(t,e){return arguments.length<2?(r=n[t],i(r)?r:void 0):n[t]&&n[t][e];var r}},21104(t,e,r){"use strict";var n=r(71300),i=r(72339);t.exports=function(t,e){var r=t[e];return i(r)?void 0:n(r)}},98950(t){"use strict";var e=function(t){return t&&t.Math===Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof globalThis&&globalThis)||e("object"==typeof this&&this)||function(){return this}()||Function("return this")()},3199(t,e,r){"use strict";var n=r(25942),i=r(63815),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},76159(t){"use strict";t.exports={}},98871(t,e,r){"use strict";var n=r(46109);t.exports=n("document","documentElement")},61539(t,e,r){"use strict";var n=r(15322),i=r(36101),o=r(58269);t.exports=!n&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},22389(t,e,r){"use strict";var n=r(25942),i=r(36101),o=r(97122),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},36960(t,e,r){"use strict";var n=r(25942),i=r(51711),o=r(95531),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},78751(t,e,r){"use strict";var n,i,o,s=r(63184),a=r(98950),u=r(37060),c=r(87481),f=r(3199),l=r(95531),h=r(84741),p=r(76159),d="Object already initialized",_=a.TypeError,y=a.WeakMap;if(s||l.state){var g=l.state||(l.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,e){if(g.has(t))throw new _(d);return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var m=h("state");p[m]=!0,n=function(t,e){if(f(t,m))throw new _(d);return e.facade=t,c(t,m,e),e},i=function(t){return f(t,m)?t[m]:{}},o=function(t){return f(t,m)}}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 _("Incompatible receiver, "+t+" required");return r}}}},51711(t){"use strict";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}},62302(t,e,r){"use strict";var n=r(36101),i=r(51711),o=/#|\.prototype\./,s=function(t,e){var r=u[a(t)];return r===f||r!==c&&(i(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},72339(t){"use strict";t.exports=function(t){return null==t}},37060(t,e,r){"use strict";var n=r(51711);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},8377(t){"use strict";t.exports=!1},2411(t,e,r){"use strict";var n=r(46109),i=r(51711),o=r(71019),s=r(51514),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))}},52676(t,e,r){"use strict";var n=r(85664);t.exports=function(t){return n(t.length)}},36437(t,e,r){"use strict";var n=r(25942),i=r(36101),o=r(51711),s=r(3199),a=r(15322),u=r(15708).CONFIGURABLE,c=r(36960),f=r(78751),l=f.enforce,h=f.get,p=String,d=Object.defineProperty,_=n("".slice),y=n("".replace),g=n([].join),m=a&&!i(function(){return 8!==d(function(){},"length",{value:8}).length}),v=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===_(p(e),0,7)&&(e="["+y(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!s(t,"name")||u&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&s(r,"arity")&&t.length!==r.arity&&d(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=l(t);return s(n,"source")||(n.source=g(v,"string"==typeof e?e:"")),t};Function.prototype.toString=w(function(){return o(this)&&h(this).source||c(this)},"toString")},50395(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},2839(t,e,r){"use strict";var n=r(15322),i=r(61539),o=r(70532),s=r(28777),a=r(66355),u=TypeError,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",h="configurable",p="writable";e.f=n?o?function(t,e,r){if(s(t),e=a(e),s(r),"function"==typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]){var n=f(t,e);n&&n[p]&&(t[e]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:l in r?r[l]:n[l],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(s(t),e=a(e),s(r),i)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},58901(t,e,r){"use strict";var n=r(15322),i=r(67987),o=r(54695),s=r(31966),a=r(27963),u=r(66355),c=r(3199),f=r(61539),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=a(t),e=u(e),f)try{return l(t,e)}catch(t){}if(c(t,e))return s(!i(o.f,t,e),t[e])}},66106(t,e,r){"use strict";var n=r(54658),i=r(57737).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},3375(t,e){"use strict";e.f=Object.getOwnPropertySymbols},71019(t,e,r){"use strict";var n=r(25942);t.exports=n({}.isPrototypeOf)},54658(t,e,r){"use strict";var n=r(25942),i=r(3199),o=r(27963),s=r(56335).indexOf,a=r(76159),u=n([].push);t.exports=function(t,e){var r,n=o(t),c=0,f=[];for(r in n)!i(a,r)&&i(n,r)&&u(f,r);for(;e.length>c;)i(n,r=e[c++])&&(~s(f,r)||u(f,r));return f}},54695(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},12592(t,e,r){"use strict";var n=r(67987),i=r(51711),o=r(37060),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")}},78133(t,e,r){"use strict";var n=r(46109),i=r(25942),o=r(66106),s=r(3375),a=r(28777),u=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),r=s.f;return r?u(e,r(t)):e}},97460(t,e,r){"use strict";var n=r(72339),i=TypeError;t.exports=function(t){if(n(t))throw new i("Can't call method on "+t);return t}},79694(t,e,r){"use strict";var n,i=r(98950),o=r(15279),s=r(51711),a=r(28765),u=r(55921),c=r(54806),f=r(41214),l=i.Function,h=/MSIE .\./.test(u)||"BUN"===a&&((n=i.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));t.exports=function(t,e){var r=e?2:1;return h?function(n,i){var a=f(arguments.length,1)>r,u=s(n)?n:l(n),h=a?c(arguments,r):[],p=a?function(){o(u,this,h)}:u;return e?t(p,i):t(p)}:t}},84741(t,e,r){"use strict";var n=r(2363),i=r(50614),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},95531(t,e,r){"use strict";var n=r(8377),i=r(98950),o=r(32227),s="__core-js_shared__",a=t.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.47.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})},2363(t,e,r){"use strict";var n=r(95531);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},38225(t,e,r){"use strict";var n=r(17617),i=r(36101),o=r(98950).String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},92011(t,e,r){"use strict";var n,i,o,s,a=r(98950),u=r(15279),c=r(11574),f=r(51711),l=r(3199),h=r(36101),p=r(98871),d=r(54806),_=r(58269),y=r(41214),g=r(37670),m=r(42491),v=a.setImmediate,w=a.clearImmediate,b=a.process,S=a.Dispatch,O=a.Function,I=a.MessageChannel,x=a.String,E=0,F={},A="onreadystatechange";h(function(){n=a.location});var D=function(t){if(l(F,t)){var e=F[t];delete F[t],e()}},P=function(t){return function(){D(t)}},M=function(t){D(t.data)},j=function(t){a.postMessage(x(t),n.protocol+"//"+n.host)};v&&w||(v=function(t){y(arguments.length,1);var e=f(t)?t:O(t),r=d(arguments,1);return F[++E]=function(){u(e,void 0,r)},i(E),E},w=function(t){delete F[t]},m?i=function(t){b.nextTick(P(t))}:S&&S.now?i=function(t){S.now(P(t))}:I&&!g?(s=(o=new I).port2,o.port1.onmessage=M,i=c(s.postMessage,s)):a.addEventListener&&f(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!h(j)?(i=j,a.addEventListener("message",M,!1)):i=A in _("script")?function(t){p.appendChild(_("script"))[A]=function(){p.removeChild(this),D(t)}}:function(t){setTimeout(P(t),0)}),t.exports={set:v,clear:w}},93132(t,e,r){"use strict";var n=r(3817),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)}},27963(t,e,r){"use strict";var n=r(22389),i=r(97460);t.exports=function(t){return n(i(t))}},3817(t,e,r){"use strict";var n=r(50395);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},85664(t,e,r){"use strict";var n=r(3817),i=Math.min;t.exports=function(t){var e=n(t);return e>0?i(e,9007199254740991):0}},63815(t,e,r){"use strict";var n=r(97460),i=Object;t.exports=function(t){return i(n(t))}},93615(t,e,r){"use strict";var n=r(67987),i=r(37060),o=r(2411),s=r(21104),a=r(12592),u=r(21541),c=TypeError,f=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var r,u=s(t,f);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!i(r)||o(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},66355(t,e,r){"use strict";var n=r(93615),i=r(2411);t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},39253(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},50614(t,e,r){"use strict";var n=r(25942),i=0,o=Math.random(),s=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},51514(t,e,r){"use strict";var n=r(38225);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},70532(t,e,r){"use strict";var n=r(15322),i=r(36101);t.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},41214(t){"use strict";var e=TypeError;t.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},63184(t,e,r){"use strict";var n=r(98950),i=r(51711),o=n.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},21541(t,e,r){"use strict";var n=r(98950),i=r(2363),o=r(3199),s=r(50614),a=r(38225),u=r(51514),c=n.Symbol,f=i("wks"),l=u?c.for||c:c&&c.withoutSetter||s;t.exports=function(t){return o(f,t)||(f[t]=a&&o(c,t)?c[t]:l("Symbol."+t)),f[t]}},85282(t,e,r){"use strict";var n=r(26976),i=r(98950),o=r(92011).clear;n({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},70562(t,e,r){"use strict";r(85282),r(12843)},12843(t,e,r){"use strict";var n=r(26976),i=r(98950),o=r(92011).set,s=r(79694),a=i.setImmediate?s(o,!1):o;n({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==a},{setImmediate:a})},92448(){},95920(t){t.exports="9f07cb1c668bde3c"},41211(t){t.exports="c72868a4410f52a1"}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);return(()=>{"use strict";r(70562);"object"==typeof window&&(window._babelPolyfill=!1);const t=function t(e){let r;return r=e instanceof Error?e:new Error(e),Object.setPrototypeOf(r,t.prototype),r};t.prototype=Object.create(Error.prototype,{name:{value:"PSPDFKitError",enumerable:!1}});const e=t;function n(t,r){if(!t)throw new e(`Assertion failed: ${r||"Condition not met"}\n\nFor further assistance, please go to: https://www.nutrient.io/support/request`)}function i(t){console.log(t)}function o(){console.warn(...arguments)}function s(t){console.error(t)}["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function c(t,e,r){return(e=u(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}new WeakMap;Symbol.for("nutrient.web.trustedTypesPolicy");const f=Symbol("Comlink.proxy"),l=Symbol("Comlink.endpoint"),h=Symbol("Comlink.releaseProxy"),p=Symbol("Comlink.finalizer"),d=Symbol("Comlink.thrown"),_=t=>"object"==typeof t&&null!==t||"function"==typeof t,y={canHandle:t=>_(t)&&t[f],serialize(t){const{port1:e,port2:r}=new MessageChannel;return m(t,e),[r,[r]]},deserialize:t=>(t.start(),function(t,e){const r=new Map;return t.addEventListener("message",function(t){const{data:e}=t;if(!e||!e.id)return;const n=r.get(e.id);if(n)try{n(e)}finally{r.delete(e.id)}}),I(t,r,[],e)}(t))},g=new Map([["proxy",y],["throw",{canHandle:t=>_(t)&&d in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function m(t,e=globalThis,r=["*"]){e.addEventListener("message",function n(i){if(!i||!i.data)return;if(!function(t,e){for(const r of t){if(e===r||"*"===r)return!0;if(r instanceof RegExp&&r.test(e))return!0}return!1}(r,i.origin))return void console.warn(`Invalid origin '${i.origin}' for comlink proxy`);const{id:o,type:s,path:a}=Object.assign({path:[]},i.data),u=(i.data.argumentList||[]).map(A);let c;try{const e=a.slice(0,-1).reduce((t,e)=>t[e],t),r=a.reduce((t,e)=>t[e],t);switch(s){case"GET":c=r;break;case"SET":e[a.slice(-1)[0]]=A(i.data.value),c=!0;break;case"APPLY":c=r.apply(e,u);break;case"CONSTRUCT":c=function(t){return Object.assign(t,{[f]:!0})}(new r(...u));break;case"ENDPOINT":{const{port1:e,port2:r}=new MessageChannel;m(t,r),c=function(t,e){return E.set(t,e),t}(e,[e])}break;case"RELEASE":c=void 0;break;default:return}}catch(t){c={value:t,[d]:0}}Promise.resolve(c).catch(t=>({value:t,[d]:0})).then(r=>{const[i,a]=F(r);e.postMessage(Object.assign(Object.assign({},i),{id:o}),a),"RELEASE"===s&&(e.removeEventListener("message",n),v(e),p in t&&"function"==typeof t[p]&&t[p]())}).catch(t=>{const[r,n]=F({value:new TypeError("Unserializable return value"),[d]:0});e.postMessage(Object.assign(Object.assign({},r),{id:o}),n)})}),e.start&&e.start()}function v(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function w(t){if(t)throw new Error("Proxy has been released and is not useable")}function b(t){return D(t,new Map,{type:"RELEASE"}).then(()=>{v(t)})}const S=new WeakMap,O="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(S.get(t)||0)-1;S.set(t,e),0===e&&b(t)});function I(t,e,r=[],n=function(){}){let i=!1;const o=new Proxy(n,{get(n,s){if(w(i),s===h)return()=>{!function(t){O&&O.unregister(t)}(o),b(t),e.clear(),i=!0};if("then"===s){if(0===r.length)return{then:()=>o};const n=D(t,e,{type:"GET",path:r.map(t=>t.toString())}).then(A);return n.then.bind(n)}return I(t,e,[...r,s])},set(n,o,s){w(i);const[a,u]=F(s);return D(t,e,{type:"SET",path:[...r,o].map(t=>t.toString()),value:a},u).then(A)},apply(n,o,s){w(i);const a=r[r.length-1];if(a===l)return D(t,e,{type:"ENDPOINT"}).then(A);if("bind"===a)return I(t,e,r.slice(0,-1));const[u,c]=x(s);return D(t,e,{type:"APPLY",path:r.map(t=>t.toString()),argumentList:u},c).then(A)},construct(n,o){w(i);const[s,a]=x(o);return D(t,e,{type:"CONSTRUCT",path:r.map(t=>t.toString()),argumentList:s},a).then(A)}});return function(t,e){const r=(S.get(e)||0)+1;S.set(e,r),O&&O.register(t,e,t)}(o,t),o}function x(t){const e=t.map(F);return[e.map(t=>t[0]),(r=e.map(t=>t[1]),Array.prototype.concat.apply([],r))];var r}const E=new WeakMap;function F(t){for(const[e,r]of g)if(r.canHandle(t)){const[n,i]=r.serialize(t);return[{type:"HANDLER",name:e,value:n},i]}return[{type:"RAW",value:t},E.get(t)||[]]}function A(t){switch(t.type){case"HANDLER":return g.get(t.name).deserialize(t.value);case"RAW":return t.value}}function D(t,e,r,n){return new Promise(i=>{const o=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.set(o,i),t.start&&t.start(),t.postMessage(Object.assign({id:o},r),n)})}const P="function"==typeof Buffer,M=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder,Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")),j=(t=>{let e={};return t.forEach((t,r)=>e[t]=r),e})(M),z=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,k=String.fromCharCode.bind(String),C="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),T=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),R=t=>{let e,r,n,i,o="";const s=t.length%3;for(let s=0;s<t.length;){if((r=t.charCodeAt(s++))>255||(n=t.charCodeAt(s++))>255||(i=t.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|i,o+=M[e>>18&63]+M[e>>12&63]+M[e>>6&63]+M[63&e]}return s?o.slice(0,s-3)+"===".substring(s):o},$=t=>{if(t=t.replace(/\s+/g,""),!z.test(t))throw new TypeError("malformed base64.");let e,r,n;t+="==".slice(2-(3&t.length));let i=[];for(let o=0;o<t.length;)e=j[t.charAt(o++)]<<18|j[t.charAt(o++)]<<12|(r=j[t.charAt(o++)])<<6|(n=j[t.charAt(o++)]),64===r?i.push(k(e>>16&255)):64===n?i.push(k(e>>16&255,e>>8&255)):i.push(k(e>>16&255,e>>8&255,255&e));return i.join("")},N="function"==typeof atob?t=>atob(T(t)):P?t=>Buffer.from(t,"base64").toString("binary"):$,U=P?t=>C(Buffer.from(t,"base64")):t=>C(N(t).split("").map(t=>t.charCodeAt(0))),L=t=>U(q(t)),q=t=>T(t.replace(/[-_]/g,t=>"-"==t?"+":"/")),B=L;function W(t){const e={unitFrom:t.scale.unitFrom,unitTo:t.scale.unitTo,from:Number(t.scale.fromValue),to:Number(t.scale.toValue)};return void 0!==t.scale.fromDescription&&(e.fromDescription=t.scale.fromDescription),void 0!==t.scale.toDescription&&(e.toDescription=t.scale.toDescription),{name:t.name,scale:e,precision:t.precision}}var H=r(95920),J=r.n(H),K=r(41211),V=r.n(K),G=r(92448),Y=r.n(G);let Z;Z="object"==typeof process&&"object"==typeof process.versions&&void 0!==process.versions.node?Y():function(t){return"object"==typeof window?new Promise((e,r)=>{const i=document.createElement("script");i.type="text/javascript",i.async=!0,i.onload=()=>e(window.PSPDFModuleInit),i.onerror=r,i.src=t;const{documentElement:o}=document;n(o),o.appendChild(i)}):(self.importScripts(t),Promise.resolve(self.PSPDFModuleInit))};const X=Z,Q="nutrient-viewer-lib/",tt=`${Q}nutrient-viewer${"-"+V()}.wasm.js`,et=`${Q}nutrient-viewer${"-"+J()}.wasm`;function rt(t,e){let r,n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:globalThis;return new Promise(async(u,c)=>{try{r=function(t,e){let r;if("object"==typeof t){r=t.wasm;return{wasmBinaryFile:et,locateFile:t=>t,wasmBinary:r}}const n={wasmBinaryFile:t+et,locateFile:t=>t,wasmBinary:r};{const t=fetch(n.wasmBinaryFile,{credentials:"same-origin"}),r=11835466;t.then(t=>{const e=t.headers?.get("content-length");return e&&parseInt(e)>=r&&o("The WASM binary file is being served without compression. Due to its size, it's recommended to configure the server so application/wasm files are served with compression.\n\nFind more details in our Standalone performance guides: https://www.nutrient.io/guides/web/best-practices/caching-on-the-web/#gzip-and-brotli"),t}).catch(t=>{throw new Error(`Failed to load WASM binary file: ${t}`)}),n.instantiateWasm=(r,o)=>((async()=>{i(`Start ${n.wasmBinaryFile} download.`);const a=Date.now();let u,c;const f=!e&&"function"==typeof WebAssembly.instantiateStreaming;function l(){return t.then(t=>{if(!t.ok)throw new Error(`Error loading ${n.wasmBinaryFile}: ${t.statusText}`);return t.arrayBuffer()}).then(t=>(c=Date.now(),i(`Download complete, took: ${c-a}ms`),WebAssembly.instantiate(new Uint8Array(t),r)))}u=f?WebAssembly.instantiateStreaming(t,r).then(t=>(c=Date.now(),i(`Download and Instantiation complete, took: ${Date.now()-a}ms`),t)).catch(t=>{if(/mime.*type/i.test(t.message))return s(t.message),null;throw t}):l();let h=await u;null===h&&(s("Streaming instantiation failed! Falling back to classic instantiation. This might result in slower initialization time therefore we highly recommend to follow the troubleshooting instructions in our guides to fix this error: https://www.nutrient.io/guides/web/current/troubleshooting/common-issues/#response-has-unsupported-mime-type-error."),h=await l()),!f&&c&&i(`Compilation and Instantiation complete, took: ${Date.now()-c}ms`),o(h.instance,h.module)})(),{})}return n}(t,e),"string"==typeof t&&(n=await X(`${t}${tt}`)),i("Using WASM method"),function(t){t.PSPDFLoggingServices={error(t,e){s(`[${t}] ${e}`)},warn(t,e){o(`[${t}] ${e}`)},info(t,e){0},debug(t,e){0},trace(t,e){0}},t.PSPDFUnicodeServices={stripDiacritics(t){const e={Á:"A",Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A",Ⱥ:"A",Ã:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C",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"U",Ự:"U",Ừ:"U",Ử:"U",Ữ:"U",Ȗ:"U",Ū:"U",Ṻ:"U",Ų:"U",Ů:"U",Ũ:"U",Ṹ:"U",Ṵ:"U",Ꝟ:"V",Ṿ:"V",Ʋ:"V",Ṽ:"V",Ꝡ:"VY",Ẃ:"W",Ŵ:"W",Ẅ:"W",Ẇ:"W",Ẉ:"W",Ẁ:"W",Ⱳ:"W",Ẍ:"X",Ẋ:"X",Ý:"Y",Ŷ:"Y",Ÿ:"Y",Ẏ:"Y",Ỵ:"Y",Ỳ:"Y",Ƴ:"Y",Ỷ:"Y",Ỿ:"Y",Ȳ:"Y",Ɏ:"Y",Ỹ:"Y",Ź:"Z",Ž:"Z",Ẑ:"Z",Ⱬ:"Z",Ż:"Z",Ẓ:"Z",Ȥ:"Z",Ẕ:"Z",Ƶ:"Z",IJ:"IJ",Œ:"OE",ᴀ:"A",ᴁ:"AE",ʙ:"B",ᴃ:"B",ᴄ:"C",ᴅ:"D",ᴇ:"E",ꜰ:"F",ɢ:"G",ʛ:"G",ʜ:"H",ɪ:"I",ʁ:"R",ᴊ:"J",ᴋ:"K",ʟ:"L",ᴌ:"L",ᴍ:"M",ɴ:"N",ᴏ:"O",ɶ:"OE",ᴐ:"O",ᴕ:"OU",ᴘ:"P",ʀ:"R",ᴎ:"N",ᴙ:"R",ꜱ:"S",ᴛ:"T",ⱻ:"E",ᴚ:"R",ᴜ:"U",ᴠ:"V",ᴡ:"W",ʏ:"Y",ᴢ:"Z",á:"a",ă:"a",ắ:"a",ặ:"a",ằ:"a",ẳ:"a",ẵ:"a",ǎ:"a",â:"a",ấ:"a",ậ:"a",ầ:"a",ẩ:"a",ẫ:"a",ä:"a",ǟ:"a",ȧ:"a",ǡ:"a",ạ:"a",ȁ:"a",à:"a",ả:"a",ȃ:"a",ā:"a",ą:"a",ᶏ:"a",ẚ:"a",å:"a",ǻ:"a",ḁ:"a",ⱥ:"a",ã:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ: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:"s",š:"s",ṧ:"s",ş:"s",ŝ:"s",ș:"s",ṡ:"s",ṣ:"s",ṩ:"s",ʂ:"s",ᵴ:"s",ᶊ:"s",ȿ:"s",ɡ:"g",ᴑ:"o",ᴓ:"o",ᴝ:"u",ť:"t",ţ:"t",ṱ:"t",ț:"t",ȶ:"t",ẗ:"t",ⱦ:"t",ṫ:"t",ṭ:"t",ƭ:"t",ṯ:"t",ᵵ:"t",ƫ:"t",ʈ:"t",ŧ:"t",ᵺ:"th",ɐ:"a",ᴂ:"ae",ǝ:"e",ᵷ:"g",ɥ:"h",ʮ:"h",ʯ:"h",ᴉ:"i",ʞ:"k",ꞁ:"l",ɯ:"m",ɰ:"m",ᴔ:"oe",ɹ:"r",ɻ:"r",ɺ:"r",ⱹ:"r",ʇ:"t",ʌ:"v",ʍ:"w",ʎ:"y",ꜩ:"tz",ú:"u",ŭ:"u",ǔ:"u",û:"u",ṷ:"u",ü:"u",ǘ:"u",ǚ:"u",ǜ:"u",ǖ:"u",ṳ:"u",ụ:"u",ű:"u",ȕ:"u",ù:"u",ủ:"u",ư:"u",ứ:"u",ự:"u",ừ:"u",ử:"u",ữ:"u",ȗ:"u",ū:"u",ṻ:"u",ų:"u",ᶙ:"u",ů:"u",ũ:"u",ṹ:"u",ṵ:"u",ᵫ:"ue",ꝸ:"um",ⱴ:"v",ꝟ:"v",ṿ:"v",ʋ:"v",ᶌ:"v",ⱱ:"v",ṽ:"v",ꝡ:"vy",ẃ:"w",ŵ:"w",ẅ:"w",ẇ:"w",ẉ:"w",ẁ:"w",ⱳ:"w",ẘ:"w",ẍ:"x",ẋ:"x",ᶍ:"x",ý:"y",ŷ:"y",ÿ:"y",ẏ:"y",ỵ:"y",ỳ:"y",ƴ:"y",ỷ:"y",ỿ:"y",ȳ:"y",ẙ:"y",ɏ:"y",ỹ:"y",ź:"z",ž:"z",ẑ:"z",ʑ:"z",ⱬ:"z",ż:"z",ẓ:"z",ȥ:"z",ẕ:"z",ᵶ:"z",ᶎ:"z",ʐ:"z",ƶ:"z",ɀ:"z",ff:"ff",ffi:"ffi",ffl:"ffl",fi:"fi",fl:"fl",ij:"ij",œ:"oe",st:"st",ₐ:"a",ₑ:"e",ᵢ:"i",ⱼ:"j",ₒ:"o",ᵣ:"r",ᵤ:"u",ᵥ:"v",ₓ:"x"};if(!t.normalize)return t;const r=t.replace(/[^A-Za-z0-9[\] ]/g,function(t){return e[t]||t});return t.normalize("NFC").length==r.normalize("NFC").length?r:""},escapeRegExp:t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),match(t,e,r){const n=new RegExp(e,r?"g":"gi"),i=[];let o=n.exec(t);for(;null!=o;)i.push([o.index,o[0].length]),o=n.exec(t);return i},exec:(t,e)=>new RegExp(t).exec(e)}}(a);u({nativeModule:await n(r)})}catch(t){c(t)}})}function nt(t){if("arrayBuffer"in t)return t.arrayBuffer().then(t=>new Uint8Array(t));const e=new FileReader;return new Promise((r,n)=>{e.onerror=t=>{n(new Error(t))},e.onload=t=>{r(new Uint8Array(t.target?.result))},e.readAsArrayBuffer(t)})}const it="text",ot="documentA",st="documentB",at="result",ut=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;const ct=function(t){return"string"==typeof t&&ut.test(t)};const ft=function(t){if(!ct(t))throw TypeError("Invalid UUID");let e;return Uint8Array.of((e=parseInt(t.slice(0,8),16))>>>24,e>>>16&255,e>>>8&255,255&e,(e=parseInt(t.slice(9,13),16))>>>8,255&e,(e=parseInt(t.slice(14,18),16))>>>8,255&e,(e=parseInt(t.slice(19,23),16))>>>8,255&e,(e=parseInt(t.slice(24,36),16))/1099511627776&255,e/4294967296&255,e>>>24&255,e>>>16&255,e>>>8&255,255&e)};const lt=[];for(let t=0;t<256;++t)lt.push((t+256).toString(16).slice(1));function ht(t,e=0){return(lt[t[e+0]]+lt[t[e+1]]+lt[t[e+2]]+lt[t[e+3]]+"-"+lt[t[e+4]]+lt[t[e+5]]+"-"+lt[t[e+6]]+lt[t[e+7]]+"-"+lt[t[e+8]]+lt[t[e+9]]+"-"+lt[t[e+10]]+lt[t[e+11]]+lt[t[e+12]]+lt[t[e+13]]+lt[t[e+14]]+lt[t[e+15]]).toLowerCase()}new Uint8Array(16);function pt(t){return 14+(t+64>>>9<<4)+1}function dt(t,e){const r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function _t(t,e,r,n,i,o){return dt((s=dt(dt(e,t),dt(n,o)))<<(a=i)|s>>>32-a,r);var s,a}function yt(t,e,r,n,i,o,s){return _t(e&r|~e&n,t,e,i,o,s)}function gt(t,e,r,n,i,o,s){return _t(e&n|r&~n,t,e,i,o,s)}function mt(t,e,r,n,i,o,s){return _t(e^r^n,t,e,i,o,s)}function vt(t,e,r,n,i,o,s){return _t(r^(e|~n),t,e,i,o,s)}const wt=function(t){return function(t){const e=new Uint8Array(4*t.length);for(let r=0;r<4*t.length;r++)e[r]=t[r>>2]>>>r%4*8&255;return e}(function(t,e){const r=new Uint32Array(pt(e)).fill(0);r.set(t),r[e>>5]|=128<<e%32,r[r.length-1]=e,t=r;let n=1732584193,i=-271733879,o=-1732584194,s=271733878;for(let e=0;e<t.length;e+=16){const r=n,a=i,u=o,c=s;n=yt(n,i,o,s,t[e],7,-680876936),s=yt(s,n,i,o,t[e+1],12,-389564586),o=yt(o,s,n,i,t[e+2],17,606105819),i=yt(i,o,s,n,t[e+3],22,-1044525330),n=yt(n,i,o,s,t[e+4],7,-176418897),s=yt(s,n,i,o,t[e+5],12,1200080426),o=yt(o,s,n,i,t[e+6],17,-1473231341),i=yt(i,o,s,n,t[e+7],22,-45705983),n=yt(n,i,o,s,t[e+8],7,1770035416),s=yt(s,n,i,o,t[e+9],12,-1958414417),o=yt(o,s,n,i,t[e+10],17,-42063),i=yt(i,o,s,n,t[e+11],22,-1990404162),n=yt(n,i,o,s,t[e+12],7,1804603682),s=yt(s,n,i,o,t[e+13],12,-40341101),o=yt(o,s,n,i,t[e+14],17,-1502002290),i=yt(i,o,s,n,t[e+15],22,1236535329),n=gt(n,i,o,s,t[e+1],5,-165796510),s=gt(s,n,i,o,t[e+6],9,-1069501632),o=gt(o,s,n,i,t[e+11],14,643717713),i=gt(i,o,s,n,t[e],20,-373897302),n=gt(n,i,o,s,t[e+5],5,-701558691),s=gt(s,n,i,o,t[e+10],9,38016083),o=gt(o,s,n,i,t[e+15],14,-660478335),i=gt(i,o,s,n,t[e+4],20,-405537848),n=gt(n,i,o,s,t[e+9],5,568446438),s=gt(s,n,i,o,t[e+14],9,-1019803690),o=gt(o,s,n,i,t[e+3],14,-187363961),i=gt(i,o,s,n,t[e+8],20,1163531501),n=gt(n,i,o,s,t[e+13],5,-1444681467),s=gt(s,n,i,o,t[e+2],9,-51403784),o=gt(o,s,n,i,t[e+7],14,1735328473),i=gt(i,o,s,n,t[e+12],20,-1926607734),n=mt(n,i,o,s,t[e+5],4,-378558),s=mt(s,n,i,o,t[e+8],11,-2022574463),o=mt(o,s,n,i,t[e+11],16,1839030562),i=mt(i,o,s,n,t[e+14],23,-35309556),n=mt(n,i,o,s,t[e+1],4,-1530992060),s=mt(s,n,i,o,t[e+4],11,1272893353),o=mt(o,s,n,i,t[e+7],16,-155497632),i=mt(i,o,s,n,t[e+10],23,-1094730640),n=mt(n,i,o,s,t[e+13],4,681279174),s=mt(s,n,i,o,t[e],11,-358537222),o=mt(o,s,n,i,t[e+3],16,-722521979),i=mt(i,o,s,n,t[e+6],23,76029189),n=mt(n,i,o,s,t[e+9],4,-640364487),s=mt(s,n,i,o,t[e+12],11,-421815835),o=mt(o,s,n,i,t[e+15],16,530742520),i=mt(i,o,s,n,t[e+2],23,-995338651),n=vt(n,i,o,s,t[e],6,-198630844),s=vt(s,n,i,o,t[e+7],10,1126891415),o=vt(o,s,n,i,t[e+14],15,-1416354905),i=vt(i,o,s,n,t[e+5],21,-57434055),n=vt(n,i,o,s,t[e+12],6,1700485571),s=vt(s,n,i,o,t[e+3],10,-1894986606),o=vt(o,s,n,i,t[e+10],15,-1051523),i=vt(i,o,s,n,t[e+1],21,-2054922799),n=vt(n,i,o,s,t[e+8],6,1873313359),s=vt(s,n,i,o,t[e+15],10,-30611744),o=vt(o,s,n,i,t[e+6],15,-1560198380),i=vt(i,o,s,n,t[e+13],21,1309151649),n=vt(n,i,o,s,t[e+4],6,-145523070),s=vt(s,n,i,o,t[e+11],10,-1120210379),o=vt(o,s,n,i,t[e+2],15,718787259),i=vt(i,o,s,n,t[e+9],21,-343485551),n=dt(n,r),i=dt(i,a),o=dt(o,u),s=dt(s,c)}return Uint32Array.of(n,i,o,s)}(function(t){if(0===t.length)return new Uint32Array;const e=new Uint32Array(pt(8*t.length)).fill(0);for(let r=0;r<t.length;r++)e[r>>2]|=(255&t[r])<<r%4*8;return e}(t),8*t.length))};const bt="6ba7b810-9dad-11d1-80b4-00c04fd430c8",St="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ot(t,e,r,n,i,o){const s="string"==typeof r?function(t){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r);return e}(r):r,a="string"==typeof n?ft(n):n;if("string"==typeof n&&(n=ft(n)),16!==n?.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+s.length);if(u.set(a),u.set(s,a.length),u=e(u),u[6]=15&u[6]|t,u[8]=63&u[8]|128,i){o=o||0;for(let t=0;t<16;++t)i[o+t]=u[t];return i}return ht(u)}function It(t,e,r,n){return Ot(48,wt,t,e,r,n)}It.DNS=bt,It.URL=St;"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);function xt(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:case 3:return e^r^n;case 2:return e&r^e&n^r&n}}function Et(t,e){return t<<e|t>>>32-e}const Ft=function(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520],n=new Uint8Array(t.length+1);n.set(t),n[t.length]=128;const i=(t=n).length/4+2,o=Math.ceil(i/16),s=new Array(o);for(let e=0;e<o;++e){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=t[64*e+4*n]<<24|t[64*e+4*n+1]<<16|t[64*e+4*n+2]<<8|t[64*e+4*n+3];s[e]=r}s[o-1][14]=8*(t.length-1)/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=8*(t.length-1)&4294967295;for(let t=0;t<o;++t){const n=new Uint32Array(80);for(let e=0;e<16;++e)n[e]=s[t][e];for(let t=16;t<80;++t)n[t]=Et(n[t-3]^n[t-8]^n[t-14]^n[t-16],1);let i=r[0],o=r[1],a=r[2],u=r[3],c=r[4];for(let t=0;t<80;++t){const r=Math.floor(t/20),s=Et(i,5)+xt(r,o,a,u)+c+e[r]+n[t]>>>0;c=u,u=a,a=Et(o,30)>>>0,o=i,i=s}r[0]=r[0]+i>>>0,r[1]=r[1]+o>>>0,r[2]=r[2]+a>>>0,r[3]=r[3]+u>>>0,r[4]=r[4]+c>>>0}return Uint8Array.of(r[0]>>24,r[0]>>16,r[0]>>8,r[0],r[1]>>24,r[1]>>16,r[1]>>8,r[1],r[2]>>24,r[2]>>16,r[2]>>8,r[2],r[3]>>24,r[3]>>16,r[3]>>8,r[3],r[4]>>24,r[4]>>16,r[4]>>8,r[4])};function At(t,e,r,n){return Ot(80,Ft,t,e,r,n)}At.DNS=bt,At.URL=St;const Dt="Maui_Android",Pt="Maui_iOS",Mt="Maui_MacCatalyst",jt="Maui_Windows",zt="FlutterForWeb",kt="Electron",Ct="cms",Tt="unableToShape",Rt="requiresMoreFonts";async function $t(t){try{const r=await fetch(t).catch(r=>{throw new e(`Error fetching dynamic fonts file ${t}. ${r}`)});if(200!==r.status)throw new e(`Error fetching dynamic fonts file ${t}. Status code: ${r.status}`);return r}catch(t){throw t}}const Nt=[42,134,72,134,247,13,1,7,2];function Ut(t,e){if(e>=t.length)return null;const r=t[e];if(!(128&r))return{length:r,nextOffset:e+1};const n=127&r;if(0===n||n>4||e+1+n>t.length)return null;let i=0;for(let r=0;r<n;r++)if(i=256*i+t[e+1+r],!Number.isSafeInteger(i))return null;return{length:i,nextOffset:e+1+n}}function Lt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent??"";return t.indexOf("Trident/")>-1?"trident":t.indexOf("Edge/")>-1?"edge":t.indexOf("Chrome/")>-1?"blink":t.indexOf("AppleWebKit/")>-1?"webkit":t.indexOf("Gecko/")>-1?"gecko":"unknown"}function qt(t,e){const r=new RegExp(` ${e}/(\\d+)\\.*`);let n;return(n=t.match(r))?Number(n[1]):0}function Bt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent??"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:globalThis.navigator?.platform??"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:globalThis.navigator?.maxTouchPoints??0;return e.indexOf("MacIntel")>-1&&r>1?"ios":t.indexOf("Win")>-1?"windows":t.indexOf("iPhone")>-1||t.indexOf("iPad")>-1||"iPad"===e?"ios":t.indexOf("Mac")>-1?"macos":t.indexOf("Android")>-1?"android":t.indexOf("Linux")>-1?"linux":"unknown"}Lt();const Wt=Bt(),Ht=(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent;switch(Lt(t)){case"trident":return qt(t,"Trident");case"edge":return qt(t,"Edge");case"blink":return qt(t,"Chrome");case"webkit":return qt(t,"Version");case"gecko":return qt(t,"Firefox");default:;}}(),function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bt(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lt();"ios"===t||"android"===t||Jt(e)}(),"ios"===Wt||Jt(),"ios"===Wt);function Jt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lt();return("undefined"==typeof window||!window.PSPDFKIT_PLAYWRIGHT_TEST)&&("webkit"===t&&"undefined"!=typeof TouchEvent)}let Kt;"undefined"!=typeof window&&(window.addEventListener("mousemove",function t(){Kt=!1,window.removeEventListener("mousemove",t)}),window.addEventListener("pointermove",function t(e){"mouse"!==e.pointerType&&"pen"!==e.pointerType||(Kt=!1),window.removeEventListener("pointermove",t)}));/Mac/i.test(globalThis.navigator?.platform);function Vt(){return"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron/")>=0}const Gt="/create.pdf";function Yt(){if(Boolean(!1)){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];console.debug("[OPFS]",...e)}}class Zt{constructor(t){c(this,"_readCount",0),c(this,"_wasmModule",null),this._storage=t}read(t,e){try{const r=this._storage.read(e,t);if(this._readCount+=1,r.length!==t)return Yt("OPFSDataProvider.read: short read from storage",{offset:e,requested:t,actual:r.length,readCount:this._readCount,uid:this._storage.getUid()}),{error:!0,data:null};if(!this._wasmModule)throw new Error("OPFSDataProvider.read: wasm module not set");const n=this._wasmModule.allocateMemory(r.byteLength);return n.view.set(r),{error:!1,data:n}}catch(r){return Yt("OPFSDataProvider.read: failed",{offset:e,size:t,uid:this._storage.getUid(),error:r instanceof Error?r.message:String(r)}),{error:!0,data:null}}}getSize(){return this._storage.getSize()}getUid(){return this._storage.getUid()}createEmbindProvider(t){return this._wasmModule=t,t.WASMDataProvider.implement({read:(t,e)=>this.read(t,e),getSize:()=>this.getSize(),getUid:()=>this.getUid()})}}var Xt="delete",Qt=32,te=31,ee={};function re(t){t&&(t.value=!0)}function ne(){}function ie(t){return void 0===t.size&&(t.size=t.__iterate(se)),t.size}function oe(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?ie(t)+e:e}function se(){return!0}function ae(t,e,r){return(0===t&&!le(t)||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function ue(t,e){return fe(t,e,0)}function ce(t,e){return fe(t,e,e)}function fe(t,e,r){return void 0===t?r:le(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function le(t){return t<0||0===t&&1/t==-1/0}var he="@@__IMMUTABLE_ITERABLE__@@";function pe(t){return Boolean(t&&t[he])}var de="@@__IMMUTABLE_KEYED__@@";function _e(t){return Boolean(t&&t[de])}var ye="@@__IMMUTABLE_INDEXED__@@";function ge(t){return Boolean(t&&t[ye])}function me(t){return _e(t)||ge(t)}var ve=function(t){return pe(t)?t:qe(t)},we=function(t){function e(t){return _e(t)?t:Be(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(ve),be=function(t){function e(t){return ge(t)?t:We(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(ve),Se=function(t){function e(t){return pe(t)&&!me(t)?t:He(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(ve);ve.Keyed=we,ve.Indexed=be,ve.Set=Se;var Oe="@@__IMMUTABLE_SEQ__@@";function Ie(t){return Boolean(t&&t[Oe])}var xe="@@__IMMUTABLE_RECORD__@@";function Ee(t){return Boolean(t&&t[xe])}function Fe(t){return pe(t)||Ee(t)}var Ae="@@__IMMUTABLE_ORDERED__@@";function De(t){return Boolean(t&&t[Ae])}var Pe="function"==typeof Symbol&&Symbol.iterator,Me="@@iterator",je=Pe||Me,ze=function(t){this.next=t};function ke(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function Ce(){return{value:void 0,done:!0}}function Te(t){return!!Ne(t)}function Re(t){return t&&"function"==typeof t.next}function $e(t){var e=Ne(t);return e&&e.call(t)}function Ne(t){var e=t&&(Pe&&t[Pe]||t[Me]);if("function"==typeof e)return e}ze.prototype.toString=function(){return"[Iterator]"},ze.KEYS=0,ze.VALUES=1,ze.ENTRIES=2,ze.prototype.inspect=ze.prototype.toSource=function(){return this.toString()},ze.prototype[je]=function(){return this};var Ue=Object.prototype.hasOwnProperty;function Le(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var qe=function(t){function e(t){return null==t?Ye():Fe(t)?t.toSeq():function(t){var e=Qe(t);if(e)return e;if("object"==typeof t)return new Ke(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var r=this._cache;if(r){for(var n=r.length,i=0;i!==n;){var o=r[e?n-++i:i++];if(!1===t(o[1],o[0],this))break}return i}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var r=this._cache;if(r){var n=r.length,i=0;return new ze(function(){if(i===n)return{value:void 0,done:!0};var o=r[e?n-++i:i++];return ke(t,o[0],o[1])})}return this.__iteratorUncached(t,e)},e}(ve),Be=function(t){function e(t){return null==t?Ye().toKeyedSeq():pe(t)?_e(t)?t.toSeq():t.fromEntrySeq():Ee(t)?t.toSeq():Ze(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(qe),We=function(t){function e(t){return null==t?Ye():pe(t)?_e(t)?t.entrySeq():t.toIndexedSeq():Ee(t)?t.toSeq().entrySeq():Xe(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(qe),He=function(t){function e(t){return(pe(t)&&!me(t)?t:We(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(qe);qe.isSeq=Ie,qe.Keyed=Be,qe.Set=He,qe.Indexed=We,qe.prototype[Oe]=!0;var Je=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[oe(this,t)]:e},e.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length,i=0;i!==n;){var o=e?n-++i:i++;if(!1===t(r[o],o,this))break}return i},e.prototype.__iterator=function(t,e){var r=this._array,n=r.length,i=0;return new ze(function(){if(i===n)return{value:void 0,done:!0};var o=e?n-++i:i++;return ke(t,o,r[o])})},e}(We),Ke=function(t){function e(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return Ue.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length,o=0;o!==i;){var s=n[e?i-++o:o++];if(!1===t(r[s],s,this))break}return o},e.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length,o=0;return new ze(function(){if(o===i)return{value:void 0,done:!0};var s=n[e?i-++o:o++];return ke(t,s,r[s])})},e}(Be);Ke.prototype[Ae]=!0;var Ve,Ge=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=$e(this._collection),n=0;if(Re(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,n++,this););return n},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=$e(this._collection);if(!Re(r))return new ze(Ce);var n=0;return new ze(function(){var e=r.next();return e.done?e:ke(t,n++,e.value)})},e}(We);function Ye(){return Ve||(Ve=new Je([]))}function Ze(t){var e=Array.isArray(t)?new Je(t):Te(t)?new Ge(t):void 0;if(e)return e.fromEntrySeq();if("object"==typeof t)return new Ke(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function Xe(t){var e=Qe(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function Qe(t){return Le(t)?new Je(t):Te(t)?new Ge(t):void 0}var tr="@@__IMMUTABLE_MAP__@@";function er(t){return Boolean(t