MindMap/frontend/node_modules/pdfjs-dist/legacy/build/pdf.sandbox.min.mjs

25 lines
726 KiB
JavaScript
Raw Normal View History

/**
* @licstart The following is the entire license notice for the
* JavaScript code in this page
*
* Copyright 2024 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @licend The above is the entire license notice for the
* JavaScript code in this page
*/
/**
* pdfjsVersion = 5.4.149
* pdfjsBuild = 9e2e9e209
*/var A={34:(A,I,g)=>{var C=g(4901);A.exports=function(A){return"object"==typeof A?null!==A:C(A)}},81:(A,I,g)=>{var C=g(9565),B=g(9306),E=g(8551),i=g(6823),o=g(851),t=TypeError;A.exports=function(A,I){var g=arguments.length<2?o(A):I;if(B(g))return E(C(g,A));throw new t(i(A)+" is not iterable")}},283:(A,I,g)=>{var C=g(9504),B=g(9039),E=g(4901),i=g(9297),o=g(3724),t=g(350).CONFIGURABLE,s=g(3706),r=g(1181),h=r.enforce,c=r.get,y=String,G=Object.defineProperty,M=C("".slice),n=C("".replace),k=C([].join),U=o&&!B((function(){return 8!==G((function(){}),"length",{value:8}).length})),J=String(String).split("String"),L=A.exports=function(A,I,g){"Symbol("===M(y(I),0,7)&&(I="["+n(y(I),/^Symbol\(([^)]*)\).*$/,"$1")+"]");g&&g.getter&&(I="get "+I);g&&g.setter&&(I="set "+I);(!i(A,"name")||t&&A.name!==I)&&(o?G(A,"name",{value:I,configurable:!0}):A.name=I);U&&g&&i(g,"arity")&&A.length!==g.arity&&G(A,"length",{value:g.arity});try{g&&i(g,"constructor")&&g.constructor?o&&G(A,"prototype",{writable:!1}):A.prototype&&(A.prototype=void 0)}catch(A){}var C=h(A);i(C,"source")||(C.source=k(J,"string"==typeof I?I:""));return A};Function.prototype.toString=L((function toString(){return E(this)&&c(this).source||s(this)}),"toString")},350:(A,I,g)=>{var C=g(3724),B=g(9297),E=Function.prototype,i=C&&Object.getOwnPropertyDescriptor,o=B(E,"name"),t=o&&"something"===function something(){}.name,s=o&&(!C||C&&i(E,"name").configurable);A.exports={EXISTS:o,PROPER:t,CONFIGURABLE:s}},397:(A,I,g)=>{var C=g(7751);A.exports=C("document","documentElement")},421:A=>{A.exports={}},456:(A,I,g)=>{var C=g(6518),B=g(4576),E=g(9504),i=g(4154),o=g(5169),t=E(1.1.toString),s=B.Uint8Array,r=!s||!s.prototype.toHex||!function(){try{return"ffffffffffffffff"===new s([255,255,255,255,255,255,255,255]).toHex()}catch(A){return!1}}();s&&C({target:"Uint8Array",proto:!0,forced:r},{toHex:function toHex(){i(this);o(this.buffer);for(var A="",I=0,g=this.length;I<g;I++){var C=t(this[I],16);A+=1===C.length?"0"+C:C}return A}})},616:(A,I,g)=>{var C=g(9039);A.exports=!C((function(){var A=function(){}.bind();return"function"!=typeof A||A.hasOwnProperty("prototype")}))},655:(A,I,g)=>{var C=g(6955),B=String;A.exports=function(A){if("Symbol"===C(A))throw new TypeError("Cannot convert a Symbol value to a string");return B(A)}},679:(A,I,g)=>{var C=g(1625),B=TypeError;A.exports=function(A,I){if(C(I,A))return A;throw new B("Incorrect invocation")}},741:A=>{var I=Math.ceil,g=Math.floor;A.exports=Math.trunc||function trunc(A){var C=+A;return(C>0?g:I)(C)}},757:(A,I,g)=>{var C=g(7751),B=g(4901),E=g(1625),i=g(7040),o=Object;A.exports=i?function(A){return"symbol"==typeof A}:function(A){var I=C("Symbol");return B(I)&&E(I.prototype,o(A))}},851:(A,I,g)=>{var C=g(6955),B=g(5966),E=g(4117),i=g(6269),o=g(8227)("iterator");A.exports=function(A){if(!E(A))return B(A,o)||B(A,"@@iterator")||i[C(A)]}},944:A=>{var I=TypeError;A.exports=function(A){var g=A&&A.alphabet;if(void 0===g||"base64"===g||"base64url"===g)return g||"base64";throw new I("Incorrect `alphabet` option")}},1072:(A,I,g)=>{var C=g(1828),B=g(8727);A.exports=Object.keys||function keys(A){return C(A,B)}},1108:(A,I,g)=>{var C=g(6955);A.exports=function(A){var I=C(A);return"BigInt64Array"===I||"BigUint64Array"===I}},1148:(A,I,g)=>{var C=g(6518),B=g(9565),E=g(2652),i=g(9306),o=g(8551),t=g(1767),s=g(9539),r=g(4549)("every",TypeError);C({target:"Iterator",proto:!0,real:!0,forced:r},{every:function every(A){o(this);try{i(A)}catch(A){s(this,"throw",A)}if(r)return B(r,this,A);var I=t(this),g=0;return!E(I,(function(I,C){if(!A(I,g++))return C()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},1181:(A,I,g)=>{var C,B,E,i=g(8622),o=g(4576),t=g(34),s=g(6699),r=g(9297),h=g(7629),c=g(6119),y=g(421),G="Object already initialized",M=o.TypeError,n=o.WeakMap;if(i||h.state){var k=h.state||(h.state=new n);k.get=k.get;k.has=k.has;k.set=k.set;C=function(A,I){if(k.has(A))throw new M(G);I.facade=A;k.set(A,I);return I};B=function(A){return k.get(A)||{}};E=function(A){return k.has(A)}}else{var U=c("state");y[U]=!0;C=function(A,I){if(r(A,U))throw new M(G);I.facade=A;s(A,U,I);return I};B=functi