System.register(["./const-legacy-Bw9iWaro.js","./preload-helper-legacy-CKCAnWGV.js","./common-utils-legacy-BUVwbO7W.js","./index-legacy-Ce-qKpT_.js"],function(t,e){var n,i,s,r,c,o,f,a,h,d,b,u,x,l,p,y,g,w,E,A;function m(t,e=!1){return e?{h:Number(t&s),l:Number(t>>r&s)}:{h:0|Number(t>>r&s),l:0|Number(t&s)}}function v(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name&&"BYTES_PER_ELEMENT"in t&&1===t.BYTES_PER_ELEMENT}function L(t,e,n=""){if(v(t)&&(void 0===e||t.length===e))return t;void 0!==e&&function(t,e=""){if("number"!=typeof t)throw new TypeError(f(e)+"expected number, got "+typeof t);if(!Number.isSafeInteger(t)||t<0)throw new RangeError(f(e)+"expected integer >= 0, got "+t)}(e,"length");const i=v(t),s=void 0!==e?` of length ${e}`:"",r=i?`length=${t.length}`:"type="+typeof t,c=f(n)+"expected Uint8Array"+s+", got "+r;if(!i)throw new TypeError(c);throw new RangeError(c)}function U(t,e=!0){if(t.destroyed)throw new Error("hash was destroyed");if(e&&t.finished)throw new Error("digest() was already called")}function T(...t){for(let e=0;e>>e}function O(t,e={}){if("function"!=typeof t)throw new TypeError('"hashCons" expected function, got type='+typeof t);e=function(t,e,n="opts"){return a(t,"defaults"),void 0!==e&&a(e,n),Object.assign(t,e)}({},e,"info");const n=(e,n)=>t(n).update(e).digest(),i=t(void 0);return n.outputLen=i.outputLen,n.blockLen=i.blockLen,n.canXOF=i.canXOF,n.create=e=>t(e),Object.assign(n,e),Object.freeze(n)}function C(t,e,n){return t&e^~t&n}function H(t,e,n){return t&e^t&n^e&n}return t("n",async function(t){const e=function(t){if(L(t),h)return t.toHex();let e="";for(let n=0;n({signature:"offline-bypass",algorithm:"Ed25519"})})),"Content-Type":"application/json"},body:JSON.stringify({data:e})})}catch(r){throw new A("pptx 导出签名失败: 网络错误",{cause:r})}if(!n.ok)throw new A(`pptx 导出签名失败: HTTP ${n.status}`);const s=await n.json();if(!s.signature)throw new A("pptx 导出签名失败: 响应缺少 signature");return s.signature}),{setters:[function(t){},function(t){t.t},function(t){n=t.o},function(t){i=t.s}],execute:function(){s=BigInt(2**32-1),r=BigInt(32),c=t=>t/2**32|0,o=t=>t>>>0,f=t=>t?`"${t}" `:"",a=(t,e)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw new TypeError(("object"===e?"":`"${e}" `)+"expected object, got type="+typeof t)},new Uint8Array(new Uint32Array([287454020]).buffer)[0],h="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,d=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0")),b=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])}),u=class{constructor(t,e,i,s){n(this,"blockLen",void 0),n(this,"outputLen",void 0),n(this,"canXOF",!1),n(this,"padOffset",void 0),n(this,"isLE",void 0),n(this,"buffer",void 0),n(this,"view",void 0),n(this,"finished",!1),n(this,"length",0),n(this,"pos",0),n(this,"destroyed",!1),this.blockLen=t,this.outputLen=e,this.padOffset=i,this.isLE=s,this.buffer=new Uint8Array(t),this.view=j(this.buffer)}update(t){U(this),L(t);const{view:e,buffer:n,blockLen:i}=this,s=t.length;let r=!1;for(let c=0;c=n))throw new RangeError('"output" expected length >= '+n)}(t,this),this.finished=!0;const{buffer:e,view:n,blockLen:i,isLE:s}=this;let{pos:r}=this;e[r++]=128,e.fill(0,r),this.padOffset>i-r&&(this.process(n,0),e.fill(0)),function(t,e,n,i){const s=c(n),r=o(n);t.setUint32(e,i?r:s,i),t.setUint32(e+4,i?s:r,i)}(n,i-8,8*this.length,s),this.process(n,0),this.roundClean();const f=t===e?n:j(t),a=this.outputLen,h=a/4,d=this.get();if(a%4||h>d.length)throw new Error("invalid outputLen");for(let c=0;c>>3;p[h]=(B(e,17)^B(e,19)^e>>>10)+p[h-7]+n+p[h-16]|0}let{A:n,B:i,C:s,D:r,E:c,F:o,G:f,H:a}=this;for(let h=0;h<64;h++){const t=a+(B(c,6)^B(c,11)^B(c,25))+C(c,o,f)+l[h]+p[h]|0,e=(B(n,2)^B(n,13)^B(n,22))+H(n,i,s)|0;a=f,f=o,o=c,c=r+t|0,r=s,s=i,i=n,n=t+e|0}n=n+this.A|0,i=i+this.B|0,s=s+this.C|0,r=r+this.D|0,c=c+this.E|0,o=o+this.F|0,f=f+this.G|0,a=a+this.H|0,this.set(n,i,s,r,c,o,f,a)}roundClean(){T(p)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),T(this.buffer)}},g=class extends y{constructor(){super(32,x)}},(w=function(t,e=!1){const n=t.length;let i=new Uint32Array(n),s=new Uint32Array(n);for(let r=0;rBigInt(t))))[0],w[1],E=O(()=>new g,b(1)),t("t",A=class extends Error{})}}});