@zyzgroup/core-vue 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -7
- package/ce/yz_custom_element.iife.js +87 -0
- package/ce/yz_custom_element.iife.js.map +1 -0
- package/ce/yz_custom_element.js +40526 -0
- package/ce/yz_custom_element.js.map +1 -0
- package/ce/yz_custom_element.umd.cjs +87 -0
- package/ce/yz_custom_element.umd.cjs.map +1 -0
- package/dist/Icon.ce.vue +57 -0
- package/package.json +7 -5
- package/types/components/Icon.ce.vue.d.ts +36 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
(function(co,oi){typeof exports=="object"&&typeof module<"u"?oi(exports):typeof define=="function"&&define.amd?define(["exports"],oi):(co=typeof globalThis<"u"?globalThis:co||self,oi(co.YZCustomElement={}))})(this,function(co){"use strict";/**
|
|
2
|
+
* @vue/shared v3.4.25
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function oi(e,t){const r=new Set(e.split(","));return t?n=>r.has(n.toLowerCase()):n=>r.has(n)}const Je={}.NODE_ENV!=="production"?Object.freeze({}):{},Gs={}.NODE_ENV!=="production"?Object.freeze([]):[],mr=()=>{},PC=()=>!1,Ra=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),hu=e=>e.startsWith("onUpdate:"),lr=Object.assign,ef=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},TC=Object.prototype.hasOwnProperty,Ce=(e,t)=>TC.call(e,t),ue=Array.isArray,Bs=e=>du(e)==="[object Map]",OC=e=>du(e)==="[object Set]",me=e=>typeof e=="function",wr=e=>typeof e=="string",Ia=e=>typeof e=="symbol",er=e=>e!==null&&typeof e=="object",rf=e=>(er(e)||me(e))&&me(e.then)&&me(e.catch),NC=Object.prototype.toString,du=e=>NC.call(e),nf=e=>du(e).slice(8,-1),AC=e=>du(e)==="[object Object]",of=e=>wr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ja=oi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),DC=oi("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),fu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},RC=/-(\w)/g,ki=fu(e=>e.replace(RC,(t,r)=>r?r.toUpperCase():"")),IC=/\B([A-Z])/g,fn=fu(e=>e.replace(IC,"-$1").toLowerCase()),pu=fu(e=>e.charAt(0).toUpperCase()+e.slice(1)),qo=fu(e=>e?`on${pu(e)}`:""),Ko=(e,t)=>!Object.is(e,t),Fa=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},_1=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},jC=e=>{const t=parseFloat(e);return isNaN(t)?e:t},b1=e=>{const t=wr(e)?Number(e):NaN;return isNaN(t)?e:t};let w1;const mu=()=>w1||(w1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gu(e){if(ue(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=wr(n)?UC(n):gu(n);if(i)for(const o in i)t[o]=i[o]}return t}else if(wr(e)||er(e))return e}const FC=/;(?![^(]*\))/g,MC=/:([^]+)/,LC=/\/\*[^]*?\*\//g;function UC(e){const t={};return e.replace(LC,"").split(FC).forEach(r=>{if(r){const n=r.split(MC);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function sf(e){let t="";if(wr(e))t=e;else if(ue(e))for(let r=0;r<e.length;r++){const n=sf(e[r]);n&&(t+=n+" ")}else if(er(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const VC=oi("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function x1(e){return!!e||e===""}/**
|
|
6
|
+
* @vue/reactivity v3.4.25
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/function uo(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Ln;class zC{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ln,!t&&Ln&&(this.index=(Ln.scopes||(Ln.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Ln;try{return Ln=this,t()}finally{Ln=r}}else({}).NODE_ENV!=="production"&&uo("cannot run an inactive effect scope.")}on(){Ln=this}off(){Ln=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function GC(e,t=Ln){t&&t.active&&t.effects.push(e)}function BC(){return Ln}let Yo;class af{constructor(t,r,n,i){this.fn=t,this.trigger=r,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,GC(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Pi();for(let t=0;t<this._depsLength;t++){const r=this.deps[t];if(r.computed&&(HC(r.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ti()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ho,r=Yo;try{return ho=!0,Yo=this,this._runnings++,$1(this),this.fn()}finally{S1(this),this._runnings--,Yo=r,ho=t}}stop(){var t;this.active&&($1(this),S1(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function HC(e){return e.value}function $1(e){e._trackId++,e._depsLength=0}function S1(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)E1(e.deps[t],e);e.deps.length=e._depsLength}}function E1(e,t){const r=e.get(t);r!==void 0&&t._trackId!==r&&(e.delete(t),e.size===0&&e.cleanup())}let ho=!0,lf=0;const C1=[];function Pi(){C1.push(ho),ho=!1}function Ti(){const e=C1.pop();ho=e===void 0?!0:e}function cf(){lf++}function uf(){for(lf--;!lf&&hf.length;)hf.shift()()}function k1(e,t,r){var n;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&E1(i,e),e.deps[e._depsLength++]=t):e._depsLength++,{}.NODE_ENV!=="production"&&((n=e.onTrack)==null||n.call(e,lr({effect:e},r)))}}const hf=[];function P1(e,t,r){var n;cf();for(const i of e.keys()){let o;i._dirtyLevel<t&&(o??(o=e.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(o??(o=e.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((n=i.onTrigger)==null||n.call(i,lr({effect:i},r))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&hf.push(i.scheduler)))}uf()}const T1=(e,t)=>{const r=new Map;return r.cleanup=e,r.computed=t,r},df=new WeakMap,Xo=Symbol({}.NODE_ENV!=="production"?"iterate":""),ff=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function Ir(e,t,r){if(ho&&Yo){let n=df.get(e);n||df.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=T1(()=>n.delete(r))),k1(Yo,i,{}.NODE_ENV!=="production"?{target:e,type:t,key:r}:void 0)}}function si(e,t,r,n,i,o){const s=df.get(e);if(!s)return;let a=[];if(t==="clear")a=[...s.values()];else if(r==="length"&&ue(e)){const c=Number(n);s.forEach((l,u)=>{(u==="length"||!Ia(u)&&u>=c)&&a.push(l)})}else switch(r!==void 0&&a.push(s.get(r)),t){case"add":ue(e)?of(r)&&a.push(s.get("length")):(a.push(s.get(Xo)),Bs(e)&&a.push(s.get(ff)));break;case"delete":ue(e)||(a.push(s.get(Xo)),Bs(e)&&a.push(s.get(ff)));break;case"set":Bs(e)&&a.push(s.get(Xo));break}cf();for(const c of a)c&&P1(c,4,{}.NODE_ENV!=="production"?{target:e,type:t,key:r,newValue:n,oldValue:i,oldTarget:o}:void 0);uf()}const qC=oi("__proto__,__v_isRef,__isVue"),O1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ia)),N1=KC();function KC(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=xe(this);for(let o=0,s=this.length;o<s;o++)Ir(n,"get",o+"");const i=n[t](...r);return i===-1||i===!1?n[t](...r.map(xe)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Pi(),cf();const n=xe(this)[t].apply(this,r);return uf(),Ti(),n}}),e}function YC(e){Ia(e)||(e=String(e));const t=xe(this);return Ir(t,"has",e),t.hasOwnProperty(e)}class A1{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){const i=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(i?o?G1:z1:o?V1:U1).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=ue(t);if(!i){if(s&&Ce(N1,r))return Reflect.get(N1,r,n);if(r==="hasOwnProperty")return YC}const a=Reflect.get(t,r,n);return(Ia(r)?O1.has(r):qC(r))||(i||Ir(t,"get",r),o)?a:Ur(a)?s&&of(r)?a:a.value:er(a)?i?B1(a):mf(a):a}}class D1 extends A1{constructor(t=!1){super(!1,t)}set(t,r,n,i){let o=t[r];if(!this._isShallow){const c=qs(o);if(!Ks(n)&&!qs(n)&&(o=xe(o),n=xe(n)),!ue(t)&&Ur(o)&&!Ur(n))return c?!1:(o.value=n,!0)}const s=ue(t)&&of(r)?Number(r)<t.length:Ce(t,r),a=Reflect.set(t,r,n,i);return t===xe(i)&&(s?Ko(n,o)&&si(t,"set",r,n,o):si(t,"add",r,n)),a}deleteProperty(t,r){const n=Ce(t,r),i=t[r],o=Reflect.deleteProperty(t,r);return o&&n&&si(t,"delete",r,void 0,i),o}has(t,r){const n=Reflect.has(t,r);return(!Ia(r)||!O1.has(r))&&Ir(t,"has",r),n}ownKeys(t){return Ir(t,"iterate",ue(t)?"length":Xo),Reflect.ownKeys(t)}}class R1 extends A1{constructor(t=!1){super(!0,t)}set(t,r){return{}.NODE_ENV!=="production"&&uo(`Set operation on key "${String(r)}" failed: target is readonly.`,t),!0}deleteProperty(t,r){return{}.NODE_ENV!=="production"&&uo(`Delete operation on key "${String(r)}" failed: target is readonly.`,t),!0}}const XC=new D1,JC=new R1,WC=new D1(!0),QC=new R1(!0),pf=e=>e,yu=e=>Reflect.getPrototypeOf(e);function vu(e,t,r=!1,n=!1){e=e.__v_raw;const i=xe(e),o=xe(t);r||(Ko(t,o)&&Ir(i,"get",t),Ir(i,"get",o));const{has:s}=yu(i),a=n?pf:r?vf:yf;if(s.call(i,t))return a(e.get(t));if(s.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function _u(e,t=!1){const r=this.__v_raw,n=xe(r),i=xe(e);return t||(Ko(e,i)&&Ir(n,"has",e),Ir(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function bu(e,t=!1){return e=e.__v_raw,!t&&Ir(xe(e),"iterate",Xo),Reflect.get(e,"size",e)}function I1(e){e=xe(e);const t=xe(this);return yu(t).has.call(t,e)||(t.add(e),si(t,"add",e,e)),this}function j1(e,t){t=xe(t);const r=xe(this),{has:n,get:i}=yu(r);let o=n.call(r,e);o?{}.NODE_ENV!=="production"&&L1(r,n,e):(e=xe(e),o=n.call(r,e));const s=i.call(r,e);return r.set(e,t),o?Ko(t,s)&&si(r,"set",e,t,s):si(r,"add",e,t),this}function F1(e){const t=xe(this),{has:r,get:n}=yu(t);let i=r.call(t,e);i?{}.NODE_ENV!=="production"&&L1(t,r,e):(e=xe(e),i=r.call(t,e));const o=n?n.call(t,e):void 0,s=t.delete(e);return i&&si(t,"delete",e,void 0,o),s}function M1(){const e=xe(this),t=e.size!==0,r={}.NODE_ENV!=="production"?Bs(e)?new Map(e):new Set(e):void 0,n=e.clear();return t&&si(e,"clear",void 0,void 0,r),n}function wu(e,t){return function(n,i){const o=this,s=o.__v_raw,a=xe(s),c=t?pf:e?vf:yf;return!e&&Ir(a,"iterate",Xo),s.forEach((l,u)=>n.call(i,c(l),c(u),o))}}function xu(e,t,r){return function(...n){const i=this.__v_raw,o=xe(i),s=Bs(o),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,l=i[e](...n),u=r?pf:t?vf:yf;return!t&&Ir(o,"iterate",c?ff:Xo),{next(){const{value:h,done:f}=l.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function fo(e){return function(...t){if({}.NODE_ENV!=="production"){const r=t[0]?`on key "${t[0]}" `:"";uo(`${pu(e)} operation ${r}failed: target is readonly.`,xe(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function ZC(){const e={get(o){return vu(this,o)},get size(){return bu(this)},has:_u,add:I1,set:j1,delete:F1,clear:M1,forEach:wu(!1,!1)},t={get(o){return vu(this,o,!1,!0)},get size(){return bu(this)},has:_u,add:I1,set:j1,delete:F1,clear:M1,forEach:wu(!1,!0)},r={get(o){return vu(this,o,!0)},get size(){return bu(this,!0)},has(o){return _u.call(this,o,!0)},add:fo("add"),set:fo("set"),delete:fo("delete"),clear:fo("clear"),forEach:wu(!0,!1)},n={get(o){return vu(this,o,!0,!0)},get size(){return bu(this,!0)},has(o){return _u.call(this,o,!0)},add:fo("add"),set:fo("set"),delete:fo("delete"),clear:fo("clear"),forEach:wu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=xu(o,!1,!1),r[o]=xu(o,!0,!1),t[o]=xu(o,!1,!0),n[o]=xu(o,!0,!0)}),[e,r,t,n]}const[tk,ek,rk,nk]=ZC();function $u(e,t){const r=t?e?nk:rk:e?ek:tk;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Ce(r,i)&&i in n?r:n,i,o)}const ik={get:$u(!1,!1)},ok={get:$u(!1,!0)},sk={get:$u(!0,!1)},ak={get:$u(!0,!0)};function L1(e,t,r){const n=xe(r);if(n!==r&&t.call(e,n)){const i=nf(e);uo(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const U1=new WeakMap,V1=new WeakMap,z1=new WeakMap,G1=new WeakMap;function lk(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ck(e){return e.__v_skip||!Object.isExtensible(e)?0:lk(nf(e))}function mf(e){return qs(e)?e:Su(e,!1,XC,ik,U1)}function uk(e){return Su(e,!1,WC,ok,V1)}function B1(e){return Su(e,!0,JC,sk,z1)}function Oi(e){return Su(e,!0,QC,ak,G1)}function Su(e,t,r,n,i){if(!er(e))return{}.NODE_ENV!=="production"&&uo(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=ck(e);if(s===0)return e;const a=new Proxy(e,s===2?n:r);return i.set(e,a),a}function Hs(e){return qs(e)?Hs(e.__v_raw):!!(e&&e.__v_isReactive)}function qs(e){return!!(e&&e.__v_isReadonly)}function Ks(e){return!!(e&&e.__v_isShallow)}function gf(e){return e?!!e.__v_raw:!1}function xe(e){const t=e&&e.__v_raw;return t?xe(t):e}function hk(e){return Object.isExtensible(e)&&_1(e,"__v_skip",!0),e}const yf=e=>er(e)?mf(e):e,vf=e=>er(e)?B1(e):e,dk="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class H1{constructor(t,r,n,i){this.getter=t,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new af(()=>t(this._value),()=>_f(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=xe(this);return(!t._cacheable||t.effect.dirty)&&Ko(t._value,t._value=t.effect.run())&&_f(t,4),pk(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&uo(dk,`
|
|
10
|
+
|
|
11
|
+
getter: `,this.getter),_f(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function fk(e,t,r=!1){let n,i;const o=me(e);o?(n=e,i={}.NODE_ENV!=="production"?()=>{uo("Write operation failed: computed value is readonly")}:mr):(n=e.get,i=e.set);const s=new H1(n,i,o||!i,r);return{}.NODE_ENV!=="production"&&t&&!r&&(s.effect.onTrack=t.onTrack,s.effect.onTrigger=t.onTrigger),s}function pk(e){var t;ho&&Yo&&(e=xe(e),k1(Yo,(t=e.dep)!=null?t:e.dep=T1(()=>e.dep=void 0,e instanceof H1?e:void 0),{}.NODE_ENV!=="production"?{target:e,type:"get",key:"value"}:void 0))}function _f(e,t=4,r){e=xe(e);const n=e.dep;n&&P1(n,t,{}.NODE_ENV!=="production"?{target:e,type:"set",key:"value",newValue:r}:void 0)}function Ur(e){return!!(e&&e.__v_isRef===!0)}function q1(e){return Ur(e)?e.value:e}const mk={get:(e,t,r)=>q1(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return Ur(i)&&!Ur(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function K1(e){return Hs(e)?e:new Proxy(e,mk)}/**
|
|
12
|
+
* @vue/runtime-core v3.4.25
|
|
13
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14
|
+
* @license MIT
|
|
15
|
+
**/const Jo=[];function Eu(e){Jo.push(e)}function Cu(){Jo.pop()}function Vt(e,...t){Pi();const r=Jo.length?Jo[Jo.length-1].component:null,n=r&&r.appContext.config.warnHandler,i=gk();if(n)Ni(n,r,11,[e+t.map(o=>{var s,a;return(a=(s=o.toString)==null?void 0:s.call(o))!=null?a:JSON.stringify(o)}).join(""),r&&r.proxy,i.map(({vnode:o})=>`at <${zu(r,o.type)}>`).join(`
|
|
16
|
+
`),i]);else{const o=[`[Vue warn]: ${e}`,...t];i.length&&o.push(`
|
|
17
|
+
`,...yk(i)),console.warn(...o)}Ti()}function gk(){let e=Jo[Jo.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function yk(e){const t=[];return e.forEach((r,n)=>{t.push(...n===0?[]:[`
|
|
18
|
+
`],...vk(r))}),t}function vk({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,i=` at <${zu(e.component,e.type,n)}`,o=">"+r;return e.props?[i,..._k(e.props),o]:[i+o]}function _k(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(n=>{t.push(...Y1(n,e[n]))}),r.length>3&&t.push(" ..."),t}function Y1(e,t,r){return wr(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:Ur(t)?(t=Y1(e,xe(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):me(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=xe(t),r?t:[`${e}=`,t])}const bf={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Ni(e,t,r,n){try{return n?e(...n):e()}catch(i){Ma(i,t,r)}}function Un(e,t,r,n){if(me(e)){const i=Ni(e,t,r,n);return i&&rf(i)&&i.catch(o=>{Ma(o,t,r)}),i}if(ue(e)){const i=[];for(let o=0;o<e.length;o++)i.push(Un(e[o],t,r,n));return i}else({}).NODE_ENV!=="production"&&Vt(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function Ma(e,t,r,n=!0){const i=t?t.vnode:null;if(t){let o=t.parent;const s=t.proxy,a={}.NODE_ENV!=="production"?bf[r]:`https://vuejs.org/error-reference/#runtime-${r}`;for(;o;){const l=o.ec;if(l){for(let u=0;u<l.length;u++)if(l[u](e,s,a)===!1)return}o=o.parent}const c=t.appContext.config.errorHandler;if(c){Pi(),Ni(c,null,10,[e,s,a]),Ti();return}}bk(e,r,i,n)}function bk(e,t,r,n=!0){if({}.NODE_ENV!=="production"){const i=bf[t];if(r&&Eu(r),Vt(`Unhandled error${i?` during execution of ${i}`:""}`),r&&Cu(),n)throw e;console.error(e)}else console.error(e)}let La=!1,wf=!1;const Vr=[];let ai=0;const Ys=[];let Ai=null,po=0;const X1=Promise.resolve();let xf=null;const wk=100;function J1(e){const t=xf||X1;return e?t.then(this?e.bind(this):e):t}function xk(e){let t=ai+1,r=Vr.length;for(;t<r;){const n=t+r>>>1,i=Vr[n],o=Ua(i);o<e||o===e&&i.pre?t=n+1:r=n}return t}function ku(e){(!Vr.length||!Vr.includes(e,La&&e.allowRecurse?ai+1:ai))&&(e.id==null?Vr.push(e):Vr.splice(xk(e.id),0,e),W1())}function W1(){!La&&!wf&&(wf=!0,xf=X1.then(ev))}function $k(e){const t=Vr.indexOf(e);t>ai&&Vr.splice(t,1)}function Q1(e){ue(e)?Ys.push(...e):(!Ai||!Ai.includes(e,e.allowRecurse?po+1:po))&&Ys.push(e),W1()}function Z1(e,t,r=La?ai+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);r<Vr.length;r++){const n=Vr[r];if(n&&n.pre){if(e&&n.id!==e.uid||{}.NODE_ENV!=="production"&&$f(t,n))continue;Vr.splice(r,1),r--,n()}}}function tv(e){if(Ys.length){const t=[...new Set(Ys)].sort((r,n)=>Ua(r)-Ua(n));if(Ys.length=0,Ai){Ai.push(...t);return}for(Ai=t,{}.NODE_ENV!=="production"&&(e=e||new Map),po=0;po<Ai.length;po++)({}).NODE_ENV!=="production"&&$f(e,Ai[po])||Ai[po]();Ai=null,po=0}}const Ua=e=>e.id==null?1/0:e.id,Sk=(e,t)=>{const r=Ua(e)-Ua(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function ev(e){wf=!1,La=!0,{}.NODE_ENV!=="production"&&(e=e||new Map),Vr.sort(Sk);const t={}.NODE_ENV!=="production"?r=>$f(e,r):mr;try{for(ai=0;ai<Vr.length;ai++){const r=Vr[ai];if(r&&r.active!==!1){if({}.NODE_ENV!=="production"&&t(r))continue;Ni(r,null,14)}}}finally{ai=0,Vr.length=0,tv(e),La=!1,xf=null,(Vr.length||Ys.length)&&ev(e)}}function $f(e,t){if(!e.has(t))e.set(t,1);else{const r=e.get(t);if(r>wk){const n=t.ownerInstance,i=n&&Xv(n.type);return Ma(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,r+1)}}let Wo=!1;const Xs=new Set;({}).NODE_ENV!=="production"&&(mu().__VUE_HMR_RUNTIME__={createRecord:Sf(rv),rerender:Sf(kk),reload:Sf(Pk)});const Qo=new Map;function Ek(e){const t=e.type.__hmrId;let r=Qo.get(t);r||(rv(t,e.type),r=Qo.get(t)),r.instances.add(e)}function Ck(e){Qo.get(e.type.__hmrId).instances.delete(e)}function rv(e,t){return Qo.has(e)?!1:(Qo.set(e,{initialDef:Va(t),instances:new Set}),!0)}function Va(e){return Jv(e)?e.__vccOpts:e}function kk(e,t){const r=Qo.get(e);r&&(r.initialDef.render=t,[...r.instances].forEach(n=>{t&&(n.render=t,Va(n.type).render=t),n.renderCache=[],Wo=!0,n.effect.dirty=!0,n.update(),Wo=!1}))}function Pk(e,t){const r=Qo.get(e);if(!r)return;t=Va(t),nv(r.initialDef,t);const n=[...r.instances];for(const i of n){const o=Va(i.type);Xs.has(o)||(o!==r.initialDef&&nv(o,t),Xs.add(o)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(Xs.add(o),i.ceReload(t.styles),Xs.delete(o)):i.parent?(i.parent.effect.dirty=!0,ku(i.parent.update)):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Q1(()=>{for(const i of n)Xs.delete(Va(i.type))})}function nv(e,t){lr(e,t);for(const r in e)r!=="__file"&&!(r in t)&&delete e[r]}function Sf(e){return(t,r)=>{try{return e(t,r)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let li,za=[],Ef=!1;function Ga(e,...t){li?li.emit(e,...t):Ef||za.push({event:e,args:t})}function iv(e,t){var r,n;li=e,li?(li.enabled=!0,za.forEach(({event:i,args:o})=>li.emit(i,...o)),za=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{iv(o,t)}),setTimeout(()=>{li||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ef=!0,za=[])},3e3)):(Ef=!0,za=[])}function Tk(e,t){Ga("app:init",e,t,{Fragment:ci,Text:Ka,Comment:Vn,Static:Mu})}function Ok(e){Ga("app:unmount",e)}const Nk=Cf("component:added"),ov=Cf("component:updated"),Ak=Cf("component:removed"),Dk=e=>{li&&typeof li.cleanupBuffer=="function"&&!li.cleanupBuffer(e)&&Ak(e)};/*! #__NO_SIDE_EFFECTS__ */function Cf(e){return t=>{Ga(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Rk=sv("perf:start"),Ik=sv("perf:end");function sv(e){return(t,r,n)=>{Ga(e,t.appContext.app,t.uid,t,r,n)}}function jk(e,t,r){Ga("component:emit",e.appContext.app,e,t,r)}function Fk(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Je;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=e;if(u)if(!(t in u))(!h||!(qo(t)in h))&&Vt(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${qo(t)}" prop.`);else{const f=u[t];me(f)&&(f(...r)||Vt(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=r;const o=t.startsWith("update:"),s=o&&t.slice(7);if(s&&s in n){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:h,trim:f}=n[u]||Je;f&&(i=r.map(d=>wr(d)?d.trim():d)),h&&(i=r.map(jC))}if({}.NODE_ENV!=="production"&&jk(e,t,i),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[qo(u)]&&Vt(`Event "${u}" is emitted in component ${zu(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${fn(t)}" instead of "${t}".`)}let a,c=n[a=qo(t)]||n[a=qo(ki(t))];!c&&o&&(c=n[a=qo(fn(t))]),c&&Un(c,e,6,i);const l=n[a+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Un(l,e,6,i)}}function av(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let s={},a=!1;if(!me(e)){const c=l=>{const u=av(l,t,!0);u&&(a=!0,lr(s,u))};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!a?(er(e)&&n.set(e,null),null):(ue(o)?o.forEach(c=>s[c]=null):lr(s,o),er(e)&&n.set(e,s),s)}function Pu(e,t){return!e||!Ra(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ce(e,t[0].toLowerCase()+t.slice(1))||Ce(e,fn(t))||Ce(e,t))}let pn=null,lv=null;function Tu(e){const t=pn;return pn=e,lv=e&&e.type.__scopeId||null,t}function Mk(e,t=pn,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&Lv(-1);const o=Tu(t);let s;try{s=e(...i)}finally{Tu(o),n._d&&Lv(1)}return{}.NODE_ENV!=="production"&&ov(t),s};return n._n=!0,n._c=!0,n._d=!0,n}let kf=!1;function Ou(){kf=!0}function Pf(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:c,render:l,renderCache:u,props:h,data:f,setupState:d,ctx:p,inheritAttrs:m}=e,v=Tu(e);let b,_;({}).NODE_ENV!=="production"&&(kf=!1);try{if(r.shapeFlag&4){const A=i||n,E={}.NODE_ENV!=="production"&&d.__isScriptSetup?new Proxy(A,{get(N,D,U){return Vt(`Property '${String(D)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(N,D,U)}}):A;b=Gn(l.call(E,A,u,{}.NODE_ENV!=="production"?Oi(h):h,d,f,p)),_=a}else{const A=t;({}).NODE_ENV!=="production"&&a===h&&Ou(),b=Gn(A.length>1?A({}.NODE_ENV!=="production"?Oi(h):h,{}.NODE_ENV!=="production"?{get attrs(){return Ou(),a},slots:s,emit:c}:{attrs:a,slots:s,emit:c}):A({}.NODE_ENV!=="production"?Oi(h):h,null)),_=t.props?a:Lk(a)}}catch(A){Ya.length=0,Ma(A,e,1),b=mn(Vn)}let g=b,S;if({}.NODE_ENV!=="production"&&b.patchFlag>0&&b.patchFlag&2048&&([g,S]=cv(b)),_&&m!==!1){const A=Object.keys(_),{shapeFlag:E}=g;if(A.length){if(E&7)o&&A.some(hu)&&(_=Uk(_,o)),g=go(g,_);else if({}.NODE_ENV!=="production"&&!kf&&g.type!==Vn){const N=Object.keys(a),D=[],U=[];for(let G=0,K=N.length;G<K;G++){const W=N[G];Ra(W)?hu(W)||D.push(W[2].toLowerCase()+W.slice(3)):U.push(W)}U.length&&Vt(`Extraneous non-props attributes (${U.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),D.length&&Vt(`Extraneous non-emits event listeners (${D.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return r.dirs&&({}.NODE_ENV!=="production"&&!uv(g)&&Vt("Runtime directive used on component with non-element root node. The directives will not function as intended."),g=go(g),g.dirs=g.dirs?g.dirs.concat(r.dirs):r.dirs),r.transition&&({}.NODE_ENV!=="production"&&!uv(g)&&Vt("Component inside <Transition> renders non-element root node that cannot be animated."),g.transition=r.transition),{}.NODE_ENV!=="production"&&S?S(g):b=g,Tu(v),b}const cv=e=>{const t=e.children,r=e.dynamicChildren,n=Tf(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return cv(n)}else return[e,void 0];const i=t.indexOf(n),o=r?r.indexOf(n):-1,s=a=>{t[i]=a,r&&(o>-1?r[o]=a:a.patchFlag>0&&(e.dynamicChildren=[...r,a]))};return[Gn(n),s]};function Tf(e,t=!0){let r;for(let n=0;n<e.length;n++){const i=e[n];if(Ja(i)){if(i.type!==Vn||i.children==="v-if"){if(r)return;if(r=i,{}.NODE_ENV!=="production"&&t&&r.patchFlag>0&&r.patchFlag&2048)return Tf(r.children)}}else return}return r}const Lk=e=>{let t;for(const r in e)(r==="class"||r==="style"||Ra(r))&&((t||(t={}))[r]=e[r]);return t},Uk=(e,t)=>{const r={};for(const n in e)(!hu(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r},uv=e=>e.shapeFlag&7||e.type===Vn;function Vk(e,t,r){const{props:n,children:i,component:o}=e,{props:s,children:a,patchFlag:c}=t,l=o.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&Wo||t.dirs||t.transition)return!0;if(r&&c>=0){if(c&1024)return!0;if(c&16)return n?hv(n,s,l):!!s;if(c&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(s[f]!==n[f]&&!Pu(l,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===s?!1:n?s?hv(n,s,l):!0:!!s;return!1}function hv(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const o=n[i];if(t[o]!==e[o]&&!Pu(r,o))return!0}return!1}function zk({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const Gk=Symbol.for("v-ndc"),Bk=e=>e.__isSuspense;function Hk(e,t){t&&t.pendingBranch?ue(e)?t.effects.push(...e):t.effects.push(e):Q1(e)}const qk=Symbol.for("v-scx"),Kk=()=>{{const e=Iu(qk);return e||{}.NODE_ENV!=="production"&&Vt("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}},Nu={};function Of(e,t,r){return{}.NODE_ENV!=="production"&&!me(t)&&Vt("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),dv(e,t,r)}function dv(e,t,{immediate:r,deep:n,flush:i,once:o,onTrack:s,onTrigger:a}=Je){if(t&&o){const N=t;t=(...D)=>{N(...D),E()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&Vt('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!t&&(r!==void 0&&Vt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&Vt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&Vt('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const c=N=>{Vt("Invalid watch source: ",N,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},l=Or,u=N=>n===!0?N:Js(N,n===!1?1:void 0);let h,f=!1,d=!1;if(Ur(e)?(h=()=>e.value,f=Ks(e)):Hs(e)?(h=()=>u(e),f=!0):ue(e)?(d=!0,f=e.some(N=>Hs(N)||Ks(N)),h=()=>e.map(N=>{if(Ur(N))return N.value;if(Hs(N))return u(N);if(me(N))return Ni(N,l,2);({}).NODE_ENV!=="production"&&c(N)})):me(e)?t?h=()=>Ni(e,l,2):h=()=>(p&&p(),Un(e,l,3,[m])):(h=mr,{}.NODE_ENV!=="production"&&c(e)),t&&n){const N=h;h=()=>Js(N())}let p,m=N=>{p=S.onStop=()=>{Ni(N,l,4),p=S.onStop=void 0}},v;if(Vu)if(m=mr,t?r&&Un(t,l,3,[h(),d?[]:void 0,m]):h(),i==="sync"){const N=Kk();v=N.__watcherHandles||(N.__watcherHandles=[])}else return mr;let b=d?new Array(e.length).fill(Nu):Nu;const _=()=>{if(!(!S.active||!S.dirty))if(t){const N=S.run();(n||f||(d?N.some((D,U)=>Ko(D,b[U])):Ko(N,b)))&&(p&&p(),Un(t,l,3,[N,b===Nu?void 0:d&&b[0]===Nu?[]:b,m]),b=N)}else S.run()};_.allowRecurse=!!t;let g;i==="sync"?g=_:i==="post"?g=()=>rn(_,l&&l.suspense):(_.pre=!0,l&&(_.id=l.uid),g=()=>ku(_));const S=new af(h,mr,g),A=BC(),E=()=>{S.stop(),A&&ef(A.effects,S)};return{}.NODE_ENV!=="production"&&(S.onTrack=s,S.onTrigger=a),t?r?_():b=S.run():i==="post"?rn(S.run.bind(S),l&&l.suspense):S.run(),v&&v.push(E),E}function Yk(e,t,r){const n=this.proxy,i=wr(e)?e.includes(".")?fv(n,e):()=>n[e]:e.bind(n,n);let o;me(t)?o=t:(o=t.handler,r=t);const s=Qa(this),a=dv(i,o.bind(n),r);return s(),a}function fv(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}function Js(e,t,r=0,n){if(!er(e)||e.__v_skip)return e;if(t&&t>0){if(r>=t)return e;r++}if(n=n||new Set,n.has(e))return e;if(n.add(e),Ur(e))Js(e.value,t,r,n);else if(ue(e))for(let i=0;i<e.length;i++)Js(e[i],t,r,n);else if(OC(e)||Bs(e))e.forEach(i=>{Js(i,t,r,n)});else if(AC(e))for(const i in e)Js(e[i],t,r,n);return e}function pv(e){DC(e)&&Vt("Do not use built-in directive ids as custom directive id: "+e)}function Zo(e,t,r,n){const i=e.dirs,o=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let c=a.dir[n];c&&(Pi(),Un(c,r,8,[e.el,a,e,t]),Ti())}}/*! #__NO_SIDE_EFFECTS__ */function Nf(e,t){return me(e)?(()=>lr({name:e.name},t,{setup:e}))():e}const Au=e=>!!e.type.__asyncLoader,Af=e=>e.type.__isKeepAlive;function Xk(e,t){mv(e,"a",t)}function Jk(e,t){mv(e,"da",t)}function mv(e,t,r=Or){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Du(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Af(i.parent.vnode)&&Wk(n,t,r,i),i=i.parent}}function Wk(e,t,r,n){const i=Du(t,e,n,!0);gv(()=>{ef(n[t],i)},r)}function Du(e,t,r=Or,n=!1){if(r){const i=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(r.isUnmounted)return;Pi();const a=Qa(r),c=Un(t,r,e,s);return a(),Ti(),c});return n?i.unshift(o):i.push(o),o}else if({}.NODE_ENV!=="production"){const i=qo(bf[e].replace(/ hook$/,""));Vt(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Di=e=>(t,r=Or)=>(!Vu||e==="sp")&&Du(e,(...n)=>t(...n),r),Qk=Di("bm"),Zk=Di("m"),t6=Di("bu"),e6=Di("u"),r6=Di("bum"),gv=Di("um"),n6=Di("sp"),i6=Di("rtg"),o6=Di("rtc");function s6(e,t=Or){Du("ec",e,t)}const Df=e=>e?Hv(e)?Yf(e)||e.proxy:Df(e.parent):null,ts=lr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>({}).NODE_ENV!=="production"?Oi(e.props):e.props,$attrs:e=>({}).NODE_ENV!=="production"?Oi(e.attrs):e.attrs,$slots:e=>({}).NODE_ENV!=="production"?Oi(e.slots):e.slots,$refs:e=>({}).NODE_ENV!=="production"?Oi(e.refs):e.refs,$parent:e=>Df(e.parent),$root:e=>Df(e.root),$emit:e=>e.emit,$options:e=>Ff(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ku(e.update)}),$nextTick:e=>e.n||(e.n=J1.bind(e.proxy)),$watch:e=>Yk.bind(e)}),Rf=e=>e==="_"||e==="$",If=(e,t)=>e!==Je&&!e.__isScriptSetup&&Ce(e,t),yv={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:o,accessCache:s,type:a,appContext:c}=e;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let l;if(t[0]!=="$"){const d=s[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return o[t]}else{if(If(n,t))return s[t]=1,n[t];if(i!==Je&&Ce(i,t))return s[t]=2,i[t];if((l=e.propsOptions[0])&&Ce(l,t))return s[t]=3,o[t];if(r!==Je&&Ce(r,t))return s[t]=4,r[t];jf&&(s[t]=0)}}const u=ts[t];let h,f;if(u)return t==="$attrs"?(Ir(e.attrs,"get",""),{}.NODE_ENV!=="production"&&Ou()):{}.NODE_ENV!=="production"&&t==="$slots"&&Ir(e,"get",t),u(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(r!==Je&&Ce(r,t))return s[t]=4,r[t];if(f=c.config.globalProperties,Ce(f,t))return f[t];({}).NODE_ENV!=="production"&&pn&&(!wr(t)||t.indexOf("__v")!==0)&&(i!==Je&&Rf(t[0])&&Ce(i,t)?Vt(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===pn&&Vt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,r){const{data:n,setupState:i,ctx:o}=e;return If(i,t)?(i[t]=r,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&Ce(i,t)?(Vt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==Je&&Ce(n,t)?(n[t]=r,!0):Ce(e.props,t)?({}.NODE_ENV!=="production"&&Vt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?({}.NODE_ENV!=="production"&&Vt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(o,t,{enumerable:!0,configurable:!0,value:r}):o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:o}},s){let a;return!!r[s]||e!==Je&&Ce(e,s)||If(t,s)||(a=o[0])&&Ce(a,s)||Ce(n,s)||Ce(ts,s)||Ce(i.config.globalProperties,s)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ce(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};({}).NODE_ENV!=="production"&&(yv.ownKeys=e=>(Vt("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function a6(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(ts).forEach(r=>{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,get:()=>ts[r](e),set:mr})}),t}function l6(e){const{ctx:t,propsOptions:[r]}=e;r&&Object.keys(r).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e.props[n],set:mr})})}function c6(e){const{ctx:t,setupState:r}=e;Object.keys(xe(r)).forEach(n=>{if(!r.__isScriptSetup){if(Rf(n[0])){Vt(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r[n],set:mr})}})}function vv(e){return ue(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function u6(){const e=Object.create(null);return(t,r)=>{e[r]?Vt(`${t} property "${r}" is already defined in ${e[r]}.`):e[r]=t}}let jf=!0;function h6(e){const t=Ff(e),r=e.proxy,n=e.ctx;jf=!1,t.beforeCreate&&_v(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:a,provide:c,inject:l,created:u,beforeMount:h,mounted:f,beforeUpdate:d,updated:p,activated:m,deactivated:v,beforeDestroy:b,beforeUnmount:_,destroyed:g,unmounted:S,render:A,renderTracked:E,renderTriggered:N,errorCaptured:D,serverPrefetch:U,expose:G,inheritAttrs:K,components:W,directives:ot,filters:nt}=t,ft={}.NODE_ENV!=="production"?u6():null;if({}.NODE_ENV!=="production"){const[_t]=e.propsOptions;if(_t)for(const vt in _t)ft("Props",vt)}if(l&&d6(l,n,ft),s)for(const _t in s){const vt=s[_t];me(vt)?({}.NODE_ENV!=="production"?Object.defineProperty(n,_t,{value:vt.bind(r),configurable:!0,enumerable:!0,writable:!0}):n[_t]=vt.bind(r),{}.NODE_ENV!=="production"&&ft("Methods",_t)):{}.NODE_ENV!=="production"&&Vt(`Method "${_t}" has type "${typeof vt}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!me(i)&&Vt("The data option must be a function. Plain object usage is no longer supported.");const _t=i.call(r,r);if({}.NODE_ENV!=="production"&&rf(_t)&&Vt("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!er(_t))({}).NODE_ENV!=="production"&&Vt("data() should return an object.");else if(e.data=mf(_t),{}.NODE_ENV!=="production")for(const vt in _t)ft("Data",vt),Rf(vt[0])||Object.defineProperty(n,vt,{configurable:!0,enumerable:!0,get:()=>_t[vt],set:mr})}if(jf=!0,o)for(const _t in o){const vt=o[_t],at=me(vt)?vt.bind(r,r):me(vt.get)?vt.get.bind(r,r):mr;({}).NODE_ENV!=="production"&&at===mr&&Vt(`Computed property "${_t}" has no getter.`);const Y=!me(vt)&&me(vt.set)?vt.set.bind(r):{}.NODE_ENV!=="production"?()=>{Vt(`Write operation failed: computed property "${_t}" is readonly.`)}:mr,T=rP({get:at,set:Y});Object.defineProperty(n,_t,{enumerable:!0,configurable:!0,get:()=>T.value,set:C=>T.value=C}),{}.NODE_ENV!=="production"&&ft("Computed",_t)}if(a)for(const _t in a)bv(a[_t],n,r,_t);if(c){const _t=me(c)?c.call(r):c;Reflect.ownKeys(_t).forEach(vt=>{v6(vt,_t[vt])})}u&&_v(u,e,"c");function $t(_t,vt){ue(vt)?vt.forEach(at=>_t(at.bind(r))):vt&&_t(vt.bind(r))}if($t(Qk,h),$t(Zk,f),$t(t6,d),$t(e6,p),$t(Xk,m),$t(Jk,v),$t(s6,D),$t(o6,E),$t(i6,N),$t(r6,_),$t(gv,S),$t(n6,U),ue(G))if(G.length){const _t=e.exposed||(e.exposed={});G.forEach(vt=>{Object.defineProperty(_t,vt,{get:()=>r[vt],set:at=>r[vt]=at})})}else e.exposed||(e.exposed={});A&&e.render===mr&&(e.render=A),K!=null&&(e.inheritAttrs=K),W&&(e.components=W),ot&&(e.directives=ot)}function d6(e,t,r=mr){ue(e)&&(e=Mf(e));for(const n in e){const i=e[n];let o;er(i)?"default"in i?o=Iu(i.from||n,i.default,!0):o=Iu(i.from||n):o=Iu(i),Ur(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[n]=o,{}.NODE_ENV!=="production"&&r("Inject",n)}}function _v(e,t,r){Un(ue(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function bv(e,t,r,n){const i=n.includes(".")?fv(r,n):()=>r[n];if(wr(e)){const o=t[e];me(o)?Of(i,o):{}.NODE_ENV!=="production"&&Vt(`Invalid watch handler specified by key "${e}"`,o)}else if(me(e))Of(i,e.bind(r));else if(er(e))if(ue(e))e.forEach(o=>bv(o,t,r,n));else{const o=me(e.handler)?e.handler.bind(r):t[e.handler];me(o)?Of(i,o,e):{}.NODE_ENV!=="production"&&Vt(`Invalid watch handler specified by key "${e.handler}"`,o)}else({}).NODE_ENV!=="production"&&Vt(`Invalid watch option: "${n}"`,e)}function Ff(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,a=o.get(t);let c;return a?c=a:!i.length&&!r&&!n?c=t:(c={},i.length&&i.forEach(l=>Ru(c,l,s,!0)),Ru(c,t,s)),er(t)&&o.set(t,c),c}function Ru(e,t,r,n=!1){const{mixins:i,extends:o}=t;o&&Ru(e,o,r,!0),i&&i.forEach(s=>Ru(e,s,r,!0));for(const s in t)if(n&&s==="expose")({}).NODE_ENV!=="production"&&Vt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=f6[s]||r&&r[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const f6={data:wv,props:xv,emits:xv,methods:Ba,computed:Ba,beforeCreate:Kr,created:Kr,beforeMount:Kr,mounted:Kr,beforeUpdate:Kr,updated:Kr,beforeDestroy:Kr,beforeUnmount:Kr,destroyed:Kr,unmounted:Kr,activated:Kr,deactivated:Kr,errorCaptured:Kr,serverPrefetch:Kr,components:Ba,directives:Ba,watch:m6,provide:wv,inject:p6};function wv(e,t){return t?e?function(){return lr(me(e)?e.call(this,this):e,me(t)?t.call(this,this):t)}:t:e}function p6(e,t){return Ba(Mf(e),Mf(t))}function Mf(e){if(ue(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Kr(e,t){return e?[...new Set([].concat(e,t))]:t}function Ba(e,t){return e?lr(Object.create(null),e,t):t}function xv(e,t){return e?ue(e)&&ue(t)?[...new Set([...e,...t])]:lr(Object.create(null),vv(e),vv(t??{})):t}function m6(e,t){if(!e)return t;if(!t)return e;const r=lr(Object.create(null),e);for(const n in t)r[n]=Kr(e[n],t[n]);return r}function $v(){return{app:null,config:{isNativeTag:PC,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let g6=0;function y6(e,t){return function(n,i=null){me(n)||(n=lr({},n)),i!=null&&!er(i)&&({}.NODE_ENV!=="production"&&Vt("root props passed to app.mount() must be an object."),i=null);const o=$v(),s=new WeakSet;let a=!1;const c=o.app={_uid:g6++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:Qv,get config(){return o.config},set config(l){({}).NODE_ENV!=="production"&&Vt("app.config cannot be replaced. Modify individual options instead.")},use(l,...u){return s.has(l)?{}.NODE_ENV!=="production"&&Vt("Plugin has already been applied to target app."):l&&me(l.install)?(s.add(l),l.install(c,...u)):me(l)?(s.add(l),l(c,...u)):{}.NODE_ENV!=="production"&&Vt('A plugin must either be a function or an object with an "install" function.'),c},mixin(l){return o.mixins.includes(l)?{}.NODE_ENV!=="production"&&Vt("Mixin has already been applied to target app"+(l.name?`: ${l.name}`:"")):o.mixins.push(l),c},component(l,u){return{}.NODE_ENV!=="production"&&qf(l,o.config),u?({}.NODE_ENV!=="production"&&o.components[l]&&Vt(`Component "${l}" has already been registered in target app.`),o.components[l]=u,c):o.components[l]},directive(l,u){return{}.NODE_ENV!=="production"&&pv(l),u?({}.NODE_ENV!=="production"&&o.directives[l]&&Vt(`Directive "${l}" has already been registered in target app.`),o.directives[l]=u,c):o.directives[l]},mount(l,u,h){if(a)({}).NODE_ENV!=="production"&&Vt("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{({}).NODE_ENV!=="production"&&l.__vue_app__&&Vt("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const f=mn(n,i);return f.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(o.reload=()=>{e(go(f),l,h)}),u&&t?t(f,l):e(f,l,h),a=!0,c._container=l,l.__vue_app__=c,{}.NODE_ENV!=="production"&&(c._instance=f.component,Tk(c,Qv)),Yf(f.component)||f.component.proxy}},unmount(){a?(e(null,c._container),{}.NODE_ENV!=="production"&&(c._instance=null,Ok(c)),delete c._container.__vue_app__):{}.NODE_ENV!=="production"&&Vt("Cannot unmount an app that is not mounted.")},provide(l,u){return{}.NODE_ENV!=="production"&&l in o.provides&&Vt(`App already provides property with key "${String(l)}". It will be overwritten with the new value.`),o.provides[l]=u,c},runWithContext(l){const u=Ha;Ha=c;try{return l()}finally{Ha=u}}};return c}}let Ha=null;function v6(e,t){if(!Or)({}).NODE_ENV!=="production"&&Vt("provide() can only be used inside setup().");else{let r=Or.provides;const n=Or.parent&&Or.parent.provides;n===r&&(r=Or.provides=Object.create(n)),r[e]=t}}function Iu(e,t,r=!1){const n=Or||pn;if(n||Ha){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:Ha._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return r&&me(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&Vt(`injection "${String(e)}" not found.`)}else({}).NODE_ENV!=="production"&&Vt("inject() can only be used inside setup() or functional components.")}const Sv={},Ev=()=>Object.create(Sv),Cv=e=>Object.getPrototypeOf(e)===Sv;function _6(e,t,r,n=!1){const i={},o=Ev();e.propsDefaults=Object.create(null),kv(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);({}).NODE_ENV!=="production"&&Av(t||{},i,e),r?e.props=n?i:uk(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function b6(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function w6(e,t,r,n){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,a=xe(i),[c]=e.propsOptions;let l=!1;if(!({}.NODE_ENV!=="production"&&b6(e))&&(n||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(Pu(e.emitsOptions,f))continue;const d=t[f];if(c)if(Ce(o,f))d!==o[f]&&(o[f]=d,l=!0);else{const p=ki(f);i[p]=Lf(c,a,p,d,e,!1)}else d!==o[f]&&(o[f]=d,l=!0)}}}else{kv(e,t,i,o)&&(l=!0);let u;for(const h in a)(!t||!Ce(t,h)&&((u=fn(h))===h||!Ce(t,u)))&&(c?r&&(r[h]!==void 0||r[u]!==void 0)&&(i[h]=Lf(c,a,h,void 0,e,!0)):delete i[h]);if(o!==a)for(const h in o)(!t||!Ce(t,h))&&(delete o[h],l=!0)}l&&si(e.attrs,"set",""),{}.NODE_ENV!=="production"&&Av(t||{},i,e)}function kv(e,t,r,n){const[i,o]=e.propsOptions;let s=!1,a;if(t)for(let c in t){if(ja(c))continue;const l=t[c];let u;i&&Ce(i,u=ki(c))?!o||!o.includes(u)?r[u]=l:(a||(a={}))[u]=l:Pu(e.emitsOptions,c)||(!(c in n)||l!==n[c])&&(n[c]=l,s=!0)}if(o){const c=xe(r),l=a||Je;for(let u=0;u<o.length;u++){const h=o[u];r[h]=Lf(i,c,h,l[h],e,!Ce(l,h))}}return s}function Lf(e,t,r,n,i,o){const s=e[r];if(s!=null){const a=Ce(s,"default");if(a&&n===void 0){const c=s.default;if(s.type!==Function&&!s.skipFactory&&me(c)){const{propsDefaults:l}=i;if(r in l)n=l[r];else{const u=Qa(i);n=l[r]=c.call(null,t),u()}}else n=c}s[0]&&(o&&!a?n=!1:s[1]&&(n===""||n===fn(r))&&(n=!0))}return n}function Pv(e,t,r=!1){const n=t.propsCache,i=n.get(e);if(i)return i;const o=e.props,s={},a=[];let c=!1;if(!me(e)){const u=h=>{c=!0;const[f,d]=Pv(h,t,!0);lr(s,f),d&&a.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!c)return er(e)&&n.set(e,Gs),Gs;if(ue(o))for(let u=0;u<o.length;u++){({}).NODE_ENV!=="production"&&!wr(o[u])&&Vt("props must be strings when using array syntax.",o[u]);const h=ki(o[u]);Tv(h)&&(s[h]=Je)}else if(o){({}).NODE_ENV!=="production"&&!er(o)&&Vt("invalid props options",o);for(const u in o){const h=ki(u);if(Tv(h)){const f=o[u],d=s[h]=ue(f)||me(f)?{type:f}:lr({},f);if(d){const p=Nv(Boolean,d.type),m=Nv(String,d.type);d[0]=p>-1,d[1]=m<0||p<m,(p>-1||Ce(d,"default"))&&a.push(h)}}}}const l=[s,a];return er(e)&&n.set(e,l),l}function Tv(e){return e[0]!=="$"&&!ja(e)?!0:({}.NODE_ENV!=="production"&&Vt(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Uf(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ov(e,t){return Uf(e)===Uf(t)}function Nv(e,t){return ue(t)?t.findIndex(r=>Ov(r,e)):me(t)&&Ov(t,e)?0:-1}function Av(e,t,r){const n=xe(t),i=r.propsOptions[0];for(const o in i){let s=i[o];s!=null&&x6(o,n[o],s,{}.NODE_ENV!=="production"?Oi(n):n,!Ce(e,o)&&!Ce(e,fn(o)))}}function x6(e,t,r,n,i){const{type:o,required:s,validator:a,skipCheck:c}=r;if(s&&i){Vt('Missing required prop: "'+e+'"');return}if(!(t==null&&!s)){if(o!=null&&o!==!0&&!c){let l=!1;const u=ue(o)?o:[o],h=[];for(let f=0;f<u.length&&!l;f++){const{valid:d,expectedType:p}=S6(t,u[f]);h.push(p||""),l=d}if(!l){Vt(E6(e,t,h));return}}a&&!a(t,n)&&Vt('Invalid prop: custom validator check failed for prop "'+e+'".')}}const $6=oi("String,Number,Boolean,Function,Symbol,BigInt");function S6(e,t){let r;const n=Uf(t);if($6(n)){const i=typeof e;r=i===n.toLowerCase(),!r&&i==="object"&&(r=e instanceof t)}else n==="Object"?r=er(e):n==="Array"?r=ue(e):n==="null"?r=e===null:r=e instanceof t;return{valid:r,expectedType:n}}function E6(e,t,r){if(r.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let n=`Invalid prop: type check failed for prop "${e}". Expected ${r.map(pu).join(" | ")}`;const i=r[0],o=nf(t),s=Dv(t,i),a=Dv(t,o);return r.length===1&&Rv(i)&&!C6(i,o)&&(n+=` with value ${s}`),n+=`, got ${o} `,Rv(o)&&(n+=`with value ${a}.`),n}function Dv(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function Rv(e){return["string","number","boolean"].some(r=>e.toLowerCase()===r)}function C6(...e){return e.some(t=>t.toLowerCase()==="boolean")}const Iv=e=>e[0]==="_"||e==="$stable",Vf=e=>ue(e)?e.map(Gn):[Gn(e)],k6=(e,t,r)=>{if(t._n)return t;const n=Mk((...i)=>({}.NODE_ENV!=="production"&&Or&&(!r||r.root===Or.root)&&Vt(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Vf(t(...i))),r);return n._c=!1,n},jv=(e,t,r)=>{const n=e._ctx;for(const i in e){if(Iv(i))continue;const o=e[i];if(me(o))t[i]=k6(i,o,n);else if(o!=null){({}).NODE_ENV!=="production"&&Vt(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const s=Vf(o);t[i]=()=>s}}},Fv=(e,t)=>{({}).NODE_ENV!=="production"&&!Af(e.vnode)&&Vt("Non-function value encountered for default slot. Prefer function slots for better performance.");const r=Vf(t);e.slots.default=()=>r},P6=(e,t)=>{const r=e.slots=Ev();if(e.vnode.shapeFlag&32){const n=t._;n?(lr(r,t),_1(r,"_",n)):jv(t,r)}else t&&Fv(e,t)},T6=(e,t,r)=>{const{vnode:n,slots:i}=e;let o=!0,s=Je;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&Wo?(lr(i,t),si(e,"set","$slots")):r&&a===1?o=!1:(lr(i,t),!r&&a===1&&delete i._):(o=!t.$stable,jv(t,i)),s=t}else t&&(Fv(e,t),s={default:1});if(o)for(const a in i)!Iv(a)&&s[a]==null&&delete i[a]};function zf(e,t,r,n,i=!1){if(ue(e)){e.forEach((f,d)=>zf(f,t&&(ue(t)?t[d]:t),r,n,i));return}if(Au(n)&&!i)return;const o=n.shapeFlag&4?Yf(n.component)||n.component.proxy:n.el,s=i?null:o,{i:a,r:c}=e;if({}.NODE_ENV!=="production"&&!a){Vt("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const l=t&&t.r,u=a.refs===Je?a.refs={}:a.refs,h=a.setupState;if(l!=null&&l!==c&&(wr(l)?(u[l]=null,Ce(h,l)&&(h[l]=null)):Ur(l)&&(l.value=null)),me(c))Ni(c,a,12,[s,u]);else{const f=wr(c),d=Ur(c);if(f||d){const p=()=>{if(e.f){const m=f?Ce(h,c)?h[c]:u[c]:c.value;i?ue(m)&&ef(m,o):ue(m)?m.includes(o)||m.push(o):f?(u[c]=[o],Ce(h,c)&&(h[c]=u[c])):(c.value=[o],e.k&&(u[e.k]=c.value))}else f?(u[c]=s,Ce(h,c)&&(h[c]=s)):d?(c.value=s,e.k&&(u[e.k]=s)):{}.NODE_ENV!=="production"&&Vt("Invalid template ref type:",c,`(${typeof c})`)};s?(p.id=-1,rn(p,r)):p()}else({}).NODE_ENV!=="production"&&Vt("Invalid template ref type:",c,`(${typeof c})`)}}let qa,mo;function Ri(e,t){e.appContext.config.performance&&ju()&&mo.mark(`vue-${t}-${e.uid}`),{}.NODE_ENV!=="production"&&Rk(e,t,ju()?mo.now():Date.now())}function Ii(e,t){if(e.appContext.config.performance&&ju()){const r=`vue-${t}-${e.uid}`,n=r+":end";mo.mark(n),mo.measure(`<${zu(e,e.type)}> ${t}`,r,n),mo.clearMarks(r),mo.clearMarks(n)}({}).NODE_ENV!=="production"&&Ik(e,t,ju()?mo.now():Date.now())}function ju(){return qa!==void 0||(typeof window<"u"&&window.performance?(qa=!0,mo=window.performance):qa=!1),qa}function O6(){const e=[];if(typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&({}.NODE_ENV!=="production"&&e.push("__VUE_PROD_HYDRATION_MISMATCH_DETAILS__"),mu().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1),{}.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
19
|
+
|
|
20
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}const rn=Hk;function N6(e){return A6(e)}function A6(e,t){O6();const r=mu();r.__VUE__=!0,{}.NODE_ENV!=="production"&&iv(r.__VUE_DEVTOOLS_GLOBAL_HOOK__,r);const{insert:n,remove:i,patchProp:o,createElement:s,createText:a,createComment:c,setText:l,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=mr,insertStaticContent:p}=e,m=(X,Q,it,lt=null,ct=null,dt=null,St=void 0,yt=null,bt={}.NODE_ENV!=="production"&&Wo?!1:!!Q.dynamicChildren)=>{if(X===Q)return;X&&!Wa(X,Q)&&(lt=z(X),$(X,ct,dt,!0),X=null),Q.patchFlag===-2&&(bt=!1,Q.dynamicChildren=null);const{type:ut,ref:It,shapeFlag:Lt}=Q;switch(ut){case Ka:v(X,Q,it,lt);break;case Vn:b(X,Q,it,lt);break;case Mu:X==null?_(Q,it,lt,St):{}.NODE_ENV!=="production"&&g(X,Q,it,St);break;case ci:ot(X,Q,it,lt,ct,dt,St,yt,bt);break;default:Lt&1?E(X,Q,it,lt,ct,dt,St,yt,bt):Lt&6?nt(X,Q,it,lt,ct,dt,St,yt,bt):Lt&64||Lt&128?ut.process(X,Q,it,lt,ct,dt,St,yt,bt,st):{}.NODE_ENV!=="production"&&Vt("Invalid VNode type:",ut,`(${typeof ut})`)}It!=null&&ct&&zf(It,X&&X.ref,dt,Q||X,!Q)},v=(X,Q,it,lt)=>{if(X==null)n(Q.el=a(Q.children),it,lt);else{const ct=Q.el=X.el;Q.children!==X.children&&l(ct,Q.children)}},b=(X,Q,it,lt)=>{X==null?n(Q.el=c(Q.children||""),it,lt):Q.el=X.el},_=(X,Q,it,lt)=>{[X.el,X.anchor]=p(X.children,Q,it,lt,X.el,X.anchor)},g=(X,Q,it,lt)=>{if(Q.children!==X.children){const ct=f(X.anchor);A(X),[Q.el,Q.anchor]=p(Q.children,it,ct,lt)}else Q.el=X.el,Q.anchor=X.anchor},S=({el:X,anchor:Q},it,lt)=>{let ct;for(;X&&X!==Q;)ct=f(X),n(X,it,lt),X=ct;n(Q,it,lt)},A=({el:X,anchor:Q})=>{let it;for(;X&&X!==Q;)it=f(X),i(X),X=it;i(Q)},E=(X,Q,it,lt,ct,dt,St,yt,bt)=>{Q.type==="svg"?St="svg":Q.type==="math"&&(St="mathml"),X==null?N(Q,it,lt,ct,dt,St,yt,bt):G(X,Q,ct,dt,St,yt,bt)},N=(X,Q,it,lt,ct,dt,St,yt)=>{let bt,ut;const{props:It,shapeFlag:Lt,transition:Ut,dirs:Kt}=X;if(bt=X.el=s(X.type,dt,It&&It.is,It),Lt&8?u(bt,X.children):Lt&16&&U(X.children,bt,null,lt,ct,Gf(X,dt),St,yt),Kt&&Zo(X,null,lt,"created"),D(bt,X,X.scopeId,St,lt),It){for(const Yt in It)Yt!=="value"&&!ja(Yt)&&o(bt,Yt,null,It[Yt],dt,X.children,lt,ct,I);"value"in It&&o(bt,"value",null,It.value,dt),(ut=It.onVnodeBeforeMount)&&ui(ut,lt,X)}({}).NODE_ENV!=="production"&&(Object.defineProperty(bt,"__vnode",{value:X,enumerable:!1}),Object.defineProperty(bt,"__vueParentComponent",{value:lt,enumerable:!1})),Kt&&Zo(X,null,lt,"beforeMount");const ne=D6(ct,Ut);ne&&Ut.beforeEnter(bt),n(bt,Q,it),((ut=It&&It.onVnodeMounted)||ne||Kt)&&rn(()=>{ut&&ui(ut,lt,X),ne&&Ut.enter(bt),Kt&&Zo(X,null,lt,"mounted")},ct)},D=(X,Q,it,lt,ct)=>{if(it&&d(X,it),lt)for(let dt=0;dt<lt.length;dt++)d(X,lt[dt]);if(ct){let dt=ct.subTree;if({}.NODE_ENV!=="production"&&dt.patchFlag>0&&dt.patchFlag&2048&&(dt=Tf(dt.children)||dt),Q===dt){const St=ct.vnode;D(X,St,St.scopeId,St.slotScopeIds,ct.parent)}}},U=(X,Q,it,lt,ct,dt,St,yt,bt=0)=>{for(let ut=bt;ut<X.length;ut++){const It=X[ut]=yt?yo(X[ut]):Gn(X[ut]);m(null,It,Q,it,lt,ct,dt,St,yt)}},G=(X,Q,it,lt,ct,dt,St)=>{const yt=Q.el=X.el;let{patchFlag:bt,dynamicChildren:ut,dirs:It}=Q;bt|=X.patchFlag&16;const Lt=X.props||Je,Ut=Q.props||Je;let Kt;if(it&&es(it,!1),(Kt=Ut.onVnodeBeforeUpdate)&&ui(Kt,it,Q,X),It&&Zo(Q,X,it,"beforeUpdate"),it&&es(it,!0),{}.NODE_ENV!=="production"&&Wo&&(bt=0,St=!1,ut=null),ut?(K(X.dynamicChildren,ut,yt,it,lt,Gf(Q,ct),dt),{}.NODE_ENV!=="production"&&Fu(X,Q)):St||at(X,Q,yt,null,it,lt,Gf(Q,ct),dt,!1),bt>0){if(bt&16)W(yt,Q,Lt,Ut,it,lt,ct);else if(bt&2&&Lt.class!==Ut.class&&o(yt,"class",null,Ut.class,ct),bt&4&&o(yt,"style",Lt.style,Ut.style,ct),bt&8){const ne=Q.dynamicProps;for(let Yt=0;Yt<ne.length;Yt++){const he=ne[Yt],Ne=Lt[he],Ye=Ut[he];(Ye!==Ne||he==="value")&&o(yt,he,Ne,Ye,ct,X.children,it,lt,I)}}bt&1&&X.children!==Q.children&&u(yt,Q.children)}else!St&&ut==null&&W(yt,Q,Lt,Ut,it,lt,ct);((Kt=Ut.onVnodeUpdated)||It)&&rn(()=>{Kt&&ui(Kt,it,Q,X),It&&Zo(Q,X,it,"updated")},lt)},K=(X,Q,it,lt,ct,dt,St)=>{for(let yt=0;yt<Q.length;yt++){const bt=X[yt],ut=Q[yt],It=bt.el&&(bt.type===ci||!Wa(bt,ut)||bt.shapeFlag&70)?h(bt.el):it;m(bt,ut,It,null,lt,ct,dt,St,!0)}},W=(X,Q,it,lt,ct,dt,St)=>{if(it!==lt){if(it!==Je)for(const yt in it)!ja(yt)&&!(yt in lt)&&o(X,yt,it[yt],null,St,Q.children,ct,dt,I);for(const yt in lt){if(ja(yt))continue;const bt=lt[yt],ut=it[yt];bt!==ut&&yt!=="value"&&o(X,yt,ut,bt,St,Q.children,ct,dt,I)}"value"in lt&&o(X,"value",it.value,lt.value,St)}},ot=(X,Q,it,lt,ct,dt,St,yt,bt)=>{const ut=Q.el=X?X.el:a(""),It=Q.anchor=X?X.anchor:a("");let{patchFlag:Lt,dynamicChildren:Ut,slotScopeIds:Kt}=Q;({}).NODE_ENV!=="production"&&(Wo||Lt&2048)&&(Lt=0,bt=!1,Ut=null),Kt&&(yt=yt?yt.concat(Kt):Kt),X==null?(n(ut,it,lt),n(It,it,lt),U(Q.children||[],it,It,ct,dt,St,yt,bt)):Lt>0&&Lt&64&&Ut&&X.dynamicChildren?(K(X.dynamicChildren,Ut,it,ct,dt,St,yt),{}.NODE_ENV!=="production"?Fu(X,Q):(Q.key!=null||ct&&Q===ct.subTree)&&Fu(X,Q,!0)):at(X,Q,it,It,ct,dt,St,yt,bt)},nt=(X,Q,it,lt,ct,dt,St,yt,bt)=>{Q.slotScopeIds=yt,X==null?Q.shapeFlag&512?ct.ctx.activate(Q,it,lt,St,bt):ft(Q,it,lt,ct,dt,St,bt):$t(X,Q,bt)},ft=(X,Q,it,lt,ct,dt,St)=>{const yt=X.component=q6(X,lt,ct);if({}.NODE_ENV!=="production"&&yt.type.__hmrId&&Ek(yt),{}.NODE_ENV!=="production"&&(Eu(X),Ri(yt,"mount")),Af(X)&&(yt.ctx.renderer=st),{}.NODE_ENV!=="production"&&Ri(yt,"init"),X6(yt),{}.NODE_ENV!=="production"&&Ii(yt,"init"),yt.asyncDep){if(ct&&ct.registerDep(yt,_t),!X.el){const bt=yt.subTree=mn(Vn);b(null,bt,Q,it)}}else _t(yt,X,Q,it,ct,dt,St);({}).NODE_ENV!=="production"&&(Cu(),Ii(yt,"mount"))},$t=(X,Q,it)=>{const lt=Q.component=X.component;if(Vk(X,Q,it))if(lt.asyncDep&&!lt.asyncResolved){({}).NODE_ENV!=="production"&&Eu(Q),vt(lt,Q,it),{}.NODE_ENV!=="production"&&Cu();return}else lt.next=Q,$k(lt.update),lt.effect.dirty=!0,lt.update();else Q.el=X.el,lt.vnode=Q},_t=(X,Q,it,lt,ct,dt,St)=>{const yt=()=>{if(X.isMounted){let{next:It,bu:Lt,u:Ut,parent:Kt,vnode:ne}=X;{const ar=Mv(X);if(ar){It&&(It.el=ne.el,vt(X,It,St)),ar.asyncDep.then(()=>{X.isUnmounted||yt()});return}}let Yt=It,he;({}).NODE_ENV!=="production"&&Eu(It||X.vnode),es(X,!1),It?(It.el=ne.el,vt(X,It,St)):It=ne,Lt&&Fa(Lt),(he=It.props&&It.props.onVnodeBeforeUpdate)&&ui(he,Kt,It,ne),es(X,!0),{}.NODE_ENV!=="production"&&Ri(X,"render");const Ne=Pf(X);({}).NODE_ENV!=="production"&&Ii(X,"render");const Ye=X.subTree;X.subTree=Ne,{}.NODE_ENV!=="production"&&Ri(X,"patch"),m(Ye,Ne,h(Ye.el),z(Ye),X,ct,dt),{}.NODE_ENV!=="production"&&Ii(X,"patch"),It.el=Ne.el,Yt===null&&zk(X,Ne.el),Ut&&rn(Ut,ct),(he=It.props&&It.props.onVnodeUpdated)&&rn(()=>ui(he,Kt,It,ne),ct),{}.NODE_ENV!=="production"&&ov(X),{}.NODE_ENV!=="production"&&Cu()}else{let It;const{el:Lt,props:Ut}=Q,{bm:Kt,m:ne,parent:Yt}=X,he=Au(Q);if(es(X,!1),Kt&&Fa(Kt),!he&&(It=Ut&&Ut.onVnodeBeforeMount)&&ui(It,Yt,Q),es(X,!0),Lt&&Mt){const Ne=()=>{({}).NODE_ENV!=="production"&&Ri(X,"render"),X.subTree=Pf(X),{}.NODE_ENV!=="production"&&Ii(X,"render"),{}.NODE_ENV!=="production"&&Ri(X,"hydrate"),Mt(Lt,X.subTree,X,ct,null),{}.NODE_ENV!=="production"&&Ii(X,"hydrate")};he?Q.type.__asyncLoader().then(()=>!X.isUnmounted&&Ne()):Ne()}else{({}).NODE_ENV!=="production"&&Ri(X,"render");const Ne=X.subTree=Pf(X);({}).NODE_ENV!=="production"&&Ii(X,"render"),{}.NODE_ENV!=="production"&&Ri(X,"patch"),m(null,Ne,it,lt,X,ct,dt),{}.NODE_ENV!=="production"&&Ii(X,"patch"),Q.el=Ne.el}if(ne&&rn(ne,ct),!he&&(It=Ut&&Ut.onVnodeMounted)){const Ne=Q;rn(()=>ui(It,Yt,Ne),ct)}(Q.shapeFlag&256||Yt&&Au(Yt.vnode)&&Yt.vnode.shapeFlag&256)&&X.a&&rn(X.a,ct),X.isMounted=!0,{}.NODE_ENV!=="production"&&Nk(X),Q=it=lt=null}},bt=X.effect=new af(yt,mr,()=>ku(ut),X.scope),ut=X.update=()=>{bt.dirty&&bt.run()};ut.id=X.uid,es(X,!0),{}.NODE_ENV!=="production"&&(bt.onTrack=X.rtc?It=>Fa(X.rtc,It):void 0,bt.onTrigger=X.rtg?It=>Fa(X.rtg,It):void 0,ut.ownerInstance=X),ut()},vt=(X,Q,it)=>{Q.component=X;const lt=X.vnode.props;X.vnode=Q,X.next=null,w6(X,Q.props,lt,it),T6(X,Q.children,it),Pi(),Z1(X),Ti()},at=(X,Q,it,lt,ct,dt,St,yt,bt=!1)=>{const ut=X&&X.children,It=X?X.shapeFlag:0,Lt=Q.children,{patchFlag:Ut,shapeFlag:Kt}=Q;if(Ut>0){if(Ut&128){T(ut,Lt,it,lt,ct,dt,St,yt,bt);return}else if(Ut&256){Y(ut,Lt,it,lt,ct,dt,St,yt,bt);return}}Kt&8?(It&16&&I(ut,ct,dt),Lt!==ut&&u(it,Lt)):It&16?Kt&16?T(ut,Lt,it,lt,ct,dt,St,yt,bt):I(ut,ct,dt,!0):(It&8&&u(it,""),Kt&16&&U(Lt,it,lt,ct,dt,St,yt,bt))},Y=(X,Q,it,lt,ct,dt,St,yt,bt)=>{X=X||Gs,Q=Q||Gs;const ut=X.length,It=Q.length,Lt=Math.min(ut,It);let Ut;for(Ut=0;Ut<Lt;Ut++){const Kt=Q[Ut]=bt?yo(Q[Ut]):Gn(Q[Ut]);m(X[Ut],Kt,it,null,ct,dt,St,yt,bt)}ut>It?I(X,ct,dt,!0,!1,Lt):U(Q,it,lt,ct,dt,St,yt,bt,Lt)},T=(X,Q,it,lt,ct,dt,St,yt,bt)=>{let ut=0;const It=Q.length;let Lt=X.length-1,Ut=It-1;for(;ut<=Lt&&ut<=Ut;){const Kt=X[ut],ne=Q[ut]=bt?yo(Q[ut]):Gn(Q[ut]);if(Wa(Kt,ne))m(Kt,ne,it,null,ct,dt,St,yt,bt);else break;ut++}for(;ut<=Lt&&ut<=Ut;){const Kt=X[Lt],ne=Q[Ut]=bt?yo(Q[Ut]):Gn(Q[Ut]);if(Wa(Kt,ne))m(Kt,ne,it,null,ct,dt,St,yt,bt);else break;Lt--,Ut--}if(ut>Lt){if(ut<=Ut){const Kt=Ut+1,ne=Kt<It?Q[Kt].el:lt;for(;ut<=Ut;)m(null,Q[ut]=bt?yo(Q[ut]):Gn(Q[ut]),it,ne,ct,dt,St,yt,bt),ut++}}else if(ut>Ut)for(;ut<=Lt;)$(X[ut],ct,dt,!0),ut++;else{const Kt=ut,ne=ut,Yt=new Map;for(ut=ne;ut<=Ut;ut++){const le=Q[ut]=bt?yo(Q[ut]):Gn(Q[ut]);le.key!=null&&({}.NODE_ENV!=="production"&&Yt.has(le.key)&&Vt("Duplicate keys found during update:",JSON.stringify(le.key),"Make sure keys are unique."),Yt.set(le.key,ut))}let he,Ne=0;const Ye=Ut-ne+1;let ar=!1,Qe=0;const xr=new Array(Ye);for(ut=0;ut<Ye;ut++)xr[ut]=0;for(ut=Kt;ut<=Lt;ut++){const le=X[ut];if(Ne>=Ye){$(le,ct,dt,!0);continue}let nr;if(le.key!=null)nr=Yt.get(le.key);else for(he=ne;he<=Ut;he++)if(xr[he-ne]===0&&Wa(le,Q[he])){nr=he;break}nr===void 0?$(le,ct,dt,!0):(xr[nr-ne]=ut+1,nr>=Qe?Qe=nr:ar=!0,m(le,Q[nr],it,null,ct,dt,St,yt,bt),Ne++)}const Lr=ar?R6(xr):Gs;for(he=Lr.length-1,ut=Ye-1;ut>=0;ut--){const le=ne+ut,nr=Q[le],$r=le+1<It?Q[le+1].el:lt;xr[ut]===0?m(null,nr,it,$r,ct,dt,St,yt,bt):ar&&(he<0||ut!==Lr[he]?C(nr,it,$r,2):he--)}}},C=(X,Q,it,lt,ct=null)=>{const{el:dt,type:St,transition:yt,children:bt,shapeFlag:ut}=X;if(ut&6){C(X.component.subTree,Q,it,lt);return}if(ut&128){X.suspense.move(Q,it,lt);return}if(ut&64){St.move(X,Q,it,st);return}if(St===ci){n(dt,Q,it);for(let Lt=0;Lt<bt.length;Lt++)C(bt[Lt],Q,it,lt);n(X.anchor,Q,it);return}if(St===Mu){S(X,Q,it);return}if(lt!==2&&ut&1&&yt)if(lt===0)yt.beforeEnter(dt),n(dt,Q,it),rn(()=>yt.enter(dt),ct);else{const{leave:Lt,delayLeave:Ut,afterLeave:Kt}=yt,ne=()=>n(dt,Q,it),Yt=()=>{Lt(dt,()=>{ne(),Kt&&Kt()})};Ut?Ut(dt,ne,Yt):Yt()}else n(dt,Q,it)},$=(X,Q,it,lt=!1,ct=!1)=>{const{type:dt,props:St,ref:yt,children:bt,dynamicChildren:ut,shapeFlag:It,patchFlag:Lt,dirs:Ut}=X;if(yt!=null&&zf(yt,null,it,X,!0),It&256){Q.ctx.deactivate(X);return}const Kt=It&1&&Ut,ne=!Au(X);let Yt;if(ne&&(Yt=St&&St.onVnodeBeforeUnmount)&&ui(Yt,Q,X),It&6)M(X.component,it,lt);else{if(It&128){X.suspense.unmount(it,lt);return}Kt&&Zo(X,null,Q,"beforeUnmount"),It&64?X.type.remove(X,Q,it,ct,st,lt):ut&&(dt!==ci||Lt>0&&Lt&64)?I(ut,Q,it,!1,!0):(dt===ci&&Lt&384||!ct&&It&16)&&I(bt,Q,it),lt&&y(X)}(ne&&(Yt=St&&St.onVnodeUnmounted)||Kt)&&rn(()=>{Yt&&ui(Yt,Q,X),Kt&&Zo(X,null,Q,"unmounted")},it)},y=X=>{const{type:Q,el:it,anchor:lt,transition:ct}=X;if(Q===ci){({}).NODE_ENV!=="production"&&X.patchFlag>0&&X.patchFlag&2048&&ct&&!ct.persisted?X.children.forEach(St=>{St.type===Vn?i(St.el):y(St)}):k(it,lt);return}if(Q===Mu){A(X);return}const dt=()=>{i(it),ct&&!ct.persisted&&ct.afterLeave&&ct.afterLeave()};if(X.shapeFlag&1&&ct&&!ct.persisted){const{leave:St,delayLeave:yt}=ct,bt=()=>St(it,dt);yt?yt(X.el,dt,bt):bt()}else dt()},k=(X,Q)=>{let it;for(;X!==Q;)it=f(X),i(X),X=it;i(Q)},M=(X,Q,it)=>{({}).NODE_ENV!=="production"&&X.type.__hmrId&&Ck(X);const{bum:lt,scope:ct,update:dt,subTree:St,um:yt}=X;lt&&Fa(lt),ct.stop(),dt&&(dt.active=!1,$(St,X,Q,it)),yt&&rn(yt,Q),rn(()=>{X.isUnmounted=!0},Q),Q&&Q.pendingBranch&&!Q.isUnmounted&&X.asyncDep&&!X.asyncResolved&&X.suspenseId===Q.pendingId&&(Q.deps--,Q.deps===0&&Q.resolve()),{}.NODE_ENV!=="production"&&Dk(X)},I=(X,Q,it,lt=!1,ct=!1,dt=0)=>{for(let St=dt;St<X.length;St++)$(X[St],Q,it,lt,ct)},z=X=>X.shapeFlag&6?z(X.component.subTree):X.shapeFlag&128?X.suspense.next():f(X.anchor||X.el);let q=!1;const et=(X,Q,it)=>{X==null?Q._vnode&&$(Q._vnode,null,null,!0):m(Q._vnode||null,X,Q,null,null,null,it),q||(q=!0,Z1(),tv(),q=!1),Q._vnode=X},st={p:m,um:$,m:C,r:y,mt:ft,mc:U,pc:at,pbc:K,n:z,o:e};let mt,Mt;return t&&([mt,Mt]=t(st)),{render:et,hydrate:mt,createApp:y6(et,mt)}}function Gf({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function es({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function D6(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fu(e,t,r=!1){const n=e.children,i=t.children;if(ue(n)&&ue(i))for(let o=0;o<n.length;o++){const s=n[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=yo(i[o]),a.el=s.el),r||Fu(s,a)),a.type===Ka&&(a.el=s.el),{}.NODE_ENV!=="production"&&a.type===Vn&&!a.el&&(a.el=s.el)}}function R6(e){const t=e.slice(),r=[0];let n,i,o,s,a;const c=e.length;for(n=0;n<c;n++){const l=e[n];if(l!==0){if(i=r[r.length-1],e[i]<l){t[n]=i,r.push(n);continue}for(o=0,s=r.length-1;o<s;)a=o+s>>1,e[r[a]]<l?o=a+1:s=a;l<e[r[o]]&&(o>0&&(t[n]=r[o-1]),r[o]=n)}}for(o=r.length,s=r[o-1];o-- >0;)r[o]=s,s=t[s];return r}function Mv(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Mv(t)}const I6=e=>e.__isTeleport,ci=Symbol.for("v-fgt"),Ka=Symbol.for("v-txt"),Vn=Symbol.for("v-cmt"),Mu=Symbol.for("v-stc"),Ya=[];let zn=null;function j6(e=!1){Ya.push(zn=e?null:[])}function F6(){Ya.pop(),zn=Ya[Ya.length-1]||null}let Xa=1;function Lv(e){Xa+=e}function M6(e){return e.dynamicChildren=Xa>0?zn||Gs:null,F6(),Xa>0&&zn&&zn.push(e),e}function L6(e,t,r,n,i,o){return M6(Vv(e,t,r,n,i,o,!0))}function Ja(e){return e?e.__v_isVNode===!0:!1}function Wa(e,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&Xs.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}const U6=(...e)=>zv(...e),Uv=({key:e})=>e??null,Lu=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?wr(e)||Ur(e)||me(e)?{i:pn,r:e,k:t,f:!!r}:e:null);function Vv(e,t=null,r=null,n=0,i=null,o=e===ci?0:1,s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Uv(t),ref:t&&Lu(t),scopeId:lv,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:pn};return a?(Bf(c,r),o&128&&e.normalize(c)):r&&(c.shapeFlag|=wr(r)?8:16),{}.NODE_ENV!=="production"&&c.key!==c.key&&Vt("VNode created with invalid key (NaN). VNode type:",c.type),Xa>0&&!s&&zn&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&zn.push(c),c}const mn={}.NODE_ENV!=="production"?U6:zv;function zv(e,t=null,r=null,n=0,i=null,o=!1){if((!e||e===Gk)&&({}.NODE_ENV!=="production"&&!e&&Vt(`Invalid vnode type when creating vnode: ${e}.`),e=Vn),Ja(e)){const a=go(e,t,!0);return r&&Bf(a,r),Xa>0&&!o&&zn&&(a.shapeFlag&6?zn[zn.indexOf(e)]=a:zn.push(a)),a.patchFlag|=-2,a}if(Jv(e)&&(e=e.__vccOpts),t){t=V6(t);let{class:a,style:c}=t;a&&!wr(a)&&(t.class=sf(a)),er(c)&&(gf(c)&&!ue(c)&&(c=lr({},c)),t.style=gu(c))}const s=wr(e)?1:Bk(e)?128:I6(e)?64:er(e)?4:me(e)?2:0;return{}.NODE_ENV!=="production"&&s&4&&gf(e)&&(e=xe(e),Vt("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
21
|
+
Component that was made reactive: `,e)),Vv(e,t,r,n,i,s,o,!0)}function V6(e){return e?gf(e)||Cv(e)?lr({},e):e:null}function go(e,t,r=!1){const{props:n,ref:i,patchFlag:o,children:s}=e,a=t?G6(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Uv(a),ref:t&&t.ref?r&&i?ue(i)?i.concat(Lu(t)):[i,Lu(t)]:Lu(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:{}.NODE_ENV!=="production"&&o===-1&&ue(s)?s.map(Gv):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ci?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&go(e.ssContent),ssFallback:e.ssFallback&&go(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Gv(e){const t=go(e);return ue(e.children)&&(t.children=e.children.map(Gv)),t}function z6(e=" ",t=0){return mn(Ka,null,e,t)}function Gn(e){return e==null||typeof e=="boolean"?mn(Vn):ue(e)?mn(ci,null,e.slice()):typeof e=="object"?yo(e):mn(Ka,null,String(e))}function yo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:go(e)}function Bf(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ue(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Bf(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!Cv(t)?t._ctx=pn:i===3&&pn&&(pn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else me(t)?(t={default:t,_ctx:pn},r=32):(t=String(t),n&64?(r=16,t=[z6(t)]):r=8);e.children=t,e.shapeFlag|=r}function G6(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=sf([t.class,n.class]));else if(i==="style")t.style=gu([t.style,n.style]);else if(Ra(i)){const o=t[i],s=n[i];s&&o!==s&&!(ue(o)&&o.includes(s))&&(t[i]=o?[].concat(o,s):s)}else i!==""&&(t[i]=n[i])}return t}function ui(e,t,r,n=null){Un(e,t,7,[r,n])}const B6=$v();let H6=0;function q6(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||B6,o={uid:H6++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new zC(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pv(n,i),emitsOptions:av(n,i),emit:null,emitted:null,propsDefaults:Je,inheritAttrs:n.inheritAttrs,ctx:Je,data:Je,props:Je,attrs:Je,slots:Je,refs:Je,setupState:Je,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return{}.NODE_ENV!=="production"?o.ctx=a6(o):o.ctx={_:o},o.root=t?t.root:o,o.emit=Fk.bind(null,o),e.ce&&e.ce(o),o}let Or=null;const K6=()=>Or||pn;let Uu,Hf;{const e=mu(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};Uu=t("__VUE_INSTANCE_SETTERS__",r=>Or=r),Hf=t("__VUE_SSR_SETTERS__",r=>Vu=r)}const Qa=e=>{const t=Or;return Uu(e),e.scope.on(),()=>{e.scope.off(),Uu(t)}},Bv=()=>{Or&&Or.scope.off(),Uu(null)},Y6=oi("slot,component");function qf(e,{isNativeTag:t}){(Y6(e)||t(e))&&Vt("Do not use built-in or reserved HTML elements as component id: "+e)}function Hv(e){return e.vnode.shapeFlag&4}let Vu=!1;function X6(e,t=!1){t&&Hf(t);const{props:r,children:n}=e.vnode,i=Hv(e);_6(e,r,i,t),P6(e,n);const o=i?J6(e,t):void 0;return t&&Hf(!1),o}function J6(e,t){var r;const n=e.type;if({}.NODE_ENV!=="production"){if(n.name&&qf(n.name,e.appContext.config),n.components){const o=Object.keys(n.components);for(let s=0;s<o.length;s++)qf(o[s],e.appContext.config)}if(n.directives){const o=Object.keys(n.directives);for(let s=0;s<o.length;s++)pv(o[s])}n.compilerOptions&&W6()&&Vt('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,yv),{}.NODE_ENV!=="production"&&l6(e);const{setup:i}=n;if(i){const o=e.setupContext=i.length>1?Z6(e):null,s=Qa(e);Pi();const a=Ni(i,e,0,[{}.NODE_ENV!=="production"?Oi(e.props):e.props,o]);if(Ti(),s(),rf(a)){if(a.then(Bv,Bv),t)return a.then(c=>{qv(e,c,t)}).catch(c=>{Ma(c,e,0)});if(e.asyncDep=a,{}.NODE_ENV!=="production"&&!e.suspense){const c=(r=n.name)!=null?r:"Anonymous";Vt(`Component <${c}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else qv(e,a,t)}else Kv(e,t)}function qv(e,t,r){me(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:er(t)?({}.NODE_ENV!=="production"&&Ja(t)&&Vt("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=K1(t),{}.NODE_ENV!=="production"&&c6(e)):{}.NODE_ENV!=="production"&&t!==void 0&&Vt(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Kv(e,r)}let Kf;const W6=()=>!Kf;function Kv(e,t,r){const n=e.type;if(!e.render){if(!t&&Kf&&!n.render){const i=n.template||Ff(e).template;if(i){({}).NODE_ENV!=="production"&&Ri(e,"compile");const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:c}=n,l=lr(lr({isCustomElement:o,delimiters:a},s),c);n.render=Kf(i,l),{}.NODE_ENV!=="production"&&Ii(e,"compile")}}e.render=n.render||mr}{const i=Qa(e);Pi();try{h6(e)}finally{Ti(),i()}}({}).NODE_ENV!=="production"&&!n.render&&e.render===mr&&!t&&(n.template?Vt('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):Vt("Component is missing template or render function."))}const Yv={}.NODE_ENV!=="production"?{get(e,t){return Ou(),Ir(e,"get",""),e[t]},set(){return Vt("setupContext.attrs is readonly."),!1},deleteProperty(){return Vt("setupContext.attrs is readonly."),!1}}:{get(e,t){return Ir(e,"get",""),e[t]}};function Q6(e){return e.slotsProxy||(e.slotsProxy=new Proxy(e.slots,{get(t,r){return Ir(e,"get","$slots"),t[r]}}))}function Z6(e){const t=r=>{if({}.NODE_ENV!=="production"&&(e.exposed&&Vt("expose() should be called only once per setup()."),r!=null)){let n=typeof r;n==="object"&&(ue(r)?n="array":Ur(r)&&(n="ref")),n!=="object"&&Vt(`expose() should be passed a plain object, received ${n}.`)}e.exposed=r||{}};if({}.NODE_ENV!=="production"){let r;return Object.freeze({get attrs(){return r||(r=new Proxy(e.attrs,Yv))},get slots(){return Q6(e)},get emit(){return(n,...i)=>e.emit(n,...i)},expose:t})}else return{attrs:new Proxy(e.attrs,Yv),slots:e.slots,emit:e.emit,expose:t}}function Yf(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(K1(hk(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in ts)return ts[r](e)},has(t,r){return r in t||r in ts}}))}const tP=/(?:^|[-_])(\w)/g,eP=e=>e.replace(tP,t=>t.toUpperCase()).replace(/[-_]/g,"");function Xv(e,t=!0){return me(e)?e.displayName||e.name:e.name||t&&e.__name}function zu(e,t,r=!1){let n=Xv(t);if(!n&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&e&&e.parent){const i=o=>{for(const s in o)if(o[s]===t)return s};n=i(e.components||e.parent.type.components)||i(e.appContext.components)}return n?eP(n):r?"App":"Anonymous"}function Jv(e){return me(e)&&"__vccOpts"in e}const rP=(e,t)=>{const r=fk(e,t,Vu);if({}.NODE_ENV!=="production"){const n=K6();n&&n.appContext.config.warnRecursiveComputed&&(r._warnRecursive=!0)}return r};function Wv(e,t,r){const n=arguments.length;return n===2?er(t)&&!ue(t)?Ja(t)?mn(e,null,[t]):mn(e,t):mn(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ja(r)&&(r=[r]),mn(e,t,r))}function nP(){if({}.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},r={style:"color:#f5222d"},n={style:"color:#eb2f96"},i={header(h){return er(h)?h.__isVue?["div",e,"VueInstance"]:Ur(h)?["div",{},["span",e,u(h)],"<",a(h.value),">"]:Hs(h)?["div",{},["span",e,Ks(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${qs(h)?" (readonly)":""}`]:qs(h)?["div",{},["span",e,Ks(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...o(h.$)]}};function o(h){const f=[];h.type.props&&h.props&&f.push(s("props",xe(h.props))),h.setupState!==Je&&f.push(s("setup",h.setupState)),h.data!==Je&&f.push(s("data",xe(h.data)));const d=c(h,"computed");d&&f.push(s("computed",d));const p=c(h,"inject");return p&&f.push(s("injected",p)),f.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function s(h,f){return f=lr({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(d=>["div",{},["span",n,d+": "],a(f[d],!1)])]]:["span",{}]}function a(h,f=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",r,JSON.stringify(h)]:typeof h=="boolean"?["span",n,h]:er(h)?["object",{object:f?xe(h):h}]:["span",r,String(h)]}function c(h,f){const d=h.type;if(me(d))return;const p={};for(const m in h.ctx)l(d,m,f)&&(p[m]=h.ctx[m]);return p}function l(h,f,d){const p=h[d];if(ue(p)&&p.includes(f)||er(p)&&f in p||h.extends&&l(h.extends,f,d)||h.mixins&&h.mixins.some(m=>l(m,f,d)))return!0}function u(h){return Ks(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const Qv="3.4.25",Gu={}.NODE_ENV!=="production"?Vt:mr;/**
|
|
22
|
+
* @vue/runtime-dom v3.4.25
|
|
23
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
24
|
+
* @license MIT
|
|
25
|
+
**/const iP="http://www.w3.org/2000/svg",oP="http://www.w3.org/1998/Math/MathML",vo=typeof document<"u"?document:null,Zv=vo&&vo.createElement("template"),sP={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?vo.createElementNS(iP,e):t==="mathml"?vo.createElementNS(oP,e):vo.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>vo.createTextNode(e),createComment:e=>vo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,o){const s=r?r.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===o||!(i=i.nextSibling)););else{Zv.innerHTML=n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e;const a=Zv.content;if(n==="svg"||n==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},aP=Symbol("_vtc");function lP(e,t,r){const n=e[aP];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const t_=Symbol("_vod"),cP=Symbol("_vsh"),uP=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),hP=/(^|;)\s*display\s*:/;function dP(e,t,r){const n=e.style,i=wr(r);let o=!1;if(r&&!i){if(t)if(wr(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();r[a]==null&&Bu(n,a,"")}else for(const s in t)r[s]==null&&Bu(n,s,"");for(const s in r)s==="display"&&(o=!0),Bu(n,s,r[s])}else if(i){if(t!==r){const s=n[uP];s&&(r+=";"+s),n.cssText=r,o=hP.test(r)}}else t&&e.removeAttribute("style");t_ in e&&(e[t_]=o?n.display:"",e[cP]&&(n.display="none"))}const fP=/[^\\];\s*$/,e_=/\s*!important$/;function Bu(e,t,r){if(ue(r))r.forEach(n=>Bu(e,t,n));else if(r==null&&(r=""),{}.NODE_ENV!=="production"&&fP.test(r)&&Gu(`Unexpected semicolon at the end of '${t}' style value: '${r}'`),t.startsWith("--"))e.setProperty(t,r);else{const n=pP(e,t);e_.test(r)?e.setProperty(fn(n),r.replace(e_,""),"important"):e[n]=r}}const r_=["Webkit","Moz","ms"],Xf={};function pP(e,t){const r=Xf[t];if(r)return r;let n=ki(t);if(n!=="filter"&&n in e)return Xf[t]=n;n=pu(n);for(let i=0;i<r_.length;i++){const o=r_[i]+n;if(o in e)return Xf[t]=o}return t}const n_="http://www.w3.org/1999/xlink";function mP(e,t,r,n,i){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(n_,t.slice(6,t.length)):e.setAttributeNS(n_,t,r);else{const o=VC(t);r==null||o&&!x1(r)?e.removeAttribute(t):e.setAttribute(t,o?"":r)}}function gP(e,t,r,n,i,o,s){if(t==="innerHTML"||t==="textContent"){n&&s(n,i,o),e[t]=r??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const l=a==="OPTION"?e.getAttribute("value")||"":e.value,u=r??"";(l!==u||!("_value"in e))&&(e.value=u),r==null&&e.removeAttribute(t),e._value=r;return}let c=!1;if(r===""||r==null){const l=typeof e[t];l==="boolean"?r=x1(r):r==null&&l==="string"?(r="",c=!0):l==="number"&&(r=0,c=!0)}try{e[t]=r}catch(l){({}).NODE_ENV!=="production"&&!c&&Gu(`Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${r} is invalid.`,l)}c&&e.removeAttribute(t)}function yP(e,t,r,n){e.addEventListener(t,r,n)}function vP(e,t,r,n){e.removeEventListener(t,r,n)}const i_=Symbol("_vei");function _P(e,t,r,n,i=null){const o=e[i_]||(e[i_]={}),s=o[t];if(n&&s)s.value={}.NODE_ENV!=="production"?s_(n,t):n;else{const[a,c]=bP(t);if(n){const l=o[t]=$P({}.NODE_ENV!=="production"?s_(n,t):n,i);yP(e,a,l,c)}else s&&(vP(e,a,s,c),o[t]=void 0)}}const o_=/(?:Once|Passive|Capture)$/;function bP(e){let t;if(o_.test(e)){t={};let n;for(;n=e.match(o_);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):fn(e.slice(2)),t]}let Jf=0;const wP=Promise.resolve(),xP=()=>Jf||(wP.then(()=>Jf=0),Jf=Date.now());function $P(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Un(SP(n,r.value),t,5,[n])};return r.value=e,r.attached=xP(),r}function s_(e,t){return me(e)||ue(e)?e:(Gu(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
|
|
26
|
+
Expected function or array of functions, received type ${typeof e}.`),mr)}function SP(e,t){if(ue(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const a_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,EP=(e,t,r,n,i,o,s,a,c)=>{const l=i==="svg";t==="class"?lP(e,n,l):t==="style"?dP(e,r,n):Ra(t)?hu(t)||_P(e,t,r,n,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):CP(e,t,n,l))?gP(e,t,n,o,s,a,c):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),mP(e,t,n,l))};function CP(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&a_(t)&&me(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return a_(t)&&wr(r)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function kP(e,t){const r=Nf(e);class n extends Wf{constructor(o){super(r,o,t)}}return n.def=r,n}const PP=typeof HTMLElement<"u"?HTMLElement:class{};class Wf extends PP{constructor(t,r={},n){super(),this._def=t,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):({}.NODE_ENV!=="production"&&this.shadowRoot&&Gu("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),J1(()=>{this._connected||(c_(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(n=>{for(const i of n)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(n,i=!1)=>{const{props:o,styles:s}=n;let a;if(o&&!ue(o))for(const c in o){const l=o[c];(l===Number||l&&l.type===Number)&&(c in this._props&&(this._props[c]=b1(this._props[c])),(a||(a=Object.create(null)))[ki(c)]=!0)}this._numberProps=a,i&&this._resolveProps(n),this._applyStyles(s),this._update()},r=this._def.__asyncLoader;r?r().then(n=>t(n,!0)):t(this._def)}_resolveProps(t){const{props:r}=t,n=ue(r)?r:Object.keys(r||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of n.map(ki))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o)}})}_setAttr(t){let r=this.hasAttribute(t)?this.getAttribute(t):void 0;const n=ki(t);this._numberProps&&this._numberProps[n]&&(r=b1(r)),this._setProp(n,r,!1)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,i=!0){r!==this._props[t]&&(this._props[t]=r,i&&this._instance&&this._update(),n&&(r===!0?this.setAttribute(fn(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(fn(t),r+""):r||this.removeAttribute(fn(t))))}_update(){c_(this._createVNode(),this.shadowRoot)}_createVNode(){const t=mn(this._def,lr({},this._props));return this._instance||(t.ce=r=>{this._instance=r,r.isCE=!0,{}.NODE_ENV!=="production"&&(r.ceReload=o=>{this._styles&&(this._styles.forEach(s=>this.shadowRoot.removeChild(s)),this._styles.length=0),this._applyStyles(o),this._instance=null,this._update()});const n=(o,s)=>{this.dispatchEvent(new CustomEvent(o,{detail:s}))};r.emit=(o,...s)=>{n(o,s),fn(o)!==o&&n(fn(o),s)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof Wf){r.parent=i._instance,r.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(r=>{const n=document.createElement("style");n.textContent=r,this.shadowRoot.appendChild(n),{}.NODE_ENV!=="production"&&(this._styles||(this._styles=[])).push(n)})}}const TP=lr({patchProp:EP},sP);let l_;function OP(){return l_||(l_=N6(TP))}const c_=(...e)=>{OP().render(...e)};/**
|
|
27
|
+
* vue v3.4.25
|
|
28
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
29
|
+
* @license MIT
|
|
30
|
+
**/function NP(){nP()}({}).NODE_ENV!=="production"&&NP();function Xt(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const AP=(e,t="")=>(e=e.replace(/\[data-v-[0-9a-zA-Z]*\]/g,t),e);function u_(e,t){return function(){return e.apply(t,arguments)}}const{toString:DP}=Object.prototype,{getPrototypeOf:Qf}=Object,Hu=(e=>t=>{const r=DP.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),hi=e=>(e=e.toLowerCase(),t=>Hu(t)===e),qu=e=>t=>typeof t===e,{isArray:Ws}=Array,Za=qu("undefined");function RP(e){return e!==null&&!Za(e)&&e.constructor!==null&&!Za(e.constructor)&&En(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const h_=hi("ArrayBuffer");function IP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&h_(e.buffer),t}const jP=qu("string"),En=qu("function"),d_=qu("number"),Ku=e=>e!==null&&typeof e=="object",FP=e=>e===!0||e===!1,Yu=e=>{if(Hu(e)!=="object")return!1;const t=Qf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},MP=hi("Date"),LP=hi("File"),UP=hi("Blob"),VP=hi("FileList"),zP=e=>Ku(e)&&En(e.pipe),GP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||En(e.append)&&((t=Hu(e))==="formdata"||t==="object"&&En(e.toString)&&e.toString()==="[object FormData]"))},BP=hi("URLSearchParams"),HP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tl(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ws(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(n=0;n<s;n++)a=o[n],t.call(null,e[a],a,e)}}function f_(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const p_=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),m_=e=>!Za(e)&&e!==p_;function Zf(){const{caseless:e}=m_(this)&&this||{},t={},r=(n,i)=>{const o=e&&f_(t,i)||i;Yu(t[o])&&Yu(n)?t[o]=Zf(t[o],n):Yu(n)?t[o]=Zf({},n):Ws(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&tl(arguments[n],r);return t}const qP=(e,t,r,{allOwnKeys:n}={})=>(tl(t,(i,o)=>{r&&En(i)?e[o]=u_(i,r):e[o]=i},{allOwnKeys:n}),e),KP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),YP=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},XP=(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Qf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},JP=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},WP=e=>{if(!e)return null;if(Ws(e))return e;let t=e.length;if(!d_(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},QP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Qf(Uint8Array)),ZP=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},t8=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},e8=hi("HTMLFormElement"),r8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),g_=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),n8=hi("RegExp"),y_=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};tl(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},i8=e=>{y_(e,(t,r)=>{if(En(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(En(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},o8=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Ws(e)?n(e):n(String(e).split(t)),r},s8=()=>{},a8=(e,t)=>(e=+e,Number.isFinite(e)?e:t),tp="abcdefghijklmnopqrstuvwxyz",v_="0123456789",__={DIGIT:v_,ALPHA:tp,ALPHA_DIGIT:tp+tp.toUpperCase()+v_},l8=(e=16,t=__.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function c8(e){return!!(e&&En(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const u8=e=>{const t=new Array(10),r=(n,i)=>{if(Ku(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=Ws(n)?[]:{};return tl(n,(s,a)=>{const c=r(s,i+1);!Za(c)&&(o[a]=c)}),t[i]=void 0,o}}return n};return r(e,0)},h8=hi("AsyncFunction"),d8=e=>e&&(Ku(e)||En(e))&&En(e.then)&&En(e.catch),kt={isArray:Ws,isArrayBuffer:h_,isBuffer:RP,isFormData:GP,isArrayBufferView:IP,isString:jP,isNumber:d_,isBoolean:FP,isObject:Ku,isPlainObject:Yu,isUndefined:Za,isDate:MP,isFile:LP,isBlob:UP,isRegExp:n8,isFunction:En,isStream:zP,isURLSearchParams:BP,isTypedArray:QP,isFileList:VP,forEach:tl,merge:Zf,extend:qP,trim:HP,stripBOM:KP,inherits:YP,toFlatObject:XP,kindOf:Hu,kindOfTest:hi,endsWith:JP,toArray:WP,forEachEntry:ZP,matchAll:t8,isHTMLForm:e8,hasOwnProperty:g_,hasOwnProp:g_,reduceDescriptors:y_,freezeMethods:i8,toObjectSet:o8,toCamelCase:r8,noop:s8,toFiniteNumber:a8,findKey:f_,global:p_,isContextDefined:m_,ALPHABET:__,generateString:l8,isSpecCompliantForm:c8,toJSONObject:u8,isAsyncFn:h8,isThenable:d8};function De(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}kt.inherits(De,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:kt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const b_=De.prototype,w_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{w_[e]={value:e}}),Object.defineProperties(De,w_),Object.defineProperty(b_,"isAxiosError",{value:!0}),De.from=(e,t,r,n,i,o)=>{const s=Object.create(b_);return kt.toFlatObject(e,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),De.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const f8=null;function ep(e){return kt.isPlainObject(e)||kt.isArray(e)}function x_(e){return kt.endsWith(e,"[]")?e.slice(0,-2):e}function $_(e,t,r){return e?e.concat(t).map(function(n,i){return n=x_(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function p8(e){return kt.isArray(e)&&!e.some(ep)}const m8=kt.toFlatObject(kt,{},null,function(e){return/^is[A-Z]/.test(e)});function Xu(e,t,r){if(!kt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=kt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!kt.isUndefined(p[d])});const n=r.metaTokens,i=r.visitor||l,o=r.dots,s=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&kt.isSpecCompliantForm(t);if(!kt.isFunction(i))throw new TypeError("visitor must be a function");function c(d){if(d===null)return"";if(kt.isDate(d))return d.toISOString();if(!a&&kt.isBlob(d))throw new De("Blob is not supported. Use a Buffer instead.");return kt.isArrayBuffer(d)||kt.isTypedArray(d)?a&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function l(d,p,m){let v=d;if(d&&!m&&typeof d=="object"){if(kt.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if(kt.isArray(d)&&p8(d)||(kt.isFileList(d)||kt.endsWith(p,"[]"))&&(v=kt.toArray(d)))return p=x_(p),v.forEach(function(b,_){!(kt.isUndefined(b)||b===null)&&t.append(s===!0?$_([p],_,o):s===null?p:p+"[]",c(b))}),!1}return ep(d)?!0:(t.append($_(m,p,o),c(d)),!1)}const u=[],h=Object.assign(m8,{defaultVisitor:l,convertValue:c,isVisitable:ep});function f(d,p){if(!kt.isUndefined(d)){if(u.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(d),kt.forEach(d,function(m,v){(!(kt.isUndefined(m)||m===null)&&i.call(t,m,kt.isString(v)?v.trim():v,p,h))===!0&&f(m,p?p.concat(v):[v])}),u.pop()}}if(!kt.isObject(e))throw new TypeError("data must be an object");return f(e),t}function S_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function rp(e,t){this._pairs=[],e&&Xu(e,this,t)}const E_=rp.prototype;E_.append=function(e,t){this._pairs.push([e,t])},E_.toString=function(e){const t=e?function(r){return e.call(this,r,S_)}:S_;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function g8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function C_(e,t,r){if(!t)return e;const n=r&&r.encode||g8,i=r&&r.serialize;let o;if(i?o=i(t,r):o=kt.isURLSearchParams(t)?t.toString():new rp(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}const k_=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){kt.forEach(this.handlers,function(r){r!==null&&t(r)})}},P_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},y8=typeof URLSearchParams<"u"?URLSearchParams:rp,v8=typeof FormData<"u"?FormData:null,_8=typeof Blob<"u"?Blob:null,b8=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),w8=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),di={isBrowser:!0,classes:{URLSearchParams:y8,FormData:v8,Blob:_8},isStandardBrowserEnv:b8,isStandardBrowserWebWorkerEnv:w8,protocols:["http","https","file","blob","url","data"]};function x8(e,t){return Xu(e,new di.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return di.isNode&&kt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function $8(e){return kt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function S8(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}function T_(e){function t(r,n,i,o){let s=r[o++];const a=Number.isFinite(+s),c=o>=r.length;return s=!s&&kt.isArray(i)?i.length:s,c?(kt.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!kt.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&kt.isArray(i[s])&&(i[s]=S8(i[s])),!a)}if(kt.isFormData(e)&&kt.isFunction(e.entries)){const r={};return kt.forEachEntry(e,(n,i)=>{t($8(n),i,r,0)}),r}return null}function E8(e,t,r){if(kt.isString(e))try{return(t||JSON.parse)(e),kt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const np={transitional:P_,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=kt.isObject(e);if(i&&kt.isHTMLForm(e)&&(e=new FormData(e)),kt.isFormData(e))return n&&n?JSON.stringify(T_(e)):e;if(kt.isArrayBuffer(e)||kt.isBuffer(e)||kt.isStream(e)||kt.isFile(e)||kt.isBlob(e))return e;if(kt.isArrayBufferView(e))return e.buffer;if(kt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return x8(e,this.formSerializer).toString();if((o=kt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Xu(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),E8(e)):e}],transformResponse:[function(e){const t=this.transitional||np.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(e&&kt.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?De.from(o,De.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:di.classes.FormData,Blob:di.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};kt.forEach(["delete","get","head","post","put","patch"],e=>{np.headers[e]={}});const ip=np,C8=kt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),k8=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
31
|
+
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&C8[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},O_=Symbol("internals");function el(e){return e&&String(e).trim().toLowerCase()}function Ju(e){return e===!1||e==null?e:kt.isArray(e)?e.map(Ju):String(e)}function P8(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const T8=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function op(e,t,r,n,i){if(kt.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!kt.isString(t)){if(kt.isString(n))return t.indexOf(n)!==-1;if(kt.isRegExp(n))return n.test(t)}}function O8(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function N8(e,t){const r=kt.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}let Wu=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,c,l){const u=el(c);if(!u)throw new Error("header name must be a non-empty string");const h=kt.findKey(i,u);(!h||i[h]===void 0||l===!0||l===void 0&&i[h]!==!1)&&(i[h||c]=Ju(a))}const s=(a,c)=>kt.forEach(a,(l,u)=>o(l,u,c));return kt.isPlainObject(t)||t instanceof this.constructor?s(t,r):kt.isString(t)&&(t=t.trim())&&!T8(t)?s(k8(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=el(t),t){const n=kt.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return P8(i);if(kt.isFunction(r))return r.call(this,i,n);if(kt.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=el(t),t){const n=kt.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||op(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=el(s),s){const a=kt.findKey(n,s);a&&(!r||op(n,n[a],a,r))&&(delete n[a],i=!0)}}return kt.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||op(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return kt.forEach(this,(i,o)=>{const s=kt.findKey(n,o);if(s){r[s]=Ju(i),delete r[o];return}const a=t?O8(o):String(o).trim();a!==o&&delete r[o],r[a]=Ju(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return kt.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&kt.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
32
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[O_]=this[O_]={accessors:{}}).accessors,n=this.prototype;function i(o){const s=el(o);r[s]||(N8(n,o),r[s]=!0)}return kt.isArray(t)?t.forEach(i):i(t),this}};Wu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),kt.reduceDescriptors(Wu.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),kt.freezeMethods(Wu);const ji=Wu;function sp(e,t){const r=this||ip,n=t||r,i=ji.from(n.headers);let o=n.data;return kt.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function N_(e){return!!(e&&e.__CANCEL__)}function rl(e,t,r){De.call(this,e??"canceled",De.ERR_CANCELED,t,r),this.name="CanceledError"}kt.inherits(rl,De,{__CANCEL__:!0});function A8(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new De("Request failed with status code "+r.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const D8=di.isStandardBrowserEnv?function(){return{write:function(e,t,r,n,i,o){const s=[];s.push(e+"="+encodeURIComponent(t)),kt.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),kt.isString(n)&&s.push("path="+n),kt.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function R8(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function I8(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function A_(e,t){return e&&!R8(t)?I8(e,t):t}const j8=di.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(i){let o=i;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(i){const o=kt.isString(i)?n(i):i;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}();function F8(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function M8(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),l=n[o];s||(s=c),r[i]=a,n[i]=c;let u=o,h=0;for(;u!==i;)h+=r[u++],u=u%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const f=l&&c-l;return f?Math.round(h*1e3/f):void 0}}function D_(e,t){let r=0;const n=M8(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-r,c=n(a),l=o<=s;r=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&l?(s-o)/c:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const L8=typeof XMLHttpRequest<"u",U8=L8&&function(e){return new Promise(function(t,r){let n=e.data;const i=ji.from(e.headers).normalize(),o=e.responseType;let s;function a(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;kt.isFormData(n)&&(di.isStandardBrowserEnv||di.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?kt.isString(c=i.getContentType())&&i.setContentType(c.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(d+":"+p))}const u=A_(e.baseURL,e.url);l.open(e.method.toUpperCase(),C_(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function h(){if(!l)return;const d=ji.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:d,config:e,request:l};A8(function(m){t(m),a()},function(m){r(m),a()},p),l=null}if("onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(h)},l.onabort=function(){l&&(r(new De("Request aborted",De.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new De("Network Error",De.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||P_;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),r(new De(d,p.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,l)),l=null},di.isStandardBrowserEnv){const d=(e.withCredentials||j8(u))&&e.xsrfCookieName&&D8.read(e.xsrfCookieName);d&&i.set(e.xsrfHeaderName,d)}n===void 0&&i.setContentType(null),"setRequestHeader"in l&&kt.forEach(i.toJSON(),function(d,p){l.setRequestHeader(p,d)}),kt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",D_(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",D_(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=d=>{l&&(r(!d||d.type?new rl(null,e,l):d),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const f=F8(u);if(f&&di.protocols.indexOf(f)===-1){r(new De("Unsupported protocol "+f+":",De.ERR_BAD_REQUEST,e));return}l.send(n||null)})},ap={http:f8,xhr:U8};kt.forEach(ap,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const R_=e=>`- ${e}`,V8=e=>kt.isFunction(e)||e===null||e===!1,I_={getAdapter:e=>{e=kt.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){r=e[o];let s;if(n=r,!V8(r)&&(n=ap[(s=String(r)).toLowerCase()],n===void 0))throw new De(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
|
|
33
|
+
`+o.map(R_).join(`
|
|
34
|
+
`):" "+R_(o[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:ap};function lp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rl(null,e)}function j_(e){return lp(e),e.headers=ji.from(e.headers),e.data=sp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),I_.getAdapter(e.adapter||ip.adapter)(e).then(function(t){return lp(e),t.data=sp.call(e,e.transformResponse,t),t.headers=ji.from(t.headers),t},function(t){return N_(t)||(lp(e),t&&t.response&&(t.response.data=sp.call(e,e.transformResponse,t.response),t.response.headers=ji.from(t.response.headers))),Promise.reject(t)})}const F_=e=>e instanceof ji?e.toJSON():e;function Qs(e,t){t=t||{};const r={};function n(l,u,h){return kt.isPlainObject(l)&&kt.isPlainObject(u)?kt.merge.call({caseless:h},l,u):kt.isPlainObject(u)?kt.merge({},u):kt.isArray(u)?u.slice():u}function i(l,u,h){if(kt.isUndefined(u)){if(!kt.isUndefined(l))return n(void 0,l,h)}else return n(l,u,h)}function o(l,u){if(!kt.isUndefined(u))return n(void 0,u)}function s(l,u){if(kt.isUndefined(u)){if(!kt.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function a(l,u,h){if(h in t)return n(l,u);if(h in e)return n(void 0,l)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,u)=>i(F_(l),F_(u),!0)};return kt.forEach(Object.keys(Object.assign({},e,t)),function(l){const u=c[l]||i,h=u(e[l],t[l],l);kt.isUndefined(h)&&u!==a||(r[l]=h)}),r}const M_="1.5.1",cp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const L_={};cp.transitional=function(e,t,r){function n(i,o){return"[Axios v"+M_+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new De(n(o," has been removed"+(t?" in "+t:"")),De.ERR_DEPRECATED);return t&&!L_[o]&&(L_[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};function z8(e,t,r){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new De("option "+o+" must be "+c,De.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new De("Unknown option "+o,De.ERR_BAD_OPTION)}}const up={assertOptions:z8,validators:cp},_o=up.validators;class Qu{constructor(t){this.defaults=t,this.interceptors={request:new k_,response:new k_}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Qs(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&up.assertOptions(n,{silentJSONParsing:_o.transitional(_o.boolean),forcedJSONParsing:_o.transitional(_o.boolean),clarifyTimeoutError:_o.transitional(_o.boolean)},!1),i!=null&&(kt.isFunction(i)?r.paramsSerializer={serialize:i}:up.assertOptions(i,{encode:_o.function,serialize:_o.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&kt.merge(o.common,o[r.method]);o&&kt.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),r.headers=ji.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,h=0,f;if(!c){const p=[j_.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,l),f=p.length,u=Promise.resolve(r);h<f;)u=u.then(p[h++],p[h++]);return u}f=a.length;let d=r;for(h=0;h<f;){const p=a[h++],m=a[h++];try{d=p(d)}catch(v){m.call(this,v);break}}try{u=j_.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,f=l.length;h<f;)u=u.then(l[h++],l[h++]);return u}getUri(t){t=Qs(this.defaults,t);const r=A_(t.baseURL,t.url);return C_(r,t.params,t.paramsSerializer)}}kt.forEach(["delete","get","head","options"],function(e){Qu.prototype[e]=function(t,r){return this.request(Qs(r||{},{method:e,url:t,data:(r||{}).data}))}}),kt.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,o){return this.request(Qs(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Qu.prototype[e]=t(),Qu.prototype[e+"Form"]=t(!0)});const Zu=Qu,G8=class SC{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(i,o,s){n.reason||(n.reason=new rl(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new SC(function(r){t=r}),cancel:t}}};function B8(e){return function(t){return e.apply(null,t)}}function H8(e){return kt.isObject(e)&&e.isAxiosError===!0}const hp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(hp).forEach(([e,t])=>{hp[t]=e});const q8=hp;function U_(e){const t=new Zu(e),r=u_(Zu.prototype.request,t);return kt.extend(r,Zu.prototype,t,{allOwnKeys:!0}),kt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return U_(Qs(e,n))},r}const Sr=U_(ip);Sr.Axios=Zu,Sr.CanceledError=rl,Sr.CancelToken=G8,Sr.isCancel=N_,Sr.VERSION=M_,Sr.toFormData=Xu,Sr.AxiosError=De,Sr.Cancel=Sr.CanceledError,Sr.all=function(e){return Promise.all(e)},Sr.spread=B8,Sr.isAxiosError=H8,Sr.mergeConfig=Qs,Sr.AxiosHeaders=ji,Sr.formToJSON=e=>T_(kt.isHTMLForm(e)?new FormData(e):e),Sr.getAdapter=I_.getAdapter,Sr.HttpStatusCode=q8,Sr.default=Sr;var dp=function(e,t){return dp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},dp(e,t)};function bo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");dp(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function fp(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function nl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function il(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Fi(e){return typeof e=="function"}function pp(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var mp=pp(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
35
|
+
`+t.map(function(r,n){return n+1+") "+r.toString()}).join(`
|
|
36
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function th(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ol=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=fp(s),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(m){t={error:m}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(Fi(u))try{u()}catch(m){o=m instanceof mp?m.errors:[m]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=fp(h),d=f.next();!d.done;d=f.next()){var p=d.value;try{G_(p)}catch(m){o=o??[],m instanceof mp?o=il(il([],nl(o)),nl(m.errors)):o.push(m)}}}catch(m){n={error:m}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}if(o)throw new mp(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)G_(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&th(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&th(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),V_=ol.EMPTY;function z_(e){return e instanceof ol||e&&"closed"in e&&Fi(e.remove)&&Fi(e.add)&&Fi(e.unsubscribe)}function G_(e){Fi(e)?e():e.unsubscribe()}var B_={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},K8={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,il([e,t],nl(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Y8(e){K8.setTimeout(function(){throw e})}function H_(){}function eh(e){e()}var gp=function(e){bo(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,z_(r)&&r.add(n)):n.destination=Q8,n}return t.create=function(r,n,i){return new vp(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ol),X8=Function.prototype.bind;function yp(e,t){return X8.call(e,t)}var J8=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){rh(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){rh(n)}else rh(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){rh(r)}},e}(),vp=function(e){bo(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(Fi(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&B_.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&yp(r.next,a),error:r.error&&yp(r.error,a),complete:r.complete&&yp(r.complete,a)}):s=r}return o.destination=new J8(s),o}return t}(gp);function rh(e){Y8(e)}function W8(e){throw e}var Q8={closed:!0,next:H_,error:W8,complete:H_},Z8=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function tT(e){return e}function eT(e){return e.length===0?tT:e.length===1?e[0]:function(t){return e.reduce(function(r,n){return n(r)},t)}}var q_=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=nT(t)?t:new vp(t,r,n);return eh(function(){var s=i,a=s.operator,c=s.source;o.add(a?a.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=K_(r),new r(function(i,o){var s=new vp({next:function(a){try{t(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Z8]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return eT(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=K_(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function K_(e){var t;return(t=e??B_.Promise)!==null&&t!==void 0?t:Promise}function rT(e){return e&&Fi(e.next)&&Fi(e.error)&&Fi(e.complete)}function nT(e){return e&&e instanceof gp||rT(e)&&z_(e)}(function(e){bo(t,e);function t(r,n,i,o,s,a){var c=e.call(this,r)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=n?function(l){try{n(l)}catch(u){r.error(u)}}:e.prototype._next,c._error=o?function(l){try{o(l)}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=i?function(){try{i()}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(gp);var iT=pp(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),oT=function(e){bo(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Y_(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new iT},t.prototype.next=function(r){var n=this;eh(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=fp(n.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(r)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;eh(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;eh(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?V_:(this.currentObservers=null,a.push(r),new ol(function(){n.currentObservers=null,th(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new q_;return r.source=this,r},t.create=function(r,n){return new Y_(r,n)},t}(q_),Y_=function(e){bo(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:V_},t}(oT),sT={now:function(){return Date.now()},delegate:void 0},aT=function(e){bo(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(ol),_p={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=_p.delegate;return i?.setInterval?i.setInterval.apply(i,il([e,t],nl(r))):setInterval.apply(void 0,il([e,t],nl(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},lT=function(e){bo(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),_p.setInterval(r.flush.bind(r,this),i)},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&_p.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,th(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(aT),X_=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=sT.now,e}(),cT=function(e){bo(t,e);function t(r,n){n===void 0&&(n=X_.now);var i=e.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},t}(X_);new cT(lT);function uT(e){switch(e.responseType){case"json":{if("response"in e)return e.response;var t=e;return JSON.parse(t.responseText)}case"document":return e.responseXML;case"text":default:{if("response"in e)return e.response;var t=e;return t.responseText}}}var J_=pp(function(e){return function(t,r,n){this.message=t,this.name="AjaxError",this.xhr=r,this.request=n,this.status=r.status,this.responseType=r.responseType;var i;try{i=uT(r)}catch{i=r.responseText}this.response=i}});(function(){function e(t,r){return J_.call(this,"ajax timeout",t,r),this.name="AjaxTimeoutError",this}return e.prototype=Object.create(J_.prototype),e})();var hT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var bp={exports:{}},Zs=typeof Reflect=="object"?Reflect:null,W_=Zs&&typeof Zs.apply=="function"?Zs.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},nh;Zs&&typeof Zs.ownKeys=="function"?nh=Zs.ownKeys:Object.getOwnPropertySymbols?nh=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:nh=function(e){return Object.getOwnPropertyNames(e)};function dT(e){console&&console.warn&&console.warn(e)}var Q_=Number.isNaN||function(e){return e!==e};function He(){He.init.call(this)}bp.exports=He,bp.exports.once=gT,He.EventEmitter=He,He.prototype._events=void 0,He.prototype._eventsCount=0,He.prototype._maxListeners=void 0;var Z_=10;function ih(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(He,"defaultMaxListeners",{enumerable:!0,get:function(){return Z_},set:function(e){if(typeof e!="number"||e<0||Q_(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Z_=e}}),He.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},He.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Q_(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function t2(e){return e._maxListeners===void 0?He.defaultMaxListeners:e._maxListeners}He.prototype.getMaxListeners=function(){return t2(this)},He.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n=e==="error",i=this._events;if(i!==void 0)n=n&&i.error===void 0;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var a=i[e];if(a===void 0)return!1;if(typeof a=="function")W_(a,this,t);else for(var c=a.length,l=o2(a,c),r=0;r<c;++r)W_(l[r],this,t);return!0};function e2(e,t,r,n){var i,o,s;if(ih(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),s===void 0)s=o[t]=r,++e._eventsCount;else if(typeof s=="function"?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=t2(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,dT(a)}return e}He.prototype.addListener=function(e,t){return e2(this,e,t,!1)},He.prototype.on=He.prototype.addListener,He.prototype.prependListener=function(e,t){return e2(this,e,t,!0)};function fT(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function r2(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=fT.bind(n);return i.listener=r,n.wrapFn=i,i}He.prototype.once=function(e,t){return ih(t),this.on(e,r2(this,e,t)),this},He.prototype.prependOnceListener=function(e,t){return ih(t),this.prependListener(e,r2(this,e,t)),this},He.prototype.removeListener=function(e,t){var r,n,i,o,s;if(ih(t),n=this._events,n===void 0)return this;if(r=n[e],r===void 0)return this;if(r===t||r.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if(typeof r!="function"){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;i===0?r.shift():pT(r,i),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,s||t)}return this},He.prototype.off=He.prototype.removeListener,He.prototype.removeAllListeners=function(e){var t,r,n;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var i=Object.keys(r),o;for(n=0;n<i.length;++n)o=i[n],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=r[e],typeof t=="function")this.removeListener(e,t);else if(t!==void 0)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this};function n2(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?mT(i):o2(i,i.length)}He.prototype.listeners=function(e){return n2(this,e,!0)},He.prototype.rawListeners=function(e){return n2(this,e,!1)},He.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):i2.call(e,t)},He.prototype.listenerCount=i2;function i2(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}He.prototype.eventNames=function(){return this._eventsCount>0?nh(this._events):[]};function o2(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function pT(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function mT(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function gT(e,t){return new Promise(function(r,n){function i(s){e.removeListener(t,o),n(s)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}s2(e,t,o,{once:!0}),t!=="error"&&yT(e,i,{once:!0})})}function yT(e,t,r){typeof e.on=="function"&&s2(e,"error",t,r)}function s2(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var vT=bp.exports;let QZ=class extends vT.EventEmitter{constructor(){super()}on(t,r){return super.on(t,r)}addListener(t,r){return this.on(t,r)}prependListener(t,r){return super.prependListener(t,r)}once(t,r){return super.once(t,r)}prependOnceListener(t,r){return super.prependOnceListener(t,r)}removeListener(t,r){return super.removeListener(t,r)}off(t,r){return super.off(t,r)}removeAllListeners(t){return super.removeAllListeners(t)}emit(t,...r){return super.emit(t,...r)}listeners(t){return super.listeners(t)}rawListeners(t){return super.rawListeners(t)}listenerCount(t){return super.listenerCount(t)}};var wp={exports:{}},xp={},Mi={},rs={},$p={},Sp={},Ep={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(_){if(super(),!e.IDENTIFIER.test(_))throw new Error("CodeGen: name must be a valid identifier");this.str=_}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(_){super(),this._items=typeof _=="string"?[_]:_}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const _=this._items[0];return _===""||_==='""'}get str(){var _;return(_=this._str)!==null&&_!==void 0?_:this._str=this._items.reduce((g,S)=>`${g}${S}`,"")}get names(){var _;return(_=this._names)!==null&&_!==void 0?_:this._names=this._items.reduce((g,S)=>(S instanceof r&&(g[S.str]=(g[S.str]||0)+1),g),{})}}e._Code=n,e.nil=new n("");function i(b,..._){const g=[b[0]];let S=0;for(;S<_.length;)a(g,_[S]),g.push(b[++S]);return new n(g)}e._=i;const o=new n("+");function s(b,..._){const g=[d(b[0])];let S=0;for(;S<_.length;)g.push(o),a(g,_[S]),g.push(o,d(b[++S]));return c(g),new n(g)}e.str=s;function a(b,_){_ instanceof n?b.push(..._._items):_ instanceof r?b.push(_):b.push(h(_))}e.addCodeArg=a;function c(b){let _=1;for(;_<b.length-1;){if(b[_]===o){const g=l(b[_-1],b[_+1]);if(g!==void 0){b.splice(_-1,3,g);continue}b[_++]="+"}_++}}function l(b,_){if(_==='""')return b;if(b==='""')return _;if(typeof b=="string")return _ instanceof r||b[b.length-1]!=='"'?void 0:typeof _!="string"?`${b.slice(0,-1)}${_}"`:_[0]==='"'?b.slice(0,-1)+_.slice(1):void 0;if(typeof _=="string"&&_[0]==='"'&&!(b instanceof r))return`"${b}${_.slice(1)}`}function u(b,_){return _.emptyStr()?b:b.emptyStr()?_:s`${b}${_}`}e.strConcat=u;function h(b){return typeof b=="number"||typeof b=="boolean"||b===null?b:d(Array.isArray(b)?b.join(","):b)}function f(b){return new n(d(b))}e.stringify=f;function d(b){return JSON.stringify(b).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function p(b){return typeof b=="string"&&e.IDENTIFIER.test(b)?new n(`.${b}`):i`[${b}]`}e.getProperty=p;function m(b){if(typeof b=="string"&&e.IDENTIFIER.test(b))return new n(`${b}`);throw new Error(`CodeGen: invalid export name: ${b}, use explicit $id name mapping`)}e.getEsmExportName=m;function v(b){return new n(b.toString())}e.regexpCode=v})(Ep);const _T=nn(Ep),bT=Xt({__proto__:null,default:_T},[Ep]),sl=Jt(bT);var Cp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=sl;class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,h;if(!((h=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||h===void 0)&&h.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class o extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:h}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${h}]`}}e.ValueScopeName=o;const s=(0,t._)`\n`;class a extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?s:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,u){var h;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(l),{prefix:d}=f,p=(h=u.key)!==null&&h!==void 0?h:u.ref;let m=this._values[d];if(m){const _=m.get(p);if(_)return _}else m=this._values[d]=new Map;m.set(p,f);const v=this._scope[d]||(this._scope[d]=[]),b=v.length;return v[b]=u.ref,f.setValue(u,{property:d,itemIndex:b}),f}getValue(l,u){const h=this._values[l];if(h)return h.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,t._)`${l}${h.scopePath}`})}scopeCode(l=this._values,u,h){return this._reduceValues(l,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,h)}_reduceValues(l,u,h={},f){let d=t.nil;for(const p in l){const m=l[p];if(!m)continue;const v=h[p]=h[p]||new Map;m.forEach(b=>{if(v.has(b))return;v.set(b,n.Started);let _=u(b);if(_){const g=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${g} ${b} = ${_};${this.opts._n}`}else if(_=f?.(b))d=(0,t._)`${d}${_}${this.opts._n}`;else throw new r(b);v.set(b,n.Completed)})}return d}}e.ValueScope=a})(Cp);const wT=nn(Cp),xT=Xt({__proto__:null,default:wT},[Cp]),a2=Jt(xT);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=sl,r=a2;var n=sl;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=a2;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class o{optimizeNodes(){return this}optimizeNames(y,k){return this}}class s extends o{constructor(y,k,M){super(),this.varKind=y,this.name=k,this.rhs=M}render({es5:y,_n:k}){const M=y?r.varKinds.var:this.varKind,I=this.rhs===void 0?"":` = ${this.rhs}`;return`${M} ${this.name}${I};`+k}optimizeNames(y,k){if(y[this.name.str])return this.rhs&&(this.rhs=nt(this.rhs,y,k)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(y,k,M){super(),this.lhs=y,this.rhs=k,this.sideEffects=M}render({_n:y}){return`${this.lhs} = ${this.rhs};`+y}optimizeNames(y,k){if(!(this.lhs instanceof t.Name&&!y[this.lhs.str]&&!this.sideEffects))return this.rhs=nt(this.rhs,y,k),this}get names(){const y=this.lhs instanceof t.Name?{}:{...this.lhs.names};return ot(y,this.rhs)}}class c extends a{constructor(y,k,M,I){super(y,M,I),this.op=k}render({_n:y}){return`${this.lhs} ${this.op}= ${this.rhs};`+y}}class l extends o{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`${this.label}:`+y}}class u extends o{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`break${this.label?` ${this.label}`:""};`+y}}class h extends o{constructor(y){super(),this.error=y}render({_n:y}){return`throw ${this.error};`+y}get names(){return this.error.names}}class f extends o{constructor(y){super(),this.code=y}render({_n:y}){return`${this.code};`+y}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(y,k){return this.code=nt(this.code,y,k),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends o{constructor(y=[]){super(),this.nodes=y}render(y){return this.nodes.reduce((k,M)=>k+M.render(y),"")}optimizeNodes(){const{nodes:y}=this;let k=y.length;for(;k--;){const M=y[k].optimizeNodes();Array.isArray(M)?y.splice(k,1,...M):M?y[k]=M:y.splice(k,1)}return y.length>0?this:void 0}optimizeNames(y,k){const{nodes:M}=this;let I=M.length;for(;I--;){const z=M[I];z.optimizeNames(y,k)||(ft(y,z.names),M.splice(I,1))}return M.length>0?this:void 0}get names(){return this.nodes.reduce((y,k)=>W(y,k.names),{})}}class p extends d{render(y){return"{"+y._n+super.render(y)+"}"+y._n}}class m extends d{}class v extends p{}v.kind="else";class b extends p{constructor(y,k){super(k),this.condition=y}render(y){let k=`if(${this.condition})`+super.render(y);return this.else&&(k+="else "+this.else.render(y)),k}optimizeNodes(){super.optimizeNodes();const y=this.condition;if(y===!0)return this.nodes;let k=this.else;if(k){const M=k.optimizeNodes();k=this.else=Array.isArray(M)?new v(M):M}if(k)return y===!1?k instanceof b?k:k.nodes:this.nodes.length?this:new b($t(y),k instanceof b?[k]:k.nodes);if(!(y===!1||!this.nodes.length))return this}optimizeNames(y,k){var M;if(this.else=(M=this.else)===null||M===void 0?void 0:M.optimizeNames(y,k),!!(super.optimizeNames(y,k)||this.else))return this.condition=nt(this.condition,y,k),this}get names(){const y=super.names;return ot(y,this.condition),this.else&&W(y,this.else.names),y}}b.kind="if";class _ extends p{}_.kind="for";class g extends _{constructor(y){super(),this.iteration=y}render(y){return`for(${this.iteration})`+super.render(y)}optimizeNames(y,k){if(super.optimizeNames(y,k))return this.iteration=nt(this.iteration,y,k),this}get names(){return W(super.names,this.iteration.names)}}class S extends _{constructor(y,k,M,I){super(),this.varKind=y,this.name=k,this.from=M,this.to=I}render(y){const k=y.es5?r.varKinds.var:this.varKind,{name:M,from:I,to:z}=this;return`for(${k} ${M}=${I}; ${M}<${z}; ${M}++)`+super.render(y)}get names(){const y=ot(super.names,this.from);return ot(y,this.to)}}class A extends _{constructor(y,k,M,I){super(),this.loop=y,this.varKind=k,this.name=M,this.iterable=I}render(y){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(y)}optimizeNames(y,k){if(super.optimizeNames(y,k))return this.iterable=nt(this.iterable,y,k),this}get names(){return W(super.names,this.iterable.names)}}class E extends p{constructor(y,k,M){super(),this.name=y,this.args=k,this.async=M}render(y){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(y)}}E.kind="func";class N extends d{render(y){return"return "+super.render(y)}}N.kind="return";class D extends p{render(y){let k="try"+super.render(y);return this.catch&&(k+=this.catch.render(y)),this.finally&&(k+=this.finally.render(y)),k}optimizeNodes(){var y,k;return super.optimizeNodes(),(y=this.catch)===null||y===void 0||y.optimizeNodes(),(k=this.finally)===null||k===void 0||k.optimizeNodes(),this}optimizeNames(y,k){var M,I;return super.optimizeNames(y,k),(M=this.catch)===null||M===void 0||M.optimizeNames(y,k),(I=this.finally)===null||I===void 0||I.optimizeNames(y,k),this}get names(){const y=super.names;return this.catch&&W(y,this.catch.names),this.finally&&W(y,this.finally.names),y}}class U extends p{constructor(y){super(),this.error=y}render(y){return`catch(${this.error})`+super.render(y)}}U.kind="catch";class G extends p{render(y){return"finally"+super.render(y)}}G.kind="finally";class K{constructor(y,k={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...k,_n:k.lines?`
|
|
37
|
+
`:""},this._extScope=y,this._scope=new r.Scope({parent:y}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(y){return this._scope.name(y)}scopeName(y){return this._extScope.name(y)}scopeValue(y,k){const M=this._extScope.value(y,k);return(this._values[M.prefix]||(this._values[M.prefix]=new Set)).add(M),M}getScopeValue(y,k){return this._extScope.getValue(y,k)}scopeRefs(y){return this._extScope.scopeRefs(y,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(y,k,M,I){const z=this._scope.toName(k);return M!==void 0&&I&&(this._constants[z.str]=M),this._leafNode(new s(y,z,M)),z}const(y,k,M){return this._def(r.varKinds.const,y,k,M)}let(y,k,M){return this._def(r.varKinds.let,y,k,M)}var(y,k,M){return this._def(r.varKinds.var,y,k,M)}assign(y,k,M){return this._leafNode(new a(y,k,M))}add(y,k){return this._leafNode(new c(y,e.operators.ADD,k))}code(y){return typeof y=="function"?y():y!==t.nil&&this._leafNode(new f(y)),this}object(...y){const k=["{"];for(const[M,I]of y)k.length>1&&k.push(","),k.push(M),(M!==I||this.opts.es5)&&(k.push(":"),(0,t.addCodeArg)(k,I));return k.push("}"),new t._Code(k)}if(y,k,M){if(this._blockNode(new b(y)),k&&M)this.code(k).else().code(M).endIf();else if(k)this.code(k).endIf();else if(M)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(y){return this._elseNode(new b(y))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(y,k){return this._blockNode(y),k&&this.code(k).endFor(),this}for(y,k){return this._for(new g(y),k)}forRange(y,k,M,I,z=this.opts.es5?r.varKinds.var:r.varKinds.let){const q=this._scope.toName(y);return this._for(new S(z,q,k,M),()=>I(q))}forOf(y,k,M,I=r.varKinds.const){const z=this._scope.toName(y);if(this.opts.es5){const q=k instanceof t.Name?k:this.var("_arr",k);return this.forRange("_i",0,(0,t._)`${q}.length`,et=>{this.var(z,(0,t._)`${q}[${et}]`),M(z)})}return this._for(new A("of",I,z,k),()=>M(z))}forIn(y,k,M,I=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(y,(0,t._)`Object.keys(${k})`,M);const z=this._scope.toName(y);return this._for(new A("in",I,z,k),()=>M(z))}endFor(){return this._endBlockNode(_)}label(y){return this._leafNode(new l(y))}break(y){return this._leafNode(new u(y))}return(y){const k=new N;if(this._blockNode(k),this.code(y),k.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(N)}try(y,k,M){if(!k&&!M)throw new Error('CodeGen: "try" without "catch" and "finally"');const I=new D;if(this._blockNode(I),this.code(y),k){const z=this.name("e");this._currNode=I.catch=new U(z),k(z)}return M&&(this._currNode=I.finally=new G,this.code(M)),this._endBlockNode(U,G)}throw(y){return this._leafNode(new h(y))}block(y,k){return this._blockStarts.push(this._nodes.length),y&&this.code(y).endBlock(k),this}endBlock(y){const k=this._blockStarts.pop();if(k===void 0)throw new Error("CodeGen: not in self-balancing block");const M=this._nodes.length-k;if(M<0||y!==void 0&&M!==y)throw new Error(`CodeGen: wrong number of nodes: ${M} vs ${y} expected`);return this._nodes.length=k,this}func(y,k=t.nil,M,I){return this._blockNode(new E(y,k,M)),I&&this.code(I).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(y=1){for(;y-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(y){return this._currNode.nodes.push(y),this}_blockNode(y){this._currNode.nodes.push(y),this._nodes.push(y)}_endBlockNode(y,k){const M=this._currNode;if(M instanceof y||k&&M instanceof k)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${k?`${y.kind}/${k.kind}`:y.kind}"`)}_elseNode(y){const k=this._currNode;if(!(k instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=k.else=y,this}get _root(){return this._nodes[0]}get _currNode(){const y=this._nodes;return y[y.length-1]}set _currNode(y){const k=this._nodes;k[k.length-1]=y}}e.CodeGen=K;function W($,y){for(const k in y)$[k]=($[k]||0)+(y[k]||0);return $}function ot($,y){return y instanceof t._CodeOrName?W($,y.names):$}function nt($,y,k){if($ instanceof t.Name)return M($);if(!I($))return $;return new t._Code($._items.reduce((z,q)=>(q instanceof t.Name&&(q=M(q)),q instanceof t._Code?z.push(...q._items):z.push(q),z),[]));function M(z){const q=k[z.str];return q===void 0||y[z.str]!==1?z:(delete y[z.str],q)}function I(z){return z instanceof t._Code&&z._items.some(q=>q instanceof t.Name&&y[q.str]===1&&k[q.str]!==void 0)}}function ft($,y){for(const k in y)$[k]=($[k]||0)-(y[k]||0)}function $t($){return typeof $=="boolean"||typeof $=="number"||$===null?!$:(0,t._)`!${C($)}`}e.not=$t;const _t=T(e.operators.AND);function vt(...$){return $.reduce(_t)}e.and=vt;const at=T(e.operators.OR);function Y(...$){return $.reduce(at)}e.or=Y;function T($){return(y,k)=>y===t.nil?k:k===t.nil?y:(0,t._)`${C(y)} ${$} ${C(k)}`}function C($){return $ instanceof t.Name?$:(0,t._)`(${$})`}})(Sp);const $T=nn(Sp),ST=Xt({__proto__:null,default:$T},[Sp]),$e=Jt(ST);var kp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=$e,r=sl;function n(E){const N={};for(const D of E)N[D]=!0;return N}e.toHash=n;function i(E,N){return typeof N=="boolean"?N:Object.keys(N).length===0?!0:(o(E,N),!s(N,E.self.RULES.all))}e.alwaysValidSchema=i;function o(E,N=E.schema){const{opts:D,self:U}=E;if(!D.strictSchema||typeof N=="boolean")return;const G=U.RULES.keywords;for(const K in N)G[K]||A(E,`unknown keyword: "${K}"`)}e.checkUnknownRules=o;function s(E,N){if(typeof E=="boolean")return!E;for(const D in E)if(N[D])return!0;return!1}e.schemaHasRules=s;function a(E,N){if(typeof E=="boolean")return!E;for(const D in E)if(D!=="$ref"&&N.all[D])return!0;return!1}e.schemaHasRulesButRef=a;function c({topSchemaRef:E,schemaPath:N},D,U,G){if(!G){if(typeof D=="number"||typeof D=="boolean")return D;if(typeof D=="string")return(0,t._)`${D}`}return(0,t._)`${E}${N}${(0,t.getProperty)(U)}`}e.schemaRefOrVal=c;function l(E){return f(decodeURIComponent(E))}e.unescapeFragment=l;function u(E){return encodeURIComponent(h(E))}e.escapeFragment=u;function h(E){return typeof E=="number"?`${E}`:E.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=h;function f(E){return E.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function d(E,N){if(Array.isArray(E))for(const D of E)N(D);else N(E)}e.eachItem=d;function p({mergeNames:E,mergeToName:N,mergeValues:D,resultToName:U}){return(G,K,W,ot)=>{const nt=W===void 0?K:W instanceof t.Name?(K instanceof t.Name?E(G,K,W):N(G,K,W),W):K instanceof t.Name?(N(G,W,K),K):D(K,W);return ot===t.Name&&!(nt instanceof t.Name)?U(G,nt):nt}}e.mergeEvaluated={props:p({mergeNames:(E,N,D)=>E.if((0,t._)`${D} !== true && ${N} !== undefined`,()=>{E.if((0,t._)`${N} === true`,()=>E.assign(D,!0),()=>E.assign(D,(0,t._)`${D} || {}`).code((0,t._)`Object.assign(${D}, ${N})`))}),mergeToName:(E,N,D)=>E.if((0,t._)`${D} !== true`,()=>{N===!0?E.assign(D,!0):(E.assign(D,(0,t._)`${D} || {}`),v(E,D,N))}),mergeValues:(E,N)=>E===!0?!0:{...E,...N},resultToName:m}),items:p({mergeNames:(E,N,D)=>E.if((0,t._)`${D} !== true && ${N} !== undefined`,()=>E.assign(D,(0,t._)`${N} === true ? true : ${D} > ${N} ? ${D} : ${N}`)),mergeToName:(E,N,D)=>E.if((0,t._)`${D} !== true`,()=>E.assign(D,N===!0?!0:(0,t._)`${D} > ${N} ? ${D} : ${N}`)),mergeValues:(E,N)=>E===!0?!0:Math.max(E,N),resultToName:(E,N)=>E.var("items",N)})};function m(E,N){if(N===!0)return E.var("props",!0);const D=E.var("props",(0,t._)`{}`);return N!==void 0&&v(E,D,N),D}e.evaluatedPropsToName=m;function v(E,N,D){Object.keys(D).forEach(U=>E.assign((0,t._)`${N}${(0,t.getProperty)(U)}`,!0))}e.setEvaluated=v;const b={};function _(E,N){return E.scopeValue("func",{ref:N,code:b[N.code]||(b[N.code]=new r._Code(N.code))})}e.useFunc=_;var g;(function(E){E[E.Num=0]="Num",E[E.Str=1]="Str"})(g=e.Type||(e.Type={}));function S(E,N,D){if(E instanceof t.Name){const U=N===g.Num;return D?U?(0,t._)`"[" + ${E} + "]"`:(0,t._)`"['" + ${E} + "']"`:U?(0,t._)`"/" + ${E}`:(0,t._)`"/" + ${E}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return D?(0,t.getProperty)(E).toString():"/"+h(E)}e.getErrorPath=S;function A(E,N,D=E.opts.strictSchema){if(D){if(N=`strict mode: ${N}`,D===!0)throw new Error(N);E.self.logger.warn(N)}}e.checkStrictMode=A})(kp);const ET=nn(kp),CT=Xt({__proto__:null,default:ET},[kp]),Fe=Jt(CT);var Pp={};Object.defineProperty(Pp,"__esModule",{value:!0});const zr=$e,kT={data:new zr.Name("data"),valCxt:new zr.Name("valCxt"),instancePath:new zr.Name("instancePath"),parentData:new zr.Name("parentData"),parentDataProperty:new zr.Name("parentDataProperty"),rootData:new zr.Name("rootData"),dynamicAnchors:new zr.Name("dynamicAnchors"),vErrors:new zr.Name("vErrors"),errors:new zr.Name("errors"),this:new zr.Name("this"),self:new zr.Name("self"),scope:new zr.Name("scope"),json:new zr.Name("json"),jsonPos:new zr.Name("jsonPos"),jsonLen:new zr.Name("jsonLen"),jsonPart:new zr.Name("jsonPart")};var PT=Pp.default=kT;const TT=Xt({__proto__:null,default:PT},[Pp]),Li=Jt(TT);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=$e,r=Fe,n=Li;e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:b})=>b?(0,t.str)`"${v}" keyword must be ${b} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,b=e.keywordError,_,g){const{it:S}=v,{gen:A,compositeRule:E,allErrors:N}=S,D=h(v,b,_);g??(E||N)?c(A,D):l(S,(0,t._)`[${D}]`)}e.reportError=i;function o(v,b=e.keywordError,_){const{it:g}=v,{gen:S,compositeRule:A,allErrors:E}=g,N=h(v,b,_);c(S,N),A||E||l(g,n.default.vErrors)}e.reportExtraError=o;function s(v,b){v.assign(n.default.errors,b),v.if((0,t._)`${n.default.vErrors} !== null`,()=>v.if(b,()=>v.assign((0,t._)`${n.default.vErrors}.length`,b),()=>v.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:v,keyword:b,schemaValue:_,data:g,errsCount:S,it:A}){if(S===void 0)throw new Error("ajv implementation error");const E=v.name("err");v.forRange("i",S,n.default.errors,N=>{v.const(E,(0,t._)`${n.default.vErrors}[${N}]`),v.if((0,t._)`${E}.instancePath === undefined`,()=>v.assign((0,t._)`${E}.instancePath`,(0,t.strConcat)(n.default.instancePath,A.errorPath))),v.assign((0,t._)`${E}.schemaPath`,(0,t.str)`${A.errSchemaPath}/${b}`),A.opts.verbose&&(v.assign((0,t._)`${E}.schema`,_),v.assign((0,t._)`${E}.data`,g))})}e.extendErrors=a;function c(v,b){const _=v.const("err",b);v.if((0,t._)`${n.default.vErrors} === null`,()=>v.assign(n.default.vErrors,(0,t._)`[${_}]`),(0,t._)`${n.default.vErrors}.push(${_})`),v.code((0,t._)`${n.default.errors}++`)}function l(v,b){const{gen:_,validateName:g,schemaEnv:S}=v;S.$async?_.throw((0,t._)`new ${v.ValidationError}(${b})`):(_.assign((0,t._)`${g}.errors`,b),_.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function h(v,b,_){const{createErrors:g}=v.it;return g===!1?(0,t._)`{}`:f(v,b,_)}function f(v,b,_={}){const{gen:g,it:S}=v,A=[d(S,_),p(v,_)];return m(v,b,A),g.object(...A)}function d({errorPath:v},{instancePath:b}){const _=b?(0,t.str)`${v}${(0,r.getErrorPath)(b,r.Type.Str)}`:v;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,_)]}function p({keyword:v,it:{errSchemaPath:b}},{schemaPath:_,parentSchema:g}){let S=g?b:(0,t.str)`${b}/${v}`;return _&&(S=(0,t.str)`${S}${(0,r.getErrorPath)(_,r.Type.Str)}`),[u.schemaPath,S]}function m(v,{params:b,message:_},g){const{keyword:S,data:A,schemaValue:E,it:N}=v,{opts:D,propertyName:U,topSchemaRef:G,schemaPath:K}=N;g.push([u.keyword,S],[u.params,typeof b=="function"?b(v):b||(0,t._)`{}`]),D.messages&&g.push([u.message,typeof _=="function"?_(v):_]),D.verbose&&g.push([u.schema,E],[u.parentSchema,(0,t._)`${G}${K}`],[n.default.data,A]),U&&g.push([u.propertyName,U])}})($p);const OT=nn($p),NT=Xt({__proto__:null,default:OT},[$p]),al=Jt(NT);Object.defineProperty(rs,"__esModule",{value:!0});var l2=rs.boolOrEmptySchema=c2=rs.topBoolOrEmptySchema=void 0;const AT=al,DT=$e,RT=Li,IT={message:"boolean schema is false"};function jT(e){const{gen:t,schema:r,validateName:n}=e;r===!1?u2(e,!1):typeof r=="object"&&r.$async===!0?t.return(RT.default.data):(t.assign((0,DT._)`${n}.errors`,null),t.return(!0))}var c2=rs.topBoolOrEmptySchema=jT;function FT(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),u2(e)):r.var(t,!0)}l2=rs.boolOrEmptySchema=FT;function u2(e,t){const{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,AT.reportError)(i,IT,void 0,t)}const MT=Xt({__proto__:null,get boolOrEmptySchema(){return l2},default:rs,get topBoolOrEmptySchema(){return c2}},[rs]),LT=Jt(MT);var Tp={},ns={};Object.defineProperty(ns,"__esModule",{value:!0});var h2=ns.getRules=d2=ns.isJSONType=void 0;const UT=["string","number","integer","boolean","null","object","array"],VT=new Set(UT);function zT(e){return typeof e=="string"&&VT.has(e)}var d2=ns.isJSONType=zT;function GT(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}h2=ns.getRules=GT;const BT=Xt({__proto__:null,default:ns,get getRules(){return h2},get isJSONType(){return d2}},[ns]),f2=Jt(BT);var Ui={};Object.defineProperty(Ui,"__esModule",{value:!0});var p2=Ui.shouldUseRule=y2=Ui.shouldUseGroup=m2=Ui.schemaHasRulesForType=void 0;function HT({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&g2(e,n)}var m2=Ui.schemaHasRulesForType=HT;function g2(e,t){return t.rules.some(r=>v2(e,r))}var y2=Ui.shouldUseGroup=g2;function v2(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}p2=Ui.shouldUseRule=v2;const qT=Xt({__proto__:null,default:Ui,get schemaHasRulesForType(){return m2},get shouldUseGroup(){return y2},get shouldUseRule(){return p2}},[Ui]),_2=Jt(qT);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=f2,r=_2,n=al,i=$e,o=Fe;var s;(function(g){g[g.Correct=0]="Correct",g[g.Wrong=1]="Wrong"})(s=e.DataType||(e.DataType={}));function a(g){const S=c(g.type);if(S.includes("null")){if(g.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!S.length&&g.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');g.nullable===!0&&S.push("null")}return S}e.getSchemaTypes=a;function c(g){const S=Array.isArray(g)?g:g?[g]:[];if(S.every(t.isJSONType))return S;throw new Error("type must be JSONType or JSONType[]: "+S.join(","))}e.getJSONTypes=c;function l(g,S){const{gen:A,data:E,opts:N}=g,D=h(S,N.coerceTypes),U=S.length>0&&!(D.length===0&&S.length===1&&(0,r.schemaHasRulesForType)(g,S[0]));if(U){const G=m(S,E,N.strictNumbers,s.Wrong);A.if(G,()=>{D.length?f(g,S,D):b(g)})}return U}e.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function h(g,S){return S?g.filter(A=>u.has(A)||S==="array"&&A==="array"):[]}function f(g,S,A){const{gen:E,data:N,opts:D}=g,U=E.let("dataType",(0,i._)`typeof ${N}`),G=E.let("coerced",(0,i._)`undefined`);D.coerceTypes==="array"&&E.if((0,i._)`${U} == 'object' && Array.isArray(${N}) && ${N}.length == 1`,()=>E.assign(N,(0,i._)`${N}[0]`).assign(U,(0,i._)`typeof ${N}`).if(m(S,N,D.strictNumbers),()=>E.assign(G,N))),E.if((0,i._)`${G} !== undefined`);for(const W of A)(u.has(W)||W==="array"&&D.coerceTypes==="array")&&K(W);E.else(),b(g),E.endIf(),E.if((0,i._)`${G} !== undefined`,()=>{E.assign(N,G),d(g,G)});function K(W){switch(W){case"string":E.elseIf((0,i._)`${U} == "number" || ${U} == "boolean"`).assign(G,(0,i._)`"" + ${N}`).elseIf((0,i._)`${N} === null`).assign(G,(0,i._)`""`);return;case"number":E.elseIf((0,i._)`${U} == "boolean" || ${N} === null
|
|
38
|
+
|| (${U} == "string" && ${N} && ${N} == +${N})`).assign(G,(0,i._)`+${N}`);return;case"integer":E.elseIf((0,i._)`${U} === "boolean" || ${N} === null
|
|
39
|
+
|| (${U} === "string" && ${N} && ${N} == +${N} && !(${N} % 1))`).assign(G,(0,i._)`+${N}`);return;case"boolean":E.elseIf((0,i._)`${N} === "false" || ${N} === 0 || ${N} === null`).assign(G,!1).elseIf((0,i._)`${N} === "true" || ${N} === 1`).assign(G,!0);return;case"null":E.elseIf((0,i._)`${N} === "" || ${N} === 0 || ${N} === false`),E.assign(G,null);return;case"array":E.elseIf((0,i._)`${U} === "string" || ${U} === "number"
|
|
40
|
+
|| ${U} === "boolean" || ${N} === null`).assign(G,(0,i._)`[${N}]`)}}}function d({gen:g,parentData:S,parentDataProperty:A},E){g.if((0,i._)`${S} !== undefined`,()=>g.assign((0,i._)`${S}[${A}]`,E))}function p(g,S,A,E=s.Correct){const N=E===s.Correct?i.operators.EQ:i.operators.NEQ;let D;switch(g){case"null":return(0,i._)`${S} ${N} null`;case"array":D=(0,i._)`Array.isArray(${S})`;break;case"object":D=(0,i._)`${S} && typeof ${S} == "object" && !Array.isArray(${S})`;break;case"integer":D=U((0,i._)`!(${S} % 1) && !isNaN(${S})`);break;case"number":D=U();break;default:return(0,i._)`typeof ${S} ${N} ${g}`}return E===s.Correct?D:(0,i.not)(D);function U(G=i.nil){return(0,i.and)((0,i._)`typeof ${S} == "number"`,G,A?(0,i._)`isFinite(${S})`:i.nil)}}e.checkDataType=p;function m(g,S,A,E){if(g.length===1)return p(g[0],S,A,E);let N;const D=(0,o.toHash)(g);if(D.array&&D.object){const U=(0,i._)`typeof ${S} != "object"`;N=D.null?U:(0,i._)`!${S} || ${U}`,delete D.null,delete D.array,delete D.object}else N=i.nil;D.number&&delete D.integer;for(const U in D)N=(0,i.and)(N,p(U,S,A,E));return N}e.checkDataTypes=m;const v={message:({schema:g})=>`must be ${g}`,params:({schema:g,schemaValue:S})=>typeof g=="string"?(0,i._)`{type: ${g}}`:(0,i._)`{type: ${S}}`};function b(g){const S=_(g);(0,n.reportError)(S,v)}e.reportTypeError=b;function _(g){const{gen:S,data:A,schema:E}=g,N=(0,o.schemaRefOrVal)(g,E,"type");return{gen:S,keyword:"type",data:A,schema:E.type,schemaCode:N,schemaValue:N,parentSchema:E,params:{},it:g}}})(Tp);const KT=nn(Tp),YT=Xt({__proto__:null,default:KT},[Tp]),oh=Jt(YT);var ll={};Object.defineProperty(ll,"__esModule",{value:!0});var b2=ll.assignDefaults=void 0;const ta=$e,XT=Fe;function JT(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)w2(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>w2(e,o,i.default))}b2=ll.assignDefaults=JT;function w2(e,t,r){const{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;const a=(0,ta._)`${o}${(0,ta.getProperty)(t)}`;if(i){(0,XT.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,ta._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,ta._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,ta._)`${a} = ${(0,ta.stringify)(r)}`)}const WT=Xt({__proto__:null,get assignDefaults(){return b2},default:ll},[ll]),QT=Jt(WT);var Bn={},Ge={};Object.defineProperty(Ge,"__esModule",{value:!0});var x2=Ge.validateUnion=j2=Ge.validateArray=I2=Ge.usePattern=R2=Ge.callValidateCode=D2=Ge.schemaProperties=A2=Ge.allSchemaProperties=O2=Ge.noPropertyInData=T2=Ge.propertyInData=P2=Ge.isOwnProperty=k2=Ge.hasPropFunc=E2=Ge.reportMissingProp=S2=Ge.checkMissingProp=$2=Ge.checkReportMissingProp=void 0;const ir=$e,Op=Fe,wo=Li,ZT=Fe;function tO(e,t){const{gen:r,data:n,it:i}=e;r.if(Ap(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ir._)`${t}`},!0),e.error()})}var $2=Ge.checkReportMissingProp=tO;function eO({gen:e,data:t,it:{opts:r}},n,i){return(0,ir.or)(...n.map(o=>(0,ir.and)(Ap(e,t,o,r.ownProperties),(0,ir._)`${i} = ${o}`)))}var S2=Ge.checkMissingProp=eO;function rO(e,t){e.setParams({missingProperty:t},!0),e.error()}var E2=Ge.reportMissingProp=rO;function C2(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ir._)`Object.prototype.hasOwnProperty`})}var k2=Ge.hasPropFunc=C2;function Np(e,t,r){return(0,ir._)`${C2(e)}.call(${t}, ${r})`}var P2=Ge.isOwnProperty=Np;function nO(e,t,r,n){const i=(0,ir._)`${t}${(0,ir.getProperty)(r)} !== undefined`;return n?(0,ir._)`${i} && ${Np(e,t,r)}`:i}var T2=Ge.propertyInData=nO;function Ap(e,t,r,n){const i=(0,ir._)`${t}${(0,ir.getProperty)(r)} === undefined`;return n?(0,ir.or)(i,(0,ir.not)(Np(e,t,r))):i}var O2=Ge.noPropertyInData=Ap;function N2(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}var A2=Ge.allSchemaProperties=N2;function iO(e,t){return N2(t).filter(r=>!(0,Op.alwaysValidSchema)(e,t[r]))}var D2=Ge.schemaProperties=iO;function oO({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){const u=l?(0,ir._)`${e}, ${t}, ${n}${i}`:t,h=[[wo.default.instancePath,(0,ir.strConcat)(wo.default.instancePath,o)],[wo.default.parentData,s.parentData],[wo.default.parentDataProperty,s.parentDataProperty],[wo.default.rootData,wo.default.rootData]];s.opts.dynamicRef&&h.push([wo.default.dynamicAnchors,wo.default.dynamicAnchors]);const f=(0,ir._)`${u}, ${r.object(...h)}`;return c!==ir.nil?(0,ir._)`${a}.call(${c}, ${f})`:(0,ir._)`${a}(${f})`}var R2=Ge.callValidateCode=oO;const sO=(0,ir._)`new RegExp`;function aO({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,ir._)`${i.code==="new RegExp"?sO:(0,ZT.useFunc)(e,i)}(${r}, ${n})`})}var I2=Ge.usePattern=aO;function lO(e){const{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){const a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){const c=t.const("len",(0,ir._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Op.Type.Num},o),t.if((0,ir.not)(o),a)})}}var j2=Ge.validateArray=lO;function cO(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(a=>(0,Op.alwaysValidSchema)(i,a))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((a,c)=>{const l=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},s);t.assign(o,(0,ir._)`${o} || ${s}`),e.mergeValidEvaluated(l,s)||t.if((0,ir.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}x2=Ge.validateUnion=cO;const uO=Xt({__proto__:null,get allSchemaProperties(){return A2},get callValidateCode(){return R2},get checkMissingProp(){return S2},get checkReportMissingProp(){return $2},default:Ge,get hasPropFunc(){return k2},get isOwnProperty(){return P2},get noPropertyInData(){return O2},get propertyInData(){return T2},get reportMissingProp(){return E2},get schemaProperties(){return D2},get usePattern(){return I2},get validateArray(){return j2},get validateUnion(){return x2}},[Ge]),Hn=Jt(uO);Object.defineProperty(Bn,"__esModule",{value:!0});var F2=Bn.validateKeywordUsage=z2=Bn.validSchemaType=L2=Bn.funcKeywordCode=M2=Bn.macroKeywordCode=void 0;const Yr=$e,is=Li,hO=Hn,dO=al;function fO(e,t){const{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=V2(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);const l=r.name("valid");e.subschema({schema:a,schemaPath:Yr.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}var M2=Bn.macroKeywordCode=fO;function pO(e,t){var r;const{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;gO(c,t);const l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=V2(n,i,l),h=n.let("valid");e.block$data(h,f),e.ok((r=t.valid)!==null&&r!==void 0?r:h);function f(){if(t.errors===!1)m(),t.modifying&&U2(e),v(()=>e.error());else{const b=t.async?d():p();t.modifying&&U2(e),v(()=>mO(e,b))}}function d(){const b=n.let("ruleErrs",null);return n.try(()=>m((0,Yr._)`await `),_=>n.assign(h,!1).if((0,Yr._)`${_} instanceof ${c.ValidationError}`,()=>n.assign(b,(0,Yr._)`${_}.errors`),()=>n.throw(_))),b}function p(){const b=(0,Yr._)`${u}.errors`;return n.assign(b,null),m(Yr.nil),b}function m(b=t.async?(0,Yr._)`await `:Yr.nil){const _=c.opts.passContext?is.default.this:is.default.self,g=!("compile"in t&&!a||t.schema===!1);n.assign(h,(0,Yr._)`${b}${(0,hO.callValidateCode)(e,u,_,g)}`,t.modifying)}function v(b){var _;n.if((0,Yr.not)((_=t.valid)!==null&&_!==void 0?_:h),b)}}var L2=Bn.funcKeywordCode=pO;function U2(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Yr._)`${n.parentData}[${n.parentDataProperty}]`))}function mO(e,t){const{gen:r}=e;r.if((0,Yr._)`Array.isArray(${t})`,()=>{r.assign(is.default.vErrors,(0,Yr._)`${is.default.vErrors} === null ? ${t} : ${is.default.vErrors}.concat(${t})`).assign(is.default.errors,(0,Yr._)`${is.default.vErrors}.length`),(0,dO.extendErrors)(e)},()=>e.error())}function gO({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function V2(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Yr.stringify)(r)})}function yO(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}var z2=Bn.validSchemaType=yO;function vO({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const a=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(a);else throw new Error(a)}}F2=Bn.validateKeywordUsage=vO;const _O=Xt({__proto__:null,default:Bn,get funcKeywordCode(){return L2},get macroKeywordCode(){return M2},get validSchemaType(){return z2},get validateKeywordUsage(){return F2}},[Bn]),bO=Jt(_O);var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});var G2=Vi.extendSubschemaMode=q2=Vi.extendSubschemaData=H2=Vi.getSubschema=void 0;const fi=$e,B2=Fe;function wO(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,fi._)`${e.schemaPath}${(0,fi.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,fi._)`${e.schemaPath}${(0,fi.getProperty)(t)}${(0,fi.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,B2.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}var H2=Vi.getSubschema=wO;function xO(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:a}=t;if(r!==void 0){const{errorPath:l,dataPathArr:u,opts:h}=t,f=a.let("data",(0,fi._)`${t.data}${(0,fi.getProperty)(r)}`,!0);c(f),e.errorPath=(0,fi.str)`${l}${(0,B2.getErrorPath)(r,n,h.jsPropertySyntax)}`,e.parentDataProperty=(0,fi._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){const l=i instanceof fi.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}var q2=Vi.extendSubschemaData=xO;function $O(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}G2=Vi.extendSubschemaMode=$O;const SO=Xt({__proto__:null,default:Vi,get extendSubschemaData(){return q2},get extendSubschemaMode(){return G2},get getSubschema(){return H2}},[Vi]),EO=Jt(SO);var Xr={},K2=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r};const CO=nn(K2),kO=Xt({__proto__:null,default:CO},[K2]),Y2=Jt(kO);var X2={exports:{}},xo=X2.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};sh(t,n,i,e,"",e)};xo.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},xo.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},xo.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},xo.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function sh(e,t,r,n,i,o,s,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,s,a,c,l);for(var u in n){var h=n[u];if(Array.isArray(h)){if(u in xo.arrayKeywords)for(var f=0;f<h.length;f++)sh(e,t,r,h[f],i+"/"+u+"/"+f,o,i,u,n,f)}else if(u in xo.propsKeywords){if(h&&typeof h=="object")for(var d in h)sh(e,t,r,h[d],i+"/"+u+"/"+PO(d),o,i,u,n,d)}else(u in xo.keywords||e.allKeys&&!(u in xo.skipKeywords))&&sh(e,t,r,h,i+"/"+u,o,i,u,n)}r(n,i,o,s,a,c,l)}}function PO(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var J2=X2.exports;const TO=nn(J2),OO=Xt({__proto__:null,default:TO},[J2]),NO=Jt(OO);Object.defineProperty(Xr,"__esModule",{value:!0});var W2=Xr.getSchemaRefs=ob=Xr.resolveUrl=ib=Xr.normalizeId=nb=Xr._getFullPath=eb=Xr.getFullPath=Q2=Xr.inlineRef=void 0;const AO=Fe,DO=Y2,RO=NO,IO=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function jO(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Dp(e):t?Z2(e)<=t:!1}var Q2=Xr.inlineRef=jO;const FO=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Dp(e){for(const t in e){if(FO.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(Dp)||typeof r=="object"&&Dp(r))return!0}return!1}function Z2(e){let t=0;for(const r in e)if(r==="$ref"||(t++,!IO.has(r)&&(typeof e[r]=="object"&&(0,AO.eachItem)(e[r],n=>t+=Z2(n)),t===1/0)))return 1/0;return t}function tb(e,t="",r){r!==!1&&(t=ea(t));const n=e.parse(t);return rb(e,n)}var eb=Xr.getFullPath=tb;function rb(e,t){return e.serialize(t).split("#")[0]+"#"}var nb=Xr._getFullPath=rb;const MO=/#\/?$/;function ea(e){return e?e.replace(MO,""):""}var ib=Xr.normalizeId=ea;function LO(e,t,r){return r=ea(r),e.resolve(t,r)}var ob=Xr.resolveUrl=LO;const UO=/^[a-z_][-a-z0-9._]*$/i;function VO(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=ea(e[r]||t),o={"":i},s=tb(n,i,!1),a={},c=new Set;return RO(e,{allKeys:!0},(h,f,d,p)=>{if(p===void 0)return;const m=s+f;let v=o[p];typeof h[r]=="string"&&(v=b.call(this,h[r])),_.call(this,h.$anchor),_.call(this,h.$dynamicAnchor),o[f]=v;function b(g){const S=this.opts.uriResolver.resolve;if(g=ea(v?S(v,g):g),c.has(g))throw u(g);c.add(g);let A=this.refs[g];return typeof A=="string"&&(A=this.refs[A]),typeof A=="object"?l(h,A.schema,g):g!==ea(m)&&(g[0]==="#"?(l(h,a[g],g),a[g]=h):this.refs[g]=m),g}function _(g){if(typeof g=="string"){if(!UO.test(g))throw new Error(`invalid anchor "${g}"`);b.call(this,`#${g}`)}}}),a;function l(h,f,d){if(f!==void 0&&!DO(h,f))throw u(d)}function u(h){return new Error(`reference "${h}" resolves to more than one schema`)}}W2=Xr.getSchemaRefs=VO;const zO=Xt({__proto__:null,get _getFullPath(){return nb},default:Xr,get getFullPath(){return eb},get getSchemaRefs(){return W2},get inlineRef(){return Q2},get normalizeId(){return ib},get resolveUrl(){return ob}},[Xr]),ah=Jt(zO);Object.defineProperty(Mi,"__esModule",{value:!0});var sb=Mi.getData=wb=Mi.KeywordCxt=cb=Mi.validateFunctionCode=void 0;const ab=LT,lb=oh,Rp=_2,lh=oh,GO=QT,cl=bO,Ip=EO,ee=$e,de=Li,BO=ah,zi=Fe,ul=al;function HO(e){if(fb(e)&&(pb(e),db(e))){YO(e);return}ub(e,()=>(0,ab.topBoolOrEmptySchema)(e))}var cb=Mi.validateFunctionCode=HO;function ub({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,ee._)`${de.default.data}, ${de.default.valCxt}`,n.$async,()=>{e.code((0,ee._)`"use strict"; ${hb(r,i)}`),KO(e,i),e.code(o)}):e.func(t,(0,ee._)`${de.default.data}, ${qO(i)}`,n.$async,()=>e.code(hb(r,i)).code(o))}function qO(e){return(0,ee._)`{${de.default.instancePath}="", ${de.default.parentData}, ${de.default.parentDataProperty}, ${de.default.rootData}=${de.default.data}${e.dynamicRef?(0,ee._)`, ${de.default.dynamicAnchors}={}`:ee.nil}}={}`}function KO(e,t){e.if(de.default.valCxt,()=>{e.var(de.default.instancePath,(0,ee._)`${de.default.valCxt}.${de.default.instancePath}`),e.var(de.default.parentData,(0,ee._)`${de.default.valCxt}.${de.default.parentData}`),e.var(de.default.parentDataProperty,(0,ee._)`${de.default.valCxt}.${de.default.parentDataProperty}`),e.var(de.default.rootData,(0,ee._)`${de.default.valCxt}.${de.default.rootData}`),t.dynamicRef&&e.var(de.default.dynamicAnchors,(0,ee._)`${de.default.valCxt}.${de.default.dynamicAnchors}`)},()=>{e.var(de.default.instancePath,(0,ee._)`""`),e.var(de.default.parentData,(0,ee._)`undefined`),e.var(de.default.parentDataProperty,(0,ee._)`undefined`),e.var(de.default.rootData,de.default.data),t.dynamicRef&&e.var(de.default.dynamicAnchors,(0,ee._)`{}`)})}function YO(e){const{schema:t,opts:r,gen:n}=e;ub(e,()=>{r.$comment&&t.$comment&&gb(e),ZO(e),n.let(de.default.vErrors,null),n.let(de.default.errors,0),r.unevaluated&&XO(e),mb(e),rN(e)})}function XO(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,ee._)`${r}.evaluated`),t.if((0,ee._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,ee._)`${e.evaluated}.props`,(0,ee._)`undefined`)),t.if((0,ee._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,ee._)`${e.evaluated}.items`,(0,ee._)`undefined`))}function hb(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,ee._)`/*# sourceURL=${r} */`:ee.nil}function JO(e,t){if(fb(e)&&(pb(e),db(e))){WO(e,t);return}(0,ab.boolOrEmptySchema)(e,t)}function db({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function fb(e){return typeof e.schema!="boolean"}function WO(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&gb(e),tN(e),eN(e);const o=n.const("_errs",de.default.errors);mb(e,o),n.var(t,(0,ee._)`${o} === ${de.default.errors}`)}function pb(e){(0,zi.checkUnknownRules)(e),QO(e)}function mb(e,t){if(e.opts.jtd)return yb(e,[],!1,t);const r=(0,lb.getSchemaTypes)(e.schema),n=(0,lb.coerceAndCheckDataType)(e,r);yb(e,r,!n,t)}function QO(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,zi.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function ZO(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,zi.checkStrictMode)(e,"default is ignored in the schema root")}function tN(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,BO.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function eN(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function gb({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(i.$comment===!0)e.code((0,ee._)`${de.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){const s=(0,ee.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,ee._)`${de.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function rN(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,ee._)`${de.default.errors} === 0`,()=>t.return(de.default.data),()=>t.throw((0,ee._)`new ${i}(${de.default.vErrors})`)):(t.assign((0,ee._)`${n}.errors`,de.default.vErrors),o.unevaluated&&nN(e),t.return((0,ee._)`${de.default.errors} === 0`))}function nN({gen:e,evaluated:t,props:r,items:n}){r instanceof ee.Name&&e.assign((0,ee._)`${t}.props`,r),n instanceof ee.Name&&e.assign((0,ee._)`${t}.items`,n)}function yb(e,t,r,n){const{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,zi.schemaHasRulesButRef)(o,u))){i.block(()=>xb(e,"$ref",u.all.$ref.definition));return}c.jtd||iN(e,t),i.block(()=>{for(const f of u.rules)h(f);h(u.post)});function h(f){(0,Rp.shouldUseGroup)(o,f)&&(f.type?(i.if((0,lh.checkDataType)(f.type,s,c.strictNumbers)),vb(e,f),t.length===1&&t[0]===f.type&&r&&(i.else(),(0,lh.reportTypeError)(e)),i.endIf()):vb(e,f),a||i.if((0,ee._)`${de.default.errors} === ${n||0}`))}}function vb(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,GO.assignDefaults)(e,t.type),r.block(()=>{for(const o of t.rules)(0,Rp.shouldUseRule)(n,o)&&xb(e,o.keyword,o.definition,t.type)})}function iN(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(oN(e,t),e.opts.allowUnionTypes||sN(e,t),aN(e,e.dataTypes))}function oN(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{_b(e.dataTypes,r)||jp(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),cN(e,t)}}function sN(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&jp(e,"use allowUnionTypes to allow union type keyword")}function aN(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,Rp.shouldUseRule)(e.schema,i)){const{type:o}=i.definition;o.length&&!o.some(s=>lN(t,s))&&jp(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function lN(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function _b(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function cN(e,t){const r=[];for(const n of e.dataTypes)_b(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function jp(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,zi.checkStrictMode)(e,t,e.opts.strictTypes)}class bb{constructor(t,r,n){if((0,cl.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,zi.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",$b(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,cl.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",de.default.errors))}result(t,r,n){this.failResult((0,ee.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,ee.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,ee._)`${r} !== undefined && (${(0,ee.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?ul.reportExtraError:ul.reportError)(this,this.def.error,r)}$dataError(){(0,ul.reportError)(this,this.def.$dataError||ul.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ul.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=ee.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=ee.nil,r=ee.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,ee.or)((0,ee._)`${i} === undefined`,r)),t!==ee.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==ee.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,ee.or)(s(),a());function s(){if(n.length){if(!(r instanceof ee.Name))throw new Error("ajv implementation error");const c=Array.isArray(n)?n:[n];return(0,ee._)`${(0,lh.checkDataTypes)(c,r,o.opts.strictNumbers,lh.DataType.Wrong)}`}return ee.nil}function a(){if(i.validateSchema){const c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,ee._)`!${c}(${r})`}return ee.nil}}subschema(t,r){const n=(0,Ip.getSubschema)(this.it,t);(0,Ip.extendSubschemaData)(n,this.it,t),(0,Ip.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return JO(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=zi.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=zi.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,ee.Name)),!0}}var wb=Mi.KeywordCxt=bb;function xb(e,t,r,n){const i=new bb(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,cl.funcKeywordCode)(i,r):"macro"in r?(0,cl.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,cl.funcKeywordCode)(i,r)}const uN=/^\/(?:[^~]|~0|~1)*$/,hN=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function $b(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return de.default.rootData;if(e[0]==="/"){if(!uN.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=de.default.rootData}else{const l=hN.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+l[1];if(i=l[2],i==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!i)return o}let s=o;const a=i.split("/");for(const l of a)l&&(o=(0,ee._)`${o}${(0,ee.getProperty)((0,zi.unescapeJsonPointer)(l))}`,s=(0,ee._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}sb=Mi.getData=$b;const dN=Xt({__proto__:null,get KeywordCxt(){return wb},default:Mi,get getData(){return sb},get validateFunctionCode(){return cb}},[Mi]),hl=Jt(dN);var Fp={};Object.defineProperty(Fp,"__esModule",{value:!0});let fN=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};var pN=Fp.default=fN;const mN=Xt({__proto__:null,default:pN},[Fp]),Mp=Jt(mN);var Lp={};Object.defineProperty(Lp,"__esModule",{value:!0});const Up=ah;let gN=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Up.resolveUrl)(t,r,n),this.missingSchema=(0,Up.normalizeId)((0,Up.getFullPath)(t,this.missingRef))}};var yN=Lp.default=gN;const vN=Xt({__proto__:null,default:yN},[Lp]),Vp=Jt(vN);var gn={};Object.defineProperty(gn,"__esModule",{value:!0});var Sb=gn.resolveSchema=Ob=gn.getCompilingSchema=Pb=gn.resolveRef=kb=gn.compileSchema=Cb=gn.SchemaEnv=void 0;const qn=$e,_N=Mp,os=Li,Kn=ah,Eb=Fe,bN=hl;let ch=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Kn.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};var Cb=gn.SchemaEnv=ch;function zp(e){const t=Tb.call(this,e);if(t)return t;const r=(0,Kn.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new qn.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o});let a;e.$async&&(a=s.scopeValue("Error",{ref:_N.default,code:(0,qn._)`require("ajv/dist/runtime/validation_error").default`}));const c=s.scopeName("validate");e.validateName=c;const l={gen:s,allErrors:this.opts.allErrors,data:os.default.data,parentData:os.default.parentData,parentDataProperty:os.default.parentDataProperty,dataNames:[os.default.data],dataPathArr:[qn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,qn.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:qn.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,qn._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,bN.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);const h=s.toString();u=`${s.scopeRefs(os.default.scope)}return ${h}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const f=new Function(`${os.default.self}`,`${os.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=e.schema,f.schemaEnv=e,e.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:c,validateCode:h,scopeValues:s._values}),this.opts.unevaluated){const{props:d,items:p}=l;f.evaluated={props:d instanceof qn.Name?void 0:d,items:p instanceof qn.Name?void 0:p,dynamicProps:d instanceof qn.Name,dynamicItems:p instanceof qn.Name},f.source&&(f.source.evaluated=(0,qn.stringify)(f.evaluated))}return e.validate=f,e}catch(h){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),h}finally{this._compilations.delete(e)}}var kb=gn.compileSchema=zp;function wN(e,t,r){var n;r=(0,Kn.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=SN.call(this,e,r);if(o===void 0){const s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(o=new ch({schema:s,schemaId:a,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=xN.call(this,o)}var Pb=gn.resolveRef=wN;function xN(e){return(0,Kn.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:zp.call(this,e)}function Tb(e){for(const t of this._compilations)if($N(t,e))return t}var Ob=gn.getCompilingSchema=Tb;function $N(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function SN(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||uh.call(this,e,t)}function uh(e,t){const r=this.opts.uriResolver.parse(t),n=(0,Kn._getFullPath)(this.opts.uriResolver,r);let i=(0,Kn.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Gp.call(this,r,e);const o=(0,Kn.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){const a=uh.call(this,e,s);return typeof a?.schema!="object"?void 0:Gp.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||zp.call(this,s),o===(0,Kn.normalizeId)(t)){const{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,Kn.resolveUrl)(this.opts.uriResolver,i,l)),new ch({schema:a,schemaId:c,root:e,baseId:i})}return Gp.call(this,r,s)}}Sb=gn.resolveSchema=uh;const EN=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Gp(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const c=r[(0,Eb.unescapeFragment)(a)];if(c===void 0)return;r=c;const l=typeof r=="object"&&r[this.opts.schemaId];!EN.has(a)&&l&&(t=(0,Kn.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Eb.schemaHasRulesButRef)(r,this.RULES)){const a=(0,Kn.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=uh.call(this,n,a)}const{schemaId:s}=this.opts;if(o=o||new ch({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}const CN=Xt({__proto__:null,get SchemaEnv(){return Cb},get compileSchema(){return kb},default:gn,get getCompilingSchema(){return Ob},get resolveRef(){return Pb},get resolveSchema(){return Sb}},[gn]),Bp=Jt(CN),kN="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",PN="Meta-schema for $data reference (JSON AnySchema extension proposal)",TN="object",ON=["$data"],NN={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},AN=!1,DN={$id:kN,description:PN,type:TN,required:ON,properties:NN,additionalProperties:AN};var Hp={},qp={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(r,n){n(t)})(hT,function(r){function n(){for(var R=arguments.length,L=Array(R),V=0;V<R;V++)L[V]=arguments[V];if(L.length>1){L[0]=L[0].slice(0,-1);for(var Z=L.length-1,tt=1;tt<Z;++tt)L[tt]=L[tt].slice(1,-1);return L[Z]=L[Z].slice(1),L.join("")}else return L[0]}function i(R){return"(?:"+R+")"}function o(R){return R===void 0?"undefined":R===null?"null":Object.prototype.toString.call(R).split(" ").pop().split("]").shift().toLowerCase()}function s(R){return R.toUpperCase()}function a(R){return R!=null?R instanceof Array?R:typeof R.length!="number"||R.split||R.setInterval||R.call?[R]:Array.prototype.slice.call(R):[]}function c(R,L){var V=R;if(L)for(var Z in L)V[Z]=L[Z];return V}function l(R){var L="[A-Za-z]",V="[0-9]",Z=n(V,"[A-Fa-f]"),tt=i(i("%[EFef]"+Z+"%"+Z+Z+"%"+Z+Z)+"|"+i("%[89A-Fa-f]"+Z+"%"+Z+Z)+"|"+i("%"+Z+Z)),Ot="[\\:\\/\\?\\#\\[\\]\\@]",Tt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Ht=n(Ot,Tt),pe=R?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",te=R?"[\\uE000-\\uF8FF]":"[]",zt=n(L,V,"[\\-\\.\\_\\~]",pe);i(L+n(L,V,"[\\+\\-\\.]")+"*"),i(i(tt+"|"+n(zt,Tt,"[\\:]"))+"*");var qt=i(i("25[0-5]")+"|"+i("2[0-4]"+V)+"|"+i("1"+V+V)+"|"+i("0?[1-9]"+V)+"|0?0?"+V),ae=i(qt+"\\."+qt+"\\."+qt+"\\."+qt),jt=i(Z+"{1,4}"),Gt=i(i(jt+"\\:"+jt)+"|"+ae),ie=i(i(jt+"\\:")+"{6}"+Gt),Ie=i("\\:\\:"+i(jt+"\\:")+"{5}"+Gt),br=i(i(jt)+"?\\:\\:"+i(jt+"\\:")+"{4}"+Gt),we=i(i(i(jt+"\\:")+"{0,1}"+jt)+"?\\:\\:"+i(jt+"\\:")+"{3}"+Gt),ze=i(i(i(jt+"\\:")+"{0,2}"+jt)+"?\\:\\:"+i(jt+"\\:")+"{2}"+Gt),Ze=i(i(i(jt+"\\:")+"{0,3}"+jt)+"?\\:\\:"+jt+"\\:"+Gt),Xe=i(i(i(jt+"\\:")+"{0,4}"+jt)+"?\\:\\:"+Gt),Ae=i(i(i(jt+"\\:")+"{0,5}"+jt)+"?\\:\\:"+jt),_e=i(i(i(jt+"\\:")+"{0,6}"+jt)+"?\\:\\:"),Zt=i([ie,Ie,br,we,ze,Ze,Xe,Ae,_e].join("|")),tr=i(i(zt+"|"+tt)+"+");i("[vV]"+Z+"+\\."+n(zt,Tt,"[\\:]")+"+"),i(i(tt+"|"+n(zt,Tt))+"*");var qr=i(tt+"|"+n(zt,Tt,"[\\:\\@]"));return i(i(tt+"|"+n(zt,Tt,"[\\@]"))+"+"),i(i(qr+"|"+n("[\\/\\?]",te))+"*"),{NOT_SCHEME:new RegExp(n("[^]",L,V,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",zt,Tt),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",zt,Tt),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",zt,Tt),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",zt,Tt),"g"),NOT_QUERY:new RegExp(n("[^\\%]",zt,Tt,"[\\:\\@\\/\\?]",te),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",zt,Tt,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",zt,Tt),"g"),UNRESERVED:new RegExp(zt,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",zt,Ht),"g"),PCT_ENCODED:new RegExp(tt,"g"),IPV4ADDRESS:new RegExp("^("+ae+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Zt+")"+i(i("\\%25|\\%(?!"+Z+"{2})")+"("+tr+")")+"?\\]?$")}}var u=l(!1),h=l(!0),f=function(){function R(L,V){var Z=[],tt=!0,Ot=!1,Tt=void 0;try{for(var Ht=L[Symbol.iterator](),pe;!(tt=(pe=Ht.next()).done)&&(Z.push(pe.value),!(V&&Z.length===V));tt=!0);}catch(te){Ot=!0,Tt=te}finally{try{!tt&&Ht.return&&Ht.return()}finally{if(Ot)throw Tt}}return Z}return function(L,V){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return R(L,V);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(R){if(Array.isArray(R)){for(var L=0,V=Array(R.length);L<R.length;L++)V[L]=R[L];return V}else return Array.from(R)},p=2147483647,m=36,v=1,b=26,_=38,g=700,S=72,A=128,E="-",N=/^xn--/,D=/[^\0-\x7E]/,U=/[\x2E\u3002\uFF0E\uFF61]/g,G={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},K=m-v,W=Math.floor,ot=String.fromCharCode;function nt(R){throw new RangeError(G[R])}function ft(R,L){for(var V=[],Z=R.length;Z--;)V[Z]=L(R[Z]);return V}function $t(R,L){var V=R.split("@"),Z="";V.length>1&&(Z=V[0]+"@",R=V[1]),R=R.replace(U,".");var tt=R.split("."),Ot=ft(tt,L).join(".");return Z+Ot}function _t(R){for(var L=[],V=0,Z=R.length;V<Z;){var tt=R.charCodeAt(V++);if(tt>=55296&&tt<=56319&&V<Z){var Ot=R.charCodeAt(V++);(Ot&64512)==56320?L.push(((tt&1023)<<10)+(Ot&1023)+65536):(L.push(tt),V--)}else L.push(tt)}return L}var vt=function(R){return String.fromCodePoint.apply(String,d(R))},at=function(R){return R-48<10?R-22:R-65<26?R-65:R-97<26?R-97:m},Y=function(R,L){return R+22+75*(R<26)-((L!=0)<<5)},T=function(R,L,V){var Z=0;for(R=V?W(R/g):R>>1,R+=W(R/L);R>K*b>>1;Z+=m)R=W(R/K);return W(Z+(K+1)*R/(R+_))},C=function(R){var L=[],V=R.length,Z=0,tt=A,Ot=S,Tt=R.lastIndexOf(E);Tt<0&&(Tt=0);for(var Ht=0;Ht<Tt;++Ht)R.charCodeAt(Ht)>=128&&nt("not-basic"),L.push(R.charCodeAt(Ht));for(var pe=Tt>0?Tt+1:0;pe<V;){for(var te=Z,zt=1,qt=m;;qt+=m){pe>=V&&nt("invalid-input");var ae=at(R.charCodeAt(pe++));(ae>=m||ae>W((p-Z)/zt))&&nt("overflow"),Z+=ae*zt;var jt=qt<=Ot?v:qt>=Ot+b?b:qt-Ot;if(ae<jt)break;var Gt=m-jt;zt>W(p/Gt)&&nt("overflow"),zt*=Gt}var ie=L.length+1;Ot=T(Z-te,ie,te==0),W(Z/ie)>p-tt&&nt("overflow"),tt+=W(Z/ie),Z%=ie,L.splice(Z++,0,tt)}return String.fromCodePoint.apply(String,L)},$=function(R){var L=[];R=_t(R);var V=R.length,Z=A,tt=0,Ot=S,Tt=!0,Ht=!1,pe=void 0;try{for(var te=R[Symbol.iterator](),zt;!(Tt=(zt=te.next()).done);Tt=!0){var qt=zt.value;qt<128&&L.push(ot(qt))}}catch(Rr){Ht=!0,pe=Rr}finally{try{!Tt&&te.return&&te.return()}finally{if(Ht)throw pe}}var ae=L.length,jt=ae;for(ae&&L.push(E);jt<V;){var Gt=p,ie=!0,Ie=!1,br=void 0;try{for(var we=R[Symbol.iterator](),ze;!(ie=(ze=we.next()).done);ie=!0){var Ze=ze.value;Ze>=Z&&Ze<Gt&&(Gt=Ze)}}catch(Rr){Ie=!0,br=Rr}finally{try{!ie&&we.return&&we.return()}finally{if(Ie)throw br}}var Xe=jt+1;Gt-Z>W((p-tt)/Xe)&&nt("overflow"),tt+=(Gt-Z)*Xe,Z=Gt;var Ae=!0,_e=!1,Zt=void 0;try{for(var tr=R[Symbol.iterator](),qr;!(Ae=(qr=tr.next()).done);Ae=!0){var hn=qr.value;if(hn<Z&&++tt>p&&nt("overflow"),hn==Z){for(var hr=tt,ur=m;;ur+=m){var Pr=ur<=Ot?v:ur>=Ot+b?b:ur-Ot;if(hr<Pr)break;var In=hr-Pr,jn=m-Pr;L.push(ot(Y(Pr+In%jn,0))),hr=W(In/jn)}L.push(ot(Y(hr,0))),Ot=T(tt,Xe,jt==ae),tt=0,++jt}}}catch(Rr){_e=!0,Zt=Rr}finally{try{!Ae&&tr.return&&tr.return()}finally{if(_e)throw Zt}}++tt,++Z}return L.join("")},y=function(R){return $t(R,function(L){return N.test(L)?C(L.slice(4).toLowerCase()):L})},k=function(R){return $t(R,function(L){return D.test(L)?"xn--"+$(L):L})},M={version:"2.1.0",ucs2:{decode:_t,encode:vt},decode:C,encode:$,toASCII:k,toUnicode:y},I={};function z(R){var L=R.charCodeAt(0),V=void 0;return L<16?V="%0"+L.toString(16).toUpperCase():L<128?V="%"+L.toString(16).toUpperCase():L<2048?V="%"+(L>>6|192).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase():V="%"+(L>>12|224).toString(16).toUpperCase()+"%"+(L>>6&63|128).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase(),V}function q(R){for(var L="",V=0,Z=R.length;V<Z;){var tt=parseInt(R.substr(V+1,2),16);if(tt<128)L+=String.fromCharCode(tt),V+=3;else if(tt>=194&&tt<224){if(Z-V>=6){var Ot=parseInt(R.substr(V+4,2),16);L+=String.fromCharCode((tt&31)<<6|Ot&63)}else L+=R.substr(V,6);V+=6}else if(tt>=224){if(Z-V>=9){var Tt=parseInt(R.substr(V+4,2),16),Ht=parseInt(R.substr(V+7,2),16);L+=String.fromCharCode((tt&15)<<12|(Tt&63)<<6|Ht&63)}else L+=R.substr(V,9);V+=9}else L+=R.substr(V,3),V+=3}return L}function et(R,L){function V(Z){var tt=q(Z);return tt.match(L.UNRESERVED)?tt:Z}return R.scheme&&(R.scheme=String(R.scheme).replace(L.PCT_ENCODED,V).toLowerCase().replace(L.NOT_SCHEME,"")),R.userinfo!==void 0&&(R.userinfo=String(R.userinfo).replace(L.PCT_ENCODED,V).replace(L.NOT_USERINFO,z).replace(L.PCT_ENCODED,s)),R.host!==void 0&&(R.host=String(R.host).replace(L.PCT_ENCODED,V).toLowerCase().replace(L.NOT_HOST,z).replace(L.PCT_ENCODED,s)),R.path!==void 0&&(R.path=String(R.path).replace(L.PCT_ENCODED,V).replace(R.scheme?L.NOT_PATH:L.NOT_PATH_NOSCHEME,z).replace(L.PCT_ENCODED,s)),R.query!==void 0&&(R.query=String(R.query).replace(L.PCT_ENCODED,V).replace(L.NOT_QUERY,z).replace(L.PCT_ENCODED,s)),R.fragment!==void 0&&(R.fragment=String(R.fragment).replace(L.PCT_ENCODED,V).replace(L.NOT_FRAGMENT,z).replace(L.PCT_ENCODED,s)),R}function st(R){return R.replace(/^0*(.*)/,"$1")||"0"}function mt(R,L){var V=R.match(L.IPV4ADDRESS)||[],Z=f(V,2),tt=Z[1];return tt?tt.split(".").map(st).join("."):R}function Mt(R,L){var V=R.match(L.IPV6ADDRESS)||[],Z=f(V,3),tt=Z[1],Ot=Z[2];if(tt){for(var Tt=tt.toLowerCase().split("::").reverse(),Ht=f(Tt,2),pe=Ht[0],te=Ht[1],zt=te?te.split(":").map(st):[],qt=pe.split(":").map(st),ae=L.IPV4ADDRESS.test(qt[qt.length-1]),jt=ae?7:8,Gt=qt.length-jt,ie=Array(jt),Ie=0;Ie<jt;++Ie)ie[Ie]=zt[Ie]||qt[Gt+Ie]||"";ae&&(ie[jt-1]=mt(ie[jt-1],L));var br=ie.reduce(function(Ae,_e,Zt){if(!_e||_e==="0"){var tr=Ae[Ae.length-1];tr&&tr.index+tr.length===Zt?tr.length++:Ae.push({index:Zt,length:1})}return Ae},[]),we=br.sort(function(Ae,_e){return _e.length-Ae.length})[0],ze=void 0;if(we&&we.length>1){var Ze=ie.slice(0,we.index),Xe=ie.slice(we.index+we.length);ze=Ze.join(":")+"::"+Xe.join(":")}else ze=ie.join(":");return Ot&&(ze+="%"+Ot),ze}else return R}var X=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Q="".match(/(){0}/)[1]===void 0;function it(R){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V={},Z=L.iri!==!1?h:u;L.reference==="suffix"&&(R=(L.scheme?L.scheme+":":"")+"//"+R);var tt=R.match(X);if(tt){Q?(V.scheme=tt[1],V.userinfo=tt[3],V.host=tt[4],V.port=parseInt(tt[5],10),V.path=tt[6]||"",V.query=tt[7],V.fragment=tt[8],isNaN(V.port)&&(V.port=tt[5])):(V.scheme=tt[1]||void 0,V.userinfo=R.indexOf("@")!==-1?tt[3]:void 0,V.host=R.indexOf("//")!==-1?tt[4]:void 0,V.port=parseInt(tt[5],10),V.path=tt[6]||"",V.query=R.indexOf("?")!==-1?tt[7]:void 0,V.fragment=R.indexOf("#")!==-1?tt[8]:void 0,isNaN(V.port)&&(V.port=R.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?tt[4]:void 0)),V.host&&(V.host=Mt(mt(V.host,Z),Z)),V.scheme===void 0&&V.userinfo===void 0&&V.host===void 0&&V.port===void 0&&!V.path&&V.query===void 0?V.reference="same-document":V.scheme===void 0?V.reference="relative":V.fragment===void 0?V.reference="absolute":V.reference="uri",L.reference&&L.reference!=="suffix"&&L.reference!==V.reference&&(V.error=V.error||"URI is not a "+L.reference+" reference.");var Ot=I[(L.scheme||V.scheme||"").toLowerCase()];if(!L.unicodeSupport&&(!Ot||!Ot.unicodeSupport)){if(V.host&&(L.domainHost||Ot&&Ot.domainHost))try{V.host=M.toASCII(V.host.replace(Z.PCT_ENCODED,q).toLowerCase())}catch(Tt){V.error=V.error||"Host's domain name can not be converted to ASCII via punycode: "+Tt}et(V,u)}else et(V,Z);Ot&&Ot.parse&&Ot.parse(V,L)}else V.error=V.error||"URI can not be parsed.";return V}function lt(R,L){var V=L.iri!==!1?h:u,Z=[];return R.userinfo!==void 0&&(Z.push(R.userinfo),Z.push("@")),R.host!==void 0&&Z.push(Mt(mt(String(R.host),V),V).replace(V.IPV6ADDRESS,function(tt,Ot,Tt){return"["+Ot+(Tt?"%25"+Tt:"")+"]"})),(typeof R.port=="number"||typeof R.port=="string")&&(Z.push(":"),Z.push(String(R.port))),Z.length?Z.join(""):void 0}var ct=/^\.\.?\//,dt=/^\/\.(\/|$)/,St=/^\/\.\.(\/|$)/,yt=/^\/?(?:.|\n)*?(?=\/|$)/;function bt(R){for(var L=[];R.length;)if(R.match(ct))R=R.replace(ct,"");else if(R.match(dt))R=R.replace(dt,"/");else if(R.match(St))R=R.replace(St,"/"),L.pop();else if(R==="."||R==="..")R="";else{var V=R.match(yt);if(V){var Z=V[0];R=R.slice(Z.length),L.push(Z)}else throw new Error("Unexpected dot segment condition")}return L.join("")}function ut(R){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=L.iri?h:u,Z=[],tt=I[(L.scheme||R.scheme||"").toLowerCase()];if(tt&&tt.serialize&&tt.serialize(R,L),R.host&&!V.IPV6ADDRESS.test(R.host)&&(L.domainHost||tt&&tt.domainHost))try{R.host=L.iri?M.toUnicode(R.host):M.toASCII(R.host.replace(V.PCT_ENCODED,q).toLowerCase())}catch(Ht){R.error=R.error||"Host's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+Ht}et(R,V),L.reference!=="suffix"&&R.scheme&&(Z.push(R.scheme),Z.push(":"));var Ot=lt(R,L);if(Ot!==void 0&&(L.reference!=="suffix"&&Z.push("//"),Z.push(Ot),R.path&&R.path.charAt(0)!=="/"&&Z.push("/")),R.path!==void 0){var Tt=R.path;!L.absolutePath&&(!tt||!tt.absolutePath)&&(Tt=bt(Tt)),Ot===void 0&&(Tt=Tt.replace(/^\/\//,"/%2F")),Z.push(Tt)}return R.query!==void 0&&(Z.push("?"),Z.push(R.query)),R.fragment!==void 0&&(Z.push("#"),Z.push(R.fragment)),Z.join("")}function It(R,L){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Z=arguments[3],tt={};return Z||(R=it(ut(R,V),V),L=it(ut(L,V),V)),V=V||{},!V.tolerant&&L.scheme?(tt.scheme=L.scheme,tt.userinfo=L.userinfo,tt.host=L.host,tt.port=L.port,tt.path=bt(L.path||""),tt.query=L.query):(L.userinfo!==void 0||L.host!==void 0||L.port!==void 0?(tt.userinfo=L.userinfo,tt.host=L.host,tt.port=L.port,tt.path=bt(L.path||""),tt.query=L.query):(L.path?(L.path.charAt(0)==="/"?tt.path=bt(L.path):((R.userinfo!==void 0||R.host!==void 0||R.port!==void 0)&&!R.path?tt.path="/"+L.path:R.path?tt.path=R.path.slice(0,R.path.lastIndexOf("/")+1)+L.path:tt.path=L.path,tt.path=bt(tt.path)),tt.query=L.query):(tt.path=R.path,L.query!==void 0?tt.query=L.query:tt.query=R.query),tt.userinfo=R.userinfo,tt.host=R.host,tt.port=R.port),tt.scheme=R.scheme),tt.fragment=L.fragment,tt}function Lt(R,L,V){var Z=c({scheme:"null"},V);return ut(It(it(R,Z),it(L,Z),Z,!0),Z)}function Ut(R,L){return typeof R=="string"?R=ut(it(R,L),L):o(R)==="object"&&(R=it(ut(R,L),L)),R}function Kt(R,L,V){return typeof R=="string"?R=ut(it(R,V),V):o(R)==="object"&&(R=ut(R,V)),typeof L=="string"?L=ut(it(L,V),V):o(L)==="object"&&(L=ut(L,V)),R===L}function ne(R,L){return R&&R.toString().replace(!L||!L.iri?u.ESCAPE:h.ESCAPE,z)}function Yt(R,L){return R&&R.toString().replace(!L||!L.iri?u.PCT_ENCODED:h.PCT_ENCODED,q)}var he={scheme:"http",domainHost:!0,parse:function(R,L){return R.host||(R.error=R.error||"HTTP URIs must have a host."),R},serialize:function(R,L){var V=String(R.scheme).toLowerCase()==="https";return(R.port===(V?443:80)||R.port==="")&&(R.port=void 0),R.path||(R.path="/"),R}},Ne={scheme:"https",domainHost:he.domainHost,parse:he.parse,serialize:he.serialize};function Ye(R){return typeof R.secure=="boolean"?R.secure:String(R.scheme).toLowerCase()==="wss"}var ar={scheme:"ws",domainHost:!0,parse:function(R,L){var V=R;return V.secure=Ye(V),V.resourceName=(V.path||"/")+(V.query?"?"+V.query:""),V.path=void 0,V.query=void 0,V},serialize:function(R,L){if((R.port===(Ye(R)?443:80)||R.port==="")&&(R.port=void 0),typeof R.secure=="boolean"&&(R.scheme=R.secure?"wss":"ws",R.secure=void 0),R.resourceName){var V=R.resourceName.split("?"),Z=f(V,2),tt=Z[0],Ot=Z[1];R.path=tt&&tt!=="/"?tt:void 0,R.query=Ot,R.resourceName=void 0}return R.fragment=void 0,R}},Qe={scheme:"wss",domainHost:ar.domainHost,parse:ar.parse,serialize:ar.serialize},xr={},Lr="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",le="[0-9A-Fa-f]",nr=i(i("%[EFef]"+le+"%"+le+le+"%"+le+le)+"|"+i("%[89A-Fa-f]"+le+"%"+le+le)+"|"+i("%"+le+le)),$r="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ni="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",xn=n(ni,'[\\"\\\\]'),An="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Hr=new RegExp(Lr,"g"),Ve=new RegExp(nr,"g"),Bo=new RegExp(n("[^]",$r,"[\\.]",'[\\"]',xn),"g"),un=new RegExp(n("[^]",Lr,An),"g"),$n=un;function Dr(R){var L=q(R);return L.match(Hr)?L:R}var Dn={scheme:"mailto",parse:function(R,L){var V=R,Z=V.to=V.path?V.path.split(","):[];if(V.path=void 0,V.query){for(var tt=!1,Ot={},Tt=V.query.split("&"),Ht=0,pe=Tt.length;Ht<pe;++Ht){var te=Tt[Ht].split("=");switch(te[0]){case"to":for(var zt=te[1].split(","),qt=0,ae=zt.length;qt<ae;++qt)Z.push(zt[qt]);break;case"subject":V.subject=Yt(te[1],L);break;case"body":V.body=Yt(te[1],L);break;default:tt=!0,Ot[Yt(te[0],L)]=Yt(te[1],L);break}}tt&&(V.headers=Ot)}V.query=void 0;for(var jt=0,Gt=Z.length;jt<Gt;++jt){var ie=Z[jt].split("@");if(ie[0]=Yt(ie[0]),L.unicodeSupport)ie[1]=Yt(ie[1],L).toLowerCase();else try{ie[1]=M.toASCII(Yt(ie[1],L).toLowerCase())}catch(Ie){V.error=V.error||"Email address's domain name can not be converted to ASCII via punycode: "+Ie}Z[jt]=ie.join("@")}return V},serialize:function(R,L){var V=R,Z=a(R.to);if(Z){for(var tt=0,Ot=Z.length;tt<Ot;++tt){var Tt=String(Z[tt]),Ht=Tt.lastIndexOf("@"),pe=Tt.slice(0,Ht).replace(Ve,Dr).replace(Ve,s).replace(Bo,z),te=Tt.slice(Ht+1);try{te=L.iri?M.toUnicode(te):M.toASCII(Yt(te,L).toLowerCase())}catch(jt){V.error=V.error||"Email address's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+jt}Z[tt]=pe+"@"+te}V.path=Z.join(",")}var zt=R.headers=R.headers||{};R.subject&&(zt.subject=R.subject),R.body&&(zt.body=R.body);var qt=[];for(var ae in zt)zt[ae]!==xr[ae]&&qt.push(ae.replace(Ve,Dr).replace(Ve,s).replace(un,z)+"="+zt[ae].replace(Ve,Dr).replace(Ve,s).replace($n,z));return qt.length&&(V.query=qt.join("&")),V}},Sn=/^([^\:]+)\:(.*)/,en={scheme:"urn",parse:function(R,L){var V=R.path&&R.path.match(Sn),Z=R;if(V){var tt=L.scheme||Z.scheme||"urn",Ot=V[1].toLowerCase(),Tt=V[2],Ht=tt+":"+(L.nid||Ot),pe=I[Ht];Z.nid=Ot,Z.nss=Tt,Z.path=void 0,pe&&(Z=pe.parse(Z,L))}else Z.error=Z.error||"URN can not be parsed.";return Z},serialize:function(R,L){var V=L.scheme||R.scheme||"urn",Z=R.nid,tt=V+":"+(L.nid||Z),Ot=I[tt];Ot&&(R=Ot.serialize(R,L));var Tt=R,Ht=R.nss;return Tt.path=(Z||L.nid)+":"+Ht,Tt}},ii=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Rn={scheme:"urn:uuid",parse:function(R,L){var V=R;return V.uuid=V.nss,V.nss=void 0,!L.tolerant&&(!V.uuid||!V.uuid.match(ii))&&(V.error=V.error||"UUID is not valid."),V},serialize:function(R,L){var V=R;return V.nss=(R.uuid||"").toLowerCase(),V}};I[he.scheme]=he,I[Ne.scheme]=Ne,I[ar.scheme]=ar,I[Qe.scheme]=Qe,I[Dn.scheme]=Dn,I[en.scheme]=en,I[Rn.scheme]=Rn,r.SCHEMES=I,r.pctEncChar=z,r.pctDecChars=q,r.parse=it,r.removeDotSegments=bt,r.serialize=ut,r.resolveComponents=It,r.resolve=Lt,r.normalize=Ut,r.equal=Kt,r.escapeComponent=ne,r.unescapeComponent=Yt,Object.defineProperty(r,"__esModule",{value:!0})})})(qp,qp.exports);var Nb=qp.exports;const RN=nn(Nb),IN=Xt({__proto__:null,default:RN},[Nb]),jN=Jt(IN);Object.defineProperty(Hp,"__esModule",{value:!0});const Ab=jN;Ab.code='require("ajv/dist/runtime/uri").default';var FN=Hp.default=Ab;const MN=Xt({__proto__:null,default:FN},[Hp]),LN=Jt(MN);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=hl;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=$e;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=Mp,i=Vp,o=f2,s=Bp,a=$e,c=ah,l=oh,u=Fe,h=DN,f=LN,d=(Y,T)=>new RegExp(Y,T);d.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_=200;function g(Y){var T,C,$,y,k,M,I,z,q,et,st,mt,Mt,X,Q,it,lt,ct,dt,St,yt,bt,ut,It,Lt;const Ut=Y.strict,Kt=(T=Y.code)===null||T===void 0?void 0:T.optimize,ne=Kt===!0||Kt===void 0?1:Kt||0,Yt=($=(C=Y.code)===null||C===void 0?void 0:C.regExp)!==null&&$!==void 0?$:d,he=(y=Y.uriResolver)!==null&&y!==void 0?y:f.default;return{strictSchema:(M=(k=Y.strictSchema)!==null&&k!==void 0?k:Ut)!==null&&M!==void 0?M:!0,strictNumbers:(z=(I=Y.strictNumbers)!==null&&I!==void 0?I:Ut)!==null&&z!==void 0?z:!0,strictTypes:(et=(q=Y.strictTypes)!==null&&q!==void 0?q:Ut)!==null&&et!==void 0?et:"log",strictTuples:(mt=(st=Y.strictTuples)!==null&&st!==void 0?st:Ut)!==null&&mt!==void 0?mt:"log",strictRequired:(X=(Mt=Y.strictRequired)!==null&&Mt!==void 0?Mt:Ut)!==null&&X!==void 0?X:!1,code:Y.code?{...Y.code,optimize:ne,regExp:Yt}:{optimize:ne,regExp:Yt},loopRequired:(Q=Y.loopRequired)!==null&&Q!==void 0?Q:_,loopEnum:(it=Y.loopEnum)!==null&&it!==void 0?it:_,meta:(lt=Y.meta)!==null&<!==void 0?lt:!0,messages:(ct=Y.messages)!==null&&ct!==void 0?ct:!0,inlineRefs:(dt=Y.inlineRefs)!==null&&dt!==void 0?dt:!0,schemaId:(St=Y.schemaId)!==null&&St!==void 0?St:"$id",addUsedSchema:(yt=Y.addUsedSchema)!==null&&yt!==void 0?yt:!0,validateSchema:(bt=Y.validateSchema)!==null&&bt!==void 0?bt:!0,validateFormats:(ut=Y.validateFormats)!==null&&ut!==void 0?ut:!0,unicodeRegExp:(It=Y.unicodeRegExp)!==null&&It!==void 0?It:!0,int32range:(Lt=Y.int32range)!==null&&Lt!==void 0?Lt:!0,uriResolver:he}}class S{constructor(T={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,T=this.opts={...T,...g(T)};const{es5:C,lines:$}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:C,lines:$}),this.logger=W(T.logger);const y=T.validateFormats;T.validateFormats=!1,this.RULES=(0,o.getRules)(),A.call(this,v,T,"NOT SUPPORTED"),A.call(this,b,T,"DEPRECATED","warn"),this._metaOpts=G.call(this),T.formats&&D.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),T.keywords&&U.call(this,T.keywords),typeof T.meta=="object"&&this.addMetaSchema(T.meta),N.call(this),T.validateFormats=y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:T,meta:C,schemaId:$}=this.opts;let y=h;$==="id"&&(y={...h},y.id=y.$id,delete y.$id),C&&T&&this.addMetaSchema(y,y[$],!1)}defaultMeta(){const{meta:T,schemaId:C}=this.opts;return this.opts.defaultMeta=typeof T=="object"?T[C]||T:void 0}validate(T,C){let $;if(typeof T=="string"){if($=this.getSchema(T),!$)throw new Error(`no schema with key or ref "${T}"`)}else $=this.compile(T);const y=$(C);return"$async"in $||(this.errors=$.errors),y}compile(T,C){const $=this._addSchema(T,C);return $.validate||this._compileSchemaEnv($)}compileAsync(T,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:$}=this.opts;return y.call(this,T,C);async function y(et,st){await k.call(this,et.$schema);const mt=this._addSchema(et,st);return mt.validate||M.call(this,mt)}async function k(et){et&&!this.getSchema(et)&&await y.call(this,{$ref:et},!0)}async function M(et){try{return this._compileSchemaEnv(et)}catch(st){if(!(st instanceof i.default))throw st;return I.call(this,st),await z.call(this,st.missingSchema),M.call(this,et)}}function I({missingSchema:et,missingRef:st}){if(this.refs[et])throw new Error(`AnySchema ${et} is loaded but ${st} cannot be resolved`)}async function z(et){const st=await q.call(this,et);this.refs[et]||await k.call(this,st.$schema),this.refs[et]||this.addSchema(st,et,C)}async function q(et){const st=this._loading[et];if(st)return st;try{return await(this._loading[et]=$(et))}finally{delete this._loading[et]}}}addSchema(T,C,$,y=this.opts.validateSchema){if(Array.isArray(T)){for(const M of T)this.addSchema(M,void 0,$,y);return this}let k;if(typeof T=="object"){const{schemaId:M}=this.opts;if(k=T[M],k!==void 0&&typeof k!="string")throw new Error(`schema ${M} must be string`)}return C=(0,c.normalizeId)(C||k),this._checkUnique(C),this.schemas[C]=this._addSchema(T,$,C,y,!0),this}addMetaSchema(T,C,$=this.opts.validateSchema){return this.addSchema(T,C,!0,$),this}validateSchema(T,C){if(typeof T=="boolean")return!0;let $;if($=T.$schema,$!==void 0&&typeof $!="string")throw new Error("$schema must be a string");if($=$||this.opts.defaultMeta||this.defaultMeta(),!$)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const y=this.validate($,T);if(!y&&C){const k="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(k);else throw new Error(k)}return y}getSchema(T){let C;for(;typeof(C=E.call(this,T))=="string";)T=C;if(C===void 0){const{schemaId:$}=this.opts,y=new s.SchemaEnv({schema:{},schemaId:$});if(C=s.resolveSchema.call(this,y,T),!C)return;this.refs[T]=C}return C.validate||this._compileSchemaEnv(C)}removeSchema(T){if(T instanceof RegExp)return this._removeAllSchemas(this.schemas,T),this._removeAllSchemas(this.refs,T),this;switch(typeof T){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const C=E.call(this,T);return typeof C=="object"&&this._cache.delete(C.schema),delete this.schemas[T],delete this.refs[T],this}case"object":{const C=T;this._cache.delete(C);let $=T[this.opts.schemaId];return $&&($=(0,c.normalizeId)($),delete this.schemas[$],delete this.refs[$]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(T){for(const C of T)this.addKeyword(C);return this}addKeyword(T,C){let $;if(typeof T=="string")$=T,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=$);else if(typeof T=="object"&&C===void 0){if(C=T,$=C.keyword,Array.isArray($)&&!$.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(nt.call(this,$,C),!C)return(0,u.eachItem)($,k=>ft.call(this,k)),this;_t.call(this,C);const y={...C,type:(0,l.getJSONTypes)(C.type),schemaType:(0,l.getJSONTypes)(C.schemaType)};return(0,u.eachItem)($,y.type.length===0?k=>ft.call(this,k,y):k=>y.type.forEach(M=>ft.call(this,k,y,M))),this}getKeyword(T){const C=this.RULES.all[T];return typeof C=="object"?C.definition:!!C}removeKeyword(T){const{RULES:C}=this;delete C.keywords[T],delete C.all[T];for(const $ of C.rules){const y=$.rules.findIndex(k=>k.keyword===T);y>=0&&$.rules.splice(y,1)}return this}addFormat(T,C){return typeof C=="string"&&(C=new RegExp(C)),this.formats[T]=C,this}errorsText(T=this.errors,{separator:C=", ",dataVar:$="data"}={}){return!T||T.length===0?"No errors":T.map(y=>`${$}${y.instancePath} ${y.message}`).reduce((y,k)=>y+C+k)}$dataMetaSchema(T,C){const $=this.RULES.all;T=JSON.parse(JSON.stringify(T));for(const y of C){const k=y.split("/").slice(1);let M=T;for(const I of k)M=M[I];for(const I in $){const z=$[I];if(typeof z!="object")continue;const{$data:q}=z.definition,et=M[I];q&&et&&(M[I]=at(et))}}return T}_removeAllSchemas(T,C){for(const $ in T){const y=T[$];(!C||C.test($))&&(typeof y=="string"?delete T[$]:y&&!y.meta&&(this._cache.delete(y.schema),delete T[$]))}}_addSchema(T,C,$,y=this.opts.validateSchema,k=this.opts.addUsedSchema){let M;const{schemaId:I}=this.opts;if(typeof T=="object")M=T[I];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof T!="boolean")throw new Error("schema must be object or boolean")}let z=this._cache.get(T);if(z!==void 0)return z;$=(0,c.normalizeId)(M||$);const q=c.getSchemaRefs.call(this,T,$);return z=new s.SchemaEnv({schema:T,schemaId:I,meta:C,baseId:$,localRefs:q}),this._cache.set(z.schema,z),k&&!$.startsWith("#")&&($&&this._checkUnique($),this.refs[$]=z),y&&this.validateSchema(T,!0),z}_checkUnique(T){if(this.schemas[T]||this.refs[T])throw new Error(`schema with key or id "${T}" already exists`)}_compileSchemaEnv(T){if(T.meta?this._compileMetaSchema(T):s.compileSchema.call(this,T),!T.validate)throw new Error("ajv implementation error");return T.validate}_compileMetaSchema(T){const C=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,T)}finally{this.opts=C}}}e.default=S,S.ValidationError=n.default,S.MissingRefError=i.default;function A(Y,T,C,$="error"){for(const y in Y){const k=y;k in T&&this.logger[$](`${C}: option ${y}. ${Y[k]}`)}}function E(Y){return Y=(0,c.normalizeId)(Y),this.schemas[Y]||this.refs[Y]}function N(){const Y=this.opts.schemas;if(Y)if(Array.isArray(Y))this.addSchema(Y);else for(const T in Y)this.addSchema(Y[T],T)}function D(){for(const Y in this.opts.formats){const T=this.opts.formats[Y];T&&this.addFormat(Y,T)}}function U(Y){if(Array.isArray(Y)){this.addVocabulary(Y);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const T in Y){const C=Y[T];C.keyword||(C.keyword=T),this.addKeyword(C)}}function G(){const Y={...this.opts};for(const T of p)delete Y[T];return Y}const K={log(){},warn(){},error(){}};function W(Y){if(Y===!1)return K;if(Y===void 0)return console;if(Y.log&&Y.warn&&Y.error)return Y;throw new Error("logger must implement log, warn and error methods")}const ot=/^[a-z_$][a-z0-9_$:-]*$/i;function nt(Y,T){const{RULES:C}=this;if((0,u.eachItem)(Y,$=>{if(C.keywords[$])throw new Error(`Keyword ${$} is already defined`);if(!ot.test($))throw new Error(`Keyword ${$} has invalid name`)}),!!T&&T.$data&&!("code"in T||"validate"in T))throw new Error('$data keyword must have "code" or "validate" function')}function ft(Y,T,C){var $;const y=T?.post;if(C&&y)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:k}=this;let M=y?k.post:k.rules.find(({type:z})=>z===C);if(M||(M={type:C,rules:[]},k.rules.push(M)),k.keywords[Y]=!0,!T)return;const I={keyword:Y,definition:{...T,type:(0,l.getJSONTypes)(T.type),schemaType:(0,l.getJSONTypes)(T.schemaType)}};T.before?$t.call(this,M,I,T.before):M.rules.push(I),k.all[Y]=I,($=T.implements)===null||$===void 0||$.forEach(z=>this.addKeyword(z))}function $t(Y,T,C){const $=Y.rules.findIndex(y=>y.keyword===C);$>=0?Y.rules.splice($,0,T):(Y.rules.push(T),this.logger.warn(`rule ${C} is not defined`))}function _t(Y){let{metaSchema:T}=Y;T!==void 0&&(Y.$data&&this.opts.$data&&(T=at(T)),Y.validateSchema=this.compile(T,!0))}const vt={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function at(Y){return{anyOf:[Y,vt]}}})(xp);const UN=nn(xp),VN=Xt({__proto__:null,default:UN},[xp]),zN=Jt(VN);var Kp={},Yp={},Xp={};Object.defineProperty(Xp,"__esModule",{value:!0});const GN={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var BN=Xp.default=GN;const HN=Xt({__proto__:null,default:BN},[Xp]),qN=Jt(HN);var ss={};Object.defineProperty(ss,"__esModule",{value:!0});var Db=ss.callRef=Fb=ss.getValidate=void 0;const KN=Vp,Rb=Hn,on=$e,ra=Li,Ib=Bp,hh=Fe,YN={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return h();const u=Ib.resolveRef.call(c,l,i,r);if(u===void 0)throw new KN.default(n.opts.uriResolver,i,r);if(u instanceof Ib.SchemaEnv)return f(u);return d(u);function h(){if(o===l)return dh(e,s,o,o.$async);const p=t.scopeValue("root",{ref:l});return dh(e,(0,on._)`${p}.validate`,l,l.$async)}function f(p){const m=jb(e,p);dh(e,m,p,p.$async)}function d(p){const m=t.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,on.stringify)(p)}:{ref:p}),v=t.name("valid"),b=e.subschema({schema:p,dataTypes:[],schemaPath:on.nil,topSchemaRef:m,errSchemaPath:r},v);e.mergeEvaluated(b),e.ok(v)}}};function jb(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,on._)`${r.scopeValue("wrapper",{ref:t})}.validate`}var Fb=ss.getValidate=jb;function dh(e,t,r,n){const{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?ra.default.this:on.nil;n?u():h();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");const p=i.let("valid");i.try(()=>{i.code((0,on._)`await ${(0,Rb.callValidateCode)(e,t,l)}`),d(t),s||i.assign(p,!0)},m=>{i.if((0,on._)`!(${m} instanceof ${o.ValidationError})`,()=>i.throw(m)),f(m),s||i.assign(p,!1)}),e.ok(p)}function h(){e.result((0,Rb.callValidateCode)(e,t,l),()=>d(t),()=>f(t))}function f(p){const m=(0,on._)`${p}.errors`;i.assign(ra.default.vErrors,(0,on._)`${ra.default.vErrors} === null ? ${m} : ${ra.default.vErrors}.concat(${m})`),i.assign(ra.default.errors,(0,on._)`${ra.default.vErrors}.length`)}function d(p){var m;if(!o.opts.unevaluated)return;const v=(m=r?.validate)===null||m===void 0?void 0:m.evaluated;if(o.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(o.props=hh.mergeEvaluated.props(i,v.props,o.props));else{const b=i.var("props",(0,on._)`${p}.evaluated.props`);o.props=hh.mergeEvaluated.props(i,b,o.props,on.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=hh.mergeEvaluated.items(i,v.items,o.items));else{const b=i.var("items",(0,on._)`${p}.evaluated.items`);o.items=hh.mergeEvaluated.items(i,b,o.items,on.Name)}}}Db=ss.callRef=dh;var XN=ss.default=YN;const JN=Xt({__proto__:null,get callRef(){return Db},default:XN,get getValidate(){return Fb}},[ss]),WN=Jt(JN);Object.defineProperty(Yp,"__esModule",{value:!0});const QN=qN,ZN=WN,tA=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",QN.default,ZN.default];var eA=Yp.default=tA;const rA=Xt({__proto__:null,default:eA},[Yp]),nA=Jt(rA);var Jp={},Wp={};Object.defineProperty(Wp,"__esModule",{value:!0});const fh=$e,$o=fh.operators,ph={maximum:{okStr:"<=",ok:$o.LTE,fail:$o.GT},minimum:{okStr:">=",ok:$o.GTE,fail:$o.LT},exclusiveMaximum:{okStr:"<",ok:$o.LT,fail:$o.GTE},exclusiveMinimum:{okStr:">",ok:$o.GT,fail:$o.LTE}},iA={message:({keyword:e,schemaCode:t})=>(0,fh.str)`must be ${ph[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,fh._)`{comparison: ${ph[e].okStr}, limit: ${t}}`},oA={keyword:Object.keys(ph),type:"number",schemaType:"number",$data:!0,error:iA,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,fh._)`${r} ${ph[t].fail} ${n} || isNaN(${r})`)}};var sA=Wp.default=oA;const aA=Xt({__proto__:null,default:sA},[Wp]),lA=Jt(aA);var Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});const dl=$e,cA={message:({schemaCode:e})=>(0,dl.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,dl._)`{multipleOf: ${e}}`},uA={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:cA,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,dl._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,dl._)`${s} !== parseInt(${s})`;e.fail$data((0,dl._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};var hA=Qp.default=uA;const dA=Xt({__proto__:null,default:hA},[Qp]),fA=Jt(dA);var Zp={},t0={};Object.defineProperty(t0,"__esModule",{value:!0});function Mb(e){const t=e.length;let r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}var pA=t0.default=Mb;Mb.code='require("ajv/dist/runtime/ucs2length").default';const mA=Xt({__proto__:null,default:pA},[t0]),gA=Jt(mA);Object.defineProperty(Zp,"__esModule",{value:!0});const as=$e,yA=Fe,vA=gA,_A={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,as.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,as._)`{limit: ${e}}`},bA={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:_A,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?as.operators.GT:as.operators.LT,s=i.opts.unicode===!1?(0,as._)`${r}.length`:(0,as._)`${(0,yA.useFunc)(e.gen,vA.default)}(${r})`;e.fail$data((0,as._)`${s} ${o} ${n}`)}};var wA=Zp.default=bA;const xA=Xt({__proto__:null,default:wA},[Zp]),$A=Jt(xA);var e0={};Object.defineProperty(e0,"__esModule",{value:!0});const SA=Hn,mh=$e,EA={message:({schemaCode:e})=>(0,mh.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,mh._)`{pattern: ${e}}`},CA={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:EA,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,mh._)`(new RegExp(${i}, ${s}))`:(0,SA.usePattern)(e,n);e.fail$data((0,mh._)`!${a}.test(${t})`)}};var kA=e0.default=CA;const PA=Xt({__proto__:null,default:kA},[e0]),TA=Jt(PA);var r0={};Object.defineProperty(r0,"__esModule",{value:!0});const fl=$e,OA={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,fl.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,fl._)`{limit: ${e}}`},NA={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:OA,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?fl.operators.GT:fl.operators.LT;e.fail$data((0,fl._)`Object.keys(${r}).length ${i} ${n}`)}};var AA=r0.default=NA;const DA=Xt({__proto__:null,default:AA},[r0]),RA=Jt(DA);var n0={};Object.defineProperty(n0,"__esModule",{value:!0});const pl=Hn,ml=$e,IA=Fe,jA={message:({params:{missingProperty:e}})=>(0,ml.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,ml._)`{missingProperty: ${e}}`},FA={keyword:"required",type:"object",schemaType:"array",$data:!0,error:jA,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;const c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){const d=e.parentSchema.properties,{definedProperties:p}=e.it;for(const m of r)if(d?.[m]===void 0&&!p.has(m)){const v=s.schemaEnv.baseId+s.errSchemaPath,b=`required property "${m}" is not defined at "${v}" (strictRequired)`;(0,IA.checkStrictMode)(s,b,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(ml.nil,h);else for(const d of r)(0,pl.checkReportMissingProp)(e,d)}function u(){const d=t.let("missing");if(c||o){const p=t.let("valid",!0);e.block$data(p,()=>f(d,p)),e.ok(p)}else t.if((0,pl.checkMissingProp)(e,r,d)),(0,pl.reportMissingProp)(e,d),t.else()}function h(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,pl.noPropertyInData)(t,i,d,a.ownProperties),()=>e.error())})}function f(d,p){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(p,(0,pl.propertyInData)(t,i,d,a.ownProperties)),t.if((0,ml.not)(p),()=>{e.error(),t.break()})},ml.nil)}}};var MA=n0.default=FA;const LA=Xt({__proto__:null,default:MA},[n0]),UA=Jt(LA);var i0={};Object.defineProperty(i0,"__esModule",{value:!0});const gl=$e,VA={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,gl.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,gl._)`{limit: ${e}}`},zA={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:VA,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?gl.operators.GT:gl.operators.LT;e.fail$data((0,gl._)`${r}.length ${i} ${n}`)}};var GA=i0.default=zA;const BA=Xt({__proto__:null,default:GA},[i0]),HA=Jt(BA);var o0={},s0={};Object.defineProperty(s0,"__esModule",{value:!0});const Lb=Y2;Lb.code='require("ajv/dist/runtime/equal").default';var qA=s0.default=Lb;const KA=Xt({__proto__:null,default:qA},[s0]),a0=Jt(KA);Object.defineProperty(o0,"__esModule",{value:!0});const l0=oh,jr=$e,YA=Fe,XA=a0,JA={message:({params:{i:e,j:t}})=>(0,jr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,jr._)`{i: ${e}, j: ${t}}`},WA={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:JA,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=e;if(!n&&!i)return;const c=t.let("valid"),l=o.items?(0,l0.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,jr._)`${s} === false`),e.ok(c);function u(){const p=t.let("i",(0,jr._)`${r}.length`),m=t.let("j");e.setParams({i:p,j:m}),t.assign(c,!0),t.if((0,jr._)`${p} > 1`,()=>(h()?f:d)(p,m))}function h(){return l.length>0&&!l.some(p=>p==="object"||p==="array")}function f(p,m){const v=t.name("item"),b=(0,l0.checkDataTypes)(l,v,a.opts.strictNumbers,l0.DataType.Wrong),_=t.const("indices",(0,jr._)`{}`);t.for((0,jr._)`;${p}--;`,()=>{t.let(v,(0,jr._)`${r}[${p}]`),t.if(b,(0,jr._)`continue`),l.length>1&&t.if((0,jr._)`typeof ${v} == "string"`,(0,jr._)`${v} += "_"`),t.if((0,jr._)`typeof ${_}[${v}] == "number"`,()=>{t.assign(m,(0,jr._)`${_}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,jr._)`${_}[${v}] = ${p}`)})}function d(p,m){const v=(0,YA.useFunc)(t,XA.default),b=t.name("outer");t.label(b).for((0,jr._)`;${p}--;`,()=>t.for((0,jr._)`${m} = ${p}; ${m}--;`,()=>t.if((0,jr._)`${v}(${r}[${p}], ${r}[${m}])`,()=>{e.error(),t.assign(c,!1).break(b)})))}}};var QA=o0.default=WA;const ZA=Xt({__proto__:null,default:QA},[o0]),t9=Jt(ZA);var c0={};Object.defineProperty(c0,"__esModule",{value:!0});const u0=$e,e9=Fe,r9=a0,n9={message:"must be equal to constant",params:({schemaCode:e})=>(0,u0._)`{allowedValue: ${e}}`},i9={keyword:"const",$data:!0,error:n9,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,u0._)`!${(0,e9.useFunc)(t,r9.default)}(${r}, ${i})`):e.fail((0,u0._)`${o} !== ${r}`)}};var o9=c0.default=i9;const s9=Xt({__proto__:null,default:o9},[c0]),a9=Jt(s9);var h0={};Object.defineProperty(h0,"__esModule",{value:!0});const yl=$e,l9=Fe,c9=a0,u9={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,yl._)`{allowedValues: ${e}}`},h9={keyword:"enum",schemaType:"array",$data:!0,error:u9,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const a=i.length>=s.opts.loopEnum;let c;const l=()=>c??(c=(0,l9.useFunc)(t,c9.default));let u;if(a||n)u=t.let("valid"),e.block$data(u,h);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const d=t.const("vSchema",o);u=(0,yl.or)(...i.map((p,m)=>f(d,m)))}e.pass(u);function h(){t.assign(u,!1),t.forOf("v",o,d=>t.if((0,yl._)`${l()}(${r}, ${d})`,()=>t.assign(u,!0).break()))}function f(d,p){const m=i[p];return typeof m=="object"&&m!==null?(0,yl._)`${l()}(${r}, ${d}[${p}])`:(0,yl._)`${r} === ${m}`}}};var d9=h0.default=h9;const f9=Xt({__proto__:null,default:d9},[h0]),p9=Jt(f9);Object.defineProperty(Jp,"__esModule",{value:!0});const m9=lA,g9=fA,y9=$A,v9=TA,_9=RA,b9=UA,w9=HA,x9=t9,$9=a9,S9=p9,E9=[m9.default,g9.default,y9.default,v9.default,_9.default,b9.default,w9.default,x9.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},$9.default,S9.default];var C9=Jp.default=E9;const k9=Xt({__proto__:null,default:C9},[Jp]),P9=Jt(k9);var d0={},vl={};Object.defineProperty(vl,"__esModule",{value:!0});var Ub=vl.validateAdditionalItems=void 0;const ls=$e,f0=Fe,T9={message:({params:{len:e}})=>(0,ls.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ls._)`{limit: ${e}}`},O9={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:T9,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,f0.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Vb(e,n)}};function Vb(e,t){const{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;const a=r.const("len",(0,ls._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,ls._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,f0.alwaysValidSchema)(s,n)){const l=r.var("valid",(0,ls._)`${a} <= ${t.length}`);r.if((0,ls.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:f0.Type.Num},l),s.allErrors||r.if((0,ls.not)(l),()=>r.break())})}}Ub=vl.validateAdditionalItems=Vb;var N9=vl.default=O9;const A9=Xt({__proto__:null,default:N9,get validateAdditionalItems(){return Ub}},[vl]),zb=Jt(A9);var p0={},_l={};Object.defineProperty(_l,"__esModule",{value:!0});var Gb=_l.validateTuple=void 0;const Bb=$e,gh=Fe,D9=Hn,R9={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return Hb(e,"additionalItems",t);r.items=!0,!(0,gh.alwaysValidSchema)(r,t)&&e.ok((0,D9.validateArray)(e))}};function Hb(e,t,r=e.schema){const{gen:n,parentSchema:i,data:o,keyword:s,it:a}=e;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=gh.mergeEvaluated.items(n,r.length,a.items));const c=n.name("valid"),l=n.const("len",(0,Bb._)`${o}.length`);r.forEach((h,f)=>{(0,gh.alwaysValidSchema)(a,h)||(n.if((0,Bb._)`${l} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function u(h){const{opts:f,errSchemaPath:d}=a,p=r.length,m=p===h.minItems&&(p===h.maxItems||h[t]===!1);if(f.strictTuples&&!m){const v=`"${s}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,gh.checkStrictMode)(a,v,f.strictTuples)}}}Gb=_l.validateTuple=Hb;var I9=_l.default=R9;const j9=Xt({__proto__:null,default:I9,get validateTuple(){return Gb}},[_l]),qb=Jt(j9);Object.defineProperty(p0,"__esModule",{value:!0});const F9=qb,M9={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,F9.validateTuple)(e,"items")};var L9=p0.default=M9;const U9=Xt({__proto__:null,default:L9},[p0]),V9=Jt(U9);var m0={};Object.defineProperty(m0,"__esModule",{value:!0});const Kb=$e,z9=Fe,G9=Hn,B9=zb,H9={message:({params:{len:e}})=>(0,Kb.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Kb._)`{limit: ${e}}`},q9={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:H9,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,z9.alwaysValidSchema)(n,t)&&(i?(0,B9.validateAdditionalItems)(e,i):e.ok((0,G9.validateArray)(e)))}};var K9=m0.default=q9;const Y9=Xt({__proto__:null,default:K9},[m0]),X9=Jt(Y9);var g0={};Object.defineProperty(g0,"__esModule",{value:!0});const Cn=$e,yh=Fe,J9={message:({params:{min:e,max:t}})=>t===void 0?(0,Cn.str)`must contain at least ${e} valid item(s)`:(0,Cn.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Cn._)`{minContains: ${e}}`:(0,Cn._)`{minContains: ${e}, maxContains: ${t}}`},W9={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:J9,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;let s,a;const{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;const u=t.const("len",(0,Cn._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,yh.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,yh.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,yh.alwaysValidSchema)(o,r)){let m=(0,Cn._)`${u} >= ${s}`;a!==void 0&&(m=(0,Cn._)`${m} && ${u} <= ${a}`),e.pass(m);return}o.items=!0;const h=t.name("valid");a===void 0&&s===1?d(h,()=>t.if(h,()=>t.break())):s===0?(t.let(h,!0),a!==void 0&&t.if((0,Cn._)`${i}.length > 0`,f)):(t.let(h,!1),f()),e.result(h,()=>e.reset());function f(){const m=t.name("_valid"),v=t.let("count",0);d(m,()=>t.if(m,()=>p(v)))}function d(m,v){t.forRange("i",0,u,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:yh.Type.Num,compositeRule:!0},m),v()})}function p(m){t.code((0,Cn._)`${m}++`),a===void 0?t.if((0,Cn._)`${m} >= ${s}`,()=>t.assign(h,!0).break()):(t.if((0,Cn._)`${m} > ${a}`,()=>t.assign(h,!1).break()),s===1?t.assign(h,!0):t.if((0,Cn._)`${m} >= ${s}`,()=>t.assign(h,!0)))}}};var Q9=g0.default=W9;const Z9=Xt({__proto__:null,default:Q9},[g0]),t7=Jt(Z9);var y0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=$e,r=Fe,n=Hn;e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const h=l===1?"property":"properties";return(0,t.str)`must have ${h} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:h}})=>(0,t._)`{property: ${c},
|
|
41
|
+
missingProperty: ${h},
|
|
42
|
+
depsCount: ${l},
|
|
43
|
+
deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,u]=o(c);s(c,l),a(c,u)}};function o({schema:c}){const l={},u={};for(const h in c){if(h==="__proto__")continue;const f=Array.isArray(c[h])?l:u;f[h]=c[h]}return[l,u]}function s(c,l=c.schema){const{gen:u,data:h,it:f}=c;if(Object.keys(l).length===0)return;const d=u.let("missing");for(const p in l){const m=l[p];if(m.length===0)continue;const v=(0,n.propertyInData)(u,h,p,f.opts.ownProperties);c.setParams({property:p,depsCount:m.length,deps:m.join(", ")}),f.allErrors?u.if(v,()=>{for(const b of m)(0,n.checkReportMissingProp)(c,b)}):(u.if((0,t._)`${v} && (${(0,n.checkMissingProp)(c,m,d)})`),(0,n.reportMissingProp)(c,d),u.else())}}e.validatePropertyDeps=s;function a(c,l=c.schema){const{gen:u,data:h,keyword:f,it:d}=c,p=u.name("valid");for(const m in l)(0,r.alwaysValidSchema)(d,l[m])||(u.if((0,n.propertyInData)(u,h,m,d.opts.ownProperties),()=>{const v=c.subschema({keyword:f,schemaProp:m},p);c.mergeValidEvaluated(v,p)},()=>u.var(p,!0)),c.ok(p))}e.validateSchemaDeps=a,e.default=i})(y0);const e7=nn(y0),r7=Xt({__proto__:null,default:e7},[y0]),n7=Jt(r7);var v0={};Object.defineProperty(v0,"__esModule",{value:!0});const Yb=$e,i7=Fe,o7={message:"property name must be valid",params:({params:e})=>(0,Yb._)`{propertyName: ${e.propertyName}}`},s7={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:o7,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,i7.alwaysValidSchema)(i,r))return;const o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,Yb.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};var a7=v0.default=s7;const l7=Xt({__proto__:null,default:a7},[v0]),c7=Jt(l7);var _0={};Object.defineProperty(_0,"__esModule",{value:!0});const vh=Hn,Yn=$e,u7=Li,_h=Fe,h7={message:"must NOT have additional properties",params:({params:e})=>(0,Yn._)`{additionalProperty: ${e.additionalProperty}}`},d7={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:h7,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");const{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,_h.alwaysValidSchema)(s,r))return;const l=(0,vh.allSchemaProperties)(n.properties),u=(0,vh.allSchemaProperties)(n.patternProperties);h(),e.ok((0,Yn._)`${o} === ${u7.default.errors}`);function h(){t.forIn("key",i,v=>{!l.length&&!u.length?p(v):t.if(f(v),()=>p(v))})}function f(v){let b;if(l.length>8){const _=(0,_h.schemaRefOrVal)(s,n.properties,"properties");b=(0,vh.isOwnProperty)(t,_,v)}else l.length?b=(0,Yn.or)(...l.map(_=>(0,Yn._)`${v} === ${_}`)):b=Yn.nil;return u.length&&(b=(0,Yn.or)(b,...u.map(_=>(0,Yn._)`${(0,vh.usePattern)(e,_)}.test(${v})`))),(0,Yn.not)(b)}function d(v){t.code((0,Yn._)`delete ${i}[${v}]`)}function p(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){d(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,_h.alwaysValidSchema)(s,r)){const b=t.name("valid");c.removeAdditional==="failing"?(m(v,b,!1),t.if((0,Yn.not)(b),()=>{e.reset(),d(v)})):(m(v,b),a||t.if((0,Yn.not)(b),()=>t.break()))}}function m(v,b,_){const g={keyword:"additionalProperties",dataProp:v,dataPropType:_h.Type.Str};_===!1&&Object.assign(g,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(g,b)}}};var f7=_0.default=d7;const p7=Xt({__proto__:null,default:f7},[_0]),Xb=Jt(p7);var b0={};Object.defineProperty(b0,"__esModule",{value:!0});const m7=hl,Jb=Hn,w0=Fe,Wb=Xb,g7={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Wb.default.code(new m7.KeywordCxt(o,Wb.default,"additionalProperties"));const s=(0,Jb.allSchemaProperties)(r);for(const h of s)o.definedProperties.add(h);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=w0.mergeEvaluated.props(t,(0,w0.toHash)(s),o.props));const a=s.filter(h=>!(0,w0.alwaysValidSchema)(o,r[h]));if(a.length===0)return;const c=t.name("valid");for(const h of a)l(h)?u(h):(t.if((0,Jb.propertyInData)(t,i,h,o.opts.ownProperties)),u(h),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(h),e.ok(c);function l(h){return o.opts.useDefaults&&!o.compositeRule&&r[h].default!==void 0}function u(h){e.subschema({keyword:"properties",schemaProp:h,dataProp:h},c)}}};var y7=b0.default=g7;const v7=Xt({__proto__:null,default:y7},[b0]),_7=Jt(v7);var x0={};Object.defineProperty(x0,"__esModule",{value:!0});const Qb=Hn,bh=$e,Zb=Fe,tw=Fe,b7={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,a=(0,Qb.allSchemaProperties)(r),c=a.filter(m=>(0,Zb.alwaysValidSchema)(o,r[m]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;const l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof bh.Name)&&(o.props=(0,tw.evaluatedPropsToName)(t,o.props));const{props:h}=o;f();function f(){for(const m of a)l&&d(m),o.allErrors?p(m):(t.var(u,!0),p(m),t.if(u))}function d(m){for(const v in l)new RegExp(m).test(v)&&(0,Zb.checkStrictMode)(o,`property ${v} matches pattern ${m} (use allowMatchingProperties)`)}function p(m){t.forIn("key",n,v=>{t.if((0,bh._)`${(0,Qb.usePattern)(e,m)}.test(${v})`,()=>{const b=c.includes(m);b||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:v,dataPropType:tw.Type.Str},u),o.opts.unevaluated&&h!==!0?t.assign((0,bh._)`${h}[${v}]`,!0):!b&&!o.allErrors&&t.if((0,bh.not)(u),()=>t.break())})})}}};var w7=x0.default=b7;const x7=Xt({__proto__:null,default:w7},[x0]),$7=Jt(x7);var $0={};Object.defineProperty($0,"__esModule",{value:!0});const S7=Fe,E7={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,S7.alwaysValidSchema)(n,r)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};var C7=$0.default=E7;const k7=Xt({__proto__:null,default:C7},[$0]),P7=Jt(k7);var S0={};Object.defineProperty(S0,"__esModule",{value:!0});const T7=Hn,O7={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:T7.validateUnion,error:{message:"must match a schema in anyOf"}};var N7=S0.default=O7;const A7=Xt({__proto__:null,default:N7},[S0]),D7=Jt(A7);var E0={};Object.defineProperty(E0,"__esModule",{value:!0});const wh=$e,R7=Fe,I7={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,wh._)`{passingSchemas: ${e.passing}}`},j7={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:I7,code(e){const{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,h)=>{let f;(0,R7.alwaysValidSchema)(i,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},c),h>0&&t.if((0,wh._)`${c} && ${s}`).assign(s,!1).assign(a,(0,wh._)`[${a}, ${h}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,h),f&&e.mergeEvaluated(f,wh.Name)})})}}};var F7=E0.default=j7;const M7=Xt({__proto__:null,default:F7},[E0]),L7=Jt(M7);var C0={};Object.defineProperty(C0,"__esModule",{value:!0});const U7=Fe,V7={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach((o,s)=>{if((0,U7.alwaysValidSchema)(n,o))return;const a=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(a)})}};var z7=C0.default=V7;const G7=Xt({__proto__:null,default:z7},[C0]),B7=Jt(G7);var k0={};Object.defineProperty(k0,"__esModule",{value:!0});const xh=$e,ew=Fe,H7={message:({params:e})=>(0,xh.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,xh._)`{failingKeyword: ${e.ifClause}}`},q7={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:H7,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,ew.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=rw(n,"then"),o=rw(n,"else");if(!i&&!o)return;const s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),i&&o){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else i?t.if(a,l("then")):t.if((0,xh.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,h){return()=>{const f=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(f,s),h?t.assign(h,(0,xh._)`${u}`):e.setParams({ifClause:u})}}}};function rw(e,t){const r=e.schema[t];return r!==void 0&&!(0,ew.alwaysValidSchema)(e,r)}var K7=k0.default=q7;const Y7=Xt({__proto__:null,default:K7},[k0]),X7=Jt(Y7);var P0={};Object.defineProperty(P0,"__esModule",{value:!0});const J7=Fe,W7={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,J7.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};var Q7=P0.default=W7;const Z7=Xt({__proto__:null,default:Q7},[P0]),tD=Jt(Z7);Object.defineProperty(d0,"__esModule",{value:!0});const eD=zb,rD=V9,nD=qb,iD=X9,oD=t7,sD=n7,aD=c7,lD=Xb,cD=_7,uD=$7,hD=P7,dD=D7,fD=L7,pD=B7,mD=X7,gD=tD;function yD(e=!1){const t=[hD.default,dD.default,fD.default,pD.default,mD.default,gD.default,aD.default,lD.default,sD.default,cD.default,uD.default];return e?t.push(rD.default,iD.default):t.push(eD.default,nD.default),t.push(oD.default),t}var vD=d0.default=yD;const _D=Xt({__proto__:null,default:vD},[d0]),bD=Jt(_D);var T0={},O0={};Object.defineProperty(O0,"__esModule",{value:!0});const gr=$e,wD={message:({schemaCode:e})=>(0,gr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,gr._)`{format: ${e}}`},xD={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:wD,code(e,t){const{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:h}=a;if(!c.validateFormats)return;i?f():d();function f(){const p=r.scopeValue("formats",{ref:h.formats,code:c.code.formats}),m=r.const("fDef",(0,gr._)`${p}[${s}]`),v=r.let("fType"),b=r.let("format");r.if((0,gr._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(v,(0,gr._)`${m}.type || "string"`).assign(b,(0,gr._)`${m}.validate`),()=>r.assign(v,(0,gr._)`"string"`).assign(b,m)),e.fail$data((0,gr.or)(_(),g()));function _(){return c.strictSchema===!1?gr.nil:(0,gr._)`${s} && !${b}`}function g(){const S=u.$async?(0,gr._)`(${m}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,gr._)`${b}(${n})`,A=(0,gr._)`(typeof ${b} == "function" ? ${S} : ${b}.test(${n}))`;return(0,gr._)`${b} && ${b} !== true && ${v} === ${t} && !${A}`}}function d(){const p=h.formats[o];if(!p){_();return}if(p===!0)return;const[m,v,b]=g(p);m===t&&e.pass(S());function _(){if(c.strictSchema===!1){h.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function g(A){const E=A instanceof RegExp?(0,gr.regexpCode)(A):c.code.formats?(0,gr._)`${c.code.formats}${(0,gr.getProperty)(o)}`:void 0,N=r.scopeValue("formats",{key:o,ref:A,code:E});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,gr._)`${N}.validate`]:["string",A,N]}function S(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,gr._)`await ${b}(${n})`}return typeof v=="function"?(0,gr._)`${b}(${n})`:(0,gr._)`${b}.test(${n})`}}}};var $D=O0.default=xD;const SD=Xt({__proto__:null,default:$D},[O0]),ED=Jt(SD);Object.defineProperty(T0,"__esModule",{value:!0});const CD=ED,kD=[CD.default];var PD=T0.default=kD;const TD=Xt({__proto__:null,default:PD},[T0]),OD=Jt(TD);var cs={};Object.defineProperty(cs,"__esModule",{value:!0});var nw=cs.contentVocabulary=iw=cs.metadataVocabulary=void 0,iw=cs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];nw=cs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];const ND=Xt({__proto__:null,get contentVocabulary(){return nw},default:cs,get metadataVocabulary(){return iw}},[cs]),AD=Jt(ND);Object.defineProperty(Kp,"__esModule",{value:!0});const DD=nA,RD=P9,ID=bD,jD=OD,ow=AD,FD=[DD.default,RD.default,(0,ID.default)(),jD.default,ow.metadataVocabulary,ow.contentVocabulary];var MD=Kp.default=FD;const LD=Xt({__proto__:null,default:MD},[Kp]),UD=Jt(LD);var N0={},A0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(A0);const VD=nn(A0),zD=Xt({__proto__:null,default:VD},[A0]),GD=Jt(zD);Object.defineProperty(N0,"__esModule",{value:!0});const na=$e,D0=GD,sw=Bp,BD=Fe,HD={message:({params:{discrError:e,tagName:t}})=>e===D0.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,na._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},qD={keyword:"discriminator",type:"object",schemaType:"object",error:HD,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),l=t.const("tag",(0,na._)`${r}${(0,na.getProperty)(a)}`);t.if((0,na._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:D0.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function u(){const d=f();t.if(!1);for(const p in d)t.elseIf((0,na._)`${l} === ${p}`),t.assign(c,h(d[p]));t.else(),e.error(!1,{discrError:D0.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function h(d){const p=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:d},p);return e.mergeEvaluated(m,na.Name),p}function f(){var d;const p={},m=b(i);let v=!0;for(let S=0;S<s.length;S++){let A=s[S];A?.$ref&&!(0,BD.schemaHasRulesButRef)(A,o.self.RULES)&&(A=sw.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,A?.$ref),A instanceof sw.SchemaEnv&&(A=A.schema));const E=(d=A?.properties)===null||d===void 0?void 0:d[a];if(typeof E!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);v=v&&(m||b(A)),_(E,S)}if(!v)throw new Error(`discriminator: "${a}" must be required`);return p;function b({required:S}){return Array.isArray(S)&&S.includes(a)}function _(S,A){if(S.const)g(S.const,A);else if(S.enum)for(const E of S.enum)g(E,A);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function g(S,A){if(typeof S!="string"||S in p)throw new Error(`discriminator: "${a}" values must be unique strings`);p[S]=A}}}};var KD=N0.default=qD;const YD=Xt({__proto__:null,default:KD},[N0]),XD=Jt(YD),JD="http://json-schema.org/draft-07/schema#",WD="http://json-schema.org/draft-07/schema#",QD="Core schema meta-schema",ZD={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},tR=["object","boolean"],eR={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},rR={$schema:JD,$id:WD,title:QD,definitions:ZD,type:tR,properties:eR,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=zN,n=UD,i=XD,o=rR,s=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(p,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=hl;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=$e;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var h=Mp;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=Vp;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(wp,wp.exports);var aw=wp.exports;const lw=nn(aw),nR=Xt({__proto__:null,default:lw},[aw]);var R0={exports:{}};const iR=Jt(nR);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=iR,n=$e,i=sl,o=hl,s=al,a=Li,c="errorMessage",l=new r.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},h=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,d=/^""\s*\+\s*|\s*\+\s*""$/g;function p(v){return{keyword:c,schemaType:["string","object"],post:!0,code(b){const{gen:_,data:g,schema:S,schemaValue:A,it:E}=b;if(E.createErrors===!1)return;const N=S,D=n.strConcat(a.default.instancePath,E.errorPath);_.if(r._`${a.default.errors} > 0`,()=>{if(typeof N=="object"){const[$,y]=G(N);y&&K(y),$&&W($),ot(U(N))}const C=typeof N=="string"?N:N._;C&&nt(C),v.keepErrors||ft()});function U({properties:C,items:$}){const y={};if(C){y.props={};for(const k in C)y.props[k]=[]}if($){y.items={};for(let k=0;k<$.length;k++)y.items[k]=[]}return y}function G(C){let $,y;for(const k in C){if(k==="properties"||k==="items")continue;const M=C[k];if(typeof M=="object"){$||($={});const I=$[k]={};for(const z in M)I[z]=[]}else y||(y={}),y[k]=[]}return[$,y]}function K(C){const $=_.const("emErrors",r.stringify(C)),y=_.const("templates",at(C,S));_.forOf("err",a.default.vErrors,z=>_.if($t(z,$),()=>_.code(r._`${$}[${z}.keyword].push(${z})`).assign(r._`${z}.${l}`,!0)));const{singleError:k}=v;if(k){const z=_.let("message",r._`""`),q=_.let("paramsErrors",r._`[]`);M(et=>{_.if(z,()=>_.code(r._`${z} += ${typeof k=="string"?k:";"}`)),_.code(r._`${z} += ${I(et)}`),_.assign(q,r._`${q}.concat(${$}[${et}])`)}),s.reportError(b,{message:z,params:r._`{errors: ${q}}`})}else M(z=>s.reportError(b,{message:I(z),params:r._`{errors: ${$}[${z}]}`}));function M(z){_.forIn("key",$,q=>_.if(r._`${$}[${q}].length`,()=>z(q)))}function I(z){return r._`${z} in ${y} ? ${y}[${z}]() : ${A}[${z}]`}}function W(C){const $=_.const("emErrors",r.stringify(C)),y=[];for(const q in C)y.push([q,at(C[q],S[q])]);const k=_.const("templates",_.object(...y)),M=_.scopeValue("obj",{ref:u,code:r.stringify(u)}),I=_.let("emPropParams"),z=_.let("emParamsErrors");_.forOf("err",a.default.vErrors,q=>_.if($t(q,$),()=>{_.assign(I,r._`${M}[${q}.keyword]`),_.assign(z,r._`${$}[${q}.keyword][${q}.params[${I}]]`),_.if(z,()=>_.code(r._`${z}.push(${q})`).assign(r._`${q}.${l}`,!0))})),_.forIn("key",$,q=>_.forIn("keyProp",r._`${$}[${q}]`,et=>{_.assign(z,r._`${$}[${q}][${et}]`),_.if(r._`${z}.length`,()=>{const st=_.const("tmpl",r._`${k}[${q}] && ${k}[${q}][${et}]`);s.reportError(b,{message:r._`${st} ? ${st}() : ${A}[${q}][${et}]`,params:r._`{errors: ${z}}`})})}))}function ot(C){const{props:$,items:y}=C;if(!$&&!y)return;const k=r._`typeof ${g} == "object"`,M=r._`Array.isArray(${g})`,I=_.let("emErrors");let z,q;const et=_.let("templates");$&&y?(z=_.let("emChildKwd"),_.if(k),_.if(M,()=>{st(y,S.items),_.assign(z,r.str`items`)},()=>{st($,S.properties),_.assign(z,r.str`properties`)}),q=r._`[${z}]`):y?(_.if(M),st(y,S.items),q=r._`.items`):$&&(_.if(n.and(k,n.not(M))),st($,S.properties),q=r._`.properties`),_.forOf("err",a.default.vErrors,mt=>_t(mt,I,Mt=>_.code(r._`${I}[${Mt}].push(${mt})`).assign(r._`${mt}.${l}`,!0))),_.forIn("key",I,mt=>_.if(r._`${I}[${mt}].length`,()=>{s.reportError(b,{message:r._`${mt} in ${et} ? ${et}[${mt}]() : ${A}${q}[${mt}]`,params:r._`{errors: ${I}[${mt}]}`}),_.assign(r._`${a.default.vErrors}[${a.default.errors}-1].instancePath`,r._`${D} + "/" + ${mt}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),_.endIf();function st(mt,Mt){_.assign(I,r.stringify(mt)),_.assign(et,at(mt,Mt))}}function nt(C){const $=_.const("emErrs",r._`[]`);_.forOf("err",a.default.vErrors,y=>_.if(vt(y),()=>_.code(r._`${$}.push(${y})`).assign(r._`${y}.${l}`,!0))),_.if(r._`${$}.length`,()=>s.reportError(b,{message:Y(C),params:r._`{errors: ${$}}`}))}function ft(){const C=_.const("emErrs",r._`[]`);_.forOf("err",a.default.vErrors,$=>_.if(r._`!${$}.${l}`,()=>_.code(r._`${C}.push(${$})`))),_.assign(a.default.vErrors,C).assign(a.default.errors,r._`${C}.length`)}function $t(C,$){return n.and(r._`${C}.keyword !== ${c}`,r._`!${C}.${l}`,r._`${C}.instancePath === ${D}`,r._`${C}.keyword in ${$}`,r._`${C}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${C}.schemaPath.slice(${E.errSchemaPath.length}))`)}function _t(C,$,y){_.if(n.and(r._`${C}.keyword !== ${c}`,r._`!${C}.${l}`,r._`${C}.instancePath.indexOf(${D}) === 0`),()=>{const k=_.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),M=_.const("emMatches",r._`${k}.exec(${C}.instancePath.slice(${D}.length))`),I=_.const("emChild",r._`${M} && ${M}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);_.if(r._`${I} !== undefined && ${I} in ${$}`,()=>y(I))})}function vt(C){return n.and(r._`${C}.keyword !== ${c}`,r._`!${C}.${l}`,n.or(r._`${C}.instancePath === ${D}`,n.and(r._`${C}.instancePath.indexOf(${D}) === 0`,r._`${C}.instancePath[${D}.length] === "/"`)),r._`${C}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,r._`${C}.schemaPath[${E.errSchemaPath}.length] === "/"`)}function at(C,$){const y=[];for(const k in C){const M=$[k];h.test(M)&&y.push([k,T(M)])}return _.object(...y)}function Y(C){return h.test(C)?new i._Code(i.safeStringify(C).replace(f,($,y)=>`" + JSON.stringify(${o.getData(y,E)}) + "`).replace(d,"")):r.stringify(C)}function T(C){return r._`function(){return ${Y(C)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const m=(v,b={})=>{if(!v.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(v.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return v.addKeyword(p(b))};t.default=m,e.exports=m,e.exports.default=m})(R0,R0.exports);var oR=R0.exports;const sR=nn(oR),aR=new lw({allErrors:!0});sR(aR);const bl=/^[a-z0-9]+(-[a-z0-9]+)*$/,$h=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),c=i.pop(),l={provider:i.length>0?i[0]:n,prefix:c,name:a};return t&&!Sh(l)?null:l}const o=i[0],s=o.split("-");if(s.length>1){const a={provider:n,prefix:s.shift(),name:s.join("-")};return t&&!Sh(a)?null:a}if(r&&n===""){const a={provider:n,prefix:"",name:o};return t&&!Sh(a,r)?null:a}return null},Sh=(e,t)=>e?!!((e.provider===""||e.provider.match(bl))&&(t&&e.prefix===""||e.prefix.match(bl))&&e.name.match(bl)):!1,cw=Object.freeze({left:0,top:0,width:16,height:16}),Eh=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ch=Object.freeze({...cw,...Eh}),I0=Object.freeze({...Ch,body:"",hidden:!1});function lR(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function uw(e,t){const r=lR(e,t);for(const n in I0)n in Eh?n in e&&!(n in r)&&(r[n]=Eh[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function cR(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(s){if(r[s])return i[s]=[];if(!(s in i)){i[s]=null;const a=n[s]&&n[s].parent,c=a&&o(a);c&&(i[s]=[a].concat(c))}return i[s]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(o),i}function uR(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function s(a){o=uw(n[a]||i[a],o)}return s(t),r.forEach(s),uw(e,o)}function hw(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),r.push(i)});const n=cR(e);for(const i in n){const o=n[i];o&&(t(i,uR(e,i,o)),r.push(i))}return r}const hR={provider:"",aliases:{},not_found:{},...cw};function j0(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function dw(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!j0(e,hR))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(bl)||typeof o.body!="string"||!j0(o,I0))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],s=o.parent;if(!i.match(bl)||typeof s!="string"||!r[s]&&!n[s]||!j0(o,I0))return null}return t}const fw=Object.create(null);function dR(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function us(e,t){const r=fw[e]||(fw[e]=Object.create(null));return r[t]||(r[t]=dR(e,t))}function F0(e,t){return dw(t)?hw(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function fR(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let wl=!1;function pw(e){return typeof e=="boolean"&&(wl=e),wl}function pR(e){const t=typeof e=="string"?$h(e,!0,wl):e;if(t){const r=us(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function mR(e,t){const r=$h(e,!0,wl);if(!r)return!1;const n=us(r.provider,r.prefix);return fR(n,r.name,t)}function gR(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),wl&&!t&&!e.prefix){let i=!1;return dw(e)&&(e.prefix="",hw(e,(o,s)=>{s&&mR(o,s)&&(i=!0)})),i}const r=e.prefix;if(!Sh({provider:t,prefix:r,name:"a"}))return!1;const n=us(t,r);return!!F0(n,e)}const mw=Object.freeze({width:null,height:null}),gw=Object.freeze({...mw,...Eh}),yR=/(-?[0-9.]*[0-9]+[0-9.]*)/g,vR=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function yw(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(yR);if(n===null||!n.length)return e;const i=[];let o=n.shift(),s=vR.test(o);for(;;){if(s){const a=parseFloat(o);isNaN(a)?i.push(o):i.push(Math.ceil(a*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");s=!s}}function _R(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const i=e.indexOf(">",n),o=e.indexOf("</"+t);if(i===-1||o===-1)break;const s=e.indexOf(">",o);if(s===-1)break;r+=e.slice(i+1,o).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}function bR(e,t){return e?"<defs>"+e+"</defs>"+t:t}function wR(e,t,r){const n=_R(e);return bR(n.defs,t+n.content+r)}const xR=e=>e==="unset"||e==="undefined"||e==="none";function $R(e,t){const r={...Ch,...e},n={...gw,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(m=>{const v=[],b=m.hFlip,_=m.vFlip;let g=m.rotate;b?_?g+=2:(v.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),v.push("scale(-1 1)"),i.top=i.left=0):_&&(v.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),v.push("scale(1 -1)"),i.top=i.left=0);let S;switch(g<0&&(g-=Math.floor(g/4)*4),g=g%4,g){case 1:S=i.height/2+i.top,v.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:v.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:S=i.width/2+i.left,v.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}g%2===1&&(i.left!==i.top&&(S=i.left,i.left=i.top,i.top=S),i.width!==i.height&&(S=i.width,i.width=i.height,i.height=S)),v.length&&(o=wR(o,'<g transform="'+v.join(" ")+'">',"</g>"))});const s=n.width,a=n.height,c=i.width,l=i.height;let u,h;s===null?(h=a===null?"1em":a==="auto"?l:a,u=yw(h,c/l)):(u=s==="auto"?c:s,h=a===null?yw(u,l/c):a==="auto"?l:a);const f={},d=(m,v)=>{xR(v)||(f[m]=v.toString())};d("width",u),d("height",h);const p=[i.left,i.top,c,l];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:o}}const SR=/\sid="(\S+)"/g,ER="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let CR=0;function kR(e,t=ER){const r=[];let n;for(;n=SR.exec(e);)r.push(n[1]);if(!r.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(o=>{const s=typeof t=="function"?t(o):t+(CR++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const M0=Object.create(null);function PR(e,t){M0[e]=t}function L0(e){return M0[e]||M0[""]}function U0(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const V0=Object.create(null),xl=["https://api.simplesvg.com","https://api.unisvg.com"],kh=[];for(;xl.length>0;)xl.length===1||Math.random()>.5?kh.push(xl.shift()):kh.push(xl.pop());V0[""]=U0({resources:["https://api.iconify.design"].concat(kh)});function TR(e,t){const r=U0(t);return r===null?!1:(V0[e]=r,!0)}function z0(e){return V0[e]}let vw=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function OR(e,t){const r=z0(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(s=>{i=Math.max(i,s.length)});const o=t+".json?icons=";n=r.maxURL-i-r.path.length-o.length}return n}function NR(e){return e===404}const AR=(e,t,r)=>{const n=[],i=OR(e,t),o="icons";let s={type:o,provider:e,prefix:t,icons:[]},a=0;return r.forEach((c,l)=>{a+=c.length+1,a>=i&&l>0&&(n.push(s),s={type:o,provider:e,prefix:t,icons:[]},a=c.length),s.icons.push(c)}),n.push(s),n};function DR(e){if(typeof e=="string"){const t=z0(e);if(t)return t.path}return"/"}const RR={prepare:AR,send:(e,t,r)=>{if(!vw){r("abort",424);return}let n=DR(t.provider);switch(t.type){case"icons":{const o=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});n+=o+".json?"+c.toString();break}case"custom":{const o=t.uri;n+=o.slice(0,1)==="/"?o.slice(1):o;break}default:r("abort",400);return}let i=503;vw(e+n).then(o=>{const s=o.status;if(s!==200){setTimeout(()=>{r(NR(s)?"abort":"next",s)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?r("abort",o):r("next",i)});return}setTimeout(()=>{r("success",o)})}).catch(()=>{r("next",i)})}};function IR(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let n={provider:"",prefix:"",name:""};return e.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const o=i.provider,s=i.prefix,a=i.name,c=r[o]||(r[o]=Object.create(null)),l=c[s]||(c[s]=us(o,s));let u;a in l.icons?u=t.loaded:s===""||l.missing.has(a)?u=t.missing:u=t.pending;const h={provider:o,prefix:s,name:a};u.push(h)}),t}function _w(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function jR(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,i=e.prefix;t.forEach(o=>{const s=o.icons,a=s.pending.length;s.pending=s.pending.filter(c=>{if(c.prefix!==i)return!0;const l=c.name;if(e.icons[l])s.loaded.push({provider:n,prefix:i,name:l});else if(e.missing.has(l))s.missing.push({provider:n,prefix:i,name:l});else return r=!0,!0;return!1}),s.pending.length!==a&&(r||_w([e],o.id),o.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),o.abort))})}))}let FR=0;function MR(e,t,r){const n=FR++,i=_w.bind(null,r,n);if(!t.pending.length)return i;const o={id:n,icons:t,callback:e,abort:i};return r.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(o)}),i}function LR(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?$h(i,t,r):i;o&&n.push(o)}),n}var UR={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function VR(e,t,r,n){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let s;if(e.random){let E=e.resources.slice(0);for(s=[];E.length>1;){const N=Math.floor(Math.random()*E.length);s.push(E[N]),E=E.slice(0,N).concat(E.slice(N+1))}s=s.concat(E)}else s=e.resources.slice(o).concat(e.resources.slice(0,o));const a=Date.now();let c="pending",l=0,u,h=null,f=[],d=[];typeof n=="function"&&d.push(n);function p(){h&&(clearTimeout(h),h=null)}function m(){c==="pending"&&(c="aborted"),p(),f.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),f=[]}function v(E,N){N&&(d=[]),typeof E=="function"&&d.push(E)}function b(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:v,abort:m}}function _(){c="failed",d.forEach(E=>{E(void 0,u)})}function g(){f.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),f=[]}function S(E,N,D){const U=N!=="success";switch(f=f.filter(G=>G!==E),c){case"pending":break;case"failed":if(U||!e.dataAfterTimeout)return;break;default:return}if(N==="abort"){u=D,_();return}if(U){u=D,f.length||(s.length?A():_());return}if(p(),g(),!e.random){const G=e.resources.indexOf(E.resource);G!==-1&&G!==e.index&&(e.index=G)}c="completed",d.forEach(G=>{G(D)})}function A(){if(c!=="pending")return;p();const E=s.shift();if(E===void 0){if(f.length){h=setTimeout(()=>{p(),c==="pending"&&(g(),_())},e.timeout);return}_();return}const N={status:"pending",resource:E,callback:(D,U)=>{S(N,D,U)}};f.push(N),l++,h=setTimeout(A,e.rotate),r(E,t,N.callback)}return setTimeout(A),b}function bw(e){const t={...UR,...e};let r=[];function n(){r=r.filter(a=>a().status==="pending")}function i(a,c,l){const u=VR(t,a,c,(h,f)=>{n(),l&&l(h,f)});return r.push(u),u}function o(a){return r.find(c=>a(c))||null}return{query:i,find:o,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function ww(){}const G0=Object.create(null);function zR(e){if(!G0[e]){const t=z0(e);if(!t)return;const r=bw(t),n={config:t,redundancy:r};G0[e]=n}return G0[e]}function GR(e,t,r){let n,i;if(typeof e=="string"){const o=L0(e);if(!o)return r(void 0,424),ww;i=o.send;const s=zR(e);s&&(n=s.redundancy)}else{const o=U0(e);if(o){n=bw(o);const s=e.resources?e.resources[0]:"",a=L0(s);a&&(i=a.send)}}return!n||!i?(r(void 0,424),ww):n.query(t,i,r)().abort}const xw="iconify2",$l="iconify",$w=$l+"-count",Sw=$l+"-version",Ew=36e5,BR=168,HR=50;function B0(e,t){try{return e.getItem(t)}catch{}}function H0(e,t,r){try{return e.setItem(t,r),!0}catch{}}function Cw(e,t){try{e.removeItem(t)}catch{}}function q0(e,t){return H0(e,$w,t.toString())}function K0(e){return parseInt(B0(e,$w))||0}const Ph={local:!0,session:!0},kw={local:new Set,session:new Set};let Y0=!1;function qR(e){Y0=e}let Th=typeof window>"u"?{}:window;function Pw(e){const t=e+"Storage";try{if(Th&&Th[t]&&typeof Th[t].length=="number")return Th[t]}catch{}Ph[e]=!1}function Tw(e,t){const r=Pw(e);if(!r)return;const n=B0(r,Sw);if(n!==xw){if(n){const a=K0(r);for(let c=0;c<a;c++)Cw(r,$l+c.toString())}H0(r,Sw,xw),q0(r,0);return}const i=Math.floor(Date.now()/Ew)-BR,o=a=>{const c=$l+a.toString(),l=B0(r,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Cw(r,c)}};let s=K0(r);for(let a=s-1;a>=0;a--)o(a)||(a===s-1?(s--,q0(r,s)):kw[e].add(a))}function Ow(){if(!Y0){qR(!0);for(const e in Ph)Tw(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=us(n,i);if(!F0(o,r).length)return!1;const s=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,s):s,!0})}}function KR(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Ph)Tw(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function YR(e,t){Y0||Ow();function r(n){let i;if(!Ph[n]||!(i=Pw(n)))return;const o=kw[n];let s;if(o.size)o.delete(s=Array.from(o).shift());else if(s=K0(i),s>=HR||!q0(i,s+1))return;const a={cached:Math.floor(Date.now()/Ew),provider:e.provider,data:t};return H0(i,$l+s.toString(),JSON.stringify(a))}t.lastModified&&!KR(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function Nw(){}function XR(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,jR(e)}))}function JR(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,i=e.iconsToLoad;delete e.iconsToLoad;let o;if(!i||!(o=L0(r)))return;o.prepare(r,n,i).forEach(a=>{GR(r,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=F0(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(h=>{u.delete(h)}),YR(e,c)}catch(l){console.error(l)}XR(e)})})}))}const WR=(e,t)=>{const r=LR(e,!0,pw()),n=IR(r);if(!n.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(n.loaded,n.missing,n.pending,Nw)}),()=>{c=!1}}const i=Object.create(null),o=[];let s,a;return n.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===s)return;s=l,a=u,o.push(us(l,u));const h=i[l]||(i[l]=Object.create(null));h[u]||(h[u]=[])}),n.pending.forEach(c=>{const{provider:l,prefix:u,name:h}=c,f=us(l,u),d=f.pendingIcons||(f.pendingIcons=new Set);d.has(h)||(d.add(h),i[l][u].push(h))}),o.forEach(c=>{const{provider:l,prefix:u}=c;i[l][u].length&&JR(c,i[l][u])}),t?MR(t,n,o):Nw};function QR(e,t){const r={...e};for(const n in t){const i=t[n],o=typeof i;n in mw?(i===null||i&&(o==="string"||o==="number"))&&(r[n]=i):o===typeof r[n]&&(r[n]=n==="rotate"?i%4:i)}return r}const ZR=/[\s,]+/;function tI(e,t){t.split(ZR).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function eI(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(r===""){const i=parseInt(e);return isNaN(i)?0:n(i)}else if(r!==e){let i=0;switch(r){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-r.length));return isNaN(o)?0:(o=o/i,o%1===0?n(o):0)}}return t}function rI(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function nI(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function iI(e){return"data:image/svg+xml,"+nI(e)}function oI(e){return'url("'+iI(e)+'")'}const Aw={...gw,inline:!1},sI={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},aI={display:"inline-block"},X0={backgroundColor:"currentColor"},Dw={backgroundColor:"transparent"},Rw={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Iw={webkitMask:X0,mask:X0,background:Dw};for(const e in Iw){const t=Iw[e];for(const r in Rw)t[e+r]=Rw[r]}const Oh={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Oh[e+"-flip"]=t,Oh[e.slice(0,1)+"-flip"]=t,Oh[e+"Flip"]=t});function jw(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Fw=(e,t)=>{const r=QR(Aw,t),n={...sI},i=t.mode||"svg",o={},s=t.style,a=typeof s=="object"&&!(s instanceof Array)?s:{};for(let m in t){const v=t[m];if(v!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[m]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&tI(r,v);break;case"color":o.color=v;break;case"rotate":typeof v=="string"?r[m]=eI(v):typeof v=="number"&&(r[m]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete n["aria-hidden"];break;default:{const b=Oh[m];b?(v===!0||v==="true"||v===1)&&(r[b]=!0):Aw[m]===void 0&&(n[m]=v)}}}const c=$R(e,r),l=c.attributes;if(r.inline&&(o.verticalAlign="-0.125em"),i==="svg"){n.style={...o,...a},Object.assign(n,l);let m=0,v=t.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),n.innerHTML=kR(c.body,v?()=>v+"ID"+m++:"iconifyVue"),Wv("svg",n)}const{body:u,width:h,height:f}=e,d=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),p=rI(u,{...l,width:h+"",height:f+""});return n.style={...o,"--svg":oI(p),width:jw(l.width),height:jw(l.height),...aI,...d?X0:Dw,...a},Wv("span",n)};if(pw(!0),PR("",RR),typeof document<"u"&&typeof window<"u"){Ow();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!gR(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const i=t[r];if(typeof i!="object"||!i||i.resources===void 0)continue;TR(r,i)||console.error(n)}catch{console.error(n)}}}}const lI={...Ch,body:""},cI=Nf({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let r;if(typeof e!="string"||(r=$h(e,!1,!0))===null)return this.abortLoading(),null;const n=pR(r);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:WR([r],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const i=["iconify"];return r.prefix!==""&&i.push("iconify--"+r.prefix),r.provider!==""&&i.push("iconify--"+r.provider),{data:n,classes:i}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return Fw(lI,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Fw({...Ch,...t.data},r)}});function oe(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Wt(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Nh=typeof window=="object"&&typeof document=="object";typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const uI=e=>{let t=null;switch(e){case"bin":t=/^[0-1]+$/;break;case"oct":t=/^(0b)?[0-8]+$/i;break;case"hex":t=/^(0x)?[0-9a-fA-F]+$/i;break;case"int":t=/^[-+]?[0-9]+$/;break;case"number":t=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"email":t=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Za-z0-9._-]+$/gm;break;case"ip":t=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"base64-data":t=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"hex-color":t=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"chinese-name":t=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":t=new RegExp(String.raw`
|
|
44
|
+
[\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
|
|
45
|
+
|[\u{4E00}-\u{9FCC}]
|
|
46
|
+
|[\u{3400}-\u{4DB5}]
|
|
47
|
+
|[\u{20000}-\u{2A6D6}]
|
|
48
|
+
|[\u{2A700}-\u{2B734}]
|
|
49
|
+
|[\u{2B740}-\u{2B81D}]
|
|
50
|
+
|[\u{2B820}-\u{2CEAF}]
|
|
51
|
+
|[\u{2CEB0}-\u{2EBEF}]
|
|
52
|
+
`.replace(/\s+/g,""),"u");break;case"mime-image":t=/^image\//;break;case"mime-video":t=/^video\//;break;case"mime-audio":t=/^audio\//;break;case"mime-document-word":t=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":t=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":t=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":t=/^application\/json$/;break;case"mime-document-xml":t=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return t};function hI(e){const t={matchIndex:-1,fullMatch:null,groupMatchs:[]};if(e){t.matchIndex=typeof e.index=="number"?e.index:-1;for(let r=0,n=e.length;r<n;r++)r==0?t.fullMatch=e[r]:t.groupMatchs.push(e[r])}return t}const Mw=(e,t)=>{typeof e=="string"&&(e=uI(e)||new RegExp(e));const r=[],n=t.matchAll(e);for(const i of n)r.push(hI(i));return r};function dI(e){const t=typeof e;return t!=="object"?t:Object.prototype.toString.call(e).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function fI(e){return dI(e)==="object"}function Lw(e,t=new WeakMap){if(e==null)return e;if(e.constructor===Date)return new Date(e);if(e.constructor===RegExp)return new RegExp(e);if(typeof e!="object")return e;if(t.has(e))return t.get(e);const r=Object.getOwnPropertyDescriptors(e),n=Object.create(Object.getPrototypeOf(e),r);t.set(e,n);for(const i of Reflect.ownKeys(e))n[i]=fI(e[i])?Lw(e[i],t):e[i];return n}function Uw(e,t=12){return+e.toPrecision(t)}function Vw(e,t){return function(){return e.apply(t,arguments)}}const{toString:pI}=Object.prototype,{getPrototypeOf:J0}=Object,Ah=(e=>t=>{const r=pI.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),pi=e=>(e=e.toLowerCase(),t=>Ah(t)===e),Dh=e=>t=>typeof t===e,{isArray:ia}=Array,Sl=Dh("undefined");function mI(e){return e!==null&&!Sl(e)&&e.constructor!==null&&!Sl(e.constructor)&&kn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zw=pi("ArrayBuffer");function gI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zw(e.buffer),t}const yI=Dh("string"),kn=Dh("function"),Gw=Dh("number"),Rh=e=>e!==null&&typeof e=="object",vI=e=>e===!0||e===!1,Ih=e=>{if(Ah(e)!=="object")return!1;const t=J0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_I=pi("Date"),bI=pi("File"),wI=pi("Blob"),xI=pi("FileList"),$I=e=>Rh(e)&&kn(e.pipe),SI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||kn(e.append)&&((t=Ah(e))==="formdata"||t==="object"&&kn(e.toString)&&e.toString()==="[object FormData]"))},EI=pi("URLSearchParams"),CI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function El(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ia(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(n=0;n<s;n++)a=o[n],t.call(null,e[a],a,e)}}function Bw(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Hw=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),qw=e=>!Sl(e)&&e!==Hw;function W0(){const{caseless:e}=qw(this)&&this||{},t={},r=(n,i)=>{const o=e&&Bw(t,i)||i;Ih(t[o])&&Ih(n)?t[o]=W0(t[o],n):Ih(n)?t[o]=W0({},n):ia(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&El(arguments[n],r);return t}const kI=(e,t,r,{allOwnKeys:n}={})=>(El(t,(i,o)=>{r&&kn(i)?e[o]=Vw(i,r):e[o]=i},{allOwnKeys:n}),e),PI=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),TI=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},OI=(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&J0(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},NI=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},AI=e=>{if(!e)return null;if(ia(e))return e;let t=e.length;if(!Gw(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},DI=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&J0(Uint8Array)),RI=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},II=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},jI=pi("HTMLFormElement"),FI=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Kw=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),MI=pi("RegExp"),Yw=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};El(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},LI=e=>{Yw(e,(t,r)=>{if(kn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(kn(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},UI=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return ia(e)?n(e):n(String(e).split(t)),r},VI=()=>{},zI=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Q0="abcdefghijklmnopqrstuvwxyz",Xw="0123456789",Jw={DIGIT:Xw,ALPHA:Q0,ALPHA_DIGIT:Q0+Q0.toUpperCase()+Xw},GI=(e=16,t=Jw.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function BI(e){return!!(e&&kn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const HI=e=>{const t=new Array(10),r=(n,i)=>{if(Rh(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=ia(n)?[]:{};return El(n,(s,a)=>{const c=r(s,i+1);!Sl(c)&&(o[a]=c)}),t[i]=void 0,o}}return n};return r(e,0)},qI=pi("AsyncFunction"),KI=e=>e&&(Rh(e)||kn(e))&&kn(e.then)&&kn(e.catch),Pt={isArray:ia,isArrayBuffer:zw,isBuffer:mI,isFormData:SI,isArrayBufferView:gI,isString:yI,isNumber:Gw,isBoolean:vI,isObject:Rh,isPlainObject:Ih,isUndefined:Sl,isDate:_I,isFile:bI,isBlob:wI,isRegExp:MI,isFunction:kn,isStream:$I,isURLSearchParams:EI,isTypedArray:DI,isFileList:xI,forEach:El,merge:W0,extend:kI,trim:CI,stripBOM:PI,inherits:TI,toFlatObject:OI,kindOf:Ah,kindOfTest:pi,endsWith:NI,toArray:AI,forEachEntry:RI,matchAll:II,isHTMLForm:jI,hasOwnProperty:Kw,hasOwnProp:Kw,reduceDescriptors:Yw,freezeMethods:LI,toObjectSet:UI,toCamelCase:FI,noop:VI,toFiniteNumber:zI,findKey:Bw,global:Hw,isContextDefined:qw,ALPHABET:Jw,generateString:GI,isSpecCompliantForm:BI,toJSONObject:HI,isAsyncFn:qI,isThenable:KI};function Re(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}Pt.inherits(Re,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Pt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ww=Re.prototype,Qw={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Qw[e]={value:e}}),Object.defineProperties(Re,Qw),Object.defineProperty(Ww,"isAxiosError",{value:!0}),Re.from=(e,t,r,n,i,o)=>{const s=Object.create(Ww);return Pt.toFlatObject(e,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Re.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const YI=null;function Z0(e){return Pt.isPlainObject(e)||Pt.isArray(e)}function Zw(e){return Pt.endsWith(e,"[]")?e.slice(0,-2):e}function tx(e,t,r){return e?e.concat(t).map(function(n,i){return n=Zw(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function XI(e){return Pt.isArray(e)&&!e.some(Z0)}const JI=Pt.toFlatObject(Pt,{},null,function(e){return/^is[A-Z]/.test(e)});function jh(e,t,r){if(!Pt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Pt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!Pt.isUndefined(p[d])});const n=r.metaTokens,i=r.visitor||l,o=r.dots,s=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&Pt.isSpecCompliantForm(t);if(!Pt.isFunction(i))throw new TypeError("visitor must be a function");function c(d){if(d===null)return"";if(Pt.isDate(d))return d.toISOString();if(!a&&Pt.isBlob(d))throw new Re("Blob is not supported. Use a Buffer instead.");return Pt.isArrayBuffer(d)||Pt.isTypedArray(d)?a&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function l(d,p,m){let v=d;if(d&&!m&&typeof d=="object"){if(Pt.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if(Pt.isArray(d)&&XI(d)||(Pt.isFileList(d)||Pt.endsWith(p,"[]"))&&(v=Pt.toArray(d)))return p=Zw(p),v.forEach(function(b,_){!(Pt.isUndefined(b)||b===null)&&t.append(s===!0?tx([p],_,o):s===null?p:p+"[]",c(b))}),!1}return Z0(d)?!0:(t.append(tx(m,p,o),c(d)),!1)}const u=[],h=Object.assign(JI,{defaultVisitor:l,convertValue:c,isVisitable:Z0});function f(d,p){if(!Pt.isUndefined(d)){if(u.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(d),Pt.forEach(d,function(m,v){(!(Pt.isUndefined(m)||m===null)&&i.call(t,m,Pt.isString(v)?v.trim():v,p,h))===!0&&f(m,p?p.concat(v):[v])}),u.pop()}}if(!Pt.isObject(e))throw new TypeError("data must be an object");return f(e),t}function ex(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function tm(e,t){this._pairs=[],e&&jh(e,this,t)}const rx=tm.prototype;rx.append=function(e,t){this._pairs.push([e,t])},rx.toString=function(e){const t=e?function(r){return e.call(this,r,ex)}:ex;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function WI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nx(e,t,r){if(!t)return e;const n=r&&r.encode||WI,i=r&&r.serialize;let o;if(i?o=i(t,r):o=Pt.isURLSearchParams(t)?t.toString():new tm(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class QI{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Pt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ix=QI,ox={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ZI=typeof URLSearchParams<"u"?URLSearchParams:tm,tj=typeof FormData<"u"?FormData:null,ej=typeof Blob<"u"?Blob:null,rj=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),nj=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),mi={isBrowser:!0,classes:{URLSearchParams:ZI,FormData:tj,Blob:ej},isStandardBrowserEnv:rj,isStandardBrowserWebWorkerEnv:nj,protocols:["http","https","file","blob","url","data"]};function ij(e,t){return jh(e,new mi.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return mi.isNode&&Pt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function oj(e){return Pt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sj(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}function sx(e){function t(r,n,i,o){let s=r[o++];const a=Number.isFinite(+s),c=o>=r.length;return s=!s&&Pt.isArray(i)?i.length:s,c?(Pt.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!Pt.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&Pt.isArray(i[s])&&(i[s]=sj(i[s])),!a)}if(Pt.isFormData(e)&&Pt.isFunction(e.entries)){const r={};return Pt.forEachEntry(e,(n,i)=>{t(oj(n),i,r,0)}),r}return null}function aj(e,t,r){if(Pt.isString(e))try{return(t||JSON.parse)(e),Pt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const em={transitional:ox,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=Pt.isObject(e);if(i&&Pt.isHTMLForm(e)&&(e=new FormData(e)),Pt.isFormData(e))return n&&n?JSON.stringify(sx(e)):e;if(Pt.isArrayBuffer(e)||Pt.isBuffer(e)||Pt.isStream(e)||Pt.isFile(e)||Pt.isBlob(e))return e;if(Pt.isArrayBufferView(e))return e.buffer;if(Pt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ij(e,this.formSerializer).toString();if((o=Pt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return jh(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),aj(e)):e}],transformResponse:[function(e){const t=this.transitional||em.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(e&&Pt.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?Re.from(o,Re.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mi.classes.FormData,Blob:mi.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Pt.forEach(["delete","get","head","post","put","patch"],e=>{em.headers[e]={}});const rm=em,lj=Pt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),cj=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
53
|
+
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&lj[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},ax=Symbol("internals");function Cl(e){return e&&String(e).trim().toLowerCase()}function Fh(e){return e===!1||e==null?e:Pt.isArray(e)?e.map(Fh):String(e)}function uj(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const hj=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nm(e,t,r,n,i){if(Pt.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!Pt.isString(t)){if(Pt.isString(n))return t.indexOf(n)!==-1;if(Pt.isRegExp(n))return n.test(t)}}function dj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function fj(e,t){const r=Pt.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}class Mh{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,c,l){const u=Cl(c);if(!u)throw new Error("header name must be a non-empty string");const h=Pt.findKey(i,u);(!h||i[h]===void 0||l===!0||l===void 0&&i[h]!==!1)&&(i[h||c]=Fh(a))}const s=(a,c)=>Pt.forEach(a,(l,u)=>o(l,u,c));return Pt.isPlainObject(t)||t instanceof this.constructor?s(t,r):Pt.isString(t)&&(t=t.trim())&&!hj(t)?s(cj(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=Cl(t),t){const n=Pt.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return uj(i);if(Pt.isFunction(r))return r.call(this,i,n);if(Pt.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Cl(t),t){const n=Pt.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||nm(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=Cl(s),s){const a=Pt.findKey(n,s);a&&(!r||nm(n,n[a],a,r))&&(delete n[a],i=!0)}}return Pt.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||nm(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return Pt.forEach(this,(i,o)=>{const s=Pt.findKey(n,o);if(s){r[s]=Fh(i),delete r[o];return}const a=t?dj(o):String(o).trim();a!==o&&delete r[o],r[a]=Fh(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Pt.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&Pt.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
54
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[ax]=this[ax]={accessors:{}}).accessors,n=this.prototype;function i(o){const s=Cl(o);r[s]||(fj(n,o),r[s]=!0)}return Pt.isArray(t)?t.forEach(i):i(t),this}}Mh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Pt.reduceDescriptors(Mh.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Pt.freezeMethods(Mh);const Gi=Mh;function im(e,t){const r=this||rm,n=t||r,i=Gi.from(n.headers);let o=n.data;return Pt.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function lx(e){return!!(e&&e.__CANCEL__)}function kl(e,t,r){Re.call(this,e??"canceled",Re.ERR_CANCELED,t,r),this.name="CanceledError"}Pt.inherits(kl,Re,{__CANCEL__:!0});function pj(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Re("Request failed with status code "+r.status,[Re.ERR_BAD_REQUEST,Re.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const mj=mi.isStandardBrowserEnv?function(){return{write:function(e,t,r,n,i,o){const s=[];s.push(e+"="+encodeURIComponent(t)),Pt.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),Pt.isString(n)&&s.push("path="+n),Pt.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function gj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yj(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function cx(e,t){return e&&!gj(t)?yj(e,t):t}const vj=mi.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(i){let o=i;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(i){const o=Pt.isString(i)?n(i):i;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}();function _j(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function bj(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),l=n[o];s||(s=c),r[i]=a,n[i]=c;let u=o,h=0;for(;u!==i;)h+=r[u++],u=u%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const f=l&&c-l;return f?Math.round(h*1e3/f):void 0}}function ux(e,t){let r=0;const n=bj(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-r,c=n(a),l=o<=s;r=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&l?(s-o)/c:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const wj=typeof XMLHttpRequest<"u",xj=wj&&function(e){return new Promise(function(t,r){let n=e.data;const i=Gi.from(e.headers).normalize(),o=e.responseType;let s;function a(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;Pt.isFormData(n)&&(mi.isStandardBrowserEnv||mi.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?Pt.isString(c=i.getContentType())&&i.setContentType(c.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(d+":"+p))}const u=cx(e.baseURL,e.url);l.open(e.method.toUpperCase(),nx(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function h(){if(!l)return;const d=Gi.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:d,config:e,request:l};pj(function(m){t(m),a()},function(m){r(m),a()},p),l=null}if("onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(h)},l.onabort=function(){l&&(r(new Re("Request aborted",Re.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new Re("Network Error",Re.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||ox;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),r(new Re(d,p.clarifyTimeoutError?Re.ETIMEDOUT:Re.ECONNABORTED,e,l)),l=null},mi.isStandardBrowserEnv){const d=(e.withCredentials||vj(u))&&e.xsrfCookieName&&mj.read(e.xsrfCookieName);d&&i.set(e.xsrfHeaderName,d)}n===void 0&&i.setContentType(null),"setRequestHeader"in l&&Pt.forEach(i.toJSON(),function(d,p){l.setRequestHeader(p,d)}),Pt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",ux(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",ux(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=d=>{l&&(r(!d||d.type?new kl(null,e,l):d),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const f=_j(u);if(f&&mi.protocols.indexOf(f)===-1){r(new Re("Unsupported protocol "+f+":",Re.ERR_BAD_REQUEST,e));return}l.send(n||null)})},om={http:YI,xhr:xj};Pt.forEach(om,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hx=e=>`- ${e}`,$j=e=>Pt.isFunction(e)||e===null||e===!1,dx={getAdapter:e=>{e=Pt.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){r=e[o];let s;if(n=r,!$j(r)&&(n=om[(s=String(r)).toLowerCase()],n===void 0))throw new Re(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
|
|
55
|
+
`+o.map(hx).join(`
|
|
56
|
+
`):" "+hx(o[0]):"as no adapter specified";throw new Re("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:om};function sm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kl(null,e)}function fx(e){return sm(e),e.headers=Gi.from(e.headers),e.data=im.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),dx.getAdapter(e.adapter||rm.adapter)(e).then(function(t){return sm(e),t.data=im.call(e,e.transformResponse,t),t.headers=Gi.from(t.headers),t},function(t){return lx(t)||(sm(e),t&&t.response&&(t.response.data=im.call(e,e.transformResponse,t.response),t.response.headers=Gi.from(t.response.headers))),Promise.reject(t)})}const px=e=>e instanceof Gi?e.toJSON():e;function oa(e,t){t=t||{};const r={};function n(l,u,h){return Pt.isPlainObject(l)&&Pt.isPlainObject(u)?Pt.merge.call({caseless:h},l,u):Pt.isPlainObject(u)?Pt.merge({},u):Pt.isArray(u)?u.slice():u}function i(l,u,h){if(Pt.isUndefined(u)){if(!Pt.isUndefined(l))return n(void 0,l,h)}else return n(l,u,h)}function o(l,u){if(!Pt.isUndefined(u))return n(void 0,u)}function s(l,u){if(Pt.isUndefined(u)){if(!Pt.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function a(l,u,h){if(h in t)return n(l,u);if(h in e)return n(void 0,l)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,u)=>i(px(l),px(u),!0)};return Pt.forEach(Object.keys(Object.assign({},e,t)),function(l){const u=c[l]||i,h=u(e[l],t[l],l);Pt.isUndefined(h)&&u!==a||(r[l]=h)}),r}const mx="1.5.1",am={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{am[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const gx={};am.transitional=function(e,t,r){function n(i,o){return"[Axios v"+mx+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new Re(n(o," has been removed"+(t?" in "+t:"")),Re.ERR_DEPRECATED);return t&&!gx[o]&&(gx[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};function Sj(e,t,r){if(typeof e!="object")throw new Re("options must be an object",Re.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new Re("option "+o+" must be "+c,Re.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Re("Unknown option "+o,Re.ERR_BAD_OPTION)}}const lm={assertOptions:Sj,validators:am},So=lm.validators;class Lh{constructor(t){this.defaults=t,this.interceptors={request:new ix,response:new ix}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=oa(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&lm.assertOptions(n,{silentJSONParsing:So.transitional(So.boolean),forcedJSONParsing:So.transitional(So.boolean),clarifyTimeoutError:So.transitional(So.boolean)},!1),i!=null&&(Pt.isFunction(i)?r.paramsSerializer={serialize:i}:lm.assertOptions(i,{encode:So.function,serialize:So.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&Pt.merge(o.common,o[r.method]);o&&Pt.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),r.headers=Gi.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,h=0,f;if(!c){const p=[fx.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,l),f=p.length,u=Promise.resolve(r);h<f;)u=u.then(p[h++],p[h++]);return u}f=a.length;let d=r;for(h=0;h<f;){const p=a[h++],m=a[h++];try{d=p(d)}catch(v){m.call(this,v);break}}try{u=fx.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,f=l.length;h<f;)u=u.then(l[h++],l[h++]);return u}getUri(t){t=oa(this.defaults,t);const r=cx(t.baseURL,t.url);return nx(r,t.params,t.paramsSerializer)}}Pt.forEach(["delete","get","head","options"],function(e){Lh.prototype[e]=function(t,r){return this.request(oa(r||{},{method:e,url:t,data:(r||{}).data}))}}),Pt.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,o){return this.request(oa(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Lh.prototype[e]=t(),Lh.prototype[e+"Form"]=t(!0)});const Uh=Lh;class cm{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(i,o,s){n.reason||(n.reason=new kl(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new cm(function(r){t=r}),cancel:t}}}const Ej=cm;function Cj(e){return function(t){return e.apply(null,t)}}function kj(e){return Pt.isObject(e)&&e.isAxiosError===!0}const um={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(um).forEach(([e,t])=>{um[t]=e});const Pj=um;function yx(e){const t=new Uh(e),r=Vw(Uh.prototype.request,t);return Pt.extend(r,Uh.prototype,t,{allOwnKeys:!0}),Pt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return yx(oa(e,n))},r}const Er=yx(rm);Er.Axios=Uh,Er.CanceledError=kl,Er.CancelToken=Ej,Er.isCancel=lx,Er.VERSION=mx,Er.toFormData=jh,Er.AxiosError=Re,Er.Cancel=Er.CanceledError,Er.all=function(e){return Promise.all(e)},Er.spread=Cj,Er.isAxiosError=kj,Er.mergeConfig=oa,Er.AxiosHeaders=Gi,Er.formToJSON=e=>sx(Pt.isHTMLForm(e)?new FormData(e):e),Er.getAdapter=dx.getAdapter,Er.HttpStatusCode=Pj,Er.default=Er;var hm=function(e,t){return hm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},hm(e,t)};function Eo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hm(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function dm(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function Tl(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Bi(e){return typeof e=="function"}function fm(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var pm=fm(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
57
|
+
`+t.map(function(r,n){return n+1+") "+r.toString()}).join(`
|
|
58
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function Vh(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ol=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=dm(s),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(m){t={error:m}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(Bi(u))try{u()}catch(m){o=m instanceof pm?m.errors:[m]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=dm(h),d=f.next();!d.done;d=f.next()){var p=d.value;try{bx(p)}catch(m){o=o??[],m instanceof pm?o=Tl(Tl([],Pl(o)),Pl(m.errors)):o.push(m)}}}catch(m){n={error:m}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}if(o)throw new pm(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)bx(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Vh(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Vh(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),vx=Ol.EMPTY;function _x(e){return e instanceof Ol||e&&"closed"in e&&Bi(e.remove)&&Bi(e.add)&&Bi(e.unsubscribe)}function bx(e){Bi(e)?e():e.unsubscribe()}var wx={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Tj={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Tl([e,t],Pl(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Oj(e){Tj.setTimeout(function(){throw e})}function xx(){}function zh(e){e()}var mm=function(e){Eo(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,_x(r)&&r.add(n)):n.destination=Rj,n}return t.create=function(r,n,i){return new ym(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Ol),Nj=Function.prototype.bind;function gm(e,t){return Nj.call(e,t)}var Aj=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Gh(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Gh(n)}else Gh(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Gh(r)}},e}(),ym=function(e){Eo(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(Bi(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&wx.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&gm(r.next,a),error:r.error&&gm(r.error,a),complete:r.complete&&gm(r.complete,a)}):s=r}return o.destination=new Aj(s),o}return t}(mm);function Gh(e){Oj(e)}function Dj(e){throw e}var Rj={closed:!0,next:xx,error:Dj,complete:xx},Ij=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function jj(e){return e}function Fj(e){return e.length===0?jj:e.length===1?e[0]:function(t){return e.reduce(function(r,n){return n(r)},t)}}var $x=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=Lj(t)?t:new ym(t,r,n);return zh(function(){var s=i,a=s.operator,c=s.source;o.add(a?a.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=Sx(r),new r(function(i,o){var s=new ym({next:function(a){try{t(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Ij]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Fj(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Sx(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function Sx(e){var t;return(t=e??wx.Promise)!==null&&t!==void 0?t:Promise}function Mj(e){return e&&Bi(e.next)&&Bi(e.error)&&Bi(e.complete)}function Lj(e){return e&&e instanceof mm||Mj(e)&&_x(e)}(function(e){Eo(t,e);function t(r,n,i,o,s,a){var c=e.call(this,r)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=n?function(l){try{n(l)}catch(u){r.error(u)}}:e.prototype._next,c._error=o?function(l){try{o(l)}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=i?function(){try{i()}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(mm);var Uj=fm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Vj=function(e){Eo(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Ex(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Uj},t.prototype.next=function(r){var n=this;zh(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=dm(n.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(r)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;zh(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;zh(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?vx:(this.currentObservers=null,a.push(r),new Ol(function(){n.currentObservers=null,Vh(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new $x;return r.source=this,r},t.create=function(r,n){return new Ex(r,n)},t}($x),Ex=function(e){Eo(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:vx},t}(Vj),zj={now:function(){return Date.now()},delegate:void 0},Gj=function(e){Eo(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(Ol),vm={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=vm.delegate;return i?.setInterval?i.setInterval.apply(i,Tl([e,t],Pl(r))):setInterval.apply(void 0,Tl([e,t],Pl(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},Bj=function(e){Eo(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),vm.setInterval(r.flush.bind(r,this),i)},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&vm.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Vh(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Gj),Cx=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=zj.now,e}(),Hj=function(e){Eo(t,e);function t(r,n){n===void 0&&(n=Cx.now);var i=e.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},t}(Cx);new Hj(Bj);function qj(e){switch(e.responseType){case"json":{if("response"in e)return e.response;var t=e;return JSON.parse(t.responseText)}case"document":return e.responseXML;case"text":default:{if("response"in e)return e.response;var t=e;return t.responseText}}}var kx=fm(function(e){return function(t,r,n){this.message=t,this.name="AjaxError",this.xhr=r,this.request=n,this.status=r.status,this.responseType=r.responseType;var i;try{i=qj(r)}catch{i=r.responseText}this.response=i}});(function(){function e(t,r){return kx.call(this,"ajax timeout",t,r),this.name="AjaxTimeoutError",this}return e.prototype=Object.create(kx.prototype),e})();var Kj=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var _m={exports:{}},sa=typeof Reflect=="object"?Reflect:null,Px=sa&&typeof sa.apply=="function"?sa.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},Bh;sa&&typeof sa.ownKeys=="function"?Bh=sa.ownKeys:Object.getOwnPropertySymbols?Bh=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Bh=function(e){return Object.getOwnPropertyNames(e)};function Yj(e){console&&console.warn&&console.warn(e)}var Tx=Number.isNaN||function(e){return e!==e};function qe(){qe.init.call(this)}_m.exports=qe,_m.exports.once=Qj,qe.EventEmitter=qe,qe.prototype._events=void 0,qe.prototype._eventsCount=0,qe.prototype._maxListeners=void 0;var Ox=10;function Hh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(qe,"defaultMaxListeners",{enumerable:!0,get:function(){return Ox},set:function(e){if(typeof e!="number"||e<0||Tx(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Ox=e}}),qe.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},qe.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Tx(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Nx(e){return e._maxListeners===void 0?qe.defaultMaxListeners:e._maxListeners}qe.prototype.getMaxListeners=function(){return Nx(this)},qe.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n=e==="error",i=this._events;if(i!==void 0)n=n&&i.error===void 0;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var a=i[e];if(a===void 0)return!1;if(typeof a=="function")Px(a,this,t);else for(var c=a.length,l=jx(a,c),r=0;r<c;++r)Px(l[r],this,t);return!0};function Ax(e,t,r,n){var i,o,s;if(Hh(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),s===void 0)s=o[t]=r,++e._eventsCount;else if(typeof s=="function"?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=Nx(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,Yj(a)}return e}qe.prototype.addListener=function(e,t){return Ax(this,e,t,!1)},qe.prototype.on=qe.prototype.addListener,qe.prototype.prependListener=function(e,t){return Ax(this,e,t,!0)};function Xj(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Dx(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Xj.bind(n);return i.listener=r,n.wrapFn=i,i}qe.prototype.once=function(e,t){return Hh(t),this.on(e,Dx(this,e,t)),this},qe.prototype.prependOnceListener=function(e,t){return Hh(t),this.prependListener(e,Dx(this,e,t)),this},qe.prototype.removeListener=function(e,t){var r,n,i,o,s;if(Hh(t),n=this._events,n===void 0)return this;if(r=n[e],r===void 0)return this;if(r===t||r.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if(typeof r!="function"){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;i===0?r.shift():Jj(r,i),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,s||t)}return this},qe.prototype.off=qe.prototype.removeListener,qe.prototype.removeAllListeners=function(e){var t,r,n;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var i=Object.keys(r),o;for(n=0;n<i.length;++n)o=i[n],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=r[e],typeof t=="function")this.removeListener(e,t);else if(t!==void 0)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this};function Rx(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Wj(i):jx(i,i.length)}qe.prototype.listeners=function(e){return Rx(this,e,!0)},qe.prototype.rawListeners=function(e){return Rx(this,e,!1)},qe.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Ix.call(e,t)},qe.prototype.listenerCount=Ix;function Ix(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}qe.prototype.eventNames=function(){return this._eventsCount>0?Bh(this._events):[]};function jx(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function Jj(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Wj(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function Qj(e,t){return new Promise(function(r,n){function i(s){e.removeListener(t,o),n(s)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}Fx(e,t,o,{once:!0}),t!=="error"&&Zj(e,i,{once:!0})})}function Zj(e,t,r){typeof e.on=="function"&&Fx(e,"error",t,r)}function Fx(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var tF=_m.exports;class ett extends tF.EventEmitter{constructor(){super()}on(t,r){return super.on(t,r)}addListener(t,r){return this.on(t,r)}prependListener(t,r){return super.prependListener(t,r)}once(t,r){return super.once(t,r)}prependOnceListener(t,r){return super.prependOnceListener(t,r)}removeListener(t,r){return super.removeListener(t,r)}off(t,r){return super.off(t,r)}removeAllListeners(t){return super.removeAllListeners(t)}emit(t,...r){return super.emit(t,...r)}listeners(t){return super.listeners(t)}rawListeners(t){return super.rawListeners(t)}listenerCount(t){return super.listenerCount(t)}}var Mx=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function eF(e,t={}){var r=1,n=1;function i(at){var Y=at.match(/\n/g);Y&&(r+=Y.length);var T=at.lastIndexOf(`
|
|
59
|
+
`);n=~T?at.length-T:n+at.length}function o(){var at={line:r,column:n};return function(Y){return Y.position=new s(at),p(),Y}}function s(at){this.start=at,this.end={line:r,column:n},this.source=t.source}s.prototype.content=e;var a=[];function c(at){var Y=new Error(t.source+":"+r+":"+n+": "+at);if(Y.reason=at,Y.filename=t.source,Y.line=r,Y.column=n,Y.source=e,t.silent)a.push(Y);else throw Y}function l(){var at=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:at,parsingErrors:a}}}function u(){return d(/^{\s*/)}function h(){return d(/^}/)}function f(){var at,Y=[];for(p(),m(Y);e.length&&e.charAt(0)!="}"&&(at=_t()||vt());)at!==!1&&(Y.push(at),m(Y));return Y}function d(at){var Y=at.exec(e);if(Y){var T=Y[0];return i(T),e=e.slice(T.length),Y}}function p(){d(/^\s*/)}function m(at){var Y;for(at=at||[];Y=v();)Y!==!1&&at.push(Y);return at}function v(){var at=o();if(!(e.charAt(0)!="/"||e.charAt(1)!="*")){for(var Y=2;e.charAt(Y)!=""&&(e.charAt(Y)!="*"||e.charAt(Y+1)!="/");)++Y;if(Y+=2,e.charAt(Y-1)==="")return c("End of comment missing");var T=e.slice(2,Y-2);return n+=2,i(T),e=e.slice(Y),n+=2,at({type:"comment",comment:T})}}function b(){var at=d(/^([^{]+)/);if(at)return Hi(at[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(Y){return Y.replace(/,/g,"")}).split(/\s*(?![^(]*\)),\s*/).map(function(Y){return Y.replace(/\u200C/g,",")})}function _(){var at=o(),Y=d(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(Y){if(Y=Hi(Y[0]),!d(/^:\s*/))return c("property missing ':'");var T=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),C=at({type:"declaration",property:Y.replace(Mx,""),value:T?Hi(T[0]).replace(Mx,""):""});return d(/^[;\s]*/),C}}function g(){var at=[];if(!u())return c("missing '{'");m(at);for(var Y;Y=_();)Y!==!1&&(at.push(Y),m(at));return h()?at:c("missing '}'")}function S(){for(var at,Y=[],T=o();at=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)Y.push(at[1]),d(/^,\s*/);if(Y.length)return T({type:"keyframe",values:Y,declarations:g()})}function A(){var at=o(),Y=d(/^@([-\w]+)?keyframes\s*/);if(Y){var T=Y[1];if(Y=d(/^([-\w]+)\s*/),!Y)return c("@keyframes missing name");var C=Y[1];if(!u())return c("@keyframes missing '{'");for(var $,y=m();$=S();)y.push($),y=y.concat(m());return h()?at({type:"keyframes",name:C,vendor:T,keyframes:y}):c("@keyframes missing '}'")}}function E(){var at=o(),Y=d(/^@supports *([^{]+)/);if(Y){var T=Hi(Y[1]);if(!u())return c("@supports missing '{'");var C=m().concat(f());return h()?at({type:"supports",supports:T,rules:C}):c("@supports missing '}'")}}function N(){var at=o(),Y=d(/^@host\s*/);if(Y){if(!u())return c("@host missing '{'");var T=m().concat(f());return h()?at({type:"host",rules:T}):c("@host missing '}'")}}function D(){var at=o(),Y=d(/^@media *([^{]+)/);if(Y){var T=Hi(Y[1]);if(!u())return c("@media missing '{'");var C=m().concat(f());return h()?at({type:"media",media:T,rules:C}):c("@media missing '}'")}}function U(){var at=o(),Y=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(Y)return at({type:"custom-media",name:Hi(Y[1]),media:Hi(Y[2])})}function G(){var at=o(),Y=d(/^@page */);if(Y){var T=b()||[];if(!u())return c("@page missing '{'");for(var C=m(),$;$=_();)C.push($),C=C.concat(m());return h()?at({type:"page",selectors:T,declarations:C}):c("@page missing '}'")}}function K(){var at=o(),Y=d(/^@([-\w]+)?document *([^{]+)/);if(Y){var T=Hi(Y[1]),C=Hi(Y[2]);if(!u())return c("@document missing '{'");var $=m().concat(f());return h()?at({type:"document",document:C,vendor:T,rules:$}):c("@document missing '}'")}}function W(){var at=o(),Y=d(/^@font-face\s*/);if(Y){if(!u())return c("@font-face missing '{'");for(var T=m(),C;C=_();)T.push(C),T=T.concat(m());return h()?at({type:"font-face",declarations:T}):c("@font-face missing '}'")}}var ot=$t("import"),nt=$t("charset"),ft=$t("namespace");function $t(at){var Y=new RegExp("^@"+at+"\\s*([^;]+);");return function(){var T=o(),C=d(Y);if(C){var $={type:at};return $[at]=C[1].trim(),T($)}}}function _t(){if(e[0]=="@")return A()||D()||U()||E()||ot()||nt()||ft()||K()||G()||N()||W()}function vt(){var at=o(),Y=b();return Y?(m(),at({type:"rule",selectors:Y,declarations:g()})):c("selector missing")}return bm(l())}function Hi(e){return e?e.replace(/^\s+|\s+$/g,""):""}function bm(e,t){var r=e&&typeof e.type=="string",n=r?e:t;for(var i in e){var o=e[i];Array.isArray(o)?o.forEach(function(s){bm(s,n)}):o&&typeof o=="object"&&bm(o,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var wm={exports:{}},xm={},qi={},hs={},$m={},Sm={},Em={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(_){if(super(),!e.IDENTIFIER.test(_))throw new Error("CodeGen: name must be a valid identifier");this.str=_}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(_){super(),this._items=typeof _=="string"?[_]:_}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const _=this._items[0];return _===""||_==='""'}get str(){var _;return(_=this._str)!==null&&_!==void 0?_:this._str=this._items.reduce((g,S)=>`${g}${S}`,"")}get names(){var _;return(_=this._names)!==null&&_!==void 0?_:this._names=this._items.reduce((g,S)=>(S instanceof r&&(g[S.str]=(g[S.str]||0)+1),g),{})}}e._Code=n,e.nil=new n("");function i(b,..._){const g=[b[0]];let S=0;for(;S<_.length;)a(g,_[S]),g.push(b[++S]);return new n(g)}e._=i;const o=new n("+");function s(b,..._){const g=[d(b[0])];let S=0;for(;S<_.length;)g.push(o),a(g,_[S]),g.push(o,d(b[++S]));return c(g),new n(g)}e.str=s;function a(b,_){_ instanceof n?b.push(..._._items):_ instanceof r?b.push(_):b.push(h(_))}e.addCodeArg=a;function c(b){let _=1;for(;_<b.length-1;){if(b[_]===o){const g=l(b[_-1],b[_+1]);if(g!==void 0){b.splice(_-1,3,g);continue}b[_++]="+"}_++}}function l(b,_){if(_==='""')return b;if(b==='""')return _;if(typeof b=="string")return _ instanceof r||b[b.length-1]!=='"'?void 0:typeof _!="string"?`${b.slice(0,-1)}${_}"`:_[0]==='"'?b.slice(0,-1)+_.slice(1):void 0;if(typeof _=="string"&&_[0]==='"'&&!(b instanceof r))return`"${b}${_.slice(1)}`}function u(b,_){return _.emptyStr()?b:b.emptyStr()?_:s`${b}${_}`}e.strConcat=u;function h(b){return typeof b=="number"||typeof b=="boolean"||b===null?b:d(Array.isArray(b)?b.join(","):b)}function f(b){return new n(d(b))}e.stringify=f;function d(b){return JSON.stringify(b).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function p(b){return typeof b=="string"&&e.IDENTIFIER.test(b)?new n(`.${b}`):i`[${b}]`}e.getProperty=p;function m(b){if(typeof b=="string"&&e.IDENTIFIER.test(b))return new n(`${b}`);throw new Error(`CodeGen: invalid export name: ${b}, use explicit $id name mapping`)}e.getEsmExportName=m;function v(b){return new n(b.toString())}e.regexpCode=v})(Em);const rF=sn(Em),nF=Wt({__proto__:null,default:rF},[Em]),Nl=Qt(nF);var Cm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Nl;class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,h;if(!((h=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||h===void 0)&&h.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class o extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:h}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${h}]`}}e.ValueScopeName=o;const s=(0,t._)`\n`;class a extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?s:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,u){var h;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(l),{prefix:d}=f,p=(h=u.key)!==null&&h!==void 0?h:u.ref;let m=this._values[d];if(m){const _=m.get(p);if(_)return _}else m=this._values[d]=new Map;m.set(p,f);const v=this._scope[d]||(this._scope[d]=[]),b=v.length;return v[b]=u.ref,f.setValue(u,{property:d,itemIndex:b}),f}getValue(l,u){const h=this._values[l];if(h)return h.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,t._)`${l}${h.scopePath}`})}scopeCode(l=this._values,u,h){return this._reduceValues(l,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,h)}_reduceValues(l,u,h={},f){let d=t.nil;for(const p in l){const m=l[p];if(!m)continue;const v=h[p]=h[p]||new Map;m.forEach(b=>{if(v.has(b))return;v.set(b,n.Started);let _=u(b);if(_){const g=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${g} ${b} = ${_};${this.opts._n}`}else if(_=f?.(b))d=(0,t._)`${d}${_}${this.opts._n}`;else throw new r(b);v.set(b,n.Completed)})}return d}}e.ValueScope=a})(Cm);const iF=sn(Cm),oF=Wt({__proto__:null,default:iF},[Cm]),Lx=Qt(oF);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Nl,r=Lx;var n=Nl;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=Lx;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class o{optimizeNodes(){return this}optimizeNames(y,k){return this}}class s extends o{constructor(y,k,M){super(),this.varKind=y,this.name=k,this.rhs=M}render({es5:y,_n:k}){const M=y?r.varKinds.var:this.varKind,I=this.rhs===void 0?"":` = ${this.rhs}`;return`${M} ${this.name}${I};`+k}optimizeNames(y,k){if(y[this.name.str])return this.rhs&&(this.rhs=nt(this.rhs,y,k)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(y,k,M){super(),this.lhs=y,this.rhs=k,this.sideEffects=M}render({_n:y}){return`${this.lhs} = ${this.rhs};`+y}optimizeNames(y,k){if(!(this.lhs instanceof t.Name&&!y[this.lhs.str]&&!this.sideEffects))return this.rhs=nt(this.rhs,y,k),this}get names(){const y=this.lhs instanceof t.Name?{}:{...this.lhs.names};return ot(y,this.rhs)}}class c extends a{constructor(y,k,M,I){super(y,M,I),this.op=k}render({_n:y}){return`${this.lhs} ${this.op}= ${this.rhs};`+y}}class l extends o{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`${this.label}:`+y}}class u extends o{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`break${this.label?` ${this.label}`:""};`+y}}class h extends o{constructor(y){super(),this.error=y}render({_n:y}){return`throw ${this.error};`+y}get names(){return this.error.names}}class f extends o{constructor(y){super(),this.code=y}render({_n:y}){return`${this.code};`+y}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(y,k){return this.code=nt(this.code,y,k),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends o{constructor(y=[]){super(),this.nodes=y}render(y){return this.nodes.reduce((k,M)=>k+M.render(y),"")}optimizeNodes(){const{nodes:y}=this;let k=y.length;for(;k--;){const M=y[k].optimizeNodes();Array.isArray(M)?y.splice(k,1,...M):M?y[k]=M:y.splice(k,1)}return y.length>0?this:void 0}optimizeNames(y,k){const{nodes:M}=this;let I=M.length;for(;I--;){const z=M[I];z.optimizeNames(y,k)||(ft(y,z.names),M.splice(I,1))}return M.length>0?this:void 0}get names(){return this.nodes.reduce((y,k)=>W(y,k.names),{})}}class p extends d{render(y){return"{"+y._n+super.render(y)+"}"+y._n}}class m extends d{}class v extends p{}v.kind="else";class b extends p{constructor(y,k){super(k),this.condition=y}render(y){let k=`if(${this.condition})`+super.render(y);return this.else&&(k+="else "+this.else.render(y)),k}optimizeNodes(){super.optimizeNodes();const y=this.condition;if(y===!0)return this.nodes;let k=this.else;if(k){const M=k.optimizeNodes();k=this.else=Array.isArray(M)?new v(M):M}if(k)return y===!1?k instanceof b?k:k.nodes:this.nodes.length?this:new b($t(y),k instanceof b?[k]:k.nodes);if(!(y===!1||!this.nodes.length))return this}optimizeNames(y,k){var M;if(this.else=(M=this.else)===null||M===void 0?void 0:M.optimizeNames(y,k),!!(super.optimizeNames(y,k)||this.else))return this.condition=nt(this.condition,y,k),this}get names(){const y=super.names;return ot(y,this.condition),this.else&&W(y,this.else.names),y}}b.kind="if";class _ extends p{}_.kind="for";class g extends _{constructor(y){super(),this.iteration=y}render(y){return`for(${this.iteration})`+super.render(y)}optimizeNames(y,k){if(super.optimizeNames(y,k))return this.iteration=nt(this.iteration,y,k),this}get names(){return W(super.names,this.iteration.names)}}class S extends _{constructor(y,k,M,I){super(),this.varKind=y,this.name=k,this.from=M,this.to=I}render(y){const k=y.es5?r.varKinds.var:this.varKind,{name:M,from:I,to:z}=this;return`for(${k} ${M}=${I}; ${M}<${z}; ${M}++)`+super.render(y)}get names(){const y=ot(super.names,this.from);return ot(y,this.to)}}class A extends _{constructor(y,k,M,I){super(),this.loop=y,this.varKind=k,this.name=M,this.iterable=I}render(y){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(y)}optimizeNames(y,k){if(super.optimizeNames(y,k))return this.iterable=nt(this.iterable,y,k),this}get names(){return W(super.names,this.iterable.names)}}class E extends p{constructor(y,k,M){super(),this.name=y,this.args=k,this.async=M}render(y){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(y)}}E.kind="func";class N extends d{render(y){return"return "+super.render(y)}}N.kind="return";class D extends p{render(y){let k="try"+super.render(y);return this.catch&&(k+=this.catch.render(y)),this.finally&&(k+=this.finally.render(y)),k}optimizeNodes(){var y,k;return super.optimizeNodes(),(y=this.catch)===null||y===void 0||y.optimizeNodes(),(k=this.finally)===null||k===void 0||k.optimizeNodes(),this}optimizeNames(y,k){var M,I;return super.optimizeNames(y,k),(M=this.catch)===null||M===void 0||M.optimizeNames(y,k),(I=this.finally)===null||I===void 0||I.optimizeNames(y,k),this}get names(){const y=super.names;return this.catch&&W(y,this.catch.names),this.finally&&W(y,this.finally.names),y}}class U extends p{constructor(y){super(),this.error=y}render(y){return`catch(${this.error})`+super.render(y)}}U.kind="catch";class G extends p{render(y){return"finally"+super.render(y)}}G.kind="finally";class K{constructor(y,k={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...k,_n:k.lines?`
|
|
60
|
+
`:""},this._extScope=y,this._scope=new r.Scope({parent:y}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(y){return this._scope.name(y)}scopeName(y){return this._extScope.name(y)}scopeValue(y,k){const M=this._extScope.value(y,k);return(this._values[M.prefix]||(this._values[M.prefix]=new Set)).add(M),M}getScopeValue(y,k){return this._extScope.getValue(y,k)}scopeRefs(y){return this._extScope.scopeRefs(y,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(y,k,M,I){const z=this._scope.toName(k);return M!==void 0&&I&&(this._constants[z.str]=M),this._leafNode(new s(y,z,M)),z}const(y,k,M){return this._def(r.varKinds.const,y,k,M)}let(y,k,M){return this._def(r.varKinds.let,y,k,M)}var(y,k,M){return this._def(r.varKinds.var,y,k,M)}assign(y,k,M){return this._leafNode(new a(y,k,M))}add(y,k){return this._leafNode(new c(y,e.operators.ADD,k))}code(y){return typeof y=="function"?y():y!==t.nil&&this._leafNode(new f(y)),this}object(...y){const k=["{"];for(const[M,I]of y)k.length>1&&k.push(","),k.push(M),(M!==I||this.opts.es5)&&(k.push(":"),(0,t.addCodeArg)(k,I));return k.push("}"),new t._Code(k)}if(y,k,M){if(this._blockNode(new b(y)),k&&M)this.code(k).else().code(M).endIf();else if(k)this.code(k).endIf();else if(M)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(y){return this._elseNode(new b(y))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(y,k){return this._blockNode(y),k&&this.code(k).endFor(),this}for(y,k){return this._for(new g(y),k)}forRange(y,k,M,I,z=this.opts.es5?r.varKinds.var:r.varKinds.let){const q=this._scope.toName(y);return this._for(new S(z,q,k,M),()=>I(q))}forOf(y,k,M,I=r.varKinds.const){const z=this._scope.toName(y);if(this.opts.es5){const q=k instanceof t.Name?k:this.var("_arr",k);return this.forRange("_i",0,(0,t._)`${q}.length`,et=>{this.var(z,(0,t._)`${q}[${et}]`),M(z)})}return this._for(new A("of",I,z,k),()=>M(z))}forIn(y,k,M,I=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(y,(0,t._)`Object.keys(${k})`,M);const z=this._scope.toName(y);return this._for(new A("in",I,z,k),()=>M(z))}endFor(){return this._endBlockNode(_)}label(y){return this._leafNode(new l(y))}break(y){return this._leafNode(new u(y))}return(y){const k=new N;if(this._blockNode(k),this.code(y),k.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(N)}try(y,k,M){if(!k&&!M)throw new Error('CodeGen: "try" without "catch" and "finally"');const I=new D;if(this._blockNode(I),this.code(y),k){const z=this.name("e");this._currNode=I.catch=new U(z),k(z)}return M&&(this._currNode=I.finally=new G,this.code(M)),this._endBlockNode(U,G)}throw(y){return this._leafNode(new h(y))}block(y,k){return this._blockStarts.push(this._nodes.length),y&&this.code(y).endBlock(k),this}endBlock(y){const k=this._blockStarts.pop();if(k===void 0)throw new Error("CodeGen: not in self-balancing block");const M=this._nodes.length-k;if(M<0||y!==void 0&&M!==y)throw new Error(`CodeGen: wrong number of nodes: ${M} vs ${y} expected`);return this._nodes.length=k,this}func(y,k=t.nil,M,I){return this._blockNode(new E(y,k,M)),I&&this.code(I).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(y=1){for(;y-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(y){return this._currNode.nodes.push(y),this}_blockNode(y){this._currNode.nodes.push(y),this._nodes.push(y)}_endBlockNode(y,k){const M=this._currNode;if(M instanceof y||k&&M instanceof k)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${k?`${y.kind}/${k.kind}`:y.kind}"`)}_elseNode(y){const k=this._currNode;if(!(k instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=k.else=y,this}get _root(){return this._nodes[0]}get _currNode(){const y=this._nodes;return y[y.length-1]}set _currNode(y){const k=this._nodes;k[k.length-1]=y}}e.CodeGen=K;function W($,y){for(const k in y)$[k]=($[k]||0)+(y[k]||0);return $}function ot($,y){return y instanceof t._CodeOrName?W($,y.names):$}function nt($,y,k){if($ instanceof t.Name)return M($);if(!I($))return $;return new t._Code($._items.reduce((z,q)=>(q instanceof t.Name&&(q=M(q)),q instanceof t._Code?z.push(...q._items):z.push(q),z),[]));function M(z){const q=k[z.str];return q===void 0||y[z.str]!==1?z:(delete y[z.str],q)}function I(z){return z instanceof t._Code&&z._items.some(q=>q instanceof t.Name&&y[q.str]===1&&k[q.str]!==void 0)}}function ft($,y){for(const k in y)$[k]=($[k]||0)-(y[k]||0)}function $t($){return typeof $=="boolean"||typeof $=="number"||$===null?!$:(0,t._)`!${C($)}`}e.not=$t;const _t=T(e.operators.AND);function vt(...$){return $.reduce(_t)}e.and=vt;const at=T(e.operators.OR);function Y(...$){return $.reduce(at)}e.or=Y;function T($){return(y,k)=>y===t.nil?k:k===t.nil?y:(0,t._)`${C(y)} ${$} ${C(k)}`}function C($){return $ instanceof t.Name?$:(0,t._)`(${$})`}})(Sm);const sF=sn(Sm),aF=Wt({__proto__:null,default:sF},[Sm]),Se=Qt(aF);var km={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Se,r=Nl;function n(E){const N={};for(const D of E)N[D]=!0;return N}e.toHash=n;function i(E,N){return typeof N=="boolean"?N:Object.keys(N).length===0?!0:(o(E,N),!s(N,E.self.RULES.all))}e.alwaysValidSchema=i;function o(E,N=E.schema){const{opts:D,self:U}=E;if(!D.strictSchema||typeof N=="boolean")return;const G=U.RULES.keywords;for(const K in N)G[K]||A(E,`unknown keyword: "${K}"`)}e.checkUnknownRules=o;function s(E,N){if(typeof E=="boolean")return!E;for(const D in E)if(N[D])return!0;return!1}e.schemaHasRules=s;function a(E,N){if(typeof E=="boolean")return!E;for(const D in E)if(D!=="$ref"&&N.all[D])return!0;return!1}e.schemaHasRulesButRef=a;function c({topSchemaRef:E,schemaPath:N},D,U,G){if(!G){if(typeof D=="number"||typeof D=="boolean")return D;if(typeof D=="string")return(0,t._)`${D}`}return(0,t._)`${E}${N}${(0,t.getProperty)(U)}`}e.schemaRefOrVal=c;function l(E){return f(decodeURIComponent(E))}e.unescapeFragment=l;function u(E){return encodeURIComponent(h(E))}e.escapeFragment=u;function h(E){return typeof E=="number"?`${E}`:E.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=h;function f(E){return E.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function d(E,N){if(Array.isArray(E))for(const D of E)N(D);else N(E)}e.eachItem=d;function p({mergeNames:E,mergeToName:N,mergeValues:D,resultToName:U}){return(G,K,W,ot)=>{const nt=W===void 0?K:W instanceof t.Name?(K instanceof t.Name?E(G,K,W):N(G,K,W),W):K instanceof t.Name?(N(G,W,K),K):D(K,W);return ot===t.Name&&!(nt instanceof t.Name)?U(G,nt):nt}}e.mergeEvaluated={props:p({mergeNames:(E,N,D)=>E.if((0,t._)`${D} !== true && ${N} !== undefined`,()=>{E.if((0,t._)`${N} === true`,()=>E.assign(D,!0),()=>E.assign(D,(0,t._)`${D} || {}`).code((0,t._)`Object.assign(${D}, ${N})`))}),mergeToName:(E,N,D)=>E.if((0,t._)`${D} !== true`,()=>{N===!0?E.assign(D,!0):(E.assign(D,(0,t._)`${D} || {}`),v(E,D,N))}),mergeValues:(E,N)=>E===!0?!0:{...E,...N},resultToName:m}),items:p({mergeNames:(E,N,D)=>E.if((0,t._)`${D} !== true && ${N} !== undefined`,()=>E.assign(D,(0,t._)`${N} === true ? true : ${D} > ${N} ? ${D} : ${N}`)),mergeToName:(E,N,D)=>E.if((0,t._)`${D} !== true`,()=>E.assign(D,N===!0?!0:(0,t._)`${D} > ${N} ? ${D} : ${N}`)),mergeValues:(E,N)=>E===!0?!0:Math.max(E,N),resultToName:(E,N)=>E.var("items",N)})};function m(E,N){if(N===!0)return E.var("props",!0);const D=E.var("props",(0,t._)`{}`);return N!==void 0&&v(E,D,N),D}e.evaluatedPropsToName=m;function v(E,N,D){Object.keys(D).forEach(U=>E.assign((0,t._)`${N}${(0,t.getProperty)(U)}`,!0))}e.setEvaluated=v;const b={};function _(E,N){return E.scopeValue("func",{ref:N,code:b[N.code]||(b[N.code]=new r._Code(N.code))})}e.useFunc=_;var g;(function(E){E[E.Num=0]="Num",E[E.Str=1]="Str"})(g=e.Type||(e.Type={}));function S(E,N,D){if(E instanceof t.Name){const U=N===g.Num;return D?U?(0,t._)`"[" + ${E} + "]"`:(0,t._)`"['" + ${E} + "']"`:U?(0,t._)`"/" + ${E}`:(0,t._)`"/" + ${E}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return D?(0,t.getProperty)(E).toString():"/"+h(E)}e.getErrorPath=S;function A(E,N,D=E.opts.strictSchema){if(D){if(N=`strict mode: ${N}`,D===!0)throw new Error(N);E.self.logger.warn(N)}}e.checkStrictMode=A})(km);const lF=sn(km),cF=Wt({__proto__:null,default:lF},[km]),Me=Qt(cF);var Pm={};Object.defineProperty(Pm,"__esModule",{value:!0});const Gr=Se,uF={data:new Gr.Name("data"),valCxt:new Gr.Name("valCxt"),instancePath:new Gr.Name("instancePath"),parentData:new Gr.Name("parentData"),parentDataProperty:new Gr.Name("parentDataProperty"),rootData:new Gr.Name("rootData"),dynamicAnchors:new Gr.Name("dynamicAnchors"),vErrors:new Gr.Name("vErrors"),errors:new Gr.Name("errors"),this:new Gr.Name("this"),self:new Gr.Name("self"),scope:new Gr.Name("scope"),json:new Gr.Name("json"),jsonPos:new Gr.Name("jsonPos"),jsonLen:new Gr.Name("jsonLen"),jsonPart:new Gr.Name("jsonPart")};var hF=Pm.default=uF;const dF=Wt({__proto__:null,default:hF},[Pm]),Ki=Qt(dF);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Se,r=Me,n=Ki;e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:b})=>b?(0,t.str)`"${v}" keyword must be ${b} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,b=e.keywordError,_,g){const{it:S}=v,{gen:A,compositeRule:E,allErrors:N}=S,D=h(v,b,_);g??(E||N)?c(A,D):l(S,(0,t._)`[${D}]`)}e.reportError=i;function o(v,b=e.keywordError,_){const{it:g}=v,{gen:S,compositeRule:A,allErrors:E}=g,N=h(v,b,_);c(S,N),A||E||l(g,n.default.vErrors)}e.reportExtraError=o;function s(v,b){v.assign(n.default.errors,b),v.if((0,t._)`${n.default.vErrors} !== null`,()=>v.if(b,()=>v.assign((0,t._)`${n.default.vErrors}.length`,b),()=>v.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:v,keyword:b,schemaValue:_,data:g,errsCount:S,it:A}){if(S===void 0)throw new Error("ajv implementation error");const E=v.name("err");v.forRange("i",S,n.default.errors,N=>{v.const(E,(0,t._)`${n.default.vErrors}[${N}]`),v.if((0,t._)`${E}.instancePath === undefined`,()=>v.assign((0,t._)`${E}.instancePath`,(0,t.strConcat)(n.default.instancePath,A.errorPath))),v.assign((0,t._)`${E}.schemaPath`,(0,t.str)`${A.errSchemaPath}/${b}`),A.opts.verbose&&(v.assign((0,t._)`${E}.schema`,_),v.assign((0,t._)`${E}.data`,g))})}e.extendErrors=a;function c(v,b){const _=v.const("err",b);v.if((0,t._)`${n.default.vErrors} === null`,()=>v.assign(n.default.vErrors,(0,t._)`[${_}]`),(0,t._)`${n.default.vErrors}.push(${_})`),v.code((0,t._)`${n.default.errors}++`)}function l(v,b){const{gen:_,validateName:g,schemaEnv:S}=v;S.$async?_.throw((0,t._)`new ${v.ValidationError}(${b})`):(_.assign((0,t._)`${g}.errors`,b),_.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function h(v,b,_){const{createErrors:g}=v.it;return g===!1?(0,t._)`{}`:f(v,b,_)}function f(v,b,_={}){const{gen:g,it:S}=v,A=[d(S,_),p(v,_)];return m(v,b,A),g.object(...A)}function d({errorPath:v},{instancePath:b}){const _=b?(0,t.str)`${v}${(0,r.getErrorPath)(b,r.Type.Str)}`:v;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,_)]}function p({keyword:v,it:{errSchemaPath:b}},{schemaPath:_,parentSchema:g}){let S=g?b:(0,t.str)`${b}/${v}`;return _&&(S=(0,t.str)`${S}${(0,r.getErrorPath)(_,r.Type.Str)}`),[u.schemaPath,S]}function m(v,{params:b,message:_},g){const{keyword:S,data:A,schemaValue:E,it:N}=v,{opts:D,propertyName:U,topSchemaRef:G,schemaPath:K}=N;g.push([u.keyword,S],[u.params,typeof b=="function"?b(v):b||(0,t._)`{}`]),D.messages&&g.push([u.message,typeof _=="function"?_(v):_]),D.verbose&&g.push([u.schema,E],[u.parentSchema,(0,t._)`${G}${K}`],[n.default.data,A]),U&&g.push([u.propertyName,U])}})($m);const fF=sn($m),pF=Wt({__proto__:null,default:fF},[$m]),Al=Qt(pF);Object.defineProperty(hs,"__esModule",{value:!0});var Ux=hs.boolOrEmptySchema=Vx=hs.topBoolOrEmptySchema=void 0;const mF=Al,gF=Se,yF=Ki,vF={message:"boolean schema is false"};function _F(e){const{gen:t,schema:r,validateName:n}=e;r===!1?zx(e,!1):typeof r=="object"&&r.$async===!0?t.return(yF.default.data):(t.assign((0,gF._)`${n}.errors`,null),t.return(!0))}var Vx=hs.topBoolOrEmptySchema=_F;function bF(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),zx(e)):r.var(t,!0)}Ux=hs.boolOrEmptySchema=bF;function zx(e,t){const{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,mF.reportError)(i,vF,void 0,t)}const wF=Wt({__proto__:null,get boolOrEmptySchema(){return Ux},default:hs,get topBoolOrEmptySchema(){return Vx}},[hs]),xF=Qt(wF);var Tm={},ds={};Object.defineProperty(ds,"__esModule",{value:!0});var Gx=ds.getRules=Bx=ds.isJSONType=void 0;const $F=["string","number","integer","boolean","null","object","array"],SF=new Set($F);function EF(e){return typeof e=="string"&&SF.has(e)}var Bx=ds.isJSONType=EF;function CF(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Gx=ds.getRules=CF;const kF=Wt({__proto__:null,default:ds,get getRules(){return Gx},get isJSONType(){return Bx}},[ds]),Hx=Qt(kF);var Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});var qx=Yi.shouldUseRule=Xx=Yi.shouldUseGroup=Kx=Yi.schemaHasRulesForType=void 0;function PF({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&Yx(e,n)}var Kx=Yi.schemaHasRulesForType=PF;function Yx(e,t){return t.rules.some(r=>Jx(e,r))}var Xx=Yi.shouldUseGroup=Yx;function Jx(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}qx=Yi.shouldUseRule=Jx;const TF=Wt({__proto__:null,default:Yi,get schemaHasRulesForType(){return Kx},get shouldUseGroup(){return Xx},get shouldUseRule(){return qx}},[Yi]),Wx=Qt(TF);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Hx,r=Wx,n=Al,i=Se,o=Me;var s;(function(g){g[g.Correct=0]="Correct",g[g.Wrong=1]="Wrong"})(s=e.DataType||(e.DataType={}));function a(g){const S=c(g.type);if(S.includes("null")){if(g.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!S.length&&g.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');g.nullable===!0&&S.push("null")}return S}e.getSchemaTypes=a;function c(g){const S=Array.isArray(g)?g:g?[g]:[];if(S.every(t.isJSONType))return S;throw new Error("type must be JSONType or JSONType[]: "+S.join(","))}e.getJSONTypes=c;function l(g,S){const{gen:A,data:E,opts:N}=g,D=h(S,N.coerceTypes),U=S.length>0&&!(D.length===0&&S.length===1&&(0,r.schemaHasRulesForType)(g,S[0]));if(U){const G=m(S,E,N.strictNumbers,s.Wrong);A.if(G,()=>{D.length?f(g,S,D):b(g)})}return U}e.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function h(g,S){return S?g.filter(A=>u.has(A)||S==="array"&&A==="array"):[]}function f(g,S,A){const{gen:E,data:N,opts:D}=g,U=E.let("dataType",(0,i._)`typeof ${N}`),G=E.let("coerced",(0,i._)`undefined`);D.coerceTypes==="array"&&E.if((0,i._)`${U} == 'object' && Array.isArray(${N}) && ${N}.length == 1`,()=>E.assign(N,(0,i._)`${N}[0]`).assign(U,(0,i._)`typeof ${N}`).if(m(S,N,D.strictNumbers),()=>E.assign(G,N))),E.if((0,i._)`${G} !== undefined`);for(const W of A)(u.has(W)||W==="array"&&D.coerceTypes==="array")&&K(W);E.else(),b(g),E.endIf(),E.if((0,i._)`${G} !== undefined`,()=>{E.assign(N,G),d(g,G)});function K(W){switch(W){case"string":E.elseIf((0,i._)`${U} == "number" || ${U} == "boolean"`).assign(G,(0,i._)`"" + ${N}`).elseIf((0,i._)`${N} === null`).assign(G,(0,i._)`""`);return;case"number":E.elseIf((0,i._)`${U} == "boolean" || ${N} === null
|
|
61
|
+
|| (${U} == "string" && ${N} && ${N} == +${N})`).assign(G,(0,i._)`+${N}`);return;case"integer":E.elseIf((0,i._)`${U} === "boolean" || ${N} === null
|
|
62
|
+
|| (${U} === "string" && ${N} && ${N} == +${N} && !(${N} % 1))`).assign(G,(0,i._)`+${N}`);return;case"boolean":E.elseIf((0,i._)`${N} === "false" || ${N} === 0 || ${N} === null`).assign(G,!1).elseIf((0,i._)`${N} === "true" || ${N} === 1`).assign(G,!0);return;case"null":E.elseIf((0,i._)`${N} === "" || ${N} === 0 || ${N} === false`),E.assign(G,null);return;case"array":E.elseIf((0,i._)`${U} === "string" || ${U} === "number"
|
|
63
|
+
|| ${U} === "boolean" || ${N} === null`).assign(G,(0,i._)`[${N}]`)}}}function d({gen:g,parentData:S,parentDataProperty:A},E){g.if((0,i._)`${S} !== undefined`,()=>g.assign((0,i._)`${S}[${A}]`,E))}function p(g,S,A,E=s.Correct){const N=E===s.Correct?i.operators.EQ:i.operators.NEQ;let D;switch(g){case"null":return(0,i._)`${S} ${N} null`;case"array":D=(0,i._)`Array.isArray(${S})`;break;case"object":D=(0,i._)`${S} && typeof ${S} == "object" && !Array.isArray(${S})`;break;case"integer":D=U((0,i._)`!(${S} % 1) && !isNaN(${S})`);break;case"number":D=U();break;default:return(0,i._)`typeof ${S} ${N} ${g}`}return E===s.Correct?D:(0,i.not)(D);function U(G=i.nil){return(0,i.and)((0,i._)`typeof ${S} == "number"`,G,A?(0,i._)`isFinite(${S})`:i.nil)}}e.checkDataType=p;function m(g,S,A,E){if(g.length===1)return p(g[0],S,A,E);let N;const D=(0,o.toHash)(g);if(D.array&&D.object){const U=(0,i._)`typeof ${S} != "object"`;N=D.null?U:(0,i._)`!${S} || ${U}`,delete D.null,delete D.array,delete D.object}else N=i.nil;D.number&&delete D.integer;for(const U in D)N=(0,i.and)(N,p(U,S,A,E));return N}e.checkDataTypes=m;const v={message:({schema:g})=>`must be ${g}`,params:({schema:g,schemaValue:S})=>typeof g=="string"?(0,i._)`{type: ${g}}`:(0,i._)`{type: ${S}}`};function b(g){const S=_(g);(0,n.reportError)(S,v)}e.reportTypeError=b;function _(g){const{gen:S,data:A,schema:E}=g,N=(0,o.schemaRefOrVal)(g,E,"type");return{gen:S,keyword:"type",data:A,schema:E.type,schemaCode:N,schemaValue:N,parentSchema:E,params:{},it:g}}})(Tm);const OF=sn(Tm),NF=Wt({__proto__:null,default:OF},[Tm]),qh=Qt(NF);var Dl={};Object.defineProperty(Dl,"__esModule",{value:!0});var Qx=Dl.assignDefaults=void 0;const aa=Se,AF=Me;function DF(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)Zx(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Zx(e,o,i.default))}Qx=Dl.assignDefaults=DF;function Zx(e,t,r){const{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;const a=(0,aa._)`${o}${(0,aa.getProperty)(t)}`;if(i){(0,AF.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,aa._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,aa._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,aa._)`${a} = ${(0,aa.stringify)(r)}`)}const RF=Wt({__proto__:null,get assignDefaults(){return Qx},default:Dl},[Dl]),IF=Qt(RF);var Xn={},Be={};Object.defineProperty(Be,"__esModule",{value:!0});var t5=Be.validateUnion=p5=Be.validateArray=f5=Be.usePattern=d5=Be.callValidateCode=h5=Be.schemaProperties=u5=Be.allSchemaProperties=l5=Be.noPropertyInData=a5=Be.propertyInData=s5=Be.isOwnProperty=o5=Be.hasPropFunc=n5=Be.reportMissingProp=r5=Be.checkMissingProp=e5=Be.checkReportMissingProp=void 0;const or=Se,Om=Me,Co=Ki,jF=Me;function FF(e,t){const{gen:r,data:n,it:i}=e;r.if(Am(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,or._)`${t}`},!0),e.error()})}var e5=Be.checkReportMissingProp=FF;function MF({gen:e,data:t,it:{opts:r}},n,i){return(0,or.or)(...n.map(o=>(0,or.and)(Am(e,t,o,r.ownProperties),(0,or._)`${i} = ${o}`)))}var r5=Be.checkMissingProp=MF;function LF(e,t){e.setParams({missingProperty:t},!0),e.error()}var n5=Be.reportMissingProp=LF;function i5(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,or._)`Object.prototype.hasOwnProperty`})}var o5=Be.hasPropFunc=i5;function Nm(e,t,r){return(0,or._)`${i5(e)}.call(${t}, ${r})`}var s5=Be.isOwnProperty=Nm;function UF(e,t,r,n){const i=(0,or._)`${t}${(0,or.getProperty)(r)} !== undefined`;return n?(0,or._)`${i} && ${Nm(e,t,r)}`:i}var a5=Be.propertyInData=UF;function Am(e,t,r,n){const i=(0,or._)`${t}${(0,or.getProperty)(r)} === undefined`;return n?(0,or.or)(i,(0,or.not)(Nm(e,t,r))):i}var l5=Be.noPropertyInData=Am;function c5(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}var u5=Be.allSchemaProperties=c5;function VF(e,t){return c5(t).filter(r=>!(0,Om.alwaysValidSchema)(e,t[r]))}var h5=Be.schemaProperties=VF;function zF({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){const u=l?(0,or._)`${e}, ${t}, ${n}${i}`:t,h=[[Co.default.instancePath,(0,or.strConcat)(Co.default.instancePath,o)],[Co.default.parentData,s.parentData],[Co.default.parentDataProperty,s.parentDataProperty],[Co.default.rootData,Co.default.rootData]];s.opts.dynamicRef&&h.push([Co.default.dynamicAnchors,Co.default.dynamicAnchors]);const f=(0,or._)`${u}, ${r.object(...h)}`;return c!==or.nil?(0,or._)`${a}.call(${c}, ${f})`:(0,or._)`${a}(${f})`}var d5=Be.callValidateCode=zF;const GF=(0,or._)`new RegExp`;function BF({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,or._)`${i.code==="new RegExp"?GF:(0,jF.useFunc)(e,i)}(${r}, ${n})`})}var f5=Be.usePattern=BF;function HF(e){const{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){const a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){const c=t.const("len",(0,or._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Om.Type.Num},o),t.if((0,or.not)(o),a)})}}var p5=Be.validateArray=HF;function qF(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(a=>(0,Om.alwaysValidSchema)(i,a))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((a,c)=>{const l=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},s);t.assign(o,(0,or._)`${o} || ${s}`),e.mergeValidEvaluated(l,s)||t.if((0,or.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}t5=Be.validateUnion=qF;const KF=Wt({__proto__:null,get allSchemaProperties(){return u5},get callValidateCode(){return d5},get checkMissingProp(){return r5},get checkReportMissingProp(){return e5},default:Be,get hasPropFunc(){return o5},get isOwnProperty(){return s5},get noPropertyInData(){return l5},get propertyInData(){return a5},get reportMissingProp(){return n5},get schemaProperties(){return h5},get usePattern(){return f5},get validateArray(){return p5},get validateUnion(){return t5}},[Be]),Jn=Qt(KF);Object.defineProperty(Xn,"__esModule",{value:!0});var m5=Xn.validateKeywordUsage=b5=Xn.validSchemaType=y5=Xn.funcKeywordCode=g5=Xn.macroKeywordCode=void 0;const Jr=Se,fs=Ki,YF=Jn,XF=Al;function JF(e,t){const{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=_5(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);const l=r.name("valid");e.subschema({schema:a,schemaPath:Jr.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}var g5=Xn.macroKeywordCode=JF;function WF(e,t){var r;const{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;ZF(c,t);const l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=_5(n,i,l),h=n.let("valid");e.block$data(h,f),e.ok((r=t.valid)!==null&&r!==void 0?r:h);function f(){if(t.errors===!1)m(),t.modifying&&v5(e),v(()=>e.error());else{const b=t.async?d():p();t.modifying&&v5(e),v(()=>QF(e,b))}}function d(){const b=n.let("ruleErrs",null);return n.try(()=>m((0,Jr._)`await `),_=>n.assign(h,!1).if((0,Jr._)`${_} instanceof ${c.ValidationError}`,()=>n.assign(b,(0,Jr._)`${_}.errors`),()=>n.throw(_))),b}function p(){const b=(0,Jr._)`${u}.errors`;return n.assign(b,null),m(Jr.nil),b}function m(b=t.async?(0,Jr._)`await `:Jr.nil){const _=c.opts.passContext?fs.default.this:fs.default.self,g=!("compile"in t&&!a||t.schema===!1);n.assign(h,(0,Jr._)`${b}${(0,YF.callValidateCode)(e,u,_,g)}`,t.modifying)}function v(b){var _;n.if((0,Jr.not)((_=t.valid)!==null&&_!==void 0?_:h),b)}}var y5=Xn.funcKeywordCode=WF;function v5(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Jr._)`${n.parentData}[${n.parentDataProperty}]`))}function QF(e,t){const{gen:r}=e;r.if((0,Jr._)`Array.isArray(${t})`,()=>{r.assign(fs.default.vErrors,(0,Jr._)`${fs.default.vErrors} === null ? ${t} : ${fs.default.vErrors}.concat(${t})`).assign(fs.default.errors,(0,Jr._)`${fs.default.vErrors}.length`),(0,XF.extendErrors)(e)},()=>e.error())}function ZF({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function _5(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Jr.stringify)(r)})}function tM(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}var b5=Xn.validSchemaType=tM;function eM({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const a=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(a);else throw new Error(a)}}m5=Xn.validateKeywordUsage=eM;const rM=Wt({__proto__:null,default:Xn,get funcKeywordCode(){return y5},get macroKeywordCode(){return g5},get validSchemaType(){return b5},get validateKeywordUsage(){return m5}},[Xn]),nM=Qt(rM);var Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});var w5=Xi.extendSubschemaMode=S5=Xi.extendSubschemaData=$5=Xi.getSubschema=void 0;const gi=Se,x5=Me;function iM(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,gi._)`${e.schemaPath}${(0,gi.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,gi._)`${e.schemaPath}${(0,gi.getProperty)(t)}${(0,gi.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,x5.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}var $5=Xi.getSubschema=iM;function oM(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:a}=t;if(r!==void 0){const{errorPath:l,dataPathArr:u,opts:h}=t,f=a.let("data",(0,gi._)`${t.data}${(0,gi.getProperty)(r)}`,!0);c(f),e.errorPath=(0,gi.str)`${l}${(0,x5.getErrorPath)(r,n,h.jsPropertySyntax)}`,e.parentDataProperty=(0,gi._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){const l=i instanceof gi.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}var S5=Xi.extendSubschemaData=oM;function sM(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}w5=Xi.extendSubschemaMode=sM;const aM=Wt({__proto__:null,default:Xi,get extendSubschemaData(){return S5},get extendSubschemaMode(){return w5},get getSubschema(){return $5}},[Xi]),lM=Qt(aM);var Wr={},E5=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r};const cM=sn(E5),uM=Wt({__proto__:null,default:cM},[E5]),C5=Qt(uM);var k5={exports:{}},ko=k5.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Kh(t,n,i,e,"",e)};ko.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},ko.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},ko.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},ko.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Kh(e,t,r,n,i,o,s,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,s,a,c,l);for(var u in n){var h=n[u];if(Array.isArray(h)){if(u in ko.arrayKeywords)for(var f=0;f<h.length;f++)Kh(e,t,r,h[f],i+"/"+u+"/"+f,o,i,u,n,f)}else if(u in ko.propsKeywords){if(h&&typeof h=="object")for(var d in h)Kh(e,t,r,h[d],i+"/"+u+"/"+hM(d),o,i,u,n,d)}else(u in ko.keywords||e.allKeys&&!(u in ko.skipKeywords))&&Kh(e,t,r,h,i+"/"+u,o,i,u,n)}r(n,i,o,s,a,c,l)}}function hM(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var P5=k5.exports;const dM=sn(P5),fM=Wt({__proto__:null,default:dM},[P5]),pM=Qt(fM);Object.defineProperty(Wr,"__esModule",{value:!0});var T5=Wr.getSchemaRefs=F5=Wr.resolveUrl=j5=Wr.normalizeId=I5=Wr._getFullPath=D5=Wr.getFullPath=O5=Wr.inlineRef=void 0;const mM=Me,gM=C5,yM=pM,vM=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function _M(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Dm(e):t?N5(e)<=t:!1}var O5=Wr.inlineRef=_M;const bM=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Dm(e){for(const t in e){if(bM.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(Dm)||typeof r=="object"&&Dm(r))return!0}return!1}function N5(e){let t=0;for(const r in e)if(r==="$ref"||(t++,!vM.has(r)&&(typeof e[r]=="object"&&(0,mM.eachItem)(e[r],n=>t+=N5(n)),t===1/0)))return 1/0;return t}function A5(e,t="",r){r!==!1&&(t=la(t));const n=e.parse(t);return R5(e,n)}var D5=Wr.getFullPath=A5;function R5(e,t){return e.serialize(t).split("#")[0]+"#"}var I5=Wr._getFullPath=R5;const wM=/#\/?$/;function la(e){return e?e.replace(wM,""):""}var j5=Wr.normalizeId=la;function xM(e,t,r){return r=la(r),e.resolve(t,r)}var F5=Wr.resolveUrl=xM;const $M=/^[a-z_][-a-z0-9._]*$/i;function SM(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=la(e[r]||t),o={"":i},s=A5(n,i,!1),a={},c=new Set;return yM(e,{allKeys:!0},(h,f,d,p)=>{if(p===void 0)return;const m=s+f;let v=o[p];typeof h[r]=="string"&&(v=b.call(this,h[r])),_.call(this,h.$anchor),_.call(this,h.$dynamicAnchor),o[f]=v;function b(g){const S=this.opts.uriResolver.resolve;if(g=la(v?S(v,g):g),c.has(g))throw u(g);c.add(g);let A=this.refs[g];return typeof A=="string"&&(A=this.refs[A]),typeof A=="object"?l(h,A.schema,g):g!==la(m)&&(g[0]==="#"?(l(h,a[g],g),a[g]=h):this.refs[g]=m),g}function _(g){if(typeof g=="string"){if(!$M.test(g))throw new Error(`invalid anchor "${g}"`);b.call(this,`#${g}`)}}}),a;function l(h,f,d){if(f!==void 0&&!gM(h,f))throw u(d)}function u(h){return new Error(`reference "${h}" resolves to more than one schema`)}}T5=Wr.getSchemaRefs=SM;const EM=Wt({__proto__:null,get _getFullPath(){return I5},default:Wr,get getFullPath(){return D5},get getSchemaRefs(){return T5},get inlineRef(){return O5},get normalizeId(){return j5},get resolveUrl(){return F5}},[Wr]),Yh=Qt(EM);Object.defineProperty(qi,"__esModule",{value:!0});var M5=qi.getData=Z5=qi.KeywordCxt=V5=qi.validateFunctionCode=void 0;const L5=xF,U5=qh,Rm=Wx,Xh=qh,CM=IF,Rl=nM,Im=lM,re=Se,fe=Ki,kM=Yh,Ji=Me,Il=Al;function PM(e){if(H5(e)&&(q5(e),B5(e))){NM(e);return}z5(e,()=>(0,L5.topBoolOrEmptySchema)(e))}var V5=qi.validateFunctionCode=PM;function z5({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,re._)`${fe.default.data}, ${fe.default.valCxt}`,n.$async,()=>{e.code((0,re._)`"use strict"; ${G5(r,i)}`),OM(e,i),e.code(o)}):e.func(t,(0,re._)`${fe.default.data}, ${TM(i)}`,n.$async,()=>e.code(G5(r,i)).code(o))}function TM(e){return(0,re._)`{${fe.default.instancePath}="", ${fe.default.parentData}, ${fe.default.parentDataProperty}, ${fe.default.rootData}=${fe.default.data}${e.dynamicRef?(0,re._)`, ${fe.default.dynamicAnchors}={}`:re.nil}}={}`}function OM(e,t){e.if(fe.default.valCxt,()=>{e.var(fe.default.instancePath,(0,re._)`${fe.default.valCxt}.${fe.default.instancePath}`),e.var(fe.default.parentData,(0,re._)`${fe.default.valCxt}.${fe.default.parentData}`),e.var(fe.default.parentDataProperty,(0,re._)`${fe.default.valCxt}.${fe.default.parentDataProperty}`),e.var(fe.default.rootData,(0,re._)`${fe.default.valCxt}.${fe.default.rootData}`),t.dynamicRef&&e.var(fe.default.dynamicAnchors,(0,re._)`${fe.default.valCxt}.${fe.default.dynamicAnchors}`)},()=>{e.var(fe.default.instancePath,(0,re._)`""`),e.var(fe.default.parentData,(0,re._)`undefined`),e.var(fe.default.parentDataProperty,(0,re._)`undefined`),e.var(fe.default.rootData,fe.default.data),t.dynamicRef&&e.var(fe.default.dynamicAnchors,(0,re._)`{}`)})}function NM(e){const{schema:t,opts:r,gen:n}=e;z5(e,()=>{r.$comment&&t.$comment&&Y5(e),jM(e),n.let(fe.default.vErrors,null),n.let(fe.default.errors,0),r.unevaluated&&AM(e),K5(e),LM(e)})}function AM(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,re._)`${r}.evaluated`),t.if((0,re._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,re._)`${e.evaluated}.props`,(0,re._)`undefined`)),t.if((0,re._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,re._)`${e.evaluated}.items`,(0,re._)`undefined`))}function G5(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,re._)`/*# sourceURL=${r} */`:re.nil}function DM(e,t){if(H5(e)&&(q5(e),B5(e))){RM(e,t);return}(0,L5.boolOrEmptySchema)(e,t)}function B5({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function H5(e){return typeof e.schema!="boolean"}function RM(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Y5(e),FM(e),MM(e);const o=n.const("_errs",fe.default.errors);K5(e,o),n.var(t,(0,re._)`${o} === ${fe.default.errors}`)}function q5(e){(0,Ji.checkUnknownRules)(e),IM(e)}function K5(e,t){if(e.opts.jtd)return X5(e,[],!1,t);const r=(0,U5.getSchemaTypes)(e.schema),n=(0,U5.coerceAndCheckDataType)(e,r);X5(e,r,!n,t)}function IM(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ji.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function jM(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ji.checkStrictMode)(e,"default is ignored in the schema root")}function FM(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,kM.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function MM(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Y5({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(i.$comment===!0)e.code((0,re._)`${fe.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){const s=(0,re.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,re._)`${fe.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function LM(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,re._)`${fe.default.errors} === 0`,()=>t.return(fe.default.data),()=>t.throw((0,re._)`new ${i}(${fe.default.vErrors})`)):(t.assign((0,re._)`${n}.errors`,fe.default.vErrors),o.unevaluated&&UM(e),t.return((0,re._)`${fe.default.errors} === 0`))}function UM({gen:e,evaluated:t,props:r,items:n}){r instanceof re.Name&&e.assign((0,re._)`${t}.props`,r),n instanceof re.Name&&e.assign((0,re._)`${t}.items`,n)}function X5(e,t,r,n){const{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Ji.schemaHasRulesButRef)(o,u))){i.block(()=>t$(e,"$ref",u.all.$ref.definition));return}c.jtd||VM(e,t),i.block(()=>{for(const f of u.rules)h(f);h(u.post)});function h(f){(0,Rm.shouldUseGroup)(o,f)&&(f.type?(i.if((0,Xh.checkDataType)(f.type,s,c.strictNumbers)),J5(e,f),t.length===1&&t[0]===f.type&&r&&(i.else(),(0,Xh.reportTypeError)(e)),i.endIf()):J5(e,f),a||i.if((0,re._)`${fe.default.errors} === ${n||0}`))}}function J5(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,CM.assignDefaults)(e,t.type),r.block(()=>{for(const o of t.rules)(0,Rm.shouldUseRule)(n,o)&&t$(e,o.keyword,o.definition,t.type)})}function VM(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(zM(e,t),e.opts.allowUnionTypes||GM(e,t),BM(e,e.dataTypes))}function zM(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{W5(e.dataTypes,r)||jm(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),qM(e,t)}}function GM(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&jm(e,"use allowUnionTypes to allow union type keyword")}function BM(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,Rm.shouldUseRule)(e.schema,i)){const{type:o}=i.definition;o.length&&!o.some(s=>HM(t,s))&&jm(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function HM(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function W5(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function qM(e,t){const r=[];for(const n of e.dataTypes)W5(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function jm(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ji.checkStrictMode)(e,t,e.opts.strictTypes)}class Q5{constructor(t,r,n){if((0,Rl.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ji.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",e$(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Rl.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",fe.default.errors))}result(t,r,n){this.failResult((0,re.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,re.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,re._)`${r} !== undefined && (${(0,re.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Il.reportExtraError:Il.reportError)(this,this.def.error,r)}$dataError(){(0,Il.reportError)(this,this.def.$dataError||Il.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Il.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=re.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=re.nil,r=re.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,re.or)((0,re._)`${i} === undefined`,r)),t!==re.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==re.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,re.or)(s(),a());function s(){if(n.length){if(!(r instanceof re.Name))throw new Error("ajv implementation error");const c=Array.isArray(n)?n:[n];return(0,re._)`${(0,Xh.checkDataTypes)(c,r,o.opts.strictNumbers,Xh.DataType.Wrong)}`}return re.nil}function a(){if(i.validateSchema){const c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,re._)`!${c}(${r})`}return re.nil}}subschema(t,r){const n=(0,Im.getSubschema)(this.it,t);(0,Im.extendSubschemaData)(n,this.it,t),(0,Im.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return DM(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Ji.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ji.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,re.Name)),!0}}var Z5=qi.KeywordCxt=Q5;function t$(e,t,r,n){const i=new Q5(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Rl.funcKeywordCode)(i,r):"macro"in r?(0,Rl.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Rl.funcKeywordCode)(i,r)}const KM=/^\/(?:[^~]|~0|~1)*$/,YM=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function e$(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return fe.default.rootData;if(e[0]==="/"){if(!KM.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=fe.default.rootData}else{const l=YM.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+l[1];if(i=l[2],i==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!i)return o}let s=o;const a=i.split("/");for(const l of a)l&&(o=(0,re._)`${o}${(0,re.getProperty)((0,Ji.unescapeJsonPointer)(l))}`,s=(0,re._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}M5=qi.getData=e$;const XM=Wt({__proto__:null,get KeywordCxt(){return Z5},default:qi,get getData(){return M5},get validateFunctionCode(){return V5}},[qi]),jl=Qt(XM);var Fm={};Object.defineProperty(Fm,"__esModule",{value:!0});class JM extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}var WM=Fm.default=JM;const QM=Wt({__proto__:null,default:WM},[Fm]),Mm=Qt(QM);var Lm={};Object.defineProperty(Lm,"__esModule",{value:!0});const Um=Yh;class ZM extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Um.resolveUrl)(t,r,n),this.missingSchema=(0,Um.normalizeId)((0,Um.getFullPath)(t,this.missingRef))}}var tL=Lm.default=ZM;const eL=Wt({__proto__:null,default:tL},[Lm]),Vm=Qt(eL);var yn={};Object.defineProperty(yn,"__esModule",{value:!0});var r$=yn.resolveSchema=l$=yn.getCompilingSchema=s$=yn.resolveRef=o$=yn.compileSchema=i$=yn.SchemaEnv=void 0;const Wn=Se,rL=Mm,ps=Ki,Qn=Yh,n$=Me,nL=jl;class Jh{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Qn.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}}var i$=yn.SchemaEnv=Jh;function zm(e){const t=a$.call(this,e);if(t)return t;const r=(0,Qn.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new Wn.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o});let a;e.$async&&(a=s.scopeValue("Error",{ref:rL.default,code:(0,Wn._)`require("ajv/dist/runtime/validation_error").default`}));const c=s.scopeName("validate");e.validateName=c;const l={gen:s,allErrors:this.opts.allErrors,data:ps.default.data,parentData:ps.default.parentData,parentDataProperty:ps.default.parentDataProperty,dataNames:[ps.default.data],dataPathArr:[Wn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Wn.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Wn.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Wn._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,nL.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);const h=s.toString();u=`${s.scopeRefs(ps.default.scope)}return ${h}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const f=new Function(`${ps.default.self}`,`${ps.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=e.schema,f.schemaEnv=e,e.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:c,validateCode:h,scopeValues:s._values}),this.opts.unevaluated){const{props:d,items:p}=l;f.evaluated={props:d instanceof Wn.Name?void 0:d,items:p instanceof Wn.Name?void 0:p,dynamicProps:d instanceof Wn.Name,dynamicItems:p instanceof Wn.Name},f.source&&(f.source.evaluated=(0,Wn.stringify)(f.evaluated))}return e.validate=f,e}catch(h){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),h}finally{this._compilations.delete(e)}}var o$=yn.compileSchema=zm;function iL(e,t,r){var n;r=(0,Qn.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=aL.call(this,e,r);if(o===void 0){const s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(o=new Jh({schema:s,schemaId:a,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=oL.call(this,o)}var s$=yn.resolveRef=iL;function oL(e){return(0,Qn.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:zm.call(this,e)}function a$(e){for(const t of this._compilations)if(sL(t,e))return t}var l$=yn.getCompilingSchema=a$;function sL(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function aL(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Wh.call(this,e,t)}function Wh(e,t){const r=this.opts.uriResolver.parse(t),n=(0,Qn._getFullPath)(this.opts.uriResolver,r);let i=(0,Qn.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Gm.call(this,r,e);const o=(0,Qn.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){const a=Wh.call(this,e,s);return typeof a?.schema!="object"?void 0:Gm.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||zm.call(this,s),o===(0,Qn.normalizeId)(t)){const{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,Qn.resolveUrl)(this.opts.uriResolver,i,l)),new Jh({schema:a,schemaId:c,root:e,baseId:i})}return Gm.call(this,r,s)}}r$=yn.resolveSchema=Wh;const lL=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Gm(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const c=r[(0,n$.unescapeFragment)(a)];if(c===void 0)return;r=c;const l=typeof r=="object"&&r[this.opts.schemaId];!lL.has(a)&&l&&(t=(0,Qn.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,n$.schemaHasRulesButRef)(r,this.RULES)){const a=(0,Qn.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Wh.call(this,n,a)}const{schemaId:s}=this.opts;if(o=o||new Jh({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}const cL=Wt({__proto__:null,get SchemaEnv(){return i$},get compileSchema(){return o$},default:yn,get getCompilingSchema(){return l$},get resolveRef(){return s$},get resolveSchema(){return r$}},[yn]),Bm=Qt(cL),uL="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",hL="Meta-schema for $data reference (JSON AnySchema extension proposal)",dL="object",fL=["$data"],pL={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},mL=!1,gL={$id:uL,description:hL,type:dL,required:fL,properties:pL,additionalProperties:mL};var Hm={},qm={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(r,n){n(t)})(Kj,function(r){function n(){for(var R=arguments.length,L=Array(R),V=0;V<R;V++)L[V]=arguments[V];if(L.length>1){L[0]=L[0].slice(0,-1);for(var Z=L.length-1,tt=1;tt<Z;++tt)L[tt]=L[tt].slice(1,-1);return L[Z]=L[Z].slice(1),L.join("")}else return L[0]}function i(R){return"(?:"+R+")"}function o(R){return R===void 0?"undefined":R===null?"null":Object.prototype.toString.call(R).split(" ").pop().split("]").shift().toLowerCase()}function s(R){return R.toUpperCase()}function a(R){return R!=null?R instanceof Array?R:typeof R.length!="number"||R.split||R.setInterval||R.call?[R]:Array.prototype.slice.call(R):[]}function c(R,L){var V=R;if(L)for(var Z in L)V[Z]=L[Z];return V}function l(R){var L="[A-Za-z]",V="[0-9]",Z=n(V,"[A-Fa-f]"),tt=i(i("%[EFef]"+Z+"%"+Z+Z+"%"+Z+Z)+"|"+i("%[89A-Fa-f]"+Z+"%"+Z+Z)+"|"+i("%"+Z+Z)),Ot="[\\:\\/\\?\\#\\[\\]\\@]",Tt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Ht=n(Ot,Tt),pe=R?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",te=R?"[\\uE000-\\uF8FF]":"[]",zt=n(L,V,"[\\-\\.\\_\\~]",pe);i(L+n(L,V,"[\\+\\-\\.]")+"*"),i(i(tt+"|"+n(zt,Tt,"[\\:]"))+"*");var qt=i(i("25[0-5]")+"|"+i("2[0-4]"+V)+"|"+i("1"+V+V)+"|"+i("0?[1-9]"+V)+"|0?0?"+V),ae=i(qt+"\\."+qt+"\\."+qt+"\\."+qt),jt=i(Z+"{1,4}"),Gt=i(i(jt+"\\:"+jt)+"|"+ae),ie=i(i(jt+"\\:")+"{6}"+Gt),Ie=i("\\:\\:"+i(jt+"\\:")+"{5}"+Gt),br=i(i(jt)+"?\\:\\:"+i(jt+"\\:")+"{4}"+Gt),we=i(i(i(jt+"\\:")+"{0,1}"+jt)+"?\\:\\:"+i(jt+"\\:")+"{3}"+Gt),ze=i(i(i(jt+"\\:")+"{0,2}"+jt)+"?\\:\\:"+i(jt+"\\:")+"{2}"+Gt),Ze=i(i(i(jt+"\\:")+"{0,3}"+jt)+"?\\:\\:"+jt+"\\:"+Gt),Xe=i(i(i(jt+"\\:")+"{0,4}"+jt)+"?\\:\\:"+Gt),Ae=i(i(i(jt+"\\:")+"{0,5}"+jt)+"?\\:\\:"+jt),_e=i(i(i(jt+"\\:")+"{0,6}"+jt)+"?\\:\\:"),Zt=i([ie,Ie,br,we,ze,Ze,Xe,Ae,_e].join("|")),tr=i(i(zt+"|"+tt)+"+");i("[vV]"+Z+"+\\."+n(zt,Tt,"[\\:]")+"+"),i(i(tt+"|"+n(zt,Tt))+"*");var qr=i(tt+"|"+n(zt,Tt,"[\\:\\@]"));return i(i(tt+"|"+n(zt,Tt,"[\\@]"))+"+"),i(i(qr+"|"+n("[\\/\\?]",te))+"*"),{NOT_SCHEME:new RegExp(n("[^]",L,V,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",zt,Tt),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",zt,Tt),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",zt,Tt),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",zt,Tt),"g"),NOT_QUERY:new RegExp(n("[^\\%]",zt,Tt,"[\\:\\@\\/\\?]",te),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",zt,Tt,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",zt,Tt),"g"),UNRESERVED:new RegExp(zt,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",zt,Ht),"g"),PCT_ENCODED:new RegExp(tt,"g"),IPV4ADDRESS:new RegExp("^("+ae+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Zt+")"+i(i("\\%25|\\%(?!"+Z+"{2})")+"("+tr+")")+"?\\]?$")}}var u=l(!1),h=l(!0),f=function(){function R(L,V){var Z=[],tt=!0,Ot=!1,Tt=void 0;try{for(var Ht=L[Symbol.iterator](),pe;!(tt=(pe=Ht.next()).done)&&(Z.push(pe.value),!(V&&Z.length===V));tt=!0);}catch(te){Ot=!0,Tt=te}finally{try{!tt&&Ht.return&&Ht.return()}finally{if(Ot)throw Tt}}return Z}return function(L,V){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return R(L,V);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(R){if(Array.isArray(R)){for(var L=0,V=Array(R.length);L<R.length;L++)V[L]=R[L];return V}else return Array.from(R)},p=2147483647,m=36,v=1,b=26,_=38,g=700,S=72,A=128,E="-",N=/^xn--/,D=/[^\0-\x7E]/,U=/[\x2E\u3002\uFF0E\uFF61]/g,G={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},K=m-v,W=Math.floor,ot=String.fromCharCode;function nt(R){throw new RangeError(G[R])}function ft(R,L){for(var V=[],Z=R.length;Z--;)V[Z]=L(R[Z]);return V}function $t(R,L){var V=R.split("@"),Z="";V.length>1&&(Z=V[0]+"@",R=V[1]),R=R.replace(U,".");var tt=R.split("."),Ot=ft(tt,L).join(".");return Z+Ot}function _t(R){for(var L=[],V=0,Z=R.length;V<Z;){var tt=R.charCodeAt(V++);if(tt>=55296&&tt<=56319&&V<Z){var Ot=R.charCodeAt(V++);(Ot&64512)==56320?L.push(((tt&1023)<<10)+(Ot&1023)+65536):(L.push(tt),V--)}else L.push(tt)}return L}var vt=function(R){return String.fromCodePoint.apply(String,d(R))},at=function(R){return R-48<10?R-22:R-65<26?R-65:R-97<26?R-97:m},Y=function(R,L){return R+22+75*(R<26)-((L!=0)<<5)},T=function(R,L,V){var Z=0;for(R=V?W(R/g):R>>1,R+=W(R/L);R>K*b>>1;Z+=m)R=W(R/K);return W(Z+(K+1)*R/(R+_))},C=function(R){var L=[],V=R.length,Z=0,tt=A,Ot=S,Tt=R.lastIndexOf(E);Tt<0&&(Tt=0);for(var Ht=0;Ht<Tt;++Ht)R.charCodeAt(Ht)>=128&&nt("not-basic"),L.push(R.charCodeAt(Ht));for(var pe=Tt>0?Tt+1:0;pe<V;){for(var te=Z,zt=1,qt=m;;qt+=m){pe>=V&&nt("invalid-input");var ae=at(R.charCodeAt(pe++));(ae>=m||ae>W((p-Z)/zt))&&nt("overflow"),Z+=ae*zt;var jt=qt<=Ot?v:qt>=Ot+b?b:qt-Ot;if(ae<jt)break;var Gt=m-jt;zt>W(p/Gt)&&nt("overflow"),zt*=Gt}var ie=L.length+1;Ot=T(Z-te,ie,te==0),W(Z/ie)>p-tt&&nt("overflow"),tt+=W(Z/ie),Z%=ie,L.splice(Z++,0,tt)}return String.fromCodePoint.apply(String,L)},$=function(R){var L=[];R=_t(R);var V=R.length,Z=A,tt=0,Ot=S,Tt=!0,Ht=!1,pe=void 0;try{for(var te=R[Symbol.iterator](),zt;!(Tt=(zt=te.next()).done);Tt=!0){var qt=zt.value;qt<128&&L.push(ot(qt))}}catch(Rr){Ht=!0,pe=Rr}finally{try{!Tt&&te.return&&te.return()}finally{if(Ht)throw pe}}var ae=L.length,jt=ae;for(ae&&L.push(E);jt<V;){var Gt=p,ie=!0,Ie=!1,br=void 0;try{for(var we=R[Symbol.iterator](),ze;!(ie=(ze=we.next()).done);ie=!0){var Ze=ze.value;Ze>=Z&&Ze<Gt&&(Gt=Ze)}}catch(Rr){Ie=!0,br=Rr}finally{try{!ie&&we.return&&we.return()}finally{if(Ie)throw br}}var Xe=jt+1;Gt-Z>W((p-tt)/Xe)&&nt("overflow"),tt+=(Gt-Z)*Xe,Z=Gt;var Ae=!0,_e=!1,Zt=void 0;try{for(var tr=R[Symbol.iterator](),qr;!(Ae=(qr=tr.next()).done);Ae=!0){var hn=qr.value;if(hn<Z&&++tt>p&&nt("overflow"),hn==Z){for(var hr=tt,ur=m;;ur+=m){var Pr=ur<=Ot?v:ur>=Ot+b?b:ur-Ot;if(hr<Pr)break;var In=hr-Pr,jn=m-Pr;L.push(ot(Y(Pr+In%jn,0))),hr=W(In/jn)}L.push(ot(Y(hr,0))),Ot=T(tt,Xe,jt==ae),tt=0,++jt}}}catch(Rr){_e=!0,Zt=Rr}finally{try{!Ae&&tr.return&&tr.return()}finally{if(_e)throw Zt}}++tt,++Z}return L.join("")},y=function(R){return $t(R,function(L){return N.test(L)?C(L.slice(4).toLowerCase()):L})},k=function(R){return $t(R,function(L){return D.test(L)?"xn--"+$(L):L})},M={version:"2.1.0",ucs2:{decode:_t,encode:vt},decode:C,encode:$,toASCII:k,toUnicode:y},I={};function z(R){var L=R.charCodeAt(0),V=void 0;return L<16?V="%0"+L.toString(16).toUpperCase():L<128?V="%"+L.toString(16).toUpperCase():L<2048?V="%"+(L>>6|192).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase():V="%"+(L>>12|224).toString(16).toUpperCase()+"%"+(L>>6&63|128).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase(),V}function q(R){for(var L="",V=0,Z=R.length;V<Z;){var tt=parseInt(R.substr(V+1,2),16);if(tt<128)L+=String.fromCharCode(tt),V+=3;else if(tt>=194&&tt<224){if(Z-V>=6){var Ot=parseInt(R.substr(V+4,2),16);L+=String.fromCharCode((tt&31)<<6|Ot&63)}else L+=R.substr(V,6);V+=6}else if(tt>=224){if(Z-V>=9){var Tt=parseInt(R.substr(V+4,2),16),Ht=parseInt(R.substr(V+7,2),16);L+=String.fromCharCode((tt&15)<<12|(Tt&63)<<6|Ht&63)}else L+=R.substr(V,9);V+=9}else L+=R.substr(V,3),V+=3}return L}function et(R,L){function V(Z){var tt=q(Z);return tt.match(L.UNRESERVED)?tt:Z}return R.scheme&&(R.scheme=String(R.scheme).replace(L.PCT_ENCODED,V).toLowerCase().replace(L.NOT_SCHEME,"")),R.userinfo!==void 0&&(R.userinfo=String(R.userinfo).replace(L.PCT_ENCODED,V).replace(L.NOT_USERINFO,z).replace(L.PCT_ENCODED,s)),R.host!==void 0&&(R.host=String(R.host).replace(L.PCT_ENCODED,V).toLowerCase().replace(L.NOT_HOST,z).replace(L.PCT_ENCODED,s)),R.path!==void 0&&(R.path=String(R.path).replace(L.PCT_ENCODED,V).replace(R.scheme?L.NOT_PATH:L.NOT_PATH_NOSCHEME,z).replace(L.PCT_ENCODED,s)),R.query!==void 0&&(R.query=String(R.query).replace(L.PCT_ENCODED,V).replace(L.NOT_QUERY,z).replace(L.PCT_ENCODED,s)),R.fragment!==void 0&&(R.fragment=String(R.fragment).replace(L.PCT_ENCODED,V).replace(L.NOT_FRAGMENT,z).replace(L.PCT_ENCODED,s)),R}function st(R){return R.replace(/^0*(.*)/,"$1")||"0"}function mt(R,L){var V=R.match(L.IPV4ADDRESS)||[],Z=f(V,2),tt=Z[1];return tt?tt.split(".").map(st).join("."):R}function Mt(R,L){var V=R.match(L.IPV6ADDRESS)||[],Z=f(V,3),tt=Z[1],Ot=Z[2];if(tt){for(var Tt=tt.toLowerCase().split("::").reverse(),Ht=f(Tt,2),pe=Ht[0],te=Ht[1],zt=te?te.split(":").map(st):[],qt=pe.split(":").map(st),ae=L.IPV4ADDRESS.test(qt[qt.length-1]),jt=ae?7:8,Gt=qt.length-jt,ie=Array(jt),Ie=0;Ie<jt;++Ie)ie[Ie]=zt[Ie]||qt[Gt+Ie]||"";ae&&(ie[jt-1]=mt(ie[jt-1],L));var br=ie.reduce(function(Ae,_e,Zt){if(!_e||_e==="0"){var tr=Ae[Ae.length-1];tr&&tr.index+tr.length===Zt?tr.length++:Ae.push({index:Zt,length:1})}return Ae},[]),we=br.sort(function(Ae,_e){return _e.length-Ae.length})[0],ze=void 0;if(we&&we.length>1){var Ze=ie.slice(0,we.index),Xe=ie.slice(we.index+we.length);ze=Ze.join(":")+"::"+Xe.join(":")}else ze=ie.join(":");return Ot&&(ze+="%"+Ot),ze}else return R}var X=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Q="".match(/(){0}/)[1]===void 0;function it(R){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V={},Z=L.iri!==!1?h:u;L.reference==="suffix"&&(R=(L.scheme?L.scheme+":":"")+"//"+R);var tt=R.match(X);if(tt){Q?(V.scheme=tt[1],V.userinfo=tt[3],V.host=tt[4],V.port=parseInt(tt[5],10),V.path=tt[6]||"",V.query=tt[7],V.fragment=tt[8],isNaN(V.port)&&(V.port=tt[5])):(V.scheme=tt[1]||void 0,V.userinfo=R.indexOf("@")!==-1?tt[3]:void 0,V.host=R.indexOf("//")!==-1?tt[4]:void 0,V.port=parseInt(tt[5],10),V.path=tt[6]||"",V.query=R.indexOf("?")!==-1?tt[7]:void 0,V.fragment=R.indexOf("#")!==-1?tt[8]:void 0,isNaN(V.port)&&(V.port=R.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?tt[4]:void 0)),V.host&&(V.host=Mt(mt(V.host,Z),Z)),V.scheme===void 0&&V.userinfo===void 0&&V.host===void 0&&V.port===void 0&&!V.path&&V.query===void 0?V.reference="same-document":V.scheme===void 0?V.reference="relative":V.fragment===void 0?V.reference="absolute":V.reference="uri",L.reference&&L.reference!=="suffix"&&L.reference!==V.reference&&(V.error=V.error||"URI is not a "+L.reference+" reference.");var Ot=I[(L.scheme||V.scheme||"").toLowerCase()];if(!L.unicodeSupport&&(!Ot||!Ot.unicodeSupport)){if(V.host&&(L.domainHost||Ot&&Ot.domainHost))try{V.host=M.toASCII(V.host.replace(Z.PCT_ENCODED,q).toLowerCase())}catch(Tt){V.error=V.error||"Host's domain name can not be converted to ASCII via punycode: "+Tt}et(V,u)}else et(V,Z);Ot&&Ot.parse&&Ot.parse(V,L)}else V.error=V.error||"URI can not be parsed.";return V}function lt(R,L){var V=L.iri!==!1?h:u,Z=[];return R.userinfo!==void 0&&(Z.push(R.userinfo),Z.push("@")),R.host!==void 0&&Z.push(Mt(mt(String(R.host),V),V).replace(V.IPV6ADDRESS,function(tt,Ot,Tt){return"["+Ot+(Tt?"%25"+Tt:"")+"]"})),(typeof R.port=="number"||typeof R.port=="string")&&(Z.push(":"),Z.push(String(R.port))),Z.length?Z.join(""):void 0}var ct=/^\.\.?\//,dt=/^\/\.(\/|$)/,St=/^\/\.\.(\/|$)/,yt=/^\/?(?:.|\n)*?(?=\/|$)/;function bt(R){for(var L=[];R.length;)if(R.match(ct))R=R.replace(ct,"");else if(R.match(dt))R=R.replace(dt,"/");else if(R.match(St))R=R.replace(St,"/"),L.pop();else if(R==="."||R==="..")R="";else{var V=R.match(yt);if(V){var Z=V[0];R=R.slice(Z.length),L.push(Z)}else throw new Error("Unexpected dot segment condition")}return L.join("")}function ut(R){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=L.iri?h:u,Z=[],tt=I[(L.scheme||R.scheme||"").toLowerCase()];if(tt&&tt.serialize&&tt.serialize(R,L),R.host&&!V.IPV6ADDRESS.test(R.host)&&(L.domainHost||tt&&tt.domainHost))try{R.host=L.iri?M.toUnicode(R.host):M.toASCII(R.host.replace(V.PCT_ENCODED,q).toLowerCase())}catch(Ht){R.error=R.error||"Host's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+Ht}et(R,V),L.reference!=="suffix"&&R.scheme&&(Z.push(R.scheme),Z.push(":"));var Ot=lt(R,L);if(Ot!==void 0&&(L.reference!=="suffix"&&Z.push("//"),Z.push(Ot),R.path&&R.path.charAt(0)!=="/"&&Z.push("/")),R.path!==void 0){var Tt=R.path;!L.absolutePath&&(!tt||!tt.absolutePath)&&(Tt=bt(Tt)),Ot===void 0&&(Tt=Tt.replace(/^\/\//,"/%2F")),Z.push(Tt)}return R.query!==void 0&&(Z.push("?"),Z.push(R.query)),R.fragment!==void 0&&(Z.push("#"),Z.push(R.fragment)),Z.join("")}function It(R,L){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Z=arguments[3],tt={};return Z||(R=it(ut(R,V),V),L=it(ut(L,V),V)),V=V||{},!V.tolerant&&L.scheme?(tt.scheme=L.scheme,tt.userinfo=L.userinfo,tt.host=L.host,tt.port=L.port,tt.path=bt(L.path||""),tt.query=L.query):(L.userinfo!==void 0||L.host!==void 0||L.port!==void 0?(tt.userinfo=L.userinfo,tt.host=L.host,tt.port=L.port,tt.path=bt(L.path||""),tt.query=L.query):(L.path?(L.path.charAt(0)==="/"?tt.path=bt(L.path):((R.userinfo!==void 0||R.host!==void 0||R.port!==void 0)&&!R.path?tt.path="/"+L.path:R.path?tt.path=R.path.slice(0,R.path.lastIndexOf("/")+1)+L.path:tt.path=L.path,tt.path=bt(tt.path)),tt.query=L.query):(tt.path=R.path,L.query!==void 0?tt.query=L.query:tt.query=R.query),tt.userinfo=R.userinfo,tt.host=R.host,tt.port=R.port),tt.scheme=R.scheme),tt.fragment=L.fragment,tt}function Lt(R,L,V){var Z=c({scheme:"null"},V);return ut(It(it(R,Z),it(L,Z),Z,!0),Z)}function Ut(R,L){return typeof R=="string"?R=ut(it(R,L),L):o(R)==="object"&&(R=it(ut(R,L),L)),R}function Kt(R,L,V){return typeof R=="string"?R=ut(it(R,V),V):o(R)==="object"&&(R=ut(R,V)),typeof L=="string"?L=ut(it(L,V),V):o(L)==="object"&&(L=ut(L,V)),R===L}function ne(R,L){return R&&R.toString().replace(!L||!L.iri?u.ESCAPE:h.ESCAPE,z)}function Yt(R,L){return R&&R.toString().replace(!L||!L.iri?u.PCT_ENCODED:h.PCT_ENCODED,q)}var he={scheme:"http",domainHost:!0,parse:function(R,L){return R.host||(R.error=R.error||"HTTP URIs must have a host."),R},serialize:function(R,L){var V=String(R.scheme).toLowerCase()==="https";return(R.port===(V?443:80)||R.port==="")&&(R.port=void 0),R.path||(R.path="/"),R}},Ne={scheme:"https",domainHost:he.domainHost,parse:he.parse,serialize:he.serialize};function Ye(R){return typeof R.secure=="boolean"?R.secure:String(R.scheme).toLowerCase()==="wss"}var ar={scheme:"ws",domainHost:!0,parse:function(R,L){var V=R;return V.secure=Ye(V),V.resourceName=(V.path||"/")+(V.query?"?"+V.query:""),V.path=void 0,V.query=void 0,V},serialize:function(R,L){if((R.port===(Ye(R)?443:80)||R.port==="")&&(R.port=void 0),typeof R.secure=="boolean"&&(R.scheme=R.secure?"wss":"ws",R.secure=void 0),R.resourceName){var V=R.resourceName.split("?"),Z=f(V,2),tt=Z[0],Ot=Z[1];R.path=tt&&tt!=="/"?tt:void 0,R.query=Ot,R.resourceName=void 0}return R.fragment=void 0,R}},Qe={scheme:"wss",domainHost:ar.domainHost,parse:ar.parse,serialize:ar.serialize},xr={},Lr="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",le="[0-9A-Fa-f]",nr=i(i("%[EFef]"+le+"%"+le+le+"%"+le+le)+"|"+i("%[89A-Fa-f]"+le+"%"+le+le)+"|"+i("%"+le+le)),$r="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ni="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",xn=n(ni,'[\\"\\\\]'),An="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Hr=new RegExp(Lr,"g"),Ve=new RegExp(nr,"g"),Bo=new RegExp(n("[^]",$r,"[\\.]",'[\\"]',xn),"g"),un=new RegExp(n("[^]",Lr,An),"g"),$n=un;function Dr(R){var L=q(R);return L.match(Hr)?L:R}var Dn={scheme:"mailto",parse:function(R,L){var V=R,Z=V.to=V.path?V.path.split(","):[];if(V.path=void 0,V.query){for(var tt=!1,Ot={},Tt=V.query.split("&"),Ht=0,pe=Tt.length;Ht<pe;++Ht){var te=Tt[Ht].split("=");switch(te[0]){case"to":for(var zt=te[1].split(","),qt=0,ae=zt.length;qt<ae;++qt)Z.push(zt[qt]);break;case"subject":V.subject=Yt(te[1],L);break;case"body":V.body=Yt(te[1],L);break;default:tt=!0,Ot[Yt(te[0],L)]=Yt(te[1],L);break}}tt&&(V.headers=Ot)}V.query=void 0;for(var jt=0,Gt=Z.length;jt<Gt;++jt){var ie=Z[jt].split("@");if(ie[0]=Yt(ie[0]),L.unicodeSupport)ie[1]=Yt(ie[1],L).toLowerCase();else try{ie[1]=M.toASCII(Yt(ie[1],L).toLowerCase())}catch(Ie){V.error=V.error||"Email address's domain name can not be converted to ASCII via punycode: "+Ie}Z[jt]=ie.join("@")}return V},serialize:function(R,L){var V=R,Z=a(R.to);if(Z){for(var tt=0,Ot=Z.length;tt<Ot;++tt){var Tt=String(Z[tt]),Ht=Tt.lastIndexOf("@"),pe=Tt.slice(0,Ht).replace(Ve,Dr).replace(Ve,s).replace(Bo,z),te=Tt.slice(Ht+1);try{te=L.iri?M.toUnicode(te):M.toASCII(Yt(te,L).toLowerCase())}catch(jt){V.error=V.error||"Email address's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+jt}Z[tt]=pe+"@"+te}V.path=Z.join(",")}var zt=R.headers=R.headers||{};R.subject&&(zt.subject=R.subject),R.body&&(zt.body=R.body);var qt=[];for(var ae in zt)zt[ae]!==xr[ae]&&qt.push(ae.replace(Ve,Dr).replace(Ve,s).replace(un,z)+"="+zt[ae].replace(Ve,Dr).replace(Ve,s).replace($n,z));return qt.length&&(V.query=qt.join("&")),V}},Sn=/^([^\:]+)\:(.*)/,en={scheme:"urn",parse:function(R,L){var V=R.path&&R.path.match(Sn),Z=R;if(V){var tt=L.scheme||Z.scheme||"urn",Ot=V[1].toLowerCase(),Tt=V[2],Ht=tt+":"+(L.nid||Ot),pe=I[Ht];Z.nid=Ot,Z.nss=Tt,Z.path=void 0,pe&&(Z=pe.parse(Z,L))}else Z.error=Z.error||"URN can not be parsed.";return Z},serialize:function(R,L){var V=L.scheme||R.scheme||"urn",Z=R.nid,tt=V+":"+(L.nid||Z),Ot=I[tt];Ot&&(R=Ot.serialize(R,L));var Tt=R,Ht=R.nss;return Tt.path=(Z||L.nid)+":"+Ht,Tt}},ii=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Rn={scheme:"urn:uuid",parse:function(R,L){var V=R;return V.uuid=V.nss,V.nss=void 0,!L.tolerant&&(!V.uuid||!V.uuid.match(ii))&&(V.error=V.error||"UUID is not valid."),V},serialize:function(R,L){var V=R;return V.nss=(R.uuid||"").toLowerCase(),V}};I[he.scheme]=he,I[Ne.scheme]=Ne,I[ar.scheme]=ar,I[Qe.scheme]=Qe,I[Dn.scheme]=Dn,I[en.scheme]=en,I[Rn.scheme]=Rn,r.SCHEMES=I,r.pctEncChar=z,r.pctDecChars=q,r.parse=it,r.removeDotSegments=bt,r.serialize=ut,r.resolveComponents=It,r.resolve=Lt,r.normalize=Ut,r.equal=Kt,r.escapeComponent=ne,r.unescapeComponent=Yt,Object.defineProperty(r,"__esModule",{value:!0})})})(qm,qm.exports);var c$=qm.exports;const yL=sn(c$),vL=Wt({__proto__:null,default:yL},[c$]),_L=Qt(vL);Object.defineProperty(Hm,"__esModule",{value:!0});const u$=_L;u$.code='require("ajv/dist/runtime/uri").default';var bL=Hm.default=u$;const wL=Wt({__proto__:null,default:bL},[Hm]),xL=Qt(wL);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=jl;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Se;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=Mm,i=Vm,o=Hx,s=Bm,a=Se,c=Yh,l=qh,u=Me,h=gL,f=xL,d=(Y,T)=>new RegExp(Y,T);d.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_=200;function g(Y){var T,C,$,y,k,M,I,z,q,et,st,mt,Mt,X,Q,it,lt,ct,dt,St,yt,bt,ut,It,Lt;const Ut=Y.strict,Kt=(T=Y.code)===null||T===void 0?void 0:T.optimize,ne=Kt===!0||Kt===void 0?1:Kt||0,Yt=($=(C=Y.code)===null||C===void 0?void 0:C.regExp)!==null&&$!==void 0?$:d,he=(y=Y.uriResolver)!==null&&y!==void 0?y:f.default;return{strictSchema:(M=(k=Y.strictSchema)!==null&&k!==void 0?k:Ut)!==null&&M!==void 0?M:!0,strictNumbers:(z=(I=Y.strictNumbers)!==null&&I!==void 0?I:Ut)!==null&&z!==void 0?z:!0,strictTypes:(et=(q=Y.strictTypes)!==null&&q!==void 0?q:Ut)!==null&&et!==void 0?et:"log",strictTuples:(mt=(st=Y.strictTuples)!==null&&st!==void 0?st:Ut)!==null&&mt!==void 0?mt:"log",strictRequired:(X=(Mt=Y.strictRequired)!==null&&Mt!==void 0?Mt:Ut)!==null&&X!==void 0?X:!1,code:Y.code?{...Y.code,optimize:ne,regExp:Yt}:{optimize:ne,regExp:Yt},loopRequired:(Q=Y.loopRequired)!==null&&Q!==void 0?Q:_,loopEnum:(it=Y.loopEnum)!==null&&it!==void 0?it:_,meta:(lt=Y.meta)!==null&<!==void 0?lt:!0,messages:(ct=Y.messages)!==null&&ct!==void 0?ct:!0,inlineRefs:(dt=Y.inlineRefs)!==null&&dt!==void 0?dt:!0,schemaId:(St=Y.schemaId)!==null&&St!==void 0?St:"$id",addUsedSchema:(yt=Y.addUsedSchema)!==null&&yt!==void 0?yt:!0,validateSchema:(bt=Y.validateSchema)!==null&&bt!==void 0?bt:!0,validateFormats:(ut=Y.validateFormats)!==null&&ut!==void 0?ut:!0,unicodeRegExp:(It=Y.unicodeRegExp)!==null&&It!==void 0?It:!0,int32range:(Lt=Y.int32range)!==null&&Lt!==void 0?Lt:!0,uriResolver:he}}class S{constructor(T={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,T=this.opts={...T,...g(T)};const{es5:C,lines:$}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:C,lines:$}),this.logger=W(T.logger);const y=T.validateFormats;T.validateFormats=!1,this.RULES=(0,o.getRules)(),A.call(this,v,T,"NOT SUPPORTED"),A.call(this,b,T,"DEPRECATED","warn"),this._metaOpts=G.call(this),T.formats&&D.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),T.keywords&&U.call(this,T.keywords),typeof T.meta=="object"&&this.addMetaSchema(T.meta),N.call(this),T.validateFormats=y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:T,meta:C,schemaId:$}=this.opts;let y=h;$==="id"&&(y={...h},y.id=y.$id,delete y.$id),C&&T&&this.addMetaSchema(y,y[$],!1)}defaultMeta(){const{meta:T,schemaId:C}=this.opts;return this.opts.defaultMeta=typeof T=="object"?T[C]||T:void 0}validate(T,C){let $;if(typeof T=="string"){if($=this.getSchema(T),!$)throw new Error(`no schema with key or ref "${T}"`)}else $=this.compile(T);const y=$(C);return"$async"in $||(this.errors=$.errors),y}compile(T,C){const $=this._addSchema(T,C);return $.validate||this._compileSchemaEnv($)}compileAsync(T,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:$}=this.opts;return y.call(this,T,C);async function y(et,st){await k.call(this,et.$schema);const mt=this._addSchema(et,st);return mt.validate||M.call(this,mt)}async function k(et){et&&!this.getSchema(et)&&await y.call(this,{$ref:et},!0)}async function M(et){try{return this._compileSchemaEnv(et)}catch(st){if(!(st instanceof i.default))throw st;return I.call(this,st),await z.call(this,st.missingSchema),M.call(this,et)}}function I({missingSchema:et,missingRef:st}){if(this.refs[et])throw new Error(`AnySchema ${et} is loaded but ${st} cannot be resolved`)}async function z(et){const st=await q.call(this,et);this.refs[et]||await k.call(this,st.$schema),this.refs[et]||this.addSchema(st,et,C)}async function q(et){const st=this._loading[et];if(st)return st;try{return await(this._loading[et]=$(et))}finally{delete this._loading[et]}}}addSchema(T,C,$,y=this.opts.validateSchema){if(Array.isArray(T)){for(const M of T)this.addSchema(M,void 0,$,y);return this}let k;if(typeof T=="object"){const{schemaId:M}=this.opts;if(k=T[M],k!==void 0&&typeof k!="string")throw new Error(`schema ${M} must be string`)}return C=(0,c.normalizeId)(C||k),this._checkUnique(C),this.schemas[C]=this._addSchema(T,$,C,y,!0),this}addMetaSchema(T,C,$=this.opts.validateSchema){return this.addSchema(T,C,!0,$),this}validateSchema(T,C){if(typeof T=="boolean")return!0;let $;if($=T.$schema,$!==void 0&&typeof $!="string")throw new Error("$schema must be a string");if($=$||this.opts.defaultMeta||this.defaultMeta(),!$)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const y=this.validate($,T);if(!y&&C){const k="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(k);else throw new Error(k)}return y}getSchema(T){let C;for(;typeof(C=E.call(this,T))=="string";)T=C;if(C===void 0){const{schemaId:$}=this.opts,y=new s.SchemaEnv({schema:{},schemaId:$});if(C=s.resolveSchema.call(this,y,T),!C)return;this.refs[T]=C}return C.validate||this._compileSchemaEnv(C)}removeSchema(T){if(T instanceof RegExp)return this._removeAllSchemas(this.schemas,T),this._removeAllSchemas(this.refs,T),this;switch(typeof T){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const C=E.call(this,T);return typeof C=="object"&&this._cache.delete(C.schema),delete this.schemas[T],delete this.refs[T],this}case"object":{const C=T;this._cache.delete(C);let $=T[this.opts.schemaId];return $&&($=(0,c.normalizeId)($),delete this.schemas[$],delete this.refs[$]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(T){for(const C of T)this.addKeyword(C);return this}addKeyword(T,C){let $;if(typeof T=="string")$=T,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=$);else if(typeof T=="object"&&C===void 0){if(C=T,$=C.keyword,Array.isArray($)&&!$.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(nt.call(this,$,C),!C)return(0,u.eachItem)($,k=>ft.call(this,k)),this;_t.call(this,C);const y={...C,type:(0,l.getJSONTypes)(C.type),schemaType:(0,l.getJSONTypes)(C.schemaType)};return(0,u.eachItem)($,y.type.length===0?k=>ft.call(this,k,y):k=>y.type.forEach(M=>ft.call(this,k,y,M))),this}getKeyword(T){const C=this.RULES.all[T];return typeof C=="object"?C.definition:!!C}removeKeyword(T){const{RULES:C}=this;delete C.keywords[T],delete C.all[T];for(const $ of C.rules){const y=$.rules.findIndex(k=>k.keyword===T);y>=0&&$.rules.splice(y,1)}return this}addFormat(T,C){return typeof C=="string"&&(C=new RegExp(C)),this.formats[T]=C,this}errorsText(T=this.errors,{separator:C=", ",dataVar:$="data"}={}){return!T||T.length===0?"No errors":T.map(y=>`${$}${y.instancePath} ${y.message}`).reduce((y,k)=>y+C+k)}$dataMetaSchema(T,C){const $=this.RULES.all;T=JSON.parse(JSON.stringify(T));for(const y of C){const k=y.split("/").slice(1);let M=T;for(const I of k)M=M[I];for(const I in $){const z=$[I];if(typeof z!="object")continue;const{$data:q}=z.definition,et=M[I];q&&et&&(M[I]=at(et))}}return T}_removeAllSchemas(T,C){for(const $ in T){const y=T[$];(!C||C.test($))&&(typeof y=="string"?delete T[$]:y&&!y.meta&&(this._cache.delete(y.schema),delete T[$]))}}_addSchema(T,C,$,y=this.opts.validateSchema,k=this.opts.addUsedSchema){let M;const{schemaId:I}=this.opts;if(typeof T=="object")M=T[I];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof T!="boolean")throw new Error("schema must be object or boolean")}let z=this._cache.get(T);if(z!==void 0)return z;$=(0,c.normalizeId)(M||$);const q=c.getSchemaRefs.call(this,T,$);return z=new s.SchemaEnv({schema:T,schemaId:I,meta:C,baseId:$,localRefs:q}),this._cache.set(z.schema,z),k&&!$.startsWith("#")&&($&&this._checkUnique($),this.refs[$]=z),y&&this.validateSchema(T,!0),z}_checkUnique(T){if(this.schemas[T]||this.refs[T])throw new Error(`schema with key or id "${T}" already exists`)}_compileSchemaEnv(T){if(T.meta?this._compileMetaSchema(T):s.compileSchema.call(this,T),!T.validate)throw new Error("ajv implementation error");return T.validate}_compileMetaSchema(T){const C=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,T)}finally{this.opts=C}}}e.default=S,S.ValidationError=n.default,S.MissingRefError=i.default;function A(Y,T,C,$="error"){for(const y in Y){const k=y;k in T&&this.logger[$](`${C}: option ${y}. ${Y[k]}`)}}function E(Y){return Y=(0,c.normalizeId)(Y),this.schemas[Y]||this.refs[Y]}function N(){const Y=this.opts.schemas;if(Y)if(Array.isArray(Y))this.addSchema(Y);else for(const T in Y)this.addSchema(Y[T],T)}function D(){for(const Y in this.opts.formats){const T=this.opts.formats[Y];T&&this.addFormat(Y,T)}}function U(Y){if(Array.isArray(Y)){this.addVocabulary(Y);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const T in Y){const C=Y[T];C.keyword||(C.keyword=T),this.addKeyword(C)}}function G(){const Y={...this.opts};for(const T of p)delete Y[T];return Y}const K={log(){},warn(){},error(){}};function W(Y){if(Y===!1)return K;if(Y===void 0)return console;if(Y.log&&Y.warn&&Y.error)return Y;throw new Error("logger must implement log, warn and error methods")}const ot=/^[a-z_$][a-z0-9_$:-]*$/i;function nt(Y,T){const{RULES:C}=this;if((0,u.eachItem)(Y,$=>{if(C.keywords[$])throw new Error(`Keyword ${$} is already defined`);if(!ot.test($))throw new Error(`Keyword ${$} has invalid name`)}),!!T&&T.$data&&!("code"in T||"validate"in T))throw new Error('$data keyword must have "code" or "validate" function')}function ft(Y,T,C){var $;const y=T?.post;if(C&&y)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:k}=this;let M=y?k.post:k.rules.find(({type:z})=>z===C);if(M||(M={type:C,rules:[]},k.rules.push(M)),k.keywords[Y]=!0,!T)return;const I={keyword:Y,definition:{...T,type:(0,l.getJSONTypes)(T.type),schemaType:(0,l.getJSONTypes)(T.schemaType)}};T.before?$t.call(this,M,I,T.before):M.rules.push(I),k.all[Y]=I,($=T.implements)===null||$===void 0||$.forEach(z=>this.addKeyword(z))}function $t(Y,T,C){const $=Y.rules.findIndex(y=>y.keyword===C);$>=0?Y.rules.splice($,0,T):(Y.rules.push(T),this.logger.warn(`rule ${C} is not defined`))}function _t(Y){let{metaSchema:T}=Y;T!==void 0&&(Y.$data&&this.opts.$data&&(T=at(T)),Y.validateSchema=this.compile(T,!0))}const vt={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function at(Y){return{anyOf:[Y,vt]}}})(xm);const $L=sn(xm),SL=Wt({__proto__:null,default:$L},[xm]),EL=Qt(SL);var Km={},Ym={},Xm={};Object.defineProperty(Xm,"__esModule",{value:!0});const CL={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var kL=Xm.default=CL;const PL=Wt({__proto__:null,default:kL},[Xm]),TL=Qt(PL);var ms={};Object.defineProperty(ms,"__esModule",{value:!0});var h$=ms.callRef=m$=ms.getValidate=void 0;const OL=Vm,d$=Jn,an=Se,ca=Ki,f$=Bm,Qh=Me,NL={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return h();const u=f$.resolveRef.call(c,l,i,r);if(u===void 0)throw new OL.default(n.opts.uriResolver,i,r);if(u instanceof f$.SchemaEnv)return f(u);return d(u);function h(){if(o===l)return Zh(e,s,o,o.$async);const p=t.scopeValue("root",{ref:l});return Zh(e,(0,an._)`${p}.validate`,l,l.$async)}function f(p){const m=p$(e,p);Zh(e,m,p,p.$async)}function d(p){const m=t.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,an.stringify)(p)}:{ref:p}),v=t.name("valid"),b=e.subschema({schema:p,dataTypes:[],schemaPath:an.nil,topSchemaRef:m,errSchemaPath:r},v);e.mergeEvaluated(b),e.ok(v)}}};function p$(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,an._)`${r.scopeValue("wrapper",{ref:t})}.validate`}var m$=ms.getValidate=p$;function Zh(e,t,r,n){const{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?ca.default.this:an.nil;n?u():h();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");const p=i.let("valid");i.try(()=>{i.code((0,an._)`await ${(0,d$.callValidateCode)(e,t,l)}`),d(t),s||i.assign(p,!0)},m=>{i.if((0,an._)`!(${m} instanceof ${o.ValidationError})`,()=>i.throw(m)),f(m),s||i.assign(p,!1)}),e.ok(p)}function h(){e.result((0,d$.callValidateCode)(e,t,l),()=>d(t),()=>f(t))}function f(p){const m=(0,an._)`${p}.errors`;i.assign(ca.default.vErrors,(0,an._)`${ca.default.vErrors} === null ? ${m} : ${ca.default.vErrors}.concat(${m})`),i.assign(ca.default.errors,(0,an._)`${ca.default.vErrors}.length`)}function d(p){var m;if(!o.opts.unevaluated)return;const v=(m=r?.validate)===null||m===void 0?void 0:m.evaluated;if(o.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(o.props=Qh.mergeEvaluated.props(i,v.props,o.props));else{const b=i.var("props",(0,an._)`${p}.evaluated.props`);o.props=Qh.mergeEvaluated.props(i,b,o.props,an.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=Qh.mergeEvaluated.items(i,v.items,o.items));else{const b=i.var("items",(0,an._)`${p}.evaluated.items`);o.items=Qh.mergeEvaluated.items(i,b,o.items,an.Name)}}}h$=ms.callRef=Zh;var AL=ms.default=NL;const DL=Wt({__proto__:null,get callRef(){return h$},default:AL,get getValidate(){return m$}},[ms]),RL=Qt(DL);Object.defineProperty(Ym,"__esModule",{value:!0});const IL=TL,jL=RL,FL=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",IL.default,jL.default];var ML=Ym.default=FL;const LL=Wt({__proto__:null,default:ML},[Ym]),UL=Qt(LL);var Jm={},Wm={};Object.defineProperty(Wm,"__esModule",{value:!0});const td=Se,Po=td.operators,ed={maximum:{okStr:"<=",ok:Po.LTE,fail:Po.GT},minimum:{okStr:">=",ok:Po.GTE,fail:Po.LT},exclusiveMaximum:{okStr:"<",ok:Po.LT,fail:Po.GTE},exclusiveMinimum:{okStr:">",ok:Po.GT,fail:Po.LTE}},VL={message:({keyword:e,schemaCode:t})=>(0,td.str)`must be ${ed[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,td._)`{comparison: ${ed[e].okStr}, limit: ${t}}`},zL={keyword:Object.keys(ed),type:"number",schemaType:"number",$data:!0,error:VL,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,td._)`${r} ${ed[t].fail} ${n} || isNaN(${r})`)}};var GL=Wm.default=zL;const BL=Wt({__proto__:null,default:GL},[Wm]),HL=Qt(BL);var Qm={};Object.defineProperty(Qm,"__esModule",{value:!0});const Fl=Se,qL={message:({schemaCode:e})=>(0,Fl.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Fl._)`{multipleOf: ${e}}`},KL={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:qL,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,Fl._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,Fl._)`${s} !== parseInt(${s})`;e.fail$data((0,Fl._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};var YL=Qm.default=KL;const XL=Wt({__proto__:null,default:YL},[Qm]),JL=Qt(XL);var Zm={},tg={};Object.defineProperty(tg,"__esModule",{value:!0});function g$(e){const t=e.length;let r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}var WL=tg.default=g$;g$.code='require("ajv/dist/runtime/ucs2length").default';const QL=Wt({__proto__:null,default:WL},[tg]),ZL=Qt(QL);Object.defineProperty(Zm,"__esModule",{value:!0});const gs=Se,tU=Me,eU=ZL,rU={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,gs.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,gs._)`{limit: ${e}}`},nU={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:rU,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?gs.operators.GT:gs.operators.LT,s=i.opts.unicode===!1?(0,gs._)`${r}.length`:(0,gs._)`${(0,tU.useFunc)(e.gen,eU.default)}(${r})`;e.fail$data((0,gs._)`${s} ${o} ${n}`)}};var iU=Zm.default=nU;const oU=Wt({__proto__:null,default:iU},[Zm]),sU=Qt(oU);var eg={};Object.defineProperty(eg,"__esModule",{value:!0});const aU=Jn,rd=Se,lU={message:({schemaCode:e})=>(0,rd.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,rd._)`{pattern: ${e}}`},cU={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:lU,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,rd._)`(new RegExp(${i}, ${s}))`:(0,aU.usePattern)(e,n);e.fail$data((0,rd._)`!${a}.test(${t})`)}};var uU=eg.default=cU;const hU=Wt({__proto__:null,default:uU},[eg]),dU=Qt(hU);var rg={};Object.defineProperty(rg,"__esModule",{value:!0});const Ml=Se,fU={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Ml.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Ml._)`{limit: ${e}}`},pU={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:fU,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Ml.operators.GT:Ml.operators.LT;e.fail$data((0,Ml._)`Object.keys(${r}).length ${i} ${n}`)}};var mU=rg.default=pU;const gU=Wt({__proto__:null,default:mU},[rg]),yU=Qt(gU);var ng={};Object.defineProperty(ng,"__esModule",{value:!0});const Ll=Jn,Ul=Se,vU=Me,_U={message:({params:{missingProperty:e}})=>(0,Ul.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ul._)`{missingProperty: ${e}}`},bU={keyword:"required",type:"object",schemaType:"array",$data:!0,error:_U,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;const c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){const d=e.parentSchema.properties,{definedProperties:p}=e.it;for(const m of r)if(d?.[m]===void 0&&!p.has(m)){const v=s.schemaEnv.baseId+s.errSchemaPath,b=`required property "${m}" is not defined at "${v}" (strictRequired)`;(0,vU.checkStrictMode)(s,b,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(Ul.nil,h);else for(const d of r)(0,Ll.checkReportMissingProp)(e,d)}function u(){const d=t.let("missing");if(c||o){const p=t.let("valid",!0);e.block$data(p,()=>f(d,p)),e.ok(p)}else t.if((0,Ll.checkMissingProp)(e,r,d)),(0,Ll.reportMissingProp)(e,d),t.else()}function h(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Ll.noPropertyInData)(t,i,d,a.ownProperties),()=>e.error())})}function f(d,p){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(p,(0,Ll.propertyInData)(t,i,d,a.ownProperties)),t.if((0,Ul.not)(p),()=>{e.error(),t.break()})},Ul.nil)}}};var wU=ng.default=bU;const xU=Wt({__proto__:null,default:wU},[ng]),$U=Qt(xU);var ig={};Object.defineProperty(ig,"__esModule",{value:!0});const Vl=Se,SU={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,Vl.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Vl._)`{limit: ${e}}`},EU={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:SU,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Vl.operators.GT:Vl.operators.LT;e.fail$data((0,Vl._)`${r}.length ${i} ${n}`)}};var CU=ig.default=EU;const kU=Wt({__proto__:null,default:CU},[ig]),PU=Qt(kU);var og={},sg={};Object.defineProperty(sg,"__esModule",{value:!0});const y$=C5;y$.code='require("ajv/dist/runtime/equal").default';var TU=sg.default=y$;const OU=Wt({__proto__:null,default:TU},[sg]),ag=Qt(OU);Object.defineProperty(og,"__esModule",{value:!0});const lg=qh,Fr=Se,NU=Me,AU=ag,DU={message:({params:{i:e,j:t}})=>(0,Fr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Fr._)`{i: ${e}, j: ${t}}`},RU={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:DU,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=e;if(!n&&!i)return;const c=t.let("valid"),l=o.items?(0,lg.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,Fr._)`${s} === false`),e.ok(c);function u(){const p=t.let("i",(0,Fr._)`${r}.length`),m=t.let("j");e.setParams({i:p,j:m}),t.assign(c,!0),t.if((0,Fr._)`${p} > 1`,()=>(h()?f:d)(p,m))}function h(){return l.length>0&&!l.some(p=>p==="object"||p==="array")}function f(p,m){const v=t.name("item"),b=(0,lg.checkDataTypes)(l,v,a.opts.strictNumbers,lg.DataType.Wrong),_=t.const("indices",(0,Fr._)`{}`);t.for((0,Fr._)`;${p}--;`,()=>{t.let(v,(0,Fr._)`${r}[${p}]`),t.if(b,(0,Fr._)`continue`),l.length>1&&t.if((0,Fr._)`typeof ${v} == "string"`,(0,Fr._)`${v} += "_"`),t.if((0,Fr._)`typeof ${_}[${v}] == "number"`,()=>{t.assign(m,(0,Fr._)`${_}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,Fr._)`${_}[${v}] = ${p}`)})}function d(p,m){const v=(0,NU.useFunc)(t,AU.default),b=t.name("outer");t.label(b).for((0,Fr._)`;${p}--;`,()=>t.for((0,Fr._)`${m} = ${p}; ${m}--;`,()=>t.if((0,Fr._)`${v}(${r}[${p}], ${r}[${m}])`,()=>{e.error(),t.assign(c,!1).break(b)})))}}};var IU=og.default=RU;const jU=Wt({__proto__:null,default:IU},[og]),FU=Qt(jU);var cg={};Object.defineProperty(cg,"__esModule",{value:!0});const ug=Se,MU=Me,LU=ag,UU={message:"must be equal to constant",params:({schemaCode:e})=>(0,ug._)`{allowedValue: ${e}}`},VU={keyword:"const",$data:!0,error:UU,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,ug._)`!${(0,MU.useFunc)(t,LU.default)}(${r}, ${i})`):e.fail((0,ug._)`${o} !== ${r}`)}};var zU=cg.default=VU;const GU=Wt({__proto__:null,default:zU},[cg]),BU=Qt(GU);var hg={};Object.defineProperty(hg,"__esModule",{value:!0});const zl=Se,HU=Me,qU=ag,KU={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,zl._)`{allowedValues: ${e}}`},YU={keyword:"enum",schemaType:"array",$data:!0,error:KU,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const a=i.length>=s.opts.loopEnum;let c;const l=()=>c??(c=(0,HU.useFunc)(t,qU.default));let u;if(a||n)u=t.let("valid"),e.block$data(u,h);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const d=t.const("vSchema",o);u=(0,zl.or)(...i.map((p,m)=>f(d,m)))}e.pass(u);function h(){t.assign(u,!1),t.forOf("v",o,d=>t.if((0,zl._)`${l()}(${r}, ${d})`,()=>t.assign(u,!0).break()))}function f(d,p){const m=i[p];return typeof m=="object"&&m!==null?(0,zl._)`${l()}(${r}, ${d}[${p}])`:(0,zl._)`${r} === ${m}`}}};var XU=hg.default=YU;const JU=Wt({__proto__:null,default:XU},[hg]),WU=Qt(JU);Object.defineProperty(Jm,"__esModule",{value:!0});const QU=HL,ZU=JL,tV=sU,eV=dU,rV=yU,nV=$U,iV=PU,oV=FU,sV=BU,aV=WU,lV=[QU.default,ZU.default,tV.default,eV.default,rV.default,nV.default,iV.default,oV.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},sV.default,aV.default];var cV=Jm.default=lV;const uV=Wt({__proto__:null,default:cV},[Jm]),hV=Qt(uV);var dg={},Gl={};Object.defineProperty(Gl,"__esModule",{value:!0});var v$=Gl.validateAdditionalItems=void 0;const ys=Se,fg=Me,dV={message:({params:{len:e}})=>(0,ys.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ys._)`{limit: ${e}}`},fV={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:dV,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,fg.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}_$(e,n)}};function _$(e,t){const{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;const a=r.const("len",(0,ys._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,ys._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,fg.alwaysValidSchema)(s,n)){const l=r.var("valid",(0,ys._)`${a} <= ${t.length}`);r.if((0,ys.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:fg.Type.Num},l),s.allErrors||r.if((0,ys.not)(l),()=>r.break())})}}v$=Gl.validateAdditionalItems=_$;var pV=Gl.default=fV;const mV=Wt({__proto__:null,default:pV,get validateAdditionalItems(){return v$}},[Gl]),b$=Qt(mV);var pg={},Bl={};Object.defineProperty(Bl,"__esModule",{value:!0});var w$=Bl.validateTuple=void 0;const x$=Se,nd=Me,gV=Jn,yV={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return $$(e,"additionalItems",t);r.items=!0,!(0,nd.alwaysValidSchema)(r,t)&&e.ok((0,gV.validateArray)(e))}};function $$(e,t,r=e.schema){const{gen:n,parentSchema:i,data:o,keyword:s,it:a}=e;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=nd.mergeEvaluated.items(n,r.length,a.items));const c=n.name("valid"),l=n.const("len",(0,x$._)`${o}.length`);r.forEach((h,f)=>{(0,nd.alwaysValidSchema)(a,h)||(n.if((0,x$._)`${l} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function u(h){const{opts:f,errSchemaPath:d}=a,p=r.length,m=p===h.minItems&&(p===h.maxItems||h[t]===!1);if(f.strictTuples&&!m){const v=`"${s}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,nd.checkStrictMode)(a,v,f.strictTuples)}}}w$=Bl.validateTuple=$$;var vV=Bl.default=yV;const _V=Wt({__proto__:null,default:vV,get validateTuple(){return w$}},[Bl]),S$=Qt(_V);Object.defineProperty(pg,"__esModule",{value:!0});const bV=S$,wV={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,bV.validateTuple)(e,"items")};var xV=pg.default=wV;const $V=Wt({__proto__:null,default:xV},[pg]),SV=Qt($V);var mg={};Object.defineProperty(mg,"__esModule",{value:!0});const E$=Se,EV=Me,CV=Jn,kV=b$,PV={message:({params:{len:e}})=>(0,E$.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,E$._)`{limit: ${e}}`},TV={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:PV,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,EV.alwaysValidSchema)(n,t)&&(i?(0,kV.validateAdditionalItems)(e,i):e.ok((0,CV.validateArray)(e)))}};var OV=mg.default=TV;const NV=Wt({__proto__:null,default:OV},[mg]),AV=Qt(NV);var gg={};Object.defineProperty(gg,"__esModule",{value:!0});const Pn=Se,id=Me,DV={message:({params:{min:e,max:t}})=>t===void 0?(0,Pn.str)`must contain at least ${e} valid item(s)`:(0,Pn.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Pn._)`{minContains: ${e}}`:(0,Pn._)`{minContains: ${e}, maxContains: ${t}}`},RV={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:DV,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;let s,a;const{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;const u=t.const("len",(0,Pn._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,id.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,id.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,id.alwaysValidSchema)(o,r)){let m=(0,Pn._)`${u} >= ${s}`;a!==void 0&&(m=(0,Pn._)`${m} && ${u} <= ${a}`),e.pass(m);return}o.items=!0;const h=t.name("valid");a===void 0&&s===1?d(h,()=>t.if(h,()=>t.break())):s===0?(t.let(h,!0),a!==void 0&&t.if((0,Pn._)`${i}.length > 0`,f)):(t.let(h,!1),f()),e.result(h,()=>e.reset());function f(){const m=t.name("_valid"),v=t.let("count",0);d(m,()=>t.if(m,()=>p(v)))}function d(m,v){t.forRange("i",0,u,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:id.Type.Num,compositeRule:!0},m),v()})}function p(m){t.code((0,Pn._)`${m}++`),a===void 0?t.if((0,Pn._)`${m} >= ${s}`,()=>t.assign(h,!0).break()):(t.if((0,Pn._)`${m} > ${a}`,()=>t.assign(h,!1).break()),s===1?t.assign(h,!0):t.if((0,Pn._)`${m} >= ${s}`,()=>t.assign(h,!0)))}}};var IV=gg.default=RV;const jV=Wt({__proto__:null,default:IV},[gg]),FV=Qt(jV);var yg={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Se,r=Me,n=Jn;e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const h=l===1?"property":"properties";return(0,t.str)`must have ${h} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:h}})=>(0,t._)`{property: ${c},
|
|
64
|
+
missingProperty: ${h},
|
|
65
|
+
depsCount: ${l},
|
|
66
|
+
deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,u]=o(c);s(c,l),a(c,u)}};function o({schema:c}){const l={},u={};for(const h in c){if(h==="__proto__")continue;const f=Array.isArray(c[h])?l:u;f[h]=c[h]}return[l,u]}function s(c,l=c.schema){const{gen:u,data:h,it:f}=c;if(Object.keys(l).length===0)return;const d=u.let("missing");for(const p in l){const m=l[p];if(m.length===0)continue;const v=(0,n.propertyInData)(u,h,p,f.opts.ownProperties);c.setParams({property:p,depsCount:m.length,deps:m.join(", ")}),f.allErrors?u.if(v,()=>{for(const b of m)(0,n.checkReportMissingProp)(c,b)}):(u.if((0,t._)`${v} && (${(0,n.checkMissingProp)(c,m,d)})`),(0,n.reportMissingProp)(c,d),u.else())}}e.validatePropertyDeps=s;function a(c,l=c.schema){const{gen:u,data:h,keyword:f,it:d}=c,p=u.name("valid");for(const m in l)(0,r.alwaysValidSchema)(d,l[m])||(u.if((0,n.propertyInData)(u,h,m,d.opts.ownProperties),()=>{const v=c.subschema({keyword:f,schemaProp:m},p);c.mergeValidEvaluated(v,p)},()=>u.var(p,!0)),c.ok(p))}e.validateSchemaDeps=a,e.default=i})(yg);const MV=sn(yg),LV=Wt({__proto__:null,default:MV},[yg]),UV=Qt(LV);var vg={};Object.defineProperty(vg,"__esModule",{value:!0});const C$=Se,VV=Me,zV={message:"property name must be valid",params:({params:e})=>(0,C$._)`{propertyName: ${e.propertyName}}`},GV={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:zV,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,VV.alwaysValidSchema)(i,r))return;const o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,C$.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};var BV=vg.default=GV;const HV=Wt({__proto__:null,default:BV},[vg]),qV=Qt(HV);var _g={};Object.defineProperty(_g,"__esModule",{value:!0});const od=Jn,Zn=Se,KV=Ki,sd=Me,YV={message:"must NOT have additional properties",params:({params:e})=>(0,Zn._)`{additionalProperty: ${e.additionalProperty}}`},XV={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:YV,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");const{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,sd.alwaysValidSchema)(s,r))return;const l=(0,od.allSchemaProperties)(n.properties),u=(0,od.allSchemaProperties)(n.patternProperties);h(),e.ok((0,Zn._)`${o} === ${KV.default.errors}`);function h(){t.forIn("key",i,v=>{!l.length&&!u.length?p(v):t.if(f(v),()=>p(v))})}function f(v){let b;if(l.length>8){const _=(0,sd.schemaRefOrVal)(s,n.properties,"properties");b=(0,od.isOwnProperty)(t,_,v)}else l.length?b=(0,Zn.or)(...l.map(_=>(0,Zn._)`${v} === ${_}`)):b=Zn.nil;return u.length&&(b=(0,Zn.or)(b,...u.map(_=>(0,Zn._)`${(0,od.usePattern)(e,_)}.test(${v})`))),(0,Zn.not)(b)}function d(v){t.code((0,Zn._)`delete ${i}[${v}]`)}function p(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){d(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,sd.alwaysValidSchema)(s,r)){const b=t.name("valid");c.removeAdditional==="failing"?(m(v,b,!1),t.if((0,Zn.not)(b),()=>{e.reset(),d(v)})):(m(v,b),a||t.if((0,Zn.not)(b),()=>t.break()))}}function m(v,b,_){const g={keyword:"additionalProperties",dataProp:v,dataPropType:sd.Type.Str};_===!1&&Object.assign(g,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(g,b)}}};var JV=_g.default=XV;const WV=Wt({__proto__:null,default:JV},[_g]),k$=Qt(WV);var bg={};Object.defineProperty(bg,"__esModule",{value:!0});const QV=jl,P$=Jn,wg=Me,T$=k$,ZV={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&T$.default.code(new QV.KeywordCxt(o,T$.default,"additionalProperties"));const s=(0,P$.allSchemaProperties)(r);for(const h of s)o.definedProperties.add(h);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=wg.mergeEvaluated.props(t,(0,wg.toHash)(s),o.props));const a=s.filter(h=>!(0,wg.alwaysValidSchema)(o,r[h]));if(a.length===0)return;const c=t.name("valid");for(const h of a)l(h)?u(h):(t.if((0,P$.propertyInData)(t,i,h,o.opts.ownProperties)),u(h),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(h),e.ok(c);function l(h){return o.opts.useDefaults&&!o.compositeRule&&r[h].default!==void 0}function u(h){e.subschema({keyword:"properties",schemaProp:h,dataProp:h},c)}}};var tz=bg.default=ZV;const ez=Wt({__proto__:null,default:tz},[bg]),rz=Qt(ez);var xg={};Object.defineProperty(xg,"__esModule",{value:!0});const O$=Jn,ad=Se,N$=Me,A$=Me,nz={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,a=(0,O$.allSchemaProperties)(r),c=a.filter(m=>(0,N$.alwaysValidSchema)(o,r[m]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;const l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof ad.Name)&&(o.props=(0,A$.evaluatedPropsToName)(t,o.props));const{props:h}=o;f();function f(){for(const m of a)l&&d(m),o.allErrors?p(m):(t.var(u,!0),p(m),t.if(u))}function d(m){for(const v in l)new RegExp(m).test(v)&&(0,N$.checkStrictMode)(o,`property ${v} matches pattern ${m} (use allowMatchingProperties)`)}function p(m){t.forIn("key",n,v=>{t.if((0,ad._)`${(0,O$.usePattern)(e,m)}.test(${v})`,()=>{const b=c.includes(m);b||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:v,dataPropType:A$.Type.Str},u),o.opts.unevaluated&&h!==!0?t.assign((0,ad._)`${h}[${v}]`,!0):!b&&!o.allErrors&&t.if((0,ad.not)(u),()=>t.break())})})}}};var iz=xg.default=nz;const oz=Wt({__proto__:null,default:iz},[xg]),sz=Qt(oz);var $g={};Object.defineProperty($g,"__esModule",{value:!0});const az=Me,lz={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,az.alwaysValidSchema)(n,r)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};var cz=$g.default=lz;const uz=Wt({__proto__:null,default:cz},[$g]),hz=Qt(uz);var Sg={};Object.defineProperty(Sg,"__esModule",{value:!0});const dz=Jn,fz={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:dz.validateUnion,error:{message:"must match a schema in anyOf"}};var pz=Sg.default=fz;const mz=Wt({__proto__:null,default:pz},[Sg]),gz=Qt(mz);var Eg={};Object.defineProperty(Eg,"__esModule",{value:!0});const ld=Se,yz=Me,vz={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,ld._)`{passingSchemas: ${e.passing}}`},_z={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:vz,code(e){const{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,h)=>{let f;(0,yz.alwaysValidSchema)(i,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},c),h>0&&t.if((0,ld._)`${c} && ${s}`).assign(s,!1).assign(a,(0,ld._)`[${a}, ${h}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,h),f&&e.mergeEvaluated(f,ld.Name)})})}}};var bz=Eg.default=_z;const wz=Wt({__proto__:null,default:bz},[Eg]),xz=Qt(wz);var Cg={};Object.defineProperty(Cg,"__esModule",{value:!0});const $z=Me,Sz={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach((o,s)=>{if((0,$z.alwaysValidSchema)(n,o))return;const a=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(a)})}};var Ez=Cg.default=Sz;const Cz=Wt({__proto__:null,default:Ez},[Cg]),kz=Qt(Cz);var kg={};Object.defineProperty(kg,"__esModule",{value:!0});const cd=Se,D$=Me,Pz={message:({params:e})=>(0,cd.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,cd._)`{failingKeyword: ${e.ifClause}}`},Tz={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Pz,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,D$.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=R$(n,"then"),o=R$(n,"else");if(!i&&!o)return;const s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),i&&o){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else i?t.if(a,l("then")):t.if((0,cd.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,h){return()=>{const f=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(f,s),h?t.assign(h,(0,cd._)`${u}`):e.setParams({ifClause:u})}}}};function R$(e,t){const r=e.schema[t];return r!==void 0&&!(0,D$.alwaysValidSchema)(e,r)}var Oz=kg.default=Tz;const Nz=Wt({__proto__:null,default:Oz},[kg]),Az=Qt(Nz);var Pg={};Object.defineProperty(Pg,"__esModule",{value:!0});const Dz=Me,Rz={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,Dz.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};var Iz=Pg.default=Rz;const jz=Wt({__proto__:null,default:Iz},[Pg]),Fz=Qt(jz);Object.defineProperty(dg,"__esModule",{value:!0});const Mz=b$,Lz=SV,Uz=S$,Vz=AV,zz=FV,Gz=UV,Bz=qV,Hz=k$,qz=rz,Kz=sz,Yz=hz,Xz=gz,Jz=xz,Wz=kz,Qz=Az,Zz=Fz;function tG(e=!1){const t=[Yz.default,Xz.default,Jz.default,Wz.default,Qz.default,Zz.default,Bz.default,Hz.default,Gz.default,qz.default,Kz.default];return e?t.push(Lz.default,Vz.default):t.push(Mz.default,Uz.default),t.push(zz.default),t}var eG=dg.default=tG;const rG=Wt({__proto__:null,default:eG},[dg]),nG=Qt(rG);var Tg={},Og={};Object.defineProperty(Og,"__esModule",{value:!0});const yr=Se,iG={message:({schemaCode:e})=>(0,yr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,yr._)`{format: ${e}}`},oG={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:iG,code(e,t){const{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:h}=a;if(!c.validateFormats)return;i?f():d();function f(){const p=r.scopeValue("formats",{ref:h.formats,code:c.code.formats}),m=r.const("fDef",(0,yr._)`${p}[${s}]`),v=r.let("fType"),b=r.let("format");r.if((0,yr._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(v,(0,yr._)`${m}.type || "string"`).assign(b,(0,yr._)`${m}.validate`),()=>r.assign(v,(0,yr._)`"string"`).assign(b,m)),e.fail$data((0,yr.or)(_(),g()));function _(){return c.strictSchema===!1?yr.nil:(0,yr._)`${s} && !${b}`}function g(){const S=u.$async?(0,yr._)`(${m}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,yr._)`${b}(${n})`,A=(0,yr._)`(typeof ${b} == "function" ? ${S} : ${b}.test(${n}))`;return(0,yr._)`${b} && ${b} !== true && ${v} === ${t} && !${A}`}}function d(){const p=h.formats[o];if(!p){_();return}if(p===!0)return;const[m,v,b]=g(p);m===t&&e.pass(S());function _(){if(c.strictSchema===!1){h.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function g(A){const E=A instanceof RegExp?(0,yr.regexpCode)(A):c.code.formats?(0,yr._)`${c.code.formats}${(0,yr.getProperty)(o)}`:void 0,N=r.scopeValue("formats",{key:o,ref:A,code:E});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,yr._)`${N}.validate`]:["string",A,N]}function S(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,yr._)`await ${b}(${n})`}return typeof v=="function"?(0,yr._)`${b}(${n})`:(0,yr._)`${b}.test(${n})`}}}};var sG=Og.default=oG;const aG=Wt({__proto__:null,default:sG},[Og]),lG=Qt(aG);Object.defineProperty(Tg,"__esModule",{value:!0});const cG=lG,uG=[cG.default];var hG=Tg.default=uG;const dG=Wt({__proto__:null,default:hG},[Tg]),fG=Qt(dG);var vs={};Object.defineProperty(vs,"__esModule",{value:!0});var I$=vs.contentVocabulary=j$=vs.metadataVocabulary=void 0,j$=vs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];I$=vs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];const pG=Wt({__proto__:null,get contentVocabulary(){return I$},default:vs,get metadataVocabulary(){return j$}},[vs]),mG=Qt(pG);Object.defineProperty(Km,"__esModule",{value:!0});const gG=UL,yG=hV,vG=nG,_G=fG,F$=mG,bG=[gG.default,yG.default,(0,vG.default)(),_G.default,F$.metadataVocabulary,F$.contentVocabulary];var wG=Km.default=bG;const xG=Wt({__proto__:null,default:wG},[Km]),$G=Qt(xG);var Ng={},Ag={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(Ag);const SG=sn(Ag),EG=Wt({__proto__:null,default:SG},[Ag]),CG=Qt(EG);Object.defineProperty(Ng,"__esModule",{value:!0});const ua=Se,Dg=CG,M$=Bm,kG=Me,PG={message:({params:{discrError:e,tagName:t}})=>e===Dg.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,ua._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},TG={keyword:"discriminator",type:"object",schemaType:"object",error:PG,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),l=t.const("tag",(0,ua._)`${r}${(0,ua.getProperty)(a)}`);t.if((0,ua._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:Dg.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function u(){const d=f();t.if(!1);for(const p in d)t.elseIf((0,ua._)`${l} === ${p}`),t.assign(c,h(d[p]));t.else(),e.error(!1,{discrError:Dg.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function h(d){const p=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:d},p);return e.mergeEvaluated(m,ua.Name),p}function f(){var d;const p={},m=b(i);let v=!0;for(let S=0;S<s.length;S++){let A=s[S];A?.$ref&&!(0,kG.schemaHasRulesButRef)(A,o.self.RULES)&&(A=M$.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,A?.$ref),A instanceof M$.SchemaEnv&&(A=A.schema));const E=(d=A?.properties)===null||d===void 0?void 0:d[a];if(typeof E!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);v=v&&(m||b(A)),_(E,S)}if(!v)throw new Error(`discriminator: "${a}" must be required`);return p;function b({required:S}){return Array.isArray(S)&&S.includes(a)}function _(S,A){if(S.const)g(S.const,A);else if(S.enum)for(const E of S.enum)g(E,A);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function g(S,A){if(typeof S!="string"||S in p)throw new Error(`discriminator: "${a}" values must be unique strings`);p[S]=A}}}};var OG=Ng.default=TG;const NG=Wt({__proto__:null,default:OG},[Ng]),AG=Qt(NG),DG="http://json-schema.org/draft-07/schema#",RG="http://json-schema.org/draft-07/schema#",IG="Core schema meta-schema",jG={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},FG=["object","boolean"],MG={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},LG={$schema:DG,$id:RG,title:IG,definitions:jG,type:FG,properties:MG,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=EL,n=$G,i=AG,o=LG,s=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(p,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=jl;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Se;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var h=Mm;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=Vm;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(wm,wm.exports);var L$=wm.exports;const U$=sn(L$),UG=Wt({__proto__:null,default:U$},[L$]);var Rg={exports:{}};const VG=Qt(UG);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=VG,n=Se,i=Nl,o=jl,s=Al,a=Ki,c="errorMessage",l=new r.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},h=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,d=/^""\s*\+\s*|\s*\+\s*""$/g;function p(v){return{keyword:c,schemaType:["string","object"],post:!0,code(b){const{gen:_,data:g,schema:S,schemaValue:A,it:E}=b;if(E.createErrors===!1)return;const N=S,D=n.strConcat(a.default.instancePath,E.errorPath);_.if(r._`${a.default.errors} > 0`,()=>{if(typeof N=="object"){const[$,y]=G(N);y&&K(y),$&&W($),ot(U(N))}const C=typeof N=="string"?N:N._;C&&nt(C),v.keepErrors||ft()});function U({properties:C,items:$}){const y={};if(C){y.props={};for(const k in C)y.props[k]=[]}if($){y.items={};for(let k=0;k<$.length;k++)y.items[k]=[]}return y}function G(C){let $,y;for(const k in C){if(k==="properties"||k==="items")continue;const M=C[k];if(typeof M=="object"){$||($={});const I=$[k]={};for(const z in M)I[z]=[]}else y||(y={}),y[k]=[]}return[$,y]}function K(C){const $=_.const("emErrors",r.stringify(C)),y=_.const("templates",at(C,S));_.forOf("err",a.default.vErrors,z=>_.if($t(z,$),()=>_.code(r._`${$}[${z}.keyword].push(${z})`).assign(r._`${z}.${l}`,!0)));const{singleError:k}=v;if(k){const z=_.let("message",r._`""`),q=_.let("paramsErrors",r._`[]`);M(et=>{_.if(z,()=>_.code(r._`${z} += ${typeof k=="string"?k:";"}`)),_.code(r._`${z} += ${I(et)}`),_.assign(q,r._`${q}.concat(${$}[${et}])`)}),s.reportError(b,{message:z,params:r._`{errors: ${q}}`})}else M(z=>s.reportError(b,{message:I(z),params:r._`{errors: ${$}[${z}]}`}));function M(z){_.forIn("key",$,q=>_.if(r._`${$}[${q}].length`,()=>z(q)))}function I(z){return r._`${z} in ${y} ? ${y}[${z}]() : ${A}[${z}]`}}function W(C){const $=_.const("emErrors",r.stringify(C)),y=[];for(const q in C)y.push([q,at(C[q],S[q])]);const k=_.const("templates",_.object(...y)),M=_.scopeValue("obj",{ref:u,code:r.stringify(u)}),I=_.let("emPropParams"),z=_.let("emParamsErrors");_.forOf("err",a.default.vErrors,q=>_.if($t(q,$),()=>{_.assign(I,r._`${M}[${q}.keyword]`),_.assign(z,r._`${$}[${q}.keyword][${q}.params[${I}]]`),_.if(z,()=>_.code(r._`${z}.push(${q})`).assign(r._`${q}.${l}`,!0))})),_.forIn("key",$,q=>_.forIn("keyProp",r._`${$}[${q}]`,et=>{_.assign(z,r._`${$}[${q}][${et}]`),_.if(r._`${z}.length`,()=>{const st=_.const("tmpl",r._`${k}[${q}] && ${k}[${q}][${et}]`);s.reportError(b,{message:r._`${st} ? ${st}() : ${A}[${q}][${et}]`,params:r._`{errors: ${z}}`})})}))}function ot(C){const{props:$,items:y}=C;if(!$&&!y)return;const k=r._`typeof ${g} == "object"`,M=r._`Array.isArray(${g})`,I=_.let("emErrors");let z,q;const et=_.let("templates");$&&y?(z=_.let("emChildKwd"),_.if(k),_.if(M,()=>{st(y,S.items),_.assign(z,r.str`items`)},()=>{st($,S.properties),_.assign(z,r.str`properties`)}),q=r._`[${z}]`):y?(_.if(M),st(y,S.items),q=r._`.items`):$&&(_.if(n.and(k,n.not(M))),st($,S.properties),q=r._`.properties`),_.forOf("err",a.default.vErrors,mt=>_t(mt,I,Mt=>_.code(r._`${I}[${Mt}].push(${mt})`).assign(r._`${mt}.${l}`,!0))),_.forIn("key",I,mt=>_.if(r._`${I}[${mt}].length`,()=>{s.reportError(b,{message:r._`${mt} in ${et} ? ${et}[${mt}]() : ${A}${q}[${mt}]`,params:r._`{errors: ${I}[${mt}]}`}),_.assign(r._`${a.default.vErrors}[${a.default.errors}-1].instancePath`,r._`${D} + "/" + ${mt}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),_.endIf();function st(mt,Mt){_.assign(I,r.stringify(mt)),_.assign(et,at(mt,Mt))}}function nt(C){const $=_.const("emErrs",r._`[]`);_.forOf("err",a.default.vErrors,y=>_.if(vt(y),()=>_.code(r._`${$}.push(${y})`).assign(r._`${y}.${l}`,!0))),_.if(r._`${$}.length`,()=>s.reportError(b,{message:Y(C),params:r._`{errors: ${$}}`}))}function ft(){const C=_.const("emErrs",r._`[]`);_.forOf("err",a.default.vErrors,$=>_.if(r._`!${$}.${l}`,()=>_.code(r._`${C}.push(${$})`))),_.assign(a.default.vErrors,C).assign(a.default.errors,r._`${C}.length`)}function $t(C,$){return n.and(r._`${C}.keyword !== ${c}`,r._`!${C}.${l}`,r._`${C}.instancePath === ${D}`,r._`${C}.keyword in ${$}`,r._`${C}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${C}.schemaPath.slice(${E.errSchemaPath.length}))`)}function _t(C,$,y){_.if(n.and(r._`${C}.keyword !== ${c}`,r._`!${C}.${l}`,r._`${C}.instancePath.indexOf(${D}) === 0`),()=>{const k=_.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),M=_.const("emMatches",r._`${k}.exec(${C}.instancePath.slice(${D}.length))`),I=_.const("emChild",r._`${M} && ${M}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);_.if(r._`${I} !== undefined && ${I} in ${$}`,()=>y(I))})}function vt(C){return n.and(r._`${C}.keyword !== ${c}`,r._`!${C}.${l}`,n.or(r._`${C}.instancePath === ${D}`,n.and(r._`${C}.instancePath.indexOf(${D}) === 0`,r._`${C}.instancePath[${D}.length] === "/"`)),r._`${C}.schemaPath.indexOf(${E.errSchemaPath}) === 0`,r._`${C}.schemaPath[${E.errSchemaPath}.length] === "/"`)}function at(C,$){const y=[];for(const k in C){const M=$[k];h.test(M)&&y.push([k,T(M)])}return _.object(...y)}function Y(C){return h.test(C)?new i._Code(i.safeStringify(C).replace(f,($,y)=>`" + JSON.stringify(${o.getData(y,E)}) + "`).replace(d,"")):r.stringify(C)}function T(C){return r._`function(){return ${Y(C)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const m=(v,b={})=>{if(!v.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(v.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return v.addKeyword(p(b))};t.default=m,e.exports=m,e.exports.default=m})(Rg,Rg.exports);var zG=Rg.exports;const GG=sn(zG),BG=new U$({allErrors:!0});GG(BG);const V$=(e,t="image/svg+xml",r="utf-8")=>new Blob([e],{type:`${t};charset=${r}`}),HG=e=>new XMLSerializer().serializeToString(e),qG=(e,t="image/svg+xml",r="utf-8")=>V$(HG(e),t,r),z$=(e,t)=>{const r=document.createElement("a");r.style.visibility="hidden",document.body.appendChild(r),r.download=t,typeof e=="string"?r.href=e:r.href=window.URL.createObjectURL(e),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(r.href)};function G$(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function B$(){const e=G$();return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight}}function KG(){const e=G$();return{clientTop:e.clientTop,clientLeft:e.clientLeft,clientWidth:e.clientWidth,clientHeight:e.clientHeight}}function YG(){const{clientWidth:e,clientHeight:t}=KG();return{width:window.innerWidth||e,height:window.innerHeight||t}}function XG(e){const{top:t,left:r}=e.getBoundingClientRect(),n=B$();return{x:r+n.scrollLeft,y:t+n.scrollTop}}function JG(e){if(e.pageX&&e.pageY)return{x:e.pageX,y:e.pageY};const t=B$();return{x:e.clientX+t.scrollLeft,y:e.clientY+t.scrollTop}}function H$(e,t){const r=JG(t),n=XG(e);return{x:r.x-n.x,y:r.y-n.y}}function WG(){const e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){const n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}const r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}WG();class Hl{static onDocumentReady(t){function r(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",r))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",r),r())}static getCSSVar(t){return getComputedStyle(document.documentElement).getPropertyValue(t)}static setCSSVar(t,r){document.documentElement.style.setProperty(t,r)}static dom=new Proxy({},{get(t,r){return function(n={},...i){const o=document.createElement(r);for(const s of Object.keys(n))o.setAttribute(s,n[s]);for(const s of i)typeof s=="string"?o.appendChild(document.createTextNode(s)):o.appendChild(s);return o}}});static compileTemplate(t){return t=t.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),t="echo(`"+t+"`);",`(function parse(data){
|
|
67
|
+
let output = "";
|
|
68
|
+
function echo(html){
|
|
69
|
+
output += html;
|
|
70
|
+
}
|
|
71
|
+
${t}
|
|
72
|
+
return output;
|
|
73
|
+
})`}static safeHtml(t,r="encode"){const n={"&":"&","<":"<",">":">",""":'"',"'":"'"};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t=t.replace(new RegExp(r=="decode"?i:n[i],"g"),r=="decode"?n[i]:i));return t}static loadScript(t){const r=document.createElement("script");r.type="text/javascript",r.src=t,r.async=!1,document.body.appendChild(r),r.onload=()=>{},r.onerror=()=>{}}static loadStyle(t){const r=document.createElement("link");r.rel="stylesheet",r.href=t,document.head.insertBefore(r,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}static waitForStyleSheetsLoaded=()=>new Promise(t=>{const r=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let n=document.styleSheets.length??0;const i=()=>n>=r.length?(t(),!0):!1;i()||r.forEach(o=>{o.onload=()=>{n+=1,i()}})});static lazyloadImages(){const t=document.getElementsByTagName("img"),r=YG().height;let n=0;return()=>{for(let i=n;i<t.length;i++)t[i].getBoundingClientRect().top<r&&(t[i].src=t[i].getAttribute("data-src")??"",n=i+1)}}static iframePostMessage(t,r="http://test.com/localstorage.html"){const n=document.createElement("iframe");n.src=r,document.body.append(n),setTimeout(function(){n.contentWindow?.postMessage(t,r)},4e3),setTimeout(function(){n.remove()},6e3)}static getTextWidth=(t,r,n=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.padding="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=r>12?r+"px":"12px",i.style.fontWeight=n.toString(),i.innerText=t,document.body.appendChild(i);const o=i.offsetWidth;return document.body.removeChild(i),o};static getFixedWidthText=(t,r,n=12,i=400,o=!0)=>{let s="",a="",c="";if(!t||r<n||typeof t!="string")return s;const l=t.split(""),u=document.createElement("span");u.style.visibility="hidden",u.style.padding="0",u.style.whiteSpace="nowrap",u.style.overflow="visible",u.style.fontSize=n>12?n+"px":"12px",u.style.fontWeight=i.toString(),document.body.appendChild(u);for(let h=0,f=l.length;h<f;h++){const d=l[h];if(a=c,c+=d,s=c,u.innerText=c,u.offsetWidth>r){o?s=a+"...":s=a;break}}return document.body.removeChild(u),s};static getLocation(){return new Promise((t,r)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(n=>{t(n.coords)}):r("Geolocation is not supported by this browser")})}static vibrate(t=200){"vibrate"in navigator?window.navigator.vibrate(t):console.error("Your device is not support vibrate on this browser.")}static copyToClipboard=t=>navigator.clipboard.writeText(t);static getSelectedText=()=>window.getSelection()?.toString();static siblings=t=>Array.prototype.slice.call(t.parentNode?.children).filter(r=>r!==t);static isElementFocus=t=>t===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1)}function Ig(e){return e%360*Math.PI/180}function QG(e){return e*180/Math.PI%360}function ZG(e,t,r,n){const i=e-r,o=t-n;return Math.sqrt(i*i+o*o)}function tB(e,t,r,n){const i=r-e,o=n-t;return Math.atan2(o,i)}function jg(e){return e[0]*e[0]+e[1]*e[1]}function q$(e){const t=Math.sqrt(jg(e));e[0]&&(e[0]/=t),e[1]&&(e[1]/=t)}class ql{x;y;vx;vy;ax;ay;mass;constructor(t){this.x=t.x,this.y=t.y,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||0}fromAngleAndLength(t,r){return new ql({x:Math.cos(t)*r,y:Math.sin(t)*r})}distanceTo(t){return ZG(this.x,this.y,t.x,t.y)}angleTo(t){return tB(this.x,this.y,t.x,t.y)}followTo(t,r=3){const n=this.angleTo(t),{x:i,y:o}=this.fromAngleAndLength(n,r);this.vx=i,this.vy=o,this.nextFrame()}followAccelerationTo(t,r=.05){const n=this.angleTo(t),{x:i,y:o}=this.fromAngleAndLength(n,r);this.ax=i,this.ay=o,this.nextFrame()}nextFrame(t){const r=t?.gravity??0,n=t?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=r,n>0){const i=Math.atan2(this.vy,this.vx);let o=Math.sqrt(this.vx*this.vx+this.vy*this.vy);o>n?o-=n:o=0,this.vx=Math.cos(i)*o,this.vy=Math.sin(i)*o}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(t,r){const n=r?.gravity??0,i=r?.friction??1,o=r?.easing??.05,s=t.x-this.x,a=t.y-this.y;this.vx=s*o,this.vy=a*o,this.vy+=n,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(t,r){const n=r?.gravity??0,i=r?.friction??.95,o=r?.spring??.03;(Array.isArray(t)?t:[t]).forEach(s=>{const a=s.x-this.x,c=s.y-this.y,l=a*o,u=c*o;this.vx+=l,this.vy+=u}),this.vy+=n,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringConnect(t,r){const n=r?.gravity??0,i=r?.friction??.95,o=r?.spring??.03,s=r?.springLength??100,a=this.angleTo(t);this.nextFrameSpringTo(new ql({x:t.x-Math.cos(a)*s,y:t.y-Math.sin(a)*s}),{spring:o,friction:i,gravity:n})}}let eB=class extends ql{width;height;constructor(e){super(e),this.width=e.width,this.height=e.height}eq(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height}isIntersectRect(e){return!(this.x+this.width<e.x||e.x+e.width<this.x||this.y+this.height<e.y||e.y+e.height<this.y)}isContainPoint(e){return!(e.x<this.x||e.x>this.x+this.width||e.y<this.y||e.y>this.y+this.height)}toArray(){return[this.x,this.y,this.width,this.height]}clone(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height}};class _s extends ql{radius;constructor(t){super(t),this.radius=t?.radius??0}toSVGPathData(){return[this.x,this.y]}toSVGPathD(){return`${this.x},${this.y}`}setX(t){this.x=t}setY(t){this.y=t}setXY(t,r){this.x=t,this.y=r}eq(t){return this.x===t.x&&this.y===t.y}midPointBtw(t){return new _s({x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2})}toArray(){return[this.x,this.y]}clone(t){this.setXY(t.x,t.y)}getBounds(){return new eB({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}nextFrameCollisionTo(t){const r=t.x-this.x,n=t.y-this.y;if(Math.sqrt(r*r+n*n)<this.radius+t.radius){const o=Math.atan2(n,r),s=Math.sin(o),a=Math.cos(o),c={x:0,y:0},l=i(r,n,s,a,!0),u=i(this.vx,this.vy,s,a,!0),h=i(t.vx,t.vy,s,a,!0),f=u.x-h.x;u.x=((this.mass-t.mass)*u.x+2*t.mass*h.x)/(this.mass+t.mass),h.x=f+u.x;const d=Math.abs(u.x)+Math.abs(h.x),p=this.radius+t.radius-Math.abs(c.x-l.x);c.x+=u.x/d*p,l.x+=h.x/d*p;const m=i(c.x,c.y,s,a,!1),v=i(l.x,l.y,s,a,!1);t.x=this.x+v.x,t.y=this.y+v.y,this.x=this.x+m.x,this.y=this.y+m.y;const b=i(u.x,u.y,s,a,!1),_=i(h.x,h.y,s,a,!1);this.vx=b.x,this.vy=b.y,t.vx=_.x,t.vy=_.y}function i(o,s,a,c,l=!1){return{x:l?o*c+s*a:o*c-s*a,y:l?s*c-o*a:s*c+o*a}}}nextFrameBounce(t){const r=t.left,n=t.top,i=t.right,o=t.bottom,s=t?.bounce??-1;this.x+this.radius>i?(this.x=i-this.radius,this.vx*=s):this.x-this.radius<r&&(this.x=r+this.radius,this.vx*=s),this.y+this.radius>o?(this.y=o-this.radius,this.vy*=s):this.y-this.radius<n&&(this.y=n+this.radius,this.vy*=s)}}var Fg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function se(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var rB={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
74
|
+
* http://hammerjs.github.io/
|
|
75
|
+
*
|
|
76
|
+
* Copyright (c) 2016 Jorik Tangelder;
|
|
77
|
+
* Licensed under the MIT license */(function(e){(function(t,r,n,i){var o=["","webkit","Moz","MS","ms","o"],s=r.createElement("div"),a="function",c=Math.round,l=Math.abs,u=Date.now;function h(w,P,F){return setTimeout(g(w,F),P)}function f(w,P,F){return Array.isArray(w)?(d(w,F[P],F),!0):!1}function d(w,P,F){var B;if(w)if(w.forEach)w.forEach(P,F);else if(w.length!==i)for(B=0;B<w.length;)P.call(F,w[B],B,w),B++;else for(B in w)w.hasOwnProperty(B)&&P.call(F,w[B],B,w)}function p(w,P,F){var B="DEPRECATED METHOD: "+P+`
|
|
78
|
+
`+F+` AT
|
|
79
|
+
`;return function(){var H=new Error("get-stack-trace"),J=H&&H.stack?H.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",rt=t.console&&(t.console.warn||t.console.log);return rt&&rt.call(t.console,B,J),w.apply(this,arguments)}}var m;typeof Object.assign!="function"?m=function(w){if(w===i||w===null)throw new TypeError("Cannot convert undefined or null to object");for(var P=Object(w),F=1;F<arguments.length;F++){var B=arguments[F];if(B!==i&&B!==null)for(var H in B)B.hasOwnProperty(H)&&(P[H]=B[H])}return P}:m=Object.assign;var v=p(function(w,P,F){for(var B=Object.keys(P),H=0;H<B.length;)(!F||F&&w[B[H]]===i)&&(w[B[H]]=P[B[H]]),H++;return w},"extend","Use `assign`."),b=p(function(w,P){return v(w,P,!0)},"merge","Use `assign`.");function _(w,P,F){var B=P.prototype,H;H=w.prototype=Object.create(B),H.constructor=w,H._super=B,F&&m(H,F)}function g(w,P){return function(){return w.apply(P,arguments)}}function S(w,P){return typeof w==a?w.apply(P&&P[0]||i,P):w}function A(w,P){return w===i?P:w}function E(w,P,F){d(G(P),function(B){w.addEventListener(B,F,!1)})}function N(w,P,F){d(G(P),function(B){w.removeEventListener(B,F,!1)})}function D(w,P){for(;w;){if(w==P)return!0;w=w.parentNode}return!1}function U(w,P){return w.indexOf(P)>-1}function G(w){return w.trim().split(/\s+/g)}function K(w,P,F){if(w.indexOf&&!F)return w.indexOf(P);for(var B=0;B<w.length;){if(F&&w[B][F]==P||!F&&w[B]===P)return B;B++}return-1}function W(w){return Array.prototype.slice.call(w,0)}function ot(w,P,F){for(var B=[],H=[],J=0;J<w.length;){var rt=P?w[J][P]:w[J];K(H,rt)<0&&B.push(w[J]),H[J]=rt,J++}return F&&(P?B=B.sort(function(ht,xt){return ht[P]>xt[P]}):B=B.sort()),B}function nt(w,P){for(var F,B,H=P[0].toUpperCase()+P.slice(1),J=0;J<o.length;){if(F=o[J],B=F?F+H:P,B in w)return B;J++}return i}var ft=1;function $t(){return ft++}function _t(w){var P=w.ownerDocument||w;return P.defaultView||P.parentWindow||t}var vt=/mobile|tablet|ip(ad|hone|od)|android/i,at="ontouchstart"in t,Y=nt(t,"PointerEvent")!==i,T=at&&vt.test(navigator.userAgent),C="touch",$="pen",y="mouse",k="kinect",M=25,I=1,z=2,q=4,et=8,st=1,mt=2,Mt=4,X=8,Q=16,it=mt|Mt,lt=X|Q,ct=it|lt,dt=["x","y"],St=["clientX","clientY"];function yt(w,P){var F=this;this.manager=w,this.callback=P,this.element=w.element,this.target=w.options.inputTarget,this.domHandler=function(B){S(w.options.enable,[w])&&F.handler(B)},this.init()}yt.prototype={handler:function(){},init:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(_t(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&N(this.element,this.evEl,this.domHandler),this.evTarget&&N(this.target,this.evTarget,this.domHandler),this.evWin&&N(_t(this.element),this.evWin,this.domHandler)}};function bt(w){var P,F=w.options.inputClass;return F?P=F:Y?P=Hr:T?P=en:at?P=L:P=nr,new P(w,ut)}function ut(w,P,F){var B=F.pointers.length,H=F.changedPointers.length,J=P&I&&B-H===0,rt=P&(q|et)&&B-H===0;F.isFirst=!!J,F.isFinal=!!rt,J&&(w.session={}),F.eventType=P,It(w,F),w.emit("hammer.input",F),w.recognize(F),w.session.prevInput=F}function It(w,P){var F=w.session,B=P.pointers,H=B.length;F.firstInput||(F.firstInput=Kt(P)),H>1&&!F.firstMultiple?F.firstMultiple=Kt(P):H===1&&(F.firstMultiple=!1);var J=F.firstInput,rt=F.firstMultiple,ht=rt?rt.center:J.center,xt=P.center=ne(B);P.timeStamp=u(),P.deltaTime=P.timeStamp-J.timeStamp,P.angle=Ye(ht,xt),P.distance=Ne(ht,xt),Lt(F,P),P.offsetDirection=he(P.deltaX,P.deltaY);var gt=Yt(P.deltaTime,P.deltaX,P.deltaY);P.overallVelocityX=gt.x,P.overallVelocityY=gt.y,P.overallVelocity=l(gt.x)>l(gt.y)?gt.x:gt.y,P.scale=rt?Qe(rt.pointers,B):1,P.rotation=rt?ar(rt.pointers,B):0,P.maxPointers=F.prevInput?P.pointers.length>F.prevInput.maxPointers?P.pointers.length:F.prevInput.maxPointers:P.pointers.length,Ut(F,P);var pt=w.element;D(P.srcEvent.target,pt)&&(pt=P.srcEvent.target),P.target=pt}function Lt(w,P){var F=P.center,B=w.offsetDelta||{},H=w.prevDelta||{},J=w.prevInput||{};(P.eventType===I||J.eventType===q)&&(H=w.prevDelta={x:J.deltaX||0,y:J.deltaY||0},B=w.offsetDelta={x:F.x,y:F.y}),P.deltaX=H.x+(F.x-B.x),P.deltaY=H.y+(F.y-B.y)}function Ut(w,P){var F=w.lastInterval||P,B=P.timeStamp-F.timeStamp,H,J,rt,ht;if(P.eventType!=et&&(B>M||F.velocity===i)){var xt=P.deltaX-F.deltaX,gt=P.deltaY-F.deltaY,pt=Yt(B,xt,gt);J=pt.x,rt=pt.y,H=l(pt.x)>l(pt.y)?pt.x:pt.y,ht=he(xt,gt),w.lastInterval=P}else H=F.velocity,J=F.velocityX,rt=F.velocityY,ht=F.direction;P.velocity=H,P.velocityX=J,P.velocityY=rt,P.direction=ht}function Kt(w){for(var P=[],F=0;F<w.pointers.length;)P[F]={clientX:c(w.pointers[F].clientX),clientY:c(w.pointers[F].clientY)},F++;return{timeStamp:u(),pointers:P,center:ne(P),deltaX:w.deltaX,deltaY:w.deltaY}}function ne(w){var P=w.length;if(P===1)return{x:c(w[0].clientX),y:c(w[0].clientY)};for(var F=0,B=0,H=0;H<P;)F+=w[H].clientX,B+=w[H].clientY,H++;return{x:c(F/P),y:c(B/P)}}function Yt(w,P,F){return{x:P/w||0,y:F/w||0}}function he(w,P){return w===P?st:l(w)>=l(P)?w<0?mt:Mt:P<0?X:Q}function Ne(w,P,F){F||(F=dt);var B=P[F[0]]-w[F[0]],H=P[F[1]]-w[F[1]];return Math.sqrt(B*B+H*H)}function Ye(w,P,F){F||(F=dt);var B=P[F[0]]-w[F[0]],H=P[F[1]]-w[F[1]];return Math.atan2(H,B)*180/Math.PI}function ar(w,P){return Ye(P[1],P[0],St)+Ye(w[1],w[0],St)}function Qe(w,P){return Ne(P[0],P[1],St)/Ne(w[0],w[1],St)}var xr={mousedown:I,mousemove:z,mouseup:q},Lr="mousedown",le="mousemove mouseup";function nr(){this.evEl=Lr,this.evWin=le,this.pressed=!1,yt.apply(this,arguments)}_(nr,yt,{handler:function(w){var P=xr[w.type];P&I&&w.button===0&&(this.pressed=!0),P&z&&w.which!==1&&(P=q),this.pressed&&(P&q&&(this.pressed=!1),this.callback(this.manager,P,{pointers:[w],changedPointers:[w],pointerType:y,srcEvent:w}))}});var $r={pointerdown:I,pointermove:z,pointerup:q,pointercancel:et,pointerout:et},ni={2:C,3:$,4:y,5:k},xn="pointerdown",An="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(xn="MSPointerDown",An="MSPointerMove MSPointerUp MSPointerCancel");function Hr(){this.evEl=xn,this.evWin=An,yt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}_(Hr,yt,{handler:function(w){var P=this.store,F=!1,B=w.type.toLowerCase().replace("ms",""),H=$r[B],J=ni[w.pointerType]||w.pointerType,rt=J==C,ht=K(P,w.pointerId,"pointerId");H&I&&(w.button===0||rt)?ht<0&&(P.push(w),ht=P.length-1):H&(q|et)&&(F=!0),!(ht<0)&&(P[ht]=w,this.callback(this.manager,H,{pointers:P,changedPointers:[w],pointerType:J,srcEvent:w}),F&&P.splice(ht,1))}});var Ve={touchstart:I,touchmove:z,touchend:q,touchcancel:et},Bo="touchstart",un="touchstart touchmove touchend touchcancel";function $n(){this.evTarget=Bo,this.evWin=un,this.started=!1,yt.apply(this,arguments)}_($n,yt,{handler:function(w){var P=Ve[w.type];if(P===I&&(this.started=!0),!!this.started){var F=Dr.call(this,w,P);P&(q|et)&&F[0].length-F[1].length===0&&(this.started=!1),this.callback(this.manager,P,{pointers:F[0],changedPointers:F[1],pointerType:C,srcEvent:w})}}});function Dr(w,P){var F=W(w.touches),B=W(w.changedTouches);return P&(q|et)&&(F=ot(F.concat(B),"identifier",!0)),[F,B]}var Dn={touchstart:I,touchmove:z,touchend:q,touchcancel:et},Sn="touchstart touchmove touchend touchcancel";function en(){this.evTarget=Sn,this.targetIds={},yt.apply(this,arguments)}_(en,yt,{handler:function(w){var P=Dn[w.type],F=ii.call(this,w,P);F&&this.callback(this.manager,P,{pointers:F[0],changedPointers:F[1],pointerType:C,srcEvent:w})}});function ii(w,P){var F=W(w.touches),B=this.targetIds;if(P&(I|z)&&F.length===1)return B[F[0].identifier]=!0,[F,F];var H,J,rt=W(w.changedTouches),ht=[],xt=this.target;if(J=F.filter(function(gt){return D(gt.target,xt)}),P===I)for(H=0;H<J.length;)B[J[H].identifier]=!0,H++;for(H=0;H<rt.length;)B[rt[H].identifier]&&ht.push(rt[H]),P&(q|et)&&delete B[rt[H].identifier],H++;if(ht.length)return[ot(J.concat(ht),"identifier",!0),ht]}var Rn=2500,R=25;function L(){yt.apply(this,arguments);var w=g(this.handler,this);this.touch=new en(this.manager,w),this.mouse=new nr(this.manager,w),this.primaryTouch=null,this.lastTouches=[]}_(L,yt,{handler:function(w,P,F){var B=F.pointerType==C,H=F.pointerType==y;if(!(H&&F.sourceCapabilities&&F.sourceCapabilities.firesTouchEvents)){if(B)V.call(this,P,F);else if(H&&tt.call(this,F))return;this.callback(w,P,F)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function V(w,P){w&I?(this.primaryTouch=P.changedPointers[0].identifier,Z.call(this,P)):w&(q|et)&&Z.call(this,P)}function Z(w){var P=w.changedPointers[0];if(P.identifier===this.primaryTouch){var F={x:P.clientX,y:P.clientY};this.lastTouches.push(F);var B=this.lastTouches,H=function(){var J=B.indexOf(F);J>-1&&B.splice(J,1)};setTimeout(H,Rn)}}function tt(w){for(var P=w.srcEvent.clientX,F=w.srcEvent.clientY,B=0;B<this.lastTouches.length;B++){var H=this.lastTouches[B],J=Math.abs(P-H.x),rt=Math.abs(F-H.y);if(J<=R&&rt<=R)return!0}return!1}var Ot=nt(s.style,"touchAction"),Tt=Ot!==i,Ht="compute",pe="auto",te="manipulation",zt="none",qt="pan-x",ae="pan-y",jt=Ie();function Gt(w,P){this.manager=w,this.set(P)}Gt.prototype={set:function(w){w==Ht&&(w=this.compute()),Tt&&this.manager.element.style&&jt[w]&&(this.manager.element.style[Ot]=w),this.actions=w.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var w=[];return d(this.manager.recognizers,function(P){S(P.options.enable,[P])&&(w=w.concat(P.getTouchAction()))}),ie(w.join(" "))},preventDefaults:function(w){var P=w.srcEvent,F=w.offsetDirection;if(this.manager.session.prevented){P.preventDefault();return}var B=this.actions,H=U(B,zt)&&!jt[zt],J=U(B,ae)&&!jt[ae],rt=U(B,qt)&&!jt[qt];if(H){var ht=w.pointers.length===1,xt=w.distance<2,gt=w.deltaTime<250;if(ht&&xt&>)return}if(!(rt&&J)&&(H||J&&F&it||rt&&F<))return this.preventSrc(P)},preventSrc:function(w){this.manager.session.prevented=!0,w.preventDefault()}};function ie(w){if(U(w,zt))return zt;var P=U(w,qt),F=U(w,ae);return P&&F?zt:P||F?P?qt:ae:U(w,te)?te:pe}function Ie(){if(!Tt)return!1;var w={},P=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(F){w[F]=P?t.CSS.supports("touch-action",F):!0}),w}var br=1,we=2,ze=4,Ze=8,Xe=Ze,Ae=16,_e=32;function Zt(w){this.options=m({},this.defaults,w||{}),this.id=$t(),this.manager=null,this.options.enable=A(this.options.enable,!0),this.state=br,this.simultaneous={},this.requireFail=[]}Zt.prototype={defaults:{},set:function(w){return m(this.options,w),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(w){if(f(w,"recognizeWith",this))return this;var P=this.simultaneous;return w=hn(w,this),P[w.id]||(P[w.id]=w,w.recognizeWith(this)),this},dropRecognizeWith:function(w){return f(w,"dropRecognizeWith",this)?this:(w=hn(w,this),delete this.simultaneous[w.id],this)},requireFailure:function(w){if(f(w,"requireFailure",this))return this;var P=this.requireFail;return w=hn(w,this),K(P,w)===-1&&(P.push(w),w.requireFailure(this)),this},dropRequireFailure:function(w){if(f(w,"dropRequireFailure",this))return this;w=hn(w,this);var P=K(this.requireFail,w);return P>-1&&this.requireFail.splice(P,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(w){return!!this.simultaneous[w.id]},emit:function(w){var P=this,F=this.state;function B(H){P.manager.emit(H,w)}F<Ze&&B(P.options.event+tr(F)),B(P.options.event),w.additionalEvent&&B(w.additionalEvent),F>=Ze&&B(P.options.event+tr(F))},tryEmit:function(w){if(this.canEmit())return this.emit(w);this.state=_e},canEmit:function(){for(var w=0;w<this.requireFail.length;){if(!(this.requireFail[w].state&(_e|br)))return!1;w++}return!0},recognize:function(w){var P=m({},w);if(!S(this.options.enable,[this,P])){this.reset(),this.state=_e;return}this.state&(Xe|Ae|_e)&&(this.state=br),this.state=this.process(P),this.state&(we|ze|Ze|Ae)&&this.tryEmit(P)},process:function(w){},getTouchAction:function(){},reset:function(){}};function tr(w){return w&Ae?"cancel":w&Ze?"end":w&ze?"move":w&we?"start":""}function qr(w){return w==Q?"down":w==X?"up":w==mt?"left":w==Mt?"right":""}function hn(w,P){var F=P.manager;return F?F.get(w):w}function hr(){Zt.apply(this,arguments)}_(hr,Zt,{defaults:{pointers:1},attrTest:function(w){var P=this.options.pointers;return P===0||w.pointers.length===P},process:function(w){var P=this.state,F=w.eventType,B=P&(we|ze),H=this.attrTest(w);return B&&(F&et||!H)?P|Ae:B||H?F&q?P|Ze:P&we?P|ze:we:_e}});function ur(){hr.apply(this,arguments),this.pX=null,this.pY=null}_(ur,hr,{defaults:{event:"pan",threshold:10,pointers:1,direction:ct},getTouchAction:function(){var w=this.options.direction,P=[];return w&it&&P.push(ae),w<&&P.push(qt),P},directionTest:function(w){var P=this.options,F=!0,B=w.distance,H=w.direction,J=w.deltaX,rt=w.deltaY;return H&P.direction||(P.direction&it?(H=J===0?st:J<0?mt:Mt,F=J!=this.pX,B=Math.abs(w.deltaX)):(H=rt===0?st:rt<0?X:Q,F=rt!=this.pY,B=Math.abs(w.deltaY))),w.direction=H,F&&B>P.threshold&&H&P.direction},attrTest:function(w){return hr.prototype.attrTest.call(this,w)&&(this.state&we||!(this.state&we)&&this.directionTest(w))},emit:function(w){this.pX=w.deltaX,this.pY=w.deltaY;var P=qr(w.direction);P&&(w.additionalEvent=this.options.event+P),this._super.emit.call(this,w)}});function Pr(){hr.apply(this,arguments)}_(Pr,hr,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[zt]},attrTest:function(w){return this._super.attrTest.call(this,w)&&(Math.abs(w.scale-1)>this.options.threshold||this.state&we)},emit:function(w){if(w.scale!==1){var P=w.scale<1?"in":"out";w.additionalEvent=this.options.event+P}this._super.emit.call(this,w)}});function In(){Zt.apply(this,arguments),this._timer=null,this._input=null}_(In,Zt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[pe]},process:function(w){var P=this.options,F=w.pointers.length===P.pointers,B=w.distance<P.threshold,H=w.deltaTime>P.time;if(this._input=w,!B||!F||w.eventType&(q|et)&&!H)this.reset();else if(w.eventType&I)this.reset(),this._timer=h(function(){this.state=Xe,this.tryEmit()},P.time,this);else if(w.eventType&q)return Xe;return _e},reset:function(){clearTimeout(this._timer)},emit:function(w){this.state===Xe&&(w&&w.eventType&q?this.manager.emit(this.options.event+"up",w):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function jn(){hr.apply(this,arguments)}_(jn,hr,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[zt]},attrTest:function(w){return this._super.attrTest.call(this,w)&&(Math.abs(w.rotation)>this.options.threshold||this.state&we)}});function Rr(){hr.apply(this,arguments)}_(Rr,hr,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:it|lt,pointers:1},getTouchAction:function(){return ur.prototype.getTouchAction.call(this)},attrTest:function(w){var P=this.options.direction,F;return P&(it|lt)?F=w.overallVelocity:P&it?F=w.overallVelocityX:P<&&(F=w.overallVelocityY),this._super.attrTest.call(this,w)&&P&w.offsetDirection&&w.distance>this.options.threshold&&w.maxPointers==this.options.pointers&&l(F)>this.options.velocity&&w.eventType&q},emit:function(w){var P=qr(w.offsetDirection);P&&this.manager.emit(this.options.event+P,w),this.manager.emit(this.options.event,w)}});function Fn(){Zt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}_(Fn,Zt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[te]},process:function(w){var P=this.options,F=w.pointers.length===P.pointers,B=w.distance<P.threshold,H=w.deltaTime<P.time;if(this.reset(),w.eventType&I&&this.count===0)return this.failTimeout();if(B&&H&&F){if(w.eventType!=q)return this.failTimeout();var J=this.pTime?w.timeStamp-this.pTime<P.interval:!0,rt=!this.pCenter||Ne(this.pCenter,w.center)<P.posThreshold;this.pTime=w.timeStamp,this.pCenter=w.center,!rt||!J?this.count=1:this.count+=1,this._input=w;var ht=this.count%P.taps;if(ht===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=Xe,this.tryEmit()},P.interval,this),we):Xe}return _e},failTimeout:function(){return this._timer=h(function(){this.state=_e},this.options.interval,this),_e},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Xe&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Mn(w,P){return P=P||{},P.recognizers=A(P.recognizers,Mn.defaults.preset),new Vs(w,P)}Mn.VERSION="2.0.7",Mn.defaults={domEvents:!1,touchAction:Ht,enable:!0,inputTarget:null,inputClass:null,preset:[[jn,{enable:!1}],[Pr,{enable:!1},["rotate"]],[Rr,{direction:it}],[ur,{direction:it},["swipe"]],[Fn],[Fn,{event:"doubletap",taps:2},["tap"]],[In]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Us=1,Tr=2;function Vs(w,P){this.options=m({},Mn.defaults,P||{}),this.options.inputTarget=this.options.inputTarget||w,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=w,this.input=bt(this),this.touchAction=new Gt(this,this.options.touchAction),x(this,!0),d(this.options.recognizers,function(F){var B=this.add(new F[0](F[1]));F[2]&&B.recognizeWith(F[2]),F[3]&&B.requireFailure(F[3])},this)}Vs.prototype={set:function(w){return m(this.options,w),w.touchAction&&this.touchAction.update(),w.inputTarget&&(this.input.destroy(),this.input.target=w.inputTarget,this.input.init()),this},stop:function(w){this.session.stopped=w?Tr:Us},recognize:function(w){var P=this.session;if(!P.stopped){this.touchAction.preventDefaults(w);var F,B=this.recognizers,H=P.curRecognizer;(!H||H&&H.state&Xe)&&(H=P.curRecognizer=null);for(var J=0;J<B.length;)F=B[J],P.stopped!==Tr&&(!H||F==H||F.canRecognizeWith(H))?F.recognize(w):F.reset(),!H&&F.state&(we|ze|Ze)&&(H=P.curRecognizer=F),J++}},get:function(w){if(w instanceof Zt)return w;for(var P=this.recognizers,F=0;F<P.length;F++)if(P[F].options.event==w)return P[F];return null},add:function(w){if(f(w,"add",this))return this;var P=this.get(w.options.event);return P&&this.remove(P),this.recognizers.push(w),w.manager=this,this.touchAction.update(),w},remove:function(w){if(f(w,"remove",this))return this;if(w=this.get(w),w){var P=this.recognizers,F=K(P,w);F!==-1&&(P.splice(F,1),this.touchAction.update())}return this},on:function(w,P){if(w!==i&&P!==i){var F=this.handlers;return d(G(w),function(B){F[B]=F[B]||[],F[B].push(P)}),this}},off:function(w,P){if(w!==i){var F=this.handlers;return d(G(w),function(B){P?F[B]&&F[B].splice(K(F[B],P),1):delete F[B]}),this}},emit:function(w,P){this.options.domEvents&&O(w,P);var F=this.handlers[w]&&this.handlers[w].slice();if(!(!F||!F.length)){P.type=w,P.preventDefault=function(){P.srcEvent.preventDefault()};for(var B=0;B<F.length;)F[B](P),B++}},destroy:function(){this.element&&x(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function x(w,P){var F=w.element;if(F.style){var B;d(w.options.cssProps,function(H,J){B=nt(F.style,J),P?(w.oldCssProps[B]=F.style[B],F.style[B]=H):F.style[B]=w.oldCssProps[B]||""}),P||(w.oldCssProps={})}}function O(w,P){var F=r.createEvent("Event");F.initEvent(w,!0,!0),F.gesture=P,P.target.dispatchEvent(F)}m(Mn,{INPUT_START:I,INPUT_MOVE:z,INPUT_END:q,INPUT_CANCEL:et,STATE_POSSIBLE:br,STATE_BEGAN:we,STATE_CHANGED:ze,STATE_ENDED:Ze,STATE_RECOGNIZED:Xe,STATE_CANCELLED:Ae,STATE_FAILED:_e,DIRECTION_NONE:st,DIRECTION_LEFT:mt,DIRECTION_RIGHT:Mt,DIRECTION_UP:X,DIRECTION_DOWN:Q,DIRECTION_HORIZONTAL:it,DIRECTION_VERTICAL:lt,DIRECTION_ALL:ct,Manager:Vs,Input:yt,TouchAction:Gt,TouchInput:en,MouseInput:nr,PointerEventInput:Hr,TouchMouseInput:L,SingleTouchInput:$n,Recognizer:Zt,AttrRecognizer:hr,Tap:Fn,Pan:ur,Swipe:Rr,Pinch:Pr,Rotate:jn,Press:In,on:E,off:N,each:d,merge:b,extend:v,assign:m,inherit:_,bindFn:g,prefixed:nt});var j=typeof t<"u"?t:typeof self<"u"?self:{};j.Hammer=Mn,typeof i=="function"&&i.amd?i(function(){return Mn}):e.exports?e.exports=Mn:t[n]=Mn})(window,document,"Hammer")})(rB);const K$=[1,0,0,1,0,0],Y$=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Qr{value;matrix3d;isEverTo3d=!1;_prev_rotatex=0;_prev_rotatey=0;constructor(t=K$){this.value=Array.from(t),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(K$),this.matrix3d=this.toMatrix3D(),this}transformPoint(t,r,n=0,i=0){const o=t-n,s=r-i;return t=o*this.value[0]+s*this.value[2]+this.value[4],r=o*this.value[1]+s*this.value[3]+this.value[5],[t+n,r+i]}fromString(t){const r=Mw("number",t);return r.length===6?r.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}):this.unit(),this}toMatrix3D(t=this.matrix3d){const r=[this.value[0],this.value[1],0,0,this.value[2],this.value[3],0,0,0,0,1,0,this.value[4],this.value[5],0,1];return t?(t.value=r,t):new ha(r)}offset(t=0,r=0){return[t-this.value[4],r-this.value[5]]}clone(){return new Qr(this.value)}multiply(t){const r=this.value;let n;t instanceof Qr?n=t.value:n=t;const i=r[0]*n[0]+r[2]*n[1],o=r[1]*n[0]+r[3]*n[1],s=r[0]*n[2]+r[2]*n[3],a=r[1]*n[2]+r[3]*n[3],c=r[0]*n[4]+r[2]*n[5]+r[4],l=r[1]*n[4]+r[3]*n[5]+r[5];return r[0]=i,r[1]=o,r[2]=s,r[3]=a,r[4]=c,r[5]=l,this}inverse(){const t=new Qr(this.value),r=t.value,n=1/(r[0]*r[3]-r[1]*r[2]),i=r[3]*n,o=-r[1]*n,s=-r[2]*n,a=r[0]*n,c=n*(r[2]*r[5]-r[3]*r[4]),l=n*(r[1]*r[4]-r[0]*r[5]);return r[0]=i,r[1]=o,r[2]=s,r[3]=a,r[4]=c,r[5]=l,t}translate(t,r){return this.matrix3d.translate(t,r,0),this.multiply([1,0,0,1,t,r])}translateTo(t,r){const n=this.offset(t,r);return this.translate(n[0],n[1])}translateX(t){return this.translate(t,0)}translateY(t){return this.translate(0,t)}translateZ(t){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,t)}translate3d(t,r,n){return this.isEverTo3d=!0,this.matrix3d.translate(t,r,n)}rotate(t,r=0,n=0){const i=Ig(t),o=+Math.cos(i).toFixed(9),s=+Math.sin(i).toFixed(9);return this.multiply([o,s,-s,o,r,n]),this.translate(-r,-n),this}rotateX(t){return this._prev_rotatex=t,this.isEverTo3d=!0,this.matrix3d.rotate("x",t)}rotateXTo(t){return this.rotateX(t-this._prev_rotatex)}rotateY(t){return this._prev_rotatey=t,this.isEverTo3d=!0,this.matrix3d.rotate("y",t)}rotateYTo(t){return this.rotateY(t-this._prev_rotatey)}rotateZ(t){return this.isEverTo3d=!0,this.matrix3d.rotate("z",t)}rotate3d(t,r,n){return this.isEverTo3d=!0,this.matrix3d.rotate("x",t).rotate("y",r).rotate("z",n)}scale(t,r=t,n=0,i=0){return this.matrix3d.scale(t,r,1),this.translate(n,i),this.multiply([t,0,0,r,0,0]),this.translate(-n,-i),this}scaleTo(t,r=t){return this.scale(t/this.value[0],r/this.value[3]),this}scaleX(t){return this.scale(t,1)}scaleY(t){return this.scale(1,t)}scaleZ(t){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,t)}scale3d(t,r,n){return this.isEverTo3d=!0,this.matrix3d.scale(t,r,n)}skew(t,r=0){const n=t*Math.PI/180,i=r*Math.PI/180,o=Math.tan(n),s=Math.tan(i);return this.multiply([1,s,o,1,0,0])}skewX(t){return this.skew(t,0)}skewY(t){return this.skew(0,t)}skewZ(t){return this}skew3d(t,r,n){return this}split(){const t={dx:0,dy:0,scalex:1,scaley:1,shear:1,rotate:0,isSimple:!0,isSuperSimple:!0,noRotation:!1};t.dx=this.value[4],t.dy=this.value[5];const r=[[this.value[0],this.value[2]],[this.value[1],this.value[3]]];t.scalex=Math.sqrt(jg(r[0])),q$(r[0]),t.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*t.shear,r[1][1]-r[0][1]*t.shear],t.scaley=Math.sqrt(jg(r[1])),q$(r[1]),t.shear/=t.scaley;const n=-r[0][1],i=r[1][1];return i<0?(t.rotate=QG(Math.acos(i)),n<0&&(t.rotate=360-t.rotate)):t.rotate=Ig(Math.asin(n)),t.isSimple=!+t.shear.toFixed(9)&&(t.scalex.toFixed(9)==t.scaley.toFixed(9)||!t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t}toTransformString(){const t=this.split();return t.isSimple?(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx&&t.dy?"t"+[t.dx,t.dy]:"")+(t.scalex!=1||t.scaley!=1?"s"+[t.scalex,t.scaley,0,0]:"")+(t.rotate?"r"+[t.rotate,0,0]:"")):"matrix"+[this.value[0],this.value[1],this.value[2],this.value[3],this.value[4],this.value[5]]}toString(){return this.isEverTo3d?this.toMatrix3DString():`matrix(${this.value.map(t=>Uw(t,6)).join(",")})`}toMatrix3DString(){return this.matrix3d.toString()}toFilter(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.value[0]+", M12="+this.value[2]+", M21="+this.value[1]+", M22="+this.value[3]+", Dx="+this.value[4]+", Dy="+this.value[5]+", sizingmethod='auto expand')"}}class ha{value;constructor(t=Y$){this.value=Array.from(t)}unit(){return this.value=Array.from(Y$),this}fromString(t){const r=Mw("number",t);return r.length===16?r.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}):this.unit(),this}toMatrix(t){const r=[this.value[0],this.value[1],this.value[4],this.value[5],this.value[12],this.value[13]];return t?(t.value=r,t):new Qr(r)}multiplyMatrix(t){const r=this.value[0],n=this.value[1],i=this.value[2],o=this.value[3],s=this.value[4],a=this.value[5],c=this.value[6],l=this.value[7],u=this.value[8],h=this.value[9],f=this.value[10],d=this.value[11],p=this.value[12],m=this.value[13],v=this.value[14],b=this.value[15],_=t.value[0],g=t.value[1],S=t.value[2],A=t.value[3],E=_*r+g*s+S*u+A*p,N=_*n+g*a+S*h+A*m,D=_*i+g*c+S*f+A*v,U=_*o+g*l+S*d+A*b;return new Qr([E,N,D,U,0,0])}multiply(t){const r=new Qr([t.value[0],t.value[1],t.value[2],t.value[3],0,0]),n=new Qr([t.value[4],t.value[5],t.value[6],t.value[7],0,0]),i=new Qr([t.value[8],t.value[9],t.value[10],t.value[11],0,0]),o=new Qr([t.value[12],t.value[13],t.value[14],t.value[15],0,0]),s=this.multiplyMatrix(r),a=this.multiplyMatrix(n),c=this.multiplyMatrix(i),l=this.multiplyMatrix(o);return this.value[0]=s.value[0],this.value[1]=s.value[1],this.value[2]=s.value[2],this.value[3]=s.value[3],this.value[4]=a.value[0],this.value[5]=a.value[1],this.value[6]=a.value[2],this.value[7]=a.value[3],this.value[8]=c.value[0],this.value[9]=c.value[1],this.value[10]=c.value[2],this.value[11]=c.value[3],this.value[12]=l.value[0],this.value[13]=l.value[1],this.value[14]=l.value[2],this.value[15]=l.value[3],this}translate(t=0,r=0,n=0){return this.multiply(new ha([1,0,0,0,0,1,0,0,0,0,1,0,t,r,n,1]))}scale(t=1,r=1,n=1){return this.multiply(new ha([t,0,0,0,0,r,0,0,0,0,n,0,0,0,0,1]))}rotate(t,r){const n=Ig(r),i=Math.sin,o=Math.cos;let s;switch(t){case"x":s=[1,0,0,0,0,o(n),i(n),0,0,-i(n),o(n),0,0,0,0,1];break;case"y":s=[o(n),0,-i(n),0,0,1,0,0,i(n),0,o(n),0,0,0,0,1];break;case"z":s=[o(n),i(n),0,0,-i(n),o(n),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new ha(s))}toString(){return`matrix3d(${this.value.map(t=>Uw(t,6)).join(",")})`}}function X$(e){const t=new Qr;return e.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(r,n,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const o=[];for(let s=0,a=i.length;s<a;s++)i[s].trim()&&o.push(parseFloat(""+i[s]));switch(n.toLowerCase()){case"t":case"translate":t.translate(o[0],o[1]);break;case"translatex":t.translateX(o[0]);break;case"translatey":t.translateY(o[0]);break;case"translatez":t.translateZ(o[0]);break;case"translate3d":t.translate3d(o[0],o[1],o[2]);break;case"r":case"rotate":t.rotate(o[0],o[1]??0,o[2]??0);break;case"rotatex":t.rotateX(o[0]);break;case"rotatey":t.rotateY(o[0]);break;case"rotatez":t.rotateZ(o[0]);break;case"rotate3d":t.rotate3d(o[0],o[1],o[2]);break;case"s":case"scale":t.scale(o[0],o[1]??o[0]);break;case"scalex":t.scaleX(o[0]);break;case"scaley":t.scaleY(o[0]);break;case"scalez":t.scaleZ(o[0]);break;case"scale3d":t.scale3d(o[0],o[1],o[2]);break;case"skew":t.skew(o[0],o[1]??0);break;case"skewx":t.skewX(o[0]);break;case"skewy":t.skewY(o[0]);break;case"skewz":t.skewZ(o[0]);break;case"skew3d":t.skew3d(o[0],o[1],o[2]);break;case"m":case"matrix":t.multiply([o[0],o[1],o[2],o[3],o[4],o[5]]);break;case"matrix3d":t.matrix3d.multiply(new ha(o));break}return""}),t}function nB(e){return typeof e!="string"?!1:(e=e.trim(),/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4)}const Mg={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},iB=/([astvzqmhlc])([^astvzqmhlc]*)/gi,oB=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function sB(e){const t=e.match(oB);return t?t.map(Number):[]}function Lg(e){const t=[];return e.replace(iB,function(r,n,i){let o=n.toLowerCase();for(i=sB(i),o=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),o="l",n=n=="m"?"l":"L");;){if(i.length==Mg[o])return i.unshift(n),t.push(i);if(i.length<Mg[o])throw new Error("malformed path data");t.push([n].concat(i.splice(0,Mg[o])))}}),t}function Ug(e){var t=0,r=0,n=0,i=0;return e.map(function(o){o=o.slice();var s=o[0],a=s.toUpperCase();if(s!=a)switch(o[0]=a,s){case"a":o[6]+=n,o[7]+=i;break;case"v":o[1]+=i;break;case"h":o[1]+=n;break;default:for(var c=1;c<o.length;)o[c++]+=n,o[c++]+=i}switch(a){case"Z":n=t,i=r;break;case"H":n=o[1];break;case"V":i=o[1];break;case"M":n=t=o[1],i=r=o[2];break;default:n=o[o.length-2],i=o[o.length-1]}return o})}const Kl=Math.PI*2;function J$(e,t,r,n){const i=e*n-t*r<0?-1:1;let o=e*r+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)}function aB(e,t,r,n,i,o,s,a,c,l){const u=l*(e-r)/2+c*(t-n)/2,h=-c*(e-r)/2+l*(t-n)/2,f=s*s,d=a*a,p=u*u,m=h*h;let v=f*d-f*m-d*p;v<0&&(v=0),v/=f*m+d*p,v=Math.sqrt(v)*(i===o?-1:1);const b=v*s/a*h,_=v*-a/s*u,g=l*b-c*_+(e+r)/2,S=c*b+l*_+(t+n)/2,A=(u-b)/s,E=(h-_)/a,N=(-u-b)/s,D=(-h-_)/a,U=J$(1,0,A,E);let G=J$(A,E,N,D);return o===0&&G>0&&(G-=Kl),o===1&&G<0&&(G+=Kl),[g,S,U,G]}function lB(e,t){const r=1.3333333333333333*Math.tan(t/4),n=Math.cos(e),i=Math.sin(e),o=Math.cos(e+t),s=Math.sin(e+t);return[n,i,n-i*r,i+n*r,o+s*r,s-o*r,o,s]}function cB(e,t,r,n,i,o,s,a,c){const l=Math.sin(c*Kl/360),u=Math.cos(c*Kl/360),h=u*(e-r)/2+l*(t-n)/2,f=-l*(e-r)/2+u*(t-n)/2;if(h===0&&f===0)return[];if(s===0||a===0)return[];s=Math.abs(s),a=Math.abs(a);const d=h*h/(s*s)+f*f/(a*a);d>1&&(s*=Math.sqrt(d),a*=Math.sqrt(d));const p=aB(e,t,r,n,i,o,s,a,l,u),m=[];let v=p[2],b=p[3];const _=Math.max(Math.ceil(Math.abs(b)/(Kl/4)),1);b/=_;for(let g=0;g<_;g++)m.push(lB(v,b)),v+=b;return m.map(g=>{for(let S=0;S<g.length;S+=2){let A=g[S+0],E=g[S+1];A*=s,E*=a;const N=u*A-l*E,D=l*A+u*E;g[S+0]=N+p[0],g[S+1]=D+p[1]}return g})}function Vg(e){for(var t,r=[],n=0,i=0,o=0,s=0,a=null,c=null,l=0,u=0,h=0,f=e.length;h<f;h++){var d=e[h],p=d[0];switch(p){case"M":o=d[1],s=d[2];break;case"A":var m=cB(l,u,d[6],d[7],d[4],d[5],d[1],d[2],d[3]);if(!m.length)continue;m=m.map(S=>{const[A,E,N,D,U,G,K,W]=S;return{x1:N,y1:D,x2:U,y2:G,x:K,y:W}});for(var v=0,b;v<m.length;v++)b=m[v],d=["C",b.x1,b.y1,b.x2,b.y2,b.x,b.y],v<m.length-1&&r.push(d);break;case"S":var _=l,g=u;(t=="C"||t=="S")&&(_+=_-n,g+=g-i),d=["C",_,g,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(a=l*2-a,c=u*2-c):(a=l,c=u),d=W$(l,u,a,c,d[1],d[2]);break;case"Q":a=d[1],c=d[2],d=W$(l,u,d[1],d[2],d[3],d[4]);break;case"L":d=ud(l,u,d[1],d[2]);break;case"H":d=ud(l,u,d[1],u);break;case"V":d=ud(l,u,l,d[1]);break;case"Z":d=ud(l,u,o,s);break}t=p,l=d[d.length-2],u=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=l,i=u),r.push(d)}return r}function ud(e,t,r,n){return["C",e,t,r,n,r,n]}function W$(e,t,r,n,i,o){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,o/3+2/3*n,i,o]}const uB=e=>Array.isArray(e);function da(e){if(!(this instanceof da))return new da(e);this._path=uB(e)?e:Lg(e),this._path=Ug(this._path),this._path=dB(this._path),this._path=hB(this._path)}da.prototype.at=function(e,t){return this._walk(e,t).pos},da.prototype.length=function(){return this._walk(null).length},da.prototype._walk=function(e,t){let r=[0,0],n=[0,0,0],i=[0,0],o=0;for(let u=0;u<this._path.length;u++){let h=this._path[u];if(h[0]==="M"){if(r[0]=h[1],r[1]=h[2],e===0)return{length:o,pos:r}}else if(h[0]==="C"){n[0]=i[0]=r[0],n[1]=i[1]=r[1],n[2]=o;let f=100;for(let d=0;d<=f;d++){let p=d/f,m=s(h,p),v=a(h,p);if(o+=zg(r[0],r[1],m,v),r[0]=m,r[1]=v,typeof e=="number"&&o>=e){let b=(o-e)/(o-n[2]),_=[r[0]*(1-b)+n[0]*b,r[1]*(1-b)+n[1]*b];return{length:o,pos:_}}n[0]=r[0],n[1]=r[1],n[2]=o}}else if(h[0]==="Q"){n[0]=i[0]=r[0],n[1]=i[1]=r[1],n[2]=o;let f=100;for(let d=0;d<=f;d++){let p=d/f,m=c(h,p),v=l(h,p);if(o+=zg(r[0],r[1],m,v),r[0]=m,r[1]=v,typeof e=="number"&&o>=e){let b=(o-e)/(o-n[2]),_=[r[0]*(1-b)+n[0]*b,r[1]*(1-b)+n[1]*b];return{length:o,pos:_}}n[0]=r[0],n[1]=r[1],n[2]=o}}else if(h[0]==="L"){if(n[0]=r[0],n[1]=r[1],n[2]=o,o+=zg(r[0],r[1],h[1],h[2]),r[0]=h[1],r[1]=h[2],typeof e=="number"&&o>=e){let f=(o-e)/(o-n[2]),d=[r[0]*(1-f)+n[0]*f,r[1]*(1-f)+n[1]*f];return{length:o,pos:d}}n[0]=r[0],n[1]=r[1],n[2]=o}}return{length:o,pos:r};function s(u,h){return Math.pow(1-h,3)*i[0]+3*Math.pow(1-h,2)*h*u[1]+3*(1-h)*Math.pow(h,2)*u[3]+Math.pow(h,3)*u[5]}function a(u,h){return Math.pow(1-h,3)*i[1]+3*Math.pow(1-h,2)*h*u[2]+3*(1-h)*Math.pow(h,2)*u[4]+Math.pow(h,3)*u[6]}function c(u,h){return Math.pow(1-h,2)*i[0]+2*(1-h)*h*u[1]+Math.pow(h,2)*u[3]}function l(u,h){return Math.pow(1-h,2)*i[1]+2*(1-h)*h*u[2]+Math.pow(h,2)*u[4]}};function zg(e,t,r,n){let i=e-r,o=t-n;return Math.sqrt(i*i+o*o)}function hB(e){let t,r=0,n=0,i={S:{to:"C",x:3},T:{to:"Q",x:1}};for(let o=0,s=e.length;o<s;o++){let a=e[o],c=i[a[0]];c&&(a[0]=c.to,t&&(t[0]===c.to?(r=2*t[c.x+2]-t[c.x],n=2*t[c.x+3]-t[c.x+1]):(r=t[t.length-2],n=t[t.length-1])),a.splice(1,0,r,n)),t=a}return e}function dB(e){let t=[],r=["L",0,0],n;for(let i=0,o=e.length;i<o;i++){let s=e[i];switch(s[0]){case"M":r=["L",s[1],s[2]],t.push(s);break;case"Z":t.push(r);break;case"H":n=t[t.length-1]||["L",0,0],t.push(["L",s[1],n[n.length-1]]);break;case"V":n=t[t.length-1]||["L",0,0],t.push(["L",n[n.length-2],s[1]]);break;default:t.push(s)}}return t}const Gg=e=>{if(typeof e=="function"||Object(e)!==e)return e;const t=new e.constructor;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Gg(e[r]));return t};function Bg(e){const t=Bg.ps=Bg.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout(()=>{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&r!==e&&(t[r].sleep--,t[r].sleep||delete t[r])}),t[e]}function Yl(e,t,r,n){return e==null&&(e=t=r=n=0),t==null&&(t=e.y,r=e.width,n=e.height,e=e.x),{x:e,y:t,width:r,w:r,height:n,h:n,x2:e+r,y2:t+n,cx:e+r/2,cy:t+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:_B(e,t,r,n),vb:[e,t,r,n].join(" ")}}function Q$(e,t,r,n,i,o,s,a,c){const l=1-c,u=l**3,h=l**2,f=c*c,d=f*c,p=u*e+h*3*c*r+l*3*c*c*i+d*s,m=u*t+h*3*c*n+l*3*c*c*o+d*a,v=e+2*c*(r-e)+f*(i-2*r+e),b=t+2*c*(n-t)+f*(o-2*n+t),_=r+2*c*(i-r)+f*(s-2*i+r),g=n+2*c*(o-n)+f*(a-2*o+n),S=l*e+c*r,A=l*t+c*n,E=l*i+c*s,N=l*o+c*a,D=90-Math.atan2(v-_,b-g)*180/Math.PI;return{x:p,y:m,m:{x:v,y:b},n:{x:_,y:g},start:{x:S,y:A},end:{x:E,y:N},alpha:D}}function Z$(e,t,r,n,i,o,s,a){Array.isArray(e)||(e=[e,t,r,n,i,o,s,a]);const c=rS(...e);return Yl(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)}function fB(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height}function pB(e,t){e=Yl(e),t=Yl(t);const{x:r,y:n,width:i,height:o}=e,{x:s,y:a,width:c,height:l}=t,u=r+i/2,h=n+o/2,f=s+c/2,d=a+l/2;return Math.abs(u-f)<=(i+c)/2||Math.abs(h-d)<=(o+l)/2}function tS(e,t,r,n,i){const o=-3*t+9*r-9*n+3*i,s=e*o+6*t-12*r+6*n;return e*s-3*t+3*r}function eS(e,t,r,n,i,o,s,a,c){c==null&&(c=1),c=Math.max(0,Math.min(c,1));const l=c/2,u=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let d=0;for(let p=0;p<u;p++){const m=l*h[p]+l,v=tS(m,e,r,i,s),b=tS(m,t,n,o,a),_=v*v+b*b;d+=f[p]*Math.sqrt(_)}return l*d}function mB(e,t,r,n,i,o,s,a){if(Math.max(e,r)<Math.min(i,s)||Math.min(e,r)>Math.max(i,s)||Math.max(t,n)<Math.min(o,a)||Math.min(t,n)>Math.max(o,a))return;const c=(e*n-t*r)*(i-s)-(e-r)*(i*a-o*s),l=(e*n-t*r)*(o-a)-(t-n)*(i*a-o*s),u=(e-r)*(o-a)-(t-n)*(i-s);if(!u)return;const h=c/u,f=l/u,d=Number(h.toFixed(2)),p=Number(f.toFixed(2));if(!(d<Number(Math.min(e,r).toFixed(2))||d>Number(Math.max(e,r).toFixed(2))||d<Number(Math.min(i,s).toFixed(2))||d>Number(Math.max(i,s).toFixed(2))||p<Number(Math.min(t,n).toFixed(2))||p>Number(Math.max(t,n).toFixed(2))||p<Number(Math.min(o,a).toFixed(2))||p>Number(Math.max(o,a).toFixed(2))))return{x:h,y:f}}function gB(e,t,r){const n=Z$(e),i=Z$(t);if(!pB(n,i))return r?0:[];const o=eS.apply(0,e),s=eS.apply(0,t),a=Math.ceil(o/8),c=Math.ceil(s/8),l=[],u=[],h={};let f=r?0:[];for(let d=0;d<a+1;d++){const p=Q$.apply(0,e.concat(d/a));l.push({x:p.x,y:p.y,t:d/a})}for(let d=0;d<c+1;d++){const p=Q$.apply(0,t.concat(d/c));u.push({x:p.x,y:p.y,t:d/c})}for(let d=0;d<a;d++)for(let p=0;p<c;p++){const m=l[d],v=l[d+1],b=u[p],_=u[p+1],g=Math.abs(v.x-m.x)<.001?"y":"x",S=Math.abs(_.x-b.x)<.001?"y":"x",A=mB(m.x,m.y,v.x,v.y,b.x,b.y,_.x,_.y);if(A&&h[A.x.toFixed(4)]!==A.y.toFixed(4)){h[A.x.toFixed(4)]=A.y.toFixed(4);const E=m.t+Math.abs((A[g]-m[g])/(v[g]-m[g]))*(v.t-m.t),N=b.t+Math.abs((A[S]-b[S])/(_[S]-b[S]))*(_.t-b.t);E>=0&&E<=1&&N>=0&&N<=1&&(r?f++:f.push({x:A.x,y:A.y,t1:E,t2:N}))}}return f}function yB(e,t,r){let n,i,o,s,a,c,l,u,h,f,d=r?0:[];for(let p=0,m=e.length;p<m;p++){const v=e[p];if(v[0]==="M")n=a=v[1],i=c=v[2];else{v[0]==="C"?(h=[n,i].concat(v.slice(1)),n=h[6],i=h[7]):(h=[n,i,n,i,a,c,a,c],n=a,i=c);for(let b=0,_=t.length;b<_;b++){const g=t[b];if(g[0]==="M")o=l=g[1],s=u=g[2];else{g[0]==="C"?(f=[o,s].concat(g.slice(1)),o=f[6],s=f[7]):(f=[o,s,o,s,l,u,l,u],o=l,s=u);const S=gB(h,f,r);if(r)d+=S;else{for(let A=0,E=S.length;A<E;A++)S[A].segment1=p,S[A].segment2=b,S[A].bez1=h,S[A].bez2=f;d=d.concat(S)}}}}}return d}function vB(e){const t=Bg(e);if(t.bbox)return Gg(t.bbox);if(!e)return Yl();let r=0,n=0,i=[],o=[],s=[];for(let f=0,d=e.length;f<d;f++)if(s=e[f],s[0]==="M")r=s[1],n=s[2],i.push(r),o.push(n);else{const p=rS(r,n,s[1],s[2],s[3],s[4],s[5],s[6]);i=i.concat(p.min.x,p.max.x),o=o.concat(p.min.y,p.max.y),r=s[5],n=s[6]}const a=Math.min.apply(0,i),c=Math.min.apply(0,o),l=Math.max.apply(0,i),u=Math.max.apply(0,o),h=Yl(a,c,l-a,u-c);return t.bbox=Gg(h),h}function _B(e,t,r,n,i){return i?[["M",Number(e)+Number(i),t],["l",r-i*2,0],["a",i,i,0,0,1,i,i],["l",0,n-i*2],["a",i,i,0,0,1,-i,i],["l",i*2-r,0],["a",i,i,0,0,1,-i,-i],["l",0,i*2-n],["a",i,i,0,0,1,i,-i],["z"]]:[["M",e,t],["l",r,0],["l",0,n],["l",-r,0],["z"]]}function rS(e,t,r,n,i,o,s,a){const c=[],l=[[],[]];let u,h,f,d,p,m,v,b;for(let A=0;A<2;++A){if(A===0?(h=6*e-12*r+6*i,u=-3*e+9*r-9*i+3*s,f=3*r-3*e):(h=6*t-12*n+6*o,u=-3*t+9*n-9*o+3*a,f=3*n-3*t),Math.abs(u)<1e-12){if(Math.abs(h)<1e-12)continue;d=-f/h,d>0&&d<1&&c.push(d);continue}v=h*h-4*f*u,b=Math.sqrt(v),!(v<0)&&(p=(-h+b)/(2*u),p>0&&p<1&&c.push(p),m=(-h-b)/(2*u),m>0&&m<1&&c.push(m))}let _=c.length,g;const S=_;for(;_--;)d=c[_],g=1-d,l[0][_]=g*g*g*e+3*g*g*d*r+3*g*d*d*i+d*d*d*s,l[1][_]=g*g*g*t+3*g*g*d*n+3*g*d*d*o+d*d*d*a;return l[0][S]=e,l[1][S]=t,l[0][S+1]=s,l[1][S+1]=a,l[0].length=l[1].length=S+2,{min:{x:Math.min.apply(0,l[0]),y:Math.min.apply(0,l[1])},max:{x:Math.max.apply(0,l[0]),y:Math.max.apply(0,l[1])}}}function bB(e,t,r){const n=vB(e);return!(!fB(n,t,r)||yB(e,Vg([["M",t,r],["H",n.x2+10]]),1)%2!==1)}const Hg=new Map;function nS(e){if(Hg.has(e))return Hg.get(e);const t=da(e);return Hg.set(e,t),t}function iS(e){const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d",e),t}function wB(e,t){return Nh?iS(e).getTotalLength(t):nS(e).length()}function xB(e,t){if(Nh)return iS(e).getPointAtLength(t);{const r=nS(e),[n,i]=r.at(t);return{x:n,y:i}}}let Tn=null;function $B(e,t,r){if(Nh){Tn||(Tn=document.createElement("canvas").getContext("2d"));const n=new Path2D(e);return Tn.isPointInPath(n,t,r)}else return bB(e,t,r)}function SB(e,t,r,{lineWidth:n=1,lineCap:i="butt",lineJoin:o="miter"}){if(Nh){if(Tn||(Tn=document.createElement("canvas").getContext("2d")),Tn.isPointInStroke){Tn.save(),Tn.lineWidth=n,Tn.lineCap=i,Tn.lineJoin=o;const s=new Path2D(e),a=Tn.isPointInStroke(s,t,r);return Tn.restore(),a}}else return null}function EB(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var oS={},sS={exports:{}},aS;function CB(){return aS||(aS=1,function(e){(function(t){var r="0.4.0",n="hasOwnProperty",i=/[\.\/]/,o="*",s=function(){},a=function(f,d){return f-d},c,l,u={n:{}},h=function(f,d){var p=l,m=Array.prototype.slice.call(arguments,2),v=h.listeners(f),b=0,_,g=[],S={},A=[];c=f,l=0;for(var E=0,N=v.length;E<N;E++)"zIndex"in v[E]&&(g.push(v[E].zIndex),v[E].zIndex<0&&(S[v[E].zIndex]=v[E]));for(g.sort(a);g[b]<0;)if(_=S[g[b++]],A.push(_.apply(d,m)),l)return l=p,A;for(E=0;E<N;E++)if(_=v[E],"zIndex"in _)if(_.zIndex==g[b]){if(A.push(_.apply(d,m)),l)return l=p,A;do if(b++,_=S[g[b]],_&&A.push(_.apply(d,m)),l)return l=p,A;while(_)}else S[_.zIndex]=_;else if(A.push(_.apply(d,m)),l)return l=p,A;return l=p,A.length?A:null};h.listeners=function(f){var d=f.split(i),p=u,m,v,b,_,g,S,A,E,N=[p],D=[];for(_=0,g=d.length;_<g;_++){for(E=[],S=0,A=N.length;S<A;S++)for(p=N[S].n,v=[p[d[_]],p[o]],b=2;b--;)m=v[b],m&&(E.push(m),D=D.concat(m.f||[]));N=E}return D},h.on=function(f,d){for(var p=f.split(i),m=u,v=0,b=p.length;v<b;v++)m=m.n,!m[p[v]]&&(m[p[v]]={n:{}}),m=m[p[v]];for(m.f=m.f||[],v=0,b=m.f.length;v<b;v++)if(m.f[v]==d)return s;return m.f.push(d),function(_){+_==+_&&(d.zIndex=+_)}},h.stop=function(){l=1},h.nt=function(f){return f?new RegExp("(?:\\.|\\/|^)"+f+"(?:\\.|\\/|$)").test(c):c},h.unbind=function(f,d){var p=f.split(i),m,v,b,_,g,S,A,E=[u];for(_=0,g=p.length;_<g;_++)for(S=0;S<E.length;S+=b.length-2){if(b=[S,1],m=E[S].n,p[_]!=o)m[p[_]]&&b.push(m[p[_]]);else for(v in m)m[n](v)&&b.push(m[v]);E.splice.apply(E,b)}for(_=0,g=E.length;_<g;_++)for(m=E[_];m.n;){if(d){if(m.f){for(S=0,A=m.f.length;S<A;S++)if(m.f[S]==d){m.f.splice(S,1);break}!m.f.length&&delete m.f}for(v in m.n)if(m.n[n](v)&&m.n[v].f){var N=m.n[v].f;for(S=0,A=N.length;S<A;S++)if(N[S]==d){N.splice(S,1);break}!N.length&&delete m.n[v].f}}else{delete m.f;for(v in m.n)m.n[n](v)&&m.n[v].f&&delete m.n[v].f}m=m.n}},h.once=function(f,d){var p=function(){d.apply(this,arguments),h.unbind(f,p)};return h.on(f,p)},h.version=r,h.toString=function(){return"You are running Eve "+r},e.exports?e.exports=h:t.eve=h})(Fg)}(sS)),sS.exports}(function(e){if(typeof EB=="function")var t=CB();(function(){function r(f){var d=function(p){d.parse(p)};return d.mode="text",d.type=String(f||"html").toLowerCase(),d.textchunk="",d.raw="",d.parse=c,d.on=s,d.event=o,d.end=i,d}function n(f,d,p){f==`
|
|
80
|
+
`&&this.event("newline"),h[this.mode].call(this,f,d,p)}function i(){n.call(this,"eof"),this.event("eof")}function o(f,d,p){typeof t=="function"&&t("elemental."+f+"."+d,null,d,p||"",this.raw);for(var m=this.events&&this.events[f],v=m&&m.length;v--;)try{this.events[f][v](d,p||"",this.raw)}catch{}this.raw=""}function s(f,d){this.events=this.events||{},this.events[f]=this.events[f]||[],this.events[f].push(d)}function a(f,d){return f&&(f.charAt?f.charAt(d):f[d])}function c(f){f=f||Object(f);for(var d=1,p=f.length+1,m,v,b=a(f,0);d<p;d++)m=v,v=b,b=a(f,d),this.raw+=v,n.call(this,v,b,m);this._beforeEnd=function(){n.call(this,"","",v)}}var l=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/,u=function(){for(var f in this.attr)this.attr.hasOwnProperty(f)&&this.event("attr",f,{value:this.attr[f],tagname:this.tagname,attr:this.attr})},h={text:function(f,d,p){switch(f){case"<":case"eof":this.nodename="",this.attr={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.event("text",this.textchunk),this.raw+=f,this.textchunk="";break;default:this.textchunk+=f}},special:function(f,d,p){if(p=="!"&&f=="-"&&d=="-")this.mode="comment start";else{if(this.textchunk=="[CDATA"&&f=="["){this.mode="cdata",this.textchunk="";return}if(f==">"||f=="eof"){this.event("special",this.textchunk),this.mode="text",this.textchunk="";return}this.textchunk+=f}},cdata:function(f,d,p){p=="]"&&f=="]"&&d==">"?(this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1)):(f=="eof"&&h["cdata end"].call(this),this.textchunk+=f)},"cdata end":function(f,d,p){this.event("cdata",this.textchunk),this.textchunk="",this.mode="text"},"comment start":function(f,d,p){d==">"||f=="eof"?(this.event("comment",""),this.mode="comment instant end"):this.mode="comment"},"comment instant end":function(f,d,p){this.mode="text"},comment:function(f,d,p){f=="-"&&p=="-"&&d==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):f=="eof"?this.event("comment",this.textchunk):this.textchunk+=f},"comment end":function(f,d,p){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},declaration:function(f,d,p){f=="?"&&d==">"?this.mode="declaration end":(f=="eof"&&this.event("comment",this.textchunk),this.textchunk+=f)},"declaration end":function(f,d,p){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},"tag name start":function(f,d,p){if(f=="eof")this.event("text","<");else if(!l.test(f)){if(this.mode="tag name",f=="/"){this.mode="close tag name start";return}if(f=="!"){this.mode="special",this.textchunk="";return}if(f=="?"){this.mode="declaration";return}h[this.mode].call(this,f,d,p)}},"close tag name start":function(f,d,p){l.test(f)||(this.mode="close tag name",this.tagname="",this.nodename="",h[this.mode].call(this,f,d,p))},"close tag name":function(f,d,p){if(l.test(f))this.tagname=this.nodename;else switch(f){case">":this.event("/tag",this.tagname||this.nodename),this.mode="text";break;default:!this.tagname&&(this.nodename+=f)}},"tag name":function(f,d,p){if(l.test(f))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(f){case">":this.event("tag",this.nodename),this.mode="text";break;default:this.nodename+=f}},"attr start":function(f,d,p){l.test(f)||(this.mode="attr",this.nodename="",h[this.mode].call(this,f,d,p))},attr:function(f,d,p){if(l.test(f)||f=="=")this.attr[this.nodename]="",this.mode="attr value start";else switch(f){case">":this.nodename=="/"?(delete this.attr["/"],this.event("tag",this.tagname,this.attr),u.call(this),this.event("/tag",this.tagname,!0)):(this.nodename&&(this.attr[this.nodename]=""),this.event("tag",this.tagname,this.attr),u.call(this)),this.mode="text";break;default:this.nodename+=f}},"attr value start":function(f,d,p){if(!l.test(f)){if(this.mode="attr value",this.quote=!1,f=="'"||f=='"'){this.quote=f;return}h[this.mode].call(this,f,d,p)}},"attr value":function(f,d,p){if(l.test(f)&&!this.quote)this.mode="attr start";else if(f==">"&&!this.quote)this.event("tag",this.tagname,this.attr),this.mode="text";else switch(f){case'"':case"'":this.quote==f&&p!="\\"&&(this.mode="attr start");break;default:this.attr[this.nodename]+=f}}};r.version="0.2.1",e.elemental=r,e.eve=t})()})(oS);const lS=vn(oS);function qg(e,t,r,n,i,o){if(typeof i>"u"||typeof o>"u"){const s=e-r,a=t-n;return!s&&!a?0:(180+Math.atan2(-a,-s)*180/Math.PI+360)%360}else return qg(e,t,i,o)-qg(r,n,i,o)}const ve=lS.eve,kB=lS.elemental,hd={cursor:1,cx:0,cy:0,fill:1,"fill-opacity":0,font:1,"font-family":1,"font-size":0,"font-style":1,"font-weight":1,height:0,"letter-spacing":0,opacity:0,r:0,rx:0,ry:0,src:1,stroke:1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":1,width:0,x:0,y:0};function Kg(e,t,r){for(var n=(e+"").split(";"),i=/^\s+|\s+$/g,o,s=0,a=n.length;s<a;s++){var c=n[s].split(":");o=c[0].replace(i,"").replace(/[A-Z]/g,function(l){return"-"+l.toLowerCase()}),(!r||o in r)&&(t[o]=c[1].replace(i,""),r&&!r[o]&&(t[o]=parseFloat(t[o])))}}function PB(e){const t=kB(),r=[],n=[],i={};let o,s,a;const c={};function l(u,h){return function(f,d){const p={type:h||u};r.push(p);for(let m in d)Object.prototype.hasOwnProperty.call(d,m)&&ve("rappar."+u+".attr."+m,p,d[m],m);ve("rappar."+u+".attrend",p,d)}}return ve.on("rappar.polygon.attr.points",function(u){this.path="M"+u+"z",ve.stop()}),ve.on("rappar.image.attr.xlink:href",function(u){this.src=u,ve.stop()}),ve.on("rappar.path.attr.d",function(u){this.path=u,ve.stop()}),ve.on("rappar.*.attr.transform",function(u){this.transform=X$(u).toTransformString(),ve.stop()}),ve.on("rappar.*.attr.fill",function(u){var h=u.match(/url\(#([^)]+)\)/),f=this;h&&(h=h[1],i[h]?this.fill=i[h]:ve.on("rappar.found."+h,function(d){f.fill=d}),ve.stop())}),ve.on("rappar.line.attrend",function(u){this.path="M"+[u.x1,u.y1,u.x2,u.y2]}),ve.on("rappar.*.attrend",function(){for(var u=n.length;u--;)if(n[u]!=this){let f="",d="";for(var h in n[u])h=="transform"?f=n[u].transform:h=="class"&&c["."+n[u][h]]?d=c["."+n[u][h]].join(";")+";"+d:h=="id"&&c["#"+n[u][h]]?d=c["#"+n[u][h]].join(";")+";"+d:typeof this[h]>"u"&&(this[h]=n[u][h]);this.type&&(typeof this.transform>"u"?this.transform=f:this.transform+=f,typeof this.style>"u"?this.style=d:this.style=d+this.style,Kg(this.style,this,hd))}}),ve.on("rappar.*.attr.style",function(u){var h=function(){Kg(u,this,hd),ve.unbind("rappar.*.attrend",h)};ve.on("rappar.*.attrend",h),ve.stop()}),ve.on("rappar.*.attr.*",function(u,h){h in hd&&(this[h]=hd[h]?u:parseFloat(u))}),ve.on("elemental.tag.circle",l("circle")),ve.on("elemental.tag.ellipse",l("ellipse")),ve.on("elemental.tag.polygon",l("polygon","path")),ve.on("elemental.tag.path",l("path")),ve.on("elemental.tag.line",l("line","path")),ve.on("elemental.tag.rect",l("rect")),ve.on("elemental.tag.image",l("image")),ve.on("elemental.tag.text",l("text")),ve.on("elemental.text",function(u){try{const h=eF(u);for(let f of h.stylesheet.rules){for(let d of f.selectors)c[d]=[];for(let d of f.declarations)for(let p of f.selectors)c[p].push(`${d.property}:${d.value}`)}}catch{}}),ve.on("elemental.tag.svg",function(u,h){let f=h.width||0,d=h.height||0;if(!f||!d){const p=h.viewBox.split(/\s+/gi);f=parseFloat(p[2])-parseFloat(p[0]),d=parseFloat(p[3])-parseFloat(p[1])}r.push({type:"viewbox",width:f,height:d})}),ve.on("rappar.text.attrend",function(){o="",s=this,this["text-anchor"]=this["text-anchor"]||"start"}),ve.on("elemental.text",function(u,h,f){s&&(o+=f)}),ve.on("elemental./tag.text",function(){s.text=o,s=null}),ve.on("elemental.tag.g",function(u,h){var f={};n.push(f);for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(f[d]=h[d],ve("rappar.g.attr."+d,f,h[d],d));ve("rappar.g.attrend",f)}),ve.on("elemental./tag.g",function(u,h){n.pop()}),ve.on("elemental.tag.linearGradient",function(u,h){a={id:h.id,angle:+(360+qg(h.x1,h.y1,h.x2,h.y2,h.x1+100,h.y1)).toFixed(2),stops:[]}}),ve.on("elemental./tag.linearGradient",function(){for(var u=[a.angle],h,f=0,d=a.stops.length;f<d;f++)h=a.stops[f],f&&f!=d-1?u.push(h.color+":"+h.offset):u.push(h.color);i[a.id]=u.join("-"),ve("rappar.found."+a.id,null,i[a.id])}),ve.on("elemental.tag.radialGradient",function(u,h){a={id:h.id,stops:[]}}),ve.on("elemental./tag.radialGradient",function(){for(var u=[],h,f=0,d=a.stops.length;f<d;f++)h=a.stops[f],f&&f!=d-1?u.push(h.color+":"+h.offset):u.push(h.color);i[a.id]="r"+u.join("-"),ve("rappar.found."+a.id,null,i[a.id])}),ve.on("elemental.tag.stop",function(u,h){var f={};h.style&&Kg(h.style,f),f.offset=f.offset||h.offset,f.color=f["stop-color"]||h["stop-color"],f.opacity=f["stop-opacity"]||h["stop-opacity"],~(f.offset+"").indexOf("%")?f.offset=parseFloat(f.offset):f.offset=parseFloat(f.offset)*100,f.offset=+f.offset.toFixed(2),a.stops.push(f)}),t(e),t.end(),r}const cS=TB("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);function TB(e,t=10){const r={},n=e.split(",");for(let i=0;i<n.length;i+=2){const o="&"+n[i+1]+";",s=parseInt(n[i],t);r[o]="&#"+s+";"}return r["\\xa0"]=" ",r}function Zr(e,t){const r=Object.keys(t);for(let n=0;n<r.length;n++)e=e.replace(new RegExp("{"+r[n]+"}","gi"),""+t[r[n]]);return e}function dd(e){let t,r;if(!e)throw new Error("cannot create a random attribute name for an undefined object");const n="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",r=0;r<12;r++)t+=n[Math.floor(Math.random()*n.length)];while(e[t]);return t}function OB(e){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[e]||t.start}function NB(e){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[e]||t.alphabetic}const Xl={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}};class Yg{__root;__ctx;constructor(t,r){this.__root=t,this.__ctx=r}addColorStop(t,r){const n=this.__ctx.__createElement("stop");if(n.setAttribute("offset",""+t),r.indexOf("rgba")!==-1){const i=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(r);i&&(n.setAttribute("stop-color",Zr("rgb({r},{g},{b})",{r:i[1],g:i[2],b:i[3]})),n.setAttribute("stop-opacity",i[4]))}else n.setAttribute("stop-color",r);this.__root.appendChild(n)}}class uS{__root;__ctx;constructor(t,r){this.__root=t,this.__ctx=r}}class fd{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:r=500,height:n=500,enableMirroring:i=!1}){this.enableMirroring=i,t?(this.__canvas=t,this.__ctx=t.getContext("2d"),this.width=t.width,this.height=t.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=r,this.height=n),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const t=Object.keys(Xl);for(let r=0,n=t.length;r<n;r++){const i=t[r];this[i]=Xl[i].canvas}}__getStyleState(){const t={},r=Object.keys(Xl);for(let n=0,i=r.length;n<i;n++){const o=r[n];t[o]=this[o]}return t}__applyStyleState(t){const r=Object.keys(t);for(let n=0,i=r.length;n<i;n++){const o=r[n];this[o]=t[o]}}__createElement(t,r={},n=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),o=Object.keys(r);n&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let s=0;s<o.length;s++){const a=o[s];i.setAttribute(a,r[a])}return i}__applyStyleToCurrentElement(t){let r=this.__currentElement;const n=this.__currentElementsToStyle;n&&(r.setAttribute(t,""),r=n.element,n.children.forEach(o=>{o.setAttribute(t,"")}));const i=Object.keys(Xl);for(let o=0;o<i.length;o++){const s=Xl[i[o]],a=this[i[o]];if(s.apply){if(a instanceof uS){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const c=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[c]=c,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}r.setAttribute(s.apply,Zr("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Yg)r.setAttribute(s.apply,Zr("url(#{id})",{id:a.__root.getAttribute("id")}));else if(s.apply.indexOf(t)!==-1&&s.svg!==a)if((s.svgAttr==="stroke"||s.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);r.setAttribute(s.svgAttr,Zr("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));let l=parseFloat(c[4]);const u=this.globalAlpha;u!=null&&(l*=u),r.setAttribute(s.svgAttr+"-opacity",""+l)}else{let c=s.svgAttr;if(i[o]==="globalAlpha"&&(c=t+"-"+s.svgAttr,r.getAttribute(c)))continue;c&&r.setAttribute(c,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let r=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(r)&&(r=r.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const n=Object.keys(cS);for(let i=0,o=n.length;i<o;i++){const s=n[i],a=cS[s],c=new RegExp(s,"gi");c.test(r)&&(r=r.replace(c,a))}}return r}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),r=this.__closestGroupOrSvg();this.__groupStack.push(r),r.appendChild(t),this.__currentElement=t,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const t=this.__groupStack.pop();t?this.__currentElement=t:this.__currentElement=this.__rootSVG.childNodes[1];const r=this.__styleStack.pop();r&&this.__applyStyleState(r)}__addTransform(t){const r=this.__closestGroupOrSvg();if(r.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:r,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");r.appendChild(i),this.__currentElement=i}let n=this.__currentElement.getAttribute("transform");n?n+=" ":n="",n+=t,this.__currentElement.setAttribute("transform",n)}scale(t,r){r===void 0&&(r=t),this.__addTransform(Zr("scale({x},{y})",{x:t,y:r}))}rotate(t){const r=t*180/Math.PI;this.__addTransform(Zr("rotate({angle},{cx},{cy})",{angle:r,cx:0,cy:0}))}translate(t,r){this.__addTransform(Zr("translate({x},{y})",{x:t,y:r}))}transform(t,r,n,i,o,s){this.__addTransform(Zr("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:r,c:n,d:i,e:o,f:s}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const t=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t}__applyCurrentDefaultPath(){const t=this.__currentElement;t.nodeName==="path"?t.setAttribute("d",this.__currentDefaultPath):console.error("Attempted to apply path command to node",t.nodeName)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:r},this.__addPathCommand(Zr("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(t,r){this.__currentPosition={x:t,y:r},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Zr("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Zr("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,r,n,i,o,s){this.__currentPosition={x:o,y:s},this.__addPathCommand(Zr("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:r,cp2x:n,cp2y:i,x:o,y:s}))}quadraticCurveTo(t,r,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(Zr("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:r,x:n,y:i}))}normalize(t){const r=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/r,t[1]/r]}arcTo(t,r,n,i,o){const s=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof s>"u"||typeof a>"u")return;if(o<0)throw new Error("IndexSizeError: The radius provided ("+o+") is negative.");if(s===t&&a===r||t===n&&r===i||o===0){this.lineTo(t,r);return}const c=this.normalize([s-t,a-r]),l=this.normalize([n-t,i-r]);if(c[0]*l[1]===c[1]*l[0]){this.lineTo(t,r);return}const u=c[0]*l[0]+c[1]*l[1],h=Math.acos(Math.abs(u)),f=this.normalize([c[0]+l[0],c[1]+l[1]]),d=o/Math.sin(h/2),p=t+d*f[0],m=r+d*f[1],v=[-c[1],c[0]],b=[l[1],-l[0]],_=function(A){const E=A[0];return A[1]>=0?Math.acos(E):-Math.acos(E)},g=_(v),S=_(b);this.lineTo(p+v[0]*o,m+v[1]*o),this.arc(p,m,o,g,S)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(t,r,n,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,r),this.lineTo(t+n,r),this.lineTo(t+n,r+i),this.lineTo(t,r+i),this.lineTo(t,r),this.closePath()}fillRect(t,r,n,i){const o=this.__createElement("rect",{x:t,y:r,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("fill")}strokeRect(t,r,n,i){const o=this.__createElement("rect",{x:t,y:r,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const t=this.__closestGroupOrSvg().getAttribute("transform"),r=this.__rootSVG.childNodes[1],n=r.childNodes;for(let i=n.length-1;i>=0;i--)n[i]&&r.removeChild(n[i]);this.__currentElement=r,this.__groupStack=[],t&&this.__addTransform(t)}clearRect(t,r,n,i){if(t===0&&r===0&&n===this.width&&i===this.height){this.__clearCanvas();return}const o=this.__closestGroupOrSvg(),s=this.__createElement("rect",{x:t,y:r,width:n,height:i,fill:"#FFFFFF"},!0);o.appendChild(s)}createLinearGradient(t,r,n,i){const o=this.__createElement("linearGradient",{id:dd(this.__ids),x1:t+"px",x2:n+"px",y1:r+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(o),new Yg(o,this)}createRadialGradient(t,r,n,i,o,s){const a=this.__createElement("radialGradient",{id:dd(this.__ids),cx:i+"px",cy:o+"px",r:s+"px",fx:t+"px",fy:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Yg(a,this)}__parseFont(){const t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),r={style:t[1]||"normal",size:t[4]||"10px",family:t[6]||"sans-serif",weight:t[3]||"normal",decoration:t[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(r.decoration="underline"),this.__fontHref&&(r.href=this.__fontHref),r}__wrapTextLink(t,r){if(t.href){const n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),n.appendChild(r),n}return r}__applyText(t,r,n,i){const o=this.__parseFont(),s=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":o.family,"font-size":o.size,"font-style":o.style,"font-weight":o.weight,"text-decoration":o.decoration,x:r,y:n,"text-anchor":OB(this.textAlign),"dominant-baseline":NB(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),s.appendChild(this.__wrapTextLink(o,a))}fillText(t,r,n){this.__applyText(t,r,n,"fill")}strokeText(t,r,n){this.__applyText(t,r,n,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,r,n,i,o,s){if(i===o)return;i=i%(2*Math.PI),o=o%(2*Math.PI),i===o&&(o=(o+2*Math.PI-.001*(s?-1:1))%(2*Math.PI));const a=t+n*Math.cos(o),c=r+n*Math.sin(o),l=t+n*Math.cos(i),u=r+n*Math.sin(i),h=s?0:1;let f=0,d=o-i;d<0&&(d+=2*Math.PI),s?f=d>Math.PI?0:1:f=d>Math.PI?1:0,this.lineTo(l,u),this.__addPathCommand(Zr("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:a,endY:c})),this.__currentPosition={x:a,y:c}}clip(){const t=this.__closestGroupOrSvg(),r=this.__createElement("clipPath"),n=dd(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),r.setAttribute("id",n),r.appendChild(this.__currentElement),this.__SVGdefs.appendChild(r),t.setAttribute("clip-path",Zr("url(#{id})",{id:n})),t.appendChild(i),this.__currentElement=i}drawImage(...t){let r=t[0],n,i,o,s,a=0,c=0,l,u,h,f,d,p,m,v;if(t.length===3)n=t[1],i=t[2],l=r.width,u=r.height,o=l,s=u;else if(t.length===5)n=t[1],i=t[2],o=t[3],s=t[4],l=r.width,u=r.height;else if(t.length===9)a=t[1],c=t[2],l=t[3],u=t[4],n=t[5],i=t[6],o=t[7],s=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const b=this.__closestGroupOrSvg();this.__currentElement;const _="translate("+n+", "+i+")";if(r instanceof fd){if(h=r.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)v=f.childNodes[0].getAttribute("id"),this.__ids[v]=v,this.__SVGdefs.appendChild(f.childNodes[0]);if(d=h.childNodes[1],d){const g=d.getAttribute("transform");let S;g?S=g+" "+_:S=_,d.setAttribute("transform",S),b.appendChild(d)}}}else(r.nodeName==="CANVAS"||r.nodeName==="IMG")&&(p=this.__createElement("image"),p.setAttribute("width",o),p.setAttribute("height",s),p.setAttribute("preserveAspectRatio","none"),(a||c||l!==r.width||u!==r.height)&&(m=this.__document.createElement("canvas"),m.width=o,m.height=s,m.getContext("2d")?.drawImage(r,a,c,l,u,0,0,o,s),r=m),p.setAttribute("transform",_),p.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r.nodeName==="CANVAS"?r.toDataURL():r.getAttribute("src")),b.appendChild(p))}createPattern(t,r){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=dd(this.__ids);let o;return n.setAttribute("id",i),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(o=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),o.setAttribute("width",""+t.width),o.setAttribute("height",""+t.height),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),n.appendChild(o),this.__SVGdefs.appendChild(n)):t instanceof fd&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new uS(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}let hS=class EC{point;constructor(t){this.point=new _s(t)}static fromSVGPathData(t){if(t.length<3)throw new Error("Line 参数个数错误");if(t[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new EC({x:t[1],y:t[2]})}toSVGPathData(){return["L",this.point.x,this.point.y]}toSVGPathD(){return"L "+this.point.toSVGPathD()}},dS=class CC extends hS{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(t){super(t),this.rx=t.rx,this.ry=t.ry,this.xAxisRotate=t?.xAxisRotate??0,this.largeArcFlag=t?.largeArcFlag??1,this.sweepFlag=t?.sweepFlag??1}static fromSVGPathData(t){if(t.length<8)throw new Error("Arc 参数个数错误");if(t[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new CC({x:t[6],y:t[7],rx:t[1],ry:t[2],xAxisRotate:t[3],largeArcFlag:t[4],sweepFlag:t[5]})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.point.x,this.point.y]}toSVGPathD(){return`A ${this.rx},${this.ry} ${this.xAxisRotate} ${this.largeArcFlag},${this.sweepFlag} ${this.point.toSVGPathD()}`}};class Jl extends hS{ctrlPoints=[];constructor(t){super(t),this.ctrlPoints.push(new _s({x:t.c1x,y:t.c1y})),this.ctrlPoints.push(new _s({x:t.c2x,y:t.c2y}))}static fromSVGPathData(t){if(t.length<7)throw new Error("CubicBezier 参数个数错误");if(t[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new Jl({c1x:t[1],c1y:t[2],c2x:t[3],c2y:t[4],x:t[5],y:t[6]})}toSVGPathData(){return["C",this.ctrlPoints[0].x,this.ctrlPoints[0].y,this.ctrlPoints[1].x,this.ctrlPoints[1].y,this.point.x,this.point.y]}toSVGPathD(){return`C ${this.ctrlPoints.map(t=>t.toSVGPathD()).join(" ")} ${this.point.toSVGPathD()}`}}class fa{startPoint;isClosed=!1;lines=[];normalizedLines=[];constructor(t){this.startPoint=t?.startPoint??null,this.isClosed=t?.isClosed??!1,t?.lines?.forEach(this.addLine),this.normalize()}setStartPoint(t,r){return this.startPoint=new _s({x:t,y:r}),this}addLine(t){return this.lines.push(t),this}normalize(){let t=this.lines.reduce((n,i)=>(n+=i.toSVGPathD(),n),"");this.startPoint&&(t="M "+this.startPoint.toSVGPathD()+t),this.isClosed&&(t+="Z"),this.normalizedLines=[];const r=Vg(Ug(Lg(t)));for(let n=0,i=r.length;n<i;n++){const o=r[n];if(n==0&&o[0]=="M"){this.setStartPoint(o[1],o[2]);continue}if(n==i-1&&o[0]=="Z"){this.isClosed=!0;continue}this.normalizedLines.push(Jl.fromSVGPathData(o))}return this}static fromSVGPathD(t,r){if(!nB(t))throw new Error("Not an SVG path!");const n=Vg(Ug(Lg(t)));return fa.fromSVGPathData(n,r)}static fromSVGPathData(t,r){const n=new fa;for(let o=0,s=t.length;o<s;o++){const a=t[o],c=a[0];if(o==0&&c=="M"){n.setStartPoint(a[1],a[2]);continue}if(o==s-1&&c=="Z"){n.isClosed=!0;continue}n.addLine(new Jl({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],x:a[5],y:a[6]}))}n.normalize();const i=X$(r??"");return n.transform(i)}toSVGPathD(){let t="";this.startPoint&&(t+="M "+this.startPoint.toSVGPathD());for(let r=0,n=this.normalizedLines.length;r<n;r++)t+=this.normalizedLines[r].toSVGPathD();return this.isClosed&&(t+="Z"),t}toSVGPathData(){const t=[];this.startPoint&&t.push(["M",...this.startPoint.toSVGPathData()]);for(let r=0,n=this.normalizedLines.length;r<n;r++)t.push(this.normalizedLines[r].toSVGPathData());return this.isClosed&&t.push(["Z"]),t}toCanvas(t){const r=this.normalizedLines;r.length&&(this.startPoint&&(t.beginPath(),t.moveTo(this.startPoint.x,this.startPoint.y)),r.forEach(n=>{const[i,...o]=n.toSVGPathData();i==="M"?t.moveTo(o[0],o[1]):i==="Z"?t.closePath():t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}),this.isClosed&&t.closePath())}get bounds(){let t=[0,0,0,0];if(this.normalizedLines.length){t=[1/0,1/0,-1/0,-1/0];for(let r=0,n=this.normalizedLines.length;r<n;r++){const i=this.normalizedLines[r],o=[...i.ctrlPoints,i.point];for(let s=0;s<o.length;s++){const a=o[s].x,c=o[s].y;a<t[0]&&(t[0]=a),c<t[1]&&(t[1]=c),a>t[2]&&(t[2]=a),c>t[3]&&(t[3]=c)}}}return t}get size(){const t=this.bounds;return[t[2]-t[0],t[3]-t[1]]}get center(){const[t,r,n,i]=this.bounds;return[(t+n)/2,(r+i)/2]}getTotalLength(){return wB(this.toSVGPathD())}getPointAtLength(t){return xB(this.toSVGPathD(),t)}isPointInPath(t,r){return $B(this.toSVGPathD(),t,r)}isPointInStroke(t,r,n={lineWidth:1,lineCap:"butt",lineJoin:"miter"}){return SB(this.toSVGPathD(),t,r,n)}transform(t){if(this.startPoint){const[r,n]=t.transformPoint(this.startPoint.x,this.startPoint.y);this.setStartPoint(r,n)}return this.normalizedLines=this.normalizedLines.map(r=>{const[n,...i]=r.toSVGPathData(),o=[n];for(let s=0,a=i.length;s<a;s+=2){const c=i[s],l=i[s+1],[u,h]=t.transformPoint(c,l);o.push(u,h)}return Jl.fromSVGPathData(o)}),this}translate(t,r){const n=new Qr().translate(t,r);return this.transform(n)}rotate(t,r=0,n=0){const i=new Qr().rotate(t,r,n);return this.transform(i)}scale(t,r=t,n=0,i=0){const o=new Qr().scale(t,r,n,i);return this.transform(o)}skew(t,r=0){const n=new Qr().skew(t,r);return this.transform(n)}trim(){const[t,r]=this.bounds;return this.translate(-t,-r),this}static generateRosetta(t,r,n,i,o){if(o==0)throw new Error("no dividing by zero, please");const s=new fa;s.setStartPoint(t,r);const a=360/o;for(let c=0;c<o;c+=1){const l=a*c*Math.PI/180,u=t+2*n*Math.cos(l),h=r+2*n*Math.sin(l);s.addLine(new dS({x:u,y:h,rx:n,ry:i,xAxisRotate:a*c,largeArcFlag:1,sweepFlag:1})),s.addLine(new dS({x:t,y:r,rx:n,ry:i,xAxisRotate:a*c,largeArcFlag:1,sweepFlag:1}))}return s.normalize(),s}}var fS={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(window,function(){return function(r){var n={};function i(o){if(n[o])return n[o].exports;var s=n[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=r,i.c=n,i.d=function(o,s,a){i.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:a})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,s){if(1&s&&(o=i(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var c in o)i.d(a,c,function(l){return o[l]}.bind(null,c));return a},i.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(s,"a",s),s},i.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},i.p="",i(i.s=1)}([function(r,n,i){var o,s;o=[i(2)],(s=function(a){function c(x){if(c.is(x,"function"))return l?x():a.on("raphael.DOMload",x);if(c.is(x,at))return c._engine.create[_](c,x.splice(0,3+c.is(x[0],vt))).add(x);var O=Array.prototype.slice.call(arguments,0);if(c.is(O[O.length-1],"function")){var j=O.pop();return l?j.call(c._engine.create[_](c,O)):a.on("raphael.DOMload",function(){j.call(c._engine.create[_](c,O))})}return c._engine.create[_](c,arguments)}c.version="2.3.0",c.eve=a;var l,u,h=/[, ]+/,f={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},d=/\{(\d+)\}/g,p="hasOwnProperty",m={doc:document,win:window},v={was:Object.prototype[p].call(m.win,"Raphael"),is:m.win.Raphael},b=function(){this.ca=this.customAttributes={}},_="apply",g="concat",S="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,A="",E=" ",N=String,D="split",U="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[D](E),G={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},K=N.prototype.toLowerCase,W=Math,ot=W.max,nt=W.min,ft=W.abs,$t=W.pow,_t=W.PI,vt="number",at="array",Y=Object.prototype.toString,T=(c._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),C={NaN:1,Infinity:1,"-Infinity":1},$=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,y=W.round,k=parseFloat,M=parseInt,I=N.prototype.toUpperCase,z=c._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},q=c._availableAnimAttrs={blur:vt,"clip-rect":"csv",cx:vt,cy:vt,fill:"colour","fill-opacity":vt,"font-size":vt,height:vt,opacity:vt,path:"path",r:vt,rx:vt,ry:vt,stroke:"colour","stroke-opacity":vt,"stroke-width":vt,transform:"transform",width:vt,x:vt,y:vt},et=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,st={hs:1,rg:1},mt=/,?([achlmqrstvxz]),?/gi,Mt=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,X=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,Q=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,it=(c._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),lt=function(x,O){return k(x)-k(O)},ct=function(x){return x},dt=c._rectPath=function(x,O,j,w,P){return P?[["M",x+P,O],["l",j-2*P,0],["a",P,P,0,0,1,P,P],["l",0,w-2*P],["a",P,P,0,0,1,-P,P],["l",2*P-j,0],["a",P,P,0,0,1,-P,-P],["l",0,2*P-w],["a",P,P,0,0,1,P,-P],["z"]]:[["M",x,O],["l",j,0],["l",0,w],["l",-j,0],["z"]]},St=function(x,O,j,w){return w==null&&(w=j),[["M",x,O],["m",0,-w],["a",j,w,0,1,1,0,2*w],["a",j,w,0,1,1,0,-2*w],["z"]]},yt=c._getPath={path:function(x){return x.attr("path")},circle:function(x){var O=x.attrs;return St(O.cx,O.cy,O.r)},ellipse:function(x){var O=x.attrs;return St(O.cx,O.cy,O.rx,O.ry)},rect:function(x){var O=x.attrs;return dt(O.x,O.y,O.width,O.height,O.r)},image:function(x){var O=x.attrs;return dt(O.x,O.y,O.width,O.height)},text:function(x){var O=x._getBBox();return dt(O.x,O.y,O.width,O.height)},set:function(x){var O=x._getBBox();return dt(O.x,O.y,O.width,O.height)}},bt=c.mapPath=function(x,O){if(!O)return x;var j,w,P,F,B,H,J;for(P=0,B=(x=ii(x)).length;P<B;P++)for(F=1,H=(J=x[P]).length;F<H;F+=2)j=O.x(J[F],J[F+1]),w=O.y(J[F],J[F+1]),J[F]=j,J[F+1]=w;return x};if(c._g=m,c.type=m.win.SVGAngle||m.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",c.type=="VML"){var ut,It=m.doc.createElement("div");if(It.innerHTML='<v:shape adj="1"/>',(ut=It.firstChild).style.behavior="url(#default#VML)",!ut||typeof ut.adj!="object")return c.type=A;It=null}function Lt(x){if(typeof x=="function"||Object(x)!==x)return x;var O=new x.constructor;for(var j in x)x[p](j)&&(O[j]=Lt(x[j]));return O}c.svg=!(c.vml=c.type=="VML"),c._Paper=b,c.fn=u=b.prototype=c.prototype,c._id=0,c.is=function(x,O){return(O=K.call(O))=="finite"?!C[p](+x):O=="array"?x instanceof Array:O=="null"&&x===null||O==typeof x&&x!==null||O=="object"&&x===Object(x)||O=="array"&&Array.isArray&&Array.isArray(x)||Y.call(x).slice(8,-1).toLowerCase()==O},c.angle=function(x,O,j,w,P,F){if(P==null){var B=x-j,H=O-w;return B||H?(180+180*W.atan2(-H,-B)/_t+360)%360:0}return c.angle(x,O,P,F)-c.angle(j,w,P,F)},c.rad=function(x){return x%360*_t/180},c.deg=function(x){return Math.round(180*x/_t%360*1e3)/1e3},c.snapTo=function(x,O,j){if(j=c.is(j,"finite")?j:10,c.is(x,at)){for(var w=x.length;w--;)if(ft(x[w]-O)<=j)return x[w]}else{var P=O%(x=+x);if(P<j)return O-P;if(P>x-j)return O-P+x}return O};var Ut,Kt;c.createUUID=(Ut=/[xy]/g,Kt=function(x){var O=16*W.random()|0;return(x=="x"?O:3&O|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ut,Kt).toUpperCase()}),c.setWindow=function(x){a("raphael.setWindow",c,m.win,x),m.win=x,m.doc=m.win.document,c._engine.initWin&&c._engine.initWin(m.win)};var ne=function(x){if(c.vml){var O,j=/^\s+|\s+$/g;try{var w=new ActiveXObject("htmlfile");w.write("<body>"),w.close(),O=w.body}catch{O=createPopup().document.body}var P=O.createTextRange();ne=Qe(function(B){try{O.style.color=N(B).replace(j,A);var H=P.queryCommandValue("ForeColor");return"#"+("000000"+(H=(255&H)<<16|65280&H|(16711680&H)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var F=m.doc.createElement("i");F.title="Raphaël Colour Picker",F.style.display="none",m.doc.body.appendChild(F),ne=Qe(function(B){return F.style.color=B,m.doc.defaultView.getComputedStyle(F,A).getPropertyValue("color")})}return ne(x)},Yt=function(){return"hsb("+[this.h,this.s,this.b]+")"},he=function(){return"hsl("+[this.h,this.s,this.l]+")"},Ne=function(){return this.hex},Ye=function(x,O,j){if(O==null&&c.is(x,"object")&&"r"in x&&"g"in x&&"b"in x&&(j=x.b,O=x.g,x=x.r),O==null&&c.is(x,"string")){var w=c.getRGB(x);x=w.r,O=w.g,j=w.b}return(x>1||O>1||j>1)&&(x/=255,O/=255,j/=255),[x,O,j]},ar=function(x,O,j,w){var P={r:x*=255,g:O*=255,b:j*=255,hex:c.rgb(x,O,j),toString:Ne};return c.is(w,"finite")&&(P.opacity=w),P};function Qe(x,O,j){return function w(){var P=Array.prototype.slice.call(arguments,0),F=P.join("␀"),B=w.cache=w.cache||{},H=w.count=w.count||[];return B[p](F)?(function(J,rt){for(var ht=0,xt=J.length;ht<xt;ht++)if(J[ht]===rt)return J.push(J.splice(ht,1)[0])}(H,F),j?j(B[F]):B[F]):(H.length>=1e3&&delete B[H.shift()],H.push(F),B[F]=x[_](O,P),j?j(B[F]):B[F])}}c.color=function(x){var O;return c.is(x,"object")&&"h"in x&&"s"in x&&"b"in x?(O=c.hsb2rgb(x),x.r=O.r,x.g=O.g,x.b=O.b,x.hex=O.hex):c.is(x,"object")&&"h"in x&&"s"in x&&"l"in x?(O=c.hsl2rgb(x),x.r=O.r,x.g=O.g,x.b=O.b,x.hex=O.hex):(c.is(x,"string")&&(x=c.getRGB(x)),c.is(x,"object")&&"r"in x&&"g"in x&&"b"in x?(O=c.rgb2hsl(x),x.h=O.h,x.s=O.s,x.l=O.l,O=c.rgb2hsb(x),x.v=O.b):(x={hex:"none"}).r=x.g=x.b=x.h=x.s=x.v=x.l=-1),x.toString=Ne,x},c.hsb2rgb=function(x,O,j,w){var P,F,B,H,J;return this.is(x,"object")&&"h"in x&&"s"in x&&"b"in x&&(j=x.b,O=x.s,w=x.o,x=x.h),H=(J=j*O)*(1-ft((x=(x*=360)%360/60)%2-1)),P=F=B=j-J,ar(P+=[J,H,0,0,H,J][x=~~x],F+=[H,J,J,H,0,0][x],B+=[0,0,H,J,J,H][x],w)},c.hsl2rgb=function(x,O,j,w){var P,F,B,H,J;return this.is(x,"object")&&"h"in x&&"s"in x&&"l"in x&&(j=x.l,O=x.s,x=x.h),(x>1||O>1||j>1)&&(x/=360,O/=100,j/=100),H=(J=2*O*(j<.5?j:1-j))*(1-ft((x=(x*=360)%360/60)%2-1)),P=F=B=j-J/2,ar(P+=[J,H,0,0,H,J][x=~~x],F+=[H,J,J,H,0,0][x],B+=[0,0,H,J,J,H][x],w)},c.rgb2hsb=function(x,O,j){var w,P;return x=(j=Ye(x,O,j))[0],O=j[1],j=j[2],{h:(((P=(w=ot(x,O,j))-nt(x,O,j))==0?null:w==x?(O-j)/P:w==O?(j-x)/P+2:(x-O)/P+4)+360)%6*60/360,s:P==0?0:P/w,b:w,toString:Yt}},c.rgb2hsl=function(x,O,j){var w,P,F,B;return x=(j=Ye(x,O,j))[0],O=j[1],j=j[2],w=((P=ot(x,O,j))+(F=nt(x,O,j)))/2,{h:(((B=P-F)==0?null:P==x?(O-j)/B:P==O?(j-x)/B+2:(x-O)/B+4)+360)%6*60/360,s:B==0?0:w<.5?B/(2*w):B/(2-2*w),l:w,toString:he}},c._path2string=function(){return this.join(",").replace(mt,"$1")},c._preload=function(x,O){var j=m.doc.createElement("img");j.style.cssText="position:absolute;left:-9999em;top:-9999em",j.onload=function(){O.call(this),this.onload=null,m.doc.body.removeChild(this)},j.onerror=function(){m.doc.body.removeChild(this)},m.doc.body.appendChild(j),j.src=x};function xr(){return this.hex}function Lr(x,O){for(var j=[],w=0,P=x.length;P-2*!O>w;w+=2){var F=[{x:+x[w-2],y:+x[w-1]},{x:+x[w],y:+x[w+1]},{x:+x[w+2],y:+x[w+3]},{x:+x[w+4],y:+x[w+5]}];O?w?P-4==w?F[3]={x:+x[0],y:+x[1]}:P-2==w&&(F[2]={x:+x[0],y:+x[1]},F[3]={x:+x[2],y:+x[3]}):F[0]={x:+x[P-2],y:+x[P-1]}:P-4==w?F[3]=F[2]:w||(F[0]={x:+x[w],y:+x[w+1]}),j.push(["C",(-F[0].x+6*F[1].x+F[2].x)/6,(-F[0].y+6*F[1].y+F[2].y)/6,(F[1].x+6*F[2].x-F[3].x)/6,(F[1].y+6*F[2].y-F[3].y)/6,F[2].x,F[2].y])}return j}c.getRGB=Qe(function(x){if(!x||(x=N(x)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:xr};if(x=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:xr};!st[p](x.toLowerCase().substring(0,2))&&x.charAt()!="#"&&(x=ne(x));var O,j,w,P,F,B,H=x.match(T);return H?(H[2]&&(w=M(H[2].substring(5),16),j=M(H[2].substring(3,5),16),O=M(H[2].substring(1,3),16)),H[3]&&(w=M((F=H[3].charAt(3))+F,16),j=M((F=H[3].charAt(2))+F,16),O=M((F=H[3].charAt(1))+F,16)),H[4]&&(B=H[4][D](et),O=k(B[0]),B[0].slice(-1)=="%"&&(O*=2.55),j=k(B[1]),B[1].slice(-1)=="%"&&(j*=2.55),w=k(B[2]),B[2].slice(-1)=="%"&&(w*=2.55),H[1].toLowerCase().slice(0,4)=="rgba"&&(P=k(B[3])),B[3]&&B[3].slice(-1)=="%"&&(P/=100)),H[5]?(B=H[5][D](et),O=k(B[0]),B[0].slice(-1)=="%"&&(O*=2.55),j=k(B[1]),B[1].slice(-1)=="%"&&(j*=2.55),w=k(B[2]),B[2].slice(-1)=="%"&&(w*=2.55),(B[0].slice(-3)=="deg"||B[0].slice(-1)=="°")&&(O/=360),H[1].toLowerCase().slice(0,4)=="hsba"&&(P=k(B[3])),B[3]&&B[3].slice(-1)=="%"&&(P/=100),c.hsb2rgb(O,j,w,P)):H[6]?(B=H[6][D](et),O=k(B[0]),B[0].slice(-1)=="%"&&(O*=2.55),j=k(B[1]),B[1].slice(-1)=="%"&&(j*=2.55),w=k(B[2]),B[2].slice(-1)=="%"&&(w*=2.55),(B[0].slice(-3)=="deg"||B[0].slice(-1)=="°")&&(O/=360),H[1].toLowerCase().slice(0,4)=="hsla"&&(P=k(B[3])),B[3]&&B[3].slice(-1)=="%"&&(P/=100),c.hsl2rgb(O,j,w,P)):((H={r:O,g:j,b:w,toString:xr}).hex="#"+(16777216|w|j<<8|O<<16).toString(16).slice(1),c.is(P,"finite")&&(H.opacity=P),H)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:xr}},c),c.hsb=Qe(function(x,O,j){return c.hsb2rgb(x,O,j).hex}),c.hsl=Qe(function(x,O,j){return c.hsl2rgb(x,O,j).hex}),c.rgb=Qe(function(x,O,j){function w(P){return P+.5|0}return"#"+(16777216|w(j)|w(O)<<8|w(x)<<16).toString(16).slice(1)}),c.getColor=function(x){var O=this.getColor.start=this.getColor.start||{h:0,s:1,b:x||.75},j=this.hsb2rgb(O.h,O.s,O.b);return O.h+=.075,O.h>1&&(O.h=0,O.s-=.2,O.s<=0&&(this.getColor.start={h:0,s:1,b:O.b})),j.hex},c.getColor.reset=function(){delete this.start},c.parsePathString=function(x){if(!x)return null;var O=le(x);if(O.arr)return Ve(O.arr);var j={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},w=[];return c.is(x,at)&&c.is(x[0],at)&&(w=Ve(x)),w.length||N(x).replace(Mt,function(P,F,B){var H=[],J=F.toLowerCase();if(B.replace(Q,function(rt,ht){ht&&H.push(+ht)}),J=="m"&&H.length>2&&(w.push([F][g](H.splice(0,2))),J="l",F=F=="m"?"l":"L"),J=="r")w.push([F][g](H));else for(;H.length>=j[J]&&(w.push([F][g](H.splice(0,j[J]))),j[J]););}),w.toString=c._path2string,O.arr=Ve(w),w},c.parseTransformString=Qe(function(x){if(!x)return null;var O=[];return c.is(x,at)&&c.is(x[0],at)&&(O=Ve(x)),O.length||N(x).replace(X,function(j,w,P){var F=[];K.call(w),P.replace(Q,function(B,H){H&&F.push(+H)}),O.push([w][g](F))}),O.toString=c._path2string,O},this,function(x){if(!x)return x;for(var O=[],j=0;j<x.length;j++){for(var w=[],P=0;P<x[j].length;P++)w.push(x[j][P]);O.push(w)}return O});var le=function(x){var O=le.ps=le.ps||{};return O[x]?O[x].sleep=100:O[x]={sleep:100},setTimeout(function(){for(var j in O)O[p](j)&&j!=x&&(O[j].sleep--,!O[j].sleep&&delete O[j])}),O[x]};function nr(x,O,j,w,P){return x*(x*(-3*O+9*j-9*w+3*P)+6*O-12*j+6*w)-3*O+3*j}function $r(x,O,j,w,P,F,B,H,J){J==null&&(J=1);for(var rt=(J=J>1?1:J<0?0:J)/2,ht=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],xt=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],gt=0,pt=0;pt<12;pt++){var Et=rt*ht[pt]+rt,Nt=nr(Et,x,j,P,B),Ct=nr(Et,O,w,F,H),wt=Nt*Nt+Ct*Ct;gt+=xt[pt]*W.sqrt(wt)}return rt*gt}function ni(x,O,j,w,P,F,B,H){if(!(ot(x,j)<nt(P,B)||nt(x,j)>ot(P,B)||ot(O,w)<nt(F,H)||nt(O,w)>ot(F,H))){var J=(x-j)*(F-H)-(O-w)*(P-B);if(J){var rt=((x*w-O*j)*(P-B)-(x-j)*(P*H-F*B))/J,ht=((x*w-O*j)*(F-H)-(O-w)*(P*H-F*B))/J,xt=+rt.toFixed(2),gt=+ht.toFixed(2);if(!(xt<+nt(x,j).toFixed(2)||xt>+ot(x,j).toFixed(2)||xt<+nt(P,B).toFixed(2)||xt>+ot(P,B).toFixed(2)||gt<+nt(O,w).toFixed(2)||gt>+ot(O,w).toFixed(2)||gt<+nt(F,H).toFixed(2)||gt>+ot(F,H).toFixed(2)))return{x:rt,y:ht}}}}function xn(x,O,j){var w=c.bezierBBox(x),P=c.bezierBBox(O);if(!c.isBBoxIntersect(w,P))return j?0:[];for(var F=$r.apply(0,x),B=$r.apply(0,O),H=ot(~~(F/5),1),J=ot(~~(B/5),1),rt=[],ht=[],xt={},gt=j?0:[],pt=0;pt<H+1;pt++){var Et=c.findDotsAtSegment.apply(c,x.concat(pt/H));rt.push({x:Et.x,y:Et.y,t:pt/H})}for(pt=0;pt<J+1;pt++)Et=c.findDotsAtSegment.apply(c,O.concat(pt/J)),ht.push({x:Et.x,y:Et.y,t:pt/J});for(pt=0;pt<H;pt++)for(var Nt=0;Nt<J;Nt++){var Ct=rt[pt],wt=rt[pt+1],Bt=ht[Nt],At=ht[Nt+1],Ft=ft(wt.x-Ct.x)<.001?"y":"x",Dt=ft(At.x-Bt.x)<.001?"y":"x",ge=ni(Ct.x,Ct.y,wt.x,wt.y,Bt.x,Bt.y,At.x,At.y);if(ge){if(xt[ge.x.toFixed(4)]==ge.y.toFixed(4))continue;xt[ge.x.toFixed(4)]=ge.y.toFixed(4);var ce=Ct.t+ft((ge[Ft]-Ct[Ft])/(wt[Ft]-Ct[Ft]))*(wt.t-Ct.t),ye=Bt.t+ft((ge[Dt]-Bt[Dt])/(At[Dt]-Bt[Dt]))*(At.t-Bt.t);ce>=0&&ce<=1.001&&ye>=0&&ye<=1.001&&(j?gt++:gt.push({x:ge.x,y:ge.y,t1:nt(ce,1),t2:nt(ye,1)}))}}return gt}function An(x,O,j){x=c._path2curve(x),O=c._path2curve(O);for(var w,P,F,B,H,J,rt,ht,xt,gt,pt=j?0:[],Et=0,Nt=x.length;Et<Nt;Et++){var Ct=x[Et];if(Ct[0]=="M")w=H=Ct[1],P=J=Ct[2];else{Ct[0]=="C"?(xt=[w,P].concat(Ct.slice(1)),w=xt[6],P=xt[7]):(xt=[w,P,w,P,H,J,H,J],w=H,P=J);for(var wt=0,Bt=O.length;wt<Bt;wt++){var At=O[wt];if(At[0]=="M")F=rt=At[1],B=ht=At[2];else{At[0]=="C"?(gt=[F,B].concat(At.slice(1)),F=gt[6],B=gt[7]):(gt=[F,B,F,B,rt,ht,rt,ht],F=rt,B=ht);var Ft=xn(xt,gt,j);if(j)pt+=Ft;else{for(var Dt=0,ge=Ft.length;Dt<ge;Dt++)Ft[Dt].segment1=Et,Ft[Dt].segment2=wt,Ft[Dt].bez1=xt,Ft[Dt].bez2=gt;pt=pt.concat(Ft)}}}}}return pt}c.findDotsAtSegment=function(x,O,j,w,P,F,B,H,J){var rt=1-J,ht=$t(rt,3),xt=$t(rt,2),gt=J*J,pt=gt*J,Et=ht*x+3*xt*J*j+3*rt*J*J*P+pt*B,Nt=ht*O+3*xt*J*w+3*rt*J*J*F+pt*H,Ct=x+2*J*(j-x)+gt*(P-2*j+x),wt=O+2*J*(w-O)+gt*(F-2*w+O),Bt=j+2*J*(P-j)+gt*(B-2*P+j),At=w+2*J*(F-w)+gt*(H-2*F+w),Ft=rt*x+J*j,Dt=rt*O+J*w,ge=rt*P+J*B,ce=rt*F+J*H,ye=90-180*W.atan2(Ct-Bt,wt-At)/_t;return(Ct>Bt||wt<At)&&(ye+=180),{x:Et,y:Nt,m:{x:Ct,y:wt},n:{x:Bt,y:At},start:{x:Ft,y:Dt},end:{x:ge,y:ce},alpha:ye}},c.bezierBBox=function(x,O,j,w,P,F,B,H){c.is(x,"array")||(x=[x,O,j,w,P,F,B,H]);var J=en.apply(null,x);return{x:J.min.x,y:J.min.y,x2:J.max.x,y2:J.max.y,width:J.max.x-J.min.x,height:J.max.y-J.min.y}},c.isPointInsideBBox=function(x,O,j){return O>=x.x&&O<=x.x2&&j>=x.y&&j<=x.y2},c.isBBoxIntersect=function(x,O){var j=c.isPointInsideBBox;return j(O,x.x,x.y)||j(O,x.x2,x.y)||j(O,x.x,x.y2)||j(O,x.x2,x.y2)||j(x,O.x,O.y)||j(x,O.x2,O.y)||j(x,O.x,O.y2)||j(x,O.x2,O.y2)||(x.x<O.x2&&x.x>O.x||O.x<x.x2&&O.x>x.x)&&(x.y<O.y2&&x.y>O.y||O.y<x.y2&&O.y>x.y)},c.pathIntersection=function(x,O){return An(x,O)},c.pathIntersectionNumber=function(x,O){return An(x,O,1)},c.isPointInsidePath=function(x,O,j){var w=c.pathBBox(x);return c.isPointInsideBBox(w,O,j)&&An(x,[["M",O,j],["H",w.x2+10]],1)%2==1},c._removedFactory=function(x){return function(){a("raphael.log",null,"Raphaël: you are calling to method “"+x+"” of removed object",x)}};var Hr=c.pathBBox=function(x){var O=le(x);if(O.bbox)return Lt(O.bbox);if(!x)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var j,w=0,P=0,F=[],B=[],H=0,J=(x=ii(x)).length;H<J;H++)if((j=x[H])[0]=="M")w=j[1],P=j[2],F.push(w),B.push(P);else{var rt=en(w,P,j[1],j[2],j[3],j[4],j[5],j[6]);F=F[g](rt.min.x,rt.max.x),B=B[g](rt.min.y,rt.max.y),w=j[5],P=j[6]}var ht=nt[_](0,F),xt=nt[_](0,B),gt=ot[_](0,F),pt=ot[_](0,B),Et=gt-ht,Nt=pt-xt,Ct={x:ht,y:xt,x2:gt,y2:pt,width:Et,height:Nt,cx:ht+Et/2,cy:xt+Nt/2};return O.bbox=Lt(Ct),Ct},Ve=function(x){var O=Lt(x);return O.toString=c._path2string,O},Bo=c._pathToRelative=function(x){var O=le(x);if(O.rel)return Ve(O.rel);c.is(x,at)&&c.is(x&&x[0],at)||(x=c.parsePathString(x));var j=[],w=0,P=0,F=0,B=0,H=0;x[0][0]=="M"&&(F=w=x[0][1],B=P=x[0][2],H++,j.push(["M",w,P]));for(var J=H,rt=x.length;J<rt;J++){var ht=j[J]=[],xt=x[J];if(xt[0]!=K.call(xt[0]))switch(ht[0]=K.call(xt[0]),ht[0]){case"a":ht[1]=xt[1],ht[2]=xt[2],ht[3]=xt[3],ht[4]=xt[4],ht[5]=xt[5],ht[6]=+(xt[6]-w).toFixed(3),ht[7]=+(xt[7]-P).toFixed(3);break;case"v":ht[1]=+(xt[1]-P).toFixed(3);break;case"m":F=xt[1],B=xt[2];default:for(var gt=1,pt=xt.length;gt<pt;gt++)ht[gt]=+(xt[gt]-(gt%2?w:P)).toFixed(3)}else{ht=j[J]=[],xt[0]=="m"&&(F=xt[1]+w,B=xt[2]+P);for(var Et=0,Nt=xt.length;Et<Nt;Et++)j[J][Et]=xt[Et]}var Ct=j[J].length;switch(j[J][0]){case"z":w=F,P=B;break;case"h":w+=+j[J][Ct-1];break;case"v":P+=+j[J][Ct-1];break;default:w+=+j[J][Ct-2],P+=+j[J][Ct-1]}}return j.toString=c._path2string,O.rel=Ve(j),j},un=c._pathToAbsolute=function(x){var O=le(x);if(O.abs)return Ve(O.abs);if(c.is(x,at)&&c.is(x&&x[0],at)||(x=c.parsePathString(x)),!x||!x.length)return[["M",0,0]];var j=[],w=0,P=0,F=0,B=0,H=0;x[0][0]=="M"&&(F=w=+x[0][1],B=P=+x[0][2],H++,j[0]=["M",w,P]);for(var J,rt,ht=x.length==3&&x[0][0]=="M"&&x[1][0].toUpperCase()=="R"&&x[2][0].toUpperCase()=="Z",xt=H,gt=x.length;xt<gt;xt++){if(j.push(J=[]),(rt=x[xt])[0]!=I.call(rt[0]))switch(J[0]=I.call(rt[0]),J[0]){case"A":J[1]=rt[1],J[2]=rt[2],J[3]=rt[3],J[4]=rt[4],J[5]=rt[5],J[6]=+(rt[6]+w),J[7]=+(rt[7]+P);break;case"V":J[1]=+rt[1]+P;break;case"H":J[1]=+rt[1]+w;break;case"R":for(var pt=[w,P][g](rt.slice(1)),Et=2,Nt=pt.length;Et<Nt;Et++)pt[Et]=+pt[Et]+w,pt[++Et]=+pt[Et]+P;j.pop(),j=j[g](Lr(pt,ht));break;case"M":F=+rt[1]+w,B=+rt[2]+P;default:for(Et=1,Nt=rt.length;Et<Nt;Et++)J[Et]=+rt[Et]+(Et%2?w:P)}else if(rt[0]=="R")pt=[w,P][g](rt.slice(1)),j.pop(),j=j[g](Lr(pt,ht)),J=["R"][g](rt.slice(-2));else for(var Ct=0,wt=rt.length;Ct<wt;Ct++)J[Ct]=rt[Ct];switch(J[0]){case"Z":w=F,P=B;break;case"H":w=J[1];break;case"V":P=J[1];break;case"M":F=J[J.length-2],B=J[J.length-1];default:w=J[J.length-2],P=J[J.length-1]}}return j.toString=c._path2string,O.abs=Ve(j),j},$n=function(x,O,j,w){return[x,O,j,w,j,w]},Dr=function(x,O,j,w,P,F){return[1/3*x+2/3*j,1/3*O+2/3*w,1/3*P+2/3*j,1/3*F+2/3*w,P,F]},Dn=function(x,O,j,w,P,F,B,H,J,rt){var ht,xt=120*_t/180,gt=_t/180*(+P||0),pt=[],Et=Qe(function(xC,$C,tf){return{x:xC*W.cos(tf)-$C*W.sin(tf),y:xC*W.sin(tf)+$C*W.cos(tf)}});if(rt)ce=rt[0],ye=rt[1],Dt=rt[2],ge=rt[3];else{x=(ht=Et(x,O,-gt)).x,O=ht.y,H=(ht=Et(H,J,-gt)).x,J=ht.y;var Nt=(x-H)/2,Ct=(O-J)/2,wt=Nt*Nt/(j*j)+Ct*Ct/(w*w);wt>1&&(j*=wt=W.sqrt(wt),w*=wt);var Bt=j*j,At=w*w,Ft=(F==B?-1:1)*W.sqrt(ft((Bt*At-Bt*Ct*Ct-At*Nt*Nt)/(Bt*Ct*Ct+At*Nt*Nt))),Dt=Ft*j*Ct/w+(x+H)/2,ge=Ft*-w*Nt/j+(O+J)/2,ce=W.asin(((O-ge)/w).toFixed(9)),ye=W.asin(((J-ge)/w).toFixed(9));(ce=x<Dt?_t-ce:ce)<0&&(ce=2*_t+ce),(ye=H<Dt?_t-ye:ye)<0&&(ye=2*_t+ye),B&&ce>ye&&(ce-=2*_t),!B&&ye>ce&&(ye-=2*_t)}var Oa=ye-ce;if(ft(Oa)>xt){var uu=ye,dn=H,Ci=J;ye=ce+xt*(B&&ye>ce?1:-1),H=Dt+j*W.cos(ye),J=ge+w*W.sin(ye),pt=Dn(H,J,j,w,P,0,B,dn,Ci,[ye,uu,Dt,ge])}Oa=ye-ce;var Na=W.cos(ce),Aa=W.sin(ce),Qd=W.cos(ye),lo=W.sin(ye),zs=W.tan(Oa/4),Zd=4/3*j*zs,yC=4/3*w*zs,vC=[x,O],Da=[x+Zd*Aa,O-yC*Na],_C=[H+Zd*lo,J-yC*Qd],bC=[H,J];if(Da[0]=2*vC[0]-Da[0],Da[1]=2*vC[1]-Da[1],rt)return[Da,_C,bC][g](pt);for(var wC=[],Ho=0,YZ=(pt=[Da,_C,bC][g](pt).join()[D](",")).length;Ho<YZ;Ho++)wC[Ho]=Ho%2?Et(pt[Ho-1],pt[Ho],gt).y:Et(pt[Ho],pt[Ho+1],gt).x;return wC},Sn=function(x,O,j,w,P,F,B,H,J){var rt=1-J;return{x:$t(rt,3)*x+3*$t(rt,2)*J*j+3*rt*J*J*P+$t(J,3)*B,y:$t(rt,3)*O+3*$t(rt,2)*J*w+3*rt*J*J*F+$t(J,3)*H}},en=Qe(function(x,O,j,w,P,F,B,H){var J,rt=P-2*j+x-(B-2*P+j),ht=2*(j-x)-2*(P-j),xt=x-j,gt=(-ht+W.sqrt(ht*ht-4*rt*xt))/2/rt,pt=(-ht-W.sqrt(ht*ht-4*rt*xt))/2/rt,Et=[O,H],Nt=[x,B];return ft(gt)>"1e12"&&(gt=.5),ft(pt)>"1e12"&&(pt=.5),gt>0&><1&&(J=Sn(x,O,j,w,P,F,B,H,gt),Nt.push(J.x),Et.push(J.y)),pt>0&&pt<1&&(J=Sn(x,O,j,w,P,F,B,H,pt),Nt.push(J.x),Et.push(J.y)),rt=F-2*w+O-(H-2*F+w),xt=O-w,gt=(-(ht=2*(w-O)-2*(F-w))+W.sqrt(ht*ht-4*rt*xt))/2/rt,pt=(-ht-W.sqrt(ht*ht-4*rt*xt))/2/rt,ft(gt)>"1e12"&&(gt=.5),ft(pt)>"1e12"&&(pt=.5),gt>0&><1&&(J=Sn(x,O,j,w,P,F,B,H,gt),Nt.push(J.x),Et.push(J.y)),pt>0&&pt<1&&(J=Sn(x,O,j,w,P,F,B,H,pt),Nt.push(J.x),Et.push(J.y)),{min:{x:nt[_](0,Nt),y:nt[_](0,Et)},max:{x:ot[_](0,Nt),y:ot[_](0,Et)}}}),ii=c._path2curve=Qe(function(x,O){var j=!O&&le(x);if(!O&&j.curve)return Ve(j.curve);for(var w=un(x),P=O&&un(O),F={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},B={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},H=function(Ft,Dt,ge){var ce,ye;if(!Ft)return["C",Dt.x,Dt.y,Dt.x,Dt.y,Dt.x,Dt.y];switch(!(Ft[0]in{T:1,Q:1})&&(Dt.qx=Dt.qy=null),Ft[0]){case"M":Dt.X=Ft[1],Dt.Y=Ft[2];break;case"A":Ft=["C"][g](Dn[_](0,[Dt.x,Dt.y][g](Ft.slice(1))));break;case"S":ge=="C"||ge=="S"?(ce=2*Dt.x-Dt.bx,ye=2*Dt.y-Dt.by):(ce=Dt.x,ye=Dt.y),Ft=["C",ce,ye][g](Ft.slice(1));break;case"T":ge=="Q"||ge=="T"?(Dt.qx=2*Dt.x-Dt.qx,Dt.qy=2*Dt.y-Dt.qy):(Dt.qx=Dt.x,Dt.qy=Dt.y),Ft=["C"][g](Dr(Dt.x,Dt.y,Dt.qx,Dt.qy,Ft[1],Ft[2]));break;case"Q":Dt.qx=Ft[1],Dt.qy=Ft[2],Ft=["C"][g](Dr(Dt.x,Dt.y,Ft[1],Ft[2],Ft[3],Ft[4]));break;case"L":Ft=["C"][g]($n(Dt.x,Dt.y,Ft[1],Ft[2]));break;case"H":Ft=["C"][g]($n(Dt.x,Dt.y,Ft[1],Dt.y));break;case"V":Ft=["C"][g]($n(Dt.x,Dt.y,Dt.x,Ft[1]));break;case"Z":Ft=["C"][g]($n(Dt.x,Dt.y,Dt.X,Dt.Y))}return Ft},J=function(Ft,Dt){if(Ft[Dt].length>7){Ft[Dt].shift();for(var ge=Ft[Dt];ge.length;)ht[Dt]="A",P&&(xt[Dt]="A"),Ft.splice(Dt++,0,["C"][g](ge.splice(0,6)));Ft.splice(Dt,1),Nt=ot(w.length,P&&P.length||0)}},rt=function(Ft,Dt,ge,ce,ye){Ft&&Dt&&Ft[ye][0]=="M"&&Dt[ye][0]!="M"&&(Dt.splice(ye,0,["M",ce.x,ce.y]),ge.bx=0,ge.by=0,ge.x=Ft[ye][1],ge.y=Ft[ye][2],Nt=ot(w.length,P&&P.length||0))},ht=[],xt=[],gt="",pt="",Et=0,Nt=ot(w.length,P&&P.length||0);Et<Nt;Et++){w[Et]&&(gt=w[Et][0]),gt!="C"&&(ht[Et]=gt,Et&&(pt=ht[Et-1])),w[Et]=H(w[Et],F,pt),ht[Et]!="A"&>=="C"&&(ht[Et]="C"),J(w,Et),P&&(P[Et]&&(gt=P[Et][0]),gt!="C"&&(xt[Et]=gt,Et&&(pt=xt[Et-1])),P[Et]=H(P[Et],B,pt),xt[Et]!="A"&>=="C"&&(xt[Et]="C"),J(P,Et)),rt(w,P,F,B,Et),rt(P,w,B,F,Et);var Ct=w[Et],wt=P&&P[Et],Bt=Ct.length,At=P&&wt.length;F.x=Ct[Bt-2],F.y=Ct[Bt-1],F.bx=k(Ct[Bt-4])||F.x,F.by=k(Ct[Bt-3])||F.y,B.bx=P&&(k(wt[At-4])||B.x),B.by=P&&(k(wt[At-3])||B.y),B.x=P&&wt[At-2],B.y=P&&wt[At-1]}return P||(j.curve=Ve(w)),P?[w,P]:w},null,Ve),Rn=(c._parseDots=Qe(function(x){for(var O=[],j=0,w=x.length;j<w;j++){var P={},F=x[j].match(/^([^:]*):?([\d\.]*)/);if(P.color=c.getRGB(F[1]),P.color.error)return null;P.opacity=P.color.opacity,P.color=P.color.hex,F[2]&&(P.offset=F[2]+"%"),O.push(P)}for(j=1,w=O.length-1;j<w;j++)if(!O[j].offset){for(var B=k(O[j-1].offset||0),H=0,J=j+1;J<w;J++)if(O[J].offset){H=O[J].offset;break}H||(H=100,J=w);for(var rt=((H=k(H))-B)/(J-j+1);j<J;j++)B+=rt,O[j].offset=B+"%"}return O}),c._tear=function(x,O){x==O.top&&(O.top=x.prev),x==O.bottom&&(O.bottom=x.next),x.next&&(x.next.prev=x.prev),x.prev&&(x.prev.next=x.next)}),R=(c._tofront=function(x,O){O.top!==x&&(Rn(x,O),x.next=null,x.prev=O.top,O.top.next=x,O.top=x)},c._toback=function(x,O){O.bottom!==x&&(Rn(x,O),x.next=O.bottom,x.prev=null,O.bottom.prev=x,O.bottom=x)},c._insertafter=function(x,O,j){Rn(x,j),O==j.top&&(j.top=x),O.next&&(O.next.prev=x),x.next=O.next,x.prev=O,O.next=x},c._insertbefore=function(x,O,j){Rn(x,j),O==j.bottom&&(j.bottom=x),O.prev&&(O.prev.next=x),x.prev=O.prev,O.prev=x,x.next=O},c.toMatrix=function(x,O){var j=Hr(x),w={_:{transform:A},getBBox:function(){return j}};return L(w,O),w.matrix}),L=(c.transformPath=function(x,O){return bt(x,R(x,O))},c._extractTransform=function(x,O){if(O==null)return x._.transform;O=N(O).replace(/\.{3}|\u2026/g,x._.transform||A);var j,w,P=c.parseTransformString(O),F=0,B=1,H=1,J=x._,rt=new tt;if(J.transform=P||[],P)for(var ht=0,xt=P.length;ht<xt;ht++){var gt,pt,Et,Nt,Ct,wt=P[ht],Bt=wt.length,At=N(wt[0]).toLowerCase(),Ft=wt[0]!=At,Dt=Ft?rt.invert():0;At=="t"&&Bt==3?Ft?(gt=Dt.x(0,0),pt=Dt.y(0,0),Et=Dt.x(wt[1],wt[2]),Nt=Dt.y(wt[1],wt[2]),rt.translate(Et-gt,Nt-pt)):rt.translate(wt[1],wt[2]):At=="r"?Bt==2?(Ct=Ct||x.getBBox(1),rt.rotate(wt[1],Ct.x+Ct.width/2,Ct.y+Ct.height/2),F+=wt[1]):Bt==4&&(Ft?(Et=Dt.x(wt[2],wt[3]),Nt=Dt.y(wt[2],wt[3]),rt.rotate(wt[1],Et,Nt)):rt.rotate(wt[1],wt[2],wt[3]),F+=wt[1]):At=="s"?Bt==2||Bt==3?(Ct=Ct||x.getBBox(1),rt.scale(wt[1],wt[Bt-1],Ct.x+Ct.width/2,Ct.y+Ct.height/2),B*=wt[1],H*=wt[Bt-1]):Bt==5&&(Ft?(Et=Dt.x(wt[3],wt[4]),Nt=Dt.y(wt[3],wt[4]),rt.scale(wt[1],wt[2],Et,Nt)):rt.scale(wt[1],wt[2],wt[3],wt[4]),B*=wt[1],H*=wt[2]):At=="m"&&Bt==7&&rt.add(wt[1],wt[2],wt[3],wt[4],wt[5],wt[6]),J.dirtyT=1,x.matrix=rt}x.matrix=rt,J.sx=B,J.sy=H,J.deg=F,J.dx=j=rt.e,J.dy=w=rt.f,B==1&&H==1&&!F&&J.bbox?(J.bbox.x+=+j,J.bbox.y+=+w):J.dirtyT=1}),V=function(x){var O=x[0];switch(O.toLowerCase()){case"t":return[O,0,0];case"m":return[O,1,0,0,1,0,0];case"r":return x.length==4?[O,0,x[2],x[3]]:[O,0];case"s":return x.length==5?[O,1,1,x[3],x[4]]:x.length==3?[O,1,1]:[O,1]}},Z=c._equaliseTransform=function(x,O){O=N(O).replace(/\.{3}|\u2026/g,x),x=c.parseTransformString(x)||[],O=c.parseTransformString(O)||[];for(var j,w,P,F,B=ot(x.length,O.length),H=[],J=[],rt=0;rt<B;rt++){if(P=x[rt]||V(O[rt]),F=O[rt]||V(P),P[0]!=F[0]||P[0].toLowerCase()=="r"&&(P[2]!=F[2]||P[3]!=F[3])||P[0].toLowerCase()=="s"&&(P[3]!=F[3]||P[4]!=F[4]))return;for(H[rt]=[],J[rt]=[],j=0,w=ot(P.length,F.length);j<w;j++)j in P&&(H[rt][j]=P[j]),j in F&&(J[rt][j]=F[j])}return{from:H,to:J}};function tt(x,O,j,w,P,F){x!=null?(this.a=+x,this.b=+O,this.c=+j,this.d=+w,this.e=+P,this.f=+F):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}c._getContainer=function(x,O,j,w){var P;if((P=w!=null||c.is(x,"object")?x:m.doc.getElementById(x))!=null)return P.tagName?O==null?{container:P,width:P.style.pixelWidth||P.offsetWidth,height:P.style.pixelHeight||P.offsetHeight}:{container:P,width:O,height:j}:{container:1,x,y:O,width:j,height:w}},c.pathToRelative=Bo,c._engine={},c.path2curve=ii,c.matrix=function(x,O,j,w,P,F){return new tt(x,O,j,w,P,F)},function(x){function O(w){return w[0]*w[0]+w[1]*w[1]}function j(w){var P=W.sqrt(O(w));w[0]&&(w[0]/=P),w[1]&&(w[1]/=P)}x.add=function(w,P,F,B,H,J){var rt,ht,xt,gt,pt=[[],[],[]],Et=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],Nt=[[w,F,H],[P,B,J],[0,0,1]];for(w&&w instanceof tt&&(Nt=[[w.a,w.c,w.e],[w.b,w.d,w.f],[0,0,1]]),rt=0;rt<3;rt++)for(ht=0;ht<3;ht++){for(gt=0,xt=0;xt<3;xt++)gt+=Et[rt][xt]*Nt[xt][ht];pt[rt][ht]=gt}this.a=pt[0][0],this.b=pt[1][0],this.c=pt[0][1],this.d=pt[1][1],this.e=pt[0][2],this.f=pt[1][2]},x.invert=function(){var w=this,P=w.a*w.d-w.b*w.c;return new tt(w.d/P,-w.b/P,-w.c/P,w.a/P,(w.c*w.f-w.d*w.e)/P,(w.b*w.e-w.a*w.f)/P)},x.clone=function(){return new tt(this.a,this.b,this.c,this.d,this.e,this.f)},x.translate=function(w,P){this.add(1,0,0,1,w,P)},x.scale=function(w,P,F,B){P==null&&(P=w),(F||B)&&this.add(1,0,0,1,F,B),this.add(w,0,0,P,0,0),(F||B)&&this.add(1,0,0,1,-F,-B)},x.rotate=function(w,P,F){w=c.rad(w),P=P||0,F=F||0;var B=+W.cos(w).toFixed(9),H=+W.sin(w).toFixed(9);this.add(B,H,-H,B,P,F),this.add(1,0,0,1,-P,-F)},x.x=function(w,P){return w*this.a+P*this.c+this.e},x.y=function(w,P){return w*this.b+P*this.d+this.f},x.get=function(w){return+this[N.fromCharCode(97+w)].toFixed(4)},x.toString=function(){return c.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},x.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},x.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},x.split=function(){var w={};w.dx=this.e,w.dy=this.f;var P=[[this.a,this.c],[this.b,this.d]];w.scalex=W.sqrt(O(P[0])),j(P[0]),w.shear=P[0][0]*P[1][0]+P[0][1]*P[1][1],P[1]=[P[1][0]-P[0][0]*w.shear,P[1][1]-P[0][1]*w.shear],w.scaley=W.sqrt(O(P[1])),j(P[1]),w.shear/=w.scaley;var F=-P[0][1],B=P[1][1];return B<0?(w.rotate=c.deg(W.acos(B)),F<0&&(w.rotate=360-w.rotate)):w.rotate=c.deg(W.asin(F)),w.isSimple=!(+w.shear.toFixed(9)||w.scalex.toFixed(9)!=w.scaley.toFixed(9)&&w.rotate),w.isSuperSimple=!+w.shear.toFixed(9)&&w.scalex.toFixed(9)==w.scaley.toFixed(9)&&!w.rotate,w.noRotation=!+w.shear.toFixed(9)&&!w.rotate,w},x.toTransformString=function(w){var P=w||this[D]();return P.isSimple?(P.scalex=+P.scalex.toFixed(4),P.scaley=+P.scaley.toFixed(4),P.rotate=+P.rotate.toFixed(4),(P.dx||P.dy?"t"+[P.dx,P.dy]:A)+(P.scalex!=1||P.scaley!=1?"s"+[P.scalex,P.scaley,0,0]:A)+(P.rotate?"r"+[P.rotate,0,0]:A)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(tt.prototype);for(var Ot=function(){this.returnValue=!1},Tt=function(){return this.originalEvent.preventDefault()},Ht=function(){this.cancelBubble=!0},pe=function(){return this.originalEvent.stopPropagation()},te=function(x){var O=m.doc.documentElement.scrollTop||m.doc.body.scrollTop,j=m.doc.documentElement.scrollLeft||m.doc.body.scrollLeft;return{x:x.clientX+j,y:x.clientY+O}},zt=m.doc.addEventListener?function(x,O,j,w){var P=function(B){var H=te(B);return j.call(w,B,H.x,H.y)};if(x.addEventListener(O,P,!1),S&&G[O]){var F=function(B){for(var H=te(B),J=B,rt=0,ht=B.targetTouches&&B.targetTouches.length;rt<ht;rt++)if(B.targetTouches[rt].target==x){(B=B.targetTouches[rt]).originalEvent=J,B.preventDefault=Tt,B.stopPropagation=pe;break}return j.call(w,B,H.x,H.y)};x.addEventListener(G[O],F,!1)}return function(){return x.removeEventListener(O,P,!1),S&&G[O]&&x.removeEventListener(G[O],F,!1),!0}}:m.doc.attachEvent?function(x,O,j,w){var P=function(F){F=F||m.win.event;var B=m.doc.documentElement.scrollTop||m.doc.body.scrollTop,H=m.doc.documentElement.scrollLeft||m.doc.body.scrollLeft,J=F.clientX+H,rt=F.clientY+B;return F.preventDefault=F.preventDefault||Ot,F.stopPropagation=F.stopPropagation||Ht,j.call(w,F,J,rt)};return x.attachEvent("on"+O,P),function(){return x.detachEvent("on"+O,P),!0}}:void 0,qt=[],ae=function(x){for(var O,j=x.clientX,w=x.clientY,P=m.doc.documentElement.scrollTop||m.doc.body.scrollTop,F=m.doc.documentElement.scrollLeft||m.doc.body.scrollLeft,B=qt.length;B--;){if(O=qt[B],S&&x.touches){for(var H,J=x.touches.length;J--;)if((H=x.touches[J]).identifier==O.el._drag.id){j=H.clientX,w=H.clientY,(x.originalEvent?x.originalEvent:x).preventDefault();break}}else x.preventDefault();var rt,ht=O.el.node,xt=ht.nextSibling,gt=ht.parentNode,pt=ht.style.display;m.win.opera&>.removeChild(ht),ht.style.display="none",rt=O.el.paper.getElementByPoint(j,w),ht.style.display=pt,m.win.opera&&(xt?gt.insertBefore(ht,xt):gt.appendChild(ht)),rt&&a("raphael.drag.over."+O.el.id,O.el,rt),j+=F,w+=P,a("raphael.drag.move."+O.el.id,O.move_scope||O.el,j-O.el._drag.x,w-O.el._drag.y,j,w,x)}},jt=function(x){c.unmousemove(ae).unmouseup(jt);for(var O,j=qt.length;j--;)(O=qt[j]).el._drag={},a("raphael.drag.end."+O.el.id,O.end_scope||O.start_scope||O.move_scope||O.el,x);qt=[]},Gt=c.el={},ie=U.length;ie--;)(function(x){c[x]=Gt[x]=function(O,j){return c.is(O,"function")&&(this.events=this.events||[],this.events.push({name:x,f:O,unbind:zt(this.shape||this.node||m.doc,x,O,j||this)})),this},c["un"+x]=Gt["un"+x]=function(O){for(var j=this.events||[],w=j.length;w--;)j[w].name!=x||!c.is(O,"undefined")&&j[w].f!=O||(j[w].unbind(),j.splice(w,1),!j.length&&delete this.events);return this}})(U[ie]);Gt.data=function(x,O){var j=it[this.id]=it[this.id]||{};if(arguments.length==0)return j;if(arguments.length==1){if(c.is(x,"object")){for(var w in x)x[p](w)&&this.data(w,x[w]);return this}return a("raphael.data.get."+this.id,this,j[x],x),j[x]}return j[x]=O,a("raphael.data.set."+this.id,this,O,x),this},Gt.removeData=function(x){return x==null?delete it[this.id]:it[this.id]&&delete it[this.id][x],this},Gt.getData=function(){return Lt(it[this.id]||{})},Gt.hover=function(x,O,j,w){return this.mouseover(x,j).mouseout(O,w||j)},Gt.unhover=function(x,O){return this.unmouseover(x).unmouseout(O)};var Ie=[];Gt.drag=function(x,O,j,w,P,F){function B(H){(H.originalEvent||H).preventDefault();var J=H.clientX,rt=H.clientY,ht=m.doc.documentElement.scrollTop||m.doc.body.scrollTop,xt=m.doc.documentElement.scrollLeft||m.doc.body.scrollLeft;if(this._drag.id=H.identifier,S&&H.touches){for(var gt,pt=H.touches.length;pt--;)if(gt=H.touches[pt],this._drag.id=gt.identifier,gt.identifier==this._drag.id){J=gt.clientX,rt=gt.clientY;break}}this._drag.x=J+xt,this._drag.y=rt+ht,!qt.length&&c.mousemove(ae).mouseup(jt),qt.push({el:this,move_scope:w,start_scope:P,end_scope:F}),O&&a.on("raphael.drag.start."+this.id,O),x&&a.on("raphael.drag.move."+this.id,x),j&&a.on("raphael.drag.end."+this.id,j),a("raphael.drag.start."+this.id,P||w||this,this._drag.x,this._drag.y,H)}return this._drag={},Ie.push({el:this,start:B}),this.mousedown(B),this},Gt.onDragOver=function(x){x?a.on("raphael.drag.over."+this.id,x):a.unbind("raphael.drag.over."+this.id)},Gt.undrag=function(){for(var x=Ie.length;x--;)Ie[x].el==this&&(this.unmousedown(Ie[x].start),Ie.splice(x,1),a.unbind("raphael.drag.*."+this.id));!Ie.length&&c.unmousemove(ae).unmouseup(jt),qt=[]},u.circle=function(x,O,j){var w=c._engine.circle(this,x||0,O||0,j||0);return this.__set__&&this.__set__.push(w),w},u.rect=function(x,O,j,w,P){var F=c._engine.rect(this,x||0,O||0,j||0,w||0,P||0);return this.__set__&&this.__set__.push(F),F},u.ellipse=function(x,O,j,w){var P=c._engine.ellipse(this,x||0,O||0,j||0,w||0);return this.__set__&&this.__set__.push(P),P},u.path=function(x){x&&!c.is(x,"string")&&!c.is(x[0],at)&&(x+=A);var O=c._engine.path(c.format[_](c,arguments),this);return this.__set__&&this.__set__.push(O),O},u.image=function(x,O,j,w,P){var F=c._engine.image(this,x||"about:blank",O||0,j||0,w||0,P||0);return this.__set__&&this.__set__.push(F),F},u.text=function(x,O,j){var w=c._engine.text(this,x||0,O||0,N(j));return this.__set__&&this.__set__.push(w),w},u.set=function(x){!c.is(x,"array")&&(x=Array.prototype.splice.call(arguments,0,arguments.length));var O=new Us(x);return this.__set__&&this.__set__.push(O),O.paper=this,O.type="set",O},u.setStart=function(x){this.__set__=x||this.set()},u.setFinish=function(x){var O=this.__set__;return delete this.__set__,O},u.getSize=function(){var x=this.canvas.parentNode;return{width:x.offsetWidth,height:x.offsetHeight}},u.setSize=function(x,O){return c._engine.setSize.call(this,x,O)},u.setViewBox=function(x,O,j,w,P){return c._engine.setViewBox.call(this,x,O,j,w,P)},u.top=u.bottom=null,u.raphael=c;function br(){return this.x+E+this.y+E+this.width+" × "+this.height}u.getElementByPoint=function(x,O){var j,w,P,F,B,H,J,rt=this.canvas,ht=m.doc.elementFromPoint(x,O);if(m.win.opera&&ht.tagName=="svg"){var xt=(w=(j=rt).getBoundingClientRect(),P=j.ownerDocument,F=P.body,B=P.documentElement,H=B.clientTop||F.clientTop||0,J=B.clientLeft||F.clientLeft||0,{y:w.top+(m.win.pageYOffset||B.scrollTop||F.scrollTop)-H,x:w.left+(m.win.pageXOffset||B.scrollLeft||F.scrollLeft)-J}),gt=rt.createSVGRect();gt.x=x-xt.x,gt.y=O-xt.y,gt.width=gt.height=1;var pt=rt.getIntersectionList(gt,null);pt.length&&(ht=pt[pt.length-1])}if(!ht)return null;for(;ht.parentNode&&ht!=rt.parentNode&&!ht.raphael;)ht=ht.parentNode;return ht==this.canvas.parentNode&&(ht=rt),ht=ht&&ht.raphael?this.getById(ht.raphaelid):null},u.getElementsByBBox=function(x){var O=this.set();return this.forEach(function(j){c.isBBoxIntersect(j.getBBox(),x)&&O.push(j)}),O},u.getById=function(x){for(var O=this.bottom;O;){if(O.id==x)return O;O=O.next}return null},u.forEach=function(x,O){for(var j=this.bottom;j;){if(x.call(O,j)===!1)return this;j=j.next}return this},u.getElementsByPoint=function(x,O){var j=this.set();return this.forEach(function(w){w.isPointInside(x,O)&&j.push(w)}),j},Gt.isPointInside=function(x,O){var j=this.realPath=yt[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(j=c.transformPath(j,this.attr("transform"))),c.isPointInsidePath(j,x,O)},Gt.getBBox=function(x){if(this.removed)return{};var O=this._;return x?(!O.dirty&&O.bboxwt||(this.realPath=yt[this.type](this),O.bboxwt=Hr(this.realPath),O.bboxwt.toString=br,O.dirty=0),O.bboxwt):((O.dirty||O.dirtyT||!O.bbox)&&(!O.dirty&&this.realPath||(O.bboxwt=0,this.realPath=yt[this.type](this)),O.bbox=Hr(bt(this.realPath,this.matrix)),O.bbox.toString=br,O.dirty=O.dirtyT=0),O.bbox)},Gt.clone=function(){if(this.removed)return null;var x=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(x),x},Gt.glow=function(x){if(this.type=="text")return null;var O={width:((x=x||{}).width||10)+(+this.attr("stroke-width")||1),fill:x.fill||!1,opacity:x.opacity==null?.5:x.opacity,offsetx:x.offsetx||0,offsety:x.offsety||0,color:x.color||"#000"},j=O.width/2,w=this.paper,P=w.set(),F=this.realPath||yt[this.type](this);F=this.matrix?bt(F,this.matrix):F;for(var B=1;B<j+1;B++)P.push(w.path(F).attr({stroke:O.color,fill:O.fill?O.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(O.width/j*B).toFixed(3),opacity:+(O.opacity/j).toFixed(3)}));return P.insertBefore(this).translate(O.offsetx,O.offsety)};var we=function(x,O,j,w,P,F,B,H,J){return J==null?$r(x,O,j,w,P,F,B,H):c.findDotsAtSegment(x,O,j,w,P,F,B,H,function(rt,ht,xt,gt,pt,Et,Nt,Ct,wt){if(!(wt<0||$r(rt,ht,xt,gt,pt,Et,Nt,Ct)<wt)){var Bt,At=.5,Ft=1-At;for(Bt=$r(rt,ht,xt,gt,pt,Et,Nt,Ct,Ft);ft(Bt-wt)>.01;)Bt=$r(rt,ht,xt,gt,pt,Et,Nt,Ct,Ft+=(Bt<wt?1:-1)*(At/=2));return Ft}}(x,O,j,w,P,F,B,H,J))},ze=function(x,O){return function(j,w,P){for(var F,B,H,J,rt,ht="",xt={},gt=0,pt=0,Et=(j=ii(j)).length;pt<Et;pt++){if((H=j[pt])[0]=="M")F=+H[1],B=+H[2];else{if(gt+(J=we(F,B,H[1],H[2],H[3],H[4],H[5],H[6]))>w){if(O&&!xt.start){if(ht+=["C"+(rt=we(F,B,H[1],H[2],H[3],H[4],H[5],H[6],w-gt)).start.x,rt.start.y,rt.m.x,rt.m.y,rt.x,rt.y],P)return ht;xt.start=ht,ht=["M"+rt.x,rt.y+"C"+rt.n.x,rt.n.y,rt.end.x,rt.end.y,H[5],H[6]].join(),gt+=J,F=+H[5],B=+H[6];continue}if(!x&&!O)return{x:(rt=we(F,B,H[1],H[2],H[3],H[4],H[5],H[6],w-gt)).x,y:rt.y,alpha:rt.alpha}}gt+=J,F=+H[5],B=+H[6]}ht+=H.shift()+H}return xt.end=ht,(rt=x?gt:O?xt:c.findDotsAtSegment(F,B,H[0],H[1],H[2],H[3],H[4],H[5],1)).alpha&&(rt={x:rt.x,y:rt.y,alpha:rt.alpha}),rt}},Ze=ze(1),Xe=ze(),Ae=ze(0,1);c.getTotalLength=Ze,c.getPointAtLength=Xe,c.getSubpath=function(x,O,j){if(this.getTotalLength(x)-j<1e-6)return Ae(x,O).end;var w=Ae(x,j,1);return O?Ae(w,O).end:w},Gt.getTotalLength=function(){var x=this.getPath();if(x)return this.node.getTotalLength?this.node.getTotalLength():Ze(x)},Gt.getPointAtLength=function(x){var O=this.getPath();if(O)return Xe(O,x)},Gt.getPath=function(){var x,O=c._getPath[this.type];if(this.type!="text"&&this.type!="set")return O&&(x=O(this)),x},Gt.getSubpath=function(x,O){var j=this.getPath();if(j)return c.getSubpath(j,x,O)};var _e=c.easing_formulas={linear:function(x){return x},"<":function(x){return $t(x,1.7)},">":function(x){return $t(x,.48)},"<>":function(x){var O=.48-x/1.04,j=W.sqrt(.1734+O*O),w=j-O,P=-j-O,F=$t(ft(w),1/3)*(w<0?-1:1)+$t(ft(P),1/3)*(P<0?-1:1)+.5;return 3*(1-F)*F*F+F*F*F},backIn:function(x){var O=1.70158;return x*x*((O+1)*x-O)},backOut:function(x){var O=1.70158;return(x-=1)*x*((O+1)*x+O)+1},elastic:function(x){return x==!!x?x:$t(2,-10*x)*W.sin(2*_t*(x-.075)/.3)+1},bounce:function(x){var O=7.5625,j=2.75;return x<1/j?O*x*x:x<2/j?O*(x-=1.5/j)*x+.75:x<2.5/j?O*(x-=2.25/j)*x+.9375:O*(x-=2.625/j)*x+.984375}};_e.easeIn=_e["ease-in"]=_e["<"],_e.easeOut=_e["ease-out"]=_e[">"],_e.easeInOut=_e["ease-in-out"]=_e["<>"],_e["back-in"]=_e.backIn,_e["back-out"]=_e.backOut;var Zt=[],tr=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(x){setTimeout(x,16)},qr=function(){for(var x=+new Date,O=0;O<Zt.length;O++){var j=Zt[O];if(!j.el.removed&&!j.paused){var w,P,F=x-j.start,B=j.ms,H=j.easing,J=j.from,rt=j.diff,ht=j.to,xt=(j.t,j.el),gt={},pt={};if(j.initstatus?(F=(j.initstatus*j.anim.top-j.prev)/(j.percent-j.prev)*B,j.status=j.initstatus,delete j.initstatus,j.stop&&Zt.splice(O--,1)):j.status=(j.prev+(j.percent-j.prev)*(F/B))/j.anim.top,!(F<0))if(F<B){var Et=H(F/B);for(var Nt in J)if(J[p](Nt)){switch(q[Nt]){case vt:w=+J[Nt]+Et*B*rt[Nt];break;case"colour":w="rgb("+[hn(y(J[Nt].r+Et*B*rt[Nt].r)),hn(y(J[Nt].g+Et*B*rt[Nt].g)),hn(y(J[Nt].b+Et*B*rt[Nt].b))].join(",")+")";break;case"path":w=[];for(var Ct=0,wt=J[Nt].length;Ct<wt;Ct++){w[Ct]=[J[Nt][Ct][0]];for(var Bt=1,At=J[Nt][Ct].length;Bt<At;Bt++)w[Ct][Bt]=+J[Nt][Ct][Bt]+Et*B*rt[Nt][Ct][Bt];w[Ct]=w[Ct].join(E)}w=w.join(E);break;case"transform":if(rt[Nt].real)for(w=[],Ct=0,wt=J[Nt].length;Ct<wt;Ct++)for(w[Ct]=[J[Nt][Ct][0]],Bt=1,At=J[Nt][Ct].length;Bt<At;Bt++)w[Ct][Bt]=J[Nt][Ct][Bt]+Et*B*rt[Nt][Ct][Bt];else{var Ft=function(ge){return+J[Nt][ge]+Et*B*rt[Nt][ge]};w=[["m",Ft(0),Ft(1),Ft(2),Ft(3),Ft(4),Ft(5)]]}break;case"csv":if(Nt=="clip-rect")for(w=[],Ct=4;Ct--;)w[Ct]=+J[Nt][Ct]+Et*B*rt[Nt][Ct];break;default:var Dt=[][g](J[Nt]);for(w=[],Ct=xt.paper.customAttributes[Nt].length;Ct--;)w[Ct]=+Dt[Ct]+Et*B*rt[Nt][Ct]}gt[Nt]=w}xt.attr(gt),function(ge,ce,ye){setTimeout(function(){a("raphael.anim.frame."+ge,ce,ye)})}(xt.id,xt,j.anim)}else{if(function(ge,ce,ye){setTimeout(function(){a("raphael.anim.frame."+ce.id,ce,ye),a("raphael.anim.finish."+ce.id,ce,ye),c.is(ge,"function")&&ge.call(ce)})}(j.callback,xt,j.anim),xt.attr(ht),Zt.splice(O--,1),j.repeat>1&&!j.next){for(P in ht)ht[p](P)&&(pt[P]=j.totalOrigin[P]);j.el.attr(pt),Pr(j.anim,j.el,j.anim.percents[0],null,j.totalOrigin,j.repeat-1)}j.next&&!j.stop&&Pr(j.anim,j.el,j.next,null,j.totalOrigin,j.repeat)}}}Zt.length&&tr(qr)},hn=function(x){return x>255?255:x<0?0:x};function hr(x,O,j,w,P,F){var B=3*O,H=3*(w-O)-B,J=1-B-H,rt=3*j,ht=3*(P-j)-rt,xt=1-rt-ht;function gt(pt){return((J*pt+H)*pt+B)*pt}return function(pt,Et){var Nt=function(Ct,wt){var Bt,At,Ft,Dt,ge,ce;for(Ft=Ct,ce=0;ce<8;ce++){if(Dt=gt(Ft)-Ct,ft(Dt)<wt)return Ft;if(ft(ge=(3*J*Ft+2*H)*Ft+B)<1e-6)break;Ft-=Dt/ge}if(At=1,(Ft=Ct)<(Bt=0))return Bt;if(Ft>At)return At;for(;Bt<At;){if(Dt=gt(Ft),ft(Dt-Ct)<wt)return Ft;Ct>Dt?Bt=Ft:At=Ft,Ft=(At-Bt)/2+Bt}return Ft}(pt,Et);return((xt*Nt+ht)*Nt+rt)*Nt}(x,1/(200*F))}function ur(x,O){var j=[],w={};if(this.ms=O,this.times=1,x){for(var P in x)x[p](P)&&(w[k(P)]=x[P],j.push(k(P)));j.sort(lt)}this.anim=w,this.top=j[j.length-1],this.percents=j}function Pr(x,O,j,w,P,F){j=k(j);var B,H,J,rt,ht,xt,gt=x.ms,pt={},Et={},Nt={};if(w)for(wt=0,Bt=Zt.length;wt<Bt;wt++){var Ct=Zt[wt];if(Ct.el.id==O.id&&Ct.anim==x){Ct.percent!=j?(Zt.splice(wt,1),J=1):H=Ct,O.attr(Ct.totalOrigin);break}}else w=+Et;for(var wt=0,Bt=x.percents.length;wt<Bt;wt++){if(x.percents[wt]==j||x.percents[wt]>w*x.top){j=x.percents[wt],ht=x.percents[wt-1]||0,gt=gt/x.top*(j-ht),rt=x.percents[wt+1],B=x.anim[j];break}w&&O.attr(x.anim[x.percents[wt]])}if(B){if(H)H.initstatus=w,H.start=new Date-H.ms*w;else{for(var At in B)if(B[p](At)&&(q[p](At)||O.paper.customAttributes[p](At)))switch(pt[At]=O.attr(At),pt[At]==null&&(pt[At]=z[At]),Et[At]=B[At],q[At]){case vt:Nt[At]=(Et[At]-pt[At])/gt;break;case"colour":pt[At]=c.getRGB(pt[At]);var Ft=c.getRGB(Et[At]);Nt[At]={r:(Ft.r-pt[At].r)/gt,g:(Ft.g-pt[At].g)/gt,b:(Ft.b-pt[At].b)/gt};break;case"path":var Dt=ii(pt[At],Et[At]),ge=Dt[1];for(pt[At]=Dt[0],Nt[At]=[],wt=0,Bt=pt[At].length;wt<Bt;wt++){Nt[At][wt]=[0];for(var ce=1,ye=pt[At][wt].length;ce<ye;ce++)Nt[At][wt][ce]=(ge[wt][ce]-pt[At][wt][ce])/gt}break;case"transform":var Oa=O._,uu=Z(Oa[At],Et[At]);if(uu)for(pt[At]=uu.from,Et[At]=uu.to,Nt[At]=[],Nt[At].real=!0,wt=0,Bt=pt[At].length;wt<Bt;wt++)for(Nt[At][wt]=[pt[At][wt][0]],ce=1,ye=pt[At][wt].length;ce<ye;ce++)Nt[At][wt][ce]=(Et[At][wt][ce]-pt[At][wt][ce])/gt;else{var dn=O.matrix||new tt,Ci={_:{transform:Oa.transform},getBBox:function(){return O.getBBox(1)}};pt[At]=[dn.a,dn.b,dn.c,dn.d,dn.e,dn.f],L(Ci,Et[At]),Et[At]=Ci._.transform,Nt[At]=[(Ci.matrix.a-dn.a)/gt,(Ci.matrix.b-dn.b)/gt,(Ci.matrix.c-dn.c)/gt,(Ci.matrix.d-dn.d)/gt,(Ci.matrix.e-dn.e)/gt,(Ci.matrix.f-dn.f)/gt]}break;case"csv":var Na=N(B[At])[D](h),Aa=N(pt[At])[D](h);if(At=="clip-rect")for(pt[At]=Aa,Nt[At]=[],wt=Aa.length;wt--;)Nt[At][wt]=(Na[wt]-pt[At][wt])/gt;Et[At]=Na;break;default:for(Na=[][g](B[At]),Aa=[][g](pt[At]),Nt[At]=[],wt=O.paper.customAttributes[At].length;wt--;)Nt[At][wt]=((Na[wt]||0)-(Aa[wt]||0))/gt}var Qd=B.easing,lo=c.easing_formulas[Qd];if(!lo)if((lo=N(Qd).match($))&&lo.length==5){var zs=lo;lo=function(Zd){return hr(Zd,+zs[1],+zs[2],+zs[3],+zs[4],gt)}}else lo=ct;if(Ct={anim:x,percent:j,timestamp:xt=B.start||x.start||+new Date,start:xt+(x.del||0),status:0,initstatus:w||0,stop:!1,ms:gt,easing:lo,from:pt,diff:Nt,to:Et,el:O,callback:B.callback,prev:ht,next:rt,repeat:F||x.times,origin:O.attr(),totalOrigin:P},Zt.push(Ct),w&&!H&&!J&&(Ct.stop=!0,Ct.start=new Date-gt*w,Zt.length==1))return qr();J&&(Ct.start=new Date-Ct.ms*w),Zt.length==1&&tr(qr)}a("raphael.anim.start."+O.id,O,x)}}function In(x){for(var O=0;O<Zt.length;O++)Zt[O].el.paper==x&&Zt.splice(O--,1)}Gt.animateWith=function(x,O,j,w,P,F){if(this.removed)return F&&F.call(this),this;var B=j instanceof ur?j:c.animation(j,w,P,F);Pr(B,this,B.percents[0],null,this.attr());for(var H=0,J=Zt.length;H<J;H++)if(Zt[H].anim==O&&Zt[H].el==x){Zt[J-1].start=Zt[H].start;break}return this},Gt.onAnimation=function(x){return x?a.on("raphael.anim.frame."+this.id,x):a.unbind("raphael.anim.frame."+this.id),this},ur.prototype.delay=function(x){var O=new ur(this.anim,this.ms);return O.times=this.times,O.del=+x||0,O},ur.prototype.repeat=function(x){var O=new ur(this.anim,this.ms);return O.del=this.del,O.times=W.floor(ot(x,0))||1,O},c.animation=function(x,O,j,w){if(x instanceof ur)return x;!c.is(j,"function")&&j||(w=w||j||null,j=null),x=Object(x),O=+O||0;var P,F,B={};for(F in x)x[p](F)&&k(F)!=F&&k(F)+"%"!=F&&(P=!0,B[F]=x[F]);if(P)return j&&(B.easing=j),w&&(B.callback=w),new ur({100:B},O);if(w){var H=0;for(var J in x){var rt=M(J);x[p](J)&&rt>H&&(H=rt)}!x[H+="%"].callback&&(x[H].callback=w)}return new ur(x,O)},Gt.animate=function(x,O,j,w){if(this.removed)return w&&w.call(this),this;var P=x instanceof ur?x:c.animation(x,O,j,w);return Pr(P,this,P.percents[0],null,this.attr()),this},Gt.setTime=function(x,O){return x&&O!=null&&this.status(x,nt(O,x.ms)/x.ms),this},Gt.status=function(x,O){var j,w,P=[],F=0;if(O!=null)return Pr(x,this,-1,nt(O,1)),this;for(j=Zt.length;F<j;F++)if((w=Zt[F]).el.id==this.id&&(!x||w.anim==x)){if(x)return w.status;P.push({anim:w.anim,status:w.status})}return x?0:P},Gt.pause=function(x){for(var O=0;O<Zt.length;O++)Zt[O].el.id!=this.id||x&&Zt[O].anim!=x||a("raphael.anim.pause."+this.id,this,Zt[O].anim)!==!1&&(Zt[O].paused=!0);return this},Gt.resume=function(x){for(var O=0;O<Zt.length;O++)if(Zt[O].el.id==this.id&&(!x||Zt[O].anim==x)){var j=Zt[O];a("raphael.anim.resume."+this.id,this,j.anim)!==!1&&(delete j.paused,this.status(j.anim,j.status))}return this},Gt.stop=function(x){for(var O=0;O<Zt.length;O++)Zt[O].el.id!=this.id||x&&Zt[O].anim!=x||a("raphael.anim.stop."+this.id,this,Zt[O].anim)!==!1&&Zt.splice(O--,1);return this},a.on("raphael.remove",In),a.on("raphael.clear",In),Gt.toString=function(){return"Raphaël’s object"};var jn,Rr,Fn,Mn,Us=function(x){if(this.items=[],this.length=0,this.type="set",x)for(var O=0,j=x.length;O<j;O++)!x[O]||x[O].constructor!=Gt.constructor&&x[O].constructor!=Us||(this[this.items.length]=this.items[this.items.length]=x[O],this.length++)},Tr=Us.prototype;for(var Vs in Tr.push=function(){for(var x,O,j=0,w=arguments.length;j<w;j++)!(x=arguments[j])||x.constructor!=Gt.constructor&&x.constructor!=Us||(this[O=this.items.length]=this.items[O]=x,this.length++);return this},Tr.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},Tr.forEach=function(x,O){for(var j=0,w=this.items.length;j<w;j++)if(x.call(O,this.items[j],j)===!1)return this;return this},Gt)Gt[p](Vs)&&(Tr[Vs]=function(x){return function(){var O=arguments;return this.forEach(function(j){j[x][_](j,O)})}}(Vs));return Tr.attr=function(x,O){if(x&&c.is(x,at)&&c.is(x[0],"object"))for(var j=0,w=x.length;j<w;j++)this.items[j].attr(x[j]);else for(var P=0,F=this.items.length;P<F;P++)this.items[P].attr(x,O);return this},Tr.clear=function(){for(;this.length;)this.pop()},Tr.splice=function(x,O,j){x=x<0?ot(this.length+x,0):x,O=ot(0,nt(this.length-x,O));var w,P=[],F=[],B=[];for(w=2;w<arguments.length;w++)B.push(arguments[w]);for(w=0;w<O;w++)F.push(this[x+w]);for(;w<this.length-x;w++)P.push(this[x+w]);var H=B.length;for(w=0;w<H+P.length;w++)this.items[x+w]=this[x+w]=w<H?B[w]:P[w-H];for(w=this.items.length=this.length-=O-H;this[w];)delete this[w++];return new Us(F)},Tr.exclude=function(x){for(var O=0,j=this.length;O<j;O++)if(this[O]==x)return this.splice(O,1),!0},Tr.animate=function(x,O,j,w){(c.is(j,"function")||!j)&&(w=j||null);var P,F,B=this.items.length,H=B,J=this;if(!B)return this;w&&(F=function(){!--B&&w.call(J)}),j=c.is(j,"string")?j:F;var rt=c.animation(x,O,j,F);for(P=this.items[--H].animate(rt);H--;)this.items[H]&&!this.items[H].removed&&this.items[H].animateWith(P,rt,rt),this.items[H]&&!this.items[H].removed||B--;return this},Tr.insertAfter=function(x){for(var O=this.items.length;O--;)this.items[O].insertAfter(x);return this},Tr.getBBox=function(){for(var x=[],O=[],j=[],w=[],P=this.items.length;P--;)if(!this.items[P].removed){var F=this.items[P].getBBox();x.push(F.x),O.push(F.y),j.push(F.x+F.width),w.push(F.y+F.height)}return{x:x=nt[_](0,x),y:O=nt[_](0,O),x2:j=ot[_](0,j),y2:w=ot[_](0,w),width:j-x,height:w-O}},Tr.clone=function(x){x=this.paper.set();for(var O=0,j=this.items.length;O<j;O++)x.push(this.items[O].clone());return x},Tr.toString=function(){return"Raphaël‘s set"},Tr.glow=function(x){var O=this.paper.set();return this.forEach(function(j,w){var P=j.glow(x);P?.forEach(function(F,B){O.push(F)})}),O},Tr.isPointInside=function(x,O){var j=!1;return this.forEach(function(w){if(w.isPointInside(x,O))return j=!0,!1}),j},c.registerFont=function(x){if(!x.face)return x;this.fonts=this.fonts||{};var O={w:x.w,face:{},glyphs:{}},j=x.face["font-family"];for(var w in x.face)x.face[p](w)&&(O.face[w]=x.face[w]);if(this.fonts[j]?this.fonts[j].push(O):this.fonts[j]=[O],!x.svg){for(var P in O.face["units-per-em"]=M(x.face["units-per-em"],10),x.glyphs)if(x.glyphs[p](P)){var F=x.glyphs[P];if(O.glyphs[P]={w:F.w,k:{},d:F.d&&"M"+F.d.replace(/[mlcxtrv]/g,function(H){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[H]||"M"})+"z"},F.k)for(var B in F.k)F[p](B)&&(O.glyphs[P].k[B]=F.k[B])}}return x},u.getFont=function(x,O,j,w){if(w=w||"normal",j=j||"normal",O=+O||{normal:400,bold:700,lighter:300,bolder:800}[O]||400,c.fonts){var P,F=c.fonts[x];if(!F){var B=new RegExp("(^|\\s)"+x.replace(/[^\w\d\s+!~.:_-]/g,A)+"(\\s|$)","i");for(var H in c.fonts)if(c.fonts[p](H)&&B.test(H)){F=c.fonts[H];break}}if(F)for(var J=0,rt=F.length;J<rt&&((P=F[J]).face["font-weight"]!=O||P.face["font-style"]!=j&&P.face["font-style"]||P.face["font-stretch"]!=w);J++);return P}},u.print=function(x,O,j,w,P,F,B,H){F=F||"middle",B=ot(nt(B||0,1),-1),H=ot(nt(H||1,3),1);var J,rt=N(j)[D](A),ht=0,xt=0,gt=A;if(c.is(w,"string")&&(w=this.getFont(w)),w){J=(P||16)/w.face["units-per-em"];for(var pt=w.face.bbox[D](h),Et=+pt[0],Nt=pt[3]-pt[1],Ct=0,wt=+pt[1]+(F=="baseline"?Nt+ +w.face.descent:Nt/2),Bt=0,At=rt.length;Bt<At;Bt++){if(rt[Bt]==`
|
|
81
|
+
`)ht=0,Dt=0,xt=0,Ct+=Nt*H;else{var Ft=xt&&w.glyphs[rt[Bt-1]]||{},Dt=w.glyphs[rt[Bt]];ht+=xt?(Ft.w||w.w)+(Ft.k&&Ft.k[rt[Bt]]||0)+w.w*B:0,xt=1}Dt&&Dt.d&&(gt+=c.transformPath(Dt.d,["t",ht*J,Ct*J,"s",J,J,Et,wt,"t",(x-Et)/J,(O-wt)/J]))}}return this.path(gt).attr({fill:"#000",stroke:"none"})},u.add=function(x){if(c.is(x,"array"))for(var O,j=this.set(),w=0,P=x.length;w<P;w++)O=x[w]||{},f[p](O.type)&&j.push(this[O.type]().attr(O));return j},c.format=function(x,O){var j=c.is(O,at)?[0][g](O):arguments;return x&&c.is(x,"string")&&j.length-1&&(x=x.replace(d,function(w,P){return j[++P]==null?A:j[P]})),x||A},c.fullfill=(jn=/\{([^\}]+)\}/g,Rr=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(x,O){return String(x).replace(jn,function(j,w){return function(P,F,B){var H=B;return F.replace(Rr,function(J,rt,ht,xt,gt){rt=rt||xt,H&&(rt in H&&(H=H[rt]),typeof H=="function"&>&&(H=H()))}),H=(H==null||H==B?P:H)+""}(j,w,O)})}),c.ninja=function(){if(v.was)m.win.Raphael=v.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return c},c.st=Tr,a.on("raphael.DOMload",function(){l=!0}),(Fn=document).readyState==null&&Fn.addEventListener&&(Fn.addEventListener("DOMContentLoaded",Mn=function(){Fn.removeEventListener("DOMContentLoaded",Mn,!1),Fn.readyState="complete"},!1),Fn.readyState="loading"),function x(){/in/.test(Fn.readyState)?setTimeout(x,9):c.eve("raphael.DOMload")}(),c}.apply(n,o))===void 0||(r.exports=s)},function(r,n,i){var o,s;o=[i(0),i(3),i(4)],(s=function(a){return a}.apply(n,o))===void 0||(r.exports=s)},function(r,n,i){var o,s,a,c,l,u,h,f,d,p,m,v,b,_;c="hasOwnProperty",l=/[\.\/]/,u=/\s*,\s*/,h=function(g,S){return g-S},f={n:{}},d=function(){for(var g=0,S=this.length;g<S;g++)if(this[g]!==void 0)return this[g]},p=function(){for(var g=this.length;--g;)if(this[g]!==void 0)return this[g]},m=Object.prototype.toString,v=String,b=Array.isArray||function(g){return g instanceof Array||m.call(g)=="[object Array]"},(_=function(g,S){var A,E=a,N=Array.prototype.slice.call(arguments,2),D=_.listeners(g),U=0,G=[],K={},W=[],ot=s;W.firstDefined=d,W.lastDefined=p,s=g,a=0;for(var nt=0,ft=D.length;nt<ft;nt++)"zIndex"in D[nt]&&(G.push(D[nt].zIndex),D[nt].zIndex<0&&(K[D[nt].zIndex]=D[nt]));for(G.sort(h);G[U]<0;)if(A=K[G[U++]],W.push(A.apply(S,N)),a)return a=E,W;for(nt=0;nt<ft;nt++)if("zIndex"in(A=D[nt]))if(A.zIndex==G[U]){if(W.push(A.apply(S,N)),a)break;do if((A=K[G[++U]])&&W.push(A.apply(S,N)),a)break;while(A)}else K[A.zIndex]=A;else if(W.push(A.apply(S,N)),a)break;return a=E,s=ot,W})._events=f,_.listeners=function(g){var S,A,E,N,D,U,G,K,W=b(g)?g:g.split(l),ot=f,nt=[ot],ft=[];for(N=0,D=W.length;N<D;N++){for(K=[],U=0,G=nt.length;U<G;U++)for(A=[(ot=nt[U].n)[W[N]],ot["*"]],E=2;E--;)(S=A[E])&&(K.push(S),ft=ft.concat(S.f||[]));nt=K}return ft},_.separator=function(g){g?(g="["+(g=v(g).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",l=new RegExp(g)):l=/[\.\/]/},_.on=function(g,S){if(typeof S!="function")return function(){};for(var A=b(g)?b(g[0])?g:[g]:v(g).split(u),E=0,N=A.length;E<N;E++)(function(D){for(var U,G=b(D)?D:v(D).split(l),K=f,W=0,ot=G.length;W<ot;W++)K=(K=K.n).hasOwnProperty(G[W])&&K[G[W]]||(K[G[W]]={n:{}});for(K.f=K.f||[],W=0,ot=K.f.length;W<ot;W++)if(K.f[W]==S){U=!0;break}!U&&K.f.push(S)})(A[E]);return function(D){+D==+D&&(S.zIndex=+D)}},_.f=function(g){var S=[].slice.call(arguments,1);return function(){_.apply(null,[g,null].concat(S).concat([].slice.call(arguments,0)))}},_.stop=function(){a=1},_.nt=function(g){var S=b(s)?s.join("."):s;return g?new RegExp("(?:\\.|\\/|^)"+g+"(?:\\.|\\/|$)").test(S):S},_.nts=function(){return b(s)?s:s.split(l)},_.off=_.unbind=function(g,S){if(g){var A=b(g)?b(g[0])?g:[g]:v(g).split(u);if(A.length>1)for(var E=0,N=A.length;E<N;E++)_.off(A[E],S);else{A=b(g)?g:v(g).split(l);var D,U,G,K,W,ot=[f];for(E=0,N=A.length;E<N;E++)for(K=0;K<ot.length;K+=G.length-2){if(G=[K,1],D=ot[K].n,A[E]!="*")D[A[E]]&&G.push(D[A[E]]);else for(U in D)D[c](U)&&G.push(D[U]);ot.splice.apply(ot,G)}for(E=0,N=ot.length;E<N;E++)for(D=ot[E];D.n;){if(S){if(D.f){for(K=0,W=D.f.length;K<W;K++)if(D.f[K]==S){D.f.splice(K,1);break}!D.f.length&&delete D.f}for(U in D.n)if(D.n[c](U)&&D.n[U].f){var nt=D.n[U].f;for(K=0,W=nt.length;K<W;K++)if(nt[K]==S){nt.splice(K,1);break}!nt.length&&delete D.n[U].f}}else for(U in delete D.f,D.n)D.n[c](U)&&D.n[U].f&&delete D.n[U].f;D=D.n}}}else _._events=f={n:{}}},_.once=function(g,S){var A=function(){return _.off(g,A),S.apply(this,arguments)};return _.on(g,A)},_.version="0.5.0",_.toString=function(){return"You are running Eve 0.5.0"},r.exports?r.exports=_:(o=function(){return _}.apply(n,[]))===void 0||(r.exports=o)},function(r,n,i){var o,s;o=[i(0)],(s=function(a){if(!a||a.svg){var c="hasOwnProperty",l=String,u=parseFloat,h=parseInt,f=Math,d=f.max,p=f.abs,m=f.pow,v=/[, ]+/,b=a.eve,_="",g=" ",S="http://www.w3.org/1999/xlink",A={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},E={};a.toString=function(){return`Your browser supports SVG.
|
|
82
|
+
You are running Raphaël `+this.version};var N=function(T,C){if(C)for(var $ in typeof T=="string"&&(T=N(T)),C)C[c]($)&&($.substring(0,6)=="xlink:"?T.setAttributeNS(S,$.substring(6),l(C[$])):T.setAttribute($,l(C[$])));else(T=a._g.doc.createElementNS("http://www.w3.org/2000/svg",T)).style&&(T.style.webkitTapHighlightColor="rgba(0,0,0,0)");return T},D=function(T,C){var $="linear",y=T.id+C,k=.5,M=.5,I=T.node,z=T.paper,q=I.style,et=a._g.doc.getElementById(y);if(!et){if(C=(C=l(C).replace(a._radial_gradient,function(lt,ct,dt){if($="radial",ct&&dt){k=u(ct);var St=2*((M=u(dt))>.5)-1;m(k-.5,2)+m(M-.5,2)>.25&&(M=f.sqrt(.25-m(k-.5,2))*St+.5)&&M!=.5&&(M=M.toFixed(5)-1e-5*St)}return _})).split(/\s*\-\s*/),$=="linear"){var st=C.shift();if(st=-u(st),isNaN(st))return null;var mt=[0,0,f.cos(a.rad(st)),f.sin(a.rad(st))],Mt=1/(d(p(mt[2]),p(mt[3]))||1);mt[2]*=Mt,mt[3]*=Mt,mt[2]<0&&(mt[0]=-mt[2],mt[2]=0),mt[3]<0&&(mt[1]=-mt[3],mt[3]=0)}var X=a._parseDots(C);if(!X)return null;if(y=y.replace(/[\(\)\s,\xb0#]/g,"_"),T.gradient&&y!=T.gradient.id&&(z.defs.removeChild(T.gradient),delete T.gradient),!T.gradient){et=N($+"Gradient",{id:y}),T.gradient=et,N(et,$=="radial"?{fx:k,fy:M}:{x1:mt[0],y1:mt[1],x2:mt[2],y2:mt[3],gradientTransform:T.matrix.invert()}),z.defs.appendChild(et);for(var Q=0,it=X.length;Q<it;Q++)et.appendChild(N("stop",{offset:X[Q].offset?X[Q].offset:Q?"100%":"0%","stop-color":X[Q].color||"#fff","stop-opacity":isFinite(X[Q].opacity)?X[Q].opacity:1}))}}return N(I,{fill:U(y),opacity:1,"fill-opacity":1}),q.fill=_,q.opacity=1,q.fillOpacity=1,1},U=function(T){if((C=document.documentMode)&&(C===9||C===10))return"url('#"+T+"')";var C,$=document.location;return"url('"+($.protocol+"//"+$.host+$.pathname+$.search)+"#"+T+"')"},G=function(T){var C=T.getBBox(1);N(T.pattern,{patternTransform:T.matrix.invert()+" translate("+C.x+","+C.y+")"})},K=function(T,C,$){if(T.type=="path"){for(var y,k,M,I,z,q=l(C).toLowerCase().split("-"),et=T.paper,st=$?"end":"start",mt=T.node,Mt=T.attrs,X=Mt["stroke-width"],Q=q.length,it="classic",lt=3,ct=3,dt=5;Q--;)switch(q[Q]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":it=q[Q];break;case"wide":ct=5;break;case"narrow":ct=2;break;case"long":lt=5;break;case"short":lt=2}if(it=="open"?(lt+=2,ct+=2,dt+=2,M=1,I=$?4:1,z={fill:"none",stroke:Mt.stroke}):(I=M=lt/2,z={fill:Mt.stroke,stroke:"none"}),T._.arrows?$?(T._.arrows.endPath&&E[T._.arrows.endPath]--,T._.arrows.endMarker&&E[T._.arrows.endMarker]--):(T._.arrows.startPath&&E[T._.arrows.startPath]--,T._.arrows.startMarker&&E[T._.arrows.startMarker]--):T._.arrows={},it!="none"){var St="raphael-marker-"+it,yt="raphael-marker-"+st+it+lt+ct+"-obj"+T.id;a._g.doc.getElementById(St)?E[St]++:(et.defs.appendChild(N(N("path"),{"stroke-linecap":"round",d:A[it],id:St})),E[St]=1);var bt,ut=a._g.doc.getElementById(yt);ut?(E[yt]++,bt=ut.getElementsByTagName("use")[0]):(ut=N(N("marker"),{id:yt,markerHeight:ct,markerWidth:lt,orient:"auto",refX:I,refY:ct/2}),bt=N(N("use"),{"xlink:href":"#"+St,transform:($?"rotate(180 "+lt/2+" "+ct/2+") ":_)+"scale("+lt/dt+","+ct/dt+")","stroke-width":(1/((lt/dt+ct/dt)/2)).toFixed(4)}),ut.appendChild(bt),et.defs.appendChild(ut),E[yt]=1),N(bt,z);var It=M*(it!="diamond"&&it!="oval");$?(y=T._.arrows.startdx*X||0,k=a.getTotalLength(Mt.path)-It*X):(y=It*X,k=a.getTotalLength(Mt.path)-(T._.arrows.enddx*X||0)),(z={})["marker-"+st]="url(#"+yt+")",(k||y)&&(z.d=a.getSubpath(Mt.path,y,k)),N(mt,z),T._.arrows[st+"Path"]=St,T._.arrows[st+"Marker"]=yt,T._.arrows[st+"dx"]=It,T._.arrows[st+"Type"]=it,T._.arrows[st+"String"]=C}else $?(y=T._.arrows.startdx*X||0,k=a.getTotalLength(Mt.path)-y):(y=0,k=a.getTotalLength(Mt.path)-(T._.arrows.enddx*X||0)),T._.arrows[st+"Path"]&&N(mt,{d:a.getSubpath(Mt.path,y,k)}),delete T._.arrows[st+"Path"],delete T._.arrows[st+"Marker"],delete T._.arrows[st+"dx"],delete T._.arrows[st+"Type"],delete T._.arrows[st+"String"];for(z in E)if(E[c](z)&&!E[z]){var Lt=a._g.doc.getElementById(z);Lt&&Lt.parentNode.removeChild(Lt)}}},W={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},ot=function(T,C,$){if(C=W[l(C).toLowerCase()]){for(var y=T.attrs["stroke-width"]||"1",k={round:y,square:y,butt:0}[T.attrs["stroke-linecap"]||$["stroke-linecap"]]||0,M=[],I=C.length;I--;)M[I]=C[I]*y+(I%2?1:-1)*k;N(T.node,{"stroke-dasharray":M.join(",")})}else N(T.node,{"stroke-dasharray":"none"})},nt=function(T,C){var $=T.node,y=T.attrs,k=$.style.visibility;for(var M in $.style.visibility="hidden",C)if(C[c](M)){if(!a._availableAttrs[c](M))continue;var I=C[M];switch(y[M]=I,M){case"blur":T.blur(I);break;case"title":var z=$.getElementsByTagName("title");if(z.length&&(z=z[0]))z.firstChild.nodeValue=I;else{z=N("title");var q=a._g.doc.createTextNode(I);z.appendChild(q),$.appendChild(z)}break;case"href":case"target":var et=$.parentNode;if(et.tagName.toLowerCase()!="a"){var st=N("a");et.insertBefore(st,$),st.appendChild($),et=st}M=="target"?et.setAttributeNS(S,"show",I=="blank"?"new":I):et.setAttributeNS(S,M,I);break;case"cursor":$.style.cursor=I;break;case"transform":T.transform(I);break;case"arrow-start":K(T,I);break;case"arrow-end":K(T,I,1);break;case"clip-rect":var mt=l(I).split(v);if(mt.length==4){T.clip&&T.clip.parentNode.parentNode.removeChild(T.clip.parentNode);var Mt=N("clipPath"),X=N("rect");Mt.id=a.createUUID(),N(X,{x:mt[0],y:mt[1],width:mt[2],height:mt[3]}),Mt.appendChild(X),T.paper.defs.appendChild(Mt),N($,{"clip-path":"url(#"+Mt.id+")"}),T.clip=X}if(!I){var Q=$.getAttribute("clip-path");if(Q){var it=a._g.doc.getElementById(Q.replace(/(^url\(#|\)$)/g,_));it&&it.parentNode.removeChild(it),N($,{"clip-path":_}),delete T.clip}}break;case"path":T.type=="path"&&(N($,{d:I?y.path=a._pathToAbsolute(I):"M0,0"}),T._.dirty=1,T._.arrows&&("startString"in T._.arrows&&K(T,T._.arrows.startString),"endString"in T._.arrows&&K(T,T._.arrows.endString,1)));break;case"width":if($.setAttribute(M,I),T._.dirty=1,!y.fx)break;M="x",I=y.x;case"x":y.fx&&(I=-y.x-(y.width||0));case"rx":if(M=="rx"&&T.type=="rect")break;case"cx":$.setAttribute(M,I),T.pattern&&G(T),T._.dirty=1;break;case"height":if($.setAttribute(M,I),T._.dirty=1,!y.fy)break;M="y",I=y.y;case"y":y.fy&&(I=-y.y-(y.height||0));case"ry":if(M=="ry"&&T.type=="rect")break;case"cy":$.setAttribute(M,I),T.pattern&&G(T),T._.dirty=1;break;case"r":T.type=="rect"?N($,{rx:I,ry:I}):$.setAttribute(M,I),T._.dirty=1;break;case"src":T.type=="image"&&$.setAttributeNS(S,"href",I);break;case"stroke-width":T._.sx==1&&T._.sy==1||(I/=d(p(T._.sx),p(T._.sy))||1),$.setAttribute(M,I),y["stroke-dasharray"]&&ot(T,y["stroke-dasharray"],C),T._.arrows&&("startString"in T._.arrows&&K(T,T._.arrows.startString),"endString"in T._.arrows&&K(T,T._.arrows.endString,1));break;case"stroke-dasharray":ot(T,I,C);break;case"fill":var lt=l(I).match(a._ISURL);if(lt){Mt=N("pattern");var ct=N("image");Mt.id=a.createUUID(),N(Mt,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),N(ct,{x:0,y:0,"xlink:href":lt[1]}),Mt.appendChild(ct),function(ut){a._preload(lt[1],function(){var It=this.offsetWidth,Lt=this.offsetHeight;N(ut,{width:It,height:Lt}),N(ct,{width:It,height:Lt})})}(Mt),T.paper.defs.appendChild(Mt),N($,{fill:"url(#"+Mt.id+")"}),T.pattern=Mt,T.pattern&&G(T);break}var dt=a.getRGB(I);if(dt.error){if((T.type=="circle"||T.type=="ellipse"||l(I).charAt()!="r")&&D(T,I)){if("opacity"in y||"fill-opacity"in y){var St=a._g.doc.getElementById($.getAttribute("fill").replace(/^url\(#|\)$/g,_));if(St){var yt=St.getElementsByTagName("stop");N(yt[yt.length-1],{"stop-opacity":("opacity"in y?y.opacity:1)*("fill-opacity"in y?y["fill-opacity"]:1)})}}y.gradient=I,y.fill="none";break}}else delete C.gradient,delete y.gradient,!a.is(y.opacity,"undefined")&&a.is(C.opacity,"undefined")&&N($,{opacity:y.opacity}),!a.is(y["fill-opacity"],"undefined")&&a.is(C["fill-opacity"],"undefined")&&N($,{"fill-opacity":y["fill-opacity"]});dt[c]("opacity")&&N($,{"fill-opacity":dt.opacity>1?dt.opacity/100:dt.opacity});case"stroke":dt=a.getRGB(I),$.setAttribute(M,dt.hex),M=="stroke"&&dt[c]("opacity")&&N($,{"stroke-opacity":dt.opacity>1?dt.opacity/100:dt.opacity}),M=="stroke"&&T._.arrows&&("startString"in T._.arrows&&K(T,T._.arrows.startString),"endString"in T._.arrows&&K(T,T._.arrows.endString,1));break;case"gradient":(T.type=="circle"||T.type=="ellipse"||l(I).charAt()!="r")&&D(T,I);break;case"opacity":y.gradient&&!y[c]("stroke-opacity")&&N($,{"stroke-opacity":I>1?I/100:I});case"fill-opacity":if(y.gradient){(St=a._g.doc.getElementById($.getAttribute("fill").replace(/^url\(#|\)$/g,_)))&&(yt=St.getElementsByTagName("stop"),N(yt[yt.length-1],{"stop-opacity":I}));break}default:M=="font-size"&&(I=h(I,10)+"px");var bt=M.replace(/(\-.)/g,function(ut){return ut.substring(1).toUpperCase()});$.style[bt]=I,T._.dirty=1,$.setAttribute(M,I)}}ft(T,C),$.style.visibility=k},ft=function(T,C){if(T.type=="text"&&(C[c]("text")||C[c]("font")||C[c]("font-size")||C[c]("x")||C[c]("y"))){var $=T.attrs,y=T.node,k=y.firstChild?h(a._g.doc.defaultView.getComputedStyle(y.firstChild,_).getPropertyValue("font-size"),10):10;if(C[c]("text")){for($.text=C.text;y.firstChild;)y.removeChild(y.firstChild);for(var M,I=l(C.text).split(`
|
|
83
|
+
`),z=[],q=0,et=I.length;q<et;q++)M=N("tspan"),q&&N(M,{dy:1.2*k,x:$.x}),M.appendChild(a._g.doc.createTextNode(I[q])),y.appendChild(M),z[q]=M}else for(q=0,et=(z=y.getElementsByTagName("tspan")).length;q<et;q++)q?N(z[q],{dy:1.2*k,x:$.x}):N(z[0],{dy:0});N(y,{x:$.x,y:$.y}),T._.dirty=1;var st=T._getBBox(),mt=$.y-(st.y+st.height/2);mt&&a.is(mt,"finite")&&N(z[0],{dy:mt})}},$t=function(T){return T.parentNode&&T.parentNode.tagName.toLowerCase()==="a"?T.parentNode:T},_t=function(T,C){this[0]=this.node=T,T.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),T.raphaelid=this.id,this.matrix=a.matrix(),this.realPath=null,this.paper=C,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!C.bottom&&(C.bottom=this),this.prev=C.top,C.top&&(C.top.next=this),C.top=this,this.next=null},vt=a.el;_t.prototype=vt,vt.constructor=_t,a._engine.path=function(T,C){var $=N("path");C.canvas&&C.canvas.appendChild($);var y=new _t($,C);return y.type="path",nt(y,{fill:"none",stroke:"#000",path:T}),y},vt.rotate=function(T,C,$){if(this.removed)return this;if((T=l(T).split(v)).length-1&&(C=u(T[1]),$=u(T[2])),T=u(T[0]),$==null&&(C=$),C==null||$==null){var y=this.getBBox(1);C=y.x+y.width/2,$=y.y+y.height/2}return this.transform(this._.transform.concat([["r",T,C,$]])),this},vt.scale=function(T,C,$,y){if(this.removed)return this;if((T=l(T).split(v)).length-1&&(C=u(T[1]),$=u(T[2]),y=u(T[3])),T=u(T[0]),C==null&&(C=T),y==null&&($=y),$==null||y==null)var k=this.getBBox(1);return $=$??k.x+k.width/2,y=y??k.y+k.height/2,this.transform(this._.transform.concat([["s",T,C,$,y]])),this},vt.translate=function(T,C){return this.removed?this:((T=l(T).split(v)).length-1&&(C=u(T[1])),T=u(T[0])||0,C=+C||0,this.transform(this._.transform.concat([["t",T,C]])),this)},vt.transform=function(T){var C=this._;if(T==null)return C.transform;if(a._extractTransform(this,T),this.clip&&N(this.clip,{transform:this.matrix.invert()}),this.pattern&&G(this),this.node&&N(this.node,{transform:this.matrix}),C.sx!=1||C.sy!=1){var $=this.attrs[c]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":$})}return this},vt.hide=function(){return this.removed||(this.node.style.display="none"),this},vt.show=function(){return this.removed||(this.node.style.display=""),this},vt.remove=function(){var T=$t(this.node);if(!this.removed&&T.parentNode){var C=this.paper;for(var $ in C.__set__&&C.__set__.exclude(this),b.unbind("raphael.*.*."+this.id),this.gradient&&C.defs.removeChild(this.gradient),a._tear(this,C),T.parentNode.removeChild(T),this.removeData(),this)this[$]=typeof this[$]=="function"?a._removedFactory($):null;this.removed=!0}},vt._getBBox=function(){if(this.node.style.display=="none"){this.show();var T=!0}var C,$=!1;this.paper.canvas.parentElement?C=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(C=this.paper.canvas.parentNode.style),C&&C.display=="none"&&($=!0,C.display="");var y={};try{y=this.node.getBBox()}catch{y={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{y=y||{},$&&(C.display="none")}return T&&this.hide(),y},vt.attr=function(T,C){if(this.removed)return this;if(T==null){var $={};for(var y in this.attrs)this.attrs[c](y)&&($[y]=this.attrs[y]);return $.gradient&&$.fill=="none"&&($.fill=$.gradient)&&delete $.gradient,$.transform=this._.transform,$}if(C==null&&a.is(T,"string")){if(T=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(T=="transform")return this._.transform;for(var k=T.split(v),M={},I=0,z=k.length;I<z;I++)(T=k[I])in this.attrs?M[T]=this.attrs[T]:a.is(this.paper.customAttributes[T],"function")?M[T]=this.paper.customAttributes[T].def:M[T]=a._availableAttrs[T];return z-1?M:M[k[0]]}if(C==null&&a.is(T,"array")){for(M={},I=0,z=T.length;I<z;I++)M[T[I]]=this.attr(T[I]);return M}if(C!=null){var q={};q[T]=C}else T!=null&&a.is(T,"object")&&(q=T);for(var et in q)b("raphael.attr."+et+"."+this.id,this,q[et]);for(et in this.paper.customAttributes)if(this.paper.customAttributes[c](et)&&q[c](et)&&a.is(this.paper.customAttributes[et],"function")){var st=this.paper.customAttributes[et].apply(this,[].concat(q[et]));for(var mt in this.attrs[et]=q[et],st)st[c](mt)&&(q[mt]=st[mt])}return nt(this,q),this},vt.toFront=function(){if(this.removed)return this;var T=$t(this.node);T.parentNode.appendChild(T);var C=this.paper;return C.top!=this&&a._tofront(this,C),this},vt.toBack=function(){if(this.removed)return this;var T=$t(this.node),C=T.parentNode;return C.insertBefore(T,C.firstChild),a._toback(this,this.paper),this.paper,this},vt.insertAfter=function(T){if(this.removed||!T)return this;var C=$t(this.node),$=$t(T.node||T[T.length-1].node);return $.nextSibling?$.parentNode.insertBefore(C,$.nextSibling):$.parentNode.appendChild(C),a._insertafter(this,T,this.paper),this},vt.insertBefore=function(T){if(this.removed||!T)return this;var C=$t(this.node),$=$t(T.node||T[0].node);return $.parentNode.insertBefore(C,$),a._insertbefore(this,T,this.paper),this},vt.blur=function(T){var C=this;if(+T!=0){var $=N("filter"),y=N("feGaussianBlur");C.attrs.blur=T,$.id=a.createUUID(),N(y,{stdDeviation:+T||1.5}),$.appendChild(y),C.paper.defs.appendChild($),C._blur=$,N(C.node,{filter:"url(#"+$.id+")"})}else C._blur&&(C._blur.parentNode.removeChild(C._blur),delete C._blur,delete C.attrs.blur),C.node.removeAttribute("filter");return C},a._engine.circle=function(T,C,$,y){var k=N("circle");T.canvas&&T.canvas.appendChild(k);var M=new _t(k,T);return M.attrs={cx:C,cy:$,r:y,fill:"none",stroke:"#000"},M.type="circle",N(k,M.attrs),M},a._engine.rect=function(T,C,$,y,k,M){var I=N("rect");T.canvas&&T.canvas.appendChild(I);var z=new _t(I,T);return z.attrs={x:C,y:$,width:y,height:k,rx:M||0,ry:M||0,fill:"none",stroke:"#000"},z.type="rect",N(I,z.attrs),z},a._engine.ellipse=function(T,C,$,y,k){var M=N("ellipse");T.canvas&&T.canvas.appendChild(M);var I=new _t(M,T);return I.attrs={cx:C,cy:$,rx:y,ry:k,fill:"none",stroke:"#000"},I.type="ellipse",N(M,I.attrs),I},a._engine.image=function(T,C,$,y,k,M){var I=N("image");N(I,{x:$,y,width:k,height:M,preserveAspectRatio:"none"}),I.setAttributeNS(S,"href",C),T.canvas&&T.canvas.appendChild(I);var z=new _t(I,T);return z.attrs={x:$,y,width:k,height:M,src:C},z.type="image",z},a._engine.text=function(T,C,$,y){var k=N("text");T.canvas&&T.canvas.appendChild(k);var M=new _t(k,T);return M.attrs={x:C,y:$,"text-anchor":"middle",text:y,"font-family":a._availableAttrs["font-family"],"font-size":a._availableAttrs["font-size"],stroke:"none",fill:"#000"},M.type="text",nt(M,M.attrs),M},a._engine.setSize=function(T,C){return this.width=T||this.width,this.height=C||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},a._engine.create=function(){var T=a._getContainer.apply(0,arguments),C=T&&T.container;if(!C)throw new Error("SVG container not found.");var $,y=T.x,k=T.y,M=T.width,I=T.height,z=N("svg"),q="overflow:hidden;";return y=y||0,k=k||0,N(z,{height:I=I||342,version:1.1,width:M=M||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),C==1?(z.style.cssText=q+"position:absolute;left:"+y+"px;top:"+k+"px",a._g.doc.body.appendChild(z),$=1):(z.style.cssText=q+"position:relative",C.firstChild?C.insertBefore(z,C.firstChild):C.appendChild(z)),(C=new a._Paper).width=M,C.height=I,C.canvas=z,C.clear(),C._left=C._top=0,$&&(C.renderfix=function(){}),C.renderfix(),C},a._engine.setViewBox=function(T,C,$,y,k){b("raphael.setViewBox",this,this._viewBox,[T,C,$,y,k]);var M,I,z=this.getSize(),q=d($/z.width,y/z.height),et=this.top,st=k?"xMidYMid meet":"xMinYMin";for(T==null?(this._vbSize&&(q=1),delete this._vbSize,M="0 0 "+this.width+g+this.height):(this._vbSize=q,M=T+g+C+g+$+g+y),N(this.canvas,{viewBox:M,preserveAspectRatio:st});q&&et;)I="stroke-width"in et.attrs?et.attrs["stroke-width"]:1,et.attr({"stroke-width":I}),et._.dirty=1,et._.dirtyT=1,et=et.prev;return this._viewBox=[T,C,$,y,!!k],this},a.prototype.renderfix=function(){var T,C=this.canvas,$=C.style;try{T=C.getScreenCTM()||C.createSVGMatrix()}catch{T=C.createSVGMatrix()}var y=-T.e%1,k=-T.f%1;(y||k)&&(y&&(this._left=(this._left+y)%1,$.left=this._left+"px"),k&&(this._top=(this._top+k)%1,$.top=this._top+"px"))},a.prototype.clear=function(){a.eve("raphael.clear",this);for(var T=this.canvas;T.firstChild;)T.removeChild(T.firstChild);this.bottom=this.top=null,(this.desc=N("desc")).appendChild(a._g.doc.createTextNode("Created with Raphaël "+a.version)),T.appendChild(this.desc),T.appendChild(this.defs=N("defs"))},a.prototype.remove=function(){for(var T in b("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[T]=typeof this[T]=="function"?a._removedFactory(T):null};var at=a.st;for(var Y in vt)vt[c](Y)&&!at[c](Y)&&(at[Y]=function(T){return function(){var C=arguments;return this.forEach(function($){$[T].apply($,C)})}}(Y))}}.apply(n,o))===void 0||(r.exports=s)},function(r,n,i){var o,s;o=[i(0)],(s=function(a){if(!a||a.vml){var c="hasOwnProperty",l=String,u=parseFloat,h=Math,f=h.round,d=h.max,p=h.min,m=h.abs,v=/[, ]+/,b=a.eve,_=" ",g="",S={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},A=/([clmz]),?([^clmz]*)/gi,E=/ progid:\S+Blur\([^\)]+\)/g,N=/-?[^,\s-]+/g,D="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",U=21600,G={path:1,rect:1,image:1},K={circle:1,ellipse:1},W=function(C,$,y){var k=a.matrix();return k.rotate(-C,.5,.5),{dx:k.x($,y),dy:k.y($,y)}},ot=function(C,$,y,k,M,I){var z=C._,q=C.matrix,et=z.fillpos,st=C.node,mt=st.style,Mt=1,X="",Q=U/$,it=U/y;if(mt.visibility="hidden",$&&y){if(st.coordsize=m(Q)+_+m(it),mt.rotation=I*($*y<0?-1:1),I){var lt=W(I,k,M);k=lt.dx,M=lt.dy}if($<0&&(X+="x"),y<0&&(X+=" y")&&(Mt=-1),mt.flip=X,st.coordorigin=k*-Q+_+M*-it,et||z.fillsize){var ct=st.getElementsByTagName("fill");ct=ct&&ct[0],st.removeChild(ct),et&&(lt=W(I,q.x(et[0],et[1]),q.y(et[0],et[1])),ct.position=lt.dx*Mt+_+lt.dy*Mt),z.fillsize&&(ct.size=z.fillsize[0]*m($)+_+z.fillsize[1]*m(y)),st.appendChild(ct)}mt.visibility="visible"}};a.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
|
|
84
|
+
You are running Raphaël `+this.version};var nt,ft=function(C,$,y){for(var k=l($).toLowerCase().split("-"),M=y?"end":"start",I=k.length,z="classic",q="medium",et="medium";I--;)switch(k[I]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":z=k[I];break;case"wide":case"narrow":et=k[I];break;case"long":case"short":q=k[I]}var st=C.node.getElementsByTagName("stroke")[0];st[M+"arrow"]=z,st[M+"arrowlength"]=q,st[M+"arrowwidth"]=et},$t=function(C,$){C.attrs=C.attrs||{};var y=C.node,k=C.attrs,M=y.style,I=G[C.type]&&($.x!=k.x||$.y!=k.y||$.width!=k.width||$.height!=k.height||$.cx!=k.cx||$.cy!=k.cy||$.rx!=k.rx||$.ry!=k.ry||$.r!=k.r),z=K[C.type]&&(k.cx!=$.cx||k.cy!=$.cy||k.r!=$.r||k.rx!=$.rx||k.ry!=$.ry),q=C;for(var et in $)$[c](et)&&(k[et]=$[et]);if(I&&(k.path=a._getPath[C.type](C),C._.dirty=1),$.href&&(y.href=$.href),$.title&&(y.title=$.title),$.target&&(y.target=$.target),$.cursor&&(M.cursor=$.cursor),"blur"in $&&C.blur($.blur),($.path&&C.type=="path"||I)&&(y.path=function(Qe){var xr=/[ahqstv]/gi,Lr=a._pathToAbsolute;if(l(Qe).match(xr)&&(Lr=a._path2curve),xr=/[clmz]/g,Lr==a._pathToAbsolute&&!l(Qe).match(xr)){var le=l(Qe).replace(A,function(Bo,un,$n){var Dr=[],Dn=un.toLowerCase()=="m",Sn=S[un];return $n.replace(N,function(en){Dn&&Dr.length==2&&(Sn+=Dr+S[un=="m"?"l":"L"],Dr=[]),Dr.push(f(en*U))}),Sn+Dr});return le}var nr,$r,ni=Lr(Qe);le=[];for(var xn=0,An=ni.length;xn<An;xn++){nr=ni[xn],($r=ni[xn][0].toLowerCase())=="z"&&($r="x");for(var Hr=1,Ve=nr.length;Hr<Ve;Hr++)$r+=f(nr[Hr]*U)+(Hr!=Ve-1?",":g);le.push($r)}return le.join(_)}(~l(k.path).toLowerCase().indexOf("r")?a._pathToAbsolute(k.path):k.path),C._.dirty=1,C.type=="image"&&(C._.fillpos=[k.x,k.y],C._.fillsize=[k.width,k.height],ot(C,1,1,0,0,0))),"transform"in $&&C.transform($.transform),z){var st=+k.cx,mt=+k.cy,Mt=+k.rx||+k.r||0,X=+k.ry||+k.r||0;y.path=a.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",f((st-Mt)*U),f((mt-X)*U),f((st+Mt)*U),f((mt+X)*U),f(st*U)),C._.dirty=1}if("clip-rect"in $){var Q=l($["clip-rect"]).split(v);if(Q.length==4){Q[2]=+Q[2]+ +Q[0],Q[3]=+Q[3]+ +Q[1];var it=y.clipRect||a._g.doc.createElement("div"),lt=it.style;lt.clip=a.format("rect({1}px {2}px {3}px {0}px)",Q),y.clipRect||(lt.position="absolute",lt.top=0,lt.left=0,lt.width=C.paper.width+"px",lt.height=C.paper.height+"px",y.parentNode.insertBefore(it,y),it.appendChild(y),y.clipRect=it)}$["clip-rect"]||y.clipRect&&(y.clipRect.style.clip="auto")}if(C.textpath){var ct=C.textpath.style;$.font&&(ct.font=$.font),$["font-family"]&&(ct.fontFamily='"'+$["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,g)+'"'),$["font-size"]&&(ct.fontSize=$["font-size"]),$["font-weight"]&&(ct.fontWeight=$["font-weight"]),$["font-style"]&&(ct.fontStyle=$["font-style"])}if("arrow-start"in $&&ft(q,$["arrow-start"]),"arrow-end"in $&&ft(q,$["arrow-end"],1),$.opacity!=null||$.fill!=null||$.src!=null||$.stroke!=null||$["stroke-width"]!=null||$["stroke-opacity"]!=null||$["fill-opacity"]!=null||$["stroke-dasharray"]!=null||$["stroke-miterlimit"]!=null||$["stroke-linejoin"]!=null||$["stroke-linecap"]!=null){var dt=y.getElementsByTagName("fill");if(!(dt=dt&&dt[0])&&(dt=nt("fill")),C.type=="image"&&$.src&&(dt.src=$.src),$.fill&&(dt.on=!0),dt.on!=null&&$.fill!="none"&&$.fill!==null||(dt.on=!1),dt.on&&$.fill){var St=l($.fill).match(a._ISURL);if(St){dt.parentNode==y&&y.removeChild(dt),dt.rotate=!0,dt.src=St[1],dt.type="tile";var yt=C.getBBox(1);dt.position=yt.x+_+yt.y,C._.fillpos=[yt.x,yt.y],a._preload(St[1],function(){C._.fillsize=[this.offsetWidth,this.offsetHeight]})}else dt.color=a.getRGB($.fill).hex,dt.src=g,dt.type="solid",a.getRGB($.fill).error&&(q.type in{circle:1,ellipse:1}||l($.fill).charAt()!="r")&&_t(q,$.fill,dt)&&(k.fill="none",k.gradient=$.fill,dt.rotate=!1)}if("fill-opacity"in $||"opacity"in $){var bt=((+k["fill-opacity"]+1||2)-1)*((+k.opacity+1||2)-1)*((+a.getRGB($.fill).o+1||2)-1);bt=p(d(bt,0),1),dt.opacity=bt,dt.src&&(dt.color="none")}y.appendChild(dt);var ut=y.getElementsByTagName("stroke")&&y.getElementsByTagName("stroke")[0],It=!1;!ut&&(It=ut=nt("stroke")),($.stroke&&$.stroke!="none"||$["stroke-width"]||$["stroke-opacity"]!=null||$["stroke-dasharray"]||$["stroke-miterlimit"]||$["stroke-linejoin"]||$["stroke-linecap"])&&(ut.on=!0),($.stroke=="none"||$.stroke===null||ut.on==null||$.stroke==0||$["stroke-width"]==0)&&(ut.on=!1);var Lt=a.getRGB($.stroke);ut.on&&$.stroke&&(ut.color=Lt.hex),bt=((+k["stroke-opacity"]+1||2)-1)*((+k.opacity+1||2)-1)*((+Lt.o+1||2)-1);var Ut=.75*(u($["stroke-width"])||1);if(bt=p(d(bt,0),1),$["stroke-width"]==null&&(Ut=k["stroke-width"]),$["stroke-width"]&&(ut.weight=Ut),Ut&&Ut<1&&(bt*=Ut)&&(ut.weight=1),ut.opacity=bt,$["stroke-linejoin"]&&(ut.joinstyle=$["stroke-linejoin"]||"miter"),ut.miterlimit=$["stroke-miterlimit"]||8,$["stroke-linecap"]&&(ut.endcap=$["stroke-linecap"]=="butt"?"flat":$["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in $){var Kt={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};ut.dashstyle=Kt[c]($["stroke-dasharray"])?Kt[$["stroke-dasharray"]]:g}It&&y.appendChild(ut)}if(q.type=="text"){q.paper.canvas.style.display=g;var ne=q.paper.span,Yt=k.font&&k.font.match(/\d+(?:\.\d*)?(?=px)/);M=ne.style,k.font&&(M.font=k.font),k["font-family"]&&(M.fontFamily=k["font-family"]),k["font-weight"]&&(M.fontWeight=k["font-weight"]),k["font-style"]&&(M.fontStyle=k["font-style"]),Yt=u(k["font-size"]||Yt&&Yt[0])||10,M.fontSize=100*Yt+"px",q.textpath.string&&(ne.innerHTML=l(q.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var he=ne.getBoundingClientRect();q.W=k.w=(he.right-he.left)/100,q.H=k.h=(he.bottom-he.top)/100,q.X=k.x,q.Y=k.y+q.H/2,("x"in $||"y"in $)&&(q.path.v=a.format("m{0},{1}l{2},{1}",f(k.x*U),f(k.y*U),f(k.x*U)+1));for(var Ne=["x","y","text","font","font-family","font-weight","font-style","font-size"],Ye=0,ar=Ne.length;Ye<ar;Ye++)if(Ne[Ye]in $){q._.dirty=1;break}switch(k["text-anchor"]){case"start":q.textpath.style["v-text-align"]="left",q.bbx=q.W/2;break;case"end":q.textpath.style["v-text-align"]="right",q.bbx=-q.W/2;break;default:q.textpath.style["v-text-align"]="center",q.bbx=0}q.textpath.style["v-text-kern"]=!0}},_t=function(C,$,y){C.attrs=C.attrs||{},C.attrs;var k=Math.pow,M="linear",I=".5 .5";if(C.attrs.gradient=$,$=($=l($).replace(a._radial_gradient,function(Mt,X,Q){return M="radial",X&&Q&&(X=u(X),Q=u(Q),k(X-.5,2)+k(Q-.5,2)>.25&&(Q=h.sqrt(.25-k(X-.5,2))*(2*(Q>.5)-1)+.5),I=X+_+Q),g})).split(/\s*\-\s*/),M=="linear"){var z=$.shift();if(z=-u(z),isNaN(z))return null}var q=a._parseDots($);if(!q)return null;if(C=C.shape||C.node,q.length){C.removeChild(y),y.on=!0,y.method="none",y.color=q[0].color,y.color2=q[q.length-1].color;for(var et=[],st=0,mt=q.length;st<mt;st++)q[st].offset&&et.push(q[st].offset+_+q[st].color);y.colors=et.length?et.join():"0% "+y.color,M=="radial"?(y.type="gradientTitle",y.focus="100%",y.focussize="0 0",y.focusposition=I,y.angle=0):(y.type="gradient",y.angle=(270-z)%360),C.appendChild(y)}return 1},vt=function(C,$){this[0]=this.node=C,C.raphael=!0,this.id=a._oid++,C.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=$,this.matrix=a.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!$.bottom&&($.bottom=this),this.prev=$.top,$.top&&($.top.next=this),$.top=this,this.next=null},at=a.el;vt.prototype=at,at.constructor=vt,at.transform=function(C){if(C==null)return this._.transform;var $,y=this.paper._viewBoxShift,k=y?"s"+[y.scale,y.scale]+"-1-1t"+[y.dx,y.dy]:g;y&&($=C=l(C).replace(/\.{3}|\u2026/g,this._.transform||g)),a._extractTransform(this,k+C);var M,I=this.matrix.clone(),z=this.skew,q=this.node,et=~l(this.attrs.fill).indexOf("-"),st=!l(this.attrs.fill).indexOf("url(");if(I.translate(1,1),st||et||this.type=="image")if(z.matrix="1 0 0 1",z.offset="0 0",M=I.split(),et&&M.noRotation||!M.isSimple){q.style.filter=I.toFilter();var mt=this.getBBox(),Mt=this.getBBox(1),X=mt.x-Mt.x,Q=mt.y-Mt.y;q.coordorigin=X*-U+_+Q*-U,ot(this,1,1,X,Q,0)}else q.style.filter=g,ot(this,M.scalex,M.scaley,M.dx,M.dy,M.rotate);else q.style.filter=g,z.matrix=l(I),z.offset=I.offset();return $!==null&&(this._.transform=$,a._extractTransform(this,$)),this},at.rotate=function(C,$,y){if(this.removed)return this;if(C!=null){if((C=l(C).split(v)).length-1&&($=u(C[1]),y=u(C[2])),C=u(C[0]),y==null&&($=y),$==null||y==null){var k=this.getBBox(1);$=k.x+k.width/2,y=k.y+k.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",C,$,y]])),this}},at.translate=function(C,$){return this.removed?this:((C=l(C).split(v)).length-1&&($=u(C[1])),C=u(C[0])||0,$=+$||0,this._.bbox&&(this._.bbox.x+=C,this._.bbox.y+=$),this.transform(this._.transform.concat([["t",C,$]])),this)},at.scale=function(C,$,y,k){if(this.removed)return this;if((C=l(C).split(v)).length-1&&($=u(C[1]),y=u(C[2]),k=u(C[3]),isNaN(y)&&(y=null),isNaN(k)&&(k=null)),C=u(C[0]),$==null&&($=C),k==null&&(y=k),y==null||k==null)var M=this.getBBox(1);return y=y??M.x+M.width/2,k=k??M.y+M.height/2,this.transform(this._.transform.concat([["s",C,$,y,k]])),this._.dirtyT=1,this},at.hide=function(){return!this.removed&&(this.node.style.display="none"),this},at.show=function(){return!this.removed&&(this.node.style.display=g),this},at.auxGetBBox=a.el.getBBox,at.getBBox=function(){var C=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var $={},y=1/this.paper._viewBoxShift.scale;return $.x=C.x-this.paper._viewBoxShift.dx,$.x*=y,$.y=C.y-this.paper._viewBoxShift.dy,$.y*=y,$.width=C.width*y,$.height=C.height*y,$.x2=$.x+$.width,$.y2=$.y+$.height,$}return C},at._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},at.remove=function(){if(!this.removed&&this.node.parentNode){for(var C in this.paper.__set__&&this.paper.__set__.exclude(this),a.eve.unbind("raphael.*.*."+this.id),a._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[C]=typeof this[C]=="function"?a._removedFactory(C):null;this.removed=!0}},at.attr=function(C,$){if(this.removed)return this;if(C==null){var y={};for(var k in this.attrs)this.attrs[c](k)&&(y[k]=this.attrs[k]);return y.gradient&&y.fill=="none"&&(y.fill=y.gradient)&&delete y.gradient,y.transform=this._.transform,y}if($==null&&a.is(C,"string")){if(C=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var M=C.split(v),I={},z=0,q=M.length;z<q;z++)(C=M[z])in this.attrs?I[C]=this.attrs[C]:a.is(this.paper.customAttributes[C],"function")?I[C]=this.paper.customAttributes[C].def:I[C]=a._availableAttrs[C];return q-1?I:I[M[0]]}if(this.attrs&&$==null&&a.is(C,"array")){for(I={},z=0,q=C.length;z<q;z++)I[C[z]]=this.attr(C[z]);return I}var et;for(var st in $!=null&&((et={})[C]=$),$==null&&a.is(C,"object")&&(et=C),et)b("raphael.attr."+st+"."+this.id,this,et[st]);if(et){for(st in this.paper.customAttributes)if(this.paper.customAttributes[c](st)&&et[c](st)&&a.is(this.paper.customAttributes[st],"function")){var mt=this.paper.customAttributes[st].apply(this,[].concat(et[st]));for(var Mt in this.attrs[st]=et[st],mt)mt[c](Mt)&&(et[Mt]=mt[Mt])}et.text&&this.type=="text"&&(this.textpath.string=et.text),$t(this,et)}return this},at.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&a._tofront(this,this.paper),this},at.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),a._toback(this,this.paper)),this)},at.insertAfter=function(C){return this.removed?this:(C.constructor==a.st.constructor&&(C=C[C.length-1]),C.node.nextSibling?C.node.parentNode.insertBefore(this.node,C.node.nextSibling):C.node.parentNode.appendChild(this.node),a._insertafter(this,C,this.paper),this)},at.insertBefore=function(C){return this.removed?this:(C.constructor==a.st.constructor&&(C=C[0]),C.node.parentNode.insertBefore(this.node,C.node),a._insertbefore(this,C,this.paper),this)},at.blur=function(C){var $=this.node.runtimeStyle,y=$.filter;return y=y.replace(E,g),+C!=0?(this.attrs.blur=C,$.filter=y+_+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+C||1.5)+")",$.margin=a.format("-{0}px 0 0 -{0}px",f(+C||1.5))):($.filter=y,$.margin=0,delete this.attrs.blur),this},a._engine.path=function(C,$){var y=nt("shape");y.style.cssText=D,y.coordsize=U+_+U,y.coordorigin=$.coordorigin;var k=new vt(y,$),M={fill:"none",stroke:"#000"};C&&(M.path=C),k.type="path",k.path=[],k.Path=g,$t(k,M),$.canvas&&$.canvas.appendChild(y);var I=nt("skew");return I.on=!0,y.appendChild(I),k.skew=I,k.transform(g),k},a._engine.rect=function(C,$,y,k,M,I){var z=a._rectPath($,y,k,M,I),q=C.path(z),et=q.attrs;return q.X=et.x=$,q.Y=et.y=y,q.W=et.width=k,q.H=et.height=M,et.r=I,et.path=z,q.type="rect",q},a._engine.ellipse=function(C,$,y,k,M){var I=C.path();return I.attrs,I.X=$-k,I.Y=y-M,I.W=2*k,I.H=2*M,I.type="ellipse",$t(I,{cx:$,cy:y,rx:k,ry:M}),I},a._engine.circle=function(C,$,y,k){var M=C.path();return M.attrs,M.X=$-k,M.Y=y-k,M.W=M.H=2*k,M.type="circle",$t(M,{cx:$,cy:y,r:k}),M},a._engine.image=function(C,$,y,k,M,I){var z=a._rectPath(y,k,M,I),q=C.path(z).attr({stroke:"none"}),et=q.attrs,st=q.node,mt=st.getElementsByTagName("fill")[0];return et.src=$,q.X=et.x=y,q.Y=et.y=k,q.W=et.width=M,q.H=et.height=I,et.path=z,q.type="image",mt.parentNode==st&&st.removeChild(mt),mt.rotate=!0,mt.src=$,mt.type="tile",q._.fillpos=[y,k],q._.fillsize=[M,I],st.appendChild(mt),ot(q,1,1,0,0,0),q},a._engine.text=function(C,$,y,k){var M=nt("shape"),I=nt("path"),z=nt("textpath");$=$||0,y=y||0,k=k||"",I.v=a.format("m{0},{1}l{2},{1}",f($*U),f(y*U),f($*U)+1),I.textpathok=!0,z.string=l(k),z.on=!0,M.style.cssText=D,M.coordsize=U+_+U,M.coordorigin="0 0";var q=new vt(M,C),et={fill:"#000",stroke:"none",font:a._availableAttrs.font,text:k};q.shape=M,q.path=I,q.textpath=z,q.type="text",q.attrs.text=l(k),q.attrs.x=$,q.attrs.y=y,q.attrs.w=1,q.attrs.h=1,$t(q,et),M.appendChild(z),M.appendChild(I),C.canvas.appendChild(M);var st=nt("skew");return st.on=!0,M.appendChild(st),q.skew=st,q.transform(g),q},a._engine.setSize=function(C,$){var y=this.canvas.style;return this.width=C,this.height=$,C==+C&&(C+="px"),$==+$&&($+="px"),y.width=C,y.height=$,y.clip="rect(0 "+C+" "+$+" 0)",this._viewBox&&a._engine.setViewBox.apply(this,this._viewBox),this},a._engine.setViewBox=function(C,$,y,k,M){a.eve("raphael.setViewBox",this,this._viewBox,[C,$,y,k,M]);var I,z,q=this.getSize(),et=q.width,st=q.height;return M&&(y*(I=st/k)<et&&(C-=(et-y*I)/2/I),k*(z=et/y)<st&&($-=(st-k*z)/2/z)),this._viewBox=[C,$,y,k,!!M],this._viewBoxShift={dx:-C,dy:-$,scale:q},this.forEach(function(mt){mt.transform("...")}),this},a._engine.initWin=function(C){var $=C.document;$.styleSheets.length<31?$.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):$.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!$.namespaces.rvml&&$.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),nt=function(y){return $.createElement("<rvml:"+y+' class="rvml">')}}catch{nt=function(y){return $.createElement("<"+y+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},a._engine.initWin(a._g.win),a._engine.create=function(){var C=a._getContainer.apply(0,arguments),$=C.container,y=C.height,k=C.width,M=C.x,I=C.y;if(!$)throw new Error("VML container not found.");var z=new a._Paper,q=z.canvas=a._g.doc.createElement("div"),et=q.style;return M=M||0,I=I||0,k=k||512,y=y||342,z.width=k,z.height=y,k==+k&&(k+="px"),y==+y&&(y+="px"),z.coordsize=216e5+_+216e5,z.coordorigin="0 0",z.span=a._g.doc.createElement("span"),z.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",q.appendChild(z.span),et.cssText=a.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",k,y),$==1?(a._g.doc.body.appendChild(q),et.left=M+"px",et.top=I+"px",et.position="absolute"):$.firstChild?$.insertBefore(q,$.firstChild):$.appendChild(q),z.renderfix=function(){},z},a.prototype.clear=function(){a.eve("raphael.clear",this),this.canvas.innerHTML=g,this.span=a._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},a.prototype.remove=function(){for(var C in a.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[C]=typeof this[C]=="function"?a._removedFactory(C):null;return!0};var Y=a.st;for(var T in at)at[c](T)&&!Y[c](T)&&(Y[T]=function(C){return function(){var $=arguments;return this.forEach(function(y){y[C].apply(y,$)})}}(T))}}.apply(n,o))===void 0||(r.exports=s)}])})})(fS);var AB=fS.exports;const ln=vn(AB);class pd{points;constructor(t=[]){this.points=t}toSVGPathData(){const t=[];for(let r=0,n=this.length;r<n;r++)t.push([r===0?"M":"L",this.points[r].x,this.points[r].y]);return t}toSVGPathD(){let t="";for(let r=0,n=this.length;r<n;r++)t+=(r===0?"M":"L")+this.points[r].x+","+this.points[r].y;return t}get length(){return this.points.length}addPoint(t){this.points.push(t)}getPoint(t){return this.points[t]}isContainPoint(t){const r=t.x,n=t.y,i=this.length;let o=!1;const s=2e-10;for(let a=0,c=i-1;a<i;c=a,a++){const l=this.points[a].x,u=this.points[a].y,h=this.points[c].x,f=this.points[c].y;if(l===r&&u===n||h===r&&f===n||n===u&&n===f)return!0;if(n>=u&&n<f||n<u&&n>=f){const d=(h-l)/(f-u),p=l+d*(n-u);if(p===r||Math.abs(p-r)<s)return!0;p>r&&(o=!o)}}return o}[Symbol.iterator](){let t=0;return{next:()=>({value:t>=this.length-1?this.points[++t]:void 0,done:t>=this.length})}}static generateInMultiplePoint(t,r,n,i,o=1){const s=new pd;for(let a=0;a<=o*n;a+=1){const c=Math.floor(a/o)/n*2*Math.PI,l=t+Math.cos(c)*i,u=r+Math.sin(c)*i;s.addPoint(new _s({x:l,y:u}))}return s}}ln.easing_formulas.swing=function(e){return e+Math.sin(e*Math.PI*2)/2},ln.easing_formulas.may_cause_seizures=function(e){return e+.2*Math.random()-.1},ln.fn.importSVG=function(e,t){const r=DB.fromRawSVG(e);return r.toRaphael(this,(n,i)=>{r.save(),t&&t(n),i(),r.restore()}),this},ln.fn.NPolygonPath=function(e,t,r,n,i=2){return{shape:this.path(pd.generateInMultiplePoint(e,t,r,n,i).toSVGPathD()),afterPath:pd.generateInMultiplePoint(e,t,r*i,n,1).toSVGPathD()}},ln.fn.zoom=function(e=1){return this.setViewBox(0,0,this.width/e,this.height/e),this},ln.fn.brickwall=function(e,t,r,n,i){for(var o=n/i,s=r/3,a={fill:"firebrick",stroke:"#CCC"},c=0;c<i;c+=1){var l=this.rect(0,0,s,o).attr(a),u=this.rect(0,0,2*s,o).attr(a);c%2?(l.transform("T"+e+","+(t+c*o)),u.transform("T"+(e+s)+","+(t+c*o))):(u.transform("T"+e+","+(t+c*o)),l.transform("T"+(e+2*s)+","+(t+c*o)))}},ln.fn.rosetta=function(e,t,r,n,i){const o=fa.generateRosetta(e,t,r,n,i);return o.center,this.path(o.toSVGPathD())},ln.fn.moon=function(e){e=e||{},e.r=typeof e.r=="number"?e.r:100,e.phase=typeof e.phase=="number"?e.phase:.25,e.x=typeof e.x=="number"?e.x:0,e.y=typeof e.y=="number"?e.y:0,this.circle(e.r+e.x,e.r+e.y,e.r).attr({"stroke-width":0,fill:"#999"});function t(n){n=typeof n=="number"?n:.25,n=Math.max(0,Math.min(1,n)),n=(n-.5)*2;let i="M"+e.r+",0";i+="a"+e.r+","+e.r+" 0 0,0 0,"+e.r*2;let o=n>0?0:1;return n=Math.abs(n),n=n||1e-4,e.inner_r=e.r/Math.pow(n,.5),i+="M"+e.r+","+e.r*2,i+="a"+e.inner_r+","+e.inner_r+" 0 0,"+o+" 0,"+e.r*-2,i}var r=this.path(t(e.phase)).attr({"stroke-width":0,stroke:"#999",fill:"#FF9"}).transform("T"+e.x+","+e.y);return{setPhase:function(n){r.attr("path",t(n))}}},ln.fn.star=function(e,t,r){let n="M"+e+","+(t-r);for(var i=0;i<6;i+=1){const o=270+i*144,s=e+r*Math.cos(o*Math.PI/180),a=t+r*Math.sin(o*Math.PI/180);n+="L"+s+","+a}return this.path(n).attr("stroke-width",0).attr("fill","red")},ln.fn.heart=function(e=150,t=300){let r="M"+e+","+t;return r+="l120,-175a50,50 0 0,0 -120,-75a50,50 0 0,0 -120,75l120,175",this.path(r).attr("stroke","red").attr("fill","pink")},ln.el.redder=function(){const e=ln.getRGB(this.attr("fill"));e.r+=51,this.attr("fill","rgb("+e.r+","+e.g+","+e.b+")")},ln.installCustomAttributes=function(e){e.customAttributes.redness=function(t){const r=255*(1-t/100);return{fill:"rgb(255,"+r+", "+r+")"}},e.customAttributes.progress=function(t){const r=this.data("progresspath"),n=this.attr(),i={x:0,y:0},o=this.data("progresstrail");if(!r)return{transform:"t0,0"};Object.prototype.hasOwnProperty.call(n,"width")&&(i.x=-this.attr("width")/2,i.y=-this.attr("height")/2);const s=r.getTotalLength(),a=r.getPointAtLength(t*s);return o&&o.attr("path",r.getSubpath(0,t*s)),{transform:"t"+(a.x+i.x)+","+(a.y+i.y)+"r"+a.alpha}}};const pS=ln;class bs{pgs=[];history=[];save(){this.history.push(Lw(this.pgs))}restore(){const t=this.history.pop();t&&(this.pgs=t)}get size(){let t=0,r=0;return this.pgs.forEach(n=>{const i=n.pg;if(i){const[o,s,a,c]=i.bounds,[l,u]=i.size;t=Math.max(t,o,o+l,a),r=Math.max(r,s,s+u,c)}}),[Math.ceil(t),Math.ceil(r)]}static fromRawSVG(t){return bs.fromRawSVGUseRappar(t)}static fromRawSVGUseRappar(t){const r=new bs,n=PB(t);for(let i=0,o=n.length;i<o;i++){const s=n[i];if(s.type=="viewbox"&&s.width&&s.height)continue;const a={attrs:{}};for(const c in s)c==="type"||c==="path"||c==="transform"||(a.attrs[c]=s[c]);switch(s.type){case"path":a.d=s.path,a.pg=fa.fromSVGPathD(s.path,s.transform);break}r.pgs.push(a)}return r}toRaphael(t,r){let n;t instanceof HTMLElement?n=pS(HTMLElement):typeof t=="string"?n=pS(document.getElementById(t)):n=t;const[i,o]=this.size;n.setSize(i,o);const s=(a=!1)=>{for(let c=0,l=this.pgs.length;c<l;c++){const u=this.pgs[c];if(u.pg&&(u.raphaelPath?u.raphaelPath.attr("path",u.pg.toSVGPathD()):u.raphaelPath=n.path(u.pg.toSVGPathD()),u.raphaelPath.attr(u.attrs)),a&&r){const h=f=>{const{x:d,y:p}=H$(n.canvas,f),m=this.pgs.find(v=>v.raphaelPath?.isPointInside(d,p));m&&r?.(m,s)};u.raphaelPath?.unclick(h),u.raphaelPath?.click(h)}}};return s(!0),n}toCanvasOperation(t,r){let n;typeof t=="string"?n=document.getElementById(t):n=t;const[i,o]=this.size;n.width=i,n.height=o;const s=new RB(n),a=()=>{s.clearRect(0,0,i,o);for(let l=0,u=this.pgs.length;l<u;l++){const h=this.pgs[l];h.pg&&(s.save(),this.toCanvasAttrs(s,h.attrs),h.pg.toCanvas(s),h.attrs.stroke!=="none"&&s.stroke(),h.attrs.fill!=="none"&&s.fill(),s.restore())}};a();const c=l=>{const{x:u,y:h}=H$(s.canvas,l),f=this.pgs.find(d=>d.pg?.isPointInPath(u,h));f&&r?.(f,a)};return n.removeEventListener("click",c),n.addEventListener("click",c),s}toCanvasAttrs(t,r){for(const n in r){const i=r[n];switch(n){case"fill":t.fillStyle=String(i);break;case"stroke":t.strokeStyle=String(i);break;case"stroke-width":t.lineWidth=Number(i);break;case"stroke-linecap":t.lineCap=i;break;case"stroke-linejoin":t.lineJoin=i;break}}}static toDownloadSVGElement(t,r="shape"){z$(qG(t),`${r}.svg`)}toDownloadSVGElement(t,r="shape"){return bs.toDownloadSVGElement(t,r),this}static toDownloadSVGString(t,r="shape"){z$(V$(t),`${r}.svg`)}toDownloadSVGString(t,r="shape"){return bs.toDownloadSVGString(t,r),this}static getSVGDOM(t){if(t instanceof HTMLObjectElement||t instanceof HTMLIFrameElement)return t.contentDocument;if(t instanceof HTMLEmbedElement)return t.getSVGDocument()}}const DB=bs;class RB{canvas;context;customContext;constructor(t){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),this.customContext=new fd({canvas:this.canvas,width:this.canvas.width,height:this.canvas.height})}set lineWidth(t){this.context.lineWidth=t,this.customContext.lineWidth=t}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.context.lineCap=t,this.customContext.lineCap=t}get lineCap(){return this.context.lineCap}set lineJoin(t){this.context.lineJoin=t,this.customContext.lineCap=t}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.context.lineDashOffset=t,this.customContext.lineDashOffset=t}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.context.miterLimit=t,this.customContext.miterLimit=t}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext.globalAlpha=t}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext.fillStyle=t):(this.context.fillStyle=t.gradient,this.customContext.fillStyle=t.gradientCustom)}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext.strokeStyle=t):(this.context.strokeStyle=t.gradient,this.customContext.strokeStyle=t.gradientCustom)}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext.font=t}get font(){return this.context.font}fill(){return this.context.fill(),this.customContext.fill(),this}fillRect(t,r,n,i){return this.context.fillRect(t,r,n,i),this.customContext.fillRect(t,r,n,i),this}fillText(t,r,n,i){return this.context.fillText(t,r,n,i),this.customContext.fillText(t,r,n),this}setLineDash(t){return this.context.setLineDash(t),this.customContext.setLineDash(t),this}stroke(){return this.context.stroke(),this.customContext.stroke(),this}strokeText(t,r,n,i){return this.context.strokeText(t,r,n,i),this.customContext.strokeText(t,r,n),this}strokeRect(t,r,n,i){return this.context.strokeRect(t,r,n,i),this.customContext.strokeRect(t,r,n,i),this}clearRect(t=0,r=0,n=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,r,n,i),this.customContext.clearRect(t,r,n,i),this}save(){return this.context.save(),this.customContext.save(),this}restore(){return this.context.restore(),this.customContext.restore(),this}beginPath(){return this.context.beginPath(),this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext.closePath(),this}moveTo(t,r){return this.context.moveTo(t,r),this.customContext.moveTo(t,r),this}lineTo(t,r){return this.context.lineTo(t,r),this.customContext.lineTo(t,r),this}arc(t,r,n,i,o,s){return this.context.arc(t,r,n,i,o,s),this.customContext.arc(t,r,n,i,o,s?-1:1),this}arcTo(t,r,n,i,o){return this.context.arcTo(t,r,n,i,o),this.customContext.arcTo(t,r,n,i,o),this}quadraticCurveTo(t,r,n,i){return this.context.quadraticCurveTo(t,r,n,i),this.customContext.quadraticCurveTo(t,r,n,i),this}bezierCurveTo(t,r,n,i,o,s){return this.context.bezierCurveTo(t,r,n,i,o,s),this.customContext.bezierCurveTo(t,r,n,i,o,s),this}rect(t,r,n,i){return this.context.rect(t,r,n,i),this.customContext.rect(t,r,n,i),this}translate(t,r){return this.context.translate(t,r),this.customContext.translate(t,r),this}rotate(t){return this.context.rotate(t),this.customContext.rotate(t),this}scale(t,r){return this.context.scale(t,r),this.customContext.scale(t,r),this}createLinearGradient(t,r,n,i,o){const s=this.context.createLinearGradient(t,r,n,i),a=this.customContext.createLinearGradient(t,r,n,i);return o&&Object.keys(o).forEach(c=>{const l=parseFloat(c);s.addColorStop(l,o[l]),a.addColorStop(l,o[l])}),{gradient:s,gradientCustom:a}}createRadialGradient(t,r,n,i,o,s,a){const c=this.context.createRadialGradient(t,r,n,i,o,s),l=this.customContext.createRadialGradient(t,r,n,i,o,s);return a&&Object.keys(a).forEach(u=>{const h=parseFloat(u);c.addColorStop(h,a[h]),l.addColorStop(h,a[h])}),{gradient:c,gradientCustom:l}}drawImage(t,r=0,n=0){return this.context.drawImage(t,r,n),this.customContext.drawImage(t,r,n),this}getImageData(t,r,n,i,o){return this.context.getImageData(t,r,n,i,o)}putImageData(t,r=0,n=0){return this.context.putImageData(t,r,n)}toRawSVG(){const t=this.customContext.getSerializedSvg(!0),r=this.customContext.getSvg();return{raw:t,element:r}}toSVGOperation(){const{raw:t}=this.toRawSVG();return bs.fromRawSVG(t)}}(function(){let e=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(t){const r=new Date().getTime(),n=Math.max(0,16-(r-e)),i=window.setTimeout(function(){t(r+n)},n);return e=r+n,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})})();const IB={colorPrimary:Hl.getCSSVar("--color-primary"),colorRed:Hl.getCSSVar("--color-red"),colorOrange:Hl.getCSSVar("--color-orange"),colorYellow:Hl.getCSSVar("--color-yellow"),colorGray3:Hl.getCSSVar("--color-gray-3")};var mS={exports:{}};(function(e){var t={};e.exports=t,t.parse=function(r,n){for(var i=t.bin.readUshort,o=t.bin.readUint,l=0,s={},a=new Uint8Array(r),c=a.length-4;o(a,c)!=101010256;)c--;var l=c;l+=4,l+=4;var u=i(a,l);l+=2,i(a,l),l+=2;var h=o(a,l);l+=4;var f=o(a,l);l+=4,l=f;for(var d=0;d<u;d++){o(a,l),l+=4,l+=4,l+=4,l+=4,o(a,l),l+=4;var h=o(a,l);l+=4;var p=o(a,l);l+=4;var m=i(a,l),v=i(a,l+2),b=i(a,l+4);l+=6,l+=8;var _=o(a,l);l+=4,l+=m+v+b,t._readLocal(a,_,s,h,p,n)}return s},t._readLocal=function(r,n,i,o,s,a){var c=t.bin.readUshort,l=t.bin.readUint;l(r,n),n+=4,c(r,n),n+=2,c(r,n),n+=2;var u=c(r,n);n+=2,l(r,n),n+=4,l(r,n),n+=4,n+=8;var h=c(r,n);n+=2;var f=c(r,n);n+=2;var d=t.bin.readUTF8(r,n,h);if(n+=h,n+=f,a){i[d]={size:s,csize:o};return}var p=new Uint8Array(r.buffer,n);if(u==0)i[d]=new Uint8Array(p.buffer.slice(n,n+o));else if(u==8){var m=new Uint8Array(s);t.inflateRaw(p,m),i[d]=m}else throw"unknown compression method: "+u},t.inflateRaw=function(r,n){return t.F.inflate(r,n)},t.inflate=function(r,n){return r[0],r[1],t.inflateRaw(new Uint8Array(r.buffer,r.byteOffset+2,r.length-6),n)},t.deflate=function(r,n){n==null&&(n={level:6});var i=0,o=new Uint8Array(50+Math.floor(r.length*1.1));o[i]=120,o[i+1]=156,i+=2,i=t.F.deflateRaw(r,o,i,n.level);var s=t.adler(r,0,r.length);return o[i+0]=s>>>24&255,o[i+1]=s>>>16&255,o[i+2]=s>>>8&255,o[i+3]=s>>>0&255,new Uint8Array(o.buffer,0,i+4)},t.deflateRaw=function(r,n){n==null&&(n={level:6});var i=new Uint8Array(50+Math.floor(r.length*1.1)),o=t.F.deflateRaw(r,i,o,n.level);return new Uint8Array(i.buffer,0,o)},t.encode=function(r,n){n==null&&(n=!1);var i=0,o=t.bin.writeUint,s=t.bin.writeUshort,a={};for(var c in r){var l=!t._noNeed(c)&&!n,u=r[c],h=t.crc.crc(u,0,u.length);a[c]={cpr:l,usize:u.length,crc:h,file:l?t.deflateRaw(u):u}}for(var c in a)i+=a[c].file.length+30+46+2*t.bin.sizeUTF8(c);i+=22;var f=new Uint8Array(i),d=0,p=[];for(var c in a){var m=a[c];p.push(d),d=t._writeHeader(f,d,c,m,0)}var v=0,b=d;for(var c in a){var m=a[c];p.push(d),d=t._writeHeader(f,d,c,m,1,p[v++])}var _=d-b;return o(f,d,101010256),d+=4,d+=4,s(f,d,v),d+=2,s(f,d,v),d+=2,o(f,d,_),d+=4,o(f,d,b),d+=4,d+=2,f.buffer},t._noNeed=function(r){var n=r.split(".").pop().toLowerCase();return"png,jpg,jpeg,zip".indexOf(n)!=-1},t._writeHeader=function(r,n,i,o,s,a){var c=t.bin.writeUint,l=t.bin.writeUshort,u=o.file;c(r,n,s==0?67324752:33639248),n+=4,s==1&&(n+=2),l(r,n,20),n+=2,l(r,n,0),n+=2,l(r,n,o.cpr?8:0),n+=2,c(r,n,0),n+=4,c(r,n,o.crc),n+=4,c(r,n,u.length),n+=4,c(r,n,o.usize),n+=4,l(r,n,t.bin.sizeUTF8(i)),n+=2,l(r,n,0),n+=2,s==1&&(n+=2,n+=2,n+=6,c(r,n,a),n+=4);var h=t.bin.writeUTF8(r,n,i);return n+=h,s==0&&(r.set(u,n),n+=u.length),n},t.crc={table:function(){for(var r=new Uint32Array(256),n=0;n<256;n++){for(var i=n,o=0;o<8;o++)i&1?i=3988292384^i>>>1:i=i>>>1;r[n]=i}return r}(),update:function(r,n,i,o){for(var s=0;s<o;s++)r=t.crc.table[(r^n[i+s])&255]^r>>>8;return r},crc:function(r,n,i){return t.crc.update(4294967295,r,n,i)^4294967295}},t.adler=function(r,n,i){for(var o=1,s=0,a=n,c=n+i;a<c;){for(var l=Math.min(a+5552,c);a<l;)o+=r[a++],s+=o;o=o%65521,s=s%65521}return s<<16|o},t.bin={readUshort:function(r,n){return r[n]|r[n+1]<<8},writeUshort:function(r,n,i){r[n]=i&255,r[n+1]=i>>8&255},readUint:function(r,n){return r[n+3]*(256*256*256)+(r[n+2]<<16|r[n+1]<<8|r[n])},writeUint:function(r,n,i){r[n]=i&255,r[n+1]=i>>8&255,r[n+2]=i>>16&255,r[n+3]=i>>24&255},readASCII:function(r,n,i){for(var o="",s=0;s<i;s++)o+=String.fromCharCode(r[n+s]);return o},writeASCII:function(r,n,i){for(var o=0;o<i.length;o++)r[n+o]=i.charCodeAt(o)},pad:function(r){return r.length<2?"0"+r:r},readUTF8:function(r,n,i){for(var o="",s,a=0;a<i;a++)o+="%"+t.bin.pad(r[n+a].toString(16));try{s=decodeURIComponent(o)}catch{return t.bin.readASCII(r,n,i)}return s},writeUTF8:function(r,n,i){for(var o=i.length,s=0,a=0;a<o;a++){var c=i.charCodeAt(a);if(!(c&4294967295-128+1))r[n+s]=c,s++;else if(!(c&4294967295-2048+1))r[n+s]=192|c>>6,r[n+s+1]=128|c>>0&63,s+=2;else if(!(c&4294967295-65536+1))r[n+s]=224|c>>12,r[n+s+1]=128|c>>6&63,r[n+s+2]=128|c>>0&63,s+=3;else if(!(c&4294967295-(1<<21)+1))r[n+s]=240|c>>18,r[n+s+1]=128|c>>12&63,r[n+s+2]=128|c>>6&63,r[n+s+3]=128|c>>0&63,s+=4;else throw"e"}return s},sizeUTF8:function(r){for(var n=r.length,i=0,o=0;o<n;o++){var s=r.charCodeAt(o);if(!(s&4294967295-128+1))i++;else if(!(s&4294967295-2048+1))i+=2;else if(!(s&4294967295-65536+1))i+=3;else if(!(s&4294967295-(1<<21)+1))i+=4;else throw"e"}return i}},t.F={},t.F.deflateRaw=function(r,n,i,o){var s=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]],a=s[o],c=t.F.U,l=t.F._goodIndex;t.F._hash;var u=t.F._putsE,h=0,f=i<<3,d=0,p=r.length;if(o==0){for(;h<p;){var m=Math.min(65535,p-h);u(n,f,h+m==p?1:0),f=t.F._copyExact(r,h,m,n,f+8),h+=m}return f>>>3}var v=c.lits,b=c.strt,_=c.prev,g=0,S=0,A=0,E=0,N=0,D=0;for(p>2&&(D=t.F._hash(r,0),b[D]=0),h=0;h<p;h++){if(N=D,h+1<p-2){D=t.F._hash(r,h+1);var U=h+1&32767;_[U]=b[D],b[D]=U}if(d<=h){(g>14e3||S>26697)&&p-h>100&&(d<h&&(v[g]=h-d,g+=2,d=h),f=t.F._writeBlock(h==p-1||d==p?1:0,v,g,E,r,A,h-A,n,f),g=S=E=0,A=h);var G=0;h<p-2&&(G=t.F._bestMatch(r,h,_,N,Math.min(a[2],p-h),a[3]));var m=G>>>16,K=G&65535;if(G!=0){var m=G>>>16,K=G&65535,W=l(m,c.of0);c.lhst[257+W]++;var ot=l(K,c.df0);c.dhst[ot]++,E+=c.exb[W]+c.dxb[ot],v[g]=m<<23|h-d,v[g+1]=K<<16|W<<8|ot,g+=2,d=h+m}else c.lhst[r[h]]++;S++}}for((A!=h||r.length==0)&&(d<h&&(v[g]=h-d,g+=2,d=h),f=t.F._writeBlock(1,v,g,E,r,A,h-A,n,f),g=0,S=0,g=S=E=0,A=h);f&7;)f++;return f>>>3},t.F._bestMatch=function(r,n,i,o,s,a){var c=n&32767,l=i[c],u=c-l+32768&32767;if(l==c||o!=t.F._hash(r,n-u))return 0;for(var h=0,f=0,d=Math.min(32767,n);u<=d&&--a!=0&&l!=c;){if(h==0||r[n+h]==r[n+h-u]){var p=t.F._howLong(r,n,u);if(p>h){if(h=p,f=u,h>=s)break;u+2<p&&(p=u+2);for(var m=0,v=0;v<p-2;v++){var b=n-u+v+32768&32767,_=i[b],g=b-_+32768&32767;g>m&&(m=g,l=b)}}}c=l,l=i[c],u+=c-l+32768&32767}return h<<16|f},t.F._howLong=function(r,n,i){if(r[n]!=r[n-i]||r[n+1]!=r[n+1-i]||r[n+2]!=r[n+2-i])return 0;var o=n,s=Math.min(r.length,n+258);for(n+=3;n<s&&r[n]==r[n-i];)n++;return n-o},t.F._hash=function(r,n){return(r[n]<<8|r[n+1])+(r[n+2]<<4)&65535},t.saved=0,t.F._writeBlock=function(r,n,i,o,s,a,c,l,u){var h=t.F.U,f=t.F._putsF,d=t.F._putsE,p,m,v,b,_,g,S,A,E;h.lhst[256]++,p=t.F.getTrees(),m=p[0],v=p[1],b=p[2],_=p[3],g=p[4],S=p[5],A=p[6],E=p[7];var N=(u+3&7?8-(u+3&7):0)+32+(c<<3),D=o+t.F.contSize(h.fltree,h.lhst)+t.F.contSize(h.fdtree,h.dhst),U=o+t.F.contSize(h.ltree,h.lhst)+t.F.contSize(h.dtree,h.dhst);U+=14+3*S+t.F.contSize(h.itree,h.ihst)+(h.ihst[16]*2+h.ihst[17]*3+h.ihst[18]*7);for(var G=0;G<286;G++)h.lhst[G]=0;for(var G=0;G<30;G++)h.dhst[G]=0;for(var G=0;G<19;G++)h.ihst[G]=0;var K=N<D&&N<U?0:D<U?1:2;if(f(l,u,r),f(l,u+1,K),u+=3,K==0){for(;u&7;)u++;u=t.F._copyExact(s,a,c,l,u)}else{var W,ot;if(K==1&&(W=h.fltree,ot=h.fdtree),K==2){t.F.makeCodes(h.ltree,m),t.F.revCodes(h.ltree,m),t.F.makeCodes(h.dtree,v),t.F.revCodes(h.dtree,v),t.F.makeCodes(h.itree,b),t.F.revCodes(h.itree,b),W=h.ltree,ot=h.dtree,d(l,u,_-257),u+=5,d(l,u,g-1),u+=5,d(l,u,S-4),u+=4;for(var nt=0;nt<S;nt++)d(l,u+nt*3,h.itree[(h.ordr[nt]<<1)+1]);u+=3*S,u=t.F._codeTiny(A,h.itree,l,u),u=t.F._codeTiny(E,h.itree,l,u)}for(var ft=a,$t=0;$t<i;$t+=2){for(var _t=n[$t],vt=_t>>>23,at=ft+(_t&(1<<23)-1);ft<at;)u=t.F._writeLit(s[ft++],W,l,u);if(vt!=0){var Y=n[$t+1],T=Y>>16,C=Y>>8&255,$=Y&255;u=t.F._writeLit(257+C,W,l,u),d(l,u,vt-h.of0[C]),u+=h.exb[C],u=t.F._writeLit($,ot,l,u),f(l,u,T-h.df0[$]),u+=h.dxb[$],ft+=vt}}u=t.F._writeLit(256,W,l,u)}return u},t.F._copyExact=function(r,n,i,o,s){var a=s>>>3;return o[a]=i,o[a+1]=i>>>8,o[a+2]=255-o[a],o[a+3]=255-o[a+1],a+=4,o.set(new Uint8Array(r.buffer,n,i),a),s+(i+4<<3)},t.F.getTrees=function(){for(var r=t.F.U,n=t.F._hufTree(r.lhst,r.ltree,15),i=t.F._hufTree(r.dhst,r.dtree,15),o=[],s=t.F._lenCodes(r.ltree,o),a=[],c=t.F._lenCodes(r.dtree,a),l=0;l<o.length;l+=2)r.ihst[o[l]]++;for(var l=0;l<a.length;l+=2)r.ihst[a[l]]++;for(var u=t.F._hufTree(r.ihst,r.itree,7),h=19;h>4&&r.itree[(r.ordr[h-1]<<1)+1]==0;)h--;return[n,i,u,s,c,h,o,a]},t.F.getSecond=function(r){for(var n=[],i=0;i<r.length;i+=2)n.push(r[i+1]);return n},t.F.nonZero=function(r){for(var n="",i=0;i<r.length;i+=2)r[i+1]!=0&&(n+=(i>>1)+",");return n},t.F.contSize=function(r,n){for(var i=0,o=0;o<n.length;o++)i+=n[o]*r[(o<<1)+1];return i},t.F._codeTiny=function(r,n,i,o){for(var s=0;s<r.length;s+=2){var a=r[s],c=r[s+1];o=t.F._writeLit(a,n,i,o);var l=a==16?2:a==17?3:7;a>15&&(t.F._putsE(i,o,c,l),o+=l)}return o},t.F._lenCodes=function(r,n){for(var i=r.length;i!=2&&r[i-1]==0;)i-=2;for(var o=0;o<i;o+=2){var s=r[o+1],a=o+3<i?r[o+3]:-1,c=o+5<i?r[o+5]:-1,l=o==0?-1:r[o-1];if(s==0&&a==s&&c==s){for(var u=o+5;u+2<i&&r[u+2]==s;)u+=2;var h=Math.min(u+1-o>>>1,138);h<11?n.push(17,h-3):n.push(18,h-11),o+=h*2-2}else if(s==l&&a==s&&c==s){for(var u=o+5;u+2<i&&r[u+2]==s;)u+=2;var h=Math.min(u+1-o>>>1,6);n.push(16,h-3),o+=h*2-2}else n.push(s,0)}return i>>>1},t.F._hufTree=function(r,n,i){var o=[],s=r.length,a=n.length,c=0;for(c=0;c<a;c+=2)n[c]=0,n[c+1]=0;for(c=0;c<s;c++)r[c]!=0&&o.push({lit:c,f:r[c]});var l=o.length,u=o.slice(0);if(l==0)return 0;if(l==1){var h=o[0].lit,u=h==0?1:0;return n[(h<<1)+1]=1,n[(u<<1)+1]=1,1}o.sort(function(_,g){return _.f-g.f});var f=o[0],d=o[1],p=0,m=1,v=2;for(o[0]={lit:-1,f:f.f+d.f,l:f,r:d,d:0};m!=l-1;)p!=m&&(v==l||o[p].f<o[v].f)?f=o[p++]:f=o[v++],p!=m&&(v==l||o[p].f<o[v].f)?d=o[p++]:d=o[v++],o[m++]={lit:-1,f:f.f+d.f,l:f,r:d};var b=t.F.setDepth(o[m-1],0);for(b>i&&(t.F.restrictDepth(u,i,b),b=i),c=0;c<l;c++)n[(u[c].lit<<1)+1]=u[c].d;return b},t.F.setDepth=function(r,n){return r.lit!=-1?(r.d=n,n):Math.max(t.F.setDepth(r.l,n+1),t.F.setDepth(r.r,n+1))},t.F.restrictDepth=function(r,n,i){var o=0,s=1<<i-n,a=0;for(r.sort(function(l,u){return u.d==l.d?l.f-u.f:u.d-l.d}),o=0;o<r.length&&r[o].d>n;o++){var c=r[o].d;r[o].d=n,a+=s-(1<<i-c)}for(a=a>>>i-n;a>0;){var c=r[o].d;c<n?(r[o].d++,a-=1<<n-c-1):o++}for(;o>=0;o--)r[o].d==n&&a<0&&(r[o].d--,a++);a!=0&&console.log("debt left")},t.F._goodIndex=function(r,n){var i=0;return n[i|16]<=r&&(i|=16),n[i|8]<=r&&(i|=8),n[i|4]<=r&&(i|=4),n[i|2]<=r&&(i|=2),n[i|1]<=r&&(i|=1),i},t.F._writeLit=function(r,n,i,o){return t.F._putsF(i,o,n[r<<1]),o+n[(r<<1)+1]},t.F.inflate=function(r,n){var i=Uint8Array;if(r[0]==3&&r[1]==0)return n||new i(0);var o=t.F,s=o._bitsF,a=o._bitsE,c=o._decodeTiny,l=o.makeCodes,u=o.codes2map,h=o._get17,f=o.U,d=n==null;d&&(n=new i(r.length>>>2<<3));for(var p=0,m=0,v=0,b=0,_=0,g=0,S=0,A=0,E=0,N,D;p==0;){if(p=s(r,E,1),m=s(r,E+1,2),E+=3,m==0){E&7&&(E+=8-(E&7));var U=(E>>>3)+4,G=r[U-4]|r[U-3]<<8;d&&(n=t.F._check(n,A+G)),n.set(new i(r.buffer,r.byteOffset+U,G),A),E=U+G<<3,A+=G;continue}if(d&&(n=t.F._check(n,A+(1<<17))),m==1&&(N=f.flmap,D=f.fdmap,g=512-1,S=32-1),m==2){v=a(r,E,5)+257,b=a(r,E+5,5)+1,_=a(r,E+10,4)+4,E+=14;for(var K=0;K<38;K+=2)f.itree[K]=0,f.itree[K+1]=0;for(var W=1,K=0;K<_;K++){var ot=a(r,E+K*3,3);f.itree[(f.ordr[K]<<1)+1]=ot,ot>W&&(W=ot)}E+=3*_,l(f.itree,W),u(f.itree,W,f.imap),N=f.lmap,D=f.dmap,E=c(f.imap,(1<<W)-1,v+b,r,E,f.ttree);var nt=o._copyOut(f.ttree,0,v,f.ltree);g=(1<<nt)-1;var ft=o._copyOut(f.ttree,v,b,f.dtree);S=(1<<ft)-1,l(f.ltree,nt),u(f.ltree,nt,N),l(f.dtree,ft),u(f.dtree,ft,D)}for(;;){var $t=N[h(r,E)&g];E+=$t&15;var _t=$t>>>4;if(!(_t>>>8))n[A++]=_t;else{if(_t==256)break;var vt=A+_t-254;if(_t>264){var at=f.ldef[_t-257];vt=A+(at>>>3)+a(r,E,at&7),E+=at&7}var Y=D[h(r,E)&S];E+=Y&15;var T=Y>>>4,C=f.ddef[T],$=(C>>>4)+s(r,E,C&15);for(E+=C&15,d&&(n=t.F._check(n,A+(1<<17)));A<vt;)n[A]=n[A++-$],n[A]=n[A++-$],n[A]=n[A++-$],n[A]=n[A++-$];A=vt}}}return n.length==A?n:n.slice(0,A)},t.F._check=function(r,n){var i=r.length;if(n<=i)return r;var o=new Uint8Array(Math.max(i<<1,n));return o.set(r,0),o},t.F._decodeTiny=function(r,n,i,o,s,a){for(var c=t.F._bitsE,l=t.F._get17,u=0;u<i;){var h=r[l(o,s)&n];s+=h&15;var f=h>>>4;if(f<=15)a[u]=f,u++;else{var d=0,p=0;f==16?(p=3+c(o,s,2),s+=2,d=a[u-1]):f==17?(p=3+c(o,s,3),s+=3):f==18&&(p=11+c(o,s,7),s+=7);for(var m=u+p;u<m;)a[u]=d,u++}}return s},t.F._copyOut=function(r,n,i,o){for(var s=0,a=0,c=o.length>>>1;a<i;){var l=r[a+n];o[a<<1]=0,o[(a<<1)+1]=l,l>s&&(s=l),a++}for(;a<c;)o[a<<1]=0,o[(a<<1)+1]=0,a++;return s},t.F.makeCodes=function(r,n){for(var i=t.F.U,o=r.length,s,a,c,h,l,u=i.bl_count,h=0;h<=n;h++)u[h]=0;for(h=1;h<o;h+=2)u[r[h]]++;var f=i.next_code;for(s=0,u[0]=0,a=1;a<=n;a++)s=s+u[a-1]<<1,f[a]=s;for(c=0;c<o;c+=2)l=r[c+1],l!=0&&(r[c]=f[l],f[l]++)},t.F.codes2map=function(r,n,i){for(var o=r.length,s=t.F.U,a=s.rev15,c=0;c<o;c+=2)if(r[c+1]!=0)for(var l=c>>1,u=r[c+1],h=l<<4|u,f=n-u,d=r[c]<<f,p=d+(1<<f);d!=p;){var m=a[d]>>>15-n;i[m]=h,d++}},t.F.revCodes=function(r,n){for(var i=t.F.U.rev15,o=15-n,s=0;s<r.length;s+=2){var a=r[s]<<n-r[s+1];r[s]=i[a]>>>o}},t.F._putsE=function(r,n,i){i=i<<(n&7);var o=n>>>3;r[o]|=i,r[o+1]|=i>>>8},t.F._putsF=function(r,n,i){i=i<<(n&7);var o=n>>>3;r[o]|=i,r[o+1]|=i>>>8,r[o+2]|=i>>>16},t.F._bitsE=function(r,n,i){return(r[n>>>3]|r[(n>>>3)+1]<<8)>>>(n&7)&(1<<i)-1},t.F._bitsF=function(r,n,i){return(r[n>>>3]|r[(n>>>3)+1]<<8|r[(n>>>3)+2]<<16)>>>(n&7)&(1<<i)-1},t.F._get17=function(r,n){return(r[n>>>3]|r[(n>>>3)+1]<<8|r[(n>>>3)+2]<<16)>>>(n&7)},t.F._get25=function(r,n){return(r[n>>>3]|r[(n>>>3)+1]<<8|r[(n>>>3)+2]<<16|r[(n>>>3)+3]<<24)>>>(n&7)},t.F.U=function(){var r=Uint16Array,n=Uint32Array;return{next_code:new r(16),bl_count:new r(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new r(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new n(32),flmap:new r(512),fltree:[],fdmap:new r(32),fdtree:[],lmap:new r(32768),ltree:[],ttree:[],dmap:new r(32768),dtree:[],imap:new r(512),itree:[],rev15:new r(32768),lhst:new n(286),dhst:new n(30),ihst:new n(19),lits:new n(15e3),strt:new r(65536),prev:new r(32768)}}(),function(){for(var r=t.F.U,n=32768,i=0;i<n;i++){var o=i;o=(o&2863311530)>>>1|(o&1431655765)<<1,o=(o&3435973836)>>>2|(o&858993459)<<2,o=(o&4042322160)>>>4|(o&252645135)<<4,o=(o&4278255360)>>>8|(o&16711935)<<8,r.rev15[i]=(o>>>16|o<<16)>>>17}function s(a,c,l){for(;c--!=0;)a.push(0,l)}for(var i=0;i<32;i++)r.ldef[i]=r.of0[i]<<3|r.exb[i],r.ddef[i]=r.df0[i]<<4|r.dxb[i];s(r.fltree,144,8),s(r.fltree,255-143,9),s(r.fltree,279-255,7),s(r.fltree,287-279,8),t.F.makeCodes(r.fltree,9),t.F.codes2map(r.fltree,9,r.flmap),t.F.revCodes(r.fltree,9),s(r.fdtree,32,5),t.F.makeCodes(r.fdtree,5),t.F.codes2map(r.fdtree,5,r.fdmap),t.F.revCodes(r.fdtree,5),s(r.itree,19,0),s(r.ltree,286,0),s(r.dtree,30,0),s(r.ttree,320,0)}()})(mS);var jB=mS.exports;const gS=vn(jB);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const FB=4,yS=0,vS=1,MB=2;function pa(e){let t=e.length;for(;--t>=0;)e[t]=0}const LB=0,_S=1,UB=2,VB=3,zB=258,Xg=29,Wl=256,Ql=Wl+1+Xg,ma=30,Jg=19,bS=2*Ql+1,ws=15,Wg=16,GB=7,Qg=256,wS=16,xS=17,$S=18,Zg=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),md=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),BB=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),SS=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),HB=512,Wi=new Array((Ql+2)*2);pa(Wi);const Zl=new Array(ma*2);pa(Zl);const tc=new Array(HB);pa(tc);const ec=new Array(zB-VB+1);pa(ec);const ty=new Array(Xg);pa(ty);const gd=new Array(ma);pa(gd);function ey(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}let ES,CS,kS;function ry(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const PS=e=>e<256?tc[e]:tc[256+(e>>>7)],rc=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},cn=(e,t,r)=>{e.bi_valid>Wg-r?(e.bi_buf|=t<<e.bi_valid&65535,rc(e,e.bi_buf),e.bi_buf=t>>Wg-e.bi_valid,e.bi_valid+=r-Wg):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},yi=(e,t,r)=>{cn(e,r[t*2],r[t*2+1])},TS=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},qB=e=>{e.bi_valid===16?(rc(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},KB=(e,t)=>{const r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,c=t.stat_desc.max_length;let l,u,h,f,d,p,m=0;for(f=0;f<=ws;f++)e.bl_count[f]=0;for(r[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<bS;l++)u=e.heap[l],f=r[r[u*2+1]*2+1]+1,f>c&&(f=c,m++),r[u*2+1]=f,!(u>n)&&(e.bl_count[f]++,d=0,u>=a&&(d=s[u-a]),p=r[u*2],e.opt_len+=p*(f+d),o&&(e.static_len+=p*(i[u*2+1]+d)));if(m!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,m-=2}while(m>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)h=e.heap[--l],!(h>n)&&(r[h*2+1]!==f&&(e.opt_len+=(f-r[h*2+1])*r[h*2],r[h*2+1]=f),u--)}},OS=(e,t,r)=>{const n=new Array(ws+1);let i=0,o,s;for(o=1;o<=ws;o++)i=i+r[o-1]<<1,n[o]=i;for(s=0;s<=t;s++){let a=e[s*2+1];a!==0&&(e[s*2]=TS(n[a]++,a))}},YB=()=>{let e,t,r,n,i;const o=new Array(ws+1);for(r=0,n=0;n<Xg-1;n++)for(ty[n]=r,e=0;e<1<<Zg[n];e++)ec[r++]=n;for(ec[r-1]=n,i=0,n=0;n<16;n++)for(gd[n]=i,e=0;e<1<<md[n];e++)tc[i++]=n;for(i>>=7;n<ma;n++)for(gd[n]=i<<7,e=0;e<1<<md[n]-7;e++)tc[256+i++]=n;for(t=0;t<=ws;t++)o[t]=0;for(e=0;e<=143;)Wi[e*2+1]=8,e++,o[8]++;for(;e<=255;)Wi[e*2+1]=9,e++,o[9]++;for(;e<=279;)Wi[e*2+1]=7,e++,o[7]++;for(;e<=287;)Wi[e*2+1]=8,e++,o[8]++;for(OS(Wi,Ql+1,o),e=0;e<ma;e++)Zl[e*2+1]=5,Zl[e*2]=TS(e,5);ES=new ey(Wi,Zg,Wl+1,Ql,ws),CS=new ey(Zl,md,0,ma,ws),kS=new ey(new Array(0),BB,0,Jg,GB)},NS=e=>{let t;for(t=0;t<Ql;t++)e.dyn_ltree[t*2]=0;for(t=0;t<ma;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Jg;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Qg*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},AS=e=>{e.bi_valid>8?rc(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},DS=(e,t,r,n)=>{const i=t*2,o=r*2;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]},ny=(e,t,r)=>{const n=e.heap[r];let i=r<<1;for(;i<=e.heap_len&&(i<e.heap_len&&DS(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!DS(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n},RS=(e,t,r)=>{let n,i,o=0,s,a;if(e.sym_next!==0)do n=e.pending_buf[e.sym_buf+o++]&255,n+=(e.pending_buf[e.sym_buf+o++]&255)<<8,i=e.pending_buf[e.sym_buf+o++],n===0?yi(e,i,t):(s=ec[i],yi(e,s+Wl+1,t),a=Zg[s],a!==0&&(i-=ty[s],cn(e,i,a)),n--,s=PS(n),yi(e,s,r),a=md[s],a!==0&&(n-=gd[s],cn(e,n,a)));while(o<e.sym_next);yi(e,Qg,t)},iy=(e,t)=>{const r=t.dyn_tree,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems;let s,a,c=-1,l;for(e.heap_len=0,e.heap_max=bS,s=0;s<o;s++)r[s*2]!==0?(e.heap[++e.heap_len]=c=s,e.depth[s]=0):r[s*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,r[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=n[l*2+1]);for(t.max_code=c,s=e.heap_len>>1;s>=1;s--)ny(e,r,s);l=o;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ny(e,r,1),a=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=a,r[l*2]=r[s*2]+r[a*2],e.depth[l]=(e.depth[s]>=e.depth[a]?e.depth[s]:e.depth[a])+1,r[s*2+1]=r[a*2+1]=l,e.heap[1]=l++,ny(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],KB(e,t),OS(r,c,e.bl_count)},IS=(e,t,r)=>{let n,i=-1,o,s=t[0*2+1],a=0,c=7,l=4;for(s===0&&(c=138,l=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)o=s,s=t[(n+1)*2+1],!(++a<c&&o===s)&&(a<l?e.bl_tree[o*2]+=a:o!==0?(o!==i&&e.bl_tree[o*2]++,e.bl_tree[wS*2]++):a<=10?e.bl_tree[xS*2]++:e.bl_tree[$S*2]++,a=0,i=o,s===0?(c=138,l=3):o===s?(c=6,l=3):(c=7,l=4))},jS=(e,t,r)=>{let n,i=-1,o,s=t[0*2+1],a=0,c=7,l=4;for(s===0&&(c=138,l=3),n=0;n<=r;n++)if(o=s,s=t[(n+1)*2+1],!(++a<c&&o===s)){if(a<l)do yi(e,o,e.bl_tree);while(--a!==0);else o!==0?(o!==i&&(yi(e,o,e.bl_tree),a--),yi(e,wS,e.bl_tree),cn(e,a-3,2)):a<=10?(yi(e,xS,e.bl_tree),cn(e,a-3,3)):(yi(e,$S,e.bl_tree),cn(e,a-11,7));a=0,i=o,s===0?(c=138,l=3):o===s?(c=6,l=3):(c=7,l=4)}},XB=e=>{let t;for(IS(e,e.dyn_ltree,e.l_desc.max_code),IS(e,e.dyn_dtree,e.d_desc.max_code),iy(e,e.bl_desc),t=Jg-1;t>=3&&e.bl_tree[SS[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},JB=(e,t,r,n)=>{let i;for(cn(e,t-257,5),cn(e,r-1,5),cn(e,n-4,4),i=0;i<n;i++)cn(e,e.bl_tree[SS[i]*2+1],3);jS(e,e.dyn_ltree,t-1),jS(e,e.dyn_dtree,r-1)},WB=e=>{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return yS;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return vS;for(r=32;r<Wl;r++)if(e.dyn_ltree[r*2]!==0)return vS;return yS};let FS=!1;const QB=e=>{FS||(YB(),FS=!0),e.l_desc=new ry(e.dyn_ltree,ES),e.d_desc=new ry(e.dyn_dtree,CS),e.bl_desc=new ry(e.bl_tree,kS),e.bi_buf=0,e.bi_valid=0,NS(e)},MS=(e,t,r,n)=>{cn(e,(LB<<1)+(n?1:0),3),AS(e),rc(e,r),rc(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},ZB=e=>{cn(e,_S<<1,3),yi(e,Qg,Wi),qB(e)},tH=(e,t,r,n)=>{let i,o,s=0;e.level>0?(e.strm.data_type===MB&&(e.strm.data_type=WB(e)),iy(e,e.l_desc),iy(e,e.d_desc),s=XB(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&t!==-1?MS(e,t,r,n):e.strategy===FB||o===i?(cn(e,(_S<<1)+(n?1:0),3),RS(e,Wi,Zl)):(cn(e,(UB<<1)+(n?1:0),3),JB(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),RS(e,e.dyn_ltree,e.dyn_dtree)),NS(e),n&&AS(e)},eH=(e,t,r)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=r,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(ec[r]+Wl+1)*2]++,e.dyn_dtree[PS(t)*2]++),e.sym_next===e.sym_end);var rH=QB,nH=MS,iH=tH,oH=eH,sH=ZB,aH={_tr_init:rH,_tr_stored_block:nH,_tr_flush_block:iH,_tr_tally:oH,_tr_align:sH},nc=(e,t,r,n)=>{let i=e&65535|0,o=e>>>16&65535|0,s=0;for(;r!==0;){s=r>2e3?2e3:r,r-=s;do i=i+t[n++]|0,o=o+i|0;while(--s);i%=65521,o%=65521}return i|o<<16|0};const lH=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},cH=new Uint32Array(lH());var Nr=(e,t,r,n)=>{const i=cH,o=n+r;e^=-1;for(let s=n;s<o;s++)e=e>>>8^i[(e^t[s])&255];return e^-1},xs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},$s={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:uH,_tr_stored_block:oy,_tr_flush_block:hH,_tr_tally:To,_tr_align:dH}=aH,{Z_NO_FLUSH:Oo,Z_PARTIAL_FLUSH:fH,Z_FULL_FLUSH:pH,Z_FINISH:On,Z_BLOCK:LS,Z_OK:Mr,Z_STREAM_END:US,Z_STREAM_ERROR:vi,Z_DATA_ERROR:mH,Z_BUF_ERROR:sy,Z_DEFAULT_COMPRESSION:gH,Z_FILTERED:yH,Z_HUFFMAN_ONLY:yd,Z_RLE:vH,Z_FIXED:_H,Z_DEFAULT_STRATEGY:bH,Z_UNKNOWN:wH,Z_DEFLATED:vd}=$s,xH=9,$H=15,SH=8,EH=29,CH=256,ay=CH+1+EH,kH=30,PH=19,TH=2*ay+1,OH=15,Oe=3,No=258,_i=No+Oe+1,NH=32,ga=42,ly=57,cy=69,uy=73,hy=91,dy=103,Ss=113,ic=666,tn=1,ya=2,Es=3,va=4,AH=3,Cs=(e,t)=>(e.msg=xs[t],t),VS=e=>e*2-(e>4?9:0),Ao=e=>{let t=e.length;for(;--t>=0;)e[t]=0},DH=e=>{let t,r,n,i=e.w_size;t=e.hash_size,n=t;do r=e.head[--n],e.head[n]=r>=i?r-i:0;while(--t);t=i,n=t;do r=e.prev[--n],e.prev[n]=r>=i?r-i:0;while(--t)};let RH=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask,Do=RH;const _n=e=>{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))},bn=(e,t)=>{hH(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,_n(e.strm)},Le=(e,t)=>{e.pending_buf[e.pending++]=t},oc=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},fy=(e,t,r,n)=>{let i=e.avail_in;return i>n&&(i=n),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),r),e.state.wrap===1?e.adler=nc(e.adler,t,i,r):e.state.wrap===2&&(e.adler=Nr(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)},zS=(e,t)=>{let r=e.max_chain_length,n=e.strstart,i,o,s=e.prev_length,a=e.nice_match;const c=e.strstart>e.w_size-_i?e.strstart-(e.w_size-_i):0,l=e.window,u=e.w_mask,h=e.prev,f=e.strstart+No;let d=l[n+s-1],p=l[n+s];e.prev_length>=e.good_match&&(r>>=2),a>e.lookahead&&(a=e.lookahead);do if(i=t,!(l[i+s]!==p||l[i+s-1]!==d||l[i]!==l[n]||l[++i]!==l[n+1])){n+=2,i++;do;while(l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&l[++n]===l[++i]&&n<f);if(o=No-(f-n),n=f-No,o>s){if(e.match_start=t,s=o,o>=a)break;d=l[n+s-1],p=l[n+s]}}while((t=h[t&u])>c&&--r!==0);return s<=e.lookahead?s:e.lookahead},_a=e=>{const t=e.w_size;let r,n,i;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-_i)&&(e.window.set(e.window.subarray(t,t+t-n),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),DH(e),n+=t),e.strm.avail_in===0)break;if(r=fy(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=r,e.lookahead+e.insert>=Oe)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Do(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Do(e,e.ins_h,e.window[i+Oe-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<Oe)););}while(e.lookahead<_i&&e.strm.avail_in!==0)},GS=(e,t)=>{let r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,i,o,s=0,a=e.strm.avail_in;do{if(n=65535,o=e.bi_valid+42>>3,e.strm.avail_out<o||(o=e.strm.avail_out-o,i=e.strstart-e.block_start,n>i+e.strm.avail_in&&(n=i+e.strm.avail_in),n>o&&(n=o),n<r&&(n===0&&t!==On||t===Oo||n!==i+e.strm.avail_in)))break;s=t===On&&n===i+e.strm.avail_in?1:0,oy(e,0,0,s),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,_n(e.strm),i&&(i>n&&(i=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,n-=i),n&&(fy(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(s===0);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),s?va:t!==Oo&&t!==On&&e.strm.avail_in===0&&e.strstart===e.block_start?ya:(o=e.window_size-e.strstart,e.strm.avail_in>o&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(fy(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water<e.strstart&&(e.high_water=e.strstart),o=e.bi_valid+42>>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,r=o>e.w_size?e.w_size:o,i=e.strstart-e.block_start,(i>=r||(i||t===On)&&t!==Oo&&e.strm.avail_in===0&&i<=o)&&(n=i>o?o:i,s=t===On&&e.strm.avail_in===0&&n===i?1:0,oy(e,e.block_start,n,s),e.block_start+=n,_n(e.strm)),s?Es:tn)},py=(e,t)=>{let r,n;for(;;){if(e.lookahead<_i){if(_a(e),e.lookahead<_i&&t===Oo)return tn;if(e.lookahead===0)break}if(r=0,e.lookahead>=Oe&&(e.ins_h=Do(e,e.ins_h,e.window[e.strstart+Oe-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-_i&&(e.match_length=zS(e,r)),e.match_length>=Oe)if(n=To(e,e.strstart-e.match_start,e.match_length-Oe),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Oe){e.match_length--;do e.strstart++,e.ins_h=Do(e,e.ins_h,e.window[e.strstart+Oe-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Do(e,e.ins_h,e.window[e.strstart+1]);else n=To(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(bn(e,!1),e.strm.avail_out===0))return tn}return e.insert=e.strstart<Oe-1?e.strstart:Oe-1,t===On?(bn(e,!0),e.strm.avail_out===0?Es:va):e.sym_next&&(bn(e,!1),e.strm.avail_out===0)?tn:ya},ba=(e,t)=>{let r,n,i;for(;;){if(e.lookahead<_i){if(_a(e),e.lookahead<_i&&t===Oo)return tn;if(e.lookahead===0)break}if(r=0,e.lookahead>=Oe&&(e.ins_h=Do(e,e.ins_h,e.window[e.strstart+Oe-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Oe-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-_i&&(e.match_length=zS(e,r),e.match_length<=5&&(e.strategy===yH||e.match_length===Oe&&e.strstart-e.match_start>4096)&&(e.match_length=Oe-1)),e.prev_length>=Oe&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Oe,n=To(e,e.strstart-1-e.prev_match,e.prev_length-Oe),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Do(e,e.ins_h,e.window[e.strstart+Oe-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Oe-1,e.strstart++,n&&(bn(e,!1),e.strm.avail_out===0))return tn}else if(e.match_available){if(n=To(e,0,e.window[e.strstart-1]),n&&bn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return tn}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=To(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Oe-1?e.strstart:Oe-1,t===On?(bn(e,!0),e.strm.avail_out===0?Es:va):e.sym_next&&(bn(e,!1),e.strm.avail_out===0)?tn:ya},IH=(e,t)=>{let r,n,i,o;const s=e.window;for(;;){if(e.lookahead<=No){if(_a(e),e.lookahead<=No&&t===Oo)return tn;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Oe&&e.strstart>0&&(i=e.strstart-1,n=s[i],n===s[++i]&&n===s[++i]&&n===s[++i])){o=e.strstart+No;do;while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<o);e.match_length=No-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Oe?(r=To(e,1,e.match_length-Oe),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=To(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(bn(e,!1),e.strm.avail_out===0))return tn}return e.insert=0,t===On?(bn(e,!0),e.strm.avail_out===0?Es:va):e.sym_next&&(bn(e,!1),e.strm.avail_out===0)?tn:ya},jH=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(_a(e),e.lookahead===0)){if(t===Oo)return tn;break}if(e.match_length=0,r=To(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(bn(e,!1),e.strm.avail_out===0))return tn}return e.insert=0,t===On?(bn(e,!0),e.strm.avail_out===0?Es:va):e.sym_next&&(bn(e,!1),e.strm.avail_out===0)?tn:ya};function bi(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}const sc=[new bi(0,0,0,0,GS),new bi(4,4,8,4,py),new bi(4,5,16,8,py),new bi(4,6,32,32,py),new bi(4,4,16,16,ba),new bi(8,16,32,32,ba),new bi(8,16,128,128,ba),new bi(8,32,128,256,ba),new bi(32,128,258,1024,ba),new bi(32,258,258,4096,ba)],FH=e=>{e.window_size=2*e.w_size,Ao(e.head),e.max_lazy_match=sc[e.level].max_lazy,e.good_match=sc[e.level].good_length,e.nice_match=sc[e.level].nice_length,e.max_chain_length=sc[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Oe-1,e.match_available=0,e.ins_h=0};function MH(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=vd,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(TH*2),this.dyn_dtree=new Uint16Array((2*kH+1)*2),this.bl_tree=new Uint16Array((2*PH+1)*2),Ao(this.dyn_ltree),Ao(this.dyn_dtree),Ao(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(OH+1),this.heap=new Uint16Array(2*ay+1),Ao(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*ay+1),Ao(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const ac=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==ga&&t.status!==ly&&t.status!==cy&&t.status!==uy&&t.status!==hy&&t.status!==dy&&t.status!==Ss&&t.status!==ic?1:0},BS=e=>{if(ac(e))return Cs(e,vi);e.total_in=e.total_out=0,e.data_type=wH;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?ly:t.wrap?ga:Ss,e.adler=t.wrap===2?0:1,t.last_flush=-2,uH(t),Mr},HS=e=>{const t=BS(e);return t===Mr&&FH(e.state),t},LH=(e,t)=>ac(e)||e.state.wrap!==2?vi:(e.state.gzhead=t,Mr),qS=(e,t,r,n,i,o)=>{if(!e)return vi;let s=1;if(t===gH&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),i<1||i>xH||r!==vd||n<8||n>15||t<0||t>9||o<0||o>_H||n===8&&s!==1)return Cs(e,vi);n===8&&(n=9);const a=new MH;return e.state=a,a.strm=e,a.status=ga,a.wrap=s,a.gzhead=null,a.w_bits=n,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+Oe-1)/Oe),a.window=new Uint8Array(a.w_size*2),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new Uint8Array(a.pending_buf_size),a.sym_buf=a.lit_bufsize,a.sym_end=(a.lit_bufsize-1)*3,a.level=t,a.strategy=o,a.method=r,HS(e)},UH=(e,t)=>qS(e,t,vd,$H,SH,bH),VH=(e,t)=>{if(ac(e)||t>LS||t<0)return e?Cs(e,vi):vi;const r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===ic&&t!==On)return Cs(e,e.avail_out===0?sy:vi);const n=r.last_flush;if(r.last_flush=t,r.pending!==0){if(_n(e),e.avail_out===0)return r.last_flush=-1,Mr}else if(e.avail_in===0&&VS(t)<=VS(n)&&t!==On)return Cs(e,sy);if(r.status===ic&&e.avail_in!==0)return Cs(e,sy);if(r.status===ga&&r.wrap===0&&(r.status=Ss),r.status===ga){let i=vd+(r.w_bits-8<<4)<<8,o=-1;if(r.strategy>=yd||r.level<2?o=0:r.level<6?o=1:r.level===6?o=2:o=3,i|=o<<6,r.strstart!==0&&(i|=NH),i+=31-i%31,oc(r,i),r.strstart!==0&&(oc(r,e.adler>>>16),oc(r,e.adler&65535)),e.adler=1,r.status=Ss,_n(e),r.pending!==0)return r.last_flush=-1,Mr}if(r.status===ly){if(e.adler=0,Le(r,31),Le(r,139),Le(r,8),r.gzhead)Le(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Le(r,r.gzhead.time&255),Le(r,r.gzhead.time>>8&255),Le(r,r.gzhead.time>>16&255),Le(r,r.gzhead.time>>24&255),Le(r,r.level===9?2:r.strategy>=yd||r.level<2?4:0),Le(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(Le(r,r.gzhead.extra.length&255),Le(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=Nr(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=cy;else if(Le(r,0),Le(r,0),Le(r,0),Le(r,0),Le(r,0),Le(r,r.level===9?2:r.strategy>=yd||r.level<2?4:0),Le(r,AH),r.status=Ss,_n(e),r.pending!==0)return r.last_flush=-1,Mr}if(r.status===cy){if(r.gzhead.extra){let i=r.pending,o=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+o>r.pending_buf_size;){let a=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+a),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>i&&(e.adler=Nr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex+=a,_n(e),r.pending!==0)return r.last_flush=-1,Mr;i=0,o-=a}let s=new Uint8Array(r.gzhead.extra);r.pending_buf.set(s.subarray(r.gzindex,r.gzindex+o),r.pending),r.pending+=o,r.gzhead.hcrc&&r.pending>i&&(e.adler=Nr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=uy}if(r.status===uy){if(r.gzhead.name){let i=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i&&(e.adler=Nr(e.adler,r.pending_buf,r.pending-i,i)),_n(e),r.pending!==0)return r.last_flush=-1,Mr;i=0}r.gzindex<r.gzhead.name.length?o=r.gzhead.name.charCodeAt(r.gzindex++)&255:o=0,Le(r,o)}while(o!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=Nr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=hy}if(r.status===hy){if(r.gzhead.comment){let i=r.pending,o;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i&&(e.adler=Nr(e.adler,r.pending_buf,r.pending-i,i)),_n(e),r.pending!==0)return r.last_flush=-1,Mr;i=0}r.gzindex<r.gzhead.comment.length?o=r.gzhead.comment.charCodeAt(r.gzindex++)&255:o=0,Le(r,o)}while(o!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=Nr(e.adler,r.pending_buf,r.pending-i,i))}r.status=dy}if(r.status===dy){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(_n(e),r.pending!==0))return r.last_flush=-1,Mr;Le(r,e.adler&255),Le(r,e.adler>>8&255),e.adler=0}if(r.status=Ss,_n(e),r.pending!==0)return r.last_flush=-1,Mr}if(e.avail_in!==0||r.lookahead!==0||t!==Oo&&r.status!==ic){let i=r.level===0?GS(r,t):r.strategy===yd?jH(r,t):r.strategy===vH?IH(r,t):sc[r.level].func(r,t);if((i===Es||i===va)&&(r.status=ic),i===tn||i===Es)return e.avail_out===0&&(r.last_flush=-1),Mr;if(i===ya&&(t===fH?dH(r):t!==LS&&(oy(r,0,0,!1),t===pH&&(Ao(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),_n(e),e.avail_out===0))return r.last_flush=-1,Mr}return t!==On?Mr:r.wrap<=0?US:(r.wrap===2?(Le(r,e.adler&255),Le(r,e.adler>>8&255),Le(r,e.adler>>16&255),Le(r,e.adler>>24&255),Le(r,e.total_in&255),Le(r,e.total_in>>8&255),Le(r,e.total_in>>16&255),Le(r,e.total_in>>24&255)):(oc(r,e.adler>>>16),oc(r,e.adler&65535)),_n(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?Mr:US)},zH=e=>{if(ac(e))return vi;const t=e.state.status;return e.state=null,t===Ss?Cs(e,mH):Mr},GH=(e,t)=>{let r=t.length;if(ac(e))return vi;const n=e.state,i=n.wrap;if(i===2||i===1&&n.status!==ga||n.lookahead)return vi;if(i===1&&(e.adler=nc(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){i===0&&(Ao(n.head),n.strstart=0,n.block_start=0,n.insert=0);let c=new Uint8Array(n.w_size);c.set(t.subarray(r-n.w_size,r),0),t=c,r=n.w_size}const o=e.avail_in,s=e.next_in,a=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,_a(n);n.lookahead>=Oe;){let c=n.strstart,l=n.lookahead-(Oe-1);do n.ins_h=Do(n,n.ins_h,n.window[c+Oe-1]),n.prev[c&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=c,c++;while(--l);n.strstart=c,n.lookahead=Oe-1,_a(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=Oe-1,n.match_available=0,e.next_in=s,e.input=a,e.avail_in=o,n.wrap=i,Mr};var BH=UH,HH=qS,qH=HS,KH=BS,YH=LH,XH=VH,JH=zH,WH=GH,QH="pako deflate (from Nodeca project)",lc={deflateInit:BH,deflateInit2:HH,deflateReset:qH,deflateResetKeep:KH,deflateSetHeader:YH,deflate:XH,deflateEnd:JH,deflateSetDictionary:WH,deflateInfo:QH};const ZH=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var tq=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)ZH(r,n)&&(e[n]=r[n])}}return e},eq=e=>{let t=0;for(let n=0,i=e.length;n<i;n++)t+=e[n].length;const r=new Uint8Array(t);for(let n=0,i=0,o=e.length;n<o;n++){let s=e[n];r.set(s,i),i+=s.length}return r},_d={assign:tq,flattenChunks:eq};let KS=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{KS=!1}const cc=new Uint8Array(256);for(let e=0;e<256;e++)cc[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;cc[254]=cc[254]=1;var rq=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,n,i,o,s=e.length,a=0;for(i=0;i<s;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<s&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),a+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(a),o=0,i=0;o<a;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<s&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|r&63):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|r&63):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|r&63);return t};const nq=(e,t)=>{if(t<65534&&e.subarray&&KS)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r};var iq=(e,t)=>{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,i;const o=new Array(r*2);for(i=0,n=0;n<r;){let s=e[n++];if(s<128){o[i++]=s;continue}let a=cc[s];if(a>4){o[i++]=65533,n+=a-1;continue}for(s&=a===2?31:a===3?15:7;a>1&&n<r;)s=s<<6|e[n++]&63,a--;if(a>1){o[i++]=65533;continue}s<65536?o[i++]=s:(s-=65536,o[i++]=55296|s>>10&1023,o[i++]=56320|s&1023)}return nq(o,i)},oq=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+cc[e[r]]>t?r:t},uc={string2buf:rq,buf2string:iq,utf8border:oq};function sq(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var YS=sq;const XS=Object.prototype.toString,{Z_NO_FLUSH:aq,Z_SYNC_FLUSH:lq,Z_FULL_FLUSH:cq,Z_FINISH:uq,Z_OK:bd,Z_STREAM_END:hq,Z_DEFAULT_COMPRESSION:dq,Z_DEFAULT_STRATEGY:fq,Z_DEFLATED:pq}=$s;function hc(e){this.options=_d.assign({level:dq,method:pq,chunkSize:16384,windowBits:15,memLevel:8,strategy:fq},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new YS,this.strm.avail_out=0;let r=lc.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==bd)throw new Error(xs[r]);if(t.header&&lc.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=uc.string2buf(t.dictionary):XS.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,r=lc.deflateSetDictionary(this.strm,n),r!==bd)throw new Error(xs[r]);this._dict_set=!0}}hc.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize;let i,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?uq:aq,typeof e=="string"?r.input=uc.string2buf(e):XS.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(o===lq||o===cq)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(i=lc.deflate(r,o),i===hq)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=lc.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===bd;if(r.avail_out===0){this.onData(r.output);continue}if(o>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0},hc.prototype.onData=function(e){this.chunks.push(e)},hc.prototype.onEnd=function(e){e===bd&&(this.result=_d.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function my(e,t){const r=new hc(t);if(r.push(e,!0),r.err)throw r.msg||xs[r.err];return r.result}function mq(e,t){return t=t||{},t.raw=!0,my(e,t)}function gq(e,t){return t=t||{},t.gzip=!0,my(e,t)}var yq=hc,vq=my,_q=mq,bq=gq,wq=$s,xq={Deflate:yq,deflate:vq,deflateRaw:_q,gzip:bq,constants:wq};const wd=16209,$q=16191;var Sq=function(e,t){let r,n,i,o,s,a,c,l,u,h,f,d,p,m,v,b,_,g,S,A,E,N,D,U;const G=e.state;r=e.next_in,D=e.input,n=r+(e.avail_in-5),i=e.next_out,U=e.output,o=i-(t-e.avail_out),s=i+(e.avail_out-257),a=G.dmax,c=G.wsize,l=G.whave,u=G.wnext,h=G.window,f=G.hold,d=G.bits,p=G.lencode,m=G.distcode,v=(1<<G.lenbits)-1,b=(1<<G.distbits)-1;t:do{d<15&&(f+=D[r++]<<d,d+=8,f+=D[r++]<<d,d+=8),_=p[f&v];e:for(;;){if(g=_>>>24,f>>>=g,d-=g,g=_>>>16&255,g===0)U[i++]=_&65535;else if(g&16){S=_&65535,g&=15,g&&(d<g&&(f+=D[r++]<<d,d+=8),S+=f&(1<<g)-1,f>>>=g,d-=g),d<15&&(f+=D[r++]<<d,d+=8,f+=D[r++]<<d,d+=8),_=m[f&b];r:for(;;){if(g=_>>>24,f>>>=g,d-=g,g=_>>>16&255,g&16){if(A=_&65535,g&=15,d<g&&(f+=D[r++]<<d,d+=8,d<g&&(f+=D[r++]<<d,d+=8)),A+=f&(1<<g)-1,A>a){e.msg="invalid distance too far back",G.mode=wd;break t}if(f>>>=g,d-=g,g=i-o,A>g){if(g=A-g,g>l&&G.sane){e.msg="invalid distance too far back",G.mode=wd;break t}if(E=0,N=h,u===0){if(E+=c-g,g<S){S-=g;do U[i++]=h[E++];while(--g);E=i-A,N=U}}else if(u<g){if(E+=c+u-g,g-=u,g<S){S-=g;do U[i++]=h[E++];while(--g);if(E=0,u<S){g=u,S-=g;do U[i++]=h[E++];while(--g);E=i-A,N=U}}}else if(E+=u-g,g<S){S-=g;do U[i++]=h[E++];while(--g);E=i-A,N=U}for(;S>2;)U[i++]=N[E++],U[i++]=N[E++],U[i++]=N[E++],S-=3;S&&(U[i++]=N[E++],S>1&&(U[i++]=N[E++]))}else{E=i-A;do U[i++]=U[E++],U[i++]=U[E++],U[i++]=U[E++],S-=3;while(S>2);S&&(U[i++]=U[E++],S>1&&(U[i++]=U[E++]))}}else if(g&64){e.msg="invalid distance code",G.mode=wd;break t}else{_=m[(_&65535)+(f&(1<<g)-1)];continue r}break}}else if(g&64)if(g&32){G.mode=$q;break t}else{e.msg="invalid literal/length code",G.mode=wd;break t}else{_=p[(_&65535)+(f&(1<<g)-1)];continue e}break}}while(r<n&&i<s);S=d>>3,r-=S,d-=S<<3,f&=(1<<d)-1,e.next_in=r,e.next_out=i,e.avail_in=r<n?5+(n-r):5-(r-n),e.avail_out=i<s?257+(s-i):257-(i-s),G.hold=f,G.bits=d};const wa=15,JS=852,WS=592,QS=0,gy=1,ZS=2,Eq=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Cq=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),kq=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Pq=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var dc=(e,t,r,n,i,o,s,a)=>{const c=a.bits;let l=0,u=0,h=0,f=0,d=0,p=0,m=0,v=0,b=0,_=0,g,S,A,E,N,D=null,U;const G=new Uint16Array(wa+1),K=new Uint16Array(wa+1);let W=null,ot,nt,ft;for(l=0;l<=wa;l++)G[l]=0;for(u=0;u<n;u++)G[t[r+u]]++;for(d=c,f=wa;f>=1&&G[f]===0;f--);if(d>f&&(d=f),f===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,a.bits=1,0;for(h=1;h<f&&G[h]===0;h++);for(d<h&&(d=h),v=1,l=1;l<=wa;l++)if(v<<=1,v-=G[l],v<0)return-1;if(v>0&&(e===QS||f!==1))return-1;for(K[1]=0,l=1;l<wa;l++)K[l+1]=K[l]+G[l];for(u=0;u<n;u++)t[r+u]!==0&&(s[K[t[r+u]]++]=u);if(e===QS?(D=W=s,U=20):e===gy?(D=Eq,W=Cq,U=257):(D=kq,W=Pq,U=0),_=0,u=0,l=h,N=o,p=d,m=0,A=-1,b=1<<d,E=b-1,e===gy&&b>JS||e===ZS&&b>WS)return 1;for(;;){ot=l-m,s[u]+1<U?(nt=0,ft=s[u]):s[u]>=U?(nt=W[s[u]-U],ft=D[s[u]-U]):(nt=32+64,ft=0),g=1<<l-m,S=1<<p,h=S;do S-=g,i[N+(_>>m)+S]=ot<<24|nt<<16|ft|0;while(S!==0);for(g=1<<l-1;_&g;)g>>=1;if(g!==0?(_&=g-1,_+=g):_=0,u++,--G[l]===0){if(l===f)break;l=t[r+s[u]]}if(l>d&&(_&E)!==A){for(m===0&&(m=d),N+=h,p=l-m,v=1<<p;p+m<f&&(v-=G[p+m],!(v<=0));)p++,v<<=1;if(b+=1<<p,e===gy&&b>JS||e===ZS&&b>WS)return 1;A=_&E,i[A]=d<<24|p<<16|N-o|0}}return _!==0&&(i[N+_]=l-m<<24|64<<16|0),a.bits=d,0};const Tq=0,tE=1,eE=2,{Z_FINISH:rE,Z_BLOCK:Oq,Z_TREES:xd,Z_OK:ks,Z_STREAM_END:Nq,Z_NEED_DICT:Aq,Z_STREAM_ERROR:ti,Z_DATA_ERROR:nE,Z_MEM_ERROR:iE,Z_BUF_ERROR:Dq,Z_DEFLATED:oE}=$s,$d=16180,sE=16181,aE=16182,lE=16183,cE=16184,uE=16185,hE=16186,dE=16187,fE=16188,pE=16189,Sd=16190,Qi=16191,yy=16192,mE=16193,vy=16194,gE=16195,yE=16196,vE=16197,_E=16198,Ed=16199,Cd=16200,bE=16201,wE=16202,xE=16203,$E=16204,SE=16205,_y=16206,EE=16207,CE=16208,cr=16209,kE=16210,PE=16211,Rq=852,Iq=592,jq=15,Fq=jq,TE=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function Mq(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ps=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<$d||t.mode>PE?1:0},OE=e=>{if(Ps(e))return ti;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=$d,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Rq),t.distcode=t.distdyn=new Int32Array(Iq),t.sane=1,t.back=-1,ks},NE=e=>{if(Ps(e))return ti;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,OE(e)},AE=(e,t)=>{let r;if(Ps(e))return ti;const n=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?ti:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,NE(e))},DE=(e,t)=>{if(!e)return ti;const r=new Mq;e.state=r,r.strm=e,r.window=null,r.mode=$d;const n=AE(e,t);return n!==ks&&(e.state=null),n},Lq=e=>DE(e,Fq);let RE=!0,by,wy;const Uq=e=>{if(RE){by=new Int32Array(512),wy=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(dc(tE,e.lens,0,288,by,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;dc(eE,e.lens,0,32,wy,0,e.work,{bits:5}),RE=!1}e.lencode=by,e.lenbits=9,e.distcode=wy,e.distbits=5},IE=(e,t,r,n)=>{let i;const o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(t.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),o.window.set(t.subarray(r-n,r-n+i),o.wnext),n-=i,n?(o.window.set(t.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0},Vq=(e,t)=>{let r,n,i,o,s,a,c,l,u,h,f,d,p,m,v=0,b,_,g,S,A,E,N,D;const U=new Uint8Array(4);let G,K;const W=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ps(e)||!e.output||!e.input&&e.avail_in!==0)return ti;r=e.state,r.mode===Qi&&(r.mode=yy),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,a=e.avail_in,l=r.hold,u=r.bits,h=a,f=c,D=ks;t:for(;;)switch(r.mode){case $d:if(r.wrap===0){r.mode=yy;break}for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.wrap&2&&l===35615){r.wbits===0&&(r.wbits=15),r.check=0,U[0]=l&255,U[1]=l>>>8&255,r.check=Nr(r.check,U,2,0),l=0,u=0,r.mode=sE;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=cr;break}if((l&15)!==oE){e.msg="unknown compression method",r.mode=cr;break}if(l>>>=4,u-=4,N=(l&15)+8,r.wbits===0&&(r.wbits=N),N>15||N>r.wbits){e.msg="invalid window size",r.mode=cr;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=l&512?pE:Qi,l=0,u=0;break;case sE:for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.flags=l,(r.flags&255)!==oE){e.msg="unknown compression method",r.mode=cr;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=cr;break}r.head&&(r.head.text=l>>8&1),r.flags&512&&r.wrap&4&&(U[0]=l&255,U[1]=l>>>8&255,r.check=Nr(r.check,U,2,0)),l=0,u=0,r.mode=aE;case aE:for(;u<32;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.head&&(r.head.time=l),r.flags&512&&r.wrap&4&&(U[0]=l&255,U[1]=l>>>8&255,U[2]=l>>>16&255,U[3]=l>>>24&255,r.check=Nr(r.check,U,4,0)),l=0,u=0,r.mode=lE;case lE:for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.head&&(r.head.xflags=l&255,r.head.os=l>>8),r.flags&512&&r.wrap&4&&(U[0]=l&255,U[1]=l>>>8&255,r.check=Nr(r.check,U,2,0)),l=0,u=0,r.mode=cE;case cE:if(r.flags&1024){for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.length=l,r.head&&(r.head.extra_len=l),r.flags&512&&r.wrap&4&&(U[0]=l&255,U[1]=l>>>8&255,r.check=Nr(r.check,U,2,0)),l=0,u=0}else r.head&&(r.head.extra=null);r.mode=uE;case uE:if(r.flags&1024&&(d=r.length,d>a&&(d=a),d&&(r.head&&(N=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+d),N)),r.flags&512&&r.wrap&4&&(r.check=Nr(r.check,n,d,o)),a-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=hE;case hE:if(r.flags&2048){if(a===0)break t;d=0;do N=n[o+d++],r.head&&N&&r.length<65536&&(r.head.name+=String.fromCharCode(N));while(N&&d<a);if(r.flags&512&&r.wrap&4&&(r.check=Nr(r.check,n,d,o)),a-=d,o+=d,N)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=dE;case dE:if(r.flags&4096){if(a===0)break t;d=0;do N=n[o+d++],r.head&&N&&r.length<65536&&(r.head.comment+=String.fromCharCode(N));while(N&&d<a);if(r.flags&512&&r.wrap&4&&(r.check=Nr(r.check,n,d,o)),a-=d,o+=d,N)break t}else r.head&&(r.head.comment=null);r.mode=fE;case fE:if(r.flags&512){for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.wrap&4&&l!==(r.check&65535)){e.msg="header crc mismatch",r.mode=cr;break}l=0,u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Qi;break;case pE:for(;u<32;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}e.adler=r.check=TE(l),l=0,u=0,r.mode=Sd;case Sd:if(r.havedict===0)return e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,r.hold=l,r.bits=u,Aq;e.adler=r.check=1,r.mode=Qi;case Qi:if(t===Oq||t===xd)break t;case yy:if(r.last){l>>>=u&7,u-=u&7,r.mode=_y;break}for(;u<3;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}switch(r.last=l&1,l>>>=1,u-=1,l&3){case 0:r.mode=mE;break;case 1:if(Uq(r),r.mode=Ed,t===xd){l>>>=2,u-=2;break t}break;case 2:r.mode=yE;break;case 3:e.msg="invalid block type",r.mode=cr}l>>>=2,u-=2;break;case mE:for(l>>>=u&7,u-=u&7;u<32;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=cr;break}if(r.length=l&65535,l=0,u=0,r.mode=vy,t===xd)break t;case vy:r.mode=gE;case gE:if(d=r.length,d){if(d>a&&(d=a),d>c&&(d=c),d===0)break t;i.set(n.subarray(o,o+d),s),a-=d,o+=d,c-=d,s+=d,r.length-=d;break}r.mode=Qi;break;case yE:for(;u<14;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.nlen=(l&31)+257,l>>>=5,u-=5,r.ndist=(l&31)+1,l>>>=5,u-=5,r.ncode=(l&15)+4,l>>>=4,u-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=cr;break}r.have=0,r.mode=vE;case vE:for(;r.have<r.ncode;){for(;u<3;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.lens[W[r.have++]]=l&7,l>>>=3,u-=3}for(;r.have<19;)r.lens[W[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,G={bits:r.lenbits},D=dc(Tq,r.lens,0,19,r.lencode,0,r.work,G),r.lenbits=G.bits,D){e.msg="invalid code lengths set",r.mode=cr;break}r.have=0,r.mode=_E;case _E:for(;r.have<r.nlen+r.ndist;){for(;v=r.lencode[l&(1<<r.lenbits)-1],b=v>>>24,_=v>>>16&255,g=v&65535,!(b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(g<16)l>>>=b,u-=b,r.lens[r.have++]=g;else{if(g===16){for(K=b+2;u<K;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(l>>>=b,u-=b,r.have===0){e.msg="invalid bit length repeat",r.mode=cr;break}N=r.lens[r.have-1],d=3+(l&3),l>>>=2,u-=2}else if(g===17){for(K=b+3;u<K;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=b,u-=b,N=0,d=3+(l&7),l>>>=3,u-=3}else{for(K=b+7;u<K;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=b,u-=b,N=0,d=11+(l&127),l>>>=7,u-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=cr;break}for(;d--;)r.lens[r.have++]=N}}if(r.mode===cr)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=cr;break}if(r.lenbits=9,G={bits:r.lenbits},D=dc(tE,r.lens,0,r.nlen,r.lencode,0,r.work,G),r.lenbits=G.bits,D){e.msg="invalid literal/lengths set",r.mode=cr;break}if(r.distbits=6,r.distcode=r.distdyn,G={bits:r.distbits},D=dc(eE,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,G),r.distbits=G.bits,D){e.msg="invalid distances set",r.mode=cr;break}if(r.mode=Ed,t===xd)break t;case Ed:r.mode=Cd;case Cd:if(a>=6&&c>=258){e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,r.hold=l,r.bits=u,Sq(e,f),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,a=e.avail_in,l=r.hold,u=r.bits,r.mode===Qi&&(r.back=-1);break}for(r.back=0;v=r.lencode[l&(1<<r.lenbits)-1],b=v>>>24,_=v>>>16&255,g=v&65535,!(b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(_&&!(_&240)){for(S=b,A=_,E=g;v=r.lencode[E+((l&(1<<S+A)-1)>>S)],b=v>>>24,_=v>>>16&255,g=v&65535,!(S+b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=S,u-=S,r.back+=S}if(l>>>=b,u-=b,r.back+=b,r.length=g,_===0){r.mode=SE;break}if(_&32){r.back=-1,r.mode=Qi;break}if(_&64){e.msg="invalid literal/length code",r.mode=cr;break}r.extra=_&15,r.mode=bE;case bE:if(r.extra){for(K=r.extra;u<K;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=wE;case wE:for(;v=r.distcode[l&(1<<r.distbits)-1],b=v>>>24,_=v>>>16&255,g=v&65535,!(b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(!(_&240)){for(S=b,A=_,E=g;v=r.distcode[E+((l&(1<<S+A)-1)>>S)],b=v>>>24,_=v>>>16&255,g=v&65535,!(S+b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=S,u-=S,r.back+=S}if(l>>>=b,u-=b,r.back+=b,_&64){e.msg="invalid distance code",r.mode=cr;break}r.offset=g,r.extra=_&15,r.mode=xE;case xE:if(r.extra){for(K=r.extra;u<K;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=cr;break}r.mode=$E;case $E:if(c===0)break t;if(d=f-c,r.offset>d){if(d=r.offset-d,d>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=cr;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=i,p=s-r.offset,d=r.length;d>c&&(d=c),c-=d,r.length-=d;do i[s++]=m[p++];while(--d);r.length===0&&(r.mode=Cd);break;case SE:if(c===0)break t;i[s++]=r.length,c--,r.mode=Cd;break;case _y:if(r.wrap){for(;u<32;){if(a===0)break t;a--,l|=n[o++]<<u,u+=8}if(f-=c,e.total_out+=f,r.total+=f,r.wrap&4&&f&&(e.adler=r.check=r.flags?Nr(r.check,i,f,s-f):nc(r.check,i,f,s-f)),f=c,r.wrap&4&&(r.flags?l:TE(l))!==r.check){e.msg="incorrect data check",r.mode=cr;break}l=0,u=0}r.mode=EE;case EE:if(r.wrap&&r.flags){for(;u<32;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.wrap&4&&l!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=cr;break}l=0,u=0}r.mode=CE;case CE:D=Nq;break t;case cr:D=nE;break t;case kE:return iE;case PE:default:return ti}return e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,r.hold=l,r.bits=u,(r.wsize||f!==e.avail_out&&r.mode<cr&&(r.mode<_y||t!==rE))&&IE(e,e.output,e.next_out,f-e.avail_out),h-=e.avail_in,f-=e.avail_out,e.total_in+=h,e.total_out+=f,r.total+=f,r.wrap&4&&f&&(e.adler=r.check=r.flags?Nr(r.check,i,f,e.next_out-f):nc(r.check,i,f,e.next_out-f)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Qi?128:0)+(r.mode===Ed||r.mode===vy?256:0),(h===0&&f===0||t===rE)&&D===ks&&(D=Dq),D},zq=e=>{if(Ps(e))return ti;let t=e.state;return t.window&&(t.window=null),e.state=null,ks},Gq=(e,t)=>{if(Ps(e))return ti;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,ks):ti},Bq=(e,t)=>{const r=t.length;let n,i,o;return Ps(e)||(n=e.state,n.wrap!==0&&n.mode!==Sd)?ti:n.mode===Sd&&(i=1,i=nc(i,t,r,0),i!==n.check)?nE:(o=IE(e,t,r,r),o?(n.mode=kE,iE):(n.havedict=1,ks))};var Hq=NE,qq=AE,Kq=OE,Yq=Lq,Xq=DE,Jq=Vq,Wq=zq,Qq=Gq,Zq=Bq,tK="pako inflate (from Nodeca project)",Zi={inflateReset:Hq,inflateReset2:qq,inflateResetKeep:Kq,inflateInit:Yq,inflateInit2:Xq,inflate:Jq,inflateEnd:Wq,inflateGetHeader:Qq,inflateSetDictionary:Zq,inflateInfo:tK};function eK(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var rK=eK;const jE=Object.prototype.toString,{Z_NO_FLUSH:nK,Z_FINISH:iK,Z_OK:fc,Z_STREAM_END:xy,Z_NEED_DICT:$y,Z_STREAM_ERROR:oK,Z_DATA_ERROR:FE,Z_MEM_ERROR:sK}=$s;function pc(e){this.options=_d.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new YS,this.strm.avail_out=0;let r=Zi.inflateInit2(this.strm,t.windowBits);if(r!==fc)throw new Error(xs[r]);if(this.header=new rK,Zi.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=uc.string2buf(t.dictionary):jE.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Zi.inflateSetDictionary(this.strm,t.dictionary),r!==fc)))throw new Error(xs[r])}pc.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,s,a;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?iK:nK,jE.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),o=Zi.inflate(r,s),o===$y&&i&&(o=Zi.inflateSetDictionary(r,i),o===fc?o=Zi.inflate(r,s):o===FE&&(o=$y));r.avail_in>0&&o===xy&&r.state.wrap>0&&e[r.next_in]!==0;)Zi.inflateReset(r),o=Zi.inflate(r,s);switch(o){case oK:case FE:case $y:case sK:return this.onEnd(o),this.ended=!0,!1}if(a=r.avail_out,r.next_out&&(r.avail_out===0||o===xy))if(this.options.to==="string"){let c=uc.utf8border(r.output,r.next_out),l=r.next_out-c,u=uc.buf2string(r.output,c);r.next_out=l,r.avail_out=n-l,l&&r.output.set(r.output.subarray(c,c+l),0),this.onData(u)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(o===fc&&a===0)){if(o===xy)return o=Zi.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0},pc.prototype.onData=function(e){this.chunks.push(e)},pc.prototype.onEnd=function(e){e===fc&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=_d.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Sy(e,t){const r=new pc(t);if(r.push(e),r.err)throw r.msg||xs[r.err];return r.result}function aK(e,t){return t=t||{},t.raw=!0,Sy(e,t)}var lK=pc,cK=Sy,uK=aK,hK=Sy,dK=$s,fK={Inflate:lK,inflate:cK,inflateRaw:uK,ungzip:hK,constants:dK};const{Deflate:pK,deflate:mK,deflateRaw:gK,gzip:yK}=xq,{Inflate:vK,inflate:_K,inflateRaw:bK,ungzip:wK}=fK;var xK=pK,$K=mK,SK=gK,EK=yK,CK=vK,kK=_K,PK=bK,TK=wK,OK=$s,NK={Deflate:xK,deflate:$K,deflateRaw:SK,gzip:EK,Inflate:CK,inflate:kK,inflateRaw:PK,ungzip:TK,constants:OK};const Rt={};Rt.toRGBA8=function(e){const t=e.width,r=e.height;if(e.tabs.acTL===null)return[Rt.toRGBA8.decodeImage(e.data,t,r,e).buffer];const n=[];e.frames[0].data===null&&(e.frames[0].data=e.data);const i=t*r*4,o=new Uint8Array(i),s=new Uint8Array(i),a=new Uint8Array(i);for(let c=0;c<e.frames.length;c++){const l=e.frames[c],u=l.rect.x,h=l.rect.y,f=l.rect.width,d=l.rect.height,p=Rt.toRGBA8.decodeImage(l.data,f,d,e);if(c!==0)for(let m=0;m<i;m++)a[m]=o[m];if(l.blend===0?Rt._copyTile(p,f,d,o,t,r,u,h,0):l.blend===1&&Rt._copyTile(p,f,d,o,t,r,u,h,1),n.push(o.buffer.slice(0)),l.dispose===1)Rt._copyTile(s,f,d,o,t,r,u,h,0);else if(l.dispose===2)for(let m=0;m<i;m++)o[m]=a[m]}return n},Rt.toRGBA8.decodeImage=function(e,t,r,n){const i=t*r,o=Rt.decode._getBPP(n),s=Math.ceil(t*o/8),a=new Uint8Array(i*4),c=new Uint32Array(a.buffer),l=n.ctype,u=n.depth,h=Rt._bin.readUshort;if(l===6){const f=i<<2;if(u===8)for(let d=0;d<f;d+=4)a[d]=e[d],a[d+1]=e[d+1],a[d+2]=e[d+2],a[d+3]=e[d+3];if(u===16)for(let d=0;d<f;d++)a[d]=e[d<<1]}else if(l===2){const f=n.tabs.tRNS;if(f===null){if(u===8)for(let d=0;d<i;d++){const p=d*3;c[d]=255<<24|e[p+2]<<16|e[p+1]<<8|e[p]}if(u===16)for(let d=0;d<i;d++){const p=d*6;c[d]=255<<24|e[p+4]<<16|e[p+2]<<8|e[p]}}else{const d=f[0],p=f[1],m=f[2];if(u===8)for(let v=0;v<i;v++){const b=v<<2,_=v*3;c[v]=255<<24|e[_+2]<<16|e[_+1]<<8|e[_],e[_]===d&&e[_+1]===p&&e[_+2]===m&&(a[b+3]=0)}if(u===16)for(let v=0;v<i;v++){const b=v<<2,_=v*6;c[v]=255<<24|e[_+4]<<16|e[_+2]<<8|e[_],h(e,_)===d&&h(e,_+2)===p&&h(e,_+4)===m&&(a[b+3]=0)}}}else if(l===3){const f=n.tabs.PLTE,d=n.tabs.tRNS,p=d?d.length:0;if(u===1)for(let m=0;m<r;m++){const v=m*s,b=m*t;for(let _=0;_<t;_++){const g=b+_<<2,S=e[v+(_>>3)]>>7-((_&7)<<0)&1,A=3*S;a[g]=f[A],a[g+1]=f[A+1],a[g+2]=f[A+2],a[g+3]=S<p?d[S]:255}}if(u===2)for(let m=0;m<r;m++){const v=m*s,b=m*t;for(let _=0;_<t;_++){const g=b+_<<2,S=e[v+(_>>2)]>>6-((_&3)<<1)&3,A=3*S;a[g]=f[A],a[g+1]=f[A+1],a[g+2]=f[A+2],a[g+3]=S<p?d[S]:255}}if(u===4)for(let m=0;m<r;m++){const v=m*s,b=m*t;for(let _=0;_<t;_++){const g=b+_<<2,S=e[v+(_>>1)]>>4-((_&1)<<2)&15,A=3*S;a[g]=f[A],a[g+1]=f[A+1],a[g+2]=f[A+2],a[g+3]=S<p?d[S]:255}}if(u===8)for(let m=0;m<i;m++){const v=m<<2,b=e[m],_=3*b;a[v]=f[_],a[v+1]=f[_+1],a[v+2]=f[_+2],a[v+3]=b<p?d[b]:255}}else if(l===4){if(u===8)for(let f=0;f<i;f++){const d=f<<2,p=f<<1,m=e[p];a[d]=m,a[d+1]=m,a[d+2]=m,a[d+3]=e[p+1]}if(u===16)for(let f=0;f<i;f++){const d=f<<2,p=f<<2,m=e[p];a[d]=m,a[d+1]=m,a[d+2]=m,a[d+3]=e[p+2]}}else if(l===0){const f=n.tabs.tRNS?n.tabs.tRNS:-1;for(let d=0;d<r;d++){const p=d*s,m=d*t;if(u===1)for(let v=0;v<t;v++){const b=255*(e[p+(v>>>3)]>>>7-(v&7)&1),_=b===f*255?0:255;c[m+v]=_<<24|b<<16|b<<8|b}else if(u===2)for(let v=0;v<t;v++){const b=85*(e[p+(v>>>2)]>>>6-((v&3)<<1)&3),_=b===f*85?0:255;c[m+v]=_<<24|b<<16|b<<8|b}else if(u===4)for(let v=0;v<t;v++){const b=17*(e[p+(v>>>1)]>>>4-((v&1)<<2)&15),_=b===f*17?0:255;c[m+v]=_<<24|b<<16|b<<8|b}else if(u===8)for(let v=0;v<t;v++){const b=e[p+v],_=b===f?0:255;c[m+v]=_<<24|b<<16|b<<8|b}else if(u===16)for(let v=0;v<t;v++){const b=e[p+(v<<1)],_=h(e,p+(v<<1))===f?0:255;c[m+v]=_<<24|b<<16|b<<8|b}}}return a},Rt.decode=function(e){const t=new Uint8Array(e);let r=8;const n=Rt._bin,i=n.readUshort,o=n.readUint,s={tabs:{},frames:[]},a=new Uint8Array(t.length);let c=0,l,u=0;const h=[137,80,78,71,13,10,26,10];for(let f=0;f<8;f++)if(t[f]!==h[f])throw"The input is not a PNG file!";for(;r<t.length;){const f=n.readUint(t,r);r+=4;const d=n.readASCII(t,r,4);if(r+=4,d==="IHDR")Rt.decode._IHDR(t,r,s);else if(d==="CgBI")s.tabs[d]=t.slice(r,r+4);else if(d==="IDAT"){for(let p=0;p<f;p++)a[c+p]=t[r+p];c+=f}else if(d==="acTL")s.tabs[d]={num_frames:o(t,r),num_plays:o(t,r+4)},l=new Uint8Array(t.length);else if(d==="fcTL"){if(u!==0){const b=s.frames[s.frames.length-1];b.data=Rt.decode._decompress(s,l.slice(0,u),b.rect.width,b.rect.height),u=0}const p={x:o(t,r+12),y:o(t,r+16),width:o(t,r+4),height:o(t,r+8)};let m=i(t,r+22);m=i(t,r+20)/(m===0?100:m);const v={rect:p,delay:Math.round(m*1e3),dispose:t[r+24],blend:t[r+25]};s.frames.push(v)}else if(d==="fdAT"){for(let p=0;p<f-4;p++)l[u+p]=t[r+p+4];u+=f-4}else if(d==="pHYs")s.tabs[d]=[n.readUint(t,r),n.readUint(t,r+4),t[r+8]];else if(d==="cHRM"){s.tabs[d]=[];for(let p=0;p<8;p++)s.tabs[d].push(n.readUint(t,r+p*4))}else if(d==="tEXt"||d==="zTXt"){s.tabs[d]===null&&(s.tabs[d]={});const p=n.nextZero(t,r),m=n.readASCII(t,r,p-r);let v;const b=r+f-p-1;if(d==="tEXt")v=n.readASCII(t,p+1,b);else{const _=Rt.decode._inflate(t.slice(p+2,p+2+b));v=n.readUTF8(_,0,_.length)}s.tabs[d][m]=v}else if(d==="iTXt"){s.tabs[d]==null&&(s.tabs[d]={});let p=0,m=r;p=n.nextZero(t,m);const v=n.readASCII(t,m,p-m);m=p+1;const b=t[m];m+=2,p=n.nextZero(t,m),m=p+1,p=n.nextZero(t,m),m=p+1;let _;const g=f-(m-r);if(b===0)_=n.readUTF8(t,m,g);else{const S=Rt.decode._inflate(t.slice(m,m+g));_=n.readUTF8(S,0,S.length)}s.tabs[d][v]=_}else if(d==="PLTE")s.tabs[d]=n.readBytes(t,r,f);else if(d==="hIST"){const p=s.tabs.PLTE.length/3;s.tabs[d]=[];for(let m=0;m<p;m++)s.tabs[d].push(i(t,r+m*2))}else if(d==="tRNS")s.ctype===3?s.tabs[d]=n.readBytes(t,r,f):s.ctype===0?s.tabs[d]=i(t,r):s.ctype===2&&(s.tabs[d]=[i(t,r),i(t,r+2),i(t,r+4)]);else if(d==="gAMA")s.tabs[d]=n.readUint(t,r)/1e5;else if(d==="sRGB")s.tabs[d]=t[r];else if(d==="bKGD")s.ctype===0||s.ctype===4?s.tabs[d]=[i(t,r)]:s.ctype===2||s.ctype===6?s.tabs[d]=[i(t,r),i(t,r+2),i(t,r+4)]:s.ctype===3&&(s.tabs[d]=t[r]);else if(d==="IEND")break;r+=f,r+=4}if(u!==0){const f=s.frames[s.frames.length-1];f.data=Rt.decode._decompress(s,l.slice(0,u),f.rect.width,f.rect.height),u=0}return s.data=Rt.decode._decompress(s,a,s.width,s.height),delete s.compress,delete s.interlace,delete s.filter,s},Rt.decode._decompress=function(e,t,r,n){const i=Rt.decode._getBPP(e),o=Math.ceil(r*i/8),s=new Uint8Array((o+1+e.interlace)*n);return e.tabs.CgBI?t=Rt.inflateRaw(t,s):t=Rt.decode._inflate(t,s),e.interlace===0?t=Rt.decode._filterZero(t,e,0,r,n):e.interlace===1&&(t=Rt.decode._readInterlace(t,e)),t},Rt.decode._inflate=function(e,t){return Rt.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),t)},Rt.inflateRaw=function(){const e={};return e.H={},e.H.N=function(t,r){const n=Uint8Array;let i=0,o=0,s=0,a=0,c=0,l=0,u=0,h=0,f=0,d,p;if(t[0]===3&&t[1]===0)return r||new n(0);const m=e.H,v=m.b,b=m.e,_=m.R,g=m.n,S=m.A,A=m.Z,E=m.m,N=r===null;for(N&&(r=new n(t.length>>>2<<3));i===0;){if(i=v(t,f,1),o=v(t,f+1,2),f+=3,o===0){f&7&&(f+=8-(f&7));const D=(f>>>3)+4,U=t[D-4]|t[D-3]<<8;N&&(r=e.H.W(r,h+U)),r.set(new n(t.buffer,t.byteOffset+D,U),h),f=D+U<<3,h+=U;continue}if(N&&(r=e.H.W(r,h+(1<<17))),o===1&&(d=E.J,p=E.h,l=512-1,u=32-1),o===2){s=b(t,f,5)+257,a=b(t,f+5,5)+1,c=b(t,f+10,4)+4,f+=14;let D=1;for(let K=0;K<38;K+=2)E.Q[K]=0,E.Q[K+1]=0;for(let K=0;K<c;K++){const W=b(t,f+K*3,3);E.Q[(E.X[K]<<1)+1]=W,W>D&&(D=W)}f+=3*c,g(E.Q,D),S(E.Q,D,E.u),d=E.w,p=E.d,f=_(E.u,(1<<D)-1,s+a,t,f,E.v);const U=m.V(E.v,0,s,E.C);l=(1<<U)-1;const G=m.V(E.v,s,a,E.D);u=(1<<G)-1,g(E.C,U),S(E.C,U,d),g(E.D,G),S(E.D,G,p)}for(;;){const D=d[A(t,f)&l];f+=D&15;const U=D>>>4;if(!(U>>>8))r[h++]=U;else{if(U===256)break;{let G=h+U-254;if(U>264){const ft=E.q[U-257];G=h+(ft>>>3)+b(t,f,ft&7),f+=ft&7}const K=p[A(t,f)&u];f+=K&15;const W=K>>>4,ot=E.c[W],nt=(ot>>>4)+v(t,f,ot&15);for(f+=ot&15;h<G;)r[h]=r[h++-nt],r[h]=r[h++-nt],r[h]=r[h++-nt],r[h]=r[h++-nt];h=G}}}}return r.length===h?r:r.slice(0,h)},e.H.W=function(t,r){const n=t.length;if(r<=n)return t;const i=new Uint8Array(n<<1);return i.set(t,0),i},e.H.R=function(t,r,n,i,o,s){const a=e.H.e,c=e.H.Z;let l=0;for(;l<n;){const u=t[c(i,o)&r];o+=u&15;const h=u>>>4;if(h<=15)s[l]=h,l++;else{let f=0,d=0;h===16?(d=3+a(i,o,2),o+=2,f=s[l-1]):h===17?(d=3+a(i,o,3),o+=3):h===18&&(d=11+a(i,o,7),o+=7);const p=l+d;for(;l<p;)s[l]=f,l++}}return o},e.H.V=function(t,r,n,i){let o=0,s=0;const a=i.length>>>1;for(;s<n;){const c=t[s+r];i[s<<1]=0,i[(s<<1)+1]=c,c>o&&(o=c),s++}for(;s<a;)i[s<<1]=0,i[(s<<1)+1]=0,s++;return o},e.H.n=function(t,r){const n=e.H.m,i=t.length;let o,s,a,c,l;const u=n.j;for(let f=0;f<=r;f++)u[f]=0;for(c=1;c<i;c+=2)u[t[c]]++;const h=n.K;for(o=0,u[0]=0,s=1;s<=r;s++)o=o+u[s-1]<<1,h[s]=o;for(a=0;a<i;a+=2)l=t[a+1],l!==0&&(t[a]=h[l],h[l]++)},e.H.A=function(t,r,n){const i=t.length,o=e.H.m.r;for(let s=0;s<i;s+=2)if(t[s+1]!==0){const a=s>>1,c=t[s+1],l=a<<4|c,u=r-c;let h=t[s]<<u;const f=h+(1<<u);for(;h!==f;){const d=o[h]>>>15-r;n[d]=l,h++}}},e.H.l=function(t,r){const n=e.H.m.r,i=15-r;for(let o=0;o<t.length;o+=2){const s=t[o]<<r-t[o+1];t[o]=n[s]>>>i}},e.H.M=function(t,r,n){n=n<<(r&7);const i=r>>>3;t[i]|=n,t[i+1]|=n>>>8},e.H.I=function(t,r,n){n=n<<(r&7);const i=r>>>3;t[i]|=n,t[i+1]|=n>>>8,t[i+2]|=n>>>16},e.H.e=function(t,r,n){return(t[r>>>3]|t[(r>>>3)+1]<<8)>>>(r&7)&(1<<n)-1},e.H.b=function(t,r,n){return(t[r>>>3]|t[(r>>>3)+1]<<8|t[(r>>>3)+2]<<16)>>>(r&7)&(1<<n)-1},e.H.Z=function(t,r){return(t[r>>>3]|t[(r>>>3)+1]<<8|t[(r>>>3)+2]<<16)>>>(r&7)},e.H.i=function(t,r){return(t[r>>>3]|t[(r>>>3)+1]<<8|t[(r>>>3)+2]<<16|t[(r>>>3)+3]<<24)>>>(r&7)},e.H.m=function(){const t=Uint16Array,r=Uint32Array;return{K:new t(16),j:new t(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new t(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new r(32),J:new t(512),_:[],h:new t(32),$:[],w:new t(32768),C:[],v:[],d:new t(32768),D:[],u:new t(512),Q:[],r:new t(32768),s:new r(286),Y:new r(30),a:new r(19),t:new r(15e3),k:new t(65536),g:new t(32768)}}(),function(){const t=e.H.m,r=32768;for(let i=0;i<r;i++){let o=i;o=(o&2863311530)>>>1|(o&1431655765)<<1,o=(o&3435973836)>>>2|(o&858993459)<<2,o=(o&4042322160)>>>4|(o&252645135)<<4,o=(o&4278255360)>>>8|(o&16711935)<<8,t.r[i]=(o>>>16|o<<16)>>>17}function n(i,o,s){for(;o--!==0;)i.push(0,s)}for(let i=0;i<32;i++)t.q[i]=t.S[i]<<3|t.T[i],t.c[i]=t.p[i]<<4|t.z[i];n(t._,144,8),n(t._,255-143,9),n(t._,279-255,7),n(t._,287-279,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),n(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),n(t.Q,19,0),n(t.C,286,0),n(t.D,30,0),n(t.v,320,0)}(),e.H.N}(),Rt.decode._readInterlace=function(e,t){const r=t.width,n=t.height,i=Rt.decode._getBPP(t),o=i>>3,s=Math.ceil(r*i/8),a=new Uint8Array(n*s);let c=0;const l=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],h=[8,8,8,4,4,2,2],f=[8,8,4,4,2,2,1];let d=0;for(;d<7;){const p=h[d],m=f[d];let v=0,b=0,_=l[d];for(;_<n;)_+=p,b++;let g=u[d];for(;g<r;)g+=m,v++;const S=Math.ceil(v*i/8);Rt.decode._filterZero(e,t,c,v,b);let A=0,E=l[d];for(;E<n;){let N=u[d],D=c+A*S<<3;for(;N<r;){if(i===1){let U=e[D>>3];U=U>>7-(D&7)&1,a[E*s+(N>>3)]|=U<<7-((N&7)<<0)}if(i===2){let U=e[D>>3];U=U>>6-(D&7)&3,a[E*s+(N>>2)]|=U<<6-((N&3)<<1)}if(i===4){let U=e[D>>3];U=U>>4-(D&7)&15,a[E*s+(N>>1)]|=U<<4-((N&1)<<2)}if(i>=8){const U=E*s+N*o;for(let G=0;G<o;G++)a[U+G]=e[(D>>3)+G]}D+=i,N+=m}A++,E+=p}v*b!==0&&(c+=b*(1+S)),d=d+1}return a},Rt.decode._getBPP=function(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth},Rt.decode._filterZero=function(e,t,r,n,i){let o=Rt.decode._getBPP(t);const s=Math.ceil(n*o/8),a=Rt.decode._paeth;o=Math.ceil(o/8);let c=0,l=1,u=e[r],h=0;if(u>1&&(e[r]=[0,0,1][u-2]),u===3)for(h=o;h<s;h++)e[h+1]=e[h+1]+(e[h+1-o]>>>1)&255;for(let f=0;f<i;f++)if(c=r+f*s,l=c+f+1,u=e[l-1],h=0,u===0)for(;h<s;h++)e[c+h]=e[l+h];else if(u===1){for(;h<o;h++)e[c+h]=e[l+h];for(;h<s;h++)e[c+h]=e[l+h]+e[c+h-o]}else if(u===2)for(;h<s;h++)e[c+h]=e[l+h]+e[c+h-s];else if(u===3){for(;h<o;h++)e[c+h]=e[l+h]+(e[c+h-s]>>>1);for(;h<s;h++)e[c+h]=e[l+h]+(e[c+h-s]+e[c+h-o]>>>1)}else{for(;h<o;h++)e[c+h]=e[l+h]+a(0,e[c+h-s],0);for(;h<s;h++)e[c+h]=e[l+h]+a(e[c+h-o],e[c+h-s],e[c+h-o-s])}return e},Rt.decode._paeth=function(e,t,r){const n=e+t-r,i=n-e,o=n-t,s=n-r;return i*i<=o*o&&i*i<=s*s?e:o*o<=s*s?t:r},Rt.decode._IHDR=function(e,t,r){const n=Rt._bin;r.width=n.readUint(e,t),t+=4,r.height=n.readUint(e,t),t+=4,r.depth=e[t],t++,r.ctype=e[t],t++,r.compress=e[t],t++,r.filter=e[t],t++,r.interlace=e[t],t++},Rt._bin={nextZero:function(e,t){for(;e[t]!==0;)t++;return t},readUshort:function(e,t){return e[t]<<8|e[t+1]},writeUshort:function(e,t,r){e[t]=r>>8&255,e[t+1]=r&255},readUint:function(e,t){return e[t]*(256*256*256)+(e[t+1]<<16|e[t+2]<<8|e[t+3])},writeUint:function(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=r&255},readASCII:function(e,t,r){let n="";for(let i=0;i<r;i++)n+=String.fromCharCode(e[t+i]);return n},writeASCII:function(e,t,r){for(let n=0;n<r.length;n++)e[t+n]=r.charCodeAt(n)},readBytes:function(e,t,r){const n=[];for(let i=0;i<r;i++)n.push(e[t+i]);return n},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,r){let n="",i;for(let o=0;o<r;o++)n+="%"+Rt._bin.pad(e[t+o].toString(16));try{i=decodeURIComponent(n)}catch{return Rt._bin.readASCII(e,t,r)}return i}},Rt._copyTile=function(e,t,r,n,i,o,s,a,c){const l=Math.min(t,i),u=Math.min(r,o);let h=0,f=0;for(let d=0;d<u;d++)for(let p=0;p<l;p++)if(s>=0&&a>=0?(h=d*t+p<<2,f=(a+d)*i+s+p<<2):(h=(-a+d)*t-s+p<<2,f=d*i+p<<2),c===0)n[f]=e[h],n[f+1]=e[h+1],n[f+2]=e[h+2],n[f+3]=e[h+3];else if(c===1){const m=e[h+3]*.00392156862745098,v=e[h]*m,b=e[h+1]*m,_=e[h+2]*m,g=n[f+3]*(1/255),S=n[f]*g,A=n[f+1]*g,E=n[f+2]*g,N=1-m,D=m+g*N,U=D===0?0:1/D;n[f+3]=255*D,n[f+0]=(v+S*N)*U,n[f+1]=(b+A*N)*U,n[f+2]=(_+E*N)*U}else if(c===2){const m=e[h+3],v=e[h],b=e[h+1],_=e[h+2],g=n[f+3],S=n[f],A=n[f+1],E=n[f+2];m===g&&v===S&&b===A&&_===E?(n[f]=0,n[f+1]=0,n[f+2]=0,n[f+3]=0):(n[f]=v,n[f+1]=b,n[f+2]=_,n[f+3]=m)}else if(c===3){const m=e[h+3],v=e[h],b=e[h+1],_=e[h+2],g=n[f+3],S=n[f],A=n[f+1],E=n[f+2];if(m===g&&v===S&&b===A&&_===E)continue;if(m<220&&g>20)return!1}return!0},Rt.encode=function(e,t,r,n,i,o,s){n===null&&(n=0),s===null&&(s=!1);const a=Rt.encode.compress(e,t,r,n,[!1,!1,!1,0,s]);return Rt.encode.compressPNG(a,-1),Rt.encode._main(a,t,r,i,o)},Rt.encodeLL=function(e,t,r,n,i,o,s,a){const c={ctype:0+(n===1?0:2)+(i===0?0:4),depth:o,frames:[]},l=(n+i)*o,u=l*t;for(let h=0;h<e.length;h++)c.frames.push({rect:{x:0,y:0,width:t,height:r},img:new Uint8Array(e[h]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(u/8)});return Rt.encode.compressPNG(c,0,!0),Rt.encode._main(c,t,r,s,a)},Rt.encode._main=function(e,t,r,n,i){i||(i={});const o=Rt.crc.crc,s=Rt._bin.writeUint,a=Rt._bin.writeUshort,c=Rt._bin.writeASCII;let l=8;const u=e.frames.length>1;let h=!1,f=8+(16+5+4)+(u?20:0);if(i.sRGB!==null&&i.sRGB!==void 0&&(f+=8+1+4),i.pHYs!==null&&i.pHYs!==void 0&&(f+=8+9+4),e.ctype===3){const v=e.plte.length;for(let b=0;b<v;b++)e.plte[b]>>>24!==255&&(h=!0);f+=8+v*3+4+(h?8+v*1+4:0)}for(let v=0;v<e.frames.length;v++){const b=e.frames[v];u&&(f+=38),f+=b.cimg.length+12,v!==0&&(f+=4)}f+=12;const d=new Uint8Array(f),p=[137,80,78,71,13,10,26,10];for(let v=0;v<8;v++)d[v]=p[v];if(s(d,l,13),l+=4,c(d,l,"IHDR"),l+=4,s(d,l,t),l+=4,s(d,l,r),l+=4,d[l]=e.depth,l++,d[l]=e.ctype,l++,d[l]=0,l++,d[l]=0,l++,d[l]=0,l++,s(d,l,o(d,l-17,17)),l+=4,i.sRGB!==null&&i.sRGB!==void 0&&(s(d,l,1),l+=4,c(d,l,"sRGB"),l+=4,d[l]=i.sRGB,l++,s(d,l,o(d,l-5,5)),l+=4),i.pHYs!==null&&i.pHYs!==void 0&&(s(d,l,9),l+=4,c(d,l,"pHYs"),l+=4,s(d,l,i.pHYs[0]),l+=4,s(d,l,i.pHYs[1]),l+=4,d[l]=i.pHYs[2],l++,s(d,l,o(d,l-13,13)),l+=4),u&&(s(d,l,8),l+=4,c(d,l,"acTL"),l+=4,s(d,l,e.frames.length),l+=4,s(d,l,i.loop!=null?i.loop:0),l+=4,s(d,l,o(d,l-12,12)),l+=4),e.ctype===3){const v=e.plte.length;s(d,l,v*3),l+=4,c(d,l,"PLTE"),l+=4;for(let b=0;b<v;b++){const _=b*3,g=e.plte[b],S=g&255,A=g>>>8&255,E=g>>>16&255;d[l+_+0]=S,d[l+_+1]=A,d[l+_+2]=E}if(l+=v*3,s(d,l,o(d,l-v*3-4,v*3+4)),l+=4,h){s(d,l,v),l+=4,c(d,l,"tRNS"),l+=4;for(let b=0;b<v;b++)d[l+b]=e.plte[b]>>>24&255;l+=v,s(d,l,o(d,l-v-4,v+4)),l+=4}}let m=0;for(let v=0;v<e.frames.length;v++){const b=e.frames[v];u&&(s(d,l,26),l+=4,c(d,l,"fcTL"),l+=4,s(d,l,m++),l+=4,s(d,l,b.rect.width),l+=4,s(d,l,b.rect.height),l+=4,s(d,l,b.rect.x),l+=4,s(d,l,b.rect.y),l+=4,a(d,l,n[v]),l+=2,a(d,l,1e3),l+=2,d[l]=b.dispose,l++,d[l]=b.blend,l++,s(d,l,o(d,l-30,30)),l+=4);const _=b.cimg,g=_.length;s(d,l,g+(v===0?0:4)),l+=4;const S=l;c(d,l,v===0?"IDAT":"fdAT"),l+=4,v!==0&&(s(d,l,m++),l+=4),d.set(_,l),l+=g,s(d,l,o(d,S,l-S)),l+=4}return s(d,l,0),l+=4,c(d,l,"IEND"),l+=4,s(d,l,o(d,l-4,4)),l+=4,d.buffer},Rt.encode.compressPNG=function(e,t,r){for(let n=0;n<e.frames.length;n++){const i=e.frames[n],o=i.rect.height,s=new Uint8Array(o*i.bpl+o);i.cimg=Rt.encode._filterZero(i.img,o,i.bpp,i.bpl,s,t,r)}},Rt.encode.compress=function(e,t,r,n,i){const o=i[0],s=i[1],a=i[2],c=i[3],l=i[4];let u=6,h=8,f=255;for(let g=0;g<e.length;g++){const S=new Uint8Array(e[g]),A=S.length;for(let E=0;E<A;E+=4)f&=S[E+3]}const d=f!==255,p=Rt.encode.framize(e,t,r,o,s,a),m={},v=[],b=[];if(n!==0){const g=[];for(let D=0;D<p.length;D++)g.push(p[D].img.buffer);const S=Rt.encode.concatRGBA(g),A=Rt.quantize(S,n);let E=0;const N=new Uint8Array(A.abuf);for(let D=0;D<p.length;D++){const U=p[D].img,G=U.length;b.push(new Uint8Array(A.inds.buffer,E>>2,G>>2));for(let K=0;K<G;K+=4)U[K]=N[E+K],U[K+1]=N[E+K+1],U[K+2]=N[E+K+2],U[K+3]=N[E+K+3];E+=G}for(let D=0;D<A.plte.length;D++)v.push(A.plte[D].est.rgba)}else for(let g=0;g<p.length;g++){const S=p[g],A=new Uint32Array(S.img.buffer),E=S.rect.width,N=A.length,D=new Uint8Array(N);b.push(D);for(let U=0;U<N;U++){const G=A[U];if(U!==0&&G===A[U-1])D[U]=D[U-1];else if(U>E&&G===A[U-E])D[U]=D[U-E];else{let K=m[G];if(K===null&&(m[G]=K=v.length,v.push(G),v.length>=300))break;D[U]=K}}}const _=v.length;_<=256&&l===!1&&(_<=2?h=1:_<=4?h=2:_<=16?h=4:h=8,h=Math.max(h,c));for(let g=0;g<p.length;g++){const S=p[g],A=S.rect.width,E=S.rect.height;let N=S.img,D=4*A,U=4;if(_<=256&&l===!1){D=Math.ceil(h*A/8);const G=new Uint8Array(D*E),K=b[g];for(let W=0;W<E;W++){const ot=W*D,nt=W*A;if(h===8)for(let ft=0;ft<A;ft++)G[ot+ft]=K[nt+ft];else if(h===4)for(let ft=0;ft<A;ft++)G[ot+(ft>>1)]|=K[nt+ft]<<4-(ft&1)*4;else if(h===2)for(let ft=0;ft<A;ft++)G[ot+(ft>>2)]|=K[nt+ft]<<6-(ft&3)*2;else if(h===1)for(let ft=0;ft<A;ft++)G[ot+(ft>>3)]|=K[nt+ft]<<7-(ft&7)*1}N=G,u=3,U=1}else if(d===!1&&p.length===1){const G=new Uint8Array(A*E*3),K=A*E;for(let W=0;W<K;W++){const ot=W*3,nt=W*4;G[ot]=N[nt],G[ot+1]=N[nt+1],G[ot+2]=N[nt+2]}N=G,u=2,U=3,D=3*A}S.img=N,S.bpl=D,S.bpp=U}return{ctype:u,depth:h,plte:v,frames:p}},Rt.encode.framize=function(e,t,r,n,i,o){const s=[];for(let a=0;a<e.length;a++){const c=new Uint8Array(e[a]),l=new Uint32Array(c.buffer);let u,h=0,f=0,d=t,p=r,m=n?1:0;if(a!==0){const v=o||n||a===1||s[a-2].dispose!==0?1:2;let b=0,_=1e9;for(let S=0;S<v;S++){const A=new Uint32Array(e[a-1-S]);let E=t,N=r,D=-1,U=-1;for(let K=0;K<r;K++)for(let W=0;W<t;W++){const ot=K*t+W;l[ot]!==A[ot]&&(W<E&&(E=W),W>D&&(D=W),K<N&&(N=K),K>U&&(U=K))}D===-1&&(E=N=D=U=0),i&&((E&1)===1&&E--,(N&1)===1&&N--);const G=(D-E+1)*(U-N+1);G<_&&(_=G,b=S,h=E,f=N,d=D-E+1,p=U-N+1)}const g=new Uint8Array(e[a-1-b]);b===1&&(s[a-1].dispose=2),u=new Uint8Array(d*p*4),Rt._copyTile(g,t,r,u,d,p,-h,-f,0),m=Rt._copyTile(c,t,r,u,d,p,-h,-f,3)?1:0,m===1?Rt.encode._prepareDiff(c,t,r,u,{x:h,y:f,width:d,height:p}):Rt._copyTile(c,t,r,u,d,p,-h,-f,0)}else u=c.slice(0);s.push({rect:{x:h,y:f,width:d,height:p},img:u,blend:m,dispose:0})}if(n)for(let a=0;a<s.length;a++){const c=s[a];if(c.blend===1)continue;const l=c.rect,u=s[a-1].rect,h=Math.min(l.x,u.x),f=Math.min(l.y,u.y),d=Math.max(l.x+l.width,u.x+u.width),p=Math.max(l.y+l.height,u.y+u.height),m={x:h,y:f,width:d-h,height:p-f};s[a-1].dispose=1,a-1!==0&&Rt.encode._updateFrame(e,t,r,s,a-1,m,i),Rt.encode._updateFrame(e,t,r,s,a,m,i)}return s},Rt.encode._updateFrame=function(e,t,r,n,i,o,s){const a=Uint8Array,c=Uint32Array,l=new a(e[i-1]),u=new c(e[i-1]),h=i+1<e.length?new a(e[i+1]):null,f=new a(e[i]),d=new c(f.buffer);let p=t,m=r,v=-1,b=-1;for(let g=0;g<o.height;g++)for(let S=0;S<o.width;S++){const A=o.x+S,E=o.y+g,N=E*t+A,D=d[N];D===0||n[i-1].dispose===0&&u[N]===D&&(h===null||h[N*4+3]!==0)||(A<p&&(p=A),A>v&&(v=A),E<m&&(m=E),E>b&&(b=E))}v===-1&&(p=m=v=b=0),s&&((p&1)===1&&p--,(m&1)===1&&m--),o={x:p,y:m,width:v-p+1,height:b-m+1};const _=n[i];_.rect=o,_.blend=1,_.img=new Uint8Array(o.width*o.height*4),n[i-1].dispose===0?(Rt._copyTile(l,t,r,_.img,o.width,o.height,-o.x,-o.y,0),Rt.encode._prepareDiff(f,t,r,_.img,o)):Rt._copyTile(f,t,r,_.img,o.width,o.height,-o.x,-o.y,0)},Rt.encode._prepareDiff=function(e,t,r,n,i){Rt._copyTile(e,t,r,n,i.width,i.height,-i.x,-i.y,2)},Rt.encode._filterZero=function(e,t,r,n,i,o,s){const a=[];let c=[0,1,2,3,4];o!==-1?c=[o]:(t*n>5e5||r===1)&&(c=[0]);let l;s&&(l={level:0});const u=i.length>1e7&&gS!=null?gS:NK;for(let d=0;d<c.length;d++){for(let p=0;p<t;p++)Rt.encode._filterLine(i,e,p,n,r,c[d]);a.push(u.deflate(i,l))}let h,f=1e9;for(let d=0;d<a.length;d++)a[d].length<f&&(h=d,f=a[d].length);return a[h]},Rt.encode._filterLine=function(e,t,r,n,i,o){const s=r*n;let a=s+r;const c=Rt.decode._paeth;if(e[a]=o,a++,o===0)if(n<500)for(let l=0;l<n;l++)e[a+l]=t[s+l];else e.set(new Uint8Array(t.buffer,s,n),a);else if(o===1){for(let l=0;l<i;l++)e[a+l]=t[s+l];for(let l=i;l<n;l++)e[a+l]=t[s+l]-t[s+l-i]+256&255}else if(r===0){for(let l=0;l<i;l++)e[a+l]=t[s+l];if(o===2)for(let l=i;l<n;l++)e[a+l]=t[s+l];if(o===3)for(let l=i;l<n;l++)e[a+l]=t[s+l]-(t[s+l-i]>>1)+256&255;if(o===4)for(let l=i;l<n;l++)e[a+l]=t[s+l]-c(t[s+l-i],0,0)+256&255}else{if(o===2)for(let l=0;l<n;l++)e[a+l]=t[s+l]+256-t[s+l-n]&255;if(o===3){for(let l=0;l<i;l++)e[a+l]=t[s+l]+256-(t[s+l-n]>>1)&255;for(let l=i;l<n;l++)e[a+l]=t[s+l]+256-(t[s+l-n]+t[s+l-i]>>1)&255}if(o===4){for(let l=0;l<i;l++)e[a+l]=t[s+l]+256-c(0,t[s+l-n],0)&255;for(let l=i;l<n;l++)e[a+l]=t[s+l]+256-c(t[s+l-i],t[s+l-n],t[s+l-i-n])&255}}},Rt.crc={table:function(){const e=new Uint32Array(256);for(let t=0;t<256;t++){let r=t;for(let n=0;n<8;n++)r&1?r=3988292384^r>>>1:r=r>>>1;e[t]=r}return e}(),update:function(e,t,r,n){for(let i=0;i<n;i++)e=Rt.crc.table[(e^t[r+i])&255]^e>>>8;return e},crc:function(e,t,r){return Rt.crc.update(4294967295,e,t,r)^4294967295}},Rt.quantize=function(e,t){const r=new Uint8Array(e),n=r.slice(0),i=new Uint32Array(n.buffer),o=Rt.quantize.getKDtree(n,t),s=o[0],a=o[1],c=Rt.quantize.planeDst,l=r,u=i,h=l.length,f=new Uint8Array(r.length>>2);let d;if(r.length<2e7)for(let p=0;p<h;p+=4){const m=l[p]*.00392156862745098,v=l[p+1]*(1/255),b=l[p+2]*(1/255),_=l[p+3]*(1/255);d=Rt.quantize.getNearest(s,m,v,b,_),f[p>>2]=d.ind,u[p>>2]=d.est.rgba}else for(let p=0;p<h;p+=4){const m=l[p]*.00392156862745098,v=l[p+1]*(1/255),b=l[p+2]*(1/255),_=l[p+3]*(1/255);for(d=s;d.left;)d=c(d.est,m,v,b,_)<=0?d.left:d.right;f[p>>2]=d.ind,u[p>>2]=d.est.rgba}return{abuf:n.buffer,inds:f,plte:a}},Rt.quantize.getKDtree=function(e,t,r){r===null&&(r=1e-4);const n=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=Rt.quantize.stats(e,i.i0,i.i1),i.est=Rt.quantize.estats(i.bst);const o=[i];for(;o.length<t;){let s=0,a=0;for(let f=0;f<o.length;f++)o[f].est.L>s&&(s=o[f].est.L,a=f);if(s<r)break;const c=o[a],l=Rt.quantize.splitPixels(e,n,c.i0,c.i1,c.est.e,c.est.eMq255);if(c.i0>=l||c.i1<=l){c.est.L=0;continue}const u={i0:c.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};u.bst=Rt.quantize.stats(e,u.i0,u.i1),u.est=Rt.quantize.estats(u.bst);const h={i0:l,i1:c.i1,bst:null,est:null,tdst:0,left:null,right:null};h.bst={R:[],m:[],N:c.bst.N-u.bst.N};for(let f=0;f<16;f++)h.bst.R[f]=c.bst.R[f]-u.bst.R[f];for(let f=0;f<4;f++)h.bst.m[f]=c.bst.m[f]-u.bst.m[f];h.est=Rt.quantize.estats(h.bst),c.left=u,c.right=h,o[a]=u,o.push(h)}o.sort(function(s,a){return a.bst.N-s.bst.N});for(let s=0;s<o.length;s++)o[s].ind=s;return[i,o]},Rt.quantize.getNearest=function(e,t,r,n,i){if(e.left==null)return e.tdst=Rt.quantize.dist(e.est.q,t,r,n,i),e;const o=Rt.quantize.planeDst(e.est,t,r,n,i);let s=e.left,a=e.right;o>0&&(s=e.right,a=e.left);const c=Rt.quantize.getNearest(s,t,r,n,i);if(c.tdst<=o*o)return c;const l=Rt.quantize.getNearest(a,t,r,n,i);return l.tdst<c.tdst?l:c},Rt.quantize.planeDst=function(e,t,r,n,i){const o=e.e;return o[0]*t+o[1]*r+o[2]*n+o[3]*i-e.eMq},Rt.quantize.dist=function(e,t,r,n,i){const o=t-e[0],s=r-e[1],a=n-e[2],c=i-e[3];return o*o+s*s+a*a+c*c},Rt.quantize.splitPixels=function(e,t,r,n,i,o){const s=Rt.quantize.vecDot;for(n-=4;r<n;){for(;s(e,r,i)<=o;)r+=4;for(;s(e,n,i)>o;)n-=4;if(r>=n)break;const a=t[r>>2];t[r>>2]=t[n>>2],t[n>>2]=a,r+=4,n-=4}for(;s(e,r,i)>o;)r-=4;return r+4},Rt.quantize.vecDot=function(e,t,r){return e[t]*r[0]+e[t+1]*r[1]+e[t+2]*r[2]+e[t+3]*r[3]},Rt.quantize.stats=function(e,t,r){const n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],o=r-t>>2;for(let s=t;s<r;s+=4){const a=e[s]*.00392156862745098,c=e[s+1]*(1/255),l=e[s+2]*(1/255),u=e[s+3]*(1/255);i[0]+=a,i[1]+=c,i[2]+=l,i[3]+=u,n[0]+=a*a,n[1]+=a*c,n[2]+=a*l,n[3]+=a*u,n[5]+=c*c,n[6]+=c*l,n[7]+=c*u,n[10]+=l*l,n[11]+=l*u,n[15]+=u*u}return n[4]=n[1],n[8]=n[2],n[9]=n[6],n[12]=n[3],n[13]=n[7],n[14]=n[11],{R:n,m:i,N:o}},Rt.quantize.estats=function(e){const t=e.R,r=e.m,n=e.N,i=r[0],o=r[1],s=r[2],a=r[3],c=n===0?0:1/n,l=[t[0]-i*i*c,t[1]-i*o*c,t[2]-i*s*c,t[3]-i*a*c,t[4]-o*i*c,t[5]-o*o*c,t[6]-o*s*c,t[7]-o*a*c,t[8]-s*i*c,t[9]-s*o*c,t[10]-s*s*c,t[11]-s*a*c,t[12]-a*i*c,t[13]-a*o*c,t[14]-a*s*c,t[15]-a*a*c],u=l,h=Rt.M4;let f=[Math.random(),Math.random(),Math.random(),Math.random()],d=0,p=0;if(n!==0)for(let b=0;b<16&&(f=h.multVec(u,f),p=Math.sqrt(h.dot(f,f)),f=h.sml(1/p,f),!(b!==0&&Math.abs(p-d)<1e-9));b++)d=p;const m=[i*c,o*c,s*c,a*c],v=h.dot(h.sml(255,m),f);return{Cov:l,q:m,e:f,L:d,eMq255:v,eMq:h.dot(f,m),rgba:(Math.round(255*m[3])<<24|Math.round(255*m[2])<<16|Math.round(255*m[1])<<8|Math.round(255*m[0])<<0)>>>0}},Rt.M4={multVec:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]]},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},sml:function(e,t){return[e*t[0],e*t[1],e*t[2],e*t[3]]}},Rt.encode.concatRGBA=function(e){let t=0;for(let i=0;i<e.length;i++)t+=e[i].byteLength;const r=new Uint8Array(t);let n=0;for(let i=0;i<e.length;i++){const o=new Uint8Array(e[i]),s=o.length;for(let a=0;a<s;a+=4){let c=o[a],l=o[a+1],u=o[a+2];const h=o[a+3];h===0&&(c=l=u=0),r[n+a]=c,r[n+a+1]=l,r[n+a+2]=u,r[n+a+3]=h}n+=s}return r.buffer};const wi={glog:function(e){if(e<1)throw new Error("glog("+e+")");return wi.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return wi.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(let e=0;e<8;e++)wi.EXP_TABLE[e]=1<<e;for(let e=8;e<256;e++)wi.EXP_TABLE[e]=wi.EXP_TABLE[e-4]^wi.EXP_TABLE[e-5]^wi.EXP_TABLE[e-6]^wi.EXP_TABLE[e-8];for(let e=0;e<255;e++)wi.LOG_TABLE[wi.EXP_TABLE[e]]=e;let mc;typeof self>"u"&&typeof process<"u"&&process.hrtime?mc=function(){const e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?mc=self.performance.now.bind(self.performance):Date.now!==void 0?mc=Date.now:mc=function(){return new Date().getTime()};const AK=mc;let DK=class{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(e=>this._tweens[e])}removeAll(){this._tweens={}}add(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e}remove(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]}update(e=AK(),t=!1){let r=Object.keys(this._tweens);if(r.length===0)return!1;for(;r.length>0;){this._tweensAddedDuringUpdate={};for(let n=0;n<r.length;n++){const i=this._tweens[r[n]],o=!t;i&&i.update(e,o)===!1&&!t&&delete this._tweens[r[n]]}r=Object.keys(this._tweensAddedDuringUpdate)}return!0}};const xi=new DK;xi.getAll.bind(xi),xi.removeAll.bind(xi),xi.add.bind(xi),xi.remove.bind(xi),xi.update.bind(xi);var ME=null;if(navigator.mozGetUserMedia)window.webrtcDetectedBrowser="firefox",window.webrtcDetectedVersion=parseInt(navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1],10),RTCSessionDescription=mozRTCSessionDescription,RTCIceCandidate=mozRTCIceCandidate,window.getUserMedia=navigator.mozGetUserMedia.bind(navigator),navigator.getUserMedia=ME,window.createIceServer=function(e,t,r){var n=null,i=e.split(":");if(i[0].indexOf("stun")===0)n={url:e};else if(i[0].indexOf("turn")===0){var o=e.split("?");(o.length===1||o[1].indexOf("transport=udp")===0)&&(n={url:o[0],credential:r,username:t})}return n},window.createIceServers=function(e,t,r){for(var n=[],i=0;i<e.length;i++){var o=createIceServer(e[i],t,r);o!==null&&n.push(o)}return n},window.attachMediaStream=function(e,t){e.mozSrcObject=t,e.play()},window.reattachMediaStream=function(e,t){e.mozSrcObject=t.mozSrcObject,e.play()};else if(navigator.webkitGetUserMedia){window.webrtcDetectedBrowser="chrome";var LE=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);LE!==null?window.webrtcDetectedVersion=parseInt(LE[2],10):window.webrtcDetectedVersion=999,window.createIceServer=function(e,t,r){var n=null,i=e.split(":");return i[0].indexOf("stun")===0?n={url:e}:i[0].indexOf("turn")===0&&(n={url:e,credential:r,username:t}),n},window.createIceServers=function(e,t,r){for(var n=[],i=0;i<e.length;i++){var o=createIceServer(e[i],t,r);o!==null&&n.push(o)}return n},window.getUserMedia=navigator.webkitGetUserMedia.bind(navigator),navigator.getUserMedia=ME,window.attachMediaStream=function(e,t){typeof e.srcObject<"u"?e.srcObject=t:typeof e.mozSrcObject<"u"?e.mozSrcObject=t:typeof e.src<"u"&&(e.src=URL.createObjectURL(t))},window.reattachMediaStream=function(e,t){e.src=t.src}}var Ey={exports:{}},gc={},Cy={},ky={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function r(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof Fg<"u"?Fg:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},e.Konva={_global:e.glob,version:"9.2.2",isBrowser:r(),isUnminified:/param/.test(function(i){}.toString()),dblClickWindow:400,getAngle(i){return e.Konva.angleDeg?i*t:i},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(i){e.glob.Konva=i}};const n=i=>{e.Konva[i.prototype.getClassName()]=i};e._registerNode=n,e.Konva._injectGlobal(e.Konva)})(ky);const RK=vn(ky),IK=oe({__proto__:null,default:RK},[ky]),ke=se(IK);var Py={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=ke;class r{constructor(S=[1,0,0,1,0,0]){this.dirty=!1,this.m=S&&S.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(S){S.m[0]=this.m[0],S.m[1]=this.m[1],S.m[2]=this.m[2],S.m[3]=this.m[3],S.m[4]=this.m[4],S.m[5]=this.m[5]}point(S){var A=this.m;return{x:A[0]*S.x+A[2]*S.y+A[4],y:A[1]*S.x+A[3]*S.y+A[5]}}translate(S,A){return this.m[4]+=this.m[0]*S+this.m[2]*A,this.m[5]+=this.m[1]*S+this.m[3]*A,this}scale(S,A){return this.m[0]*=S,this.m[1]*=S,this.m[2]*=A,this.m[3]*=A,this}rotate(S){var A=Math.cos(S),E=Math.sin(S),N=this.m[0]*A+this.m[2]*E,D=this.m[1]*A+this.m[3]*E,U=this.m[0]*-E+this.m[2]*A,G=this.m[1]*-E+this.m[3]*A;return this.m[0]=N,this.m[1]=D,this.m[2]=U,this.m[3]=G,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(S,A){var E=this.m[0]+this.m[2]*A,N=this.m[1]+this.m[3]*A,D=this.m[2]+this.m[0]*S,U=this.m[3]+this.m[1]*S;return this.m[0]=E,this.m[1]=N,this.m[2]=D,this.m[3]=U,this}multiply(S){var A=this.m[0]*S.m[0]+this.m[2]*S.m[1],E=this.m[1]*S.m[0]+this.m[3]*S.m[1],N=this.m[0]*S.m[2]+this.m[2]*S.m[3],D=this.m[1]*S.m[2]+this.m[3]*S.m[3],U=this.m[0]*S.m[4]+this.m[2]*S.m[5]+this.m[4],G=this.m[1]*S.m[4]+this.m[3]*S.m[5]+this.m[5];return this.m[0]=A,this.m[1]=E,this.m[2]=N,this.m[3]=D,this.m[4]=U,this.m[5]=G,this}invert(){var S=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),A=this.m[3]*S,E=-this.m[1]*S,N=-this.m[2]*S,D=this.m[0]*S,U=S*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),G=S*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=A,this.m[1]=E,this.m[2]=N,this.m[3]=D,this.m[4]=U,this.m[5]=G,this}getMatrix(){return this.m}decompose(){var S=this.m[0],A=this.m[1],E=this.m[2],N=this.m[3],D=this.m[4],U=this.m[5],G=S*N-A*E;let K={x:D,y:U,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(S!=0||A!=0){var W=Math.sqrt(S*S+A*A);K.rotation=A>0?Math.acos(S/W):-Math.acos(S/W),K.scaleX=W,K.scaleY=G/W,K.skewX=(S*E+A*N)/G,K.skewY=0}else if(E!=0||N!=0){var ot=Math.sqrt(E*E+N*N);K.rotation=Math.PI/2-(N>0?Math.acos(-E/ot):-Math.acos(E/ot)),K.scaleX=G/ot,K.scaleY=ot,K.skewX=0,K.skewY=(S*E+A*N)/G}return K.rotation=e.Util._getRotation(K.rotation),K}}e.Transform=r;var n="[object Array]",i="[object Number]",o="[object String]",s="[object Boolean]",a=Math.PI/180,c=180/Math.PI,l="#",u="",h="0",f="Konva warning: ",d="Konva error: ",p="rgb(",m={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},v=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,b=[];const _=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(g){setTimeout(g,60)};e.Util={_isElement(g){return!!(g&&g.nodeType==1)},_isFunction(g){return!!(g&&g.constructor&&g.call&&g.apply)},_isPlainObject(g){return!!g&&g.constructor===Object},_isArray(g){return Object.prototype.toString.call(g)===n},_isNumber(g){return Object.prototype.toString.call(g)===i&&!isNaN(g)&&isFinite(g)},_isString(g){return Object.prototype.toString.call(g)===o},_isBoolean(g){return Object.prototype.toString.call(g)===s},isObject(g){return g instanceof Object},isValidSelector(g){if(typeof g!="string")return!1;var S=g[0];return S==="#"||S==="."||S===S.toUpperCase()},_sign(g){return g===0||g>0?1:-1},requestAnimFrame(g){b.push(g),b.length===1&&_(function(){const S=b;b=[],S.forEach(function(A){A()})})},createCanvasElement(){var g=document.createElement("canvas");try{g.style=g.style||{}}catch{}return g},createImageElement(){return document.createElement("img")},_isInDocument(g){for(;g=g.parentNode;)if(g==document)return!0;return!1},_urlToImage(g,S){var A=e.Util.createImageElement();A.onload=function(){S(A)},A.src=g},_rgbToHex(g,S,A){return((1<<24)+(g<<16)+(S<<8)+A).toString(16).slice(1)},_hexToRgb(g){g=g.replace(l,u);var S=parseInt(g,16);return{r:S>>16&255,g:S>>8&255,b:S&255}},getRandomColor(){for(var g=(Math.random()*16777215<<0).toString(16);g.length<6;)g=h+g;return l+g},getRGB(g){var S;return g in m?(S=m[g],{r:S[0],g:S[1],b:S[2]}):g[0]===l?this._hexToRgb(g.substring(1)):g.substr(0,4)===p?(S=v.exec(g.replace(/ /g,"")),{r:parseInt(S[1],10),g:parseInt(S[2],10),b:parseInt(S[3],10)}):{r:0,g:0,b:0}},colorToRGBA(g){return g=g||"black",e.Util._namedColorToRBA(g)||e.Util._hex3ColorToRGBA(g)||e.Util._hex4ColorToRGBA(g)||e.Util._hex6ColorToRGBA(g)||e.Util._hex8ColorToRGBA(g)||e.Util._rgbColorToRGBA(g)||e.Util._rgbaColorToRGBA(g)||e.Util._hslColorToRGBA(g)},_namedColorToRBA(g){var S=m[g.toLowerCase()];return S?{r:S[0],g:S[1],b:S[2],a:1}:null},_rgbColorToRGBA(g){if(g.indexOf("rgb(")===0){g=g.match(/rgb\(([^)]+)\)/)[1];var S=g.split(/ *, */).map(Number);return{r:S[0],g:S[1],b:S[2],a:1}}},_rgbaColorToRGBA(g){if(g.indexOf("rgba(")===0){g=g.match(/rgba\(([^)]+)\)/)[1];var S=g.split(/ *, */).map((A,E)=>A.slice(-1)==="%"?E===3?parseInt(A)/100:parseInt(A)/100*255:Number(A));return{r:S[0],g:S[1],b:S[2],a:S[3]}}},_hex8ColorToRGBA(g){if(g[0]==="#"&&g.length===9)return{r:parseInt(g.slice(1,3),16),g:parseInt(g.slice(3,5),16),b:parseInt(g.slice(5,7),16),a:parseInt(g.slice(7,9),16)/255}},_hex6ColorToRGBA(g){if(g[0]==="#"&&g.length===7)return{r:parseInt(g.slice(1,3),16),g:parseInt(g.slice(3,5),16),b:parseInt(g.slice(5,7),16),a:1}},_hex4ColorToRGBA(g){if(g[0]==="#"&&g.length===5)return{r:parseInt(g[1]+g[1],16),g:parseInt(g[2]+g[2],16),b:parseInt(g[3]+g[3],16),a:parseInt(g[4]+g[4],16)/255}},_hex3ColorToRGBA(g){if(g[0]==="#"&&g.length===4)return{r:parseInt(g[1]+g[1],16),g:parseInt(g[2]+g[2],16),b:parseInt(g[3]+g[3],16),a:1}},_hslColorToRGBA(g){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(g)){const[S,...A]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(g),E=Number(A[0])/360,N=Number(A[1])/100,D=Number(A[2])/100;let U,G,K;if(N===0)return K=D*255,{r:Math.round(K),g:Math.round(K),b:Math.round(K),a:1};D<.5?U=D*(1+N):U=D+N-D*N;const W=2*D-U,ot=[0,0,0];for(let nt=0;nt<3;nt++)G=E+1/3*-(nt-1),G<0&&G++,G>1&&G--,6*G<1?K=W+(U-W)*6*G:2*G<1?K=U:3*G<2?K=W+(U-W)*(2/3-G)*6:K=W,ot[nt]=K*255;return{r:Math.round(ot[0]),g:Math.round(ot[1]),b:Math.round(ot[2]),a:1}}},haveIntersection(g,S){return!(S.x>g.x+g.width||S.x+S.width<g.x||S.y>g.y+g.height||S.y+S.height<g.y)},cloneObject(g){var S={};for(var A in g)this._isPlainObject(g[A])?S[A]=this.cloneObject(g[A]):this._isArray(g[A])?S[A]=this.cloneArray(g[A]):S[A]=g[A];return S},cloneArray(g){return g.slice(0)},degToRad(g){return g*a},radToDeg(g){return g*c},_degToRad(g){return e.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),e.Util.degToRad(g)},_radToDeg(g){return e.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),e.Util.radToDeg(g)},_getRotation(g){return t.Konva.angleDeg?e.Util.radToDeg(g):g},_capitalize(g){return g.charAt(0).toUpperCase()+g.slice(1)},throw(g){throw new Error(d+g)},error(g){console.error(d+g)},warn(g){t.Konva.showWarnings&&console.warn(f+g)},each(g,S){for(var A in g)S(A,g[A])},_inRange(g,S,A){return S<=g&&g<A},_getProjectionToSegment(g,S,A,E,N,D){var U,G,K,W=(g-A)*(g-A)+(S-E)*(S-E);if(W==0)U=g,G=S,K=(N-A)*(N-A)+(D-E)*(D-E);else{var ot=((N-g)*(A-g)+(D-S)*(E-S))/W;ot<0?(U=g,G=S,K=(g-N)*(g-N)+(S-D)*(S-D)):ot>1?(U=A,G=E,K=(A-N)*(A-N)+(E-D)*(E-D)):(U=g+ot*(A-g),G=S+ot*(E-S),K=(U-N)*(U-N)+(G-D)*(G-D))}return[U,G,K]},_getProjectionToLine(g,S,A){var E=e.Util.cloneObject(g),N=Number.MAX_VALUE;return S.forEach(function(D,U){if(!(!A&&U===S.length-1)){var G=S[(U+1)%S.length],K=e.Util._getProjectionToSegment(D.x,D.y,G.x,G.y,g.x,g.y),W=K[0],ot=K[1],nt=K[2];nt<N&&(E.x=W,E.y=ot,N=nt)}}),E},_prepareArrayForTween(g,S,A){var E,N=[],D=[];if(g.length>S.length){var U=S;S=g,g=U}for(E=0;E<g.length;E+=2)N.push({x:g[E],y:g[E+1]});for(E=0;E<S.length;E+=2)D.push({x:S[E],y:S[E+1]});var G=[];return D.forEach(function(K){var W=e.Util._getProjectionToLine(K,N,A);G.push(W.x),G.push(W.y)}),G},_prepareToStringify(g){var S;g.visitedByCircularReferenceRemoval=!0;for(var A in g)if(g.hasOwnProperty(A)&&g[A]&&typeof g[A]=="object"){if(S=Object.getOwnPropertyDescriptor(g,A),g[A].visitedByCircularReferenceRemoval||e.Util._isElement(g[A]))if(S.configurable)delete g[A];else return null;else if(e.Util._prepareToStringify(g[A])===null)if(S.configurable)delete g[A];else return null}return delete g.visitedByCircularReferenceRemoval,g},_assign(g,S){for(var A in S)g[A]=S[A];return g},_getFirstPointerId(g){return g.touches?g.changedTouches[0].identifier:g.pointerId||999},releaseCanvas(...g){t.Konva.releaseCanvasOnDestroy&&g.forEach(S=>{S.width=0,S.height=0})},drawRoundedRectPath(g,S,A,E){let N=0,D=0,U=0,G=0;typeof E=="number"?N=D=U=G=Math.min(E,S/2,A/2):(N=Math.min(E[0]||0,S/2,A/2),D=Math.min(E[1]||0,S/2,A/2),G=Math.min(E[2]||0,S/2,A/2),U=Math.min(E[3]||0,S/2,A/2)),g.moveTo(N,0),g.lineTo(S-D,0),g.arc(S-D,D,D,Math.PI*3/2,0,!1),g.lineTo(S,A-G),g.arc(S-G,A-G,G,0,Math.PI/2,!1),g.lineTo(U,A),g.arc(U,A-U,U,Math.PI/2,Math.PI,!1),g.lineTo(0,N),g.arc(N,N,N,Math.PI,Math.PI*3/2,!1)}}})(Py);const jK=vn(Py),FK=oe({__proto__:null,default:jK},[Py]),dr=se(FK);var yc={},Ty={},sr={};Object.defineProperty(sr,"__esModule",{value:!0});var UE=sr.getComponentValidator=JE=sr.getBooleanValidator=XE=sr.getNumberArrayValidator=YE=sr.getFunctionValidator=KE=sr.getStringOrGradientValidator=qE=sr.getStringValidator=HE=sr.getNumberOrAutoValidator=BE=sr.getNumberOrArrayOfNumbersValidator=GE=sr.getNumberValidator=zE=sr.alphaComponent=VE=sr.RGBComponent=void 0;const to=ke,fr=dr;function eo(e){return fr.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||fr.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function MK(e){return e>255?255:e<0?0:Math.round(e)}var VE=sr.RGBComponent=MK;function LK(e){return e>1?1:e<1e-4?1e-4:e}var zE=sr.alphaComponent=LK;function UK(){if(to.Konva.isUnminified)return function(e,t){return fr.Util._isNumber(e)||fr.Util.warn(eo(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}var GE=sr.getNumberValidator=UK;function VK(e){if(to.Konva.isUnminified)return function(t,r){let n=fr.Util._isNumber(t),i=fr.Util._isArray(t)&&t.length==e;return!n&&!i&&fr.Util.warn(eo(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array<number>('+e+")"),t}}var BE=sr.getNumberOrArrayOfNumbersValidator=VK;function zK(){if(to.Konva.isUnminified)return function(e,t){var r=fr.Util._isNumber(e),n=e==="auto";return r||n||fr.Util.warn(eo(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}var HE=sr.getNumberOrAutoValidator=zK;function GK(){if(to.Konva.isUnminified)return function(e,t){return fr.Util._isString(e)||fr.Util.warn(eo(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}var qE=sr.getStringValidator=GK;function BK(){if(to.Konva.isUnminified)return function(e,t){const r=fr.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||fr.Util.warn(eo(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}var KE=sr.getStringOrGradientValidator=BK;function HK(){if(to.Konva.isUnminified)return function(e,t){return fr.Util._isFunction(e)||fr.Util.warn(eo(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}var YE=sr.getFunctionValidator=HK;function qK(){if(to.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(fr.Util._isArray(e)?e.forEach(function(n){fr.Util._isNumber(n)||fr.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):fr.Util.warn(eo(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}var XE=sr.getNumberArrayValidator=qK;function KK(){if(to.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||fr.Util.warn(eo(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}var JE=sr.getBooleanValidator=KK;function YK(e){if(to.Konva.isUnminified)return function(t,r){return t==null||fr.Util.isObject(t)||fr.Util.warn(eo(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}UE=sr.getComponentValidator=YK;const XK=oe({__proto__:null,get RGBComponent(){return VE},get alphaComponent(){return zE},default:sr,get getBooleanValidator(){return JE},get getComponentValidator(){return UE},get getFunctionValidator(){return YE},get getNumberArrayValidator(){return XE},get getNumberOrArrayOfNumbersValidator(){return BE},get getNumberOrAutoValidator(){return HE},get getNumberValidator(){return GE},get getStringOrGradientValidator(){return KE},get getStringValidator(){return qE}},[sr]),Pe=se(XK);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=dr,r=Pe;var n="get",i="set";e.Factory={addGetterSetter(o,s,a,c,l){e.Factory.addGetter(o,s,a),e.Factory.addSetter(o,s,c,l),e.Factory.addOverloadedGetterSetter(o,s)},addGetter(o,s,a){var c=n+t.Util._capitalize(s);o.prototype[c]=o.prototype[c]||function(){var l=this.attrs[s];return l===void 0?a:l}},addSetter(o,s,a,c){var l=i+t.Util._capitalize(s);o.prototype[l]||e.Factory.overWriteSetter(o,s,a,c)},overWriteSetter(o,s,a,c){var l=i+t.Util._capitalize(s);o.prototype[l]=function(u){return a&&u!==void 0&&u!==null&&(u=a.call(this,u,s)),this._setAttr(s,u),c&&c.call(this),this}},addComponentsGetterSetter(o,s,a,c,l){var u=a.length,h=t.Util._capitalize,f=n+h(s),d=i+h(s),p,m;o.prototype[f]=function(){var b={};for(p=0;p<u;p++)m=a[p],b[m]=this.getAttr(s+h(m));return b};var v=(0,r.getComponentValidator)(a);o.prototype[d]=function(b){var _=this.attrs[s],g;c&&(b=c.call(this,b)),v&&v.call(this,b,s);for(g in b)b.hasOwnProperty(g)&&this._setAttr(s+h(g),b[g]);return b||a.forEach(S=>{this._setAttr(s+h(S),void 0)}),this._fireChangeEvent(s,_,b),l&&l.call(this),this},e.Factory.addOverloadedGetterSetter(o,s)},addOverloadedGetterSetter(o,s){var a=t.Util._capitalize(s),c=i+a,l=n+a;o.prototype[s]=function(){return arguments.length?(this[c](arguments[0]),this):this[l]()}},addDeprecatedGetterSetter(o,s,a,c){t.Util.error("Adding deprecated "+s);var l=n+t.Util._capitalize(s),u=s+" property is deprecated and will be removed soon. Look at Konva change log for more information.";o.prototype[l]=function(){t.Util.error(u);var h=this.attrs[s];return h===void 0?a:h},e.Factory.addSetter(o,s,c,function(){t.Util.error(u)}),e.Factory.addOverloadedGetterSetter(o,s)},backCompat(o,s){t.Util.each(s,function(a,c){var l=o.prototype[c],u=n+t.Util._capitalize(a),h=i+t.Util._capitalize(a);function f(){l.apply(this,arguments),t.Util.error('"'+a+'" method is deprecated and will be removed soon. Use ""'+c+'" instead.')}o.prototype[a]=f,o.prototype[u]=f,o.prototype[h]=f})},afterSetFilter(){this._filterUpToDate=!1}}})(Ty);const JK=vn(Ty),WK=oe({__proto__:null,default:JK},[Ty]),Ee=se(WK);var ro={},no={};Object.defineProperty(no,"__esModule",{value:!0});var WE=no.HitContext=r3=no.SceneContext=e3=no.Context=void 0;const QE=dr,QK=ke;function ZK(e){var t=[],r=e.length,n=QE.Util,i,o;for(i=0;i<r;i++)o=e[i],n._isNumber(o)?o=Math.round(o*1e3)/1e3:n._isString(o)||(o=o+""),t.push(o);return t}var ZE=",",tY="(",eY=")",rY="([",nY="])",iY=";",oY="()",sY="=",t3=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],aY=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const lY=100;class kd{constructor(t){this.canvas=t,QK.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,r){var n=this.traceArr,i=n.length,o="",s,a,c,l;for(s=0;s<i;s++)a=n[s],c=a.method,c?(l=a.args,o+=c,t?o+=oY:QE.Util._isArray(l[0])?o+=rY+l.join(ZE)+nY:(r&&(l=l.map(u=>typeof u=="number"?Math.floor(u):u)),o+=tY+l.join(ZE)+eY)):(o+=a.property,t||(o+=sY+a.val)),o+=iY;return o}clearTrace(){this.traceArr=[]}_trace(t){var r=this.traceArr,n;r.push(t),n=r.length,n>=lY&&r.shift()}reset(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){var r=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,r.getWidth()/r.pixelRatio,r.getHeight()/r.pixelRatio)}_applyLineCap(t){const r=t.attrs.lineCap;r&&this.setAttr("lineCap",r)}_applyOpacity(t){var r=t.getAbsoluteOpacity();r!==1&&this.setAttr("globalAlpha",r)}_applyLineJoin(t){const r=t.attrs.lineJoin;r&&this.setAttr("lineJoin",r)}setAttr(t,r){this._context[t]=r}arc(t,r,n,i,o,s){this._context.arc(t,r,n,i,o,s)}arcTo(t,r,n,i,o){this._context.arcTo(t,r,n,i,o)}beginPath(){this._context.beginPath()}bezierCurveTo(t,r,n,i,o,s){this._context.bezierCurveTo(t,r,n,i,o,s)}clearRect(t,r,n,i){this._context.clearRect(t,r,n,i)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,r){var n=arguments;if(n.length===2)return this._context.createImageData(t,r);if(n.length===1)return this._context.createImageData(t)}createLinearGradient(t,r,n,i){return this._context.createLinearGradient(t,r,n,i)}createPattern(t,r){return this._context.createPattern(t,r)}createRadialGradient(t,r,n,i,o,s){return this._context.createRadialGradient(t,r,n,i,o,s)}drawImage(t,r,n,i,o,s,a,c,l){var u=arguments,h=this._context;u.length===3?h.drawImage(t,r,n):u.length===5?h.drawImage(t,r,n,i,o):u.length===9&&h.drawImage(t,r,n,i,o,s,a,c,l)}ellipse(t,r,n,i,o,s,a,c){this._context.ellipse(t,r,n,i,o,s,a,c)}isPointInPath(t,r,n,i){return n?this._context.isPointInPath(n,t,r,i):this._context.isPointInPath(t,r,i)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,r,n,i){this._context.fillRect(t,r,n,i)}strokeRect(t,r,n,i){this._context.strokeRect(t,r,n,i)}fillText(t,r,n,i){i?this._context.fillText(t,r,n,i):this._context.fillText(t,r,n)}measureText(t){return this._context.measureText(t)}getImageData(t,r,n,i){return this._context.getImageData(t,r,n,i)}lineTo(t,r){this._context.lineTo(t,r)}moveTo(t,r){this._context.moveTo(t,r)}rect(t,r,n,i){this._context.rect(t,r,n,i)}putImageData(t,r,n){this._context.putImageData(t,r,n)}quadraticCurveTo(t,r,n,i){this._context.quadraticCurveTo(t,r,n,i)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,r){this._context.scale(t,r)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,r,n,i,o,s){this._context.setTransform(t,r,n,i,o,s)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,r,n,i){this._context.strokeText(t,r,n,i)}transform(t,r,n,i,o,s){this._context.transform(t,r,n,i,o,s)}translate(t,r){this._context.translate(t,r)}_enableTrace(){var t=this,r=t3.length,n=this.setAttr,i,o,s=function(a){var c=t[a],l;t[a]=function(){return o=ZK(Array.prototype.slice.call(arguments,0)),l=c.apply(t,arguments),t._trace({method:a,args:o}),l}};for(i=0;i<r;i++)s(t3[i]);t.setAttr=function(){n.apply(t,arguments);var a=arguments[0],c=arguments[1];(a==="shadowOffsetX"||a==="shadowOffsetY"||a==="shadowBlur")&&(c=c/this.canvas.getPixelRatio()),t._trace({property:a,val:c})}}_applyGlobalCompositeOperation(t){const r=t.attrs.globalCompositeOperation;var n=!r||r==="source-over";n||this.setAttr("globalCompositeOperation",r)}}var e3=no.Context=kd;aY.forEach(function(e){Object.defineProperty(kd.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});class cY extends kd{constructor(t,{willReadFrequently:r=!1}={}){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:r})}_fillColor(t){var r=t.fill();this.setAttr("fillStyle",r),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){var r=t._getLinearGradient();r&&(this.setAttr("fillStyle",r),t._fillFunc(this))}_fillRadialGradient(t){const r=t._getRadialGradient();r&&(this.setAttr("fillStyle",r),t._fillFunc(this))}_fill(t){const r=t.fill(),n=t.getFillPriority();if(r&&n==="color"){this._fillColor(t);return}const i=t.getFillPatternImage();if(i&&n==="pattern"){this._fillPattern(t);return}const o=t.getFillLinearGradientColorStops();if(o&&n==="linear-gradient"){this._fillLinearGradient(t);return}const s=t.getFillRadialGradientColorStops();if(s&&n==="radial-gradient"){this._fillRadialGradient(t);return}r?this._fillColor(t):i?this._fillPattern(t):o?this._fillLinearGradient(t):s&&this._fillRadialGradient(t)}_strokeLinearGradient(t){const r=t.getStrokeLinearGradientStartPoint(),n=t.getStrokeLinearGradientEndPoint(),i=t.getStrokeLinearGradientColorStops(),o=this.createLinearGradient(r.x,r.y,n.x,n.y);if(i){for(var s=0;s<i.length;s+=2)o.addColorStop(i[s],i[s+1]);this.setAttr("strokeStyle",o)}}_stroke(t){var r=t.dash(),n=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!n){this.save();var i=this.getCanvas().getPixelRatio();this.setTransform(i,0,0,i,0,0)}this._applyLineCap(t),r&&t.dashEnabled()&&(this.setLineDash(r),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var o=t.getStrokeLinearGradientColorStops();o?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),n||this.restore()}}_applyShadow(t){var r,n,i,o=(r=t.getShadowRGBA())!==null&&r!==void 0?r:"black",s=(n=t.getShadowBlur())!==null&&n!==void 0?n:5,a=(i=t.getShadowOffset())!==null&&i!==void 0?i:{x:0,y:0},c=t.getAbsoluteScale(),l=this.canvas.getPixelRatio(),u=c.x*l,h=c.y*l;this.setAttr("shadowColor",o),this.setAttr("shadowBlur",s*Math.min(Math.abs(u),Math.abs(h))),this.setAttr("shadowOffsetX",a.x*u),this.setAttr("shadowOffsetY",a.y*h)}}var r3=no.SceneContext=cY;class uY extends kd{constructor(t){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:!0})}_fill(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()}strokeShape(t){t.hasHitStroke()&&this._stroke(t)}_stroke(t){if(t.hasHitStroke()){const o=t.getStrokeScaleEnabled();if(!o){this.save();var r=this.getCanvas().getPixelRatio();this.setTransform(r,0,0,r,0,0)}this._applyLineCap(t);var n=t.hitStrokeWidth(),i=n==="auto"?t.strokeWidth():n;this.setAttr("lineWidth",i),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),o||this.restore()}}}WE=no.HitContext=uY;const hY=oe({__proto__:null,get Context(){return e3},get HitContext(){return WE},get SceneContext(){return r3},default:no},[no]),n3=se(hY);Object.defineProperty(ro,"__esModule",{value:!0});var i3=ro.HitCanvas=l3=ro.SceneCanvas=a3=ro.Canvas=void 0;const Pd=dr,o3=n3,s3=ke,dY=Ee,fY=Pe;var Td;function pY(){if(Td)return Td;var e=Pd.Util.createCanvasElement(),t=e.getContext("2d");return Td=function(){var r=s3.Konva._global.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return r/n}(),Pd.Util.releaseCanvas(e),Td}class Od{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var r=t||{},n=r.pixelRatio||s3.Konva.pixelRatio||pY();this.pixelRatio=n,this._canvas=Pd.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){var r=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/r,this.getHeight()/r)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var r=this.pixelRatio,n=this.getContext()._context;n.scale(r,r)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var r=this.pixelRatio,n=this.getContext()._context;n.scale(r,r)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,r){this.setWidth(t||0),this.setHeight(r||0)}toDataURL(t,r){try{return this._canvas.toDataURL(t,r)}catch{try{return this._canvas.toDataURL()}catch(n){return Pd.Util.error("Unable to get data URL. "+n.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}var a3=ro.Canvas=Od;dY.Factory.addGetterSetter(Od,"pixelRatio",void 0,(0,fY.getNumberValidator)());class mY extends Od{constructor(t={width:0,height:0,willReadFrequently:!1}){super(t),this.context=new o3.SceneContext(this,{willReadFrequently:t.willReadFrequently}),this.setSize(t.width,t.height)}}var l3=ro.SceneCanvas=mY;class gY extends Od{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new o3.HitContext(this),this.setSize(t.width,t.height)}}i3=ro.HitCanvas=gY;const yY=oe({__proto__:null,get Canvas(){return a3},get HitCanvas(){return i3},get SceneCanvas(){return l3},default:ro},[ro]),Nd=se(yY);var Oy={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DD=void 0;const t=ke,r=dr;e.DD={get isDragging(){var n=!1;return e.DD._dragElements.forEach(i=>{i.dragStatus==="dragging"&&(n=!0)}),n},justDragged:!1,get node(){var n;return e.DD._dragElements.forEach(i=>{n=i.node}),n},_dragElements:new Map,_drag(n){const i=[];e.DD._dragElements.forEach((o,s)=>{const{node:a}=o,c=a.getStage();c.setPointersPositions(n),o.pointerId===void 0&&(o.pointerId=r.Util._getFirstPointerId(n));const l=c._changedPointerPositions.find(f=>f.id===o.pointerId);if(l){if(o.dragStatus!=="dragging"){var u=a.dragDistance(),h=Math.max(Math.abs(l.x-o.startPointerPos.x),Math.abs(l.y-o.startPointerPos.y));if(h<u||(a.startDrag({evt:n}),!a.isDragging()))return}a._setDragPosition(n,o),i.push(a)}}),i.forEach(o=>{o.fire("dragmove",{type:"dragmove",target:o,evt:n},!0)})},_endDragBefore(n){const i=[];e.DD._dragElements.forEach(o=>{const{node:s}=o,a=s.getStage();if(n&&a.setPointersPositions(n),!a._changedPointerPositions.find(l=>l.id===o.pointerId))return;(o.dragStatus==="dragging"||o.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,o.dragStatus="stopped");const c=o.node.getLayer()||o.node instanceof t.Konva.Stage&&o.node;c&&i.indexOf(c)===-1&&i.push(c)}),i.forEach(o=>{o.draw()})},_endDragAfter(n){e.DD._dragElements.forEach((i,o)=>{i.dragStatus==="stopped"&&i.node.fire("dragend",{type:"dragend",target:i.node,evt:n},!0),i.dragStatus!=="dragging"&&e.DD._dragElements.delete(o)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1))})(Oy);const vY=vn(Oy),_Y=oe({__proto__:null,default:vY},[Oy]),Ny=se(_Y);Object.defineProperty(yc,"__esModule",{value:!0});var c3=yc.Node=void 0;const Te=dr,vc=Ee,Ad=Nd,Ts=ke,Nn=Ny,vr=Pe;var Dd="absoluteOpacity",Rd="allEventListeners",io="absoluteTransform",u3="absoluteScale",Os="canvas",bY="Change",wY="children",xY="konva",Ay="listening",h3="mouseenter",d3="mouseleave",f3="set",p3="Shape",Id=" ",m3="stage",Ro="transform",$Y="Stage",Dy="visible",SY=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Id);let EY=1,be=class v1{constructor(t){this._id=EY++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===Ro||t===io)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,r){var n=this._cache.get(t),i=t===Ro||t===io,o=n===void 0||i&&n.dirty===!0;return o&&(n=r.call(this),this._cache.set(t,n)),n}_calculate(t,r,n){if(!this._attachedDepsListeners.get(t)){const i=r.map(o=>o+"Change.konva").join(Id);this.on(i,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(Os)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===io&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Os)){const{scene:t,filter:r,hit:n}=this._cache.get(Os);Te.Util.releaseCanvas(t,r,n),this._cache.delete(Os)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){var r=t||{},n={};(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var i=Math.ceil(r.width||n.width),o=Math.ceil(r.height||n.height),s=r.pixelRatio,a=r.x===void 0?Math.floor(n.x):r.x,c=r.y===void 0?Math.floor(n.y):r.y,l=r.offset||0,u=r.drawBorder||!1,h=r.hitCanvasPixelRatio||1;if(!i||!o){Te.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}i+=l*2+1,o+=l*2+1,a-=l,c-=l;var f=new Ad.SceneCanvas({pixelRatio:s,width:i,height:o}),d=new Ad.SceneCanvas({pixelRatio:s,width:0,height:0,willReadFrequently:!0}),p=new Ad.HitCanvas({pixelRatio:h,width:i,height:o}),m=f.getContext(),v=p.getContext();return p.isCache=!0,f.isCache=!0,this._cache.delete(Os),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(f.getContext()._context.imageSmoothingEnabled=!1,d.getContext()._context.imageSmoothingEnabled=!1),m.save(),v.save(),m.translate(-a,-c),v.translate(-a,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Dd),this._clearSelfAndDescendantCache(u3),this.drawScene(f,this),this.drawHit(p,this),this._isUnderCache=!1,m.restore(),v.restore(),u&&(m.save(),m.beginPath(),m.rect(0,0,i,o),m.closePath(),m.setAttr("strokeStyle","red"),m.setAttr("lineWidth",5),m.stroke(),m.restore()),this._cache.set(Os,{scene:f,filter:d,hit:p,x:a,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(Os)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,r){var n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],i=1/0,o=1/0,s=-1/0,a=-1/0,c=this.getAbsoluteTransform(r);return n.forEach(function(l){var u=c.point(l);i===void 0&&(i=s=u.x,o=a=u.y),i=Math.min(i,u.x),o=Math.min(o,u.y),s=Math.max(s,u.x),a=Math.max(a,u.y)}),{x:i,y:o,width:s-i,height:a-o}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const r=this._getCanvasCache();t.translate(r.x,r.y);var n=this._getCachedSceneCanvas(),i=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/i,n.height/i),t.restore()}_drawCachedHitCanvas(t){var r=this._getCanvasCache(),n=r.hit;t.save(),t.translate(r.x,r.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){var t=this.filters(),r=this._getCanvasCache(),n=r.scene,i=r.filter,o=i.getContext(),s,a,c,l;if(t){if(!this._filterUpToDate){var u=n.pixelRatio;i.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(s=t.length,o.clear(),o.drawImage(n._canvas,0,0,n.getWidth()/u,n.getHeight()/u),a=o.getImageData(0,0,i.getWidth(),i.getHeight()),c=0;c<s;c++){if(l=t[c],typeof l!="function"){Te.Util.error("Filter should be type of function, but got "+typeof l+" instead. Please check correct filters");continue}l.call(this,a),o.putImageData(a,0,0)}}catch(h){Te.Util.error("Unable to apply filter. "+h.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return i}return n}on(t,r){if(this._cache&&this._cache.delete(Rd),arguments.length===3)return this._delegate.apply(this,arguments);var n=t.split(Id),i=n.length,o,s,a,c,l;for(o=0;o<i;o++)s=n[o],a=s.split("."),c=a[0],l=a[1]||"",this.eventListeners[c]||(this.eventListeners[c]=[]),this.eventListeners[c].push({name:l,handler:r});return this}off(t,r){var n=(t||"").split(Id),i=n.length,o,s,a,c,l,u;if(this._cache&&this._cache.delete(Rd),!t)for(s in this.eventListeners)this._off(s);for(o=0;o<i;o++)if(a=n[o],c=a.split("."),l=c[0],u=c[1],l)this.eventListeners[l]&&this._off(l,u,r);else for(s in this.eventListeners)this._off(s,u,r);return this}dispatchEvent(t){var r={target:this,type:t.type,evt:t};return this.fire(t.type,r),this}addEventListener(t,r){return this.on(t,function(n){r.call(this,n.evt)}),this}removeEventListener(t){return this.off(t),this}_delegate(t,r,n){var i=this;this.on(t,function(o){for(var s=o.target.findAncestors(r,!0,i),a=0;a<s.length;a++)o=Te.Util.cloneObject(o),o.currentTarget=s[a],n.call(s[a],o)})}remove(){return this.isDragging()&&this.stopDrag(),Nn.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(io),this._clearSelfAndDescendantCache(Dd),this._clearSelfAndDescendantCache(u3),this._clearSelfAndDescendantCache(m3),this._clearSelfAndDescendantCache(Dy),this._clearSelfAndDescendantCache(Ay)}_remove(){this._clearCaches();var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(t){var r="get"+Te.Util._capitalize(t);return Te.Util._isFunction(this[r])?this[r]():this.attrs[t]}getAncestors(){for(var t=this.getParent(),r=[];t;)r.push(t),t=t.getParent();return r}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges(()=>{var r,n;if(!t)return this;for(r in t)r!==wY&&(n=f3+Te.Util._capitalize(r),Te.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(Ay,this._isListening)}_isListening(t){if(!this.listening())return!1;const r=this.getParent();return r&&r!==t&&this!==t?r._isListening(t):!0}isVisible(){return this._getCache(Dy,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const r=this.getParent();return r&&r!==t&&this!==t?r._isVisible(t):!0}shouldDrawHit(t,r=!1){if(t)return this._isVisible(t)&&this._isListening(t);var n=this.getLayer(),i=!1;Nn.DD._dragElements.forEach(s=>{s.dragStatus==="dragging"&&(s.node.nodeType==="Stage"||s.node.getLayer()===n)&&(i=!0)});var o=!r&&!Ts.Konva.hitOnDragEnabled&&i;return this.isListening()&&this.isVisible()&&!o}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var t=this.getDepth(),r=this,n=0,i,o,s,a;function c(u){for(i=[],o=u.length,s=0;s<o;s++)a=u[s],n++,a.nodeType!==p3&&(i=i.concat(a.getChildren().slice())),a._id===r._id&&(s=o);i.length>0&&i[0].getDepth()<=t&&c(i)}const l=this.getStage();return r.nodeType!==$Y&&l&&c(l.getChildren()),n}getDepth(){for(var t=0,r=this.parent;r;)t++,r=r.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Ro),this._clearSelfAndDescendantCache(io)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;var r=t.getPointerPosition();if(!r)return null;var n=this.getAbsoluteTransform().copy();return n.invert(),n.point(r)}getAbsolutePosition(t){let r=!1,n=this.parent;for(;n;){if(n.isCached()){r=!0;break}n=n.parent}r&&!t&&(t=!0);var i=this.getAbsoluteTransform(t).getMatrix(),o=new Te.Transform,s=this.offset();return o.m=i.slice(),o.translate(s.x,s.y),o.getTranslation()}setAbsolutePosition(t){const{x:r,y:n,...i}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Ro);var o=this._getAbsoluteTransform().copy();return o.invert(),o.translate(t.x,t.y),t={x:this.attrs.x+o.getTranslation().x,y:this.attrs.y+o.getTranslation().y},this._setTransform(i),this.setPosition({x:t.x,y:t.y}),this._clearCache(Ro),this._clearSelfAndDescendantCache(io),this}_setTransform(t){var r;for(r in t)this.attrs[r]=t[r]}_clearTransform(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){var r=t.x,n=t.y,i=this.x(),o=this.y();return r!==void 0&&(i+=r),n!==void 0&&(o+=n),this.setPosition({x:i,y:o}),this}_eachAncestorReverse(t,r){var n=[],i=this.getParent(),o,s;if(!(r&&r._id===this._id)){for(n.unshift(this);i&&(!r||i._id!==r._id);)n.unshift(i),i=i.parent;for(o=n.length,s=0;s<o;s++)t(n[s])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return Te.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index,r=this.parent.getChildren().length;return t<r-1?(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return Te.Util.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index,r=this.parent.getChildren().length;return t<r-1?(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return Te.Util.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Te.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return Te.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Te.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var r=this.index;return this.parent.children.splice(r,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Dd,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var t=this.opacity(),r=this.getParent();return r&&!r._isUnderCache&&(t*=r.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){var t={},r=this.getAttrs(),n,i,o,s,a;t.attrs={};for(n in r)i=r[n],a=Te.Util.isObject(i)&&!Te.Util._isPlainObject(i)&&!Te.Util._isArray(i),!a&&(o=typeof this[n]=="function"&&this[n],delete r[n],s=o?o.call(this):null,r[n]=i,s!==i&&(t.attrs[n]=i));return t.className=this.getClassName(),Te.Util._prepareToStringify(t)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,r,n){var i=[];r&&this._isMatch(t)&&i.push(this);for(var o=this.parent;o;){if(o===n)return i;o._isMatch(t)&&i.push(o),o=o.parent}return i}isAncestorOf(t){return!1}findAncestor(t,r,n){return this.findAncestors(t,r,n)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);var r=t.replace(/ /g,"").split(","),n=r.length,i,o;for(i=0;i<n;i++)if(o=r[i],Te.Util.isValidSelector(o)||(Te.Util.warn('Selector "'+o+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),Te.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),Te.Util.warn("Konva is awesome, right?")),o.charAt(0)==="#"){if(this.id()===o.slice(1))return!0}else if(o.charAt(0)==="."){if(this.hasName(o.slice(1)))return!0}else if(this.className===o||this.nodeType===o)return!0;return!1}getLayer(){var t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache(m3,this._getStage)}_getStage(){var t=this.getParent();return t?t.getStage():null}fire(t,r={},n){return r.target=r.target||this,n?this._fireAndBubble(t,r):this._fire(t,r),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache(io,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var r;if(t)return r=new Te.Transform,this._eachAncestorReverse(function(i){var o=i.transformsEnabled();o==="all"?r.multiply(i.getTransform()):o==="position"&&r.translate(i.x()-i.offsetX(),i.y()-i.offsetY())},t),r;r=this._cache.get(io)||new Te.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(r):r.reset();var n=this.transformsEnabled();if(n==="all")r.multiply(this.getTransform());else if(n==="position"){const i=this.attrs.x||0,o=this.attrs.y||0,s=this.attrs.offsetX||0,a=this.attrs.offsetY||0;r.translate(i-s,o-a)}return r.dirty=!1,r}getAbsoluteScale(t){for(var r=this;r;)r._isUnderCache&&(t=r),r=r.getParent();const n=this.getAbsoluteTransform(t).decompose();return{x:n.scaleX,y:n.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(Ro,this._getTransform)}_getTransform(){var t,r,n=this._cache.get(Ro)||new Te.Transform;n.reset();var i=this.x(),o=this.y(),s=Ts.Konva.getAngle(this.rotation()),a=(t=this.attrs.scaleX)!==null&&t!==void 0?t:1,c=(r=this.attrs.scaleY)!==null&&r!==void 0?r:1,l=this.attrs.skewX||0,u=this.attrs.skewY||0,h=this.attrs.offsetX||0,f=this.attrs.offsetY||0;return(i!==0||o!==0)&&n.translate(i,o),s!==0&&n.rotate(s),(l!==0||u!==0)&&n.skew(l,u),(a!==1||c!==1)&&n.scale(a,c),(h!==0||f!==0)&&n.translate(-1*h,-1*f),n.dirty=!1,n}clone(t){var r=Te.Util.cloneObject(this.attrs),n,i,o,s,a;for(n in t)r[n]=t[n];var c=new this.constructor(r);for(n in this.eventListeners)for(i=this.eventListeners[n],o=i.length,s=0;s<o;s++)a=i[s],a.name.indexOf(xY)<0&&(c.eventListeners[n]||(c.eventListeners[n]=[]),c.eventListeners[n].push(a));return c}_toKonvaCanvas(t){t=t||{};var r=this.getClientRect(),n=this.getStage(),i=t.x!==void 0?t.x:Math.floor(r.x),o=t.y!==void 0?t.y:Math.floor(r.y),s=t.pixelRatio||1,a=new Ad.SceneCanvas({width:t.width||Math.ceil(r.width)||(n?n.width():0),height:t.height||Math.ceil(r.height)||(n?n.height():0),pixelRatio:s}),c=a.getContext();return t.imageSmoothingEnabled===!1&&(c._context.imageSmoothingEnabled=!1),c.save(),(i||o)&&c.translate(-1*i,-1*o),this.drawScene(a),c.restore(),a}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){t=t||{};var r=t.mimeType||null,n=t.quality||null,i=this._toKonvaCanvas(t).toDataURL(r,n);return t.callback&&t.callback(i),i}toImage(t){return new Promise((r,n)=>{try{const i=t?.callback;i&&delete t.callback,Te.Util._urlToImage(this.toDataURL(t),function(o){r(o),i?.(o)})}catch(i){n(i)}})}toBlob(t){return new Promise((r,n)=>{try{const i=t?.callback;i&&delete t.callback,this.toCanvas(t).toBlob(o=>{r(o),i?.(o)})}catch(i){n(i)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Ts.Konva.dragDistance}_off(t,r,n){var i=this.eventListeners[t],o,s,a;for(o=0;o<i.length;o++)if(s=i[o].name,a=i[o].handler,(s!=="konva"||r==="konva")&&(!r||s===r)&&(!n||n===a)){if(i.splice(o,1),i.length===0){delete this.eventListeners[t];break}o--}}_fireChangeEvent(t,r,n){this._fire(t+bY,{oldVal:r,newVal:n})}addName(t){if(!this.hasName(t)){var r=this.name(),n=r?r+" "+t:t;this.name(n)}return this}hasName(t){if(!t)return!1;const r=this.name();if(!r)return!1;var n=(r||"").split(/\s/g);return n.indexOf(t)!==-1}removeName(t){var r=(this.name()||"").split(/\s/g),n=r.indexOf(t);return n!==-1&&(r.splice(n,1),this.name(r.join(" "))),this}setAttr(t,r){var n=this[f3+Te.Util._capitalize(t)];return Te.Util._isFunction(n)?n.call(this,r):this._setAttr(t,r),this}_requestDraw(){Ts.Konva.autoDrawEnabled&&(this.getLayer()||this.getStage())?.batchDraw()}_setAttr(t,r){var n=this.attrs[t];n===r&&!Te.Util.isObject(r)||(r==null?delete this.attrs[t]:this.attrs[t]=r,this._shouldFireChangeEvents&&this._fireChangeEvent(t,n,r),this._requestDraw())}_setComponentAttr(t,r,n){var i;n!==void 0&&(i=this.attrs[t],i||(this.attrs[t]=this.getAttr(t)),this.attrs[t][r]=n,this._fireChangeEvent(t,i,n))}_fireAndBubble(t,r,n){r&&this.nodeType===p3&&(r.target=this);var i=(t===h3||t===d3)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||this.nodeType==="Stage"&&!n);if(!i){this._fire(t,r);var o=(t===h3||t===d3)&&n&&n.isAncestorOf&&n.isAncestorOf(this)&&!n.isAncestorOf(this.parent);(r&&!r.cancelBubble||!r)&&this.parent&&this.parent.isListening()&&!o&&(n&&n.parent?this._fireAndBubble.call(this.parent,t,r,n):this._fireAndBubble.call(this.parent,t,r))}}_getProtoListeners(t){var r,n,i;const o=(r=this._cache.get(Rd))!==null&&r!==void 0?r:{};let s=o?.[t];if(s===void 0){s=[];let a=Object.getPrototypeOf(this);for(;a;){const c=(i=(n=a.eventListeners)===null||n===void 0?void 0:n[t])!==null&&i!==void 0?i:[];s.push(...c),a=Object.getPrototypeOf(a)}o[t]=s,this._cache.set(Rd,o)}return s}_fire(t,r){r=r||{},r.currentTarget=this,r.type=t;const n=this._getProtoListeners(t);if(n)for(var i=0;i<n.length;i++)n[i].handler.call(this,r);const o=this.eventListeners[t];if(o)for(var i=0;i<o.length;i++)o[i].handler.call(this,r)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){var r=t?t.pointerId:void 0,n=this.getStage(),i=this.getAbsolutePosition();if(n){var o=n._getPointerById(r)||n._changedPointerPositions[0]||i;Nn.DD._dragElements.set(this._id,{node:this,startPointerPos:o,offset:{x:o.x-i.x,y:o.y-i.y},dragStatus:"ready",pointerId:r})}}startDrag(t,r=!0){Nn.DD._dragElements.has(this._id)||this._createDragElement(t);const n=Nn.DD._dragElements.get(this._id);n.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},r)}_setDragPosition(t,r){const n=this.getStage()._getPointerById(r.pointerId);if(n){var i={x:n.x-r.offset.x,y:n.y-r.offset.y},o=this.dragBoundFunc();if(o!==void 0){const s=o.call(this,i,t);s?i=s:Te.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==i.x||this._lastPos.y!==i.y)&&(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}}stopDrag(t){const r=Nn.DD._dragElements.get(this._id);r&&(r.dragStatus="stopped"),Nn.DD._endDragBefore(t),Nn.DD._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=Nn.DD._dragElements.get(this._id);return t?t.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(t){var r=t.evt.button!==void 0,n=!r||Ts.Konva.dragButtons.indexOf(t.evt.button)>=0;if(n&&!this.isDragging()){var i=!1;Nn.DD._dragElements.forEach(o=>{this.isAncestorOf(o.node)&&(i=!0)}),i||this._createDragElement(t)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage();if(!t)return;const r=Nn.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",i=r&&r.dragStatus==="ready";n?this.stopDrag():i&&Nn.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const r=this.getStage();if(!r)return!1;const n={x:-t.x,y:-t.y,width:r.width()+2*t.x,height:r.height()+2*t.y};return Te.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return Te.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){var n=v1.prototype.getClassName.call(t),i=t.children,o,s,a;r&&(t.attrs.container=r),Ts.Konva[n]||(Te.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const c=Ts.Konva[n];if(o=new c(t.attrs),i)for(s=i.length,a=0;a<s;a++)o.add(v1._createNode(i[a]));return o}};c3=yc.Node=be,be.prototype.nodeType="Node",be.prototype._attrsAffectingSize=[],be.prototype.eventListeners={},be.prototype.on.call(be.prototype,SY,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(Ro),this._clearSelfAndDescendantCache(io)}),be.prototype.on.call(be.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(Dy)}),be.prototype.on.call(be.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(Ay)}),be.prototype.on.call(be.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(Dd)});const We=vc.Factory.addGetterSetter;We(be,"zIndex"),We(be,"absolutePosition"),We(be,"position"),We(be,"x",0,(0,vr.getNumberValidator)()),We(be,"y",0,(0,vr.getNumberValidator)()),We(be,"globalCompositeOperation","source-over",(0,vr.getStringValidator)()),We(be,"opacity",1,(0,vr.getNumberValidator)()),We(be,"name","",(0,vr.getStringValidator)()),We(be,"id","",(0,vr.getStringValidator)()),We(be,"rotation",0,(0,vr.getNumberValidator)()),vc.Factory.addComponentsGetterSetter(be,"scale",["x","y"]),We(be,"scaleX",1,(0,vr.getNumberValidator)()),We(be,"scaleY",1,(0,vr.getNumberValidator)()),vc.Factory.addComponentsGetterSetter(be,"skew",["x","y"]),We(be,"skewX",0,(0,vr.getNumberValidator)()),We(be,"skewY",0,(0,vr.getNumberValidator)()),vc.Factory.addComponentsGetterSetter(be,"offset",["x","y"]),We(be,"offsetX",0,(0,vr.getNumberValidator)()),We(be,"offsetY",0,(0,vr.getNumberValidator)()),We(be,"dragDistance",null,(0,vr.getNumberValidator)()),We(be,"width",0,(0,vr.getNumberValidator)()),We(be,"height",0,(0,vr.getNumberValidator)()),We(be,"listening",!0,(0,vr.getBooleanValidator)()),We(be,"preventDefault",!0,(0,vr.getBooleanValidator)()),We(be,"filters",null,function(e){return this._filterUpToDate=!1,e}),We(be,"visible",!0,(0,vr.getBooleanValidator)()),We(be,"transformsEnabled","all",(0,vr.getStringValidator)()),We(be,"size"),We(be,"dragBoundFunc"),We(be,"draggable",!1,(0,vr.getBooleanValidator)()),vc.Factory.backCompat(be,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});const CY=oe({__proto__:null,get Node(){return c3},default:yc},[yc]),_r=se(CY);var _c={};Object.defineProperty(_c,"__esModule",{value:!0});var g3=_c.Container=void 0;const xa=Ee,Ry=_r,jd=Pe;class Ns extends Ry.Node{constructor(){super(...arguments),this.children=[]}getChildren(t){if(!t)return this.children||[];const r=this.children||[];var n=[];return r.forEach(function(i){t(i)&&n.push(i)}),n}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(var r=0;r<t.length;r++)this.add(t[r]);return this}const n=t[0];return n.getParent()?(n.moveTo(this),this):(this._validateAdd(n),n.index=this.getChildren().length,n.parent=this,n._clearCaches(),this.getChildren().push(n),this._fire("add",{child:n}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(t){return this._generalFind(t,!1)}findOne(t){var r=this._generalFind(t,!0);return r.length>0?r[0]:void 0}_generalFind(t,r){var n=[];return this._descendants(i=>{const o=i._isMatch(t);return o&&n.push(i),!!(o&&r)}),n}_descendants(t){let r=!1;const n=this.getChildren();for(const i of n)if(r=t(i),r||i.hasChildren()&&(r=i._descendants(t),r))return!0;return!1}toObject(){var t=Ry.Node.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(r=>{t.children.push(r.toObject())}),t}isAncestorOf(t){for(var r=t.getParent();r;){if(r._id===this._id)return!0;r=r.getParent()}return!1}clone(t){var r=Ry.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(n){r.add(n.clone())}),r}getAllIntersections(t){var r=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(t)&&r.push(n)}),r}_clearSelfAndDescendantCache(t){var r;super._clearSelfAndDescendantCache(t),!this.isCached()&&((r=this.children)===null||r===void 0||r.forEach(function(n){n._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(r,n){r.index=n}),this._requestDraw()}drawScene(t,r){var n=this.getLayer(),i=t||n&&n.getCanvas(),o=i&&i.getContext(),s=this._getCanvasCache(),a=s&&s.scene,c=i&&i.isCache;if(!this.isVisible()&&!c)return this;if(a){o.save();var l=this.getAbsoluteTransform(r).getMatrix();o.transform(l[0],l[1],l[2],l[3],l[4],l[5]),this._drawCachedSceneCanvas(o),o.restore()}else this._drawChildren("drawScene",i,r);return this}drawHit(t,r){if(!this.shouldDrawHit(r))return this;var n=this.getLayer(),i=t||n&&n.hitCanvas,o=i&&i.getContext(),s=this._getCanvasCache(),a=s&&s.hit;if(a){o.save();var c=this.getAbsoluteTransform(r).getMatrix();o.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedHitCanvas(o),o.restore()}else this._drawChildren("drawHit",i,r);return this}_drawChildren(t,r,n){var i,o=r&&r.getContext(),s=this.clipWidth(),a=this.clipHeight(),c=this.clipFunc(),l=s&&a||c;const u=n===this;if(l){o.save();var h=this.getAbsoluteTransform(n),f=h.getMatrix();o.transform(f[0],f[1],f[2],f[3],f[4],f[5]),o.beginPath();let v;if(c)v=c.call(this,o,this);else{var d=this.clipX(),p=this.clipY();o.rect(d,p,s,a)}o.clip.apply(o,v),f=h.copy().invert().getMatrix(),o.transform(f[0],f[1],f[2],f[3],f[4],f[5])}var m=!u&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";m&&(o.save(),o._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(v){v[t](r,n)}),m&&o.restore(),l&&o.restore()}getClientRect(t={}){var r,n=t.skipTransform,i=t.relativeTo,o,s,a,c,l={x:1/0,y:1/0,width:0,height:0},u=this;(r=this.children)===null||r===void 0||r.forEach(function(m){if(m.visible()){var v=m.getClientRect({relativeTo:u,skipShadow:t.skipShadow,skipStroke:t.skipStroke});v.width===0&&v.height===0||(o===void 0?(o=v.x,s=v.y,a=v.x+v.width,c=v.y+v.height):(o=Math.min(o,v.x),s=Math.min(s,v.y),a=Math.max(a,v.x+v.width),c=Math.max(c,v.y+v.height)))}});for(var h=this.find("Shape"),f=!1,d=0;d<h.length;d++){var p=h[d];if(p._isVisible(this)){f=!0;break}}return f&&o!==void 0?l={x:o,y:s,width:a-o,height:c-s}:l={x:0,y:0,width:0,height:0},n?l:this._transformedRect(l,i)}}g3=_c.Container=Ns,xa.Factory.addComponentsGetterSetter(Ns,"clip",["x","y","width","height"]),xa.Factory.addGetterSetter(Ns,"clipX",void 0,(0,jd.getNumberValidator)()),xa.Factory.addGetterSetter(Ns,"clipY",void 0,(0,jd.getNumberValidator)()),xa.Factory.addGetterSetter(Ns,"clipWidth",void 0,(0,jd.getNumberValidator)()),xa.Factory.addGetterSetter(Ns,"clipHeight",void 0,(0,jd.getNumberValidator)()),xa.Factory.addGetterSetter(Ns,"clipFunc");const kY=oe({__proto__:null,get Container(){return g3},default:_c},[_c]),Fd=se(kY);var Iy={},wn={};Object.defineProperty(wn,"__esModule",{value:!0});var y3=wn.releaseCapture=x3=wn.setPointerCapture=w3=wn.hasPointerCapture=b3=wn.createEvent=_3=wn.getCapturedShape=void 0;const PY=ke,bc=new Map,v3=PY.Konva._global.PointerEvent!==void 0;function TY(e){return bc.get(e)}var _3=wn.getCapturedShape=TY;function jy(e){return{evt:e,pointerId:e.pointerId}}var b3=wn.createEvent=jy;function OY(e,t){return bc.get(e)===t}var w3=wn.hasPointerCapture=OY;function NY(e,t){$3(e),t.getStage()&&(bc.set(e,t),v3&&t._fire("gotpointercapture",jy(new PointerEvent("gotpointercapture"))))}var x3=wn.setPointerCapture=NY;function $3(e,t){const r=bc.get(e);if(!r)return;const n=r.getStage();n&&n.content,bc.delete(e),v3&&r._fire("lostpointercapture",jy(new PointerEvent("lostpointercapture")))}y3=wn.releaseCapture=$3;const AY=oe({__proto__:null,get createEvent(){return b3},default:wn,get getCapturedShape(){return _3},get hasPointerCapture(){return w3},get releaseCapture(){return y3},get setPointerCapture(){return x3}},[wn]),S3=se(AY);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Stage=e.stages=void 0;const t=dr,r=Ee,n=Fd,i=ke,o=Nd,s=Ny,a=ke,c=S3;var l="Stage",u="string",h="px",f="mouseout",d="mouseleave",p="mouseover",m="mouseenter",v="mousemove",b="mousedown",_="mouseup",g="pointermove",S="pointerdown",A="pointerup",E="pointercancel",N="lostpointercapture",D="pointerout",U="pointerleave",G="pointerover",K="pointerenter",W="contextmenu",ot="touchstart",nt="touchend",ft="touchmove",$t="touchcancel",_t="wheel",vt=5,at=[[m,"_pointerenter"],[b,"_pointerdown"],[v,"_pointermove"],[_,"_pointerup"],[d,"_pointerleave"],[ot,"_pointerdown"],[ft,"_pointermove"],[nt,"_pointerup"],[$t,"_pointercancel"],[p,"_pointerover"],[_t,"_wheel"],[W,"_contextmenu"],[S,"_pointerdown"],[g,"_pointermove"],[A,"_pointerup"],[E,"_pointercancel"],[N,"_lostpointercapture"]];const Y={mouse:{[D]:f,[U]:d,[G]:p,[K]:m,[g]:v,[S]:b,[A]:_,[E]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[D]:"touchout",[U]:"touchleave",[G]:"touchover",[K]:"touchenter",[g]:ft,[S]:ot,[A]:nt,[E]:$t,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[D]:D,[U]:U,[G]:G,[K]:K,[g]:g,[S]:S,[A]:A,[E]:E,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},T=M=>M.indexOf("pointer")>=0?"pointer":M.indexOf("touch")>=0?"touch":"mouse",C=M=>{const I=T(M);if(I==="pointer")return i.Konva.pointerEventsEnabled&&Y.pointer;if(I==="touch")return Y.touch;if(I==="mouse")return Y.mouse};function $(M={}){return(M.clipFunc||M.clipWidth||M.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),M}const y="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class k extends n.Container{constructor(I){super($(I)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{$(this.attrs)}),this._checkVisibility()}_validateAdd(I){const z=I.getType()==="Layer",q=I.getType()==="FastLayer";z||q||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const I=this.visible()?"":"none";this.content.style.display=I}setContainer(I){if(typeof I===u){if(I.charAt(0)==="."){var z=I.slice(1);I=document.getElementsByClassName(z)[0]}else{var q;I.charAt(0)!=="#"?q=I:q=I.slice(1),I=document.getElementById(q)}if(!I)throw"Can not find container in document with id "+q}return this._setAttr("container",I),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),I.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var I=this.children,z=I.length,q;for(q=0;q<z;q++)I[q].clear();return this}clone(I){return I||(I={}),I.container=typeof document<"u"&&document.createElement("div"),n.Container.prototype.clone.call(this,I)}destroy(){super.destroy();var I=this.content;I&&t.Util._isInDocument(I)&&this.container().removeChild(I);var z=e.stages.indexOf(this);return z>-1&&e.stages.splice(z,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const I=this._pointerPositions[0]||this._changedPointerPositions[0];return I?{x:I.x,y:I.y}:(t.Util.warn(y),null)}_getPointerById(I){return this._pointerPositions.find(z=>z.id===I)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(I){I=I||{},I.x=I.x||0,I.y=I.y||0,I.width=I.width||this.width(),I.height=I.height||this.height();var z=new o.SceneCanvas({width:I.width,height:I.height,pixelRatio:I.pixelRatio||1}),q=z.getContext()._context,et=this.children;return(I.x||I.y)&&q.translate(-1*I.x,-1*I.y),et.forEach(function(st){if(st.isVisible()){var mt=st._toKonvaCanvas(I);q.drawImage(mt._canvas,I.x,I.y,mt.getWidth()/mt.getPixelRatio(),mt.getHeight()/mt.getPixelRatio())}}),z}getIntersection(I){if(!I)return null;var z=this.children,q=z.length,et=q-1,st;for(st=et;st>=0;st--){const mt=z[st].getIntersection(I);if(mt)return mt}return null}_resizeDOM(){var I=this.width(),z=this.height();this.content&&(this.content.style.width=I+h,this.content.style.height=z+h),this.bufferCanvas.setSize(I,z),this.bufferHitCanvas.setSize(I,z),this.children.forEach(q=>{q.setSize({width:I,height:z}),q.draw()})}add(I,...z){if(arguments.length>1){for(var q=0;q<arguments.length;q++)this.add(arguments[q]);return this}super.add(I);var et=this.children.length;return et>vt&&t.Util.warn("The stage has "+et+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),I.setSize({width:this.width(),height:this.height()}),I.draw(),i.Konva.isBrowser&&this.content.appendChild(I.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(I){return c.hasPointerCapture(I,this)}setPointerCapture(I){c.setPointerCapture(I,this)}releaseCapture(I){c.releaseCapture(I,this)}getLayers(){return this.children}_bindContentEvents(){i.Konva.isBrowser&&at.forEach(([I,z])=>{this.content.addEventListener(I,q=>{this[z](q)},{passive:!1})})}_pointerenter(I){this.setPointersPositions(I);const z=C(I.type);z&&this._fire(z.pointerenter,{evt:I,target:this,currentTarget:this})}_pointerover(I){this.setPointersPositions(I);const z=C(I.type);z&&this._fire(z.pointerover,{evt:I,target:this,currentTarget:this})}_getTargetShape(I){let z=this[I+"targetShape"];return z&&!z.getStage()&&(z=null),z}_pointerleave(I){const z=C(I.type),q=T(I.type);if(z){this.setPointersPositions(I);var et=this._getTargetShape(q),st=!s.DD.isDragging||i.Konva.hitOnDragEnabled;et&&st?(et._fireAndBubble(z.pointerout,{evt:I}),et._fireAndBubble(z.pointerleave,{evt:I}),this._fire(z.pointerleave,{evt:I,target:this,currentTarget:this}),this[q+"targetShape"]=null):st&&(this._fire(z.pointerleave,{evt:I,target:this,currentTarget:this}),this._fire(z.pointerout,{evt:I,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(I){const z=C(I.type),q=T(I.type);if(z){this.setPointersPositions(I);var et=!1;this._changedPointerPositions.forEach(st=>{var mt=this.getIntersection(st);if(s.DD.justDragged=!1,i.Konva["_"+q+"ListenClick"]=!0,!mt||!mt.isListening())return;i.Konva.capturePointerEventsEnabled&&mt.setPointerCapture(st.id),this[q+"ClickStartShape"]=mt,mt._fireAndBubble(z.pointerdown,{evt:I,pointerId:st.id}),et=!0;const Mt=I.type.indexOf("touch")>=0;mt.preventDefault()&&I.cancelable&&Mt&&I.preventDefault()}),et||this._fire(z.pointerdown,{evt:I,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(I){const z=C(I.type),q=T(I.type);if(!z)return;s.DD.isDragging&&s.DD.node.preventDefault()&&I.cancelable&&I.preventDefault(),this.setPointersPositions(I);var et=!s.DD.isDragging||i.Konva.hitOnDragEnabled;if(!et)return;var st={};let mt=!1;var Mt=this._getTargetShape(q);this._changedPointerPositions.forEach(X=>{const Q=c.getCapturedShape(X.id)||this.getIntersection(X),it=X.id,lt={evt:I,pointerId:it};var ct=Mt!==Q;if(ct&&Mt&&(Mt._fireAndBubble(z.pointerout,{...lt},Q),Mt._fireAndBubble(z.pointerleave,{...lt},Q)),Q){if(st[Q._id])return;st[Q._id]=!0}Q&&Q.isListening()?(mt=!0,ct&&(Q._fireAndBubble(z.pointerover,{...lt},Mt),Q._fireAndBubble(z.pointerenter,{...lt},Mt),this[q+"targetShape"]=Q),Q._fireAndBubble(z.pointermove,{...lt})):Mt&&(this._fire(z.pointerover,{evt:I,target:this,currentTarget:this,pointerId:it}),this[q+"targetShape"]=null)}),mt||this._fire(z.pointermove,{evt:I,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(I){const z=C(I.type),q=T(I.type);if(!z)return;this.setPointersPositions(I);const et=this[q+"ClickStartShape"],st=this[q+"ClickEndShape"];var mt={};let Mt=!1;this._changedPointerPositions.forEach(X=>{const Q=c.getCapturedShape(X.id)||this.getIntersection(X);if(Q){if(Q.releaseCapture(X.id),mt[Q._id])return;mt[Q._id]=!0}const it=X.id,lt={evt:I,pointerId:it};let ct=!1;i.Konva["_"+q+"InDblClickWindow"]?(ct=!0,clearTimeout(this[q+"DblTimeout"])):s.DD.justDragged||(i.Konva["_"+q+"InDblClickWindow"]=!0,clearTimeout(this[q+"DblTimeout"])),this[q+"DblTimeout"]=setTimeout(function(){i.Konva["_"+q+"InDblClickWindow"]=!1},i.Konva.dblClickWindow),Q&&Q.isListening()?(Mt=!0,this[q+"ClickEndShape"]=Q,Q._fireAndBubble(z.pointerup,{...lt}),i.Konva["_"+q+"ListenClick"]&&et&&et===Q&&(Q._fireAndBubble(z.pointerclick,{...lt}),ct&&st&&st===Q&&Q._fireAndBubble(z.pointerdblclick,{...lt}))):(this[q+"ClickEndShape"]=null,i.Konva["_"+q+"ListenClick"]&&this._fire(z.pointerclick,{evt:I,target:this,currentTarget:this,pointerId:it}),ct&&this._fire(z.pointerdblclick,{evt:I,target:this,currentTarget:this,pointerId:it}))}),Mt||this._fire(z.pointerup,{evt:I,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),i.Konva["_"+q+"ListenClick"]=!1,I.cancelable&&q!=="touch"&&I.preventDefault()}_contextmenu(I){this.setPointersPositions(I);var z=this.getIntersection(this.getPointerPosition());z&&z.isListening()?z._fireAndBubble(W,{evt:I}):this._fire(W,{evt:I,target:this,currentTarget:this})}_wheel(I){this.setPointersPositions(I);var z=this.getIntersection(this.getPointerPosition());z&&z.isListening()?z._fireAndBubble(_t,{evt:I}):this._fire(_t,{evt:I,target:this,currentTarget:this})}_pointercancel(I){this.setPointersPositions(I);const z=c.getCapturedShape(I.pointerId)||this.getIntersection(this.getPointerPosition());z&&z._fireAndBubble(A,c.createEvent(I)),c.releaseCapture(I.pointerId)}_lostpointercapture(I){c.releaseCapture(I.pointerId)}setPointersPositions(I){var z=this._getContentPosition(),q=null,et=null;I=I||window.event,I.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(I.touches,st=>{this._pointerPositions.push({id:st.identifier,x:(st.clientX-z.left)/z.scaleX,y:(st.clientY-z.top)/z.scaleY})}),Array.prototype.forEach.call(I.changedTouches||I.touches,st=>{this._changedPointerPositions.push({id:st.identifier,x:(st.clientX-z.left)/z.scaleX,y:(st.clientY-z.top)/z.scaleY})})):(q=(I.clientX-z.left)/z.scaleX,et=(I.clientY-z.top)/z.scaleY,this.pointerPos={x:q,y:et},this._pointerPositions=[{x:q,y:et,id:t.Util._getFirstPointerId(I)}],this._changedPointerPositions=[{x:q,y:et,id:t.Util._getFirstPointerId(I)}])}_setPointerPosition(I){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(I)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var I=this.content.getBoundingClientRect();return{top:I.top,left:I.left,scaleX:I.width/this.content.clientWidth||1,scaleY:I.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new o.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new o.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!!i.Konva.isBrowser){var I=this.container();if(!I)throw"Stage has no container. A container is required.";I.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),I.appendChild(this.content),this._resizeDOM()}}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(I){I.batchDraw()}),this}}e.Stage=k,k.prototype.nodeType=l,(0,a._registerNode)(k),r.Factory.addGetterSetter(k,"container")})(Iy);const DY=vn(Iy),RY=oe({__proto__:null,default:DY},[Iy]),IY=se(RY);var wc={},Fy={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=ke,r=dr,n=Ee,i=_r,o=Pe,s=ke,a=S3;var c="hasShadow",l="shadowRGBA",u="patternImage",h="linearGradient",f="radialGradient";let d;function p(){return d||(d=r.Util.createCanvasElement().getContext("2d"),d)}e.shapes={};function m(U){const G=this.attrs.fillRule;G?U.fill(G):U.fill()}function v(U){U.stroke()}function b(U){U.fill()}function _(U){U.stroke()}function g(){this._clearCache(c)}function S(){this._clearCache(l)}function A(){this._clearCache(u)}function E(){this._clearCache(h)}function N(){this._clearCache(f)}class D extends i.Node{constructor(G){super(G);let K;for(;K=r.Util.getRandomColor(),!(K&&!(K in e.shapes)););this.colorKey=K,e.shapes[K]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(c,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(u,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var G=p();const K=G.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(K&&K.setTransform){const W=new r.Transform;W.translate(this.fillPatternX(),this.fillPatternY()),W.rotate(t.Konva.getAngle(this.fillPatternRotation())),W.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),W.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const ot=W.getMatrix(),nt=typeof DOMMatrix>"u"?{a:ot[0],b:ot[1],c:ot[2],d:ot[3],e:ot[4],f:ot[5]}:new DOMMatrix(ot);K.setTransform(nt)}return K}}_getLinearGradient(){return this._getCache(h,this.__getLinearGradient)}__getLinearGradient(){var G=this.fillLinearGradientColorStops();if(G){for(var K=p(),W=this.fillLinearGradientStartPoint(),ot=this.fillLinearGradientEndPoint(),nt=K.createLinearGradient(W.x,W.y,ot.x,ot.y),ft=0;ft<G.length;ft+=2)nt.addColorStop(G[ft],G[ft+1]);return nt}}_getRadialGradient(){return this._getCache(f,this.__getRadialGradient)}__getRadialGradient(){var G=this.fillRadialGradientColorStops();if(G){for(var K=p(),W=this.fillRadialGradientStartPoint(),ot=this.fillRadialGradientEndPoint(),nt=K.createRadialGradient(W.x,W.y,this.fillRadialGradientStartRadius(),ot.x,ot.y,this.fillRadialGradientEndRadius()),ft=0;ft<G.length;ft+=2)nt.addColorStop(G[ft],G[ft+1]);return nt}}getShadowRGBA(){return this._getCache(l,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var G=r.Util.colorToRGBA(this.shadowColor());if(G)return"rgba("+G.r+","+G.g+","+G.b+","+G.a*(this.shadowOpacity()||1)+")"}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const G=this.hitStrokeWidth();return G==="auto"?this.hasStroke():this.strokeEnabled()&&!!G}intersects(G){var K=this.getStage();if(!K)return!1;const W=K.bufferHitCanvas;return W.getContext().clear(),this.drawHit(W,void 0,!0),W.context.getImageData(Math.round(G.x),Math.round(G.y),1,1).data[3]>0}destroy(){return i.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(G){var K;if(!this.getStage()||!(!((K=this.attrs.perfectDrawEnabled)!==null&&K!==void 0)||K))return!1;const W=G||this.hasFill(),ot=this.hasStroke(),nt=this.getAbsoluteOpacity()!==1;if(W&&ot&&nt)return!0;const ft=this.hasShadow(),$t=this.shadowForStrokeEnabled();return!!(W&&ot&&ft&&$t)}setStrokeHitEnabled(G){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),G?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var G=this.size();return{x:this._centroid?-G.width/2:0,y:this._centroid?-G.height/2:0,width:G.width,height:G.height}}getClientRect(G={}){const K=G.skipTransform,W=G.relativeTo,ot=this.getSelfRect(),nt=!G.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,ft=ot.width+nt,$t=ot.height+nt,_t=!G.skipShadow&&this.hasShadow(),vt=_t?this.shadowOffsetX():0,at=_t?this.shadowOffsetY():0,Y=ft+Math.abs(vt),T=$t+Math.abs(at),C=_t&&this.shadowBlur()||0,$=Y+C*2,y=T+C*2,k={width:$,height:y,x:-(nt/2+C)+Math.min(vt,0)+ot.x,y:-(nt/2+C)+Math.min(at,0)+ot.y};return K?k:this._transformedRect(k,W)}drawScene(G,K){var W=this.getLayer(),ot=G||W.getCanvas(),nt=ot.getContext(),ft=this._getCanvasCache(),$t=this.getSceneFunc(),_t=this.hasShadow(),vt,at,Y,T=ot.isCache,C=K===this;if(!this.isVisible()&&!C)return this;if(ft){nt.save();var $=this.getAbsoluteTransform(K).getMatrix();return nt.transform($[0],$[1],$[2],$[3],$[4],$[5]),this._drawCachedSceneCanvas(nt),nt.restore(),this}if(!$t)return this;if(nt.save(),this._useBufferCanvas()&&!T){vt=this.getStage(),at=vt.bufferCanvas,Y=at.getContext(),Y.clear(),Y.save(),Y._applyLineJoin(this);var y=this.getAbsoluteTransform(K).getMatrix();Y.transform(y[0],y[1],y[2],y[3],y[4],y[5]),$t.call(this,Y,this),Y.restore();var k=at.pixelRatio;_t&&nt._applyShadow(this),nt._applyOpacity(this),nt._applyGlobalCompositeOperation(this),nt.drawImage(at._canvas,0,0,at.width/k,at.height/k)}else{if(nt._applyLineJoin(this),!C){var y=this.getAbsoluteTransform(K).getMatrix();nt.transform(y[0],y[1],y[2],y[3],y[4],y[5]),nt._applyOpacity(this),nt._applyGlobalCompositeOperation(this)}_t&&nt._applyShadow(this),$t.call(this,nt,this)}return nt.restore(),this}drawHit(G,K,W=!1){if(!this.shouldDrawHit(K,W))return this;var ot=this.getLayer(),nt=G||ot.hitCanvas,ft=nt&&nt.getContext(),$t=this.hitFunc()||this.sceneFunc(),_t=this._getCanvasCache(),vt=_t&&_t.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),vt){ft.save();var at=this.getAbsoluteTransform(K).getMatrix();return ft.transform(at[0],at[1],at[2],at[3],at[4],at[5]),this._drawCachedHitCanvas(ft),ft.restore(),this}if(!$t)return this;if(ft.save(),ft._applyLineJoin(this),this!==K){var Y=this.getAbsoluteTransform(K).getMatrix();ft.transform(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5])}return $t.call(this,ft,this),ft.restore(),this}drawHitFromCache(G=0){var K=this._getCanvasCache(),W=this._getCachedSceneCanvas(),ot=K.hit,nt=ot.getContext(),ft=ot.getWidth(),$t=ot.getHeight(),_t,vt,at,Y,T,C;nt.clear(),nt.drawImage(W._canvas,0,0,ft,$t);try{for(_t=nt.getImageData(0,0,ft,$t),vt=_t.data,at=vt.length,Y=r.Util._hexToRgb(this.colorKey),T=0;T<at;T+=4)C=vt[T+3],C>G?(vt[T]=Y.r,vt[T+1]=Y.g,vt[T+2]=Y.b,vt[T+3]=255):vt[T+3]=0;nt.putImageData(_t,0,0)}catch($){r.Util.error("Unable to draw hit graph from cached scene canvas. "+$.message)}return this}hasPointerCapture(G){return a.hasPointerCapture(G,this)}setPointerCapture(G){a.setPointerCapture(G,this)}releaseCapture(G){a.releaseCapture(G,this)}}e.Shape=D,D.prototype._fillFunc=m,D.prototype._strokeFunc=v,D.prototype._fillFuncHit=b,D.prototype._strokeFuncHit=_,D.prototype._centroid=!1,D.prototype.nodeType="Shape",(0,s._registerNode)(D),D.prototype.eventListeners={},D.prototype.on.call(D.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",g),D.prototype.on.call(D.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",S),D.prototype.on.call(D.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",A),D.prototype.on.call(D.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",E),D.prototype.on.call(D.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",N),n.Factory.addGetterSetter(D,"stroke",void 0,(0,o.getStringOrGradientValidator)()),n.Factory.addGetterSetter(D,"strokeWidth",2,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(D,"hitStrokeWidth","auto",(0,o.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(D,"strokeHitEnabled",!0,(0,o.getBooleanValidator)()),n.Factory.addGetterSetter(D,"perfectDrawEnabled",!0,(0,o.getBooleanValidator)()),n.Factory.addGetterSetter(D,"shadowForStrokeEnabled",!0,(0,o.getBooleanValidator)()),n.Factory.addGetterSetter(D,"lineJoin"),n.Factory.addGetterSetter(D,"lineCap"),n.Factory.addGetterSetter(D,"sceneFunc"),n.Factory.addGetterSetter(D,"hitFunc"),n.Factory.addGetterSetter(D,"dash"),n.Factory.addGetterSetter(D,"dashOffset",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"shadowColor",void 0,(0,o.getStringValidator)()),n.Factory.addGetterSetter(D,"shadowBlur",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"shadowOpacity",1,(0,o.getNumberValidator)()),n.Factory.addComponentsGetterSetter(D,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(D,"shadowOffsetX",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"shadowOffsetY",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"fillPatternImage"),n.Factory.addGetterSetter(D,"fill",void 0,(0,o.getStringOrGradientValidator)()),n.Factory.addGetterSetter(D,"fillPatternX",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"fillPatternY",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(D,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(D,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(D,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(D,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(D,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(D,"fillEnabled",!0),n.Factory.addGetterSetter(D,"strokeEnabled",!0),n.Factory.addGetterSetter(D,"shadowEnabled",!0),n.Factory.addGetterSetter(D,"dashEnabled",!0),n.Factory.addGetterSetter(D,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(D,"fillPriority","color"),n.Factory.addComponentsGetterSetter(D,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(D,"fillPatternOffsetX",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"fillPatternOffsetY",0,(0,o.getNumberValidator)()),n.Factory.addComponentsGetterSetter(D,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(D,"fillPatternScaleX",1,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(D,"fillPatternScaleY",1,(0,o.getNumberValidator)()),n.Factory.addComponentsGetterSetter(D,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(D,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(D,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(D,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(D,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(D,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(D,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(D,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(D,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(D,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(D,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(D,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(D,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(D,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(D,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(D,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(D,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(D,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(D,"fillPatternRotation",0),n.Factory.addGetterSetter(D,"fillRule",void 0,(0,o.getStringValidator)()),n.Factory.backCompat(D,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(Fy);const jY=vn(Fy),FY=oe({__proto__:null,default:jY},[Fy]),Ar=se(FY);Object.defineProperty(wc,"__esModule",{value:!0});var E3=wc.Layer=void 0;const oo=dr,My=Fd,$a=_r,Ly=Ee,C3=Nd,MY=Pe,LY=Ar,UY=ke;var VY="#",zY="beforeDraw",GY="draw",k3=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],BY=k3.length;class Sa extends My.Container{constructor(t){super(t),this.canvas=new C3.SceneCanvas,this.hitCanvas=new C3.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);var r=this.getStage();return r&&r.content&&(r.content.removeChild(this.getNativeCanvasElement()),t<r.children.length-1?r.content.insertBefore(this.getNativeCanvasElement(),r.children[t+1].getCanvas()._canvas):r.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){$a.Node.prototype.moveToTop.call(this);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){var t=$a.Node.prototype.moveUp.call(this);if(!t)return!1;var r=this.getStage();return!r||!r.content?!1:(r.content.removeChild(this.getNativeCanvasElement()),this.index<r.children.length-1?r.content.insertBefore(this.getNativeCanvasElement(),r.children[this.index+1].getCanvas()._canvas):r.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if($a.Node.prototype.moveDown.call(this)){var t=this.getStage();if(t){var r=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),r[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if($a.Node.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var r=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),r[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var t=this.getNativeCanvasElement();return $a.Node.prototype.remove.call(this),t&&t.parentNode&&oo.Util._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize({width:t,height:r}){return this.canvas.setSize(t,r),this.hitCanvas.setSize(t,r),this._setSmoothEnabled(),this}_validateAdd(t){var r=t.getType();r!=="Group"&&r!=="Shape"&&oo.Util.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=t.x!==void 0?t.x:this.x(),t.y=t.y!==void 0?t.y:this.y(),$a.Node.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){oo.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){oo.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,oo.Util.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;for(var r=1,n=!1;;){for(let i=0;i<BY;i++){const o=k3[i],s=this._getIntersection({x:t.x+o.x*r,y:t.y+o.y*r}),a=s.shape;if(a)return a;if(n=!!s.antialiased,!s.antialiased)break}if(n)r+=1;else return null}}_getIntersection(t){const r=this.hitCanvas.pixelRatio,n=this.hitCanvas.context.getImageData(Math.round(t.x*r),Math.round(t.y*r),1,1).data,i=n[3];if(i===255){const o=oo.Util._rgbToHex(n[0],n[1],n[2]),s=LY.shapes[VY+o];return s?{shape:s}:{antialiased:!0}}else if(i>0)return{antialiased:!0};return{}}drawScene(t,r){var n=this.getLayer(),i=t||n&&n.getCanvas();return this._fire(zY,{node:this}),this.clearBeforeDraw()&&i.getContext().clear(),My.Container.prototype.drawScene.call(this,i,r),this._fire(GY,{node:this}),this}drawHit(t,r){var n=this.getLayer(),i=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),My.Container.prototype.drawHit.call(this,i,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){oo.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return oo.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var t=this.parent,r=!!this.hitCanvas._canvas.parentNode;r?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}}destroy(){return oo.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}E3=wc.Layer=Sa,Sa.prototype.nodeType="Layer",(0,UY._registerNode)(Sa),Ly.Factory.addGetterSetter(Sa,"imageSmoothingEnabled",!0),Ly.Factory.addGetterSetter(Sa,"clearBeforeDraw",!0),Ly.Factory.addGetterSetter(Sa,"hitGraphEnabled",!0,(0,MY.getBooleanValidator)());const HY=oe({__proto__:null,get Layer(){return E3},default:wc},[wc]),P3=se(HY);var xc={};Object.defineProperty(xc,"__esModule",{value:!0});var T3=xc.FastLayer=void 0;const qY=dr,KY=P3,YY=ke;class Uy extends KY.Layer{constructor(t){super(t),this.listening(!1),qY.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}T3=xc.FastLayer=Uy,Uy.prototype.nodeType="FastLayer",(0,YY._registerNode)(Uy);const XY=oe({__proto__:null,get FastLayer(){return T3},default:xc},[xc]),JY=se(XY);var $c={};Object.defineProperty($c,"__esModule",{value:!0});var O3=$c.Group=void 0;const WY=dr,QY=Fd,ZY=ke;class Vy extends QY.Container{_validateAdd(t){var r=t.getType();r!=="Group"&&r!=="Shape"&&WY.Util.throw("You may only add groups and shapes to groups.")}}O3=$c.Group=Vy,Vy.prototype.nodeType="Group",(0,ZY._registerNode)(Vy);const tX=oe({__proto__:null,get Group(){return O3},default:$c},[$c]),zy=se(tX);var Sc={};Object.defineProperty(Sc,"__esModule",{value:!0});var N3=Sc.Animation=void 0;const Gy=ke,A3=dr,By=function(){return Gy.glob.performance&&Gy.glob.performance.now?function(){return Gy.glob.performance.now()}:function(){return new Date().getTime()}}();class $i{constructor(t,r){this.id=$i.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:By(),frameRate:0},this.func=t,this.setLayers(r)}setLayers(t){let r=[];return t&&(r=Array.isArray(t)?t:[t]),this.layers=r,this}getLayers(){return this.layers}addLayer(t){const r=this.layers,n=r.length;for(let i=0;i<n;i++)if(r[i]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){const t=$i.animations,r=t.length;for(let n=0;n<r;n++)if(t[n].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=By(),$i._addAnimation(this),this}stop(){return $i._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){const r=t.id,n=this.animations,i=n.length;for(let o=0;o<i;o++)if(n[o].id===r){this.animations.splice(o,1);break}}static _runFrames(){const t={},r=this.animations;for(let n=0;n<r.length;n++){const i=r[n],o=i.layers,s=i.func;i._updateFrameObject(By());const a=o.length;let c;if(s?c=s.call(i,i.frame)!==!1:c=!0,!!c)for(let l=0;l<a;l++){const u=o[l];u._id!==void 0&&(t[u._id]=u)}}for(let n in t)t.hasOwnProperty(n)&&t[n].batchDraw()}static _animationLoop(){const t=$i;t.animations.length?(t._runFrames(),A3.Util.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,A3.Util.requestAnimFrame(this._animationLoop))}}N3=Sc.Animation=$i,$i.animations=[],$i.animIdCounter=0,$i.animRunning=!1;const eX=oe({__proto__:null,get Animation(){return N3},default:Sc},[Sc]),Hy=se(eX);var qy={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Easings=e.Tween=void 0;const t=dr,r=Hy,n=_r,i=ke;var o={node:1,duration:1,easing:1,onFinish:1,yoyo:1},s=1,a=2,c=3,l=0,u=["fill","stroke","shadowColor"];class h{constructor(p,m,v,b,_,g,S){this.prop=p,this.propFunc=m,this.begin=b,this._pos=b,this.duration=g,this._change=0,this.prevPos=0,this.yoyo=S,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=v,this._change=_-this.begin,this.pause()}fire(p){var m=this[p];m&&m()}setTime(p){p>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():p<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=p,this.update())}getTime(){return this._time}setPosition(p){this.prevPos=this._pos,this.propFunc(p),this._pos=p}getPosition(p){return p===void 0&&(p=this._time),this.func(p,this.begin,this._change,this.duration)}play(){this.state=a,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=c,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(p){this.pause(),this._time=p,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var p=this.getTimer()-this._startTime;this.state===a?this.setTime(p):this.state===c&&this.setTime(this.duration-p)}pause(){this.state=s,this.fire("onPause")}getTimer(){return new Date().getTime()}}class f{constructor(p){var m=this,v=p.node,b=v._id,_,g=p.easing||e.Easings.Linear,S=!!p.yoyo,A;typeof p.duration>"u"?_=.3:p.duration===0?_=.001:_=p.duration,this.node=v,this._id=l++;var E=v.getLayer()||(v instanceof i.Konva.Stage?v.getLayers():null);E||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new r.Animation(function(){m.tween.onEnterFrame()},E),this.tween=new h(A,function(N){m._tweenFunc(N)},g,0,1,_*1e3,S),this._addListeners(),f.attrs[b]||(f.attrs[b]={}),f.attrs[b][this._id]||(f.attrs[b][this._id]={}),f.tweens[b]||(f.tweens[b]={});for(A in p)o[A]===void 0&&this._addAttr(A,p[A]);this.reset(),this.onFinish=p.onFinish,this.onReset=p.onReset,this.onUpdate=p.onUpdate}_addAttr(p,m){var v=this.node,b=v._id,_,g,S,A,E,N,D,U;if(S=f.tweens[b][p],S&&delete f.attrs[b][S][p],_=v.getAttr(p),t.Util._isArray(m))if(g=[],E=Math.max(m.length,_.length),p==="points"&&m.length!==_.length&&(m.length>_.length?(D=_,_=t.Util._prepareArrayForTween(_,m,v.closed())):(N=m,m=t.Util._prepareArrayForTween(m,_,v.closed()))),p.indexOf("fill")===0)for(A=0;A<E;A++)if(A%2===0)g.push(m[A]-_[A]);else{var G=t.Util.colorToRGBA(_[A]);U=t.Util.colorToRGBA(m[A]),_[A]=G,g.push({r:U.r-G.r,g:U.g-G.g,b:U.b-G.b,a:U.a-G.a})}else for(A=0;A<E;A++)g.push(m[A]-_[A]);else u.indexOf(p)!==-1?(_=t.Util.colorToRGBA(_),U=t.Util.colorToRGBA(m),g={r:U.r-_.r,g:U.g-_.g,b:U.b-_.b,a:U.a-_.a}):g=m-_;f.attrs[b][this._id][p]={start:_,diff:g,end:m,trueEnd:N,trueStart:D},f.tweens[b][p]=this._id}_tweenFunc(p){var m=this.node,v=f.attrs[m._id][this._id],b,_,g,S,A,E,N,D;for(b in v){if(_=v[b],g=_.start,S=_.diff,D=_.end,t.Util._isArray(g))if(A=[],N=Math.max(g.length,D.length),b.indexOf("fill")===0)for(E=0;E<N;E++)E%2===0?A.push((g[E]||0)+S[E]*p):A.push("rgba("+Math.round(g[E].r+S[E].r*p)+","+Math.round(g[E].g+S[E].g*p)+","+Math.round(g[E].b+S[E].b*p)+","+(g[E].a+S[E].a*p)+")");else for(E=0;E<N;E++)A.push((g[E]||0)+S[E]*p);else u.indexOf(b)!==-1?A="rgba("+Math.round(g.r+S.r*p)+","+Math.round(g.g+S.g*p)+","+Math.round(g.b+S.b*p)+","+(g.a+S.a*p)+")":A=g+S*p;m.setAttr(b,A)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var p=this.node,m=f.attrs[p._id][this._id];m.points&&m.points.trueEnd&&p.setAttr("points",m.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var p=this.node,m=f.attrs[p._id][this._id];m.points&&m.points.trueStart&&p.points(m.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(p){return this.tween.seek(p*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var p=this.node._id,m=this._id,v=f.tweens[p],b;this.pause();for(b in v)delete f.tweens[p][b];delete f.attrs[p][m]}}e.Tween=f,f.attrs={},f.tweens={},n.Node.prototype.to=function(d){var p=d.onFinish;d.node=this,d.onFinish=function(){this.destroy(),p&&p()};var m=new f(d);m.play()},e.Easings={BackEaseIn(d,p,m,v){var b=1.70158;return m*(d/=v)*d*((b+1)*d-b)+p},BackEaseOut(d,p,m,v){var b=1.70158;return m*((d=d/v-1)*d*((b+1)*d+b)+1)+p},BackEaseInOut(d,p,m,v){var b=1.70158;return(d/=v/2)<1?m/2*(d*d*(((b*=1.525)+1)*d-b))+p:m/2*((d-=2)*d*(((b*=1.525)+1)*d+b)+2)+p},ElasticEaseIn(d,p,m,v,b,_){var g=0;return d===0?p:(d/=v)===1?p+m:(_||(_=v*.3),!b||b<Math.abs(m)?(b=m,g=_/4):g=_/(2*Math.PI)*Math.asin(m/b),-(b*Math.pow(2,10*(d-=1))*Math.sin((d*v-g)*(2*Math.PI)/_))+p)},ElasticEaseOut(d,p,m,v,b,_){var g=0;return d===0?p:(d/=v)===1?p+m:(_||(_=v*.3),!b||b<Math.abs(m)?(b=m,g=_/4):g=_/(2*Math.PI)*Math.asin(m/b),b*Math.pow(2,-10*d)*Math.sin((d*v-g)*(2*Math.PI)/_)+m+p)},ElasticEaseInOut(d,p,m,v,b,_){var g=0;return d===0?p:(d/=v/2)===2?p+m:(_||(_=v*(.3*1.5)),!b||b<Math.abs(m)?(b=m,g=_/4):g=_/(2*Math.PI)*Math.asin(m/b),d<1?-.5*(b*Math.pow(2,10*(d-=1))*Math.sin((d*v-g)*(2*Math.PI)/_))+p:b*Math.pow(2,-10*(d-=1))*Math.sin((d*v-g)*(2*Math.PI)/_)*.5+m+p)},BounceEaseOut(d,p,m,v){return(d/=v)<1/2.75?m*(7.5625*d*d)+p:d<2/2.75?m*(7.5625*(d-=1.5/2.75)*d+.75)+p:d<2.5/2.75?m*(7.5625*(d-=2.25/2.75)*d+.9375)+p:m*(7.5625*(d-=2.625/2.75)*d+.984375)+p},BounceEaseIn(d,p,m,v){return m-e.Easings.BounceEaseOut(v-d,0,m,v)+p},BounceEaseInOut(d,p,m,v){return d<v/2?e.Easings.BounceEaseIn(d*2,0,m,v)*.5+p:e.Easings.BounceEaseOut(d*2-v,0,m,v)*.5+m*.5+p},EaseIn(d,p,m,v){return m*(d/=v)*d+p},EaseOut(d,p,m,v){return-m*(d/=v)*(d-2)+p},EaseInOut(d,p,m,v){return(d/=v/2)<1?m/2*d*d+p:-m/2*(--d*(d-2)-1)+p},StrongEaseIn(d,p,m,v){return m*(d/=v)*d*d*d*d+p},StrongEaseOut(d,p,m,v){return m*((d=d/v-1)*d*d*d*d+1)+p},StrongEaseInOut(d,p,m,v){return(d/=v/2)<1?m/2*d*d*d*d*d+p:m/2*((d-=2)*d*d*d*d+2)+p},Linear(d,p,m,v){return m*d/v+p}}})(qy);const rX=vn(qy),nX=oe({__proto__:null,default:rX},[qy]),iX=se(nX);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;const t=ke,r=dr,n=_r,i=Fd,o=IY,s=P3,a=JY,c=zy,l=Ny,u=Ar,h=Hy,f=iX,d=n3,p=Nd;e.Konva=r.Util._assign(t.Konva,{Util:r.Util,Transform:r.Transform,Node:n.Node,Container:i.Container,Stage:o.Stage,stages:o.stages,Layer:s.Layer,FastLayer:a.FastLayer,Group:c.Group,DD:l.DD,Shape:u.Shape,shapes:u.shapes,Animation:h.Animation,Tween:f.Tween,Easings:f.Easings,Context:d.Context,Canvas:p.Canvas}),e.default=e.Konva})(Cy);const oX=vn(Cy),sX=oe({__proto__:null,default:oX},[Cy]),aX=se(sX);var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});var D3=Ec.Arc=void 0;const Md=Ee,lX=Ar,R3=ke,Ld=Pe,cX=ke;class so extends lX.Shape{_sceneFunc(t){var r=R3.Konva.getAngle(this.angle()),n=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,r,n),t.arc(0,0,this.innerRadius(),r,0,!n),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}getSelfRect(){const t=this.innerRadius(),r=this.outerRadius(),n=this.clockwise(),i=R3.Konva.getAngle(n?360-this.angle():this.angle()),o=Math.cos(Math.min(i,Math.PI)),s=1,a=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),c=Math.sin(Math.min(i,Math.PI/2)),l=o*(o>0?t:r),u=s*r,h=a*(a>0?t:r),f=c*(c>0?r:t);return{x:l,y:n?-1*f:h,width:u-l,height:f-h}}}D3=Ec.Arc=so,so.prototype._centroid=!0,so.prototype.className="Arc",so.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,cX._registerNode)(so),Md.Factory.addGetterSetter(so,"innerRadius",0,(0,Ld.getNumberValidator)()),Md.Factory.addGetterSetter(so,"outerRadius",0,(0,Ld.getNumberValidator)()),Md.Factory.addGetterSetter(so,"angle",0,(0,Ld.getNumberValidator)()),Md.Factory.addGetterSetter(so,"clockwise",!1,(0,Ld.getBooleanValidator)());const uX=oe({__proto__:null,get Arc(){return D3},default:Ec},[Ec]),hX=se(uX);var Cc={},kc={};Object.defineProperty(kc,"__esModule",{value:!0});var I3=kc.Line=void 0;const Ud=Ee,dX=Ar,j3=Pe,fX=ke;function Ky(e,t,r,n,i,o,s){var a=Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2)),c=Math.sqrt(Math.pow(i-r,2)+Math.pow(o-n,2)),l=s*a/(a+c),u=s*c/(a+c),h=r-l*(i-e),f=n-l*(o-t),d=r+u*(i-e),p=n+u*(o-t);return[h,f,d,p]}function F3(e,t){var r=e.length,n=[],i,o;for(i=2;i<r-2;i+=2)o=Ky(e[i-2],e[i-1],e[i],e[i+1],e[i+2],e[i+3],t),!isNaN(o[0])&&(n.push(o[0]),n.push(o[1]),n.push(e[i]),n.push(e[i+1]),n.push(o[2]),n.push(o[3]));return n}class Io extends dX.Shape{constructor(t){super(t),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(t){var r=this.points(),n=r.length,i=this.tension(),o=this.closed(),s=this.bezier(),a,c,l;if(n){if(t.beginPath(),t.moveTo(r[0],r[1]),i!==0&&n>4){for(a=this.getTensionPoints(),c=a.length,l=o?0:4,o||t.quadraticCurveTo(a[0],a[1],a[2],a[3]);l<c-2;)t.bezierCurveTo(a[l++],a[l++],a[l++],a[l++],a[l++],a[l++]);o||t.quadraticCurveTo(a[c-2],a[c-1],r[n-2],r[n-1])}else if(s)for(l=2;l<n;)t.bezierCurveTo(r[l++],r[l++],r[l++],r[l++],r[l++],r[l++]);else for(l=2;l<n;l+=2)t.lineTo(r[l],r[l+1]);o?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():F3(this.points(),this.tension())}_getTensionPointsClosed(){var t=this.points(),r=t.length,n=this.tension(),i=Ky(t[r-2],t[r-1],t[0],t[1],t[2],t[3],n),o=Ky(t[r-4],t[r-3],t[r-2],t[r-1],t[0],t[1],n),s=F3(t,n),a=[i[2],i[3]].concat(s).concat([o[0],o[1],t[r-2],t[r-1],o[2],o[3],i[0],i[1],t[0],t[1]]);return a}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};this.tension()!==0?t=[t[0],t[1],...this._getTensionPoints(),t[t.length-2],t[t.length-1]]:t=this.points();for(var r=t[0],n=t[0],i=t[1],o=t[1],s,a,c=0;c<t.length/2;c++)s=t[c*2],a=t[c*2+1],r=Math.min(r,s),n=Math.max(n,s),i=Math.min(i,a),o=Math.max(o,a);return{x:r,y:i,width:n-r,height:o-i}}}I3=kc.Line=Io,Io.prototype.className="Line",Io.prototype._attrsAffectingSize=["points","bezier","tension"],(0,fX._registerNode)(Io),Ud.Factory.addGetterSetter(Io,"closed",!1),Ud.Factory.addGetterSetter(Io,"bezier",!1),Ud.Factory.addGetterSetter(Io,"tension",0,(0,j3.getNumberValidator)()),Ud.Factory.addGetterSetter(Io,"points",[],(0,j3.getNumberArrayValidator)());const pX=oe({__proto__:null,get Line(){return I3},default:kc},[kc]),M3=se(pX);var Pc={},Yy={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.t2length=e.getQuadraticArcLength=e.getCubicArcLength=e.binomialCoefficients=e.cValues=e.tValues=void 0,e.tValues=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],e.cValues=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],e.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]];const t=(s,a,c)=>{let l,u,h;l=c/2,u=0;for(let f=0;f<20;f++)h=l*e.tValues[20][f]+l,u+=e.cValues[20][f]*n(s,a,h);return l*u};e.getCubicArcLength=t;const r=(s,a,c)=>{c===void 0&&(c=1);const l=s[0]-2*s[1]+s[2],u=a[0]-2*a[1]+a[2],h=2*s[1]-2*s[0],f=2*a[1]-2*a[0],d=4*(l*l+u*u),p=4*(l*h+u*f),m=h*h+f*f;if(d===0)return c*Math.sqrt(Math.pow(s[2]-s[0],2)+Math.pow(a[2]-a[0],2));const v=p/(2*d),b=m/d,_=c+v,g=b-v*v,S=_*_+g>0?Math.sqrt(_*_+g):0,A=v*v+g>0?Math.sqrt(v*v+g):0,E=v+Math.sqrt(v*v+g)!==0?g*Math.log(Math.abs((_+S)/(v+A))):0;return Math.sqrt(d)/2*(_*S-v*A+E)};e.getQuadraticArcLength=r;function n(s,a,c){const l=i(1,c,s),u=i(1,c,a),h=l*l+u*u;return Math.sqrt(h)}const i=(s,a,c)=>{const l=c.length-1;let u,h;if(l===0)return 0;if(s===0){h=0;for(let f=0;f<=l;f++)h+=e.binomialCoefficients[l][f]*Math.pow(1-a,l-f)*Math.pow(a,f)*c[f];return h}else{u=new Array(l);for(let f=0;f<l;f++)u[f]=l*(c[f+1]-c[f]);return i(s-1,a,u)}},o=(s,a,c)=>{let l=1,u=s/a,h=(s-c(u))/a,f=0;for(;l>.001;){const d=c(u+h),p=Math.abs(s-d)/a;if(p<l)l=p,u+=h;else{const m=c(u-h),v=Math.abs(s-m)/a;v<l?(l=v,u-=h):h/=2}if(f++,f>500)break}return u};e.t2length=o})(Yy);const mX=vn(Yy),gX=oe({__proto__:null,default:mX},[Yy]),yX=se(gX);Object.defineProperty(Pc,"__esModule",{value:!0});var L3=Pc.Path=void 0;const vX=Ee,_X=Ar,bX=ke,Ea=yX;class Cr extends _X.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=Cr.parsePathData(this.data()),this.pathLength=Cr.getPathLength(this.dataArray)}_sceneFunc(t){var r=this.dataArray;t.beginPath();for(var n=!1,i=0;i<r.length;i++){var o=r[i].command,s=r[i].points;switch(o){case"L":t.lineTo(s[0],s[1]);break;case"M":t.moveTo(s[0],s[1]);break;case"C":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"Q":t.quadraticCurveTo(s[0],s[1],s[2],s[3]);break;case"A":var a=s[0],c=s[1],l=s[2],u=s[3],h=s[4],f=s[5],d=s[6],p=s[7],m=l>u?l:u,v=l>u?1:l/u,b=l>u?u/l:1;t.translate(a,c),t.rotate(d),t.scale(v,b),t.arc(0,0,m,h,h+f,1-p),t.scale(1/v,1/b),t.rotate(-d),t.translate(-a,-c);break;case"z":n=!0,t.closePath();break}}!n&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){var t=[];this.dataArray.forEach(function(l){if(l.command==="A"){var u=l.points[4],h=l.points[5],f=l.points[4]+h,d=Math.PI/180;if(Math.abs(u-f)<d&&(d=Math.abs(u-f)),h<0)for(let p=u-d;p>f;p-=d){const m=Cr.getPointOnEllipticalArc(l.points[0],l.points[1],l.points[2],l.points[3],p,0);t.push(m.x,m.y)}else for(let p=u+d;p<f;p+=d){const m=Cr.getPointOnEllipticalArc(l.points[0],l.points[1],l.points[2],l.points[3],p,0);t.push(m.x,m.y)}}else if(l.command==="C")for(let p=0;p<=1;p+=.01){const m=Cr.getPointOnCubicBezier(p,l.start.x,l.start.y,l.points[0],l.points[1],l.points[2],l.points[3],l.points[4],l.points[5]);t.push(m.x,m.y)}else t=t.concat(l.points)});for(var r=t[0],n=t[0],i=t[1],o=t[1],s,a,c=0;c<t.length/2;c++)s=t[c*2],a=t[c*2+1],isNaN(s)||(r=Math.min(r,s),n=Math.max(n,s)),isNaN(a)||(i=Math.min(i,a),o=Math.max(o,a));return{x:r,y:i,width:n-r,height:o-i}}getLength(){return this.pathLength}getPointAtLength(t){return Cr.getPointAtLengthOfDataArray(t,this.dataArray)}static getLineLength(t,r,n,i){return Math.sqrt((n-t)*(n-t)+(i-r)*(i-r))}static getPathLength(t){let r=0;for(var n=0;n<t.length;++n)r+=t[n].pathLength;return r}static getPointAtLengthOfDataArray(t,r){var n,i=0,o=r.length;if(!o)return null;for(;i<o&&t>r[i].pathLength;)t-=r[i].pathLength,++i;if(i===o)return n=r[i-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=r[i].points.slice(0,2),{x:n[0],y:n[1]};var s=r[i],a=s.points;switch(s.command){case"L":return Cr.getPointOnLine(t,s.start.x,s.start.y,a[0],a[1]);case"C":return Cr.getPointOnCubicBezier((0,Ea.t2length)(t,Cr.getPathLength(r),m=>(0,Ea.getCubicArcLength)([s.start.x,a[0],a[2],a[4]],[s.start.y,a[1],a[3],a[5]],m)),s.start.x,s.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return Cr.getPointOnQuadraticBezier((0,Ea.t2length)(t,Cr.getPathLength(r),m=>(0,Ea.getQuadraticArcLength)([s.start.x,a[0],a[2]],[s.start.y,a[1],a[3]],m)),s.start.x,s.start.y,a[0],a[1],a[2],a[3]);case"A":var c=a[0],l=a[1],u=a[2],h=a[3],f=a[4],d=a[5],p=a[6];return f+=d*t/s.pathLength,Cr.getPointOnEllipticalArc(c,l,u,h,f,p)}return null}static getPointOnLine(t,r,n,i,o,s,a){s===void 0&&(s=r),a===void 0&&(a=n);var c=(o-n)/(i-r+1e-8),l=Math.sqrt(t*t/(1+c*c));i<r&&(l*=-1);var u=c*l,h;if(i===r)h={x:s,y:a+u};else if((a-n)/(s-r+1e-8)===c)h={x:s+l,y:a+u};else{var f,d,p=this.getLineLength(r,n,i,o),m=(s-r)*(i-r)+(a-n)*(o-n);m=m/(p*p),f=r+m*(i-r),d=n+m*(o-n);var v=this.getLineLength(s,a,f,d),b=Math.sqrt(t*t-v*v);l=Math.sqrt(b*b/(1+c*c)),i<r&&(l*=-1),u=c*l,h={x:f+l,y:d+u}}return h}static getPointOnCubicBezier(t,r,n,i,o,s,a,c,l){function u(v){return v*v*v}function h(v){return 3*v*v*(1-v)}function f(v){return 3*v*(1-v)*(1-v)}function d(v){return(1-v)*(1-v)*(1-v)}var p=c*u(t)+s*h(t)+i*f(t)+r*d(t),m=l*u(t)+a*h(t)+o*f(t)+n*d(t);return{x:p,y:m}}static getPointOnQuadraticBezier(t,r,n,i,o,s,a){function c(d){return d*d}function l(d){return 2*d*(1-d)}function u(d){return(1-d)*(1-d)}var h=s*c(t)+i*l(t)+r*u(t),f=a*c(t)+o*l(t)+n*u(t);return{x:h,y:f}}static getPointOnEllipticalArc(t,r,n,i,o,s){var a=Math.cos(s),c=Math.sin(s),l={x:n*Math.cos(o),y:i*Math.sin(o)};return{x:t+(l.x*a-l.y*c),y:r+(l.x*c+l.y*a)}}static parsePathData(t){if(!t)return[];var r=t,n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];r=r.replace(new RegExp(" ","g"),",");for(var i=0;i<n.length;i++)r=r.replace(new RegExp(n[i],"g"),"|"+n[i]);var o=r.split("|"),s=[],a=[],c=0,l=0,u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,h;for(i=1;i<o.length;i++){var f=o[i],d=f.charAt(0);for(f=f.slice(1),a.length=0;h=u.exec(f);)a.push(h[0]);for(var p=[],m=0,v=a.length;m<v;m++){if(a[m]==="00"){p.push(0,0);continue}var b=parseFloat(a[m]);isNaN(b)?p.push(0):p.push(b)}for(;p.length>0&&!isNaN(p[0]);){var _="",g=[],S=c,A=l,E,N,D,U,G,K,W,ot,nt,ft;switch(d){case"l":c+=p.shift(),l+=p.shift(),_="L",g.push(c,l);break;case"L":c=p.shift(),l=p.shift(),g.push(c,l);break;case"m":var $t=p.shift(),_t=p.shift();if(c+=$t,l+=_t,_="M",s.length>2&&s[s.length-1].command==="z"){for(var vt=s.length-2;vt>=0;vt--)if(s[vt].command==="M"){c=s[vt].points[0]+$t,l=s[vt].points[1]+_t;break}}g.push(c,l),d="l";break;case"M":c=p.shift(),l=p.shift(),_="M",g.push(c,l),d="L";break;case"h":c+=p.shift(),_="L",g.push(c,l);break;case"H":c=p.shift(),_="L",g.push(c,l);break;case"v":l+=p.shift(),_="L",g.push(c,l);break;case"V":l=p.shift(),_="L",g.push(c,l);break;case"C":g.push(p.shift(),p.shift(),p.shift(),p.shift()),c=p.shift(),l=p.shift(),g.push(c,l);break;case"c":g.push(c+p.shift(),l+p.shift(),c+p.shift(),l+p.shift()),c+=p.shift(),l+=p.shift(),_="C",g.push(c,l);break;case"S":N=c,D=l,E=s[s.length-1],E.command==="C"&&(N=c+(c-E.points[2]),D=l+(l-E.points[3])),g.push(N,D,p.shift(),p.shift()),c=p.shift(),l=p.shift(),_="C",g.push(c,l);break;case"s":N=c,D=l,E=s[s.length-1],E.command==="C"&&(N=c+(c-E.points[2]),D=l+(l-E.points[3])),g.push(N,D,c+p.shift(),l+p.shift()),c+=p.shift(),l+=p.shift(),_="C",g.push(c,l);break;case"Q":g.push(p.shift(),p.shift()),c=p.shift(),l=p.shift(),g.push(c,l);break;case"q":g.push(c+p.shift(),l+p.shift()),c+=p.shift(),l+=p.shift(),_="Q",g.push(c,l);break;case"T":N=c,D=l,E=s[s.length-1],E.command==="Q"&&(N=c+(c-E.points[0]),D=l+(l-E.points[1])),c=p.shift(),l=p.shift(),_="Q",g.push(N,D,c,l);break;case"t":N=c,D=l,E=s[s.length-1],E.command==="Q"&&(N=c+(c-E.points[0]),D=l+(l-E.points[1])),c+=p.shift(),l+=p.shift(),_="Q",g.push(N,D,c,l);break;case"A":U=p.shift(),G=p.shift(),K=p.shift(),W=p.shift(),ot=p.shift(),nt=c,ft=l,c=p.shift(),l=p.shift(),_="A",g=this.convertEndpointToCenterParameterization(nt,ft,c,l,W,ot,U,G,K);break;case"a":U=p.shift(),G=p.shift(),K=p.shift(),W=p.shift(),ot=p.shift(),nt=c,ft=l,c+=p.shift(),l+=p.shift(),_="A",g=this.convertEndpointToCenterParameterization(nt,ft,c,l,W,ot,U,G,K);break}s.push({command:_||d,points:g,start:{x:S,y:A},pathLength:this.calcLength(S,A,_||d,g)})}(d==="z"||d==="Z")&&s.push({command:"z",points:[],start:void 0,pathLength:0})}return s}static calcLength(t,r,n,i){var o,s,a,c,l=Cr;switch(n){case"L":return l.getLineLength(t,r,i[0],i[1]);case"C":return(0,Ea.getCubicArcLength)([t,i[0],i[2],i[4]],[r,i[1],i[3],i[5]],1);case"Q":return(0,Ea.getQuadraticArcLength)([t,i[0],i[2]],[r,i[1],i[3]],1);case"A":o=0;var u=i[4],h=i[5],f=i[4]+h,d=Math.PI/180;if(Math.abs(u-f)<d&&(d=Math.abs(u-f)),s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),h<0)for(c=u-d;c>f;c-=d)a=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=l.getLineLength(s.x,s.y,a.x,a.y),s=a;else for(c=u+d;c<f;c+=d)a=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=l.getLineLength(s.x,s.y,a.x,a.y),s=a;return a=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],f,0),o+=l.getLineLength(s.x,s.y,a.x,a.y),o}return 0}static convertEndpointToCenterParameterization(t,r,n,i,o,s,a,c,l){var u=l*(Math.PI/180),h=Math.cos(u)*(t-n)/2+Math.sin(u)*(r-i)/2,f=-1*Math.sin(u)*(t-n)/2+Math.cos(u)*(r-i)/2,d=h*h/(a*a)+f*f/(c*c);d>1&&(a*=Math.sqrt(d),c*=Math.sqrt(d));var p=Math.sqrt((a*a*(c*c)-a*a*(f*f)-c*c*(h*h))/(a*a*(f*f)+c*c*(h*h)));o===s&&(p*=-1),isNaN(p)&&(p=0);var m=p*a*f/c,v=p*-c*h/a,b=(t+n)/2+Math.cos(u)*m-Math.sin(u)*v,_=(r+i)/2+Math.sin(u)*m+Math.cos(u)*v,g=function(G){return Math.sqrt(G[0]*G[0]+G[1]*G[1])},S=function(G,K){return(G[0]*K[0]+G[1]*K[1])/(g(G)*g(K))},A=function(G,K){return(G[0]*K[1]<G[1]*K[0]?-1:1)*Math.acos(S(G,K))},E=A([1,0],[(h-m)/a,(f-v)/c]),N=[(h-m)/a,(f-v)/c],D=[(-1*h-m)/a,(-1*f-v)/c],U=A(N,D);return S(N,D)<=-1&&(U=Math.PI),S(N,D)>=1&&(U=0),s===0&&U>0&&(U=U-2*Math.PI),s===1&&U<0&&(U=U+2*Math.PI),[b,_,a,c,E,U,u,s]}}L3=Pc.Path=Cr,Cr.prototype.className="Path",Cr.prototype._attrsAffectingSize=["data"],(0,bX._registerNode)(Cr),vX.Factory.addGetterSetter(Cr,"data");const wX=oe({__proto__:null,get Path(){return L3},default:Pc},[Pc]),Xy=se(wX);Object.defineProperty(Cc,"__esModule",{value:!0});var U3=Cc.Arrow=void 0;const Vd=Ee,xX=M3,V3=Pe,$X=ke,z3=Xy;class As extends xX.Line{_sceneFunc(t){super._sceneFunc(t);var r=Math.PI*2,n=this.points(),i=n,o=this.tension()!==0&&n.length>4;o&&(i=this.getTensionPoints());var s=this.pointerLength(),a=n.length,c,l;if(o){const f=[i[i.length-4],i[i.length-3],i[i.length-2],i[i.length-1],n[a-2],n[a-1]],d=z3.Path.calcLength(i[i.length-4],i[i.length-3],"C",f),p=z3.Path.getPointOnQuadraticBezier(Math.min(1,1-s/d),f[0],f[1],f[2],f[3],f[4],f[5]);c=n[a-2]-p.x,l=n[a-1]-p.y}else c=n[a-2]-n[a-4],l=n[a-1]-n[a-3];var u=(Math.atan2(l,c)+r)%r,h=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[a-2],n[a-1]),t.rotate(u),t.moveTo(0,0),t.lineTo(-s,h/2),t.lineTo(-s,-h/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),o?(c=(i[0]+i[2])/2-n[0],l=(i[1]+i[3])/2-n[1]):(c=n[2]-n[0],l=n[3]-n[1]),t.rotate((Math.atan2(-l,-c)+r)%r),t.moveTo(0,0),t.lineTo(-s,h/2),t.lineTo(-s,-h/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){var r=this.dashEnabled();r&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),r&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),r=this.pointerWidth()/2;return{x:t.x-r,y:t.y-r,width:t.width+r*2,height:t.height+r*2}}}U3=Cc.Arrow=As,As.prototype.className="Arrow",(0,$X._registerNode)(As),Vd.Factory.addGetterSetter(As,"pointerLength",10,(0,V3.getNumberValidator)()),Vd.Factory.addGetterSetter(As,"pointerWidth",10,(0,V3.getNumberValidator)()),Vd.Factory.addGetterSetter(As,"pointerAtBeginning",!1),Vd.Factory.addGetterSetter(As,"pointerAtEnding",!0);const SX=oe({__proto__:null,get Arrow(){return U3},default:Cc},[Cc]),EX=se(SX);var Tc={};Object.defineProperty(Tc,"__esModule",{value:!0});var G3=Tc.Circle=void 0;const CX=Ee,kX=Ar,PX=Pe,TX=ke;class Ca extends kX.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}}G3=Tc.Circle=Ca,Ca.prototype._centroid=!0,Ca.prototype.className="Circle",Ca.prototype._attrsAffectingSize=["radius"],(0,TX._registerNode)(Ca),CX.Factory.addGetterSetter(Ca,"radius",0,(0,PX.getNumberValidator)());const OX=oe({__proto__:null,get Circle(){return G3},default:Tc},[Tc]),NX=se(OX);var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});var B3=Oc.Ellipse=void 0;const Jy=Ee,AX=Ar,H3=Pe,DX=ke;class jo extends AX.Shape{_sceneFunc(t){var r=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),r!==n&&t.scale(1,n/r),t.arc(0,0,r,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}B3=Oc.Ellipse=jo,jo.prototype.className="Ellipse",jo.prototype._centroid=!0,jo.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,DX._registerNode)(jo),Jy.Factory.addComponentsGetterSetter(jo,"radius",["x","y"]),Jy.Factory.addGetterSetter(jo,"radiusX",0,(0,H3.getNumberValidator)()),Jy.Factory.addGetterSetter(jo,"radiusY",0,(0,H3.getNumberValidator)());const RX=oe({__proto__:null,get Ellipse(){return B3},default:Oc},[Oc]),IX=se(RX);var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0});var q3=Nc.Image=void 0;const Wy=dr,Ds=Ee,jX=Ar,FX=ke,Ac=Pe;let Si=class kC extends jX.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(t){const r=this.getWidth(),n=this.getHeight(),i=this.cornerRadius(),o=this.attrs.image;let s;if(o){const a=this.attrs.cropWidth,c=this.attrs.cropHeight;a&&c?s=[o,this.cropX(),this.cropY(),a,c,0,0,r,n]:s=[o,0,0,r,n]}(this.hasFill()||this.hasStroke()||i)&&(t.beginPath(),i?Wy.Util.drawRoundedRectPath(t,r,n,i):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)),o&&(i&&t.clip(),t.drawImage.apply(t,s))}_hitFunc(t){var r=this.width(),n=this.height(),i=this.cornerRadius();t.beginPath(),i?Wy.Util.drawRoundedRectPath(t,r,n,i):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,r;return(t=this.attrs.width)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.width}getHeight(){var t,r;return(t=this.attrs.height)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.height}static fromURL(t,r,n=null){var i=Wy.Util.createImageElement();i.onload=function(){var o=new kC({image:i});r(o)},i.onerror=n,i.crossOrigin="Anonymous",i.src=t}};q3=Nc.Image=Si,Si.prototype.className="Image",(0,FX._registerNode)(Si),Ds.Factory.addGetterSetter(Si,"cornerRadius",0,(0,Ac.getNumberOrArrayOfNumbersValidator)(4)),Ds.Factory.addGetterSetter(Si,"image"),Ds.Factory.addComponentsGetterSetter(Si,"crop",["x","y","width","height"]),Ds.Factory.addGetterSetter(Si,"cropX",0,(0,Ac.getNumberValidator)()),Ds.Factory.addGetterSetter(Si,"cropY",0,(0,Ac.getNumberValidator)()),Ds.Factory.addGetterSetter(Si,"cropWidth",0,(0,Ac.getNumberValidator)()),Ds.Factory.addGetterSetter(Si,"cropHeight",0,(0,Ac.getNumberValidator)());const MX=oe({__proto__:null,get Image(){return q3},default:Nc},[Nc]),LX=se(MX);var Rs={};Object.defineProperty(Rs,"__esModule",{value:!0});var K3=Rs.Tag=J3=Rs.Label=void 0;const zd=Ee,UX=Ar,VX=zy,Qy=Pe,Y3=ke;var X3=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],zX="Change.konva",GX="none",Zy="up",t1="right",e1="down",r1="left",BX=X3.length;class n1 extends VX.Group{constructor(t){super(t),this.on("add.konva",function(r){this._addListeners(r.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){var r=this,n,i=function(){r._sync()};for(n=0;n<BX;n++)t.on(X3[n]+zX,i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var t=this.getText(),r=this.getTag(),n,i,o,s,a,c,l;if(t&&r){switch(n=t.width(),i=t.height(),o=r.pointerDirection(),s=r.pointerWidth(),l=r.pointerHeight(),a=0,c=0,o){case Zy:a=n/2,c=-1*l;break;case t1:a=n+s,c=i/2;break;case e1:a=n/2,c=i+l;break;case r1:a=-1*s,c=i/2;break}r.setAttrs({x:-1*a,y:-1*c,width:n,height:i}),t.setAttrs({x:-1*a,y:-1*c})}}}var J3=Rs.Label=n1;n1.prototype.className="Label",(0,Y3._registerNode)(n1);class Is extends UX.Shape{_sceneFunc(t){var r=this.width(),n=this.height(),i=this.pointerDirection(),o=this.pointerWidth(),s=this.pointerHeight(),a=this.cornerRadius();let c=0,l=0,u=0,h=0;typeof a=="number"?c=l=u=h=Math.min(a,r/2,n/2):(c=Math.min(a[0]||0,r/2,n/2),l=Math.min(a[1]||0,r/2,n/2),h=Math.min(a[2]||0,r/2,n/2),u=Math.min(a[3]||0,r/2,n/2)),t.beginPath(),t.moveTo(c,0),i===Zy&&(t.lineTo((r-o)/2,0),t.lineTo(r/2,-1*s),t.lineTo((r+o)/2,0)),t.lineTo(r-l,0),t.arc(r-l,l,l,Math.PI*3/2,0,!1),i===t1&&(t.lineTo(r,(n-s)/2),t.lineTo(r+o,n/2),t.lineTo(r,(n+s)/2)),t.lineTo(r,n-h),t.arc(r-h,n-h,h,0,Math.PI/2,!1),i===e1&&(t.lineTo((r+o)/2,n),t.lineTo(r/2,n+s),t.lineTo((r-o)/2,n)),t.lineTo(u,n),t.arc(u,n-u,u,Math.PI/2,Math.PI,!1),i===r1&&(t.lineTo(0,(n+s)/2),t.lineTo(-1*o,n/2),t.lineTo(0,(n-s)/2)),t.lineTo(0,c),t.arc(c,c,c,Math.PI,Math.PI*3/2,!1),t.closePath(),t.fillStrokeShape(this)}getSelfRect(){var t=0,r=0,n=this.pointerWidth(),i=this.pointerHeight(),o=this.pointerDirection(),s=this.width(),a=this.height();return o===Zy?(r-=i,a+=i):o===e1?a+=i:o===r1?(t-=n*1.5,s+=n):o===t1&&(s+=n*1.5),{x:t,y:r,width:s,height:a}}}K3=Rs.Tag=Is,Is.prototype.className="Tag",(0,Y3._registerNode)(Is),zd.Factory.addGetterSetter(Is,"pointerDirection",GX),zd.Factory.addGetterSetter(Is,"pointerWidth",0,(0,Qy.getNumberValidator)()),zd.Factory.addGetterSetter(Is,"pointerHeight",0,(0,Qy.getNumberValidator)()),zd.Factory.addGetterSetter(Is,"cornerRadius",0,(0,Qy.getNumberOrArrayOfNumbersValidator)(4));const HX=oe({__proto__:null,get Label(){return J3},get Tag(){return K3},default:Rs},[Rs]),qX=se(HX);var Dc={};Object.defineProperty(Dc,"__esModule",{value:!0});var W3=Dc.Rect=void 0;const KX=Ee,YX=Ar,XX=ke,JX=dr,WX=Pe;class Gd extends YX.Shape{_sceneFunc(t){var r=this.cornerRadius(),n=this.width(),i=this.height();t.beginPath(),r?JX.Util.drawRoundedRectPath(t,n,i,r):t.rect(0,0,n,i),t.closePath(),t.fillStrokeShape(this)}}W3=Dc.Rect=Gd,Gd.prototype.className="Rect",(0,XX._registerNode)(Gd),KX.Factory.addGetterSetter(Gd,"cornerRadius",0,(0,WX.getNumberOrArrayOfNumbersValidator)(4));const QX=oe({__proto__:null,get Rect(){return W3},default:Dc},[Dc]),Q3=se(QX);var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0});var Z3=Rc.RegularPolygon=void 0;const t4=Ee,ZX=Ar,e4=Pe,tJ=ke;class js extends ZX.Shape{_sceneFunc(t){const r=this._getPoints();t.beginPath(),t.moveTo(r[0].x,r[0].y);for(var n=1;n<r.length;n++)t.lineTo(r[n].x,r[n].y);t.closePath(),t.fillStrokeShape(this)}_getPoints(){const t=this.attrs.sides,r=this.attrs.radius||0,n=[];for(var i=0;i<t;i++)n.push({x:r*Math.sin(i*2*Math.PI/t),y:-1*r*Math.cos(i*2*Math.PI/t)});return n}getSelfRect(){const t=this._getPoints();var r=t[0].x,n=t[0].y,i=t[0].x,o=t[0].y;return t.forEach(s=>{r=Math.min(r,s.x),n=Math.max(n,s.x),i=Math.min(i,s.y),o=Math.max(o,s.y)}),{x:r,y:i,width:n-r,height:o-i}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}Z3=Rc.RegularPolygon=js,js.prototype.className="RegularPolygon",js.prototype._centroid=!0,js.prototype._attrsAffectingSize=["radius"],(0,tJ._registerNode)(js),t4.Factory.addGetterSetter(js,"radius",0,(0,e4.getNumberValidator)()),t4.Factory.addGetterSetter(js,"sides",0,(0,e4.getNumberValidator)());const eJ=oe({__proto__:null,get RegularPolygon(){return Z3},default:Rc},[Rc]),rJ=se(eJ);var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});var r4=Ic.Ring=void 0;const n4=Ee,nJ=Ar,i4=Pe,iJ=ke;var o4=Math.PI*2;class Fs extends nJ.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,o4,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),o4,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}r4=Ic.Ring=Fs,Fs.prototype.className="Ring",Fs.prototype._centroid=!0,Fs.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,iJ._registerNode)(Fs),n4.Factory.addGetterSetter(Fs,"innerRadius",0,(0,i4.getNumberValidator)()),n4.Factory.addGetterSetter(Fs,"outerRadius",0,(0,i4.getNumberValidator)());const oJ=oe({__proto__:null,get Ring(){return r4},default:Ic},[Ic]),sJ=se(oJ);var jc={};Object.defineProperty(jc,"__esModule",{value:!0});var s4=jc.Sprite=void 0;const Ms=Ee,aJ=Ar,lJ=Hy,a4=Pe,cJ=ke;class Ei extends aJ.Shape{constructor(t){super(t),this._updated=!0,this.anim=new lJ.Animation(()=>{var r=this._updated;return this._updated=!1,r}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){var r=this.animation(),n=this.frameIndex(),i=n*4,o=this.animations()[r],s=this.frameOffsets(),a=o[i+0],c=o[i+1],l=o[i+2],u=o[i+3],h=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,l,u),t.closePath(),t.fillStrokeShape(this)),h)if(s){var f=s[r],d=n*2;t.drawImage(h,a,c,l,u,f[d+0],f[d+1],l,u)}else t.drawImage(h,a,c,l,u,0,0,l,u)}_hitFunc(t){var r=this.animation(),n=this.frameIndex(),i=n*4,o=this.animations()[r],s=this.frameOffsets(),a=o[i+2],c=o[i+3];if(t.beginPath(),s){var l=s[r],u=n*2;t.rect(l[u+0],l[u+1],a,c)}else t.rect(0,0,a,c);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var t=this.frameIndex(),r=this.animation(),n=this.animations(),i=n[r],o=i.length/4;t<o-1?this.frameIndex(t+1):this.frameIndex(0)}}s4=jc.Sprite=Ei,Ei.prototype.className="Sprite",(0,cJ._registerNode)(Ei),Ms.Factory.addGetterSetter(Ei,"animation"),Ms.Factory.addGetterSetter(Ei,"animations"),Ms.Factory.addGetterSetter(Ei,"frameOffsets"),Ms.Factory.addGetterSetter(Ei,"image"),Ms.Factory.addGetterSetter(Ei,"frameIndex",0,(0,a4.getNumberValidator)()),Ms.Factory.addGetterSetter(Ei,"frameRate",17,(0,a4.getNumberValidator)()),Ms.Factory.backCompat(Ei,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});const uJ=oe({__proto__:null,get Sprite(){return s4},default:jc},[jc]),hJ=se(uJ);var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});var l4=Fc.Star=void 0;const i1=Ee,dJ=Ar,o1=Pe,fJ=ke;class Fo extends dJ.Shape{_sceneFunc(t){var r=this.innerRadius(),n=this.outerRadius(),i=this.numPoints();t.beginPath(),t.moveTo(0,0-n);for(var o=1;o<i*2;o++){var s=o%2===0?n:r,a=s*Math.sin(o*Math.PI/i),c=-1*s*Math.cos(o*Math.PI/i);t.lineTo(a,c)}t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}l4=Fc.Star=Fo,Fo.prototype.className="Star",Fo.prototype._centroid=!0,Fo.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,fJ._registerNode)(Fo),i1.Factory.addGetterSetter(Fo,"numPoints",5,(0,o1.getNumberValidator)()),i1.Factory.addGetterSetter(Fo,"innerRadius",0,(0,o1.getNumberValidator)()),i1.Factory.addGetterSetter(Fo,"outerRadius",0,(0,o1.getNumberValidator)());const pJ=oe({__proto__:null,get Star(){return l4},default:Fc},[Fc]),mJ=se(pJ);var Ls={};Object.defineProperty(Ls,"__esModule",{value:!0});var c4=Ls.Text=h4=Ls.stringToArray=void 0;const s1=dr,Br=Ee,gJ=Ar,Mo=Pe,yJ=ke;function u4(e){return Array.from(e)}var h4=Ls.stringToArray=u4,ka="auto",vJ="center",d4="inherit",Mc="justify",_J="Change.konva",bJ="2d",f4="-",p4="left",wJ="text",xJ="Text",$J="top",SJ="bottom",m4="middle",g4="normal",EJ="px ",Bd=" ",CJ="right",y4="rtl",kJ="word",PJ="char",v4="none",a1="…",_4=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],TJ=_4.length;function OJ(e){return e.split(",").map(t=>{t=t.trim();const r=t.indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return r&&!n&&(t=`"${t}"`),t}).join(", ")}var l1;function c1(){return l1||(l1=s1.Util.createCanvasElement().getContext(bJ),l1)}function NJ(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function AJ(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function DJ(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}class pr extends gJ.Shape{constructor(t){super(DJ(t)),this._partialTextX=0,this._partialTextY=0;for(var r=0;r<TJ;r++)this.on(_4[r]+_J,this._setTextData);this._setTextData()}_sceneFunc(t){var r=this.textArr,n=r.length;if(this.text()){var i=this.padding(),o=this.fontSize(),s=this.lineHeight()*o,a=this.verticalAlign(),c=this.direction(),l=0,u=this.align(),h=this.getWidth(),f=this.letterSpacing(),d=this.fill(),p=this.textDecoration(),m=p.indexOf("underline")!==-1,v=p.indexOf("line-through")!==-1,b;c=c===d4?t.direction:c;var _=0,_=s/2,g=0,S=0;for(c===y4&&t.setAttr("direction",c),t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",m4),t.setAttr("textAlign",p4),a===m4?l=(this.getHeight()-n*s-i*2)/2:a===SJ&&(l=this.getHeight()-n*s-i*2),t.translate(i,l+i),b=0;b<n;b++){var g=0,S=0,A=r[b],E=A.text,N=A.width,D=A.lastInParagraph,U,G,K;if(t.save(),u===CJ?g+=h-N-i*2:u===vJ&&(g+=(h-N-i*2)/2),m){t.save(),t.beginPath(),t.moveTo(g,_+S+Math.round(o/2)),U=E.split(" ").length-1,G=U===0,K=u===Mc&&!D?h-i*2:N,t.lineTo(g+Math.round(K),_+S+Math.round(o/2)),t.lineWidth=o/15;const _t=this._getLinearGradient();t.strokeStyle=_t||d,t.stroke(),t.restore()}if(v){t.save(),t.beginPath(),t.moveTo(g,_+S),U=E.split(" ").length-1,G=U===0,K=u===Mc&&D&&!G?h-i*2:N,t.lineTo(g+Math.round(K),_+S),t.lineWidth=o/15;const _t=this._getLinearGradient();t.strokeStyle=_t||d,t.stroke(),t.restore()}if(c!==y4&&(f!==0||u===Mc)){U=E.split(" ").length-1;for(var W=u4(E),ot=0;ot<W.length;ot++){var nt=W[ot];nt===" "&&!D&&u===Mc&&(g+=(h-i*2-N)/U),this._partialTextX=g,this._partialTextY=_+S,this._partialText=nt,t.fillStrokeShape(this),g+=this.measureSize(nt).width+f}}else f!==0&&t.setAttr("letterSpacing",`${f}px`),this._partialTextX=g,this._partialTextY=_+S,this._partialText=E,t.fillStrokeShape(this);t.restore(),n>1&&(_+=s)}}}_hitFunc(t){var r=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}setText(t){var r=s1.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(wJ,r),this}getWidth(){var t=this.attrs.width===ka||this.attrs.width===void 0;return t?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var t=this.attrs.height===ka||this.attrs.height===void 0;return t?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return s1.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var r=c1(),n=this.fontSize(),i;return r.save(),r.font=this._getContextFont(),i=r.measureText(t),r.restore(),{width:i.width,height:n}}_getContextFont(){return this.fontStyle()+Bd+this.fontVariant()+Bd+(this.fontSize()+EJ)+OJ(this.fontFamily())}_addTextLine(t){this.align()===Mc&&(t=t.trim());var r=this._getTextWidth(t);return this.textArr.push({text:t,width:r,lastInParagraph:!1})}_getTextWidth(t){var r=this.letterSpacing(),n=t.length;return c1().measureText(t).width+(n?r*(n-1):0)}_setTextData(){var t=this.text().split(`
|
|
85
|
+
`),r=+this.fontSize(),n=0,i=this.lineHeight()*r,o=this.attrs.width,s=this.attrs.height,a=o!==ka&&o!==void 0,c=s!==ka&&s!==void 0,l=this.padding(),u=o-l*2,h=s-l*2,f=0,d=this.wrap(),p=d!==v4,m=d!==PJ&&p,v=this.ellipsis();this.textArr=[],c1().font=this._getContextFont();for(var b=v?this._getTextWidth(a1):0,_=0,g=t.length;_<g;++_){var S=t[_],A=this._getTextWidth(S);if(a&&A>u)for(;S.length>0;){for(var E=0,N=S.length,D="",U=0;E<N;){var G=E+N>>>1,K=S.slice(0,G+1),W=this._getTextWidth(K)+b;W<=u?(E=G+1,D=K,U=W):N=G}if(D){if(m){var ot,nt=S[D.length],ft=nt===Bd||nt===f4;ft&&U<=u?ot=D.length:ot=Math.max(D.lastIndexOf(Bd),D.lastIndexOf(f4))+1,ot>0&&(E=ot,D=D.slice(0,E),U=this._getTextWidth(D))}D=D.trimRight(),this._addTextLine(D),n=Math.max(n,U),f+=i;var $t=this._shouldHandleEllipsis(f);if($t){this._tryToAddEllipsisToLastLine();break}if(S=S.slice(E),S=S.trimLeft(),S.length>0&&(A=this._getTextWidth(S),A<=u)){this._addTextLine(S),f+=i,n=Math.max(n,A);break}}else break}else this._addTextLine(S),f+=i,n=Math.max(n,A),this._shouldHandleEllipsis(f)&&_<g-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),c&&f+i>h)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(t){var r=+this.fontSize(),n=this.lineHeight()*r,i=this.attrs.height,o=i!==ka&&i!==void 0,s=this.padding(),a=i-s*2,c=this.wrap(),l=c!==v4;return!l||o&&t+n>a}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,r=t!==ka&&t!==void 0,n=this.padding(),i=t-n*2,o=this.ellipsis(),s=this.textArr[this.textArr.length-1];if(!(!s||!o)){if(r){var a=this._getTextWidth(s.text+a1)<i;a||(s.text=s.text.slice(0,s.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+a1)}}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const t=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,r=this.hasShadow();return t&&r?!0:super._useBufferCanvas()}}c4=Ls.Text=pr,pr.prototype._fillFunc=NJ,pr.prototype._strokeFunc=AJ,pr.prototype.className=xJ,pr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,yJ._registerNode)(pr),Br.Factory.overWriteSetter(pr,"width",(0,Mo.getNumberOrAutoValidator)()),Br.Factory.overWriteSetter(pr,"height",(0,Mo.getNumberOrAutoValidator)()),Br.Factory.addGetterSetter(pr,"direction",d4),Br.Factory.addGetterSetter(pr,"fontFamily","Arial"),Br.Factory.addGetterSetter(pr,"fontSize",12,(0,Mo.getNumberValidator)()),Br.Factory.addGetterSetter(pr,"fontStyle",g4),Br.Factory.addGetterSetter(pr,"fontVariant",g4),Br.Factory.addGetterSetter(pr,"padding",0,(0,Mo.getNumberValidator)()),Br.Factory.addGetterSetter(pr,"align",p4),Br.Factory.addGetterSetter(pr,"verticalAlign",$J),Br.Factory.addGetterSetter(pr,"lineHeight",1,(0,Mo.getNumberValidator)()),Br.Factory.addGetterSetter(pr,"wrap",kJ),Br.Factory.addGetterSetter(pr,"ellipsis",!1,(0,Mo.getBooleanValidator)()),Br.Factory.addGetterSetter(pr,"letterSpacing",0,(0,Mo.getNumberValidator)()),Br.Factory.addGetterSetter(pr,"text","",(0,Mo.getStringValidator)()),Br.Factory.addGetterSetter(pr,"textDecoration","");const RJ=oe({__proto__:null,get Text(){return c4},default:Ls,get stringToArray(){return h4}},[Ls]),b4=se(RJ);var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});var w4=Lc.TextPath=void 0;const u1=dr,ei=Ee,IJ=Ar,Uc=Xy,h1=b4,x4=Pe,jJ=ke;var FJ="",$4="normal";function S4(e){e.fillText(this.partialText,0,0)}function E4(e){e.strokeText(this.partialText,0,0)}class kr extends IJ.Shape{constructor(t){super(t),this.dummyCanvas=u1.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return Uc.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const r=this.pathLength;return t-1>r?null:Uc.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Uc.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var r=this.textDecoration(),n=this.fill(),i=this.fontSize(),o=this.glyphInfo;r==="underline"&&t.beginPath();for(var s=0;s<o.length;s++){t.save();var a=o[s].p0;t.translate(a.x,a.y),t.rotate(o[s].rotation),this.partialText=o[s].text,t.fillStrokeShape(this),r==="underline"&&(s===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}r==="underline"&&(t.strokeStyle=n,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var r=this.glyphInfo;if(r.length>=1){var n=r[0].p0;t.moveTo(n.x,n.y)}for(var i=0;i<r.length;i++){var o=r[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return u1.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(t){return h1.Text.prototype.setText.call(this,t)}_getContextFont(){return h1.Text.prototype._getContextFont.call(this)}_getTextSize(t){var r=this.dummyCanvas,n=r.getContext("2d");n.save(),n.font=this._getContextFont();var i=n.measureText(t);return n.restore(),{width:i.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const{width:t,height:r}=this._getTextSize(this.attrs.text);if(this.textWidth=t,this.textHeight=r,this.glyphInfo=[],!this.attrs.data)return null;const n=this.letterSpacing(),i=this.align(),o=this.kerningFunc(),s=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);let a=0;i==="center"&&(a=Math.max(0,this.pathLength/2-s/2)),i==="right"&&(a=Math.max(0,this.pathLength-s));const c=(0,h1.stringToArray)(this.text());let l=a;for(var u=0;u<c.length;u++){const h=this._getPointAtLength(l);if(!h)return;let f=this._getTextSize(c[u]).width+n;if(c[u]===" "&&i==="justify"){const _=this.text().split(" ").length-1;f+=(this.pathLength-s)/_}const d=this._getPointAtLength(l+f);if(!d)return;const p=Uc.Path.getLineLength(h.x,h.y,d.x,d.y);let m=0;if(o)try{m=o(c[u-1],c[u])*this.fontSize()}catch{m=0}h.x+=m,d.x+=m,this.textWidth+=m;const v=Uc.Path.getPointOnLine(m+p/2,h.x,h.y,d.x,d.y),b=Math.atan2(d.y-h.y,d.x-h.x);this.glyphInfo.push({transposeX:v.x,transposeY:v.y,text:c[u],rotation:b,p0:h,p1:d}),l+=f}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var t=[];this.glyphInfo.forEach(function(u){t.push(u.p0.x),t.push(u.p0.y),t.push(u.p1.x),t.push(u.p1.y)});for(var r=t[0]||0,n=t[0]||0,i=t[1]||0,o=t[1]||0,s,a,c=0;c<t.length/2;c++)s=t[c*2],a=t[c*2+1],r=Math.min(r,s),n=Math.max(n,s),i=Math.min(i,a),o=Math.max(o,a);var l=this.fontSize();return{x:r-l/2,y:i-l/2,width:n-r+l,height:o-i+l}}destroy(){return u1.Util.releaseCanvas(this.dummyCanvas),super.destroy()}}w4=Lc.TextPath=kr,kr.prototype._fillFunc=S4,kr.prototype._strokeFunc=E4,kr.prototype._fillFuncHit=S4,kr.prototype._strokeFuncHit=E4,kr.prototype.className="TextPath",kr.prototype._attrsAffectingSize=["text","fontSize","data"],(0,jJ._registerNode)(kr),ei.Factory.addGetterSetter(kr,"data"),ei.Factory.addGetterSetter(kr,"fontFamily","Arial"),ei.Factory.addGetterSetter(kr,"fontSize",12,(0,x4.getNumberValidator)()),ei.Factory.addGetterSetter(kr,"fontStyle",$4),ei.Factory.addGetterSetter(kr,"align","left"),ei.Factory.addGetterSetter(kr,"letterSpacing",0,(0,x4.getNumberValidator)()),ei.Factory.addGetterSetter(kr,"textBaseline","middle"),ei.Factory.addGetterSetter(kr,"fontVariant",$4),ei.Factory.addGetterSetter(kr,"text",FJ),ei.Factory.addGetterSetter(kr,"textDecoration",null),ei.Factory.addGetterSetter(kr,"kerningFunc",null);const MJ=oe({__proto__:null,get TextPath(){return w4},default:Lc},[Lc]),LJ=se(MJ);var Vc={};Object.defineProperty(Vc,"__esModule",{value:!0});var C4=Vc.Transformer=void 0;const Ke=dr,Ue=Ee,k4=_r,UJ=Ar,VJ=Q3,P4=zy,ri=ke,Lo=Pe,zJ=ke;var T4="tr-konva",GJ=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(e=>e+`.${T4}`).join(" "),O4="nodesRect",BJ=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],HJ={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const qJ="ontouchstart"in ri.Konva._global;function KJ(e,t,r){if(e==="rotater")return r;t+=Ke.Util.degToRad(HJ[e]||0);var n=(Ke.Util.radToDeg(t)%360+360)%360;return Ke.Util._inRange(n,315+22.5,360)||Ke.Util._inRange(n,0,22.5)?"ns-resize":Ke.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":Ke.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":Ke.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":Ke.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":Ke.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":Ke.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":Ke.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(Ke.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}var Hd=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],N4=1e8;function YJ(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function A4(e,t,r){const n=r.x+(e.x-r.x)*Math.cos(t)-(e.y-r.y)*Math.sin(t),i=r.y+(e.x-r.x)*Math.sin(t)+(e.y-r.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:n,y:i}}function XJ(e,t){const r=YJ(e);return A4(e,t,r)}function JJ(e,t,r){let n=t;for(let i=0;i<e.length;i++){const o=ri.Konva.getAngle(e[i]),s=Math.abs(o-t)%(Math.PI*2);Math.min(s,Math.PI*2-s)<r&&(n=o)}return n}class je extends P4.Group{constructor(t){super(t),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(GJ,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return Ke.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return T4+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach();const r=t.filter(i=>i.isAncestorOf(this)?(Ke.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);this._nodes=t=r,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(i=>{const o=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},s=i._attrsAffectingSize.map(a=>a+"Change."+this._getEventNamespace()).join(" ");i.on(s,o),i.on(BJ.map(a=>a+`.${this._getEventNamespace()}`).join(" "),o),i.on(`absoluteTransformChange.${this._getEventNamespace()}`,o),this._proxyDrag(i)}),this._resetTransformCache();var n=!!this.findOne(".top-left");return n&&this.update(),this}_proxyDrag(t){let r;t.on(`dragstart.${this._getEventNamespace()}`,n=>{r=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(n,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!r)return;const i=t.getAbsolutePosition(),o=i.x-r.x,s=i.y-r.y;this.nodes().forEach(a=>{if(a===t||a.isDragging())return;const c=a.getAbsolutePosition();a.setAbsolutePosition({x:c.x+o,y:c.y+s}),a.startDrag(n)}),r=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(O4),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(O4,this.__getNodeRect)}__getNodeShape(t,r=this.rotation(),n){var i=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),o=t.getAbsoluteScale(n),s=t.getAbsolutePosition(n),a=i.x*o.x-t.offsetX()*o.x,c=i.y*o.y-t.offsetY()*o.y;const l=(ri.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),u={x:s.x+a*Math.cos(l)+c*Math.sin(-l),y:s.y+c*Math.cos(l)+a*Math.sin(l),width:i.width*o.x,height:i.height*o.y,rotation:l};return A4(u,-ri.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){var t=this.getNode();if(!t)return{x:-N4,y:-N4,width:0,height:0,rotation:0};const r=[];this.nodes().map(l=>{const u=l.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var h=[{x:u.x,y:u.y},{x:u.x+u.width,y:u.y},{x:u.x+u.width,y:u.y+u.height},{x:u.x,y:u.y+u.height}],f=l.getAbsoluteTransform();h.forEach(function(d){var p=f.point(d);r.push(p)})});const n=new Ke.Transform;n.rotate(-ri.Konva.getAngle(this.rotation()));var i=1/0,o=1/0,s=-1/0,a=-1/0;r.forEach(function(l){var u=n.point(l);i===void 0&&(i=s=u.x,o=a=u.y),i=Math.min(i,u.x),o=Math.min(o,u.y),s=Math.max(s,u.x),a=Math.max(a,u.y)}),n.invert();const c=n.point({x:i,y:o});return{x:c.x,y:c.y,width:s-i,height:a-o,rotation:ri.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),Hd.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){var r=new VJ.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:qJ?10:"auto"}),n=this;r.on("mousedown touchstart",function(i){n._handleMouseDown(i)}),r.on("dragstart",i=>{r.stopDrag(),i.cancelBubble=!0}),r.on("dragend",i=>{i.cancelBubble=!0}),r.on("mouseenter",()=>{var i=ri.Konva.getAngle(this.rotation()),o=this.rotateAnchorCursor(),s=KJ(t,i,o);r.getStage().content&&(r.getStage().content.style.cursor=s),this._cursorChange=!0}),r.on("mouseout",()=>{r.getStage().content&&(r.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(r)}_createBack(){var t=new UJ.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(r,n){var i=n.getParent(),o=i.padding();r.beginPath(),r.rect(-o,-o,n.width()+o*2,n.height()+o*2),r.moveTo(n.width()/2,-o),i.rotateEnabled()&&r.lineTo(n.width()/2,-i.rotateAnchorOffset()*Ke.Util._sign(n.height())-o),r.fillStrokeShape(n)},hitFunc:(r,n)=>{if(this.shouldOverdrawWholeArea()){var i=this.padding();r.beginPath(),r.rect(-i,-i,n.width()+i*2,n.height()+i*2),r.fillStrokeShape(n)}}});this.add(t),this._proxyDrag(t),t.on("dragstart",r=>{r.cancelBubble=!0}),t.on("dragmove",r=>{r.cancelBubble=!0}),t.on("dragend",r=>{r.cancelBubble=!0}),this.on("dragmove",r=>{this.update()})}_handleMouseDown(t){this._movingAnchorName=t.target.name().split(" ")[0];var r=this._getNodeRect(),n=r.width,i=r.height,o=Math.sqrt(Math.pow(n,2)+Math.pow(i,2));this.sin=Math.abs(i/o),this.cos=Math.abs(n/o),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var s=t.target.getAbsolutePosition(),a=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:a.x-s.x,y:a.y-s.y},this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(c=>{c._fire("transformstart",{evt:t.evt,target:c})})}_handleMouseMove(t){var r,n,i,o=this.findOne("."+this._movingAnchorName),s=o.getStage();s.setPointersPositions(t);const a=s.getPointerPosition();let c={x:a.x-this._anchorDragOffset.x,y:a.y-this._anchorDragOffset.y};const l=o.getAbsolutePosition();this.anchorDragBoundFunc()&&(c=this.anchorDragBoundFunc()(l,c,t)),o.setAbsolutePosition(c);const u=o.getAbsolutePosition();if(!(l.x===u.x&&l.y===u.y)){if(this._movingAnchorName==="rotater"){var h=this._getNodeRect();r=o.x()-h.width/2,n=-o.y()+h.height/2;let ot=Math.atan2(-n,r)+Math.PI/2;h.height<0&&(ot-=Math.PI);var f=ri.Konva.getAngle(this.rotation());const nt=f+ot,ft=ri.Konva.getAngle(this.rotationSnapTolerance()),$t=JJ(this.rotationSnaps(),nt,ft)-h.rotation,_t=XJ(h,$t);this._fitNodesInto(_t,t);return}var d=this.shiftBehavior(),p;d==="inverted"?p=this.keepRatio()&&!t.shiftKey:d==="none"?p=this.keepRatio():p=this.keepRatio()||t.shiftKey;var g=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(p){var m=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(m.x-o.x(),2)+Math.pow(m.y-o.y(),2));var v=this.findOne(".top-left").x()>m.x?-1:1,b=this.findOne(".top-left").y()>m.y?-1:1;r=i*this.cos*v,n=i*this.sin*b,this.findOne(".top-left").x(m.x-r),this.findOne(".top-left").y(m.y-n)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(o.y());else if(this._movingAnchorName==="top-right"){if(p){var m=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(o.x()-m.x,2)+Math.pow(m.y-o.y(),2));var v=this.findOne(".top-right").x()<m.x?-1:1,b=this.findOne(".top-right").y()>m.y?-1:1;r=i*this.cos*v,n=i*this.sin*b,this.findOne(".top-right").x(m.x+r),this.findOne(".top-right").y(m.y-n)}var _=o.position();this.findOne(".top-left").y(_.y),this.findOne(".bottom-right").x(_.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(o.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(o.x());else if(this._movingAnchorName==="bottom-left"){if(p){var m=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(m.x-o.x(),2)+Math.pow(o.y()-m.y,2));var v=m.x<o.x()?-1:1,b=o.y()<m.y?-1:1;r=i*this.cos*v,n=i*this.sin*b,o.x(m.x-r),o.y(m.y+n)}_=o.position(),this.findOne(".top-left").x(_.x),this.findOne(".bottom-right").y(_.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(o.y());else if(this._movingAnchorName==="bottom-right"){if(p){var m=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(o.x()-m.x,2)+Math.pow(o.y()-m.y,2));var v=this.findOne(".bottom-right").x()<m.x?-1:1,b=this.findOne(".bottom-right").y()<m.y?-1:1;r=i*this.cos*v,n=i*this.sin*b,this.findOne(".bottom-right").x(m.x+r),this.findOne(".bottom-right").y(m.y+n)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var g=this.centeredScaling()||t.altKey;if(g){var S=this.findOne(".top-left"),A=this.findOne(".bottom-right"),E=S.x(),N=S.y(),D=this.getWidth()-A.x(),U=this.getHeight()-A.y();A.move({x:-E,y:-N}),S.move({x:D,y:U})}var G=this.findOne(".top-left").getAbsolutePosition();r=G.x,n=G.y;var K=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),W=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:r,y:n,width:K,height:W,rotation:ri.Konva.getAngle(this.rotation())},t)}}_handleMouseUp(t){this._removeEvents(t)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(t){if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));var r=this.getNode();this._fire("transformend",{evt:t,target:r}),r&&this._nodes.forEach(n=>{n._fire("transformend",{evt:t,target:n})}),this._movingAnchorName=null}}_fitNodesInto(t,r){var n=this._getNodeRect();const i=1;if(Ke.Util._inRange(t.width,-this.padding()*2-i,i)){this.update();return}if(Ke.Util._inRange(t.height,-this.padding()*2-i,i)){this.update();return}const o=this.flipEnabled();var s=new Ke.Transform;if(s.rotate(ri.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const h=s.point({x:-this.padding()*2,y:0});if(t.x+=h.x,t.y+=h.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=h.x,this._anchorDragOffset.y-=h.y,!o){this.update();return}}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const h=s.point({x:this.padding()*2,y:0});if(this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=h.x,this._anchorDragOffset.y-=h.y,t.width+=this.padding()*2,!o){this.update();return}}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const h=s.point({x:0,y:-this.padding()*2});if(t.x+=h.x,t.y+=h.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=h.x,this._anchorDragOffset.y-=h.y,t.height+=this.padding()*2,!o){this.update();return}}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const h=s.point({x:0,y:this.padding()*2});if(this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=h.x,this._anchorDragOffset.y-=h.y,t.height+=this.padding()*2,!o){this.update();return}}if(this.boundBoxFunc()){const h=this.boundBoxFunc()(n,t);h?t=h:Ke.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const a=1e7,c=new Ke.Transform;c.translate(n.x,n.y),c.rotate(n.rotation),c.scale(n.width/a,n.height/a);const l=new Ke.Transform;l.translate(t.x,t.y),l.rotate(t.rotation),l.scale(t.width/a,t.height/a);const u=l.multiply(c.invert());this._nodes.forEach(h=>{var f;const d=h.getParent().getAbsoluteTransform(),p=h.getTransform().copy();p.translate(h.offsetX(),h.offsetY());const m=new Ke.Transform;m.multiply(d.copy().invert()).multiply(u).multiply(d).multiply(p);const v=m.decompose();h.setAttrs(v),this._fire("transform",{evt:r,target:h}),h._fire("transform",{evt:r,target:h}),(f=h.getLayer())===null||f===void 0||f.batchDraw()}),this.rotation(Ke.Util._getRotation(t.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,r){this.findOne(t).setAttrs(r)}update(){var t,r=this._getNodeRect();this.rotation(Ke.Util._getRotation(r.rotation));var n=r.width,i=r.height,o=this.enabledAnchors(),s=this.resizeEnabled(),a=this.padding(),c=this.anchorSize();const l=this.find("._anchor");l.forEach(h=>{h.setAttrs({width:c,height:c,offsetX:c/2,offsetY:c/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:c/2+a,offsetY:c/2+a,visible:s&&o.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:c/2+a,visible:s&&o.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:c/2-a,offsetY:c/2+a,visible:s&&o.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:c/2+a,visible:s&&o.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:i/2,offsetX:c/2-a,visible:s&&o.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:c/2+a,offsetY:c/2-a,visible:s&&o.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:i,offsetY:c/2-a,visible:s&&o.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:i,offsetX:c/2-a,offsetY:c/2-a,visible:s&&o.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*Ke.Util._sign(i)-a,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const u=this.anchorStyleFunc();u&&l.forEach(h=>{u(h)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),P4.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return k4.Node.prototype.toObject.call(this)}clone(t){var r=k4.Node.prototype.clone.call(this,t);return r}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}C4=Vc.Transformer=je;function WJ(e){return e instanceof Array||Ke.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){Hd.indexOf(t)===-1&&Ke.Util.warn("Unknown anchor name: "+t+". Available names are: "+Hd.join(", "))}),e||[]}je.prototype.className="Transformer",(0,zJ._registerNode)(je),Ue.Factory.addGetterSetter(je,"enabledAnchors",Hd,WJ),Ue.Factory.addGetterSetter(je,"flipEnabled",!0,(0,Lo.getBooleanValidator)()),Ue.Factory.addGetterSetter(je,"resizeEnabled",!0),Ue.Factory.addGetterSetter(je,"anchorSize",10,(0,Lo.getNumberValidator)()),Ue.Factory.addGetterSetter(je,"rotateEnabled",!0),Ue.Factory.addGetterSetter(je,"rotationSnaps",[]),Ue.Factory.addGetterSetter(je,"rotateAnchorOffset",50,(0,Lo.getNumberValidator)()),Ue.Factory.addGetterSetter(je,"rotateAnchorCursor","crosshair"),Ue.Factory.addGetterSetter(je,"rotationSnapTolerance",5,(0,Lo.getNumberValidator)()),Ue.Factory.addGetterSetter(je,"borderEnabled",!0),Ue.Factory.addGetterSetter(je,"anchorStroke","rgb(0, 161, 255)"),Ue.Factory.addGetterSetter(je,"anchorStrokeWidth",1,(0,Lo.getNumberValidator)()),Ue.Factory.addGetterSetter(je,"anchorFill","white"),Ue.Factory.addGetterSetter(je,"anchorCornerRadius",0,(0,Lo.getNumberValidator)()),Ue.Factory.addGetterSetter(je,"borderStroke","rgb(0, 161, 255)"),Ue.Factory.addGetterSetter(je,"borderStrokeWidth",1,(0,Lo.getNumberValidator)()),Ue.Factory.addGetterSetter(je,"borderDash"),Ue.Factory.addGetterSetter(je,"keepRatio",!0),Ue.Factory.addGetterSetter(je,"shiftBehavior","default"),Ue.Factory.addGetterSetter(je,"centeredScaling",!1),Ue.Factory.addGetterSetter(je,"ignoreStroke",!1),Ue.Factory.addGetterSetter(je,"padding",0,(0,Lo.getNumberValidator)()),Ue.Factory.addGetterSetter(je,"node"),Ue.Factory.addGetterSetter(je,"nodes"),Ue.Factory.addGetterSetter(je,"boundBoxFunc"),Ue.Factory.addGetterSetter(je,"anchorDragBoundFunc"),Ue.Factory.addGetterSetter(je,"anchorStyleFunc"),Ue.Factory.addGetterSetter(je,"shouldOverdrawWholeArea",!1),Ue.Factory.addGetterSetter(je,"useSingleNodeRotation",!0),Ue.Factory.backCompat(je,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});const QJ=oe({__proto__:null,get Transformer(){return C4},default:Vc},[Vc]),ZJ=se(QJ);var zc={};Object.defineProperty(zc,"__esModule",{value:!0});var D4=zc.Wedge=void 0;const qd=Ee,tW=Ar,eW=ke,R4=Pe,rW=ke;class ao extends tW.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,eW.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}D4=zc.Wedge=ao,ao.prototype.className="Wedge",ao.prototype._centroid=!0,ao.prototype._attrsAffectingSize=["radius"],(0,rW._registerNode)(ao),qd.Factory.addGetterSetter(ao,"radius",0,(0,R4.getNumberValidator)()),qd.Factory.addGetterSetter(ao,"angle",0,(0,R4.getNumberValidator)()),qd.Factory.addGetterSetter(ao,"clockwise",!1),qd.Factory.backCompat(ao,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});const nW=oe({__proto__:null,get Wedge(){return D4},default:zc},[zc]),iW=se(nW);var Gc={};Object.defineProperty(Gc,"__esModule",{value:!0});var I4=Gc.Blur=void 0;const j4=Ee,oW=_r,sW=Pe;function F4(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var aW=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],lW=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function cW(e,t){var r=e.data,n=e.width,i=e.height,o,s,a,c,l,u,h,f,d,p,m,v,b,_,g,S,A,E,N,D,U,G,K,W,ot=t+t+1,nt=n-1,ft=i-1,$t=t+1,_t=$t*($t+1)/2,vt=new F4,at=null,Y=vt,T=null,C=null,$=aW[t],y=lW[t];for(a=1;a<ot;a++)Y=Y.next=new F4,a===$t&&(at=Y);for(Y.next=vt,h=u=0,s=0;s<i;s++){for(S=A=E=N=f=d=p=m=0,v=$t*(D=r[u]),b=$t*(U=r[u+1]),_=$t*(G=r[u+2]),g=$t*(K=r[u+3]),f+=_t*D,d+=_t*U,p+=_t*G,m+=_t*K,Y=vt,a=0;a<$t;a++)Y.r=D,Y.g=U,Y.b=G,Y.a=K,Y=Y.next;for(a=1;a<$t;a++)c=u+((nt<a?nt:a)<<2),f+=(Y.r=D=r[c])*(W=$t-a),d+=(Y.g=U=r[c+1])*W,p+=(Y.b=G=r[c+2])*W,m+=(Y.a=K=r[c+3])*W,S+=D,A+=U,E+=G,N+=K,Y=Y.next;for(T=vt,C=at,o=0;o<n;o++)r[u+3]=K=m*$>>y,K!==0?(K=255/K,r[u]=(f*$>>y)*K,r[u+1]=(d*$>>y)*K,r[u+2]=(p*$>>y)*K):r[u]=r[u+1]=r[u+2]=0,f-=v,d-=b,p-=_,m-=g,v-=T.r,b-=T.g,_-=T.b,g-=T.a,c=h+((c=o+t+1)<nt?c:nt)<<2,S+=T.r=r[c],A+=T.g=r[c+1],E+=T.b=r[c+2],N+=T.a=r[c+3],f+=S,d+=A,p+=E,m+=N,T=T.next,v+=D=C.r,b+=U=C.g,_+=G=C.b,g+=K=C.a,S-=D,A-=U,E-=G,N-=K,C=C.next,u+=4;h+=n}for(o=0;o<n;o++){for(A=E=N=S=d=p=m=f=0,u=o<<2,v=$t*(D=r[u]),b=$t*(U=r[u+1]),_=$t*(G=r[u+2]),g=$t*(K=r[u+3]),f+=_t*D,d+=_t*U,p+=_t*G,m+=_t*K,Y=vt,a=0;a<$t;a++)Y.r=D,Y.g=U,Y.b=G,Y.a=K,Y=Y.next;for(l=n,a=1;a<=t;a++)u=l+o<<2,f+=(Y.r=D=r[u])*(W=$t-a),d+=(Y.g=U=r[u+1])*W,p+=(Y.b=G=r[u+2])*W,m+=(Y.a=K=r[u+3])*W,S+=D,A+=U,E+=G,N+=K,Y=Y.next,a<ft&&(l+=n);for(u=o,T=vt,C=at,s=0;s<i;s++)c=u<<2,r[c+3]=K=m*$>>y,K>0?(K=255/K,r[c]=(f*$>>y)*K,r[c+1]=(d*$>>y)*K,r[c+2]=(p*$>>y)*K):r[c]=r[c+1]=r[c+2]=0,f-=v,d-=b,p-=_,m-=g,v-=T.r,b-=T.g,_-=T.b,g-=T.a,c=o+((c=s+$t)<ft?c:ft)*n<<2,f+=S+=T.r=r[c],d+=A+=T.g=r[c+1],p+=E+=T.b=r[c+2],m+=N+=T.a=r[c+3],T=T.next,v+=D=C.r,b+=U=C.g,_+=G=C.b,g+=K=C.a,S-=D,A-=U,E-=G,N-=K,C=C.next,u+=n}}const uW=function(e){var t=Math.round(this.blurRadius());t>0&&cW(e,t)};I4=Gc.Blur=uW,j4.Factory.addGetterSetter(oW.Node,"blurRadius",0,(0,sW.getNumberValidator)(),j4.Factory.afterSetFilter);const hW=oe({__proto__:null,get Blur(){return I4},default:Gc},[Gc]),dW=se(hW);var Bc={};Object.defineProperty(Bc,"__esModule",{value:!0});var M4=Bc.Brighten=void 0;const L4=Ee,fW=_r,pW=Pe,mW=function(e){var t=this.brightness()*255,r=e.data,n=r.length,i;for(i=0;i<n;i+=4)r[i]+=t,r[i+1]+=t,r[i+2]+=t};M4=Bc.Brighten=mW,L4.Factory.addGetterSetter(fW.Node,"brightness",0,(0,pW.getNumberValidator)(),L4.Factory.afterSetFilter);const gW=oe({__proto__:null,get Brighten(){return M4},default:Bc},[Bc]),yW=se(gW);var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});var U4=Hc.Contrast=void 0;const V4=Ee,vW=_r,_W=Pe,bW=function(e){var t=Math.pow((this.contrast()+100)/100,2),r=e.data,n=r.length,i=150,o=150,s=150,a;for(a=0;a<n;a+=4)i=r[a],o=r[a+1],s=r[a+2],i/=255,i-=.5,i*=t,i+=.5,i*=255,o/=255,o-=.5,o*=t,o+=.5,o*=255,s/=255,s-=.5,s*=t,s+=.5,s*=255,i=i<0?0:i>255?255:i,o=o<0?0:o>255?255:o,s=s<0?0:s>255?255:s,r[a]=i,r[a+1]=o,r[a+2]=s};U4=Hc.Contrast=bW,V4.Factory.addGetterSetter(vW.Node,"contrast",0,(0,_W.getNumberValidator)(),V4.Factory.afterSetFilter);const wW=oe({__proto__:null,get Contrast(){return U4},default:Hc},[Hc]),xW=se(wW);var qc={};Object.defineProperty(qc,"__esModule",{value:!0});var z4=qc.Emboss=void 0;const Uo=Ee,Kd=_r,$W=dr,G4=Pe,SW=function(e){var t=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),i=this.embossBlend(),o=0,s=0,a=e.data,c=e.width,l=e.height,u=c*4,h=l;switch(n){case"top-left":o=-1,s=-1;break;case"top":o=-1,s=0;break;case"top-right":o=-1,s=1;break;case"right":o=0,s=1;break;case"bottom-right":o=1,s=1;break;case"bottom":o=1,s=0;break;case"bottom-left":o=1,s=-1;break;case"left":o=0,s=-1;break;default:$W.Util.error("Unknown emboss direction: "+n)}do{var f=(h-1)*u,d=o;h+d<1&&(d=0),h+d>l&&(d=0);var p=(h-1+d)*c*4,m=c;do{var v=f+(m-1)*4,b=s;m+b<1&&(b=0),m+b>c&&(b=0);var _=p+(m-1+b)*4,g=a[v]-a[_],S=a[v+1]-a[_+1],A=a[v+2]-a[_+2],E=g,N=E>0?E:-E,D=S>0?S:-S,U=A>0?A:-A;if(D>N&&(E=S),U>N&&(E=A),E*=t,i){var G=a[v]+E,K=a[v+1]+E,W=a[v+2]+E;a[v]=G>255?255:G<0?0:G,a[v+1]=K>255?255:K<0?0:K,a[v+2]=W>255?255:W<0?0:W}else{var ot=r-E;ot<0?ot=0:ot>255&&(ot=255),a[v]=a[v+1]=a[v+2]=ot}}while(--m)}while(--h)};z4=qc.Emboss=SW,Uo.Factory.addGetterSetter(Kd.Node,"embossStrength",.5,(0,G4.getNumberValidator)(),Uo.Factory.afterSetFilter),Uo.Factory.addGetterSetter(Kd.Node,"embossWhiteLevel",.5,(0,G4.getNumberValidator)(),Uo.Factory.afterSetFilter),Uo.Factory.addGetterSetter(Kd.Node,"embossDirection","top-left",null,Uo.Factory.afterSetFilter),Uo.Factory.addGetterSetter(Kd.Node,"embossBlend",!1,null,Uo.Factory.afterSetFilter);const EW=oe({__proto__:null,get Emboss(){return z4},default:qc},[qc]),CW=se(EW);var Kc={};Object.defineProperty(Kc,"__esModule",{value:!0});var B4=Kc.Enhance=void 0;const H4=Ee,kW=_r,PW=Pe;function d1(e,t,r,n,i){var o=r-t,s=i-n,a;return o===0?n+s/2:s===0?n:(a=(e-t)/o,a=s*a+n,a)}const TW=function(e){var t=e.data,r=t.length,n=t[0],i=n,o,s=t[1],a=s,c,l=t[2],u=l,h,f,d=this.enhance();if(d!==0){for(f=0;f<r;f+=4)o=t[f+0],o<n?n=o:o>i&&(i=o),c=t[f+1],c<s?s=c:c>a&&(a=c),h=t[f+2],h<l?l=h:h>u&&(u=h);i===n&&(i=255,n=0),a===s&&(a=255,s=0),u===l&&(u=255,l=0);var p,m,v,b,_,g,S,A,E;for(d>0?(m=i+d*(255-i),v=n-d*(n-0),_=a+d*(255-a),g=s-d*(s-0),A=u+d*(255-u),E=l-d*(l-0)):(p=(i+n)*.5,m=i+d*(i-p),v=n+d*(n-p),b=(a+s)*.5,_=a+d*(a-b),g=s+d*(s-b),S=(u+l)*.5,A=u+d*(u-S),E=l+d*(l-S)),f=0;f<r;f+=4)t[f+0]=d1(t[f+0],n,i,v,m),t[f+1]=d1(t[f+1],s,a,g,_),t[f+2]=d1(t[f+2],l,u,E,A)}};B4=Kc.Enhance=TW,H4.Factory.addGetterSetter(kW.Node,"enhance",0,(0,PW.getNumberValidator)(),H4.Factory.afterSetFilter);const OW=oe({__proto__:null,get Enhance(){return B4},default:Kc},[Kc]),NW=se(OW);var Yc={};Object.defineProperty(Yc,"__esModule",{value:!0});var q4=Yc.Grayscale=void 0;const AW=function(e){var t=e.data,r=t.length,n,i;for(n=0;n<r;n+=4)i=.34*t[n]+.5*t[n+1]+.16*t[n+2],t[n]=i,t[n+1]=i,t[n+2]=i};q4=Yc.Grayscale=AW;const DW=oe({__proto__:null,get Grayscale(){return q4},default:Yc},[Yc]),RW=se(DW);var Xc={};Object.defineProperty(Xc,"__esModule",{value:!0});var K4=Xc.HSL=void 0;const Pa=Ee,f1=_r,p1=Pe;Pa.Factory.addGetterSetter(f1.Node,"hue",0,(0,p1.getNumberValidator)(),Pa.Factory.afterSetFilter),Pa.Factory.addGetterSetter(f1.Node,"saturation",0,(0,p1.getNumberValidator)(),Pa.Factory.afterSetFilter),Pa.Factory.addGetterSetter(f1.Node,"luminance",0,(0,p1.getNumberValidator)(),Pa.Factory.afterSetFilter);const IW=function(e){var t=e.data,r=t.length,n=1,i=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,s=this.luminance()*127,a,c=n*i*Math.cos(o*Math.PI/180),l=n*i*Math.sin(o*Math.PI/180),u=.299*n+.701*c+.167*l,h=.587*n-.587*c+.33*l,f=.114*n-.114*c-.497*l,d=.299*n-.299*c-.328*l,p=.587*n+.413*c+.035*l,m=.114*n-.114*c+.293*l,v=.299*n-.3*c+1.25*l,b=.587*n-.586*c-1.05*l,_=.114*n+.886*c-.2*l,g,S,A,E;for(a=0;a<r;a+=4)g=t[a+0],S=t[a+1],A=t[a+2],E=t[a+3],t[a+0]=u*g+h*S+f*A+s,t[a+1]=d*g+p*S+m*A+s,t[a+2]=v*g+b*S+_*A+s,t[a+3]=E};K4=Xc.HSL=IW;const jW=oe({__proto__:null,get HSL(){return K4},default:Xc},[Xc]),FW=se(jW);var Jc={};Object.defineProperty(Jc,"__esModule",{value:!0});var Y4=Jc.HSV=void 0;const Ta=Ee,m1=_r,g1=Pe,MW=function(e){var t=e.data,r=t.length,n=Math.pow(2,this.value()),i=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,s,a=n*i*Math.cos(o*Math.PI/180),c=n*i*Math.sin(o*Math.PI/180),l=.299*n+.701*a+.167*c,u=.587*n-.587*a+.33*c,h=.114*n-.114*a-.497*c,f=.299*n-.299*a-.328*c,d=.587*n+.413*a+.035*c,p=.114*n-.114*a+.293*c,m=.299*n-.3*a+1.25*c,v=.587*n-.586*a-1.05*c,b=.114*n+.886*a-.2*c,_,g,S,A;for(s=0;s<r;s+=4)_=t[s+0],g=t[s+1],S=t[s+2],A=t[s+3],t[s+0]=l*_+u*g+h*S,t[s+1]=f*_+d*g+p*S,t[s+2]=m*_+v*g+b*S,t[s+3]=A};Y4=Jc.HSV=MW,Ta.Factory.addGetterSetter(m1.Node,"hue",0,(0,g1.getNumberValidator)(),Ta.Factory.afterSetFilter),Ta.Factory.addGetterSetter(m1.Node,"saturation",0,(0,g1.getNumberValidator)(),Ta.Factory.afterSetFilter),Ta.Factory.addGetterSetter(m1.Node,"value",0,(0,g1.getNumberValidator)(),Ta.Factory.afterSetFilter);const LW=oe({__proto__:null,get HSV(){return Y4},default:Jc},[Jc]),UW=se(LW);var Wc={};Object.defineProperty(Wc,"__esModule",{value:!0});var X4=Wc.Invert=void 0;const VW=function(e){var t=e.data,r=t.length,n;for(n=0;n<r;n+=4)t[n]=255-t[n],t[n+1]=255-t[n+1],t[n+2]=255-t[n+2]};X4=Wc.Invert=VW;const zW=oe({__proto__:null,get Invert(){return X4},default:Wc},[Wc]),GW=se(zW);var Qc={};Object.defineProperty(Qc,"__esModule",{value:!0});var J4=Qc.Kaleidoscope=void 0;const Yd=Ee,W4=_r,Q4=dr,Z4=Pe;var BW=function(e,t,r){var n=e.data,i=t.data,o=e.width,s=e.height,a=r.polarCenterX||o/2,c=r.polarCenterY||s/2,l,u,h,f=0,d=0,p=0,m=0,v,b=Math.sqrt(a*a+c*c);u=o-a,h=s-c,v=Math.sqrt(u*u+h*h),b=v>b?v:b;var _=s,g=o,S,A,E=360/g*Math.PI/180,N,D;for(A=0;A<g;A+=1)for(N=Math.sin(A*E),D=Math.cos(A*E),S=0;S<_;S+=1)u=Math.floor(a+b*S/_*D),h=Math.floor(c+b*S/_*N),l=(h*o+u)*4,f=n[l+0],d=n[l+1],p=n[l+2],m=n[l+3],l=(A+S*o)*4,i[l+0]=f,i[l+1]=d,i[l+2]=p,i[l+3]=m},HW=function(e,t,r){var n=e.data,i=t.data,o=e.width,s=e.height,a=r.polarCenterX||o/2,c=r.polarCenterY||s/2,l,u,h,f,d,p=0,m=0,v=0,b=0,_,g=Math.sqrt(a*a+c*c);u=o-a,h=s-c,_=Math.sqrt(u*u+h*h),g=_>g?_:g;var S=s,A=o,E,N,D=r.polarRotation||0,U,G;for(u=0;u<o;u+=1)for(h=0;h<s;h+=1)f=u-a,d=h-c,E=Math.sqrt(f*f+d*d)*S/g,N=(Math.atan2(d,f)*180/Math.PI+360+D)%360,N=N*A/360,U=Math.floor(N),G=Math.floor(E),l=(G*o+U)*4,p=n[l+0],m=n[l+1],v=n[l+2],b=n[l+3],l=(h*o+u)*4,i[l+0]=p,i[l+1]=m,i[l+2]=v,i[l+3]=b};const qW=function(e){var t=e.width,r=e.height,n,i,o,s,a,c,l,u,h,f,d=Math.round(this.kaleidoscopePower()),p=Math.round(this.kaleidoscopeAngle()),m=Math.floor(t*(p%360)/360);if(!(d<1)){var v=Q4.Util.createCanvasElement();v.width=t,v.height=r;var b=v.getContext("2d").getImageData(0,0,t,r);Q4.Util.releaseCanvas(v),BW(e,b,{polarCenterX:t/2,polarCenterY:r/2});for(var _=t/Math.pow(2,d);_<=8;)_=_*2,d-=1;_=Math.ceil(_);var g=_,S=0,A=g,E=1;for(m+_>t&&(S=g,A=0,E=-1),i=0;i<r;i+=1)for(n=S;n!==A;n+=E)o=Math.round(n+m)%t,h=(t*i+o)*4,a=b.data[h+0],c=b.data[h+1],l=b.data[h+2],u=b.data[h+3],f=(t*i+n)*4,b.data[f+0]=a,b.data[f+1]=c,b.data[f+2]=l,b.data[f+3]=u;for(i=0;i<r;i+=1)for(g=Math.floor(_),s=0;s<d;s+=1){for(n=0;n<g+1;n+=1)h=(t*i+n)*4,a=b.data[h+0],c=b.data[h+1],l=b.data[h+2],u=b.data[h+3],f=(t*i+g*2-n-1)*4,b.data[f+0]=a,b.data[f+1]=c,b.data[f+2]=l,b.data[f+3]=u;g*=2}HW(b,e,{polarRotation:0})}};J4=Qc.Kaleidoscope=qW,Yd.Factory.addGetterSetter(W4.Node,"kaleidoscopePower",2,(0,Z4.getNumberValidator)(),Yd.Factory.afterSetFilter),Yd.Factory.addGetterSetter(W4.Node,"kaleidoscopeAngle",0,(0,Z4.getNumberValidator)(),Yd.Factory.afterSetFilter);const KW=oe({__proto__:null,get Kaleidoscope(){return J4},default:Qc},[Qc]),YW=se(KW);var Zc={};Object.defineProperty(Zc,"__esModule",{value:!0});var tC=Zc.Mask=void 0;const eC=Ee,XW=_r,JW=Pe;function Xd(e,t,r){var n=(r*e.width+t)*4,i=[];return i.push(e.data[n++],e.data[n++],e.data[n++],e.data[n++]),i}function tu(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2))}function WW(e){for(var t=[0,0,0],r=0;r<e.length;r++)t[0]+=e[r][0],t[1]+=e[r][1],t[2]+=e[r][2];return t[0]/=e.length,t[1]/=e.length,t[2]/=e.length,t}function QW(e,t){var r=Xd(e,0,0),n=Xd(e,e.width-1,0),i=Xd(e,0,e.height-1),o=Xd(e,e.width-1,e.height-1),s=t||10;if(tu(r,n)<s&&tu(n,o)<s&&tu(o,i)<s&&tu(i,r)<s){for(var a=WW([n,r,o,i]),c=[],l=0;l<e.width*e.height;l++){var u=tu(a,[e.data[l*4],e.data[l*4+1],e.data[l*4+2]]);c[l]=u<s?0:255}return c}}function ZW(e,t){for(var r=0;r<e.width*e.height;r++)e.data[4*r+3]=t[r]}function tQ(e,t,r){for(var n=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),s=[],a=0;a<r;a++)for(var c=0;c<t;c++){for(var l=a*t+c,u=0,h=0;h<i;h++)for(var f=0;f<i;f++){var d=a+h-o,p=c+f-o;if(d>=0&&d<r&&p>=0&&p<t){var m=d*t+p,v=n[h*i+f];u+=e[m]*v}}s[l]=u===255*8?255:0}return s}function eQ(e,t,r){for(var n=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),s=[],a=0;a<r;a++)for(var c=0;c<t;c++){for(var l=a*t+c,u=0,h=0;h<i;h++)for(var f=0;f<i;f++){var d=a+h-o,p=c+f-o;if(d>=0&&d<r&&p>=0&&p<t){var m=d*t+p,v=n[h*i+f];u+=e[m]*v}}s[l]=u>=255*4?255:0}return s}function rQ(e,t,r){for(var n=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),s=[],a=0;a<r;a++)for(var c=0;c<t;c++){for(var l=a*t+c,u=0,h=0;h<i;h++)for(var f=0;f<i;f++){var d=a+h-o,p=c+f-o;if(d>=0&&d<r&&p>=0&&p<t){var m=d*t+p,v=n[h*i+f];u+=e[m]*v}}s[l]=u}return s}const nQ=function(e){var t=this.threshold(),r=QW(e,t);return r&&(r=tQ(r,e.width,e.height),r=eQ(r,e.width,e.height),r=rQ(r,e.width,e.height),ZW(e,r)),e};tC=Zc.Mask=nQ,eC.Factory.addGetterSetter(XW.Node,"threshold",0,(0,JW.getNumberValidator)(),eC.Factory.afterSetFilter);const iQ=oe({__proto__:null,get Mask(){return tC},default:Zc},[Zc]),oQ=se(iQ);var eu={};Object.defineProperty(eu,"__esModule",{value:!0});var rC=eu.Noise=void 0;const nC=Ee,sQ=_r,aQ=Pe,lQ=function(e){var t=this.noise()*255,r=e.data,n=r.length,i=t/2,o;for(o=0;o<n;o+=4)r[o+0]+=i-2*i*Math.random(),r[o+1]+=i-2*i*Math.random(),r[o+2]+=i-2*i*Math.random()};rC=eu.Noise=lQ,nC.Factory.addGetterSetter(sQ.Node,"noise",.2,(0,aQ.getNumberValidator)(),nC.Factory.afterSetFilter);const cQ=oe({__proto__:null,get Noise(){return rC},default:eu},[eu]),uQ=se(cQ);var ru={};Object.defineProperty(ru,"__esModule",{value:!0});var iC=ru.Pixelate=void 0;const oC=Ee,hQ=dr,dQ=_r,fQ=Pe,pQ=function(e){var t=Math.ceil(this.pixelSize()),r=e.width,n=e.height,i,o,s,a,c,l,u,h=Math.ceil(r/t),f=Math.ceil(n/t),d,p,m,v,b,_,g,S=e.data;if(t<=0){hQ.Util.error("pixelSize value can not be <= 0");return}for(b=0;b<h;b+=1)for(_=0;_<f;_+=1){for(a=0,c=0,l=0,u=0,d=b*t,p=d+t,m=_*t,v=m+t,g=0,i=d;i<p;i+=1)if(!(i>=r))for(o=m;o<v;o+=1)o>=n||(s=(r*o+i)*4,a+=S[s+0],c+=S[s+1],l+=S[s+2],u+=S[s+3],g+=1);for(a=a/g,c=c/g,l=l/g,u=u/g,i=d;i<p;i+=1)if(!(i>=r))for(o=m;o<v;o+=1)o>=n||(s=(r*o+i)*4,S[s+0]=a,S[s+1]=c,S[s+2]=l,S[s+3]=u)}};iC=ru.Pixelate=pQ,oC.Factory.addGetterSetter(dQ.Node,"pixelSize",8,(0,fQ.getNumberValidator)(),oC.Factory.afterSetFilter);const mQ=oe({__proto__:null,get Pixelate(){return iC},default:ru},[ru]),gQ=se(mQ);var nu={};Object.defineProperty(nu,"__esModule",{value:!0});var sC=nu.Posterize=void 0;const aC=Ee,yQ=_r,vQ=Pe,_Q=function(e){var t=Math.round(this.levels()*254)+1,r=e.data,n=r.length,i=255/t,o;for(o=0;o<n;o+=1)r[o]=Math.floor(r[o]/i)*i};sC=nu.Posterize=_Q,aC.Factory.addGetterSetter(yQ.Node,"levels",.5,(0,vQ.getNumberValidator)(),aC.Factory.afterSetFilter);const bQ=oe({__proto__:null,get Posterize(){return sC},default:nu},[nu]),wQ=se(bQ);var iu={};Object.defineProperty(iu,"__esModule",{value:!0});var lC=iu.RGB=void 0;const Jd=Ee,y1=_r,xQ=Pe,$Q=function(e){var t=e.data,r=t.length,n=this.red(),i=this.green(),o=this.blue(),s,a;for(s=0;s<r;s+=4)a=(.34*t[s]+.5*t[s+1]+.16*t[s+2])/255,t[s]=a*n,t[s+1]=a*i,t[s+2]=a*o,t[s+3]=t[s+3]};lC=iu.RGB=$Q,Jd.Factory.addGetterSetter(y1.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Jd.Factory.addGetterSetter(y1.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Jd.Factory.addGetterSetter(y1.Node,"blue",0,xQ.RGBComponent,Jd.Factory.afterSetFilter);const SQ=oe({__proto__:null,get RGB(){return lC},default:iu},[iu]),EQ=se(SQ);var ou={};Object.defineProperty(ou,"__esModule",{value:!0});var cC=ou.RGBA=void 0;const su=Ee,Wd=_r,CQ=Pe,kQ=function(e){var t=e.data,r=t.length,n=this.red(),i=this.green(),o=this.blue(),s=this.alpha(),a,c;for(a=0;a<r;a+=4)c=1-s,t[a]=n*s+t[a]*c,t[a+1]=i*s+t[a+1]*c,t[a+2]=o*s+t[a+2]*c};cC=ou.RGBA=kQ,su.Factory.addGetterSetter(Wd.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),su.Factory.addGetterSetter(Wd.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),su.Factory.addGetterSetter(Wd.Node,"blue",0,CQ.RGBComponent,su.Factory.afterSetFilter),su.Factory.addGetterSetter(Wd.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});const PQ=oe({__proto__:null,get RGBA(){return cC},default:ou},[ou]),TQ=se(PQ);var au={};Object.defineProperty(au,"__esModule",{value:!0});var uC=au.Sepia=void 0;const OQ=function(e){var t=e.data,r=t.length,n,i,o,s;for(n=0;n<r;n+=4)i=t[n+0],o=t[n+1],s=t[n+2],t[n+0]=Math.min(255,i*.393+o*.769+s*.189),t[n+1]=Math.min(255,i*.349+o*.686+s*.168),t[n+2]=Math.min(255,i*.272+o*.534+s*.131)};uC=au.Sepia=OQ;const NQ=oe({__proto__:null,get Sepia(){return uC},default:au},[au]),AQ=se(NQ);var lu={};Object.defineProperty(lu,"__esModule",{value:!0});var hC=lu.Solarize=void 0;const DQ=function(e){var t=e.data,r=e.width,n=e.height,i=r*4,o=n;do{var s=(o-1)*i,a=r;do{var c=s+(a-1)*4,l=t[c],u=t[c+1],h=t[c+2];l>127&&(l=255-l),u>127&&(u=255-u),h>127&&(h=255-h),t[c]=l,t[c+1]=u,t[c+2]=h}while(--a)}while(--o)};hC=lu.Solarize=DQ;const RQ=oe({__proto__:null,get Solarize(){return hC},default:lu},[lu]),IQ=se(RQ);var cu={};Object.defineProperty(cu,"__esModule",{value:!0});var dC=cu.Threshold=void 0;const fC=Ee,jQ=_r,FQ=Pe,MQ=function(e){var t=this.threshold()*255,r=e.data,n=r.length,i;for(i=0;i<n;i+=1)r[i]=r[i]<t?0:255};dC=cu.Threshold=MQ,fC.Factory.addGetterSetter(jQ.Node,"threshold",.5,(0,FQ.getNumberValidator)(),fC.Factory.afterSetFilter);const LQ=oe({__proto__:null,get Threshold(){return dC},default:cu},[cu]),UQ=se(LQ);Object.defineProperty(gc,"__esModule",{value:!0});var pC=gc.Konva=void 0;const mC=aX,VQ=hX,zQ=EX,GQ=NX,BQ=IX,HQ=LX,gC=qX,qQ=M3,KQ=Xy,YQ=Q3,XQ=rJ,JQ=sJ,WQ=hJ,QQ=mJ,ZQ=b4,tZ=LJ,eZ=ZJ,rZ=iW,nZ=dW,iZ=yW,oZ=xW,sZ=CW,aZ=NW,lZ=RW,cZ=FW,uZ=UW,hZ=GW,dZ=YW,fZ=oQ,pZ=uQ,mZ=gQ,gZ=wQ,yZ=EQ,vZ=TQ,_Z=AQ,bZ=IQ,wZ=UQ;pC=gc.Konva=mC.Konva.Util._assign(mC.Konva,{Arc:VQ.Arc,Arrow:zQ.Arrow,Circle:GQ.Circle,Ellipse:BQ.Ellipse,Image:HQ.Image,Label:gC.Label,Tag:gC.Tag,Line:qQ.Line,Path:KQ.Path,Rect:YQ.Rect,RegularPolygon:XQ.RegularPolygon,Ring:JQ.Ring,Sprite:WQ.Sprite,Star:QQ.Star,Text:ZQ.Text,TextPath:tZ.TextPath,Transformer:eZ.Transformer,Wedge:rZ.Wedge,Filters:{Blur:nZ.Blur,Brighten:iZ.Brighten,Contrast:oZ.Contrast,Emboss:sZ.Emboss,Enhance:aZ.Enhance,Grayscale:lZ.Grayscale,HSL:cZ.HSL,HSV:uZ.HSV,Invert:hZ.Invert,Kaleidoscope:dZ.Kaleidoscope,Mask:fZ.Mask,Noise:pZ.Noise,Pixelate:mZ.Pixelate,Posterize:gZ.Posterize,RGB:yZ.RGB,RGBA:vZ.RGBA,Sepia:_Z.Sepia,Solarize:bZ.Solarize,Threshold:wZ.Threshold}});const xZ=oe({__proto__:null,get Konva(){return pC},default:gc},[gc]),$Z=se(xZ);var SZ=Ey.exports;Object.defineProperty(SZ,"__esModule",{value:!0});const EZ=$Z;Ey.exports=EZ.Konva;var CZ=Ey.exports;const rr=vn(CZ),kZ=rr.Ellipse.prototype.toObject;rr.Ellipse.prototype.toObject=function(){const e=kZ.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const PZ=rr.Line.prototype.toObject;rr.Line.prototype.toObject=function(){const e=PZ.call(this);return{...e,attrs:{...e.attrs,x:this.getAbsolutePosition().x,y:this.getAbsolutePosition().y,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const TZ=rr.Node.prototype.toObject,OZ=function(){const e=TZ.call(this);return{...e,attrs:{...e.attrs,x:this.getAbsolutePosition().x,y:this.getAbsolutePosition().y,scaleX:this.getAbsoluteScale().x,scaleY:this.getAbsoluteScale().y,rotation:this.getAbsoluteRotation(),opacity:this.getAbsoluteOpacity()}}};rr.Node.prototype.toObject=OZ;const NZ=rr.Node.prototype.remove;rr.Node.prototype.remove=function(){return NZ.call(this),this.fire("removed",{target:this}),this};const AZ=rr.Node.prototype.moveUp;rr.Node.prototype.moveUp=function(){const e=AZ.call(this);return e&&this.fire("move:up"),e};const DZ=rr.Node.prototype.moveDown;rr.Node.prototype.moveDown=function(){const e=DZ.call(this);return e&&this.fire("move:down"),e};const RZ=rr.Node.prototype.moveToTop;rr.Node.prototype.moveToTop=function(){const e=RZ.call(this);return e&&this.fire("move:top"),e};const IZ=rr.Node.prototype.moveToBottom;rr.Node.prototype.moveToBottom=function(){const e=IZ.call(this);return e&&this.fire("move:bottom"),e};const jZ=rr.Node.prototype.moveTo;rr.Node.prototype.moveTo=function(e){const t=jZ.call(this,e);return this.fire("move:to"),t};const FZ=rr.Rect.prototype.toObject;rr.Rect.prototype.toObject=function(){const e=FZ.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash(),cornerRadius:this.cornerRadius()}}};const MZ=rr.RegularPolygon.prototype.toObject;rr.RegularPolygon.prototype.toObject=function(){const e=MZ.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const LZ=rr.Text.prototype.toObject;rr.Text.prototype.toObject=function(){const e=LZ.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth()}}};const UZ=rr.Image.prototype.toObject;rr.Image.prototype.toObject=function(){const e=UZ.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash(),image:this.image()}}};var VZ=Object.defineProperty,zZ=Object.getOwnPropertyDescriptor,Vo=(e,t,r,n)=>{for(var i=n>1?void 0:n?zZ(t,r):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(n?s(t,r,i):s(i))||i);return n&&i&&VZ(t,r,i),i};function zo(e,t,r){const n=r.value;return r.value=function(...i){if(this.enabled)return n.apply(this,i);console.log(`Method ${t} is disabled.`)},r}class Go{app;enabled;constructor(t,r){const{enabled:n}=r;this.app=t,this.enabled=n}alignLeft(t){const r=t.map(i=>i.getClientRect()),n=Math.min(...r.map(i=>i.x));this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=r[o].x-n;return s.attrs={...s.attrs,x:s.attrs.x-a},s}))}alignRight(t){const r=t.map(i=>i.getClientRect()),n=Math.max(...r.map(i=>i.x+i.width));this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=n-(r[o].x+r[o].width);return s.attrs={...s.attrs,x:s.attrs.x+a},s}))}alignTop(t){const r=t.map(i=>i.getClientRect()),n=Math.min(...r.map(i=>i.y));this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=r[o].y-n;return s.attrs={...s.attrs,y:s.attrs.y-a},s}))}alignBottom(t){const r=t.map(i=>i.getClientRect()),n=Math.max(...r.map(i=>i.y+i.height));this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=n-(r[o].y+r[o].height);return s.attrs={...s.attrs,y:s.attrs.y+a},s}))}alignCenterX(t){const r=t.map(i=>i.getClientRect()),n=r.reduce((i,o)=>i+(o.x+o.width/2),0)/r.length;this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=n-(r[o].x+r[o].width/2);return s.attrs={...s.attrs,x:s.attrs.x+a},s}))}alignCenterY(t){const r=t.map(i=>i.getClientRect()),n=r.reduce((i,o)=>i+(o.y+o.height/2),0)/r.length;this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=n-(r[o].y+r[o].height/2);return s.attrs={...s.attrs,y:s.attrs.y+a},s}))}dispersionX(t){t.map(r=>r.getClientRect().x+r.getClientRect().width/2).every((r,n,i)=>r===i[0])||this.distributeNodes(t,"x")}dispersionY(t){t.map(r=>r.getClientRect().y+r.getClientRect().height/2).every((r,n,i)=>r===i[0])||this.distributeNodes(t,"y")}distributeNodes(t,r){if(t.length<=2)return;t.sort((u,h)=>u.getClientRect()[r]-h.getClientRect()[r]);const n=t[0],i=t[t.length-1],o=n.getClientRect()[r]+(r==="x"?n.getClientRect().width:n.getClientRect().height),s=i.getClientRect()[r]-o,a=t.slice(1,-1).reduce((u,h)=>u+(r==="x"?h.getClientRect().width:h.getClientRect().height),0),c=Math.max((s-a)/(t.length-1),0);let l=o;this.app.update(...t.map((u,h)=>{const f=u.toObject();if(h===0||h===t.length-1)return f;const d=l+c;return f.attrs[r]=d-u.getClientRect()[r]+f.attrs[r],l=d+(r==="x"?u.getClientRect().width:u.getClientRect().height),f}))}}Vo([zo],Go.prototype,"alignLeft",1),Vo([zo],Go.prototype,"alignRight",1),Vo([zo],Go.prototype,"alignTop",1),Vo([zo],Go.prototype,"alignBottom",1),Vo([zo],Go.prototype,"alignCenterX",1),Vo([zo],Go.prototype,"alignCenterY",1),Vo([zo],Go.prototype,"dispersionX",1),Vo([zo],Go.prototype,"dispersionY",1);const GZ=Nf({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:IB.colorGray3},click:{}},setup(e){const t=e;return(r,n)=>(j6(),L6("span",{onClick:n[0]||(n[0]=(...i)=>r.click&&r.click(...i)),class:"icon",style:gu(["cursor: pointer","color: "+r.color])},[mn(q1(cI),{icon:t.icon,color:r.color},null,8,["icon","color"])],4))}}),BZ=((e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r})(GZ,[["styles",[`.icon[data-v-f96a0245]{display:inline-flex;justify-content:center;align-items:center;font-size:1em}
|
|
86
|
+
`]],["__scopeId","data-v-f96a0245"]]);function HZ(e,t="style.css"){for(let r of e){const n=document.querySelector(r)?.shadowRoot;if(n){const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",t),n.appendChild(i)}}}const qZ=(e,t,r=!0)=>{let n=0,i=[...e.styles];for(let o in e.customOptions){const s=`[${e.customOptions[o].__scopeId}]`;i=[...i,...t[n++].styles.map(a=>AP(a,s))]}if(r)e.styles=i;else for(let o of e.styles){const s=document.createElement("style");s.innerHTML=o,document.head.insertBefore(s,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}return e},KZ=()=>{const e=kP(BZ);customElements.define("yz-icon",e)};co.install=KZ,co.linkChildrenComponentsStyles=HZ,co.mergeChildComponentCss=qZ,Object.defineProperty(co,Symbol.toStringTag,{value:"Module"})});
|
|
87
|
+
//# sourceMappingURL=yz_custom_element.umd.cjs.map
|