@hotwax/dxp-components 1.7.4 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/AppVersionInfo.vue.d.ts +4 -0
- package/lib/components/AppVersionInfo.vue.d.ts.map +1 -0
- package/lib/components/Login.d.ts.map +1 -1
- package/lib/components/Scanner.vue.d.ts +5 -0
- package/lib/components/Scanner.vue.d.ts.map +1 -0
- package/lib/components/index.d.ts +3 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/index.cjs +155 -122
- package/lib/index.d.ts +5 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +28154 -8391
- package/lib/store/user.d.ts +17 -5
- package/lib/store/user.d.ts.map +1 -1
- package/lib/style.css +1 -1
- package/package.json +4 -2
package/lib/index.cjs
CHANGED
|
@@ -1,109 +1,142 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var H8=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("vue");require("vue-router");var Ff=!1;function ro(t,e,n){return Array.isArray(t)?(t.length=Math.max(t.length,e),t.splice(e,1,n),n):(t[e]=n,n)}function Ma(t,e){if(Array.isArray(t)){t.splice(e,1);return}delete t[e]}function p1(){return Bf().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Bf(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const g1=typeof Proxy=="function",m1="devtools-plugin:setup",v1="plugin:settings:set";let $r,Cs;function b1(){var t;return $r!==void 0||(typeof window<"u"&&window.performance?($r=!0,Cs=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?($r=!0,Cs=global.perf_hooks.performance):$r=!1),$r}function x1(){return b1()?Cs.now():Date.now()}class y1{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const a in e.settings){const s=e.settings[a];r[a]=s.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},r);try{const a=localStorage.getItem(i),s=JSON.parse(a);Object.assign(o,s)}catch{}this.fallbacks={getSettings(){return o},setSettings(a){try{localStorage.setItem(i,JSON.stringify(a))}catch{}o=a},now(){return x1()}},n&&n.on(v1,(a,s)=>{a===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(a,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(a,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:s,args:l,resolve:c})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Dl(t,e){const n=t,r=Bf(),i=p1(),o=g1&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))i.emit(m1,t,e);else{const a=o?new y1(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:a}),a&&e(a.proxiedTarget)}}/*!
|
|
2
2
|
* pinia v2.0.36
|
|
3
3
|
* (c) 2023 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/let
|
|
6
|
-
${
|
|
7
|
-
Only state can be modified.`);
|
|
5
|
+
*/let wi;const Mi=t=>wi=t,$f=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Er(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var bn;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(bn||(bn={}));const oa=typeof window<"u",Ti=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&oa,Xc=(()=>typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null})();function w1(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}function Nl(t,e,n){const r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Hf(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function Vf(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function So(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const Io=typeof navigator=="object"?navigator:{userAgent:""},Uf=(()=>/Macintosh/.test(Io.userAgent)&&/AppleWebKit/.test(Io.userAgent)&&!/Safari/.test(Io.userAgent))(),Hf=oa?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Uf?_1:"msSaveOrOpenBlob"in Io?E1:A1:()=>{};function _1(t,e="download",n){const r=document.createElement("a");r.download=e,r.rel="noopener",typeof t=="string"?(r.href=t,r.origin!==location.origin?Vf(r.href)?Nl(t,e,n):(r.target="_blank",So(r)):So(r)):(r.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){So(r)},0))}function E1(t,e="download",n){if(typeof t=="string")if(Vf(t))Nl(t,e,n);else{const r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){So(r)})}else navigator.msSaveOrOpenBlob(w1(t,n),e)}function A1(t,e,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return Nl(t,e,n);const i=t.type==="application/octet-stream",o=/constructor/i.test(String(Xc.HTMLElement))||"safari"in Xc,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||i&&o||Uf)&&typeof FileReader<"u"){const s=new FileReader;s.onloadend=function(){let l=s.result;if(typeof l!="string")throw r=null,new Error("Wrong reader.result type");l=a?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location.assign(l),r=null},s.readAsDataURL(t)}else{const s=URL.createObjectURL(t);r?r.location.assign(s):location.href=s,r=null,setTimeout(function(){URL.revokeObjectURL(s)},4e4)}}function nt(t,e){const n="🍍 "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,e):e==="error"?console.error(n):e==="warn"?console.warn(n):console.log(n)}function Pl(t){return"_a"in t&&"install"in t}function zf(){if(!("clipboard"in navigator))return nt("Your browser doesn't support the Clipboard API","error"),!0}function Wf(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(nt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function k1(t){if(!zf())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),nt("Global state copied to clipboard.")}catch(e){if(Wf(e))return;nt("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function C1(t){if(!zf())try{t.state.value=JSON.parse(await navigator.clipboard.readText()),nt("Global state pasted from clipboard.")}catch(e){if(Wf(e))return;nt("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function S1(t){try{Hf(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){nt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let In;function I1(){In||(In=document.createElement("input"),In.type="file",In.accept=".json");function t(){return new Promise((e,n)=>{In.onchange=async()=>{const r=In.files;if(!r)return e(null);const i=r.item(0);return e(i?{text:await i.text(),file:i}:null)},In.oncancel=()=>e(null),In.onerror=n,In.click()})}return t}async function T1(t){try{const n=await(await I1())();if(!n)return;const{text:r,file:i}=n;t.state.value=JSON.parse(r),nt(`Global state imported from "${i.name}".`)}catch(e){nt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}function nn(t){return{_custom:{display:t}}}const Gf="🍍 Pinia (root)",Ss="_root";function O1(t){return Pl(t)?{id:Ss,label:Gf}:{id:t.$id,label:t.$id}}function D1(t){if(Pl(t)){const n=Array.from(t._s.keys()),r=t._s;return{state:n.map(o=>({editable:!0,key:o,value:t.state.value[o]})),getters:n.filter(o=>r.get(o)._getters).map(o=>{const a=r.get(o);return{editable:!1,key:o,value:a._getters.reduce((s,l)=>(s[l]=a[l],s),{})}})}}const e={state:Object.keys(t.$state).map(n=>({editable:!0,key:n,value:t.$state[n]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(n=>({editable:!1,key:n,value:t[n]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(n=>({editable:!0,key:n,value:t[n]}))),e}function N1(t){return t?Array.isArray(t)?t.reduce((e,n)=>(e.keys.push(n.key),e.operations.push(n.type),e.oldValue[n.key]=n.oldValue,e.newValue[n.key]=n.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:nn(t.type),key:nn(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function P1(t){switch(t){case bn.direct:return"mutation";case bn.patchFunction:return"$patch";case bn.patchObject:return"$patch";default:return"unknown"}}let qr=!0;const To=[],dr="pinia:mutations",pt="pinia",{assign:R1}=Object,Fo=t=>"🍍 "+t;function M1(t,e){Dl({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:To,app:t},n=>{typeof n.now!="function"&&nt("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:dr,label:"Pinia 🍍",color:15064968}),n.addInspector({id:pt,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{k1(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await C1(e),n.sendInspectorTree(pt),n.sendInspectorState(pt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{S1(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await T1(e),n.sendInspectorTree(pt),n.sendInspectorState(pt)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:"Reset the state (option store only)",action:r=>{const i=e._s.get(r);i?i._isOptionsAPI?(i.$reset(),nt(`Store "${r}" reset.`)):nt(`Cannot reset "${r}" store because it's a setup store.`,"warn"):nt(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,i)=>{const o=r.componentInstance&&r.componentInstance.proxy;if(o&&o._pStores){const a=r.componentInstance.proxy._pStores;Object.values(a).forEach(s=>{r.instanceData.state.push({type:Fo(s.$id),key:"state",editable:!0,value:s._isOptionsAPI?{_custom:{value:x.toRaw(s.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>s.$reset()}]}}:Object.keys(s.$state).reduce((l,c)=>(l[c]=s.$state[c],l),{})}),s._getters&&s._getters.length&&r.instanceData.state.push({type:Fo(s.$id),key:"getters",editable:!1,value:s._getters.reduce((l,c)=>{try{l[c]=s[c]}catch(u){l[c]=u}return l},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===t&&r.inspectorId===pt){let i=[e];i=i.concat(Array.from(e._s.values())),r.rootNodes=(r.filter?i.filter(o=>"$id"in o?o.$id.toLowerCase().includes(r.filter.toLowerCase()):Gf.toLowerCase().includes(r.filter.toLowerCase())):i).map(O1)}}),n.on.getInspectorState(r=>{if(r.app===t&&r.inspectorId===pt){const i=r.nodeId===Ss?e:e._s.get(r.nodeId);if(!i)return;i&&(r.state=D1(i))}}),n.on.editInspectorState((r,i)=>{if(r.app===t&&r.inspectorId===pt){const o=r.nodeId===Ss?e:e._s.get(r.nodeId);if(!o)return nt(`store "${r.nodeId}" not found`,"error");const{path:a}=r;Pl(o)?a.unshift("state"):(a.length!==1||!o._customProperties.has(a[0])||a[0]in o.$state)&&a.unshift("$state"),qr=!1,r.set(o,a,r.state.value),qr=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const i=r.type.replace(/^🍍\s*/,""),o=e._s.get(i);if(!o)return nt(`store "${i}" not found`,"error");const{path:a}=r;if(a[0]!=="state")return nt(`Invalid path for store "${i}":
|
|
6
|
+
${a}
|
|
7
|
+
Only state can be modified.`);a[0]="$state",qr=!1,r.set(o,a,r.state.value),qr=!0}})})}function L1(t,e){To.includes(Fo(e.$id))||To.push(Fo(e.$id)),Dl({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:To,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;e.$onAction(({after:a,onError:s,name:l,args:c})=>{const u=jf++;n.addTimelineEvent({layerId:dr,event:{time:r(),title:"🛫 "+l,subtitle:"start",data:{store:nn(e.$id),action:nn(l),args:c},groupId:u}}),a(d=>{pr=void 0,n.addTimelineEvent({layerId:dr,event:{time:r(),title:"🛬 "+l,subtitle:"end",data:{store:nn(e.$id),action:nn(l),args:c,result:d},groupId:u}})}),s(d=>{pr=void 0,n.addTimelineEvent({layerId:dr,event:{time:r(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:nn(e.$id),action:nn(l),args:c,error:d},groupId:u}})})},!0),e._customProperties.forEach(a=>{x.watch(()=>x.unref(e[a]),(s,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(pt),qr&&n.addTimelineEvent({layerId:dr,event:{time:r(),title:"Change",subtitle:a,data:{newValue:s,oldValue:l},groupId:pr}})},{deep:!0})}),e.$subscribe(({events:a,type:s},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(pt),!qr)return;const c={time:r(),title:P1(s),data:R1({store:nn(e.$id)},N1(a)),groupId:pr};pr=void 0,s===bn.patchFunction?c.subtitle="⤵️":s===bn.patchObject?c.subtitle="🧩":a&&!Array.isArray(a)&&(c.subtitle=a.type),a&&(c.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:a}}),n.addTimelineEvent({layerId:dr,event:c})},{detached:!0,flush:"sync"});const i=e._hotUpdate;e._hotUpdate=x.markRaw(a=>{i(a),n.addTimelineEvent({layerId:dr,event:{time:r(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:nn(e.$id),info:nn("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(pt),n.sendInspectorState(pt)});const{$dispose:o}=e;e.$dispose=()=>{o(),n.notifyComponentUpdate(),n.sendInspectorTree(pt),n.sendInspectorState(pt),n.getSettings().logStoreChanges&&nt(`Disposed "${e.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(pt),n.sendInspectorState(pt),n.getSettings().logStoreChanges&&nt(`"${e.$id}" store installed 🆕`)})}let jf=0,pr;function qc(t,e){const n=e.reduce((r,i)=>(r[i]=x.toRaw(t)[i],r),{});for(const r in n)t[r]=function(){const i=jf,o=new Proxy(t,{get(...a){return pr=i,Reflect.get(...a)},set(...a){return pr=i,Reflect.set(...a)}});return n[r].apply(o,arguments)}}function F1({app:t,store:e,options:n}){if(!e.$id.startsWith("__hot:")){if(n.state&&(e._isOptionsAPI=!0),typeof n.state=="function"){qc(e,Object.keys(n.actions));const r=e._hotUpdate;x.toRaw(e)._hotUpdate=function(i){r.apply(this,arguments),qc(e,Object.keys(i._hmrPayload.actions))}}L1(t,e)}}function B1(){const t=x.effectScope(!0),e=t.run(()=>x.ref({}));let n=[],r=[];const i=x.markRaw({install(o){Mi(i),i._a=o,o.provide($f,i),o.config.globalProperties.$pinia=i,Ti&&M1(o,i),r.forEach(a=>n.push(a)),r=[]},use(o){return!this._a&&!Ff?r.push(o):n.push(o),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return Ti&&typeof Proxy<"u"&&i.use(F1),i}function Yf(t,e){for(const n in e){const r=e[n];if(!(n in t))continue;const i=t[n];Er(i)&&Er(r)&&!x.isRef(r)&&!x.isReactive(r)?t[n]=Yf(i,r):t[n]=r}return t}const Xf=()=>{};function Kc(t,e,n,r=Xf){t.push(e);const i=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),r())};return!n&&x.getCurrentScope()&&x.onScopeDispose(i),i}function Vr(t,...e){t.slice().forEach(n=>{n(...e)})}function Is(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],i=t[n];Er(i)&&Er(r)&&t.hasOwnProperty(n)&&!x.isRef(r)&&!x.isReactive(r)?t[n]=Is(i,r):t[n]=r}return t}const $1=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function V1(t){return!Er(t)||!t.hasOwnProperty($1)}const{assign:Ut}=Object;function Zc(t){return!!(x.isRef(t)&&t.effect)}function Jc(t,e,n,r){const{state:i,actions:o,getters:a}=e,s=n.state.value[t];let l;function c(){!s&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[t]=i?i():{});const u=process.env.NODE_ENV!=="production"&&r?x.toRefs(x.ref(i?i():{}).value):x.toRefs(n.state.value[t]);return Ut(u,o,Object.keys(a||{}).reduce((d,f)=>(process.env.NODE_ENV!=="production"&&f in u&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${t}".`),d[f]=x.markRaw(x.computed(()=>{Mi(n);const h=n._s.get(t);return a[f].call(h,h)})),d),{}))}return l=Ts(t,c,e,n,r,!0),l}function Ts(t,e,n={},r,i,o){let a;const s=Ut({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&!Ff&&(l.onTrigger=D=>{c?h=D:c==!1&&!k._hotUpdating&&(Array.isArray(h)?h.push(D):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,u,d=x.markRaw([]),f=x.markRaw([]),h;const p=r.state.value[t];!o&&!p&&(process.env.NODE_ENV==="production"||!i)&&(r.state.value[t]={});const g=x.ref({});let b;function m(D){let O;c=u=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof D=="function"?(D(r.state.value[t]),O={type:bn.patchFunction,storeId:t,events:h}):(Is(r.state.value[t],D),O={type:bn.patchObject,payload:D,storeId:t,events:h});const L=b=Symbol();x.nextTick().then(()=>{b===L&&(c=!0)}),u=!0,Vr(d,O,r.state.value[t])}const v=o?function(){const{state:O}=n,L=O?O():{};this.$patch(B=>{Ut(B,L)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:Xf;function w(){a.stop(),d=[],f=[],r._s.delete(t)}function y(D,O){return function(){Mi(r);const L=Array.from(arguments),B=[],G=[];function ae(K){B.push(K)}function se(K){G.push(K)}Vr(f,{args:L,name:D,store:k,after:ae,onError:se});let Z;try{Z=O.apply(this&&this.$id===t?this:k,L)}catch(K){throw Vr(G,K),K}return Z instanceof Promise?Z.then(K=>(Vr(B,K),K)).catch(K=>(Vr(G,K),Promise.reject(K))):(Vr(B,Z),Z)}}const C=x.markRaw({actions:{},getters:{},state:[],hotState:g}),E={_p:r,$id:t,$onAction:Kc.bind(null,f),$patch:m,$reset:v,$subscribe(D,O={}){const L=Kc(d,D,O.detached,()=>B()),B=a.run(()=>x.watch(()=>r.state.value[t],G=>{(O.flush==="sync"?u:c)&&D({storeId:t,type:bn.direct,events:h},G)},Ut({},l,O)));return L},$dispose:w},k=x.reactive(process.env.NODE_ENV!=="production"||Ti?Ut({_hmrPayload:C,_customProperties:x.markRaw(new Set)},E):E);r._s.set(t,k);const N=r._e.run(()=>(a=x.effectScope(),a.run(()=>e())));for(const D in N){const O=N[D];if(x.isRef(O)&&!Zc(O)||x.isReactive(O))process.env.NODE_ENV!=="production"&&i?ro(g.value,D,x.toRef(N,D)):o||(p&&V1(O)&&(x.isRef(O)?O.value=p[D]:Is(O,p[D])),r.state.value[t][D]=O),process.env.NODE_ENV!=="production"&&C.state.push(D);else if(typeof O=="function"){const L=process.env.NODE_ENV!=="production"&&i?O:y(D,O);N[D]=L,process.env.NODE_ENV!=="production"&&(C.actions[D]=O),s.actions[D]=O}else process.env.NODE_ENV!=="production"&&Zc(O)&&(C.getters[D]=o?n.getters[D]:O,oa&&(N._getters||(N._getters=x.markRaw([]))).push(D))}if(Ut(k,N),Ut(x.toRaw(k),N),Object.defineProperty(k,"$state",{get:()=>process.env.NODE_ENV!=="production"&&i?g.value:r.state.value[t],set:D=>{if(process.env.NODE_ENV!=="production"&&i)throw new Error("cannot set hotState");m(O=>{Ut(O,D)})}}),process.env.NODE_ENV!=="production"&&(k._hotUpdate=x.markRaw(D=>{k._hotUpdating=!0,D._hmrPayload.state.forEach(O=>{if(O in k.$state){const L=D.$state[O],B=k.$state[O];typeof L=="object"&&Er(L)&&Er(B)?Yf(L,B):D.$state[O]=B}ro(k,O,x.toRef(D.$state,O))}),Object.keys(k.$state).forEach(O=>{O in D.$state||Ma(k,O)}),c=!1,u=!1,r.state.value[t]=x.toRef(D._hmrPayload,"hotState"),u=!0,x.nextTick().then(()=>{c=!0});for(const O in D._hmrPayload.actions){const L=D[O];ro(k,O,y(O,L))}for(const O in D._hmrPayload.getters){const L=D._hmrPayload.getters[O],B=o?x.computed(()=>(Mi(r),L.call(k,k))):L;ro(k,O,B)}Object.keys(k._hmrPayload.getters).forEach(O=>{O in D._hmrPayload.getters||Ma(k,O)}),Object.keys(k._hmrPayload.actions).forEach(O=>{O in D._hmrPayload.actions||Ma(k,O)}),k._hmrPayload=D._hmrPayload,k._getters=D._getters,k._hotUpdating=!1})),Ti){const D={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(O=>{Object.defineProperty(k,O,Ut({value:k[O]},D))})}return r._p.forEach(D=>{if(Ti){const O=a.run(()=>D({store:k,app:r._a,pinia:r,options:s}));Object.keys(O||{}).forEach(L=>k._customProperties.add(L)),Ut(k,O)}else Ut(k,a.run(()=>D({store:k,app:r._a,pinia:r,options:s})))}),process.env.NODE_ENV!=="production"&&k.$state&&typeof k.$state=="object"&&typeof k.$state.constructor=="function"&&!k.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
8
8
|
state: () => new MyClass()
|
|
9
|
-
Found in store "${
|
|
9
|
+
Found in store "${k.$id}".`),p&&o&&n.hydrate&&n.hydrate(k.$state,p),c=!0,u=!0,k}function Rl(t,e,n){let r,i;const o=typeof e=="function";if(typeof t=="string")r=t,i=o?n:e;else if(i=t,r=t.id,process.env.NODE_ENV!=="production"&&typeof r!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function a(s,l){const c=x.getCurrentInstance();if(s=(process.env.NODE_ENV==="test"&&wi&&wi._testing?null:s)||c&&x.inject($f,null),s&&Mi(s),process.env.NODE_ENV!=="production"&&!wi)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
|
|
10
10
|
const pinia = createPinia()
|
|
11
11
|
app.use(pinia)
|
|
12
|
-
This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),process.env.NODE_ENV!=="production"&&(s._pinia=a));const d=a._s.get(o);if(process.env.NODE_ENV!=="production"&&l){const u="__hot:"+o,f=r?Lr(u,t,i,a,!0):Ua(u,et({},i),a,!0);l._hotUpdate(f),delete a.state.value[u],a._s.delete(u)}if(process.env.NODE_ENV!=="production"&&Ei&&c&&c.proxy&&!l){const u=c.proxy,f="_pStores"in u?u._pStores:u._pStores={};f[o]=d}return d}return s.$id=o,s}const rd=Is("productIdentification",{state:()=>({productIdentificationPref:{primaryId:"",secondaryId:""},productIdentificationOptions:["productId","groupId","groupName","internalName","parentProductName","primaryProductCategoryName","productId","sku","title","SHOPIFY_PROD_SKU"]}),getters:{getProductIdentificationPref:e=>e.productIdentificationPref,getProductIdentificationOptions:e=>e.productIdentificationOptions},actions:{async setProductIdentificationPref(e,t,n){const o=JSON.parse(JSON.stringify(this.getProductIdentificationPref));if(!n){this.productIdentificationPref=o;return}o[e]=t;try{this.productIdentificationPref=await Co.setProductIdentificationPref(n,o)}catch(i){console.log("error",i)}},async getIdentificationPref(e){if(!e)return this.productIdentificationPref={primaryId:"productId",secondaryId:""};this.productIdentificationPref=await Co.getProductIdentificationPref(e)}}});class Dn extends Error{}class Em extends Dn{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class Tm extends Dn{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class Im extends Dn{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class fo extends Dn{}class sd extends Dn{constructor(t){super(`Invalid unit ${t}`)}}class tt extends Dn{}class Wt extends Dn{constructor(){super("Zone is an abstract class")}}const F="numeric",yt="short",Ge="long",li={year:F,month:F,day:F},ad={year:F,month:yt,day:F},Sm={year:F,month:yt,day:F,weekday:yt},ld={year:F,month:Ge,day:F},cd={year:F,month:Ge,day:F,weekday:Ge},dd={hour:F,minute:F},ud={hour:F,minute:F,second:F},fd={hour:F,minute:F,second:F,timeZoneName:yt},hd={hour:F,minute:F,second:F,timeZoneName:Ge},md={hour:F,minute:F,hourCycle:"h23"},pd={hour:F,minute:F,second:F,hourCycle:"h23"},gd={hour:F,minute:F,second:F,hourCycle:"h23",timeZoneName:yt},bd={hour:F,minute:F,second:F,hourCycle:"h23",timeZoneName:Ge},vd={year:F,month:F,day:F,hour:F,minute:F},yd={year:F,month:F,day:F,hour:F,minute:F,second:F},wd={year:F,month:yt,day:F,hour:F,minute:F},kd={year:F,month:yt,day:F,hour:F,minute:F,second:F},Cm={year:F,month:yt,day:F,weekday:yt,hour:F,minute:F},xd={year:F,month:Ge,day:F,hour:F,minute:F,timeZoneName:yt},_d={year:F,month:Ge,day:F,hour:F,minute:F,second:F,timeZoneName:yt},Ed={year:F,month:Ge,day:F,weekday:Ge,hour:F,minute:F,timeZoneName:Ge},Td={year:F,month:Ge,day:F,weekday:Ge,hour:F,minute:F,second:F,timeZoneName:Ge};class Oo{get type(){throw new Wt}get name(){throw new Wt}get ianaName(){return this.name}get isUniversal(){throw new Wt}offsetName(t,n){throw new Wt}formatOffset(t,n){throw new Wt}offset(t){throw new Wt}equals(t){throw new Wt}get isValid(){throw new Wt}}let Gi=null;class Ti extends Oo{static get instance(){return Gi===null&&(Gi=new Ti),Gi}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:o}){return Sd(t,n,o)}formatOffset(t,n){return go(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let oi={};function Om(e){return oi[e]||(oi[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),oi[e]}const Am={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Dm(e,t){const n=e.format(t).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,r,s,a,l,c,d]=o;return[s,i,r,a,l,c,d]}function Nm(e,t){const n=e.formatToParts(t),o=[];for(let i=0;i<n.length;i++){const{type:r,value:s}=n[i],a=Am[r];r==="era"?o[a]=s:Z(a)||(o[a]=parseInt(s,10))}return o}let Ro={};class Bt extends Oo{static create(t){return Ro[t]||(Ro[t]=new Bt(t)),Ro[t]}static resetCache(){Ro={},oi={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Bt.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:o}){return Sd(t,n,o,this.name)}formatOffset(t,n){return go(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const o=Om(this.name);let[i,r,s,a,l,c,d]=o.formatToParts?Nm(o,n):Dm(o,n);a==="BC"&&(i=-Math.abs(i)+1);const f=Si({year:i,month:r,day:s,hour:l===24?0:l,minute:c,second:d,millisecond:0});let b=+n;const T=b%1e3;return b-=T>=0?T:1e3+T,(f-b)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let Ba={};function $m(e,t={}){const n=JSON.stringify([e,t]);let o=Ba[n];return o||(o=new Intl.ListFormat(e,t),Ba[n]=o),o}let Pr={};function Mr(e,t={}){const n=JSON.stringify([e,t]);let o=Pr[n];return o||(o=new Intl.DateTimeFormat(e,t),Pr[n]=o),o}let Rr={};function Lm(e,t={}){const n=JSON.stringify([e,t]);let o=Rr[n];return o||(o=new Intl.NumberFormat(e,t),Rr[n]=o),o}let Fr={};function Pm(e,t={}){const{base:n,...o}=t,i=JSON.stringify([e,o]);let r=Fr[i];return r||(r=new Intl.RelativeTimeFormat(e,t),Fr[i]=r),r}let ho=null;function Mm(){return ho||(ho=new Intl.DateTimeFormat().resolvedOptions().locale,ho)}function Rm(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let o,i;try{o=Mr(e).resolvedOptions(),i=e}catch{const l=e.substring(0,n);o=Mr(l).resolvedOptions(),i=l}const{numberingSystem:r,calendar:s}=o;return[i,r,s]}}function Fm(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Vm(e){const t=[];for(let n=1;n<=12;n++){const o=W.utc(2009,n,1);t.push(e(o))}return t}function zm(e){const t=[];for(let n=1;n<=7;n++){const o=W.utc(2016,11,13+n);t.push(e(o))}return t}function Fo(e,t,n,o){const i=e.listingMode();return i==="error"?null:i==="en"?n(t):o(t)}function Um(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class Bm{constructor(t,n,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:i,floor:r,...s}=o;if(!n||Object.keys(s).length>0){const a={useGrouping:!1,...o};o.padTo>0&&(a.minimumIntegerDigits=o.padTo),this.inf=Lm(t,a)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):Cs(t,3);return be(n,this.padTo)}}}class Hm{constructor(t,n,o){this.opts=o,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const s=-1*(t.offset/60),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&Bt.create(a).valid?(i=a,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const r={...this.opts};r.timeZone=r.timeZone||i,this.dtf=Mr(n,r)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:o}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class jm{constructor(t,n,o){this.opts={style:"long",...o},!n&&Id()&&(this.rtf=Pm(t,o))}format(t,n){return this.rtf?this.rtf.format(t,n):ap(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class le{static fromOpts(t){return le.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,o,i=!1){const r=t||ge.defaultLocale,s=r||(i?"en-US":Mm()),a=n||ge.defaultNumberingSystem,l=o||ge.defaultOutputCalendar;return new le(s,a,l,r)}static resetCache(){ho=null,Pr={},Rr={},Fr={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:o}={}){return le.create(t,n,o)}constructor(t,n,o,i){const[r,s,a]=Rm(t);this.locale=r,this.numberingSystem=n||s||null,this.outputCalendar=o||a||null,this.intl=Fm(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Um(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:le.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return Fo(this,t,Ad,()=>{const o=n?{month:t,day:"numeric"}:{month:t},i=n?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=Vm(r=>this.extract(r,o,"month"))),this.monthsCache[i][t]})}weekdays(t,n=!1){return Fo(this,t,$d,()=>{const o=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=n?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=zm(r=>this.extract(r,o,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return Fo(this,void 0,()=>Ld,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[W.utc(2016,11,13,9),W.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Fo(this,t,Pd,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[W.utc(-40,1,1),W.utc(2017,1,1)].map(o=>this.extract(o,n,"era"))),this.eraCache[t]})}extract(t,n,o){const i=this.dtFormatter(t,n),r=i.formatToParts(),s=r.find(a=>a.type.toLowerCase()===o);return s?s.value:null}numberFormatter(t={}){return new Bm(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new Hm(t,this.intl,n)}relFormatter(t={}){return new jm(this.intl,this.isEnglish(),t)}listFormatter(t={}){return $m(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let qi=null;class ze extends Oo{static get utcInstance(){return qi===null&&(qi=new ze(0)),qi}static instance(t){return t===0?ze.utcInstance:new ze(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new ze(Ci(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${go(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${go(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return go(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Wm extends Oo{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Xt(e,t){if(Z(e)||e===null)return t;if(e instanceof Oo)return e;if(Ym(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Ti.instance:n==="utc"||n==="gmt"?ze.utcInstance:ze.parseSpecifier(n)||Bt.create(e)}else return vn(e)?ze.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Wm(e)}let Ha=()=>Date.now(),ja="system",Wa=null,Ya=null,Ga=null,qa=60,Ka;class ge{static get now(){return Ha}static set now(t){Ha=t}static set defaultZone(t){ja=t}static get defaultZone(){return Xt(ja,Ti.instance)}static get defaultLocale(){return Wa}static set defaultLocale(t){Wa=t}static get defaultNumberingSystem(){return Ya}static set defaultNumberingSystem(t){Ya=t}static get defaultOutputCalendar(){return Ga}static set defaultOutputCalendar(t){Ga=t}static get twoDigitCutoffYear(){return qa}static set twoDigitCutoffYear(t){qa=t%100}static get throwOnInvalid(){return Ka}static set throwOnInvalid(t){Ka=t}static resetCaches(){le.resetCache(),Bt.resetCache()}}function Z(e){return typeof e>"u"}function vn(e){return typeof e=="number"}function Ii(e){return typeof e=="number"&&e%1===0}function Ym(e){return typeof e=="string"}function Gm(e){return Object.prototype.toString.call(e)==="[object Date]"}function Id(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function qm(e){return Array.isArray(e)?e:[e]}function Xa(e,t,n){if(e.length!==0)return e.reduce((o,i)=>{const r=[t(i),i];return o&&n(o[0],r[0])===o[0]?o:r},null)[1]}function Km(e,t){return t.reduce((n,o)=>(n[o]=e[o],n),{})}function qn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function zt(e,t,n){return Ii(e)&&e>=t&&e<=n}function Xm(e,t){return e-t*Math.floor(e/t)}function be(e,t=2){const n=e<0;let o;return n?o="-"+(""+-e).padStart(t,"0"):o=(""+e).padStart(t,"0"),o}function Kt(e){if(!(Z(e)||e===null||e===""))return parseInt(e,10)}function an(e){if(!(Z(e)||e===null||e===""))return parseFloat(e)}function Ss(e){if(!(Z(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Cs(e,t,n=!1){const o=10**t;return(n?Math.trunc:Math.round)(e*o)/o}function Ao(e){return e%4===0&&(e%100!==0||e%400===0)}function po(e){return Ao(e)?366:365}function ci(e,t){const n=Xm(t-1,12)+1,o=e+(t-n)/12;return n===2?Ao(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Si(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function di(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,o=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||o===3?53:52}function Vr(e){return e>99?e:e>ge.twoDigitCutoffYear?1900+e:2e3+e}function Sd(e,t,n,o=null){const i=new Date(e),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(r.timeZone=o);const s={timeZoneName:t,...r},a=new Intl.DateTimeFormat(n,s).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function Ci(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const o=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-o:o;return n*60+i}function Cd(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new tt(`Invalid unit value ${e}`);return t}function ui(e,t){const n={};for(const o in e)if(qn(e,o)){const i=e[o];if(i==null)continue;n[t(o)]=Cd(i)}return n}function go(e,t){const n=Math.trunc(Math.abs(e/60)),o=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${be(n,2)}:${be(o,2)}`;case"narrow":return`${i}${n}${o>0?`:${o}`:""}`;case"techie":return`${i}${be(n,2)}${be(o,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Oi(e){return Km(e,["hour","minute","second","millisecond"])}const Zm=["January","February","March","April","May","June","July","August","September","October","November","December"],Od=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Jm=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ad(e){switch(e){case"narrow":return[...Jm];case"short":return[...Od];case"long":return[...Zm];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Dd=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Nd=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Qm=["M","T","W","T","F","S","S"];function $d(e){switch(e){case"narrow":return[...Qm];case"short":return[...Nd];case"long":return[...Dd];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ld=["AM","PM"],ep=["Before Christ","Anno Domini"],tp=["BC","AD"],np=["B","A"];function Pd(e){switch(e){case"narrow":return[...np];case"short":return[...tp];case"long":return[...ep];default:return null}}function op(e){return Ld[e.hour<12?0:1]}function ip(e,t){return $d(t)[e.weekday-1]}function rp(e,t){return Ad(t)[e.month-1]}function sp(e,t){return Pd(t)[e.year<0?0:1]}function ap(e,t,n="always",o=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&r){const u=e==="days";switch(t){case 1:return u?"tomorrow":`next ${i[e][0]}`;case-1:return u?"yesterday":`last ${i[e][0]}`;case 0:return u?"today":`this ${i[e][0]}`}}const s=Object.is(t,-0)||t<0,a=Math.abs(t),l=a===1,c=i[e],d=o?l?c[1]:c[2]||c[1]:l?i[e][0]:e;return s?`${a} ${d} ago`:`in ${a} ${d}`}function Za(e,t){let n="";for(const o of e)o.literal?n+=o.val:n+=t(o.val);return n}const lp={D:li,DD:ad,DDD:ld,DDDD:cd,t:dd,tt:ud,ttt:fd,tttt:hd,T:md,TT:pd,TTT:gd,TTTT:bd,f:vd,ff:wd,fff:xd,ffff:Ed,F:yd,FF:kd,FFF:_d,FFFF:Td};class Pe{static create(t,n={}){return new Pe(t,n)}static parseFormat(t){let n=null,o="",i=!1;const r=[];for(let s=0;s<t.length;s++){const a=t.charAt(s);a==="'"?(o.length>0&&r.push({literal:i||/^\s+$/.test(o),val:o}),n=null,o="",i=!i):i||a===n?o+=a:(o.length>0&&r.push({literal:/^\s+$/.test(o),val:o}),o=a,n=a)}return o.length>0&&r.push({literal:i||/^\s+$/.test(o),val:o}),r}static macroTokenToFormatOpts(t){return lp[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return be(t,n);const o={...this.opts};return n>0&&(o.padTo=n),this.loc.numberFormatter(o).format(t)}formatDateTimeFromString(t,n){const o=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",r=(b,T)=>this.loc.extract(t,b,T),s=b=>t.isOffsetFixed&&t.offset===0&&b.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,b.format):"",a=()=>o?op(t):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(b,T)=>o?rp(t,b):r(T?{month:b}:{month:b,day:"numeric"},"month"),c=(b,T)=>o?ip(t,b):r(T?{weekday:b}:{weekday:b,month:"long",day:"numeric"},"weekday"),d=b=>{const T=Pe.macroTokenToFormatOpts(b);return T?this.formatWithSystemDefault(t,T):b},u=b=>o?sp(t,b):r({era:b},"era"),f=b=>{switch(b){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return i?r({day:"numeric"},"day"):this.num(t.day);case"dd":return i?r({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return i?r({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?r({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?r({month:"numeric"},"month"):this.num(t.month);case"MM":return i?r({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?r({year:"numeric"},"year"):this.num(t.year);case"yy":return i?r({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?r({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?r({year:"numeric"},"year"):this.num(t.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return d(b)}};return Za(Pe.parseFormat(n),f)}formatDurationFromString(t,n){const o=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=l=>c=>{const d=o(c);return d?this.num(l.get(d),c.length):c},r=Pe.parseFormat(n),s=r.reduce((l,{literal:c,val:d})=>c?l:l.concat(d),[]),a=t.shiftTo(...s.map(o).filter(l=>l));return Za(r,i(a))}}class gt{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Md=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Jn(...e){const t=e.reduce((n,o)=>n+o.source,"");return RegExp(`^${t}$`)}function Qn(...e){return t=>e.reduce(([n,o,i],r)=>{const[s,a,l]=r(t,i);return[{...n,...s},a||o,l]},[{},null,1]).slice(0,2)}function eo(e,...t){if(e==null)return[null,null];for(const[n,o]of t){const i=n.exec(e);if(i)return o(i)}return[null,null]}function Rd(...e){return(t,n)=>{const o={};let i;for(i=0;i<e.length;i++)o[e[i]]=Kt(t[n+i]);return[o,null,n+i]}}const Fd=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,cp=`(?:${Fd.source}?(?:\\[(${Md.source})\\])?)?`,Os=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Vd=RegExp(`${Os.source}${cp}`),As=RegExp(`(?:T${Vd.source})?`),dp=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,up=/(\d{4})-?W(\d\d)(?:-?(\d))?/,fp=/(\d{4})-?(\d{3})/,hp=Rd("weekYear","weekNumber","weekDay"),mp=Rd("year","ordinal"),pp=/(\d{4})-(\d\d)-(\d\d)/,zd=RegExp(`${Os.source} ?(?:${Fd.source}|(${Md.source}))?`),gp=RegExp(`(?: ${zd.source})?`);function Yn(e,t,n){const o=e[t];return Z(o)?n:Kt(o)}function bp(e,t){return[{year:Yn(e,t),month:Yn(e,t+1,1),day:Yn(e,t+2,1)},null,t+3]}function to(e,t){return[{hours:Yn(e,t,0),minutes:Yn(e,t+1,0),seconds:Yn(e,t+2,0),milliseconds:Ss(e[t+3])},null,t+4]}function Do(e,t){const n=!e[t]&&!e[t+1],o=Ci(e[t+1],e[t+2]),i=n?null:ze.instance(o);return[{},i,t+3]}function No(e,t){const n=e[t]?Bt.create(e[t]):null;return[{},n,t+1]}const vp=RegExp(`^T?${Os.source}$`),yp=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function wp(e){const[t,n,o,i,r,s,a,l,c]=e,d=t[0]==="-",u=l&&l[0]==="-",f=(b,T=!1)=>b!==void 0&&(T||b&&d)?-b:b;return[{years:f(an(n)),months:f(an(o)),weeks:f(an(i)),days:f(an(r)),hours:f(an(s)),minutes:f(an(a)),seconds:f(an(l),l==="-0"),milliseconds:f(Ss(c),u)}]}const kp={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ds(e,t,n,o,i,r,s){const a={year:t.length===2?Vr(Kt(t)):Kt(t),month:Od.indexOf(n)+1,day:Kt(o),hour:Kt(i),minute:Kt(r)};return s&&(a.second=Kt(s)),e&&(a.weekday=e.length>3?Dd.indexOf(e)+1:Nd.indexOf(e)+1),a}const xp=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function _p(e){const[,t,n,o,i,r,s,a,l,c,d,u]=e,f=Ds(t,i,o,n,r,s,a);let b;return l?b=kp[l]:c?b=0:b=Ci(d,u),[f,new ze(b)]}function Ep(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Tp=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ip=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Sp=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ja(e){const[,t,n,o,i,r,s,a]=e;return[Ds(t,i,o,n,r,s,a),ze.utcInstance]}function Cp(e){const[,t,n,o,i,r,s,a]=e;return[Ds(t,a,n,o,i,r,s),ze.utcInstance]}const Op=Jn(dp,As),Ap=Jn(up,As),Dp=Jn(fp,As),Np=Jn(Vd),Ud=Qn(bp,to,Do,No),$p=Qn(hp,to,Do,No),Lp=Qn(mp,to,Do,No),Pp=Qn(to,Do,No);function Mp(e){return eo(e,[Op,Ud],[Ap,$p],[Dp,Lp],[Np,Pp])}function Rp(e){return eo(Ep(e),[xp,_p])}function Fp(e){return eo(e,[Tp,Ja],[Ip,Ja],[Sp,Cp])}function Vp(e){return eo(e,[yp,wp])}const zp=Qn(to);function Up(e){return eo(e,[vp,zp])}const Bp=Jn(pp,gp),Hp=Jn(zd),jp=Qn(to,Do,No);function Wp(e){return eo(e,[Bp,Ud],[Hp,jp])}const Qa="Invalid Duration",Bd={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Yp={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Bd},Qe=146097/400,Rn=146097/4800,Gp={years:{quarters:4,months:12,weeks:Qe/7,days:Qe,hours:Qe*24,minutes:Qe*24*60,seconds:Qe*24*60*60,milliseconds:Qe*24*60*60*1e3},quarters:{months:3,weeks:Qe/28,days:Qe/4,hours:Qe*24/4,minutes:Qe*24*60/4,seconds:Qe*24*60*60/4,milliseconds:Qe*24*60*60*1e3/4},months:{weeks:Rn/7,days:Rn,hours:Rn*24,minutes:Rn*24*60,seconds:Rn*24*60*60,milliseconds:Rn*24*60*60*1e3},...Bd},hn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],qp=hn.slice(0).reverse();function Yt(e,t,n=!1){const o={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new ee(o)}function Hd(e,t){let n=t.milliseconds??0;for(const o of qp.slice(1))t[o]&&(n+=t[o]*e[o].milliseconds);return n}function el(e,t){const n=Hd(e,t)<0?-1:1;hn.reduceRight((o,i)=>{if(Z(t[i]))return o;if(o){const r=t[o]*n,s=e[i][o],a=Math.floor(r/s);t[i]+=a*n,t[o]-=a*s*n}return i},null),hn.reduce((o,i)=>{if(Z(t[i]))return o;if(o){const r=t[o]%1;t[o]-=r,t[i]+=r*e[o][i]}return i},null)}function Kp(e){const t={};for(const[n,o]of Object.entries(e))o!==0&&(t[n]=o);return t}class ee{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let o=n?Gp:Yp;t.matrix&&(o=t.matrix),this.values=t.values,this.loc=t.loc||le.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(t,n){return ee.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new tt(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new ee({values:ui(t,ee.normalizeUnit),loc:le.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(vn(t))return ee.fromMillis(t);if(ee.isDuration(t))return t;if(typeof t=="object")return ee.fromObject(t);throw new tt(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[o]=Vp(t);return o?ee.fromObject(o,n):ee.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[o]=Up(t);return o?ee.fromObject(o,n):ee.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new tt("need to specify a reason the Duration is invalid");const o=t instanceof gt?t:new gt(t,n);if(ge.throwOnInvalid)throw new Im(o);return new ee({invalid:o})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new sd(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const o={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Pe.create(this.loc,o).formatDurationFromString(this,t):Qa}toHuman(t={}){if(!this.isValid)return Qa;const n=hn.map(o=>{const i=this.values[o];return Z(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:o.slice(0,-1)}).format(i)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Cs(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},W.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?Hd(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=ee.fromDurationLike(t),o={};for(const i of hn)(qn(n.values,i)||qn(this.values,i))&&(o[i]=n.get(i)+this.get(i));return Yt(this,{values:o},!0)}minus(t){if(!this.isValid)return this;const n=ee.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const o of Object.keys(this.values))n[o]=Cd(t(this.values[o],o));return Yt(this,{values:n},!0)}get(t){return this[ee.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...ui(t,ee.normalizeUnit)};return Yt(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:o,matrix:i}={}){const s={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:i,conversionAccuracy:o};return Yt(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return el(this.matrix,t),Yt(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=Kp(this.normalize().shiftToAll().toObject());return Yt(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>ee.normalizeUnit(s));const n={},o={},i=this.toObject();let r;for(const s of hn)if(t.indexOf(s)>=0){r=s;let a=0;for(const c in o)a+=this.matrix[c][s]*o[c],o[c]=0;vn(i[s])&&(a+=i[s]);const l=Math.trunc(a);n[s]=l,o[s]=(a*1e3-l*1e3)/1e3}else vn(i[s])&&(o[s]=i[s]);for(const s in o)o[s]!==0&&(n[r]+=s===r?o[s]:o[s]/this.matrix[r][s]);return el(this.matrix,n),Yt(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Yt(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(o,i){return o===void 0||o===0?i===void 0||i===0:o===i}for(const o of hn)if(!n(this.values[o],t.values[o]))return!1;return!0}}const Fn="Invalid Interval";function Xp(e,t){return!e||!e.isValid?he.invalid("missing or invalid start"):!t||!t.isValid?he.invalid("missing or invalid end"):t<e?he.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class he{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new tt("need to specify a reason the Interval is invalid");const o=t instanceof gt?t:new gt(t,n);if(ge.throwOnInvalid)throw new Tm(o);return new he({invalid:o})}static fromDateTimes(t,n){const o=lo(t),i=lo(n),r=Xp(o,i);return r??new he({start:o,end:i})}static after(t,n){const o=ee.fromDurationLike(n),i=lo(t);return he.fromDateTimes(i,i.plus(o))}static before(t,n){const o=ee.fromDurationLike(n),i=lo(t);return he.fromDateTimes(i.minus(o),i)}static fromISO(t,n){const[o,i]=(t||"").split("/",2);if(o&&i){let r,s;try{r=W.fromISO(o,n),s=r.isValid}catch{s=!1}let a,l;try{a=W.fromISO(i,n),l=a.isValid}catch{l=!1}if(s&&l)return he.fromDateTimes(r,a);if(s){const c=ee.fromISO(i,n);if(c.isValid)return he.after(r,c)}else if(l){const c=ee.fromISO(o,n);if(c.isValid)return he.before(a,c)}}return he.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),o=this.end.startOf(t);return Math.floor(o.diff(n,t).get(t))+(o.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?he.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(lo).filter(s=>this.contains(s)).sort(),o=[];let{s:i}=this,r=0;for(;i<this.e;){const s=n[r]||this.e,a=+s>+this.e?this.e:s;o.push(he.fromDateTimes(i,a)),i=a,r+=1}return o}splitBy(t){const n=ee.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:o}=this,i=1,r;const s=[];for(;o<this.e;){const a=this.start.plus(n.mapUnits(l=>l*i));r=+a>+this.e?this.e:a,s.push(he.fromDateTimes(o,r)),o=r,i+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,o=this.e<t.e?this.e:t.e;return n>=o?null:he.fromDateTimes(n,o)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,o=this.e>t.e?this.e:t.e;return he.fromDateTimes(n,o)}static merge(t){const[n,o]=t.sort((i,r)=>i.s-r.s).reduce(([i,r],s)=>r?r.overlaps(s)||r.abutsStart(s)?[i,r.union(s)]:[i.concat([r]),s]:[i,s],[[],null]);return o&&n.push(o),n}static xor(t){let n=null,o=0;const i=[],r=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...r),a=s.sort((l,c)=>l.time-c.time);for(const l of a)o+=l.type==="s"?1:-1,o===1?n=l.time:(n&&+n!=+l.time&&i.push(he.fromDateTimes(n,l.time)),n=null);return he.merge(i)}difference(...t){return he.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Fn}toLocaleString(t=li,n={}){return this.isValid?Pe.create(this.s.loc.clone(n),t).formatInterval(this):Fn}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Fn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Fn}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Fn}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Fn}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):ee.invalid(this.invalidReason)}mapEndpoints(t){return he.fromDateTimes(t(this.s),t(this.e))}}class Vo{static hasDST(t=ge.defaultZone){const n=W.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Bt.isValidZone(t)}static normalizeZone(t){return Xt(t,ge.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:o=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||le.create(n,o,r)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:o=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||le.create(n,o,r)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:o=null,locObj:i=null}={}){return(i||le.create(n,o,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:o=null,locObj:i=null}={}){return(i||le.create(n,o,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return le.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return le.create(n,null,"gregory").eras(t)}static features(){return{relative:Id()}}}function tl(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=n(t)-n(e);return Math.floor(ee.fromMillis(o).as("days"))}function Zp(e,t,n){const o=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const d=tl(l,c);return(d-d%7)/7}],["days",tl]],i={},r=e;let s,a;for(const[l,c]of o)n.indexOf(l)>=0&&(s=l,i[l]=c(e,t),a=r.plus(i),a>t?(i[l]--,e=r.plus(i),e>t&&(a=e,i[l]--,e=r.plus(i))):e=a);return[e,i,a,s]}function Jp(e,t,n,o){let[i,r,s,a]=Zp(e,t,n);const l=t-i,c=n.filter(u=>["hours","minutes","seconds","milliseconds"].indexOf(u)>=0);c.length===0&&(s<t&&(s=i.plus({[a]:1})),s!==i&&(r[a]=(r[a]||0)+l/(s-i)));const d=ee.fromObject(r,o);return c.length>0?ee.fromMillis(l,o).shiftTo(...c).plus(d):d}const Ns={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},nl={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Qp=Ns.hanidec.replace(/[\[|\]]/g,"").split("");function eg(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const o=e.charCodeAt(n);if(e[n].search(Ns.hanidec)!==-1)t+=Qp.indexOf(e[n]);else for(const i in nl){const[r,s]=nl[i];o>=r&&o<=s&&(t+=o-r)}}return parseInt(t,10)}else return t}function dt({numberingSystem:e},t=""){return new RegExp(`${Ns[e||"latn"]}${t}`)}const tg="missing Intl.DateTimeFormat.formatToParts support";function ie(e,t=n=>n){return{regex:e,deser:([n])=>t(eg(n))}}const ng=String.fromCharCode(160),jd=`[ ${ng}]`,Wd=new RegExp(jd,"g");function og(e){return e.replace(/\./g,"\\.?").replace(Wd,jd)}function ol(e){return e.replace(/\./g,"").replace(Wd," ").toLowerCase()}function ut(e,t){return e===null?null:{regex:RegExp(e.map(og).join("|")),deser:([n])=>e.findIndex(o=>ol(n)===ol(o))+t}}function il(e,t){return{regex:e,deser:([,n,o])=>Ci(n,o),groups:t}}function zo(e){return{regex:e,deser:([t])=>t}}function ig(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function rg(e,t){const n=dt(t),o=dt(t,"{2}"),i=dt(t,"{3}"),r=dt(t,"{4}"),s=dt(t,"{6}"),a=dt(t,"{1,2}"),l=dt(t,"{1,3}"),c=dt(t,"{1,6}"),d=dt(t,"{1,9}"),u=dt(t,"{2,4}"),f=dt(t,"{4,6}"),b=C=>({regex:RegExp(ig(C.val)),deser:([p])=>p,literal:!0}),x=(C=>{if(e.literal)return b(C);switch(C.val){case"G":return ut(t.eras("short"),0);case"GG":return ut(t.eras("long"),0);case"y":return ie(c);case"yy":return ie(u,Vr);case"yyyy":return ie(r);case"yyyyy":return ie(f);case"yyyyyy":return ie(s);case"M":return ie(a);case"MM":return ie(o);case"MMM":return ut(t.months("short",!0),1);case"MMMM":return ut(t.months("long",!0),1);case"L":return ie(a);case"LL":return ie(o);case"LLL":return ut(t.months("short",!1),1);case"LLLL":return ut(t.months("long",!1),1);case"d":return ie(a);case"dd":return ie(o);case"o":return ie(l);case"ooo":return ie(i);case"HH":return ie(o);case"H":return ie(a);case"hh":return ie(o);case"h":return ie(a);case"mm":return ie(o);case"m":return ie(a);case"q":return ie(a);case"qq":return ie(o);case"s":return ie(a);case"ss":return ie(o);case"S":return ie(l);case"SSS":return ie(i);case"u":return zo(d);case"uu":return zo(a);case"uuu":return ie(n);case"a":return ut(t.meridiems(),0);case"kkkk":return ie(r);case"kk":return ie(u,Vr);case"W":return ie(a);case"WW":return ie(o);case"E":case"c":return ie(n);case"EEE":return ut(t.weekdays("short",!1),1);case"EEEE":return ut(t.weekdays("long",!1),1);case"ccc":return ut(t.weekdays("short",!0),1);case"cccc":return ut(t.weekdays("long",!0),1);case"Z":case"ZZ":return il(new RegExp(`([+-]${a.source})(?::(${o.source}))?`),2);case"ZZZ":return il(new RegExp(`([+-]${a.source})(${o.source})?`),2);case"z":return zo(/[a-z_+-/]{1,256}?/i);case" ":return zo(/[^\S\n\r]/);default:return b(C)}})(e)||{invalidReason:tg};return x.token=e,x}const sg={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function ag(e,t,n){const{type:o,value:i}=e;if(o==="literal"){const l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}const r=t[o];let s=o;o==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=n.hour12?"hour12":"hour24");let a=sg[s];if(typeof a=="object"&&(a=a[r]),a)return{literal:!1,val:a}}function lg(e){return[`^${e.map(n=>n.regex).reduce((n,o)=>`${n}(${o.source})`,"")}$`,e]}function cg(e,t,n){const o=e.match(t);if(o){const i={};let r=1;for(const s in n)if(qn(n,s)){const a=n[s],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(o.slice(r,r+l))),r+=l}return[o,i]}else return[o,{}]}function dg(e){const t=r=>{switch(r){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,o;return Z(e.z)||(n=Bt.create(e.z)),Z(e.Z)||(n||(n=new ze(e.Z)),o=e.Z),Z(e.q)||(e.M=(e.q-1)*3+1),Z(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Z(e.u)||(e.S=Ss(e.u)),[Object.keys(e).reduce((r,s)=>{const a=t(s);return a&&(r[a]=e[s]),r},{}),n,o]}let Ki=null;function ug(){return Ki||(Ki=W.fromMillis(1555555555555)),Ki}function fg(e,t){if(e.literal)return e;const n=Pe.macroTokenToFormatOpts(e.val),o=qd(n,t);return o==null||o.includes(void 0)?e:o}function Yd(e,t){return Array.prototype.concat(...e.map(n=>fg(n,t)))}function Gd(e,t,n){const o=Yd(Pe.parseFormat(n),e),i=o.map(s=>rg(s,e)),r=i.find(s=>s.invalidReason);if(r)return{input:t,tokens:o,invalidReason:r.invalidReason};{const[s,a]=lg(i),l=RegExp(s,"i"),[c,d]=cg(t,l,a),[u,f,b]=d?dg(d):[null,null,void 0];if(qn(d,"a")&&qn(d,"H"))throw new fo("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:o,regex:l,rawMatches:c,matches:d,result:u,zone:f,specificOffset:b}}}function hg(e,t,n){const{result:o,zone:i,specificOffset:r,invalidReason:s}=Gd(e,t,n);return[o,i,r,s]}function qd(e,t){if(!e)return null;const o=Pe.create(t,e).dtFormatter(ug()),i=o.formatToParts(),r=o.resolvedOptions();return i.map(s=>ag(s,e,r))}const Kd=[0,31,59,90,120,151,181,212,243,273,304,334],Xd=[0,31,60,91,121,152,182,213,244,274,305,335];function nt(e,t){return new gt("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Zd(e,t,n){const o=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const i=o.getUTCDay();return i===0?7:i}function Jd(e,t,n){return n+(Ao(e)?Xd:Kd)[t-1]}function Qd(e,t){const n=Ao(e)?Xd:Kd,o=n.findIndex(r=>r<t),i=t-n[o];return{month:o+1,day:i}}function zr(e){const{year:t,month:n,day:o}=e,i=Jd(t,n,o),r=Zd(t,n,o);let s=Math.floor((i-r+10)/7),a;return s<1?(a=t-1,s=di(a)):s>di(t)?(a=t+1,s=1):a=t,{weekYear:a,weekNumber:s,weekday:r,...Oi(e)}}function rl(e){const{weekYear:t,weekNumber:n,weekday:o}=e,i=Zd(t,1,4),r=po(t);let s=n*7+o-i-3,a;s<1?(a=t-1,s+=po(a)):s>r?(a=t+1,s-=po(t)):a=t;const{month:l,day:c}=Qd(a,s);return{year:a,month:l,day:c,...Oi(e)}}function Xi(e){const{year:t,month:n,day:o}=e,i=Jd(t,n,o);return{year:t,ordinal:i,...Oi(e)}}function sl(e){const{year:t,ordinal:n}=e,{month:o,day:i}=Qd(t,n);return{year:t,month:o,day:i,...Oi(e)}}function mg(e){const t=Ii(e.weekYear),n=zt(e.weekNumber,1,di(e.weekYear)),o=zt(e.weekday,1,7);return t?n?o?!1:nt("weekday",e.weekday):nt("week",e.week):nt("weekYear",e.weekYear)}function pg(e){const t=Ii(e.year),n=zt(e.ordinal,1,po(e.year));return t?n?!1:nt("ordinal",e.ordinal):nt("year",e.year)}function eu(e){const t=Ii(e.year),n=zt(e.month,1,12),o=zt(e.day,1,ci(e.year,e.month));return t?n?o?!1:nt("day",e.day):nt("month",e.month):nt("year",e.year)}function tu(e){const{hour:t,minute:n,second:o,millisecond:i}=e,r=zt(t,0,23)||t===24&&n===0&&o===0&&i===0,s=zt(n,0,59),a=zt(o,0,59),l=zt(i,0,999);return r?s?a?l?!1:nt("millisecond",i):nt("second",o):nt("minute",n):nt("hour",t)}const Zi="Invalid DateTime",al=864e13;function Uo(e){return new gt("unsupported zone",`the zone "${e.name}" is not supported`)}function Ji(e){return e.weekData===null&&(e.weekData=zr(e.c)),e.weekData}function ln(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new W({...n,...t,old:n})}function nu(e,t,n){let o=e-t*60*1e3;const i=n.offset(o);if(t===i)return[o,t];o-=(i-t)*60*1e3;const r=n.offset(o);return i===r?[o,i]:[e-Math.min(i,r)*60*1e3,Math.max(i,r)]}function Bo(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function ii(e,t,n){return nu(Si(e),t,n)}function ll(e,t){const n=e.o,o=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,r={...e.c,year:o,month:i,day:Math.min(e.c.day,ci(o,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=ee.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=Si(r);let[l,c]=nu(a,n,e.zone);return s!==0&&(l+=s,c=e.zone.offset(l)),{ts:l,o:c}}function ao(e,t,n,o,i,r){const{setZone:s,zone:a}=n;if(e&&Object.keys(e).length!==0||t){const l=t||a,c=W.fromObject(e,{...n,zone:l,specificOffset:r});return s?c:c.setZone(a)}else return W.invalid(new gt("unparsable",`the input "${i}" can't be parsed as ${o}`))}function Ho(e,t,n=!0){return e.isValid?Pe.create(le.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Qi(e,t){const n=e.c.year>9999||e.c.year<0;let o="";return n&&e.c.year>=0&&(o+="+"),o+=be(e.c.year,n?6:4),t?(o+="-",o+=be(e.c.month),o+="-",o+=be(e.c.day)):(o+=be(e.c.month),o+=be(e.c.day)),o}function cl(e,t,n,o,i,r){let s=be(e.c.hour);return t?(s+=":",s+=be(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(s+=":")):s+=be(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(s+=be(e.c.second),(e.c.millisecond!==0||!o)&&(s+=".",s+=be(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!r?s+="Z":e.o<0?(s+="-",s+=be(Math.trunc(-e.o/60)),s+=":",s+=be(Math.trunc(-e.o%60))):(s+="+",s+=be(Math.trunc(e.o/60)),s+=":",s+=be(Math.trunc(e.o%60)))),r&&(s+="["+e.zone.ianaName+"]"),s}const ou={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},gg={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},bg={ordinal:1,hour:0,minute:0,second:0,millisecond:0},iu=["year","month","day","hour","minute","second","millisecond"],vg=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],yg=["year","ordinal","hour","minute","second","millisecond"];function dl(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new sd(e);return t}function ul(e,t){const n=Xt(t.zone,ge.defaultZone),o=le.fromObject(t),i=ge.now();let r,s;if(Z(e.year))r=i;else{for(const c of iu)Z(e[c])&&(e[c]=ou[c]);const a=eu(e)||tu(e);if(a)return W.invalid(a);const l=n.offset(i);[r,s]=ii(e,l,n)}return new W({ts:r,zone:n,loc:o,o:s})}function fl(e,t,n){const o=Z(n.round)?!0:n.round,i=(s,a)=>(s=Cs(s,o||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(s,a)),r=s=>n.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(n.unit)return i(r(n.unit),n.unit);for(const s of n.units){const a=r(s);if(Math.abs(a)>=1)return i(a,s)}return i(e>t?-0:0,n.units[n.units.length-1])}function hl(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}class W{constructor(t){const n=t.zone||ge.defaultZone;let o=t.invalid||(Number.isNaN(t.ts)?new gt("invalid input"):null)||(n.isValid?null:Uo(n));this.ts=Z(t.ts)?ge.now():t.ts;let i=null,r=null;if(!o)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,r]=[t.old.c,t.old.o];else{const a=n.offset(this.ts);i=Bo(this.ts,a),o=Number.isNaN(i.year)?new gt("invalid input"):null,i=o?null:i,r=o?null:a}this._zone=n,this.loc=t.loc||le.create(),this.invalid=o,this.weekData=null,this.c=i,this.o=r,this.isLuxonDateTime=!0}static now(){return new W({})}static local(){const[t,n]=hl(arguments),[o,i,r,s,a,l,c]=n;return ul({year:o,month:i,day:r,hour:s,minute:a,second:l,millisecond:c},t)}static utc(){const[t,n]=hl(arguments),[o,i,r,s,a,l,c]=n;return t.zone=ze.utcInstance,ul({year:o,month:i,day:r,hour:s,minute:a,second:l,millisecond:c},t)}static fromJSDate(t,n={}){const o=Gm(t)?t.valueOf():NaN;if(Number.isNaN(o))return W.invalid("invalid input");const i=Xt(n.zone,ge.defaultZone);return i.isValid?new W({ts:o,zone:i,loc:le.fromObject(n)}):W.invalid(Uo(i))}static fromMillis(t,n={}){if(vn(t))return t<-al||t>al?W.invalid("Timestamp out of range"):new W({ts:t,zone:Xt(n.zone,ge.defaultZone),loc:le.fromObject(n)});throw new tt(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(vn(t))return new W({ts:t*1e3,zone:Xt(n.zone,ge.defaultZone),loc:le.fromObject(n)});throw new tt("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const o=Xt(n.zone,ge.defaultZone);if(!o.isValid)return W.invalid(Uo(o));const i=ge.now(),r=Z(n.specificOffset)?o.offset(i):n.specificOffset,s=ui(t,dl),a=!Z(s.ordinal),l=!Z(s.year),c=!Z(s.month)||!Z(s.day),d=l||c,u=s.weekYear||s.weekNumber,f=le.fromObject(n);if((d||a)&&u)throw new fo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new fo("Can't mix ordinal dates with month/day");const b=u||s.weekday&&!d;let T,x,C=Bo(i,r);b?(T=vg,x=gg,C=zr(C)):a?(T=yg,x=bg,C=Xi(C)):(T=iu,x=ou);let p=!1;for(const P of T){const A=s[P];Z(A)?p?s[P]=x[P]:s[P]=C[P]:p=!0}const y=b?mg(s):a?pg(s):eu(s),S=y||tu(s);if(S)return W.invalid(S);const k=b?rl(s):a?sl(s):s,[D,v]=ii(k,r,o),w=new W({ts:D,zone:o,o:v,loc:f});return s.weekday&&d&&t.weekday!==w.weekday?W.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${w.toISO()}`):w}static fromISO(t,n={}){const[o,i]=Mp(t);return ao(o,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[o,i]=Rp(t);return ao(o,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[o,i]=Fp(t);return ao(o,i,n,"HTTP",n)}static fromFormat(t,n,o={}){if(Z(t)||Z(n))throw new tt("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:r=null}=o,s=le.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),[a,l,c,d]=hg(s,t,n);return d?W.invalid(d):ao(a,l,o,`format ${n}`,t,c)}static fromString(t,n,o={}){return W.fromFormat(t,n,o)}static fromSQL(t,n={}){const[o,i]=Wp(t);return ao(o,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new tt("need to specify a reason the DateTime is invalid");const o=t instanceof gt?t:new gt(t,n);if(ge.throwOnInvalid)throw new Em(o);return new W({invalid:o})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const o=qd(t,le.fromObject(n));return o?o.map(i=>i?i.val:null).join(""):null}static expandFormat(t,n={}){return Yd(Pe.parseFormat(t),le.fromObject(n)).map(i=>i.val).join("")}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ji(this).weekYear:NaN}get weekNumber(){return this.isValid?Ji(this).weekNumber:NaN}get weekday(){return this.isValid?Ji(this).weekday:NaN}get ordinal(){return this.isValid?Xi(this.c).ordinal:NaN}get monthShort(){return this.isValid?Vo.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Vo.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Vo.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Vo.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,o=Si(this.c),i=this.zone.offset(o-t),r=this.zone.offset(o+t),s=this.zone.offset(o-i*n),a=this.zone.offset(o-r*n);if(s===a)return[this];const l=o-s*n,c=o-a*n,d=Bo(l,s),u=Bo(c,a);return d.hour===u.hour&&d.minute===u.minute&&d.second===u.second&&d.millisecond===u.millisecond?[ln(this,{ts:l}),ln(this,{ts:c})]:[this]}get isInLeapYear(){return Ao(this.year)}get daysInMonth(){return ci(this.year,this.month)}get daysInYear(){return this.isValid?po(this.year):NaN}get weeksInWeekYear(){return this.isValid?di(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:o,calendar:i}=Pe.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:o,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(ze.instance(t),n)}toLocal(){return this.setZone(ge.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:o=!1}={}){if(t=Xt(t,ge.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||o){const r=t.offset(this.ts),s=this.toObject();[i]=ii(s,r,t)}return ln(this,{ts:i,zone:t})}else return W.invalid(Uo(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:o}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:o});return ln(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=ui(t,dl),o=!Z(n.weekYear)||!Z(n.weekNumber)||!Z(n.weekday),i=!Z(n.ordinal),r=!Z(n.year),s=!Z(n.month)||!Z(n.day),a=r||s,l=n.weekYear||n.weekNumber;if((a||i)&&l)throw new fo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&i)throw new fo("Can't mix ordinal dates with month/day");let c;o?c=rl({...zr(this.c),...n}):Z(n.ordinal)?(c={...this.toObject(),...n},Z(n.day)&&(c.day=Math.min(ci(c.year,c.month),c.day))):c=sl({...Xi(this.c),...n});const[d,u]=ii(c,this.o,this.zone);return ln(this,{ts:d,o:u})}plus(t){if(!this.isValid)return this;const n=ee.fromDurationLike(t);return ln(this,ll(this,n))}minus(t){if(!this.isValid)return this;const n=ee.fromDurationLike(t).negate();return ln(this,ll(this,n))}startOf(t){if(!this.isValid)return this;const n={},o=ee.normalizeUnit(t);switch(o){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(o==="weeks"&&(n.weekday=1),o==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?Pe.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Zi}toLocaleString(t=li,n={}){return this.isValid?Pe.create(this.loc.clone(n),t).formatDateTime(this):Zi}toLocaleParts(t={}){return this.isValid?Pe.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:o=!1,includeOffset:i=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;const s=t==="extended";let a=Qi(this,s);return a+="T",a+=cl(this,s,n,o,i,r),a}toISODate({format:t="extended"}={}){return this.isValid?Qi(this,t==="extended"):null}toISOWeekDate(){return Ho(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:o=!0,includePrefix:i=!1,extendedZone:r=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+cl(this,s==="extended",n,t,o,r):null}toRFC2822(){return Ho(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ho(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Qi(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:o=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(o&&(i+=" "),n?i+="z":t&&(i+="ZZ")),Ho(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Zi}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",o={}){if(!this.isValid||!t.isValid)return ee.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...o},r=qm(n).map(ee.normalizeUnit),s=t.valueOf()>this.valueOf(),a=s?this:t,l=s?t:this,c=Jp(a,l,r,i);return s?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(W.now(),t,n)}until(t){return this.isValid?he.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const o=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n)<=o&&o<=i.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||W.fromObject({},{zone:this.zone}),o=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],r=t.unit;return Array.isArray(t.unit)&&(i=t.unit,r=void 0),fl(n,this.plus(o),{...t,numeric:"always",units:i,unit:r})}toRelativeCalendar(t={}){return this.isValid?fl(t.base||W.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(W.isDateTime))throw new tt("min requires all arguments be DateTimes");return Xa(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(W.isDateTime))throw new tt("max requires all arguments be DateTimes");return Xa(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,o={}){const{locale:i=null,numberingSystem:r=null}=o,s=le.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});return Gd(s,t,n)}static fromStringExplain(t,n,o={}){return W.fromFormatExplain(t,n,o)}static get DATE_SHORT(){return li}static get DATE_MED(){return ad}static get DATE_MED_WITH_WEEKDAY(){return Sm}static get DATE_FULL(){return ld}static get DATE_HUGE(){return cd}static get TIME_SIMPLE(){return dd}static get TIME_WITH_SECONDS(){return ud}static get TIME_WITH_SHORT_OFFSET(){return fd}static get TIME_WITH_LONG_OFFSET(){return hd}static get TIME_24_SIMPLE(){return md}static get TIME_24_WITH_SECONDS(){return pd}static get TIME_24_WITH_SHORT_OFFSET(){return gd}static get TIME_24_WITH_LONG_OFFSET(){return bd}static get DATETIME_SHORT(){return vd}static get DATETIME_SHORT_WITH_SECONDS(){return yd}static get DATETIME_MED(){return wd}static get DATETIME_MED_WITH_SECONDS(){return kd}static get DATETIME_MED_WITH_WEEKDAY(){return Cm}static get DATETIME_FULL(){return xd}static get DATETIME_FULL_WITH_SECONDS(){return _d}static get DATETIME_HUGE(){return Ed}static get DATETIME_HUGE_WITH_SECONDS(){return Td}}function lo(e){if(W.isDateTime(e))return e;if(e&&e.valueOf&&vn(e.valueOf()))return W.fromJSDate(e);if(e&&typeof e=="object")return W.fromObject(e);throw new tt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const $s=Is("userAuth",{state:()=>({token:{value:"",expiration:void 0},oms:""}),getters:{getToken:e=>e.token,getOms:e=>e.oms,isAuthenticated:e=>{let t=!1;if(e.token.expiration){const n=W.now().toMillis();t=e.token.expiration<n}return e.token.value&&!t}},persist:!0});const Vn={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let zn,ru,Ai,su=!1,fi=!1,Ls=!1,je=!1,ml=null,Ur=!1;const au=e=>{const t=new URL(e,Ae.$resourcesUrl$);return t.origin!==Lo.location.origin?t.href:t.pathname},wn=(e,t="")=>()=>{},pl="http://www.w3.org/1999/xlink",gl={},wg="http://www.w3.org/2000/svg",kg="http://www.w3.org/1999/xhtml",xg=e=>e!=null,Ps=e=>(e=typeof e,e==="object"||e==="function");function _g(e){var t,n,o;return(o=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&o!==void 0?o:void 0}const _=(e,t,...n)=>{let o=null,i=null,r=null,s=!1,a=!1;const l=[],c=u=>{for(let f=0;f<u.length;f++)o=u[f],Array.isArray(o)?c(o):o!=null&&typeof o!="boolean"&&((s=typeof e!="function"&&!Ps(o))&&(o=String(o)),s&&a?l[l.length-1].$text$+=o:l.push(s?hi(null,o):o),a=s)};if(c(n),t){t.key&&(i=t.key),t.name&&(r=t.name);{const u=t.className||t.class;u&&(t.class=typeof u!="object"?u:Object.keys(u).filter(f=>u[f]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,Tg);const d=hi(e,null);return d.$attrs$=t,l.length>0&&(d.$children$=l),d.$key$=i,d.$name$=r,d},hi=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},se={},Eg=e=>e&&e.$tag$===se,Tg={forEach:(e,t)=>e.map(bl).forEach(t),map:(e,t)=>e.map(bl).map(t).map(Ig)},bl=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Ig=e=>{if(typeof e.vtag=="function"){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),_(e.vtag,n,...e.vchildren||[])}const t=hi(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Sg=e=>tb.map(t=>t(e)).find(t=>!!t),Cg=e=>no(e).$modeName$,Og=(e,t)=>e!=null&&!Ps(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,Ag=e=>e,q=(e,t,n)=>{const o=Ag(e);return{emit:i=>Dg(o,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:i})}},Dg=(e,t,n)=>{const o=Ae.ce(t,n);return e.dispatchEvent(o),o},vl=new WeakMap,Ng=(e,t,n)=>{let o=gi.get(e);ib&&n?(o=o||new CSSStyleSheet,typeof o=="string"?o=t:o.replaceSync(t)):o=t,gi.set(e,o)},$g=(e,t,n,o)=>{var i;let r=lu(t,n);const s=gi.get(r);if(e=e.nodeType===11?e:bt,s)if(typeof s=="string"){e=e.head||e;let a=vl.get(e),l;if(a||vl.set(e,a=new Set),!a.has(r)){{l=bt.createElement("style"),l.innerHTML=s;const c=(i=Ae.$nonce$)!==null&&i!==void 0?i:_g(bt);c!=null&&l.setAttribute("nonce",c),e.insertBefore(l,e.querySelector("link"))}a&&a.add(r)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return r},Lg=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,o=t.$flags$,i=wn("attachStyles",t.$tagName$),r=$g(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$);o&10&&(n["s-sc"]=r,n.classList.add(r+"-h"),o&2&&n.classList.add(r+"-s")),i()},lu=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),yl=(e,t,n,o,i,r)=>{if(n!==o){let s=_l(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=wl(n),d=wl(o);l.remove(...c.filter(u=>u&&!d.includes(u))),l.add(...d.filter(u=>u&&!c.includes(u)))}else if(t==="style"){for(const l in n)(!o||o[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in o)(!n||o[l]!==n[l])&&(l.includes("-")?e.style.setProperty(l,o[l]):e.style[l]=o[l])}else if(t!=="key")if(t==="ref")o&&o(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):_l(Lo,a)?t=a.slice(2):t=a[2]+t.slice(3),n&&Ae.rel(e,t,n,!1),o&&Ae.ael(e,t,o,!1);else{const l=Ps(o);if((s||l&&o!==null)&&!i)try{if(e.tagName.includes("-"))e[t]=o;else{const d=o??"";t==="list"?s=!1:(n==null||e[t]!=d)&&(e[t]=d)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),o==null||o===!1?(o!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(pl,t):e.removeAttribute(t)):(!s||r&4||i)&&!l&&(o=o===!0?"":o,c?e.setAttributeNS(pl,t,o):e.setAttribute(t,o))}}},Pg=/\s/,wl=e=>e?e.split(Pg):[],cu=(e,t,n,o)=>{const i=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||gl,s=t.$attrs$||gl;for(o in r)o in s||yl(i,o,r[o],void 0,n,t.$flags$);for(o in s)yl(i,o,r[o],s[o],n,t.$flags$)},mi=(e,t,n,o)=>{const i=t.$children$[n];let r=0,s,a,l;if(su||(Ls=!0,i.$tag$==="slot"&&(zn&&o.classList.add(zn+"-s"),i.$flags$|=i.$children$?2:1)),i.$text$!==null)s=i.$elm$=bt.createTextNode(i.$text$);else if(i.$flags$&1)s=i.$elm$=bt.createTextNode("");else{if(je||(je=i.$tag$==="svg"),s=i.$elm$=bt.createElementNS(je?wg:kg,i.$flags$&2?"slot-fb":i.$tag$),je&&i.$tag$==="foreignObject"&&(je=!1),cu(null,i,je),xg(zn)&&s["s-si"]!==zn&&s.classList.add(s["s-si"]=zn),i.$children$)for(r=0;r<i.$children$.length;++r)a=mi(e,i,r,s),a&&s.appendChild(a);i.$tag$==="svg"?je=!1:s.tagName==="foreignObject"&&(je=!0)}return s["s-hn"]=Ai,i.$flags$&3&&(s["s-sr"]=!0,s["s-cr"]=ru,s["s-sn"]=i.$name$||"",l=e&&e.$children$&&e.$children$[n],l&&l.$tag$===i.$tag$&&e.$elm$&&wo(e.$elm$,!1)),s},wo=(e,t)=>{Ae.$flags$|=1;const n=e.childNodes;for(let o=n.length-1;o>=0;o--){const i=n[o];i["s-hn"]!==Ai&&i["s-ol"]&&(fu(i).insertBefore(i,Ms(i)),i["s-ol"].remove(),i["s-ol"]=void 0,Ls=!0),t&&wo(i,t)}Ae.$flags$&=-2},du=(e,t,n,o,i,r)=>{let s=e["s-cr"]&&e["s-cr"].parentNode||e,a;for(s.shadowRoot&&s.tagName===Ai&&(s=s.shadowRoot);i<=r;++i)o[i]&&(a=mi(null,n,i,e),a&&(o[i].$elm$=a,s.insertBefore(a,Ms(t))))},uu=(e,t,n,o,i)=>{for(;t<=n;++t)(o=e[t])&&(i=o.$elm$,pu(o),fi=!0,i["s-ol"]?i["s-ol"].remove():wo(i,!0),i.remove())},Mg=(e,t,n,o)=>{let i=0,r=0,s=0,a=0,l=t.length-1,c=t[0],d=t[l],u=o.length-1,f=o[0],b=o[u],T,x;for(;i<=l&&r<=u;)if(c==null)c=t[++i];else if(d==null)d=t[--l];else if(f==null)f=o[++r];else if(b==null)b=o[--u];else if(jo(c,f))Un(c,f),c=t[++i],f=o[++r];else if(jo(d,b))Un(d,b),d=t[--l],b=o[--u];else if(jo(c,b))(c.$tag$==="slot"||b.$tag$==="slot")&&wo(c.$elm$.parentNode,!1),Un(c,b),e.insertBefore(c.$elm$,d.$elm$.nextSibling),c=t[++i],b=o[--u];else if(jo(d,f))(c.$tag$==="slot"||b.$tag$==="slot")&&wo(d.$elm$.parentNode,!1),Un(d,f),e.insertBefore(d.$elm$,c.$elm$),d=t[--l],f=o[++r];else{for(s=-1,a=i;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===f.$key$){s=a;break}s>=0?(x=t[s],x.$tag$!==f.$tag$?T=mi(t&&t[r],n,s,e):(Un(x,f),t[s]=void 0,T=x.$elm$),f=o[++r]):(T=mi(t&&t[r],n,r,e),f=o[++r]),T&&fu(c.$elm$).insertBefore(T,Ms(c.$elm$))}i>l?du(e,o[u+1]==null?null:o[u+1].$elm$,n,o,r,u):r>u&&uu(t,i,l)},jo=(e,t)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:e.$key$===t.$key$:!1,Ms=e=>e&&e["s-ol"]||e,fu=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Un=(e,t)=>{const n=t.$elm$=e.$elm$,o=e.$children$,i=t.$children$,r=t.$tag$,s=t.$text$;let a;s===null?(je=r==="svg"?!0:r==="foreignObject"?!1:je,r==="slot"||cu(e,t,je),o!==null&&i!==null?Mg(n,o,t,i):i!==null?(e.$text$!==null&&(n.textContent=""),du(n,null,t,i,0,i.length-1)):o!==null&&uu(o,0,o.length-1),je&&r==="svg"&&(je=!1)):(a=n["s-cr"])?a.parentNode.textContent=s:e.$text$!==s&&(n.data=s)},hu=e=>{const t=e.childNodes;let n,o,i,r,s,a;for(o=0,i=t.length;o<i;o++)if(n=t[o],n.nodeType===1){if(n["s-sr"]){for(s=n["s-sn"],n.hidden=!1,r=0;r<i;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==n["s-hn"]||s!==""){if(a===1&&s===t[r].getAttribute("slot")){n.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){n.hidden=!0;break}}hu(n)}},mt=[],mu=e=>{let t,n,o,i,r,s,a=0;const l=e.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(o=n.parentNode.childNodes,i=t["s-sn"],s=o.length-1;s>=0;s--)n=o[s],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(kl(n,i)?(r=mt.find(d=>d.$nodeToRelocate$===n),fi=!0,n["s-sn"]=n["s-sn"]||i,r?r.$slotRefNode$=t:mt.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&mt.map(d=>{kl(d.$nodeToRelocate$,n["s-sn"])&&(r=mt.find(u=>u.$nodeToRelocate$===n),r&&!d.$slotRefNode$&&(d.$slotRefNode$=r.$slotRefNode$))})):mt.some(d=>d.$nodeToRelocate$===n)||mt.push({$nodeToRelocate$:n}));t.nodeType===1&&mu(t)}},kl=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",pu=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(pu)},Rg=(e,t)=>{const n=e.$hostElement$,o=e.$cmpMeta$,i=e.$vnode$||hi(null,null),r=Eg(t)?t:_(null,null,t);Ai=n.tagName,o.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},o.$attrsToReflect$.map(([s,a])=>r.$attrs$[a]=n[s])),r.$tag$=null,r.$flags$|=4,e.$vnode$=r,r.$elm$=i.$elm$=n.shadowRoot||n,zn=n["s-sc"],ru=n["s-cr"],su=(o.$flags$&1)!==0,fi=!1,Un(i,r);{if(Ae.$flags$|=1,Ls){mu(r.$elm$);let s,a,l,c,d,u,f=0;for(;f<mt.length;f++)s=mt[f],a=s.$nodeToRelocate$,a["s-ol"]||(l=bt.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(f=0;f<mt.length;f++)if(s=mt[f],a=s.$nodeToRelocate$,s.$slotRefNode$){for(c=s.$slotRefNode$.parentNode,d=s.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(u=l["s-nr"],u&&u["s-sn"]===a["s-sn"]&&c===u.parentNode&&(u=u.nextSibling,!u||!u["s-nr"])){d=u;break}(!d&&c!==a.parentNode||a.nextSibling!==d)&&a!==d&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,d))}else a.nodeType===1&&(a.hidden=!0)}fi&&hu(r.$elm$),Ae.$flags$&=-2,mt.length=0}},Fg=(e,t)=>{},Rs=(e,t)=>(e.$flags$|=16,Fg(e,e.$ancestorComponent$),bi(()=>Vg(e,t))),Vg=(e,t)=>{const n=e.$hostElement$,o=wn("scheduleUpdate",e.$cmpMeta$.$tagName$),i=n;let r;return t?r=Gn(i,"componentWillLoad"):r=Gn(i,"componentWillUpdate"),r=xl(r,()=>Gn(i,"componentWillRender")),o(),xl(r,()=>zg(e,i,t))},zg=async(e,t,n)=>{const o=e.$hostElement$,i=wn("update",e.$cmpMeta$.$tagName$);o["s-rc"],n&&Lg(e);const r=wn("render",e.$cmpMeta$.$tagName$);Ug(e,t,o),r(),i(),Bg(e)},Ug=(e,t,n)=>{try{ml=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(Vn.hasRenderFn||Vn.reflect)&&(Vn.vdomRender||Vn.reflect)&&(Vn.hydrateServerSide||Rg(e,t))}catch(a){$o(a,e.$hostElement$)}return ml=null,null},Bg=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,o=wn("postUpdate",t),i=n;e.$ancestorComponent$,Gn(i,"componentDidRender"),e.$flags$&64?(Gn(i,"componentDidUpdate"),o()):(e.$flags$|=64,Gn(i,"componentDidLoad"),o())},pi=e=>{{const t=no(e),n=t.$hostElement$.isConnected;return n&&(t.$flags$&18)===2&&Rs(t,!1),n}},Gn=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(o){$o(o)}},xl=(e,t)=>e&&e.then?e.then(t):t(),Hg=(e,t)=>no(e).$instanceValues$.get(t),jg=(e,t,n,o)=>{const i=no(e),r=e,s=i.$instanceValues$.get(t),a=i.$flags$,l=r;n=Og(n,o.$members$[t][0]);const c=Number.isNaN(s)&&Number.isNaN(n);if(n!==s&&!c){i.$instanceValues$.set(t,n);{if(o.$watchers$&&a&128){const u=o.$watchers$[t];u&&u.map(f=>{try{l[f](n,s,t)}catch(b){$o(b,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,s,t)===!1)return;Rs(i,!1)}}}},Wg=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const o=Object.entries(t.$members$),i=e.prototype;o.map(([r,[s]])=>{(s&31||s&32)&&Object.defineProperty(i,r,{get(){return Hg(this,r)},set(a){jg(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;i.attributeChangedCallback=function(s,a,l){Ae.jmp(()=>{const c=r.get(s);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(i.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},e.observedAttributes=o.filter(([s,a])=>a[0]&15).map(([s,a])=>{const l=a[1]||s;return r.set(l,s),a[0]&512&&t.$attrsToReflect$.push([s,l]),l})}}return e},Yg=async(e,t,n,o,i)=>{if(!(t.$flags$&32)&&(i=e.constructor,t.$flags$|=32,customElements.whenDefined(n.$tagName$).then(()=>t.$flags$|=128),i.style)){let s=i.style;typeof s!="string"&&(s=s[t.$modeName$=Sg(e)]);const a=lu(n,t.$modeName$);if(!gi.has(a)){const l=wn("registerStyles",n.$tagName$);Ng(a,s,!!(n.$flags$&1)),l()}}t.$ancestorComponent$,(()=>Rs(t,!0))()},Gg=e=>{},qg=e=>{if(!(Ae.$flags$&1)){const t=no(e),n=t.$cmpMeta$,o=wn("connectedCallback",n.$tagName$);t.$flags$&1?(gu(e,t,n.$listeners$),Gg(t.$lazyInstance$)):(t.$flags$|=1,n.$flags$&12&&Kg(e),n.$members$&&Object.entries(n.$members$).map(([i,[r]])=>{if(r&31&&e.hasOwnProperty(i)){const s=e[i];delete e[i],e[i]=s}}),Yg(e,t,n)),o()}},Kg=e=>{const t=e["s-cr"]=bt.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},Xg=e=>{if(!(Ae.$flags$&1)){const t=no(e);t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0)}},ce=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[];const o=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){eb(this,n)},connectedCallback(){qg(this),o&&o.call(this)},disconnectedCallback(){Xg(this),i&&i.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}),e.is=n.$tagName$,Wg(e,n)},gu=(e,t,n,o)=>{n&&n.map(([i,r,s])=>{const a=Jg(e,i),l=Zg(t,s),c=Qg(i);Ae.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>Ae.rel(a,r,l,c))})},Zg=(e,t)=>n=>{try{Vn.lazyLoad||e.$hostElement$[t](n)}catch(o){$o(o)}},Jg=(e,t)=>t&4?bt:t&8?Lo:t&16?bt.body:e,Qg=e=>nb?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,bu=new WeakMap,no=e=>bu.get(e),eb=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return gu(e,n,t.$listeners$),bu.set(e,n)},_l=(e,t)=>t in e,$o=(e,t)=>(0,console.error)(e,t),gi=new Map,tb=[],Lo=typeof window<"u"?window:{},bt=Lo.document||{head:{}},de=Lo.HTMLElement||class{},Ae={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},nb=(()=>{let e=!1;try{bt.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),ob=e=>Promise.resolve(e),ib=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),Br=[],vu=[],yu=(e,t)=>n=>{e.push(n),Ur||(Ur=!0,t&&Ae.$flags$&4?rb(Hr):Ae.raf(Hr))},El=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){$o(n)}e.length=0},Hr=()=>{El(Br),El(vu),(Ur=Br.length>0)&&Ae.raf(Hr)},rb=e=>ob().then(e),wu=yu(Br,!1),bi=yu(vu,!0);/*!
|
|
12
|
+
This will fail in production.`);s=wi,s._s.has(r)||(o?Ts(r,e,i,s):Jc(r,i,s),process.env.NODE_ENV!=="production"&&(a._pinia=s));const u=s._s.get(r);if(process.env.NODE_ENV!=="production"&&l){const d="__hot:"+r,f=o?Ts(d,e,i,s,!0):Jc(d,Ut({},i),s,!0);l._hotUpdate(f),delete s.state.value[d],s._s.delete(d)}if(process.env.NODE_ENV!=="production"&&oa&&c&&c.proxy&&!l){const d=c.proxy,f="_pStores"in d?d._pStores:d._pStores={};f[r]=u}return u}return a.$id=r,a}const qf=Rl("productIdentification",{state:()=>({productIdentificationPref:{primaryId:"",secondaryId:""},productIdentificationOptions:["productId","groupId","groupName","internalName","parentProductName","primaryProductCategoryName","productId","sku","title","SHOPIFY_PROD_SKU"]}),getters:{getProductIdentificationPref:t=>t.productIdentificationPref,getProductIdentificationOptions:t=>t.productIdentificationOptions},actions:{async setProductIdentificationPref(t,e,n){const r=JSON.parse(JSON.stringify(this.getProductIdentificationPref));if(!n){this.productIdentificationPref=r;return}r[t]=e;try{this.productIdentificationPref=await ji.setProductIdentificationPref(n,r)}catch(i){console.log("error",i)}},async getIdentificationPref(t){if(!t)return this.productIdentificationPref={primaryId:"productId",secondaryId:""};this.productIdentificationPref=await ji.getProductIdentificationPref(t)}}});class Lr extends Error{}class U1 extends Lr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class H1 extends Lr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class z1 extends Lr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class _i extends Lr{}class Kf extends Lr{constructor(e){super(`Invalid unit ${e}`)}}class zt extends Lr{}class Bn extends Lr{constructor(){super("Zone is an abstract class")}}const z="numeric",un="short",Rt="long",Bo={year:z,month:z,day:z},Zf={year:z,month:un,day:z},W1={year:z,month:un,day:z,weekday:un},Jf={year:z,month:Rt,day:z},Qf={year:z,month:Rt,day:z,weekday:Rt},eh={hour:z,minute:z},th={hour:z,minute:z,second:z},nh={hour:z,minute:z,second:z,timeZoneName:un},rh={hour:z,minute:z,second:z,timeZoneName:Rt},ih={hour:z,minute:z,hourCycle:"h23"},oh={hour:z,minute:z,second:z,hourCycle:"h23"},ah={hour:z,minute:z,second:z,hourCycle:"h23",timeZoneName:un},sh={hour:z,minute:z,second:z,hourCycle:"h23",timeZoneName:Rt},lh={year:z,month:z,day:z,hour:z,minute:z},ch={year:z,month:z,day:z,hour:z,minute:z,second:z},uh={year:z,month:un,day:z,hour:z,minute:z},dh={year:z,month:un,day:z,hour:z,minute:z,second:z},G1={year:z,month:un,day:z,weekday:un,hour:z,minute:z},fh={year:z,month:Rt,day:z,hour:z,minute:z,timeZoneName:un},hh={year:z,month:Rt,day:z,hour:z,minute:z,second:z,timeZoneName:un},ph={year:z,month:Rt,day:z,weekday:Rt,hour:z,minute:z,timeZoneName:Rt},gh={year:z,month:Rt,day:z,weekday:Rt,hour:z,minute:z,second:z,timeZoneName:Rt};class Xi{get type(){throw new Bn}get name(){throw new Bn}get ianaName(){return this.name}get isUniversal(){throw new Bn}offsetName(e,n){throw new Bn}formatOffset(e,n){throw new Bn}offset(e){throw new Bn}equals(e){throw new Bn}get isValid(){throw new Bn}}let La=null;class aa extends Xi{static get instance(){return La===null&&(La=new aa),La}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return vh(e,n,r)}formatOffset(e,n){return Di(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Oo={};function j1(t){return Oo[t]||(Oo[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Oo[t]}const Y1={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function X1(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,o,a,s,l,c,u]=r;return[a,i,o,s,l,c,u]}function q1(t,e){const n=t.formatToParts(e),r=[];for(let i=0;i<n.length;i++){const{type:o,value:a}=n[i],s=Y1[o];o==="era"?r[s]=a:le(s)||(r[s]=parseInt(a,10))}return r}let io={};class Mn extends Xi{static create(e){return io[e]||(io[e]=new Mn(e)),io[e]}static resetCache(){io={},Oo={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Mn.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return vh(e,n,r,this.name)}formatOffset(e,n){return Di(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=j1(this.name);let[i,o,a,s,l,c,u]=r.formatToParts?q1(r,n):X1(r,n);s==="BC"&&(i=-Math.abs(i)+1);const f=la({year:i,month:o,day:a,hour:l===24?0:l,minute:c,second:u,millisecond:0});let h=+n;const p=h%1e3;return h-=p>=0?p:1e3+p,(f-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Qc={};function K1(t,e={}){const n=JSON.stringify([t,e]);let r=Qc[n];return r||(r=new Intl.ListFormat(t,e),Qc[n]=r),r}let Os={};function Ds(t,e={}){const n=JSON.stringify([t,e]);let r=Os[n];return r||(r=new Intl.DateTimeFormat(t,e),Os[n]=r),r}let Ns={};function Z1(t,e={}){const n=JSON.stringify([t,e]);let r=Ns[n];return r||(r=new Intl.NumberFormat(t,e),Ns[n]=r),r}let Ps={};function J1(t,e={}){const{base:n,...r}=e,i=JSON.stringify([t,r]);let o=Ps[i];return o||(o=new Intl.RelativeTimeFormat(t,e),Ps[i]=o),o}let Ei=null;function Q1(){return Ei||(Ei=new Intl.DateTimeFormat().resolvedOptions().locale,Ei)}function em(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,i;try{r=Ds(t).resolvedOptions(),i=t}catch{const l=t.substring(0,n);r=Ds(l).resolvedOptions(),i=l}const{numberingSystem:o,calendar:a}=r;return[i,o,a]}}function tm(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function nm(t){const e=[];for(let n=1;n<=12;n++){const r=re.utc(2009,n,1);e.push(t(r))}return e}function rm(t){const e=[];for(let n=1;n<=7;n++){const r=re.utc(2016,11,13+n);e.push(t(r))}return e}function oo(t,e,n,r){const i=t.listingMode();return i==="error"?null:i==="en"?n(e):r(e)}function im(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class om{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:o,...a}=r;if(!n||Object.keys(a).length>0){const s={useGrouping:!1,...r};r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=Z1(e,s)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):Ll(e,3);return ze(n,this.padTo)}}}class am{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&Mn.create(s).valid?(i=s,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=Ds(n,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class sm{constructor(e,n,r){this.opts={style:"long",...r},!n&&mh()&&(this.rtf=J1(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):Am(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}class Pe{static fromOpts(e){return Pe.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,n,r,i=!1){const o=e||He.defaultLocale,a=o||(i?"en-US":Q1()),s=n||He.defaultNumberingSystem,l=r||He.defaultOutputCalendar;return new Pe(a,s,l,o)}static resetCache(){Ei=null,Os={},Ns={},Ps={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r}={}){return Pe.create(e,n,r)}constructor(e,n,r,i){const[o,a,s]=em(e);this.locale=o,this.numberingSystem=n||a||null,this.outputCalendar=r||s||null,this.intl=tm(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=im(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Pe.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return oo(this,e,yh,()=>{const r=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=nm(o=>this.extract(o,r,"month"))),this.monthsCache[i][e]})}weekdays(e,n=!1){return oo(this,e,Eh,()=>{const r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=n?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=rm(o=>this.extract(o,r,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return oo(this,void 0,()=>Ah,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[re.utc(2016,11,13,9),re.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return oo(this,e,kh,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[re.utc(-40,1,1),re.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){const i=this.dtFormatter(e,n),o=i.formatToParts(),a=o.find(s=>s.type.toLowerCase()===r);return a?a.value:null}numberFormatter(e={}){return new om(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new am(e,this.intl,n)}relFormatter(e={}){return new sm(this.intl,this.isEnglish(),e)}listFormatter(e={}){return K1(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Fa=null;class wt extends Xi{static get utcInstance(){return Fa===null&&(Fa=new wt(0)),Fa}static instance(e){return e===0?wt.utcInstance:new wt(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new wt(ca(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Di(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Di(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Di(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class lm extends Xi{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function jn(t,e){if(le(t)||t===null)return e;if(t instanceof Xi)return t;if(cm(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?aa.instance:n==="utc"||n==="gmt"?wt.utcInstance:wt.parseSpecifier(n)||Mn.create(t)}else return wr(t)?wt.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new lm(t)}let eu=()=>Date.now(),tu="system",nu=null,ru=null,iu=null,ou=60,au;class He{static get now(){return eu}static set now(e){eu=e}static set defaultZone(e){tu=e}static get defaultZone(){return jn(tu,aa.instance)}static get defaultLocale(){return nu}static set defaultLocale(e){nu=e}static get defaultNumberingSystem(){return ru}static set defaultNumberingSystem(e){ru=e}static get defaultOutputCalendar(){return iu}static set defaultOutputCalendar(e){iu=e}static get twoDigitCutoffYear(){return ou}static set twoDigitCutoffYear(e){ou=e%100}static get throwOnInvalid(){return au}static set throwOnInvalid(e){au=e}static resetCaches(){Pe.resetCache(),Mn.resetCache()}}function le(t){return typeof t>"u"}function wr(t){return typeof t=="number"}function sa(t){return typeof t=="number"&&t%1===0}function cm(t){return typeof t=="string"}function um(t){return Object.prototype.toString.call(t)==="[object Date]"}function mh(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function dm(t){return Array.isArray(t)?t:[t]}function su(t,e,n){if(t.length!==0)return t.reduce((r,i)=>{const o=[e(i),i];return r&&n(r[0],o[0])===r[0]?r:o},null)[1]}function fm(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function ti(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Nn(t,e,n){return sa(t)&&t>=e&&t<=n}function hm(t,e){return t-e*Math.floor(t/e)}function ze(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function Wn(t){if(!(le(t)||t===null||t===""))return parseInt(t,10)}function ar(t){if(!(le(t)||t===null||t===""))return parseFloat(t)}function Ml(t){if(!(le(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Ll(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function qi(t){return t%4===0&&(t%100!==0||t%400===0)}function Oi(t){return qi(t)?366:365}function $o(t,e){const n=hm(e-1,12)+1,r=t+(e-n)/12;return n===2?qi(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function la(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Vo(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return e===4||r===3?53:52}function Rs(t){return t>99?t:t>He.twoDigitCutoffYear?1900+t:2e3+t}function vh(t,e,n,r=null){const i=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const a={timeZoneName:e,...o},s=new Intl.DateTimeFormat(n,a).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function ca(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function bh(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new zt(`Invalid unit value ${t}`);return e}function Uo(t,e){const n={};for(const r in t)if(ti(t,r)){const i=t[r];if(i==null)continue;n[e(r)]=bh(i)}return n}function Di(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return`${i}${ze(n,2)}:${ze(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${ze(n,2)}${ze(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ua(t){return fm(t,["hour","minute","second","millisecond"])}const pm=["January","February","March","April","May","June","July","August","September","October","November","December"],xh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],gm=["J","F","M","A","M","J","J","A","S","O","N","D"];function yh(t){switch(t){case"narrow":return[...gm];case"short":return[...xh];case"long":return[...pm];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const wh=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],_h=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],mm=["M","T","W","T","F","S","S"];function Eh(t){switch(t){case"narrow":return[...mm];case"short":return[..._h];case"long":return[...wh];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ah=["AM","PM"],vm=["Before Christ","Anno Domini"],bm=["BC","AD"],xm=["B","A"];function kh(t){switch(t){case"narrow":return[...xm];case"short":return[...bm];case"long":return[...vm];default:return null}}function ym(t){return Ah[t.hour<12?0:1]}function wm(t,e){return Eh(e)[t.weekday-1]}function _m(t,e){return yh(e)[t.month-1]}function Em(t,e){return kh(e)[t.year<0?0:1]}function Am(t,e,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&o){const d=t==="days";switch(e){case 1:return d?"tomorrow":`next ${i[t][0]}`;case-1:return d?"yesterday":`last ${i[t][0]}`;case 0:return d?"today":`this ${i[t][0]}`}}const a=Object.is(e,-0)||e<0,s=Math.abs(e),l=s===1,c=i[t],u=r?l?c[1]:c[2]||c[1]:l?i[t][0]:t;return a?`${s} ${u} ago`:`in ${s} ${u}`}function lu(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const km={D:Bo,DD:Zf,DDD:Jf,DDDD:Qf,t:eh,tt:th,ttt:nh,tttt:rh,T:ih,TT:oh,TTT:ah,TTTT:sh,f:lh,ff:uh,fff:fh,ffff:ph,F:ch,FF:dh,FFF:hh,FFFF:gh};let an=class Ai{static create(e,n={}){return new Ai(e,n)}static parseFormat(e){let n=null,r="",i=!1;const o=[];for(let a=0;a<e.length;a++){const s=e.charAt(a);s==="'"?(r.length>0&&o.push({literal:i||/^\s+$/.test(r),val:r}),n=null,r="",i=!i):i||s===n?r+=s:(r.length>0&&o.push({literal:/^\s+$/.test(r),val:r}),r=s,n=s)}return r.length>0&&o.push({literal:i||/^\s+$/.test(r),val:r}),o}static macroTokenToFormatOpts(e){return km[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return ze(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(h,p)=>this.loc.extract(e,h,p),a=h=>e.isOffsetFixed&&e.offset===0&&h.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,h.format):"",s=()=>r?ym(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(h,p)=>r?_m(e,h):o(p?{month:h}:{month:h,day:"numeric"},"month"),c=(h,p)=>r?wm(e,h):o(p?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),u=h=>{const p=Ai.macroTokenToFormatOpts(h);return p?this.formatWithSystemDefault(e,p):h},d=h=>r?Em(e,h):o({era:h},"era"),f=h=>{switch(h){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return i?o({day:"numeric"},"day"):this.num(e.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(e.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(e.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(h)}};return lu(Ai.parseFormat(n),f)}formatDurationFromString(e,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=l=>c=>{const u=r(c);return u?this.num(l.get(u),c.length):c},o=Ai.parseFormat(n),a=o.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),s=e.shiftTo(...a.map(r).filter(l=>l));return lu(o,i(s))}};class ln{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Ch=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ai(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function si(...t){return e=>t.reduce(([n,r,i],o)=>{const[a,s,l]=o(e,i);return[{...n,...a},s||r,l]},[{},null,1]).slice(0,2)}function li(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const i=n.exec(t);if(i)return r(i)}return[null,null]}function Sh(...t){return(e,n)=>{const r={};let i;for(i=0;i<t.length;i++)r[t[i]]=Wn(e[n+i]);return[r,null,n+i]}}const Ih=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Cm=`(?:${Ih.source}?(?:\\[(${Ch.source})\\])?)?`,Fl=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Th=RegExp(`${Fl.source}${Cm}`),Bl=RegExp(`(?:T${Th.source})?`),Sm=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Im=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Tm=/(\d{4})-?(\d{3})/,Om=Sh("weekYear","weekNumber","weekDay"),Dm=Sh("year","ordinal"),Nm=/(\d{4})-(\d\d)-(\d\d)/,Oh=RegExp(`${Fl.source} ?(?:${Ih.source}|(${Ch.source}))?`),Pm=RegExp(`(?: ${Oh.source})?`);function Qr(t,e,n){const r=t[e];return le(r)?n:Wn(r)}function Rm(t,e){return[{year:Qr(t,e),month:Qr(t,e+1,1),day:Qr(t,e+2,1)},null,e+3]}function ci(t,e){return[{hours:Qr(t,e,0),minutes:Qr(t,e+1,0),seconds:Qr(t,e+2,0),milliseconds:Ml(t[e+3])},null,e+4]}function Ki(t,e){const n=!t[e]&&!t[e+1],r=ca(t[e+1],t[e+2]),i=n?null:wt.instance(r);return[{},i,e+3]}function Zi(t,e){const n=t[e]?Mn.create(t[e]):null;return[{},n,e+1]}const Mm=RegExp(`^T?${Fl.source}$`),Lm=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Fm(t){const[e,n,r,i,o,a,s,l,c]=t,u=e[0]==="-",d=l&&l[0]==="-",f=(h,p=!1)=>h!==void 0&&(p||h&&u)?-h:h;return[{years:f(ar(n)),months:f(ar(r)),weeks:f(ar(i)),days:f(ar(o)),hours:f(ar(a)),minutes:f(ar(s)),seconds:f(ar(l),l==="-0"),milliseconds:f(Ml(c),d)}]}const Bm={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function $l(t,e,n,r,i,o,a){const s={year:e.length===2?Rs(Wn(e)):Wn(e),month:xh.indexOf(n)+1,day:Wn(r),hour:Wn(i),minute:Wn(o)};return a&&(s.second=Wn(a)),t&&(s.weekday=t.length>3?wh.indexOf(t)+1:_h.indexOf(t)+1),s}const $m=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Vm(t){const[,e,n,r,i,o,a,s,l,c,u,d]=t,f=$l(e,i,r,n,o,a,s);let h;return l?h=Bm[l]:c?h=0:h=ca(u,d),[f,new wt(h)]}function Um(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Hm=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,zm=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Wm=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function cu(t){const[,e,n,r,i,o,a,s]=t;return[$l(e,i,r,n,o,a,s),wt.utcInstance]}function Gm(t){const[,e,n,r,i,o,a,s]=t;return[$l(e,s,n,r,i,o,a),wt.utcInstance]}const jm=ai(Sm,Bl),Ym=ai(Im,Bl),Xm=ai(Tm,Bl),qm=ai(Th),Dh=si(Rm,ci,Ki,Zi),Km=si(Om,ci,Ki,Zi),Zm=si(Dm,ci,Ki,Zi),Jm=si(ci,Ki,Zi);function Qm(t){return li(t,[jm,Dh],[Ym,Km],[Xm,Zm],[qm,Jm])}function ev(t){return li(Um(t),[$m,Vm])}function tv(t){return li(t,[Hm,cu],[zm,cu],[Wm,Gm])}function nv(t){return li(t,[Lm,Fm])}const rv=si(ci);function iv(t){return li(t,[Mm,rv])}const ov=ai(Nm,Pm),av=ai(Oh),sv=si(ci,Ki,Zi);function lv(t){return li(t,[ov,Dh],[av,sv])}const uu="Invalid Duration",Nh={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},cv={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Nh},Vt=146097/400,Ur=146097/4800,uv={years:{quarters:4,months:12,weeks:Vt/7,days:Vt,hours:Vt*24,minutes:Vt*24*60,seconds:Vt*24*60*60,milliseconds:Vt*24*60*60*1e3},quarters:{months:3,weeks:Vt/28,days:Vt/4,hours:Vt*24/4,minutes:Vt*24*60/4,seconds:Vt*24*60*60/4,milliseconds:Vt*24*60*60*1e3/4},months:{weeks:Ur/7,days:Ur,hours:Ur*24,minutes:Ur*24*60,seconds:Ur*24*60*60,milliseconds:Ur*24*60*60*1e3},...Nh},gr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],dv=gr.slice(0).reverse();function $n(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new fe(r)}function Ph(t,e){let n=e.milliseconds??0;for(const r of dv.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function du(t,e){const n=Ph(t,e)<0?-1:1;gr.reduceRight((r,i)=>{if(le(e[i]))return r;if(r){const o=e[r]*n,a=t[i][r],s=Math.floor(o/a);e[i]+=s*n,e[r]-=s*a*n}return i},null),gr.reduce((r,i)=>{if(le(e[i]))return r;if(r){const o=e[r]%1;e[r]-=o,e[i]+=o*t[r][i]}return i},null)}function fv(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class fe{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?uv:cv;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||Pe.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return fe.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new zt(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new fe({values:Uo(e,fe.normalizeUnit),loc:Pe.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(wr(e))return fe.fromMillis(e);if(fe.isDuration(e))return e;if(typeof e=="object")return fe.fromObject(e);throw new zt(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=nv(e);return r?fe.fromObject(r,n):fe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=iv(e);return r?fe.fromObject(r,n):fe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new zt("need to specify a reason the Duration is invalid");const r=e instanceof ln?e:new ln(e,n);if(He.throwOnInvalid)throw new z1(r);return new fe({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Kf(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?an.create(this.loc,r).formatDurationFromString(this,e):uu}toHuman(e={}){if(!this.isValid)return uu;const n=gr.map(r=>{const i=this.values[r];return le(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(i)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Ll(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},re.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?Ph(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=fe.fromDurationLike(e),r={};for(const i of gr)(ti(n.values,i)||ti(this.values,i))&&(r[i]=n.get(i)+this.get(i));return $n(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=fe.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=bh(e(this.values[r],r));return $n(this,{values:n},!0)}get(e){return this[fe.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Uo(e,fe.normalizeUnit)};return $n(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:i,conversionAccuracy:r};return $n(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return du(this.matrix,e),$n(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=fv(this.normalize().shiftToAll().toObject());return $n(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>fe.normalizeUnit(a));const n={},r={},i=this.toObject();let o;for(const a of gr)if(e.indexOf(a)>=0){o=a;let s=0;for(const c in r)s+=this.matrix[c][a]*r[c],r[c]=0;wr(i[a])&&(s+=i[a]);const l=Math.trunc(s);n[a]=l,r[a]=(s*1e3-l*1e3)/1e3}else wr(i[a])&&(r[a]=i[a]);for(const a in r)r[a]!==0&&(n[o]+=a===o?r[a]:r[a]/this.matrix[o][a]);return du(this.matrix,n),$n(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return $n(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of gr)if(!n(this.values[r],e.values[r]))return!1;return!0}}const Hr="Invalid Interval";function hv(t,e){return!t||!t.isValid?$e.invalid("missing or invalid start"):!e||!e.isValid?$e.invalid("missing or invalid end"):e<t?$e.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class $e{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new zt("need to specify a reason the Interval is invalid");const r=e instanceof ln?e:new ln(e,n);if(He.throwOnInvalid)throw new H1(r);return new $e({invalid:r})}static fromDateTimes(e,n){const r=mi(e),i=mi(n),o=hv(r,i);return o??new $e({start:r,end:i})}static after(e,n){const r=fe.fromDurationLike(n),i=mi(e);return $e.fromDateTimes(i,i.plus(r))}static before(e,n){const r=fe.fromDurationLike(n),i=mi(e);return $e.fromDateTimes(i.minus(r),i)}static fromISO(e,n){const[r,i]=(e||"").split("/",2);if(r&&i){let o,a;try{o=re.fromISO(r,n),a=o.isValid}catch{a=!1}let s,l;try{s=re.fromISO(i,n),l=s.isValid}catch{l=!1}if(a&&l)return $e.fromDateTimes(o,s);if(a){const c=fe.fromISO(i,n);if(c.isValid)return $e.after(o,c)}else if(l){const c=fe.fromISO(r,n);if(c.isValid)return $e.before(s,c)}}return $e.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?$e.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(mi).filter(a=>this.contains(a)).sort(),r=[];let{s:i}=this,o=0;for(;i<this.e;){const a=n[o]||this.e,s=+a>+this.e?this.e:a;r.push($e.fromDateTimes(i,s)),i=s,o+=1}return r}splitBy(e){const n=fe.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,o;const a=[];for(;r<this.e;){const s=this.start.plus(n.mapUnits(l=>l*i));o=+s>+this.e?this.e:s,a.push($e.fromDateTimes(r,o)),r=o,i+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:$e.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return $e.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((i,o)=>i.s-o.s).reduce(([i,o],a)=>o?o.overlaps(a)||o.abutsStart(a)?[i,o.union(a)]:[i.concat([o]),a]:[i,a],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const i=[],o=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),a=Array.prototype.concat(...o),s=a.sort((l,c)=>l.time-c.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&i.push($e.fromDateTimes(n,l.time)),n=null);return $e.merge(i)}difference(...e){return $e.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Hr}toLocaleString(e=Bo,n={}){return this.isValid?an.create(this.s.loc.clone(n),e).formatInterval(this):Hr}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Hr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Hr}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Hr}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:Hr}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):fe.invalid(this.invalidReason)}mapEndpoints(e){return $e.fromDateTimes(e(this.s),e(this.e))}}class ao{static hasDST(e=He.defaultZone){const n=re.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return Mn.isValidZone(e)}static normalizeZone(e){return jn(e,He.defaultZone)}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Pe.create(n,r,o)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Pe.create(n,r,o)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||Pe.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||Pe.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Pe.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return Pe.create(n,null,"gregory").eras(e)}static features(){return{relative:mh()}}}function fu(t,e){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(fe.fromMillis(r).as("days"))}function pv(t,e,n){const r=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=fu(l,c);return(u-u%7)/7}],["days",fu]],i={},o=t;let a,s;for(const[l,c]of r)n.indexOf(l)>=0&&(a=l,i[l]=c(t,e),s=o.plus(i),s>e?(i[l]--,t=o.plus(i),t>e&&(s=t,i[l]--,t=o.plus(i))):t=s);return[t,i,s,a]}function gv(t,e,n,r){let[i,o,a,s]=pv(t,e,n);const l=e-i,c=n.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);c.length===0&&(a<e&&(a=i.plus({[s]:1})),a!==i&&(o[s]=(o[s]||0)+l/(a-i)));const u=fe.fromObject(o,r);return c.length>0?fe.fromMillis(l,r).shiftTo(...c).plus(u):u}const Vl={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},hu={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},mv=Vl.hanidec.replace(/[\[|\]]/g,"").split("");function vv(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(Vl.hanidec)!==-1)e+=mv.indexOf(t[n]);else for(const i in hu){const[o,a]=hu[i];r>=o&&r<=a&&(e+=r-o)}}return parseInt(e,10)}else return e}function Zt({numberingSystem:t},e=""){return new RegExp(`${Vl[t||"latn"]}${e}`)}const bv="missing Intl.DateTimeFormat.formatToParts support";function me(t,e=n=>n){return{regex:t,deser:([n])=>e(vv(n))}}const xv=String.fromCharCode(160),Rh=`[ ${xv}]`,Mh=new RegExp(Rh,"g");function yv(t){return t.replace(/\./g,"\\.?").replace(Mh,Rh)}function pu(t){return t.replace(/\./g,"").replace(Mh," ").toLowerCase()}function Jt(t,e){return t===null?null:{regex:RegExp(t.map(yv).join("|")),deser:([n])=>t.findIndex(r=>pu(n)===pu(r))+e}}function gu(t,e){return{regex:t,deser:([,n,r])=>ca(n,r),groups:e}}function so(t){return{regex:t,deser:([e])=>e}}function wv(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function _v(t,e){const n=Zt(e),r=Zt(e,"{2}"),i=Zt(e,"{3}"),o=Zt(e,"{4}"),a=Zt(e,"{6}"),s=Zt(e,"{1,2}"),l=Zt(e,"{1,3}"),c=Zt(e,"{1,6}"),u=Zt(e,"{1,9}"),d=Zt(e,"{2,4}"),f=Zt(e,"{4,6}"),h=b=>({regex:RegExp(wv(b.val)),deser:([m])=>m,literal:!0}),g=(b=>{if(t.literal)return h(b);switch(b.val){case"G":return Jt(e.eras("short"),0);case"GG":return Jt(e.eras("long"),0);case"y":return me(c);case"yy":return me(d,Rs);case"yyyy":return me(o);case"yyyyy":return me(f);case"yyyyyy":return me(a);case"M":return me(s);case"MM":return me(r);case"MMM":return Jt(e.months("short",!0),1);case"MMMM":return Jt(e.months("long",!0),1);case"L":return me(s);case"LL":return me(r);case"LLL":return Jt(e.months("short",!1),1);case"LLLL":return Jt(e.months("long",!1),1);case"d":return me(s);case"dd":return me(r);case"o":return me(l);case"ooo":return me(i);case"HH":return me(r);case"H":return me(s);case"hh":return me(r);case"h":return me(s);case"mm":return me(r);case"m":return me(s);case"q":return me(s);case"qq":return me(r);case"s":return me(s);case"ss":return me(r);case"S":return me(l);case"SSS":return me(i);case"u":return so(u);case"uu":return so(s);case"uuu":return me(n);case"a":return Jt(e.meridiems(),0);case"kkkk":return me(o);case"kk":return me(d,Rs);case"W":return me(s);case"WW":return me(r);case"E":case"c":return me(n);case"EEE":return Jt(e.weekdays("short",!1),1);case"EEEE":return Jt(e.weekdays("long",!1),1);case"ccc":return Jt(e.weekdays("short",!0),1);case"cccc":return Jt(e.weekdays("long",!0),1);case"Z":case"ZZ":return gu(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return gu(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return so(/[a-z_+-/]{1,256}?/i);case" ":return so(/[^\S\n\r]/);default:return h(b)}})(t)||{invalidReason:bv};return g.token=t,g}const Ev={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Av(t,e,n){const{type:r,value:i}=t;if(r==="literal"){const l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}const o=e[r];let a=r;r==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let s=Ev[a];if(typeof s=="object"&&(s=s[o]),s)return{literal:!1,val:s}}function kv(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function Cv(t,e,n){const r=t.match(e);if(r){const i={};let o=1;for(const a in n)if(ti(n,a)){const s=n[a],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(o,o+l))),o+=l}return[r,i]}else return[r,{}]}function Sv(t){const e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return le(t.z)||(n=Mn.create(t.z)),le(t.Z)||(n||(n=new wt(t.Z)),r=t.Z),le(t.q)||(t.M=(t.q-1)*3+1),le(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),le(t.u)||(t.S=Ml(t.u)),[Object.keys(t).reduce((o,a)=>{const s=e(a);return s&&(o[s]=t[a]),o},{}),n,r]}let Ba=null;function Iv(){return Ba||(Ba=re.fromMillis(1555555555555)),Ba}function Tv(t,e){if(t.literal)return t;const n=an.macroTokenToFormatOpts(t.val),r=Bh(n,e);return r==null||r.includes(void 0)?t:r}function Lh(t,e){return Array.prototype.concat(...t.map(n=>Tv(n,e)))}function Fh(t,e,n){const r=Lh(an.parseFormat(n),t),i=r.map(a=>_v(a,t)),o=i.find(a=>a.invalidReason);if(o)return{input:e,tokens:r,invalidReason:o.invalidReason};{const[a,s]=kv(i),l=RegExp(a,"i"),[c,u]=Cv(e,l,s),[d,f,h]=u?Sv(u):[null,null,void 0];if(ti(u,"a")&&ti(u,"H"))throw new _i("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:l,rawMatches:c,matches:u,result:d,zone:f,specificOffset:h}}}function Ov(t,e,n){const{result:r,zone:i,specificOffset:o,invalidReason:a}=Fh(t,e,n);return[r,i,o,a]}function Bh(t,e){if(!t)return null;const r=an.create(e,t).dtFormatter(Iv()),i=r.formatToParts(),o=r.resolvedOptions();return i.map(a=>Av(a,t,o))}const $h=[0,31,59,90,120,151,181,212,243,273,304,334],Vh=[0,31,60,91,121,152,182,213,244,274,305,335];function Wt(t,e){return new ln("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Uh(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function Hh(t,e,n){return n+(qi(t)?Vh:$h)[e-1]}function zh(t,e){const n=qi(t)?Vh:$h,r=n.findIndex(o=>o<e),i=e-n[r];return{month:r+1,day:i}}function Ms(t){const{year:e,month:n,day:r}=t,i=Hh(e,n,r),o=Uh(e,n,r);let a=Math.floor((i-o+10)/7),s;return a<1?(s=e-1,a=Vo(s)):a>Vo(e)?(s=e+1,a=1):s=e,{weekYear:s,weekNumber:a,weekday:o,...ua(t)}}function mu(t){const{weekYear:e,weekNumber:n,weekday:r}=t,i=Uh(e,1,4),o=Oi(e);let a=n*7+r-i-3,s;a<1?(s=e-1,a+=Oi(s)):a>o?(s=e+1,a-=Oi(e)):s=e;const{month:l,day:c}=zh(s,a);return{year:s,month:l,day:c,...ua(t)}}function $a(t){const{year:e,month:n,day:r}=t,i=Hh(e,n,r);return{year:e,ordinal:i,...ua(t)}}function vu(t){const{year:e,ordinal:n}=t,{month:r,day:i}=zh(e,n);return{year:e,month:r,day:i,...ua(t)}}function Dv(t){const e=sa(t.weekYear),n=Nn(t.weekNumber,1,Vo(t.weekYear)),r=Nn(t.weekday,1,7);return e?n?r?!1:Wt("weekday",t.weekday):Wt("week",t.week):Wt("weekYear",t.weekYear)}function Nv(t){const e=sa(t.year),n=Nn(t.ordinal,1,Oi(t.year));return e?n?!1:Wt("ordinal",t.ordinal):Wt("year",t.year)}function Wh(t){const e=sa(t.year),n=Nn(t.month,1,12),r=Nn(t.day,1,$o(t.year,t.month));return e?n?r?!1:Wt("day",t.day):Wt("month",t.month):Wt("year",t.year)}function Gh(t){const{hour:e,minute:n,second:r,millisecond:i}=t,o=Nn(e,0,23)||e===24&&n===0&&r===0&&i===0,a=Nn(n,0,59),s=Nn(r,0,59),l=Nn(i,0,999);return o?a?s?l?!1:Wt("millisecond",i):Wt("second",r):Wt("minute",n):Wt("hour",e)}const Va="Invalid DateTime",bu=864e13;function lo(t){return new ln("unsupported zone",`the zone "${t.name}" is not supported`)}function Ua(t){return t.weekData===null&&(t.weekData=Ms(t.c)),t.weekData}function sr(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new re({...n,...e,old:n})}function jh(t,e,n){let r=t-e*60*1e3;const i=n.offset(r);if(e===i)return[r,e];r-=(i-e)*60*1e3;const o=n.offset(r);return i===o?[r,i]:[t-Math.min(i,o)*60*1e3,Math.max(i,o)]}function co(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Do(t,e,n){return jh(la(t),e,n)}function xu(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...t.c,year:r,month:i,day:Math.min(t.c.day,$o(r,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=fe.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=la(o);let[l,c]=jh(s,n,t.zone);return a!==0&&(l+=a,c=t.zone.offset(l)),{ts:l,o:c}}function gi(t,e,n,r,i,o){const{setZone:a,zone:s}=n;if(t&&Object.keys(t).length!==0||e){const l=e||s,c=re.fromObject(t,{...n,zone:l,specificOffset:o});return a?c:c.setZone(s)}else return re.invalid(new ln("unparsable",`the input "${i}" can't be parsed as ${r}`))}function uo(t,e,n=!0){return t.isValid?an.create(Pe.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Ha(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=ze(t.c.year,n?6:4),e?(r+="-",r+=ze(t.c.month),r+="-",r+=ze(t.c.day)):(r+=ze(t.c.month),r+=ze(t.c.day)),r}function yu(t,e,n,r,i,o){let a=ze(t.c.hour);return e?(a+=":",a+=ze(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(a+=":")):a+=ze(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(a+=ze(t.c.second),(t.c.millisecond!==0||!r)&&(a+=".",a+=ze(t.c.millisecond,3))),i&&(t.isOffsetFixed&&t.offset===0&&!o?a+="Z":t.o<0?(a+="-",a+=ze(Math.trunc(-t.o/60)),a+=":",a+=ze(Math.trunc(-t.o%60))):(a+="+",a+=ze(Math.trunc(t.o/60)),a+=":",a+=ze(Math.trunc(t.o%60)))),o&&(a+="["+t.zone.ianaName+"]"),a}const Yh={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Pv={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Rv={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Xh=["year","month","day","hour","minute","second","millisecond"],Mv=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Lv=["year","ordinal","hour","minute","second","millisecond"];function wu(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Kf(t);return e}function _u(t,e){const n=jn(e.zone,He.defaultZone),r=Pe.fromObject(e),i=He.now();let o,a;if(le(t.year))o=i;else{for(const c of Xh)le(t[c])&&(t[c]=Yh[c]);const s=Wh(t)||Gh(t);if(s)return re.invalid(s);const l=n.offset(i);[o,a]=Do(t,l,n)}return new re({ts:o,zone:n,loc:r,o:a})}function Eu(t,e,n){const r=le(n.round)?!0:n.round,i=(a,s)=>(a=Ll(a,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(a,s)),o=a=>n.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(n.unit)return i(o(n.unit),n.unit);for(const a of n.units){const s=o(a);if(Math.abs(s)>=1)return i(s,a)}return i(t>e?-0:0,n.units[n.units.length-1])}function Au(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class re{constructor(e){const n=e.zone||He.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new ln("invalid input"):null)||(n.isValid?null:lo(n));this.ts=le(e.ts)?He.now():e.ts;let i=null,o=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[i,o]=[e.old.c,e.old.o];else{const s=n.offset(this.ts);i=co(this.ts,s),r=Number.isNaN(i.year)?new ln("invalid input"):null,i=r?null:i,o=r?null:s}this._zone=n,this.loc=e.loc||Pe.create(),this.invalid=r,this.weekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new re({})}static local(){const[e,n]=Au(arguments),[r,i,o,a,s,l,c]=n;return _u({year:r,month:i,day:o,hour:a,minute:s,second:l,millisecond:c},e)}static utc(){const[e,n]=Au(arguments),[r,i,o,a,s,l,c]=n;return e.zone=wt.utcInstance,_u({year:r,month:i,day:o,hour:a,minute:s,second:l,millisecond:c},e)}static fromJSDate(e,n={}){const r=um(e)?e.valueOf():NaN;if(Number.isNaN(r))return re.invalid("invalid input");const i=jn(n.zone,He.defaultZone);return i.isValid?new re({ts:r,zone:i,loc:Pe.fromObject(n)}):re.invalid(lo(i))}static fromMillis(e,n={}){if(wr(e))return e<-bu||e>bu?re.invalid("Timestamp out of range"):new re({ts:e,zone:jn(n.zone,He.defaultZone),loc:Pe.fromObject(n)});throw new zt(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(wr(e))return new re({ts:e*1e3,zone:jn(n.zone,He.defaultZone),loc:Pe.fromObject(n)});throw new zt("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=jn(n.zone,He.defaultZone);if(!r.isValid)return re.invalid(lo(r));const i=He.now(),o=le(n.specificOffset)?r.offset(i):n.specificOffset,a=Uo(e,wu),s=!le(a.ordinal),l=!le(a.year),c=!le(a.month)||!le(a.day),u=l||c,d=a.weekYear||a.weekNumber,f=Pe.fromObject(n);if((u||s)&&d)throw new _i("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new _i("Can't mix ordinal dates with month/day");const h=d||a.weekday&&!u;let p,g,b=co(i,o);h?(p=Mv,g=Pv,b=Ms(b)):s?(p=Lv,g=Rv,b=$a(b)):(p=Xh,g=Yh);let m=!1;for(const N of p){const D=a[N];le(D)?m?a[N]=g[N]:a[N]=b[N]:m=!0}const v=h?Dv(a):s?Nv(a):Wh(a),w=v||Gh(a);if(w)return re.invalid(w);const y=h?mu(a):s?vu(a):a,[C,E]=Do(y,o,r),k=new re({ts:C,zone:r,o:E,loc:f});return a.weekday&&u&&e.weekday!==k.weekday?re.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${k.toISO()}`):k}static fromISO(e,n={}){const[r,i]=Qm(e);return gi(r,i,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,i]=ev(e);return gi(r,i,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,i]=tv(e);return gi(r,i,n,"HTTP",n)}static fromFormat(e,n,r={}){if(le(e)||le(n))throw new zt("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:o=null}=r,a=Pe.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[s,l,c,u]=Ov(a,e,n);return u?re.invalid(u):gi(s,l,r,`format ${n}`,e,c)}static fromString(e,n,r={}){return re.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,i]=lv(e);return gi(r,i,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new zt("need to specify a reason the DateTime is invalid");const r=e instanceof ln?e:new ln(e,n);if(He.throwOnInvalid)throw new U1(r);return new re({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=Bh(e,Pe.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(e,n={}){return Lh(an.parseFormat(e),Pe.fromObject(n)).map(i=>i.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ua(this).weekYear:NaN}get weekNumber(){return this.isValid?Ua(this).weekNumber:NaN}get weekday(){return this.isValid?Ua(this).weekday:NaN}get ordinal(){return this.isValid?$a(this.c).ordinal:NaN}get monthShort(){return this.isValid?ao.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ao.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ao.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ao.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,r=la(this.c),i=this.zone.offset(r-e),o=this.zone.offset(r+e),a=this.zone.offset(r-i*n),s=this.zone.offset(r-o*n);if(a===s)return[this];const l=r-a*n,c=r-s*n,u=co(l,a),d=co(c,s);return u.hour===d.hour&&u.minute===d.minute&&u.second===d.second&&u.millisecond===d.millisecond?[sr(this,{ts:l}),sr(this,{ts:c})]:[this]}get isInLeapYear(){return qi(this.year)}get daysInMonth(){return $o(this.year,this.month)}get daysInYear(){return this.isValid?Oi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Vo(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:i}=an.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(e=0,n={}){return this.setZone(wt.instance(e),n)}toLocal(){return this.setZone(He.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=jn(e,He.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(n||r){const o=e.offset(this.ts),a=this.toObject();[i]=Do(a,o,e)}return sr(this,{ts:i,zone:e})}else return re.invalid(lo(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return sr(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Uo(e,wu),r=!le(n.weekYear)||!le(n.weekNumber)||!le(n.weekday),i=!le(n.ordinal),o=!le(n.year),a=!le(n.month)||!le(n.day),s=o||a,l=n.weekYear||n.weekNumber;if((s||i)&&l)throw new _i("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&i)throw new _i("Can't mix ordinal dates with month/day");let c;r?c=mu({...Ms(this.c),...n}):le(n.ordinal)?(c={...this.toObject(),...n},le(n.day)&&(c.day=Math.min($o(c.year,c.month),c.day))):c=vu({...$a(this.c),...n});const[u,d]=Do(c,this.o,this.zone);return sr(this,{ts:u,o:d})}plus(e){if(!this.isValid)return this;const n=fe.fromDurationLike(e);return sr(this,xu(this,n))}minus(e){if(!this.isValid)return this;const n=fe.fromDurationLike(e).negate();return sr(this,xu(this,n))}startOf(e){if(!this.isValid)return this;const n={},r=fe.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,n={}){return this.isValid?an.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):Va}toLocaleString(e=Bo,n={}){return this.isValid?an.create(this.loc.clone(n),e).formatDateTime(this):Va}toLocaleParts(e={}){return this.isValid?an.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const a=e==="extended";let s=Ha(this,a);return s+="T",s+=yu(this,a,n,r,i,o),s}toISODate({format:e="extended"}={}){return this.isValid?Ha(this,e==="extended"):null}toISOWeekDate(){return uo(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:o=!1,format:a="extended"}={}){return this.isValid?(i?"T":"")+yu(this,a==="extended",n,e,r,o):null}toRFC2822(){return uo(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return uo(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Ha(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||e)&&(r&&(i+=" "),n?i+="z":e&&(i+="ZZ")),uo(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Va}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return fe.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=dm(n).map(fe.normalizeUnit),a=e.valueOf()>this.valueOf(),s=a?this:e,l=a?e:this,c=gv(s,l,o,i);return a?c.negate():c}diffNow(e="milliseconds",n={}){return this.diff(re.now(),e,n)}until(e){return this.isValid?$e.fromDateTimes(this,e):this}hasSame(e,n){if(!this.isValid)return!1;const r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n)<=r&&r<=i.endOf(n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||re.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let i=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(i=e.unit,o=void 0),Eu(n,this.plus(r),{...e,numeric:"always",units:i,unit:o})}toRelativeCalendar(e={}){return this.isValid?Eu(e.base||re.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(re.isDateTime))throw new zt("min requires all arguments be DateTimes");return su(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(re.isDateTime))throw new zt("max requires all arguments be DateTimes");return su(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:i=null,numberingSystem:o=null}=r,a=Pe.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return Fh(a,e,n)}static fromStringExplain(e,n,r={}){return re.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return Bo}static get DATE_MED(){return Zf}static get DATE_MED_WITH_WEEKDAY(){return W1}static get DATE_FULL(){return Jf}static get DATE_HUGE(){return Qf}static get TIME_SIMPLE(){return eh}static get TIME_WITH_SECONDS(){return th}static get TIME_WITH_SHORT_OFFSET(){return nh}static get TIME_WITH_LONG_OFFSET(){return rh}static get TIME_24_SIMPLE(){return ih}static get TIME_24_WITH_SECONDS(){return oh}static get TIME_24_WITH_SHORT_OFFSET(){return ah}static get TIME_24_WITH_LONG_OFFSET(){return sh}static get DATETIME_SHORT(){return lh}static get DATETIME_SHORT_WITH_SECONDS(){return ch}static get DATETIME_MED(){return uh}static get DATETIME_MED_WITH_SECONDS(){return dh}static get DATETIME_MED_WITH_WEEKDAY(){return G1}static get DATETIME_FULL(){return fh}static get DATETIME_FULL_WITH_SECONDS(){return hh}static get DATETIME_HUGE(){return ph}static get DATETIME_HUGE_WITH_SECONDS(){return gh}}function mi(t){if(re.isDateTime(t))return t;if(t&&t.valueOf&&wr(t.valueOf()))return re.fromJSDate(t);if(t&&typeof t=="object")return re.fromObject(t);throw new zt(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const Ul=Rl("userAuth",{state:()=>({token:{value:"",expiration:void 0},oms:""}),getters:{getToken:t=>t.token,getOms:t=>t.oms,isAuthenticated:t=>{let e=!1;if(t.token.expiration){const n=re.now().toMillis();e=t.token.expiration<n}return t.token.value&&!e}},persist:!0});const Fv={class:"section-header"},Bv={class:"overline"},$v={class:"overline"},Vv=x.defineComponent({__name:"AppVersionInfo",setup(t){const e=process.env.VUE_APP_VERSION_INFO?JSON.parse(process.env.VUE_APP_VERSION_INFO):{},n=e.branch?e.branch+"-"+e.revision:e.tag,r=i=>re.fromMillis(i).toLocaleString(re.DATETIME_MED);return(i,o)=>(x.openBlock(),x.createElementBlock("div",Fv,[x.createElementVNode("div",null,[x.createElementVNode("h1",null,x.toDisplayString(i.$t("App")),1),x.createElementVNode("p",Bv,x.toDisplayString("Version: "+x.unref(n)),1)]),x.createElementVNode("p",$v,x.toDisplayString("Built: "+r(x.unref(e).builtTime)),1)]))}}),Wr={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let Gr,qh,da,Kh=!1,Ho=!1,Hl=!1,Dt=!1,ku=null,Ls=!1;const Zh=t=>{const e=new URL(t,ft.$resourcesUrl$);return e.origin!==Qi.location.origin?e.href:e.pathname},Ar=(t,e="")=>()=>{},Cu="http://www.w3.org/1999/xlink",Su={},Uv="http://www.w3.org/2000/svg",Hv="http://www.w3.org/1999/xhtml",zv=t=>t!=null,zl=t=>(t=typeof t,t==="object"||t==="function");function Wv(t){var e,n,r;return(r=(n=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&r!==void 0?r:void 0}const I=(t,e,...n)=>{let r=null,i=null,o=null,a=!1,s=!1;const l=[],c=d=>{for(let f=0;f<d.length;f++)r=d[f],Array.isArray(r)?c(r):r!=null&&typeof r!="boolean"&&((a=typeof t!="function"&&!zl(r))&&(r=String(r)),a&&s?l[l.length-1].$text$+=r:l.push(a?zo(null,r):r),s=a)};if(c(n),e){e.key&&(i=e.key),e.name&&(o=e.name);{const d=e.className||e.class;d&&(e.class=typeof d!="object"?d:Object.keys(d).filter(f=>d[f]).join(" "))}}if(typeof t=="function")return t(e===null?{}:e,l,jv);const u=zo(t,null);return u.$attrs$=e,l.length>0&&(u.$children$=l),u.$key$=i,u.$name$=o,u},zo=(t,e)=>{const n={$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},xe={},Gv=t=>t&&t.$tag$===xe,jv={forEach:(t,e)=>t.map(Iu).forEach(e),map:(t,e)=>t.map(Iu).map(e).map(Yv)},Iu=t=>({vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}),Yv=t=>{if(typeof t.vtag=="function"){const n=Object.assign({},t.vattrs);return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),I(t.vtag,n,...t.vchildren||[])}const e=zo(t.vtag,t.vtext);return e.$attrs$=t.vattrs,e.$children$=t.vchildren,e.$key$=t.vkey,e.$name$=t.vname,e},Xv=t=>_b.map(e=>e(t)).find(e=>!!e),qv=t=>ui(t).$modeName$,Kv=(t,e)=>t!=null&&!zl(t)?e&4?t==="false"?!1:t===""||!!t:e&2?parseFloat(t):e&1?String(t):t:t,Zv=t=>t,te=(t,e,n)=>{const r=Zv(t);return{emit:i=>Jv(r,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:i})}},Jv=(t,e,n)=>{const r=ft.ce(e,n);return t.dispatchEvent(r),r},Tu=new WeakMap,Qv=(t,e,n)=>{let r=Go.get(t);kb&&n?(r=r||new CSSStyleSheet,typeof r=="string"?r=e:r.replaceSync(e)):r=e,Go.set(t,r)},eb=(t,e,n,r)=>{var i;let o=Jh(e,n);const a=Go.get(o);if(t=t.nodeType===11?t:cn,a)if(typeof a=="string"){t=t.head||t;let s=Tu.get(t),l;if(s||Tu.set(t,s=new Set),!s.has(o)){{l=cn.createElement("style"),l.innerHTML=a;const c=(i=ft.$nonce$)!==null&&i!==void 0?i:Wv(cn);c!=null&&l.setAttribute("nonce",c),t.insertBefore(l,t.querySelector("link"))}s&&s.add(o)}}else t.adoptedStyleSheets.includes(a)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,a]);return o},tb=t=>{const e=t.$cmpMeta$,n=t.$hostElement$,r=e.$flags$,i=Ar("attachStyles",e.$tagName$),o=eb(n.shadowRoot?n.shadowRoot:n.getRootNode(),e,t.$modeName$);r&10&&(n["s-sc"]=o,n.classList.add(o+"-h"),r&2&&n.classList.add(o+"-s")),i()},Jh=(t,e)=>"sc-"+(e&&t.$flags$&32?t.$tagName$+"-"+e:t.$tagName$),Ou=(t,e,n,r,i,o)=>{if(n!==r){let a=Ru(t,e),s=e.toLowerCase();if(e==="class"){const l=t.classList,c=Du(n),u=Du(r);l.remove(...c.filter(d=>d&&!u.includes(d))),l.add(...u.filter(d=>d&&!c.includes(d)))}else if(e==="style"){for(const l in n)(!r||r[l]==null)&&(l.includes("-")?t.style.removeProperty(l):t.style[l]="");for(const l in r)(!n||r[l]!==n[l])&&(l.includes("-")?t.style.setProperty(l,r[l]):t.style[l]=r[l])}else if(e!=="key")if(e==="ref")r&&r(t);else if(!t.__lookupSetter__(e)&&e[0]==="o"&&e[1]==="n")e[2]==="-"?e=e.slice(3):Ru(Qi,s)?e=s.slice(2):e=s[2]+e.slice(3),n&&ft.rel(t,e,n,!1),r&&ft.ael(t,e,r,!1);else{const l=zl(r);if((a||l&&r!==null)&&!i)try{if(t.tagName.includes("-"))t[e]=r;else{const u=r??"";e==="list"?a=!1:(n==null||t[e]!=u)&&(t[e]=u)}}catch{}let c=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(e=s,c=!0),r==null||r===!1?(r!==!1||t.getAttribute(e)==="")&&(c?t.removeAttributeNS(Cu,e):t.removeAttribute(e)):(!a||o&4||i)&&!l&&(r=r===!0?"":r,c?t.setAttributeNS(Cu,e,r):t.setAttribute(e,r))}}},nb=/\s/,Du=t=>t?t.split(nb):[],Qh=(t,e,n,r)=>{const i=e.$elm$.nodeType===11&&e.$elm$.host?e.$elm$.host:e.$elm$,o=t&&t.$attrs$||Su,a=e.$attrs$||Su;for(r in o)r in a||Ou(i,r,o[r],void 0,n,e.$flags$);for(r in a)Ou(i,r,o[r],a[r],n,e.$flags$)},Wo=(t,e,n,r)=>{const i=e.$children$[n];let o=0,a,s,l;if(Kh||(Hl=!0,i.$tag$==="slot"&&(Gr&&r.classList.add(Gr+"-s"),i.$flags$|=i.$children$?2:1)),i.$text$!==null)a=i.$elm$=cn.createTextNode(i.$text$);else if(i.$flags$&1)a=i.$elm$=cn.createTextNode("");else{if(Dt||(Dt=i.$tag$==="svg"),a=i.$elm$=cn.createElementNS(Dt?Uv:Hv,i.$flags$&2?"slot-fb":i.$tag$),Dt&&i.$tag$==="foreignObject"&&(Dt=!1),Qh(null,i,Dt),zv(Gr)&&a["s-si"]!==Gr&&a.classList.add(a["s-si"]=Gr),i.$children$)for(o=0;o<i.$children$.length;++o)s=Wo(t,i,o,a),s&&a.appendChild(s);i.$tag$==="svg"?Dt=!1:a.tagName==="foreignObject"&&(Dt=!0)}return a["s-hn"]=da,i.$flags$&3&&(a["s-sr"]=!0,a["s-cr"]=qh,a["s-sn"]=i.$name$||"",l=t&&t.$children$&&t.$children$[n],l&&l.$tag$===i.$tag$&&t.$elm$&&Li(t.$elm$,!1)),a},Li=(t,e)=>{ft.$flags$|=1;const n=t.childNodes;for(let r=n.length-1;r>=0;r--){const i=n[r];i["s-hn"]!==da&&i["s-ol"]&&(n0(i).insertBefore(i,Wl(i)),i["s-ol"].remove(),i["s-ol"]=void 0,Hl=!0),e&&Li(i,e)}ft.$flags$&=-2},e0=(t,e,n,r,i,o)=>{let a=t["s-cr"]&&t["s-cr"].parentNode||t,s;for(a.shadowRoot&&a.tagName===da&&(a=a.shadowRoot);i<=o;++i)r[i]&&(s=Wo(null,n,i,t),s&&(r[i].$elm$=s,a.insertBefore(s,Wl(e))))},t0=(t,e,n,r,i)=>{for(;e<=n;++e)(r=t[e])&&(i=r.$elm$,o0(r),Ho=!0,i["s-ol"]?i["s-ol"].remove():Li(i,!0),i.remove())},rb=(t,e,n,r)=>{let i=0,o=0,a=0,s=0,l=e.length-1,c=e[0],u=e[l],d=r.length-1,f=r[0],h=r[d],p,g;for(;i<=l&&o<=d;)if(c==null)c=e[++i];else if(u==null)u=e[--l];else if(f==null)f=r[++o];else if(h==null)h=r[--d];else if(fo(c,f))jr(c,f),c=e[++i],f=r[++o];else if(fo(u,h))jr(u,h),u=e[--l],h=r[--d];else if(fo(c,h))(c.$tag$==="slot"||h.$tag$==="slot")&&Li(c.$elm$.parentNode,!1),jr(c,h),t.insertBefore(c.$elm$,u.$elm$.nextSibling),c=e[++i],h=r[--d];else if(fo(u,f))(c.$tag$==="slot"||h.$tag$==="slot")&&Li(u.$elm$.parentNode,!1),jr(u,f),t.insertBefore(u.$elm$,c.$elm$),u=e[--l],f=r[++o];else{for(a=-1,s=i;s<=l;++s)if(e[s]&&e[s].$key$!==null&&e[s].$key$===f.$key$){a=s;break}a>=0?(g=e[a],g.$tag$!==f.$tag$?p=Wo(e&&e[o],n,a,t):(jr(g,f),e[a]=void 0,p=g.$elm$),f=r[++o]):(p=Wo(e&&e[o],n,o,t),f=r[++o]),p&&n0(c.$elm$).insertBefore(p,Wl(c.$elm$))}i>l?e0(t,r[d+1]==null?null:r[d+1].$elm$,n,r,o,d):o>d&&t0(e,i,l)},fo=(t,e)=>t.$tag$===e.$tag$?t.$tag$==="slot"?t.$name$===e.$name$:t.$key$===e.$key$:!1,Wl=t=>t&&t["s-ol"]||t,n0=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,jr=(t,e)=>{const n=e.$elm$=t.$elm$,r=t.$children$,i=e.$children$,o=e.$tag$,a=e.$text$;let s;a===null?(Dt=o==="svg"?!0:o==="foreignObject"?!1:Dt,o==="slot"||Qh(t,e,Dt),r!==null&&i!==null?rb(n,r,e,i):i!==null?(t.$text$!==null&&(n.textContent=""),e0(n,null,e,i,0,i.length-1)):r!==null&&t0(r,0,r.length-1),Dt&&o==="svg"&&(Dt=!1)):(s=n["s-cr"])?s.parentNode.textContent=a:t.$text$!==a&&(n.data=a)},r0=t=>{const e=t.childNodes;let n,r,i,o,a,s;for(r=0,i=e.length;r<i;r++)if(n=e[r],n.nodeType===1){if(n["s-sr"]){for(a=n["s-sn"],n.hidden=!1,o=0;o<i;o++)if(s=e[o].nodeType,e[o]["s-hn"]!==n["s-hn"]||a!==""){if(s===1&&a===e[o].getAttribute("slot")){n.hidden=!0;break}}else if(s===1||s===3&&e[o].textContent.trim()!==""){n.hidden=!0;break}}r0(n)}},rn=[],i0=t=>{let e,n,r,i,o,a,s=0;const l=t.childNodes,c=l.length;for(;s<c;s++){if(e=l[s],e["s-sr"]&&(n=e["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,i=e["s-sn"],a=r.length-1;a>=0;a--)n=r[a],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==e["s-hn"]&&(Nu(n,i)?(o=rn.find(u=>u.$nodeToRelocate$===n),Ho=!0,n["s-sn"]=n["s-sn"]||i,o?o.$slotRefNode$=e:rn.push({$slotRefNode$:e,$nodeToRelocate$:n}),n["s-sr"]&&rn.map(u=>{Nu(u.$nodeToRelocate$,n["s-sn"])&&(o=rn.find(d=>d.$nodeToRelocate$===n),o&&!u.$slotRefNode$&&(u.$slotRefNode$=o.$slotRefNode$))})):rn.some(u=>u.$nodeToRelocate$===n)||rn.push({$nodeToRelocate$:n}));e.nodeType===1&&i0(e)}},Nu=(t,e)=>t.nodeType===1?t.getAttribute("slot")===null&&e===""||t.getAttribute("slot")===e:t["s-sn"]===e?!0:e==="",o0=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(o0)},ib=(t,e)=>{const n=t.$hostElement$,r=t.$cmpMeta$,i=t.$vnode$||zo(null,null),o=Gv(e)?e:I(null,null,e);da=n.tagName,r.$attrsToReflect$&&(o.$attrs$=o.$attrs$||{},r.$attrsToReflect$.map(([a,s])=>o.$attrs$[s]=n[a])),o.$tag$=null,o.$flags$|=4,t.$vnode$=o,o.$elm$=i.$elm$=n.shadowRoot||n,Gr=n["s-sc"],qh=n["s-cr"],Kh=(r.$flags$&1)!==0,Ho=!1,jr(i,o);{if(ft.$flags$|=1,Hl){i0(o.$elm$);let a,s,l,c,u,d,f=0;for(;f<rn.length;f++)a=rn[f],s=a.$nodeToRelocate$,s["s-ol"]||(l=cn.createTextNode(""),l["s-nr"]=s,s.parentNode.insertBefore(s["s-ol"]=l,s));for(f=0;f<rn.length;f++)if(a=rn[f],s=a.$nodeToRelocate$,a.$slotRefNode$){for(c=a.$slotRefNode$.parentNode,u=a.$slotRefNode$.nextSibling,l=s["s-ol"];l=l.previousSibling;)if(d=l["s-nr"],d&&d["s-sn"]===s["s-sn"]&&c===d.parentNode&&(d=d.nextSibling,!d||!d["s-nr"])){u=d;break}(!u&&c!==s.parentNode||s.nextSibling!==u)&&s!==u&&(!s["s-hn"]&&s["s-ol"]&&(s["s-hn"]=s["s-ol"].parentNode.nodeName),c.insertBefore(s,u))}else s.nodeType===1&&(s.hidden=!0)}Ho&&r0(o.$elm$),ft.$flags$&=-2,rn.length=0}},ob=(t,e)=>{},Gl=(t,e)=>(t.$flags$|=16,ob(t,t.$ancestorComponent$),ni(()=>ab(t,e))),ab=(t,e)=>{const n=t.$hostElement$,r=Ar("scheduleUpdate",t.$cmpMeta$.$tagName$),i=n;let o;return e?o=ei(i,"componentWillLoad"):o=ei(i,"componentWillUpdate"),o=Pu(o,()=>ei(i,"componentWillRender")),r(),Pu(o,()=>sb(t,i,e))},sb=async(t,e,n)=>{const r=t.$hostElement$,i=Ar("update",t.$cmpMeta$.$tagName$);r["s-rc"],n&&tb(t);const o=Ar("render",t.$cmpMeta$.$tagName$);lb(t,e,r),o(),i(),cb(t)},lb=(t,e,n)=>{try{ku=e,e=e.render&&e.render(),t.$flags$&=-17,t.$flags$|=2,(Wr.hasRenderFn||Wr.reflect)&&(Wr.vdomRender||Wr.reflect)&&(Wr.hydrateServerSide||ib(t,e))}catch(s){Ji(s,t.$hostElement$)}return ku=null,null},cb=t=>{const e=t.$cmpMeta$.$tagName$,n=t.$hostElement$,r=Ar("postUpdate",e),i=n;t.$ancestorComponent$,ei(i,"componentDidRender"),t.$flags$&64?(ei(i,"componentDidUpdate"),r()):(t.$flags$|=64,ei(i,"componentDidLoad"),r())},Fi=t=>{{const e=ui(t),n=e.$hostElement$.isConnected;return n&&(e.$flags$&18)===2&&Gl(e,!1),n}},ei=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(r){Ji(r)}},Pu=(t,e)=>t&&t.then?t.then(e):e(),ub=(t,e)=>ui(t).$instanceValues$.get(e),db=(t,e,n,r)=>{const i=ui(t),o=t,a=i.$instanceValues$.get(e),s=i.$flags$,l=o;n=Kv(n,r.$members$[e][0]);const c=Number.isNaN(a)&&Number.isNaN(n);if(n!==a&&!c){i.$instanceValues$.set(e,n);{if(r.$watchers$&&s&128){const d=r.$watchers$[e];d&&d.map(f=>{try{l[f](n,a,e)}catch(h){Ji(h,o)}})}if((s&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,a,e)===!1)return;Gl(i,!1)}}}},fb=(t,e,n)=>{if(e.$members$){t.watchers&&(e.$watchers$=t.watchers);const r=Object.entries(e.$members$),i=t.prototype;r.map(([o,[a]])=>{(a&31||a&32)&&Object.defineProperty(i,o,{get(){return ub(this,o)},set(s){db(this,o,s,e)},configurable:!0,enumerable:!0})});{const o=new Map;i.attributeChangedCallback=function(a,s,l){ft.jmp(()=>{const c=o.get(a);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(i.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},t.observedAttributes=r.filter(([a,s])=>s[0]&15).map(([a,s])=>{const l=s[1]||a;return o.set(l,a),s[0]&512&&e.$attrsToReflect$.push([a,l]),l})}}return t},hb=async(t,e,n,r,i)=>{if(!(e.$flags$&32)&&(i=t.constructor,e.$flags$|=32,customElements.whenDefined(n.$tagName$).then(()=>e.$flags$|=128),i.style)){let a=i.style;typeof a!="string"&&(a=a[e.$modeName$=Xv(t)]);const s=Jh(n,e.$modeName$);if(!Go.has(s)){const l=Ar("registerStyles",n.$tagName$);Qv(s,a,!!(n.$flags$&1)),l()}}e.$ancestorComponent$,(()=>Gl(e,!0))()},pb=t=>{},gb=t=>{if(!(ft.$flags$&1)){const e=ui(t),n=e.$cmpMeta$,r=Ar("connectedCallback",n.$tagName$);e.$flags$&1?(a0(t,e,n.$listeners$),pb(e.$lazyInstance$)):(e.$flags$|=1,n.$flags$&12&&mb(t),n.$members$&&Object.entries(n.$members$).map(([i,[o]])=>{if(o&31&&t.hasOwnProperty(i)){const a=t[i];delete t[i],t[i]=a}}),hb(t,e,n)),r()}},mb=t=>{const e=t["s-cr"]=cn.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)},vb=t=>{if(!(ft.$flags$&1)){const e=ui(t);e.$rmListeners$&&(e.$rmListeners$.map(n=>n()),e.$rmListeners$=void 0)}},we=(t,e)=>{const n={$flags$:e[0],$tagName$:e[1]};n.$members$=e[2],n.$listeners$=e[3],n.$watchers$=t.$watchers$,n.$attrsToReflect$=[];const r=t.prototype.connectedCallback,i=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__registerHost(){wb(this,n)},connectedCallback(){gb(this),r&&r.call(this)},disconnectedCallback(){vb(this),i&&i.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}),t.is=n.$tagName$,fb(t,n)},a0=(t,e,n,r)=>{n&&n.map(([i,o,a])=>{const s=xb(t,i),l=bb(e,a),c=yb(i);ft.ael(s,o,l,c),(e.$rmListeners$=e.$rmListeners$||[]).push(()=>ft.rel(s,o,l,c))})},bb=(t,e)=>n=>{try{Wr.lazyLoad||t.$hostElement$[e](n)}catch(r){Ji(r)}},xb=(t,e)=>e&4?cn:e&8?Qi:e&16?cn.body:t,yb=t=>Eb?{passive:(t&1)!==0,capture:(t&2)!==0}:(t&2)!==0,s0=new WeakMap,ui=t=>s0.get(t),wb=(t,e)=>{const n={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};return a0(t,n,e.$listeners$),s0.set(t,n)},Ru=(t,e)=>e in t,Ji=(t,e)=>(0,console.error)(t,e),Go=new Map,_b=[],Qi=typeof window<"u"?window:{},cn=Qi.document||{head:{}},_e=Qi.HTMLElement||class{},ft={$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,r)=>t.addEventListener(e,n,r),rel:(t,e,n,r)=>t.removeEventListener(e,n,r),ce:(t,e)=>new CustomEvent(t,e)},Eb=(()=>{let t=!1;try{cn.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Ab=t=>Promise.resolve(t),kb=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),Fs=[],l0=[],c0=(t,e)=>n=>{t.push(n),Ls||(Ls=!0,e&&ft.$flags$&4?Cb(Bs):ft.raf(Bs))},Mu=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(n){Ji(n)}t.length=0},Bs=()=>{Mu(Fs),Mu(l0),(Ls=Fs.length>0)&&ft.raf(Bs)},Cb=t=>Ab().then(t),u0=c0(Fs,!1),ni=c0(l0,!0);/*!
|
|
13
13
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
14
|
-
*/const
|
|
14
|
+
*/const Lu="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144' class='ionicon-fill-none'/></svg>";/*!
|
|
15
15
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
16
|
-
*/class
|
|
16
|
+
*/class Sb{constructor(){this.m=new Map}reset(e){this.m=new Map(Object.entries(e))}get(e,n){const r=this.m.get(e);return r!==void 0?r:n}getBoolean(e,n=!1){const r=this.m.get(e);return r===void 0?n:typeof r=="string"?r==="true":!!r}getNumber(e,n){const r=parseFloat(this.m.get(e));return isNaN(r)?n!==void 0?n:NaN:r}set(e,n){this.m.set(e,n)}}const er=new Sb,Ib=t=>Ob(t),Tb=(t,e)=>(typeof t=="string"&&(e=t,t=void 0),Ib(t).includes(e)),Ob=(t=window)=>{if(typeof t>"u")return[];t.Ionic=t.Ionic||{};let e=t.Ionic.platforms;return e==null&&(e=t.Ionic.platforms=Db(t),e.forEach(n=>t.document.documentElement.classList.add(`plt-${n}`))),e},Db=t=>{const e=er.get("platform");return Object.keys(Fu).filter(n=>{const r=e==null?void 0:e[n];return typeof r=="function"?r(t):Fu[n](t)})},Nb=t=>fa(t)&&!f0(t),jl=t=>!!(kr(t,/iPad/i)||kr(t,/Macintosh/i)&&fa(t)),Pb=t=>kr(t,/iPhone/i),Rb=t=>kr(t,/iPhone|iPod/i)||jl(t),d0=t=>kr(t,/android|sink/i),Mb=t=>d0(t)&&!kr(t,/mobile/i),Lb=t=>{const e=t.innerWidth,n=t.innerHeight,r=Math.min(e,n),i=Math.max(e,n);return r>390&&r<520&&i>620&&i<800},Fb=t=>{const e=t.innerWidth,n=t.innerHeight,r=Math.min(e,n),i=Math.max(e,n);return jl(t)||Mb(t)||r>460&&r<820&&i>780&&i<1400},fa=t=>Ub(t,"(any-pointer:coarse)"),Bb=t=>!fa(t),f0=t=>h0(t)||p0(t),h0=t=>!!(t.cordova||t.phonegap||t.PhoneGap),p0=t=>{const e=t.Capacitor;return!!(e!=null&&e.isNative)},$b=t=>kr(t,/electron/i),Vb=t=>{var e;return!!(!((e=t.matchMedia)===null||e===void 0)&&e.call(t,"(display-mode: standalone)").matches||t.navigator.standalone)},kr=(t,e)=>e.test(t.navigator.userAgent),Ub=(t,e)=>{var n;return(n=t.matchMedia)===null||n===void 0?void 0:n.call(t,e).matches},Fu={ipad:jl,iphone:Pb,ios:Rb,android:d0,phablet:Lb,tablet:Fb,cordova:h0,capacitor:p0,electron:$b,pwa:Vb,mobile:fa,mobileweb:Nb,desktop:Bb,hybrid:f0};let Hb;const ie=t=>t&&qv(t)||Hb;/*!
|
|
17
17
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
18
|
-
*/const
|
|
18
|
+
*/const Yl=(t,e)=>{t.componentOnReady?t.componentOnReady().then(n=>e(n)):We(()=>e(t))},ha=(t,e=[])=>{const n={};return e.forEach(r=>{t.hasAttribute(r)&&(t.getAttribute(r)!==null&&(n[r]=t.getAttribute(r)),t.removeAttribute(r))}),n},zb=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],Wb=(t,e)=>{let n=zb;return e&&e.length>0&&(n=n.filter(r=>!e.includes(r))),ha(t,n)},Xl=(t,e,n,r)=>{var i;if(typeof window<"u"){const o=window,a=(i=o==null?void 0:o.Ionic)===null||i===void 0?void 0:i.config;if(a){const s=a.get("_ael");if(s)return s(t,e,n,r);if(a._ael)return a._ael(t,e,n,r)}}return t.addEventListener(e,n,r)},g0=(t,e,n,r)=>{var i;if(typeof window<"u"){const o=window,a=(i=o==null?void 0:o.Ionic)===null||i===void 0?void 0:i.config;if(a){const s=a.get("_rel");if(s)return s(t,e,n,r);if(a._rel)return a._rel(t,e,n,r)}}return t.removeEventListener(e,n,r)},St=(t,e=t)=>t.shadowRoot||e,We=t=>typeof __zone_symbol__requestAnimationFrame=="function"?__zone_symbol__requestAnimationFrame(t):typeof requestAnimationFrame=="function"?requestAnimationFrame(t):setTimeout(t),m0=t=>!!t.shadowRoot&&!!t.attachShadow,v0=t=>{const e=t.closest("ion-item");return e?e.querySelector("ion-label"):null},b0=t=>{if(t.focus(),t.classList.contains("ion-focusable")){const e=t.closest("ion-app");e&&e.setFocus([t])}},ql=(t,e)=>{let n;const r=t.getAttribute("aria-labelledby"),i=t.id;let o=r!==null&&r.trim()!==""?r:e+"-lbl",a=r!==null&&r.trim()!==""?document.getElementById(r):v0(t);return a?(r===null&&(a.id=o),n=a.textContent,a.setAttribute("aria-hidden","true")):i.trim()!==""&&(a=document.querySelector(`label[for="${i}"]`),a&&(a.id!==""?o=a.id:a.id=o=`${i}-lbl`,n=a.textContent)),{label:a,labelId:o,labelText:n}},Kl=(t,e,n,r,i)=>{if(t||m0(e)){let o=e.querySelector("input.aux-input");o||(o=e.ownerDocument.createElement("input"),o.type="hidden",o.classList.add("aux-input"),e.appendChild(o)),o.disabled=i,o.name=n,o.value=r||""}},jo=(t,e,n)=>Math.max(t,Math.min(e,n));/*!
|
|
19
19
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
20
|
-
*/let
|
|
20
|
+
*/let za;const Gb=()=>{if(typeof window>"u")return new Map;if(!za){const t=window;t.Ionicons=t.Ionicons||{},za=t.Ionicons.map=t.Ionicons.map||new Map}return za},jb=t=>{let e=Wa(t.src);return e||(e=x0(t.name,t.icon,t.mode,t.ios,t.md),e?Yb(e):t.icon&&(e=Wa(t.icon),e||(e=Wa(t.icon[t.mode]),e))?e:null)},Yb=t=>{const e=Gb().get(t);return e||Zh(`svg/${t}.svg`)},x0=(t,e,n,r,i)=>(n=(n&&ho(n))==="ios"?"ios":"md",r&&n==="ios"?t=ho(r):i&&n==="md"?t=ho(i):(!t&&e&&!y0(e)&&(t=e),Yo(t)&&(t=ho(t))),!Yo(t)||t.trim()===""||t.replace(/[a-z]|-|\d/gi,"")!==""?null:t),Wa=t=>Yo(t)&&(t=t.trim(),y0(t))?t:null,y0=t=>t.length>0&&/(\/|\.)/.test(t),Yo=t=>typeof t=="string",ho=t=>t.toLowerCase(),Xb=(t,e=[])=>{const n={};return e.forEach(r=>{t.hasAttribute(r)&&(t.getAttribute(r)!==null&&(n[r]=t.getAttribute(r)),t.removeAttribute(r))}),n},qb=t=>t&&t.dir!==""?t.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",Kb=t=>{const e=document.createElement("div");e.innerHTML=t;for(let r=e.childNodes.length-1;r>=0;r--)e.childNodes[r].nodeName.toLowerCase()!=="svg"&&e.removeChild(e.childNodes[r]);const n=e.firstElementChild;if(n&&n.nodeName.toLowerCase()==="svg"){const r=n.getAttribute("class")||"";if(n.setAttribute("class",(r+" s-ion-icon").trim()),w0(n))return e.innerHTML}return""},w0=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script")return!1;for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;if(Yo(n)&&n.toLowerCase().indexOf("on")===0)return!1}for(let e=0;e<t.childNodes.length;e++)if(!w0(t.childNodes[e]))return!1}return!0},Zb=t=>t.startsWith("data:image/svg+xml"),Jb=t=>t.indexOf(";utf8,")!==-1,mr=new Map,Bu=new Map;let Ga;const Qb=(t,e)=>{let n=Bu.get(t);if(!n)if(typeof fetch<"u"&&typeof document<"u")if(Zb(t)&&Jb(t)){Ga||(Ga=new DOMParser);const i=Ga.parseFromString(t,"text/html").querySelector("svg");return i&&mr.set(t,i.outerHTML),Promise.resolve()}else n=fetch(t).then(r=>{if(r.ok)return r.text().then(i=>{i&&e!==!1&&(i=Kb(i)),mr.set(t,i||"")});mr.set(t,"")}),Bu.set(t,n);else return mr.set(t,""),Promise.resolve();return n},ex=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}:host(.flip-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.icon-small){font-size:18px !important}:host(.icon-large){font-size:32px !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}",tx=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.isVisible=!1,this.mode=nx(),this.lazy=!1,this.sanitize=!0,this.hasAriaHidden=()=>{const{el:t}=this;return t.hasAttribute("aria-hidden")&&t.getAttribute("aria-hidden")==="true"}}componentWillLoad(){this.inheritedAttributes=Xb(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(t,e,n){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const r=this.io=new window.IntersectionObserver(i=>{i[0].isIntersecting&&(r.disconnect(),this.io=void 0,n())},{rootMargin:e});r.observe(t)}else n()}loadIcon(){if(this.isVisible){const e=jb(this);e&&(mr.has(e)?this.svgContent=mr.get(e):Qb(e,this.sanitize).then(()=>this.svgContent=mr.get(e)))}const t=this.iconName=x0(this.name,this.icon,this.mode,this.ios,this.md);t&&(this.ariaLabel=t.replace(/\-/g," "))}render(){const{iconName:t,ariaLabel:e,el:n,inheritedAttributes:r}=this,i=this.mode||"md",o=this.flipRtl||t&&(t.indexOf("arrow")>-1||t.indexOf("chevron")>-1)&&this.flipRtl!==!1;return I(xe,Object.assign({"aria-label":e!==void 0&&!this.hasAriaHidden()?e:null,role:"img",class:Object.assign(Object.assign({[i]:!0},rx(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":!!o&&qb(n)})},r),this.svgContent?I("div",{class:"icon-inner",innerHTML:this.svgContent}):I("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return this}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}static get style(){return ex}},[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32],ariaLabel:[32]}]),nx=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",rx=t=>t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null;function pa(){if(typeof customElements>"u")return;["ion-icon"].forEach(e=>{switch(e){case"ion-icon":customElements.get(e)||customElements.define(e,tx);break}})}/*!
|
|
21
21
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
22
|
-
*/class
|
|
22
|
+
*/class ix{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(e){var n;return new ox(this,this.newID(),e.name,(n=e.priority)!==null&&n!==void 0?n:0,!!e.disableScroll)}createBlocker(e={}){return new ax(this,this.newID(),e.disable,!!e.disableScroll)}start(e,n,r){return this.canStart(e)?(this.requestedStart.set(n,r),!0):(this.requestedStart.delete(n),!1)}capture(e,n,r){if(!this.start(e,n,r))return!1;const i=this.requestedStart;let o=-1e4;if(i.forEach(a=>{o=Math.max(o,a)}),o===r){this.capturedId=n,i.clear();const a=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(a),!0}return i.delete(n),!1}release(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}disableGesture(e,n){let r=this.disabledGestures.get(e);r===void 0&&(r=new Set,this.disabledGestures.set(e,r)),r.add(n)}enableGesture(e,n){const r=this.disabledGestures.get(e);r!==void 0&&r.delete(n)}disableScroll(e){this.disabledScroll.add(e),this.disabledScroll.size===1&&document.body.classList.add($u)}enableScroll(e){this.disabledScroll.delete(e),this.disabledScroll.size===0&&document.body.classList.remove($u)}canStart(e){return!(this.capturedId!==void 0||this.isDisabled(e))}isCaptured(){return this.capturedId!==void 0}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(e){const n=this.disabledGestures.get(e);return!!(n&&n.size>0)}newID(){return this.gestureId++,this.gestureId}}class ox{constructor(e,n,r,i,o){this.id=n,this.name=r,this.disableScroll=o,this.priority=i*1e6+n,this.ctrl=e}canStart(){return this.ctrl?this.ctrl.canStart(this.name):!1}start(){return this.ctrl?this.ctrl.start(this.name,this.id,this.priority):!1}capture(){if(!this.ctrl)return!1;const e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class ax{constructor(e,n,r,i){this.id=n,this.disable=r,this.disableScroll=i,this.ctrl=e}block(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.disableGesture(e,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.enableGesture(e,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const $u="backdrop-no-scroll",_0=new ix;/*!
|
|
23
23
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
24
|
-
*/const
|
|
24
|
+
*/const sx=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",lx=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",cx=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionBackdropTap=te(this,"ionBackdropTap",7),this.blocker=_0.createBlocker({disableScroll:!0}),this.visible=!0,this.tappable=!0,this.stopPropagation=!0}connectedCallback(){this.stopPropagation&&this.blocker.block()}disconnectedCallback(){this.blocker.unblock()}onMouseDown(t){this.emitTap(t)}emitTap(t){this.stopPropagation&&(t.preventDefault(),t.stopPropagation()),this.tappable&&this.ionBackdropTap.emit()}render(){const t=ie(this);return I(xe,{tabindex:"-1","aria-hidden":"true",class:{[t]:!0,"backdrop-hide":!this.visible,"backdrop-no-tappable":!this.tappable}})}static get style(){return{ios:sx,md:lx}}},[33,"ion-backdrop",{visible:[4],tappable:[4],stopPropagation:[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]);function eo(){if(typeof customElements>"u")return;["ion-backdrop"].forEach(e=>{switch(e){case"ion-backdrop":customElements.get(e)||customElements.define(e,cx);break}})}/*!
|
|
25
25
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
26
|
-
*/const
|
|
26
|
+
*/const Pn=(t,e)=>e.closest(t)!==null,Tt=(t,e)=>typeof t=="string"&&t.length>0?Object.assign({"ion-color":!0,[`ion-color-${t}`]:!0},e):e,ux=t=>t!==void 0?(Array.isArray(t)?t:t.split(" ")).filter(n=>n!=null).map(n=>n.trim()).filter(n=>n!==""):[],Yt=t=>{const e={};return ux(t).forEach(n=>e[n]=!0),e},dx=/^[a-z][a-z0-9+\-.]*:/,Zl=async(t,e,n,r)=>{if(t!=null&&t[0]!=="#"&&!dx.test(t)){const i=document.querySelector("ion-router");if(i)return e!=null&&e.preventDefault(),i.push(t,n,r)}return!1};/*!
|
|
27
27
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
28
|
-
*/const
|
|
28
|
+
*/const Yn=(t,...e)=>console.warn(`[Ionic Warning]: ${t}`,...e),fx=(t,...e)=>console.error(`[Ionic Error]: ${t}`,...e),hx=(t,...e)=>console.error(`<${t.tagName.toLowerCase()}> must be used inside ${e.join(" or ")}.`);/*!
|
|
29
29
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
30
|
-
*/const
|
|
30
|
+
*/const px=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}",gx=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.type="bounded"}async addRipple(t,e){return new Promise(n=>{u0(()=>{const r=this.el.getBoundingClientRect(),i=r.width,o=r.height,a=Math.sqrt(i*i+o*o),s=Math.max(o,i),l=this.unbounded?s:a+vx,c=Math.floor(s*bx),u=l/c;let d=t-r.left,f=e-r.top;this.unbounded&&(d=i*.5,f=o*.5);const h=d-c*.5,p=f-c*.5,g=i*.5-d,b=o*.5-f;ni(()=>{const m=document.createElement("div");m.classList.add("ripple-effect");const v=m.style;v.top=p+"px",v.left=h+"px",v.width=v.height=c+"px",v.setProperty("--final-scale",`${u}`),v.setProperty("--translate-end",`${g}px, ${b}px`),(this.el.shadowRoot||this.el).appendChild(m),setTimeout(()=>{n(()=>{mx(m)})},225+100)})})})}get unbounded(){return this.type==="unbounded"}render(){const t=ie(this);return I(xe,{role:"presentation",class:{[t]:!0,unbounded:this.unbounded}})}get el(){return this}static get style(){return px}},[1,"ion-ripple-effect",{type:[1],addRipple:[64]}]),mx=t=>{t.classList.add("fade-out"),setTimeout(()=>{t.remove()},200)},vx=10,bx=.5;function Fr(){if(typeof customElements>"u")return;["ion-ripple-effect"].forEach(e=>{switch(e){case"ion-ripple-effect":customElements.get(e)||customElements.define(e,gx);break}})}/*!
|
|
31
31
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
32
|
-
*/const Zb=':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;display:block;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;display:block;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted(ion-icon){font-size:1.4em;pointer-events:none}::slotted(ion-icon[slot=start]){margin-left:-0.3em;margin-right:0.3em;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}::slotted(ion-icon[slot=end]){margin-left:0.3em;margin-right:-0.2em;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em}}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:10px;--padding-top:0;--padding-bottom:0;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;margin-left:2px;margin-right:2px;margin-top:4px;margin-bottom:4px;height:2.8em;font-size:16px;font-weight:500;letter-spacing:-0.03em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.in-buttons){font-size:17px;font-weight:400}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:10px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #3880ff);--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-activated-opacity:0;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;font-size:17px;font-weight:normal;letter-spacing:0}:host(.button-large){--border-radius:12px;--padding-top:0;--padding-start:1em;--padding-end:1em;--padding-bottom:0;height:2.8em;font-size:20px}:host(.button-small){--border-radius:6px;--padding-top:0;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:0;height:2.1em;font-size:13px}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:not(.ion-activated):hover),:host(.button-outline:not(.ion-activated):hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color):not(.ion-activated)) .button-native::after{background:#fff;opacity:0.1}}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}',Jb=`:host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;display:block;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;display:block;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted(ion-icon){font-size:1.4em;pointer-events:none}::slotted(ion-icon[slot=start]){margin-left:-0.3em;margin-right:0.3em;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}::slotted(ion-icon[slot=end]){margin-left:0.3em;margin-right:-0.2em;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em}}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:4px;--padding-top:0;--padding-bottom:0;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1),
|
|
32
|
+
*/const xx=':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;display:block;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;display:block;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted(ion-icon){font-size:1.4em;pointer-events:none}::slotted(ion-icon[slot=start]){margin-left:-0.3em;margin-right:0.3em;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}::slotted(ion-icon[slot=end]){margin-left:0.3em;margin-right:-0.2em;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em}}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:10px;--padding-top:0;--padding-bottom:0;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;margin-left:2px;margin-right:2px;margin-top:4px;margin-bottom:4px;height:2.8em;font-size:16px;font-weight:500;letter-spacing:-0.03em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.in-buttons){font-size:17px;font-weight:400}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:10px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #3880ff);--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-activated-opacity:0;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;font-size:17px;font-weight:normal;letter-spacing:0}:host(.button-large){--border-radius:12px;--padding-top:0;--padding-start:1em;--padding-end:1em;--padding-bottom:0;height:2.8em;font-size:20px}:host(.button-small){--border-radius:6px;--padding-top:0;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:0;height:2.1em;font-size:13px}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:not(.ion-activated):hover),:host(.button-outline:not(.ion-activated):hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color):not(.ion-activated)) .button-native::after{background:#fff;opacity:0.1}}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}',yx=`:host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;display:block;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;display:block;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted(ion-icon){font-size:1.4em;pointer-events:none}::slotted(ion-icon[slot=start]){margin-left:-0.3em;margin-right:0.3em;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}::slotted(ion-icon[slot=end]){margin-left:0.3em;margin-right:-0.2em;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em}}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:4px;--padding-top:0;--padding-bottom:0;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1),
|
|
33
33
|
background-color 15ms linear,
|
|
34
|
-
color 15ms linear;margin-left:2px;margin-right:2px;margin-top:4px;margin-bottom:4px;height:36px;font-size:14px;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:0;--padding-start:1em;--padding-end:1em;--padding-bottom:0;height:2.8em;font-size:20px}:host(.button-small){--padding-top:0;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:0;height:2.1em;font-size:13px}:host(.button-strong){font-weight:bold}::slotted(ion-icon[slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}`,
|
|
34
|
+
color 15ms linear;margin-left:2px;margin-right:2px;margin-top:4px;margin-bottom:4px;height:36px;font-size:14px;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:0;--padding-start:1em;--padding-end:1em;--padding-bottom:0;height:2.8em;font-size:20px}:host(.button-small){--padding-top:0;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:0;height:2.1em;font-size:13px}:host(.button-strong){font-weight:bold}::slotted(ion-icon[slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}`,wx=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionFocus=te(this,"ionFocus",7),this.ionBlur=te(this,"ionBlur",7),this.inItem=!1,this.inListHeader=!1,this.inToolbar=!1,this.inheritedAttributes={},this.buttonType="button",this.disabled=!1,this.routerDirection="forward",this.strong=!1,this.type="button",this.handleClick=t=>{const{el:e}=this;if(this.type==="button")Zl(this.href,t,this.routerDirection,this.routerAnimation);else if(m0(e)){let n=this.findForm();const{form:r}=this;if(!n&&r!==void 0){Yn(typeof r=="string"?`Form with selector: "#${r}" could not be found. Verify that the id is correct and the form is rendered in the DOM.`:'The provided "form" element is invalid. Verify that the form is a HTMLFormElement and rendered in the DOM.',e);return}if(n||(n=e.closest("form")),n){t.preventDefault();const i=document.createElement("button");i.type=this.type,i.style.display="none",n.appendChild(i),i.click(),i.remove()}}},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}componentWillLoad(){this.inToolbar=!!this.el.closest("ion-buttons"),this.inListHeader=!!this.el.closest("ion-list-header"),this.inItem=!!this.el.closest("ion-item")||!!this.el.closest("ion-item-divider"),this.inheritedAttributes=Wb(this.el)}get hasIconOnly(){return!!this.el.querySelector('[slot="icon-only"]')}get rippleType(){return(this.fill===void 0||this.fill==="clear")&&this.hasIconOnly&&this.inToolbar?"unbounded":"bounded"}findForm(){const{form:t}=this;if(t instanceof HTMLFormElement)return t;if(typeof t=="string"){const e=document.getElementById(t);if(e instanceof HTMLFormElement)return e}return null}render(){const t=ie(this),{buttonType:e,type:n,disabled:r,rel:i,target:o,size:a,href:s,color:l,expand:c,hasIconOnly:u,shape:d,strong:f,inheritedAttributes:h}=this,p=a===void 0&&this.inItem?"small":a,g=s===void 0?"button":"a",b=g==="button"?{type:n}:{download:this.download,href:s,rel:i,target:o};let m=this.fill;return m==null&&(m=this.inToolbar||this.inListHeader?"clear":"solid"),I(xe,{onClick:this.handleClick,"aria-disabled":r?"true":null,class:Tt(l,{[t]:!0,[e]:!0,[`${e}-${c}`]:c!==void 0,[`${e}-${p}`]:p!==void 0,[`${e}-${d}`]:d!==void 0,[`${e}-${m}`]:!0,[`${e}-strong`]:f,"in-toolbar":Pn("ion-toolbar",this.el),"in-toolbar-color":Pn("ion-toolbar[color]",this.el),"in-buttons":Pn("ion-buttons",this.el),"button-has-icon-only":u,"button-disabled":r,"ion-activatable":!0,"ion-focusable":!0})},I(g,Object.assign({},b,{class:"button-native",part:"native",disabled:r,onFocus:this.onFocus,onBlur:this.onBlur},h),I("span",{class:"button-inner"},I("slot",{name:"icon-only"}),I("slot",{name:"start"}),I("slot",null),I("slot",{name:"end"})),t==="md"&&I("ion-ripple-effect",{type:this.rippleType})))}get el(){return this}static get style(){return{ios:xx,md:yx}}},[33,"ion-button",{color:[513],buttonType:[1025,"button-type"],disabled:[516],expand:[513],fill:[1537],routerDirection:[1,"router-direction"],routerAnimation:[16],download:[1],href:[1],rel:[1],shape:[513],size:[513],strong:[4],target:[1],type:[1],form:[1]}]);function _x(){if(typeof customElements>"u")return;["ion-button","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-button":customElements.get(e)||customElements.define(e,wx);break;case"ion-ripple-effect":customElements.get(e)||Fr();break}})}/*!
|
|
35
35
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
36
|
-
*/const
|
|
36
|
+
*/const Ex=_x;/*!
|
|
37
37
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
38
|
-
*/const
|
|
38
|
+
*/const Ax=".sc-ion-buttons-ios-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-ios-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-ios-s ion-button{--padding-start:5px;--padding-end:5px;margin-left:2px;margin-right:2px;height:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-ios-s ion-button{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}.sc-ion-buttons-ios-s ion-button:not(.button-round){--border-radius:4px}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button{--color:initial;--border-color:initial;--background-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-solid,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-solid{--background:var(--ion-color-contrast);--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12;--background-hover:var(--ion-color-base);--background-hover-opacity:0.45;--color:var(--ion-color-base);--color-focused:var(--ion-color-base)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-clear,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-clear{--color-activated:var(--ion-color-contrast);--color-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-outline,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-outline{--color-activated:var(--ion-color-base);--color-focused:var(--ion-color-contrast);--background-activated:var(--ion-color-contrast)}.sc-ion-buttons-ios-s .button-clear,.sc-ion-buttons-ios-s .button-outline{--background-activated:transparent;--background-focused:currentColor;--background-hover:transparent}.sc-ion-buttons-ios-s .button-solid:not(.ion-color){--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12}.sc-ion-buttons-ios-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;margin-right:0.3em;font-size:24px;line-height:0.67}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-ios-s ion-icon[slot=start]{margin-right:unset;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}.sc-ion-buttons-ios-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;margin-left:0.4em;font-size:24px;line-height:0.67}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-ios-s ion-icon[slot=end]{margin-left:unset;-webkit-margin-start:0.4em;margin-inline-start:0.4em}}.sc-ion-buttons-ios-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:28px;line-height:0.67}",kx=".sc-ion-buttons-md-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-md-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-md-s ion-button{--padding-top:0;--padding-bottom:0;--padding-start:8px;--padding-end:8px;--box-shadow:none;margin-left:2px;margin-right:2px;height:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-md-s ion-button{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}.sc-ion-buttons-md-s ion-button:not(.button-round){--border-radius:2px}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button{--color:initial;--color-focused:var(--ion-color-contrast);--color-hover:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-contrast);--background-hover:var(--ion-color-contrast)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-solid,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-solid{--background:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-shade);--background-hover:var(--ion-color-base);--color:var(--ion-color-base);--color-focused:var(--ion-color-base);--color-hover:var(--ion-color-base)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-outline,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-outline{--border-color:var(--ion-color-contrast)}.sc-ion-buttons-md-s .button-has-icon-only.button-clear{--padding-top:12px;--padding-end:12px;--padding-bottom:12px;--padding-start:12px;--border-radius:50%;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:48px;height:48px}.sc-ion-buttons-md-s .button{--background-hover:currentColor}.sc-ion-buttons-md-s .button-solid{--color:var(--ion-toolbar-background, var(--ion-background-color, #fff));--background:var(--ion-toolbar-color, var(--ion-text-color, #424242));--background-activated:transparent;--background-focused:currentColor}.sc-ion-buttons-md-s .button-outline{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--border-color:currentColor}.sc-ion-buttons-md-s .button-clear{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor}.sc-ion-buttons-md-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;margin-right:0.3em;font-size:1.4em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-md-s ion-icon[slot=start]{margin-right:unset;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}.sc-ion-buttons-md-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;margin-left:0.4em;font-size:1.4em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-md-s ion-icon[slot=end]{margin-left:unset;-webkit-margin-start:0.4em;margin-inline-start:0.4em}}.sc-ion-buttons-md-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.8em}",Cx=we(class extends _e{constructor(){super(),this.__registerHost(),this.collapse=!1}render(){const t=ie(this);return I(xe,{class:{[t]:!0,"buttons-collapse":this.collapse}})}static get style(){return{ios:Ax,md:kx}}},[34,"ion-buttons",{collapse:[4]}]);function Sx(){if(typeof customElements>"u")return;["ion-buttons"].forEach(e=>{switch(e){case"ion-buttons":customElements.get(e)||customElements.define(e,Cx);break}})}/*!
|
|
39
39
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
40
|
-
*/const
|
|
40
|
+
*/const Ix=Sx;/*!
|
|
41
41
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
42
|
-
*/const
|
|
42
|
+
*/const Tx=":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, #666666)));margin-left:16px;margin-right:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1), -webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:14px;-webkit-box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}:host(.ion-activated){-webkit-transform:scale3d(0.97, 0.97, 1);transform:scale3d(0.97, 0.97, 1)}",Ox=":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-550, #737373)));margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:14px;-webkit-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}",Dx=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAriaAttributes={},this.button=!1,this.type="button",this.disabled=!1,this.routerDirection="forward"}componentWillLoad(){this.inheritedAriaAttributes=ha(this.el,["aria-label"])}isClickable(){return this.href!==void 0||this.button}renderCard(t){const e=this.isClickable();if(!e)return[I("slot",null)];const{href:n,routerAnimation:r,routerDirection:i,inheritedAriaAttributes:o}=this,a=e?n===void 0?"button":"a":"div",s=a==="button"?{type:this.type}:{download:this.download,href:this.href,rel:this.rel,target:this.target};return I(a,Object.assign({},s,o,{class:"card-native",part:"native",disabled:this.disabled,onClick:l=>Zl(n,l,i,r)}),I("slot",null),e&&t==="md"&&I("ion-ripple-effect",null))}render(){const t=ie(this);return I(xe,{class:Tt(this.color,{[t]:!0,"card-disabled":this.disabled,"ion-activatable":this.isClickable()})},this.renderCard(t))}get el(){return this}static get style(){return{ios:Tx,md:Ox}}},[33,"ion-card",{color:[513],button:[4],type:[1],disabled:[4],download:[1],href:[1],rel:[1],routerDirection:[1,"router-direction"],routerAnimation:[16],target:[1]}]);function Nx(){if(typeof customElements>"u")return;["ion-card","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-card":customElements.get(e)||customElements.define(e,Dx);break;case"ion-ripple-effect":customElements.get(e)||Fr();break}})}const Px=Nx;/*!
|
|
43
43
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
44
|
-
*/const
|
|
44
|
+
*/const Rx="ion-card-content{display:block;position:relative}.card-content-ios{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:20px;font-size:16px;line-height:1.4}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.card-content-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px}ion-card-header+.card-content-ios{padding-top:0}",Mx="ion-card-content{display:block;position:relative}.card-content-md{padding-left:16px;padding-right:16px;padding-top:13px;padding-bottom:13px;font-size:14px;line-height:1.5}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.card-content-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}",Lx=we(class extends _e{constructor(){super(),this.__registerHost()}render(){const t=ie(this);return I(xe,{class:{[t]:!0,[`card-content-${t}`]:!0}})}static get style(){return{ios:Rx,md:Mx}}},[32,"ion-card-content"]);function Fx(){if(typeof customElements>"u")return;["ion-card-content"].forEach(e=>{switch(e){case"ion-card-content":customElements.get(e)||customElements.define(e,Lx);break}})}const Bx=Fx;/*!
|
|
45
45
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
46
|
-
*/const
|
|
46
|
+
*/const $x=":host{--background:transparent;--color:inherit;display:block;position:relative;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.card-header-translucent){background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px)}}",Vx=":host{--background:transparent;--color:inherit;display:block;position:relative;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{padding-left:16px;padding-right:16px;padding-top:16px;padding-bottom:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}::slotted(ion-card-title:not(:first-child)),::slotted(ion-card-subtitle:not(:first-child)){margin-top:8px}",Ux=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.translucent=!1}render(){const t=ie(this);return I(xe,{class:Tt(this.color,{"card-header-translucent":this.translucent,"ion-inherit-color":!0,[t]:!0})},I("slot",null))}static get style(){return{ios:$x,md:Vx}}},[33,"ion-card-header",{color:[513],translucent:[4]}]);function Hx(){if(typeof customElements>"u")return;["ion-card-header"].forEach(e=>{switch(e){case"ion-card-header":customElements.get(e)||customElements.define(e,Ux);break}})}const zx=Hx;/*!
|
|
47
47
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
48
|
-
*/const
|
|
48
|
+
*/const Wx=":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);margin-left:0;margin-right:0;margin-top:0;margin-bottom:4px;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:12px;font-weight:700;letter-spacing:0.4px;text-transform:uppercase}",Gx=":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-550, #737373);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:14px;font-weight:500}",jx=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){const t=ie(this);return I(xe,{role:"heading","aria-level":"3",class:Tt(this.color,{"ion-inherit-color":!0,[t]:!0})},I("slot",null))}static get style(){return{ios:Wx,md:Gx}}},[33,"ion-card-subtitle",{color:[513]}]);function Yx(){if(typeof customElements>"u")return;["ion-card-subtitle"].forEach(e=>{switch(e){case"ion-card-subtitle":customElements.get(e)||customElements.define(e,jx);break}})}const Xx=Yx;/*!
|
|
49
49
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
50
|
-
*/const
|
|
50
|
+
*/const qx=":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-text-color, #000);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:28px;font-weight:700;line-height:1.2}",Kx=":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-850, #262626);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:20px;font-weight:500;line-height:1.2}",Zx=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){const t=ie(this);return I(xe,{role:"heading","aria-level":"2",class:Tt(this.color,{"ion-inherit-color":!0,[t]:!0})},I("slot",null))}static get style(){return{ios:qx,md:Kx}}},[33,"ion-card-title",{color:[513]}]);function Jx(){if(typeof customElements>"u")return;["ion-card-title"].forEach(e=>{switch(e){case"ion-card-title":customElements.get(e)||customElements.define(e,Zx);break}})}const Qx=Jx;/*!
|
|
51
51
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
52
|
-
*/const
|
|
52
|
+
*/const ey=":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:1px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--background:var(--ion-item-background, var(--ion-background-color, #fff));--size:26px;width:var(--size);height:var(--size)}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.in-item[slot=start]){margin-left:2px;margin-right:20px;margin-top:8px;margin-bottom:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:20px;margin-inline-end:20px}}",ty=":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.51);--checkmark-width:3;--background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px;width:var(--size);height:var(--size)}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset 90ms linear 90ms;transition:stroke-dashoffset 90ms linear 90ms}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:18px;margin-bottom:18px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}",ny=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=te(this,"ionChange",7),this.ionFocus=te(this,"ionFocus",7),this.ionBlur=te(this,"ionBlur",7),this.ionStyle=te(this,"ionStyle",7),this.inputId=`ion-cb-${ry++}`,this.name=this.inputId,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.value="on",this.onClick=t=>{t.preventDefault(),this.setFocus(),this.checked=!this.checked,this.indeterminate=!1},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}componentWillLoad(){this.emitStyle()}checkedChanged(t){this.ionChange.emit({checked:t,value:this.value}),this.emitStyle()}disabledChanged(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"checkbox-checked":this.checked,"interactive-disabled":this.disabled})}setFocus(){this.focusEl&&this.focusEl.focus()}render(){const{color:t,checked:e,disabled:n,el:r,indeterminate:i,inputId:o,name:a,value:s}=this,l=ie(this),{label:c,labelId:u,labelText:d}=ql(r,o);Kl(!0,r,a,e?s:"",n);let f=i?I("path",{d:"M6 12L18 12",part:"mark"}):I("path",{d:"M5.9,12.5l3.8,3.8l8.8-8.8",part:"mark"});return l==="md"&&(f=i?I("path",{d:"M2 12H22",part:"mark"}):I("path",{d:"M1.73,12.91 8.1,19.28 22.79,4.59",part:"mark"})),I(xe,{onClick:this.onClick,"aria-labelledby":c?u:null,"aria-checked":`${e}`,"aria-hidden":n?"true":null,role:"checkbox",class:Tt(t,{[l]:!0,"in-item":Pn("ion-item",r),"checkbox-checked":e,"checkbox-disabled":n,"checkbox-indeterminate":i,interactive:!0})},I("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},f),I("label",{htmlFor:o},d),I("input",{type:"checkbox","aria-checked":`${e}`,disabled:n,id:o,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:h=>this.focusEl=h}))}get el(){return this}static get watchers(){return{checked:["checkedChanged"],disabled:["disabledChanged"]}}static get style(){return{ios:ey,md:ty}}},[33,"ion-checkbox",{color:[513],name:[1],checked:[1028],indeterminate:[1028],disabled:[4],value:[8]}]);let ry=0;function E0(){if(typeof customElements>"u")return;["ion-checkbox"].forEach(e=>{switch(e){case"ion-checkbox":customElements.get(e)||customElements.define(e,ny);break}})}/*!
|
|
53
53
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
54
|
-
*/const L0=':host{--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:20px;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-native{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--inner-padding-start);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-inner{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--inner-padding-start);padding-inline-start:var(--inner-padding-start);-webkit-padding-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-inline-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end))}}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--inner-padding-end);padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-bottom{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--inner-padding-end);padding-inline-end:var(--inner-padding-end)}}.item-detail-icon{color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:12px;z-index:1}.item-counter{margin-left:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-counter{margin-left:unset;-webkit-margin-start:auto;margin-inline-start:auto}}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:44px;--transition:background-color 200ms linear, opacity 200ms linear;--padding-start:20px;--inner-padding-end:10px;--inner-border-width:0px 0px 0.55px 0px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:#000;--background-focused:#000;--background-hover:currentColor;--background-activated-opacity:.12;--background-focused-opacity:.15;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--color:var(--ion-item-color, var(--ion-text-color, #000));--highlight-height:0px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--bottom-padding-start:0px;font-size:17px}:host(.ion-activated){--transition:none}:host(.ion-color.ion-focused) .item-native::after{background:#000;opacity:0.15}:host(.ion-color.ion-activated) .item-native::after{background:#000;opacity:0.12}:host(.item-interactive){--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-full){--border-width:0px 0px 0.55px 0px;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0px 0px 0.55px 0px;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0px;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0px;--show-inset-highlight:0}.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus) .item-highlight{border-top:none;border-right:none;border-left:none}::slotted([slot=start]){margin-left:0;margin-right:20px;margin-top:2px;margin-bottom:2px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:20px;margin-inline-end:20px}}::slotted([slot=end]){margin-left:10px;margin-right:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}::slotted(.button-small){--padding-top:0px;--padding-bottom:0px;--padding-start:.5em;--padding-end:.5em;height:24px;font-size:13px}::slotted(ion-avatar){width:36px;height:36px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){margin-left:0px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){margin-left:unset;-webkit-margin-start:0px;margin-inline-start:0px}}::slotted(ion-label){margin-left:0;margin-right:8px;margin-top:10px;margin-bottom:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.item-label-floating),:host(.item-label-stacked){--min-height:68px}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0px}:host(.item-label-fixed) ::slotted(ion-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:0}',P0=':host{--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:20px;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-native{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--inner-padding-start);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-inner{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--inner-padding-start);padding-inline-start:var(--inner-padding-start);-webkit-padding-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-inline-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end))}}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--inner-padding-end);padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-bottom{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--inner-padding-end);padding-inline-end:var(--inner-padding-end)}}.item-detail-icon{color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:12px;z-index:1}.item-counter{margin-left:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-counter{margin-left:unset;-webkit-margin-start:auto;margin-inline-start:auto}}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:48px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--color:var(--ion-item-color, var(--ion-text-color, #000));--transition:opacity 15ms linear, background-color 15ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0 0 1px 0;--highlight-height:1px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);font-size:16px;font-weight:normal;text-transform:none}:host(.item-fill-outline){--highlight-height:2px}:host(.item-fill-none.item-interactive.ion-focus) .item-highlight,:host(.item-fill-none.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-none.item-interactive.ion-focus) .item-native,:host(.item-fill-none.item-interactive.item-has-focus) .item-native,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-highlight{border-width:var(--full-highlight-height);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-native{border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-highlight,:host(.item-fill-solid.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-native,:host(.item-fill-solid.item-interactive.item-has-focus) .item-native,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.ion-color.ion-activated) .item-native::after{background:transparent}:host(.item-has-focus) .item-native{caret-color:var(--highlight-background)}:host(.item-interactive){--border-width:0 0 1px 0;--inner-border-width:0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-full){--border-width:0 0 1px 0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0 0 1px 0;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0;--show-inset-highlight:0}:host(.item-fill-outline) .item-highlight{--position-offset:calc(-1 * var(--border-width));left:var(--position-offset);top:var(--position-offset);width:calc(100% + 2 * var(--border-width));height:calc(100% + 2 * var(--border-width));-webkit-transition:none;transition:none}:host-context([dir=rtl]):host(.item-fill-outline) .item-highlight,:host-context([dir=rtl]).item-fill-outline .item-highlight{left:unset;right:unset;right:var(--position-offset)}:host(.item-fill-outline.ion-focused) .item-native,:host(.item-fill-outline.item-has-focus) .item-native{border-color:transparent}:host(.item-multi-line) ::slotted([slot=start]),:host(.item-multi-line) ::slotted([slot=end]){margin-top:16px;margin-bottom:16px;-ms-flex-item-align:start;align-self:flex-start}::slotted([slot=start]){margin-right:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-right:unset;-webkit-margin-end:32px;margin-inline-end:32px}}::slotted([slot=end]){margin-left:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;-webkit-margin-start:32px;margin-inline-start:32px}}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:24px}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){margin-right:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-right:unset;-webkit-margin-end:32px;margin-inline-end:32px}}::slotted(ion-icon[slot=end]){margin-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){margin-right:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){margin-right:unset;-webkit-margin-end:8px;margin-inline-end:8px}}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-ms-flex-item-align:start;align-self:flex-start;font-size:11px}::slotted(ion-note[slot]:not([slot=helper]):not([slot=error])){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){padding-right:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-note[slot=start]){padding-right:unset;-webkit-padding-end:16px;padding-inline-end:16px}}::slotted(ion-note[slot=end]){padding-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-note[slot=end]){padding-left:unset;-webkit-padding-start:16px;padding-inline-start:16px}}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){margin-right:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){margin-right:unset;-webkit-margin-end:16px;margin-inline-end:16px}}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:10px;margin-bottom:10px}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}:host(.item-label-fixed) ::slotted(ion-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:8px}:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){margin-left:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}::slotted(.button-small){--padding-top:0;--padding-bottom:0;--padding-start:.6em;--padding-end:.6em;height:25px;font-size:12px}:host(.item-label-floating),:host(.item-label-stacked){--min-height:55px}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0}:host(.ion-focused:not(.ion-color)) ::slotted(.label-stacked),:host(.ion-focused:not(.ion-color)) ::slotted(.label-floating),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-stacked),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-floating){color:var(--ion-color-primary, #3880ff)}:host(.ion-color){--highlight-color-focused:var(--ion-color-contrast)}:host(.item-label-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid.ion-color),:host(.item-fill-outline.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--background-hover:var(--ion-color-step-100, #e6e6e6);--background-focused:var(--ion-color-step-150, #d9d9d9);--border-width:0 0 1px 0;--inner-border-width:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid),:host-context([dir=rtl]).item-fill-solid{border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host(.item-fill-solid) .item-native{--border-color:var(--ion-color-step-500, gray)}:host(.item-fill-solid.ion-focused) .item-native,:host(.item-fill-solid.item-has-focus) .item-native{--background:var(--background-focused)}:host(.item-fill-solid.item-shape-round){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid.item-shape-round),:host-context([dir=rtl]).item-fill-solid.item-shape-round{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}@media (any-hover: hover){:host(.item-fill-solid:hover) .item-native{--background:var(--background-hover);--border-color:var(--ion-color-step-750, #404040)}}:host(.item-fill-outline){--ripple-color:transparent;--background-focused:transparent;--background-hover:transparent;--border-color:var(--ion-color-step-500, gray);--border-width:1px;border:none;overflow:visible}:host(.item-fill-outline) .item-native{--native-padding-left:16px;border-radius:4px}:host(.item-fill-outline.item-shape-round) .item-native{--inner-padding-start:16px;border-radius:28px}:host(.item-fill-outline.item-shape-round) .item-bottom{padding-left:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-fill-outline.item-shape-round) .item-bottom{padding-left:unset;-webkit-padding-start:32px;padding-inline-start:32px}}:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-textarea:not(:first-child)){-webkit-transform:translateY(-14px);transform:translateY(-14px)}@media (any-hover: hover){:host(.item-fill-outline:hover) .item-native{--border-color:var(--ion-color-step-750, #404040)}}.item-counter{letter-spacing:0.0333333333em}',M0=ce(class extends de{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.labelColorStyles={},this.itemStyles=new Map,this.inheritedAriaAttributes={},this.multipleInputs=!1,this.focusable=!0,this.button=!1,this.detailIcon=Tl,this.disabled=!1,this.counter=!1,this.routerDirection="forward",this.type="button"}counterFormatterChanged(){this.updateCounterOutput(this.getFirstInput())}handleIonChange(e){this.counter&&e.target===this.getFirstInput()&&this.updateCounterOutput(e.target)}labelColorChanged(e){const{color:t}=this;t===void 0&&(this.labelColorStyles=e.detail)}itemStyle(e){e.stopPropagation();const t=e.target.tagName,n=e.detail,o={},i=this.itemStyles.get(t)||{};let r=!1;Object.keys(n).forEach(s=>{if(n[s]){const a=`item-${s}`;i[a]||(r=!0),o[a]=!0}}),!r&&Object.keys(o).length!==Object.keys(i).length&&(r=!0),r&&(this.itemStyles.set(t,o),pi(this))}connectedCallback(){this.counter&&this.updateCounterOutput(this.getFirstInput()),this.hasStartEl()}componentDidUpdate(){const e=this.getFirstInput();e!==void 0&&!this.clickListener&&(this.clickListener=t=>this.delegateFocus(t,e),this.el.addEventListener("click",this.clickListener))}disconnectedCallback(){this.getFirstInput()!==void 0&&this.clickListener&&(this.el.removeEventListener("click",this.clickListener),this.clickListener=void 0)}componentWillLoad(){this.inheritedAriaAttributes=zs(this.el,["aria-label"])}componentDidLoad(){Le(()=>{this.setMultipleInputs(),this.focusable=this.isFocusable()})}setMultipleInputs(){const e=this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio"),t=this.el.querySelectorAll("ion-input, ion-range, ion-searchbar, ion-segment, ion-textarea, ion-toggle"),n=this.el.querySelectorAll("ion-anchor, ion-button, a, button");this.multipleInputs=e.length+t.length>1||e.length+n.length>1||e.length>0&&this.isClickable()}hasCover(){return this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio").length===1&&!this.multipleInputs}isClickable(){return this.href!==void 0||this.button}canActivate(){return this.isClickable()||this.hasCover()}isFocusable(){const e=this.el.querySelector(".ion-focusable");return this.canActivate()||e!==null}getFirstInput(){return this.el.querySelectorAll("ion-input, ion-textarea")[0]}delegateFocus(e,t){const n=e.target.tagName==="ION-ITEM";let o=!1;document.activeElement&&(o=t.querySelector("input, textarea")===document.activeElement),n&&(o||!this.multipleInputs)&&(t.fireFocusEvents=!1,t.setBlur(),t.setFocus(),Le(()=>{t.fireFocusEvents=!0}))}updateCounterOutput(e){var t,n;const{counter:o,counterFormatter:i,defaultCounterFormatter:r}=this;if(o&&!this.multipleInputs&&(e==null?void 0:e.maxlength)!==void 0){const s=(n=(t=e==null?void 0:e.value)===null||t===void 0?void 0:t.toString().length)!==null&&n!==void 0?n:0;if(i===void 0)this.counterString=r(s,e.maxlength);else try{this.counterString=i(s,e.maxlength)}catch(a){Wb("Exception in provided `counterFormatter`.",a),this.counterString=r(s,e.maxlength)}}}defaultCounterFormatter(e,t){return`${e} / ${t}`}hasStartEl(){this.el.querySelector('[slot="start"]')!==null&&this.el.classList.add("item-has-start-slot")}render(){const{counterString:e,detail:t,detailIcon:n,download:o,fill:i,labelColorStyles:r,lines:s,disabled:a,href:l,rel:c,shape:d,target:u,routerAnimation:f,routerDirection:b,inheritedAriaAttributes:T}=this,x={},C=te(this),p=this.isClickable(),y=this.canActivate(),S=p?l===void 0?"button":"a":"div",k=S==="button"?{type:this.type}:{download:o,href:l,rel:c,target:u},D=p?{onClick:N=>{js(l,N,b,f)}}:{},v=t!==void 0?t:C==="ios"&&p;this.itemStyles.forEach(N=>{Object.assign(x,N)});const w=a||x["item-interactive-disabled"]?"true":null,P=i||"none",A=Zt("ion-list",this.el);return _(se,{"aria-disabled":w,class:Object.assign(Object.assign(Object.assign({},x),r),it(this.color,{item:!0,[C]:!0,"item-lines-default":s===void 0,[`item-lines-${s}`]:s!==void 0,[`item-fill-${P}`]:!0,[`item-shape-${d}`]:d!==void 0,"item-disabled":a,"in-list":A,"item-multiple-inputs":this.multipleInputs,"ion-activatable":y,"ion-focusable":this.focusable,"item-rtl":document.dir==="rtl"})),role:A?"listitem":null},_(S,Object.assign({},k,T,{class:"item-native",part:"native",disabled:a},D),_("slot",{name:"start"}),_("div",{class:"item-inner"},_("div",{class:"input-wrapper"},_("slot",null)),_("slot",{name:"end"}),v&&_("ion-icon",{icon:n,lazy:!1,class:"item-detail-icon",part:"detail-icon","aria-hidden":"true","flip-rtl":n===Tl}),_("div",{class:"item-inner-highlight"})),y&&C==="md"&&_("ion-ripple-effect",null),_("div",{class:"item-highlight"})),_("div",{class:"item-bottom"},_("slot",{name:"error"}),_("slot",{name:"helper"}),e&&_("ion-note",{class:"item-counter"},e)))}static get delegatesFocus(){return!0}get el(){return this}static get watchers(){return{counterFormatter:["counterFormatterChanged"]}}static get style(){return{ios:L0,md:P0}}},[49,"ion-item",{color:[513],button:[4],detail:[4],detailIcon:[1,"detail-icon"],disabled:[4],download:[1],fill:[1],shape:[1],href:[1],rel:[1],lines:[1],counter:[4],routerAnimation:[16],routerDirection:[1,"router-direction"],target:[1],type:[1],counterFormatter:[16],multipleInputs:[32],focusable:[32],counterString:[32]},[[0,"ionChange","handleIonChange"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]]);function Ys(){if(typeof customElements>"u")return;["ion-item","ion-icon","ion-note","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-item":customElements.get(t)||customElements.define(t,M0);break;case"ion-icon":customElements.get(t)||Ni();break;case"ion-note":customElements.get(t)||Ws();break;case"ion-ripple-effect":customElements.get(t)||$n();break}})}/*!
|
|
54
|
+
*/const po=typeof window<"u"?window:void 0;po&&(po.CSS&&po.CSS.supports&&po.CSS.supports("--a: 0"));/*!
|
|
55
55
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
56
|
-
*/const R0=".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-ios-h,[text-wrap].sc-ion-label-ios-h{white-space:normal}.item-interactive-disabled.sc-ion-label-ios-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-ios-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-ios-h,.item-input .sc-ion-label-ios-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-ios-h,.item-textarea .sc-ion-label-ios-h{-ms-flex-item-align:baseline;align-self:baseline}.label-fixed.sc-ion-label-ios-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-ios-h,.label-floating.sc-ion-label-ios-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-ios-h{-webkit-transition:none;transition:none}.sc-ion-label-ios-s h1,.sc-ion-label-ios-s h2,.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-ios-h,[text-wrap].sc-ion-label-ios-h{font-size:14px;line-height:1.5}.label-stacked.sc-ion-label-ios-h{margin-bottom:4px;font-size:14px}.label-floating.sc-ion-label-ios-h{margin-bottom:0;-webkit-transform:translate(0, 29px);transform:translate(0, 29px);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms ease-in-out;transition:-webkit-transform 150ms ease-in-out;transition:transform 150ms ease-in-out;transition:transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out}[dir=rtl].sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl] .sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl].label-floating.sc-ion-label-ios-h,[dir=rtl] .label-floating.sc-ion-label-ios-h{-webkit-transform-origin:right top;transform-origin:right top}.item-textarea.label-floating.sc-ion-label-ios-h,.item-textarea .label-floating.sc-ion-label-ios-h{-webkit-transform:translate(0, 28px);transform:translate(0, 28px)}.item-has-focus.label-floating.sc-ion-label-ios-h,.item-has-focus .label-floating.sc-ion-label-ios-h,.item-has-placeholder.sc-ion-label-ios-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-ios-h,.item-has-value.label-floating.sc-ion-label-ios-h,.item-has-value .label-floating.sc-ion-label-ios-h{-webkit-transform:scale(0.82);transform:scale(0.82)}.sc-ion-label-ios-s h1{margin-left:0;margin-right:0;margin-top:3px;margin-bottom:2px;font-size:22px;font-weight:normal}.sc-ion-label-ios-s h2{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:17px;font-weight:normal}.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-ios-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:normal;text-overflow:inherit;overflow:inherit}.sc-ion-label-ios-s>p{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4)}.sc-ion-label-ios-h.in-item-color.sc-ion-label-ios-s>p{color:inherit}.sc-ion-label-ios-s h2:last-child,.sc-ion-label-ios-s h3:last-child,.sc-ion-label-ios-s h4:last-child,.sc-ion-label-ios-s h5:last-child,.sc-ion-label-ios-s h6:last-child,.sc-ion-label-ios-s p:last-child{margin-bottom:0}",F0='.item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-md-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-md-h,[text-wrap].sc-ion-label-md-h{white-space:normal}.item-interactive-disabled.sc-ion-label-md-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-md-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-md-h,.item-input .sc-ion-label-md-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-md-h,.item-textarea .sc-ion-label-md-h{-ms-flex-item-align:baseline;align-self:baseline}.label-fixed.sc-ion-label-md-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-md-h{-webkit-transition:none;transition:none}.sc-ion-label-md-s h1,.sc-ion-label-md-s h2,.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-md-h,[text-wrap].sc-ion-label-md-h{line-height:1.5}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:top left;transform-origin:top left}.label-stacked.label-rtl.sc-ion-label-md-h,.label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform-origin:top right;transform-origin:top right}.label-stacked.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.label-floating.sc-ion-label-md-h{-webkit-transform:translateY(96%);transform:translateY(96%);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.ion-focused.label-floating.sc-ion-label-md-h,.ion-focused .label-floating.sc-ion-label-md-h,.item-has-focus.label-floating.sc-ion-label-md-h,.item-has-focus .label-floating.sc-ion-label-md-h,.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-has-value.label-floating.sc-ion-label-md-h,.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(-6px) scale(0.75);transform:translateY(-6px) scale(0.75);position:relative;max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content;background-color:var(--ion-item-background, var(--ion-background-color, #fff));overflow:visible;z-index:3}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{position:absolute;width:4px;height:100%;background-color:var(--ion-item-background, var(--ion-background-color, #fff));content:""}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before{left:calc(-1 * 4px)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{right:calc(-1 * 4px)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.sc-ion-label-md-h{-webkit-transform:translateX(-32px) translateY(-6px) scale(0.75);transform:translateX(-32px) translateY(-6px) scale(0.75)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating.label-rtl,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75);transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75)}.ion-focused.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-primary, #3880ff)}.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-contrast)}.item-fill-solid.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-base)}.ion-invalid.ion-touched.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--highlight-color-invalid)}.sc-ion-label-md-s h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.sc-ion-label-md-s h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-md-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:20px;text-overflow:inherit;overflow:inherit}.sc-ion-label-md-s>p{color:var(--ion-color-step-600, #666666)}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}',V0=ce(class extends de{constructor(){super(),this.__registerHost(),this.ionColor=q(this,"ionColor",7),this.ionStyle=q(this,"ionStyle",7),this.inRange=!1,this.noAnimate=!1}componentWillLoad(){this.inRange=!!this.el.closest("ion-range"),this.noAnimate=this.position==="floating",this.emitStyle(),this.emitColor()}componentDidLoad(){this.noAnimate&&setTimeout(()=>{this.noAnimate=!1},1e3)}colorChanged(){this.emitColor()}positionChanged(){this.emitStyle()}emitColor(){const{color:e}=this;this.ionColor.emit({"item-label-color":e!==void 0,[`ion-color-${e}`]:e!==void 0})}emitStyle(){const{inRange:e,position:t}=this;e||this.ionStyle.emit({label:!0,[`label-${t}`]:t!==void 0})}render(){const e=this.position,t=te(this);return _(se,{class:it(this.color,{[t]:!0,"in-item-color":Zt("ion-item.ion-color",this.el),[`label-${e}`]:e!==void 0,"label-no-animate":this.noAnimate,"label-rtl":document.dir==="rtl"})})}get el(){return this}static get watchers(){return{color:["colorChanged"],position:["positionChanged"]}}static get style(){return{ios:R0,md:F0}}},[34,"ion-label",{color:[513],position:[1],noAnimate:[32]}]);function Gs(){if(typeof customElements>"u")return;["ion-label"].forEach(t=>{switch(t){case"ion-label":customElements.get(t)||customElements.define(t,V0);break}})}/*!
|
|
56
|
+
*/const iy=":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-350, #a6a6a6)}",oy=":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);font-size:14px}",ay=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){const t=ie(this);return I(xe,{class:Tt(this.color,{[t]:!0})},I("slot",null))}static get style(){return{ios:iy,md:oy}}},[33,"ion-note",{color:[513]}]);function Jl(){if(typeof customElements>"u")return;["ion-note"].forEach(e=>{switch(e){case"ion-note":customElements.get(e)||customElements.define(e,ay);break}})}/*!
|
|
57
57
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
58
|
-
*/const Li={getEngine(){var e;const t=window;return t.TapticEngine||((e=t.Capacitor)===null||e===void 0?void 0:e.isPluginAvailable("Haptics"))&&t.Capacitor.Plugins.Haptics},available(){var e;const t=window;return this.getEngine()?((e=t.Capacitor)===null||e===void 0?void 0:e.getPlatform())==="web"?typeof navigator<"u"&&navigator.vibrate!==void 0:!0:!1},isCordova(){return!!window.TapticEngine},isCapacitor(){return!!window.Capacitor},impact(e){const t=this.getEngine();if(!t)return;const n=this.isCapacitor()?e.style.toUpperCase():e.style;t.impact({style:n})},notification(e){const t=this.getEngine();if(!t)return;const n=this.isCapacitor()?e.style.toUpperCase():e.style;t.notification({style:n})},selection(){this.impact({style:"light"})},selectionStart(){const e=this.getEngine();e&&(this.isCapacitor()?e.selectionStart():e.gestureSelectionStart())},selectionChanged(){const e=this.getEngine();e&&(this.isCapacitor()?e.selectionChanged():e.gestureSelectionChanged())},selectionEnd(){const e=this.getEngine();e&&(this.isCapacitor()?e.selectionEnd():e.gestureSelectionEnd())}},qs=()=>Li.available(),z0=()=>{qs()&&Li.selectionStart()},U0=()=>{qs()&&Li.selectionChanged()},B0=()=>{qs()&&Li.selectionEnd()};/*!
|
|
58
|
+
*/const sy=':host{--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:20px;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-native{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--inner-padding-start);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-inner{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--inner-padding-start);padding-inline-start:var(--inner-padding-start);-webkit-padding-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-inline-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end))}}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--inner-padding-end);padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-bottom{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--inner-padding-end);padding-inline-end:var(--inner-padding-end)}}.item-detail-icon{color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:12px;z-index:1}.item-counter{margin-left:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-counter{margin-left:unset;-webkit-margin-start:auto;margin-inline-start:auto}}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:44px;--transition:background-color 200ms linear, opacity 200ms linear;--padding-start:20px;--inner-padding-end:10px;--inner-border-width:0px 0px 0.55px 0px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:#000;--background-focused:#000;--background-hover:currentColor;--background-activated-opacity:.12;--background-focused-opacity:.15;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--color:var(--ion-item-color, var(--ion-text-color, #000));--highlight-height:0px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--bottom-padding-start:0px;font-size:17px}:host(.ion-activated){--transition:none}:host(.ion-color.ion-focused) .item-native::after{background:#000;opacity:0.15}:host(.ion-color.ion-activated) .item-native::after{background:#000;opacity:0.12}:host(.item-interactive){--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-full){--border-width:0px 0px 0.55px 0px;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0px 0px 0.55px 0px;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0px;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0px;--show-inset-highlight:0}.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus) .item-highlight{border-top:none;border-right:none;border-left:none}::slotted([slot=start]){margin-left:0;margin-right:20px;margin-top:2px;margin-bottom:2px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:20px;margin-inline-end:20px}}::slotted([slot=end]){margin-left:10px;margin-right:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}::slotted(.button-small){--padding-top:0px;--padding-bottom:0px;--padding-start:.5em;--padding-end:.5em;height:24px;font-size:13px}::slotted(ion-avatar){width:36px;height:36px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){margin-left:0px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){margin-left:unset;-webkit-margin-start:0px;margin-inline-start:0px}}::slotted(ion-label){margin-left:0;margin-right:8px;margin-top:10px;margin-bottom:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.item-label-floating),:host(.item-label-stacked){--min-height:68px}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0px}:host(.item-label-fixed) ::slotted(ion-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:0}',ly=':host{--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:20px;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-native{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--inner-padding-start);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-inner{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--inner-padding-start);padding-inline-start:var(--inner-padding-start);-webkit-padding-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-inline-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end))}}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--inner-padding-end);padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-bottom{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--inner-padding-end);padding-inline-end:var(--inner-padding-end)}}.item-detail-icon{color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:12px;z-index:1}.item-counter{margin-left:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-counter{margin-left:unset;-webkit-margin-start:auto;margin-inline-start:auto}}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:48px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--color:var(--ion-item-color, var(--ion-text-color, #000));--transition:opacity 15ms linear, background-color 15ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0 0 1px 0;--highlight-height:1px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);font-size:16px;font-weight:normal;text-transform:none}:host(.item-fill-outline){--highlight-height:2px}:host(.item-fill-none.item-interactive.ion-focus) .item-highlight,:host(.item-fill-none.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-none.item-interactive.ion-focus) .item-native,:host(.item-fill-none.item-interactive.item-has-focus) .item-native,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-highlight{border-width:var(--full-highlight-height);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-native{border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-highlight,:host(.item-fill-solid.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-native,:host(.item-fill-solid.item-interactive.item-has-focus) .item-native,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.ion-color.ion-activated) .item-native::after{background:transparent}:host(.item-has-focus) .item-native{caret-color:var(--highlight-background)}:host(.item-interactive){--border-width:0 0 1px 0;--inner-border-width:0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-full){--border-width:0 0 1px 0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0 0 1px 0;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0;--show-inset-highlight:0}:host(.item-fill-outline) .item-highlight{--position-offset:calc(-1 * var(--border-width));left:var(--position-offset);top:var(--position-offset);width:calc(100% + 2 * var(--border-width));height:calc(100% + 2 * var(--border-width));-webkit-transition:none;transition:none}:host-context([dir=rtl]):host(.item-fill-outline) .item-highlight,:host-context([dir=rtl]).item-fill-outline .item-highlight{left:unset;right:unset;right:var(--position-offset)}:host(.item-fill-outline.ion-focused) .item-native,:host(.item-fill-outline.item-has-focus) .item-native{border-color:transparent}:host(.item-multi-line) ::slotted([slot=start]),:host(.item-multi-line) ::slotted([slot=end]){margin-top:16px;margin-bottom:16px;-ms-flex-item-align:start;align-self:flex-start}::slotted([slot=start]){margin-right:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-right:unset;-webkit-margin-end:32px;margin-inline-end:32px}}::slotted([slot=end]){margin-left:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;-webkit-margin-start:32px;margin-inline-start:32px}}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:24px}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){margin-right:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-right:unset;-webkit-margin-end:32px;margin-inline-end:32px}}::slotted(ion-icon[slot=end]){margin-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){margin-right:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){margin-right:unset;-webkit-margin-end:8px;margin-inline-end:8px}}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-ms-flex-item-align:start;align-self:flex-start;font-size:11px}::slotted(ion-note[slot]:not([slot=helper]):not([slot=error])){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){padding-right:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-note[slot=start]){padding-right:unset;-webkit-padding-end:16px;padding-inline-end:16px}}::slotted(ion-note[slot=end]){padding-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-note[slot=end]){padding-left:unset;-webkit-padding-start:16px;padding-inline-start:16px}}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){margin-right:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){margin-right:unset;-webkit-margin-end:16px;margin-inline-end:16px}}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:10px;margin-bottom:10px}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}:host(.item-label-fixed) ::slotted(ion-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:8px}:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){margin-left:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}::slotted(.button-small){--padding-top:0;--padding-bottom:0;--padding-start:.6em;--padding-end:.6em;height:25px;font-size:12px}:host(.item-label-floating),:host(.item-label-stacked){--min-height:55px}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0}:host(.ion-focused:not(.ion-color)) ::slotted(.label-stacked),:host(.ion-focused:not(.ion-color)) ::slotted(.label-floating),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-stacked),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-floating){color:var(--ion-color-primary, #3880ff)}:host(.ion-color){--highlight-color-focused:var(--ion-color-contrast)}:host(.item-label-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid.ion-color),:host(.item-fill-outline.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--background-hover:var(--ion-color-step-100, #e6e6e6);--background-focused:var(--ion-color-step-150, #d9d9d9);--border-width:0 0 1px 0;--inner-border-width:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid),:host-context([dir=rtl]).item-fill-solid{border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host(.item-fill-solid) .item-native{--border-color:var(--ion-color-step-500, gray)}:host(.item-fill-solid.ion-focused) .item-native,:host(.item-fill-solid.item-has-focus) .item-native{--background:var(--background-focused)}:host(.item-fill-solid.item-shape-round){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid.item-shape-round),:host-context([dir=rtl]).item-fill-solid.item-shape-round{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}@media (any-hover: hover){:host(.item-fill-solid:hover) .item-native{--background:var(--background-hover);--border-color:var(--ion-color-step-750, #404040)}}:host(.item-fill-outline){--ripple-color:transparent;--background-focused:transparent;--background-hover:transparent;--border-color:var(--ion-color-step-500, gray);--border-width:1px;border:none;overflow:visible}:host(.item-fill-outline) .item-native{--native-padding-left:16px;border-radius:4px}:host(.item-fill-outline.item-shape-round) .item-native{--inner-padding-start:16px;border-radius:28px}:host(.item-fill-outline.item-shape-round) .item-bottom{padding-left:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-fill-outline.item-shape-round) .item-bottom{padding-left:unset;-webkit-padding-start:32px;padding-inline-start:32px}}:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-textarea:not(:first-child)){-webkit-transform:translateY(-14px);transform:translateY(-14px)}@media (any-hover: hover){:host(.item-fill-outline:hover) .item-native{--border-color:var(--ion-color-step-750, #404040)}}.item-counter{letter-spacing:0.0333333333em}',cy=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.labelColorStyles={},this.itemStyles=new Map,this.inheritedAriaAttributes={},this.multipleInputs=!1,this.focusable=!0,this.button=!1,this.detailIcon=Lu,this.disabled=!1,this.counter=!1,this.routerDirection="forward",this.type="button"}counterFormatterChanged(){this.updateCounterOutput(this.getFirstInput())}handleIonChange(t){this.counter&&t.target===this.getFirstInput()&&this.updateCounterOutput(t.target)}labelColorChanged(t){const{color:e}=this;e===void 0&&(this.labelColorStyles=t.detail)}itemStyle(t){t.stopPropagation();const e=t.target.tagName,n=t.detail,r={},i=this.itemStyles.get(e)||{};let o=!1;Object.keys(n).forEach(a=>{if(n[a]){const s=`item-${a}`;i[s]||(o=!0),r[s]=!0}}),!o&&Object.keys(r).length!==Object.keys(i).length&&(o=!0),o&&(this.itemStyles.set(e,r),Fi(this))}connectedCallback(){this.counter&&this.updateCounterOutput(this.getFirstInput()),this.hasStartEl()}componentDidUpdate(){const t=this.getFirstInput();t!==void 0&&!this.clickListener&&(this.clickListener=e=>this.delegateFocus(e,t),this.el.addEventListener("click",this.clickListener))}disconnectedCallback(){this.getFirstInput()!==void 0&&this.clickListener&&(this.el.removeEventListener("click",this.clickListener),this.clickListener=void 0)}componentWillLoad(){this.inheritedAriaAttributes=ha(this.el,["aria-label"])}componentDidLoad(){We(()=>{this.setMultipleInputs(),this.focusable=this.isFocusable()})}setMultipleInputs(){const t=this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio"),e=this.el.querySelectorAll("ion-input, ion-range, ion-searchbar, ion-segment, ion-textarea, ion-toggle"),n=this.el.querySelectorAll("ion-anchor, ion-button, a, button");this.multipleInputs=t.length+e.length>1||t.length+n.length>1||t.length>0&&this.isClickable()}hasCover(){return this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio").length===1&&!this.multipleInputs}isClickable(){return this.href!==void 0||this.button}canActivate(){return this.isClickable()||this.hasCover()}isFocusable(){const t=this.el.querySelector(".ion-focusable");return this.canActivate()||t!==null}getFirstInput(){return this.el.querySelectorAll("ion-input, ion-textarea")[0]}delegateFocus(t,e){const n=t.target.tagName==="ION-ITEM";let r=!1;document.activeElement&&(r=e.querySelector("input, textarea")===document.activeElement),n&&(r||!this.multipleInputs)&&(e.fireFocusEvents=!1,e.setBlur(),e.setFocus(),We(()=>{e.fireFocusEvents=!0}))}updateCounterOutput(t){var e,n;const{counter:r,counterFormatter:i,defaultCounterFormatter:o}=this;if(r&&!this.multipleInputs&&(t==null?void 0:t.maxlength)!==void 0){const a=(n=(e=t==null?void 0:t.value)===null||e===void 0?void 0:e.toString().length)!==null&&n!==void 0?n:0;if(i===void 0)this.counterString=o(a,t.maxlength);else try{this.counterString=i(a,t.maxlength)}catch(s){fx("Exception in provided `counterFormatter`.",s),this.counterString=o(a,t.maxlength)}}}defaultCounterFormatter(t,e){return`${t} / ${e}`}hasStartEl(){this.el.querySelector('[slot="start"]')!==null&&this.el.classList.add("item-has-start-slot")}render(){const{counterString:t,detail:e,detailIcon:n,download:r,fill:i,labelColorStyles:o,lines:a,disabled:s,href:l,rel:c,shape:u,target:d,routerAnimation:f,routerDirection:h,inheritedAriaAttributes:p}=this,g={},b=ie(this),m=this.isClickable(),v=this.canActivate(),w=m?l===void 0?"button":"a":"div",y=w==="button"?{type:this.type}:{download:r,href:l,rel:c,target:d},C=m?{onClick:O=>{Zl(l,O,h,f)}}:{},E=e!==void 0?e:b==="ios"&&m;this.itemStyles.forEach(O=>{Object.assign(g,O)});const k=s||g["item-interactive-disabled"]?"true":null,N=i||"none",D=Pn("ion-list",this.el);return I(xe,{"aria-disabled":k,class:Object.assign(Object.assign(Object.assign({},g),o),Tt(this.color,{item:!0,[b]:!0,"item-lines-default":a===void 0,[`item-lines-${a}`]:a!==void 0,[`item-fill-${N}`]:!0,[`item-shape-${u}`]:u!==void 0,"item-disabled":s,"in-list":D,"item-multiple-inputs":this.multipleInputs,"ion-activatable":v,"ion-focusable":this.focusable,"item-rtl":document.dir==="rtl"})),role:D?"listitem":null},I(w,Object.assign({},y,p,{class:"item-native",part:"native",disabled:s},C),I("slot",{name:"start"}),I("div",{class:"item-inner"},I("div",{class:"input-wrapper"},I("slot",null)),I("slot",{name:"end"}),E&&I("ion-icon",{icon:n,lazy:!1,class:"item-detail-icon",part:"detail-icon","aria-hidden":"true","flip-rtl":n===Lu}),I("div",{class:"item-inner-highlight"})),v&&b==="md"&&I("ion-ripple-effect",null),I("div",{class:"item-highlight"})),I("div",{class:"item-bottom"},I("slot",{name:"error"}),I("slot",{name:"helper"}),t&&I("ion-note",{class:"item-counter"},t)))}static get delegatesFocus(){return!0}get el(){return this}static get watchers(){return{counterFormatter:["counterFormatterChanged"]}}static get style(){return{ios:sy,md:ly}}},[49,"ion-item",{color:[513],button:[4],detail:[4],detailIcon:[1,"detail-icon"],disabled:[4],download:[1],fill:[1],shape:[1],href:[1],rel:[1],lines:[1],counter:[4],routerAnimation:[16],routerDirection:[1,"router-direction"],target:[1],type:[1],counterFormatter:[16],multipleInputs:[32],focusable:[32],counterString:[32]},[[0,"ionChange","handleIonChange"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]]);function Ql(){if(typeof customElements>"u")return;["ion-item","ion-icon","ion-note","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-item":customElements.get(e)||customElements.define(e,cy);break;case"ion-icon":customElements.get(e)||pa();break;case"ion-note":customElements.get(e)||Jl();break;case"ion-ripple-effect":customElements.get(e)||Fr();break}})}/*!
|
|
59
59
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
60
|
-
*/const H0=async(e,t,n,o,i,r)=>{var s;if(e)return e.attachViewToDom(t,n,i,o);if(!r&&typeof n!="string"&&!(n instanceof HTMLElement))throw new Error("framework delegate is missing");const a=typeof n=="string"?(s=t.ownerDocument)===null||s===void 0?void 0:s.createElement(n):n;return o&&o.forEach(l=>a.classList.add(l)),i&&Object.assign(a,i),t.appendChild(a),await new Promise(l=>Vs(a,l)),a},j0=(e,t)=>{if(t){if(e){const n=t.parentElement;return e.removeViewFromDom(n,t)}t.remove()}return Promise.resolve()},W0=()=>{let e,t;return{attachViewToDom:async(i,r,s={},a=[])=>{var l,c;if(e=i,r){const u=typeof r=="string"?(l=e.ownerDocument)===null||l===void 0?void 0:l.createElement(r):r;a.forEach(f=>u.classList.add(f)),Object.assign(u,s),e.appendChild(u),await new Promise(f=>Vs(u,f))}else if(e.children.length>0&&!e.children[0].classList.contains("ion-delegate-host")){const f=(c=e.ownerDocument)===null||c===void 0?void 0:c.createElement("div");f.classList.add("ion-delegate-host"),a.forEach(b=>f.classList.add(b)),f.append(...e.children),e.appendChild(f)}const d=document.querySelector("ion-app")||document.body;return t=document.createComment("ionic teleport"),e.parentNode.insertBefore(t,e),d.appendChild(e),e},removeViewFromDom:()=>(e&&t&&(t.parentNode.insertBefore(e,t),t.remove()),Promise.resolve())}};/*!
|
|
60
|
+
*/const uy=".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-ios-h,[text-wrap].sc-ion-label-ios-h{white-space:normal}.item-interactive-disabled.sc-ion-label-ios-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-ios-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-ios-h,.item-input .sc-ion-label-ios-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-ios-h,.item-textarea .sc-ion-label-ios-h{-ms-flex-item-align:baseline;align-self:baseline}.label-fixed.sc-ion-label-ios-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-ios-h,.label-floating.sc-ion-label-ios-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-ios-h{-webkit-transition:none;transition:none}.sc-ion-label-ios-s h1,.sc-ion-label-ios-s h2,.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-ios-h,[text-wrap].sc-ion-label-ios-h{font-size:14px;line-height:1.5}.label-stacked.sc-ion-label-ios-h{margin-bottom:4px;font-size:14px}.label-floating.sc-ion-label-ios-h{margin-bottom:0;-webkit-transform:translate(0, 29px);transform:translate(0, 29px);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms ease-in-out;transition:-webkit-transform 150ms ease-in-out;transition:transform 150ms ease-in-out;transition:transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out}[dir=rtl].sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl] .sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl].label-floating.sc-ion-label-ios-h,[dir=rtl] .label-floating.sc-ion-label-ios-h{-webkit-transform-origin:right top;transform-origin:right top}.item-textarea.label-floating.sc-ion-label-ios-h,.item-textarea .label-floating.sc-ion-label-ios-h{-webkit-transform:translate(0, 28px);transform:translate(0, 28px)}.item-has-focus.label-floating.sc-ion-label-ios-h,.item-has-focus .label-floating.sc-ion-label-ios-h,.item-has-placeholder.sc-ion-label-ios-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-ios-h,.item-has-value.label-floating.sc-ion-label-ios-h,.item-has-value .label-floating.sc-ion-label-ios-h{-webkit-transform:scale(0.82);transform:scale(0.82)}.sc-ion-label-ios-s h1{margin-left:0;margin-right:0;margin-top:3px;margin-bottom:2px;font-size:22px;font-weight:normal}.sc-ion-label-ios-s h2{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:17px;font-weight:normal}.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-ios-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:normal;text-overflow:inherit;overflow:inherit}.sc-ion-label-ios-s>p{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4)}.sc-ion-label-ios-h.in-item-color.sc-ion-label-ios-s>p{color:inherit}.sc-ion-label-ios-s h2:last-child,.sc-ion-label-ios-s h3:last-child,.sc-ion-label-ios-s h4:last-child,.sc-ion-label-ios-s h5:last-child,.sc-ion-label-ios-s h6:last-child,.sc-ion-label-ios-s p:last-child{margin-bottom:0}",dy='.item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-md-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-md-h,[text-wrap].sc-ion-label-md-h{white-space:normal}.item-interactive-disabled.sc-ion-label-md-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-md-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-md-h,.item-input .sc-ion-label-md-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-md-h,.item-textarea .sc-ion-label-md-h{-ms-flex-item-align:baseline;align-self:baseline}.label-fixed.sc-ion-label-md-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-md-h{-webkit-transition:none;transition:none}.sc-ion-label-md-s h1,.sc-ion-label-md-s h2,.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-md-h,[text-wrap].sc-ion-label-md-h{line-height:1.5}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:top left;transform-origin:top left}.label-stacked.label-rtl.sc-ion-label-md-h,.label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform-origin:top right;transform-origin:top right}.label-stacked.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.label-floating.sc-ion-label-md-h{-webkit-transform:translateY(96%);transform:translateY(96%);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.ion-focused.label-floating.sc-ion-label-md-h,.ion-focused .label-floating.sc-ion-label-md-h,.item-has-focus.label-floating.sc-ion-label-md-h,.item-has-focus .label-floating.sc-ion-label-md-h,.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-has-value.label-floating.sc-ion-label-md-h,.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(-6px) scale(0.75);transform:translateY(-6px) scale(0.75);position:relative;max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content;background-color:var(--ion-item-background, var(--ion-background-color, #fff));overflow:visible;z-index:3}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{position:absolute;width:4px;height:100%;background-color:var(--ion-item-background, var(--ion-background-color, #fff));content:""}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before{left:calc(-1 * 4px)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{right:calc(-1 * 4px)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.sc-ion-label-md-h{-webkit-transform:translateX(-32px) translateY(-6px) scale(0.75);transform:translateX(-32px) translateY(-6px) scale(0.75)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating.label-rtl,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75);transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75)}.ion-focused.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-primary, #3880ff)}.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-contrast)}.item-fill-solid.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-base)}.ion-invalid.ion-touched.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--highlight-color-invalid)}.sc-ion-label-md-s h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.sc-ion-label-md-s h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-md-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:20px;text-overflow:inherit;overflow:inherit}.sc-ion-label-md-s>p{color:var(--ion-color-step-600, #666666)}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}',fy=we(class extends _e{constructor(){super(),this.__registerHost(),this.ionColor=te(this,"ionColor",7),this.ionStyle=te(this,"ionStyle",7),this.inRange=!1,this.noAnimate=!1}componentWillLoad(){this.inRange=!!this.el.closest("ion-range"),this.noAnimate=this.position==="floating",this.emitStyle(),this.emitColor()}componentDidLoad(){this.noAnimate&&setTimeout(()=>{this.noAnimate=!1},1e3)}colorChanged(){this.emitColor()}positionChanged(){this.emitStyle()}emitColor(){const{color:t}=this;this.ionColor.emit({"item-label-color":t!==void 0,[`ion-color-${t}`]:t!==void 0})}emitStyle(){const{inRange:t,position:e}=this;t||this.ionStyle.emit({label:!0,[`label-${e}`]:e!==void 0})}render(){const t=this.position,e=ie(this);return I(xe,{class:Tt(this.color,{[e]:!0,"in-item-color":Pn("ion-item.ion-color",this.el),[`label-${t}`]:t!==void 0,"label-no-animate":this.noAnimate,"label-rtl":document.dir==="rtl"})})}get el(){return this}static get watchers(){return{color:["colorChanged"],position:["positionChanged"]}}static get style(){return{ios:uy,md:dy}}},[34,"ion-label",{color:[513],position:[1],noAnimate:[32]}]);function ec(){if(typeof customElements>"u")return;["ion-label"].forEach(e=>{switch(e){case"ion-label":customElements.get(e)||customElements.define(e,fy);break}})}/*!
|
|
61
61
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
62
|
-
*/const
|
|
62
|
+
*/const ga={getEngine(){var t;const e=window;return e.TapticEngine||((t=e.Capacitor)===null||t===void 0?void 0:t.isPluginAvailable("Haptics"))&&e.Capacitor.Plugins.Haptics},available(){var t;const e=window;return this.getEngine()?((t=e.Capacitor)===null||t===void 0?void 0:t.getPlatform())==="web"?typeof navigator<"u"&&navigator.vibrate!==void 0:!0:!1},isCordova(){return!!window.TapticEngine},isCapacitor(){return!!window.Capacitor},impact(t){const e=this.getEngine();if(!e)return;const n=this.isCapacitor()?t.style.toUpperCase():t.style;e.impact({style:n})},notification(t){const e=this.getEngine();if(!e)return;const n=this.isCapacitor()?t.style.toUpperCase():t.style;e.notification({style:n})},selection(){this.impact({style:"light"})},selectionStart(){const t=this.getEngine();t&&(this.isCapacitor()?t.selectionStart():t.gestureSelectionStart())},selectionChanged(){const t=this.getEngine();t&&(this.isCapacitor()?t.selectionChanged():t.gestureSelectionChanged())},selectionEnd(){const t=this.getEngine();t&&(this.isCapacitor()?t.selectionEnd():t.gestureSelectionEnd())}},tc=()=>ga.available(),hy=()=>{tc()&&ga.selectionStart()},py=()=>{tc()&&ga.selectionChanged()},gy=()=>{tc()&&ga.selectionEnd()};/*!
|
|
63
63
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
64
|
-
*/
|
|
64
|
+
*/const A0=async(t,e,n,r,i,o)=>{var a;if(t)return t.attachViewToDom(e,n,i,r);if(!o&&typeof n!="string"&&!(n instanceof HTMLElement))throw new Error("framework delegate is missing");const s=typeof n=="string"?(a=e.ownerDocument)===null||a===void 0?void 0:a.createElement(n):n;return r&&r.forEach(l=>s.classList.add(l)),i&&Object.assign(s,i),e.appendChild(s),await new Promise(l=>Yl(s,l)),s},k0=(t,e)=>{if(e){if(t){const n=e.parentElement;return t.removeViewFromDom(n,e)}e.remove()}return Promise.resolve()},C0=()=>{let t,e;return{attachViewToDom:async(i,o,a={},s=[])=>{var l,c;if(t=i,o){const d=typeof o=="string"?(l=t.ownerDocument)===null||l===void 0?void 0:l.createElement(o):o;s.forEach(f=>d.classList.add(f)),Object.assign(d,a),t.appendChild(d),await new Promise(f=>Yl(d,f))}else if(t.children.length>0&&!t.children[0].classList.contains("ion-delegate-host")){const f=(c=t.ownerDocument)===null||c===void 0?void 0:c.createElement("div");f.classList.add("ion-delegate-host"),s.forEach(h=>f.classList.add(h)),f.append(...t.children),t.appendChild(f)}const u=document.querySelector("ion-app")||document.body;return e=document.createComment("ionic teleport"),t.parentNode.insertBefore(e,t),u.appendChild(t),t},removeViewFromDom:()=>(t&&e&&(e.parentNode.insertBefore(t,e),e.remove()),Promise.resolve())}};/*!
|
|
65
65
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
66
|
-
*/const
|
|
66
|
+
*/const my=100;/*!
|
|
67
67
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
68
|
-
*/const
|
|
68
|
+
*/let $s=0;const Xo=new WeakMap,ma=t=>({create(e){return wy(t,e)},dismiss(e,n,r){return ky(document,e,n,t,r)},async getTop(){return $i(document,t)}}),vy=ma("ion-alert"),by=ma("ion-action-sheet"),xy=ma("ion-modal"),yy=ma("ion-popover"),va=t=>{typeof document<"u"&&Ay(document);const e=$s++;t.overlayIndex=e,t.hasAttribute("id")||(t.id=`ion-overlay-${e}`)},wy=(t,e)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(t).then(()=>{const n=document.createElement(t);return n.classList.add("overlay-hidden"),Object.assign(n,Object.assign(Object.assign({},e),{hasController:!0})),I0(document).appendChild(n),new Promise(r=>Yl(n,r))}):Promise.resolve(),Bi='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',Vs=(t,e)=>{let n=t.querySelector(Bi);const r=n==null?void 0:n.shadowRoot;r&&(n=r.querySelector(Bi)||n),n?b0(n):e.focus()},_y=t=>t.classList.contains("overlay-hidden"),Vu=(t,e)=>{const n=Array.from(t.querySelectorAll(Bi));let r=n.length>0?n[n.length-1]:null;const i=r==null?void 0:r.shadowRoot;i&&(r=i.querySelector(Bi)||r),r?r.focus():e.focus()},Ey=(t,e)=>{const n=$i(e,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),r=t.target;if(!n||!r||n.classList.contains("ion-disable-focus-trap"))return;const i=()=>{if(n===r)n.lastFocus=void 0;else{const a=St(n);if(!a.contains(r))return;const s=a.querySelector(".ion-overlay-wrapper");if(!s)return;if(s.contains(r))n.lastFocus=r;else{const l=n.lastFocus;Vs(s,n),l===e.activeElement&&Vu(s,n),n.lastFocus=e.activeElement}}},o=()=>{if(n.contains(r))n.lastFocus=r;else{const a=n.lastFocus;Vs(n,n),a===e.activeElement&&Vu(n,n),n.lastFocus=e.activeElement}};n.shadowRoot?o():i()},Ay=t=>{$s===0&&($s=1,t.addEventListener("focus",e=>{Ey(e,t)},!0),t.addEventListener("ionBackButton",e=>{const n=$i(t);n!=null&&n.backdropDismiss&&e.detail.register(my,()=>n.dismiss(void 0,Cr))}),t.addEventListener("keyup",e=>{if(e.key==="Escape"){const n=$i(t);n!=null&&n.backdropDismiss&&n.dismiss(void 0,Cr)}}))},ky=(t,e,n,r,i)=>{const o=$i(t,r,i);return o?o.dismiss(e,n):Promise.reject("overlay does not exist")},Cy=(t,e)=>(e===void 0&&(e="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(t.querySelectorAll(e)).filter(n=>n.overlayIndex>0)),$i=(t,e,n)=>{const r=Cy(t,e).filter(i=>!_y(i));return n===void 0?r[r.length-1]:r.find(i=>i.id===n)},S0=(t=!1)=>{const n=I0(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");n&&(t?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden"))},ba=async(t,e,n,r,i)=>{var o,a;if(t.presented)return;S0(!0),t.presented=!0,t.willPresent.emit(),(o=t.willPresentShorthand)===null||o===void 0||o.emit();const s=ie(t),l=t.enterAnimation?t.enterAnimation:er.get(e,s==="ios"?n:r);await T0(t,l,t.el,i)&&(t.didPresent.emit(),(a=t.didPresentShorthand)===null||a===void 0||a.emit()),t.el.tagName!=="ION-TOAST"&&Sy(t.el),t.keyboardClose&&(document.activeElement===null||!t.el.contains(document.activeElement))&&t.el.focus()},Sy=async t=>{let e=document.activeElement;if(!e)return;const n=e==null?void 0:e.shadowRoot;n&&(e=n.querySelector(Bi)||e),await t.onDidDismiss(),e.focus()},xa=async(t,e,n,r,i,o,a)=>{var s,l;if(!t.presented)return!1;S0(!1),t.presented=!1;try{t.el.style.setProperty("pointer-events","none"),t.willDismiss.emit({data:e,role:n}),(s=t.willDismissShorthand)===null||s===void 0||s.emit({data:e,role:n});const c=ie(t),u=t.leaveAnimation?t.leaveAnimation:er.get(r,c==="ios"?i:o);n!==Pi&&await T0(t,u,t.el,a),t.didDismiss.emit({data:e,role:n}),(l=t.didDismissShorthand)===null||l===void 0||l.emit({data:e,role:n}),Xo.delete(t),t.el.classList.add("overlay-hidden"),t.el.style.removeProperty("pointer-events"),t.el.lastFocus!==void 0&&(t.el.lastFocus=void 0)}catch(c){console.error(c)}return t.el.remove(),!0},I0=t=>t.querySelector("ion-app")||t.body,T0=async(t,e,n,r)=>{n.classList.remove("overlay-hidden");const i=t.el,o=e(i,r);(!t.animated||!er.getBoolean("animated",!0))&&o.duration(0),t.keyboardClose&&o.beforeAddWrite(()=>{const s=n.ownerDocument.activeElement;s!=null&&s.matches("input,ion-input, ion-textarea")&&s.blur()});const a=Xo.get(t)||[];return Xo.set(t,[...a,o]),await o.play(),!0},tr=(t,e)=>{let n;const r=new Promise(i=>n=i);return Iy(t,e,i=>{n(i.detail)}),r},Iy=(t,e,n)=>{const r=i=>{g0(t,e,r),n(i)};Xl(t,e,r)},qo=t=>t==="cancel"||t===Cr,Ty=t=>t(),Ni=(t,e)=>{if(typeof t=="function")return er.get("_zoneGate",Ty)(()=>{try{return t(e)}catch(r){throw r}})},Cr="backdrop",Pi="gesture";/*!
|
|
69
69
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
70
|
-
*/
|
|
70
|
+
*/const Oy="ionViewWillEnter",Dy="ionViewDidEnter",Ny="ionViewWillLeave",Py="ionViewDidLeave",nc=async t=>{const e=t;if(e){if(e.componentOnReady!=null){if(await e.componentOnReady()!=null)return}else if(e.__registerHost!=null){await new Promise(r=>We(r));return}await Promise.all(Array.from(e.children).map(nc))}};/*!
|
|
71
71
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
72
|
-
*/const bv=e=>{if(!e)return{arrowWidth:0,arrowHeight:0};const{width:t,height:n}=e.getBoundingClientRect();return{arrowWidth:t,arrowHeight:n}},Fu=(e,t,n)=>{const o=t.getBoundingClientRect(),i=o.height;let r=o.width;return e==="cover"&&n&&(r=n.getBoundingClientRect().width),{contentWidth:r,contentHeight:i}},vv=(e,t,n,o)=>{let i=[];const s=Nn(o).querySelector(".popover-content");switch(t){case"hover":i=[{eventName:"mouseenter",callback:a=>{document.elementFromPoint(a.clientX,a.clientY)!==e&&n.dismiss(void 0,void 0,!1)}}];break;case"context-menu":case"click":default:i=[{eventName:"click",callback:a=>{if(a.target.closest("[data-ion-popover-trigger]")===e){a.stopPropagation();return}n.dismiss(void 0,void 0,!1)}}];break}return i.forEach(({eventName:a,callback:l})=>s.addEventListener(a,l)),()=>{i.forEach(({eventName:a,callback:l})=>s.removeEventListener(a,l))}},yv=(e,t,n)=>{let o=[];switch(t){case"hover":let i;o=[{eventName:"mouseenter",callback:async r=>{r.stopPropagation(),i&&clearTimeout(i),i=setTimeout(()=>{Le(()=>{n.presentFromTrigger(r),i=void 0})},100)}},{eventName:"mouseleave",callback:r=>{i&&clearTimeout(i);const s=r.relatedTarget;s&&s.closest("ion-popover")!==n&&n.dismiss(void 0,void 0,!1)}},{eventName:"click",callback:r=>r.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:r=>n.presentFromTrigger(r,!0)}];break;case"context-menu":o=[{eventName:"contextmenu",callback:r=>{r.preventDefault(),n.presentFromTrigger(r)}},{eventName:"click",callback:r=>r.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:r=>n.presentFromTrigger(r,!0)}];break;case"click":default:o=[{eventName:"click",callback:r=>n.presentFromTrigger(r)},{eventName:"ionPopoverActivateTrigger",callback:r=>n.presentFromTrigger(r,!0)}];break}return o.forEach(({eventName:i,callback:r})=>e.addEventListener(i,r)),e.setAttribute("data-ion-popover-trigger","true"),()=>{o.forEach(({eventName:i,callback:r})=>e.removeEventListener(i,r)),e.removeAttribute("data-ion-popover-trigger")}},Vu=(e,t)=>!t||t.tagName!=="ION-ITEM"?-1:e.findIndex(n=>n===t),wv=(e,t)=>{const n=Vu(e,t);return e[n+1]},kv=(e,t)=>{const n=Vu(e,t);return e[n-1]},qo=e=>{const n=Nn(e).querySelector("button");n&&Le(()=>n.focus())},xv=e=>e.hasAttribute("data-ion-popover-trigger"),_v=e=>{const t=async n=>{var o;const i=document.activeElement;let r=[];const s=(o=n.target)===null||o===void 0?void 0:o.tagName;if(!(s!=="ION-POPOVER"&&s!=="ION-ITEM")){try{r=Array.from(e.querySelectorAll("ion-item:not(ion-popover ion-popover *):not([disabled])"))}catch{}switch(n.key){case"ArrowLeft":await e.getParentPopover()&&e.dismiss(void 0,void 0,!1);break;case"ArrowDown":n.preventDefault();const l=wv(r,i);l!==void 0&&qo(l);break;case"ArrowUp":n.preventDefault();const c=kv(r,i);c!==void 0&&qo(c);break;case"Home":n.preventDefault();const d=r[0];d!==void 0&&qo(d);break;case"End":n.preventDefault();const u=r[r.length-1];u!==void 0&&qo(u);break;case"ArrowRight":case" ":case"Enter":if(i&&xv(i)){const f=new CustomEvent("ionPopoverActivateTrigger");i.dispatchEvent(f)}break}}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)},zu=(e,t,n,o,i,r,s,a,l,c,d)=>{var u;let f={top:0,left:0,width:0,height:0};switch(r){case"event":if(!d)return l;const D=d;f={top:D.clientY,left:D.clientX,width:1,height:1};break;case"trigger":default:const v=d,w=c||((u=v==null?void 0:v.detail)===null||u===void 0?void 0:u.ionShadowTarget)||(v==null?void 0:v.target);if(!w)return l;const P=w.getBoundingClientRect();f={top:P.top,left:P.left,width:P.width,height:P.height};break}const b=Iv(s,f,t,n,o,i,e),T=Sv(a,s,f,t,n),x=b.top+T.top,C=b.left+T.left,{arrowTop:p,arrowLeft:y}=Tv(s,o,i,x,C,t,n,e),{originX:S,originY:k}=Ev(s,a,e);return{top:x,left:C,referenceCoordinates:f,arrowTop:p,arrowLeft:y,originX:S,originY:k}},Ev=(e,t,n)=>{switch(e){case"top":return{originX:Dl(t),originY:"bottom"};case"bottom":return{originX:Dl(t),originY:"top"};case"left":return{originX:"right",originY:Ko(t)};case"right":return{originX:"left",originY:Ko(t)};case"start":return{originX:n?"left":"right",originY:Ko(t)};case"end":return{originX:n?"right":"left",originY:Ko(t)}}},Dl=e=>{switch(e){case"start":return"left";case"center":return"center";case"end":return"right"}},Ko=e=>{switch(e){case"start":return"top";case"center":return"center";case"end":return"bottom"}},Tv=(e,t,n,o,i,r,s,a)=>{const l={arrowTop:o+s/2-t/2,arrowLeft:i+r-t/2},c={arrowTop:o+s/2-t/2,arrowLeft:i-t*1.5};switch(e){case"top":return{arrowTop:o+s,arrowLeft:i+r/2-t/2};case"bottom":return{arrowTop:o-n,arrowLeft:i+r/2-t/2};case"left":return l;case"right":return c;case"start":return a?c:l;case"end":return a?l:c;default:return{arrowTop:0,arrowLeft:0}}},Iv=(e,t,n,o,i,r,s)=>{const a={top:t.top,left:t.left-n-i},l={top:t.top,left:t.left+t.width+i};switch(e){case"top":return{top:t.top-o-r,left:t.left};case"right":return l;case"bottom":return{top:t.top+t.height+r,left:t.left};case"left":return a;case"start":return s?l:a;case"end":return s?a:l}},Sv=(e,t,n,o,i)=>{switch(e){case"center":return Ov(t,n,o,i);case"end":return Cv(t,n,o,i);case"start":default:return{top:0,left:0}}},Cv=(e,t,n,o)=>{switch(e){case"start":case"end":case"left":case"right":return{top:-(o-t.height),left:0};case"top":case"bottom":default:return{top:0,left:-(n-t.width)}}},Ov=(e,t,n,o)=>{switch(e){case"start":case"end":case"left":case"right":return{top:-(o/2-t.height/2),left:0};case"top":case"bottom":default:return{top:0,left:-(n/2-t.width/2)}}},Uu=(e,t,n,o,i,r,s,a,l,c,d,u,f=0,b=0,T=0)=>{let x=f;const C=b;let p=n,y=t,S,k=c,D=d,v=!1,w=!1;const P=u?u.top+u.height:r/2-a/2,A=u?u.height:0;let N=!1;return p<o+l?(p=o,v=!0,k="left"):s+o+p+l>i&&(w=!0,p=i-s-o,k="right"),P+A+a>r&&(e==="top"||e==="bottom")&&(P-a>0?(y=Math.max(12,P-a-A-(T-1)),x=y+a,D="bottom",N=!0):S=o),{top:y,left:p,bottom:S,originX:k,originY:D,checkSafeAreaLeft:v,checkSafeAreaRight:w,arrowTop:x,arrowLeft:C,addPopoverBottomClass:N}},Av=(e,t=!1,n,o)=>!(!n&&!o||e!=="top"&&e!=="bottom"&&t),Dv=5,Nv=(e,t)=>{var n;const{event:o,size:i,trigger:r,reference:s,side:a,align:l}=t,c=e.ownerDocument,d=c.dir==="rtl",u=c.defaultView.innerWidth,f=c.defaultView.innerHeight,b=Nn(e),T=b.querySelector(".popover-content"),x=b.querySelector(".popover-arrow"),C=r||((n=o==null?void 0:o.detail)===null||n===void 0?void 0:n.ionShadowTarget)||(o==null?void 0:o.target),{contentWidth:p,contentHeight:y}=Fu(i,T,C),{arrowWidth:S,arrowHeight:k}=bv(x),D={top:f/2-y/2,left:u/2-p/2,originX:d?"right":"left",originY:"top"},v=zu(d,p,y,S,k,s,a,l,D,r,o),w=i==="cover"?0:Dv,P=i==="cover"?0:25,{originX:A,originY:N,top:L,left:U,bottom:oe,checkSafeAreaLeft:ye,checkSafeAreaRight:Ue,arrowTop:K,arrowLeft:X,addPopoverBottomClass:rt}=Uu(a,v.top,v.left,w,u,f,p,y,P,v.originX,v.originY,v.referenceCoordinates,v.arrowTop,v.arrowLeft,k),De=G(),qe=G(),st=G();return qe.addElement(b.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),st.addElement(b.querySelector(".popover-wrapper")).fromTo("opacity",.01,1),De.easing("ease").duration(100).beforeAddWrite(()=>{i==="cover"&&e.style.setProperty("--width",`${p}px`),rt&&e.classList.add("popover-bottom"),oe!==void 0&&T.style.setProperty("bottom",`${oe}px`);const wt=" + var(--ion-safe-area-left, 0)",_e=" - var(--ion-safe-area-right, 0)";let Ke=`${U}px`;if(ye&&(Ke=`${U}px${wt}`),Ue&&(Ke=`${U}px${_e}`),T.style.setProperty("top",`calc(${L}px + var(--offset-y, 0))`),T.style.setProperty("left",`calc(${Ke} + var(--offset-x, 0))`),T.style.setProperty("transform-origin",`${N} ${A}`),x!==null){const Ee=v.top!==L||v.left!==U;Av(a,Ee,o,r)?(x.style.setProperty("top",`calc(${K}px + var(--offset-y, 0))`),x.style.setProperty("left",`calc(${X}px + var(--offset-x, 0))`)):x.style.setProperty("display","none")}}).addAnimation([qe,st])},$v=e=>{const t=Nn(e),n=t.querySelector(".popover-content"),o=t.querySelector(".popover-arrow"),i=G(),r=G(),s=G();return r.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),s.addElement(t.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),i.easing("ease").afterAddWrite(()=>{e.style.removeProperty("--width"),e.classList.remove("popover-bottom"),n.style.removeProperty("top"),n.style.removeProperty("left"),n.style.removeProperty("bottom"),n.style.removeProperty("transform-origin"),o&&(o.style.removeProperty("top"),o.style.removeProperty("left"),o.style.removeProperty("display"))}).duration(300).addAnimation([r,s])},Lv=12,Pv=(e,t)=>{var n;const{event:o,size:i,trigger:r,reference:s,side:a,align:l}=t,c=e.ownerDocument,d=c.dir==="rtl",u=c.defaultView.innerWidth,f=c.defaultView.innerHeight,b=Nn(e),T=b.querySelector(".popover-content"),x=r||((n=o==null?void 0:o.detail)===null||n===void 0?void 0:n.ionShadowTarget)||(o==null?void 0:o.target),{contentWidth:C,contentHeight:p}=Fu(i,T,x),y={top:f/2-p/2,left:u/2-C/2,originX:d?"right":"left",originY:"top"},S=zu(d,C,p,0,0,s,a,l,y,r,o),k=i==="cover"?0:Lv,{originX:D,originY:v,top:w,left:P,bottom:A}=Uu(a,S.top,S.left,k,u,f,C,p,0,S.originX,S.originY,S.referenceCoordinates),N=G(),L=G(),U=G(),oe=G(),ye=G();return L.addElement(b.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),U.addElement(b.querySelector(".popover-wrapper")).duration(150).fromTo("opacity",.01,1),oe.addElement(T).beforeStyles({top:`calc(${w}px + var(--offset-y, 0px))`,left:`calc(${P}px + var(--offset-x, 0px))`,"transform-origin":`${v} ${D}`}).beforeAddWrite(()=>{A!==void 0&&T.style.setProperty("bottom",`${A}px`)}).fromTo("transform","scale(0.8)","scale(1)"),ye.addElement(b.querySelector(".popover-viewport")).fromTo("opacity",.01,1),N.easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).beforeAddWrite(()=>{i==="cover"&&e.style.setProperty("--width",`${C}px`),v==="bottom"&&e.classList.add("popover-bottom")}).addAnimation([L,U,oe,ye])},Mv=e=>{const t=Nn(e),n=t.querySelector(".popover-content"),o=G(),i=G(),r=G();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(t.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),o.easing("ease").afterAddWrite(()=>{e.style.removeProperty("--width"),e.classList.remove("popover-bottom"),n.style.removeProperty("top"),n.style.removeProperty("left"),n.style.removeProperty("bottom"),n.style.removeProperty("transform-origin")}).duration(150).addAnimation([i,r])},Rv=':host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{opacity:0;z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}:host{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}:host(.popover-desktop){--box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.12)}.popover-content{border-radius:10px}:host(.popover-desktop) .popover-content{border:0.5px solid var(--ion-color-step-100, #e6e6e6)}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden}.popover-arrow::after{left:3px;top:3px;border-radius:3px;position:absolute;width:14px;height:14px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--background);content:"";z-index:10}[dir=rtl] .popover-arrow::after,:host-context([dir=rtl]) .popover-arrow::after{left:unset;right:unset;right:3px}:host(.popover-bottom) .popover-arrow{top:auto;bottom:-10px}:host(.popover-bottom) .popover-arrow::after{top:-6px}:host(.popover-side-left) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host(.popover-side-right) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-top) .popover-arrow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.popover-side-start) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow,:host-context([dir=rtl]).popover-side-start .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-end) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow,:host-context([dir=rtl]).popover-side-end .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.popover-translucent) .popover-content,:host(.popover-translucent) .popover-arrow::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}',Fv=":host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{opacity:0;z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}:host{--width:250px;--max-height:90%;--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content{border-radius:4px;-webkit-transform-origin:left top;transform-origin:left top}[dir=rtl] .popover-content,:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}",Vv=ce(class extends de{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=q(this,"ionPopoverDidPresent",7),this.willPresent=q(this,"ionPopoverWillPresent",7),this.willDismiss=q(this,"ionPopoverWillDismiss",7),this.didDismiss=q(this,"ionPopoverDidDismiss",7),this.didPresentShorthand=q(this,"didPresent",7),this.willPresentShorthand=q(this,"willPresent",7),this.willDismissShorthand=q(this,"willDismiss",7),this.didDismissShorthand=q(this,"didDismiss",7),this.ionMount=q(this,"ionMount",7),this.parentPopover=null,this.popoverIndex=Uv++,this.coreDelegate=W0(),this.inline=!1,this.focusDescendantOnPresent=!1,this.presented=!1,this.hasController=!1,this.keyboardClose=!0,this.backdropDismiss=!0,this.showBackdrop=!0,this.translucent=!1,this.animated=!0,this.triggerAction="click",this.size="auto",this.dismissOnSelect=!1,this.reference="trigger",this.side="bottom",this.arrow=!0,this.isOpen=!1,this.keyboardEvents=!1,this.keepContentsMounted=!1,this.onBackdropTap=()=>{this.dismiss(void 0,Xn)},this.onLifecycle=e=>{const t=this.usersElement,n=zv[e.type];if(t&&n){const o=new CustomEvent(n,{bubbles:!1,cancelable:!1,detail:e.detail});t.dispatchEvent(o)}},this.configureTriggerInteraction=()=>{const{trigger:e,triggerAction:t,el:n,destroyTriggerInteraction:o}=this;if(o&&o(),e===void 0)return;const i=this.triggerEl=e!==void 0?document.getElementById(e):null;if(!i){jr(`A trigger element with the ID "${e}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on ion-popover.`,this.el);return}this.destroyTriggerInteraction=yv(i,t,n)},this.configureKeyboardInteraction=()=>{const{destroyKeyboardInteraction:e,el:t}=this;e&&e(),this.destroyKeyboardInteraction=_v(t)},this.configureDismissInteraction=()=>{const{destroyDismissInteraction:e,parentPopover:t,triggerAction:n,triggerEl:o,el:i}=this;!t||!o||(e&&e(),this.destroyDismissInteraction=vv(o,n,i,t))}}onTriggerChange(){this.configureTriggerInteraction()}onIsOpenChange(e,t){e===!0&&t===!1?this.present():e===!1&&t===!0&&this.dismiss()}connectedCallback(){const{configureTriggerInteraction:e,el:t}=this;Xs(t),e()}disconnectedCallback(){const{destroyTriggerInteraction:e}=this;e&&e()}componentWillLoad(){this.popoverId=this.el.hasAttribute("id")?this.el.getAttribute("id"):`ion-popover-${this.popoverIndex}`,this.parentPopover=this.el.closest(`ion-popover:not(#${this.popoverId})`),this.alignment===void 0&&(this.alignment=te(this)==="ios"?"center":"start")}componentDidLoad(){const{parentPopover:e,isOpen:t}=this;t===!0&&Le(()=>this.present()),e&&Us(e,"ionPopoverWillDismiss",()=>{this.dismiss(void 0,void 0,!1)})}async presentFromTrigger(e,t=!1){this.focusDescendantOnPresent=t,await this.present(e),this.focusDescendantOnPresent=!1}getDelegate(e=!1){if(this.workingDelegate&&!e)return{delegate:this.workingDelegate,inline:this.inline};const t=this.el.parentNode,n=this.inline=t!==null&&!this.hasController,o=this.workingDelegate=n?this.delegate||this.coreDelegate:this.delegate;return{inline:n,delegate:o}}async present(e){if(this.presented)return;this.currentTransition!==void 0&&await this.currentTransition;const{inline:t,delegate:n}=this.getDelegate(!0);return this.usersElement=await H0(n,this.el,this.component,["popover-viewport"],this.componentProps,t),await Ru(this.usersElement),this.keyboardEvents||this.configureKeyboardInteraction(),this.configureDismissInteraction(),this.ionMount.emit(),new Promise(o=>{Le(()=>{Le(async()=>{this.currentTransition=Zs(this,"popoverEnter",Nv,Pv,{event:e||this.event,size:this.size,trigger:this.triggerEl,reference:this.reference,side:this.side,align:this.alignment}),await this.currentTransition,this.currentTransition=void 0,this.focusDescendantOnPresent&&Gr(this.el,this.el),o()})})})}async dismiss(e,t,n=!0){this.currentTransition!==void 0&&await this.currentTransition;const{destroyKeyboardInteraction:o,destroyDismissInteraction:i}=this;n&&this.parentPopover&&this.parentPopover.dismiss(e,t,n),this.currentTransition=Js(this,e,t,"popoverLeave",$v,Mv,this.event);const r=await this.currentTransition;if(r){o&&(o(),this.destroyKeyboardInteraction=void 0),i&&(i(),this.destroyDismissInteraction=void 0);const{delegate:s}=this.getDelegate();await j0(s,this.usersElement)}return this.currentTransition=void 0,r}async getParentPopover(){return this.parentPopover}onDidDismiss(){return Kn(this.el,"ionPopoverDidDismiss")}onWillDismiss(){return Kn(this.el,"ionPopoverWillDismiss")}render(){const e=te(this),{onLifecycle:t,popoverId:n,parentPopover:o,dismissOnSelect:i,side:r,arrow:s,htmlAttributes:a}=this,l=lb("desktop"),c=s&&!o;return _(se,Object.assign({"aria-modal":"true","no-router":!0,tabindex:"-1"},a,{style:{zIndex:`${2e4+this.overlayIndex}`},id:n,class:Object.assign(Object.assign({},vt(this.cssClass)),{[e]:!0,"popover-translucent":this.translucent,"overlay-hidden":!0,"popover-desktop":l,[`popover-side-${r}`]:!0,"popover-nested":!!o}),onIonPopoverDidPresent:t,onIonPopoverWillPresent:t,onIonPopoverWillDismiss:t,onIonPopoverDidDismiss:t,onIonBackdropTap:this.onBackdropTap}),!o&&_("ion-backdrop",{tappable:this.backdropDismiss,visible:this.showBackdrop,part:"backdrop"}),_("div",{class:"popover-wrapper ion-overlay-wrapper",onClick:i?()=>this.dismiss():void 0},c&&_("div",{class:"popover-arrow",part:"arrow"}),_("div",{class:"popover-content",part:"content"},_("slot",null))))}get el(){return this}static get watchers(){return{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}}static get style(){return{ios:Rv,md:Fv}}},[33,"ion-popover",{hasController:[4,"has-controller"],delegate:[16],overlayIndex:[2,"overlay-index"],enterAnimation:[16],leaveAnimation:[16],component:[1],componentProps:[16],keyboardClose:[4,"keyboard-close"],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],event:[8],showBackdrop:[4,"show-backdrop"],translucent:[4],animated:[4],htmlAttributes:[16],triggerAction:[1,"trigger-action"],trigger:[1],size:[1],dismissOnSelect:[4,"dismiss-on-select"],reference:[1],side:[1],alignment:[1025],arrow:[4],isOpen:[4,"is-open"],keyboardEvents:[4,"keyboard-events"],keepContentsMounted:[4,"keep-contents-mounted"],presented:[32],presentFromTrigger:[64],present:[64],dismiss:[64],getParentPopover:[64],onDidDismiss:[64],onWillDismiss:[64]}]),zv={ionPopoverDidPresent:"ionViewDidEnter",ionPopoverWillPresent:"ionViewWillEnter",ionPopoverWillDismiss:"ionViewWillLeave",ionPopoverDidDismiss:"ionViewDidLeave"};let Uv=0;function Bv(){if(typeof customElements>"u")return;["ion-popover","ion-backdrop"].forEach(t=>{switch(t){case"ion-popover":customElements.get(t)||customElements.define(t,Vv);break;case"ion-backdrop":customElements.get(t)||$i();break}})}/*!
|
|
72
|
+
*/const ke=typeof window<"u"?window:void 0;/*!
|
|
73
73
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
74
|
-
*/const
|
|
74
|
+
*/let ja;const Ry=t=>(t.forEach(e=>{for(const n in e)if(e.hasOwnProperty(n)){const r=e[n];if(n==="easing"){const i="animation-timing-function";e[i]=r,delete e[n]}else{const i=My(n);i!==n&&(e[i]=r,delete e[n])}}}),t),My=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rc=t=>{if(ja===void 0){const e=t.style.animationName!==void 0,n=t.style.webkitAnimationName!==void 0;ja=!e&&n?"-webkit-":""}return ja},Le=(t,e,n)=>{const r=e.startsWith("animation")?rc(t):"";t.style.setProperty(r+e,n)},Qt=(t,e)=>{const n=e.startsWith("animation")?rc(t):"";t.style.removeProperty(n+e)},Ly=(t,e)=>{let n;const r={passive:!0},i=()=>{n&&n()},o=a=>{t===a.target&&(i(),e(a))};return t&&(t.addEventListener("webkitAnimationEnd",o,r),t.addEventListener("animationend",o,r),n=()=>{t.removeEventListener("webkitAnimationEnd",o,r),t.removeEventListener("animationend",o,r)}),i},Fy=(t=[])=>t.map(e=>{const n=e.offset,r=[];for(const i in e)e.hasOwnProperty(i)&&i!=="offset"&&r.push(`${i}: ${e[i]};`);return`${n*100}% { ${r.join(" ")} }`}).join(" "),Uu=[],By=t=>{let e=Uu.indexOf(t);return e<0&&(e=Uu.push(t)-1),`ion-animation-${e}`},$y=t=>{const e=t.getRootNode!==void 0?t.getRootNode():t;return e.head||e},Vy=(t,e,n)=>{var r;const i=$y(n),o=rc(n),a=i.querySelector("#"+t);if(a)return a;const s=((r=n.ownerDocument)!==null&&r!==void 0?r:document).createElement("style");return s.id=t,s.textContent=`@${o}keyframes ${t} { ${e} } @${o}keyframes ${t}-alt { ${e} }`,i.appendChild(s),s},go=(t=[],e)=>{if(e!==void 0){const n=Array.isArray(e)?e:[e];return[...t,...n]}return t},X=t=>{let e,n,r,i,o,a,s=[],l=[],c=[],u=!1,d,f={},h=[],p=[],g={},b=0,m=!1,v=!1,w,y,C,E,k=!0,N=!1,D=!0,O,L,B=!1;const G=t,ae=[],se=[],Z=[],K=[],Te=[],Re=[],Me=[],je=[],Et=[],Ye=[],Lt=typeof AnimationEffect=="function"||ke!==void 0&&typeof ke.AnimationEffect=="function",et=typeof Element=="function"&&typeof Element.prototype.animate=="function"&&Lt,Ln=100,Fn=()=>Ye,En=P=>(K.forEach(V=>{V.destroy(P)}),An(P),Z.length=0,K.length=0,s.length=0,S(),u=!1,D=!0,L),An=P=>{A(),P&&R()},dn=()=>{m=!1,v=!1,D=!0,y=void 0,C=void 0,E=void 0,b=0,N=!1,k=!0,B=!1},kn=()=>b!==0&&!B,fn=(P,V)=>((V!=null&&V.oneTimeCallback?se:ae).push({c:P,o:V}),L),S=()=>(ae.length=0,se.length=0,L),A=()=>{if(et)Ye.forEach(P=>{P.cancel()}),Ye.length=0;else{const P=Z.slice();We(()=>{P.forEach(V=>{Qt(V,"animation-name"),Qt(V,"animation-duration"),Qt(V,"animation-timing-function"),Qt(V,"animation-iteration-count"),Qt(V,"animation-delay"),Qt(V,"animation-play-state"),Qt(V,"animation-fill-mode"),Qt(V,"animation-direction")})})}},R=()=>{Te.forEach(P=>{P!=null&&P.parentNode&&P.parentNode.removeChild(P)}),Te.length=0},W=P=>(Re.push(P),L),ee=P=>(Me.push(P),L),de=P=>(je.push(P),L),Ft=P=>(Et.push(P),L),Xt=P=>(l=go(l,P),L),Na=P=>(c=go(c,P),L),Pa=(P={})=>(f=P,L),Be=(P=[])=>{for(const V of P)f[V]="";return L},F=P=>(h=go(h,P),L),$=P=>(p=go(p,P),L),ht=(P={})=>(g=P,L),ot=(P=[])=>{for(const V of P)g[V]="";return L},Cn=()=>o!==void 0?o:d?d.getFill():"both",qt=()=>y!==void 0?y:a!==void 0?a:d?d.getDirection():"normal",Kt=()=>m?"linear":r!==void 0?r:d?d.getEasing():"linear",Xe=()=>v?0:C!==void 0?C:n!==void 0?n:d?d.getDuration():0,hn=()=>i!==void 0?i:d?d.getIterations():1,Sn=()=>E!==void 0?E:e!==void 0?e:d?d.getDelay():0,zg=()=>s,Wg=P=>(a=P,Bt(!0),L),Gg=P=>(o=P,Bt(!0),L),jg=P=>(e=P,Bt(!0),L),Yg=P=>(r=P,Bt(!0),L),Xg=P=>(!et&&P===0&&(P=1),n=P,Bt(!0),L),qg=P=>(i=P,Bt(!0),L),Kg=P=>(d=P,L),Zg=P=>{if(P!=null)if(P.nodeType===1)Z.push(P);else if(P.length>=0)for(let V=0;V<P.length;V++)Z.push(P[V]);else console.error("Invalid addElement value");return L},Jg=P=>{if(P!=null)if(Array.isArray(P))for(const V of P)V.parent(L),K.push(V);else P.parent(L),K.push(P);return L},Qg=P=>{const V=s!==P;return s=P,V&&e1(s),L},e1=P=>{et?Fn().forEach(V=>{if(V.effect.setKeyframes)V.effect.setKeyframes(P);else{const j=new KeyframeEffect(V.effect.target,P,V.effect.getTiming());V.effect=j}}):Uc()},t1=()=>{Re.forEach(qe=>qe()),Me.forEach(qe=>qe());const P=l,V=c,j=f;Z.forEach(qe=>{const at=qe.classList;P.forEach($t=>at.add($t)),V.forEach($t=>at.remove($t));for(const $t in j)j.hasOwnProperty($t)&&Le(qe,$t,j[$t])})},n1=()=>{Ra(),je.forEach(at=>at()),Et.forEach(at=>at());const P=k?1:0,V=h,j=p,qe=g;Z.forEach(at=>{const $t=at.classList;V.forEach(or=>$t.add(or)),j.forEach(or=>$t.remove(or));for(const or in qe)qe.hasOwnProperty(or)&&Le(at,or,qe[or])}),ae.forEach(at=>at.c(P,L)),se.forEach(at=>at.c(P,L)),se.length=0,D=!0,k&&(N=!0),k=!0},Br=()=>{b!==0&&(b--,b===0&&(n1(),d&&d.animationFinish()))},Uc=(P=!0)=>{R();const V=Ry(s);Z.forEach(j=>{if(V.length>0){const qe=Fy(V);O=t!==void 0?t:By(qe);const at=Vy(O,qe,j);Te.push(at),Le(j,"animation-duration",`${Xe()}ms`),Le(j,"animation-timing-function",Kt()),Le(j,"animation-delay",`${Sn()}ms`),Le(j,"animation-fill-mode",Cn()),Le(j,"animation-direction",qt());const $t=hn()===1/0?"infinite":hn().toString();Le(j,"animation-iteration-count",$t),Le(j,"animation-play-state","paused"),P&&Le(j,"animation-name",`${at.id}-alt`),We(()=>{Le(j,"animation-name",at.id||null)})}})},r1=()=>{Z.forEach(P=>{const V=P.animate(s,{id:G,delay:Sn(),duration:Xe(),easing:Kt(),iterations:hn(),fill:Cn(),direction:qt()});V.pause(),Ye.push(V)}),Ye.length>0&&(Ye[0].onfinish=()=>{Br()})},Hc=(P=!0)=>{t1(),s.length>0&&(et?r1():Uc(P)),u=!0},pi=P=>{if(P=Math.min(Math.max(P,0),.9999),et)Ye.forEach(V=>{V.currentTime=V.effect.getComputedTiming().delay+Xe()*P,V.pause()});else{const V=`-${Xe()*P}ms`;Z.forEach(j=>{s.length>0&&(Le(j,"animation-delay",V),Le(j,"animation-play-state","paused"))})}},zc=P=>{Ye.forEach(V=>{V.effect.updateTiming({delay:Sn(),duration:Xe(),easing:Kt(),iterations:hn(),fill:Cn(),direction:qt()})}),P!==void 0&&pi(P)},Wc=(P=!0,V)=>{We(()=>{Z.forEach(j=>{Le(j,"animation-name",O||null),Le(j,"animation-duration",`${Xe()}ms`),Le(j,"animation-timing-function",Kt()),Le(j,"animation-delay",V!==void 0?`-${V*Xe()}ms`:`${Sn()}ms`),Le(j,"animation-fill-mode",Cn()||null),Le(j,"animation-direction",qt()||null);const qe=hn()===1/0?"infinite":hn().toString();Le(j,"animation-iteration-count",qe),P&&Le(j,"animation-name",`${O}-alt`),We(()=>{Le(j,"animation-name",O||null)})})})},Bt=(P=!1,V=!0,j)=>(P&&K.forEach(qe=>{qe.update(P,V,j)}),et?zc(j):Wc(V,j),L),i1=(P=!1,V)=>(K.forEach(j=>{j.progressStart(P,V)}),Gc(),m=P,u||Hc(),Bt(!1,!0,V),L),o1=P=>(K.forEach(V=>{V.progressStep(P)}),pi(P),L),a1=(P,V,j)=>(m=!1,K.forEach(qe=>{qe.progressEnd(P,V,j)}),j!==void 0&&(C=j),N=!1,k=!0,P===0?(y=qt()==="reverse"?"normal":"reverse",y==="reverse"&&(k=!1),et?(Bt(),pi(1-V)):(E=(1-V)*Xe()*-1,Bt(!1,!1))):P===1&&(et?(Bt(),pi(V)):(E=V*Xe()*-1,Bt(!1,!1))),P!==void 0&&(fn(()=>{C=void 0,y=void 0,E=void 0},{oneTimeCallback:!0}),d||jc()),L),Gc=()=>{u&&(et?Ye.forEach(P=>{P.pause()}):Z.forEach(P=>{Le(P,"animation-play-state","paused")}),B=!0)},s1=()=>(K.forEach(P=>{P.pause()}),Gc(),L),l1=()=>{w=void 0,Br()},Ra=()=>{w&&clearTimeout(w)},c1=()=>{if(Ra(),We(()=>{Z.forEach(P=>{s.length>0&&Le(P,"animation-play-state","running")})}),s.length===0||Z.length===0)Br();else{const P=Sn()||0,V=Xe()||0,j=hn()||1;isFinite(j)&&(w=setTimeout(l1,P+V*j+Ln)),Ly(Z[0],()=>{Ra(),We(()=>{u1(),We(Br)})})}},u1=()=>{Z.forEach(P=>{Qt(P,"animation-duration"),Qt(P,"animation-delay"),Qt(P,"animation-play-state")})},d1=()=>{Ye.forEach(P=>{P.play()}),(s.length===0||Z.length===0)&&Br()},f1=()=>{et?(pi(0),zc()):Wc()},jc=P=>new Promise(V=>{P!=null&&P.sync&&(v=!0,fn(()=>v=!1,{oneTimeCallback:!0})),u||Hc(),N&&(f1(),N=!1),D&&(b=K.length+1,D=!1),fn(()=>V(),{oneTimeCallback:!0}),K.forEach(j=>{j.play()}),et?d1():c1(),B=!1}),h1=()=>{K.forEach(P=>{P.stop()}),u&&(A(),u=!1),dn()},Yc=(P,V)=>{const j=s[0];return j!==void 0&&(j.offset===void 0||j.offset===0)?j[P]=V:s=[{offset:0,[P]:V},...s],L};return L={parentAnimation:d,elements:Z,childAnimations:K,id:G,animationFinish:Br,from:Yc,to:(P,V)=>{const j=s[s.length-1];return j!==void 0&&(j.offset===void 0||j.offset===1)?j[P]=V:s=[...s,{offset:1,[P]:V}],L},fromTo:(P,V,j)=>Yc(P,V).to(P,j),parent:Kg,play:jc,pause:s1,stop:h1,destroy:En,keyframes:Qg,addAnimation:Jg,addElement:Zg,update:Bt,fill:Gg,direction:Wg,iterations:qg,duration:Xg,easing:Yg,delay:jg,getWebAnimations:Fn,getKeyframes:zg,getFill:Cn,getDirection:qt,getDelay:Sn,getIterations:hn,getEasing:Kt,getDuration:Xe,afterAddRead:de,afterAddWrite:Ft,afterClearStyles:ot,afterStyles:ht,afterRemoveClass:$,afterAddClass:F,beforeAddRead:W,beforeAddWrite:ee,beforeClearStyles:Be,beforeStyles:Pa,beforeRemoveClass:Na,beforeAddClass:Xt,onFinish:fn,isRunning:kn,progressStart:i1,progressStep:o1,progressEnd:a1}};/*!
|
|
75
75
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
76
|
-
*/const jv=e=>{try{if(e instanceof qv)return e.value;if(!Wv()||typeof e!="string"||e==="")return e;if(e.includes("onload="))return"";const t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,Gv.forEach(s=>{const a=t.querySelectorAll(s);for(let l=a.length-1;l>=0;l--){const c=a[l];c.parentNode?c.parentNode.removeChild(c):t.removeChild(c);const d=Kr(c);for(let u=0;u<d.length;u++)qr(d[u])}});const o=Kr(t);for(let s=0;s<o.length;s++)qr(o[s]);const i=document.createElement("div");i.appendChild(t);const r=i.querySelector("div");return r!==null?r.innerHTML:i.innerHTML}catch(t){return console.error(t),""}},qr=e=>{if(e.nodeType&&e.nodeType!==1)return;if(typeof NamedNodeMap<"u"&&!(e.attributes instanceof NamedNodeMap)){e.remove();return}for(let n=e.attributes.length-1;n>=0;n--){const o=e.attributes.item(n),i=o.name;if(!Yv.includes(i.toLowerCase())){e.removeAttribute(i);continue}const r=o.value,s=e[i];(r!=null&&r.toLowerCase().includes("javascript:")||s!=null&&s.toLowerCase().includes("javascript:"))&&e.removeAttribute(i)}const t=Kr(e);for(let n=0;n<t.length;n++)qr(t[n])},Kr=e=>e.children!=null?e.children:e.childNodes,Wv=()=>{var e;const t=window,n=(e=t==null?void 0:t.Ionic)===null||e===void 0?void 0:e.config;return n?n.get?n.get("sanitizerEnabled",!0):n.sanitizerEnabled===!0||n.sanitizerEnabled===void 0:!0},Yv=["class","id","href","src","name","slot"],Gv=["script","style","iframe","meta","link","object","embed"];class qv{constructor(t){this.value=t}}const Kv=!0;/*!
|
|
76
|
+
*/const Uy=t=>{if(!t)return{arrowWidth:0,arrowHeight:0};const{width:e,height:n}=t.getBoundingClientRect();return{arrowWidth:e,arrowHeight:n}},O0=(t,e,n)=>{const r=e.getBoundingClientRect(),i=r.height;let o=r.width;return t==="cover"&&n&&(o=n.getBoundingClientRect().width),{contentWidth:o,contentHeight:i}},Hy=(t,e,n,r)=>{let i=[];const a=St(r).querySelector(".popover-content");switch(e){case"hover":i=[{eventName:"mouseenter",callback:s=>{document.elementFromPoint(s.clientX,s.clientY)!==t&&n.dismiss(void 0,void 0,!1)}}];break;case"context-menu":case"click":default:i=[{eventName:"click",callback:s=>{if(s.target.closest("[data-ion-popover-trigger]")===t){s.stopPropagation();return}n.dismiss(void 0,void 0,!1)}}];break}return i.forEach(({eventName:s,callback:l})=>a.addEventListener(s,l)),()=>{i.forEach(({eventName:s,callback:l})=>a.removeEventListener(s,l))}},zy=(t,e,n)=>{let r=[];switch(e){case"hover":let i;r=[{eventName:"mouseenter",callback:async o=>{o.stopPropagation(),i&&clearTimeout(i),i=setTimeout(()=>{We(()=>{n.presentFromTrigger(o),i=void 0})},100)}},{eventName:"mouseleave",callback:o=>{i&&clearTimeout(i);const a=o.relatedTarget;a&&a.closest("ion-popover")!==n&&n.dismiss(void 0,void 0,!1)}},{eventName:"click",callback:o=>o.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:o=>n.presentFromTrigger(o,!0)}];break;case"context-menu":r=[{eventName:"contextmenu",callback:o=>{o.preventDefault(),n.presentFromTrigger(o)}},{eventName:"click",callback:o=>o.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:o=>n.presentFromTrigger(o,!0)}];break;case"click":default:r=[{eventName:"click",callback:o=>n.presentFromTrigger(o)},{eventName:"ionPopoverActivateTrigger",callback:o=>n.presentFromTrigger(o,!0)}];break}return r.forEach(({eventName:i,callback:o})=>t.addEventListener(i,o)),t.setAttribute("data-ion-popover-trigger","true"),()=>{r.forEach(({eventName:i,callback:o})=>t.removeEventListener(i,o)),t.removeAttribute("data-ion-popover-trigger")}},D0=(t,e)=>!e||e.tagName!=="ION-ITEM"?-1:t.findIndex(n=>n===e),Wy=(t,e)=>{const n=D0(t,e);return t[n+1]},Gy=(t,e)=>{const n=D0(t,e);return t[n-1]},mo=t=>{const n=St(t).querySelector("button");n&&We(()=>n.focus())},jy=t=>t.hasAttribute("data-ion-popover-trigger"),Yy=t=>{const e=async n=>{var r;const i=document.activeElement;let o=[];const a=(r=n.target)===null||r===void 0?void 0:r.tagName;if(!(a!=="ION-POPOVER"&&a!=="ION-ITEM")){try{o=Array.from(t.querySelectorAll("ion-item:not(ion-popover ion-popover *):not([disabled])"))}catch{}switch(n.key){case"ArrowLeft":await t.getParentPopover()&&t.dismiss(void 0,void 0,!1);break;case"ArrowDown":n.preventDefault();const l=Wy(o,i);l!==void 0&&mo(l);break;case"ArrowUp":n.preventDefault();const c=Gy(o,i);c!==void 0&&mo(c);break;case"Home":n.preventDefault();const u=o[0];u!==void 0&&mo(u);break;case"End":n.preventDefault();const d=o[o.length-1];d!==void 0&&mo(d);break;case"ArrowRight":case" ":case"Enter":if(i&&jy(i)){const f=new CustomEvent("ionPopoverActivateTrigger");i.dispatchEvent(f)}break}}};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},N0=(t,e,n,r,i,o,a,s,l,c,u)=>{var d;let f={top:0,left:0,width:0,height:0};switch(o){case"event":if(!u)return l;const C=u;f={top:C.clientY,left:C.clientX,width:1,height:1};break;case"trigger":default:const E=u,k=c||((d=E==null?void 0:E.detail)===null||d===void 0?void 0:d.ionShadowTarget)||(E==null?void 0:E.target);if(!k)return l;const N=k.getBoundingClientRect();f={top:N.top,left:N.left,width:N.width,height:N.height};break}const h=Ky(a,f,e,n,r,i,t),p=Zy(s,a,f,e,n),g=h.top+p.top,b=h.left+p.left,{arrowTop:m,arrowLeft:v}=qy(a,r,i,g,b,e,n,t),{originX:w,originY:y}=Xy(a,s,t);return{top:g,left:b,referenceCoordinates:f,arrowTop:m,arrowLeft:v,originX:w,originY:y}},Xy=(t,e,n)=>{switch(t){case"top":return{originX:Hu(e),originY:"bottom"};case"bottom":return{originX:Hu(e),originY:"top"};case"left":return{originX:"right",originY:vo(e)};case"right":return{originX:"left",originY:vo(e)};case"start":return{originX:n?"left":"right",originY:vo(e)};case"end":return{originX:n?"right":"left",originY:vo(e)}}},Hu=t=>{switch(t){case"start":return"left";case"center":return"center";case"end":return"right"}},vo=t=>{switch(t){case"start":return"top";case"center":return"center";case"end":return"bottom"}},qy=(t,e,n,r,i,o,a,s)=>{const l={arrowTop:r+a/2-e/2,arrowLeft:i+o-e/2},c={arrowTop:r+a/2-e/2,arrowLeft:i-e*1.5};switch(t){case"top":return{arrowTop:r+a,arrowLeft:i+o/2-e/2};case"bottom":return{arrowTop:r-n,arrowLeft:i+o/2-e/2};case"left":return l;case"right":return c;case"start":return s?c:l;case"end":return s?l:c;default:return{arrowTop:0,arrowLeft:0}}},Ky=(t,e,n,r,i,o,a)=>{const s={top:e.top,left:e.left-n-i},l={top:e.top,left:e.left+e.width+i};switch(t){case"top":return{top:e.top-r-o,left:e.left};case"right":return l;case"bottom":return{top:e.top+e.height+o,left:e.left};case"left":return s;case"start":return a?l:s;case"end":return a?s:l}},Zy=(t,e,n,r,i)=>{switch(t){case"center":return Qy(e,n,r,i);case"end":return Jy(e,n,r,i);case"start":default:return{top:0,left:0}}},Jy=(t,e,n,r)=>{switch(t){case"start":case"end":case"left":case"right":return{top:-(r-e.height),left:0};case"top":case"bottom":default:return{top:0,left:-(n-e.width)}}},Qy=(t,e,n,r)=>{switch(t){case"start":case"end":case"left":case"right":return{top:-(r/2-e.height/2),left:0};case"top":case"bottom":default:return{top:0,left:-(n/2-e.width/2)}}},P0=(t,e,n,r,i,o,a,s,l,c,u,d,f=0,h=0,p=0)=>{let g=f;const b=h;let m=n,v=e,w,y=c,C=u,E=!1,k=!1;const N=d?d.top+d.height:o/2-s/2,D=d?d.height:0;let O=!1;return m<r+l?(m=r,E=!0,y="left"):a+r+m+l>i&&(k=!0,m=i-a-r,y="right"),N+D+s>o&&(t==="top"||t==="bottom")&&(N-s>0?(v=Math.max(12,N-s-D-(p-1)),g=v+s,C="bottom",O=!0):w=r),{top:v,left:m,bottom:w,originX:y,originY:C,checkSafeAreaLeft:E,checkSafeAreaRight:k,arrowTop:g,arrowLeft:b,addPopoverBottomClass:O}},e2=(t,e=!1,n,r)=>!(!n&&!r||t!=="top"&&t!=="bottom"&&e),t2=5,n2=(t,e)=>{var n;const{event:r,size:i,trigger:o,reference:a,side:s,align:l}=e,c=t.ownerDocument,u=c.dir==="rtl",d=c.defaultView.innerWidth,f=c.defaultView.innerHeight,h=St(t),p=h.querySelector(".popover-content"),g=h.querySelector(".popover-arrow"),b=o||((n=r==null?void 0:r.detail)===null||n===void 0?void 0:n.ionShadowTarget)||(r==null?void 0:r.target),{contentWidth:m,contentHeight:v}=O0(i,p,b),{arrowWidth:w,arrowHeight:y}=Uy(g),C={top:f/2-v/2,left:d/2-m/2,originX:u?"right":"left",originY:"top"},E=N0(u,m,v,w,y,a,s,l,C,o,r),k=i==="cover"?0:t2,N=i==="cover"?0:25,{originX:D,originY:O,top:L,left:B,bottom:G,checkSafeAreaLeft:ae,checkSafeAreaRight:se,arrowTop:Z,arrowLeft:K,addPopoverBottomClass:Te}=P0(s,E.top,E.left,k,d,f,m,v,N,E.originX,E.originY,E.referenceCoordinates,E.arrowTop,E.arrowLeft,y),Re=X(),Me=X(),je=X();return Me.addElement(h.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),je.addElement(h.querySelector(".popover-wrapper")).fromTo("opacity",.01,1),Re.easing("ease").duration(100).beforeAddWrite(()=>{i==="cover"&&t.style.setProperty("--width",`${m}px`),Te&&t.classList.add("popover-bottom"),G!==void 0&&p.style.setProperty("bottom",`${G}px`);const Et=" + var(--ion-safe-area-left, 0)",Ye=" - var(--ion-safe-area-right, 0)";let Lt=`${B}px`;if(ae&&(Lt=`${B}px${Et}`),se&&(Lt=`${B}px${Ye}`),p.style.setProperty("top",`calc(${L}px + var(--offset-y, 0))`),p.style.setProperty("left",`calc(${Lt} + var(--offset-x, 0))`),p.style.setProperty("transform-origin",`${O} ${D}`),g!==null){const et=E.top!==L||E.left!==B;e2(s,et,r,o)?(g.style.setProperty("top",`calc(${Z}px + var(--offset-y, 0))`),g.style.setProperty("left",`calc(${K}px + var(--offset-x, 0))`)):g.style.setProperty("display","none")}}).addAnimation([Me,je])},r2=t=>{const e=St(t),n=e.querySelector(".popover-content"),r=e.querySelector(".popover-arrow"),i=X(),o=X(),a=X();return o.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),a.addElement(e.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),i.easing("ease").afterAddWrite(()=>{t.style.removeProperty("--width"),t.classList.remove("popover-bottom"),n.style.removeProperty("top"),n.style.removeProperty("left"),n.style.removeProperty("bottom"),n.style.removeProperty("transform-origin"),r&&(r.style.removeProperty("top"),r.style.removeProperty("left"),r.style.removeProperty("display"))}).duration(300).addAnimation([o,a])},i2=12,o2=(t,e)=>{var n;const{event:r,size:i,trigger:o,reference:a,side:s,align:l}=e,c=t.ownerDocument,u=c.dir==="rtl",d=c.defaultView.innerWidth,f=c.defaultView.innerHeight,h=St(t),p=h.querySelector(".popover-content"),g=o||((n=r==null?void 0:r.detail)===null||n===void 0?void 0:n.ionShadowTarget)||(r==null?void 0:r.target),{contentWidth:b,contentHeight:m}=O0(i,p,g),v={top:f/2-m/2,left:d/2-b/2,originX:u?"right":"left",originY:"top"},w=N0(u,b,m,0,0,a,s,l,v,o,r),y=i==="cover"?0:i2,{originX:C,originY:E,top:k,left:N,bottom:D}=P0(s,w.top,w.left,y,d,f,b,m,0,w.originX,w.originY,w.referenceCoordinates),O=X(),L=X(),B=X(),G=X(),ae=X();return L.addElement(h.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),B.addElement(h.querySelector(".popover-wrapper")).duration(150).fromTo("opacity",.01,1),G.addElement(p).beforeStyles({top:`calc(${k}px + var(--offset-y, 0px))`,left:`calc(${N}px + var(--offset-x, 0px))`,"transform-origin":`${E} ${C}`}).beforeAddWrite(()=>{D!==void 0&&p.style.setProperty("bottom",`${D}px`)}).fromTo("transform","scale(0.8)","scale(1)"),ae.addElement(h.querySelector(".popover-viewport")).fromTo("opacity",.01,1),O.easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).beforeAddWrite(()=>{i==="cover"&&t.style.setProperty("--width",`${b}px`),E==="bottom"&&t.classList.add("popover-bottom")}).addAnimation([L,B,G,ae])},a2=t=>{const e=St(t),n=e.querySelector(".popover-content"),r=X(),i=X(),o=X();return i.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),o.addElement(e.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),r.easing("ease").afterAddWrite(()=>{t.style.removeProperty("--width"),t.classList.remove("popover-bottom"),n.style.removeProperty("top"),n.style.removeProperty("left"),n.style.removeProperty("bottom"),n.style.removeProperty("transform-origin")}).duration(150).addAnimation([i,o])},s2=':host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{opacity:0;z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}:host{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}:host(.popover-desktop){--box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.12)}.popover-content{border-radius:10px}:host(.popover-desktop) .popover-content{border:0.5px solid var(--ion-color-step-100, #e6e6e6)}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden}.popover-arrow::after{left:3px;top:3px;border-radius:3px;position:absolute;width:14px;height:14px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--background);content:"";z-index:10}[dir=rtl] .popover-arrow::after,:host-context([dir=rtl]) .popover-arrow::after{left:unset;right:unset;right:3px}:host(.popover-bottom) .popover-arrow{top:auto;bottom:-10px}:host(.popover-bottom) .popover-arrow::after{top:-6px}:host(.popover-side-left) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host(.popover-side-right) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-top) .popover-arrow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.popover-side-start) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow,:host-context([dir=rtl]).popover-side-start .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-end) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow,:host-context([dir=rtl]).popover-side-end .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.popover-translucent) .popover-content,:host(.popover-translucent) .popover-arrow::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}',l2=":host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{opacity:0;z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}:host{--width:250px;--max-height:90%;--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content{border-radius:4px;-webkit-transform-origin:left top;transform-origin:left top}[dir=rtl] .popover-content,:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}",c2=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=te(this,"ionPopoverDidPresent",7),this.willPresent=te(this,"ionPopoverWillPresent",7),this.willDismiss=te(this,"ionPopoverWillDismiss",7),this.didDismiss=te(this,"ionPopoverDidDismiss",7),this.didPresentShorthand=te(this,"didPresent",7),this.willPresentShorthand=te(this,"willPresent",7),this.willDismissShorthand=te(this,"willDismiss",7),this.didDismissShorthand=te(this,"didDismiss",7),this.ionMount=te(this,"ionMount",7),this.parentPopover=null,this.popoverIndex=d2++,this.coreDelegate=C0(),this.inline=!1,this.focusDescendantOnPresent=!1,this.presented=!1,this.hasController=!1,this.keyboardClose=!0,this.backdropDismiss=!0,this.showBackdrop=!0,this.translucent=!1,this.animated=!0,this.triggerAction="click",this.size="auto",this.dismissOnSelect=!1,this.reference="trigger",this.side="bottom",this.arrow=!0,this.isOpen=!1,this.keyboardEvents=!1,this.keepContentsMounted=!1,this.onBackdropTap=()=>{this.dismiss(void 0,Cr)},this.onLifecycle=t=>{const e=this.usersElement,n=u2[t.type];if(e&&n){const r=new CustomEvent(n,{bubbles:!1,cancelable:!1,detail:t.detail});e.dispatchEvent(r)}},this.configureTriggerInteraction=()=>{const{trigger:t,triggerAction:e,el:n,destroyTriggerInteraction:r}=this;if(r&&r(),t===void 0)return;const i=this.triggerEl=t!==void 0?document.getElementById(t):null;if(!i){Yn(`A trigger element with the ID "${t}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on ion-popover.`,this.el);return}this.destroyTriggerInteraction=zy(i,e,n)},this.configureKeyboardInteraction=()=>{const{destroyKeyboardInteraction:t,el:e}=this;t&&t(),this.destroyKeyboardInteraction=Yy(e)},this.configureDismissInteraction=()=>{const{destroyDismissInteraction:t,parentPopover:e,triggerAction:n,triggerEl:r,el:i}=this;!e||!r||(t&&t(),this.destroyDismissInteraction=Hy(r,n,i,e))}}onTriggerChange(){this.configureTriggerInteraction()}onIsOpenChange(t,e){t===!0&&e===!1?this.present():t===!1&&e===!0&&this.dismiss()}connectedCallback(){const{configureTriggerInteraction:t,el:e}=this;va(e),t()}disconnectedCallback(){const{destroyTriggerInteraction:t}=this;t&&t()}componentWillLoad(){this.popoverId=this.el.hasAttribute("id")?this.el.getAttribute("id"):`ion-popover-${this.popoverIndex}`,this.parentPopover=this.el.closest(`ion-popover:not(#${this.popoverId})`),this.alignment===void 0&&(this.alignment=ie(this)==="ios"?"center":"start")}componentDidLoad(){const{parentPopover:t,isOpen:e}=this;e===!0&&We(()=>this.present()),t&&Xl(t,"ionPopoverWillDismiss",()=>{this.dismiss(void 0,void 0,!1)})}async presentFromTrigger(t,e=!1){this.focusDescendantOnPresent=e,await this.present(t),this.focusDescendantOnPresent=!1}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const e=this.el.parentNode,n=this.inline=e!==null&&!this.hasController,r=this.workingDelegate=n?this.delegate||this.coreDelegate:this.delegate;return{inline:n,delegate:r}}async present(t){if(this.presented)return;this.currentTransition!==void 0&&await this.currentTransition;const{inline:e,delegate:n}=this.getDelegate(!0);return this.usersElement=await A0(n,this.el,this.component,["popover-viewport"],this.componentProps,e),await nc(this.usersElement),this.keyboardEvents||this.configureKeyboardInteraction(),this.configureDismissInteraction(),this.ionMount.emit(),new Promise(r=>{We(()=>{We(async()=>{this.currentTransition=ba(this,"popoverEnter",n2,o2,{event:t||this.event,size:this.size,trigger:this.triggerEl,reference:this.reference,side:this.side,align:this.alignment}),await this.currentTransition,this.currentTransition=void 0,this.focusDescendantOnPresent&&Vs(this.el,this.el),r()})})})}async dismiss(t,e,n=!0){this.currentTransition!==void 0&&await this.currentTransition;const{destroyKeyboardInteraction:r,destroyDismissInteraction:i}=this;n&&this.parentPopover&&this.parentPopover.dismiss(t,e,n),this.currentTransition=xa(this,t,e,"popoverLeave",r2,a2,this.event);const o=await this.currentTransition;if(o){r&&(r(),this.destroyKeyboardInteraction=void 0),i&&(i(),this.destroyDismissInteraction=void 0);const{delegate:a}=this.getDelegate();await k0(a,this.usersElement)}return this.currentTransition=void 0,o}async getParentPopover(){return this.parentPopover}onDidDismiss(){return tr(this.el,"ionPopoverDidDismiss")}onWillDismiss(){return tr(this.el,"ionPopoverWillDismiss")}render(){const t=ie(this),{onLifecycle:e,popoverId:n,parentPopover:r,dismissOnSelect:i,side:o,arrow:a,htmlAttributes:s}=this,l=Tb("desktop"),c=a&&!r;return I(xe,Object.assign({"aria-modal":"true","no-router":!0,tabindex:"-1"},s,{style:{zIndex:`${2e4+this.overlayIndex}`},id:n,class:Object.assign(Object.assign({},Yt(this.cssClass)),{[t]:!0,"popover-translucent":this.translucent,"overlay-hidden":!0,"popover-desktop":l,[`popover-side-${o}`]:!0,"popover-nested":!!r}),onIonPopoverDidPresent:e,onIonPopoverWillPresent:e,onIonPopoverWillDismiss:e,onIonPopoverDidDismiss:e,onIonBackdropTap:this.onBackdropTap}),!r&&I("ion-backdrop",{tappable:this.backdropDismiss,visible:this.showBackdrop,part:"backdrop"}),I("div",{class:"popover-wrapper ion-overlay-wrapper",onClick:i?()=>this.dismiss():void 0},c&&I("div",{class:"popover-arrow",part:"arrow"}),I("div",{class:"popover-content",part:"content"},I("slot",null))))}get el(){return this}static get watchers(){return{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}}static get style(){return{ios:s2,md:l2}}},[33,"ion-popover",{hasController:[4,"has-controller"],delegate:[16],overlayIndex:[2,"overlay-index"],enterAnimation:[16],leaveAnimation:[16],component:[1],componentProps:[16],keyboardClose:[4,"keyboard-close"],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],event:[8],showBackdrop:[4,"show-backdrop"],translucent:[4],animated:[4],htmlAttributes:[16],triggerAction:[1,"trigger-action"],trigger:[1],size:[1],dismissOnSelect:[4,"dismiss-on-select"],reference:[1],side:[1],alignment:[1025],arrow:[4],isOpen:[4,"is-open"],keyboardEvents:[4,"keyboard-events"],keepContentsMounted:[4,"keep-contents-mounted"],presented:[32],presentFromTrigger:[64],present:[64],dismiss:[64],getParentPopover:[64],onDidDismiss:[64],onWillDismiss:[64]}]),u2={ionPopoverDidPresent:"ionViewDidEnter",ionPopoverWillPresent:"ionViewWillEnter",ionPopoverWillDismiss:"ionViewWillLeave",ionPopoverDidDismiss:"ionViewDidLeave"};let d2=0;function f2(){if(typeof customElements>"u")return;["ion-popover","ion-backdrop"].forEach(e=>{switch(e){case"ion-popover":customElements.get(e)||customElements.define(e,c2);break;case"ion-backdrop":customElements.get(e)||eo();break}})}/*!
|
|
77
77
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
78
|
-
*/const
|
|
78
|
+
*/const h2="ION-CONTENT",R0="ion-content",M0=".ion-content-scroll-host",L0=`${R0}, ${M0}`,Ko=t=>t.tagName===h2,p2=t=>{const e=t.querySelector(M0);return e||t.querySelector(L0)},g2=t=>t.closest(L0),m2=t=>hx(t,R0),zu=t=>{if(Ko(t)){const e=t,n=e.scrollY;return e.scrollY=!1,n}else return t.style.setProperty("overflow","hidden"),!0},v2=(t,e)=>{Ko(t)?t.scrollY=e:t.style.removeProperty("overflow")};/*!
|
|
79
79
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
80
|
-
*/const
|
|
80
|
+
*/const b2=t=>{let e,n,r;const i=()=>{e=()=>{r=!0,t&&t(!0)},n=()=>{r=!1,t&&t(!1)},ke==null||ke.addEventListener("keyboardWillShow",e),ke==null||ke.addEventListener("keyboardWillHide",n)},o=()=>{ke==null||ke.removeEventListener("keyboardWillShow",e),ke==null||ke.removeEventListener("keyboardWillHide",n),e=n=void 0},a=()=>r;return i(),{init:i,destroy:o,isKeyboardVisible:a}};/*!
|
|
81
81
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
82
|
-
*/const
|
|
82
|
+
*/const x2=t=>{try{if(t instanceof E2)return t.value;if(!y2()||typeof t!="string"||t==="")return t;if(t.includes("onload="))return"";const e=document.createDocumentFragment(),n=document.createElement("div");e.appendChild(n),n.innerHTML=t,_2.forEach(a=>{const s=e.querySelectorAll(a);for(let l=s.length-1;l>=0;l--){const c=s[l];c.parentNode?c.parentNode.removeChild(c):e.removeChild(c);const u=Hs(c);for(let d=0;d<u.length;d++)Us(u[d])}});const r=Hs(e);for(let a=0;a<r.length;a++)Us(r[a]);const i=document.createElement("div");i.appendChild(e);const o=i.querySelector("div");return o!==null?o.innerHTML:i.innerHTML}catch(e){return console.error(e),""}},Us=t=>{if(t.nodeType&&t.nodeType!==1)return;if(typeof NamedNodeMap<"u"&&!(t.attributes instanceof NamedNodeMap)){t.remove();return}for(let n=t.attributes.length-1;n>=0;n--){const r=t.attributes.item(n),i=r.name;if(!w2.includes(i.toLowerCase())){t.removeAttribute(i);continue}const o=r.value,a=t[i];(o!=null&&o.toLowerCase().includes("javascript:")||a!=null&&a.toLowerCase().includes("javascript:"))&&t.removeAttribute(i)}const e=Hs(t);for(let n=0;n<e.length;n++)Us(e[n])},Hs=t=>t.children!=null?t.children:t.childNodes,y2=()=>{var t;const e=window,n=(t=e==null?void 0:e.Ionic)===null||t===void 0?void 0:t.config;return n?n.get?n.get("sanitizerEnabled",!0):n.sanitizerEnabled===!0||n.sanitizerEnabled===void 0:!0},w2=["class","id","href","src","name","slot"],_2=["script","style","iframe","meta","link","object","embed"];class E2{constructor(e){this.value=e}}const A2=!0;/*!
|
|
83
83
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
84
|
-
*/const
|
|
84
|
+
*/const k2=Ql;/*!
|
|
85
85
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
86
|
-
*/const
|
|
86
|
+
*/const C2=ec;/*!
|
|
87
87
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
88
|
-
*/const
|
|
88
|
+
*/const S2="ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{margin-left:16px;margin-right:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.list-ios.list-inset{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}.list-ios.list-inset ion-item:last-child{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-ios-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 0.55px 0}.list-ios-lines-inset .item-lines-default{--inner-border-width:0 0 0.55px 0;--border-width:0px}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",I2="ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-md>.input:last-child::after{left:0}[dir=rtl] .list-md>.input:last-child::after,:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}.list-md.list-inset{margin-left:16px;margin-right:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.list-md.list-inset{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}.list-md.list-inset ion-item:first-child{--border-radius:2px 2px 0 0}.list-md.list-inset ion-item:last-child{--border-radius:0 0 2px, 2px;--border-width:0;--inner-border-width:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-md-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 1px 0}.list-md-lines-inset .item-lines-default{--inner-border-width:0 0 1px 0;--border-width:0px}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",T2=we(class extends _e{constructor(){super(),this.__registerHost(),this.inset=!1}async closeSlidingItems(){const t=this.el.querySelector("ion-item-sliding");return t!=null&&t.closeOpened?t.closeOpened():!1}render(){const t=ie(this),{lines:e,inset:n}=this;return I(xe,{role:"list",class:{[t]:!0,[`list-${t}`]:!0,"list-inset":n,[`list-lines-${e}`]:e!==void 0,[`list-${t}-lines-${e}`]:e!==void 0}})}get el(){return this}static get style(){return{ios:S2,md:I2}}},[32,"ion-list",{lines:[1],inset:[4],closeSlidingItems:[64]}]);function F0(){if(typeof customElements>"u")return;["ion-list"].forEach(e=>{switch(e){case"ion-list":customElements.get(e)||customElements.define(e,T2);break}})}/*!
|
|
89
89
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
90
|
-
*/const
|
|
90
|
+
*/const O2=":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-color-step-850, #262626);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));padding-left:calc(var(--ion-safe-area-left, 0px) + 20px);position:relative;-ms-flex-align:end;align-items:flex-end;font-size:22px;font-weight:700;letter-spacing:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0px) + 20px);padding-inline-start:calc(var(--ion-safe-area-left, 0px) + 20px)}}::slotted(ion-button),::slotted(ion-label){margin-top:29px;margin-bottom:6px}::slotted(ion-button){margin-left:3px;margin-right:3px;height:1.4em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-button){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:3px;margin-inline-end:3px}}:host(.list-header-lines-full){--border-width:0 0 0.55px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 0.55px 0}",D2=":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-text-color, #000);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));padding-left:calc(var(--ion-safe-area-left, 0) + 16px);min-height:45px;font-size:14px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0) + 16px);padding-inline-start:calc(var(--ion-safe-area-left, 0) + 16px)}}:host(.list-header-lines-full){--border-width:0 0 1px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 1px 0}",N2=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){const{lines:t}=this,e=ie(this);return I(xe,{class:Tt(this.color,{[e]:!0,[`list-header-lines-${t}`]:t!==void 0})},I("div",{class:"list-header-inner"},I("slot",null)))}static get style(){return{ios:O2,md:D2}}},[33,"ion-list-header",{color:[513],lines:[1]}]);function B0(){if(typeof customElements>"u")return;["ion-list-header"].forEach(e=>{switch(e){case"ion-list-header":customElements.get(e)||customElements.define(e,N2);break}})}/*!
|
|
91
91
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
92
|
-
*/const
|
|
92
|
+
*/const Wu=(t,e,n,r,i)=>R2(t[1],e[1],n[1],r[1],i).map(o=>P2(t[0],e[0],n[0],r[0],o)),P2=(t,e,n,r,i)=>{const o=3*e*Math.pow(i-1,2),a=-3*n*i+3*n+r*i,s=t*Math.pow(i-1,3);return i*(o+i*a)-s},R2=(t,e,n,r,i)=>(t-=i,e-=i,n-=i,r-=i,L2(r-3*n+3*e-t,3*n-6*e+3*t,3*e-3*t,t).filter(a=>a>=0&&a<=1)),M2=(t,e,n)=>{const r=e*e-4*t*n;return r<0?[]:[(-e+Math.sqrt(r))/(2*t),(-e-Math.sqrt(r))/(2*t)]},L2=(t,e,n,r)=>{if(t===0)return M2(e,n,r);e/=t,n/=t,r/=t;const i=(3*n-e*e)/3,o=(2*e*e*e-9*e*n+27*r)/27;if(i===0)return[Math.pow(-o,1/3)];if(o===0)return[Math.sqrt(-i),-Math.sqrt(-i)];const a=Math.pow(o/2,2)+Math.pow(i/3,3);if(a===0)return[Math.pow(o/2,1/2)-e/3];if(a>0)return[Math.pow(-(o/2)+Math.sqrt(a),1/3)-Math.pow(o/2+Math.sqrt(a),1/3)-e/3];const s=Math.sqrt(Math.pow(-(i/3),3)),l=Math.acos(-(o/(2*Math.sqrt(Math.pow(-(i/3),3))))),c=2*Math.pow(s,1/3);return[c*Math.cos(l/3)-e/3,c*Math.cos((l+2*Math.PI)/3)-e/3,c*Math.cos((l+4*Math.PI)/3)-e/3]};/*!
|
|
93
93
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
94
|
-
*/const py=e=>{const t=G(),n=G(),o=G();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),o.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([n,o])},gy=e=>{const t=G(),n=G(),o=G();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),o.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([n,o])},by=e=>{const t=G(),n=G(),o=G();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),o.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([n,o])},vy=e=>{const t=G(),n=G(),o=G();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),o.addElement(e.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),t.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([n,o])},yy='.sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-ios{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-ios{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color, #fff));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-400, #999999);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:auto;margin-right:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:var(--ion-safe-area-bottom, 0)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-container.sc-ion-action-sheet-ios{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-container.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;-webkit-backdrop-filter:saturate(280%) blur(20px);backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8))), -webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;-webkit-backdrop-filter:saturate(120%);backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, transparent)) bottom/100% 1px no-repeat transparent;background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{padding-left:10px;padding-right:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, #999999));font-size:13px;font-weight:400;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-title.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}.action-sheet-title.action-sheet-has-sub-title.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:6px;padding-bottom:0;font-size:13px;font-weight:400}.action-sheet-button.sc-ion-action-sheet-ios{padding-left:18px;padding-right:18px;padding-top:18px;padding-bottom:18px;height:56px;font-size:20px;contain:strict}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:18px;padding-inline-start:18px;-webkit-padding-end:18px;padding-inline-end:18px}}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:0.3em;font-size:28px;pointer-events:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:unset;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{font-weight:bold}.action-sheet-cancel.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-cancel.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-destructive.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-activated.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-focused.sc-ion-action-sheet-ios{color:var(--ion-color-danger, #eb445a)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #eb445a)}}',wy='.sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-md{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-md{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-md{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-md::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-md:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);--button-background:transparent;--button-background-selected:currentColor;--button-background-selected-opacity:0;--button-background-activated:transparent;--button-background-activated-opacity:0;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-color:var(--ion-color-step-850, #262626);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}.action-sheet-wrapper.sc-ion-action-sheet-md{margin-left:auto;margin-right:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-md{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-title.sc-ion-action-sheet-md{padding-left:16px;padding-right:16px;padding-top:20px;padding-bottom:17px;min-height:60px;color:var(--color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54));font-size:16px;text-align:start}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-title.sc-ion-action-sheet-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:14px}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:var(--ion-safe-area-bottom)}.action-sheet-button.sc-ion-action-sheet-md{padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:0;position:relative;height:52px;font-size:16px;text-align:start;contain:strict;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.action-sheet-icon.sc-ion-action-sheet-md{margin-left:0;margin-right:32px;margin-top:0;margin-bottom:0;color:var(--color);font-size:24px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-icon.sc-ion-action-sheet-md{margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px}}.action-sheet-button-inner.sc-ion-action-sheet-md{-ms-flex-pack:start;justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:bold}',ky=ce(class extends de{constructor(){super(),this.__registerHost(),this.didPresent=q(this,"ionActionSheetDidPresent",7),this.willPresent=q(this,"ionActionSheetWillPresent",7),this.willDismiss=q(this,"ionActionSheetWillDismiss",7),this.didDismiss=q(this,"ionActionSheetDidDismiss",7),this.presented=!1,this.keyboardClose=!0,this.buttons=[],this.backdropDismiss=!0,this.translucent=!1,this.animated=!0,this.onBackdropTap=()=>{this.dismiss(void 0,Xn)},this.dispatchCancelHandler=e=>{const t=e.detail.role;if(yi(t)){const n=this.getButtons().find(o=>o.role==="cancel");this.callButtonHandler(n)}}}present(){return Zs(this,"actionSheetEnter",py,by)}connectedCallback(){Xs(this.el)}dismiss(e,t){return Js(this,e,t,"actionSheetLeave",gy,vy)}onDidDismiss(){return Kn(this.el,"ionActionSheetDidDismiss")}onWillDismiss(){return Kn(this.el,"ionActionSheetWillDismiss")}async buttonClick(e){const t=e.role;return yi(t)?this.dismiss(e.data,t):await this.callButtonHandler(e)?this.dismiss(e.data,e.role):Promise.resolve()}async callButtonHandler(e){return!(e&&await bo(e.handler)===!1)}getButtons(){return this.buttons.map(e=>typeof e=="string"?{text:e}:e)}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentDidLoad(){const{groupEl:e,wrapperEl:t}=this;this.gesture||te(this)==="md"||!t||!e||wu(()=>{e.scrollHeight>e.clientHeight||(this.gesture=qu(t,o=>o.classList.contains("action-sheet-button")),this.gesture.enable(!0))})}render(){const{header:e,htmlAttributes:t,overlayIndex:n}=this,o=te(this),i=this.getButtons(),r=i.find(l=>l.role==="cancel"),s=i.filter(l=>l.role!=="cancel"),a=`action-sheet-${n}-header`;return _(se,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":e!==void 0?a:null,tabindex:"-1"},t,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({[o]:!0},vt(this.cssClass)),{"overlay-hidden":!0,"action-sheet-translucent":this.translucent}),onIonActionSheetWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),_("ion-backdrop",{tappable:this.backdropDismiss}),_("div",{tabindex:"0"}),_("div",{class:"action-sheet-wrapper ion-overlay-wrapper",ref:l=>this.wrapperEl=l},_("div",{class:"action-sheet-container"},_("div",{class:"action-sheet-group",ref:l=>this.groupEl=l},e!==void 0&&_("div",{id:a,class:{"action-sheet-title":!0,"action-sheet-has-sub-title":this.subHeader!==void 0}},e,this.subHeader&&_("div",{class:"action-sheet-sub-title"},this.subHeader)),s.map(l=>_("button",{type:"button",id:l.id,class:$l(l),onClick:()=>this.buttonClick(l)},_("span",{class:"action-sheet-button-inner"},l.icon&&_("ion-icon",{icon:l.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),l.text),o==="md"&&_("ion-ripple-effect",null)))),r&&_("div",{class:"action-sheet-group action-sheet-group-cancel"},_("button",{type:"button",class:$l(r),onClick:()=>this.buttonClick(r)},_("span",{class:"action-sheet-button-inner"},r.icon&&_("ion-icon",{icon:r.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),r.text),o==="md"&&_("ion-ripple-effect",null))))),_("div",{tabindex:"0"}))}get el(){return this}static get style(){return{ios:yy,md:wy}}},[34,"ion-action-sheet",{overlayIndex:[2,"overlay-index"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],buttons:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],header:[1],subHeader:[1,"sub-header"],translucent:[4],animated:[4],htmlAttributes:[16],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]}]),$l=e=>Object.assign({"action-sheet-button":!0,"ion-activatable":!0,"ion-focusable":!0,[`action-sheet-${e.role}`]:e.role!==void 0},vt(e.cssClass));function xy(){if(typeof customElements>"u")return;["ion-action-sheet","ion-backdrop","ion-icon","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-action-sheet":customElements.get(t)||customElements.define(t,ky);break;case"ion-backdrop":customElements.get(t)||$i();break;case"ion-icon":customElements.get(t)||Ni();break;case"ion-ripple-effect":customElements.get(t)||$n();break}})}/*!
|
|
94
|
+
*/const F2=':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color-checked:var(--ion-color-primary, #3880ff);width:15px;height:24px}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{margin-left:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-radio.item-ios ion-label{margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-9px;top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-9px}:host(.in-item){margin-left:10px;margin-right:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:11px;margin-inline-end:11px}}:host(.in-item[slot=start]){margin-left:3px;margin-right:21px;margin-top:8px;margin-bottom:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px}}',B2=':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color:var(--ion-color-step-400, #999999);--color-checked:var(--ion-color-primary, #3880ff);--border-width:2px;--border-style:solid;--border-radius:50%;width:20px;height:20px}:host(.ion-color) .radio-inner{background:var(--ion-color-base)}:host(.ion-color.radio-checked) .radio-icon{border-color:var(--ion-color-base)}.radio-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--color)}.radio-inner{border-radius:var(--inner-border-radius);width:calc(50% + var(--border-width));height:calc(50% + var(--border-width));-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background:var(--color-checked)}:host(.radio-checked) .radio-icon{border-color:var(--color-checked)}:host(.radio-checked) .radio-inner{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-12px;top:-12px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-12px}:host(.in-item){margin-left:0;margin-right:0;margin-top:9px;margin-bottom:9px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:11px;margin-bottom:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}',$2=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionStyle=te(this,"ionStyle",7),this.ionFocus=te(this,"ionFocus",7),this.ionBlur=te(this,"ionBlur",7),this.inputId=`ion-rb-${V2++}`,this.radioGroup=null,this.checked=!1,this.buttonTabindex=-1,this.name=this.inputId,this.disabled=!1,this.updateState=()=>{this.radioGroup&&(this.checked=this.radioGroup.value===this.value)},this.onClick=()=>{this.checked=this.nativeInput.checked},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}valueChanged(){this.updateState()}async setFocus(t){t.stopPropagation(),t.preventDefault(),this.el.focus()}async setButtonTabindex(t){this.buttonTabindex=t}connectedCallback(){this.value===void 0&&(this.value=this.inputId);const t=this.radioGroup=this.el.closest("ion-radio-group");t&&(this.updateState(),Xl(t,"ionChange",this.updateState))}disconnectedCallback(){const t=this.radioGroup;t&&(g0(t,"ionChange",this.updateState),this.radioGroup=null)}componentWillLoad(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"radio-checked":this.checked,"interactive-disabled":this.disabled})}render(){const{inputId:t,disabled:e,checked:n,color:r,el:i,buttonTabindex:o}=this,a=ie(this),{label:s,labelId:l,labelText:c}=ql(i,t);return I(xe,{"aria-checked":`${n}`,"aria-hidden":e?"true":null,"aria-labelledby":s?l:null,role:"radio",tabindex:o,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:Tt(r,{[a]:!0,"in-item":Pn("ion-item",i),interactive:!0,"radio-checked":n,"radio-disabled":e})},I("div",{class:"radio-icon",part:"container"},I("div",{class:"radio-inner",part:"mark"}),I("div",{class:"radio-ripple"})),I("label",{htmlFor:t},c),I("input",{type:"radio",checked:n,disabled:e,tabindex:"-1",id:t,ref:u=>this.nativeInput=u}))}get el(){return this}static get watchers(){return{value:["valueChanged"],color:["emitStyle"],checked:["emitStyle"],disabled:["emitStyle"]}}static get style(){return{ios:F2,md:B2}}},[33,"ion-radio",{color:[513],name:[1],disabled:[4],value:[8],checked:[32],buttonTabindex:[32],setFocus:[64],setButtonTabindex:[64]}]);let V2=0;function $0(){if(typeof customElements>"u")return;["ion-radio"].forEach(e=>{switch(e){case"ion-radio":customElements.get(e)||customElements.define(e,$2);break}})}/*!
|
|
95
95
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
96
|
-
*/const _y=e=>{const t=G(),n=G(),o=G();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),o.addElement(e.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(1.1)"},{offset:1,opacity:"1",transform:"scale(1)"}]),t.addElement(e).easing("ease-in-out").duration(200).addAnimation([n,o])},Ey=e=>{const t=G(),n=G(),o=G();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),o.addElement(e.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),t.addElement(e).easing("ease-in-out").duration(200).addAnimation([n,o])},Ty=e=>{const t=G(),n=G(),o=G();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),o.addElement(e.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(0.9)"},{offset:1,opacity:"1",transform:"scale(1)"}]),t.addElement(e).easing("ease-in-out").duration(150).addAnimation([n,o])},Iy=e=>{const t=G(),n=G(),o=G();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),o.addElement(e.querySelector(".alert-wrapper")).fromTo("opacity",.99,0),t.addElement(e).easing("ease-in-out").duration(150).addAnimation([n,o])},Sy=".sc-ion-alert-ios-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-ios-h{display:none}.alert-top.sc-ion-alert-ios-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-message.sc-ion-alert-ios::-webkit-scrollbar{display:none}.alert-input.sc-ion-alert-ios{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:14px;line-height:20px;z-index:0}.alert-button.ion-focused.sc-ion-alert-ios,.alert-tappable.ion-focused.sc-ion-alert-ios{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.alert-input-disabled.sc-ion-alert-ios,.alert-checkbox-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios,.alert-radio-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:strict}.alert-button.sc-ion-alert-ios,.alert-checkbox.sc-ion-alert-ios,.alert-input.sc-ion-alert-ios,.alert-radio.sc-ion-alert-ios{outline:none}.alert-radio-icon.sc-ion-alert-ios,.alert-checkbox-icon.sc-ion-alert-ios,.alert-checkbox-inner.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-ios{min-height:37px;resize:none}.sc-ion-alert-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--max-width:270px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);font-size:14px}.alert-wrapper.sc-ion-alert-ios{border-radius:13px;-webkit-box-shadow:none;box-shadow:none;overflow:hidden}.alert-button.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{pointer-events:none}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.alert-translucent.sc-ion-alert-ios-h .alert-wrapper.sc-ion-alert-ios{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.alert-head.sc-ion-alert-ios{padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:7px;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-head.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.alert-title.sc-ion-alert-ios{margin-top:8px;color:var(--ion-text-color, #000);font-size:17px;font-weight:600}.alert-sub-title.sc-ion-alert-ios{color:var(--ion-color-step-600, #666666);font-size:14px}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:21px;color:var(--ion-text-color, #000);font-size:13px;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.alert-message.sc-ion-alert-ios{max-height:240px}.alert-message.sc-ion-alert-ios:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:12px}.alert-input.sc-ion-alert-ios{border-radius:4px;margin-top:10px;padding-left:6px;padding-right:6px;padding-top:6px;padding-bottom:6px;border:0.55px solid var(--ion-color-step-250, #bfbfbf);background-color:var(--ion-background-color, #fff);-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-input.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px}}.alert-input.sc-ion-alert-ios::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-clear{display:none}.alert-radio-group.sc-ion-alert-ios,.alert-checkbox-group.sc-ion-alert-ios{-ms-scroll-chaining:none;overscroll-behavior:contain;max-height:240px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);overflow-y:auto;-webkit-overflow-scrolling:touch}.alert-tappable.sc-ion-alert-ios{height:44px}.alert-radio-label.sc-ion-alert-ios{padding-left:13px;padding-right:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;-ms-flex-order:0;order:0;color:var(--ion-text-color, #000);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-radio-label.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px}}[aria-checked=true].sc-ion-alert-ios .alert-radio-label.sc-ion-alert-ios{color:var(--ion-color-primary, #3880ff)}.alert-radio-icon.sc-ion-alert-ios{position:relative;-ms-flex-order:1;order:1;min-width:30px}[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:7px;top:-7px;position:absolute;width:6px;height:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary, #3880ff)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}.alert-checkbox-label.sc-ion-alert-ios{padding-left:13px;padding-right:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-text-color, #000);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-checkbox-label.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px}}.alert-checkbox-icon.sc-ion-alert-ios{border-radius:50%;margin-left:16px;margin-right:6px;margin-top:10px;margin-bottom:10px;position:relative;width:24px;height:24px;border-width:1px;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));background-color:var(--ion-item-background, var(--ion-background-color, #fff));contain:strict}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-checkbox-icon.sc-ion-alert-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:6px;margin-inline-end:6px}}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-icon.sc-ion-alert-ios{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:9px;top:4px;position:absolute;width:5px;height:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:1px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-background-color, #fff)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:9px}.alert-button-group.sc-ion-alert-ios{margin-right:-0.55px;-ms-flex-wrap:wrap;flex-wrap:wrap}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button-group.sc-ion-alert-ios{margin-right:unset;-webkit-margin-end:-0.55px;margin-inline-end:-0.55px}}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:0;-ms-flex:1 1 auto;flex:1 1 auto;min-width:50%;height:44px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);background-color:transparent;color:var(--ion-color-primary, #3880ff);font-size:17px;overflow:hidden}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:first-child,[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child{border-right:0}.alert-button.sc-ion-alert-ios:last-child{border-right:0;font-weight:bold}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child,[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}.alert-button.ion-activated.sc-ion-alert-ios{background-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1)}.alert-button-role-destructive.sc-ion-alert-ios,.alert-button-role-destructive.ion-activated.sc-ion-alert-ios,.alert-button-role-destructive.ion-focused.sc-ion-alert-ios{color:var(--ion-color-danger, #eb445a)}",Cy=".sc-ion-alert-md-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-md-h{display:none}.alert-top.sc-ion-alert-md-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-group.sc-ion-alert-md::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-md::-webkit-scrollbar,.alert-message.sc-ion-alert-md::-webkit-scrollbar{display:none}.alert-input.sc-ion-alert-md{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:14px;line-height:20px;z-index:0}.alert-button.ion-focused.sc-ion-alert-md,.alert-tappable.ion-focused.sc-ion-alert-md{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.alert-input-disabled.sc-ion-alert-md,.alert-checkbox-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md,.alert-radio-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:strict}.alert-button.sc-ion-alert-md,.alert-checkbox.sc-ion-alert-md,.alert-input.sc-ion-alert-md,.alert-radio.sc-ion-alert-md{outline:none}.alert-radio-icon.sc-ion-alert-md,.alert-checkbox-icon.sc-ion-alert-md,.alert-checkbox-inner.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-md{min-height:37px;resize:none}.sc-ion-alert-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--max-width:280px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);font-size:14px}.alert-wrapper.sc-ion-alert-md{border-radius:4px;-webkit-box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12)}.alert-head.sc-ion-alert-md{padding-left:23px;padding-right:23px;padding-top:20px;padding-bottom:15px;text-align:start}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-head.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:23px;padding-inline-start:23px;-webkit-padding-end:23px;padding-inline-end:23px}}.alert-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:20px;font-weight:500}.alert-sub-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:16px}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{padding-left:24px;padding-right:24px;padding-top:20px;padding-bottom:20px;color:var(--ion-color-step-550, #737373)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px}}.alert-message.sc-ion-alert-md{max-height:266px;font-size:16px}.alert-message.sc-ion-alert-md:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-head.sc-ion-alert-md+.alert-message.sc-ion-alert-md{padding-top:0}.alert-input.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);color:var(--ion-text-color, #000)}.alert-input.sc-ion-alert-md::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-clear{display:none}.alert-input.sc-ion-alert-md:focus{margin-bottom:4px;border-bottom:2px solid var(--ion-color-primary, #3880ff)}.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{position:relative;max-height:266px;border-top:1px solid var(--ion-color-step-150, #d9d9d9);border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);overflow:auto}.alert-tappable.sc-ion-alert-md{position:relative;height:48px;overflow:hidden}.alert-radio-label.sc-ion-alert-md{padding-left:52px;padding-right:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-color-step-850, #262626);font-size:16px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-radio-label.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:52px;padding-inline-start:52px;-webkit-padding-end:26px;padding-inline-end:26px}}.alert-radio-icon.sc-ion-alert-md{left:26px;top:0;border-radius:50%;display:block;position:relative;width:20px;height:20px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373)}[dir=rtl].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}.alert-radio-inner.sc-ion-alert-md{left:3px;top:3px;border-radius:50%;position:absolute;width:10px;height:10px;-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--ion-color-primary, #3880ff)}[dir=rtl].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[aria-checked=true].sc-ion-alert-md .alert-radio-label.sc-ion-alert-md{color:var(--ion-color-step-850, #262626)}[aria-checked=true].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}.alert-checkbox-label.sc-ion-alert-md{padding-left:53px;padding-right:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-color-step-850, #262626);font-size:16px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-checkbox-label.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:53px;padding-inline-start:53px;-webkit-padding-end:26px;padding-inline-end:26px}}.alert-checkbox-icon.sc-ion-alert-md{left:26px;top:0;border-radius:2px;position:relative;width:16px;height:16px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373);contain:strict}[dir=rtl].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[aria-checked=true].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:3px;top:0;position:absolute;width:6px;height:10px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary-contrast, #fff)}[dir=rtl].sc-ion-alert-md [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}.alert-button-group.sc-ion-alert-md{padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;-ms-flex-pack:end;justify-content:flex-end}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button-group.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.alert-button.sc-ion-alert-md{border-radius:2px;margin-left:0;margin-right:8px;margin-top:0;margin-bottom:0;padding-left:10px;padding-right:10px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;color:var(--ion-color-primary, #3880ff);font-weight:500;text-align:end;text-transform:uppercase;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button.sc-ion-alert-md{margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}.alert-button-inner.sc-ion-alert-md{-ms-flex-pack:end;justify-content:flex-end}",Oy=ce(class extends de{constructor(){super(),this.__registerHost(),this.didPresent=q(this,"ionAlertDidPresent",7),this.willPresent=q(this,"ionAlertWillPresent",7),this.willDismiss=q(this,"ionAlertWillDismiss",7),this.didDismiss=q(this,"ionAlertDidDismiss",7),this.customHTMLEnabled=oo.get("innerHTMLTemplatesEnabled",Kv),this.processedInputs=[],this.processedButtons=[],this.presented=!1,this.keyboardClose=!0,this.buttons=[],this.inputs=[],this.backdropDismiss=!0,this.translucent=!1,this.animated=!0,this.onBackdropTap=()=>{this.dismiss(void 0,Xn)},this.dispatchCancelHandler=e=>{const t=e.detail.role;if(yi(t)){const n=this.processedButtons.find(o=>o.role==="cancel");this.callButtonHandler(n)}}}onKeydown(e){if(!new Set(this.processedInputs.map(s=>s.type)).has("radio")||e.target&&!this.el.contains(e.target)||e.target.classList.contains("alert-button"))return;const n=this.el.querySelectorAll(".alert-radio"),o=Array.from(n).filter(s=>!s.disabled),i=o.findIndex(s=>s.id===e.target.id);let r;if(["ArrowDown","ArrowRight"].includes(e.key)&&(r=i===o.length-1?o[0]:o[i+1]),["ArrowUp","ArrowLeft"].includes(e.key)&&(r=i===0?o[o.length-1]:o[i-1]),r&&o.includes(r)){const s=this.processedInputs.find(a=>a.id===(r==null?void 0:r.id));s&&(this.rbClick(s),r.focus())}}buttonsChanged(){const e=this.buttons;this.processedButtons=e.map(t=>typeof t=="string"?{text:t,role:t.toLowerCase()==="cancel"?"cancel":void 0}:t)}inputsChanged(){const e=this.inputs,t=e.find(r=>!r.disabled),o=e.find(r=>r.checked&&!r.disabled)||t,i=new Set(e.map(r=>r.type));i.has("checkbox")&&i.has("radio")&&console.warn(`Alert cannot mix input types: ${Array.from(i.values()).join("/")}. Please see alert docs for more info.`),this.inputType=i.values().next().value,this.processedInputs=e.map((r,s)=>{var a;return{type:r.type||"text",name:r.name||`${s}`,placeholder:r.placeholder||"",value:r.value,label:r.label,checked:!!r.checked,disabled:!!r.disabled,id:r.id||`alert-input-${this.overlayIndex}-${s}`,handler:r.handler,min:r.min,max:r.max,cssClass:(a=r.cssClass)!==null&&a!==void 0?a:"",attributes:r.attributes||{},tabindex:r.type==="radio"&&r!==o?-1:0}})}connectedCallback(){Xs(this.el)}componentWillLoad(){this.inputsChanged(),this.buttonsChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentDidLoad(){this.gesture||te(this)==="md"||!this.wrapperEl||(this.gesture=qu(this.wrapperEl,e=>e.classList.contains("alert-button")),this.gesture.enable(!0))}present(){return Zs(this,"alertEnter",_y,Ty)}dismiss(e,t){return Js(this,e,t,"alertLeave",Ey,Iy)}onDidDismiss(){return Kn(this.el,"ionAlertDidDismiss")}onWillDismiss(){return Kn(this.el,"ionAlertWillDismiss")}rbClick(e){for(const t of this.processedInputs)t.checked=t===e,t.tabindex=t===e?0:-1;this.activeId=e.id,bo(e.handler,e),pi(this)}cbClick(e){e.checked=!e.checked,bo(e.handler,e),pi(this)}async buttonClick(e){const t=e.role,n=this.getValues();if(yi(t))return this.dismiss({values:n},t);const o=await this.callButtonHandler(e,n);return o!==!1?this.dismiss(Object.assign({values:n},o),e.role):!1}async callButtonHandler(e,t){if(e!=null&&e.handler){const n=await bo(e.handler,t);if(n===!1)return!1;if(typeof n=="object")return n}return{}}getValues(){if(this.processedInputs.length===0)return;if(this.inputType==="radio"){const t=this.processedInputs.find(n=>!!n.checked);return t?t.value:void 0}if(this.inputType==="checkbox")return this.processedInputs.filter(t=>t.checked).map(t=>t.value);const e={};return this.processedInputs.forEach(t=>{e[t.name]=t.value||""}),e}renderAlertInputs(){switch(this.inputType){case"checkbox":return this.renderCheckbox();case"radio":return this.renderRadio();default:return this.renderInput()}}renderCheckbox(){const e=this.processedInputs,t=te(this);return e.length===0?null:_("div",{class:"alert-checkbox-group"},e.map(n=>_("button",{type:"button",onClick:()=>this.cbClick(n),"aria-checked":`${n.checked}`,id:n.id,disabled:n.disabled,tabIndex:n.tabindex,role:"checkbox",class:Object.assign(Object.assign({},vt(n.cssClass)),{"alert-tappable":!0,"alert-checkbox":!0,"alert-checkbox-button":!0,"ion-focusable":!0,"alert-checkbox-button-disabled":n.disabled||!1})},_("div",{class:"alert-button-inner"},_("div",{class:"alert-checkbox-icon"},_("div",{class:"alert-checkbox-inner"})),_("div",{class:"alert-checkbox-label"},n.label)),t==="md"&&_("ion-ripple-effect",null))))}renderRadio(){const e=this.processedInputs;return e.length===0?null:_("div",{class:"alert-radio-group",role:"radiogroup","aria-activedescendant":this.activeId},e.map(t=>_("button",{type:"button",onClick:()=>this.rbClick(t),"aria-checked":`${t.checked}`,disabled:t.disabled,id:t.id,tabIndex:t.tabindex,class:Object.assign(Object.assign({},vt(t.cssClass)),{"alert-radio-button":!0,"alert-tappable":!0,"alert-radio":!0,"ion-focusable":!0,"alert-radio-button-disabled":t.disabled||!1}),role:"radio"},_("div",{class:"alert-button-inner"},_("div",{class:"alert-radio-icon"},_("div",{class:"alert-radio-inner"})),_("div",{class:"alert-radio-label"},t.label)))))}renderInput(){const e=this.processedInputs;return e.length===0?null:_("div",{class:"alert-input-group"},e.map(t=>{var n,o,i,r;return t.type==="textarea"?_("div",{class:"alert-input-wrapper"},_("textarea",Object.assign({placeholder:t.placeholder,value:t.value,id:t.id,tabIndex:t.tabindex},t.attributes,{disabled:(o=(n=t.attributes)===null||n===void 0?void 0:n.disabled)!==null&&o!==void 0?o:t.disabled,class:Ll(t),onInput:s=>{var a;t.value=s.target.value,!((a=t.attributes)===null||a===void 0)&&a.onInput&&t.attributes.onInput(s)}}))):_("div",{class:"alert-input-wrapper"},_("input",Object.assign({placeholder:t.placeholder,type:t.type,min:t.min,max:t.max,value:t.value,id:t.id,tabIndex:t.tabindex},t.attributes,{disabled:(r=(i=t.attributes)===null||i===void 0?void 0:i.disabled)!==null&&r!==void 0?r:t.disabled,class:Ll(t),onInput:s=>{var a;t.value=s.target.value,!((a=t.attributes)===null||a===void 0)&&a.onInput&&t.attributes.onInput(s)}})))}))}renderAlertButtons(){const e=this.processedButtons,t=te(this),n={"alert-button-group":!0,"alert-button-group-vertical":e.length>2};return _("div",{class:n},e.map(o=>_("button",{type:"button",id:o.id,class:Ay(o),tabIndex:0,onClick:()=>this.buttonClick(o)},_("span",{class:"alert-button-inner"},o.text),t==="md"&&_("ion-ripple-effect",null))))}renderAlertMessage(e){const{customHTMLEnabled:t,message:n}=this;return t?_("div",{id:e,class:"alert-message",innerHTML:jv(n)}):_("div",{id:e,class:"alert-message"},n)}render(){const{overlayIndex:e,header:t,subHeader:n,message:o,htmlAttributes:i}=this,r=te(this),s=`alert-${e}-hdr`,a=`alert-${e}-sub-hdr`,l=`alert-${e}-msg`,c=this.inputs.length>0||this.buttons.length>0?"alertdialog":"alert";return _(se,Object.assign({role:c,"aria-modal":"true","aria-labelledby":t?s:n?a:null,"aria-describedby":o!==void 0?l:null,tabindex:"-1"},i,{style:{zIndex:`${2e4+e}`},class:Object.assign(Object.assign({},vt(this.cssClass)),{[r]:!0,"overlay-hidden":!0,"alert-translucent":this.translucent}),onIonAlertWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),_("ion-backdrop",{tappable:this.backdropDismiss}),_("div",{tabindex:"0"}),_("div",{class:"alert-wrapper ion-overlay-wrapper",ref:u=>this.wrapperEl=u},_("div",{class:"alert-head"},t&&_("h2",{id:s,class:"alert-title"},t),n&&_("h2",{id:a,class:"alert-sub-title"},n)),this.renderAlertMessage(l),this.renderAlertInputs(),this.renderAlertButtons()),_("div",{tabindex:"0"}))}get el(){return this}static get watchers(){return{buttons:["buttonsChanged"],inputs:["inputsChanged"]}}static get style(){return{ios:Sy,md:Cy}}},[34,"ion-alert",{overlayIndex:[2,"overlay-index"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],cssClass:[1,"css-class"],header:[1],subHeader:[1,"sub-header"],message:[1],buttons:[16],inputs:[1040],backdropDismiss:[4,"backdrop-dismiss"],translucent:[4],animated:[4],htmlAttributes:[16],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},[[4,"keydown","onKeydown"]]]),Ll=e=>{var t,n,o;return Object.assign(Object.assign({"alert-input":!0,"alert-input-disabled":((n=(t=e.attributes)===null||t===void 0?void 0:t.disabled)!==null&&n!==void 0?n:e.disabled)||!1},vt(e.cssClass)),vt(e.attributes?(o=e.attributes.class)===null||o===void 0?void 0:o.toString():""))},Ay=e=>Object.assign({"alert-button":!0,"ion-focusable":!0,"ion-activatable":!0,[`alert-button-role-${e.role}`]:e.role!==void 0},vt(e.cssClass));function Dy(){if(typeof customElements>"u")return;["ion-alert","ion-backdrop","ion-ripple-effect"].forEach(t=>{switch(t){case"ion-alert":customElements.get(t)||customElements.define(t,Oy);break;case"ion-backdrop":customElements.get(t)||$i();break;case"ion-ripple-effect":customElements.get(t)||$n();break}})}/*!
|
|
96
|
+
*/const U2=we(class extends _e{constructor(){super(),this.__registerHost(),this.ionChange=te(this,"ionChange",7),this.inputId=`ion-rg-${H2++}`,this.labelId=`${this.inputId}-lbl`,this.allowEmptySelection=!1,this.name=this.inputId,this.setRadioTabindex=t=>{const e=this.getRadios(),n=e.find(o=>!o.disabled),r=e.find(o=>o.value===t&&!o.disabled);if(!n&&!r)return;const i=r||n;for(const o of e){const a=o===i?0:-1;o.setButtonTabindex(a)}},this.onClick=t=>{t.preventDefault();const e=t.target&&t.target.closest("ion-radio");if(e){const n=this.value,r=e.value;r!==n?this.value=r:this.allowEmptySelection&&(this.value=void 0)}}}valueChanged(t){this.setRadioTabindex(t),this.ionChange.emit({value:t})}componentDidLoad(){this.setRadioTabindex(this.value)}async connectedCallback(){const t=this.el.querySelector("ion-list-header")||this.el.querySelector("ion-item-divider");if(t){const e=this.label=t.querySelector("ion-label");e&&(this.labelId=e.id=this.name+"-lbl")}}getRadios(){return Array.from(this.el.querySelectorAll("ion-radio"))}onKeydown(t){const e=!!this.el.closest("ion-select-popover");if(t.target&&!this.el.contains(t.target))return;const n=this.getRadios().filter(r=>!r.disabled);if(t.target&&n.includes(t.target)){const r=n.findIndex(a=>a===t.target),i=n[r];let o;["ArrowDown","ArrowRight"].includes(t.key)&&(o=r===n.length-1?n[0]:n[r+1]),["ArrowUp","ArrowLeft"].includes(t.key)&&(o=r===0?n[n.length-1]:n[r-1]),o&&n.includes(o)&&(o.setFocus(t),e||(this.value=o.value)),[" "].includes(t.key)&&(this.value=this.allowEmptySelection&&this.value!==void 0?void 0:i.value,t.preventDefault())}}render(){const{label:t,labelId:e,el:n,name:r,value:i}=this,o=ie(this);return Kl(!0,n,r,i,!1),I(xe,{role:"radiogroup","aria-labelledby":t?e:null,onClick:this.onClick,class:o})}get el(){return this}static get watchers(){return{value:["valueChanged"]}}},[0,"ion-radio-group",{allowEmptySelection:[4,"allow-empty-selection"],name:[1],value:[1032]},[[4,"keydown","onKeydown"]]]);let H2=0;function V0(){if(typeof customElements>"u")return;["ion-radio-group"].forEach(e=>{switch(e){case"ion-radio-group":customElements.get(e)||customElements.define(e,U2);break}})}/*!
|
|
97
97
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
98
|
-
*/const
|
|
98
|
+
*/const lr=(t,e,n,r)=>{const i=z2(t)?{capture:!!r.capture,passive:!!r.passive}:!!r.capture;let o,a;return t.__zone_symbol__addEventListener?(o="__zone_symbol__addEventListener",a="__zone_symbol__removeEventListener"):(o="addEventListener",a="removeEventListener"),t[o](e,n,i),()=>{t[a](e,n,i)}},z2=t=>{if(bo===void 0)try{const e=Object.defineProperty({},"passive",{get:()=>{bo=!0}});t.addEventListener("optsTest",()=>{},e)}catch{bo=!1}return!!bo};let bo;const W2=2e3,G2=(t,e,n,r,i)=>{let o,a,s,l,c,u,d,f=0;const h=E=>{f=Date.now()+W2,e(E)&&(!a&&n&&(a=lr(t,"touchmove",n,i)),s||(s=lr(E.target,"touchend",g,i)),l||(l=lr(E.target,"touchcancel",g,i)))},p=E=>{f>Date.now()||e(E)&&(!u&&n&&(u=lr(Gu(t),"mousemove",n,i)),d||(d=lr(Gu(t),"mouseup",b,i)))},g=E=>{m(),r&&r(E)},b=E=>{v(),r&&r(E)},m=()=>{a&&a(),s&&s(),l&&l(),a=s=l=void 0},v=()=>{u&&u(),d&&d(),u=d=void 0},w=()=>{m(),v()},y=(E=!0)=>{E?(o||(o=lr(t,"touchstart",h,i)),c||(c=lr(t,"mousedown",p,i))):(o&&o(),c&&c(),o=c=void 0,w())};return{enable:y,stop:w,destroy:()=>{y(!1),r=n=e=void 0}}},Gu=t=>t instanceof Document?t:t.ownerDocument,j2=(t,e,n)=>{const r=n*(Math.PI/180),i=t==="x",o=Math.cos(r),a=e*e;let s=0,l=0,c=!1,u=0;return{start(d,f){s=d,l=f,u=0,c=!0},detect(d,f){if(!c)return!1;const h=d-s,p=f-l,g=h*h+p*p;if(g<a)return!1;const b=Math.sqrt(g),m=(i?h:p)/b;return m>o?u=1:m<-o?u=-1:u=0,c=!1,!0},isGesture(){return u!==0},getDirection(){return u}}},ic=t=>{let e=!1,n=!1,r=!0,i=!1;const o=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},t),a=o.canStart,s=o.onWillStart,l=o.onStart,c=o.onEnd,u=o.notCaptured,d=o.onMove,f=o.threshold,h=o.passive,p=o.blurOnStart,g={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},b=j2(o.direction,o.threshold,o.maxAngle),m=_0.createGesture({name:t.gestureName,priority:t.gesturePriority,disableScroll:t.disableScroll}),v=B=>{const G=H0(B);return n||!r||(U0(B,g),g.startX=g.currentX,g.startY=g.currentY,g.startTime=g.currentTime=G,g.velocityX=g.velocityY=g.deltaX=g.deltaY=0,g.event=B,a&&a(g)===!1)||(m.release(),!m.start())?!1:(n=!0,f===0?C():(b.start(g.startX,g.startY),!0))},w=B=>{if(e){!i&&r&&(i=!0,Ya(g,B),requestAnimationFrame(y));return}Ya(g,B),b.detect(g.currentX,g.currentY)&&(!b.isGesture()||!C())&&L()},y=()=>{e&&(i=!1,d&&d(g))},C=()=>m.capture()?(e=!0,r=!1,g.startX=g.currentX,g.startY=g.currentY,g.startTime=g.currentTime,s?s(g).then(k):k(),!0):!1,E=()=>{if(typeof document<"u"){const B=document.activeElement;B!=null&&B.blur&&B.blur()}},k=()=>{p&&E(),l&&l(g),r=!0},N=()=>{e=!1,n=!1,i=!1,r=!0,m.release()},D=B=>{const G=e,ae=r;if(N(),!!ae){if(Ya(g,B),G){c&&c(g);return}u&&u(g)}},O=G2(o.el,v,w,D,{capture:!1,passive:h}),L=()=>{N(),O.stop(),u&&u(g)};return{enable(B=!0){B||(e&&D(void 0),N()),O.enable(B)},destroy(){m.destroy(),O.destroy()}}},Ya=(t,e)=>{if(!e)return;const n=t.currentX,r=t.currentY,i=t.currentTime;U0(e,t);const o=t.currentX,a=t.currentY,l=(t.currentTime=H0(e))-i;if(l>0&&l<100){const c=(o-n)/l,u=(a-r)/l;t.velocityX=c*.7+t.velocityX*.3,t.velocityY=u*.7+t.velocityY*.3}t.deltaX=o-t.startX,t.deltaY=a-t.startY,t.event=e},U0=(t,e)=>{let n=0,r=0;if(t){const i=t.changedTouches;if(i&&i.length>0){const o=i[0];n=o.clientX,r=o.clientY}else t.pageX!==void 0&&(n=t.pageX,r=t.pageY)}e.currentX=n,e.currentY=r},H0=t=>t.timeStamp||Date.now();/*!
|
|
99
99
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
100
|
-
*/const My=(e,t,n)=>{if(typeof MutationObserver>"u")return;const o=new MutationObserver(i=>{n(Ry(i,t))});return o.observe(e,{childList:!0,subtree:!0}),o},Ry=(e,t)=>{let n;return e.forEach(o=>{for(let i=0;i<o.addedNodes.length;i++)n=Fy(o.addedNodes[i],t)||n}),n},Fy=(e,t)=>e.nodeType!==1?void 0:(e.tagName===t.toUpperCase()?[e]:Array.from(e.querySelectorAll(t))).find(o=>o.value===e.value),Vy=":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);white-space:nowrap;overflow:hidden;z-index:2}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{position:relative}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:20px}.select-icon{width:12px;height:18px;opacity:0.33}",zy=":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);white-space:nowrap;overflow:hidden;z-index:2}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{position:relative}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:16px}.select-icon{width:19px;height:19px;-webkit-transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:0.55}:host-context(.item-label-stacked) .select-icon,:host-context(.item-label-floating:not(.item-fill-outline)) .select-icon,:host-context(.item-label-floating.item-fill-outline){-webkit-transform:translate3d(0, -9px, 0);transform:translate3d(0, -9px, 0)}:host-context(.item-has-focus) .select-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host-context(.item-has-focus.item-label-stacked) .select-icon,:host-context(.item-has-focus.item-label-floating:not(.item-fill-outline)) .select-icon{-webkit-transform:translate3d(0, -9px, 0) rotate(180deg);transform:translate3d(0, -9px, 0) rotate(180deg)}:host-context(ion-item.ion-focused) .select-icon,:host-context(.item-has-focus) .select-icon{color:var(--highlight-color-focused);opacity:1}",Uy=ce(class extends de{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=q(this,"ionChange",7),this.ionCancel=q(this,"ionCancel",7),this.ionDismiss=q(this,"ionDismiss",7),this.ionFocus=q(this,"ionFocus",7),this.ionBlur=q(this,"ionBlur",7),this.ionStyle=q(this,"ionStyle",7),this.inputId=`ion-sel-${jy++}`,this.didInit=!1,this.isExpanded=!1,this.disabled=!1,this.cancelText="Cancel",this.okText="OK",this.name=this.inputId,this.multiple=!1,this.interface="alert",this.interfaceOptions={},this.onClick=e=>{this.setFocus(),this.open(e)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}styleChanged(){this.emitStyle()}valueChanged(){this.emitStyle(),this.didInit&&this.ionChange.emit({value:this.value})}async connectedCallback(){this.updateOverlayOptions(),this.emitStyle(),this.mutationO=My(this.el,"ion-select-option",async()=>{this.updateOverlayOptions(),pi(this)})}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}componentDidLoad(){this.didInit=!0}async open(e){if(this.disabled||this.isExpanded)return;this.isExpanded=!0;const t=this.overlay=await this.createOverlay(e);if(t.onDidDismiss().then(()=>{this.overlay=void 0,this.isExpanded=!1,this.ionDismiss.emit(),this.setFocus()}),await t.present(),this.interface==="popover"){let n=this.childOpts.map(i=>i.value).indexOf(this.value);n=n>-1?n:0;const o=t.querySelector(`.select-interface-option:nth-child(${n+1})`);if(o){Cu(o);const i=o.querySelector("ion-radio, ion-checkbox");i&&i.focus()}}return t}createOverlay(e){let t=this.interface;return t==="action-sheet"&&this.multiple&&(console.warn(`Select interface cannot be "${t}" with a multi-value select. Using the "alert" interface instead.`),t="alert"),t==="popover"&&!e&&(console.warn(`Select interface cannot be a "${t}" without passing an event. Using the "alert" interface instead.`),t="alert"),t==="action-sheet"?this.openActionSheet():t==="popover"?this.openPopover(e):this.openAlert()}updateOverlayOptions(){const e=this.overlay;if(!e)return;const t=this.childOpts,n=this.value;switch(this.interface){case"action-sheet":e.buttons=this.createActionSheetButtons(t,n);break;case"popover":const o=e.querySelector("ion-select-popover");o&&(o.options=this.createPopoverOptions(t,n));break;case"alert":const i=this.multiple?"checkbox":"radio";e.inputs=this.createAlertInputs(t,i,n);break}}createActionSheetButtons(e,t){const n=e.map(o=>{const i=ri(o),r=Array.from(o.classList).filter(a=>a!=="hydrated").join(" "),s=`${sr} ${r}`;return{role:rr(t,i,this.compareWith)?"selected":"",text:o.textContent,cssClass:s,handler:()=>{this.value=i}}});return n.push({text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}}),n}createAlertInputs(e,t,n){return e.map(i=>{const r=ri(i),s=Array.from(i.classList).filter(l=>l!=="hydrated").join(" "),a=`${sr} ${s}`;return{type:t,cssClass:a,label:i.textContent||"",value:r,checked:rr(n,r,this.compareWith),disabled:i.disabled}})}createPopoverOptions(e,t){return e.map(o=>{const i=ri(o),r=Array.from(o.classList).filter(a=>a!=="hydrated").join(" "),s=`${sr} ${r}`;return{text:o.textContent||"",cssClass:s,value:i,checked:rr(t,i,this.compareWith),disabled:o.disabled,handler:a=>{this.value=a,this.multiple||this.close()}}})}async openPopover(e){const t=this.interfaceOptions,n=te(this),o=n!=="md",i=this.multiple,r=this.value;let s=e,a="auto";const l=this.el.closest("ion-item");l&&(l.classList.contains("item-label-floating")||l.classList.contains("item-label-stacked"))&&(s=Object.assign(Object.assign({},e),{detail:{ionShadowTarget:l}}),a="cover");const c=Object.assign(Object.assign({mode:n,event:s,alignment:"center",size:a,showBackdrop:o},t),{component:"ion-select-popover",cssClass:["select-popover",t.cssClass],componentProps:{header:t.header,subHeader:t.subHeader,message:t.message,multiple:i,value:r,options:this.createPopoverOptions(this.childOpts,r)}});return K0.create(c)}async openActionSheet(){const e=te(this),t=this.interfaceOptions,n=Object.assign(Object.assign({mode:e},t),{buttons:this.createActionSheetButtons(this.childOpts,this.value),cssClass:["select-action-sheet",t.cssClass]});return q0.create(n)}async openAlert(){const e=this.getLabel(),t=e?e.textContent:null,n=this.interfaceOptions,o=this.multiple?"checkbox":"radio",i=te(this),r=Object.assign(Object.assign({mode:i},n),{header:n.header?n.header:t,inputs:this.createAlertInputs(this.childOpts,o,this.value),buttons:[{text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}},{text:this.okText,handler:s=>{this.value=s}}],cssClass:["select-alert",n.cssClass,this.multiple?"multiple-select-alert":"single-select-alert"]});return G0.create(r)}close(){return this.overlay?this.overlay.dismiss():Promise.resolve(!1)}getLabel(){return Su(this.el)}hasValue(){return this.getText()!==""}get childOpts(){return Array.from(this.el.querySelectorAll("ion-select-option"))}getText(){const e=this.selectedText;return e!=null&&e!==""?e:Hy(this.childOpts,this.value,this.compareWith)}setFocus(){this.focusEl&&this.focusEl.focus()}emitStyle(){this.ionStyle.emit({interactive:!0,"interactive-disabled":this.disabled,select:!0,"select-disabled":this.disabled,"has-placeholder":this.placeholder!==void 0,"has-value":this.hasValue(),"has-focus":this.isExpanded})}render(){const{disabled:e,el:t,inputId:n,isExpanded:o,name:i,placeholder:r,value:s}=this,a=te(this),{labelText:l,labelId:c}=Bs(t,n);Hs(!0,t,i,By(s),e);const d=this.getText();let u=!1,f=d;f===""&&r!==void 0&&(f=r,u=!0);const b={"select-text":!0,"select-placeholder":u},T=u?"placeholder":"text",x=l!==void 0?f!==""?`${f}, ${l}`:l:f;return _(se,{onClick:this.onClick,role:"button","aria-haspopup":"listbox","aria-disabled":e?"true":null,"aria-label":x,class:{[a]:!0,"in-item":Zt("ion-item",t),"select-disabled":e,"select-expanded":o}},_("div",{"aria-hidden":"true",class:b,part:T},f),_("div",{class:"select-icon",role:"presentation",part:"icon"},_("div",{class:"select-icon-inner"})),_("label",{id:c},x),_("button",{type:"button",disabled:e,id:n,"aria-labelledby":c,"aria-haspopup":"listbox","aria-expanded":`${o}`,onFocus:this.onFocus,onBlur:this.onBlur,ref:C=>this.focusEl=C}))}get el(){return this}static get watchers(){return{disabled:["styleChanged"],placeholder:["styleChanged"],isExpanded:["styleChanged"],value:["valueChanged"]}}static get style(){return{ios:Vy,md:zy}}},[33,"ion-select",{disabled:[4],cancelText:[1,"cancel-text"],okText:[1,"ok-text"],placeholder:[1],name:[1],selectedText:[1,"selected-text"],multiple:[4],interface:[1],interfaceOptions:[8,"interface-options"],compareWith:[1,"compare-with"],value:[1032],isExpanded:[32],open:[64]}]),rr=(e,t,n)=>e===void 0?!1:Array.isArray(e)?e.some(o=>Xr(o,t,n)):Xr(e,t,n),ri=e=>{const t=e.value;return t===void 0?e.textContent||"":t},By=e=>{if(e!=null)return Array.isArray(e)?e.join(","):e.toString()},Xr=(e,t,n)=>typeof n=="function"?n(e,t):typeof n=="string"?e[n]===t[n]:Array.isArray(t)?t.includes(e):e===t,Hy=(e,t,n)=>t===void 0?"":Array.isArray(t)?t.map(o=>Pl(e,o,n)).filter(o=>o!==null).join(", "):Pl(e,t,n)||"",Pl=(e,t,n)=>{const o=e.find(i=>Xr(t,ri(i),n));return o?o.textContent:null};let jy=0;const sr="select-interface-option";function Wy(){if(typeof customElements>"u")return;["ion-select","ion-action-sheet","ion-alert","ion-backdrop","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-note","ion-popover","ion-radio","ion-radio-group","ion-ripple-effect","ion-select-popover"].forEach(t=>{switch(t){case"ion-select":customElements.get(t)||customElements.define(t,Uy);break;case"ion-action-sheet":customElements.get(t)||xy();break;case"ion-alert":customElements.get(t)||Dy();break;case"ion-backdrop":customElements.get(t)||$i();break;case"ion-checkbox":customElements.get(t)||$u();break;case"ion-icon":customElements.get(t)||Ni();break;case"ion-item":customElements.get(t)||Ys();break;case"ion-label":customElements.get(t)||Gs();break;case"ion-list":customElements.get(t)||Bu();break;case"ion-list-header":customElements.get(t)||Hu();break;case"ion-note":customElements.get(t)||Ws();break;case"ion-popover":customElements.get(t)||Bv();break;case"ion-radio":customElements.get(t)||ju();break;case"ion-radio-group":customElements.get(t)||Wu();break;case"ion-ripple-effect":customElements.get(t)||$n();break;case"ion-select-popover":customElements.get(t)||Py();break}})}const Yy=Wy;/*!
|
|
100
|
+
*/const z0=(t,e)=>{let n,r;const i=(s,l,c)=>{if(typeof document>"u")return;const u=document.elementFromPoint(s,l);if(!u||!e(u)){a();return}u!==n&&(a(),o(u,c))},o=(s,l)=>{n=s,r||(r=n);const c=n;ni(()=>c.classList.add("ion-activated")),l()},a=(s=!1)=>{if(!n)return;const l=n;ni(()=>l.classList.remove("ion-activated")),s&&r!==n&&n.click(),n=void 0};return ic({el:t,gestureName:"buttonActiveDrag",threshold:0,onStart:s=>i(s.currentX,s.currentY,hy),onMove:s=>i(s.currentX,s.currentY,py),onEnd:()=>{a(!0),gy(),r=void 0}})};/*!
|
|
101
101
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
102
|
-
*/const Gy=":host{display:none}",qy=ce(class extends de{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inputId=`ion-selopt-${Ky++}`,this.disabled=!1}render(){return _(se,{role:"option",id:this.inputId,class:te(this)})}get el(){return this}static get style(){return Gy}},[1,"ion-select-option",{disabled:[4],value:[8]}]);let Ky=0;function Xy(){if(typeof customElements>"u")return;["ion-select-option"].forEach(t=>{switch(t){case"ion-select-option":customElements.get(t)||customElements.define(t,qy);break}})}const Zy=Xy;/*!
|
|
102
|
+
*/const Y2=t=>{const e=X(),n=X(),r=X();return n.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),r.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([n,r])},X2=t=>{const e=X(),n=X(),r=X();return n.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([n,r])},q2=t=>{const e=X(),n=X(),r=X();return n.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),r.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([n,r])},K2=t=>{const e=X(),n=X(),r=X();return n.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([n,r])},Z2='.sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-ios{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-ios{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color, #fff));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-400, #999999);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:auto;margin-right:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:var(--ion-safe-area-bottom, 0)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-container.sc-ion-action-sheet-ios{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-container.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;-webkit-backdrop-filter:saturate(280%) blur(20px);backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8))), -webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;-webkit-backdrop-filter:saturate(120%);backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, transparent)) bottom/100% 1px no-repeat transparent;background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{padding-left:10px;padding-right:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, #999999));font-size:13px;font-weight:400;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-title.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}.action-sheet-title.action-sheet-has-sub-title.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:6px;padding-bottom:0;font-size:13px;font-weight:400}.action-sheet-button.sc-ion-action-sheet-ios{padding-left:18px;padding-right:18px;padding-top:18px;padding-bottom:18px;height:56px;font-size:20px;contain:strict}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:18px;padding-inline-start:18px;-webkit-padding-end:18px;padding-inline-end:18px}}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:0.3em;font-size:28px;pointer-events:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:unset;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{font-weight:bold}.action-sheet-cancel.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-cancel.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-destructive.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-activated.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-focused.sc-ion-action-sheet-ios{color:var(--ion-color-danger, #eb445a)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #eb445a)}}',J2='.sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-md{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-md{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-md{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-md::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-md:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);--button-background:transparent;--button-background-selected:currentColor;--button-background-selected-opacity:0;--button-background-activated:transparent;--button-background-activated-opacity:0;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-color:var(--ion-color-step-850, #262626);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}.action-sheet-wrapper.sc-ion-action-sheet-md{margin-left:auto;margin-right:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-md{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-title.sc-ion-action-sheet-md{padding-left:16px;padding-right:16px;padding-top:20px;padding-bottom:17px;min-height:60px;color:var(--color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54));font-size:16px;text-align:start}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-title.sc-ion-action-sheet-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:14px}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:var(--ion-safe-area-bottom)}.action-sheet-button.sc-ion-action-sheet-md{padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:0;position:relative;height:52px;font-size:16px;text-align:start;contain:strict;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.action-sheet-icon.sc-ion-action-sheet-md{margin-left:0;margin-right:32px;margin-top:0;margin-bottom:0;color:var(--color);font-size:24px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-icon.sc-ion-action-sheet-md{margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px}}.action-sheet-button-inner.sc-ion-action-sheet-md{-ms-flex-pack:start;justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:bold}',Q2=we(class extends _e{constructor(){super(),this.__registerHost(),this.didPresent=te(this,"ionActionSheetDidPresent",7),this.willPresent=te(this,"ionActionSheetWillPresent",7),this.willDismiss=te(this,"ionActionSheetWillDismiss",7),this.didDismiss=te(this,"ionActionSheetDidDismiss",7),this.presented=!1,this.keyboardClose=!0,this.buttons=[],this.backdropDismiss=!0,this.translucent=!1,this.animated=!0,this.onBackdropTap=()=>{this.dismiss(void 0,Cr)},this.dispatchCancelHandler=t=>{const e=t.detail.role;if(qo(e)){const n=this.getButtons().find(r=>r.role==="cancel");this.callButtonHandler(n)}}}present(){return ba(this,"actionSheetEnter",Y2,q2)}connectedCallback(){va(this.el)}dismiss(t,e){return xa(this,t,e,"actionSheetLeave",X2,K2)}onDidDismiss(){return tr(this.el,"ionActionSheetDidDismiss")}onWillDismiss(){return tr(this.el,"ionActionSheetWillDismiss")}async buttonClick(t){const e=t.role;return qo(e)?this.dismiss(t.data,e):await this.callButtonHandler(t)?this.dismiss(t.data,t.role):Promise.resolve()}async callButtonHandler(t){return!(t&&await Ni(t.handler)===!1)}getButtons(){return this.buttons.map(t=>typeof t=="string"?{text:t}:t)}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentDidLoad(){const{groupEl:t,wrapperEl:e}=this;this.gesture||ie(this)==="md"||!e||!t||u0(()=>{t.scrollHeight>t.clientHeight||(this.gesture=z0(e,r=>r.classList.contains("action-sheet-button")),this.gesture.enable(!0))})}render(){const{header:t,htmlAttributes:e,overlayIndex:n}=this,r=ie(this),i=this.getButtons(),o=i.find(l=>l.role==="cancel"),a=i.filter(l=>l.role!=="cancel"),s=`action-sheet-${n}-header`;return I(xe,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":t!==void 0?s:null,tabindex:"-1"},e,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({[r]:!0},Yt(this.cssClass)),{"overlay-hidden":!0,"action-sheet-translucent":this.translucent}),onIonActionSheetWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),I("ion-backdrop",{tappable:this.backdropDismiss}),I("div",{tabindex:"0"}),I("div",{class:"action-sheet-wrapper ion-overlay-wrapper",ref:l=>this.wrapperEl=l},I("div",{class:"action-sheet-container"},I("div",{class:"action-sheet-group",ref:l=>this.groupEl=l},t!==void 0&&I("div",{id:s,class:{"action-sheet-title":!0,"action-sheet-has-sub-title":this.subHeader!==void 0}},t,this.subHeader&&I("div",{class:"action-sheet-sub-title"},this.subHeader)),a.map(l=>I("button",{type:"button",id:l.id,class:ju(l),onClick:()=>this.buttonClick(l)},I("span",{class:"action-sheet-button-inner"},l.icon&&I("ion-icon",{icon:l.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),l.text),r==="md"&&I("ion-ripple-effect",null)))),o&&I("div",{class:"action-sheet-group action-sheet-group-cancel"},I("button",{type:"button",class:ju(o),onClick:()=>this.buttonClick(o)},I("span",{class:"action-sheet-button-inner"},o.icon&&I("ion-icon",{icon:o.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),o.text),r==="md"&&I("ion-ripple-effect",null))))),I("div",{tabindex:"0"}))}get el(){return this}static get style(){return{ios:Z2,md:J2}}},[34,"ion-action-sheet",{overlayIndex:[2,"overlay-index"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],buttons:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],header:[1],subHeader:[1,"sub-header"],translucent:[4],animated:[4],htmlAttributes:[16],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]}]),ju=t=>Object.assign({"action-sheet-button":!0,"ion-activatable":!0,"ion-focusable":!0,[`action-sheet-${t.role}`]:t.role!==void 0},Yt(t.cssClass));function ew(){if(typeof customElements>"u")return;["ion-action-sheet","ion-backdrop","ion-icon","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-action-sheet":customElements.get(e)||customElements.define(e,Q2);break;case"ion-backdrop":customElements.get(e)||eo();break;case"ion-icon":customElements.get(e)||pa();break;case"ion-ripple-effect":customElements.get(e)||Fr();break}})}/*!
|
|
103
103
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
104
|
-
*/var Ml;(function(e){e.Dark="DARK",e.Light="LIGHT",e.Default="DEFAULT"})(Ml||(Ml={}));/*!
|
|
104
|
+
*/const tw=t=>{const e=X(),n=X(),r=X();return n.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),r.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(1.1)"},{offset:1,opacity:"1",transform:"scale(1)"}]),e.addElement(t).easing("ease-in-out").duration(200).addAnimation([n,r])},nw=t=>{const e=X(),n=X(),r=X();return n.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),e.addElement(t).easing("ease-in-out").duration(200).addAnimation([n,r])},rw=t=>{const e=X(),n=X(),r=X();return n.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),r.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(0.9)"},{offset:1,opacity:"1",transform:"scale(1)"}]),e.addElement(t).easing("ease-in-out").duration(150).addAnimation([n,r])},iw=t=>{const e=X(),n=X(),r=X();return n.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(t.querySelector(".alert-wrapper")).fromTo("opacity",.99,0),e.addElement(t).easing("ease-in-out").duration(150).addAnimation([n,r])},ow=".sc-ion-alert-ios-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-ios-h{display:none}.alert-top.sc-ion-alert-ios-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-message.sc-ion-alert-ios::-webkit-scrollbar{display:none}.alert-input.sc-ion-alert-ios{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:14px;line-height:20px;z-index:0}.alert-button.ion-focused.sc-ion-alert-ios,.alert-tappable.ion-focused.sc-ion-alert-ios{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.alert-input-disabled.sc-ion-alert-ios,.alert-checkbox-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios,.alert-radio-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:strict}.alert-button.sc-ion-alert-ios,.alert-checkbox.sc-ion-alert-ios,.alert-input.sc-ion-alert-ios,.alert-radio.sc-ion-alert-ios{outline:none}.alert-radio-icon.sc-ion-alert-ios,.alert-checkbox-icon.sc-ion-alert-ios,.alert-checkbox-inner.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-ios{min-height:37px;resize:none}.sc-ion-alert-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--max-width:270px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);font-size:14px}.alert-wrapper.sc-ion-alert-ios{border-radius:13px;-webkit-box-shadow:none;box-shadow:none;overflow:hidden}.alert-button.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{pointer-events:none}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.alert-translucent.sc-ion-alert-ios-h .alert-wrapper.sc-ion-alert-ios{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.alert-head.sc-ion-alert-ios{padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:7px;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-head.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.alert-title.sc-ion-alert-ios{margin-top:8px;color:var(--ion-text-color, #000);font-size:17px;font-weight:600}.alert-sub-title.sc-ion-alert-ios{color:var(--ion-color-step-600, #666666);font-size:14px}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:21px;color:var(--ion-text-color, #000);font-size:13px;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.alert-message.sc-ion-alert-ios{max-height:240px}.alert-message.sc-ion-alert-ios:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:12px}.alert-input.sc-ion-alert-ios{border-radius:4px;margin-top:10px;padding-left:6px;padding-right:6px;padding-top:6px;padding-bottom:6px;border:0.55px solid var(--ion-color-step-250, #bfbfbf);background-color:var(--ion-background-color, #fff);-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-input.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px}}.alert-input.sc-ion-alert-ios::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-clear{display:none}.alert-radio-group.sc-ion-alert-ios,.alert-checkbox-group.sc-ion-alert-ios{-ms-scroll-chaining:none;overscroll-behavior:contain;max-height:240px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);overflow-y:auto;-webkit-overflow-scrolling:touch}.alert-tappable.sc-ion-alert-ios{height:44px}.alert-radio-label.sc-ion-alert-ios{padding-left:13px;padding-right:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;-ms-flex-order:0;order:0;color:var(--ion-text-color, #000);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-radio-label.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px}}[aria-checked=true].sc-ion-alert-ios .alert-radio-label.sc-ion-alert-ios{color:var(--ion-color-primary, #3880ff)}.alert-radio-icon.sc-ion-alert-ios{position:relative;-ms-flex-order:1;order:1;min-width:30px}[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:7px;top:-7px;position:absolute;width:6px;height:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary, #3880ff)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}.alert-checkbox-label.sc-ion-alert-ios{padding-left:13px;padding-right:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-text-color, #000);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-checkbox-label.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px}}.alert-checkbox-icon.sc-ion-alert-ios{border-radius:50%;margin-left:16px;margin-right:6px;margin-top:10px;margin-bottom:10px;position:relative;width:24px;height:24px;border-width:1px;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));background-color:var(--ion-item-background, var(--ion-background-color, #fff));contain:strict}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-checkbox-icon.sc-ion-alert-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:6px;margin-inline-end:6px}}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-icon.sc-ion-alert-ios{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:9px;top:4px;position:absolute;width:5px;height:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:1px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-background-color, #fff)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:9px}.alert-button-group.sc-ion-alert-ios{margin-right:-0.55px;-ms-flex-wrap:wrap;flex-wrap:wrap}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button-group.sc-ion-alert-ios{margin-right:unset;-webkit-margin-end:-0.55px;margin-inline-end:-0.55px}}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:0;-ms-flex:1 1 auto;flex:1 1 auto;min-width:50%;height:44px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);background-color:transparent;color:var(--ion-color-primary, #3880ff);font-size:17px;overflow:hidden}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:first-child,[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child{border-right:0}.alert-button.sc-ion-alert-ios:last-child{border-right:0;font-weight:bold}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child,[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}.alert-button.ion-activated.sc-ion-alert-ios{background-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1)}.alert-button-role-destructive.sc-ion-alert-ios,.alert-button-role-destructive.ion-activated.sc-ion-alert-ios,.alert-button-role-destructive.ion-focused.sc-ion-alert-ios{color:var(--ion-color-danger, #eb445a)}",aw=".sc-ion-alert-md-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-md-h{display:none}.alert-top.sc-ion-alert-md-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-group.sc-ion-alert-md::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-md::-webkit-scrollbar,.alert-message.sc-ion-alert-md::-webkit-scrollbar{display:none}.alert-input.sc-ion-alert-md{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:14px;line-height:20px;z-index:0}.alert-button.ion-focused.sc-ion-alert-md,.alert-tappable.ion-focused.sc-ion-alert-md{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.alert-input-disabled.sc-ion-alert-md,.alert-checkbox-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md,.alert-radio-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:strict}.alert-button.sc-ion-alert-md,.alert-checkbox.sc-ion-alert-md,.alert-input.sc-ion-alert-md,.alert-radio.sc-ion-alert-md{outline:none}.alert-radio-icon.sc-ion-alert-md,.alert-checkbox-icon.sc-ion-alert-md,.alert-checkbox-inner.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-md{min-height:37px;resize:none}.sc-ion-alert-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--max-width:280px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);font-size:14px}.alert-wrapper.sc-ion-alert-md{border-radius:4px;-webkit-box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12)}.alert-head.sc-ion-alert-md{padding-left:23px;padding-right:23px;padding-top:20px;padding-bottom:15px;text-align:start}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-head.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:23px;padding-inline-start:23px;-webkit-padding-end:23px;padding-inline-end:23px}}.alert-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:20px;font-weight:500}.alert-sub-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:16px}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{padding-left:24px;padding-right:24px;padding-top:20px;padding-bottom:20px;color:var(--ion-color-step-550, #737373)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px}}.alert-message.sc-ion-alert-md{max-height:266px;font-size:16px}.alert-message.sc-ion-alert-md:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-head.sc-ion-alert-md+.alert-message.sc-ion-alert-md{padding-top:0}.alert-input.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);color:var(--ion-text-color, #000)}.alert-input.sc-ion-alert-md::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-clear{display:none}.alert-input.sc-ion-alert-md:focus{margin-bottom:4px;border-bottom:2px solid var(--ion-color-primary, #3880ff)}.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{position:relative;max-height:266px;border-top:1px solid var(--ion-color-step-150, #d9d9d9);border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);overflow:auto}.alert-tappable.sc-ion-alert-md{position:relative;height:48px;overflow:hidden}.alert-radio-label.sc-ion-alert-md{padding-left:52px;padding-right:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-color-step-850, #262626);font-size:16px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-radio-label.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:52px;padding-inline-start:52px;-webkit-padding-end:26px;padding-inline-end:26px}}.alert-radio-icon.sc-ion-alert-md{left:26px;top:0;border-radius:50%;display:block;position:relative;width:20px;height:20px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373)}[dir=rtl].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}.alert-radio-inner.sc-ion-alert-md{left:3px;top:3px;border-radius:50%;position:absolute;width:10px;height:10px;-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--ion-color-primary, #3880ff)}[dir=rtl].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[aria-checked=true].sc-ion-alert-md .alert-radio-label.sc-ion-alert-md{color:var(--ion-color-step-850, #262626)}[aria-checked=true].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}.alert-checkbox-label.sc-ion-alert-md{padding-left:53px;padding-right:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-color-step-850, #262626);font-size:16px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-checkbox-label.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:53px;padding-inline-start:53px;-webkit-padding-end:26px;padding-inline-end:26px}}.alert-checkbox-icon.sc-ion-alert-md{left:26px;top:0;border-radius:2px;position:relative;width:16px;height:16px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373);contain:strict}[dir=rtl].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[aria-checked=true].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:3px;top:0;position:absolute;width:6px;height:10px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary-contrast, #fff)}[dir=rtl].sc-ion-alert-md [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}.alert-button-group.sc-ion-alert-md{padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;-ms-flex-pack:end;justify-content:flex-end}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button-group.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.alert-button.sc-ion-alert-md{border-radius:2px;margin-left:0;margin-right:8px;margin-top:0;margin-bottom:0;padding-left:10px;padding-right:10px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;color:var(--ion-color-primary, #3880ff);font-weight:500;text-align:end;text-transform:uppercase;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button.sc-ion-alert-md{margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}.alert-button-inner.sc-ion-alert-md{-ms-flex-pack:end;justify-content:flex-end}",sw=we(class extends _e{constructor(){super(),this.__registerHost(),this.didPresent=te(this,"ionAlertDidPresent",7),this.willPresent=te(this,"ionAlertWillPresent",7),this.willDismiss=te(this,"ionAlertWillDismiss",7),this.didDismiss=te(this,"ionAlertDidDismiss",7),this.customHTMLEnabled=er.get("innerHTMLTemplatesEnabled",A2),this.processedInputs=[],this.processedButtons=[],this.presented=!1,this.keyboardClose=!0,this.buttons=[],this.inputs=[],this.backdropDismiss=!0,this.translucent=!1,this.animated=!0,this.onBackdropTap=()=>{this.dismiss(void 0,Cr)},this.dispatchCancelHandler=t=>{const e=t.detail.role;if(qo(e)){const n=this.processedButtons.find(r=>r.role==="cancel");this.callButtonHandler(n)}}}onKeydown(t){if(!new Set(this.processedInputs.map(a=>a.type)).has("radio")||t.target&&!this.el.contains(t.target)||t.target.classList.contains("alert-button"))return;const n=this.el.querySelectorAll(".alert-radio"),r=Array.from(n).filter(a=>!a.disabled),i=r.findIndex(a=>a.id===t.target.id);let o;if(["ArrowDown","ArrowRight"].includes(t.key)&&(o=i===r.length-1?r[0]:r[i+1]),["ArrowUp","ArrowLeft"].includes(t.key)&&(o=i===0?r[r.length-1]:r[i-1]),o&&r.includes(o)){const a=this.processedInputs.find(s=>s.id===(o==null?void 0:o.id));a&&(this.rbClick(a),o.focus())}}buttonsChanged(){const t=this.buttons;this.processedButtons=t.map(e=>typeof e=="string"?{text:e,role:e.toLowerCase()==="cancel"?"cancel":void 0}:e)}inputsChanged(){const t=this.inputs,e=t.find(o=>!o.disabled),r=t.find(o=>o.checked&&!o.disabled)||e,i=new Set(t.map(o=>o.type));i.has("checkbox")&&i.has("radio")&&console.warn(`Alert cannot mix input types: ${Array.from(i.values()).join("/")}. Please see alert docs for more info.`),this.inputType=i.values().next().value,this.processedInputs=t.map((o,a)=>{var s;return{type:o.type||"text",name:o.name||`${a}`,placeholder:o.placeholder||"",value:o.value,label:o.label,checked:!!o.checked,disabled:!!o.disabled,id:o.id||`alert-input-${this.overlayIndex}-${a}`,handler:o.handler,min:o.min,max:o.max,cssClass:(s=o.cssClass)!==null&&s!==void 0?s:"",attributes:o.attributes||{},tabindex:o.type==="radio"&&o!==r?-1:0}})}connectedCallback(){va(this.el)}componentWillLoad(){this.inputsChanged(),this.buttonsChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentDidLoad(){this.gesture||ie(this)==="md"||!this.wrapperEl||(this.gesture=z0(this.wrapperEl,t=>t.classList.contains("alert-button")),this.gesture.enable(!0))}present(){return ba(this,"alertEnter",tw,rw)}dismiss(t,e){return xa(this,t,e,"alertLeave",nw,iw)}onDidDismiss(){return tr(this.el,"ionAlertDidDismiss")}onWillDismiss(){return tr(this.el,"ionAlertWillDismiss")}rbClick(t){for(const e of this.processedInputs)e.checked=e===t,e.tabindex=e===t?0:-1;this.activeId=t.id,Ni(t.handler,t),Fi(this)}cbClick(t){t.checked=!t.checked,Ni(t.handler,t),Fi(this)}async buttonClick(t){const e=t.role,n=this.getValues();if(qo(e))return this.dismiss({values:n},e);const r=await this.callButtonHandler(t,n);return r!==!1?this.dismiss(Object.assign({values:n},r),t.role):!1}async callButtonHandler(t,e){if(t!=null&&t.handler){const n=await Ni(t.handler,e);if(n===!1)return!1;if(typeof n=="object")return n}return{}}getValues(){if(this.processedInputs.length===0)return;if(this.inputType==="radio"){const e=this.processedInputs.find(n=>!!n.checked);return e?e.value:void 0}if(this.inputType==="checkbox")return this.processedInputs.filter(e=>e.checked).map(e=>e.value);const t={};return this.processedInputs.forEach(e=>{t[e.name]=e.value||""}),t}renderAlertInputs(){switch(this.inputType){case"checkbox":return this.renderCheckbox();case"radio":return this.renderRadio();default:return this.renderInput()}}renderCheckbox(){const t=this.processedInputs,e=ie(this);return t.length===0?null:I("div",{class:"alert-checkbox-group"},t.map(n=>I("button",{type:"button",onClick:()=>this.cbClick(n),"aria-checked":`${n.checked}`,id:n.id,disabled:n.disabled,tabIndex:n.tabindex,role:"checkbox",class:Object.assign(Object.assign({},Yt(n.cssClass)),{"alert-tappable":!0,"alert-checkbox":!0,"alert-checkbox-button":!0,"ion-focusable":!0,"alert-checkbox-button-disabled":n.disabled||!1})},I("div",{class:"alert-button-inner"},I("div",{class:"alert-checkbox-icon"},I("div",{class:"alert-checkbox-inner"})),I("div",{class:"alert-checkbox-label"},n.label)),e==="md"&&I("ion-ripple-effect",null))))}renderRadio(){const t=this.processedInputs;return t.length===0?null:I("div",{class:"alert-radio-group",role:"radiogroup","aria-activedescendant":this.activeId},t.map(e=>I("button",{type:"button",onClick:()=>this.rbClick(e),"aria-checked":`${e.checked}`,disabled:e.disabled,id:e.id,tabIndex:e.tabindex,class:Object.assign(Object.assign({},Yt(e.cssClass)),{"alert-radio-button":!0,"alert-tappable":!0,"alert-radio":!0,"ion-focusable":!0,"alert-radio-button-disabled":e.disabled||!1}),role:"radio"},I("div",{class:"alert-button-inner"},I("div",{class:"alert-radio-icon"},I("div",{class:"alert-radio-inner"})),I("div",{class:"alert-radio-label"},e.label)))))}renderInput(){const t=this.processedInputs;return t.length===0?null:I("div",{class:"alert-input-group"},t.map(e=>{var n,r,i,o;return e.type==="textarea"?I("div",{class:"alert-input-wrapper"},I("textarea",Object.assign({placeholder:e.placeholder,value:e.value,id:e.id,tabIndex:e.tabindex},e.attributes,{disabled:(r=(n=e.attributes)===null||n===void 0?void 0:n.disabled)!==null&&r!==void 0?r:e.disabled,class:Yu(e),onInput:a=>{var s;e.value=a.target.value,!((s=e.attributes)===null||s===void 0)&&s.onInput&&e.attributes.onInput(a)}}))):I("div",{class:"alert-input-wrapper"},I("input",Object.assign({placeholder:e.placeholder,type:e.type,min:e.min,max:e.max,value:e.value,id:e.id,tabIndex:e.tabindex},e.attributes,{disabled:(o=(i=e.attributes)===null||i===void 0?void 0:i.disabled)!==null&&o!==void 0?o:e.disabled,class:Yu(e),onInput:a=>{var s;e.value=a.target.value,!((s=e.attributes)===null||s===void 0)&&s.onInput&&e.attributes.onInput(a)}})))}))}renderAlertButtons(){const t=this.processedButtons,e=ie(this),n={"alert-button-group":!0,"alert-button-group-vertical":t.length>2};return I("div",{class:n},t.map(r=>I("button",{type:"button",id:r.id,class:lw(r),tabIndex:0,onClick:()=>this.buttonClick(r)},I("span",{class:"alert-button-inner"},r.text),e==="md"&&I("ion-ripple-effect",null))))}renderAlertMessage(t){const{customHTMLEnabled:e,message:n}=this;return e?I("div",{id:t,class:"alert-message",innerHTML:x2(n)}):I("div",{id:t,class:"alert-message"},n)}render(){const{overlayIndex:t,header:e,subHeader:n,message:r,htmlAttributes:i}=this,o=ie(this),a=`alert-${t}-hdr`,s=`alert-${t}-sub-hdr`,l=`alert-${t}-msg`,c=this.inputs.length>0||this.buttons.length>0?"alertdialog":"alert";return I(xe,Object.assign({role:c,"aria-modal":"true","aria-labelledby":e?a:n?s:null,"aria-describedby":r!==void 0?l:null,tabindex:"-1"},i,{style:{zIndex:`${2e4+t}`},class:Object.assign(Object.assign({},Yt(this.cssClass)),{[o]:!0,"overlay-hidden":!0,"alert-translucent":this.translucent}),onIonAlertWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),I("ion-backdrop",{tappable:this.backdropDismiss}),I("div",{tabindex:"0"}),I("div",{class:"alert-wrapper ion-overlay-wrapper",ref:d=>this.wrapperEl=d},I("div",{class:"alert-head"},e&&I("h2",{id:a,class:"alert-title"},e),n&&I("h2",{id:s,class:"alert-sub-title"},n)),this.renderAlertMessage(l),this.renderAlertInputs(),this.renderAlertButtons()),I("div",{tabindex:"0"}))}get el(){return this}static get watchers(){return{buttons:["buttonsChanged"],inputs:["inputsChanged"]}}static get style(){return{ios:ow,md:aw}}},[34,"ion-alert",{overlayIndex:[2,"overlay-index"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],cssClass:[1,"css-class"],header:[1],subHeader:[1,"sub-header"],message:[1],buttons:[16],inputs:[1040],backdropDismiss:[4,"backdrop-dismiss"],translucent:[4],animated:[4],htmlAttributes:[16],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},[[4,"keydown","onKeydown"]]]),Yu=t=>{var e,n,r;return Object.assign(Object.assign({"alert-input":!0,"alert-input-disabled":((n=(e=t.attributes)===null||e===void 0?void 0:e.disabled)!==null&&n!==void 0?n:t.disabled)||!1},Yt(t.cssClass)),Yt(t.attributes?(r=t.attributes.class)===null||r===void 0?void 0:r.toString():""))},lw=t=>Object.assign({"alert-button":!0,"ion-focusable":!0,"ion-activatable":!0,[`alert-button-role-${t.role}`]:t.role!==void 0},Yt(t.cssClass));function cw(){if(typeof customElements>"u")return;["ion-alert","ion-backdrop","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-alert":customElements.get(e)||customElements.define(e,sw);break;case"ion-backdrop":customElements.get(e)||eo();break;case"ion-ripple-effect":customElements.get(e)||Fr();break}})}/*!
|
|
105
105
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
106
|
-
*/const Jy=":host{padding-left:var(--ion-safe-area-left);padding-right:var(--ion-safe-area-right);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-bottom:var(--ion-safe-area-bottom, 0);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-color-step-50, #f7f7f7));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:0.55px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--color:var(--ion-tab-bar-color, var(--ion-color-step-400, #999999));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:50px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.tab-bar-translucent){--background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(210%) blur(20px);backdrop-filter:saturate(210%) blur(20px)}:host(.ion-color.tab-bar-translucent){background:rgba(var(--ion-color-base-rgb), 0.8)}:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.6)}}",Qy=":host{padding-left:var(--ion-safe-area-left);padding-right:var(--ion-safe-area-right);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-bottom:var(--ion-safe-area-bottom, 0);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-background-color, #fff));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:1px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.07))));--color:var(--ion-tab-bar-color, var(--ion-color-step-600, #666666));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:56px}",ew=ce(class extends de{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionTabBarChanged=q(this,"ionTabBarChanged",7),this.keyboardCtrl=null,this.keyboardVisible=!1,this.translucent=!1}selectedTabChanged(){this.selectedTab!==void 0&&this.ionTabBarChanged.emit({tab:this.selectedTab})}componentWillLoad(){this.selectedTabChanged()}connectedCallback(){this.keyboardCtrl=Hv(e=>{this.keyboardVisible=e})}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}render(){const{color:e,translucent:t,keyboardVisible:n}=this,o=te(this),i=n&&this.el.getAttribute("slot")!=="top";return _(se,{role:"tablist","aria-hidden":i?"true":null,class:it(e,{[o]:!0,"tab-bar-translucent":t,"tab-bar-hidden":i})},_("slot",null))}get el(){return this}static get watchers(){return{selectedTab:["selectedTabChanged"]}}static get style(){return{ios:Jy,md:Qy}}},[33,"ion-tab-bar",{color:[513],selectedTab:[1,"selected-tab"],translucent:[4],keyboardVisible:[32]}]);function tw(){if(typeof customElements>"u")return;["ion-tab-bar"].forEach(t=>{switch(t){case"ion-tab-bar":customElements.get(t)||customElements.define(t,ew);break}})}const nw=tw;let ar;const ow=()=>{if(typeof window>"u")return new Map;if(!ar){const e=window;e.Ionicons=e.Ionicons||{},ar=e.Ionicons.map=e.Ionicons.map||new Map}return ar},iw=e=>{let t=lr(e.src);return t||(t=Ku(e.name,e.icon,e.mode,e.ios,e.md),t?rw(t):e.icon&&(t=lr(e.icon),t||(t=lr(e.icon[e.mode]),t))?t:null)},rw=e=>{const t=ow().get(e);return t||au(`svg/${e}.svg`)},Ku=(e,t,n,o,i)=>(n=(n&&Zo(n))==="ios"?"ios":"md",o&&n==="ios"?e=Zo(o):i&&n==="md"?e=Zo(i):(!e&&t&&!Xu(t)&&(e=t),wi(e)&&(e=Zo(e))),!wi(e)||e.trim()===""||e.replace(/[a-z]|-|\d/gi,"")!==""?null:e),lr=e=>wi(e)&&(e=e.trim(),Xu(e))?e:null,Xu=e=>e.length>0&&/(\/|\.)/.test(e),wi=e=>typeof e=="string",Zo=e=>e.toLowerCase(),sw=(e,t=[])=>{const n={};return t.forEach(o=>{e.hasAttribute(o)&&(e.getAttribute(o)!==null&&(n[o]=e.getAttribute(o)),e.removeAttribute(o))}),n},aw=e=>e&&e.dir!==""?e.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",lw=e=>{const t=document.createElement("div");t.innerHTML=e;for(let o=t.childNodes.length-1;o>=0;o--)t.childNodes[o].nodeName.toLowerCase()!=="svg"&&t.removeChild(t.childNodes[o]);const n=t.firstElementChild;if(n&&n.nodeName.toLowerCase()==="svg"){const o=n.getAttribute("class")||"";if(n.setAttribute("class",(o+" s-ion-icon").trim()),Zu(n))return t.innerHTML}return""},Zu=e=>{if(e.nodeType===1){if(e.nodeName.toLowerCase()==="script")return!1;for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;if(wi(n)&&n.toLowerCase().indexOf("on")===0)return!1}for(let t=0;t<e.childNodes.length;t++)if(!Zu(e.childNodes[t]))return!1}return!0},cw=e=>e.startsWith("data:image/svg+xml"),dw=e=>e.indexOf(";utf8,")!==-1,pn=new Map,Rl=new Map;let cr;const uw=(e,t)=>{let n=Rl.get(e);if(!n)if(typeof fetch<"u"&&typeof document<"u")if(cw(e)&&dw(e)){cr||(cr=new DOMParser);const i=cr.parseFromString(e,"text/html").querySelector("svg");return i&&pn.set(e,i.outerHTML),Promise.resolve()}else n=fetch(e).then(o=>{if(o.ok)return o.text().then(i=>{i&&t!==!1&&(i=lw(i)),pn.set(e,i||"")});pn.set(e,"")}),Rl.set(e,n);else return pn.set(e,""),Promise.resolve();return n},fw=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}:host(.flip-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.icon-small){font-size:18px !important}:host(.icon-large){font-size:32px !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}",hw=ce(class extends de{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.isVisible=!1,this.mode=mw(),this.lazy=!1,this.sanitize=!0,this.hasAriaHidden=()=>{const{el:e}=this;return e.hasAttribute("aria-hidden")&&e.getAttribute("aria-hidden")==="true"}}componentWillLoad(){this.inheritedAttributes=sw(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(e,t,n){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const o=this.io=new window.IntersectionObserver(i=>{i[0].isIntersecting&&(o.disconnect(),this.io=void 0,n())},{rootMargin:t});o.observe(e)}else n()}loadIcon(){if(this.isVisible){const t=iw(this);t&&(pn.has(t)?this.svgContent=pn.get(t):uw(t,this.sanitize).then(()=>this.svgContent=pn.get(t)))}const e=this.iconName=Ku(this.name,this.icon,this.mode,this.ios,this.md);e&&(this.ariaLabel=e.replace(/\-/g," "))}render(){const{iconName:e,ariaLabel:t,el:n,inheritedAttributes:o}=this,i=this.mode||"md",r=this.flipRtl||e&&(e.indexOf("arrow")>-1||e.indexOf("chevron")>-1)&&this.flipRtl!==!1;return _(se,Object.assign({"aria-label":t!==void 0&&!this.hasAriaHidden()?t:null,role:"img",class:Object.assign(Object.assign({[i]:!0},pw(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":!!r&&aw(n)})},o),this.svgContent?_("div",{class:"icon-inner",innerHTML:this.svgContent}):_("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return this}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}static get style(){return fw}},[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32],ariaLabel:[32]}]),mw=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",pw=e=>e?{"ion-color":!0,[`ion-color-${e}`]:!0}:null;function gw(){if(typeof customElements>"u")return;["ion-icon"].forEach(t=>{switch(t){case"ion-icon":customElements.get(t)||customElements.define(t,hw);break}})}const bw=gw,Fl="update:modelValue",dr="modelValue",vw="routerLink",Vl="navManager",yw="router",ww="aria",Bn=Symbol(),ur={default:Bn},zl=e=>(e==null?void 0:e.split(" "))||[],kw=(e,t,n=[])=>{var o;return[...Array.from(((o=e.value)===null||o===void 0?void 0:o.classList)||[]),...n].filter((i,r,s)=>!t.has(i)&&s.indexOf(i)===r)},Ot=(e,t,n=[],o,i,r)=>{t!==void 0&&t();const s=h.defineComponent((a,{attrs:l,slots:c,emit:d})=>{var u;let f=a[o];const b=h.ref(),T=new Set(zl(l.class)),x=k=>{k.el&&(Array.isArray(i)?i:[i]).forEach(v=>{k.el.addEventListener(v.toLowerCase(),w=>{f=(w==null?void 0:w.target)[o],d(Fl,f),r&&d(r,w)})})},C=h.getCurrentInstance(),y=((u=C==null?void 0:C.appContext)===null||u===void 0?void 0:u.provides[Vl])?h.inject(Vl):void 0,S=k=>{const{routerLink:D}=a;if(D!==Bn)if(y!==void 0){let v={event:k};for(const w in a){const P=a[w];a.hasOwnProperty(w)&&w.startsWith(yw)&&P!==Bn&&(v[w]=P)}y.navigate(v)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{f=a[o],zl(l.class).forEach(w=>{T.add(w)});const k=a.onClick,D=w=>{k!==void 0&&k(w),w.defaultPrevented||S(w)};let v={ref:b,class:kw(b,T),onClick:D,onVnodeBeforeMount:i?x:void 0};for(const w in a){const P=a[w];(a.hasOwnProperty(w)&&P!==Bn||w.startsWith(ww))&&(v[w]=P)}return o&&(a[dr]!==Bn?v=Object.assign(Object.assign({},v),{[o]:a[dr]}):f!==Bn&&(v=Object.assign(Object.assign({},v),{[o]:f}))),h.h(e,v,c.default&&c.default())}});return s.displayName=e,s.props={[vw]:ur},n.forEach(a=>{s.props[a]=ur}),o&&(s.props[dr]=ur,s.emits=[Fl,r]),s},xw=Ot("ion-button",t0,["color","buttonType","disabled","expand","fill","routerDirection","routerAnimation","download","href","rel","shape","size","strong","target","type","form","ionFocus","ionBlur"]),ea=Ot("ion-card",s0,["color","button","type","disabled","download","href","rel","routerDirection","routerAnimation","target"]),ta=Ot("ion-card-content",u0),na=Ot("ion-card-header",g0,["color","translucent"]),_w=Ot("ion-card-subtitle",k0,["color"]),oa=Ot("ion-card-title",I0,["color"]),Zr=Ot("ion-item",Xv,["color","button","detail","detailIcon","disabled","download","fill","shape","href","rel","lines","counter","routerAnimation","routerDirection","target","type","counterFormatter"]),Jr=Ot("ion-label",Zv,["color","position","ionColor","ionStyle"]),Qr=Ot("ion-select",Yy,["disabled","cancelText","okText","placeholder","name","selectedText","multiple","interface","interfaceOptions","compareWith","value","ionChange","ionCancel","ionDismiss","ionFocus","ionBlur","ionStyle"],"value","v-ion-change","ionChange"),si=Ot("ion-select-option",Zy,["disabled","value"]);var It;(function(e){e.WillEnter="onIonViewWillEnter",e.DidEnter="onIonViewDidEnter",e.WillLeave="onIonViewWillLeave",e.DidLeave="onIonViewDidLeave"})(It||(It={}));sv+"",It.WillEnter,av+"",It.DidEnter,lv+"",It.WillLeave,cv+"",It.DidLeave;const Ew=()=>{if(typeof window<"u"){const e=window.Ionic;if(e&&e.config)return e.config}return null},Tw=(e,t,n)=>{if(n){const o=n,i=o.proxy[e]||(o.proxy[e]=[]);o.exposed&&(o.exposed[e]=i);const r=(...s)=>{if(!o.isUnmounted)return s?t(...s):t()};return i.push(r),r}else console.warn("[@ionic/vue]: Ionic Lifecycle Hooks can only be used during execution of setup().")},Pi=e=>(t,n=h.getCurrentInstance())=>Tw(e,t,n);Pi(It.WillEnter);Pi(It.DidEnter);Pi(It.WillLeave);Pi(It.DidLeave);const Ju=e=>{var t;return((t=e.type)===null||t===void 0?void 0:t.name)==="IonTabButton"},Qu=e=>{let t=[];return e.forEach(n=>{if(Ju(n))t.push(n);else if(Array.isArray(n.children)&&n.children.length>1){const o=Qu(n.children);t=[...t,...o]}}),t};h.defineComponent({name:"IonTabBar",props:{_tabsWillChange:{type:Function,default:()=>{}},_tabsDidChange:{type:Function,default:()=>{}}},data(){return{tabState:{activeTab:void 0,tabs:{}},tabVnodes:[]}},updated(){this.setupTabState(h.inject("navManager"))},methods:{setupTabState(e){const t=this.$data.tabState,n=h.getCurrentInstance();(this.$data.tabVnodes=Qu(n.subTree.children||[])).forEach(i=>{t.tabs[i.props.tab]={originalHref:i.props.href,currentHref:i.props.href,ref:i},i.component.props._getTabState=()=>t}),this.checkActiveTab(e)},checkActiveTab(e){const t=e.getCurrentRouteInfo(),n=this.$data.tabVnodes,{tabs:o,activeTab:i}=this.$data.tabState,r=this.$data.tabState,a=Object.keys(o).find(u=>{const f=o[u].originalHref;return t.pathname.startsWith(f)});if(n.forEach(u=>{const f=o[u.props.tab];(!f||f.originalHref!==u.props.href)&&(o[u.props.tab]={originalHref:u.props.href,currentHref:u.props.href,ref:u})}),a&&i){const u=this.$data.tabState.tabs[i].currentHref;if(a!==i||u!==t.pathname){const f=t.search?`?${t.search}`:"";o[a]=Object.assign(Object.assign({},o[a]),{currentHref:t.pathname+f})}t.routerAction==="pop"&&a!==i&&(o[i]=Object.assign(Object.assign({},o[i]),{currentHref:o[i].originalHref}))}const l=n.find(u=>{var f;return Ju(u)&&((f=u.props)===null||f===void 0?void 0:f.tab)===a}),c=this.$refs.ionTabBar,d=a!==i;c&&(l?(d&&this.$props._tabsWillChange(a),e.handleSetCurrentTab(a),c.selectedTab=r.activeTab=a,d&&this.$props._tabsDidChange(a)):c.selectedTab=r.activeTab="")}},mounted(){const e=h.inject("navManager");this.setupTabState(e),e.registerHistoryChangeListener(()=>this.checkActiveTab(e))},setup(e,{slots:t}){return nw(),()=>h.h("ion-tab-bar",{ref:"ionTabBar"},t.default&&t.default())}});h.shallowRef([]);const Iw=h.defineComponent({name:"IonIcon",props:{color:String,flipRtl:Boolean,icon:String,ios:String,lazy:String,md:String,mode:String,name:String,size:String,src:String},setup(e,{slots:t}){return bw(),()=>{var n,o;const{icon:i,ios:r,md:s,mode:a}=e;let l;const c=Ew(),d=a||(c==null?void 0:c.get("mode"));return r||s?d==="ios"?l=(n=r??s)!==null&&n!==void 0?n:i:l=(o=s??r)!==null&&o!==void 0?o:i:l=i,h.h("ion-icon",Object.assign(Object.assign({},e),{icon:l}),t)}}}),ef=h.defineComponent({__name:"ProductIdentifier",setup(e){const t=rd(),n=exports.appContext.config.globalProperties.$store,o=h.computed(()=>n.getters["user/getCurrentEComStore"]),i=h.computed(()=>t.getProductIdentificationPref),r=t.getProductIdentificationOptions;h.onMounted(()=>{t.getIdentificationPref(o.value.productStoreId)});function s(a,l){t.setProductIdentificationPref(l,a,o.value.productStoreId)}return(a,l)=>(h.openBlock(),h.createBlock(h.unref(ea),null,{default:h.withCtx(()=>[h.createVNode(h.unref(na),null,{default:h.withCtx(()=>[h.createVNode(h.unref(oa),null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString("Product Identifier"))]),_:1})]),_:1}),h.createVNode(h.unref(ta),null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString("Choosing a product identifier allows you to view products with your preferred identifiers."),1)]),_:1}),h.createVNode(h.unref(Zr),null,{default:h.withCtx(()=>[h.createVNode(h.unref(Jr),null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString("Primary Product Identifier"))]),_:1}),h.createVNode(h.unref(Qr),{interface:"popover",placeholder:"primary identifier",value:i.value.primaryId,onIonChange:l[0]||(l[0]=c=>s(c.detail.value,"primaryId"))},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(r),c=>(h.openBlock(),h.createBlock(h.unref(si),{key:c,value:c},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(c),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1}),h.createVNode(h.unref(Zr),null,{default:h.withCtx(()=>[h.createVNode(h.unref(Jr),null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString("Secondary Product Identifier"))]),_:1}),h.createVNode(h.unref(Qr),{interface:"popover",placeholder:"secondary identifier",value:i.value.secondaryId,onIonChange:l[1]||(l[1]=c=>s(c.detail.value,"secondaryId"))},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(r),c=>(h.openBlock(),h.createBlock(h.unref(si),{key:c,value:c},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(c),1)]),_:2},1032,["value"]))),128)),h.createVNode(h.unref(si),{value:""},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString("None"))]),_:1})]),_:1},8,["value"])]),_:1})]),_:1}))}}),ia=Is("user",{state:()=>({locale:"",localeOptions:process.env.VUE_APP_LOCALES?JSON.parse(process.env.VUE_APP_LOCALES):{en:"English"}}),getters:{getLocale:e=>e.locale,getLocaleOptions:e=>e.localeOptions},actions:{setLocale(e){exports.i18n.global.locale=e,this.locale=e}}}),Sw=h.defineComponent({__name:"LanguageSwitcher",setup(e){const t=ia(),n=h.computed(()=>t.getLocaleOptions),o=h.computed(()=>t.getLocale),i=r=>{t.setLocale(r)};return(r,s)=>(h.openBlock(),h.createBlock(h.unref(ea),null,{default:h.withCtx(()=>[h.createVNode(h.unref(na),null,{default:h.withCtx(()=>[h.createVNode(h.unref(oa),null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(r.$t("Language")),1)]),_:1})]),_:1}),h.createVNode(h.unref(ta),null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(r.$t("Select your preferred language.")),1)]),_:1}),h.createVNode(h.unref(Zr),{lines:"none"},{default:h.withCtx(()=>[h.createVNode(h.unref(Jr),null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(r.$t("Choose language")),1)]),_:1}),h.createVNode(h.unref(Qr),{interface:"popover",value:o.value,onIonChange:s[0]||(s[0]=a=>i(a.detail.value))},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(Object.keys(n.value),a=>(h.openBlock(),h.createBlock(h.unref(si),{key:a,value:a},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(n.value[a]),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1})]),_:1}))}}),tf=(e,t)=>{const n=(t.startsWith("http")?t.replace(/api\/?/,""):`https://${t}.hotwax.io/`)+`commerce/control/main?token=${e}`;window.open(n,"_blank","noopener, noreferrer")},Cw="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M384 224v184a40 40 0 01-40 40H104a40 40 0 01-40-40V168a40 40 0 0140-40h167.48M336 64h112v112M224 288L440 72' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",nf=h.defineComponent({__name:"OmsInstanceNavigator",setup(e){const t=$s(),n=h.computed(()=>t.getToken),o=h.computed(()=>t.getOms);return(i,r)=>(h.openBlock(),h.createBlock(h.unref(ea),null,{default:h.withCtx(()=>[h.createVNode(h.unref(na),null,{default:h.withCtx(()=>[h.createVNode(h.unref(_w),null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(i.$t("OMS instance")),1)]),_:1}),h.createVNode(h.unref(oa),null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref(t).getOms),1)]),_:1})]),_:1}),h.createVNode(h.unref(ta),null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(i.$t("This is the name of the OMS you are connected to right now. Make sure that you are connected to the right instance before proceeding.")),1)]),_:1}),h.createVNode(h.unref(xw),{onClick:r[0]||(r[0]=s=>h.unref(tf)(n.value.value,o.value)),fill:"clear"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(i.$t("Go to OMS"))+" ",1),h.createVNode(h.unref(Iw),{slot:"end",icon:h.unref(Cw)},null,8,["icon"])]),_:1})]),_:1}))}}),Ow=["src"],of=h.defineComponent({__name:"ShopifyImg",props:["src","size"],setup(e){const t=e,n=h.ref(Oa.defaultImgUrl),o=s=>new Promise((a,l)=>{const c=new Image;c.onload=()=>a(!0),c.onerror=()=>l(!1),c.src=s}),i=(s,a)=>a?s.replace(/_(pico|icon|thumb|small|compact|medium|large|grande|original|1024x1024|2048x2048|master)+\./g,".").replace(/\.jpg|\.png|\.gif|\.jpeg/g,function(l){return"_"+a+l}):s,r=()=>{if(t.src){const s=i(t.src,t.size);o(s).then(()=>n.value=s)}};return h.onMounted(()=>{r()}),h.onUpdated(()=>{r()}),(s,a)=>(h.openBlock(),h.createElementBlock("img",{src:n.value},null,8,Ow))}});/**
|
|
106
|
+
*/const uw=".sc-ion-select-popover-ios-h ion-list.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-ios,ion-label.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",dw=".sc-ion-select-popover-md-h ion-list.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-md,ion-label.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md{opacity:0}ion-item.sc-ion-select-popover-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-popover-md{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08);--background-focused:var(--ion-color-primary, #3880ff);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #3880ff);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-popover-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #3880ff)}",fw=we(class extends _e{constructor(){super(),this.__registerHost(),this.options=[]}onSelect(t){this.setChecked(t),this.callOptionHandler(t)}findOptionFromEvent(t){const{options:e}=this;return e.find(n=>n.value===t.target.value)}callOptionHandler(t){const e=this.findOptionFromEvent(t),n=this.getValues(t);e!=null&&e.handler&&Ni(e.handler,n)}rbClick(t){this.callOptionHandler(t)}setChecked(t){const{multiple:e}=this,n=this.findOptionFromEvent(t);e&&n&&(n.checked=t.detail.checked)}getValues(t){const{multiple:e,options:n}=this;if(e)return n.filter(i=>i.checked).map(i=>i.value);const r=this.findOptionFromEvent(t);return r?r.value:void 0}renderOptions(t){const{multiple:e}=this;switch(e){case!0:return this.renderCheckboxOptions(t);default:return this.renderRadioOptions(t)}}renderCheckboxOptions(t){return t.map(e=>I("ion-item",{class:Yt(e.cssClass)},I("ion-checkbox",{slot:"start",value:e.value,disabled:e.disabled,checked:e.checked}),I("ion-label",null,e.text)))}renderRadioOptions(t){const e=t.filter(n=>n.checked).map(n=>n.value)[0];return I("ion-radio-group",{value:e},t.map(n=>I("ion-item",{class:Yt(n.cssClass)},I("ion-label",null,n.text),I("ion-radio",{value:n.value,disabled:n.disabled,onClick:r=>this.rbClick(r)}))))}render(){const{header:t,message:e,options:n,subHeader:r}=this,i=r!==void 0||e!==void 0;return I(xe,{class:ie(this)},I("ion-list",null,t!==void 0&&I("ion-list-header",null,t),i&&I("ion-item",null,I("ion-label",{class:"ion-text-wrap"},r!==void 0&&I("h3",null,r),e!==void 0&&I("p",null,e))),this.renderOptions(n)))}static get style(){return{ios:uw,md:dw}}},[34,"ion-select-popover",{header:[1],subHeader:[1,"sub-header"],message:[1],multiple:[4],options:[16]},[[0,"ionChange","onSelect"]]]);function hw(){if(typeof customElements>"u")return;["ion-select-popover","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-note","ion-radio","ion-radio-group","ion-ripple-effect"].forEach(e=>{switch(e){case"ion-select-popover":customElements.get(e)||customElements.define(e,fw);break;case"ion-checkbox":customElements.get(e)||E0();break;case"ion-icon":customElements.get(e)||pa();break;case"ion-item":customElements.get(e)||Ql();break;case"ion-label":customElements.get(e)||ec();break;case"ion-list":customElements.get(e)||F0();break;case"ion-list-header":customElements.get(e)||B0();break;case"ion-note":customElements.get(e)||Jl();break;case"ion-radio":customElements.get(e)||$0();break;case"ion-radio-group":customElements.get(e)||V0();break;case"ion-ripple-effect":customElements.get(e)||Fr();break}})}/*!
|
|
107
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
108
|
+
*/const pw=(t,e,n)=>{if(typeof MutationObserver>"u")return;const r=new MutationObserver(i=>{n(gw(i,e))});return r.observe(t,{childList:!0,subtree:!0}),r},gw=(t,e)=>{let n;return t.forEach(r=>{for(let i=0;i<r.addedNodes.length;i++)n=mw(r.addedNodes[i],e)||n}),n},mw=(t,e)=>t.nodeType!==1?void 0:(t.tagName===e.toUpperCase()?[t]:Array.from(t.querySelectorAll(e))).find(r=>r.value===t.value),vw=":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);white-space:nowrap;overflow:hidden;z-index:2}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{position:relative}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:20px}.select-icon{width:12px;height:18px;opacity:0.33}",bw=":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);white-space:nowrap;overflow:hidden;z-index:2}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{position:relative}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:16px}.select-icon{width:19px;height:19px;-webkit-transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:0.55}:host-context(.item-label-stacked) .select-icon,:host-context(.item-label-floating:not(.item-fill-outline)) .select-icon,:host-context(.item-label-floating.item-fill-outline){-webkit-transform:translate3d(0, -9px, 0);transform:translate3d(0, -9px, 0)}:host-context(.item-has-focus) .select-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host-context(.item-has-focus.item-label-stacked) .select-icon,:host-context(.item-has-focus.item-label-floating:not(.item-fill-outline)) .select-icon{-webkit-transform:translate3d(0, -9px, 0) rotate(180deg);transform:translate3d(0, -9px, 0) rotate(180deg)}:host-context(ion-item.ion-focused) .select-icon,:host-context(.item-has-focus) .select-icon{color:var(--highlight-color-focused);opacity:1}",xw=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=te(this,"ionChange",7),this.ionCancel=te(this,"ionCancel",7),this.ionDismiss=te(this,"ionDismiss",7),this.ionFocus=te(this,"ionFocus",7),this.ionBlur=te(this,"ionBlur",7),this.ionStyle=te(this,"ionStyle",7),this.inputId=`ion-sel-${_w++}`,this.didInit=!1,this.isExpanded=!1,this.disabled=!1,this.cancelText="Cancel",this.okText="OK",this.name=this.inputId,this.multiple=!1,this.interface="alert",this.interfaceOptions={},this.onClick=t=>{this.setFocus(),this.open(t)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}styleChanged(){this.emitStyle()}valueChanged(){this.emitStyle(),this.didInit&&this.ionChange.emit({value:this.value})}async connectedCallback(){this.updateOverlayOptions(),this.emitStyle(),this.mutationO=pw(this.el,"ion-select-option",async()=>{this.updateOverlayOptions(),Fi(this)})}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}componentDidLoad(){this.didInit=!0}async open(t){if(this.disabled||this.isExpanded)return;this.isExpanded=!0;const e=this.overlay=await this.createOverlay(t);if(e.onDidDismiss().then(()=>{this.overlay=void 0,this.isExpanded=!1,this.ionDismiss.emit(),this.setFocus()}),await e.present(),this.interface==="popover"){let n=this.childOpts.map(i=>i.value).indexOf(this.value);n=n>-1?n:0;const r=e.querySelector(`.select-interface-option:nth-child(${n+1})`);if(r){b0(r);const i=r.querySelector("ion-radio, ion-checkbox");i&&i.focus()}}return e}createOverlay(t){let e=this.interface;return e==="action-sheet"&&this.multiple&&(console.warn(`Select interface cannot be "${e}" with a multi-value select. Using the "alert" interface instead.`),e="alert"),e==="popover"&&!t&&(console.warn(`Select interface cannot be a "${e}" without passing an event. Using the "alert" interface instead.`),e="alert"),e==="action-sheet"?this.openActionSheet():e==="popover"?this.openPopover(t):this.openAlert()}updateOverlayOptions(){const t=this.overlay;if(!t)return;const e=this.childOpts,n=this.value;switch(this.interface){case"action-sheet":t.buttons=this.createActionSheetButtons(e,n);break;case"popover":const r=t.querySelector("ion-select-popover");r&&(r.options=this.createPopoverOptions(e,n));break;case"alert":const i=this.multiple?"checkbox":"radio";t.inputs=this.createAlertInputs(e,i,n);break}}createActionSheetButtons(t,e){const n=t.map(r=>{const i=No(r),o=Array.from(r.classList).filter(s=>s!=="hydrated").join(" "),a=`${qa} ${o}`;return{role:Xa(e,i,this.compareWith)?"selected":"",text:r.textContent,cssClass:a,handler:()=>{this.value=i}}});return n.push({text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}}),n}createAlertInputs(t,e,n){return t.map(i=>{const o=No(i),a=Array.from(i.classList).filter(l=>l!=="hydrated").join(" "),s=`${qa} ${a}`;return{type:e,cssClass:s,label:i.textContent||"",value:o,checked:Xa(n,o,this.compareWith),disabled:i.disabled}})}createPopoverOptions(t,e){return t.map(r=>{const i=No(r),o=Array.from(r.classList).filter(s=>s!=="hydrated").join(" "),a=`${qa} ${o}`;return{text:r.textContent||"",cssClass:a,value:i,checked:Xa(e,i,this.compareWith),disabled:r.disabled,handler:s=>{this.value=s,this.multiple||this.close()}}})}async openPopover(t){const e=this.interfaceOptions,n=ie(this),r=n!=="md",i=this.multiple,o=this.value;let a=t,s="auto";const l=this.el.closest("ion-item");l&&(l.classList.contains("item-label-floating")||l.classList.contains("item-label-stacked"))&&(a=Object.assign(Object.assign({},t),{detail:{ionShadowTarget:l}}),s="cover");const c=Object.assign(Object.assign({mode:n,event:a,alignment:"center",size:s,showBackdrop:r},e),{component:"ion-select-popover",cssClass:["select-popover",e.cssClass],componentProps:{header:e.header,subHeader:e.subHeader,message:e.message,multiple:i,value:o,options:this.createPopoverOptions(this.childOpts,o)}});return yy.create(c)}async openActionSheet(){const t=ie(this),e=this.interfaceOptions,n=Object.assign(Object.assign({mode:t},e),{buttons:this.createActionSheetButtons(this.childOpts,this.value),cssClass:["select-action-sheet",e.cssClass]});return by.create(n)}async openAlert(){const t=this.getLabel(),e=t?t.textContent:null,n=this.interfaceOptions,r=this.multiple?"checkbox":"radio",i=ie(this),o=Object.assign(Object.assign({mode:i},n),{header:n.header?n.header:e,inputs:this.createAlertInputs(this.childOpts,r,this.value),buttons:[{text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}},{text:this.okText,handler:a=>{this.value=a}}],cssClass:["select-alert",n.cssClass,this.multiple?"multiple-select-alert":"single-select-alert"]});return vy.create(o)}close(){return this.overlay?this.overlay.dismiss():Promise.resolve(!1)}getLabel(){return v0(this.el)}hasValue(){return this.getText()!==""}get childOpts(){return Array.from(this.el.querySelectorAll("ion-select-option"))}getText(){const t=this.selectedText;return t!=null&&t!==""?t:ww(this.childOpts,this.value,this.compareWith)}setFocus(){this.focusEl&&this.focusEl.focus()}emitStyle(){this.ionStyle.emit({interactive:!0,"interactive-disabled":this.disabled,select:!0,"select-disabled":this.disabled,"has-placeholder":this.placeholder!==void 0,"has-value":this.hasValue(),"has-focus":this.isExpanded})}render(){const{disabled:t,el:e,inputId:n,isExpanded:r,name:i,placeholder:o,value:a}=this,s=ie(this),{labelText:l,labelId:c}=ql(e,n);Kl(!0,e,i,yw(a),t);const u=this.getText();let d=!1,f=u;f===""&&o!==void 0&&(f=o,d=!0);const h={"select-text":!0,"select-placeholder":d},p=d?"placeholder":"text",g=l!==void 0?f!==""?`${f}, ${l}`:l:f;return I(xe,{onClick:this.onClick,role:"button","aria-haspopup":"listbox","aria-disabled":t?"true":null,"aria-label":g,class:{[s]:!0,"in-item":Pn("ion-item",e),"select-disabled":t,"select-expanded":r}},I("div",{"aria-hidden":"true",class:h,part:p},f),I("div",{class:"select-icon",role:"presentation",part:"icon"},I("div",{class:"select-icon-inner"})),I("label",{id:c},g),I("button",{type:"button",disabled:t,id:n,"aria-labelledby":c,"aria-haspopup":"listbox","aria-expanded":`${r}`,onFocus:this.onFocus,onBlur:this.onBlur,ref:b=>this.focusEl=b}))}get el(){return this}static get watchers(){return{disabled:["styleChanged"],placeholder:["styleChanged"],isExpanded:["styleChanged"],value:["valueChanged"]}}static get style(){return{ios:vw,md:bw}}},[33,"ion-select",{disabled:[4],cancelText:[1,"cancel-text"],okText:[1,"ok-text"],placeholder:[1],name:[1],selectedText:[1,"selected-text"],multiple:[4],interface:[1],interfaceOptions:[8,"interface-options"],compareWith:[1,"compare-with"],value:[1032],isExpanded:[32],open:[64]}]),Xa=(t,e,n)=>t===void 0?!1:Array.isArray(t)?t.some(r=>zs(r,e,n)):zs(t,e,n),No=t=>{const e=t.value;return e===void 0?t.textContent||"":e},yw=t=>{if(t!=null)return Array.isArray(t)?t.join(","):t.toString()},zs=(t,e,n)=>typeof n=="function"?n(t,e):typeof n=="string"?t[n]===e[n]:Array.isArray(e)?e.includes(t):t===e,ww=(t,e,n)=>e===void 0?"":Array.isArray(e)?e.map(r=>Xu(t,r,n)).filter(r=>r!==null).join(", "):Xu(t,e,n)||"",Xu=(t,e,n)=>{const r=t.find(i=>zs(e,No(i),n));return r?r.textContent:null};let _w=0;const qa="select-interface-option";function Ew(){if(typeof customElements>"u")return;["ion-select","ion-action-sheet","ion-alert","ion-backdrop","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-note","ion-popover","ion-radio","ion-radio-group","ion-ripple-effect","ion-select-popover"].forEach(e=>{switch(e){case"ion-select":customElements.get(e)||customElements.define(e,xw);break;case"ion-action-sheet":customElements.get(e)||ew();break;case"ion-alert":customElements.get(e)||cw();break;case"ion-backdrop":customElements.get(e)||eo();break;case"ion-checkbox":customElements.get(e)||E0();break;case"ion-icon":customElements.get(e)||pa();break;case"ion-item":customElements.get(e)||Ql();break;case"ion-label":customElements.get(e)||ec();break;case"ion-list":customElements.get(e)||F0();break;case"ion-list-header":customElements.get(e)||B0();break;case"ion-note":customElements.get(e)||Jl();break;case"ion-popover":customElements.get(e)||f2();break;case"ion-radio":customElements.get(e)||$0();break;case"ion-radio-group":customElements.get(e)||V0();break;case"ion-ripple-effect":customElements.get(e)||Fr();break;case"ion-select-popover":customElements.get(e)||hw();break}})}const Aw=Ew;/*!
|
|
109
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
110
|
+
*/const kw=":host{display:none}",Cw=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inputId=`ion-selopt-${Sw++}`,this.disabled=!1}render(){return I(xe,{role:"option",id:this.inputId,class:ie(this)})}get el(){return this}static get style(){return kw}},[1,"ion-select-option",{disabled:[4],value:[8]}]);let Sw=0;function Iw(){if(typeof customElements>"u")return;["ion-select-option"].forEach(e=>{switch(e){case"ion-select-option":customElements.get(e)||customElements.define(e,Cw);break}})}const Tw=Iw;/*!
|
|
111
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
112
|
+
*/const Ow=":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{left:0;top:0;padding-left:90px;padding-right:90px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);position:absolute;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0);font-size:17px;font-weight:600;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:90px;padding-inline-start:90px;-webkit-padding-end:90px;padding-inline-end:90px}}:host(.title-small){padding-left:9px;padding-right:9px;padding-top:6px;padding-bottom:16px;position:relative;font-size:13px;font-weight:normal}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.title-small){padding-left:unset;padding-right:unset;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px}}:host(.title-large){padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:0;-webkit-transform-origin:left center;transform-origin:left center;bottom:0;-ms-flex-align:end;align-items:flex-end;min-width:100%;padding-bottom:6px;font-size:34px;font-weight:700;text-align:start}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.title-large){padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host(.title-large.title-rtl){-webkit-transform-origin:right center;transform-origin:right center}:host(.title-large.ion-cloned-element){--color:var(--ion-text-color, #000)}:host(.title-large) .toolbar-title{-webkit-transform-origin:inherit;transform-origin:inherit}:host-context([dir=rtl]):host(.title-large) .toolbar-title,:host-context([dir=rtl]).title-large .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}",Dw=":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{padding-left:20px;padding-right:20px;padding-top:0;padding-bottom:0;font-size:20px;font-weight:500;letter-spacing:0.0125em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}:host(.title-small){width:100%;height:100%;font-size:15px;font-weight:normal}",Nw=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionStyle=te(this,"ionStyle",7)}sizeChanged(){this.emitStyle()}connectedCallback(){this.emitStyle()}emitStyle(){const t=this.getSize();this.ionStyle.emit({[`title-${t}`]:!0})}getSize(){return this.size!==void 0?this.size:"default"}render(){const t=ie(this),e=this.getSize();return I(xe,{class:Tt(this.color,{[t]:!0,[`title-${e}`]:!0,"title-rtl":document.dir==="rtl"})},I("div",{class:"toolbar-title"},I("slot",null)))}get el(){return this}static get watchers(){return{size:["sizeChanged"]}}static get style(){return{ios:Ow,md:Dw}}},[33,"ion-title",{color:[513],size:[1]}]);function Pw(){if(typeof customElements>"u")return;["ion-title"].forEach(e=>{switch(e){case"ion-title":customElements.get(e)||customElements.define(e,Nw);break}})}const Rw=Pw;/*!
|
|
113
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
114
|
+
*/const Mw=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:var(--ion-safe-area-left);padding-right:var(--ion-safe-area-right);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toolbar-container{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-color-step-50, #f7f7f7));--color:var(--ion-toolbar-color, var(--ion-text-color, #000));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--padding-top:3px;--padding-bottom:3px;--padding-start:4px;--padding-end:4px;--min-height:44px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:4;order:4;min-width:0}:host(.toolbar-segment) .toolbar-content{display:-ms-inline-flexbox;display:inline-flex}:host(.toolbar-searchbar) .toolbar-container{padding-top:0;padding-bottom:0}:host(.toolbar-searchbar) ::slotted(*){-ms-flex-item-align:start;align-self:start}:host(.toolbar-searchbar) ::slotted(ion-chip){margin-top:3px}:host(.toolbar-searchbar) ::slotted(ion-back-button){height:38px}::slotted(ion-buttons){min-height:38px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:3;order:3}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}:host(.toolbar-title-large) .toolbar-container{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start}:host(.toolbar-title-large) .toolbar-content ion-title{-ms-flex:1;flex:1;-ms-flex-order:8;order:8;min-width:100%}",Lw=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:var(--ion-safe-area-left);padding-right:var(--ion-safe-area-right);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toolbar-container{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-background-color, #fff));--color:var(--ion-toolbar-color, var(--ion-text-color, #424242));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, #c1c4cd)));--padding-top:0;--padding-bottom:0;--padding-start:0;--padding-end:0;--min-height:56px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:3;order:3;min-width:0;max-width:100%}::slotted(.buttons-first-slot){margin-left:4px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(.buttons-first-slot){margin-left:unset;-webkit-margin-start:4px;margin-inline-start:4px}}::slotted(.buttons-last-slot){margin-right:4px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(.buttons-last-slot){margin-right:unset;-webkit-margin-end:4px;margin-inline-end:4px}}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:4;order:4}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}",Fw=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.childrenStyles=new Map}componentWillLoad(){const t=Array.from(this.el.querySelectorAll("ion-buttons")),e=t.find(i=>i.slot==="start");e&&e.classList.add("buttons-first-slot");const n=t.reverse(),r=n.find(i=>i.slot==="end")||n.find(i=>i.slot==="primary")||n.find(i=>i.slot==="secondary");r&&r.classList.add("buttons-last-slot")}childrenStyle(t){t.stopPropagation();const e=t.target.tagName,n=t.detail,r={},i=this.childrenStyles.get(e)||{};let o=!1;Object.keys(n).forEach(a=>{const s=`toolbar-${a}`,l=n[a];l!==i[s]&&(o=!0),l&&(r[s]=!0)}),o&&(this.childrenStyles.set(e,r),Fi(this))}render(){const t=ie(this),e={};return this.childrenStyles.forEach(n=>{Object.assign(e,n)}),I(xe,{class:Object.assign(Object.assign({},e),Tt(this.color,{[t]:!0,"in-toolbar":Pn("ion-toolbar",this.el)}))},I("div",{class:"toolbar-background"}),I("div",{class:"toolbar-container"},I("slot",{name:"start"}),I("slot",{name:"secondary"}),I("div",{class:"toolbar-content"},I("slot",null)),I("slot",{name:"primary"}),I("slot",{name:"end"})))}get el(){return this}static get style(){return{ios:Mw,md:Lw}}},[33,"ion-toolbar",{color:[513]},[[0,"ionStyle","childrenStyle"]]]);function Bw(){if(typeof customElements>"u")return;["ion-toolbar"].forEach(e=>{switch(e){case"ion-toolbar":customElements.get(e)||customElements.define(e,Fw);break}})}const $w=Bw;/*!
|
|
115
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
116
|
+
*/const qu="ionKeyboardDidShow";/*!
|
|
117
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
118
|
+
*/var ri;(function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"})(ri||(ri={}));const Vi={getEngine(){var t;return((t=ke==null?void 0:ke.Capacitor)===null||t===void 0?void 0:t.isPluginAvailable("StatusBar"))&&(ke==null?void 0:ke.Capacitor.Plugins.StatusBar)},supportsDefaultStatusBarStyle(){var t;return!!(!((t=ke==null?void 0:ke.Capacitor)===null||t===void 0)&&t.PluginHeaders)},setStyle(t){const e=this.getEngine();e&&e.setStyle(t)},getStyle:async function(){const t=this.getEngine();if(!t)return ri.Default;const{style:e}=await t.getInfo();return e}},Ws=(t,e)=>{if(e===1)return 0;const n=1/(1-e),r=-(e*n);return t*n+r},W0=()=>{!ke||ke.innerWidth>=768||!Vi.supportsDefaultStatusBarStyle()||Vi.setStyle({style:ri.Dark})},G0=(t=ri.Default)=>{!ke||ke.innerWidth>=768||!Vi.supportsDefaultStatusBarStyle()||Vi.setStyle({style:t})},j0=async(t,e)=>{typeof t.canDismiss!="function"||!await t.canDismiss(void 0,Pi)||(e.isRunning()?e.onFinish(()=>{t.dismiss(void 0,"handler")},{oneTimeCallback:!0}):t.dismiss(void 0,"handler"))},Gs=t=>.00255275*2.71828**(-14.9619*t)-1.00255*2.71828**(-.0380968*t)+1,Zo={MIN_PRESENTING_SCALE:.93},Vw=(t,e,n,r)=>{const o=t.offsetHeight;let a=!1,s=!1,l=null,c=null;const u=.2;let d=!0,f=0;const h=()=>l&&Ko(l)?l.scrollY:!0,v=ic({el:t,gestureName:"modalSwipeToClose",gesturePriority:39,direction:"y",threshold:10,canStart:w=>{const y=w.event.target;return y===null||!y.closest?!0:(l=g2(y),l?(Ko(l)?c=St(l).querySelector(".inner-scroll"):c=l,!!!l.querySelector("ion-refresher")&&c.scrollTop===0):y.closest("ion-footer")===null)},onStart:w=>{const{deltaY:y}=w;d=h(),s=t.canDismiss!==void 0&&t.canDismiss!==!0,y>0&&l&&zu(l),e.progressStart(!0,a?1:0)},onMove:w=>{const{deltaY:y}=w;y>0&&l&&zu(l);const C=w.deltaY/o,E=C>=0&&s,k=E?u:.9999,N=E?Gs(C/k):C,D=jo(1e-4,N,k);e.progressStep(D),D>=.5&&f<.5?G0(n):D<.5&&f>=.5&&W0(),f=D},onEnd:w=>{const y=w.velocityY,C=w.deltaY/o,E=C>=0&&s,k=E?u:.9999,N=E?Gs(C/k):C,D=jo(1e-4,N,k),O=(w.deltaY+y*1e3)/o,L=!E&&O>=.5;let B=L?-.001:.001;L?(e.easing("cubic-bezier(0.32, 0.72, 0, 1)"),B+=Wu([0,0],[.32,.72],[0,1],[1,1],D)[0]):(e.easing("cubic-bezier(1, 0, 0.68, 0.28)"),B+=Wu([0,0],[1,0],[.68,.28],[1,1],D)[0]);const G=Ku(L?C*o:(1-D)*o,y);a=L,v.enable(!1),l&&v2(l,d),e.onFinish(()=>{L||v.enable(!0)}).progressEnd(L?1:0,B,G),E&&D>k/4?j0(t,e):L&&r()}});return v},Ku=(t,e)=>jo(400,t/Math.abs(e*1.1),500),Y0=t=>{const{currentBreakpoint:e,backdropBreakpoint:n}=t,r=n===void 0||n<e,i=r?`calc(var(--backdrop-opacity) * ${e})`:"0",o=X("backdropAnimation").fromTo("opacity",0,i);return r&&o.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),{wrapperAnimation:X("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:`translateY(${100-e*100}%)`}]),backdropAnimation:o}},X0=t=>{const{currentBreakpoint:e,backdropBreakpoint:n}=t,r=`calc(var(--backdrop-opacity) * ${Ws(e,n)})`,i=[{offset:0,opacity:r},{offset:1,opacity:0}],o=[{offset:0,opacity:r},{offset:n,opacity:0},{offset:1,opacity:0}],a=X("backdropAnimation").keyframes(n!==0?o:i);return{wrapperAnimation:X("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-e*100}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:a}},Uw=()=>{const t=X().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),e=X().fromTo("transform","translateY(100vh)","translateY(0vh)");return{backdropAnimation:t,wrapperAnimation:e}},Zu=(t,e)=>{const{presentingEl:n,currentBreakpoint:r}=e,i=St(t),{wrapperAnimation:o,backdropAnimation:a}=r!==void 0?Y0(e):Uw();a.addElement(i.querySelector("ion-backdrop")),o.addElement(i.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const s=X("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(o);if(n){const l=window.innerWidth<768,c=n.tagName==="ION-MODAL"&&n.presentingElement!==void 0,u=St(n),d=X().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),f=document.body;if(l){const h=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",p=c?"-10px":h,g=Zo.MIN_PRESENTING_SCALE,b=`translateY(${p}) scale(${g})`;d.afterStyles({transform:b}).beforeAddWrite(()=>f.style.setProperty("background-color","black")).addElement(n).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:b,borderRadius:"10px 10px 0 0"}]),s.addAnimation(d)}else if(s.addAnimation(a),!c)o.fromTo("opacity","0","1");else{const p=`translateY(-10px) scale(${c?Zo.MIN_PRESENTING_SCALE:1})`;d.afterStyles({transform:p}).addElement(u.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:p}]);const g=X().afterStyles({transform:p}).addElement(u.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:p}]);s.addAnimation([d,g])}}else s.addAnimation(a);return s},Hw=()=>{const t=X().fromTo("opacity","var(--backdrop-opacity)",0),e=X().fromTo("transform","translateY(0vh)","translateY(100vh)");return{backdropAnimation:t,wrapperAnimation:e}},Ju=(t,e,n=500)=>{const{presentingEl:r,currentBreakpoint:i}=e,o=St(t),{wrapperAnimation:a,backdropAnimation:s}=i!==void 0?X0(e):Hw();s.addElement(o.querySelector("ion-backdrop")),a.addElement(o.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const l=X("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(n).addAnimation(a);if(r){const c=window.innerWidth<768,u=r.tagName==="ION-MODAL"&&r.presentingElement!==void 0,d=St(r),f=X().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish(p=>{if(p!==1)return;r.style.setProperty("overflow",""),Array.from(h.querySelectorAll("ion-modal")).filter(b=>b.presentingElement!==void 0).length<=1&&h.style.setProperty("background-color","")}),h=document.body;if(c){const p=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",g=u?"-10px":p,b=Zo.MIN_PRESENTING_SCALE,m=`translateY(${g}) scale(${b})`;f.addElement(r).keyframes([{offset:0,filter:"contrast(0.85)",transform:m,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),l.addAnimation(f)}else if(l.addAnimation(s),!u)a.fromTo("opacity","1","0");else{const g=`translateY(-10px) scale(${u?Zo.MIN_PRESENTING_SCALE:1})`;f.addElement(d.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:g},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const b=X().addElement(d.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:g},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);l.addAnimation([f,b])}}else l.addAnimation(s);return l},zw=()=>{const t=X().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),e=X().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]);return{backdropAnimation:t,wrapperAnimation:e}},Ww=(t,e)=>{const{currentBreakpoint:n}=e,r=St(t),{wrapperAnimation:i,backdropAnimation:o}=n!==void 0?Y0(e):zw();return o.addElement(r.querySelector("ion-backdrop")),i.addElement(r.querySelector(".modal-wrapper")),X().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([o,i])},Gw=()=>{const t=X().fromTo("opacity","var(--backdrop-opacity)",0),e=X().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}]);return{backdropAnimation:t,wrapperAnimation:e}},jw=(t,e)=>{const{currentBreakpoint:n}=e,r=St(t),{wrapperAnimation:i,backdropAnimation:o}=n!==void 0?X0(e):Gw();return o.addElement(r.querySelector("ion-backdrop")),i.addElement(r.querySelector(".modal-wrapper")),X().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([o,i])},Yw=(t,e,n,r,i,o,a=[],s,l,c)=>{const u=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}],d=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-i,opacity:0},{offset:1,opacity:0}],f={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:i!==0?d:u},h=t.querySelector("ion-content"),p=n.clientHeight;let g=r,b=0,m=!1;const v=.95,w=o.childAnimations.find(se=>se.id==="wrapperAnimation"),y=o.childAnimations.find(se=>se.id==="backdropAnimation"),C=a[a.length-1],E=a[0],k=()=>{t.style.setProperty("pointer-events","auto"),e.style.setProperty("pointer-events","auto"),t.classList.remove("ion-disable-focus-trap")},N=()=>{t.style.setProperty("pointer-events","none"),e.style.setProperty("pointer-events","none"),t.classList.add("ion-disable-focus-trap")};w&&y&&(w.keyframes([...f.WRAPPER_KEYFRAMES]),y.keyframes([...f.BACKDROP_KEYFRAMES]),o.progressStart(!0,1-g),g>i?k():N()),h&&g!==C&&(h.scrollY=!1);const D=se=>{const Z=se.event.target.closest("ion-content");return g=s(),!(g===1&&Z)},O=()=>{m=t.canDismiss!==void 0&&t.canDismiss!==!0&&E===0,h&&(h.scrollY=!1),We(()=>{t.focus()}),o.progressStart(!0,1-g)},L=se=>{const Z=1-g,K=a.length>1?1-a[1]:void 0,Te=Z+se.deltaY/p,Re=K!==void 0&&Te>=K&&m,Me=Re?v:.9999,je=Re&&K!==void 0?K+Gs((Te-K)/(Me-K)):Te;b=jo(1e-4,je,Me),o.progressStep(b)},B=se=>{const Z=se.velocityY,K=(se.deltaY+Z*350)/p,Te=g-K,Re=a.reduce((Me,je)=>Math.abs(je-Te)<Math.abs(Me-Te)?je:Me);G({breakpoint:Re,breakpointOffset:b,canDismiss:m})},G=se=>{const{breakpoint:Z,canDismiss:K,breakpointOffset:Te}=se,Re=K&&Z===0,Me=Re?g:Z,je=Me!==0;return g=0,w&&y&&(w.keyframes([{offset:0,transform:`translateY(${Te*100}%)`},{offset:1,transform:`translateY(${(1-Me)*100}%)`}]),y.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${Ws(1-Te,i)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${Ws(Me,i)})`}]),o.progressStep(0)),ae.enable(!1),Re?j0(t,o):je||l(),new Promise(Et=>{o.onFinish(()=>{je?w&&y?We(()=>{w.keyframes([...f.WRAPPER_KEYFRAMES]),y.keyframes([...f.BACKDROP_KEYFRAMES]),o.progressStart(!0,1-Me),g=Me,c(g),h&&g===a[a.length-1]&&(h.scrollY=!0),g>i?k():N(),ae.enable(!0),Et()}):(ae.enable(!0),Et()):Et()},{oneTimeCallback:!0}).progressEnd(1,0,500)})},ae=ic({el:n,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:D,onStart:O,onMove:L,onEnd:B});return{gesture:ae,moveSheetToBreakpoint:G}},Xw=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;margin-left:auto;margin-right:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.modal-handle{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.modal-handle::before{padding-left:4px;padding-right:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.modal-handle::before{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: 1px){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: 1px){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-card) .modal-wrapper,:host-context([dir=rtl]).modal-card .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-sheet) .modal-wrapper,:host-context([dir=rtl]).modal-sheet .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}',qw=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;margin-left:auto;margin-right:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.modal-handle{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.modal-handle::before{padding-left:4px;padding-right:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.modal-handle::before{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}',Kw=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=te(this,"ionModalDidPresent",7),this.willPresent=te(this,"ionModalWillPresent",7),this.willDismiss=te(this,"ionModalWillDismiss",7),this.didDismiss=te(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=te(this,"ionBreakpointDidChange",7),this.didPresentShorthand=te(this,"didPresent",7),this.willPresentShorthand=te(this,"willPresent",7),this.willDismissShorthand=te(this,"willDismiss",7),this.didDismissShorthand=te(this,"didDismiss",7),this.modalIndex=Jw++,this.coreDelegate=C0(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.presented=!1,this.hasController=!1,this.keyboardClose=!0,this.backdropBreakpoint=0,this.handleBehavior="none",this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.swipeToClose=!1,this.isOpen=!1,this.keepContentsMounted=!1,this.configureTriggerInteraction=()=>{const{trigger:t,el:e,destroyTriggerInteraction:n}=this;if(n&&n(),t===void 0)return;const r=t!==void 0?document.getElementById(t):null;if(!r){Yn(`A trigger element with the ID "${t}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on ion-modal.`,this.el);return}const i=(o,a)=>{const s=()=>{a.present()};return o.addEventListener("click",s),()=>{o.removeEventListener("click",s)}};this.destroyTriggerInteraction=i(r,e)},this.onHandleClick=()=>{const{sheetTransition:t,handleBehavior:e}=this;e!=="cycle"||t!==void 0||this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:t}=this;t===void 0&&this.dismiss(void 0,Cr)},this.onLifecycle=t=>{const e=this.usersElement,n=Zw[t.type];if(e&&n){const r=new CustomEvent(n,{bubbles:!1,cancelable:!1,detail:t.detail});e.dispatchEvent(r)}}}onIsOpenChange(t,e){t===!0&&e===!1?this.present():t===!1&&e===!0&&this.dismiss()}onTriggerChange(){this.configureTriggerInteraction()}async swipeToCloseChanged(t){this.gesture?this.gesture.enable(t):t&&this.initSwipeToClose()}breakpointsChanged(t){t!==void 0&&(this.sortedBreakpoints=t.sort((e,n)=>e-n))}connectedCallback(){const{configureTriggerInteraction:t,el:e}=this;va(e),t()}disconnectedCallback(){const{destroyTriggerInteraction:t}=this;t&&t()}componentWillLoad(){const{breakpoints:t,initialBreakpoint:e,swipeToClose:n,el:r}=this;this.inheritedAttributes=ha(r,["aria-label","role"]),this.modalId=this.el.hasAttribute("id")?this.el.getAttribute("id"):`ion-modal-${this.modalIndex}`,(this.isSheetModal=t!==void 0&&e!==void 0)&&(this.currentBreakpoint=this.initialBreakpoint),t!==void 0&&e!==void 0&&!t.includes(e)&&Yn("Your breakpoints array must include the initialBreakpoint value."),n&&Yn("swipeToClose has been deprecated in favor of canDismiss.\n\nIf you want a card modal to be swipeable, set canDismiss to `true`. In the next major release of Ionic, swipeToClose will be removed, and all card modals will be swipeable by default.")}componentDidLoad(){this.isOpen===!0&&We(()=>this.present()),this.breakpointsChanged(this.breakpoints)}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const e=this.el.parentNode,n=this.inline=e!==null&&!this.hasController,r=this.workingDelegate=n?this.delegate||this.coreDelegate:this.delegate;return{inline:n,delegate:r}}async checkCanDismiss(t,e){const{canDismiss:n}=this;return n===void 0?!0:typeof n=="function"?n(t,e):n}async present(){if(this.presented)return;this.currentTransition!==void 0&&await this.currentTransition,this.currentBreakpoint=this.initialBreakpoint;const{inline:t,delegate:e}=this.getDelegate(!0);this.usersElement=await A0(e,this.el,this.component,["ion-page"],this.componentProps,t),await nc(this.usersElement),ni(()=>this.el.classList.add("show-modal")),this.currentTransition=ba(this,"modalEnter",Zu,Ww,{presentingEl:this.presentingElement,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint}),typeof window<"u"&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),We(()=>{this.gesture&&this.gesture.enable(!0)}))},window.addEventListener(qu,this.keyboardOpenCallback));const n=this.presentingElement!==void 0&&(this.swipeToClose||this.canDismiss!==void 0);n&&ie(this)==="ios"&&(this.statusBarStyle=await Vi.getStyle(),W0()),await this.currentTransition,this.isSheetModal?this.initSheetGesture():n&&this.initSwipeToClose(),this.currentTransition=void 0}initSwipeToClose(){var t;if(ie(this)!=="ios")return;const{el:e}=this,n=this.leaveAnimation||er.get("modalLeave",Ju),r=this.animation=n(e,{presentingEl:this.presentingElement});if(!p2(e)){m2(e);return}const o=(t=this.statusBarStyle)!==null&&t!==void 0?t:ri.Default;this.gesture=Vw(e,r,o,()=>{this.gestureAnimationDismissing=!0,this.animation.onFinish(async()=>{await this.dismiss(void 0,Pi),this.gestureAnimationDismissing=!1})}),this.gesture.enable(!0)}initSheetGesture(){const{wrapperEl:t,initialBreakpoint:e,backdropBreakpoint:n}=this;if(!t||e===void 0)return;const r=this.enterAnimation||er.get("modalEnter",Zu),i=this.animation=r(this.el,{presentingEl:this.presentingElement,currentBreakpoint:e,backdropBreakpoint:n});i.progressStart(!0,1);const{gesture:o,moveSheetToBreakpoint:a}=Yw(this.el,this.backdropEl,t,e,n,i,this.sortedBreakpoints,()=>{var s;return(s=this.currentBreakpoint)!==null&&s!==void 0?s:0},()=>this.sheetOnDismiss(),s=>{this.currentBreakpoint!==s&&(this.currentBreakpoint=s,this.ionBreakpointDidChange.emit({breakpoint:s}))});this.gesture=o,this.moveSheetToBreakpoint=a,this.gesture.enable(!0)}sheetOnDismiss(){this.gestureAnimationDismissing=!0,this.animation.onFinish(async()=>{this.currentBreakpoint=0,this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint}),await this.dismiss(void 0,Pi),this.gestureAnimationDismissing=!1})}async dismiss(t,e){var n;if(this.gestureAnimationDismissing&&e!==Pi||e!=="handler"&&!await this.checkCanDismiss(t,e))return!1;this.presentingElement!==void 0&&(this.swipeToClose||this.canDismiss!==void 0)&&ie(this)==="ios"&&G0(this.statusBarStyle),typeof window<"u"&&this.keyboardOpenCallback&&(window.removeEventListener(qu,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0),this.currentTransition!==void 0&&await this.currentTransition;const i=Xo.get(this)||[];this.currentTransition=xa(this,t,e,"modalLeave",Ju,jw,{presentingEl:this.presentingElement,currentBreakpoint:(n=this.currentBreakpoint)!==null&&n!==void 0?n:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint});const o=await this.currentTransition;if(o){const{delegate:a}=this.getDelegate();await k0(a,this.usersElement),ni(()=>this.el.classList.remove("show-modal")),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy(),i.forEach(s=>s.destroy())}return this.currentBreakpoint=void 0,this.currentTransition=void 0,this.animation=void 0,o}onDidDismiss(){return tr(this.el,"ionModalDidDismiss")}onWillDismiss(){return tr(this.el,"ionModalWillDismiss")}async setCurrentBreakpoint(t){if(!this.isSheetModal){Yn("setCurrentBreakpoint is only supported on sheet modals.");return}if(!this.breakpoints.includes(t)){Yn(`Attempted to set invalid breakpoint value ${t}. Please double check that the breakpoint value is part of your defined breakpoints.`);return}const{currentBreakpoint:e,moveSheetToBreakpoint:n,canDismiss:r,breakpoints:i}=this;e!==t&&n&&(this.sheetTransition=n({breakpoint:t,breakpointOffset:1-e,canDismiss:r!==void 0&&r!==!0&&i[0]===0}),await this.sheetTransition,this.sheetTransition=void 0)}async getCurrentBreakpoint(){return this.currentBreakpoint}async moveToNextBreakpoint(){const{breakpoints:t,currentBreakpoint:e}=this;if(!t||e==null)return!1;const n=t.filter(a=>a!==0),i=(n.indexOf(e)+1)%n.length,o=n[i];return await this.setCurrentBreakpoint(o),!0}render(){const{handle:t,isSheetModal:e,presentingElement:n,htmlAttributes:r,handleBehavior:i,inheritedAttributes:o}=this,a=t!==!1&&e,s=ie(this),{modalId:l}=this,c=n!==void 0&&s==="ios",u=i==="cycle";return I(xe,Object.assign({"no-router":!0,tabindex:"-1"},r,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[s]:!0,"modal-default":!c&&!e,"modal-card":c,"modal-sheet":e,"overlay-hidden":!0},Yt(this.cssClass)),id:l,onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),I("ion-backdrop",{ref:d=>this.backdropEl=d,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),s==="ios"&&I("div",{class:"modal-shadow"}),I("div",Object.assign({role:"dialog"},o,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:d=>this.wrapperEl=d}),a&&I("button",{class:"modal-handle",tabIndex:u?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:u?this.onHandleClick:void 0,part:"handle"}),I("slot",null)))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["onTriggerChange"],swipeToClose:["swipeToCloseChanged"]}}static get style(){return{ios:Xw,md:qw}}},[33,"ion-modal",{hasController:[4,"has-controller"],overlayIndex:[2,"overlay-index"],delegate:[16],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],breakpoints:[16],initialBreakpoint:[2,"initial-breakpoint"],backdropBreakpoint:[2,"backdrop-breakpoint"],handle:[4],handleBehavior:[1,"handle-behavior"],component:[1],componentProps:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],showBackdrop:[4,"show-backdrop"],animated:[4],swipeToClose:[4,"swipe-to-close"],presentingElement:[16],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],keepContentsMounted:[4,"keep-contents-mounted"],canDismiss:[4,"can-dismiss"],presented:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64],setCurrentBreakpoint:[64],getCurrentBreakpoint:[64]}]),Zw={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};let Jw=0;function Qw(){if(typeof customElements>"u")return;["ion-modal","ion-backdrop"].forEach(e=>{switch(e){case"ion-modal":customElements.get(e)||customElements.define(e,Kw);break;case"ion-backdrop":customElements.get(e)||eo();break}})}const e_=Qw;/*!
|
|
119
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
120
|
+
*/const t_=":host{padding-left:var(--ion-safe-area-left);padding-right:var(--ion-safe-area-right);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-bottom:var(--ion-safe-area-bottom, 0);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-color-step-50, #f7f7f7));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:0.55px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--color:var(--ion-tab-bar-color, var(--ion-color-step-400, #999999));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:50px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.tab-bar-translucent){--background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(210%) blur(20px);backdrop-filter:saturate(210%) blur(20px)}:host(.ion-color.tab-bar-translucent){background:rgba(var(--ion-color-base-rgb), 0.8)}:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.6)}}",n_=":host{padding-left:var(--ion-safe-area-left);padding-right:var(--ion-safe-area-right);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-bottom:var(--ion-safe-area-bottom, 0);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-background-color, #fff));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:1px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.07))));--color:var(--ion-tab-bar-color, var(--ion-color-step-600, #666666));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:56px}",r_=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionTabBarChanged=te(this,"ionTabBarChanged",7),this.keyboardCtrl=null,this.keyboardVisible=!1,this.translucent=!1}selectedTabChanged(){this.selectedTab!==void 0&&this.ionTabBarChanged.emit({tab:this.selectedTab})}componentWillLoad(){this.selectedTabChanged()}connectedCallback(){this.keyboardCtrl=b2(t=>{this.keyboardVisible=t})}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}render(){const{color:t,translucent:e,keyboardVisible:n}=this,r=ie(this),i=n&&this.el.getAttribute("slot")!=="top";return I(xe,{role:"tablist","aria-hidden":i?"true":null,class:Tt(t,{[r]:!0,"tab-bar-translucent":e,"tab-bar-hidden":i})},I("slot",null))}get el(){return this}static get watchers(){return{selectedTab:["selectedTabChanged"]}}static get style(){return{ios:t_,md:n_}}},[33,"ion-tab-bar",{color:[513],selectedTab:[1,"selected-tab"],translucent:[4],keyboardVisible:[32]}]);function i_(){if(typeof customElements>"u")return;["ion-tab-bar"].forEach(e=>{switch(e){case"ion-tab-bar":customElements.get(e)||customElements.define(e,r_);break}})}const o_=i_;let Ka;const a_=()=>{if(typeof window>"u")return new Map;if(!Ka){const t=window;t.Ionicons=t.Ionicons||{},Ka=t.Ionicons.map=t.Ionicons.map||new Map}return Ka},s_=t=>{let e=Za(t.src);return e||(e=q0(t.name,t.icon,t.mode,t.ios,t.md),e?l_(e):t.icon&&(e=Za(t.icon),e||(e=Za(t.icon[t.mode]),e))?e:null)},l_=t=>{const e=a_().get(t);return e||Zh(`svg/${t}.svg`)},q0=(t,e,n,r,i)=>(n=(n&&xo(n))==="ios"?"ios":"md",r&&n==="ios"?t=xo(r):i&&n==="md"?t=xo(i):(!t&&e&&!K0(e)&&(t=e),Jo(t)&&(t=xo(t))),!Jo(t)||t.trim()===""||t.replace(/[a-z]|-|\d/gi,"")!==""?null:t),Za=t=>Jo(t)&&(t=t.trim(),K0(t))?t:null,K0=t=>t.length>0&&/(\/|\.)/.test(t),Jo=t=>typeof t=="string",xo=t=>t.toLowerCase(),c_=(t,e=[])=>{const n={};return e.forEach(r=>{t.hasAttribute(r)&&(t.getAttribute(r)!==null&&(n[r]=t.getAttribute(r)),t.removeAttribute(r))}),n},u_=t=>t&&t.dir!==""?t.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",d_=t=>{const e=document.createElement("div");e.innerHTML=t;for(let r=e.childNodes.length-1;r>=0;r--)e.childNodes[r].nodeName.toLowerCase()!=="svg"&&e.removeChild(e.childNodes[r]);const n=e.firstElementChild;if(n&&n.nodeName.toLowerCase()==="svg"){const r=n.getAttribute("class")||"";if(n.setAttribute("class",(r+" s-ion-icon").trim()),Z0(n))return e.innerHTML}return""},Z0=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script")return!1;for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;if(Jo(n)&&n.toLowerCase().indexOf("on")===0)return!1}for(let e=0;e<t.childNodes.length;e++)if(!Z0(t.childNodes[e]))return!1}return!0},f_=t=>t.startsWith("data:image/svg+xml"),h_=t=>t.indexOf(";utf8,")!==-1,vr=new Map,Qu=new Map;let Ja;const p_=(t,e)=>{let n=Qu.get(t);if(!n)if(typeof fetch<"u"&&typeof document<"u")if(f_(t)&&h_(t)){Ja||(Ja=new DOMParser);const i=Ja.parseFromString(t,"text/html").querySelector("svg");return i&&vr.set(t,i.outerHTML),Promise.resolve()}else n=fetch(t).then(r=>{if(r.ok)return r.text().then(i=>{i&&e!==!1&&(i=d_(i)),vr.set(t,i||"")});vr.set(t,"")}),Qu.set(t,n);else return vr.set(t,""),Promise.resolve();return n},g_=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}:host(.flip-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.icon-small){font-size:18px !important}:host(.icon-large){font-size:32px !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}",m_=we(class extends _e{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.isVisible=!1,this.mode=v_(),this.lazy=!1,this.sanitize=!0,this.hasAriaHidden=()=>{const{el:t}=this;return t.hasAttribute("aria-hidden")&&t.getAttribute("aria-hidden")==="true"}}componentWillLoad(){this.inheritedAttributes=c_(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(t,e,n){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const r=this.io=new window.IntersectionObserver(i=>{i[0].isIntersecting&&(r.disconnect(),this.io=void 0,n())},{rootMargin:e});r.observe(t)}else n()}loadIcon(){if(this.isVisible){const e=s_(this);e&&(vr.has(e)?this.svgContent=vr.get(e):p_(e,this.sanitize).then(()=>this.svgContent=vr.get(e)))}const t=this.iconName=q0(this.name,this.icon,this.mode,this.ios,this.md);t&&(this.ariaLabel=t.replace(/\-/g," "))}render(){const{iconName:t,ariaLabel:e,el:n,inheritedAttributes:r}=this,i=this.mode||"md",o=this.flipRtl||t&&(t.indexOf("arrow")>-1||t.indexOf("chevron")>-1)&&this.flipRtl!==!1;return I(xe,Object.assign({"aria-label":e!==void 0&&!this.hasAriaHidden()?e:null,role:"img",class:Object.assign(Object.assign({[i]:!0},b_(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":!!o&&u_(n)})},r),this.svgContent?I("div",{class:"icon-inner",innerHTML:this.svgContent}):I("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return this}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}static get style(){return g_}},[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32],ariaLabel:[32]}]),v_=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",b_=t=>t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null;function x_(){if(typeof customElements>"u")return;["ion-icon"].forEach(e=>{switch(e){case"ion-icon":customElements.get(e)||customElements.define(e,m_);break}})}const y_=x_,ed="update:modelValue",Qa="modelValue",w_="routerLink",td="navManager",__="router",E_="aria",Yr=Symbol(),es={default:Yr},nd=t=>(t==null?void 0:t.split(" "))||[],A_=(t,e,n=[])=>{var r;return[...Array.from(((r=t.value)===null||r===void 0?void 0:r.classList)||[]),...n].filter((i,o,a)=>!e.has(i)&&a.indexOf(i)===o)},Mt=(t,e,n=[],r,i,o)=>{e!==void 0&&e();const a=x.defineComponent((s,{attrs:l,slots:c,emit:u})=>{var d;let f=s[r];const h=x.ref(),p=new Set(nd(l.class)),g=y=>{y.el&&(Array.isArray(i)?i:[i]).forEach(E=>{y.el.addEventListener(E.toLowerCase(),k=>{f=(k==null?void 0:k.target)[r],u(ed,f),o&&u(o,k)})})},b=x.getCurrentInstance(),v=((d=b==null?void 0:b.appContext)===null||d===void 0?void 0:d.provides[td])?x.inject(td):void 0,w=y=>{const{routerLink:C}=s;if(C!==Yr)if(v!==void 0){let E={event:y};for(const k in s){const N=s[k];s.hasOwnProperty(k)&&k.startsWith(__)&&N!==Yr&&(E[k]=N)}v.navigate(E)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{f=s[r],nd(l.class).forEach(k=>{p.add(k)});const y=s.onClick,C=k=>{y!==void 0&&y(k),k.defaultPrevented||w(k)};let E={ref:h,class:A_(h,p),onClick:C,onVnodeBeforeMount:i?g:void 0};for(const k in s){const N=s[k];(s.hasOwnProperty(k)&&N!==Yr||k.startsWith(E_))&&(E[k]=N)}return r&&(s[Qa]!==Yr?E=Object.assign(Object.assign({},E),{[r]:s[Qa]}):f!==Yr&&(E=Object.assign(Object.assign({},E),{[r]:f}))),x.h(t,E,c.default&&c.default())}});return a.displayName=t,a.props={[w_]:es},n.forEach(s=>{a.props[s]=es}),r&&(a.props[Qa]=es,a.emits=[ed,o]),a},J0=Mt("ion-button",Ex,["color","buttonType","disabled","expand","fill","routerDirection","routerAnimation","download","href","rel","shape","size","strong","target","type","form","ionFocus","ionBlur"]),k_=Mt("ion-buttons",Ix,["collapse"]),oc=Mt("ion-card",Px,["color","button","type","disabled","download","href","rel","routerDirection","routerAnimation","target"]),ac=Mt("ion-card-content",Bx),sc=Mt("ion-card-header",zx,["color","translucent"]),C_=Mt("ion-card-subtitle",Xx,["color"]),lc=Mt("ion-card-title",Qx,["color"]),js=Mt("ion-item",k2,["color","button","detail","detailIcon","disabled","download","fill","shape","href","rel","lines","counter","routerAnimation","routerDirection","target","type","counterFormatter"]),Ys=Mt("ion-label",C2,["color","position","ionColor","ionStyle"]),Xs=Mt("ion-select",Aw,["disabled","cancelText","okText","placeholder","name","selectedText","multiple","interface","interfaceOptions","compareWith","value","ionChange","ionCancel","ionDismiss","ionFocus","ionBlur","ionStyle"],"value","v-ion-change","ionChange"),Po=Mt("ion-select-option",Tw,["disabled","value"]),S_=Mt("ion-title",Rw,["color","size","ionStyle"]),I_=Mt("ion-toolbar",$w,["color"]);var mn;(function(t){t.WillEnter="onIonViewWillEnter",t.DidEnter="onIonViewDidEnter",t.WillLeave="onIonViewWillLeave",t.DidLeave="onIonViewDidLeave"})(mn||(mn={}));Oy+"",mn.WillEnter,Dy+"",mn.DidEnter,Ny+"",mn.WillLeave,Py+"",mn.DidLeave;const T_=()=>{if(typeof window<"u"){const t=window.Ionic;if(t&&t.config)return t.config}return null},O_=(t,e,n)=>{if(n){const r=n,i=r.proxy[t]||(r.proxy[t]=[]);r.exposed&&(r.exposed[t]=i);const o=(...a)=>{if(!r.isUnmounted)return a?e(...a):e()};return i.push(o),o}else console.warn("[@ionic/vue]: Ionic Lifecycle Hooks can only be used during execution of setup().")},ya=t=>(e,n=x.getCurrentInstance())=>O_(t,e,n);ya(mn.WillEnter);ya(mn.DidEnter);ya(mn.WillLeave);ya(mn.DidLeave);const Q0=t=>{var e;return((e=t.type)===null||e===void 0?void 0:e.name)==="IonTabButton"},ep=t=>{let e=[];return t.forEach(n=>{if(Q0(n))e.push(n);else if(Array.isArray(n.children)&&n.children.length>1){const r=ep(n.children);e=[...e,...r]}}),e};x.defineComponent({name:"IonTabBar",props:{_tabsWillChange:{type:Function,default:()=>{}},_tabsDidChange:{type:Function,default:()=>{}}},data(){return{tabState:{activeTab:void 0,tabs:{}},tabVnodes:[]}},updated(){this.setupTabState(x.inject("navManager"))},methods:{setupTabState(t){const e=this.$data.tabState,n=x.getCurrentInstance();(this.$data.tabVnodes=ep(n.subTree.children||[])).forEach(i=>{e.tabs[i.props.tab]={originalHref:i.props.href,currentHref:i.props.href,ref:i},i.component.props._getTabState=()=>e}),this.checkActiveTab(t)},checkActiveTab(t){const e=t.getCurrentRouteInfo(),n=this.$data.tabVnodes,{tabs:r,activeTab:i}=this.$data.tabState,o=this.$data.tabState,s=Object.keys(r).find(d=>{const f=r[d].originalHref;return e.pathname.startsWith(f)});if(n.forEach(d=>{const f=r[d.props.tab];(!f||f.originalHref!==d.props.href)&&(r[d.props.tab]={originalHref:d.props.href,currentHref:d.props.href,ref:d})}),s&&i){const d=this.$data.tabState.tabs[i].currentHref;if(s!==i||d!==e.pathname){const f=e.search?`?${e.search}`:"";r[s]=Object.assign(Object.assign({},r[s]),{currentHref:e.pathname+f})}e.routerAction==="pop"&&s!==i&&(r[i]=Object.assign(Object.assign({},r[i]),{currentHref:r[i].originalHref}))}const l=n.find(d=>{var f;return Q0(d)&&((f=d.props)===null||f===void 0?void 0:f.tab)===s}),c=this.$refs.ionTabBar,u=s!==i;c&&(l?(u&&this.$props._tabsWillChange(s),t.handleSetCurrentTab(s),c.selectedTab=o.activeTab=s,u&&this.$props._tabsDidChange(s)):c.selectedTab=o.activeTab="")}},mounted(){const t=x.inject("navManager");this.setupTabState(t),t.registerHistoryChangeListener(()=>this.checkActiveTab(t))},setup(t,{slots:e}){return o_(),()=>x.h("ion-tab-bar",{ref:"ionTabBar"},e.default&&e.default())}});const Qo=x.shallowRef([]),D_=t=>{Qo.value=[...Qo.value,t]},N_=t=>{Qo.value=Qo.value.filter(e=>e!==t)},P_=(t=D_,e=N_)=>{const n=new WeakMap;return{attachViewToDom:(o,a,s={},l)=>{const c=document.createElement("div");l&&c.classList.add(...l),o.appendChild(c);const u=x.h(x.Teleport,{to:c},x.h(a,Object.assign({},s)));return n.set(c,u),t(u),Promise.resolve(c)},removeViewFromDom:(o,a)=>{const s=n.get(a);return s&&e(s),Promise.resolve()}}},tp=x.defineComponent({name:"IonIcon",props:{color:String,flipRtl:Boolean,icon:String,ios:String,lazy:String,md:String,mode:String,name:String,size:String,src:String},setup(t,{slots:e}){return y_(),()=>{var n,r;const{icon:i,ios:o,md:a,mode:s}=t;let l;const c=T_(),u=s||(c==null?void 0:c.get("mode"));return o||a?u==="ios"?l=(n=o??a)!==null&&n!==void 0?n:i:l=(r=a??o)!==null&&r!==void 0?r:i:l=i,x.h("ion-icon",Object.assign(Object.assign({},t),{icon:l}),e)}}}),R_=(t,e,n=!1)=>{const r=n?P_():void 0,i=e.create.bind(e);return e.create=o=>(t(),i(Object.assign(Object.assign({},o),{delegate:r}))),e},rd=R_(e_,xy,!0),wa=Rl("user",{state:()=>({localeOptions:process.env.VUE_APP_LOCALES?JSON.parse(process.env.VUE_APP_LOCALES):{en:"English"},preference:{locale:"en"}}),getters:{getLocale:t=>t.preference.locale,getLocaleOptions:t=>t.localeOptions},actions:{setLocale(t){exports.i18n.global.locale.value=t,this.setPreference({locale:t})},async setPreference(t){this.preference={...this.preference,...t},await Yi.setUserPreference({userPrefTypeId:"LOCALE_PREFERENCE",userPrefValue:JSON.stringify(this.preference)})},async getPreference(t,e){try{this.preference=await Yi.getUserPreference(t,e,"LOCALE_PREFERENCE")}catch(n){console.error(n)}}},persist:!0}),M_=x.defineComponent({__name:"LanguageSwitcher",setup(t){const e=wa(),n=x.computed(()=>e.getLocaleOptions),r=x.computed(()=>e.getLocale),i=o=>{e.setLocale(o)};return(o,a)=>(x.openBlock(),x.createBlock(x.unref(oc),null,{default:x.withCtx(()=>[x.createVNode(x.unref(sc),null,{default:x.withCtx(()=>[x.createVNode(x.unref(lc),null,{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(o.$t("Language")),1)]),_:1})]),_:1}),x.createVNode(x.unref(ac),null,{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(o.$t("Select your preferred language.")),1)]),_:1}),x.createVNode(x.unref(js),{lines:"none"},{default:x.withCtx(()=>[x.createVNode(x.unref(Ys),null,{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(o.$t("Choose language")),1)]),_:1}),x.createVNode(x.unref(Xs),{interface:"popover",value:r.value,onIonChange:a[0]||(a[0]=s=>i(s.detail.value))},{default:x.withCtx(()=>[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList(Object.keys(n.value),s=>(x.openBlock(),x.createBlock(x.unref(Po),{key:s,value:s},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(n.value[s]),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1})]),_:1}))}}),np=(t,e)=>{const n=(e.startsWith("http")?e.replace(/api\/?/,""):`https://${e}.hotwax.io/`)+`commerce/control/main?token=${t}`;window.open(n,"_blank","noopener, noreferrer")},L_=(t,e)=>{if(!Object.keys(e).length)return;let n=e[t];const r=e.goodIdentifications.find(i=>i.startsWith(t+"/"));return r&&(n=r.split("/")[1]),n},F_="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M368 368L144 144M368 144L144 368' class='ionicon-fill-none ionicon-stroke-width'/></svg>",B_="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M384 224v184a40 40 0 01-40 40H104a40 40 0 01-40-40V168a40 40 0 0140-40h167.48M336 64h112v112M224 288L440 72' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",rp=x.defineComponent({__name:"OmsInstanceNavigator",setup(t){const e=Ul(),n=x.computed(()=>e.getToken),r=x.computed(()=>e.getOms);return(i,o)=>(x.openBlock(),x.createBlock(x.unref(oc),null,{default:x.withCtx(()=>[x.createVNode(x.unref(sc),null,{default:x.withCtx(()=>[x.createVNode(x.unref(C_),null,{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(i.$t("OMS instance")),1)]),_:1}),x.createVNode(x.unref(lc),null,{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(e).getOms),1)]),_:1})]),_:1}),x.createVNode(x.unref(ac),null,{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(i.$t("This is the name of the OMS you are connected to right now. Make sure that you are connected to the right instance before proceeding.")),1)]),_:1}),x.createVNode(x.unref(J0),{onClick:o[0]||(o[0]=a=>x.unref(np)(n.value.value,r.value)),fill:"clear"},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(i.$t("Go to OMS"))+" ",1),x.createVNode(x.unref(tp),{slot:"end",icon:x.unref(B_)},null,8,["icon"])]),_:1})]),_:1}))}}),ip=x.defineComponent({__name:"ProductIdentifier",setup(t){const e=qf(),n=exports.appContext.config.globalProperties.$store,r=x.computed(()=>n.getters["user/getCurrentEComStore"]),i=x.computed(()=>e.getProductIdentificationPref),o=e.getProductIdentificationOptions;x.onMounted(()=>{e.getIdentificationPref(r.value.productStoreId)});function a(s,l){e.setProductIdentificationPref(l,s,r.value.productStoreId)}return(s,l)=>(x.openBlock(),x.createBlock(x.unref(oc),null,{default:x.withCtx(()=>[x.createVNode(x.unref(sc),null,{default:x.withCtx(()=>[x.createVNode(x.unref(lc),null,{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString("Product Identifier"))]),_:1})]),_:1}),x.createVNode(x.unref(ac),null,{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString("Choosing a product identifier allows you to view products with your preferred identifiers."),1)]),_:1}),x.createVNode(x.unref(js),null,{default:x.withCtx(()=>[x.createVNode(x.unref(Ys),null,{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString("Primary Product Identifier"))]),_:1}),x.createVNode(x.unref(Xs),{interface:"popover",placeholder:"primary identifier",value:i.value.primaryId,onIonChange:l[0]||(l[0]=c=>a(c.detail.value,"primaryId"))},{default:x.withCtx(()=>[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList(x.unref(o),c=>(x.openBlock(),x.createBlock(x.unref(Po),{key:c,value:c},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(c),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1}),x.createVNode(x.unref(js),null,{default:x.withCtx(()=>[x.createVNode(x.unref(Ys),null,{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString("Secondary Product Identifier"))]),_:1}),x.createVNode(x.unref(Xs),{interface:"popover",placeholder:"secondary identifier",value:i.value.secondaryId,onIonChange:l[1]||(l[1]=c=>a(c.detail.value,"secondaryId"))},{default:x.withCtx(()=>[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList(x.unref(o),c=>(x.openBlock(),x.createBlock(x.unref(Po),{key:c,value:c},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(c),1)]),_:2},1032,["value"]))),128)),x.createVNode(x.unref(Po),{value:""},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString("None"))]),_:1})]),_:1},8,["value"])]),_:1})]),_:1}))}});function $_(t,e){var n=Object.setPrototypeOf;n?n(t,e):t.__proto__=e}function V_(t,e){e===void 0&&(e=t.constructor);var n=Error.captureStackTrace;n&&n(t,e)}var U_=function(){var t=function(n,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a])},t(n,r)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),H_=function(t){U_(e,t);function e(n,r){var i=this.constructor,o=t.call(this,n,r)||this;return Object.defineProperty(o,"name",{value:i.name,enumerable:!1,configurable:!0}),$_(o,i.prototype),V_(o),o}return e}(Error),z_=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_t=function(t){z_(e,t);function e(n){n===void 0&&(n=void 0);var r=t.call(this,n)||this;return r.message=n,r}return e.prototype.getKind=function(){var n=this.constructor;return n.kind},e.kind="Exception",e}(H_),W_=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tn=function(t){W_(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ArgumentException",e}(_t),G_=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),q=function(t){G_(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IllegalArgumentException",e}(_t),j_=function(){function t(e){if(this.binarizer=e,e===null)throw new q("Binarizer must be non-null.")}return t.prototype.getWidth=function(){return this.binarizer.getWidth()},t.prototype.getHeight=function(){return this.binarizer.getHeight()},t.prototype.getBlackRow=function(e,n){return this.binarizer.getBlackRow(e,n)},t.prototype.getBlackMatrix=function(){return(this.matrix===null||this.matrix===void 0)&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},t.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},t.prototype.crop=function(e,n,r,i){var o=this.binarizer.getLuminanceSource().crop(e,n,r,i);return new t(this.binarizer.createBinarizer(o))},t.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},t.prototype.rotateCounterClockwise=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new t(this.binarizer.createBinarizer(e))},t.prototype.rotateCounterClockwise45=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new t(this.binarizer.createBinarizer(e))},t.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},t}(),Y_=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt=function(t){Y_(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getChecksumInstance=function(){return new e},e.kind="ChecksumException",e}(_t),X_=function(){function t(e){this.source=e}return t.prototype.getLuminanceSource=function(){return this.source},t.prototype.getWidth=function(){return this.source.getWidth()},t.prototype.getHeight=function(){return this.source.getHeight()},t}(),Se=function(){function t(){}return t.arraycopy=function(e,n,r,i,o){for(;o--;)r[i++]=e[n++]},t.currentTimeMillis=function(){return Date.now()},t}(),q_=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),cc=function(t){q_(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IndexOutOfBoundsException",e}(_t),K_=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),id=function(t){K_(e,t);function e(n,r){n===void 0&&(n=void 0),r===void 0&&(r=void 0);var i=t.call(this,r)||this;return i.index=n,i.message=r,i}return e.kind="ArrayIndexOutOfBoundsException",e}(cc),Z_=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},It=function(){function t(){}return t.fill=function(e,n){for(var r=0,i=e.length;r<i;r++)e[r]=n},t.fillWithin=function(e,n,r,i){t.rangeCheck(e.length,n,r);for(var o=n;o<r;o++)e[o]=i},t.rangeCheck=function(e,n,r){if(n>r)throw new q("fromIndex("+n+") > toIndex("+r+")");if(n<0)throw new id(n);if(r>e)throw new id(r)},t.asList=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e},t.create=function(e,n,r){var i=Array.from({length:e});return i.map(function(o){return Array.from({length:n}).fill(r)})},t.createInt32Array=function(e,n,r){var i=Array.from({length:e});return i.map(function(o){return Int32Array.from({length:n}).fill(r)})},t.equals=function(e,n){if(!e||!n||!e.length||!n.length||e.length!==n.length)return!1;for(var r=0,i=e.length;r<i;r++)if(e[r]!==n[r])return!1;return!0},t.hashCode=function(e){var n,r;if(e===null)return 0;var i=1;try{for(var o=Z_(e),a=o.next();!a.done;a=o.next()){var s=a.value;i=31*i+s}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},t.fillUint8Array=function(e,n){for(var r=0;r!==e.length;r++)e[r]=n},t.copyOf=function(e,n){return e.slice(0,n)},t.copyOfUint8Array=function(e,n){if(e.length<=n){var r=new Uint8Array(n);return r.set(e),r}return e.slice(0,n)},t.copyOfRange=function(e,n,r){var i=r-n,o=new Int32Array(i);return Se.arraycopy(e,n,o,0,i),o},t.binarySearch=function(e,n,r){r===void 0&&(r=t.numberComparator);for(var i=0,o=e.length-1;i<=o;){var a=o+i>>1,s=r(n,e[a]);if(s>0)i=a+1;else if(s<0)o=a-1;else return a}return-i-1},t.numberComparator=function(e,n){return e-n},t}(),ue=function(){function t(){}return t.numberOfTrailingZeros=function(e){var n;if(e===0)return 32;var r=31;return n=e<<16,n!==0&&(r-=16,e=n),n=e<<8,n!==0&&(r-=8,e=n),n=e<<4,n!==0&&(r-=4,e=n),n=e<<2,n!==0&&(r-=2,e=n),r-(e<<1>>>31)},t.numberOfLeadingZeros=function(e){if(e===0)return 32;var n=1;return e>>>16||(n+=16,e<<=16),e>>>24||(n+=8,e<<=8),e>>>28||(n+=4,e<<=4),e>>>30||(n+=2,e<<=2),n-=e>>>31,n},t.toHexString=function(e){return e.toString(16)},t.toBinaryString=function(e){return String(parseInt(String(e),2))},t.bitCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e=e+(e>>>8),e=e+(e>>>16),e&63},t.truncDivision=function(e,n){return Math.trunc(e/n)},t.parseInt=function(e,n){return n===void 0&&(n=void 0),parseInt(e,n)},t.MIN_VALUE_32_BITS=-2147483648,t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}(),it=function(){function t(e,n){e===void 0?(this.size=0,this.bits=new Int32Array(1)):(this.size=e,n==null?this.bits=t.makeArray(e):this.bits=n)}return t.prototype.getSize=function(){return this.size},t.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},t.prototype.ensureCapacity=function(e){if(e>this.bits.length*32){var n=t.makeArray(e);Se.arraycopy(this.bits,0,n,0,this.bits.length),this.bits=n}},t.prototype.get=function(e){return(this.bits[Math.floor(e/32)]&1<<(e&31))!==0},t.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(e&31)},t.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(e&31)},t.prototype.getNextSet=function(e){var n=this.size;if(e>=n)return n;var r=this.bits,i=Math.floor(e/32),o=r[i];o&=~((1<<(e&31))-1);for(var a=r.length;o===0;){if(++i===a)return n;o=r[i]}var s=i*32+ue.numberOfTrailingZeros(o);return s>n?n:s},t.prototype.getNextUnset=function(e){var n=this.size;if(e>=n)return n;var r=this.bits,i=Math.floor(e/32),o=~r[i];o&=~((1<<(e&31))-1);for(var a=r.length;o===0;){if(++i===a)return n;o=~r[i]}var s=i*32+ue.numberOfTrailingZeros(o);return s>n?n:s},t.prototype.setBulk=function(e,n){this.bits[Math.floor(e/32)]=n},t.prototype.setRange=function(e,n){if(n<e||e<0||n>this.size)throw new q;if(n!==e){n--;for(var r=Math.floor(e/32),i=Math.floor(n/32),o=this.bits,a=r;a<=i;a++){var s=a>r?0:e&31,l=a<i?31:n&31,c=(2<<l)-(1<<s);o[a]|=c}}},t.prototype.clear=function(){for(var e=this.bits.length,n=this.bits,r=0;r<e;r++)n[r]=0},t.prototype.isRange=function(e,n,r){if(n<e||e<0||n>this.size)throw new q;if(n===e)return!0;n--;for(var i=Math.floor(e/32),o=Math.floor(n/32),a=this.bits,s=i;s<=o;s++){var l=s>i?0:e&31,c=s<o?31:n&31,u=(2<<c)-(1<<l)&4294967295;if((a[s]&u)!==(r?u:0))return!1}return!0},t.prototype.appendBit=function(e){this.ensureCapacity(this.size+1),e&&(this.bits[Math.floor(this.size/32)]|=1<<(this.size&31)),this.size++},t.prototype.appendBits=function(e,n){if(n<0||n>32)throw new q("Num bits must be between 0 and 32");this.ensureCapacity(this.size+n);for(var r=n;r>0;r--)this.appendBit((e>>r-1&1)===1)},t.prototype.appendBitArray=function(e){var n=e.size;this.ensureCapacity(this.size+n);for(var r=0;r<n;r++)this.appendBit(e.get(r))},t.prototype.xor=function(e){if(this.size!==e.size)throw new q("Sizes don't match");for(var n=this.bits,r=0,i=n.length;r<i;r++)n[r]^=e.bits[r]},t.prototype.toBytes=function(e,n,r,i){for(var o=0;o<i;o++){for(var a=0,s=0;s<8;s++)this.get(e)&&(a|=1<<7-s),e++;n[r+o]=a}},t.prototype.getBitArray=function(){return this.bits},t.prototype.reverse=function(){for(var e=new Int32Array(this.bits.length),n=Math.floor((this.size-1)/32),r=n+1,i=this.bits,o=0;o<r;o++){var a=i[o];a=a>>1&1431655765|(a&1431655765)<<1,a=a>>2&858993459|(a&858993459)<<2,a=a>>4&252645135|(a&252645135)<<4,a=a>>8&16711935|(a&16711935)<<8,a=a>>16&65535|(a&65535)<<16,e[n-o]=a}if(this.size!==r*32){for(var s=r*32-this.size,l=e[0]>>>s,o=1;o<r;o++){var c=e[o];l|=c<<32-s,e[o-1]=l,l=c>>>s}e[r-1]=l}this.bits=e},t.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.size===n.size&&It.equals(this.bits,n.bits)},t.prototype.hashCode=function(){return 31*this.size+It.hashCode(this.bits)},t.prototype.toString=function(){for(var e="",n=0,r=this.size;n<r;n++)n&7||(e+=" "),e+=this.get(n)?"X":".";return e},t.prototype.clone=function(){return new t(this.size,this.bits.slice())},t}(),qs;(function(t){t[t.OTHER=0]="OTHER",t[t.PURE_BARCODE=1]="PURE_BARCODE",t[t.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",t[t.TRY_HARDER=3]="TRY_HARDER",t[t.CHARACTER_SET=4]="CHARACTER_SET",t[t.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",t[t.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",t[t.ASSUME_GS1=7]="ASSUME_GS1",t[t.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END",t[t.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK",t[t.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS"})(qs||(qs={}));const Fe=qs;var J_=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),H=function(t){J_(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getFormatInstance=function(){return new e},e.kind="FormatException",e}(_t),Q_=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ye;(function(t){t[t.Cp437=0]="Cp437",t[t.ISO8859_1=1]="ISO8859_1",t[t.ISO8859_2=2]="ISO8859_2",t[t.ISO8859_3=3]="ISO8859_3",t[t.ISO8859_4=4]="ISO8859_4",t[t.ISO8859_5=5]="ISO8859_5",t[t.ISO8859_6=6]="ISO8859_6",t[t.ISO8859_7=7]="ISO8859_7",t[t.ISO8859_8=8]="ISO8859_8",t[t.ISO8859_9=9]="ISO8859_9",t[t.ISO8859_10=10]="ISO8859_10",t[t.ISO8859_11=11]="ISO8859_11",t[t.ISO8859_13=12]="ISO8859_13",t[t.ISO8859_14=13]="ISO8859_14",t[t.ISO8859_15=14]="ISO8859_15",t[t.ISO8859_16=15]="ISO8859_16",t[t.SJIS=16]="SJIS",t[t.Cp1250=17]="Cp1250",t[t.Cp1251=18]="Cp1251",t[t.Cp1252=19]="Cp1252",t[t.Cp1256=20]="Cp1256",t[t.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",t[t.UTF8=22]="UTF8",t[t.ASCII=23]="ASCII",t[t.Big5=24]="Big5",t[t.GB18030=25]="GB18030",t[t.EUC_KR=26]="EUC_KR"})(ye||(ye={}));var Je=function(){function t(e,n,r){for(var i,o,a=[],s=3;s<arguments.length;s++)a[s-3]=arguments[s];this.valueIdentifier=e,this.name=r,typeof n=="number"?this.values=Int32Array.from([n]):this.values=n,this.otherEncodingNames=a,t.VALUE_IDENTIFIER_TO_ECI.set(e,this),t.NAME_TO_ECI.set(r,this);for(var l=this.values,c=0,u=l.length;c!==u;c++){var d=l[c];t.VALUES_TO_ECI.set(d,this)}try{for(var f=Q_(a),h=f.next();!h.done;h=f.next()){var p=h.value;t.NAME_TO_ECI.set(p,this)}}catch(g){i={error:g}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}}return t.prototype.getValueIdentifier=function(){return this.valueIdentifier},t.prototype.getName=function(){return this.name},t.prototype.getValue=function(){return this.values[0]},t.getCharacterSetECIByValue=function(e){if(e<0||e>=900)throw new H("incorect value");var n=t.VALUES_TO_ECI.get(e);if(n===void 0)throw new H("incorect value");return n},t.getCharacterSetECIByName=function(e){var n=t.NAME_TO_ECI.get(e);if(n===void 0)throw new H("incorect value");return n},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.getName()===n.getName()},t.VALUE_IDENTIFIER_TO_ECI=new Map,t.VALUES_TO_ECI=new Map,t.NAME_TO_ECI=new Map,t.Cp437=new t(ye.Cp437,Int32Array.from([0,2]),"Cp437"),t.ISO8859_1=new t(ye.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),t.ISO8859_2=new t(ye.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),t.ISO8859_3=new t(ye.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),t.ISO8859_4=new t(ye.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),t.ISO8859_5=new t(ye.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),t.ISO8859_6=new t(ye.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),t.ISO8859_7=new t(ye.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),t.ISO8859_8=new t(ye.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),t.ISO8859_9=new t(ye.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),t.ISO8859_10=new t(ye.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),t.ISO8859_11=new t(ye.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),t.ISO8859_13=new t(ye.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),t.ISO8859_14=new t(ye.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),t.ISO8859_15=new t(ye.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),t.ISO8859_16=new t(ye.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),t.SJIS=new t(ye.SJIS,20,"SJIS","Shift_JIS"),t.Cp1250=new t(ye.Cp1250,21,"Cp1250","windows-1250"),t.Cp1251=new t(ye.Cp1251,22,"Cp1251","windows-1251"),t.Cp1252=new t(ye.Cp1252,23,"Cp1252","windows-1252"),t.Cp1256=new t(ye.Cp1256,24,"Cp1256","windows-1256"),t.UnicodeBigUnmarked=new t(ye.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),t.UTF8=new t(ye.UTF8,26,"UTF8","UTF-8"),t.ASCII=new t(ye.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),t.Big5=new t(ye.Big5,28,"Big5"),t.GB18030=new t(ye.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),t.EUC_KR=new t(ye.EUC_KR,30,"EUC_KR","EUC-KR"),t}(),eE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ro=function(t){eE(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="UnsupportedOperationException",e}(_t),xn=function(){function t(){}return t.decode=function(e,n){var r=this.encodingName(n);return this.customDecoder?this.customDecoder(e,r):typeof TextDecoder>"u"||this.shouldDecodeOnFallback(r)?this.decodeFallback(e,r):new TextDecoder(r).decode(e)},t.shouldDecodeOnFallback=function(e){return!t.isBrowser()&&e==="ISO-8859-1"},t.encode=function(e,n){var r=this.encodingName(n);return this.customEncoder?this.customEncoder(e,r):typeof TextEncoder>"u"?this.encodeFallback(e):new TextEncoder().encode(e)},t.isBrowser=function(){return typeof window<"u"&&{}.toString.call(window)==="[object Window]"},t.encodingName=function(e){return typeof e=="string"?e:e.getName()},t.encodingCharacterSet=function(e){return e instanceof Je?e:Je.getCharacterSetECIByName(e)},t.decodeFallback=function(e,n){var r=this.encodingCharacterSet(n);if(t.isDecodeFallbackSupported(r)){for(var i="",o=0,a=e.length;o<a;o++){var s=e[o].toString(16);s.length<2&&(s="0"+s),i+="%"+s}return decodeURIComponent(i)}if(r.equals(Je.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(e.buffer));throw new Ro("Encoding "+this.encodingName(n)+" not supported by fallback.")},t.isDecodeFallbackSupported=function(e){return e.equals(Je.UTF8)||e.equals(Je.ISO8859_1)||e.equals(Je.ASCII)},t.encodeFallback=function(e){for(var n=btoa(unescape(encodeURIComponent(e))),r=n.split(""),i=[],o=0;o<r.length;o++)i.push(r[o].charCodeAt(0));return new Uint8Array(i)},t}(),Ce=function(){function t(){}return t.castAsNonUtf8Char=function(e,n){n===void 0&&(n=null);var r=n?n.getName():this.ISO88591;return xn.decode(new Uint8Array([e]),r)},t.guessEncoding=function(e,n){if(n!=null&&n.get(Fe.CHARACTER_SET)!==void 0)return n.get(Fe.CHARACTER_SET).toString();for(var r=e.length,i=!0,o=!0,a=!0,s=0,l=0,c=0,u=0,d=0,f=0,h=0,p=0,g=0,b=0,m=0,v=e.length>3&&e[0]===239&&e[1]===187&&e[2]===191,w=0;w<r&&(i||o||a);w++){var y=e[w]&255;a&&(s>0?y&128?s--:a=!1:y&128&&(y&64?(s++,y&32?(s++,y&16?(s++,y&8?a=!1:u++):c++):l++):a=!1)),i&&(y>127&&y<160?i=!1:y>159&&(y<192||y===215||y===247)&&m++),o&&(d>0?y<64||y===127||y>252?o=!1:d--:y===128||y===160||y>239?o=!1:y>160&&y<224?(f++,p=0,h++,h>g&&(g=h)):y>127?(d++,h=0,p++,p>b&&(b=p)):(h=0,p=0))}return a&&s>0&&(a=!1),o&&d>0&&(o=!1),a&&(v||l+c+u>0)?t.UTF8:o&&(t.ASSUME_SHIFT_JIS||g>=3||b>=3)?t.SHIFT_JIS:i&&o?g===2&&f===2||m*10>=r?t.SHIFT_JIS:t.ISO88591:i?t.ISO88591:o?t.SHIFT_JIS:a?t.UTF8:t.PLATFORM_DEFAULT_ENCODING},t.format=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=-1;function o(s,l,c,u,d,f){if(s==="%%")return"%";if(n[++i]!==void 0){s=u?parseInt(u.substr(1)):void 0;var h=d?parseInt(d.substr(1)):void 0,p;switch(f){case"s":p=n[i];break;case"c":p=n[i][0];break;case"f":p=parseFloat(n[i]).toFixed(s);break;case"p":p=parseFloat(n[i]).toPrecision(s);break;case"e":p=parseFloat(n[i]).toExponential(s);break;case"x":p=parseInt(n[i]).toString(h||16);break;case"d":p=parseFloat(parseInt(n[i],h||10).toPrecision(s)).toFixed(0);break}p=typeof p=="object"?JSON.stringify(p):(+p).toString(h);for(var g=parseInt(c),b=c&&c[0]+""=="0"?"0":" ";p.length<g;)p=l!==void 0?p+b:b+p;return p}}var a=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return e.replace(a,o)},t.getBytes=function(e,n){return xn.encode(e,n)},t.getCharCode=function(e,n){return n===void 0&&(n=0),e.charCodeAt(n)},t.getCharAt=function(e){return String.fromCharCode(e)},t.SHIFT_JIS=Je.SJIS.getName(),t.GB2312="GB2312",t.ISO88591=Je.ISO8859_1.getName(),t.EUC_JP="EUC_JP",t.UTF8=Je.UTF8.getName(),t.PLATFORM_DEFAULT_ENCODING=t.UTF8,t.ASSUME_SHIFT_JIS=!1,t}(),Ae=function(){function t(e){e===void 0&&(e=""),this.value=e}return t.prototype.enableDecoding=function(e){return this.encoding=e,this},t.prototype.append=function(e){return typeof e=="string"?this.value+=e.toString():this.encoding?this.value+=Ce.castAsNonUtf8Char(e,this.encoding):this.value+=String.fromCharCode(e),this},t.prototype.appendChars=function(e,n,r){for(var i=n;n<n+r;i++)this.append(e[i]);return this},t.prototype.length=function(){return this.value.length},t.prototype.charAt=function(e){return this.value.charAt(e)},t.prototype.deleteCharAt=function(e){this.value=this.value.substr(0,e)+this.value.substring(e+1)},t.prototype.setCharAt=function(e,n){this.value=this.value.substr(0,e)+n+this.value.substr(e+1)},t.prototype.substring=function(e,n){return this.value.substring(e,n)},t.prototype.setLengthToZero=function(){this.value=""},t.prototype.toString=function(){return this.value},t.prototype.insert=function(e,n){this.value=this.value.substr(0,e)+n+this.value.substr(e+n.length)},t}(),yn=function(){function t(e,n,r,i){if(this.width=e,this.height=n,this.rowSize=r,this.bits=i,n==null&&(n=e),this.height=n,e<1||n<1)throw new q("Both dimensions must be greater than 0");r==null&&(r=Math.floor((e+31)/32)),this.rowSize=r,i==null&&(this.bits=new Int32Array(this.rowSize*this.height))}return t.parseFromBooleanArray=function(e){for(var n=e.length,r=e[0].length,i=new t(r,n),o=0;o<n;o++)for(var a=e[o],s=0;s<r;s++)a[s]&&i.set(s,o);return i},t.parseFromString=function(e,n,r){if(e===null)throw new q("stringRepresentation cannot be null");for(var i=new Array(e.length),o=0,a=0,s=-1,l=0,c=0;c<e.length;)if(e.charAt(c)===`
|
|
121
|
+
`||e.charAt(c)==="\r"){if(o>a){if(s===-1)s=o-a;else if(o-a!==s)throw new q("row lengths do not match");a=o,l++}c++}else if(e.substring(c,c+n.length)===n)c+=n.length,i[o]=!0,o++;else if(e.substring(c,c+r.length)===r)c+=r.length,i[o]=!1,o++;else throw new q("illegal character encountered: "+e.substring(c));if(o>a){if(s===-1)s=o-a;else if(o-a!==s)throw new q("row lengths do not match");l++}for(var u=new t(s,l),d=0;d<o;d++)i[d]&&u.set(Math.floor(d%s),Math.floor(d/s));return u},t.prototype.get=function(e,n){var r=n*this.rowSize+Math.floor(e/32);return(this.bits[r]>>>(e&31)&1)!==0},t.prototype.set=function(e,n){var r=n*this.rowSize+Math.floor(e/32);this.bits[r]|=1<<(e&31)&4294967295},t.prototype.unset=function(e,n){var r=n*this.rowSize+Math.floor(e/32);this.bits[r]&=~(1<<(e&31)&4294967295)},t.prototype.flip=function(e,n){var r=n*this.rowSize+Math.floor(e/32);this.bits[r]^=1<<(e&31)&4294967295},t.prototype.xor=function(e){if(this.width!==e.getWidth()||this.height!==e.getHeight()||this.rowSize!==e.getRowSize())throw new q("input matrix dimensions do not match");for(var n=new it(Math.floor(this.width/32)+1),r=this.rowSize,i=this.bits,o=0,a=this.height;o<a;o++)for(var s=o*r,l=e.getRow(o,n).getBitArray(),c=0;c<r;c++)i[s+c]^=l[c]},t.prototype.clear=function(){for(var e=this.bits,n=e.length,r=0;r<n;r++)e[r]=0},t.prototype.setRegion=function(e,n,r,i){if(n<0||e<0)throw new q("Left and top must be nonnegative");if(i<1||r<1)throw new q("Height and width must be at least 1");var o=e+r,a=n+i;if(a>this.height||o>this.width)throw new q("The region must fit inside the matrix");for(var s=this.rowSize,l=this.bits,c=n;c<a;c++)for(var u=c*s,d=e;d<o;d++)l[u+Math.floor(d/32)]|=1<<(d&31)&4294967295},t.prototype.getRow=function(e,n){n==null||n.getSize()<this.width?n=new it(this.width):n.clear();for(var r=this.rowSize,i=this.bits,o=e*r,a=0;a<r;a++)n.setBulk(a*32,i[o+a]);return n},t.prototype.setRow=function(e,n){Se.arraycopy(n.getBitArray(),0,this.bits,e*this.rowSize,this.rowSize)},t.prototype.rotate180=function(){for(var e=this.getWidth(),n=this.getHeight(),r=new it(e),i=new it(e),o=0,a=Math.floor((n+1)/2);o<a;o++)r=this.getRow(o,r),i=this.getRow(n-1-o,i),r.reverse(),i.reverse(),this.setRow(o,i),this.setRow(n-1-o,r)},t.prototype.getEnclosingRectangle=function(){for(var e=this.width,n=this.height,r=this.rowSize,i=this.bits,o=e,a=n,s=-1,l=-1,c=0;c<n;c++)for(var u=0;u<r;u++){var d=i[c*r+u];if(d!==0){if(c<a&&(a=c),c>l&&(l=c),u*32<o){for(var f=0;!(d<<31-f&4294967295);)f++;u*32+f<o&&(o=u*32+f)}if(u*32+31>s){for(var f=31;!(d>>>f);)f--;u*32+f>s&&(s=u*32+f)}}}return s<o||l<a?null:Int32Array.from([o,a,s-o+1,l-a+1])},t.prototype.getTopLeftOnBit=function(){for(var e=this.rowSize,n=this.bits,r=0;r<n.length&&n[r]===0;)r++;if(r===n.length)return null;for(var i=r/e,o=r%e*32,a=n[r],s=0;!(a<<31-s&4294967295);)s++;return o+=s,Int32Array.from([o,i])},t.prototype.getBottomRightOnBit=function(){for(var e=this.rowSize,n=this.bits,r=n.length-1;r>=0&&n[r]===0;)r--;if(r<0)return null;for(var i=Math.floor(r/e),o=Math.floor(r%e)*32,a=n[r],s=31;!(a>>>s);)s--;return o+=s,Int32Array.from([o,i])},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRowSize=function(){return this.rowSize},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.width===n.width&&this.height===n.height&&this.rowSize===n.rowSize&&It.equals(this.bits,n.bits)},t.prototype.hashCode=function(){var e=this.width;return e=31*e+this.width,e=31*e+this.height,e=31*e+this.rowSize,e=31*e+It.hashCode(this.bits),e},t.prototype.toString=function(e,n,r){return e===void 0&&(e="X "),n===void 0&&(n=" "),r===void 0&&(r=`
|
|
122
|
+
`),this.buildToString(e,n,r)},t.prototype.buildToString=function(e,n,r){for(var i=new Ae,o=0,a=this.height;o<a;o++){for(var s=0,l=this.width;s<l;s++)i.append(this.get(s,o)?e:n);i.append(r)}return i.toString()},t.prototype.clone=function(){return new t(this.width,this.height,this.rowSize,this.bits.slice())},t}(),tE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(t){tE(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getNotFoundInstance=function(){return new e},e.kind="NotFoundException",e}(_t),nE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),rE=function(t){nE(e,t);function e(n){var r=t.call(this,n)||this;return r.luminances=e.EMPTY,r.buckets=new Int32Array(e.LUMINANCE_BUCKETS),r}return e.prototype.getBlackRow=function(n,r){var i=this.getLuminanceSource(),o=i.getWidth();r==null||r.getSize()<o?r=new it(o):r.clear(),this.initArrays(o);for(var a=i.getRow(n,this.luminances),s=this.buckets,l=0;l<o;l++)s[(a[l]&255)>>e.LUMINANCE_SHIFT]++;var c=e.estimateBlackPoint(s);if(o<3)for(var l=0;l<o;l++)(a[l]&255)<c&&r.set(l);else for(var u=a[0]&255,d=a[1]&255,l=1;l<o-1;l++){var f=a[l+1]&255;(d*4-u-f)/2<c&&r.set(l),u=d,d=f}return r},e.prototype.getBlackMatrix=function(){var n=this.getLuminanceSource(),r=n.getWidth(),i=n.getHeight(),o=new yn(r,i);this.initArrays(r);for(var a=this.buckets,s=1;s<5;s++)for(var l=Math.floor(i*s/5),c=n.getRow(l,this.luminances),u=Math.floor(r*4/5),d=Math.floor(r/5);d<u;d++){var f=c[d]&255;a[f>>e.LUMINANCE_SHIFT]++}for(var h=e.estimateBlackPoint(a),p=n.getMatrix(),s=0;s<i;s++)for(var g=s*r,d=0;d<r;d++){var f=p[g+d]&255;f<h&&o.set(d,s)}return o},e.prototype.createBinarizer=function(n){return new e(n)},e.prototype.initArrays=function(n){this.luminances.length<n&&(this.luminances=new Uint8ClampedArray(n));for(var r=this.buckets,i=0;i<e.LUMINANCE_BUCKETS;i++)r[i]=0},e.estimateBlackPoint=function(n){for(var r=n.length,i=0,o=0,a=0,s=0;s<r;s++)n[s]>a&&(o=s,a=n[s]),n[s]>i&&(i=n[s]);for(var l=0,c=0,s=0;s<r;s++){var u=s-o,d=n[s]*u*u;d>c&&(l=s,c=d)}if(o>l){var f=o;o=l,l=f}if(l-o<=r/16)throw new M;for(var h=l-1,p=-1,s=l-1;s>o;s--){var g=s-o,d=g*g*(l-s)*(i-n[s]);d>p&&(h=s,p=d)}return h<<e.LUMINANCE_SHIFT},e.LUMINANCE_BITS=5,e.LUMINANCE_SHIFT=8-e.LUMINANCE_BITS,e.LUMINANCE_BUCKETS=1<<e.LUMINANCE_BITS,e.EMPTY=Uint8ClampedArray.from([0]),e}(X_),iE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),oE=function(t){iE(e,t);function e(n){var r=t.call(this,n)||this;return r.matrix=null,r}return e.prototype.getBlackMatrix=function(){if(this.matrix!==null)return this.matrix;var n=this.getLuminanceSource(),r=n.getWidth(),i=n.getHeight();if(r>=e.MINIMUM_DIMENSION&&i>=e.MINIMUM_DIMENSION){var o=n.getMatrix(),a=r>>e.BLOCK_SIZE_POWER;r&e.BLOCK_SIZE_MASK&&a++;var s=i>>e.BLOCK_SIZE_POWER;i&e.BLOCK_SIZE_MASK&&s++;var l=e.calculateBlackPoints(o,a,s,r,i),c=new yn(r,i);e.calculateThresholdForBlock(o,a,s,r,i,l,c),this.matrix=c}else this.matrix=t.prototype.getBlackMatrix.call(this);return this.matrix},e.prototype.createBinarizer=function(n){return new e(n)},e.calculateThresholdForBlock=function(n,r,i,o,a,s,l){for(var c=a-e.BLOCK_SIZE,u=o-e.BLOCK_SIZE,d=0;d<i;d++){var f=d<<e.BLOCK_SIZE_POWER;f>c&&(f=c);for(var h=e.cap(d,2,i-3),p=0;p<r;p++){var g=p<<e.BLOCK_SIZE_POWER;g>u&&(g=u);for(var b=e.cap(p,2,r-3),m=0,v=-2;v<=2;v++){var w=s[h+v];m+=w[b-2]+w[b-1]+w[b]+w[b+1]+w[b+2]}var y=m/25;e.thresholdBlock(n,g,f,y,o,l)}}},e.cap=function(n,r,i){return n<r?r:n>i?i:n},e.thresholdBlock=function(n,r,i,o,a,s){for(var l=0,c=i*a+r;l<e.BLOCK_SIZE;l++,c+=a)for(var u=0;u<e.BLOCK_SIZE;u++)(n[c+u]&255)<=o&&s.set(r+u,i+l)},e.calculateBlackPoints=function(n,r,i,o,a){for(var s=a-e.BLOCK_SIZE,l=o-e.BLOCK_SIZE,c=new Array(i),u=0;u<i;u++){c[u]=new Int32Array(r);var d=u<<e.BLOCK_SIZE_POWER;d>s&&(d=s);for(var f=0;f<r;f++){var h=f<<e.BLOCK_SIZE_POWER;h>l&&(h=l);for(var p=0,g=255,b=0,m=0,v=d*o+h;m<e.BLOCK_SIZE;m++,v+=o){for(var w=0;w<e.BLOCK_SIZE;w++){var y=n[v+w]&255;p+=y,y<g&&(g=y),y>b&&(b=y)}if(b-g>e.MIN_DYNAMIC_RANGE)for(m++,v+=o;m<e.BLOCK_SIZE;m++,v+=o)for(var w=0;w<e.BLOCK_SIZE;w++)p+=n[v+w]&255}var C=p>>e.BLOCK_SIZE_POWER*2;if(b-g<=e.MIN_DYNAMIC_RANGE&&(C=g/2,u>0&&f>0)){var E=(c[u-1][f]+2*c[u][f-1]+c[u-1][f-1])/4;g<E&&(C=E)}c[u][f]=C}}return c},e.BLOCK_SIZE_POWER=3,e.BLOCK_SIZE=1<<e.BLOCK_SIZE_POWER,e.BLOCK_SIZE_MASK=e.BLOCK_SIZE-1,e.MINIMUM_DIMENSION=e.BLOCK_SIZE*5,e.MIN_DYNAMIC_RANGE=24,e}(rE),_a=function(){function t(e,n){this.width=e,this.height=n}return t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.isCropSupported=function(){return!1},t.prototype.crop=function(e,n,r,i){throw new Ro("This luminance source does not support cropping.")},t.prototype.isRotateSupported=function(){return!1},t.prototype.rotateCounterClockwise=function(){throw new Ro("This luminance source does not support rotation by 90 degrees.")},t.prototype.rotateCounterClockwise45=function(){throw new Ro("This luminance source does not support rotation by 45 degrees.")},t.prototype.toString=function(){for(var e=new Uint8ClampedArray(this.width),n=new Ae,r=0;r<this.height;r++){for(var i=this.getRow(r,e),o=0;o<this.width;o++){var a=i[o]&255,s=void 0;a<64?s="#":a<128?s="+":a<192?s=".":s=" ",n.append(s)}n.append(`
|
|
123
|
+
`)}return n.toString()},t}(),aE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),uc=function(t){aE(e,t);function e(n){var r=t.call(this,n.getWidth(),n.getHeight())||this;return r.delegate=n,r}return e.prototype.getRow=function(n,r){for(var i=this.delegate.getRow(n,r),o=this.getWidth(),a=0;a<o;a++)i[a]=255-(i[a]&255);return i},e.prototype.getMatrix=function(){for(var n=this.delegate.getMatrix(),r=this.getWidth()*this.getHeight(),i=new Uint8ClampedArray(r),o=0;o<r;o++)i[o]=255-(n[o]&255);return i},e.prototype.isCropSupported=function(){return this.delegate.isCropSupported()},e.prototype.crop=function(n,r,i,o){return new e(this.delegate.crop(n,r,i,o))},e.prototype.isRotateSupported=function(){return this.delegate.isRotateSupported()},e.prototype.invert=function(){return this.delegate},e.prototype.rotateCounterClockwise=function(){return new e(this.delegate.rotateCounterClockwise())},e.prototype.rotateCounterClockwise45=function(){return new e(this.delegate.rotateCounterClockwise45())},e}(_a),sE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),lE=function(t){sE(e,t);function e(n){var r=t.call(this,n.width,n.height)||this;return r.canvas=n,r.tempCanvasElement=null,r.buffer=e.makeBufferFromCanvasImageData(n),r}return e.makeBufferFromCanvasImageData=function(n){var r=n.getContext("2d").getImageData(0,0,n.width,n.height);return e.toGrayscaleBuffer(r.data,n.width,n.height)},e.toGrayscaleBuffer=function(n,r,i){for(var o=new Uint8ClampedArray(r*i),a=0,s=0,l=n.length;a<l;a+=4,s++){var c=void 0,u=n[a+3];if(u===0)c=255;else{var d=n[a],f=n[a+1],h=n[a+2];c=306*d+601*f+117*h+512>>10}o[s]=c}return o},e.prototype.getRow=function(n,r){if(n<0||n>=this.getHeight())throw new q("Requested row is outside the image: "+n);var i=this.getWidth(),o=n*i;return r===null?r=this.buffer.slice(o,o+i):(r.length<i&&(r=new Uint8ClampedArray(i)),r.set(this.buffer.slice(o,o+i))),r},e.prototype.getMatrix=function(){return this.buffer},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(n,r,i,o){return t.prototype.crop.call(this,n,r,i,o),this},e.prototype.isRotateSupported=function(){return!0},e.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},e.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},e.prototype.getTempCanvasElement=function(){if(this.tempCanvasElement===null){var n=this.canvas.ownerDocument.createElement("canvas");n.width=this.canvas.width,n.height=this.canvas.height,this.tempCanvasElement=n}return this.tempCanvasElement},e.prototype.rotate=function(n){var r=this.getTempCanvasElement(),i=r.getContext("2d"),o=n*e.DEGREE_TO_RADIANS,a=this.canvas.width,s=this.canvas.height,l=Math.ceil(Math.abs(Math.cos(o))*a+Math.abs(Math.sin(o))*s),c=Math.ceil(Math.abs(Math.sin(o))*a+Math.abs(Math.cos(o))*s);return r.width=l,r.height=c,i.translate(l/2,c/2),i.rotate(o),i.drawImage(this.canvas,a/-2,s/-2),this.buffer=e.makeBufferFromCanvasImageData(r),this},e.prototype.invert=function(){return new uc(this)},e.DEGREE_TO_RADIANS=Math.PI/180,e}(_a),cE=function(){function t(e,n,r){this.deviceId=e,this.label=n,this.kind="videoinput",this.groupId=r||void 0}return t.prototype.toJSON=function(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}},t}(),mt=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(t,e||[])).next())})},vt=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},uE=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},di=function(){function t(e,n,r){n===void 0&&(n=500),this.reader=e,this.timeBetweenScansMillis=n,this._hints=r,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(t.prototype,"hasNavigator",{get:function(){return typeof navigator<"u"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canEnumerateDevices",{get:function(){return!!(this.isMediaDevicesSuported&&navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(e){this._timeBetweenDecodingAttempts=e<0?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hints",{get:function(){return this._hints},set:function(e){this._hints=e||null},enumerable:!1,configurable:!0}),t.prototype.listVideoInputDevices=function(){return mt(this,void 0,void 0,function(){var e,n,r,i,o,a,s,l,c,u,d,f;return vt(this,function(h){switch(h.label){case 0:if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:e=h.sent(),n=[];try{for(r=uE(e),i=r.next();!i.done;i=r.next())o=i.value,a=o.kind==="video"?"videoinput":o.kind,a==="videoinput"&&(s=o.deviceId||o.id,l=o.label||"Video device "+(n.length+1),c=o.groupId,u={deviceId:s,label:l,kind:a,groupId:c},n.push(u))}catch(p){d={error:p}}finally{try{i&&!i.done&&(f=r.return)&&f.call(r)}finally{if(d)throw d.error}}return[2,n]}})})},t.prototype.getVideoInputDevices=function(){return mt(this,void 0,void 0,function(){var e;return vt(this,function(n){switch(n.label){case 0:return[4,this.listVideoInputDevices()];case 1:return e=n.sent(),[2,e.map(function(r){return new cE(r.deviceId,r.label)})]}})})},t.prototype.findDeviceById=function(e){return mt(this,void 0,void 0,function(){var n;return vt(this,function(r){switch(r.label){case 0:return[4,this.listVideoInputDevices()];case 1:return n=r.sent(),n?[2,n.find(function(i){return i.deviceId===e})]:[2,null]}})})},t.prototype.decodeFromInputVideoDevice=function(e,n){return mt(this,void 0,void 0,function(){return vt(this,function(r){switch(r.label){case 0:return[4,this.decodeOnceFromVideoDevice(e,n)];case 1:return[2,r.sent()]}})})},t.prototype.decodeOnceFromVideoDevice=function(e,n){return mt(this,void 0,void 0,function(){var r,i;return vt(this,function(o){switch(o.label){case 0:return this.reset(),e?r={deviceId:{exact:e}}:r={facingMode:"environment"},i={video:r},[4,this.decodeOnceFromConstraints(i,n)];case 1:return[2,o.sent()]}})})},t.prototype.decodeOnceFromConstraints=function(e,n){return mt(this,void 0,void 0,function(){var r;return vt(this,function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return r=i.sent(),[4,this.decodeOnceFromStream(r,n)];case 2:return[2,i.sent()]}})})},t.prototype.decodeOnceFromStream=function(e,n){return mt(this,void 0,void 0,function(){var r,i;return vt(this,function(o){switch(o.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,n)];case 1:return r=o.sent(),[4,this.decodeOnce(r)];case 2:return i=o.sent(),[2,i]}})})},t.prototype.decodeFromInputVideoDeviceContinuously=function(e,n,r){return mt(this,void 0,void 0,function(){return vt(this,function(i){switch(i.label){case 0:return[4,this.decodeFromVideoDevice(e,n,r)];case 1:return[2,i.sent()]}})})},t.prototype.decodeFromVideoDevice=function(e,n,r){return mt(this,void 0,void 0,function(){var i,o;return vt(this,function(a){switch(a.label){case 0:return e?i={deviceId:{exact:e}}:i={facingMode:"environment"},o={video:i},[4,this.decodeFromConstraints(o,n,r)];case 1:return[2,a.sent()]}})})},t.prototype.decodeFromConstraints=function(e,n,r){return mt(this,void 0,void 0,function(){var i;return vt(this,function(o){switch(o.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return i=o.sent(),[4,this.decodeFromStream(i,n,r)];case 2:return[2,o.sent()]}})})},t.prototype.decodeFromStream=function(e,n,r){return mt(this,void 0,void 0,function(){var i;return vt(this,function(o){switch(o.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,n)];case 1:return i=o.sent(),[4,this.decodeContinuously(i,r)];case 2:return[2,o.sent()]}})})},t.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},t.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},t.prototype.attachStreamToVideo=function(e,n){return mt(this,void 0,void 0,function(){var r;return vt(this,function(i){switch(i.label){case 0:return r=this.prepareVideoElement(n),this.addVideoSource(r,e),this.videoElement=r,this.stream=e,[4,this.playVideoOnLoadAsync(r)];case 1:return i.sent(),[2,r]}})})},t.prototype.playVideoOnLoadAsync=function(e){var n=this;return new Promise(function(r,i){return n.playVideoOnLoad(e,function(){return r()})})},t.prototype.playVideoOnLoad=function(e,n){var r=this;this.videoEndedListener=function(){return r.stopStreams()},this.videoCanPlayListener=function(){return r.tryPlayVideo(e)},e.addEventListener("ended",this.videoEndedListener),e.addEventListener("canplay",this.videoCanPlayListener),e.addEventListener("playing",n),this.tryPlayVideo(e)},t.prototype.isVideoPlaying=function(e){return e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2},t.prototype.tryPlayVideo=function(e){return mt(this,void 0,void 0,function(){return vt(this,function(n){switch(n.label){case 0:if(this.isVideoPlaying(e))return console.warn("Trying to play video that is already playing."),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e.play()];case 2:return n.sent(),[3,4];case 3:return n.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}})})},t.prototype.getMediaElement=function(e,n){var r=document.getElementById(e);if(!r)throw new tn("element with id '"+e+"' not found");if(r.nodeName.toLowerCase()!==n.toLowerCase())throw new tn("element with id '"+e+"' must be an "+n+" element");return r},t.prototype.decodeFromImage=function(e,n){if(!e&&!n)throw new tn("either imageElement with a src set or an url must be provided");return n&&!e?this.decodeFromImageUrl(n):this.decodeFromImageElement(e)},t.prototype.decodeFromVideo=function(e,n){if(!e&&!n)throw new tn("Either an element with a src set or an URL must be provided");return n&&!e?this.decodeFromVideoUrl(n):this.decodeFromVideoElement(e)},t.prototype.decodeFromVideoContinuously=function(e,n,r){if(e===void 0&&n===void 0)throw new tn("Either an element with a src set or an URL must be provided");return n&&!e?this.decodeFromVideoUrlContinuously(n,r):this.decodeFromVideoElementContinuously(e,r)},t.prototype.decodeFromImageElement=function(e){if(!e)throw new tn("An image element must be provided.");this.reset();var n=this.prepareImageElement(e);this.imageElement=n;var r;return this.isImageLoaded(n)?r=this.decodeOnce(n,!1,!0):r=this._decodeOnLoadImage(n),r},t.prototype.decodeFromVideoElement=function(e){var n=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideo(n)},t.prototype.decodeFromVideoElementContinuously=function(e,n){var r=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideoContinuously(r,n)},t.prototype._decodeFromVideoElementSetup=function(e){if(!e)throw new tn("A video element must be provided.");this.reset();var n=this.prepareVideoElement(e);return this.videoElement=n,n},t.prototype.decodeFromImageUrl=function(e){if(!e)throw new tn("An URL must be provided.");this.reset();var n=this.prepareImageElement();this.imageElement=n;var r=this._decodeOnLoadImage(n);return n.src=e,r},t.prototype.decodeFromVideoUrl=function(e){if(!e)throw new tn("An URL must be provided.");this.reset();var n=this.prepareVideoElement(),r=this.decodeFromVideoElement(n);return n.src=e,r},t.prototype.decodeFromVideoUrlContinuously=function(e,n){if(!e)throw new tn("An URL must be provided.");this.reset();var r=this.prepareVideoElement(),i=this.decodeFromVideoElementContinuously(r,n);return r.src=e,i},t.prototype._decodeOnLoadImage=function(e){var n=this;return new Promise(function(r,i){n.imageLoadedListener=function(){return n.decodeOnce(e,!1,!0).then(r,i)},e.addEventListener("load",n.imageLoadedListener)})},t.prototype._decodeOnLoadVideo=function(e){return mt(this,void 0,void 0,function(){return vt(this,function(n){switch(n.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return n.sent(),[4,this.decodeOnce(e)];case 2:return[2,n.sent()]}})})},t.prototype._decodeOnLoadVideoContinuously=function(e,n){return mt(this,void 0,void 0,function(){return vt(this,function(r){switch(r.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return r.sent(),this.decodeContinuously(e,n),[2]}})})},t.prototype.isImageLoaded=function(e){return!(!e.complete||e.naturalWidth===0)},t.prototype.prepareImageElement=function(e){var n;return typeof e>"u"&&(n=document.createElement("img"),n.width=200,n.height=200),typeof e=="string"&&(n=this.getMediaElement(e,"img")),e instanceof HTMLImageElement&&(n=e),n},t.prototype.prepareVideoElement=function(e){var n;return!e&&typeof document<"u"&&(n=document.createElement("video"),n.width=200,n.height=200),typeof e=="string"&&(n=this.getMediaElement(e,"video")),e instanceof HTMLVideoElement&&(n=e),n.setAttribute("autoplay","true"),n.setAttribute("muted","true"),n.setAttribute("playsinline","true"),n},t.prototype.decodeOnce=function(e,n,r){var i=this;n===void 0&&(n=!0),r===void 0&&(r=!0),this._stopAsyncDecode=!1;var o=function(a,s){if(i._stopAsyncDecode){s(new M("Video stream has ended before any code could be detected.")),i._stopAsyncDecode=void 0;return}try{var l=i.decode(e);a(l)}catch(f){var c=n&&f instanceof M,u=f instanceof lt||f instanceof H,d=u&&r;if(c||d)return setTimeout(o,i._timeBetweenDecodingAttempts,a,s);s(f)}};return new Promise(function(a,s){return o(a,s)})},t.prototype.decodeContinuously=function(e,n){var r=this;this._stopContinuousDecode=!1;var i=function(){if(r._stopContinuousDecode){r._stopContinuousDecode=void 0;return}try{var o=r.decode(e);n(o,null),setTimeout(i,r.timeBetweenScansMillis)}catch(l){n(null,l);var a=l instanceof lt||l instanceof H,s=l instanceof M;(a||s)&&setTimeout(i,r._timeBetweenDecodingAttempts)}};i()},t.prototype.decode=function(e){var n=this.createBinaryBitmap(e);return this.decodeBitmap(n)},t.prototype._isHTMLVideoElement=function(e){var n=e;return n.videoWidth!==0},t.prototype.createBinaryBitmap=function(e){this.getCaptureCanvasContext(e),this._isHTMLVideoElement(e)?this.drawFrameOnCanvas(e):this.drawImageOnCanvas(e);var n=this.getCaptureCanvas(e),r=new lE(n),i=new oE(r);return new j_(i)},t.prototype.getCaptureCanvasContext=function(e){if(!this.captureCanvasContext){var n=this.getCaptureCanvas(e),r=void 0;try{r=n.getContext("2d",{willReadFrequently:!0})}catch{r=n.getContext("2d")}this.captureCanvasContext=r}return this.captureCanvasContext},t.prototype.getCaptureCanvas=function(e){if(!this.captureCanvas){var n=this.createCaptureCanvas(e);this.captureCanvas=n}return this.captureCanvas},t.prototype.drawFrameOnCanvas=function(e,n,r){n===void 0&&(n={sx:0,sy:0,sWidth:e.videoWidth,sHeight:e.videoHeight,dx:0,dy:0,dWidth:e.videoWidth,dHeight:e.videoHeight}),r===void 0&&(r=this.captureCanvasContext),r.drawImage(e,n.sx,n.sy,n.sWidth,n.sHeight,n.dx,n.dy,n.dWidth,n.dHeight)},t.prototype.drawImageOnCanvas=function(e,n,r){n===void 0&&(n={sx:0,sy:0,sWidth:e.naturalWidth,sHeight:e.naturalHeight,dx:0,dy:0,dWidth:e.naturalWidth,dHeight:e.naturalHeight}),r===void 0&&(r=this.captureCanvasContext),r.drawImage(e,n.sx,n.sy,n.sWidth,n.sHeight,n.dx,n.dy,n.dWidth,n.dHeight)},t.prototype.decodeBitmap=function(e){return this.reader.decode(e,this._hints)},t.prototype.createCaptureCanvas=function(e){if(typeof document>"u")return this._destroyCaptureCanvas(),null;var n=document.createElement("canvas"),r,i;return typeof e<"u"&&(e instanceof HTMLVideoElement?(r=e.videoWidth,i=e.videoHeight):e instanceof HTMLImageElement&&(r=e.naturalWidth||e.width,i=e.naturalHeight||e.height)),n.style.width=r+"px",n.style.height=i+"px",n.width=r,n.height=i,n},t.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach(function(e){return e.stop()}),this.stream=void 0),this._stopAsyncDecode===!1&&this.stopAsyncDecode(),this._stopContinuousDecode===!1&&this.stopContinuousDecode()},t.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},t.prototype._destroyVideoElement=function(){this.videoElement&&(typeof this.videoEndedListener<"u"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener<"u"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener<"u"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},t.prototype._destroyImageElement=function(){this.imageElement&&(this.imageLoadedListener!==void 0&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},t.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},t.prototype.addVideoSource=function(e,n){try{e.srcObject=n}catch{e.src=URL.createObjectURL(n)}},t.prototype.cleanVideoSource=function(e){try{e.srcObject=null}catch{e.src=""}this.videoElement.removeAttribute("src")},t}(),Ot=function(){function t(e,n,r,i,o,a){r===void 0&&(r=n==null?0:8*n.length),a===void 0&&(a=Se.currentTimeMillis()),this.text=e,this.rawBytes=n,this.numBits=r,this.resultPoints=i,this.format=o,this.timestamp=a,this.text=e,this.rawBytes=n,r==null?this.numBits=n==null?0:8*n.length:this.numBits=r,this.resultPoints=i,this.format=o,this.resultMetadata=null,a==null?this.timestamp=Se.currentTimeMillis():this.timestamp=a}return t.prototype.getText=function(){return this.text},t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.getResultPoints=function(){return this.resultPoints},t.prototype.getBarcodeFormat=function(){return this.format},t.prototype.getResultMetadata=function(){return this.resultMetadata},t.prototype.putMetadata=function(e,n){this.resultMetadata===null&&(this.resultMetadata=new Map),this.resultMetadata.set(e,n)},t.prototype.putAllMetadata=function(e){e!==null&&(this.resultMetadata===null?this.resultMetadata=e:this.resultMetadata=new Map(e))},t.prototype.addResultPoints=function(e){var n=this.resultPoints;if(n===null)this.resultPoints=e;else if(e!==null&&e.length>0){var r=new Array(n.length+e.length);Se.arraycopy(n,0,r,0,n.length),Se.arraycopy(e,0,r,n.length,e.length),this.resultPoints=r}},t.prototype.getTimestamp=function(){return this.timestamp},t.prototype.toString=function(){return this.text},t}(),Ks;(function(t){t[t.AZTEC=0]="AZTEC",t[t.CODABAR=1]="CODABAR",t[t.CODE_39=2]="CODE_39",t[t.CODE_93=3]="CODE_93",t[t.CODE_128=4]="CODE_128",t[t.DATA_MATRIX=5]="DATA_MATRIX",t[t.EAN_8=6]="EAN_8",t[t.EAN_13=7]="EAN_13",t[t.ITF=8]="ITF",t[t.MAXICODE=9]="MAXICODE",t[t.PDF_417=10]="PDF_417",t[t.QR_CODE=11]="QR_CODE",t[t.RSS_14=12]="RSS_14",t[t.RSS_EXPANDED=13]="RSS_EXPANDED",t[t.UPC_A=14]="UPC_A",t[t.UPC_E=15]="UPC_E",t[t.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"})(Ks||(Ks={}));const Q=Ks;var Zs;(function(t){t[t.OTHER=0]="OTHER",t[t.ORIENTATION=1]="ORIENTATION",t[t.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",t[t.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",t[t.ISSUE_NUMBER=4]="ISSUE_NUMBER",t[t.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",t[t.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",t[t.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",t[t.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",t[t.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",t[t.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"})(Zs||(Zs={}));const ct=Zs;var Ea=function(){function t(e,n,r,i,o,a){o===void 0&&(o=-1),a===void 0&&(a=-1),this.rawBytes=e,this.text=n,this.byteSegments=r,this.ecLevel=i,this.structuredAppendSequenceNumber=o,this.structuredAppendParity=a,this.numBits=e==null?0:8*e.length}return t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.setNumBits=function(e){this.numBits=e},t.prototype.getText=function(){return this.text},t.prototype.getByteSegments=function(){return this.byteSegments},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getErrorsCorrected=function(){return this.errorsCorrected},t.prototype.setErrorsCorrected=function(e){this.errorsCorrected=e},t.prototype.getErasures=function(){return this.erasures},t.prototype.setErasures=function(e){this.erasures=e},t.prototype.getOther=function(){return this.other},t.prototype.setOther=function(e){this.other=e},t.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},t.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},t.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},t}(),ki=function(){function t(){}return t.prototype.exp=function(e){return this.expTable[e]},t.prototype.log=function(e){if(e===0)throw new q;return this.logTable[e]},t.addOrSubtract=function(e,n){return e^n},t}(),Xn=function(){function t(e,n){if(n.length===0)throw new q;this.field=e;var r=n.length;if(r>1&&n[0]===0){for(var i=1;i<r&&n[i]===0;)i++;i===r?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(r-i),Se.arraycopy(n,i,this.coefficients,0,this.coefficients.length))}else this.coefficients=n}return t.prototype.getCoefficients=function(){return this.coefficients},t.prototype.getDegree=function(){return this.coefficients.length-1},t.prototype.isZero=function(){return this.coefficients[0]===0},t.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},t.prototype.evaluateAt=function(e){if(e===0)return this.getCoefficient(0);var n=this.coefficients,r;if(e===1){r=0;for(var i=0,o=n.length;i!==o;i++){var a=n[i];r=ki.addOrSubtract(r,a)}return r}r=n[0];for(var s=n.length,l=this.field,i=1;i<s;i++)r=ki.addOrSubtract(l.multiply(e,r),n[i]);return r},t.prototype.addOrSubtract=function(e){if(!this.field.equals(e.field))throw new q("GenericGFPolys do not have same GenericGF field");if(this.isZero())return e;if(e.isZero())return this;var n=this.coefficients,r=e.coefficients;if(n.length>r.length){var i=n;n=r,r=i}var o=new Int32Array(r.length),a=r.length-n.length;Se.arraycopy(r,0,o,0,a);for(var s=a;s<r.length;s++)o[s]=ki.addOrSubtract(n[s-a],r[s]);return new t(this.field,o)},t.prototype.multiply=function(e){if(!this.field.equals(e.field))throw new q("GenericGFPolys do not have same GenericGF field");if(this.isZero()||e.isZero())return this.field.getZero();for(var n=this.coefficients,r=n.length,i=e.coefficients,o=i.length,a=new Int32Array(r+o-1),s=this.field,l=0;l<r;l++)for(var c=n[l],u=0;u<o;u++)a[l+u]=ki.addOrSubtract(a[l+u],s.multiply(c,i[u]));return new t(s,a)},t.prototype.multiplyScalar=function(e){if(e===0)return this.field.getZero();if(e===1)return this;for(var n=this.coefficients.length,r=this.field,i=new Int32Array(n),o=this.coefficients,a=0;a<n;a++)i[a]=r.multiply(o[a],e);return new t(r,i)},t.prototype.multiplyByMonomial=function(e,n){if(e<0)throw new q;if(n===0)return this.field.getZero();for(var r=this.coefficients,i=r.length,o=new Int32Array(i+e),a=this.field,s=0;s<i;s++)o[s]=a.multiply(r[s],n);return new t(a,o)},t.prototype.divide=function(e){if(!this.field.equals(e.field))throw new q("GenericGFPolys do not have same GenericGF field");if(e.isZero())throw new q("Divide by 0");for(var n=this.field,r=n.getZero(),i=this,o=e.getCoefficient(e.getDegree()),a=n.inverse(o);i.getDegree()>=e.getDegree()&&!i.isZero();){var s=i.getDegree()-e.getDegree(),l=n.multiply(i.getCoefficient(i.getDegree()),a),c=e.multiplyByMonomial(s,l),u=n.buildMonomial(s,l);r=r.addOrSubtract(u),i=i.addOrSubtract(c)}return[r,i]},t.prototype.toString=function(){for(var e="",n=this.getDegree();n>=0;n--){var r=this.getCoefficient(n);if(r!==0){if(r<0?(e+=" - ",r=-r):e.length>0&&(e+=" + "),n===0||r!==1){var i=this.field.log(r);i===0?e+="1":i===1?e+="a":(e+="a^",e+=i)}n!==0&&(n===1?e+="x":(e+="x^",e+=n))}}return e},t}(),dE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),op=function(t){dE(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ArithmeticException",e}(_t),fE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ct=function(t){fE(e,t);function e(n,r,i){var o=t.call(this)||this;o.primitive=n,o.size=r,o.generatorBase=i;for(var a=new Int32Array(r),s=1,l=0;l<r;l++)a[l]=s,s*=2,s>=r&&(s^=n,s&=r-1);o.expTable=a;for(var c=new Int32Array(r),l=0;l<r-1;l++)c[a[l]]=l;return o.logTable=c,o.zero=new Xn(o,Int32Array.from([0])),o.one=new Xn(o,Int32Array.from([1])),o}return e.prototype.getZero=function(){return this.zero},e.prototype.getOne=function(){return this.one},e.prototype.buildMonomial=function(n,r){if(n<0)throw new q;if(r===0)return this.zero;var i=new Int32Array(n+1);return i[0]=r,new Xn(this,i)},e.prototype.inverse=function(n){if(n===0)throw new op;return this.expTable[this.size-this.logTable[n]-1]},e.prototype.multiply=function(n,r){return n===0||r===0?0:this.expTable[(this.logTable[n]+this.logTable[r])%(this.size-1)]},e.prototype.getSize=function(){return this.size},e.prototype.getGeneratorBase=function(){return this.generatorBase},e.prototype.toString=function(){return"GF(0x"+ue.toHexString(this.primitive)+","+this.size+")"},e.prototype.equals=function(n){return n===this},e.AZTEC_DATA_12=new e(4201,4096,1),e.AZTEC_DATA_10=new e(1033,1024,1),e.AZTEC_DATA_6=new e(67,64,1),e.AZTEC_PARAM=new e(19,16,1),e.QR_CODE_FIELD_256=new e(285,256,0),e.DATA_MATRIX_FIELD_256=new e(301,256,1),e.AZTEC_DATA_8=e.DATA_MATRIX_FIELD_256,e.MAXICODE_FIELD_64=e.AZTEC_DATA_6,e}(ki),hE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yo=function(t){hE(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ReedSolomonException",e}(_t),pE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),to=function(t){pE(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IllegalStateException",e}(_t),Aa=function(){function t(e){this.field=e}return t.prototype.decode=function(e,n){for(var r=this.field,i=new Xn(r,e),o=new Int32Array(n),a=!0,s=0;s<n;s++){var l=i.evaluateAt(r.exp(s+r.getGeneratorBase()));o[o.length-1-s]=l,l!==0&&(a=!1)}if(!a)for(var c=new Xn(r,o),u=this.runEuclideanAlgorithm(r.buildMonomial(n,1),c,n),d=u[0],f=u[1],h=this.findErrorLocations(d),p=this.findErrorMagnitudes(f,h),s=0;s<h.length;s++){var g=e.length-1-r.log(h[s]);if(g<0)throw new yo("Bad error location");e[g]=Ct.addOrSubtract(e[g],p[s])}},t.prototype.runEuclideanAlgorithm=function(e,n,r){if(e.getDegree()<n.getDegree()){var i=e;e=n,n=i}for(var o=this.field,a=e,s=n,l=o.getZero(),c=o.getOne();s.getDegree()>=(r/2|0);){var u=a,d=l;if(a=s,l=c,a.isZero())throw new yo("r_{i-1} was zero");s=u;for(var f=o.getZero(),h=a.getCoefficient(a.getDegree()),p=o.inverse(h);s.getDegree()>=a.getDegree()&&!s.isZero();){var g=s.getDegree()-a.getDegree(),b=o.multiply(s.getCoefficient(s.getDegree()),p);f=f.addOrSubtract(o.buildMonomial(g,b)),s=s.addOrSubtract(a.multiplyByMonomial(g,b))}if(c=f.multiply(l).addOrSubtract(d),s.getDegree()>=a.getDegree())throw new to("Division algorithm failed to reduce polynomial?")}var m=c.getCoefficient(0);if(m===0)throw new yo("sigmaTilde(0) was zero");var v=o.inverse(m),w=c.multiplyScalar(v),y=s.multiplyScalar(v);return[w,y]},t.prototype.findErrorLocations=function(e){var n=e.getDegree();if(n===1)return Int32Array.from([e.getCoefficient(1)]);for(var r=new Int32Array(n),i=0,o=this.field,a=1;a<o.getSize()&&i<n;a++)e.evaluateAt(a)===0&&(r[i]=o.inverse(a),i++);if(i!==n)throw new yo("Error locator degree does not match number of roots");return r},t.prototype.findErrorMagnitudes=function(e,n){for(var r=n.length,i=new Int32Array(r),o=this.field,a=0;a<r;a++){for(var s=o.inverse(n[a]),l=1,c=0;c<r;c++)if(a!==c){var u=o.multiply(n[c],s),d=u&1?u&-2:u|1;l=o.multiply(l,d)}i[a]=o.multiply(e.evaluateAt(s),o.inverse(l)),o.getGeneratorBase()!==0&&(i[a]=o.multiply(i[a],s))}return i},t}(),st;(function(t){t[t.UPPER=0]="UPPER",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.DIGIT=3]="DIGIT",t[t.PUNCT=4]="PUNCT",t[t.BINARY=5]="BINARY"})(st||(st={}));var od=function(){function t(){}return t.prototype.decode=function(e){this.ddata=e;var n=e.getBits(),r=this.extractBits(n),i=this.correctBits(r),o=t.convertBoolArrayToByteArray(i),a=t.getEncodedData(i),s=new Ea(o,a,null,null);return s.setNumBits(i.length),s},t.highLevelDecode=function(e){return this.getEncodedData(e)},t.getEncodedData=function(e){for(var n=e.length,r=st.UPPER,i=st.UPPER,o="",a=0;a<n;)if(i===st.BINARY){if(n-a<5)break;var s=t.readCode(e,a,5);if(a+=5,s===0){if(n-a<11)break;s=t.readCode(e,a,11)+31,a+=11}for(var l=0;l<s;l++){if(n-a<8){a=n;break}var c=t.readCode(e,a,8);o+=Ce.castAsNonUtf8Char(c),a+=8}i=r}else{var u=i===st.DIGIT?4:5;if(n-a<u)break;var c=t.readCode(e,a,u);a+=u;var d=t.getCharacter(i,c);d.startsWith("CTRL_")?(r=i,i=t.getTable(d.charAt(5)),d.charAt(6)==="L"&&(r=i)):(o+=d,i=r)}return o},t.getTable=function(e){switch(e){case"L":return st.LOWER;case"P":return st.PUNCT;case"M":return st.MIXED;case"D":return st.DIGIT;case"B":return st.BINARY;case"U":default:return st.UPPER}},t.getCharacter=function(e,n){switch(e){case st.UPPER:return t.UPPER_TABLE[n];case st.LOWER:return t.LOWER_TABLE[n];case st.MIXED:return t.MIXED_TABLE[n];case st.PUNCT:return t.PUNCT_TABLE[n];case st.DIGIT:return t.DIGIT_TABLE[n];default:throw new to("Bad table")}},t.prototype.correctBits=function(e){var n,r;this.ddata.getNbLayers()<=2?(r=6,n=Ct.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(r=8,n=Ct.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(r=10,n=Ct.AZTEC_DATA_10):(r=12,n=Ct.AZTEC_DATA_12);var i=this.ddata.getNbDatablocks(),o=e.length/r;if(o<i)throw new H;for(var a=e.length%r,s=new Int32Array(o),l=0;l<o;l++,a+=r)s[l]=t.readCode(e,a,r);try{var c=new Aa(n);c.decode(s,o-i)}catch(b){throw new H(b)}for(var u=(1<<r)-1,d=0,l=0;l<i;l++){var f=s[l];if(f===0||f===u)throw new H;(f===1||f===u-1)&&d++}for(var h=new Array(i*r-d),p=0,l=0;l<i;l++){var f=s[l];if(f===1||f===u-1)h.fill(f>1,p,p+r-1),p+=r-1;else for(var g=r-1;g>=0;--g)h[p++]=(f&1<<g)!==0}return h},t.prototype.extractBits=function(e){var n=this.ddata.isCompact(),r=this.ddata.getNbLayers(),i=(n?11:14)+r*4,o=new Int32Array(i),a=new Array(this.totalBitsInLayer(r,n));if(n)for(var s=0;s<o.length;s++)o[s]=s;else for(var l=i+1+2*ue.truncDivision(ue.truncDivision(i,2)-1,15),c=i/2,u=ue.truncDivision(l,2),s=0;s<c;s++){var d=s+ue.truncDivision(s,15);o[c-s-1]=u-d-1,o[c+s]=u+d+1}for(var s=0,f=0;s<r;s++){for(var h=(r-s)*4+(n?9:12),p=s*2,g=i-1-p,b=0;b<h;b++)for(var m=b*2,v=0;v<2;v++)a[f+m+v]=e.get(o[p+v],o[p+b]),a[f+2*h+m+v]=e.get(o[p+b],o[g-v]),a[f+4*h+m+v]=e.get(o[g-v],o[g-b]),a[f+6*h+m+v]=e.get(o[g-b],o[p+v]);f+=h*8}return a},t.readCode=function(e,n,r){for(var i=0,o=n;o<n+r;o++)i<<=1,e[o]&&(i|=1);return i},t.readByte=function(e,n){var r=e.length-n;return r>=8?t.readCode(e,n,8):t.readCode(e,n,r)<<8-r},t.convertBoolArrayToByteArray=function(e){for(var n=new Uint8Array((e.length+7)/8),r=0;r<n.length;r++)n[r]=t.readByte(e,8*r);return n},t.prototype.totalBitsInLayer=function(e,n){return((n?88:112)+16*e)*e},t.UPPER_TABLE=["CTRL_PS"," ","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","CTRL_LL","CTRL_ML","CTRL_DL","CTRL_BS"],t.LOWER_TABLE=["CTRL_PS"," ","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","CTRL_US","CTRL_ML","CTRL_DL","CTRL_BS"],t.MIXED_TABLE=["CTRL_PS"," ","\\1","\\2","\\3","\\4","\\5","\\6","\\7","\b"," ",`
|
|
124
|
+
`,"\\13","\f","\r","\\33","\\34","\\35","\\36","\\37","@","\\","^","_","`","|","~","\\177","CTRL_LL","CTRL_UL","CTRL_PL","CTRL_BS"],t.PUNCT_TABLE=["","\r",`\r
|
|
125
|
+
`,". ",", ",": ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}","CTRL_UL"],t.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],t}(),pe=function(){function t(){}return t.round=function(e){return isNaN(e)?0:e<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:e>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e+(e<0?-.5:.5)|0},t.distance=function(e,n,r,i){var o=e-r,a=n-i;return Math.sqrt(o*o+a*a)},t.sum=function(e){for(var n=0,r=0,i=e.length;r!==i;r++){var o=e[r];n+=o}return n},t}(),Js=function(){function t(){}return t.floatToIntBits=function(e){return e},t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}(),Y=function(){function t(e,n){this.x=e,this.y=n}return t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t.prototype.equals=function(e){if(e instanceof t){var n=e;return this.x===n.x&&this.y===n.y}return!1},t.prototype.hashCode=function(){return 31*Js.floatToIntBits(this.x)+Js.floatToIntBits(this.y)},t.prototype.toString=function(){return"("+this.x+","+this.y+")"},t.orderBestPatterns=function(e){var n=this.distance(e[0],e[1]),r=this.distance(e[1],e[2]),i=this.distance(e[0],e[2]),o,a,s;if(r>=n&&r>=i?(a=e[0],o=e[1],s=e[2]):i>=r&&i>=n?(a=e[1],o=e[0],s=e[2]):(a=e[2],o=e[0],s=e[1]),this.crossProductZ(o,a,s)<0){var l=o;o=s,s=l}e[0]=o,e[1]=a,e[2]=s},t.distance=function(e,n){return pe.distance(e.x,e.y,n.x,n.y)},t.crossProductZ=function(e,n,r){var i=n.x,o=n.y;return(r.x-i)*(e.y-o)-(r.y-o)*(e.x-i)},t}(),dc=function(){function t(e,n){this.bits=e,this.points=n}return t.prototype.getBits=function(){return this.bits},t.prototype.getPoints=function(){return this.points},t}(),gE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),mE=function(t){gE(e,t);function e(n,r,i,o,a){var s=t.call(this,n,r)||this;return s.compact=i,s.nbDatablocks=o,s.nbLayers=a,s}return e.prototype.getNbLayers=function(){return this.nbLayers},e.prototype.getNbDatablocks=function(){return this.nbDatablocks},e.prototype.isCompact=function(){return this.compact},e}(dc),Qs=function(){function t(e,n,r,i){this.image=e,this.height=e.getHeight(),this.width=e.getWidth(),n==null&&(n=t.INIT_SIZE),r==null&&(r=e.getWidth()/2|0),i==null&&(i=e.getHeight()/2|0);var o=n/2|0;if(this.leftInit=r-o,this.rightInit=r+o,this.upInit=i-o,this.downInit=i+o,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new M}return t.prototype.detect=function(){for(var e=this.leftInit,n=this.rightInit,r=this.upInit,i=this.downInit,o=!1,a=!0,s=!1,l=!1,c=!1,u=!1,d=!1,f=this.width,h=this.height;a;){a=!1;for(var p=!0;(p||!l)&&n<f;)p=this.containsBlackPoint(r,i,n,!1),p?(n++,a=!0,l=!0):l||n++;if(n>=f){o=!0;break}for(var g=!0;(g||!c)&&i<h;)g=this.containsBlackPoint(e,n,i,!0),g?(i++,a=!0,c=!0):c||i++;if(i>=h){o=!0;break}for(var b=!0;(b||!u)&&e>=0;)b=this.containsBlackPoint(r,i,e,!1),b?(e--,a=!0,u=!0):u||e--;if(e<0){o=!0;break}for(var m=!0;(m||!d)&&r>=0;)m=this.containsBlackPoint(e,n,r,!0),m?(r--,a=!0,d=!0):d||r--;if(r<0){o=!0;break}a&&(s=!0)}if(!o&&s){for(var v=n-e,w=null,y=1;w===null&&y<v;y++)w=this.getBlackPointOnSegment(e,i-y,e+y,i);if(w==null)throw new M;for(var C=null,y=1;C===null&&y<v;y++)C=this.getBlackPointOnSegment(e,r+y,e+y,r);if(C==null)throw new M;for(var E=null,y=1;E===null&&y<v;y++)E=this.getBlackPointOnSegment(n,r+y,n-y,r);if(E==null)throw new M;for(var k=null,y=1;k===null&&y<v;y++)k=this.getBlackPointOnSegment(n,i-y,n-y,i);if(k==null)throw new M;return this.centerEdges(k,w,E,C)}else throw new M},t.prototype.getBlackPointOnSegment=function(e,n,r,i){for(var o=pe.round(pe.distance(e,n,r,i)),a=(r-e)/o,s=(i-n)/o,l=this.image,c=0;c<o;c++){var u=pe.round(e+c*a),d=pe.round(n+c*s);if(l.get(u,d))return new Y(u,d)}return null},t.prototype.centerEdges=function(e,n,r,i){var o=e.getX(),a=e.getY(),s=n.getX(),l=n.getY(),c=r.getX(),u=r.getY(),d=i.getX(),f=i.getY(),h=t.CORR;return o<this.width/2?[new Y(d-h,f+h),new Y(s+h,l+h),new Y(c-h,u-h),new Y(o+h,a-h)]:[new Y(d+h,f+h),new Y(s+h,l-h),new Y(c-h,u+h),new Y(o-h,a-h)]},t.prototype.containsBlackPoint=function(e,n,r,i){var o=this.image;if(i){for(var a=e;a<=n;a++)if(o.get(a,r))return!0}else for(var s=e;s<=n;s++)if(o.get(r,s))return!0;return!1},t.INIT_SIZE=10,t.CORR=1,t}(),ad=function(){function t(){}return t.checkAndNudgePoints=function(e,n){for(var r=e.getWidth(),i=e.getHeight(),o=!0,a=0;a<n.length&&o;a+=2){var s=Math.floor(n[a]),l=Math.floor(n[a+1]);if(s<-1||s>r||l<-1||l>i)throw new M;o=!1,s===-1?(n[a]=0,o=!0):s===r&&(n[a]=r-1,o=!0),l===-1?(n[a+1]=0,o=!0):l===i&&(n[a+1]=i-1,o=!0)}o=!0;for(var a=n.length-2;a>=0&&o;a-=2){var s=Math.floor(n[a]),l=Math.floor(n[a+1]);if(s<-1||s>r||l<-1||l>i)throw new M;o=!1,s===-1?(n[a]=0,o=!0):s===r&&(n[a]=r-1,o=!0),l===-1?(n[a+1]=0,o=!0):l===i&&(n[a+1]=i-1,o=!0)}},t}(),ap=function(){function t(e,n,r,i,o,a,s,l,c){this.a11=e,this.a21=n,this.a31=r,this.a12=i,this.a22=o,this.a32=a,this.a13=s,this.a23=l,this.a33=c}return t.quadrilateralToQuadrilateral=function(e,n,r,i,o,a,s,l,c,u,d,f,h,p,g,b){var m=t.quadrilateralToSquare(e,n,r,i,o,a,s,l),v=t.squareToQuadrilateral(c,u,d,f,h,p,g,b);return v.times(m)},t.prototype.transformPoints=function(e){for(var n=e.length,r=this.a11,i=this.a12,o=this.a13,a=this.a21,s=this.a22,l=this.a23,c=this.a31,u=this.a32,d=this.a33,f=0;f<n;f+=2){var h=e[f],p=e[f+1],g=o*h+l*p+d;e[f]=(r*h+a*p+c)/g,e[f+1]=(i*h+s*p+u)/g}},t.prototype.transformPointsWithValues=function(e,n){for(var r=this.a11,i=this.a12,o=this.a13,a=this.a21,s=this.a22,l=this.a23,c=this.a31,u=this.a32,d=this.a33,f=e.length,h=0;h<f;h++){var p=e[h],g=n[h],b=o*p+l*g+d;e[h]=(r*p+a*g+c)/b,n[h]=(i*p+s*g+u)/b}},t.squareToQuadrilateral=function(e,n,r,i,o,a,s,l){var c=e-r+o-s,u=n-i+a-l;if(c===0&&u===0)return new t(r-e,o-r,e,i-n,a-i,n,0,0,1);var d=r-o,f=s-o,h=i-a,p=l-a,g=d*p-f*h,b=(c*p-f*u)/g,m=(d*u-c*h)/g;return new t(r-e+b*r,s-e+m*s,e,i-n+b*i,l-n+m*l,n,b,m,1)},t.quadrilateralToSquare=function(e,n,r,i,o,a,s,l){return t.squareToQuadrilateral(e,n,r,i,o,a,s,l).buildAdjoint()},t.prototype.buildAdjoint=function(){return new t(this.a22*this.a33-this.a23*this.a32,this.a23*this.a31-this.a21*this.a33,this.a21*this.a32-this.a22*this.a31,this.a13*this.a32-this.a12*this.a33,this.a11*this.a33-this.a13*this.a31,this.a12*this.a31-this.a11*this.a32,this.a12*this.a23-this.a13*this.a22,this.a13*this.a21-this.a11*this.a23,this.a11*this.a22-this.a12*this.a21)},t.prototype.times=function(e){return new t(this.a11*e.a11+this.a21*e.a12+this.a31*e.a13,this.a11*e.a21+this.a21*e.a22+this.a31*e.a23,this.a11*e.a31+this.a21*e.a32+this.a31*e.a33,this.a12*e.a11+this.a22*e.a12+this.a32*e.a13,this.a12*e.a21+this.a22*e.a22+this.a32*e.a23,this.a12*e.a31+this.a22*e.a32+this.a32*e.a33,this.a13*e.a11+this.a23*e.a12+this.a33*e.a13,this.a13*e.a21+this.a23*e.a22+this.a33*e.a23,this.a13*e.a31+this.a23*e.a32+this.a33*e.a33)},t}(),vE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),bE=function(t){vE(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.sampleGrid=function(n,r,i,o,a,s,l,c,u,d,f,h,p,g,b,m,v,w,y){var C=ap.quadrilateralToQuadrilateral(o,a,s,l,c,u,d,f,h,p,g,b,m,v,w,y);return this.sampleGridWithTransform(n,r,i,C)},e.prototype.sampleGridWithTransform=function(n,r,i,o){if(r<=0||i<=0)throw new M;for(var a=new yn(r,i),s=new Float32Array(2*r),l=0;l<i;l++){for(var c=s.length,u=l+.5,d=0;d<c;d+=2)s[d]=d/2+.5,s[d+1]=u;o.transformPoints(s),ad.checkAndNudgePoints(n,s);try{for(var d=0;d<c;d+=2)n.get(Math.floor(s[d]),Math.floor(s[d+1]))&&a.set(d/2,l)}catch{throw new M}}return a},e}(ad),fc=function(){function t(){}return t.setGridSampler=function(e){t.gridSampler=e},t.getInstance=function(){return t.gridSampler},t.gridSampler=new bE,t}(),At=function(){function t(e,n){this.x=e,this.y=n}return t.prototype.toResultPoint=function(){return new Y(this.getX(),this.getY())},t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t}(),xE=function(){function t(e){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=e}return t.prototype.detect=function(){return this.detectMirror(!1)},t.prototype.detectMirror=function(e){var n=this.getMatrixCenter(),r=this.getBullsEyeCorners(n);if(e){var i=r[0];r[0]=r[2],r[2]=i}this.extractParameters(r);var o=this.sampleGrid(this.image,r[this.shift%4],r[(this.shift+1)%4],r[(this.shift+2)%4],r[(this.shift+3)%4]),a=this.getMatrixCornerPoints(r);return new mE(o,a,this.compact,this.nbDataBlocks,this.nbLayers)},t.prototype.extractParameters=function(e){if(!this.isValidPoint(e[0])||!this.isValidPoint(e[1])||!this.isValidPoint(e[2])||!this.isValidPoint(e[3]))throw new M;var n=2*this.nbCenterLayers,r=new Int32Array([this.sampleLine(e[0],e[1],n),this.sampleLine(e[1],e[2],n),this.sampleLine(e[2],e[3],n),this.sampleLine(e[3],e[0],n)]);this.shift=this.getRotation(r,n);for(var i=0,o=0;o<4;o++){var a=r[(this.shift+o)%4];this.compact?(i<<=7,i+=a>>1&127):(i<<=10,i+=(a>>2&992)+(a>>1&31))}var s=this.getCorrectedParameterData(i,this.compact);this.compact?(this.nbLayers=(s>>6)+1,this.nbDataBlocks=(s&63)+1):(this.nbLayers=(s>>11)+1,this.nbDataBlocks=(s&2047)+1)},t.prototype.getRotation=function(e,n){var r=0;e.forEach(function(o,a,s){var l=(o>>n-2<<1)+(o&1);r=(r<<3)+l}),r=((r&1)<<11)+(r>>1);for(var i=0;i<4;i++)if(ue.bitCount(r^this.EXPECTED_CORNER_BITS[i])<=2)return i;throw new M},t.prototype.getCorrectedParameterData=function(e,n){var r,i;n?(r=7,i=2):(r=10,i=4);for(var o=r-i,a=new Int32Array(r),s=r-1;s>=0;--s)a[s]=e&15,e>>=4;try{var l=new Aa(Ct.AZTEC_PARAM);l.decode(a,o)}catch{throw new M}for(var c=0,s=0;s<i;s++)c=(c<<4)+a[s];return c},t.prototype.getBullsEyeCorners=function(e){var n=e,r=e,i=e,o=e,a=!0;for(this.nbCenterLayers=1;this.nbCenterLayers<9;this.nbCenterLayers++){var s=this.getFirstDifferent(n,a,1,-1),l=this.getFirstDifferent(r,a,1,1),c=this.getFirstDifferent(i,a,-1,1),u=this.getFirstDifferent(o,a,-1,-1);if(this.nbCenterLayers>2){var d=this.distancePoint(u,s)*this.nbCenterLayers/(this.distancePoint(o,n)*(this.nbCenterLayers+2));if(d<.75||d>1.25||!this.isWhiteOrBlackRectangle(s,l,c,u))break}n=s,r=l,i=c,o=u,a=!a}if(this.nbCenterLayers!==5&&this.nbCenterLayers!==7)throw new M;this.compact=this.nbCenterLayers===5;var f=new Y(n.getX()+.5,n.getY()-.5),h=new Y(r.getX()+.5,r.getY()+.5),p=new Y(i.getX()-.5,i.getY()+.5),g=new Y(o.getX()-.5,o.getY()-.5);return this.expandSquare([f,h,p,g],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},t.prototype.getMatrixCenter=function(){var e,n,r,i;try{var o=new Qs(this.image).detect();e=o[0],n=o[1],r=o[2],i=o[3]}catch{var a=this.image.getWidth()/2,s=this.image.getHeight()/2;e=this.getFirstDifferent(new At(a+7,s-7),!1,1,-1).toResultPoint(),n=this.getFirstDifferent(new At(a+7,s+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new At(a-7,s+7),!1,-1,1).toResultPoint(),i=this.getFirstDifferent(new At(a-7,s-7),!1,-1,-1).toResultPoint()}var l=pe.round((e.getX()+i.getX()+n.getX()+r.getX())/4),c=pe.round((e.getY()+i.getY()+n.getY()+r.getY())/4);try{var o=new Qs(this.image,15,l,c).detect();e=o[0],n=o[1],r=o[2],i=o[3]}catch{e=this.getFirstDifferent(new At(l+7,c-7),!1,1,-1).toResultPoint(),n=this.getFirstDifferent(new At(l+7,c+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new At(l-7,c+7),!1,-1,1).toResultPoint(),i=this.getFirstDifferent(new At(l-7,c-7),!1,-1,-1).toResultPoint()}return l=pe.round((e.getX()+i.getX()+n.getX()+r.getX())/4),c=pe.round((e.getY()+i.getY()+n.getY()+r.getY())/4),new At(l,c)},t.prototype.getMatrixCornerPoints=function(e){return this.expandSquare(e,2*this.nbCenterLayers,this.getDimension())},t.prototype.sampleGrid=function(e,n,r,i,o){var a=fc.getInstance(),s=this.getDimension(),l=s/2-this.nbCenterLayers,c=s/2+this.nbCenterLayers;return a.sampleGrid(e,s,s,l,l,c,l,c,c,l,c,n.getX(),n.getY(),r.getX(),r.getY(),i.getX(),i.getY(),o.getX(),o.getY())},t.prototype.sampleLine=function(e,n,r){for(var i=0,o=this.distanceResultPoint(e,n),a=o/r,s=e.getX(),l=e.getY(),c=a*(n.getX()-e.getX())/o,u=a*(n.getY()-e.getY())/o,d=0;d<r;d++)this.image.get(pe.round(s+d*c),pe.round(l+d*u))&&(i|=1<<r-d-1);return i},t.prototype.isWhiteOrBlackRectangle=function(e,n,r,i){var o=3;e=new At(e.getX()-o,e.getY()+o),n=new At(n.getX()-o,n.getY()-o),r=new At(r.getX()+o,r.getY()-o),i=new At(i.getX()+o,i.getY()+o);var a=this.getColor(i,e);if(a===0)return!1;var s=this.getColor(e,n);return s!==a||(s=this.getColor(n,r),s!==a)?!1:(s=this.getColor(r,i),s===a)},t.prototype.getColor=function(e,n){for(var r=this.distancePoint(e,n),i=(n.getX()-e.getX())/r,o=(n.getY()-e.getY())/r,a=0,s=e.getX(),l=e.getY(),c=this.image.get(e.getX(),e.getY()),u=Math.ceil(r),d=0;d<u;d++)s+=i,l+=o,this.image.get(pe.round(s),pe.round(l))!==c&&a++;var f=a/r;return f>.1&&f<.9?0:f<=.1===c?1:-1},t.prototype.getFirstDifferent=function(e,n,r,i){for(var o=e.getX()+r,a=e.getY()+i;this.isValid(o,a)&&this.image.get(o,a)===n;)o+=r,a+=i;for(o-=r,a-=i;this.isValid(o,a)&&this.image.get(o,a)===n;)o+=r;for(o-=r;this.isValid(o,a)&&this.image.get(o,a)===n;)a+=i;return a-=i,new At(o,a)},t.prototype.expandSquare=function(e,n,r){var i=r/(2*n),o=e[0].getX()-e[2].getX(),a=e[0].getY()-e[2].getY(),s=(e[0].getX()+e[2].getX())/2,l=(e[0].getY()+e[2].getY())/2,c=new Y(s+i*o,l+i*a),u=new Y(s-i*o,l-i*a);o=e[1].getX()-e[3].getX(),a=e[1].getY()-e[3].getY(),s=(e[1].getX()+e[3].getX())/2,l=(e[1].getY()+e[3].getY())/2;var d=new Y(s+i*o,l+i*a),f=new Y(s-i*o,l-i*a),h=[c,d,u,f];return h},t.prototype.isValid=function(e,n){return e>=0&&e<this.image.getWidth()&&n>0&&n<this.image.getHeight()},t.prototype.isValidPoint=function(e){var n=pe.round(e.getX()),r=pe.round(e.getY());return this.isValid(n,r)},t.prototype.distancePoint=function(e,n){return pe.distance(e.getX(),e.getY(),n.getX(),n.getY())},t.prototype.distanceResultPoint=function(e,n){return pe.distance(e.getX(),e.getY(),n.getX(),n.getY())},t.prototype.getDimension=function(){return this.compact?4*this.nbLayers+11:this.nbLayers<=4?4*this.nbLayers+15:4*this.nbLayers+2*(ue.truncDivision(this.nbLayers-4,8)+1)+15},t}(),el=function(){function t(){}return t.prototype.decode=function(e,n){n===void 0&&(n=null);var r=null,i=new xE(e.getBlackMatrix()),o=null,a=null;try{var s=i.detectMirror(!1);o=s.getPoints(),this.reportFoundResultPoints(n,o),a=new od().decode(s)}catch(d){r=d}if(a==null)try{var s=i.detectMirror(!0);o=s.getPoints(),this.reportFoundResultPoints(n,o),a=new od().decode(s)}catch(d){throw r??d}var l=new Ot(a.getText(),a.getRawBytes(),a.getNumBits(),o,Q.AZTEC,Se.currentTimeMillis()),c=a.getByteSegments();c!=null&&l.putMetadata(ct.BYTE_SEGMENTS,c);var u=a.getECLevel();return u!=null&&l.putMetadata(ct.ERROR_CORRECTION_LEVEL,u),l},t.prototype.reportFoundResultPoints=function(e,n){if(e!=null){var r=e.get(Fe.NEED_RESULT_POINT_CALLBACK);r!=null&&n.forEach(function(i,o,a){r.foundPossibleResultPoint(i)})}},t.prototype.reset=function(){},t}(),yE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){yE(e,t);function e(n){return n===void 0&&(n=500),t.call(this,new el,n)||this}return e})(di);var ut=function(){function t(){}return t.prototype.decode=function(e,n){try{return this.doDecode(e,n)}catch{var r=n&&n.get(Fe.TRY_HARDER)===!0;if(r&&e.isRotateSupported()){var i=e.rotateCounterClockwise(),o=this.doDecode(i,n),a=o.getResultMetadata(),s=270;a!==null&&a.get(ct.ORIENTATION)===!0&&(s=s+a.get(ct.ORIENTATION)%360),o.putMetadata(ct.ORIENTATION,s);var l=o.getResultPoints();if(l!==null)for(var c=i.getHeight(),u=0;u<l.length;u++)l[u]=new Y(c-l[u].getY()-1,l[u].getX());return o}else throw new M}},t.prototype.reset=function(){},t.prototype.doDecode=function(e,n){var r=e.getWidth(),i=e.getHeight(),o=new it(r),a=n&&n.get(Fe.TRY_HARDER)===!0,s=Math.max(1,i>>(a?8:5)),l;a?l=i:l=15;for(var c=Math.trunc(i/2),u=0;u<l;u++){var d=Math.trunc((u+1)/2),f=(u&1)===0,h=c+s*(f?d:-d);if(h<0||h>=i)break;try{o=e.getBlackRow(h,o)}catch{continue}for(var p=function(v){if(v===1&&(o.reverse(),n&&n.get(Fe.NEED_RESULT_POINT_CALLBACK)===!0)){var w=new Map;n.forEach(function(E,k){return w.set(k,E)}),w.delete(Fe.NEED_RESULT_POINT_CALLBACK),n=w}try{var y=g.decodeRow(h,o,n);if(v===1){y.putMetadata(ct.ORIENTATION,180);var C=y.getResultPoints();C!==null&&(C[0]=new Y(r-C[0].getX()-1,C[0].getY()),C[1]=new Y(r-C[1].getX()-1,C[1].getY()))}return{value:y}}catch{}},g=this,b=0;b<2;b++){var m=p(b);if(typeof m=="object")return m.value}}throw new M},t.recordPattern=function(e,n,r){for(var i=r.length,o=0;o<i;o++)r[o]=0;var a=e.getSize();if(n>=a)throw new M;for(var s=!e.get(n),l=0,c=n;c<a;){if(e.get(c)!==s)r[l]++;else{if(++l===i)break;r[l]=1,s=!s}c++}if(!(l===i||l===i-1&&c===a))throw new M},t.recordPatternInReverse=function(e,n,r){for(var i=r.length,o=e.get(n);n>0&&i>=0;)e.get(--n)!==o&&(i--,o=!o);if(i>=0)throw new M;t.recordPattern(e,n+1,r)},t.patternMatchVariance=function(e,n,r){for(var i=e.length,o=0,a=0,s=0;s<i;s++)o+=e[s],a+=n[s];if(o<a)return Number.POSITIVE_INFINITY;var l=o/a;r*=l;for(var c=0,u=0;u<i;u++){var d=e[u],f=n[u]*l,h=d>f?d-f:f-d;if(h>r)return Number.POSITIVE_INFINITY;c+=h}return c/o},t}(),wE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),sd=function(t){wE(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.findStartPattern=function(n){for(var r=n.getSize(),i=n.getNextSet(0),o=0,a=Int32Array.from([0,0,0,0,0,0]),s=i,l=!1,c=6,u=i;u<r;u++)if(n.get(u)!==l)a[o]++;else{if(o===c-1){for(var d=e.MAX_AVG_VARIANCE,f=-1,h=e.CODE_START_A;h<=e.CODE_START_C;h++){var p=ut.patternMatchVariance(a,e.CODE_PATTERNS[h],e.MAX_INDIVIDUAL_VARIANCE);p<d&&(d=p,f=h)}if(f>=0&&n.isRange(Math.max(0,s-(u-s)/2),s,!1))return Int32Array.from([s,u,f]);s+=a[0]+a[1],a=a.slice(2,a.length-1),a[o-1]=0,a[o]=0,o--}else o++;a[o]=1,l=!l}throw new M},e.decodeCode=function(n,r,i){ut.recordPattern(n,i,r);for(var o=e.MAX_AVG_VARIANCE,a=-1,s=0;s<e.CODE_PATTERNS.length;s++){var l=e.CODE_PATTERNS[s],c=this.patternMatchVariance(r,l,e.MAX_INDIVIDUAL_VARIANCE);c<o&&(o=c,a=s)}if(a>=0)return a;throw new M},e.prototype.decodeRow=function(n,r,i){var o=i&&i.get(Fe.ASSUME_GS1)===!0,a=e.findStartPattern(r),s=a[2],l=0,c=new Uint8Array(20);c[l++]=s;var u;switch(s){case e.CODE_START_A:u=e.CODE_CODE_A;break;case e.CODE_START_B:u=e.CODE_CODE_B;break;case e.CODE_START_C:u=e.CODE_CODE_C;break;default:throw new H}for(var d=!1,f=!1,h="",p=a[0],g=a[1],b=Int32Array.from([0,0,0,0,0,0]),m=0,v=0,w=s,y=0,C=!0,E=!1,k=!1;!d;){var N=f;switch(f=!1,m=v,v=e.decodeCode(r,b,g),c[l++]=v,v!==e.CODE_STOP&&(C=!0),v!==e.CODE_STOP&&(y++,w+=y*v),p=g,g+=b.reduce(function(K,Te){return K+Te},0),v){case e.CODE_START_A:case e.CODE_START_B:case e.CODE_START_C:throw new H}switch(u){case e.CODE_CODE_A:if(v<64)k===E?h+=String.fromCharCode(" ".charCodeAt(0)+v):h+=String.fromCharCode(" ".charCodeAt(0)+v+128),k=!1;else if(v<96)k===E?h+=String.fromCharCode(v-64):h+=String.fromCharCode(v+64),k=!1;else switch(v!==e.CODE_STOP&&(C=!1),v){case e.CODE_FNC_1:o&&(h.length===0?h+="]C1":h+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_A:!E&&k?(E=!0,k=!1):E&&k?(E=!1,k=!1):k=!0;break;case e.CODE_SHIFT:f=!0,u=e.CODE_CODE_B;break;case e.CODE_CODE_B:u=e.CODE_CODE_B;break;case e.CODE_CODE_C:u=e.CODE_CODE_C;break;case e.CODE_STOP:d=!0;break}break;case e.CODE_CODE_B:if(v<96)k===E?h+=String.fromCharCode(" ".charCodeAt(0)+v):h+=String.fromCharCode(" ".charCodeAt(0)+v+128),k=!1;else switch(v!==e.CODE_STOP&&(C=!1),v){case e.CODE_FNC_1:o&&(h.length===0?h+="]C1":h+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_B:!E&&k?(E=!0,k=!1):E&&k?(E=!1,k=!1):k=!0;break;case e.CODE_SHIFT:f=!0,u=e.CODE_CODE_A;break;case e.CODE_CODE_A:u=e.CODE_CODE_A;break;case e.CODE_CODE_C:u=e.CODE_CODE_C;break;case e.CODE_STOP:d=!0;break}break;case e.CODE_CODE_C:if(v<100)v<10&&(h+="0"),h+=v;else switch(v!==e.CODE_STOP&&(C=!1),v){case e.CODE_FNC_1:o&&(h.length===0?h+="]C1":h+=String.fromCharCode(29));break;case e.CODE_CODE_A:u=e.CODE_CODE_A;break;case e.CODE_CODE_B:u=e.CODE_CODE_B;break;case e.CODE_STOP:d=!0;break}break}N&&(u=u===e.CODE_CODE_A?e.CODE_CODE_B:e.CODE_CODE_A)}var D=g-p;if(g=r.getNextUnset(g),!r.isRange(g,Math.min(r.getSize(),g+(g-p)/2),!1))throw new M;if(w-=y*m,w%103!==m)throw new lt;var O=h.length;if(O===0)throw new M;O>0&&C&&(u===e.CODE_CODE_C?h=h.substring(0,O-2):h=h.substring(0,O-1));for(var L=(a[1]+a[0])/2,B=p+D/2,G=c.length,ae=new Uint8Array(G),se=0;se<G;se++)ae[se]=c[se];var Z=[new Y(L,n),new Y(B,n)];return new Ot(h,ae,0,Z,Q.CODE_128,new Date().getTime())},e.CODE_PATTERNS=[Int32Array.from([2,1,2,2,2,2]),Int32Array.from([2,2,2,1,2,2]),Int32Array.from([2,2,2,2,2,1]),Int32Array.from([1,2,1,2,2,3]),Int32Array.from([1,2,1,3,2,2]),Int32Array.from([1,3,1,2,2,2]),Int32Array.from([1,2,2,2,1,3]),Int32Array.from([1,2,2,3,1,2]),Int32Array.from([1,3,2,2,1,2]),Int32Array.from([2,2,1,2,1,3]),Int32Array.from([2,2,1,3,1,2]),Int32Array.from([2,3,1,2,1,2]),Int32Array.from([1,1,2,2,3,2]),Int32Array.from([1,2,2,1,3,2]),Int32Array.from([1,2,2,2,3,1]),Int32Array.from([1,1,3,2,2,2]),Int32Array.from([1,2,3,1,2,2]),Int32Array.from([1,2,3,2,2,1]),Int32Array.from([2,2,3,2,1,1]),Int32Array.from([2,2,1,1,3,2]),Int32Array.from([2,2,1,2,3,1]),Int32Array.from([2,1,3,2,1,2]),Int32Array.from([2,2,3,1,1,2]),Int32Array.from([3,1,2,1,3,1]),Int32Array.from([3,1,1,2,2,2]),Int32Array.from([3,2,1,1,2,2]),Int32Array.from([3,2,1,2,2,1]),Int32Array.from([3,1,2,2,1,2]),Int32Array.from([3,2,2,1,1,2]),Int32Array.from([3,2,2,2,1,1]),Int32Array.from([2,1,2,1,2,3]),Int32Array.from([2,1,2,3,2,1]),Int32Array.from([2,3,2,1,2,1]),Int32Array.from([1,1,1,3,2,3]),Int32Array.from([1,3,1,1,2,3]),Int32Array.from([1,3,1,3,2,1]),Int32Array.from([1,1,2,3,1,3]),Int32Array.from([1,3,2,1,1,3]),Int32Array.from([1,3,2,3,1,1]),Int32Array.from([2,1,1,3,1,3]),Int32Array.from([2,3,1,1,1,3]),Int32Array.from([2,3,1,3,1,1]),Int32Array.from([1,1,2,1,3,3]),Int32Array.from([1,1,2,3,3,1]),Int32Array.from([1,3,2,1,3,1]),Int32Array.from([1,1,3,1,2,3]),Int32Array.from([1,1,3,3,2,1]),Int32Array.from([1,3,3,1,2,1]),Int32Array.from([3,1,3,1,2,1]),Int32Array.from([2,1,1,3,3,1]),Int32Array.from([2,3,1,1,3,1]),Int32Array.from([2,1,3,1,1,3]),Int32Array.from([2,1,3,3,1,1]),Int32Array.from([2,1,3,1,3,1]),Int32Array.from([3,1,1,1,2,3]),Int32Array.from([3,1,1,3,2,1]),Int32Array.from([3,3,1,1,2,1]),Int32Array.from([3,1,2,1,1,3]),Int32Array.from([3,1,2,3,1,1]),Int32Array.from([3,3,2,1,1,1]),Int32Array.from([3,1,4,1,1,1]),Int32Array.from([2,2,1,4,1,1]),Int32Array.from([4,3,1,1,1,1]),Int32Array.from([1,1,1,2,2,4]),Int32Array.from([1,1,1,4,2,2]),Int32Array.from([1,2,1,1,2,4]),Int32Array.from([1,2,1,4,2,1]),Int32Array.from([1,4,1,1,2,2]),Int32Array.from([1,4,1,2,2,1]),Int32Array.from([1,1,2,2,1,4]),Int32Array.from([1,1,2,4,1,2]),Int32Array.from([1,2,2,1,1,4]),Int32Array.from([1,2,2,4,1,1]),Int32Array.from([1,4,2,1,1,2]),Int32Array.from([1,4,2,2,1,1]),Int32Array.from([2,4,1,2,1,1]),Int32Array.from([2,2,1,1,1,4]),Int32Array.from([4,1,3,1,1,1]),Int32Array.from([2,4,1,1,1,2]),Int32Array.from([1,3,4,1,1,1]),Int32Array.from([1,1,1,2,4,2]),Int32Array.from([1,2,1,1,4,2]),Int32Array.from([1,2,1,2,4,1]),Int32Array.from([1,1,4,2,1,2]),Int32Array.from([1,2,4,1,1,2]),Int32Array.from([1,2,4,2,1,1]),Int32Array.from([4,1,1,2,1,2]),Int32Array.from([4,2,1,1,1,2]),Int32Array.from([4,2,1,2,1,1]),Int32Array.from([2,1,2,1,4,1]),Int32Array.from([2,1,4,1,2,1]),Int32Array.from([4,1,2,1,2,1]),Int32Array.from([1,1,1,1,4,3]),Int32Array.from([1,1,1,3,4,1]),Int32Array.from([1,3,1,1,4,1]),Int32Array.from([1,1,4,1,1,3]),Int32Array.from([1,1,4,3,1,1]),Int32Array.from([4,1,1,1,1,3]),Int32Array.from([4,1,1,3,1,1]),Int32Array.from([1,1,3,1,4,1]),Int32Array.from([1,1,4,1,3,1]),Int32Array.from([3,1,1,1,4,1]),Int32Array.from([4,1,1,1,3,1]),Int32Array.from([2,1,1,4,1,2]),Int32Array.from([2,1,1,2,1,4]),Int32Array.from([2,1,1,2,3,2]),Int32Array.from([2,3,3,1,1,1,2])],e.MAX_AVG_VARIANCE=.25,e.MAX_INDIVIDUAL_VARIANCE=.7,e.CODE_SHIFT=98,e.CODE_CODE_C=99,e.CODE_CODE_B=100,e.CODE_CODE_A=101,e.CODE_FNC_1=102,e.CODE_FNC_2=97,e.CODE_FNC_3=96,e.CODE_FNC_4_A=101,e.CODE_FNC_4_B=100,e.CODE_START_A=103,e.CODE_START_B=104,e.CODE_START_C=105,e.CODE_STOP=106,e}(ut),_E=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ts=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ld=function(t){_E(e,t);function e(n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);var i=t.call(this)||this;return i.usingCheckDigit=n,i.extendedMode=r,i.decodeRowResult="",i.counters=new Int32Array(9),i}return e.prototype.decodeRow=function(n,r,i){var o,a,s,l,c=this.counters;c.fill(0),this.decodeRowResult="";var u=e.findAsteriskPattern(r,c),d=r.getNextSet(u[1]),f=r.getSize(),h,p;do{e.recordPattern(r,d,c);var g=e.toNarrowWidePattern(c);if(g<0)throw new M;h=e.patternToChar(g),this.decodeRowResult+=h,p=d;try{for(var b=(o=void 0,ts(c)),m=b.next();!m.done;m=b.next()){var v=m.value;d+=v}}catch(G){o={error:G}}finally{try{m&&!m.done&&(a=b.return)&&a.call(b)}finally{if(o)throw o.error}}d=r.getNextSet(d)}while(h!=="*");this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var w=0;try{for(var y=ts(c),C=y.next();!C.done;C=y.next()){var v=C.value;w+=v}}catch(G){s={error:G}}finally{try{C&&!C.done&&(l=y.return)&&l.call(y)}finally{if(s)throw s.error}}var E=d-p-w;if(d!==f&&E*2<w)throw new M;if(this.usingCheckDigit){for(var k=this.decodeRowResult.length-1,N=0,D=0;D<k;D++)N+=e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(D));if(this.decodeRowResult.charAt(k)!==e.ALPHABET_STRING.charAt(N%43))throw new lt;this.decodeRowResult=this.decodeRowResult.substring(0,k)}if(this.decodeRowResult.length===0)throw new M;var O;this.extendedMode?O=e.decodeExtended(this.decodeRowResult):O=this.decodeRowResult;var L=(u[1]+u[0])/2,B=p+w/2;return new Ot(O,null,0,[new Y(L,n),new Y(B,n)],Q.CODE_39,new Date().getTime())},e.findAsteriskPattern=function(n,r){for(var i=n.getSize(),o=n.getNextSet(0),a=0,s=o,l=!1,c=r.length,u=o;u<i;u++)if(n.get(u)!==l)r[a]++;else{if(a===c-1){if(this.toNarrowWidePattern(r)===e.ASTERISK_ENCODING&&n.isRange(Math.max(0,s-Math.floor((u-s)/2)),s,!1))return[s,u];s+=r[0]+r[1],r.copyWithin(0,2,2+a-1),r[a-1]=0,r[a]=0,a--}else a++;r[a]=1,l=!l}throw new M},e.toNarrowWidePattern=function(n){var r,i,o=n.length,a=0,s;do{var l=2147483647;try{for(var c=(r=void 0,ts(n)),u=c.next();!u.done;u=c.next()){var d=u.value;d<l&&d>a&&(l=d)}}catch(g){r={error:g}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}a=l,s=0;for(var f=0,h=0,p=0;p<o;p++){var d=n[p];d>a&&(h|=1<<o-1-p,s++,f+=d)}if(s===3){for(var p=0;p<o&&s>0;p++){var d=n[p];if(d>a&&(s--,d*2>=f))return-1}return h}}while(s>3);return-1},e.patternToChar=function(n){for(var r=0;r<e.CHARACTER_ENCODINGS.length;r++)if(e.CHARACTER_ENCODINGS[r]===n)return e.ALPHABET_STRING.charAt(r);if(n===e.ASTERISK_ENCODING)return"*";throw new M},e.decodeExtended=function(n){for(var r=n.length,i="",o=0;o<r;o++){var a=n.charAt(o);if(a==="+"||a==="$"||a==="%"||a==="/"){var s=n.charAt(o+1),l="\0";switch(a){case"+":if(s>="A"&&s<="Z")l=String.fromCharCode(s.charCodeAt(0)+32);else throw new H;break;case"$":if(s>="A"&&s<="Z")l=String.fromCharCode(s.charCodeAt(0)-64);else throw new H;break;case"%":if(s>="A"&&s<="E")l=String.fromCharCode(s.charCodeAt(0)-38);else if(s>="F"&&s<="J")l=String.fromCharCode(s.charCodeAt(0)-11);else if(s>="K"&&s<="O")l=String.fromCharCode(s.charCodeAt(0)+16);else if(s>="P"&&s<="T")l=String.fromCharCode(s.charCodeAt(0)+43);else if(s==="U")l="\0";else if(s==="V")l="@";else if(s==="W")l="`";else if(s==="X"||s==="Y"||s==="Z")l="";else throw new H;break;case"/":if(s>="A"&&s<="O")l=String.fromCharCode(s.charCodeAt(0)-32);else if(s==="Z")l=":";else throw new H;break}i+=l,o++}else i+=a}return i},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",e.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],e.ASTERISK_ENCODING=148,e}(ut),EE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),AE=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},cd=function(t){EE(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.narrowLineWidth=-1,n}return e.prototype.decodeRow=function(n,r,i){var o,a,s=this.decodeStart(r),l=this.decodeEnd(r),c=new Ae;e.decodeMiddle(r,s[1],l[0],c);var u=c.toString(),d=null;i!=null&&(d=i.get(Fe.ALLOWED_LENGTHS)),d==null&&(d=e.DEFAULT_ALLOWED_LENGTHS);var f=u.length,h=!1,p=0;try{for(var g=AE(d),b=g.next();!b.done;b=g.next()){var m=b.value;if(f===m){h=!0;break}m>p&&(p=m)}}catch(y){o={error:y}}finally{try{b&&!b.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}if(!h&&f>p&&(h=!0),!h)throw new H;var v=[new Y(s[1],n),new Y(l[0],n)],w=new Ot(u,null,0,v,Q.ITF,new Date().getTime());return w},e.decodeMiddle=function(n,r,i,o){var a=new Int32Array(10),s=new Int32Array(5),l=new Int32Array(5);for(a.fill(0),s.fill(0),l.fill(0);r<i;){ut.recordPattern(n,r,a);for(var c=0;c<5;c++){var u=2*c;s[c]=a[u],l[c]=a[u+1]}var d=e.decodeDigit(s);o.append(d.toString()),d=this.decodeDigit(l),o.append(d.toString()),a.forEach(function(f){r+=f})}},e.prototype.decodeStart=function(n){var r=e.skipWhiteSpace(n),i=e.findGuardPattern(n,r,e.START_PATTERN);return this.narrowLineWidth=(i[1]-i[0])/4,this.validateQuietZone(n,i[0]),i},e.prototype.validateQuietZone=function(n,r){var i=this.narrowLineWidth*10;i=i<r?i:r;for(var o=r-1;i>0&&o>=0&&!n.get(o);o--)i--;if(i!==0)throw new M},e.skipWhiteSpace=function(n){var r=n.getSize(),i=n.getNextSet(0);if(i===r)throw new M;return i},e.prototype.decodeEnd=function(n){n.reverse();try{var r=e.skipWhiteSpace(n),i=void 0;try{i=e.findGuardPattern(n,r,e.END_PATTERN_REVERSED[0])}catch(a){a instanceof M&&(i=e.findGuardPattern(n,r,e.END_PATTERN_REVERSED[1]))}this.validateQuietZone(n,i[0]);var o=i[0];return i[0]=n.getSize()-i[1],i[1]=n.getSize()-o,i}finally{n.reverse()}},e.findGuardPattern=function(n,r,i){var o=i.length,a=new Int32Array(o),s=n.getSize(),l=!1,c=0,u=r;a.fill(0);for(var d=r;d<s;d++)if(n.get(d)!==l)a[c]++;else{if(c===o-1){if(ut.patternMatchVariance(a,i,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return[u,d];u+=a[0]+a[1],Se.arraycopy(a,2,a,0,c-1),a[c-1]=0,a[c]=0,c--}else c++;a[c]=1,l=!l}throw new M},e.decodeDigit=function(n){for(var r=e.MAX_AVG_VARIANCE,i=-1,o=e.PATTERNS.length,a=0;a<o;a++){var s=e.PATTERNS[a],l=ut.patternMatchVariance(n,s,e.MAX_INDIVIDUAL_VARIANCE);l<r?(r=l,i=a):l===r&&(i=-1)}if(i>=0)return i%10;throw new M},e.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],e.MAX_AVG_VARIANCE=.38,e.MAX_INDIVIDUAL_VARIANCE=.5,e.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],e.START_PATTERN=Int32Array.from([1,1,1,1]),e.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],e}(ut),kE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ii=function(t){kE(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.decodeRowStringBuffer="",n}return e.findStartGuardPattern=function(n){for(var r=!1,i,o=0,a=Int32Array.from([0,0,0]);!r;){a=Int32Array.from([0,0,0]),i=e.findGuardPattern(n,o,!1,this.START_END_PATTERN,a);var s=i[0];o=i[1];var l=s-(o-s);l>=0&&(r=n.isRange(l,s,!1))}return i},e.checkChecksum=function(n){return e.checkStandardUPCEANChecksum(n)},e.checkStandardUPCEANChecksum=function(n){var r=n.length;if(r===0)return!1;var i=parseInt(n.charAt(r-1),10);return e.getStandardUPCEANChecksum(n.substring(0,r-1))===i},e.getStandardUPCEANChecksum=function(n){for(var r=n.length,i=0,o=r-1;o>=0;o-=2){var a=n.charAt(o).charCodeAt(0)-"0".charCodeAt(0);if(a<0||a>9)throw new H;i+=a}i*=3;for(var o=r-2;o>=0;o-=2){var a=n.charAt(o).charCodeAt(0)-"0".charCodeAt(0);if(a<0||a>9)throw new H;i+=a}return(1e3-i)%10},e.decodeEnd=function(n,r){return e.findGuardPattern(n,r,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e.findGuardPatternWithoutCounters=function(n,r,i,o){return this.findGuardPattern(n,r,i,o,new Int32Array(o.length))},e.findGuardPattern=function(n,r,i,o,a){var s=n.getSize();r=i?n.getNextUnset(r):n.getNextSet(r);for(var l=0,c=r,u=o.length,d=i,f=r;f<s;f++)if(n.get(f)!==d)a[l]++;else{if(l===u-1){if(ut.patternMatchVariance(a,o,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return Int32Array.from([c,f]);c+=a[0]+a[1];for(var h=a.slice(2,a.length-1),p=0;p<l-1;p++)a[p]=h[p];a[l-1]=0,a[l]=0,l--}else l++;a[l]=1,d=!d}throw new M},e.decodeDigit=function(n,r,i,o){this.recordPattern(n,i,r);for(var a=this.MAX_AVG_VARIANCE,s=-1,l=o.length,c=0;c<l;c++){var u=o[c],d=ut.patternMatchVariance(r,u,e.MAX_INDIVIDUAL_VARIANCE);d<a&&(a=d,s=c)}if(s>=0)return s;throw new M},e.MAX_AVG_VARIANCE=.48,e.MAX_INDIVIDUAL_VARIANCE=.7,e.START_END_PATTERN=Int32Array.from([1,1,1]),e.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),e.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],e}(ut),CE=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},SE=function(){function t(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return t.prototype.decodeRow=function(e,n,r){var i=this.decodeRowStringBuffer,o=this.decodeMiddle(n,r,i),a=i.toString(),s=t.parseExtensionString(a),l=[new Y((r[0]+r[1])/2,e),new Y(o,e)],c=new Ot(a,null,0,l,Q.UPC_EAN_EXTENSION,new Date().getTime());return s!=null&&c.putAllMetadata(s),c},t.prototype.decodeMiddle=function(e,n,r){var i,o,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=e.getSize(),l=n[1],c=0,u=0;u<5&&l<s;u++){var d=ii.decodeDigit(e,a,l,ii.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+d%10);try{for(var f=(i=void 0,CE(a)),h=f.next();!h.done;h=f.next()){var p=h.value;l+=p}}catch(b){i={error:b}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}d>=10&&(c|=1<<4-u),u!==4&&(l=e.getNextSet(l),l=e.getNextUnset(l))}if(r.length!==5)throw new M;var g=this.determineCheckDigit(c);if(t.extensionChecksum(r.toString())!==g)throw new M;return l},t.extensionChecksum=function(e){for(var n=e.length,r=0,i=n-2;i>=0;i-=2)r+=e.charAt(i).charCodeAt(0)-"0".charCodeAt(0);r*=3;for(var i=n-1;i>=0;i-=2)r+=e.charAt(i).charCodeAt(0)-"0".charCodeAt(0);return r*=3,r%10},t.prototype.determineCheckDigit=function(e){for(var n=0;n<10;n++)if(e===this.CHECK_DIGIT_ENCODINGS[n])return n;throw new M},t.parseExtensionString=function(e){if(e.length!==5)return null;var n=t.parseExtension5String(e);return n==null?null:new Map([[ct.SUGGESTED_PRICE,n]])},t.parseExtension5String=function(e){var n;switch(e.charAt(0)){case"0":n="£";break;case"5":n="$";break;case"9":switch(e){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}n="";break;default:n="";break}var r=parseInt(e.substring(1)),i=(r/100).toString(),o=r%100,a=o<10?"0"+o:o.toString();return n+i+"."+a},t}(),IE=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},TE=function(){function t(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return t.prototype.decodeRow=function(e,n,r){var i=this.decodeRowStringBuffer,o=this.decodeMiddle(n,r,i),a=i.toString(),s=t.parseExtensionString(a),l=[new Y((r[0]+r[1])/2,e),new Y(o,e)],c=new Ot(a,null,0,l,Q.UPC_EAN_EXTENSION,new Date().getTime());return s!=null&&c.putAllMetadata(s),c},t.prototype.decodeMiddle=function(e,n,r){var i,o,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=e.getSize(),l=n[1],c=0,u=0;u<2&&l<s;u++){var d=ii.decodeDigit(e,a,l,ii.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+d%10);try{for(var f=(i=void 0,IE(a)),h=f.next();!h.done;h=f.next()){var p=h.value;l+=p}}catch(g){i={error:g}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}d>=10&&(c|=1<<1-u),u!==1&&(l=e.getNextSet(l),l=e.getNextUnset(l))}if(r.length!==2)throw new M;if(parseInt(r.toString())%4!==c)throw new M;return l},t.parseExtensionString=function(e){return e.length!==2?null:new Map([[ct.ISSUE_NUMBER,parseInt(e)]])},t}(),OE=function(){function t(){}return t.decodeRow=function(e,n,r){var i=ii.findGuardPattern(n,r,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{var o=new SE;return o.decodeRow(e,n,i)}catch{var a=new TE;return a.decodeRow(e,n,i)}},t.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),t}(),DE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ze=function(t){DE(e,t);function e(){var n=t.call(this)||this;n.decodeRowStringBuffer="",e.L_AND_G_PATTERNS=e.L_PATTERNS.map(function(s){return Int32Array.from(s)});for(var r=10;r<20;r++){for(var i=e.L_PATTERNS[r-10],o=new Int32Array(i.length),a=0;a<i.length;a++)o[a]=i[i.length-a-1];e.L_AND_G_PATTERNS[r]=o}return n}return e.prototype.decodeRow=function(n,r,i){var o=e.findStartGuardPattern(r),a=i==null?null:i.get(Fe.NEED_RESULT_POINT_CALLBACK);if(a!=null){var s=new Y((o[0]+o[1])/2,n);a.foundPossibleResultPoint(s)}var l=this.decodeMiddle(r,o,this.decodeRowStringBuffer),c=l.rowOffset,u=l.resultString;if(a!=null){var d=new Y(c,n);a.foundPossibleResultPoint(d)}var f=e.decodeEnd(r,c);if(a!=null){var h=new Y((f[0]+f[1])/2,n);a.foundPossibleResultPoint(h)}var p=f[1],g=p+(p-f[0]);if(g>=r.getSize()||!r.isRange(p,g,!1))throw new M;var b=u.toString();if(b.length<8)throw new H;if(!e.checkChecksum(b))throw new lt;var m=(o[1]+o[0])/2,v=(f[1]+f[0])/2,w=this.getBarcodeFormat(),y=[new Y(m,n),new Y(v,n)],C=new Ot(b,null,0,y,w,new Date().getTime()),E=0;try{var k=OE.decodeRow(n,r,f[1]);C.putMetadata(ct.UPC_EAN_EXTENSION,k.getText()),C.putAllMetadata(k.getResultMetadata()),C.addResultPoints(k.getResultPoints()),E=k.getText().length}catch{}var N=i==null?null:i.get(Fe.ALLOWED_EAN_EXTENSIONS);if(N!=null){var D=!1;for(var O in N)if(E.toString()===O){D=!0;break}if(!D)throw new M}return w===Q.EAN_13||Q.UPC_A,C},e.checkChecksum=function(n){return e.checkStandardUPCEANChecksum(n)},e.checkStandardUPCEANChecksum=function(n){var r=n.length;if(r===0)return!1;var i=parseInt(n.charAt(r-1),10);return e.getStandardUPCEANChecksum(n.substring(0,r-1))===i},e.getStandardUPCEANChecksum=function(n){for(var r=n.length,i=0,o=r-1;o>=0;o-=2){var a=n.charAt(o).charCodeAt(0)-"0".charCodeAt(0);if(a<0||a>9)throw new H;i+=a}i*=3;for(var o=r-2;o>=0;o-=2){var a=n.charAt(o).charCodeAt(0)-"0".charCodeAt(0);if(a<0||a>9)throw new H;i+=a}return(1e3-i)%10},e.decodeEnd=function(n,r){return e.findGuardPattern(n,r,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e}(ii),NE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ud=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},tl=function(t){NE(e,t);function e(){var n=t.call(this)||this;return n.decodeMiddleCounters=Int32Array.from([0,0,0,0]),n}return e.prototype.decodeMiddle=function(n,r,i){var o,a,s,l,c=this.decodeMiddleCounters;c[0]=0,c[1]=0,c[2]=0,c[3]=0;for(var u=n.getSize(),d=r[1],f=0,h=0;h<6&&d<u;h++){var p=Ze.decodeDigit(n,c,d,Ze.L_AND_G_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+p%10);try{for(var g=(o=void 0,ud(c)),b=g.next();!b.done;b=g.next()){var m=b.value;d+=m}}catch(C){o={error:C}}finally{try{b&&!b.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}p>=10&&(f|=1<<5-h)}i=e.determineFirstDigit(i,f);var v=Ze.findGuardPattern(n,d,!0,Ze.MIDDLE_PATTERN,new Int32Array(Ze.MIDDLE_PATTERN.length).fill(0));d=v[1];for(var h=0;h<6&&d<u;h++){var p=Ze.decodeDigit(n,c,d,Ze.L_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+p);try{for(var w=(s=void 0,ud(c)),y=w.next();!y.done;y=w.next()){var m=y.value;d+=m}}catch(k){s={error:k}}finally{try{y&&!y.done&&(l=w.return)&&l.call(w)}finally{if(s)throw s.error}}}return{rowOffset:d,resultString:i}},e.prototype.getBarcodeFormat=function(){return Q.EAN_13},e.determineFirstDigit=function(n,r){for(var i=0;i<10;i++)if(r===this.FIRST_DIGIT_ENCODINGS[i])return n=String.fromCharCode("0".charCodeAt(0)+i)+n,n;throw new M},e.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],e}(Ze),PE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),dd=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},fd=function(t){PE(e,t);function e(){var n=t.call(this)||this;return n.decodeMiddleCounters=Int32Array.from([0,0,0,0]),n}return e.prototype.decodeMiddle=function(n,r,i){var o,a,s,l,c=this.decodeMiddleCounters;c[0]=0,c[1]=0,c[2]=0,c[3]=0;for(var u=n.getSize(),d=r[1],f=0;f<4&&d<u;f++){var h=Ze.decodeDigit(n,c,d,Ze.L_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+h);try{for(var p=(o=void 0,dd(c)),g=p.next();!g.done;g=p.next()){var b=g.value;d+=b}}catch(y){o={error:y}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}var m=Ze.findGuardPattern(n,d,!0,Ze.MIDDLE_PATTERN,new Int32Array(Ze.MIDDLE_PATTERN.length).fill(0));d=m[1];for(var f=0;f<4&&d<u;f++){var h=Ze.decodeDigit(n,c,d,Ze.L_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+h);try{for(var v=(s=void 0,dd(c)),w=v.next();!w.done;w=v.next()){var b=w.value;d+=b}}catch(E){s={error:E}}finally{try{w&&!w.done&&(l=v.return)&&l.call(v)}finally{if(s)throw s.error}}}return{rowOffset:d,resultString:i}},e.prototype.getBarcodeFormat=function(){return Q.EAN_8},e}(Ze),RE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),hd=function(t){RE(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ean13Reader=new tl,n}return e.prototype.getBarcodeFormat=function(){return Q.UPC_A},e.prototype.decode=function(n,r){return this.maybeReturnResult(this.ean13Reader.decode(n))},e.prototype.decodeRow=function(n,r,i){return this.maybeReturnResult(this.ean13Reader.decodeRow(n,r,i))},e.prototype.decodeMiddle=function(n,r,i){return this.ean13Reader.decodeMiddle(n,r,i)},e.prototype.maybeReturnResult=function(n){var r=n.getText();if(r.charAt(0)==="0"){var i=new Ot(r.substring(1),null,null,n.getResultPoints(),Q.UPC_A);return n.getResultMetadata()!=null&&i.putAllMetadata(n.getResultMetadata()),i}else throw new M},e.prototype.reset=function(){this.ean13Reader.reset()},e}(Ze),ME=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),LE=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},pd=function(t){ME(e,t);function e(){var n=t.call(this)||this;return n.decodeMiddleCounters=new Int32Array(4),n}return e.prototype.decodeMiddle=function(n,r,i){var o,a,s=this.decodeMiddleCounters.map(function(b){return b});s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var l=n.getSize(),c=r[1],u=0,d=0;d<6&&c<l;d++){var f=e.decodeDigit(n,s,c,e.L_AND_G_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+f%10);try{for(var h=(o=void 0,LE(s)),p=h.next();!p.done;p=h.next()){var g=p.value;c+=g}}catch(b){o={error:b}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}f>=10&&(u|=1<<5-d)}return e.determineNumSysAndCheckDigit(new Ae(i),u),c},e.prototype.decodeEnd=function(n,r){return e.findGuardPatternWithoutCounters(n,r,!0,e.MIDDLE_END_PATTERN)},e.prototype.checkChecksum=function(n){return Ze.checkChecksum(e.convertUPCEtoUPCA(n))},e.determineNumSysAndCheckDigit=function(n,r){for(var i=0;i<=1;i++)for(var o=0;o<10;o++)if(r===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[i][o]){n.insert(0,"0"+i),n.append("0"+o);return}throw M.getNotFoundInstance()},e.prototype.getBarcodeFormat=function(){return Q.UPC_E},e.convertUPCEtoUPCA=function(n){var r=n.slice(1,7).split("").map(function(a){return a.charCodeAt(0)}),i=new Ae;i.append(n.charAt(0));var o=r[5];switch(o){case 0:case 1:case 2:i.appendChars(r,0,2),i.append(o),i.append("0000"),i.appendChars(r,2,3);break;case 3:i.appendChars(r,0,3),i.append("00000"),i.appendChars(r,3,2);break;case 4:i.appendChars(r,0,4),i.append("00000"),i.append(r[4]);break;default:i.appendChars(r,0,5),i.append("0000"),i.append(o);break}return n.length>=8&&i.append(n.charAt(7)),i.toString()},e.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],e}(Ze),FE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),gd=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ns=function(t){FE(e,t);function e(n){var r=t.call(this)||this,i=n==null?null:n.get(Fe.POSSIBLE_FORMATS),o=[];return i!=null&&(i.indexOf(Q.EAN_13)>-1&&o.push(new tl),i.indexOf(Q.UPC_A)>-1&&o.push(new hd),i.indexOf(Q.EAN_8)>-1&&o.push(new fd),i.indexOf(Q.UPC_E)>-1&&o.push(new pd)),o.length===0&&(o.push(new tl),o.push(new hd),o.push(new fd),o.push(new pd)),r.readers=o,r}return e.prototype.decodeRow=function(n,r,i){var o,a;try{for(var s=gd(this.readers),l=s.next();!l.done;l=s.next()){var c=l.value;try{var u=c.decodeRow(n,r,i),d=u.getBarcodeFormat()===Q.EAN_13&&u.getText().charAt(0)==="0",f=i==null?null:i.get(Fe.POSSIBLE_FORMATS),h=f==null||f.includes(Q.UPC_A);if(d&&h){var p=u.getRawBytes(),g=new Ot(u.getText().substring(1),p,p?p.length:null,u.getResultPoints(),Q.UPC_A);return g.putAllMetadata(u.getResultMetadata()),g}return u}catch{}}}catch(b){o={error:b}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}throw new M},e.prototype.reset=function(){var n,r;try{for(var i=gd(this.readers),o=i.next();!o.done;o=i.next()){var a=o.value;a.reset()}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(ut),BE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$E=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},fr=function(t){BE(e,t);function e(){var n=t.call(this)||this;return n.decodeFinderCounters=new Int32Array(4),n.dataCharacterCounters=new Int32Array(8),n.oddRoundingErrors=new Array(4),n.evenRoundingErrors=new Array(4),n.oddCounts=new Array(n.dataCharacterCounters.length/2),n.evenCounts=new Array(n.dataCharacterCounters.length/2),n}return e.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},e.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},e.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},e.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},e.prototype.getOddCounts=function(){return this.oddCounts},e.prototype.getEvenCounts=function(){return this.evenCounts},e.prototype.parseFinderValue=function(n,r){for(var i=0;i<r.length;i++)if(ut.patternMatchVariance(n,r[i],e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return i;throw new M},e.count=function(n){return pe.sum(new Int32Array(n))},e.increment=function(n,r){for(var i=0,o=r[0],a=1;a<n.length;a++)r[a]>o&&(o=r[a],i=a);n[i]++},e.decrement=function(n,r){for(var i=0,o=r[0],a=1;a<n.length;a++)r[a]<o&&(o=r[a],i=a);n[i]--},e.isFinderPattern=function(n){var r,i,o=n[0]+n[1],a=o+n[2]+n[3],s=o/a;if(s>=e.MIN_FINDER_PATTERN_RATIO&&s<=e.MAX_FINDER_PATTERN_RATIO){var l=Number.MAX_SAFE_INTEGER,c=Number.MIN_SAFE_INTEGER;try{for(var u=$E(n),d=u.next();!d.done;d=u.next()){var f=d.value;f>c&&(c=f),f<l&&(l=f)}}catch(h){r={error:h}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return c<10*l}return!1},e.MAX_AVG_VARIANCE=.2,e.MAX_INDIVIDUAL_VARIANCE=.45,e.MIN_FINDER_PATTERN_RATIO=9.5/12,e.MAX_FINDER_PATTERN_RATIO=12.5/14,e}(ut),ea=function(){function t(e,n){this.value=e,this.checksumPortion=n}return t.prototype.getValue=function(){return this.value},t.prototype.getChecksumPortion=function(){return this.checksumPortion},t.prototype.toString=function(){return this.value+"("+this.checksumPortion+")"},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.value===n.value&&this.checksumPortion===n.checksumPortion},t.prototype.hashCode=function(){return this.value^this.checksumPortion},t}(),sp=function(){function t(e,n,r,i,o){this.value=e,this.startEnd=n,this.value=e,this.startEnd=n,this.resultPoints=new Array,this.resultPoints.push(new Y(r,o)),this.resultPoints.push(new Y(i,o))}return t.prototype.getValue=function(){return this.value},t.prototype.getStartEnd=function(){return this.startEnd},t.prototype.getResultPoints=function(){return this.resultPoints},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.value===n.value},t.prototype.hashCode=function(){return this.value},t}(),VE=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Kr=function(){function t(){}return t.getRSSvalue=function(e,n,r){var i,o,a=0;try{for(var s=VE(e),l=s.next();!l.done;l=s.next()){var c=l.value;a+=c}}catch(v){i={error:v}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}for(var u=0,d=0,f=e.length,h=0;h<f-1;h++){var p=void 0;for(p=1,d|=1<<h;p<e[h];p++,d&=~(1<<h)){var g=t.combins(a-p-1,f-h-2);if(r&&d===0&&a-p-(f-h-1)>=f-h-1&&(g-=t.combins(a-p-(f-h),f-h-2)),f-h-1>1){for(var b=0,m=a-p-(f-h-2);m>n;m--)b+=t.combins(a-p-m-1,f-h-3);g-=b*(f-1-h)}else a-p>n&&g--;u+=g}a-=p}return u},t.combins=function(e,n){var r,i;e-n>n?(i=n,r=e-n):(i=e-n,r=n);for(var o=1,a=1,s=e;s>r;s--)o*=s,a<=i&&(o/=a,a++);for(;a<=i;)o/=a,a++;return o},t}(),UE=function(){function t(){}return t.buildBitArray=function(e){var n=e.length*2-1;e[e.length-1].getRightChar()==null&&(n-=1);for(var r=12*n,i=new it(r),o=0,a=e[0],s=a.getRightChar().getValue(),l=11;l>=0;--l)s&1<<l&&i.set(o),o++;for(var l=1;l<e.length;++l){for(var c=e[l],u=c.getLeftChar().getValue(),d=11;d>=0;--d)u&1<<d&&i.set(o),o++;if(c.getRightChar()!=null)for(var f=c.getRightChar().getValue(),d=11;d>=0;--d)f&1<<d&&i.set(o),o++}return i},t}(),cr=function(){function t(e,n){n?this.decodedInformation=null:(this.finished=e,this.decodedInformation=n)}return t.prototype.getDecodedInformation=function(){return this.decodedInformation},t.prototype.isFinished=function(){return this.finished},t}(),hc=function(){function t(e){this.newPosition=e}return t.prototype.getNewPosition=function(){return this.newPosition},t}(),HE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),en=function(t){HE(e,t);function e(n,r){var i=t.call(this,n)||this;return i.value=r,i}return e.prototype.getValue=function(){return this.value},e.prototype.isFNC1=function(){return this.value===e.FNC1},e.FNC1="$",e}(hc),zE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ur=function(t){zE(e,t);function e(n,r,i){var o=t.call(this,n)||this;return i?(o.remaining=!0,o.remainingValue=o.remainingValue):(o.remaining=!1,o.remainingValue=0),o.newString=r,o}return e.prototype.getNewString=function(){return this.newString},e.prototype.isRemaining=function(){return this.remaining},e.prototype.getRemainingValue=function(){return this.remainingValue},e}(hc),WE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zr=function(t){WE(e,t);function e(n,r,i){var o=t.call(this,n)||this;if(r<0||r>10||i<0||i>10)throw new H;return o.firstDigit=r,o.secondDigit=i,o}return e.prototype.getFirstDigit=function(){return this.firstDigit},e.prototype.getSecondDigit=function(){return this.secondDigit},e.prototype.getValue=function(){return this.firstDigit*10+this.secondDigit},e.prototype.isFirstDigitFNC1=function(){return this.firstDigit===e.FNC1},e.prototype.isSecondDigitFNC1=function(){return this.secondDigit===e.FNC1},e.prototype.isAnyFNC1=function(){return this.firstDigit===e.FNC1||this.secondDigit===e.FNC1},e.FNC1=10,e}(hc),wo=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},GE=function(){function t(){}return t.parseFieldsInGeneralPurpose=function(e){var n,r,i,o,a,s,l,c;if(!e)return null;if(e.length<2)throw new M;var u=e.substring(0,2);try{for(var d=wo(t.TWO_DIGIT_DATA_LENGTH),f=d.next();!f.done;f=d.next()){var h=f.value;if(h[0]===u)return h[1]===t.VARIABLE_LENGTH?t.processVariableAI(2,h[2],e):t.processFixedAI(2,h[1],e)}}catch(E){n={error:E}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}if(e.length<3)throw new M;var p=e.substring(0,3);try{for(var g=wo(t.THREE_DIGIT_DATA_LENGTH),b=g.next();!b.done;b=g.next()){var h=b.value;if(h[0]===p)return h[1]===t.VARIABLE_LENGTH?t.processVariableAI(3,h[2],e):t.processFixedAI(3,h[1],e)}}catch(E){i={error:E}}finally{try{b&&!b.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var m=wo(t.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),v=m.next();!v.done;v=m.next()){var h=v.value;if(h[0]===p)return h[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,h[2],e):t.processFixedAI(4,h[1],e)}}catch(E){a={error:E}}finally{try{v&&!v.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}if(e.length<4)throw new M;var w=e.substring(0,4);try{for(var y=wo(t.FOUR_DIGIT_DATA_LENGTH),C=y.next();!C.done;C=y.next()){var h=C.value;if(h[0]===w)return h[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,h[2],e):t.processFixedAI(4,h[1],e)}}catch(E){l={error:E}}finally{try{C&&!C.done&&(c=y.return)&&c.call(y)}finally{if(l)throw l.error}}throw new M},t.processFixedAI=function(e,n,r){if(r.length<e)throw new M;var i=r.substring(0,e);if(r.length<e+n)throw new M;var o=r.substring(e,e+n),a=r.substring(e+n),s="("+i+")"+o,l=t.parseFieldsInGeneralPurpose(a);return l==null?s:s+l},t.processVariableAI=function(e,n,r){var i=r.substring(0,e),o;r.length<e+n?o=r.length:o=e+n;var a=r.substring(e,o),s=r.substring(o),l="("+i+")"+a,c=t.parseFieldsInGeneralPurpose(s);return c==null?l:l+c},t.VARIABLE_LENGTH=[],t.TWO_DIGIT_DATA_LENGTH=[["00",18],["01",14],["02",14],["10",t.VARIABLE_LENGTH,20],["11",6],["12",6],["13",6],["15",6],["17",6],["20",2],["21",t.VARIABLE_LENGTH,20],["22",t.VARIABLE_LENGTH,29],["30",t.VARIABLE_LENGTH,8],["37",t.VARIABLE_LENGTH,8],["90",t.VARIABLE_LENGTH,30],["91",t.VARIABLE_LENGTH,30],["92",t.VARIABLE_LENGTH,30],["93",t.VARIABLE_LENGTH,30],["94",t.VARIABLE_LENGTH,30],["95",t.VARIABLE_LENGTH,30],["96",t.VARIABLE_LENGTH,30],["97",t.VARIABLE_LENGTH,3],["98",t.VARIABLE_LENGTH,30],["99",t.VARIABLE_LENGTH,30]],t.THREE_DIGIT_DATA_LENGTH=[["240",t.VARIABLE_LENGTH,30],["241",t.VARIABLE_LENGTH,30],["242",t.VARIABLE_LENGTH,6],["250",t.VARIABLE_LENGTH,30],["251",t.VARIABLE_LENGTH,30],["253",t.VARIABLE_LENGTH,17],["254",t.VARIABLE_LENGTH,20],["400",t.VARIABLE_LENGTH,30],["401",t.VARIABLE_LENGTH,30],["402",17],["403",t.VARIABLE_LENGTH,30],["410",13],["411",13],["412",13],["413",13],["414",13],["420",t.VARIABLE_LENGTH,20],["421",t.VARIABLE_LENGTH,15],["422",3],["423",t.VARIABLE_LENGTH,15],["424",3],["425",3],["426",3]],t.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH=[["310",6],["311",6],["312",6],["313",6],["314",6],["315",6],["316",6],["320",6],["321",6],["322",6],["323",6],["324",6],["325",6],["326",6],["327",6],["328",6],["329",6],["330",6],["331",6],["332",6],["333",6],["334",6],["335",6],["336",6],["340",6],["341",6],["342",6],["343",6],["344",6],["345",6],["346",6],["347",6],["348",6],["349",6],["350",6],["351",6],["352",6],["353",6],["354",6],["355",6],["356",6],["357",6],["360",6],["361",6],["362",6],["363",6],["364",6],["365",6],["366",6],["367",6],["368",6],["369",6],["390",t.VARIABLE_LENGTH,15],["391",t.VARIABLE_LENGTH,18],["392",t.VARIABLE_LENGTH,15],["393",t.VARIABLE_LENGTH,18],["703",t.VARIABLE_LENGTH,30]],t.FOUR_DIGIT_DATA_LENGTH=[["7001",13],["7002",t.VARIABLE_LENGTH,30],["7003",10],["8001",14],["8002",t.VARIABLE_LENGTH,20],["8003",t.VARIABLE_LENGTH,30],["8004",t.VARIABLE_LENGTH,30],["8005",6],["8006",18],["8007",t.VARIABLE_LENGTH,30],["8008",t.VARIABLE_LENGTH,12],["8018",18],["8020",t.VARIABLE_LENGTH,25],["8100",6],["8101",10],["8102",2],["8110",t.VARIABLE_LENGTH,70],["8200",t.VARIABLE_LENGTH,70]],t}(),Mo=function(){function t(e){this.buffer=new Ae,this.information=e}return t.prototype.decodeAllCodes=function(e,n){var r=n,i=null;do{var o=this.decodeGeneralPurposeField(r,i),a=GE.parseFieldsInGeneralPurpose(o.getNewString());if(a!=null&&e.append(a),o.isRemaining()?i=""+o.getRemainingValue():i=null,r===o.getNewPosition())break;r=o.getNewPosition()}while(!0);return e.toString()},t.prototype.isStillNumeric=function(e){if(e+7>this.information.getSize())return e+4<=this.information.getSize();for(var n=e;n<e+3;++n)if(this.information.get(n))return!0;return this.information.get(e+3)},t.prototype.decodeNumeric=function(e){if(e+7>this.information.getSize()){var n=this.extractNumericValueFromBitArray(e,4);return n===0?new zr(this.information.getSize(),zr.FNC1,zr.FNC1):new zr(this.information.getSize(),n-1,zr.FNC1)}var r=this.extractNumericValueFromBitArray(e,7),i=(r-8)/11,o=(r-8)%11;return new zr(e+7,i,o)},t.prototype.extractNumericValueFromBitArray=function(e,n){return t.extractNumericValueFromBitArray(this.information,e,n)},t.extractNumericValueFromBitArray=function(e,n,r){for(var i=0,o=0;o<r;++o)e.get(n+o)&&(i|=1<<r-o-1);return i},t.prototype.decodeGeneralPurposeField=function(e,n){this.buffer.setLengthToZero(),n!=null&&this.buffer.append(n),this.current.setPosition(e);var r=this.parseBlocks();return r!=null&&r.isRemaining()?new ur(this.current.getPosition(),this.buffer.toString(),r.getRemainingValue()):new ur(this.current.getPosition(),this.buffer.toString())},t.prototype.parseBlocks=function(){var e,n;do{var r=this.current.getPosition();this.current.isAlpha()?(n=this.parseAlphaBlock(),e=n.isFinished()):this.current.isIsoIec646()?(n=this.parseIsoIec646Block(),e=n.isFinished()):(n=this.parseNumericBlock(),e=n.isFinished());var i=r!==this.current.getPosition();if(!i&&!e)break}while(!e);return n.getDecodedInformation()},t.prototype.parseNumericBlock=function(){for(;this.isStillNumeric(this.current.getPosition());){var e=this.decodeNumeric(this.current.getPosition());if(this.current.setPosition(e.getNewPosition()),e.isFirstDigitFNC1()){var n=void 0;return e.isSecondDigitFNC1()?n=new ur(this.current.getPosition(),this.buffer.toString()):n=new ur(this.current.getPosition(),this.buffer.toString(),e.getSecondDigit()),new cr(!0,n)}if(this.buffer.append(e.getFirstDigit()),e.isSecondDigitFNC1()){var n=new ur(this.current.getPosition(),this.buffer.toString());return new cr(!0,n)}this.buffer.append(e.getSecondDigit())}return this.isNumericToAlphaNumericLatch(this.current.getPosition())&&(this.current.setAlpha(),this.current.incrementPosition(4)),new cr(!1)},t.prototype.parseIsoIec646Block=function(){for(;this.isStillIsoIec646(this.current.getPosition());){var e=this.decodeIsoIec646(this.current.getPosition());if(this.current.setPosition(e.getNewPosition()),e.isFNC1()){var n=new ur(this.current.getPosition(),this.buffer.toString());return new cr(!0,n)}this.buffer.append(e.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setAlpha()),new cr(!1)},t.prototype.parseAlphaBlock=function(){for(;this.isStillAlpha(this.current.getPosition());){var e=this.decodeAlphanumeric(this.current.getPosition());if(this.current.setPosition(e.getNewPosition()),e.isFNC1()){var n=new ur(this.current.getPosition(),this.buffer.toString());return new cr(!0,n)}this.buffer.append(e.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setIsoIec646()),new cr(!1)},t.prototype.isStillIsoIec646=function(e){if(e+5>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(e,5);if(n>=5&&n<16)return!0;if(e+7>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(e,7);if(r>=64&&r<116)return!0;if(e+8>this.information.getSize())return!1;var i=this.extractNumericValueFromBitArray(e,8);return i>=232&&i<253},t.prototype.decodeIsoIec646=function(e){var n=this.extractNumericValueFromBitArray(e,5);if(n===15)return new en(e+5,en.FNC1);if(n>=5&&n<15)return new en(e+5,"0"+(n-5));var r=this.extractNumericValueFromBitArray(e,7);if(r>=64&&r<90)return new en(e+7,""+(r+1));if(r>=90&&r<116)return new en(e+7,""+(r+7));var i=this.extractNumericValueFromBitArray(e,8),o;switch(i){case 232:o="!";break;case 233:o='"';break;case 234:o="%";break;case 235:o="&";break;case 236:o="'";break;case 237:o="(";break;case 238:o=")";break;case 239:o="*";break;case 240:o="+";break;case 241:o=",";break;case 242:o="-";break;case 243:o=".";break;case 244:o="/";break;case 245:o=":";break;case 246:o=";";break;case 247:o="<";break;case 248:o="=";break;case 249:o=">";break;case 250:o="?";break;case 251:o="_";break;case 252:o=" ";break;default:throw new H}return new en(e+8,o)},t.prototype.isStillAlpha=function(e){if(e+5>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(e,5);if(n>=5&&n<16)return!0;if(e+6>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(e,6);return r>=16&&r<63},t.prototype.decodeAlphanumeric=function(e){var n=this.extractNumericValueFromBitArray(e,5);if(n===15)return new en(e+5,en.FNC1);if(n>=5&&n<15)return new en(e+5,"0"+(n-5));var r=this.extractNumericValueFromBitArray(e,6);if(r>=32&&r<58)return new en(e+6,""+(r+33));var i;switch(r){case 58:i="*";break;case 59:i=",";break;case 60:i="-";break;case 61:i=".";break;case 62:i="/";break;default:throw new to("Decoding invalid alphanumeric value: "+r)}return new en(e+6,i)},t.prototype.isAlphaTo646ToAlphaLatch=function(e){if(e+1>this.information.getSize())return!1;for(var n=0;n<5&&n+e<this.information.getSize();++n)if(n===2){if(!this.information.get(e+2))return!1}else if(this.information.get(e+n))return!1;return!0},t.prototype.isAlphaOr646ToNumericLatch=function(e){if(e+3>this.information.getSize())return!1;for(var n=e;n<e+3;++n)if(this.information.get(n))return!1;return!0},t.prototype.isNumericToAlphaNumericLatch=function(e){if(e+1>this.information.getSize())return!1;for(var n=0;n<4&&n+e<this.information.getSize();++n)if(this.information.get(e+n))return!1;return!0},t}(),lp=function(){function t(e){this.information=e,this.generalDecoder=new Mo(e)}return t.prototype.getInformation=function(){return this.information},t.prototype.getGeneralDecoder=function(){return this.generalDecoder},t}(),jE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),sn=function(t){jE(e,t);function e(n){return t.call(this,n)||this}return e.prototype.encodeCompressedGtin=function(n,r){n.append("(01)");var i=n.length();n.append("9"),this.encodeCompressedGtinWithoutAI(n,r,i)},e.prototype.encodeCompressedGtinWithoutAI=function(n,r,i){for(var o=0;o<4;++o){var a=this.getGeneralDecoder().extractNumericValueFromBitArray(r+10*o,10);a/100===0&&n.append("0"),a/10===0&&n.append("0"),n.append(a)}e.appendCheckDigit(n,i)},e.appendCheckDigit=function(n,r){for(var i=0,o=0;o<13;o++){var a=n.charAt(o+r).charCodeAt(0)-"0".charCodeAt(0);i+=o&1?a:3*a}i=10-i%10,i===10&&(i=0),n.append(i)},e.GTIN_SIZE=40,e}(lp),YE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),XE=function(t){YE(e,t);function e(n){return t.call(this,n)||this}return e.prototype.parseInformation=function(){var n=new Ae;n.append("(01)");var r=n.length(),i=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE,4);return n.append(i),this.encodeCompressedGtinWithoutAI(n,e.HEADER_SIZE+4,r),this.getGeneralDecoder().decodeAllCodes(n,e.HEADER_SIZE+44)},e.HEADER_SIZE=1+1+2,e}(sn),qE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),KE=function(t){qE(e,t);function e(n){return t.call(this,n)||this}return e.prototype.parseInformation=function(){var n=new Ae;return this.getGeneralDecoder().decodeAllCodes(n,e.HEADER_SIZE)},e.HEADER_SIZE=2+1+2,e}(lp),ZE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lo=function(t){ZE(e,t);function e(n){return t.call(this,n)||this}return e.prototype.encodeCompressedWeight=function(n,r,i){var o=this.getGeneralDecoder().extractNumericValueFromBitArray(r,i);this.addWeightCode(n,o);for(var a=this.checkWeight(o),s=1e5,l=0;l<5;++l)a/s===0&&n.append("0"),s/=10;n.append(a)},e}(sn),JE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),cp=function(t){JE(e,t);function e(n){return t.call(this,n)||this}return e.prototype.parseInformation=function(){if(this.getInformation().getSize()!=e.HEADER_SIZE+Lo.GTIN_SIZE+e.WEIGHT_SIZE)throw new M;var n=new Ae;return this.encodeCompressedGtin(n,e.HEADER_SIZE),this.encodeCompressedWeight(n,e.HEADER_SIZE+Lo.GTIN_SIZE,e.WEIGHT_SIZE),n.toString()},e.HEADER_SIZE=4+1,e.WEIGHT_SIZE=15,e}(Lo),QE=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),eA=function(t){QE(e,t);function e(n){return t.call(this,n)||this}return e.prototype.addWeightCode=function(n,r){n.append("(3103)")},e.prototype.checkWeight=function(n){return n},e}(cp),tA=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),nA=function(t){tA(e,t);function e(n){return t.call(this,n)||this}return e.prototype.addWeightCode=function(n,r){r<1e4?n.append("(3202)"):n.append("(3203)")},e.prototype.checkWeight=function(n){return n<1e4?n:n-1e4},e}(cp),rA=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),iA=function(t){rA(e,t);function e(n){return t.call(this,n)||this}return e.prototype.parseInformation=function(){if(this.getInformation().getSize()<e.HEADER_SIZE+sn.GTIN_SIZE)throw new M;var n=new Ae;this.encodeCompressedGtin(n,e.HEADER_SIZE);var r=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+sn.GTIN_SIZE,e.LAST_DIGIT_SIZE);n.append("(392"),n.append(r),n.append(")");var i=this.getGeneralDecoder().decodeGeneralPurposeField(e.HEADER_SIZE+sn.GTIN_SIZE+e.LAST_DIGIT_SIZE,null);return n.append(i.getNewString()),n.toString()},e.HEADER_SIZE=5+1+2,e.LAST_DIGIT_SIZE=2,e}(sn),oA=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),aA=function(t){oA(e,t);function e(n){return t.call(this,n)||this}return e.prototype.parseInformation=function(){if(this.getInformation().getSize()<e.HEADER_SIZE+sn.GTIN_SIZE)throw new M;var n=new Ae;this.encodeCompressedGtin(n,e.HEADER_SIZE);var r=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+sn.GTIN_SIZE,e.LAST_DIGIT_SIZE);n.append("(393"),n.append(r),n.append(")");var i=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+sn.GTIN_SIZE+e.LAST_DIGIT_SIZE,e.FIRST_THREE_DIGITS_SIZE);i/100==0&&n.append("0"),i/10==0&&n.append("0"),n.append(i);var o=this.getGeneralDecoder().decodeGeneralPurposeField(e.HEADER_SIZE+sn.GTIN_SIZE+e.LAST_DIGIT_SIZE+e.FIRST_THREE_DIGITS_SIZE,null);return n.append(o.getNewString()),n.toString()},e.HEADER_SIZE=5+1+2,e.LAST_DIGIT_SIZE=2,e.FIRST_THREE_DIGITS_SIZE=10,e}(sn),sA=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vn=function(t){sA(e,t);function e(n,r,i){var o=t.call(this,n)||this;return o.dateCode=i,o.firstAIdigits=r,o}return e.prototype.parseInformation=function(){if(this.getInformation().getSize()!=e.HEADER_SIZE+e.GTIN_SIZE+e.WEIGHT_SIZE+e.DATE_SIZE)throw new M;var n=new Ae;return this.encodeCompressedGtin(n,e.HEADER_SIZE),this.encodeCompressedWeight(n,e.HEADER_SIZE+e.GTIN_SIZE,e.WEIGHT_SIZE),this.encodeCompressedDate(n,e.HEADER_SIZE+e.GTIN_SIZE+e.WEIGHT_SIZE),n.toString()},e.prototype.encodeCompressedDate=function(n,r){var i=this.getGeneralDecoder().extractNumericValueFromBitArray(r,e.DATE_SIZE);if(i!=38400){n.append("("),n.append(this.dateCode),n.append(")");var o=i%32;i/=32;var a=i%12+1;i/=12;var s=i;s/10==0&&n.append("0"),n.append(s),a/10==0&&n.append("0"),n.append(a),o/10==0&&n.append("0"),n.append(o)}},e.prototype.addWeightCode=function(n,r){n.append("("),n.append(this.firstAIdigits),n.append(r/1e5),n.append(")")},e.prototype.checkWeight=function(n){return n%1e5},e.HEADER_SIZE=7+1,e.WEIGHT_SIZE=20,e.DATE_SIZE=16,e}(Lo);function lA(t){try{if(t.get(1))return new XE(t);if(!t.get(2))return new KE(t);var e=Mo.extractNumericValueFromBitArray(t,1,4);switch(e){case 4:return new eA(t);case 5:return new nA(t)}var n=Mo.extractNumericValueFromBitArray(t,1,5);switch(n){case 12:return new iA(t);case 13:return new aA(t)}var r=Mo.extractNumericValueFromBitArray(t,1,7);switch(r){case 56:return new Vn(t,"310","11");case 57:return new Vn(t,"320","11");case 58:return new Vn(t,"310","13");case 59:return new Vn(t,"320","13");case 60:return new Vn(t,"310","15");case 61:return new Vn(t,"320","15");case 62:return new Vn(t,"310","17");case 63:return new Vn(t,"320","17")}}catch(i){throw console.log(i),new to("unknown decoder: "+t)}}var md=function(){function t(e,n,r,i){this.leftchar=e,this.rightchar=n,this.finderpattern=r,this.maybeLast=i}return t.prototype.mayBeLast=function(){return this.maybeLast},t.prototype.getLeftChar=function(){return this.leftchar},t.prototype.getRightChar=function(){return this.rightchar},t.prototype.getFinderPattern=function(){return this.finderpattern},t.prototype.mustBeLast=function(){return this.rightchar==null},t.prototype.toString=function(){return"[ "+this.leftchar+", "+this.rightchar+" : "+(this.finderpattern==null?"null":this.finderpattern.getValue())+" ]"},t.equals=function(e,n){return e instanceof t?t.equalsOrNull(e.leftchar,n.leftchar)&&t.equalsOrNull(e.rightchar,n.rightchar)&&t.equalsOrNull(e.finderpattern,n.finderpattern):!1},t.equalsOrNull=function(e,n){return e===null?n===null:t.equals(e,n)},t.prototype.hashCode=function(){var e=this.leftchar.getValue()^this.rightchar.getValue()^this.finderpattern.getValue();return e},t}(),cA=function(){function t(e,n,r){this.pairs=e,this.rowNumber=n,this.wasReversed=r}return t.prototype.getPairs=function(){return this.pairs},t.prototype.getRowNumber=function(){return this.rowNumber},t.prototype.isReversed=function(){return this.wasReversed},t.prototype.isEquivalent=function(e){return this.checkEqualitity(this,e)},t.prototype.toString=function(){return"{ "+this.pairs+" }"},t.prototype.equals=function(e,n){return e instanceof t?this.checkEqualitity(e,n)&&e.wasReversed===n.wasReversed:!1},t.prototype.checkEqualitity=function(e,n){if(!(!e||!n)){var r;return e.forEach(function(i,o){n.forEach(function(a){i.getLeftChar().getValue()===a.getLeftChar().getValue()&&i.getRightChar().getValue()===a.getRightChar().getValue()&&i.getFinderPatter().getValue()===a.getFinderPatter().getValue()&&(r=!0)})}),r}},t}(),uA=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Un=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},dA=function(t){uA(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.pairs=new Array(e.MAX_PAIRS),n.rows=new Array,n.startEnd=[2],n}return e.prototype.decodeRow=function(n,r,i){this.pairs.length=0,this.startFromEven=!1;try{return e.constructResult(this.decodeRow2pairs(n,r))}catch{}return this.pairs.length=0,this.startFromEven=!0,e.constructResult(this.decodeRow2pairs(n,r))},e.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},e.prototype.decodeRow2pairs=function(n,r){for(var i=!1;!i;)try{this.pairs.push(this.retrieveNextPair(r,this.pairs,n))}catch(s){if(s instanceof M){if(!this.pairs.length)throw new M;i=!0}}if(this.checkChecksum())return this.pairs;var o;if(this.rows.length?o=!0:o=!1,this.storeRow(n,!1),o){var a=this.checkRowsBoolean(!1);if(a!=null||(a=this.checkRowsBoolean(!0),a!=null))return a}throw new M},e.prototype.checkRowsBoolean=function(n){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,n&&(this.rows=this.rows.reverse());var r=null;try{r=this.checkRows(new Array,0)}catch(i){console.log(i)}return n&&(this.rows=this.rows.reverse()),r},e.prototype.checkRows=function(n,r){for(var i,o,a=r;a<this.rows.length;a++){var s=this.rows[a];this.pairs.length=0;try{for(var l=(i=void 0,Un(n)),c=l.next();!c.done;c=l.next()){var u=c.value;this.pairs.push(u.getPairs())}}catch(f){i={error:f}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}if(this.pairs.push(s.getPairs()),!!e.isValidSequence(this.pairs)){if(this.checkChecksum())return this.pairs;var d=new Array(n);d.push(s);try{return this.checkRows(d,a+1)}catch(f){console.log(f)}}}throw new M},e.isValidSequence=function(n){var r,i;try{for(var o=Un(e.FINDER_PATTERN_SEQUENCES),a=o.next();!a.done;a=o.next()){var s=a.value;if(!(n.length>s.length)){for(var l=!0,c=0;c<n.length;c++)if(n[c].getFinderPattern().getValue()!=s[c]){l=!1;break}if(l)return!0}}}catch(u){r={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return!1},e.prototype.storeRow=function(n,r){for(var i=0,o=!1,a=!1;i<this.rows.length;){var s=this.rows[i];if(s.getRowNumber()>n){a=s.isEquivalent(this.pairs);break}o=s.isEquivalent(this.pairs),i++}a||o||e.isPartialRow(this.pairs,this.rows)||(this.rows.push(i,new cA(this.pairs,n,r)),this.removePartialRows(this.pairs,this.rows))},e.prototype.removePartialRows=function(n,r){var i,o,a,s,l,c;try{for(var u=Un(r),d=u.next();!d.done;d=u.next()){var f=d.value;if(f.getPairs().length!==n.length){var h=!0;try{for(var p=(a=void 0,Un(f.getPairs())),g=p.next();!g.done;g=p.next()){var b=g.value,m=!1;try{for(var v=(l=void 0,Un(n)),w=v.next();!w.done;w=v.next()){var y=w.value;if(md.equals(b,y)){m=!0;break}}}catch(C){l={error:C}}finally{try{w&&!w.done&&(c=v.return)&&c.call(v)}finally{if(l)throw l.error}}m||(h=!1)}}catch(C){a={error:C}}finally{try{g&&!g.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}}}catch(C){i={error:C}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}},e.isPartialRow=function(n,r){var i,o,a,s,l,c;try{for(var u=Un(r),d=u.next();!d.done;d=u.next()){var f=d.value,h=!0;try{for(var p=(a=void 0,Un(n)),g=p.next();!g.done;g=p.next()){var b=g.value,m=!1;try{for(var v=(l=void 0,Un(f.getPairs())),w=v.next();!w.done;w=v.next()){var y=w.value;if(b.equals(y)){m=!0;break}}}catch(C){l={error:C}}finally{try{w&&!w.done&&(c=v.return)&&c.call(v)}finally{if(l)throw l.error}}if(!m){h=!1;break}}}catch(C){a={error:C}}finally{try{g&&!g.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}if(h)return!0}}catch(C){i={error:C}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return!1},e.prototype.getRows=function(){return this.rows},e.constructResult=function(n){var r=UE.buildBitArray(n),i=lA(r),o=i.parseInformation(),a=n[0].getFinderPattern().getResultPoints(),s=n[n.length-1].getFinderPattern().getResultPoints(),l=[a[0],a[1],s[0],s[1]];return new Ot(o,null,null,l,Q.RSS_EXPANDED,null)},e.prototype.checkChecksum=function(){var n=this.pairs.get(0),r=n.getLeftChar(),i=n.getRightChar();if(i==null)return!1;for(var o=i.getChecksumPortion(),a=2,s=1;s<this.pairs.size();++s){var l=this.pairs.get(s);o+=l.getLeftChar().getChecksumPortion(),a++;var c=l.getRightChar();c!=null&&(o+=c.getChecksumPortion(),a++)}o%=211;var u=211*(a-4)+o;return u==r.getValue()},e.getNextSecondBar=function(n,r){var i;return n.get(r)?(i=n.getNextUnset(r),i=n.getNextSet(i)):(i=n.getNextSet(r),i=n.getNextUnset(i)),i},e.prototype.retrieveNextPair=function(n,r,i){var o=r.length%2==0;this.startFromEven&&(o=!o);var a,s=!0,l=-1;do this.findNextPair(n,r,l),a=this.parseFoundFinderPattern(n,i,o),a==null?l=e.getNextSecondBar(n,this.startEnd[0]):s=!1;while(s);var c=this.decodeDataCharacter(n,a,o,!0);if(!this.isEmptyPair(r)&&r[r.length-1].mustBeLast())throw new M;var u;try{u=this.decodeDataCharacter(n,a,o,!1)}catch(d){u=null,console.log(d)}return new md(c,u,a,!0)},e.prototype.isEmptyPair=function(n){return n.length===0},e.prototype.findNextPair=function(n,r,i){var o=this.getDecodeFinderCounters();o[0]=0,o[1]=0,o[2]=0,o[3]=0;var a=n.getSize(),s;if(i>=0)s=i;else if(this.isEmptyPair(r))s=0;else{var l=r[r.length-1];s=l.getFinderPattern().getStartEnd()[1]}var c=r.length%2!=0;this.startFromEven&&(c=!c);for(var u=!1;s<a&&(u=!n.get(s),!!u);)s++;for(var d=0,f=s,h=s;h<a;h++)if(n.get(h)!=u)o[d]++;else{if(d==3){if(c&&e.reverseCounters(o),e.isFinderPattern(o)){this.startEnd[0]=f,this.startEnd[1]=h;return}c&&e.reverseCounters(o),f+=o[0]+o[1],o[0]=o[2],o[1]=o[3],o[2]=0,o[3]=0,d--}else d++;o[d]=1,u=!u}throw new M},e.reverseCounters=function(n){for(var r=n.length,i=0;i<r/2;++i){var o=n[i];n[i]=n[r-i-1],n[r-i-1]=o}},e.prototype.parseFoundFinderPattern=function(n,r,i){var o,a,s;if(i){for(var l=this.startEnd[0]-1;l>=0&&!n.get(l);)l--;l++,o=this.startEnd[0]-l,a=l,s=this.startEnd[1]}else a=this.startEnd[0],s=n.getNextUnset(this.startEnd[1]+1),o=s-this.startEnd[1];var c=this.getDecodeFinderCounters();Se.arraycopy(c,0,c,1,c.length-1),c[0]=o;var u;try{u=this.parseFinderValue(c,e.FINDER_PATTERNS)}catch{return null}return new sp(u,[a,s],a,s,r)},e.prototype.decodeDataCharacter=function(n,r,i,o){for(var a=this.getDataCharacterCounters(),s=0;s<a.length;s++)a[s]=0;if(o)e.recordPatternInReverse(n,r.getStartEnd()[0],a);else{e.recordPattern(n,r.getStartEnd()[1],a);for(var l=0,c=a.length-1;l<c;l++,c--){var u=a[l];a[l]=a[c],a[c]=u}}var d=17,f=pe.sum(new Int32Array(a))/d,h=(r.getStartEnd()[1]-r.getStartEnd()[0])/15;if(Math.abs(f-h)/h>.3)throw new M;for(var p=this.getOddCounts(),g=this.getEvenCounts(),b=this.getOddRoundingErrors(),m=this.getEvenRoundingErrors(),l=0;l<a.length;l++){var v=1*a[l]/f,w=v+.5;if(w<1){if(v<.3)throw new M;w=1}else if(w>8){if(v>8.7)throw new M;w=8}var y=l/2;l&1?(g[y]=w,m[y]=v-w):(p[y]=w,b[y]=v-w)}this.adjustOddEvenCounts(d);for(var C=4*r.getValue()+(i?0:2)+(o?0:1)-1,E=0,k=0,l=p.length-1;l>=0;l--){if(e.isNotA1left(r,i,o)){var N=e.WEIGHTS[C][2*l];k+=p[l]*N}E+=p[l]}for(var D=0,l=g.length-1;l>=0;l--)if(e.isNotA1left(r,i,o)){var N=e.WEIGHTS[C][2*l+1];D+=g[l]*N}var O=k+D;if(E&1||E>13||E<4)throw new M;var L=(13-E)/2,B=e.SYMBOL_WIDEST[L],G=9-B,ae=Kr.getRSSvalue(p,B,!0),se=Kr.getRSSvalue(g,G,!1),Z=e.EVEN_TOTAL_SUBSET[L],K=e.GSUM[L],Te=ae*Z+se+K;return new ea(Te,O)},e.isNotA1left=function(n,r,i){return!(n.getValue()==0&&r&&i)},e.prototype.adjustOddEvenCounts=function(n){var r=pe.sum(new Int32Array(this.getOddCounts())),i=pe.sum(new Int32Array(this.getEvenCounts())),o=!1,a=!1;r>13?a=!0:r<4&&(o=!0);var s=!1,l=!1;i>13?l=!0:i<4&&(s=!0);var c=r+i-n,u=(r&1)==1,d=(i&1)==0;if(c==1)if(u){if(d)throw new M;a=!0}else{if(!d)throw new M;l=!0}else if(c==-1)if(u){if(d)throw new M;o=!0}else{if(!d)throw new M;s=!0}else if(c==0){if(u){if(!d)throw new M;r<i?(o=!0,l=!0):(a=!0,s=!0)}else if(d)throw new M}else throw new M;if(o){if(a)throw new M;e.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(a&&e.decrement(this.getOddCounts(),this.getOddRoundingErrors()),s){if(l)throw new M;e.increment(this.getEvenCounts(),this.getOddRoundingErrors())}l&&e.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},e.SYMBOL_WIDEST=[7,5,4,3,1],e.EVEN_TOTAL_SUBSET=[4,20,52,104,204],e.GSUM=[0,348,1388,2948,3988],e.FINDER_PATTERNS=[Int32Array.from([1,8,4,1]),Int32Array.from([3,6,4,1]),Int32Array.from([3,4,6,1]),Int32Array.from([3,2,8,1]),Int32Array.from([2,6,5,1]),Int32Array.from([2,2,9,1])],e.WEIGHTS=[[1,3,9,27,81,32,96,77],[20,60,180,118,143,7,21,63],[189,145,13,39,117,140,209,205],[193,157,49,147,19,57,171,91],[62,186,136,197,169,85,44,132],[185,133,188,142,4,12,36,108],[113,128,173,97,80,29,87,50],[150,28,84,41,123,158,52,156],[46,138,203,187,139,206,196,166],[76,17,51,153,37,111,122,155],[43,129,176,106,107,110,119,146],[16,48,144,10,30,90,59,177],[109,116,137,200,178,112,125,164],[70,210,208,202,184,130,179,115],[134,191,151,31,93,68,204,190],[148,22,66,198,172,94,71,2],[6,18,54,162,64,192,154,40],[120,149,25,75,14,42,126,167],[79,26,78,23,69,207,199,175],[103,98,83,38,114,131,182,124],[161,61,183,127,170,88,53,159],[55,165,73,8,24,72,5,15],[45,135,194,160,58,174,100,89]],e.FINDER_PAT_A=0,e.FINDER_PAT_B=1,e.FINDER_PAT_C=2,e.FINDER_PAT_D=3,e.FINDER_PAT_E=4,e.FINDER_PAT_F=5,e.FINDER_PATTERN_SEQUENCES=[[e.FINDER_PAT_A,e.FINDER_PAT_A],[e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B],[e.FINDER_PAT_A,e.FINDER_PAT_C,e.FINDER_PAT_B,e.FINDER_PAT_D],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_C],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_D,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_D],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_E],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F]],e.MAX_PAIRS=11,e}(fr),fA=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),hA=function(t){fA(e,t);function e(n,r,i){var o=t.call(this,n,r)||this;return o.count=0,o.finderPattern=i,o}return e.prototype.getFinderPattern=function(){return this.finderPattern},e.prototype.getCount=function(){return this.count},e.prototype.incrementCount=function(){this.count++},e}(ea),pA=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),rs=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},vd=function(t){pA(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.possibleLeftPairs=[],n.possibleRightPairs=[],n}return e.prototype.decodeRow=function(n,r,i){var o,a,s,l,c=this.decodePair(r,!1,n,i);e.addOrTally(this.possibleLeftPairs,c),r.reverse();var u=this.decodePair(r,!0,n,i);e.addOrTally(this.possibleRightPairs,u),r.reverse();try{for(var d=rs(this.possibleLeftPairs),f=d.next();!f.done;f=d.next()){var h=f.value;if(h.getCount()>1)try{for(var p=(s=void 0,rs(this.possibleRightPairs)),g=p.next();!g.done;g=p.next()){var b=g.value;if(b.getCount()>1&&e.checkChecksum(h,b))return e.constructResult(h,b)}}catch(m){s={error:m}}finally{try{g&&!g.done&&(l=p.return)&&l.call(p)}finally{if(s)throw s.error}}}}catch(m){o={error:m}}finally{try{f&&!f.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}throw new M},e.addOrTally=function(n,r){var i,o;if(r!=null){var a=!1;try{for(var s=rs(n),l=s.next();!l.done;l=s.next()){var c=l.value;if(c.getValue()===r.getValue()){c.incrementCount(),a=!0;break}}}catch(u){i={error:u}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}a||n.push(r)}},e.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},e.constructResult=function(n,r){for(var i=4537077*n.getValue()+r.getValue(),o=new String(i).toString(),a=new Ae,s=13-o.length;s>0;s--)a.append("0");a.append(o);for(var l=0,s=0;s<13;s++){var c=a.charAt(s).charCodeAt(0)-"0".charCodeAt(0);l+=s&1?c:3*c}l=10-l%10,l===10&&(l=0),a.append(l.toString());var u=n.getFinderPattern().getResultPoints(),d=r.getFinderPattern().getResultPoints();return new Ot(a.toString(),null,0,[u[0],u[1],d[0],d[1]],Q.RSS_14,new Date().getTime())},e.checkChecksum=function(n,r){var i=(n.getChecksumPortion()+16*r.getChecksumPortion())%79,o=9*n.getFinderPattern().getValue()+r.getFinderPattern().getValue();return o>72&&o--,o>8&&o--,i===o},e.prototype.decodePair=function(n,r,i,o){try{var a=this.findFinderPattern(n,r),s=this.parseFoundFinderPattern(n,i,r,a),l=o==null?null:o.get(Fe.NEED_RESULT_POINT_CALLBACK);if(l!=null){var c=(a[0]+a[1])/2;r&&(c=n.getSize()-1-c),l.foundPossibleResultPoint(new Y(c,i))}var u=this.decodeDataCharacter(n,s,!0),d=this.decodeDataCharacter(n,s,!1);return new hA(1597*u.getValue()+d.getValue(),u.getChecksumPortion()+4*d.getChecksumPortion(),s)}catch{return null}},e.prototype.decodeDataCharacter=function(n,r,i){for(var o=this.getDataCharacterCounters(),a=0;a<o.length;a++)o[a]=0;if(i)ut.recordPatternInReverse(n,r.getStartEnd()[0],o);else{ut.recordPattern(n,r.getStartEnd()[1]+1,o);for(var s=0,l=o.length-1;s<l;s++,l--){var c=o[s];o[s]=o[l],o[l]=c}}for(var u=i?16:15,d=pe.sum(new Int32Array(o))/u,f=this.getOddCounts(),h=this.getEvenCounts(),p=this.getOddRoundingErrors(),g=this.getEvenRoundingErrors(),s=0;s<o.length;s++){var b=o[s]/d,m=Math.floor(b+.5);m<1?m=1:m>8&&(m=8);var v=Math.floor(s/2);s&1?(h[v]=m,g[v]=b-m):(f[v]=m,p[v]=b-m)}this.adjustOddEvenCounts(i,u);for(var w=0,y=0,s=f.length-1;s>=0;s--)y*=9,y+=f[s],w+=f[s];for(var C=0,E=0,s=h.length-1;s>=0;s--)C*=9,C+=h[s],E+=h[s];var k=y+3*C;if(i){if(w&1||w>12||w<4)throw new M;var N=(12-w)/2,D=e.OUTSIDE_ODD_WIDEST[N],O=9-D,L=Kr.getRSSvalue(f,D,!1),B=Kr.getRSSvalue(h,O,!0),G=e.OUTSIDE_EVEN_TOTAL_SUBSET[N],ae=e.OUTSIDE_GSUM[N];return new ea(L*G+B+ae,k)}else{if(E&1||E>10||E<4)throw new M;var N=(10-E)/2,D=e.INSIDE_ODD_WIDEST[N],O=9-D,L=Kr.getRSSvalue(f,D,!0),B=Kr.getRSSvalue(h,O,!1),se=e.INSIDE_ODD_TOTAL_SUBSET[N],ae=e.INSIDE_GSUM[N];return new ea(B*se+L+ae,k)}},e.prototype.findFinderPattern=function(n,r){var i=this.getDecodeFinderCounters();i[0]=0,i[1]=0,i[2]=0,i[3]=0;for(var o=n.getSize(),a=!1,s=0;s<o&&(a=!n.get(s),r!==a);)s++;for(var l=0,c=s,u=s;u<o;u++)if(n.get(u)!==a)i[l]++;else{if(l===3){if(fr.isFinderPattern(i))return[c,u];c+=i[0]+i[1],i[0]=i[2],i[1]=i[3],i[2]=0,i[3]=0,l--}else l++;i[l]=1,a=!a}throw new M},e.prototype.parseFoundFinderPattern=function(n,r,i,o){for(var a=n.get(o[0]),s=o[0]-1;s>=0&&a!==n.get(s);)s--;s++;var l=o[0]-s,c=this.getDecodeFinderCounters(),u=new Int32Array(c.length);Se.arraycopy(c,0,u,1,c.length-1),u[0]=l;var d=this.parseFinderValue(u,e.FINDER_PATTERNS),f=s,h=o[1];return i&&(f=n.getSize()-1-f,h=n.getSize()-1-h),new sp(d,[s,o[1]],f,h,r)},e.prototype.adjustOddEvenCounts=function(n,r){var i=pe.sum(new Int32Array(this.getOddCounts())),o=pe.sum(new Int32Array(this.getEvenCounts())),a=!1,s=!1,l=!1,c=!1;n?(i>12?s=!0:i<4&&(a=!0),o>12?c=!0:o<4&&(l=!0)):(i>11?s=!0:i<5&&(a=!0),o>10?c=!0:o<4&&(l=!0));var u=i+o-r,d=(i&1)===(n?1:0),f=(o&1)===1;if(u===1)if(d){if(f)throw new M;s=!0}else{if(!f)throw new M;c=!0}else if(u===-1)if(d){if(f)throw new M;a=!0}else{if(!f)throw new M;l=!0}else if(u===0){if(d){if(!f)throw new M;i<o?(a=!0,c=!0):(s=!0,l=!0)}else if(f)throw new M}else throw new M;if(a){if(s)throw new M;fr.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(s&&fr.decrement(this.getOddCounts(),this.getOddRoundingErrors()),l){if(c)throw new M;fr.increment(this.getEvenCounts(),this.getOddRoundingErrors())}c&&fr.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},e.OUTSIDE_EVEN_TOTAL_SUBSET=[1,10,34,70,126],e.INSIDE_ODD_TOTAL_SUBSET=[4,20,48,81],e.OUTSIDE_GSUM=[0,161,961,2015,2715],e.INSIDE_GSUM=[0,336,1036,1516],e.OUTSIDE_ODD_WIDEST=[8,6,4,3,1],e.INSIDE_ODD_WIDEST=[2,4,6,8],e.FINDER_PATTERNS=[Int32Array.from([3,8,2,1]),Int32Array.from([3,5,5,1]),Int32Array.from([3,3,7,1]),Int32Array.from([3,1,9,1]),Int32Array.from([2,7,4,1]),Int32Array.from([2,5,6,1]),Int32Array.from([2,3,8,1]),Int32Array.from([1,5,7,1]),Int32Array.from([1,3,9,1])],e}(fr),gA=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ci=function(t){gA(e,t);function e(n){var r=t.call(this)||this;r.readers=[];var i=n?n.get(Fe.POSSIBLE_FORMATS):null,o=n&&n.get(Fe.ASSUME_CODE_39_CHECK_DIGIT)!==void 0;return i&&((i.includes(Q.EAN_13)||i.includes(Q.UPC_A)||i.includes(Q.EAN_8)||i.includes(Q.UPC_E))&&r.readers.push(new ns(n)),i.includes(Q.CODE_39)&&r.readers.push(new ld(o)),i.includes(Q.CODE_128)&&r.readers.push(new sd),i.includes(Q.ITF)&&r.readers.push(new cd),i.includes(Q.RSS_14)&&r.readers.push(new vd),i.includes(Q.RSS_EXPANDED)&&(console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."),r.readers.push(new dA))),r.readers.length===0&&(r.readers.push(new ns(n)),r.readers.push(new ld),r.readers.push(new ns(n)),r.readers.push(new sd),r.readers.push(new cd),r.readers.push(new vd)),r}return e.prototype.decodeRow=function(n,r,i){for(var o=0;o<this.readers.length;o++)try{return this.readers[o].decodeRow(n,r,i)}catch{}throw new M},e.prototype.reset=function(){this.readers.forEach(function(n){return n.reset()})},e}(ut),mA=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){mA(e,t);function e(n,r){return n===void 0&&(n=500),t.call(this,new Ci(r),n,r)||this}return e})(di);var bd=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},be=function(){function t(e,n,r){this.ecCodewords=e,this.ecBlocks=[n],r&&this.ecBlocks.push(r)}return t.prototype.getECCodewords=function(){return this.ecCodewords},t.prototype.getECBlocks=function(){return this.ecBlocks},t}(),ve=function(){function t(e,n){this.count=e,this.dataCodewords=n}return t.prototype.getCount=function(){return this.count},t.prototype.getDataCodewords=function(){return this.dataCodewords},t}(),vA=function(){function t(e,n,r,i,o,a){var s,l;this.versionNumber=e,this.symbolSizeRows=n,this.symbolSizeColumns=r,this.dataRegionSizeRows=i,this.dataRegionSizeColumns=o,this.ecBlocks=a;var c=0,u=a.getECCodewords(),d=a.getECBlocks();try{for(var f=bd(d),h=f.next();!h.done;h=f.next()){var p=h.value;c+=p.getCount()*(p.getDataCodewords()+u)}}catch(g){s={error:g}}finally{try{h&&!h.done&&(l=f.return)&&l.call(f)}finally{if(s)throw s.error}}this.totalCodewords=c}return t.prototype.getVersionNumber=function(){return this.versionNumber},t.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},t.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},t.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},t.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},t.prototype.getTotalCodewords=function(){return this.totalCodewords},t.prototype.getECBlocks=function(){return this.ecBlocks},t.getVersionForDimensions=function(e,n){var r,i;if(e&1||n&1)throw new H;try{for(var o=bd(t.VERSIONS),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.symbolSizeRows===e&&s.symbolSizeColumns===n)return s}}catch(l){r={error:l}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}throw new H},t.prototype.toString=function(){return""+this.versionNumber},t.buildVersions=function(){return[new t(1,10,10,8,8,new be(5,new ve(1,3))),new t(2,12,12,10,10,new be(7,new ve(1,5))),new t(3,14,14,12,12,new be(10,new ve(1,8))),new t(4,16,16,14,14,new be(12,new ve(1,12))),new t(5,18,18,16,16,new be(14,new ve(1,18))),new t(6,20,20,18,18,new be(18,new ve(1,22))),new t(7,22,22,20,20,new be(20,new ve(1,30))),new t(8,24,24,22,22,new be(24,new ve(1,36))),new t(9,26,26,24,24,new be(28,new ve(1,44))),new t(10,32,32,14,14,new be(36,new ve(1,62))),new t(11,36,36,16,16,new be(42,new ve(1,86))),new t(12,40,40,18,18,new be(48,new ve(1,114))),new t(13,44,44,20,20,new be(56,new ve(1,144))),new t(14,48,48,22,22,new be(68,new ve(1,174))),new t(15,52,52,24,24,new be(42,new ve(2,102))),new t(16,64,64,14,14,new be(56,new ve(2,140))),new t(17,72,72,16,16,new be(36,new ve(4,92))),new t(18,80,80,18,18,new be(48,new ve(4,114))),new t(19,88,88,20,20,new be(56,new ve(4,144))),new t(20,96,96,22,22,new be(68,new ve(4,174))),new t(21,104,104,24,24,new be(56,new ve(6,136))),new t(22,120,120,18,18,new be(68,new ve(6,175))),new t(23,132,132,20,20,new be(62,new ve(8,163))),new t(24,144,144,22,22,new be(62,new ve(8,156),new ve(2,155))),new t(25,8,18,6,16,new be(7,new ve(1,5))),new t(26,8,32,6,14,new be(11,new ve(1,10))),new t(27,12,26,10,24,new be(14,new ve(1,16))),new t(28,12,36,10,16,new be(18,new ve(1,22))),new t(29,16,36,14,16,new be(24,new ve(1,32))),new t(30,16,48,14,22,new be(28,new ve(1,49)))]},t.VERSIONS=t.buildVersions(),t}(),bA=function(){function t(e){var n=e.getHeight();if(n<8||n>144||n&1)throw new H;this.version=t.readVersion(e),this.mappingBitMatrix=this.extractDataRegion(e),this.readMappingMatrix=new yn(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return t.prototype.getVersion=function(){return this.version},t.readVersion=function(e){var n=e.getHeight(),r=e.getWidth();return vA.getVersionForDimensions(n,r)},t.prototype.readCodewords=function(){var e=new Int8Array(this.version.getTotalCodewords()),n=0,r=4,i=0,o=this.mappingBitMatrix.getHeight(),a=this.mappingBitMatrix.getWidth(),s=!1,l=!1,c=!1,u=!1;do if(r===o&&i===0&&!s)e[n++]=this.readCorner1(o,a)&255,r-=2,i+=2,s=!0;else if(r===o-2&&i===0&&a&3&&!l)e[n++]=this.readCorner2(o,a)&255,r-=2,i+=2,l=!0;else if(r===o+4&&i===2&&!(a&7)&&!c)e[n++]=this.readCorner3(o,a)&255,r-=2,i+=2,c=!0;else if(r===o-2&&i===0&&(a&7)===4&&!u)e[n++]=this.readCorner4(o,a)&255,r-=2,i+=2,u=!0;else{do r<o&&i>=0&&!this.readMappingMatrix.get(i,r)&&(e[n++]=this.readUtah(r,i,o,a)&255),r-=2,i+=2;while(r>=0&&i<a);r+=1,i+=3;do r>=0&&i<a&&!this.readMappingMatrix.get(i,r)&&(e[n++]=this.readUtah(r,i,o,a)&255),r+=2,i-=2;while(r<o&&i>=0);r+=3,i+=1}while(r<o||i<a);if(n!==this.version.getTotalCodewords())throw new H;return e},t.prototype.readModule=function(e,n,r,i){return e<0&&(e+=r,n+=4-(r+4&7)),n<0&&(n+=i,e+=4-(i+4&7)),this.readMappingMatrix.set(n,e),this.mappingBitMatrix.get(n,e)},t.prototype.readUtah=function(e,n,r,i){var o=0;return this.readModule(e-2,n-2,r,i)&&(o|=1),o<<=1,this.readModule(e-2,n-1,r,i)&&(o|=1),o<<=1,this.readModule(e-1,n-2,r,i)&&(o|=1),o<<=1,this.readModule(e-1,n-1,r,i)&&(o|=1),o<<=1,this.readModule(e-1,n,r,i)&&(o|=1),o<<=1,this.readModule(e,n-2,r,i)&&(o|=1),o<<=1,this.readModule(e,n-1,r,i)&&(o|=1),o<<=1,this.readModule(e,n,r,i)&&(o|=1),o},t.prototype.readCorner1=function(e,n){var r=0;return this.readModule(e-1,0,e,n)&&(r|=1),r<<=1,this.readModule(e-1,1,e,n)&&(r|=1),r<<=1,this.readModule(e-1,2,e,n)&&(r|=1),r<<=1,this.readModule(0,n-2,e,n)&&(r|=1),r<<=1,this.readModule(0,n-1,e,n)&&(r|=1),r<<=1,this.readModule(1,n-1,e,n)&&(r|=1),r<<=1,this.readModule(2,n-1,e,n)&&(r|=1),r<<=1,this.readModule(3,n-1,e,n)&&(r|=1),r},t.prototype.readCorner2=function(e,n){var r=0;return this.readModule(e-3,0,e,n)&&(r|=1),r<<=1,this.readModule(e-2,0,e,n)&&(r|=1),r<<=1,this.readModule(e-1,0,e,n)&&(r|=1),r<<=1,this.readModule(0,n-4,e,n)&&(r|=1),r<<=1,this.readModule(0,n-3,e,n)&&(r|=1),r<<=1,this.readModule(0,n-2,e,n)&&(r|=1),r<<=1,this.readModule(0,n-1,e,n)&&(r|=1),r<<=1,this.readModule(1,n-1,e,n)&&(r|=1),r},t.prototype.readCorner3=function(e,n){var r=0;return this.readModule(e-1,0,e,n)&&(r|=1),r<<=1,this.readModule(e-1,n-1,e,n)&&(r|=1),r<<=1,this.readModule(0,n-3,e,n)&&(r|=1),r<<=1,this.readModule(0,n-2,e,n)&&(r|=1),r<<=1,this.readModule(0,n-1,e,n)&&(r|=1),r<<=1,this.readModule(1,n-3,e,n)&&(r|=1),r<<=1,this.readModule(1,n-2,e,n)&&(r|=1),r<<=1,this.readModule(1,n-1,e,n)&&(r|=1),r},t.prototype.readCorner4=function(e,n){var r=0;return this.readModule(e-3,0,e,n)&&(r|=1),r<<=1,this.readModule(e-2,0,e,n)&&(r|=1),r<<=1,this.readModule(e-1,0,e,n)&&(r|=1),r<<=1,this.readModule(0,n-2,e,n)&&(r|=1),r<<=1,this.readModule(0,n-1,e,n)&&(r|=1),r<<=1,this.readModule(1,n-1,e,n)&&(r|=1),r<<=1,this.readModule(2,n-1,e,n)&&(r|=1),r<<=1,this.readModule(3,n-1,e,n)&&(r|=1),r},t.prototype.extractDataRegion=function(e){var n=this.version.getSymbolSizeRows(),r=this.version.getSymbolSizeColumns();if(e.getHeight()!==n)throw new q("Dimension of bitMatrix must match the version size");for(var i=this.version.getDataRegionSizeRows(),o=this.version.getDataRegionSizeColumns(),a=n/i|0,s=r/o|0,l=a*i,c=s*o,u=new yn(c,l),d=0;d<a;++d)for(var f=d*i,h=0;h<s;++h)for(var p=h*o,g=0;g<i;++g)for(var b=d*(i+2)+1+g,m=f+g,v=0;v<o;++v){var w=h*(o+2)+1+v;if(e.get(w,b)){var y=p+v;u.set(y,m)}}return u},t}(),xd=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},xA=function(){function t(e,n){this.numDataCodewords=e,this.codewords=n}return t.getDataBlocks=function(e,n){var r,i,o,a,s=n.getECBlocks(),l=0,c=s.getECBlocks();try{for(var u=xd(c),d=u.next();!d.done;d=u.next()){var f=d.value;l+=f.getCount()}}catch(ae){r={error:ae}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}var h=new Array(l),p=0;try{for(var g=xd(c),b=g.next();!b.done;b=g.next())for(var f=b.value,m=0;m<f.getCount();m++){var v=f.getDataCodewords(),w=s.getECCodewords()+v;h[p++]=new t(v,new Uint8Array(w))}}catch(ae){o={error:ae}}finally{try{b&&!b.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}for(var y=h[0].codewords.length,C=y-s.getECCodewords(),E=C-1,k=0,m=0;m<E;m++)for(var N=0;N<p;N++)h[N].codewords[m]=e[k++];for(var D=n.getVersionNumber()===24,O=D?8:p,N=0;N<O;N++)h[N].codewords[C-1]=e[k++];for(var L=h[0].codewords.length,m=C;m<L;m++)for(var N=0;N<p;N++){var B=D?(N+8)%p:N,G=D&&B>7?m-1:m;h[B].codewords[G]=e[k++]}if(k!==e.length)throw new q;return h},t.prototype.getNumDataCodewords=function(){return this.numDataCodewords},t.prototype.getCodewords=function(){return this.codewords},t}(),up=function(){function t(e){this.bytes=e,this.byteOffset=0,this.bitOffset=0}return t.prototype.getBitOffset=function(){return this.bitOffset},t.prototype.getByteOffset=function(){return this.byteOffset},t.prototype.readBits=function(e){if(e<1||e>32||e>this.available())throw new q(""+e);var n=0,r=this.bitOffset,i=this.byteOffset,o=this.bytes;if(r>0){var a=8-r,s=e<a?e:a,l=a-s,c=255>>8-s<<l;n=(o[i]&c)>>l,e-=s,r+=s,r===8&&(r=0,i++)}if(e>0){for(;e>=8;)n=n<<8|o[i]&255,i++,e-=8;if(e>0){var l=8-e,c=255>>l<<l;n=n<<e|(o[i]&c)>>l,r+=e}}return this.bitOffset=r,this.byteOffset=i,n},t.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},t}(),Ke;(function(t){t[t.PAD_ENCODE=0]="PAD_ENCODE",t[t.ASCII_ENCODE=1]="ASCII_ENCODE",t[t.C40_ENCODE=2]="C40_ENCODE",t[t.TEXT_ENCODE=3]="TEXT_ENCODE",t[t.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",t[t.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",t[t.BASE256_ENCODE=6]="BASE256_ENCODE"})(Ke||(Ke={}));var yA=function(){function t(){}return t.decode=function(e){var n=new up(e),r=new Ae,i=new Ae,o=new Array,a=Ke.ASCII_ENCODE;do if(a===Ke.ASCII_ENCODE)a=this.decodeAsciiSegment(n,r,i);else{switch(a){case Ke.C40_ENCODE:this.decodeC40Segment(n,r);break;case Ke.TEXT_ENCODE:this.decodeTextSegment(n,r);break;case Ke.ANSIX12_ENCODE:this.decodeAnsiX12Segment(n,r);break;case Ke.EDIFACT_ENCODE:this.decodeEdifactSegment(n,r);break;case Ke.BASE256_ENCODE:this.decodeBase256Segment(n,r,o);break;default:throw new H}a=Ke.ASCII_ENCODE}while(a!==Ke.PAD_ENCODE&&n.available()>0);return i.length()>0&&r.append(i.toString()),new Ea(e,r.toString(),o.length===0?null:o,null)},t.decodeAsciiSegment=function(e,n,r){var i=!1;do{var o=e.readBits(8);if(o===0)throw new H;if(o<=128)return i&&(o+=128),n.append(String.fromCharCode(o-1)),Ke.ASCII_ENCODE;if(o===129)return Ke.PAD_ENCODE;if(o<=229){var a=o-130;a<10&&n.append("0"),n.append(""+a)}else switch(o){case 230:return Ke.C40_ENCODE;case 231:return Ke.BASE256_ENCODE;case 232:n.append(String.fromCharCode(29));break;case 233:case 234:break;case 235:i=!0;break;case 236:n.append("[)>05"),r.insert(0,"");break;case 237:n.append("[)>06"),r.insert(0,"");break;case 238:return Ke.ANSIX12_ENCODE;case 239:return Ke.TEXT_ENCODE;case 240:return Ke.EDIFACT_ENCODE;case 241:break;default:if(o!==254||e.available()!==0)throw new H;break}}while(e.available()>0);return Ke.ASCII_ENCODE},t.decodeC40Segment=function(e,n){var r=!1,i=[],o=0;do{if(e.available()===8)return;var a=e.readBits(8);if(a===254)return;this.parseTwoBytes(a,e.readBits(8),i);for(var s=0;s<3;s++){var l=i[s];switch(o){case 0:if(l<3)o=l+1;else if(l<this.C40_BASIC_SET_CHARS.length){var c=this.C40_BASIC_SET_CHARS[l];r?(n.append(String.fromCharCode(c.charCodeAt(0)+128)),r=!1):n.append(c)}else throw new H;break;case 1:r?(n.append(String.fromCharCode(l+128)),r=!1):n.append(String.fromCharCode(l)),o=0;break;case 2:if(l<this.C40_SHIFT2_SET_CHARS.length){var c=this.C40_SHIFT2_SET_CHARS[l];r?(n.append(String.fromCharCode(c.charCodeAt(0)+128)),r=!1):n.append(c)}else switch(l){case 27:n.append(String.fromCharCode(29));break;case 30:r=!0;break;default:throw new H}o=0;break;case 3:r?(n.append(String.fromCharCode(l+224)),r=!1):n.append(String.fromCharCode(l+96)),o=0;break;default:throw new H}}}while(e.available()>0)},t.decodeTextSegment=function(e,n){var r=!1,i=[],o=0;do{if(e.available()===8)return;var a=e.readBits(8);if(a===254)return;this.parseTwoBytes(a,e.readBits(8),i);for(var s=0;s<3;s++){var l=i[s];switch(o){case 0:if(l<3)o=l+1;else if(l<this.TEXT_BASIC_SET_CHARS.length){var c=this.TEXT_BASIC_SET_CHARS[l];r?(n.append(String.fromCharCode(c.charCodeAt(0)+128)),r=!1):n.append(c)}else throw new H;break;case 1:r?(n.append(String.fromCharCode(l+128)),r=!1):n.append(String.fromCharCode(l)),o=0;break;case 2:if(l<this.TEXT_SHIFT2_SET_CHARS.length){var c=this.TEXT_SHIFT2_SET_CHARS[l];r?(n.append(String.fromCharCode(c.charCodeAt(0)+128)),r=!1):n.append(c)}else switch(l){case 27:n.append(String.fromCharCode(29));break;case 30:r=!0;break;default:throw new H}o=0;break;case 3:if(l<this.TEXT_SHIFT3_SET_CHARS.length){var c=this.TEXT_SHIFT3_SET_CHARS[l];r?(n.append(String.fromCharCode(c.charCodeAt(0)+128)),r=!1):n.append(c),o=0}else throw new H;break;default:throw new H}}}while(e.available()>0)},t.decodeAnsiX12Segment=function(e,n){var r=[];do{if(e.available()===8)return;var i=e.readBits(8);if(i===254)return;this.parseTwoBytes(i,e.readBits(8),r);for(var o=0;o<3;o++){var a=r[o];switch(a){case 0:n.append("\r");break;case 1:n.append("*");break;case 2:n.append(">");break;case 3:n.append(" ");break;default:if(a<14)n.append(String.fromCharCode(a+44));else if(a<40)n.append(String.fromCharCode(a+51));else throw new H;break}}}while(e.available()>0)},t.parseTwoBytes=function(e,n,r){var i=(e<<8)+n-1,o=Math.floor(i/1600);r[0]=o,i-=o*1600,o=Math.floor(i/40),r[1]=o,r[2]=i-o*40},t.decodeEdifactSegment=function(e,n){do{if(e.available()<=16)return;for(var r=0;r<4;r++){var i=e.readBits(6);if(i===31){var o=8-e.getBitOffset();o!==8&&e.readBits(o);return}i&32||(i|=64),n.append(String.fromCharCode(i))}}while(e.available()>0)},t.decodeBase256Segment=function(e,n,r){var i=1+e.getByteOffset(),o=this.unrandomize255State(e.readBits(8),i++),a;if(o===0?a=e.available()/8|0:o<250?a=o:a=250*(o-249)+this.unrandomize255State(e.readBits(8),i++),a<0)throw new H;for(var s=new Uint8Array(a),l=0;l<a;l++){if(e.available()<8)throw new H;s[l]=this.unrandomize255State(e.readBits(8),i++)}r.push(s);try{n.append(xn.decode(s,Ce.ISO88591))}catch(c){throw new to("Platform does not support required encoding: "+c.message)}},t.unrandomize255State=function(e,n){var r=149*n%255+1,i=e-r;return i>=0?i:i+256},t.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],t.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],t.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],t.TEXT_SHIFT2_SET_CHARS=t.C40_SHIFT2_SET_CHARS,t.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)],t}(),wA=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_A=function(){function t(){this.rsDecoder=new Aa(Ct.DATA_MATRIX_FIELD_256)}return t.prototype.decode=function(e){var n,r,i=new bA(e),o=i.getVersion(),a=i.readCodewords(),s=xA.getDataBlocks(a,o),l=0;try{for(var c=wA(s),u=c.next();!u.done;u=c.next()){var d=u.value;l+=d.getNumDataCodewords()}}catch(w){n={error:w}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}for(var f=new Uint8Array(l),h=s.length,p=0;p<h;p++){var g=s[p],b=g.getCodewords(),m=g.getNumDataCodewords();this.correctErrors(b,m);for(var v=0;v<m;v++)f[v*h+p]=b[v]}return yA.decode(f)},t.prototype.correctErrors=function(e,n){var r=new Int32Array(e);try{this.rsDecoder.decode(r,e.length-n)}catch{throw new lt}for(var i=0;i<n;i++)e[i]=r[i]},t}(),EA=function(){function t(e){this.image=e,this.rectangleDetector=new Qs(this.image)}return t.prototype.detect=function(){var e=this.rectangleDetector.detect(),n=this.detectSolid1(e);if(n=this.detectSolid2(n),n[3]=this.correctTopRight(n),!n[3])throw new M;n=this.shiftToModuleCenter(n);var r=n[0],i=n[1],o=n[2],a=n[3],s=this.transitionsBetween(r,a)+1,l=this.transitionsBetween(o,a)+1;(s&1)===1&&(s+=1),(l&1)===1&&(l+=1),4*s<7*l&&4*l<7*s&&(s=l=Math.max(s,l));var c=t.sampleGrid(this.image,r,i,o,a,s,l);return new dc(c,[r,i,o,a])},t.shiftPoint=function(e,n,r){var i=(n.getX()-e.getX())/(r+1),o=(n.getY()-e.getY())/(r+1);return new Y(e.getX()+i,e.getY()+o)},t.moveAway=function(e,n,r){var i=e.getX(),o=e.getY();return i<n?i-=1:i+=1,o<r?o-=1:o+=1,new Y(i,o)},t.prototype.detectSolid1=function(e){var n=e[0],r=e[1],i=e[3],o=e[2],a=this.transitionsBetween(n,r),s=this.transitionsBetween(r,i),l=this.transitionsBetween(i,o),c=this.transitionsBetween(o,n),u=a,d=[o,n,r,i];return u>s&&(u=s,d[0]=n,d[1]=r,d[2]=i,d[3]=o),u>l&&(u=l,d[0]=r,d[1]=i,d[2]=o,d[3]=n),u>c&&(d[0]=i,d[1]=o,d[2]=n,d[3]=r),d},t.prototype.detectSolid2=function(e){var n=e[0],r=e[1],i=e[2],o=e[3],a=this.transitionsBetween(n,o),s=t.shiftPoint(r,i,(a+1)*4),l=t.shiftPoint(i,r,(a+1)*4),c=this.transitionsBetween(s,n),u=this.transitionsBetween(l,o);return c<u?(e[0]=n,e[1]=r,e[2]=i,e[3]=o):(e[0]=r,e[1]=i,e[2]=o,e[3]=n),e},t.prototype.correctTopRight=function(e){var n=e[0],r=e[1],i=e[2],o=e[3],a=this.transitionsBetween(n,o),s=this.transitionsBetween(r,o),l=t.shiftPoint(n,r,(s+1)*4),c=t.shiftPoint(i,r,(a+1)*4);a=this.transitionsBetween(l,o),s=this.transitionsBetween(c,o);var u=new Y(o.getX()+(i.getX()-r.getX())/(a+1),o.getY()+(i.getY()-r.getY())/(a+1)),d=new Y(o.getX()+(n.getX()-r.getX())/(s+1),o.getY()+(n.getY()-r.getY())/(s+1));if(!this.isValid(u))return this.isValid(d)?d:null;if(!this.isValid(d))return u;var f=this.transitionsBetween(l,u)+this.transitionsBetween(c,u),h=this.transitionsBetween(l,d)+this.transitionsBetween(c,d);return f>h?u:d},t.prototype.shiftToModuleCenter=function(e){var n=e[0],r=e[1],i=e[2],o=e[3],a=this.transitionsBetween(n,o)+1,s=this.transitionsBetween(i,o)+1,l=t.shiftPoint(n,r,s*4),c=t.shiftPoint(i,r,a*4);a=this.transitionsBetween(l,o)+1,s=this.transitionsBetween(c,o)+1,(a&1)===1&&(a+=1),(s&1)===1&&(s+=1);var u=(n.getX()+r.getX()+i.getX()+o.getX())/4,d=(n.getY()+r.getY()+i.getY()+o.getY())/4;n=t.moveAway(n,u,d),r=t.moveAway(r,u,d),i=t.moveAway(i,u,d),o=t.moveAway(o,u,d);var f,h;return l=t.shiftPoint(n,r,s*4),l=t.shiftPoint(l,o,a*4),f=t.shiftPoint(r,n,s*4),f=t.shiftPoint(f,i,a*4),c=t.shiftPoint(i,o,s*4),c=t.shiftPoint(c,r,a*4),h=t.shiftPoint(o,i,s*4),h=t.shiftPoint(h,n,a*4),[l,f,c,h]},t.prototype.isValid=function(e){return e.getX()>=0&&e.getX()<this.image.getWidth()&&e.getY()>0&&e.getY()<this.image.getHeight()},t.sampleGrid=function(e,n,r,i,o,a,s){var l=fc.getInstance();return l.sampleGrid(e,a,s,.5,.5,a-.5,.5,a-.5,s-.5,.5,s-.5,n.getX(),n.getY(),o.getX(),o.getY(),i.getX(),i.getY(),r.getX(),r.getY())},t.prototype.transitionsBetween=function(e,n){var r=Math.trunc(e.getX()),i=Math.trunc(e.getY()),o=Math.trunc(n.getX()),a=Math.trunc(n.getY()),s=Math.abs(a-i)>Math.abs(o-r);if(s){var l=r;r=i,i=l,l=o,o=a,a=l}for(var c=Math.abs(o-r),u=Math.abs(a-i),d=-c/2,f=i<a?1:-1,h=r<o?1:-1,p=0,g=this.image.get(s?i:r,s?r:i),b=r,m=i;b!==o;b+=h){var v=this.image.get(s?m:b,s?b:m);if(v!==g&&(p++,g=v),d+=u,d>0){if(m===a)break;m+=f,d-=c}}return p},t}(),nl=function(){function t(){this.decoder=new _A}return t.prototype.decode=function(e,n){n===void 0&&(n=null);var r,i;if(n!=null&&n.has(Fe.PURE_BARCODE)){var o=t.extractPureBits(e.getBlackMatrix());r=this.decoder.decode(o),i=t.NO_POINTS}else{var a=new EA(e.getBlackMatrix()).detect();r=this.decoder.decode(a.getBits()),i=a.getPoints()}var s=r.getRawBytes(),l=new Ot(r.getText(),s,8*s.length,i,Q.DATA_MATRIX,Se.currentTimeMillis()),c=r.getByteSegments();c!=null&&l.putMetadata(ct.BYTE_SEGMENTS,c);var u=r.getECLevel();return u!=null&&l.putMetadata(ct.ERROR_CORRECTION_LEVEL,u),l},t.prototype.reset=function(){},t.extractPureBits=function(e){var n=e.getTopLeftOnBit(),r=e.getBottomRightOnBit();if(n==null||r==null)throw new M;var i=this.moduleSize(n,e),o=n[1],a=r[1],s=n[0],l=r[0],c=(l-s+1)/i,u=(a-o+1)/i;if(c<=0||u<=0)throw new M;var d=i/2;o+=d,s+=d;for(var f=new yn(c,u),h=0;h<u;h++)for(var p=o+h*i,g=0;g<c;g++)e.get(s+g*i,p)&&f.set(g,h);return f},t.moduleSize=function(e,n){for(var r=n.getWidth(),i=e[0],o=e[1];i<r&&n.get(i,o);)i++;if(i===r)throw new M;var a=i-e[0];if(a===0)throw new M;return a},t.NO_POINTS=[],t}(),AA=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){AA(e,t);function e(n){return n===void 0&&(n=500),t.call(this,new nl,n)||this}return e})(di);var Zr;(function(t){t[t.L=0]="L",t[t.M=1]="M",t[t.Q=2]="Q",t[t.H=3]="H"})(Zr||(Zr={}));var kA=function(){function t(e,n,r){this.value=e,this.stringValue=n,this.bits=r,t.FOR_BITS.set(r,this),t.FOR_VALUE.set(e,this)}return t.prototype.getValue=function(){return this.value},t.prototype.getBits=function(){return this.bits},t.fromString=function(e){switch(e){case"L":return t.L;case"M":return t.M;case"Q":return t.Q;case"H":return t.H;default:throw new tn(e+"not available")}},t.prototype.toString=function(){return this.stringValue},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.value===n.value},t.forBits=function(e){if(e<0||e>=t.FOR_BITS.size)throw new q;return t.FOR_BITS.get(e)},t.FOR_BITS=new Map,t.FOR_VALUE=new Map,t.L=new t(Zr.L,"L",1),t.M=new t(Zr.M,"M",0),t.Q=new t(Zr.Q,"Q",3),t.H=new t(Zr.H,"H",2),t}(),CA=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},dp=function(){function t(e){this.errorCorrectionLevel=kA.forBits(e>>3&3),this.dataMask=e&7}return t.numBitsDiffering=function(e,n){return ue.bitCount(e^n)},t.decodeFormatInformation=function(e,n){var r=t.doDecodeFormatInformation(e,n);return r!==null?r:t.doDecodeFormatInformation(e^t.FORMAT_INFO_MASK_QR,n^t.FORMAT_INFO_MASK_QR)},t.doDecodeFormatInformation=function(e,n){var r,i,o=Number.MAX_SAFE_INTEGER,a=0;try{for(var s=CA(t.FORMAT_INFO_DECODE_LOOKUP),l=s.next();!l.done;l=s.next()){var c=l.value,u=c[0];if(u===e||u===n)return new t(c[1]);var d=t.numBitsDiffering(e,u);d<o&&(a=c[1],o=d),e!==n&&(d=t.numBitsDiffering(n,u),d<o&&(a=c[1],o=d))}}catch(f){r={error:f}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o<=3?new t(a):null},t.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},t.prototype.getDataMask=function(){return this.dataMask},t.prototype.hashCode=function(){return this.errorCorrectionLevel.getBits()<<3|this.dataMask},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.errorCorrectionLevel===n.errorCorrectionLevel&&this.dataMask===n.dataMask},t.FORMAT_INFO_MASK_QR=21522,t.FORMAT_INFO_DECODE_LOOKUP=[Int32Array.from([21522,0]),Int32Array.from([20773,1]),Int32Array.from([24188,2]),Int32Array.from([23371,3]),Int32Array.from([17913,4]),Int32Array.from([16590,5]),Int32Array.from([20375,6]),Int32Array.from([19104,7]),Int32Array.from([30660,8]),Int32Array.from([29427,9]),Int32Array.from([32170,10]),Int32Array.from([30877,11]),Int32Array.from([26159,12]),Int32Array.from([25368,13]),Int32Array.from([27713,14]),Int32Array.from([26998,15]),Int32Array.from([5769,16]),Int32Array.from([5054,17]),Int32Array.from([7399,18]),Int32Array.from([6608,19]),Int32Array.from([1890,20]),Int32Array.from([597,21]),Int32Array.from([3340,22]),Int32Array.from([2107,23]),Int32Array.from([13663,24]),Int32Array.from([12392,25]),Int32Array.from([16177,26]),Int32Array.from([14854,27]),Int32Array.from([9396,28]),Int32Array.from([8579,29]),Int32Array.from([11994,30]),Int32Array.from([11245,31])],t}(),SA=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},T=function(){function t(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.ecCodewordsPerBlock=e,this.ecBlocks=n}return t.prototype.getECCodewordsPerBlock=function(){return this.ecCodewordsPerBlock},t.prototype.getNumBlocks=function(){var e,n,r=0,i=this.ecBlocks;try{for(var o=SA(i),a=o.next();!a.done;a=o.next()){var s=a.value;r+=s.getCount()}}catch(l){e={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},t.prototype.getECBlocks=function(){return this.ecBlocks},t}(),_=function(){function t(e,n){this.count=e,this.dataCodewords=n}return t.prototype.getCount=function(){return this.count},t.prototype.getDataCodewords=function(){return this.dataCodewords},t}(),IA=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_r=function(){function t(e,n){for(var r,i,o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];this.versionNumber=e,this.alignmentPatternCenters=n,this.ecBlocks=o;var s=0,l=o[0].getECCodewordsPerBlock(),c=o[0].getECBlocks();try{for(var u=IA(c),d=u.next();!d.done;d=u.next()){var f=d.value;s+=f.getCount()*(f.getDataCodewords()+l)}}catch(h){r={error:h}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}this.totalCodewords=s}return t.prototype.getVersionNumber=function(){return this.versionNumber},t.prototype.getAlignmentPatternCenters=function(){return this.alignmentPatternCenters},t.prototype.getTotalCodewords=function(){return this.totalCodewords},t.prototype.getDimensionForVersion=function(){return 17+4*this.versionNumber},t.prototype.getECBlocksForLevel=function(e){return this.ecBlocks[e.getValue()]},t.getProvisionalVersionForDimension=function(e){if(e%4!==1)throw new H;try{return this.getVersionForNumber((e-17)/4)}catch{throw new H}},t.getVersionForNumber=function(e){if(e<1||e>40)throw new q;return t.VERSIONS[e-1]},t.decodeVersionInformation=function(e){for(var n=Number.MAX_SAFE_INTEGER,r=0,i=0;i<t.VERSION_DECODE_INFO.length;i++){var o=t.VERSION_DECODE_INFO[i];if(o===e)return t.getVersionForNumber(i+7);var a=dp.numBitsDiffering(e,o);a<n&&(r=i+7,n=a)}return n<=3?t.getVersionForNumber(r):null},t.prototype.buildFunctionPattern=function(){var e=this.getDimensionForVersion(),n=new yn(e);n.setRegion(0,0,9,9),n.setRegion(e-8,0,8,9),n.setRegion(0,e-8,9,8);for(var r=this.alignmentPatternCenters.length,i=0;i<r;i++)for(var o=this.alignmentPatternCenters[i]-2,a=0;a<r;a++)i===0&&(a===0||a===r-1)||i===r-1&&a===0||n.setRegion(this.alignmentPatternCenters[a]-2,o,5,5);return n.setRegion(6,9,1,e-17),n.setRegion(9,6,e-17,1),this.versionNumber>6&&(n.setRegion(e-11,0,3,6),n.setRegion(0,e-11,6,3)),n},t.prototype.toString=function(){return""+this.versionNumber},t.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),t.VERSIONS=[new t(1,new Int32Array(0),new T(7,new _(1,19)),new T(10,new _(1,16)),new T(13,new _(1,13)),new T(17,new _(1,9))),new t(2,Int32Array.from([6,18]),new T(10,new _(1,34)),new T(16,new _(1,28)),new T(22,new _(1,22)),new T(28,new _(1,16))),new t(3,Int32Array.from([6,22]),new T(15,new _(1,55)),new T(26,new _(1,44)),new T(18,new _(2,17)),new T(22,new _(2,13))),new t(4,Int32Array.from([6,26]),new T(20,new _(1,80)),new T(18,new _(2,32)),new T(26,new _(2,24)),new T(16,new _(4,9))),new t(5,Int32Array.from([6,30]),new T(26,new _(1,108)),new T(24,new _(2,43)),new T(18,new _(2,15),new _(2,16)),new T(22,new _(2,11),new _(2,12))),new t(6,Int32Array.from([6,34]),new T(18,new _(2,68)),new T(16,new _(4,27)),new T(24,new _(4,19)),new T(28,new _(4,15))),new t(7,Int32Array.from([6,22,38]),new T(20,new _(2,78)),new T(18,new _(4,31)),new T(18,new _(2,14),new _(4,15)),new T(26,new _(4,13),new _(1,14))),new t(8,Int32Array.from([6,24,42]),new T(24,new _(2,97)),new T(22,new _(2,38),new _(2,39)),new T(22,new _(4,18),new _(2,19)),new T(26,new _(4,14),new _(2,15))),new t(9,Int32Array.from([6,26,46]),new T(30,new _(2,116)),new T(22,new _(3,36),new _(2,37)),new T(20,new _(4,16),new _(4,17)),new T(24,new _(4,12),new _(4,13))),new t(10,Int32Array.from([6,28,50]),new T(18,new _(2,68),new _(2,69)),new T(26,new _(4,43),new _(1,44)),new T(24,new _(6,19),new _(2,20)),new T(28,new _(6,15),new _(2,16))),new t(11,Int32Array.from([6,30,54]),new T(20,new _(4,81)),new T(30,new _(1,50),new _(4,51)),new T(28,new _(4,22),new _(4,23)),new T(24,new _(3,12),new _(8,13))),new t(12,Int32Array.from([6,32,58]),new T(24,new _(2,92),new _(2,93)),new T(22,new _(6,36),new _(2,37)),new T(26,new _(4,20),new _(6,21)),new T(28,new _(7,14),new _(4,15))),new t(13,Int32Array.from([6,34,62]),new T(26,new _(4,107)),new T(22,new _(8,37),new _(1,38)),new T(24,new _(8,20),new _(4,21)),new T(22,new _(12,11),new _(4,12))),new t(14,Int32Array.from([6,26,46,66]),new T(30,new _(3,115),new _(1,116)),new T(24,new _(4,40),new _(5,41)),new T(20,new _(11,16),new _(5,17)),new T(24,new _(11,12),new _(5,13))),new t(15,Int32Array.from([6,26,48,70]),new T(22,new _(5,87),new _(1,88)),new T(24,new _(5,41),new _(5,42)),new T(30,new _(5,24),new _(7,25)),new T(24,new _(11,12),new _(7,13))),new t(16,Int32Array.from([6,26,50,74]),new T(24,new _(5,98),new _(1,99)),new T(28,new _(7,45),new _(3,46)),new T(24,new _(15,19),new _(2,20)),new T(30,new _(3,15),new _(13,16))),new t(17,Int32Array.from([6,30,54,78]),new T(28,new _(1,107),new _(5,108)),new T(28,new _(10,46),new _(1,47)),new T(28,new _(1,22),new _(15,23)),new T(28,new _(2,14),new _(17,15))),new t(18,Int32Array.from([6,30,56,82]),new T(30,new _(5,120),new _(1,121)),new T(26,new _(9,43),new _(4,44)),new T(28,new _(17,22),new _(1,23)),new T(28,new _(2,14),new _(19,15))),new t(19,Int32Array.from([6,30,58,86]),new T(28,new _(3,113),new _(4,114)),new T(26,new _(3,44),new _(11,45)),new T(26,new _(17,21),new _(4,22)),new T(26,new _(9,13),new _(16,14))),new t(20,Int32Array.from([6,34,62,90]),new T(28,new _(3,107),new _(5,108)),new T(26,new _(3,41),new _(13,42)),new T(30,new _(15,24),new _(5,25)),new T(28,new _(15,15),new _(10,16))),new t(21,Int32Array.from([6,28,50,72,94]),new T(28,new _(4,116),new _(4,117)),new T(26,new _(17,42)),new T(28,new _(17,22),new _(6,23)),new T(30,new _(19,16),new _(6,17))),new t(22,Int32Array.from([6,26,50,74,98]),new T(28,new _(2,111),new _(7,112)),new T(28,new _(17,46)),new T(30,new _(7,24),new _(16,25)),new T(24,new _(34,13))),new t(23,Int32Array.from([6,30,54,78,102]),new T(30,new _(4,121),new _(5,122)),new T(28,new _(4,47),new _(14,48)),new T(30,new _(11,24),new _(14,25)),new T(30,new _(16,15),new _(14,16))),new t(24,Int32Array.from([6,28,54,80,106]),new T(30,new _(6,117),new _(4,118)),new T(28,new _(6,45),new _(14,46)),new T(30,new _(11,24),new _(16,25)),new T(30,new _(30,16),new _(2,17))),new t(25,Int32Array.from([6,32,58,84,110]),new T(26,new _(8,106),new _(4,107)),new T(28,new _(8,47),new _(13,48)),new T(30,new _(7,24),new _(22,25)),new T(30,new _(22,15),new _(13,16))),new t(26,Int32Array.from([6,30,58,86,114]),new T(28,new _(10,114),new _(2,115)),new T(28,new _(19,46),new _(4,47)),new T(28,new _(28,22),new _(6,23)),new T(30,new _(33,16),new _(4,17))),new t(27,Int32Array.from([6,34,62,90,118]),new T(30,new _(8,122),new _(4,123)),new T(28,new _(22,45),new _(3,46)),new T(30,new _(8,23),new _(26,24)),new T(30,new _(12,15),new _(28,16))),new t(28,Int32Array.from([6,26,50,74,98,122]),new T(30,new _(3,117),new _(10,118)),new T(28,new _(3,45),new _(23,46)),new T(30,new _(4,24),new _(31,25)),new T(30,new _(11,15),new _(31,16))),new t(29,Int32Array.from([6,30,54,78,102,126]),new T(30,new _(7,116),new _(7,117)),new T(28,new _(21,45),new _(7,46)),new T(30,new _(1,23),new _(37,24)),new T(30,new _(19,15),new _(26,16))),new t(30,Int32Array.from([6,26,52,78,104,130]),new T(30,new _(5,115),new _(10,116)),new T(28,new _(19,47),new _(10,48)),new T(30,new _(15,24),new _(25,25)),new T(30,new _(23,15),new _(25,16))),new t(31,Int32Array.from([6,30,56,82,108,134]),new T(30,new _(13,115),new _(3,116)),new T(28,new _(2,46),new _(29,47)),new T(30,new _(42,24),new _(1,25)),new T(30,new _(23,15),new _(28,16))),new t(32,Int32Array.from([6,34,60,86,112,138]),new T(30,new _(17,115)),new T(28,new _(10,46),new _(23,47)),new T(30,new _(10,24),new _(35,25)),new T(30,new _(19,15),new _(35,16))),new t(33,Int32Array.from([6,30,58,86,114,142]),new T(30,new _(17,115),new _(1,116)),new T(28,new _(14,46),new _(21,47)),new T(30,new _(29,24),new _(19,25)),new T(30,new _(11,15),new _(46,16))),new t(34,Int32Array.from([6,34,62,90,118,146]),new T(30,new _(13,115),new _(6,116)),new T(28,new _(14,46),new _(23,47)),new T(30,new _(44,24),new _(7,25)),new T(30,new _(59,16),new _(1,17))),new t(35,Int32Array.from([6,30,54,78,102,126,150]),new T(30,new _(12,121),new _(7,122)),new T(28,new _(12,47),new _(26,48)),new T(30,new _(39,24),new _(14,25)),new T(30,new _(22,15),new _(41,16))),new t(36,Int32Array.from([6,24,50,76,102,128,154]),new T(30,new _(6,121),new _(14,122)),new T(28,new _(6,47),new _(34,48)),new T(30,new _(46,24),new _(10,25)),new T(30,new _(2,15),new _(64,16))),new t(37,Int32Array.from([6,28,54,80,106,132,158]),new T(30,new _(17,122),new _(4,123)),new T(28,new _(29,46),new _(14,47)),new T(30,new _(49,24),new _(10,25)),new T(30,new _(24,15),new _(46,16))),new t(38,Int32Array.from([6,32,58,84,110,136,162]),new T(30,new _(4,122),new _(18,123)),new T(28,new _(13,46),new _(32,47)),new T(30,new _(48,24),new _(14,25)),new T(30,new _(42,15),new _(32,16))),new t(39,Int32Array.from([6,26,54,82,110,138,166]),new T(30,new _(20,117),new _(4,118)),new T(28,new _(40,47),new _(7,48)),new T(30,new _(43,24),new _(22,25)),new T(30,new _(10,15),new _(67,16))),new t(40,Int32Array.from([6,30,58,86,114,142,170]),new T(30,new _(19,118),new _(6,119)),new T(28,new _(18,47),new _(31,48)),new T(30,new _(34,24),new _(34,25)),new T(30,new _(20,15),new _(61,16)))],t}(),tt;(function(t){t[t.DATA_MASK_000=0]="DATA_MASK_000",t[t.DATA_MASK_001=1]="DATA_MASK_001",t[t.DATA_MASK_010=2]="DATA_MASK_010",t[t.DATA_MASK_011=3]="DATA_MASK_011",t[t.DATA_MASK_100=4]="DATA_MASK_100",t[t.DATA_MASK_101=5]="DATA_MASK_101",t[t.DATA_MASK_110=6]="DATA_MASK_110",t[t.DATA_MASK_111=7]="DATA_MASK_111"})(tt||(tt={}));var yd=function(){function t(e,n){this.value=e,this.isMasked=n}return t.prototype.unmaskBitMatrix=function(e,n){for(var r=0;r<n;r++)for(var i=0;i<n;i++)this.isMasked(r,i)&&e.flip(i,r)},t.values=new Map([[tt.DATA_MASK_000,new t(tt.DATA_MASK_000,function(e,n){return(e+n&1)===0})],[tt.DATA_MASK_001,new t(tt.DATA_MASK_001,function(e,n){return(e&1)===0})],[tt.DATA_MASK_010,new t(tt.DATA_MASK_010,function(e,n){return n%3===0})],[tt.DATA_MASK_011,new t(tt.DATA_MASK_011,function(e,n){return(e+n)%3===0})],[tt.DATA_MASK_100,new t(tt.DATA_MASK_100,function(e,n){return(Math.floor(e/2)+Math.floor(n/3)&1)===0})],[tt.DATA_MASK_101,new t(tt.DATA_MASK_101,function(e,n){return e*n%6===0})],[tt.DATA_MASK_110,new t(tt.DATA_MASK_110,function(e,n){return e*n%6<3})],[tt.DATA_MASK_111,new t(tt.DATA_MASK_111,function(e,n){return(e+n+e*n%3&1)===0})]]),t}(),TA=function(){function t(e){var n=e.getHeight();if(n<21||(n&3)!==1)throw new H;this.bitMatrix=e}return t.prototype.readFormatInformation=function(){if(this.parsedFormatInfo!==null&&this.parsedFormatInfo!==void 0)return this.parsedFormatInfo;for(var e=0,n=0;n<6;n++)e=this.copyBit(n,8,e);e=this.copyBit(7,8,e),e=this.copyBit(8,8,e),e=this.copyBit(8,7,e);for(var r=5;r>=0;r--)e=this.copyBit(8,r,e);for(var i=this.bitMatrix.getHeight(),o=0,a=i-7,r=i-1;r>=a;r--)o=this.copyBit(8,r,o);for(var n=i-8;n<i;n++)o=this.copyBit(n,8,o);if(this.parsedFormatInfo=dp.decodeFormatInformation(e,o),this.parsedFormatInfo!==null)return this.parsedFormatInfo;throw new H},t.prototype.readVersion=function(){if(this.parsedVersion!==null&&this.parsedVersion!==void 0)return this.parsedVersion;var e=this.bitMatrix.getHeight(),n=Math.floor((e-17)/4);if(n<=6)return _r.getVersionForNumber(n);for(var r=0,i=e-11,o=5;o>=0;o--)for(var a=e-9;a>=i;a--)r=this.copyBit(a,o,r);var s=_r.decodeVersionInformation(r);if(s!==null&&s.getDimensionForVersion()===e)return this.parsedVersion=s,s;r=0;for(var a=5;a>=0;a--)for(var o=e-9;o>=i;o--)r=this.copyBit(a,o,r);if(s=_r.decodeVersionInformation(r),s!==null&&s.getDimensionForVersion()===e)return this.parsedVersion=s,s;throw new H},t.prototype.copyBit=function(e,n,r){var i=this.isMirror?this.bitMatrix.get(n,e):this.bitMatrix.get(e,n);return i?r<<1|1:r<<1},t.prototype.readCodewords=function(){var e=this.readFormatInformation(),n=this.readVersion(),r=yd.values.get(e.getDataMask()),i=this.bitMatrix.getHeight();r.unmaskBitMatrix(this.bitMatrix,i);for(var o=n.buildFunctionPattern(),a=!0,s=new Uint8Array(n.getTotalCodewords()),l=0,c=0,u=0,d=i-1;d>0;d-=2){d===6&&d--;for(var f=0;f<i;f++)for(var h=a?i-1-f:f,p=0;p<2;p++)o.get(d-p,h)||(u++,c<<=1,this.bitMatrix.get(d-p,h)&&(c|=1),u===8&&(s[l++]=c,u=0,c=0));a=!a}if(l!==n.getTotalCodewords())throw new H;return s},t.prototype.remask=function(){if(this.parsedFormatInfo!==null){var e=yd.values[this.parsedFormatInfo.getDataMask()],n=this.bitMatrix.getHeight();e.unmaskBitMatrix(this.bitMatrix,n)}},t.prototype.setMirror=function(e){this.parsedVersion=null,this.parsedFormatInfo=null,this.isMirror=e},t.prototype.mirror=function(){for(var e=this.bitMatrix,n=0,r=e.getWidth();n<r;n++)for(var i=n+1,o=e.getHeight();i<o;i++)e.get(n,i)!==e.get(i,n)&&(e.flip(i,n),e.flip(n,i))},t}(),wd=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},OA=function(){function t(e,n){this.numDataCodewords=e,this.codewords=n}return t.getDataBlocks=function(e,n,r){var i,o,a,s;if(e.length!==n.getTotalCodewords())throw new q;var l=n.getECBlocksForLevel(r),c=0,u=l.getECBlocks();try{for(var d=wd(u),f=d.next();!f.done;f=d.next()){var h=f.value;c+=h.getCount()}}catch(G){i={error:G}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}var p=new Array(c),g=0;try{for(var b=wd(u),m=b.next();!m.done;m=b.next())for(var h=m.value,v=0;v<h.getCount();v++){var w=h.getDataCodewords(),y=l.getECCodewordsPerBlock()+w;p[g++]=new t(w,new Uint8Array(y))}}catch(G){a={error:G}}finally{try{m&&!m.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}for(var C=p[0].codewords.length,E=p.length-1;E>=0;){var k=p[E].codewords.length;if(k===C)break;E--}E++;for(var N=C-l.getECCodewordsPerBlock(),D=0,v=0;v<N;v++)for(var O=0;O<g;O++)p[O].codewords[v]=e[D++];for(var O=E;O<g;O++)p[O].codewords[N]=e[D++];for(var L=p[0].codewords.length,v=N;v<L;v++)for(var O=0;O<g;O++){var B=O<E?v:v+1;p[O].codewords[B]=e[D++]}return p},t.prototype.getNumDataCodewords=function(){return this.numDataCodewords},t.prototype.getCodewords=function(){return this.codewords},t}(),Ht;(function(t){t[t.TERMINATOR=0]="TERMINATOR",t[t.NUMERIC=1]="NUMERIC",t[t.ALPHANUMERIC=2]="ALPHANUMERIC",t[t.STRUCTURED_APPEND=3]="STRUCTURED_APPEND",t[t.BYTE=4]="BYTE",t[t.ECI=5]="ECI",t[t.KANJI=6]="KANJI",t[t.FNC1_FIRST_POSITION=7]="FNC1_FIRST_POSITION",t[t.FNC1_SECOND_POSITION=8]="FNC1_SECOND_POSITION",t[t.HANZI=9]="HANZI"})(Ht||(Ht={}));var De=function(){function t(e,n,r,i){this.value=e,this.stringValue=n,this.characterCountBitsForVersions=r,this.bits=i,t.FOR_BITS.set(i,this),t.FOR_VALUE.set(e,this)}return t.forBits=function(e){var n=t.FOR_BITS.get(e);if(n===void 0)throw new q;return n},t.prototype.getCharacterCountBits=function(e){var n=e.getVersionNumber(),r;return n<=9?r=0:n<=26?r=1:r=2,this.characterCountBitsForVersions[r]},t.prototype.getValue=function(){return this.value},t.prototype.getBits=function(){return this.bits},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.value===n.value},t.prototype.toString=function(){return this.stringValue},t.FOR_BITS=new Map,t.FOR_VALUE=new Map,t.TERMINATOR=new t(Ht.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0),t.NUMERIC=new t(Ht.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1),t.ALPHANUMERIC=new t(Ht.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2),t.STRUCTURED_APPEND=new t(Ht.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3),t.BYTE=new t(Ht.BYTE,"BYTE",Int32Array.from([8,16,16]),4),t.ECI=new t(Ht.ECI,"ECI",Int32Array.from([0,0,0]),7),t.KANJI=new t(Ht.KANJI,"KANJI",Int32Array.from([8,10,12]),8),t.FNC1_FIRST_POSITION=new t(Ht.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5),t.FNC1_SECOND_POSITION=new t(Ht.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9),t.HANZI=new t(Ht.HANZI,"HANZI",Int32Array.from([8,10,12]),13),t}(),DA=function(){function t(){}return t.decode=function(e,n,r,i){var o=new up(e),a=new Ae,s=new Array,l=-1,c=-1;try{var u=null,d=!1,f=void 0;do{if(o.available()<4)f=De.TERMINATOR;else{var h=o.readBits(4);f=De.forBits(h)}switch(f){case De.TERMINATOR:break;case De.FNC1_FIRST_POSITION:case De.FNC1_SECOND_POSITION:d=!0;break;case De.STRUCTURED_APPEND:if(o.available()<16)throw new H;l=o.readBits(8),c=o.readBits(8);break;case De.ECI:var p=t.parseECIValue(o);if(u=Je.getCharacterSetECIByValue(p),u===null)throw new H;break;case De.HANZI:var g=o.readBits(4),b=o.readBits(f.getCharacterCountBits(n));g===t.GB2312_SUBSET&&t.decodeHanziSegment(o,a,b);break;default:var m=o.readBits(f.getCharacterCountBits(n));switch(f){case De.NUMERIC:t.decodeNumericSegment(o,a,m);break;case De.ALPHANUMERIC:t.decodeAlphanumericSegment(o,a,m,d);break;case De.BYTE:t.decodeByteSegment(o,a,m,u,s,i);break;case De.KANJI:t.decodeKanjiSegment(o,a,m);break;default:throw new H}break}}while(f!==De.TERMINATOR)}catch{throw new H}return new Ea(e,a.toString(),s.length===0?null:s,r===null?null:r.toString(),l,c)},t.decodeHanziSegment=function(e,n,r){if(r*13>e.available())throw new H;for(var i=new Uint8Array(2*r),o=0;r>0;){var a=e.readBits(13),s=a/96<<8&4294967295|a%96;s<959?s+=41377:s+=42657,i[o]=s>>8&255,i[o+1]=s&255,o+=2,r--}try{n.append(xn.decode(i,Ce.GB2312))}catch(l){throw new H(l)}},t.decodeKanjiSegment=function(e,n,r){if(r*13>e.available())throw new H;for(var i=new Uint8Array(2*r),o=0;r>0;){var a=e.readBits(13),s=a/192<<8&4294967295|a%192;s<7936?s+=33088:s+=49472,i[o]=s>>8,i[o+1]=s,o+=2,r--}try{n.append(xn.decode(i,Ce.SHIFT_JIS))}catch(l){throw new H(l)}},t.decodeByteSegment=function(e,n,r,i,o,a){if(8*r>e.available())throw new H;for(var s=new Uint8Array(r),l=0;l<r;l++)s[l]=e.readBits(8);var c;i===null?c=Ce.guessEncoding(s,a):c=i.getName();try{n.append(xn.decode(s,c))}catch(u){throw new H(u)}o.push(s)},t.toAlphaNumericChar=function(e){if(e>=t.ALPHANUMERIC_CHARS.length)throw new H;return t.ALPHANUMERIC_CHARS[e]},t.decodeAlphanumericSegment=function(e,n,r,i){for(var o=n.length();r>1;){if(e.available()<11)throw new H;var a=e.readBits(11);n.append(t.toAlphaNumericChar(Math.floor(a/45))),n.append(t.toAlphaNumericChar(a%45)),r-=2}if(r===1){if(e.available()<6)throw new H;n.append(t.toAlphaNumericChar(e.readBits(6)))}if(i)for(var s=o;s<n.length();s++)n.charAt(s)==="%"&&(s<n.length()-1&&n.charAt(s+1)==="%"?n.deleteCharAt(s+1):n.setCharAt(s,String.fromCharCode(29)))},t.decodeNumericSegment=function(e,n,r){for(;r>=3;){if(e.available()<10)throw new H;var i=e.readBits(10);if(i>=1e3)throw new H;n.append(t.toAlphaNumericChar(Math.floor(i/100))),n.append(t.toAlphaNumericChar(Math.floor(i/10)%10)),n.append(t.toAlphaNumericChar(i%10)),r-=3}if(r===2){if(e.available()<7)throw new H;var o=e.readBits(7);if(o>=100)throw new H;n.append(t.toAlphaNumericChar(Math.floor(o/10))),n.append(t.toAlphaNumericChar(o%10))}else if(r===1){if(e.available()<4)throw new H;var a=e.readBits(4);if(a>=10)throw new H;n.append(t.toAlphaNumericChar(a))}},t.parseECIValue=function(e){var n=e.readBits(8);if(!(n&128))return n&127;if((n&192)===128){var r=e.readBits(8);return(n&63)<<8&4294967295|r}if((n&224)===192){var i=e.readBits(16);return(n&31)<<16&4294967295|i}throw new H},t.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",t.GB2312_SUBSET=1,t}(),fp=function(){function t(e){this.mirrored=e}return t.prototype.isMirrored=function(){return this.mirrored},t.prototype.applyMirroredCorrection=function(e){if(!(!this.mirrored||e===null||e.length<3)){var n=e[0];e[0]=e[2],e[2]=n}},t}(),_d=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},NA=function(){function t(){this.rsDecoder=new Aa(Ct.QR_CODE_FIELD_256)}return t.prototype.decodeBooleanArray=function(e,n){return this.decodeBitMatrix(yn.parseFromBooleanArray(e),n)},t.prototype.decodeBitMatrix=function(e,n){var r=new TA(e),i=null;try{return this.decodeBitMatrixParser(r,n)}catch(a){i=a}try{r.remask(),r.setMirror(!0),r.readVersion(),r.readFormatInformation(),r.mirror();var o=this.decodeBitMatrixParser(r,n);return o.setOther(new fp(!0)),o}catch(a){throw i!==null?i:a}},t.prototype.decodeBitMatrixParser=function(e,n){var r,i,o,a,s=e.readVersion(),l=e.readFormatInformation().getErrorCorrectionLevel(),c=e.readCodewords(),u=OA.getDataBlocks(c,s,l),d=0;try{for(var f=_d(u),h=f.next();!h.done;h=f.next()){var p=h.value;d+=p.getNumDataCodewords()}}catch(E){r={error:E}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}var g=new Uint8Array(d),b=0;try{for(var m=_d(u),v=m.next();!v.done;v=m.next()){var p=v.value,w=p.getCodewords(),y=p.getNumDataCodewords();this.correctErrors(w,y);for(var C=0;C<y;C++)g[b++]=w[C]}}catch(E){o={error:E}}finally{try{v&&!v.done&&(a=m.return)&&a.call(m)}finally{if(o)throw o.error}}return DA.decode(g,s,l,n)},t.prototype.correctErrors=function(e,n){var r=new Int32Array(e);try{this.rsDecoder.decode(r,e.length-n)}catch{throw new lt}for(var i=0;i<n;i++)e[i]=r[i]},t}(),PA=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),RA=function(t){PA(e,t);function e(n,r,i){var o=t.call(this,n,r)||this;return o.estimatedModuleSize=i,o}return e.prototype.aboutEquals=function(n,r,i){if(Math.abs(r-this.getY())<=n&&Math.abs(i-this.getX())<=n){var o=Math.abs(n-this.estimatedModuleSize);return o<=1||o<=this.estimatedModuleSize}return!1},e.prototype.combineEstimate=function(n,r,i){var o=(this.getX()+r)/2,a=(this.getY()+n)/2,s=(this.estimatedModuleSize+i)/2;return new e(o,a,s)},e}(Y),MA=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},LA=function(){function t(e,n,r,i,o,a,s){this.image=e,this.startX=n,this.startY=r,this.width=i,this.height=o,this.moduleSize=a,this.resultPointCallback=s,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return t.prototype.find=function(){for(var e=this.startX,n=this.height,r=this.width,i=e+r,o=this.startY+n/2,a=new Int32Array(3),s=this.image,l=0;l<n;l++){var c=o+(l&1?-Math.floor((l+1)/2):Math.floor((l+1)/2));a[0]=0,a[1]=0,a[2]=0;for(var u=e;u<i&&!s.get(u,c);)u++;for(var d=0;u<i;){if(s.get(u,c))if(d===1)a[1]++;else if(d===2){if(this.foundPatternCross(a)){var f=this.handlePossibleCenter(a,c,u);if(f!==null)return f}a[0]=a[2],a[1]=1,a[2]=0,d=1}else a[++d]++;else d===1&&d++,a[d]++;u++}if(this.foundPatternCross(a)){var f=this.handlePossibleCenter(a,c,i);if(f!==null)return f}}if(this.possibleCenters.length!==0)return this.possibleCenters[0];throw new M},t.centerFromEnd=function(e,n){return n-e[2]-e[1]/2},t.prototype.foundPatternCross=function(e){for(var n=this.moduleSize,r=n/2,i=0;i<3;i++)if(Math.abs(n-e[i])>=r)return!1;return!0},t.prototype.crossCheckVertical=function(e,n,r,i){var o=this.image,a=o.getHeight(),s=this.crossCheckStateCount;s[0]=0,s[1]=0,s[2]=0;for(var l=e;l>=0&&o.get(n,l)&&s[1]<=r;)s[1]++,l--;if(l<0||s[1]>r)return NaN;for(;l>=0&&!o.get(n,l)&&s[0]<=r;)s[0]++,l--;if(s[0]>r)return NaN;for(l=e+1;l<a&&o.get(n,l)&&s[1]<=r;)s[1]++,l++;if(l===a||s[1]>r)return NaN;for(;l<a&&!o.get(n,l)&&s[2]<=r;)s[2]++,l++;if(s[2]>r)return NaN;var c=s[0]+s[1]+s[2];return 5*Math.abs(c-i)>=2*i?NaN:this.foundPatternCross(s)?t.centerFromEnd(s,l):NaN},t.prototype.handlePossibleCenter=function(e,n,r){var i,o,a=e[0]+e[1]+e[2],s=t.centerFromEnd(e,r),l=this.crossCheckVertical(n,s,2*e[1],a);if(!isNaN(l)){var c=(e[0]+e[1]+e[2])/3;try{for(var u=MA(this.possibleCenters),d=u.next();!d.done;d=u.next()){var f=d.value;if(f.aboutEquals(c,l,s))return f.combineEstimate(l,s,c)}}catch(p){i={error:p}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}var h=new RA(s,l,c);this.possibleCenters.push(h),this.resultPointCallback!==null&&this.resultPointCallback!==void 0&&this.resultPointCallback.foundPossibleResultPoint(h)}return null},t}(),FA=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),BA=function(t){FA(e,t);function e(n,r,i,o){var a=t.call(this,n,r)||this;return a.estimatedModuleSize=i,a.count=o,o===void 0&&(a.count=1),a}return e.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},e.prototype.getCount=function(){return this.count},e.prototype.aboutEquals=function(n,r,i){if(Math.abs(r-this.getY())<=n&&Math.abs(i-this.getX())<=n){var o=Math.abs(n-this.estimatedModuleSize);return o<=1||o<=this.estimatedModuleSize}return!1},e.prototype.combineEstimate=function(n,r,i){var o=this.count+1,a=(this.count*this.getX()+r)/o,s=(this.count*this.getY()+n)/o,l=(this.count*this.estimatedModuleSize+i)/o;return new e(a,s,l,o)},e}(Y),$A=function(){function t(e){this.bottomLeft=e[0],this.topLeft=e[1],this.topRight=e[2]}return t.prototype.getBottomLeft=function(){return this.bottomLeft},t.prototype.getTopLeft=function(){return this.topLeft},t.prototype.getTopRight=function(){return this.topRight},t}(),vi=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},VA=function(){function t(e,n){this.image=e,this.resultPointCallback=n,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=n}return t.prototype.getImage=function(){return this.image},t.prototype.getPossibleCenters=function(){return this.possibleCenters},t.prototype.find=function(e){var n=e!=null&&e.get(Fe.TRY_HARDER)!==void 0,r=e!=null&&e.get(Fe.PURE_BARCODE)!==void 0,i=this.image,o=i.getHeight(),a=i.getWidth(),s=Math.floor(3*o/(4*t.MAX_MODULES));(s<t.MIN_SKIP||n)&&(s=t.MIN_SKIP);for(var l=!1,c=new Int32Array(5),u=s-1;u<o&&!l;u+=s){c[0]=0,c[1]=0,c[2]=0,c[3]=0,c[4]=0;for(var d=0,f=0;f<a;f++)if(i.get(f,u))(d&1)===1&&d++,c[d]++;else if(d&1)c[d]++;else if(d===4)if(t.foundPatternCross(c)){var h=this.handlePossibleCenter(c,u,f,r);if(h===!0)if(s=2,this.hasSkipped===!0)l=this.haveMultiplyConfirmedCenters();else{var p=this.findRowSkip();p>c[2]&&(u+=p-c[2]-s,f=a-1)}else{c[0]=c[2],c[1]=c[3],c[2]=c[4],c[3]=1,c[4]=0,d=3;continue}d=0,c[0]=0,c[1]=0,c[2]=0,c[3]=0,c[4]=0}else c[0]=c[2],c[1]=c[3],c[2]=c[4],c[3]=1,c[4]=0,d=3;else c[++d]++;if(t.foundPatternCross(c)){var h=this.handlePossibleCenter(c,u,a,r);h===!0&&(s=c[0],this.hasSkipped&&(l=this.haveMultiplyConfirmedCenters()))}}var g=this.selectBestPatterns();return Y.orderBestPatterns(g),new $A(g)},t.centerFromEnd=function(e,n){return n-e[4]-e[3]-e[2]/2},t.foundPatternCross=function(e){for(var n=0,r=0;r<5;r++){var i=e[r];if(i===0)return!1;n+=i}if(n<7)return!1;var o=n/7,a=o/2;return Math.abs(o-e[0])<a&&Math.abs(o-e[1])<a&&Math.abs(3*o-e[2])<3*a&&Math.abs(o-e[3])<a&&Math.abs(o-e[4])<a},t.prototype.getCrossCheckStateCount=function(){var e=this.crossCheckStateCount;return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e},t.prototype.crossCheckDiagonal=function(e,n,r,i){for(var o=this.getCrossCheckStateCount(),a=0,s=this.image;e>=a&&n>=a&&s.get(n-a,e-a);)o[2]++,a++;if(e<a||n<a)return!1;for(;e>=a&&n>=a&&!s.get(n-a,e-a)&&o[1]<=r;)o[1]++,a++;if(e<a||n<a||o[1]>r)return!1;for(;e>=a&&n>=a&&s.get(n-a,e-a)&&o[0]<=r;)o[0]++,a++;if(o[0]>r)return!1;var l=s.getHeight(),c=s.getWidth();for(a=1;e+a<l&&n+a<c&&s.get(n+a,e+a);)o[2]++,a++;if(e+a>=l||n+a>=c)return!1;for(;e+a<l&&n+a<c&&!s.get(n+a,e+a)&&o[3]<r;)o[3]++,a++;if(e+a>=l||n+a>=c||o[3]>=r)return!1;for(;e+a<l&&n+a<c&&s.get(n+a,e+a)&&o[4]<r;)o[4]++,a++;if(o[4]>=r)return!1;var u=o[0]+o[1]+o[2]+o[3]+o[4];return Math.abs(u-i)<2*i&&t.foundPatternCross(o)},t.prototype.crossCheckVertical=function(e,n,r,i){for(var o=this.image,a=o.getHeight(),s=this.getCrossCheckStateCount(),l=e;l>=0&&o.get(n,l);)s[2]++,l--;if(l<0)return NaN;for(;l>=0&&!o.get(n,l)&&s[1]<=r;)s[1]++,l--;if(l<0||s[1]>r)return NaN;for(;l>=0&&o.get(n,l)&&s[0]<=r;)s[0]++,l--;if(s[0]>r)return NaN;for(l=e+1;l<a&&o.get(n,l);)s[2]++,l++;if(l===a)return NaN;for(;l<a&&!o.get(n,l)&&s[3]<r;)s[3]++,l++;if(l===a||s[3]>=r)return NaN;for(;l<a&&o.get(n,l)&&s[4]<r;)s[4]++,l++;if(s[4]>=r)return NaN;var c=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(c-i)>=2*i?NaN:t.foundPatternCross(s)?t.centerFromEnd(s,l):NaN},t.prototype.crossCheckHorizontal=function(e,n,r,i){for(var o=this.image,a=o.getWidth(),s=this.getCrossCheckStateCount(),l=e;l>=0&&o.get(l,n);)s[2]++,l--;if(l<0)return NaN;for(;l>=0&&!o.get(l,n)&&s[1]<=r;)s[1]++,l--;if(l<0||s[1]>r)return NaN;for(;l>=0&&o.get(l,n)&&s[0]<=r;)s[0]++,l--;if(s[0]>r)return NaN;for(l=e+1;l<a&&o.get(l,n);)s[2]++,l++;if(l===a)return NaN;for(;l<a&&!o.get(l,n)&&s[3]<r;)s[3]++,l++;if(l===a||s[3]>=r)return NaN;for(;l<a&&o.get(l,n)&&s[4]<r;)s[4]++,l++;if(s[4]>=r)return NaN;var c=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(c-i)>=i?NaN:t.foundPatternCross(s)?t.centerFromEnd(s,l):NaN},t.prototype.handlePossibleCenter=function(e,n,r,i){var o=e[0]+e[1]+e[2]+e[3]+e[4],a=t.centerFromEnd(e,r),s=this.crossCheckVertical(n,Math.floor(a),e[2],o);if(!isNaN(s)&&(a=this.crossCheckHorizontal(Math.floor(a),Math.floor(s),e[2],o),!isNaN(a)&&(!i||this.crossCheckDiagonal(Math.floor(s),Math.floor(a),e[2],o)))){for(var l=o/7,c=!1,u=this.possibleCenters,d=0,f=u.length;d<f;d++){var h=u[d];if(h.aboutEquals(l,s,a)){u[d]=h.combineEstimate(s,a,l),c=!0;break}}if(!c){var p=new BA(a,s,l);u.push(p),this.resultPointCallback!==null&&this.resultPointCallback!==void 0&&this.resultPointCallback.foundPossibleResultPoint(p)}return!0}return!1},t.prototype.findRowSkip=function(){var e,n,r=this.possibleCenters.length;if(r<=1)return 0;var i=null;try{for(var o=vi(this.possibleCenters),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.getCount()>=t.CENTER_QUORUM)if(i==null)i=s;else return this.hasSkipped=!0,Math.floor((Math.abs(i.getX()-s.getX())-Math.abs(i.getY()-s.getY()))/2)}}catch(l){e={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return 0},t.prototype.haveMultiplyConfirmedCenters=function(){var e,n,r,i,o=0,a=0,s=this.possibleCenters.length;try{for(var l=vi(this.possibleCenters),c=l.next();!c.done;c=l.next()){var u=c.value;u.getCount()>=t.CENTER_QUORUM&&(o++,a+=u.getEstimatedModuleSize())}}catch(g){e={error:g}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}if(o<3)return!1;var d=a/s,f=0;try{for(var h=vi(this.possibleCenters),p=h.next();!p.done;p=h.next()){var u=p.value;f+=Math.abs(u.getEstimatedModuleSize()-d)}}catch(g){r={error:g}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return f<=.05*a},t.prototype.selectBestPatterns=function(){var e,n,r,i,o=this.possibleCenters.length;if(o<3)throw new M;var a=this.possibleCenters,s;if(o>3){var l=0,c=0;try{for(var u=vi(this.possibleCenters),d=u.next();!d.done;d=u.next()){var f=d.value,h=f.getEstimatedModuleSize();l+=h,c+=h*h}}catch(C){e={error:C}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}s=l/o;var p=Math.sqrt(c/o-s*s);a.sort(function(C,E){var k=Math.abs(E.getEstimatedModuleSize()-s),N=Math.abs(C.getEstimatedModuleSize()-s);return k<N?-1:k>N?1:0});for(var g=Math.max(.2*s,p),b=0;b<a.length&&a.length>3;b++){var m=a[b];Math.abs(m.getEstimatedModuleSize()-s)>g&&(a.splice(b,1),b--)}}if(a.length>3){var l=0;try{for(var v=vi(a),w=v.next();!w.done;w=v.next()){var y=w.value;l+=y.getEstimatedModuleSize()}}catch(E){r={error:E}}finally{try{w&&!w.done&&(i=v.return)&&i.call(v)}finally{if(r)throw r.error}}s=l/a.length,a.sort(function(E,k){if(k.getCount()===E.getCount()){var N=Math.abs(k.getEstimatedModuleSize()-s),D=Math.abs(E.getEstimatedModuleSize()-s);return N<D?1:N>D?-1:0}else return k.getCount()-E.getCount()}),a.splice(3)}return[a[0],a[1],a[2]]},t.CENTER_QUORUM=2,t.MIN_SKIP=3,t.MAX_MODULES=57,t}(),UA=function(){function t(e){this.image=e}return t.prototype.getImage=function(){return this.image},t.prototype.getResultPointCallback=function(){return this.resultPointCallback},t.prototype.detect=function(e){this.resultPointCallback=e==null?null:e.get(Fe.NEED_RESULT_POINT_CALLBACK);var n=new VA(this.image,this.resultPointCallback),r=n.find(e);return this.processFinderPatternInfo(r)},t.prototype.processFinderPatternInfo=function(e){var n=e.getTopLeft(),r=e.getTopRight(),i=e.getBottomLeft(),o=this.calculateModuleSize(n,r,i);if(o<1)throw new M("No pattern found in proccess finder.");var a=t.computeDimension(n,r,i,o),s=_r.getProvisionalVersionForDimension(a),l=s.getDimensionForVersion()-7,c=null;if(s.getAlignmentPatternCenters().length>0)for(var u=r.getX()-n.getX()+i.getX(),d=r.getY()-n.getY()+i.getY(),f=1-3/l,h=Math.floor(n.getX()+f*(u-n.getX())),p=Math.floor(n.getY()+f*(d-n.getY())),g=4;g<=16;g<<=1)try{c=this.findAlignmentInRegion(o,h,p,g);break}catch(w){if(!(w instanceof M))throw w}var b=t.createTransform(n,r,i,c,a),m=t.sampleGrid(this.image,b,a),v;return c===null?v=[i,n,r]:v=[i,n,r,c],new dc(m,v)},t.createTransform=function(e,n,r,i,o){var a=o-3.5,s,l,c,u;return i!==null?(s=i.getX(),l=i.getY(),c=a-3,u=c):(s=n.getX()-e.getX()+r.getX(),l=n.getY()-e.getY()+r.getY(),c=a,u=a),ap.quadrilateralToQuadrilateral(3.5,3.5,a,3.5,c,u,3.5,a,e.getX(),e.getY(),n.getX(),n.getY(),s,l,r.getX(),r.getY())},t.sampleGrid=function(e,n,r){var i=fc.getInstance();return i.sampleGridWithTransform(e,r,r,n)},t.computeDimension=function(e,n,r,i){var o=pe.round(Y.distance(e,n)/i),a=pe.round(Y.distance(e,r)/i),s=Math.floor((o+a)/2)+7;switch(s&3){case 0:s++;break;case 2:s--;break;case 3:throw new M("Dimensions could be not found.")}return s},t.prototype.calculateModuleSize=function(e,n,r){return(this.calculateModuleSizeOneWay(e,n)+this.calculateModuleSizeOneWay(e,r))/2},t.prototype.calculateModuleSizeOneWay=function(e,n){var r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(n.getX()),Math.floor(n.getY())),i=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(n.getX()),Math.floor(n.getY()),Math.floor(e.getX()),Math.floor(e.getY()));return isNaN(r)?i/7:isNaN(i)?r/7:(r+i)/14},t.prototype.sizeOfBlackWhiteBlackRunBothWays=function(e,n,r,i){var o=this.sizeOfBlackWhiteBlackRun(e,n,r,i),a=1,s=e-(r-e);s<0?(a=e/(e-s),s=0):s>=this.image.getWidth()&&(a=(this.image.getWidth()-1-e)/(s-e),s=this.image.getWidth()-1);var l=Math.floor(n-(i-n)*a);return a=1,l<0?(a=n/(n-l),l=0):l>=this.image.getHeight()&&(a=(this.image.getHeight()-1-n)/(l-n),l=this.image.getHeight()-1),s=Math.floor(e+(s-e)*a),o+=this.sizeOfBlackWhiteBlackRun(e,n,s,l),o-1},t.prototype.sizeOfBlackWhiteBlackRun=function(e,n,r,i){var o=Math.abs(i-n)>Math.abs(r-e);if(o){var a=e;e=n,n=a,a=r,r=i,i=a}for(var s=Math.abs(r-e),l=Math.abs(i-n),c=-s/2,u=e<r?1:-1,d=n<i?1:-1,f=0,h=r+u,p=e,g=n;p!==h;p+=u){var b=o?g:p,m=o?p:g;if(f===1===this.image.get(b,m)){if(f===2)return pe.distance(p,g,e,n);f++}if(c+=l,c>0){if(g===i)break;g+=d,c-=s}}return f===2?pe.distance(r+u,i,e,n):NaN},t.prototype.findAlignmentInRegion=function(e,n,r,i){var o=Math.floor(i*e),a=Math.max(0,n-o),s=Math.min(this.image.getWidth()-1,n+o);if(s-a<e*3)throw new M("Alignment top exceeds estimated module size.");var l=Math.max(0,r-o),c=Math.min(this.image.getHeight()-1,r+o);if(c-l<e*3)throw new M("Alignment bottom exceeds estimated module size.");var u=new LA(this.image,a,l,s-a,c-l,e,this.resultPointCallback);return u.find()},t}(),rl=function(){function t(){this.decoder=new NA}return t.prototype.getDecoder=function(){return this.decoder},t.prototype.decode=function(e,n){var r,i;if(n!=null&&n.get(Fe.PURE_BARCODE)!==void 0){var o=t.extractPureBits(e.getBlackMatrix());r=this.decoder.decodeBitMatrix(o,n),i=t.NO_POINTS}else{var a=new UA(e.getBlackMatrix()).detect(n);r=this.decoder.decodeBitMatrix(a.getBits(),n),i=a.getPoints()}r.getOther()instanceof fp&&r.getOther().applyMirroredCorrection(i);var s=new Ot(r.getText(),r.getRawBytes(),void 0,i,Q.QR_CODE,void 0),l=r.getByteSegments();l!==null&&s.putMetadata(ct.BYTE_SEGMENTS,l);var c=r.getECLevel();return c!==null&&s.putMetadata(ct.ERROR_CORRECTION_LEVEL,c),r.hasStructuredAppend()&&(s.putMetadata(ct.STRUCTURED_APPEND_SEQUENCE,r.getStructuredAppendSequenceNumber()),s.putMetadata(ct.STRUCTURED_APPEND_PARITY,r.getStructuredAppendParity())),s},t.prototype.reset=function(){},t.extractPureBits=function(e){var n=e.getTopLeftOnBit(),r=e.getBottomRightOnBit();if(n===null||r===null)throw new M;var i=this.moduleSize(n,e),o=n[1],a=r[1],s=n[0],l=r[0];if(s>=l||o>=a)throw new M;if(a-o!==l-s&&(l=s+(a-o),l>=e.getWidth()))throw new M;var c=Math.round((l-s+1)/i),u=Math.round((a-o+1)/i);if(c<=0||u<=0)throw new M;if(u!==c)throw new M;var d=Math.floor(i/2);o+=d,s+=d;var f=s+Math.floor((c-1)*i)-l;if(f>0){if(f>d)throw new M;s-=f}var h=o+Math.floor((u-1)*i)-a;if(h>0){if(h>d)throw new M;o-=h}for(var p=new yn(c,u),g=0;g<u;g++)for(var b=o+Math.floor(g*i),m=0;m<c;m++)e.get(s+Math.floor(m*i),b)&&p.set(m,g);return p},t.moduleSize=function(e,n){for(var r=n.getHeight(),i=n.getWidth(),o=e[0],a=e[1],s=!0,l=0;o<i&&a<r;){if(s!==n.get(o,a)){if(++l===5)break;s=!s}o++,a++}if(o===i||a===r)throw new M;return(o-e[0])/7},t.NO_POINTS=new Array,t}(),HA=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},he=function(){function t(){}return t.prototype.PDF417Common=function(){},t.getBitCountSum=function(e){return pe.sum(e)},t.toIntArray=function(e){var n,r;if(e==null||!e.length)return t.EMPTY_INT_ARRAY;var i=new Int32Array(e.length),o=0;try{for(var a=HA(e),s=a.next();!s.done;s=a.next()){var l=s.value;i[o++]=l}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},t.getCodeword=function(e){var n=It.binarySearch(t.SYMBOL_TABLE,e&262143);return n<0?-1:(t.CODEWORD_TABLE[n]-1)%t.NUMBER_OF_CODEWORDS},t.NUMBER_OF_CODEWORDS=929,t.MAX_CODEWORDS_IN_BARCODE=t.NUMBER_OF_CODEWORDS-1,t.MIN_ROWS_IN_BARCODE=3,t.MAX_ROWS_IN_BARCODE=90,t.MODULES_IN_CODEWORD=17,t.MODULES_IN_STOP_PATTERN=18,t.BARS_IN_MODULE=8,t.EMPTY_INT_ARRAY=new Int32Array([]),t.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),t.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),t}(),zA=function(){function t(e,n){this.bits=e,this.points=n}return t.prototype.getBits=function(){return this.bits},t.prototype.getPoints=function(){return this.points},t}(),WA=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},GA=function(){function t(){}return t.detectMultiple=function(e,n,r){var i=e.getBlackMatrix(),o=t.detect(r,i);return o.length||(i=i.clone(),i.rotate180(),o=t.detect(r,i)),new zA(i,o)},t.detect=function(e,n){for(var r,i,o=new Array,a=0,s=0,l=!1;a<n.getHeight();){var c=t.findVertices(n,a,s);if(c[0]==null&&c[3]==null){if(!l)break;l=!1,s=0;try{for(var u=(r=void 0,WA(o)),d=u.next();!d.done;d=u.next()){var f=d.value;f[1]!=null&&(a=Math.trunc(Math.max(a,f[1].getY()))),f[3]!=null&&(a=Math.max(a,Math.trunc(f[3].getY())))}}catch(h){r={error:h}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}a+=t.ROW_STEP;continue}if(l=!0,o.push(c),!e)break;c[2]!=null?(s=Math.trunc(c[2].getX()),a=Math.trunc(c[2].getY())):(s=Math.trunc(c[4].getX()),a=Math.trunc(c[4].getY()))}return o},t.findVertices=function(e,n,r){var i=e.getHeight(),o=e.getWidth(),a=new Array(8);return t.copyToResult(a,t.findRowsWithPattern(e,i,o,n,r,t.START_PATTERN),t.INDEXES_START_PATTERN),a[4]!=null&&(r=Math.trunc(a[4].getX()),n=Math.trunc(a[4].getY())),t.copyToResult(a,t.findRowsWithPattern(e,i,o,n,r,t.STOP_PATTERN),t.INDEXES_STOP_PATTERN),a},t.copyToResult=function(e,n,r){for(var i=0;i<r.length;i++)e[r[i]]=n[i]},t.findRowsWithPattern=function(e,n,r,i,o,a){for(var s=new Array(4),l=!1,c=new Int32Array(a.length);i<n;i+=t.ROW_STEP){var u=t.findGuardPattern(e,o,i,r,!1,a,c);if(u!=null){for(;i>0;){var d=t.findGuardPattern(e,o,--i,r,!1,a,c);if(d!=null)u=d;else{i++;break}}s[0]=new Y(u[0],i),s[1]=new Y(u[1],i),l=!0;break}}var f=i+1;if(l){for(var h=0,d=Int32Array.from([Math.trunc(s[0].getX()),Math.trunc(s[1].getX())]);f<n;f++){var u=t.findGuardPattern(e,d[0],f,r,!1,a,c);if(u!=null&&Math.abs(d[0]-u[0])<t.MAX_PATTERN_DRIFT&&Math.abs(d[1]-u[1])<t.MAX_PATTERN_DRIFT)d=u,h=0;else{if(h>t.SKIPPED_ROW_COUNT_MAX)break;h++}}f-=h+1,s[2]=new Y(d[0],f),s[3]=new Y(d[1],f)}return f-i<t.BARCODE_MIN_HEIGHT&&It.fill(s,null),s},t.findGuardPattern=function(e,n,r,i,o,a,s){It.fillWithin(s,0,s.length,0);for(var l=n,c=0;e.get(l,r)&&l>0&&c++<t.MAX_PIXEL_DRIFT;)l--;for(var u=l,d=0,f=a.length,h=o;u<i;u++){var p=e.get(u,r);if(p!==h)s[d]++;else{if(d===f-1){if(t.patternMatchVariance(s,a,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return new Int32Array([l,u]);l+=s[0]+s[1],Se.arraycopy(s,2,s,0,d-1),s[d-1]=0,s[d]=0,d--}else d++;s[d]=1,h=!h}}return d===f-1&&t.patternMatchVariance(s,a,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE?new Int32Array([l,u-1]):null},t.patternMatchVariance=function(e,n,r){for(var i=e.length,o=0,a=0,s=0;s<i;s++)o+=e[s],a+=n[s];if(o<a)return 1/0;var l=o/a;r*=l;for(var c=0,u=0;u<i;u++){var d=e[u],f=n[u]*l,h=d>f?d-f:f-d;if(h>r)return 1/0;c+=h}return c/o},t.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),t.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),t.MAX_AVG_VARIANCE=.42,t.MAX_INDIVIDUAL_VARIANCE=.8,t.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),t.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),t.MAX_PIXEL_DRIFT=3,t.MAX_PATTERN_DRIFT=5,t.SKIPPED_ROW_COUNT_MAX=25,t.ROW_STEP=5,t.BARCODE_MIN_HEIGHT=10,t}(),jA=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},br=function(){function t(e,n){if(n.length===0)throw new q;this.field=e;var r=n.length;if(r>1&&n[0]===0){for(var i=1;i<r&&n[i]===0;)i++;i===r?this.coefficients=new Int32Array([0]):(this.coefficients=new Int32Array(r-i),Se.arraycopy(n,i,this.coefficients,0,this.coefficients.length))}else this.coefficients=n}return t.prototype.getCoefficients=function(){return this.coefficients},t.prototype.getDegree=function(){return this.coefficients.length-1},t.prototype.isZero=function(){return this.coefficients[0]===0},t.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},t.prototype.evaluateAt=function(e){var n,r;if(e===0)return this.getCoefficient(0);if(e===1){var i=0;try{for(var o=jA(this.coefficients),a=o.next();!a.done;a=o.next()){var s=a.value;i=this.field.add(i,s)}}catch(d){n={error:d}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}for(var l=this.coefficients[0],c=this.coefficients.length,u=1;u<c;u++)l=this.field.add(this.field.multiply(e,l),this.coefficients[u]);return l},t.prototype.add=function(e){if(!this.field.equals(e.field))throw new q("ModulusPolys do not have same ModulusGF field");if(this.isZero())return e;if(e.isZero())return this;var n=this.coefficients,r=e.coefficients;if(n.length>r.length){var i=n;n=r,r=i}var o=new Int32Array(r.length),a=r.length-n.length;Se.arraycopy(r,0,o,0,a);for(var s=a;s<r.length;s++)o[s]=this.field.add(n[s-a],r[s]);return new t(this.field,o)},t.prototype.subtract=function(e){if(!this.field.equals(e.field))throw new q("ModulusPolys do not have same ModulusGF field");return e.isZero()?this:this.add(e.negative())},t.prototype.multiply=function(e){return e instanceof t?this.multiplyOther(e):this.multiplyScalar(e)},t.prototype.multiplyOther=function(e){if(!this.field.equals(e.field))throw new q("ModulusPolys do not have same ModulusGF field");if(this.isZero()||e.isZero())return new t(this.field,new Int32Array([0]));for(var n=this.coefficients,r=n.length,i=e.coefficients,o=i.length,a=new Int32Array(r+o-1),s=0;s<r;s++)for(var l=n[s],c=0;c<o;c++)a[s+c]=this.field.add(a[s+c],this.field.multiply(l,i[c]));return new t(this.field,a)},t.prototype.negative=function(){for(var e=this.coefficients.length,n=new Int32Array(e),r=0;r<e;r++)n[r]=this.field.subtract(0,this.coefficients[r]);return new t(this.field,n)},t.prototype.multiplyScalar=function(e){if(e===0)return new t(this.field,new Int32Array([0]));if(e===1)return this;for(var n=this.coefficients.length,r=new Int32Array(n),i=0;i<n;i++)r[i]=this.field.multiply(this.coefficients[i],e);return new t(this.field,r)},t.prototype.multiplyByMonomial=function(e,n){if(e<0)throw new q;if(n===0)return new t(this.field,new Int32Array([0]));for(var r=this.coefficients.length,i=new Int32Array(r+e),o=0;o<r;o++)i[o]=this.field.multiply(this.coefficients[o],n);return new t(this.field,i)},t.prototype.toString=function(){for(var e=new Ae,n=this.getDegree();n>=0;n--){var r=this.getCoefficient(n);r!==0&&(r<0?(e.append(" - "),r=-r):e.length()>0&&e.append(" + "),(n===0||r!==1)&&e.append(r),n!==0&&(n===1?e.append("x"):(e.append("x^"),e.append(n))))}return e.toString()},t}(),YA=function(){function t(){}return t.prototype.add=function(e,n){return(e+n)%this.modulus},t.prototype.subtract=function(e,n){return(this.modulus+e-n)%this.modulus},t.prototype.exp=function(e){return this.expTable[e]},t.prototype.log=function(e){if(e===0)throw new q;return this.logTable[e]},t.prototype.inverse=function(e){if(e===0)throw new op;return this.expTable[this.modulus-this.logTable[e]-1]},t.prototype.multiply=function(e,n){return e===0||n===0?0:this.expTable[(this.logTable[e]+this.logTable[n])%(this.modulus-1)]},t.prototype.getSize=function(){return this.modulus},t.prototype.equals=function(e){return e===this},t}(),XA=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),qA=function(t){XA(e,t);function e(n,r){var i=t.call(this)||this;i.modulus=n,i.expTable=new Int32Array(n),i.logTable=new Int32Array(n);for(var o=1,a=0;a<n;a++)i.expTable[a]=o,o=o*r%n;for(var a=0;a<n-1;a++)i.logTable[i.expTable[a]]=a;return i.zero=new br(i,new Int32Array([0])),i.one=new br(i,new Int32Array([1])),i}return e.prototype.getZero=function(){return this.zero},e.prototype.getOne=function(){return this.one},e.prototype.buildMonomial=function(n,r){if(n<0)throw new q;if(r===0)return this.zero;var i=new Int32Array(n+1);return i[0]=r,new br(this,i)},e.PDF417_GF=new e(he.NUMBER_OF_CODEWORDS,3),e}(YA),KA=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ZA=function(){function t(){this.field=qA.PDF417_GF}return t.prototype.decode=function(e,n,r){for(var i,o,a=new br(this.field,e),s=new Int32Array(n),l=!1,c=n;c>0;c--){var u=a.evaluateAt(this.field.exp(c));s[n-c]=u,u!==0&&(l=!0)}if(!l)return 0;var d=this.field.getOne();if(r!=null)try{for(var f=KA(r),h=f.next();!h.done;h=f.next()){var p=h.value,g=this.field.exp(e.length-1-p),b=new br(this.field,new Int32Array([this.field.subtract(0,g),1]));d=d.multiply(b)}}catch(N){i={error:N}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}for(var m=new br(this.field,s),v=this.runEuclideanAlgorithm(this.field.buildMonomial(n,1),m,n),w=v[0],y=v[1],C=this.findErrorLocations(w),E=this.findErrorMagnitudes(y,w,C),c=0;c<C.length;c++){var k=e.length-1-this.field.log(C[c]);if(k<0)throw lt.getChecksumInstance();e[k]=this.field.subtract(e[k],E[c])}return C.length},t.prototype.runEuclideanAlgorithm=function(e,n,r){if(e.getDegree()<n.getDegree()){var i=e;e=n,n=i}for(var o=e,a=n,s=this.field.getZero(),l=this.field.getOne();a.getDegree()>=Math.round(r/2);){var c=o,u=s;if(o=a,s=l,o.isZero())throw lt.getChecksumInstance();a=c;for(var d=this.field.getZero(),f=o.getCoefficient(o.getDegree()),h=this.field.inverse(f);a.getDegree()>=o.getDegree()&&!a.isZero();){var p=a.getDegree()-o.getDegree(),g=this.field.multiply(a.getCoefficient(a.getDegree()),h);d=d.add(this.field.buildMonomial(p,g)),a=a.subtract(o.multiplyByMonomial(p,g))}l=d.multiply(s).subtract(u).negative()}var b=l.getCoefficient(0);if(b===0)throw lt.getChecksumInstance();var m=this.field.inverse(b),v=l.multiply(m),w=a.multiply(m);return[v,w]},t.prototype.findErrorLocations=function(e){for(var n=e.getDegree(),r=new Int32Array(n),i=0,o=1;o<this.field.getSize()&&i<n;o++)e.evaluateAt(o)===0&&(r[i]=this.field.inverse(o),i++);if(i!==n)throw lt.getChecksumInstance();return r},t.prototype.findErrorMagnitudes=function(e,n,r){for(var i=n.getDegree(),o=new Int32Array(i),a=1;a<=i;a++)o[i-a]=this.field.multiply(a,n.getCoefficient(a));for(var s=new br(this.field,o),l=r.length,c=new Int32Array(l),a=0;a<l;a++){var u=this.field.inverse(r[a]),d=this.field.subtract(0,e.evaluateAt(u)),f=this.field.inverse(s.evaluateAt(u));c[a]=this.field.multiply(d,f)}return c},t}(),il=function(){function t(e,n,r,i,o){e instanceof t?this.constructor_2(e):this.constructor_1(e,n,r,i,o)}return t.prototype.constructor_1=function(e,n,r,i,o){var a=n==null||r==null,s=i==null||o==null;if(a&&s)throw new M;a?(n=new Y(0,i.getY()),r=new Y(0,o.getY())):s&&(i=new Y(e.getWidth()-1,n.getY()),o=new Y(e.getWidth()-1,r.getY())),this.image=e,this.topLeft=n,this.bottomLeft=r,this.topRight=i,this.bottomRight=o,this.minX=Math.trunc(Math.min(n.getX(),r.getX())),this.maxX=Math.trunc(Math.max(i.getX(),o.getX())),this.minY=Math.trunc(Math.min(n.getY(),i.getY())),this.maxY=Math.trunc(Math.max(r.getY(),o.getY()))},t.prototype.constructor_2=function(e){this.image=e.image,this.topLeft=e.getTopLeft(),this.bottomLeft=e.getBottomLeft(),this.topRight=e.getTopRight(),this.bottomRight=e.getBottomRight(),this.minX=e.getMinX(),this.maxX=e.getMaxX(),this.minY=e.getMinY(),this.maxY=e.getMaxY()},t.merge=function(e,n){return e==null?n:n==null?e:new t(e.image,e.topLeft,e.bottomLeft,n.topRight,n.bottomRight)},t.prototype.addMissingRows=function(e,n,r){var i=this.topLeft,o=this.bottomLeft,a=this.topRight,s=this.bottomRight;if(e>0){var l=r?this.topLeft:this.topRight,c=Math.trunc(l.getY()-e);c<0&&(c=0);var u=new Y(l.getX(),c);r?i=u:a=u}if(n>0){var d=r?this.bottomLeft:this.bottomRight,f=Math.trunc(d.getY()+n);f>=this.image.getHeight()&&(f=this.image.getHeight()-1);var h=new Y(d.getX(),f);r?o=h:s=h}return new t(this.image,i,o,a,s)},t.prototype.getMinX=function(){return this.minX},t.prototype.getMaxX=function(){return this.maxX},t.prototype.getMinY=function(){return this.minY},t.prototype.getMaxY=function(){return this.maxY},t.prototype.getTopLeft=function(){return this.topLeft},t.prototype.getTopRight=function(){return this.topRight},t.prototype.getBottomLeft=function(){return this.bottomLeft},t.prototype.getBottomRight=function(){return this.bottomRight},t}(),JA=function(){function t(e,n,r,i){this.columnCount=e,this.errorCorrectionLevel=i,this.rowCountUpperPart=n,this.rowCountLowerPart=r,this.rowCount=n+r}return t.prototype.getColumnCount=function(){return this.columnCount},t.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},t.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},t}(),pc=function(){function t(){this.buffer=""}return t.form=function(e,n){var r=-1;function i(a,s,l,c,u,d){if(a==="%%")return"%";if(n[++r]!==void 0){a=c?parseInt(c.substr(1)):void 0;var f=u?parseInt(u.substr(1)):void 0,h;switch(d){case"s":h=n[r];break;case"c":h=n[r][0];break;case"f":h=parseFloat(n[r]).toFixed(a);break;case"p":h=parseFloat(n[r]).toPrecision(a);break;case"e":h=parseFloat(n[r]).toExponential(a);break;case"x":h=parseInt(n[r]).toString(f||16);break;case"d":h=parseFloat(parseInt(n[r],f||10).toPrecision(a)).toFixed(0);break}h=typeof h=="object"?JSON.stringify(h):(+h).toString(f);for(var p=parseInt(l),g=l&&l[0]+""=="0"?"0":" ";h.length<p;)h=s!==void 0?h+g:g+h;return h}}var o=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return e.replace(o,i)},t.prototype.format=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.buffer+=t.form(e,n)},t.prototype.toString=function(){return this.buffer},t}(),QA=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},hp=function(){function t(e){this.boundingBox=new il(e),this.codewords=new Array(e.getMaxY()-e.getMinY()+1)}return t.prototype.getCodewordNearby=function(e){var n=this.getCodeword(e);if(n!=null)return n;for(var r=1;r<t.MAX_NEARBY_DISTANCE;r++){var i=this.imageRowToCodewordIndex(e)-r;if(i>=0&&(n=this.codewords[i],n!=null)||(i=this.imageRowToCodewordIndex(e)+r,i<this.codewords.length&&(n=this.codewords[i],n!=null)))return n}return null},t.prototype.imageRowToCodewordIndex=function(e){return e-this.boundingBox.getMinY()},t.prototype.setCodeword=function(e,n){this.codewords[this.imageRowToCodewordIndex(e)]=n},t.prototype.getCodeword=function(e){return this.codewords[this.imageRowToCodewordIndex(e)]},t.prototype.getBoundingBox=function(){return this.boundingBox},t.prototype.getCodewords=function(){return this.codewords},t.prototype.toString=function(){var e,n,r=new pc,i=0;try{for(var o=QA(this.codewords),a=o.next();!a.done;a=o.next()){var s=a.value;if(s==null){r.format("%3d: | %n",i++);continue}r.format("%3d: %3d|%3d%n",i++,s.getRowNumber(),s.getValue())}}catch(l){e={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r.toString()},t.MAX_NEARBY_DISTANCE=5,t}(),e3=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},t3=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Si=function(){function t(){this.values=new Map}return t.prototype.setValue=function(e){e=Math.trunc(e);var n=this.values.get(e);n==null&&(n=0),n++,this.values.set(e,n)},t.prototype.getValue=function(){var e,n,r=-1,i=new Array,o=function(d,f){var h={getKey:function(){return d},getValue:function(){return f}};h.getValue()>r?(r=h.getValue(),i=[],i.push(h.getKey())):h.getValue()===r&&i.push(h.getKey())};try{for(var a=e3(this.values.entries()),s=a.next();!s.done;s=a.next()){var l=t3(s.value,2),c=l[0],u=l[1];o(c,u)}}catch(d){e={error:d}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return he.toIntArray(i)},t.prototype.getConfidence=function(e){return this.values.get(e)},t}(),n3=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),is=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ed=function(t){n3(e,t);function e(n,r){var i=t.call(this,n)||this;return i._isLeft=r,i}return e.prototype.setRowNumbers=function(){var n,r;try{for(var i=is(this.getCodewords()),o=i.next();!o.done;o=i.next()){var a=o.value;a!=null&&a.setRowNumberAsRowIndicatorColumn()}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.adjustCompleteIndicatorColumnRowNumbers=function(n){var r=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(r,n);for(var i=this.getBoundingBox(),o=this._isLeft?i.getTopLeft():i.getTopRight(),a=this._isLeft?i.getBottomLeft():i.getBottomRight(),s=this.imageRowToCodewordIndex(Math.trunc(o.getY())),l=this.imageRowToCodewordIndex(Math.trunc(a.getY())),c=-1,u=1,d=0,f=s;f<l;f++)if(r[f]!=null){var h=r[f],p=h.getRowNumber()-c;if(p===0)d++;else if(p===1)u=Math.max(u,d),d=1,c=h.getRowNumber();else if(p<0||h.getRowNumber()>=n.getRowCount()||p>f)r[f]=null;else{var g=void 0;u>2?g=(u-2)*p:g=p;for(var b=g>=f,m=1;m<=g&&!b;m++)b=r[f-m]!=null;b?r[f]=null:(c=h.getRowNumber(),d=1)}}},e.prototype.getRowHeights=function(){var n,r,i=this.getBarcodeMetadata();if(i==null)return null;this.adjustIncompleteIndicatorColumnRowNumbers(i);var o=new Int32Array(i.getRowCount());try{for(var a=is(this.getCodewords()),s=a.next();!s.done;s=a.next()){var l=s.value;if(l!=null){var c=l.getRowNumber();if(c>=o.length)continue;o[c]++}}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},e.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(n){for(var r=this.getBoundingBox(),i=this._isLeft?r.getTopLeft():r.getTopRight(),o=this._isLeft?r.getBottomLeft():r.getBottomRight(),a=this.imageRowToCodewordIndex(Math.trunc(i.getY())),s=this.imageRowToCodewordIndex(Math.trunc(o.getY())),l=this.getCodewords(),c=-1,u=a;u<s;u++)if(l[u]!=null){var d=l[u];d.setRowNumberAsRowIndicatorColumn();var f=d.getRowNumber()-c;f===0||(f===1?c=d.getRowNumber():d.getRowNumber()>=n.getRowCount()?l[u]=null:c=d.getRowNumber())}},e.prototype.getBarcodeMetadata=function(){var n,r,i=this.getCodewords(),o=new Si,a=new Si,s=new Si,l=new Si;try{for(var c=is(i),u=c.next();!u.done;u=c.next()){var d=u.value;if(d!=null){d.setRowNumberAsRowIndicatorColumn();var f=d.getValue()%30,h=d.getRowNumber();switch(this._isLeft||(h+=2),h%3){case 0:a.setValue(f*3+1);break;case 1:l.setValue(f/3),s.setValue(f%3);break;case 2:o.setValue(f+1);break}}}}catch(g){n={error:g}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(o.getValue().length===0||a.getValue().length===0||s.getValue().length===0||l.getValue().length===0||o.getValue()[0]<1||a.getValue()[0]+s.getValue()[0]<he.MIN_ROWS_IN_BARCODE||a.getValue()[0]+s.getValue()[0]>he.MAX_ROWS_IN_BARCODE)return null;var p=new JA(o.getValue()[0],a.getValue()[0],s.getValue()[0],l.getValue()[0]);return this.removeIncorrectCodewords(i,p),p},e.prototype.removeIncorrectCodewords=function(n,r){for(var i=0;i<n.length;i++){var o=n[i];if(n[i]!=null){var a=o.getValue()%30,s=o.getRowNumber();if(s>r.getRowCount()){n[i]=null;continue}switch(this._isLeft||(s+=2),s%3){case 0:a*3+1!==r.getRowCountUpperPart()&&(n[i]=null);break;case 1:(Math.trunc(a/3)!==r.getErrorCorrectionLevel()||a%3!==r.getRowCountLowerPart())&&(n[i]=null);break;case 2:a+1!==r.getColumnCount()&&(n[i]=null);break}}}},e.prototype.isLeft=function(){return this._isLeft},e.prototype.toString=function(){return"IsLeft: "+this._isLeft+`
|
|
126
|
+
`+t.prototype.toString.call(this)},e}(hp),r3=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i3=function(){function t(e,n){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=e,this.barcodeColumnCount=e.getColumnCount(),this.boundingBox=n,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return t.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var e=he.MAX_CODEWORDS_IN_BARCODE,n;do n=e,e=this.adjustRowNumbersAndGetCount();while(e>0&&e<n);return this.detectionResultColumns},t.prototype.adjustIndicatorColumnRowNumbers=function(e){e!=null&&e.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)},t.prototype.adjustRowNumbersAndGetCount=function(){var e=this.adjustRowNumbersByRow();if(e===0)return 0;for(var n=1;n<this.barcodeColumnCount+1;n++)for(var r=this.detectionResultColumns[n].getCodewords(),i=0;i<r.length;i++)r[i]!=null&&(r[i].hasValidRowNumber()||this.adjustRowNumbers(n,i,r));return e},t.prototype.adjustRowNumbersByRow=function(){this.adjustRowNumbersFromBothRI();var e=this.adjustRowNumbersFromLRI();return e+this.adjustRowNumbersFromRRI()},t.prototype.adjustRowNumbersFromBothRI=function(){if(!(this.detectionResultColumns[0]==null||this.detectionResultColumns[this.barcodeColumnCount+1]==null)){for(var e=this.detectionResultColumns[0].getCodewords(),n=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),r=0;r<e.length;r++)if(e[r]!=null&&n[r]!=null&&e[r].getRowNumber()===n[r].getRowNumber())for(var i=1;i<=this.barcodeColumnCount;i++){var o=this.detectionResultColumns[i].getCodewords()[r];o!=null&&(o.setRowNumber(e[r].getRowNumber()),o.hasValidRowNumber()||(this.detectionResultColumns[i].getCodewords()[r]=null))}}},t.prototype.adjustRowNumbersFromRRI=function(){if(this.detectionResultColumns[this.barcodeColumnCount+1]==null)return 0;for(var e=0,n=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),r=0;r<n.length;r++)if(n[r]!=null)for(var i=n[r].getRowNumber(),o=0,a=this.barcodeColumnCount+1;a>0&&o<this.ADJUST_ROW_NUMBER_SKIP;a--){var s=this.detectionResultColumns[a].getCodewords()[r];s!=null&&(o=t.adjustRowNumberIfValid(i,o,s),s.hasValidRowNumber()||e++)}return e},t.prototype.adjustRowNumbersFromLRI=function(){if(this.detectionResultColumns[0]==null)return 0;for(var e=0,n=this.detectionResultColumns[0].getCodewords(),r=0;r<n.length;r++)if(n[r]!=null)for(var i=n[r].getRowNumber(),o=0,a=1;a<this.barcodeColumnCount+1&&o<this.ADJUST_ROW_NUMBER_SKIP;a++){var s=this.detectionResultColumns[a].getCodewords()[r];s!=null&&(o=t.adjustRowNumberIfValid(i,o,s),s.hasValidRowNumber()||e++)}return e},t.adjustRowNumberIfValid=function(e,n,r){return r==null||r.hasValidRowNumber()||(r.isValidRowNumber(e)?(r.setRowNumber(e),n=0):++n),n},t.prototype.adjustRowNumbers=function(e,n,r){var i,o;if(this.detectionResultColumns[e-1]!=null){var a=r[n],s=this.detectionResultColumns[e-1].getCodewords(),l=s;this.detectionResultColumns[e+1]!=null&&(l=this.detectionResultColumns[e+1].getCodewords());var c=new Array(14);c[2]=s[n],c[3]=l[n],n>0&&(c[0]=r[n-1],c[4]=s[n-1],c[5]=l[n-1]),n>1&&(c[8]=r[n-2],c[10]=s[n-2],c[11]=l[n-2]),n<r.length-1&&(c[1]=r[n+1],c[6]=s[n+1],c[7]=l[n+1]),n<r.length-2&&(c[9]=r[n+2],c[12]=s[n+2],c[13]=l[n+2]);try{for(var u=r3(c),d=u.next();!d.done;d=u.next()){var f=d.value;if(t.adjustRowNumber(a,f))return}}catch(h){i={error:h}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}},t.adjustRowNumber=function(e,n){return n==null?!1:n.hasValidRowNumber()&&n.getBucket()===e.getBucket()?(e.setRowNumber(n.getRowNumber()),!0):!1},t.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},t.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},t.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},t.prototype.setBoundingBox=function(e){this.boundingBox=e},t.prototype.getBoundingBox=function(){return this.boundingBox},t.prototype.setDetectionResultColumn=function(e,n){this.detectionResultColumns[e]=n},t.prototype.getDetectionResultColumn=function(e){return this.detectionResultColumns[e]},t.prototype.toString=function(){var e=this.detectionResultColumns[0];e==null&&(e=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var n=new pc,r=0;r<e.getCodewords().length;r++){n.format("CW %3d:",r);for(var i=0;i<this.barcodeColumnCount+2;i++){if(this.detectionResultColumns[i]==null){n.format(" | ");continue}var o=this.detectionResultColumns[i].getCodewords()[r];if(o==null){n.format(" | ");continue}n.format(" %3d|%3d",o.getRowNumber(),o.getValue())}n.format("%n")}return n.toString()},t}(),o3=function(){function t(e,n,r,i){this.rowNumber=t.BARCODE_ROW_UNKNOWN,this.startX=Math.trunc(e),this.endX=Math.trunc(n),this.bucket=Math.trunc(r),this.value=Math.trunc(i)}return t.prototype.hasValidRowNumber=function(){return this.isValidRowNumber(this.rowNumber)},t.prototype.isValidRowNumber=function(e){return e!==t.BARCODE_ROW_UNKNOWN&&this.bucket===e%3*3},t.prototype.setRowNumberAsRowIndicatorColumn=function(){this.rowNumber=Math.trunc(Math.trunc(this.value/30)*3+Math.trunc(this.bucket/3))},t.prototype.getWidth=function(){return this.endX-this.startX},t.prototype.getStartX=function(){return this.startX},t.prototype.getEndX=function(){return this.endX},t.prototype.getBucket=function(){return this.bucket},t.prototype.getValue=function(){return this.value},t.prototype.getRowNumber=function(){return this.rowNumber},t.prototype.setRowNumber=function(e){this.rowNumber=e},t.prototype.toString=function(){return this.rowNumber+"|"+this.value},t.BARCODE_ROW_UNKNOWN=-1,t}(),a3=function(){function t(){}return t.initialize=function(){for(var e=0;e<he.SYMBOL_TABLE.length;e++)for(var n=he.SYMBOL_TABLE[e],r=n&1,i=0;i<he.BARS_IN_MODULE;i++){for(var o=0;(n&1)===r;)o+=1,n>>=1;r=n&1,t.RATIOS_TABLE[e]||(t.RATIOS_TABLE[e]=new Array(he.BARS_IN_MODULE)),t.RATIOS_TABLE[e][he.BARS_IN_MODULE-i-1]=Math.fround(o/he.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},t.getDecodedValue=function(e){var n=t.getDecodedCodewordValue(t.sampleBitCounts(e));return n!==-1?n:t.getClosestDecodedValue(e)},t.sampleBitCounts=function(e){for(var n=pe.sum(e),r=new Int32Array(he.BARS_IN_MODULE),i=0,o=0,a=0;a<he.MODULES_IN_CODEWORD;a++){var s=n/(2*he.MODULES_IN_CODEWORD)+a*n/he.MODULES_IN_CODEWORD;o+e[i]<=s&&(o+=e[i],i++),r[i]++}return r},t.getDecodedCodewordValue=function(e){var n=t.getBitValue(e);return he.getCodeword(n)===-1?-1:n},t.getBitValue=function(e){for(var n=0,r=0;r<e.length;r++)for(var i=0;i<e[r];i++)n=n<<1|(r%2===0?1:0);return Math.trunc(n)},t.getClosestDecodedValue=function(e){var n=pe.sum(e),r=new Array(he.BARS_IN_MODULE);if(n>1)for(var i=0;i<r.length;i++)r[i]=Math.fround(e[i]/n);var o=Js.MAX_VALUE,a=-1;this.bSymbolTableReady||t.initialize();for(var s=0;s<t.RATIOS_TABLE.length;s++){for(var l=0,c=t.RATIOS_TABLE[s],u=0;u<he.BARS_IN_MODULE;u++){var d=Math.fround(c[u]-r[u]);if(l+=Math.fround(d*d),l>=o)break}l<o&&(o=l,a=he.SYMBOL_TABLE[s])}return a},t.bSymbolTableReady=!1,t.RATIOS_TABLE=new Array(he.SYMBOL_TABLE.length).map(function(e){return new Array(he.BARS_IN_MODULE)}),t}(),s3=function(){function t(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}return t.prototype.getSegmentIndex=function(){return this.segmentIndex},t.prototype.setSegmentIndex=function(e){this.segmentIndex=e},t.prototype.getFileId=function(){return this.fileId},t.prototype.setFileId=function(e){this.fileId=e},t.prototype.getOptionalData=function(){return this.optionalData},t.prototype.setOptionalData=function(e){this.optionalData=e},t.prototype.isLastSegment=function(){return this.lastSegment},t.prototype.setLastSegment=function(e){this.lastSegment=e},t.prototype.getSegmentCount=function(){return this.segmentCount},t.prototype.setSegmentCount=function(e){this.segmentCount=e},t.prototype.getSender=function(){return this.sender||null},t.prototype.setSender=function(e){this.sender=e},t.prototype.getAddressee=function(){return this.addressee||null},t.prototype.setAddressee=function(e){this.addressee=e},t.prototype.getFileName=function(){return this.fileName},t.prototype.setFileName=function(e){this.fileName=e},t.prototype.getFileSize=function(){return this.fileSize},t.prototype.setFileSize=function(e){this.fileSize=e},t.prototype.getChecksum=function(){return this.checksum},t.prototype.setChecksum=function(e){this.checksum=e},t.prototype.getTimestamp=function(){return this.timestamp},t.prototype.setTimestamp=function(e){this.timestamp=e},t}(),Ad=function(){function t(){}return t.parseLong=function(e,n){return n===void 0&&(n=void 0),parseInt(e,n)},t}(),l3=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),c3=function(t){l3(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="NullPointerException",e}(_t),u3=function(){function t(){}return t.prototype.writeBytes=function(e){this.writeBytesOffset(e,0,e.length)},t.prototype.writeBytesOffset=function(e,n,r){if(e==null)throw new c3;if(n<0||n>e.length||r<0||n+r>e.length||n+r<0)throw new cc;if(r===0)return;for(var i=0;i<r;i++)this.write(e[n+i])},t.prototype.flush=function(){},t.prototype.close=function(){},t}(),d3=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),f3=function(t){d3(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(_t),h3=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),p3=function(t){h3(e,t);function e(n){n===void 0&&(n=32);var r=t.call(this)||this;if(r.count=0,n<0)throw new q("Negative initial size: "+n);return r.buf=new Uint8Array(n),r}return e.prototype.ensureCapacity=function(n){n-this.buf.length>0&&this.grow(n)},e.prototype.grow=function(n){var r=this.buf.length,i=r<<1;if(i-n<0&&(i=n),i<0){if(n<0)throw new f3;i=ue.MAX_VALUE}this.buf=It.copyOfUint8Array(this.buf,i)},e.prototype.write=function(n){this.ensureCapacity(this.count+1),this.buf[this.count]=n,this.count+=1},e.prototype.writeBytesOffset=function(n,r,i){if(r<0||r>n.length||i<0||r+i-n.length>0)throw new cc;this.ensureCapacity(this.count+i),Se.arraycopy(n,r,this.buf,this.count,i),this.count+=i},e.prototype.writeTo=function(n){n.writeBytesOffset(this.buf,0,this.count)},e.prototype.reset=function(){this.count=0},e.prototype.toByteArray=function(){return It.copyOfUint8Array(this.buf,this.count)},e.prototype.size=function(){return this.count},e.prototype.toString=function(n){return n?typeof n=="string"?this.toString_string(n):this.toString_number(n):this.toString_void()},e.prototype.toString_void=function(){return new String(this.buf).toString()},e.prototype.toString_string=function(n){return new String(this.buf).toString()},e.prototype.toString_number=function(n){return new String(this.buf).toString()},e.prototype.close=function(){},e}(u3),Ee;(function(t){t[t.ALPHA=0]="ALPHA",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.PUNCT=3]="PUNCT",t[t.ALPHA_SHIFT=4]="ALPHA_SHIFT",t[t.PUNCT_SHIFT=5]="PUNCT_SHIFT"})(Ee||(Ee={}));function pp(){if(typeof window<"u")return window.BigInt||null;if(typeof global<"u")return global.BigInt||null;if(typeof self<"u")return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}var _o;function Gn(t){if(typeof _o>"u"&&(_o=pp()),_o===null)throw new Error("BigInt is not supported!");return _o(t)}function g3(){var t=[];t[0]=Gn(1);var e=Gn(900);t[1]=e;for(var n=2;n<16;n++)t[n]=t[n-1]*e;return t}var m3=function(){function t(){}return t.decode=function(e,n){var r=new Ae(""),i=Je.ISO8859_1;r.enableDecoding(i);for(var o=1,a=e[o++],s=new s3;o<e[0];){switch(a){case t.TEXT_COMPACTION_MODE_LATCH:o=t.textCompaction(e,o,r);break;case t.BYTE_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:o=t.byteCompaction(a,e,i,o,r);break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(e[o++]);break;case t.NUMERIC_COMPACTION_MODE_LATCH:o=t.numericCompaction(e,o,r);break;case t.ECI_CHARSET:Je.getCharacterSetECIByValue(e[o++]);break;case t.ECI_GENERAL_PURPOSE:o+=2;break;case t.ECI_USER_DEFINED:o++;break;case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:o=t.decodeMacroBlock(e,o,s);break;case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:throw new H;default:o--,o=t.textCompaction(e,o,r);break}if(o<e.length)a=e[o++];else throw H.getFormatInstance()}if(r.length()===0)throw H.getFormatInstance();var l=new Ea(null,r.toString(),null,n);return l.setOther(s),l},t.decodeMacroBlock=function(e,n,r){if(n+t.NUMBER_OF_SEQUENCE_CODEWORDS>e[0])throw H.getFormatInstance();for(var i=new Int32Array(t.NUMBER_OF_SEQUENCE_CODEWORDS),o=0;o<t.NUMBER_OF_SEQUENCE_CODEWORDS;o++,n++)i[o]=e[n];r.setSegmentIndex(ue.parseInt(t.decodeBase900toBase10(i,t.NUMBER_OF_SEQUENCE_CODEWORDS)));var a=new Ae;n=t.textCompaction(e,n,a),r.setFileId(a.toString());var s=-1;for(e[n]===t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(s=n+1);n<e[0];)switch(e[n]){case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:switch(n++,e[n]){case t.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:var l=new Ae;n=t.textCompaction(e,n+1,l),r.setFileName(l.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_SENDER:var c=new Ae;n=t.textCompaction(e,n+1,c),r.setSender(c.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:var u=new Ae;n=t.textCompaction(e,n+1,u),r.setAddressee(u.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:var d=new Ae;n=t.numericCompaction(e,n+1,d),r.setSegmentCount(ue.parseInt(d.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:var f=new Ae;n=t.numericCompaction(e,n+1,f),r.setTimestamp(Ad.parseLong(f.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:var h=new Ae;n=t.numericCompaction(e,n+1,h),r.setChecksum(ue.parseInt(h.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:var p=new Ae;n=t.numericCompaction(e,n+1,p),r.setFileSize(Ad.parseLong(p.toString()));break;default:throw H.getFormatInstance()}break;case t.MACRO_PDF417_TERMINATOR:n++,r.setLastSegment(!0);break;default:throw H.getFormatInstance()}if(s!==-1){var g=n-s;r.isLastSegment()&&g--,r.setOptionalData(It.copyOfRange(e,s,s+g))}return n},t.textCompaction=function(e,n,r){for(var i=new Int32Array((e[0]-n)*2),o=new Int32Array((e[0]-n)*2),a=0,s=!1;n<e[0]&&!s;){var l=e[n++];if(l<t.TEXT_COMPACTION_MODE_LATCH)i[a]=l/30,i[a+1]=l%30,a+=2;else switch(l){case t.TEXT_COMPACTION_MODE_LATCH:i[a++]=t.TEXT_COMPACTION_MODE_LATCH;break;case t.BYTE_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.NUMERIC_COMPACTION_MODE_LATCH:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:n--,s=!0;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i[a]=t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE,l=e[n++],o[a]=l,a++;break}}return t.decodeTextCompaction(i,o,a,r),n},t.decodeTextCompaction=function(e,n,r,i){for(var o=Ee.ALPHA,a=Ee.ALPHA,s=0;s<r;){var l=e[s],c="";switch(o){case Ee.ALPHA:if(l<26)c=String.fromCharCode(65+l);else switch(l){case 26:c=" ";break;case t.LL:o=Ee.LOWER;break;case t.ML:o=Ee.MIXED;break;case t.PS:a=o,o=Ee.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=Ee.ALPHA;break}break;case Ee.LOWER:if(l<26)c=String.fromCharCode(97+l);else switch(l){case 26:c=" ";break;case t.AS:a=o,o=Ee.ALPHA_SHIFT;break;case t.ML:o=Ee.MIXED;break;case t.PS:a=o,o=Ee.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=Ee.ALPHA;break}break;case Ee.MIXED:if(l<t.PL)c=t.MIXED_CHARS[l];else switch(l){case t.PL:o=Ee.PUNCT;break;case 26:c=" ";break;case t.LL:o=Ee.LOWER;break;case t.AL:o=Ee.ALPHA;break;case t.PS:a=o,o=Ee.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=Ee.ALPHA;break}break;case Ee.PUNCT:if(l<t.PAL)c=t.PUNCT_CHARS[l];else switch(l){case t.PAL:o=Ee.ALPHA;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=Ee.ALPHA;break}break;case Ee.ALPHA_SHIFT:if(o=a,l<26)c=String.fromCharCode(65+l);else switch(l){case 26:c=" ";break;case t.TEXT_COMPACTION_MODE_LATCH:o=Ee.ALPHA;break}break;case Ee.PUNCT_SHIFT:if(o=a,l<t.PAL)c=t.PUNCT_CHARS[l];else switch(l){case t.PAL:o=Ee.ALPHA;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=Ee.ALPHA;break}break}c!==""&&i.append(c),s++}},t.byteCompaction=function(e,n,r,i,o){var a=new p3,s=0,l=0,c=!1;switch(e){case t.BYTE_COMPACTION_MODE_LATCH:for(var u=new Int32Array(6),d=n[i++];i<n[0]&&!c;)switch(u[s++]=d,l=900*l+d,d=n[i++],d){case t.TEXT_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH:case t.NUMERIC_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:i--,c=!0;break;default:if(s%5===0&&s>0){for(var f=0;f<6;++f)a.write(Number(Gn(l)>>Gn(8*(5-f))));l=0,s=0}break}i===n[0]&&d<t.TEXT_COMPACTION_MODE_LATCH&&(u[s++]=d);for(var h=0;h<s;h++)a.write(u[h]);break;case t.BYTE_COMPACTION_MODE_LATCH_6:for(;i<n[0]&&!c;){var p=n[i++];if(p<t.TEXT_COMPACTION_MODE_LATCH)s++,l=900*l+p;else switch(p){case t.TEXT_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH:case t.NUMERIC_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:i--,c=!0;break}if(s%5===0&&s>0){for(var f=0;f<6;++f)a.write(Number(Gn(l)>>Gn(8*(5-f))));l=0,s=0}}break}return o.append(xn.decode(a.toByteArray(),r)),i},t.numericCompaction=function(e,n,r){for(var i=0,o=!1,a=new Int32Array(t.MAX_NUMERIC_CODEWORDS);n<e[0]&&!o;){var s=e[n++];if(n===e[0]&&(o=!0),s<t.TEXT_COMPACTION_MODE_LATCH)a[i]=s,i++;else switch(s){case t.TEXT_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:n--,o=!0;break}(i%t.MAX_NUMERIC_CODEWORDS===0||s===t.NUMERIC_COMPACTION_MODE_LATCH||o)&&i>0&&(r.append(t.decodeBase900toBase10(a,i)),i=0)}return n},t.decodeBase900toBase10=function(e,n){for(var r=Gn(0),i=0;i<n;i++)r+=t.EXP900[n-i-1]*Gn(e[i]);var o=r.toString();if(o.charAt(0)!=="1")throw new H;return o.substring(1)},t.TEXT_COMPACTION_MODE_LATCH=900,t.BYTE_COMPACTION_MODE_LATCH=901,t.NUMERIC_COMPACTION_MODE_LATCH=902,t.BYTE_COMPACTION_MODE_LATCH_6=924,t.ECI_USER_DEFINED=925,t.ECI_GENERAL_PURPOSE=926,t.ECI_CHARSET=927,t.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928,t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923,t.MACRO_PDF417_TERMINATOR=922,t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913,t.MAX_NUMERIC_CODEWORDS=15,t.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0,t.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1,t.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2,t.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3,t.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4,t.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5,t.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6,t.PL=25,t.LL=27,t.AS=27,t.ML=28,t.AL=28,t.PS=29,t.PAL=29,t.PUNCT_CHARS=`;<>@[\\]_\`~!\r ,:
|
|
127
|
+
-.$/"|*()?{}'`,t.MIXED_CHARS="0123456789&\r ,:#-.$/+%*=^",t.EXP900=pp()?g3():[],t.NUMBER_OF_SEQUENCE_CODEWORDS=2,t}(),bi=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},v3=function(){function t(){}return t.decode=function(e,n,r,i,o,a,s){for(var l=new il(e,n,r,i,o),c=null,u=null,d,f=!0;;f=!1){if(n!=null&&(c=t.getRowIndicatorColumn(e,l,n,!0,a,s)),i!=null&&(u=t.getRowIndicatorColumn(e,l,i,!1,a,s)),d=t.merge(c,u),d==null)throw M.getNotFoundInstance();var h=d.getBoundingBox();if(f&&h!=null&&(h.getMinY()<l.getMinY()||h.getMaxY()>l.getMaxY()))l=h;else break}d.setBoundingBox(l);var p=d.getBarcodeColumnCount()+1;d.setDetectionResultColumn(0,c),d.setDetectionResultColumn(p,u);for(var g=c!=null,b=1;b<=p;b++){var m=g?b:p-b;if(d.getDetectionResultColumn(m)===void 0){var v=void 0;m===0||m===p?v=new Ed(l,m===0):v=new hp(l),d.setDetectionResultColumn(m,v);for(var w=-1,y=w,C=l.getMinY();C<=l.getMaxY();C++){if(w=t.getStartColumn(d,m,C,g),w<0||w>l.getMaxX()){if(y===-1)continue;w=y}var E=t.detectCodeword(e,l.getMinX(),l.getMaxX(),g,w,C,a,s);E!=null&&(v.setCodeword(C,E),y=w,a=Math.min(a,E.getWidth()),s=Math.max(s,E.getWidth()))}}}return t.createDecoderResult(d)},t.merge=function(e,n){if(e==null&&n==null)return null;var r=t.getBarcodeMetadata(e,n);if(r==null)return null;var i=il.merge(t.adjustBoundingBox(e),t.adjustBoundingBox(n));return new i3(r,i)},t.adjustBoundingBox=function(e){var n,r;if(e==null)return null;var i=e.getRowHeights();if(i==null)return null;var o=t.getMax(i),a=0;try{for(var s=bi(i),l=s.next();!l.done;l=s.next()){var c=l.value;if(a+=o-c,c>0)break}}catch(h){n={error:h}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}for(var u=e.getCodewords(),d=0;a>0&&u[d]==null;d++)a--;for(var f=0,d=i.length-1;d>=0&&(f+=o-i[d],!(i[d]>0));d--);for(var d=u.length-1;f>0&&u[d]==null;d--)f--;return e.getBoundingBox().addMissingRows(a,f,e.isLeft())},t.getMax=function(e){var n,r,i=-1;try{for(var o=bi(e),a=o.next();!a.done;a=o.next()){var s=a.value;i=Math.max(i,s)}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},t.getBarcodeMetadata=function(e,n){var r;if(e==null||(r=e.getBarcodeMetadata())==null)return n==null?null:n.getBarcodeMetadata();var i;return n==null||(i=n.getBarcodeMetadata())==null?r:r.getColumnCount()!==i.getColumnCount()&&r.getErrorCorrectionLevel()!==i.getErrorCorrectionLevel()&&r.getRowCount()!==i.getRowCount()?null:r},t.getRowIndicatorColumn=function(e,n,r,i,o,a){for(var s=new Ed(n,i),l=0;l<2;l++)for(var c=l===0?1:-1,u=Math.trunc(Math.trunc(r.getX())),d=Math.trunc(Math.trunc(r.getY()));d<=n.getMaxY()&&d>=n.getMinY();d+=c){var f=t.detectCodeword(e,0,e.getWidth(),i,u,d,o,a);f!=null&&(s.setCodeword(d,f),i?u=f.getStartX():u=f.getEndX())}return s},t.adjustCodewordCount=function(e,n){var r=n[0][1],i=r.getValue(),o=e.getBarcodeColumnCount()*e.getBarcodeRowCount()-t.getNumberOfECCodeWords(e.getBarcodeECLevel());if(i.length===0){if(o<1||o>he.MAX_CODEWORDS_IN_BARCODE)throw M.getNotFoundInstance();r.setValue(o)}else i[0]!==o&&r.setValue(o)},t.createDecoderResult=function(e){var n=t.createBarcodeMatrix(e);t.adjustCodewordCount(e,n);for(var r=new Array,i=new Int32Array(e.getBarcodeRowCount()*e.getBarcodeColumnCount()),o=[],a=new Array,s=0;s<e.getBarcodeRowCount();s++)for(var l=0;l<e.getBarcodeColumnCount();l++){var c=n[s][l+1].getValue(),u=s*e.getBarcodeColumnCount()+l;c.length===0?r.push(u):c.length===1?i[u]=c[0]:(a.push(u),o.push(c))}for(var d=new Array(o.length),f=0;f<d.length;f++)d[f]=o[f];return t.createDecoderResultFromAmbiguousValues(e.getBarcodeECLevel(),i,he.toIntArray(r),he.toIntArray(a),d)},t.createDecoderResultFromAmbiguousValues=function(e,n,r,i,o){for(var a=new Int32Array(i.length),s=100;s-- >0;){for(var l=0;l<a.length;l++)n[i[l]]=o[l][a[l]];try{return t.decodeCodewords(n,e,r)}catch(u){var c=u instanceof lt;if(!c)throw u}if(a.length===0)throw lt.getChecksumInstance();for(var l=0;l<a.length;l++)if(a[l]<o[l].length-1){a[l]++;break}else if(a[l]=0,l===a.length-1)throw lt.getChecksumInstance()}throw lt.getChecksumInstance()},t.createBarcodeMatrix=function(e){for(var n,r,i,o,a=Array.from({length:e.getBarcodeRowCount()},function(){return new Array(e.getBarcodeColumnCount()+2)}),s=0;s<a.length;s++)for(var l=0;l<a[s].length;l++)a[s][l]=new Si;var c=0;try{for(var u=bi(e.getDetectionResultColumns()),d=u.next();!d.done;d=u.next()){var f=d.value;if(f!=null)try{for(var h=(i=void 0,bi(f.getCodewords())),p=h.next();!p.done;p=h.next()){var g=p.value;if(g!=null){var b=g.getRowNumber();if(b>=0){if(b>=a.length)continue;a[b][c].setValue(g.getValue())}}}}catch(m){i={error:m}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}c++}}catch(m){n={error:m}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return a},t.isValidBarcodeColumn=function(e,n){return n>=0&&n<=e.getBarcodeColumnCount()+1},t.getStartColumn=function(e,n,r,i){var o,a,s=i?1:-1,l=null;if(t.isValidBarcodeColumn(e,n-s)&&(l=e.getDetectionResultColumn(n-s).getCodeword(r)),l!=null)return i?l.getEndX():l.getStartX();if(l=e.getDetectionResultColumn(n).getCodewordNearby(r),l!=null)return i?l.getStartX():l.getEndX();if(t.isValidBarcodeColumn(e,n-s)&&(l=e.getDetectionResultColumn(n-s).getCodewordNearby(r)),l!=null)return i?l.getEndX():l.getStartX();for(var c=0;t.isValidBarcodeColumn(e,n-s);){n-=s;try{for(var u=(o=void 0,bi(e.getDetectionResultColumn(n).getCodewords())),d=u.next();!d.done;d=u.next()){var f=d.value;if(f!=null)return(i?f.getEndX():f.getStartX())+s*c*(f.getEndX()-f.getStartX())}}catch(h){o={error:h}}finally{try{d&&!d.done&&(a=u.return)&&a.call(u)}finally{if(o)throw o.error}}c++}return i?e.getBoundingBox().getMinX():e.getBoundingBox().getMaxX()},t.detectCodeword=function(e,n,r,i,o,a,s,l){o=t.adjustCodewordStartColumn(e,n,r,i,o,a);var c=t.getModuleBitCount(e,n,r,i,o,a);if(c==null)return null;var u,d=pe.sum(c);if(i)u=o+d;else{for(var f=0;f<c.length/2;f++){var h=c[f];c[f]=c[c.length-1-f],c[c.length-1-f]=h}u=o,o=u-d}if(!t.checkCodewordSkew(d,s,l))return null;var p=a3.getDecodedValue(c),g=he.getCodeword(p);return g===-1?null:new o3(o,u,t.getCodewordBucketNumber(p),g)},t.getModuleBitCount=function(e,n,r,i,o,a){for(var s=o,l=new Int32Array(8),c=0,u=i?1:-1,d=i;(i?s<r:s>=n)&&c<l.length;)e.get(s,a)===d?(l[c]++,s+=u):(c++,d=!d);return c===l.length||s===(i?r:n)&&c===l.length-1?l:null},t.getNumberOfECCodeWords=function(e){return 2<<e},t.adjustCodewordStartColumn=function(e,n,r,i,o,a){for(var s=o,l=i?-1:1,c=0;c<2;c++){for(;(i?s>=n:s<r)&&i===e.get(s,a);){if(Math.abs(o-s)>t.CODEWORD_SKEW_SIZE)return o;s+=l}l=-l,i=!i}return s},t.checkCodewordSkew=function(e,n,r){return n-t.CODEWORD_SKEW_SIZE<=e&&e<=r+t.CODEWORD_SKEW_SIZE},t.decodeCodewords=function(e,n,r){if(e.length===0)throw H.getFormatInstance();var i=1<<n+1,o=t.correctErrors(e,r,i);t.verifyCodewordCount(e,i);var a=m3.decode(e,""+n);return a.setErrorsCorrected(o),a.setErasures(r.length),a},t.correctErrors=function(e,n,r){if(n!=null&&n.length>r/2+t.MAX_ERRORS||r<0||r>t.MAX_EC_CODEWORDS)throw lt.getChecksumInstance();return t.errorCorrection.decode(e,r,n)},t.verifyCodewordCount=function(e,n){if(e.length<4)throw H.getFormatInstance();var r=e[0];if(r>e.length)throw H.getFormatInstance();if(r===0)if(n<e.length)e[0]=e.length-n;else throw H.getFormatInstance()},t.getBitCountForCodeword=function(e){for(var n=new Int32Array(8),r=0,i=n.length-1;!((e&1)!==r&&(r=e&1,i--,i<0));)n[i]++,e>>=1;return n},t.getCodewordBucketNumber=function(e){return e instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(e):this.getCodewordBucketNumber_number(e)},t.getCodewordBucketNumber_number=function(e){return t.getCodewordBucketNumber(t.getBitCountForCodeword(e))},t.getCodewordBucketNumber_Int32Array=function(e){return(e[0]-e[2]+e[4]-e[6]+9)%9},t.toString=function(e){for(var n=new pc,r=0;r<e.length;r++){n.format("Row %2d: ",r);for(var i=0;i<e[r].length;i++){var o=e[r][i];o.getValue().length===0?n.format(" ",null):n.format("%4d(%2d)",o.getValue()[0],o.getConfidence(o.getValue()[0]))}n.format("%n")}return n.toString()},t.CODEWORD_SKEW_SIZE=2,t.MAX_ERRORS=3,t.MAX_EC_CODEWORDS=512,t.errorCorrection=new ZA,t}(),b3=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ol=function(){function t(){}return t.prototype.decode=function(e,n){n===void 0&&(n=null);var r=t.decode(e,n,!1);if(r==null||r.length===0||r[0]==null)throw M.getNotFoundInstance();return r[0]},t.prototype.decodeMultiple=function(e,n){n===void 0&&(n=null);try{return t.decode(e,n,!0)}catch(r){throw r instanceof H||r instanceof lt?M.getNotFoundInstance():r}},t.decode=function(e,n,r){var i,o,a=new Array,s=GA.detectMultiple(e,n,r);try{for(var l=b3(s.getPoints()),c=l.next();!c.done;c=l.next()){var u=c.value,d=v3.decode(s.getBits(),u[4],u[5],u[6],u[7],t.getMinCodewordWidth(u),t.getMaxCodewordWidth(u)),f=new Ot(d.getText(),d.getRawBytes(),void 0,u,Q.PDF_417);f.putMetadata(ct.ERROR_CORRECTION_LEVEL,d.getECLevel());var h=d.getOther();h!=null&&f.putMetadata(ct.PDF417_EXTRA_METADATA,h),a.push(f)}}catch(p){i={error:p}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return a.map(function(p){return p})},t.getMaxWidth=function(e,n){return e==null||n==null?0:Math.trunc(Math.abs(e.getX()-n.getX()))},t.getMinWidth=function(e,n){return e==null||n==null?ue.MAX_VALUE:Math.trunc(Math.abs(e.getX()-n.getX()))},t.getMaxCodewordWidth=function(e){return Math.floor(Math.max(Math.max(t.getMaxWidth(e[0],e[4]),t.getMaxWidth(e[6],e[2])*he.MODULES_IN_CODEWORD/he.MODULES_IN_STOP_PATTERN),Math.max(t.getMaxWidth(e[1],e[5]),t.getMaxWidth(e[7],e[3])*he.MODULES_IN_CODEWORD/he.MODULES_IN_STOP_PATTERN)))},t.getMinCodewordWidth=function(e){return Math.floor(Math.min(Math.min(t.getMinWidth(e[0],e[4]),t.getMinWidth(e[6],e[2])*he.MODULES_IN_CODEWORD/he.MODULES_IN_STOP_PATTERN),Math.min(t.getMinWidth(e[1],e[5]),t.getMinWidth(e[7],e[3])*he.MODULES_IN_CODEWORD/he.MODULES_IN_STOP_PATTERN)))},t.prototype.reset=function(){},t}(),x3=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),kd=function(t){x3(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ReaderException",e}(_t),Cd=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},y3=function(){function t(){}return t.prototype.decode=function(e,n){return this.setHints(n),this.decodeInternal(e)},t.prototype.decodeWithState=function(e){return(this.readers===null||this.readers===void 0)&&this.setHints(null),this.decodeInternal(e)},t.prototype.setHints=function(e){this.hints=e;var n=e!=null&&e.get(Fe.TRY_HARDER)!==void 0,r=e==null?null:e.get(Fe.POSSIBLE_FORMATS),i=new Array;if(r!=null){var o=r.some(function(a){return a===Q.UPC_A||a===Q.UPC_E||a===Q.EAN_13||a===Q.EAN_8||a===Q.CODABAR||a===Q.CODE_39||a===Q.CODE_93||a===Q.CODE_128||a===Q.ITF||a===Q.RSS_14||a===Q.RSS_EXPANDED});o&&!n&&i.push(new Ci(e)),r.includes(Q.QR_CODE)&&i.push(new rl),r.includes(Q.DATA_MATRIX)&&i.push(new nl),r.includes(Q.AZTEC)&&i.push(new el),r.includes(Q.PDF_417)&&i.push(new ol),o&&n&&i.push(new Ci(e))}i.length===0&&(n||i.push(new Ci(e)),i.push(new rl),i.push(new nl),i.push(new el),i.push(new ol),n&&i.push(new Ci(e))),this.readers=i},t.prototype.reset=function(){var e,n;if(this.readers!==null)try{for(var r=Cd(this.readers),i=r.next();!i.done;i=r.next()){var o=i.value;o.reset()}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.decodeInternal=function(e){var n,r;if(this.readers===null)throw new kd("No readers where selected, nothing can be read.");try{for(var i=Cd(this.readers),o=i.next();!o.done;o=i.next()){var a=o.value;try{return a.decode(e,this.hints)}catch(s){if(s instanceof kd)continue}}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}throw new M("No MultiFormat Readers were able to detect the code.")},t}(),w3=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_3=function(t){w3(e,t);function e(n,r){n===void 0&&(n=null),r===void 0&&(r=500);var i=this,o=new y3;return o.setHints(n),i=t.call(this,o,r)||this,i}return e.prototype.decodeBitmap=function(n){return this.reader.decodeWithState(n)},e}(di),E3=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){E3(e,t);function e(n){return n===void 0&&(n=500),t.call(this,new ol,n)||this}return e})(di);var A3=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){A3(e,t);function e(n){return n===void 0&&(n=500),t.call(this,new rl,n)||this}return e})(di);var al;(function(t){t[t.ERROR_CORRECTION=0]="ERROR_CORRECTION",t[t.CHARACTER_SET=1]="CHARACTER_SET",t[t.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",t[t.MIN_SIZE=3]="MIN_SIZE",t[t.MAX_SIZE=4]="MAX_SIZE",t[t.MARGIN=5]="MARGIN",t[t.PDF417_COMPACT=6]="PDF417_COMPACT",t[t.PDF417_COMPACTION=7]="PDF417_COMPACTION",t[t.PDF417_DIMENSIONS=8]="PDF417_DIMENSIONS",t[t.AZTEC_LAYERS=9]="AZTEC_LAYERS",t[t.QR_VERSION=10]="QR_VERSION"})(al||(al={}));const Eo=al;var gp=function(){function t(e){this.field=e,this.cachedGenerators=[],this.cachedGenerators.push(new Xn(e,Int32Array.from([1])))}return t.prototype.buildGenerator=function(e){var n=this.cachedGenerators;if(e>=n.length)for(var r=n[n.length-1],i=this.field,o=n.length;o<=e;o++){var a=r.multiply(new Xn(i,Int32Array.from([1,i.exp(o-1+i.getGeneratorBase())])));n.push(a),r=a}return n[e]},t.prototype.encode=function(e,n){if(n===0)throw new q("No error correction bytes");var r=e.length-n;if(r<=0)throw new q("No data bytes provided");var i=this.buildGenerator(n),o=new Int32Array(r);Se.arraycopy(e,0,o,0,r);var a=new Xn(this.field,o);a=a.multiplyByMonomial(n,1);for(var s=a.divide(i)[1],l=s.getCoefficients(),c=n-l.length,u=0;u<c;u++)e[r+u]=0;Se.arraycopy(l,0,e,r+c,l.length)},t}(),Ii=function(){function t(){}return t.applyMaskPenaltyRule1=function(e){return t.applyMaskPenaltyRule1Internal(e,!0)+t.applyMaskPenaltyRule1Internal(e,!1)},t.applyMaskPenaltyRule2=function(e){for(var n=0,r=e.getArray(),i=e.getWidth(),o=e.getHeight(),a=0;a<o-1;a++)for(var s=r[a],l=0;l<i-1;l++){var c=s[l];c===s[l+1]&&c===r[a+1][l]&&c===r[a+1][l+1]&&n++}return t.N2*n},t.applyMaskPenaltyRule3=function(e){for(var n=0,r=e.getArray(),i=e.getWidth(),o=e.getHeight(),a=0;a<o;a++)for(var s=0;s<i;s++){var l=r[a];s+6<i&&l[s]===1&&l[s+1]===0&&l[s+2]===1&&l[s+3]===1&&l[s+4]===1&&l[s+5]===0&&l[s+6]===1&&(t.isWhiteHorizontal(l,s-4,s)||t.isWhiteHorizontal(l,s+7,s+11))&&n++,a+6<o&&r[a][s]===1&&r[a+1][s]===0&&r[a+2][s]===1&&r[a+3][s]===1&&r[a+4][s]===1&&r[a+5][s]===0&&r[a+6][s]===1&&(t.isWhiteVertical(r,s,a-4,a)||t.isWhiteVertical(r,s,a+7,a+11))&&n++}return n*t.N3},t.isWhiteHorizontal=function(e,n,r){n=Math.max(n,0),r=Math.min(r,e.length);for(var i=n;i<r;i++)if(e[i]===1)return!1;return!0},t.isWhiteVertical=function(e,n,r,i){r=Math.max(r,0),i=Math.min(i,e.length);for(var o=r;o<i;o++)if(e[o][n]===1)return!1;return!0},t.applyMaskPenaltyRule4=function(e){for(var n=0,r=e.getArray(),i=e.getWidth(),o=e.getHeight(),a=0;a<o;a++)for(var s=r[a],l=0;l<i;l++)s[l]===1&&n++;var c=e.getHeight()*e.getWidth(),u=Math.floor(Math.abs(n*2-c)*10/c);return u*t.N4},t.getDataMaskBit=function(e,n,r){var i,o;switch(e){case 0:i=r+n&1;break;case 1:i=r&1;break;case 2:i=n%3;break;case 3:i=(r+n)%3;break;case 4:i=Math.floor(r/2)+Math.floor(n/3)&1;break;case 5:o=r*n,i=(o&1)+o%3;break;case 6:o=r*n,i=(o&1)+o%3&1;break;case 7:o=r*n,i=o%3+(r+n&1)&1;break;default:throw new q("Invalid mask pattern: "+e)}return i===0},t.applyMaskPenaltyRule1Internal=function(e,n){for(var r=0,i=n?e.getHeight():e.getWidth(),o=n?e.getWidth():e.getHeight(),a=e.getArray(),s=0;s<i;s++){for(var l=0,c=-1,u=0;u<o;u++){var d=n?a[s][u]:a[u][s];d===c?l++:(l>=5&&(r+=t.N1+(l-5)),l=1,c=d)}l>=5&&(r+=t.N1+(l-5))}return r},t.N1=3,t.N2=3,t.N3=40,t.N4=10,t}(),k3=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},C3=function(){function t(e,n){this.width=e,this.height=n;for(var r=new Array(n),i=0;i!==n;i++)r[i]=new Uint8Array(e);this.bytes=r}return t.prototype.getHeight=function(){return this.height},t.prototype.getWidth=function(){return this.width},t.prototype.get=function(e,n){return this.bytes[n][e]},t.prototype.getArray=function(){return this.bytes},t.prototype.setNumber=function(e,n,r){this.bytes[n][e]=r},t.prototype.setBoolean=function(e,n,r){this.bytes[n][e]=r?1:0},t.prototype.clear=function(e){var n,r;try{for(var i=k3(this.bytes),o=i.next();!o.done;o=i.next()){var a=o.value;It.fill(a,e)}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;if(this.width!==n.width||this.height!==n.height)return!1;for(var r=0,i=this.height;r<i;++r)for(var o=this.bytes[r],a=n.bytes[r],s=0,l=this.width;s<l;++s)if(o[s]!==a[s])return!1;return!0},t.prototype.toString=function(){for(var e=new Ae,n=0,r=this.height;n<r;++n){for(var i=this.bytes[n],o=0,a=this.width;o<a;++o)switch(i[o]){case 0:e.append(" 0");break;case 1:e.append(" 1");break;default:e.append(" ");break}e.append(`
|
|
128
|
+
`)}return e.toString()},t}(),sl=function(){function t(){this.maskPattern=-1}return t.prototype.getMode=function(){return this.mode},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getVersion=function(){return this.version},t.prototype.getMaskPattern=function(){return this.maskPattern},t.prototype.getMatrix=function(){return this.matrix},t.prototype.toString=function(){var e=new Ae;return e.append(`<<
|
|
129
|
+
`),e.append(" mode: "),e.append(this.mode?this.mode.toString():"null"),e.append(`
|
|
130
|
+
ecLevel: `),e.append(this.ecLevel?this.ecLevel.toString():"null"),e.append(`
|
|
131
|
+
version: `),e.append(this.version?this.version.toString():"null"),e.append(`
|
|
132
|
+
maskPattern: `),e.append(this.maskPattern.toString()),this.matrix?(e.append(`
|
|
133
|
+
matrix:
|
|
134
|
+
`),e.append(this.matrix.toString())):e.append(`
|
|
135
|
+
matrix: null
|
|
136
|
+
`),e.append(`>>
|
|
137
|
+
`),e.toString()},t.prototype.setMode=function(e){this.mode=e},t.prototype.setECLevel=function(e){this.ecLevel=e},t.prototype.setVersion=function(e){this.version=e},t.prototype.setMaskPattern=function(e){this.maskPattern=e},t.prototype.setMatrix=function(e){this.matrix=e},t.isValidMaskPattern=function(e){return e>=0&&e<t.NUM_MASK_PATTERNS},t.NUM_MASK_PATTERNS=8,t}(),S3=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oe=function(t){S3(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="WriterException",e}(_t),Sd=function(){function t(){}return t.clearMatrix=function(e){e.clear(255)},t.buildMatrix=function(e,n,r,i,o){t.clearMatrix(o),t.embedBasicPatterns(r,o),t.embedTypeInfo(n,i,o),t.maybeEmbedVersionInfo(r,o),t.embedDataBits(e,i,o)},t.embedBasicPatterns=function(e,n){t.embedPositionDetectionPatternsAndSeparators(n),t.embedDarkDotAtLeftBottomCorner(n),t.maybeEmbedPositionAdjustmentPatterns(e,n),t.embedTimingPatterns(n)},t.embedTypeInfo=function(e,n,r){var i=new it;t.makeTypeInfoBits(e,n,i);for(var o=0,a=i.getSize();o<a;++o){var s=i.get(i.getSize()-1-o),l=t.TYPE_INFO_COORDINATES[o],c=l[0],u=l[1];if(r.setBoolean(c,u,s),o<8){var d=r.getWidth()-o-1,f=8;r.setBoolean(d,f,s)}else{var d=8,f=r.getHeight()-7+(o-8);r.setBoolean(d,f,s)}}},t.maybeEmbedVersionInfo=function(e,n){if(!(e.getVersionNumber()<7)){var r=new it;t.makeVersionInfoBits(e,r);for(var i=6*3-1,o=0;o<6;++o)for(var a=0;a<3;++a){var s=r.get(i);i--,n.setBoolean(o,n.getHeight()-11+a,s),n.setBoolean(n.getHeight()-11+a,o,s)}}},t.embedDataBits=function(e,n,r){for(var i=0,o=-1,a=r.getWidth()-1,s=r.getHeight()-1;a>0;){for(a===6&&(a-=1);s>=0&&s<r.getHeight();){for(var l=0;l<2;++l){var c=a-l;if(t.isEmpty(r.get(c,s))){var u=void 0;i<e.getSize()?(u=e.get(i),++i):u=!1,n!==255&&Ii.getDataMaskBit(n,c,s)&&(u=!u),r.setBoolean(c,s,u)}}s+=o}o=-o,s+=o,a-=2}if(i!==e.getSize())throw new Oe("Not all bits consumed: "+i+"/"+e.getSize())},t.findMSBSet=function(e){return 32-ue.numberOfLeadingZeros(e)},t.calculateBCHCode=function(e,n){if(n===0)throw new q("0 polynomial");var r=t.findMSBSet(n);for(e<<=r-1;t.findMSBSet(e)>=r;)e^=n<<t.findMSBSet(e)-r;return e},t.makeTypeInfoBits=function(e,n,r){if(!sl.isValidMaskPattern(n))throw new Oe("Invalid mask pattern");var i=e.getBits()<<3|n;r.appendBits(i,5);var o=t.calculateBCHCode(i,t.TYPE_INFO_POLY);r.appendBits(o,10);var a=new it;if(a.appendBits(t.TYPE_INFO_MASK_PATTERN,15),r.xor(a),r.getSize()!==15)throw new Oe("should not happen but we got: "+r.getSize())},t.makeVersionInfoBits=function(e,n){n.appendBits(e.getVersionNumber(),6);var r=t.calculateBCHCode(e.getVersionNumber(),t.VERSION_INFO_POLY);if(n.appendBits(r,12),n.getSize()!==18)throw new Oe("should not happen but we got: "+n.getSize())},t.isEmpty=function(e){return e===255},t.embedTimingPatterns=function(e){for(var n=8;n<e.getWidth()-8;++n){var r=(n+1)%2;t.isEmpty(e.get(n,6))&&e.setNumber(n,6,r),t.isEmpty(e.get(6,n))&&e.setNumber(6,n,r)}},t.embedDarkDotAtLeftBottomCorner=function(e){if(e.get(8,e.getHeight()-8)===0)throw new Oe;e.setNumber(8,e.getHeight()-8,1)},t.embedHorizontalSeparationPattern=function(e,n,r){for(var i=0;i<8;++i){if(!t.isEmpty(r.get(e+i,n)))throw new Oe;r.setNumber(e+i,n,0)}},t.embedVerticalSeparationPattern=function(e,n,r){for(var i=0;i<7;++i){if(!t.isEmpty(r.get(e,n+i)))throw new Oe;r.setNumber(e,n+i,0)}},t.embedPositionAdjustmentPattern=function(e,n,r){for(var i=0;i<5;++i)for(var o=t.POSITION_ADJUSTMENT_PATTERN[i],a=0;a<5;++a)r.setNumber(e+a,n+i,o[a])},t.embedPositionDetectionPattern=function(e,n,r){for(var i=0;i<7;++i)for(var o=t.POSITION_DETECTION_PATTERN[i],a=0;a<7;++a)r.setNumber(e+a,n+i,o[a])},t.embedPositionDetectionPatternsAndSeparators=function(e){var n=t.POSITION_DETECTION_PATTERN[0].length;t.embedPositionDetectionPattern(0,0,e),t.embedPositionDetectionPattern(e.getWidth()-n,0,e),t.embedPositionDetectionPattern(0,e.getWidth()-n,e);var r=8;t.embedHorizontalSeparationPattern(0,r-1,e),t.embedHorizontalSeparationPattern(e.getWidth()-r,r-1,e),t.embedHorizontalSeparationPattern(0,e.getWidth()-r,e);var i=7;t.embedVerticalSeparationPattern(i,0,e),t.embedVerticalSeparationPattern(e.getHeight()-i-1,0,e),t.embedVerticalSeparationPattern(i,e.getHeight()-i,e)},t.maybeEmbedPositionAdjustmentPatterns=function(e,n){if(!(e.getVersionNumber()<2))for(var r=e.getVersionNumber()-1,i=t.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[r],o=0,a=i.length;o!==a;o++){var s=i[o];if(s>=0)for(var l=0;l!==a;l++){var c=i[l];c>=0&&t.isEmpty(n.get(c,s))&&t.embedPositionAdjustmentPattern(c-2,s-2,n)}}},t.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),t.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),t.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),t.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),t.VERSION_INFO_POLY=7973,t.TYPE_INFO_POLY=1335,t.TYPE_INFO_MASK_PATTERN=21522,t}(),I3=function(){function t(e,n){this.dataBytes=e,this.errorCorrectionBytes=n}return t.prototype.getDataBytes=function(){return this.dataBytes},t.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},t}(),Id=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};(function(){function t(){}return t.calculateMaskPenalty=function(e){return Ii.applyMaskPenaltyRule1(e)+Ii.applyMaskPenaltyRule2(e)+Ii.applyMaskPenaltyRule3(e)+Ii.applyMaskPenaltyRule4(e)},t.encode=function(e,n,r){r===void 0&&(r=null);var i=t.DEFAULT_BYTE_MODE_ENCODING,o=r!==null&&r.get(Eo.CHARACTER_SET)!==void 0;o&&(i=r.get(Eo.CHARACTER_SET).toString());var a=this.chooseMode(e,i),s=new it;if(a===De.BYTE&&(o||t.DEFAULT_BYTE_MODE_ENCODING!==i)){var l=Je.getCharacterSetECIByName(i);l!==void 0&&this.appendECI(l,s)}this.appendModeInfo(a,s);var c=new it;this.appendBytes(e,a,c,i);var u;if(r!==null&&r.get(Eo.QR_VERSION)!==void 0){var d=Number.parseInt(r.get(Eo.QR_VERSION).toString(),10);u=_r.getVersionForNumber(d);var f=this.calculateBitsNeeded(a,s,c,u);if(!this.willFit(f,u,n))throw new Oe("Data too big for requested version")}else u=this.recommendVersion(n,a,s,c);var h=new it;h.appendBitArray(s);var p=a===De.BYTE?c.getSizeInBytes():e.length;this.appendLengthInfo(p,u,a,h),h.appendBitArray(c);var g=u.getECBlocksForLevel(n),b=u.getTotalCodewords()-g.getTotalECCodewords();this.terminateBits(b,h);var m=this.interleaveWithECBytes(h,u.getTotalCodewords(),b,g.getNumBlocks()),v=new sl;v.setECLevel(n),v.setMode(a),v.setVersion(u);var w=u.getDimensionForVersion(),y=new C3(w,w),C=this.chooseMaskPattern(m,n,u,y);return v.setMaskPattern(C),Sd.buildMatrix(m,n,u,C,y),v.setMatrix(y),v},t.recommendVersion=function(e,n,r,i){var o=this.calculateBitsNeeded(n,r,i,_r.getVersionForNumber(1)),a=this.chooseVersion(o,e),s=this.calculateBitsNeeded(n,r,i,a);return this.chooseVersion(s,e)},t.calculateBitsNeeded=function(e,n,r,i){return n.getSize()+e.getCharacterCountBits(i)+r.getSize()},t.getAlphanumericCode=function(e){return e<t.ALPHANUMERIC_TABLE.length?t.ALPHANUMERIC_TABLE[e]:-1},t.chooseMode=function(e,n){if(n===void 0&&(n=null),Je.SJIS.getName()===n&&this.isOnlyDoubleByteKanji(e))return De.KANJI;for(var r=!1,i=!1,o=0,a=e.length;o<a;++o){var s=e.charAt(o);if(t.isDigit(s))r=!0;else if(this.getAlphanumericCode(s.charCodeAt(0))!==-1)i=!0;else return De.BYTE}return i?De.ALPHANUMERIC:r?De.NUMERIC:De.BYTE},t.isOnlyDoubleByteKanji=function(e){var n;try{n=xn.encode(e,Je.SJIS)}catch{return!1}var r=n.length;if(r%2!==0)return!1;for(var i=0;i<r;i+=2){var o=n[i]&255;if((o<129||o>159)&&(o<224||o>235))return!1}return!0},t.chooseMaskPattern=function(e,n,r,i){for(var o=Number.MAX_SAFE_INTEGER,a=-1,s=0;s<sl.NUM_MASK_PATTERNS;s++){Sd.buildMatrix(e,n,r,s,i);var l=this.calculateMaskPenalty(i);l<o&&(o=l,a=s)}return a},t.chooseVersion=function(e,n){for(var r=1;r<=40;r++){var i=_r.getVersionForNumber(r);if(t.willFit(e,i,n))return i}throw new Oe("Data too big")},t.willFit=function(e,n,r){var i=n.getTotalCodewords(),o=n.getECBlocksForLevel(r),a=o.getTotalECCodewords(),s=i-a,l=(e+7)/8;return s>=l},t.terminateBits=function(e,n){var r=e*8;if(n.getSize()>r)throw new Oe("data bits cannot fit in the QR Code"+n.getSize()+" > "+r);for(var i=0;i<4&&n.getSize()<r;++i)n.appendBit(!1);var o=n.getSize()&7;if(o>0)for(var i=o;i<8;i++)n.appendBit(!1);for(var a=e-n.getSizeInBytes(),i=0;i<a;++i)n.appendBits(i&1?17:236,8);if(n.getSize()!==r)throw new Oe("Bits size does not equal capacity")},t.getNumDataBytesAndNumECBytesForBlockID=function(e,n,r,i,o,a){if(i>=r)throw new Oe("Block ID too large");var s=e%r,l=r-s,c=Math.floor(e/r),u=c+1,d=Math.floor(n/r),f=d+1,h=c-d,p=u-f;if(h!==p)throw new Oe("EC bytes mismatch");if(r!==l+s)throw new Oe("RS blocks mismatch");if(e!==(d+h)*l+(f+p)*s)throw new Oe("Total bytes mismatch");i<l?(o[0]=d,a[0]=h):(o[0]=f,a[0]=p)},t.interleaveWithECBytes=function(e,n,r,i){var o,a,s,l;if(e.getSizeInBytes()!==r)throw new Oe("Number of bits and data bytes does not match");for(var c=0,u=0,d=0,f=new Array,h=0;h<i;++h){var p=new Int32Array(1),g=new Int32Array(1);t.getNumDataBytesAndNumECBytesForBlockID(n,r,i,h,p,g);var b=p[0],m=new Uint8Array(b);e.toBytes(8*c,m,0,b);var v=t.generateECBytes(m,g[0]);f.push(new I3(m,v)),u=Math.max(u,b),d=Math.max(d,v.length),c+=p[0]}if(r!==c)throw new Oe("Data bytes does not match offset");for(var w=new it,h=0;h<u;++h)try{for(var y=(o=void 0,Id(f)),C=y.next();!C.done;C=y.next()){var E=C.value,m=E.getDataBytes();h<m.length&&w.appendBits(m[h],8)}}catch(O){o={error:O}}finally{try{C&&!C.done&&(a=y.return)&&a.call(y)}finally{if(o)throw o.error}}for(var h=0;h<d;++h)try{for(var k=(s=void 0,Id(f)),N=k.next();!N.done;N=k.next()){var E=N.value,v=E.getErrorCorrectionBytes();h<v.length&&w.appendBits(v[h],8)}}catch(O){s={error:O}}finally{try{N&&!N.done&&(l=k.return)&&l.call(k)}finally{if(s)throw s.error}}if(n!==w.getSizeInBytes())throw new Oe("Interleaving error: "+n+" and "+w.getSizeInBytes()+" differ.");return w},t.generateECBytes=function(e,n){for(var r=e.length,i=new Int32Array(r+n),o=0;o<r;o++)i[o]=e[o]&255;new gp(Ct.QR_CODE_FIELD_256).encode(i,n);for(var a=new Uint8Array(n),o=0;o<n;o++)a[o]=i[r+o];return a},t.appendModeInfo=function(e,n){n.appendBits(e.getBits(),4)},t.appendLengthInfo=function(e,n,r,i){var o=r.getCharacterCountBits(n);if(e>=1<<o)throw new Oe(e+" is bigger than "+((1<<o)-1));i.appendBits(e,o)},t.appendBytes=function(e,n,r,i){switch(n){case De.NUMERIC:t.appendNumericBytes(e,r);break;case De.ALPHANUMERIC:t.appendAlphanumericBytes(e,r);break;case De.BYTE:t.append8BitBytes(e,r,i);break;case De.KANJI:t.appendKanjiBytes(e,r);break;default:throw new Oe("Invalid mode: "+n)}},t.getDigit=function(e){return e.charCodeAt(0)-48},t.isDigit=function(e){var n=t.getDigit(e);return n>=0&&n<=9},t.appendNumericBytes=function(e,n){for(var r=e.length,i=0;i<r;){var o=t.getDigit(e.charAt(i));if(i+2<r){var a=t.getDigit(e.charAt(i+1)),s=t.getDigit(e.charAt(i+2));n.appendBits(o*100+a*10+s,10),i+=3}else if(i+1<r){var a=t.getDigit(e.charAt(i+1));n.appendBits(o*10+a,7),i+=2}else n.appendBits(o,4),i++}},t.appendAlphanumericBytes=function(e,n){for(var r=e.length,i=0;i<r;){var o=t.getAlphanumericCode(e.charCodeAt(i));if(o===-1)throw new Oe;if(i+1<r){var a=t.getAlphanumericCode(e.charCodeAt(i+1));if(a===-1)throw new Oe;n.appendBits(o*45+a,11),i+=2}else n.appendBits(o,6),i++}},t.append8BitBytes=function(e,n,r){var i;try{i=xn.encode(e,r)}catch(l){throw new Oe(l)}for(var o=0,a=i.length;o!==a;o++){var s=i[o];n.appendBits(s,8)}},t.appendKanjiBytes=function(e,n){var r;try{r=xn.encode(e,Je.SJIS)}catch(d){throw new Oe(d)}for(var i=r.length,o=0;o<i;o+=2){var a=r[o]&255,s=r[o+1]&255,l=a<<8&4294967295|s,c=-1;if(l>=33088&&l<=40956?c=l-33088:l>=57408&&l<=60351&&(c=l-49472),c===-1)throw new Oe("Invalid byte sequence");var u=(c>>8)*192+(c&255);n.appendBits(u,13)}},t.appendECI=function(e,n){n.appendBits(De.ECI.getBits(),4),n.appendBits(e.getValue(),8)},t.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),t.DEFAULT_BYTE_MODE_ENCODING=Je.UTF8.getName(),t})();var T3=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){T3(e,t);function e(n,r,i,o,a,s,l,c){var u=t.call(this,s,l)||this;if(u.yuvData=n,u.dataWidth=r,u.dataHeight=i,u.left=o,u.top=a,o+s>r||a+l>i)throw new q("Crop rectangle does not fit within image data.");return c&&u.reverseHorizontal(s,l),u}return e.prototype.getRow=function(n,r){if(n<0||n>=this.getHeight())throw new q("Requested row is outside the image: "+n);var i=this.getWidth();(r==null||r.length<i)&&(r=new Uint8ClampedArray(i));var o=(n+this.top)*this.dataWidth+this.left;return Se.arraycopy(this.yuvData,o,r,0,i),r},e.prototype.getMatrix=function(){var n=this.getWidth(),r=this.getHeight();if(n===this.dataWidth&&r===this.dataHeight)return this.yuvData;var i=n*r,o=new Uint8ClampedArray(i),a=this.top*this.dataWidth+this.left;if(n===this.dataWidth)return Se.arraycopy(this.yuvData,a,o,0,i),o;for(var s=0;s<r;s++){var l=s*n;Se.arraycopy(this.yuvData,a,o,l,n),a+=this.dataWidth}return o},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(n,r,i,o){return new e(this.yuvData,this.dataWidth,this.dataHeight,this.left+n,this.top+r,i,o,!1)},e.prototype.renderThumbnail=function(){for(var n=this.getWidth()/e.THUMBNAIL_SCALE_FACTOR,r=this.getHeight()/e.THUMBNAIL_SCALE_FACTOR,i=new Int32Array(n*r),o=this.yuvData,a=this.top*this.dataWidth+this.left,s=0;s<r;s++){for(var l=s*n,c=0;c<n;c++){var u=o[a+c*e.THUMBNAIL_SCALE_FACTOR]&255;i[l+c]=4278190080|u*65793}a+=this.dataWidth*e.THUMBNAIL_SCALE_FACTOR}return i},e.prototype.getThumbnailWidth=function(){return this.getWidth()/e.THUMBNAIL_SCALE_FACTOR},e.prototype.getThumbnailHeight=function(){return this.getHeight()/e.THUMBNAIL_SCALE_FACTOR},e.prototype.reverseHorizontal=function(n,r){for(var i=this.yuvData,o=0,a=this.top*this.dataWidth+this.left;o<r;o++,a+=this.dataWidth)for(var s=a+n/2,l=a,c=a+n-1;l<s;l++,c--){var u=i[l];i[l]=i[c],i[c]=u}},e.prototype.invert=function(){return new uc(this)},e.THUMBNAIL_SCALE_FACTOR=2,e})(_a);var O3=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){O3(e,t);function e(n,r,i,o,a,s,l){var c=t.call(this,r,i)||this;if(c.dataWidth=o,c.dataHeight=a,c.left=s,c.top=l,n.BYTES_PER_ELEMENT===4){for(var u=r*i,d=new Uint8ClampedArray(u),f=0;f<u;f++){var h=n[f],p=h>>16&255,g=h>>7&510,b=h&255;d[f]=(p+g+b)/4&255}c.luminances=d}else c.luminances=n;if(o===void 0&&(c.dataWidth=r),a===void 0&&(c.dataHeight=i),s===void 0&&(c.left=0),l===void 0&&(c.top=0),c.left+r>c.dataWidth||c.top+i>c.dataHeight)throw new q("Crop rectangle does not fit within image data.");return c}return e.prototype.getRow=function(n,r){if(n<0||n>=this.getHeight())throw new q("Requested row is outside the image: "+n);var i=this.getWidth();(r==null||r.length<i)&&(r=new Uint8ClampedArray(i));var o=(n+this.top)*this.dataWidth+this.left;return Se.arraycopy(this.luminances,o,r,0,i),r},e.prototype.getMatrix=function(){var n=this.getWidth(),r=this.getHeight();if(n===this.dataWidth&&r===this.dataHeight)return this.luminances;var i=n*r,o=new Uint8ClampedArray(i),a=this.top*this.dataWidth+this.left;if(n===this.dataWidth)return Se.arraycopy(this.luminances,a,o,0,i),o;for(var s=0;s<r;s++){var l=s*n;Se.arraycopy(this.luminances,a,o,l,n),a+=this.dataWidth}return o},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(n,r,i,o){return new e(this.luminances,i,o,this.dataWidth,this.dataHeight,this.left+n,this.top+r)},e.prototype.invert=function(){return new uc(this)},e})(_a);var D3=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){D3(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.forName=function(n){return this.getCharacterSetECIByName(n)},e})(Je);(function(){function t(){}return t.ISO_8859_1=Je.ISO8859_1,t})();var N3=function(){function t(){}return t.prototype.isCompact=function(){return this.compact},t.prototype.setCompact=function(e){this.compact=e},t.prototype.getSize=function(){return this.size},t.prototype.setSize=function(e){this.size=e},t.prototype.getLayers=function(){return this.layers},t.prototype.setLayers=function(e){this.layers=e},t.prototype.getCodeWords=function(){return this.codeWords},t.prototype.setCodeWords=function(e){this.codeWords=e},t.prototype.getMatrix=function(){return this.matrix},t.prototype.setMatrix=function(e){this.matrix=e},t}(),Td=function(){function t(){}return t.singletonList=function(e){return[e]},t.min=function(e,n){return e.sort(n)[0]},t}(),P3=function(){function t(e){this.previous=e}return t.prototype.getPrevious=function(){return this.previous},t}(),R3=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),gc=function(t){R3(e,t);function e(n,r,i){var o=t.call(this,n)||this;return o.value=r,o.bitCount=i,o}return e.prototype.appendTo=function(n,r){n.appendBits(this.value,this.bitCount)},e.prototype.add=function(n,r){return new e(this,n,r)},e.prototype.addBinaryShift=function(n,r){return console.warn("addBinaryShift on SimpleToken, this simply returns a copy of this token"),new e(this,n,r)},e.prototype.toString=function(){var n=this.value&(1<<this.bitCount)-1;return n|=1<<this.bitCount,"<"+ue.toBinaryString(n|1<<this.bitCount).substring(1)+">"},e}(P3),M3=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),L3=function(t){M3(e,t);function e(n,r,i){var o=t.call(this,n,0,0)||this;return o.binaryShiftStart=r,o.binaryShiftByteCount=i,o}return e.prototype.appendTo=function(n,r){for(var i=0;i<this.binaryShiftByteCount;i++)(i===0||i===31&&this.binaryShiftByteCount<=62)&&(n.appendBits(31,5),this.binaryShiftByteCount>62?n.appendBits(this.binaryShiftByteCount-31,16):i===0?n.appendBits(Math.min(this.binaryShiftByteCount,31),5):n.appendBits(this.binaryShiftByteCount-31,5)),n.appendBits(r[this.binaryShiftStart+i],8)},e.prototype.addBinaryShift=function(n,r){return new e(this,n,r)},e.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},e}(gc);function F3(t,e,n){return new L3(t,e,n)}function xi(t,e,n){return new gc(t,e,n)}var B3=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],qn=0,ta=1,Gt=2,mp=3,vn=4,$3=new gc(null,0,0),os=[Int32Array.from([0,(5<<16)+28,(5<<16)+30,(5<<16)+29,655360+928+30]),Int32Array.from([(9<<16)+480+14,0,(5<<16)+30,(5<<16)+29,655360+928+30]),Int32Array.from([(4<<16)+14,(9<<16)+448+28,0,(9<<16)+448+29,917504+14336+928+30]),Int32Array.from([(5<<16)+29,(5<<16)+28,655360+928+30,0,(5<<16)+30]),Int32Array.from([(5<<16)+31,655360+992+28,655360+992+30,655360+992+29,0])],V3=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function U3(t){var e,n;try{for(var r=V3(t),i=r.next();!i.done;i=r.next()){var o=i.value;It.fill(o,-1)}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return t[qn][vn]=0,t[ta][vn]=0,t[ta][qn]=28,t[mp][vn]=0,t[Gt][vn]=0,t[Gt][qn]=15,t}var vp=U3(It.createInt32Array(6,6)),H3=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},z3=function(){function t(e,n,r,i){this.token=e,this.mode=n,this.binaryShiftByteCount=r,this.bitCount=i}return t.prototype.getMode=function(){return this.mode},t.prototype.getToken=function(){return this.token},t.prototype.getBinaryShiftByteCount=function(){return this.binaryShiftByteCount},t.prototype.getBitCount=function(){return this.bitCount},t.prototype.latchAndAppend=function(e,n){var r=this.bitCount,i=this.token;if(e!==this.mode){var o=os[this.mode][e];i=xi(i,o&65535,o>>16),r+=o>>16}var a=e===Gt?4:5;return i=xi(i,n,a),new t(i,e,0,r+a)},t.prototype.shiftAndAppend=function(e,n){var r=this.token,i=this.mode===Gt?4:5;return r=xi(r,vp[this.mode][e],i),r=xi(r,n,5),new t(r,this.mode,0,this.bitCount+i+5)},t.prototype.addBinaryShiftChar=function(e){var n=this.token,r=this.mode,i=this.bitCount;if(this.mode===vn||this.mode===Gt){var o=os[r][qn];n=xi(n,o&65535,o>>16),i+=o>>16,r=qn}var a=this.binaryShiftByteCount===0||this.binaryShiftByteCount===31?18:this.binaryShiftByteCount===62?9:8,s=new t(n,r,this.binaryShiftByteCount+1,i+a);return s.binaryShiftByteCount===2047+31&&(s=s.endBinaryShift(e+1)),s},t.prototype.endBinaryShift=function(e){if(this.binaryShiftByteCount===0)return this;var n=this.token;return n=F3(n,e-this.binaryShiftByteCount,this.binaryShiftByteCount),new t(n,this.mode,0,this.bitCount)},t.prototype.isBetterThanOrEqualTo=function(e){var n=this.bitCount+(os[this.mode][e.mode]>>16);return this.binaryShiftByteCount<e.binaryShiftByteCount?n+=t.calculateBinaryShiftCost(e)-t.calculateBinaryShiftCost(this):this.binaryShiftByteCount>e.binaryShiftByteCount&&e.binaryShiftByteCount>0&&(n+=10),n<=e.bitCount},t.prototype.toBitArray=function(e){for(var n,r,i=[],o=this.endBinaryShift(e.length).token;o!==null;o=o.getPrevious())i.unshift(o);var a=new it;try{for(var s=H3(i),l=s.next();!l.done;l=s.next()){var c=l.value;c.appendTo(a,e)}}catch(u){n={error:u}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a},t.prototype.toString=function(){return Ce.format("%s bits=%d bytes=%d",B3[this.mode],this.bitCount,this.binaryShiftByteCount)},t.calculateBinaryShiftCost=function(e){return e.binaryShiftByteCount>62?21:e.binaryShiftByteCount>31?20:e.binaryShiftByteCount>0?10:0},t.INITIAL_STATE=new t($3,qn,0,0),t}();function W3(t){var e=Ce.getCharCode(" "),n=Ce.getCharCode("."),r=Ce.getCharCode(",");t[qn][e]=1;for(var i=Ce.getCharCode("Z"),o=Ce.getCharCode("A"),a=o;a<=i;a++)t[qn][a]=a-o+2;t[ta][e]=1;for(var s=Ce.getCharCode("z"),l=Ce.getCharCode("a"),a=l;a<=s;a++)t[ta][a]=a-l+2;t[Gt][e]=1;for(var c=Ce.getCharCode("9"),u=Ce.getCharCode("0"),a=u;a<=c;a++)t[Gt][a]=a-u+2;t[Gt][r]=12,t[Gt][n]=13;for(var d=["\0"," ","","","","","","","\x07","\b"," ",`
|
|
138
|
+
`,"\v","\f","\r","\x1B","","","","","@","\\","^","_","`","|","~",""],f=0;f<d.length;f++)t[mp][Ce.getCharCode(d[f])]=f;for(var h=["\0","\r","\0","\0","\0","\0","!","'","#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}"],f=0;f<h.length;f++)Ce.getCharCode(h[f])>0&&(t[vn][Ce.getCharCode(h[f])]=f);return t}var as=W3(It.createInt32Array(5,256)),Ao=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},G3=function(){function t(e){this.text=e}return t.prototype.encode=function(){for(var e=Ce.getCharCode(" "),n=Ce.getCharCode(`
|
|
139
|
+
`),r=Td.singletonList(z3.INITIAL_STATE),i=0;i<this.text.length;i++){var o=void 0,a=i+1<this.text.length?this.text[i+1]:0;switch(this.text[i]){case Ce.getCharCode("\r"):o=a===n?2:0;break;case Ce.getCharCode("."):o=a===e?3:0;break;case Ce.getCharCode(","):o=a===e?4:0;break;case Ce.getCharCode(":"):o=a===e?5:0;break;default:o=0}o>0?(r=t.updateStateListForPair(r,i,o),i++):r=this.updateStateListForChar(r,i)}var s=Td.min(r,function(l,c){return l.getBitCount()-c.getBitCount()});return s.toBitArray(this.text)},t.prototype.updateStateListForChar=function(e,n){var r,i,o=[];try{for(var a=Ao(e),s=a.next();!s.done;s=a.next()){var l=s.value;this.updateStateForChar(l,n,o)}}catch(c){r={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return t.simplifyStates(o)},t.prototype.updateStateForChar=function(e,n,r){for(var i=this.text[n]&255,o=as[e.getMode()][i]>0,a=null,s=0;s<=vn;s++){var l=as[s][i];if(l>0){if(a==null&&(a=e.endBinaryShift(n)),!o||s===e.getMode()||s===Gt){var c=a.latchAndAppend(s,l);r.push(c)}if(!o&&vp[e.getMode()][s]>=0){var u=a.shiftAndAppend(s,l);r.push(u)}}}if(e.getBinaryShiftByteCount()>0||as[e.getMode()][i]===0){var d=e.addBinaryShiftChar(n);r.push(d)}},t.updateStateListForPair=function(e,n,r){var i,o,a=[];try{for(var s=Ao(e),l=s.next();!l.done;l=s.next()){var c=l.value;this.updateStateForPair(c,n,r,a)}}catch(u){i={error:u}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return this.simplifyStates(a)},t.updateStateForPair=function(e,n,r,i){var o=e.endBinaryShift(n);if(i.push(o.latchAndAppend(vn,r)),e.getMode()!==vn&&i.push(o.shiftAndAppend(vn,r)),r===3||r===4){var a=o.latchAndAppend(Gt,16-r).latchAndAppend(Gt,1);i.push(a)}if(e.getBinaryShiftByteCount()>0){var s=e.addBinaryShiftChar(n).addBinaryShiftChar(n+1);i.push(s)}},t.simplifyStates=function(e){var n,r,i,o,a=[];try{for(var s=Ao(e),l=s.next();!l.done;l=s.next()){var c=l.value,u=!0,d=function(b){if(b.isBetterThanOrEqualTo(c))return u=!1,"break";c.isBetterThanOrEqualTo(b)&&(a=a.filter(function(m){return m!==b}))};try{for(var f=(i=void 0,Ao(a)),h=f.next();!h.done;h=f.next()){var p=h.value,g=d(p);if(g==="break")break}}catch(b){i={error:b}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}u&&a.push(c)}}catch(b){n={error:b}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a},t}(),j3=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};(function(){function t(){}return t.encodeBytes=function(e){return t.encode(e,t.DEFAULT_EC_PERCENT,t.DEFAULT_AZTEC_LAYERS)},t.encode=function(e,n,r){var i=new G3(e).encode(),o=ue.truncDivision(i.getSize()*n,100)+11,a=i.getSize()+o,s,l,c,u,d;if(r!==t.DEFAULT_AZTEC_LAYERS){if(s=r<0,l=Math.abs(r),l>(s?t.MAX_NB_BITS_COMPACT:t.MAX_NB_BITS))throw new q(Ce.format("Illegal value %s for layers",r));c=t.totalBitsInLayer(l,s),u=t.WORD_SIZE[l];var f=c-c%u;if(d=t.stuffBits(i,u),d.getSize()+o>f)throw new q("Data to large for user specified layer");if(s&&d.getSize()>u*64)throw new q("Data to large for user specified layer")}else{u=0,d=null;for(var h=0;;h++){if(h>t.MAX_NB_BITS)throw new q("Data too large for an Aztec code");if(s=h<=3,l=s?h+1:h,c=t.totalBitsInLayer(l,s),!(a>c)){(d==null||u!==t.WORD_SIZE[l])&&(u=t.WORD_SIZE[l],d=t.stuffBits(i,u));var f=c-c%u;if(!(s&&d.getSize()>u*64)&&d.getSize()+o<=f)break}}}var p=t.generateCheckWords(d,c,u),g=d.getSize()/u,b=t.generateModeMessage(s,l,g),m=(s?11:14)+l*4,v=new Int32Array(m),w;if(s){w=m;for(var h=0;h<v.length;h++)v[h]=h}else{w=m+1+2*ue.truncDivision(ue.truncDivision(m,2)-1,15);for(var y=ue.truncDivision(m,2),C=ue.truncDivision(w,2),h=0;h<y;h++){var E=h+ue.truncDivision(h,15);v[y-h-1]=C-E-1,v[y+h]=C+E+1}}for(var k=new yn(w),h=0,N=0;h<l;h++){for(var D=(l-h)*4+(s?9:12),O=0;O<D;O++)for(var L=O*2,B=0;B<2;B++)p.get(N+L+B)&&k.set(v[h*2+B],v[h*2+O]),p.get(N+D*2+L+B)&&k.set(v[h*2+O],v[m-1-h*2-B]),p.get(N+D*4+L+B)&&k.set(v[m-1-h*2-B],v[m-1-h*2-O]),p.get(N+D*6+L+B)&&k.set(v[m-1-h*2-O],v[h*2+B]);N+=D*8}if(t.drawModeMessage(k,s,w,b),s)t.drawBullsEye(k,ue.truncDivision(w,2),5);else{t.drawBullsEye(k,ue.truncDivision(w,2),7);for(var h=0,O=0;h<ue.truncDivision(m,2)-1;h+=15,O+=16)for(var B=ue.truncDivision(w,2)&1;B<w;B+=2)k.set(ue.truncDivision(w,2)-O,B),k.set(ue.truncDivision(w,2)+O,B),k.set(B,ue.truncDivision(w,2)-O),k.set(B,ue.truncDivision(w,2)+O)}var G=new N3;return G.setCompact(s),G.setSize(w),G.setLayers(l),G.setCodeWords(g),G.setMatrix(k),G},t.drawBullsEye=function(e,n,r){for(var i=0;i<r;i+=2)for(var o=n-i;o<=n+i;o++)e.set(o,n-i),e.set(o,n+i),e.set(n-i,o),e.set(n+i,o);e.set(n-r,n-r),e.set(n-r+1,n-r),e.set(n-r,n-r+1),e.set(n+r,n-r),e.set(n+r,n-r+1),e.set(n+r,n+r-1)},t.generateModeMessage=function(e,n,r){var i=new it;return e?(i.appendBits(n-1,2),i.appendBits(r-1,6),i=t.generateCheckWords(i,28,4)):(i.appendBits(n-1,5),i.appendBits(r-1,11),i=t.generateCheckWords(i,40,4)),i},t.drawModeMessage=function(e,n,r,i){var o=ue.truncDivision(r,2);if(n)for(var a=0;a<7;a++){var s=o-3+a;i.get(a)&&e.set(s,o-5),i.get(a+7)&&e.set(o+5,s),i.get(20-a)&&e.set(s,o+5),i.get(27-a)&&e.set(o-5,s)}else for(var a=0;a<10;a++){var s=o-5+a+ue.truncDivision(a,5);i.get(a)&&e.set(s,o-7),i.get(a+10)&&e.set(o+7,s),i.get(29-a)&&e.set(s,o+7),i.get(39-a)&&e.set(o-7,s)}},t.generateCheckWords=function(e,n,r){var i,o,a=e.getSize()/r,s=new gp(t.getGF(r)),l=ue.truncDivision(n,r),c=t.bitsToWords(e,r,l);s.encode(c,l-a);var u=n%r,d=new it;d.appendBits(0,u);try{for(var f=j3(Array.from(c)),h=f.next();!h.done;h=f.next()){var p=h.value;d.appendBits(p,r)}}catch(g){i={error:g}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}return d},t.bitsToWords=function(e,n,r){var i=new Int32Array(r),o,a;for(o=0,a=e.getSize()/n;o<a;o++){for(var s=0,l=0;l<n;l++)s|=e.get(o*n+l)?1<<n-l-1:0;i[o]=s}return i},t.getGF=function(e){switch(e){case 4:return Ct.AZTEC_PARAM;case 6:return Ct.AZTEC_DATA_6;case 8:return Ct.AZTEC_DATA_8;case 10:return Ct.AZTEC_DATA_10;case 12:return Ct.AZTEC_DATA_12;default:throw new q("Unsupported word size "+e)}},t.stuffBits=function(e,n){for(var r=new it,i=e.getSize(),o=(1<<n)-2,a=0;a<i;a+=n){for(var s=0,l=0;l<n;l++)(a+l>=i||e.get(a+l))&&(s|=1<<n-1-l);(s&o)===o?(r.appendBits(s&o,n),a--):s&o?r.appendBits(s,n):(r.appendBits(s|1,n),a--)}return r},t.totalBitsInLayer=function(e,n){return((n?88:112)+16*e)*e},t.DEFAULT_EC_PERCENT=33,t.DEFAULT_AZTEC_LAYERS=0,t.MAX_NB_BITS=32,t.MAX_NB_BITS_COMPACT=4,t.WORD_SIZE=Int32Array.from([4,6,6,8,8,8,8,8,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12]),t})();const bp=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};const Y3={name:"stream-barcode-reader",data(){return{isLoading:!0,codeReader:new _3,isMediaStreamAPISupported:navigator&&navigator.mediaDevices&&"enumerateDevices"in navigator.mediaDevices}},mounted(){if(!this.isMediaStreamAPISupported)throw new _t("Media Stream API is not supported");this.start(),this.$refs.scanner.oncanplay=t=>{this.isLoading=!1,this.$emit("loaded")}},beforeUnmount(){this.codeReader.reset()},methods:{start(){this.codeReader.decodeFromVideoDevice(void 0,this.$refs.scanner,(t,e)=>{t&&(this.$emit("decode",t.text),this.$emit("result",t))})}}},xp=t=>(x.pushScopeId("data-v-e16c822a"),t=t(),x.popScopeId(),t),X3={class:"scanner-container"},q3={poster:"data:image/gif,AAAA",ref:"scanner"},K3=xp(()=>x.createElementVNode("div",{class:"overlay-element"},null,-1)),Z3=xp(()=>x.createElementVNode("div",{class:"laser"},null,-1));function J3(t,e,n,r,i,o){return x.openBlock(),x.createElementBlock("div",X3,[x.withDirectives(x.createElementVNode("div",null,[x.createElementVNode("video",q3,null,512),K3,Z3],512),[[x.vShow,!i.isLoading]])])}const Q3=bp(Y3,[["render",J3],["__scopeId","data-v-e16c822a"]]),ek={class:"scanner"},tk=x.defineComponent({__name:"Scanner",props:{title:String},setup(t){const e=t;function n(i){rd.dismiss({dismissed:!0,value:i}),i=""}function r(){rd.dismiss({dismissed:!0})}return(i,o)=>(x.openBlock(),x.createElementBlock(x.Fragment,null,[x.createVNode(x.unref(I_),null,{default:x.withCtx(()=>[e.title?(x.openBlock(),x.createBlock(x.unref(S_),{key:0},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(i.$t(e.title)),1)]),_:1})):x.createCommentVNode("",!0),x.createVNode(x.unref(k_),{slot:"end",onClick:o[0]||(o[0]=a=>r())},{default:x.withCtx(()=>[x.createVNode(x.unref(J0),null,{default:x.withCtx(()=>[x.createVNode(x.unref(tp),{icon:x.unref(F_)},null,8,["icon"])]),_:1})]),_:1})]),_:1}),x.createElementVNode("div",ek,[x.createVNode(x.unref(Q3),{onDecode:n})])],64))}});const yp=bp(tk,[["__scopeId","data-v-0fe2468d"]]),nk=["src"],wp=x.defineComponent({__name:"ShopifyImg",props:["src","size"],setup(t){const e=t,n=x.ref(Vc.defaultImgUrl),r=a=>new Promise((s,l)=>{const c=new Image;c.onload=()=>s(!0),c.onerror=()=>l(!1),c.src=a}),i=(a,s)=>s?a.replace(/_(pico|icon|thumb|small|compact|medium|large|grande|original|1024x1024|2048x2048|master)+\./g,".").replace(/\.jpg|\.png|\.gif|\.jpeg/g,function(l){return"_"+s+l}):a,o=()=>{if(e.src){const a=i(e.src,e.size);r(a).then(()=>n.value=a)}};return x.onMounted(()=>{o()}),x.onUpdated(()=>{o()}),(a,s)=>(x.openBlock(),x.createElementBlock("img",{src:n.value},null,8,nk))}});/**
|
|
107
140
|
* @license
|
|
108
141
|
* Copyright 2017 Google LLC
|
|
109
142
|
*
|
|
@@ -133,7 +166,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
133
166
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
134
167
|
* See the License for the specific language governing permissions and
|
|
135
168
|
* limitations under the License.
|
|
136
|
-
*/const
|
|
169
|
+
*/const _p=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=i&63|128):(i&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=i&63|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=i&63|128)}return e},rk=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=t[n++];e[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=t[n++],a=t[n++],s=t[n++],l=((i&7)<<18|(o&63)<<12|(a&63)<<6|s&63)-65536;e[r++]=String.fromCharCode(55296+(l>>10)),e[r++]=String.fromCharCode(56320+(l&1023))}else{const o=t[n++],a=t[n++];e[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|a&63)}}return e.join("")},Ep={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<t.length;i+=3){const o=t[i],a=i+1<t.length,s=a?t[i+1]:0,l=i+2<t.length,c=l?t[i+2]:0,u=o>>2,d=(o&3)<<4|s>>4;let f=(s&15)<<2|c>>6,h=c&63;l||(h=64,a||(f=64)),r.push(n[u],n[d],n[f],n[h])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(_p(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):rk(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<t.length;){const o=n[t.charAt(i++)],s=i<t.length?n[t.charAt(i)]:0;++i;const c=i<t.length?n[t.charAt(i)]:64;++i;const d=i<t.length?n[t.charAt(i)]:64;if(++i,o==null||s==null||c==null||d==null)throw new ik;const f=o<<2|s>>4;if(r.push(f),c!==64){const h=s<<4&240|c>>2;if(r.push(h),d!==64){const p=c<<6&192|d;r.push(p)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class ik extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const ok=function(t){const e=_p(t);return Ep.encodeByteArray(e,!0)},Ap=function(t){return ok(t).replace(/\./g,"")},ak=function(t){try{return Ep.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
|
|
137
170
|
* @license
|
|
138
171
|
* Copyright 2022 Google LLC
|
|
139
172
|
*
|
|
@@ -148,7 +181,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
148
181
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
149
182
|
* See the License for the specific language governing permissions and
|
|
150
183
|
* limitations under the License.
|
|
151
|
-
*/function
|
|
184
|
+
*/function sk(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
|
|
152
185
|
* @license
|
|
153
186
|
* Copyright 2022 Google LLC
|
|
154
187
|
*
|
|
@@ -163,7 +196,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
163
196
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
164
197
|
* See the License for the specific language governing permissions and
|
|
165
198
|
* limitations under the License.
|
|
166
|
-
*/const
|
|
199
|
+
*/const lk=()=>sk().__FIREBASE_DEFAULTS__,ck=()=>{if(typeof process>"u"||typeof process.env>"u")return;const t=process.env.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},uk=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&ak(t[1]);return e&&JSON.parse(e)},dk=()=>{try{return lk()||ck()||uk()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},kp=()=>{var t;return(t=dk())===null||t===void 0?void 0:t.config};/**
|
|
167
200
|
* @license
|
|
168
201
|
* Copyright 2017 Google LLC
|
|
169
202
|
*
|
|
@@ -178,7 +211,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
178
211
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
179
212
|
* See the License for the specific language governing permissions and
|
|
180
213
|
* limitations under the License.
|
|
181
|
-
*/class
|
|
214
|
+
*/class fk{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}function Cp(){try{return typeof indexedDB=="object"}catch{return!1}}function Sp(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;e(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){e(n)}})}function hk(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
|
|
182
215
|
* @license
|
|
183
216
|
* Copyright 2017 Google LLC
|
|
184
217
|
*
|
|
@@ -193,7 +226,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
193
226
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
194
227
|
* See the License for the specific language governing permissions and
|
|
195
228
|
* limitations under the License.
|
|
196
|
-
*/const
|
|
229
|
+
*/const pk="FirebaseError";class fi extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=pk,Object.setPrototypeOf(this,fi.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ka.prototype.create)}}class ka{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},i=`${this.service}/${e}`,o=this.errors[e],a=o?gk(o,r):"Error",s=`${this.serviceName}: ${a} (${i}).`;return new fi(i,s,r)}}function gk(t,e){return t.replace(mk,(n,r)=>{const i=e[r];return i!=null?String(i):`<${r}?>`})}const mk=/\{\$([^}]+)}/g;function ll(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const i of n){if(!r.includes(i))return!1;const o=t[i],a=e[i];if(Od(o)&&Od(a)){if(!ll(o,a))return!1}else if(o!==a)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function Od(t){return t!==null&&typeof t=="object"}/**
|
|
197
230
|
* @license
|
|
198
231
|
* Copyright 2021 Google LLC
|
|
199
232
|
*
|
|
@@ -208,7 +241,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
208
241
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
209
242
|
* See the License for the specific language governing permissions and
|
|
210
243
|
* limitations under the License.
|
|
211
|
-
*/function
|
|
244
|
+
*/function mc(t){return t&&t._delegate?t._delegate:t}class nr{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/**
|
|
212
245
|
* @license
|
|
213
246
|
* Copyright 2019 Google LLC
|
|
214
247
|
*
|
|
@@ -223,7 +256,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
223
256
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
224
257
|
* See the License for the specific language governing permissions and
|
|
225
258
|
* limitations under the License.
|
|
226
|
-
*/const
|
|
259
|
+
*/const hr="[DEFAULT]";/**
|
|
227
260
|
* @license
|
|
228
261
|
* Copyright 2019 Google LLC
|
|
229
262
|
*
|
|
@@ -238,7 +271,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
238
271
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
239
272
|
* See the License for the specific language governing permissions and
|
|
240
273
|
* limitations under the License.
|
|
241
|
-
*/class
|
|
274
|
+
*/class vk{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new fk;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),i=(n=e==null?void 0:e.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(xk(e))try{this.getOrInitializeService({instanceIdentifier:hr})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(e=hr){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=hr){return this.instances.has(e)}getOptions(e=hr){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,a]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(o);r===s&&a.resolve(i)}return i}onInit(e,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(e),this.onInitCallbacks.set(i,o);const a=this.instances.get(i);return a&&e(a,i),()=>{o.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:bk(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=hr){return this.component?this.component.multipleInstances?e:hr:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function bk(t){return t===hr?void 0:t}function xk(t){return t.instantiationMode==="EAGER"}/**
|
|
242
275
|
* @license
|
|
243
276
|
* Copyright 2019 Google LLC
|
|
244
277
|
*
|
|
@@ -253,7 +286,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
253
286
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
254
287
|
* See the License for the specific language governing permissions and
|
|
255
288
|
* limitations under the License.
|
|
256
|
-
*/class
|
|
289
|
+
*/class yk{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new vk(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
|
257
290
|
* @license
|
|
258
291
|
* Copyright 2017 Google LLC
|
|
259
292
|
*
|
|
@@ -268,7 +301,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
268
301
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
269
302
|
* See the License for the specific language governing permissions and
|
|
270
303
|
* limitations under the License.
|
|
271
|
-
*/var
|
|
304
|
+
*/var Ne;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Ne||(Ne={}));const wk={debug:Ne.DEBUG,verbose:Ne.VERBOSE,info:Ne.INFO,warn:Ne.WARN,error:Ne.ERROR,silent:Ne.SILENT},_k=Ne.INFO,Ek={[Ne.DEBUG]:"log",[Ne.VERBOSE]:"log",[Ne.INFO]:"info",[Ne.WARN]:"warn",[Ne.ERROR]:"error"},Ak=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),i=Ek[e];if(i)console[i](`[${r}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class kk{constructor(e){this.name=e,this._logLevel=_k,this._logHandler=Ak,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Ne))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?wk[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Ne.DEBUG,...e),this._logHandler(this,Ne.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Ne.VERBOSE,...e),this._logHandler(this,Ne.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Ne.INFO,...e),this._logHandler(this,Ne.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Ne.WARN,...e),this._logHandler(this,Ne.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Ne.ERROR,...e),this._logHandler(this,Ne.ERROR,...e)}}const Ck=(t,e)=>e.some(n=>t instanceof n);let Dd,Nd;function Sk(){return Dd||(Dd=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ik(){return Nd||(Nd=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Ip=new WeakMap,cl=new WeakMap,Tp=new WeakMap,ss=new WeakMap,vc=new WeakMap;function Tk(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",o),t.removeEventListener("error",a)},o=()=>{n(Kn(t.result)),i()},a=()=>{r(t.error),i()};t.addEventListener("success",o),t.addEventListener("error",a)});return e.then(n=>{n instanceof IDBCursor&&Ip.set(n,t)}).catch(()=>{}),vc.set(e,t),e}function Ok(t){if(cl.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",a),t.removeEventListener("abort",a)},o=()=>{n(),i()},a=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",o),t.addEventListener("error",a),t.addEventListener("abort",a)});cl.set(t,e)}let ul={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return cl.get(t);if(e==="objectStoreNames")return t.objectStoreNames||Tp.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Kn(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Dk(t){ul=t(ul)}function Nk(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(ls(this),e,...n);return Tp.set(r,e.sort?e.sort():[e]),Kn(r)}:Ik().includes(t)?function(...e){return t.apply(ls(this),e),Kn(Ip.get(this))}:function(...e){return Kn(t.apply(ls(this),e))}}function Pk(t){return typeof t=="function"?Nk(t):(t instanceof IDBTransaction&&Ok(t),Ck(t,Sk())?new Proxy(t,ul):t)}function Kn(t){if(t instanceof IDBRequest)return Tk(t);if(ss.has(t))return ss.get(t);const e=Pk(t);return e!==t&&(ss.set(t,e),vc.set(e,t)),e}const ls=t=>vc.get(t);function Rk(t,e,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const a=indexedDB.open(t,e),s=Kn(a);return r&&a.addEventListener("upgradeneeded",l=>{r(Kn(a.result),l.oldVersion,l.newVersion,Kn(a.transaction),l)}),n&&a.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),s.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),s}const Mk=["get","getKey","getAll","getAllKeys","count"],Lk=["put","add","delete","clear"],cs=new Map;function Pd(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(cs.get(e))return cs.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=Lk.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Mk.includes(n)))return;const o=async function(a,...s){const l=this.transaction(a,i?"readwrite":"readonly");let c=l.store;return r&&(c=c.index(s.shift())),(await Promise.all([c[n](...s),i&&l.done]))[0]};return cs.set(e,o),o}Dk(t=>({...t,get:(e,n,r)=>Pd(e,n)||t.get(e,n,r),has:(e,n)=>!!Pd(e,n)||t.has(e,n)}));/**
|
|
272
305
|
* @license
|
|
273
306
|
* Copyright 2019 Google LLC
|
|
274
307
|
*
|
|
@@ -283,7 +316,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
283
316
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
284
317
|
* See the License for the specific language governing permissions and
|
|
285
318
|
* limitations under the License.
|
|
286
|
-
*/class
|
|
319
|
+
*/class Fk{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(Bk(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function Bk(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const dl="@firebase/app",Rd="0.9.18";/**
|
|
287
320
|
* @license
|
|
288
321
|
* Copyright 2019 Google LLC
|
|
289
322
|
*
|
|
@@ -298,7 +331,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
298
331
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
299
332
|
* See the License for the specific language governing permissions and
|
|
300
333
|
* limitations under the License.
|
|
301
|
-
*/const
|
|
334
|
+
*/const Sr=new kk("@firebase/app"),$k="@firebase/app-compat",Vk="@firebase/analytics-compat",Uk="@firebase/analytics",Hk="@firebase/app-check-compat",zk="@firebase/app-check",Wk="@firebase/auth",Gk="@firebase/auth-compat",jk="@firebase/database",Yk="@firebase/database-compat",Xk="@firebase/functions",qk="@firebase/functions-compat",Kk="@firebase/installations",Zk="@firebase/installations-compat",Jk="@firebase/messaging",Qk="@firebase/messaging-compat",eC="@firebase/performance",tC="@firebase/performance-compat",nC="@firebase/remote-config",rC="@firebase/remote-config-compat",iC="@firebase/storage",oC="@firebase/storage-compat",aC="@firebase/firestore",sC="@firebase/firestore-compat",lC="firebase";/**
|
|
302
335
|
* @license
|
|
303
336
|
* Copyright 2019 Google LLC
|
|
304
337
|
*
|
|
@@ -313,7 +346,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
313
346
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
314
347
|
* See the License for the specific language governing permissions and
|
|
315
348
|
* limitations under the License.
|
|
316
|
-
*/const
|
|
349
|
+
*/const fl="[DEFAULT]",cC={[dl]:"fire-core",[$k]:"fire-core-compat",[Uk]:"fire-analytics",[Vk]:"fire-analytics-compat",[zk]:"fire-app-check",[Hk]:"fire-app-check-compat",[Wk]:"fire-auth",[Gk]:"fire-auth-compat",[jk]:"fire-rtdb",[Yk]:"fire-rtdb-compat",[Xk]:"fire-fn",[qk]:"fire-fn-compat",[Kk]:"fire-iid",[Zk]:"fire-iid-compat",[Jk]:"fire-fcm",[Qk]:"fire-fcm-compat",[eC]:"fire-perf",[tC]:"fire-perf-compat",[nC]:"fire-rc",[rC]:"fire-rc-compat",[iC]:"fire-gcs",[oC]:"fire-gcs-compat",[aC]:"fire-fst",[sC]:"fire-fst-compat","fire-js":"fire-js",[lC]:"fire-js-all"};/**
|
|
317
350
|
* @license
|
|
318
351
|
* Copyright 2019 Google LLC
|
|
319
352
|
*
|
|
@@ -328,7 +361,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
328
361
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
329
362
|
* See the License for the specific language governing permissions and
|
|
330
363
|
* limitations under the License.
|
|
331
|
-
*/const
|
|
364
|
+
*/const na=new Map,hl=new Map;function uC(t,e){try{t.container.addComponent(e)}catch(n){Sr.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function Ir(t){const e=t.name;if(hl.has(e))return Sr.debug(`There were multiple attempts to register component ${e}.`),!1;hl.set(e,t);for(const n of na.values())uC(n,t);return!0}function bc(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}/**
|
|
332
365
|
* @license
|
|
333
366
|
* Copyright 2019 Google LLC
|
|
334
367
|
*
|
|
@@ -343,7 +376,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
343
376
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
344
377
|
* See the License for the specific language governing permissions and
|
|
345
378
|
* limitations under the License.
|
|
346
|
-
*/const
|
|
379
|
+
*/const dC={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},Zn=new ka("app","Firebase",dC);/**
|
|
347
380
|
* @license
|
|
348
381
|
* Copyright 2019 Google LLC
|
|
349
382
|
*
|
|
@@ -358,7 +391,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
358
391
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
359
392
|
* See the License for the specific language governing permissions and
|
|
360
393
|
* limitations under the License.
|
|
361
|
-
*/class
|
|
394
|
+
*/class fC{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new nr("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Zn.create("app-deleted",{appName:this._name})}}function Op(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:fl,automaticDataCollectionEnabled:!1},e),i=r.name;if(typeof i!="string"||!i)throw Zn.create("bad-app-name",{appName:String(i)});if(n||(n=kp()),!n)throw Zn.create("no-options");const o=na.get(i);if(o){if(ll(n,o.options)&&ll(r,o.config))return o;throw Zn.create("duplicate-app",{appName:i})}const a=new yk(i);for(const l of hl.values())a.addComponent(l);const s=new fC(n,r,a);return na.set(i,s),s}function hC(t=fl){const e=na.get(t);if(!e&&t===fl&&kp())return Op();if(!e)throw Zn.create("no-app",{appName:t});return e}function Jn(t,e,n){var r;let i=(r=cC[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const o=i.match(/\s|\//),a=e.match(/\s|\//);if(o||a){const s=[`Unable to register library "${i}" with version "${e}":`];o&&s.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&a&&s.push("and"),a&&s.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Sr.warn(s.join(" "));return}Ir(new nr(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/**
|
|
362
395
|
* @license
|
|
363
396
|
* Copyright 2021 Google LLC
|
|
364
397
|
*
|
|
@@ -373,7 +406,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
373
406
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
374
407
|
* See the License for the specific language governing permissions and
|
|
375
408
|
* limitations under the License.
|
|
376
|
-
*/const
|
|
409
|
+
*/const pC="firebase-heartbeat-database",gC=1,Ui="firebase-heartbeat-store";let us=null;function Dp(){return us||(us=Rk(pC,gC,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Ui)}}}).catch(t=>{throw Zn.create("idb-open",{originalErrorMessage:t.message})})),us}async function mC(t){try{return await(await Dp()).transaction(Ui).objectStore(Ui).get(Np(t))}catch(e){if(e instanceof fi)Sr.warn(e.message);else{const n=Zn.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});Sr.warn(n.message)}}}async function Md(t,e){try{const r=(await Dp()).transaction(Ui,"readwrite");await r.objectStore(Ui).put(e,Np(t)),await r.done}catch(n){if(n instanceof fi)Sr.warn(n.message);else{const r=Zn.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Sr.warn(r.message)}}}function Np(t){return`${t.name}!${t.options.appId}`}/**
|
|
377
410
|
* @license
|
|
378
411
|
* Copyright 2021 Google LLC
|
|
379
412
|
*
|
|
@@ -388,7 +421,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
388
421
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
389
422
|
* See the License for the specific language governing permissions and
|
|
390
423
|
* limitations under the License.
|
|
391
|
-
*/const
|
|
424
|
+
*/const vC=1024,bC=30*24*60*60*1e3;class xC{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new wC(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=Ld();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(i=>i.date===r)))return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(i=>{const o=new Date(i.date).valueOf();return Date.now()-o<=bC}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const e=Ld(),{heartbeatsToSend:n,unsentEntries:r}=yC(this._heartbeatsCache.heartbeats),i=Ap(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}}function Ld(){return new Date().toISOString().substring(0,10)}function yC(t,e=vC){const n=[];let r=t.slice();for(const i of t){const o=n.find(a=>a.agent===i.agent);if(o){if(o.dates.push(i.date),Fd(n)>e){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Fd(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class wC{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return Cp()?Sp().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await mC(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return Md(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return Md(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return}}function Fd(t){return Ap(JSON.stringify({version:2,heartbeats:t})).length}/**
|
|
392
425
|
* @license
|
|
393
426
|
* Copyright 2019 Google LLC
|
|
394
427
|
*
|
|
@@ -403,7 +436,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
403
436
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
404
437
|
* See the License for the specific language governing permissions and
|
|
405
438
|
* limitations under the License.
|
|
406
|
-
*/function
|
|
439
|
+
*/function _C(t){Ir(new nr("platform-logger",e=>new Fk(e),"PRIVATE")),Ir(new nr("heartbeat",e=>new xC(e),"PRIVATE")),Jn(dl,Rd,t),Jn(dl,Rd,"esm2017"),Jn("fire-js","")}_C("");var EC="firebase",AC="10.3.1";/**
|
|
407
440
|
* @license
|
|
408
441
|
* Copyright 2020 Google LLC
|
|
409
442
|
*
|
|
@@ -418,7 +451,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
418
451
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
419
452
|
* See the License for the specific language governing permissions and
|
|
420
453
|
* limitations under the License.
|
|
421
|
-
*/
|
|
454
|
+
*/Jn(EC,AC,"app");const kC=(t,e)=>e.some(n=>t instanceof n);let Bd,$d;function CC(){return Bd||(Bd=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function SC(){return $d||($d=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Pp=new WeakMap,pl=new WeakMap,Rp=new WeakMap,ds=new WeakMap,xc=new WeakMap;function IC(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",o),t.removeEventListener("error",a)},o=()=>{n(Qn(t.result)),i()},a=()=>{r(t.error),i()};t.addEventListener("success",o),t.addEventListener("error",a)});return e.then(n=>{n instanceof IDBCursor&&Pp.set(n,t)}).catch(()=>{}),xc.set(e,t),e}function TC(t){if(pl.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",a),t.removeEventListener("abort",a)},o=()=>{n(),i()},a=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",o),t.addEventListener("error",a),t.addEventListener("abort",a)});pl.set(t,e)}let gl={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return pl.get(t);if(e==="objectStoreNames")return t.objectStoreNames||Rp.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Qn(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function OC(t){gl=t(gl)}function DC(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(fs(this),e,...n);return Rp.set(r,e.sort?e.sort():[e]),Qn(r)}:SC().includes(t)?function(...e){return t.apply(fs(this),e),Qn(Pp.get(this))}:function(...e){return Qn(t.apply(fs(this),e))}}function NC(t){return typeof t=="function"?DC(t):(t instanceof IDBTransaction&&TC(t),kC(t,CC())?new Proxy(t,gl):t)}function Qn(t){if(t instanceof IDBRequest)return IC(t);if(ds.has(t))return ds.get(t);const e=NC(t);return e!==t&&(ds.set(t,e),xc.set(e,t)),e}const fs=t=>xc.get(t);function PC(t,e,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const a=indexedDB.open(t,e),s=Qn(a);return r&&a.addEventListener("upgradeneeded",l=>{r(Qn(a.result),l.oldVersion,l.newVersion,Qn(a.transaction))}),n&&a.addEventListener("blocked",()=>n()),s.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",()=>i())}).catch(()=>{}),s}const RC=["get","getKey","getAll","getAllKeys","count"],MC=["put","add","delete","clear"],hs=new Map;function Vd(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(hs.get(e))return hs.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=MC.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||RC.includes(n)))return;const o=async function(a,...s){const l=this.transaction(a,i?"readwrite":"readonly");let c=l.store;return r&&(c=c.index(s.shift())),(await Promise.all([c[n](...s),i&&l.done]))[0]};return hs.set(e,o),o}OC(t=>({...t,get:(e,n,r)=>Vd(e,n)||t.get(e,n,r),has:(e,n)=>!!Vd(e,n)||t.has(e,n)}));const Mp="@firebase/installations",yc="0.6.4";/**
|
|
422
455
|
* @license
|
|
423
456
|
* Copyright 2019 Google LLC
|
|
424
457
|
*
|
|
@@ -433,7 +466,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
433
466
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
434
467
|
* See the License for the specific language governing permissions and
|
|
435
468
|
* limitations under the License.
|
|
436
|
-
*/const
|
|
469
|
+
*/const Lp=1e4,Fp=`w:${yc}`,Bp="FIS_v2",LC="https://firebaseinstallations.googleapis.com/v1",FC=60*60*1e3,BC="installations",$C="Installations";/**
|
|
437
470
|
* @license
|
|
438
471
|
* Copyright 2019 Google LLC
|
|
439
472
|
*
|
|
@@ -448,7 +481,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
448
481
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
449
482
|
* See the License for the specific language governing permissions and
|
|
450
483
|
* limitations under the License.
|
|
451
|
-
*/const
|
|
484
|
+
*/const VC={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},Tr=new ka(BC,$C,VC);function $p(t){return t instanceof fi&&t.code.includes("request-failed")}/**
|
|
452
485
|
* @license
|
|
453
486
|
* Copyright 2019 Google LLC
|
|
454
487
|
*
|
|
@@ -463,7 +496,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
463
496
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
464
497
|
* See the License for the specific language governing permissions and
|
|
465
498
|
* limitations under the License.
|
|
466
|
-
*/function
|
|
499
|
+
*/function Vp({projectId:t}){return`${LC}/projects/${t}/installations`}function Up(t){return{token:t.token,requestStatus:2,expiresIn:HC(t.expiresIn),creationTime:Date.now()}}async function Hp(t,e){const r=(await e.json()).error;return Tr.create("request-failed",{requestName:t,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function zp({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function UC(t,{refreshToken:e}){const n=zp(t);return n.append("Authorization",zC(e)),n}async function Wp(t){const e=await t();return e.status>=500&&e.status<600?t():e}function HC(t){return Number(t.replace("s","000"))}function zC(t){return`${Bp} ${t}`}/**
|
|
467
500
|
* @license
|
|
468
501
|
* Copyright 2019 Google LLC
|
|
469
502
|
*
|
|
@@ -478,7 +511,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
478
511
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
479
512
|
* See the License for the specific language governing permissions and
|
|
480
513
|
* limitations under the License.
|
|
481
|
-
*/async function
|
|
514
|
+
*/async function WC({appConfig:t,heartbeatServiceProvider:e},{fid:n}){const r=Vp(t),i=zp(t),o=e.getImmediate({optional:!0});if(o){const c=await o.getHeartbeatsHeader();c&&i.append("x-firebase-client",c)}const a={fid:n,authVersion:Bp,appId:t.appId,sdkVersion:Fp},s={method:"POST",headers:i,body:JSON.stringify(a)},l=await Wp(()=>fetch(r,s));if(l.ok){const c=await l.json();return{fid:c.fid||n,registrationStatus:2,refreshToken:c.refreshToken,authToken:Up(c.authToken)}}else throw await Hp("Create Installation",l)}/**
|
|
482
515
|
* @license
|
|
483
516
|
* Copyright 2019 Google LLC
|
|
484
517
|
*
|
|
@@ -493,7 +526,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
493
526
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
494
527
|
* See the License for the specific language governing permissions and
|
|
495
528
|
* limitations under the License.
|
|
496
|
-
*/function
|
|
529
|
+
*/function Gp(t){return new Promise(e=>{setTimeout(e,t)})}/**
|
|
497
530
|
* @license
|
|
498
531
|
* Copyright 2019 Google LLC
|
|
499
532
|
*
|
|
@@ -508,7 +541,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
508
541
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
509
542
|
* See the License for the specific language governing permissions and
|
|
510
543
|
* limitations under the License.
|
|
511
|
-
*/function
|
|
544
|
+
*/function GC(t){return btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")}/**
|
|
512
545
|
* @license
|
|
513
546
|
* Copyright 2019 Google LLC
|
|
514
547
|
*
|
|
@@ -523,7 +556,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
523
556
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
524
557
|
* See the License for the specific language governing permissions and
|
|
525
558
|
* limitations under the License.
|
|
526
|
-
*/const
|
|
559
|
+
*/const jC=/^[cdef][\w-]{21}$/,ml="";function YC(){try{const t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;const n=XC(t);return jC.test(n)?n:ml}catch{return ml}}function XC(t){return GC(t).substr(0,22)}/**
|
|
527
560
|
* @license
|
|
528
561
|
* Copyright 2019 Google LLC
|
|
529
562
|
*
|
|
@@ -538,7 +571,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
538
571
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
539
572
|
* See the License for the specific language governing permissions and
|
|
540
573
|
* limitations under the License.
|
|
541
|
-
*/function
|
|
574
|
+
*/function Ca(t){return`${t.appName}!${t.appId}`}/**
|
|
542
575
|
* @license
|
|
543
576
|
* Copyright 2019 Google LLC
|
|
544
577
|
*
|
|
@@ -553,7 +586,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
553
586
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
554
587
|
* See the License for the specific language governing permissions and
|
|
555
588
|
* limitations under the License.
|
|
556
|
-
*/const
|
|
589
|
+
*/const jp=new Map;function Yp(t,e){const n=Ca(t);Xp(n,e),qC(n,e)}function Xp(t,e){const n=jp.get(t);if(n)for(const r of n)r(e)}function qC(t,e){const n=KC();n&&n.postMessage({key:t,fid:e}),ZC()}let xr=null;function KC(){return!xr&&"BroadcastChannel"in self&&(xr=new BroadcastChannel("[Firebase] FID Change"),xr.onmessage=t=>{Xp(t.data.key,t.data.fid)}),xr}function ZC(){jp.size===0&&xr&&(xr.close(),xr=null)}/**
|
|
557
590
|
* @license
|
|
558
591
|
* Copyright 2019 Google LLC
|
|
559
592
|
*
|
|
@@ -568,7 +601,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
568
601
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
569
602
|
* See the License for the specific language governing permissions and
|
|
570
603
|
* limitations under the License.
|
|
571
|
-
*/const
|
|
604
|
+
*/const JC="firebase-installations-database",QC=1,Or="firebase-installations-store";let ps=null;function wc(){return ps||(ps=PC(JC,QC,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Or)}}})),ps}async function ra(t,e){const n=Ca(t),i=(await wc()).transaction(Or,"readwrite"),o=i.objectStore(Or),a=await o.get(n);return await o.put(e,n),await i.done,(!a||a.fid!==e.fid)&&Yp(t,e.fid),e}async function qp(t){const e=Ca(t),r=(await wc()).transaction(Or,"readwrite");await r.objectStore(Or).delete(e),await r.done}async function Sa(t,e){const n=Ca(t),i=(await wc()).transaction(Or,"readwrite"),o=i.objectStore(Or),a=await o.get(n),s=e(a);return s===void 0?await o.delete(n):await o.put(s,n),await i.done,s&&(!a||a.fid!==s.fid)&&Yp(t,s.fid),s}/**
|
|
572
605
|
* @license
|
|
573
606
|
* Copyright 2019 Google LLC
|
|
574
607
|
*
|
|
@@ -583,7 +616,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
583
616
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
584
617
|
* See the License for the specific language governing permissions and
|
|
585
618
|
* limitations under the License.
|
|
586
|
-
*/async function
|
|
619
|
+
*/async function _c(t){let e;const n=await Sa(t.appConfig,r=>{const i=eS(r),o=tS(t,i);return e=o.registrationPromise,o.installationEntry});return n.fid===ml?{installationEntry:await e}:{installationEntry:n,registrationPromise:e}}function eS(t){const e=t||{fid:YC(),registrationStatus:0};return Kp(e)}function tS(t,e){if(e.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(Tr.create("app-offline"));return{installationEntry:e,registrationPromise:i}}const n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},r=nS(t,n);return{installationEntry:n,registrationPromise:r}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:rS(t)}:{installationEntry:e}}async function nS(t,e){try{const n=await WC(t,e);return ra(t.appConfig,n)}catch(n){throw $p(n)&&n.customData.serverCode===409?await qp(t.appConfig):await ra(t.appConfig,{fid:e.fid,registrationStatus:0}),n}}async function rS(t){let e=await Ud(t.appConfig);for(;e.registrationStatus===1;)await Gp(100),e=await Ud(t.appConfig);if(e.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await _c(t);return r||n}return e}function Ud(t){return Sa(t,e=>{if(!e)throw Tr.create("installation-not-found");return Kp(e)})}function Kp(t){return iS(t)?{fid:t.fid,registrationStatus:0}:t}function iS(t){return t.registrationStatus===1&&t.registrationTime+Lp<Date.now()}/**
|
|
587
620
|
* @license
|
|
588
621
|
* Copyright 2019 Google LLC
|
|
589
622
|
*
|
|
@@ -598,7 +631,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
598
631
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
599
632
|
* See the License for the specific language governing permissions and
|
|
600
633
|
* limitations under the License.
|
|
601
|
-
*/async function
|
|
634
|
+
*/async function oS({appConfig:t,heartbeatServiceProvider:e},n){const r=aS(t,n),i=UC(t,n),o=e.getImmediate({optional:!0});if(o){const c=await o.getHeartbeatsHeader();c&&i.append("x-firebase-client",c)}const a={installation:{sdkVersion:Fp,appId:t.appId}},s={method:"POST",headers:i,body:JSON.stringify(a)},l=await Wp(()=>fetch(r,s));if(l.ok){const c=await l.json();return Up(c)}else throw await Hp("Generate Auth Token",l)}function aS(t,{fid:e}){return`${Vp(t)}/${e}/authTokens:generate`}/**
|
|
602
635
|
* @license
|
|
603
636
|
* Copyright 2019 Google LLC
|
|
604
637
|
*
|
|
@@ -613,7 +646,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
613
646
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
614
647
|
* See the License for the specific language governing permissions and
|
|
615
648
|
* limitations under the License.
|
|
616
|
-
*/async function
|
|
649
|
+
*/async function Ec(t,e=!1){let n;const r=await Sa(t.appConfig,o=>{if(!Zp(o))throw Tr.create("not-registered");const a=o.authToken;if(!e&&cS(a))return o;if(a.requestStatus===1)return n=sS(t,e),o;{if(!navigator.onLine)throw Tr.create("app-offline");const s=dS(o);return n=lS(t,s),s}});return n?await n:r.authToken}async function sS(t,e){let n=await Hd(t.appConfig);for(;n.authToken.requestStatus===1;)await Gp(100),n=await Hd(t.appConfig);const r=n.authToken;return r.requestStatus===0?Ec(t,e):r}function Hd(t){return Sa(t,e=>{if(!Zp(e))throw Tr.create("not-registered");const n=e.authToken;return fS(n)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function lS(t,e){try{const n=await oS(t,e),r=Object.assign(Object.assign({},e),{authToken:n});return await ra(t.appConfig,r),n}catch(n){if($p(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await qp(t.appConfig);else{const r=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});await ra(t.appConfig,r)}throw n}}function Zp(t){return t!==void 0&&t.registrationStatus===2}function cS(t){return t.requestStatus===2&&!uS(t)}function uS(t){const e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+FC}function dS(t){const e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:e})}function fS(t){return t.requestStatus===1&&t.requestTime+Lp<Date.now()}/**
|
|
617
650
|
* @license
|
|
618
651
|
* Copyright 2019 Google LLC
|
|
619
652
|
*
|
|
@@ -628,7 +661,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
628
661
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
629
662
|
* See the License for the specific language governing permissions and
|
|
630
663
|
* limitations under the License.
|
|
631
|
-
*/async function
|
|
664
|
+
*/async function hS(t){const e=t,{installationEntry:n,registrationPromise:r}=await _c(e);return r?r.catch(console.error):Ec(e).catch(console.error),n.fid}/**
|
|
632
665
|
* @license
|
|
633
666
|
* Copyright 2019 Google LLC
|
|
634
667
|
*
|
|
@@ -643,7 +676,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
643
676
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
644
677
|
* See the License for the specific language governing permissions and
|
|
645
678
|
* limitations under the License.
|
|
646
|
-
*/async function
|
|
679
|
+
*/async function pS(t,e=!1){const n=t;return await gS(n),(await Ec(n,e)).token}async function gS(t){const{registrationPromise:e}=await _c(t);e&&await e}/**
|
|
647
680
|
* @license
|
|
648
681
|
* Copyright 2019 Google LLC
|
|
649
682
|
*
|
|
@@ -658,7 +691,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
658
691
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
659
692
|
* See the License for the specific language governing permissions and
|
|
660
693
|
* limitations under the License.
|
|
661
|
-
*/function
|
|
694
|
+
*/function mS(t){if(!t||!t.options)throw gs("App Configuration");if(!t.name)throw gs("App Name");const e=["projectId","apiKey","appId"];for(const n of e)if(!t.options[n])throw gs(n);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function gs(t){return Tr.create("missing-app-config-values",{valueName:t})}/**
|
|
662
695
|
* @license
|
|
663
696
|
* Copyright 2020 Google LLC
|
|
664
697
|
*
|
|
@@ -673,7 +706,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
673
706
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
674
707
|
* See the License for the specific language governing permissions and
|
|
675
708
|
* limitations under the License.
|
|
676
|
-
*/const
|
|
709
|
+
*/const Jp="installations",vS="installations-internal",bS=t=>{const e=t.getProvider("app").getImmediate(),n=mS(e),r=bc(e,"heartbeat");return{app:e,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},xS=t=>{const e=t.getProvider("app").getImmediate(),n=bc(e,Jp).getImmediate();return{getId:()=>hS(n),getToken:i=>pS(n,i)}};function yS(){Ir(new nr(Jp,bS,"PUBLIC")),Ir(new nr(vS,xS,"PRIVATE"))}yS();Jn(Mp,yc);Jn(Mp,yc,"esm2017");const wS=(t,e)=>e.some(n=>t instanceof n);let zd,Wd;function _S(){return zd||(zd=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ES(){return Wd||(Wd=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Qp=new WeakMap,vl=new WeakMap,eg=new WeakMap,ms=new WeakMap,Ac=new WeakMap;function AS(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",o),t.removeEventListener("error",a)},o=()=>{n(Rn(t.result)),i()},a=()=>{r(t.error),i()};t.addEventListener("success",o),t.addEventListener("error",a)});return e.then(n=>{n instanceof IDBCursor&&Qp.set(n,t)}).catch(()=>{}),Ac.set(e,t),e}function kS(t){if(vl.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",a),t.removeEventListener("abort",a)},o=()=>{n(),i()},a=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",o),t.addEventListener("error",a),t.addEventListener("abort",a)});vl.set(t,e)}let bl={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return vl.get(t);if(e==="objectStoreNames")return t.objectStoreNames||eg.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Rn(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function CS(t){bl=t(bl)}function SS(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(vs(this),e,...n);return eg.set(r,e.sort?e.sort():[e]),Rn(r)}:ES().includes(t)?function(...e){return t.apply(vs(this),e),Rn(Qp.get(this))}:function(...e){return Rn(t.apply(vs(this),e))}}function IS(t){return typeof t=="function"?SS(t):(t instanceof IDBTransaction&&kS(t),wS(t,_S())?new Proxy(t,bl):t)}function Rn(t){if(t instanceof IDBRequest)return AS(t);if(ms.has(t))return ms.get(t);const e=IS(t);return e!==t&&(ms.set(t,e),Ac.set(e,t)),e}const vs=t=>Ac.get(t);function tg(t,e,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const a=indexedDB.open(t,e),s=Rn(a);return r&&a.addEventListener("upgradeneeded",l=>{r(Rn(a.result),l.oldVersion,l.newVersion,Rn(a.transaction))}),n&&a.addEventListener("blocked",()=>n()),s.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",()=>i())}).catch(()=>{}),s}function bs(t,{blocked:e}={}){const n=indexedDB.deleteDatabase(t);return e&&n.addEventListener("blocked",()=>e()),Rn(n).then(()=>{})}const TS=["get","getKey","getAll","getAllKeys","count"],OS=["put","add","delete","clear"],xs=new Map;function Gd(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(xs.get(e))return xs.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=OS.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||TS.includes(n)))return;const o=async function(a,...s){const l=this.transaction(a,i?"readwrite":"readonly");let c=l.store;return r&&(c=c.index(s.shift())),(await Promise.all([c[n](...s),i&&l.done]))[0]};return xs.set(e,o),o}CS(t=>({...t,get:(e,n,r)=>Gd(e,n)||t.get(e,n,r),has:(e,n)=>!!Gd(e,n)||t.has(e,n)}));/**
|
|
677
710
|
* @license
|
|
678
711
|
* Copyright 2019 Google LLC
|
|
679
712
|
*
|
|
@@ -688,7 +721,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
688
721
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
689
722
|
* See the License for the specific language governing permissions and
|
|
690
723
|
* limitations under the License.
|
|
691
|
-
*/const
|
|
724
|
+
*/const DS="/firebase-messaging-sw.js",NS="/firebase-cloud-messaging-push-scope",ng="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",PS="https://fcmregistrations.googleapis.com/v1",rg="google.c.a.c_id",RS="google.c.a.c_l",MS="google.c.a.ts",LS="google.c.a.e";var jd;(function(t){t[t.DATA_MESSAGE=1]="DATA_MESSAGE",t[t.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(jd||(jd={}));/**
|
|
692
725
|
* @license
|
|
693
726
|
* Copyright 2018 Google LLC
|
|
694
727
|
*
|
|
@@ -701,7 +734,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
701
734
|
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
702
735
|
* or implied. See the License for the specific language governing permissions and limitations under
|
|
703
736
|
* the License.
|
|
704
|
-
*/var
|
|
737
|
+
*/var Hi;(function(t){t.PUSH_RECEIVED="push-received",t.NOTIFICATION_CLICKED="notification-clicked"})(Hi||(Hi={}));/**
|
|
705
738
|
* @license
|
|
706
739
|
* Copyright 2017 Google LLC
|
|
707
740
|
*
|
|
@@ -716,7 +749,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
716
749
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
717
750
|
* See the License for the specific language governing permissions and
|
|
718
751
|
* limitations under the License.
|
|
719
|
-
*/function
|
|
752
|
+
*/function On(t){const e=new Uint8Array(t);return btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function FS(t){const e="=".repeat((4-t.length%4)%4),n=(t+e).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length);for(let o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}/**
|
|
720
753
|
* @license
|
|
721
754
|
* Copyright 2019 Google LLC
|
|
722
755
|
*
|
|
@@ -731,7 +764,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
731
764
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
732
765
|
* See the License for the specific language governing permissions and
|
|
733
766
|
* limitations under the License.
|
|
734
|
-
*/const
|
|
767
|
+
*/const ys="fcm_token_details_db",BS=5,Yd="fcm_token_object_Store";async function $S(t){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(ys))return null;let e=null;return(await tg(ys,BS,{upgrade:async(r,i,o,a)=>{var s;if(i<2||!r.objectStoreNames.contains(Yd))return;const l=a.objectStore(Yd),c=await l.index("fcmSenderId").get(t);if(await l.clear(),!!c){if(i===2){const u=c;if(!u.auth||!u.p256dh||!u.endpoint)return;e={token:u.fcmToken,createTime:(s=u.createTime)!==null&&s!==void 0?s:Date.now(),subscriptionOptions:{auth:u.auth,p256dh:u.p256dh,endpoint:u.endpoint,swScope:u.swScope,vapidKey:typeof u.vapidKey=="string"?u.vapidKey:On(u.vapidKey)}}}else if(i===3){const u=c;e={token:u.fcmToken,createTime:u.createTime,subscriptionOptions:{auth:On(u.auth),p256dh:On(u.p256dh),endpoint:u.endpoint,swScope:u.swScope,vapidKey:On(u.vapidKey)}}}else if(i===4){const u=c;e={token:u.fcmToken,createTime:u.createTime,subscriptionOptions:{auth:On(u.auth),p256dh:On(u.p256dh),endpoint:u.endpoint,swScope:u.swScope,vapidKey:On(u.vapidKey)}}}}}})).close(),await bs(ys),await bs("fcm_vapid_details_db"),await bs("undefined"),VS(e)?e:null}function VS(t){if(!t||!t.subscriptionOptions)return!1;const{subscriptionOptions:e}=t;return typeof t.createTime=="number"&&t.createTime>0&&typeof t.token=="string"&&t.token.length>0&&typeof e.auth=="string"&&e.auth.length>0&&typeof e.p256dh=="string"&&e.p256dh.length>0&&typeof e.endpoint=="string"&&e.endpoint.length>0&&typeof e.swScope=="string"&&e.swScope.length>0&&typeof e.vapidKey=="string"&&e.vapidKey.length>0}/**
|
|
735
768
|
* @license
|
|
736
769
|
* Copyright 2019 Google LLC
|
|
737
770
|
*
|
|
@@ -746,7 +779,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
746
779
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
747
780
|
* See the License for the specific language governing permissions and
|
|
748
781
|
* limitations under the License.
|
|
749
|
-
*/const
|
|
782
|
+
*/const US="firebase-messaging-database",HS=1,Dr="firebase-messaging-store";let ws=null;function kc(){return ws||(ws=tg(US,HS,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Dr)}}})),ws}async function ig(t){const e=Sc(t),r=await(await kc()).transaction(Dr).objectStore(Dr).get(e);if(r)return r;{const i=await $S(t.appConfig.senderId);if(i)return await Cc(t,i),i}}async function Cc(t,e){const n=Sc(t),i=(await kc()).transaction(Dr,"readwrite");return await i.objectStore(Dr).put(e,n),await i.done,e}async function zS(t){const e=Sc(t),r=(await kc()).transaction(Dr,"readwrite");await r.objectStore(Dr).delete(e),await r.done}function Sc({appConfig:t}){return t.appId}/**
|
|
750
783
|
* @license
|
|
751
784
|
* Copyright 2017 Google LLC
|
|
752
785
|
*
|
|
@@ -761,7 +794,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
761
794
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
762
795
|
* See the License for the specific language governing permissions and
|
|
763
796
|
* limitations under the License.
|
|
764
|
-
*/const
|
|
797
|
+
*/const WS={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},gt=new ka("messaging","Messaging",WS);/**
|
|
765
798
|
* @license
|
|
766
799
|
* Copyright 2019 Google LLC
|
|
767
800
|
*
|
|
@@ -776,7 +809,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
776
809
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
777
810
|
* See the License for the specific language governing permissions and
|
|
778
811
|
* limitations under the License.
|
|
779
|
-
*/async function
|
|
812
|
+
*/async function GS(t,e){const n=await Tc(t),r=ag(e),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(Ic(t.appConfig),i)).json()}catch(a){throw gt.create("token-subscribe-failed",{errorInfo:a==null?void 0:a.toString()})}if(o.error){const a=o.error.message;throw gt.create("token-subscribe-failed",{errorInfo:a})}if(!o.token)throw gt.create("token-subscribe-no-token");return o.token}async function jS(t,e){const n=await Tc(t),r=ag(e.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${Ic(t.appConfig)}/${e.token}`,i)).json()}catch(a){throw gt.create("token-update-failed",{errorInfo:a==null?void 0:a.toString()})}if(o.error){const a=o.error.message;throw gt.create("token-update-failed",{errorInfo:a})}if(!o.token)throw gt.create("token-update-no-token");return o.token}async function og(t,e){const r={method:"DELETE",headers:await Tc(t)};try{const o=await(await fetch(`${Ic(t.appConfig)}/${e}`,r)).json();if(o.error){const a=o.error.message;throw gt.create("token-unsubscribe-failed",{errorInfo:a})}}catch(i){throw gt.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function Ic({projectId:t}){return`${PS}/projects/${t}/registrations`}async function Tc({appConfig:t,installations:e}){const n=await e.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function ag({p256dh:t,auth:e,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:e,p256dh:t}};return r!==ng&&(i.web.applicationPubKey=r),i}/**
|
|
780
813
|
* @license
|
|
781
814
|
* Copyright 2019 Google LLC
|
|
782
815
|
*
|
|
@@ -791,7 +824,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
791
824
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
792
825
|
* See the License for the specific language governing permissions and
|
|
793
826
|
* limitations under the License.
|
|
794
|
-
*/const
|
|
827
|
+
*/const YS=7*24*60*60*1e3;async function XS(t){const e=await ZS(t.swRegistration,t.vapidKey),n={vapidKey:t.vapidKey,swScope:t.swRegistration.scope,endpoint:e.endpoint,auth:On(e.getKey("auth")),p256dh:On(e.getKey("p256dh"))},r=await ig(t.firebaseDependencies);if(r){if(JS(r.subscriptionOptions,n))return Date.now()>=r.createTime+YS?KS(t,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await og(t.firebaseDependencies,r.token)}catch(i){console.warn(i)}return Xd(t.firebaseDependencies,n)}else return Xd(t.firebaseDependencies,n)}async function qS(t){const e=await ig(t.firebaseDependencies);e&&(await og(t.firebaseDependencies,e.token),await zS(t.firebaseDependencies));const n=await t.swRegistration.pushManager.getSubscription();return n?n.unsubscribe():!0}async function KS(t,e){try{const n=await jS(t.firebaseDependencies,e),r=Object.assign(Object.assign({},e),{token:n,createTime:Date.now()});return await Cc(t.firebaseDependencies,r),n}catch(n){throw await qS(t),n}}async function Xd(t,e){const r={token:await GS(t,e),createTime:Date.now(),subscriptionOptions:e};return await Cc(t,r),r.token}async function ZS(t,e){const n=await t.pushManager.getSubscription();return n||t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:FS(e)})}function JS(t,e){const n=e.vapidKey===t.vapidKey,r=e.endpoint===t.endpoint,i=e.auth===t.auth,o=e.p256dh===t.p256dh;return n&&r&&i&&o}/**
|
|
795
828
|
* @license
|
|
796
829
|
* Copyright 2020 Google LLC
|
|
797
830
|
*
|
|
@@ -806,7 +839,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
806
839
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
807
840
|
* See the License for the specific language governing permissions and
|
|
808
841
|
* limitations under the License.
|
|
809
|
-
*/function
|
|
842
|
+
*/function qd(t){const e={from:t.from,collapseKey:t.collapse_key,messageId:t.fcmMessageId};return QS(e,t),eI(e,t),tI(e,t),e}function QS(t,e){if(!e.notification)return;t.notification={};const n=e.notification.title;n&&(t.notification.title=n);const r=e.notification.body;r&&(t.notification.body=r);const i=e.notification.image;i&&(t.notification.image=i);const o=e.notification.icon;o&&(t.notification.icon=o)}function eI(t,e){e.data&&(t.data=e.data)}function tI(t,e){var n,r,i,o,a;if(!e.fcmOptions&&!(!((n=e.notification)===null||n===void 0)&&n.click_action))return;t.fcmOptions={};const s=(i=(r=e.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(o=e.notification)===null||o===void 0?void 0:o.click_action;s&&(t.fcmOptions.link=s);const l=(a=e.fcmOptions)===null||a===void 0?void 0:a.analytics_label;l&&(t.fcmOptions.analyticsLabel=l)}/**
|
|
810
843
|
* @license
|
|
811
844
|
* Copyright 2019 Google LLC
|
|
812
845
|
*
|
|
@@ -821,7 +854,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
821
854
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
822
855
|
* See the License for the specific language governing permissions and
|
|
823
856
|
* limitations under the License.
|
|
824
|
-
*/function
|
|
857
|
+
*/function nI(t){return typeof t=="object"&&!!t&&rg in t}/**
|
|
825
858
|
* @license
|
|
826
859
|
* Copyright 2019 Google LLC
|
|
827
860
|
*
|
|
@@ -836,7 +869,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
836
869
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
837
870
|
* See the License for the specific language governing permissions and
|
|
838
871
|
* limitations under the License.
|
|
839
|
-
*/
|
|
872
|
+
*/sg("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o");sg("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function sg(t,e){const n=[];for(let r=0;r<t.length;r++)n.push(t.charAt(r)),r<e.length&&n.push(e.charAt(r));return n.join("")}/**
|
|
840
873
|
* @license
|
|
841
874
|
* Copyright 2019 Google LLC
|
|
842
875
|
*
|
|
@@ -851,7 +884,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
851
884
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
852
885
|
* See the License for the specific language governing permissions and
|
|
853
886
|
* limitations under the License.
|
|
854
|
-
*/function
|
|
887
|
+
*/function rI(t){if(!t||!t.options)throw _s("App Configuration Object");if(!t.name)throw _s("App Name");const e=["projectId","apiKey","appId","messagingSenderId"],{options:n}=t;for(const r of e)if(!n[r])throw _s(r);return{appName:t.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function _s(t){return gt.create("missing-app-config-values",{valueName:t})}/**
|
|
855
888
|
* @license
|
|
856
889
|
* Copyright 2020 Google LLC
|
|
857
890
|
*
|
|
@@ -866,7 +899,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
866
899
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
867
900
|
* See the License for the specific language governing permissions and
|
|
868
901
|
* limitations under the License.
|
|
869
|
-
*/class
|
|
902
|
+
*/class iI{constructor(e,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=rI(e);this.firebaseDependencies={app:e,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}}/**
|
|
870
903
|
* @license
|
|
871
904
|
* Copyright 2020 Google LLC
|
|
872
905
|
*
|
|
@@ -881,7 +914,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
881
914
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
882
915
|
* See the License for the specific language governing permissions and
|
|
883
916
|
* limitations under the License.
|
|
884
|
-
*/async function
|
|
917
|
+
*/async function oI(t){try{t.swRegistration=await navigator.serviceWorker.register(DS,{scope:NS}),t.swRegistration.update().catch(()=>{})}catch(e){throw gt.create("failed-service-worker-registration",{browserErrorMessage:e==null?void 0:e.message})}}/**
|
|
885
918
|
* @license
|
|
886
919
|
* Copyright 2020 Google LLC
|
|
887
920
|
*
|
|
@@ -896,7 +929,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
896
929
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
897
930
|
* See the License for the specific language governing permissions and
|
|
898
931
|
* limitations under the License.
|
|
899
|
-
*/async function
|
|
932
|
+
*/async function aI(t,e){if(!e&&!t.swRegistration&&await oI(t),!(!e&&t.swRegistration)){if(!(e instanceof ServiceWorkerRegistration))throw gt.create("invalid-sw-registration");t.swRegistration=e}}/**
|
|
900
933
|
* @license
|
|
901
934
|
* Copyright 2020 Google LLC
|
|
902
935
|
*
|
|
@@ -911,7 +944,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
911
944
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
912
945
|
* See the License for the specific language governing permissions and
|
|
913
946
|
* limitations under the License.
|
|
914
|
-
*/async function
|
|
947
|
+
*/async function sI(t,e){e?t.vapidKey=e:t.vapidKey||(t.vapidKey=ng)}/**
|
|
915
948
|
* @license
|
|
916
949
|
* Copyright 2020 Google LLC
|
|
917
950
|
*
|
|
@@ -926,7 +959,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
926
959
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
927
960
|
* See the License for the specific language governing permissions and
|
|
928
961
|
* limitations under the License.
|
|
929
|
-
*/async function
|
|
962
|
+
*/async function lg(t,e){if(!navigator)throw gt.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw gt.create("permission-blocked");return await sI(t,e==null?void 0:e.vapidKey),await aI(t,e==null?void 0:e.serviceWorkerRegistration),XS(t)}/**
|
|
930
963
|
* @license
|
|
931
964
|
* Copyright 2019 Google LLC
|
|
932
965
|
*
|
|
@@ -941,7 +974,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
941
974
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
942
975
|
* See the License for the specific language governing permissions and
|
|
943
976
|
* limitations under the License.
|
|
944
|
-
*/async function
|
|
977
|
+
*/async function lI(t,e,n){const r=cI(e);(await t.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[rg],message_name:n[RS],message_time:n[MS],message_device_time:Math.floor(Date.now()/1e3)})}function cI(t){switch(t){case Hi.NOTIFICATION_CLICKED:return"notification_open";case Hi.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
|
|
945
978
|
* @license
|
|
946
979
|
* Copyright 2017 Google LLC
|
|
947
980
|
*
|
|
@@ -956,7 +989,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
956
989
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
957
990
|
* See the License for the specific language governing permissions and
|
|
958
991
|
* limitations under the License.
|
|
959
|
-
*/async function
|
|
992
|
+
*/async function uI(t,e){const n=e.data;if(!n.isFirebaseMessaging)return;t.onMessageHandler&&n.messageType===Hi.PUSH_RECEIVED&&(typeof t.onMessageHandler=="function"?t.onMessageHandler(qd(n)):t.onMessageHandler.next(qd(n)));const r=n.data;nI(r)&&r[LS]==="1"&&await lI(t,n.messageType,r)}const Kd="@firebase/messaging",Zd="0.12.4";/**
|
|
960
993
|
* @license
|
|
961
994
|
* Copyright 2020 Google LLC
|
|
962
995
|
*
|
|
@@ -971,7 +1004,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
971
1004
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
972
1005
|
* See the License for the specific language governing permissions and
|
|
973
1006
|
* limitations under the License.
|
|
974
|
-
*/const
|
|
1007
|
+
*/const dI=t=>{const e=new iI(t.getProvider("app").getImmediate(),t.getProvider("installations-internal").getImmediate(),t.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>uI(e,n)),e},fI=t=>{const e=t.getProvider("messaging").getImmediate();return{getToken:r=>lg(e,r)}};function hI(){Ir(new nr("messaging",dI,"PUBLIC")),Ir(new nr("messaging-internal",fI,"PRIVATE")),Jn(Kd,Zd),Jn(Kd,Zd,"esm2017")}/**
|
|
975
1008
|
* @license
|
|
976
1009
|
* Copyright 2020 Google LLC
|
|
977
1010
|
*
|
|
@@ -986,7 +1019,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
986
1019
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
987
1020
|
* See the License for the specific language governing permissions and
|
|
988
1021
|
* limitations under the License.
|
|
989
|
-
*/async function
|
|
1022
|
+
*/async function pI(){try{await Sp()}catch{return!1}return typeof window<"u"&&Cp()&&hk()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
|
|
990
1023
|
* @license
|
|
991
1024
|
* Copyright 2020 Google LLC
|
|
992
1025
|
*
|
|
@@ -1001,7 +1034,7 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
1001
1034
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1002
1035
|
* See the License for the specific language governing permissions and
|
|
1003
1036
|
* limitations under the License.
|
|
1004
|
-
*/function
|
|
1037
|
+
*/function gI(t,e){if(!navigator)throw gt.create("only-available-in-window");return t.onMessageHandler=e,()=>{t.onMessageHandler=null}}/**
|
|
1005
1038
|
* @license
|
|
1006
1039
|
* Copyright 2017 Google LLC
|
|
1007
1040
|
*
|
|
@@ -1016,30 +1049,30 @@ This will fail in production.`);a=uo,a._s.has(o)||(r?Lr(o,t,i,a):Ua(o,i,a),proce
|
|
|
1016
1049
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1017
1050
|
* See the License for the specific language governing permissions and
|
|
1018
1051
|
* limitations under the License.
|
|
1019
|
-
*/function
|
|
1052
|
+
*/function mI(t=hC()){return pI().then(e=>{if(!e)throw gt.create("unsupported-browser")},e=>{throw gt.create("indexed-db-unsupported")}),bc(mc(t),"messaging").getImmediate()}async function vI(t,e){return t=mc(t),lg(t,e)}function bI(t,e){return t=mc(t),gI(t,e)}hI();const cg=async(t,e,n,r)=>{const o=Op(t),a=mI(o);if(await Notification.requestPermission()==="granted"){const l=await vI(a,{vapidKey:e});await n(l),bI(a,u=>{r({notification:u,isForeground:!0})});const c=new BroadcastChannel("FB_BG_MESSAGES");c.onmessage=u=>{r({notification:u.data,isForeground:!1})}}else alert("You denied notifications.")},ug=x.defineComponent({template:`
|
|
1020
1053
|
<div style='position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);'>
|
|
1021
1054
|
<h4 v-if='errorMsg.length'>
|
|
1022
1055
|
{{ errorMsg }}
|
|
1023
1056
|
</h4>
|
|
1024
1057
|
</div>
|
|
1025
|
-
`,data(){return{errorMsg:"",authStore:{},router:{},route:{}}},async mounted(){if(this.authStore
|
|
1058
|
+
`,data(){return{errorMsg:"",authStore:{},router:{},route:{}}},async mounted(){if(this.authStore=Ul(),this.router=exports.appContext.config.globalProperties.$router,this.route=exports.appContext.config.globalProperties.$route,!Object.keys(this.route.query).length){window.location.href=xt.appLoginUrl;return}const{token:t,oms:e,expirationTime:n}=this.route.query;this.handleUserFlow(t,e,n)},methods:{async handleUserFlow(t,e,n){const r=xt.getConfig();if(await xt.logout({isUserUnauthorised:!0}),await xt.initialise(r),+n<re.now().toMillis()){console.error("User token has expired, redirecting to launchpad."),this.errorMsg="User token has expired, redirecting to launchpad.";const i=window.location.origin+"/login";window.location.href=`${xt.appLoginUrl}?isLoggedOut=true&redirectUrl=${i}`;return}this.authStore.$patch({token:{value:t,expiration:n},oms:e}),xt.loader.present("Logging in");try{await xt.login({token:t,oms:e});const i=wa(),o=exports.appContext.config.globalProperties.$store;await i.getPreference(t,o.getters["user/getBaseUrl"]),gn.appFirebaseConfig&&await cg(gn.appFirebaseConfig,gn.appFirebaseVapidKey,gn.storeClientRegistrationToken,gn.addNotification),this.router.push("/")}catch(i){console.error(i),this.errorMsg="Unable to login. Please contact the administrator"}finally{xt.loader.dismiss()}}}});function xI(t){return typeof t=="object"&&t!==null}function Jd(t,e){return t=xI(t)?t:Object.create(null),new Proxy(t,{get(n,r,i){return r==="key"?Reflect.get(n,r,i):Reflect.get(n,r,i)||Reflect.get(e,r,i)}})}function yI(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function wI(t,e,n){return e.slice(0,-1).reduce((r,i)=>/^(__proto__)$/.test(i)?{}:r[i]=r[i]||{},t)[e[e.length-1]]=n,t}function _I(t,e){return e.reduce((n,r)=>{const i=r.split(".");return wI(n,i,yI(t,i))},{})}function Qd(t,{storage:e,serializer:n,key:r,debug:i}){try{const o=e==null?void 0:e.getItem(r);o&&t.$patch(n==null?void 0:n.deserialize(o))}catch(o){i&&console.error(o)}}function ef(t,{storage:e,serializer:n,key:r,paths:i,debug:o}){try{const a=Array.isArray(i)?_I(t,i):t;e.setItem(r,n.serialize(a))}catch(a){o&&console.error(a)}}function EI(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:i,pinia:o}=e;if(!r)return;if(!(i.$id in o.state.value)){const s=o._s.get(i.$id.replace("__hot:",""));s&&Promise.resolve().then(()=>s.$persist());return}const a=(Array.isArray(r)?r.map(s=>Jd(s,t)):[Jd(r,t)]).map(({storage:s=localStorage,beforeRestore:l=null,afterRestore:c=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:d=i.$id,paths:f=null,debug:h=!1})=>{var p;return{storage:s,beforeRestore:l,afterRestore:c,serializer:u,key:((p=t.key)!=null?p:g=>g)(typeof d=="string"?d:d(i.$id)),paths:f,debug:h}});i.$persist=()=>{a.forEach(s=>{ef(i.$state,s)})},i.$hydrate=({runHooks:s=!0}={})=>{a.forEach(l=>{const{beforeRestore:c,afterRestore:u}=l;s&&(c==null||c(e)),Qd(i,l),s&&(u==null||u(e))})},a.forEach(s=>{const{beforeRestore:l,afterRestore:c}=s;l==null||l(e),Qd(i,s),c==null||c(e),i.$subscribe((u,d)=>{ef(d,s)},{detached:!0})})}}var AI=EI();/*!
|
|
1026
1059
|
* shared v9.4.1
|
|
1027
1060
|
* (c) 2023 kazuya kawaguchi
|
|
1028
1061
|
* Released under the MIT License.
|
|
1029
|
-
*/const
|
|
1030
|
-
`)}function
|
|
1062
|
+
*/const wn=typeof window<"u";let Pt,Nr;if(process.env.NODE_ENV!=="production"){const t=wn&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(Pt=e=>{t.mark(e)},Nr=(e,n,r)=>{t.measure(e,n,r),t.clearMarks(n),t.clearMarks(r)})}const kI=/\{([0-9a-zA-Z]+)\}/g;function Oc(t,...e){return e.length===1&&ge(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(kI,(n,r)=>e.hasOwnProperty(r)?e[r]:"")}const _n=(t,e=!1)=>e?Symbol.for(t):Symbol(t),CI=(t,e,n)=>SI({l:t,k:e,s:n}),SI=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Qe=t=>typeof t=="number"&&isFinite(t),II=t=>fg(t)==="[object Date]",rr=t=>fg(t)==="[object RegExp]",Ia=t=>ne(t)&&Object.keys(t).length===0,dt=Object.assign;let tf;const Dn=()=>tf||(tf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nf(t){return t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const TI=Object.prototype.hasOwnProperty;function Dc(t,e){return TI.call(t,e)}const Ie=Array.isArray,Ue=t=>typeof t=="function",U=t=>typeof t=="string",oe=t=>typeof t=="boolean",ge=t=>t!==null&&typeof t=="object",dg=Object.prototype.toString,fg=t=>dg.call(t),ne=t=>{if(!ge(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},OI=t=>t==null?"":Ie(t)||ne(t)&&t.toString===dg?JSON.stringify(t,null,2):String(t);function DI(t,e=""){return t.reduce((n,r,i)=>i===0?n+r:n+e+r,"")}const rf=2;function NI(t,e=0,n=t.length){const r=t.split(/\r?\n/);let i=0;const o=[];for(let a=0;a<r.length;a++)if(i+=r[a].length+1,i>=e){for(let s=a-rf;s<=a+rf||n>i;s++){if(s<0||s>=r.length)continue;const l=s+1;o.push(`${l}${" ".repeat(3-String(l).length)}| ${r[s]}`);const c=r[s].length;if(s===a){const u=e-(i-c)+1,d=Math.max(1,n>i?c-u:n-e);o.push(" | "+" ".repeat(u)+"^".repeat(d))}else if(s>a){if(n>i){const u=Math.max(Math.min(n-i,c),1);o.push(" | "+"^".repeat(u))}i+=c+1}}break}return o.join(`
|
|
1063
|
+
`)}function Nc(t){let e=t;return()=>++e}function rt(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const of={};function PI(t){of[t]||(of[t]=!0,rt(t))}function Pc(){const t=new Map;return{events:t,on(n,r){const i=t.get(n);i&&i.push(r)||t.set(n,[r])},off(n,r){const i=t.get(n);i&&i.splice(i.indexOf(r)>>>0,1)},emit(n,r){(t.get(n)||[]).slice().map(i=>i(r)),(t.get("*")||[]).slice().map(i=>i(n,r))}}}/*!
|
|
1031
1064
|
* message-compiler v9.4.1
|
|
1032
1065
|
* (c) 2023 kazuya kawaguchi
|
|
1033
1066
|
* Released under the MIT License.
|
|
1034
|
-
*/function
|
|
1035
|
-
`,gE=String.fromCharCode(8232),bE=String.fromCharCode(8233);function vE(e){const t=e;let n=0,o=1,i=1,r=0;const s=w=>t[w]===pE&&t[w+1]===Re,a=w=>t[w]===Re,l=w=>t[w]===bE,c=w=>t[w]===gE,d=w=>s(w)||a(w)||l(w)||c(w),u=()=>n,f=()=>o,b=()=>i,T=()=>r,x=w=>s(w)||l(w)||c(w)?Re:t[w],C=()=>x(n),p=()=>x(n+r);function y(){return r=0,d(n)&&(o++,i=0),s(n)&&n++,n++,i++,t[n]}function S(){return s(n+r)&&r++,r++,t[n+r]}function k(){n=0,o=1,i=1,r=0}function D(w=0){r=w}function v(){const w=n+r;for(;w!==n;)y();r=0}return{index:u,line:f,column:b,peekOffset:T,charAt:x,currentChar:C,currentPeek:p,next:y,peek:S,reset:k,resetPeek:D,skipToPeek:v}}const Gt=void 0,yE=".",bc="'",wE="tokenizer";function kE(e,t={}){const n=t.location!==!1,o=vE(e),i=()=>o.index(),r=()=>aE(o.line(),o.column(),o.index()),s=r(),a=i(),l={currentType:14,offset:a,startLoc:s,endLoc:s,lastType:14,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:d}=t;function u(g,m,I,...V){const H=c();if(m.column+=I,m.offset+=I,d){const Q=n?us(H.startLoc,m):null,Xe=ro(g,Q,{domain:wE,args:V});d(Xe)}}function f(g,m,I){g.endLoc=r(),g.currentType=m;const V={type:m};return n&&(V.loc=us(g.startLoc,g.endLoc)),I!=null&&(V.value=I),V}const b=g=>f(g,14);function T(g,m){return g.currentChar()===m?(g.next(),m):(u(B.EXPECTED_TOKEN,r(),0,m),"")}function x(g){let m="";for(;g.currentPeek()===Rt||g.currentPeek()===Re;)m+=g.currentPeek(),g.peek();return m}function C(g){const m=x(g);return g.skipToPeek(),m}function p(g){if(g===Gt)return!1;const m=g.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function y(g){if(g===Gt)return!1;const m=g.charCodeAt(0);return m>=48&&m<=57}function S(g,m){const{currentType:I}=m;if(I!==2)return!1;x(g);const V=p(g.currentPeek());return g.resetPeek(),V}function k(g,m){const{currentType:I}=m;if(I!==2)return!1;x(g);const V=g.currentPeek()==="-"?g.peek():g.currentPeek(),H=y(V);return g.resetPeek(),H}function D(g,m){const{currentType:I}=m;if(I!==2)return!1;x(g);const V=g.currentPeek()===bc;return g.resetPeek(),V}function v(g,m){const{currentType:I}=m;if(I!==8)return!1;x(g);const V=g.currentPeek()===".";return g.resetPeek(),V}function w(g,m){const{currentType:I}=m;if(I!==9)return!1;x(g);const V=p(g.currentPeek());return g.resetPeek(),V}function P(g,m){const{currentType:I}=m;if(!(I===8||I===12))return!1;x(g);const V=g.currentPeek()===":";return g.resetPeek(),V}function A(g,m){const{currentType:I}=m;if(I!==10)return!1;const V=()=>{const Q=g.currentPeek();return Q==="{"?p(g.peek()):Q==="@"||Q==="%"||Q==="|"||Q===":"||Q==="."||Q===Rt||!Q?!1:Q===Re?(g.peek(),V()):p(Q)},H=V();return g.resetPeek(),H}function N(g){x(g);const m=g.currentPeek()==="|";return g.resetPeek(),m}function L(g){const m=x(g),I=g.currentPeek()==="%"&&g.peek()==="{";return g.resetPeek(),{isModulo:I,hasSpace:m.length>0}}function U(g,m=!0){const I=(H=!1,Q="",Xe=!1)=>{const at=g.currentPeek();return at==="{"?Q==="%"?!1:H:at==="@"||!at?Q==="%"?!0:H:at==="%"?(g.peek(),I(H,"%",!0)):at==="|"?Q==="%"||Xe?!0:!(Q===Rt||Q===Re):at===Rt?(g.peek(),I(!0,Rt,Xe)):at===Re?(g.peek(),I(!0,Re,Xe)):!0},V=I();return m&&g.resetPeek(),V}function oe(g,m){const I=g.currentChar();return I===Gt?Gt:m(I)?(g.next(),I):null}function ye(g){return oe(g,I=>{const V=I.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36})}function Ue(g){return oe(g,I=>{const V=I.charCodeAt(0);return V>=48&&V<=57})}function K(g){return oe(g,I=>{const V=I.charCodeAt(0);return V>=48&&V<=57||V>=65&&V<=70||V>=97&&V<=102})}function X(g){let m="",I="";for(;m=Ue(g);)I+=m;return I}function rt(g){C(g);const m=g.currentChar();return m!=="%"&&u(B.EXPECTED_TOKEN,r(),0,m),g.next(),"%"}function De(g){let m="";for(;;){const I=g.currentChar();if(I==="{"||I==="}"||I==="@"||I==="|"||!I)break;if(I==="%")if(U(g))m+=I,g.next();else break;else if(I===Rt||I===Re)if(U(g))m+=I,g.next();else{if(N(g))break;m+=I,g.next()}else m+=I,g.next()}return m}function qe(g){C(g);let m="",I="";for(;m=ye(g);)I+=m;return g.currentChar()===Gt&&u(B.UNTERMINATED_CLOSING_BRACE,r(),0),I}function st(g){C(g);let m="";return g.currentChar()==="-"?(g.next(),m+=`-${X(g)}`):m+=X(g),g.currentChar()===Gt&&u(B.UNTERMINATED_CLOSING_BRACE,r(),0),m}function wt(g){C(g),T(g,"'");let m="",I="";const V=Q=>Q!==bc&&Q!==Re;for(;m=oe(g,V);)m==="\\"?I+=_e(g):I+=m;const H=g.currentChar();return H===Re||H===Gt?(u(B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),H===Re&&(g.next(),T(g,"'")),I):(T(g,"'"),I)}function _e(g){const m=g.currentChar();switch(m){case"\\":case"'":return g.next(),`\\${m}`;case"u":return Ke(g,m,4);case"U":return Ke(g,m,6);default:return u(B.UNKNOWN_ESCAPE_SEQUENCE,r(),0,m),""}}function Ke(g,m,I){T(g,m);let V="";for(let H=0;H<I;H++){const Q=K(g);if(!Q){u(B.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${m}${V}${g.currentChar()}`);break}V+=Q}return`\\${m}${V}`}function Ee(g){C(g);let m="",I="";const V=H=>H!=="{"&&H!=="}"&&H!==Rt&&H!==Re;for(;m=oe(g,V);)I+=m;return I}function Ht(g){let m="",I="";for(;m=ye(g);)I+=m;return I}function jt(g){const m=(I=!1,V)=>{const H=g.currentChar();return H==="{"||H==="%"||H==="@"||H==="|"||H==="("||H===")"||!H||H===Rt?V:H===Re||H===yE?(V+=H,g.next(),m(I,V)):(V+=H,g.next(),m(!0,V))};return m(!1,"")}function Dt(g){C(g);const m=T(g,"|");return C(g),m}function Nt(g,m){let I=null;switch(g.currentChar()){case"{":return m.braceNest>=1&&u(B.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),g.next(),I=f(m,2,"{"),C(g),m.braceNest++,I;case"}":return m.braceNest>0&&m.currentType===2&&u(B.EMPTY_PLACEHOLDER,r(),0),g.next(),I=f(m,3,"}"),m.braceNest--,m.braceNest>0&&C(g),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),I;case"@":return m.braceNest>0&&u(B.UNTERMINATED_CLOSING_BRACE,r(),0),I=kt(g,m)||b(m),m.braceNest=0,I;default:let H=!0,Q=!0,Xe=!0;if(N(g))return m.braceNest>0&&u(B.UNTERMINATED_CLOSING_BRACE,r(),0),I=f(m,1,Dt(g)),m.braceNest=0,m.inLinked=!1,I;if(m.braceNest>0&&(m.currentType===5||m.currentType===6||m.currentType===7))return u(B.UNTERMINATED_CLOSING_BRACE,r(),0),m.braceNest=0,$t(g,m);if(H=S(g,m))return I=f(m,5,qe(g)),C(g),I;if(Q=k(g,m))return I=f(m,6,st(g)),C(g),I;if(Xe=D(g,m))return I=f(m,7,wt(g)),C(g),I;if(!H&&!Q&&!Xe)return I=f(m,13,Ee(g)),u(B.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,I.value),C(g),I;break}return I}function kt(g,m){const{currentType:I}=m;let V=null;const H=g.currentChar();switch((I===8||I===9||I===12||I===10)&&(H===Re||H===Rt)&&u(B.INVALID_LINKED_FORMAT,r(),0),H){case"@":return g.next(),V=f(m,8,"@"),m.inLinked=!0,V;case".":return C(g),g.next(),f(m,9,".");case":":return C(g),g.next(),f(m,10,":");default:return N(g)?(V=f(m,1,Dt(g)),m.braceNest=0,m.inLinked=!1,V):v(g,m)||P(g,m)?(C(g),kt(g,m)):w(g,m)?(C(g),f(m,12,Ht(g))):A(g,m)?(C(g),H==="{"?Nt(g,m)||V:f(m,11,jt(g))):(I===8&&u(B.INVALID_LINKED_FORMAT,r(),0),m.braceNest=0,m.inLinked=!1,$t(g,m))}}function $t(g,m){let I={type:14};if(m.braceNest>0)return Nt(g,m)||b(m);if(m.inLinked)return kt(g,m)||b(m);switch(g.currentChar()){case"{":return Nt(g,m)||b(m);case"}":return u(B.UNBALANCED_CLOSING_BRACE,r(),0),g.next(),f(m,3,"}");case"@":return kt(g,m)||b(m);default:if(N(g))return I=f(m,1,Dt(g)),m.braceNest=0,m.inLinked=!1,I;const{isModulo:H,hasSpace:Q}=L(g);if(H)return Q?f(m,0,De(g)):f(m,4,rt(g));if(U(g))return f(m,0,De(g));break}return I}function xt(){const{currentType:g,offset:m,startLoc:I,endLoc:V}=l;return l.lastType=g,l.lastOffset=m,l.lastStartLoc=I,l.lastEndLoc=V,l.offset=i(),l.startLoc=r(),o.currentChar()===Gt?f(l,14):$t(o,l)}return{nextToken:xt,currentOffset:i,currentPosition:r,context:c}}const xE="parser",_E=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function EE(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(t||n,16);return o<=55295||o>=57344?String.fromCodePoint(o):"�"}}}function TE(e={}){const t=e.location!==!1,{onError:n}=e;function o(p,y,S,k,...D){const v=p.currentPosition();if(v.offset+=k,v.column+=k,n){const w=t?us(S,v):null,P=ro(y,w,{domain:xE,args:D});n(P)}}function i(p,y,S){const k={type:p};return t&&(k.start=y,k.end=y,k.loc={start:S,end:S}),k}function r(p,y,S,k){k&&(p.type=k),t&&(p.end=y,p.loc&&(p.loc.end=S))}function s(p,y){const S=p.context(),k=i(3,S.offset,S.startLoc);return k.value=y,r(k,p.currentOffset(),p.currentPosition()),k}function a(p,y){const S=p.context(),{lastOffset:k,lastStartLoc:D}=S,v=i(5,k,D);return v.index=parseInt(y,10),p.nextToken(),r(v,p.currentOffset(),p.currentPosition()),v}function l(p,y){const S=p.context(),{lastOffset:k,lastStartLoc:D}=S,v=i(4,k,D);return v.key=y,p.nextToken(),r(v,p.currentOffset(),p.currentPosition()),v}function c(p,y){const S=p.context(),{lastOffset:k,lastStartLoc:D}=S,v=i(9,k,D);return v.value=y.replace(_E,EE),p.nextToken(),r(v,p.currentOffset(),p.currentPosition()),v}function d(p){const y=p.nextToken(),S=p.context(),{lastOffset:k,lastStartLoc:D}=S,v=i(8,k,D);return y.type!==12?(o(p,B.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),v.value="",r(v,k,D),{nextConsumeToken:y,node:v}):(y.value==null&&o(p,B.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Et(y)),v.value=y.value||"",r(v,p.currentOffset(),p.currentPosition()),{node:v})}function u(p,y){const S=p.context(),k=i(7,S.offset,S.startLoc);return k.value=y,r(k,p.currentOffset(),p.currentPosition()),k}function f(p){const y=p.context(),S=i(6,y.offset,y.startLoc);let k=p.nextToken();if(k.type===9){const D=d(p);S.modifier=D.node,k=D.nextConsumeToken||p.nextToken()}switch(k.type!==10&&o(p,B.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Et(k)),k=p.nextToken(),k.type===2&&(k=p.nextToken()),k.type){case 11:k.value==null&&o(p,B.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Et(k)),S.key=u(p,k.value||"");break;case 5:k.value==null&&o(p,B.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Et(k)),S.key=l(p,k.value||"");break;case 6:k.value==null&&o(p,B.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Et(k)),S.key=a(p,k.value||"");break;case 7:k.value==null&&o(p,B.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Et(k)),S.key=c(p,k.value||"");break;default:o(p,B.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const D=p.context(),v=i(7,D.offset,D.startLoc);return v.value="",r(v,D.offset,D.startLoc),S.key=v,r(S,D.offset,D.startLoc),{nextConsumeToken:k,node:S}}return r(S,p.currentOffset(),p.currentPosition()),{node:S}}function b(p){const y=p.context(),S=y.currentType===1?p.currentOffset():y.offset,k=y.currentType===1?y.endLoc:y.startLoc,D=i(2,S,k);D.items=[];let v=null;do{const A=v||p.nextToken();switch(v=null,A.type){case 0:A.value==null&&o(p,B.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Et(A)),D.items.push(s(p,A.value||""));break;case 6:A.value==null&&o(p,B.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Et(A)),D.items.push(a(p,A.value||""));break;case 5:A.value==null&&o(p,B.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Et(A)),D.items.push(l(p,A.value||""));break;case 7:A.value==null&&o(p,B.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Et(A)),D.items.push(c(p,A.value||""));break;case 8:const N=f(p);D.items.push(N.node),v=N.nextConsumeToken||null;break}}while(y.currentType!==14&&y.currentType!==1);const w=y.currentType===1?y.lastOffset:p.currentOffset(),P=y.currentType===1?y.lastEndLoc:p.currentPosition();return r(D,w,P),D}function T(p,y,S,k){const D=p.context();let v=k.items.length===0;const w=i(1,y,S);w.cases=[],w.cases.push(k);do{const P=b(p);v||(v=P.items.length===0),w.cases.push(P)}while(D.currentType!==14);return v&&o(p,B.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),r(w,p.currentOffset(),p.currentPosition()),w}function x(p){const y=p.context(),{offset:S,startLoc:k}=y,D=b(p);return y.currentType===14?D:T(p,S,k,D)}function C(p){const y=kE(p,Xf({},e)),S=y.context(),k=i(0,S.offset,S.startLoc);return t&&k.loc&&(k.loc.source=p),k.body=x(y),e.onCacheKey&&(k.cacheKey=e.onCacheKey(p)),S.currentType!==14&&o(y,B.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,p[S.offset]||""),r(k,y.currentOffset(),y.currentPosition()),k}return{parse:C}}function Et(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function IE(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function vc(e,t){for(let n=0;n<e.length;n++)_a(e[n],t)}function _a(e,t){switch(e.type){case 1:vc(e.cases,t),t.helper("plural");break;case 2:vc(e.items,t);break;case 6:_a(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function SE(e,t={}){const n=IE(e);n.helper("normalize"),e.body&&_a(e.body,n);const o=n.context();e.helpers=Array.from(o.helpers)}function CE(e){const t=e.body;return t.type===2?yc(t):t.cases.forEach(n=>yc(n)),e}function yc(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const o=e.items[n];if(!(o.type===3||o.type===9)||o.value==null)break;t.push(o.value)}if(t.length===e.items.length){e.static=Zf(t);for(let n=0;n<e.items.length;n++){const o=e.items[n];(o.type===3||o.type===9)&&delete o.value}}}}const OE="minifier";function Hn(e){switch(e.t=e.type,e.type){case 0:const t=e;Hn(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,o=n.cases;for(let d=0;d<o.length;d++)Hn(o[d]);n.c=o,delete n.cases;break;case 2:const i=e,r=i.items;for(let d=0;d<r.length;d++)Hn(r[d]);i.i=r,delete i.items,i.static&&(i.s=i.static,delete i.static);break;case 3:case 9:case 8:case 7:const s=e;s.value&&(s.v=s.value,delete s.value);break;case 6:const a=e;Hn(a.key),a.k=a.key,delete a.key,a.modifier&&(Hn(a.modifier),a.m=a.modifier,delete a.modifier);break;case 5:const l=e;l.i=l.index,delete l.index;break;case 4:const c=e;c.k=c.key,delete c.key;break;default:throw ro(B.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:OE,args:[e.type]})}delete e.type}const AE="parser";function DE(e,t){const{sourceMap:n,filename:o,breakLineCode:i,needIndent:r}=t,s=t.location!==!1,a={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};s&&e.loc&&(a.source=e.loc.source);const l=()=>a;function c(C,p){a.code+=C}function d(C,p=!0){const y=p?i:"";c(r?y+" ".repeat(C):y)}function u(C=!0){const p=++a.indentLevel;C&&d(p)}function f(C=!0){const p=--a.indentLevel;C&&d(p)}function b(){d(a.indentLevel)}return{context:l,push:c,indent:u,deindent:f,newline:b,helper:C=>`_${C}`,needIndent:()=>a.needIndent}}function NE(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Zn(e,t.key),t.modifier?(e.push(", "),Zn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function $E(e,t){const{helper:n,needIndent:o}=e;e.push(`${n("normalize")}([`),e.indent(o());const i=t.items.length;for(let r=0;r<i&&(Zn(e,t.items[r]),r!==i-1);r++)e.push(", ");e.deindent(o()),e.push("])")}function LE(e,t){const{helper:n,needIndent:o}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(o());const i=t.cases.length;for(let r=0;r<i&&(Zn(e,t.cases[r]),r!==i-1);r++)e.push(", ");e.deindent(o()),e.push("])")}}function PE(e,t){t.body?Zn(e,t.body):e.push("null")}function Zn(e,t){const{helper:n}=e;switch(t.type){case 0:PE(e,t);break;case 1:LE(e,t);break;case 2:$E(e,t);break;case 6:NE(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw ro(B.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:AE,args:[t.type]})}}const ME=(e,t={})=>{const n=gc(t.mode)?t.mode:"normal",o=gc(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
1036
|
-
`,
|
|
1067
|
+
*/function RI(t,e,n){return{line:t,column:e,offset:n}}function xl(t,e,n){const r={start:t,end:e};return n!=null&&(r.source=n),r}const MI=/\{([0-9a-zA-Z]+)\}/g;function LI(t,...e){return e.length===1&&FI(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(MI,(n,r)=>e.hasOwnProperty(r)?e[r]:"")}const hg=Object.assign,af=t=>typeof t=="string",FI=t=>t!==null&&typeof t=="object";function pg(t,e=""){return t.reduce((n,r,i)=>i===0?n+r:n+e+r,"")}const J={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},BI={[J.EXPECTED_TOKEN]:"Expected token: '{0}'",[J.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[J.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[J.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[J.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[J.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[J.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[J.EMPTY_PLACEHOLDER]:"Empty placeholder",[J.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[J.INVALID_LINKED_FORMAT]:"Invalid linked format",[J.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[J.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[J.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[J.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[J.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[J.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function hi(t,e,n={}){const{domain:r,messages:i,args:o}=n,a=LI((i||BI)[t]||"",...o||[]),s=new SyntaxError(String(a));return s.code=t,e&&(s.location=e),s.domain=r,s}function $I(t){throw t}const VI=/<\/?[\w\s="/.':;#-\/]+>/,UI=t=>VI.test(t),Tn=" ",HI="\r",bt=`
|
|
1068
|
+
`,zI=String.fromCharCode(8232),WI=String.fromCharCode(8233);function GI(t){const e=t;let n=0,r=1,i=1,o=0;const a=k=>e[k]===HI&&e[k+1]===bt,s=k=>e[k]===bt,l=k=>e[k]===WI,c=k=>e[k]===zI,u=k=>a(k)||s(k)||l(k)||c(k),d=()=>n,f=()=>r,h=()=>i,p=()=>o,g=k=>a(k)||l(k)||c(k)?bt:e[k],b=()=>g(n),m=()=>g(n+o);function v(){return o=0,u(n)&&(r++,i=0),a(n)&&n++,n++,i++,e[n]}function w(){return a(n+o)&&o++,o++,e[n+o]}function y(){n=0,r=1,i=1,o=0}function C(k=0){o=k}function E(){const k=n+o;for(;k!==n;)v();o=0}return{index:d,line:f,column:h,peekOffset:p,charAt:g,currentChar:b,currentPeek:m,next:v,peek:w,reset:y,resetPeek:C,skipToPeek:E}}const Hn=void 0,jI=".",sf="'",YI="tokenizer";function XI(t,e={}){const n=e.location!==!1,r=GI(t),i=()=>r.index(),o=()=>RI(r.line(),r.column(),r.index()),a=o(),s=i(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=e;function d(S,A,R,...W){const ee=c();if(A.column+=R,A.offset+=R,u){const de=n?xl(ee.startLoc,A):null,Ft=hi(S,de,{domain:YI,args:W});u(Ft)}}function f(S,A,R){S.endLoc=o(),S.currentType=A;const W={type:A};return n&&(W.loc=xl(S.startLoc,S.endLoc)),R!=null&&(W.value=R),W}const h=S=>f(S,14);function p(S,A){return S.currentChar()===A?(S.next(),A):(d(J.EXPECTED_TOKEN,o(),0,A),"")}function g(S){let A="";for(;S.currentPeek()===Tn||S.currentPeek()===bt;)A+=S.currentPeek(),S.peek();return A}function b(S){const A=g(S);return S.skipToPeek(),A}function m(S){if(S===Hn)return!1;const A=S.charCodeAt(0);return A>=97&&A<=122||A>=65&&A<=90||A===95}function v(S){if(S===Hn)return!1;const A=S.charCodeAt(0);return A>=48&&A<=57}function w(S,A){const{currentType:R}=A;if(R!==2)return!1;g(S);const W=m(S.currentPeek());return S.resetPeek(),W}function y(S,A){const{currentType:R}=A;if(R!==2)return!1;g(S);const W=S.currentPeek()==="-"?S.peek():S.currentPeek(),ee=v(W);return S.resetPeek(),ee}function C(S,A){const{currentType:R}=A;if(R!==2)return!1;g(S);const W=S.currentPeek()===sf;return S.resetPeek(),W}function E(S,A){const{currentType:R}=A;if(R!==8)return!1;g(S);const W=S.currentPeek()===".";return S.resetPeek(),W}function k(S,A){const{currentType:R}=A;if(R!==9)return!1;g(S);const W=m(S.currentPeek());return S.resetPeek(),W}function N(S,A){const{currentType:R}=A;if(!(R===8||R===12))return!1;g(S);const W=S.currentPeek()===":";return S.resetPeek(),W}function D(S,A){const{currentType:R}=A;if(R!==10)return!1;const W=()=>{const de=S.currentPeek();return de==="{"?m(S.peek()):de==="@"||de==="%"||de==="|"||de===":"||de==="."||de===Tn||!de?!1:de===bt?(S.peek(),W()):m(de)},ee=W();return S.resetPeek(),ee}function O(S){g(S);const A=S.currentPeek()==="|";return S.resetPeek(),A}function L(S){const A=g(S),R=S.currentPeek()==="%"&&S.peek()==="{";return S.resetPeek(),{isModulo:R,hasSpace:A.length>0}}function B(S,A=!0){const R=(ee=!1,de="",Ft=!1)=>{const Xt=S.currentPeek();return Xt==="{"?de==="%"?!1:ee:Xt==="@"||!Xt?de==="%"?!0:ee:Xt==="%"?(S.peek(),R(ee,"%",!0)):Xt==="|"?de==="%"||Ft?!0:!(de===Tn||de===bt):Xt===Tn?(S.peek(),R(!0,Tn,Ft)):Xt===bt?(S.peek(),R(!0,bt,Ft)):!0},W=R();return A&&S.resetPeek(),W}function G(S,A){const R=S.currentChar();return R===Hn?Hn:A(R)?(S.next(),R):null}function ae(S){return G(S,R=>{const W=R.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36})}function se(S){return G(S,R=>{const W=R.charCodeAt(0);return W>=48&&W<=57})}function Z(S){return G(S,R=>{const W=R.charCodeAt(0);return W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102})}function K(S){let A="",R="";for(;A=se(S);)R+=A;return R}function Te(S){b(S);const A=S.currentChar();return A!=="%"&&d(J.EXPECTED_TOKEN,o(),0,A),S.next(),"%"}function Re(S){let A="";for(;;){const R=S.currentChar();if(R==="{"||R==="}"||R==="@"||R==="|"||!R)break;if(R==="%")if(B(S))A+=R,S.next();else break;else if(R===Tn||R===bt)if(B(S))A+=R,S.next();else{if(O(S))break;A+=R,S.next()}else A+=R,S.next()}return A}function Me(S){b(S);let A="",R="";for(;A=ae(S);)R+=A;return S.currentChar()===Hn&&d(J.UNTERMINATED_CLOSING_BRACE,o(),0),R}function je(S){b(S);let A="";return S.currentChar()==="-"?(S.next(),A+=`-${K(S)}`):A+=K(S),S.currentChar()===Hn&&d(J.UNTERMINATED_CLOSING_BRACE,o(),0),A}function Et(S){b(S),p(S,"'");let A="",R="";const W=de=>de!==sf&&de!==bt;for(;A=G(S,W);)A==="\\"?R+=Ye(S):R+=A;const ee=S.currentChar();return ee===bt||ee===Hn?(d(J.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),ee===bt&&(S.next(),p(S,"'")),R):(p(S,"'"),R)}function Ye(S){const A=S.currentChar();switch(A){case"\\":case"'":return S.next(),`\\${A}`;case"u":return Lt(S,A,4);case"U":return Lt(S,A,6);default:return d(J.UNKNOWN_ESCAPE_SEQUENCE,o(),0,A),""}}function Lt(S,A,R){p(S,A);let W="";for(let ee=0;ee<R;ee++){const de=Z(S);if(!de){d(J.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${A}${W}${S.currentChar()}`);break}W+=de}return`\\${A}${W}`}function et(S){b(S);let A="",R="";const W=ee=>ee!=="{"&&ee!=="}"&&ee!==Tn&&ee!==bt;for(;A=G(S,W);)R+=A;return R}function Ln(S){let A="",R="";for(;A=ae(S);)R+=A;return R}function Fn(S){const A=(R=!1,W)=>{const ee=S.currentChar();return ee==="{"||ee==="%"||ee==="@"||ee==="|"||ee==="("||ee===")"||!ee||ee===Tn?W:ee===bt||ee===jI?(W+=ee,S.next(),A(R,W)):(W+=ee,S.next(),A(!0,W))};return A(!1,"")}function En(S){b(S);const A=p(S,"|");return b(S),A}function An(S,A){let R=null;switch(S.currentChar()){case"{":return A.braceNest>=1&&d(J.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),S.next(),R=f(A,2,"{"),b(S),A.braceNest++,R;case"}":return A.braceNest>0&&A.currentType===2&&d(J.EMPTY_PLACEHOLDER,o(),0),S.next(),R=f(A,3,"}"),A.braceNest--,A.braceNest>0&&b(S),A.inLinked&&A.braceNest===0&&(A.inLinked=!1),R;case"@":return A.braceNest>0&&d(J.UNTERMINATED_CLOSING_BRACE,o(),0),R=dn(S,A)||h(A),A.braceNest=0,R;default:let ee=!0,de=!0,Ft=!0;if(O(S))return A.braceNest>0&&d(J.UNTERMINATED_CLOSING_BRACE,o(),0),R=f(A,1,En(S)),A.braceNest=0,A.inLinked=!1,R;if(A.braceNest>0&&(A.currentType===5||A.currentType===6||A.currentType===7))return d(J.UNTERMINATED_CLOSING_BRACE,o(),0),A.braceNest=0,kn(S,A);if(ee=w(S,A))return R=f(A,5,Me(S)),b(S),R;if(de=y(S,A))return R=f(A,6,je(S)),b(S),R;if(Ft=C(S,A))return R=f(A,7,Et(S)),b(S),R;if(!ee&&!de&&!Ft)return R=f(A,13,et(S)),d(J.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,R.value),b(S),R;break}return R}function dn(S,A){const{currentType:R}=A;let W=null;const ee=S.currentChar();switch((R===8||R===9||R===12||R===10)&&(ee===bt||ee===Tn)&&d(J.INVALID_LINKED_FORMAT,o(),0),ee){case"@":return S.next(),W=f(A,8,"@"),A.inLinked=!0,W;case".":return b(S),S.next(),f(A,9,".");case":":return b(S),S.next(),f(A,10,":");default:return O(S)?(W=f(A,1,En(S)),A.braceNest=0,A.inLinked=!1,W):E(S,A)||N(S,A)?(b(S),dn(S,A)):k(S,A)?(b(S),f(A,12,Ln(S))):D(S,A)?(b(S),ee==="{"?An(S,A)||W:f(A,11,Fn(S))):(R===8&&d(J.INVALID_LINKED_FORMAT,o(),0),A.braceNest=0,A.inLinked=!1,kn(S,A))}}function kn(S,A){let R={type:14};if(A.braceNest>0)return An(S,A)||h(A);if(A.inLinked)return dn(S,A)||h(A);switch(S.currentChar()){case"{":return An(S,A)||h(A);case"}":return d(J.UNBALANCED_CLOSING_BRACE,o(),0),S.next(),f(A,3,"}");case"@":return dn(S,A)||h(A);default:if(O(S))return R=f(A,1,En(S)),A.braceNest=0,A.inLinked=!1,R;const{isModulo:ee,hasSpace:de}=L(S);if(ee)return de?f(A,0,Re(S)):f(A,4,Te(S));if(B(S))return f(A,0,Re(S));break}return R}function fn(){const{currentType:S,offset:A,startLoc:R,endLoc:W}=l;return l.lastType=S,l.lastOffset=A,l.lastStartLoc=R,l.lastEndLoc=W,l.offset=i(),l.startLoc=o(),r.currentChar()===Hn?f(l,14):kn(r,l)}return{nextToken:fn,currentOffset:i,currentPosition:o,context:c}}const qI="parser",KI=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ZI(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function JI(t={}){const e=t.location!==!1,{onError:n}=t;function r(m,v,w,y,...C){const E=m.currentPosition();if(E.offset+=y,E.column+=y,n){const k=e?xl(w,E):null,N=hi(v,k,{domain:qI,args:C});n(N)}}function i(m,v,w){const y={type:m};return e&&(y.start=v,y.end=v,y.loc={start:w,end:w}),y}function o(m,v,w,y){y&&(m.type=y),e&&(m.end=v,m.loc&&(m.loc.end=w))}function a(m,v){const w=m.context(),y=i(3,w.offset,w.startLoc);return y.value=v,o(y,m.currentOffset(),m.currentPosition()),y}function s(m,v){const w=m.context(),{lastOffset:y,lastStartLoc:C}=w,E=i(5,y,C);return E.index=parseInt(v,10),m.nextToken(),o(E,m.currentOffset(),m.currentPosition()),E}function l(m,v){const w=m.context(),{lastOffset:y,lastStartLoc:C}=w,E=i(4,y,C);return E.key=v,m.nextToken(),o(E,m.currentOffset(),m.currentPosition()),E}function c(m,v){const w=m.context(),{lastOffset:y,lastStartLoc:C}=w,E=i(9,y,C);return E.value=v.replace(KI,ZI),m.nextToken(),o(E,m.currentOffset(),m.currentPosition()),E}function u(m){const v=m.nextToken(),w=m.context(),{lastOffset:y,lastStartLoc:C}=w,E=i(8,y,C);return v.type!==12?(r(m,J.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),E.value="",o(E,y,C),{nextConsumeToken:v,node:E}):(v.value==null&&r(m,J.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,pn(v)),E.value=v.value||"",o(E,m.currentOffset(),m.currentPosition()),{node:E})}function d(m,v){const w=m.context(),y=i(7,w.offset,w.startLoc);return y.value=v,o(y,m.currentOffset(),m.currentPosition()),y}function f(m){const v=m.context(),w=i(6,v.offset,v.startLoc);let y=m.nextToken();if(y.type===9){const C=u(m);w.modifier=C.node,y=C.nextConsumeToken||m.nextToken()}switch(y.type!==10&&r(m,J.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pn(y)),y=m.nextToken(),y.type===2&&(y=m.nextToken()),y.type){case 11:y.value==null&&r(m,J.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pn(y)),w.key=d(m,y.value||"");break;case 5:y.value==null&&r(m,J.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pn(y)),w.key=l(m,y.value||"");break;case 6:y.value==null&&r(m,J.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pn(y)),w.key=s(m,y.value||"");break;case 7:y.value==null&&r(m,J.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pn(y)),w.key=c(m,y.value||"");break;default:r(m,J.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const C=m.context(),E=i(7,C.offset,C.startLoc);return E.value="",o(E,C.offset,C.startLoc),w.key=E,o(w,C.offset,C.startLoc),{nextConsumeToken:y,node:w}}return o(w,m.currentOffset(),m.currentPosition()),{node:w}}function h(m){const v=m.context(),w=v.currentType===1?m.currentOffset():v.offset,y=v.currentType===1?v.endLoc:v.startLoc,C=i(2,w,y);C.items=[];let E=null;do{const D=E||m.nextToken();switch(E=null,D.type){case 0:D.value==null&&r(m,J.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pn(D)),C.items.push(a(m,D.value||""));break;case 6:D.value==null&&r(m,J.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pn(D)),C.items.push(s(m,D.value||""));break;case 5:D.value==null&&r(m,J.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pn(D)),C.items.push(l(m,D.value||""));break;case 7:D.value==null&&r(m,J.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pn(D)),C.items.push(c(m,D.value||""));break;case 8:const O=f(m);C.items.push(O.node),E=O.nextConsumeToken||null;break}}while(v.currentType!==14&&v.currentType!==1);const k=v.currentType===1?v.lastOffset:m.currentOffset(),N=v.currentType===1?v.lastEndLoc:m.currentPosition();return o(C,k,N),C}function p(m,v,w,y){const C=m.context();let E=y.items.length===0;const k=i(1,v,w);k.cases=[],k.cases.push(y);do{const N=h(m);E||(E=N.items.length===0),k.cases.push(N)}while(C.currentType!==14);return E&&r(m,J.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),o(k,m.currentOffset(),m.currentPosition()),k}function g(m){const v=m.context(),{offset:w,startLoc:y}=v,C=h(m);return v.currentType===14?C:p(m,w,y,C)}function b(m){const v=XI(m,hg({},t)),w=v.context(),y=i(0,w.offset,w.startLoc);return e&&y.loc&&(y.loc.source=m),y.body=g(v),t.onCacheKey&&(y.cacheKey=t.onCacheKey(m)),w.currentType!==14&&r(v,J.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,m[w.offset]||""),o(y,v.currentOffset(),v.currentPosition()),y}return{parse:b}}function pn(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function QI(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function lf(t,e){for(let n=0;n<t.length;n++)Rc(t[n],e)}function Rc(t,e){switch(t.type){case 1:lf(t.cases,e),e.helper("plural");break;case 2:lf(t.items,e);break;case 6:Rc(t.key,e),e.helper("linked"),e.helper("type");break;case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function eT(t,e={}){const n=QI(t);n.helper("normalize"),t.body&&Rc(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function tT(t){const e=t.body;return e.type===2?cf(e):e.cases.forEach(n=>cf(n)),t}function cf(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;n<t.items.length;n++){const r=t.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===t.items.length){t.static=pg(e);for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const nT="minifier";function Xr(t){switch(t.t=t.type,t.type){case 0:const e=t;Xr(e.body),e.b=e.body,delete e.body;break;case 1:const n=t,r=n.cases;for(let u=0;u<r.length;u++)Xr(r[u]);n.c=r,delete n.cases;break;case 2:const i=t,o=i.items;for(let u=0;u<o.length;u++)Xr(o[u]);i.i=o,delete i.items,i.static&&(i.s=i.static,delete i.static);break;case 3:case 9:case 8:case 7:const a=t;a.value&&(a.v=a.value,delete a.value);break;case 6:const s=t;Xr(s.key),s.k=s.key,delete s.key,s.modifier&&(Xr(s.modifier),s.m=s.modifier,delete s.modifier);break;case 5:const l=t;l.i=l.index,delete l.index;break;case 4:const c=t;c.k=c.key,delete c.key;break;default:throw hi(J.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:nT,args:[t.type]})}delete t.type}const rT="parser";function iT(t,e){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:o}=e,a=e.location!==!1,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:o,indentLevel:0};a&&t.loc&&(s.source=t.loc.source);const l=()=>s;function c(b,m){s.code+=b}function u(b,m=!0){const v=m?i:"";c(o?v+" ".repeat(b):v)}function d(b=!0){const m=++s.indentLevel;b&&u(m)}function f(b=!0){const m=--s.indentLevel;b&&u(m)}function h(){u(s.indentLevel)}return{context:l,push:c,indent:d,deindent:f,newline:h,helper:b=>`_${b}`,needIndent:()=>s.needIndent}}function oT(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),oi(t,e.key),e.modifier?(t.push(", "),oi(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function aT(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const i=e.items.length;for(let o=0;o<i&&(oi(t,e.items[o]),o!==i-1);o++)t.push(", ");t.deindent(r()),t.push("])")}function sT(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const i=e.cases.length;for(let o=0;o<i&&(oi(t,e.cases[o]),o!==i-1);o++)t.push(", ");t.deindent(r()),t.push("])")}}function lT(t,e){e.body?oi(t,e.body):t.push("null")}function oi(t,e){const{helper:n}=t;switch(e.type){case 0:lT(t,e);break;case 1:sT(t,e);break;case 2:aT(t,e);break;case 6:oT(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:throw hi(J.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:rT,args:[e.type]})}}const cT=(t,e={})=>{const n=af(e.mode)?e.mode:"normal",r=af(e.filename)?e.filename:"message.intl",i=!!e.sourceMap,o=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
|
|
1069
|
+
`,a=e.needIndent?e.needIndent:n!=="arrow",s=t.helpers||[],l=iT(t,{mode:n,filename:r,sourceMap:i,breakLineCode:o,needIndent:a});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${pg(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),oi(l,t),l.deindent(a),l.push("}"),delete t.helpers;const{code:c,map:u}=l.context();return{ast:t,code:c,map:u?u.toJSON():void 0}};function uT(t,e={}){const n=hg({},e),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,s=JI(n).parse(t);return r?(o&&tT(s),i&&Xr(s),{ast:s,code:""}):(eT(s,n),cT(s,n))}/*!
|
|
1037
1070
|
* core-base v9.4.1
|
|
1038
1071
|
* (c) 2023 kazuya kawaguchi
|
|
1039
1072
|
* Released under the MIT License.
|
|
1040
|
-
*/function FE(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Vt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Vt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Vt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const rn=[];rn[0]={w:[0],i:[3,0],"[":[4],o:[7]};rn[1]={w:[1],".":[2],"[":[4],o:[7]};rn[2]={w:[2],i:[3,0],0:[3,0]};rn[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};rn[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};rn[5]={"'":[4,0],o:8,l:[5,0]};rn[6]={'"':[4,0],o:8,l:[6,0]};const VE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function zE(e){return VE.test(e)}function UE(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function BE(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function HE(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:zE(t)?UE(t):"*"+t}function jE(e){const t=[];let n=-1,o=0,i=0,r,s,a,l,c,d,u;const f=[];f[0]=()=>{s===void 0?s=a:s+=a},f[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,o=4,f[0]();else{if(i=0,s===void 0||(s=HE(s),s===!1))return!1;f[1]()}};function b(){const T=e[n+1];if(o===5&&T==="'"||o===6&&T==='"')return n++,a="\\"+T,f[0](),!0}for(;o!==null;)if(n++,r=e[n],!(r==="\\"&&b())){if(l=BE(r),u=rn[o],c=u[l]||u.l||8,c===8||(o=c[0],c[1]!==void 0&&(d=f[c[1]],d&&(a=r,d()===!1))))return;if(o===7)return t}}const wc=new Map;function WE(e,t){return ne(e)?e[t]:null}function YE(e,t){if(!ne(e))return null;let n=wc.get(t);if(n||(n=jE(t),n&&wc.set(t,n)),!n)return null;const o=n.length;let i=e,r=0;for(;r<o;){const s=i[n[r]];if(s===void 0)return null;i=s,r++}return i}const GE=e=>e,qE=e=>"",KE="text",XE=e=>e.length===0?"":iE(e),ZE=oE;function kc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function JE(e){const t=xe(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(xe(e.named.count)||xe(e.named.n))?xe(e.named.count)?e.named.count:xe(e.named.n)?e.named.n:t:t}function QE(e,t){t.count||(t.count=e),t.n||(t.n=e)}function e1(e={}){const t=e.locale,n=JE(e),o=ne(e.pluralRules)&&R(t)&&pe(e.pluralRules[t])?e.pluralRules[t]:kc,i=ne(e.pluralRules)&&R(t)&&pe(e.pluralRules[t])?kc:void 0,r=p=>p[o(n,p.length,i)],s=e.list||[],a=p=>s[p],l=e.named||{};xe(e.pluralIndex)&&QE(n,l);const c=p=>l[p];function d(p){const y=pe(e.messages)?e.messages(p):ne(e.messages)?e.messages[p]:!1;return y||(e.parent?e.parent.message(p):qE)}const u=p=>e.modifiers?e.modifiers[p]:GE,f=j(e.processor)&&pe(e.processor.normalize)?e.processor.normalize:XE,b=j(e.processor)&&pe(e.processor.interpolate)?e.processor.interpolate:ZE,T=j(e.processor)&&R(e.processor.type)?e.processor.type:KE,C={list:a,named:c,plural:r,linked:(p,...y)=>{const[S,k]=y;let D="text",v="";y.length===1?ne(S)?(v=S.modifier||v,D=S.type||D):R(S)&&(v=S||v):y.length===2&&(R(S)&&(v=S||v),R(k)&&(D=k||D));const w=d(p)(C),P=D==="vnode"&&re(w)&&v?w[0]:w;return v?u(v)(P,D):P},message:d,type:T,interpolate:b,normalize:f,values:Oe({},s,l)};return C}let To=null;function t1(e){To=e}function n1(e,t,n){To&&To.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const o1=i1("function:translate");function i1(e){return t=>To&&To.emit(e,t)}const Ve={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},r1={[Ve.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Ve.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Ve.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Ve.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Ve.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Ve.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Ve.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Cn(e,...t){return ya(r1[e],...t)}function s1(e,t,n){return[...new Set([n,...re(t)?t:ne(t)?Object.keys(t):R(t)?[t]:[n]])]}function Jf(e,t,n){const o=R(n)?n:Po,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let r=i.__localeChainCache.get(o);if(!r){r=[];let s=[n];for(;re(s);)s=xc(r,s,t);const a=re(t)||!j(t)?t:t.default?t.default:null;s=R(a)?[a]:a,re(s)&&xc(r,s,!1),i.__localeChainCache.set(o,r)}return r}function xc(e,t,n){let o=!0;for(let i=0;i<t.length&&Y(o);i++){const r=t[i];R(r)&&(o=a1(e,t[i],n))}return o}function a1(e,t,n){let o;const i=t.split("-");do{const r=i.join("-");o=l1(e,r,n),i.splice(-1,1)}while(i.length&&o===!0);return o}function l1(e,t,n){let o=!1;if(!e.includes(t)&&(o=!0,t)){o=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(re(n)||j(n))&&n[i]&&(o=n[i])}return o}const c1="9.4.1",zi=-1,Po="en-US",_i="",_c=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function d1(){return{upper:(e,t)=>t==="text"&&R(e)?e.toUpperCase():t==="vnode"&&ne(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&R(e)?e.toLowerCase():t==="vnode"&&ne(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&R(e)?_c(e):t==="vnode"&&ne(e)&&"__v_isVNode"in e?_c(e.children):e}}let Qf;function Ec(e){Qf=e}let eh;function u1(e){eh=e}let th;function f1(e){th=e}let nh=null;const Tc=e=>{nh=e},h1=()=>nh;let oh=null;const Ic=e=>{oh=e},m1=()=>oh;let Sc=0;function p1(e={}){const t=pe(e.onWarn)?e.onWarn:Ie,n=R(e.version)?e.version:c1,o=R(e.locale)?e.locale:Po,i=re(e.fallbackLocale)||j(e.fallbackLocale)||R(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,r=j(e.messages)?e.messages:{[o]:{}},s=j(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},a=j(e.numberFormats)?e.numberFormats:{[o]:{}},l=Oe({},e.modifiers||{},d1()),c=e.pluralRules||{},d=pe(e.missing)?e.missing:null,u=Y(e.missingWarn)||on(e.missingWarn)?e.missingWarn:!0,f=Y(e.fallbackWarn)||on(e.fallbackWarn)?e.fallbackWarn:!0,b=!!e.fallbackFormat,T=!!e.unresolving,x=pe(e.postTranslation)?e.postTranslation:null,C=j(e.processor)?e.processor:null,p=Y(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,S=pe(e.messageCompiler)?e.messageCompiler:Qf;process.env.NODE_ENV!=="production"&&pe(e.messageCompiler)&&sE(Cn(Ve.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const k=pe(e.messageResolver)?e.messageResolver:eh||WE,D=pe(e.localeFallbacker)?e.localeFallbacker:th||s1,v=ne(e.fallbackContext)?e.fallbackContext:void 0,w=e,P=ne(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,A=ne(w.__numberFormatters)?w.__numberFormatters:new Map,N=ne(w.__meta)?w.__meta:{};Sc++;const L={version:n,cid:Sc,locale:o,fallbackLocale:i,messages:r,modifiers:l,pluralRules:c,missing:d,missingWarn:u,fallbackWarn:f,fallbackFormat:b,unresolving:T,postTranslation:x,processor:C,warnHtmlMessage:p,escapeParameter:y,messageCompiler:S,messageResolver:k,localeFallbacker:D,fallbackContext:v,onWarn:t,__meta:N};return L.datetimeFormats=s,L.numberFormats=a,L.__datetimeFormatters=P,L.__numberFormatters=A,process.env.NODE_ENV!=="production"&&(L.__v_emitter=w.__v_emitter!=null?w.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&n1(L,n,N),L}function Ui(e,t){return e instanceof RegExp?e.test(t):e}function ih(e,t){return e instanceof RegExp?e.test(t):e}function Ea(e,t,n,o,i){const{missing:r,onWarn:s}=e;if(process.env.NODE_ENV!=="production"){const a=e.__v_emitter;a&&a.emit("missing",{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(r!==null){const a=r(e,n,t,i);return R(a)?a:t}else return process.env.NODE_ENV!=="production"&&ih(o,t)&&s(Cn(Ve.NOT_FOUND_KEY,{key:t,locale:n})),t}function co(e,t,n){const o=e;o.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Cr(e){return n=>g1(n,e)}function g1(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const o=n,i=o.c||o.cases;return e.plural(i.reduce((r,s)=>[...r,Cc(e,s)],[]))}else return Cc(e,n)}function Cc(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const o=(t.i||t.items).reduce((i,r)=>[...i,fs(e,r)],[]);return e.normalize(o)}}function fs(e,t){const n=t.t||t.type;switch(n){case 3:const o=t;return o.v||o.value;case 9:const i=t;return i.v||i.value;case 4:const r=t;return e.interpolate(e.named(r.k||r.key));case 5:const s=t;return e.interpolate(e.list(s.i||s.index));case 6:const a=t,l=a.m||a.modifier;return e.linked(fs(e,a.k||a.key),l?fs(e,l):void 0,e.type);case 7:const c=t;return c.v||c.value;case 8:const d=t;return d.v||d.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const rh=B.__EXTEND_POINT__,Jo=ka(rh),ot={INVALID_ARGUMENT:rh,INVALID_DATE_ARGUMENT:Jo(),INVALID_ISO_DATE_ARGUMENT:Jo(),NOT_SUPPORT_NON_STRING_MESSAGE:Jo(),__EXTEND_POINT__:Jo()};function bn(e){return ro(e,null,process.env.NODE_ENV!=="production"?{messages:b1}:void 0)}const b1={[ot.INVALID_ARGUMENT]:"Invalid arguments",[ot.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ot.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ot.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message"},v1="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function sh(e,t){t&&mE(e)&&Ie(ya(v1,{source:e}))}const ah=e=>e;let Wn=Object.create(null);const On=e=>ne(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function lh(e,t={}){let n=!1;const o=t.onError||fE;return t.onError=i=>{n=!0,o(i)},{...RE(e,t),detectError:n}}const y1=(e,t)=>{if(!R(e))throw bn(ot.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=Y(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&sh(e,n);const i=(t.onCacheKey||ah)(e),r=Wn[i];if(r)return r;const{code:s,detectError:a}=lh(e,t),l=new Function(`return ${s}`)();return a?l:Wn[i]=l}};function w1(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&R(e)){const n=Y(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&sh(e,n);const i=(t.onCacheKey||ah)(e),r=Wn[i];if(r)return r;const{ast:s,detectError:a}=lh(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),l=Cr(s);return a?l:Wn[i]=l}else{if(process.env.NODE_ENV!=="production"&&!On(e))return Ie(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const o=Wn[n];return o||(Wn[n]=Cr(e))}else return Cr(e)}}const Oc=()=>"",pt=e=>pe(e);function Ac(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:i,messageCompiler:r,fallbackLocale:s,messages:a}=e,[l,c]=hs(...t),d=Y(c.missingWarn)?c.missingWarn:e.missingWarn,u=Y(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=Y(c.escapeParameter)?c.escapeParameter:e.escapeParameter,b=!!c.resolvedMessage,T=R(c.default)||Y(c.default)?Y(c.default)?r?l:()=>l:c.default:n?r?l:()=>l:"",x=n||T!=="",C=R(c.locale)?c.locale:e.locale;f&&k1(c);let[p,y,S]=b?[l,C,a[C]||{}]:ch(e,l,C,s,u,d),k=p,D=l;if(!b&&!(R(k)||On(k)||pt(k))&&x&&(k=T,D=k),!b&&(!(R(k)||On(k)||pt(k))||!R(y)))return i?zi:l;if(process.env.NODE_ENV!=="production"&&R(k)&&e.messageCompiler==null)return Ie(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`),l;let v=!1;const w=()=>{v=!0},P=pt(k)?k:dh(e,l,y,k,D,w);if(v)return k;const A=T1(e,y,S,c),N=e1(A),L=x1(e,P,N),U=o?o(L,l):L;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const oe={timestamp:Date.now(),key:R(l)?l:pt(k)?k.key:"",locale:y||(pt(k)?k.locale:""),format:R(k)?k:pt(k)?k.source:"",message:U};oe.meta=Oe({},e.__meta,h1()||{}),o1(oe)}return U}function k1(e){re(e.list)?e.list=e.list.map(t=>R(t)?hc(t):t):ne(e.named)&&Object.keys(e.named).forEach(t=>{R(e.named[t])&&(e.named[t]=hc(e.named[t]))})}function ch(e,t,n,o,i,r){const{messages:s,onWarn:a,messageResolver:l,localeFallbacker:c}=e,d=c(e,o,n);let u={},f,b=null,T=n,x=null;const C="translate";for(let p=0;p<d.length;p++){if(f=x=d[p],process.env.NODE_ENV!=="production"&&n!==f&&Ui(i,t)&&a(Cn(Ve.FALLBACK_TO_TRANSLATE,{key:t,target:f})),process.env.NODE_ENV!=="production"&&n!==f){const v=e.__v_emitter;v&&v.emit("fallback",{type:C,key:t,from:T,to:x,groupId:`${C}:${t}`})}u=s[f]||{};let y=null,S,k;if(process.env.NODE_ENV!=="production"&&Ct&&(y=window.performance.now(),S="intlify-message-resolve-start",k="intlify-message-resolve-end",Ye&&Ye(S)),(b=l(u,t))===null&&(b=u[t]),process.env.NODE_ENV!=="production"&&Ct){const v=window.performance.now(),w=e.__v_emitter;w&&y&&b&&w.emit("message-resolve",{type:"message-resolve",key:t,message:b,time:v-y,groupId:`${C}:${t}`}),S&&k&&Ye&&Sn&&(Ye(k),Sn("intlify message resolve",S,k))}if(R(b)||On(b)||pt(b))break;const D=Ea(e,t,f,r,C);D!==t&&(b=D),T=x}return[b,f,u]}function dh(e,t,n,o,i,r){const{messageCompiler:s,warnHtmlMessage:a}=e;if(pt(o)){const f=o;return f.locale=f.locale||n,f.key=f.key||t,f}if(s==null){const f=()=>o;return f.locale=n,f.key=t,f}let l=null,c,d;process.env.NODE_ENV!=="production"&&Ct&&(l=window.performance.now(),c="intlify-message-compilation-start",d="intlify-message-compilation-end",Ye&&Ye(c));const u=s(o,_1(e,n,i,o,a,r));if(process.env.NODE_ENV!=="production"&&Ct){const f=window.performance.now(),b=e.__v_emitter;b&&l&&b.emit("message-compilation",{type:"message-compilation",message:o,time:f-l,groupId:`translate:${t}`}),c&&d&&Ye&&Sn&&(Ye(d),Sn("intlify message compilation",c,d))}return u.locale=n,u.key=t,u.source=o,u}function x1(e,t,n){let o=null,i,r;process.env.NODE_ENV!=="production"&&Ct&&(o=window.performance.now(),i="intlify-message-evaluation-start",r="intlify-message-evaluation-end",Ye&&Ye(i));const s=t(n);if(process.env.NODE_ENV!=="production"&&Ct){const a=window.performance.now(),l=e.__v_emitter;l&&o&&l.emit("message-evaluation",{type:"message-evaluation",value:s,time:a-o,groupId:`translate:${t.key}`}),i&&r&&Ye&&Sn&&(Ye(r),Sn("intlify message evaluation",i,r))}return s}function hs(...e){const[t,n,o]=e,i={};if(!R(t)&&!xe(t)&&!pt(t)&&!On(t))throw bn(ot.INVALID_ARGUMENT);const r=xe(t)?String(t):(pt(t),t);return xe(n)?i.plural=n:R(n)?i.default=n:j(n)&&!Vi(n)?i.named=n:re(n)&&(i.list=n),xe(o)?i.plural=o:R(o)?i.default=o:j(o)&&Oe(i,o),[r,i]}function _1(e,t,n,o,i,r){return{locale:t,key:n,warnHtmlMessage:i,onError:s=>{if(r&&r(s),process.env.NODE_ENV!=="production"){const a=E1(o),l=`Message compilation error: ${s.message}`,c=s.location&&a&&rE(a,s.location.start.offset,s.location.end.offset),d=e.__v_emitter;d&&a&&d.emit("compile-error",{message:a,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${n}`}),console.error(c?`${l}
|
|
1041
|
-
${c}`:l)}else throw
|
|
1073
|
+
*/function dT(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Dn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Dn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Dn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const ir=[];ir[0]={w:[0],i:[3,0],"[":[4],o:[7]};ir[1]={w:[1],".":[2],"[":[4],o:[7]};ir[2]={w:[2],i:[3,0],0:[3,0]};ir[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};ir[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};ir[5]={"'":[4,0],o:8,l:[5,0]};ir[6]={'"':[4,0],o:8,l:[6,0]};const fT=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function hT(t){return fT.test(t)}function pT(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function gT(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function mT(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:hT(e)?pT(e):"*"+e}function vT(t){const e=[];let n=-1,r=0,i=0,o,a,s,l,c,u,d;const f=[];f[0]=()=>{a===void 0?a=s:a+=s},f[1]=()=>{a!==void 0&&(e.push(a),a=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,a===void 0||(a=mT(a),a===!1))return!1;f[1]()}};function h(){const p=t[n+1];if(r===5&&p==="'"||r===6&&p==='"')return n++,s="\\"+p,f[0](),!0}for(;r!==null;)if(n++,o=t[n],!(o==="\\"&&h())){if(l=gT(o),d=ir[r],c=d[l]||d.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(s=o,u()===!1))))return;if(r===7)return e}}const uf=new Map;function bT(t,e){return ge(t)?t[e]:null}function xT(t,e){if(!ge(t))return null;let n=uf.get(e);if(n||(n=vT(e),n&&uf.set(e,n)),!n)return null;const r=n.length;let i=t,o=0;for(;o<r;){const a=i[n[o]];if(a===void 0)return null;i=a,o++}return i}const yT=t=>t,wT=t=>"",_T="text",ET=t=>t.length===0?"":DI(t),AT=OI;function df(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function kT(t){const e=Qe(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Qe(t.named.count)||Qe(t.named.n))?Qe(t.named.count)?t.named.count:Qe(t.named.n)?t.named.n:e:e}function CT(t,e){e.count||(e.count=t),e.n||(e.n=t)}function ST(t={}){const e=t.locale,n=kT(t),r=ge(t.pluralRules)&&U(e)&&Ue(t.pluralRules[e])?t.pluralRules[e]:df,i=ge(t.pluralRules)&&U(e)&&Ue(t.pluralRules[e])?df:void 0,o=m=>m[r(n,m.length,i)],a=t.list||[],s=m=>a[m],l=t.named||{};Qe(t.pluralIndex)&&CT(n,l);const c=m=>l[m];function u(m){const v=Ue(t.messages)?t.messages(m):ge(t.messages)?t.messages[m]:!1;return v||(t.parent?t.parent.message(m):wT)}const d=m=>t.modifiers?t.modifiers[m]:yT,f=ne(t.processor)&&Ue(t.processor.normalize)?t.processor.normalize:ET,h=ne(t.processor)&&Ue(t.processor.interpolate)?t.processor.interpolate:AT,p=ne(t.processor)&&U(t.processor.type)?t.processor.type:_T,b={list:s,named:c,plural:o,linked:(m,...v)=>{const[w,y]=v;let C="text",E="";v.length===1?ge(w)?(E=w.modifier||E,C=w.type||C):U(w)&&(E=w||E):v.length===2&&(U(w)&&(E=w||E),U(y)&&(C=y||C));const k=u(m)(b),N=C==="vnode"&&Ie(k)&&E?k[0]:k;return E?d(E)(N,C):N},message:u,type:p,interpolate:h,normalize:f,values:dt({},a,l)};return b}let zi=null;function IT(t){zi=t}function TT(t,e,n){zi&&zi.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const OT=DT("function:translate");function DT(t){return e=>zi&&zi.emit(t,e)}const yt={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},NT={[yt.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[yt.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[yt.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[yt.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[yt.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[yt.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[yt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Pr(t,...e){return Oc(NT[t],...e)}function PT(t,e,n){return[...new Set([n,...Ie(e)?e:ge(e)?Object.keys(e):U(e)?[e]:[n]])]}function gg(t,e,n){const r=U(n)?n:no,i=t;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;Ie(a);)a=ff(o,a,e);const s=Ie(e)||!ne(e)?e:e.default?e.default:null;a=U(s)?[s]:s,Ie(a)&&ff(o,a,!1),i.__localeChainCache.set(r,o)}return o}function ff(t,e,n){let r=!0;for(let i=0;i<e.length&&oe(r);i++){const o=e[i];U(o)&&(r=RT(t,e[i],n))}return r}function RT(t,e,n){let r;const i=e.split("-");do{const o=i.join("-");r=MT(t,o,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function MT(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const i=e.replace(/!/g,"");t.push(i),(Ie(n)||ne(n))&&n[i]&&(r=n[i])}return r}const LT="9.4.1",Ta=-1,no="en-US",ia="",hf=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function FT(){return{upper:(t,e)=>e==="text"&&U(t)?t.toUpperCase():e==="vnode"&&ge(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&U(t)?t.toLowerCase():e==="vnode"&&ge(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&U(t)?hf(t):e==="vnode"&&ge(t)&&"__v_isVNode"in t?hf(t.children):t}}let mg;function pf(t){mg=t}let vg;function BT(t){vg=t}let bg;function $T(t){bg=t}let xg=null;const gf=t=>{xg=t},VT=()=>xg;let yg=null;const mf=t=>{yg=t},UT=()=>yg;let vf=0;function HT(t={}){const e=Ue(t.onWarn)?t.onWarn:rt,n=U(t.version)?t.version:LT,r=U(t.locale)?t.locale:no,i=Ie(t.fallbackLocale)||ne(t.fallbackLocale)||U(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,o=ne(t.messages)?t.messages:{[r]:{}},a=ne(t.datetimeFormats)?t.datetimeFormats:{[r]:{}},s=ne(t.numberFormats)?t.numberFormats:{[r]:{}},l=dt({},t.modifiers||{},FT()),c=t.pluralRules||{},u=Ue(t.missing)?t.missing:null,d=oe(t.missingWarn)||rr(t.missingWarn)?t.missingWarn:!0,f=oe(t.fallbackWarn)||rr(t.fallbackWarn)?t.fallbackWarn:!0,h=!!t.fallbackFormat,p=!!t.unresolving,g=Ue(t.postTranslation)?t.postTranslation:null,b=ne(t.processor)?t.processor:null,m=oe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,v=!!t.escapeParameter,w=Ue(t.messageCompiler)?t.messageCompiler:mg;process.env.NODE_ENV!=="production"&&Ue(t.messageCompiler)&&PI(Pr(yt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const y=Ue(t.messageResolver)?t.messageResolver:vg||bT,C=Ue(t.localeFallbacker)?t.localeFallbacker:bg||PT,E=ge(t.fallbackContext)?t.fallbackContext:void 0,k=t,N=ge(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,D=ge(k.__numberFormatters)?k.__numberFormatters:new Map,O=ge(k.__meta)?k.__meta:{};vf++;const L={version:n,cid:vf,locale:r,fallbackLocale:i,messages:o,modifiers:l,pluralRules:c,missing:u,missingWarn:d,fallbackWarn:f,fallbackFormat:h,unresolving:p,postTranslation:g,processor:b,warnHtmlMessage:m,escapeParameter:v,messageCompiler:w,messageResolver:y,localeFallbacker:C,fallbackContext:E,onWarn:e,__meta:O};return L.datetimeFormats=a,L.numberFormats=s,L.__datetimeFormatters=N,L.__numberFormatters=D,process.env.NODE_ENV!=="production"&&(L.__v_emitter=k.__v_emitter!=null?k.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&TT(L,n,O),L}function Oa(t,e){return t instanceof RegExp?t.test(e):t}function wg(t,e){return t instanceof RegExp?t.test(e):t}function Mc(t,e,n,r,i){const{missing:o,onWarn:a}=t;if(process.env.NODE_ENV!=="production"){const s=t.__v_emitter;s&&s.emit("missing",{locale:n,key:e,type:i,groupId:`${i}:${e}`})}if(o!==null){const s=o(t,n,e,i);return U(s)?s:e}else return process.env.NODE_ENV!=="production"&&wg(r,e)&&a(Pr(yt.NOT_FOUND_KEY,{key:e,locale:n})),e}function yi(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function Es(t){return n=>zT(n,t)}function zT(t,e){const n=e.b||e.body;if((n.t||n.type)===1){const r=n,i=r.c||r.cases;return t.plural(i.reduce((o,a)=>[...o,bf(t,a)],[]))}else return bf(t,n)}function bf(t,e){const n=e.s||e.static;if(n)return t.type==="text"?n:t.normalize([n]);{const r=(e.i||e.items).reduce((i,o)=>[...i,yl(t,o)],[]);return t.normalize(r)}}function yl(t,e){const n=e.t||e.type;switch(n){case 3:const r=e;return r.v||r.value;case 9:const i=e;return i.v||i.value;case 4:const o=e;return t.interpolate(t.named(o.k||o.key));case 5:const a=e;return t.interpolate(t.list(a.i||a.index));case 6:const s=e,l=s.m||s.modifier;return t.linked(yl(t,s.k||s.key),l?yl(t,l):void 0,t.type);case 7:const c=e;return c.v||c.value;case 8:const u=e;return u.v||u.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const _g=J.__EXTEND_POINT__,ko=Nc(_g),jt={INVALID_ARGUMENT:_g,INVALID_DATE_ARGUMENT:ko(),INVALID_ISO_DATE_ARGUMENT:ko(),NOT_SUPPORT_NON_STRING_MESSAGE:ko(),__EXTEND_POINT__:ko()};function yr(t){return hi(t,null,process.env.NODE_ENV!=="production"?{messages:WT}:void 0)}const WT={[jt.INVALID_ARGUMENT]:"Invalid arguments",[jt.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[jt.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[jt.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message"},GT="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Eg(t,e){e&&UI(t)&&rt(Oc(GT,{source:t}))}const Ag=t=>t;let Jr=Object.create(null);const Rr=t=>ge(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function kg(t,e={}){let n=!1;const r=e.onError||$I;return e.onError=i=>{n=!0,r(i)},{...uT(t,e),detectError:n}}const jT=(t,e)=>{if(!U(t))throw yr(jt.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=oe(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Eg(t,n);const i=(e.onCacheKey||Ag)(t),o=Jr[i];if(o)return o;const{code:a,detectError:s}=kg(t,e),l=new Function(`return ${a}`)();return s?l:Jr[i]=l}};function YT(t,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&U(t)){const n=oe(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Eg(t,n);const i=(e.onCacheKey||Ag)(t),o=Jr[i];if(o)return o;const{ast:a,detectError:s}=kg(t,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),l=Es(a);return s?l:Jr[i]=l}else{if(process.env.NODE_ENV!=="production"&&!Rr(t))return rt(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),()=>t;const n=t.cacheKey;if(n){const r=Jr[n];return r||(Jr[n]=Es(t))}else return Es(t)}}const xf=()=>"",on=t=>Ue(t);function yf(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=t,[l,c]=wl(...e),u=oe(c.missingWarn)?c.missingWarn:t.missingWarn,d=oe(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn,f=oe(c.escapeParameter)?c.escapeParameter:t.escapeParameter,h=!!c.resolvedMessage,p=U(c.default)||oe(c.default)?oe(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:"",g=n||p!=="",b=U(c.locale)?c.locale:t.locale;f&&XT(c);let[m,v,w]=h?[l,b,s[b]||{}]:Cg(t,l,b,a,d,u),y=m,C=l;if(!h&&!(U(y)||Rr(y)||on(y))&&g&&(y=p,C=y),!h&&(!(U(y)||Rr(y)||on(y))||!U(v)))return i?Ta:l;if(process.env.NODE_ENV!=="production"&&U(y)&&t.messageCompiler==null)return rt(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`),l;let E=!1;const k=()=>{E=!0},N=on(y)?y:Sg(t,l,v,y,C,k);if(E)return y;const D=JT(t,v,w,c),O=ST(D),L=qT(t,N,O),B=r?r(L,l):L;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const G={timestamp:Date.now(),key:U(l)?l:on(y)?y.key:"",locale:v||(on(y)?y.locale:""),format:U(y)?y:on(y)?y.source:"",message:B};G.meta=dt({},t.__meta,VT()||{}),OT(G)}return B}function XT(t){Ie(t.list)?t.list=t.list.map(e=>U(e)?nf(e):e):ge(t.named)&&Object.keys(t.named).forEach(e=>{U(t.named[e])&&(t.named[e]=nf(t.named[e]))})}function Cg(t,e,n,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:c}=t,u=c(t,r,n);let d={},f,h=null,p=n,g=null;const b="translate";for(let m=0;m<u.length;m++){if(f=g=u[m],process.env.NODE_ENV!=="production"&&n!==f&&Oa(i,e)&&s(Pr(yt.FALLBACK_TO_TRANSLATE,{key:e,target:f})),process.env.NODE_ENV!=="production"&&n!==f){const E=t.__v_emitter;E&&E.emit("fallback",{type:b,key:e,from:p,to:g,groupId:`${b}:${e}`})}d=a[f]||{};let v=null,w,y;if(process.env.NODE_ENV!=="production"&&wn&&(v=window.performance.now(),w="intlify-message-resolve-start",y="intlify-message-resolve-end",Pt&&Pt(w)),(h=l(d,e))===null&&(h=d[e]),process.env.NODE_ENV!=="production"&&wn){const E=window.performance.now(),k=t.__v_emitter;k&&v&&h&&k.emit("message-resolve",{type:"message-resolve",key:e,message:h,time:E-v,groupId:`${b}:${e}`}),w&&y&&Pt&&Nr&&(Pt(y),Nr("intlify message resolve",w,y))}if(U(h)||Rr(h)||on(h))break;const C=Mc(t,e,f,o,b);C!==e&&(h=C),p=g}return[h,f,d]}function Sg(t,e,n,r,i,o){const{messageCompiler:a,warnHtmlMessage:s}=t;if(on(r)){const f=r;return f.locale=f.locale||n,f.key=f.key||e,f}if(a==null){const f=()=>r;return f.locale=n,f.key=e,f}let l=null,c,u;process.env.NODE_ENV!=="production"&&wn&&(l=window.performance.now(),c="intlify-message-compilation-start",u="intlify-message-compilation-end",Pt&&Pt(c));const d=a(r,KT(t,n,i,r,s,o));if(process.env.NODE_ENV!=="production"&&wn){const f=window.performance.now(),h=t.__v_emitter;h&&l&&h.emit("message-compilation",{type:"message-compilation",message:r,time:f-l,groupId:`translate:${e}`}),c&&u&&Pt&&Nr&&(Pt(u),Nr("intlify message compilation",c,u))}return d.locale=n,d.key=e,d.source=r,d}function qT(t,e,n){let r=null,i,o;process.env.NODE_ENV!=="production"&&wn&&(r=window.performance.now(),i="intlify-message-evaluation-start",o="intlify-message-evaluation-end",Pt&&Pt(i));const a=e(n);if(process.env.NODE_ENV!=="production"&&wn){const s=window.performance.now(),l=t.__v_emitter;l&&r&&l.emit("message-evaluation",{type:"message-evaluation",value:a,time:s-r,groupId:`translate:${e.key}`}),i&&o&&Pt&&Nr&&(Pt(o),Nr("intlify message evaluation",i,o))}return a}function wl(...t){const[e,n,r]=t,i={};if(!U(e)&&!Qe(e)&&!on(e)&&!Rr(e))throw yr(jt.INVALID_ARGUMENT);const o=Qe(e)?String(e):(on(e),e);return Qe(n)?i.plural=n:U(n)?i.default=n:ne(n)&&!Ia(n)?i.named=n:Ie(n)&&(i.list=n),Qe(r)?i.plural=r:U(r)?i.default=r:ne(r)&&dt(i,r),[o,i]}function KT(t,e,n,r,i,o){return{locale:e,key:n,warnHtmlMessage:i,onError:a=>{if(o&&o(a),process.env.NODE_ENV!=="production"){const s=ZT(r),l=`Message compilation error: ${a.message}`,c=a.location&&s&&NI(s,a.location.start.offset,a.location.end.offset),u=t.__v_emitter;u&&s&&u.emit("compile-error",{message:s,error:a.message,start:a.location&&a.location.start.offset,end:a.location&&a.location.end.offset,groupId:`translate:${n}`}),console.error(c?`${l}
|
|
1074
|
+
${c}`:l)}else throw a},onCacheKey:a=>CI(e,n,a)}}function ZT(t){var e;if(!U(t)){if((e=t.loc)!=null&&e.source)return t.loc.source}}function JT(t,e,n,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:c,fallbackContext:u}=t,f={locale:e,modifiers:i,pluralRules:o,messages:h=>{let p=a(n,h);if(p==null&&u){const[,,g]=Cg(u,h,e,s,l,c);p=a(g,h)}if(U(p)||Rr(p)){let g=!1;const m=Sg(t,h,e,p,h,()=>{g=!0});return g?xf:m}else return on(p)?p:xf}};return t.processor&&(f.processor=t.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),Qe(r.plural)&&(f.pluralIndex=r.plural),f}const wf=typeof Intl<"u",Ig={dateTimeFormat:wf&&typeof Intl.DateTimeFormat<"u",numberFormat:wf&&typeof Intl.NumberFormat<"u"};function _f(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=t,{__datetimeFormatters:s}=t;if(process.env.NODE_ENV!=="production"&&!Ig.dateTimeFormat)return o(Pr(yt.CANNOT_FORMAT_DATE)),ia;const[l,c,u,d]=_l(...e),f=oe(u.missingWarn)?u.missingWarn:t.missingWarn,h=oe(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,p=!!u.part,g=U(u.locale)?u.locale:t.locale,b=a(t,i,g);if(!U(l)||l==="")return new Intl.DateTimeFormat(g,d).format(c);let m={},v,w=null,y=g,C=null;const E="datetime format";for(let D=0;D<b.length;D++){if(v=C=b[D],process.env.NODE_ENV!=="production"&&g!==v&&Oa(h,l)&&o(Pr(yt.FALLBACK_TO_DATE_FORMAT,{key:l,target:v})),process.env.NODE_ENV!=="production"&&g!==v){const O=t.__v_emitter;O&&O.emit("fallback",{type:E,key:l,from:y,to:C,groupId:`${E}:${l}`})}if(m=n[v]||{},w=m[l],ne(w))break;Mc(t,l,v,f,E),y=C}if(!ne(w)||!U(v))return r?Ta:l;let k=`${v}__${l}`;Ia(d)||(k=`${k}__${JSON.stringify(d)}`);let N=s.get(k);return N||(N=new Intl.DateTimeFormat(v,dt({},w,d)),s.set(k,N)),p?N.formatToParts(c):N.format(c)}const Tg=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function _l(...t){const[e,n,r,i]=t,o={};let a={},s;if(U(e)){const l=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw yr(jt.INVALID_ISO_DATE_ARGUMENT);const c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(c);try{s.toISOString()}catch{throw yr(jt.INVALID_ISO_DATE_ARGUMENT)}}else if(II(e)){if(isNaN(e.getTime()))throw yr(jt.INVALID_DATE_ARGUMENT);s=e}else if(Qe(e))s=e;else throw yr(jt.INVALID_ARGUMENT);return U(n)?o.key=n:ne(n)&&Object.keys(n).forEach(l=>{Tg.includes(l)?a[l]=n[l]:o[l]=n[l]}),U(r)?o.locale=r:ne(r)&&(a=r),ne(i)&&(a=i),[o.key||"",s,o,a]}function Ef(t,e,n){const r=t;for(const i in n){const o=`${e}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function Af(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=t,{__numberFormatters:s}=t;if(process.env.NODE_ENV!=="production"&&!Ig.numberFormat)return o(Pr(yt.CANNOT_FORMAT_NUMBER)),ia;const[l,c,u,d]=El(...e),f=oe(u.missingWarn)?u.missingWarn:t.missingWarn,h=oe(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,p=!!u.part,g=U(u.locale)?u.locale:t.locale,b=a(t,i,g);if(!U(l)||l==="")return new Intl.NumberFormat(g,d).format(c);let m={},v,w=null,y=g,C=null;const E="number format";for(let D=0;D<b.length;D++){if(v=C=b[D],process.env.NODE_ENV!=="production"&&g!==v&&Oa(h,l)&&o(Pr(yt.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:v})),process.env.NODE_ENV!=="production"&&g!==v){const O=t.__v_emitter;O&&O.emit("fallback",{type:E,key:l,from:y,to:C,groupId:`${E}:${l}`})}if(m=n[v]||{},w=m[l],ne(w))break;Mc(t,l,v,f,E),y=C}if(!ne(w)||!U(v))return r?Ta:l;let k=`${v}__${l}`;Ia(d)||(k=`${k}__${JSON.stringify(d)}`);let N=s.get(k);return N||(N=new Intl.NumberFormat(v,dt({},w,d)),s.set(k,N)),p?N.formatToParts(c):N.format(c)}const Og=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function El(...t){const[e,n,r,i]=t,o={};let a={};if(!Qe(e))throw yr(jt.INVALID_ARGUMENT);const s=e;return U(n)?o.key=n:ne(n)&&Object.keys(n).forEach(l=>{Og.includes(l)?a[l]=n[l]:o[l]=n[l]}),U(r)?o.locale=r:ne(r)&&(a=r),ne(i)&&(a=i),[o.key||"",s,o,a]}function kf(t,e,n){const r=t;for(const i in n){const o=`${e}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}dT();/*!
|
|
1042
1075
|
* vue-i18n v9.4.1
|
|
1043
1076
|
* (c) 2023 kazuya kawaguchi
|
|
1044
1077
|
* Released under the MIT License.
|
|
1045
|
-
*/const I1="9.4.1";function S1(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Vt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Vt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Vt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Vt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Vt().__INTLIFY_PROD_DEVTOOLS__=!1)}const mh=Ve.__EXTEND_POINT__,qt=ka(mh),me={FALLBACK_TO_ROOT:mh,NOT_SUPPORTED_PRESERVE:qt(),NOT_SUPPORTED_FORMATTER:qt(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:qt(),NOT_SUPPORTED_GET_CHOICE_INDEX:qt(),COMPONENT_NAME_LEGACY_COMPATIBLE:qt(),NOT_FOUND_PARENT_SCOPE:qt(),IGNORE_OBJ_FLATTEN:qt(),NOTICE_DROP_ALLOW_COMPOSITION:qt()},C1={[me.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[me.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[me.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[me.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[me.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[me.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[me.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[me.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[me.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function We(e,...t){return ya(C1[e],...t)}const ph=ot.__EXTEND_POINT__,Be=ka(ph),J={UNEXPECTED_RETURN_TYPE:ph,INVALID_ARGUMENT:Be(),MUST_BE_CALL_SETUP_TOP:Be(),NOT_INSTALLED:Be(),NOT_AVAILABLE_IN_LEGACY_MODE:Be(),REQUIRED_VALUE:Be(),INVALID_VALUE:Be(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Be(),NOT_INSTALLED_WITH_PROVIDE:Be(),UNEXPECTED_ERROR:Be(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Be(),BRIDGE_SUPPORT_VUE_2_ONLY:Be(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Be(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Be(),__EXTEND_POINT__:Be()};function ve(e,...t){return ro(e,null,process.env.NODE_ENV!=="production"?{messages:O1,args:t}:void 0)}const O1={[J.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[J.INVALID_ARGUMENT]:"Invalid argument",[J.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[J.NOT_INSTALLED]:"Need to install with `app.use` function",[J.UNEXPECTED_ERROR]:"Unexpected error",[J.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[J.REQUIRED_VALUE]:"Required in value: {0}",[J.INVALID_VALUE]:"Invalid value",[J.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[J.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[J.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[J.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[J.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[J.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},gs=At("__translateVNode"),bs=At("__datetimeParts"),vs=At("__numberParts"),An=At("__enableEmitter"),Io=At("__disableEmitter"),gh=At("__setPluralRules"),bh=At("__injectWithOption"),ys=At("__dispose");function ws(e){if(!ne(e))return e;for(const t in e)if(wa(e,t))if(!t.includes("."))ne(e[t])&&ws(e[t]);else{const n=t.split("."),o=n.length-1;let i=e,r=!1;for(let s=0;s<o;s++){if(n[s]in i||(i[n[s]]={}),!ne(i[n[s]])){process.env.NODE_ENV!=="production"&&Ie(We(me.IGNORE_OBJ_FLATTEN,{key:n[s]})),r=!0;break}i=i[n[s]]}r||(i[n[o]]=e[t],delete e[t]),ne(i[n[o]])&&ws(i[n[o]])}return e}function Bi(e,t){const{messages:n,__i18n:o,messageResolver:i,flatJson:r}=t,s=j(n)?n:re(o)?{}:{[e]:{}};if(re(o)&&o.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(s[l]=s[l]||{},vo(c,s[l])):vo(c,s)}else R(a)&&vo(JSON.parse(a),s)}),i==null&&r)for(const a in s)wa(s,a)&&ws(s[a]);return s}const Qo=e=>!ne(e)||re(e);function vo(e,t){if(Qo(e)||Qo(t))throw ve(J.INVALID_VALUE);for(const n in e)wa(e,n)&&(Qo(e[n])||Qo(t[n])?t[n]=e[n]:vo(e[n],t[n]))}function vh(e){return e.type}function yh(e,t,n){let o=ne(t.messages)?t.messages:{};"__i18nGlobal"in n&&(o=Bi(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const i=Object.keys(o);i.length&&i.forEach(r=>{e.mergeLocaleMessage(r,o[r])});{if(ne(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(ne(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function Mc(e){return h.createVNode(h.Text,null,e,0)}const Rc="__INTLIFY_META__";let Fc=0;function Vc(e){return(t,n,o,i)=>e(n,o,h.getCurrentInstance()||void 0,i)}const A1=()=>{const e=h.getCurrentInstance();let t=null;return e&&(t=vh(e)[Rc])?{[Rc]:t}:null};function Ta(e={},t){const{__root:n,__injectWithOption:o}=e,i=n===void 0;let r=Y(e.inheritLocale)?e.inheritLocale:!0;const s=h.ref(n&&r?n.locale.value:R(e.locale)?e.locale:Po),a=h.ref(n&&r?n.fallbackLocale.value:R(e.fallbackLocale)||re(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),l=h.ref(Bi(s.value,e)),c=h.ref(j(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=h.ref(j(e.numberFormats)?e.numberFormats:{[s.value]:{}});let u=n?n.missingWarn:Y(e.missingWarn)||on(e.missingWarn)?e.missingWarn:!0,f=n?n.fallbackWarn:Y(e.fallbackWarn)||on(e.fallbackWarn)?e.fallbackWarn:!0,b=n?n.fallbackRoot:Y(e.fallbackRoot)?e.fallbackRoot:!0,T=!!e.fallbackFormat,x=pe(e.missing)?e.missing:null,C=pe(e.missing)?Vc(e.missing):null,p=pe(e.postTranslation)?e.postTranslation:null,y=n?n.warnHtmlMessage:Y(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const k=n?n.modifiers:j(e.modifiers)?e.modifiers:{};let D=e.pluralRules||n&&n.pluralRules,v;v=(()=>{i&&Ic(null);const O={version:I1,locale:s.value,fallbackLocale:a.value,messages:l.value,modifiers:k,pluralRules:D,missing:C===null?void 0:C,missingWarn:u,fallbackWarn:f,fallbackFormat:T,unresolving:!0,postTranslation:p===null?void 0:p,warnHtmlMessage:y,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};O.datetimeFormats=c.value,O.numberFormats=d.value,O.__datetimeFormatters=j(v)?v.__datetimeFormatters:void 0,O.__numberFormatters=j(v)?v.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(O.__v_emitter=j(v)?v.__v_emitter:void 0);const $=p1(O);return i&&Ic($),$})(),co(v,s.value,a.value);function P(){return[s.value,a.value,l.value,c.value,d.value]}const A=h.computed({get:()=>s.value,set:O=>{s.value=O,v.locale=s.value}}),N=h.computed({get:()=>a.value,set:O=>{a.value=O,v.fallbackLocale=a.value,co(v,s.value,O)}}),L=h.computed(()=>l.value),U=h.computed(()=>c.value),oe=h.computed(()=>d.value);function ye(){return pe(p)?p:null}function Ue(O){p=O,v.postTranslation=O}function K(){return x}function X(O){O!==null&&(C=Vc(O)),x=O,v.missing=C}function rt(O,$){return O!=="translate"||!$.resolvedMessage}const De=(O,$,Ne,Se,Lt,lt)=>{P();let ct;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Tc(A1()),i||(v.fallbackContext=n?m1():void 0),ct=O(v)}finally{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Tc(null),i||(v.fallbackContext=void 0)}if(xe(ct)&&ct===zi){const[we,_t]=$();if(process.env.NODE_ENV!=="production"&&n&&R(we)&&rt(Ne,_t)&&(b&&(Ui(f,we)||ih(u,we))&&Ie(We(me.FALLBACK_TO_ROOT,{key:we,type:Ne})),process.env.NODE_ENV!=="production")){const{__v_emitter:Pt}=v;Pt&&b&&Pt.emit("fallback",{type:Ne,key:we,to:"global",groupId:`${Ne}:${we}`})}return n&&b?Se(n):Lt(we)}else{if(lt(ct))return ct;throw ve(J.UNEXPECTED_RETURN_TYPE)}};function qe(...O){return De($=>Reflect.apply(Ac,null,[$,...O]),()=>hs(...O),"translate",$=>Reflect.apply($.t,$,[...O]),$=>$,$=>R($))}function st(...O){const[$,Ne,Se]=O;if(Se&&!ne(Se))throw ve(J.INVALID_ARGUMENT);return qe($,Ne,Oe({resolvedMessage:!0},Se||{}))}function wt(...O){return De($=>Reflect.apply(Nc,null,[$,...O]),()=>ms(...O),"datetime format",$=>Reflect.apply($.d,$,[...O]),()=>_i,$=>R($))}function _e(...O){return De($=>Reflect.apply(Lc,null,[$,...O]),()=>ps(...O),"number format",$=>Reflect.apply($.n,$,[...O]),()=>_i,$=>R($))}function Ke(O){return O.map($=>R($)||xe($)||Y($)?Mc(String($)):$)}const Ht={normalize:Ke,interpolate:O=>O,type:"vnode"};function jt(...O){return De($=>{let Ne;const Se=$;try{Se.processor=Ht,Ne=Reflect.apply(Ac,null,[Se,...O])}finally{Se.processor=null}return Ne},()=>hs(...O),"translate",$=>$[gs](...O),$=>[Mc($)],$=>re($))}function Dt(...O){return De($=>Reflect.apply(Lc,null,[$,...O]),()=>ps(...O),"number format",$=>$[vs](...O),()=>[],$=>R($)||re($))}function Nt(...O){return De($=>Reflect.apply(Nc,null,[$,...O]),()=>ms(...O),"datetime format",$=>$[bs](...O),()=>[],$=>R($)||re($))}function kt(O){D=O,v.pluralRules=D}function $t(O,$){const Ne=R($)?$:s.value,Se=m(Ne);return v.messageResolver(Se,O)!==null}function xt(O){let $=null;const Ne=Jf(v,a.value,s.value);for(let Se=0;Se<Ne.length;Se++){const Lt=l.value[Ne[Se]]||{},lt=v.messageResolver(Lt,O);if(lt!=null){$=lt;break}}return $}function g(O){const $=xt(O);return $??(n?n.tm(O)||{}:{})}function m(O){return l.value[O]||{}}function I(O,$){l.value[O]=$,v.messages=l.value}function V(O,$){l.value[O]=l.value[O]||{},vo($,l.value[O]),v.messages=l.value}function H(O){return c.value[O]||{}}function Q(O,$){c.value[O]=$,v.datetimeFormats=c.value,$c(v,O,$)}function Xe(O,$){c.value[O]=Oe(c.value[O]||{},$),v.datetimeFormats=c.value,$c(v,O,$)}function at(O){return d.value[O]||{}}function Hi(O,$){d.value[O]=$,v.numberFormats=d.value,Pc(v,O,$)}function ji(O,$){d.value[O]=Oe(d.value[O]||{},$),v.numberFormats=d.value,Pc(v,O,$)}Fc++,n&&Ct&&(h.watch(n.locale,O=>{r&&(s.value=O,v.locale=O,co(v,s.value,a.value))}),h.watch(n.fallbackLocale,O=>{r&&(a.value=O,v.fallbackLocale=O,co(v,s.value,a.value))}));const fe={id:Fc,locale:A,fallbackLocale:N,get inheritLocale(){return r},set inheritLocale(O){r=O,O&&n&&(s.value=n.locale.value,a.value=n.fallbackLocale.value,co(v,s.value,a.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:L,get modifiers(){return k},get pluralRules(){return D||{}},get isGlobal(){return i},get missingWarn(){return u},set missingWarn(O){u=O,v.missingWarn=u},get fallbackWarn(){return f},set fallbackWarn(O){f=O,v.fallbackWarn=f},get fallbackRoot(){return b},set fallbackRoot(O){b=O},get fallbackFormat(){return T},set fallbackFormat(O){T=O,v.fallbackFormat=T},get warnHtmlMessage(){return y},set warnHtmlMessage(O){y=O,v.warnHtmlMessage=O},get escapeParameter(){return S},set escapeParameter(O){S=O,v.escapeParameter=O},t:qe,getLocaleMessage:m,setLocaleMessage:I,mergeLocaleMessage:V,getPostTranslationHandler:ye,setPostTranslationHandler:Ue,getMissingHandler:K,setMissingHandler:X,[gh]:kt};return fe.datetimeFormats=U,fe.numberFormats=oe,fe.rt=st,fe.te=$t,fe.tm=g,fe.d=wt,fe.n=_e,fe.getDateTimeFormat=H,fe.setDateTimeFormat=Q,fe.mergeDateTimeFormat=Xe,fe.getNumberFormat=at,fe.setNumberFormat=Hi,fe.mergeNumberFormat=ji,fe[bh]=o,fe[gs]=jt,fe[bs]=Nt,fe[vs]=Dt,process.env.NODE_ENV!=="production"&&(fe[An]=O=>{v.__v_emitter=O},fe[Io]=()=>{v.__v_emitter=void 0}),fe}function D1(e){const t=R(e.locale)?e.locale:Po,n=R(e.fallbackLocale)||re(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,o=pe(e.missing)?e.missing:void 0,i=Y(e.silentTranslationWarn)||on(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=Y(e.silentFallbackWarn)||on(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=Y(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=j(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,d=pe(e.postTranslation)?e.postTranslation:void 0,u=R(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,b=Y(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&Ie(We(me.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Ie(We(me.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let T=e.messages;if(j(e.sharedMessages)){const D=e.sharedMessages;T=Object.keys(D).reduce((w,P)=>{const A=w[P]||(w[P]={});return Oe(A,D[P]),w},T||{})}const{__i18n:x,__root:C,__injectWithOption:p}=e,y=e.datetimeFormats,S=e.numberFormats,k=e.flatJson;return{locale:t,fallbackLocale:n,messages:T,flatJson:k,datetimeFormats:y,numberFormats:S,missing:o,missingWarn:i,fallbackWarn:r,fallbackRoot:s,fallbackFormat:a,modifiers:l,pluralRules:c,postTranslation:d,warnHtmlMessage:u,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:b,__i18n:x,__root:C,__injectWithOption:p}}function ks(e={},t){{const n=Ta(D1(e)),{__extender:o}=e,i={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Ie(We(me.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(r){process.env.NODE_ENV!=="production"&&Ie(We(me.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return Y(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=Y(r)?!r:r},get silentFallbackWarn(){return Y(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=Y(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Ie(We(me.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(r){process.env.NODE_ENV!=="production"&&Ie(We(me.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[s,a,l]=r,c={};let d=null,u=null;if(!R(s))throw ve(J.INVALID_ARGUMENT);const f=s;return R(a)?c.locale=a:re(a)?d=a:j(a)&&(u=a),re(l)?d=l:j(l)&&(u=l),Reflect.apply(n.t,n,[f,d||u||{},c])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[s,a,l]=r,c={plural:1};let d=null,u=null;if(!R(s))throw ve(J.INVALID_ARGUMENT);const f=s;return R(a)?c.locale=a:xe(a)?c.plural=a:re(a)?d=a:j(a)&&(u=a),R(l)?c.locale=l:re(l)?d=l:j(l)&&(u=l),Reflect.apply(n.t,n,[f,d||u||{},c])},te(r,s){return n.te(r,s)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,s){n.setLocaleMessage(r,s)},mergeLocaleMessage(r,s){n.mergeLocaleMessage(r,s)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,s){n.setDateTimeFormat(r,s)},mergeDateTimeFormat(r,s){n.mergeDateTimeFormat(r,s)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,s){n.setNumberFormat(r,s)},mergeNumberFormat(r,s){n.mergeNumberFormat(r,s)},getChoiceIndex(r,s){return process.env.NODE_ENV!=="production"&&Ie(We(me.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return i.__extender=o,process.env.NODE_ENV!=="production"&&(i.__enableEmitter=r=>{const s=n;s[An]&&s[An](r)},i.__disableEmitter=()=>{const r=n;r[Io]&&r[Io]()}),i}}const Ia={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function N1({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((o,i)=>[...o,...i.type===h.Fragment?i.children:[i]],[]):t.reduce((n,o)=>{const i=e[o];return i&&(n[o]=i()),n},{})}function wh(e){return h.Fragment}const $1=h.defineComponent({name:"i18n-t",props:Oe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>xe(e)||!isNaN(e)}},Ia),setup(e,t){const{slots:n,attrs:o}=t,i=e.i18n||Ca({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(u=>u!=="_"),s={};e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=R(e.plural)?+e.plural:e.plural);const a=N1(t,r),l=i[gs](e.keypath,a,s),c=Oe({},o),d=R(e.tag)||ne(e.tag)?e.tag:wh();return h.h(d,c,l)}}}),Or=$1;function L1(e){return re(e)&&!R(e[0])}function kh(e,t,n,o){const{slots:i,attrs:r}=t;return()=>{const s={part:!0};let a={};e.locale&&(s.locale=e.locale),R(e.format)?s.key=e.format:ne(e.format)&&(R(e.format.key)&&(s.key=e.format.key),a=Object.keys(e.format).reduce((f,b)=>n.includes(b)?Oe({},f,{[b]:e.format[b]}):f,{}));const l=o(e.value,s,a);let c=[s.key];re(l)?c=l.map((f,b)=>{const T=i[f.type],x=T?T({[f.type]:f.value,index:b,parts:l}):[f.value];return L1(x)&&(x[0].key=`${f.type}-${b}`),x}):R(l)&&(c=[l]);const d=Oe({},r),u=R(e.tag)||ne(e.tag)?e.tag:wh();return h.h(u,d,c)}}const P1=h.defineComponent({name:"i18n-n",props:Oe({value:{type:Number,required:!0},format:{type:[String,Object]}},Ia),setup(e,t){const n=e.i18n||Ca({useScope:"parent",__useComponent:!0});return kh(e,t,hh,(...o)=>n[vs](...o))}}),zc=P1,M1=h.defineComponent({name:"i18n-d",props:Oe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ia),setup(e,t){const n=e.i18n||Ca({useScope:"parent",__useComponent:!0});return kh(e,t,fh,(...o)=>n[bs](...o))}}),Uc=M1;function R1(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const o=n.__getInstance(t);return o!=null?o.__composer:e.global.__composer}}function F1(e){const t=s=>{const{instance:a,modifiers:l,value:c}=s;if(!a||!a.$)throw ve(J.UNEXPECTED_ERROR);const d=R1(e,a.$);process.env.NODE_ENV!=="production"&&l.preserve&&Ie(We(me.NOT_SUPPORTED_PRESERVE));const u=Bc(c);return[Reflect.apply(d.t,d,[...Hc(u)]),d]};return{created:(s,a)=>{const[l,c]=t(a);Ct&&e.global===c&&(s.__i18nWatcher=h.watch(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),s.__composer=c,s.textContent=l},unmounted:s=>{Ct&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:a})=>{if(s.__composer){const l=s.__composer,c=Bc(a);s.textContent=Reflect.apply(l.t,l,[...Hc(c)])}},getSSRProps:s=>{const[a]=t(s);return{textContent:a}}}}function Bc(e){if(R(e))return{path:e};if(j(e)){if(!("path"in e))throw ve(J.REQUIRED_VALUE,"path");return e}else throw ve(J.INVALID_VALUE)}function Hc(e){const{path:t,locale:n,args:o,choice:i,plural:r}=e,s={},a=o||{};return R(n)&&(s.locale=n),xe(i)&&(s.plural=i),xe(r)&&(s.plural=r),[t,a,s]}function V1(e,t,...n){const o=j(n[0])?n[0]:{},i=!!o.useI18nComponentName,r=Y(o.globalInstall)?o.globalInstall:!0;process.env.NODE_ENV!=="production"&&r&&i&&Ie(We(me.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Or.name})),r&&([i?"i18n":Or.name,"I18nT"].forEach(s=>e.component(s,Or)),[zc.name,"I18nN"].forEach(s=>e.component(s,zc)),[Uc.name,"I18nD"].forEach(s=>e.component(s,Uc))),e.directive("t",F1(t))}const Ar={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},z1={"vue-i18n-resource-inspector":"Search for scopes ..."},U1={"vue-i18n-timeline":16764185},xh="vue-i18n: composer properties";let xs;async function B1(e,t){return new Promise((n,o)=>{try{_s({id:"vue-devtools-plugin-vue-i18n",label:Ar["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[xh],app:e},i=>{xs=i,i.on.visitComponentTree(({componentInstance:s,treeNode:a})=>{H1(s,a,t)}),i.on.inspectComponent(({componentInstance:s,instanceData:a})=>{s.vnode.el&&s.vnode.el.__VUE_I18N__&&a&&(t.mode==="legacy"?s.vnode.el.__VUE_I18N__!==t.global.__composer&&jc(a,s.vnode.el.__VUE_I18N__):jc(a,s.vnode.el.__VUE_I18N__))}),i.addInspector({id:"vue-i18n-resource-inspector",label:Ar["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:z1["vue-i18n-resource-inspector"]}),i.on.getInspectorTree(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&q1(s,t)});const r=new Map;i.on.getInspectorState(async s=>{if(s.app===e&&s.inspectorId==="vue-i18n-resource-inspector")if(i.unhighlightElement(),X1(s,t),s.nodeId==="global"){if(!r.has(s.app)){const[a]=await i.getComponentInstances(s.app);r.set(s.app,a)}i.highlightElement(r.get(s.app))}else{const a=K1(s.nodeId,t);a&&i.highlightElement(a)}}),i.on.editInspectorState(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&J1(s,t)}),i.addTimelineLayer({id:"vue-i18n-timeline",label:Ar["vue-i18n-timeline"],color:U1["vue-i18n-timeline"]}),n(!0)})}catch(i){console.error(i),o(!1)}})}function _h(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function H1(e,t,n){const o=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==o){const i={label:`i18n (${_h(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(i)}}function jc(e,t){const n=xh;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Sa(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Sa(e){const t={};return Object.keys(e).forEach(n=>{const o=e[n];pe(o)&&"source"in o?t[n]=G1(o):On(o)&&o.loc&&o.loc.source?t[n]=o.loc.source:ne(o)?t[n]=Sa(o):t[n]=o}),t}const j1={"<":"<",">":">",'"':""","&":"&"};function W1(e){return e.replace(/[<>"&]/g,Y1)}function Y1(e){return j1[e]||e}function G1(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${W1(e.source)}")`:"(?)"}`}}}function q1(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[o,i]of t.__instances){const r=t.mode==="composition"?i:i.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${_h(o)} Scope`})}}function K1(e,t){let n=null;if(e!=="global"){for(const[o,i]of t.__instances.entries())if(i.id.toString()===e){n=o;break}}return n}function Eh(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(o=>o.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function X1(e,t){const n=Eh(e.nodeId,t);return n&&(e.state=Z1(n)),null}function Z1(e){const t={},n="Locale related info",o=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=o;const i="Locale messages info",r=[{type:i,key:"messages",editable:!1,value:Sa(e.messages.value)}];t[i]=r;{const s="Datetime formats info",a=[{type:s,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[s]=a;const l="Datetime formats info",c=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=c}return t}function So(e,t){if(xs){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),xs.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function J1(e,t){const n=Eh(e.nodeId,t);if(n){const[o]=e.path;o==="locale"&&R(e.state.value)?n.locale.value=e.state.value:o==="fallbackLocale"&&(R(e.state.value)||re(e.state.value)||ne(e.state.value))?n.fallbackLocale.value=e.state.value:o==="inheritLocale"&&Y(e.state.value)&&(n.inheritLocale=e.state.value)}}function Q1(e,t,n){return{beforeCreate(){const o=h.getCurrentInstance();if(!o)throw ve(J.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=Wc(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=ks(r);const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=Wc(e,i);else{this.$i18n=ks({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&yh(t,i,i),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,s)=>this.$i18n.te(r,s),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(o,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const o=this.$i18n;this.$el.__VUE_I18N__=o.__composer;const i=this.__v_emitter=xa();o.__enableEmitter&&o.__enableEmitter(i),i.on("*",So)}},unmounted(){const o=h.getCurrentInstance();if(!o)throw ve(J.UNEXPECTED_ERROR);const i=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",So),delete this.__v_emitter),this.$i18n&&(i.__disableEmitter&&i.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(o),delete this.$i18n}}}function Wc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[gh](t.pluralizationRules||e.pluralizationRules);const n=Bi(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(o=>e.mergeLocaleMessage(o,n[o])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(o=>e.mergeDateTimeFormat(o,t.datetimeFormats[o])),t.numberFormats&&Object.keys(t.numberFormats).forEach(o=>e.mergeNumberFormat(o,t.numberFormats[o])),e}const eT=At("global-vue-i18n");function tT(e={},t){const n=__VUE_I18N_LEGACY_API__&&Y(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,o=Y(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[s,a]=nT(e,n),l=At(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&i&&Ie(We(me.NOTICE_DROP_ALLOW_COMPOSITION));function c(f){return r.get(f)||null}function d(f,b){r.set(f,b)}function u(f){r.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(b,...T){if(process.env.NODE_ENV!=="production"&&(b.__VUE_I18N__=f),b.__VUE_I18N_SYMBOL__=l,b.provide(b.__VUE_I18N_SYMBOL__,f),j(T[0])){const p=T[0];f.__composerExtend=p.__composerExtend,f.__vueI18nExtend=p.__vueI18nExtend}let x=null;!n&&o&&(x=uT(b,f.global)),__VUE_I18N_FULL_INSTALL__&&V1(b,f,...T),__VUE_I18N_LEGACY_API__&&n&&b.mixin(Q1(a,a.__composer,f));const C=b.unmount;if(b.unmount=()=>{x&&x(),f.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await B1(b,f))throw ve(J.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const y=xa();if(n){const S=a;S.__enableEmitter&&S.__enableEmitter(y)}else{const S=a;S[An]&&S[An](y)}y.on("*",So)}},get global(){return a},dispose(){s.stop()},__instances:r,__getInstance:c,__setInstance:d,__deleteInstance:u};return f}}function Ca(e={}){const t=h.getCurrentInstance();if(t==null)throw ve(J.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ve(J.NOT_INSTALLED);const n=oT(t),o=rT(n),i=vh(t),r=iT(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw ve(J.NOT_AVAILABLE_IN_LEGACY_MODE);return cT(t,r,o,e)}if(r==="global")return yh(o,e,i),o;if(r==="parent"){let l=sT(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&Ie(We(me.NOT_FOUND_PARENT_SCOPE)),l=o),l}const s=n;let a=s.__getInstance(t);if(a==null){const l=Oe({},e);"__i18n"in i&&(l.__i18n=i.__i18n),o&&(l.__root=o),a=Ta(l),s.__composerExtend&&(a[ys]=s.__composerExtend(a)),lT(s,t,a),s.__setInstance(t,a)}return a}function nT(e,t,n){const o=h.effectScope();{const i=__VUE_I18N_LEGACY_API__&&t?o.run(()=>ks(e)):o.run(()=>Ta(e));if(i==null)throw ve(J.UNEXPECTED_ERROR);return[o,i]}}function oT(e){{const t=h.inject(e.isCE?eT:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ve(e.isCE?J.NOT_INSTALLED_WITH_PROVIDE:J.UNEXPECTED_ERROR);return t}}function iT(e,t){return Vi(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function rT(e){return e.mode==="composition"?e.global:e.global.__composer}function sT(e,t,n=!1){let o=null;const i=t.root;let r=aT(t,n);for(;r!=null;){const s=e;if(e.mode==="composition")o=s.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=s.__getInstance(r);a!=null&&(o=a.__composer,n&&o&&!o[bh]&&(o=null))}if(o!=null||i===r)break;r=r.parent}return o}function aT(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function lT(e,t,n){let o=null;h.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,o=xa();const i=n;i[An]&&i[An](o),o.on("*",So)}},t),h.onUnmounted(()=>{const i=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(o&&o.off("*",So),i[Io]&&i[Io](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=i[ys];r&&(r(),delete i[ys])},t)}function cT(e,t,n,o={}){const i=t==="local",r=h.shallowRef(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ve(J.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=Y(o.inheritLocale)?o.inheritLocale:!R(o.locale),a=h.ref(!i||s?n.locale.value:R(o.locale)?o.locale:Po),l=h.ref(!i||s?n.fallbackLocale.value:R(o.fallbackLocale)||re(o.fallbackLocale)||j(o.fallbackLocale)||o.fallbackLocale===!1?o.fallbackLocale:a.value),c=h.ref(Bi(a.value,o)),d=h.ref(j(o.datetimeFormats)?o.datetimeFormats:{[a.value]:{}}),u=h.ref(j(o.numberFormats)?o.numberFormats:{[a.value]:{}}),f=i?n.missingWarn:Y(o.missingWarn)||on(o.missingWarn)?o.missingWarn:!0,b=i?n.fallbackWarn:Y(o.fallbackWarn)||on(o.fallbackWarn)?o.fallbackWarn:!0,T=i?n.fallbackRoot:Y(o.fallbackRoot)?o.fallbackRoot:!0,x=!!o.fallbackFormat,C=pe(o.missing)?o.missing:null,p=pe(o.postTranslation)?o.postTranslation:null,y=i?n.warnHtmlMessage:Y(o.warnHtmlMessage)?o.warnHtmlMessage:!0,S=!!o.escapeParameter,k=i?n.modifiers:j(o.modifiers)?o.modifiers:{},D=o.pluralRules||i&&n.pluralRules;function v(){return[a.value,l.value,c.value,d.value,u.value]}const w=h.computed({get:()=>r.value?r.value.locale.value:a.value,set:m=>{r.value&&(r.value.locale.value=m),a.value=m}}),P=h.computed({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:m=>{r.value&&(r.value.fallbackLocale.value=m),l.value=m}}),A=h.computed(()=>r.value?r.value.messages.value:c.value),N=h.computed(()=>d.value),L=h.computed(()=>u.value);function U(){return r.value?r.value.getPostTranslationHandler():p}function oe(m){r.value&&r.value.setPostTranslationHandler(m)}function ye(){return r.value?r.value.getMissingHandler():C}function Ue(m){r.value&&r.value.setMissingHandler(m)}function K(m){return v(),m()}function X(...m){return r.value?K(()=>Reflect.apply(r.value.t,null,[...m])):K(()=>"")}function rt(...m){return r.value?Reflect.apply(r.value.rt,null,[...m]):""}function De(...m){return r.value?K(()=>Reflect.apply(r.value.d,null,[...m])):K(()=>"")}function qe(...m){return r.value?K(()=>Reflect.apply(r.value.n,null,[...m])):K(()=>"")}function st(m){return r.value?r.value.tm(m):{}}function wt(m,I){return r.value?r.value.te(m,I):!1}function _e(m){return r.value?r.value.getLocaleMessage(m):{}}function Ke(m,I){r.value&&(r.value.setLocaleMessage(m,I),c.value[m]=I)}function Ee(m,I){r.value&&r.value.mergeLocaleMessage(m,I)}function Ht(m){return r.value?r.value.getDateTimeFormat(m):{}}function jt(m,I){r.value&&(r.value.setDateTimeFormat(m,I),d.value[m]=I)}function Dt(m,I){r.value&&r.value.mergeDateTimeFormat(m,I)}function Nt(m){return r.value?r.value.getNumberFormat(m):{}}function kt(m,I){r.value&&(r.value.setNumberFormat(m,I),u.value[m]=I)}function $t(m,I){r.value&&r.value.mergeNumberFormat(m,I)}const xt={get id(){return r.value?r.value.id:-1},locale:w,fallbackLocale:P,messages:A,datetimeFormats:N,numberFormats:L,get inheritLocale(){return r.value?r.value.inheritLocale:s},set inheritLocale(m){r.value&&(r.value.inheritLocale=m)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(c.value)},get modifiers(){return r.value?r.value.modifiers:k},get pluralRules(){return r.value?r.value.pluralRules:D},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:f},set missingWarn(m){r.value&&(r.value.missingWarn=m)},get fallbackWarn(){return r.value?r.value.fallbackWarn:b},set fallbackWarn(m){r.value&&(r.value.missingWarn=m)},get fallbackRoot(){return r.value?r.value.fallbackRoot:T},set fallbackRoot(m){r.value&&(r.value.fallbackRoot=m)},get fallbackFormat(){return r.value?r.value.fallbackFormat:x},set fallbackFormat(m){r.value&&(r.value.fallbackFormat=m)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:y},set warnHtmlMessage(m){r.value&&(r.value.warnHtmlMessage=m)},get escapeParameter(){return r.value?r.value.escapeParameter:S},set escapeParameter(m){r.value&&(r.value.escapeParameter=m)},t:X,getPostTranslationHandler:U,setPostTranslationHandler:oe,getMissingHandler:ye,setMissingHandler:Ue,rt,d:De,n:qe,tm:st,te:wt,getLocaleMessage:_e,setLocaleMessage:Ke,mergeLocaleMessage:Ee,getDateTimeFormat:Ht,setDateTimeFormat:jt,mergeDateTimeFormat:Dt,getNumberFormat:Nt,setNumberFormat:kt,mergeNumberFormat:$t};function g(m){m.locale.value=a.value,m.fallbackLocale.value=l.value,Object.keys(c.value).forEach(I=>{m.mergeLocaleMessage(I,c.value[I])}),Object.keys(d.value).forEach(I=>{m.mergeDateTimeFormat(I,d.value[I])}),Object.keys(u.value).forEach(I=>{m.mergeNumberFormat(I,u.value[I])}),m.escapeParameter=S,m.fallbackFormat=x,m.fallbackRoot=T,m.fallbackWarn=b,m.missingWarn=f,m.warnHtmlMessage=y}return h.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ve(J.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const m=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=m.locale.value,l.value=m.fallbackLocale.value,c.value=m.messages.value,d.value=m.datetimeFormats.value,u.value=m.numberFormats.value):i&&g(m)}),xt}const dT=["locale","fallbackLocale","availableLocales"],Yc=["t","rt","d","n","tm","te"];function uT(e,t){const n=Object.create(null);return dT.forEach(i=>{const r=Object.getOwnPropertyDescriptor(t,i);if(!r)throw ve(J.UNEXPECTED_ERROR);const s=h.isRef(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,i,s)}),e.config.globalProperties.$i18n=n,Yc.forEach(i=>{const r=Object.getOwnPropertyDescriptor(t,i);if(!r||!r.value)throw ve(J.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,r)}),()=>{delete e.config.globalProperties.$i18n,Yc.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}S1();__INTLIFY_JIT_COMPILATION__?Ec(w1):Ec(y1);u1(YE);f1(Jf);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Vt();e.__INTLIFY__=!0,t1(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Th=km();Th.use(Z_);exports.i18n=void 0;exports.translate=void 0;let Fe={},Oa={};exports.appContext={};let Co={},Tt={},fT={install(e,t){exports.appContext=e,exports.i18n=tT({legacy:!1,locale:process.env.VUE_APP_I18N_LOCALE||"en",fallbackLocale:process.env.VUE_APP_I18N_FALLBACK_LOCALE||"en",messages:t.localeMessages}),e.use(Th),e.use(exports.i18n),e.component("LanguageSwitcher",Sw),e.component("Login",Gf),e.component("OmsInstanceNavigator",nf),e.component("ProductIdentifier",ef),e.component("ShopifyImg",of),Fe.login=t.login,Fe.logout=t.logout,Fe.loader=t.loader,Fe.appLoginUrl=t.appLoginUrl,Oa.defaultImgUrl=t.defaultImgUrl,Co.getProductIdentificationPref=t.getProductIdentificationPref,Co.setProductIdentificationPref=t.setProductIdentificationPref,Tt.addNotification=t.addNotification,Tt.appFirebaseConfig=t.appFirebaseConfig,Tt.appFirebaseVapidKey=t.appFirebaseVapidKey,Tt.storeClientRegistrationToken=t.storeClientRegistrationToken,Fe.getConfig=t.getConfig,Fe.initialise=t.initialise,ia().setLocale(exports.i18n.global.locale),exports.translate=exports.i18n.global.t}};exports.Login=Gf;exports.OmsInstanceNavigator=nf;exports.ProductIdentifier=ef;exports.ShopifyImg=of;exports.dxpComponents=fT;exports.goToOms=tf;exports.initialiseFirebaseApp=Yf;exports.loginContext=Fe;exports.noitificationContext=Tt;exports.productIdentificationContext=Co;exports.shopifyImgContext=Oa;exports.useAuthStore=$s;exports.useProductIdentificationStore=rd;exports.useUserStore=ia;
|
|
1078
|
+
*/const QT="9.4.1";function e8(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Dn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Dn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Dn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Dn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Dn().__INTLIFY_PROD_DEVTOOLS__=!1)}const Dg=yt.__EXTEND_POINT__,zn=Nc(Dg),Ve={FALLBACK_TO_ROOT:Dg,NOT_SUPPORTED_PRESERVE:zn(),NOT_SUPPORTED_FORMATTER:zn(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:zn(),NOT_SUPPORTED_GET_CHOICE_INDEX:zn(),COMPONENT_NAME_LEGACY_COMPATIBLE:zn(),NOT_FOUND_PARENT_SCOPE:zn(),IGNORE_OBJ_FLATTEN:zn(),NOTICE_DROP_ALLOW_COMPOSITION:zn()},t8={[Ve.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ve.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Ve.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Ve.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Ve.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Ve.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Ve.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Ve.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Ve.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function Nt(t,...e){return Oc(t8[t],...e)}const Ng=jt.__EXTEND_POINT__,kt=Nc(Ng),ce={UNEXPECTED_RETURN_TYPE:Ng,INVALID_ARGUMENT:kt(),MUST_BE_CALL_SETUP_TOP:kt(),NOT_INSTALLED:kt(),NOT_AVAILABLE_IN_LEGACY_MODE:kt(),REQUIRED_VALUE:kt(),INVALID_VALUE:kt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:kt(),NOT_INSTALLED_WITH_PROVIDE:kt(),UNEXPECTED_ERROR:kt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:kt(),BRIDGE_SUPPORT_VUE_2_ONLY:kt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:kt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:kt(),__EXTEND_POINT__:kt()};function Ge(t,...e){return hi(t,null,process.env.NODE_ENV!=="production"?{messages:n8,args:e}:void 0)}const n8={[ce.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ce.INVALID_ARGUMENT]:"Invalid argument",[ce.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ce.NOT_INSTALLED]:"Need to install with `app.use` function",[ce.UNEXPECTED_ERROR]:"Unexpected error",[ce.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[ce.REQUIRED_VALUE]:"Required in value: {0}",[ce.INVALID_VALUE]:"Invalid value",[ce.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ce.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ce.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ce.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[ce.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[ce.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Al=_n("__translateVNode"),kl=_n("__datetimeParts"),Cl=_n("__numberParts"),Mr=_n("__enableEmitter"),Wi=_n("__disableEmitter"),Pg=_n("__setPluralRules"),Rg=_n("__injectWithOption"),Sl=_n("__dispose");function Il(t){if(!ge(t))return t;for(const e in t)if(Dc(t,e))if(!e.includes("."))ge(t[e])&&Il(t[e]);else{const n=e.split("."),r=n.length-1;let i=t,o=!1;for(let a=0;a<r;a++){if(n[a]in i||(i[n[a]]={}),!ge(i[n[a]])){process.env.NODE_ENV!=="production"&&rt(Nt(Ve.IGNORE_OBJ_FLATTEN,{key:n[a]})),o=!0;break}i=i[n[a]]}o||(i[n[r]]=t[e],delete t[e]),ge(i[n[r]])&&Il(i[n[r]])}return t}function Da(t,e){const{messages:n,__i18n:r,messageResolver:i,flatJson:o}=e,a=ne(n)?n:Ie(r)?{}:{[t]:{}};if(Ie(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:c}=s;l?(a[l]=a[l]||{},Ri(c,a[l])):Ri(c,a)}else U(s)&&Ri(JSON.parse(s),a)}),i==null&&o)for(const s in a)Dc(a,s)&&Il(a[s]);return a}const Co=t=>!ge(t)||Ie(t);function Ri(t,e){if(Co(t)||Co(e))throw Ge(ce.INVALID_VALUE);for(const n in t)Dc(t,n)&&(Co(t[n])||Co(e[n])?e[n]=t[n]:Ri(t[n],e[n]))}function Mg(t){return t.type}function Lg(t,e,n){let r=ge(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=Da(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{t.mergeLocaleMessage(o,r[o])});{if(ge(e.datetimeFormats)){const o=Object.keys(e.datetimeFormats);o.length&&o.forEach(a=>{t.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(ge(e.numberFormats)){const o=Object.keys(e.numberFormats);o.length&&o.forEach(a=>{t.mergeNumberFormat(a,e.numberFormats[a])})}}}function Cf(t){return x.createVNode(x.Text,null,t,0)}const Sf="__INTLIFY_META__";let If=0;function Tf(t){return(e,n,r,i)=>t(n,r,x.getCurrentInstance()||void 0,i)}const r8=()=>{const t=x.getCurrentInstance();let e=null;return t&&(e=Mg(t)[Sf])?{[Sf]:e}:null};function Lc(t={},e){const{__root:n,__injectWithOption:r}=t,i=n===void 0;let o=oe(t.inheritLocale)?t.inheritLocale:!0;const a=x.ref(n&&o?n.locale.value:U(t.locale)?t.locale:no),s=x.ref(n&&o?n.fallbackLocale.value:U(t.fallbackLocale)||Ie(t.fallbackLocale)||ne(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),l=x.ref(Da(a.value,t)),c=x.ref(ne(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),u=x.ref(ne(t.numberFormats)?t.numberFormats:{[a.value]:{}});let d=n?n.missingWarn:oe(t.missingWarn)||rr(t.missingWarn)?t.missingWarn:!0,f=n?n.fallbackWarn:oe(t.fallbackWarn)||rr(t.fallbackWarn)?t.fallbackWarn:!0,h=n?n.fallbackRoot:oe(t.fallbackRoot)?t.fallbackRoot:!0,p=!!t.fallbackFormat,g=Ue(t.missing)?t.missing:null,b=Ue(t.missing)?Tf(t.missing):null,m=Ue(t.postTranslation)?t.postTranslation:null,v=n?n.warnHtmlMessage:oe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,w=!!t.escapeParameter;const y=n?n.modifiers:ne(t.modifiers)?t.modifiers:{};let C=t.pluralRules||n&&n.pluralRules,E;E=(()=>{i&&mf(null);const F={version:QT,locale:a.value,fallbackLocale:s.value,messages:l.value,modifiers:y,pluralRules:C,missing:b===null?void 0:b,missingWarn:d,fallbackWarn:f,fallbackFormat:p,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:v,escapeParameter:w,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};F.datetimeFormats=c.value,F.numberFormats=u.value,F.__datetimeFormatters=ne(E)?E.__datetimeFormatters:void 0,F.__numberFormatters=ne(E)?E.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(F.__v_emitter=ne(E)?E.__v_emitter:void 0);const $=HT(F);return i&&mf($),$})(),yi(E,a.value,s.value);function N(){return[a.value,s.value,l.value,c.value,u.value]}const D=x.computed({get:()=>a.value,set:F=>{a.value=F,E.locale=a.value}}),O=x.computed({get:()=>s.value,set:F=>{s.value=F,E.fallbackLocale=s.value,yi(E,a.value,F)}}),L=x.computed(()=>l.value),B=x.computed(()=>c.value),G=x.computed(()=>u.value);function ae(){return Ue(m)?m:null}function se(F){m=F,E.postTranslation=F}function Z(){return g}function K(F){F!==null&&(b=Tf(F)),g=F,E.missing=b}function Te(F,$){return F!=="translate"||!$.resolvedMessage}const Re=(F,$,ht,ot,Cn,qt)=>{N();let Kt;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&gf(r8()),i||(E.fallbackContext=n?UT():void 0),Kt=F(E)}finally{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&gf(null),i||(E.fallbackContext=void 0)}if(Qe(Kt)&&Kt===Ta){const[Xe,hn]=$();if(process.env.NODE_ENV!=="production"&&n&&U(Xe)&&Te(ht,hn)&&(h&&(Oa(f,Xe)||wg(d,Xe))&&rt(Nt(Ve.FALLBACK_TO_ROOT,{key:Xe,type:ht})),process.env.NODE_ENV!=="production")){const{__v_emitter:Sn}=E;Sn&&h&&Sn.emit("fallback",{type:ht,key:Xe,to:"global",groupId:`${ht}:${Xe}`})}return n&&h?ot(n):Cn(Xe)}else{if(qt(Kt))return Kt;throw Ge(ce.UNEXPECTED_RETURN_TYPE)}};function Me(...F){return Re($=>Reflect.apply(yf,null,[$,...F]),()=>wl(...F),"translate",$=>Reflect.apply($.t,$,[...F]),$=>$,$=>U($))}function je(...F){const[$,ht,ot]=F;if(ot&&!ge(ot))throw Ge(ce.INVALID_ARGUMENT);return Me($,ht,dt({resolvedMessage:!0},ot||{}))}function Et(...F){return Re($=>Reflect.apply(_f,null,[$,...F]),()=>_l(...F),"datetime format",$=>Reflect.apply($.d,$,[...F]),()=>ia,$=>U($))}function Ye(...F){return Re($=>Reflect.apply(Af,null,[$,...F]),()=>El(...F),"number format",$=>Reflect.apply($.n,$,[...F]),()=>ia,$=>U($))}function Lt(F){return F.map($=>U($)||Qe($)||oe($)?Cf(String($)):$)}const Ln={normalize:Lt,interpolate:F=>F,type:"vnode"};function Fn(...F){return Re($=>{let ht;const ot=$;try{ot.processor=Ln,ht=Reflect.apply(yf,null,[ot,...F])}finally{ot.processor=null}return ht},()=>wl(...F),"translate",$=>$[Al](...F),$=>[Cf($)],$=>Ie($))}function En(...F){return Re($=>Reflect.apply(Af,null,[$,...F]),()=>El(...F),"number format",$=>$[Cl](...F),()=>[],$=>U($)||Ie($))}function An(...F){return Re($=>Reflect.apply(_f,null,[$,...F]),()=>_l(...F),"datetime format",$=>$[kl](...F),()=>[],$=>U($)||Ie($))}function dn(F){C=F,E.pluralRules=C}function kn(F,$){const ht=U($)?$:a.value,ot=A(ht);return E.messageResolver(ot,F)!==null}function fn(F){let $=null;const ht=gg(E,s.value,a.value);for(let ot=0;ot<ht.length;ot++){const Cn=l.value[ht[ot]]||{},qt=E.messageResolver(Cn,F);if(qt!=null){$=qt;break}}return $}function S(F){const $=fn(F);return $??(n?n.tm(F)||{}:{})}function A(F){return l.value[F]||{}}function R(F,$){l.value[F]=$,E.messages=l.value}function W(F,$){l.value[F]=l.value[F]||{},Ri($,l.value[F]),E.messages=l.value}function ee(F){return c.value[F]||{}}function de(F,$){c.value[F]=$,E.datetimeFormats=c.value,Ef(E,F,$)}function Ft(F,$){c.value[F]=dt(c.value[F]||{},$),E.datetimeFormats=c.value,Ef(E,F,$)}function Xt(F){return u.value[F]||{}}function Na(F,$){u.value[F]=$,E.numberFormats=u.value,kf(E,F,$)}function Pa(F,$){u.value[F]=dt(u.value[F]||{},$),E.numberFormats=u.value,kf(E,F,$)}If++,n&&wn&&(x.watch(n.locale,F=>{o&&(a.value=F,E.locale=F,yi(E,a.value,s.value))}),x.watch(n.fallbackLocale,F=>{o&&(s.value=F,E.fallbackLocale=F,yi(E,a.value,s.value))}));const Be={id:If,locale:D,fallbackLocale:O,get inheritLocale(){return o},set inheritLocale(F){o=F,F&&n&&(a.value=n.locale.value,s.value=n.fallbackLocale.value,yi(E,a.value,s.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:L,get modifiers(){return y},get pluralRules(){return C||{}},get isGlobal(){return i},get missingWarn(){return d},set missingWarn(F){d=F,E.missingWarn=d},get fallbackWarn(){return f},set fallbackWarn(F){f=F,E.fallbackWarn=f},get fallbackRoot(){return h},set fallbackRoot(F){h=F},get fallbackFormat(){return p},set fallbackFormat(F){p=F,E.fallbackFormat=p},get warnHtmlMessage(){return v},set warnHtmlMessage(F){v=F,E.warnHtmlMessage=F},get escapeParameter(){return w},set escapeParameter(F){w=F,E.escapeParameter=F},t:Me,getLocaleMessage:A,setLocaleMessage:R,mergeLocaleMessage:W,getPostTranslationHandler:ae,setPostTranslationHandler:se,getMissingHandler:Z,setMissingHandler:K,[Pg]:dn};return Be.datetimeFormats=B,Be.numberFormats=G,Be.rt=je,Be.te=kn,Be.tm=S,Be.d=Et,Be.n=Ye,Be.getDateTimeFormat=ee,Be.setDateTimeFormat=de,Be.mergeDateTimeFormat=Ft,Be.getNumberFormat=Xt,Be.setNumberFormat=Na,Be.mergeNumberFormat=Pa,Be[Rg]=r,Be[Al]=Fn,Be[kl]=An,Be[Cl]=En,process.env.NODE_ENV!=="production"&&(Be[Mr]=F=>{E.__v_emitter=F},Be[Wi]=()=>{E.__v_emitter=void 0}),Be}function i8(t){const e=U(t.locale)?t.locale:no,n=U(t.fallbackLocale)||Ie(t.fallbackLocale)||ne(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=Ue(t.missing)?t.missing:void 0,i=oe(t.silentTranslationWarn)||rr(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,o=oe(t.silentFallbackWarn)||rr(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,a=oe(t.fallbackRoot)?t.fallbackRoot:!0,s=!!t.formatFallbackMessages,l=ne(t.modifiers)?t.modifiers:{},c=t.pluralizationRules,u=Ue(t.postTranslation)?t.postTranslation:void 0,d=U(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,f=!!t.escapeParameterHtml,h=oe(t.sync)?t.sync:!0;process.env.NODE_ENV!=="production"&&t.formatter&&rt(Nt(Ve.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&t.preserveDirectiveContent&&rt(Nt(Ve.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let p=t.messages;if(ne(t.sharedMessages)){const C=t.sharedMessages;p=Object.keys(C).reduce((k,N)=>{const D=k[N]||(k[N]={});return dt(D,C[N]),k},p||{})}const{__i18n:g,__root:b,__injectWithOption:m}=t,v=t.datetimeFormats,w=t.numberFormats,y=t.flatJson;return{locale:e,fallbackLocale:n,messages:p,flatJson:y,datetimeFormats:v,numberFormats:w,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:t.messageResolver,inheritLocale:h,__i18n:g,__root:b,__injectWithOption:m}}function Tl(t={},e){{const n=Lc(i8(t)),{__extender:r}=t,i={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&rt(Nt(Ve.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(o){process.env.NODE_ENV!=="production"&&rt(Nt(Ve.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return oe(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=oe(o)?!o:o},get silentFallbackWarn(){return oe(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=oe(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&rt(Nt(Ve.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(o){process.env.NODE_ENV!=="production"&&rt(Nt(Ve.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[a,s,l]=o,c={};let u=null,d=null;if(!U(a))throw Ge(ce.INVALID_ARGUMENT);const f=a;return U(s)?c.locale=s:Ie(s)?u=s:ne(s)&&(d=s),Ie(l)?u=l:ne(l)&&(d=l),Reflect.apply(n.t,n,[f,u||d||{},c])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[a,s,l]=o,c={plural:1};let u=null,d=null;if(!U(a))throw Ge(ce.INVALID_ARGUMENT);const f=a;return U(s)?c.locale=s:Qe(s)?c.plural=s:Ie(s)?u=s:ne(s)&&(d=s),U(l)?c.locale=l:Ie(l)?u=l:ne(l)&&(d=l),Reflect.apply(n.t,n,[f,u||d||{},c])},te(o,a){return n.te(o,a)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,a){n.setLocaleMessage(o,a)},mergeLocaleMessage(o,a){n.mergeLocaleMessage(o,a)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,a){n.setDateTimeFormat(o,a)},mergeDateTimeFormat(o,a){n.mergeDateTimeFormat(o,a)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,a){n.setNumberFormat(o,a)},mergeNumberFormat(o,a){n.mergeNumberFormat(o,a)},getChoiceIndex(o,a){return process.env.NODE_ENV!=="production"&&rt(Nt(Ve.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return i.__extender=r,process.env.NODE_ENV!=="production"&&(i.__enableEmitter=o=>{const a=n;a[Mr]&&a[Mr](o)},i.__disableEmitter=()=>{const o=n;o[Wi]&&o[Wi]()}),i}}const Fc={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function o8({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,i)=>[...r,...i.type===x.Fragment?i.children:[i]],[]):e.reduce((n,r)=>{const i=t[r];return i&&(n[r]=i()),n},{})}function Fg(t){return x.Fragment}const a8=x.defineComponent({name:"i18n-t",props:dt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Qe(t)||!isNaN(t)}},Fc),setup(t,e){const{slots:n,attrs:r}=e,i=t.i18n||$c({useScope:t.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(d=>d!=="_"),a={};t.locale&&(a.locale=t.locale),t.plural!==void 0&&(a.plural=U(t.plural)?+t.plural:t.plural);const s=o8(e,o),l=i[Al](t.keypath,s,a),c=dt({},r),u=U(t.tag)||ge(t.tag)?t.tag:Fg();return x.h(u,c,l)}}}),As=a8;function s8(t){return Ie(t)&&!U(t[0])}function Bg(t,e,n,r){const{slots:i,attrs:o}=e;return()=>{const a={part:!0};let s={};t.locale&&(a.locale=t.locale),U(t.format)?a.key=t.format:ge(t.format)&&(U(t.format.key)&&(a.key=t.format.key),s=Object.keys(t.format).reduce((f,h)=>n.includes(h)?dt({},f,{[h]:t.format[h]}):f,{}));const l=r(t.value,a,s);let c=[a.key];Ie(l)?c=l.map((f,h)=>{const p=i[f.type],g=p?p({[f.type]:f.value,index:h,parts:l}):[f.value];return s8(g)&&(g[0].key=`${f.type}-${h}`),g}):U(l)&&(c=[l]);const u=dt({},o),d=U(t.tag)||ge(t.tag)?t.tag:Fg();return x.h(d,u,c)}}const l8=x.defineComponent({name:"i18n-n",props:dt({value:{type:Number,required:!0},format:{type:[String,Object]}},Fc),setup(t,e){const n=t.i18n||$c({useScope:"parent",__useComponent:!0});return Bg(t,e,Og,(...r)=>n[Cl](...r))}}),Of=l8,c8=x.defineComponent({name:"i18n-d",props:dt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Fc),setup(t,e){const n=t.i18n||$c({useScope:"parent",__useComponent:!0});return Bg(t,e,Tg,(...r)=>n[kl](...r))}}),Df=c8;function u8(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function d8(t){const e=a=>{const{instance:s,modifiers:l,value:c}=a;if(!s||!s.$)throw Ge(ce.UNEXPECTED_ERROR);const u=u8(t,s.$);process.env.NODE_ENV!=="production"&&l.preserve&&rt(Nt(Ve.NOT_SUPPORTED_PRESERVE));const d=Nf(c);return[Reflect.apply(u.t,u,[...Pf(d)]),u]};return{created:(a,s)=>{const[l,c]=e(s);wn&&t.global===c&&(a.__i18nWatcher=x.watch(c.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=c,a.textContent=l},unmounted:a=>{wn&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,c=Nf(s);a.textContent=Reflect.apply(l.t,l,[...Pf(c)])}},getSSRProps:a=>{const[s]=e(a);return{textContent:s}}}}function Nf(t){if(U(t))return{path:t};if(ne(t)){if(!("path"in t))throw Ge(ce.REQUIRED_VALUE,"path");return t}else throw Ge(ce.INVALID_VALUE)}function Pf(t){const{path:e,locale:n,args:r,choice:i,plural:o}=t,a={},s=r||{};return U(n)&&(a.locale=n),Qe(i)&&(a.plural=i),Qe(o)&&(a.plural=o),[e,s,a]}function f8(t,e,...n){const r=ne(n[0])?n[0]:{},i=!!r.useI18nComponentName,o=oe(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&o&&i&&rt(Nt(Ve.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:As.name})),o&&([i?"i18n":As.name,"I18nT"].forEach(a=>t.component(a,As)),[Of.name,"I18nN"].forEach(a=>t.component(a,Of)),[Df.name,"I18nD"].forEach(a=>t.component(a,Df))),t.directive("t",d8(e))}const ks={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},h8={"vue-i18n-resource-inspector":"Search for scopes ..."},p8={"vue-i18n-timeline":16764185},$g="vue-i18n: composer properties";let Ol;async function g8(t,e){return new Promise((n,r)=>{try{Dl({id:"vue-devtools-plugin-vue-i18n",label:ks["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[$g],app:t},i=>{Ol=i,i.on.visitComponentTree(({componentInstance:a,treeNode:s})=>{m8(a,s,e)}),i.on.inspectComponent(({componentInstance:a,instanceData:s})=>{a.vnode.el&&a.vnode.el.__VUE_I18N__&&s&&(e.mode==="legacy"?a.vnode.el.__VUE_I18N__!==e.global.__composer&&Rf(s,a.vnode.el.__VUE_I18N__):Rf(s,a.vnode.el.__VUE_I18N__))}),i.addInspector({id:"vue-i18n-resource-inspector",label:ks["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:h8["vue-i18n-resource-inspector"]}),i.on.getInspectorTree(a=>{a.app===t&&a.inspectorId==="vue-i18n-resource-inspector"&&w8(a,e)});const o=new Map;i.on.getInspectorState(async a=>{if(a.app===t&&a.inspectorId==="vue-i18n-resource-inspector")if(i.unhighlightElement(),E8(a,e),a.nodeId==="global"){if(!o.has(a.app)){const[s]=await i.getComponentInstances(a.app);o.set(a.app,s)}i.highlightElement(o.get(a.app))}else{const s=_8(a.nodeId,e);s&&i.highlightElement(s)}}),i.on.editInspectorState(a=>{a.app===t&&a.inspectorId==="vue-i18n-resource-inspector"&&k8(a,e)}),i.addTimelineLayer({id:"vue-i18n-timeline",label:ks["vue-i18n-timeline"],color:p8["vue-i18n-timeline"]}),n(!0)})}catch(i){console.error(i),r(!1)}})}function Vg(t){return t.type.name||t.type.displayName||t.type.__file||"Anonymous"}function m8(t,e,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(t&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&t.vnode.el.__VUE_I18N__!==r){const i={label:`i18n (${Vg(t)} Scope)`,textColor:0,backgroundColor:16764185};e.tags.push(i)}}function Rf(t,e){const n=$g;t.state.push({type:n,key:"locale",editable:!0,value:e.locale.value}),t.state.push({type:n,key:"availableLocales",editable:!1,value:e.availableLocales}),t.state.push({type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value}),t.state.push({type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}),t.state.push({type:n,key:"messages",editable:!1,value:Bc(e.messages.value)}),t.state.push({type:n,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}),t.state.push({type:n,key:"numberFormats",editable:!1,value:e.numberFormats.value})}function Bc(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];Ue(r)&&"source"in r?e[n]=y8(r):Rr(r)&&r.loc&&r.loc.source?e[n]=r.loc.source:ge(r)?e[n]=Bc(r):e[n]=r}),e}const v8={"<":"<",">":">",'"':""","&":"&"};function b8(t){return t.replace(/[<>"&]/g,x8)}function x8(t){return v8[t]||t}function y8(t){return{_custom:{type:"function",display:`<span>ƒ</span> ${t.source?`("${b8(t.source)}")`:"(?)"}`}}}function w8(t,e){t.rootNodes.push({id:"global",label:"Global Scope"});const n=e.mode==="composition"?e.global:e.global.__composer;for(const[r,i]of e.__instances){const o=e.mode==="composition"?i:i.__composer;n!==o&&t.rootNodes.push({id:o.id.toString(),label:`${Vg(r)} Scope`})}}function _8(t,e){let n=null;if(t!=="global"){for(const[r,i]of e.__instances.entries())if(i.id.toString()===t){n=r;break}}return n}function Ug(t,e){if(t==="global")return e.mode==="composition"?e.global:e.global.__composer;{const n=Array.from(e.__instances.values()).find(r=>r.id.toString()===t);return n?e.mode==="composition"?n:n.__composer:null}}function E8(t,e){const n=Ug(t.nodeId,e);return n&&(t.state=A8(n)),null}function A8(t){const e={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:t.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:t.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}];e[n]=r;const i="Locale messages info",o=[{type:i,key:"messages",editable:!1,value:Bc(t.messages.value)}];e[i]=o;{const a="Datetime formats info",s=[{type:a,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}];e[a]=s;const l="Datetime formats info",c=[{type:l,key:"numberFormats",editable:!1,value:t.numberFormats.value}];e[l]=c}return e}function Gi(t,e){if(Ol){let n;e&&"groupId"in e&&(n=e.groupId,delete e.groupId),Ol.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:t,groupId:n,time:Date.now(),meta:{},data:e||{},logType:t==="compile-error"?"error":t==="fallback"||t==="missing"?"warning":"default"}})}}function k8(t,e){const n=Ug(t.nodeId,e);if(n){const[r]=t.path;r==="locale"&&U(t.state.value)?n.locale.value=t.state.value:r==="fallbackLocale"&&(U(t.state.value)||Ie(t.state.value)||ge(t.state.value))?n.fallbackLocale.value=t.state.value:r==="inheritLocale"&&oe(t.state.value)&&(n.inheritLocale=t.state.value)}}function C8(t,e,n){return{beforeCreate(){const r=x.getCurrentInstance();if(!r)throw Ge(ce.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const o=i.i18n;if(i.__i18n&&(o.__i18n=i.__i18n),o.__root=e,this===this.$root)this.$i18n=Mf(t,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=Tl(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=Mf(t,i);else{this.$i18n=Tl({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:e});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=t;i.__i18nGlobal&&Lg(e,i,i),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,a)=>this.$i18n.te(o,a),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const i=this.__v_emitter=Pc();r.__enableEmitter&&r.__enableEmitter(i),i.on("*",Gi)}},unmounted(){const r=x.getCurrentInstance();if(!r)throw Ge(ce.UNEXPECTED_ERROR);const i=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Gi),delete this.__v_emitter),this.$i18n&&(i.__disableEmitter&&i.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function Mf(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[Pg](e.pluralizationRules||t.pluralizationRules);const n=Da(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(n).forEach(r=>t.mergeLocaleMessage(r,n[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>t.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>t.mergeNumberFormat(r,e.numberFormats[r])),t}const S8=_n("global-vue-i18n");function I8(t={},e){const n=__VUE_I18N_LEGACY_API__&&oe(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,r=oe(t.globalInjection)?t.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!t.allowComposition:!0,o=new Map,[a,s]=T8(t,n),l=_n(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&i&&rt(Nt(Ve.NOTICE_DROP_ALLOW_COMPOSITION));function c(f){return o.get(f)||null}function u(f,h){o.set(f,h)}function d(f){o.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(h,...p){if(process.env.NODE_ENV!=="production"&&(h.__VUE_I18N__=f),h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,f),ne(p[0])){const m=p[0];f.__composerExtend=m.__composerExtend,f.__vueI18nExtend=m.__vueI18nExtend}let g=null;!n&&r&&(g=B8(h,f.global)),__VUE_I18N_FULL_INSTALL__&&f8(h,f,...p),__VUE_I18N_LEGACY_API__&&n&&h.mixin(C8(s,s.__composer,f));const b=h.unmount;if(h.unmount=()=>{g&&g(),f.dispose(),b()},process.env.NODE_ENV!=="production"){if(!await g8(h,f))throw Ge(ce.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const v=Pc();if(n){const w=s;w.__enableEmitter&&w.__enableEmitter(v)}else{const w=s;w[Mr]&&w[Mr](v)}v.on("*",Gi)}},get global(){return s},dispose(){a.stop()},__instances:o,__getInstance:c,__setInstance:u,__deleteInstance:d};return f}}function $c(t={}){const e=x.getCurrentInstance();if(e==null)throw Ge(ce.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Ge(ce.NOT_INSTALLED);const n=O8(e),r=N8(n),i=Mg(e),o=D8(t,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw Ge(ce.NOT_AVAILABLE_IN_LEGACY_MODE);return L8(e,o,r,t)}if(o==="global")return Lg(r,t,i),r;if(o==="parent"){let l=P8(n,e,t.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&rt(Nt(Ve.NOT_FOUND_PARENT_SCOPE)),l=r),l}const a=n;let s=a.__getInstance(e);if(s==null){const l=dt({},t);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=Lc(l),a.__composerExtend&&(s[Sl]=a.__composerExtend(s)),M8(a,e,s),a.__setInstance(e,s)}return s}function T8(t,e,n){const r=x.effectScope();{const i=__VUE_I18N_LEGACY_API__&&e?r.run(()=>Tl(t)):r.run(()=>Lc(t));if(i==null)throw Ge(ce.UNEXPECTED_ERROR);return[r,i]}}function O8(t){{const e=x.inject(t.isCE?S8:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Ge(t.isCE?ce.NOT_INSTALLED_WITH_PROVIDE:ce.UNEXPECTED_ERROR);return e}}function D8(t,e){return Ia(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function N8(t){return t.mode==="composition"?t.global:t.global.__composer}function P8(t,e,n=!1){let r=null;const i=e.root;let o=R8(e,n);for(;o!=null;){const a=t;if(t.mode==="composition")r=a.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(o);s!=null&&(r=s.__composer,n&&r&&!r[Rg]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function R8(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function M8(t,e,n){let r=null;x.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=n,r=Pc();const i=n;i[Mr]&&i[Mr](r),r.on("*",Gi)}},e),x.onUnmounted(()=>{const i=n;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",Gi),i[Wi]&&i[Wi](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const o=i[Sl];o&&(o(),delete i[Sl])},e)}function L8(t,e,n,r={}){const i=e==="local",o=x.shallowRef(null);if(i&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Ge(ce.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=oe(r.inheritLocale)?r.inheritLocale:!U(r.locale),s=x.ref(!i||a?n.locale.value:U(r.locale)?r.locale:no),l=x.ref(!i||a?n.fallbackLocale.value:U(r.fallbackLocale)||Ie(r.fallbackLocale)||ne(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:s.value),c=x.ref(Da(s.value,r)),u=x.ref(ne(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),d=x.ref(ne(r.numberFormats)?r.numberFormats:{[s.value]:{}}),f=i?n.missingWarn:oe(r.missingWarn)||rr(r.missingWarn)?r.missingWarn:!0,h=i?n.fallbackWarn:oe(r.fallbackWarn)||rr(r.fallbackWarn)?r.fallbackWarn:!0,p=i?n.fallbackRoot:oe(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,b=Ue(r.missing)?r.missing:null,m=Ue(r.postTranslation)?r.postTranslation:null,v=i?n.warnHtmlMessage:oe(r.warnHtmlMessage)?r.warnHtmlMessage:!0,w=!!r.escapeParameter,y=i?n.modifiers:ne(r.modifiers)?r.modifiers:{},C=r.pluralRules||i&&n.pluralRules;function E(){return[s.value,l.value,c.value,u.value,d.value]}const k=x.computed({get:()=>o.value?o.value.locale.value:s.value,set:A=>{o.value&&(o.value.locale.value=A),s.value=A}}),N=x.computed({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:A=>{o.value&&(o.value.fallbackLocale.value=A),l.value=A}}),D=x.computed(()=>o.value?o.value.messages.value:c.value),O=x.computed(()=>u.value),L=x.computed(()=>d.value);function B(){return o.value?o.value.getPostTranslationHandler():m}function G(A){o.value&&o.value.setPostTranslationHandler(A)}function ae(){return o.value?o.value.getMissingHandler():b}function se(A){o.value&&o.value.setMissingHandler(A)}function Z(A){return E(),A()}function K(...A){return o.value?Z(()=>Reflect.apply(o.value.t,null,[...A])):Z(()=>"")}function Te(...A){return o.value?Reflect.apply(o.value.rt,null,[...A]):""}function Re(...A){return o.value?Z(()=>Reflect.apply(o.value.d,null,[...A])):Z(()=>"")}function Me(...A){return o.value?Z(()=>Reflect.apply(o.value.n,null,[...A])):Z(()=>"")}function je(A){return o.value?o.value.tm(A):{}}function Et(A,R){return o.value?o.value.te(A,R):!1}function Ye(A){return o.value?o.value.getLocaleMessage(A):{}}function Lt(A,R){o.value&&(o.value.setLocaleMessage(A,R),c.value[A]=R)}function et(A,R){o.value&&o.value.mergeLocaleMessage(A,R)}function Ln(A){return o.value?o.value.getDateTimeFormat(A):{}}function Fn(A,R){o.value&&(o.value.setDateTimeFormat(A,R),u.value[A]=R)}function En(A,R){o.value&&o.value.mergeDateTimeFormat(A,R)}function An(A){return o.value?o.value.getNumberFormat(A):{}}function dn(A,R){o.value&&(o.value.setNumberFormat(A,R),d.value[A]=R)}function kn(A,R){o.value&&o.value.mergeNumberFormat(A,R)}const fn={get id(){return o.value?o.value.id:-1},locale:k,fallbackLocale:N,messages:D,datetimeFormats:O,numberFormats:L,get inheritLocale(){return o.value?o.value.inheritLocale:a},set inheritLocale(A){o.value&&(o.value.inheritLocale=A)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(c.value)},get modifiers(){return o.value?o.value.modifiers:y},get pluralRules(){return o.value?o.value.pluralRules:C},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:f},set missingWarn(A){o.value&&(o.value.missingWarn=A)},get fallbackWarn(){return o.value?o.value.fallbackWarn:h},set fallbackWarn(A){o.value&&(o.value.missingWarn=A)},get fallbackRoot(){return o.value?o.value.fallbackRoot:p},set fallbackRoot(A){o.value&&(o.value.fallbackRoot=A)},get fallbackFormat(){return o.value?o.value.fallbackFormat:g},set fallbackFormat(A){o.value&&(o.value.fallbackFormat=A)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:v},set warnHtmlMessage(A){o.value&&(o.value.warnHtmlMessage=A)},get escapeParameter(){return o.value?o.value.escapeParameter:w},set escapeParameter(A){o.value&&(o.value.escapeParameter=A)},t:K,getPostTranslationHandler:B,setPostTranslationHandler:G,getMissingHandler:ae,setMissingHandler:se,rt:Te,d:Re,n:Me,tm:je,te:Et,getLocaleMessage:Ye,setLocaleMessage:Lt,mergeLocaleMessage:et,getDateTimeFormat:Ln,setDateTimeFormat:Fn,mergeDateTimeFormat:En,getNumberFormat:An,setNumberFormat:dn,mergeNumberFormat:kn};function S(A){A.locale.value=s.value,A.fallbackLocale.value=l.value,Object.keys(c.value).forEach(R=>{A.mergeLocaleMessage(R,c.value[R])}),Object.keys(u.value).forEach(R=>{A.mergeDateTimeFormat(R,u.value[R])}),Object.keys(d.value).forEach(R=>{A.mergeNumberFormat(R,d.value[R])}),A.escapeParameter=w,A.fallbackFormat=g,A.fallbackRoot=p,A.fallbackWarn=h,A.missingWarn=f,A.warnHtmlMessage=v}return x.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Ge(ce.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const A=o.value=t.proxy.$i18n.__composer;e==="global"?(s.value=A.locale.value,l.value=A.fallbackLocale.value,c.value=A.messages.value,u.value=A.datetimeFormats.value,d.value=A.numberFormats.value):i&&S(A)}),fn}const F8=["locale","fallbackLocale","availableLocales"],Lf=["t","rt","d","n","tm","te"];function B8(t,e){const n=Object.create(null);return F8.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o)throw Ge(ce.UNEXPECTED_ERROR);const a=x.isRef(o.value)?{get(){return o.value.value},set(s){o.value.value=s}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,i,a)}),t.config.globalProperties.$i18n=n,Lf.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o||!o.value)throw Ge(ce.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${i}`,o)}),()=>{delete t.config.globalProperties.$i18n,Lf.forEach(i=>{delete t.config.globalProperties[`$${i}`]})}}e8();__INTLIFY_JIT_COMPILATION__?pf(YT):pf(jT);BT(xT);$T(gg);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Dn();t.__INTLIFY__=!0,IT(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Hg=B1();Hg.use(AI);exports.i18n=void 0;exports.translate=void 0;let xt={},Vc={};exports.appContext={};let ji={},gn={},Yi={},$8={install(t,e){exports.appContext=t,exports.i18n=I8({legacy:!1,locale:process.env.VUE_APP_I18N_LOCALE||"en",fallbackLocale:process.env.VUE_APP_I18N_FALLBACK_LOCALE||"en",messages:e.localeMessages}),t.use(Hg),t.use(exports.i18n),t.component("AppVersionInfo",Vv),t.component("LanguageSwitcher",M_),t.component("Login",ug),t.component("OmsInstanceNavigator",rp),t.component("ProductIdentifier",ip),t.component("Scanner",yp),t.component("ShopifyImg",wp),xt.login=e.login,xt.logout=e.logout,xt.loader=e.loader,xt.appLoginUrl=e.appLoginUrl,Vc.defaultImgUrl=e.defaultImgUrl,Yi.getUserPreference=e.getUserPreference,Yi.setUserPreference=e.setUserPreference,ji.getProductIdentificationPref=e.getProductIdentificationPref,ji.setProductIdentificationPref=e.setProductIdentificationPref,gn.addNotification=e.addNotification,gn.appFirebaseConfig=e.appFirebaseConfig,gn.appFirebaseVapidKey=e.appFirebaseVapidKey,gn.storeClientRegistrationToken=e.storeClientRegistrationToken,xt.getConfig=e.getConfig,xt.initialise=e.initialise,exports.i18n.global.locale.value=wa().getLocale,exports.translate=exports.i18n.global.t}};exports.Login=ug;exports.OmsInstanceNavigator=rp;exports.ProductIdentifier=ip;exports.Scanner=yp;exports.ShopifyImg=wp;exports.dxpComponents=$8;exports.getProductIdentificationValue=L_;exports.goToOms=np;exports.initialiseFirebaseApp=cg;exports.loginContext=xt;exports.notificationContext=gn;exports.productIdentificationContext=ji;exports.shopifyImgContext=Vc;exports.useAuthStore=Ul;exports.useProductIdentificationStore=qf;exports.useUserStore=wa;exports.userContext=Yi;
|