Files
fad_oa/ruoyi-ui/public/file-viewer/assets/main-BmxokhSj.js

4 lines
60 KiB
JavaScript

import{D as e,T as t,_ as n,g as r,h as i,t as a,v as o,w as s,x as c,y as l}from"./package-Bop5TfAT.js";import{A as u,D as d,J as f,S as p,T as m,X as h,Y as g,_,a as v,b as y,f as b,g as x,h as S,i as C,o as w,r as T,s as E,t as D,u as O,y as k}from"./runtime-core.esm-bundler-DO-WTVbd.js";import{t as A}from"./__vite-browser-external-BZdVR8v7.js";var j=e(((e,t)=>{t.exports=TypeError})),M=e(((e,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,E=typeof BigInt==`function`?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,k=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,j=typeof Symbol==`function`&&Symbol.toStringTag?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,N=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ee(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var P=A(),F=P.custom,I=le(F)?F:null,L={__proto__:null,double:`"`,single:`'`},R={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(H(s,`quoteStyle`)&&!H(L,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(H(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=H(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return q(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?ee(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?ee(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return ne(t)?`[Array]`:`[Object]`;var g=_e(s,r);if(o===void 0)o=[];else if(de(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return H(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!ie(t)){var x=W(t),T=$(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(le(t)){var D=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):O.call(t);return typeof t==`object`&&!k?Y(D):D}if(K(t)){for(var A=`<`+b.call(String(t.nodeName)),F=t.attributes||[],R=0;R<F.length;R++)A+=` `+F[R].name+`=`+te(z(F[R].value),`double`,s);return A+=`>`,t.childNodes&&t.childNodes.length&&(A+=`...`),A+=`</`+b.call(String(t.nodeName))+`>`,A}if(ne(t)){if(t.length===0)return`[]`;var B=$(t,y);return g&&!Z(B)?`[`+Q(B,g)+`]`:`[ `+C.call(B,`, `)+` ]`}if(ae(t)){var V=$(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!M.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),V),`, `)+` }`:V.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(V,`, `)+` }`}if(typeof t==`object`&&u){if(I&&typeof t[I]==`function`&&P)return P(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(fe(t)){var J=[];return a&&a.call(t,function(e,n){J.push(y(n,t,!0)+` => `+y(e,t))}),X(`Map`,i.call(t),J,g)}if(me(t)){var ve=[];return l&&l.call(t,function(e){ve.push(y(e,t))}),X(`Set`,c.call(t),ve,g)}if(G(t))return ge(`WeakMap`);if(he(t))return ge(`WeakSet`);if(pe(t))return ge(`WeakRef`);if(se(t))return Y(y(Number(t)));if(ue(t))return Y(y(E.call(t)));if(ce(t))return Y(p.call(t));if(oe(t))return Y(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!re(t)&&!ie(t)){var ye=$(t,y),be=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,xe=t instanceof Object?``:`null prototype`,Se=!be&&j&&Object(t)===t&&j in t?_.call(U(t),8,-1):xe?`Object`:``,Ce=(be||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(Se||xe?`[`+C.call(S.call([],Se||[],xe||[]),`: `)+`] `:``);return ye.length===0?Ce+`{}`:g?Ce+`{`+Q(ye,g)+`}`:Ce+`{ `+C.call(ye,`, `)+` }`}return String(t)};function te(e,t,n){var r=L[n.quoteStyle||t];return r+e+r}function z(e){return v.call(String(e),/"/g,`&quot;`)}function B(e){return!j||!(typeof e==`object`&&(j in e||e[j]!==void 0))}function ne(e){return U(e)===`[object Array]`&&B(e)}function re(e){return U(e)===`[object Date]`&&B(e)}function ie(e){return U(e)===`[object RegExp]`&&B(e)}function ae(e){return U(e)===`[object Error]`&&B(e)}function oe(e){return U(e)===`[object String]`&&B(e)}function se(e){return U(e)===`[object Number]`&&B(e)}function ce(e){return U(e)===`[object Boolean]`&&B(e)}function le(e){if(k)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!O)return!1;try{return O.call(e),!0}catch{}return!1}function ue(e){if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}var V=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return V.call(e,t)}function U(e){return m.call(e)}function W(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function de(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function fe(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function G(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function pe(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function me(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function he(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function K(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function q(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return q(_.call(e,0,t.maxStringLength),t)+r}var i=R[t.quoteStyle||`single`];return i.lastIndex=0,te(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,J),`single`,t)}function J(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+y.call(t.toString(16))}function Y(e){return`Object(`+e+`)`}function ge(e){return e+` { ? }`}function X(e,t,n,r){var i=r?Q(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function Z(e){for(var t=0;t<e.length;t++)if(de(e[t],`
`)>=0)return!1;return!0}function _e(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=C.call(Array(e.indent+1),` `);else return null;return{base:n,prev:C.call(Array(t+1),n)}}function Q(e,t){if(e.length===0)return``;var n=`
`+t.prev+t.base;return n+C.call(e,`,`+n)+`
`+t.prev}function $(e,t){var n=ne(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=H(e,i)?t(e[i],e):``}var a=typeof D==`function`?D(e):[],o;if(k){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)H(e,c)&&(n&&String(Number(c))===c&&c<e.length||k&&o[`$`+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))));if(typeof D==`function`)for(var l=0;l<a.length;l++)M.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),N=e(((e,t)=>{var n=M(),r=j(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=c(e,t);return n&&e&&!e.next&&(e=void 0),!!n},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}})),ee=e(((e,t)=>{t.exports=Object})),P=e(((e,t)=>{t.exports=Error})),F=e(((e,t)=>{t.exports=EvalError})),I=e(((e,t)=>{t.exports=RangeError})),L=e(((e,t)=>{t.exports=ReferenceError})),R=e(((e,t)=>{t.exports=SyntaxError})),te=e(((e,t)=>{t.exports=URIError})),z=e(((e,t)=>{t.exports=Math.abs})),B=e(((e,t)=>{t.exports=Math.floor})),ne=e(((e,t)=>{t.exports=Math.max})),re=e(((e,t)=>{t.exports=Math.min})),ie=e(((e,t)=>{t.exports=Math.pow})),ae=e(((e,t)=>{t.exports=Math.round})),oe=e(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),se=e(((e,t)=>{var n=oe();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),ce=e(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),le=e(((e,t)=>{var n=ce();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),ue=e(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),V=e(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),H=e(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=V();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),U=e(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),W=e(((e,t)=>{t.exports=Object})),de=e(((e,t)=>{t.exports=W().getPrototypeOf||null})),fe=e(((e,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}})),G=e(((e,t)=>{var n=fe();t.exports=Function.prototype.bind||n})),pe=e(((e,t)=>{t.exports=Function.prototype.call})),me=e(((e,t)=>{t.exports=Function.prototype.apply})),he=e(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),K=e(((e,t)=>{var n=G(),r=me(),i=pe();t.exports=he()||n.call(i,r)})),q=e(((e,t)=>{var n=G(),r=j(),i=pe(),a=K();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),J=e(((e,t)=>{var n=q(),r=le(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),Y=e(((e,t)=>{var n=U(),r=de(),i=J();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),ge=e(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=G().call(n,r)})),X=e(((e,t)=>{var n,r=ee(),i=P(),a=F(),o=I(),s=L(),c=R(),l=j(),u=te(),d=z(),f=B(),p=ne(),m=re(),h=ie(),g=ae(),_=se(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=le(),x=ue(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=H()(),T=Y(),E=de(),D=U(),O=me(),k=pe(),A={},M=typeof Uint8Array>`u`||!T?n:T(Uint8Array),N={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":M,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){N[`%Error.prototype%`]=T(T(e))}var oe=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return N[t]=n,n},ce={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},V=G(),W=ge(),fe=V.call(k,Array.prototype.concat),he=V.call(O,Array.prototype.splice),K=V.call(k,String.prototype.replace),q=V.call(k,String.prototype.slice),J=V.call(k,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,_e=function(e){var t=q(e,0,1),n=q(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return K(e,X,function(e,t,n,i){r[r.length]=n?K(i,Z,`$1`):t||e}),r},Q=function(e,t){var n=e,r;if(W(ce,n)&&(r=ce[n],n=`%`+r[0]+`%`),W(N,n)){var i=N[n];if(i===A&&(i=oe(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(J(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=_e(e),r=n.length>0?n[0]:``,i=Q(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],he(n,fe([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=q(p,0,1),h=q(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,W(N,a))o=N[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=W(o,p),o=o[p];f&&!s&&(N[a]=o)}}return o}})),Z=e(((e,t)=>{var n=X(),r=q(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),_e=e(((e,t)=>{var n=X(),r=Z(),i=M(),a=j(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}})),Q=e(((e,t)=>{var n=X(),r=Z(),i=M(),a=_e(),o=j(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a})),$=e(((e,t)=>{var n=j(),r=M(),i=N(),a=_e(),o=Q()||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=o(),e.set(t,n)}};return t}})),ve=e(((e,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}})),ye=e(((e,t)=>{var n=ve(),r=$(),i=Object.prototype.hasOwnProperty,a=Array.isArray,o=r(),s=function(e,t){return o.set(e,t),e},c=function(e){return o.has(e)},l=function(e){return o.get(e)},u=function(e,t){o.set(e,t)},d=function(){for(var e=[],t=0;t<256;++t)e[e.length]=`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase();return e}(),f=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],i=0;i<n.length;++i)n[i]!==void 0&&(r[r.length]=n[i]);t.obj[t.prop]=r}}},p=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},m=function e(t,n,r){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(a(t)){var o=t.length;if(r&&typeof r.arrayLimit==`number`&&o>r.arrayLimit)return s(p(t.concat(n),r),o);t[o]=n}else if(t&&typeof t==`object`)if(c(t)){var d=l(t)+1;t[d]=n,u(t,d)}else if(r&&r.strictMerge)return[t,n];else (r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`){if(c(n)){for(var f=Object.keys(n),m=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},h=0;h<f.length;h++){var g=parseInt(f[h],10);m[g+1]=n[f[h]]}return s(m,l(n)+1)}var _=[t].concat(n);return r&&typeof r.arrayLimit==`number`&&_.length>r.arrayLimit?s(p(_,r),_.length-1):_}var v=t;return a(t)&&!a(n)&&(v=p(t,r)),a(t)&&a(n)?(n.forEach(function(n,a){if(i.call(t,a)){var o=t[a];o&&typeof o==`object`&&n&&typeof n==`object`?t[a]=e(o,n,r):t[t.length]=n}else t[a]=n}),t):Object.keys(n).reduce(function(t,a){var o=n[a];if(i.call(t,a)?t[a]=e(t[a],o,r):t[a]=o,c(n)&&!c(t)&&s(t,l(n)),c(t)){var d=parseInt(a,10);String(d)===a&&d>=0&&d>l(t)&&u(t,d)}return t},v)},h=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},g=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},_=1024;t.exports={arrayToObject:p,assign:h,combine:function(e,t,n,r){if(c(e)){var i=l(e)+1;return e[i]=t,u(e,i),e}var a=[].concat(e,t);return a.length>n?s(p(a,{plainObjects:r}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],o=Object.keys(a),s=0;s<o.length;++s){var c=o[s],l=a[c];typeof l==`object`&&l&&n.indexOf(l)===-1&&(t[t.length]={obj:a,prop:c},n[n.length]=l)}return f(t),e},decode:g,encode:function(e,t,r,i,a){if(e.length===0)return e;var o=e;if(typeof e==`symbol`?o=Symbol.prototype.toString.call(e):typeof e!=`string`&&(o=String(e)),r===`iso-8859-1`)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var s=``,c=0;c<o.length;c+=_){for(var l=o.length>=_?o.slice(c,c+_):o,u=[],f=0;f<l.length;++f){var p=l.charCodeAt(f);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||a===n.RFC1738&&(p===40||p===41)){u[u.length]=l.charAt(f);continue}if(p<128){u[u.length]=d[p];continue}if(p<2048){u[u.length]=d[192|p>>6]+d[128|p&63];continue}if(p<55296||p>=57344){u[u.length]=d[224|p>>12]+d[128|p>>6&63]+d[128|p&63];continue}f+=1,p=65536+((p&1023)<<10|l.charCodeAt(f)&1023),u[u.length]=d[240|p>>18]+d[128|p>>12&63]+d[128|p>>6&63]+d[128|p&63]}s+=u.join(``)}return s},isBuffer:function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:c,isRegExp:function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},markOverflow:s,maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:m}})),be=e(((e,t)=>{var n=$(),r=ye(),i=ve(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return S(g&&!C?g(i,f.encoder,w,`key`,x):i);E=``}if(p(E)||r.isBuffer(E))return g?[S(C?i:g(i,f.encoder,w,`key`,x))+`=`+S(g(E,f.encoder,w,`value`,x))]:[S(i)+`=`+S(String(E))];var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,function(e){return e==null?e:g(e)})),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var ee=h?String(i).replace(/\./g,`%2E`):String(i),P=o&&s(E)&&E.length===1?ee+`[]`:ee;if(c&&s(E)&&E.length===0)return P+`[]`;for(var F=0;F<M.length;++F){var I=M[F],L=typeof I==`object`&&I&&I.value!==void 0?I.value:E[I];if(!(d&&L===null)){var R=y&&h?String(I).replace(/\./g,`%2E`):String(I),te=s(E)?typeof a==`function`?a(P,R):P:P+(y?`.`+R:`[`+R+`]`);T.set(t,O);var z=n();z.set(m,T),l(j,e(L,te,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,z))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat;if(`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m];if(_!=null){var v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B`+i.delimiter:b+=`utf8=%E2%9C%93`+i.delimiter),y.length>0?b+y:``}})),xe=e(((e,t)=>{var n=ye(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded&&f!==void 0?f+1:f);if(t.throwOnLimitExceeded&&f!==void 0&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;if(y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),b!==null&&(x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)}))),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x),t.comma&&i(x)&&x.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);x=n.combine([],x,t.arrayLimit,t.plainObjects)}if(b!==null){var S=r.call(u,b);S&&(t.duplicates===`combine`||_.indexOf(`[]=`)>-1)?u[b]=n.combine(u[b],x,t.arrayLimit,t.plainObjects):(!S||t.duplicates===`last`)&&(u[b]=x)}}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=n.isOverflow(c)?c:r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c,r.arrayLimit,r.plainObjects);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10),h=!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays;if(!r.parseArrays&&p===``)u={0:c};else if(h&&m<r.arrayLimit)u=[],u[m]=c;else if(h&&r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);else h?(u[m]=c,n.markOverflow(u,m)):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e;if(t.depth<=0)return!t.plainObjects&&r.call(Object.prototype,n)&&!t.allowPrototypes?void 0:[n];var i=[],a=n.indexOf(`[`),o=a>=0?n.slice(0,a):n;if(o){if(!t.plainObjects&&r.call(Object.prototype,o)&&!t.allowPrototypes)return;i[i.length]=o}for(var s=n.length,c=a,l=0;c>=0&&l<t.depth;){for(var u=1,d=c+1,f=-1;d<s&&f<0;){var p=n.charCodeAt(d);p===91?u+=1:p===93&&(--u,u===0&&(f=d)),d+=1}if(f<0)return i[i.length]=`[`+n.slice(c)+`]`,i;var m=n.slice(c,f+1),h=m.slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,h)&&!t.allowPrototypes)return;i[i.length]=m,l+=1,c=n.indexOf(`[`,f+1)}if(c>=0){if(t.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+t.depth+` and strictDepth is true`);i[i.length]=`[`+n.slice(c)+`]`}return i},p=function(e,t,n,r){if(e){var i=f(e,n);if(i)return d(i,t,n,r)}},m=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);return{allowDots:e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictMerge:typeof e.strictMerge==`boolean`?!!e.strictMerge:a.strictMerge,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=m(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=p(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}})),Se=e(((e,t)=>{var n=be(),r=xe();t.exports={formats:ve(),parse:r,stringify:n}}))(),Ce=e=>{if(e){if(typeof e==`string`)try{return JSON.parse(e)}catch{return}if(typeof e==`object`)return e}};function we(e){let{url:t,from:n,name:r,options:i}=(0,Se.parse)(location.search.substring(1)),a=Ce(i);if(t)return e(void 0,t,a);n&&typeof r==`string`&&window.addEventListener(`message`,t=>{let{origin:i,data:o}=t;i===n&&o instanceof Blob&&e(new File([o],r,{}),void 0,a)})}var Te={class:`workspace`},Ee={key:0,class:`layout-shell`},De={class:`control-panel`},Oe={class:`brand-card`},ke={class:`brand-main`},Ae={class:`brand-mark`},je=[`src`],Me={class:`current-card`},Ne={class:`current-badge`},Pe={class:`current-copy`},Fe={class:`panel-body`},Ie={class:`mode-switch`},Le=[`aria-expanded`],Re=[`data-family`],ze={class:`sample-trigger-copy`},Be={class:`sample-trigger-action`},Ve=[`data-family`],He=[`aria-expanded`,`aria-controls`,`onClick`],Ue={class:`sample-group-title`},We=[`id`],Ge=[`onClick`],Ke=[`data-family`],qe={class:`sample-card-copy`},Je={class:`field-group`},Ye={key:1,class:`upload-card`},Xe=[`accept`],Ze={class:`viewer-panel`},Qe={class:`viewer-toolbar`},$e={class:`viewer-copy`},et={class:`viewer-type`},tt={class:`viewer-path`},nt={class:`viewer-tools`},rt={key:0,class:`viewer-action-group`,"aria-label":`预览操作`},it=[`disabled`],at=[`disabled`],ot=[`disabled`],st={key:0,class:`viewer-search-popover`,role:`search`,"aria-label":`文档搜索`},ct={class:`viewer-search-summary`},lt={class:`viewport`},ut={key:1,class:`viewer-panel standalone`},dt={key:0,class:`viewer-search-popover viewer-search-popover--standalone`,role:`search`,"aria-label":`文档搜索`},ft={class:`viewer-search-summary`},pt={class:`viewport`},mt=i(b({__name:`HelloWorld`,setup(e){let i=d(!1),a=d(!0),c=d(``),v=d(),b=d(`/example/word.docx`),A=d(``),j=d(!1),M=d(0),N=d(null),ee=d(`bottom`),P=d(`min(52vh, 520px)`),F=d(!1),I=d({}),L=d(!1),R=d(``),te=d(null),z=d({query:``,total:0,currentIndex:-1,current:null,matches:[]}),B=d(null),ne=d({download:!1,print:!1,exportHtml:!1}),re=[{title:`文档`,description:`Word / PDF / OFD / Typst`,family:`word`,items:[{name:`DOC`,url:`/example/test.doc`},{name:`DOCX 中文长文档`,url:`/example/word.docx`},{name:`DOT 模板`,url:`/example/template.dot`},{name:`PDF 技术说明`,url:`/example/pdf.pdf`},{name:`OFD`,url:`/example/ofd.ofd`},{name:`Typst`,url:`/example/report.typ`}]},{title:`表格`,description:`Excel / CSV / ODS`,family:`sheet`,items:[{name:`XLSX`,url:`/example/excel.xlsx`},{name:`XLSM`,url:`/example/excel.xlsm`},{name:`XLSB`,url:`/example/excel.xlsb`},{name:`XLS`,url:`/example/excel.xls`},{name:`CSV`,url:`/example/table.csv`},{name:`ODS`,url:`/example/excel.ods`},{name:`FODS`,url:`/example/excel.fods`},{name:`Numbers`,url:`/example/excel.numbers`}]},{title:`演示与图纸`,description:`PPTX / CAD / Drawing`,family:`cad`,items:[{name:`PPTX 中文课件`,url:`/example/ppt.pptx`},{name:`DXF`,url:`/example/drawing.dxf`},{name:`DWG`,url:`/example/sample.dwg`},{name:`DWF Blocks/Tables`,url:`/example/samples/apache/blocks_and_tables.dwf`},{name:`DWFx House`,url:`/example/samples/autodesk/house.dwfx`},{name:`DWFx RobotArm`,url:`/example/samples/autodesk/robot-arm.dwfx`},{name:`Excalidraw`,url:`/example/flow.excalidraw`},{name:`draw.io`,url:`/example/process.drawio`}]},{title:`3D 模型`,description:`GLTF / OBJ / STL / PLY`,family:`model`,items:[{name:`GLTF`,url:`/example/model.gltf`},{name:`OBJ`,url:`/example/model.obj`},{name:`STL`,url:`/example/model.stl`},{name:`PLY`,url:`/example/model.ply`},{name:`STEP`,url:`/example/model.step`}]},{title:`电子书`,description:`EPUB / UMD`,family:`ebook`,items:[{name:`EPUB`,url:`/example/book.epub`},{name:`UMD`,url:`/example/book.umd`}]},{title:`压缩包`,description:`ZIP / TAR.GZ`,family:`archive`,items:[{name:`ZIP`,url:`/example/archive.zip`},{name:`TAR.GZ`,url:`/example/archive.tar.gz`}]},{title:`邮件与 EDA`,description:`EML / MSG / OLB / DRA`,family:`email`,items:[{name:`EML`,url:`/example/sample.eml`},{name:`MSG`,url:`/example/sample.msg`},{name:`OLB`,url:`/example/sample.olb`},{name:`DRA`,url:`/example/sample.dra`}]},{title:`文本`,description:`Markdown / TXT / Log`,family:`text`,items:[{name:`MD`,url:`/example/markdown.md`},{name:`MARKDOWN`,url:`/example/notes.markdown`},{name:`TXT`,url:`/example/text.txt`},{name:`Log`,url:`/example/app.log`}]},{title:`前端与数据`,description:`JS / TS / Vue / Data`,family:`code`,items:[{name:`JSON`,url:`/example/data.json`},{name:`JS`,url:`/example/code.js`},{name:`MJS`,url:`/example/code.mjs`},{name:`CJS`,url:`/example/code.cjs`},{name:`TS`,url:`/example/code.ts`},{name:`TSX`,url:`/example/code.tsx`},{name:`JSX`,url:`/example/code.jsx`},{name:`CSS`,url:`/example/code.css`},{name:`HTML`,url:`/example/page.html`},{name:`HTM`,url:`/example/page.htm`},{name:`XML`,url:`/example/data.xml`},{name:`VUE`,url:`/example/component.vue`},{name:`YAML`,url:`/example/config.yaml`},{name:`YML`,url:`/example/config.yml`},{name:`INI`,url:`/example/settings.ini`},{name:`DIFF`,url:`/example/change.diff`}]},{title:`后端与系统`,description:`Shell / SQL / C / Go`,family:`code`,items:[{name:`SH`,url:`/example/script.sh`},{name:`BASH`,url:`/example/script.bash`},{name:`SQL`,url:`/example/query.sql`},{name:`GO`,url:`/example/main.go`},{name:`RS`,url:`/example/main.rs`},{name:`PHP`,url:`/example/index.php`},{name:`C`,url:`/example/main.c`},{name:`CPP`,url:`/example/main.cpp`},{name:`CC`,url:`/example/module.cc`},{name:`H`,url:`/example/main.h`},{name:`HPP`,url:`/example/main.hpp`},{name:`CS`,url:`/example/program.cs`},{name:`Java`,url:`/example/code.java`},{name:`Python`,url:`/example/code.py`}]},{title:`媒体`,description:`Image / Audio / Video`,family:`image`,items:[{name:`PNG`,url:`/example/pic.png`},{name:`JPG`,url:`/example/pic.jpg`},{name:`JPEG`,url:`/example/pic.jpeg`},{name:`GIF`,url:`/example/pic.gif`},{name:`BMP`,url:`/example/pic.bmp`},{name:`TIFF`,url:`/example/pic.tiff`},{name:`TIF`,url:`/example/pic.tif`},{name:`SVG`,url:`/example/vector.svg`},{name:`WEBP`,url:`/example/pic.webp`},{name:`MP3`,url:`/example/audio.mp3`},{name:`OGG`,url:`/example/audio.ogg`},{name:`MP4`,url:`/example/video.mp4`}]}],ie=re.flatMap(e=>e.items),ae=`docm.dot.dotx.dotm.xlt.xltx.xltm.pptm.potx.potm.ppsx.ppsm.mpeg.wav.oga.opus.m4a.aac.flac.weba.glb.fbx.dae.3ds.3mf.amf.usd.usda.usdc.usdz.kmz.step.stp.iges.igs.ifc.3dm.pcd.wrl.vrml.xyz.vtk.vtp.zip.zipx.7z.rar.tar.gz.gzip.tgz.bz2.bzip2.tbz.tbz2.xz.txz.lzma.zst.tzst.cab.ar.cpio.iso.xar.lha.lzh.jar.war.ear.apk.cbz.cbr.eml.msg.olb.dra.typst`.split(`.`),oe=Array.from(new Set([...ie.map(e=>{let t=e.url.split(`.`).pop();return t?`.${t}`:``}),...ae.map(e=>`.${e}`)])).filter(Boolean).join(`,`),se={doc:{icon:`W`,family:`word`},docx:{icon:`W`,family:`word`},docm:{icon:`W`,family:`word`},dot:{icon:`DOT`,family:`word`},dotx:{icon:`DOT`,family:`word`},dotm:{icon:`DOT`,family:`word`},xlsx:{icon:`XL`,family:`sheet`},xltx:{icon:`XLT`,family:`sheet`},xlsm:{icon:`XL`,family:`sheet`},xlsb:{icon:`XL`,family:`sheet`},xls:{icon:`XL`,family:`sheet`},xlt:{icon:`XLT`,family:`sheet`},xltm:{icon:`XLT`,family:`sheet`},csv:{icon:`CSV`,family:`sheet`},ods:{icon:`ODS`,family:`sheet`},fods:{icon:`ODS`,family:`sheet`},numbers:{icon:`NO`,family:`sheet`},pptx:{icon:`P`,family:`slide`},pptm:{icon:`P`,family:`slide`},potx:{icon:`POT`,family:`slide`},potm:{icon:`POT`,family:`slide`},ppsx:{icon:`PPS`,family:`slide`},ppsm:{icon:`PPS`,family:`slide`},pdf:{icon:`PDF`,family:`pdf`},ofd:{icon:`OFD`,family:`layout`},typ:{icon:`TYP`,family:`layout`},typst:{icon:`TYP`,family:`layout`},dxf:{icon:`CAD`,family:`cad`},dwg:{icon:`CAD`,family:`cad`},dwf:{icon:`DWF`,family:`cad`},dwfx:{icon:`DWFx`,family:`cad`},xps:{icon:`XPS`,family:`cad`},glb:{icon:`3D`,family:`model`},gltf:{icon:`3D`,family:`model`},obj:{icon:`OBJ`,family:`model`},stl:{icon:`STL`,family:`model`},ply:{icon:`PLY`,family:`model`},fbx:{icon:`FBX`,family:`model`},dae:{icon:`DAE`,family:`model`},"3ds":{icon:`3DS`,family:`model`},"3mf":{icon:`3MF`,family:`model`},amf:{icon:`AMF`,family:`model`},usd:{icon:`USD`,family:`model`},usda:{icon:`USD`,family:`model`},usdc:{icon:`USD`,family:`model`},usdz:{icon:`USD`,family:`model`},kmz:{icon:`KMZ`,family:`model`},step:{icon:`STEP`,family:`model`},stp:{icon:`STEP`,family:`model`},iges:{icon:`IGES`,family:`model`},igs:{icon:`IGES`,family:`model`},ifc:{icon:`IFC`,family:`model`},"3dm":{icon:`3DM`,family:`model`},pcd:{icon:`PCD`,family:`model`},wrl:{icon:`WRL`,family:`model`},vrml:{icon:`VRML`,family:`model`},xyz:{icon:`XYZ`,family:`model`},vtk:{icon:`VTK`,family:`model`},vtp:{icon:`VTP`,family:`model`},excalidraw:{icon:`EX`,family:`drawing`},drawio:{icon:`DIO`,family:`drawing`},dio:{icon:`DIO`,family:`drawing`},epub:{icon:`EPUB`,family:`ebook`},umd:{icon:`UMD`,family:`ebook`},zip:{icon:`ZIP`,family:`archive`},zipx:{icon:`ZIP`,family:`archive`},"7z":{icon:`7Z`,family:`archive`},rar:{icon:`RAR`,family:`archive`},tar:{icon:`TAR`,family:`archive`},gz:{icon:`GZ`,family:`archive`},gzip:{icon:`GZ`,family:`archive`},tgz:{icon:`TGZ`,family:`archive`},bz2:{icon:`BZ2`,family:`archive`},bzip2:{icon:`BZ2`,family:`archive`},tbz:{icon:`TBZ`,family:`archive`},tbz2:{icon:`TBZ`,family:`archive`},xz:{icon:`XZ`,family:`archive`},txz:{icon:`TXZ`,family:`archive`},lzma:{icon:`LZ`,family:`archive`},zst:{icon:`ZST`,family:`archive`},tzst:{icon:`ZST`,family:`archive`},cab:{icon:`CAB`,family:`archive`},ar:{icon:`AR`,family:`archive`},cpio:{icon:`CPIO`,family:`archive`},iso:{icon:`ISO`,family:`archive`},xar:{icon:`XAR`,family:`archive`},lha:{icon:`LHA`,family:`archive`},lzh:{icon:`LZH`,family:`archive`},jar:{icon:`JAR`,family:`archive`},war:{icon:`WAR`,family:`archive`},ear:{icon:`EAR`,family:`archive`},apk:{icon:`APK`,family:`archive`},cbz:{icon:`CBZ`,family:`archive`},cbr:{icon:`CBR`,family:`archive`},eml:{icon:`EML`,family:`email`},msg:{icon:`MSG`,family:`email`},olb:{icon:`OLB`,family:`eda`},dra:{icon:`DRA`,family:`eda`},md:{icon:`MD`,family:`text`},markdown:{icon:`MD`,family:`text`},txt:{icon:`TXT`,family:`text`},json:{icon:`{}`,family:`code`},js:{icon:`JS`,family:`code`},mjs:{icon:`JS`,family:`code`},cjs:{icon:`JS`,family:`code`},ts:{icon:`TS`,family:`code`},tsx:{icon:`TSX`,family:`code`},jsx:{icon:`JSX`,family:`code`},css:{icon:`CSS`,family:`code`},html:{icon:`HTML`,family:`code`},htm:{icon:`HTML`,family:`code`},xml:{icon:`XML`,family:`code`},vue:{icon:`VUE`,family:`code`},yaml:{icon:`YML`,family:`code`},yml:{icon:`YML`,family:`code`},ini:{icon:`INI`,family:`code`},sh:{icon:`SH`,family:`code`},bash:{icon:`SH`,family:`code`},sql:{icon:`SQL`,family:`code`},go:{icon:`GO`,family:`code`},rs:{icon:`RS`,family:`code`},php:{icon:`PHP`,family:`code`},c:{icon:`C`,family:`code`},cpp:{icon:`C++`,family:`code`},cc:{icon:`C++`,family:`code`},h:{icon:`H`,family:`code`},hpp:{icon:`H++`,family:`code`},cs:{icon:`CS`,family:`code`},diff:{icon:`DIFF`,family:`code`},java:{icon:`JV`,family:`code`},py:{icon:`PY`,family:`code`},log:{icon:`LOG`,family:`text`},png:{icon:`IMG`,family:`image`},jpg:{icon:`IMG`,family:`image`},jpeg:{icon:`IMG`,family:`image`},gif:{icon:`GIF`,family:`image`},bmp:{icon:`IMG`,family:`image`},tiff:{icon:`IMG`,family:`image`},tif:{icon:`IMG`,family:`image`},svg:{icon:`SVG`,family:`image`},webp:{icon:`WEBP`,family:`image`},mp3:{icon:`MP3`,family:`audio`},mpeg:{icon:`MP3`,family:`audio`},wav:{icon:`WAV`,family:`audio`},ogg:{icon:`OGG`,family:`audio`},oga:{icon:`OGG`,family:`audio`},opus:{icon:`OPUS`,family:`audio`},m4a:{icon:`M4A`,family:`audio`},aac:{icon:`AAC`,family:`audio`},flac:{icon:`FLAC`,family:`audio`},weba:{icon:`WEBA`,family:`audio`},mp4:{icon:`MP4`,family:`video`}},ce=e=>{let t=e.split(/[?#]/)[0]||e,n=t.lastIndexOf(`.`);return n===-1?``:t.slice(n+1).toLowerCase()},le=e=>{let t=e.split(/[?#]/)[0]||e;try{return decodeURIComponent(new URL(t,`https://viewer.flyfish.dev`).pathname)}catch{let e=t.startsWith(`/`)?t:`/${t}`;return decodeURIComponent(e)}},ue=(e,t)=>le(e)===le(t),V=e=>{let t=e.split(/[?#]/)[0]||e;return decodeURIComponent(t.split(`/`).pop()||e)},H=e=>se[ce(e)]||{icon:`FILE`,family:`generic`},U=T(()=>ie.find(e=>ue(e.url,b.value))),W=T(()=>{let e=U.value?.url||b.value||A.value;return re.findIndex(t=>t.items.some(t=>ue(t.url,e)))}),de=T(()=>H(U.value?.url||b.value)),fe=T(()=>v.value?`本地`:`链接`),G=T(()=>{if(v.value&&c.value)return c.value;if(A.value){let e=A.value.split(`/`).pop()||A.value;return decodeURIComponent(e)}return U.value?.name||`未选择文件`}),pe=T(()=>v.value&&c.value?c.value:A.value||b.value||``),me=T(()=>{let e=G.value,t=ce(e);return t?t.toUpperCase():`AUTO`}),he=T(()=>{let e=I.value.toolbar;return e===!1?{download:!1,print:!1,exportHtml:!1}:e&&typeof e==`object`?{download:e.download!==!1,print:e.print!==!1,exportHtml:e.exportHtml!==!1}:{download:!0,print:!0,exportHtml:!0}}),K=T(()=>{let e=he.value,t=ne.value;return{download:e.download&&t.download,print:e.print&&t.print,exportHtml:e.exportHtml&&t.exportHtml}}),q=T(()=>{let e=K.value;return e.download||e.print||e.exportHtml}),J=T(()=>!v.value&&!A.value),Y=T(()=>{if(!R.value.trim())return`0/0`;let e=z.value;return e.total?`${e.currentIndex+1}/${e.total}`:`0/0`}),ge=T(()=>({archive:{workerUrl:`/vendor/libarchive/worker-bundle.js`,cache:!0,...I.value.archive},...I.value,toolbar:i.value?I.value.toolbar??!0:!1,watermark:F.value?{text:`Flyfish Viewer`,opacity:.16,rotate:-24,color:`#1f7a58`,...typeof I.value.watermark==`object`?I.value.watermark:{}}:I.value.watermark}));function X(e){if(e===`download`){B.value?.downloadOriginalFile();return}if(e===`print`){B.value?.printRenderedHtml();return}B.value?.exportRenderedHtml()}async function Z(){let e=R.value.trim();if(!e){z.value=await B.value?.clearDocumentSearch()||z.value;return}z.value=await B.value?.searchDocument(e)||z.value}async function _e(){L.value=!0,await S(),te.value?.focus(),te.value?.select()}async function Q(){L.value=!1,z.value=await B.value?.clearDocumentSearch()||z.value}function $(){R.value=``,Q()}async function ve(){if(R.value.trim()){if(z.value.query!==R.value.trim()){await Z();return}z.value=await B.value?.nextSearchResult()||z.value}}async function ye(){if(R.value.trim()){if(z.value.query!==R.value.trim()){await Z();return}z.value=await B.value?.previousSearchResult()||z.value}}function be(e){ne.value=e}function xe(e){z.value=e}we((e,t,n)=>{i.value=!0,I.value=n||{},e&&(c.value=e.name&&decodeURIComponent(e.name)||``,v.value=e),t&&(b.value=t,A.value=t)}),_(()=>{document.addEventListener(`pointerdown`,yt),document.addEventListener(`keydown`,bt),window.addEventListener(`resize`,xt),Se(b.value)}),x(()=>{document.removeEventListener(`pointerdown`,yt),document.removeEventListener(`keydown`,bt),window.removeEventListener(`resize`,xt)});function Se(e=b.value){a.value=!0,v.value=void 0,$(),A.value=e,j.value=!1}function Ce(e){a.value=e,j.value=!1}async function mt(e){let t=e.target.files?.item(0);t&&(a.value=!1,j.value=!1,$(),c.value=t.name&&decodeURIComponent(t.name)||``,v.value=t)}async function ht(){j.value=!j.value,j.value&&(M.value=W.value>=0?W.value:0,await S(),St())}async function gt(e){M.value=M.value===e?null:e,await S(),St()}function _t(e){let t=re.findIndex(t=>t.items.some(t=>ue(t.url,e)));b.value=e,M.value=t>=0?t:M.value,j.value=!1,Se(e)}function vt(e){return!v.value&&ue(b.value,e.url)}function yt(e){if(!j.value)return;let t=e.target;t instanceof Node&&N.value?.contains(t)||(j.value=!1)}function bt(e){let t=e.key.toLowerCase();if((e.metaKey||e.ctrlKey)&&!e.altKey&&t===`f`){if(e.preventDefault(),e.stopPropagation(),L.value){Q();return}_e();return}e.key===`Escape`&&(j.value=!1,L.value&&Q())}function xt(){St()}function St(){let e=N.value;if(!j.value||!e)return;let t=e.getBoundingClientRect(),n=(window.innerHeight||document.documentElement.clientHeight)-t.bottom-18,r=t.top-18,i=n<300&&r>n,a=Math.max(96,i?r:n);ee.value=i?`top`:`bottom`,P.value=`${Math.min(520,Math.floor(a))}px`}return(e,d)=>{let _=p(`file-viewer`);return k(),E(`div`,{class:f([`demo-shell`,{hidden:i.value}])},[C(`main`,Te,[i.value?(k(),E(`section`,ut,[L.value?(k(),E(`div`,dt,[m(C(`input`,{ref_key:`viewerSearchInputRef`,ref:te,"onUpdate:modelValue":d[10]||=e=>R.value=e,type:`search`,placeholder:`搜索当前文档`,onKeyup:t(Z,[`enter`])},null,544),[[s,R.value,void 0,{trim:!0}]]),C(`span`,ft,h(Y.value),1),C(`button`,{type:`button`,title:`上一个搜索结果`,"aria-label":`上一个搜索结果`,onClick:ye},[O(u(o),{class:`viewer-search-icon`,"aria-hidden":`true`})]),C(`button`,{type:`button`,title:`下一个搜索结果`,"aria-label":`下一个搜索结果`,onClick:ve},[O(u(l),{class:`viewer-search-icon`,"aria-hidden":`true`})]),C(`button`,{type:`button`,class:`viewer-search-close`,title:`关闭搜索`,onClick:Q},[O(u(n),{class:`viewer-search-icon`,"aria-hidden":`true`})])])):w(``,!0),C(`div`,pt,[O(_,{ref_key:`fileViewerRef`,ref:B,file:v.value,url:A.value,options:ge.value,onOperationAvailabilityChange:be,onSearchChange:xe},null,8,[`file`,`url`,`options`])])])):(k(),E(`div`,Ee,[C(`aside`,De,[C(`div`,Oe,[d[12]||=C(`span`,{class:`brand-orbit`},null,-1),C(`div`,ke,[C(`span`,Ae,[C(`img`,{src:u(r),alt:`File Viewer`},null,8,je)]),d[11]||=C(`div`,{class:`brand-copy`},[C(`span`,null,`FlyFish`),C(`h1`,null,`File Viewer`)],-1)]),d[13]||=C(`span`,{class:`brand-pill`},`Pure Web`,-1)]),C(`div`,Me,[C(`span`,Ne,h(me.value),1),C(`div`,Pe,[C(`span`,null,h(fe.value),1),C(`strong`,null,h(G.value),1)])]),C(`div`,Fe,[C(`div`,Ie,[C(`button`,{type:`button`,class:f([`mode-button`,{active:a.value}]),onClick:d[0]||=e=>Ce(!0)},` 链接 `,2),C(`button`,{type:`button`,class:f([`mode-button`,{active:!a.value}]),onClick:d[1]||=e=>Ce(!1)},` 上传 `,2)]),a.value?(k(),E(D,{key:0},[C(`div`,{ref_key:`samplePickerRef`,ref:N,class:f([`sample-picker`,{open:j.value}])},[C(`button`,{type:`button`,class:`sample-trigger`,"aria-controls":`sample-menu`,"aria-expanded":j.value?`true`:`false`,onClick:ht},[C(`span`,{class:`sample-file-icon`,"data-family":de.value.family},[C(`span`,null,h(de.value.icon),1)],8,Re),C(`span`,ze,[d[14]||=C(`span`,null,`示例文件`,-1),C(`strong`,null,h(U.value?.name||V(b.value)),1),C(`em`,null,h(U.value?V(U.value.url):b.value),1)]),C(`span`,Be,h(j.value?`收起`:`打开`),1)],8,Le),j.value?(k(),E(`div`,{key:0,id:`sample-menu`,class:f([`sample-menu`,`sample-menu--${ee.value}`]),style:g({maxHeight:P.value})},[(k(),E(D,null,y(re,(e,t)=>C(`section`,{key:e.title,class:f([`sample-group`,{"sample-group--open":M.value===t}]),"data-family":e.family},[C(`button`,{type:`button`,class:`sample-group-header`,"aria-expanded":M.value===t?`true`:`false`,"aria-controls":`sample-group-panel-${t}`,onClick:e=>gt(t)},[C(`span`,Ue,h(e.title),1),C(`em`,null,h(e.description),1),C(`strong`,null,h(e.items.length),1),d[15]||=C(`i`,{"aria-hidden":`true`},null,-1)],8,He),M.value===t?(k(),E(`div`,{key:0,id:`sample-group-panel-${t}`,class:`sample-group-grid`},[(k(!0),E(D,null,y(e.items,e=>(k(),E(`button`,{key:e.url,type:`button`,class:f([`sample-card`,{active:vt(e)}]),onClick:t=>_t(e.url)},[C(`span`,{class:`sample-file-icon`,"data-family":H(e.url).family},[C(`span`,null,h(H(e.url).icon),1)],8,Ke),C(`span`,qe,[C(`strong`,null,h(e.name),1),C(`span`,null,h(V(e.url)),1)])],10,Ge))),128))],8,We)):w(``,!0)],10,Ve)),64))],6)):w(``,!0)],2),C(`div`,Je,[d[16]||=C(`label`,{class:`field-label`},`地址`,-1),m(C(`input`,{"onUpdate:modelValue":d[2]||=e=>b.value=e,class:`compact-field`,type:`text`,placeholder:`输入文件地址`,onKeyup:d[3]||=t(e=>Se(),[`enter`])},null,544),[[s,b.value]])]),C(`button`,{type:`button`,class:`primary-button`,onClick:d[4]||=e=>Se()},` 预览 `)],64)):(k(),E(`label`,Ye,[C(`input`,{type:`file`,accept:u(oe),onChange:mt},null,40,Xe),d[17]||=C(`span`,{class:`upload-icon`},`+`,-1),d[18]||=C(`span`,{class:`upload-title`},`点击选择文件`,-1),C(`strong`,null,h(c.value||`从本机打开`),1)]))])]),C(`section`,Ze,[C(`div`,Qe,[C(`div`,$e,[d[19]||=C(`span`,{class:`viewer-status`},null,-1),C(`strong`,null,h(G.value),1),C(`span`,et,h(me.value),1)]),C(`div`,tt,h(pe.value),1),C(`div`,nt,[q.value?(k(),E(`div`,rt,[K.value.download?(k(),E(`button`,{key:0,type:`button`,class:`viewer-tool-button`,disabled:J.value,title:`下载原始文件`,onClick:d[5]||=e=>X(`download`)},` 下载 `,8,it)):w(``,!0),K.value.print?(k(),E(`button`,{key:1,type:`button`,class:`viewer-tool-button`,disabled:J.value,title:`打印完整渲染内容`,onClick:d[6]||=e=>X(`print`)},` 打印 `,8,at)):w(``,!0),K.value.exportHtml?(k(),E(`button`,{key:2,type:`button`,class:`viewer-tool-button`,disabled:J.value,title:`导出当前渲染后的 HTML`,onClick:d[7]||=e=>X(`exportHtml`)},` HTML `,8,ot)):w(``,!0)])):w(``,!0),C(`button`,{type:`button`,class:f([`viewer-tool-button`,{active:F.value}]),title:`切换水印`,onClick:d[8]||=e=>F.value=!F.value},` 水印 `,2)])]),L.value?(k(),E(`div`,st,[m(C(`input`,{ref_key:`viewerSearchInputRef`,ref:te,"onUpdate:modelValue":d[9]||=e=>R.value=e,type:`search`,placeholder:`搜索当前文档`,onKeyup:t(Z,[`enter`])},null,544),[[s,R.value,void 0,{trim:!0}]]),C(`span`,ct,h(Y.value),1),C(`button`,{type:`button`,title:`上一个搜索结果`,"aria-label":`上一个搜索结果`,onClick:ye},[O(u(o),{class:`viewer-search-icon`,"aria-hidden":`true`})]),C(`button`,{type:`button`,title:`下一个搜索结果`,"aria-label":`下一个搜索结果`,onClick:ve},[O(u(l),{class:`viewer-search-icon`,"aria-hidden":`true`})]),C(`button`,{type:`button`,class:`viewer-search-close`,title:`关闭搜索`,onClick:Q},[O(u(n),{class:`viewer-search-icon`,"aria-hidden":`true`})])])):w(``,!0),C(`div`,lt,[O(_,{ref_key:`fileViewerRef`,ref:B,file:v.value,url:A.value,options:ge.value,onOperationAvailabilityChange:be,onSearchChange:xe},null,8,[`file`,`url`,`options`])])])]))])],2)}}}),[[`__scopeId`,`data-v-8ab948f9`]]);c(b({__name:`App`,setup(e){return(e,t)=>(k(),v(mt))}})).use(a).mount(`#app`);