@hotwax/dxp-components 1.3.3 → 1.4.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.
@@ -1,9 +1,10 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {
2
- errorMsg: string;
3
- authStore: any;
4
- router: any;
5
- route: any;
6
- }, {}, {
7
- handleUserFlow(token: string, oms: string, expirationTime: string): Promise<void>;
8
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
- export default _default;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {
2
+ errorMsg: string;
3
+ authStore: {};
4
+ router: {};
5
+ route: {};
6
+ }, {}, {
7
+ handleUserFlow(token: any, oms: any, expirationTime: any): Promise<void>;
8
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;
10
+ //# sourceMappingURL=Login.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Login.d.ts","sourceRoot":"","sources":["../../src/components/Login.ts"],"names":[],"mappings":";;;;;;;;AAGA,wBAqDG"}
@@ -1,17 +1,18 @@
1
- declare const _default: import("vue").DefineComponent<Readonly<{
2
- size?: any;
3
- src?: any;
4
- }>, unknown, {
5
- imageUrl: any;
6
- }, {}, {
7
- prepareImgUrl(src: string, size?: string): string;
8
- checkIfImageExists(src: string): Promise<unknown>;
9
- setImageUrl(): void;
10
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
11
- size?: any;
12
- src?: any;
13
- }>>>, {
14
- readonly size?: any;
15
- readonly src?: any;
16
- }, {}>;
17
- export default _default;
1
+ declare const _default: import("vue").DefineComponent<Readonly<{
2
+ src?: any;
3
+ size?: any;
4
+ }>, unknown, {
5
+ imageUrl: any;
6
+ }, {}, {
7
+ prepareImgUrl(src: any, size: any): any;
8
+ checkIfImageExists(src: any): Promise<unknown>;
9
+ setImageUrl(): void;
10
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
11
+ src?: any;
12
+ size?: any;
13
+ }>>>, {
14
+ readonly src?: any;
15
+ readonly size?: any;
16
+ }, {}>;
17
+ export default _default;
18
+ //# sourceMappingURL=ShopifyImg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShopifyImg.d.ts","sourceRoot":"","sources":["../../src/components/ShopifyImg.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,wBA6CG"}
@@ -0,0 +1,11 @@
1
+ import '@ionic/vue/css/core.css';
2
+ import '@ionic/vue/css/normalize.css';
3
+ import '@ionic/vue/css/structure.css';
4
+ import '@ionic/vue/css/typography.css';
5
+ import '@ionic/vue/css/padding.css';
6
+ import '@ionic/vue/css/float-elements.css';
7
+ import '@ionic/vue/css/text-alignment.css';
8
+ import '@ionic/vue/css/text-transformation.css';
9
+ import '@ionic/vue/css/flex-utils.css';
10
+ import '@ionic/vue/css/display.css';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,yBAAyB,CAAC;AAGjC,OAAO,8BAA8B,CAAC;AACtC,OAAO,8BAA8B,CAAC;AACtC,OAAO,+BAA+B,CAAC;AAGvC,OAAO,4BAA4B,CAAC;AACpC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,wCAAwC,CAAC;AAChD,OAAO,+BAA+B,CAAC;AACvC,OAAO,4BAA4B,CAAC"}
package/lib/index.cjs ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("vue");var vn=!1;function He(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 mt(t,e){if(Array.isArray(t)){t.splice(e,1);return}delete t[e]}function zr(){return En().__VUE_DEVTOOLS_GLOBAL_HOOK__}function En(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Hr=typeof Proxy=="function",Wr="devtools-plugin:setup",jr="plugin:settings:set";let de,vt;function qr(){var t;return de!==void 0||(typeof window<"u"&&window.performance?(de=!0,vt=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(de=!0,vt=global.perf_hooks.performance):de=!1),de}function Gr(){return qr()?vt.now():Date.now()}class Yr{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const i in e.settings){const a=e.settings[i];r[i]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},r);try{const i=localStorage.getItem(s),a=JSON.parse(i);Object.assign(o,a)}catch{}this.fallbacks={getSettings(){return o},setSettings(i){try{localStorage.setItem(s,JSON.stringify(i))}catch{}o=i},now(){return Gr()}},n&&n.on(jr,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...u)=>{this.onQueue.push({method:a,args:u})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...u)=>(this.targetQueue.push({method:a,args:u,resolve:()=>{}}),this.fallbacks[a](...u)):(...u)=>new Promise(l=>{this.targetQueue.push({method:a,args:u,resolve:l})})})}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 In(t,e){const n=t,r=En(),s=zr(),o=Hr&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))s.emit(Wr,t,e);else{const i=o?new Yr(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:i}),i&&e(i.proxiedTarget)}}/*!
2
+ * pinia v2.0.36
3
+ * (c) 2023 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */let ke;const Fe=t=>ke=t,Nn=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function le(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var J;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(J||(J={}));const at=typeof window<"u",_e=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&at,Zt=(()=>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 Jr(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 Vt(t,e,n){const r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Mn(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function bn(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Qe(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 Ke=typeof navigator=="object"?navigator:{userAgent:""},kn=(()=>/Macintosh/.test(Ke.userAgent)&&/AppleWebKit/.test(Ke.userAgent)&&!/Safari/.test(Ke.userAgent))(),Mn=at?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!kn?Br:"msSaveOrOpenBlob"in Ke?Qr:Kr:()=>{};function Br(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?bn(r.href)?Vt(t,e,n):(r.target="_blank",Qe(r)):Qe(r)):(r.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Qe(r)},0))}function Qr(t,e="download",n){if(typeof t=="string")if(bn(t))Vt(t,e,n);else{const r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){Qe(r)})}else navigator.msSaveOrOpenBlob(Jr(t,n),e)}function Kr(t,e,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return Vt(t,e,n);const s=t.type==="application/octet-stream",o=/constructor/i.test(String(Zt.HTMLElement))||"safari"in Zt,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&o||kn)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let u=a.result;if(typeof u!="string")throw r=null,new Error("Wrong reader.result type");u=i?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=u:location.assign(u),r=null},a.readAsDataURL(t)}else{const a=URL.createObjectURL(t);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function D(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 Ct(t){return"_a"in t&&"install"in t}function Dn(){if(!("clipboard"in navigator))return D("Your browser doesn't support the Clipboard API","error"),!0}function xn(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(D('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Xr(t){if(!Dn())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),D("Global state copied to clipboard.")}catch(e){if(xn(e))return;D("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function es(t){if(!Dn())try{t.state.value=JSON.parse(await navigator.clipboard.readText()),D("Global state pasted from clipboard.")}catch(e){if(xn(e))return;D("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function ts(t){try{Mn(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){D("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let B;function ns(){B||(B=document.createElement("input"),B.type="file",B.accept=".json");function t(){return new Promise((e,n)=>{B.onchange=async()=>{const r=B.files;if(!r)return e(null);const s=r.item(0);return e(s?{text:await s.text(),file:s}:null)},B.oncancel=()=>e(null),B.onerror=n,B.click()})}return t}async function rs(t){try{const n=await(await ns())();if(!n)return;const{text:r,file:s}=n;t.state.value=JSON.parse(r),D(`Global state imported from "${s.name}".`)}catch(e){D("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}function j(t){return{_custom:{display:t}}}const _n="🍍 Pinia (root)",Et="_root";function ss(t){return Ct(t)?{id:Et,label:_n}:{id:t.$id,label:t.$id}}function is(t){if(Ct(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 i=r.get(o);return{editable:!1,key:o,value:i._getters.reduce((a,u)=>(a[u]=i[u],a),{})}})}}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 os(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:j(t.type),key:j(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function as(t){switch(t){case J.direct:return"mutation";case J.patchFunction:return"$patch";case J.patchObject:return"$patch";default:return"unknown"}}let ge=!0;const Xe=[],oe="pinia:mutations",x="pinia",{assign:us}=Object,nt=t=>"🍍 "+t;function ls(t,e){In({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Xe,app:t},n=>{typeof n.now!="function"&&D("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:oe,label:"Pinia 🍍",color:15064968}),n.addInspector({id:x,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Xr(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await es(e),n.sendInspectorTree(x),n.sendInspectorState(x)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{ts(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await rs(e),n.sendInspectorTree(x),n.sendInspectorState(x)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:"Reset the state (option store only)",action:r=>{const s=e._s.get(r);s?s._isOptionsAPI?(s.$reset(),D(`Store "${r}" reset.`)):D(`Cannot reset "${r}" store because it's a setup store.`,"warn"):D(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,s)=>{const o=r.componentInstance&&r.componentInstance.proxy;if(o&&o._pStores){const i=r.componentInstance.proxy._pStores;Object.values(i).forEach(a=>{r.instanceData.state.push({type:nt(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:g.toRaw(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((u,l)=>(u[l]=a.$state[l],u),{})}),a._getters&&a._getters.length&&r.instanceData.state.push({type:nt(a.$id),key:"getters",editable:!1,value:a._getters.reduce((u,l)=>{try{u[l]=a[l]}catch(f){u[l]=f}return u},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===t&&r.inspectorId===x){let s=[e];s=s.concat(Array.from(e._s.values())),r.rootNodes=(r.filter?s.filter(o=>"$id"in o?o.$id.toLowerCase().includes(r.filter.toLowerCase()):_n.toLowerCase().includes(r.filter.toLowerCase())):s).map(ss)}}),n.on.getInspectorState(r=>{if(r.app===t&&r.inspectorId===x){const s=r.nodeId===Et?e:e._s.get(r.nodeId);if(!s)return;s&&(r.state=is(s))}}),n.on.editInspectorState((r,s)=>{if(r.app===t&&r.inspectorId===x){const o=r.nodeId===Et?e:e._s.get(r.nodeId);if(!o)return D(`store "${r.nodeId}" not found`,"error");const{path:i}=r;Ct(o)?i.unshift("state"):(i.length!==1||!o._customProperties.has(i[0])||i[0]in o.$state)&&i.unshift("$state"),ge=!1,r.set(o,i,r.state.value),ge=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const s=r.type.replace(/^🍍\s*/,""),o=e._s.get(s);if(!o)return D(`store "${s}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return D(`Invalid path for store "${s}":
6
+ ${i}
7
+ Only state can be modified.`);i[0]="$state",ge=!1,r.set(o,i,r.state.value),ge=!0}})})}function cs(t,e){Xe.includes(nt(e.$id))||Xe.push(nt(e.$id)),In({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Xe,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:i,onError:a,name:u,args:l})=>{const f=Vn++;n.addTimelineEvent({layerId:oe,event:{time:r(),title:"🛫 "+u,subtitle:"start",data:{store:j(e.$id),action:j(u),args:l},groupId:f}}),i(m=>{ae=void 0,n.addTimelineEvent({layerId:oe,event:{time:r(),title:"🛬 "+u,subtitle:"end",data:{store:j(e.$id),action:j(u),args:l,result:m},groupId:f}})}),a(m=>{ae=void 0,n.addTimelineEvent({layerId:oe,event:{time:r(),logType:"error",title:"💥 "+u,subtitle:"end",data:{store:j(e.$id),action:j(u),args:l,error:m},groupId:f}})})},!0),e._customProperties.forEach(i=>{g.watch(()=>g.unref(e[i]),(a,u)=>{n.notifyComponentUpdate(),n.sendInspectorState(x),ge&&n.addTimelineEvent({layerId:oe,event:{time:r(),title:"Change",subtitle:i,data:{newValue:a,oldValue:u},groupId:ae}})},{deep:!0})}),e.$subscribe(({events:i,type:a},u)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(x),!ge)return;const l={time:r(),title:as(a),data:us({store:j(e.$id)},os(i)),groupId:ae};ae=void 0,a===J.patchFunction?l.subtitle="⤵️":a===J.patchObject?l.subtitle="🧩":i&&!Array.isArray(i)&&(l.subtitle=i.type),i&&(l.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:oe,event:l})},{detached:!0,flush:"sync"});const s=e._hotUpdate;e._hotUpdate=g.markRaw(i=>{s(i),n.addTimelineEvent({layerId:oe,event:{time:r(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:j(e.$id),info:j("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(x),n.sendInspectorState(x)});const{$dispose:o}=e;e.$dispose=()=>{o(),n.notifyComponentUpdate(),n.sendInspectorTree(x),n.sendInspectorState(x),n.getSettings().logStoreChanges&&D(`Disposed "${e.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(x),n.sendInspectorState(x),n.getSettings().logStoreChanges&&D(`"${e.$id}" store installed 🆕`)})}let Vn=0,ae;function zt(t,e){const n=e.reduce((r,s)=>(r[s]=g.toRaw(t)[s],r),{});for(const r in n)t[r]=function(){const s=Vn,o=new Proxy(t,{get(...i){return ae=s,Reflect.get(...i)},set(...i){return ae=s,Reflect.set(...i)}});return n[r].apply(o,arguments)}}function fs({app:t,store:e,options:n}){if(!e.$id.startsWith("__hot:")){if(n.state&&(e._isOptionsAPI=!0),typeof n.state=="function"){zt(e,Object.keys(n.actions));const r=e._hotUpdate;g.toRaw(e)._hotUpdate=function(s){r.apply(this,arguments),zt(e,Object.keys(s._hmrPayload.actions))}}cs(t,e)}}function ds(){const t=g.effectScope(!0),e=t.run(()=>g.ref({}));let n=[],r=[];const s=g.markRaw({install(o){Fe(s),s._a=o,o.provide(Nn,s),o.config.globalProperties.$pinia=s,_e&&ls(o,s),r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!vn?r.push(o):n.push(o),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return _e&&typeof Proxy<"u"&&s.use(fs),s}function Cn(t,e){for(const n in e){const r=e[n];if(!(n in t))continue;const s=t[n];le(s)&&le(r)&&!g.isRef(r)&&!g.isReactive(r)?t[n]=Cn(s,r):t[n]=r}return t}const Fn=()=>{};function Ht(t,e,n,r=Fn){t.push(e);const s=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),r())};return!n&&g.getCurrentScope()&&g.onScopeDispose(s),s}function he(t,...e){t.slice().forEach(n=>{n(...e)})}function It(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],s=t[n];le(s)&&le(r)&&t.hasOwnProperty(n)&&!g.isRef(r)&&!g.isReactive(r)?t[n]=It(s,r):t[n]=r}return t}const hs=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function ms(t){return!le(t)||!t.hasOwnProperty(hs)}const{assign:R}=Object;function Wt(t){return!!(g.isRef(t)&&t.effect)}function jt(t,e,n,r){const{state:s,actions:o,getters:i}=e,a=n.state.value[t];let u;function l(){!a&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[t]=s?s():{});const f=process.env.NODE_ENV!=="production"&&r?g.toRefs(g.ref(s?s():{}).value):g.toRefs(n.state.value[t]);return R(f,o,Object.keys(i||{}).reduce((m,S)=>(process.env.NODE_ENV!=="production"&&S in f&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${S}" in store "${t}".`),m[S]=g.markRaw(g.computed(()=>{Fe(n);const h=n._s.get(t);return i[S].call(h,h)})),m),{}))}return u=Nt(t,l,e,n,r,!0),u}function Nt(t,e,n={},r,s,o){let i;const a=R({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const u={deep:!0};process.env.NODE_ENV!=="production"&&!vn&&(u.onTrigger=y=>{l?h=y:l==!1&&!p._hotUpdating&&(Array.isArray(h)?h.push(y):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let l,f,m=g.markRaw([]),S=g.markRaw([]),h;const E=r.state.value[t];!o&&!E&&(process.env.NODE_ENV==="production"||!s)&&(r.state.value[t]={});const $=g.ref({});let C;function re(y){let d;l=f=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof y=="function"?(y(r.state.value[t]),d={type:J.patchFunction,storeId:t,events:h}):(It(r.state.value[t],y),d={type:J.patchObject,payload:y,storeId:t,events:h});const N=C=Symbol();g.nextTick().then(()=>{C===N&&(l=!0)}),f=!0,he(m,d,r.state.value[t])}const ht=o?function(){const{state:d}=n,N=d?d():{};this.$patch(P=>{R(P,N)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:Fn;function Re(){i.stop(),m=[],S=[],r._s.delete(t)}function Ze(y,d){return function(){Fe(r);const N=Array.from(arguments),P=[],Ee=[];function Rr(A){P.push(A)}function Zr(A){Ee.push(A)}he(S,{args:N,name:y,store:p,after:Rr,onError:Zr});let Ie;try{Ie=d.apply(this&&this.$id===t?this:p,N)}catch(A){throw he(Ee,A),A}return Ie instanceof Promise?Ie.then(A=>(he(P,A),A)).catch(A=>(he(Ee,A),Promise.reject(A))):(he(P,Ie),Ie)}}const fe=g.markRaw({actions:{},getters:{},state:[],hotState:$}),ze={_p:r,$id:t,$onAction:Ht.bind(null,S),$patch:re,$reset:ht,$subscribe(y,d={}){const N=Ht(m,y,d.detached,()=>P()),P=i.run(()=>g.watch(()=>r.state.value[t],Ee=>{(d.flush==="sync"?f:l)&&y({storeId:t,type:J.direct,events:h},Ee)},R({},u,d)));return N},$dispose:Re},p=g.reactive(process.env.NODE_ENV!=="production"||_e?R({_hmrPayload:fe,_customProperties:g.markRaw(new Set)},ze):ze);r._s.set(t,p);const F=r._e.run(()=>(i=g.effectScope(),i.run(()=>e())));for(const y in F){const d=F[y];if(g.isRef(d)&&!Wt(d)||g.isReactive(d))process.env.NODE_ENV!=="production"&&s?He($.value,y,g.toRef(F,y)):o||(E&&ms(d)&&(g.isRef(d)?d.value=E[y]:It(d,E[y])),r.state.value[t][y]=d),process.env.NODE_ENV!=="production"&&fe.state.push(y);else if(typeof d=="function"){const N=process.env.NODE_ENV!=="production"&&s?d:Ze(y,d);F[y]=N,process.env.NODE_ENV!=="production"&&(fe.actions[y]=d),a.actions[y]=d}else process.env.NODE_ENV!=="production"&&Wt(d)&&(fe.getters[y]=o?n.getters[y]:d,at&&(F._getters||(F._getters=g.markRaw([]))).push(y))}if(R(p,F),R(g.toRaw(p),F),Object.defineProperty(p,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?$.value:r.state.value[t],set:y=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");re(d=>{R(d,y)})}}),process.env.NODE_ENV!=="production"&&(p._hotUpdate=g.markRaw(y=>{p._hotUpdating=!0,y._hmrPayload.state.forEach(d=>{if(d in p.$state){const N=y.$state[d],P=p.$state[d];typeof N=="object"&&le(N)&&le(P)?Cn(N,P):y.$state[d]=P}He(p,d,g.toRef(y.$state,d))}),Object.keys(p.$state).forEach(d=>{d in y.$state||mt(p,d)}),l=!1,f=!1,r.state.value[t]=g.toRef(y._hmrPayload,"hotState"),f=!0,g.nextTick().then(()=>{l=!0});for(const d in y._hmrPayload.actions){const N=y[d];He(p,d,Ze(d,N))}for(const d in y._hmrPayload.getters){const N=y._hmrPayload.getters[d],P=o?g.computed(()=>(Fe(r),N.call(p,p))):N;He(p,d,P)}Object.keys(p._hmrPayload.getters).forEach(d=>{d in y._hmrPayload.getters||mt(p,d)}),Object.keys(p._hmrPayload.actions).forEach(d=>{d in y._hmrPayload.actions||mt(p,d)}),p._hmrPayload=y._hmrPayload,p._getters=y._getters,p._hotUpdating=!1})),_e){const y={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(d=>{Object.defineProperty(p,d,R({value:p[d]},y))})}return r._p.forEach(y=>{if(_e){const d=i.run(()=>y({store:p,app:r._a,pinia:r,options:a}));Object.keys(d||{}).forEach(N=>p._customProperties.add(N)),R(p,d)}else R(p,i.run(()=>y({store:p,app:r._a,pinia:r,options:a})))}),process.env.NODE_ENV!=="production"&&p.$state&&typeof p.$state=="object"&&typeof p.$state.constructor=="function"&&!p.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
8
+ state: () => new MyClass()
9
+ Found in store "${p.$id}".`),E&&o&&n.hydrate&&n.hydrate(p.$state,E),l=!0,f=!0,p}function $n(t,e,n){let r,s;const o=typeof e=="function";if(typeof t=="string")r=t,s=o?n:e;else if(s=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 i(a,u){const l=g.getCurrentInstance();if(a=(process.env.NODE_ENV==="test"&&ke&&ke._testing?null:a)||l&&g.inject(Nn,null),a&&Fe(a),process.env.NODE_ENV!=="production"&&!ke)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
10
+ const pinia = createPinia()
11
+ app.use(pinia)
12
+ This will fail in production.`);a=ke,a._s.has(r)||(o?Nt(r,e,s,a):jt(r,s,a),process.env.NODE_ENV!=="production"&&(i._pinia=a));const f=a._s.get(r);if(process.env.NODE_ENV!=="production"&&u){const m="__hot:"+r,S=o?Nt(m,e,s,a,!0):jt(m,R({},s),a,!0);u._hotUpdate(S),delete a.state.value[m],a._s.delete(m)}if(process.env.NODE_ENV!=="production"&&at&&l&&l.proxy&&!u){const m=l.proxy,S="_pStores"in m?m._pStores:m._pStores={};S[r]=f}return f}return i.$id=r,i}const ys=$n("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 $e.setProductIdentificationPref(n,r)}catch(s){console.log("error",s)}},async getIdentificationPref(t){if(!t)return this.productIdentificationPref={primaryId:"productId",secondaryId:""};this.productIdentificationPref=await $e.getProductIdentificationPref(t)}}});class ce extends Error{}class gs extends ce{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class ps extends ce{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class ws extends ce{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Me extends ce{}class Pn extends ce{constructor(e){super(`Invalid unit ${e}`)}}class Z extends ce{}class X extends ce{constructor(){super("Zone is an abstract class")}}const c="numeric",Y="short",L="long",rt={year:c,month:c,day:c},Ln={year:c,month:Y,day:c},Ss={year:c,month:Y,day:c,weekday:Y},An={year:c,month:L,day:c},Un={year:c,month:L,day:c,weekday:L},Rn={hour:c,minute:c},Zn={hour:c,minute:c,second:c},zn={hour:c,minute:c,second:c,timeZoneName:Y},Hn={hour:c,minute:c,second:c,timeZoneName:L},Wn={hour:c,minute:c,hourCycle:"h23"},jn={hour:c,minute:c,second:c,hourCycle:"h23"},qn={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:Y},Gn={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:L},Yn={year:c,month:c,day:c,hour:c,minute:c},Jn={year:c,month:c,day:c,hour:c,minute:c,second:c},Bn={year:c,month:Y,day:c,hour:c,minute:c},Qn={year:c,month:Y,day:c,hour:c,minute:c,second:c},Os={year:c,month:Y,day:c,weekday:Y,hour:c,minute:c},Kn={year:c,month:L,day:c,hour:c,minute:c,timeZoneName:Y},Xn={year:c,month:L,day:c,hour:c,minute:c,second:c,timeZoneName:Y},er={year:c,month:L,day:c,weekday:L,hour:c,minute:c,timeZoneName:L},tr={year:c,month:L,day:c,weekday:L,hour:c,minute:c,second:c,timeZoneName:L};class Pe{get type(){throw new X}get name(){throw new X}get ianaName(){return this.name}get isUniversal(){throw new X}offsetName(e,n){throw new X}formatOffset(e,n){throw new X}offset(e){throw new X}equals(e){throw new X}get isValid(){throw new X}}let yt=null;class ut extends Pe{static get instance(){return yt===null&&(yt=new ut),yt}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return rr(e,n,r)}formatOffset(e,n){return Ce(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let et={};function Ts(t){return et[t]||(et[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"})),et[t]}const vs={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Es(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,o,i,a,u,l,f]=r;return[i,s,o,a,u,l,f]}function Is(t,e){const n=t.formatToParts(e),r=[];for(let s=0;s<n.length;s++){const{type:o,value:i}=n[s],a=vs[o];o==="era"?r[a]=i:O(a)||(r[a]=parseInt(i,10))}return r}let We={};class K extends Pe{static create(e){return We[e]||(We[e]=new K(e)),We[e]}static resetCache(){We={},et={}}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=K.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return rr(e,n,r,this.name)}formatOffset(e,n){return Ce(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=Ts(this.name);let[s,o,i,a,u,l,f]=r.formatToParts?Is(r,n):Es(r,n);a==="BC"&&(s=-Math.abs(s)+1);const S=ct({year:s,month:o,day:i,hour:u===24?0:u,minute:l,second:f,millisecond:0});let h=+n;const E=h%1e3;return h-=E>=0?E:1e3+E,(S-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let qt={};function Ns(t,e={}){const n=JSON.stringify([t,e]);let r=qt[n];return r||(r=new Intl.ListFormat(t,e),qt[n]=r),r}let bt={};function kt(t,e={}){const n=JSON.stringify([t,e]);let r=bt[n];return r||(r=new Intl.DateTimeFormat(t,e),bt[n]=r),r}let Mt={};function bs(t,e={}){const n=JSON.stringify([t,e]);let r=Mt[n];return r||(r=new Intl.NumberFormat(t,e),Mt[n]=r),r}let Dt={};function ks(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let o=Dt[s];return o||(o=new Intl.RelativeTimeFormat(t,e),Dt[s]=o),o}let De=null;function Ms(){return De||(De=new Intl.DateTimeFormat().resolvedOptions().locale,De)}function Ds(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,s;try{r=kt(t).resolvedOptions(),s=t}catch{const u=t.substring(0,n);r=kt(u).resolvedOptions(),s=u}const{numberingSystem:o,calendar:i}=r;return[s,o,i]}}function xs(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function _s(t){const e=[];for(let n=1;n<=12;n++){const r=w.utc(2009,n,1);e.push(t(r))}return e}function Vs(t){const e=[];for(let n=1;n<=7;n++){const r=w.utc(2016,11,13+n);e.push(t(r))}return e}function je(t,e,n,r){const s=t.listingMode();return s==="error"?null:s==="en"?n(e):r(e)}function Cs(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 Fs{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:s,floor:o,...i}=r;if(!n||Object.keys(i).length>0){const a={useGrouping:!1,...r};r.padTo>0&&(a.minimumIntegerDigits=r.padTo),this.inf=bs(e,a)}}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):$t(e,3);return M(n,this.padTo)}}}class $s{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const i=-1*(e.offset/60),a=i>=0?`Etc/GMT+${i}`:`Etc/GMT${i}`;e.offset!==0&&K.create(a).valid?(s=a,this.dt=e):(s="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,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const o={...this.opts};o.timeZone=o.timeZone||s,this.dtf=kt(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 Ps{constructor(e,n,r){this.opts={style:"long",...r},!n&&nr()&&(this.rtf=ks(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):Xs(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}class I{static fromOpts(e){return I.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,n,r,s=!1){const o=e||k.defaultLocale,i=o||(s?"en-US":Ms()),a=n||k.defaultNumberingSystem,u=r||k.defaultOutputCalendar;return new I(i,a,u,o)}static resetCache(){De=null,bt={},Mt={},Dt={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r}={}){return I.create(e,n,r)}constructor(e,n,r,s){const[o,i,a]=Ds(e);this.locale=o,this.numberingSystem=n||i||null,this.outputCalendar=r||a||null,this.intl=xs(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Cs(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:I.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 je(this,e,or,()=>{const r=n?{month:e,day:"numeric"}:{month:e},s=n?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=_s(o=>this.extract(o,r,"month"))),this.monthsCache[s][e]})}weekdays(e,n=!1){return je(this,e,lr,()=>{const r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=n?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=Vs(o=>this.extract(o,r,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return je(this,void 0,()=>cr,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[w.utc(2016,11,13,9),w.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return je(this,e,fr,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[w.utc(-40,1,1),w.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){const s=this.dtFormatter(e,n),o=s.formatToParts(),i=o.find(a=>a.type.toLowerCase()===r);return i?i.value:null}numberFormatter(e={}){return new Fs(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new $s(e,this.intl,n)}relFormatter(e={}){return new Ps(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Ns(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 gt=null;class V extends Pe{static get utcInstance(){return gt===null&&(gt=new V(0)),gt}static instance(e){return e===0?V.utcInstance:new V(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new V(ft(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ce(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ce(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Ce(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 Ls extends Pe{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 ne(t,e){if(O(t)||t===null)return e;if(t instanceof Pe)return t;if(As(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?ut.instance:n==="utc"||n==="gmt"?V.utcInstance:V.parseSpecifier(n)||K.create(t)}else return ue(t)?V.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Ls(t)}let Gt=()=>Date.now(),Yt="system",Jt=null,Bt=null,Qt=null,Kt=60,Xt;class k{static get now(){return Gt}static set now(e){Gt=e}static set defaultZone(e){Yt=e}static get defaultZone(){return ne(Yt,ut.instance)}static get defaultLocale(){return Jt}static set defaultLocale(e){Jt=e}static get defaultNumberingSystem(){return Bt}static set defaultNumberingSystem(e){Bt=e}static get defaultOutputCalendar(){return Qt}static set defaultOutputCalendar(e){Qt=e}static get twoDigitCutoffYear(){return Kt}static set twoDigitCutoffYear(e){Kt=e%100}static get throwOnInvalid(){return Xt}static set throwOnInvalid(e){Xt=e}static resetCaches(){I.resetCache(),K.resetCache()}}function O(t){return typeof t>"u"}function ue(t){return typeof t=="number"}function lt(t){return typeof t=="number"&&t%1===0}function As(t){return typeof t=="string"}function Us(t){return Object.prototype.toString.call(t)==="[object Date]"}function nr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Rs(t){return Array.isArray(t)?t:[t]}function en(t,e,n){if(t.length!==0)return t.reduce((r,s)=>{const o=[e(s),s];return r&&n(r[0],o[0])===r[0]?r:o},null)[1]}function Zs(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function we(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Q(t,e,n){return lt(t)&&t>=e&&t<=n}function zs(t,e){return t-e*Math.floor(t/e)}function M(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function te(t){if(!(O(t)||t===null||t===""))return parseInt(t,10)}function se(t){if(!(O(t)||t===null||t===""))return parseFloat(t)}function Ft(t){if(!(O(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function $t(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function Le(t){return t%4===0&&(t%100!==0||t%400===0)}function Ve(t){return Le(t)?366:365}function st(t,e){const n=zs(e-1,12)+1,r=t+(e-n)/12;return n===2?Le(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function ct(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 it(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 xt(t){return t>99?t:t>k.twoDigitCutoffYear?1900+t:2e3+t}function rr(t,e,n,r=null){const s=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 i={timeZoneName:e,...o},a=new Intl.DateTimeFormat(n,i).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return a?a.value:null}function ft(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-r:r;return n*60+s}function sr(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Z(`Invalid unit value ${t}`);return e}function ot(t,e){const n={};for(const r in t)if(we(t,r)){const s=t[r];if(s==null)continue;n[e(r)]=sr(s)}return n}function Ce(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${M(n,2)}:${M(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${M(n,2)}${M(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function dt(t){return Zs(t,["hour","minute","second","millisecond"])}const Hs=["January","February","March","April","May","June","July","August","September","October","November","December"],ir=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ws=["J","F","M","A","M","J","J","A","S","O","N","D"];function or(t){switch(t){case"narrow":return[...Ws];case"short":return[...ir];case"long":return[...Hs];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 ar=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ur=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],js=["M","T","W","T","F","S","S"];function lr(t){switch(t){case"narrow":return[...js];case"short":return[...ur];case"long":return[...ar];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const cr=["AM","PM"],qs=["Before Christ","Anno Domini"],Gs=["BC","AD"],Ys=["B","A"];function fr(t){switch(t){case"narrow":return[...Ys];case"short":return[...Gs];case"long":return[...qs];default:return null}}function Js(t){return cr[t.hour<12?0:1]}function Bs(t,e){return lr(e)[t.weekday-1]}function Qs(t,e){return or(e)[t.month-1]}function Ks(t,e){return fr(e)[t.year<0?0:1]}function Xs(t,e,n="always",r=!1){const s={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 m=t==="days";switch(e){case 1:return m?"tomorrow":`next ${s[t][0]}`;case-1:return m?"yesterday":`last ${s[t][0]}`;case 0:return m?"today":`this ${s[t][0]}`}}const i=Object.is(e,-0)||e<0,a=Math.abs(e),u=a===1,l=s[t],f=r?u?l[1]:l[2]||l[1]:u?s[t][0]:t;return i?`${a} ${f} ago`:`in ${a} ${f}`}function tn(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const ei={D:rt,DD:Ln,DDD:An,DDDD:Un,t:Rn,tt:Zn,ttt:zn,tttt:Hn,T:Wn,TT:jn,TTT:qn,TTTT:Gn,f:Yn,ff:Bn,fff:Kn,ffff:er,F:Jn,FF:Qn,FFF:Xn,FFFF:tr};class _{static create(e,n={}){return new _(e,n)}static parseFormat(e){let n=null,r="",s=!1;const o=[];for(let i=0;i<e.length;i++){const a=e.charAt(i);a==="'"?(r.length>0&&o.push({literal:s||/^\s+$/.test(r),val:r}),n=null,r="",s=!s):s||a===n?r+=a:(r.length>0&&o.push({literal:/^\s+$/.test(r),val:r}),r=a,n=a)}return r.length>0&&o.push({literal:s||/^\s+$/.test(r),val:r}),o}static macroTokenToFormatOpts(e){return ei[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 M(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",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(h,E)=>this.loc.extract(e,h,E),i=h=>e.isOffsetFixed&&e.offset===0&&h.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,h.format):"",a=()=>r?Js(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(h,E)=>r?Qs(e,h):o(E?{month:h}:{month:h,day:"numeric"},"month"),l=(h,E)=>r?Bs(e,h):o(E?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),f=h=>{const E=_.macroTokenToFormatOpts(h);return E?this.formatWithSystemDefault(e,E):h},m=h=>r?Ks(e,h):o({era:h},"era"),S=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 i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({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 a();case"d":return s?o({day:"numeric"},"day"):this.num(e.day);case"dd":return s?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return s?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?o({month:"numeric"},"month"):this.num(e.month);case"MM":return s?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?o({year:"numeric"},"year"):this.num(e.year);case"yy":return s?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("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 f(h)}};return tn(_.parseFormat(n),S)}formatDurationFromString(e,n){const r=u=>{switch(u[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}},s=u=>l=>{const f=r(l);return f?this.num(u.get(f),l.length):l},o=_.parseFormat(n),i=o.reduce((u,{literal:l,val:f})=>l?u:u.concat(f),[]),a=e.shiftTo(...i.map(r).filter(u=>u));return tn(o,s(a))}}class G{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const dr=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Se(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function Oe(...t){return e=>t.reduce(([n,r,s],o)=>{const[i,a,u]=o(e,s);return[{...n,...i},a||r,u]},[{},null,1]).slice(0,2)}function Te(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const s=n.exec(t);if(s)return r(s)}return[null,null]}function hr(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=te(e[n+s]);return[r,null,n+s]}}const mr=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,ti=`(?:${mr.source}?(?:\\[(${dr.source})\\])?)?`,Pt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,yr=RegExp(`${Pt.source}${ti}`),Lt=RegExp(`(?:T${yr.source})?`),ni=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ri=/(\d{4})-?W(\d\d)(?:-?(\d))?/,si=/(\d{4})-?(\d{3})/,ii=hr("weekYear","weekNumber","weekDay"),oi=hr("year","ordinal"),ai=/(\d{4})-(\d\d)-(\d\d)/,gr=RegExp(`${Pt.source} ?(?:${mr.source}|(${dr.source}))?`),ui=RegExp(`(?: ${gr.source})?`);function pe(t,e,n){const r=t[e];return O(r)?n:te(r)}function li(t,e){return[{year:pe(t,e),month:pe(t,e+1,1),day:pe(t,e+2,1)},null,e+3]}function ve(t,e){return[{hours:pe(t,e,0),minutes:pe(t,e+1,0),seconds:pe(t,e+2,0),milliseconds:Ft(t[e+3])},null,e+4]}function Ae(t,e){const n=!t[e]&&!t[e+1],r=ft(t[e+1],t[e+2]),s=n?null:V.instance(r);return[{},s,e+3]}function Ue(t,e){const n=t[e]?K.create(t[e]):null;return[{},n,e+1]}const ci=RegExp(`^T?${Pt.source}$`),fi=/^-?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 di(t){const[e,n,r,s,o,i,a,u,l]=t,f=e[0]==="-",m=u&&u[0]==="-",S=(h,E=!1)=>h!==void 0&&(E||h&&f)?-h:h;return[{years:S(se(n)),months:S(se(r)),weeks:S(se(s)),days:S(se(o)),hours:S(se(i)),minutes:S(se(a)),seconds:S(se(u),u==="-0"),milliseconds:S(Ft(l),m)}]}const hi={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 At(t,e,n,r,s,o,i){const a={year:e.length===2?xt(te(e)):te(e),month:ir.indexOf(n)+1,day:te(r),hour:te(s),minute:te(o)};return i&&(a.second=te(i)),t&&(a.weekday=t.length>3?ar.indexOf(t)+1:ur.indexOf(t)+1),a}const mi=/^(?:(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 yi(t){const[,e,n,r,s,o,i,a,u,l,f,m]=t,S=At(e,s,r,n,o,i,a);let h;return u?h=hi[u]:l?h=0:h=ft(f,m),[S,new V(h)]}function gi(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const pi=/^(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$/,wi=/^(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$/,Si=/^(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 nn(t){const[,e,n,r,s,o,i,a]=t;return[At(e,s,r,n,o,i,a),V.utcInstance]}function Oi(t){const[,e,n,r,s,o,i,a]=t;return[At(e,a,n,r,s,o,i),V.utcInstance]}const Ti=Se(ni,Lt),vi=Se(ri,Lt),Ei=Se(si,Lt),Ii=Se(yr),pr=Oe(li,ve,Ae,Ue),Ni=Oe(ii,ve,Ae,Ue),bi=Oe(oi,ve,Ae,Ue),ki=Oe(ve,Ae,Ue);function Mi(t){return Te(t,[Ti,pr],[vi,Ni],[Ei,bi],[Ii,ki])}function Di(t){return Te(gi(t),[mi,yi])}function xi(t){return Te(t,[pi,nn],[wi,nn],[Si,Oi])}function _i(t){return Te(t,[fi,di])}const Vi=Oe(ve);function Ci(t){return Te(t,[ci,Vi])}const Fi=Se(ai,ui),$i=Se(gr),Pi=Oe(ve,Ae,Ue);function Li(t){return Te(t,[Fi,pr],[$i,Pi])}const rn="Invalid Duration",wr={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}},Ai={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},...wr},U=146097/400,me=146097/4800,Ui={years:{quarters:4,months:12,weeks:U/7,days:U,hours:U*24,minutes:U*24*60,seconds:U*24*60*60,milliseconds:U*24*60*60*1e3},quarters:{months:3,weeks:U/28,days:U/4,hours:U*24/4,minutes:U*24*60/4,seconds:U*24*60*60/4,milliseconds:U*24*60*60*1e3/4},months:{weeks:me/7,days:me,hours:me*24,minutes:me*24*60,seconds:me*24*60*60,milliseconds:me*24*60*60*1e3},...wr},xe=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Sr=xe.slice(0).reverse();function ee(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 T(r)}function Or(t,e){let n=e.milliseconds??0;for(const r of Sr.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function sn(t,e){const n=Or(t,e)<0?-1:1;Sr.reduce((r,s)=>{if(O(e[s]))return r;if(r){const o=e[r]*n,i=t[s][r],a=Math.floor(o/i);e[s]+=a*n,e[r]-=a*i*n}return s},null)}function Ri(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class T{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?Ui:Ai;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||I.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return T.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Z(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new T({values:ot(e,T.normalizeUnit),loc:I.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(ue(e))return T.fromMillis(e);if(T.isDuration(e))return e;if(typeof e=="object")return T.fromObject(e);throw new Z(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=_i(e);return r?T.fromObject(r,n):T.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=Ci(e);return r?T.fromObject(r,n):T.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Z("need to specify a reason the Duration is invalid");const r=e instanceof G?e:new G(e,n);if(k.throwOnInvalid)throw new ws(r);return new T({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 Pn(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?_.create(this.loc,r).formatDurationFromString(this,e):rn}toHuman(e={}){if(!this.isValid)return rn;const n=xe.map(r=>{const s=this.values[r];return O(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(s)}).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+=$t(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},w.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?Or(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e),r={};for(const s of xe)(we(n.values,s)||we(this.values,s))&&(r[s]=n.get(s)+this.get(s));return ee(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=T.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]=sr(e(this.values[r],r));return ee(this,{values:n},!0)}get(e){return this[T.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...ot(e,T.normalizeUnit)};return ee(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:s}={}){const i={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:s,conversionAccuracy:r};return ee(this,i)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return sn(this.matrix,e),ee(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Ri(this.normalize().shiftToAll().toObject());return ee(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(i=>T.normalizeUnit(i));const n={},r={},s=this.toObject();let o;for(const i of xe)if(e.indexOf(i)>=0){o=i;let a=0;for(const l in r)a+=this.matrix[l][i]*r[l],r[l]=0;ue(s[i])&&(a+=s[i]);const u=Math.trunc(a);n[i]=u,r[i]=(a*1e3-u*1e3)/1e3}else ue(s[i])&&(r[i]=s[i]);for(const i in r)r[i]!==0&&(n[o]+=i===o?r[i]:r[i]/this.matrix[o][i]);return sn(this.matrix,n),ee(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 ee(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,s){return r===void 0||r===0?s===void 0||s===0:r===s}for(const r of xe)if(!n(this.values[r],e.values[r]))return!1;return!0}}const ye="Invalid Interval";function Zi(t,e){return!t||!t.isValid?b.invalid("missing or invalid start"):!e||!e.isValid?b.invalid("missing or invalid end"):e<t?b.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 b{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 Z("need to specify a reason the Interval is invalid");const r=e instanceof G?e:new G(e,n);if(k.throwOnInvalid)throw new ps(r);return new b({invalid:r})}static fromDateTimes(e,n){const r=be(e),s=be(n),o=Zi(r,s);return o??new b({start:r,end:s})}static after(e,n){const r=T.fromDurationLike(n),s=be(e);return b.fromDateTimes(s,s.plus(r))}static before(e,n){const r=T.fromDurationLike(n),s=be(e);return b.fromDateTimes(s.minus(r),s)}static fromISO(e,n){const[r,s]=(e||"").split("/",2);if(r&&s){let o,i;try{o=w.fromISO(r,n),i=o.isValid}catch{i=!1}let a,u;try{a=w.fromISO(s,n),u=a.isValid}catch{u=!1}if(i&&u)return b.fromDateTimes(o,a);if(i){const l=T.fromISO(s,n);if(l.isValid)return b.after(o,l)}else if(u){const l=T.fromISO(r,n);if(l.isValid)return b.before(a,l)}}return b.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?b.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(be).filter(i=>this.contains(i)).sort(),r=[];let{s}=this,o=0;for(;s<this.e;){const i=n[o]||this.e,a=+i>+this.e?this.e:i;r.push(b.fromDateTimes(s,a)),s=a,o+=1}return r}splitBy(e){const n=T.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,s=1,o;const i=[];for(;r<this.e;){const a=this.start.plus(n.mapUnits(u=>u*s));o=+a>+this.e?this.e:a,i.push(b.fromDateTimes(r,o)),r=o,s+=1}return i}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:b.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 b.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((s,o)=>s.s-o.s).reduce(([s,o],i)=>o?o.overlaps(i)||o.abutsStart(i)?[s,o.union(i)]:[s.concat([o]),i]:[s,i],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const s=[],o=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),i=Array.prototype.concat(...o),a=i.sort((u,l)=>u.time-l.time);for(const u of a)r+=u.type==="s"?1:-1,r===1?n=u.time:(n&&+n!=+u.time&&s.push(b.fromDateTimes(n,u.time)),n=null);return b.merge(s)}difference(...e){return b.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ye}toLocaleString(e=rt,n={}){return this.isValid?_.create(this.s.loc.clone(n),e).formatInterval(this):ye}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ye}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ye}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ye}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:ye}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):T.invalid(this.invalidReason)}mapEndpoints(e){return b.fromDateTimes(e(this.s),e(this.e))}}class qe{static hasDST(e=k.defaultZone){const n=w.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return K.isValidZone(e)}static normalizeZone(e){return ne(e,k.defaultZone)}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:o="gregory"}={}){return(s||I.create(n,r,o)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:o="gregory"}={}){return(s||I.create(n,r,o)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||I.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||I.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return I.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return I.create(n,null,"gregory").eras(e)}static features(){return{relative:nr()}}}function on(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(T.fromMillis(r).as("days"))}function zi(t,e,n){const r=[["years",(u,l)=>l.year-u.year],["quarters",(u,l)=>l.quarter-u.quarter+(l.year-u.year)*4],["months",(u,l)=>l.month-u.month+(l.year-u.year)*12],["weeks",(u,l)=>{const f=on(u,l);return(f-f%7)/7}],["days",on]],s={},o=t;let i,a;for(const[u,l]of r)n.indexOf(u)>=0&&(i=u,s[u]=l(t,e),a=o.plus(s),a>e?(s[u]--,t=o.plus(s),t>e&&(a=t,s[u]--,t=o.plus(s))):t=a);return[t,s,a,i]}function Hi(t,e,n,r){let[s,o,i,a]=zi(t,e,n);const u=e-s,l=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);l.length===0&&(i<e&&(i=s.plus({[a]:1})),i!==s&&(o[a]=(o[a]||0)+u/(i-s)));const f=T.fromObject(o,r);return l.length>0?T.fromMillis(u,r).shiftTo(...l).plus(f):f}const Ut={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},an={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]},Wi=Ut.hanidec.replace(/[\[|\]]/g,"").split("");function ji(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(Ut.hanidec)!==-1)e+=Wi.indexOf(t[n]);else for(const s in an){const[o,i]=an[s];r>=o&&r<=i&&(e+=r-o)}}return parseInt(e,10)}else return e}function H({numberingSystem:t},e=""){return new RegExp(`${Ut[t||"latn"]}${e}`)}const qi="missing Intl.DateTimeFormat.formatToParts support";function v(t,e=n=>n){return{regex:t,deser:([n])=>e(ji(n))}}const Gi=String.fromCharCode(160),Tr=`[ ${Gi}]`,vr=new RegExp(Tr,"g");function Yi(t){return t.replace(/\./g,"\\.?").replace(vr,Tr)}function un(t){return t.replace(/\./g,"").replace(vr," ").toLowerCase()}function W(t,e){return t===null?null:{regex:RegExp(t.map(Yi).join("|")),deser:([n])=>t.findIndex(r=>un(n)===un(r))+e}}function ln(t,e){return{regex:t,deser:([,n,r])=>ft(n,r),groups:e}}function Ge(t){return{regex:t,deser:([e])=>e}}function Ji(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Bi(t,e){const n=H(e),r=H(e,"{2}"),s=H(e,"{3}"),o=H(e,"{4}"),i=H(e,"{6}"),a=H(e,"{1,2}"),u=H(e,"{1,3}"),l=H(e,"{1,6}"),f=H(e,"{1,9}"),m=H(e,"{2,4}"),S=H(e,"{4,6}"),h=C=>({regex:RegExp(Ji(C.val)),deser:([re])=>re,literal:!0}),$=(C=>{if(t.literal)return h(C);switch(C.val){case"G":return W(e.eras("short"),0);case"GG":return W(e.eras("long"),0);case"y":return v(l);case"yy":return v(m,xt);case"yyyy":return v(o);case"yyyyy":return v(S);case"yyyyyy":return v(i);case"M":return v(a);case"MM":return v(r);case"MMM":return W(e.months("short",!0),1);case"MMMM":return W(e.months("long",!0),1);case"L":return v(a);case"LL":return v(r);case"LLL":return W(e.months("short",!1),1);case"LLLL":return W(e.months("long",!1),1);case"d":return v(a);case"dd":return v(r);case"o":return v(u);case"ooo":return v(s);case"HH":return v(r);case"H":return v(a);case"hh":return v(r);case"h":return v(a);case"mm":return v(r);case"m":return v(a);case"q":return v(a);case"qq":return v(r);case"s":return v(a);case"ss":return v(r);case"S":return v(u);case"SSS":return v(s);case"u":return Ge(f);case"uu":return Ge(a);case"uuu":return v(n);case"a":return W(e.meridiems(),0);case"kkkk":return v(o);case"kk":return v(m,xt);case"W":return v(a);case"WW":return v(r);case"E":case"c":return v(n);case"EEE":return W(e.weekdays("short",!1),1);case"EEEE":return W(e.weekdays("long",!1),1);case"ccc":return W(e.weekdays("short",!0),1);case"cccc":return W(e.weekdays("long",!0),1);case"Z":case"ZZ":return ln(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return ln(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return Ge(/[a-z_+-/]{1,256}?/i);case" ":return Ge(/[^\S\n\r]/);default:return h(C)}})(t)||{invalidReason:qi};return $.token=t,$}const Qi={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 Ki(t,e,n){const{type:r,value:s}=t;if(r==="literal"){const u=/^\s+$/.test(s);return{literal:!u,val:u?" ":s}}const o=e[r];let i=r;r==="hour"&&(e.hour12!=null?i=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?i="hour12":i="hour24":i=n.hour12?"hour12":"hour24");let a=Qi[i];if(typeof a=="object"&&(a=a[o]),a)return{literal:!1,val:a}}function Xi(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function eo(t,e,n){const r=t.match(e);if(r){const s={};let o=1;for(const i in n)if(we(n,i)){const a=n[i],u=a.groups?a.groups+1:1;!a.literal&&a.token&&(s[a.token.val[0]]=a.deser(r.slice(o,o+u))),o+=u}return[r,s]}else return[r,{}]}function to(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 O(t.z)||(n=K.create(t.z)),O(t.Z)||(n||(n=new V(t.Z)),r=t.Z),O(t.q)||(t.M=(t.q-1)*3+1),O(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),O(t.u)||(t.S=Ft(t.u)),[Object.keys(t).reduce((o,i)=>{const a=e(i);return a&&(o[a]=t[i]),o},{}),n,r]}let pt=null;function no(){return pt||(pt=w.fromMillis(1555555555555)),pt}function ro(t,e){if(t.literal)return t;const n=_.macroTokenToFormatOpts(t.val),r=Nr(n,e);return r==null||r.includes(void 0)?t:r}function Er(t,e){return Array.prototype.concat(...t.map(n=>ro(n,e)))}function Ir(t,e,n){const r=Er(_.parseFormat(n),t),s=r.map(i=>Bi(i,t)),o=s.find(i=>i.invalidReason);if(o)return{input:e,tokens:r,invalidReason:o.invalidReason};{const[i,a]=Xi(s),u=RegExp(i,"i"),[l,f]=eo(e,u,a),[m,S,h]=f?to(f):[null,null,void 0];if(we(f,"a")&&we(f,"H"))throw new Me("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:u,rawMatches:l,matches:f,result:m,zone:S,specificOffset:h}}}function so(t,e,n){const{result:r,zone:s,specificOffset:o,invalidReason:i}=Ir(t,e,n);return[r,s,o,i]}function Nr(t,e){if(!t)return null;const r=_.create(e,t).dtFormatter(no()),s=r.formatToParts(),o=r.resolvedOptions();return s.map(i=>Ki(i,t,o))}const br=[0,31,59,90,120,151,181,212,243,273,304,334],kr=[0,31,60,91,121,152,182,213,244,274,305,335];function z(t,e){return new G("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Mr(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return s===0?7:s}function Dr(t,e,n){return n+(Le(t)?kr:br)[e-1]}function xr(t,e){const n=Le(t)?kr:br,r=n.findIndex(o=>o<e),s=e-n[r];return{month:r+1,day:s}}function _t(t){const{year:e,month:n,day:r}=t,s=Dr(e,n,r),o=Mr(e,n,r);let i=Math.floor((s-o+10)/7),a;return i<1?(a=e-1,i=it(a)):i>it(e)?(a=e+1,i=1):a=e,{weekYear:a,weekNumber:i,weekday:o,...dt(t)}}function cn(t){const{weekYear:e,weekNumber:n,weekday:r}=t,s=Mr(e,1,4),o=Ve(e);let i=n*7+r-s-3,a;i<1?(a=e-1,i+=Ve(a)):i>o?(a=e+1,i-=Ve(e)):a=e;const{month:u,day:l}=xr(a,i);return{year:a,month:u,day:l,...dt(t)}}function wt(t){const{year:e,month:n,day:r}=t,s=Dr(e,n,r);return{year:e,ordinal:s,...dt(t)}}function fn(t){const{year:e,ordinal:n}=t,{month:r,day:s}=xr(e,n);return{year:e,month:r,day:s,...dt(t)}}function io(t){const e=lt(t.weekYear),n=Q(t.weekNumber,1,it(t.weekYear)),r=Q(t.weekday,1,7);return e?n?r?!1:z("weekday",t.weekday):z("week",t.week):z("weekYear",t.weekYear)}function oo(t){const e=lt(t.year),n=Q(t.ordinal,1,Ve(t.year));return e?n?!1:z("ordinal",t.ordinal):z("year",t.year)}function _r(t){const e=lt(t.year),n=Q(t.month,1,12),r=Q(t.day,1,st(t.year,t.month));return e?n?r?!1:z("day",t.day):z("month",t.month):z("year",t.year)}function Vr(t){const{hour:e,minute:n,second:r,millisecond:s}=t,o=Q(e,0,23)||e===24&&n===0&&r===0&&s===0,i=Q(n,0,59),a=Q(r,0,59),u=Q(s,0,999);return o?i?a?u?!1:z("millisecond",s):z("second",r):z("minute",n):z("hour",e)}const St="Invalid DateTime",dn=864e13;function Ye(t){return new G("unsupported zone",`the zone "${t.name}" is not supported`)}function Ot(t){return t.weekData===null&&(t.weekData=_t(t.c)),t.weekData}function ie(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new w({...n,...e,old:n})}function Cr(t,e,n){let r=t-e*60*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=(s-e)*60*1e3;const o=n.offset(r);return s===o?[r,s]:[t-Math.min(s,o)*60*1e3,Math.max(s,o)]}function Je(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 tt(t,e,n){return Cr(ct(t),e,n)}function hn(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...t.c,year:r,month:s,day:Math.min(t.c.day,st(r,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},i=T.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"),a=ct(o);let[u,l]=Cr(a,n,t.zone);return i!==0&&(u+=i,l=t.zone.offset(u)),{ts:u,o:l}}function Ne(t,e,n,r,s,o){const{setZone:i,zone:a}=n;if(t&&Object.keys(t).length!==0||e){const u=e||a,l=w.fromObject(t,{...n,zone:u,specificOffset:o});return i?l:l.setZone(a)}else return w.invalid(new G("unparsable",`the input "${s}" can't be parsed as ${r}`))}function Be(t,e,n=!0){return t.isValid?_.create(I.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Tt(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=M(t.c.year,n?6:4),e?(r+="-",r+=M(t.c.month),r+="-",r+=M(t.c.day)):(r+=M(t.c.month),r+=M(t.c.day)),r}function mn(t,e,n,r,s,o){let i=M(t.c.hour);return e?(i+=":",i+=M(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(i+=":")):i+=M(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(i+=M(t.c.second),(t.c.millisecond!==0||!r)&&(i+=".",i+=M(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!o?i+="Z":t.o<0?(i+="-",i+=M(Math.trunc(-t.o/60)),i+=":",i+=M(Math.trunc(-t.o%60))):(i+="+",i+=M(Math.trunc(t.o/60)),i+=":",i+=M(Math.trunc(t.o%60)))),o&&(i+="["+t.zone.ianaName+"]"),i}const Fr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ao={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},uo={ordinal:1,hour:0,minute:0,second:0,millisecond:0},$r=["year","month","day","hour","minute","second","millisecond"],lo=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],co=["year","ordinal","hour","minute","second","millisecond"];function yn(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 Pn(t);return e}function gn(t,e){const n=ne(e.zone,k.defaultZone),r=I.fromObject(e),s=k.now();let o,i;if(O(t.year))o=s;else{for(const l of $r)O(t[l])&&(t[l]=Fr[l]);const a=_r(t)||Vr(t);if(a)return w.invalid(a);const u=n.offset(s);[o,i]=tt(t,u,n)}return new w({ts:o,zone:n,loc:r,o:i})}function pn(t,e,n){const r=O(n.round)?!0:n.round,s=(i,a)=>(i=$t(i,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(i,a)),o=i=>n.calendary?e.hasSame(t,i)?0:e.startOf(i).diff(t.startOf(i),i).get(i):e.diff(t,i).get(i);if(n.unit)return s(o(n.unit),n.unit);for(const i of n.units){const a=o(i);if(Math.abs(a)>=1)return s(a,i)}return s(t>e?-0:0,n.units[n.units.length-1])}function wn(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 w{constructor(e){const n=e.zone||k.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new G("invalid input"):null)||(n.isValid?null:Ye(n));this.ts=O(e.ts)?k.now():e.ts;let s=null,o=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,o]=[e.old.c,e.old.o];else{const a=n.offset(this.ts);s=Je(this.ts,a),r=Number.isNaN(s.year)?new G("invalid input"):null,s=r?null:s,o=r?null:a}this._zone=n,this.loc=e.loc||I.create(),this.invalid=r,this.weekData=null,this.c=s,this.o=o,this.isLuxonDateTime=!0}static now(){return new w({})}static local(){const[e,n]=wn(arguments),[r,s,o,i,a,u,l]=n;return gn({year:r,month:s,day:o,hour:i,minute:a,second:u,millisecond:l},e)}static utc(){const[e,n]=wn(arguments),[r,s,o,i,a,u,l]=n;return e.zone=V.utcInstance,gn({year:r,month:s,day:o,hour:i,minute:a,second:u,millisecond:l},e)}static fromJSDate(e,n={}){const r=Us(e)?e.valueOf():NaN;if(Number.isNaN(r))return w.invalid("invalid input");const s=ne(n.zone,k.defaultZone);return s.isValid?new w({ts:r,zone:s,loc:I.fromObject(n)}):w.invalid(Ye(s))}static fromMillis(e,n={}){if(ue(e))return e<-dn||e>dn?w.invalid("Timestamp out of range"):new w({ts:e,zone:ne(n.zone,k.defaultZone),loc:I.fromObject(n)});throw new Z(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(ue(e))return new w({ts:e*1e3,zone:ne(n.zone,k.defaultZone),loc:I.fromObject(n)});throw new Z("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=ne(n.zone,k.defaultZone);if(!r.isValid)return w.invalid(Ye(r));const s=k.now(),o=O(n.specificOffset)?r.offset(s):n.specificOffset,i=ot(e,yn),a=!O(i.ordinal),u=!O(i.year),l=!O(i.month)||!O(i.day),f=u||l,m=i.weekYear||i.weekNumber,S=I.fromObject(n);if((f||a)&&m)throw new Me("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new Me("Can't mix ordinal dates with month/day");const h=m||i.weekday&&!f;let E,$,C=Je(s,o);h?(E=lo,$=ao,C=_t(C)):a?(E=co,$=uo,C=wt(C)):(E=$r,$=Fr);let re=!1;for(const F of E){const y=i[F];O(y)?re?i[F]=$[F]:i[F]=C[F]:re=!0}const ht=h?io(i):a?oo(i):_r(i),Re=ht||Vr(i);if(Re)return w.invalid(Re);const Ze=h?cn(i):a?fn(i):i,[fe,ze]=tt(Ze,o,r),p=new w({ts:fe,zone:r,o:ze,loc:S});return i.weekday&&f&&e.weekday!==p.weekday?w.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${p.toISO()}`):p}static fromISO(e,n={}){const[r,s]=Mi(e);return Ne(r,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,s]=Di(e);return Ne(r,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,s]=xi(e);return Ne(r,s,n,"HTTP",n)}static fromFormat(e,n,r={}){if(O(e)||O(n))throw new Z("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:o=null}=r,i=I.fromOpts({locale:s,numberingSystem:o,defaultToEN:!0}),[a,u,l,f]=so(i,e,n);return f?w.invalid(f):Ne(a,u,r,`format ${n}`,e,l)}static fromString(e,n,r={}){return w.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,s]=Li(e);return Ne(r,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Z("need to specify a reason the DateTime is invalid");const r=e instanceof G?e:new G(e,n);if(k.throwOnInvalid)throw new gs(r);return new w({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=Nr(e,I.fromObject(n));return r?r.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return Er(_.parseFormat(e),I.fromObject(n)).map(s=>s.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?Ot(this).weekYear:NaN}get weekNumber(){return this.isValid?Ot(this).weekNumber:NaN}get weekday(){return this.isValid?Ot(this).weekday:NaN}get ordinal(){return this.isValid?wt(this.c).ordinal:NaN}get monthShort(){return this.isValid?qe.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?qe.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?qe.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?qe.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=ct(this.c),s=this.zone.offset(r-e),o=this.zone.offset(r+e),i=this.zone.offset(r-s*n),a=this.zone.offset(r-o*n);if(i===a)return[this];const u=r-i*n,l=r-a*n,f=Je(u,i),m=Je(l,a);return f.hour===m.hour&&f.minute===m.minute&&f.second===m.second&&f.millisecond===m.millisecond?[ie(this,{ts:u}),ie(this,{ts:l})]:[this]}get isInLeapYear(){return Le(this.year)}get daysInMonth(){return st(this.year,this.month)}get daysInYear(){return this.isValid?Ve(this.year):NaN}get weeksInWeekYear(){return this.isValid?it(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:s}=_.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(V.instance(e),n)}toLocal(){return this.setZone(k.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=ne(e,k.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||r){const o=e.offset(this.ts),i=this.toObject();[s]=tt(i,o,e)}return ie(this,{ts:s,zone:e})}else return w.invalid(Ye(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return ie(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=ot(e,yn),r=!O(n.weekYear)||!O(n.weekNumber)||!O(n.weekday),s=!O(n.ordinal),o=!O(n.year),i=!O(n.month)||!O(n.day),a=o||i,u=n.weekYear||n.weekNumber;if((a||s)&&u)throw new Me("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&s)throw new Me("Can't mix ordinal dates with month/day");let l;r?l=cn({..._t(this.c),...n}):O(n.ordinal)?(l={...this.toObject(),...n},O(n.day)&&(l.day=Math.min(st(l.year,l.month),l.day))):l=fn({...wt(this.c),...n});const[f,m]=tt(l,this.o,this.zone);return ie(this,{ts:f,o:m})}plus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e);return ie(this,hn(this,n))}minus(e){if(!this.isValid)return this;const n=T.fromDurationLike(e).negate();return ie(this,hn(this,n))}startOf(e){if(!this.isValid)return this;const n={},r=T.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 s=Math.ceil(this.month/3);n.month=(s-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?_.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):St}toLocaleString(e=rt,n={}){return this.isValid?_.create(this.loc.clone(n),e).formatDateTime(this):St}toLocaleParts(e={}){return this.isValid?_.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:s=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const i=e==="extended";let a=Tt(this,i);return a+="T",a+=mn(this,i,n,r,s,o),a}toISODate({format:e="extended"}={}){return this.isValid?Tt(this,e==="extended"):null}toISOWeekDate(){return Be(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:s=!1,extendedZone:o=!1,format:i="extended"}={}){return this.isValid?(s?"T":"")+mn(this,i==="extended",n,e,r,o):null}toRFC2822(){return Be(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Be(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Tt(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(r&&(s+=" "),n?s+="z":e&&(s+="ZZ")),Be(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():St}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 T.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=Rs(n).map(T.normalizeUnit),i=e.valueOf()>this.valueOf(),a=i?this:e,u=i?e:this,l=Hi(a,u,o,s);return i?l.negate():l}diffNow(e="milliseconds",n={}){return this.diff(w.now(),e,n)}until(e){return this.isValid?b.fromDateTimes(this,e):this}hasSame(e,n){if(!this.isValid)return!1;const r=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(n)<=r&&r<=s.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||w.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(s=e.unit,o=void 0),pn(n,this.plus(r),{...e,numeric:"always",units:s,unit:o})}toRelativeCalendar(e={}){return this.isValid?pn(e.base||w.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(w.isDateTime))throw new Z("min requires all arguments be DateTimes");return en(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(w.isDateTime))throw new Z("max requires all arguments be DateTimes");return en(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:s=null,numberingSystem:o=null}=r,i=I.fromOpts({locale:s,numberingSystem:o,defaultToEN:!0});return Ir(i,e,n)}static fromStringExplain(e,n,r={}){return w.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return rt}static get DATE_MED(){return Ln}static get DATE_MED_WITH_WEEKDAY(){return Ss}static get DATE_FULL(){return An}static get DATE_HUGE(){return Un}static get TIME_SIMPLE(){return Rn}static get TIME_WITH_SECONDS(){return Zn}static get TIME_WITH_SHORT_OFFSET(){return zn}static get TIME_WITH_LONG_OFFSET(){return Hn}static get TIME_24_SIMPLE(){return Wn}static get TIME_24_WITH_SECONDS(){return jn}static get TIME_24_WITH_SHORT_OFFSET(){return qn}static get TIME_24_WITH_LONG_OFFSET(){return Gn}static get DATETIME_SHORT(){return Yn}static get DATETIME_SHORT_WITH_SECONDS(){return Jn}static get DATETIME_MED(){return Bn}static get DATETIME_MED_WITH_SECONDS(){return Qn}static get DATETIME_MED_WITH_WEEKDAY(){return Os}static get DATETIME_FULL(){return Kn}static get DATETIME_FULL_WITH_SECONDS(){return Xn}static get DATETIME_HUGE(){return er}static get DATETIME_HUGE_WITH_SECONDS(){return tr}}function be(t){if(w.isDateTime(t))return t;if(t&&t.valueOf&&ue(t.valueOf()))return w.fromJSDate(t);if(t&&typeof t=="object")return w.fromObject(t);throw new Z(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const Pr=$n("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=w.now().toMillis();e=t.token.expiration<n}return t.token.value&&!e}},persist:!0}),Lr=g.defineComponent({template:`
13
+ <div style='position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);'>
14
+ <h4 v-if='errorMsg.length'>
15
+ {{ errorMsg }}
16
+ </h4>
17
+ </div>
18
+ `,data(){return{errorMsg:"",authStore:{},router:{},route:{}}},async mounted(){if(this.authStore=Pr(),this.router=exports.appContext.config.globalProperties.$router,this.route=exports.appContext.config.globalProperties.$route,!Object.keys(this.route.query).length){window.location.href=q.appLoginUrl;return}const{token:t,oms:e,expirationTime:n}=this.route.query;this.handleUserFlow(t,e,n)},methods:{async handleUserFlow(t,e,n){if(await q.logout(),+n<w.now().toMillis()){console.error("User token has expired, redirecting to launchpad."),this.errorMsg="User token has expired, redirecting to launchpad.";const r=window.location.origin+"/login";window.location.href=`${q.appLoginUrl}?isLoggedOut=true&redirectUrl=${r}`;return}this.authStore.$patch({token:{value:t,expiration:n},oms:e}),q.loader.present("Logging in");try{await q.login({token:t,oms:e}),this.router.push("/")}catch(r){console.error(r),this.errorMsg="Unable to login. Please contact the administrator"}finally{q.loader.dismiss()}}}}),Ar=g.defineComponent({template:`
19
+ <img :src="imageUrl"/>
20
+ `,data(){return{imageUrl:Rt.defaultImgUrl}},props:["src","size"],mounted(){this.setImageUrl()},updated(){this.setImageUrl()},methods:{prepareImgUrl(t,e){return e?t.replace(/_(pico|icon|thumb|small|compact|medium|large|grande|original|1024x1024|2048x2048|master)+\./g,".").replace(/\.jpg|\.png|\.gif|\.jpeg/g,function(n){return"_"+e+n}):t},checkIfImageExists(t){return new Promise((e,n)=>{const r=new Image;r.onload=function(){e(!0)},r.onerror=function(){n(!1)},r.src=t})},setImageUrl(){if(this.src){const t=this.prepareImgUrl(this.src,this.size);this.checkIfImageExists(t).then(()=>{this.imageUrl=t})}}}}),fo=(t,e)=>{const n=(e.startsWith("http")?e.replace(/api\/?/,""):`https://${e}.hotwax.io/`)+`?token=${t}`;window.open(n,"_blank","noopener, noreferrer")};function ho(t){return typeof t=="object"&&t!==null}function Sn(t,e){return t=ho(t)?t:Object.create(null),new Proxy(t,{get(n,r,s){return r==="key"?Reflect.get(n,r,s):Reflect.get(n,r,s)||Reflect.get(e,r,s)}})}function mo(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function yo(t,e,n){return e.slice(0,-1).reduce((r,s)=>/^(__proto__)$/.test(s)?{}:r[s]=r[s]||{},t)[e[e.length-1]]=n,t}function go(t,e){return e.reduce((n,r)=>{const s=r.split(".");return yo(n,s,mo(t,s))},{})}function On(t,{storage:e,serializer:n,key:r,debug:s}){try{const o=e==null?void 0:e.getItem(r);o&&t.$patch(n==null?void 0:n.deserialize(o))}catch(o){s&&console.error(o)}}function Tn(t,{storage:e,serializer:n,key:r,paths:s,debug:o}){try{const i=Array.isArray(s)?go(t,s):t;e.setItem(r,n.serialize(i))}catch(i){o&&console.error(i)}}function po(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:s,pinia:o}=e;if(!r)return;if(!(s.$id in o.state.value)){const a=o._s.get(s.$id.replace("__hot:",""));a&&Promise.resolve().then(()=>a.$persist());return}const i=(Array.isArray(r)?r.map(a=>Sn(a,t)):[Sn(r,t)]).map(({storage:a=localStorage,beforeRestore:u=null,afterRestore:l=null,serializer:f={serialize:JSON.stringify,deserialize:JSON.parse},key:m=s.$id,paths:S=null,debug:h=!1})=>{var E;return{storage:a,beforeRestore:u,afterRestore:l,serializer:f,key:((E=t.key)!=null?E:$=>$)(typeof m=="string"?m:m(s.$id)),paths:S,debug:h}});s.$persist=()=>{i.forEach(a=>{Tn(s.$state,a)})},s.$hydrate=({runHooks:a=!0}={})=>{i.forEach(u=>{const{beforeRestore:l,afterRestore:f}=u;a&&(l==null||l(e)),On(s,u),a&&(f==null||f(e))})},i.forEach(a=>{const{beforeRestore:u,afterRestore:l}=a;u==null||u(e),On(s,a),l==null||l(e),s.$subscribe((f,m)=>{Tn(m,a)},{detached:!0})})}}var wo=po();const Ur=ds();Ur.use(wo);let q={},Rt={};exports.appContext={};let $e={},So={install(t,e){exports.appContext=t,t.use(Ur),t.component("Login",Lr),t.component("ShopifyImg",Ar),q.login=e.login,q.logout=e.logout,q.loader=e.loader,q.appLoginUrl=e.appLoginUrl,Rt.defaultImgUrl=e.defaultImgUrl,$e.getProductIdentificationPref=e.getProductIdentificationPref,$e.setProductIdentificationPref=e.setProductIdentificationPref}};exports.Login=Lr;exports.ShopifyImg=Ar;exports.dxpComponents=So;exports.goToOms=fo;exports.loginContext=q;exports.productIdentificationContext=$e;exports.shopifyImgContext=Rt;exports.useAuthStore=Pr;exports.useProductIdentificationStore=ys;
package/lib/index.d.ts CHANGED
@@ -1,13 +1,14 @@
1
- import { useProductIdentificationStore } from "./store/productIdentification";
2
- import { useAuthStore } from "./store/auth";
3
- import Login from "./components/Login";
4
- import ShopifyImg from "./components/ShopifyImg";
5
- import { goToOms } from "./utils";
6
- declare let loginContext: any;
7
- declare let shopifyImgContext: any;
8
- declare let appContext: any;
9
- declare let productIdentificationContext: any;
10
- export declare let dxpComponents: {
11
- install(app: any, options: any): void;
12
- };
13
- export { useProductIdentificationStore, useAuthStore, Login, loginContext, shopifyImgContext, ShopifyImg, goToOms, appContext, productIdentificationContext };
1
+ import { useProductIdentificationStore } from "./store/productIdentification";
2
+ import { useAuthStore } from "./store/auth";
3
+ import Login from "./components/Login";
4
+ import ShopifyImg from "./components/ShopifyImg";
5
+ import { goToOms } from "./utils";
6
+ declare let loginContext: {};
7
+ declare let shopifyImgContext: {};
8
+ declare let appContext: {};
9
+ declare let productIdentificationContext: {};
10
+ export declare let dxpComponents: {
11
+ install(app: any, options: any): void;
12
+ };
13
+ export { useProductIdentificationStore, useAuthStore, Login, loginContext, shopifyImgContext, ShopifyImg, goToOms, appContext, productIdentificationContext };
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAIlC,QAAA,IAAI,YAAY,IAAK,CAAC;AACtB,QAAA,IAAI,iBAAiB,IAAK,CAAC;AAC3B,QAAA,IAAI,UAAU,IAAK,CAAC;AACpB,QAAA,IAAI,4BAA4B,IAAK,CAAC;AACtC,eAAO,IAAI,aAAa;;CAcvB,CAAC;AACF,OAAO,EACL,6BAA6B,EAC7B,YAAY,EACZ,KAAK,EACL,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,OAAO,EACP,UAAU,EACV,4BAA4B,EAC7B,CAAC"}