ckgl/unpackage/dist/build/web/assets/cshaptx4869-scancode.B3yK47M6.js
2025-01-21 17:28:38 +08:00

2 lines
76 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{d as e,r as t,D as r,o as n,I as a,u as o,b as i,e as s,l as c,J as u,K as l,L as d,M as f,k as h,w as p,F as v,h as m,f as y,C as g,N as w}from"./index-BmnJ93Po.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";var C=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},_=(e,t,r)=>(C(e,t,"read from private field"),r?r.call(e):t.get(e));const $=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"]],T=[...$,["unknown"]].map((e=>e[0])),S=new Map($);function P(e){for(const[t,r]of S)if(e===r)return t;return"unknown"}function E(e){try{return e instanceof HTMLImageElement}catch(t){return!1}}function O(e){try{return e instanceof SVGImageElement}catch(t){return!1}}function x(e){try{return e instanceof HTMLVideoElement}catch(t){return!1}}function k(e){try{return e instanceof HTMLCanvasElement}catch(t){return!1}}function M(e){try{return e instanceof ImageBitmap}catch(t){return!1}}function A(e){try{return e instanceof OffscreenCanvas}catch(t){return!1}}function D(e){try{return e instanceof VideoFrame}catch(t){return!1}}function j(e){try{return e instanceof Blob}catch(t){return!1}}async function R(e){if(E(e)&&!(await async function(e){try{return await e.decode(),!0}catch(t){return!1}}(e)))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(O(e)&&!(await async function(e){var t;try{return await(null==(t=e.decode)?void 0:t.call(e)),!0}catch(r){return!1}}(e)))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(D(e)&&function(e){return null===e.format}(e))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(x(e)&&(0===e.readyState||1===e.readyState))throw new DOMException("Invalid element or state.","InvalidStateError");if(M(e)&&function(e){return 0===e.width&&0===e.height}(e))throw new DOMException("The image source is detached.","InvalidStateError");const{width:t,height:r}=function(e){if(E(e))return{width:e.naturalWidth,height:e.naturalHeight};if(O(e))return{width:e.width.baseVal.value,height:e.height.baseVal.value};if(x(e))return{width:e.videoWidth,height:e.videoHeight};if(M(e))return{width:e.width,height:e.height};if(D(e))return{width:e.displayWidth,height:e.displayHeight};if(k(e))return{width:e.width,height:e.height};if(A(e))return{width:e.width,height:e.height};throw new TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}(e);if(0===t||0===r)return null;const n=function(e,t){try{const r=new OffscreenCanvas(e,t);if(r.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return r;throw void 0}catch(r){const a=document.createElement("canvas");return a.width=e,a.height=t,a}}(t,r).getContext("2d");n.drawImage(e,0,0);try{return n.getImageData(0,0,t,r)}catch(a){throw new DOMException("Source would taint origin.","SecurityError")}}async function F(e){if(j(e))return await async function(e){let t;try{if(globalThis.createImageBitmap)t=await createImageBitmap(e);else{if(!globalThis.Image)return e;{t=new Image;let r="";try{r=URL.createObjectURL(e),t.src=r,await t.decode()}finally{URL.revokeObjectURL(r)}}}}catch(r){throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}return await R(t)}(e);if(function(e){try{return e instanceof ImageData}catch(t){return!1}}(e)){if(function(e){return 0===e.data.buffer.byteLength}(e))throw new DOMException("The image data has been detached.","InvalidStateError");return e}return k(e)||A(e)?function(e){const{width:t,height:r}=e;if(0===t||0===r)return null;const n=e.getContext("2d");try{return n.getImageData(0,0,t,r)}catch(a){throw new DOMException("Source would taint origin.","SecurityError")}}(e):await R(e)}function I(e,t){return e instanceof DOMException?new DOMException(`${t}: ${e.message}`,e.name):e instanceof Error?new e.constructor(`${t}: ${e.message}`):new Error(`${t}: ${e}`)}const W=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function L(e){return e.join("|")}function U(e){const t=H(e);let r=0,n=W.length-1;for(;r<=n;){const e=Math.floor((r+n)/2),a=W[e],o=H(a);if(o===t)return a;o<t?r=e+1:n=e-1}return"None"}function H(e){return e.toLowerCase().replace(/_-\[\]/g,"")}function N(e,t){return e.Binarizer[t]}function B(e,t){return e.CharacterSet[t]}const z=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function V(e){return z[e.value]}function q(e,t){return e.EanAddOnSymbol[t]}function G(e,t){return e.TextMode[t]}const J={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!1,validateCode39CheckSum:!1,validateITFCheckSum:!1,returnCodabarStartEnd:!1,returnErrors:!1,eanAddOnSymbol:"Read",textMode:"Plain",characterSet:"Unknown"};function Y(e,t){return{...t,formats:L(t.formats),binarizer:N(e,t.binarizer),eanAddOnSymbol:q(e,t.eanAddOnSymbol),textMode:G(e,t.textMode),characterSet:B(e,t.characterSet)}}function Q(e){return{...e,format:U(e.format),eccLevel:e.eccLevel,contentType:V(e.contentType)}}const X={locateFile:(e,t)=>{const r=e.match(/_(.+?)\.wasm$/);return r?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.1.3/dist/${r[1]}/${e}`:t+e}};let K=new WeakMap;function Z(e,t){var r;const n=K.get(e);if(null!=n&&n.modulePromise&&void 0===t)return n.modulePromise;const a=null!=(r=null==n?void 0:n.moduleOverrides)?r:X,o=e({...a});return K.set(e,{moduleOverrides:a,modulePromise:o}),o}var ee,te,re=(ee=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,function(e={}){var t,r,n=e;n.ready=new Promise(((e,n)=>{t=e,r=n}));var a=Object.assign({},n),o="./this.program",i="object"==typeof window,s="function"==typeof importScripts;"object"==typeof process&&"object"==typeof process.versions&&process.versions.node;var c,u="";(i||s)&&(s?u=self.location.href:typeof document<"u"&&document.currentScript&&(u=document.currentScript.src),ee&&(u=ee),u=0!==u.indexOf("blob:")?u.substr(0,u.replace(/[?#].*/,"").lastIndexOf("/")+1):"",s&&(c=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)})),n.print||console.log.bind(console);var l,d=n.printErr||console.error.bind(console);Object.assign(n,a),a=null,n.arguments&&n.arguments,n.thisProgram&&(o=n.thisProgram),n.quit&&n.quit,n.wasmBinary&&(l=n.wasmBinary),"object"!=typeof WebAssembly&&O("no native wasm support detected");var f,h,p,v,m,y,g,w,b,C=!1;function _(){var e=f.buffer;n.HEAP8=h=new Int8Array(e),n.HEAP16=v=new Int16Array(e),n.HEAPU8=p=new Uint8Array(e),n.HEAPU16=m=new Uint16Array(e),n.HEAP32=y=new Int32Array(e),n.HEAPU32=g=new Uint32Array(e),n.HEAPF32=w=new Float32Array(e),n.HEAPF64=b=new Float64Array(e)}var $=[],T=[],S=[],P=0,E=null;function O(e){var t;null===(t=n.onAbort)||void 0===t||t.call(n,e),d(e="Aborted("+e+")"),C=!0,e+=". Build with -sASSERTIONS for more info.";var a=new WebAssembly.RuntimeError(e);throw r(a),a}var x,k,M=e=>e.startsWith("data:application/octet-stream;base64,");function A(e){if(e==x&&l)return new Uint8Array(l);if(c)return c(e);throw"both async and sync fetching of the wasm failed"}function D(e,t,r){return function(e){return l||!i&&!s||"function"!=typeof fetch?Promise.resolve().then((()=>A(e))):fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>A(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(r,(e=>{d(`failed to asynchronously prepare wasm: ${e}`),O(e)}))}M(x="zxing_reader.wasm")||(k=x,x=n.locateFile?n.locateFile(k,u):u+k);var j=e=>{for(;e.length>0;)e.shift()(n)};n.noExitRuntime;var R=[],F=0,I=0;function W(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){g[this.ptr+4>>2]=e},this.get_type=function(){return g[this.ptr+4>>2]},this.set_destructor=function(e){g[this.ptr+8>>2]=e},this.get_destructor=function(){return g[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,h[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=h[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,h[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=h[this.ptr+13>>0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){g[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return g[this.ptr+16>>2]},this.get_exception_ptr=function(){if(jt(this.get_type()))return g[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var L=e=>{var t=I;if(!t)return Ot(0),0;var r=new W(t);r.set_adjusted_ptr(t);var n=r.get_type();if(!n)return Ot(0),t;for(var a in e){var o=e[a];if(0===o||o===n)break;var i=r.ptr+16;if(Dt(o,n,i))return Ot(o),t}return Ot(n),t},U={},H=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function N(e){return this.fromWireType(y[e>>2])}var B,z,V,q={},G={},J={},Y=e=>{throw new B(e)},Q=(e,t,r)=>{function n(t){var n=r(t);n.length!==e.length&&Y("Mismatched type converter count");for(var a=0;a<e.length;++a)te(e[a],n[a])}e.forEach((function(e){J[e]=t}));var a=new Array(t.length),o=[],i=0;t.forEach(((e,t)=>{G.hasOwnProperty(e)?a[t]=G[e]:(o.push(e),q.hasOwnProperty(e)||(q[e]=[]),q[e].push((()=>{a[t]=G[e],++i===o.length&&n(a)})))})),0===o.length&&n(a)},X=e=>{for(var t="",r=e;p[r];)t+=z[p[r++]];return t},K=e=>{throw new V(e)};function Z(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=t.name;if(e||K(`type "${n}" must have a positive integer typeid pointer`),G.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;K(`Cannot register type '${n}' twice`)}if(G[e]=t,delete J[e],q.hasOwnProperty(e)){var a=q[e];delete q[e],a.forEach((e=>e()))}}function te(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Z(e,t,r)}var re,ne=8,ae=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),oe=e=>{K(e.$$.ptrType.registeredClass.name+" instance already deleted")},ie=!1,se=e=>{},ce=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},ue=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var n=ue(e,t,r.baseClass);return null===n?null:r.downcast(n)},le={},de=()=>Object.keys(me).length,fe=()=>{var e=[];for(var t in me)me.hasOwnProperty(t)&&e.push(me[t]);return e},he=[],pe=()=>{for(;he.length;){var e=he.pop();e.$$.deleteScheduled=!1,e.delete()}},ve=e=>{re=e,he.length&&re&&re(pe)},me={},ye=(e,t)=>(t=((e,t)=>{for(void 0===t&&K("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t})(e,t),me[t]),ge=(e,t)=>((!t.ptrType||!t.ptr)&&Y("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&Y("Both smartPtrType and smartPtr must be specified"),t.count={value:1},be(Object.create(e,{$$:{value:t,writable:!0}})));function we(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=ye(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?ge(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):ge(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var o,i=this.registeredClass.getActualType(t),s=le[i];if(!s)return a.call(this);o=this.isConst?s.constPointerType:s.pointerType;var c=ue(t,this.registeredClass,o.registeredClass);return null===c?a.call(this):this.isSmartPointer?ge(o.registeredClass.instancePrototype,{ptrType:o,ptr:c,smartPtrType:this,smartPtr:e}):ge(o.registeredClass.instancePrototype,{ptrType:o,ptr:c})}var be=e=>typeof FinalizationRegistry>"u"?(be=e=>e,e):(ie=new FinalizationRegistry((e=>{ce(e.$$)})),se=e=>ie.unregister(e),(be=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t};ie.register(e,r,e)}return e})(e));function Ce(){}var _e=(e,t)=>Object.defineProperty(t,"name",{value:e}),$e=(e,t,r)=>{if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||K(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}},Te=(e,t,r)=>{n.hasOwnProperty(e)?((void 0===r||void 0!==n[e].overloadTable&&void 0!==n[e].overloadTable[r])&&K(`Cannot register public name '${e}' twice`),$e(n,e,e),n.hasOwnProperty(r)&&K(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),n[e].overloadTable[r]=t):(n[e]=t,void 0!==r&&(n[e].numArguments=r))};function Se(e,t,r,n,a,o,i,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=a,this.getActualType=o,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var Pe=(e,t,r)=>{for(;t!==r;)t.upcast||K(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function Ee(e,t){if(null===t)return this.isReference&&K(`null is not a valid ${this.name}`),0;t.$$||K(`Cannot pass "${Xe(t)}" as a ${this.name}`),t.$$.ptr||K(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=t.$$.ptrType.registeredClass;return Pe(t.$$.ptr,r,this.registeredClass)}function Oe(e,t){var r;if(null===t)return this.isReference&&K(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;(!t||!t.$$)&&K(`Cannot pass "${Xe(t)}" as a ${this.name}`),t.$$.ptr||K(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&K(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var n=t.$$.ptrType.registeredClass;if(r=Pe(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&K("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:K(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var a=t.clone();r=this.rawShare(r,Je.toHandle((()=>a.delete()))),null!==e&&e.push(this.rawDestructor,r)}break;default:K("Unsupporting sharing policy")}return r}function xe(e,t){if(null===t)return this.isReference&&K(`null is not a valid ${this.name}`),0;t.$$||K(`Cannot pass "${Xe(t)}" as a ${this.name}`),t.$$.ptr||K(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&K(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;return Pe(t.$$.ptr,r,this.registeredClass)}function ke(e){return this.fromWireType(g[e>>2])}function Me(e,t,r,n,a,o,i,s,c,u,l){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=a,this.pointeeType=o,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=u,this.rawDestructor=l,a||void 0!==t.baseClass?this.toWireType=Oe:n?(this.toWireType=Ee,this.destructorFunction=null):(this.toWireType=xe,this.destructorFunction=null)}var Ae,De,je=(e,t,r)=>{n.hasOwnProperty(e)||Y("Replacing nonexistant public symbol"),void 0!==n[e].overloadTable&&void 0!==r?n[e].overloadTable[r]=t:(n[e]=t,n[e].argCount=r)},Re=[],Fe=e=>{var t=Re[e];return t||(e>=Re.length&&(Re.length=e+1),Re[e]=t=Ae.get(e)),t},Ie=(e,t,r)=>e.includes("j")?((e,t,r)=>{var a=n["dynCall_"+e];return r&&r.length?a.apply(null,[t].concat(r)):a.call(null,t)})(e,t,r):Fe(t).apply(null,r),We=(e,t)=>{var r=(e=X(e)).includes("j")?((e,t)=>{var r=[];return function(){return r.length=0,Object.assign(r,arguments),Ie(e,t,r)}})(e,t):Fe(t);return"function"!=typeof r&&K(`unknown function pointer with signature ${e}: ${t}`),r},Le=e=>{var t=Pt(e),r=X(t);return Tt(t),r},Ue=(e,t)=>{var r=[],n={};throw t.forEach((function e(t){if(!n[t]&&!G[t]){if(J[t])return void J[t].forEach(e);r.push(t),n[t]=!0}})),new De(`${e}: `+r.map(Le).join([", "]))},He=(e,t)=>{for(var r=[],n=0;n<e;n++)r.push(g[t+4*n>>2]);return r};function Ne(e,t,r,n,a,o){var i=t.length;i<2&&K("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==t[1]&&null!==r,c=function(e){for(var t=1;t<e.length;++t)if(null!==e[t]&&void 0===e[t].destructorFunction)return!0;return!1}(t),u="void"!==t[0].name,l=i-2,d=new Array(l),f=[],h=[];return _e(e,(function(){var r;arguments.length!==l&&K(`function ${e} called with ${arguments.length} arguments, expected ${l}`),h.length=0,f.length=s?2:1,f[0]=a,s&&(r=t[1].toWireType(h,this),f[1]=r);for(var o=0;o<l;++o)d[o]=t[o+2].toWireType(h,arguments[o]),f.push(d[o]);var i=n.apply(null,f);function p(e){if(c)H(h);else for(var n=s?1:2;n<t.length;n++){var a=1===n?r:d[n-2];null!==t[n].destructorFunction&&t[n].destructorFunction(a)}if(u)return t[0].fromWireType(e)}return p(i)}))}var Be=e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e};function ze(){this.allocated=[void 0],this.freelist=[]}var Ve=new ze,qe=e=>{e>=Ve.reserved&&0==--Ve.get(e).refcount&&Ve.free(e)},Ge=()=>{for(var e=0,t=Ve.reserved;t<Ve.allocated.length;++t)void 0!==Ve.allocated[t]&&++e;return e},Je={toValue:e=>(e||K("Cannot use deleted val. handle = "+e),Ve.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return Ve.allocate({refcount:1,value:e})}}},Ye=(e,t,r)=>{switch(t){case 1:return r?function(e){return this.fromWireType(h[e>>0])}:function(e){return this.fromWireType(p[e>>0])};case 2:return r?function(e){return this.fromWireType(v[e>>1])}:function(e){return this.fromWireType(m[e>>1])};case 4:return r?function(e){return this.fromWireType(y[e>>2])}:function(e){return this.fromWireType(g[e>>2])};default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Qe=(e,t)=>{var r=G[e];return void 0===r&&K(t+" has unknown type "+Le(e)),r},Xe=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},Ke=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(w[e>>2])};case 8:return function(e){return this.fromWireType(b[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},Ze=(e,t,r)=>{switch(t){case 1:return r?e=>h[e>>0]:e=>p[e>>0];case 2:return r?e=>v[e>>1]:e=>m[e>>1];case 4:return r?e=>y[e>>2]:e=>g[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},et=(e,t,r,n)=>{if(!(n>0))return 0;for(var a=r,o=r+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i)),s<=127){if(r>=o)break;t[r++]=s}else if(s<=2047){if(r+1>=o)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=o)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-a},tt=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},rt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,nt=(e,t)=>e?((e,t,r)=>{for(var n=t+r,a=t;e[a]&&!(a>=n);)++a;if(a-t>16&&e.buffer&&rt)return rt.decode(e.subarray(t,a));for(var o="";t<a;){var i=e[t++];if(128&i){var s=63&e[t++];if(192!=(224&i)){var c=63&e[t++];if((i=224==(240&i)?(15&i)<<12|s<<6|c:(7&i)<<18|s<<12|c<<6|63&e[t++])<65536)o+=String.fromCharCode(i);else{var u=i-65536;o+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else o+=String.fromCharCode((31&i)<<6|s)}else o+=String.fromCharCode(i)}return o})(p,e,t):"",at=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,ot=(e,t)=>{for(var r=e,n=r>>1,a=n+t/2;!(n>=a)&&m[n];)++n;if((r=n<<1)-e>32&&at)return at.decode(p.subarray(e,r));for(var o="",i=0;!(i>=t/2);++i){var s=v[e+2*i>>1];if(0==s)break;o+=String.fromCharCode(s)}return o},it=(e,t,r)=>{var n;if(null!==(n=r)&&void 0!==n||(r=2147483647),r<2)return 0;for(var a=t,o=(r-=2)<2*e.length?r/2:e.length,i=0;i<o;++i){var s=e.charCodeAt(i);v[t>>1]=s,t+=2}return v[t>>1]=0,t-a},st=e=>2*e.length,ct=(e,t)=>{for(var r=0,n="";!(r>=t/4);){var a=y[e+4*r>>2];if(0==a)break;if(++r,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(a)}return n},ut=(e,t,r)=>{var n;if(null!==(n=r)&&void 0!==n||(r=2147483647),r<4)return 0;for(var a=t,o=a+r-4,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i)),y[t>>2]=s,(t+=4)+4>o)break}return y[t>>2]=0,t-a},lt=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t},dt=[],ft={},ht=()=>{if("object"==typeof globalThis)return globalThis;function e(e){e.$$$embind_global$$$=e;var t="object"==typeof $$$embind_global$$$&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if("object"==typeof $$$embind_global$$$||("object"==typeof global&&e(global)?$$$embind_global$$$=global:"object"==typeof self&&e(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$))return $$$embind_global$$$;throw Error("unable to get global object.")},pt=Reflect.construct,vt=e=>{var t=(e-f.buffer.byteLength+65535)/65536;try{return f.grow(t),_(),1}catch(r){}},mt={},yt=()=>{if(!yt.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:o||"./this.program"};for(var t in mt)void 0===mt[t]?delete e[t]:e[t]=mt[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);yt.strings=r}return yt.strings},gt=e=>e%4==0&&(e%100!=0||e%400==0),wt=[31,29,31,30,31,30,31,31,30,31,30,31],bt=[31,28,31,30,31,30,31,31,30,31,30,31],Ct=(e,t,r,n)=>{var a=g[n+40>>2],o={tm_sec:y[n>>2],tm_min:y[n+4>>2],tm_hour:y[n+8>>2],tm_mday:y[n+12>>2],tm_mon:y[n+16>>2],tm_year:y[n+20>>2],tm_wday:y[n+24>>2],tm_yday:y[n+28>>2],tm_isdst:y[n+32>>2],tm_gmtoff:y[n+36>>2],tm_zone:a?nt(a):""},i=nt(r),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var c in s)i=i.replace(new RegExp(c,"g"),s[c]);var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function d(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length<t;)n=r[0]+n;return n}function f(e,t){return d(e,t,"0")}function p(e,t){function r(e){return e<0?-1:e>0?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function v(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function m(e){var t=((e,t)=>{for(var r=new Date(e.getTime());t>0;){var n=gt(r.getFullYear()),a=r.getMonth(),o=(n?wt:bt)[a];if(!(t>o-r.getDate()))return r.setDate(r.getDate()+t),r;t-=o-r.getDate()+1,r.setDate(1),a<11?r.setMonth(a+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r})(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),n=new Date(t.getFullYear()+1,0,4),a=v(r),o=v(n);return p(a,t)<=0?p(o,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var w={"%a":e=>u[e.tm_wday].substring(0,3),"%A":e=>u[e.tm_wday],"%b":e=>l[e.tm_mon].substring(0,3),"%B":e=>l[e.tm_mon],"%C":e=>f((e.tm_year+1900)/100|0,2),"%d":e=>f(e.tm_mday,2),"%e":e=>d(e.tm_mday,2," "),"%g":e=>m(e).toString().substring(2),"%G":e=>m(e),"%H":e=>f(e.tm_hour,2),"%I":e=>{var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),f(t,2)},"%j":e=>f(e.tm_mday+((e,t)=>{for(var r=0,n=0;n<=t;r+=e[n++]);return r})(gt(e.tm_year+1900)?wt:bt,e.tm_mon-1),3),"%m":e=>f(e.tm_mon+1,2),"%M":e=>f(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>f(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var t=e.tm_yday+7-e.tm_wday;return f(Math.floor(t/7),2)},"%V":e=>{var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var r=(e.tm_wday+371-e.tm_yday)%7;4!=r&&(3!=r||!gt(e.tm_year))&&(t=1)}}else{t=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&gt(e.tm_year%400-1))&&t++}return f(t,2)},"%w":e=>e.tm_wday,"%W":e=>{var t=e.tm_yday+7-(e.tm_wday+6)%7;return f(Math.floor(t/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var t=e.tm_gmtoff;return(t>=0?"+":"-")+("0000"+(t=(t=Math.abs(t)/60)/60*100+t%60)).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var c in i=i.replace(/%%/g,"\0\0"),w)i.includes(c)&&(i=i.replace(new RegExp(c,"g"),w[c](o)));var b=function(e,t,r){var n=tt(e)+1,a=new Array(n);return et(e,a,0,a.length),a}(i=i.replace(/\0\0/g,"%"));return b.length>t?0:(((e,t)=>{h.set(e,t)})(b,e),b.length-1)};B=n.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},(()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);z=e})(),V=n.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(Ce.prototype,{isAliasOf(e){if(!(this instanceof Ce&&e instanceof Ce))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return t===n&&r===a},clone(){if(this.$$.ptr||oe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=be(Object.create(Object.getPrototypeOf(this),{$$:{value:ae(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||oe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&K("Object already scheduled for deletion"),se(this),ce(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||oe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&K("Object already scheduled for deletion"),he.push(this),1===he.length&&re&&re(pe),this.$$.deleteScheduled=!0,this}}),n.getInheritedInstanceCount=de,n.getLiveInheritedInstances=fe,n.flushPendingDeletes=pe,n.setDelayFunction=ve,Object.assign(Me.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var t;null===(t=this.rawDestructor)||void 0===t||t.call(this,e)},argPackAdvance:ne,readValueFromPointer:ke,deleteObject(e){null!==e&&e.delete()},fromWireType:we}),De=n.UnboundTypeError=((e,t)=>{var r=_e(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},r})(Error,"UnboundTypeError"),Object.assign(ze.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),Ve.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),Ve.reserved=Ve.allocated.length,n.count_emval_handles=Ge;var _t={s:e=>{var t=new W(e);return t.get_caught()||(t.set_caught(!0),F--),t.set_rethrown(!1),R.push(t),At(t.excPtr),t.get_exception_ptr()},u:()=>{Et(0,0);var e=R.pop();Mt(e.excPtr),I=0},b:()=>L([]),g:e=>L([e]),q:(e,t)=>L([e,t]),J:()=>{var e=R.pop();e||O("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(R.push(e),e.set_rethrown(!0),e.set_caught(!1),F++),I=t},f:(e,t,r)=>{throw new W(e).init(t,r),F++,I=e},V:()=>F,d:e=>{throw I||(I=e),I},da:e=>{var t=U[e];delete U[e];var r=t.rawConstructor,n=t.rawDestructor,a=t.fields,o=a.map((e=>e.getterReturnType)).concat(a.map((e=>e.setterArgumentType)));Q([e],o,(e=>{var o={};return a.forEach(((t,r)=>{var n=t.fieldName,i=e[r],s=t.getter,c=t.getterContext,u=e[r+a.length],l=t.setter,d=t.setterContext;o[n]={read:e=>i.fromWireType(s(c,e)),write:(e,t)=>{var r=[];l(d,e,u.toWireType(r,t)),H(r)}}})),[{name:t.name,fromWireType:e=>{var t={};for(var r in o)t[r]=o[r].read(e);return n(e),t},toWireType:(e,t)=>{for(var a in o)if(!(a in t))throw new TypeError(`Missing field: "${a}"`);var i=r();for(a in o)o[a].write(i,t[a]);return null!==e&&e.push(n,i),i},argPackAdvance:ne,readValueFromPointer:N,destructorFunction:n}]}))},Q:(e,t,r,n,a)=>{},_:(e,t,r,n)=>{te(e,{name:t=X(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:n},argPackAdvance:ne,readValueFromPointer:function(e){return this.fromWireType(p[e])},destructorFunction:null})},ca:(e,t,r,n,a,o,i,s,c,u,l,d,f)=>{l=X(l),o=We(a,o),s&&(s=We(i,s)),u&&(u=We(c,u)),f=We(d,f);var h=(e=>{if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?`_${e}`:e})(l);Te(h,(function(){Ue(`Cannot construct ${l} due to unbound types`,[n])})),Q([e,t,r],n?[n]:[],(function(t){var r,a;t=t[0],a=n?(r=t.registeredClass).instancePrototype:Ce.prototype;var i=_e(l,(function(){if(Object.getPrototypeOf(this)!==c)throw new V("Use 'new' to construct "+l);if(void 0===v.constructor_body)throw new V(l+" has no accessible constructor");var e=v.constructor_body[arguments.length];if(void 0===e)throw new V(`Tried to invoke ctor of ${l} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(v.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),c=Object.create(a,{constructor:{value:i}});i.prototype=c;var d,p,v=new Se(l,i,c,f,r,o,s,u);v.baseClass&&(null!==(p=(d=v.baseClass).__derivedClasses)&&void 0!==p||(d.__derivedClasses=[]),v.baseClass.__derivedClasses.push(v));var m=new Me(l,v,!0,!1,!1),y=new Me(l+"*",v,!1,!1,!1),g=new Me(l+" const*",v,!1,!0,!1);return le[e]={pointerType:y,constPointerType:g},je(h,i),[m,y,g]}))},ba:(e,t,r,n,a,o)=>{var i=He(t,r);a=We(n,a),Q([],[e],(function(e){var r=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new V(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[t-1]=()=>{Ue(`Cannot construct ${e.name} due to unbound types`,i)},Q([],i,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=Ne(r,n,null,a,o),[]))),[]}))},w:(e,t,r,n,a,o,i,s,c)=>{var u=He(r,n);t=X(t),t=Be(t),o=We(a,o),Q([],[e],(function(e){var n=`${(e=e[0]).name}.${t}`;function a(){Ue(`Cannot call ${n} due to unbound types`,u)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var c=e.registeredClass.instancePrototype,l=c[t];return void 0===l||void 0===l.overloadTable&&l.className!==e.name&&l.argCount===r-2?(a.argCount=r-2,a.className=e.name,c[t]=a):($e(c,t,n),c[t].overloadTable[r-2]=a),Q([],u,(function(a){var s=Ne(n,a,e,o,i);return void 0===c[t].overloadTable?(s.argCount=r-2,c[t]=s):c[t].overloadTable[r-2]=s,[]})),[]}))},Y:(e,t)=>{te(e,{name:t=X(t),fromWireType:e=>{var t=Je.toValue(e);return qe(e),t},toWireType:(e,t)=>Je.toHandle(t),argPackAdvance:ne,readValueFromPointer:N,destructorFunction:null})},x:(e,t,r,n)=>{function a(){}t=X(t),a.values={},te(e,{name:t,constructor:a,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,t)=>t.value,argPackAdvance:ne,readValueFromPointer:Ye(t,r,n),destructorFunction:null}),Te(t,a)},h:(e,t,r)=>{var n=Qe(e,"enum");t=X(t);var a=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:r},constructor:{value:_e(`${n.name}_${t}`,(function(){}))}});a.values[r]=o,a[t]=o},L:(e,t,r)=>{te(e,{name:t=X(t),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:ne,readValueFromPointer:Ke(t,r),destructorFunction:null})},M:(e,t,r,n,a,o,i)=>{var s=He(t,r);e=X(e),e=Be(e),a=We(n,a),Te(e,(function(){Ue(`Cannot call ${e} due to unbound types`,s)}),t-1),Q([],s,(function(r){var n=[r[0],null].concat(r.slice(1));return je(e,Ne(e,n,null,a,o),t-1),[]}))},t:(e,t,r,n,a)=>{t=X(t);var o=e=>e;if(0===n){var i=32-8*r;o=e=>e<<i>>>i}var s=t.includes("unsigned");te(e,{name:t,fromWireType:o,toWireType:s?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:ne,readValueFromPointer:Ze(t,r,0!==n),destructorFunction:null})},o:(e,t,r)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function a(e){var t=g[e>>2],r=g[e+4>>2];return new n(h.buffer,r,t)}te(e,{name:r=X(r),fromWireType:a,argPackAdvance:ne,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},K:(e,t)=>{var r="std::string"===(t=X(t));te(e,{name:t,fromWireType(e){var t,n=g[e>>2],a=e+4;if(r)for(var o=a,i=0;i<=n;++i){var s=a+i;if(i==n||0==p[s]){var c=nt(o,s-o);void 0===t?t=c:(t+="\0",t+=c),o=s+1}}else{var u=new Array(n);for(i=0;i<n;++i)u[i]=String.fromCharCode(p[a+i]);t=u.join("")}return Tt(e),t},toWireType(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n,a="string"==typeof t;a||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||K("Cannot pass non-string to std::string"),n=r&&a?tt(t):t.length;var o=St(4+n+1),i=o+4;if(g[o>>2]=n,r&&a)((e,t,r)=>{et(e,p,t,r)})(t,i,n+1);else if(a)for(var s=0;s<n;++s){var c=t.charCodeAt(s);c>255&&(Tt(i),K("String has UTF-16 code units that do not fit in 8 bits")),p[i+s]=c}else for(s=0;s<n;++s)p[i+s]=t[s];return null!==e&&e.push(Tt,o),o},argPackAdvance:ne,readValueFromPointer:ke,destructorFunction(e){Tt(e)}})},C:(e,t,r)=>{var n,a,o,i,s;r=X(r),2===t?(n=ot,a=it,i=st,o=()=>m,s=1):4===t&&(n=ct,a=ut,i=lt,o=()=>g,s=2),te(e,{name:r,fromWireType:e=>{for(var r,a=g[e>>2],i=o(),c=e+4,u=0;u<=a;++u){var l=e+4+u*t;if(u==a||0==i[l>>s]){var d=n(c,l-c);void 0===r?r=d:(r+="\0",r+=d),c=l+t}}return Tt(e),r},toWireType:(e,n)=>{"string"!=typeof n&&K(`Cannot pass non-string to C++ string type ${r}`);var o=i(n),c=St(4+o+t);return g[c>>2]=o>>s,a(n,c+4,o+t),null!==e&&e.push(Tt,c),c},argPackAdvance:ne,readValueFromPointer:N,destructorFunction(e){Tt(e)}})},A:(e,t,r,n,a,o)=>{U[e]={name:X(t),rawConstructor:We(r,n),rawDestructor:We(a,o),fields:[]}},ea:(e,t,r,n,a,o,i,s,c,u)=>{U[e].fields.push({fieldName:X(t),getterReturnType:r,getter:We(n,a),getterContext:o,setterArgumentType:i,setter:We(s,c),setterContext:u})},$:(e,t)=>{te(e,{isVoid:!0,name:t=X(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},R:(e,t,r,n)=>(e=dt[e])(null,t=Je.toValue(t),r,n),ha:qe,fa:e=>0===e?Je.toHandle(ht()):(e=(e=>{var t=ft[e];return void 0===t?X(e):t})(e),Je.toHandle(ht()[e])),Z:(e,t,r)=>{var n=((e,t)=>{for(var r=new Array(e),n=0;n<e;++n)r[n]=Qe(g[t+4*n>>2],"parameter "+n);return r})(e,t),a=n.shift();e--;var o=new Array(e),i=`methodCaller<(${n.map((e=>e.name)).join(", ")}) => ${a.name}>`;return(e=>{var t=dt.length;return dt.push(e),t})(_e(i,((t,i,s,c)=>{for(var u=0,l=0;l<e;++l)o[l]=n[l].readValueFromPointer(c+u),u+=n[l].argPackAdvance;var d=1===r?pt(i,o):i.apply(t,o);for(l=0;l<e;++l){var f,h;null===(f=(h=n[l]).deleteObject)||void 0===f||f.call(h,o[l])}return((e,t,r)=>{var n=[],a=e.toWireType(n,r);return n.length&&(g[t>>2]=Je.toHandle(n)),a})(a,s,d)})))},N:e=>{e>4&&(Ve.get(e).refcount+=1)},O:e=>{var t=Je.toValue(e);H(t),qe(e)},aa:(e,t)=>{var r=(e=Qe(e,"_emval_take_value")).readValueFromPointer(t);return Je.toHandle(r)},B:()=>{O("")},X:(e,t,r)=>p.copyWithin(e,t,t+r),W:e=>{var t,r,n=p.length,a=2147483648;if((e>>>=0)>a)return!1;for(var o=1;o<=4;o*=2){var i=n*(1+.2/o);i=Math.min(i,e+100663296);var s=Math.min(a,(t=Math.max(e,i))+((r=65536)-t%r)%r);if(vt(s))return!0}return!1},T:(e,t)=>{var r=0;return yt().forEach(((n,a)=>{var o=t+r;g[e+4*a>>2]=o,((e,t)=>{for(var r=0;r<e.length;++r)h[t++>>0]=e.charCodeAt(r);h[t>>0]=0})(n,o),r+=n.length+1})),0},U:(e,t)=>{var r=yt();g[e>>2]=r.length;var n=0;return r.forEach((e=>n+=e.length+1)),g[t>>2]=n,0},E:function(e,t,r,n){var a=xt();try{return Fe(e)(t,r,n)}catch(o){if(kt(a),o!==o+0)throw o;Et(1,0)}},D:function(e,t,r,n,a){var o=xt();try{return Fe(e)(t,r,n,a)}catch(i){if(kt(o),i!==i+0)throw i;Et(1,0)}},F:function(e,t,r,n){var a=xt();try{return Fe(e)(t,r,n)}catch(o){if(kt(a),o!==o+0)throw o;Et(1,0)}},n:function(e){var t=xt();try{return Fe(e)()}catch(r){if(kt(t),r!==r+0)throw r;Et(1,0)}},a:function(e,t){var r=xt();try{return Fe(e)(t)}catch(n){if(kt(r),n!==n+0)throw n;Et(1,0)}},e:function(e,t,r){var n=xt();try{return Fe(e)(t,r)}catch(a){if(kt(n),a!==a+0)throw a;Et(1,0)}},m:function(e,t,r,n){var a=xt();try{return Fe(e)(t,r,n)}catch(o){if(kt(a),o!==o+0)throw o;Et(1,0)}},k:function(e,t,r,n,a){var o=xt();try{return Fe(e)(t,r,n,a)}catch(i){if(kt(o),i!==i+0)throw i;Et(1,0)}},H:function(e,t,r,n,a,o){var i=xt();try{return Fe(e)(t,r,n,a,o)}catch(s){if(kt(i),s!==s+0)throw s;Et(1,0)}},v:function(e,t,r,n,a,o,i){var s=xt();try{return Fe(e)(t,r,n,a,o,i)}catch(c){if(kt(s),c!==c+0)throw c;Et(1,0)}},G:function(e,t,r,n,a,o,i,s){var c=xt();try{return Fe(e)(t,r,n,a,o,i,s)}catch(u){if(kt(c),u!==u+0)throw u;Et(1,0)}},z:function(e,t,r,n,a,o,i,s,c,u,l,d){var f=xt();try{return Fe(e)(t,r,n,a,o,i,s,c,u,l,d)}catch(h){if(kt(f),h!==h+0)throw h;Et(1,0)}},P:function(e,t,r,n,a){var o=xt();try{return Ft(e,t,r,n,a)}catch(i){if(kt(o),i!==i+0)throw i;Et(1,0)}},l:function(e){var t=xt();try{Fe(e)()}catch(r){if(kt(t),r!==r+0)throw r;Et(1,0)}},j:function(e,t){var r=xt();try{Fe(e)(t)}catch(n){if(kt(r),n!==n+0)throw n;Et(1,0)}},c:function(e,t,r){var n=xt();try{Fe(e)(t,r)}catch(a){if(kt(n),a!==a+0)throw a;Et(1,0)}},p:function(e,t,r,n){var a=xt();try{Fe(e)(t,r,n)}catch(o){if(kt(a),o!==o+0)throw o;Et(1,0)}},I:function(e,t,r,n,a){var o=xt();try{Fe(e)(t,r,n,a)}catch(i){if(kt(o),i!==i+0)throw i;Et(1,0)}},r:function(e,t,r,n,a,o,i,s){var c=xt();try{Fe(e)(t,r,n,a,o,i,s)}catch(u){if(kt(c),u!==u+0)throw u;Et(1,0)}},i:function(e,t,r,n,a,o,i,s,c,u,l){var d=xt();try{Fe(e)(t,r,n,a,o,i,s,c,u,l)}catch(f){if(kt(d),f!==f+0)throw f;Et(1,0)}},y:function(e,t,r,n,a,o,i,s,c,u,l,d,f,h,p,v){var m=xt();try{Fe(e)(t,r,n,a,o,i,s,c,u,l,d,f,h,p,v)}catch(y){if(kt(m),y!==y+0)throw y;Et(1,0)}},ga:e=>e,S:(e,t,r,n,a)=>Ct(e,t,r,n)},$t=function(){var e={a:_t};function t(e,t){return $t=e.exports,f=$t.ia,_(),Ae=$t.ma,function(e){T.unshift(e)}($t.ja),function(e){var t;if(P--,null===(t=n.monitorRunDependencies)||void 0===t||t.call(n,P),0==P&&E){var r=E;E=null,r()}}(),$t}if(function(e){var t;P++,null===(t=n.monitorRunDependencies)||void 0===t||t.call(n,P)}(),n.instantiateWasm)try{return n.instantiateWasm(e,t)}catch(a){d(`Module.instantiateWasm callback failed with error: ${a}`),r(a)}return function(e,t,r,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||M(t)||"function"!=typeof fetch?D(t,r,n):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(n,(function(e){return d(`wasm streaming compile failed: ${e}`),d("falling back to ArrayBuffer instantiation"),D(t,r,n)}))))}(l,x,e,(function(e){t(e.instance)})).catch(r),{}}(),Tt=n._free=e=>(Tt=n._free=$t.ka)(e),St=n._malloc=e=>(St=n._malloc=$t.la)(e),Pt=e=>(Pt=$t.na)(e),Et=(e,t)=>(Et=$t.oa)(e,t),Ot=e=>(Ot=$t.pa)(e),xt=()=>(xt=$t.qa)(),kt=e=>(kt=$t.ra)(e),Mt=e=>(Mt=$t.sa)(e),At=e=>(At=$t.ta)(e),Dt=(e,t,r)=>(Dt=$t.ua)(e,t,r),jt=e=>(jt=$t.va)(e);n.dynCall_viijii=(e,t,r,a,o,i,s)=>(n.dynCall_viijii=$t.wa)(e,t,r,a,o,i,s);var Rt,Ft=n.dynCall_jiiii=(e,t,r,a,o)=>(Ft=n.dynCall_jiiii=$t.xa)(e,t,r,a,o);function It(){function e(){Rt||(Rt=!0,n.calledRun=!0,!C&&(j(T),t(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)e=n.postRun.shift(),S.unshift(e);var e;j(S)}()))}P>0||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)e=n.preRun.shift(),$.unshift(e);var e;j($)}(),P>0)||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),e()}),1)):e())}if(n.dynCall_iiiiij=(e,t,r,a,o,i,s)=>(n.dynCall_iiiiij=$t.ya)(e,t,r,a,o,i,s),n.dynCall_iiiiijj=(e,t,r,a,o,i,s,c,u)=>(n.dynCall_iiiiijj=$t.za)(e,t,r,a,o,i,s,c,u),n.dynCall_iiiiiijj=(e,t,r,a,o,i,s,c,u,l)=>(n.dynCall_iiiiiijj=$t.Aa)(e,t,r,a,o,i,s,c,u,l),E=function e(){Rt||It(),Rt||(E=e)},n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();return It(),e.ready});async function ne(e,t){return async function(e,t,r=J){const n={...J,...r},a=await Z(e),{size:o}=t,i=new Uint8Array(await t.arrayBuffer()),s=a._malloc(o);a.HEAPU8.set(i,s);const c=a.readBarcodesFromImage(s,o,Y(a,n));a._free(s);const u=[];for(let l=0;l<c.size();++l)u.push(Q(c.get(l)));return u}(re,e,t)}async function ae(e,t){return async function(e,t,r=J){const n={...J,...r},a=await Z(e),{data:o,width:i,height:s,data:{byteLength:c}}=t,u=a._malloc(c);a.HEAPU8.set(o,u);const l=a.readBarcodesFromPixmap(u,i,s,Y(a,n));a._free(u);const d=[];for(let f=0;f<l.size();++f)d.push(Q(l.get(f)));return d}(re,e,t)}class oe extends EventTarget{constructor(e={}){var t;super(),((e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)})(this,te,void 0);try{const r=null==(t=null==e?void 0:e.formats)?void 0:t.filter((e=>"unknown"!==e));if(0===(null==r?void 0:r.length))throw new TypeError("Hint option provided, but is empty.");null==r||r.forEach((e=>{if(!S.has(e))throw new TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${e}' is not a valid enum value of type BarcodeFormat.`)})),((e,t,r,n)=>{C(e,t,"write to private field"),t.set(e,r)})(this,te,null!=r?r:[]),function(e){return Z(re,e)}().then((e=>{this.dispatchEvent(new CustomEvent("load",{detail:e}))})).catch((e=>{this.dispatchEvent(new CustomEvent("error",{detail:e}))}))}catch(r){throw I(r,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return T.filter((e=>"unknown"!==e))}async detect(e){try{const r=await F(e);if(null===r)return[];let n;try{n=j(r)?await ne(r,{tryHarder:!0,formats:_(this,te).map((e=>S.get(e)))}):await ae(r,{tryHarder:!0,formats:_(this,te).map((e=>S.get(e)))})}catch(t){throw console.error(t),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return n.map((e=>{const{topLeft:{x:t,y:r},topRight:{x:n,y:a},bottomLeft:{x:o,y:i},bottomRight:{x:s,y:c}}=e.position,u=Math.min(t,n,o,s),l=Math.min(r,a,i,c),d=Math.max(t,n,o,s),f=Math.max(r,a,i,c);return{boundingBox:new DOMRectReadOnly(u,l,d-u,f-l),rawValue:e.text,format:P(e.format),cornerPoints:[{x:t,y:r},{x:n,y:a},{x:s,y:c},{x:o,y:i}]}}))}catch(r){throw I(r,"Failed to execute 'detect' on 'BarcodeDetector'")}}}te=new WeakMap;const ie=(e,t,r="error")=>{let n,a;const o=new Promise(((o,i)=>{n=o,a=i,e.addEventListener(t,n),e.addEventListener(r,a)}));return o.finally((()=>{e.removeEventListener(t,n),e.removeEventListener(r,a)})),o},se=e=>new Promise((t=>setTimeout(t,e)));class ce extends Error{constructor(){super("this browser has no Stream API support"),this.name="StreamApiNotSupportedError"}}class ue extends Error{constructor(){super("camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP."),this.name="InsecureContextError"}}class le extends Error{constructor(){super("Loading camera stream timed out after 6 seconds. If you are on iOS in PWA mode, this is a known issue (see https://github.com/gruhn/vue-qrcode-reader/issues/298)"),this.name="StreamLoadTimeoutError"}}let de;async function fe(e){de=await async function(e){if(void 0===window.BarcodeDetector)return console.debug("[vue-qrcode-reader] Native BarcodeDetector not supported. Will use polyfill."),new oe({formats:e});const t=await window.BarcodeDetector.getSupportedFormats(),r=e.filter((e=>!t.includes(e)));return r.length>0?(console.debug(`[vue-qrcode-reader] Native BarcodeDetector does not support formats ${JSON.stringify(r)}. Will use polyfill.`),new oe({formats:e})):(console.debug("[vue-qrcode-reader] Will use native BarcodeDetector."),new window.BarcodeDetector({formats:e}))}(e)}var he={},pe={};Object.defineProperty(pe,"__esModule",{value:!0}),pe.compactObject=function e(t){return be(t)?Object.keys(t).reduce((function(r,n){var a=be(t[n]),o=a?e(t[n]):t[n],i=a&&!Object.keys(o).length;return void 0===o||i?r:Object.assign(r,function(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==me(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===me(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,o))}),{}):t},pe.deprecated=function(e,t){ge&&console.warn(e+" is deprecated, please use "+t+" instead.")};var ve=pe.detectBrowser=function(e){var t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;var r=e.navigator;if(r.mozGetUserMedia)t.browser="firefox",t.version=we(r.userAgent,/Firefox\/(\d+)\./,1);else if(r.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=we(r.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else{if(!e.RTCPeerConnection||!r.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=we(r.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t};function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}pe.disableLog=function(e){return"boolean"!=typeof e?new Error("Argument type: "+me(e)+". Please use a boolean."):(ye=e,e?"adapter.js logging disabled":"adapter.js logging enabled")},pe.disableWarnings=function(e){return"boolean"!=typeof e?new Error("Argument type: "+me(e)+". Please use a boolean."):(ge=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))},pe.extractVersion=we,pe.filterStats=function(e,t,r){var n=r?"outbound-rtp":"inbound-rtp",a=new Map;if(null===t)return a;var o=[];return e.forEach((function(e){"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)})),o.forEach((function(t){e.forEach((function(r){r.type===n&&r.trackId===t.id&&Ce(e,r,a)}))})),a},pe.log=function(){if("object"===(typeof window>"u"?"undefined":me(window))){if(ye)return;typeof console<"u"&&"function"==typeof console.log&&console.log.apply(console,arguments)}},pe.walkStats=Ce,pe.wrapPeerConnectionEvent=function(e,t,r){if(e.RTCPeerConnection){var n=e.RTCPeerConnection.prototype,a=n.addEventListener;n.addEventListener=function(e,n){if(e!==t)return a.apply(this,arguments);var o=function(e){var t=r(e);t&&(n.handleEvent?n.handleEvent(t):n(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(n,o),a.apply(this,[e,o])};var o=n.removeEventListener;n.removeEventListener=function(e,r){if(e!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(r))return o.apply(this,arguments);var n=this._eventMap[t].get(r);return this._eventMap[t].delete(r),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,n])},Object.defineProperty(n,"on"+t,{get:function(){return this["_on"+t]},set:function(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}};var ye=!0,ge=!0;function we(e,t,r){var n=e.match(t);return n&&n.length>=r&&parseInt(n[r],10)}function be(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ce(e,t,r){!t||r.has(t.id)||(r.set(t.id,t),Object.keys(t).forEach((function(n){n.endsWith("Id")?Ce(e,e.get(t[n]),r):n.endsWith("Ids")&&t[n].forEach((function(t){Ce(e,e.get(t),r)}))})))}Object.defineProperty(he,"__esModule",{value:!0});var _e=he.shimGetUserMedia=function(e,t){var r=e&&e.navigator;if(r.mediaDevices){var n=function(e){if("object"!==Se(e)||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach((function(r){if("require"!==r&&"advanced"!==r&&"mediaSource"!==r){var n="object"===Se(e[r])?e[r]:{ideal:e[r]};void 0!==n.exact&&"number"==typeof n.exact&&(n.min=n.max=n.exact);var a=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==n.ideal){t.optional=t.optional||[];var o={};"number"==typeof n.ideal?(o[a("min",r)]=n.ideal,t.optional.push(o),(o={})[a("max",r)]=n.ideal,t.optional.push(o)):(o[a("",r)]=n.ideal,t.optional.push(o))}void 0!==n.exact&&"number"!=typeof n.exact?(t.mandatory=t.mandatory||{},t.mandatory[a("",r)]=n.exact):["min","max"].forEach((function(e){void 0!==n[e]&&(t.mandatory=t.mandatory||{},t.mandatory[a(e,r)]=n[e])}))}})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},a=function(e,a){if(t.version>=61)return a(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"===Se(e.audio)){var o=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])};o((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),o(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=n(e.audio)}if(e&&"object"===Se(e.video)){var i=e.video.facingMode;i=i&&("object"===Se(i)?i:{ideal:i});var s,c=t.version<66;if(i&&("user"===i.exact||"environment"===i.exact||"user"===i.ideal||"environment"===i.ideal)&&(!r.mediaDevices.getSupportedConstraints||!r.mediaDevices.getSupportedConstraints().facingMode||c))if(delete e.video.facingMode,"environment"===i.exact||"environment"===i.ideal?s=["back","rear"]:("user"===i.exact||"user"===i.ideal)&&(s=["front"]),s)return r.mediaDevices.enumerateDevices().then((function(t){var r=(t=t.filter((function(e){return"videoinput"===e.kind}))).find((function(e){return s.some((function(t){return e.label.toLowerCase().includes(t)}))}));return!r&&t.length&&s.includes("back")&&(r=t[t.length-1]),r&&(e.video.deviceId=i.exact?{exact:r.deviceId}:{ideal:r.deviceId}),e.video=n(e.video),Pe("chrome: "+JSON.stringify(e)),a(e)}));e.video=n(e.video)}return Pe("chrome: "+JSON.stringify(e)),a(e)},o=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}};if(r.getUserMedia=function(e,t,n){a(e,(function(e){r.webkitGetUserMedia(e,t,(function(e){n&&n(o(e))}))}))}.bind(r),r.mediaDevices.getUserMedia){var i=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(e){return a(e,(function(e){return i(e).then((function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach((function(e){e.stop()})),new DOMException("","NotFoundError");return t}),(function(e){return Promise.reject(o(e))}))}))}}}},$e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==Se(e)&&"function"!=typeof e)return{default:e};var r=Te(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(pe);function Te(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Te=function(e){return e?r:t})(e)}function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Pe=$e.log;var Ee={};Object.defineProperty(Ee,"__esModule",{value:!0});var Oe=Ee.shimGetUserMedia=function(e,t){var r=e&&e.navigator,n=e&&e.MediaStreamTrack;if(r.getUserMedia=function(e,t,n){xe.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(e).then(t,n)},!(t.version>55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){var a=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])},o=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(e){return"object"===Me(e)&&"object"===Me(e.audio)&&(e=JSON.parse(JSON.stringify(e)),a(e.audio,"autoGainControl","mozAutoGainControl"),a(e.audio,"noiseSuppression","mozNoiseSuppression")),o(e)},n&&n.prototype.getSettings){var i=n.prototype.getSettings;n.prototype.getSettings=function(){var e=i.apply(this,arguments);return a(e,"mozAutoGainControl","autoGainControl"),a(e,"mozNoiseSuppression","noiseSuppression"),e}}if(n&&n.prototype.applyConstraints){var s=n.prototype.applyConstraints;n.prototype.applyConstraints=function(e){return"audio"===this.kind&&"object"===Me(e)&&(e=JSON.parse(JSON.stringify(e)),a(e,"autoGainControl","mozAutoGainControl"),a(e,"noiseSuppression","mozNoiseSuppression")),s.apply(this,[e])}}}},xe=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==Me(e)&&"function"!=typeof e)return{default:e};var r=ke(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(pe);function ke(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(ke=function(e){return e?r:t})(e)}function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ae={};Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.shimAudioContext=function(e){"object"!==Fe(e)||e.AudioContext||(e.AudioContext=e.webkitAudioContext)},Ae.shimCallbacksAPI=function(e){if("object"===Fe(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype,r=t.createOffer,n=t.createAnswer,a=t.setLocalDescription,o=t.setRemoteDescription,i=t.addIceCandidate;t.createOffer=function(e,t){var n=arguments.length>=2?arguments[2]:arguments[0],a=r.apply(this,[n]);return t?(a.then(e,t),Promise.resolve()):a},t.createAnswer=function(e,t){var r=arguments.length>=2?arguments[2]:arguments[0],a=n.apply(this,[r]);return t?(a.then(e,t),Promise.resolve()):a};var s=function(e,t,r){var n=a.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n};t.setLocalDescription=s,s=function(e,t,r){var n=o.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n},t.setRemoteDescription=s,s=function(e,t,r){var n=i.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n},t.addIceCandidate=s}},Ae.shimConstraints=Ie,Ae.shimCreateOfferLegacy=function(e){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){typeof e.offerToReceiveAudio<"u"&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);var r=this.getTransceivers().find((function(e){return"audio"===e.receiver.track.kind}));!1===e.offerToReceiveAudio&&r?"sendrecv"===r.direction?r.setDirection?r.setDirection("sendonly"):r.direction="sendonly":"recvonly"===r.direction&&(r.setDirection?r.setDirection("inactive"):r.direction="inactive"):!0===e.offerToReceiveAudio&&!r&&this.addTransceiver("audio",{direction:"recvonly"}),typeof e.offerToReceiveVideo<"u"&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);var n=this.getTransceivers().find((function(e){return"video"===e.receiver.track.kind}));!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0===e.offerToReceiveVideo&&!n&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}};var De=Ae.shimGetUserMedia=function(e){var t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){var r=t.mediaDevices,n=r.getUserMedia.bind(r);t.mediaDevices.getUserMedia=function(e){return n(Ie(e))}}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,r,n){t.mediaDevices.getUserMedia(e).then(r,n)}.bind(t))};Ae.shimLocalStreamsAPI=function(e){if("object"===Fe(e)&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){var r=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((function(n){return t.call(r,n,e)})),e.getVideoTracks().forEach((function(n){return t.call(r,n,e)}))},e.RTCPeerConnection.prototype.addTrack=function(e){for(var r=this,n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return a&&a.forEach((function(e){r._localStreams?r._localStreams.includes(e)||r._localStreams.push(e):r._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;this._localStreams||(this._localStreams=[]);var r=this._localStreams.indexOf(e);if(-1!==r){this._localStreams.splice(r,1);var n=e.getTracks();this.getSenders().forEach((function(e){n.includes(e.track)&&t.removeTrack(e)}))}})}},Ae.shimRTCIceServerUrls=function(e){if(e.RTCPeerConnection){var t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,r){if(e&&e.iceServers){for(var n=[],a=0;a<e.iceServers.length;a++){var o=e.iceServers[a];void 0===o.urls&&o.url?(je.deprecated("RTCIceServer.url","RTCIceServer.urls"),(o=JSON.parse(JSON.stringify(o))).urls=o.url,delete o.url,n.push(o)):n.push(e.iceServers[a])}e.iceServers=n}return new t(e,r)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function(){return t.generateCertificate}})}},Ae.shimRemoteStreamsAPI=function(e){if("object"===Fe(e)&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(e){var t=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=function(e){e.streams.forEach((function(e){if(t._remoteStreams||(t._remoteStreams=[]),!t._remoteStreams.includes(e)){t._remoteStreams.push(e);var r=new Event("addstream");r.stream=e,t.dispatchEvent(r)}}))})}});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((function(t){if(e._remoteStreams||(e._remoteStreams=[]),!(e._remoteStreams.indexOf(t)>=0)){e._remoteStreams.push(t);var r=new Event("addstream");r.stream=t,e.dispatchEvent(r)}}))}),t.apply(e,arguments)}}},Ae.shimTrackEventTransceiver=function(e){"object"===Fe(e)&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})};var je=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==Fe(e)&&"function"!=typeof e)return{default:e};var r=Re(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(pe);function Re(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Re=function(e){return e?r:t})(e)}function Fe(e){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e){return e&&void 0!==e.video?Object.assign({},e,{video:je.compactObject(e.video)}):e}function We(e,t){if(!1===e)throw new Error(null!=t?t:"assertion failure")}function Le(e){throw new Error("this code should be unreachable")}const Ue=(e=>{let t,r=!1;return(...n)=>(r||(t=e(n),r=!0),t)})((()=>{const e=ve(window);switch(e.browser){case"chrome":_e(window,e);break;case"firefox":Oe(window,e);break;case"safari":De(window,e);break;default:throw new ce}}));let He=Promise.resolve({type:"stop",data:{}});async function Ne(e,t,r){var n,a,o;if(console.debug("[vue-qrcode-reader] starting camera with constraints: ",JSON.stringify(t)),!0!==window.isSecureContext)throw new ue;if(void 0===(null==(n=null==navigator?void 0:navigator.mediaDevices)?void 0:n.getUserMedia))throw new ce;Ue(),console.debug("[vue-qrcode-reader] calling getUserMedia");const i=await navigator.mediaDevices.getUserMedia({audio:!1,video:t});void 0!==e.srcObject?e.srcObject=i:void 0!==e.mozSrcObject?e.mozSrcObject=i:window.URL.createObjectURL?e.src=window.URL.createObjectURL(i):window.webkitURL?e.src=window.webkitURL.createObjectURL(i):e.src=i.id,e.play(),console.debug("[vue-qrcode-reader] waiting for video element to load"),await Promise.race([ie(e,"loadeddata"),se(6e3).then((()=>{throw new le}))]),console.debug("[vue-qrcode-reader] video element loaded"),await se(500);const[s]=i.getVideoTracks(),c=null!=(o=null==(a=null==s?void 0:s.getCapabilities)?void 0:a.call(s))?o:{};let u=!1;return r&&c.torch&&(await s.applyConstraints({advanced:[{torch:!0}]}),u=!0),console.debug("[vue-qrcode-reader] camera ready"),{type:"start",data:{videoEl:e,stream:i,capabilities:c,constraints:t,isTorchOn:u}}}async function Be(e,t,r){console.debug("[vue-qrcode-reader] stopping camera"),e.src="",e.srcObject=null,e.load(),await ie(e,"error");for(const n of t.getTracks())null!=r||await n.applyConstraints({advanced:[{torch:!1}]}),t.removeTrack(n),n.stop();return{type:"stop",data:{}}}async function ze(){if(He=He.then((e=>{if("stop"===e.type||"failed"===e.type)return e;const{data:{videoEl:t,stream:r,isTorchOn:n}}=e;return Be(t,r,n)})),"start"===(await He).type)throw new Error("Something went wrong with the camera task queue (stop task).")}const Ve=e({__name:"QrcodeStream",props:{constraints:{type:Object,default:()=>({facingMode:"environment"})},formats:{type:Array,default:()=>["qr_code"]},paused:{type:Boolean,default:!1},torch:{type:Boolean,default:!1},track:{type:Function}},emits:["detect","camera-on","camera-off","error"],setup(e,{emit:h}){const p=e,v=h,m=t(p.constraints),y=t(p.formats);r((()=>p.constraints),((e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&(m.value=e)}),{deep:!0}),r((()=>p.formats),((e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&(y.value=e)}),{deep:!0});const g=t(),w=t(),b=t(),C=t(!1),_=t(!1);n((()=>{_.value=!0})),a((()=>{ze()}));const $=o((()=>({torch:p.torch,constraints:m.value,shouldStream:_.value&&!p.paused})));r($,(async e=>{const t=b.value;We(void 0!==t,"cameraSettings watcher should never be triggered when component is not mounted. Thus video element should always be defined.");const r=g.value;We(void 0!==r,"cameraSettings watcher should never be triggered when component is not mounted. Thus canvas should always be defined.");const n=r.getContext("2d");if(We(null!==n,"if cavnas is defined, canvas 2d context should also be non-null"),e.shouldStream){ze(),C.value=!1;try{const r=await async function(e,{constraints:t,torch:r,restart:n=!1}){He=He.then((a=>{if("start"===a.type){const{data:{videoEl:o,stream:i,constraints:s,isTorchOn:c}}=a;return n||e!==o||t!==s||r!==c?Be(o,i,c).then((()=>Ne(e,t,r))):a}if("stop"===a.type||"failed"===a.type)return Ne(e,t,r);Le()})).catch((e=>(console.debug(`[vue-qrcode-reader] starting camera failed with "${e}"`),{type:"failed",error:e})));const a=await He;if("stop"===a.type)throw new Error("Something went wrong with the camera task queue (start task).");if("failed"===a.type)throw a.error;if("start"===a.type)return a.data.capabilities;Le()}(t,e);_.value?(C.value=!0,v("camera-on",r)):await ze()}catch(a){v("error",a)}}else r.width=t.videoWidth,r.height=t.videoHeight,n.drawImage(t,0,0,t.videoWidth,t.videoHeight),ze(),C.value=!1,v("camera-off")}),{deep:!0}),r(y,(async e=>{_.value&&await fe(e)}));const T=o((()=>$.value.shouldStream&&C.value));r(T,(e=>{if(e){We(void 0!==g.value,"shouldScan watcher should only be triggered when component is mounted. Thus pause frame canvas is defined"),S(g.value),We(void 0!==w.value,"shouldScan watcher should only be triggered when component is mounted. Thus tracking canvas is defined"),S(w.value);const e=()=>void 0===p.track?500:40;We(void 0!==b.value,"shouldScan watcher should only be triggered when component is mounted. Thus video element is defined"),(async(e,{detectHandler:t,locateHandler:r,minDelay:n,formats:a})=>{console.debug("[vue-qrcode-reader] start scanning"),await fe(a);const o=a=>async i=>{if(0===e.readyState)console.debug("[vue-qrcode-reader] stop scanning: video element readyState is 0");else{const{lastScanned:s,contentBefore:c,lastScanHadContent:u}=a;if(i-s<n)window.requestAnimationFrame(o(a));else{const n=await de.detect(e),a=n.some((e=>!c.includes(e.rawValue)));a&&t(n);const s=n.length>0;s&&r(n),!s&&u&&r(n);const l={lastScanned:i,lastScanHadContent:s,contentBefore:a?n.map((e=>e.rawValue)):c};window.requestAnimationFrame(o(l))}}};o({lastScanned:performance.now(),contentBefore:[],lastScanHadContent:!1})(performance.now())})(b.value,{detectHandler:e=>v("detect",e),formats:y.value,locateHandler:P,minDelay:e()})}}));const S=e=>{const t=e.getContext("2d");We(null!==t,"canvas 2d context should always be non-null"),t.clearRect(0,0,e.width,e.height)},P=e=>{const t=w.value;We(void 0!==t,"onLocate handler should only be called when component is mounted. Thus tracking canvas is always defined.");const r=b.value;if(We(void 0!==r,"onLocate handler should only be called when component is mounted. Thus video element is always defined."),0===e.length||void 0===p.track)S(t);else{const n=r.offsetWidth,a=r.offsetHeight,o=r.videoWidth,i=r.videoHeight,s=Math.max(n/o,a/i),c=o*s,u=i*s,l=c/o,d=u/i,f=(n-c)/2,h=(a-u)/2,v=({x:e,y:t})=>({x:Math.floor(e*l),y:Math.floor(t*d)}),m=({x:e,y:t})=>({x:Math.floor(e+f),y:Math.floor(t+h)}),y=e.map((e=>{const{boundingBox:t,cornerPoints:r}=e,{x:n,y:a}=m(v({x:t.x,y:t.y})),{x:o,y:i}=v({x:t.width,y:t.height});return{...e,cornerPoints:r.map((e=>m(v(e)))),boundingBox:DOMRectReadOnly.fromRect({x:n,y:a,width:o,height:i})}}));t.width=r.offsetWidth,t.height=r.offsetHeight;const g=t.getContext("2d");p.track(y,g)}},E={width:"100%",height:"100%",position:"relative","z-index":"0"},O={width:"100%",height:"100%",position:"absolute",top:"0",left:"0"},x={width:"100%",height:"100%","object-fit":"cover"},k=o((()=>T.value?x:{...x,visibility:"hidden",position:"absolute"}));return(e,t)=>(i(),s("div",{style:E},[c("video",{ref_key:"videoRef",ref:b,style:u(k.value),autoplay:"",muted:"",playsinline:""},null,4),l(c("canvas",{id:"qrcode-stream-pause-frame",ref_key:"pauseFrameRef",ref:g,style:x},null,512),[[d,!T.value]]),c("canvas",{id:"qrcode-stream-tracking-layer",ref_key:"trackingLayerRef",ref:w,style:O},null,512),c("div",{style:O},[f(e.$slots,"default")])]))}}),qe=b({__name:"cshaptx4869-scancode",props:{scanType:{type:Array,validator:e=>e.every((e=>["aztec","code_128","code_39","code_93","codabar","databar","databar_expanded","data_matrix","dx_film_edge","ean_13","ean_8","itf","maxi_code","micro_qr_code","pdf417","qr_code","rm_qr_code","upc_a","upc_e","linear_codes","matrix_codes"].includes(e))),default:()=>["qr_code"]},strokeStyle:{type:String,default:"#007bff"},fullScreen:{type:Boolean,default:!0}},emits:["success","fail","close"],setup(e,{emit:r}){const o=e,l=r,d=t(!1),f=t([]),b=t(!1),C=t(!1),_=t(!1),$=t({facingMode:"environment",width:{ideal:1920},height:{ideal:1080}}),T=function(e,t){f.value=e;for(const r of e){const{boundingBox:{x:e,y:n,width:a,height:i}}=r;t.lineWidth=2,t.strokeStyle=o.strokeStyle,t.strokeRect(e,n,a,i)}},S=t([]),P=t(0),E=t("label");function O(e){const t=e.detail.value;d.value=!1,P.value=t,$.value={deviceId:S.value[t].deviceId}}function x(){d.value=!1,C.value=!C.value}function k(e){d.value=!0,_.value=!e.torch}function M(e){1===e.length?l("success",e[0].rawValue):b.value=!0}function A(){console.log("CameraOff")}function D(){l("close")}function j(e){let t=e.name,r=e.message;switch(e.name){case"NotAllowedError":r="您需要授予相机访问权限";break;case"NotFoundError":r="此设备上没有摄像头";break;case"NotSupportedError":r="需要安全上下文HTTPS、本地主机";break;case"NotReadableError":r="相机已经在使用吗?";break;case"OverconstrainedError":r="安装的摄像头不适合";break;case"StreamApiNotSupportedError":r="此浏览器不支持流API";break;case"InsecureContextError":r="仅允许在安全环境下访问摄像头。使用HTTPS或本地主机而不是HTTP。"}l("fail",{errName:t,errMsg:r})}return n((async()=>{o.fullScreen&&function(e){e=e??document.documentElement;const t=["requestFullscreen","webkitRequestFullscreen","webkitRequestFullScreen","webkitEnterFullscreen","webkitEnterFullScreen","mozRequestFullScreen","msRequestFullscreen","oRequestFullscreen"].find((t=>e&&t in e));t&&e[t]()}();const e=(await navigator.mediaDevices.enumerateDevices()).filter((({kind:e})=>"videoinput"===e));if(e.length>0){e.every((e=>e.label))||(E.value="deviceId"),S.value=e}})),a((()=>{o.fullScreen&&function(){const e=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find((e=>document&&e in document));return e?document[e]:null}()&&function(){const e=["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen","oCancelFullScreen"].find((e=>document&&e in document));e&&document[e]()}()})),(t,r)=>{const n=w;return i(),s("div",{class:"cshaptx4869-scancode"},[h(g(Ve),{formats:e.scanType,paused:b.value,track:T,constraints:$.value,torch:C.value,onCameraOn:k,onCameraOff:A,onDetect:M,onError:j},{default:p((()=>[d.value?(i(),s(v,{key:0},[c("div",{class:"closebtn",onClick:D},[(i(),s("svg",{t:"1712292126462",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2432",width:"25",height:"25"},[c("path",{d:"M512 938.667C276.352 938.667 85.333 747.648 85.333 512S276.352 85.333 512 85.333 938.667 276.352 938.667 512 747.648 938.667 512 938.667z m0-85.334a341.333 341.333 0 1 0 0-682.666 341.333 341.333 0 0 0 0 682.666z m0-401.664l76.501-76.501a42.667 42.667 0 0 1 60.331 60.33L572.331 512l76.501 76.501a42.667 42.667 0 0 1-60.33 60.331L512 572.331l-76.501 76.501a42.667 42.667 0 1 1-60.331-60.33L451.669 512l-76.501-76.501a42.667 42.667 0 0 1 60.33-60.331L512 451.669z","p-id":"2433",fill:"#e9e7e8"})]))]),b.value?(i(!0),s(v,{key:1},y(f.value,((e,t)=>(i(),s("div",{key:e,style:u({position:"absolute",height:`${e.boundingBox.height}px`,width:`${e.boundingBox.width}px`,top:`${e.boundingBox.y}px`,left:`${e.boundingBox.x}px`}),onClick:e=>function(e){l("success",f.value[e].rawValue)}(t)},null,12,["onClick"])))),128)):(i(),s(v,{key:0},[S.value.length>1?(i(),s("div",{key:0,class:"camera"},[h(n,{range:S.value,"range-key":E.value,value:P.value,onChange:O},{default:p((()=>[(i(),s("svg",{t:"1712292177105",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2706",width:"25",height:"25"},[c("path",{d:"M906.666667 320a32 32 0 0 1 31.701333 27.648L938.666667 352v362.666667a138.666667 138.666667 0 0 1-130.816 138.453333L800 853.333333H258.602667l30.72 30.72a32 32 0 0 1 3.072 41.642667l-3.114667 3.584a32 32 0 0 1-41.642667 3.114667l-3.584-3.114667-85.333333-85.333333-2.730667-3.072a51.754667 51.754667 0 0 1-0.298666-0.426667l2.986666 3.498667a32.128 32.128 0 0 1-5.418666-37.973334 33.066667 33.066667 0 0 1 5.461333-7.253333l85.333333-85.333333a32 32 0 0 1 48.341334 41.642666l-3.114667 3.584-30.72 30.72h541.44a74.666667 74.666667 0 0 0 74.410667-68.565333l0.256-6.101333v-362.666667a32 32 0 0 1 32-32z m-130.304-228.394667l3.584 3.114667 85.333333 85.333333a32 32 0 0 1 3.029333 3.456l-2.986666-3.456a31.829333 31.829333 0 0 1 3.072 41.642667 33.28 33.28 0 0 1-2.901334 3.413333l-0.213333 0.170667-85.333333 85.333333a32 32 0 0 1-48.341334-41.642666l3.114667-3.584 30.634667-30.72H224a74.666667 74.666667 0 0 0-74.410667 68.522666L149.333333 309.333333v362.666667a32 32 0 0 1-63.701333 4.352L85.333333 672v-362.666667a138.666667 138.666667 0 0 1 130.816-138.453333L224 170.666667h541.397333l-30.72-30.72a32 32 0 0 1-3.072-41.642667l3.114667-3.584a32 32 0 0 1 41.642667-3.114667zM512 341.333333a170.666667 170.666667 0 1 1 0 341.333334 170.666667 170.666667 0 0 1 0-341.333334z m0 64a106.666667 106.666667 0 1 0 0 213.333334 106.666667 106.666667 0 0 0 0-213.333334z",fill:"#e9e7e8","p-id":"2707"})]))])),_:1},8,["range","range-key","value"])])):m("",!0),c("div",{class:"scanline"}),_.value?m("",!0):(i(),s("div",{key:1,class:"flashlight",onClick:x},[C.value?(i(),s("svg",{key:0,t:"1712292222903",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2940",width:"48",height:"48"},[c("path",{d:"M384.796053 640.831005v336.431242a46.133386 46.133386 0 0 0 46.133386 46.737753h170.431634a46.939209 46.939209 0 0 0 46.93921-46.737753v-336.431242A319.307496 319.307496 0 0 0 752.251492 443.202833H281.247754a313.465276 313.465276 0 0 0 103.548299 197.628172z m114.628369 59.429471a17.123746 17.123746 0 1 1 34.247491 0v102.339563a17.123746 17.123746 0 0 1-34.247491 0z m208.909699-427.086366h-382.766083a46.334842 46.334842 0 0 0-46.536298 46.334841v90.453669h476.040134v-90.453669a46.939209 46.939209 0 0 0-46.939209-46.334841z m-191.785953-68.293528a34.247492 34.247492 0 0 0 34.247491-34.046035V34.247492a34.247492 34.247492 0 0 0-68.494983 0v136.587055a34.247492 34.247492 0 0 0 34.247492 34.046035z m-141.019084-10.274247a34.448947 34.448947 0 0 0 12.691718-46.737753L319.524363 29.412552A34.448947 34.448947 0 0 0 272.988065 16.92229a34.448947 34.448947 0 0 0-12.691717 46.737753L328.791331 181.31025a33.84458 33.84458 0 0 0 46.536298 12.691717zM751.042757 17.123746a34.046036 34.046036 0 0 0-46.536297 12.490261l-68.494983 118.254575A34.247492 34.247492 0 0 0 695.239492 181.31025l68.494983-118.254574a34.448947 34.448947 0 0 0-12.691718-45.93193z",fill:"#e9e7e8","p-id":"2941"})])):(i(),s("svg",{key:1,t:"1712292282611",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3138",width:"48",height:"48"},[c("path",{d:"M370.725126 613.450253v360.472175a49.430017 49.430017 0 0 0 49.430017 50.077572h182.610456a50.293423 50.293423 0 0 0 50.293423-50.077572v-360.472175a341.261383 341.261383 0 0 0 111.379427-210.887015H259.777403a335.865093 335.865093 0 0 0 110.947723 210.887015z m123.035414 63.676223a18.347386 18.347386 0 1 1 36.694772 0v109.652613a18.347386 18.347386 0 0 1-36.694772 0z m224.053963-457.605397H306.185497A49.645868 49.645868 0 0 0 256.323777 269.166948v96.701517h511.136594v-96.701517a50.077572 50.077572 0 0 0-50.077572-49.645869zM259.777403 36.694772a36.478921 36.478921 0 0 0 36.478921 36.478921h421.558179a36.694772 36.694772 0 0 0 36.694772-36.478921 36.694772 36.694772 0 0 0-36.694772-36.694772H296.256324A36.694772 36.694772 0 0 0 259.777403 36.694772z",fill:"#e9e7e8","p-id":"3139"})]))]))],64))],64)):(i(),s("div",{key:1,class:"load-container"},[c("div",{class:"box-loading"})]))])),_:1},8,["formats","paused","constraints","torch"])])}}},[["__scopeId","data-v-d79efdb8"]]);export{qe as _};