UNPKG

ngx-extended-pdf-viewer

Version:

Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.

23 lines 426 kB
window.ngxZone.runOutsideAngular(() => { /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2021 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 */ !function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf",[],t):"object"==typeof exports?exports["pdfjs-dist/build/pdf"]=t():e["pdfjs-dist/build/pdf"]=e.pdfjsLib=t()}(this,(function(){return(()=>{var __webpack_modules__=[,(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.LinkTarget=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=void 0;t.addLinkAttributes=function addLinkAttributes(e){let{url:t,target:r,rel:a,enabled:o=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.assert)(t&&"string"==typeof t,'addLinkAttributes: A valid "url" parameter must provided.');const l=(0,n.removeNullCharacters)(t);if(o)e.href=e.title=l;else{e.href="";e.title="Disabled: ".concat(l);e.onclick=()=>!1}let c="";switch(r){case s.NONE:break;case s.SELF:c="_self";break;case s.BLANK:c="_blank";break;case s.PARENT:c="_parent";break;case s.TOP:c="_top"}e.target=c;e.rel="string"==typeof a?a:i};t.deprecated=function deprecated(e){Window.ngxConsole.log("Deprecated API usage: "+e)};t.getFilenameFromUrl=function getFilenameFromUrl(e){const t=e.indexOf("#"),r=e.indexOf("?"),n=Math.min(t>0?t:e.length,r>0?r:e.length);return e.substring(e.lastIndexOf("/",n)+1,n)};t.getPdfFilenameFromUrl=function getPdfFilenameFromUrl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if(window.PDFViewerApplication.appConfig.filenameForDownload)return window.PDFViewerApplication.appConfig.filenameForDownload;if("string"!=typeof e)return t;if(isDataScheme(e)){(0,n.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.');return t}const r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,a=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=r.exec(e);let o=a.exec(i[1])||a.exec(i[2])||a.exec(i[3]);if(o){o=o[0];if(o.includes("%"))try{o=a.exec(decodeURIComponent(o))[0]}catch(e){}}return o||t};t.getXfaPageViewport=function getXfaPageViewport(e,t){let{scale:r=1,rotation:n=0}=t;const{width:a,height:i}=e.attributes.style,o=[0,0,parseInt(a),parseInt(i)];return new PageViewport({viewBox:o,scale:r,rotation:n})};t.isDataScheme=isDataScheme;t.isPdfFile=function isPdfFile(e){return"string"==typeof e&&/\.pdf$/i.test(e)};t.isValidFetchUrl=isValidFetchUrl;t.loadScript=function loadScript(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(((r,n)=>{const a=document.createElement("script");"Function"===e.constructor.name?a.src=e():a.src=e;a.onload=function(e){t&&a.remove();r(e)};a.onerror=function(e){Window.ngxConsole.log(e);n(new Error("Cannot load script at: ".concat(a.src)))};(document.head||document.documentElement).appendChild(a)}))};r(2);r(101);r(126);r(127);r(132);r(139);r(147);r(155);r(156);var n=r(158),a=r(187);const i="noopener noreferrer nofollow",o={CSS:96,PDF:72,get PDF_TO_CSS_UNITS(){return(0,n.shadow)(this,"PDF_TO_CSS_UNITS",this.CSS/this.PDF)}};t.PixelsPerInch=o;class DOMCanvasFactory extends a.BaseCanvasFactory{constructor(){let{ownerDocument:e=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();this._document=e}_createCanvas(e,t){const r=this._document.createElement("canvas");r.width=e;r.height=t;return r}}t.DOMCanvasFactory=DOMCanvasFactory;async function fetchData(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(isValidFetchUrl(e,document.baseURI)){const r=await fetch(e);if(!r.ok)throw new Error(r.statusText);return t?new Uint8Array(await r.arrayBuffer()):(0,n.stringToBytes)(await r.text())}return new Promise(((r,a)=>{const i=new XMLHttpRequest;i.open("GET",e,!0);t&&(i.responseType="arraybuffer");i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(200===i.status||0===i.status){let e;t&&i.response?e=new Uint8Array(i.response):!t&&i.responseText&&(e=(0,n.stringToBytes)(i.responseText));if(e){r(e);return}}a(new Error(i.statusText))}};i.send(null)}))}class DOMCMapReaderFactory extends a.BaseCMapReaderFactory{_fetchData(e,t){return fetchData(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=DOMCMapReaderFactory;class DOMStandardFontDataFactory extends a.BaseStandardFontDataFactory{_fetchData(e){return fetchData(e,!0)}}t.DOMStandardFontDataFactory=DOMStandardFontDataFactory;class DOMSVGFactory extends a.BaseSVGFactory{_createSVG(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}}t.DOMSVGFactory=DOMSVGFactory;class PageViewport{constructor(e){let{viewBox:t,scale:r,rotation:n,offsetX:a=0,offsetY:i=0,dontFlip:o=!1}=e;this.viewBox=t;this.scale=r;this.rotation=n;this.offsetX=a;this.offsetY=i;const s=(t[2]+t[0])/2,l=(t[3]+t[1])/2;let c,u,d,h,f,p,m,g;n%=360;n<0&&(n+=360);switch(n){case 180:c=-1;u=0;d=0;h=1;break;case 90:c=0;u=1;d=1;h=0;break;case 270:c=0;u=-1;d=-1;h=0;break;case 0:c=1;u=0;d=0;h=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}if(o){d=-d;h=-h}if(0===c){f=Math.abs(l-t[1])*r+a;p=Math.abs(s-t[0])*r+i;m=Math.abs(t[3]-t[1])*r;g=Math.abs(t[2]-t[0])*r}else{f=Math.abs(s-t[0])*r+a;p=Math.abs(l-t[1])*r+i;m=Math.abs(t[2]-t[0])*r;g=Math.abs(t[3]-t[1])*r}this.transform=[c*r,u*r,d*r,h*r,f-c*r*s-d*r*l,p-u*r*s-h*r*l];this.width=m;this.height=g}clone(){let{scale:e=this.scale,rotation:t=this.rotation,offsetX:r=this.offsetX,offsetY:n=this.offsetY,dontFlip:a=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new PageViewport({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:r,offsetY:n,dontFlip:a})}convertToViewportPoint(e,t){return n.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=n.Util.applyTransform([e[0],e[1]],this.transform),r=n.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}convertToPdfPoint(e,t){return n.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=PageViewport;class RenderingCancelledException extends n.BaseException{constructor(e,t){super(e,"RenderingCancelledException");this.type=t}}t.RenderingCancelledException=RenderingCancelledException;const s={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};t.LinkTarget=s;function isDataScheme(e){const t=e.length;let r=0;for(;r<t&&""===e[r].trim();)r++;return"data:"===e.substring(r,r+5).toLowerCase()}t.StatTimer=class StatTimer{constructor(){this.started=Object.create(null);this.times=[]}time(e){e in this.started&&(0,n.warn)("Timer is already running for ".concat(e));this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,n.warn)("Timer has not been started for ".concat(e));this.times.push({name:e,start:this.started[e],end:Date.now()});delete this.started[e]}toString(){const e=[];let t=0;for(const e of this.times){const r=e.name;r.length>t&&(t=r.length)}for(const r of this.times){const n=r.end-r.start;e.push("".concat(r.name.padEnd(t)," ").concat(n,"ms\n"))}return e.join("")}};function isValidFetchUrl(e,t){try{const{protocol:r}=t?new URL(e,t):new URL(e);return"http:"===r||"https:"===r||"capacitor:"===r}catch(e){return!1}}let l;t.PDFDateString=class PDFDateString{static toDateObject(e){if(!e||!(0,n.isString)(e))return null;l||(l=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=l.exec(e);if(!t)return null;const r=parseInt(t[1],10);let a=parseInt(t[2],10);a=a>=1&&a<=12?a-1:0;let i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;let o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;let s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;let c=parseInt(t[6],10);c=c>=0&&c<=59?c:0;const u=t[7]||"Z";let d=parseInt(t[8],10);d=d>=0&&d<=23?d:0;let h=parseInt(t[9],10)||0;h=h>=0&&h<=59?h:0;if("-"===u){o+=d;s+=h}else if("+"===u){o-=d;s-=h}return new Date(Date.UTC(r,a,i,o,s,c))}}},(e,t,r)=>{"use strict";var n,a,i,o,s=r(3),l=r(34),c=r(4),u=r(22),d=r(8),h=r(65),f=r(46),p=r(66),m=r(67),g=r(69),b=r(70),v=r(29),y=r(20),_=r(19),S=r(71),A=r(47),R=r(72),C=r(81),w=r(82),x=r(85).set,P=r(92),T=r(95),k=r(97),E=r(96),I=r(98),D=r(99),O=r(48),M=r(64),L=r(32),W=r(100),B=r(91),j=r(26),N=L("species"),q="Promise",U=O.getterFor(q),z=O.set,G=O.getterFor(q),V=h&&h.prototype,H=h,Y=V,X=c.TypeError,Q=c.document,K=c.process,J=E.f,$=J,Z=!!(Q&&Q.createEvent&&c.dispatchEvent),ee=y(c.PromiseRejectionEvent),te="unhandledrejection",re=!1,ne=M(q,(function(){var e=A(H),t=e!==String(H);if(!t&&66===j)return!0;if(l&&!Y.finally)return!0;if(j>=51&&/native code/.test(e))return!1;var r=new H((function(e){e(1)})),FakePromise=function(e){e((function(){}),(function(){}))};(r.constructor={})[N]=FakePromise;return!(re=r.then((function(){}))instanceof FakePromise)||!t&&W&&!ee})),ae=ne||!C((function(e){H.all(e).catch((function(){}))})),isThenable=function(e){var t;return!(!_(e)||!y(t=e.then))&&t},callReaction=function(e,t){var r,n,a,i=t.value,o=1==t.state,s=o?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{if(s){if(!o){2===t.rejection&&onHandleUnhandled(t);t.rejection=1}if(!0===s)r=i;else{u&&u.enter();r=s(i);if(u){u.exit();a=!0}}r===e.promise?c(X("Promise-chain cycle")):(n=isThenable(r))?d(n,r,l,c):l(r)}else c(i)}catch(e){u&&!a&&u.exit();c(e)}},notify=function(e,t){if(!e.notified){e.notified=!0;P((function(){for(var r,n=e.reactions;r=n.get();)callReaction(r,e);e.notified=!1;t&&!e.rejection&&onUnhandled(e)}))}},dispatchEvent=function(e,t,r){var n,a;if(Z){(n=Q.createEvent("Event")).promise=t;n.reason=r;n.initEvent(e,!1,!0);c.dispatchEvent(n)}else n={promise:t,reason:r};!ee&&(a=c["on"+e])?a(n):e===te&&k("Unhandled promise rejection",r)},onUnhandled=function(e){d(x,c,(function(){var t,r=e.facade,n=e.value;if(isUnhandled(e)){t=I((function(){B?K.emit("unhandledRejection",n,r):dispatchEvent(te,r,n)}));e.rejection=B||isUnhandled(e)?2:1;if(t.error)throw t.value}}))},isUnhandled=function(e){return 1!==e.rejection&&!e.parent},onHandleUnhandled=function(e){d(x,c,(function(){var t=e.facade;B?K.emit("rejectionHandled",t):dispatchEvent("rejectionhandled",t,e.value)}))},bind=function(e,t,r){return function(n){e(t,n,r)}},internalReject=function(e,t,r){if(!e.done){e.done=!0;r&&(e=r);e.value=t;e.state=2;notify(e,!0)}},internalResolve=function(e,t,r){if(!e.done){e.done=!0;r&&(e=r);try{if(e.facade===t)throw X("Promise can't be resolved itself");var n=isThenable(t);if(n)P((function(){var r={done:!1};try{d(n,t,bind(internalResolve,r,e),bind(internalReject,r,e))}catch(t){internalReject(r,t,e)}}));else{e.value=t;e.state=1;notify(e,!1)}}catch(t){internalReject({done:!1},t,e)}}};if(ne){Y=(H=function Promise(e){S(this,Y);v(e);d(n,this);var t=U(this);try{e(bind(internalResolve,t),bind(internalReject,t))}catch(e){internalReject(t,e)}}).prototype;(n=function Promise(e){z(this,{type:q,done:!1,notified:!1,parent:!1,reactions:new D,rejection:!1,state:0,value:void 0})}).prototype=p(Y,{then:function then(e,t){var r=G(this),n=J(w(this,H));r.parent=!0;n.ok=!y(e)||e;n.fail=y(t)&&t;n.domain=B?K.domain:void 0;0==r.state?r.reactions.add(n):P((function(){callReaction(n,r)}));return n.promise},catch:function(e){return this.then(void 0,e)}});a=function(){var e=new n,t=U(e);this.promise=e;this.resolve=bind(internalResolve,t);this.reject=bind(internalReject,t)};E.f=J=function(e){return e===H||e===i?new a(e):$(e)};if(!l&&y(h)&&V!==Object.prototype){o=V.then;if(!re){f(V,"then",(function then(e,t){var r=this;return new H((function(e,t){d(o,r,e,t)})).then(e,t)}),{unsafe:!0});f(V,"catch",Y.catch,{unsafe:!0})}try{delete V.constructor}catch(e){}m&&m(V,Y)}}s({global:!0,wrap:!0,forced:ne},{Promise:H});g(H,q,!1,!0);b(q);i=u(q);s({target:q,stat:!0,forced:ne},{reject:function reject(e){var t=J(this);d(t.reject,void 0,e);return t.promise}});s({target:q,stat:!0,forced:l||ne},{resolve:function resolve(e){return T(l&&this===i?H:this,e)}});s({target:q,stat:!0,forced:ae},{all:function all(e){var t=this,r=J(t),n=r.resolve,a=r.reject,i=I((function(){var r=v(t.resolve),i=[],o=0,s=1;R(e,(function(e){var l=o++,c=!1;s++;d(r,t,e).then((function(e){if(!c){c=!0;i[l]=e;--s||n(i)}}),a)}));--s||n(i)}));i.error&&a(i.value);return r.promise},race:function race(e){var t=this,r=J(t),n=r.reject,a=I((function(){var a=v(t.resolve);R(e,(function(e){d(a,t,e).then(r.resolve,n)}))}));a.error&&n(a.value);return r.promise}})},(e,t,r)=>{var n=r(4),a=r(5).f,i=r(42),o=r(46),s=r(36),l=r(53),c=r(64);e.exports=function(e,t){var r,u,d,h,f,p=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[p]||s(p,{}):(n[p]||{}).prototype)for(u in t){h=t[u];d=e.noTargetGet?(f=a(r,u))&&f.value:r[u];if(!c(m?u:p+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0);o(r,u,h,e)}}},e=>{var check=function(e){return e&&e.Math==Math&&e};e.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||function(){return this}()||Function("return this")()},(e,t,r)=>{var n=r(6),a=r(8),i=r(10),o=r(11),s=r(12),l=r(17),c=r(37),u=r(40),d=Object.getOwnPropertyDescriptor;t.f=n?d:function getOwnPropertyDescriptor(e,t){e=s(e);t=l(t);if(u)try{return d(e,t)}catch(e){}if(c(e,t))return o(!a(i.f,e,t),e[t])}},(e,t,r)=>{var n=r(7);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,r)=>{var n=r(9),a=Function.prototype.call;e.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},(e,t,r)=>{var n=r(7);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!r.call({1:2},1);t.f=a?function propertyIsEnumerable(e){var t=n(this,e);return!!t&&t.enumerable}:r},e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,r)=>{var n=r(13),a=r(16);e.exports=function(e){return n(a(e))}},(e,t,r)=>{var n=r(4),a=r(14),i=r(7),o=r(15),s=n.Object,l=a("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?l(e,""):s(e)}:s},(e,t,r)=>{var n=r(9),a=Function.prototype,i=a.bind,o=a.call,s=n&&i.bind(o,o);e.exports=n?function(e){return e&&s(e)}:function(e){return e&&function(){return o.apply(e,arguments)}}},(e,t,r)=>{var n=r(14),a=n({}.toString),i=n("".slice);e.exports=function(e){return i(a(e),8,-1)}},(e,t,r)=>{var n=r(4).TypeError;e.exports=function(e){if(null==e)throw n("Can't call method on "+e);return e}},(e,t,r)=>{var n=r(18),a=r(21);e.exports=function(e){var t=n(e,"string");return a(t)?t:t+""}},(e,t,r)=>{var n=r(4),a=r(8),i=r(19),o=r(21),s=r(28),l=r(31),c=r(32),u=n.TypeError,d=c("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,n=s(e,d);if(n){void 0===t&&(t="default");r=a(n,e,t);if(!i(r)||o(r))return r;throw u("Can't convert object to primitive value")}void 0===t&&(t="number");return l(e,t)}},(e,t,r)=>{var n=r(20);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},e=>{e.exports=function(e){return"function"==typeof e}},(e,t,r)=>{var n=r(4),a=r(22),i=r(20),o=r(23),s=r(24),l=n.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=a("Symbol");return i(t)&&o(t.prototype,l(e))}},(e,t,r)=>{var n=r(4),a=r(20),aFunction=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?aFunction(n[e]):n[e]&&n[e][t]}},(e,t,r)=>{var n=r(14);e.exports=n({}.isPrototypeOf)},(e,t,r)=>{var n=r(25);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,r)=>{var n=r(26),a=r(7);e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},(e,t,r)=>{var n,a,i=r(4),o=r(27),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(a=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1]));!a&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(a=+n[1]);e.exports=a},(e,t,r)=>{var n=r(22);e.exports=n("navigator","userAgent")||""},(e,t,r)=>{var n=r(29);e.exports=function(e,t){var r=e[t];return null==r?void 0:n(r)}},(e,t,r)=>{var n=r(4),a=r(20),i=r(30),o=n.TypeError;e.exports=function(e){if(a(e))return e;throw o(i(e)+" is not a function")}},(e,t,r)=>{var n=r(4).String;e.exports=function(e){try{return n(e)}catch(e){return"Object"}}},(e,t,r)=>{var n=r(4),a=r(8),i=r(20),o=r(19),s=n.TypeError;e.exports=function(e,t){var r,n;if("string"===t&&i(r=e.toString)&&!o(n=a(r,e)))return n;if(i(r=e.valueOf)&&!o(n=a(r,e)))return n;if("string"!==t&&i(r=e.toString)&&!o(n=a(r,e)))return n;throw s("Can't convert object to primitive value")}},(e,t,r)=>{var n=r(4),a=r(33),i=r(37),o=r(39),s=r(25),l=r(24),c=a("wks"),u=n.Symbol,d=u&&u.for,h=l?u:u&&u.withoutSetter||o;e.exports=function(e){if(!i(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&i(u,e)?c[e]=u[e]:c[e]=l&&d?d(t):h(t)}return c[e]}},(e,t,r)=>{var n=r(34),a=r(35);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.0",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{e.exports=!1},(e,t,r)=>{var n=r(4),a=r(36),i="__core-js_shared__",o=n[i]||a(i,{});e.exports=o},(e,t,r)=>{var n=r(4),a=Object.defineProperty;e.exports=function(e,t){try{a(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},(e,t,r)=>{var n=r(14),a=r(38),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function hasOwn(e,t){return i(a(e),t)}},(e,t,r)=>{var n=r(4),a=r(16),i=n.Object;e.exports=function(e){return i(a(e))}},(e,t,r)=>{var n=r(14),a=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++a+i,36)}},(e,t,r)=>{var n=r(6),a=r(7),i=r(41);e.exports=!n&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},(e,t,r)=>{var n=r(4),a=r(19),i=n.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},(e,t,r)=>{var n=r(6),a=r(43),i=r(11);e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){e[t]=r;return e}},(e,t,r)=>{var n=r(4),a=r(6),i=r(40),o=r(44),s=r(45),l=r(17),c=n.TypeError,u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",p="writable";t.f=a?o?function defineProperty(e,t,r){s(e);t=l(t);s(r);if("function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r.writable){var n=d(e,t);if(n&&n.writable){e[t]=r.value;r={configurable:f in r?r.configurable:n.configurable,enumerable:h in r?r.enumerable:n.enumerable,writable:!1}}}return u(e,t,r)}:u:function defineProperty(e,t,r){s(e);t=l(t);s(r);if(i)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");"value"in r&&(e[t]=r.value);return e}},(e,t,r)=>{var n=r(6),a=r(7);e.exports=n&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(e,t,r)=>{var n=r(4),a=r(19),i=n.String,o=n.TypeError;e.exports=function(e){if(a(e))return e;throw o(i(e)+" is not an object")}},(e,t,r)=>{var n=r(4),a=r(20),i=r(37),o=r(42),s=r(36),l=r(47),c=r(48),u=r(52).CONFIGURABLE,d=c.get,h=c.enforce,f=String(String).split("String");(e.exports=function(e,t,r,l){var c,d=!!l&&!!l.unsafe,p=!!l&&!!l.enumerable,m=!!l&&!!l.noTargetGet,g=l&&void 0!==l.name?l.name:t;if(a(r)){"Symbol("===String(g).slice(0,7)&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]");(!i(r,"name")||u&&r.name!==g)&&o(r,"name",g);(c=h(r)).source||(c.source=f.join("string"==typeof g?g:""))}if(e!==n){d?!m&&e[t]&&(p=!0):delete e[t];p?e[t]=r:o(e,t,r)}else p?e[t]=r:s(t,r)})(Function.prototype,"toString",(function toString(){return a(this)&&d(this).source||l(this)}))},(e,t,r)=>{var n=r(14),a=r(20),i=r(35),o=n(Function.toString);a(i.inspectSource)||(i.inspectSource=function(e){return o(e)});e.exports=i.inspectSource},(e,t,r)=>{var n,a,i,o=r(49),s=r(4),l=r(14),c=r(19),u=r(42),d=r(37),h=r(35),f=r(50),p=r(51),m="Object already initialized",g=s.TypeError,b=s.WeakMap;if(o||h.state){var v=h.state||(h.state=new b),y=l(v.get),_=l(v.has),S=l(v.set);n=function(e,t){if(_(v,e))throw new g(m);t.facade=e;S(v,e,t);return t};a=function(e){return y(v,e)||{}};i=function(e){return _(v,e)}}else{var A=f("state");p[A]=!0;n=function(e,t){if(d(e,A))throw new g(m);t.facade=e;u(e,A,t);return t};a=function(e){return d(e,A)?e[A]:{}};i=function(e){return d(e,A)}}e.exports={set:n,get:a,has:i,enforce:function(e){return i(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=a(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return r}}}},(e,t,r)=>{var n=r(4),a=r(20),i=r(47),o=n.WeakMap;e.exports=a(o)&&/native code/.test(i(o))},(e,t,r)=>{var n=r(33),a=r(39),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},e=>{e.exports={}},(e,t,r)=>{var n=r(6),a=r(37),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,s=a(i,"name"),l=s&&"something"===function something(){}.name,c=s&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},(e,t,r)=>{var n=r(37),a=r(54),i=r(5),o=r(43);e.exports=function(e,t,r){for(var s=a(t),l=o.f,c=i.f,u=0;u<s.length;u++){var d=s[u];n(e,d)||r&&n(r,d)||l(e,d,c(t,d))}}},(e,t,r)=>{var n=r(22),a=r(14),i=r(55),o=r(63),s=r(45),l=a([].concat);e.exports=n("Reflect","ownKeys")||function ownKeys(e){var t=i.f(s(e)),r=o.f;return r?l(t,r(e)):t}},(e,t,r)=>{var n=r(56),a=r(62).concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return n(e,a)}},(e,t,r)=>{var n=r(14),a=r(37),i=r(12),o=r(57).indexOf,s=r(51),l=n([].push);e.exports=function(e,t){var r,n=i(e),c=0,u=[];for(r in n)!a(s,r)&&a(n,r)&&l(u,r);for(;t.length>c;)a(n,r=t[c++])&&(~o(u,r)||l(u,r));return u}},(e,t,r)=>{var n=r(12),a=r(58),i=r(60),createMethod=function(e){return function(t,r,o){var s,l=n(t),c=i(l),u=a(o,c);if(e&&r!=r){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(e,t,r)=>{var n=r(59),a=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):i(r,t)}},e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){var n=+e;return n!=n||0===n?0:(n>0?r:t)(n)}},(e,t,r)=>{var n=r(61);e.exports=function(e){return n(e.length)}},(e,t,r)=>{var n=r(59),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(e,t)=>{t.f=Object.getOwnPropertySymbols},(e,t,r)=>{var n=r(7),a=r(20),i=/#|\.prototype\./,isForced=function(e,t){var r=s[o(e)];return r==c||r!=l&&(a(t)?n(t):!!t)},o=isForced.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=isForced.data={},l=isForced.NATIVE="N",c=isForced.POLYFILL="P";e.exports=isForced},(e,t,r)=>{var n=r(4);e.exports=n.Promise},(e,t,r)=>{var n=r(46);e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},(e,t,r)=>{var n=r(14),a=r(45),i=r(68);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]);t=r instanceof Array}catch(e){}return function setPrototypeOf(r,n){a(r);i(n);t?e(r,n):r.__proto__=n;return r}}():void 0)},(e,t,r)=>{var n=r(4),a=r(20),i=n.String,o=n.TypeError;e.exports=function(e){if("object"==typeof e||a(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},(e,t,r)=>{var n=r(43).f,a=r(37),i=r(32)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype);e&&!a(e,i)&&n(e,i,{configurable:!0,value:t})}},(e,t,r)=>{"use strict";var n=r(22),a=r(43),i=r(32),o=r(6),s=i("species");e.exports=function(e){var t=n(e),r=a.f;o&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},(e,t,r)=>{var n=r(4),a=r(23),i=n.TypeError;e.exports=function(e,t){if(a(t,e))return e;throw i("Incorrect invocation")}},(e,t,r)=>{var n=r(4),a=r(73),i=r(8),o=r(45),s=r(30),l=r(74),c=r(60),u=r(23),d=r(76),h=r(77),f=r(80),p=n.TypeError,Result=function(e,t){this.stopped=e;this.result=t},m=Result.prototype;e.exports=function(e,t,r){var n,g,b,v,y,_,S,A=r&&r.that,R=!(!r||!r.AS_ENTRIES),C=!(!r||!r.IS_ITERATOR),w=!(!r||!r.INTERRUPTED),x=a(t,A),stop=function(e){n&&f(n,"normal",e);return new Result(!0,e)},callFn=function(e){if(R){o(e);return w?x(e[0],e[1],stop):x(e[0],e[1])}return w?x(e,stop):x(e)};if(C)n=e;else{if(!(g=h(e)))throw p(s(e)+" is not iterable");if(l(g)){for(b=0,v=c(e);v>b;b++)if((y=callFn(e[b]))&&u(m,y))return y;return new Result(!1)}n=d(e,g)}_=n.next;for(;!(S=i(_,n)).done;){try{y=callFn(S.value)}catch(e){f(n,"throw",e)}if("object"==typeof y&&y&&u(m,y))return y}return new Result(!1)}},(e,t,r)=>{var n=r(14),a=r(29),i=r(9),o=n(n.bind);e.exports=function(e,t){a(e);return void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},(e,t,r)=>{var n=r(32),a=r(75),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||o[i]===e)}},e=>{e.exports={}},(e,t,r)=>{var n=r(4),a=r(8),i=r(29),o=r(45),s=r(30),l=r(77),c=n.TypeError;e.exports=function(e,t){var r=arguments.length<2?l(e):t;if(i(r))return o(a(r,e));throw c(s(e)+" is not iterable")}},(e,t,r)=>{var n=r(78),a=r(28),i=r(75),o=r(32)("iterator");e.exports=function(e){if(null!=e)return a(e,o)||a(e,"@@iterator")||i[n(e)]}},(e,t,r)=>{var n=r(4),a=r(79),i=r(20),o=r(15),s=r(32)("toStringTag"),l=n.Object,c="Arguments"==o(function(){return arguments}());e.exports=a?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=l(e),s))?r:c?o(t):"Object"==(n=o(t))&&i(t.callee)?"Arguments":n}},(e,t,r)=>{var n={};n[r(32)("toStringTag")]="z";e.exports="[object z]"===String(n)},(e,t,r)=>{var n=r(8),a=r(45),i=r(28);e.exports=function(e,t,r){var o,s;a(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){s=!0;o=e}if("throw"===t)throw r;if(s)throw o;a(o);return r}},(e,t,r)=>{var n=r(32)("iterator"),a=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){a=!0}};o[n]=function(){return this};Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}};e(i)}catch(e){}return r}},(e,t,r)=>{var n=r(45),a=r(83),i=r(32)("species");e.exports=function(e,t){var r,o=n(e).constructor;return void 0===o||null==(r=n(o)[i])?t:a(r)}},(e,t,r)=>{var n=r(4),a=r(84),i=r(30),o=n.TypeError;e.exports=function(e){if(a(e))return e;throw o(i(e)+" is not a constructor")}},(e,t,r)=>{var n=r(14),a=r(7),i=r(20),o=r(78),s=r(22),l=r(47),noop=function(){},c=[],u=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=n(d.exec),f=!d.exec(noop),p=function isConstructor(e){if(!i(e))return!1;try{u(noop,c,e);return!0}catch(e){return!1}},m=function isConstructor(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!h(d,l(e))}catch(e){return!0}};m.sham=!0;e.exports=!u||a((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?m:p},(e,t,r)=>{var n,a,i,o,s=r(4),l=r(86),c=r(73),u=r(20),d=r(37),h=r(7),f=r(87),p=r(88),m=r(41),g=r(89),b=r(90),v=r(91),y=s.setImmediate,_=s.clearImmediate,S=s.process,A=s.Dispatch,R=s.Function,C=s.MessageChannel,w=s.String,x=0,P={},T="onreadystatechange";try{n=s.location}catch(e){}var run=function(e){if(d(P,e)){var t=P[e];delete P[e];t()}},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){s.postMessage(w(e),n.protocol+"//"+n.host)};if(!y||!_){y=function setImmediate(e){g(arguments.length,1);var t=u(e)?e:R(e),r=p(arguments,1);P[++x]=function(){l(t,void 0,r)};a(x);return x};_=function clearImmediate(e){delete P[e]};if(v)a=function(e){S.nextTick(runner(e))};else if(A&&A.now)a=function(e){A.now(runner(e))};else if(C&&!b){o=(i=new C).port2;i.port1.onmessage=listener;a=c(o.postMessage,o)}else if(s.addEventListener&&u(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!h(post)){a=post;s.addEventListener("message",listener,!1)}else a=T in m("script")?function(e){f.appendChild(m("script")).onreadystatechange=function(){f.removeChild(this);run(e)}}:function(e){setTimeout(runner(e),0)}}e.exports={set:y,clear:_}},(e,t,r)=>{var n=r(9),a=Function.prototype,i=a.apply,o=a.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},(e,t,r)=>{var n=r(22);e.exports=n("document","documentElement")},(e,t,r)=>{var n=r(14);e.exports=n([].slice)},(e,t,r)=>{var n=r(4).TypeError;e.exports=function(e,t){if(e<t)throw n("Not enough arguments");return e}},(e,t,r)=>{var n=r(27);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},(e,t,r)=>{var n=r(15),a=r(4);e.exports="process"==n(a.process)},(e,t,r)=>{var n,a,i,o,s,l,c,u,d=r(4),h=r(73),f=r(5).f,p=r(85).set,m=r(90),g=r(93),b=r(94),v=r(91),y=d.MutationObserver||d.WebKitMutationObserver,_=d.document,S=d.process,A=d.Promise,R=f(d,"queueMicrotask"),C=R&&R.value;if(!C){n=function(){var e,t;v&&(e=S.domain)&&e.exit();for(;a;){t=a.fn;a=a.next;try{t()}catch(e){a?o():i=void 0;throw e}}i=void 0;e&&e.enter()};if(m||v||b||!y||!_)if(!g&&A&&A.resolve){(c=A.resolve(void 0)).constructor=A;u=h(c.then,c);o=function(){u(n)}}else if(v)o=function(){S.nextTick(n)};else{p=h(p,d);o=function(){p(n)}}else{s=!0;l=_.createTextNode("");new y(n).observe(l,{characterData:!0});o=function(){l.data=s=!s}}}e.exports=C||function(e){var t={fn:e,next:void 0};i&&(i.next=t);if(!a){a=t;o()}i=t}},(e,t,r)=>{var n=r(27),a=r(4);e.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==a.Pebble},(e,t,r)=>{var n=r(27);e.exports=/web0s(?!.*chrome)/i.test(n)},(e,t,r)=>{var n=r(45),a=r(19),i=r(96);e.exports=function(e,t){n(e);if(a(t)&&t.constructor===e)return t;var r=i.f(e);(0,r.resolve)(t);return r.promise}},(e,t,r)=>{"use strict";var n=r(29),PromiseCapability=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e;r=n}));this.resolve=n(t);this.reject=n(r)};e.exports.f=function(e){return new PromiseCapability(e)}},(e,t,r)=>{var n=r(4);e.exports=function(e,t){var r=n.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}},e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},e=>{var Queue=function(){this.head=null;this.tail=null};Queue.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t;this.tail=t},get:function(){var e=this.head;if(e){this.head=e.next;this.tail===e&&(this.tail=null);return e.item}}};e.exports=Queue},e=>{e.exports="object"==typeof window},(e,t,r)=>{r(102)("Uint8",(function(e){return function Uint8Array(t,r,n){return e(this,t,r,n)}}))},(e,t,r)=>{"use strict";var n=r(3),a=r(4),i=r(8),o=r(6),s=r(103),l=r(104),c=r(108),u=r(71),d=r(11),h=r(42),f=r(114),p=r(61),m=r(109),g=r(115),b=r(17),v=r(37),y=r(78),_=r(19),S=r(21),A=r(117),R=r(23),C=r(67),w=r(55).f,x=r(120),P=r(121).forEach,T=r(70),k=r(43),E=r(5),I=r(48),D=r(125),O=I.get,M=I.set,L=k.f,W=E.f,B=Math.round,j=a.RangeError,N=c.ArrayBuffer,q=N.prototype,U=c.DataView,z=l.NATIVE_ARRAY_BUFFER_VIEWS,G=l.TYPED_ARRAY_CONSTRUCTOR,V=l.TYPED_ARRAY_TAG,H=l.TypedArray,Y=l.TypedArrayPrototype,X=l.aTypedArrayConstructor,Q=l.isTypedArray,K="BYTES_PER_ELEMENT",J="Wrong length",fromList=function(e,t){X(e);for(var r=0,n=t.length,a=new e(n);n>r;)a[r]=t[r++];return a},addGetter=function(e,t){L(e,t,{get:function(){return O(this)[t]}})},isArrayBuffer=function(e){var t;return R(q,e)||"ArrayBuffer"==(t=y(e))||"SharedArrayBuffer"==t},isTypedArrayIndex=function(e,t){return Q(e)&&!S(t)&&t in e&&f(+t)&&t>=0},$=function getOwnPropertyDescriptor(e,t){t=b(t);return isTypedArrayIndex(e,t)?d(2,e[t]):W(e,t)},Z=function defineProperty(e,t,r){t=b(t);if(isTypedArrayIndex(e,t)&&_(r)&&v(r,"value")&&!v(r,"get")&&!v(r,"set")&&!r.configurable&&(!v(r,"writable")||r.writable)&&(!v(r,"enumerable")||r.enumerable)){e[t]=r.value;return e}return L(e,t,r)};if(o){if(!z){E.f=$;k.f=Z;addGetter(Y,"buffer");addGetter(Y,"byteOffset");addGetter(Y,"byteLength");addGetter(Y,"length")}n({target:"Object",stat:!0,forced:!z},{getOwnPropertyDescriptor:$,defineProperty:Z});e.exports=function(e,t,r){var o=e.match(/\d+$/)[0]/8,l=e+(r?"Clamped":"")+"Array",c="get"+e,d="set"+e,f=a[l],b=f,v=b&&b.prototype,y={},addElement=function(e,t){L(e,t,{get:function(){return function(e,t){var r=O(e);return r.view[c](t*o+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var a=O(e);r&&(n=(n=B(n))<0?0:n>255?255:255&n);a.view[d](t*o+a.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};if(z){if(s){b=t((function(e,t,r,n){u(e,v);return D(_(t)?isArrayBuffer(t)?void 0!==n?new f(t,g(r,o),n):void 0!==r?new f(t,g(r,o)):new f(t):Q(t)?fromList(b,t):i(x,b,t):new f(m(t)),e,b)}));C&&C(b,H);P(w(f),(function(e){e in b||h(b,e,f[e])}));b.prototype=v}}else{b=t((function(e,t,r,n){u(e,v);var a,s,l,c=0,d=0;if(_(t)){if(!isArrayBuffer(t))return Q(t)?fromList(b,t):i(x,b,t);a=t;d=g(r,o);var h=t.byteLength;if(void 0===n){if(h%o)throw j(J);if((s=h-d)<0)throw j(J)}else if((s=p(n)*o)+d>h)throw j(J);l=s/o}else{l=m(t);a=new N(s=l*o)}M(e,{buffer:a,byteOffset:d,byteLength:s,length:l,view:new U(a)});for(;c<l;)addElement(e,c++)}));C&&C(b,H);v=b.prototype=A(Y)}v.constructor!==b&&h(v,"constructor",b);h(v,G,b);V&&h(v,V,l);y[l]=b;n({global:!0,forced:b!=f,sham:!z},y);K in b||h(b,K,o);K in v||h(v,K,o);T(l)}}else e.exports=function(){}},(e,t,r)=>{var n=r(4),a=r(7),i=r(81),o=r(104).NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,l=n.Int8Array;e.exports=!o||!a((function(){l(1)}))||!a((function(){new l(-1)}))||!i((function(e){new l;new l(null);new l(1.5);new l(e)}),!0)||a((function(){return 1!==new l(new s(2),1,void 0).length}))},(e,t,r)=>{"use strict";var n,a,i,o=r(105),s=r(6),l=r(4),c=r(20),u=r(19),d=r(37),h=r(78),f=r(30),p=r(42),m=r(46),g=r(43).f,b=r(23),v=r(106),y=r(67),_=r(32),S=r(39),A=l.Int8Array,R=A&&A.prototype,C=l.Uint8ClampedArray,w=C&&C.prototype,x=A&&v(A),P=R&&v(R),T=Object.prototype,k=l.TypeError,E=_("toStringTag"),I=S("TYPED_ARRAY_TAG"),D=S("TYPED_ARRAY_CONSTRUCTOR"),O=o&&!!y&&"Opera"!==h(l.opera),M=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},W={BigInt64Array:8,BigUint64Array:8},isTypedArray=function(e){if(!u(e))return!1;var t=h(e);return d(L,t)||d(W,t)};for(n in L)(i=(a=l[n])&&a.prototype)?p(i,D,a):O=!1;for(n in W)(i=(a=l[n])&&a.prototype)&&p(i,D,a);if(!O||!c(x)||x===Function.prototype){x=function TypedArray(){throw k("Incorrect invocation")};if(O)for(n in L)l[n]&&y(l[n],x)}if(!O||!P||P===T){P=x.prototype;if(O)for(n in L)l[n]&&y(l[n].prototype,P)}O&&v(w)!==P&&y(w,P);if(s&&!d(P,E)){M=!0;g(P,E,{get:function(){return u(this)?this[I]:void 0}});for(n in L)l[n]&&p(l[n],I,n)}e.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_CONSTRUCTOR:D,TYPED_ARRAY_TAG:M&&I,aTypedArray:function(e){if(isTypedArray(e))return e;throw k("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!y||b(x,e)))return e;throw k(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(s){if(r)for(var a in L){var i=l[a];if(i&&d(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}P[e]&&!r||m(P,e,r?t:O&&R[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,a;if(s){if(y){if(r)for(n in L)if((a=l[n])&&d(a,e))try{delete a[e]}catch(e){}if(x[e]&&!r)return;try{return m(x,e,r?t:O&&x[e]||t)}catch(e){}}for(n in L)!(a=l[n])||a[e]&&!r||m(a,e,t)}},isView:function isView(e){if(!u(e))return!1;var t=h(e);return"DataView"===t||d(L,t)||d(W,t)},isTypedArray:isTypedArray,TypedArray:x,TypedArrayPrototype:P}},e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},(e,t,r)=>{var n=r(4),a=r(37),i=r(20),o=r(38),s=r(50),l=r(107),c=s("IE_PROTO"),u=n.Object,d=u.prototype;e.exports=l?u.getPrototypeOf:function(e){var t=o(e);if(a(t,c))return t[c];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof u?d:null}},(e,t,r)=>{var n=r(7);e.exports=!n((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(e,t,r)=>{"use strict";var n=r(4),a=r(14),i=r(6),o=r(105),s=r(52),l=r(42),c=r(66),u=r(7),d=r(71),h=r(59),f=r(61),p=r(109),m=r(110),g=r(106),b=r(67),v=r(55).f,y=r(43).f,_=r(111),S=r(112),A=r(69),R=r(48),C=s.PROPER,w=s.CONFIGURABLE,x=R.get,P=R.set,T="ArrayBuffer",k="DataView",E="Wrong index",I=n.ArrayBuffer,D=I,O=D&&D.prototype,M=n.DataView,L=M&&M.prototype,W=Object.prototype,B=n.Array,j=n.RangeError,N=a(_),q=a([].reverse),U=m.pack,z=m.unpack,packInt8=function(e){return[255&e]},packInt16=function(e){return[255&e,e>>8&255]},packInt32=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},unpackInt32=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},packFloat32=function(e){return U(e,23,4)},packFloat64=function(e){return U(e,52,8)},addGetter=function(e,t){y(e.prototype,t,{get:function(){return x(this)[t]}})},get=function(e,t,r,n){var a=p(r),i=x(e);if(a+t>i.byteLength)throw j(E);var o=x(i.buffer).bytes,s=a+i.byteOffset,l=S(o,s,s+t);return n?l:q(l)},set=function(e,t,r,n,a,i){var o=p(r),s=x(e);if(o+t>s.byteLength)throw j(E);for(var l=x(s.buffer).bytes,c=o+s.byteOffset,u=n(+a),d=0;d<t;d++)l[c+d]=u[i?d:t-d-1]};if(o){var G=C&&I.name!==T;if(u((function(){I(1)}))&&u((function(){new I(-1)}))&&!u((function(){new I;new I(1.5);new I(NaN);return G&&!w})))G&&w&&l(I,"name",T);else{(D=function ArrayBuffer(e){d(this,O);return new I(p(e))}).prototype=O;for(var V,H=v(I),Y=0;H.length>Y;)(V=H[Y++])in D||l(D,V,I[V]);O.constructor=D}b&&g(L)!==W&&b(L,W);var X=new M(new D(2)),Q=a(L.setInt8);X.setInt8(0,2147483648);X.setInt8(1,2147483649);!X.getInt8(0)&&X.getInt8(1)||c(L,{setInt8:function setInt8(e,t){Q(this,e,t<<24>>24)},setUint8:function setUint8(e,t){Q(this,e,t<<24>>24)}},{unsafe:!0})}else{O=(D=function ArrayBuffer(e){d(this,O);var t=p(e);P(this,{bytes:N(B(t),0),byteLength:t});i||(this.byteLength=t)}).prototype;L=(M=function DataView(e,t,r){d(this,L);d(e,O);var n=x(e).byteLength,a=h(t);if(a<0||a>n)throw j("Wrong offset");if(a+(r=void 0===r?n-a:f(r))>n)throw j("Wrong length");P(this,{buffer:e,byteLength:r,byteOffset:a});if(!i){this.buffer=e;this.byteLength=r;this.byteOffset=a}}).prototype;if(i){addGetter(D,"byteLength");addGetter(M,"buffer");addGetter(M,"byteLength");addGetter(M,"byteOffset")}c(L,{getInt8:function getInt8(e){return get(this,1,e)[0]<<24>>24},getUint8:function getUint8(e){return get(this,1,e)[0]},getInt16:function getInt16(e){var t=get(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function getUint16(e){var t=get(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function getInt32(e){return unpackInt32(get(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function getUint32(e){return unpackInt32(get(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function getFloat32(e){return z(get(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function getFloat64(e){return z(get(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function setInt8(e,t){set(this,1,e,packInt8,t)},setUint8:function setUint8(e,t){set(this,1,e,packInt8,t)},setInt16:function setInt16(e,t){set(this,2,e,packInt16,t,arguments.length>2?arguments[2]:void 0)},setUint16:function setUint16(e,t){set(this,2,e,packInt16,t,arguments.length>2?arguments[2]:void 0)},setInt32:function setInt32(e,t){set(this,4,e,packInt32,t,arguments.length>2?arguments[2]:void 0)},setUint32:function setUint32(e,t){set(this,4,e,packInt32,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function setFloat32(e,t){set(this,4,e,packFloat32,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function setFloat64(e,t){set(this,8,e,packFloat64,t,arguments.length>2?arguments[2]:void 0)}})}A(D,T);A(M,k);e.exports={ArrayBuffer:D,DataView:M}},(e,t,r)=>{var n=r(4),a=r(59),i=r(61),o=n.RangeError;e.exports=function(e){if(void 0===e)return 0;var t=a(e),r=i(t);if(t!==r)throw o("Wrong length or index");return r}},(e,t,r)=>{var n=r(4).Array,a=Math.abs,i=Math.pow,o=Math.floor,s=Math.log,l=Math.LN2;e.exports={pack:function(e,t,r){var c,u,d,h=n(r),f=8*r-t-1,p=(1<<f)-1,m=p>>1,g=23===t?i(2,-24)-i(2,-77):0,b=e<0||0===e&&1/e<0?1:0,v=0;if((e=a(e))!=e||e===1/0){u=e!=e?1:0;c=p}else{c=o(s(e)/l);if(e*(d=i(2,-c))<1){c--;d*=2}if((e+=c+m>=1?g/d:g*i(2,1-m))*d>=2){c++;d/=2}if(c+m>=p){u=0;c=p}else if(c+m>=1){u=(e*d-1)*i(2,t);c+=m}else{u=e*i(2,m-1)*i(2,t);c=0}}for(;t>=8;){h[v++]=255&u;u/=256;t-=8}c=c<<t|u;f+=t;for(;f>0;){h[v++]=255&c;c/=256;f-=8}h[--v]|=128*b;return h},unpack:function(e,t){var r,n=e.length,a=8*n-t-1,o=(1<<a)-1,s=o>>1,l=a-7,c=n-1,u=e[c--],d=127&u;u>>=7;for(;l>0;){d=256*d+e[c--];l-=8}r=d&(1<<-l)-1;d>>=-l;l+=t;for(;l>0;){r=256*r+e[c--];l-=8}if(0===d)d=1-s;else{if(d===o)return r?NaN:u?-1/0:1/0;r+=i(2,t);d-=s}return(u?-1:1)*r*i(2,d-t)}}},(e,t,r)=>{"use strict";var n=r(38),a=r(58),i=r(60);e.exports=function fill(e){for(var t=n(this),r=i(t),o=arguments.length,s=a(o>1?arguments[1]:void 0,r),l=o>2?arguments[2]:void 0,c=void 0===l?r:a(l,r);c>s;)t[s++]=e;return t}},(e,t,r)=>{var n=r(4),a=r(58),i=r(60),o=r(113),s=n.Array,l=Math.max;e.exports=function(e,t,r){for(var n=i(e),c=a(t,n),u=a(void 0===r?n:r,n),d=s(l(u-c,0)),h=0;c<u;c++,h++)o(d,h,e[c]);d.length=h;return d}},(e,t,r)=>{"use strict";var n=r(17),a=r(43),i=r(11);e.exports=function(e,t,r){var o=n(t);o in e?a.f(e,o,i(0,r)):e[o]=r}},(e,t,r)=>{var n=r(19),a=Math.floor;e.exports=Number.isInteger||function isInteger(e){return!n(e)&&isFinite(e)&&a(e)===e}},(e,t,r)=>{var n=r(4),a=r(116),i=n.RangeError;e.exports=function(e,t){var r=a(e);if(r%t)throw i("Wrong offset");return r}},(e,t,r)=>{var n=r(4),a=r(59),i=n.RangeError;e.exports=function(e){var t=a(e);if(t<0)throw i("The argument can't be less than 0");return t}},(e,t,r)=>{var n,a=r(45),i=r(118),o=r(62),s=r(51),l=r(87),c=r(41),u=r(50),d=u("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return"<script>"+e+"</"+"script>"},NullProtoObjectViaActiveX=function(e){e.write(scriptTag(""));e.close();var t=e.parentWindow.Object;e=null;return t},NullProtoObject=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"!=typeof document?document.domain&&n?NullProtoObjectViaActiveX(n):function(){var e,t=c("iframe");t.style.display="none";l.appendChild(t);t.src=String("javascript:");(e=t.contentWindow.document).open();e.write(scriptTag("document.F=Object"));e.close();return e.F}():NullProtoObjectViaActiveX(n);for(var e=o.length;e--;)delete NullProtoObject.prototype[o[e]];return NullProtoObject()};s[d]=!0;e.exports=Object.create||function create(e,t){var r;if(null!==e){EmptyConstructor.prototype=a(e);r=new EmptyConstructor;EmptyConstructor.prototype=null;r[d]=e}else r=NullProtoObject();return void 0===t?r:i.f(r,t)}},(e,t,r)=>{var n=r(6),a=r(44),i=r(43),o=r(45),s=r(12),l=r(119);t.f=n&&!a?Object.defineProperties:function defineProperties(e,t){o(e);for(var r,n=s(t),a=l(t),c=a.length,u=0;c>u;)i.f(e,r=a[u++],n[r]);return e}},(e,t,r)=>{var n=r(56),a=r(62);e.exports=Object.keys||function keys(e){return n(e,a)}},(e,t,r)=>{var n=r(73),a=r(8),i=r(83),o=r(38),s=r(60),l=r(76),c=r(77),u=r(74),d=r(104).aTypedArrayConstructor;e.exports=function from(e){var t,r,h,f,p,m,g=i(this),b=o(e),v=arguments.length,y=v>1?arguments[1]:void 0,_=void 0!==y,S=c(b);if(S&&!u(S)){m=(p=l(b,S)).next;b=[];for(;!(f=a(m,p)).done;)b.push(f.value)}_&&v>2&&(y=n(y,arguments[2]));r=s(b);h=new(d(g))(r);for(t=0;r>t;t++)h[t]=_?y(b[t],t):b[t];return h}},(e,t,r)=>{var n=r(73),a=r(14),i=r(13),o=r(38),s=r(60),l=r(122),c=a([].push),createMethod=function(e){var t=1==e,r=2==e,a=3==e,u=4==e,d=6==e,h=7==e,f=5==e||d;return function(p,m,g,b){for(var v,y,_=o(p),S=i(_),A=n(m,g),R=s(S),C=0,w=b||l,x=t?w(p,R):r||h?w(p,0):void 0;R>C;C++)if(f||C in S){y=A(v=S[C],C,_);if(e)if(t)x[C]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return C;case 2:c(x,v)}else switch(e){case 4:return!1;case 7:c(x,v)}}return d?-1:a||u?u:x}};e.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterReject:createMethod(7)}},(e,t,r)=>{var n=r(123);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},(e,t,r)=>{var n=r(4),a=r(124),i=r(84),o=r(19),s=r(32)("species"),l=n.Array;e.exports=function(e){var t;if(a(e)){t=e.constructor;(i(t)&&(t===l||a(t.prototype))||o(t)&&null===(t=t[s]))&&(t=void 0)}return void 0===t?l:t}},(e,t,r)=>{var n=r(15);e.exports=Array.isArray||function isArray(e){return"Array"==n(e)}},(e,t,r)=>{var n=r(20),a=r(19),i=r(67);e.exports=function(e,t,r){var o,s;i&&n(o=t.constructor)&&o!==r&&a(s=o.prototype)&&s!==r.prototype&&i(e,s);return e}},(e,t,r)=>{"use strict";var n=r(4),a=r(8),i=r(104),o=r(60),s=r(115),l=r(38),c=r(7),u=n.RangeError,d=n.Int8Array,h=d&&d.prototype,f=h&&h.set,p=i.aTypedArray,m=i.exportTypedArrayMethod,g=!c((function(){var e=new Uint8ClampedArray(2);a(f,e,{length:1,0:3},1);return 3!==e[1]})),b=g&&i.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new d(2);e.set(1);e.set("2",1);return 0!==e[0]||2!==e[1]}));m("set",(function set(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),r=l(e);if(g)return a(f,this,r,t);var n=this.length,i=o(r),c=0;if(i+t>n)throw u("Wrong length");for(;c<i;)this[t+c]=r[c++]}),!g||b)},(e,t,r)=>{"use strict";var n=r(4),a=r(14),i=r(7),o=r(29),s=r(128),l=r(104),c=r(129),u=r(130),d=r(26),h=r(131),f=n.Array,p=l.aTypedArray,m=l.exportTypedArrayMethod,g=n.Uint16Array,b=g&&a(g.prototype.sort),v=!(!b||i((function(){b(new g(2),null)}))&&i((function(){b(new g(2),{})}))),y=!!b&&!i((function(){if(d)return d<74;if(c)return c<67;if(u)return!0;if(h)return h<602;var e,t,r=new g(516),n=f(516);for(e=0;e<516;e++){t=e%4;r[e]=515-e;n[e]=e-2*t+3}b(r,(function(e,t){return(e/4|0)-(t/4|0)}));for(e=0;e<516;e++)if(r[e]!==n[e])return!0}));m("sort",(function sort(e){void 0!==e&&o(e);return y?b(this,e):s(p(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!y||v)},(e,t,r)=>{var n=r(112),a=Math.floor,mergeSort=function(e,t){var r=e.length,i=a(r/2);return r<8?insertionSort(e,t):merge(e,mergeSort(n(e,0,i),t),mergeSort(n(e,i),t),t)},insertionSort=function(e,t){for(var r,n,a=e.length,i=1;i<a;){n=i;r=e[i];for(;n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},merge=function(e,t,r,n){for(var a=t.length,i=r.length,o=0,s=0;o<a||s<i;)e[o+s]=o<a&&s<i?n(t[o],r[s])<=0?t[o++]:r[s++]:o<a?t[o++]:r[s++];return e};e.exports=mergeSort},(e,t,r)=>{var n=r(27).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},(e,t,r)=>{var n=r(27);e.exports=/MSIE|Trident/.test(n)},(e,t,r)=>{var n=r(27).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},(e,t,r)=>{"use strict";var n=r(3),a=r(133);n({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},(e,t,r)=>{"use strict";var n=r(8),a=r(14),i=r(134),o=r(135),s=r(136),l=r(33),c=r(117),u=r(48).get,d=r(137),h=r(138),f=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,m=p,g=a("".charAt),b=a("".indexOf),v=a("".replace),y=a("".slice),_=function(){var e=/a/,t=/b*/g;n(p,e,"a");n(p,t,"a");return 0!==e.lastIndex||0!==t.lastIndex}(),S=s.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(_||A||S||d||h)&&(m=function exec(e){var t,r,a,s,l,d,h,R=this,C=u(R),w=i(e),x=C.raw;if(x){x.lastIndex=R.lastIndex;t=n(m,x,w);R.lastIndex=x.lastIndex;return t}var P=C.groups,T=S&&R.sticky,k=n(o,R),E=R.source,I=0,D=w;if(T){k=v(k,"y","");-1===b(k,"g")&&(k+="g");D=y(w,R.lastIndex);if(R.lastIndex>0&&(!R.multiline||R.multiline&&"\n"!==g(w,R.lastIndex-1))){E="(?: "+E+")";D=" "+D;I++}r=new RegExp("^(?:"+E+")",k)}A&&(r=new RegExp("^"+E+"$(?!\\s)",k));_&&(a=R.lastIndex);s=n(p,T?r:R,D);if(T)if(s){s.input=y(s.input,I);s[0]=y(s[0],I);s.index=R.lastIndex;R.lastIndex+=s[0].length}else R.lastIndex=0;else _&&s&&(R.lastIndex=R.global?s.index+s[0].length:a);A&&s&&s.length>1&&n(f,s[0],r,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)}));if(s&&P){s.groups=d=c(null);for(l=0;l<P.length;l++)d[(h=P[l])[0]]=s[h[1]]}return s});e.exports=m},(e,t,r)=>{var n=r(4),a=r(78),i=n.String;e.exports=function(e){if("Symbol"===a(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},(e,t,r)=>{"use strict";var n=r(45);e.exports=function(){var e=n(this),t="";e.global&&(t+="g");e.ignoreCase&&(t+="i");e.multiline&&(t+="m");e.dotAll&&(t+="s");e.unicode&&(t+="u");e.sticky&&(t+="y");return t}},(e,t,r)=>{var n=r(7),a=r(4).RegExp,i=n((function(){var e=a("a","y");e.lastIndex=2;return null!=e.exec("abcd")})),o=i||n((function(){return!a("a","y").sticky})),s=i||n((function(){var e=a("^r","gy");e.lastIndex=2;return null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:i}},(e,t,r)=>{var n=r(7),a=r(4).RegExp;e.exports=n((function(){var e=a(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},(e,t,r)=>{var n=r(7),a=r(4).RegExp;e.exports=n((function(){var e=a("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},(e,t,r)=>{var n=r(4),a=r(140),i=r(141),o=r(