@zyzgroup/core-vue 0.0.11 → 0.0.12
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 +2 -0
- package/ce/style.css +1 -1
- package/ce/yz_custom_element.iife.js +37 -78
- package/ce/yz_custom_element.iife.js.map +1 -1
- package/ce/yz_custom_element.js +9434 -41986
- package/ce/yz_custom_element.js.map +1 -1
- package/ce/yz_custom_element.umd.cjs +37 -78
- package/ce/yz_custom_element.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/zyzgroup_core_vue.iife.js +32 -55
- package/dist/zyzgroup_core_vue.iife.js.map +1 -0
- package/dist/zyzgroup_core_vue.js +7629 -38412
- package/dist/zyzgroup_core_vue.js.map +1 -0
- package/dist/zyzgroup_core_vue.umd.cjs +32 -55
- package/dist/zyzgroup_core_vue.umd.cjs.map +1 -0
- package/package.json +5 -5
- package/types/components/Button.ce.vue.d.ts +13 -15
- package/types/components/Button.vue.d.ts +13 -15
- package/types/components/CheckboxGroup.ce.vue.d.ts +79 -0
- package/types/components/CheckboxGroup.vue.d.ts +79 -0
- package/types/components/ColorPicker.ce.vue.d.ts +41 -0
- package/types/components/ColorPicker.vue.d.ts +41 -0
- package/types/components/Dialog.ce.vue.d.ts +12 -8
- package/types/components/Dialog.vue.d.ts +12 -8
- package/types/components/DialogLoading.ce.vue.d.ts +28 -7
- package/types/components/DialogLoading.vue.d.ts +28 -7
- package/types/components/MapTianditu.ce.vue.d.ts +67 -0
- package/types/components/MapTianditu.vue.d.ts +67 -0
- package/types/components/MobileLayout.ce.vue.d.ts +1 -1
- package/types/components/MobileLayout.vue.d.ts +1 -1
- package/types/components/Overlay.ce.vue.d.ts +40 -0
- package/types/components/Overlay.vue.d.ts +40 -0
- package/types/components/PlateDisplay.ce.vue.d.ts +37 -0
- package/types/components/PlateDisplay.vue.d.ts +37 -0
- package/types/components/PlateKeyboard.ce.vue.d.ts +45 -0
- package/types/components/PlateKeyboard.vue.d.ts +45 -0
- package/types/components/PlateMobile.ce.vue.d.ts +35 -0
- package/types/components/PlateMobile.vue.d.ts +35 -0
- package/types/components/Pop.ce.vue.d.ts +62 -0
- package/types/components/Pop.vue.d.ts +62 -0
- package/types/components/Popover.ce.vue.d.ts +37 -0
- package/types/components/Popover.vue.d.ts +37 -0
- package/types/components/PopoverHeadlessUI.ce.vue.d.ts +10 -0
- package/types/components/PopoverHeadlessUI.vue.d.ts +10 -0
- package/types/components/RadioGroup.ce.vue.d.ts +79 -0
- package/types/components/RadioGroup.vue.d.ts +79 -0
- package/types/components/ResizeObserver.ce.vue.d.ts +37 -0
- package/types/components/ResizeObserver.vue.d.ts +37 -0
- package/types/components/Select.ce.vue.d.ts +31 -4
- package/types/components/Select.vue.d.ts +31 -4
- package/types/components/SlideLeftItem.ce.vue.d.ts +60 -0
- package/types/components/SlideLeftItem.vue.d.ts +60 -0
- package/types/components/Switch.ce.vue.d.ts +63 -0
- package/types/components/Switch.vue.d.ts +63 -0
- package/types/components/Tab.ce.vue.d.ts +30 -0
- package/types/components/Tab.vue.d.ts +30 -0
- package/types/components/Tabs.ce.vue.d.ts +33 -0
- package/types/components/Tabs.vue.d.ts +33 -0
- package/types/components/TabsForCE.ce.vue.d.ts +38 -0
- package/types/components/TabsForCE.vue.d.ts +38 -0
- package/types/components/svg/SVGCheck.ce.vue.d.ts +34 -0
- package/types/components/svg/SVGCheck.vue.d.ts +34 -0
- package/types/components/svg/SVGCleanUp.ce.vue.d.ts +34 -0
- package/types/components/svg/SVGCleanUp.vue.d.ts +34 -0
- package/types/components/svg/SVGDelete.ce.vue.d.ts +36 -0
- package/types/components/svg/SVGDelete.vue.d.ts +36 -0
- package/types/components/svg/SVGFail.ce.vue.d.ts +36 -0
- package/types/components/svg/SVGFail.vue.d.ts +36 -0
- package/types/components/svg/SVGHome.ce.vue.d.ts +36 -0
- package/types/components/svg/SVGHome.vue.d.ts +36 -0
- package/types/components/svg/SVGPrompt.ce.vue.d.ts +36 -0
- package/types/components/svg/SVGPrompt.vue.d.ts +36 -0
- package/types/components/svg/SVGQuestion.ce.vue.d.ts +36 -0
- package/types/components/svg/SVGQuestion.vue.d.ts +36 -0
- package/types/components/svg/SVGReturn.ce.vue.d.ts +36 -0
- package/types/components/svg/SVGReturn.vue.d.ts +36 -0
- package/types/components/svg/SVGSuccess.vue.d.ts +36 -0
- package/types/components/svg/SVGWaiting.ce.vue.d.ts +36 -0
- package/types/components/svg/SVGWaiting.vue.d.ts +36 -0
- package/types/hooks/useWindowSize.d.ts +5 -0
- package/types/lib.d.ts +19 -5
- package/dist/vite.svg +0 -1
|
@@ -1,4 +1,31 @@
|
|
|
1
|
-
(function(ir,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],M):(ir=typeof globalThis<"u"?globalThis:ir||self,M(ir.ZYZGroupCoreVue={},ir.Vue))})(this,function(ir,M){"use strict";var zY=Object.defineProperty;var GY=(ir,M,An)=>M in ir?zY(ir,M,{enumerable:!0,configurable:!0,writable:!0,value:An}):ir[M]=An;var jt=(ir,M,An)=>(GY(ir,typeof M!="symbol"?M+"":M,An),An);const An=/^[a-z0-9]+(-[a-z0-9]+)*$/,lc=(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 s=i.pop(),c=i.pop(),l={provider:i.length>0?i[0]:n,prefix:c,name:s};return t&&!cc(l)?null:l}const o=i[0],a=o.split("-");if(a.length>1){const s={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!cc(s)?null:s}if(r&&n===""){const s={provider:n,prefix:"",name:o};return t&&!cc(s,r)?null:s}return null},cc=(e,t)=>e?!!((e.provider===""||e.provider.match(An))&&(t&&e.prefix===""||e.prefix.match(An))&&e.name.match(An)):!1,ig=Object.freeze({left:0,top:0,width:16,height:16}),uc=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),hc=Object.freeze({...ig,...uc}),bh=Object.freeze({...hc,body:"",hidden:!1});function X$(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 og(e,t){const r=X$(e,t);for(const n in bh)n in uc?n in e&&!(n in r)&&(r[n]=uc[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function W$(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(a){if(r[a])return i[a]=[];if(!(a in i)){i[a]=null;const s=n[a]&&n[a].parent,c=s&&o(s);c&&(i[a]=[s].concat(c))}return i[a]}return Object.keys(r).concat(Object.keys(n)).forEach(o),i}function J$(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function a(s){o=og(n[s]||i[s],o)}return a(t),r.forEach(a),og(e,o)}function ag(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=W$(e);for(const i in n){const o=n[i];o&&(t(i,J$(e,i,o)),r.push(i))}return r}const Q$={provider:"",aliases:{},not_found:{},...ig};function wh(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function sg(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!wh(e,Q$))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(An)||typeof o.body!="string"||!wh(o,bh))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],a=o.parent;if(!i.match(An)||typeof a!="string"||!r[a]&&!n[a]||!wh(o,bh))return null}return t}const lg=Object.create(null);function Z$(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function vo(e,t){const r=lg[e]||(lg[e]=Object.create(null));return r[t]||(r[t]=Z$(e,t))}function xh(e,t){return sg(t)?ag(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function t3(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let Va=!1;function cg(e){return typeof e=="boolean"&&(Va=e),Va}function e3(e){const t=typeof e=="string"?lc(e,!0,Va):e;if(t){const r=vo(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function r3(e,t){const r=lc(e,!0,Va);if(!r)return!1;const n=vo(r.provider,r.prefix);return t3(n,r.name,t)}function n3(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Va&&!t&&!e.prefix){let i=!1;return sg(e)&&(e.prefix="",ag(e,(o,a)=>{a&&r3(o,a)&&(i=!0)})),i}const r=e.prefix;if(!cc({provider:t,prefix:r,name:"a"}))return!1;const n=vo(t,r);return!!xh(n,e)}const ug=Object.freeze({width:null,height:null}),hg=Object.freeze({...ug,...uc}),i3=/(-?[0-9.]*[0-9]+[0-9.]*)/g,o3=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function dg(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(i3);if(n===null||!n.length)return e;const i=[];let o=n.shift(),a=o3.test(o);for(;;){if(a){const s=parseFloat(o);isNaN(s)?i.push(o):i.push(Math.ceil(s*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");a=!a}}function a3(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 a=e.indexOf(">",o);if(a===-1)break;r+=e.slice(i+1,o).trim(),e=e.slice(0,n).trim()+e.slice(a+1)}return{defs:r,content:e}}function s3(e,t){return e?"<defs>"+e+"</defs>"+t:t}function l3(e,t,r){const n=a3(e);return s3(n.defs,t+n.content+r)}const c3=e=>e==="unset"||e==="undefined"||e==="none";function u3(e,t){const r={...hc,...e},n={...hg,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(g=>{const v=[],_=g.hFlip,y=g.vFlip;let m=g.rotate;_?y?m+=2:(v.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),v.push("scale(-1 1)"),i.top=i.left=0):y&&(v.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),v.push("scale(1 -1)"),i.top=i.left=0);let x;switch(m<0&&(m-=Math.floor(m/4)*4),m=m%4,m){case 1:x=i.height/2+i.top,v.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:v.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:x=i.width/2+i.left,v.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}m%2===1&&(i.left!==i.top&&(x=i.left,i.left=i.top,i.top=x),i.width!==i.height&&(x=i.width,i.width=i.height,i.height=x)),v.length&&(o=l3(o,'<g transform="'+v.join(" ")+'">',"</g>"))});const a=n.width,s=n.height,c=i.width,l=i.height;let u,d;a===null?(d=s===null?"1em":s==="auto"?l:s,u=dg(d,c/l)):(u=a==="auto"?c:a,d=s===null?dg(u,l/c):s==="auto"?l:s);const f={},h=(g,v)=>{c3(v)||(f[g]=v.toString())};h("width",u),h("height",d);const p=[i.left,i.top,c,l];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:o}}const h3=/\sid="(\S+)"/g,d3="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let f3=0;function p3(e,t=d3){const r=[];let n;for(;n=h3.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 a=typeof t=="function"?t(o):t+(f3++).toString(),s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const Sh=Object.create(null);function m3(e,t){Sh[e]=t}function $h(e){return Sh[e]||Sh[""]}function kh(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 Eh=Object.create(null),Ba=["https://api.simplesvg.com","https://api.unisvg.com"],dc=[];for(;Ba.length>0;)Ba.length===1||Math.random()>.5?dc.push(Ba.shift()):dc.push(Ba.pop());Eh[""]=kh({resources:["https://api.iconify.design"].concat(dc)});function g3(e,t){const r=kh(t);return r===null?!1:(Eh[e]=r,!0)}function Ch(e){return Eh[e]}let fg=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function v3(e,t){const r=Ch(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(a=>{i=Math.max(i,a.length)});const o=t+".json?icons=";n=r.maxURL-i-r.path.length-o.length}return n}function y3(e){return e===404}const _3=(e,t,r)=>{const n=[],i=v3(e,t),o="icons";let a={type:o,provider:e,prefix:t,icons:[]},s=0;return r.forEach((c,l)=>{s+=c.length+1,s>=i&&l>0&&(n.push(a),a={type:o,provider:e,prefix:t,icons:[]},s=c.length),a.icons.push(c)}),n.push(a),n};function b3(e){if(typeof e=="string"){const t=Ch(e);if(t)return t.path}return"/"}const w3={prepare:_3,send:(e,t,r)=>{if(!fg){r("abort",424);return}let n=b3(t.provider);switch(t.type){case"icons":{const o=t.prefix,s=t.icons.join(","),c=new URLSearchParams({icons:s});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;fg(e+n).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{r(y3(a)?"abort":"next",a)});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 x3(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,a=i.prefix,s=i.name,c=r[o]||(r[o]=Object.create(null)),l=c[a]||(c[a]=vo(o,a));let u;s in l.icons?u=t.loaded:a===""||l.missing.has(s)?u=t.missing:u=t.pending;const d={provider:o,prefix:a,name:s};u.push(d)}),t}function pg(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function S3(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 a=o.icons,s=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==i)return!0;const l=c.name;if(e.icons[l])a.loaded.push({provider:n,prefix:i,name:l});else if(e.missing.has(l))a.missing.push({provider:n,prefix:i,name:l});else return r=!0,!0;return!1}),a.pending.length!==s&&(r||pg([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let $3=0;function k3(e,t,r){const n=$3++,i=pg.bind(null,r,n);if(!t.pending.length)return i;const o={id:n,icons:t,callback:e,abort:i};return r.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(o)}),i}function E3(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?lc(i,t,r):i;o&&n.push(o)}),n}var C3={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function P3(e,t,r,n){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let $=e.resources.slice(0);for(a=[];$.length>1;){const A=Math.floor(Math.random()*$.length);a.push($[A]),$=$.slice(0,A).concat($.slice(A+1))}a=a.concat($)}else a=e.resources.slice(o).concat(e.resources.slice(0,o));const s=Date.now();let c="pending",l=0,u,d=null,f=[],h=[];typeof n=="function"&&h.push(n);function p(){d&&(clearTimeout(d),d=null)}function g(){c==="pending"&&(c="aborted"),p(),f.forEach($=>{$.status==="pending"&&($.status="aborted")}),f=[]}function v($,A){A&&(h=[]),typeof $=="function"&&h.push($)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:v,abort:g}}function y(){c="failed",h.forEach($=>{$(void 0,u)})}function m(){f.forEach($=>{$.status==="pending"&&($.status="aborted")}),f=[]}function x($,A,R){const G=A!=="success";switch(f=f.filter(H=>H!==$),c){case"pending":break;case"failed":if(G||!e.dataAfterTimeout)return;break;default:return}if(A==="abort"){u=R,y();return}if(G){u=R,f.length||(a.length?N():y());return}if(p(),m(),!e.random){const H=e.resources.indexOf($.resource);H!==-1&&H!==e.index&&(e.index=H)}c="completed",h.forEach(H=>{H(R)})}function N(){if(c!=="pending")return;p();const $=a.shift();if($===void 0){if(f.length){d=setTimeout(()=>{p(),c==="pending"&&(m(),y())},e.timeout);return}y();return}const A={status:"pending",resource:$,callback:(R,G)=>{x(A,R,G)}};f.push(A),l++,d=setTimeout(N,e.rotate),r($,t,A.callback)}return setTimeout(N),_}function mg(e){const t={...C3,...e};let r=[];function n(){r=r.filter(s=>s().status==="pending")}function i(s,c,l){const u=P3(t,s,c,(d,f)=>{n(),l&&l(d,f)});return r.push(u),u}function o(s){return r.find(c=>s(c))||null}return{query:i,find:o,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:n}}function gg(){}const Ph=Object.create(null);function T3(e){if(!Ph[e]){const t=Ch(e);if(!t)return;const r=mg(t),n={config:t,redundancy:r};Ph[e]=n}return Ph[e]}function O3(e,t,r){let n,i;if(typeof e=="string"){const o=$h(e);if(!o)return r(void 0,424),gg;i=o.send;const a=T3(e);a&&(n=a.redundancy)}else{const o=kh(e);if(o){n=mg(o);const a=e.resources?e.resources[0]:"",s=$h(a);s&&(i=s.send)}}return!n||!i?(r(void 0,424),gg):n.query(t,i,r)().abort}const vg="iconify2",Ha="iconify",yg=Ha+"-count",_g=Ha+"-version",bg=36e5,A3=168,N3=50;function Th(e,t){try{return e.getItem(t)}catch{}}function Oh(e,t,r){try{return e.setItem(t,r),!0}catch{}}function wg(e,t){try{e.removeItem(t)}catch{}}function Ah(e,t){return Oh(e,yg,t.toString())}function Nh(e){return parseInt(Th(e,yg))||0}const fc={local:!0,session:!0},xg={local:new Set,session:new Set};let Rh=!1;function R3(e){Rh=e}let pc=typeof window>"u"?{}:window;function Sg(e){const t=e+"Storage";try{if(pc&&pc[t]&&typeof pc[t].length=="number")return pc[t]}catch{}fc[e]=!1}function $g(e,t){const r=Sg(e);if(!r)return;const n=Th(r,_g);if(n!==vg){if(n){const s=Nh(r);for(let c=0;c<s;c++)wg(r,Ha+c.toString())}Oh(r,_g,vg),Ah(r,0);return}const i=Math.floor(Date.now()/bg)-A3,o=s=>{const c=Ha+s.toString(),l=Th(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,s))return!0}catch{}wg(r,c)}};let a=Nh(r);for(let s=a-1;s>=0;s--)o(s)||(s===a-1?(a--,Ah(r,a)):xg[e].add(s))}function kg(){if(!Rh){R3(!0);for(const e in fc)$g(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=vo(n,i);if(!xh(o,r).length)return!1;const a=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function j3(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in fc)$g(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function I3(e,t){Rh||kg();function r(n){let i;if(!fc[n]||!(i=Sg(n)))return;const o=xg[n];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=Nh(i),a>=N3||!Ah(i,a+1))return;const s={cached:Math.floor(Date.now()/bg),provider:e.provider,data:t};return Oh(i,Ha+a.toString(),JSON.stringify(s))}t.lastModified&&!j3(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function Eg(){}function D3(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,S3(e)}))}function F3(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=$h(r)))return;o.prepare(r,n,i).forEach(s=>{O3(r,s,c=>{if(typeof c!="object")s.icons.forEach(l=>{e.missing.add(l)});else try{const l=xh(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),I3(e,c)}catch(l){console.error(l)}D3(e)})})}))}const M3=(e,t)=>{const r=E3(e,!0,cg()),n=x3(r);if(!n.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(n.loaded,n.missing,n.pending,Eg)}),()=>{c=!1}}const i=Object.create(null),o=[];let a,s;return n.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===s&&l===a)return;a=l,s=u,o.push(vo(l,u));const d=i[l]||(i[l]=Object.create(null));d[u]||(d[u]=[])}),n.pending.forEach(c=>{const{provider:l,prefix:u,name:d}=c,f=vo(l,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(d)||(h.add(d),i[l][u].push(d))}),o.forEach(c=>{const{provider:l,prefix:u}=c;i[l][u].length&&F3(c,i[l][u])}),t?k3(t,n,o):Eg};function L3(e,t){const r={...e};for(const n in t){const i=t[n],o=typeof i;n in ug?(i===null||i&&(o==="string"||o==="number"))&&(r[n]=i):o===typeof r[n]&&(r[n]=n==="rotate"?i%4:i)}return r}const U3=/[\s,]+/;function z3(e,t){t.split(U3).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function G3(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 V3(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 B3(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function H3(e){return"data:image/svg+xml,"+B3(e)}function q3(e){return'url("'+H3(e)+'")'}const Cg={...hg,inline:!1},K3={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Y3={display:"inline-block"},jh={backgroundColor:"currentColor"},Pg={backgroundColor:"transparent"},Tg={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Og={webkitMask:jh,mask:jh,background:Pg};for(const e in Og){const t=Og[e];for(const r in Tg)t[e+r]=Tg[r]}const mc={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";mc[e+"-flip"]=t,mc[e.slice(0,1)+"-flip"]=t,mc[e+"Flip"]=t});function Ag(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ng=(e,t)=>{const r=L3(Cg,t),n={...K3},i=t.mode||"svg",o={},a=t.style,s=typeof a=="object"&&!(a instanceof Array)?a:{};for(let g in t){const v=t[g];if(v!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[g]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&z3(r,v);break;case"color":o.color=v;break;case"rotate":typeof v=="string"?r[g]=G3(v):typeof v=="number"&&(r[g]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete n["aria-hidden"];break;default:{const _=mc[g];_?(v===!0||v==="true"||v===1)&&(r[_]=!0):Cg[g]===void 0&&(n[g]=v)}}}const c=u3(e,r),l=c.attributes;if(r.inline&&(o.verticalAlign="-0.125em"),i==="svg"){n.style={...o,...s},Object.assign(n,l);let g=0,v=t.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),n.innerHTML=p3(c.body,v?()=>v+"ID"+g++:"iconifyVue"),M.h("svg",n)}const{body:u,width:d,height:f}=e,h=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),p=V3(u,{...l,width:d+"",height:f+""});return n.style={...o,"--svg":q3(p),width:Ag(l.width),height:Ag(l.height),...Y3,...h?jh:Pg,...s},M.h("span",n)};if(cg(!0),m3("",w3),typeof document<"u"&&typeof window<"u"){kg();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"||!n3(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;g3(r,i)||console.error(n)}catch{console.error(n)}}}}const X3={...hc,body:""},W3=M.defineComponent({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=lc(e,!1,!0))===null)return this.abortLoading(),null;const n=e3(r);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:M3([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 Ng(X3,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Ng({...hc,...t.data},r)}});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"}))}function Mt(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 gc=typeof window=="object"&&typeof document=="object";typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const J3=e=>{let t=null;switch(e){case"bin":t=/^[0-1]+$/;break;case"oct":t=/^(0b)?[0-7]+$/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`
|
|
1
|
+
(function(M,qe){typeof exports=="object"&&typeof module<"u"?qe(exports):typeof define=="function"&&define.amd?define(["exports"],qe):(M=typeof globalThis<"u"?globalThis:M||self,qe(M.ZYZGroupCoreVue={}))})(this,function(M){"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 qe(t,e){const n=new Set(t.split(","));return e?s=>n.has(s.toLowerCase()):s=>n.has(s)}const ce={}.NODE_ENV!=="production"?Object.freeze({}):{},Gr={}.NODE_ENV!=="production"?Object.freeze([]):[],Ye=()=>{},Ur=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),ie=Object.assign,Kr=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},qr=Object.prototype.hasOwnProperty,B=(t,e)=>qr.call(t,e),I=Array.isArray,Te=t=>Xe(t)==="[object Map]",vs=t=>Xe(t)==="[object Set]",Yr=t=>Xe(t)==="[object RegExp]",V=t=>typeof t=="function",J=t=>typeof t=="string",Oe=t=>typeof t=="symbol",q=t=>t!==null&&typeof t=="object",Xr=t=>(q(t)||V(t))&&V(t.then)&&V(t.catch),ys=Object.prototype.toString,Xe=t=>ys.call(t),_s=t=>Xe(t).slice(8,-1),bs=t=>Xe(t)==="[object Object]",on=t=>J(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,rn=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Zr=/-(\w)/g,wt=rn(t=>t.replace(Zr,(e,n)=>n?n.toUpperCase():"")),Ze=rn(t=>t.charAt(0).toUpperCase()+t.slice(1)),Jr=rn(t=>t?`on${Ze(t)}`:""),ye=(t,e)=>!Object.is(t,e),ws=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},Qr=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})};let xs;const Cs=()=>xs||(xs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function k(t){if(I(t)){const e={};for(let n=0;n<t.length;n++){const s=t[n],o=J(s)?si(s):k(s);if(o)for(const r in o)e[r]=o[r]}return e}else if(J(t)||q(t))return t}const ei=/;(?![^(]*\))/g,ti=/:([^]+)/,ni=/\/\*[^]*?\*\//g;function si(t){const e={};return t.replace(ni,"").split(ei).forEach(n=>{if(n){const s=n.split(ti);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function R(t){let e="";if(J(t))e=t;else if(I(t))for(let n=0;n<t.length;n++){const s=R(t[n]);s&&(e+=s+" ")}else if(q(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const ne=t=>J(t)?t:t==null?"":I(t)||q(t)&&(t.toString===ys||!V(t.toString))?JSON.stringify(t,Es,2):String(t),Es=(t,e)=>e&&e.__v_isRef?Es(t,e.value):Te(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,o],r)=>(n[an(s,r)+" =>"]=o,n),{})}:vs(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>an(n))}:Oe(e)?an(e):q(e)&&!I(e)&&!bs(e)?String(e):e,an=(t,e="")=>{var n;return Oe(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
|
|
6
|
+
* @vue/reactivity v3.4.25
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/function Fe(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let Ss;function oi(t,e=Ss){e&&e.active&&e.effects.push(t)}function ri(){return Ss}let Pe;class ks{constructor(e,n,s,o){this.fn=e,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,oi(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Je();for(let e=0;e<this._depsLength;e++){const n=this.deps[e];if(n.computed&&(ii(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Qe()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=_e,n=Pe;try{return _e=!0,Pe=this,this._runnings++,Ts(this),this.fn()}finally{Os(this),this._runnings--,Pe=n,_e=e}}stop(){var e;this.active&&(Ts(this),Os(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function ii(t){return t.value}function Ts(t){t._trackId++,t._depsLength=0}function Os(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)Ps(t.deps[e],t);t.deps.length=t._depsLength}}function Ps(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let _e=!0,cn=0;const Ns=[];function Je(){Ns.push(_e),_e=!1}function Qe(){const t=Ns.pop();_e=t===void 0?!0:t}function ln(){cn++}function un(){for(cn--;!cn&&dn.length;)dn.shift()()}function Ls(t,e,n){var s;if(e.get(t)!==t._trackId){e.set(t,t._trackId);const o=t.deps[t._depsLength];o!==e?(o&&Ps(o,t),t.deps[t._depsLength++]=e):t._depsLength++,{}.NODE_ENV!=="production"&&((s=t.onTrack)==null||s.call(t,ie({effect:t},n)))}}const dn=[];function $s(t,e,n){var s;ln();for(const o of t.keys()){let r;o._dirtyLevel<e&&(r??(r=t.get(o)===o._trackId))&&(o._shouldSchedule||(o._shouldSchedule=o._dirtyLevel===0),o._dirtyLevel=e),o._shouldSchedule&&(r??(r=t.get(o)===o._trackId))&&({}.NODE_ENV!=="production"&&((s=o.onTrigger)==null||s.call(o,ie({effect:o},n))),o.trigger(),(!o._runnings||o.allowRecurse)&&o._dirtyLevel!==2&&(o._shouldSchedule=!1,o.scheduler&&dn.push(o.scheduler)))}un()}const Is=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},fn=new WeakMap,Ne=Symbol({}.NODE_ENV!=="production"?"iterate":""),hn=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function X(t,e,n){if(_e&&Pe){let s=fn.get(t);s||fn.set(t,s=new Map);let o=s.get(n);o||s.set(n,o=Is(()=>s.delete(n))),Ls(Pe,o,{}.NODE_ENV!=="production"?{target:t,type:e,key:n}:void 0)}}function be(t,e,n,s,o,r){const i=fn.get(t);if(!i)return;let a=[];if(e==="clear")a=[...i.values()];else if(n==="length"&&I(t)){const c=Number(s);i.forEach((l,f)=>{(f==="length"||!Oe(f)&&f>=c)&&a.push(l)})}else switch(n!==void 0&&a.push(i.get(n)),e){case"add":I(t)?on(n)&&a.push(i.get("length")):(a.push(i.get(Ne)),Te(t)&&a.push(i.get(hn)));break;case"delete":I(t)||(a.push(i.get(Ne)),Te(t)&&a.push(i.get(hn)));break;case"set":Te(t)&&a.push(i.get(Ne));break}ln();for(const c of a)c&&$s(c,4,{}.NODE_ENV!=="production"?{target:t,type:e,key:n,newValue:s,oldValue:o,oldTarget:r}:void 0);un()}const ai=qe("__proto__,__v_isRef,__isVue"),Ms=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Oe)),As=ci();function ci(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const s=L(this);for(let r=0,i=this.length;r<i;r++)X(s,"get",r+"");const o=s[e](...n);return o===-1||o===!1?s[e](...n.map(L)):o}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){Je(),ln();const s=L(this)[e].apply(this,n);return un(),Qe(),s}}),t}function li(t){Oe(t)||(t=String(t));const e=L(this);return X(e,"has",t),e.hasOwnProperty(t)}class Rs{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,s){const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Gs:Ws:r?xi:Bs).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const i=I(e);if(!o){if(i&&B(As,n))return Reflect.get(As,n,s);if(n==="hasOwnProperty")return li}const a=Reflect.get(e,n,s);return(Oe(n)?Ms.has(n):ai(n))||(o||X(e,"get",n),r)?a:se(a)?i&&on(n)?a:a.value:q(a)?o?Us(a):pe(a):a}}class ui extends Rs{constructor(e=!1){super(!1,e)}set(e,n,s,o){let r=e[n];if(!this._isShallow){const c=Le(r);if(!$e(s)&&!Le(s)&&(r=L(r),s=L(s)),!I(e)&&se(r)&&!se(s))return c?!1:(r.value=s,!0)}const i=I(e)&&on(n)?Number(n)<e.length:B(e,n),a=Reflect.set(e,n,s,o);return e===L(o)&&(i?ye(s,r)&&be(e,"set",n,s,r):be(e,"add",n,s)),a}deleteProperty(e,n){const s=B(e,n),o=e[n],r=Reflect.deleteProperty(e,n);return r&&s&&be(e,"delete",n,void 0,o),r}has(e,n){const s=Reflect.has(e,n);return(!Oe(n)||!Ms.has(n))&&X(e,"has",n),s}ownKeys(e){return X(e,"iterate",I(e)?"length":Ne),Reflect.ownKeys(e)}}class Ds extends Rs{constructor(e=!1){super(!0,e)}set(e,n){return{}.NODE_ENV!=="production"&&Fe(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return{}.NODE_ENV!=="production"&&Fe(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}}const di=new ui,fi=new Ds,hi=new Ds(!0),pn=t=>t,xt=t=>Reflect.getPrototypeOf(t);function Ct(t,e,n=!1,s=!1){t=t.__v_raw;const o=L(t),r=L(e);n||(ye(e,r)&&X(o,"get",e),X(o,"get",r));const{has:i}=xt(o),a=s?pn:n?yn:et;if(i.call(o,e))return a(t.get(e));if(i.call(o,r))return a(t.get(r));t!==o&&t.get(e)}function Et(t,e=!1){const n=this.__v_raw,s=L(n),o=L(t);return e||(ye(t,o)&&X(s,"has",t),X(s,"has",o)),t===o?n.has(t):n.has(t)||n.has(o)}function St(t,e=!1){return t=t.__v_raw,!e&&X(L(t),"iterate",Ne),Reflect.get(t,"size",t)}function Fs(t){t=L(t);const e=L(this);return xt(e).has.call(e,t)||(e.add(t),be(e,"add",t,t)),this}function js(t,e){e=L(e);const n=L(this),{has:s,get:o}=xt(n);let r=s.call(n,t);r?{}.NODE_ENV!=="production"&&Hs(n,s,t):(t=L(t),r=s.call(n,t));const i=o.call(n,t);return n.set(t,e),r?ye(e,i)&&be(n,"set",t,e,i):be(n,"add",t,e),this}function Vs(t){const e=L(this),{has:n,get:s}=xt(e);let o=n.call(e,t);o?{}.NODE_ENV!=="production"&&Hs(e,n,t):(t=L(t),o=n.call(e,t));const r=s?s.call(e,t):void 0,i=e.delete(t);return o&&be(e,"delete",t,void 0,r),i}function zs(){const t=L(this),e=t.size!==0,n={}.NODE_ENV!=="production"?Te(t)?new Map(t):new Set(t):void 0,s=t.clear();return e&&be(t,"clear",void 0,void 0,n),s}function kt(t,e){return function(s,o){const r=this,i=r.__v_raw,a=L(i),c=e?pn:t?yn:et;return!t&&X(a,"iterate",Ne),i.forEach((l,f)=>s.call(o,c(l),c(f),r))}}function Tt(t,e,n){return function(...s){const o=this.__v_raw,r=L(o),i=Te(r),a=t==="entries"||t===Symbol.iterator&&i,c=t==="keys"&&i,l=o[t](...s),f=n?pn:e?yn:et;return!e&&X(r,"iterate",c?hn:Ne),{next(){const{value:d,done:u}=l.next();return u?{value:d,done:u}:{value:a?[f(d[0]),f(d[1])]:f(d),done:u}},[Symbol.iterator](){return this}}}}function we(t){return function(...e){if({}.NODE_ENV!=="production"){const n=e[0]?`on key "${e[0]}" `:"";Fe(`${Ze(t)} operation ${n}failed: target is readonly.`,L(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function pi(){const t={get(r){return Ct(this,r)},get size(){return St(this)},has:Et,add:Fs,set:js,delete:Vs,clear:zs,forEach:kt(!1,!1)},e={get(r){return Ct(this,r,!1,!0)},get size(){return St(this)},has:Et,add:Fs,set:js,delete:Vs,clear:zs,forEach:kt(!1,!0)},n={get(r){return Ct(this,r,!0)},get size(){return St(this,!0)},has(r){return Et.call(this,r,!0)},add:we("add"),set:we("set"),delete:we("delete"),clear:we("clear"),forEach:kt(!0,!1)},s={get(r){return Ct(this,r,!0,!0)},get size(){return St(this,!0)},has(r){return Et.call(this,r,!0)},add:we("add"),set:we("set"),delete:we("delete"),clear:we("clear"),forEach:kt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=Tt(r,!1,!1),n[r]=Tt(r,!0,!1),e[r]=Tt(r,!1,!0),s[r]=Tt(r,!0,!0)}),[t,n,e,s]}const[mi,gi,vi,yi]=pi();function mn(t,e){const n=e?t?yi:vi:t?gi:mi;return(s,o,r)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?s:Reflect.get(B(n,o)&&o in s?n:s,o,r)}const _i={get:mn(!1,!1)},bi={get:mn(!0,!1)},wi={get:mn(!0,!0)};function Hs(t,e,n){const s=L(n);if(s!==n&&e.call(t,s)){const o=_s(t);Fe(`Reactive ${o} contains both the raw and reactive versions of the same object${o==="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 Bs=new WeakMap,xi=new WeakMap,Ws=new WeakMap,Gs=new WeakMap;function Ci(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ei(t){return t.__v_skip||!Object.isExtensible(t)?0:Ci(_s(t))}function pe(t){return Le(t)?t:gn(t,!1,di,_i,Bs)}function Us(t){return gn(t,!0,fi,bi,Ws)}function Ot(t){return gn(t,!0,hi,wi,Gs)}function gn(t,e,n,s,o){if(!q(t))return{}.NODE_ENV!=="production"&&Fe(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=o.get(t);if(r)return r;const i=Ei(t);if(i===0)return t;const a=new Proxy(t,i===2?s:n);return o.set(t,a),a}function je(t){return Le(t)?je(t.__v_raw):!!(t&&t.__v_isReactive)}function Le(t){return!!(t&&t.__v_isReadonly)}function $e(t){return!!(t&&t.__v_isShallow)}function vn(t){return t?!!t.__v_raw:!1}function L(t){const e=t&&t.__v_raw;return e?L(e):t}function Si(t){return Object.isExtensible(t)&&Qr(t,"__v_skip",!0),t}const et=t=>q(t)?pe(t):t,yn=t=>q(t)?Us(t):t,ki="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 Ti{constructor(e,n,s,o){this.getter=e,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ks(()=>e(this._value),()=>Pt(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const e=L(this);return(!e._cacheable||e.effect.dirty)&&ye(e._value,e._value=e.effect.run())&&Pt(e,4),Ks(e),e.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Fe(ki,`
|
|
10
|
+
|
|
11
|
+
getter: `,this.getter),Pt(e,2)),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Ks(t){var e;_e&&Pe&&(t=L(t),Ls(Pe,(e=t.dep)!=null?e:t.dep=Is(()=>t.dep=void 0,t instanceof Ti?t:void 0),{}.NODE_ENV!=="production"?{target:t,type:"get",key:"value"}:void 0))}function Pt(t,e=4,n){t=L(t);const s=t.dep;s&&$s(s,e,{}.NODE_ENV!=="production"?{target:t,type:"set",key:"value",newValue:n}:void 0)}function se(t){return!!(t&&t.__v_isRef===!0)}function E(t){return Oi(t,!1)}function Oi(t,e){return se(t)?t:new Pi(t,e)}class Pi{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:L(e),this._value=n?e:et(e)}get value(){return Ks(this),this._value}set value(e){const n=this.__v_isShallow||$e(e)||Le(e);e=n?e:L(e),ye(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:et(e),Pt(this,4,e))}}function W(t){return se(t)?t.value:t}const Ni={get:(t,e,n)=>W(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const o=t[e];return se(o)&&!se(n)?(o.value=n,!0):Reflect.set(t,e,n,s)}};function Li(t){return je(t)?t:new Proxy(t,Ni)}/**
|
|
12
|
+
* @vue/runtime-core v3.4.25
|
|
13
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14
|
+
* @license MIT
|
|
15
|
+
**/const Ie=[];function $i(t){Ie.push(t)}function Ii(){Ie.pop()}function $(t,...e){Je();const n=Ie.length?Ie[Ie.length-1].component:null,s=n&&n.appContext.config.warnHandler,o=Mi();if(s)Me(s,n,11,[t+e.map(r=>{var i,a;return(a=(i=r.toString)==null?void 0:i.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,o.map(({vnode:r})=>`at <${No(n,r.type)}>`).join(`
|
|
16
|
+
`),o]);else{const r=[`[Vue warn]: ${t}`,...e];o.length&&r.push(`
|
|
17
|
+
`,...Ai(o)),console.warn(...r)}Qe()}function Mi(){let t=Ie[Ie.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const s=t.component&&t.component.parent;t=s&&s.vnode}return e}function Ai(t){const e=[];return t.forEach((n,s)=>{e.push(...s===0?[]:[`
|
|
18
|
+
`],...Ri(n))}),e}function Ri({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",s=t.component?t.component.parent==null:!1,o=` at <${No(t.component,t.type,s)}`,r=">"+n;return t.props?[o,...Di(t.props),r]:[o+r]}function Di(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(s=>{e.push(...qs(s,t[s]))}),n.length>3&&e.push(" ..."),e}function qs(t,e,n){return J(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:se(e)?(e=qs(t,L(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):V(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=L(e),n?e:[`${t}=`,e])}const _n={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 Me(t,e,n,s){try{return s?t(...s):t()}catch(o){bn(o,e,n)}}function Ve(t,e,n,s){if(V(t)){const o=Me(t,e,n,s);return o&&Xr(o)&&o.catch(r=>{bn(r,e,n)}),o}if(I(t)){const o=[];for(let r=0;r<t.length;r++)o.push(Ve(t[r],e,n,s));return o}else({}).NODE_ENV!=="production"&&$(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof t}`)}function bn(t,e,n,s=!0){const o=e?e.vnode:null;if(e){let r=e.parent;const i=e.proxy,a={}.NODE_ENV!=="production"?_n[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const l=r.ec;if(l){for(let f=0;f<l.length;f++)if(l[f](t,i,a)===!1)return}r=r.parent}const c=e.appContext.config.errorHandler;if(c){Je(),Me(c,null,10,[t,i,a]),Qe();return}}Fi(t,n,o,s)}function Fi(t,e,n,s=!0){if({}.NODE_ENV!=="production"){const o=_n[e];if(n&&$i(n),$(`Unhandled error${o?` during execution of ${o}`:""}`),n&&Ii(),s)throw t;console.error(t)}else console.error(t)}let Nt=!1,wn=!1;const le=[];let xe=0;const ze=[];let me=null,Ce=0;const Ys=Promise.resolve();let xn=null;const ji=100;function Vi(t){const e=xn||Ys;return t?e.then(this?t.bind(this):t):e}function zi(t){let e=xe+1,n=le.length;for(;e<n;){const s=e+n>>>1,o=le[s],r=tt(o);r<t||r===t&&o.pre?e=s+1:n=s}return e}function Cn(t){(!le.length||!le.includes(t,Nt&&t.allowRecurse?xe+1:xe))&&(t.id==null?le.push(t):le.splice(zi(t.id),0,t),Xs())}function Xs(){!Nt&&!wn&&(wn=!0,xn=Ys.then(Js))}function Zs(t){I(t)?ze.push(...t):(!me||!me.includes(t,t.allowRecurse?Ce+1:Ce))&&ze.push(t),Xs()}function Hi(t){if(ze.length){const e=[...new Set(ze)].sort((n,s)=>tt(n)-tt(s));if(ze.length=0,me){me.push(...e);return}for(me=e,{}.NODE_ENV!=="production"&&(t=t||new Map),Ce=0;Ce<me.length;Ce++)({}).NODE_ENV!=="production"&&Qs(t,me[Ce])||me[Ce]();me=null,Ce=0}}const tt=t=>t.id==null?1/0:t.id,Bi=(t,e)=>{const n=tt(t)-tt(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function Js(t){wn=!1,Nt=!0,{}.NODE_ENV!=="production"&&(t=t||new Map),le.sort(Bi);const e={}.NODE_ENV!=="production"?n=>Qs(t,n):Ye;try{for(xe=0;xe<le.length;xe++){const n=le[xe];if(n&&n.active!==!1){if({}.NODE_ENV!=="production"&&e(n))continue;Me(n,null,14)}}}finally{xe=0,le.length=0,Hi(t),Nt=!1,xn=null,(le.length||ze.length)&&Js(t)}}function Qs(t,e){if(!t.has(e))t.set(e,1);else{const n=t.get(e);if(n>ji){const s=e.ownerInstance,o=s&&dt(s.type);return bn(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. 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 t.set(e,n+1)}}const He=new Set;({}).NODE_ENV!=="production"&&(Cs().__VUE_HMR_RUNTIME__={createRecord:En(Wi),rerender:En(Gi),reload:En(Ui)});const Lt=new Map;function Wi(t,e){return Lt.has(t)?!1:(Lt.set(t,{initialDef:nt(e),instances:new Set}),!0)}function nt(t){return Lo(t)?t.__vccOpts:t}function Gi(t,e){const n=Lt.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(s=>{e&&(s.render=e,nt(s.type).render=e),s.renderCache=[],s.effect.dirty=!0,s.update()}))}function Ui(t,e){const n=Lt.get(t);if(!n)return;e=nt(e),eo(n.initialDef,e);const s=[...n.instances];for(const o of s){const r=nt(o.type);He.has(r)||(r!==n.initialDef&&eo(r,e),He.add(r)),o.appContext.propsCache.delete(o.type),o.appContext.emitsCache.delete(o.type),o.appContext.optionsCache.delete(o.type),o.ceReload?(He.add(r),o.ceReload(e.styles),He.delete(r)):o.parent?(o.parent.effect.dirty=!0,Cn(o.parent.update)):o.appContext.reload?o.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Zs(()=>{for(const o of s)He.delete(nt(o.type))})}function eo(t,e){ie(t,e);for(const n in t)n!=="__file"&&!(n in e)&&delete t[n]}function En(t){return(e,n)=>{try{return t(e,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}function Ki(t,...e){}const to=no("component:added"),qi=no("component:updated");/*! #__NO_SIDE_EFFECTS__ */function no(t){return e=>{Ki(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}let z=null,$t=null;function so(t){const e=z;return z=t,$t=t&&t.type.__scopeId||null,e}function Sn(t){$t=t}function kn(){$t=null}function he(t,e=z,n){if(!e||t._n)return t;const s=(...o)=>{s._d&&bo(-1);const r=so(e);let i;try{i=t(...o)}finally{so(r),s._d&&bo(1)}return{}.NODE_ENV!=="production"&&qi(e),i};return s._n=!0,s._c=!0,s._d=!0,s}const It="components";function Yi(t,e){return ro(It,t,!0,e)||t}const oo=Symbol.for("v-ndc");function Xi(t){return J(t)?ro(It,t,!1)||t:t||oo}function ro(t,e,n=!0,s=!1){const o=z||Ee;if(o){const r=o.type;if(t===It){const a=dt(r,!1);if(a&&(a===e||a===wt(e)||a===Ze(wt(e))))return r}const i=io(o[t]||r[t],e)||io(o.appContext[t],e);if(!i&&s)return r;if({}.NODE_ENV!=="production"&&n&&!i){const a=t===It?`
|
|
19
|
+
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";$(`Failed to resolve ${t.slice(0,-1)}: ${e}${a}`)}return i}else({}).NODE_ENV!=="production"&&$(`resolve${Ze(t.slice(0,-1))} can only be used in render() or setup().`)}function io(t,e){return t&&(t[e]||t[wt(e)]||t[Ze(wt(e))])}const ao=t=>t.__isSuspense;function Zi(t,e){e&&e.pendingBranch?I(t)?e.effects.push(...t):e.effects.push(t):Zs(t)}const Ji=Symbol.for("v-scx"),Qi=()=>{{const t=pa(Ji);return t||{}.NODE_ENV!=="production"&&$("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}},Mt={};function H(t,e,n){return{}.NODE_ENV!=="production"&&!V(e)&&$("`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."),co(t,e,n)}function co(t,e,{immediate:n,deep:s,flush:o,once:r,onTrack:i,onTrigger:a}=ce){if(e&&r){const x=e;e=(...Z)=>{x(...Z),w()}}({}).NODE_ENV!=="production"&&s!==void 0&&typeof s=="number"&&$('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"&&!e&&(n!==void 0&&$('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&$('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&$('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const c=x=>{$("Invalid watch source: ",x,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},l=Ee,f=x=>s===!0?x:Ae(x,s===!1?1:void 0);let d,u=!1,p=!1;if(se(t)?(d=()=>t.value,u=$e(t)):je(t)?(d=()=>f(t),u=!0):I(t)?(p=!0,u=t.some(x=>je(x)||$e(x)),d=()=>t.map(x=>{if(se(x))return x.value;if(je(x))return f(x);if(V(x))return Me(x,l,2);({}).NODE_ENV!=="production"&&c(x)})):V(t)?e?d=()=>Me(t,l,2):d=()=>(g&&g(),Ve(t,l,3,[_])):(d=Ye,{}.NODE_ENV!=="production"&&c(t)),e&&s){const x=d;d=()=>Ae(x())}let g,_=x=>{g=y.onStop=()=>{Me(x,l,4),g=y.onStop=void 0}},v;if(Rn)if(_=Ye,e?n&&Ve(e,l,3,[d(),p?[]:void 0,_]):d(),o==="sync"){const x=Qi();v=x.__watcherHandles||(x.__watcherHandles=[])}else return Ye;let S=p?new Array(t.length).fill(Mt):Mt;const m=()=>{if(!(!y.active||!y.dirty))if(e){const x=y.run();(s||u||(p?x.some((Z,fe)=>ye(Z,S[fe])):ye(x,S)))&&(g&&g(),Ve(e,l,3,[x,S===Mt?void 0:p&&S[0]===Mt?[]:S,_]),S=x)}else y.run()};m.allowRecurse=!!e;let b;o==="sync"?b=m:o==="post"?b=()=>it(m,l&&l.suspense):(m.pre=!0,l&&(m.id=l.uid),b=()=>Cn(m));const y=new ks(d,Ye,b),A=ri(),w=()=>{y.stop(),A&&Kr(A.effects,y)};return{}.NODE_ENV!=="production"&&(y.onTrack=i,y.onTrigger=a),e?n?m():S=y.run():o==="post"?it(y.run.bind(y),l&&l.suspense):y.run(),v&&v.push(w),w}function ea(t,e,n){const s=this.proxy,o=J(t)?t.includes(".")?ta(s,t):()=>s[t]:t.bind(s,s);let r;V(e)?r=e:(r=e.handler,n=e);const i=To(this),a=co(o,r.bind(s),n);return i(),a}function ta(t,e){const n=e.split(".");return()=>{let s=t;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function Ae(t,e,n=0,s){if(!q(t)||t.__v_skip)return t;if(e&&e>0){if(n>=e)return t;n++}if(s=s||new Set,s.has(t))return t;if(s.add(t),se(t))Ae(t.value,e,n,s);else if(I(t))for(let o=0;o<t.length;o++)Ae(t[o],e,n,s);else if(vs(t)||Te(t))t.forEach(o=>{Ae(o,e,n,s)});else if(bs(t))for(const o in t)Ae(t[o],e,n,s);return t}function Tn(t,e){if(z===null)return{}.NODE_ENV!=="production"&&$("withDirectives can only be used inside render functions."),t;const n=Po(z)||z.proxy,s=t.dirs||(t.dirs=[]);for(let o=0;o<e.length;o++){let[r,i,a,c=ce]=e[o];r&&(V(r)&&(r={mounted:r,updated:r}),r.deep&&Ae(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:a,modifiers:c}))}return t}function lo(t,e){t.shapeFlag&6&&t.component?lo(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}/*! #__NO_SIDE_EFFECTS__ */function F(t,e){return V(t)?(()=>ie({name:t.name},e,{setup:t}))():t}const uo=t=>!!t.type.__asyncLoader,na={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=ko(),s=n.ctx;if(!s.renderer)return()=>{const m=e.default&&e.default();return m&&m.length===1?m[0]:m};const o=new Map,r=new Set;let i=null;({}).NODE_ENV!=="production"&&(n.__v_cache=o);const a=n.suspense,{renderer:{p:c,m:l,um:f,o:{createElement:d}}}=s,u=d("div");s.activate=(m,b,y,A,w)=>{const x=m.component;l(m,b,y,0,a),c(x.vnode,m,b,y,x,a,A,m.slotScopeIds,w),it(()=>{x.isDeactivated=!1,x.a&&ws(x.a);const Z=m.props&&m.props.onVnodeMounted;Z&&So(Z,x.parent,m)},a),{}.NODE_ENV!=="production"&&to(x)},s.deactivate=m=>{const b=m.component;l(m,u,null,1,a),it(()=>{b.da&&ws(b.da);const y=m.props&&m.props.onVnodeUnmounted;y&&So(y,b.parent,m),b.isDeactivated=!0},a),{}.NODE_ENV!=="production"&&to(b)};function p(m){On(m),f(m,n,a,!0)}function g(m){o.forEach((b,y)=>{const A=dt(b.type);A&&(!m||!m(A))&&_(y)})}function _(m){const b=o.get(m);!i||!_a(b,i)?p(b):i&&On(i),o.delete(m),r.delete(m)}H(()=>[t.include,t.exclude],([m,b])=>{m&&g(y=>st(m,y)),b&&g(y=>!st(b,y))},{flush:"post",deep:!0});let v=null;const S=()=>{v!=null&&o.set(v,Pn(n.subTree))};return Nn(S),oa(S),ra(()=>{o.forEach(m=>{const{subTree:b,suspense:y}=n,A=Pn(b);if(m.type===A.type&&m.key===A.key){On(A);const w=A.component.da;w&&it(w,y);return}p(m)})}),()=>{if(v=null,!e.default)return i=null;const m=e.default(),b=m[0];if(m.length>1)return{}.NODE_ENV!=="production"&&$("KeepAlive should contain exactly one component child."),i=null,m;if(!ct(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return i=null,b;let y=Pn(b);const A=y.type,w=dt(uo(y)?y.type.__asyncResolved||{}:A),{include:x,exclude:Z,max:fe}=t;if(x&&(!w||!st(x,w))||Z&&w&&st(Z,w))return i=y,b;const re=y.key==null?A:y.key,gs=o.get(re);return y.el&&(y=lt(y),b.shapeFlag&128&&(b.ssContent=y)),v=re,gs?(y.el=gs.el,y.component=gs.component,y.transition&&lo(y,y.transition),y.shapeFlag|=512,r.delete(re),r.add(re)):(r.add(re),fe&&r.size>parseInt(fe,10)&&_(r.values().next().value)),y.shapeFlag|=256,i=y,ao(b.type)?b:y}}};function st(t,e){return I(t)?t.some(n=>st(n,e)):J(t)?t.split(",").includes(e):Yr(t)?t.test(e):!1}function On(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Pn(t){return t.shapeFlag&128?t.ssContent:t}function sa(t,e,n=Ee,s=!1){if(n){const o=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...i)=>{if(n.isUnmounted)return;Je();const a=To(n),c=Ve(e,n,t,i);return a(),Qe(),c});return s?o.unshift(r):o.push(r),r}else if({}.NODE_ENV!=="production"){const o=Jr(_n[t].replace(/ hook$/,""));$(`${o} 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 At=t=>(e,n=Ee)=>(!Rn||t==="sp")&&sa(t,(...s)=>e(...s),n),Nn=At("m"),oa=At("u"),ra=At("bum"),fo=At("um");function Be(t,e,n,s){let o;const r=n&&n[s];if(I(t)||J(t)){o=new Array(t.length);for(let i=0,a=t.length;i<a;i++)o[i]=e(t[i],i,void 0,r&&r[i])}else if(typeof t=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(t)&&$(`The v-for range expect an integer value but got ${t}.`),o=new Array(t);for(let i=0;i<t;i++)o[i]=e(i+1,i,void 0,r&&r[i])}else if(q(t))if(t[Symbol.iterator])o=Array.from(t,(i,a)=>e(i,a,void 0,r&&r[a]));else{const i=Object.keys(t);o=new Array(i.length);for(let a=0,c=i.length;a<c;a++){const l=i[a];o[a]=e(t[l],l,a,r&&r[a])}}else o=[];return n&&(n[s]=o),o}function G(t,e,n={},s,o){if(z.isCE||z.parent&&uo(z.parent)&&z.parent.isCE)return e!=="default"&&(n.name=e),K("slot",n,s&&s());let r=t[e];({}).NODE_ENV!=="production"&&r&&r.length>1&&($("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),r=()=>[]),r&&r._c&&(r._d=!1),C();const i=r&&ho(r(n)),a=ee(ae,{key:n.key||i&&i.key||`_${e}`},i||(s?s():[]),i&&t._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function ho(t){return t.some(e=>ct(e)?!(e.type===Dt||e.type===ae&&!ho(e.children)):!0)?t:null}const Ln=t=>t?xa(t)?Po(t)||t.proxy:Ln(t.parent):null,ot=ie(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>({}).NODE_ENV!=="production"?Ot(t.props):t.props,$attrs:t=>({}).NODE_ENV!=="production"?Ot(t.attrs):t.attrs,$slots:t=>({}).NODE_ENV!=="production"?Ot(t.slots):t.slots,$refs:t=>({}).NODE_ENV!=="production"?Ot(t.refs):t.refs,$parent:t=>Ln(t.parent),$root:t=>Ln(t.root),$emit:t=>t.emit,$options:t=>ua(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,Cn(t.update)}),$nextTick:t=>t.n||(t.n=Vi.bind(t.proxy)),$watch:t=>ea.bind(t)}),ia=t=>t==="_"||t==="$",$n=(t,e)=>t!==ce&&!t.__isScriptSetup&&B(t,e),aa={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:c}=t;if({}.NODE_ENV!=="production"&&e==="__isVue")return!0;let l;if(e[0]!=="$"){const p=i[e];if(p!==void 0)switch(p){case 1:return s[e];case 2:return o[e];case 4:return n[e];case 3:return r[e]}else{if($n(s,e))return i[e]=1,s[e];if(o!==ce&&B(o,e))return i[e]=2,o[e];if((l=t.propsOptions[0])&&B(l,e))return i[e]=3,r[e];if(n!==ce&&B(n,e))return i[e]=4,n[e];i[e]=0}}const f=ot[e];let d,u;if(f)return e==="$attrs"?X(t.attrs,"get",""):{}.NODE_ENV!=="production"&&e==="$slots"&&X(t,"get",e),f(t);if((d=a.__cssModules)&&(d=d[e]))return d;if(n!==ce&&B(n,e))return i[e]=4,n[e];if(u=c.config.globalProperties,B(u,e))return u[e];({}).NODE_ENV!=="production"&&z&&(!J(e)||e.indexOf("__v")!==0)&&(o!==ce&&ia(e[0])&&B(o,e)?$(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):t===z&&$(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:t},e,n){const{data:s,setupState:o,ctx:r}=t;return $n(o,e)?(o[e]=n,!0):{}.NODE_ENV!=="production"&&o.__isScriptSetup&&B(o,e)?($(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):s!==ce&&B(s,e)?(s[e]=n,!0):B(t.props,e)?({}.NODE_ENV!=="production"&&$(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?({}.NODE_ENV!=="production"&&$(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&e in t.appContext.config.globalProperties?Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:n}):r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let a;return!!n[i]||t!==ce&&B(t,i)||$n(e,i)||(a=r[0])&&B(a,i)||B(s,i)||B(ot,i)||B(o.config.globalProperties,i)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:B(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};({}).NODE_ENV!=="production"&&(aa.ownKeys=t=>($("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(t)));function ca(){return la().slots}function la(){const t=ko();return{}.NODE_ENV!=="production"&&!t&&$("useContext() called without active instance."),t.setupContext||(t.setupContext=Ea(t))}function po(t){return I(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function ua(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=t.appContext,a=r.get(e);let c;return a?c=a:!o.length&&!n&&!s?c=e:(c={},o.length&&o.forEach(l=>Rt(c,l,i,!0)),Rt(c,e,i)),q(e)&&r.set(e,c),c}function Rt(t,e,n,s=!1){const{mixins:o,extends:r}=e;r&&Rt(t,r,n,!0),o&&o.forEach(i=>Rt(t,i,n,!0));for(const i in e)if(s&&i==="expose")({}).NODE_ENV!=="production"&&$('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=da[i]||n&&n[i];t[i]=a?a(t[i],e[i]):e[i]}return t}const da={data:mo,props:vo,emits:vo,methods:rt,computed:rt,beforeCreate:Q,created:Q,beforeMount:Q,mounted:Q,beforeUpdate:Q,updated:Q,beforeDestroy:Q,beforeUnmount:Q,destroyed:Q,unmounted:Q,activated:Q,deactivated:Q,errorCaptured:Q,serverPrefetch:Q,components:rt,directives:rt,watch:ha,provide:mo,inject:fa};function mo(t,e){return e?t?function(){return ie(V(t)?t.call(this,this):t,V(e)?e.call(this,this):e)}:e:t}function fa(t,e){return rt(go(t),go(e))}function go(t){if(I(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Q(t,e){return t?[...new Set([].concat(t,e))]:e}function rt(t,e){return t?ie(Object.create(null),t,e):e}function vo(t,e){return t?I(t)&&I(e)?[...new Set([...t,...e])]:ie(Object.create(null),po(t),po(e??{})):e}function ha(t,e){if(!t)return e;if(!e)return t;const n=ie(Object.create(null),t);for(const s in e)n[s]=Q(t[s],e[s]);return n}let yo=null;function pa(t,e,n=!1){const s=Ee||z;if(s||yo){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:yo._context.provides;if(o&&t in o)return o[t];if(arguments.length>1)return n&&V(e)?e.call(s&&s.proxy):e;({}).NODE_ENV!=="production"&&$(`injection "${String(t)}" not found.`)}else({}).NODE_ENV!=="production"&&$("inject() can only be used inside setup() or functional components.")}const ma={},_o=t=>Object.getPrototypeOf(t)===ma,it=Zi,ga=t=>t.__isTeleport,ae=Symbol.for("v-fgt"),va=Symbol.for("v-txt"),Dt=Symbol.for("v-cmt"),Ft=[];let ue=null;function C(t=!1){Ft.push(ue=t?null:[])}function ya(){Ft.pop(),ue=Ft[Ft.length-1]||null}let at=1;function bo(t){at+=t}function wo(t){return t.dynamicChildren=at>0?ue||Gr:null,ya(),at>0&&ue&&ue.push(t),t}function N(t,e,n,s,o,r){return wo(h(t,e,n,s,o,r,!0))}function ee(t,e,n,s,o){return wo(K(t,e,n,s,o,!0))}function ct(t){return t?t.__v_isVNode===!0:!1}function _a(t,e){return{}.NODE_ENV!=="production"&&e.shapeFlag&6&&He.has(e.type)?(t.shapeFlag&=-257,e.shapeFlag&=-513,!1):t.type===e.type&&t.key===e.key}const ba=(...t)=>Co(...t),xo=({key:t})=>t??null,jt=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?J(t)||se(t)||V(t)?{i:z,r:t,k:e,f:!!n}:t:null);function h(t,e=null,n=null,s=0,o=null,r=t===ae?0:1,i=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&xo(e),ref:e&&jt(e),scopeId:$t,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:z};return a?(In(c,n),r&128&&t.normalize(c)):n&&(c.shapeFlag|=J(n)?8:16),{}.NODE_ENV!=="production"&&c.key!==c.key&&$("VNode created with invalid key (NaN). VNode type:",c.type),at>0&&!i&&ue&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&ue.push(c),c}const K={}.NODE_ENV!=="production"?ba:Co;function Co(t,e=null,n=null,s=0,o=null,r=!1){if((!t||t===oo)&&({}.NODE_ENV!=="production"&&!t&&$(`Invalid vnode type when creating vnode: ${t}.`),t=Dt),ct(t)){const a=lt(t,e,!0);return n&&In(a,n),at>0&&!r&&ue&&(a.shapeFlag&6?ue[ue.indexOf(t)]=a:ue.push(a)),a.patchFlag|=-2,a}if(Lo(t)&&(t=t.__vccOpts),e){e=wa(e);let{class:a,style:c}=e;a&&!J(a)&&(e.class=R(a)),q(c)&&(vn(c)&&!I(c)&&(c=ie({},c)),e.style=k(c))}const i=J(t)?1:ao(t)?128:ga(t)?64:q(t)?4:V(t)?2:0;return{}.NODE_ENV!=="production"&&i&4&&vn(t)&&(t=L(t),$("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`.",`
|
|
20
|
+
Component that was made reactive: `,t)),h(t,e,n,s,o,i,r,!0)}function wa(t){return t?vn(t)||_o(t)?ie({},t):t:null}function lt(t,e,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=t,a=e?Mn(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&xo(a),ref:e&&e.ref?n&&o?I(o)?o.concat(jt(e)):[o,jt(e)]:jt(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&I(i)?i.map(Eo):i,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ae?r===-1?16:r|16:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&<(t.ssContent),ssFallback:t.ssFallback&<(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Eo(t){const e=lt(t);return I(t.children)&&(e.children=t.children.map(Eo)),e}function ut(t=" ",e=0){return K(va,null,t,e)}function te(t="",e=!1){return e?(C(),ee(Dt,null,t)):K(Dt,null,t)}function In(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(I(e))n=16;else if(typeof e=="object")if(s&65){const o=e.default;o&&(o._c&&(o._d=!1),In(t,o()),o._c&&(o._d=!0));return}else{n=32;const o=e._;!o&&!_o(e)?e._ctx=z:o===3&&z&&(z.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else V(e)?(e={default:e,_ctx:z},n=32):(e=String(e),s&64?(n=16,e=[ut(e)]):n=8);t.children=e,t.shapeFlag|=n}function Mn(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const o in s)if(o==="class")e.class!==s.class&&(e.class=R([e.class,s.class]));else if(o==="style")e.style=k([e.style,s.style]);else if(Ur(o)){const r=e[o],i=s[o];i&&r!==i&&!(I(r)&&r.includes(i))&&(e[o]=r?[].concat(r,i):i)}else o!==""&&(e[o]=s[o])}return e}function So(t,e,n,s=null){Ve(t,e,7,[n,s])}let Ee=null;const ko=()=>Ee||z;let An;{const t=Cs(),e=(n,s)=>{let o;return(o=t[n])||(o=t[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};An=e("__VUE_INSTANCE_SETTERS__",n=>Ee=n),e("__VUE_SSR_SETTERS__",n=>Rn=n)}const To=t=>{const e=Ee;return An(t),t.scope.on(),()=>{t.scope.off(),An(e)}};function xa(t){return t.vnode.shapeFlag&4}let Rn=!1;const Oo={}.NODE_ENV!=="production"?{get(t,e){return X(t,"get",""),t[e]},set(){return $("setupContext.attrs is readonly."),!1},deleteProperty(){return $("setupContext.attrs is readonly."),!1}}:{get(t,e){return X(t,"get",""),t[e]}};function Ca(t){return t.slotsProxy||(t.slotsProxy=new Proxy(t.slots,{get(e,n){return X(t,"get","$slots"),e[n]}}))}function Ea(t){const e=n=>{if({}.NODE_ENV!=="production"&&(t.exposed&&$("expose() should be called only once per setup()."),n!=null)){let s=typeof n;s==="object"&&(I(n)?s="array":se(n)&&(s="ref")),s!=="object"&&$(`expose() should be passed a plain object, received ${s}.`)}t.exposed=n||{}};if({}.NODE_ENV!=="production"){let n;return Object.freeze({get attrs(){return n||(n=new Proxy(t.attrs,Oo))},get slots(){return Ca(t)},get emit(){return(s,...o)=>t.emit(s,...o)},expose:e})}else return{attrs:new Proxy(t.attrs,Oo),slots:t.slots,emit:t.emit,expose:e}}function Po(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Li(Si(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in ot)return ot[n](t)},has(e,n){return n in e||n in ot}}))}const Sa=/(?:^|[-_])(\w)/g,ka=t=>t.replace(Sa,e=>e.toUpperCase()).replace(/[-_]/g,"");function dt(t,e=!0){return V(t)?t.displayName||t.name:t.name||e&&t.__name}function No(t,e,n=!1){let s=dt(e);if(!s&&e.__file){const o=e.__file.match(/([^/\\]+)\.\w+$/);o&&(s=o[1])}if(!s&&t&&t.parent){const o=r=>{for(const i in r)if(r[i]===e)return i};s=o(t.components||t.parent.type.components)||o(t.appContext.components)}return s?ka(s):n?"App":"Anonymous"}function Lo(t){return V(t)&&"__vccOpts"in t}function $o(t,e,n){const s=arguments.length;return s===2?q(e)&&!I(e)?ct(e)?K(t,null,[e]):K(t,e):K(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ct(n)&&(n=[n]),K(t,e,n))}function Ta(){if({}.NODE_ENV==="production"||typeof window>"u")return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},s={style:"color:#eb2f96"},o={header(d){return q(d)?d.__isVue?["div",t,"VueInstance"]:se(d)?["div",{},["span",t,f(d)],"<",a(d.value),">"]:je(d)?["div",{},["span",t,$e(d)?"ShallowReactive":"Reactive"],"<",a(d),`>${Le(d)?" (readonly)":""}`]:Le(d)?["div",{},["span",t,$e(d)?"ShallowReadonly":"Readonly"],"<",a(d),">"]:null:null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...r(d.$)]}};function r(d){const u=[];d.type.props&&d.props&&u.push(i("props",L(d.props))),d.setupState!==ce&&u.push(i("setup",d.setupState)),d.data!==ce&&u.push(i("data",L(d.data)));const p=c(d,"computed");p&&u.push(i("computed",p));const g=c(d,"inject");return g&&u.push(i("injected",g)),u.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),u}function i(d,u){return u=ie({},u),Object.keys(u).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},d],["div",{style:"padding-left:1.25em"},...Object.keys(u).map(p=>["div",{},["span",s,p+": "],a(u[p],!1)])]]:["span",{}]}function a(d,u=!0){return typeof d=="number"?["span",e,d]:typeof d=="string"?["span",n,JSON.stringify(d)]:typeof d=="boolean"?["span",s,d]:q(d)?["object",{object:u?L(d):d}]:["span",n,String(d)]}function c(d,u){const p=d.type;if(V(p))return;const g={};for(const _ in d.ctx)l(p,_,u)&&(g[_]=d.ctx[_]);return g}function l(d,u,p){const g=d[p];if(I(g)&&g.includes(u)||q(g)&&u in g||d.extends&&l(d.extends,u,p)||d.mixins&&d.mixins.some(_=>l(_,u,p)))return!0}function f(d){return $e(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(o):window.devtoolsFormatters=[o]}/**
|
|
21
|
+
* @vue/runtime-dom v3.4.25
|
|
22
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
23
|
+
* @license MIT
|
|
24
|
+
**/const Io=Symbol("_vod"),Oa=Symbol("_vsh"),Vt={beforeMount(t,{value:e},{transition:n}){t[Io]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):ft(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),ft(t,!0),s.enter(t)):s.leave(t,()=>{ft(t,!1)}):ft(t,e))},beforeUnmount(t,{value:e}){ft(t,e)}};({}).NODE_ENV!=="production"&&(Vt.name="show");function ft(t,e){t.style.display=e?t[Io]:"none",t[Oa]=!e}/**
|
|
25
|
+
* vue v3.4.25
|
|
26
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
27
|
+
* @license MIT
|
|
28
|
+
**/function Pa(){Ta()}({}).NODE_ENV!=="production"&&Pa();const ht=/^[a-z0-9]+(-[a-z0-9]+)*$/,zt=(t,e,n,s="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;s=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:s,prefix:c,name:a};return e&&!Ht(l)?null:l}const r=o[0],i=r.split("-");if(i.length>1){const a={provider:s,prefix:i.shift(),name:i.join("-")};return e&&!Ht(a)?null:a}if(n&&s===""){const a={provider:s,prefix:"",name:r};return e&&!Ht(a,n)?null:a}return null},Ht=(t,e)=>t?!!((t.provider===""||t.provider.match(ht))&&(e&&t.prefix===""||t.prefix.match(ht))&&t.name.match(ht)):!1,Mo=Object.freeze({left:0,top:0,width:16,height:16}),Bt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Wt=Object.freeze({...Mo,...Bt}),Dn=Object.freeze({...Wt,body:"",hidden:!1});function Na(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function Ao(t,e){const n=Na(t,e);for(const s in Dn)s in Bt?s in t&&!(s in n)&&(n[s]=Bt[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function La(t,e){const n=t.icons,s=t.aliases||Object.create(null),o=Object.create(null);function r(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=s[i]&&s[i].parent,c=a&&r(a);c&&(o[i]=[a].concat(c))}return o[i]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(r),o}function $a(t,e,n){const s=t.icons,o=t.aliases||Object.create(null);let r={};function i(a){r=Ao(s[a]||o[a],r)}return i(e),n.forEach(i),Ao(t,r)}function Ro(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const s=La(t);for(const o in s){const r=s[o];r&&(e(o,$a(t,o,r)),n.push(o))}return n}const Ia={provider:"",aliases:{},not_found:{},...Mo};function Fn(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Do(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!Fn(t,Ia))return null;const n=e.icons;for(const o in n){const r=n[o];if(!o.match(ht)||typeof r.body!="string"||!Fn(r,Dn))return null}const s=e.aliases||Object.create(null);for(const o in s){const r=s[o],i=r.parent;if(!o.match(ht)||typeof i!="string"||!n[i]&&!s[i]||!Fn(r,Dn))return null}return e}const Fo=Object.create(null);function Ma(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function Re(t,e){const n=Fo[t]||(Fo[t]=Object.create(null));return n[e]||(n[e]=Ma(t,e))}function jn(t,e){return Do(e)?Ro(e,(n,s)=>{s?t.icons[n]=s:t.missing.add(n)}):[]}function Aa(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}let pt=!1;function jo(t){return typeof t=="boolean"&&(pt=t),pt}function Ra(t){const e=typeof t=="string"?zt(t,!0,pt):t;if(e){const n=Re(e.provider,e.prefix),s=e.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function Da(t,e){const n=zt(t,!0,pt);if(!n)return!1;const s=Re(n.provider,n.prefix);return Aa(s,n.name,e)}function Fa(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),pt&&!e&&!t.prefix){let o=!1;return Do(t)&&(t.prefix="",Ro(t,(r,i)=>{i&&Da(r,i)&&(o=!0)})),o}const n=t.prefix;if(!Ht({provider:e,prefix:n,name:"a"}))return!1;const s=Re(e,n);return!!jn(s,t)}const Vo=Object.freeze({width:null,height:null}),zo=Object.freeze({...Vo,...Bt}),ja=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Va=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ho(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(ja);if(s===null||!s.length)return t;const o=[];let r=s.shift(),i=Va.test(r);for(;;){if(i){const a=parseFloat(r);isNaN(a)?o.push(r):o.push(Math.ceil(a*e*n)/n)}else o.push(r);if(r=s.shift(),r===void 0)return o.join("");i=!i}}function za(t,e="defs"){let n="";const s=t.indexOf("<"+e);for(;s>=0;){const o=t.indexOf(">",s),r=t.indexOf("</"+e);if(o===-1||r===-1)break;const i=t.indexOf(">",r);if(i===-1)break;n+=t.slice(o+1,r).trim(),t=t.slice(0,s).trim()+t.slice(i+1)}return{defs:n,content:t}}function Ha(t,e){return t?"<defs>"+t+"</defs>"+e:e}function Ba(t,e,n){const s=za(t);return Ha(s.defs,e+s.content+n)}const Wa=t=>t==="unset"||t==="undefined"||t==="none";function Ga(t,e){const n={...Wt,...t},s={...zo,...e},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(_=>{const v=[],S=_.hFlip,m=_.vFlip;let b=_.rotate;S?m?b+=2:(v.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),v.push("scale(-1 1)"),o.top=o.left=0):m&&(v.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),v.push("scale(1 -1)"),o.top=o.left=0);let y;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:y=o.height/2+o.top,v.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:v.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,v.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}b%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),v.length&&(r=Ba(r,'<g transform="'+v.join(" ")+'">',"</g>"))});const i=s.width,a=s.height,c=o.width,l=o.height;let f,d;i===null?(d=a===null?"1em":a==="auto"?l:a,f=Ho(d,c/l)):(f=i==="auto"?c:i,d=a===null?Ho(f,l/c):a==="auto"?l:a);const u={},p=(_,v)=>{Wa(v)||(u[_]=v.toString())};p("width",f),p("height",d);const g=[o.left,o.top,c,l];return u.viewBox=g.join(" "),{attributes:u,viewBox:g,body:r}}const Ua=/\sid="(\S+)"/g,Ka="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let qa=0;function Ya(t,e=Ka){const n=[];let s;for(;s=Ua.exec(t);)n.push(s[1]);if(!n.length)return t;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof e=="function"?e(r):e+(qa++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),t=t.replace(new RegExp(o,"g"),""),t}const Vn=Object.create(null);function Xa(t,e){Vn[t]=e}function zn(t){return Vn[t]||Vn[""]}function Hn(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const Bn=Object.create(null),mt=["https://api.simplesvg.com","https://api.unisvg.com"],Gt=[];for(;mt.length>0;)mt.length===1||Math.random()>.5?Gt.push(mt.shift()):Gt.push(mt.pop());Bn[""]=Hn({resources:["https://api.iconify.design"].concat(Gt)});function Za(t,e){const n=Hn(e);return n===null?!1:(Bn[t]=n,!0)}function Wn(t){return Bn[t]}let Bo=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function Ja(t,e){const n=Wn(t);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const r=e+".json?icons=";s=n.maxURL-o-n.path.length-r.length}return s}function Qa(t){return t===404}const ec=(t,e,n)=>{const s=[],o=Ja(t,e),r="icons";let i={type:r,provider:t,prefix:e,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(s.push(i),i={type:r,provider:t,prefix:e,icons:[]},a=c.length),i.icons.push(c)}),s.push(i),s};function tc(t){if(typeof t=="string"){const e=Wn(t);if(e)return e.path}return"/"}const nc={prepare:ec,send:(t,e,n)=>{if(!Bo){n("abort",424);return}let s=tc(e.provider);switch(e.type){case"icons":{const r=e.prefix,a=e.icons.join(","),c=new URLSearchParams({icons:a});s+=r+".json?"+c.toString();break}case"custom":{const r=e.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let o=503;Bo(t+s).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(Qa(i)?"abort":"next",i)});return}return o=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",o)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",o)})}};function sc(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,r)=>o.provider!==r.provider?o.provider.localeCompare(r.provider):o.prefix!==r.prefix?o.prefix.localeCompare(r.prefix):o.name.localeCompare(r.name));let s={provider:"",prefix:"",name:""};return t.forEach(o=>{if(s.name===o.name&&s.prefix===o.prefix&&s.provider===o.provider)return;s=o;const r=o.provider,i=o.prefix,a=o.name,c=n[r]||(n[r]=Object.create(null)),l=c[i]||(c[i]=Re(r,i));let f;a in l.icons?f=e.loaded:i===""||l.missing.has(a)?f=e.missing:f=e.pending;const d={provider:r,prefix:i,name:a};f.push(d)}),e}function Wo(t,e){t.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(o=>o.id!==e))})}function oc(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const s=t.provider,o=t.prefix;e.forEach(r=>{const i=r.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(t.icons[l])i.loaded.push({provider:s,prefix:o,name:l});else if(t.missing.has(l))i.missing.push({provider:s,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||Wo([t],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let rc=0;function ic(t,e,n){const s=rc++,o=Wo.bind(null,n,s);if(!e.pending.length)return o;const r={id:s,icons:e,callback:t,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),o}function ac(t,e=!0,n=!1){const s=[];return t.forEach(o=>{const r=typeof o=="string"?zt(o,e,n):o;r&&s.push(r)}),s}var cc={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function lc(t,e,n,s){const o=t.resources.length,r=t.random?Math.floor(Math.random()*o):t.index;let i;if(t.random){let w=t.resources.slice(0);for(i=[];w.length>1;){const x=Math.floor(Math.random()*w.length);i.push(w[x]),w=w.slice(0,x).concat(w.slice(x+1))}i=i.concat(w)}else i=t.resources.slice(r).concat(t.resources.slice(0,r));const a=Date.now();let c="pending",l=0,f,d=null,u=[],p=[];typeof s=="function"&&p.push(s);function g(){d&&(clearTimeout(d),d=null)}function _(){c==="pending"&&(c="aborted"),g(),u.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),u=[]}function v(w,x){x&&(p=[]),typeof w=="function"&&p.push(w)}function S(){return{startTime:a,payload:e,status:c,queriesSent:l,queriesPending:u.length,subscribe:v,abort:_}}function m(){c="failed",p.forEach(w=>{w(void 0,f)})}function b(){u.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),u=[]}function y(w,x,Z){const fe=x!=="success";switch(u=u.filter(re=>re!==w),c){case"pending":break;case"failed":if(fe||!t.dataAfterTimeout)return;break;default:return}if(x==="abort"){f=Z,m();return}if(fe){f=Z,u.length||(i.length?A():m());return}if(g(),b(),!t.random){const re=t.resources.indexOf(w.resource);re!==-1&&re!==t.index&&(t.index=re)}c="completed",p.forEach(re=>{re(Z)})}function A(){if(c!=="pending")return;g();const w=i.shift();if(w===void 0){if(u.length){d=setTimeout(()=>{g(),c==="pending"&&(b(),m())},t.timeout);return}m();return}const x={status:"pending",resource:w,callback:(Z,fe)=>{y(x,Z,fe)}};u.push(x),l++,d=setTimeout(A,t.rotate),n(w,e,x.callback)}return setTimeout(A),S}function Go(t){const e={...cc,...t};let n=[];function s(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const f=lc(e,a,c,(d,u)=>{s(),l&&l(d,u)});return n.push(f),f}function r(a){return n.find(c=>a(c))||null}return{query:o,find:r,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:s}}function Uo(){}const Gn=Object.create(null);function uc(t){if(!Gn[t]){const e=Wn(t);if(!e)return;const n=Go(e),s={config:e,redundancy:n};Gn[t]=s}return Gn[t]}function dc(t,e,n){let s,o;if(typeof t=="string"){const r=zn(t);if(!r)return n(void 0,424),Uo;o=r.send;const i=uc(t);i&&(s=i.redundancy)}else{const r=Hn(t);if(r){s=Go(r);const i=t.resources?t.resources[0]:"",a=zn(i);a&&(o=a.send)}}return!s||!o?(n(void 0,424),Uo):s.query(e,o,n)().abort}const Ko="iconify2",gt="iconify",qo=gt+"-count",Yo=gt+"-version",Xo=36e5,fc=168,hc=50;function Un(t,e){try{return t.getItem(e)}catch{}}function Kn(t,e,n){try{return t.setItem(e,n),!0}catch{}}function Zo(t,e){try{t.removeItem(e)}catch{}}function qn(t,e){return Kn(t,qo,e.toString())}function Yn(t){return parseInt(Un(t,qo))||0}const Ut={local:!0,session:!0},Jo={local:new Set,session:new Set};let Xn=!1;function pc(t){Xn=t}let Kt=typeof window>"u"?{}:window;function Qo(t){const e=t+"Storage";try{if(Kt&&Kt[e]&&typeof Kt[e].length=="number")return Kt[e]}catch{}Ut[t]=!1}function er(t,e){const n=Qo(t);if(!n)return;const s=Un(n,Yo);if(s!==Ko){if(s){const a=Yn(n);for(let c=0;c<a;c++)Zo(n,gt+c.toString())}Kn(n,Yo,Ko),qn(n,0);return}const o=Math.floor(Date.now()/Xo)-fc,r=a=>{const c=gt+a.toString(),l=Un(n,c);if(typeof l=="string"){try{const f=JSON.parse(l);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&e(f,a))return!0}catch{}Zo(n,c)}};let i=Yn(n);for(let a=i-1;a>=0;a--)r(a)||(a===i-1?(i--,qn(n,i)):Jo[t].add(a))}function tr(){if(!Xn){pc(!0);for(const t in Ut)er(t,e=>{const n=e.data,s=e.provider,o=n.prefix,r=Re(s,o);if(!jn(r,n).length)return!1;const i=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,i):i,!0})}}function mc(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const s in Ut)er(s,o=>{const r=o.data;return o.provider!==t.provider||r.prefix!==t.prefix||r.lastModified===e});return!0}function gc(t,e){Xn||tr();function n(s){let o;if(!Ut[s]||!(o=Qo(s)))return;const r=Jo[s];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=Yn(o),i>=hc||!qn(o,i+1))return;const a={cached:Math.floor(Date.now()/Xo),provider:t.provider,data:e};return Kn(o,gt+i.toString(),JSON.stringify(a))}e.lastModified&&!mc(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function nr(){}function vc(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,oc(t)}))}function yc(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:s}=t,o=t.iconsToLoad;delete t.iconsToLoad;let r;if(!o||!(r=zn(n)))return;r.prepare(n,s,o).forEach(a=>{dc(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{t.missing.add(l)});else try{const l=jn(t,c);if(!l.length)return;const f=t.pendingIcons;f&&l.forEach(d=>{f.delete(d)}),gc(t,c)}catch(l){console.error(l)}vc(t)})})}))}const _c=(t,e)=>{const n=ac(t,!0,jo()),s=sc(n);if(!s.pending.length){let c=!0;return e&&setTimeout(()=>{c&&e(s.loaded,s.missing,s.pending,nr)}),()=>{c=!1}}const o=Object.create(null),r=[];let i,a;return s.pending.forEach(c=>{const{provider:l,prefix:f}=c;if(f===a&&l===i)return;i=l,a=f,r.push(Re(l,f));const d=o[l]||(o[l]=Object.create(null));d[f]||(d[f]=[])}),s.pending.forEach(c=>{const{provider:l,prefix:f,name:d}=c,u=Re(l,f),p=u.pendingIcons||(u.pendingIcons=new Set);p.has(d)||(p.add(d),o[l][f].push(d))}),r.forEach(c=>{const{provider:l,prefix:f}=c;o[l][f].length&&yc(c,o[l][f])}),e?ic(e,s,r):nr};function bc(t,e){const n={...t};for(const s in e){const o=e[s],r=typeof o;s in Vo?(o===null||o&&(r==="string"||r==="number"))&&(n[s]=o):r===typeof n[s]&&(n[s]=s==="rotate"?o%4:o)}return n}const wc=/[\s,]+/;function xc(t,e){e.split(wc).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Cc(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function s(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:s(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let r=parseFloat(t.slice(0,t.length-n.length));return isNaN(r)?0:(r=r/o,r%1===0?s(r):0)}}return e}function Ec(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in e)n+=" "+s+'="'+e[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function Sc(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function kc(t){return"data:image/svg+xml,"+Sc(t)}function Tc(t){return'url("'+kc(t)+'")'}const sr={...zo,inline:!1},Oc={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Pc={display:"inline-block"},Zn={backgroundColor:"currentColor"},or={backgroundColor:"transparent"},rr={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},ir={webkitMask:Zn,mask:Zn,background:or};for(const t in ir){const e=ir[t];for(const n in rr)e[t+n]=rr[n]}const qt={};["horizontal","vertical"].forEach(t=>{const e=t.slice(0,1)+"Flip";qt[t+"-flip"]=e,qt[t.slice(0,1)+"-flip"]=e,qt[t+"Flip"]=e});function ar(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const cr=(t,e)=>{const n=bc(sr,e),s={...Oc},o=e.mode||"svg",r={},i=e.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let _ in e){const v=e[_];if(v!==void 0)switch(_){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[_]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&xc(n,v);break;case"color":r.color=v;break;case"rotate":typeof v=="string"?n[_]=Cc(v):typeof v=="number"&&(n[_]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete s["aria-hidden"];break;default:{const S=qt[_];S?(v===!0||v==="true"||v===1)&&(n[S]=!0):sr[_]===void 0&&(s[_]=v)}}}const c=Ga(t,n),l=c.attributes;if(n.inline&&(r.verticalAlign="-0.125em"),o==="svg"){s.style={...r,...a},Object.assign(s,l);let _=0,v=e.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),s.innerHTML=Ya(c.body,v?()=>v+"ID"+_++:"iconifyVue"),$o("svg",s)}const{body:f,width:d,height:u}=t,p=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),g=Ec(f,{...l,width:d+"",height:u+""});return s.style={...r,"--svg":Tc(g),width:ar(l.width),height:ar(l.height),...Pc,...p?Zn:or,...a},$o("span",s)};if(jo(!0),Xa("",nc),typeof document<"u"&&typeof window<"u"){tr();const t=window;if(t.IconifyPreload!==void 0){const e=t.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Fa(s))&&console.error(n)}catch{console.error(n)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(let n in e){const s="IconifyProviders["+n+"] is invalid.";try{const o=e[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Za(n,o)||console.error(s)}catch{console.error(s)}}}}const Nc={...Wt,body:""},Lc=F({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(t,e){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let n;if(typeof t!="string"||(n=zt(t,!1,!0))===null)return this.abortLoading(),null;const s=Ra(n);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:t,abort:_c([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,e&&e(t));const o=["iconify"];return n.prefix!==""&&o.push("iconify--"+n.prefix),n.provider!==""&&o.push("iconify--"+n.provider),{data:s,classes:o}}},render(){this.counter;const t=this.$attrs,e=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad):null;if(!e)return cr(Nc,t);let n=t;return e.classes&&(n={...t,class:(typeof t.class=="string"?t.class+" ":"")+e.classes.join(" ")}),cr({...Wt,...e.data},n)}});typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const lr=t=>{let e=null;switch(t){case"bin":e=/^[0-1]+$/;break;case"oct":e=/^(0b)?[0-7]+$/i;break;case"hex":e=/^(0x)?[0-9a-fA-F]+$/i;break;case"int":e=/^[-+]?[0-9]+$/;break;case"number":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"phone-number":e=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/gi;break;case"email":e=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Za-z0-9._-]+$/gm;break;case"ip":e=/^((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":e=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":e=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"hex-color":e=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"chinese-name":e=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":e=new RegExp(String.raw`
|
|
2
29
|
[\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
|
|
3
30
|
|[\u{4E00}-\u{9FCC}]
|
|
4
31
|
|[\u{3400}-\u{4DB5}]
|
|
@@ -7,62 +34,12 @@
|
|
|
7
34
|
|[\u{2B740}-\u{2B81D}]
|
|
8
35
|
|[\u{2B820}-\u{2CEAF}]
|
|
9
36
|
|[\u{2CEB0}-\u{2EBEF}]
|
|
10
|
-
`.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 Q3(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 Rg=(e,t)=>{typeof e=="string"&&(e=J3(e)||new RegExp(e));const r=[],n=t.matchAll(e);for(const i of n)r.push(Q3(i));return r};function Z3(e){const t=typeof e;return t!=="object"?t:Object.prototype.toString.call(e).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function tk(e){return Z3(e)==="object"}function jg(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]=tk(e[i])?jg(e[i],t):e[i];return n}function Ig(e,t=12){return+e.toPrecision(t)}function Dg(e,t){return function(){return e.apply(t,arguments)}}const{toString:ek}=Object.prototype,{getPrototypeOf:Ih}=Object,vc=(e=>t=>{const r=ek.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Jn=e=>(e=e.toLowerCase(),t=>vc(t)===e),yc=e=>t=>typeof t===e,{isArray:ia}=Array,qa=yc("undefined");function rk(e){return e!==null&&!qa(e)&&e.constructor!==null&&!qa(e.constructor)&&yn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fg=Jn("ArrayBuffer");function nk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Fg(e.buffer),t}const ik=yc("string"),yn=yc("function"),Mg=yc("number"),_c=e=>e!==null&&typeof e=="object",ok=e=>e===!0||e===!1,bc=e=>{if(vc(e)!=="object")return!1;const t=Ih(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ak=Jn("Date"),sk=Jn("File"),lk=Jn("Blob"),ck=Jn("FileList"),uk=e=>_c(e)&&yn(e.pipe),hk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||yn(e.append)&&((t=vc(e))==="formdata"||t==="object"&&yn(e.toString)&&e.toString()==="[object FormData]"))},dk=Jn("URLSearchParams"),fk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ka(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),a=o.length;let s;for(n=0;n<a;n++)s=o[n],t.call(null,e[s],s,e)}}function Lg(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 Ug=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zg=e=>!qa(e)&&e!==Ug;function Dh(){const{caseless:e}=zg(this)&&this||{},t={},r=(n,i)=>{const o=e&&Lg(t,i)||i;bc(t[o])&&bc(n)?t[o]=Dh(t[o],n):bc(n)?t[o]=Dh({},n):ia(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Ka(arguments[n],r);return t}const pk=(e,t,r,{allOwnKeys:n}={})=>(Ka(t,(i,o)=>{r&&yn(i)?e[o]=Dg(i,r):e[o]=i},{allOwnKeys:n}),e),mk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gk=(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)},vk=(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&Ih(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},yk=(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},_k=e=>{if(!e)return null;if(ia(e))return e;let t=e.length;if(!Mg(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},bk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ih(Uint8Array)),wk=(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])}},xk=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Sk=Jn("HTMLFormElement"),$k=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Gg=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),kk=Jn("RegExp"),Vg=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ka(r,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(n[o]=a||i)}),Object.defineProperties(e,n)},Ek=e=>{Vg(e,(t,r)=>{if(yn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(yn(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+"'")})}})},Ck=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return ia(e)?n(e):n(String(e).split(t)),r},Pk=()=>{},Tk=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Fh="abcdefghijklmnopqrstuvwxyz",Bg="0123456789",Hg={DIGIT:Bg,ALPHA:Fh,ALPHA_DIGIT:Fh+Fh.toUpperCase()+Bg},Ok=(e=16,t=Hg.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Ak(e){return!!(e&&yn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Nk=e=>{const t=new Array(10),r=(n,i)=>{if(_c(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=ia(n)?[]:{};return Ka(n,(a,s)=>{const c=r(a,i+1);!qa(c)&&(o[s]=c)}),t[i]=void 0,o}}return n};return r(e,0)},Rk=Jn("AsyncFunction"),jk=e=>e&&(_c(e)||yn(e))&&yn(e.then)&&yn(e.catch),mt={isArray:ia,isArrayBuffer:Fg,isBuffer:rk,isFormData:hk,isArrayBufferView:nk,isString:ik,isNumber:Mg,isBoolean:ok,isObject:_c,isPlainObject:bc,isUndefined:qa,isDate:ak,isFile:sk,isBlob:lk,isRegExp:kk,isFunction:yn,isStream:uk,isURLSearchParams:dk,isTypedArray:bk,isFileList:ck,forEach:Ka,merge:Dh,extend:pk,trim:fk,stripBOM:mk,inherits:gk,toFlatObject:vk,kindOf:vc,kindOfTest:Jn,endsWith:yk,toArray:_k,forEachEntry:wk,matchAll:xk,isHTMLForm:Sk,hasOwnProperty:Gg,hasOwnProp:Gg,reduceDescriptors:Vg,freezeMethods:Ek,toObjectSet:Ck,toCamelCase:$k,noop:Pk,toFiniteNumber:Tk,findKey:Lg,global:Ug,isContextDefined:zg,ALPHABET:Hg,generateString:Ok,isSpecCompliantForm:Ak,toJSONObject:Nk,isAsyncFn:Rk,isThenable:jk};function Ee(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)}mt.inherits(Ee,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:mt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qg=Ee.prototype,Kg={};["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=>{Kg[e]={value:e}}),Object.defineProperties(Ee,Kg),Object.defineProperty(qg,"isAxiosError",{value:!0}),Ee.from=(e,t,r,n,i,o)=>{const a=Object.create(qg);return mt.toFlatObject(e,a,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),Ee.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Ik=null;function Mh(e){return mt.isPlainObject(e)||mt.isArray(e)}function Yg(e){return mt.endsWith(e,"[]")?e.slice(0,-2):e}function Xg(e,t,r){return e?e.concat(t).map(function(n,i){return n=Yg(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function Dk(e){return mt.isArray(e)&&!e.some(Mh)}const Fk=mt.toFlatObject(mt,{},null,function(e){return/^is[A-Z]/.test(e)});function wc(e,t,r){if(!mt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=mt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,p){return!mt.isUndefined(p[h])});const n=r.metaTokens,i=r.visitor||l,o=r.dots,a=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&&mt.isSpecCompliantForm(t);if(!mt.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(mt.isDate(h))return h.toISOString();if(!s&&mt.isBlob(h))throw new Ee("Blob is not supported. Use a Buffer instead.");return mt.isArrayBuffer(h)||mt.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function l(h,p,g){let v=h;if(h&&!g&&typeof h=="object"){if(mt.endsWith(p,"{}"))p=n?p:p.slice(0,-2),h=JSON.stringify(h);else if(mt.isArray(h)&&Dk(h)||(mt.isFileList(h)||mt.endsWith(p,"[]"))&&(v=mt.toArray(h)))return p=Yg(p),v.forEach(function(_,y){!(mt.isUndefined(_)||_===null)&&t.append(a===!0?Xg([p],y,o):a===null?p:p+"[]",c(_))}),!1}return Mh(h)?!0:(t.append(Xg(g,p,o),c(h)),!1)}const u=[],d=Object.assign(Fk,{defaultVisitor:l,convertValue:c,isVisitable:Mh});function f(h,p){if(!mt.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(h),mt.forEach(h,function(g,v){(!(mt.isUndefined(g)||g===null)&&i.call(t,g,mt.isString(v)?v.trim():v,p,d))===!0&&f(g,p?p.concat(v):[v])}),u.pop()}}if(!mt.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Wg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Lh(e,t){this._pairs=[],e&&wc(e,this,t)}const Jg=Lh.prototype;Jg.append=function(e,t){this._pairs.push([e,t])},Jg.toString=function(e){const t=e?function(r){return e.call(this,r,Wg)}:Wg;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Mk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Qg(e,t,r){if(!t)return e;const n=r&&r.encode||Mk,i=r&&r.serialize;let o;if(i?o=i(t,r):o=mt.isURLSearchParams(t)?t.toString():new Lh(t,r).toString(n),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Lk{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){mt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Zg=Lk,t1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uk=typeof URLSearchParams<"u"?URLSearchParams:Lh,zk=typeof FormData<"u"?FormData:null,Gk=typeof Blob<"u"?Blob:null,Vk=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Bk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qn={isBrowser:!0,classes:{URLSearchParams:Uk,FormData:zk,Blob:Gk},isStandardBrowserEnv:Vk,isStandardBrowserWebWorkerEnv:Bk,protocols:["http","https","file","blob","url","data"]};function Hk(e,t){return wc(e,new Qn.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return Qn.isNode&&mt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function qk(e){return mt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Kk(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 e1(e){function t(r,n,i,o){let a=r[o++];const s=Number.isFinite(+a),c=o>=r.length;return a=!a&&mt.isArray(i)?i.length:a,c?(mt.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!s):((!i[a]||!mt.isObject(i[a]))&&(i[a]=[]),t(r,n,i[a],o)&&mt.isArray(i[a])&&(i[a]=Kk(i[a])),!s)}if(mt.isFormData(e)&&mt.isFunction(e.entries)){const r={};return mt.forEachEntry(e,(n,i)=>{t(qk(n),i,r,0)}),r}return null}function Yk(e,t,r){if(mt.isString(e))try{return(t||JSON.parse)(e),mt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Uh={transitional:t1,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=mt.isObject(e);if(i&&mt.isHTMLForm(e)&&(e=new FormData(e)),mt.isFormData(e))return n&&n?JSON.stringify(e1(e)):e;if(mt.isArrayBuffer(e)||mt.isBuffer(e)||mt.isStream(e)||mt.isFile(e)||mt.isBlob(e))return e;if(mt.isArrayBufferView(e))return e.buffer;if(mt.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 Hk(e,this.formSerializer).toString();if((o=mt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return wc(o?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),Yk(e)):e}],transformResponse:[function(e){const t=this.transitional||Uh.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(e&&mt.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"?Ee.from(o,Ee.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:Qn.classes.FormData,Blob:Qn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};mt.forEach(["delete","get","head","post","put","patch"],e=>{Uh.headers[e]={}});const zh=Uh,Xk=mt.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"]),Wk=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
11
|
-
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&Xk[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},r1=Symbol("internals");function Ya(e){return e&&String(e).trim().toLowerCase()}function xc(e){return e===!1||e==null?e:mt.isArray(e)?e.map(xc):String(e)}function Jk(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 Qk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Gh(e,t,r,n,i){if(mt.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!mt.isString(t)){if(mt.isString(n))return t.indexOf(n)!==-1;if(mt.isRegExp(n))return n.test(t)}}function Zk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function t4(e,t){const r=mt.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,a){return this[n].call(this,t,i,o,a)},configurable:!0})})}let Sc=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(s,c,l){const u=Ya(c);if(!u)throw new Error("header name must be a non-empty string");const d=mt.findKey(i,u);(!d||i[d]===void 0||l===!0||l===void 0&&i[d]!==!1)&&(i[d||c]=xc(s))}const a=(s,c)=>mt.forEach(s,(l,u)=>o(l,u,c));return mt.isPlainObject(t)||t instanceof this.constructor?a(t,r):mt.isString(t)&&(t=t.trim())&&!Qk(t)?a(Wk(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=Ya(t),t){const n=mt.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Jk(i);if(mt.isFunction(r))return r.call(this,i,n);if(mt.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Ya(t),t){const n=mt.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Gh(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(a){if(a=Ya(a),a){const s=mt.findKey(n,a);s&&(!r||Gh(n,n[s],s,r))&&(delete n[s],i=!0)}}return mt.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||Gh(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return mt.forEach(this,(i,o)=>{const a=mt.findKey(n,o);if(a){r[a]=xc(i),delete r[o];return}const s=t?Zk(o):String(o).trim();s!==o&&delete r[o],r[s]=xc(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return mt.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&mt.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(`
|
|
12
|
-
`)}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[r1]=this[r1]={accessors:{}}).accessors,n=this.prototype;function i(o){const a=Ya(o);r[a]||(t4(n,o),r[a]=!0)}return mt.isArray(t)?t.forEach(i):i(t),this}};Sc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),mt.reduceDescriptors(Sc.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),mt.freezeMethods(Sc);const di=Sc;function Vh(e,t){const r=this||zh,n=t||r,i=di.from(n.headers);let o=n.data;return mt.forEach(e,function(a){o=a.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function n1(e){return!!(e&&e.__CANCEL__)}function Xa(e,t,r){Ee.call(this,e??"canceled",Ee.ERR_CANCELED,t,r),this.name="CanceledError"}mt.inherits(Xa,Ee,{__CANCEL__:!0});function e4(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ee("Request failed with status code "+r.status,[Ee.ERR_BAD_REQUEST,Ee.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const r4=Qn.isStandardBrowserEnv?function(){return{write:function(e,t,r,n,i,o){const a=[];a.push(e+"="+encodeURIComponent(t)),mt.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),mt.isString(n)&&a.push("path="+n),mt.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.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 n4(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function i4(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function i1(e,t){return e&&!n4(t)?i4(e,t):t}const o4=Qn.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=mt.isString(i)?n(i):i;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}();function a4(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function s4(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(s){const c=Date.now(),l=n[o];a||(a=c),r[i]=s,n[i]=c;let u=o,d=0;for(;u!==i;)d+=r[u++],u=u%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function o1(e,t){let r=0;const n=s4(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,c=n(s),l=o<=a;r=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&l?(a-o)/c:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const l4=typeof XMLHttpRequest<"u",c4=l4&&function(e){return new Promise(function(t,r){let n=e.data;const i=di.from(e.headers).normalize(),o=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let c;mt.isFormData(n)&&(Qn.isStandardBrowserEnv||Qn.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?mt.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 h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+p))}const u=i1(e.baseURL,e.url);l.open(e.method.toUpperCase(),Qg(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function d(){if(!l)return;const h=di.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:h,config:e,request:l};e4(function(g){t(g),s()},function(g){r(g),s()},p),l=null}if("onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){l&&(r(new Ee("Request aborted",Ee.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new Ee("Network Error",Ee.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||t1;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new Ee(h,p.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,l)),l=null},Qn.isStandardBrowserEnv){const h=(e.withCredentials||o4(u))&&e.xsrfCookieName&&r4.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}n===void 0&&i.setContentType(null),"setRequestHeader"in l&&mt.forEach(i.toJSON(),function(h,p){l.setRequestHeader(p,h)}),mt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",o1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",o1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=h=>{l&&(r(!h||h.type?new Xa(null,e,l):h),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=a4(u);if(f&&Qn.protocols.indexOf(f)===-1){r(new Ee("Unsupported protocol "+f+":",Ee.ERR_BAD_REQUEST,e));return}l.send(n||null)})},Bh={http:Ik,xhr:c4};mt.forEach(Bh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const a1=e=>`- ${e}`,u4=e=>mt.isFunction(e)||e===null||e===!1,s1={getAdapter:e=>{e=mt.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){r=e[o];let a;if(n=r,!u4(r)&&(n=Bh[(a=String(r)).toLowerCase()],n===void 0))throw new Ee(`Unknown adapter '${a}'`);if(n)break;i[a||"#"+o]=n}if(!n){const o=Object.entries(i).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
|
|
13
|
-
`+o.map(a1).join(`
|
|
14
|
-
`):" "+a1(o[0]):"as no adapter specified";throw new Ee("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Bh};function Hh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xa(null,e)}function l1(e){return Hh(e),e.headers=di.from(e.headers),e.data=Vh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),s1.getAdapter(e.adapter||zh.adapter)(e).then(function(t){return Hh(e),t.data=Vh.call(e,e.transformResponse,t),t.headers=di.from(t.headers),t},function(t){return n1(t)||(Hh(e),t&&t.response&&(t.response.data=Vh.call(e,e.transformResponse,t.response),t.response.headers=di.from(t.response.headers))),Promise.reject(t)})}const c1=e=>e instanceof di?e.toJSON():e;function oa(e,t){t=t||{};const r={};function n(l,u,d){return mt.isPlainObject(l)&&mt.isPlainObject(u)?mt.merge.call({caseless:d},l,u):mt.isPlainObject(u)?mt.merge({},u):mt.isArray(u)?u.slice():u}function i(l,u,d){if(mt.isUndefined(u)){if(!mt.isUndefined(l))return n(void 0,l,d)}else return n(l,u,d)}function o(l,u){if(!mt.isUndefined(u))return n(void 0,u)}function a(l,u){if(mt.isUndefined(u)){if(!mt.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function s(l,u,d){if(d in t)return n(l,u);if(d in e)return n(void 0,l)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,u)=>i(c1(l),c1(u),!0)};return mt.forEach(Object.keys(Object.assign({},e,t)),function(l){const u=c[l]||i,d=u(e[l],t[l],l);mt.isUndefined(d)&&u!==s||(r[l]=d)}),r}const u1="1.5.1",qh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const h1={};qh.transitional=function(e,t,r){function n(i,o){return"[Axios v"+u1+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(e===!1)throw new Ee(n(o," has been removed"+(t?" in "+t:"")),Ee.ERR_DEPRECATED);return t&&!h1[o]&&(h1[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,a):!0}};function h4(e,t,r){if(typeof e!="object")throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const s=e[o],c=s===void 0||a(s,o,e);if(c!==!0)throw new Ee("option "+o+" must be "+c,Ee.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ee("Unknown option "+o,Ee.ERR_BAD_OPTION)}}const Kh={assertOptions:h4,validators:qh},Ui=Kh.validators;let $c=class{constructor(t){this.defaults=t,this.interceptors={request:new Zg,response:new Zg}}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&&Kh.assertOptions(n,{silentJSONParsing:Ui.transitional(Ui.boolean),forcedJSONParsing:Ui.transitional(Ui.boolean),clarifyTimeoutError:Ui.transitional(Ui.boolean)},!1),i!=null&&(mt.isFunction(i)?r.paramsSerializer={serialize:i}:Kh.assertOptions(i,{encode:Ui.function,serialize:Ui.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&mt.merge(o.common,o[r.method]);o&&mt.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),r.headers=di.concat(a,o);const s=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!c){const p=[l1.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,l),f=p.length,u=Promise.resolve(r);d<f;)u=u.then(p[d++],p[d++]);return u}f=s.length;let h=r;for(d=0;d<f;){const p=s[d++],g=s[d++];try{h=p(h)}catch(v){g.call(this,v);break}}try{u=l1.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=oa(this.defaults,t);const r=i1(t.baseURL,t.url);return Qg(r,t.params,t.paramsSerializer)}};mt.forEach(["delete","get","head","options"],function(e){$c.prototype[e]=function(t,r){return this.request(oa(r||{},{method:e,url:t,data:(r||{}).data}))}}),mt.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}))}}$c.prototype[e]=t(),$c.prototype[e+"Form"]=t(!0)});const kc=$c;class Yh{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 a=new Promise(s=>{n.subscribe(s),o=s}).then(i);return a.cancel=function(){n.unsubscribe(o)},a},t(function(i,o,a){n.reason||(n.reason=new Xa(i,o,a),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 Yh(function(r){t=r}),cancel:t}}}const d4=Yh;function f4(e){return function(t){return e.apply(null,t)}}function p4(e){return mt.isObject(e)&&e.isAxiosError===!0}const Xh={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(Xh).forEach(([e,t])=>{Xh[t]=e});const m4=Xh;function d1(e){const t=new kc(e),r=Dg(kc.prototype.request,t);return mt.extend(r,kc.prototype,t,{allOwnKeys:!0}),mt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return d1(oa(e,n))},r}const mr=d1(zh);mr.Axios=kc,mr.CanceledError=Xa,mr.CancelToken=d4,mr.isCancel=n1,mr.VERSION=u1,mr.toFormData=wc,mr.AxiosError=Ee,mr.Cancel=mr.CanceledError,mr.all=function(e){return Promise.all(e)},mr.spread=f4,mr.isAxiosError=p4,mr.mergeConfig=oa,mr.AxiosHeaders=di,mr.formToJSON=e=>e1(mt.isHTMLForm(e)?new FormData(e):e),mr.getAdapter=s1.getAdapter,mr.HttpStatusCode=m4,mr.default=mr;var Wh=function(e,t){return Wh=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])},Wh(e,t)};function zi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Jh(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 Wa(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function Ja(e,t,r){if(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 Qh(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 Zh=Qh(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
15
|
-
`+t.map(function(r,n){return n+1+") "+r.toString()}).join(`
|
|
16
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function Ec(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Qa=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 a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Jh(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(g){t={error:g}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(fi(u))try{u()}catch(g){o=g instanceof Zh?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=Jh(d),h=f.next();!h.done;h=f.next()){var p=h.value;try{m1(p)}catch(g){o=o??[],g instanceof Zh?o=Ja(Ja([],Wa(o)),Wa(g.errors)):o.push(g)}}}catch(g){n={error:g}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}if(o)throw new Zh(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)m1(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)&&Ec(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ec(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),f1=Qa.EMPTY;function p1(e){return e instanceof Qa||e&&"closed"in e&&fi(e.remove)&&fi(e.add)&&fi(e.unsubscribe)}function m1(e){fi(e)?e():e.unsubscribe()}var g1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},g4={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Ja([e,t],Wa(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function v4(e){g4.setTimeout(function(){throw e})}function v1(){}function Cc(e){e()}var td=function(e){zi(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,p1(r)&&r.add(n)):n.destination=w4,n}return t.create=function(r,n,i){return new rd(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}(Qa),y4=Function.prototype.bind;function ed(e,t){return y4.call(e,t)}var _4=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){Pc(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Pc(n)}else Pc(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Pc(r)}},e}(),rd=function(e){zi(t,e);function t(r,n,i){var o=e.call(this)||this,a;if(fi(r)||!r)a={next:r??void 0,error:n??void 0,complete:i??void 0};else{var s;o&&g1.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return o.unsubscribe()},a={next:r.next&&ed(r.next,s),error:r.error&&ed(r.error,s),complete:r.complete&&ed(r.complete,s)}):a=r}return o.destination=new _4(a),o}return t}(td);function Pc(e){v4(e)}function b4(e){throw e}var w4={closed:!0,next:v1,error:b4,complete:v1},x4=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function S4(e){return e}function $4(e){return e.length===0?S4:e.length===1?e[0]:function(t){return e.reduce(function(r,n){return n(r)},t)}}var y1=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=E4(t)?t:new rd(t,r,n);return Cc(function(){var a=i,s=a.operator,c=a.source;o.add(s?s.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=_1(r),new r(function(i,o){var a=new rd({next:function(s){try{t(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:i});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[x4]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return $4(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=_1(t),new t(function(n,i){var o;r.subscribe(function(a){return o=a},function(a){return i(a)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function _1(e){var t;return(t=e??g1.Promise)!==null&&t!==void 0?t:Promise}function k4(e){return e&&fi(e.next)&&fi(e.error)&&fi(e.complete)}function E4(e){return e&&e instanceof td||k4(e)&&p1(e)}(function(e){zi(t,e);function t(r,n,i,o,a,s){var c=e.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,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})(td);var C4=Qh(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),P4=function(e){zi(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 b1(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new C4},t.prototype.next=function(r){var n=this;Cc(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=Jh(n.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(r)}}catch(l){i={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Cc(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;Cc(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,a=i.isStopped,s=i.observers;return o||a?f1:(this.currentObservers=null,s.push(r),new Qa(function(){n.currentObservers=null,Ec(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,a=n.isStopped;i?r.error(o):a&&r.complete()},t.prototype.asObservable=function(){var r=new y1;return r.source=this,r},t.create=function(r,n){return new b1(r,n)},t}(y1),b1=function(e){zi(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:f1},t}(P4),T4={now:function(){return Date.now()},delegate:void 0},O4=function(e){zi(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(Qa),nd={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=nd.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,Ja([e,t],Wa(r))):setInterval.apply(void 0,Ja([e,t],Wa(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},A4=function(e){zi(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,a=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(a,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(a,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),nd.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&&nd.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(a){i=!0,o=a||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,Ec(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(O4),w1=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=T4.now,e}(),N4=function(e){zi(t,e);function t(r,n){n===void 0&&(n=w1.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}(w1);new N4(A4);function R4(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 x1=Qh(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=R4(r)}catch{i=r.responseText}this.response=i}});(function(){function e(t,r){return x1.call(this,"ajax timeout",t,r),this.name="AjaxTimeoutError",this}return e.prototype=Object.create(x1.prototype),e})();var j4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lt(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 id={exports:{}},aa=typeof Reflect=="object"?Reflect:null,S1=aa&&typeof aa.apply=="function"?aa.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},Tc;aa&&typeof aa.ownKeys=="function"?Tc=aa.ownKeys:Object.getOwnPropertySymbols?Tc=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Tc=function(e){return Object.getOwnPropertyNames(e)};function I4(e){console&&console.warn&&console.warn(e)}var $1=Number.isNaN||function(e){return e!==e};function ze(){ze.init.call(this)}id.exports=ze,id.exports.once=L4,ze.EventEmitter=ze,ze.prototype._events=void 0,ze.prototype._eventsCount=0,ze.prototype._maxListeners=void 0;var k1=10;function Oc(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(ze,"defaultMaxListeners",{enumerable:!0,get:function(){return k1},set:function(e){if(typeof e!="number"||e<0||$1(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");k1=e}}),ze.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},ze.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||$1(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 E1(e){return e._maxListeners===void 0?ze.defaultMaxListeners:e._maxListeners}ze.prototype.getMaxListeners=function(){return E1(this)},ze.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 a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")S1(s,this,t);else for(var c=s.length,l=A1(s,c),r=0;r<c;++r)S1(l[r],this,t);return!0};function C1(e,t,r,n){var i,o,a;if(Oc(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),a=o[t]),a===void 0)a=o[t]=r,++e._eventsCount;else if(typeof a=="function"?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),i=E1(e),i>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,I4(s)}return e}ze.prototype.addListener=function(e,t){return C1(this,e,t,!1)},ze.prototype.on=ze.prototype.addListener,ze.prototype.prependListener=function(e,t){return C1(this,e,t,!0)};function D4(){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 P1(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=D4.bind(n);return i.listener=r,n.wrapFn=i,i}ze.prototype.once=function(e,t){return Oc(t),this.on(e,P1(this,e,t)),this},ze.prototype.prependOnceListener=function(e,t){return Oc(t),this.prependListener(e,P1(this,e,t)),this},ze.prototype.removeListener=function(e,t){var r,n,i,o,a;if(Oc(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){a=r[o].listener,i=o;break}if(i<0)return this;i===0?r.shift():F4(r,i),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,a||t)}return this},ze.prototype.off=ze.prototype.removeListener,ze.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 T1(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?M4(i):A1(i,i.length)}ze.prototype.listeners=function(e){return T1(this,e,!0)},ze.prototype.rawListeners=function(e){return T1(this,e,!1)},ze.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):O1.call(e,t)},ze.prototype.listenerCount=O1;function O1(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}ze.prototype.eventNames=function(){return this._eventsCount>0?Tc(this._events):[]};function A1(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function F4(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function M4(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function L4(e,t){return new Promise(function(r,n){function i(a){e.removeListener(t,o),n(a)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}N1(e,t,o,{once:!0}),t!=="error"&&U4(e,i,{once:!0})})}function U4(e,t,r){typeof e.on=="function"&&N1(e,"error",t,r)}function N1(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 z4=id.exports;class HY extends z4.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 R1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function G4(e,t={}){var r=1,n=1;function i(at){var X=at.match(/\n/g);X&&(r+=X.length);var T=at.lastIndexOf(`
|
|
17
|
-
`);n=~T?at.length-T:n+at.length}function o(){var at={line:r,column:n};return function(X){return X.position=new a(at),p(),X}}function a(at){this.start=at,this.end={line:r,column:n},this.source=t.source}a.prototype.content=e;var s=[];function c(at){var X=new Error(t.source+":"+r+":"+n+": "+at);if(X.reason=at,X.filename=t.source,X.line=r,X.column=n,X.source=e,t.silent)s.push(X);else throw X}function l(){var at=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:at,parsingErrors:s}}}function u(){return h(/^{\s*/)}function d(){return h(/^}/)}function f(){var at,X=[];for(p(),g(X);e.length&&e.charAt(0)!="}"&&(at=Ct()||$t());)at!==!1&&(X.push(at),g(X));return X}function h(at){var X=at.exec(e);if(X){var T=X[0];return i(T),e=e.slice(T.length),X}}function p(){h(/^\s*/)}function g(at){var X;for(at=at||[];X=v();)X!==!1&&at.push(X);return at}function v(){var at=o();if(!(e.charAt(0)!="/"||e.charAt(1)!="*")){for(var X=2;e.charAt(X)!=""&&(e.charAt(X)!="*"||e.charAt(X+1)!="/");)++X;if(X+=2,e.charAt(X-1)==="")return c("End of comment missing");var T=e.slice(2,X-2);return n+=2,i(T),e=e.slice(X),n+=2,at({type:"comment",comment:T})}}function _(){var at=h(/^([^{]+)/);if(at)return pi(at[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(X){return X.replace(/,/g,"")}).split(/\s*(?![^(]*\)),\s*/).map(function(X){return X.replace(/\u200C/g,",")})}function y(){var at=o(),X=h(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(X){if(X=pi(X[0]),!h(/^:\s*/))return c("property missing ':'");var T=h(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),E=at({type:"declaration",property:X.replace(R1,""),value:T?pi(T[0]).replace(R1,""):""});return h(/^[;\s]*/),E}}function m(){var at=[];if(!u())return c("missing '{'");g(at);for(var X;X=y();)X!==!1&&(at.push(X),g(at));return d()?at:c("missing '}'")}function x(){for(var at,X=[],T=o();at=h(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)X.push(at[1]),h(/^,\s*/);if(X.length)return T({type:"keyframe",values:X,declarations:m()})}function N(){var at=o(),X=h(/^@([-\w]+)?keyframes\s*/);if(X){var T=X[1];if(X=h(/^([-\w]+)\s*/),!X)return c("@keyframes missing name");var E=X[1];if(!u())return c("@keyframes missing '{'");for(var k,b=g();k=x();)b.push(k),b=b.concat(g());return d()?at({type:"keyframes",name:E,vendor:T,keyframes:b}):c("@keyframes missing '}'")}}function $(){var at=o(),X=h(/^@supports *([^{]+)/);if(X){var T=pi(X[1]);if(!u())return c("@supports missing '{'");var E=g().concat(f());return d()?at({type:"supports",supports:T,rules:E}):c("@supports missing '}'")}}function A(){var at=o(),X=h(/^@host\s*/);if(X){if(!u())return c("@host missing '{'");var T=g().concat(f());return d()?at({type:"host",rules:T}):c("@host missing '}'")}}function R(){var at=o(),X=h(/^@media *([^{]+)/);if(X){var T=pi(X[1]);if(!u())return c("@media missing '{'");var E=g().concat(f());return d()?at({type:"media",media:T,rules:E}):c("@media missing '}'")}}function G(){var at=o(),X=h(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(X)return at({type:"custom-media",name:pi(X[1]),media:pi(X[2])})}function H(){var at=o(),X=h(/^@page */);if(X){var T=_()||[];if(!u())return c("@page missing '{'");for(var E=g(),k;k=y();)E.push(k),E=E.concat(g());return d()?at({type:"page",selectors:T,declarations:E}):c("@page missing '}'")}}function Y(){var at=o(),X=h(/^@([-\w]+)?document *([^{]+)/);if(X){var T=pi(X[1]),E=pi(X[2]);if(!u())return c("@document missing '{'");var k=g().concat(f());return d()?at({type:"document",document:E,vendor:T,rules:k}):c("@document missing '}'")}}function J(){var at=o(),X=h(/^@font-face\s*/);if(X){if(!u())return c("@font-face missing '{'");for(var T=g(),E;E=y();)T.push(E),T=T.concat(g());return d()?at({type:"font-face",declarations:T}):c("@font-face missing '}'")}}var nt=xt("import"),rt=xt("charset"),lt=xt("namespace");function xt(at){var X=new RegExp("^@"+at+"\\s*([^;]+);");return function(){var T=o(),E=h(X);if(E){var k={type:at};return k[at]=E[1].trim(),T(k)}}}function Ct(){if(e[0]=="@")return N()||R()||G()||$()||nt()||rt()||lt()||Y()||H()||A()||J()}function $t(){var at=o(),X=_();return X?(g(),at({type:"rule",selectors:X,declarations:m()})):c("selector missing")}return od(l())}function pi(e){return e?e.replace(/^\s+|\s+$/g,""):""}function od(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(a){od(a,n)}):o&&typeof o=="object"&&od(o,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var ad={exports:{}},sd={},mi={},yo={},ld={},cd={},ud={};(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(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((m,x)=>`${m}${x}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((m,x)=>(x instanceof r&&(m[x.str]=(m[x.str]||0)+1),m),{})}}e._Code=n,e.nil=new n("");function i(_,...y){const m=[_[0]];let x=0;for(;x<y.length;)s(m,y[x]),m.push(_[++x]);return new n(m)}e._=i;const o=new n("+");function a(_,...y){const m=[h(_[0])];let x=0;for(;x<y.length;)m.push(o),s(m,y[x]),m.push(o,h(_[++x]));return c(m),new n(m)}e.str=a;function s(_,y){y instanceof n?_.push(...y._items):y instanceof r?_.push(y):_.push(d(y))}e.addCodeArg=s;function c(_){let y=1;for(;y<_.length-1;){if(_[y]===o){const m=l(_[y-1],_[y+1]);if(m!==void 0){_.splice(y-1,3,m);continue}_[y++]="+"}y++}}function l(_,y){if(y==='""')return _;if(_==='""')return y;if(typeof _=="string")return y instanceof r||_[_.length-1]!=='"'?void 0:typeof y!="string"?`${_.slice(0,-1)}${y}"`:y[0]==='"'?_.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(_ instanceof r))return`"${_}${y.slice(1)}`}function u(_,y){return y.emptyStr()?_:_.emptyStr()?y:a`${_}${y}`}e.strConcat=u;function d(_){return typeof _=="number"||typeof _=="boolean"||_===null?_:h(Array.isArray(_)?_.join(","):_)}function f(_){return new n(h(_))}e.stringify=f;function h(_){return JSON.stringify(_).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function p(_){return typeof _=="string"&&e.IDENTIFIER.test(_)?new n(`.${_}`):i`[${_}]`}e.getProperty=p;function g(_){if(typeof _=="string"&&e.IDENTIFIER.test(_))return new n(`${_}`);throw new Error(`CodeGen: invalid export name: ${_}, use explicit $id name mapping`)}e.getEsmExportName=g;function v(_){return new n(_.toString())}e.regexpCode=v})(ud);const V4=Xr(ud),B4=Mt({__proto__:null,default:V4},[ud]),Za=Lt(B4);var hd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Za;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,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.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:d}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${d}]`}}e.ValueScopeName=o;const a=(0,t._)`\n`;class s extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?a:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(l),{prefix:h}=f,p=(d=u.key)!==null&&d!==void 0?d:u.ref;let g=this._values[h];if(g){const y=g.get(p);if(y)return y}else g=this._values[h]=new Map;g.set(p,f);const v=this._scope[h]||(this._scope[h]=[]),_=v.length;return v[_]=u.ref,f.setValue(u,{property:h,itemIndex:_}),f}getValue(l,u){const d=this._values[l];if(d)return d.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${l}${d.scopePath}`})}scopeCode(l=this._values,u,d){return this._reduceValues(l,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,d)}_reduceValues(l,u,d={},f){let h=t.nil;for(const p in l){const g=l[p];if(!g)continue;const v=d[p]=d[p]||new Map;g.forEach(_=>{if(v.has(_))return;v.set(_,n.Started);let y=u(_);if(y){const m=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${m} ${_} = ${y};${this.opts._n}`}else if(y=f==null?void 0:f(_))h=(0,t._)`${h}${y}${this.opts._n}`;else throw new r(_);v.set(_,n.Completed)})}return h}}e.ValueScope=s})(hd);const H4=Xr(hd),q4=Mt({__proto__:null,default:H4},[hd]),j1=Lt(q4);(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=Za,r=j1;var n=Za;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=j1;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(b,C){return this}}class a extends o{constructor(b,C,L){super(),this.varKind=b,this.name=C,this.rhs=L}render({es5:b,_n:C}){const L=b?r.varKinds.var:this.varKind,D=this.rhs===void 0?"":` = ${this.rhs}`;return`${L} ${this.name}${D};`+C}optimizeNames(b,C){if(b[this.name.str])return this.rhs&&(this.rhs=rt(this.rhs,b,C)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends o{constructor(b,C,L){super(),this.lhs=b,this.rhs=C,this.sideEffects=L}render({_n:b}){return`${this.lhs} = ${this.rhs};`+b}optimizeNames(b,C){if(!(this.lhs instanceof t.Name&&!b[this.lhs.str]&&!this.sideEffects))return this.rhs=rt(this.rhs,b,C),this}get names(){const b=this.lhs instanceof t.Name?{}:{...this.lhs.names};return nt(b,this.rhs)}}class c extends s{constructor(b,C,L,D){super(b,L,D),this.op=C}render({_n:b}){return`${this.lhs} ${this.op}= ${this.rhs};`+b}}class l extends o{constructor(b){super(),this.label=b,this.names={}}render({_n:b}){return`${this.label}:`+b}}class u extends o{constructor(b){super(),this.label=b,this.names={}}render({_n:b}){return`break${this.label?` ${this.label}`:""};`+b}}class d extends o{constructor(b){super(),this.error=b}render({_n:b}){return`throw ${this.error};`+b}get names(){return this.error.names}}class f extends o{constructor(b){super(),this.code=b}render({_n:b}){return`${this.code};`+b}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(b,C){return this.code=rt(this.code,b,C),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends o{constructor(b=[]){super(),this.nodes=b}render(b){return this.nodes.reduce((C,L)=>C+L.render(b),"")}optimizeNodes(){const{nodes:b}=this;let C=b.length;for(;C--;){const L=b[C].optimizeNodes();Array.isArray(L)?b.splice(C,1,...L):L?b[C]=L:b.splice(C,1)}return b.length>0?this:void 0}optimizeNames(b,C){const{nodes:L}=this;let D=L.length;for(;D--;){const V=L[D];V.optimizeNames(b,C)||(lt(b,V.names),L.splice(D,1))}return L.length>0?this:void 0}get names(){return this.nodes.reduce((b,C)=>J(b,C.names),{})}}class p extends h{render(b){return"{"+b._n+super.render(b)+"}"+b._n}}class g extends h{}class v extends p{}v.kind="else";class _ extends p{constructor(b,C){super(C),this.condition=b}render(b){let C=`if(${this.condition})`+super.render(b);return this.else&&(C+="else "+this.else.render(b)),C}optimizeNodes(){super.optimizeNodes();const b=this.condition;if(b===!0)return this.nodes;let C=this.else;if(C){const L=C.optimizeNodes();C=this.else=Array.isArray(L)?new v(L):L}if(C)return b===!1?C instanceof _?C:C.nodes:this.nodes.length?this:new _(xt(b),C instanceof _?[C]:C.nodes);if(!(b===!1||!this.nodes.length))return this}optimizeNames(b,C){var L;if(this.else=(L=this.else)===null||L===void 0?void 0:L.optimizeNames(b,C),!!(super.optimizeNames(b,C)||this.else))return this.condition=rt(this.condition,b,C),this}get names(){const b=super.names;return nt(b,this.condition),this.else&&J(b,this.else.names),b}}_.kind="if";class y extends p{}y.kind="for";class m extends y{constructor(b){super(),this.iteration=b}render(b){return`for(${this.iteration})`+super.render(b)}optimizeNames(b,C){if(super.optimizeNames(b,C))return this.iteration=rt(this.iteration,b,C),this}get names(){return J(super.names,this.iteration.names)}}class x extends y{constructor(b,C,L,D){super(),this.varKind=b,this.name=C,this.from=L,this.to=D}render(b){const C=b.es5?r.varKinds.var:this.varKind,{name:L,from:D,to:V}=this;return`for(${C} ${L}=${D}; ${L}<${V}; ${L}++)`+super.render(b)}get names(){const b=nt(super.names,this.from);return nt(b,this.to)}}class N extends y{constructor(b,C,L,D){super(),this.loop=b,this.varKind=C,this.name=L,this.iterable=D}render(b){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(b)}optimizeNames(b,C){if(super.optimizeNames(b,C))return this.iterable=rt(this.iterable,b,C),this}get names(){return J(super.names,this.iterable.names)}}class $ extends p{constructor(b,C,L){super(),this.name=b,this.args=C,this.async=L}render(b){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(b)}}$.kind="func";class A extends h{render(b){return"return "+super.render(b)}}A.kind="return";class R extends p{render(b){let C="try"+super.render(b);return this.catch&&(C+=this.catch.render(b)),this.finally&&(C+=this.finally.render(b)),C}optimizeNodes(){var b,C;return super.optimizeNodes(),(b=this.catch)===null||b===void 0||b.optimizeNodes(),(C=this.finally)===null||C===void 0||C.optimizeNodes(),this}optimizeNames(b,C){var L,D;return super.optimizeNames(b,C),(L=this.catch)===null||L===void 0||L.optimizeNames(b,C),(D=this.finally)===null||D===void 0||D.optimizeNames(b,C),this}get names(){const b=super.names;return this.catch&&J(b,this.catch.names),this.finally&&J(b,this.finally.names),b}}class G extends p{constructor(b){super(),this.error=b}render(b){return`catch(${this.error})`+super.render(b)}}G.kind="catch";class H extends p{render(b){return"finally"+super.render(b)}}H.kind="finally";class Y{constructor(b,C={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...C,_n:C.lines?`
|
|
18
|
-
`:""},this._extScope=b,this._scope=new r.Scope({parent:b}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(b){return this._scope.name(b)}scopeName(b){return this._extScope.name(b)}scopeValue(b,C){const L=this._extScope.value(b,C);return(this._values[L.prefix]||(this._values[L.prefix]=new Set)).add(L),L}getScopeValue(b,C){return this._extScope.getValue(b,C)}scopeRefs(b){return this._extScope.scopeRefs(b,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(b,C,L,D){const V=this._scope.toName(C);return L!==void 0&&D&&(this._constants[V.str]=L),this._leafNode(new a(b,V,L)),V}const(b,C,L){return this._def(r.varKinds.const,b,C,L)}let(b,C,L){return this._def(r.varKinds.let,b,C,L)}var(b,C,L){return this._def(r.varKinds.var,b,C,L)}assign(b,C,L){return this._leafNode(new s(b,C,L))}add(b,C){return this._leafNode(new c(b,e.operators.ADD,C))}code(b){return typeof b=="function"?b():b!==t.nil&&this._leafNode(new f(b)),this}object(...b){const C=["{"];for(const[L,D]of b)C.length>1&&C.push(","),C.push(L),(L!==D||this.opts.es5)&&(C.push(":"),(0,t.addCodeArg)(C,D));return C.push("}"),new t._Code(C)}if(b,C,L){if(this._blockNode(new _(b)),C&&L)this.code(C).else().code(L).endIf();else if(C)this.code(C).endIf();else if(L)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(b){return this._elseNode(new _(b))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(_,v)}_for(b,C){return this._blockNode(b),C&&this.code(C).endFor(),this}for(b,C){return this._for(new m(b),C)}forRange(b,C,L,D,V=this.opts.es5?r.varKinds.var:r.varKinds.let){const K=this._scope.toName(b);return this._for(new x(V,K,C,L),()=>D(K))}forOf(b,C,L,D=r.varKinds.const){const V=this._scope.toName(b);if(this.opts.es5){const K=C instanceof t.Name?C:this.var("_arr",C);return this.forRange("_i",0,(0,t._)`${K}.length`,et=>{this.var(V,(0,t._)`${K}[${et}]`),L(V)})}return this._for(new N("of",D,V,C),()=>L(V))}forIn(b,C,L,D=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(b,(0,t._)`Object.keys(${C})`,L);const V=this._scope.toName(b);return this._for(new N("in",D,V,C),()=>L(V))}endFor(){return this._endBlockNode(y)}label(b){return this._leafNode(new l(b))}break(b){return this._leafNode(new u(b))}return(b){const C=new A;if(this._blockNode(C),this.code(b),C.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(A)}try(b,C,L){if(!C&&!L)throw new Error('CodeGen: "try" without "catch" and "finally"');const D=new R;if(this._blockNode(D),this.code(b),C){const V=this.name("e");this._currNode=D.catch=new G(V),C(V)}return L&&(this._currNode=D.finally=new H,this.code(L)),this._endBlockNode(G,H)}throw(b){return this._leafNode(new d(b))}block(b,C){return this._blockStarts.push(this._nodes.length),b&&this.code(b).endBlock(C),this}endBlock(b){const C=this._blockStarts.pop();if(C===void 0)throw new Error("CodeGen: not in self-balancing block");const L=this._nodes.length-C;if(L<0||b!==void 0&&L!==b)throw new Error(`CodeGen: wrong number of nodes: ${L} vs ${b} expected`);return this._nodes.length=C,this}func(b,C=t.nil,L,D){return this._blockNode(new $(b,C,L)),D&&this.code(D).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(b=1){for(;b-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(b){return this._currNode.nodes.push(b),this}_blockNode(b){this._currNode.nodes.push(b),this._nodes.push(b)}_endBlockNode(b,C){const L=this._currNode;if(L instanceof b||C&&L instanceof C)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${C?`${b.kind}/${C.kind}`:b.kind}"`)}_elseNode(b){const C=this._currNode;if(!(C instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=C.else=b,this}get _root(){return this._nodes[0]}get _currNode(){const b=this._nodes;return b[b.length-1]}set _currNode(b){const C=this._nodes;C[C.length-1]=b}}e.CodeGen=Y;function J(k,b){for(const C in b)k[C]=(k[C]||0)+(b[C]||0);return k}function nt(k,b){return b instanceof t._CodeOrName?J(k,b.names):k}function rt(k,b,C){if(k instanceof t.Name)return L(k);if(!D(k))return k;return new t._Code(k._items.reduce((V,K)=>(K instanceof t.Name&&(K=L(K)),K instanceof t._Code?V.push(...K._items):V.push(K),V),[]));function L(V){const K=C[V.str];return K===void 0||b[V.str]!==1?V:(delete b[V.str],K)}function D(V){return V instanceof t._Code&&V._items.some(K=>K instanceof t.Name&&b[K.str]===1&&C[K.str]!==void 0)}}function lt(k,b){for(const C in b)k[C]=(k[C]||0)-(b[C]||0)}function xt(k){return typeof k=="boolean"||typeof k=="number"||k===null?!k:(0,t._)`!${E(k)}`}e.not=xt;const Ct=T(e.operators.AND);function $t(...k){return k.reduce(Ct)}e.and=$t;const at=T(e.operators.OR);function X(...k){return k.reduce(at)}e.or=X;function T(k){return(b,C)=>b===t.nil?C:C===t.nil?b:(0,t._)`${E(b)} ${k} ${E(C)}`}function E(k){return k instanceof t.Name?k:(0,t._)`(${k})`}})(cd);const K4=Xr(cd),Y4=Mt({__proto__:null,default:K4},[cd]),me=Lt(Y4);var dd={};(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=me,r=Za;function n($){const A={};for(const R of $)A[R]=!0;return A}e.toHash=n;function i($,A){return typeof A=="boolean"?A:Object.keys(A).length===0?!0:(o($,A),!a(A,$.self.RULES.all))}e.alwaysValidSchema=i;function o($,A=$.schema){const{opts:R,self:G}=$;if(!R.strictSchema||typeof A=="boolean")return;const H=G.RULES.keywords;for(const Y in A)H[Y]||N($,`unknown keyword: "${Y}"`)}e.checkUnknownRules=o;function a($,A){if(typeof $=="boolean")return!$;for(const R in $)if(A[R])return!0;return!1}e.schemaHasRules=a;function s($,A){if(typeof $=="boolean")return!$;for(const R in $)if(R!=="$ref"&&A.all[R])return!0;return!1}e.schemaHasRulesButRef=s;function c({topSchemaRef:$,schemaPath:A},R,G,H){if(!H){if(typeof R=="number"||typeof R=="boolean")return R;if(typeof R=="string")return(0,t._)`${R}`}return(0,t._)`${$}${A}${(0,t.getProperty)(G)}`}e.schemaRefOrVal=c;function l($){return f(decodeURIComponent($))}e.unescapeFragment=l;function u($){return encodeURIComponent(d($))}e.escapeFragment=u;function d($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function f($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function h($,A){if(Array.isArray($))for(const R of $)A(R);else A($)}e.eachItem=h;function p({mergeNames:$,mergeToName:A,mergeValues:R,resultToName:G}){return(H,Y,J,nt)=>{const rt=J===void 0?Y:J instanceof t.Name?(Y instanceof t.Name?$(H,Y,J):A(H,Y,J),J):Y instanceof t.Name?(A(H,J,Y),Y):R(Y,J);return nt===t.Name&&!(rt instanceof t.Name)?G(H,rt):rt}}e.mergeEvaluated={props:p({mergeNames:($,A,R)=>$.if((0,t._)`${R} !== true && ${A} !== undefined`,()=>{$.if((0,t._)`${A} === true`,()=>$.assign(R,!0),()=>$.assign(R,(0,t._)`${R} || {}`).code((0,t._)`Object.assign(${R}, ${A})`))}),mergeToName:($,A,R)=>$.if((0,t._)`${R} !== true`,()=>{A===!0?$.assign(R,!0):($.assign(R,(0,t._)`${R} || {}`),v($,R,A))}),mergeValues:($,A)=>$===!0?!0:{...$,...A},resultToName:g}),items:p({mergeNames:($,A,R)=>$.if((0,t._)`${R} !== true && ${A} !== undefined`,()=>$.assign(R,(0,t._)`${A} === true ? true : ${R} > ${A} ? ${R} : ${A}`)),mergeToName:($,A,R)=>$.if((0,t._)`${R} !== true`,()=>$.assign(R,A===!0?!0:(0,t._)`${R} > ${A} ? ${R} : ${A}`)),mergeValues:($,A)=>$===!0?!0:Math.max($,A),resultToName:($,A)=>$.var("items",A)})};function g($,A){if(A===!0)return $.var("props",!0);const R=$.var("props",(0,t._)`{}`);return A!==void 0&&v($,R,A),R}e.evaluatedPropsToName=g;function v($,A,R){Object.keys(R).forEach(G=>$.assign((0,t._)`${A}${(0,t.getProperty)(G)}`,!0))}e.setEvaluated=v;const _={};function y($,A){return $.scopeValue("func",{ref:A,code:_[A.code]||(_[A.code]=new r._Code(A.code))})}e.useFunc=y;var m;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(m=e.Type||(e.Type={}));function x($,A,R){if($ instanceof t.Name){const G=A===m.Num;return R?G?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:G?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return R?(0,t.getProperty)($).toString():"/"+d($)}e.getErrorPath=x;function N($,A,R=$.opts.strictSchema){if(R){if(A=`strict mode: ${A}`,R===!0)throw new Error(A);$.self.logger.warn(A)}}e.checkStrictMode=N})(dd);const X4=Xr(dd),W4=Mt({__proto__:null,default:X4},[dd]),Ae=Lt(W4);var fd={};Object.defineProperty(fd,"__esModule",{value:!0});const Ar=me,J4={data:new Ar.Name("data"),valCxt:new Ar.Name("valCxt"),instancePath:new Ar.Name("instancePath"),parentData:new Ar.Name("parentData"),parentDataProperty:new Ar.Name("parentDataProperty"),rootData:new Ar.Name("rootData"),dynamicAnchors:new Ar.Name("dynamicAnchors"),vErrors:new Ar.Name("vErrors"),errors:new Ar.Name("errors"),this:new Ar.Name("this"),self:new Ar.Name("self"),scope:new Ar.Name("scope"),json:new Ar.Name("json"),jsonPos:new Ar.Name("jsonPos"),jsonLen:new Ar.Name("jsonLen"),jsonPart:new Ar.Name("jsonPart")};var Q4=fd.default=J4;const Z4=Mt({__proto__:null,default:Q4},[fd]),gi=Lt(Z4);(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=me,r=Ae,n=gi;e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:_})=>_?(0,t.str)`"${v}" keyword must be ${_} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,_=e.keywordError,y,m){const{it:x}=v,{gen:N,compositeRule:$,allErrors:A}=x,R=d(v,_,y);m??($||A)?c(N,R):l(x,(0,t._)`[${R}]`)}e.reportError=i;function o(v,_=e.keywordError,y){const{it:m}=v,{gen:x,compositeRule:N,allErrors:$}=m,A=d(v,_,y);c(x,A),N||$||l(m,n.default.vErrors)}e.reportExtraError=o;function a(v,_){v.assign(n.default.errors,_),v.if((0,t._)`${n.default.vErrors} !== null`,()=>v.if(_,()=>v.assign((0,t._)`${n.default.vErrors}.length`,_),()=>v.assign(n.default.vErrors,null)))}e.resetErrorsCount=a;function s({gen:v,keyword:_,schemaValue:y,data:m,errsCount:x,it:N}){if(x===void 0)throw new Error("ajv implementation error");const $=v.name("err");v.forRange("i",x,n.default.errors,A=>{v.const($,(0,t._)`${n.default.vErrors}[${A}]`),v.if((0,t._)`${$}.instancePath === undefined`,()=>v.assign((0,t._)`${$}.instancePath`,(0,t.strConcat)(n.default.instancePath,N.errorPath))),v.assign((0,t._)`${$}.schemaPath`,(0,t.str)`${N.errSchemaPath}/${_}`),N.opts.verbose&&(v.assign((0,t._)`${$}.schema`,y),v.assign((0,t._)`${$}.data`,m))})}e.extendErrors=s;function c(v,_){const y=v.const("err",_);v.if((0,t._)`${n.default.vErrors} === null`,()=>v.assign(n.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${n.default.vErrors}.push(${y})`),v.code((0,t._)`${n.default.errors}++`)}function l(v,_){const{gen:y,validateName:m,schemaEnv:x}=v;x.$async?y.throw((0,t._)`new ${v.ValidationError}(${_})`):(y.assign((0,t._)`${m}.errors`,_),y.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 d(v,_,y){const{createErrors:m}=v.it;return m===!1?(0,t._)`{}`:f(v,_,y)}function f(v,_,y={}){const{gen:m,it:x}=v,N=[h(x,y),p(v,y)];return g(v,_,N),m.object(...N)}function h({errorPath:v},{instancePath:_}){const y=_?(0,t.str)`${v}${(0,r.getErrorPath)(_,r.Type.Str)}`:v;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,y)]}function p({keyword:v,it:{errSchemaPath:_}},{schemaPath:y,parentSchema:m}){let x=m?_:(0,t.str)`${_}/${v}`;return y&&(x=(0,t.str)`${x}${(0,r.getErrorPath)(y,r.Type.Str)}`),[u.schemaPath,x]}function g(v,{params:_,message:y},m){const{keyword:x,data:N,schemaValue:$,it:A}=v,{opts:R,propertyName:G,topSchemaRef:H,schemaPath:Y}=A;m.push([u.keyword,x],[u.params,typeof _=="function"?_(v):_||(0,t._)`{}`]),R.messages&&m.push([u.message,typeof y=="function"?y(v):y]),R.verbose&&m.push([u.schema,$],[u.parentSchema,(0,t._)`${H}${Y}`],[n.default.data,N]),G&&m.push([u.propertyName,G])}})(ld);const tE=Xr(ld),eE=Mt({__proto__:null,default:tE},[ld]),ts=Lt(eE);Object.defineProperty(yo,"__esModule",{value:!0});var I1=yo.boolOrEmptySchema=D1=yo.topBoolOrEmptySchema=void 0;const rE=ts,nE=me,iE=gi,oE={message:"boolean schema is false"};function aE(e){const{gen:t,schema:r,validateName:n}=e;r===!1?F1(e,!1):typeof r=="object"&&r.$async===!0?t.return(iE.default.data):(t.assign((0,nE._)`${n}.errors`,null),t.return(!0))}var D1=yo.topBoolOrEmptySchema=aE;function sE(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),F1(e)):r.var(t,!0)}I1=yo.boolOrEmptySchema=sE;function F1(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,rE.reportError)(i,oE,void 0,t)}const lE=Mt({__proto__:null,get boolOrEmptySchema(){return I1},default:yo,get topBoolOrEmptySchema(){return D1}},[yo]),cE=Lt(lE);var pd={},_o={};Object.defineProperty(_o,"__esModule",{value:!0});var M1=_o.getRules=L1=_o.isJSONType=void 0;const uE=["string","number","integer","boolean","null","object","array"],hE=new Set(uE);function dE(e){return typeof e=="string"&&hE.has(e)}var L1=_o.isJSONType=dE;function fE(){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:{}}}M1=_o.getRules=fE;const pE=Mt({__proto__:null,default:_o,get getRules(){return M1},get isJSONType(){return L1}},[_o]),U1=Lt(pE);var vi={};Object.defineProperty(vi,"__esModule",{value:!0});var z1=vi.shouldUseRule=B1=vi.shouldUseGroup=G1=vi.schemaHasRulesForType=void 0;function mE({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&V1(e,n)}var G1=vi.schemaHasRulesForType=mE;function V1(e,t){return t.rules.some(r=>H1(e,r))}var B1=vi.shouldUseGroup=V1;function H1(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))}z1=vi.shouldUseRule=H1;const gE=Mt({__proto__:null,default:vi,get schemaHasRulesForType(){return G1},get shouldUseGroup(){return B1},get shouldUseRule(){return z1}},[vi]),q1=Lt(gE);(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=U1,r=q1,n=ts,i=me,o=Ae;var a;(function(m){m[m.Correct=0]="Correct",m[m.Wrong=1]="Wrong"})(a=e.DataType||(e.DataType={}));function s(m){const x=c(m.type);if(x.includes("null")){if(m.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!x.length&&m.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');m.nullable===!0&&x.push("null")}return x}e.getSchemaTypes=s;function c(m){const x=Array.isArray(m)?m:m?[m]:[];if(x.every(t.isJSONType))return x;throw new Error("type must be JSONType or JSONType[]: "+x.join(","))}e.getJSONTypes=c;function l(m,x){const{gen:N,data:$,opts:A}=m,R=d(x,A.coerceTypes),G=x.length>0&&!(R.length===0&&x.length===1&&(0,r.schemaHasRulesForType)(m,x[0]));if(G){const H=g(x,$,A.strictNumbers,a.Wrong);N.if(H,()=>{R.length?f(m,x,R):_(m)})}return G}e.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function d(m,x){return x?m.filter(N=>u.has(N)||x==="array"&&N==="array"):[]}function f(m,x,N){const{gen:$,data:A,opts:R}=m,G=$.let("dataType",(0,i._)`typeof ${A}`),H=$.let("coerced",(0,i._)`undefined`);R.coerceTypes==="array"&&$.if((0,i._)`${G} == 'object' && Array.isArray(${A}) && ${A}.length == 1`,()=>$.assign(A,(0,i._)`${A}[0]`).assign(G,(0,i._)`typeof ${A}`).if(g(x,A,R.strictNumbers),()=>$.assign(H,A))),$.if((0,i._)`${H} !== undefined`);for(const J of N)(u.has(J)||J==="array"&&R.coerceTypes==="array")&&Y(J);$.else(),_(m),$.endIf(),$.if((0,i._)`${H} !== undefined`,()=>{$.assign(A,H),h(m,H)});function Y(J){switch(J){case"string":$.elseIf((0,i._)`${G} == "number" || ${G} == "boolean"`).assign(H,(0,i._)`"" + ${A}`).elseIf((0,i._)`${A} === null`).assign(H,(0,i._)`""`);return;case"number":$.elseIf((0,i._)`${G} == "boolean" || ${A} === null
|
|
19
|
-
|| (${G} == "string" && ${A} && ${A} == +${A})`).assign(H,(0,i._)`+${A}`);return;case"integer":$.elseIf((0,i._)`${G} === "boolean" || ${A} === null
|
|
20
|
-
|| (${G} === "string" && ${A} && ${A} == +${A} && !(${A} % 1))`).assign(H,(0,i._)`+${A}`);return;case"boolean":$.elseIf((0,i._)`${A} === "false" || ${A} === 0 || ${A} === null`).assign(H,!1).elseIf((0,i._)`${A} === "true" || ${A} === 1`).assign(H,!0);return;case"null":$.elseIf((0,i._)`${A} === "" || ${A} === 0 || ${A} === false`),$.assign(H,null);return;case"array":$.elseIf((0,i._)`${G} === "string" || ${G} === "number"
|
|
21
|
-
|| ${G} === "boolean" || ${A} === null`).assign(H,(0,i._)`[${A}]`)}}}function h({gen:m,parentData:x,parentDataProperty:N},$){m.if((0,i._)`${x} !== undefined`,()=>m.assign((0,i._)`${x}[${N}]`,$))}function p(m,x,N,$=a.Correct){const A=$===a.Correct?i.operators.EQ:i.operators.NEQ;let R;switch(m){case"null":return(0,i._)`${x} ${A} null`;case"array":R=(0,i._)`Array.isArray(${x})`;break;case"object":R=(0,i._)`${x} && typeof ${x} == "object" && !Array.isArray(${x})`;break;case"integer":R=G((0,i._)`!(${x} % 1) && !isNaN(${x})`);break;case"number":R=G();break;default:return(0,i._)`typeof ${x} ${A} ${m}`}return $===a.Correct?R:(0,i.not)(R);function G(H=i.nil){return(0,i.and)((0,i._)`typeof ${x} == "number"`,H,N?(0,i._)`isFinite(${x})`:i.nil)}}e.checkDataType=p;function g(m,x,N,$){if(m.length===1)return p(m[0],x,N,$);let A;const R=(0,o.toHash)(m);if(R.array&&R.object){const G=(0,i._)`typeof ${x} != "object"`;A=R.null?G:(0,i._)`!${x} || ${G}`,delete R.null,delete R.array,delete R.object}else A=i.nil;R.number&&delete R.integer;for(const G in R)A=(0,i.and)(A,p(G,x,N,$));return A}e.checkDataTypes=g;const v={message:({schema:m})=>`must be ${m}`,params:({schema:m,schemaValue:x})=>typeof m=="string"?(0,i._)`{type: ${m}}`:(0,i._)`{type: ${x}}`};function _(m){const x=y(m);(0,n.reportError)(x,v)}e.reportTypeError=_;function y(m){const{gen:x,data:N,schema:$}=m,A=(0,o.schemaRefOrVal)(m,$,"type");return{gen:x,keyword:"type",data:N,schema:$.type,schemaCode:A,schemaValue:A,parentSchema:$,params:{},it:m}}})(pd);const vE=Xr(pd),yE=Mt({__proto__:null,default:vE},[pd]),Ac=Lt(yE);var es={};Object.defineProperty(es,"__esModule",{value:!0});var K1=es.assignDefaults=void 0;const sa=me,_E=Ae;function bE(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)Y1(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Y1(e,o,i.default))}K1=es.assignDefaults=bE;function Y1(e,t,r){const{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;const s=(0,sa._)`${o}${(0,sa.getProperty)(t)}`;if(i){(0,_E.checkStrictMode)(e,`default is ignored for: ${s}`);return}let c=(0,sa._)`${s} === undefined`;a.useDefaults==="empty"&&(c=(0,sa._)`${c} || ${s} === null || ${s} === ""`),n.if(c,(0,sa._)`${s} = ${(0,sa.stringify)(r)}`)}const wE=Mt({__proto__:null,get assignDefaults(){return K1},default:es},[es]),xE=Lt(wE);var Nn={},Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});var X1=Fe.validateUnion=cv=Fe.validateArray=lv=Fe.usePattern=sv=Fe.callValidateCode=av=Fe.schemaProperties=ov=Fe.allSchemaProperties=nv=Fe.noPropertyInData=rv=Fe.propertyInData=ev=Fe.isOwnProperty=tv=Fe.hasPropFunc=Q1=Fe.reportMissingProp=J1=Fe.checkMissingProp=W1=Fe.checkReportMissingProp=void 0;const We=me,md=Ae,Gi=gi,SE=Ae;function $E(e,t){const{gen:r,data:n,it:i}=e;r.if(vd(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,We._)`${t}`},!0),e.error()})}var W1=Fe.checkReportMissingProp=$E;function kE({gen:e,data:t,it:{opts:r}},n,i){return(0,We.or)(...n.map(o=>(0,We.and)(vd(e,t,o,r.ownProperties),(0,We._)`${i} = ${o}`)))}var J1=Fe.checkMissingProp=kE;function EE(e,t){e.setParams({missingProperty:t},!0),e.error()}var Q1=Fe.reportMissingProp=EE;function Z1(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,We._)`Object.prototype.hasOwnProperty`})}var tv=Fe.hasPropFunc=Z1;function gd(e,t,r){return(0,We._)`${Z1(e)}.call(${t}, ${r})`}var ev=Fe.isOwnProperty=gd;function CE(e,t,r,n){const i=(0,We._)`${t}${(0,We.getProperty)(r)} !== undefined`;return n?(0,We._)`${i} && ${gd(e,t,r)}`:i}var rv=Fe.propertyInData=CE;function vd(e,t,r,n){const i=(0,We._)`${t}${(0,We.getProperty)(r)} === undefined`;return n?(0,We.or)(i,(0,We.not)(gd(e,t,r))):i}var nv=Fe.noPropertyInData=vd;function iv(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}var ov=Fe.allSchemaProperties=iv;function PE(e,t){return iv(t).filter(r=>!(0,md.alwaysValidSchema)(e,t[r]))}var av=Fe.schemaProperties=PE;function TE({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},s,c,l){const u=l?(0,We._)`${e}, ${t}, ${n}${i}`:t,d=[[Gi.default.instancePath,(0,We.strConcat)(Gi.default.instancePath,o)],[Gi.default.parentData,a.parentData],[Gi.default.parentDataProperty,a.parentDataProperty],[Gi.default.rootData,Gi.default.rootData]];a.opts.dynamicRef&&d.push([Gi.default.dynamicAnchors,Gi.default.dynamicAnchors]);const f=(0,We._)`${u}, ${r.object(...d)}`;return c!==We.nil?(0,We._)`${s}.call(${c}, ${f})`:(0,We._)`${s}(${f})`}var sv=Fe.callValidateCode=TE;const OE=(0,We._)`new RegExp`;function AE({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,We._)`${i.code==="new RegExp"?OE:(0,SE.useFunc)(e,i)}(${r}, ${n})`})}var lv=Fe.usePattern=AE;function NE(e){const{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){const s=t.let("valid",!0);return a(()=>t.assign(s,!1)),s}return t.var(o,!0),a(()=>t.break()),o;function a(s){const c=t.const("len",(0,We._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:md.Type.Num},o),t.if((0,We.not)(o),s)})}}var cv=Fe.validateArray=NE;function RE(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(s=>(0,md.alwaysValidSchema)(i,s))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((s,c)=>{const l=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},a);t.assign(o,(0,We._)`${o} || ${a}`),e.mergeValidEvaluated(l,a)||t.if((0,We.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}X1=Fe.validateUnion=RE;const jE=Mt({__proto__:null,get allSchemaProperties(){return ov},get callValidateCode(){return sv},get checkMissingProp(){return J1},get checkReportMissingProp(){return W1},default:Fe,get hasPropFunc(){return tv},get isOwnProperty(){return ev},get noPropertyInData(){return nv},get propertyInData(){return rv},get reportMissingProp(){return Q1},get schemaProperties(){return av},get usePattern(){return lv},get validateArray(){return cv},get validateUnion(){return X1}},[Fe]),Rn=Lt(jE);Object.defineProperty(Nn,"__esModule",{value:!0});var uv=Nn.validateKeywordUsage=mv=Nn.validSchemaType=dv=Nn.funcKeywordCode=hv=Nn.macroKeywordCode=void 0;const Mr=me,bo=gi,IE=Rn,DE=ts;function FE(e,t){const{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,s=t.macro.call(a.self,i,o,a),c=pv(r,n,s);a.opts.validateSchema!==!1&&a.self.validateSchema(s,!0);const l=r.name("valid");e.subschema({schema:s,schemaPath:Mr.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}var hv=Nn.macroKeywordCode=FE;function ME(e,t){var r;const{gen:n,keyword:i,schema:o,parentSchema:a,$data:s,it:c}=e;UE(c,t);const l=!s&&t.compile?t.compile.call(c.self,o,a,c):t.validate,u=pv(n,i,l),d=n.let("valid");e.block$data(d,f),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function f(){if(t.errors===!1)g(),t.modifying&&fv(e),v(()=>e.error());else{const _=t.async?h():p();t.modifying&&fv(e),v(()=>LE(e,_))}}function h(){const _=n.let("ruleErrs",null);return n.try(()=>g((0,Mr._)`await `),y=>n.assign(d,!1).if((0,Mr._)`${y} instanceof ${c.ValidationError}`,()=>n.assign(_,(0,Mr._)`${y}.errors`),()=>n.throw(y))),_}function p(){const _=(0,Mr._)`${u}.errors`;return n.assign(_,null),g(Mr.nil),_}function g(_=t.async?(0,Mr._)`await `:Mr.nil){const y=c.opts.passContext?bo.default.this:bo.default.self,m=!("compile"in t&&!s||t.schema===!1);n.assign(d,(0,Mr._)`${_}${(0,IE.callValidateCode)(e,u,y,m)}`,t.modifying)}function v(_){var y;n.if((0,Mr.not)((y=t.valid)!==null&&y!==void 0?y:d),_)}}var dv=Nn.funcKeywordCode=ME;function fv(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Mr._)`${n.parentData}[${n.parentDataProperty}]`))}function LE(e,t){const{gen:r}=e;r.if((0,Mr._)`Array.isArray(${t})`,()=>{r.assign(bo.default.vErrors,(0,Mr._)`${bo.default.vErrors} === null ? ${t} : ${bo.default.vErrors}.concat(${t})`).assign(bo.default.errors,(0,Mr._)`${bo.default.vErrors}.length`),(0,DE.extendErrors)(e)},()=>e.error())}function UE({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function pv(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,Mr.stringify)(r)})}function zE(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 mv=Nn.validSchemaType=zE;function GE({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 a=i.dependencies;if(a!=null&&a.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const s=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(s);else throw new Error(s)}}uv=Nn.validateKeywordUsage=GE;const VE=Mt({__proto__:null,default:Nn,get funcKeywordCode(){return dv},get macroKeywordCode(){return hv},get validSchemaType(){return mv},get validateKeywordUsage(){return uv}},[Nn]),BE=Lt(VE);var yi={};Object.defineProperty(yi,"__esModule",{value:!0});var gv=yi.extendSubschemaMode=_v=yi.extendSubschemaData=yv=yi.getSubschema=void 0;const Zn=me,vv=Ae;function HE(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,Zn._)`${e.schemaPath}${(0,Zn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,Zn._)`${e.schemaPath}${(0,Zn.getProperty)(t)}${(0,Zn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,vv.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}var yv=yi.getSubschema=HE;function qE(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(r!==void 0){const{errorPath:l,dataPathArr:u,opts:d}=t,f=s.let("data",(0,Zn._)`${t.data}${(0,Zn.getProperty)(r)}`,!0);c(f),e.errorPath=(0,Zn.str)`${l}${(0,vv.getErrorPath)(r,n,d.jsPropertySyntax)}`,e.parentDataProperty=(0,Zn._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){const l=i instanceof Zn.Name?i:s.let("data",i,!0);c(l),a!==void 0&&(e.propertyName=a)}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 _v=yi.extendSubschemaData=qE;function KE(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}gv=yi.extendSubschemaMode=KE;const YE=Mt({__proto__:null,default:yi,get extendSubschemaData(){return _v},get extendSubschemaMode(){return gv},get getSubschema(){return yv}},[yi]),XE=Lt(YE);var Lr={},bv=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 a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r};const WE=Xr(bv),JE=Mt({__proto__:null,default:WE},[bv]),wv=Lt(JE);var xv={exports:{}},Vi=xv.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(){};Nc(t,n,i,e,"",e)};Vi.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},Vi.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},Vi.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},Vi.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 Nc(e,t,r,n,i,o,a,s,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,s,c,l);for(var u in n){var d=n[u];if(Array.isArray(d)){if(u in Vi.arrayKeywords)for(var f=0;f<d.length;f++)Nc(e,t,r,d[f],i+"/"+u+"/"+f,o,i,u,n,f)}else if(u in Vi.propsKeywords){if(d&&typeof d=="object")for(var h in d)Nc(e,t,r,d[h],i+"/"+u+"/"+QE(h),o,i,u,n,h)}else(u in Vi.keywords||e.allKeys&&!(u in Vi.skipKeywords))&&Nc(e,t,r,d,i+"/"+u,o,i,u,n)}r(n,i,o,a,s,c,l)}}function QE(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var Sv=xv.exports;const ZE=Xr(Sv),tC=Mt({__proto__:null,default:ZE},[Sv]),eC=Lt(tC);Object.defineProperty(Lr,"__esModule",{value:!0});var $v=Lr.getSchemaRefs=Nv=Lr.resolveUrl=Av=Lr.normalizeId=Ov=Lr._getFullPath=Pv=Lr.getFullPath=kv=Lr.inlineRef=void 0;const rC=Ae,nC=wv,iC=eC,oC=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function aC(e,t=!0){return typeof e=="boolean"?!0:t===!0?!yd(e):t?Ev(e)<=t:!1}var kv=Lr.inlineRef=aC;const sC=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function yd(e){for(const t in e){if(sC.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(yd)||typeof r=="object"&&yd(r))return!0}return!1}function Ev(e){let t=0;for(const r in e)if(r==="$ref"||(t++,!oC.has(r)&&(typeof e[r]=="object"&&(0,rC.eachItem)(e[r],n=>t+=Ev(n)),t===1/0)))return 1/0;return t}function Cv(e,t="",r){r!==!1&&(t=la(t));const n=e.parse(t);return Tv(e,n)}var Pv=Lr.getFullPath=Cv;function Tv(e,t){return e.serialize(t).split("#")[0]+"#"}var Ov=Lr._getFullPath=Tv;const lC=/#\/?$/;function la(e){return e?e.replace(lC,""):""}var Av=Lr.normalizeId=la;function cC(e,t,r){return r=la(r),e.resolve(t,r)}var Nv=Lr.resolveUrl=cC;const uC=/^[a-z_][-a-z0-9._]*$/i;function hC(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=la(e[r]||t),o={"":i},a=Cv(n,i,!1),s={},c=new Set;return iC(e,{allKeys:!0},(d,f,h,p)=>{if(p===void 0)return;const g=a+f;let v=o[p];typeof d[r]=="string"&&(v=_.call(this,d[r])),y.call(this,d.$anchor),y.call(this,d.$dynamicAnchor),o[f]=v;function _(m){const x=this.opts.uriResolver.resolve;if(m=la(v?x(v,m):m),c.has(m))throw u(m);c.add(m);let N=this.refs[m];return typeof N=="string"&&(N=this.refs[N]),typeof N=="object"?l(d,N.schema,m):m!==la(g)&&(m[0]==="#"?(l(d,s[m],m),s[m]=d):this.refs[m]=g),m}function y(m){if(typeof m=="string"){if(!uC.test(m))throw new Error(`invalid anchor "${m}"`);_.call(this,`#${m}`)}}}),s;function l(d,f,h){if(f!==void 0&&!nC(d,f))throw u(h)}function u(d){return new Error(`reference "${d}" resolves to more than one schema`)}}$v=Lr.getSchemaRefs=hC;const dC=Mt({__proto__:null,get _getFullPath(){return Ov},default:Lr,get getFullPath(){return Pv},get getSchemaRefs(){return $v},get inlineRef(){return kv},get normalizeId(){return Av},get resolveUrl(){return Nv}},[Lr]),Rc=Lt(dC);Object.defineProperty(mi,"__esModule",{value:!0});var Rv=mi.getData=Yv=mi.KeywordCxt=Dv=mi.validateFunctionCode=void 0;const jv=cE,Iv=Ac,_d=q1,jc=Ac,fC=xE,rs=BE,bd=XE,Kt=me,ne=gi,pC=Rc,_i=Ae,ns=ts;function mC(e){if(Uv(e)&&(zv(e),Lv(e))){yC(e);return}Fv(e,()=>(0,jv.topBoolOrEmptySchema)(e))}var Dv=mi.validateFunctionCode=mC;function Fv({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,Kt._)`${ne.default.data}, ${ne.default.valCxt}`,n.$async,()=>{e.code((0,Kt._)`"use strict"; ${Mv(r,i)}`),vC(e,i),e.code(o)}):e.func(t,(0,Kt._)`${ne.default.data}, ${gC(i)}`,n.$async,()=>e.code(Mv(r,i)).code(o))}function gC(e){return(0,Kt._)`{${ne.default.instancePath}="", ${ne.default.parentData}, ${ne.default.parentDataProperty}, ${ne.default.rootData}=${ne.default.data}${e.dynamicRef?(0,Kt._)`, ${ne.default.dynamicAnchors}={}`:Kt.nil}}={}`}function vC(e,t){e.if(ne.default.valCxt,()=>{e.var(ne.default.instancePath,(0,Kt._)`${ne.default.valCxt}.${ne.default.instancePath}`),e.var(ne.default.parentData,(0,Kt._)`${ne.default.valCxt}.${ne.default.parentData}`),e.var(ne.default.parentDataProperty,(0,Kt._)`${ne.default.valCxt}.${ne.default.parentDataProperty}`),e.var(ne.default.rootData,(0,Kt._)`${ne.default.valCxt}.${ne.default.rootData}`),t.dynamicRef&&e.var(ne.default.dynamicAnchors,(0,Kt._)`${ne.default.valCxt}.${ne.default.dynamicAnchors}`)},()=>{e.var(ne.default.instancePath,(0,Kt._)`""`),e.var(ne.default.parentData,(0,Kt._)`undefined`),e.var(ne.default.parentDataProperty,(0,Kt._)`undefined`),e.var(ne.default.rootData,ne.default.data),t.dynamicRef&&e.var(ne.default.dynamicAnchors,(0,Kt._)`{}`)})}function yC(e){const{schema:t,opts:r,gen:n}=e;Fv(e,()=>{r.$comment&&t.$comment&&Vv(e),SC(e),n.let(ne.default.vErrors,null),n.let(ne.default.errors,0),r.unevaluated&&_C(e),Gv(e),EC(e)})}function _C(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Kt._)`${r}.evaluated`),t.if((0,Kt._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Kt._)`${e.evaluated}.props`,(0,Kt._)`undefined`)),t.if((0,Kt._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Kt._)`${e.evaluated}.items`,(0,Kt._)`undefined`))}function Mv(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Kt._)`/*# sourceURL=${r} */`:Kt.nil}function bC(e,t){if(Uv(e)&&(zv(e),Lv(e))){wC(e,t);return}(0,jv.boolOrEmptySchema)(e,t)}function Lv({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 Uv(e){return typeof e.schema!="boolean"}function wC(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Vv(e),$C(e),kC(e);const o=n.const("_errs",ne.default.errors);Gv(e,o),n.var(t,(0,Kt._)`${o} === ${ne.default.errors}`)}function zv(e){(0,_i.checkUnknownRules)(e),xC(e)}function Gv(e,t){if(e.opts.jtd)return Bv(e,[],!1,t);const r=(0,Iv.getSchemaTypes)(e.schema),n=(0,Iv.coerceAndCheckDataType)(e,r);Bv(e,r,!n,t)}function xC(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,_i.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function SC(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,_i.checkStrictMode)(e,"default is ignored in the schema root")}function $C(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,pC.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function kC(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Vv({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(i.$comment===!0)e.code((0,Kt._)`${ne.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){const a=(0,Kt.str)`${n}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,Kt._)`${ne.default.self}.opts.$comment(${o}, ${a}, ${s}.schema)`)}}function EC(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,Kt._)`${ne.default.errors} === 0`,()=>t.return(ne.default.data),()=>t.throw((0,Kt._)`new ${i}(${ne.default.vErrors})`)):(t.assign((0,Kt._)`${n}.errors`,ne.default.vErrors),o.unevaluated&&CC(e),t.return((0,Kt._)`${ne.default.errors} === 0`))}function CC({gen:e,evaluated:t,props:r,items:n}){r instanceof Kt.Name&&e.assign((0,Kt._)`${t}.props`,r),n instanceof Kt.Name&&e.assign((0,Kt._)`${t}.items`,n)}function Bv(e,t,r,n){const{gen:i,schema:o,data:a,allErrors:s,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,_i.schemaHasRulesButRef)(o,u))){i.block(()=>Xv(e,"$ref",u.all.$ref.definition));return}c.jtd||PC(e,t),i.block(()=>{for(const f of u.rules)d(f);d(u.post)});function d(f){(0,_d.shouldUseGroup)(o,f)&&(f.type?(i.if((0,jc.checkDataType)(f.type,a,c.strictNumbers)),Hv(e,f),t.length===1&&t[0]===f.type&&r&&(i.else(),(0,jc.reportTypeError)(e)),i.endIf()):Hv(e,f),s||i.if((0,Kt._)`${ne.default.errors} === ${n||0}`))}}function Hv(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,fC.assignDefaults)(e,t.type),r.block(()=>{for(const o of t.rules)(0,_d.shouldUseRule)(n,o)&&Xv(e,o.keyword,o.definition,t.type)})}function PC(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(TC(e,t),e.opts.allowUnionTypes||OC(e,t),AC(e,e.dataTypes))}function TC(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{qv(e.dataTypes,r)||wd(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),RC(e,t)}}function OC(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&wd(e,"use allowUnionTypes to allow union type keyword")}function AC(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,_d.shouldUseRule)(e.schema,i)){const{type:o}=i.definition;o.length&&!o.some(a=>NC(t,a))&&wd(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function NC(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function qv(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function RC(e,t){const r=[];for(const n of e.dataTypes)qv(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function wd(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,_i.checkStrictMode)(e,t,e.opts.strictTypes)}class Kv{constructor(t,r,n){if((0,rs.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,_i.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",Wv(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,rs.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",ne.default.errors))}result(t,r,n){this.failResult((0,Kt.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,Kt.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,Kt._)`${r} !== undefined && (${(0,Kt.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?ns.reportExtraError:ns.reportError)(this,this.def.error,r)}$dataError(){(0,ns.reportError)(this,this.def.$dataError||ns.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ns.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=Kt.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Kt.nil,r=Kt.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,Kt.or)((0,Kt._)`${i} === undefined`,r)),t!==Kt.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Kt.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,Kt.or)(a(),s());function a(){if(n.length){if(!(r instanceof Kt.Name))throw new Error("ajv implementation error");const c=Array.isArray(n)?n:[n];return(0,Kt._)`${(0,jc.checkDataTypes)(c,r,o.opts.strictNumbers,jc.DataType.Wrong)}`}return Kt.nil}function s(){if(i.validateSchema){const c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,Kt._)`!${c}(${r})`}return Kt.nil}}subschema(t,r){const n=(0,bd.getSubschema)(this.it,t);(0,bd.extendSubschemaData)(n,this.it,t),(0,bd.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return bC(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=_i.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=_i.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,Kt.Name)),!0}}var Yv=mi.KeywordCxt=Kv;function Xv(e,t,r,n){const i=new Kv(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,rs.funcKeywordCode)(i,r):"macro"in r?(0,rs.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,rs.funcKeywordCode)(i,r)}const jC=/^\/(?:[^~]|~0|~1)*$/,IC=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Wv(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ne.default.rootData;if(e[0]==="/"){if(!jC.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ne.default.rootData}else{const l=IC.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 a=o;const s=i.split("/");for(const l of s)l&&(o=(0,Kt._)`${o}${(0,Kt.getProperty)((0,_i.unescapeJsonPointer)(l))}`,a=(0,Kt._)`${a} && ${o}`);return a;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}Rv=mi.getData=Wv;const DC=Mt({__proto__:null,get KeywordCxt(){return Yv},default:mi,get getData(){return Rv},get validateFunctionCode(){return Dv}},[mi]),is=Lt(DC);var xd={};Object.defineProperty(xd,"__esModule",{value:!0});class FC extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}var MC=xd.default=FC;const LC=Mt({__proto__:null,default:MC},[xd]),Sd=Lt(LC);var $d={};Object.defineProperty($d,"__esModule",{value:!0});const kd=Rc;let UC=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,kd.resolveUrl)(t,r,n),this.missingSchema=(0,kd.normalizeId)((0,kd.getFullPath)(t,this.missingRef))}};var zC=$d.default=UC;const GC=Mt({__proto__:null,default:zC},[$d]),Ed=Lt(GC);var cn={};Object.defineProperty(cn,"__esModule",{value:!0});var Jv=cn.resolveSchema=ny=cn.getCompilingSchema=ey=cn.resolveRef=ty=cn.compileSchema=Zv=cn.SchemaEnv=void 0;const jn=me,VC=Sd,wo=gi,In=Rc,Qv=Ae,BC=is;let Ic=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,In.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};var Zv=cn.SchemaEnv=Ic;function Cd(e){const t=ry.call(this,e);if(t)return t;const r=(0,In.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new jn.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o});let s;e.$async&&(s=a.scopeValue("Error",{ref:VC.default,code:(0,jn._)`require("ajv/dist/runtime/validation_error").default`}));const c=a.scopeName("validate");e.validateName=c;const l={gen:a,allErrors:this.opts.allErrors,data:wo.default.data,parentData:wo.default.parentData,parentDataProperty:wo.default.parentDataProperty,dataNames:[wo.default.data],dataPathArr:[jn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,jn.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:jn.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,jn._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,BC.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);const d=a.toString();u=`${a.scopeRefs(wo.default.scope)}return ${d}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const f=new Function(`${wo.default.self}`,`${wo.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:d,scopeValues:a._values}),this.opts.unevaluated){const{props:h,items:p}=l;f.evaluated={props:h instanceof jn.Name?void 0:h,items:p instanceof jn.Name?void 0:p,dynamicProps:h instanceof jn.Name,dynamicItems:p instanceof jn.Name},f.source&&(f.source.evaluated=(0,jn.stringify)(f.evaluated))}return e.validate=f,e}catch(d){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),d}finally{this._compilations.delete(e)}}var ty=cn.compileSchema=Cd;function HC(e,t,r){var n;r=(0,In.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=YC.call(this,e,r);if(o===void 0){const a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:s}=this.opts;a&&(o=new Ic({schema:a,schemaId:s,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=qC.call(this,o)}var ey=cn.resolveRef=HC;function qC(e){return(0,In.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Cd.call(this,e)}function ry(e){for(const t of this._compilations)if(KC(t,e))return t}var ny=cn.getCompilingSchema=ry;function KC(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function YC(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Dc.call(this,e,t)}function Dc(e,t){const r=this.opts.uriResolver.parse(t),n=(0,In._getFullPath)(this.opts.uriResolver,r);let i=(0,In.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Pd.call(this,r,e);const o=(0,In.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){const s=Dc.call(this,e,a);return typeof(s==null?void 0:s.schema)!="object"?void 0:Pd.call(this,r,s)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Cd.call(this,a),o===(0,In.normalizeId)(t)){const{schema:s}=a,{schemaId:c}=this.opts,l=s[c];return l&&(i=(0,In.resolveUrl)(this.opts.uriResolver,i,l)),new Ic({schema:s,schemaId:c,root:e,baseId:i})}return Pd.call(this,r,a)}}Jv=cn.resolveSchema=Dc;const XC=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Pd(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const c=r[(0,Qv.unescapeFragment)(s)];if(c===void 0)return;r=c;const l=typeof r=="object"&&r[this.opts.schemaId];!XC.has(s)&&l&&(t=(0,In.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Qv.schemaHasRulesButRef)(r,this.RULES)){const s=(0,In.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Dc.call(this,n,s)}const{schemaId:a}=this.opts;if(o=o||new Ic({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}const WC=Mt({__proto__:null,get SchemaEnv(){return Zv},get compileSchema(){return ty},default:cn,get getCompilingSchema(){return ny},get resolveRef(){return ey},get resolveSchema(){return Jv}},[cn]),Td=Lt(WC),JC="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",QC="Meta-schema for $data reference (JSON AnySchema extension proposal)",ZC="object",tP=["$data"],eP={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},rP=!1,nP={$id:JC,description:QC,type:ZC,required:tP,properties:eP,additionalProperties:rP};var Od={},Ad={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)})(j4,function(r){function n(){for(var j=arguments.length,U=Array(j),z=0;z<j;z++)U[z]=arguments[z];if(U.length>1){U[0]=U[0].slice(0,-1);for(var Q=U.length-1,Z=1;Z<Q;++Z)U[Z]=U[Z].slice(1,-1);return U[Q]=U[Q].slice(1),U.join("")}else return U[0]}function i(j){return"(?:"+j+")"}function o(j){return j===void 0?"undefined":j===null?"null":Object.prototype.toString.call(j).split(" ").pop().split("]").shift().toLowerCase()}function a(j){return j.toUpperCase()}function s(j){return j!=null?j instanceof Array?j:typeof j.length!="number"||j.split||j.setInterval||j.call?[j]:Array.prototype.slice.call(j):[]}function c(j,U){var z=j;if(U)for(var Q in U)z[Q]=U[Q];return z}function l(j){var U="[A-Za-z]",z="[0-9]",Q=n(z,"[A-Fa-f]"),Z=i(i("%[EFef]"+Q+"%"+Q+Q+"%"+Q+Q)+"|"+i("%[89A-Fa-f]"+Q+"%"+Q+Q)+"|"+i("%"+Q+Q)),yt="[\\:\\/\\?\\#\\[\\]\\@]",vt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",It=n(yt,vt),oe=j?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ht=j?"[\\uE000-\\uF8FF]":"[]",Ot=n(U,z,"[\\-\\.\\_\\~]",oe);i(U+n(U,z,"[\\+\\-\\.]")+"*"),i(i(Z+"|"+n(Ot,vt,"[\\:]"))+"*");var Ft=i(i("25[0-5]")+"|"+i("2[0-4]"+z)+"|"+i("1"+z+z)+"|"+i("0?[1-9]"+z)+"|0?0?"+z),Zt=i(Ft+"\\."+Ft+"\\."+Ft+"\\."+Ft),kt=i(Q+"{1,4}"),At=i(i(kt+"\\:"+kt)+"|"+Zt),Xt=i(i(kt+"\\:")+"{6}"+At),Te=i("\\:\\:"+i(kt+"\\:")+"{5}"+At),fr=i(i(kt)+"?\\:\\:"+i(kt+"\\:")+"{4}"+At),pe=i(i(i(kt+"\\:")+"{0,1}"+kt)+"?\\:\\:"+i(kt+"\\:")+"{3}"+At),De=i(i(i(kt+"\\:")+"{0,2}"+kt)+"?\\:\\:"+i(kt+"\\:")+"{2}"+At),qe=i(i(i(kt+"\\:")+"{0,3}"+kt)+"?\\:\\:"+kt+"\\:"+At),Be=i(i(i(kt+"\\:")+"{0,4}"+kt)+"?\\:\\:"+At),ke=i(i(i(kt+"\\:")+"{0,5}"+kt)+"?\\:\\:"+kt),ce=i(i(i(kt+"\\:")+"{0,6}"+kt)+"?\\:\\:"),Bt=i([Xt,Te,fr,pe,De,qe,Be,ke,ce].join("|")),Ke=i(i(Ot+"|"+Z)+"+");i("[vV]"+Q+"+\\."+n(Ot,vt,"[\\:]")+"+"),i(i(Z+"|"+n(Ot,vt))+"*");var Fr=i(Z+"|"+n(Ot,vt,"[\\:\\@]"));return i(i(Z+"|"+n(Ot,vt,"[\\@]"))+"+"),i(i(Fr+"|"+n("[\\/\\?]",Ht))+"*"),{NOT_SCHEME:new RegExp(n("[^]",U,z,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",Ot,vt),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",Ot,vt),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",Ot,vt),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",Ot,vt),"g"),NOT_QUERY:new RegExp(n("[^\\%]",Ot,vt,"[\\:\\@\\/\\?]",Ht),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",Ot,vt,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",Ot,vt),"g"),UNRESERVED:new RegExp(Ot,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",Ot,It),"g"),PCT_ENCODED:new RegExp(Z,"g"),IPV4ADDRESS:new RegExp("^("+Zt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Bt+")"+i(i("\\%25|\\%(?!"+Q+"{2})")+"("+Ke+")")+"?\\]?$")}}var u=l(!1),d=l(!0),f=function(){function j(U,z){var Q=[],Z=!0,yt=!1,vt=void 0;try{for(var It=U[Symbol.iterator](),oe;!(Z=(oe=It.next()).done)&&(Q.push(oe.value),!(z&&Q.length===z));Z=!0);}catch(Ht){yt=!0,vt=Ht}finally{try{!Z&&It.return&&It.return()}finally{if(yt)throw vt}}return Q}return function(U,z){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return j(U,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(j){if(Array.isArray(j)){for(var U=0,z=Array(j.length);U<j.length;U++)z[U]=j[U];return z}else return Array.from(j)},p=2147483647,g=36,v=1,_=26,y=38,m=700,x=72,N=128,$="-",A=/^xn--/,R=/[^\0-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,H={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Y=g-v,J=Math.floor,nt=String.fromCharCode;function rt(j){throw new RangeError(H[j])}function lt(j,U){for(var z=[],Q=j.length;Q--;)z[Q]=U(j[Q]);return z}function xt(j,U){var z=j.split("@"),Q="";z.length>1&&(Q=z[0]+"@",j=z[1]),j=j.replace(G,".");var Z=j.split("."),yt=lt(Z,U).join(".");return Q+yt}function Ct(j){for(var U=[],z=0,Q=j.length;z<Q;){var Z=j.charCodeAt(z++);if(Z>=55296&&Z<=56319&&z<Q){var yt=j.charCodeAt(z++);(yt&64512)==56320?U.push(((Z&1023)<<10)+(yt&1023)+65536):(U.push(Z),z--)}else U.push(Z)}return U}var $t=function(j){return String.fromCodePoint.apply(String,h(j))},at=function(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:g},X=function(j,U){return j+22+75*(j<26)-((U!=0)<<5)},T=function(j,U,z){var Q=0;for(j=z?J(j/m):j>>1,j+=J(j/U);j>Y*_>>1;Q+=g)j=J(j/Y);return J(Q+(Y+1)*j/(j+y))},E=function(j){var U=[],z=j.length,Q=0,Z=N,yt=x,vt=j.lastIndexOf($);vt<0&&(vt=0);for(var It=0;It<vt;++It)j.charCodeAt(It)>=128&&rt("not-basic"),U.push(j.charCodeAt(It));for(var oe=vt>0?vt+1:0;oe<z;){for(var Ht=Q,Ot=1,Ft=g;;Ft+=g){oe>=z&&rt("invalid-input");var Zt=at(j.charCodeAt(oe++));(Zt>=g||Zt>J((p-Q)/Ot))&&rt("overflow"),Q+=Zt*Ot;var kt=Ft<=yt?v:Ft>=yt+_?_:Ft-yt;if(Zt<kt)break;var At=g-kt;Ot>J(p/At)&&rt("overflow"),Ot*=At}var Xt=U.length+1;yt=T(Q-Ht,Xt,Ht==0),J(Q/Xt)>p-Z&&rt("overflow"),Z+=J(Q/Xt),Q%=Xt,U.splice(Q++,0,Z)}return String.fromCodePoint.apply(String,U)},k=function(j){var U=[];j=Ct(j);var z=j.length,Q=N,Z=0,yt=x,vt=!0,It=!1,oe=void 0;try{for(var Ht=j[Symbol.iterator](),Ot;!(vt=(Ot=Ht.next()).done);vt=!0){var Ft=Ot.value;Ft<128&&U.push(nt(Ft))}}catch(kr){It=!0,oe=kr}finally{try{!vt&&Ht.return&&Ht.return()}finally{if(It)throw oe}}var Zt=U.length,kt=Zt;for(Zt&&U.push($);kt<z;){var At=p,Xt=!0,Te=!1,fr=void 0;try{for(var pe=j[Symbol.iterator](),De;!(Xt=(De=pe.next()).done);Xt=!0){var qe=De.value;qe>=Q&&qe<At&&(At=qe)}}catch(kr){Te=!0,fr=kr}finally{try{!Xt&&pe.return&&pe.return()}finally{if(Te)throw fr}}var Be=kt+1;At-Q>J((p-Z)/Be)&&rt("overflow"),Z+=(At-Q)*Be,Q=At;var ke=!0,ce=!1,Bt=void 0;try{for(var Ke=j[Symbol.iterator](),Fr;!(ke=(Fr=Ke.next()).done);ke=!0){var an=Fr.value;if(an<Q&&++Z>p&&rt("overflow"),an==Q){for(var nr=Z,rr=g;;rr+=g){var yr=rr<=yt?v:rr>=yt+_?_:rr-yt;if(nr<yr)break;var Pn=nr-yr,Tn=g-yr;U.push(nt(X(yr+Pn%Tn,0))),nr=J(Pn/Tn)}U.push(nt(X(nr,0))),yt=T(Z,Be,kt==Zt),Z=0,++kt}}}catch(kr){ce=!0,Bt=kr}finally{try{!ke&&Ke.return&&Ke.return()}finally{if(ce)throw Bt}}++Z,++Q}return U.join("")},b=function(j){return xt(j,function(U){return A.test(U)?E(U.slice(4).toLowerCase()):U})},C=function(j){return xt(j,function(U){return R.test(U)?"xn--"+k(U):U})},L={version:"2.1.0",ucs2:{decode:Ct,encode:$t},decode:E,encode:k,toASCII:C,toUnicode:b},D={};function V(j){var U=j.charCodeAt(0),z=void 0;return U<16?z="%0"+U.toString(16).toUpperCase():U<128?z="%"+U.toString(16).toUpperCase():U<2048?z="%"+(U>>6|192).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase():z="%"+(U>>12|224).toString(16).toUpperCase()+"%"+(U>>6&63|128).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase(),z}function K(j){for(var U="",z=0,Q=j.length;z<Q;){var Z=parseInt(j.substr(z+1,2),16);if(Z<128)U+=String.fromCharCode(Z),z+=3;else if(Z>=194&&Z<224){if(Q-z>=6){var yt=parseInt(j.substr(z+4,2),16);U+=String.fromCharCode((Z&31)<<6|yt&63)}else U+=j.substr(z,6);z+=6}else if(Z>=224){if(Q-z>=9){var vt=parseInt(j.substr(z+4,2),16),It=parseInt(j.substr(z+7,2),16);U+=String.fromCharCode((Z&15)<<12|(vt&63)<<6|It&63)}else U+=j.substr(z,9);z+=9}else U+=j.substr(z,3),z+=3}return U}function et(j,U){function z(Q){var Z=K(Q);return Z.match(U.UNRESERVED)?Z:Q}return j.scheme&&(j.scheme=String(j.scheme).replace(U.PCT_ENCODED,z).toLowerCase().replace(U.NOT_SCHEME,"")),j.userinfo!==void 0&&(j.userinfo=String(j.userinfo).replace(U.PCT_ENCODED,z).replace(U.NOT_USERINFO,V).replace(U.PCT_ENCODED,a)),j.host!==void 0&&(j.host=String(j.host).replace(U.PCT_ENCODED,z).toLowerCase().replace(U.NOT_HOST,V).replace(U.PCT_ENCODED,a)),j.path!==void 0&&(j.path=String(j.path).replace(U.PCT_ENCODED,z).replace(j.scheme?U.NOT_PATH:U.NOT_PATH_NOSCHEME,V).replace(U.PCT_ENCODED,a)),j.query!==void 0&&(j.query=String(j.query).replace(U.PCT_ENCODED,z).replace(U.NOT_QUERY,V).replace(U.PCT_ENCODED,a)),j.fragment!==void 0&&(j.fragment=String(j.fragment).replace(U.PCT_ENCODED,z).replace(U.NOT_FRAGMENT,V).replace(U.PCT_ENCODED,a)),j}function it(j){return j.replace(/^0*(.*)/,"$1")||"0"}function ut(j,U){var z=j.match(U.IPV4ADDRESS)||[],Q=f(z,2),Z=Q[1];return Z?Z.split(".").map(it).join("."):j}function Tt(j,U){var z=j.match(U.IPV6ADDRESS)||[],Q=f(z,3),Z=Q[1],yt=Q[2];if(Z){for(var vt=Z.toLowerCase().split("::").reverse(),It=f(vt,2),oe=It[0],Ht=It[1],Ot=Ht?Ht.split(":").map(it):[],Ft=oe.split(":").map(it),Zt=U.IPV4ADDRESS.test(Ft[Ft.length-1]),kt=Zt?7:8,At=Ft.length-kt,Xt=Array(kt),Te=0;Te<kt;++Te)Xt[Te]=Ot[Te]||Ft[At+Te]||"";Zt&&(Xt[kt-1]=ut(Xt[kt-1],U));var fr=Xt.reduce(function(ke,ce,Bt){if(!ce||ce==="0"){var Ke=ke[ke.length-1];Ke&&Ke.index+Ke.length===Bt?Ke.length++:ke.push({index:Bt,length:1})}return ke},[]),pe=fr.sort(function(ke,ce){return ce.length-ke.length})[0],De=void 0;if(pe&&pe.length>1){var qe=Xt.slice(0,pe.index),Be=Xt.slice(pe.index+pe.length);De=qe.join(":")+"::"+Be.join(":")}else De=Xt.join(":");return yt&&(De+="%"+yt),De}else return j}var Gt=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Pt="".match(/(){0}/)[1]===void 0;function Nt(j){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z={},Q=U.iri!==!1?d:u;U.reference==="suffix"&&(j=(U.scheme?U.scheme+":":"")+"//"+j);var Z=j.match(Gt);if(Z){Pt?(z.scheme=Z[1],z.userinfo=Z[3],z.host=Z[4],z.port=parseInt(Z[5],10),z.path=Z[6]||"",z.query=Z[7],z.fragment=Z[8],isNaN(z.port)&&(z.port=Z[5])):(z.scheme=Z[1]||void 0,z.userinfo=j.indexOf("@")!==-1?Z[3]:void 0,z.host=j.indexOf("//")!==-1?Z[4]:void 0,z.port=parseInt(Z[5],10),z.path=Z[6]||"",z.query=j.indexOf("?")!==-1?Z[7]:void 0,z.fragment=j.indexOf("#")!==-1?Z[8]:void 0,isNaN(z.port)&&(z.port=j.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Z[4]:void 0)),z.host&&(z.host=Tt(ut(z.host,Q),Q)),z.scheme===void 0&&z.userinfo===void 0&&z.host===void 0&&z.port===void 0&&!z.path&&z.query===void 0?z.reference="same-document":z.scheme===void 0?z.reference="relative":z.fragment===void 0?z.reference="absolute":z.reference="uri",U.reference&&U.reference!=="suffix"&&U.reference!==z.reference&&(z.error=z.error||"URI is not a "+U.reference+" reference.");var yt=D[(U.scheme||z.scheme||"").toLowerCase()];if(!U.unicodeSupport&&(!yt||!yt.unicodeSupport)){if(z.host&&(U.domainHost||yt&&yt.domainHost))try{z.host=L.toASCII(z.host.replace(Q.PCT_ENCODED,K).toLowerCase())}catch(vt){z.error=z.error||"Host's domain name can not be converted to ASCII via punycode: "+vt}et(z,u)}else et(z,Q);yt&&yt.parse&&yt.parse(z,U)}else z.error=z.error||"URI can not be parsed.";return z}function qt(j,U){var z=U.iri!==!1?d:u,Q=[];return j.userinfo!==void 0&&(Q.push(j.userinfo),Q.push("@")),j.host!==void 0&&Q.push(Tt(ut(String(j.host),z),z).replace(z.IPV6ADDRESS,function(Z,yt,vt){return"["+yt+(vt?"%25"+vt:"")+"]"})),(typeof j.port=="number"||typeof j.port=="string")&&(Q.push(":"),Q.push(String(j.port))),Q.length?Q.join(""):void 0}var Qt=/^\.\.?\//,Dt=/^\/\.(\/|$)/,fe=/^\/\.\.(\/|$)/,re=/^\/?(?:.|\n)*?(?=\/|$)/;function he(j){for(var U=[];j.length;)if(j.match(Qt))j=j.replace(Qt,"");else if(j.match(Dt))j=j.replace(Dt,"/");else if(j.match(fe))j=j.replace(fe,"/"),U.pop();else if(j==="."||j==="..")j="";else{var z=j.match(re);if(z){var Q=z[0];j=j.slice(Q.length),U.push(Q)}else throw new Error("Unexpected dot segment condition")}return U.join("")}function Vt(j){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=U.iri?d:u,Q=[],Z=D[(U.scheme||j.scheme||"").toLowerCase()];if(Z&&Z.serialize&&Z.serialize(j,U),j.host&&!z.IPV6ADDRESS.test(j.host)&&(U.domainHost||Z&&Z.domainHost))try{j.host=U.iri?L.toUnicode(j.host):L.toASCII(j.host.replace(z.PCT_ENCODED,K).toLowerCase())}catch(It){j.error=j.error||"Host's domain name can not be converted to "+(U.iri?"Unicode":"ASCII")+" via punycode: "+It}et(j,z),U.reference!=="suffix"&&j.scheme&&(Q.push(j.scheme),Q.push(":"));var yt=qt(j,U);if(yt!==void 0&&(U.reference!=="suffix"&&Q.push("//"),Q.push(yt),j.path&&j.path.charAt(0)!=="/"&&Q.push("/")),j.path!==void 0){var vt=j.path;!U.absolutePath&&(!Z||!Z.absolutePath)&&(vt=he(vt)),yt===void 0&&(vt=vt.replace(/^\/\//,"/%2F")),Q.push(vt)}return j.query!==void 0&&(Q.push("?"),Q.push(j.query)),j.fragment!==void 0&&(Q.push("#"),Q.push(j.fragment)),Q.join("")}function Le(j,U){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q=arguments[3],Z={};return Q||(j=Nt(Vt(j,z),z),U=Nt(Vt(U,z),z)),z=z||{},!z.tolerant&&U.scheme?(Z.scheme=U.scheme,Z.userinfo=U.userinfo,Z.host=U.host,Z.port=U.port,Z.path=he(U.path||""),Z.query=U.query):(U.userinfo!==void 0||U.host!==void 0||U.port!==void 0?(Z.userinfo=U.userinfo,Z.host=U.host,Z.port=U.port,Z.path=he(U.path||""),Z.query=U.query):(U.path?(U.path.charAt(0)==="/"?Z.path=he(U.path):((j.userinfo!==void 0||j.host!==void 0||j.port!==void 0)&&!j.path?Z.path="/"+U.path:j.path?Z.path=j.path.slice(0,j.path.lastIndexOf("/")+1)+U.path:Z.path=U.path,Z.path=he(Z.path)),Z.query=U.query):(Z.path=j.path,U.query!==void 0?Z.query=U.query:Z.query=j.query),Z.userinfo=j.userinfo,Z.host=j.host,Z.port=j.port),Z.scheme=j.scheme),Z.fragment=U.fragment,Z}function Ue(j,U,z){var Q=c({scheme:"null"},z);return Vt(Le(Nt(j,Q),Nt(U,Q),Q,!0),Q)}function Xe(j,U){return typeof j=="string"?j=Vt(Nt(j,U),U):o(j)==="object"&&(j=Nt(Vt(j,U),U)),j}function pr(j,U,z){return typeof j=="string"?j=Vt(Nt(j,z),z):o(j)==="object"&&(j=Vt(j,z)),typeof U=="string"?U=Vt(Nt(U,z),z):o(U)==="object"&&(U=Vt(U,z)),j===U}function dr(j,U){return j&&j.toString().replace(!U||!U.iri?u.ESCAPE:d.ESCAPE,V)}function $e(j,U){return j&&j.toString().replace(!U||!U.iri?u.PCT_ENCODED:d.PCT_ENCODED,K)}var Ze={scheme:"http",domainHost:!0,parse:function(j,U){return j.host||(j.error=j.error||"HTTP URIs must have a host."),j},serialize:function(j,U){var z=String(j.scheme).toLowerCase()==="https";return(j.port===(z?443:80)||j.port==="")&&(j.port=void 0),j.path||(j.path="/"),j}},jr={scheme:"https",domainHost:Ze.domainHost,parse:Ze.parse,serialize:Ze.serialize};function Ir(j){return typeof j.secure=="boolean"?j.secure:String(j.scheme).toLowerCase()==="wss"}var Sr={scheme:"ws",domainHost:!0,parse:function(j,U){var z=j;return z.secure=Ir(z),z.resourceName=(z.path||"/")+(z.query?"?"+z.query:""),z.path=void 0,z.query=void 0,z},serialize:function(j,U){if((j.port===(Ir(j)?443:80)||j.port==="")&&(j.port=void 0),typeof j.secure=="boolean"&&(j.scheme=j.secure?"wss":"ws",j.secure=void 0),j.resourceName){var z=j.resourceName.split("?"),Q=f(z,2),Z=Q[0],yt=Q[1];j.path=Z&&Z!=="/"?Z:void 0,j.query=yt,j.resourceName=void 0}return j.fragment=void 0,j}},er={scheme:"wss",domainHost:Sr.domainHost,parse:Sr.parse,serialize:Sr.serialize},rn={},nn="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",xe="[0-9A-Fa-f]",Kr=i(i("%[EFef]"+xe+"%"+xe+xe+"%"+xe+xe)+"|"+i("%[89A-Fa-f]"+xe+"%"+xe+xe)+"|"+i("%"+xe+xe)),Or="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Yn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",mn=n(Yn,'[\\"\\\\]'),kn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Dr=new RegExp(nn,"g"),Ie=new RegExp(Kr,"g"),mo=new RegExp(n("[^]",Or,"[\\.]",'[\\"]',mn),"g"),on=new RegExp(n("[^]",nn,kn),"g"),gn=on;function $r(j){var U=K(j);return U.match(Dr)?U:j}var En={scheme:"mailto",parse:function(j,U){var z=j,Q=z.to=z.path?z.path.split(","):[];if(z.path=void 0,z.query){for(var Z=!1,yt={},vt=z.query.split("&"),It=0,oe=vt.length;It<oe;++It){var Ht=vt[It].split("=");switch(Ht[0]){case"to":for(var Ot=Ht[1].split(","),Ft=0,Zt=Ot.length;Ft<Zt;++Ft)Q.push(Ot[Ft]);break;case"subject":z.subject=$e(Ht[1],U);break;case"body":z.body=$e(Ht[1],U);break;default:Z=!0,yt[$e(Ht[0],U)]=$e(Ht[1],U);break}}Z&&(z.headers=yt)}z.query=void 0;for(var kt=0,At=Q.length;kt<At;++kt){var Xt=Q[kt].split("@");if(Xt[0]=$e(Xt[0]),U.unicodeSupport)Xt[1]=$e(Xt[1],U).toLowerCase();else try{Xt[1]=L.toASCII($e(Xt[1],U).toLowerCase())}catch(Te){z.error=z.error||"Email address's domain name can not be converted to ASCII via punycode: "+Te}Q[kt]=Xt.join("@")}return z},serialize:function(j,U){var z=j,Q=s(j.to);if(Q){for(var Z=0,yt=Q.length;Z<yt;++Z){var vt=String(Q[Z]),It=vt.lastIndexOf("@"),oe=vt.slice(0,It).replace(Ie,$r).replace(Ie,a).replace(mo,V),Ht=vt.slice(It+1);try{Ht=U.iri?L.toUnicode(Ht):L.toASCII($e(Ht,U).toLowerCase())}catch(kt){z.error=z.error||"Email address's domain name can not be converted to "+(U.iri?"Unicode":"ASCII")+" via punycode: "+kt}Q[Z]=oe+"@"+Ht}z.path=Q.join(",")}var Ot=j.headers=j.headers||{};j.subject&&(Ot.subject=j.subject),j.body&&(Ot.body=j.body);var Ft=[];for(var Zt in Ot)Ot[Zt]!==rn[Zt]&&Ft.push(Zt.replace(Ie,$r).replace(Ie,a).replace(on,V)+"="+Ot[Zt].replace(Ie,$r).replace(Ie,a).replace(gn,V));return Ft.length&&(z.query=Ft.join("&")),z}},vn=/^([^\:]+)\:(.*)/,Yr={scheme:"urn",parse:function(j,U){var z=j.path&&j.path.match(vn),Q=j;if(z){var Z=U.scheme||Q.scheme||"urn",yt=z[1].toLowerCase(),vt=z[2],It=Z+":"+(U.nid||yt),oe=D[It];Q.nid=yt,Q.nss=vt,Q.path=void 0,oe&&(Q=oe.parse(Q,U))}else Q.error=Q.error||"URN can not be parsed.";return Q},serialize:function(j,U){var z=U.scheme||j.scheme||"urn",Q=j.nid,Z=z+":"+(U.nid||Q),yt=D[Z];yt&&(j=yt.serialize(j,U));var vt=j,It=j.nss;return vt.path=(Q||U.nid)+":"+It,vt}},Xn=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Cn={scheme:"urn:uuid",parse:function(j,U){var z=j;return z.uuid=z.nss,z.nss=void 0,!U.tolerant&&(!z.uuid||!z.uuid.match(Xn))&&(z.error=z.error||"UUID is not valid."),z},serialize:function(j,U){var z=j;return z.nss=(j.uuid||"").toLowerCase(),z}};D[Ze.scheme]=Ze,D[jr.scheme]=jr,D[Sr.scheme]=Sr,D[er.scheme]=er,D[En.scheme]=En,D[Yr.scheme]=Yr,D[Cn.scheme]=Cn,r.SCHEMES=D,r.pctEncChar=V,r.pctDecChars=K,r.parse=Nt,r.removeDotSegments=he,r.serialize=Vt,r.resolveComponents=Le,r.resolve=Ue,r.normalize=Xe,r.equal=pr,r.escapeComponent=dr,r.unescapeComponent=$e,Object.defineProperty(r,"__esModule",{value:!0})})})(Ad,Ad.exports);var iy=Ad.exports;const iP=Xr(iy),oP=Mt({__proto__:null,default:iP},[iy]),aP=Lt(oP);Object.defineProperty(Od,"__esModule",{value:!0});const oy=aP;oy.code='require("ajv/dist/runtime/uri").default';var sP=Od.default=oy;const lP=Mt({__proto__:null,default:sP},[Od]),cP=Lt(lP);(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=is;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=me;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=Sd,i=Ed,o=U1,a=Td,s=me,c=Rc,l=Ac,u=Ae,d=nP,f=cP,h=(X,T)=>new RegExp(X,T);h.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],g=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."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function m(X){var T,E,k,b,C,L,D,V,K,et,it,ut,Tt,Gt,Pt,Nt,qt,Qt,Dt,fe,re,he,Vt,Le,Ue;const Xe=X.strict,pr=(T=X.code)===null||T===void 0?void 0:T.optimize,dr=pr===!0||pr===void 0?1:pr||0,$e=(k=(E=X.code)===null||E===void 0?void 0:E.regExp)!==null&&k!==void 0?k:h,Ze=(b=X.uriResolver)!==null&&b!==void 0?b:f.default;return{strictSchema:(L=(C=X.strictSchema)!==null&&C!==void 0?C:Xe)!==null&&L!==void 0?L:!0,strictNumbers:(V=(D=X.strictNumbers)!==null&&D!==void 0?D:Xe)!==null&&V!==void 0?V:!0,strictTypes:(et=(K=X.strictTypes)!==null&&K!==void 0?K:Xe)!==null&&et!==void 0?et:"log",strictTuples:(ut=(it=X.strictTuples)!==null&&it!==void 0?it:Xe)!==null&&ut!==void 0?ut:"log",strictRequired:(Gt=(Tt=X.strictRequired)!==null&&Tt!==void 0?Tt:Xe)!==null&&Gt!==void 0?Gt:!1,code:X.code?{...X.code,optimize:dr,regExp:$e}:{optimize:dr,regExp:$e},loopRequired:(Pt=X.loopRequired)!==null&&Pt!==void 0?Pt:y,loopEnum:(Nt=X.loopEnum)!==null&&Nt!==void 0?Nt:y,meta:(qt=X.meta)!==null&&qt!==void 0?qt:!0,messages:(Qt=X.messages)!==null&&Qt!==void 0?Qt:!0,inlineRefs:(Dt=X.inlineRefs)!==null&&Dt!==void 0?Dt:!0,schemaId:(fe=X.schemaId)!==null&&fe!==void 0?fe:"$id",addUsedSchema:(re=X.addUsedSchema)!==null&&re!==void 0?re:!0,validateSchema:(he=X.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(Vt=X.validateFormats)!==null&&Vt!==void 0?Vt:!0,unicodeRegExp:(Le=X.unicodeRegExp)!==null&&Le!==void 0?Le:!0,int32range:(Ue=X.int32range)!==null&&Ue!==void 0?Ue:!0,uriResolver:Ze}}class x{constructor(T={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,T=this.opts={...T,...m(T)};const{es5:E,lines:k}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:g,es5:E,lines:k}),this.logger=J(T.logger);const b=T.validateFormats;T.validateFormats=!1,this.RULES=(0,o.getRules)(),N.call(this,v,T,"NOT SUPPORTED"),N.call(this,_,T,"DEPRECATED","warn"),this._metaOpts=H.call(this),T.formats&&R.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),T.keywords&&G.call(this,T.keywords),typeof T.meta=="object"&&this.addMetaSchema(T.meta),A.call(this),T.validateFormats=b}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:T,meta:E,schemaId:k}=this.opts;let b=d;k==="id"&&(b={...d},b.id=b.$id,delete b.$id),E&&T&&this.addMetaSchema(b,b[k],!1)}defaultMeta(){const{meta:T,schemaId:E}=this.opts;return this.opts.defaultMeta=typeof T=="object"?T[E]||T:void 0}validate(T,E){let k;if(typeof T=="string"){if(k=this.getSchema(T),!k)throw new Error(`no schema with key or ref "${T}"`)}else k=this.compile(T);const b=k(E);return"$async"in k||(this.errors=k.errors),b}compile(T,E){const k=this._addSchema(T,E);return k.validate||this._compileSchemaEnv(k)}compileAsync(T,E){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:k}=this.opts;return b.call(this,T,E);async function b(et,it){await C.call(this,et.$schema);const ut=this._addSchema(et,it);return ut.validate||L.call(this,ut)}async function C(et){et&&!this.getSchema(et)&&await b.call(this,{$ref:et},!0)}async function L(et){try{return this._compileSchemaEnv(et)}catch(it){if(!(it instanceof i.default))throw it;return D.call(this,it),await V.call(this,it.missingSchema),L.call(this,et)}}function D({missingSchema:et,missingRef:it}){if(this.refs[et])throw new Error(`AnySchema ${et} is loaded but ${it} cannot be resolved`)}async function V(et){const it=await K.call(this,et);this.refs[et]||await C.call(this,it.$schema),this.refs[et]||this.addSchema(it,et,E)}async function K(et){const it=this._loading[et];if(it)return it;try{return await(this._loading[et]=k(et))}finally{delete this._loading[et]}}}addSchema(T,E,k,b=this.opts.validateSchema){if(Array.isArray(T)){for(const L of T)this.addSchema(L,void 0,k,b);return this}let C;if(typeof T=="object"){const{schemaId:L}=this.opts;if(C=T[L],C!==void 0&&typeof C!="string")throw new Error(`schema ${L} must be string`)}return E=(0,c.normalizeId)(E||C),this._checkUnique(E),this.schemas[E]=this._addSchema(T,k,E,b,!0),this}addMetaSchema(T,E,k=this.opts.validateSchema){return this.addSchema(T,E,!0,k),this}validateSchema(T,E){if(typeof T=="boolean")return!0;let k;if(k=T.$schema,k!==void 0&&typeof k!="string")throw new Error("$schema must be a string");if(k=k||this.opts.defaultMeta||this.defaultMeta(),!k)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const b=this.validate(k,T);if(!b&&E){const C="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(C);else throw new Error(C)}return b}getSchema(T){let E;for(;typeof(E=$.call(this,T))=="string";)T=E;if(E===void 0){const{schemaId:k}=this.opts,b=new a.SchemaEnv({schema:{},schemaId:k});if(E=a.resolveSchema.call(this,b,T),!E)return;this.refs[T]=E}return E.validate||this._compileSchemaEnv(E)}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 E=$.call(this,T);return typeof E=="object"&&this._cache.delete(E.schema),delete this.schemas[T],delete this.refs[T],this}case"object":{const E=T;this._cache.delete(E);let k=T[this.opts.schemaId];return k&&(k=(0,c.normalizeId)(k),delete this.schemas[k],delete this.refs[k]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(T){for(const E of T)this.addKeyword(E);return this}addKeyword(T,E){let k;if(typeof T=="string")k=T,typeof E=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),E.keyword=k);else if(typeof T=="object"&&E===void 0){if(E=T,k=E.keyword,Array.isArray(k)&&!k.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(rt.call(this,k,E),!E)return(0,u.eachItem)(k,C=>lt.call(this,C)),this;Ct.call(this,E);const b={...E,type:(0,l.getJSONTypes)(E.type),schemaType:(0,l.getJSONTypes)(E.schemaType)};return(0,u.eachItem)(k,b.type.length===0?C=>lt.call(this,C,b):C=>b.type.forEach(L=>lt.call(this,C,b,L))),this}getKeyword(T){const E=this.RULES.all[T];return typeof E=="object"?E.definition:!!E}removeKeyword(T){const{RULES:E}=this;delete E.keywords[T],delete E.all[T];for(const k of E.rules){const b=k.rules.findIndex(C=>C.keyword===T);b>=0&&k.rules.splice(b,1)}return this}addFormat(T,E){return typeof E=="string"&&(E=new RegExp(E)),this.formats[T]=E,this}errorsText(T=this.errors,{separator:E=", ",dataVar:k="data"}={}){return!T||T.length===0?"No errors":T.map(b=>`${k}${b.instancePath} ${b.message}`).reduce((b,C)=>b+E+C)}$dataMetaSchema(T,E){const k=this.RULES.all;T=JSON.parse(JSON.stringify(T));for(const b of E){const C=b.split("/").slice(1);let L=T;for(const D of C)L=L[D];for(const D in k){const V=k[D];if(typeof V!="object")continue;const{$data:K}=V.definition,et=L[D];K&&et&&(L[D]=at(et))}}return T}_removeAllSchemas(T,E){for(const k in T){const b=T[k];(!E||E.test(k))&&(typeof b=="string"?delete T[k]:b&&!b.meta&&(this._cache.delete(b.schema),delete T[k]))}}_addSchema(T,E,k,b=this.opts.validateSchema,C=this.opts.addUsedSchema){let L;const{schemaId:D}=this.opts;if(typeof T=="object")L=T[D];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 V=this._cache.get(T);if(V!==void 0)return V;k=(0,c.normalizeId)(L||k);const K=c.getSchemaRefs.call(this,T,k);return V=new a.SchemaEnv({schema:T,schemaId:D,meta:E,baseId:k,localRefs:K}),this._cache.set(V.schema,V),C&&!k.startsWith("#")&&(k&&this._checkUnique(k),this.refs[k]=V),b&&this.validateSchema(T,!0),V}_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):a.compileSchema.call(this,T),!T.validate)throw new Error("ajv implementation error");return T.validate}_compileMetaSchema(T){const E=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,T)}finally{this.opts=E}}}e.default=x,x.ValidationError=n.default,x.MissingRefError=i.default;function N(X,T,E,k="error"){for(const b in X){const C=b;C in T&&this.logger[k](`${E}: option ${b}. ${X[C]}`)}}function $(X){return X=(0,c.normalizeId)(X),this.schemas[X]||this.refs[X]}function A(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const T in X)this.addSchema(X[T],T)}function R(){for(const X in this.opts.formats){const T=this.opts.formats[X];T&&this.addFormat(X,T)}}function G(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const T in X){const E=X[T];E.keyword||(E.keyword=T),this.addKeyword(E)}}function H(){const X={...this.opts};for(const T of p)delete X[T];return X}const Y={log(){},warn(){},error(){}};function J(X){if(X===!1)return Y;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const nt=/^[a-z_$][a-z0-9_$:-]*$/i;function rt(X,T){const{RULES:E}=this;if((0,u.eachItem)(X,k=>{if(E.keywords[k])throw new Error(`Keyword ${k} is already defined`);if(!nt.test(k))throw new Error(`Keyword ${k} has invalid name`)}),!!T&&T.$data&&!("code"in T||"validate"in T))throw new Error('$data keyword must have "code" or "validate" function')}function lt(X,T,E){var k;const b=T==null?void 0:T.post;if(E&&b)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:C}=this;let L=b?C.post:C.rules.find(({type:V})=>V===E);if(L||(L={type:E,rules:[]},C.rules.push(L)),C.keywords[X]=!0,!T)return;const D={keyword:X,definition:{...T,type:(0,l.getJSONTypes)(T.type),schemaType:(0,l.getJSONTypes)(T.schemaType)}};T.before?xt.call(this,L,D,T.before):L.rules.push(D),C.all[X]=D,(k=T.implements)===null||k===void 0||k.forEach(V=>this.addKeyword(V))}function xt(X,T,E){const k=X.rules.findIndex(b=>b.keyword===E);k>=0?X.rules.splice(k,0,T):(X.rules.push(T),this.logger.warn(`rule ${E} is not defined`))}function Ct(X){let{metaSchema:T}=X;T!==void 0&&(X.$data&&this.opts.$data&&(T=at(T)),X.validateSchema=this.compile(T,!0))}const $t={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function at(X){return{anyOf:[X,$t]}}})(sd);const uP=Xr(sd),hP=Mt({__proto__:null,default:uP},[sd]),dP=Lt(hP);var Nd={},Rd={},jd={};Object.defineProperty(jd,"__esModule",{value:!0});const fP={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var pP=jd.default=fP;const mP=Mt({__proto__:null,default:pP},[jd]),gP=Lt(mP);var xo={};Object.defineProperty(xo,"__esModule",{value:!0});var ay=xo.callRef=uy=xo.getValidate=void 0;const vP=Ed,sy=Rn,Wr=me,ca=gi,ly=Td,Fc=Ae,yP={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:s,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return d();const u=ly.resolveRef.call(c,l,i,r);if(u===void 0)throw new vP.default(n.opts.uriResolver,i,r);if(u instanceof ly.SchemaEnv)return f(u);return h(u);function d(){if(o===l)return Mc(e,a,o,o.$async);const p=t.scopeValue("root",{ref:l});return Mc(e,(0,Wr._)`${p}.validate`,l,l.$async)}function f(p){const g=cy(e,p);Mc(e,g,p,p.$async)}function h(p){const g=t.scopeValue("schema",s.code.source===!0?{ref:p,code:(0,Wr.stringify)(p)}:{ref:p}),v=t.name("valid"),_=e.subschema({schema:p,dataTypes:[],schemaPath:Wr.nil,topSchemaRef:g,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function cy(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Wr._)`${r.scopeValue("wrapper",{ref:t})}.validate`}var uy=xo.getValidate=cy;function Mc(e,t,r,n){const{gen:i,it:o}=e,{allErrors:a,schemaEnv:s,opts:c}=o,l=c.passContext?ca.default.this:Wr.nil;n?u():d();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const p=i.let("valid");i.try(()=>{i.code((0,Wr._)`await ${(0,sy.callValidateCode)(e,t,l)}`),h(t),a||i.assign(p,!0)},g=>{i.if((0,Wr._)`!(${g} instanceof ${o.ValidationError})`,()=>i.throw(g)),f(g),a||i.assign(p,!1)}),e.ok(p)}function d(){e.result((0,sy.callValidateCode)(e,t,l),()=>h(t),()=>f(t))}function f(p){const g=(0,Wr._)`${p}.errors`;i.assign(ca.default.vErrors,(0,Wr._)`${ca.default.vErrors} === null ? ${g} : ${ca.default.vErrors}.concat(${g})`),i.assign(ca.default.errors,(0,Wr._)`${ca.default.vErrors}.length`)}function h(p){var g;if(!o.opts.unevaluated)return;const v=(g=r==null?void 0:r.validate)===null||g===void 0?void 0:g.evaluated;if(o.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(o.props=Fc.mergeEvaluated.props(i,v.props,o.props));else{const _=i.var("props",(0,Wr._)`${p}.evaluated.props`);o.props=Fc.mergeEvaluated.props(i,_,o.props,Wr.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=Fc.mergeEvaluated.items(i,v.items,o.items));else{const _=i.var("items",(0,Wr._)`${p}.evaluated.items`);o.items=Fc.mergeEvaluated.items(i,_,o.items,Wr.Name)}}}ay=xo.callRef=Mc;var _P=xo.default=yP;const bP=Mt({__proto__:null,get callRef(){return ay},default:_P,get getValidate(){return uy}},[xo]),wP=Lt(bP);Object.defineProperty(Rd,"__esModule",{value:!0});const xP=gP,SP=wP,$P=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",xP.default,SP.default];var kP=Rd.default=$P;const EP=Mt({__proto__:null,default:kP},[Rd]),CP=Lt(EP);var Id={},Dd={};Object.defineProperty(Dd,"__esModule",{value:!0});const Lc=me,Bi=Lc.operators,Uc={maximum:{okStr:"<=",ok:Bi.LTE,fail:Bi.GT},minimum:{okStr:">=",ok:Bi.GTE,fail:Bi.LT},exclusiveMaximum:{okStr:"<",ok:Bi.LT,fail:Bi.GTE},exclusiveMinimum:{okStr:">",ok:Bi.GT,fail:Bi.LTE}},PP={message:({keyword:e,schemaCode:t})=>(0,Lc.str)`must be ${Uc[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Lc._)`{comparison: ${Uc[e].okStr}, limit: ${t}}`},TP={keyword:Object.keys(Uc),type:"number",schemaType:"number",$data:!0,error:PP,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Lc._)`${r} ${Uc[t].fail} ${n} || isNaN(${r})`)}};var OP=Dd.default=TP;const AP=Mt({__proto__:null,default:OP},[Dd]),NP=Lt(AP);var Fd={};Object.defineProperty(Fd,"__esModule",{value:!0});const os=me,RP={message:({schemaCode:e})=>(0,os.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,os._)`{multipleOf: ${e}}`},jP={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:RP,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),s=o?(0,os._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,os._)`${a} !== parseInt(${a})`;e.fail$data((0,os._)`(${n} === 0 || (${a} = ${r}/${n}, ${s}))`)}};var IP=Fd.default=jP;const DP=Mt({__proto__:null,default:IP},[Fd]),FP=Lt(DP);var Md={},Ld={};Object.defineProperty(Ld,"__esModule",{value:!0});function hy(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 MP=Ld.default=hy;hy.code='require("ajv/dist/runtime/ucs2length").default';const LP=Mt({__proto__:null,default:MP},[Ld]),UP=Lt(LP);Object.defineProperty(Md,"__esModule",{value:!0});const So=me,zP=Ae,GP=UP,VP={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,So.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,So._)`{limit: ${e}}`},BP={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:VP,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?So.operators.GT:So.operators.LT,a=i.opts.unicode===!1?(0,So._)`${r}.length`:(0,So._)`${(0,zP.useFunc)(e.gen,GP.default)}(${r})`;e.fail$data((0,So._)`${a} ${o} ${n}`)}};var HP=Md.default=BP;const qP=Mt({__proto__:null,default:HP},[Md]),KP=Lt(qP);var Ud={};Object.defineProperty(Ud,"__esModule",{value:!0});const YP=Rn,zc=me,XP={message:({schemaCode:e})=>(0,zc.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,zc._)`{pattern: ${e}}`},WP={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:XP,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",s=r?(0,zc._)`(new RegExp(${i}, ${a}))`:(0,YP.usePattern)(e,n);e.fail$data((0,zc._)`!${s}.test(${t})`)}};var JP=Ud.default=WP;const QP=Mt({__proto__:null,default:JP},[Ud]),ZP=Lt(QP);var zd={};Object.defineProperty(zd,"__esModule",{value:!0});const as=me,t6={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,as.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,as._)`{limit: ${e}}`},e6={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:t6,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?as.operators.GT:as.operators.LT;e.fail$data((0,as._)`Object.keys(${r}).length ${i} ${n}`)}};var r6=zd.default=e6;const n6=Mt({__proto__:null,default:r6},[zd]),i6=Lt(n6);var Gd={};Object.defineProperty(Gd,"__esModule",{value:!0});const ss=Rn,ls=me,o6=Ae,a6={message:({params:{missingProperty:e}})=>(0,ls.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,ls._)`{missingProperty: ${e}}`},s6={keyword:"required",type:"object",schemaType:"array",$data:!0,error:a6,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:s}=a;if(!o&&r.length===0)return;const c=r.length>=s.loopRequired;if(a.allErrors?l():u(),s.strictRequired){const h=e.parentSchema.properties,{definedProperties:p}=e.it;for(const g of r)if((h==null?void 0:h[g])===void 0&&!p.has(g)){const v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${g}" is not defined at "${v}" (strictRequired)`;(0,o6.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(c||o)e.block$data(ls.nil,d);else for(const h of r)(0,ss.checkReportMissingProp)(e,h)}function u(){const h=t.let("missing");if(c||o){const p=t.let("valid",!0);e.block$data(p,()=>f(h,p)),e.ok(p)}else t.if((0,ss.checkMissingProp)(e,r,h)),(0,ss.reportMissingProp)(e,h),t.else()}function d(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,ss.noPropertyInData)(t,i,h,s.ownProperties),()=>e.error())})}function f(h,p){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(p,(0,ss.propertyInData)(t,i,h,s.ownProperties)),t.if((0,ls.not)(p),()=>{e.error(),t.break()})},ls.nil)}}};var l6=Gd.default=s6;const c6=Mt({__proto__:null,default:l6},[Gd]),u6=Lt(c6);var Vd={};Object.defineProperty(Vd,"__esModule",{value:!0});const cs=me,h6={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,cs.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,cs._)`{limit: ${e}}`},d6={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:h6,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?cs.operators.GT:cs.operators.LT;e.fail$data((0,cs._)`${r}.length ${i} ${n}`)}};var f6=Vd.default=d6;const p6=Mt({__proto__:null,default:f6},[Vd]),m6=Lt(p6);var Bd={},Hd={};Object.defineProperty(Hd,"__esModule",{value:!0});const dy=wv;dy.code='require("ajv/dist/runtime/equal").default';var g6=Hd.default=dy;const v6=Mt({__proto__:null,default:g6},[Hd]),qd=Lt(v6);Object.defineProperty(Bd,"__esModule",{value:!0});const Kd=Ac,Er=me,y6=Ae,_6=qd,b6={message:({params:{i:e,j:t}})=>(0,Er.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Er._)`{i: ${e}, j: ${t}}`},w6={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:b6,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:s}=e;if(!n&&!i)return;const c=t.let("valid"),l=o.items?(0,Kd.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,Er._)`${a} === false`),e.ok(c);function u(){const p=t.let("i",(0,Er._)`${r}.length`),g=t.let("j");e.setParams({i:p,j:g}),t.assign(c,!0),t.if((0,Er._)`${p} > 1`,()=>(d()?f:h)(p,g))}function d(){return l.length>0&&!l.some(p=>p==="object"||p==="array")}function f(p,g){const v=t.name("item"),_=(0,Kd.checkDataTypes)(l,v,s.opts.strictNumbers,Kd.DataType.Wrong),y=t.const("indices",(0,Er._)`{}`);t.for((0,Er._)`;${p}--;`,()=>{t.let(v,(0,Er._)`${r}[${p}]`),t.if(_,(0,Er._)`continue`),l.length>1&&t.if((0,Er._)`typeof ${v} == "string"`,(0,Er._)`${v} += "_"`),t.if((0,Er._)`typeof ${y}[${v}] == "number"`,()=>{t.assign(g,(0,Er._)`${y}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,Er._)`${y}[${v}] = ${p}`)})}function h(p,g){const v=(0,y6.useFunc)(t,_6.default),_=t.name("outer");t.label(_).for((0,Er._)`;${p}--;`,()=>t.for((0,Er._)`${g} = ${p}; ${g}--;`,()=>t.if((0,Er._)`${v}(${r}[${p}], ${r}[${g}])`,()=>{e.error(),t.assign(c,!1).break(_)})))}}};var x6=Bd.default=w6;const S6=Mt({__proto__:null,default:x6},[Bd]),$6=Lt(S6);var Yd={};Object.defineProperty(Yd,"__esModule",{value:!0});const Xd=me,k6=Ae,E6=qd,C6={message:"must be equal to constant",params:({schemaCode:e})=>(0,Xd._)`{allowedValue: ${e}}`},P6={keyword:"const",$data:!0,error:C6,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Xd._)`!${(0,k6.useFunc)(t,E6.default)}(${r}, ${i})`):e.fail((0,Xd._)`${o} !== ${r}`)}};var T6=Yd.default=P6;const O6=Mt({__proto__:null,default:T6},[Yd]),A6=Lt(O6);var Wd={};Object.defineProperty(Wd,"__esModule",{value:!0});const us=me,N6=Ae,R6=qd,j6={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,us._)`{allowedValues: ${e}}`},I6={keyword:"enum",schemaType:"array",$data:!0,error:j6,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const s=i.length>=a.opts.loopEnum;let c;const l=()=>c??(c=(0,N6.useFunc)(t,R6.default));let u;if(s||n)u=t.let("valid"),e.block$data(u,d);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const h=t.const("vSchema",o);u=(0,us.or)(...i.map((p,g)=>f(h,g)))}e.pass(u);function d(){t.assign(u,!1),t.forOf("v",o,h=>t.if((0,us._)`${l()}(${r}, ${h})`,()=>t.assign(u,!0).break()))}function f(h,p){const g=i[p];return typeof g=="object"&&g!==null?(0,us._)`${l()}(${r}, ${h}[${p}])`:(0,us._)`${r} === ${g}`}}};var D6=Wd.default=I6;const F6=Mt({__proto__:null,default:D6},[Wd]),M6=Lt(F6);Object.defineProperty(Id,"__esModule",{value:!0});const L6=NP,U6=FP,z6=KP,G6=ZP,V6=i6,B6=u6,H6=m6,q6=$6,K6=A6,Y6=M6,X6=[L6.default,U6.default,z6.default,G6.default,V6.default,B6.default,H6.default,q6.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},K6.default,Y6.default];var W6=Id.default=X6;const J6=Mt({__proto__:null,default:W6},[Id]),Q6=Lt(J6);var Jd={},hs={};Object.defineProperty(hs,"__esModule",{value:!0});var fy=hs.validateAdditionalItems=void 0;const $o=me,Qd=Ae,Z6={message:({params:{len:e}})=>(0,$o.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,$o._)`{limit: ${e}}`},tT={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Z6,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Qd.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}py(e,n)}};function py(e,t){const{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;const s=r.const("len",(0,$o._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,$o._)`${s} <= ${t.length}`);else if(typeof n=="object"&&!(0,Qd.alwaysValidSchema)(a,n)){const l=r.var("valid",(0,$o._)`${s} <= ${t.length}`);r.if((0,$o.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,s,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:Qd.Type.Num},l),a.allErrors||r.if((0,$o.not)(l),()=>r.break())})}}fy=hs.validateAdditionalItems=py;var eT=hs.default=tT;const rT=Mt({__proto__:null,default:eT,get validateAdditionalItems(){return fy}},[hs]),my=Lt(rT);var Zd={},ds={};Object.defineProperty(ds,"__esModule",{value:!0});var gy=ds.validateTuple=void 0;const vy=me,Gc=Ae,nT=Rn,iT={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return yy(e,"additionalItems",t);r.items=!0,!(0,Gc.alwaysValidSchema)(r,t)&&e.ok((0,nT.validateArray)(e))}};function yy(e,t,r=e.schema){const{gen:n,parentSchema:i,data:o,keyword:a,it:s}=e;u(i),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=Gc.mergeEvaluated.items(n,r.length,s.items));const c=n.name("valid"),l=n.const("len",(0,vy._)`${o}.length`);r.forEach((d,f)=>{(0,Gc.alwaysValidSchema)(s,d)||(n.if((0,vy._)`${l} > ${f}`,()=>e.subschema({keyword:a,schemaProp:f,dataProp:f},c)),e.ok(c))});function u(d){const{opts:f,errSchemaPath:h}=s,p=r.length,g=p===d.minItems&&(p===d.maxItems||d[t]===!1);if(f.strictTuples&&!g){const v=`"${a}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Gc.checkStrictMode)(s,v,f.strictTuples)}}}gy=ds.validateTuple=yy;var oT=ds.default=iT;const aT=Mt({__proto__:null,default:oT,get validateTuple(){return gy}},[ds]),_y=Lt(aT);Object.defineProperty(Zd,"__esModule",{value:!0});const sT=_y,lT={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,sT.validateTuple)(e,"items")};var cT=Zd.default=lT;const uT=Mt({__proto__:null,default:cT},[Zd]),hT=Lt(uT);var tf={};Object.defineProperty(tf,"__esModule",{value:!0});const by=me,dT=Ae,fT=Rn,pT=my,mT={message:({params:{len:e}})=>(0,by.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,by._)`{limit: ${e}}`},gT={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:mT,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,dT.alwaysValidSchema)(n,t)&&(i?(0,pT.validateAdditionalItems)(e,i):e.ok((0,fT.validateArray)(e)))}};var vT=tf.default=gT;const yT=Mt({__proto__:null,default:vT},[tf]),_T=Lt(yT);var ef={};Object.defineProperty(ef,"__esModule",{value:!0});const _n=me,Vc=Ae,bT={message:({params:{min:e,max:t}})=>t===void 0?(0,_n.str)`must contain at least ${e} valid item(s)`:(0,_n.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,_n._)`{minContains: ${e}}`:(0,_n._)`{minContains: ${e}, maxContains: ${t}}`},wT={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:bT,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;let a,s;const{minContains:c,maxContains:l}=n;o.opts.next?(a=c===void 0?1:c,s=l):a=1;const u=t.const("len",(0,_n._)`${i}.length`);if(e.setParams({min:a,max:s}),s===void 0&&a===0){(0,Vc.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&a>s){(0,Vc.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Vc.alwaysValidSchema)(o,r)){let g=(0,_n._)`${u} >= ${a}`;s!==void 0&&(g=(0,_n._)`${g} && ${u} <= ${s}`),e.pass(g);return}o.items=!0;const d=t.name("valid");s===void 0&&a===1?h(d,()=>t.if(d,()=>t.break())):a===0?(t.let(d,!0),s!==void 0&&t.if((0,_n._)`${i}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,()=>e.reset());function f(){const g=t.name("_valid"),v=t.let("count",0);h(g,()=>t.if(g,()=>p(v)))}function h(g,v){t.forRange("i",0,u,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:Vc.Type.Num,compositeRule:!0},g),v()})}function p(g){t.code((0,_n._)`${g}++`),s===void 0?t.if((0,_n._)`${g} >= ${a}`,()=>t.assign(d,!0).break()):(t.if((0,_n._)`${g} > ${s}`,()=>t.assign(d,!1).break()),a===1?t.assign(d,!0):t.if((0,_n._)`${g} >= ${a}`,()=>t.assign(d,!0)))}}};var xT=ef.default=wT;const ST=Mt({__proto__:null,default:xT},[ef]),$T=Lt(ST);var rf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=me,r=Ae,n=Rn;e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const d=l===1?"property":"properties";return(0,t.str)`must have ${d} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:d}})=>(0,t._)`{property: ${c},
|
|
22
|
-
missingProperty: ${d},
|
|
23
|
-
depsCount: ${l},
|
|
24
|
-
deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,u]=o(c);a(c,l),s(c,u)}};function o({schema:c}){const l={},u={};for(const d in c){if(d==="__proto__")continue;const f=Array.isArray(c[d])?l:u;f[d]=c[d]}return[l,u]}function a(c,l=c.schema){const{gen:u,data:d,it:f}=c;if(Object.keys(l).length===0)return;const h=u.let("missing");for(const p in l){const g=l[p];if(g.length===0)continue;const v=(0,n.propertyInData)(u,d,p,f.opts.ownProperties);c.setParams({property:p,depsCount:g.length,deps:g.join(", ")}),f.allErrors?u.if(v,()=>{for(const _ of g)(0,n.checkReportMissingProp)(c,_)}):(u.if((0,t._)`${v} && (${(0,n.checkMissingProp)(c,g,h)})`),(0,n.reportMissingProp)(c,h),u.else())}}e.validatePropertyDeps=a;function s(c,l=c.schema){const{gen:u,data:d,keyword:f,it:h}=c,p=u.name("valid");for(const g in l)(0,r.alwaysValidSchema)(h,l[g])||(u.if((0,n.propertyInData)(u,d,g,h.opts.ownProperties),()=>{const v=c.subschema({keyword:f,schemaProp:g},p);c.mergeValidEvaluated(v,p)},()=>u.var(p,!0)),c.ok(p))}e.validateSchemaDeps=s,e.default=i})(rf);const kT=Xr(rf),ET=Mt({__proto__:null,default:kT},[rf]),CT=Lt(ET);var nf={};Object.defineProperty(nf,"__esModule",{value:!0});const wy=me,PT=Ae,TT={message:"property name must be valid",params:({params:e})=>(0,wy._)`{propertyName: ${e.propertyName}}`},OT={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:TT,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,PT.alwaysValidSchema)(i,r))return;const o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,wy.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};var AT=nf.default=OT;const NT=Mt({__proto__:null,default:AT},[nf]),RT=Lt(NT);var of={};Object.defineProperty(of,"__esModule",{value:!0});const Bc=Rn,Dn=me,jT=gi,Hc=Ae,IT={message:"must NOT have additional properties",params:({params:e})=>(0,Dn._)`{additionalProperty: ${e.additionalProperty}}`},DT={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:IT,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");const{allErrors:s,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,Hc.alwaysValidSchema)(a,r))return;const l=(0,Bc.allSchemaProperties)(n.properties),u=(0,Bc.allSchemaProperties)(n.patternProperties);d(),e.ok((0,Dn._)`${o} === ${jT.default.errors}`);function d(){t.forIn("key",i,v=>{!l.length&&!u.length?p(v):t.if(f(v),()=>p(v))})}function f(v){let _;if(l.length>8){const y=(0,Hc.schemaRefOrVal)(a,n.properties,"properties");_=(0,Bc.isOwnProperty)(t,y,v)}else l.length?_=(0,Dn.or)(...l.map(y=>(0,Dn._)`${v} === ${y}`)):_=Dn.nil;return u.length&&(_=(0,Dn.or)(_,...u.map(y=>(0,Dn._)`${(0,Bc.usePattern)(e,y)}.test(${v})`))),(0,Dn.not)(_)}function h(v){t.code((0,Dn._)`delete ${i}[${v}]`)}function p(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,Hc.alwaysValidSchema)(a,r)){const _=t.name("valid");c.removeAdditional==="failing"?(g(v,_,!1),t.if((0,Dn.not)(_),()=>{e.reset(),h(v)})):(g(v,_),s||t.if((0,Dn.not)(_),()=>t.break()))}}function g(v,_,y){const m={keyword:"additionalProperties",dataProp:v,dataPropType:Hc.Type.Str};y===!1&&Object.assign(m,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(m,_)}}};var FT=of.default=DT;const MT=Mt({__proto__:null,default:FT},[of]),xy=Lt(MT);var af={};Object.defineProperty(af,"__esModule",{value:!0});const LT=is,Sy=Rn,sf=Ae,$y=xy,UT={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&&$y.default.code(new LT.KeywordCxt(o,$y.default,"additionalProperties"));const a=(0,Sy.allSchemaProperties)(r);for(const d of a)o.definedProperties.add(d);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=sf.mergeEvaluated.props(t,(0,sf.toHash)(a),o.props));const s=a.filter(d=>!(0,sf.alwaysValidSchema)(o,r[d]));if(s.length===0)return;const c=t.name("valid");for(const d of s)l(d)?u(d):(t.if((0,Sy.propertyInData)(t,i,d,o.opts.ownProperties)),u(d),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(c);function l(d){return o.opts.useDefaults&&!o.compositeRule&&r[d].default!==void 0}function u(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},c)}}};var zT=af.default=UT;const GT=Mt({__proto__:null,default:zT},[af]),VT=Lt(GT);var lf={};Object.defineProperty(lf,"__esModule",{value:!0});const ky=Rn,qc=me,Ey=Ae,Cy=Ae,BT={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,s=(0,ky.allSchemaProperties)(r),c=s.filter(g=>(0,Ey.alwaysValidSchema)(o,r[g]));if(s.length===0||c.length===s.length&&(!o.opts.unevaluated||o.props===!0))return;const l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof qc.Name)&&(o.props=(0,Cy.evaluatedPropsToName)(t,o.props));const{props:d}=o;f();function f(){for(const g of s)l&&h(g),o.allErrors?p(g):(t.var(u,!0),p(g),t.if(u))}function h(g){for(const v in l)new RegExp(g).test(v)&&(0,Ey.checkStrictMode)(o,`property ${v} matches pattern ${g} (use allowMatchingProperties)`)}function p(g){t.forIn("key",n,v=>{t.if((0,qc._)`${(0,ky.usePattern)(e,g)}.test(${v})`,()=>{const _=c.includes(g);_||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:v,dataPropType:Cy.Type.Str},u),o.opts.unevaluated&&d!==!0?t.assign((0,qc._)`${d}[${v}]`,!0):!_&&!o.allErrors&&t.if((0,qc.not)(u),()=>t.break())})})}}};var HT=lf.default=BT;const qT=Mt({__proto__:null,default:HT},[lf]),KT=Lt(qT);var cf={};Object.defineProperty(cf,"__esModule",{value:!0});const YT=Ae,XT={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,YT.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 WT=cf.default=XT;const JT=Mt({__proto__:null,default:WT},[cf]),QT=Lt(JT);var uf={};Object.defineProperty(uf,"__esModule",{value:!0});const ZT=Rn,t8={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ZT.validateUnion,error:{message:"must match a schema in anyOf"}};var e8=uf.default=t8;const r8=Mt({__proto__:null,default:e8},[uf]),n8=Lt(r8);var hf={};Object.defineProperty(hf,"__esModule",{value:!0});const Kc=me,i8=Ae,o8={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Kc._)`{passingSchemas: ${e.passing}}`},a8={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:o8,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,a=t.let("valid",!1),s=t.let("passing",null),c=t.name("_valid");e.setParams({passing:s}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,d)=>{let f;(0,i8.alwaysValidSchema)(i,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},c),d>0&&t.if((0,Kc._)`${c} && ${a}`).assign(a,!1).assign(s,(0,Kc._)`[${s}, ${d}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(s,d),f&&e.mergeEvaluated(f,Kc.Name)})})}}};var s8=hf.default=a8;const l8=Mt({__proto__:null,default:s8},[hf]),c8=Lt(l8);var df={};Object.defineProperty(df,"__esModule",{value:!0});const u8=Ae,h8={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,a)=>{if((0,u8.alwaysValidSchema)(n,o))return;const s=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(s)})}};var d8=df.default=h8;const f8=Mt({__proto__:null,default:d8},[df]),p8=Lt(f8);var ff={};Object.defineProperty(ff,"__esModule",{value:!0});const Yc=me,Py=Ae,m8={message:({params:e})=>(0,Yc.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Yc._)`{failingKeyword: ${e.ifClause}}`},g8={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:m8,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Py.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=Ty(n,"then"),o=Ty(n,"else");if(!i&&!o)return;const a=t.let("valid",!0),s=t.name("_valid");if(c(),e.reset(),i&&o){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,l("then",u),l("else",u))}else i?t.if(s,l("then")):t.if((0,Yc.not)(s),l("else"));e.pass(a,()=>e.error(!0));function c(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function l(u,d){return()=>{const f=e.subschema({keyword:u},s);t.assign(a,s),e.mergeValidEvaluated(f,a),d?t.assign(d,(0,Yc._)`${u}`):e.setParams({ifClause:u})}}}};function Ty(e,t){const r=e.schema[t];return r!==void 0&&!(0,Py.alwaysValidSchema)(e,r)}var v8=ff.default=g8;const y8=Mt({__proto__:null,default:v8},[ff]),_8=Lt(y8);var pf={};Object.defineProperty(pf,"__esModule",{value:!0});const b8=Ae,w8={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,b8.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};var x8=pf.default=w8;const S8=Mt({__proto__:null,default:x8},[pf]),$8=Lt(S8);Object.defineProperty(Jd,"__esModule",{value:!0});const k8=my,E8=hT,C8=_y,P8=_T,T8=$T,O8=CT,A8=RT,N8=xy,R8=VT,j8=KT,I8=QT,D8=n8,F8=c8,M8=p8,L8=_8,U8=$8;function z8(e=!1){const t=[I8.default,D8.default,F8.default,M8.default,L8.default,U8.default,A8.default,N8.default,O8.default,R8.default,j8.default];return e?t.push(E8.default,P8.default):t.push(k8.default,C8.default),t.push(T8.default),t}var G8=Jd.default=z8;const V8=Mt({__proto__:null,default:G8},[Jd]),B8=Lt(V8);var mf={},gf={};Object.defineProperty(gf,"__esModule",{value:!0});const lr=me,H8={message:({schemaCode:e})=>(0,lr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,lr._)`{format: ${e}}`},q8={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:H8,code(e,t){const{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:s}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:d}=s;if(!c.validateFormats)return;i?f():h();function f(){const p=r.scopeValue("formats",{ref:d.formats,code:c.code.formats}),g=r.const("fDef",(0,lr._)`${p}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,lr._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(v,(0,lr._)`${g}.type || "string"`).assign(_,(0,lr._)`${g}.validate`),()=>r.assign(v,(0,lr._)`"string"`).assign(_,g)),e.fail$data((0,lr.or)(y(),m()));function y(){return c.strictSchema===!1?lr.nil:(0,lr._)`${a} && !${_}`}function m(){const x=u.$async?(0,lr._)`(${g}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,lr._)`${_}(${n})`,N=(0,lr._)`(typeof ${_} == "function" ? ${x} : ${_}.test(${n}))`;return(0,lr._)`${_} && ${_} !== true && ${v} === ${t} && !${N}`}}function h(){const p=d.formats[o];if(!p){y();return}if(p===!0)return;const[g,v,_]=m(p);g===t&&e.pass(x());function y(){if(c.strictSchema===!1){d.logger.warn(N());return}throw new Error(N());function N(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function m(N){const $=N instanceof RegExp?(0,lr.regexpCode)(N):c.code.formats?(0,lr._)`${c.code.formats}${(0,lr.getProperty)(o)}`:void 0,A=r.scopeValue("formats",{key:o,ref:N,code:$});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,lr._)`${A}.validate`]:["string",N,A]}function x(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,lr._)`await ${_}(${n})`}return typeof v=="function"?(0,lr._)`${_}(${n})`:(0,lr._)`${_}.test(${n})`}}}};var K8=gf.default=q8;const Y8=Mt({__proto__:null,default:K8},[gf]),X8=Lt(Y8);Object.defineProperty(mf,"__esModule",{value:!0});const W8=X8,J8=[W8.default];var Q8=mf.default=J8;const Z8=Mt({__proto__:null,default:Q8},[mf]),tO=Lt(Z8);var ko={};Object.defineProperty(ko,"__esModule",{value:!0});var Oy=ko.contentVocabulary=Ay=ko.metadataVocabulary=void 0,Ay=ko.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Oy=ko.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];const eO=Mt({__proto__:null,get contentVocabulary(){return Oy},default:ko,get metadataVocabulary(){return Ay}},[ko]),rO=Lt(eO);Object.defineProperty(Nd,"__esModule",{value:!0});const nO=CP,iO=Q6,oO=B8,aO=tO,Ny=rO,sO=[nO.default,iO.default,(0,oO.default)(),aO.default,Ny.metadataVocabulary,Ny.contentVocabulary];var lO=Nd.default=sO;const cO=Mt({__proto__:null,default:lO},[Nd]),uO=Lt(cO);var vf={},yf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(yf);const hO=Xr(yf),dO=Mt({__proto__:null,default:hO},[yf]),fO=Lt(dO);Object.defineProperty(vf,"__esModule",{value:!0});const ua=me,_f=fO,Ry=Td,pO=Ae,mO={message:({params:{discrError:e,tagName:t}})=>e===_f.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}}`},gO={keyword:"discriminator",type:"object",schemaType:"object",error:mO,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),l=t.const("tag",(0,ua._)`${r}${(0,ua.getProperty)(s)}`);t.if((0,ua._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:_f.DiscrError.Tag,tag:l,tagName:s})),e.ok(c);function u(){const h=f();t.if(!1);for(const p in h)t.elseIf((0,ua._)`${l} === ${p}`),t.assign(c,d(h[p]));t.else(),e.error(!1,{discrError:_f.DiscrError.Mapping,tag:l,tagName:s}),t.endIf()}function d(h){const p=t.name("valid"),g=e.subschema({keyword:"oneOf",schemaProp:h},p);return e.mergeEvaluated(g,ua.Name),p}function f(){var h;const p={},g=_(i);let v=!0;for(let x=0;x<a.length;x++){let N=a[x];N!=null&&N.$ref&&!(0,pO.schemaHasRulesButRef)(N,o.self.RULES)&&(N=Ry.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,N==null?void 0:N.$ref),N instanceof Ry.SchemaEnv&&(N=N.schema));const $=(h=N==null?void 0:N.properties)===null||h===void 0?void 0:h[s];if(typeof $!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);v=v&&(g||_(N)),y($,x)}if(!v)throw new Error(`discriminator: "${s}" must be required`);return p;function _({required:x}){return Array.isArray(x)&&x.includes(s)}function y(x,N){if(x.const)m(x.const,N);else if(x.enum)for(const $ of x.enum)m($,N);else throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`)}function m(x,N){if(typeof x!="string"||x in p)throw new Error(`discriminator: "${s}" values must be unique strings`);p[x]=N}}}};var vO=vf.default=gO;const yO=Mt({__proto__:null,default:vO},[vf]),_O=Lt(yO),bO="http://json-schema.org/draft-07/schema#",wO="http://json-schema.org/draft-07/schema#",xO="Core schema meta-schema",SO={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:[]}},$O=["object","boolean"],kO={$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:"#"}},EO={$schema:bO,$id:wO,title:xO,definitions:SO,type:$O,properties:kO,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=dP,n=uO,i=_O,o=EO,a=["/properties"],s="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,a):o;this.addMetaSchema(p,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=is;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=me;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 d=Sd;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=Ed;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(ad,ad.exports);var jy=ad.exports;const Iy=Xr(jy),CO=Mt({__proto__:null,default:Iy},[jy]);var bf={exports:{}};const PO=Lt(CO);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=PO,n=me,i=Za,o=is,a=ts,s=gi,c="errorMessage",l=new r.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},d=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,h=/^""\s*\+\s*|\s*\+\s*""$/g;function p(v){return{keyword:c,schemaType:["string","object"],post:!0,code(_){const{gen:y,data:m,schema:x,schemaValue:N,it:$}=_;if($.createErrors===!1)return;const A=x,R=n.strConcat(s.default.instancePath,$.errorPath);y.if(r._`${s.default.errors} > 0`,()=>{if(typeof A=="object"){const[k,b]=H(A);b&&Y(b),k&&J(k),nt(G(A))}const E=typeof A=="string"?A:A._;E&&rt(E),v.keepErrors||lt()});function G({properties:E,items:k}){const b={};if(E){b.props={};for(const C in E)b.props[C]=[]}if(k){b.items={};for(let C=0;C<k.length;C++)b.items[C]=[]}return b}function H(E){let k,b;for(const C in E){if(C==="properties"||C==="items")continue;const L=E[C];if(typeof L=="object"){k||(k={});const D=k[C]={};for(const V in L)D[V]=[]}else b||(b={}),b[C]=[]}return[k,b]}function Y(E){const k=y.const("emErrors",r.stringify(E)),b=y.const("templates",at(E,x));y.forOf("err",s.default.vErrors,V=>y.if(xt(V,k),()=>y.code(r._`${k}[${V}.keyword].push(${V})`).assign(r._`${V}.${l}`,!0)));const{singleError:C}=v;if(C){const V=y.let("message",r._`""`),K=y.let("paramsErrors",r._`[]`);L(et=>{y.if(V,()=>y.code(r._`${V} += ${typeof C=="string"?C:";"}`)),y.code(r._`${V} += ${D(et)}`),y.assign(K,r._`${K}.concat(${k}[${et}])`)}),a.reportError(_,{message:V,params:r._`{errors: ${K}}`})}else L(V=>a.reportError(_,{message:D(V),params:r._`{errors: ${k}[${V}]}`}));function L(V){y.forIn("key",k,K=>y.if(r._`${k}[${K}].length`,()=>V(K)))}function D(V){return r._`${V} in ${b} ? ${b}[${V}]() : ${N}[${V}]`}}function J(E){const k=y.const("emErrors",r.stringify(E)),b=[];for(const K in E)b.push([K,at(E[K],x[K])]);const C=y.const("templates",y.object(...b)),L=y.scopeValue("obj",{ref:u,code:r.stringify(u)}),D=y.let("emPropParams"),V=y.let("emParamsErrors");y.forOf("err",s.default.vErrors,K=>y.if(xt(K,k),()=>{y.assign(D,r._`${L}[${K}.keyword]`),y.assign(V,r._`${k}[${K}.keyword][${K}.params[${D}]]`),y.if(V,()=>y.code(r._`${V}.push(${K})`).assign(r._`${K}.${l}`,!0))})),y.forIn("key",k,K=>y.forIn("keyProp",r._`${k}[${K}]`,et=>{y.assign(V,r._`${k}[${K}][${et}]`),y.if(r._`${V}.length`,()=>{const it=y.const("tmpl",r._`${C}[${K}] && ${C}[${K}][${et}]`);a.reportError(_,{message:r._`${it} ? ${it}() : ${N}[${K}][${et}]`,params:r._`{errors: ${V}}`})})}))}function nt(E){const{props:k,items:b}=E;if(!k&&!b)return;const C=r._`typeof ${m} == "object"`,L=r._`Array.isArray(${m})`,D=y.let("emErrors");let V,K;const et=y.let("templates");k&&b?(V=y.let("emChildKwd"),y.if(C),y.if(L,()=>{it(b,x.items),y.assign(V,r.str`items`)},()=>{it(k,x.properties),y.assign(V,r.str`properties`)}),K=r._`[${V}]`):b?(y.if(L),it(b,x.items),K=r._`.items`):k&&(y.if(n.and(C,n.not(L))),it(k,x.properties),K=r._`.properties`),y.forOf("err",s.default.vErrors,ut=>Ct(ut,D,Tt=>y.code(r._`${D}[${Tt}].push(${ut})`).assign(r._`${ut}.${l}`,!0))),y.forIn("key",D,ut=>y.if(r._`${D}[${ut}].length`,()=>{a.reportError(_,{message:r._`${ut} in ${et} ? ${et}[${ut}]() : ${N}${K}[${ut}]`,params:r._`{errors: ${D}[${ut}]}`}),y.assign(r._`${s.default.vErrors}[${s.default.errors}-1].instancePath`,r._`${R} + "/" + ${ut}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),y.endIf();function it(ut,Tt){y.assign(D,r.stringify(ut)),y.assign(et,at(ut,Tt))}}function rt(E){const k=y.const("emErrs",r._`[]`);y.forOf("err",s.default.vErrors,b=>y.if($t(b),()=>y.code(r._`${k}.push(${b})`).assign(r._`${b}.${l}`,!0))),y.if(r._`${k}.length`,()=>a.reportError(_,{message:X(E),params:r._`{errors: ${k}}`}))}function lt(){const E=y.const("emErrs",r._`[]`);y.forOf("err",s.default.vErrors,k=>y.if(r._`!${k}.${l}`,()=>y.code(r._`${E}.push(${k})`))),y.assign(s.default.vErrors,E).assign(s.default.errors,r._`${E}.length`)}function xt(E,k){return n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,r._`${E}.instancePath === ${R}`,r._`${E}.keyword in ${k}`,r._`${E}.schemaPath.indexOf(${$.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${E}.schemaPath.slice(${$.errSchemaPath.length}))`)}function Ct(E,k,b){y.if(n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,r._`${E}.instancePath.indexOf(${R}) === 0`),()=>{const C=y.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),L=y.const("emMatches",r._`${C}.exec(${E}.instancePath.slice(${R}.length))`),D=y.const("emChild",r._`${L} && ${L}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);y.if(r._`${D} !== undefined && ${D} in ${k}`,()=>b(D))})}function $t(E){return n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,n.or(r._`${E}.instancePath === ${R}`,n.and(r._`${E}.instancePath.indexOf(${R}) === 0`,r._`${E}.instancePath[${R}.length] === "/"`)),r._`${E}.schemaPath.indexOf(${$.errSchemaPath}) === 0`,r._`${E}.schemaPath[${$.errSchemaPath}.length] === "/"`)}function at(E,k){const b=[];for(const C in E){const L=k[C];d.test(L)&&b.push([C,T(L)])}return y.object(...b)}function X(E){return d.test(E)?new i._Code(i.safeStringify(E).replace(f,(k,b)=>`" + JSON.stringify(${o.getData(b,$)}) + "`).replace(h,"")):r.stringify(E)}function T(E){return r._`function(){return ${X(E)}}`}},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 g=(v,_={})=>{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(_))};t.default=g,e.exports=g,e.exports.default=g})(bf,bf.exports);var TO=bf.exports;const OO=Xr(TO),AO=new Iy({allErrors:!0});OO(AO);const Dy=(e,t="image/svg+xml",r="utf-8")=>new Blob([e],{type:`${t};charset=${r}`}),NO=e=>new XMLSerializer().serializeToString(e),RO=(e,t="image/svg+xml",r="utf-8")=>Dy(NO(e),t,r),Fy=(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 My(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function Ly(){const e=My();return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight}}function jO(){const e=My();return{clientTop:e.clientTop,clientLeft:e.clientLeft,clientWidth:e.clientWidth,clientHeight:e.clientHeight}}function IO(){const{clientWidth:e,clientHeight:t}=jO();return{width:window.innerWidth||e,height:window.innerHeight||t}}function DO(e){const{top:t,left:r}=e.getBoundingClientRect(),n=Ly();return{x:r+n.scrollLeft,y:t+n.scrollTop}}function FO(e){if(e.pageX&&e.pageY)return{x:e.pageX,y:e.pageY};const t=Ly();return{x:e.clientX+t.scrollLeft,y:e.clientY+t.scrollTop}}function Uy(e,t){const r=FO(t),n=DO(e);return{x:r.x-n.x,y:r.y-n.y}}function MO(){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}MO();function LO(e){var t=document.documentElement,r=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=r;var n=100,i=function(){var o=Math.min(t.clientWidth,e);t.dataset.width=o,t.dataset.rem=n=Math.round(100*(o/e)),t.style.fontSize=n+"px"};i(),window.rem2px=function(o){return o=parseFloat(o),o*n},window.px2rem=function(o){return o=parseFloat(o),o/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}class ee{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 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){
|
|
37
|
+
`.replace(/\s+/g,""),"u");break;case"mime-image":e=/^image\//;break;case"mime-video":e=/^video\//;break;case"mime-audio":e=/^audio\//;break;case"mime-document-word":e=/^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":e=/^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":e=/^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":e=/^application\/json$/;break;case"mime-document-xml":e=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return e};function ur(t){const e={matchIndex:-1,fullMatch:null,groupMatchs:[]};if(t){e.matchIndex=typeof t.index=="number"?t.index:-1;for(let n=0,s=t.length;n<s;n++)n==0?e.fullMatch=t[n]:e.groupMatchs.push(t[n])}return e}const $c=(t,e)=>{typeof t=="string"&&(t=lr(t)||new RegExp(t));const n=e.match(t);return ur(n)},dr=(t,e)=>{typeof t=="string"&&(t=lr(t)||new RegExp(t));const n=[],s=e.matchAll(t);for(const o of s)n.push(ur(o));return n};function vt(t,e){const n=t.length,s=e.length;for(let r=0;r<s;r++)t[r]=e[r];let o=Math.max(0,n-s);for(;o>0;)t.pop(),o--}function fr(t,e=12){return+t.toPrecision(e)}function Ic(t,e){let n=+new Date,s;return function(...o){const r=+new Date;r-n<e?(clearTimeout(s),s=setTimeout(()=>{n=r,t.apply(this,o)},e)):(clearTimeout(s),n=r,t.apply(this,o))}}var hr={exports:{}},We=typeof Reflect=="object"?Reflect:null,pr=We&&typeof We.apply=="function"?We.apply:function(e,n,s){return Function.prototype.apply.call(e,n,s)},Yt;We&&typeof We.ownKeys=="function"?Yt=We.ownKeys:Object.getOwnPropertySymbols?Yt=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Yt=function(e){return Object.getOwnPropertyNames(e)};function Mc(t){console&&console.warn&&console.warn(t)}var mr=Number.isNaN||function(e){return e!==e};function D(){D.init.call(this)}hr.exports=D,hr.exports.once=Fc,D.EventEmitter=D,D.prototype._events=void 0,D.prototype._eventsCount=0,D.prototype._maxListeners=void 0;var gr=10;function Xt(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(D,"defaultMaxListeners",{enumerable:!0,get:function(){return gr},set:function(t){if(typeof t!="number"||t<0||mr(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");gr=t}}),D.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},D.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||mr(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 vr(t){return t._maxListeners===void 0?D.defaultMaxListeners:t._maxListeners}D.prototype.getMaxListeners=function(){return vr(this)},D.prototype.emit=function(e){for(var n=[],s=1;s<arguments.length;s++)n.push(arguments[s]);var o=e==="error",r=this._events;if(r!==void 0)o=o&&r.error===void 0;else if(!o)return!1;if(o){var i;if(n.length>0&&(i=n[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var c=r[e];if(c===void 0)return!1;if(typeof c=="function")pr(c,this,n);else for(var l=c.length,f=xr(c,l),s=0;s<l;++s)pr(f[s],this,n);return!0};function yr(t,e,n,s){var o,r,i;if(Xt(n),r=t._events,r===void 0?(r=t._events=Object.create(null),t._eventsCount=0):(r.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),r=t._events),i=r[e]),i===void 0)i=r[e]=n,++t._eventsCount;else if(typeof i=="function"?i=r[e]=s?[n,i]:[i,n]:s?i.unshift(n):i.push(n),o=vr(t),o>0&&i.length>o&&!i.warned){i.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=i.length,Mc(a)}return t}D.prototype.addListener=function(e,n){return yr(this,e,n,!1)},D.prototype.on=D.prototype.addListener,D.prototype.prependListener=function(e,n){return yr(this,e,n,!0)};function Ac(){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 _r(t,e,n){var s={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=Ac.bind(s);return o.listener=n,s.wrapFn=o,o}D.prototype.once=function(e,n){return Xt(n),this.on(e,_r(this,e,n)),this},D.prototype.prependOnceListener=function(e,n){return Xt(n),this.prependListener(e,_r(this,e,n)),this},D.prototype.removeListener=function(e,n){var s,o,r,i,a;if(Xt(n),o=this._events,o===void 0)return this;if(s=o[e],s===void 0)return this;if(s===n||s.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,s.listener||n));else if(typeof s!="function"){for(r=-1,i=s.length-1;i>=0;i--)if(s[i]===n||s[i].listener===n){a=s[i].listener,r=i;break}if(r<0)return this;r===0?s.shift():Rc(s,r),s.length===1&&(o[e]=s[0]),o.removeListener!==void 0&&this.emit("removeListener",e,a||n)}return this},D.prototype.off=D.prototype.removeListener,D.prototype.removeAllListeners=function(e){var n,s,o;if(s=this._events,s===void 0)return this;if(s.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):s[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete s[e]),this;if(arguments.length===0){var r=Object.keys(s),i;for(o=0;o<r.length;++o)i=r[o],i!=="removeListener"&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=s[e],typeof n=="function")this.removeListener(e,n);else if(n!==void 0)for(o=n.length-1;o>=0;o--)this.removeListener(e,n[o]);return this};function br(t,e,n){var s=t._events;if(s===void 0)return[];var o=s[e];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?Dc(o):xr(o,o.length)}D.prototype.listeners=function(e){return br(this,e,!0)},D.prototype.rawListeners=function(e){return br(this,e,!1)},D.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):wr.call(t,e)},D.prototype.listenerCount=wr;function wr(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}D.prototype.eventNames=function(){return this._eventsCount>0?Yt(this._events):[]};function xr(t,e){for(var n=new Array(e),s=0;s<e;++s)n[s]=t[s];return n}function Rc(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function Dc(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function Fc(t,e){return new Promise(function(n,s){function o(i){t.removeListener(e,r),s(i)}function r(){typeof t.removeListener=="function"&&t.removeListener("error",o),n([].slice.call(arguments))}Cr(t,e,r,{once:!0}),e!=="error"&&jc(t,o,{once:!0})})}function jc(t,e,n){typeof t.on=="function"&&Cr(t,"error",e,n)}function Cr(t,e,n,s){if(typeof t.on=="function")s.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function o(r){s.once&&t.removeEventListener(e,o),n(r)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}function Er(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function Sr(){const t=Er();return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft,scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight}}function Vc(){const t=Er();return{clientTop:t.clientTop,clientLeft:t.clientLeft,clientWidth:t.clientWidth,clientHeight:t.clientHeight}}function kr(){const{clientWidth:t,clientHeight:e}=Vc();return{width:t,height:e}}function zc(t){const{top:e,left:n}=t.getBoundingClientRect(),s=Sr();return{x:n+s.scrollLeft,y:e+s.scrollTop}}function Hc(t){if(t.pageX&&t.pageY)return{x:t.pageX,y:t.pageY};const e=Sr();return{x:t.clientX+e.scrollLeft,y:t.clientY+e.scrollTop}}function ge(t,e){const n=Hc(e),s=zc(t);return{x:n.x-s.x,y:n.y-s.y}}function Tr(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}function Bc(){const t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){const o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}const s=t.indexOf("Edge/");return s>0?parseInt(t.substring(s+5,t.indexOf(".",s)),10):-1}const Jn=Bc()!==-1;(()=>{const t=Tr();return!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL)})(),function(){if(!Tr().OffscreenCanvas)return!1;var e=new OffscreenCanvas(1,1),n=e.getContext("2d");n.fillRect(0,0,1,1);var s=e.transferToImageBitmap();try{n.createPattern(s,"no-repeat")}catch{return!1}return!0}();function Wc(t){var e=document.documentElement,n=window.top===window.self?window.devicePixelRatio:1;e.dataset.dpr=n;var s=100,o=function(){var r=Math.min(e.clientWidth,t);e.dataset.width=r,e.dataset.rem=s=Math.round(100*(r/t)),e.style.fontSize=s+"px"};o(),window.rem2px=function(r){return r=parseFloat(r),r*s},window.px2rem=function(r){return r=parseFloat(r),r/s},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",o,!1)}class O{static onDocumentReady(e){function n(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",n))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}static getCSSVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}static setCSSVar(e,n){document.documentElement.style.setProperty(e,n)}static safeExec(e){const n=new Proxy(window,{get(s,o,r){if(typeof o=="string"&&["open","location","document"].includes(o))throw new Error(`禁止访问 key: ${o}`);return o==="window"?n:Reflect.get(s,o,r)},set(s,o,r,i){return Reflect.set(s,o,r,i)}});new Function("window",`with(window) { ${e} }`)(n,null)}static dom=new Proxy({},{get(e,n){return function(s={},...o){const r=document.createElement(n);for(const i of Object.keys(s))r.setAttribute(i,s[i]);for(const i of o)typeof i=="string"?r.appendChild(document.createTextNode(i)):r.appendChild(i);return r}}});static compileTemplate(e){return e=e.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),e="echo(`"+e+"`);",`(function parse(data){
|
|
25
38
|
let output = "";
|
|
26
39
|
function echo(html){
|
|
27
40
|
output += html;
|
|
28
41
|
}
|
|
29
|
-
${
|
|
42
|
+
${e}
|
|
30
43
|
return output;
|
|
31
|
-
})`}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 lazyloadImages(){const t=document.getElementsByTagName("img"),r=IO().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(){var i;(i=n.contentWindow)==null||i.postMessage(t,r)},4e3),setTimeout(function(){n.remove()},6e3)}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.")}}jt(ee,"dom",new Proxy({},{get(t,r){return function(n={},...i){const o=document.createElement(r);for(const a of Object.keys(n))o.setAttribute(a,n[a]);for(const a of i)typeof a=="string"?o.appendChild(document.createTextNode(a)):o.appendChild(a);return o}}})),jt(ee,"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()}})})),jt(ee,"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}),jt(ee,"getFixedWidthText",(t,r,n=12,i=400,o=!0)=>{let a="",s="",c="";if(!t||r<n||typeof t!="string")return a;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 d=0,f=l.length;d<f;d++){const h=l[d];if(s=c,c+=h,a=c,u.innerText=c,u.offsetWidth>r){o?a=s+"...":a=s;break}}return document.body.removeChild(u),a}),jt(ee,"copyToClipboard",t=>navigator.clipboard.writeText(t)),jt(ee,"getSelectedText",()=>{var t;return(t=window.getSelection())==null?void 0:t.toString()}),jt(ee,"siblings",t=>{var r;return Array.prototype.slice.call((r=t.parentNode)==null?void 0:r.children).filter(n=>n!==t)}),jt(ee,"isElementFocus",t=>t===document.activeElement),jt(ee,"isTabInView",()=>!document.hidden),jt(ee,"navigateBack",()=>history.back()),jt(ee,"navigateBack2",()=>history.go(-1));function bi(e,t=document){return new UO(e,t)}let UO=class br{constructor(t,r=document){jt(this,"context");jt(this,"nodes");jt(this,"prefixs",["moz","o","ms","webkit"]);if(this.context=r,typeof t=="string"?this.nodes=Array.from(this.context.querySelectorAll(t)):t instanceof HTMLElement?this.nodes=[t]:this.nodes=t,this.nodes.length===0)throw new Error(`can not find ${t}`);this.each((n,i)=>{n instanceof HTMLInputElement&&n.addEventListener("change",o=>{this.changeRadioChecked(o.currentTarget.value)}),n instanceof HTMLSelectElement&&n.addEventListener("change",o=>{this.changeSelectSelected(o.currentTarget.value)})})}get(t){return t<0&&(t=this.nodes.length+t),this.nodes[t]}concat(t){return new br(this.nodes.concat(t.nodes),this.context)}then(t){return t(this)??this}each(t){return this.nodes.forEach((r,n)=>{t(r,n)}),this}_save(t,r,n){t._mQuery||(t._mQuery={}),Array.isArray(n)?(t._mQuery[r]=t._mQuery[r]??[],t._mQuery[r].push(...n)):n!=null?t._mQuery[r]=n:delete t._mQuery[r]}on(t,r,n){return this.nodes.forEach(i=>{this._save(i,"events",[{event:t,callback:r,options:n}]),i.addEventListener(t,r,n)}),this}off(t,r,n){return this.nodes.forEach(i=>{i.removeEventListener(t,r,n)}),this}dispatchEvent(t,r){let n;const i=["click","dblclick","mousedown","mouseup","mousemove"],o=["keydown","keyup","keypress"];return typeof t=="string"?i.includes(t)?n=new MouseEvent(t,r):o.includes(t)?n=new KeyboardEvent(t,r):n=new Event(t,r):n=t,this.nodes.forEach(a=>{a.dispatchEvent(n)}),this}change(){return this.dispatchEvent("change")}click(){return this.dispatchEvent("click")}static hasEvent(t,r){return"on"+r in t}static _fragment(t){const r=document.createElement("template");return r.innerHTML=t,r.content.childNodes.forEach(n=>{const i=br._scriptConvert(n);i!=n&&r.content.replaceChild(i,n)}),r.content}static _scriptConvert(t){const r=n=>{const i=n.ownerDocument.createElement("script");i.text=n.text;const o=n.attributes;for(let a=0;a<o.length;a++)i.setAttribute(o[a].name,o[a].value);return i};return t.tagName=="SCRIPT"&&(t=r(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(n=>{var i;(i=n.parentNode)==null||i.replaceChild(r(n),n)}),t}static _fixProp(t){const r={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return r[t]?r[t]:t}static isSVG(t){return(t||document.documentElement).nodeName.toLowerCase()==="svg"}static createElement(t){return br.isSVG()?document.createElementNS.call(document,"http://www.w3.org/2000/svg",t):document.createElement.call(document,t)}static createTextNode(t){return document.createTextNode.call(document,t)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}_insert(t,r){const n=this.nodes.length;if(n<1)return this;const i=[];if(typeof r=="string")this.nodes.forEach(o=>{const a=br._fragment(r);i.push(...a.children),o[t](a)});else if(r instanceof HTMLElement)this.each(o=>{const a=n===1?r:br._fragment(r.outerHTML);i.push(...n===1?[r]:a.children),o[t](a)}),n>1&&r.remove();else if(r instanceof br){const o=n==1;r.each(a=>{this.each(s=>{const c=o?a:a.cloneNode(!0);i.push(c),s[t](c),br._scriptConvert(c)})}),o||r.remove()}return t=="replaceWith"&&(this.nodes=i),this}append(t){return this._insert("append",t)}prepend(t){return this._insert("prepend",t)}after(t){return this._insert("after",t)}before(t){return this._insert("before",t)}replace(t){return this._insert("replaceWith",t)}remove(){return this.nodes.forEach(t=>{t.remove()}),this}static removeChild(t){var r;(r=t.parentElement)==null||r.removeChild(t)}find(t){const r=[];return this.nodes.forEach(n=>{r.push(...Array.from(n.querySelectorAll(t)))}),new br(r,this.context)}filter(t){const r=[];return this.nodes.forEach(n=>{(n===t||typeof t=="string"&&n.matches&&n.matches(t))&&r.push(n)}),new br(r,this.context)}next(){const t=[];return this.nodes.forEach(r=>{const n=r.nextElementSibling;n&&t.push(n)}),new br(t,this.context)}prev(){const t=[];return this.nodes.forEach(r=>{const n=r.previousElementSibling;n&&t.push(n)}),new br(t,this.context)}closest(t){const r=[];return this.nodes.forEach(n=>{const i=n.closest(t);i&&r.push(i)}),new br(r,this.context)}shadow(t){const r=[];this.nodes.forEach(i=>{i.shadowRoot&&r.push(i.shadowRoot)});const n=new br(r,this.context);return t!==void 0?n.find(t):n}parent(t){return this.parents(t,!0)}parents(t,r=!1){const n=[],i=a=>{if(n.indexOf(a)==-1&&n.push(a),!r&&a.parentElement)return i(a.parentElement)};this.nodes.forEach(a=>{a.parentElement&&i(a.parentElement)});const o=new br(n,this.context);return t!==void 0?o.filter(t):o}static getComputedStyle(t,r,n){let i;const o=t.style.getPropertyPriority(r);return"getComputedStyle"in window?(i=getComputedStyle.call(window,t,n),i=i.getPropertyValue(r)):i=t.style.getPropertyValue(r),i+(o?"!"+o:"")}css(t,r){if((t===void 0||typeof t=="string")&&r===void 0){const n=this.nodes[0].style;if(typeof t=="string"){const i=n.getPropertyPriority(t),o=n.getPropertyValue(t).trim();return o?o+(i?"!"+i:""):br.getComputedStyle(this.nodes[0],t)}else{const i=Object.fromEntries(this.nodes[0].style.cssText.split(";").filter(o=>!!o).map(o=>o.split(":").map(a=>a.trim())));return Object.assign(i,getComputedStyle.call(window,this.nodes[0])),i}}else{let n={};return typeof t=="string"&&r!==void 0?n[t]=r:typeof t=="object"&&(n=t),this.nodes.forEach(i=>{Object.keys(n).forEach(o=>{const a=String(n[o]).toLowerCase().includes("!important")?"important":"";i.style.setProperty(o,String(n[o]).replace(/!important/i,""),a)})}),this}}addClass(t){return this.toggleClass(t,!0)}removeClass(t){return this.toggleClass(t,!1)}toggleClass(t,r){const n=t.split(/[,\s]+/);return this.nodes.forEach(i=>{n.forEach(o=>{if(o.trim()!==""){let a="toggle";r!==void 0&&(a=r?"add":"remove"),i.classList[a](o.trim())}})}),this}hasClass(t){const r=t.split(/[,\s]+/);let n=!1;return this.nodes.forEach(i=>{n=n||r.every(o=>Array.from(i.classList??[]).includes(o.trim()))}),n}attr(t,r){if(r===void 0&&typeof t=="string")return this.nodes[0].getAttribute(t);let n={};return typeof t=="object"?n=t:r!==void 0&&(n[t]=r),this.nodes.forEach(i=>{Object.entries(n).forEach(([o,a])=>{i.setAttribute(o,a)})}),this}removeAttr(t){const r=t.split(/[,\s]+/);return this.nodes.forEach(n=>{r.forEach(i=>{n.removeAttribute(i)})}),this}prop(t,r){if(r===void 0&&typeof t=="string")return this.nodes[0][t];{let n={};return typeof t=="object"?n=t:typeof t=="string"&&r!==void 0&&(n[t]=r),this.nodes.forEach(i=>{Object.entries(n).forEach(([o,a])=>{const s=br._fixProp(o);i[s]=a,s=="innerHTML"&&br._scriptConvert(i)})}),this}}removeProp(t){const r=t.split(/[,\s]+/);return this.nodes.forEach(n=>{r.forEach(i=>{delete n[br._fixProp(i)]})}),this}changeSelectSelected(t){this.nodes.forEach(r=>{if(r instanceof HTMLSelectElement){const n=r.options;for(let i=0,o=n.length;i<o;i++)n[i].value==t?n[i].selected=!0:n[i].selected=!1}})}changeRadioChecked(t){this.nodes.forEach(r=>{r instanceof HTMLInputElement&&(r.value==t?r.checked=!0:r.checked=!1)})}data(t,r){if(typeof t=="string"&&t.indexOf("-")!=-1)throw new Error(`Key "${t}" contains "-" (dash). Dashes are not allowed in property names. Use camelCase instead.`);if((typeof t=="string"||t===void 0)&&r===void 0){const n=Object.assign({},this.nodes[0].dataset);return Object.keys(n).forEach(i=>{var o,a;if((o=n[i])!=null&&o.startsWith("[")||(a=n[i])!=null&&a.startsWith("{"))try{n[i]=JSON.parse(n[i]??"")}catch{}}),typeof t=="string"?n[t]:n}else{let n={};return typeof t=="object"?n=t:typeof t=="string"&&(n[t]=r),this.nodes.forEach(i=>{Object.entries(n).forEach(([o,a])=>{a!=null?i.dataset[o]=a instanceof Object?JSON.stringify(a):a:delete i.dataset[o]})}),this}}removeData(t){const r=t.split(/[,\s]+/);return this.nodes.forEach(n=>{r.forEach(i=>{delete n.dataset[i]})}),this}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}toggle(t){return this.nodes.forEach(r=>{var a;const n=r.style.display,i=getComputedStyle(r).display,o=n=="none"||i=="none";if(o&&(t===void 0||t===!0)){const s=r instanceof HTMLTableRowElement?"table-row":r instanceof HTMLTableCellElement?"table-cell":"block";r.style.display=((a=r._mQuery)==null?void 0:a.prevDisplay)??(n==i&&i!="none"?"":s),this._save(r,"prevDisplay",null)}!o&&(t==null||t===!1)&&(i!="none"&&this._save(r,"prevDisplay",i),r.style.setProperty("display","none"))})}empty(){return this.html("")}html(t){return t instanceof HTMLElement?this.empty().append(t.innerHTML):this.prop("innerHTML",t)}text(t){return this.prop("textContent",t)}val(t){return this.prop("value",t)}};function wf(e){return e*Math.PI/180}function zO(e){return e*180/Math.PI}function GO(e,t,r,n){const i=e-r,o=t-n;return Math.sqrt(i*i+o*o)}function VO(e,t,r,n){const i=r-e,o=n-t;return Math.atan2(o,i)}function xf(e){return e[0]*e[0]+e[1]*e[1]}function zy(e){const t=Math.sqrt(xf(e));e[0]&&(e[0]/=t),e[1]&&(e[1]/=t)}let Gy=class eg{constructor(t){jt(this,"x");jt(this,"y");jt(this,"vx");jt(this,"vy");jt(this,"ax");jt(this,"ay");jt(this,"mass");this.x=t.x,this.y=t.y,this.vx=(t==null?void 0:t.vx)||0,this.vy=(t==null?void 0:t.vy)||0,this.ax=(t==null?void 0:t.ax)||0,this.ay=(t==null?void 0:t.ay)||0,this.mass=(t==null?void 0:t.mass)||0}fromAngleAndLength(t,r){return new eg({x:Math.cos(t)*r,y:Math.sin(t)*r})}distanceTo(t){return GO(this.x,this.y,t.x,t.y)}angleTo(t){return VO(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==null?void 0:t.gravity)??0,n=(t==null?void 0: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==null?void 0:r.gravity)??0,i=(r==null?void 0:r.friction)??1,o=(r==null?void 0:r.easing)??.05,a=t.x-this.x,s=t.y-this.y;this.vx=a*o,this.vy=s*o,this.vy+=n,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(t,r){const n=(r==null?void 0:r.gravity)??0,i=(r==null?void 0:r.friction)??.95,o=(r==null?void 0:r.spring)??.03;(Array.isArray(t)?t:[t]).forEach(a=>{const s=a.x-this.x,c=a.y-this.y,l=s*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==null?void 0:r.gravity)??0,i=(r==null?void 0:r.friction)??.95,o=(r==null?void 0:r.spring)??.03,a=(r==null?void 0:r.springLength)??100,s=this.angleTo(t);this.nextFrameSpringTo(new eg({x:t.x-Math.cos(s)*a,y:t.y-Math.sin(s)*a}),{spring:o,friction:i,gravity:n})}},BO=class extends Gy{constructor(r){super(r);jt(this,"width");jt(this,"height");this.width=r.width,this.height=r.height}eq(r){return this.x===r.x&&this.y===r.y&&this.width===r.width&&this.height===r.height}isIntersectRect(r){return!(this.x+this.width<r.x||r.x+r.width<this.x||this.y+this.height<r.y||r.y+r.height<this.y)}isContainPoint(r){return!(r.x<this.x||r.x>this.x+this.width||r.y<this.y||r.y>this.y+this.height)}toArray(){return[this.x,this.y,this.width,this.height]}clone(r){this.x=r.x,this.y=r.y,this.width=r.width,this.height=r.height}},fs=class V$ extends Gy{constructor(r){super(r);jt(this,"radius");this.radius=(r==null?void 0:r.radius)??0}toSVGPathData(){return[this.x,this.y]}toSVGPathD(){return`${this.x},${this.y}`}setX(r){this.x=r}setY(r){this.y=r}setXY(r,n){this.x=r,this.y=n}eq(r){return this.x===r.x&&this.y===r.y}midPointBtw(r){return new V$({x:this.x+(r.x-this.x)/2,y:this.y+(r.y-this.y)/2})}toArray(){return[this.x,this.y]}clone(r){this.setXY(r.x,r.y)}getBounds(){return new BO({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}nextFrameCollisionTo(r){const n=r.x-this.x,i=r.y-this.y;if(Math.sqrt(n*n+i*i)<this.radius+r.radius){const a=Math.atan2(i,n),s=Math.sin(a),c=Math.cos(a),l={x:0,y:0},u=o(n,i,s,c,!0),d=o(this.vx,this.vy,s,c,!0),f=o(r.vx,r.vy,s,c,!0),h=d.x-f.x;d.x=((this.mass-r.mass)*d.x+2*r.mass*f.x)/(this.mass+r.mass),f.x=h+d.x;const p=Math.abs(d.x)+Math.abs(f.x),g=this.radius+r.radius-Math.abs(l.x-u.x);l.x+=d.x/p*g,u.x+=f.x/p*g;const v=o(l.x,l.y,s,c,!1),_=o(u.x,u.y,s,c,!1);r.x=this.x+_.x,r.y=this.y+_.y,this.x=this.x+v.x,this.y=this.y+v.y;const y=o(d.x,d.y,s,c,!1),m=o(f.x,f.y,s,c,!1);this.vx=y.x,this.vy=y.y,r.vx=m.x,r.vy=m.y}function o(a,s,c,l,u=!1){return{x:u?a*l+s*c:a*l-s*c,y:u?s*l-a*c:s*l+a*c}}}nextFrameBounce(r){const n=r.left,i=r.top,o=r.right,a=r.bottom,s=(r==null?void 0:r.bounce)??-1;this.x+this.radius>o?(this.x=o-this.radius,this.vx*=s):this.x-this.radius<n&&(this.x=n+this.radius,this.vx*=s),this.y+this.radius>a?(this.y=a-this.radius,this.vy*=s):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=s)}};var Sf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function un(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 HO={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
32
|
-
|
|
33
|
-
*
|
|
34
|
-
* Copyright (c) 2016 Jorik Tangelder;
|
|
35
|
-
* Licensed under the MIT license */(function(e){(function(t,r,n,i){var o=["","webkit","Moz","MS","ms","o"],a=r.createElement("div"),s="function",c=Math.round,l=Math.abs,u=Date.now;function d(w,P,F){return setTimeout(m(w,F),P)}function f(w,P,F){return Array.isArray(w)?(h(w,F[P],F),!0):!1}function h(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+`
|
|
36
|
-
`+F+` AT
|
|
37
|
-
`;return function(){var q=new Error("get-stack-trace"),W=q&&q.stack?q.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",tt=t.console&&(t.console.warn||t.console.log);return tt&&tt.call(t.console,B,W),w.apply(this,arguments)}}var g;typeof Object.assign!="function"?g=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 q in B)B.hasOwnProperty(q)&&(P[q]=B[q])}return P}:g=Object.assign;var v=p(function(w,P,F){for(var B=Object.keys(P),q=0;q<B.length;)(!F||F&&w[B[q]]===i)&&(w[B[q]]=P[B[q]]),q++;return w},"extend","Use `assign`."),_=p(function(w,P){return v(w,P,!0)},"merge","Use `assign`.");function y(w,P,F){var B=P.prototype,q;q=w.prototype=Object.create(B),q.constructor=w,q._super=B,F&&g(q,F)}function m(w,P){return function(){return w.apply(P,arguments)}}function x(w,P){return typeof w==s?w.apply(P&&P[0]||i,P):w}function N(w,P){return w===i?P:w}function $(w,P,F){h(H(P),function(B){w.addEventListener(B,F,!1)})}function A(w,P,F){h(H(P),function(B){w.removeEventListener(B,F,!1)})}function R(w,P){for(;w;){if(w==P)return!0;w=w.parentNode}return!1}function G(w,P){return w.indexOf(P)>-1}function H(w){return w.trim().split(/\s+/g)}function Y(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 J(w){return Array.prototype.slice.call(w,0)}function nt(w,P,F){for(var B=[],q=[],W=0;W<w.length;){var tt=w[W][P];Y(q,tt)<0&&B.push(w[W]),q[W]=tt,W++}return B=B.sort(function(ot,dt){return ot[P]>dt[P]}),B}function rt(w,P){for(var F,B,q=P[0].toUpperCase()+P.slice(1),W=0;W<o.length;){if(F=o[W],B=F?F+q:P,B in w)return B;W++}return i}var lt=1;function xt(){return lt++}function Ct(w){var P=w.ownerDocument||w;return P.defaultView||P.parentWindow||t}var $t=/mobile|tablet|ip(ad|hone|od)|android/i,at="ontouchstart"in t,X=rt(t,"PointerEvent")!==i,T=at&&$t.test(navigator.userAgent),E="touch",k="pen",b="mouse",C="kinect",L=25,D=1,V=2,K=4,et=8,it=1,ut=2,Tt=4,Gt=8,Pt=16,Nt=ut|Tt,qt=Gt|Pt,Qt=Nt|qt,Dt=["x","y"],fe=["clientX","clientY"];function re(w,P){var F=this;this.manager=w,this.callback=P,this.element=w.element,this.target=w.options.inputTarget,this.domHandler=function(B){x(w.options.enable,[w])&&F.handler(B)},this.init()}re.prototype={handler:function(){},init:function(){this.evEl&&$(this.element,this.evEl,this.domHandler),this.evTarget&&$(this.target,this.evTarget,this.domHandler),this.evWin&&$(Ct(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(Ct(this.element),this.evWin,this.domHandler)}};function he(w){var P,F=w.options.inputClass;return F?P=F:X?P=Dr:T?P=Yr:at?P=U:P=Kr,new P(w,Vt)}function Vt(w,P,F){var B=F.pointers.length,q=F.changedPointers.length,W=P&D&&B-q===0,tt=P&(K|et)&&B-q===0;F.isFirst=!!W,F.isFinal=!!tt,W&&(w.session={}),F.eventType=P,Le(w,F),w.emit("hammer.input",F),w.recognize(F),w.session.prevInput=F}function Le(w,P){var F=w.session,B=P.pointers,q=B.length;F.firstInput||(F.firstInput=pr(P)),q>1&&!F.firstMultiple?F.firstMultiple=pr(P):q===1&&(F.firstMultiple=!1);var W=F.firstInput,tt=F.firstMultiple,ot=tt?tt.center:W.center,dt=P.center=dr(B);P.timeStamp=u(),P.deltaTime=P.timeStamp-W.timeStamp,P.angle=Ir(ot,dt),P.distance=jr(ot,dt),Ue(F,P),P.offsetDirection=Ze(P.deltaX,P.deltaY);var ct=$e(P.deltaTime,P.deltaX,P.deltaY);P.overallVelocityX=ct.x,P.overallVelocityY=ct.y,P.overallVelocity=l(ct.x)>l(ct.y)?ct.x:ct.y,P.scale=tt?er(tt.pointers,B):1,P.rotation=tt?Sr(tt.pointers,B):0,P.maxPointers=F.prevInput?P.pointers.length>F.prevInput.maxPointers?P.pointers.length:F.prevInput.maxPointers:P.pointers.length,Xe(F,P);var st=w.element;R(P.srcEvent.target,st)&&(st=P.srcEvent.target),P.target=st}function Ue(w,P){var F=P.center,B=w.offsetDelta||{},q=w.prevDelta||{},W=w.prevInput||{};(P.eventType===D||W.eventType===K)&&(q=w.prevDelta={x:W.deltaX||0,y:W.deltaY||0},B=w.offsetDelta={x:F.x,y:F.y}),P.deltaX=q.x+(F.x-B.x),P.deltaY=q.y+(F.y-B.y)}function Xe(w,P){var F=w.lastInterval||P,B=P.timeStamp-F.timeStamp,q,W,tt,ot;if(P.eventType!=et&&(B>L||F.velocity===i)){var dt=P.deltaX-F.deltaX,ct=P.deltaY-F.deltaY,st=$e(B,dt,ct);W=st.x,tt=st.y,q=l(st.x)>l(st.y)?st.x:st.y,ot=Ze(dt,ct),w.lastInterval=P}else q=F.velocity,W=F.velocityX,tt=F.velocityY,ot=F.direction;P.velocity=q,P.velocityX=W,P.velocityY=tt,P.direction=ot}function pr(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:dr(P),deltaX:w.deltaX,deltaY:w.deltaY}}function dr(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,q=0;q<P;)F+=w[q].clientX,B+=w[q].clientY,q++;return{x:c(F/P),y:c(B/P)}}function $e(w,P,F){return{x:P/w||0,y:F/w||0}}function Ze(w,P){return w===P?it:l(w)>=l(P)?w<0?ut:Tt:P<0?Gt:Pt}function jr(w,P,F){F||(F=Dt);var B=P[F[0]]-w[F[0]],q=P[F[1]]-w[F[1]];return Math.sqrt(B*B+q*q)}function Ir(w,P,F){F||(F=Dt);var B=P[F[0]]-w[F[0]],q=P[F[1]]-w[F[1]];return Math.atan2(q,B)*180/Math.PI}function Sr(w,P){return Ir(P[1],P[0],fe)+Ir(w[1],w[0],fe)}function er(w,P){return jr(P[0],P[1],fe)/jr(w[0],w[1],fe)}var rn={mousedown:D,mousemove:V,mouseup:K},nn="mousedown",xe="mousemove mouseup";function Kr(){this.evEl=nn,this.evWin=xe,this.pressed=!1,re.apply(this,arguments)}y(Kr,re,{handler:function(w){var P=rn[w.type];P&D&&w.button===0&&(this.pressed=!0),P&V&&w.which!==1&&(P=K),this.pressed&&(P&K&&(this.pressed=!1),this.callback(this.manager,P,{pointers:[w],changedPointers:[w],pointerType:b,srcEvent:w}))}});var Or={pointerdown:D,pointermove:V,pointerup:K,pointercancel:et,pointerout:et},Yn={2:E,3:k,4:b,5:C},mn="pointerdown",kn="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(mn="MSPointerDown",kn="MSPointerMove MSPointerUp MSPointerCancel");function Dr(){this.evEl=mn,this.evWin=kn,re.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}y(Dr,re,{handler:function(w){var P=this.store,F=!1,B=w.type.toLowerCase().replace("ms",""),q=Or[B],W=Yn[w.pointerType]||w.pointerType,tt=W==E,ot=Y(P,w.pointerId,"pointerId");q&D&&(w.button===0||tt)?ot<0&&(P.push(w),ot=P.length-1):q&(K|et)&&(F=!0),!(ot<0)&&(P[ot]=w,this.callback(this.manager,q,{pointers:P,changedPointers:[w],pointerType:W,srcEvent:w}),F&&P.splice(ot,1))}});var Ie={touchstart:D,touchmove:V,touchend:K,touchcancel:et},mo="touchstart",on="touchstart touchmove touchend touchcancel";function gn(){this.evTarget=mo,this.evWin=on,this.started=!1,re.apply(this,arguments)}y(gn,re,{handler:function(w){var P=Ie[w.type];if(P===D&&(this.started=!0),!!this.started){var F=$r.call(this,w,P);P&(K|et)&&F[0].length-F[1].length===0&&(this.started=!1),this.callback(this.manager,P,{pointers:F[0],changedPointers:F[1],pointerType:E,srcEvent:w})}}});function $r(w,P){var F=J(w.touches),B=J(w.changedTouches);return P&(K|et)&&(F=nt(F.concat(B),"identifier")),[F,B]}var En={touchstart:D,touchmove:V,touchend:K,touchcancel:et},vn="touchstart touchmove touchend touchcancel";function Yr(){this.evTarget=vn,this.targetIds={},re.apply(this,arguments)}y(Yr,re,{handler:function(w){var P=En[w.type],F=Xn.call(this,w,P);F&&this.callback(this.manager,P,{pointers:F[0],changedPointers:F[1],pointerType:E,srcEvent:w})}});function Xn(w,P){var F=J(w.touches),B=this.targetIds;if(P&(D|V)&&F.length===1)return B[F[0].identifier]=!0,[F,F];var q,W,tt=J(w.changedTouches),ot=[],dt=this.target;if(W=F.filter(function(ct){return R(ct.target,dt)}),P===D)for(q=0;q<W.length;)B[W[q].identifier]=!0,q++;for(q=0;q<tt.length;)B[tt[q].identifier]&&ot.push(tt[q]),P&(K|et)&&delete B[tt[q].identifier],q++;if(ot.length)return[nt(W.concat(ot),"identifier"),ot]}var Cn=2500,j=25;function U(){re.apply(this,arguments);var w=m(this.handler,this);this.touch=new Yr(this.manager,w),this.mouse=new Kr(this.manager,w),this.primaryTouch=null,this.lastTouches=[]}y(U,re,{handler:function(w,P,F){var B=F.pointerType==E,q=F.pointerType==b;if(!(q&&F.sourceCapabilities&&F.sourceCapabilities.firesTouchEvents)){if(B)z.call(this,P,F);else if(q&&Z.call(this,F))return;this.callback(w,P,F)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function z(w,P){w&D?(this.primaryTouch=P.changedPointers[0].identifier,Q.call(this,P)):w&(K|et)&&Q.call(this,P)}function Q(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,q=function(){var W=B.indexOf(F);W>-1&&B.splice(W,1)};setTimeout(q,Cn)}}function Z(w){for(var P=w.srcEvent.clientX,F=w.srcEvent.clientY,B=0;B<this.lastTouches.length;B++){var q=this.lastTouches[B],W=Math.abs(P-q.x),tt=Math.abs(F-q.y);if(W<=j&&tt<=j)return!0}return!1}var yt=rt(a.style,"touchAction"),vt=yt!==i,It="compute",oe="auto",Ht="manipulation",Ot="none",Ft="pan-x",Zt="pan-y",kt=Te();function At(w,P){this.manager=w,this.set(P)}At.prototype={set:function(w){w==It&&(w=this.compute()),vt&&this.manager.element.style&&kt[w]&&(this.manager.element.style[yt]=w),this.actions=w.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var w=[];return h(this.manager.recognizers,function(P){x(P.options.enable,[P])&&(w=w.concat(P.getTouchAction()))}),Xt(w.join(" "))},preventDefaults:function(w){var P=w.srcEvent,F=w.offsetDirection;if(this.manager.session.prevented){P.preventDefault();return}var B=this.actions,q=G(B,Ot)&&!kt[Ot],W=G(B,Zt)&&!kt[Zt],tt=G(B,Ft)&&!kt[Ft];if(q){var ot=w.pointers.length===1,dt=w.distance<2,ct=w.deltaTime<250;if(ot&&dt&&ct)return}if(!(tt&&W)&&(q||W&&F&Nt||tt&&F&qt))return this.preventSrc(P)},preventSrc:function(w){this.manager.session.prevented=!0,w.preventDefault()}};function Xt(w){if(G(w,Ot))return Ot;var P=G(w,Ft),F=G(w,Zt);return P&&F?Ot:P||F?P?Ft:Zt:G(w,Ht)?Ht:oe}function Te(){if(!vt)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 fr=1,pe=2,De=4,qe=8,Be=qe,ke=16,ce=32;function Bt(w){this.options=g({},this.defaults,w||{}),this.id=xt(),this.manager=null,this.options.enable=N(this.options.enable,!0),this.state=fr,this.simultaneous={},this.requireFail=[]}Bt.prototype={defaults:{},set:function(w){return g(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=an(w,this),P[w.id]||(P[w.id]=w,w.recognizeWith(this)),this},dropRecognizeWith:function(w){return f(w,"dropRecognizeWith",this)?this:(w=an(w,this),delete this.simultaneous[w.id],this)},requireFailure:function(w){if(f(w,"requireFailure",this))return this;var P=this.requireFail;return w=an(w,this),Y(P,w)===-1&&(P.push(w),w.requireFailure(this)),this},dropRequireFailure:function(w){if(f(w,"dropRequireFailure",this))return this;w=an(w,this);var P=Y(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(q){P.manager.emit(q,w)}F<qe&&B(P.options.event+Ke(F)),B(P.options.event),w.additionalEvent&&B(w.additionalEvent),F>=qe&&B(P.options.event+Ke(F))},tryEmit:function(w){if(this.canEmit())return this.emit(w);this.state=ce},canEmit:function(){for(var w=0;w<this.requireFail.length;){if(!(this.requireFail[w].state&(ce|fr)))return!1;w++}return!0},recognize:function(w){var P=g({},w);if(!x(this.options.enable,[this,P])){this.reset(),this.state=ce;return}this.state&(Be|ke|ce)&&(this.state=fr),this.state=this.process(P),this.state&(pe|De|qe|ke)&&this.tryEmit(P)},process:function(w){},getTouchAction:function(){},reset:function(){}};function Ke(w){return w&ke?"cancel":w&qe?"end":w&De?"move":w&pe?"start":""}function Fr(w){return w==Pt?"down":w==Gt?"up":w==ut?"left":w==Tt?"right":""}function an(w,P){var F=P.manager;return F?F.get(w):w}function nr(){Bt.apply(this,arguments)}y(nr,Bt,{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&(pe|De),q=this.attrTest(w);return B&&(F&et||!q)?P|ke:B||q?F&K?P|qe:P&pe?P|De:pe:ce}});function rr(){nr.apply(this,arguments),this.pX=null,this.pY=null}y(rr,nr,{defaults:{event:"pan",threshold:10,pointers:1,direction:Qt},getTouchAction:function(){var w=this.options.direction,P=[];return w&Nt&&P.push(Zt),w&qt&&P.push(Ft),P},directionTest:function(w){var P=this.options,F=!0,B=w.distance,q=w.direction,W=w.deltaX,tt=w.deltaY;return q&P.direction||(P.direction&Nt?(q=W===0?it:W<0?ut:Tt,F=W!=this.pX,B=Math.abs(w.deltaX)):(q=tt===0?it:tt<0?Gt:Pt,F=tt!=this.pY,B=Math.abs(w.deltaY))),w.direction=q,F&&B>P.threshold&&q&P.direction},attrTest:function(w){return nr.prototype.attrTest.call(this,w)&&(this.state&pe||!(this.state&pe)&&this.directionTest(w))},emit:function(w){this.pX=w.deltaX,this.pY=w.deltaY;var P=Fr(w.direction);P&&(w.additionalEvent=this.options.event+P),this._super.emit.call(this,w)}});function yr(){nr.apply(this,arguments)}y(yr,nr,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ot]},attrTest:function(w){return this._super.attrTest.call(this,w)&&(Math.abs(w.scale-1)>this.options.threshold||this.state&pe)},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 Pn(){Bt.apply(this,arguments),this._timer=null,this._input=null}y(Pn,Bt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[oe]},process:function(w){var P=this.options,F=w.pointers.length===P.pointers,B=w.distance<P.threshold,q=w.deltaTime>P.time;if(this._input=w,!B||!F||w.eventType&(K|et)&&!q)this.reset();else if(w.eventType&D)this.reset(),this._timer=d(function(){this.state=Be,this.tryEmit()},P.time,this);else if(w.eventType&K)return Be;return ce},reset:function(){clearTimeout(this._timer)},emit:function(w){this.state===Be&&(w&&w.eventType&K?this.manager.emit(this.options.event+"up",w):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Tn(){nr.apply(this,arguments)}y(Tn,nr,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ot]},attrTest:function(w){return this._super.attrTest.call(this,w)&&(Math.abs(w.rotation)>this.options.threshold||this.state&pe)}});function kr(){nr.apply(this,arguments)}y(kr,nr,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Nt|qt,pointers:1},getTouchAction:function(){return rr.prototype.getTouchAction.call(this)},attrTest:function(w){var P=this.options.direction,F;return P&(Nt|qt)?F=w.overallVelocity:P&Nt?F=w.overallVelocityX:P&qt&&(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&K},emit:function(w){var P=Fr(w.offsetDirection);P&&this.manager.emit(this.options.event+P,w),this.manager.emit(this.options.event,w)}});function On(){Bt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}y(On,Bt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ht]},process:function(w){var P=this.options,F=w.pointers.length===P.pointers,B=w.distance<P.threshold,q=w.deltaTime<P.time;if(this.reset(),w.eventType&D&&this.count===0)return this.failTimeout();if(B&&q&&F){if(w.eventType!=K)return this.failTimeout();var W=this.pTime?w.timeStamp-this.pTime<P.interval:!0,tt=!this.pCenter||jr(this.pCenter,w.center)<P.posThreshold;this.pTime=w.timeStamp,this.pCenter=w.center,!tt||!W?this.count=1:this.count+=1,this._input=w;var ot=this.count%P.taps;if(ot===0)return this.hasRequireFailures()?(this._timer=d(function(){this.state=Be,this.tryEmit()},P.interval,this),pe):Be}return ce},failTimeout:function(){return this._timer=d(function(){this.state=ce},this.options.interval,this),ce},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Be&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Wn(w,P){return P=P||{},P.recognizers=N(P.recognizers,Wn.defaults.preset),new ra(w,P)}Wn.VERSION="2.0.7",Wn.defaults={domEvents:!1,touchAction:It,enable:!0,inputTarget:null,inputClass:null,preset:[[Tn,{enable:!1}],[yr,{enable:!1},["rotate"]],[kr,{direction:Nt}],[rr,{direction:Nt},["swipe"]],[On],[On,{event:"doubletap",taps:2},["tap"]],[Pn]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var ea=1,_r=2;function ra(w,P){this.options=g({},Wn.defaults,P||{}),this.options.inputTarget=this.options.inputTarget||w,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=w,this.input=he(this),this.touchAction=new At(this,this.options.touchAction),S(this,!0),h(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)}ra.prototype={set:function(w){return g(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?_r:ea},recognize:function(w){var P=this.session;if(!P.stopped){this.touchAction.preventDefaults(w);var F,B=this.recognizers,q=P.curRecognizer;(!q||q&&q.state&Be)&&(q=P.curRecognizer=null);for(var W=0;W<B.length;)F=B[W],P.stopped!==_r&&(!q||F==q||F.canRecognizeWith(q))?F.recognize(w):F.reset(),!q&&F.state&(pe|De|qe)&&(q=P.curRecognizer=F),W++}},get:function(w){if(w instanceof Bt)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=Y(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 h(H(w),function(B){F[B]=F[B]||[],F[B].push(P)}),this}},off:function(w,P){if(w!==i){var F=this.handlers;return h(H(w),function(B){P?F[B]&&F[B].splice(Y(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&&S(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function S(w,P){var F=w.element;if(F.style){var B;h(w.options.cssProps,function(q,W){B=rt(F.style,W),P?(w.oldCssProps[B]=F.style[B],F.style[B]=q):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)}g(Wn,{INPUT_START:D,INPUT_MOVE:V,INPUT_END:K,INPUT_CANCEL:et,STATE_POSSIBLE:fr,STATE_BEGAN:pe,STATE_CHANGED:De,STATE_ENDED:qe,STATE_RECOGNIZED:Be,STATE_CANCELLED:ke,STATE_FAILED:ce,DIRECTION_NONE:it,DIRECTION_LEFT:ut,DIRECTION_RIGHT:Tt,DIRECTION_UP:Gt,DIRECTION_DOWN:Pt,DIRECTION_HORIZONTAL:Nt,DIRECTION_VERTICAL:qt,DIRECTION_ALL:Qt,Manager:ra,Input:re,TouchAction:At,TouchInput:Yr,MouseInput:Kr,PointerEventInput:Dr,TouchMouseInput:U,SingleTouchInput:gn,Recognizer:Bt,AttrRecognizer:nr,Tap:On,Pan:rr,Swipe:kr,Pinch:yr,Rotate:Tn,Press:Pn,on:$,off:A,each:h,merge:_,extend:v,assign:g,inherit:y,bindFn:m,prefixed:rt});var I=typeof t<"u"?t:typeof self<"u"?self:{};I.Hammer=Wn,e.exports?e.exports=Wn:t[n]=Wn})(window,document,"Hammer")})(HO);const Vy=[1,0,0,1,0,0],By=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];let Fn=class _h{constructor(t=Vy){jt(this,"value");jt(this,"matrix3d");jt(this,"isEverTo3d",!1);jt(this,"_prev_rotatex",0);jt(this,"_prev_rotatey",0);this.value=Array.from(t),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(Vy),this.matrix3d=this.toMatrix3D(),this}transformPoint(t,r,n=0,i=0){const o=t-n,a=r-i;return t=o*this.value[0]+a*this.value[2]+this.value[4],r=o*this.value[1]+a*this.value[3]+this.value[5],[t+n,r+i]}fromString(t){const r=Rg("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 _h(this.value)}multiply(t){const r=this.value;let n;t instanceof _h?n=t.value:n=t;const i=r[0]*n[0]+r[2]*n[1],o=r[1]*n[0]+r[3]*n[1],a=r[0]*n[2]+r[2]*n[3],s=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]=a,r[3]=s,r[4]=c,r[5]=l,this}inverse(){const t=new _h(this.value),r=t.value,n=1/(r[0]*r[3]-r[1]*r[2]),i=r[3]*n,o=-r[1]*n,a=-r[2]*n,s=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]=a,r[3]=s,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=wf(t),o=+Math.cos(i).toFixed(9),a=+Math.sin(i).toFixed(9);return this.multiply([o,a,-a,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),a=Math.tan(i);return this.multiply([1,a,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(xf(r[0])),zy(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(xf(r[1])),zy(r[1]),t.shear/=t.scaley;const n=-r[0][1],i=r[1][1];return i<0?(t.rotate=zO(Math.acos(i)),n<0&&(t.rotate=360-t.rotate)):t.rotate=wf(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=>Ig(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{constructor(t=By){jt(this,"value");this.value=Array.from(t)}unit(){return this.value=Array.from(By),this}fromString(t){const r=Rg("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 Fn(r)}multiplyMatrix(t){const r=this.value[0],n=this.value[1],i=this.value[2],o=this.value[3],a=this.value[4],s=this.value[5],c=this.value[6],l=this.value[7],u=this.value[8],d=this.value[9],f=this.value[10],h=this.value[11],p=this.value[12],g=this.value[13],v=this.value[14],_=this.value[15],y=t.value[0],m=t.value[1],x=t.value[2],N=t.value[3],$=y*r+m*a+x*u+N*p,A=y*n+m*s+x*d+N*g,R=y*i+m*c+x*f+N*v,G=y*o+m*l+x*h+N*_;return new Fn([$,A,R,G,0,0])}multiply(t){const r=new Fn([t.value[0],t.value[1],t.value[2],t.value[3],0,0]),n=new Fn([t.value[4],t.value[5],t.value[6],t.value[7],0,0]),i=new Fn([t.value[8],t.value[9],t.value[10],t.value[11],0,0]),o=new Fn([t.value[12],t.value[13],t.value[14],t.value[15],0,0]),a=this.multiplyMatrix(r),s=this.multiplyMatrix(n),c=this.multiplyMatrix(i),l=this.multiplyMatrix(o);return this.value[0]=a.value[0],this.value[1]=a.value[1],this.value[2]=a.value[2],this.value[3]=a.value[3],this.value[4]=s.value[0],this.value[5]=s.value[1],this.value[6]=s.value[2],this.value[7]=s.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=wf(r),i=Math.sin,o=Math.cos;let a;switch(t){case"x":a=[1,0,0,0,0,o(n),i(n),0,0,-i(n),o(n),0,0,0,0,1];break;case"y":a=[o(n),0,-i(n),0,0,1,0,0,i(n),0,o(n),0,0,0,0,1];break;case"z":a=[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(a))}toString(){return`matrix3d(${this.value.map(t=>Ig(t,6)).join(",")})`}}function Xc(e){const t=new Fn;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 a=0,s=i.length;a<s;a++)i[a].trim()&&o.push(parseFloat(""+i[a]));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 qO(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 $f={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},KO=/([astvzqmhlc])([^astvzqmhlc]*)/gi,YO=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function XO(e){const t=e.match(YO);return t?t.map(Number):[]}function kf(e){const t=[];return e.replace(KO,function(r,n,i){let o=n.toLowerCase();for(i=XO(i),o=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),o="l",n=n=="m"?"l":"L");;){if(i.length==$f[o])return i.unshift(n),t.push(i);if(i.length<$f[o])throw new Error("malformed path data");t.push([n].concat(i.splice(0,$f[o])))}}),t}function Ef(e){var t=0,r=0,n=0,i=0;return e.map(function(o){o=o.slice();var a=o[0],s=a.toUpperCase();if(a!=s)switch(o[0]=s,a){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(s){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 ps=Math.PI*2;function Hy(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 WO(e,t,r,n,i,o,a,s,c,l){const u=l*(e-r)/2+c*(t-n)/2,d=-c*(e-r)/2+l*(t-n)/2,f=a*a,h=s*s,p=u*u,g=d*d;let v=f*h-f*g-h*p;v<0&&(v=0),v/=f*g+h*p,v=Math.sqrt(v)*(i===o?-1:1);const _=v*a/s*d,y=v*-s/a*u,m=l*_-c*y+(e+r)/2,x=c*_+l*y+(t+n)/2,N=(u-_)/a,$=(d-y)/s,A=(-u-_)/a,R=(-d-y)/s,G=Hy(1,0,N,$);let H=Hy(N,$,A,R);return o===0&&H>0&&(H-=ps),o===1&&H<0&&(H+=ps),[m,x,G,H]}function JO(e,t){const r=1.3333333333333333*Math.tan(t/4),n=Math.cos(e),i=Math.sin(e),o=Math.cos(e+t),a=Math.sin(e+t);return[n,i,n-i*r,i+n*r,o+a*r,a-o*r,o,a]}function QO(e,t,r,n,i,o,a,s,c){const l=Math.sin(c*ps/360),u=Math.cos(c*ps/360),d=u*(e-r)/2+l*(t-n)/2,f=-l*(e-r)/2+u*(t-n)/2;if(d===0&&f===0)return[];if(a===0||s===0)return[];a=Math.abs(a),s=Math.abs(s);const h=d*d/(a*a)+f*f/(s*s);h>1&&(a*=Math.sqrt(h),s*=Math.sqrt(h));const p=WO(e,t,r,n,i,o,a,s,l,u),g=[];let v=p[2],_=p[3];const y=Math.max(Math.ceil(Math.abs(_)/(ps/4)),1);_/=y;for(let m=0;m<y;m++)g.push(JO(v,_)),v+=_;return g.map(m=>{for(let x=0;x<m.length;x+=2){let N=m[x+0],$=m[x+1];N*=a,$*=s;const A=u*N-l*$,R=l*N+u*$;m[x+0]=A+p[0],m[x+1]=R+p[1]}return m})}function Cf(e){for(var t,r=[],n=0,i=0,o=0,a=0,s=null,c=null,l=0,u=0,d=0,f=e.length;d<f;d++){var h=e[d],p=h[0];switch(p){case"M":o=h[1],a=h[2];break;case"A":var g=QO(l,u,h[6],h[7],h[4],h[5],h[1],h[2],h[3]);if(!g.length)continue;g=g.map(x=>{const[N,$,A,R,G,H,Y,J]=x;return{x1:A,y1:R,x2:G,y2:H,x:Y,y:J}});for(var v=0,_;v<g.length;v++)_=g[v],h=["C",_.x1,_.y1,_.x2,_.y2,_.x,_.y],v<g.length-1&&r.push(h);break;case"S":var y=l,m=u;(t=="C"||t=="S")&&(y+=y-n,m+=m-i),h=["C",y,m,h[1],h[2],h[3],h[4]];break;case"T":t=="Q"||t=="T"?(s=l*2-s,c=u*2-c):(s=l,c=u),h=qy(l,u,s,c,h[1],h[2]);break;case"Q":s=h[1],c=h[2],h=qy(l,u,h[1],h[2],h[3],h[4]);break;case"L":h=Wc(l,u,h[1],h[2]);break;case"H":h=Wc(l,u,h[1],u);break;case"V":h=Wc(l,u,l,h[1]);break;case"Z":h=Wc(l,u,o,a);break}t=p,l=h[h.length-2],u=h[h.length-1],h.length>4?(n=h[h.length-4],i=h[h.length-3]):(n=l,i=u),r.push(h)}return r}function Wc(e,t,r,n){return["C",e,t,r,n,r,n]}function qy(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 ZO=e=>Array.isArray(e);function da(e){if(!(this instanceof da))return new da(e);this._path=ZO(e)?e:kf(e),this._path=Ef(this._path),this._path=eA(this._path),this._path=tA(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 d=this._path[u];if(d[0]==="M"){if(r[0]=d[1],r[1]=d[2],e===0)return{length:o,pos:r}}else if(d[0]==="C"){n[0]=i[0]=r[0],n[1]=i[1]=r[1],n[2]=o;let f=100;for(let h=0;h<=f;h++){let p=h/f,g=a(d,p),v=s(d,p);if(o+=Pf(r[0],r[1],g,v),r[0]=g,r[1]=v,typeof e=="number"&&o>=e){let _=(o-e)/(o-n[2]),y=[r[0]*(1-_)+n[0]*_,r[1]*(1-_)+n[1]*_];return{length:o,pos:y}}n[0]=r[0],n[1]=r[1],n[2]=o}}else if(d[0]==="Q"){n[0]=i[0]=r[0],n[1]=i[1]=r[1],n[2]=o;let f=100;for(let h=0;h<=f;h++){let p=h/f,g=c(d,p),v=l(d,p);if(o+=Pf(r[0],r[1],g,v),r[0]=g,r[1]=v,typeof e=="number"&&o>=e){let _=(o-e)/(o-n[2]),y=[r[0]*(1-_)+n[0]*_,r[1]*(1-_)+n[1]*_];return{length:o,pos:y}}n[0]=r[0],n[1]=r[1],n[2]=o}}else if(d[0]==="L"){if(n[0]=r[0],n[1]=r[1],n[2]=o,o+=Pf(r[0],r[1],d[1],d[2]),r[0]=d[1],r[1]=d[2],typeof e=="number"&&o>=e){let f=(o-e)/(o-n[2]),h=[r[0]*(1-f)+n[0]*f,r[1]*(1-f)+n[1]*f];return{length:o,pos:h}}n[0]=r[0],n[1]=r[1],n[2]=o}}return{length:o,pos:r};function a(u,d){return Math.pow(1-d,3)*i[0]+3*Math.pow(1-d,2)*d*u[1]+3*(1-d)*Math.pow(d,2)*u[3]+Math.pow(d,3)*u[5]}function s(u,d){return Math.pow(1-d,3)*i[1]+3*Math.pow(1-d,2)*d*u[2]+3*(1-d)*Math.pow(d,2)*u[4]+Math.pow(d,3)*u[6]}function c(u,d){return Math.pow(1-d,2)*i[0]+2*(1-d)*d*u[1]+Math.pow(d,2)*u[3]}function l(u,d){return Math.pow(1-d,2)*i[1]+2*(1-d)*d*u[2]+Math.pow(d,2)*u[4]}};function Pf(e,t,r,n){let i=e-r,o=t-n;return Math.sqrt(i*i+o*o)}function tA(e){let t,r=0,n=0,i={S:{to:"C",x:3},T:{to:"Q",x:1}};for(let o=0,a=e.length;o<a;o++){let s=e[o],c=i[s[0]];c&&(s[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])),s.splice(1,0,r,n)),t=s}return e}function eA(e){let t=[],r=["L",0,0],n;for(let i=0,o=e.length;i<o;i++){let a=e[i];switch(a[0]){case"M":r=["L",a[1],a[2]],t.push(a);break;case"Z":t.push(r);break;case"H":n=t[t.length-1]||["L",0,0],t.push(["L",a[1],n[n.length-1]]);break;case"V":n=t[t.length-1]||["L",0,0],t.push(["L",n[n.length-2],a[1]]);break;default:t.push(a)}}return t}const Tf=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]=Tf(e[r]));return t};function Of(e){const t=Of.ps=Of.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 ms(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:lA(e,t,r,n),vb:[e,t,r,n].join(" ")}}function Ky(e,t,r,n,i,o,a,s,c){const l=1-c,u=l**3,d=l**2,f=c*c,h=f*c,p=u*e+d*3*c*r+l*3*c*c*i+h*a,g=u*t+d*3*c*n+l*3*c*c*o+h*s,v=e+2*c*(r-e)+f*(i-2*r+e),_=t+2*c*(n-t)+f*(o-2*n+t),y=r+2*c*(i-r)+f*(a-2*i+r),m=n+2*c*(o-n)+f*(s-2*o+n),x=l*e+c*r,N=l*t+c*n,$=l*i+c*a,A=l*o+c*s,R=90-Math.atan2(v-y,_-m)*180/Math.PI;return{x:p,y:g,m:{x:v,y:_},n:{x:y,y:m},start:{x,y:N},end:{x:$,y:A},alpha:R}}function Yy(e,t,r,n,i,o,a,s){Array.isArray(e)||(e=[e,t,r,n,i,o,a,s]);const c=Jy(...e);return ms(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)}function rA(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height}function nA(e,t){e=ms(e),t=ms(t);const{x:r,y:n,width:i,height:o}=e,{x:a,y:s,width:c,height:l}=t,u=r+i/2,d=n+o/2,f=a+c/2,h=s+l/2;return Math.abs(u-f)<=(i+c)/2||Math.abs(d-h)<=(o+l)/2}function Xy(e,t,r,n,i){const o=-3*t+9*r-9*n+3*i,a=e*o+6*t-12*r+6*n;return e*a-3*t+3*r}function Wy(e,t,r,n,i,o,a,s,c){c==null&&(c=1),c=Math.max(0,Math.min(c,1));const l=c/2,u=12,d=[-.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 h=0;for(let p=0;p<u;p++){const g=l*d[p]+l,v=Xy(g,e,r,i,a),_=Xy(g,t,n,o,s),y=v*v+_*_;h+=f[p]*Math.sqrt(y)}return l*h}function iA(e,t,r,n,i,o,a,s){if(Math.max(e,r)<Math.min(i,a)||Math.min(e,r)>Math.max(i,a)||Math.max(t,n)<Math.min(o,s)||Math.min(t,n)>Math.max(o,s))return;const c=(e*n-t*r)*(i-a)-(e-r)*(i*s-o*a),l=(e*n-t*r)*(o-s)-(t-n)*(i*s-o*a),u=(e-r)*(o-s)-(t-n)*(i-a);if(!u)return;const d=c/u,f=l/u,h=Number(d.toFixed(2)),p=Number(f.toFixed(2));if(!(h<Number(Math.min(e,r).toFixed(2))||h>Number(Math.max(e,r).toFixed(2))||h<Number(Math.min(i,a).toFixed(2))||h>Number(Math.max(i,a).toFixed(2))||p<Number(Math.min(t,n).toFixed(2))||p>Number(Math.max(t,n).toFixed(2))||p<Number(Math.min(o,s).toFixed(2))||p>Number(Math.max(o,s).toFixed(2))))return{x:d,y:f}}function oA(e,t,r){const n=Yy(e),i=Yy(t);if(!nA(n,i))return r?0:[];const o=Wy.apply(0,e),a=Wy.apply(0,t),s=Math.ceil(o/8),c=Math.ceil(a/8),l=[],u=[],d={};let f=r?0:[];for(let h=0;h<s+1;h++){const p=Ky.apply(0,e.concat(h/s));l.push({x:p.x,y:p.y,t:h/s})}for(let h=0;h<c+1;h++){const p=Ky.apply(0,t.concat(h/c));u.push({x:p.x,y:p.y,t:h/c})}for(let h=0;h<s;h++)for(let p=0;p<c;p++){const g=l[h],v=l[h+1],_=u[p],y=u[p+1],m=Math.abs(v.x-g.x)<.001?"y":"x",x=Math.abs(y.x-_.x)<.001?"y":"x",N=iA(g.x,g.y,v.x,v.y,_.x,_.y,y.x,y.y);if(N&&d[N.x.toFixed(4)]!==N.y.toFixed(4)){d[N.x.toFixed(4)]=N.y.toFixed(4);const $=g.t+Math.abs((N[m]-g[m])/(v[m]-g[m]))*(v.t-g.t),A=_.t+Math.abs((N[x]-_[x])/(y[x]-_[x]))*(y.t-_.t);$>=0&&$<=1&&A>=0&&A<=1&&(r?f++:f.push({x:N.x,y:N.y,t1:$,t2:A}))}}return f}function aA(e,t,r){let n,i,o,a,s,c,l,u,d,f,h=r?0:[];for(let p=0,g=e.length;p<g;p++){const v=e[p];if(v[0]==="M")n=s=v[1],i=c=v[2];else{v[0]==="C"?(d=[n,i].concat(v.slice(1)),n=d[6],i=d[7]):(d=[n,i,n,i,s,c,s,c],n=s,i=c);for(let _=0,y=t.length;_<y;_++){const m=t[_];if(m[0]==="M")o=l=m[1],a=u=m[2];else{m[0]==="C"?(f=[o,a].concat(m.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,l,u,l,u],o=l,a=u);const x=oA(d,f,r);if(r)h+=x;else{for(let N=0,$=x.length;N<$;N++)x[N].segment1=p,x[N].segment2=_,x[N].bez1=d,x[N].bez2=f;h=h.concat(x)}}}}}return h}function sA(e){const t=Of(e);if(t.bbox)return Tf(t.bbox);if(!e)return ms();let r=0,n=0,i=[],o=[],a=[];for(let f=0,h=e.length;f<h;f++)if(a=e[f],a[0]==="M")r=a[1],n=a[2],i.push(r),o.push(n);else{const p=Jy(r,n,a[1],a[2],a[3],a[4],a[5],a[6]);i=i.concat(p.min.x,p.max.x),o=o.concat(p.min.y,p.max.y),r=a[5],n=a[6]}const s=Math.min.apply(0,i),c=Math.min.apply(0,o),l=Math.max.apply(0,i),u=Math.max.apply(0,o),d=ms(s,c,l-s,u-c);return t.bbox=Tf(d),d}function lA(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 Jy(e,t,r,n,i,o,a,s){const c=[],l=[[],[]];let u,d,f,h,p,g,v,_;for(let N=0;N<2;++N){if(N===0?(d=6*e-12*r+6*i,u=-3*e+9*r-9*i+3*a,f=3*r-3*e):(d=6*t-12*n+6*o,u=-3*t+9*n-9*o+3*s,f=3*n-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue;h=-f/d,h>0&&h<1&&c.push(h);continue}v=d*d-4*f*u,_=Math.sqrt(v),!(v<0)&&(p=(-d+_)/(2*u),p>0&&p<1&&c.push(p),g=(-d-_)/(2*u),g>0&&g<1&&c.push(g))}let y=c.length,m;const x=y;for(;y--;)h=c[y],m=1-h,l[0][y]=m*m*m*e+3*m*m*h*r+3*m*h*h*i+h*h*h*a,l[1][y]=m*m*m*t+3*m*m*h*n+3*m*h*h*o+h*h*h*s;return l[0][x]=e,l[1][x]=t,l[0][x+1]=a,l[1][x+1]=s,l[0].length=l[1].length=x+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 cA(e,t,r){const n=sA(e);return!(!rA(n,t,r)||aA(e,Cf([["M",t,r],["H",n.x2+10]]),1)%2!==1)}const Af=new Map;function Qy(e){if(Af.has(e))return Af.get(e);const t=da(e);return Af.set(e,t),t}function Zy(e){const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d",e),t}function uA(e,t){return gc?Zy(e).getTotalLength(t):Qy(e).length()}function hA(e,t){if(gc)return Zy(e).getPointAtLength(t);{const r=Qy(e),[n,i]=r.at(t);return{x:n,y:i}}}let bn=null;function dA(e,t,r){if(gc){bn||(bn=document.createElement("canvas").getContext("2d"));const n=new Path2D(e);return bn.isPointInPath(n,t,r)}else return cA(e,t,r)}function fA(e,t,r,{lineWidth:n=1,lineCap:i="butt",lineJoin:o="miter"}){if(gc){if(bn||(bn=document.createElement("canvas").getContext("2d")),bn.isPointInStroke){bn.save(),bn.lineWidth=n,bn.lineCap=i,bn.lineJoin=o;const a=new Path2D(e),s=bn.isPointInStroke(a,t,r);return bn.restore(),s}}else return null}function pA(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 t_={},e_={exports:{}},r_;function mA(){return r_||(r_=1,function(e){(function(t){var r="0.4.0",n="hasOwnProperty",i=/[\.\/]/,o="*",a=function(){},s=function(f,h){return f-h},c,l,u={n:{}},d=function(f,h){var p=l,g=Array.prototype.slice.call(arguments,2),v=d.listeners(f),_=0,y,m=[],x={},N=[];c=f,l=0;for(var $=0,A=v.length;$<A;$++)"zIndex"in v[$]&&(m.push(v[$].zIndex),v[$].zIndex<0&&(x[v[$].zIndex]=v[$]));for(m.sort(s);m[_]<0;)if(y=x[m[_++]],N.push(y.apply(h,g)),l)return l=p,N;for($=0;$<A;$++)if(y=v[$],"zIndex"in y)if(y.zIndex==m[_]){if(N.push(y.apply(h,g)),l)return l=p,N;do if(_++,y=x[m[_]],y&&N.push(y.apply(h,g)),l)return l=p,N;while(y)}else x[y.zIndex]=y;else if(N.push(y.apply(h,g)),l)return l=p,N;return l=p,N.length?N:null};d.listeners=function(f){var h=f.split(i),p=u,g,v,_,y,m,x,N,$,A=[p],R=[];for(y=0,m=h.length;y<m;y++){for($=[],x=0,N=A.length;x<N;x++)for(p=A[x].n,v=[p[h[y]],p[o]],_=2;_--;)g=v[_],g&&($.push(g),R=R.concat(g.f||[]));A=$}return R},d.on=function(f,h){for(var p=f.split(i),g=u,v=0,_=p.length;v<_;v++)g=g.n,!g[p[v]]&&(g[p[v]]={n:{}}),g=g[p[v]];for(g.f=g.f||[],v=0,_=g.f.length;v<_;v++)if(g.f[v]==h)return a;return g.f.push(h),function(y){+y==+y&&(h.zIndex=+y)}},d.stop=function(){l=1},d.nt=function(f){return f?new RegExp("(?:\\.|\\/|^)"+f+"(?:\\.|\\/|$)").test(c):c},d.unbind=function(f,h){var p=f.split(i),g,v,_,y,m,x,N,$=[u];for(y=0,m=p.length;y<m;y++)for(x=0;x<$.length;x+=_.length-2){if(_=[x,1],g=$[x].n,p[y]!=o)g[p[y]]&&_.push(g[p[y]]);else for(v in g)g[n](v)&&_.push(g[v]);$.splice.apply($,_)}for(y=0,m=$.length;y<m;y++)for(g=$[y];g.n;){if(h){if(g.f){for(x=0,N=g.f.length;x<N;x++)if(g.f[x]==h){g.f.splice(x,1);break}!g.f.length&&delete g.f}for(v in g.n)if(g.n[n](v)&&g.n[v].f){var A=g.n[v].f;for(x=0,N=A.length;x<N;x++)if(A[x]==h){A.splice(x,1);break}!A.length&&delete g.n[v].f}}else{delete g.f;for(v in g.n)g.n[n](v)&&g.n[v].f&&delete g.n[v].f}g=g.n}},d.once=function(f,h){var p=function(){h.apply(this,arguments),d.unbind(f,p)};return d.on(f,p)},d.version=r,d.toString=function(){return"You are running Eve "+r},e.exports?e.exports=d:t.eve=d})(Sf)}(e_)),e_.exports}(function(e){if(typeof pA=="function")var t=mA();(function(){function r(f){var h=function(p){h.parse(p)};return h.mode="text",h.type=String(f||"html").toLowerCase(),h.textchunk="",h.raw="",h.parse=c,h.on=a,h.event=o,h.end=i,h}function n(f,h,p){f==`
|
|
38
|
-
`&&this.event("newline"),d[this.mode].call(this,f,h,p)}function i(){n.call(this,"eof"),this.event("eof")}function o(f,h,p){typeof t=="function"&&t("elemental."+f+"."+h,null,h,p||"",this.raw);for(var g=this.events&&this.events[f],v=g&&g.length;v--;)try{this.events[f][v](h,p||"",this.raw)}catch{}this.raw=""}function a(f,h){this.events=this.events||{},this.events[f]=this.events[f]||[],this.events[f].push(h)}function s(f,h){return f&&(f.charAt?f.charAt(h):f[h])}function c(f){f=f||Object(f);for(var h=1,p=f.length+1,g,v,_=s(f,0);h<p;h++)g=v,v=_,_=s(f,h),this.raw+=v,n.call(this,v,_,g);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})},d={text:function(f,h,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,h,p){if(p=="!"&&f=="-"&&h=="-")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,h,p){p=="]"&&f=="]"&&h==">"?(this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1)):(f=="eof"&&d["cdata end"].call(this),this.textchunk+=f)},"cdata end":function(f,h,p){this.event("cdata",this.textchunk),this.textchunk="",this.mode="text"},"comment start":function(f,h,p){h==">"||f=="eof"?(this.event("comment",""),this.mode="comment instant end"):this.mode="comment"},"comment instant end":function(f,h,p){this.mode="text"},comment:function(f,h,p){f=="-"&&p=="-"&&h==">"?(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,h,p){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},declaration:function(f,h,p){f=="?"&&h==">"?this.mode="declaration end":(f=="eof"&&this.event("comment",this.textchunk),this.textchunk+=f)},"declaration end":function(f,h,p){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},"tag name start":function(f,h,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}d[this.mode].call(this,f,h,p)}},"close tag name start":function(f,h,p){l.test(f)||(this.mode="close tag name",this.tagname="",this.nodename="",d[this.mode].call(this,f,h,p))},"close tag name":function(f,h,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,h,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,h,p){l.test(f)||(this.mode="attr",this.nodename="",d[this.mode].call(this,f,h,p))},attr:function(f,h,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,h,p){if(!l.test(f)){if(this.mode="attr value",this.quote=!1,f=="'"||f=='"'){this.quote=f;return}d[this.mode].call(this,f,h,p)}},"attr value":function(f,h,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})()})(t_);const n_=un(t_);function Nf(e,t,r,n,i,o){if(typeof i>"u"||typeof o>"u"){const a=e-r,s=t-n;return!a&&!s?0:(180+Math.atan2(-s,-a)*180/Math.PI+360)%360}else return Nf(e,t,i,o)-Nf(r,n,i,o)}const le=n_.eve,gA=n_.elemental,Jc={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 Rf(e,t,r){for(var n=(e+"").split(";"),i=/^\s+|\s+$/g,o,a=0,s=n.length;a<s;a++){var c=n[a].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 vA(e){const t=gA(),r=[],n=[],i={};let o,a,s;const c={};function l(u,d){return function(f,h){const p={type:d||u};r.push(p);for(let g in h)Object.prototype.hasOwnProperty.call(h,g)&&le("rappar."+u+".attr."+g,p,h[g],g);le("rappar."+u+".attrend",p,h)}}return le.on("rappar.polygon.attr.points",function(u){this.path="M"+u+"z",le.stop()}),le.on("rappar.image.attr.xlink:href",function(u){this.src=u,le.stop()}),le.on("rappar.path.attr.d",function(u){this.path=u,le.stop()}),le.on("rappar.*.attr.transform",function(u){this.transform=Xc(u).toTransformString(),le.stop()}),le.on("rappar.*.attr.fill",function(u){var d=u.match(/url\(#([^)]+)\)/),f=this;d&&(d=d[1],i[d]?this.fill=i[d]:le.on("rappar.found."+d,function(h){f.fill=h}),le.stop())}),le.on("rappar.line.attrend",function(u){this.path="M"+[u.x1,u.y1,u.x2,u.y2]}),le.on("rappar.*.attrend",function(){for(var u=n.length;u--;)if(n[u]!=this){let f="",h="";for(var d in n[u])d=="transform"?f=n[u].transform:d=="class"&&c["."+n[u][d]]?h=c["."+n[u][d]].join(";")+";"+h:d=="id"&&c["#"+n[u][d]]?h=c["#"+n[u][d]].join(";")+";"+h:typeof this[d]>"u"&&(this[d]=n[u][d]);this.type&&(typeof this.transform>"u"?this.transform=f:this.transform+=f,typeof this.style>"u"?this.style=h:this.style=h+this.style,Rf(this.style,this,Jc))}}),le.on("rappar.*.attr.style",function(u){var d=function(){Rf(u,this,Jc),le.unbind("rappar.*.attrend",d)};le.on("rappar.*.attrend",d),le.stop()}),le.on("rappar.*.attr.*",function(u,d){d in Jc&&(this[d]=Jc[d]?u:parseFloat(u))}),le.on("elemental.tag.circle",l("circle")),le.on("elemental.tag.ellipse",l("ellipse")),le.on("elemental.tag.polygon",l("polygon","path")),le.on("elemental.tag.path",l("path")),le.on("elemental.tag.line",l("line","path")),le.on("elemental.tag.rect",l("rect")),le.on("elemental.tag.image",l("image")),le.on("elemental.tag.text",l("text")),le.on("elemental.text",function(u){try{const d=G4(u);for(let f of d.stylesheet.rules){for(let h of f.selectors)c[h]=[];for(let h of f.declarations)for(let p of f.selectors)c[p].push(`${h.property}:${h.value}`)}}catch{}}),le.on("elemental.tag.svg",function(u,d){let f=d.width||0,h=d.height||0;if(!f||!h){const p=d.viewBox.split(/\s+/gi);f=parseFloat(p[2])-parseFloat(p[0]),h=parseFloat(p[3])-parseFloat(p[1])}r.push({type:"viewbox",width:f,height:h})}),le.on("rappar.text.attrend",function(){o="",a=this,this["text-anchor"]=this["text-anchor"]||"start"}),le.on("elemental.text",function(u,d,f){a&&(o+=f)}),le.on("elemental./tag.text",function(){a.text=o,a=null}),le.on("elemental.tag.g",function(u,d){var f={};n.push(f);for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(f[h]=d[h],le("rappar.g.attr."+h,f,d[h],h));le("rappar.g.attrend",f)}),le.on("elemental./tag.g",function(u,d){n.pop()}),le.on("elemental.tag.linearGradient",function(u,d){s={id:d.id,angle:+(360+Nf(d.x1,d.y1,d.x2,d.y2,d.x1+100,d.y1)).toFixed(2),stops:[]}}),le.on("elemental./tag.linearGradient",function(){for(var u=[s.angle],d,f=0,h=s.stops.length;f<h;f++)d=s.stops[f],f&&f!=h-1?u.push(d.color+":"+d.offset):u.push(d.color);i[s.id]=u.join("-"),le("rappar.found."+s.id,null,i[s.id])}),le.on("elemental.tag.radialGradient",function(u,d){s={id:d.id,stops:[]}}),le.on("elemental./tag.radialGradient",function(){for(var u=[],d,f=0,h=s.stops.length;f<h;f++)d=s.stops[f],f&&f!=h-1?u.push(d.color+":"+d.offset):u.push(d.color);i[s.id]="r"+u.join("-"),le("rappar.found."+s.id,null,i[s.id])}),le.on("elemental.tag.stop",function(u,d){var f={};d.style&&Rf(d.style,f),f.offset=f.offset||d.offset,f.color=f["stop-color"]||d["stop-color"],f.opacity=f["stop-opacity"]||d["stop-opacity"],~(f.offset+"").indexOf("%")?f.offset=parseFloat(f.offset):f.offset=parseFloat(f.offset)*100,f.offset=+f.offset.toFixed(2),s.stops.push(f)}),t(e),t.end(),r}const i_=yA("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 yA(e,t=10){const r={},n=e.split(",");for(let i=0;i<n.length;i+=2){const o="&"+n[i+1]+";",a=parseInt(n[i],t);r[o]="&#"+a+";"}return r["\\xa0"]=" ",r}function Ur(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 Qc(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 _A(e){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[e]||t.start}function bA(e){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[e]||t.alphabetic}const gs={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 jf{constructor(t,r){jt(this,"__root");jt(this,"__ctx");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",Ur("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 o_{constructor(t,r){jt(this,"__root");jt(this,"__ctx");this.__root=t,this.__ctx=r}}let wA=class rg{constructor({canvas:t,width:r=500,height:n=500,enableMirroring:i=!1}){jt(this,"__document",document);jt(this,"__canvas");jt(this,"__ctx");jt(this,"width");jt(this,"height");jt(this,"__styleStack");jt(this,"__groupStack");jt(this,"__rootSVG");jt(this,"__ids");jt(this,"__SVGdefs");jt(this,"__currentElement");jt(this,"__currentElementsToStyle",null);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(gs);for(let r=0,n=t.length;r<n;r++){const i=t[r];this[i]=gs[i].canvas}}__getStyleState(){const t={},r=Object.keys(gs);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 a=0;a<o.length;a++){const s=o[a];i.setAttribute(s,r[s])}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(gs);for(let o=0;o<i.length;o++){const a=gs[i[o]],s=this[i[o]];if(a.apply){if(s instanceof o_){if(s.__ctx)for(;s.__ctx.__SVGdefs.childNodes.length;){const c=s.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[c]=c,this.__SVGdefs.appendChild(s.__ctx.__SVGdefs.childNodes[0])}r.setAttribute(a.apply,Ur("url(#{id})",{id:s.__root.getAttribute("id")}))}else if(s instanceof jf)r.setAttribute(a.apply,Ur("url(#{id})",{id:s.__root.getAttribute("id")}));else if(a.apply.indexOf(t)!==-1&&a.svg!==s)if((a.svgAttr==="stroke"||a.svgAttr==="fill")&&s.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(s);r.setAttribute(a.svgAttr,Ur("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(a.svgAttr+"-opacity",""+l)}else{let c=a.svgAttr;if(i[o]==="globalAlpha"&&(c=t+"-"+a.svgAttr,r.getAttribute(c)))continue;c&&r.setAttribute(c,s)}}}}__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(i_);for(let i=0,o=n.length;i<o;i++){const a=n[i],s=i_[a],c=new RegExp(a,"gi");c.test(r)&&(r=r.replace(c,s))}}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(Ur("scale({x},{y})",{x:t,y:r}))}rotate(t){const r=t*180/Math.PI;this.__addTransform(Ur("rotate({angle},{cx},{cy})",{angle:r,cx:0,cy:0}))}translate(t,r){this.__addTransform(Ur("translate({x},{y})",{x:t,y:r}))}transform(t,r,n,i,o,a){this.__addTransform(Ur("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:r,c:n,d:i,e:o,f:a}))}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(Ur("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(Ur("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Ur("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,r,n,i,o,a){this.__currentPosition={x:o,y:a},this.__addPathCommand(Ur("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:r,cp2x:n,cp2y:i,x:o,y:a}))}quadraticCurveTo(t,r,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(Ur("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 a=this.__currentPosition&&this.__currentPosition.x,s=this.__currentPosition&&this.__currentPosition.y;if(typeof a>"u"||typeof s>"u")return;if(o<0)throw new Error("IndexSizeError: The radius provided ("+o+") is negative.");if(a===t&&s===r||t===n&&r===i||o===0){this.lineTo(t,r);return}const c=this.normalize([a-t,s-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],d=Math.acos(Math.abs(u)),f=this.normalize([c[0]+l[0],c[1]+l[1]]),h=o/Math.sin(d/2),p=t+h*f[0],g=r+h*f[1],v=[-c[1],c[0]],_=[l[1],-l[0]],y=function(N){const $=N[0];return N[1]>=0?Math.acos($):-Math.acos($)},m=y(v),x=y(_);this.lineTo(p+v[0]*o,g+v[1]*o),this.arc(p,g,o,m,x)}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(),a=this.__createElement("rect",{x:t,y:r,width:n,height:i,fill:"#FFFFFF"},!0);o.appendChild(a)}createLinearGradient(t,r,n,i){const o=this.__createElement("linearGradient",{id:Qc(this.__ids),x1:t+"px",x2:n+"px",y1:r+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(o),new jf(o,this)}createRadialGradient(t,r,n,i,o,a){const s=this.__createElement("radialGradient",{id:Qc(this.__ids),cx:i+"px",cy:o+"px",r:a+"px",fx:t+"px",fy:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(s),new jf(s,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(),a=this.__closestGroupOrSvg(),s=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":_A(this.textAlign),"dominant-baseline":bA(this.textBaseline)},!0);s.appendChild(this.__document.createTextNode(t)),this.__currentElement=s,this.__applyStyleToCurrentElement(i),a.appendChild(this.__wrapTextLink(o,s))}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,a){if(i===o)return;i=i%(2*Math.PI),o=o%(2*Math.PI),i===o&&(o=(o+2*Math.PI-.001*(a?-1:1))%(2*Math.PI));const s=t+n*Math.cos(o),c=r+n*Math.sin(o),l=t+n*Math.cos(i),u=r+n*Math.sin(i),d=a?0:1;let f=0,h=o-i;h<0&&(h+=2*Math.PI),a?f=h>Math.PI?0:1:f=h>Math.PI?1:0,this.lineTo(l,u),this.__addPathCommand(Ur("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:f,sweepFlag:d,endX:s,endY:c})),this.__currentPosition={x:s,y:c}}clip(){const t=this.__closestGroupOrSvg(),r=this.__createElement("clipPath"),n=Qc(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",Ur("url(#{id})",{id:n})),t.appendChild(i),this.__currentElement=i}drawImage(...t){var m;let r=t[0],n,i,o,a,s=0,c=0,l,u,d,f,h,p,g,v;if(t.length===3)n=t[1],i=t[2],l=r.width,u=r.height,o=l,a=u;else if(t.length===5)n=t[1],i=t[2],o=t[3],a=t[4],l=r.width,u=r.height;else if(t.length===9)s=t[1],c=t[2],l=t[3],u=t[4],n=t[5],i=t[6],o=t[7],a=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const _=this.__closestGroupOrSvg();this.__currentElement;const y="translate("+n+", "+i+")";if(r instanceof rg){if(d=r.getSvg().cloneNode(!0),d.childNodes&&d.childNodes.length>1){for(f=d.childNodes[0];f.childNodes.length;)v=f.childNodes[0].getAttribute("id"),this.__ids[v]=v,this.__SVGdefs.appendChild(f.childNodes[0]);if(h=d.childNodes[1],h){const x=h.getAttribute("transform");let N;x?N=x+" "+y:N=y,h.setAttribute("transform",N),_.appendChild(h)}}}else(r.nodeName==="CANVAS"||r.nodeName==="IMG")&&(p=this.__createElement("image"),p.setAttribute("width",o),p.setAttribute("height",a),p.setAttribute("preserveAspectRatio","none"),(s||c||l!==r.width||u!==r.height)&&(g=this.__document.createElement("canvas"),g.width=o,g.height=a,(m=g.getContext("2d"))==null||m.drawImage(r,s,c,l,u,0,0,o,a),r=g),p.setAttribute("transform",y),p.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r.nodeName==="CANVAS"?r.toDataURL():r.getAttribute("src")),_.appendChild(p))}createPattern(t,r){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=Qc(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 rg&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new o_(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}},a_=class B${constructor(t){jt(this,"point");this.point=new fs(t)}static fromSVGPathData(t){if(t.length<3)throw new Error("Line 参数个数错误");if(t[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new B$({x:t[1],y:t[2]})}toSVGPathData(){return["L",this.point.x,this.point.y]}toSVGPathD(){return"L "+this.point.toSVGPathD()}},s_=class H$ extends a_{constructor(r){super(r);jt(this,"rx");jt(this,"ry");jt(this,"xAxisRotate");jt(this,"largeArcFlag");jt(this,"sweepFlag");this.rx=r.rx,this.ry=r.ry,this.xAxisRotate=(r==null?void 0:r.xAxisRotate)??0,this.largeArcFlag=(r==null?void 0:r.largeArcFlag)??1,this.sweepFlag=(r==null?void 0:r.sweepFlag)??1}static fromSVGPathData(r){if(r.length<8)throw new Error("Arc 参数个数错误");if(r[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new H$({x:r[6],y:r[7],rx:r[1],ry:r[2],xAxisRotate:r[3],largeArcFlag:r[4],sweepFlag:r[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()}`}},If=class q$ extends a_{constructor(r){super(r);jt(this,"ctrlPoints",[]);this.ctrlPoints.push(new fs({x:r.c1x,y:r.c1y})),this.ctrlPoints.push(new fs({x:r.c2x,y:r.c2y}))}static fromSVGPathData(r){if(r.length<7)throw new Error("CubicBezier 参数个数错误");if(r[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new q$({c1x:r[1],c1y:r[2],c2x:r[3],c2y:r[4],x:r[5],y:r[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(r=>r.toSVGPathD()).join(" ")} ${this.point.toSVGPathD()}`}};class fa{constructor(t){jt(this,"startPoint");jt(this,"isClosed",!1);jt(this,"lines",[]);jt(this,"normalizedLines",[]);var r;this.startPoint=(t==null?void 0:t.startPoint)??null,this.isClosed=(t==null?void 0:t.isClosed)??!1,(r=t==null?void 0:t.lines)==null||r.forEach(this.addLine),this.normalize()}setStartPoint(t,r){return this.startPoint=new fs({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=Cf(Ef(kf(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(If.fromSVGPathData(o))}return this}static fromSVGPathD(t,r){if(!qO(t))throw new Error("Not an SVG path!");const n=Cf(Ef(kf(t)));return fa.fromSVGPathData(n,r)}static fromSVGPathData(t,r){const n=new fa;for(let o=0,a=t.length;o<a;o++){const s=t[o],c=s[0];if(o==0&&c=="M"){n.setStartPoint(s[1],s[2]);continue}if(o==a-1&&c=="Z"){n.isClosed=!0;continue}n.addLine(new If({c1x:s[1],c1y:s[2],c2x:s[3],c2y:s[4],x:s[5],y:s[6]}))}n.normalize();const i=Xc(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 a=0;a<o.length;a++){const s=o[a].x,c=o[a].y;s<t[0]&&(t[0]=s),c<t[1]&&(t[1]=c),s>t[2]&&(t[2]=s),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 uA(this.toSVGPathD())}getPointAtLength(t){return hA(this.toSVGPathD(),t)}isPointInPath(t,r){return dA(this.toSVGPathD(),t,r)}isPointInStroke(t,r,n={lineWidth:1,lineCap:"butt",lineJoin:"miter"}){return fA(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 a=0,s=i.length;a<s;a+=2){const c=i[a],l=i[a+1],[u,d]=t.transformPoint(c,l);o.push(u,d)}return If.fromSVGPathData(o)}),this}translate(t,r){const n=new Fn().translate(t,r);return this.transform(n)}rotate(t,r=0,n=0){const i=new Fn().rotate(t,r,n);return this.transform(i)}scale(t,r=t,n=0,i=0){const o=new Fn().scale(t,r,n,i);return this.transform(o)}skew(t,r=0){const n=new Fn().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 a=new fa;a.setStartPoint(t,r);const s=360/o;for(let c=0;c<o;c+=1){const l=s*c*Math.PI/180,u=t+2*n*Math.cos(l),d=r+2*n*Math.sin(l);a.addLine(new s_({x:u,y:d,rx:n,ry:i,xAxisRotate:s*c,largeArcFlag:1,sweepFlag:1})),a.addLine(new s_({x:t,y:r,rx:n,ry:i,xAxisRotate:s*c,largeArcFlag:1,sweepFlag:1}))}return a.normalize(),a}}var l_={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 a=n[o]={i:o,l:!1,exports:{}};return r[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=r,i.c=n,i.d=function(o,a,s){i.o(o,a)||Object.defineProperty(o,a,{enumerable:!0,get:s})},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,a){if(1&a&&(o=i(o)),8&a||4&a&&typeof o=="object"&&o&&o.__esModule)return o;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:o}),2&a&&typeof o!="string")for(var c in o)i.d(s,c,(function(l){return o[l]}).bind(null,c));return s},i.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(a,"a",a),a},i.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},i.p="",i(i.s=1)}([function(r,n,i){var o,a;o=[i(2)],(a=(function(s){function c(S){if(c.is(S,"function"))return l?S():s.on("raphael.DOMload",S);if(c.is(S,at))return c._engine.create[y](c,S.splice(0,3+c.is(S[0],$t))).add(S);var O=Array.prototype.slice.call(arguments,0);if(c.is(O[O.length-1],"function")){var I=O.pop();return l?I.call(c._engine.create[y](c,O)):s.on("raphael.DOMload",function(){I.call(c._engine.create[y](c,O))})}return c._engine.create[y](c,arguments)}c.version="2.3.0",c.eve=s;var l,u,d=/[, ]+/,f={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},h=/\{(\d+)\}/g,p="hasOwnProperty",g={doc:document,win:window},v={was:Object.prototype[p].call(g.win,"Raphael"),is:g.win.Raphael},_=function(){this.ca=this.customAttributes={}},y="apply",m="concat",x="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,N="",$=" ",A=String,R="split",G="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[R]($),H={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},Y=A.prototype.toLowerCase,J=Math,nt=J.max,rt=J.min,lt=J.abs,xt=J.pow,Ct=J.PI,$t="number",at="array",X=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),E={NaN:1,Infinity:1,"-Infinity":1},k=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,b=J.round,C=parseFloat,L=parseInt,D=A.prototype.toUpperCase,V=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:""},K=c._availableAnimAttrs={blur:$t,"clip-rect":"csv",cx:$t,cy:$t,fill:"colour","fill-opacity":$t,"font-size":$t,height:$t,opacity:$t,path:"path",r:$t,rx:$t,ry:$t,stroke:"colour","stroke-opacity":$t,"stroke-width":$t,transform:"transform",width:$t,x:$t,y:$t},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]*/,it={hs:1,rg:1},ut=/,?([achlmqrstvxz]),?/gi,Tt=/([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,Gt=/([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,Pt=/(-?\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,Nt=(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]*([^\)]+?)\))?/,{}),qt=function(S,O){return C(S)-C(O)},Qt=function(S){return S},Dt=c._rectPath=function(S,O,I,w,P){return P?[["M",S+P,O],["l",I-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-I,0],["a",P,P,0,0,1,-P,-P],["l",0,2*P-w],["a",P,P,0,0,1,P,-P],["z"]]:[["M",S,O],["l",I,0],["l",0,w],["l",-I,0],["z"]]},fe=function(S,O,I,w){return w==null&&(w=I),[["M",S,O],["m",0,-w],["a",I,w,0,1,1,0,2*w],["a",I,w,0,1,1,0,-2*w],["z"]]},re=c._getPath={path:function(S){return S.attr("path")},circle:function(S){var O=S.attrs;return fe(O.cx,O.cy,O.r)},ellipse:function(S){var O=S.attrs;return fe(O.cx,O.cy,O.rx,O.ry)},rect:function(S){var O=S.attrs;return Dt(O.x,O.y,O.width,O.height,O.r)},image:function(S){var O=S.attrs;return Dt(O.x,O.y,O.width,O.height)},text:function(S){var O=S._getBBox();return Dt(O.x,O.y,O.width,O.height)},set:function(S){var O=S._getBBox();return Dt(O.x,O.y,O.width,O.height)}},he=c.mapPath=function(S,O){if(!O)return S;var I,w,P,F,B,q,W;for(P=0,B=(S=Xn(S)).length;P<B;P++)for(F=1,q=(W=S[P]).length;F<q;F+=2)I=O.x(W[F],W[F+1]),w=O.y(W[F],W[F+1]),W[F]=I,W[F+1]=w;return S};if(c._g=g,c.type=g.win.SVGAngle||g.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",c.type=="VML"){var Vt,Le=g.doc.createElement("div");if(Le.innerHTML='<v:shape adj="1"/>',(Vt=Le.firstChild).style.behavior="url(#default#VML)",!Vt||typeof Vt.adj!="object")return c.type=N;Le=null}function Ue(S){if(typeof S=="function"||Object(S)!==S)return S;var O=new S.constructor;for(var I in S)S[p](I)&&(O[I]=Ue(S[I]));return O}c.svg=!(c.vml=c.type=="VML"),c._Paper=_,c.fn=u=_.prototype=c.prototype,c._id=0,c.is=function(S,O){return(O=Y.call(O))=="finite"?!E[p](+S):O=="array"?S instanceof Array:O=="null"&&S===null||O==typeof S&&S!==null||O=="object"&&S===Object(S)||O=="array"&&Array.isArray&&Array.isArray(S)||X.call(S).slice(8,-1).toLowerCase()==O},c.angle=function(S,O,I,w,P,F){if(P==null){var B=S-I,q=O-w;return B||q?(180+180*J.atan2(-q,-B)/Ct+360)%360:0}return c.angle(S,O,P,F)-c.angle(I,w,P,F)},c.rad=function(S){return S%360*Ct/180},c.deg=function(S){return Math.round(180*S/Ct%360*1e3)/1e3},c.snapTo=function(S,O,I){if(I=c.is(I,"finite")?I:10,c.is(S,at)){for(var w=S.length;w--;)if(lt(S[w]-O)<=I)return S[w]}else{var P=O%(S=+S);if(P<I)return O-P;if(P>S-I)return O-P+S}return O};var Xe,pr;c.createUUID=(Xe=/[xy]/g,pr=function(S){var O=16*J.random()|0;return(S=="x"?O:3&O|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Xe,pr).toUpperCase()}),c.setWindow=function(S){s("raphael.setWindow",c,g.win,S),g.win=S,g.doc=g.win.document,c._engine.initWin&&c._engine.initWin(g.win)};var dr=function(S){if(c.vml){var O,I=/^\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();dr=er(function(B){try{O.style.color=A(B).replace(I,N);var q=P.queryCommandValue("ForeColor");return"#"+("000000"+(q=(255&q)<<16|65280&q|(16711680&q)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var F=g.doc.createElement("i");F.title="Raphaël Colour Picker",F.style.display="none",g.doc.body.appendChild(F),dr=er(function(B){return F.style.color=B,g.doc.defaultView.getComputedStyle(F,N).getPropertyValue("color")})}return dr(S)},$e=function(){return"hsb("+[this.h,this.s,this.b]+")"},Ze=function(){return"hsl("+[this.h,this.s,this.l]+")"},jr=function(){return this.hex},Ir=function(S,O,I){if(O==null&&c.is(S,"object")&&"r"in S&&"g"in S&&"b"in S&&(I=S.b,O=S.g,S=S.r),O==null&&c.is(S,"string")){var w=c.getRGB(S);S=w.r,O=w.g,I=w.b}return(S>1||O>1||I>1)&&(S/=255,O/=255,I/=255),[S,O,I]},Sr=function(S,O,I,w){var P={r:S*=255,g:O*=255,b:I*=255,hex:c.rgb(S,O,I),toString:jr};return c.is(w,"finite")&&(P.opacity=w),P};function er(S,O,I){return function w(){var P=Array.prototype.slice.call(arguments,0),F=P.join("␀"),B=w.cache=w.cache||{},q=w.count=w.count||[];return B[p](F)?(function(W,tt){for(var ot=0,dt=W.length;ot<dt;ot++)if(W[ot]===tt)return W.push(W.splice(ot,1)[0])}(q,F),I?I(B[F]):B[F]):(q.length>=1e3&&delete B[q.shift()],q.push(F),B[F]=S[y](O,P),I?I(B[F]):B[F])}}c.color=function(S){var O;return c.is(S,"object")&&"h"in S&&"s"in S&&"b"in S?(O=c.hsb2rgb(S),S.r=O.r,S.g=O.g,S.b=O.b,S.hex=O.hex):c.is(S,"object")&&"h"in S&&"s"in S&&"l"in S?(O=c.hsl2rgb(S),S.r=O.r,S.g=O.g,S.b=O.b,S.hex=O.hex):(c.is(S,"string")&&(S=c.getRGB(S)),c.is(S,"object")&&"r"in S&&"g"in S&&"b"in S?(O=c.rgb2hsl(S),S.h=O.h,S.s=O.s,S.l=O.l,O=c.rgb2hsb(S),S.v=O.b):(S={hex:"none"}).r=S.g=S.b=S.h=S.s=S.v=S.l=-1),S.toString=jr,S},c.hsb2rgb=function(S,O,I,w){var P,F,B,q,W;return this.is(S,"object")&&"h"in S&&"s"in S&&"b"in S&&(I=S.b,O=S.s,w=S.o,S=S.h),q=(W=I*O)*(1-lt((S=(S*=360)%360/60)%2-1)),P=F=B=I-W,Sr(P+=[W,q,0,0,q,W][S=~~S],F+=[q,W,W,q,0,0][S],B+=[0,0,q,W,W,q][S],w)},c.hsl2rgb=function(S,O,I,w){var P,F,B,q,W;return this.is(S,"object")&&"h"in S&&"s"in S&&"l"in S&&(I=S.l,O=S.s,S=S.h),(S>1||O>1||I>1)&&(S/=360,O/=100,I/=100),q=(W=2*O*(I<.5?I:1-I))*(1-lt((S=(S*=360)%360/60)%2-1)),P=F=B=I-W/2,Sr(P+=[W,q,0,0,q,W][S=~~S],F+=[q,W,W,q,0,0][S],B+=[0,0,q,W,W,q][S],w)},c.rgb2hsb=function(S,O,I){var w,P;return S=(I=Ir(S,O,I))[0],O=I[1],I=I[2],{h:(((P=(w=nt(S,O,I))-rt(S,O,I))==0?null:w==S?(O-I)/P:w==O?(I-S)/P+2:(S-O)/P+4)+360)%6*60/360,s:P==0?0:P/w,b:w,toString:$e}},c.rgb2hsl=function(S,O,I){var w,P,F,B;return S=(I=Ir(S,O,I))[0],O=I[1],I=I[2],w=((P=nt(S,O,I))+(F=rt(S,O,I)))/2,{h:(((B=P-F)==0?null:P==S?(O-I)/B:P==O?(I-S)/B+2:(S-O)/B+4)+360)%6*60/360,s:B==0?0:w<.5?B/(2*w):B/(2-2*w),l:w,toString:Ze}},c._path2string=function(){return this.join(",").replace(ut,"$1")},c._preload=function(S,O){var I=g.doc.createElement("img");I.style.cssText="position:absolute;left:-9999em;top:-9999em",I.onload=function(){O.call(this),this.onload=null,g.doc.body.removeChild(this)},I.onerror=function(){g.doc.body.removeChild(this)},g.doc.body.appendChild(I),I.src=S};function rn(){return this.hex}function nn(S,O){for(var I=[],w=0,P=S.length;P-2*!O>w;w+=2){var F=[{x:+S[w-2],y:+S[w-1]},{x:+S[w],y:+S[w+1]},{x:+S[w+2],y:+S[w+3]},{x:+S[w+4],y:+S[w+5]}];O?w?P-4==w?F[3]={x:+S[0],y:+S[1]}:P-2==w&&(F[2]={x:+S[0],y:+S[1]},F[3]={x:+S[2],y:+S[3]}):F[0]={x:+S[P-2],y:+S[P-1]}:P-4==w?F[3]=F[2]:w||(F[0]={x:+S[w],y:+S[w+1]}),I.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 I}c.getRGB=er(function(S){if(!S||(S=A(S)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:rn};if(S=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:rn};!it[p](S.toLowerCase().substring(0,2))&&S.charAt()!="#"&&(S=dr(S));var O,I,w,P,F,B,q=S.match(T);return q?(q[2]&&(w=L(q[2].substring(5),16),I=L(q[2].substring(3,5),16),O=L(q[2].substring(1,3),16)),q[3]&&(w=L((F=q[3].charAt(3))+F,16),I=L((F=q[3].charAt(2))+F,16),O=L((F=q[3].charAt(1))+F,16)),q[4]&&(B=q[4][R](et),O=C(B[0]),B[0].slice(-1)=="%"&&(O*=2.55),I=C(B[1]),B[1].slice(-1)=="%"&&(I*=2.55),w=C(B[2]),B[2].slice(-1)=="%"&&(w*=2.55),q[1].toLowerCase().slice(0,4)=="rgba"&&(P=C(B[3])),B[3]&&B[3].slice(-1)=="%"&&(P/=100)),q[5]?(B=q[5][R](et),O=C(B[0]),B[0].slice(-1)=="%"&&(O*=2.55),I=C(B[1]),B[1].slice(-1)=="%"&&(I*=2.55),w=C(B[2]),B[2].slice(-1)=="%"&&(w*=2.55),(B[0].slice(-3)=="deg"||B[0].slice(-1)=="°")&&(O/=360),q[1].toLowerCase().slice(0,4)=="hsba"&&(P=C(B[3])),B[3]&&B[3].slice(-1)=="%"&&(P/=100),c.hsb2rgb(O,I,w,P)):q[6]?(B=q[6][R](et),O=C(B[0]),B[0].slice(-1)=="%"&&(O*=2.55),I=C(B[1]),B[1].slice(-1)=="%"&&(I*=2.55),w=C(B[2]),B[2].slice(-1)=="%"&&(w*=2.55),(B[0].slice(-3)=="deg"||B[0].slice(-1)=="°")&&(O/=360),q[1].toLowerCase().slice(0,4)=="hsla"&&(P=C(B[3])),B[3]&&B[3].slice(-1)=="%"&&(P/=100),c.hsl2rgb(O,I,w,P)):((q={r:O,g:I,b:w,toString:rn}).hex="#"+(16777216|w|I<<8|O<<16).toString(16).slice(1),c.is(P,"finite")&&(q.opacity=P),q)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:rn}},c),c.hsb=er(function(S,O,I){return c.hsb2rgb(S,O,I).hex}),c.hsl=er(function(S,O,I){return c.hsl2rgb(S,O,I).hex}),c.rgb=er(function(S,O,I){function w(P){return P+.5|0}return"#"+(16777216|w(I)|w(O)<<8|w(S)<<16).toString(16).slice(1)}),c.getColor=function(S){var O=this.getColor.start=this.getColor.start||{h:0,s:1,b:S||.75},I=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})),I.hex},c.getColor.reset=function(){delete this.start},c.parsePathString=function(S){if(!S)return null;var O=xe(S);if(O.arr)return Ie(O.arr);var I={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(S,at)&&c.is(S[0],at)&&(w=Ie(S)),w.length||A(S).replace(Tt,function(P,F,B){var q=[],W=F.toLowerCase();if(B.replace(Pt,function(tt,ot){ot&&q.push(+ot)}),W=="m"&&q.length>2&&(w.push([F][m](q.splice(0,2))),W="l",F=F=="m"?"l":"L"),W=="r")w.push([F][m](q));else for(;q.length>=I[W]&&(w.push([F][m](q.splice(0,I[W]))),I[W]););}),w.toString=c._path2string,O.arr=Ie(w),w},c.parseTransformString=er(function(S){if(!S)return null;var O=[];return c.is(S,at)&&c.is(S[0],at)&&(O=Ie(S)),O.length||A(S).replace(Gt,function(I,w,P){var F=[];Y.call(w),P.replace(Pt,function(B,q){q&&F.push(+q)}),O.push([w][m](F))}),O.toString=c._path2string,O},this,function(S){if(!S)return S;for(var O=[],I=0;I<S.length;I++){for(var w=[],P=0;P<S[I].length;P++)w.push(S[I][P]);O.push(w)}return O});var xe=function(S){var O=xe.ps=xe.ps||{};return O[S]?O[S].sleep=100:O[S]={sleep:100},setTimeout(function(){for(var I in O)O[p](I)&&I!=S&&(O[I].sleep--,!O[I].sleep&&delete O[I])}),O[S]};function Kr(S,O,I,w,P){return S*(S*(-3*O+9*I-9*w+3*P)+6*O-12*I+6*w)-3*O+3*I}function Or(S,O,I,w,P,F,B,q,W){W==null&&(W=1);for(var tt=(W=W>1?1:W<0?0:W)/2,ot=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],dt=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],ct=0,st=0;st<12;st++){var ft=tt*ot[st]+tt,_t=Kr(ft,S,I,P,B),pt=Kr(ft,O,w,F,q),ht=_t*_t+pt*pt;ct+=dt[st]*J.sqrt(ht)}return tt*ct}function Yn(S,O,I,w,P,F,B,q){if(!(nt(S,I)<rt(P,B)||rt(S,I)>nt(P,B)||nt(O,w)<rt(F,q)||rt(O,w)>nt(F,q))){var W=(S-I)*(F-q)-(O-w)*(P-B);if(W){var tt=((S*w-O*I)*(P-B)-(S-I)*(P*q-F*B))/W,ot=((S*w-O*I)*(F-q)-(O-w)*(P*q-F*B))/W,dt=+tt.toFixed(2),ct=+ot.toFixed(2);if(!(dt<+rt(S,I).toFixed(2)||dt>+nt(S,I).toFixed(2)||dt<+rt(P,B).toFixed(2)||dt>+nt(P,B).toFixed(2)||ct<+rt(O,w).toFixed(2)||ct>+nt(O,w).toFixed(2)||ct<+rt(F,q).toFixed(2)||ct>+nt(F,q).toFixed(2)))return{x:tt,y:ot}}}}function mn(S,O,I){var w=c.bezierBBox(S),P=c.bezierBBox(O);if(!c.isBBoxIntersect(w,P))return I?0:[];for(var F=Or.apply(0,S),B=Or.apply(0,O),q=nt(~~(F/5),1),W=nt(~~(B/5),1),tt=[],ot=[],dt={},ct=I?0:[],st=0;st<q+1;st++){var ft=c.findDotsAtSegment.apply(c,S.concat(st/q));tt.push({x:ft.x,y:ft.y,t:st/q})}for(st=0;st<W+1;st++)ft=c.findDotsAtSegment.apply(c,O.concat(st/W)),ot.push({x:ft.x,y:ft.y,t:st/W});for(st=0;st<q;st++)for(var _t=0;_t<W;_t++){var pt=tt[st],ht=tt[st+1],Rt=ot[_t],bt=ot[_t+1],Et=lt(ht.x-pt.x)<.001?"y":"x",wt=lt(bt.x-Rt.x)<.001?"y":"x",ae=Yn(pt.x,pt.y,ht.x,ht.y,Rt.x,Rt.y,bt.x,bt.y);if(ae){if(dt[ae.x.toFixed(4)]==ae.y.toFixed(4))continue;dt[ae.x.toFixed(4)]=ae.y.toFixed(4);var te=pt.t+lt((ae[Et]-pt[Et])/(ht[Et]-pt[Et]))*(ht.t-pt.t),se=Rt.t+lt((ae[wt]-Rt[wt])/(bt[wt]-Rt[wt]))*(bt.t-Rt.t);te>=0&&te<=1.001&&se>=0&&se<=1.001&&(I?ct++:ct.push({x:ae.x,y:ae.y,t1:rt(te,1),t2:rt(se,1)}))}}return ct}function kn(S,O,I){S=c._path2curve(S),O=c._path2curve(O);for(var w,P,F,B,q,W,tt,ot,dt,ct,st=I?0:[],ft=0,_t=S.length;ft<_t;ft++){var pt=S[ft];if(pt[0]=="M")w=q=pt[1],P=W=pt[2];else{pt[0]=="C"?(dt=[w,P].concat(pt.slice(1)),w=dt[6],P=dt[7]):(dt=[w,P,w,P,q,W,q,W],w=q,P=W);for(var ht=0,Rt=O.length;ht<Rt;ht++){var bt=O[ht];if(bt[0]=="M")F=tt=bt[1],B=ot=bt[2];else{bt[0]=="C"?(ct=[F,B].concat(bt.slice(1)),F=ct[6],B=ct[7]):(ct=[F,B,F,B,tt,ot,tt,ot],F=tt,B=ot);var Et=mn(dt,ct,I);if(I)st+=Et;else{for(var wt=0,ae=Et.length;wt<ae;wt++)Et[wt].segment1=ft,Et[wt].segment2=ht,Et[wt].bez1=dt,Et[wt].bez2=ct;st=st.concat(Et)}}}}}return st}c.findDotsAtSegment=function(S,O,I,w,P,F,B,q,W){var tt=1-W,ot=xt(tt,3),dt=xt(tt,2),ct=W*W,st=ct*W,ft=ot*S+3*dt*W*I+3*tt*W*W*P+st*B,_t=ot*O+3*dt*W*w+3*tt*W*W*F+st*q,pt=S+2*W*(I-S)+ct*(P-2*I+S),ht=O+2*W*(w-O)+ct*(F-2*w+O),Rt=I+2*W*(P-I)+ct*(B-2*P+I),bt=w+2*W*(F-w)+ct*(q-2*F+w),Et=tt*S+W*I,wt=tt*O+W*w,ae=tt*P+W*B,te=tt*F+W*q,se=90-180*J.atan2(pt-Rt,ht-bt)/Ct;return(pt>Rt||ht<bt)&&(se+=180),{x:ft,y:_t,m:{x:pt,y:ht},n:{x:Rt,y:bt},start:{x:Et,y:wt},end:{x:ae,y:te},alpha:se}},c.bezierBBox=function(S,O,I,w,P,F,B,q){c.is(S,"array")||(S=[S,O,I,w,P,F,B,q]);var W=Yr.apply(null,S);return{x:W.min.x,y:W.min.y,x2:W.max.x,y2:W.max.y,width:W.max.x-W.min.x,height:W.max.y-W.min.y}},c.isPointInsideBBox=function(S,O,I){return O>=S.x&&O<=S.x2&&I>=S.y&&I<=S.y2},c.isBBoxIntersect=function(S,O){var I=c.isPointInsideBBox;return I(O,S.x,S.y)||I(O,S.x2,S.y)||I(O,S.x,S.y2)||I(O,S.x2,S.y2)||I(S,O.x,O.y)||I(S,O.x2,O.y)||I(S,O.x,O.y2)||I(S,O.x2,O.y2)||(S.x<O.x2&&S.x>O.x||O.x<S.x2&&O.x>S.x)&&(S.y<O.y2&&S.y>O.y||O.y<S.y2&&O.y>S.y)},c.pathIntersection=function(S,O){return kn(S,O)},c.pathIntersectionNumber=function(S,O){return kn(S,O,1)},c.isPointInsidePath=function(S,O,I){var w=c.pathBBox(S);return c.isPointInsideBBox(w,O,I)&&kn(S,[["M",O,I],["H",w.x2+10]],1)%2==1},c._removedFactory=function(S){return function(){s("raphael.log",null,"Raphaël: you are calling to method “"+S+"” of removed object",S)}};var Dr=c.pathBBox=function(S){var O=xe(S);if(O.bbox)return Ue(O.bbox);if(!S)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var I,w=0,P=0,F=[],B=[],q=0,W=(S=Xn(S)).length;q<W;q++)if((I=S[q])[0]=="M")w=I[1],P=I[2],F.push(w),B.push(P);else{var tt=Yr(w,P,I[1],I[2],I[3],I[4],I[5],I[6]);F=F[m](tt.min.x,tt.max.x),B=B[m](tt.min.y,tt.max.y),w=I[5],P=I[6]}var ot=rt[y](0,F),dt=rt[y](0,B),ct=nt[y](0,F),st=nt[y](0,B),ft=ct-ot,_t=st-dt,pt={x:ot,y:dt,x2:ct,y2:st,width:ft,height:_t,cx:ot+ft/2,cy:dt+_t/2};return O.bbox=Ue(pt),pt},Ie=function(S){var O=Ue(S);return O.toString=c._path2string,O},mo=c._pathToRelative=function(S){var O=xe(S);if(O.rel)return Ie(O.rel);c.is(S,at)&&c.is(S&&S[0],at)||(S=c.parsePathString(S));var I=[],w=0,P=0,F=0,B=0,q=0;S[0][0]=="M"&&(F=w=S[0][1],B=P=S[0][2],q++,I.push(["M",w,P]));for(var W=q,tt=S.length;W<tt;W++){var ot=I[W]=[],dt=S[W];if(dt[0]!=Y.call(dt[0]))switch(ot[0]=Y.call(dt[0]),ot[0]){case"a":ot[1]=dt[1],ot[2]=dt[2],ot[3]=dt[3],ot[4]=dt[4],ot[5]=dt[5],ot[6]=+(dt[6]-w).toFixed(3),ot[7]=+(dt[7]-P).toFixed(3);break;case"v":ot[1]=+(dt[1]-P).toFixed(3);break;case"m":F=dt[1],B=dt[2];default:for(var ct=1,st=dt.length;ct<st;ct++)ot[ct]=+(dt[ct]-(ct%2?w:P)).toFixed(3)}else{ot=I[W]=[],dt[0]=="m"&&(F=dt[1]+w,B=dt[2]+P);for(var ft=0,_t=dt.length;ft<_t;ft++)I[W][ft]=dt[ft]}var pt=I[W].length;switch(I[W][0]){case"z":w=F,P=B;break;case"h":w+=+I[W][pt-1];break;case"v":P+=+I[W][pt-1];break;default:w+=+I[W][pt-2],P+=+I[W][pt-1]}}return I.toString=c._path2string,O.rel=Ie(I),I},on=c._pathToAbsolute=function(S){var O=xe(S);if(O.abs)return Ie(O.abs);if(c.is(S,at)&&c.is(S&&S[0],at)||(S=c.parsePathString(S)),!S||!S.length)return[["M",0,0]];var I=[],w=0,P=0,F=0,B=0,q=0;S[0][0]=="M"&&(F=w=+S[0][1],B=P=+S[0][2],q++,I[0]=["M",w,P]);for(var W,tt,ot=S.length==3&&S[0][0]=="M"&&S[1][0].toUpperCase()=="R"&&S[2][0].toUpperCase()=="Z",dt=q,ct=S.length;dt<ct;dt++){if(I.push(W=[]),(tt=S[dt])[0]!=D.call(tt[0]))switch(W[0]=D.call(tt[0]),W[0]){case"A":W[1]=tt[1],W[2]=tt[2],W[3]=tt[3],W[4]=tt[4],W[5]=tt[5],W[6]=+(tt[6]+w),W[7]=+(tt[7]+P);break;case"V":W[1]=+tt[1]+P;break;case"H":W[1]=+tt[1]+w;break;case"R":for(var st=[w,P][m](tt.slice(1)),ft=2,_t=st.length;ft<_t;ft++)st[ft]=+st[ft]+w,st[++ft]=+st[ft]+P;I.pop(),I=I[m](nn(st,ot));break;case"M":F=+tt[1]+w,B=+tt[2]+P;default:for(ft=1,_t=tt.length;ft<_t;ft++)W[ft]=+tt[ft]+(ft%2?w:P)}else if(tt[0]=="R")st=[w,P][m](tt.slice(1)),I.pop(),I=I[m](nn(st,ot)),W=["R"][m](tt.slice(-2));else for(var pt=0,ht=tt.length;pt<ht;pt++)W[pt]=tt[pt];switch(W[0]){case"Z":w=F,P=B;break;case"H":w=W[1];break;case"V":P=W[1];break;case"M":F=W[W.length-2],B=W[W.length-1];default:w=W[W.length-2],P=W[W.length-1]}}return I.toString=c._path2string,O.abs=Ie(I),I},gn=function(S,O,I,w){return[S,O,I,w,I,w]},$r=function(S,O,I,w,P,F){return[1/3*S+2/3*I,1/3*O+2/3*w,1/3*P+2/3*I,1/3*F+2/3*w,P,F]},En=function(S,O,I,w,P,F,B,q,W,tt){var ot,dt=120*Ct/180,ct=Ct/180*(+P||0),st=[],ft=er(function(z$,G$,yh){return{x:z$*J.cos(yh)-G$*J.sin(yh),y:z$*J.sin(yh)+G$*J.cos(yh)}});if(tt)te=tt[0],se=tt[1],wt=tt[2],ae=tt[3];else{S=(ot=ft(S,O,-ct)).x,O=ot.y,q=(ot=ft(q,W,-ct)).x,W=ot.y;var _t=(S-q)/2,pt=(O-W)/2,ht=_t*_t/(I*I)+pt*pt/(w*w);ht>1&&(I*=ht=J.sqrt(ht),w*=ht);var Rt=I*I,bt=w*w,Et=(F==B?-1:1)*J.sqrt(lt((Rt*bt-Rt*pt*pt-bt*_t*_t)/(Rt*pt*pt+bt*_t*_t))),wt=Et*I*pt/w+(S+q)/2,ae=Et*-w*_t/I+(O+W)/2,te=J.asin(((O-ae)/w).toFixed(9)),se=J.asin(((W-ae)/w).toFixed(9));(te=S<wt?Ct-te:te)<0&&(te=2*Ct+te),(se=q<wt?Ct-se:se)<0&&(se=2*Ct+se),B&&te>se&&(te-=2*Ct),!B&&se>te&&(se-=2*Ct)}var Ma=se-te;if(lt(Ma)>dt){var ac=se,sn=q,hi=W;se=te+dt*(B&&se>te?1:-1),q=wt+I*J.cos(se),W=ae+w*J.sin(se),st=En(q,W,I,w,P,0,B,sn,hi,[se,ac,wt,ae])}Ma=se-te;var La=J.cos(te),Ua=J.sin(te),gh=J.cos(se),Li=J.sin(se),na=J.tan(Ma/4),vh=4/3*I*na,D$=4/3*w*na,F$=[S,O],za=[S+vh*Ua,O-D$*La],M$=[q+vh*Li,W-D$*gh],L$=[q,W];if(za[0]=2*F$[0]-za[0],za[1]=2*F$[1]-za[1],tt)return[za,M$,L$][m](st);for(var U$=[],go=0,UY=(st=[za,M$,L$][m](st).join()[R](",")).length;go<UY;go++)U$[go]=go%2?ft(st[go-1],st[go],ct).y:ft(st[go],st[go+1],ct).x;return U$},vn=function(S,O,I,w,P,F,B,q,W){var tt=1-W;return{x:xt(tt,3)*S+3*xt(tt,2)*W*I+3*tt*W*W*P+xt(W,3)*B,y:xt(tt,3)*O+3*xt(tt,2)*W*w+3*tt*W*W*F+xt(W,3)*q}},Yr=er(function(S,O,I,w,P,F,B,q){var W,tt=P-2*I+S-(B-2*P+I),ot=2*(I-S)-2*(P-I),dt=S-I,ct=(-ot+J.sqrt(ot*ot-4*tt*dt))/2/tt,st=(-ot-J.sqrt(ot*ot-4*tt*dt))/2/tt,ft=[O,q],_t=[S,B];return lt(ct)>"1e12"&&(ct=.5),lt(st)>"1e12"&&(st=.5),ct>0&&ct<1&&(W=vn(S,O,I,w,P,F,B,q,ct),_t.push(W.x),ft.push(W.y)),st>0&&st<1&&(W=vn(S,O,I,w,P,F,B,q,st),_t.push(W.x),ft.push(W.y)),tt=F-2*w+O-(q-2*F+w),dt=O-w,ct=(-(ot=2*(w-O)-2*(F-w))+J.sqrt(ot*ot-4*tt*dt))/2/tt,st=(-ot-J.sqrt(ot*ot-4*tt*dt))/2/tt,lt(ct)>"1e12"&&(ct=.5),lt(st)>"1e12"&&(st=.5),ct>0&&ct<1&&(W=vn(S,O,I,w,P,F,B,q,ct),_t.push(W.x),ft.push(W.y)),st>0&&st<1&&(W=vn(S,O,I,w,P,F,B,q,st),_t.push(W.x),ft.push(W.y)),{min:{x:rt[y](0,_t),y:rt[y](0,ft)},max:{x:nt[y](0,_t),y:nt[y](0,ft)}}}),Xn=c._path2curve=er(function(S,O){var I=!O&&xe(S);if(!O&&I.curve)return Ie(I.curve);for(var w=on(S),P=O&&on(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},q=function(Et,wt,ae){var te,se;if(!Et)return["C",wt.x,wt.y,wt.x,wt.y,wt.x,wt.y];switch(!(Et[0]in{T:1,Q:1})&&(wt.qx=wt.qy=null),Et[0]){case"M":wt.X=Et[1],wt.Y=Et[2];break;case"A":Et=["C"][m](En[y](0,[wt.x,wt.y][m](Et.slice(1))));break;case"S":ae=="C"||ae=="S"?(te=2*wt.x-wt.bx,se=2*wt.y-wt.by):(te=wt.x,se=wt.y),Et=["C",te,se][m](Et.slice(1));break;case"T":ae=="Q"||ae=="T"?(wt.qx=2*wt.x-wt.qx,wt.qy=2*wt.y-wt.qy):(wt.qx=wt.x,wt.qy=wt.y),Et=["C"][m]($r(wt.x,wt.y,wt.qx,wt.qy,Et[1],Et[2]));break;case"Q":wt.qx=Et[1],wt.qy=Et[2],Et=["C"][m]($r(wt.x,wt.y,Et[1],Et[2],Et[3],Et[4]));break;case"L":Et=["C"][m](gn(wt.x,wt.y,Et[1],Et[2]));break;case"H":Et=["C"][m](gn(wt.x,wt.y,Et[1],wt.y));break;case"V":Et=["C"][m](gn(wt.x,wt.y,wt.x,Et[1]));break;case"Z":Et=["C"][m](gn(wt.x,wt.y,wt.X,wt.Y))}return Et},W=function(Et,wt){if(Et[wt].length>7){Et[wt].shift();for(var ae=Et[wt];ae.length;)ot[wt]="A",P&&(dt[wt]="A"),Et.splice(wt++,0,["C"][m](ae.splice(0,6)));Et.splice(wt,1),_t=nt(w.length,P&&P.length||0)}},tt=function(Et,wt,ae,te,se){Et&&wt&&Et[se][0]=="M"&&wt[se][0]!="M"&&(wt.splice(se,0,["M",te.x,te.y]),ae.bx=0,ae.by=0,ae.x=Et[se][1],ae.y=Et[se][2],_t=nt(w.length,P&&P.length||0))},ot=[],dt=[],ct="",st="",ft=0,_t=nt(w.length,P&&P.length||0);ft<_t;ft++){w[ft]&&(ct=w[ft][0]),ct!="C"&&(ot[ft]=ct,ft&&(st=ot[ft-1])),w[ft]=q(w[ft],F,st),ot[ft]!="A"&&ct=="C"&&(ot[ft]="C"),W(w,ft),P&&(P[ft]&&(ct=P[ft][0]),ct!="C"&&(dt[ft]=ct,ft&&(st=dt[ft-1])),P[ft]=q(P[ft],B,st),dt[ft]!="A"&&ct=="C"&&(dt[ft]="C"),W(P,ft)),tt(w,P,F,B,ft),tt(P,w,B,F,ft);var pt=w[ft],ht=P&&P[ft],Rt=pt.length,bt=P&&ht.length;F.x=pt[Rt-2],F.y=pt[Rt-1],F.bx=C(pt[Rt-4])||F.x,F.by=C(pt[Rt-3])||F.y,B.bx=P&&(C(ht[bt-4])||B.x),B.by=P&&(C(ht[bt-3])||B.y),B.x=P&&ht[bt-2],B.y=P&&ht[bt-1]}return P||(I.curve=Ie(w)),P?[w,P]:w},null,Ie),Cn=(c._parseDots=er(function(S){for(var O=[],I=0,w=S.length;I<w;I++){var P={},F=S[I].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(I=1,w=O.length-1;I<w;I++)if(!O[I].offset){for(var B=C(O[I-1].offset||0),q=0,W=I+1;W<w;W++)if(O[W].offset){q=O[W].offset;break}q||(q=100,W=w);for(var tt=((q=C(q))-B)/(W-I+1);I<W;I++)B+=tt,O[I].offset=B+"%"}return O}),c._tear=function(S,O){S==O.top&&(O.top=S.prev),S==O.bottom&&(O.bottom=S.next),S.next&&(S.next.prev=S.prev),S.prev&&(S.prev.next=S.next)}),j=(c._tofront=function(S,O){O.top!==S&&(Cn(S,O),S.next=null,S.prev=O.top,O.top.next=S,O.top=S)},c._toback=function(S,O){O.bottom!==S&&(Cn(S,O),S.next=O.bottom,S.prev=null,O.bottom.prev=S,O.bottom=S)},c._insertafter=function(S,O,I){Cn(S,I),O==I.top&&(I.top=S),O.next&&(O.next.prev=S),S.next=O.next,S.prev=O,O.next=S},c._insertbefore=function(S,O,I){Cn(S,I),O==I.bottom&&(I.bottom=S),O.prev&&(O.prev.next=S),S.prev=O.prev,O.prev=S,S.next=O},c.toMatrix=function(S,O){var I=Dr(S),w={_:{transform:N},getBBox:function(){return I}};return U(w,O),w.matrix}),U=(c.transformPath=function(S,O){return he(S,j(S,O))},c._extractTransform=function(S,O){if(O==null)return S._.transform;O=A(O).replace(/\.{3}|\u2026/g,S._.transform||N);var I,w,P=c.parseTransformString(O),F=0,B=1,q=1,W=S._,tt=new Z;if(W.transform=P||[],P)for(var ot=0,dt=P.length;ot<dt;ot++){var ct,st,ft,_t,pt,ht=P[ot],Rt=ht.length,bt=A(ht[0]).toLowerCase(),Et=ht[0]!=bt,wt=Et?tt.invert():0;bt=="t"&&Rt==3?Et?(ct=wt.x(0,0),st=wt.y(0,0),ft=wt.x(ht[1],ht[2]),_t=wt.y(ht[1],ht[2]),tt.translate(ft-ct,_t-st)):tt.translate(ht[1],ht[2]):bt=="r"?Rt==2?(pt=pt||S.getBBox(1),tt.rotate(ht[1],pt.x+pt.width/2,pt.y+pt.height/2),F+=ht[1]):Rt==4&&(Et?(ft=wt.x(ht[2],ht[3]),_t=wt.y(ht[2],ht[3]),tt.rotate(ht[1],ft,_t)):tt.rotate(ht[1],ht[2],ht[3]),F+=ht[1]):bt=="s"?Rt==2||Rt==3?(pt=pt||S.getBBox(1),tt.scale(ht[1],ht[Rt-1],pt.x+pt.width/2,pt.y+pt.height/2),B*=ht[1],q*=ht[Rt-1]):Rt==5&&(Et?(ft=wt.x(ht[3],ht[4]),_t=wt.y(ht[3],ht[4]),tt.scale(ht[1],ht[2],ft,_t)):tt.scale(ht[1],ht[2],ht[3],ht[4]),B*=ht[1],q*=ht[2]):bt=="m"&&Rt==7&&tt.add(ht[1],ht[2],ht[3],ht[4],ht[5],ht[6]),W.dirtyT=1,S.matrix=tt}S.matrix=tt,W.sx=B,W.sy=q,W.deg=F,W.dx=I=tt.e,W.dy=w=tt.f,B==1&&q==1&&!F&&W.bbox?(W.bbox.x+=+I,W.bbox.y+=+w):W.dirtyT=1}),z=function(S){var O=S[0];switch(O.toLowerCase()){case"t":return[O,0,0];case"m":return[O,1,0,0,1,0,0];case"r":return S.length==4?[O,0,S[2],S[3]]:[O,0];case"s":return S.length==5?[O,1,1,S[3],S[4]]:S.length==3?[O,1,1]:[O,1]}},Q=c._equaliseTransform=function(S,O){O=A(O).replace(/\.{3}|\u2026/g,S),S=c.parseTransformString(S)||[],O=c.parseTransformString(O)||[];for(var I,w,P,F,B=nt(S.length,O.length),q=[],W=[],tt=0;tt<B;tt++){if(P=S[tt]||z(O[tt]),F=O[tt]||z(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(q[tt]=[],W[tt]=[],I=0,w=nt(P.length,F.length);I<w;I++)I in P&&(q[tt][I]=P[I]),I in F&&(W[tt][I]=F[I])}return{from:q,to:W}};function Z(S,O,I,w,P,F){S!=null?(this.a=+S,this.b=+O,this.c=+I,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(S,O,I,w){var P;if((P=w!=null||c.is(S,"object")?S:g.doc.getElementById(S))!=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:I}:{container:1,x:S,y:O,width:I,height:w}},c.pathToRelative=mo,c._engine={},c.path2curve=Xn,c.matrix=function(S,O,I,w,P,F){return new Z(S,O,I,w,P,F)},function(S){function O(w){return w[0]*w[0]+w[1]*w[1]}function I(w){var P=J.sqrt(O(w));w[0]&&(w[0]/=P),w[1]&&(w[1]/=P)}S.add=function(w,P,F,B,q,W){var tt,ot,dt,ct,st=[[],[],[]],ft=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],_t=[[w,F,q],[P,B,W],[0,0,1]];for(w&&w instanceof Z&&(_t=[[w.a,w.c,w.e],[w.b,w.d,w.f],[0,0,1]]),tt=0;tt<3;tt++)for(ot=0;ot<3;ot++){for(ct=0,dt=0;dt<3;dt++)ct+=ft[tt][dt]*_t[dt][ot];st[tt][ot]=ct}this.a=st[0][0],this.b=st[1][0],this.c=st[0][1],this.d=st[1][1],this.e=st[0][2],this.f=st[1][2]},S.invert=function(){var w=this,P=w.a*w.d-w.b*w.c;return new Z(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)},S.clone=function(){return new Z(this.a,this.b,this.c,this.d,this.e,this.f)},S.translate=function(w,P){this.add(1,0,0,1,w,P)},S.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)},S.rotate=function(w,P,F){w=c.rad(w),P=P||0,F=F||0;var B=+J.cos(w).toFixed(9),q=+J.sin(w).toFixed(9);this.add(B,q,-q,B,P,F),this.add(1,0,0,1,-P,-F)},S.x=function(w,P){return w*this.a+P*this.c+this.e},S.y=function(w,P){return w*this.b+P*this.d+this.f},S.get=function(w){return+this[A.fromCharCode(97+w)].toFixed(4)},S.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()},S.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')"},S.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},S.split=function(){var w={};w.dx=this.e,w.dy=this.f;var P=[[this.a,this.c],[this.b,this.d]];w.scalex=J.sqrt(O(P[0])),I(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=J.sqrt(O(P[1])),I(P[1]),w.shear/=w.scaley;var F=-P[0][1],B=P[1][1];return B<0?(w.rotate=c.deg(J.acos(B)),F<0&&(w.rotate=360-w.rotate)):w.rotate=c.deg(J.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},S.toTransformString=function(w){var P=w||this[R]();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]:N)+(P.scalex!=1||P.scaley!=1?"s"+[P.scalex,P.scaley,0,0]:N)+(P.rotate?"r"+[P.rotate,0,0]:N)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(Z.prototype);for(var yt=function(){this.returnValue=!1},vt=function(){return this.originalEvent.preventDefault()},It=function(){this.cancelBubble=!0},oe=function(){return this.originalEvent.stopPropagation()},Ht=function(S){var O=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,I=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft;return{x:S.clientX+I,y:S.clientY+O}},Ot=g.doc.addEventListener?function(S,O,I,w){var P=function(B){var q=Ht(B);return I.call(w,B,q.x,q.y)};if(S.addEventListener(O,P,!1),x&&H[O]){var F=function(B){for(var q=Ht(B),W=B,tt=0,ot=B.targetTouches&&B.targetTouches.length;tt<ot;tt++)if(B.targetTouches[tt].target==S){(B=B.targetTouches[tt]).originalEvent=W,B.preventDefault=vt,B.stopPropagation=oe;break}return I.call(w,B,q.x,q.y)};S.addEventListener(H[O],F,!1)}return function(){return S.removeEventListener(O,P,!1),x&&H[O]&&S.removeEventListener(H[O],F,!1),!0}}:g.doc.attachEvent?function(S,O,I,w){var P=function(F){F=F||g.win.event;var B=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,q=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft,W=F.clientX+q,tt=F.clientY+B;return F.preventDefault=F.preventDefault||yt,F.stopPropagation=F.stopPropagation||It,I.call(w,F,W,tt)};return S.attachEvent("on"+O,P),function(){return S.detachEvent("on"+O,P),!0}}:void 0,Ft=[],Zt=function(S){for(var O,I=S.clientX,w=S.clientY,P=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,F=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft,B=Ft.length;B--;){if(O=Ft[B],x&&S.touches){for(var q,W=S.touches.length;W--;)if((q=S.touches[W]).identifier==O.el._drag.id){I=q.clientX,w=q.clientY,(S.originalEvent?S.originalEvent:S).preventDefault();break}}else S.preventDefault();var tt,ot=O.el.node,dt=ot.nextSibling,ct=ot.parentNode,st=ot.style.display;g.win.opera&&ct.removeChild(ot),ot.style.display="none",tt=O.el.paper.getElementByPoint(I,w),ot.style.display=st,g.win.opera&&(dt?ct.insertBefore(ot,dt):ct.appendChild(ot)),tt&&s("raphael.drag.over."+O.el.id,O.el,tt),I+=F,w+=P,s("raphael.drag.move."+O.el.id,O.move_scope||O.el,I-O.el._drag.x,w-O.el._drag.y,I,w,S)}},kt=function(S){c.unmousemove(Zt).unmouseup(kt);for(var O,I=Ft.length;I--;)(O=Ft[I]).el._drag={},s("raphael.drag.end."+O.el.id,O.end_scope||O.start_scope||O.move_scope||O.el,S);Ft=[]},At=c.el={},Xt=G.length;Xt--;)(function(S){c[S]=At[S]=function(O,I){return c.is(O,"function")&&(this.events=this.events||[],this.events.push({name:S,f:O,unbind:Ot(this.shape||this.node||g.doc,S,O,I||this)})),this},c["un"+S]=At["un"+S]=function(O){for(var I=this.events||[],w=I.length;w--;)I[w].name!=S||!c.is(O,"undefined")&&I[w].f!=O||(I[w].unbind(),I.splice(w,1),!I.length&&delete this.events);return this}})(G[Xt]);At.data=function(S,O){var I=Nt[this.id]=Nt[this.id]||{};if(arguments.length==0)return I;if(arguments.length==1){if(c.is(S,"object")){for(var w in S)S[p](w)&&this.data(w,S[w]);return this}return s("raphael.data.get."+this.id,this,I[S],S),I[S]}return I[S]=O,s("raphael.data.set."+this.id,this,O,S),this},At.removeData=function(S){return S==null?delete Nt[this.id]:Nt[this.id]&&delete Nt[this.id][S],this},At.getData=function(){return Ue(Nt[this.id]||{})},At.hover=function(S,O,I,w){return this.mouseover(S,I).mouseout(O,w||I)},At.unhover=function(S,O){return this.unmouseover(S).unmouseout(O)};var Te=[];At.drag=function(S,O,I,w,P,F){function B(q){(q.originalEvent||q).preventDefault();var W=q.clientX,tt=q.clientY,ot=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,dt=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft;if(this._drag.id=q.identifier,x&&q.touches){for(var ct,st=q.touches.length;st--;)if(ct=q.touches[st],this._drag.id=ct.identifier,ct.identifier==this._drag.id){W=ct.clientX,tt=ct.clientY;break}}this._drag.x=W+dt,this._drag.y=tt+ot,!Ft.length&&c.mousemove(Zt).mouseup(kt),Ft.push({el:this,move_scope:w,start_scope:P,end_scope:F}),O&&s.on("raphael.drag.start."+this.id,O),S&&s.on("raphael.drag.move."+this.id,S),I&&s.on("raphael.drag.end."+this.id,I),s("raphael.drag.start."+this.id,P||w||this,this._drag.x,this._drag.y,q)}return this._drag={},Te.push({el:this,start:B}),this.mousedown(B),this},At.onDragOver=function(S){S?s.on("raphael.drag.over."+this.id,S):s.unbind("raphael.drag.over."+this.id)},At.undrag=function(){for(var S=Te.length;S--;)Te[S].el==this&&(this.unmousedown(Te[S].start),Te.splice(S,1),s.unbind("raphael.drag.*."+this.id));!Te.length&&c.unmousemove(Zt).unmouseup(kt),Ft=[]},u.circle=function(S,O,I){var w=c._engine.circle(this,S||0,O||0,I||0);return this.__set__&&this.__set__.push(w),w},u.rect=function(S,O,I,w,P){var F=c._engine.rect(this,S||0,O||0,I||0,w||0,P||0);return this.__set__&&this.__set__.push(F),F},u.ellipse=function(S,O,I,w){var P=c._engine.ellipse(this,S||0,O||0,I||0,w||0);return this.__set__&&this.__set__.push(P),P},u.path=function(S){S&&!c.is(S,"string")&&!c.is(S[0],at)&&(S+=N);var O=c._engine.path(c.format[y](c,arguments),this);return this.__set__&&this.__set__.push(O),O},u.image=function(S,O,I,w,P){var F=c._engine.image(this,S||"about:blank",O||0,I||0,w||0,P||0);return this.__set__&&this.__set__.push(F),F},u.text=function(S,O,I){var w=c._engine.text(this,S||0,O||0,A(I));return this.__set__&&this.__set__.push(w),w},u.set=function(S){!c.is(S,"array")&&(S=Array.prototype.splice.call(arguments,0,arguments.length));var O=new ea(S);return this.__set__&&this.__set__.push(O),O.paper=this,O.type="set",O},u.setStart=function(S){this.__set__=S||this.set()},u.setFinish=function(S){var O=this.__set__;return delete this.__set__,O},u.getSize=function(){var S=this.canvas.parentNode;return{width:S.offsetWidth,height:S.offsetHeight}},u.setSize=function(S,O){return c._engine.setSize.call(this,S,O)},u.setViewBox=function(S,O,I,w,P){return c._engine.setViewBox.call(this,S,O,I,w,P)},u.top=u.bottom=null,u.raphael=c;function fr(){return this.x+$+this.y+$+this.width+" × "+this.height}u.getElementByPoint=function(S,O){var I,w,P,F,B,q,W,tt=this.canvas,ot=g.doc.elementFromPoint(S,O);if(g.win.opera&&ot.tagName=="svg"){var dt=(w=(I=tt).getBoundingClientRect(),P=I.ownerDocument,F=P.body,B=P.documentElement,q=B.clientTop||F.clientTop||0,W=B.clientLeft||F.clientLeft||0,{y:w.top+(g.win.pageYOffset||B.scrollTop||F.scrollTop)-q,x:w.left+(g.win.pageXOffset||B.scrollLeft||F.scrollLeft)-W}),ct=tt.createSVGRect();ct.x=S-dt.x,ct.y=O-dt.y,ct.width=ct.height=1;var st=tt.getIntersectionList(ct,null);st.length&&(ot=st[st.length-1])}if(!ot)return null;for(;ot.parentNode&&ot!=tt.parentNode&&!ot.raphael;)ot=ot.parentNode;return ot==this.canvas.parentNode&&(ot=tt),ot=ot&&ot.raphael?this.getById(ot.raphaelid):null},u.getElementsByBBox=function(S){var O=this.set();return this.forEach(function(I){c.isBBoxIntersect(I.getBBox(),S)&&O.push(I)}),O},u.getById=function(S){for(var O=this.bottom;O;){if(O.id==S)return O;O=O.next}return null},u.forEach=function(S,O){for(var I=this.bottom;I;){if(S.call(O,I)===!1)return this;I=I.next}return this},u.getElementsByPoint=function(S,O){var I=this.set();return this.forEach(function(w){w.isPointInside(S,O)&&I.push(w)}),I},At.isPointInside=function(S,O){var I=this.realPath=re[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(I=c.transformPath(I,this.attr("transform"))),c.isPointInsidePath(I,S,O)},At.getBBox=function(S){if(this.removed)return{};var O=this._;return S?(!O.dirty&&O.bboxwt||(this.realPath=re[this.type](this),O.bboxwt=Dr(this.realPath),O.bboxwt.toString=fr,O.dirty=0),O.bboxwt):((O.dirty||O.dirtyT||!O.bbox)&&(!O.dirty&&this.realPath||(O.bboxwt=0,this.realPath=re[this.type](this)),O.bbox=Dr(he(this.realPath,this.matrix)),O.bbox.toString=fr,O.dirty=O.dirtyT=0),O.bbox)},At.clone=function(){if(this.removed)return null;var S=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(S),S},At.glow=function(S){if(this.type=="text")return null;var O={width:((S=S||{}).width||10)+(+this.attr("stroke-width")||1),fill:S.fill||!1,opacity:S.opacity==null?.5:S.opacity,offsetx:S.offsetx||0,offsety:S.offsety||0,color:S.color||"#000"},I=O.width/2,w=this.paper,P=w.set(),F=this.realPath||re[this.type](this);F=this.matrix?he(F,this.matrix):F;for(var B=1;B<I+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/I*B).toFixed(3),opacity:+(O.opacity/I).toFixed(3)}));return P.insertBefore(this).translate(O.offsetx,O.offsety)};var pe=function(S,O,I,w,P,F,B,q,W){return W==null?Or(S,O,I,w,P,F,B,q):c.findDotsAtSegment(S,O,I,w,P,F,B,q,function(tt,ot,dt,ct,st,ft,_t,pt,ht){if(!(ht<0||Or(tt,ot,dt,ct,st,ft,_t,pt)<ht)){var Rt,bt=.5,Et=1-bt;for(Rt=Or(tt,ot,dt,ct,st,ft,_t,pt,Et);lt(Rt-ht)>.01;)Rt=Or(tt,ot,dt,ct,st,ft,_t,pt,Et+=(Rt<ht?1:-1)*(bt/=2));return Et}}(S,O,I,w,P,F,B,q,W))},De=function(S,O){return function(I,w,P){for(var F,B,q,W,tt,ot="",dt={},ct=0,st=0,ft=(I=Xn(I)).length;st<ft;st++){if((q=I[st])[0]=="M")F=+q[1],B=+q[2];else{if(ct+(W=pe(F,B,q[1],q[2],q[3],q[4],q[5],q[6]))>w){if(O&&!dt.start){if(ot+=["C"+(tt=pe(F,B,q[1],q[2],q[3],q[4],q[5],q[6],w-ct)).start.x,tt.start.y,tt.m.x,tt.m.y,tt.x,tt.y],P)return ot;dt.start=ot,ot=["M"+tt.x,tt.y+"C"+tt.n.x,tt.n.y,tt.end.x,tt.end.y,q[5],q[6]].join(),ct+=W,F=+q[5],B=+q[6];continue}if(!S&&!O)return{x:(tt=pe(F,B,q[1],q[2],q[3],q[4],q[5],q[6],w-ct)).x,y:tt.y,alpha:tt.alpha}}ct+=W,F=+q[5],B=+q[6]}ot+=q.shift()+q}return dt.end=ot,(tt=S?ct:O?dt:c.findDotsAtSegment(F,B,q[0],q[1],q[2],q[3],q[4],q[5],1)).alpha&&(tt={x:tt.x,y:tt.y,alpha:tt.alpha}),tt}},qe=De(1),Be=De(),ke=De(0,1);c.getTotalLength=qe,c.getPointAtLength=Be,c.getSubpath=function(S,O,I){if(this.getTotalLength(S)-I<1e-6)return ke(S,O).end;var w=ke(S,I,1);return O?ke(w,O).end:w},At.getTotalLength=function(){var S=this.getPath();if(S)return this.node.getTotalLength?this.node.getTotalLength():qe(S)},At.getPointAtLength=function(S){var O=this.getPath();if(O)return Be(O,S)},At.getPath=function(){var S,O=c._getPath[this.type];if(this.type!="text"&&this.type!="set")return O&&(S=O(this)),S},At.getSubpath=function(S,O){var I=this.getPath();if(I)return c.getSubpath(I,S,O)};var ce=c.easing_formulas={linear:function(S){return S},"<":function(S){return xt(S,1.7)},">":function(S){return xt(S,.48)},"<>":function(S){var O=.48-S/1.04,I=J.sqrt(.1734+O*O),w=I-O,P=-I-O,F=xt(lt(w),1/3)*(w<0?-1:1)+xt(lt(P),1/3)*(P<0?-1:1)+.5;return 3*(1-F)*F*F+F*F*F},backIn:function(S){var O=1.70158;return S*S*((O+1)*S-O)},backOut:function(S){var O=1.70158;return(S-=1)*S*((O+1)*S+O)+1},elastic:function(S){return S==!!S?S:xt(2,-10*S)*J.sin(2*Ct*(S-.075)/.3)+1},bounce:function(S){var O=7.5625,I=2.75;return S<1/I?O*S*S:S<2/I?O*(S-=1.5/I)*S+.75:S<2.5/I?O*(S-=2.25/I)*S+.9375:O*(S-=2.625/I)*S+.984375}};ce.easeIn=ce["ease-in"]=ce["<"],ce.easeOut=ce["ease-out"]=ce[">"],ce.easeInOut=ce["ease-in-out"]=ce["<>"],ce["back-in"]=ce.backIn,ce["back-out"]=ce.backOut;var Bt=[],Ke=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(S){setTimeout(S,16)},Fr=function(){for(var S=+new Date,O=0;O<Bt.length;O++){var I=Bt[O];if(!I.el.removed&&!I.paused){var w,P,F=S-I.start,B=I.ms,q=I.easing,W=I.from,tt=I.diff,ot=I.to,dt=(I.t,I.el),ct={},st={};if(I.initstatus?(F=(I.initstatus*I.anim.top-I.prev)/(I.percent-I.prev)*B,I.status=I.initstatus,delete I.initstatus,I.stop&&Bt.splice(O--,1)):I.status=(I.prev+(I.percent-I.prev)*(F/B))/I.anim.top,!(F<0))if(F<B){var ft=q(F/B);for(var _t in W)if(W[p](_t)){switch(K[_t]){case $t:w=+W[_t]+ft*B*tt[_t];break;case"colour":w="rgb("+[an(b(W[_t].r+ft*B*tt[_t].r)),an(b(W[_t].g+ft*B*tt[_t].g)),an(b(W[_t].b+ft*B*tt[_t].b))].join(",")+")";break;case"path":w=[];for(var pt=0,ht=W[_t].length;pt<ht;pt++){w[pt]=[W[_t][pt][0]];for(var Rt=1,bt=W[_t][pt].length;Rt<bt;Rt++)w[pt][Rt]=+W[_t][pt][Rt]+ft*B*tt[_t][pt][Rt];w[pt]=w[pt].join($)}w=w.join($);break;case"transform":if(tt[_t].real)for(w=[],pt=0,ht=W[_t].length;pt<ht;pt++)for(w[pt]=[W[_t][pt][0]],Rt=1,bt=W[_t][pt].length;Rt<bt;Rt++)w[pt][Rt]=W[_t][pt][Rt]+ft*B*tt[_t][pt][Rt];else{var Et=function(ae){return+W[_t][ae]+ft*B*tt[_t][ae]};w=[["m",Et(0),Et(1),Et(2),Et(3),Et(4),Et(5)]]}break;case"csv":if(_t=="clip-rect")for(w=[],pt=4;pt--;)w[pt]=+W[_t][pt]+ft*B*tt[_t][pt];break;default:var wt=[][m](W[_t]);for(w=[],pt=dt.paper.customAttributes[_t].length;pt--;)w[pt]=+wt[pt]+ft*B*tt[_t][pt]}ct[_t]=w}dt.attr(ct),function(ae,te,se){setTimeout(function(){s("raphael.anim.frame."+ae,te,se)})}(dt.id,dt,I.anim)}else{if(function(ae,te,se){setTimeout(function(){s("raphael.anim.frame."+te.id,te,se),s("raphael.anim.finish."+te.id,te,se),c.is(ae,"function")&&ae.call(te)})}(I.callback,dt,I.anim),dt.attr(ot),Bt.splice(O--,1),I.repeat>1&&!I.next){for(P in ot)ot[p](P)&&(st[P]=I.totalOrigin[P]);I.el.attr(st),yr(I.anim,I.el,I.anim.percents[0],null,I.totalOrigin,I.repeat-1)}I.next&&!I.stop&&yr(I.anim,I.el,I.next,null,I.totalOrigin,I.repeat)}}}Bt.length&&Ke(Fr)},an=function(S){return S>255?255:S<0?0:S};function nr(S,O,I,w,P,F){var B=3*O,q=3*(w-O)-B,W=1-B-q,tt=3*I,ot=3*(P-I)-tt,dt=1-tt-ot;function ct(st){return((W*st+q)*st+B)*st}return function(st,ft){var _t=function(pt,ht){var Rt,bt,Et,wt,ae,te;for(Et=pt,te=0;te<8;te++){if(wt=ct(Et)-pt,lt(wt)<ht)return Et;if(lt(ae=(3*W*Et+2*q)*Et+B)<1e-6)break;Et-=wt/ae}if(bt=1,(Et=pt)<(Rt=0))return Rt;if(Et>bt)return bt;for(;Rt<bt;){if(wt=ct(Et),lt(wt-pt)<ht)return Et;pt>wt?Rt=Et:bt=Et,Et=(bt-Rt)/2+Rt}return Et}(st,ft);return((dt*_t+ot)*_t+tt)*_t}(S,1/(200*F))}function rr(S,O){var I=[],w={};if(this.ms=O,this.times=1,S){for(var P in S)S[p](P)&&(w[C(P)]=S[P],I.push(C(P)));I.sort(qt)}this.anim=w,this.top=I[I.length-1],this.percents=I}function yr(S,O,I,w,P,F){I=C(I);var B,q,W,tt,ot,dt,ct=S.ms,st={},ft={},_t={};if(w)for(ht=0,Rt=Bt.length;ht<Rt;ht++){var pt=Bt[ht];if(pt.el.id==O.id&&pt.anim==S){pt.percent!=I?(Bt.splice(ht,1),W=1):q=pt,O.attr(pt.totalOrigin);break}}else w=+ft;for(var ht=0,Rt=S.percents.length;ht<Rt;ht++){if(S.percents[ht]==I||S.percents[ht]>w*S.top){I=S.percents[ht],ot=S.percents[ht-1]||0,ct=ct/S.top*(I-ot),tt=S.percents[ht+1],B=S.anim[I];break}w&&O.attr(S.anim[S.percents[ht]])}if(B){if(q)q.initstatus=w,q.start=new Date-q.ms*w;else{for(var bt in B)if(B[p](bt)&&(K[p](bt)||O.paper.customAttributes[p](bt)))switch(st[bt]=O.attr(bt),st[bt]==null&&(st[bt]=V[bt]),ft[bt]=B[bt],K[bt]){case $t:_t[bt]=(ft[bt]-st[bt])/ct;break;case"colour":st[bt]=c.getRGB(st[bt]);var Et=c.getRGB(ft[bt]);_t[bt]={r:(Et.r-st[bt].r)/ct,g:(Et.g-st[bt].g)/ct,b:(Et.b-st[bt].b)/ct};break;case"path":var wt=Xn(st[bt],ft[bt]),ae=wt[1];for(st[bt]=wt[0],_t[bt]=[],ht=0,Rt=st[bt].length;ht<Rt;ht++){_t[bt][ht]=[0];for(var te=1,se=st[bt][ht].length;te<se;te++)_t[bt][ht][te]=(ae[ht][te]-st[bt][ht][te])/ct}break;case"transform":var Ma=O._,ac=Q(Ma[bt],ft[bt]);if(ac)for(st[bt]=ac.from,ft[bt]=ac.to,_t[bt]=[],_t[bt].real=!0,ht=0,Rt=st[bt].length;ht<Rt;ht++)for(_t[bt][ht]=[st[bt][ht][0]],te=1,se=st[bt][ht].length;te<se;te++)_t[bt][ht][te]=(ft[bt][ht][te]-st[bt][ht][te])/ct;else{var sn=O.matrix||new Z,hi={_:{transform:Ma.transform},getBBox:function(){return O.getBBox(1)}};st[bt]=[sn.a,sn.b,sn.c,sn.d,sn.e,sn.f],U(hi,ft[bt]),ft[bt]=hi._.transform,_t[bt]=[(hi.matrix.a-sn.a)/ct,(hi.matrix.b-sn.b)/ct,(hi.matrix.c-sn.c)/ct,(hi.matrix.d-sn.d)/ct,(hi.matrix.e-sn.e)/ct,(hi.matrix.f-sn.f)/ct]}break;case"csv":var La=A(B[bt])[R](d),Ua=A(st[bt])[R](d);if(bt=="clip-rect")for(st[bt]=Ua,_t[bt]=[],ht=Ua.length;ht--;)_t[bt][ht]=(La[ht]-st[bt][ht])/ct;ft[bt]=La;break;default:for(La=[][m](B[bt]),Ua=[][m](st[bt]),_t[bt]=[],ht=O.paper.customAttributes[bt].length;ht--;)_t[bt][ht]=((La[ht]||0)-(Ua[ht]||0))/ct}var gh=B.easing,Li=c.easing_formulas[gh];if(!Li)if((Li=A(gh).match(k))&&Li.length==5){var na=Li;Li=function(vh){return nr(vh,+na[1],+na[2],+na[3],+na[4],ct)}}else Li=Qt;if(pt={anim:S,percent:I,timestamp:dt=B.start||S.start||+new Date,start:dt+(S.del||0),status:0,initstatus:w||0,stop:!1,ms:ct,easing:Li,from:st,diff:_t,to:ft,el:O,callback:B.callback,prev:ot,next:tt,repeat:F||S.times,origin:O.attr(),totalOrigin:P},Bt.push(pt),w&&!q&&!W&&(pt.stop=!0,pt.start=new Date-ct*w,Bt.length==1))return Fr();W&&(pt.start=new Date-pt.ms*w),Bt.length==1&&Ke(Fr)}s("raphael.anim.start."+O.id,O,S)}}function Pn(S){for(var O=0;O<Bt.length;O++)Bt[O].el.paper==S&&Bt.splice(O--,1)}At.animateWith=function(S,O,I,w,P,F){if(this.removed)return F&&F.call(this),this;var B=I instanceof rr?I:c.animation(I,w,P,F);yr(B,this,B.percents[0],null,this.attr());for(var q=0,W=Bt.length;q<W;q++)if(Bt[q].anim==O&&Bt[q].el==S){Bt[W-1].start=Bt[q].start;break}return this},At.onAnimation=function(S){return S?s.on("raphael.anim.frame."+this.id,S):s.unbind("raphael.anim.frame."+this.id),this},rr.prototype.delay=function(S){var O=new rr(this.anim,this.ms);return O.times=this.times,O.del=+S||0,O},rr.prototype.repeat=function(S){var O=new rr(this.anim,this.ms);return O.del=this.del,O.times=J.floor(nt(S,0))||1,O},c.animation=function(S,O,I,w){if(S instanceof rr)return S;!c.is(I,"function")&&I||(w=w||I||null,I=null),S=Object(S),O=+O||0;var P,F,B={};for(F in S)S[p](F)&&C(F)!=F&&C(F)+"%"!=F&&(P=!0,B[F]=S[F]);if(P)return I&&(B.easing=I),w&&(B.callback=w),new rr({100:B},O);if(w){var q=0;for(var W in S){var tt=L(W);S[p](W)&&tt>q&&(q=tt)}!S[q+="%"].callback&&(S[q].callback=w)}return new rr(S,O)},At.animate=function(S,O,I,w){if(this.removed)return w&&w.call(this),this;var P=S instanceof rr?S:c.animation(S,O,I,w);return yr(P,this,P.percents[0],null,this.attr()),this},At.setTime=function(S,O){return S&&O!=null&&this.status(S,rt(O,S.ms)/S.ms),this},At.status=function(S,O){var I,w,P=[],F=0;if(O!=null)return yr(S,this,-1,rt(O,1)),this;for(I=Bt.length;F<I;F++)if((w=Bt[F]).el.id==this.id&&(!S||w.anim==S)){if(S)return w.status;P.push({anim:w.anim,status:w.status})}return S?0:P},At.pause=function(S){for(var O=0;O<Bt.length;O++)Bt[O].el.id!=this.id||S&&Bt[O].anim!=S||s("raphael.anim.pause."+this.id,this,Bt[O].anim)!==!1&&(Bt[O].paused=!0);return this},At.resume=function(S){for(var O=0;O<Bt.length;O++)if(Bt[O].el.id==this.id&&(!S||Bt[O].anim==S)){var I=Bt[O];s("raphael.anim.resume."+this.id,this,I.anim)!==!1&&(delete I.paused,this.status(I.anim,I.status))}return this},At.stop=function(S){for(var O=0;O<Bt.length;O++)Bt[O].el.id!=this.id||S&&Bt[O].anim!=S||s("raphael.anim.stop."+this.id,this,Bt[O].anim)!==!1&&Bt.splice(O--,1);return this},s.on("raphael.remove",Pn),s.on("raphael.clear",Pn),At.toString=function(){return"Raphaël’s object"};var Tn,kr,On,Wn,ea=function(S){if(this.items=[],this.length=0,this.type="set",S)for(var O=0,I=S.length;O<I;O++)!S[O]||S[O].constructor!=At.constructor&&S[O].constructor!=ea||(this[this.items.length]=this.items[this.items.length]=S[O],this.length++)},_r=ea.prototype;for(var ra in _r.push=function(){for(var S,O,I=0,w=arguments.length;I<w;I++)!(S=arguments[I])||S.constructor!=At.constructor&&S.constructor!=ea||(this[O=this.items.length]=this.items[O]=S,this.length++);return this},_r.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},_r.forEach=function(S,O){for(var I=0,w=this.items.length;I<w;I++)if(S.call(O,this.items[I],I)===!1)return this;return this},At)At[p](ra)&&(_r[ra]=function(S){return function(){var O=arguments;return this.forEach(function(I){I[S][y](I,O)})}}(ra));return _r.attr=function(S,O){if(S&&c.is(S,at)&&c.is(S[0],"object"))for(var I=0,w=S.length;I<w;I++)this.items[I].attr(S[I]);else for(var P=0,F=this.items.length;P<F;P++)this.items[P].attr(S,O);return this},_r.clear=function(){for(;this.length;)this.pop()},_r.splice=function(S,O,I){S=S<0?nt(this.length+S,0):S,O=nt(0,rt(this.length-S,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[S+w]);for(;w<this.length-S;w++)P.push(this[S+w]);var q=B.length;for(w=0;w<q+P.length;w++)this.items[S+w]=this[S+w]=w<q?B[w]:P[w-q];for(w=this.items.length=this.length-=O-q;this[w];)delete this[w++];return new ea(F)},_r.exclude=function(S){for(var O=0,I=this.length;O<I;O++)if(this[O]==S)return this.splice(O,1),!0},_r.animate=function(S,O,I,w){(c.is(I,"function")||!I)&&(w=I||null);var P,F,B=this.items.length,q=B,W=this;if(!B)return this;w&&(F=function(){!--B&&w.call(W)}),I=c.is(I,"string")?I:F;var tt=c.animation(S,O,I,F);for(P=this.items[--q].animate(tt);q--;)this.items[q]&&!this.items[q].removed&&this.items[q].animateWith(P,tt,tt),this.items[q]&&!this.items[q].removed||B--;return this},_r.insertAfter=function(S){for(var O=this.items.length;O--;)this.items[O].insertAfter(S);return this},_r.getBBox=function(){for(var S=[],O=[],I=[],w=[],P=this.items.length;P--;)if(!this.items[P].removed){var F=this.items[P].getBBox();S.push(F.x),O.push(F.y),I.push(F.x+F.width),w.push(F.y+F.height)}return{x:S=rt[y](0,S),y:O=rt[y](0,O),x2:I=nt[y](0,I),y2:w=nt[y](0,w),width:I-S,height:w-O}},_r.clone=function(S){S=this.paper.set();for(var O=0,I=this.items.length;O<I;O++)S.push(this.items[O].clone());return S},_r.toString=function(){return"Raphaël‘s set"},_r.glow=function(S){var O=this.paper.set();return this.forEach(function(I,w){var P=I.glow(S);P==null||P.forEach(function(F,B){O.push(F)})}),O},_r.isPointInside=function(S,O){var I=!1;return this.forEach(function(w){if(w.isPointInside(S,O))return I=!0,!1}),I},c.registerFont=function(S){if(!S.face)return S;this.fonts=this.fonts||{};var O={w:S.w,face:{},glyphs:{}},I=S.face["font-family"];for(var w in S.face)S.face[p](w)&&(O.face[w]=S.face[w]);if(this.fonts[I]?this.fonts[I].push(O):this.fonts[I]=[O],!S.svg){for(var P in O.face["units-per-em"]=L(S.face["units-per-em"],10),S.glyphs)if(S.glyphs[p](P)){var F=S.glyphs[P];if(O.glyphs[P]={w:F.w,k:{},d:F.d&&"M"+F.d.replace(/[mlcxtrv]/g,function(q){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[q]||"M"})+"z"},F.k)for(var B in F.k)F[p](B)&&(O.glyphs[P].k[B]=F.k[B])}}return S},u.getFont=function(S,O,I,w){if(w=w||"normal",I=I||"normal",O=+O||{normal:400,bold:700,lighter:300,bolder:800}[O]||400,c.fonts){var P,F=c.fonts[S];if(!F){var B=new RegExp("(^|\\s)"+S.replace(/[^\w\d\s+!~.:_-]/g,N)+"(\\s|$)","i");for(var q in c.fonts)if(c.fonts[p](q)&&B.test(q)){F=c.fonts[q];break}}if(F)for(var W=0,tt=F.length;W<tt&&((P=F[W]).face["font-weight"]!=O||P.face["font-style"]!=I&&P.face["font-style"]||P.face["font-stretch"]!=w);W++);return P}},u.print=function(S,O,I,w,P,F,B,q){F=F||"middle",B=nt(rt(B||0,1),-1),q=nt(rt(q||1,3),1);var W,tt=A(I)[R](N),ot=0,dt=0,ct=N;if(c.is(w,"string")&&(w=this.getFont(w)),w){W=(P||16)/w.face["units-per-em"];for(var st=w.face.bbox[R](d),ft=+st[0],_t=st[3]-st[1],pt=0,ht=+st[1]+(F=="baseline"?_t+ +w.face.descent:_t/2),Rt=0,bt=tt.length;Rt<bt;Rt++){if(tt[Rt]==`
|
|
39
|
-
`)ot=0,wt=0,dt=0,pt+=_t*q;else{var Et=dt&&w.glyphs[tt[Rt-1]]||{},wt=w.glyphs[tt[Rt]];ot+=dt?(Et.w||w.w)+(Et.k&&Et.k[tt[Rt]]||0)+w.w*B:0,dt=1}wt&&wt.d&&(ct+=c.transformPath(wt.d,["t",ot*W,pt*W,"s",W,W,ft,ht,"t",(S-ft)/W,(O-ht)/W]))}}return this.path(ct).attr({fill:"#000",stroke:"none"})},u.add=function(S){if(c.is(S,"array"))for(var O,I=this.set(),w=0,P=S.length;w<P;w++)O=S[w]||{},f[p](O.type)&&I.push(this[O.type]().attr(O));return I},c.format=function(S,O){var I=c.is(O,at)?[0][m](O):arguments;return S&&c.is(S,"string")&&I.length-1&&(S=S.replace(h,function(w,P){return I[++P]==null?N:I[P]})),S||N},c.fullfill=(Tn=/\{([^\}]+)\}/g,kr=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(S,O){return String(S).replace(Tn,function(I,w){return function(P,F,B){var q=B;return F.replace(kr,function(W,tt,ot,dt,ct){tt=tt||dt,q&&(tt in q&&(q=q[tt]),typeof q=="function"&&ct&&(q=q()))}),q=(q==null||q==B?P:q)+""}(I,w,O)})}),c.ninja=function(){if(v.was)g.win.Raphael=v.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return c},c.st=_r,s.on("raphael.DOMload",function(){l=!0}),(On=document).readyState==null&&On.addEventListener&&(On.addEventListener("DOMContentLoaded",Wn=function(){On.removeEventListener("DOMContentLoaded",Wn,!1),On.readyState="complete"},!1),On.readyState="loading"),function S(){/in/.test(On.readyState)?setTimeout(S,9):c.eve("raphael.DOMload")}(),c}).apply(n,o))===void 0||(r.exports=a)},function(r,n,i){var o,a;o=[i(0),i(3),i(4)],(a=(function(s){return s}).apply(n,o))===void 0||(r.exports=a)},function(r,n,i){var o,a,s,c,l,u,d,f,h,p,g,v,_,y;c="hasOwnProperty",l=/[\.\/]/,u=/\s*,\s*/,d=function(m,x){return m-x},f={n:{}},h=function(){for(var m=0,x=this.length;m<x;m++)if(this[m]!==void 0)return this[m]},p=function(){for(var m=this.length;--m;)if(this[m]!==void 0)return this[m]},g=Object.prototype.toString,v=String,_=Array.isArray||function(m){return m instanceof Array||g.call(m)=="[object Array]"},(y=function(m,x){var N,$=s,A=Array.prototype.slice.call(arguments,2),R=y.listeners(m),G=0,H=[],Y={},J=[],nt=a;J.firstDefined=h,J.lastDefined=p,a=m,s=0;for(var rt=0,lt=R.length;rt<lt;rt++)"zIndex"in R[rt]&&(H.push(R[rt].zIndex),R[rt].zIndex<0&&(Y[R[rt].zIndex]=R[rt]));for(H.sort(d);H[G]<0;)if(N=Y[H[G++]],J.push(N.apply(x,A)),s)return s=$,J;for(rt=0;rt<lt;rt++)if("zIndex"in(N=R[rt]))if(N.zIndex==H[G]){if(J.push(N.apply(x,A)),s)break;do if((N=Y[H[++G]])&&J.push(N.apply(x,A)),s)break;while(N)}else Y[N.zIndex]=N;else if(J.push(N.apply(x,A)),s)break;return s=$,a=nt,J})._events=f,y.listeners=function(m){var x,N,$,A,R,G,H,Y,J=_(m)?m:m.split(l),nt=f,rt=[nt],lt=[];for(A=0,R=J.length;A<R;A++){for(Y=[],G=0,H=rt.length;G<H;G++)for(N=[(nt=rt[G].n)[J[A]],nt["*"]],$=2;$--;)(x=N[$])&&(Y.push(x),lt=lt.concat(x.f||[]));rt=Y}return lt},y.separator=function(m){m?(m="["+(m=v(m).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",l=new RegExp(m)):l=/[\.\/]/},y.on=function(m,x){if(typeof x!="function")return function(){};for(var N=_(m)?_(m[0])?m:[m]:v(m).split(u),$=0,A=N.length;$<A;$++)(function(R){for(var G,H=_(R)?R:v(R).split(l),Y=f,J=0,nt=H.length;J<nt;J++)Y=(Y=Y.n).hasOwnProperty(H[J])&&Y[H[J]]||(Y[H[J]]={n:{}});for(Y.f=Y.f||[],J=0,nt=Y.f.length;J<nt;J++)if(Y.f[J]==x){G=!0;break}!G&&Y.f.push(x)})(N[$]);return function(R){+R==+R&&(x.zIndex=+R)}},y.f=function(m){var x=[].slice.call(arguments,1);return function(){y.apply(null,[m,null].concat(x).concat([].slice.call(arguments,0)))}},y.stop=function(){s=1},y.nt=function(m){var x=_(a)?a.join("."):a;return m?new RegExp("(?:\\.|\\/|^)"+m+"(?:\\.|\\/|$)").test(x):x},y.nts=function(){return _(a)?a:a.split(l)},y.off=y.unbind=function(m,x){if(m){var N=_(m)?_(m[0])?m:[m]:v(m).split(u);if(N.length>1)for(var $=0,A=N.length;$<A;$++)y.off(N[$],x);else{N=_(m)?m:v(m).split(l);var R,G,H,Y,J,nt=[f];for($=0,A=N.length;$<A;$++)for(Y=0;Y<nt.length;Y+=H.length-2){if(H=[Y,1],R=nt[Y].n,N[$]!="*")R[N[$]]&&H.push(R[N[$]]);else for(G in R)R[c](G)&&H.push(R[G]);nt.splice.apply(nt,H)}for($=0,A=nt.length;$<A;$++)for(R=nt[$];R.n;){if(x){if(R.f){for(Y=0,J=R.f.length;Y<J;Y++)if(R.f[Y]==x){R.f.splice(Y,1);break}!R.f.length&&delete R.f}for(G in R.n)if(R.n[c](G)&&R.n[G].f){var rt=R.n[G].f;for(Y=0,J=rt.length;Y<J;Y++)if(rt[Y]==x){rt.splice(Y,1);break}!rt.length&&delete R.n[G].f}}else for(G in delete R.f,R.n)R.n[c](G)&&R.n[G].f&&delete R.n[G].f;R=R.n}}}else y._events=f={n:{}}},y.once=function(m,x){var N=function(){return y.off(m,N),x.apply(this,arguments)};return y.on(m,N)},y.version="0.5.0",y.toString=function(){return"You are running Eve 0.5.0"},r.exports?r.exports=y:(o=(function(){return y}).apply(n,[]))===void 0||(r.exports=o)},function(r,n,i){var o,a;o=[i(0)],(a=(function(s){if(!s||s.svg){var c="hasOwnProperty",l=String,u=parseFloat,d=parseInt,f=Math,h=f.max,p=f.abs,g=f.pow,v=/[, ]+/,_=s.eve,y="",m=" ",x="http://www.w3.org/1999/xlink",N={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"},$={};s.toString=function(){return`Your browser supports SVG.
|
|
40
|
-
You are running Raphaël `+this.version};var A=function(T,E){if(E)for(var k in typeof T=="string"&&(T=A(T)),E)E[c](k)&&(k.substring(0,6)=="xlink:"?T.setAttributeNS(x,k.substring(6),l(E[k])):T.setAttribute(k,l(E[k])));else(T=s._g.doc.createElementNS("http://www.w3.org/2000/svg",T)).style&&(T.style.webkitTapHighlightColor="rgba(0,0,0,0)");return T},R=function(T,E){var k="linear",b=T.id+E,C=.5,L=.5,D=T.node,V=T.paper,K=D.style,et=s._g.doc.getElementById(b);if(!et){if(E=(E=l(E).replace(s._radial_gradient,function(qt,Qt,Dt){if(k="radial",Qt&&Dt){C=u(Qt);var fe=2*((L=u(Dt))>.5)-1;g(C-.5,2)+g(L-.5,2)>.25&&(L=f.sqrt(.25-g(C-.5,2))*fe+.5)&&L!=.5&&(L=L.toFixed(5)-1e-5*fe)}return y})).split(/\s*\-\s*/),k=="linear"){var it=E.shift();if(it=-u(it),isNaN(it))return null;var ut=[0,0,f.cos(s.rad(it)),f.sin(s.rad(it))],Tt=1/(h(p(ut[2]),p(ut[3]))||1);ut[2]*=Tt,ut[3]*=Tt,ut[2]<0&&(ut[0]=-ut[2],ut[2]=0),ut[3]<0&&(ut[1]=-ut[3],ut[3]=0)}var Gt=s._parseDots(E);if(!Gt)return null;if(b=b.replace(/[\(\)\s,\xb0#]/g,"_"),T.gradient&&b!=T.gradient.id&&(V.defs.removeChild(T.gradient),delete T.gradient),!T.gradient){et=A(k+"Gradient",{id:b}),T.gradient=et,A(et,k=="radial"?{fx:C,fy:L}:{x1:ut[0],y1:ut[1],x2:ut[2],y2:ut[3],gradientTransform:T.matrix.invert()}),V.defs.appendChild(et);for(var Pt=0,Nt=Gt.length;Pt<Nt;Pt++)et.appendChild(A("stop",{offset:Gt[Pt].offset?Gt[Pt].offset:Pt?"100%":"0%","stop-color":Gt[Pt].color||"#fff","stop-opacity":isFinite(Gt[Pt].opacity)?Gt[Pt].opacity:1}))}}return A(D,{fill:G(b),opacity:1,"fill-opacity":1}),K.fill=y,K.opacity=1,K.fillOpacity=1,1},G=function(T){if((E=document.documentMode)&&(E===9||E===10))return"url('#"+T+"')";var E,k=document.location;return"url('"+(k.protocol+"//"+k.host+k.pathname+k.search)+"#"+T+"')"},H=function(T){var E=T.getBBox(1);A(T.pattern,{patternTransform:T.matrix.invert()+" translate("+E.x+","+E.y+")"})},Y=function(T,E,k){if(T.type=="path"){for(var b,C,L,D,V,K=l(E).toLowerCase().split("-"),et=T.paper,it=k?"end":"start",ut=T.node,Tt=T.attrs,Gt=Tt["stroke-width"],Pt=K.length,Nt="classic",qt=3,Qt=3,Dt=5;Pt--;)switch(K[Pt]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":Nt=K[Pt];break;case"wide":Qt=5;break;case"narrow":Qt=2;break;case"long":qt=5;break;case"short":qt=2}if(Nt=="open"?(qt+=2,Qt+=2,Dt+=2,L=1,D=k?4:1,V={fill:"none",stroke:Tt.stroke}):(D=L=qt/2,V={fill:Tt.stroke,stroke:"none"}),T._.arrows?k?(T._.arrows.endPath&&$[T._.arrows.endPath]--,T._.arrows.endMarker&&$[T._.arrows.endMarker]--):(T._.arrows.startPath&&$[T._.arrows.startPath]--,T._.arrows.startMarker&&$[T._.arrows.startMarker]--):T._.arrows={},Nt!="none"){var fe="raphael-marker-"+Nt,re="raphael-marker-"+it+Nt+qt+Qt+"-obj"+T.id;s._g.doc.getElementById(fe)?$[fe]++:(et.defs.appendChild(A(A("path"),{"stroke-linecap":"round",d:N[Nt],id:fe})),$[fe]=1);var he,Vt=s._g.doc.getElementById(re);Vt?($[re]++,he=Vt.getElementsByTagName("use")[0]):(Vt=A(A("marker"),{id:re,markerHeight:Qt,markerWidth:qt,orient:"auto",refX:D,refY:Qt/2}),he=A(A("use"),{"xlink:href":"#"+fe,transform:(k?"rotate(180 "+qt/2+" "+Qt/2+") ":y)+"scale("+qt/Dt+","+Qt/Dt+")","stroke-width":(1/((qt/Dt+Qt/Dt)/2)).toFixed(4)}),Vt.appendChild(he),et.defs.appendChild(Vt),$[re]=1),A(he,V);var Le=L*(Nt!="diamond"&&Nt!="oval");k?(b=T._.arrows.startdx*Gt||0,C=s.getTotalLength(Tt.path)-Le*Gt):(b=Le*Gt,C=s.getTotalLength(Tt.path)-(T._.arrows.enddx*Gt||0)),(V={})["marker-"+it]="url(#"+re+")",(C||b)&&(V.d=s.getSubpath(Tt.path,b,C)),A(ut,V),T._.arrows[it+"Path"]=fe,T._.arrows[it+"Marker"]=re,T._.arrows[it+"dx"]=Le,T._.arrows[it+"Type"]=Nt,T._.arrows[it+"String"]=E}else k?(b=T._.arrows.startdx*Gt||0,C=s.getTotalLength(Tt.path)-b):(b=0,C=s.getTotalLength(Tt.path)-(T._.arrows.enddx*Gt||0)),T._.arrows[it+"Path"]&&A(ut,{d:s.getSubpath(Tt.path,b,C)}),delete T._.arrows[it+"Path"],delete T._.arrows[it+"Marker"],delete T._.arrows[it+"dx"],delete T._.arrows[it+"Type"],delete T._.arrows[it+"String"];for(V in $)if($[c](V)&&!$[V]){var Ue=s._g.doc.getElementById(V);Ue&&Ue.parentNode.removeChild(Ue)}}},J={"-":[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]},nt=function(T,E,k){if(E=J[l(E).toLowerCase()]){for(var b=T.attrs["stroke-width"]||"1",C={round:b,square:b,butt:0}[T.attrs["stroke-linecap"]||k["stroke-linecap"]]||0,L=[],D=E.length;D--;)L[D]=E[D]*b+(D%2?1:-1)*C;A(T.node,{"stroke-dasharray":L.join(",")})}else A(T.node,{"stroke-dasharray":"none"})},rt=function(T,E){var k=T.node,b=T.attrs,C=k.style.visibility;for(var L in k.style.visibility="hidden",E)if(E[c](L)){if(!s._availableAttrs[c](L))continue;var D=E[L];switch(b[L]=D,L){case"blur":T.blur(D);break;case"title":var V=k.getElementsByTagName("title");if(V.length&&(V=V[0]))V.firstChild.nodeValue=D;else{V=A("title");var K=s._g.doc.createTextNode(D);V.appendChild(K),k.appendChild(V)}break;case"href":case"target":var et=k.parentNode;if(et.tagName.toLowerCase()!="a"){var it=A("a");et.insertBefore(it,k),it.appendChild(k),et=it}L=="target"?et.setAttributeNS(x,"show",D=="blank"?"new":D):et.setAttributeNS(x,L,D);break;case"cursor":k.style.cursor=D;break;case"transform":T.transform(D);break;case"arrow-start":Y(T,D);break;case"arrow-end":Y(T,D,1);break;case"clip-rect":var ut=l(D).split(v);if(ut.length==4){T.clip&&T.clip.parentNode.parentNode.removeChild(T.clip.parentNode);var Tt=A("clipPath"),Gt=A("rect");Tt.id=s.createUUID(),A(Gt,{x:ut[0],y:ut[1],width:ut[2],height:ut[3]}),Tt.appendChild(Gt),T.paper.defs.appendChild(Tt),A(k,{"clip-path":"url(#"+Tt.id+")"}),T.clip=Gt}if(!D){var Pt=k.getAttribute("clip-path");if(Pt){var Nt=s._g.doc.getElementById(Pt.replace(/(^url\(#|\)$)/g,y));Nt&&Nt.parentNode.removeChild(Nt),A(k,{"clip-path":y}),delete T.clip}}break;case"path":T.type=="path"&&(A(k,{d:D?b.path=s._pathToAbsolute(D):"M0,0"}),T._.dirty=1,T._.arrows&&("startString"in T._.arrows&&Y(T,T._.arrows.startString),"endString"in T._.arrows&&Y(T,T._.arrows.endString,1)));break;case"width":if(k.setAttribute(L,D),T._.dirty=1,!b.fx)break;L="x",D=b.x;case"x":b.fx&&(D=-b.x-(b.width||0));case"rx":if(L=="rx"&&T.type=="rect")break;case"cx":k.setAttribute(L,D),T.pattern&&H(T),T._.dirty=1;break;case"height":if(k.setAttribute(L,D),T._.dirty=1,!b.fy)break;L="y",D=b.y;case"y":b.fy&&(D=-b.y-(b.height||0));case"ry":if(L=="ry"&&T.type=="rect")break;case"cy":k.setAttribute(L,D),T.pattern&&H(T),T._.dirty=1;break;case"r":T.type=="rect"?A(k,{rx:D,ry:D}):k.setAttribute(L,D),T._.dirty=1;break;case"src":T.type=="image"&&k.setAttributeNS(x,"href",D);break;case"stroke-width":T._.sx==1&&T._.sy==1||(D/=h(p(T._.sx),p(T._.sy))||1),k.setAttribute(L,D),b["stroke-dasharray"]&&nt(T,b["stroke-dasharray"],E),T._.arrows&&("startString"in T._.arrows&&Y(T,T._.arrows.startString),"endString"in T._.arrows&&Y(T,T._.arrows.endString,1));break;case"stroke-dasharray":nt(T,D,E);break;case"fill":var qt=l(D).match(s._ISURL);if(qt){Tt=A("pattern");var Qt=A("image");Tt.id=s.createUUID(),A(Tt,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),A(Qt,{x:0,y:0,"xlink:href":qt[1]}),Tt.appendChild(Qt),function(Vt){s._preload(qt[1],function(){var Le=this.offsetWidth,Ue=this.offsetHeight;A(Vt,{width:Le,height:Ue}),A(Qt,{width:Le,height:Ue})})}(Tt),T.paper.defs.appendChild(Tt),A(k,{fill:"url(#"+Tt.id+")"}),T.pattern=Tt,T.pattern&&H(T);break}var Dt=s.getRGB(D);if(Dt.error){if((T.type=="circle"||T.type=="ellipse"||l(D).charAt()!="r")&&R(T,D)){if("opacity"in b||"fill-opacity"in b){var fe=s._g.doc.getElementById(k.getAttribute("fill").replace(/^url\(#|\)$/g,y));if(fe){var re=fe.getElementsByTagName("stop");A(re[re.length-1],{"stop-opacity":("opacity"in b?b.opacity:1)*("fill-opacity"in b?b["fill-opacity"]:1)})}}b.gradient=D,b.fill="none";break}}else delete E.gradient,delete b.gradient,!s.is(b.opacity,"undefined")&&s.is(E.opacity,"undefined")&&A(k,{opacity:b.opacity}),!s.is(b["fill-opacity"],"undefined")&&s.is(E["fill-opacity"],"undefined")&&A(k,{"fill-opacity":b["fill-opacity"]});Dt[c]("opacity")&&A(k,{"fill-opacity":Dt.opacity>1?Dt.opacity/100:Dt.opacity});case"stroke":Dt=s.getRGB(D),k.setAttribute(L,Dt.hex),L=="stroke"&&Dt[c]("opacity")&&A(k,{"stroke-opacity":Dt.opacity>1?Dt.opacity/100:Dt.opacity}),L=="stroke"&&T._.arrows&&("startString"in T._.arrows&&Y(T,T._.arrows.startString),"endString"in T._.arrows&&Y(T,T._.arrows.endString,1));break;case"gradient":(T.type=="circle"||T.type=="ellipse"||l(D).charAt()!="r")&&R(T,D);break;case"opacity":b.gradient&&!b[c]("stroke-opacity")&&A(k,{"stroke-opacity":D>1?D/100:D});case"fill-opacity":if(b.gradient){(fe=s._g.doc.getElementById(k.getAttribute("fill").replace(/^url\(#|\)$/g,y)))&&(re=fe.getElementsByTagName("stop"),A(re[re.length-1],{"stop-opacity":D}));break}default:L=="font-size"&&(D=d(D,10)+"px");var he=L.replace(/(\-.)/g,function(Vt){return Vt.substring(1).toUpperCase()});k.style[he]=D,T._.dirty=1,k.setAttribute(L,D)}}lt(T,E),k.style.visibility=C},lt=function(T,E){if(T.type=="text"&&(E[c]("text")||E[c]("font")||E[c]("font-size")||E[c]("x")||E[c]("y"))){var k=T.attrs,b=T.node,C=b.firstChild?d(s._g.doc.defaultView.getComputedStyle(b.firstChild,y).getPropertyValue("font-size"),10):10;if(E[c]("text")){for(k.text=E.text;b.firstChild;)b.removeChild(b.firstChild);for(var L,D=l(E.text).split(`
|
|
41
|
-
`),V=[],K=0,et=D.length;K<et;K++)L=A("tspan"),K&&A(L,{dy:1.2*C,x:k.x}),L.appendChild(s._g.doc.createTextNode(D[K])),b.appendChild(L),V[K]=L}else for(K=0,et=(V=b.getElementsByTagName("tspan")).length;K<et;K++)K?A(V[K],{dy:1.2*C,x:k.x}):A(V[0],{dy:0});A(b,{x:k.x,y:k.y}),T._.dirty=1;var it=T._getBBox(),ut=k.y-(it.y+it.height/2);ut&&s.is(ut,"finite")&&A(V[0],{dy:ut})}},xt=function(T){return T.parentNode&&T.parentNode.tagName.toLowerCase()==="a"?T.parentNode:T},Ct=function(T,E){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=s.matrix(),this.realPath=null,this.paper=E,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!E.bottom&&(E.bottom=this),this.prev=E.top,E.top&&(E.top.next=this),E.top=this,this.next=null},$t=s.el;Ct.prototype=$t,$t.constructor=Ct,s._engine.path=function(T,E){var k=A("path");E.canvas&&E.canvas.appendChild(k);var b=new Ct(k,E);return b.type="path",rt(b,{fill:"none",stroke:"#000",path:T}),b},$t.rotate=function(T,E,k){if(this.removed)return this;if((T=l(T).split(v)).length-1&&(E=u(T[1]),k=u(T[2])),T=u(T[0]),k==null&&(E=k),E==null||k==null){var b=this.getBBox(1);E=b.x+b.width/2,k=b.y+b.height/2}return this.transform(this._.transform.concat([["r",T,E,k]])),this},$t.scale=function(T,E,k,b){if(this.removed)return this;if((T=l(T).split(v)).length-1&&(E=u(T[1]),k=u(T[2]),b=u(T[3])),T=u(T[0]),E==null&&(E=T),b==null&&(k=b),k==null||b==null)var C=this.getBBox(1);return k=k??C.x+C.width/2,b=b??C.y+C.height/2,this.transform(this._.transform.concat([["s",T,E,k,b]])),this},$t.translate=function(T,E){return this.removed?this:((T=l(T).split(v)).length-1&&(E=u(T[1])),T=u(T[0])||0,E=+E||0,this.transform(this._.transform.concat([["t",T,E]])),this)},$t.transform=function(T){var E=this._;if(T==null)return E.transform;if(s._extractTransform(this,T),this.clip&&A(this.clip,{transform:this.matrix.invert()}),this.pattern&&H(this),this.node&&A(this.node,{transform:this.matrix}),E.sx!=1||E.sy!=1){var k=this.attrs[c]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":k})}return this},$t.hide=function(){return this.removed||(this.node.style.display="none"),this},$t.show=function(){return this.removed||(this.node.style.display=""),this},$t.remove=function(){var T=xt(this.node);if(!this.removed&&T.parentNode){var E=this.paper;for(var k in E.__set__&&E.__set__.exclude(this),_.unbind("raphael.*.*."+this.id),this.gradient&&E.defs.removeChild(this.gradient),s._tear(this,E),T.parentNode.removeChild(T),this.removeData(),this)this[k]=typeof this[k]=="function"?s._removedFactory(k):null;this.removed=!0}},$t._getBBox=function(){if(this.node.style.display=="none"){this.show();var T=!0}var E,k=!1;this.paper.canvas.parentElement?E=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(E=this.paper.canvas.parentNode.style),E&&E.display=="none"&&(k=!0,E.display="");var b={};try{b=this.node.getBBox()}catch{b={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{b=b||{},k&&(E.display="none")}return T&&this.hide(),b},$t.attr=function(T,E){if(this.removed)return this;if(T==null){var k={};for(var b in this.attrs)this.attrs[c](b)&&(k[b]=this.attrs[b]);return k.gradient&&k.fill=="none"&&(k.fill=k.gradient)&&delete k.gradient,k.transform=this._.transform,k}if(E==null&&s.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 C=T.split(v),L={},D=0,V=C.length;D<V;D++)(T=C[D])in this.attrs?L[T]=this.attrs[T]:s.is(this.paper.customAttributes[T],"function")?L[T]=this.paper.customAttributes[T].def:L[T]=s._availableAttrs[T];return V-1?L:L[C[0]]}if(E==null&&s.is(T,"array")){for(L={},D=0,V=T.length;D<V;D++)L[T[D]]=this.attr(T[D]);return L}if(E!=null){var K={};K[T]=E}else T!=null&&s.is(T,"object")&&(K=T);for(var et in K)_("raphael.attr."+et+"."+this.id,this,K[et]);for(et in this.paper.customAttributes)if(this.paper.customAttributes[c](et)&&K[c](et)&&s.is(this.paper.customAttributes[et],"function")){var it=this.paper.customAttributes[et].apply(this,[].concat(K[et]));for(var ut in this.attrs[et]=K[et],it)it[c](ut)&&(K[ut]=it[ut])}return rt(this,K),this},$t.toFront=function(){if(this.removed)return this;var T=xt(this.node);T.parentNode.appendChild(T);var E=this.paper;return E.top!=this&&s._tofront(this,E),this},$t.toBack=function(){if(this.removed)return this;var T=xt(this.node),E=T.parentNode;return E.insertBefore(T,E.firstChild),s._toback(this,this.paper),this.paper,this},$t.insertAfter=function(T){if(this.removed||!T)return this;var E=xt(this.node),k=xt(T.node||T[T.length-1].node);return k.nextSibling?k.parentNode.insertBefore(E,k.nextSibling):k.parentNode.appendChild(E),s._insertafter(this,T,this.paper),this},$t.insertBefore=function(T){if(this.removed||!T)return this;var E=xt(this.node),k=xt(T.node||T[0].node);return k.parentNode.insertBefore(E,k),s._insertbefore(this,T,this.paper),this},$t.blur=function(T){var E=this;if(+T!=0){var k=A("filter"),b=A("feGaussianBlur");E.attrs.blur=T,k.id=s.createUUID(),A(b,{stdDeviation:+T||1.5}),k.appendChild(b),E.paper.defs.appendChild(k),E._blur=k,A(E.node,{filter:"url(#"+k.id+")"})}else E._blur&&(E._blur.parentNode.removeChild(E._blur),delete E._blur,delete E.attrs.blur),E.node.removeAttribute("filter");return E},s._engine.circle=function(T,E,k,b){var C=A("circle");T.canvas&&T.canvas.appendChild(C);var L=new Ct(C,T);return L.attrs={cx:E,cy:k,r:b,fill:"none",stroke:"#000"},L.type="circle",A(C,L.attrs),L},s._engine.rect=function(T,E,k,b,C,L){var D=A("rect");T.canvas&&T.canvas.appendChild(D);var V=new Ct(D,T);return V.attrs={x:E,y:k,width:b,height:C,rx:L||0,ry:L||0,fill:"none",stroke:"#000"},V.type="rect",A(D,V.attrs),V},s._engine.ellipse=function(T,E,k,b,C){var L=A("ellipse");T.canvas&&T.canvas.appendChild(L);var D=new Ct(L,T);return D.attrs={cx:E,cy:k,rx:b,ry:C,fill:"none",stroke:"#000"},D.type="ellipse",A(L,D.attrs),D},s._engine.image=function(T,E,k,b,C,L){var D=A("image");A(D,{x:k,y:b,width:C,height:L,preserveAspectRatio:"none"}),D.setAttributeNS(x,"href",E),T.canvas&&T.canvas.appendChild(D);var V=new Ct(D,T);return V.attrs={x:k,y:b,width:C,height:L,src:E},V.type="image",V},s._engine.text=function(T,E,k,b){var C=A("text");T.canvas&&T.canvas.appendChild(C);var L=new Ct(C,T);return L.attrs={x:E,y:k,"text-anchor":"middle",text:b,"font-family":s._availableAttrs["font-family"],"font-size":s._availableAttrs["font-size"],stroke:"none",fill:"#000"},L.type="text",rt(L,L.attrs),L},s._engine.setSize=function(T,E){return this.width=T||this.width,this.height=E||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},s._engine.create=function(){var T=s._getContainer.apply(0,arguments),E=T&&T.container;if(!E)throw new Error("SVG container not found.");var k,b=T.x,C=T.y,L=T.width,D=T.height,V=A("svg"),K="overflow:hidden;";return b=b||0,C=C||0,A(V,{height:D=D||342,version:1.1,width:L=L||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),E==1?(V.style.cssText=K+"position:absolute;left:"+b+"px;top:"+C+"px",s._g.doc.body.appendChild(V),k=1):(V.style.cssText=K+"position:relative",E.firstChild?E.insertBefore(V,E.firstChild):E.appendChild(V)),(E=new s._Paper).width=L,E.height=D,E.canvas=V,E.clear(),E._left=E._top=0,k&&(E.renderfix=function(){}),E.renderfix(),E},s._engine.setViewBox=function(T,E,k,b,C){_("raphael.setViewBox",this,this._viewBox,[T,E,k,b,C]);var L,D,V=this.getSize(),K=h(k/V.width,b/V.height),et=this.top,it=C?"xMidYMid meet":"xMinYMin";for(T==null?(this._vbSize&&(K=1),delete this._vbSize,L="0 0 "+this.width+m+this.height):(this._vbSize=K,L=T+m+E+m+k+m+b),A(this.canvas,{viewBox:L,preserveAspectRatio:it});K&&et;)D="stroke-width"in et.attrs?et.attrs["stroke-width"]:1,et.attr({"stroke-width":D}),et._.dirty=1,et._.dirtyT=1,et=et.prev;return this._viewBox=[T,E,k,b,!!C],this},s.prototype.renderfix=function(){var T,E=this.canvas,k=E.style;try{T=E.getScreenCTM()||E.createSVGMatrix()}catch{T=E.createSVGMatrix()}var b=-T.e%1,C=-T.f%1;(b||C)&&(b&&(this._left=(this._left+b)%1,k.left=this._left+"px"),C&&(this._top=(this._top+C)%1,k.top=this._top+"px"))},s.prototype.clear=function(){s.eve("raphael.clear",this);for(var T=this.canvas;T.firstChild;)T.removeChild(T.firstChild);this.bottom=this.top=null,(this.desc=A("desc")).appendChild(s._g.doc.createTextNode("Created with Raphaël "+s.version)),T.appendChild(this.desc),T.appendChild(this.defs=A("defs"))},s.prototype.remove=function(){for(var T in _("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[T]=typeof this[T]=="function"?s._removedFactory(T):null};var at=s.st;for(var X in $t)$t[c](X)&&!at[c](X)&&(at[X]=function(T){return function(){var E=arguments;return this.forEach(function(k){k[T].apply(k,E)})}}(X))}}).apply(n,o))===void 0||(r.exports=a)},function(r,n,i){var o,a;o=[i(0)],(a=(function(s){if(!s||s.vml){var c="hasOwnProperty",l=String,u=parseFloat,d=Math,f=d.round,h=d.max,p=d.min,g=d.abs,v=/[, ]+/,_=s.eve,y=" ",m="",x={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},N=/([clmz]),?([^clmz]*)/gi,$=/ progid:\S+Blur\([^\)]+\)/g,A=/-?[^,\s-]+/g,R="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",G=21600,H={path:1,rect:1,image:1},Y={circle:1,ellipse:1},J=function(E,k,b){var C=s.matrix();return C.rotate(-E,.5,.5),{dx:C.x(k,b),dy:C.y(k,b)}},nt=function(E,k,b,C,L,D){var V=E._,K=E.matrix,et=V.fillpos,it=E.node,ut=it.style,Tt=1,Gt="",Pt=G/k,Nt=G/b;if(ut.visibility="hidden",k&&b){if(it.coordsize=g(Pt)+y+g(Nt),ut.rotation=D*(k*b<0?-1:1),D){var qt=J(D,C,L);C=qt.dx,L=qt.dy}if(k<0&&(Gt+="x"),b<0&&(Gt+=" y")&&(Tt=-1),ut.flip=Gt,it.coordorigin=C*-Pt+y+L*-Nt,et||V.fillsize){var Qt=it.getElementsByTagName("fill");Qt=Qt&&Qt[0],it.removeChild(Qt),et&&(qt=J(D,K.x(et[0],et[1]),K.y(et[0],et[1])),Qt.position=qt.dx*Tt+y+qt.dy*Tt),V.fillsize&&(Qt.size=V.fillsize[0]*g(k)+y+V.fillsize[1]*g(b)),it.appendChild(Qt)}ut.visibility="visible"}};s.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
|
|
42
|
-
You are running Raphaël `+this.version};var rt,lt=function(E,k,b){for(var C=l(k).toLowerCase().split("-"),L=b?"end":"start",D=C.length,V="classic",K="medium",et="medium";D--;)switch(C[D]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":V=C[D];break;case"wide":case"narrow":et=C[D];break;case"long":case"short":K=C[D]}var it=E.node.getElementsByTagName("stroke")[0];it[L+"arrow"]=V,it[L+"arrowlength"]=K,it[L+"arrowwidth"]=et},xt=function(E,k){E.attrs=E.attrs||{};var b=E.node,C=E.attrs,L=b.style,D=H[E.type]&&(k.x!=C.x||k.y!=C.y||k.width!=C.width||k.height!=C.height||k.cx!=C.cx||k.cy!=C.cy||k.rx!=C.rx||k.ry!=C.ry||k.r!=C.r),V=Y[E.type]&&(C.cx!=k.cx||C.cy!=k.cy||C.r!=k.r||C.rx!=k.rx||C.ry!=k.ry),K=E;for(var et in k)k[c](et)&&(C[et]=k[et]);if(D&&(C.path=s._getPath[E.type](E),E._.dirty=1),k.href&&(b.href=k.href),k.title&&(b.title=k.title),k.target&&(b.target=k.target),k.cursor&&(L.cursor=k.cursor),"blur"in k&&E.blur(k.blur),(k.path&&E.type=="path"||D)&&(b.path=function(er){var rn=/[ahqstv]/gi,nn=s._pathToAbsolute;if(l(er).match(rn)&&(nn=s._path2curve),rn=/[clmz]/g,nn==s._pathToAbsolute&&!l(er).match(rn)){var xe=l(er).replace(N,function(mo,on,gn){var $r=[],En=on.toLowerCase()=="m",vn=x[on];return gn.replace(A,function(Yr){En&&$r.length==2&&(vn+=$r+x[on=="m"?"l":"L"],$r=[]),$r.push(f(Yr*G))}),vn+$r});return xe}var Kr,Or,Yn=nn(er);xe=[];for(var mn=0,kn=Yn.length;mn<kn;mn++){Kr=Yn[mn],(Or=Yn[mn][0].toLowerCase())=="z"&&(Or="x");for(var Dr=1,Ie=Kr.length;Dr<Ie;Dr++)Or+=f(Kr[Dr]*G)+(Dr!=Ie-1?",":m);xe.push(Or)}return xe.join(y)}(~l(C.path).toLowerCase().indexOf("r")?s._pathToAbsolute(C.path):C.path),E._.dirty=1,E.type=="image"&&(E._.fillpos=[C.x,C.y],E._.fillsize=[C.width,C.height],nt(E,1,1,0,0,0))),"transform"in k&&E.transform(k.transform),V){var it=+C.cx,ut=+C.cy,Tt=+C.rx||+C.r||0,Gt=+C.ry||+C.r||0;b.path=s.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",f((it-Tt)*G),f((ut-Gt)*G),f((it+Tt)*G),f((ut+Gt)*G),f(it*G)),E._.dirty=1}if("clip-rect"in k){var Pt=l(k["clip-rect"]).split(v);if(Pt.length==4){Pt[2]=+Pt[2]+ +Pt[0],Pt[3]=+Pt[3]+ +Pt[1];var Nt=b.clipRect||s._g.doc.createElement("div"),qt=Nt.style;qt.clip=s.format("rect({1}px {2}px {3}px {0}px)",Pt),b.clipRect||(qt.position="absolute",qt.top=0,qt.left=0,qt.width=E.paper.width+"px",qt.height=E.paper.height+"px",b.parentNode.insertBefore(Nt,b),Nt.appendChild(b),b.clipRect=Nt)}k["clip-rect"]||b.clipRect&&(b.clipRect.style.clip="auto")}if(E.textpath){var Qt=E.textpath.style;k.font&&(Qt.font=k.font),k["font-family"]&&(Qt.fontFamily='"'+k["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,m)+'"'),k["font-size"]&&(Qt.fontSize=k["font-size"]),k["font-weight"]&&(Qt.fontWeight=k["font-weight"]),k["font-style"]&&(Qt.fontStyle=k["font-style"])}if("arrow-start"in k&<(K,k["arrow-start"]),"arrow-end"in k&<(K,k["arrow-end"],1),k.opacity!=null||k.fill!=null||k.src!=null||k.stroke!=null||k["stroke-width"]!=null||k["stroke-opacity"]!=null||k["fill-opacity"]!=null||k["stroke-dasharray"]!=null||k["stroke-miterlimit"]!=null||k["stroke-linejoin"]!=null||k["stroke-linecap"]!=null){var Dt=b.getElementsByTagName("fill");if(!(Dt=Dt&&Dt[0])&&(Dt=rt("fill")),E.type=="image"&&k.src&&(Dt.src=k.src),k.fill&&(Dt.on=!0),Dt.on!=null&&k.fill!="none"&&k.fill!==null||(Dt.on=!1),Dt.on&&k.fill){var fe=l(k.fill).match(s._ISURL);if(fe){Dt.parentNode==b&&b.removeChild(Dt),Dt.rotate=!0,Dt.src=fe[1],Dt.type="tile";var re=E.getBBox(1);Dt.position=re.x+y+re.y,E._.fillpos=[re.x,re.y],s._preload(fe[1],function(){E._.fillsize=[this.offsetWidth,this.offsetHeight]})}else Dt.color=s.getRGB(k.fill).hex,Dt.src=m,Dt.type="solid",s.getRGB(k.fill).error&&(K.type in{circle:1,ellipse:1}||l(k.fill).charAt()!="r")&&Ct(K,k.fill,Dt)&&(C.fill="none",C.gradient=k.fill,Dt.rotate=!1)}if("fill-opacity"in k||"opacity"in k){var he=((+C["fill-opacity"]+1||2)-1)*((+C.opacity+1||2)-1)*((+s.getRGB(k.fill).o+1||2)-1);he=p(h(he,0),1),Dt.opacity=he,Dt.src&&(Dt.color="none")}b.appendChild(Dt);var Vt=b.getElementsByTagName("stroke")&&b.getElementsByTagName("stroke")[0],Le=!1;!Vt&&(Le=Vt=rt("stroke")),(k.stroke&&k.stroke!="none"||k["stroke-width"]||k["stroke-opacity"]!=null||k["stroke-dasharray"]||k["stroke-miterlimit"]||k["stroke-linejoin"]||k["stroke-linecap"])&&(Vt.on=!0),(k.stroke=="none"||k.stroke===null||Vt.on==null||k.stroke==0||k["stroke-width"]==0)&&(Vt.on=!1);var Ue=s.getRGB(k.stroke);Vt.on&&k.stroke&&(Vt.color=Ue.hex),he=((+C["stroke-opacity"]+1||2)-1)*((+C.opacity+1||2)-1)*((+Ue.o+1||2)-1);var Xe=.75*(u(k["stroke-width"])||1);if(he=p(h(he,0),1),k["stroke-width"]==null&&(Xe=C["stroke-width"]),k["stroke-width"]&&(Vt.weight=Xe),Xe&&Xe<1&&(he*=Xe)&&(Vt.weight=1),Vt.opacity=he,k["stroke-linejoin"]&&(Vt.joinstyle=k["stroke-linejoin"]||"miter"),Vt.miterlimit=k["stroke-miterlimit"]||8,k["stroke-linecap"]&&(Vt.endcap=k["stroke-linecap"]=="butt"?"flat":k["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in k){var pr={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};Vt.dashstyle=pr[c](k["stroke-dasharray"])?pr[k["stroke-dasharray"]]:m}Le&&b.appendChild(Vt)}if(K.type=="text"){K.paper.canvas.style.display=m;var dr=K.paper.span,$e=C.font&&C.font.match(/\d+(?:\.\d*)?(?=px)/);L=dr.style,C.font&&(L.font=C.font),C["font-family"]&&(L.fontFamily=C["font-family"]),C["font-weight"]&&(L.fontWeight=C["font-weight"]),C["font-style"]&&(L.fontStyle=C["font-style"]),$e=u(C["font-size"]||$e&&$e[0])||10,L.fontSize=100*$e+"px",K.textpath.string&&(dr.innerHTML=l(K.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var Ze=dr.getBoundingClientRect();K.W=C.w=(Ze.right-Ze.left)/100,K.H=C.h=(Ze.bottom-Ze.top)/100,K.X=C.x,K.Y=C.y+K.H/2,("x"in k||"y"in k)&&(K.path.v=s.format("m{0},{1}l{2},{1}",f(C.x*G),f(C.y*G),f(C.x*G)+1));for(var jr=["x","y","text","font","font-family","font-weight","font-style","font-size"],Ir=0,Sr=jr.length;Ir<Sr;Ir++)if(jr[Ir]in k){K._.dirty=1;break}switch(C["text-anchor"]){case"start":K.textpath.style["v-text-align"]="left",K.bbx=K.W/2;break;case"end":K.textpath.style["v-text-align"]="right",K.bbx=-K.W/2;break;default:K.textpath.style["v-text-align"]="center",K.bbx=0}K.textpath.style["v-text-kern"]=!0}},Ct=function(E,k,b){E.attrs=E.attrs||{},E.attrs;var C=Math.pow,L="linear",D=".5 .5";if(E.attrs.gradient=k,k=(k=l(k).replace(s._radial_gradient,function(Tt,Gt,Pt){return L="radial",Gt&&Pt&&(Gt=u(Gt),Pt=u(Pt),C(Gt-.5,2)+C(Pt-.5,2)>.25&&(Pt=d.sqrt(.25-C(Gt-.5,2))*(2*(Pt>.5)-1)+.5),D=Gt+y+Pt),m})).split(/\s*\-\s*/),L=="linear"){var V=k.shift();if(V=-u(V),isNaN(V))return null}var K=s._parseDots(k);if(!K)return null;if(E=E.shape||E.node,K.length){E.removeChild(b),b.on=!0,b.method="none",b.color=K[0].color,b.color2=K[K.length-1].color;for(var et=[],it=0,ut=K.length;it<ut;it++)K[it].offset&&et.push(K[it].offset+y+K[it].color);b.colors=et.length?et.join():"0% "+b.color,L=="radial"?(b.type="gradientTitle",b.focus="100%",b.focussize="0 0",b.focusposition=D,b.angle=0):(b.type="gradient",b.angle=(270-V)%360),E.appendChild(b)}return 1},$t=function(E,k){this[0]=this.node=E,E.raphael=!0,this.id=s._oid++,E.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=k,this.matrix=s.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!k.bottom&&(k.bottom=this),this.prev=k.top,k.top&&(k.top.next=this),k.top=this,this.next=null},at=s.el;$t.prototype=at,at.constructor=$t,at.transform=function(E){if(E==null)return this._.transform;var k,b=this.paper._viewBoxShift,C=b?"s"+[b.scale,b.scale]+"-1-1t"+[b.dx,b.dy]:m;b&&(k=E=l(E).replace(/\.{3}|\u2026/g,this._.transform||m)),s._extractTransform(this,C+E);var L,D=this.matrix.clone(),V=this.skew,K=this.node,et=~l(this.attrs.fill).indexOf("-"),it=!l(this.attrs.fill).indexOf("url(");if(D.translate(1,1),it||et||this.type=="image")if(V.matrix="1 0 0 1",V.offset="0 0",L=D.split(),et&&L.noRotation||!L.isSimple){K.style.filter=D.toFilter();var ut=this.getBBox(),Tt=this.getBBox(1),Gt=ut.x-Tt.x,Pt=ut.y-Tt.y;K.coordorigin=Gt*-G+y+Pt*-G,nt(this,1,1,Gt,Pt,0)}else K.style.filter=m,nt(this,L.scalex,L.scaley,L.dx,L.dy,L.rotate);else K.style.filter=m,V.matrix=l(D),V.offset=D.offset();return k!==null&&(this._.transform=k,s._extractTransform(this,k)),this},at.rotate=function(E,k,b){if(this.removed)return this;if(E!=null){if((E=l(E).split(v)).length-1&&(k=u(E[1]),b=u(E[2])),E=u(E[0]),b==null&&(k=b),k==null||b==null){var C=this.getBBox(1);k=C.x+C.width/2,b=C.y+C.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",E,k,b]])),this}},at.translate=function(E,k){return this.removed?this:((E=l(E).split(v)).length-1&&(k=u(E[1])),E=u(E[0])||0,k=+k||0,this._.bbox&&(this._.bbox.x+=E,this._.bbox.y+=k),this.transform(this._.transform.concat([["t",E,k]])),this)},at.scale=function(E,k,b,C){if(this.removed)return this;if((E=l(E).split(v)).length-1&&(k=u(E[1]),b=u(E[2]),C=u(E[3]),isNaN(b)&&(b=null),isNaN(C)&&(C=null)),E=u(E[0]),k==null&&(k=E),C==null&&(b=C),b==null||C==null)var L=this.getBBox(1);return b=b??L.x+L.width/2,C=C??L.y+L.height/2,this.transform(this._.transform.concat([["s",E,k,b,C]])),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=m),this},at.auxGetBBox=s.el.getBBox,at.getBBox=function(){var E=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var k={},b=1/this.paper._viewBoxShift.scale;return k.x=E.x-this.paper._viewBoxShift.dx,k.x*=b,k.y=E.y-this.paper._viewBoxShift.dy,k.y*=b,k.width=E.width*b,k.height=E.height*b,k.x2=k.x+k.width,k.y2=k.y+k.height,k}return E},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 E in this.paper.__set__&&this.paper.__set__.exclude(this),s.eve.unbind("raphael.*.*."+this.id),s._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[E]=typeof this[E]=="function"?s._removedFactory(E):null;this.removed=!0}},at.attr=function(E,k){if(this.removed)return this;if(E==null){var b={};for(var C in this.attrs)this.attrs[c](C)&&(b[C]=this.attrs[C]);return b.gradient&&b.fill=="none"&&(b.fill=b.gradient)&&delete b.gradient,b.transform=this._.transform,b}if(k==null&&s.is(E,"string")){if(E=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var L=E.split(v),D={},V=0,K=L.length;V<K;V++)(E=L[V])in this.attrs?D[E]=this.attrs[E]:s.is(this.paper.customAttributes[E],"function")?D[E]=this.paper.customAttributes[E].def:D[E]=s._availableAttrs[E];return K-1?D:D[L[0]]}if(this.attrs&&k==null&&s.is(E,"array")){for(D={},V=0,K=E.length;V<K;V++)D[E[V]]=this.attr(E[V]);return D}var et;for(var it in k!=null&&((et={})[E]=k),k==null&&s.is(E,"object")&&(et=E),et)_("raphael.attr."+it+"."+this.id,this,et[it]);if(et){for(it in this.paper.customAttributes)if(this.paper.customAttributes[c](it)&&et[c](it)&&s.is(this.paper.customAttributes[it],"function")){var ut=this.paper.customAttributes[it].apply(this,[].concat(et[it]));for(var Tt in this.attrs[it]=et[it],ut)ut[c](Tt)&&(et[Tt]=ut[Tt])}et.text&&this.type=="text"&&(this.textpath.string=et.text),xt(this,et)}return this},at.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&s._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),s._toback(this,this.paper)),this)},at.insertAfter=function(E){return this.removed?this:(E.constructor==s.st.constructor&&(E=E[E.length-1]),E.node.nextSibling?E.node.parentNode.insertBefore(this.node,E.node.nextSibling):E.node.parentNode.appendChild(this.node),s._insertafter(this,E,this.paper),this)},at.insertBefore=function(E){return this.removed?this:(E.constructor==s.st.constructor&&(E=E[0]),E.node.parentNode.insertBefore(this.node,E.node),s._insertbefore(this,E,this.paper),this)},at.blur=function(E){var k=this.node.runtimeStyle,b=k.filter;return b=b.replace($,m),+E!=0?(this.attrs.blur=E,k.filter=b+y+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+E||1.5)+")",k.margin=s.format("-{0}px 0 0 -{0}px",f(+E||1.5))):(k.filter=b,k.margin=0,delete this.attrs.blur),this},s._engine.path=function(E,k){var b=rt("shape");b.style.cssText=R,b.coordsize=G+y+G,b.coordorigin=k.coordorigin;var C=new $t(b,k),L={fill:"none",stroke:"#000"};E&&(L.path=E),C.type="path",C.path=[],C.Path=m,xt(C,L),k.canvas&&k.canvas.appendChild(b);var D=rt("skew");return D.on=!0,b.appendChild(D),C.skew=D,C.transform(m),C},s._engine.rect=function(E,k,b,C,L,D){var V=s._rectPath(k,b,C,L,D),K=E.path(V),et=K.attrs;return K.X=et.x=k,K.Y=et.y=b,K.W=et.width=C,K.H=et.height=L,et.r=D,et.path=V,K.type="rect",K},s._engine.ellipse=function(E,k,b,C,L){var D=E.path();return D.attrs,D.X=k-C,D.Y=b-L,D.W=2*C,D.H=2*L,D.type="ellipse",xt(D,{cx:k,cy:b,rx:C,ry:L}),D},s._engine.circle=function(E,k,b,C){var L=E.path();return L.attrs,L.X=k-C,L.Y=b-C,L.W=L.H=2*C,L.type="circle",xt(L,{cx:k,cy:b,r:C}),L},s._engine.image=function(E,k,b,C,L,D){var V=s._rectPath(b,C,L,D),K=E.path(V).attr({stroke:"none"}),et=K.attrs,it=K.node,ut=it.getElementsByTagName("fill")[0];return et.src=k,K.X=et.x=b,K.Y=et.y=C,K.W=et.width=L,K.H=et.height=D,et.path=V,K.type="image",ut.parentNode==it&&it.removeChild(ut),ut.rotate=!0,ut.src=k,ut.type="tile",K._.fillpos=[b,C],K._.fillsize=[L,D],it.appendChild(ut),nt(K,1,1,0,0,0),K},s._engine.text=function(E,k,b,C){var L=rt("shape"),D=rt("path"),V=rt("textpath");k=k||0,b=b||0,C=C||"",D.v=s.format("m{0},{1}l{2},{1}",f(k*G),f(b*G),f(k*G)+1),D.textpathok=!0,V.string=l(C),V.on=!0,L.style.cssText=R,L.coordsize=G+y+G,L.coordorigin="0 0";var K=new $t(L,E),et={fill:"#000",stroke:"none",font:s._availableAttrs.font,text:C};K.shape=L,K.path=D,K.textpath=V,K.type="text",K.attrs.text=l(C),K.attrs.x=k,K.attrs.y=b,K.attrs.w=1,K.attrs.h=1,xt(K,et),L.appendChild(V),L.appendChild(D),E.canvas.appendChild(L);var it=rt("skew");return it.on=!0,L.appendChild(it),K.skew=it,K.transform(m),K},s._engine.setSize=function(E,k){var b=this.canvas.style;return this.width=E,this.height=k,E==+E&&(E+="px"),k==+k&&(k+="px"),b.width=E,b.height=k,b.clip="rect(0 "+E+" "+k+" 0)",this._viewBox&&s._engine.setViewBox.apply(this,this._viewBox),this},s._engine.setViewBox=function(E,k,b,C,L){s.eve("raphael.setViewBox",this,this._viewBox,[E,k,b,C,L]);var D,V,K=this.getSize(),et=K.width,it=K.height;return L&&(b*(D=it/C)<et&&(E-=(et-b*D)/2/D),C*(V=et/b)<it&&(k-=(it-C*V)/2/V)),this._viewBox=[E,k,b,C,!!L],this._viewBoxShift={dx:-E,dy:-k,scale:K},this.forEach(function(ut){ut.transform("...")}),this},s._engine.initWin=function(E){var k=E.document;k.styleSheets.length<31?k.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):k.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!k.namespaces.rvml&&k.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),rt=function(b){return k.createElement("<rvml:"+b+' class="rvml">')}}catch{rt=function(b){return k.createElement("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},s._engine.initWin(s._g.win),s._engine.create=function(){var E=s._getContainer.apply(0,arguments),k=E.container,b=E.height,C=E.width,L=E.x,D=E.y;if(!k)throw new Error("VML container not found.");var V=new s._Paper,K=V.canvas=s._g.doc.createElement("div"),et=K.style;return L=L||0,D=D||0,C=C||512,b=b||342,V.width=C,V.height=b,C==+C&&(C+="px"),b==+b&&(b+="px"),V.coordsize=216e5+y+216e5,V.coordorigin="0 0",V.span=s._g.doc.createElement("span"),V.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",K.appendChild(V.span),et.cssText=s.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",C,b),k==1?(s._g.doc.body.appendChild(K),et.left=L+"px",et.top=D+"px",et.position="absolute"):k.firstChild?k.insertBefore(K,k.firstChild):k.appendChild(K),V.renderfix=function(){},V},s.prototype.clear=function(){s.eve("raphael.clear",this),this.canvas.innerHTML=m,this.span=s._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},s.prototype.remove=function(){for(var E in s.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[E]=typeof this[E]=="function"?s._removedFactory(E):null;return!0};var X=s.st;for(var T in at)at[c](T)&&!X[c](T)&&(X[T]=function(E){return function(){var k=arguments;return this.forEach(function(b){b[E].apply(b,k)})}}(T))}}).apply(n,o))===void 0||(r.exports=a)}])})})(l_);var xA=l_.exports;const Jr=un(xA);let c_=class K${constructor(t=[]){jt(this,"points");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 a=2e-10;for(let s=0,c=i-1;s<i;c=s,s++){const l=this.points[s].x,u=this.points[s].y,d=this.points[c].x,f=this.points[c].y;if(l===r&&u===n||d===r&&f===n||n===u&&n===f)return!0;if(n>=u&&n<f||n<u&&n>=f){const h=(d-l)/(f-u),p=l+h*(n-u);if(p===r||Math.abs(p-r)<a)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 a=new K$;for(let s=0;s<=o*n;s+=1){const c=Math.floor(s/o)/n*2*Math.PI,l=t+Math.cos(c)*i,u=r+Math.sin(c)*i;a.addPoint(new fs({x:l,y:u}))}return a}};Jr.easing_formulas.swing=function(e){return e+Math.sin(e*Math.PI*2)/2},Jr.easing_formulas.may_cause_seizures=function(e){return e+.2*Math.random()-.1},Jr.fn.importSVG=function(e,t){const r=SA.fromRawSVG(e);return r.toRaphael(this,(n,i)=>{r.save(),t&&t(n),i(),r.restore()}),this},Jr.fn.NPolygonPath=function(e,t,r,n,i=2){return{shape:this.path(c_.generateInMultiplePoint(e,t,r,n,i).toSVGPathD()),afterPath:c_.generateInMultiplePoint(e,t,r*i,n,1).toSVGPathD()}},Jr.fn.zoom=function(e=1){return this.setViewBox(0,0,this.width/e,this.height/e),this},Jr.fn.brickwall=function(e,t,r,n,i){for(var o=n/i,a=r/3,s={fill:"firebrick",stroke:"#CCC"},c=0;c<i;c+=1){var l=this.rect(0,0,a,o).attr(s),u=this.rect(0,0,2*a,o).attr(s);c%2?(l.transform("T"+e+","+(t+c*o)),u.transform("T"+(e+a)+","+(t+c*o))):(u.transform("T"+e+","+(t+c*o)),l.transform("T"+(e+2*a)+","+(t+c*o)))}},Jr.fn.rosetta=function(e,t,r,n,i){const o=fa.generateRosetta(e,t,r,n,i);return o.center,this.path(o.toSVGPathD())},Jr.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))}}},Jr.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,a=e+r*Math.cos(o*Math.PI/180),s=t+r*Math.sin(o*Math.PI/180);n+="L"+a+","+s}return this.path(n).attr("stroke-width",0).attr("fill","red")},Jr.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")},Jr.el.redder=function(){const e=Jr.getRGB(this.attr("fill"));e.r+=51,this.attr("fill","rgb("+e.r+","+e.g+","+e.b+")")},Jr.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 a=r.getTotalLength(),s=r.getPointAtLength(t*a);return o&&o.attr("path",r.getSubpath(0,t*a)),{transform:"t"+(s.x+i.x)+","+(s.y+i.y)+"r"+s.alpha}}};const u_=Jr;let h_=class sc{constructor(){jt(this,"pgs",[]);jt(this,"history",[])}save(){this.history.push(jg(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,a,s,c]=i.bounds,[l,u]=i.size;t=Math.max(t,o,o+l,s),r=Math.max(r,a,a+u,c)}}),[Math.ceil(t),Math.ceil(r)]}static fromRawSVG(t){return sc.fromRawSVGUseRappar(t)}static fromRawSVGUseRappar(t){const r=new sc,n=vA(t);for(let i=0,o=n.length;i<o;i++){const a=n[i];if(a.type=="viewbox"&&a.width&&a.height)continue;const s={attrs:{}};for(const c in a)c==="type"||c==="path"||c==="transform"||(s.attrs[c]=a[c]);switch(a.type){case"path":s.d=a.path,s.pg=fa.fromSVGPathD(a.path,a.transform);break}r.pgs.push(s)}return r}toRaphael(t,r){let n;t instanceof HTMLElement?n=u_(HTMLElement):typeof t=="string"?n=u_(document.getElementById(t)):n=t;const[i,o]=this.size;n.setSize(i,o);const a=(s=!1)=>{var c,l;for(let u=0,d=this.pgs.length;u<d;u++){const f=this.pgs[u];if(f.pg&&(f.raphaelPath?f.raphaelPath.attr("path",f.pg.toSVGPathD()):f.raphaelPath=n.path(f.pg.toSVGPathD()),f.raphaelPath.attr(f.attrs)),s&&r){const h=p=>{const{x:g,y:v}=Uy(n.canvas,p),_=this.pgs.find(y=>{var m;return(m=y.raphaelPath)==null?void 0:m.isPointInside(g,v)});_&&(r==null||r(_,a))};(c=f.raphaelPath)==null||c.unclick(h),(l=f.raphaelPath)==null||l.click(h)}}};return a(!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 a=new $A(n),s=()=>{a.clearRect(0,0,i,o);for(let l=0,u=this.pgs.length;l<u;l++){const d=this.pgs[l];d.pg&&(a.save(),this.toCanvasAttrs(a,d.attrs),d.pg.toCanvas(a),d.attrs.stroke!=="none"&&a.stroke(),d.attrs.fill!=="none"&&a.fill(),a.restore())}};s();const c=l=>{const{x:u,y:d}=Uy(a.canvas,l),f=this.pgs.find(h=>{var p;return(p=h.pg)==null?void 0:p.isPointInPath(u,d)});f&&(r==null||r(f,s))};return n.removeEventListener("click",c),n.addEventListener("click",c),a}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"){Fy(RO(t),`${r}.svg`)}toDownloadSVGElement(t,r="shape"){return sc.toDownloadSVGElement(t,r),this}static toDownloadSVGString(t,r="shape"){Fy(Dy(t),`${r}.svg`)}toDownloadSVGString(t,r="shape"){return sc.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 SA=h_;let $A=class{constructor(t){jt(this,"canvas");jt(this,"context");jt(this,"customContext");this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),this.customContext=new wA({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,a){return this.context.arc(t,r,n,i,o,a),this.customContext.arc(t,r,n,i,o,a?-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,a){return this.context.bezierCurveTo(t,r,n,i,o,a),this.customContext.bezierCurveTo(t,r,n,i,o,a),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 a=this.context.createLinearGradient(t,r,n,i),s=this.customContext.createLinearGradient(t,r,n,i);return o&&Object.keys(o).forEach(c=>{const l=parseFloat(c);a.addColorStop(l,o[l]),s.addColorStop(l,o[l])}),{gradient:a,gradientCustom:s}}createRadialGradient(t,r,n,i,o,a,s){const c=this.context.createRadialGradient(t,r,n,i,o,a),l=this.customContext.createRadialGradient(t,r,n,i,o,a);return s&&Object.keys(s).forEach(u=>{const d=parseFloat(u);c.addColorStop(d,s[d]),l.addColorStop(d,s[d])}),{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 h_.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 Ce={colorPrimary:ee.getCSSVar("--color-primary"),colorRed:ee.getCSSVar("--color-red"),colorOrange:ee.getCSSVar("--color-orange"),colorYellow:ee.getCSSVar("--color-yellow"),colorGreen:ee.getCSSVar("--color-green"),colorBlue:ee.getCSSVar("--color-blue"),colorPurple:ee.getCSSVar("--color-purple"),colorBlack:ee.getCSSVar("--color-black"),colorGray0:ee.getCSSVar("--color-gray-0"),colorGray3:ee.getCSSVar("--color-gray-3"),colorGray6:ee.getCSSVar("--color-gray-6"),colorGray9:ee.getCSSVar("--color-gray-9"),colorGrayCC:ee.getCSSVar("--color-gray-cc"),colorGrayDD:ee.getCSSVar("--color-gray-dd"),colorGrayE6:ee.getCSSVar("--color-gray-e6"),colorGrayEE:ee.getCSSVar("--color-gray-ee"),colorGrayEF:ee.getCSSVar("--color-gray-ef"),colorGrayF5:ee.getCSSVar("--color-gray-f5"),colorGrayFF:ee.getCSSVar("--color-gray-ff"),fontLineHeight:ee.getCSSVar("--font-line-height"),fontSize32:ee.getCSSVar("--font-size-32"),fontSize24:ee.getCSSVar("--font-size-24"),fontSize18:ee.getCSSVar("--font-size-18"),fontSize16:ee.getCSSVar("--font-size-16"),fontSize14:ee.getCSSVar("--font-size-14"),fontSize12:ee.getCSSVar("--font-size-12"),fontSize11:ee.getCSSVar("--font-size-11"),gap4:ee.getCSSVar("--gap-4"),gap8:ee.getCSSVar("--gap-8"),gap12:ee.getCSSVar("--gap-12"),gap16:ee.getCSSVar("--gap-16"),gap20:ee.getCSSVar("--gap-20"),gap40:ee.getCSSVar("--gap-40"),height44:ee.getCSSVar("--height-44"),height32:ee.getCSSVar("--height-32"),borderRadius:ee.getCSSVar("--border-radius")},kA=function(e){return e[0]==="#"&&(e=e.slice(1)),parseInt(e,16)},EA=function(e,t=1){const r=e>>16&255,n=e>>8&255,i=e&255,o=t<0?0:t>1?1:t;return o===1?"rgb("+r+","+n+","+i+")":"rgba("+r+","+n+","+i+","+o+")"},CA=function(e,t=1){const r=kA(e);return EA(r,t)};function vs(e,t){let r=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),i=parseInt(e.substring(5,7),16);r==0&&(r=32),n==0&&(n=32),i==0&&(i=32),r=r*(100+t)/100,n=n*(100+t)/100,i=i*(100+t)/100,r=r<255?r:255,n=n<255?n:255,i=i<255?i:255,r=Math.round(r),n=Math.round(n),i=Math.round(i);const o=r.toString(16).length==1?"0"+r.toString(16):r.toString(16),a=n.toString(16).length==1?"0"+n.toString(16):n.toString(16),s=i.toString(16).length==1?"0"+i.toString(16):i.toString(16);return"#"+o+a+s}var d_={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,a={},s=new Uint8Array(r),c=s.length-4;o(s,c)!=101010256;)c--;var l=c;l+=4,l+=4;var u=i(s,l);l+=2,i(s,l),l+=2;var d=o(s,l);l+=4;var f=o(s,l);l+=4,l=f;for(var h=0;h<u;h++){o(s,l),l+=4,l+=4,l+=4,l+=4,o(s,l),l+=4;var d=o(s,l);l+=4;var p=o(s,l);l+=4;var g=i(s,l),v=i(s,l+2),_=i(s,l+4);l+=6,l+=8;var y=o(s,l);l+=4,l+=g+v+_,t._readLocal(s,y,a,d,p,n)}return a},t._readLocal=function(r,n,i,o,a,s){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 d=c(r,n);n+=2;var f=c(r,n);n+=2;var h=t.bin.readUTF8(r,n,d);if(n+=d,n+=f,s){i[h]={size:a,csize:o};return}var p=new Uint8Array(r.buffer,n);if(u==0)i[h]=new Uint8Array(p.buffer.slice(n,n+o));else if(u==8){var g=new Uint8Array(a);t.inflateRaw(p,g),i[h]=g}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 a=t.adler(r,0,r.length);return o[i+0]=a>>>24&255,o[i+1]=a>>>16&255,o[i+2]=a>>>8&255,o[i+3]=a>>>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,a=t.bin.writeUshort,s={};for(var c in r){var l=!t._noNeed(c)&&!n,u=r[c],d=t.crc.crc(u,0,u.length);s[c]={cpr:l,usize:u.length,crc:d,file:l?t.deflateRaw(u):u}}for(var c in s)i+=s[c].file.length+30+46+2*t.bin.sizeUTF8(c);i+=22;var f=new Uint8Array(i),h=0,p=[];for(var c in s){var g=s[c];p.push(h),h=t._writeHeader(f,h,c,g,0)}var v=0,_=h;for(var c in s){var g=s[c];p.push(h),h=t._writeHeader(f,h,c,g,1,p[v++])}var y=h-_;return o(f,h,101010256),h+=4,h+=4,a(f,h,v),h+=2,a(f,h,v),h+=2,o(f,h,y),h+=4,o(f,h,_),h+=4,h+=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,a,s){var c=t.bin.writeUint,l=t.bin.writeUshort,u=o.file;c(r,n,a==0?67324752:33639248),n+=4,a==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,a==1&&(n+=2,n+=2,n+=6,c(r,n,s),n+=4);var d=t.bin.writeUTF8(r,n,i);return n+=d,a==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 a=0;a<o;a++)r=t.crc.table[(r^n[i+a])&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,a=0,s=n,c=n+i;s<c;){for(var l=Math.min(s+5552,c);s<l;)o+=r[s++],a+=o;o=o%65521,a=a%65521}return a<<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="",a=0;a<i;a++)o+=String.fromCharCode(r[n+a]);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="",a,s=0;s<i;s++)o+="%"+t.bin.pad(r[n+s].toString(16));try{a=decodeURIComponent(o)}catch{return t.bin.readASCII(r,n,i)}return a},writeUTF8:function(r,n,i){for(var o=i.length,a=0,s=0;s<o;s++){var c=i.charCodeAt(s);if(!(c&4294967168))r[n+a]=c,a++;else if(!(c&4294965248))r[n+a]=192|c>>6,r[n+a+1]=128|c>>0&63,a+=2;else if(!(c&4294901760))r[n+a]=224|c>>12,r[n+a+1]=128|c>>6&63,r[n+a+2]=128|c>>0&63,a+=3;else if(!(c&4294967295-(1<<21)+1))r[n+a]=240|c>>18,r[n+a+1]=128|c>>12&63,r[n+a+2]=128|c>>6&63,r[n+a+3]=128|c>>0&63,a+=4;else throw"e"}return a},sizeUTF8:function(r){for(var n=r.length,i=0,o=0;o<n;o++){var a=r.charCodeAt(o);if(!(a&4294967168))i++;else if(!(a&4294965248))i+=2;else if(!(a&4294901760))i+=3;else if(!(a&4294967295-(1<<21)+1))i+=4;else throw"e"}return i}},t.F={},t.F.deflateRaw=function(r,n,i,o){var a=[[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]],s=a[o],c=t.F.U,l=t.F._goodIndex;t.F._hash;var u=t.F._putsE,d=0,f=i<<3,h=0,p=r.length;if(o==0){for(;d<p;){var g=Math.min(65535,p-d);u(n,f,d+g==p?1:0),f=t.F._copyExact(r,d,g,n,f+8),d+=g}return f>>>3}var v=c.lits,_=c.strt,y=c.prev,m=0,x=0,N=0,$=0,A=0,R=0;for(p>2&&(R=t.F._hash(r,0),_[R]=0),d=0;d<p;d++){if(A=R,d+1<p-2){R=t.F._hash(r,d+1);var G=d+1&32767;y[G]=_[R],_[R]=G}if(h<=d){(m>14e3||x>26697)&&p-d>100&&(h<d&&(v[m]=d-h,m+=2,h=d),f=t.F._writeBlock(d==p-1||h==p?1:0,v,m,$,r,N,d-N,n,f),m=x=$=0,N=d);var H=0;d<p-2&&(H=t.F._bestMatch(r,d,y,A,Math.min(s[2],p-d),s[3]));var g=H>>>16,Y=H&65535;if(H!=0){var g=H>>>16,Y=H&65535,J=l(g,c.of0);c.lhst[257+J]++;var nt=l(Y,c.df0);c.dhst[nt]++,$+=c.exb[J]+c.dxb[nt],v[m]=g<<23|d-h,v[m+1]=Y<<16|J<<8|nt,m+=2,h=d+g}else c.lhst[r[d]]++;x++}}for((N!=d||r.length==0)&&(h<d&&(v[m]=d-h,m+=2,h=d),f=t.F._writeBlock(1,v,m,$,r,N,d-N,n,f),m=0,x=0,m=x=$=0,N=d);f&7;)f++;return f>>>3},t.F._bestMatch=function(r,n,i,o,a,s){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 d=0,f=0,h=Math.min(32767,n);u<=h&&--s!=0&&l!=c;){if(d==0||r[n+d]==r[n+d-u]){var p=t.F._howLong(r,n,u);if(p>d){if(d=p,f=u,d>=a)break;u+2<p&&(p=u+2);for(var g=0,v=0;v<p-2;v++){var _=n-u+v+32768&32767,y=i[_],m=_-y+32768&32767;m>g&&(g=m,l=_)}}}c=l,l=i[c],u+=c-l+32768&32767}return d<<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,a=Math.min(r.length,n+258);for(n+=3;n<a&&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,a,s,c,l,u){var d=t.F.U,f=t.F._putsF,h=t.F._putsE,p,g,v,_,y,m,x,N,$;d.lhst[256]++,p=t.F.getTrees(),g=p[0],v=p[1],_=p[2],y=p[3],m=p[4],x=p[5],N=p[6],$=p[7];var A=(u+3&7?8-(u+3&7):0)+32+(c<<3),R=o+t.F.contSize(d.fltree,d.lhst)+t.F.contSize(d.fdtree,d.dhst),G=o+t.F.contSize(d.ltree,d.lhst)+t.F.contSize(d.dtree,d.dhst);G+=14+3*x+t.F.contSize(d.itree,d.ihst)+(d.ihst[16]*2+d.ihst[17]*3+d.ihst[18]*7);for(var H=0;H<286;H++)d.lhst[H]=0;for(var H=0;H<30;H++)d.dhst[H]=0;for(var H=0;H<19;H++)d.ihst[H]=0;var Y=A<R&&A<G?0:R<G?1:2;if(f(l,u,r),f(l,u+1,Y),u+=3,Y==0){for(;u&7;)u++;u=t.F._copyExact(a,s,c,l,u)}else{var J,nt;if(Y==1&&(J=d.fltree,nt=d.fdtree),Y==2){t.F.makeCodes(d.ltree,g),t.F.revCodes(d.ltree,g),t.F.makeCodes(d.dtree,v),t.F.revCodes(d.dtree,v),t.F.makeCodes(d.itree,_),t.F.revCodes(d.itree,_),J=d.ltree,nt=d.dtree,h(l,u,y-257),u+=5,h(l,u,m-1),u+=5,h(l,u,x-4),u+=4;for(var rt=0;rt<x;rt++)h(l,u+rt*3,d.itree[(d.ordr[rt]<<1)+1]);u+=3*x,u=t.F._codeTiny(N,d.itree,l,u),u=t.F._codeTiny($,d.itree,l,u)}for(var lt=s,xt=0;xt<i;xt+=2){for(var Ct=n[xt],$t=Ct>>>23,at=lt+(Ct&(1<<23)-1);lt<at;)u=t.F._writeLit(a[lt++],J,l,u);if($t!=0){var X=n[xt+1],T=X>>16,E=X>>8&255,k=X&255;u=t.F._writeLit(257+E,J,l,u),h(l,u,$t-d.of0[E]),u+=d.exb[E],u=t.F._writeLit(k,nt,l,u),f(l,u,T-d.df0[k]),u+=d.dxb[k],lt+=$t}}u=t.F._writeLit(256,J,l,u)}return u},t.F._copyExact=function(r,n,i,o,a){var s=a>>>3;return o[s]=i,o[s+1]=i>>>8,o[s+2]=255-o[s],o[s+3]=255-o[s+1],s+=4,o.set(new Uint8Array(r.buffer,n,i),s),a+(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=[],a=t.F._lenCodes(r.ltree,o),s=[],c=t.F._lenCodes(r.dtree,s),l=0;l<o.length;l+=2)r.ihst[o[l]]++;for(var l=0;l<s.length;l+=2)r.ihst[s[l]]++;for(var u=t.F._hufTree(r.ihst,r.itree,7),d=19;d>4&&r.itree[(r.ordr[d-1]<<1)+1]==0;)d--;return[n,i,u,a,c,d,o,s]},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 a=0;a<r.length;a+=2){var s=r[a],c=r[a+1];o=t.F._writeLit(s,n,i,o);var l=s==16?2:s==17?3:7;s>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 a=r[o+1],s=o+3<i?r[o+3]:-1,c=o+5<i?r[o+5]:-1,l=o==0?-1:r[o-1];if(a==0&&s==a&&c==a){for(var u=o+5;u+2<i&&r[u+2]==a;)u+=2;var d=Math.min(u+1-o>>>1,138);d<11?n.push(17,d-3):n.push(18,d-11),o+=d*2-2}else if(a==l&&s==a&&c==a){for(var u=o+5;u+2<i&&r[u+2]==a;)u+=2;var d=Math.min(u+1-o>>>1,6);n.push(16,d-3),o+=d*2-2}else n.push(a,0)}return i>>>1},t.F._hufTree=function(r,n,i){var o=[],a=r.length,s=n.length,c=0;for(c=0;c<s;c+=2)n[c]=0,n[c+1]=0;for(c=0;c<a;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 d=o[0].lit,u=d==0?1:0;return n[(d<<1)+1]=1,n[(u<<1)+1]=1,1}o.sort(function(y,m){return y.f-m.f});var f=o[0],h=o[1],p=0,g=1,v=2;for(o[0]={lit:-1,f:f.f+h.f,l:f,r:h,d:0};g!=l-1;)p!=g&&(v==l||o[p].f<o[v].f)?f=o[p++]:f=o[v++],p!=g&&(v==l||o[p].f<o[v].f)?h=o[p++]:h=o[v++],o[g++]={lit:-1,f:f.f+h.f,l:f,r:h};var _=t.F.setDepth(o[g-1],0);for(_>i&&(t.F.restrictDepth(u,i,_),_=i),c=0;c<l;c++)n[(u[c].lit<<1)+1]=u[c].d;return _},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,a=1<<i-n,s=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,s+=a-(1<<i-c)}for(s=s>>>i-n;s>0;){var c=r[o].d;c<n?(r[o].d++,s-=1<<n-c-1):o++}for(;o>=0;o--)r[o].d==n&&s<0&&(r[o].d--,s++);s!=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,a=o._bitsF,s=o._bitsE,c=o._decodeTiny,l=o.makeCodes,u=o.codes2map,d=o._get17,f=o.U,h=n==null;h&&(n=new i(r.length>>>2<<3));for(var p=0,g=0,v=0,_=0,y=0,m=0,x=0,N=0,$=0,A,R;p==0;){if(p=a(r,$,1),g=a(r,$+1,2),$+=3,g==0){$&7&&($+=8-($&7));var G=($>>>3)+4,H=r[G-4]|r[G-3]<<8;h&&(n=t.F._check(n,N+H)),n.set(new i(r.buffer,r.byteOffset+G,H),N),$=G+H<<3,N+=H;continue}if(h&&(n=t.F._check(n,N+(1<<17))),g==1&&(A=f.flmap,R=f.fdmap,m=511,x=31),g==2){v=s(r,$,5)+257,_=s(r,$+5,5)+1,y=s(r,$+10,4)+4,$+=14;for(var Y=0;Y<38;Y+=2)f.itree[Y]=0,f.itree[Y+1]=0;for(var J=1,Y=0;Y<y;Y++){var nt=s(r,$+Y*3,3);f.itree[(f.ordr[Y]<<1)+1]=nt,nt>J&&(J=nt)}$+=3*y,l(f.itree,J),u(f.itree,J,f.imap),A=f.lmap,R=f.dmap,$=c(f.imap,(1<<J)-1,v+_,r,$,f.ttree);var rt=o._copyOut(f.ttree,0,v,f.ltree);m=(1<<rt)-1;var lt=o._copyOut(f.ttree,v,_,f.dtree);x=(1<<lt)-1,l(f.ltree,rt),u(f.ltree,rt,A),l(f.dtree,lt),u(f.dtree,lt,R)}for(;;){var xt=A[d(r,$)&m];$+=xt&15;var Ct=xt>>>4;if(!(Ct>>>8))n[N++]=Ct;else{if(Ct==256)break;var $t=N+Ct-254;if(Ct>264){var at=f.ldef[Ct-257];$t=N+(at>>>3)+s(r,$,at&7),$+=at&7}var X=R[d(r,$)&x];$+=X&15;var T=X>>>4,E=f.ddef[T],k=(E>>>4)+a(r,$,E&15);for($+=E&15,h&&(n=t.F._check(n,N+(1<<17)));N<$t;)n[N]=n[N++-k],n[N]=n[N++-k],n[N]=n[N++-k],n[N]=n[N++-k];N=$t}}}return n.length==N?n:n.slice(0,N)},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,a,s){for(var c=t.F._bitsE,l=t.F._get17,u=0;u<i;){var d=r[l(o,a)&n];a+=d&15;var f=d>>>4;if(f<=15)s[u]=f,u++;else{var h=0,p=0;f==16?(p=3+c(o,a,2),a+=2,h=s[u-1]):f==17?(p=3+c(o,a,3),a+=3):f==18&&(p=11+c(o,a,7),a+=7);for(var g=u+p;u<g;)s[u]=h,u++}}return a},t.F._copyOut=function(r,n,i,o){for(var a=0,s=0,c=o.length>>>1;s<i;){var l=r[s+n];o[s<<1]=0,o[(s<<1)+1]=l,l>a&&(a=l),s++}for(;s<c;)o[s<<1]=0,o[(s<<1)+1]=0,s++;return a},t.F.makeCodes=function(r,n){for(var i=t.F.U,o=r.length,a,s,c,d,l,u=i.bl_count,d=0;d<=n;d++)u[d]=0;for(d=1;d<o;d+=2)u[r[d]]++;var f=i.next_code;for(a=0,u[0]=0,s=1;s<=n;s++)a=a+u[s-1]<<1,f[s]=a;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,a=t.F.U,s=a.rev15,c=0;c<o;c+=2)if(r[c+1]!=0)for(var l=c>>1,u=r[c+1],d=l<<4|u,f=n-u,h=r[c]<<f,p=h+(1<<f);h!=p;){var g=s[h]>>>15-n;i[g]=d,h++}},t.F.revCodes=function(r,n){for(var i=t.F.U.rev15,o=15-n,a=0;a<r.length;a+=2){var s=r[a]<<n-r[a+1];r[a]=i[s]>>>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 a(s,c,l){for(;c--!=0;)s.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];a(r.fltree,144,8),a(r.fltree,112,9),a(r.fltree,24,7),a(r.fltree,8,8),t.F.makeCodes(r.fltree,9),t.F.codes2map(r.fltree,9,r.flmap),t.F.revCodes(r.fltree,9),a(r.fdtree,32,5),t.F.makeCodes(r.fdtree,5),t.F.codes2map(r.fdtree,5,r.fdmap),t.F.revCodes(r.fdtree,5),a(r.itree,19,0),a(r.ltree,286,0),a(r.dtree,30,0),a(r.ttree,320,0)}()})(d_);var PA=d_.exports;const f_=un(PA);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const TA=4,p_=0,m_=1,OA=2;function pa(e){let t=e.length;for(;--t>=0;)e[t]=0}const AA=0,g_=1,NA=2,RA=3,jA=258,Df=29,ys=256,_s=ys+1+Df,ma=30,Ff=19,v_=2*_s+1,Eo=15,Mf=16,IA=7,Lf=256,y_=16,__=17,b_=18,Uf=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]),Zc=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]),DA=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),w_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),FA=512,wi=new Array((_s+2)*2);pa(wi);const bs=new Array(ma*2);pa(bs);const ws=new Array(FA);pa(ws);const xs=new Array(jA-RA+1);pa(xs);const zf=new Array(Df);pa(zf);const tu=new Array(ma);pa(tu);function Gf(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 x_,S_,$_;function Vf(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const k_=e=>e<256?ws[e]:ws[256+(e>>>7)],Ss=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Qr=(e,t,r)=>{e.bi_valid>Mf-r?(e.bi_buf|=t<<e.bi_valid&65535,Ss(e,e.bi_buf),e.bi_buf=t>>Mf-e.bi_valid,e.bi_valid+=r-Mf):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},ti=(e,t,r)=>{Qr(e,r[t*2],r[t*2+1])},E_=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},MA=e=>{e.bi_valid===16?(Ss(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)},LA=(e,t)=>{const r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let l,u,d,f,h,p,g=0;for(f=0;f<=Eo;f++)e.bl_count[f]=0;for(r[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<v_;l++)u=e.heap[l],f=r[r[u*2+1]*2+1]+1,f>c&&(f=c,g++),r[u*2+1]=f,!(u>n)&&(e.bl_count[f]++,h=0,u>=s&&(h=a[u-s]),p=r[u*2],e.opt_len+=p*(f+h),o&&(e.static_len+=p*(i[u*2+1]+h)));if(g!==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]--,g-=2}while(g>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],!(d>n)&&(r[d*2+1]!==f&&(e.opt_len+=(f-r[d*2+1])*r[d*2],r[d*2+1]=f),u--)}},C_=(e,t,r)=>{const n=new Array(Eo+1);let i=0,o,a;for(o=1;o<=Eo;o++)i=i+r[o-1]<<1,n[o]=i;for(a=0;a<=t;a++){let s=e[a*2+1];s!==0&&(e[a*2]=E_(n[s]++,s))}},UA=()=>{let e,t,r,n,i;const o=new Array(Eo+1);for(r=0,n=0;n<Df-1;n++)for(zf[n]=r,e=0;e<1<<Uf[n];e++)xs[r++]=n;for(xs[r-1]=n,i=0,n=0;n<16;n++)for(tu[n]=i,e=0;e<1<<Zc[n];e++)ws[i++]=n;for(i>>=7;n<ma;n++)for(tu[n]=i<<7,e=0;e<1<<Zc[n]-7;e++)ws[256+i++]=n;for(t=0;t<=Eo;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(C_(wi,_s+1,o),e=0;e<ma;e++)bs[e*2+1]=5,bs[e*2]=E_(e,5);x_=new Gf(wi,Uf,ys+1,_s,Eo),S_=new Gf(bs,Zc,0,ma,Eo),$_=new Gf(new Array(0),DA,0,Ff,IA)},P_=e=>{let t;for(t=0;t<_s;t++)e.dyn_ltree[t*2]=0;for(t=0;t<ma;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Ff;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Lf*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},T_=e=>{e.bi_valid>8?Ss(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},O_=(e,t,r,n)=>{const i=t*2,o=r*2;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]},Bf=(e,t,r)=>{const n=e.heap[r];let i=r<<1;for(;i<=e.heap_len&&(i<e.heap_len&&O_(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!O_(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n},A_=(e,t,r)=>{let n,i,o=0,a,s;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?ti(e,i,t):(a=xs[i],ti(e,a+ys+1,t),s=Uf[a],s!==0&&(i-=zf[a],Qr(e,i,s)),n--,a=k_(n),ti(e,a,r),s=Zc[a],s!==0&&(n-=tu[a],Qr(e,n,s)));while(o<e.sym_next);ti(e,Lf,t)},Hf=(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 a,s,c=-1,l;for(e.heap_len=0,e.heap_max=v_,a=0;a<o;a++)r[a*2]!==0?(e.heap[++e.heap_len]=c=a,e.depth[a]=0):r[a*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,a=e.heap_len>>1;a>=1;a--)Bf(e,r,a);l=o;do a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Bf(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=s,r[l*2]=r[a*2]+r[s*2],e.depth[l]=(e.depth[a]>=e.depth[s]?e.depth[a]:e.depth[s])+1,r[a*2+1]=r[s*2+1]=l,e.heap[1]=l++,Bf(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],LA(e,t),C_(r,c,e.bl_count)},N_=(e,t,r)=>{let n,i=-1,o,a=t[0*2+1],s=0,c=7,l=4;for(a===0&&(c=138,l=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)o=a,a=t[(n+1)*2+1],!(++s<c&&o===a)&&(s<l?e.bl_tree[o*2]+=s:o!==0?(o!==i&&e.bl_tree[o*2]++,e.bl_tree[y_*2]++):s<=10?e.bl_tree[__*2]++:e.bl_tree[b_*2]++,s=0,i=o,a===0?(c=138,l=3):o===a?(c=6,l=3):(c=7,l=4))},R_=(e,t,r)=>{let n,i=-1,o,a=t[0*2+1],s=0,c=7,l=4;for(a===0&&(c=138,l=3),n=0;n<=r;n++)if(o=a,a=t[(n+1)*2+1],!(++s<c&&o===a)){if(s<l)do ti(e,o,e.bl_tree);while(--s!==0);else o!==0?(o!==i&&(ti(e,o,e.bl_tree),s--),ti(e,y_,e.bl_tree),Qr(e,s-3,2)):s<=10?(ti(e,__,e.bl_tree),Qr(e,s-3,3)):(ti(e,b_,e.bl_tree),Qr(e,s-11,7));s=0,i=o,a===0?(c=138,l=3):o===a?(c=6,l=3):(c=7,l=4)}},zA=e=>{let t;for(N_(e,e.dyn_ltree,e.l_desc.max_code),N_(e,e.dyn_dtree,e.d_desc.max_code),Hf(e,e.bl_desc),t=Ff-1;t>=3&&e.bl_tree[w_[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},GA=(e,t,r,n)=>{let i;for(Qr(e,t-257,5),Qr(e,r-1,5),Qr(e,n-4,4),i=0;i<n;i++)Qr(e,e.bl_tree[w_[i]*2+1],3);R_(e,e.dyn_ltree,t-1),R_(e,e.dyn_dtree,r-1)},VA=e=>{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return p_;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return m_;for(r=32;r<ys;r++)if(e.dyn_ltree[r*2]!==0)return m_;return p_};let j_=!1;const BA=e=>{j_||(UA(),j_=!0),e.l_desc=new Vf(e.dyn_ltree,x_),e.d_desc=new Vf(e.dyn_dtree,S_),e.bl_desc=new Vf(e.bl_tree,$_),e.bi_buf=0,e.bi_valid=0,P_(e)},I_=(e,t,r,n)=>{Qr(e,(AA<<1)+(n?1:0),3),T_(e),Ss(e,r),Ss(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},HA=e=>{Qr(e,g_<<1,3),ti(e,Lf,wi),MA(e)},qA=(e,t,r,n)=>{let i,o,a=0;e.level>0?(e.strm.data_type===OA&&(e.strm.data_type=VA(e)),Hf(e,e.l_desc),Hf(e,e.d_desc),a=zA(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?I_(e,t,r,n):e.strategy===TA||o===i?(Qr(e,(g_<<1)+(n?1:0),3),A_(e,wi,bs)):(Qr(e,(NA<<1)+(n?1:0),3),GA(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),A_(e,e.dyn_ltree,e.dyn_dtree)),P_(e),n&&T_(e)},KA=(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[(xs[r]+ys+1)*2]++,e.dyn_dtree[k_(t)*2]++),e.sym_next===e.sym_end);var YA=BA,XA=I_,WA=qA,JA=KA,QA=HA,ZA={_tr_init:YA,_tr_stored_block:XA,_tr_flush_block:WA,_tr_tally:JA,_tr_align:QA},$s=(e,t,r,n)=>{let i=e&65535|0,o=e>>>16&65535|0,a=0;for(;r!==0;){a=r>2e3?2e3:r,r-=a;do i=i+t[n++]|0,o=o+i|0;while(--a);i%=65521,o%=65521}return i|o<<16|0};const t9=()=>{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},e9=new Uint32Array(t9());var wr=(e,t,r,n)=>{const i=e9,o=n+r;e^=-1;for(let a=n;a<o;a++)e=e>>>8^i[(e^t[a])&255];return e^-1},Co={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"},Po={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:r9,_tr_stored_block:qf,_tr_flush_block:n9,_tr_tally:Hi,_tr_align:i9}=ZA,{Z_NO_FLUSH:qi,Z_PARTIAL_FLUSH:o9,Z_FULL_FLUSH:a9,Z_FINISH:wn,Z_BLOCK:D_,Z_OK:Cr,Z_STREAM_END:F_,Z_STREAM_ERROR:ei,Z_DATA_ERROR:s9,Z_BUF_ERROR:Kf,Z_DEFAULT_COMPRESSION:l9,Z_FILTERED:c9,Z_HUFFMAN_ONLY:eu,Z_RLE:u9,Z_FIXED:h9,Z_DEFAULT_STRATEGY:d9,Z_UNKNOWN:f9,Z_DEFLATED:ru}=Po,p9=9,m9=15,g9=8,v9=29,y9=256,Yf=y9+1+v9,_9=30,b9=19,w9=2*Yf+1,x9=15,Se=3,Ki=258,ri=Ki+Se+1,S9=32,ga=42,Xf=57,Wf=69,Jf=73,Qf=91,Zf=103,To=113,ks=666,zr=1,va=2,Oo=3,ya=4,$9=3,Ao=(e,t)=>(e.msg=Co[t],t),M_=e=>e*2-(e>4?9:0),Yi=e=>{let t=e.length;for(;--t>=0;)e[t]=0},k9=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 E9=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask,Xi=E9;const hn=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))},dn=(e,t)=>{n9(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,hn(e.strm)},Re=(e,t)=>{e.pending_buf[e.pending++]=t},Es=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},tp=(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=$s(e.adler,t,i,r):e.state.wrap===2&&(e.adler=wr(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)},L_=(e,t)=>{let r=e.max_chain_length,n=e.strstart,i,o,a=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-ri?e.strstart-(e.w_size-ri):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+Ki;let h=l[n+a-1],p=l[n+a];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,!(l[i+a]!==p||l[i+a-1]!==h||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=Ki-(f-n),n=f-Ki,o>a){if(e.match_start=t,a=o,o>=s)break;h=l[n+a-1],p=l[n+a]}}while((t=d[t&u])>c&&--r!==0);return a<=e.lookahead?a: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-ri)&&(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),k9(e),n+=t),e.strm.avail_in===0)break;if(r=tp(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=r,e.lookahead+e.insert>=Se)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Xi(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Xi(e,e.ins_h,e.window[i+Se-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<Se)););}while(e.lookahead<ri&&e.strm.avail_in!==0)},U_=(e,t)=>{let r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,i,o,a=0,s=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!==wn||t===qi||n!==i+e.strm.avail_in)))break;a=t===wn&&n===i+e.strm.avail_in?1:0,qf(e,0,0,a),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,hn(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&&(tp(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(a===0);return s-=e.strm.avail_in,s&&(s>=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<=s&&(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-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),a?ya:t!==qi&&t!==wn&&e.strm.avail_in===0&&e.strstart===e.block_start?va:(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&&(tp(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===wn)&&t!==qi&&e.strm.avail_in===0&&i<=o)&&(n=i>o?o:i,a=t===wn&&e.strm.avail_in===0&&n===i?1:0,qf(e,e.block_start,n,a),e.block_start+=n,hn(e.strm)),a?Oo:zr)},ep=(e,t)=>{let r,n;for(;;){if(e.lookahead<ri){if(_a(e),e.lookahead<ri&&t===qi)return zr;if(e.lookahead===0)break}if(r=0,e.lookahead>=Se&&(e.ins_h=Xi(e,e.ins_h,e.window[e.strstart+Se-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-ri&&(e.match_length=L_(e,r)),e.match_length>=Se)if(n=Hi(e,e.strstart-e.match_start,e.match_length-Se),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Se){e.match_length--;do e.strstart++,e.ins_h=Xi(e,e.ins_h,e.window[e.strstart+Se-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=Xi(e,e.ins_h,e.window[e.strstart+1]);else n=Hi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(dn(e,!1),e.strm.avail_out===0))return zr}return e.insert=e.strstart<Se-1?e.strstart:Se-1,t===wn?(dn(e,!0),e.strm.avail_out===0?Oo:ya):e.sym_next&&(dn(e,!1),e.strm.avail_out===0)?zr:va},ba=(e,t)=>{let r,n,i;for(;;){if(e.lookahead<ri){if(_a(e),e.lookahead<ri&&t===qi)return zr;if(e.lookahead===0)break}if(r=0,e.lookahead>=Se&&(e.ins_h=Xi(e,e.ins_h,e.window[e.strstart+Se-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=Se-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-ri&&(e.match_length=L_(e,r),e.match_length<=5&&(e.strategy===c9||e.match_length===Se&&e.strstart-e.match_start>4096)&&(e.match_length=Se-1)),e.prev_length>=Se&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Se,n=Hi(e,e.strstart-1-e.prev_match,e.prev_length-Se),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Xi(e,e.ins_h,e.window[e.strstart+Se-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=Se-1,e.strstart++,n&&(dn(e,!1),e.strm.avail_out===0))return zr}else if(e.match_available){if(n=Hi(e,0,e.window[e.strstart-1]),n&&dn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return zr}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Hi(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Se-1?e.strstart:Se-1,t===wn?(dn(e,!0),e.strm.avail_out===0?Oo:ya):e.sym_next&&(dn(e,!1),e.strm.avail_out===0)?zr:va},C9=(e,t)=>{let r,n,i,o;const a=e.window;for(;;){if(e.lookahead<=Ki){if(_a(e),e.lookahead<=Ki&&t===qi)return zr;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Se&&e.strstart>0&&(i=e.strstart-1,n=a[i],n===a[++i]&&n===a[++i]&&n===a[++i])){o=e.strstart+Ki;do;while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);e.match_length=Ki-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Se?(r=Hi(e,1,e.match_length-Se),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Hi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(dn(e,!1),e.strm.avail_out===0))return zr}return e.insert=0,t===wn?(dn(e,!0),e.strm.avail_out===0?Oo:ya):e.sym_next&&(dn(e,!1),e.strm.avail_out===0)?zr:va},P9=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(_a(e),e.lookahead===0)){if(t===qi)return zr;break}if(e.match_length=0,r=Hi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(dn(e,!1),e.strm.avail_out===0))return zr}return e.insert=0,t===wn?(dn(e,!0),e.strm.avail_out===0?Oo:ya):e.sym_next&&(dn(e,!1),e.strm.avail_out===0)?zr:va};function ni(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 Cs=[new ni(0,0,0,0,U_),new ni(4,4,8,4,ep),new ni(4,5,16,8,ep),new ni(4,6,32,32,ep),new ni(4,4,16,16,ba),new ni(8,16,32,32,ba),new ni(8,16,128,128,ba),new ni(8,32,128,256,ba),new ni(32,128,258,1024,ba),new ni(32,258,258,4096,ba)],T9=e=>{e.window_size=2*e.w_size,Yi(e.head),e.max_lazy_match=Cs[e.level].max_lazy,e.good_match=Cs[e.level].good_length,e.nice_match=Cs[e.level].nice_length,e.max_chain_length=Cs[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Se-1,e.match_available=0,e.ins_h=0};function O9(){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=ru,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(w9*2),this.dyn_dtree=new Uint16Array((2*_9+1)*2),this.bl_tree=new Uint16Array((2*b9+1)*2),Yi(this.dyn_ltree),Yi(this.dyn_dtree),Yi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(x9+1),this.heap=new Uint16Array(2*Yf+1),Yi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Yf+1),Yi(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 Ps=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==ga&&t.status!==Xf&&t.status!==Wf&&t.status!==Jf&&t.status!==Qf&&t.status!==Zf&&t.status!==To&&t.status!==ks?1:0},z_=e=>{if(Ps(e))return Ao(e,ei);e.total_in=e.total_out=0,e.data_type=f9;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Xf:t.wrap?ga:To,e.adler=t.wrap===2?0:1,t.last_flush=-2,r9(t),Cr},G_=e=>{const t=z_(e);return t===Cr&&T9(e.state),t},A9=(e,t)=>Ps(e)||e.state.wrap!==2?ei:(e.state.gzhead=t,Cr),V_=(e,t,r,n,i,o)=>{if(!e)return ei;let a=1;if(t===l9&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>p9||r!==ru||n<8||n>15||t<0||t>9||o<0||o>h9||n===8&&a!==1)return Ao(e,ei);n===8&&(n=9);const s=new O9;return e.state=s,s.strm=e,s.status=ga,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+Se-1)/Se),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=t,s.strategy=o,s.method=r,G_(e)},N9=(e,t)=>V_(e,t,ru,m9,g9,d9),R9=(e,t)=>{if(Ps(e)||t>D_||t<0)return e?Ao(e,ei):ei;const r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===ks&&t!==wn)return Ao(e,e.avail_out===0?Kf:ei);const n=r.last_flush;if(r.last_flush=t,r.pending!==0){if(hn(e),e.avail_out===0)return r.last_flush=-1,Cr}else if(e.avail_in===0&&M_(t)<=M_(n)&&t!==wn)return Ao(e,Kf);if(r.status===ks&&e.avail_in!==0)return Ao(e,Kf);if(r.status===ga&&r.wrap===0&&(r.status=To),r.status===ga){let i=ru+(r.w_bits-8<<4)<<8,o=-1;if(r.strategy>=eu||r.level<2?o=0:r.level<6?o=1:r.level===6?o=2:o=3,i|=o<<6,r.strstart!==0&&(i|=S9),i+=31-i%31,Es(r,i),r.strstart!==0&&(Es(r,e.adler>>>16),Es(r,e.adler&65535)),e.adler=1,r.status=To,hn(e),r.pending!==0)return r.last_flush=-1,Cr}if(r.status===Xf){if(e.adler=0,Re(r,31),Re(r,139),Re(r,8),r.gzhead)Re(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)),Re(r,r.gzhead.time&255),Re(r,r.gzhead.time>>8&255),Re(r,r.gzhead.time>>16&255),Re(r,r.gzhead.time>>24&255),Re(r,r.level===9?2:r.strategy>=eu||r.level<2?4:0),Re(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(Re(r,r.gzhead.extra.length&255),Re(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=wr(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=Wf;else if(Re(r,0),Re(r,0),Re(r,0),Re(r,0),Re(r,0),Re(r,r.level===9?2:r.strategy>=eu||r.level<2?4:0),Re(r,$9),r.status=To,hn(e),r.pending!==0)return r.last_flush=-1,Cr}if(r.status===Wf){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 s=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+s),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>i&&(e.adler=wr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex+=s,hn(e),r.pending!==0)return r.last_flush=-1,Cr;i=0,o-=s}let a=new Uint8Array(r.gzhead.extra);r.pending_buf.set(a.subarray(r.gzindex,r.gzindex+o),r.pending),r.pending+=o,r.gzhead.hcrc&&r.pending>i&&(e.adler=wr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=Jf}if(r.status===Jf){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=wr(e.adler,r.pending_buf,r.pending-i,i)),hn(e),r.pending!==0)return r.last_flush=-1,Cr;i=0}r.gzindex<r.gzhead.name.length?o=r.gzhead.name.charCodeAt(r.gzindex++)&255:o=0,Re(r,o)}while(o!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=wr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=Qf}if(r.status===Qf){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=wr(e.adler,r.pending_buf,r.pending-i,i)),hn(e),r.pending!==0)return r.last_flush=-1,Cr;i=0}r.gzindex<r.gzhead.comment.length?o=r.gzhead.comment.charCodeAt(r.gzindex++)&255:o=0,Re(r,o)}while(o!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=wr(e.adler,r.pending_buf,r.pending-i,i))}r.status=Zf}if(r.status===Zf){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(hn(e),r.pending!==0))return r.last_flush=-1,Cr;Re(r,e.adler&255),Re(r,e.adler>>8&255),e.adler=0}if(r.status=To,hn(e),r.pending!==0)return r.last_flush=-1,Cr}if(e.avail_in!==0||r.lookahead!==0||t!==qi&&r.status!==ks){let i=r.level===0?U_(r,t):r.strategy===eu?P9(r,t):r.strategy===u9?C9(r,t):Cs[r.level].func(r,t);if((i===Oo||i===ya)&&(r.status=ks),i===zr||i===Oo)return e.avail_out===0&&(r.last_flush=-1),Cr;if(i===va&&(t===o9?i9(r):t!==D_&&(qf(r,0,0,!1),t===a9&&(Yi(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),hn(e),e.avail_out===0))return r.last_flush=-1,Cr}return t!==wn?Cr:r.wrap<=0?F_:(r.wrap===2?(Re(r,e.adler&255),Re(r,e.adler>>8&255),Re(r,e.adler>>16&255),Re(r,e.adler>>24&255),Re(r,e.total_in&255),Re(r,e.total_in>>8&255),Re(r,e.total_in>>16&255),Re(r,e.total_in>>24&255)):(Es(r,e.adler>>>16),Es(r,e.adler&65535)),hn(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?Cr:F_)},j9=e=>{if(Ps(e))return ei;const t=e.state.status;return e.state=null,t===To?Ao(e,s9):Cr},I9=(e,t)=>{let r=t.length;if(Ps(e))return ei;const n=e.state,i=n.wrap;if(i===2||i===1&&n.status!==ga||n.lookahead)return ei;if(i===1&&(e.adler=$s(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){i===0&&(Yi(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,a=e.next_in,s=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,_a(n);n.lookahead>=Se;){let c=n.strstart,l=n.lookahead-(Se-1);do n.ins_h=Xi(n,n.ins_h,n.window[c+Se-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=Se-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=Se-1,n.match_available=0,e.next_in=a,e.input=s,e.avail_in=o,n.wrap=i,Cr};var D9=N9,F9=V_,M9=G_,L9=z_,U9=A9,z9=R9,G9=j9,V9=I9,B9="pako deflate (from Nodeca project)",Ts={deflateInit:D9,deflateInit2:F9,deflateReset:M9,deflateResetKeep:L9,deflateSetHeader:U9,deflate:z9,deflateEnd:G9,deflateSetDictionary:V9,deflateInfo:B9};const H9=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var q9=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)H9(r,n)&&(e[n]=r[n])}}return e},K9=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 a=e[n];r.set(a,i),i+=a.length}return r},nu={assign:q9,flattenChunks:K9};let B_=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{B_=!1}const Os=new Uint8Array(256);for(let e=0;e<256;e++)Os[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Os[254]=Os[254]=1;var Y9=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,n,i,o,a=e.length,s=0;for(i=0;i<a;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<a&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(s),o=0,i=0;o<s;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<a&&(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 X9=(e,t)=>{if(t<65534&&e.subarray&&B_)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 W9=(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 a=e[n++];if(a<128){o[i++]=a;continue}let s=Os[a];if(s>4){o[i++]=65533,n+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&n<r;)a=a<<6|e[n++]&63,s--;if(s>1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return X9(o,i)},J9=(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+Os[e[r]]>t?r:t},As={string2buf:Y9,buf2string:W9,utf8border:J9};function Q9(){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 H_=Q9;const q_=Object.prototype.toString,{Z_NO_FLUSH:Z9,Z_SYNC_FLUSH:tN,Z_FULL_FLUSH:eN,Z_FINISH:rN,Z_OK:iu,Z_STREAM_END:nN,Z_DEFAULT_COMPRESSION:iN,Z_DEFAULT_STRATEGY:oN,Z_DEFLATED:aN}=Po;function Ns(e){this.options=nu.assign({level:iN,method:aN,chunkSize:16384,windowBits:15,memLevel:8,strategy:oN},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 H_,this.strm.avail_out=0;let r=Ts.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==iu)throw new Error(Co[r]);if(t.header&&Ts.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=As.string2buf(t.dictionary):q_.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,r=Ts.deflateSetDictionary(this.strm,n),r!==iu)throw new Error(Co[r]);this._dict_set=!0}}Ns.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?rN:Z9,typeof e=="string"?r.input=As.string2buf(e):q_.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===tN||o===eN)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(i=Ts.deflate(r,o),i===nN)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=Ts.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===iu;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},Ns.prototype.onData=function(e){this.chunks.push(e)},Ns.prototype.onEnd=function(e){e===iu&&(this.result=nu.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function rp(e,t){const r=new Ns(t);if(r.push(e,!0),r.err)throw r.msg||Co[r.err];return r.result}function sN(e,t){return t=t||{},t.raw=!0,rp(e,t)}function lN(e,t){return t=t||{},t.gzip=!0,rp(e,t)}var cN=Ns,uN=rp,hN=sN,dN=lN,fN=Po,pN={Deflate:cN,deflate:uN,deflateRaw:hN,gzip:dN,constants:fN};const ou=16209,mN=16191;var gN=function(e,t){let r,n,i,o,a,s,c,l,u,d,f,h,p,g,v,_,y,m,x,N,$,A,R,G;const H=e.state;r=e.next_in,R=e.input,n=r+(e.avail_in-5),i=e.next_out,G=e.output,o=i-(t-e.avail_out),a=i+(e.avail_out-257),s=H.dmax,c=H.wsize,l=H.whave,u=H.wnext,d=H.window,f=H.hold,h=H.bits,p=H.lencode,g=H.distcode,v=(1<<H.lenbits)-1,_=(1<<H.distbits)-1;t:do{h<15&&(f+=R[r++]<<h,h+=8,f+=R[r++]<<h,h+=8),y=p[f&v];e:for(;;){if(m=y>>>24,f>>>=m,h-=m,m=y>>>16&255,m===0)G[i++]=y&65535;else if(m&16){x=y&65535,m&=15,m&&(h<m&&(f+=R[r++]<<h,h+=8),x+=f&(1<<m)-1,f>>>=m,h-=m),h<15&&(f+=R[r++]<<h,h+=8,f+=R[r++]<<h,h+=8),y=g[f&_];r:for(;;){if(m=y>>>24,f>>>=m,h-=m,m=y>>>16&255,m&16){if(N=y&65535,m&=15,h<m&&(f+=R[r++]<<h,h+=8,h<m&&(f+=R[r++]<<h,h+=8)),N+=f&(1<<m)-1,N>s){e.msg="invalid distance too far back",H.mode=ou;break t}if(f>>>=m,h-=m,m=i-o,N>m){if(m=N-m,m>l&&H.sane){e.msg="invalid distance too far back",H.mode=ou;break t}if($=0,A=d,u===0){if($+=c-m,m<x){x-=m;do G[i++]=d[$++];while(--m);$=i-N,A=G}}else if(u<m){if($+=c+u-m,m-=u,m<x){x-=m;do G[i++]=d[$++];while(--m);if($=0,u<x){m=u,x-=m;do G[i++]=d[$++];while(--m);$=i-N,A=G}}}else if($+=u-m,m<x){x-=m;do G[i++]=d[$++];while(--m);$=i-N,A=G}for(;x>2;)G[i++]=A[$++],G[i++]=A[$++],G[i++]=A[$++],x-=3;x&&(G[i++]=A[$++],x>1&&(G[i++]=A[$++]))}else{$=i-N;do G[i++]=G[$++],G[i++]=G[$++],G[i++]=G[$++],x-=3;while(x>2);x&&(G[i++]=G[$++],x>1&&(G[i++]=G[$++]))}}else if(m&64){e.msg="invalid distance code",H.mode=ou;break t}else{y=g[(y&65535)+(f&(1<<m)-1)];continue r}break}}else if(m&64)if(m&32){H.mode=mN;break t}else{e.msg="invalid literal/length code",H.mode=ou;break t}else{y=p[(y&65535)+(f&(1<<m)-1)];continue e}break}}while(r<n&&i<a);x=h>>3,r-=x,h-=x<<3,f&=(1<<h)-1,e.next_in=r,e.next_out=i,e.avail_in=r<n?5+(n-r):5-(r-n),e.avail_out=i<a?257+(a-i):257-(i-a),H.hold=f,H.bits=h};const wa=15,K_=852,Y_=592,X_=0,np=1,W_=2,vN=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]),yN=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]),_N=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]),bN=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 Rs=(e,t,r,n,i,o,a,s)=>{const c=s.bits;let l=0,u=0,d=0,f=0,h=0,p=0,g=0,v=0,_=0,y=0,m,x,N,$,A,R=null,G;const H=new Uint16Array(wa+1),Y=new Uint16Array(wa+1);let J=null,nt,rt,lt;for(l=0;l<=wa;l++)H[l]=0;for(u=0;u<n;u++)H[t[r+u]]++;for(h=c,f=wa;f>=1&&H[f]===0;f--);if(h>f&&(h=f),f===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,s.bits=1,0;for(d=1;d<f&&H[d]===0;d++);for(h<d&&(h=d),v=1,l=1;l<=wa;l++)if(v<<=1,v-=H[l],v<0)return-1;if(v>0&&(e===X_||f!==1))return-1;for(Y[1]=0,l=1;l<wa;l++)Y[l+1]=Y[l]+H[l];for(u=0;u<n;u++)t[r+u]!==0&&(a[Y[t[r+u]]++]=u);if(e===X_?(R=J=a,G=20):e===np?(R=vN,J=yN,G=257):(R=_N,J=bN,G=0),y=0,u=0,l=d,A=o,p=h,g=0,N=-1,_=1<<h,$=_-1,e===np&&_>K_||e===W_&&_>Y_)return 1;for(;;){nt=l-g,a[u]+1<G?(rt=0,lt=a[u]):a[u]>=G?(rt=J[a[u]-G],lt=R[a[u]-G]):(rt=96,lt=0),m=1<<l-g,x=1<<p,d=x;do x-=m,i[A+(y>>g)+x]=nt<<24|rt<<16|lt|0;while(x!==0);for(m=1<<l-1;y&m;)m>>=1;if(m!==0?(y&=m-1,y+=m):y=0,u++,--H[l]===0){if(l===f)break;l=t[r+a[u]]}if(l>h&&(y&$)!==N){for(g===0&&(g=h),A+=d,p=l-g,v=1<<p;p+g<f&&(v-=H[p+g],!(v<=0));)p++,v<<=1;if(_+=1<<p,e===np&&_>K_||e===W_&&_>Y_)return 1;N=y&$,i[N]=h<<24|p<<16|A-o|0}}return y!==0&&(i[A+y]=l-g<<24|64<<16|0),s.bits=h,0};const wN=0,J_=1,Q_=2,{Z_FINISH:Z_,Z_BLOCK:xN,Z_TREES:au,Z_OK:No,Z_STREAM_END:SN,Z_NEED_DICT:$N,Z_STREAM_ERROR:Mn,Z_DATA_ERROR:tb,Z_MEM_ERROR:eb,Z_BUF_ERROR:kN,Z_DEFLATED:rb}=Po,su=16180,nb=16181,ib=16182,ob=16183,ab=16184,sb=16185,lb=16186,cb=16187,ub=16188,hb=16189,lu=16190,xi=16191,ip=16192,db=16193,op=16194,fb=16195,pb=16196,mb=16197,gb=16198,cu=16199,uu=16200,vb=16201,yb=16202,_b=16203,bb=16204,wb=16205,ap=16206,xb=16207,Sb=16208,tr=16209,$b=16210,kb=16211,EN=852,CN=592,PN=15,TN=PN,Eb=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function ON(){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 Ro=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<su||t.mode>kb?1:0},Cb=e=>{if(Ro(e))return Mn;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=su,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(EN),t.distcode=t.distdyn=new Int32Array(CN),t.sane=1,t.back=-1,No},Pb=e=>{if(Ro(e))return Mn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Cb(e)},Tb=(e,t)=>{let r;if(Ro(e))return Mn;const n=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Mn:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,Pb(e))},Ob=(e,t)=>{if(!e)return Mn;const r=new ON;e.state=r,r.strm=e,r.window=null,r.mode=su;const n=Tb(e,t);return n!==No&&(e.state=null),n},AN=e=>Ob(e,TN);let Ab=!0,sp,lp;const NN=e=>{if(Ab){sp=new Int32Array(512),lp=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(Rs(J_,e.lens,0,288,sp,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Rs(Q_,e.lens,0,32,lp,0,e.work,{bits:5}),Ab=!1}e.lencode=sp,e.lenbits=9,e.distcode=lp,e.distbits=5},Nb=(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},RN=(e,t)=>{let r,n,i,o,a,s,c,l,u,d,f,h,p,g,v=0,_,y,m,x,N,$,A,R;const G=new Uint8Array(4);let H,Y;const J=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ro(e)||!e.output||!e.input&&e.avail_in!==0)return Mn;r=e.state,r.mode===xi&&(r.mode=ip),a=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,l=r.hold,u=r.bits,d=s,f=c,R=No;t:for(;;)switch(r.mode){case su:if(r.wrap===0){r.mode=ip;break}for(;u<16;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if(r.wrap&2&&l===35615){r.wbits===0&&(r.wbits=15),r.check=0,G[0]=l&255,G[1]=l>>>8&255,r.check=wr(r.check,G,2,0),l=0,u=0,r.mode=nb;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=tr;break}if((l&15)!==rb){e.msg="unknown compression method",r.mode=tr;break}if(l>>>=4,u-=4,A=(l&15)+8,r.wbits===0&&(r.wbits=A),A>15||A>r.wbits){e.msg="invalid window size",r.mode=tr;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=l&512?hb:xi,l=0,u=0;break;case nb:for(;u<16;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if(r.flags=l,(r.flags&255)!==rb){e.msg="unknown compression method",r.mode=tr;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=tr;break}r.head&&(r.head.text=l>>8&1),r.flags&512&&r.wrap&4&&(G[0]=l&255,G[1]=l>>>8&255,r.check=wr(r.check,G,2,0)),l=0,u=0,r.mode=ib;case ib:for(;u<32;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}r.head&&(r.head.time=l),r.flags&512&&r.wrap&4&&(G[0]=l&255,G[1]=l>>>8&255,G[2]=l>>>16&255,G[3]=l>>>24&255,r.check=wr(r.check,G,4,0)),l=0,u=0,r.mode=ob;case ob:for(;u<16;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}r.head&&(r.head.xflags=l&255,r.head.os=l>>8),r.flags&512&&r.wrap&4&&(G[0]=l&255,G[1]=l>>>8&255,r.check=wr(r.check,G,2,0)),l=0,u=0,r.mode=ab;case ab:if(r.flags&1024){for(;u<16;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}r.length=l,r.head&&(r.head.extra_len=l),r.flags&512&&r.wrap&4&&(G[0]=l&255,G[1]=l>>>8&255,r.check=wr(r.check,G,2,0)),l=0,u=0}else r.head&&(r.head.extra=null);r.mode=sb;case sb:if(r.flags&1024&&(h=r.length,h>s&&(h=s),h&&(r.head&&(A=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+h),A)),r.flags&512&&r.wrap&4&&(r.check=wr(r.check,n,h,o)),s-=h,o+=h,r.length-=h),r.length))break t;r.length=0,r.mode=lb;case lb:if(r.flags&2048){if(s===0)break t;h=0;do A=n[o+h++],r.head&&A&&r.length<65536&&(r.head.name+=String.fromCharCode(A));while(A&&h<s);if(r.flags&512&&r.wrap&4&&(r.check=wr(r.check,n,h,o)),s-=h,o+=h,A)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=cb;case cb:if(r.flags&4096){if(s===0)break t;h=0;do A=n[o+h++],r.head&&A&&r.length<65536&&(r.head.comment+=String.fromCharCode(A));while(A&&h<s);if(r.flags&512&&r.wrap&4&&(r.check=wr(r.check,n,h,o)),s-=h,o+=h,A)break t}else r.head&&(r.head.comment=null);r.mode=ub;case ub:if(r.flags&512){for(;u<16;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if(r.wrap&4&&l!==(r.check&65535)){e.msg="header crc mismatch",r.mode=tr;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=xi;break;case hb:for(;u<32;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}e.adler=r.check=Eb(l),l=0,u=0,r.mode=lu;case lu:if(r.havedict===0)return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=l,r.bits=u,$N;e.adler=r.check=1,r.mode=xi;case xi:if(t===xN||t===au)break t;case ip:if(r.last){l>>>=u&7,u-=u&7,r.mode=ap;break}for(;u<3;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}switch(r.last=l&1,l>>>=1,u-=1,l&3){case 0:r.mode=db;break;case 1:if(NN(r),r.mode=cu,t===au){l>>>=2,u-=2;break t}break;case 2:r.mode=pb;break;case 3:e.msg="invalid block type",r.mode=tr}l>>>=2,u-=2;break;case db:for(l>>>=u&7,u-=u&7;u<32;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=tr;break}if(r.length=l&65535,l=0,u=0,r.mode=op,t===au)break t;case op:r.mode=fb;case fb:if(h=r.length,h){if(h>s&&(h=s),h>c&&(h=c),h===0)break t;i.set(n.subarray(o,o+h),a),s-=h,o+=h,c-=h,a+=h,r.length-=h;break}r.mode=xi;break;case pb:for(;u<14;){if(s===0)break t;s--,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=tr;break}r.have=0,r.mode=mb;case mb:for(;r.have<r.ncode;){for(;u<3;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}r.lens[J[r.have++]]=l&7,l>>>=3,u-=3}for(;r.have<19;)r.lens[J[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,H={bits:r.lenbits},R=Rs(wN,r.lens,0,19,r.lencode,0,r.work,H),r.lenbits=H.bits,R){e.msg="invalid code lengths set",r.mode=tr;break}r.have=0,r.mode=gb;case gb:for(;r.have<r.nlen+r.ndist;){for(;v=r.lencode[l&(1<<r.lenbits)-1],_=v>>>24,y=v>>>16&255,m=v&65535,!(_<=u);){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if(m<16)l>>>=_,u-=_,r.lens[r.have++]=m;else{if(m===16){for(Y=_+2;u<Y;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if(l>>>=_,u-=_,r.have===0){e.msg="invalid bit length repeat",r.mode=tr;break}A=r.lens[r.have-1],h=3+(l&3),l>>>=2,u-=2}else if(m===17){for(Y=_+3;u<Y;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}l>>>=_,u-=_,A=0,h=3+(l&7),l>>>=3,u-=3}else{for(Y=_+7;u<Y;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}l>>>=_,u-=_,A=0,h=11+(l&127),l>>>=7,u-=7}if(r.have+h>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=tr;break}for(;h--;)r.lens[r.have++]=A}}if(r.mode===tr)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=tr;break}if(r.lenbits=9,H={bits:r.lenbits},R=Rs(J_,r.lens,0,r.nlen,r.lencode,0,r.work,H),r.lenbits=H.bits,R){e.msg="invalid literal/lengths set",r.mode=tr;break}if(r.distbits=6,r.distcode=r.distdyn,H={bits:r.distbits},R=Rs(Q_,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,H),r.distbits=H.bits,R){e.msg="invalid distances set",r.mode=tr;break}if(r.mode=cu,t===au)break t;case cu:r.mode=uu;case uu:if(s>=6&&c>=258){e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=l,r.bits=u,gN(e,f),a=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,l=r.hold,u=r.bits,r.mode===xi&&(r.back=-1);break}for(r.back=0;v=r.lencode[l&(1<<r.lenbits)-1],_=v>>>24,y=v>>>16&255,m=v&65535,!(_<=u);){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if(y&&!(y&240)){for(x=_,N=y,$=m;v=r.lencode[$+((l&(1<<x+N)-1)>>x)],_=v>>>24,y=v>>>16&255,m=v&65535,!(x+_<=u);){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}l>>>=x,u-=x,r.back+=x}if(l>>>=_,u-=_,r.back+=_,r.length=m,y===0){r.mode=wb;break}if(y&32){r.back=-1,r.mode=xi;break}if(y&64){e.msg="invalid literal/length code",r.mode=tr;break}r.extra=y&15,r.mode=vb;case vb:if(r.extra){for(Y=r.extra;u<Y;){if(s===0)break t;s--,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=yb;case yb:for(;v=r.distcode[l&(1<<r.distbits)-1],_=v>>>24,y=v>>>16&255,m=v&65535,!(_<=u);){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if(!(y&240)){for(x=_,N=y,$=m;v=r.distcode[$+((l&(1<<x+N)-1)>>x)],_=v>>>24,y=v>>>16&255,m=v&65535,!(x+_<=u);){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}l>>>=x,u-=x,r.back+=x}if(l>>>=_,u-=_,r.back+=_,y&64){e.msg="invalid distance code",r.mode=tr;break}r.offset=m,r.extra=y&15,r.mode=_b;case _b:if(r.extra){for(Y=r.extra;u<Y;){if(s===0)break t;s--,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=tr;break}r.mode=bb;case bb:if(c===0)break t;if(h=f-c,r.offset>h){if(h=r.offset-h,h>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=tr;break}h>r.wnext?(h-=r.wnext,p=r.wsize-h):p=r.wnext-h,h>r.length&&(h=r.length),g=r.window}else g=i,p=a-r.offset,h=r.length;h>c&&(h=c),c-=h,r.length-=h;do i[a++]=g[p++];while(--h);r.length===0&&(r.mode=uu);break;case wb:if(c===0)break t;i[a++]=r.length,c--,r.mode=uu;break;case ap:if(r.wrap){for(;u<32;){if(s===0)break t;s--,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?wr(r.check,i,f,a-f):$s(r.check,i,f,a-f)),f=c,r.wrap&4&&(r.flags?l:Eb(l))!==r.check){e.msg="incorrect data check",r.mode=tr;break}l=0,u=0}r.mode=xb;case xb:if(r.wrap&&r.flags){for(;u<32;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if(r.wrap&4&&l!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=tr;break}l=0,u=0}r.mode=Sb;case Sb:R=SN;break t;case tr:R=tb;break t;case $b:return eb;case kb:default:return Mn}return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=l,r.bits=u,(r.wsize||f!==e.avail_out&&r.mode<tr&&(r.mode<ap||t!==Z_))&&Nb(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,r.total+=f,r.wrap&4&&f&&(e.adler=r.check=r.flags?wr(r.check,i,f,e.next_out-f):$s(r.check,i,f,e.next_out-f)),e.data_type=r.bits+(r.last?64:0)+(r.mode===xi?128:0)+(r.mode===cu||r.mode===op?256:0),(d===0&&f===0||t===Z_)&&R===No&&(R=kN),R},jN=e=>{if(Ro(e))return Mn;let t=e.state;return t.window&&(t.window=null),e.state=null,No},IN=(e,t)=>{if(Ro(e))return Mn;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,No):Mn},DN=(e,t)=>{const r=t.length;let n,i,o;return Ro(e)||(n=e.state,n.wrap!==0&&n.mode!==lu)?Mn:n.mode===lu&&(i=1,i=$s(i,t,r,0),i!==n.check)?tb:(o=Nb(e,t,r,r),o?(n.mode=$b,eb):(n.havedict=1,No))};var FN=Pb,MN=Tb,LN=Cb,UN=AN,zN=Ob,GN=RN,VN=jN,BN=IN,HN=DN,qN="pako inflate (from Nodeca project)",Si={inflateReset:FN,inflateReset2:MN,inflateResetKeep:LN,inflateInit:UN,inflateInit2:zN,inflate:GN,inflateEnd:VN,inflateGetHeader:BN,inflateSetDictionary:HN,inflateInfo:qN};function KN(){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 YN=KN;const Rb=Object.prototype.toString,{Z_NO_FLUSH:XN,Z_FINISH:WN,Z_OK:js,Z_STREAM_END:cp,Z_NEED_DICT:up,Z_STREAM_ERROR:JN,Z_DATA_ERROR:jb,Z_MEM_ERROR:QN}=Po;function Is(e){this.options=nu.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 H_,this.strm.avail_out=0;let r=Si.inflateInit2(this.strm,t.windowBits);if(r!==js)throw new Error(Co[r]);if(this.header=new YN,Si.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=As.string2buf(t.dictionary):Rb.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Si.inflateSetDictionary(this.strm,t.dictionary),r!==js)))throw new Error(Co[r])}Is.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?WN:XN,Rb.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=Si.inflate(r,a),o===up&&i&&(o=Si.inflateSetDictionary(r,i),o===js?o=Si.inflate(r,a):o===jb&&(o=up));r.avail_in>0&&o===cp&&r.state.wrap>0&&e[r.next_in]!==0;)Si.inflateReset(r),o=Si.inflate(r,a);switch(o){case JN:case jb:case up:case QN:return this.onEnd(o),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(r.avail_out===0||o===cp))if(this.options.to==="string"){let c=As.utf8border(r.output,r.next_out),l=r.next_out-c,u=As.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===js&&s===0)){if(o===cp)return o=Si.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0},Is.prototype.onData=function(e){this.chunks.push(e)},Is.prototype.onEnd=function(e){e===js&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=nu.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function hp(e,t){const r=new Is(t);if(r.push(e),r.err)throw r.msg||Co[r.err];return r.result}function ZN(e,t){return t=t||{},t.raw=!0,hp(e,t)}var t7=Is,e7=hp,r7=ZN,n7=hp,i7=Po,o7={Inflate:t7,inflate:e7,inflateRaw:r7,ungzip:n7,constants:i7};const{Deflate:a7,deflate:s7,deflateRaw:l7,gzip:c7}=pN,{Inflate:u7,inflate:h7,inflateRaw:d7,ungzip:f7}=o7;var p7=a7,m7=s7,g7=l7,v7=c7,y7=u7,_7=h7,b7=d7,w7=f7,x7=Po,S7={Deflate:p7,deflate:m7,deflateRaw:g7,gzip:v7,Inflate:y7,inflate:_7,inflateRaw:b7,ungzip:w7,constants:x7};const St={};St.toRGBA8=function(e){const t=e.width,r=e.height;if(e.tabs.acTL===null)return[St.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),a=new Uint8Array(i),s=new Uint8Array(i);for(let c=0;c<e.frames.length;c++){const l=e.frames[c],u=l.rect.x,d=l.rect.y,f=l.rect.width,h=l.rect.height,p=St.toRGBA8.decodeImage(l.data,f,h,e);if(c!==0)for(let g=0;g<i;g++)s[g]=o[g];if(l.blend===0?St._copyTile(p,f,h,o,t,r,u,d,0):l.blend===1&&St._copyTile(p,f,h,o,t,r,u,d,1),n.push(o.buffer.slice(0)),l.dispose===1)St._copyTile(a,f,h,o,t,r,u,d,0);else if(l.dispose===2)for(let g=0;g<i;g++)o[g]=s[g]}return n},St.toRGBA8.decodeImage=function(e,t,r,n){const i=t*r,o=St.decode._getBPP(n),a=Math.ceil(t*o/8),s=new Uint8Array(i*4),c=new Uint32Array(s.buffer),l=n.ctype,u=n.depth,d=St._bin.readUshort;if(l===6){const f=i<<2;if(u===8)for(let h=0;h<f;h+=4)s[h]=e[h],s[h+1]=e[h+1],s[h+2]=e[h+2],s[h+3]=e[h+3];if(u===16)for(let h=0;h<f;h++)s[h]=e[h<<1]}else if(l===2){const f=n.tabs.tRNS;if(f===null){if(u===8)for(let h=0;h<i;h++){const p=h*3;c[h]=255<<24|e[p+2]<<16|e[p+1]<<8|e[p]}if(u===16)for(let h=0;h<i;h++){const p=h*6;c[h]=255<<24|e[p+4]<<16|e[p+2]<<8|e[p]}}else{const h=f[0],p=f[1],g=f[2];if(u===8)for(let v=0;v<i;v++){const _=v<<2,y=v*3;c[v]=255<<24|e[y+2]<<16|e[y+1]<<8|e[y],e[y]===h&&e[y+1]===p&&e[y+2]===g&&(s[_+3]=0)}if(u===16)for(let v=0;v<i;v++){const _=v<<2,y=v*6;c[v]=255<<24|e[y+4]<<16|e[y+2]<<8|e[y],d(e,y)===h&&d(e,y+2)===p&&d(e,y+4)===g&&(s[_+3]=0)}}}else if(l===3){const f=n.tabs.PLTE,h=n.tabs.tRNS,p=h?h.length:0;if(u===1)for(let g=0;g<r;g++){const v=g*a,_=g*t;for(let y=0;y<t;y++){const m=_+y<<2,x=e[v+(y>>3)]>>7-((y&7)<<0)&1,N=3*x;s[m]=f[N],s[m+1]=f[N+1],s[m+2]=f[N+2],s[m+3]=x<p?h[x]:255}}if(u===2)for(let g=0;g<r;g++){const v=g*a,_=g*t;for(let y=0;y<t;y++){const m=_+y<<2,x=e[v+(y>>2)]>>6-((y&3)<<1)&3,N=3*x;s[m]=f[N],s[m+1]=f[N+1],s[m+2]=f[N+2],s[m+3]=x<p?h[x]:255}}if(u===4)for(let g=0;g<r;g++){const v=g*a,_=g*t;for(let y=0;y<t;y++){const m=_+y<<2,x=e[v+(y>>1)]>>4-((y&1)<<2)&15,N=3*x;s[m]=f[N],s[m+1]=f[N+1],s[m+2]=f[N+2],s[m+3]=x<p?h[x]:255}}if(u===8)for(let g=0;g<i;g++){const v=g<<2,_=e[g],y=3*_;s[v]=f[y],s[v+1]=f[y+1],s[v+2]=f[y+2],s[v+3]=_<p?h[_]:255}}else if(l===4){if(u===8)for(let f=0;f<i;f++){const h=f<<2,p=f<<1,g=e[p];s[h]=g,s[h+1]=g,s[h+2]=g,s[h+3]=e[p+1]}if(u===16)for(let f=0;f<i;f++){const h=f<<2,p=f<<2,g=e[p];s[h]=g,s[h+1]=g,s[h+2]=g,s[h+3]=e[p+2]}}else if(l===0){const f=n.tabs.tRNS?n.tabs.tRNS:-1;for(let h=0;h<r;h++){const p=h*a,g=h*t;if(u===1)for(let v=0;v<t;v++){const _=255*(e[p+(v>>>3)]>>>7-(v&7)&1),y=_===f*255?0:255;c[g+v]=y<<24|_<<16|_<<8|_}else if(u===2)for(let v=0;v<t;v++){const _=85*(e[p+(v>>>2)]>>>6-((v&3)<<1)&3),y=_===f*85?0:255;c[g+v]=y<<24|_<<16|_<<8|_}else if(u===4)for(let v=0;v<t;v++){const _=17*(e[p+(v>>>1)]>>>4-((v&1)<<2)&15),y=_===f*17?0:255;c[g+v]=y<<24|_<<16|_<<8|_}else if(u===8)for(let v=0;v<t;v++){const _=e[p+v],y=_===f?0:255;c[g+v]=y<<24|_<<16|_<<8|_}else if(u===16)for(let v=0;v<t;v++){const _=e[p+(v<<1)],y=d(e,p+(v<<1))===f?0:255;c[g+v]=y<<24|_<<16|_<<8|_}}}return s},St.decode=function(e){const t=new Uint8Array(e);let r=8;const n=St._bin,i=n.readUshort,o=n.readUint,a={tabs:{},frames:[]},s=new Uint8Array(t.length);let c=0,l,u=0;const d=[137,80,78,71,13,10,26,10];for(let f=0;f<8;f++)if(t[f]!==d[f])throw"The input is not a PNG file!";for(;r<t.length;){const f=n.readUint(t,r);r+=4;const h=n.readASCII(t,r,4);if(r+=4,h==="IHDR")St.decode._IHDR(t,r,a);else if(h==="CgBI")a.tabs[h]=t.slice(r,r+4);else if(h==="IDAT"){for(let p=0;p<f;p++)s[c+p]=t[r+p];c+=f}else if(h==="acTL")a.tabs[h]={num_frames:o(t,r),num_plays:o(t,r+4)},l=new Uint8Array(t.length);else if(h==="fcTL"){if(u!==0){const _=a.frames[a.frames.length-1];_.data=St.decode._decompress(a,l.slice(0,u),_.rect.width,_.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 g=i(t,r+22);g=i(t,r+20)/(g===0?100:g);const v={rect:p,delay:Math.round(g*1e3),dispose:t[r+24],blend:t[r+25]};a.frames.push(v)}else if(h==="fdAT"){for(let p=0;p<f-4;p++)l[u+p]=t[r+p+4];u+=f-4}else if(h==="pHYs")a.tabs[h]=[n.readUint(t,r),n.readUint(t,r+4),t[r+8]];else if(h==="cHRM"){a.tabs[h]=[];for(let p=0;p<8;p++)a.tabs[h].push(n.readUint(t,r+p*4))}else if(h==="tEXt"||h==="zTXt"){a.tabs[h]===null&&(a.tabs[h]={});const p=n.nextZero(t,r),g=n.readASCII(t,r,p-r);let v;const _=r+f-p-1;if(h==="tEXt")v=n.readASCII(t,p+1,_);else{const y=St.decode._inflate(t.slice(p+2,p+2+_));v=n.readUTF8(y,0,y.length)}a.tabs[h][g]=v}else if(h==="iTXt"){a.tabs[h]==null&&(a.tabs[h]={});let p=0,g=r;p=n.nextZero(t,g);const v=n.readASCII(t,g,p-g);g=p+1;const _=t[g];g+=2,p=n.nextZero(t,g),g=p+1,p=n.nextZero(t,g),g=p+1;let y;const m=f-(g-r);if(_===0)y=n.readUTF8(t,g,m);else{const x=St.decode._inflate(t.slice(g,g+m));y=n.readUTF8(x,0,x.length)}a.tabs[h][v]=y}else if(h==="PLTE")a.tabs[h]=n.readBytes(t,r,f);else if(h==="hIST"){const p=a.tabs.PLTE.length/3;a.tabs[h]=[];for(let g=0;g<p;g++)a.tabs[h].push(i(t,r+g*2))}else if(h==="tRNS")a.ctype===3?a.tabs[h]=n.readBytes(t,r,f):a.ctype===0?a.tabs[h]=i(t,r):a.ctype===2&&(a.tabs[h]=[i(t,r),i(t,r+2),i(t,r+4)]);else if(h==="gAMA")a.tabs[h]=n.readUint(t,r)/1e5;else if(h==="sRGB")a.tabs[h]=t[r];else if(h==="bKGD")a.ctype===0||a.ctype===4?a.tabs[h]=[i(t,r)]:a.ctype===2||a.ctype===6?a.tabs[h]=[i(t,r),i(t,r+2),i(t,r+4)]:a.ctype===3&&(a.tabs[h]=t[r]);else if(h==="IEND")break;r+=f,r+=4}if(u!==0){const f=a.frames[a.frames.length-1];f.data=St.decode._decompress(a,l.slice(0,u),f.rect.width,f.rect.height),u=0}return a.data=St.decode._decompress(a,s,a.width,a.height),delete a.compress,delete a.interlace,delete a.filter,a},St.decode._decompress=function(e,t,r,n){const i=St.decode._getBPP(e),o=Math.ceil(r*i/8),a=new Uint8Array((o+1+e.interlace)*n);return e.tabs.CgBI?t=St.inflateRaw(t,a):t=St.decode._inflate(t,a),e.interlace===0?t=St.decode._filterZero(t,e,0,r,n):e.interlace===1&&(t=St.decode._readInterlace(t,e)),t},St.decode._inflate=function(e,t){return St.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),t)},St.inflateRaw=function(){const e={};return e.H={},e.H.N=function(t,r){const n=Uint8Array;let i=0,o=0,a=0,s=0,c=0,l=0,u=0,d=0,f=0,h,p;if(t[0]===3&&t[1]===0)return r||new n(0);const g=e.H,v=g.b,_=g.e,y=g.R,m=g.n,x=g.A,N=g.Z,$=g.m,A=r===null;for(A&&(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 R=(f>>>3)+4,G=t[R-4]|t[R-3]<<8;A&&(r=e.H.W(r,d+G)),r.set(new n(t.buffer,t.byteOffset+R,G),d),f=R+G<<3,d+=G;continue}if(A&&(r=e.H.W(r,d+(1<<17))),o===1&&(h=$.J,p=$.h,l=511,u=31),o===2){a=_(t,f,5)+257,s=_(t,f+5,5)+1,c=_(t,f+10,4)+4,f+=14;let R=1;for(let Y=0;Y<38;Y+=2)$.Q[Y]=0,$.Q[Y+1]=0;for(let Y=0;Y<c;Y++){const J=_(t,f+Y*3,3);$.Q[($.X[Y]<<1)+1]=J,J>R&&(R=J)}f+=3*c,m($.Q,R),x($.Q,R,$.u),h=$.w,p=$.d,f=y($.u,(1<<R)-1,a+s,t,f,$.v);const G=g.V($.v,0,a,$.C);l=(1<<G)-1;const H=g.V($.v,a,s,$.D);u=(1<<H)-1,m($.C,G),x($.C,G,h),m($.D,H),x($.D,H,p)}for(;;){const R=h[N(t,f)&l];f+=R&15;const G=R>>>4;if(!(G>>>8))r[d++]=G;else{if(G===256)break;{let H=d+G-254;if(G>264){const lt=$.q[G-257];H=d+(lt>>>3)+_(t,f,lt&7),f+=lt&7}const Y=p[N(t,f)&u];f+=Y&15;const J=Y>>>4,nt=$.c[J],rt=(nt>>>4)+v(t,f,nt&15);for(f+=nt&15;d<H;)r[d]=r[d++-rt],r[d]=r[d++-rt],r[d]=r[d++-rt],r[d]=r[d++-rt];d=H}}}}return r.length===d?r:r.slice(0,d)},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,a){const s=e.H.e,c=e.H.Z;let l=0;for(;l<n;){const u=t[c(i,o)&r];o+=u&15;const d=u>>>4;if(d<=15)a[l]=d,l++;else{let f=0,h=0;d===16?(h=3+s(i,o,2),o+=2,f=a[l-1]):d===17?(h=3+s(i,o,3),o+=3):d===18&&(h=11+s(i,o,7),o+=7);const p=l+h;for(;l<p;)a[l]=f,l++}}return o},e.H.V=function(t,r,n,i){let o=0,a=0;const s=i.length>>>1;for(;a<n;){const c=t[a+r];i[a<<1]=0,i[(a<<1)+1]=c,c>o&&(o=c),a++}for(;a<s;)i[a<<1]=0,i[(a<<1)+1]=0,a++;return o},e.H.n=function(t,r){const n=e.H.m,i=t.length;let o,a,s,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 d=n.K;for(o=0,u[0]=0,a=1;a<=r;a++)o=o+u[a-1]<<1,d[a]=o;for(s=0;s<i;s+=2)l=t[s+1],l!==0&&(t[s]=d[l],d[l]++)},e.H.A=function(t,r,n){const i=t.length,o=e.H.m.r;for(let a=0;a<i;a+=2)if(t[a+1]!==0){const s=a>>1,c=t[a+1],l=s<<4|c,u=r-c;let d=t[a]<<u;const f=d+(1<<u);for(;d!==f;){const h=o[d]>>>15-r;n[h]=l,d++}}},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 a=t[o]<<r-t[o+1];t[o]=n[a]>>>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,a){for(;o--!==0;)i.push(0,a)}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._,112,9),n(t._,24,7),n(t._,8,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}(),St.decode._readInterlace=function(e,t){const r=t.width,n=t.height,i=St.decode._getBPP(t),o=i>>3,a=Math.ceil(r*i/8),s=new Uint8Array(n*a);let c=0;const l=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],d=[8,8,8,4,4,2,2],f=[8,8,4,4,2,2,1];let h=0;for(;h<7;){const p=d[h],g=f[h];let v=0,_=0,y=l[h];for(;y<n;)y+=p,_++;let m=u[h];for(;m<r;)m+=g,v++;const x=Math.ceil(v*i/8);St.decode._filterZero(e,t,c,v,_);let N=0,$=l[h];for(;$<n;){let A=u[h],R=c+N*x<<3;for(;A<r;){if(i===1){let G=e[R>>3];G=G>>7-(R&7)&1,s[$*a+(A>>3)]|=G<<7-((A&7)<<0)}if(i===2){let G=e[R>>3];G=G>>6-(R&7)&3,s[$*a+(A>>2)]|=G<<6-((A&3)<<1)}if(i===4){let G=e[R>>3];G=G>>4-(R&7)&15,s[$*a+(A>>1)]|=G<<4-((A&1)<<2)}if(i>=8){const G=$*a+A*o;for(let H=0;H<o;H++)s[G+H]=e[(R>>3)+H]}R+=i,A+=g}N++,$+=p}v*_!==0&&(c+=_*(1+x)),h=h+1}return s},St.decode._getBPP=function(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth},St.decode._filterZero=function(e,t,r,n,i){let o=St.decode._getBPP(t);const a=Math.ceil(n*o/8),s=St.decode._paeth;o=Math.ceil(o/8);let c=0,l=1,u=e[r],d=0;if(u>1&&(e[r]=[0,0,1][u-2]),u===3)for(d=o;d<a;d++)e[d+1]=e[d+1]+(e[d+1-o]>>>1)&255;for(let f=0;f<i;f++)if(c=r+f*a,l=c+f+1,u=e[l-1],d=0,u===0)for(;d<a;d++)e[c+d]=e[l+d];else if(u===1){for(;d<o;d++)e[c+d]=e[l+d];for(;d<a;d++)e[c+d]=e[l+d]+e[c+d-o]}else if(u===2)for(;d<a;d++)e[c+d]=e[l+d]+e[c+d-a];else if(u===3){for(;d<o;d++)e[c+d]=e[l+d]+(e[c+d-a]>>>1);for(;d<a;d++)e[c+d]=e[l+d]+(e[c+d-a]+e[c+d-o]>>>1)}else{for(;d<o;d++)e[c+d]=e[l+d]+s(0,e[c+d-a],0);for(;d<a;d++)e[c+d]=e[l+d]+s(e[c+d-o],e[c+d-a],e[c+d-o-a])}return e},St.decode._paeth=function(e,t,r){const n=e+t-r,i=n-e,o=n-t,a=n-r;return i*i<=o*o&&i*i<=a*a?e:o*o<=a*a?t:r},St.decode._IHDR=function(e,t,r){const n=St._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++},St._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+="%"+St._bin.pad(e[t+o].toString(16));try{i=decodeURIComponent(n)}catch{return St._bin.readASCII(e,t,r)}return i}},St._copyTile=function(e,t,r,n,i,o,a,s,c){const l=Math.min(t,i),u=Math.min(r,o);let d=0,f=0;for(let h=0;h<u;h++)for(let p=0;p<l;p++)if(a>=0&&s>=0?(d=h*t+p<<2,f=(s+h)*i+a+p<<2):(d=(-s+h)*t-a+p<<2,f=h*i+p<<2),c===0)n[f]=e[d],n[f+1]=e[d+1],n[f+2]=e[d+2],n[f+3]=e[d+3];else if(c===1){const g=e[d+3]*.00392156862745098,v=e[d]*g,_=e[d+1]*g,y=e[d+2]*g,m=n[f+3]*(1/255),x=n[f]*m,N=n[f+1]*m,$=n[f+2]*m,A=1-g,R=g+m*A,G=R===0?0:1/R;n[f+3]=255*R,n[f+0]=(v+x*A)*G,n[f+1]=(_+N*A)*G,n[f+2]=(y+$*A)*G}else if(c===2){const g=e[d+3],v=e[d],_=e[d+1],y=e[d+2],m=n[f+3],x=n[f],N=n[f+1],$=n[f+2];g===m&&v===x&&_===N&&y===$?(n[f]=0,n[f+1]=0,n[f+2]=0,n[f+3]=0):(n[f]=v,n[f+1]=_,n[f+2]=y,n[f+3]=g)}else if(c===3){const g=e[d+3],v=e[d],_=e[d+1],y=e[d+2],m=n[f+3],x=n[f],N=n[f+1],$=n[f+2];if(g===m&&v===x&&_===N&&y===$)continue;if(g<220&&m>20)return!1}return!0},St.encode=function(e,t,r,n,i,o,a){n===null&&(n=0),a===null&&(a=!1);const s=St.encode.compress(e,t,r,n,[!1,!1,!1,0,a]);return St.encode.compressPNG(s,-1),St.encode._main(s,t,r,i,o)},St.encodeLL=function(e,t,r,n,i,o,a,s){const c={ctype:0+(n===1?0:2)+(i===0?0:4),depth:o,frames:[]},l=(n+i)*o,u=l*t;for(let d=0;d<e.length;d++)c.frames.push({rect:{x:0,y:0,width:t,height:r},img:new Uint8Array(e[d]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(u/8)});return St.encode.compressPNG(c,0,!0),St.encode._main(c,t,r,a,s)},St.encode._main=function(e,t,r,n,i){i||(i={});const o=St.crc.crc,a=St._bin.writeUint,s=St._bin.writeUshort,c=St._bin.writeASCII;let l=8;const u=e.frames.length>1;let d=!1,f=33+(u?20:0);if(i.sRGB!==null&&i.sRGB!==void 0&&(f+=13),i.pHYs!==null&&i.pHYs!==void 0&&(f+=21),e.ctype===3){const v=e.plte.length;for(let _=0;_<v;_++)e.plte[_]>>>24!==255&&(d=!0);f+=8+v*3+4+(d?8+v*1+4:0)}for(let v=0;v<e.frames.length;v++){const _=e.frames[v];u&&(f+=38),f+=_.cimg.length+12,v!==0&&(f+=4)}f+=12;const h=new Uint8Array(f),p=[137,80,78,71,13,10,26,10];for(let v=0;v<8;v++)h[v]=p[v];if(a(h,l,13),l+=4,c(h,l,"IHDR"),l+=4,a(h,l,t),l+=4,a(h,l,r),l+=4,h[l]=e.depth,l++,h[l]=e.ctype,l++,h[l]=0,l++,h[l]=0,l++,h[l]=0,l++,a(h,l,o(h,l-17,17)),l+=4,i.sRGB!==null&&i.sRGB!==void 0&&(a(h,l,1),l+=4,c(h,l,"sRGB"),l+=4,h[l]=i.sRGB,l++,a(h,l,o(h,l-5,5)),l+=4),i.pHYs!==null&&i.pHYs!==void 0&&(a(h,l,9),l+=4,c(h,l,"pHYs"),l+=4,a(h,l,i.pHYs[0]),l+=4,a(h,l,i.pHYs[1]),l+=4,h[l]=i.pHYs[2],l++,a(h,l,o(h,l-13,13)),l+=4),u&&(a(h,l,8),l+=4,c(h,l,"acTL"),l+=4,a(h,l,e.frames.length),l+=4,a(h,l,i.loop!=null?i.loop:0),l+=4,a(h,l,o(h,l-12,12)),l+=4),e.ctype===3){const v=e.plte.length;a(h,l,v*3),l+=4,c(h,l,"PLTE"),l+=4;for(let _=0;_<v;_++){const y=_*3,m=e.plte[_],x=m&255,N=m>>>8&255,$=m>>>16&255;h[l+y+0]=x,h[l+y+1]=N,h[l+y+2]=$}if(l+=v*3,a(h,l,o(h,l-v*3-4,v*3+4)),l+=4,d){a(h,l,v),l+=4,c(h,l,"tRNS"),l+=4;for(let _=0;_<v;_++)h[l+_]=e.plte[_]>>>24&255;l+=v,a(h,l,o(h,l-v-4,v+4)),l+=4}}let g=0;for(let v=0;v<e.frames.length;v++){const _=e.frames[v];u&&(a(h,l,26),l+=4,c(h,l,"fcTL"),l+=4,a(h,l,g++),l+=4,a(h,l,_.rect.width),l+=4,a(h,l,_.rect.height),l+=4,a(h,l,_.rect.x),l+=4,a(h,l,_.rect.y),l+=4,s(h,l,n[v]),l+=2,s(h,l,1e3),l+=2,h[l]=_.dispose,l++,h[l]=_.blend,l++,a(h,l,o(h,l-30,30)),l+=4);const y=_.cimg,m=y.length;a(h,l,m+(v===0?0:4)),l+=4;const x=l;c(h,l,v===0?"IDAT":"fdAT"),l+=4,v!==0&&(a(h,l,g++),l+=4),h.set(y,l),l+=m,a(h,l,o(h,x,l-x)),l+=4}return a(h,l,0),l+=4,c(h,l,"IEND"),l+=4,a(h,l,o(h,l-4,4)),l+=4,h.buffer},St.encode.compressPNG=function(e,t,r){for(let n=0;n<e.frames.length;n++){const i=e.frames[n],o=i.rect.height,a=new Uint8Array(o*i.bpl+o);i.cimg=St.encode._filterZero(i.img,o,i.bpp,i.bpl,a,t,r)}},St.encode.compress=function(e,t,r,n,i){const o=i[0],a=i[1],s=i[2],c=i[3],l=i[4];let u=6,d=8,f=255;for(let m=0;m<e.length;m++){const x=new Uint8Array(e[m]),N=x.length;for(let $=0;$<N;$+=4)f&=x[$+3]}const h=f!==255,p=St.encode.framize(e,t,r,o,a,s),g={},v=[],_=[];if(n!==0){const m=[];for(let R=0;R<p.length;R++)m.push(p[R].img.buffer);const x=St.encode.concatRGBA(m),N=St.quantize(x,n);let $=0;const A=new Uint8Array(N.abuf);for(let R=0;R<p.length;R++){const G=p[R].img,H=G.length;_.push(new Uint8Array(N.inds.buffer,$>>2,H>>2));for(let Y=0;Y<H;Y+=4)G[Y]=A[$+Y],G[Y+1]=A[$+Y+1],G[Y+2]=A[$+Y+2],G[Y+3]=A[$+Y+3];$+=H}for(let R=0;R<N.plte.length;R++)v.push(N.plte[R].est.rgba)}else for(let m=0;m<p.length;m++){const x=p[m],N=new Uint32Array(x.img.buffer),$=x.rect.width,A=N.length,R=new Uint8Array(A);_.push(R);for(let G=0;G<A;G++){const H=N[G];if(G!==0&&H===N[G-1])R[G]=R[G-1];else if(G>$&&H===N[G-$])R[G]=R[G-$];else{let Y=g[H];if(Y===null&&(g[H]=Y=v.length,v.push(H),v.length>=300))break;R[G]=Y}}}const y=v.length;y<=256&&l===!1&&(y<=2?d=1:y<=4?d=2:y<=16?d=4:d=8,d=Math.max(d,c));for(let m=0;m<p.length;m++){const x=p[m],N=x.rect.width,$=x.rect.height;let A=x.img,R=4*N,G=4;if(y<=256&&l===!1){R=Math.ceil(d*N/8);const H=new Uint8Array(R*$),Y=_[m];for(let J=0;J<$;J++){const nt=J*R,rt=J*N;if(d===8)for(let lt=0;lt<N;lt++)H[nt+lt]=Y[rt+lt];else if(d===4)for(let lt=0;lt<N;lt++)H[nt+(lt>>1)]|=Y[rt+lt]<<4-(lt&1)*4;else if(d===2)for(let lt=0;lt<N;lt++)H[nt+(lt>>2)]|=Y[rt+lt]<<6-(lt&3)*2;else if(d===1)for(let lt=0;lt<N;lt++)H[nt+(lt>>3)]|=Y[rt+lt]<<7-(lt&7)*1}A=H,u=3,G=1}else if(h===!1&&p.length===1){const H=new Uint8Array(N*$*3),Y=N*$;for(let J=0;J<Y;J++){const nt=J*3,rt=J*4;H[nt]=A[rt],H[nt+1]=A[rt+1],H[nt+2]=A[rt+2]}A=H,u=2,G=3,R=3*N}x.img=A,x.bpl=R,x.bpp=G}return{ctype:u,depth:d,plte:v,frames:p}},St.encode.framize=function(e,t,r,n,i,o){const a=[];for(let s=0;s<e.length;s++){const c=new Uint8Array(e[s]),l=new Uint32Array(c.buffer);let u,d=0,f=0,h=t,p=r,g=n?1:0;if(s!==0){const v=o||n||s===1||a[s-2].dispose!==0?1:2;let _=0,y=1e9;for(let x=0;x<v;x++){const N=new Uint32Array(e[s-1-x]);let $=t,A=r,R=-1,G=-1;for(let Y=0;Y<r;Y++)for(let J=0;J<t;J++){const nt=Y*t+J;l[nt]!==N[nt]&&(J<$&&($=J),J>R&&(R=J),Y<A&&(A=Y),Y>G&&(G=Y))}R===-1&&($=A=R=G=0),i&&(($&1)===1&&$--,(A&1)===1&&A--);const H=(R-$+1)*(G-A+1);H<y&&(y=H,_=x,d=$,f=A,h=R-$+1,p=G-A+1)}const m=new Uint8Array(e[s-1-_]);_===1&&(a[s-1].dispose=2),u=new Uint8Array(h*p*4),St._copyTile(m,t,r,u,h,p,-d,-f,0),g=St._copyTile(c,t,r,u,h,p,-d,-f,3)?1:0,g===1?St.encode._prepareDiff(c,t,r,u,{x:d,y:f,width:h,height:p}):St._copyTile(c,t,r,u,h,p,-d,-f,0)}else u=c.slice(0);a.push({rect:{x:d,y:f,width:h,height:p},img:u,blend:g,dispose:0})}if(n)for(let s=0;s<a.length;s++){const c=a[s];if(c.blend===1)continue;const l=c.rect,u=a[s-1].rect,d=Math.min(l.x,u.x),f=Math.min(l.y,u.y),h=Math.max(l.x+l.width,u.x+u.width),p=Math.max(l.y+l.height,u.y+u.height),g={x:d,y:f,width:h-d,height:p-f};a[s-1].dispose=1,s-1!==0&&St.encode._updateFrame(e,t,r,a,s-1,g,i),St.encode._updateFrame(e,t,r,a,s,g,i)}return a},St.encode._updateFrame=function(e,t,r,n,i,o,a){const s=Uint8Array,c=Uint32Array,l=new s(e[i-1]),u=new c(e[i-1]),d=i+1<e.length?new s(e[i+1]):null,f=new s(e[i]),h=new c(f.buffer);let p=t,g=r,v=-1,_=-1;for(let m=0;m<o.height;m++)for(let x=0;x<o.width;x++){const N=o.x+x,$=o.y+m,A=$*t+N,R=h[A];R===0||n[i-1].dispose===0&&u[A]===R&&(d===null||d[A*4+3]!==0)||(N<p&&(p=N),N>v&&(v=N),$<g&&(g=$),$>_&&(_=$))}v===-1&&(p=g=v=_=0),a&&((p&1)===1&&p--,(g&1)===1&&g--),o={x:p,y:g,width:v-p+1,height:_-g+1};const y=n[i];y.rect=o,y.blend=1,y.img=new Uint8Array(o.width*o.height*4),n[i-1].dispose===0?(St._copyTile(l,t,r,y.img,o.width,o.height,-o.x,-o.y,0),St.encode._prepareDiff(f,t,r,y.img,o)):St._copyTile(f,t,r,y.img,o.width,o.height,-o.x,-o.y,0)},St.encode._prepareDiff=function(e,t,r,n,i){St._copyTile(e,t,r,n,i.width,i.height,-i.x,-i.y,2)},St.encode._filterZero=function(e,t,r,n,i,o,a){const s=[];let c=[0,1,2,3,4];o!==-1?c=[o]:(t*n>5e5||r===1)&&(c=[0]);let l;a&&(l={level:0});const u=i.length>1e7&&f_!=null?f_:S7;for(let h=0;h<c.length;h++){for(let p=0;p<t;p++)St.encode._filterLine(i,e,p,n,r,c[h]);s.push(u.deflate(i,l))}let d,f=1e9;for(let h=0;h<s.length;h++)s[h].length<f&&(d=h,f=s[h].length);return s[d]},St.encode._filterLine=function(e,t,r,n,i,o){const a=r*n;let s=a+r;const c=St.decode._paeth;if(e[s]=o,s++,o===0)if(n<500)for(let l=0;l<n;l++)e[s+l]=t[a+l];else e.set(new Uint8Array(t.buffer,a,n),s);else if(o===1){for(let l=0;l<i;l++)e[s+l]=t[a+l];for(let l=i;l<n;l++)e[s+l]=t[a+l]-t[a+l-i]+256&255}else if(r===0){for(let l=0;l<i;l++)e[s+l]=t[a+l];if(o===2)for(let l=i;l<n;l++)e[s+l]=t[a+l];if(o===3)for(let l=i;l<n;l++)e[s+l]=t[a+l]-(t[a+l-i]>>1)+256&255;if(o===4)for(let l=i;l<n;l++)e[s+l]=t[a+l]-c(t[a+l-i],0,0)+256&255}else{if(o===2)for(let l=0;l<n;l++)e[s+l]=t[a+l]+256-t[a+l-n]&255;if(o===3){for(let l=0;l<i;l++)e[s+l]=t[a+l]+256-(t[a+l-n]>>1)&255;for(let l=i;l<n;l++)e[s+l]=t[a+l]+256-(t[a+l-n]+t[a+l-i]>>1)&255}if(o===4){for(let l=0;l<i;l++)e[s+l]=t[a+l]+256-c(0,t[a+l-n],0)&255;for(let l=i;l<n;l++)e[s+l]=t[a+l]+256-c(t[a+l-i],t[a+l-n],t[a+l-i-n])&255}}},St.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=St.crc.table[(e^t[r+i])&255]^e>>>8;return e},crc:function(e,t,r){return St.crc.update(4294967295,e,t,r)^4294967295}},St.quantize=function(e,t){const r=new Uint8Array(e),n=r.slice(0),i=new Uint32Array(n.buffer),o=St.quantize.getKDtree(n,t),a=o[0],s=o[1],c=St.quantize.planeDst,l=r,u=i,d=l.length,f=new Uint8Array(r.length>>2);let h;if(r.length<2e7)for(let p=0;p<d;p+=4){const g=l[p]*.00392156862745098,v=l[p+1]*(1/255),_=l[p+2]*(1/255),y=l[p+3]*(1/255);h=St.quantize.getNearest(a,g,v,_,y),f[p>>2]=h.ind,u[p>>2]=h.est.rgba}else for(let p=0;p<d;p+=4){const g=l[p]*.00392156862745098,v=l[p+1]*(1/255),_=l[p+2]*(1/255),y=l[p+3]*(1/255);for(h=a;h.left;)h=c(h.est,g,v,_,y)<=0?h.left:h.right;f[p>>2]=h.ind,u[p>>2]=h.est.rgba}return{abuf:n.buffer,inds:f,plte:s}},St.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=St.quantize.stats(e,i.i0,i.i1),i.est=St.quantize.estats(i.bst);const o=[i];for(;o.length<t;){let a=0,s=0;for(let f=0;f<o.length;f++)o[f].est.L>a&&(a=o[f].est.L,s=f);if(a<r)break;const c=o[s],l=St.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=St.quantize.stats(e,u.i0,u.i1),u.est=St.quantize.estats(u.bst);const d={i0:l,i1:c.i1,bst:null,est:null,tdst:0,left:null,right:null};d.bst={R:[],m:[],N:c.bst.N-u.bst.N};for(let f=0;f<16;f++)d.bst.R[f]=c.bst.R[f]-u.bst.R[f];for(let f=0;f<4;f++)d.bst.m[f]=c.bst.m[f]-u.bst.m[f];d.est=St.quantize.estats(d.bst),c.left=u,c.right=d,o[s]=u,o.push(d)}o.sort(function(a,s){return s.bst.N-a.bst.N});for(let a=0;a<o.length;a++)o[a].ind=a;return[i,o]},St.quantize.getNearest=function(e,t,r,n,i){if(e.left==null)return e.tdst=St.quantize.dist(e.est.q,t,r,n,i),e;const o=St.quantize.planeDst(e.est,t,r,n,i);let a=e.left,s=e.right;o>0&&(a=e.right,s=e.left);const c=St.quantize.getNearest(a,t,r,n,i);if(c.tdst<=o*o)return c;const l=St.quantize.getNearest(s,t,r,n,i);return l.tdst<c.tdst?l:c},St.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},St.quantize.dist=function(e,t,r,n,i){const o=t-e[0],a=r-e[1],s=n-e[2],c=i-e[3];return o*o+a*a+s*s+c*c},St.quantize.splitPixels=function(e,t,r,n,i,o){const a=St.quantize.vecDot;for(n-=4;r<n;){for(;a(e,r,i)<=o;)r+=4;for(;a(e,n,i)>o;)n-=4;if(r>=n)break;const s=t[r>>2];t[r>>2]=t[n>>2],t[n>>2]=s,r+=4,n-=4}for(;a(e,r,i)>o;)r-=4;return r+4},St.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]},St.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 a=t;a<r;a+=4){const s=e[a]*.00392156862745098,c=e[a+1]*(1/255),l=e[a+2]*(1/255),u=e[a+3]*(1/255);i[0]+=s,i[1]+=c,i[2]+=l,i[3]+=u,n[0]+=s*s,n[1]+=s*c,n[2]+=s*l,n[3]+=s*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}},St.quantize.estats=function(e){const t=e.R,r=e.m,n=e.N,i=r[0],o=r[1],a=r[2],s=r[3],c=n===0?0:1/n,l=[t[0]-i*i*c,t[1]-i*o*c,t[2]-i*a*c,t[3]-i*s*c,t[4]-o*i*c,t[5]-o*o*c,t[6]-o*a*c,t[7]-o*s*c,t[8]-a*i*c,t[9]-a*o*c,t[10]-a*a*c,t[11]-a*s*c,t[12]-s*i*c,t[13]-s*o*c,t[14]-s*a*c,t[15]-s*s*c],u=l,d=St.M4;let f=[Math.random(),Math.random(),Math.random(),Math.random()],h=0,p=0;if(n!==0)for(let _=0;_<16&&(f=d.multVec(u,f),p=Math.sqrt(d.dot(f,f)),f=d.sml(1/p,f),!(_!==0&&Math.abs(p-h)<1e-9));_++)h=p;const g=[i*c,o*c,a*c,s*c],v=d.dot(d.sml(255,g),f);return{Cov:l,q:g,e:f,L:h,eMq255:v,eMq:d.dot(f,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0])<<0)>>>0}},St.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]]}},St.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]),a=o.length;for(let s=0;s<a;s+=4){let c=o[s],l=o[s+1],u=o[s+2];const d=o[s+3];d===0&&(c=l=u=0),r[n+s]=c,r[n+s+1]=l,r[n+s+2]=u,r[n+s+3]=d}n+=a}return r.buffer};const ii={glog:function(e){if(e<1)throw new Error("glog("+e+")");return ii.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return ii.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(let e=0;e<8;e++)ii.EXP_TABLE[e]=1<<e;for(let e=8;e<256;e++)ii.EXP_TABLE[e]=ii.EXP_TABLE[e-4]^ii.EXP_TABLE[e-5]^ii.EXP_TABLE[e-6]^ii.EXP_TABLE[e-8];for(let e=0;e<255;e++)ii.LOG_TABLE[ii.EXP_TABLE[e]]=e;let Ds;typeof self>"u"&&typeof process<"u"&&process.hrtime?Ds=function(){const e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Ds=self.performance.now.bind(self.performance):Date.now!==void 0?Ds=Date.now:Ds=function(){return new Date().getTime()};const $7=Ds;let k7=class{constructor(){jt(this,"_tweens",{});jt(this,"_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=$7(),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 oi=new k7;oi.getAll.bind(oi),oi.removeAll.bind(oi),oi.add.bind(oi),oi.remove.bind(oi),oi.update.bind(oi);function Ib(e){switch(e){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-in-out":return[.42,0,.58,1];case"ease-out":return[0,0,.58,1]}}const E7={attributeName:["display"],values:[["block","block"]]},Zr={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class Db{constructor(){jt(this,"currentAnimateName");jt(this,"objects",[]);jt(this,"actions",[])}hasObjects(){return this.objects.length>0}fromDOM(t){return Array.isArray(t)||(t=[t]),this.objects=[],t.forEach(r=>{const n=bi(r);this.objects.push({width:parseFloat(n.css("width")),height:parseFloat(n.css("height")),dom:n,el:r,originCSSObject:n.css()})}),this}toCSS(t,...r){var o;if(!this.hasObjects())return;switch(this.currentAnimateName=t,this[t](...r),(o=this.objects[0].dom)==null||o.parent().css({position:"relative",perspective:"1000px",overflow:"hidden"}),t){default:this.objects.forEach((a,s)=>{var c;(c=a.dom)==null||c.css({position:"absolute","z-index":String(1e3+s),"transform-style":"preserve-3d","backface-visibility":"hidden"})});break}let n=0;const i=()=>{this.actions.forEach((a,s)=>{var p;const c=this.objects[a.objectIndex];let l=[],u=[];Array.isArray(a.attributeName)?(l=a.attributeName,u=a.values):a.attributeName&&(l=[a.attributeName],u=[a.values]);const d=a.keyTimes.length,f=Xc(((p=c.dom)==null?void 0:p.css("transform"))??"");let h=a.begin;a.keyTimes.forEach((g,v)=>{var y;const _={_matrix:f};l.forEach((m,x)=>{const N=u[x][a.direction=="reverse"?d-v-1:v];this._transformAttributeToCSSObjectUseMatrix(m,N,_)}),v==0?(y=c.dom)==null||y.css(Object.assign(_,{transition:""})):(setTimeout(()=>{var m;(m=c.dom)==null||m.css(Object.assign(_,{transition:`all ${a.realKeyTimes[v]}ms cubic-bezier(${a.keySplines[v-1].join(",")})`}))},h),h+=a.realKeyTimes[v])}),setTimeout(()=>{var g;a.fill==="remove"&&((g=c.dom)==null||g.css(c.originCSSObject??{})),s==this.actions.length-1&&(typeof a.repeatCount=="number"&&++n<a.repeatCount||a.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentAnimateName===t&&i()})},a.begin+a.dur)})};i()}_transformAttributeToCSSObjectUseMatrix(t,r,n={}){switch(t){case"translateTo":n._matrix.translateTo(r[0]??0,r[1]??0);break;case"translate":n._matrix.translate(r[0]??0,r[1]??0);break;case"rotate":n._matrix.rotate(r??0);break;case"rotateXTo":n._matrix.rotateXTo(r??0);break;case"rotateYTo":n._matrix.rotateYTo(r??0);break;case"scaleTo":typeof r=="number"?n._matrix.scaleTo(r??1):n._matrix.scaleTo(r[0]??1,r[1]??1);break;case"scale":typeof r=="number"?n._matrix.scale(r??1):n._matrix.scale(r[0]??1,r[1]??1);break;case"scaleX":n._matrix.scale(r??1,1);break;case"scaleY":n._matrix.scale(1,r??1);break;default:Object.assign(n,{[t]:`${r??""}`});break}return Object.assign(n,{transform:n._matrix.toString()}),n}_addAction(t,r=!1){return this.actions=r?[]:this.actions,Array.isArray(t)||(t=[t]),t.forEach(n=>{this.actions.push(Object.assign(n,{realKeyTimes:n.keyTimes.map(i=>n.dur*i)}))}),this}_addAnimate(t=E7,r=Zr,n=0,i=!1){const o=r.keyTimes??[0,1],a=[];return o.forEach((s,c)=>{c>0&&a.push(Ib(r.easeName??"linear"))}),this._addAction({objectIndex:n,attributeName:t.attributeName,values:t.values,begin:r.begin??0,dur:r.dur??300,keyTimes:o,keySplines:a,repeatCount:r.repeatCount??1,direction:r.direction??"normal",fill:r.fill??"freeze"},i),this}_predefinedAnimate(t,r,n,i,o=Zr,a=this.objects.length-1){let s=!0,c=!1,l=!1,u=!1;const d=this.objects.length;a=(a+d)%d;const f=(a-1+d)%d,h=(a+1+d)%d,p=this.objects[a],g=this.objects[f],v=this.objects[h];if(g&&f!==a){const _=t(g);_&&(this._addAnimate(_,o,f,s),s=!1,c=!0)}if(p){const _=r(p);_&&(this._addAnimate(_,o,a,s),s=!1,l=!0)}if(v&&h!==a){const _=n(v);_&&(this._addAnimate(_,o,h,s),s=!1,u=!0)}this.objects.forEach((_,y)=>{if(!(y==f&&c||y==a&&l||y==h&&u)){const m=i(_);m&&(this._addAnimate(m,o,y,s),s=!1)}})}flip(t=Zr,r=this.objects.length-1){var p,g,v,_,y,m,x,N,$,A,R;const n=r-1,i=this.objects[n],o=this.objects[r],a=Xc(((p=o.dom)==null?void 0:p.css("transform"))??""),s=a.clone();(g=i.dom)==null||g.show(),(v=i.dom)==null||v.css("opacity","1");const c=(_=i.el)==null?void 0:_.getBoundingClientRect();(y=i.dom)==null||y.css("opacity","0"),(m=o.dom)==null||m.show(),(x=o.dom)==null||x.css("opacity","1");const l=(N=o.el)==null?void 0:N.getBoundingClientRect(),u=($=i.dom)==null?void 0:$.css("background-color"),d=(A=o.dom)==null?void 0:A.css("background-color");s.translate(((c==null?void 0:c.left)??0)-((l==null?void 0:l.left)??0),((c==null?void 0:c.top)??0)-((l==null?void 0:l.top)??0)),s.scale(((c==null?void 0:c.width)??1)/((l==null?void 0:l.width)??1),((c==null?void 0:c.height)??1)/((l==null?void 0:l.height)??1));const f={transform:s.toString(),transition:""};u&&Object.assign(f,{"background-color":u}),(R=o.dom)==null||R.css(f);const h={transform:a.toString(),transition:`all ${t.dur}ms cubic-bezier(${Ib(t.easeName??"linear").join(",")})`};d&&Object.assign(h,{"background-color":d}),setTimeout(()=>{var G;(G=o.dom)==null||G.css(h)},t.begin)}slideLeft(t=Zr,r=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["translateTo"],values:[[[0,0],[-n.width,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[n.width,0],[0,0]]]}),n=>{},n=>({attributeName:["translateTo"],values:[[[-n.width,0],[-n.width,0]]]}),t,r)}slideRight(t=Zr,r=this.objects.length-1){this._predefinedAnimate(n=>{},n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-n.width,0],[0,0]]]}),n=>({attributeName:["translateTo"],values:[[[0,0],[n.width,0]]]}),n=>({attributeName:["translateTo"],values:[[[n.width,0],[n.width,0]]]}),t,r)}slideDown(t=Zr,r=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["translateTo"],values:[[[0,0],[0,n.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-n.height],[0,0]]]}),n=>{},n=>({attributeName:["translateTo"],values:[[[0,n.height],[0,n.height]]]}),t,r)}slideUp(t=Zr,r=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["translateTo"],values:[[[0,0],[0,-n.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,n.height],[0,0]]]}),n=>{},n=>({attributeName:["translateTo"],values:[[[0,-n.height],[0,-n.height]]]}),t,r)}flipLeft(t=Zr,r=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),t,r)}flipRight(t=Zr,r=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),t,r)}flipDown(t=Zr,r=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),t,r)}flipUp(t=Zr,r=this.objects.length-1){this._predefinedAnimate(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),t,r)}popIn(t=Zr,r=this.objects.length-1){this._predefinedAnimate(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),t,r)}popOut(t=Zr,r=this.objects.length-1){this._predefinedAnimate(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]]}),t,r)}rotate(t=Zr,r=this.objects.length-1){Object.assign(t,{keyTimes:[0,1]});const n=t.degree??360;this._predefinedAnimate(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,n]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]]}),t,r)}}var Fb=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=Fb,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 Mb=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);Mb!==null?window.webrtcDetectedVersion=parseInt(Mb[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=Fb,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 dp={exports:{}},Fs={},fp={},pp={};(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 Sf<"u"?Sf: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)})(pp);const C7=un(pp),P7=Wt({__proto__:null,default:C7},[pp]),ye=Jt(P7);var mp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=ye;class r{constructor(x=[1,0,0,1,0,0]){this.dirty=!1,this.m=x&&x.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(x){x.m[0]=this.m[0],x.m[1]=this.m[1],x.m[2]=this.m[2],x.m[3]=this.m[3],x.m[4]=this.m[4],x.m[5]=this.m[5]}point(x){var N=this.m;return{x:N[0]*x.x+N[2]*x.y+N[4],y:N[1]*x.x+N[3]*x.y+N[5]}}translate(x,N){return this.m[4]+=this.m[0]*x+this.m[2]*N,this.m[5]+=this.m[1]*x+this.m[3]*N,this}scale(x,N){return this.m[0]*=x,this.m[1]*=x,this.m[2]*=N,this.m[3]*=N,this}rotate(x){var N=Math.cos(x),$=Math.sin(x),A=this.m[0]*N+this.m[2]*$,R=this.m[1]*N+this.m[3]*$,G=this.m[0]*-$+this.m[2]*N,H=this.m[1]*-$+this.m[3]*N;return this.m[0]=A,this.m[1]=R,this.m[2]=G,this.m[3]=H,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(x,N){var $=this.m[0]+this.m[2]*N,A=this.m[1]+this.m[3]*N,R=this.m[2]+this.m[0]*x,G=this.m[3]+this.m[1]*x;return this.m[0]=$,this.m[1]=A,this.m[2]=R,this.m[3]=G,this}multiply(x){var N=this.m[0]*x.m[0]+this.m[2]*x.m[1],$=this.m[1]*x.m[0]+this.m[3]*x.m[1],A=this.m[0]*x.m[2]+this.m[2]*x.m[3],R=this.m[1]*x.m[2]+this.m[3]*x.m[3],G=this.m[0]*x.m[4]+this.m[2]*x.m[5]+this.m[4],H=this.m[1]*x.m[4]+this.m[3]*x.m[5]+this.m[5];return this.m[0]=N,this.m[1]=$,this.m[2]=A,this.m[3]=R,this.m[4]=G,this.m[5]=H,this}invert(){var x=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),N=this.m[3]*x,$=-this.m[1]*x,A=-this.m[2]*x,R=this.m[0]*x,G=x*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),H=x*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=N,this.m[1]=$,this.m[2]=A,this.m[3]=R,this.m[4]=G,this.m[5]=H,this}getMatrix(){return this.m}decompose(){var x=this.m[0],N=this.m[1],$=this.m[2],A=this.m[3],R=this.m[4],G=this.m[5],H=x*A-N*$;let Y={x:R,y:G,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(x!=0||N!=0){var J=Math.sqrt(x*x+N*N);Y.rotation=N>0?Math.acos(x/J):-Math.acos(x/J),Y.scaleX=J,Y.scaleY=H/J,Y.skewX=(x*$+N*A)/H,Y.skewY=0}else if($!=0||A!=0){var nt=Math.sqrt($*$+A*A);Y.rotation=Math.PI/2-(A>0?Math.acos(-$/nt):-Math.acos($/nt)),Y.scaleX=H/nt,Y.scaleY=nt,Y.skewX=0,Y.skewY=(x*$+N*A)/H}return Y.rotation=e.Util._getRotation(Y.rotation),Y}}e.Transform=r;var n="[object Array]",i="[object Number]",o="[object String]",a="[object Boolean]",s=Math.PI/180,c=180/Math.PI,l="#",u="",d="0",f="Konva warning: ",h="Konva error: ",p="rgb(",g={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})\)/,_=[];const y=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(m){setTimeout(m,60)};e.Util={_isElement(m){return!!(m&&m.nodeType==1)},_isFunction(m){return!!(m&&m.constructor&&m.call&&m.apply)},_isPlainObject(m){return!!m&&m.constructor===Object},_isArray(m){return Object.prototype.toString.call(m)===n},_isNumber(m){return Object.prototype.toString.call(m)===i&&!isNaN(m)&&isFinite(m)},_isString(m){return Object.prototype.toString.call(m)===o},_isBoolean(m){return Object.prototype.toString.call(m)===a},isObject(m){return m instanceof Object},isValidSelector(m){if(typeof m!="string")return!1;var x=m[0];return x==="#"||x==="."||x===x.toUpperCase()},_sign(m){return m===0||m>0?1:-1},requestAnimFrame(m){_.push(m),_.length===1&&y(function(){const x=_;_=[],x.forEach(function(N){N()})})},createCanvasElement(){var m=document.createElement("canvas");try{m.style=m.style||{}}catch{}return m},createImageElement(){return document.createElement("img")},_isInDocument(m){for(;m=m.parentNode;)if(m==document)return!0;return!1},_urlToImage(m,x){var N=e.Util.createImageElement();N.onload=function(){x(N)},N.src=m},_rgbToHex(m,x,N){return((1<<24)+(m<<16)+(x<<8)+N).toString(16).slice(1)},_hexToRgb(m){m=m.replace(l,u);var x=parseInt(m,16);return{r:x>>16&255,g:x>>8&255,b:x&255}},getRandomColor(){for(var m=(Math.random()*16777215<<0).toString(16);m.length<6;)m=d+m;return l+m},getRGB(m){var x;return m in g?(x=g[m],{r:x[0],g:x[1],b:x[2]}):m[0]===l?this._hexToRgb(m.substring(1)):m.substr(0,4)===p?(x=v.exec(m.replace(/ /g,"")),{r:parseInt(x[1],10),g:parseInt(x[2],10),b:parseInt(x[3],10)}):{r:0,g:0,b:0}},colorToRGBA(m){return m=m||"black",e.Util._namedColorToRBA(m)||e.Util._hex3ColorToRGBA(m)||e.Util._hex4ColorToRGBA(m)||e.Util._hex6ColorToRGBA(m)||e.Util._hex8ColorToRGBA(m)||e.Util._rgbColorToRGBA(m)||e.Util._rgbaColorToRGBA(m)||e.Util._hslColorToRGBA(m)},_namedColorToRBA(m){var x=g[m.toLowerCase()];return x?{r:x[0],g:x[1],b:x[2],a:1}:null},_rgbColorToRGBA(m){if(m.indexOf("rgb(")===0){m=m.match(/rgb\(([^)]+)\)/)[1];var x=m.split(/ *, */).map(Number);return{r:x[0],g:x[1],b:x[2],a:1}}},_rgbaColorToRGBA(m){if(m.indexOf("rgba(")===0){m=m.match(/rgba\(([^)]+)\)/)[1];var x=m.split(/ *, */).map((N,$)=>N.slice(-1)==="%"?$===3?parseInt(N)/100:parseInt(N)/100*255:Number(N));return{r:x[0],g:x[1],b:x[2],a:x[3]}}},_hex8ColorToRGBA(m){if(m[0]==="#"&&m.length===9)return{r:parseInt(m.slice(1,3),16),g:parseInt(m.slice(3,5),16),b:parseInt(m.slice(5,7),16),a:parseInt(m.slice(7,9),16)/255}},_hex6ColorToRGBA(m){if(m[0]==="#"&&m.length===7)return{r:parseInt(m.slice(1,3),16),g:parseInt(m.slice(3,5),16),b:parseInt(m.slice(5,7),16),a:1}},_hex4ColorToRGBA(m){if(m[0]==="#"&&m.length===5)return{r:parseInt(m[1]+m[1],16),g:parseInt(m[2]+m[2],16),b:parseInt(m[3]+m[3],16),a:parseInt(m[4]+m[4],16)/255}},_hex3ColorToRGBA(m){if(m[0]==="#"&&m.length===4)return{r:parseInt(m[1]+m[1],16),g:parseInt(m[2]+m[2],16),b:parseInt(m[3]+m[3],16),a:1}},_hslColorToRGBA(m){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(m)){const[x,...N]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(m),$=Number(N[0])/360,A=Number(N[1])/100,R=Number(N[2])/100;let G,H,Y;if(A===0)return Y=R*255,{r:Math.round(Y),g:Math.round(Y),b:Math.round(Y),a:1};R<.5?G=R*(1+A):G=R+A-R*A;const J=2*R-G,nt=[0,0,0];for(let rt=0;rt<3;rt++)H=$+1/3*-(rt-1),H<0&&H++,H>1&&H--,6*H<1?Y=J+(G-J)*6*H:2*H<1?Y=G:3*H<2?Y=J+(G-J)*(2/3-H)*6:Y=J,nt[rt]=Y*255;return{r:Math.round(nt[0]),g:Math.round(nt[1]),b:Math.round(nt[2]),a:1}}},haveIntersection(m,x){return!(x.x>m.x+m.width||x.x+x.width<m.x||x.y>m.y+m.height||x.y+x.height<m.y)},cloneObject(m){var x={};for(var N in m)this._isPlainObject(m[N])?x[N]=this.cloneObject(m[N]):this._isArray(m[N])?x[N]=this.cloneArray(m[N]):x[N]=m[N];return x},cloneArray(m){return m.slice(0)},degToRad(m){return m*s},radToDeg(m){return m*c},_degToRad(m){return e.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),e.Util.degToRad(m)},_radToDeg(m){return e.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),e.Util.radToDeg(m)},_getRotation(m){return t.Konva.angleDeg?e.Util.radToDeg(m):m},_capitalize(m){return m.charAt(0).toUpperCase()+m.slice(1)},throw(m){throw new Error(h+m)},error(m){console.error(h+m)},warn(m){t.Konva.showWarnings&&console.warn(f+m)},each(m,x){for(var N in m)x(N,m[N])},_inRange(m,x,N){return x<=m&&m<N},_getProjectionToSegment(m,x,N,$,A,R){var G,H,Y,J=(m-N)*(m-N)+(x-$)*(x-$);if(J==0)G=m,H=x,Y=(A-N)*(A-N)+(R-$)*(R-$);else{var nt=((A-m)*(N-m)+(R-x)*($-x))/J;nt<0?(G=m,H=x,Y=(m-A)*(m-A)+(x-R)*(x-R)):nt>1?(G=N,H=$,Y=(N-A)*(N-A)+($-R)*($-R)):(G=m+nt*(N-m),H=x+nt*($-x),Y=(G-A)*(G-A)+(H-R)*(H-R))}return[G,H,Y]},_getProjectionToLine(m,x,N){var $=e.Util.cloneObject(m),A=Number.MAX_VALUE;return x.forEach(function(R,G){if(!(!N&&G===x.length-1)){var H=x[(G+1)%x.length],Y=e.Util._getProjectionToSegment(R.x,R.y,H.x,H.y,m.x,m.y),J=Y[0],nt=Y[1],rt=Y[2];rt<A&&($.x=J,$.y=nt,A=rt)}}),$},_prepareArrayForTween(m,x,N){var $,A=[],R=[];if(m.length>x.length){var G=x;x=m,m=G}for($=0;$<m.length;$+=2)A.push({x:m[$],y:m[$+1]});for($=0;$<x.length;$+=2)R.push({x:x[$],y:x[$+1]});var H=[];return R.forEach(function(Y){var J=e.Util._getProjectionToLine(Y,A,N);H.push(J.x),H.push(J.y)}),H},_prepareToStringify(m){var x;m.visitedByCircularReferenceRemoval=!0;for(var N in m)if(m.hasOwnProperty(N)&&m[N]&&typeof m[N]=="object"){if(x=Object.getOwnPropertyDescriptor(m,N),m[N].visitedByCircularReferenceRemoval||e.Util._isElement(m[N]))if(x.configurable)delete m[N];else return null;else if(e.Util._prepareToStringify(m[N])===null)if(x.configurable)delete m[N];else return null}return delete m.visitedByCircularReferenceRemoval,m},_assign(m,x){for(var N in x)m[N]=x[N];return m},_getFirstPointerId(m){return m.touches?m.changedTouches[0].identifier:m.pointerId||999},releaseCanvas(...m){t.Konva.releaseCanvasOnDestroy&&m.forEach(x=>{x.width=0,x.height=0})},drawRoundedRectPath(m,x,N,$){let A=0,R=0,G=0,H=0;typeof $=="number"?A=R=G=H=Math.min($,x/2,N/2):(A=Math.min($[0]||0,x/2,N/2),R=Math.min($[1]||0,x/2,N/2),H=Math.min($[2]||0,x/2,N/2),G=Math.min($[3]||0,x/2,N/2)),m.moveTo(A,0),m.lineTo(x-R,0),m.arc(x-R,R,R,Math.PI*3/2,0,!1),m.lineTo(x,N-H),m.arc(x-H,N-H,H,0,Math.PI/2,!1),m.lineTo(G,N),m.arc(G,N-G,G,Math.PI/2,Math.PI,!1),m.lineTo(0,A),m.arc(A,A,A,Math.PI,Math.PI*3/2,!1)}}})(mp);const T7=un(mp),O7=Wt({__proto__:null,default:T7},[mp]),or=Jt(O7);var Ms={},gp={},Je={};Object.defineProperty(Je,"__esModule",{value:!0});var Lb=Je.getComponentValidator=Xb=Je.getBooleanValidator=Yb=Je.getNumberArrayValidator=Kb=Je.getFunctionValidator=qb=Je.getStringOrGradientValidator=Hb=Je.getStringValidator=Bb=Je.getNumberOrAutoValidator=Vb=Je.getNumberOrArrayOfNumbersValidator=Gb=Je.getNumberValidator=zb=Je.alphaComponent=Ub=Je.RGBComponent=void 0;const $i=ye,ar=or;function ki(e){return ar.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||ar.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function A7(e){return e>255?255:e<0?0:Math.round(e)}var Ub=Je.RGBComponent=A7;function N7(e){return e>1?1:e<1e-4?1e-4:e}var zb=Je.alphaComponent=N7;function R7(){if($i.Konva.isUnminified)return function(e,t){return ar.Util._isNumber(e)||ar.Util.warn(ki(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}var Gb=Je.getNumberValidator=R7;function j7(e){if($i.Konva.isUnminified)return function(t,r){let n=ar.Util._isNumber(t),i=ar.Util._isArray(t)&&t.length==e;return!n&&!i&&ar.Util.warn(ki(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array<number>('+e+")"),t}}var Vb=Je.getNumberOrArrayOfNumbersValidator=j7;function I7(){if($i.Konva.isUnminified)return function(e,t){var r=ar.Util._isNumber(e),n=e==="auto";return r||n||ar.Util.warn(ki(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}var Bb=Je.getNumberOrAutoValidator=I7;function D7(){if($i.Konva.isUnminified)return function(e,t){return ar.Util._isString(e)||ar.Util.warn(ki(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}var Hb=Je.getStringValidator=D7;function F7(){if($i.Konva.isUnminified)return function(e,t){const r=ar.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||ar.Util.warn(ki(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}var qb=Je.getStringOrGradientValidator=F7;function M7(){if($i.Konva.isUnminified)return function(e,t){return ar.Util._isFunction(e)||ar.Util.warn(ki(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}var Kb=Je.getFunctionValidator=M7;function L7(){if($i.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(ar.Util._isArray(e)?e.forEach(function(n){ar.Util._isNumber(n)||ar.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):ar.Util.warn(ki(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}var Yb=Je.getNumberArrayValidator=L7;function U7(){if($i.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||ar.Util.warn(ki(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}var Xb=Je.getBooleanValidator=U7;function z7(e){if($i.Konva.isUnminified)return function(t,r){return t==null||ar.Util.isObject(t)||ar.Util.warn(ki(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}Lb=Je.getComponentValidator=z7;const G7=Wt({__proto__:null,get RGBComponent(){return Ub},get alphaComponent(){return zb},default:Je,get getBooleanValidator(){return Xb},get getComponentValidator(){return Lb},get getFunctionValidator(){return Kb},get getNumberArrayValidator(){return Yb},get getNumberOrArrayOfNumbersValidator(){return Vb},get getNumberOrAutoValidator(){return Bb},get getNumberValidator(){return Gb},get getStringOrGradientValidator(){return qb},get getStringValidator(){return Hb}},[Je]),_e=Jt(G7);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=or,r=_e;var n="get",i="set";e.Factory={addGetterSetter(o,a,s,c,l){e.Factory.addGetter(o,a,s),e.Factory.addSetter(o,a,c,l),e.Factory.addOverloadedGetterSetter(o,a)},addGetter(o,a,s){var c=n+t.Util._capitalize(a);o.prototype[c]=o.prototype[c]||function(){var l=this.attrs[a];return l===void 0?s:l}},addSetter(o,a,s,c){var l=i+t.Util._capitalize(a);o.prototype[l]||e.Factory.overWriteSetter(o,a,s,c)},overWriteSetter(o,a,s,c){var l=i+t.Util._capitalize(a);o.prototype[l]=function(u){return s&&u!==void 0&&u!==null&&(u=s.call(this,u,a)),this._setAttr(a,u),c&&c.call(this),this}},addComponentsGetterSetter(o,a,s,c,l){var u=s.length,d=t.Util._capitalize,f=n+d(a),h=i+d(a),p,g;o.prototype[f]=function(){var _={};for(p=0;p<u;p++)g=s[p],_[g]=this.getAttr(a+d(g));return _};var v=(0,r.getComponentValidator)(s);o.prototype[h]=function(_){var y=this.attrs[a],m;c&&(_=c.call(this,_)),v&&v.call(this,_,a);for(m in _)_.hasOwnProperty(m)&&this._setAttr(a+d(m),_[m]);return _||s.forEach(x=>{this._setAttr(a+d(x),void 0)}),this._fireChangeEvent(a,y,_),l&&l.call(this),this},e.Factory.addOverloadedGetterSetter(o,a)},addOverloadedGetterSetter(o,a){var s=t.Util._capitalize(a),c=i+s,l=n+s;o.prototype[a]=function(){return arguments.length?(this[c](arguments[0]),this):this[l]()}},addDeprecatedGetterSetter(o,a,s,c){t.Util.error("Adding deprecated "+a);var l=n+t.Util._capitalize(a),u=a+" 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 d=this.attrs[a];return d===void 0?s:d},e.Factory.addSetter(o,a,c,function(){t.Util.error(u)}),e.Factory.addOverloadedGetterSetter(o,a)},backCompat(o,a){t.Util.each(a,function(s,c){var l=o.prototype[c],u=n+t.Util._capitalize(s),d=i+t.Util._capitalize(s);function f(){l.apply(this,arguments),t.Util.error('"'+s+'" method is deprecated and will be removed soon. Use ""'+c+'" instead.')}o.prototype[s]=f,o.prototype[u]=f,o.prototype[d]=f})},afterSetFilter(){this._filterUpToDate=!1}}})(gp);const V7=un(gp),B7=Wt({__proto__:null,default:V7},[gp]),ge=Jt(B7);var Ei={},Ci={};Object.defineProperty(Ci,"__esModule",{value:!0});var Wb=Ci.HitContext=e2=Ci.SceneContext=t2=Ci.Context=void 0;const Jb=or,H7=ye;function q7(e){var t=[],r=e.length,n=Jb.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 Qb=",",K7="(",Y7=")",X7="([",W7="])",J7=";",Q7="()",Z7="=",Zb=["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"],tR=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const eR=100;let hu=class{constructor(t){this.canvas=t,H7.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="",a,s,c,l;for(a=0;a<i;a++)s=n[a],c=s.method,c?(l=s.args,o+=c,t?o+=Q7:Jb.Util._isArray(l[0])?o+=X7+l.join(Qb)+W7:(r&&(l=l.map(u=>typeof u=="number"?Math.floor(u):u)),o+=K7+l.join(Qb)+Y7)):(o+=s.property,t||(o+=Z7+s.val)),o+=J7;return o}clearTrace(){this.traceArr=[]}_trace(t){var r=this.traceArr,n;r.push(t),n=r.length,n>=eR&&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,a){this._context.arc(t,r,n,i,o,a)}arcTo(t,r,n,i,o){this._context.arcTo(t,r,n,i,o)}beginPath(){this._context.beginPath()}bezierCurveTo(t,r,n,i,o,a){this._context.bezierCurveTo(t,r,n,i,o,a)}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,a){return this._context.createRadialGradient(t,r,n,i,o,a)}drawImage(t,r,n,i,o,a,s,c,l){var u=arguments,d=this._context;u.length===3?d.drawImage(t,r,n):u.length===5?d.drawImage(t,r,n,i,o):u.length===9&&d.drawImage(t,r,n,i,o,a,s,c,l)}ellipse(t,r,n,i,o,a,s,c){this._context.ellipse(t,r,n,i,o,a,s,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,a){this._context.setTransform(t,r,n,i,o,a)}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,a){this._context.transform(t,r,n,i,o,a)}translate(t,r){this._context.translate(t,r)}_enableTrace(){var t=this,r=Zb.length,n=this.setAttr,i,o,a=function(s){var c=t[s],l;t[s]=function(){return o=q7(Array.prototype.slice.call(arguments,0)),l=c.apply(t,arguments),t._trace({method:s,args:o}),l}};for(i=0;i<r;i++)a(Zb[i]);t.setAttr=function(){n.apply(t,arguments);var s=arguments[0],c=arguments[1];(s==="shadowOffsetX"||s==="shadowOffsetY"||s==="shadowBlur")&&(c=c/this.canvas.getPixelRatio()),t._trace({property:s,val:c})}}_applyGlobalCompositeOperation(t){const r=t.attrs.globalCompositeOperation;var n=!r||r==="source-over";n||this.setAttr("globalCompositeOperation",r)}};var t2=Ci.Context=hu;tR.forEach(function(e){Object.defineProperty(hu.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});class rR extends hu{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 a=t.getFillRadialGradientColorStops();if(a&&n==="radial-gradient"){this._fillRadialGradient(t);return}r?this._fillColor(t):i?this._fillPattern(t):o?this._fillLinearGradient(t):a&&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 a=0;a<i.length;a+=2)o.addColorStop(i[a],i[a+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",a=(n=t.getShadowBlur())!==null&&n!==void 0?n:5,s=(i=t.getShadowOffset())!==null&&i!==void 0?i:{x:0,y:0},c=t.getAbsoluteScale(),l=this.canvas.getPixelRatio(),u=c.x*l,d=c.y*l;this.setAttr("shadowColor",o),this.setAttr("shadowBlur",a*Math.min(Math.abs(u),Math.abs(d))),this.setAttr("shadowOffsetX",s.x*u),this.setAttr("shadowOffsetY",s.y*d)}}var e2=Ci.SceneContext=rR;class nR extends hu{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()}}}Wb=Ci.HitContext=nR;const iR=Wt({__proto__:null,get Context(){return t2},get HitContext(){return Wb},get SceneContext(){return e2},default:Ci},[Ci]),r2=Jt(iR);Object.defineProperty(Ei,"__esModule",{value:!0});var n2=Ei.HitCanvas=s2=Ei.SceneCanvas=a2=Ei.Canvas=void 0;const du=or,i2=r2,o2=ye,oR=ge,aR=_e;var fu;function sR(){if(fu)return fu;var e=du.Util.createCanvasElement(),t=e.getContext("2d");return fu=function(){var r=o2.Konva._global.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return r/n}(),du.Util.releaseCanvas(e),fu}let pu=class{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var r=t||{},n=r.pixelRatio||o2.Konva.pixelRatio||sR();this.pixelRatio=n,this._canvas=du.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 du.Util.error("Unable to get data URL. "+n.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}};var a2=Ei.Canvas=pu;oR.Factory.addGetterSetter(pu,"pixelRatio",void 0,(0,aR.getNumberValidator)());class lR extends pu{constructor(t={width:0,height:0,willReadFrequently:!1}){super(t),this.context=new i2.SceneContext(this,{willReadFrequently:t.willReadFrequently}),this.setSize(t.width,t.height)}}var s2=Ei.SceneCanvas=lR;class cR extends pu{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new i2.HitContext(this),this.setSize(t.width,t.height)}}n2=Ei.HitCanvas=cR;const uR=Wt({__proto__:null,get Canvas(){return a2},get HitCanvas(){return n2},get SceneCanvas(){return s2},default:Ei},[Ei]),mu=Jt(uR);var vp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DD=void 0;const t=ye,r=or;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,a)=>{const{node:s}=o,c=s.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=s.dragDistance(),d=Math.max(Math.abs(l.x-o.startPointerPos.x),Math.abs(l.y-o.startPointerPos.y));if(d<u||(s.startDrag({evt:n}),!s.isDragging()))return}s._setDragPosition(n,o),i.push(s)}}),i.forEach(o=>{o.fire("dragmove",{type:"dragmove",target:o,evt:n},!0)})},_endDragBefore(n){const i=[];e.DD._dragElements.forEach(o=>{const{node:a}=o,s=a.getStage();if(n&&s.setPointersPositions(n),!s._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))})(vp);const hR=un(vp),dR=Wt({__proto__:null,default:hR},[vp]),yp=Jt(dR);Object.defineProperty(Ms,"__esModule",{value:!0});var l2=Ms.Node=void 0;const be=or,Ls=ge,gu=mu,jo=ye,xn=yp,cr=_e;var vu="absoluteOpacity",yu="allEventListeners",Pi="absoluteTransform",c2="absoluteScale",Io="canvas",fR="Change",pR="children",mR="konva",_p="listening",u2="mouseenter",h2="mouseleave",d2="set",f2="Shape",_u=" ",p2="stage",Wi="transform",gR="Stage",bp="visible",vR=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(_u);let yR=1,ue=class ng{constructor(t){this._id=yR++,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===Wi||t===Pi)&&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===Wi||t===Pi,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(_u);this.on(i,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(Io)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===Pi&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Io)){const{scene:t,filter:r,hit:n}=this._cache.get(Io);be.Util.releaseCanvas(t,r,n),this._cache.delete(Io)}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),a=r.pixelRatio,s=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,d=r.hitCanvasPixelRatio||1;if(!i||!o){be.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,s-=l,c-=l;var f=new gu.SceneCanvas({pixelRatio:a,width:i,height:o}),h=new gu.SceneCanvas({pixelRatio:a,width:0,height:0,willReadFrequently:!0}),p=new gu.HitCanvas({pixelRatio:d,width:i,height:o}),g=f.getContext(),v=p.getContext();return p.isCache=!0,f.isCache=!0,this._cache.delete(Io),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(f.getContext()._context.imageSmoothingEnabled=!1,h.getContext()._context.imageSmoothingEnabled=!1),g.save(),v.save(),g.translate(-s,-c),v.translate(-s,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(vu),this._clearSelfAndDescendantCache(c2),this.drawScene(f,this),this.drawHit(p,this),this._isUnderCache=!1,g.restore(),v.restore(),u&&(g.save(),g.beginPath(),g.rect(0,0,i,o),g.closePath(),g.setAttr("strokeStyle","red"),g.setAttr("lineWidth",5),g.stroke(),g.restore()),this._cache.set(Io,{scene:f,filter:h,hit:p,x:s,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(Io)}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,a=-1/0,s=-1/0,c=this.getAbsoluteTransform(r);return n.forEach(function(l){var u=c.point(l);i===void 0&&(i=a=u.x,o=s=u.y),i=Math.min(i,u.x),o=Math.min(o,u.y),a=Math.max(a,u.x),s=Math.max(s,u.y)}),{x:i,y:o,width:a-i,height:s-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(),a,s,c,l;if(t){if(!this._filterUpToDate){var u=n.pixelRatio;i.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(a=t.length,o.clear(),o.drawImage(n._canvas,0,0,n.getWidth()/u,n.getHeight()/u),s=o.getImageData(0,0,i.getWidth(),i.getHeight()),c=0;c<a;c++){if(l=t[c],typeof l!="function"){be.Util.error("Filter should be type of function, but got "+typeof l+" instead. Please check correct filters");continue}l.call(this,s),o.putImageData(s,0,0)}}catch(d){be.Util.error("Unable to apply filter. "+d.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(yu),arguments.length===3)return this._delegate.apply(this,arguments);var n=t.split(_u),i=n.length,o,a,s,c,l;for(o=0;o<i;o++)a=n[o],s=a.split("."),c=s[0],l=s[1]||"",this.eventListeners[c]||(this.eventListeners[c]=[]),this.eventListeners[c].push({name:l,handler:r});return this}off(t,r){var n=(t||"").split(_u),i=n.length,o,a,s,c,l,u;if(this._cache&&this._cache.delete(yu),!t)for(a in this.eventListeners)this._off(a);for(o=0;o<i;o++)if(s=n[o],c=s.split("."),l=c[0],u=c[1],l)this.eventListeners[l]&&this._off(l,u,r);else for(a in this.eventListeners)this._off(a,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 a=o.target.findAncestors(r,!0,i),s=0;s<a.length;s++)o=be.Util.cloneObject(o),o.currentTarget=a[s],n.call(a[s],o)})}remove(){return this.isDragging()&&this.stopDrag(),xn.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(Pi),this._clearSelfAndDescendantCache(vu),this._clearSelfAndDescendantCache(c2),this._clearSelfAndDescendantCache(p2),this._clearSelfAndDescendantCache(bp),this._clearSelfAndDescendantCache(_p)}_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"+be.Util._capitalize(t);return be.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!==pR&&(n=d2+be.Util._capitalize(r),be.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(_p,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(bp,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;xn.DD._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===n)&&(i=!0)});var o=!r&&!jo.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,a,s;function c(u){for(i=[],o=u.length,a=0;a<o;a++)s=u[a],n++,s.nodeType!==f2&&(i=i.concat(s.getChildren().slice())),s._id===r._id&&(a=o);i.length>0&&i[0].getDepth()<=t&&c(i)}const l=this.getStage();return r.nodeType!==gR&&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(Wi),this._clearSelfAndDescendantCache(Pi)),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 be.Transform,a=this.offset();return o.m=i.slice(),o.translate(a.x,a.y),o.getTranslation()}setAbsolutePosition(t){const{x:r,y:n,...i}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Wi);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(Wi),this._clearSelfAndDescendantCache(Pi),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,a;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,a=0;a<o;a++)t(n[a])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return be.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 be.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 be.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 be.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 be.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&be.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(vu,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,a,s;t.attrs={};for(n in r)i=r[n],s=be.Util.isObject(i)&&!be.Util._isPlainObject(i)&&!be.Util._isArray(i),!s&&(o=typeof this[n]=="function"&&this[n],delete r[n],a=o?o.call(this):null,r[n]=i,a!==i&&(t.attrs[n]=i));return t.className=this.getClassName(),be.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],be.Util.isValidSelector(o)||(be.Util.warn('Selector "'+o+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),be.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),be.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(p2,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(Pi,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var r;if(t)return r=new be.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(Pi)||new be.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,a=this.attrs.offsetX||0,s=this.attrs.offsetY||0;r.translate(i-a,o-s)}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(Wi,this._getTransform)}_getTransform(){var t,r,n=this._cache.get(Wi)||new be.Transform;n.reset();var i=this.x(),o=this.y(),a=jo.Konva.getAngle(this.rotation()),s=(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,d=this.attrs.offsetX||0,f=this.attrs.offsetY||0;return(i!==0||o!==0)&&n.translate(i,o),a!==0&&n.rotate(a),(l!==0||u!==0)&&n.skew(l,u),(s!==1||c!==1)&&n.scale(s,c),(d!==0||f!==0)&&n.translate(-1*d,-1*f),n.dirty=!1,n}clone(t){var r=be.Util.cloneObject(this.attrs),n,i,o,a,s;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,a=0;a<o;a++)s=i[a],s.name.indexOf(mR)<0&&(c.eventListeners[n]||(c.eventListeners[n]=[]),c.eventListeners[n].push(s));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),a=t.pixelRatio||1,s=new gu.SceneCanvas({width:t.width||Math.ceil(r.width)||(n?n.width():0),height:t.height||Math.ceil(r.height)||(n?n.height():0),pixelRatio:a}),c=s.getContext();return t.imageSmoothingEnabled===!1&&(c._context.imageSmoothingEnabled=!1),c.save(),(i||o)&&c.translate(-1*i,-1*o),this.drawScene(s),c.restore(),s}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==null?void 0:t.callback;i&&delete t.callback,be.Util._urlToImage(this.toDataURL(t),function(o){r(o),i==null||i(o)})}catch(i){n(i)}})}toBlob(t){return new Promise((r,n)=>{try{const i=t==null?void 0:t.callback;i&&delete t.callback,this.toCanvas(t).toBlob(o=>{r(o),i==null||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():jo.Konva.dragDistance}_off(t,r,n){var i=this.eventListeners[t],o,a,s;for(o=0;o<i.length;o++)if(a=i[o].name,s=i[o].handler,(a!=="konva"||r==="konva")&&(!r||a===r)&&(!n||n===s)){if(i.splice(o,1),i.length===0){delete this.eventListeners[t];break}o--}}_fireChangeEvent(t,r,n){this._fire(t+fR,{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[d2+be.Util._capitalize(t)];return be.Util._isFunction(n)?n.call(this,r):this._setAttr(t,r),this}_requestDraw(){if(jo.Konva.autoDrawEnabled){const t=this.getLayer()||this.getStage();t==null||t.batchDraw()}}_setAttr(t,r){var n=this.attrs[t];n===r&&!be.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===f2&&(r.target=this);var i=(t===u2||t===h2)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||this.nodeType==="Stage"&&!n);if(!i){this._fire(t,r);var o=(t===u2||t===h2)&&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(yu))!==null&&r!==void 0?r:{};let a=o==null?void 0:o[t];if(a===void 0){a=[];let s=Object.getPrototypeOf(this);for(;s;){const c=(i=(n=s.eventListeners)===null||n===void 0?void 0:n[t])!==null&&i!==void 0?i:[];a.push(...c),s=Object.getPrototypeOf(s)}o[t]=a,this._cache.set(yu,o)}return a}_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;xn.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){xn.DD._dragElements.has(this._id)||this._createDragElement(t);const n=xn.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 a=o.call(this,i,t);a?i=a:be.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=xn.DD._dragElements.get(this._id);r&&(r.dragStatus="stopped"),xn.DD._endDragBefore(t),xn.DD._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=xn.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||jo.Konva.dragButtons.indexOf(t.evt.button)>=0;if(n&&!this.isDragging()){var i=!1;xn.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=xn.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",i=r&&r.dragStatus==="ready";n?this.stopDrag():i&&xn.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 be.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return be.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){var n=ng.prototype.getClassName.call(t),i=t.children,o,a,s;r&&(t.attrs.container=r),jo.Konva[n]||(be.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const c=jo.Konva[n];if(o=new c(t.attrs),i)for(a=i.length,s=0;s<a;s++)o.add(ng._createNode(i[s]));return o}};l2=Ms.Node=ue,ue.prototype.nodeType="Node",ue.prototype._attrsAffectingSize=[],ue.prototype.eventListeners={},ue.prototype.on.call(ue.prototype,vR,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(Wi),this._clearSelfAndDescendantCache(Pi)}),ue.prototype.on.call(ue.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(bp)}),ue.prototype.on.call(ue.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(_p)}),ue.prototype.on.call(ue.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(vu)});const He=Ls.Factory.addGetterSetter;He(ue,"zIndex"),He(ue,"absolutePosition"),He(ue,"position"),He(ue,"x",0,(0,cr.getNumberValidator)()),He(ue,"y",0,(0,cr.getNumberValidator)()),He(ue,"globalCompositeOperation","source-over",(0,cr.getStringValidator)()),He(ue,"opacity",1,(0,cr.getNumberValidator)()),He(ue,"name","",(0,cr.getStringValidator)()),He(ue,"id","",(0,cr.getStringValidator)()),He(ue,"rotation",0,(0,cr.getNumberValidator)()),Ls.Factory.addComponentsGetterSetter(ue,"scale",["x","y"]),He(ue,"scaleX",1,(0,cr.getNumberValidator)()),He(ue,"scaleY",1,(0,cr.getNumberValidator)()),Ls.Factory.addComponentsGetterSetter(ue,"skew",["x","y"]),He(ue,"skewX",0,(0,cr.getNumberValidator)()),He(ue,"skewY",0,(0,cr.getNumberValidator)()),Ls.Factory.addComponentsGetterSetter(ue,"offset",["x","y"]),He(ue,"offsetX",0,(0,cr.getNumberValidator)()),He(ue,"offsetY",0,(0,cr.getNumberValidator)()),He(ue,"dragDistance",null,(0,cr.getNumberValidator)()),He(ue,"width",0,(0,cr.getNumberValidator)()),He(ue,"height",0,(0,cr.getNumberValidator)()),He(ue,"listening",!0,(0,cr.getBooleanValidator)()),He(ue,"preventDefault",!0,(0,cr.getBooleanValidator)()),He(ue,"filters",null,function(e){return this._filterUpToDate=!1,e}),He(ue,"visible",!0,(0,cr.getBooleanValidator)()),He(ue,"transformsEnabled","all",(0,cr.getStringValidator)()),He(ue,"size"),He(ue,"dragBoundFunc"),He(ue,"draggable",!1,(0,cr.getBooleanValidator)()),Ls.Factory.backCompat(ue,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});const _R=Wt({__proto__:null,get Node(){return l2},default:Ms},[Ms]),ur=Jt(_R);var Us={};Object.defineProperty(Us,"__esModule",{value:!0});var m2=Us.Container=void 0;const xa=ge,wp=ur,bu=_e;let Do=class extends wp.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=wp.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=wp.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(),a=this._getCanvasCache(),s=a&&a.scene,c=i&&i.isCache;if(!this.isVisible()&&!c)return this;if(s){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(),a=this._getCanvasCache(),s=a&&a.hit;if(s){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(),a=this.clipWidth(),s=this.clipHeight(),c=this.clipFunc(),l=a&&s||c;const u=n===this;if(l){o.save();var d=this.getAbsoluteTransform(n),f=d.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 h=this.clipX(),p=this.clipY();o.rect(h,p,a,s)}o.clip.apply(o,v),f=d.copy().invert().getMatrix(),o.transform(f[0],f[1],f[2],f[3],f[4],f[5])}var g=!u&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";g&&(o.save(),o._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(v){v[t](r,n)}),g&&o.restore(),l&&o.restore()}getClientRect(t={}){var r,n=t.skipTransform,i=t.relativeTo,o,a,s,c,l={x:1/0,y:1/0,width:0,height:0},u=this;(r=this.children)===null||r===void 0||r.forEach(function(g){if(g.visible()){var v=g.getClientRect({relativeTo:u,skipShadow:t.skipShadow,skipStroke:t.skipStroke});v.width===0&&v.height===0||(o===void 0?(o=v.x,a=v.y,s=v.x+v.width,c=v.y+v.height):(o=Math.min(o,v.x),a=Math.min(a,v.y),s=Math.max(s,v.x+v.width),c=Math.max(c,v.y+v.height)))}});for(var d=this.find("Shape"),f=!1,h=0;h<d.length;h++){var p=d[h];if(p._isVisible(this)){f=!0;break}}return f&&o!==void 0?l={x:o,y:a,width:s-o,height:c-a}:l={x:0,y:0,width:0,height:0},n?l:this._transformedRect(l,i)}};m2=Us.Container=Do,xa.Factory.addComponentsGetterSetter(Do,"clip",["x","y","width","height"]),xa.Factory.addGetterSetter(Do,"clipX",void 0,(0,bu.getNumberValidator)()),xa.Factory.addGetterSetter(Do,"clipY",void 0,(0,bu.getNumberValidator)()),xa.Factory.addGetterSetter(Do,"clipWidth",void 0,(0,bu.getNumberValidator)()),xa.Factory.addGetterSetter(Do,"clipHeight",void 0,(0,bu.getNumberValidator)()),xa.Factory.addGetterSetter(Do,"clipFunc");const bR=Wt({__proto__:null,get Container(){return m2},default:Us},[Us]),wu=Jt(bR);var xp={},fn={};Object.defineProperty(fn,"__esModule",{value:!0});var g2=fn.releaseCapture=w2=fn.setPointerCapture=b2=fn.hasPointerCapture=_2=fn.createEvent=y2=fn.getCapturedShape=void 0;const wR=ye,zs=new Map,v2=wR.Konva._global.PointerEvent!==void 0;function xR(e){return zs.get(e)}var y2=fn.getCapturedShape=xR;function Sp(e){return{evt:e,pointerId:e.pointerId}}var _2=fn.createEvent=Sp;function SR(e,t){return zs.get(e)===t}var b2=fn.hasPointerCapture=SR;function $R(e,t){x2(e),t.getStage()&&(zs.set(e,t),v2&&t._fire("gotpointercapture",Sp(new PointerEvent("gotpointercapture"))))}var w2=fn.setPointerCapture=$R;function x2(e,t){const r=zs.get(e);if(!r)return;const n=r.getStage();n&&n.content,zs.delete(e),v2&&r._fire("lostpointercapture",Sp(new PointerEvent("lostpointercapture")))}g2=fn.releaseCapture=x2;const kR=Wt({__proto__:null,get createEvent(){return _2},default:fn,get getCapturedShape(){return y2},get hasPointerCapture(){return b2},get releaseCapture(){return g2},get setPointerCapture(){return w2}},[fn]),S2=Jt(kR);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Stage=e.stages=void 0;const t=or,r=ge,n=wu,i=ye,o=mu,a=yp,s=ye,c=S2;var l="Stage",u="string",d="px",f="mouseout",h="mouseleave",p="mouseover",g="mouseenter",v="mousemove",_="mousedown",y="mouseup",m="pointermove",x="pointerdown",N="pointerup",$="pointercancel",A="lostpointercapture",R="pointerout",G="pointerleave",H="pointerover",Y="pointerenter",J="contextmenu",nt="touchstart",rt="touchend",lt="touchmove",xt="touchcancel",Ct="wheel",$t=5,at=[[g,"_pointerenter"],[_,"_pointerdown"],[v,"_pointermove"],[y,"_pointerup"],[h,"_pointerleave"],[nt,"_pointerdown"],[lt,"_pointermove"],[rt,"_pointerup"],[xt,"_pointercancel"],[p,"_pointerover"],[Ct,"_wheel"],[J,"_contextmenu"],[x,"_pointerdown"],[m,"_pointermove"],[N,"_pointerup"],[$,"_pointercancel"],[A,"_lostpointercapture"]];const X={mouse:{[R]:f,[G]:h,[H]:p,[Y]:g,[m]:v,[x]:_,[N]:y,[$]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[R]:"touchout",[G]:"touchleave",[H]:"touchover",[Y]:"touchenter",[m]:lt,[x]:nt,[N]:rt,[$]:xt,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[R]:R,[G]:G,[H]:H,[Y]:Y,[m]:m,[x]:x,[N]:N,[$]:$,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},T=L=>L.indexOf("pointer")>=0?"pointer":L.indexOf("touch")>=0?"touch":"mouse",E=L=>{const D=T(L);if(D==="pointer")return i.Konva.pointerEventsEnabled&&X.pointer;if(D==="touch")return X.touch;if(D==="mouse")return X.mouse};function k(L={}){return(L.clipFunc||L.clipWidth||L.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),L}const b="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 C extends n.Container{constructor(D){super(k(D)),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",()=>{k(this.attrs)}),this._checkVisibility()}_validateAdd(D){const V=D.getType()==="Layer",K=D.getType()==="FastLayer";V||K||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const D=this.visible()?"":"none";this.content.style.display=D}setContainer(D){if(typeof D===u){if(D.charAt(0)==="."){var V=D.slice(1);D=document.getElementsByClassName(V)[0]}else{var K;D.charAt(0)!=="#"?K=D:K=D.slice(1),D=document.getElementById(K)}if(!D)throw"Can not find container in document with id "+K}return this._setAttr("container",D),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),D.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var D=this.children,V=D.length,K;for(K=0;K<V;K++)D[K].clear();return this}clone(D){return D||(D={}),D.container=typeof document<"u"&&document.createElement("div"),n.Container.prototype.clone.call(this,D)}destroy(){super.destroy();var D=this.content;D&&t.Util._isInDocument(D)&&this.container().removeChild(D);var V=e.stages.indexOf(this);return V>-1&&e.stages.splice(V,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const D=this._pointerPositions[0]||this._changedPointerPositions[0];return D?{x:D.x,y:D.y}:(t.Util.warn(b),null)}_getPointerById(D){return this._pointerPositions.find(V=>V.id===D)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(D){D=D||{},D.x=D.x||0,D.y=D.y||0,D.width=D.width||this.width(),D.height=D.height||this.height();var V=new o.SceneCanvas({width:D.width,height:D.height,pixelRatio:D.pixelRatio||1}),K=V.getContext()._context,et=this.children;return(D.x||D.y)&&K.translate(-1*D.x,-1*D.y),et.forEach(function(it){if(it.isVisible()){var ut=it._toKonvaCanvas(D);K.drawImage(ut._canvas,D.x,D.y,ut.getWidth()/ut.getPixelRatio(),ut.getHeight()/ut.getPixelRatio())}}),V}getIntersection(D){if(!D)return null;var V=this.children,K=V.length,et=K-1,it;for(it=et;it>=0;it--){const ut=V[it].getIntersection(D);if(ut)return ut}return null}_resizeDOM(){var D=this.width(),V=this.height();this.content&&(this.content.style.width=D+d,this.content.style.height=V+d),this.bufferCanvas.setSize(D,V),this.bufferHitCanvas.setSize(D,V),this.children.forEach(K=>{K.setSize({width:D,height:V}),K.draw()})}add(D,...V){if(arguments.length>1){for(var K=0;K<arguments.length;K++)this.add(arguments[K]);return this}super.add(D);var et=this.children.length;return et>$t&&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."),D.setSize({width:this.width(),height:this.height()}),D.draw(),i.Konva.isBrowser&&this.content.appendChild(D.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(D){return c.hasPointerCapture(D,this)}setPointerCapture(D){c.setPointerCapture(D,this)}releaseCapture(D){c.releaseCapture(D,this)}getLayers(){return this.children}_bindContentEvents(){i.Konva.isBrowser&&at.forEach(([D,V])=>{this.content.addEventListener(D,K=>{this[V](K)},{passive:!1})})}_pointerenter(D){this.setPointersPositions(D);const V=E(D.type);V&&this._fire(V.pointerenter,{evt:D,target:this,currentTarget:this})}_pointerover(D){this.setPointersPositions(D);const V=E(D.type);V&&this._fire(V.pointerover,{evt:D,target:this,currentTarget:this})}_getTargetShape(D){let V=this[D+"targetShape"];return V&&!V.getStage()&&(V=null),V}_pointerleave(D){const V=E(D.type),K=T(D.type);if(V){this.setPointersPositions(D);var et=this._getTargetShape(K),it=!a.DD.isDragging||i.Konva.hitOnDragEnabled;et&&it?(et._fireAndBubble(V.pointerout,{evt:D}),et._fireAndBubble(V.pointerleave,{evt:D}),this._fire(V.pointerleave,{evt:D,target:this,currentTarget:this}),this[K+"targetShape"]=null):it&&(this._fire(V.pointerleave,{evt:D,target:this,currentTarget:this}),this._fire(V.pointerout,{evt:D,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(D){const V=E(D.type),K=T(D.type);if(V){this.setPointersPositions(D);var et=!1;this._changedPointerPositions.forEach(it=>{var ut=this.getIntersection(it);if(a.DD.justDragged=!1,i.Konva["_"+K+"ListenClick"]=!0,!ut||!ut.isListening())return;i.Konva.capturePointerEventsEnabled&&ut.setPointerCapture(it.id),this[K+"ClickStartShape"]=ut,ut._fireAndBubble(V.pointerdown,{evt:D,pointerId:it.id}),et=!0;const Tt=D.type.indexOf("touch")>=0;ut.preventDefault()&&D.cancelable&&Tt&&D.preventDefault()}),et||this._fire(V.pointerdown,{evt:D,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(D){const V=E(D.type),K=T(D.type);if(!V)return;a.DD.isDragging&&a.DD.node.preventDefault()&&D.cancelable&&D.preventDefault(),this.setPointersPositions(D);var et=!a.DD.isDragging||i.Konva.hitOnDragEnabled;if(!et)return;var it={};let ut=!1;var Tt=this._getTargetShape(K);this._changedPointerPositions.forEach(Gt=>{const Pt=c.getCapturedShape(Gt.id)||this.getIntersection(Gt),Nt=Gt.id,qt={evt:D,pointerId:Nt};var Qt=Tt!==Pt;if(Qt&&Tt&&(Tt._fireAndBubble(V.pointerout,{...qt},Pt),Tt._fireAndBubble(V.pointerleave,{...qt},Pt)),Pt){if(it[Pt._id])return;it[Pt._id]=!0}Pt&&Pt.isListening()?(ut=!0,Qt&&(Pt._fireAndBubble(V.pointerover,{...qt},Tt),Pt._fireAndBubble(V.pointerenter,{...qt},Tt),this[K+"targetShape"]=Pt),Pt._fireAndBubble(V.pointermove,{...qt})):Tt&&(this._fire(V.pointerover,{evt:D,target:this,currentTarget:this,pointerId:Nt}),this[K+"targetShape"]=null)}),ut||this._fire(V.pointermove,{evt:D,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(D){const V=E(D.type),K=T(D.type);if(!V)return;this.setPointersPositions(D);const et=this[K+"ClickStartShape"],it=this[K+"ClickEndShape"];var ut={};let Tt=!1;this._changedPointerPositions.forEach(Gt=>{const Pt=c.getCapturedShape(Gt.id)||this.getIntersection(Gt);if(Pt){if(Pt.releaseCapture(Gt.id),ut[Pt._id])return;ut[Pt._id]=!0}const Nt=Gt.id,qt={evt:D,pointerId:Nt};let Qt=!1;i.Konva["_"+K+"InDblClickWindow"]?(Qt=!0,clearTimeout(this[K+"DblTimeout"])):a.DD.justDragged||(i.Konva["_"+K+"InDblClickWindow"]=!0,clearTimeout(this[K+"DblTimeout"])),this[K+"DblTimeout"]=setTimeout(function(){i.Konva["_"+K+"InDblClickWindow"]=!1},i.Konva.dblClickWindow),Pt&&Pt.isListening()?(Tt=!0,this[K+"ClickEndShape"]=Pt,Pt._fireAndBubble(V.pointerup,{...qt}),i.Konva["_"+K+"ListenClick"]&&et&&et===Pt&&(Pt._fireAndBubble(V.pointerclick,{...qt}),Qt&&it&&it===Pt&&Pt._fireAndBubble(V.pointerdblclick,{...qt}))):(this[K+"ClickEndShape"]=null,i.Konva["_"+K+"ListenClick"]&&this._fire(V.pointerclick,{evt:D,target:this,currentTarget:this,pointerId:Nt}),Qt&&this._fire(V.pointerdblclick,{evt:D,target:this,currentTarget:this,pointerId:Nt}))}),Tt||this._fire(V.pointerup,{evt:D,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),i.Konva["_"+K+"ListenClick"]=!1,D.cancelable&&K!=="touch"&&D.preventDefault()}_contextmenu(D){this.setPointersPositions(D);var V=this.getIntersection(this.getPointerPosition());V&&V.isListening()?V._fireAndBubble(J,{evt:D}):this._fire(J,{evt:D,target:this,currentTarget:this})}_wheel(D){this.setPointersPositions(D);var V=this.getIntersection(this.getPointerPosition());V&&V.isListening()?V._fireAndBubble(Ct,{evt:D}):this._fire(Ct,{evt:D,target:this,currentTarget:this})}_pointercancel(D){this.setPointersPositions(D);const V=c.getCapturedShape(D.pointerId)||this.getIntersection(this.getPointerPosition());V&&V._fireAndBubble(N,c.createEvent(D)),c.releaseCapture(D.pointerId)}_lostpointercapture(D){c.releaseCapture(D.pointerId)}setPointersPositions(D){var V=this._getContentPosition(),K=null,et=null;D=D||window.event,D.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(D.touches,it=>{this._pointerPositions.push({id:it.identifier,x:(it.clientX-V.left)/V.scaleX,y:(it.clientY-V.top)/V.scaleY})}),Array.prototype.forEach.call(D.changedTouches||D.touches,it=>{this._changedPointerPositions.push({id:it.identifier,x:(it.clientX-V.left)/V.scaleX,y:(it.clientY-V.top)/V.scaleY})})):(K=(D.clientX-V.left)/V.scaleX,et=(D.clientY-V.top)/V.scaleY,this.pointerPos={x:K,y:et},this._pointerPositions=[{x:K,y:et,id:t.Util._getFirstPointerId(D)}],this._changedPointerPositions=[{x:K,y:et,id:t.Util._getFirstPointerId(D)}])}_setPointerPosition(D){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(D)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var D=this.content.getBoundingClientRect();return{top:D.top,left:D.left,scaleX:D.width/this.content.clientWidth||1,scaleY:D.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 D=this.container();if(!D)throw"Stage has no container. A container is required.";D.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"),D.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(D){D.batchDraw()}),this}}e.Stage=C,C.prototype.nodeType=l,(0,s._registerNode)(C),r.Factory.addGetterSetter(C,"container")})(xp);const ER=un(xp),CR=Wt({__proto__:null,default:ER},[xp]),PR=Jt(CR);var Gs={},$p={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=ye,r=or,n=ge,i=ur,o=_e,a=ye,s=S2;var c="hasShadow",l="shadowRGBA",u="patternImage",d="linearGradient",f="radialGradient";let h;function p(){return h||(h=r.Util.createCanvasElement().getContext("2d"),h)}e.shapes={};function g(G){const H=this.attrs.fillRule;H?G.fill(H):G.fill()}function v(G){G.stroke()}function _(G){G.fill()}function y(G){G.stroke()}function m(){this._clearCache(c)}function x(){this._clearCache(l)}function N(){this._clearCache(u)}function $(){this._clearCache(d)}function A(){this._clearCache(f)}class R extends i.Node{constructor(H){super(H);let Y;for(;Y=r.Util.getRandomColor(),!(Y&&!(Y in e.shapes)););this.colorKey=Y,e.shapes[Y]=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 H=p();const Y=H.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(Y&&Y.setTransform){const J=new r.Transform;J.translate(this.fillPatternX(),this.fillPatternY()),J.rotate(t.Konva.getAngle(this.fillPatternRotation())),J.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),J.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const nt=J.getMatrix(),rt=typeof DOMMatrix>"u"?{a:nt[0],b:nt[1],c:nt[2],d:nt[3],e:nt[4],f:nt[5]}:new DOMMatrix(nt);Y.setTransform(rt)}return Y}}_getLinearGradient(){return this._getCache(d,this.__getLinearGradient)}__getLinearGradient(){var H=this.fillLinearGradientColorStops();if(H){for(var Y=p(),J=this.fillLinearGradientStartPoint(),nt=this.fillLinearGradientEndPoint(),rt=Y.createLinearGradient(J.x,J.y,nt.x,nt.y),lt=0;lt<H.length;lt+=2)rt.addColorStop(H[lt],H[lt+1]);return rt}}_getRadialGradient(){return this._getCache(f,this.__getRadialGradient)}__getRadialGradient(){var H=this.fillRadialGradientColorStops();if(H){for(var Y=p(),J=this.fillRadialGradientStartPoint(),nt=this.fillRadialGradientEndPoint(),rt=Y.createRadialGradient(J.x,J.y,this.fillRadialGradientStartRadius(),nt.x,nt.y,this.fillRadialGradientEndRadius()),lt=0;lt<H.length;lt+=2)rt.addColorStop(H[lt],H[lt+1]);return rt}}getShadowRGBA(){return this._getCache(l,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var H=r.Util.colorToRGBA(this.shadowColor());if(H)return"rgba("+H.r+","+H.g+","+H.b+","+H.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 H=this.hitStrokeWidth();return H==="auto"?this.hasStroke():this.strokeEnabled()&&!!H}intersects(H){var Y=this.getStage();if(!Y)return!1;const J=Y.bufferHitCanvas;return J.getContext().clear(),this.drawHit(J,void 0,!0),J.context.getImageData(Math.round(H.x),Math.round(H.y),1,1).data[3]>0}destroy(){return i.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(H){var Y;if(!this.getStage()||!(!((Y=this.attrs.perfectDrawEnabled)!==null&&Y!==void 0)||Y))return!1;const J=H||this.hasFill(),nt=this.hasStroke(),rt=this.getAbsoluteOpacity()!==1;if(J&&nt&&rt)return!0;const lt=this.hasShadow(),xt=this.shadowForStrokeEnabled();return!!(J&&nt&<&&xt)}setStrokeHitEnabled(H){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),H?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var H=this.size();return{x:this._centroid?-H.width/2:0,y:this._centroid?-H.height/2:0,width:H.width,height:H.height}}getClientRect(H={}){const Y=H.skipTransform,J=H.relativeTo,nt=this.getSelfRect(),rt=!H.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,lt=nt.width+rt,xt=nt.height+rt,Ct=!H.skipShadow&&this.hasShadow(),$t=Ct?this.shadowOffsetX():0,at=Ct?this.shadowOffsetY():0,X=lt+Math.abs($t),T=xt+Math.abs(at),E=Ct&&this.shadowBlur()||0,k=X+E*2,b=T+E*2,C={width:k,height:b,x:-(rt/2+E)+Math.min($t,0)+nt.x,y:-(rt/2+E)+Math.min(at,0)+nt.y};return Y?C:this._transformedRect(C,J)}drawScene(H,Y){var J=this.getLayer(),nt=H||J.getCanvas(),rt=nt.getContext(),lt=this._getCanvasCache(),xt=this.getSceneFunc(),Ct=this.hasShadow(),$t,at,X,T=nt.isCache,E=Y===this;if(!this.isVisible()&&!E)return this;if(lt){rt.save();var k=this.getAbsoluteTransform(Y).getMatrix();return rt.transform(k[0],k[1],k[2],k[3],k[4],k[5]),this._drawCachedSceneCanvas(rt),rt.restore(),this}if(!xt)return this;if(rt.save(),this._useBufferCanvas()&&!T){$t=this.getStage(),at=$t.bufferCanvas,X=at.getContext(),X.clear(),X.save(),X._applyLineJoin(this);var b=this.getAbsoluteTransform(Y).getMatrix();X.transform(b[0],b[1],b[2],b[3],b[4],b[5]),xt.call(this,X,this),X.restore();var C=at.pixelRatio;Ct&&rt._applyShadow(this),rt._applyOpacity(this),rt._applyGlobalCompositeOperation(this),rt.drawImage(at._canvas,0,0,at.width/C,at.height/C)}else{if(rt._applyLineJoin(this),!E){var b=this.getAbsoluteTransform(Y).getMatrix();rt.transform(b[0],b[1],b[2],b[3],b[4],b[5]),rt._applyOpacity(this),rt._applyGlobalCompositeOperation(this)}Ct&&rt._applyShadow(this),xt.call(this,rt,this)}return rt.restore(),this}drawHit(H,Y,J=!1){if(!this.shouldDrawHit(Y,J))return this;var nt=this.getLayer(),rt=H||nt.hitCanvas,lt=rt&&rt.getContext(),xt=this.hitFunc()||this.sceneFunc(),Ct=this._getCanvasCache(),$t=Ct&&Ct.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()"),$t){lt.save();var at=this.getAbsoluteTransform(Y).getMatrix();return lt.transform(at[0],at[1],at[2],at[3],at[4],at[5]),this._drawCachedHitCanvas(lt),lt.restore(),this}if(!xt)return this;if(lt.save(),lt._applyLineJoin(this),this!==Y){var X=this.getAbsoluteTransform(Y).getMatrix();lt.transform(X[0],X[1],X[2],X[3],X[4],X[5])}return xt.call(this,lt,this),lt.restore(),this}drawHitFromCache(H=0){var Y=this._getCanvasCache(),J=this._getCachedSceneCanvas(),nt=Y.hit,rt=nt.getContext(),lt=nt.getWidth(),xt=nt.getHeight(),Ct,$t,at,X,T,E;rt.clear(),rt.drawImage(J._canvas,0,0,lt,xt);try{for(Ct=rt.getImageData(0,0,lt,xt),$t=Ct.data,at=$t.length,X=r.Util._hexToRgb(this.colorKey),T=0;T<at;T+=4)E=$t[T+3],E>H?($t[T]=X.r,$t[T+1]=X.g,$t[T+2]=X.b,$t[T+3]=255):$t[T+3]=0;rt.putImageData(Ct,0,0)}catch(k){r.Util.error("Unable to draw hit graph from cached scene canvas. "+k.message)}return this}hasPointerCapture(H){return s.hasPointerCapture(H,this)}setPointerCapture(H){s.setPointerCapture(H,this)}releaseCapture(H){s.releaseCapture(H,this)}}e.Shape=R,R.prototype._fillFunc=g,R.prototype._strokeFunc=v,R.prototype._fillFuncHit=_,R.prototype._strokeFuncHit=y,R.prototype._centroid=!1,R.prototype.nodeType="Shape",(0,a._registerNode)(R),R.prototype.eventListeners={},R.prototype.on.call(R.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",m),R.prototype.on.call(R.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",x),R.prototype.on.call(R.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",N),R.prototype.on.call(R.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",$),R.prototype.on.call(R.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",A),n.Factory.addGetterSetter(R,"stroke",void 0,(0,o.getStringOrGradientValidator)()),n.Factory.addGetterSetter(R,"strokeWidth",2,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(R,"hitStrokeWidth","auto",(0,o.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(R,"strokeHitEnabled",!0,(0,o.getBooleanValidator)()),n.Factory.addGetterSetter(R,"perfectDrawEnabled",!0,(0,o.getBooleanValidator)()),n.Factory.addGetterSetter(R,"shadowForStrokeEnabled",!0,(0,o.getBooleanValidator)()),n.Factory.addGetterSetter(R,"lineJoin"),n.Factory.addGetterSetter(R,"lineCap"),n.Factory.addGetterSetter(R,"sceneFunc"),n.Factory.addGetterSetter(R,"hitFunc"),n.Factory.addGetterSetter(R,"dash"),n.Factory.addGetterSetter(R,"dashOffset",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"shadowColor",void 0,(0,o.getStringValidator)()),n.Factory.addGetterSetter(R,"shadowBlur",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"shadowOpacity",1,(0,o.getNumberValidator)()),n.Factory.addComponentsGetterSetter(R,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(R,"shadowOffsetX",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"shadowOffsetY",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternImage"),n.Factory.addGetterSetter(R,"fill",void 0,(0,o.getStringOrGradientValidator)()),n.Factory.addGetterSetter(R,"fillPatternX",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternY",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(R,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(R,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(R,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(R,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(R,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(R,"fillEnabled",!0),n.Factory.addGetterSetter(R,"strokeEnabled",!0),n.Factory.addGetterSetter(R,"shadowEnabled",!0),n.Factory.addGetterSetter(R,"dashEnabled",!0),n.Factory.addGetterSetter(R,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(R,"fillPriority","color"),n.Factory.addComponentsGetterSetter(R,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(R,"fillPatternOffsetX",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternOffsetY",0,(0,o.getNumberValidator)()),n.Factory.addComponentsGetterSetter(R,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(R,"fillPatternScaleX",1,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternScaleY",1,(0,o.getNumberValidator)()),n.Factory.addComponentsGetterSetter(R,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(R,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(R,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(R,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(R,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(R,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(R,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(R,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(R,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(R,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(R,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(R,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(R,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(R,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(R,"fillPatternRotation",0),n.Factory.addGetterSetter(R,"fillRule",void 0,(0,o.getStringValidator)()),n.Factory.backCompat(R,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})($p);const TR=un($p),OR=Wt({__proto__:null,default:TR},[$p]),xr=Jt(OR);Object.defineProperty(Gs,"__esModule",{value:!0});var $2=Gs.Layer=void 0;const Ti=or,kp=wu,Sa=ur,Ep=ge,k2=mu,AR=_e,NR=xr,RR=ye;var jR="#",IR="beforeDraw",DR="draw",E2=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],FR=E2.length;let $a=class extends kp.Container{constructor(t){super(t),this.canvas=new k2.SceneCanvas,this.hitCanvas=new k2.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(){Sa.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=Sa.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(Sa.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(Sa.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 Sa.Node.prototype.remove.call(this),t&&t.parentNode&&Ti.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"&&Ti.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(),Sa.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(){Ti.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){Ti.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,Ti.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<FR;i++){const o=E2[i],a=this._getIntersection({x:t.x+o.x*r,y:t.y+o.y*r}),s=a.shape;if(s)return s;if(n=!!a.antialiased,!a.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=Ti.Util._rgbToHex(n[0],n[1],n[2]),a=NR.shapes[jR+o];return a?{shape:a}:{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(IR,{node:this}),this.clearBeforeDraw()&&i.getContext().clear(),kp.Container.prototype.drawScene.call(this,i,r),this._fire(DR,{node:this}),this}drawHit(t,r){var n=this.getLayer(),i=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),kp.Container.prototype.drawHit.call(this,i,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){Ti.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return Ti.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 Ti.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};$2=Gs.Layer=$a,$a.prototype.nodeType="Layer",(0,RR._registerNode)($a),Ep.Factory.addGetterSetter($a,"imageSmoothingEnabled",!0),Ep.Factory.addGetterSetter($a,"clearBeforeDraw",!0),Ep.Factory.addGetterSetter($a,"hitGraphEnabled",!0,(0,AR.getBooleanValidator)());const MR=Wt({__proto__:null,get Layer(){return $2},default:Gs},[Gs]),C2=Jt(MR);var Vs={};Object.defineProperty(Vs,"__esModule",{value:!0});var P2=Vs.FastLayer=void 0;const LR=or,UR=C2,zR=ye;let Cp=class extends UR.Layer{constructor(t){super(t),this.listening(!1),LR.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}};P2=Vs.FastLayer=Cp,Cp.prototype.nodeType="FastLayer",(0,zR._registerNode)(Cp);const GR=Wt({__proto__:null,get FastLayer(){return P2},default:Vs},[Vs]),VR=Jt(GR);var Bs={};Object.defineProperty(Bs,"__esModule",{value:!0});var T2=Bs.Group=void 0;const BR=or,HR=wu,qR=ye;let Pp=class extends HR.Container{_validateAdd(t){var r=t.getType();r!=="Group"&&r!=="Shape"&&BR.Util.throw("You may only add groups and shapes to groups.")}};T2=Bs.Group=Pp,Pp.prototype.nodeType="Group",(0,qR._registerNode)(Pp);const KR=Wt({__proto__:null,get Group(){return T2},default:Bs},[Bs]),Tp=Jt(KR);var Hs={};Object.defineProperty(Hs,"__esModule",{value:!0});var O2=Hs.Animation=void 0;const Op=ye,A2=or,Ap=function(){return Op.glob.performance&&Op.glob.performance.now?function(){return Op.glob.performance.now()}:function(){return new Date().getTime()}}();let xu=class Ga{constructor(t,r){this.id=Ga.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Ap(),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=Ga.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=Ap(),Ga._addAnimation(this),this}stop(){return Ga._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,a=i.func;i._updateFrameObject(Ap());const s=o.length;let c;if(a?c=a.call(i,i.frame)!==!1:c=!0,!!c)for(let l=0;l<s;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=Ga;t.animations.length?(t._runFrames(),A2.Util.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,A2.Util.requestAnimFrame(this._animationLoop))}};O2=Hs.Animation=xu,xu.animations=[],xu.animIdCounter=0,xu.animRunning=!1;const YR=Wt({__proto__:null,get Animation(){return O2},default:Hs},[Hs]),Np=Jt(YR);var Rp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Easings=e.Tween=void 0;const t=or,r=Np,n=ur,i=ye;var o={node:1,duration:1,easing:1,onFinish:1,yoyo:1},a=1,s=2,c=3,l=0,u=["fill","stroke","shadowColor"];class d{constructor(p,g,v,_,y,m,x){this.prop=p,this.propFunc=g,this.begin=_,this._pos=_,this.duration=m,this._change=0,this.prevPos=0,this.yoyo=x,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=v,this._change=y-this.begin,this.pause()}fire(p){var g=this[p];g&&g()}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=s,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===s?this.setTime(p):this.state===c&&this.setTime(this.duration-p)}pause(){this.state=a,this.fire("onPause")}getTimer(){return new Date().getTime()}}class f{constructor(p){var g=this,v=p.node,_=v._id,y,m=p.easing||e.Easings.Linear,x=!!p.yoyo,N;typeof p.duration>"u"?y=.3:p.duration===0?y=.001:y=p.duration,this.node=v,this._id=l++;var $=v.getLayer()||(v instanceof i.Konva.Stage?v.getLayers():null);$||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(){g.tween.onEnterFrame()},$),this.tween=new d(N,function(A){g._tweenFunc(A)},m,0,1,y*1e3,x),this._addListeners(),f.attrs[_]||(f.attrs[_]={}),f.attrs[_][this._id]||(f.attrs[_][this._id]={}),f.tweens[_]||(f.tweens[_]={});for(N in p)o[N]===void 0&&this._addAttr(N,p[N]);this.reset(),this.onFinish=p.onFinish,this.onReset=p.onReset,this.onUpdate=p.onUpdate}_addAttr(p,g){var v=this.node,_=v._id,y,m,x,N,$,A,R,G;if(x=f.tweens[_][p],x&&delete f.attrs[_][x][p],y=v.getAttr(p),t.Util._isArray(g))if(m=[],$=Math.max(g.length,y.length),p==="points"&&g.length!==y.length&&(g.length>y.length?(R=y,y=t.Util._prepareArrayForTween(y,g,v.closed())):(A=g,g=t.Util._prepareArrayForTween(g,y,v.closed()))),p.indexOf("fill")===0)for(N=0;N<$;N++)if(N%2===0)m.push(g[N]-y[N]);else{var H=t.Util.colorToRGBA(y[N]);G=t.Util.colorToRGBA(g[N]),y[N]=H,m.push({r:G.r-H.r,g:G.g-H.g,b:G.b-H.b,a:G.a-H.a})}else for(N=0;N<$;N++)m.push(g[N]-y[N]);else u.indexOf(p)!==-1?(y=t.Util.colorToRGBA(y),G=t.Util.colorToRGBA(g),m={r:G.r-y.r,g:G.g-y.g,b:G.b-y.b,a:G.a-y.a}):m=g-y;f.attrs[_][this._id][p]={start:y,diff:m,end:g,trueEnd:A,trueStart:R},f.tweens[_][p]=this._id}_tweenFunc(p){var g=this.node,v=f.attrs[g._id][this._id],_,y,m,x,N,$,A,R;for(_ in v){if(y=v[_],m=y.start,x=y.diff,R=y.end,t.Util._isArray(m))if(N=[],A=Math.max(m.length,R.length),_.indexOf("fill")===0)for($=0;$<A;$++)$%2===0?N.push((m[$]||0)+x[$]*p):N.push("rgba("+Math.round(m[$].r+x[$].r*p)+","+Math.round(m[$].g+x[$].g*p)+","+Math.round(m[$].b+x[$].b*p)+","+(m[$].a+x[$].a*p)+")");else for($=0;$<A;$++)N.push((m[$]||0)+x[$]*p);else u.indexOf(_)!==-1?N="rgba("+Math.round(m.r+x.r*p)+","+Math.round(m.g+x.g*p)+","+Math.round(m.b+x.b*p)+","+(m.a+x.a*p)+")":N=m+x*p;g.setAttr(_,N)}}_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,g=f.attrs[p._id][this._id];g.points&&g.points.trueEnd&&p.setAttr("points",g.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var p=this.node,g=f.attrs[p._id][this._id];g.points&&g.points.trueStart&&p.points(g.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,g=this._id,v=f.tweens[p],_;this.pause();for(_ in v)delete f.tweens[p][_];delete f.attrs[p][g]}}e.Tween=f,f.attrs={},f.tweens={},n.Node.prototype.to=function(h){var p=h.onFinish;h.node=this,h.onFinish=function(){this.destroy(),p&&p()};var g=new f(h);g.play()},e.Easings={BackEaseIn(h,p,g,v){var _=1.70158;return g*(h/=v)*h*((_+1)*h-_)+p},BackEaseOut(h,p,g,v){var _=1.70158;return g*((h=h/v-1)*h*((_+1)*h+_)+1)+p},BackEaseInOut(h,p,g,v){var _=1.70158;return(h/=v/2)<1?g/2*(h*h*(((_*=1.525)+1)*h-_))+p:g/2*((h-=2)*h*(((_*=1.525)+1)*h+_)+2)+p},ElasticEaseIn(h,p,g,v,_,y){var m=0;return h===0?p:(h/=v)===1?p+g:(y||(y=v*.3),!_||_<Math.abs(g)?(_=g,m=y/4):m=y/(2*Math.PI)*Math.asin(g/_),-(_*Math.pow(2,10*(h-=1))*Math.sin((h*v-m)*(2*Math.PI)/y))+p)},ElasticEaseOut(h,p,g,v,_,y){var m=0;return h===0?p:(h/=v)===1?p+g:(y||(y=v*.3),!_||_<Math.abs(g)?(_=g,m=y/4):m=y/(2*Math.PI)*Math.asin(g/_),_*Math.pow(2,-10*h)*Math.sin((h*v-m)*(2*Math.PI)/y)+g+p)},ElasticEaseInOut(h,p,g,v,_,y){var m=0;return h===0?p:(h/=v/2)===2?p+g:(y||(y=v*(.3*1.5)),!_||_<Math.abs(g)?(_=g,m=y/4):m=y/(2*Math.PI)*Math.asin(g/_),h<1?-.5*(_*Math.pow(2,10*(h-=1))*Math.sin((h*v-m)*(2*Math.PI)/y))+p:_*Math.pow(2,-10*(h-=1))*Math.sin((h*v-m)*(2*Math.PI)/y)*.5+g+p)},BounceEaseOut(h,p,g,v){return(h/=v)<1/2.75?g*(7.5625*h*h)+p:h<2/2.75?g*(7.5625*(h-=1.5/2.75)*h+.75)+p:h<2.5/2.75?g*(7.5625*(h-=2.25/2.75)*h+.9375)+p:g*(7.5625*(h-=2.625/2.75)*h+.984375)+p},BounceEaseIn(h,p,g,v){return g-e.Easings.BounceEaseOut(v-h,0,g,v)+p},BounceEaseInOut(h,p,g,v){return h<v/2?e.Easings.BounceEaseIn(h*2,0,g,v)*.5+p:e.Easings.BounceEaseOut(h*2-v,0,g,v)*.5+g*.5+p},EaseIn(h,p,g,v){return g*(h/=v)*h+p},EaseOut(h,p,g,v){return-g*(h/=v)*(h-2)+p},EaseInOut(h,p,g,v){return(h/=v/2)<1?g/2*h*h+p:-g/2*(--h*(h-2)-1)+p},StrongEaseIn(h,p,g,v){return g*(h/=v)*h*h*h*h+p},StrongEaseOut(h,p,g,v){return g*((h=h/v-1)*h*h*h*h+1)+p},StrongEaseInOut(h,p,g,v){return(h/=v/2)<1?g/2*h*h*h*h*h+p:g/2*((h-=2)*h*h*h*h+2)+p},Linear(h,p,g,v){return g*h/v+p}}})(Rp);const XR=un(Rp),WR=Wt({__proto__:null,default:XR},[Rp]),JR=Jt(WR);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;const t=ye,r=or,n=ur,i=wu,o=PR,a=C2,s=VR,c=Tp,l=yp,u=xr,d=Np,f=JR,h=r2,p=mu;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:a.Layer,FastLayer:s.FastLayer,Group:c.Group,DD:l.DD,Shape:u.Shape,shapes:u.shapes,Animation:d.Animation,Tween:f.Tween,Easings:f.Easings,Context:h.Context,Canvas:p.Canvas}),e.default=e.Konva})(fp);const QR=un(fp),ZR=Wt({__proto__:null,default:QR},[fp]),tj=Jt(ZR);var qs={};Object.defineProperty(qs,"__esModule",{value:!0});var N2=qs.Arc=void 0;const Su=ge,ej=xr,R2=ye,$u=_e,rj=ye;let Oi=class extends ej.Shape{_sceneFunc(t){var r=R2.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=R2.Konva.getAngle(n?360-this.angle():this.angle()),o=Math.cos(Math.min(i,Math.PI)),a=1,s=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=a*r,d=s*(s>0?t:r),f=c*(c>0?r:t);return{x:l,y:n?-1*f:d,width:u-l,height:f-d}}};N2=qs.Arc=Oi,Oi.prototype._centroid=!0,Oi.prototype.className="Arc",Oi.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,rj._registerNode)(Oi),Su.Factory.addGetterSetter(Oi,"innerRadius",0,(0,$u.getNumberValidator)()),Su.Factory.addGetterSetter(Oi,"outerRadius",0,(0,$u.getNumberValidator)()),Su.Factory.addGetterSetter(Oi,"angle",0,(0,$u.getNumberValidator)()),Su.Factory.addGetterSetter(Oi,"clockwise",!1,(0,$u.getBooleanValidator)());const nj=Wt({__proto__:null,get Arc(){return N2},default:qs},[qs]),ij=Jt(nj);var Ks={},Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});var j2=Ys.Line=void 0;const ku=ge,oj=xr,I2=_e,aj=ye;function jp(e,t,r,n,i,o,a){var s=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=a*s/(s+c),u=a*c/(s+c),d=r-l*(i-e),f=n-l*(o-t),h=r+u*(i-e),p=n+u*(o-t);return[d,f,h,p]}function D2(e,t){var r=e.length,n=[],i,o;for(i=2;i<r-2;i+=2)o=jp(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}let Ji=class extends oj.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(),a=this.bezier(),s,c,l;if(n){if(t.beginPath(),t.moveTo(r[0],r[1]),i!==0&&n>4){for(s=this.getTensionPoints(),c=s.length,l=o?0:4,o||t.quadraticCurveTo(s[0],s[1],s[2],s[3]);l<c-2;)t.bezierCurveTo(s[l++],s[l++],s[l++],s[l++],s[l++],s[l++]);o||t.quadraticCurveTo(s[c-2],s[c-1],r[n-2],r[n-1])}else if(a)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():D2(this.points(),this.tension())}_getTensionPointsClosed(){var t=this.points(),r=t.length,n=this.tension(),i=jp(t[r-2],t[r-1],t[0],t[1],t[2],t[3],n),o=jp(t[r-4],t[r-3],t[r-2],t[r-1],t[0],t[1],n),a=D2(t,n),s=[i[2],i[3]].concat(a).concat([o[0],o[1],t[r-2],t[r-1],o[2],o[3],i[0],i[1],t[0],t[1]]);return s}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],a,s,c=0;c<t.length/2;c++)a=t[c*2],s=t[c*2+1],r=Math.min(r,a),n=Math.max(n,a),i=Math.min(i,s),o=Math.max(o,s);return{x:r,y:i,width:n-r,height:o-i}}};j2=Ys.Line=Ji,Ji.prototype.className="Line",Ji.prototype._attrsAffectingSize=["points","bezier","tension"],(0,aj._registerNode)(Ji),ku.Factory.addGetterSetter(Ji,"closed",!1),ku.Factory.addGetterSetter(Ji,"bezier",!1),ku.Factory.addGetterSetter(Ji,"tension",0,(0,I2.getNumberValidator)()),ku.Factory.addGetterSetter(Ji,"points",[],(0,I2.getNumberArrayValidator)());const sj=Wt({__proto__:null,get Line(){return j2},default:Ys},[Ys]),F2=Jt(sj);var Xs={},Ip={};(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=(a,s,c)=>{let l,u,d;l=c/2,u=0;for(let f=0;f<20;f++)d=l*e.tValues[20][f]+l,u+=e.cValues[20][f]*n(a,s,d);return l*u};e.getCubicArcLength=t;const r=(a,s,c)=>{c===void 0&&(c=1);const l=a[0]-2*a[1]+a[2],u=s[0]-2*s[1]+s[2],d=2*a[1]-2*a[0],f=2*s[1]-2*s[0],h=4*(l*l+u*u),p=4*(l*d+u*f),g=d*d+f*f;if(h===0)return c*Math.sqrt(Math.pow(a[2]-a[0],2)+Math.pow(s[2]-s[0],2));const v=p/(2*h),_=g/h,y=c+v,m=_-v*v,x=y*y+m>0?Math.sqrt(y*y+m):0,N=v*v+m>0?Math.sqrt(v*v+m):0,$=v+Math.sqrt(v*v+m)!==0?m*Math.log(Math.abs((y+x)/(v+N))):0;return Math.sqrt(h)/2*(y*x-v*N+$)};e.getQuadraticArcLength=r;function n(a,s,c){const l=i(1,c,a),u=i(1,c,s),d=l*l+u*u;return Math.sqrt(d)}const i=(a,s,c)=>{const l=c.length-1;let u,d;if(l===0)return 0;if(a===0){d=0;for(let f=0;f<=l;f++)d+=e.binomialCoefficients[l][f]*Math.pow(1-s,l-f)*Math.pow(s,f)*c[f];return d}else{u=new Array(l);for(let f=0;f<l;f++)u[f]=l*(c[f+1]-c[f]);return i(a-1,s,u)}},o=(a,s,c)=>{let l=1,u=a/s,d=(a-c(u))/s,f=0;for(;l>.001;){const h=c(u+d),p=Math.abs(a-h)/s;if(p<l)l=p,u+=d;else{const g=c(u-d),v=Math.abs(a-g)/s;v<l?(l=v,u-=d):d/=2}if(f++,f>500)break}return u};e.t2length=o})(Ip);const lj=un(Ip),cj=Wt({__proto__:null,default:lj},[Ip]),uj=Jt(cj);Object.defineProperty(Xs,"__esModule",{value:!0});var M2=Xs.Path=void 0;const hj=ge,dj=xr,fj=ye,ka=uj;let Ws=class ln extends dj.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=ln.parsePathData(this.data()),this.pathLength=ln.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,a=r[i].points;switch(o){case"L":t.lineTo(a[0],a[1]);break;case"M":t.moveTo(a[0],a[1]);break;case"C":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"Q":t.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case"A":var s=a[0],c=a[1],l=a[2],u=a[3],d=a[4],f=a[5],h=a[6],p=a[7],g=l>u?l:u,v=l>u?1:l/u,_=l>u?u/l:1;t.translate(s,c),t.rotate(h),t.scale(v,_),t.arc(0,0,g,d,d+f,1-p),t.scale(1/v,1/_),t.rotate(-h),t.translate(-s,-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],d=l.points[5],f=l.points[4]+d,h=Math.PI/180;if(Math.abs(u-f)<h&&(h=Math.abs(u-f)),d<0)for(let p=u-h;p>f;p-=h){const g=ln.getPointOnEllipticalArc(l.points[0],l.points[1],l.points[2],l.points[3],p,0);t.push(g.x,g.y)}else for(let p=u+h;p<f;p+=h){const g=ln.getPointOnEllipticalArc(l.points[0],l.points[1],l.points[2],l.points[3],p,0);t.push(g.x,g.y)}}else if(l.command==="C")for(let p=0;p<=1;p+=.01){const g=ln.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(g.x,g.y)}else t=t.concat(l.points)});for(var r=t[0],n=t[0],i=t[1],o=t[1],a,s,c=0;c<t.length/2;c++)a=t[c*2],s=t[c*2+1],isNaN(a)||(r=Math.min(r,a),n=Math.max(n,a)),isNaN(s)||(i=Math.min(i,s),o=Math.max(o,s));return{x:r,y:i,width:n-r,height:o-i}}getLength(){return this.pathLength}getPointAtLength(t){return ln.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 a=r[i],s=a.points;switch(a.command){case"L":return ln.getPointOnLine(t,a.start.x,a.start.y,s[0],s[1]);case"C":return ln.getPointOnCubicBezier((0,ka.t2length)(t,ln.getPathLength(r),g=>(0,ka.getCubicArcLength)([a.start.x,s[0],s[2],s[4]],[a.start.y,s[1],s[3],s[5]],g)),a.start.x,a.start.y,s[0],s[1],s[2],s[3],s[4],s[5]);case"Q":return ln.getPointOnQuadraticBezier((0,ka.t2length)(t,ln.getPathLength(r),g=>(0,ka.getQuadraticArcLength)([a.start.x,s[0],s[2]],[a.start.y,s[1],s[3]],g)),a.start.x,a.start.y,s[0],s[1],s[2],s[3]);case"A":var c=s[0],l=s[1],u=s[2],d=s[3],f=s[4],h=s[5],p=s[6];return f+=h*t/a.pathLength,ln.getPointOnEllipticalArc(c,l,u,d,f,p)}return null}static getPointOnLine(t,r,n,i,o,a,s){a===void 0&&(a=r),s===void 0&&(s=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,d;if(i===r)d={x:a,y:s+u};else if((s-n)/(a-r+1e-8)===c)d={x:a+l,y:s+u};else{var f,h,p=this.getLineLength(r,n,i,o),g=(a-r)*(i-r)+(s-n)*(o-n);g=g/(p*p),f=r+g*(i-r),h=n+g*(o-n);var v=this.getLineLength(a,s,f,h),_=Math.sqrt(t*t-v*v);l=Math.sqrt(_*_/(1+c*c)),i<r&&(l*=-1),u=c*l,d={x:f+l,y:h+u}}return d}static getPointOnCubicBezier(t,r,n,i,o,a,s,c,l){function u(v){return v*v*v}function d(v){return 3*v*v*(1-v)}function f(v){return 3*v*(1-v)*(1-v)}function h(v){return(1-v)*(1-v)*(1-v)}var p=c*u(t)+a*d(t)+i*f(t)+r*h(t),g=l*u(t)+s*d(t)+o*f(t)+n*h(t);return{x:p,y:g}}static getPointOnQuadraticBezier(t,r,n,i,o,a,s){function c(h){return h*h}function l(h){return 2*h*(1-h)}function u(h){return(1-h)*(1-h)}var d=a*c(t)+i*l(t)+r*u(t),f=s*c(t)+o*l(t)+n*u(t);return{x:d,y:f}}static getPointOnEllipticalArc(t,r,n,i,o,a){var s=Math.cos(a),c=Math.sin(a),l={x:n*Math.cos(o),y:i*Math.sin(o)};return{x:t+(l.x*s-l.y*c),y:r+(l.x*c+l.y*s)}}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("|"),a=[],s=[],c=0,l=0,u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,d;for(i=1;i<o.length;i++){var f=o[i],h=f.charAt(0);for(f=f.slice(1),s.length=0;d=u.exec(f);)s.push(d[0]);for(var p=[],g=0,v=s.length;g<v;g++){if(s[g]==="00"){p.push(0,0);continue}var _=parseFloat(s[g]);isNaN(_)?p.push(0):p.push(_)}for(;p.length>0&&!isNaN(p[0]);){var y="",m=[],x=c,N=l,$,A,R,G,H,Y,J,nt,rt,lt;switch(h){case"l":c+=p.shift(),l+=p.shift(),y="L",m.push(c,l);break;case"L":c=p.shift(),l=p.shift(),m.push(c,l);break;case"m":var xt=p.shift(),Ct=p.shift();if(c+=xt,l+=Ct,y="M",a.length>2&&a[a.length-1].command==="z"){for(var $t=a.length-2;$t>=0;$t--)if(a[$t].command==="M"){c=a[$t].points[0]+xt,l=a[$t].points[1]+Ct;break}}m.push(c,l),h="l";break;case"M":c=p.shift(),l=p.shift(),y="M",m.push(c,l),h="L";break;case"h":c+=p.shift(),y="L",m.push(c,l);break;case"H":c=p.shift(),y="L",m.push(c,l);break;case"v":l+=p.shift(),y="L",m.push(c,l);break;case"V":l=p.shift(),y="L",m.push(c,l);break;case"C":m.push(p.shift(),p.shift(),p.shift(),p.shift()),c=p.shift(),l=p.shift(),m.push(c,l);break;case"c":m.push(c+p.shift(),l+p.shift(),c+p.shift(),l+p.shift()),c+=p.shift(),l+=p.shift(),y="C",m.push(c,l);break;case"S":A=c,R=l,$=a[a.length-1],$.command==="C"&&(A=c+(c-$.points[2]),R=l+(l-$.points[3])),m.push(A,R,p.shift(),p.shift()),c=p.shift(),l=p.shift(),y="C",m.push(c,l);break;case"s":A=c,R=l,$=a[a.length-1],$.command==="C"&&(A=c+(c-$.points[2]),R=l+(l-$.points[3])),m.push(A,R,c+p.shift(),l+p.shift()),c+=p.shift(),l+=p.shift(),y="C",m.push(c,l);break;case"Q":m.push(p.shift(),p.shift()),c=p.shift(),l=p.shift(),m.push(c,l);break;case"q":m.push(c+p.shift(),l+p.shift()),c+=p.shift(),l+=p.shift(),y="Q",m.push(c,l);break;case"T":A=c,R=l,$=a[a.length-1],$.command==="Q"&&(A=c+(c-$.points[0]),R=l+(l-$.points[1])),c=p.shift(),l=p.shift(),y="Q",m.push(A,R,c,l);break;case"t":A=c,R=l,$=a[a.length-1],$.command==="Q"&&(A=c+(c-$.points[0]),R=l+(l-$.points[1])),c+=p.shift(),l+=p.shift(),y="Q",m.push(A,R,c,l);break;case"A":G=p.shift(),H=p.shift(),Y=p.shift(),J=p.shift(),nt=p.shift(),rt=c,lt=l,c=p.shift(),l=p.shift(),y="A",m=this.convertEndpointToCenterParameterization(rt,lt,c,l,J,nt,G,H,Y);break;case"a":G=p.shift(),H=p.shift(),Y=p.shift(),J=p.shift(),nt=p.shift(),rt=c,lt=l,c+=p.shift(),l+=p.shift(),y="A",m=this.convertEndpointToCenterParameterization(rt,lt,c,l,J,nt,G,H,Y);break}a.push({command:y||h,points:m,start:{x,y:N},pathLength:this.calcLength(x,N,y||h,m)})}(h==="z"||h==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,r,n,i){var o,a,s,c,l=ln;switch(n){case"L":return l.getLineLength(t,r,i[0],i[1]);case"C":return(0,ka.getCubicArcLength)([t,i[0],i[2],i[4]],[r,i[1],i[3],i[5]],1);case"Q":return(0,ka.getQuadraticArcLength)([t,i[0],i[2]],[r,i[1],i[3]],1);case"A":o=0;var u=i[4],d=i[5],f=i[4]+d,h=Math.PI/180;if(Math.abs(u-f)<h&&(h=Math.abs(u-f)),a=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),d<0)for(c=u-h;c>f;c-=h)s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=l.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(c=u+h;c<f;c+=h)s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=l.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],f,0),o+=l.getLineLength(a.x,a.y,s.x,s.y),o}return 0}static convertEndpointToCenterParameterization(t,r,n,i,o,a,s,c,l){var u=l*(Math.PI/180),d=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,h=d*d/(s*s)+f*f/(c*c);h>1&&(s*=Math.sqrt(h),c*=Math.sqrt(h));var p=Math.sqrt((s*s*(c*c)-s*s*(f*f)-c*c*(d*d))/(s*s*(f*f)+c*c*(d*d)));o===a&&(p*=-1),isNaN(p)&&(p=0);var g=p*s*f/c,v=p*-c*d/s,_=(t+n)/2+Math.cos(u)*g-Math.sin(u)*v,y=(r+i)/2+Math.sin(u)*g+Math.cos(u)*v,m=function(H){return Math.sqrt(H[0]*H[0]+H[1]*H[1])},x=function(H,Y){return(H[0]*Y[0]+H[1]*Y[1])/(m(H)*m(Y))},N=function(H,Y){return(H[0]*Y[1]<H[1]*Y[0]?-1:1)*Math.acos(x(H,Y))},$=N([1,0],[(d-g)/s,(f-v)/c]),A=[(d-g)/s,(f-v)/c],R=[(-1*d-g)/s,(-1*f-v)/c],G=N(A,R);return x(A,R)<=-1&&(G=Math.PI),x(A,R)>=1&&(G=0),a===0&&G>0&&(G=G-2*Math.PI),a===1&&G<0&&(G=G+2*Math.PI),[_,y,s,c,$,G,u,a]}};M2=Xs.Path=Ws,Ws.prototype.className="Path",Ws.prototype._attrsAffectingSize=["data"],(0,fj._registerNode)(Ws),hj.Factory.addGetterSetter(Ws,"data");const pj=Wt({__proto__:null,get Path(){return M2},default:Xs},[Xs]),Dp=Jt(pj);Object.defineProperty(Ks,"__esModule",{value:!0});var L2=Ks.Arrow=void 0;const Eu=ge,mj=F2,U2=_e,gj=ye,z2=Dp;let Fo=class extends mj.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 a=this.pointerLength(),s=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[s-2],n[s-1]],h=z2.Path.calcLength(i[i.length-4],i[i.length-3],"C",f),p=z2.Path.getPointOnQuadraticBezier(Math.min(1,1-a/h),f[0],f[1],f[2],f[3],f[4],f[5]);c=n[s-2]-p.x,l=n[s-1]-p.y}else c=n[s-2]-n[s-4],l=n[s-1]-n[s-3];var u=(Math.atan2(l,c)+r)%r,d=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[s-2],n[s-1]),t.rotate(u),t.moveTo(0,0),t.lineTo(-a,d/2),t.lineTo(-a,-d/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(-a,d/2),t.lineTo(-a,-d/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}}};L2=Ks.Arrow=Fo,Fo.prototype.className="Arrow",(0,gj._registerNode)(Fo),Eu.Factory.addGetterSetter(Fo,"pointerLength",10,(0,U2.getNumberValidator)()),Eu.Factory.addGetterSetter(Fo,"pointerWidth",10,(0,U2.getNumberValidator)()),Eu.Factory.addGetterSetter(Fo,"pointerAtBeginning",!1),Eu.Factory.addGetterSetter(Fo,"pointerAtEnding",!0);const vj=Wt({__proto__:null,get Arrow(){return L2},default:Ks},[Ks]),yj=Jt(vj);var Js={};Object.defineProperty(Js,"__esModule",{value:!0});var G2=Js.Circle=void 0;const _j=ge,bj=xr,wj=_e,xj=ye;class Ea extends bj.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)}}G2=Js.Circle=Ea,Ea.prototype._centroid=!0,Ea.prototype.className="Circle",Ea.prototype._attrsAffectingSize=["radius"],(0,xj._registerNode)(Ea),_j.Factory.addGetterSetter(Ea,"radius",0,(0,wj.getNumberValidator)());const Sj=Wt({__proto__:null,get Circle(){return G2},default:Js},[Js]),$j=Jt(Sj);var Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});var V2=Qs.Ellipse=void 0;const Fp=ge,kj=xr,B2=_e,Ej=ye;class Qi extends kj.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)}}V2=Qs.Ellipse=Qi,Qi.prototype.className="Ellipse",Qi.prototype._centroid=!0,Qi.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,Ej._registerNode)(Qi),Fp.Factory.addComponentsGetterSetter(Qi,"radius",["x","y"]),Fp.Factory.addGetterSetter(Qi,"radiusX",0,(0,B2.getNumberValidator)()),Fp.Factory.addGetterSetter(Qi,"radiusY",0,(0,B2.getNumberValidator)());const Cj=Wt({__proto__:null,get Ellipse(){return V2},default:Qs},[Qs]),Pj=Jt(Cj);var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});var H2=Zs.Image=void 0;const Mp=or,Mo=ge,Tj=xr,Oj=ye,tl=_e;let ai=class Y$ extends Tj.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 a;if(o){const s=this.attrs.cropWidth,c=this.attrs.cropHeight;s&&c?a=[o,this.cropX(),this.cropY(),s,c,0,0,r,n]:a=[o,0,0,r,n]}(this.hasFill()||this.hasStroke()||i)&&(t.beginPath(),i?Mp.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,a))}_hitFunc(t){var r=this.width(),n=this.height(),i=this.cornerRadius();t.beginPath(),i?Mp.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=Mp.Util.createImageElement();i.onload=function(){var o=new Y$({image:i});r(o)},i.onerror=n,i.crossOrigin="Anonymous",i.src=t}};H2=Zs.Image=ai,ai.prototype.className="Image",(0,Oj._registerNode)(ai),Mo.Factory.addGetterSetter(ai,"cornerRadius",0,(0,tl.getNumberOrArrayOfNumbersValidator)(4)),Mo.Factory.addGetterSetter(ai,"image"),Mo.Factory.addComponentsGetterSetter(ai,"crop",["x","y","width","height"]),Mo.Factory.addGetterSetter(ai,"cropX",0,(0,tl.getNumberValidator)()),Mo.Factory.addGetterSetter(ai,"cropY",0,(0,tl.getNumberValidator)()),Mo.Factory.addGetterSetter(ai,"cropWidth",0,(0,tl.getNumberValidator)()),Mo.Factory.addGetterSetter(ai,"cropHeight",0,(0,tl.getNumberValidator)());const Aj=Wt({__proto__:null,get Image(){return H2},default:Zs},[Zs]),Nj=Jt(Aj);var Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});var q2=Lo.Tag=X2=Lo.Label=void 0;const Cu=ge,Rj=xr,jj=Tp,Lp=_e,K2=ye;var Y2=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],Ij="Change.konva",Dj="none",Up="up",zp="right",Gp="down",Vp="left",Fj=Y2.length;let Bp=class extends jj.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<Fj;n++)t.on(Y2[n]+Ij,i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var t=this.getText(),r=this.getTag(),n,i,o,a,s,c,l;if(t&&r){switch(n=t.width(),i=t.height(),o=r.pointerDirection(),a=r.pointerWidth(),l=r.pointerHeight(),s=0,c=0,o){case Up:s=n/2,c=-1*l;break;case zp:s=n+a,c=i/2;break;case Gp:s=n/2,c=i+l;break;case Vp:s=-1*a,c=i/2;break}r.setAttrs({x:-1*s,y:-1*c,width:n,height:i}),t.setAttrs({x:-1*s,y:-1*c})}}};var X2=Lo.Label=Bp;Bp.prototype.className="Label",(0,K2._registerNode)(Bp);let Uo=class extends Rj.Shape{_sceneFunc(t){var r=this.width(),n=this.height(),i=this.pointerDirection(),o=this.pointerWidth(),a=this.pointerHeight(),s=this.cornerRadius();let c=0,l=0,u=0,d=0;typeof s=="number"?c=l=u=d=Math.min(s,r/2,n/2):(c=Math.min(s[0]||0,r/2,n/2),l=Math.min(s[1]||0,r/2,n/2),d=Math.min(s[2]||0,r/2,n/2),u=Math.min(s[3]||0,r/2,n/2)),t.beginPath(),t.moveTo(c,0),i===Up&&(t.lineTo((r-o)/2,0),t.lineTo(r/2,-1*a),t.lineTo((r+o)/2,0)),t.lineTo(r-l,0),t.arc(r-l,l,l,Math.PI*3/2,0,!1),i===zp&&(t.lineTo(r,(n-a)/2),t.lineTo(r+o,n/2),t.lineTo(r,(n+a)/2)),t.lineTo(r,n-d),t.arc(r-d,n-d,d,0,Math.PI/2,!1),i===Gp&&(t.lineTo((r+o)/2,n),t.lineTo(r/2,n+a),t.lineTo((r-o)/2,n)),t.lineTo(u,n),t.arc(u,n-u,u,Math.PI/2,Math.PI,!1),i===Vp&&(t.lineTo(0,(n+a)/2),t.lineTo(-1*o,n/2),t.lineTo(0,(n-a)/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(),a=this.width(),s=this.height();return o===Up?(r-=i,s+=i):o===Gp?s+=i:o===Vp?(t-=n*1.5,a+=n):o===zp&&(a+=n*1.5),{x:t,y:r,width:a,height:s}}};q2=Lo.Tag=Uo,Uo.prototype.className="Tag",(0,K2._registerNode)(Uo),Cu.Factory.addGetterSetter(Uo,"pointerDirection",Dj),Cu.Factory.addGetterSetter(Uo,"pointerWidth",0,(0,Lp.getNumberValidator)()),Cu.Factory.addGetterSetter(Uo,"pointerHeight",0,(0,Lp.getNumberValidator)()),Cu.Factory.addGetterSetter(Uo,"cornerRadius",0,(0,Lp.getNumberOrArrayOfNumbersValidator)(4));const Mj=Wt({__proto__:null,get Label(){return X2},get Tag(){return q2},default:Lo},[Lo]),Lj=Jt(Mj);var el={};Object.defineProperty(el,"__esModule",{value:!0});var W2=el.Rect=void 0;const Uj=ge,zj=xr,Gj=ye,Vj=or,Bj=_e;class Pu extends zj.Shape{_sceneFunc(t){var r=this.cornerRadius(),n=this.width(),i=this.height();t.beginPath(),r?Vj.Util.drawRoundedRectPath(t,n,i,r):t.rect(0,0,n,i),t.closePath(),t.fillStrokeShape(this)}}W2=el.Rect=Pu,Pu.prototype.className="Rect",(0,Gj._registerNode)(Pu),Uj.Factory.addGetterSetter(Pu,"cornerRadius",0,(0,Bj.getNumberOrArrayOfNumbersValidator)(4));const Hj=Wt({__proto__:null,get Rect(){return W2},default:el},[el]),J2=Jt(Hj);var rl={};Object.defineProperty(rl,"__esModule",{value:!0});var Q2=rl.RegularPolygon=void 0;const Z2=ge,qj=xr,tw=_e,Kj=ye;let zo=class extends qj.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(a=>{r=Math.min(r,a.x),n=Math.max(n,a.x),i=Math.min(i,a.y),o=Math.max(o,a.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)}};Q2=rl.RegularPolygon=zo,zo.prototype.className="RegularPolygon",zo.prototype._centroid=!0,zo.prototype._attrsAffectingSize=["radius"],(0,Kj._registerNode)(zo),Z2.Factory.addGetterSetter(zo,"radius",0,(0,tw.getNumberValidator)()),Z2.Factory.addGetterSetter(zo,"sides",0,(0,tw.getNumberValidator)());const Yj=Wt({__proto__:null,get RegularPolygon(){return Q2},default:rl},[rl]),Xj=Jt(Yj);var nl={};Object.defineProperty(nl,"__esModule",{value:!0});var ew=nl.Ring=void 0;const rw=ge,Wj=xr,nw=_e,Jj=ye;var iw=Math.PI*2;let Go=class extends Wj.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,iw,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),iw,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)}};ew=nl.Ring=Go,Go.prototype.className="Ring",Go.prototype._centroid=!0,Go.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,Jj._registerNode)(Go),rw.Factory.addGetterSetter(Go,"innerRadius",0,(0,nw.getNumberValidator)()),rw.Factory.addGetterSetter(Go,"outerRadius",0,(0,nw.getNumberValidator)());const Qj=Wt({__proto__:null,get Ring(){return ew},default:nl},[nl]),Zj=Jt(Qj);var il={};Object.defineProperty(il,"__esModule",{value:!0});var ow=il.Sprite=void 0;const Vo=ge,tI=xr,eI=Np,aw=_e,rI=ye;let si=class extends tI.Shape{constructor(t){super(t),this._updated=!0,this.anim=new eI.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],a=this.frameOffsets(),s=o[i+0],c=o[i+1],l=o[i+2],u=o[i+3],d=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,l,u),t.closePath(),t.fillStrokeShape(this)),d)if(a){var f=a[r],h=n*2;t.drawImage(d,s,c,l,u,f[h+0],f[h+1],l,u)}else t.drawImage(d,s,c,l,u,0,0,l,u)}_hitFunc(t){var r=this.animation(),n=this.frameIndex(),i=n*4,o=this.animations()[r],a=this.frameOffsets(),s=o[i+2],c=o[i+3];if(t.beginPath(),a){var l=a[r],u=n*2;t.rect(l[u+0],l[u+1],s,c)}else t.rect(0,0,s,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)}};ow=il.Sprite=si,si.prototype.className="Sprite",(0,rI._registerNode)(si),Vo.Factory.addGetterSetter(si,"animation"),Vo.Factory.addGetterSetter(si,"animations"),Vo.Factory.addGetterSetter(si,"frameOffsets"),Vo.Factory.addGetterSetter(si,"image"),Vo.Factory.addGetterSetter(si,"frameIndex",0,(0,aw.getNumberValidator)()),Vo.Factory.addGetterSetter(si,"frameRate",17,(0,aw.getNumberValidator)()),Vo.Factory.backCompat(si,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});const nI=Wt({__proto__:null,get Sprite(){return ow},default:il},[il]),iI=Jt(nI);var ol={};Object.defineProperty(ol,"__esModule",{value:!0});var sw=ol.Star=void 0;const Hp=ge,oI=xr,qp=_e,aI=ye;let Zi=class extends oI.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 a=o%2===0?n:r,s=a*Math.sin(o*Math.PI/i),c=-1*a*Math.cos(o*Math.PI/i);t.lineTo(s,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)}};sw=ol.Star=Zi,Zi.prototype.className="Star",Zi.prototype._centroid=!0,Zi.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,aI._registerNode)(Zi),Hp.Factory.addGetterSetter(Zi,"numPoints",5,(0,qp.getNumberValidator)()),Hp.Factory.addGetterSetter(Zi,"innerRadius",0,(0,qp.getNumberValidator)()),Hp.Factory.addGetterSetter(Zi,"outerRadius",0,(0,qp.getNumberValidator)());const sI=Wt({__proto__:null,get Star(){return sw},default:ol},[ol]),lI=Jt(sI);var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});var lw=Bo.Text=uw=Bo.stringToArray=void 0;const Kp=or,Nr=ge,cI=xr,to=_e,uI=ye;function cw(e){return Array.from(e)}var uw=Bo.stringToArray=cw,Ca="auto",hI="center",hw="inherit",al="justify",dI="Change.konva",fI="2d",dw="-",fw="left",pI="text",mI="Text",gI="top",vI="bottom",pw="middle",mw="normal",yI="px ",Tu=" ",_I="right",gw="rtl",bI="word",wI="char",vw="none",Yp="…",yw=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],xI=yw.length;function SI(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 Xp;function Wp(){return Xp||(Xp=Kp.Util.createCanvasElement().getContext(fI),Xp)}function $I(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function kI(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function EI(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}class sr extends cI.Shape{constructor(t){super(EI(t)),this._partialTextX=0,this._partialTextY=0;for(var r=0;r<xI;r++)this.on(yw[r]+dI,this._setTextData);this._setTextData()}_sceneFunc(t){var r=this.textArr,n=r.length;if(this.text()){var i=this.padding(),o=this.fontSize(),a=this.lineHeight()*o,s=this.verticalAlign(),c=this.direction(),l=0,u=this.align(),d=this.getWidth(),f=this.letterSpacing(),h=this.fill(),p=this.textDecoration(),g=p.indexOf("underline")!==-1,v=p.indexOf("line-through")!==-1,_;c=c===hw?t.direction:c;var y=0,y=a/2,m=0,x=0;for(c===gw&&t.setAttr("direction",c),t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",pw),t.setAttr("textAlign",fw),s===pw?l=(this.getHeight()-n*a-i*2)/2:s===vI&&(l=this.getHeight()-n*a-i*2),t.translate(i,l+i),_=0;_<n;_++){var m=0,x=0,N=r[_],$=N.text,A=N.width,R=N.lastInParagraph,G,H,Y;if(t.save(),u===_I?m+=d-A-i*2:u===hI&&(m+=(d-A-i*2)/2),g){t.save(),t.beginPath(),t.moveTo(m,y+x+Math.round(o/2)),G=$.split(" ").length-1,H=G===0,Y=u===al&&!R?d-i*2:A,t.lineTo(m+Math.round(Y),y+x+Math.round(o/2)),t.lineWidth=o/15;const Ct=this._getLinearGradient();t.strokeStyle=Ct||h,t.stroke(),t.restore()}if(v){t.save(),t.beginPath(),t.moveTo(m,y+x),G=$.split(" ").length-1,H=G===0,Y=u===al&&R&&!H?d-i*2:A,t.lineTo(m+Math.round(Y),y+x),t.lineWidth=o/15;const Ct=this._getLinearGradient();t.strokeStyle=Ct||h,t.stroke(),t.restore()}if(c!==gw&&(f!==0||u===al)){G=$.split(" ").length-1;for(var J=cw($),nt=0;nt<J.length;nt++){var rt=J[nt];rt===" "&&!R&&u===al&&(m+=(d-i*2-A)/G),this._partialTextX=m,this._partialTextY=y+x,this._partialText=rt,t.fillStrokeShape(this),m+=this.measureSize(rt).width+f}}else f!==0&&t.setAttr("letterSpacing",`${f}px`),this._partialTextX=m,this._partialTextY=y+x,this._partialText=$,t.fillStrokeShape(this);t.restore(),n>1&&(y+=a)}}}_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=Kp.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(pI,r),this}getWidth(){var t=this.attrs.width===Ca||this.attrs.width===void 0;return t?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var t=this.attrs.height===Ca||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 Kp.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=Wp(),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()+Tu+this.fontVariant()+Tu+(this.fontSize()+yI)+SI(this.fontFamily())}_addTextLine(t){this.align()===al&&(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 Wp().measureText(t).width+(n?r*(n-1):0)}_setTextData(){var t=this.text().split(`
|
|
43
|
-
`),r=+this.fontSize(),n=0,i=this.lineHeight()*r,o=this.attrs.width,a=this.attrs.height,s=o!==Ca&&o!==void 0,c=a!==Ca&&a!==void 0,l=this.padding(),u=o-l*2,d=a-l*2,f=0,h=this.wrap(),p=h!==vw,g=h!==wI&&p,v=this.ellipsis();this.textArr=[],Wp().font=this._getContextFont();for(var _=v?this._getTextWidth(Yp):0,y=0,m=t.length;y<m;++y){var x=t[y],N=this._getTextWidth(x);if(s&&N>u)for(;x.length>0;){for(var $=0,A=x.length,R="",G=0;$<A;){var H=$+A>>>1,Y=x.slice(0,H+1),J=this._getTextWidth(Y)+_;J<=u?($=H+1,R=Y,G=J):A=H}if(R){if(g){var nt,rt=x[R.length],lt=rt===Tu||rt===dw;lt&&G<=u?nt=R.length:nt=Math.max(R.lastIndexOf(Tu),R.lastIndexOf(dw))+1,nt>0&&($=nt,R=R.slice(0,$),G=this._getTextWidth(R))}R=R.trimRight(),this._addTextLine(R),n=Math.max(n,G),f+=i;var xt=this._shouldHandleEllipsis(f);if(xt){this._tryToAddEllipsisToLastLine();break}if(x=x.slice($),x=x.trimLeft(),x.length>0&&(N=this._getTextWidth(x),N<=u)){this._addTextLine(x),f+=i,n=Math.max(n,N);break}}else break}else this._addTextLine(x),f+=i,n=Math.max(n,N),this._shouldHandleEllipsis(f)&&y<m-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),c&&f+i>d)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(t){var r=+this.fontSize(),n=this.lineHeight()*r,i=this.attrs.height,o=i!==Ca&&i!==void 0,a=this.padding(),s=i-a*2,c=this.wrap(),l=c!==vw;return!l||o&&t+n>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,r=t!==Ca&&t!==void 0,n=this.padding(),i=t-n*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(r){var s=this._getTextWidth(a.text+Yp)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+Yp)}}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()}}lw=Bo.Text=sr,sr.prototype._fillFunc=$I,sr.prototype._strokeFunc=kI,sr.prototype.className=mI,sr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,uI._registerNode)(sr),Nr.Factory.overWriteSetter(sr,"width",(0,to.getNumberOrAutoValidator)()),Nr.Factory.overWriteSetter(sr,"height",(0,to.getNumberOrAutoValidator)()),Nr.Factory.addGetterSetter(sr,"direction",hw),Nr.Factory.addGetterSetter(sr,"fontFamily","Arial"),Nr.Factory.addGetterSetter(sr,"fontSize",12,(0,to.getNumberValidator)()),Nr.Factory.addGetterSetter(sr,"fontStyle",mw),Nr.Factory.addGetterSetter(sr,"fontVariant",mw),Nr.Factory.addGetterSetter(sr,"padding",0,(0,to.getNumberValidator)()),Nr.Factory.addGetterSetter(sr,"align",fw),Nr.Factory.addGetterSetter(sr,"verticalAlign",gI),Nr.Factory.addGetterSetter(sr,"lineHeight",1,(0,to.getNumberValidator)()),Nr.Factory.addGetterSetter(sr,"wrap",bI),Nr.Factory.addGetterSetter(sr,"ellipsis",!1,(0,to.getBooleanValidator)()),Nr.Factory.addGetterSetter(sr,"letterSpacing",0,(0,to.getNumberValidator)()),Nr.Factory.addGetterSetter(sr,"text","",(0,to.getStringValidator)()),Nr.Factory.addGetterSetter(sr,"textDecoration","");const CI=Wt({__proto__:null,get Text(){return lw},default:Bo,get stringToArray(){return uw}},[Bo]),_w=Jt(CI);var sl={};Object.defineProperty(sl,"__esModule",{value:!0});var bw=sl.TextPath=void 0;const Jp=or,Ln=ge,PI=xr,ll=Dp,Qp=_w,ww=_e,TI=ye;var OI="",xw="normal";function Sw(e){e.fillText(this.partialText,0,0)}function $w(e){e.strokeText(this.partialText,0,0)}let gr=class extends PI.Shape{constructor(t){super(t),this.dummyCanvas=Jp.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 ll.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const r=this.pathLength;return t-1>r?null:ll.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=ll.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 a=0;a<o.length;a++){t.save();var s=o[a].p0;t.translate(s.x,s.y),t.rotate(o[a].rotation),this.partialText=o[a].text,t.fillStrokeShape(this),r==="underline"&&(a===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 Jp.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 Qp.Text.prototype.setText.call(this,t)}_getContextFont(){return Qp.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(),a=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);let s=0;i==="center"&&(s=Math.max(0,this.pathLength/2-a/2)),i==="right"&&(s=Math.max(0,this.pathLength-a));const c=(0,Qp.stringToArray)(this.text());let l=s;for(var u=0;u<c.length;u++){const d=this._getPointAtLength(l);if(!d)return;let f=this._getTextSize(c[u]).width+n;if(c[u]===" "&&i==="justify"){const y=this.text().split(" ").length-1;f+=(this.pathLength-a)/y}const h=this._getPointAtLength(l+f);if(!h)return;const p=ll.Path.getLineLength(d.x,d.y,h.x,h.y);let g=0;if(o)try{g=o(c[u-1],c[u])*this.fontSize()}catch{g=0}d.x+=g,h.x+=g,this.textWidth+=g;const v=ll.Path.getPointOnLine(g+p/2,d.x,d.y,h.x,h.y),_=Math.atan2(h.y-d.y,h.x-d.x);this.glyphInfo.push({transposeX:v.x,transposeY:v.y,text:c[u],rotation:_,p0:d,p1:h}),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,a,s,c=0;c<t.length/2;c++)a=t[c*2],s=t[c*2+1],r=Math.min(r,a),n=Math.max(n,a),i=Math.min(i,s),o=Math.max(o,s);var l=this.fontSize();return{x:r-l/2,y:i-l/2,width:n-r+l,height:o-i+l}}destroy(){return Jp.Util.releaseCanvas(this.dummyCanvas),super.destroy()}};bw=sl.TextPath=gr,gr.prototype._fillFunc=Sw,gr.prototype._strokeFunc=$w,gr.prototype._fillFuncHit=Sw,gr.prototype._strokeFuncHit=$w,gr.prototype.className="TextPath",gr.prototype._attrsAffectingSize=["text","fontSize","data"],(0,TI._registerNode)(gr),Ln.Factory.addGetterSetter(gr,"data"),Ln.Factory.addGetterSetter(gr,"fontFamily","Arial"),Ln.Factory.addGetterSetter(gr,"fontSize",12,(0,ww.getNumberValidator)()),Ln.Factory.addGetterSetter(gr,"fontStyle",xw),Ln.Factory.addGetterSetter(gr,"align","left"),Ln.Factory.addGetterSetter(gr,"letterSpacing",0,(0,ww.getNumberValidator)()),Ln.Factory.addGetterSetter(gr,"textBaseline","middle"),Ln.Factory.addGetterSetter(gr,"fontVariant",xw),Ln.Factory.addGetterSetter(gr,"text",OI),Ln.Factory.addGetterSetter(gr,"textDecoration",null),Ln.Factory.addGetterSetter(gr,"kerningFunc",null);const AI=Wt({__proto__:null,get TextPath(){return bw},default:sl},[sl]),NI=Jt(AI);var cl={};Object.defineProperty(cl,"__esModule",{value:!0});var kw=cl.Transformer=void 0;const Ge=or,je=ge,Ew=ur,RI=xr,jI=J2,Cw=Tp,Un=ye,eo=_e,II=ye;var Pw="tr-konva",DI=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(e=>e+`.${Pw}`).join(" "),Tw="nodesRect",FI=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],MI={"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 LI="ontouchstart"in Un.Konva._global;function UI(e,t,r){if(e==="rotater")return r;t+=Ge.Util.degToRad(MI[e]||0);var n=(Ge.Util.radToDeg(t)%360+360)%360;return Ge.Util._inRange(n,315+22.5,360)||Ge.Util._inRange(n,0,22.5)?"ns-resize":Ge.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":Ge.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":Ge.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":Ge.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":Ge.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":Ge.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":Ge.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(Ge.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}var Ou=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],Ow=1e8;function zI(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 Aw(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 GI(e,t){const r=zI(e);return Aw(e,t,r)}function VI(e,t,r){let n=t;for(let i=0;i<e.length;i++){const o=Un.Konva.getAngle(e[i]),a=Math.abs(o-t)%(Math.PI*2);Math.min(a,Math.PI*2-a)<r&&(n=o)}return n}class Oe extends Cw.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(DI,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return Ge.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 Pw+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach();const r=t.filter(i=>i.isAncestorOf(this)?(Ge.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()},a=i._attrsAffectingSize.map(s=>s+"Change."+this._getEventNamespace()).join(" ");i.on(a,o),i.on(FI.map(s=>s+`.${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,a=i.y-r.y;this.nodes().forEach(s=>{if(s===t||s.isDragging())return;const c=s.getAbsolutePosition();s.setAbsolutePosition({x:c.x+o,y:c.y+a}),s.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(Tw),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(Tw,this.__getNodeRect)}__getNodeShape(t,r=this.rotation(),n){var i=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),o=t.getAbsoluteScale(n),a=t.getAbsolutePosition(n),s=i.x*o.x-t.offsetX()*o.x,c=i.y*o.y-t.offsetY()*o.y;const l=(Un.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),u={x:a.x+s*Math.cos(l)+c*Math.sin(-l),y:a.y+c*Math.cos(l)+s*Math.sin(l),width:i.width*o.x,height:i.height*o.y,rotation:l};return Aw(u,-Un.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){var t=this.getNode();if(!t)return{x:-Ow,y:-Ow,width:0,height:0,rotation:0};const r=[];this.nodes().map(l=>{const u=l.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var d=[{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();d.forEach(function(h){var p=f.point(h);r.push(p)})});const n=new Ge.Transform;n.rotate(-Un.Konva.getAngle(this.rotation()));var i=1/0,o=1/0,a=-1/0,s=-1/0;r.forEach(function(l){var u=n.point(l);i===void 0&&(i=a=u.x,o=s=u.y),i=Math.min(i,u.x),o=Math.min(o,u.y),a=Math.max(a,u.x),s=Math.max(s,u.y)}),n.invert();const c=n.point({x:i,y:o});return{x:c.x,y:c.y,width:a-i,height:s-o,rotation:Un.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(),Ou.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){var r=new jI.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:LI?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=Un.Konva.getAngle(this.rotation()),o=this.rotateAnchorCursor(),a=UI(t,i,o);r.getStage().content&&(r.getStage().content.style.cursor=a),this._cursorChange=!0}),r.on("mouseout",()=>{r.getStage().content&&(r.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(r)}_createBack(){var t=new RI.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()*Ge.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 a=t.target.getAbsolutePosition(),s=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:s.x-a.x,y:s.y-a.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),a=o.getStage();a.setPointersPositions(t);const s=a.getPointerPosition();let c={x:s.x-this._anchorDragOffset.x,y:s.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 d=this._getNodeRect();r=o.x()-d.width/2,n=-o.y()+d.height/2;let nt=Math.atan2(-n,r)+Math.PI/2;d.height<0&&(nt-=Math.PI);var f=Un.Konva.getAngle(this.rotation());const rt=f+nt,lt=Un.Konva.getAngle(this.rotationSnapTolerance()),xt=VI(this.rotationSnaps(),rt,lt)-d.rotation,Ct=GI(d,xt);this._fitNodesInto(Ct,t);return}var h=this.shiftBehavior(),p;h==="inverted"?p=this.keepRatio()&&!t.shiftKey:h==="none"?p=this.keepRatio():p=this.keepRatio()||t.shiftKey;var m=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(p){var g=m?{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(g.x-o.x(),2)+Math.pow(g.y-o.y(),2));var v=this.findOne(".top-left").x()>g.x?-1:1,_=this.findOne(".top-left").y()>g.y?-1:1;r=i*this.cos*v,n=i*this.sin*_,this.findOne(".top-left").x(g.x-r),this.findOne(".top-left").y(g.y-n)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(o.y());else if(this._movingAnchorName==="top-right"){if(p){var g=m?{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()-g.x,2)+Math.pow(g.y-o.y(),2));var v=this.findOne(".top-right").x()<g.x?-1:1,_=this.findOne(".top-right").y()>g.y?-1:1;r=i*this.cos*v,n=i*this.sin*_,this.findOne(".top-right").x(g.x+r),this.findOne(".top-right").y(g.y-n)}var y=o.position();this.findOne(".top-left").y(y.y),this.findOne(".bottom-right").x(y.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 g=m?{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(g.x-o.x(),2)+Math.pow(o.y()-g.y,2));var v=g.x<o.x()?-1:1,_=o.y()<g.y?-1:1;r=i*this.cos*v,n=i*this.sin*_,o.x(g.x-r),o.y(g.y+n)}y=o.position(),this.findOne(".top-left").x(y.x),this.findOne(".bottom-right").y(y.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(o.y());else if(this._movingAnchorName==="bottom-right"){if(p){var g=m?{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()-g.x,2)+Math.pow(o.y()-g.y,2));var v=this.findOne(".bottom-right").x()<g.x?-1:1,_=this.findOne(".bottom-right").y()<g.y?-1:1;r=i*this.cos*v,n=i*this.sin*_,this.findOne(".bottom-right").x(g.x+r),this.findOne(".bottom-right").y(g.y+n)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var m=this.centeredScaling()||t.altKey;if(m){var x=this.findOne(".top-left"),N=this.findOne(".bottom-right"),$=x.x(),A=x.y(),R=this.getWidth()-N.x(),G=this.getHeight()-N.y();N.move({x:-$,y:-A}),x.move({x:R,y:G})}var H=this.findOne(".top-left").getAbsolutePosition();r=H.x,n=H.y;var Y=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),J=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:r,y:n,width:Y,height:J,rotation:Un.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(Ge.Util._inRange(t.width,-this.padding()*2-i,i)){this.update();return}if(Ge.Util._inRange(t.height,-this.padding()*2-i,i)){this.update();return}const o=this.flipEnabled();var a=new Ge.Transform;if(a.rotate(Un.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const d=a.point({x:-this.padding()*2,y:0});if(t.x+=d.x,t.y+=d.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=d.x,this._anchorDragOffset.y-=d.y,!o){this.update();return}}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const d=a.point({x:this.padding()*2,y:0});if(this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=d.x,this._anchorDragOffset.y-=d.y,t.width+=this.padding()*2,!o){this.update();return}}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const d=a.point({x:0,y:-this.padding()*2});if(t.x+=d.x,t.y+=d.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=d.x,this._anchorDragOffset.y-=d.y,t.height+=this.padding()*2,!o){this.update();return}}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const d=a.point({x:0,y:this.padding()*2});if(this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=d.x,this._anchorDragOffset.y-=d.y,t.height+=this.padding()*2,!o){this.update();return}}if(this.boundBoxFunc()){const d=this.boundBoxFunc()(n,t);d?t=d:Ge.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const s=1e7,c=new Ge.Transform;c.translate(n.x,n.y),c.rotate(n.rotation),c.scale(n.width/s,n.height/s);const l=new Ge.Transform;l.translate(t.x,t.y),l.rotate(t.rotation),l.scale(t.width/s,t.height/s);const u=l.multiply(c.invert());this._nodes.forEach(d=>{var f;const h=d.getParent().getAbsoluteTransform(),p=d.getTransform().copy();p.translate(d.offsetX(),d.offsetY());const g=new Ge.Transform;g.multiply(h.copy().invert()).multiply(u).multiply(h).multiply(p);const v=g.decompose();d.setAttrs(v),this._fire("transform",{evt:r,target:d}),d._fire("transform",{evt:r,target:d}),(f=d.getLayer())===null||f===void 0||f.batchDraw()}),this.rotation(Ge.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(Ge.Util._getRotation(r.rotation));var n=r.width,i=r.height,o=this.enabledAnchors(),a=this.resizeEnabled(),s=this.padding(),c=this.anchorSize();const l=this.find("._anchor");l.forEach(d=>{d.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+s,offsetY:c/2+s,visible:a&&o.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:c/2+s,visible:a&&o.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:c/2-s,offsetY:c/2+s,visible:a&&o.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:c/2+s,visible:a&&o.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:i/2,offsetX:c/2-s,visible:a&&o.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:c/2+s,offsetY:c/2-s,visible:a&&o.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:i,offsetY:c/2-s,visible:a&&o.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:i,offsetX:c/2-s,offsetY:c/2-s,visible:a&&o.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*Ge.Util._sign(i)-s,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(d=>{u(d)}),(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=""),Cw.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Ew.Node.prototype.toObject.call(this)}clone(t){var r=Ew.Node.prototype.clone.call(this,t);return r}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}kw=cl.Transformer=Oe;function BI(e){return e instanceof Array||Ge.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){Ou.indexOf(t)===-1&&Ge.Util.warn("Unknown anchor name: "+t+". Available names are: "+Ou.join(", "))}),e||[]}Oe.prototype.className="Transformer",(0,II._registerNode)(Oe),je.Factory.addGetterSetter(Oe,"enabledAnchors",Ou,BI),je.Factory.addGetterSetter(Oe,"flipEnabled",!0,(0,eo.getBooleanValidator)()),je.Factory.addGetterSetter(Oe,"resizeEnabled",!0),je.Factory.addGetterSetter(Oe,"anchorSize",10,(0,eo.getNumberValidator)()),je.Factory.addGetterSetter(Oe,"rotateEnabled",!0),je.Factory.addGetterSetter(Oe,"rotationSnaps",[]),je.Factory.addGetterSetter(Oe,"rotateAnchorOffset",50,(0,eo.getNumberValidator)()),je.Factory.addGetterSetter(Oe,"rotateAnchorCursor","crosshair"),je.Factory.addGetterSetter(Oe,"rotationSnapTolerance",5,(0,eo.getNumberValidator)()),je.Factory.addGetterSetter(Oe,"borderEnabled",!0),je.Factory.addGetterSetter(Oe,"anchorStroke","rgb(0, 161, 255)"),je.Factory.addGetterSetter(Oe,"anchorStrokeWidth",1,(0,eo.getNumberValidator)()),je.Factory.addGetterSetter(Oe,"anchorFill","white"),je.Factory.addGetterSetter(Oe,"anchorCornerRadius",0,(0,eo.getNumberValidator)()),je.Factory.addGetterSetter(Oe,"borderStroke","rgb(0, 161, 255)"),je.Factory.addGetterSetter(Oe,"borderStrokeWidth",1,(0,eo.getNumberValidator)()),je.Factory.addGetterSetter(Oe,"borderDash"),je.Factory.addGetterSetter(Oe,"keepRatio",!0),je.Factory.addGetterSetter(Oe,"shiftBehavior","default"),je.Factory.addGetterSetter(Oe,"centeredScaling",!1),je.Factory.addGetterSetter(Oe,"ignoreStroke",!1),je.Factory.addGetterSetter(Oe,"padding",0,(0,eo.getNumberValidator)()),je.Factory.addGetterSetter(Oe,"node"),je.Factory.addGetterSetter(Oe,"nodes"),je.Factory.addGetterSetter(Oe,"boundBoxFunc"),je.Factory.addGetterSetter(Oe,"anchorDragBoundFunc"),je.Factory.addGetterSetter(Oe,"anchorStyleFunc"),je.Factory.addGetterSetter(Oe,"shouldOverdrawWholeArea",!1),je.Factory.addGetterSetter(Oe,"useSingleNodeRotation",!0),je.Factory.backCompat(Oe,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});const HI=Wt({__proto__:null,get Transformer(){return kw},default:cl},[cl]),qI=Jt(HI);var ul={};Object.defineProperty(ul,"__esModule",{value:!0});var Nw=ul.Wedge=void 0;const Au=ge,KI=xr,YI=ye,Rw=_e,XI=ye;let Ai=class extends KI.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,YI.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)}};Nw=ul.Wedge=Ai,Ai.prototype.className="Wedge",Ai.prototype._centroid=!0,Ai.prototype._attrsAffectingSize=["radius"],(0,XI._registerNode)(Ai),Au.Factory.addGetterSetter(Ai,"radius",0,(0,Rw.getNumberValidator)()),Au.Factory.addGetterSetter(Ai,"angle",0,(0,Rw.getNumberValidator)()),Au.Factory.addGetterSetter(Ai,"clockwise",!1),Au.Factory.backCompat(Ai,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});const WI=Wt({__proto__:null,get Wedge(){return Nw},default:ul},[ul]),JI=Jt(WI);var hl={};Object.defineProperty(hl,"__esModule",{value:!0});var jw=hl.Blur=void 0;const Iw=ge,QI=ur,ZI=_e;function Dw(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var tD=[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],eD=[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 rD(e,t){var r=e.data,n=e.width,i=e.height,o,a,s,c,l,u,d,f,h,p,g,v,_,y,m,x,N,$,A,R,G,H,Y,J,nt=t+t+1,rt=n-1,lt=i-1,xt=t+1,Ct=xt*(xt+1)/2,$t=new Dw,at=null,X=$t,T=null,E=null,k=tD[t],b=eD[t];for(s=1;s<nt;s++)X=X.next=new Dw,s===xt&&(at=X);for(X.next=$t,d=u=0,a=0;a<i;a++){for(x=N=$=A=f=h=p=g=0,v=xt*(R=r[u]),_=xt*(G=r[u+1]),y=xt*(H=r[u+2]),m=xt*(Y=r[u+3]),f+=Ct*R,h+=Ct*G,p+=Ct*H,g+=Ct*Y,X=$t,s=0;s<xt;s++)X.r=R,X.g=G,X.b=H,X.a=Y,X=X.next;for(s=1;s<xt;s++)c=u+((rt<s?rt:s)<<2),f+=(X.r=R=r[c])*(J=xt-s),h+=(X.g=G=r[c+1])*J,p+=(X.b=H=r[c+2])*J,g+=(X.a=Y=r[c+3])*J,x+=R,N+=G,$+=H,A+=Y,X=X.next;for(T=$t,E=at,o=0;o<n;o++)r[u+3]=Y=g*k>>b,Y!==0?(Y=255/Y,r[u]=(f*k>>b)*Y,r[u+1]=(h*k>>b)*Y,r[u+2]=(p*k>>b)*Y):r[u]=r[u+1]=r[u+2]=0,f-=v,h-=_,p-=y,g-=m,v-=T.r,_-=T.g,y-=T.b,m-=T.a,c=d+((c=o+t+1)<rt?c:rt)<<2,x+=T.r=r[c],N+=T.g=r[c+1],$+=T.b=r[c+2],A+=T.a=r[c+3],f+=x,h+=N,p+=$,g+=A,T=T.next,v+=R=E.r,_+=G=E.g,y+=H=E.b,m+=Y=E.a,x-=R,N-=G,$-=H,A-=Y,E=E.next,u+=4;d+=n}for(o=0;o<n;o++){for(N=$=A=x=h=p=g=f=0,u=o<<2,v=xt*(R=r[u]),_=xt*(G=r[u+1]),y=xt*(H=r[u+2]),m=xt*(Y=r[u+3]),f+=Ct*R,h+=Ct*G,p+=Ct*H,g+=Ct*Y,X=$t,s=0;s<xt;s++)X.r=R,X.g=G,X.b=H,X.a=Y,X=X.next;for(l=n,s=1;s<=t;s++)u=l+o<<2,f+=(X.r=R=r[u])*(J=xt-s),h+=(X.g=G=r[u+1])*J,p+=(X.b=H=r[u+2])*J,g+=(X.a=Y=r[u+3])*J,x+=R,N+=G,$+=H,A+=Y,X=X.next,s<lt&&(l+=n);for(u=o,T=$t,E=at,a=0;a<i;a++)c=u<<2,r[c+3]=Y=g*k>>b,Y>0?(Y=255/Y,r[c]=(f*k>>b)*Y,r[c+1]=(h*k>>b)*Y,r[c+2]=(p*k>>b)*Y):r[c]=r[c+1]=r[c+2]=0,f-=v,h-=_,p-=y,g-=m,v-=T.r,_-=T.g,y-=T.b,m-=T.a,c=o+((c=a+xt)<lt?c:lt)*n<<2,f+=x+=T.r=r[c],h+=N+=T.g=r[c+1],p+=$+=T.b=r[c+2],g+=A+=T.a=r[c+3],T=T.next,v+=R=E.r,_+=G=E.g,y+=H=E.b,m+=Y=E.a,x-=R,N-=G,$-=H,A-=Y,E=E.next,u+=n}}const nD=function(e){var t=Math.round(this.blurRadius());t>0&&rD(e,t)};jw=hl.Blur=nD,Iw.Factory.addGetterSetter(QI.Node,"blurRadius",0,(0,ZI.getNumberValidator)(),Iw.Factory.afterSetFilter);const iD=Wt({__proto__:null,get Blur(){return jw},default:hl},[hl]),oD=Jt(iD);var dl={};Object.defineProperty(dl,"__esModule",{value:!0});var Fw=dl.Brighten=void 0;const Mw=ge,aD=ur,sD=_e,lD=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};Fw=dl.Brighten=lD,Mw.Factory.addGetterSetter(aD.Node,"brightness",0,(0,sD.getNumberValidator)(),Mw.Factory.afterSetFilter);const cD=Wt({__proto__:null,get Brighten(){return Fw},default:dl},[dl]),uD=Jt(cD);var fl={};Object.defineProperty(fl,"__esModule",{value:!0});var Lw=fl.Contrast=void 0;const Uw=ge,hD=ur,dD=_e,fD=function(e){var t=Math.pow((this.contrast()+100)/100,2),r=e.data,n=r.length,i=150,o=150,a=150,s;for(s=0;s<n;s+=4)i=r[s],o=r[s+1],a=r[s+2],i/=255,i-=.5,i*=t,i+=.5,i*=255,o/=255,o-=.5,o*=t,o+=.5,o*=255,a/=255,a-=.5,a*=t,a+=.5,a*=255,i=i<0?0:i>255?255:i,o=o<0?0:o>255?255:o,a=a<0?0:a>255?255:a,r[s]=i,r[s+1]=o,r[s+2]=a};Lw=fl.Contrast=fD,Uw.Factory.addGetterSetter(hD.Node,"contrast",0,(0,dD.getNumberValidator)(),Uw.Factory.afterSetFilter);const pD=Wt({__proto__:null,get Contrast(){return Lw},default:fl},[fl]),mD=Jt(pD);var pl={};Object.defineProperty(pl,"__esModule",{value:!0});var zw=pl.Emboss=void 0;const ro=ge,Nu=ur,gD=or,Gw=_e,vD=function(e){var t=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),i=this.embossBlend(),o=0,a=0,s=e.data,c=e.width,l=e.height,u=c*4,d=l;switch(n){case"top-left":o=-1,a=-1;break;case"top":o=-1,a=0;break;case"top-right":o=-1,a=1;break;case"right":o=0,a=1;break;case"bottom-right":o=1,a=1;break;case"bottom":o=1,a=0;break;case"bottom-left":o=1,a=-1;break;case"left":o=0,a=-1;break;default:gD.Util.error("Unknown emboss direction: "+n)}do{var f=(d-1)*u,h=o;d+h<1&&(h=0),d+h>l&&(h=0);var p=(d-1+h)*c*4,g=c;do{var v=f+(g-1)*4,_=a;g+_<1&&(_=0),g+_>c&&(_=0);var y=p+(g-1+_)*4,m=s[v]-s[y],x=s[v+1]-s[y+1],N=s[v+2]-s[y+2],$=m,A=$>0?$:-$,R=x>0?x:-x,G=N>0?N:-N;if(R>A&&($=x),G>A&&($=N),$*=t,i){var H=s[v]+$,Y=s[v+1]+$,J=s[v+2]+$;s[v]=H>255?255:H<0?0:H,s[v+1]=Y>255?255:Y<0?0:Y,s[v+2]=J>255?255:J<0?0:J}else{var nt=r-$;nt<0?nt=0:nt>255&&(nt=255),s[v]=s[v+1]=s[v+2]=nt}}while(--g)}while(--d)};zw=pl.Emboss=vD,ro.Factory.addGetterSetter(Nu.Node,"embossStrength",.5,(0,Gw.getNumberValidator)(),ro.Factory.afterSetFilter),ro.Factory.addGetterSetter(Nu.Node,"embossWhiteLevel",.5,(0,Gw.getNumberValidator)(),ro.Factory.afterSetFilter),ro.Factory.addGetterSetter(Nu.Node,"embossDirection","top-left",null,ro.Factory.afterSetFilter),ro.Factory.addGetterSetter(Nu.Node,"embossBlend",!1,null,ro.Factory.afterSetFilter);const yD=Wt({__proto__:null,get Emboss(){return zw},default:pl},[pl]),_D=Jt(yD);var ml={};Object.defineProperty(ml,"__esModule",{value:!0});var Vw=ml.Enhance=void 0;const Bw=ge,bD=ur,wD=_e;function Zp(e,t,r,n,i){var o=r-t,a=i-n,s;return o===0?n+a/2:a===0?n:(s=(e-t)/o,s=a*s+n,s)}const xD=function(e){var t=e.data,r=t.length,n=t[0],i=n,o,a=t[1],s=a,c,l=t[2],u=l,d,f,h=this.enhance();if(h!==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<a?a=c:c>s&&(s=c),d=t[f+2],d<l?l=d:d>u&&(u=d);i===n&&(i=255,n=0),s===a&&(s=255,a=0),u===l&&(u=255,l=0);var p,g,v,_,y,m,x,N,$;for(h>0?(g=i+h*(255-i),v=n-h*(n-0),y=s+h*(255-s),m=a-h*(a-0),N=u+h*(255-u),$=l-h*(l-0)):(p=(i+n)*.5,g=i+h*(i-p),v=n+h*(n-p),_=(s+a)*.5,y=s+h*(s-_),m=a+h*(a-_),x=(u+l)*.5,N=u+h*(u-x),$=l+h*(l-x)),f=0;f<r;f+=4)t[f+0]=Zp(t[f+0],n,i,v,g),t[f+1]=Zp(t[f+1],a,s,m,y),t[f+2]=Zp(t[f+2],l,u,$,N)}};Vw=ml.Enhance=xD,Bw.Factory.addGetterSetter(bD.Node,"enhance",0,(0,wD.getNumberValidator)(),Bw.Factory.afterSetFilter);const SD=Wt({__proto__:null,get Enhance(){return Vw},default:ml},[ml]),$D=Jt(SD);var gl={};Object.defineProperty(gl,"__esModule",{value:!0});var Hw=gl.Grayscale=void 0;const kD=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};Hw=gl.Grayscale=kD;const ED=Wt({__proto__:null,get Grayscale(){return Hw},default:gl},[gl]),CD=Jt(ED);var vl={};Object.defineProperty(vl,"__esModule",{value:!0});var qw=vl.HSL=void 0;const Pa=ge,t0=ur,e0=_e;Pa.Factory.addGetterSetter(t0.Node,"hue",0,(0,e0.getNumberValidator)(),Pa.Factory.afterSetFilter),Pa.Factory.addGetterSetter(t0.Node,"saturation",0,(0,e0.getNumberValidator)(),Pa.Factory.afterSetFilter),Pa.Factory.addGetterSetter(t0.Node,"luminance",0,(0,e0.getNumberValidator)(),Pa.Factory.afterSetFilter);const PD=function(e){var t=e.data,r=t.length,n=1,i=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,a=this.luminance()*127,s,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,d=.587*n-.587*c+.33*l,f=.114*n-.114*c-.497*l,h=.299*n-.299*c-.328*l,p=.587*n+.413*c+.035*l,g=.114*n-.114*c+.293*l,v=.299*n-.3*c+1.25*l,_=.587*n-.586*c-1.05*l,y=.114*n+.886*c-.2*l,m,x,N,$;for(s=0;s<r;s+=4)m=t[s+0],x=t[s+1],N=t[s+2],$=t[s+3],t[s+0]=u*m+d*x+f*N+a,t[s+1]=h*m+p*x+g*N+a,t[s+2]=v*m+_*x+y*N+a,t[s+3]=$};qw=vl.HSL=PD;const TD=Wt({__proto__:null,get HSL(){return qw},default:vl},[vl]),OD=Jt(TD);var yl={};Object.defineProperty(yl,"__esModule",{value:!0});var Kw=yl.HSV=void 0;const Ta=ge,r0=ur,n0=_e,AD=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,a,s=n*i*Math.cos(o*Math.PI/180),c=n*i*Math.sin(o*Math.PI/180),l=.299*n+.701*s+.167*c,u=.587*n-.587*s+.33*c,d=.114*n-.114*s-.497*c,f=.299*n-.299*s-.328*c,h=.587*n+.413*s+.035*c,p=.114*n-.114*s+.293*c,g=.299*n-.3*s+1.25*c,v=.587*n-.586*s-1.05*c,_=.114*n+.886*s-.2*c,y,m,x,N;for(a=0;a<r;a+=4)y=t[a+0],m=t[a+1],x=t[a+2],N=t[a+3],t[a+0]=l*y+u*m+d*x,t[a+1]=f*y+h*m+p*x,t[a+2]=g*y+v*m+_*x,t[a+3]=N};Kw=yl.HSV=AD,Ta.Factory.addGetterSetter(r0.Node,"hue",0,(0,n0.getNumberValidator)(),Ta.Factory.afterSetFilter),Ta.Factory.addGetterSetter(r0.Node,"saturation",0,(0,n0.getNumberValidator)(),Ta.Factory.afterSetFilter),Ta.Factory.addGetterSetter(r0.Node,"value",0,(0,n0.getNumberValidator)(),Ta.Factory.afterSetFilter);const ND=Wt({__proto__:null,get HSV(){return Kw},default:yl},[yl]),RD=Jt(ND);var _l={};Object.defineProperty(_l,"__esModule",{value:!0});var Yw=_l.Invert=void 0;const jD=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]};Yw=_l.Invert=jD;const ID=Wt({__proto__:null,get Invert(){return Yw},default:_l},[_l]),DD=Jt(ID);var bl={};Object.defineProperty(bl,"__esModule",{value:!0});var Xw=bl.Kaleidoscope=void 0;const Ru=ge,Ww=ur,Jw=or,Qw=_e;var FD=function(e,t,r){var n=e.data,i=t.data,o=e.width,a=e.height,s=r.polarCenterX||o/2,c=r.polarCenterY||a/2,l,u,d,f=0,h=0,p=0,g=0,v,_=Math.sqrt(s*s+c*c);u=o-s,d=a-c,v=Math.sqrt(u*u+d*d),_=v>_?v:_;var y=a,m=o,x,N,$=360/m*Math.PI/180,A,R;for(N=0;N<m;N+=1)for(A=Math.sin(N*$),R=Math.cos(N*$),x=0;x<y;x+=1)u=Math.floor(s+_*x/y*R),d=Math.floor(c+_*x/y*A),l=(d*o+u)*4,f=n[l+0],h=n[l+1],p=n[l+2],g=n[l+3],l=(N+x*o)*4,i[l+0]=f,i[l+1]=h,i[l+2]=p,i[l+3]=g},MD=function(e,t,r){var n=e.data,i=t.data,o=e.width,a=e.height,s=r.polarCenterX||o/2,c=r.polarCenterY||a/2,l,u,d,f,h,p=0,g=0,v=0,_=0,y,m=Math.sqrt(s*s+c*c);u=o-s,d=a-c,y=Math.sqrt(u*u+d*d),m=y>m?y:m;var x=a,N=o,$,A,R=0,G,H;for(u=0;u<o;u+=1)for(d=0;d<a;d+=1)f=u-s,h=d-c,$=Math.sqrt(f*f+h*h)*x/m,A=(Math.atan2(h,f)*180/Math.PI+360+R)%360,A=A*N/360,G=Math.floor(A),H=Math.floor($),l=(H*o+G)*4,p=n[l+0],g=n[l+1],v=n[l+2],_=n[l+3],l=(d*o+u)*4,i[l+0]=p,i[l+1]=g,i[l+2]=v,i[l+3]=_};const LD=function(e){var t=e.width,r=e.height,n,i,o,a,s,c,l,u,d,f,h=Math.round(this.kaleidoscopePower()),p=Math.round(this.kaleidoscopeAngle()),g=Math.floor(t*(p%360)/360);if(!(h<1)){var v=Jw.Util.createCanvasElement();v.width=t,v.height=r;var _=v.getContext("2d").getImageData(0,0,t,r);Jw.Util.releaseCanvas(v),FD(e,_,{polarCenterX:t/2,polarCenterY:r/2});for(var y=t/Math.pow(2,h);y<=8;)y=y*2,h-=1;y=Math.ceil(y);var m=y,x=0,N=m,$=1;for(g+y>t&&(x=m,N=0,$=-1),i=0;i<r;i+=1)for(n=x;n!==N;n+=$)o=Math.round(n+g)%t,d=(t*i+o)*4,s=_.data[d+0],c=_.data[d+1],l=_.data[d+2],u=_.data[d+3],f=(t*i+n)*4,_.data[f+0]=s,_.data[f+1]=c,_.data[f+2]=l,_.data[f+3]=u;for(i=0;i<r;i+=1)for(m=Math.floor(y),a=0;a<h;a+=1){for(n=0;n<m+1;n+=1)d=(t*i+n)*4,s=_.data[d+0],c=_.data[d+1],l=_.data[d+2],u=_.data[d+3],f=(t*i+m*2-n-1)*4,_.data[f+0]=s,_.data[f+1]=c,_.data[f+2]=l,_.data[f+3]=u;m*=2}MD(_,e,{polarRotation:0})}};Xw=bl.Kaleidoscope=LD,Ru.Factory.addGetterSetter(Ww.Node,"kaleidoscopePower",2,(0,Qw.getNumberValidator)(),Ru.Factory.afterSetFilter),Ru.Factory.addGetterSetter(Ww.Node,"kaleidoscopeAngle",0,(0,Qw.getNumberValidator)(),Ru.Factory.afterSetFilter);const UD=Wt({__proto__:null,get Kaleidoscope(){return Xw},default:bl},[bl]),zD=Jt(UD);var wl={};Object.defineProperty(wl,"__esModule",{value:!0});var Zw=wl.Mask=void 0;const tx=ge,GD=ur,VD=_e;function ju(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 xl(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 BD(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 HD(e,t){var r=ju(e,0,0),n=ju(e,e.width-1,0),i=ju(e,0,e.height-1),o=ju(e,e.width-1,e.height-1),a=t||10;if(xl(r,n)<a&&xl(n,o)<a&&xl(o,i)<a&&xl(i,r)<a){for(var s=BD([n,r,o,i]),c=[],l=0;l<e.width*e.height;l++){var u=xl(s,[e.data[l*4],e.data[l*4+1],e.data[l*4+2]]);c[l]=u<a?0:255}return c}}function qD(e,t){for(var r=0;r<e.width*e.height;r++)e.data[4*r+3]=t[r]}function KD(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),a=[],s=0;s<r;s++)for(var c=0;c<t;c++){for(var l=s*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=s+d-o,p=c+f-o;if(h>=0&&h<r&&p>=0&&p<t){var g=h*t+p,v=n[d*i+f];u+=e[g]*v}}a[l]=u===255*8?255:0}return a}function YD(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),a=[],s=0;s<r;s++)for(var c=0;c<t;c++){for(var l=s*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=s+d-o,p=c+f-o;if(h>=0&&h<r&&p>=0&&p<t){var g=h*t+p,v=n[d*i+f];u+=e[g]*v}}a[l]=u>=255*4?255:0}return a}function XD(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),a=[],s=0;s<r;s++)for(var c=0;c<t;c++){for(var l=s*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=s+d-o,p=c+f-o;if(h>=0&&h<r&&p>=0&&p<t){var g=h*t+p,v=n[d*i+f];u+=e[g]*v}}a[l]=u}return a}const WD=function(e){var t=this.threshold(),r=HD(e,t);return r&&(r=KD(r,e.width,e.height),r=YD(r,e.width,e.height),r=XD(r,e.width,e.height),qD(e,r)),e};Zw=wl.Mask=WD,tx.Factory.addGetterSetter(GD.Node,"threshold",0,(0,VD.getNumberValidator)(),tx.Factory.afterSetFilter);const JD=Wt({__proto__:null,get Mask(){return Zw},default:wl},[wl]),QD=Jt(JD);var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});var ex=Sl.Noise=void 0;const rx=ge,ZD=ur,tF=_e,eF=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()};ex=Sl.Noise=eF,rx.Factory.addGetterSetter(ZD.Node,"noise",.2,(0,tF.getNumberValidator)(),rx.Factory.afterSetFilter);const rF=Wt({__proto__:null,get Noise(){return ex},default:Sl},[Sl]),nF=Jt(rF);var $l={};Object.defineProperty($l,"__esModule",{value:!0});var nx=$l.Pixelate=void 0;const ix=ge,iF=or,oF=ur,aF=_e,sF=function(e){var t=Math.ceil(this.pixelSize()),r=e.width,n=e.height,i,o,a,s,c,l,u,d=Math.ceil(r/t),f=Math.ceil(n/t),h,p,g,v,_,y,m,x=e.data;if(t<=0){iF.Util.error("pixelSize value can not be <= 0");return}for(_=0;_<d;_+=1)for(y=0;y<f;y+=1){for(s=0,c=0,l=0,u=0,h=_*t,p=h+t,g=y*t,v=g+t,m=0,i=h;i<p;i+=1)if(!(i>=r))for(o=g;o<v;o+=1)o>=n||(a=(r*o+i)*4,s+=x[a+0],c+=x[a+1],l+=x[a+2],u+=x[a+3],m+=1);for(s=s/m,c=c/m,l=l/m,u=u/m,i=h;i<p;i+=1)if(!(i>=r))for(o=g;o<v;o+=1)o>=n||(a=(r*o+i)*4,x[a+0]=s,x[a+1]=c,x[a+2]=l,x[a+3]=u)}};nx=$l.Pixelate=sF,ix.Factory.addGetterSetter(oF.Node,"pixelSize",8,(0,aF.getNumberValidator)(),ix.Factory.afterSetFilter);const lF=Wt({__proto__:null,get Pixelate(){return nx},default:$l},[$l]),cF=Jt(lF);var kl={};Object.defineProperty(kl,"__esModule",{value:!0});var ox=kl.Posterize=void 0;const ax=ge,uF=ur,hF=_e,dF=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};ox=kl.Posterize=dF,ax.Factory.addGetterSetter(uF.Node,"levels",.5,(0,hF.getNumberValidator)(),ax.Factory.afterSetFilter);const fF=Wt({__proto__:null,get Posterize(){return ox},default:kl},[kl]),pF=Jt(fF);var El={};Object.defineProperty(El,"__esModule",{value:!0});var sx=El.RGB=void 0;const Iu=ge,i0=ur,mF=_e,gF=function(e){var t=e.data,r=t.length,n=this.red(),i=this.green(),o=this.blue(),a,s;for(a=0;a<r;a+=4)s=(.34*t[a]+.5*t[a+1]+.16*t[a+2])/255,t[a]=s*n,t[a+1]=s*i,t[a+2]=s*o,t[a+3]=t[a+3]};sx=El.RGB=gF,Iu.Factory.addGetterSetter(i0.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Iu.Factory.addGetterSetter(i0.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Iu.Factory.addGetterSetter(i0.Node,"blue",0,mF.RGBComponent,Iu.Factory.afterSetFilter);const vF=Wt({__proto__:null,get RGB(){return sx},default:El},[El]),yF=Jt(vF);var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});var lx=Cl.RGBA=void 0;const Pl=ge,Du=ur,_F=_e,bF=function(e){var t=e.data,r=t.length,n=this.red(),i=this.green(),o=this.blue(),a=this.alpha(),s,c;for(s=0;s<r;s+=4)c=1-a,t[s]=n*a+t[s]*c,t[s+1]=i*a+t[s+1]*c,t[s+2]=o*a+t[s+2]*c};lx=Cl.RGBA=bF,Pl.Factory.addGetterSetter(Du.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Pl.Factory.addGetterSetter(Du.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Pl.Factory.addGetterSetter(Du.Node,"blue",0,_F.RGBComponent,Pl.Factory.afterSetFilter),Pl.Factory.addGetterSetter(Du.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});const wF=Wt({__proto__:null,get RGBA(){return lx},default:Cl},[Cl]),xF=Jt(wF);var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});var cx=Tl.Sepia=void 0;const SF=function(e){var t=e.data,r=t.length,n,i,o,a;for(n=0;n<r;n+=4)i=t[n+0],o=t[n+1],a=t[n+2],t[n+0]=Math.min(255,i*.393+o*.769+a*.189),t[n+1]=Math.min(255,i*.349+o*.686+a*.168),t[n+2]=Math.min(255,i*.272+o*.534+a*.131)};cx=Tl.Sepia=SF;const $F=Wt({__proto__:null,get Sepia(){return cx},default:Tl},[Tl]),kF=Jt($F);var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});var ux=Ol.Solarize=void 0;const EF=function(e){var t=e.data,r=e.width,n=e.height,i=r*4,o=n;do{var a=(o-1)*i,s=r;do{var c=a+(s-1)*4,l=t[c],u=t[c+1],d=t[c+2];l>127&&(l=255-l),u>127&&(u=255-u),d>127&&(d=255-d),t[c]=l,t[c+1]=u,t[c+2]=d}while(--s)}while(--o)};ux=Ol.Solarize=EF;const CF=Wt({__proto__:null,get Solarize(){return ux},default:Ol},[Ol]),PF=Jt(CF);var Al={};Object.defineProperty(Al,"__esModule",{value:!0});var hx=Al.Threshold=void 0;const dx=ge,TF=ur,OF=_e,AF=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};hx=Al.Threshold=AF,dx.Factory.addGetterSetter(TF.Node,"threshold",.5,(0,OF.getNumberValidator)(),dx.Factory.afterSetFilter);const NF=Wt({__proto__:null,get Threshold(){return hx},default:Al},[Al]),RF=Jt(NF);Object.defineProperty(Fs,"__esModule",{value:!0});var fx=Fs.Konva=void 0;const px=tj,jF=ij,IF=yj,DF=$j,FF=Pj,MF=Nj,mx=Lj,LF=F2,UF=Dp,zF=J2,GF=Xj,VF=Zj,BF=iI,HF=lI,qF=_w,KF=NI,YF=qI,XF=JI,WF=oD,JF=uD,QF=mD,ZF=_D,tM=$D,eM=CD,rM=OD,nM=RD,iM=DD,oM=zD,aM=QD,sM=nF,lM=cF,cM=pF,uM=yF,hM=xF,dM=kF,fM=PF,pM=RF;fx=Fs.Konva=px.Konva.Util._assign(px.Konva,{Arc:jF.Arc,Arrow:IF.Arrow,Circle:DF.Circle,Ellipse:FF.Ellipse,Image:MF.Image,Label:mx.Label,Tag:mx.Tag,Line:LF.Line,Path:UF.Path,Rect:zF.Rect,RegularPolygon:GF.RegularPolygon,Ring:VF.Ring,Sprite:BF.Sprite,Star:HF.Star,Text:qF.Text,TextPath:KF.TextPath,Transformer:YF.Transformer,Wedge:XF.Wedge,Filters:{Blur:WF.Blur,Brighten:JF.Brighten,Contrast:QF.Contrast,Emboss:ZF.Emboss,Enhance:tM.Enhance,Grayscale:eM.Grayscale,HSL:rM.HSL,HSV:nM.HSV,Invert:iM.Invert,Kaleidoscope:oM.Kaleidoscope,Mask:aM.Mask,Noise:sM.Noise,Pixelate:lM.Pixelate,Posterize:cM.Posterize,RGB:uM.RGB,RGBA:hM.RGBA,Sepia:dM.Sepia,Solarize:fM.Solarize,Threshold:pM.Threshold}});const mM=Wt({__proto__:null,get Konva(){return fx},default:Fs},[Fs]),gM=Jt(mM);var vM=dp.exports;Object.defineProperty(vM,"__esModule",{value:!0});const yM=gM;dp.exports=yM.Konva;var _M=dp.exports;const Ye=un(_M),bM=Ye.Ellipse.prototype.toObject;Ye.Ellipse.prototype.toObject=function(){const e=bM.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const wM=Ye.Line.prototype.toObject;Ye.Line.prototype.toObject=function(){const e=wM.call(this);return{...e,attrs:{...e.attrs,x:this.getAbsolutePosition().x,y:this.getAbsolutePosition().y,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const xM=Ye.Node.prototype.toObject,SM=function(){const e=xM.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()}}};Ye.Node.prototype.toObject=SM;const $M=Ye.Node.prototype.remove;Ye.Node.prototype.remove=function(){return $M.call(this),this.fire("removed",{target:this}),this};const kM=Ye.Node.prototype.moveUp;Ye.Node.prototype.moveUp=function(){const e=kM.call(this);return e&&this.fire("move:up"),e};const EM=Ye.Node.prototype.moveDown;Ye.Node.prototype.moveDown=function(){const e=EM.call(this);return e&&this.fire("move:down"),e};const CM=Ye.Node.prototype.moveToTop;Ye.Node.prototype.moveToTop=function(){const e=CM.call(this);return e&&this.fire("move:top"),e};const PM=Ye.Node.prototype.moveToBottom;Ye.Node.prototype.moveToBottom=function(){const e=PM.call(this);return e&&this.fire("move:bottom"),e};const TM=Ye.Node.prototype.moveTo;Ye.Node.prototype.moveTo=function(e){const t=TM.call(this,e);return this.fire("move:to"),t};const OM=Ye.Rect.prototype.toObject;Ye.Rect.prototype.toObject=function(){const e=OM.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash(),cornerRadius:this.cornerRadius()}}};const AM=Ye.RegularPolygon.prototype.toObject;Ye.RegularPolygon.prototype.toObject=function(){const e=AM.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const NM=Ye.Text.prototype.toObject;Ye.Text.prototype.toObject=function(){const e=NM.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth()}}};const RM=Ye.Image.prototype.toObject;Ye.Image.prototype.toObject=function(){const e=RM.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash(),image:this.image()}}};var jM=Object.defineProperty,IM=Object.getOwnPropertyDescriptor,no=(e,t,r,n)=>{for(var i=IM(t,r),o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=a(t,r,i)||i);return i&&jM(t,r,i),i};function io(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}let oo=class{constructor(t,r){jt(this,"app");jt(this,"enabled");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 a=i.toObject(),s=r[o].x-n;return a.attrs={...a.attrs,x:a.attrs.x-s},a}))}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 a=i.toObject(),s=n-(r[o].x+r[o].width);return a.attrs={...a.attrs,x:a.attrs.x+s},a}))}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 a=i.toObject(),s=r[o].y-n;return a.attrs={...a.attrs,y:a.attrs.y-s},a}))}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 a=i.toObject(),s=n-(r[o].y+r[o].height);return a.attrs={...a.attrs,y:a.attrs.y+s},a}))}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 a=i.toObject(),s=n-(r[o].x+r[o].width/2);return a.attrs={...a.attrs,x:a.attrs.x+s},a}))}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 a=i.toObject(),s=n-(r[o].y+r[o].height/2);return a.attrs={...a.attrs,y:a.attrs.y+s},a}))}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,d)=>u.getClientRect()[r]-d.getClientRect()[r]);const n=t[0],i=t[t.length-1],o=n.getClientRect()[r]+(r==="x"?n.getClientRect().width:n.getClientRect().height),a=i.getClientRect()[r]-o,s=t.slice(1,-1).reduce((u,d)=>u+(r==="x"?d.getClientRect().width:d.getClientRect().height),0),c=Math.max((a-s)/(t.length-1),0);let l=o;this.app.update(...t.map((u,d)=>{const f=u.toObject();if(d===0||d===t.length-1)return f;const h=l+c;return f.attrs[r]=h-u.getClientRect()[r]+f.attrs[r],l=h+(r==="x"?u.getClientRect().width:u.getClientRect().height),f}))}};no([io],oo.prototype,"alignLeft"),no([io],oo.prototype,"alignRight"),no([io],oo.prototype,"alignTop"),no([io],oo.prototype,"alignBottom"),no([io],oo.prototype,"alignCenterX"),no([io],oo.prototype,"alignCenterY"),no([io],oo.prototype,"dispersionX"),no([io],oo.prototype,"dispersionY");const DM=M.defineComponent({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Ce.colorPrimary}},setup(e){const t=e;return(r,n)=>(M.openBlock(),M.createElementBlock("span",{class:"icon",style:M.normalizeStyle(["color: "+r.color])},[M.createVNode(M.unref(W3),{icon:t.icon,color:r.color},null,8,["icon","color"])],4))}}),zn=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},Ho=zn(DM,[["__scopeId","data-v-a5ce002f"]]),FM=M.defineComponent({__name:"Button",props:{label:{},icon:{},isDisabled:{type:Boolean,default:!1},height:{default:Ce.height44},iconPosition:{default:"right"},padding:{default:Ce.gap12},fontSize:{default:Ce.fontSize14},borderRadius:{default:Ce.borderRadius},borderColor:{default:Ce.colorPrimary},bgColor:{default:Ce.colorPrimary},fontColor:{default:Ce.colorGrayFF}},emits:["ceClick","click"],setup(e,{emit:t}){const r=e,n=t,i=M.ref(r.borderColor);M.watch(()=>r.borderColor,()=>{i.value=r.borderColor});const o=M.ref(r.bgColor);M.watch(()=>r.bgColor,()=>{o.value=r.bgColor});const a=M.ref(r.isDisabled?"0.6":"1"),s=M.ref(r.isDisabled?"not-allowed":"pointer");let c=!1;const l=()=>{r.isDisabled||(c=!0,i.value=vs(r.borderColor,10),o.value=vs(r.bgColor,10))},u=()=>{r.isDisabled||(c=!1,i.value=r.borderColor,o.value=r.bgColor)},d=()=>{r.isDisabled||(i.value=vs(r.borderColor,-10),o.value=vs(r.bgColor,-10),setTimeout(()=>{c?l():u()},150),n("ceClick"),n("click"))};return(f,h)=>(M.openBlock(),M.createElementBlock("div",M.mergeProps({class:"button",style:[`opacity: ${a.value}`,`border: 1px solid ${i.value}`,`border-radius: ${r.borderRadius}`,`background-color: ${o.value}`,`color: ${f.fontColor}`,`height: ${r.height}`,`line-height: ${r.height}`,`font-size: ${r.fontSize}`,`cursor: ${s.value}`]},f.$attrs,{onMouseover:l,onMouseleave:u,onClick:d}),[M.createElementVNode("label",{class:"label truncate",style:M.normalizeStyle({padding:"0 "+f.padding,cursor:s.value})},[M.renderSlot(f.$slots,"default",{},()=>[f.icon&&f.iconPosition==="right"?(M.openBlock(),M.createBlock(Ho,{key:0,icon:f.icon,color:f.fontColor,style:M.normalizeStyle({marginRight:M.unref(Ce).gap4,cursor:s.value})},null,8,["icon","color","style"])):M.createCommentVNode("",!0),M.createElementVNode("span",{style:M.normalizeStyle({cursor:s.value})},M.toDisplayString(f.label),5),f.icon&&f.iconPosition==="left"?(M.openBlock(),M.createBlock(Ho,{key:1,icon:f.icon,color:f.fontColor,style:M.normalizeStyle({marginLeft:M.unref(Ce).gap4,cursor:s.value})},null,8,["icon","color","style"])):M.createCommentVNode("",!0)],!0)],4)],16))}}),ao=zn(FM,[["__scopeId","data-v-eb62cbe4"]]),MM={id:"page"},LM=zn(M.defineComponent({__name:"MobileLayout",props:{header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},designWidth:{default:750}},emits:["triggerHeader","triggerFooter","triggerLeft","triggerRight"],setup(e,{expose:t,emit:r}){const n=e;LO(n.designWidth);const i=r,o=M.ref(),a=M.ref(),s=M.ref(),c=M.ref(),l=M.ref("0");M.watch(o,($,A)=>{typeof $<"u"&&$!==A&&(l.value=bi(o.value).css("height"))});const u=M.ref("0");M.watch(a,($,A)=>{typeof $<"u"&&$!==A&&(u.value=bi(a.value).css("height"))});const d=M.ref("0");M.watch(s,($,A)=>{typeof $<"u"&&$!==A&&(d.value=bi(s.value).css("width"))});const f=M.ref("0");M.watch(c,($,A)=>{typeof $<"u"&&$!==A&&(f.value=bi(c.value).css("width"))}),window.addEventListener("orientationchange"in window?"orientationchange":"resize",()=>{l.value=bi(o.value).css("height"),u.value=bi(a.value).css("height"),d.value=bi(s.value).css("width"),f.value=bi(c.value).css("width")},!1);const h=new Db;let p=M.ref(n.header);const g=()=>{o.value&&(h.fromDOM([o.value]),h.toCSS("slideDown",{easeName:"ease-in",dur:150,direction:p.value?"reverse":"normal"}),p.value=!p.value,i("triggerHeader",p.value))};let v=M.ref(n.footer);const _=()=>{a.value&&(h.fromDOM([a.value]),h.toCSS("slideUp",{easeName:"ease-in",dur:150,direction:v.value?"reverse":"normal"}),v.value=!v.value,i("triggerFooter",v.value))};let y=M.ref(n.left);const m=()=>{s.value&&(h.fromDOM([s.value]),h.toCSS("slideRight",{easeName:"ease-in",dur:150,direction:y.value?"reverse":"normal"}),y.value=!y.value,i("triggerLeft",y.value))};let x=M.ref(n.right);return t({triggerHeader:g,triggerFooter:_,triggerLeft:m,triggerRight:()=>{c.value&&(h.fromDOM([c.value]),h.toCSS("slideLeft",{easeName:"ease-in",dur:150,direction:x.value?"reverse":"normal"}),x.value=!x.value,i("triggerRight",x.value))}}),($,A)=>(M.openBlock(),M.createElementBlock("div",MM,[M.createElementVNode("header",{id:"header",ref_key:"refHeader",ref:o,style:M.normalizeStyle({transform:$.header?"translate(0, 0)":`translate(0, -${l.value})`})},[M.renderSlot($.$slots,"header",{},void 0,!0)],4),M.createElementVNode("div",{id:"main",style:M.normalizeStyle({paddingTop:M.unref(p)?l.value:0,paddingBottom:M.unref(v)?u.value:0})},[M.renderSlot($.$slots,"main",{},void 0,!0)],4),M.createElementVNode("footer",{id:"footer",ref_key:"refFooter",ref:a,style:M.normalizeStyle({transform:$.footer?"translate(0, 0)":`translate(0, ${u.value})`})},[M.renderSlot($.$slots,"footer",{},void 0,!0)],4),M.createElementVNode("div",{id:"left",ref_key:"refLeft",ref:s,style:M.normalizeStyle({transform:$.left?"translate(0, 0)":`translate(-${d.value}, 0)`})},[M.renderSlot($.$slots,"left",{},void 0,!0)],4),M.createElementVNode("div",{id:"right",ref_key:"refRight",ref:c,style:M.normalizeStyle({transform:$.right?"translate(0, 0)":`translate(${f.value}, 0)`})},[M.renderSlot($.$slots,"right",{},void 0,!0)],4)]))}}),[["__scopeId","data-v-aded2ce3"]]),UM={class:"content"},zM={class:"content-inner"},GM={key:0,class:"title"},VM={key:0,class:"title-inner truncate"},BM={class:"custom-content"},HM={key:1,class:"btns"},o0=zn(M.defineComponent({customOptions:{Icon:Ho,Button:ao},__name:"Dialog",props:{open:{type:Boolean,default:!1},title:{default:"通知"},content:{default:"..."},showTitle:{type:Boolean,default:!0},showClose:{type:Boolean,default:!1},showCancel:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!0},openDurTime:{default:300},closeDurTime:{default:150}},emits:["close","cancel","confirm"],setup(e,{expose:t,emit:r}){const n=e,i=r,o=M.ref(),a=new Db,s=(f=!0)=>{f?M.watch(o,()=>{o.value&&(a.fromDOM(o.value),a.toCSS("popIn",{easeName:"ease",dur:n.openDurTime}))},{once:!0}):a.toCSS("popIn",{easeName:"ease",dur:n.closeDurTime,direction:"reverse"})},c=M.ref();M.watch(c,(f,h)=>{f!==h&&s(c.value)}),M.watch(()=>n.open,()=>{(n.open===!0||n.open===!1)&&(c.value=n.open)},{immediate:!0});function l(){s(!1),setTimeout(()=>{c.value=!1,i("close")},n.closeDurTime)}function u(){l(),i("cancel")}function d(){l(),i("confirm")}return t({close:l}),(f,h)=>c.value?(M.openBlock(),M.createElementBlock("div",{key:0,class:"overlay",style:M.normalizeStyle(["background-color: "+M.unref(CA)(M.unref(Ce).colorGray0,.25)])},[M.createElementVNode("div",UM,[M.createElementVNode("div",zM,[M.createElementVNode("div",{ref_key:"dialog",ref:o,class:"panel",style:M.normalizeStyle(["background-color: "+M.unref(Ce).colorGrayFF,"opacity: 0"])},[f.showTitle||f.showClose?(M.openBlock(),M.createElementBlock("div",GM,[f.showTitle?(M.openBlock(),M.createElementBlock("div",VM,M.toDisplayString(f.title),1)):M.createCommentVNode("",!0),f.showClose?(M.openBlock(),M.createBlock(Ho,{key:1,class:"close",icon:"ic:baseline-close",color:M.unref(Ce).colorGrayCC,onClick:l},null,8,["color"])):M.createCommentVNode("",!0)])):M.createCommentVNode("",!0),M.createElementVNode("div",BM,[M.renderSlot(f.$slots,"default",{},()=>[M.createTextVNode(M.toDisplayString(f.content),1)],!0)]),f.showCancel||f.showConfirm?(M.openBlock(),M.createElementBlock("div",HM,[f.showCancel?(M.openBlock(),M.createBlock(ao,{key:0,onClick:u,class:"btn",bgColor:M.unref(Ce).colorGrayE6,borderColor:M.unref(Ce).colorGrayE6,fontColor:M.unref(Ce).colorGray3,borderRadius:"0"},{default:M.withCtx(()=>[M.createTextVNode(" 取消 ")]),_:1},8,["bgColor","borderColor","fontColor"])):M.createCommentVNode("",!0),f.showConfirm?(M.openBlock(),M.createBlock(ao,{key:1,onClick:d,class:"btn",borderRadius:"0"},{default:M.withCtx(()=>[M.createTextVNode(" 确定 ")]),_:1})):M.createCommentVNode("",!0)])):M.createCommentVNode("",!0)],4)])])],4)):M.createCommentVNode("",!0)}}),[["__scopeId","data-v-04990eca"]]),qM=M.defineComponent({__name:"SVGLoading",props:{width:{default:"4em"},color:{default:Ce.colorPrimary}},setup(e){const t=e;return(r,n)=>(M.openBlock(),M.createElementBlock("svg",{viewBox:"25 25 50 50",style:M.normalizeStyle(["width: "+t.width])},[M.createElementVNode("circle",{cx:"50",cy:"50",r:"20",style:M.normalizeStyle(["stroke: "+t.color])},null,4)],4))}}),gx=zn(qM,[["__scopeId","data-v-294be3ac"]]),KM={class:"loading"},YM={class:"icon"},XM={key:0,class:"content"},WM=zn(M.defineComponent({customOptions:{Dialog:o0,SVGLoading:gx},__name:"DialogLoading",props:{open:{type:Boolean,default:!1},content:{}},setup(e){const t=e;return(r,n)=>(M.openBlock(),M.createBlock(o0,{open:t.open,showConfirm:!1,showTitle:!1},{default:M.withCtx(()=>[M.createElementVNode("div",KM,[M.createElementVNode("div",YM,[M.renderSlot(r.$slots,"default",{},()=>[M.createVNode(gx)],!0)]),r.content?(M.openBlock(),M.createElementBlock("div",XM,M.toDisplayString(r.content),1)):M.createCommentVNode("",!0)])]),_:3},8,["open"]))}}),[["__scopeId","data-v-4c219302"]]),JM=["value"],QM=["value"],ZM=zn(M.defineComponent({__name:"Select",props:{options:{},initIndex:{default:0}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=M.ref(r.initIndex),o=s=>{i.value=parseInt(s.target.value),n("change",r.options[i.value])},a=s=>{s.target.style.borderColor=Ce.colorPrimary};return(s,c)=>(M.openBlock(),M.createElementBlock("select",{value:i.value,onChange:o,onFocus:a,class:"select",style:M.normalizeStyle({border:"1px solid "+M.unref(Ce).colorGrayCC,fontSize:M.unref(Ce).fontSize14})},[(M.openBlock(!0),M.createElementBlock(M.Fragment,null,M.renderList(s.options,(l,u)=>(M.openBlock(),M.createElementBlock("option",{key:u,value:u},M.toDisplayString(l),9,QM))),128))],44,JM))}}),[["__scopeId","data-v-258e6373"]]);function a0(e,t,r){let n=M.ref(r==null?void 0:r.value),i=M.computed(()=>e.value!==void 0);return[M.computed(()=>i.value?e.value:n.value),function(o){return i.value||(n.value=o),t==null?void 0:t(o)}]}let tL=Symbol("headlessui.useid"),eL=0;function Gn(){return M.inject(tL,()=>`${++eL}`)()}function de(e){var t;if(e==null||e.value==null)return null;let r=(t=e.value.$el)!=null?t:e.value;return r instanceof Node?r:null}function Gr(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Gr),n}var rL=Object.defineProperty,nL=(e,t,r)=>t in e?rL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vx=(e,t,r)=>(nL(e,typeof t!="symbol"?t+"":t,r),r);let iL=class{constructor(){vx(this,"current",this.detect()),vx(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},s0=new iL;function Oa(e){if(s0.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=de(e);if(t)return t.ownerDocument}return document}let l0=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Vr=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Vr||{}),qo=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(qo||{}),oL=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(oL||{});function aL(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(l0)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var c0=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(c0||{});function yx(e,t=0){var r;return e===((r=Oa(e))==null?void 0:r.body)?!1:Gr(t,{0(){return e.matches(l0)},1(){let n=e;for(;n!==null;){if(n.matches(l0))return!0;n=n.parentElement}return!1}})}var sL=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(sL||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let lL=["textarea","input"].join(",");function cL(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,lL))!=null?r:!1}function so(e,t=r=>r){return e.slice().sort((r,n)=>{let i=t(r),o=t(n);if(i===null||o===null)return 0;let a=i.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lo(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:i=[]}={}){var o;let a=(o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?o:document,s=Array.isArray(e)?r?so(e):e:aL(e);i.length>0&&s.length>1&&(s=s.filter(p=>!i.includes(p))),n=n??a.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(n))-1;if(t&4)return Math.max(0,s.indexOf(n))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},d=0,f=s.length,h;do{if(d>=f||d+f<=0)return 0;let p=l+d;if(t&16)p=(p+f)%f;else{if(p<0)return 3;if(p>=f)return 1}h=s[p],h==null||h.focus(u),d+=c}while(h!==a.activeElement);return t&6&&cL(h)&&h.select(),2}function uL(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function hL(){return/Android/gi.test(window.navigator.userAgent)}function dL(){return uL()||hL()}function Fu(e,t,r){s0.isServer||M.watchEffect(n=>{document.addEventListener(e,t,r),n(()=>document.removeEventListener(e,t,r))})}function fL(e,t,r){s0.isServer||M.watchEffect(n=>{window.addEventListener(e,t,r),n(()=>window.removeEventListener(e,t,r))})}function pL(e,t,r=M.computed(()=>!0)){function n(o,a){if(!r.value||o.defaultPrevented)return;let s=a(o);if(s===null||!s.getRootNode().contains(s))return;let c=function l(u){return typeof u=="function"?l(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let l of c){if(l===null)continue;let u=l instanceof HTMLElement?l:de(l);if(u!=null&&u.contains(s)||o.composed&&o.composedPath().includes(u))return}return!yx(s,c0.Loose)&&s.tabIndex!==-1&&o.preventDefault(),t(o,s)}let i=M.ref(null);Fu("pointerdown",o=>{var a,s;r.value&&(i.value=((s=(a=o.composedPath)==null?void 0:a.call(o))==null?void 0:s[0])||o.target)},!0),Fu("mousedown",o=>{var a,s;r.value&&(i.value=((s=(a=o.composedPath)==null?void 0:a.call(o))==null?void 0:s[0])||o.target)},!0),Fu("click",o=>{dL()||i.value&&(n(o,()=>i.value),i.value=null)},!0),Fu("touchend",o=>n(o,()=>o.target instanceof HTMLElement?o.target:null),!0),fL("blur",o=>n(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function _x(e,t){if(e)return e;let r=t??"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function u0(e,t){let r=M.ref(_x(e.value.type,e.value.as));return M.onMounted(()=>{r.value=_x(e.value.type,e.value.as)}),M.watchEffect(()=>{var n;r.value||de(t)&&de(t)instanceof HTMLButtonElement&&!((n=de(t))!=null&&n.hasAttribute("type"))&&(r.value="button")}),r}function bx(e){return[e.screenX,e.screenY]}function mL(){let e=M.ref([-1,-1]);return{wasMoved(t){let r=bx(t);return e.value[0]===r[0]&&e.value[1]===r[1]?!1:(e.value=r,!0)},update(t){e.value=bx(t)}}}function gL({container:e,accept:t,walk:r,enabled:n}){M.watchEffect(()=>{let i=e.value;if(!i||n!==void 0&&!n.value)return;let o=Oa(e);if(!o)return;let a=Object.assign(c=>t(c),{acceptNode:t}),s=o.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,a,!1);for(;s.nextNode();)r(s.currentNode)})}var Nl=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Nl||{}),vL=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(vL||{});function Pr({visible:e=!0,features:t=0,ourProps:r,theirProps:n,...i}){var o;let a=xx(n,r),s=Object.assign(i,{props:a});if(e||t&2&&a.static)return h0(s);if(t&1){let c=(o=a.unmount)==null||o?0:1;return Gr(c,{0(){return null},1(){return h0({...i,props:{...a,hidden:!0,style:{display:"none"}}})}})}return h0(s)}function h0({props:e,attrs:t,slots:r,slot:n,name:i}){var o,a;let{as:s,...c}=Rl(e,["unmount","static"]),l=(o=r.default)==null?void 0:o.call(r,n),u={};if(n){let d=!1,f=[];for(let[h,p]of Object.entries(n))typeof p=="boolean"&&(d=!0),p===!0&&f.push(h);d&&(u["data-headlessui-state"]=f.join(" "))}if(s==="template"){if(l=wx(l??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[d,...f]=l??[];if(!yL(d)||f.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(g=>g.trim()).filter((g,v,_)=>_.indexOf(g)===v).sort((g,v)=>g.localeCompare(v)).map(g=>` - ${g}`).join(`
|
|
44
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(`
|
|
45
|
-
`)].join(`
|
|
46
|
-
`));let h=xx((a=d.props)!=null?a:{},c,u),p=M.cloneVNode(d,h,!0);for(let g in h)g.startsWith("on")&&(p.props||(p.props={}),p.props[g]=h[g]);return p}return Array.isArray(l)&&l.length===1?l[0]:l}return M.h(s,Object.assign({},c,u),{default:()=>l})}function wx(e){return e.flatMap(t=>t.type===M.Fragment?wx(t.children):[t])}function xx(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...o){let a=r[n];for(let s of a){if(i instanceof Event&&i.defaultPrevented)return;s(i,...o)}}});return t}function d0(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Rl(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function yL(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var jl=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(jl||{});let Il=M.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:r}){return()=>{var n;let{features:i,...o}=e,a={"aria-hidden":(i&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Pr({ourProps:a,theirProps:o,slot:{},attrs:r,slots:t,name:"Hidden"})}}}),Sx=Symbol("Context");var Dl=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Dl||{});function _L(){return M.inject(Sx,null)}function bL(e){M.provide(Sx,e)}var we=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(we||{});function wL(e){throw new Error("Unexpected object: "+e)}var Br=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Br||{});function xL(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1;switch(e.focus){case 0:{for(let o=0;o<r.length;++o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 1:{i===-1&&(i=r.length);for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 2:{for(let o=i+1;o<r.length;++o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 3:{for(let o=r.length-1;o>=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 4:{for(let o=0;o<r.length;++o)if(t.resolveId(r[o],o,r)===e.id)return o;return n}case 5:return null;default:wL(e)}}function SL(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function f0(e={},t=null,r=[]){for(let[n,i]of Object.entries(e))kx(r,$x(t,n),i);return r}function $x(e,t){return e?e+"["+t+"]":t}function kx(e,t,r){if(Array.isArray(r))for(let[n,i]of r.entries())kx(e,$x(t,n.toString()),i);else r instanceof Date?e.push([t,r.toISOString()]):typeof r=="boolean"?e.push([t,r?"1":"0"]):typeof r=="string"?e.push([t,r]):typeof r=="number"?e.push([t,`${r}`]):r==null?e.push([t,""]):f0(r,t,e)}function Ex(e){var t,r;let n=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(n){for(let i of n.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(r=n.requestSubmit)==null||r.call(n)}}let Cx=Symbol("DescriptionContext");function $L(){let e=M.inject(Cx,null);if(e===null)throw new Error("Missing parent");return e}function p0({slot:e=M.ref({}),name:t="Description",props:r={}}={}){let n=M.ref([]);function i(o){return n.value.push(o),()=>{let a=n.value.indexOf(o);a!==-1&&n.value.splice(a,1)}}return M.provide(Cx,{register:i,slot:e,name:t,props:r}),M.computed(()=>n.value.length>0?n.value.join(" "):void 0)}M.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r}){var n;let i=(n=e.id)!=null?n:`headlessui-description-${Gn()}`,o=$L();return M.onMounted(()=>M.onUnmounted(o.register(i))),()=>{let{name:a="Description",slot:s=M.ref({}),props:c={}}=o,{...l}=e,u={...Object.entries(c).reduce((d,[f,h])=>Object.assign(d,{[f]:M.unref(h)}),{}),id:i};return Pr({ourProps:u,theirProps:l,slot:s.value,attrs:t,slots:r,name:a})}}});let Px=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Tx(e){var t,r;let n=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?(r=i.innerText)!=null?r:"":n;return Px.test(a)&&(a=a.replace(Px,"")),a}function kL(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(i=>{let o=document.getElementById(i);if(o){let a=o.getAttribute("aria-label");return typeof a=="string"?a.trim():Tx(o).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return Tx(e).trim()}function EL(e){let t=M.ref(""),r=M.ref("");return()=>{let n=de(e);if(!n)return"";let i=n.innerText;if(t.value===i)return r.value;let o=kL(n).trim().toLowerCase();return t.value=i,r.value=o,o}}function CL(e,t){return e===t}var PL=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(PL||{}),TL=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(TL||{}),OL=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(OL||{});function AL(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let Ox=Symbol("ListboxContext");function Fl(e){let t=M.inject(Ox,null);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Fl),r}return t}let NL=M.defineComponent({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>CL},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r,emit:n}){let i=M.ref(1),o=M.ref(null),a=M.ref(null),s=M.ref(null),c=M.ref([]),l=M.ref(""),u=M.ref(null),d=M.ref(1);function f(m=x=>x){let x=u.value!==null?c.value[u.value]:null,N=so(m(c.value.slice()),A=>de(A.dataRef.domRef)),$=x?N.indexOf(x):null;return $===-1&&($=null),{options:N,activeOptionIndex:$}}let h=M.computed(()=>e.multiple?1:0),[p,g]=a0(M.computed(()=>e.modelValue),m=>n("update:modelValue",m),M.computed(()=>e.defaultValue)),v=M.computed(()=>p.value===void 0?Gr(h.value,{1:[],0:void 0}):p.value),_={listboxState:i,value:v,mode:h,compare(m,x){if(typeof e.by=="string"){let N=e.by;return(m==null?void 0:m[N])===(x==null?void 0:x[N])}return e.by(m,x)},orientation:M.computed(()=>e.horizontal?"horizontal":"vertical"),labelRef:o,buttonRef:a,optionsRef:s,disabled:M.computed(()=>e.disabled),options:c,searchQuery:l,activeOptionIndex:u,activationTrigger:d,closeListbox(){e.disabled||i.value!==1&&(i.value=1,u.value=null)},openListbox(){e.disabled||i.value!==0&&(i.value=0)},goToOption(m,x,N){if(e.disabled||i.value===1)return;let $=f(),A=xL(m===Br.Specific?{focus:Br.Specific,id:x}:{focus:m},{resolveItems:()=>$.options,resolveActiveIndex:()=>$.activeOptionIndex,resolveId:R=>R.id,resolveDisabled:R=>R.dataRef.disabled});l.value="",u.value=A,d.value=N??1,c.value=$.options},search(m){if(e.disabled||i.value===1)return;let x=l.value!==""?0:1;l.value+=m.toLowerCase();let N=(u.value!==null?c.value.slice(u.value+x).concat(c.value.slice(0,u.value+x)):c.value).find(A=>A.dataRef.textValue.startsWith(l.value)&&!A.dataRef.disabled),$=N?c.value.indexOf(N):-1;$===-1||$===u.value||(u.value=$,d.value=1)},clearSearch(){e.disabled||i.value!==1&&l.value!==""&&(l.value="")},registerOption(m,x){let N=f($=>[...$,{id:m,dataRef:x}]);c.value=N.options,u.value=N.activeOptionIndex},unregisterOption(m){let x=f(N=>{let $=N.findIndex(A=>A.id===m);return $!==-1&&N.splice($,1),N});c.value=x.options,u.value=x.activeOptionIndex,d.value=1},theirOnChange(m){e.disabled||g(m)},select(m){e.disabled||g(Gr(h.value,{0:()=>m,1:()=>{let x=M.toRaw(_.value.value).slice(),N=M.toRaw(m),$=x.findIndex(A=>_.compare(N,M.toRaw(A)));return $===-1?x.push(N):x.splice($,1),x}}))}};pL([a,s],(m,x)=>{var N;_.closeListbox(),yx(x,c0.Loose)||(m.preventDefault(),(N=de(a))==null||N.focus())},M.computed(()=>i.value===0)),M.provide(Ox,_),bL(M.computed(()=>Gr(i.value,{0:Dl.Open,1:Dl.Closed})));let y=M.computed(()=>{var m;return(m=de(a))==null?void 0:m.closest("form")});return M.onMounted(()=>{M.watch([y],()=>{if(!y.value||e.defaultValue===void 0)return;function m(){_.theirOnChange(e.defaultValue)}return y.value.addEventListener("reset",m),()=>{var x;(x=y.value)==null||x.removeEventListener("reset",m)}},{immediate:!0})}),()=>{let{name:m,modelValue:x,disabled:N,form:$,...A}=e,R={open:i.value===0,disabled:N,value:v.value};return M.h(M.Fragment,[...m!=null&&v.value!=null?f0({[m]:v.value}).map(([G,H])=>M.h(Il,d0({features:jl.Hidden,key:G,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:$,disabled:N,name:G,value:H}))):[],Pr({ourProps:{},theirProps:{...r,...Rl(A,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:R,slots:t,attrs:r,name:"Listbox"})])}}});M.defineComponent({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r}){var n;let i=(n=e.id)!=null?n:`headlessui-listbox-label-${Gn()}`,o=Fl("ListboxLabel");function a(){var s;(s=de(o.buttonRef))==null||s.focus({preventScroll:!0})}return()=>{let s={open:o.listboxState.value===0,disabled:o.disabled.value},{...c}=e,l={id:i,ref:o.labelRef,onClick:a};return Pr({ourProps:l,theirProps:c,slot:s,attrs:t,slots:r,name:"ListboxLabel"})}}});let RL=M.defineComponent({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var i;let o=(i=e.id)!=null?i:`headlessui-listbox-button-${Gn()}`,a=Fl("ListboxButton");n({el:a.buttonRef,$el:a.buttonRef});function s(d){switch(d.key){case we.Space:case we.Enter:case we.ArrowDown:d.preventDefault(),a.openListbox(),M.nextTick(()=>{var f;(f=de(a.optionsRef))==null||f.focus({preventScroll:!0}),a.value.value||a.goToOption(Br.First)});break;case we.ArrowUp:d.preventDefault(),a.openListbox(),M.nextTick(()=>{var f;(f=de(a.optionsRef))==null||f.focus({preventScroll:!0}),a.value.value||a.goToOption(Br.Last)});break}}function c(d){switch(d.key){case we.Space:d.preventDefault();break}}function l(d){a.disabled.value||(a.listboxState.value===0?(a.closeListbox(),M.nextTick(()=>{var f;return(f=de(a.buttonRef))==null?void 0:f.focus({preventScroll:!0})})):(d.preventDefault(),a.openListbox(),AL(()=>{var f;return(f=de(a.optionsRef))==null?void 0:f.focus({preventScroll:!0})})))}let u=u0(M.computed(()=>({as:e.as,type:t.type})),a.buttonRef);return()=>{var d,f;let h={open:a.listboxState.value===0,disabled:a.disabled.value,value:a.value.value},{...p}=e,g={ref:a.buttonRef,id:o,type:u.value,"aria-haspopup":"listbox","aria-controls":(d=de(a.optionsRef))==null?void 0:d.id,"aria-expanded":a.listboxState.value===0,"aria-labelledby":a.labelRef.value?[(f=de(a.labelRef))==null?void 0:f.id,o].join(" "):void 0,disabled:a.disabled.value===!0?!0:void 0,onKeydown:s,onKeyup:c,onClick:l};return Pr({ourProps:g,theirProps:p,slot:h,attrs:t,slots:r,name:"ListboxButton"})}}}),jL=M.defineComponent({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var i;let o=(i=e.id)!=null?i:`headlessui-listbox-options-${Gn()}`,a=Fl("ListboxOptions"),s=M.ref(null);n({el:a.optionsRef,$el:a.optionsRef});function c(d){switch(s.value&&clearTimeout(s.value),d.key){case we.Space:if(a.searchQuery.value!=="")return d.preventDefault(),d.stopPropagation(),a.search(d.key);case we.Enter:if(d.preventDefault(),d.stopPropagation(),a.activeOptionIndex.value!==null){let f=a.options.value[a.activeOptionIndex.value];a.select(f.dataRef.value)}a.mode.value===0&&(a.closeListbox(),M.nextTick(()=>{var f;return(f=de(a.buttonRef))==null?void 0:f.focus({preventScroll:!0})}));break;case Gr(a.orientation.value,{vertical:we.ArrowDown,horizontal:we.ArrowRight}):return d.preventDefault(),d.stopPropagation(),a.goToOption(Br.Next);case Gr(a.orientation.value,{vertical:we.ArrowUp,horizontal:we.ArrowLeft}):return d.preventDefault(),d.stopPropagation(),a.goToOption(Br.Previous);case we.Home:case we.PageUp:return d.preventDefault(),d.stopPropagation(),a.goToOption(Br.First);case we.End:case we.PageDown:return d.preventDefault(),d.stopPropagation(),a.goToOption(Br.Last);case we.Escape:d.preventDefault(),d.stopPropagation(),a.closeListbox(),M.nextTick(()=>{var f;return(f=de(a.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case we.Tab:d.preventDefault(),d.stopPropagation();break;default:d.key.length===1&&(a.search(d.key),s.value=setTimeout(()=>a.clearSearch(),350));break}}let l=_L(),u=M.computed(()=>l!==null?(l.value&Dl.Open)===Dl.Open:a.listboxState.value===0);return()=>{var d,f;let h={open:a.listboxState.value===0},{...p}=e,g={"aria-activedescendant":a.activeOptionIndex.value===null||(d=a.options.value[a.activeOptionIndex.value])==null?void 0:d.id,"aria-multiselectable":a.mode.value===1?!0:void 0,"aria-labelledby":(f=de(a.buttonRef))==null?void 0:f.id,"aria-orientation":a.orientation.value,id:o,onKeydown:c,role:"listbox",tabIndex:0,ref:a.optionsRef};return Pr({ourProps:g,theirProps:p,slot:h,attrs:t,slots:r,features:Nl.RenderStrategy|Nl.Static,visible:u.value,name:"ListboxOptions"})}}}),IL=M.defineComponent({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:r,expose:n}){var i;let o=(i=e.id)!=null?i:`headlessui-listbox-option-${Gn()}`,a=Fl("ListboxOption"),s=M.ref(null);n({el:s,$el:s});let c=M.computed(()=>a.activeOptionIndex.value!==null?a.options.value[a.activeOptionIndex.value].id===o:!1),l=M.computed(()=>Gr(a.mode.value,{0:()=>a.compare(M.toRaw(a.value.value),M.toRaw(e.value)),1:()=>M.toRaw(a.value.value).some(m=>a.compare(M.toRaw(m),M.toRaw(e.value)))})),u=M.computed(()=>Gr(a.mode.value,{1:()=>{var m;let x=M.toRaw(a.value.value);return((m=a.options.value.find(N=>x.some($=>a.compare(M.toRaw($),M.toRaw(N.dataRef.value)))))==null?void 0:m.id)===o},0:()=>l.value})),d=EL(s),f=M.computed(()=>({disabled:e.disabled,value:e.value,get textValue(){return d()},domRef:s}));M.onMounted(()=>a.registerOption(o,f)),M.onUnmounted(()=>a.unregisterOption(o)),M.onMounted(()=>{M.watch([a.listboxState,l],()=>{a.listboxState.value===0&&l.value&&Gr(a.mode.value,{1:()=>{u.value&&a.goToOption(Br.Specific,o)},0:()=>{a.goToOption(Br.Specific,o)}})},{immediate:!0})}),M.watchEffect(()=>{a.listboxState.value===0&&c.value&&a.activationTrigger.value!==0&&M.nextTick(()=>{var m,x;return(x=(m=de(s))==null?void 0:m.scrollIntoView)==null?void 0:x.call(m,{block:"nearest"})})});function h(m){if(e.disabled)return m.preventDefault();a.select(e.value),a.mode.value===0&&(a.closeListbox(),M.nextTick(()=>{var x;return(x=de(a.buttonRef))==null?void 0:x.focus({preventScroll:!0})}))}function p(){if(e.disabled)return a.goToOption(Br.Nothing);a.goToOption(Br.Specific,o)}let g=mL();function v(m){g.update(m)}function _(m){g.wasMoved(m)&&(e.disabled||c.value||a.goToOption(Br.Specific,o,0))}function y(m){g.wasMoved(m)&&(e.disabled||c.value&&a.goToOption(Br.Nothing))}return()=>{let{disabled:m}=e,x={active:c.value,selected:l.value,disabled:m},{value:N,disabled:$,...A}=e,R={id:o,ref:s,role:"option",tabIndex:m===!0?void 0:-1,"aria-disabled":m===!0?!0:void 0,"aria-selected":l.value,disabled:void 0,onClick:h,onFocus:p,onPointerenter:v,onMouseenter:v,onPointermove:_,onMousemove:_,onPointerleave:y,onMouseleave:y};return Pr({ourProps:R,theirProps:A,slot:x,attrs:r,slots:t,name:"ListboxOption"})}}}),Ax=Symbol("LabelContext");function Nx(){let e=M.inject(Ax,null);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Nx),t}return e}function m0({slot:e={},name:t="Label",props:r={}}={}){let n=M.ref([]);function i(o){return n.value.push(o),()=>{let a=n.value.indexOf(o);a!==-1&&n.value.splice(a,1)}}return M.provide(Ax,{register:i,slot:e,name:t,props:r}),M.computed(()=>n.value.length>0?n.value.join(" "):void 0)}let DL=M.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:r}){var n;let i=(n=e.id)!=null?n:`headlessui-label-${Gn()}`,o=Nx();return M.onMounted(()=>M.onUnmounted(o.register(i))),()=>{let{name:a="Label",slot:s={},props:c={}}=o,{passive:l,...u}=e,d={...Object.entries(c).reduce((f,[h,p])=>Object.assign(f,{[h]:M.unref(p)}),{}),id:i};return l&&(delete d.onClick,delete d.htmlFor,delete u.onClick),Pr({ourProps:d,theirProps:u,slot:s,attrs:r,slots:t,name:a})}}});function FL(e,t){return e===t}let Rx=Symbol("RadioGroupContext");function jx(e){let t=M.inject(Rx,null);if(t===null){let r=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,jx),r}return t}let ML=M.defineComponent({name:"RadioGroup",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>FL},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{emit:t,attrs:r,slots:n,expose:i}){var o;let a=(o=e.id)!=null?o:`headlessui-radiogroup-${Gn()}`,s=M.ref(null),c=M.ref([]),l=m0({name:"RadioGroupLabel"}),u=p0({name:"RadioGroupDescription"});i({el:s,$el:s});let[d,f]=a0(M.computed(()=>e.modelValue),v=>t("update:modelValue",v),M.computed(()=>e.defaultValue)),h={options:c,value:d,disabled:M.computed(()=>e.disabled),firstOption:M.computed(()=>c.value.find(v=>!v.propsRef.disabled)),containsCheckedOption:M.computed(()=>c.value.some(v=>h.compare(M.toRaw(v.propsRef.value),M.toRaw(e.modelValue)))),compare(v,_){if(typeof e.by=="string"){let y=e.by;return(v==null?void 0:v[y])===(_==null?void 0:_[y])}return e.by(v,_)},change(v){var _;if(e.disabled||h.compare(M.toRaw(d.value),M.toRaw(v)))return!1;let y=(_=c.value.find(m=>h.compare(M.toRaw(m.propsRef.value),M.toRaw(v))))==null?void 0:_.propsRef;return y!=null&&y.disabled?!1:(f(v),!0)},registerOption(v){c.value.push(v),c.value=so(c.value,_=>_.element)},unregisterOption(v){let _=c.value.findIndex(y=>y.id===v);_!==-1&&c.value.splice(_,1)}};M.provide(Rx,h),gL({container:M.computed(()=>de(s)),accept(v){return v.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:v.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(v){v.setAttribute("role","none")}});function p(v){if(!s.value||!s.value.contains(v.target))return;let _=c.value.filter(y=>y.propsRef.disabled===!1).map(y=>y.element);switch(v.key){case we.Enter:Ex(v.currentTarget);break;case we.ArrowLeft:case we.ArrowUp:if(v.preventDefault(),v.stopPropagation(),lo(_,Vr.Previous|Vr.WrapAround)===qo.Success){let y=c.value.find(m=>{var x;return m.element===((x=Oa(s))==null?void 0:x.activeElement)});y&&h.change(y.propsRef.value)}break;case we.ArrowRight:case we.ArrowDown:if(v.preventDefault(),v.stopPropagation(),lo(_,Vr.Next|Vr.WrapAround)===qo.Success){let y=c.value.find(m=>{var x;return m.element===((x=Oa(m.element))==null?void 0:x.activeElement)});y&&h.change(y.propsRef.value)}break;case we.Space:{v.preventDefault(),v.stopPropagation();let y=c.value.find(m=>{var x;return m.element===((x=Oa(m.element))==null?void 0:x.activeElement)});y&&h.change(y.propsRef.value)}break}}let g=M.computed(()=>{var v;return(v=de(s))==null?void 0:v.closest("form")});return M.onMounted(()=>{M.watch([g],()=>{if(!g.value||e.defaultValue===void 0)return;function v(){h.change(e.defaultValue)}return g.value.addEventListener("reset",v),()=>{var _;(_=g.value)==null||_.removeEventListener("reset",v)}},{immediate:!0})}),()=>{let{disabled:v,name:_,form:y,...m}=e,x={ref:s,id:a,role:"radiogroup","aria-labelledby":l.value,"aria-describedby":u.value,onKeydown:p};return M.h(M.Fragment,[..._!=null&&d.value!=null?f0({[_]:d.value}).map(([N,$])=>M.h(Il,d0({features:jl.Hidden,key:N,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:y,disabled:v,name:N,value:$}))):[],Pr({ourProps:x,theirProps:{...r,...Rl(m,["modelValue","defaultValue","by"])},slot:{},attrs:r,slots:n,name:"RadioGroup"})])}}});var LL=(e=>(e[e.Empty=1]="Empty",e[e.Active=2]="Active",e))(LL||{});let UL=M.defineComponent({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var i;let o=(i=e.id)!=null?i:`headlessui-radiogroup-option-${Gn()}`,a=jx("RadioGroupOption"),s=m0({name:"RadioGroupLabel"}),c=p0({name:"RadioGroupDescription"}),l=M.ref(null),u=M.computed(()=>({value:e.value,disabled:e.disabled})),d=M.ref(1);n({el:l,$el:l});let f=M.computed(()=>de(l));M.onMounted(()=>a.registerOption({id:o,element:f,propsRef:u})),M.onUnmounted(()=>a.unregisterOption(o));let h=M.computed(()=>{var x;return((x=a.firstOption.value)==null?void 0:x.id)===o}),p=M.computed(()=>a.disabled.value||e.disabled),g=M.computed(()=>a.compare(M.toRaw(a.value.value),M.toRaw(e.value))),v=M.computed(()=>p.value?-1:g.value||!a.containsCheckedOption.value&&h.value?0:-1);function _(){var x;a.change(e.value)&&(d.value|=2,(x=de(l))==null||x.focus())}function y(){d.value|=2}function m(){d.value&=-3}return()=>{let{value:x,disabled:N,...$}=e,A={checked:g.value,disabled:p.value,active:!!(d.value&2)},R={id:o,ref:l,role:"radio","aria-checked":g.value?"true":"false","aria-labelledby":s.value,"aria-describedby":c.value,"aria-disabled":p.value?!0:void 0,tabIndex:v.value,onClick:p.value?void 0:_,onFocus:p.value?void 0:y,onBlur:p.value?void 0:m};return Pr({ourProps:R,theirProps:$,slot:A,attrs:t,slots:r,name:"RadioGroupOption"})}}}),zL=DL,Ix=Symbol("GroupContext"),GL=M.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:r}){let n=M.ref(null),i=m0({name:"SwitchLabel",props:{htmlFor:M.computed(()=>{var a;return(a=n.value)==null?void 0:a.id}),onClick(a){n.value&&(a.currentTarget.tagName==="LABEL"&&a.preventDefault(),n.value.click(),n.value.focus({preventScroll:!0}))}}}),o=p0({name:"SwitchDescription"});return M.provide(Ix,{switchRef:n,labelledby:i,describedby:o}),()=>Pr({theirProps:e,ourProps:{},slot:{},slots:t,attrs:r,name:"SwitchGroup"})}}),VL=M.defineComponent({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(e,{emit:t,attrs:r,slots:n,expose:i}){var o;let a=(o=e.id)!=null?o:`headlessui-switch-${Gn()}`,s=M.inject(Ix,null),[c,l]=a0(M.computed(()=>e.modelValue),y=>t("update:modelValue",y),M.computed(()=>e.defaultChecked));function u(){l(!c.value)}let d=M.ref(null),f=s===null?d:s.switchRef,h=u0(M.computed(()=>({as:e.as,type:r.type})),f);i({el:f,$el:f});function p(y){y.preventDefault(),u()}function g(y){y.key===we.Space?(y.preventDefault(),u()):y.key===we.Enter&&Ex(y.currentTarget)}function v(y){y.preventDefault()}let _=M.computed(()=>{var y,m;return(m=(y=de(f))==null?void 0:y.closest)==null?void 0:m.call(y,"form")});return M.onMounted(()=>{M.watch([_],()=>{if(!_.value||e.defaultChecked===void 0)return;function y(){l(e.defaultChecked)}return _.value.addEventListener("reset",y),()=>{var m;(m=_.value)==null||m.removeEventListener("reset",y)}},{immediate:!0})}),()=>{let{name:y,value:m,form:x,tabIndex:N,...$}=e,A={checked:c.value},R={id:a,ref:f,role:"switch",type:h.value,tabIndex:N===-1?0:N,"aria-checked":c.value,"aria-labelledby":s==null?void 0:s.labelledby.value,"aria-describedby":s==null?void 0:s.describedby.value,onClick:p,onKeyup:g,onKeypress:v};return M.h(M.Fragment,[y!=null&&c.value!=null?M.h(Il,d0({features:jl.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:x,disabled:$.disabled,name:y,value:m})):null,Pr({ourProps:R,theirProps:{...r,...Rl($,["modelValue","defaultChecked"])},slot:A,attrs:r,slots:n,name:"Switch"})])}}}),BL=M.defineComponent({props:{onFocus:{type:Function,required:!0}},setup(e){let t=M.ref(!0);return()=>t.value?M.h(Il,{as:"button",type:"button",features:jl.Focusable,onFocus(r){r.preventDefault();let n,i=50;function o(){var a;if(i--<=0){n&&cancelAnimationFrame(n);return}if((a=e.onFocus)!=null&&a.call(e)){t.value=!1,cancelAnimationFrame(n);return}n=requestAnimationFrame(o)}n=requestAnimationFrame(o)}}):null}});var HL=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(HL||{}),qL=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(qL||{});let Dx=Symbol("TabsContext");function Ml(e){let t=M.inject(Dx,null);if(t===null){let r=new Error(`<${e} /> is missing a parent <TabGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Ml),r}return t}let g0=Symbol("TabsSSRContext"),KL=M.defineComponent({name:"TabGroup",emits:{change:e=>!0},props:{as:{type:[Object,String],default:"template"},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r,emit:n}){var i;let o=M.ref((i=e.selectedIndex)!=null?i:e.defaultIndex),a=M.ref([]),s=M.ref([]),c=M.computed(()=>e.selectedIndex!==null),l=M.computed(()=>c.value?e.selectedIndex:o.value);function u(g){var v;let _=so(d.tabs.value,de),y=so(d.panels.value,de),m=_.filter(x=>{var N;return!((N=de(x))!=null&&N.hasAttribute("disabled"))});if(g<0||g>_.length-1){let x=Gr(o.value===null?0:Math.sign(g-o.value),{[-1]:()=>1,0:()=>Gr(Math.sign(g),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),N=Gr(x,{0:()=>_.indexOf(m[0]),1:()=>_.indexOf(m[m.length-1])});N!==-1&&(o.value=N),d.tabs.value=_,d.panels.value=y}else{let x=_.slice(0,g),N=[..._.slice(g),...x].find(A=>m.includes(A));if(!N)return;let $=(v=_.indexOf(N))!=null?v:d.selectedIndex.value;$===-1&&($=d.selectedIndex.value),o.value=$,d.tabs.value=_,d.panels.value=y}}let d={selectedIndex:M.computed(()=>{var g,v;return(v=(g=o.value)!=null?g:e.defaultIndex)!=null?v:null}),orientation:M.computed(()=>e.vertical?"vertical":"horizontal"),activation:M.computed(()=>e.manual?"manual":"auto"),tabs:a,panels:s,setSelectedIndex(g){l.value!==g&&n("change",g),c.value||u(g)},registerTab(g){var v;if(a.value.includes(g))return;let _=a.value[o.value];if(a.value.push(g),a.value=so(a.value,de),!c.value){let y=(v=a.value.indexOf(_))!=null?v:o.value;y!==-1&&(o.value=y)}},unregisterTab(g){let v=a.value.indexOf(g);v!==-1&&a.value.splice(v,1)},registerPanel(g){s.value.includes(g)||(s.value.push(g),s.value=so(s.value,de))},unregisterPanel(g){let v=s.value.indexOf(g);v!==-1&&s.value.splice(v,1)}};M.provide(Dx,d);let f=M.ref({tabs:[],panels:[]}),h=M.ref(!1);M.onMounted(()=>{h.value=!0}),M.provide(g0,M.computed(()=>h.value?null:f.value));let p=M.computed(()=>e.selectedIndex);return M.onMounted(()=>{M.watch([p],()=>{var g;return u((g=e.selectedIndex)!=null?g:e.defaultIndex)},{immediate:!0})}),M.watchEffect(()=>{if(!c.value||l.value==null||d.tabs.value.length<=0)return;let g=so(d.tabs.value,de);g.some((v,_)=>de(d.tabs.value[_])!==de(v))&&d.setSelectedIndex(g.findIndex(v=>de(v)===de(d.tabs.value[l.value])))}),()=>{let g={selectedIndex:o.value};return M.h(M.Fragment,[a.value.length<=0&&M.h(BL,{onFocus:()=>{for(let v of a.value){let _=de(v);if((_==null?void 0:_.tabIndex)===0)return _.focus(),!0}return!1}}),Pr({theirProps:{...r,...Rl(e,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:g,slots:t,attrs:r,name:"TabGroup"})])}}}),YL=M.defineComponent({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:r}){let n=Ml("TabList");return()=>{let i={selectedIndex:n.selectedIndex.value},o={role:"tablist","aria-orientation":n.orientation.value};return Pr({ourProps:o,theirProps:e,slot:i,attrs:t,slots:r,name:"TabList"})}}}),XL=M.defineComponent({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var i;let o=(i=e.id)!=null?i:`headlessui-tabs-tab-${Gn()}`,a=Ml("Tab"),s=M.ref(null);n({el:s,$el:s}),M.onMounted(()=>a.registerTab(s)),M.onUnmounted(()=>a.unregisterTab(s));let c=M.inject(g0),l=M.computed(()=>{if(c.value){let y=c.value.tabs.indexOf(o);return y===-1?c.value.tabs.push(o)-1:y}return-1}),u=M.computed(()=>{let y=a.tabs.value.indexOf(s);return y===-1?l.value:y}),d=M.computed(()=>u.value===a.selectedIndex.value);function f(y){var m;let x=y();if(x===qo.Success&&a.activation.value==="auto"){let N=(m=Oa(s))==null?void 0:m.activeElement,$=a.tabs.value.findIndex(A=>de(A)===N);$!==-1&&a.setSelectedIndex($)}return x}function h(y){let m=a.tabs.value.map(x=>de(x)).filter(Boolean);if(y.key===we.Space||y.key===we.Enter){y.preventDefault(),y.stopPropagation(),a.setSelectedIndex(u.value);return}switch(y.key){case we.Home:case we.PageUp:return y.preventDefault(),y.stopPropagation(),f(()=>lo(m,Vr.First));case we.End:case we.PageDown:return y.preventDefault(),y.stopPropagation(),f(()=>lo(m,Vr.Last))}if(f(()=>Gr(a.orientation.value,{vertical(){return y.key===we.ArrowUp?lo(m,Vr.Previous|Vr.WrapAround):y.key===we.ArrowDown?lo(m,Vr.Next|Vr.WrapAround):qo.Error},horizontal(){return y.key===we.ArrowLeft?lo(m,Vr.Previous|Vr.WrapAround):y.key===we.ArrowRight?lo(m,Vr.Next|Vr.WrapAround):qo.Error}}))===qo.Success)return y.preventDefault()}let p=M.ref(!1);function g(){var y;p.value||(p.value=!0,!e.disabled&&((y=de(s))==null||y.focus({preventScroll:!0}),a.setSelectedIndex(u.value),SL(()=>{p.value=!1})))}function v(y){y.preventDefault()}let _=u0(M.computed(()=>({as:e.as,type:t.type})),s);return()=>{var y,m;let x={selected:d.value,disabled:(y=e.disabled)!=null?y:!1},{...N}=e,$={ref:s,onKeydown:h,onMousedown:v,onClick:g,id:o,role:"tab",type:_.value,"aria-controls":(m=de(a.panels.value[u.value]))==null?void 0:m.id,"aria-selected":d.value,tabIndex:d.value?0:-1,disabled:e.disabled?!0:void 0};return Pr({ourProps:$,theirProps:N,slot:x,attrs:t,slots:r,name:"Tab"})}}});M.defineComponent({name:"TabPanels",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:r}){let n=Ml("TabPanels");return()=>{let i={selectedIndex:n.selectedIndex.value};return Pr({theirProps:e,ourProps:{},slot:i,attrs:r,slots:t,name:"TabPanels"})}}}),M.defineComponent({name:"TabPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null},tabIndex:{type:Number,default:0}},setup(e,{attrs:t,slots:r,expose:n}){var i;let o=(i=e.id)!=null?i:`headlessui-tabs-panel-${Gn()}`,a=Ml("TabPanel"),s=M.ref(null);n({el:s,$el:s}),M.onMounted(()=>a.registerPanel(s)),M.onUnmounted(()=>a.unregisterPanel(s));let c=M.inject(g0),l=M.computed(()=>{if(c.value){let f=c.value.panels.indexOf(o);return f===-1?c.value.panels.push(o)-1:f}return-1}),u=M.computed(()=>{let f=a.panels.value.indexOf(s);return f===-1?l.value:f}),d=M.computed(()=>u.value===a.selectedIndex.value);return()=>{var f;let h={selected:d.value},{tabIndex:p,...g}=e,v={ref:s,id:o,role:"tabpanel","aria-labelledby":(f=de(a.tabs.value[u.value]))==null?void 0:f.id,tabIndex:d.value?p:-1};return!d.value&&e.unmount&&!e.static?M.h(Il,{as:"span","aria-hidden":!0,...v}):Pr({ourProps:v,theirProps:g,slot:h,attrs:t,slots:r,features:Nl.Static|Nl.RenderStrategy,visible:d.value,name:"TabPanel"})}}});const WL=zn(M.defineComponent({customOptions:{Icon:Ho,Button:ao},__name:"SelectHeadlessUI",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=M.ref(r.initIndex);return M.watch(i,function(){n("change",r.options[i.value])}),(o,a)=>(M.openBlock(),M.createBlock(M.unref(NL),{modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=s=>i.value=s)},{default:M.withCtx(({open:s})=>[M.createElementVNode("div",{class:"wrap",style:M.normalizeStyle(["font-size:"+o.fontSize])},[M.createVNode(M.unref(RL),{class:"button"},{default:M.withCtx(()=>[M.renderSlot(o.$slots,"button",{selectedIndex:i.value},()=>[M.createVNode(ao,{icon:"carbon:chevron-sort",label:o.options[i.value],style:{width:"100%"}},null,8,["label"])],!0)]),_:3}),M.createVNode(M.Transition,{name:"transition"},{default:M.withCtx(()=>[M.withDirectives(M.createElementVNode("div",null,[M.createVNode(M.unref(jL),{static:"",class:"options",style:M.normalizeStyle({border:"1px solid "+M.unref(Ce).colorGrayCC})},{default:M.withCtx(()=>[(M.openBlock(!0),M.createElementBlock(M.Fragment,null,M.renderList(o.options,(c,l)=>(M.openBlock(),M.createBlock(M.unref(IL),{as:"div",class:"option",key:l,value:l,style:M.normalizeStyle({borderTop:(l==0?"0":"1px")+" solid "+M.unref(Ce).colorGrayCC})},{default:M.withCtx(({active:u,selected:d})=>[M.createElementVNode("div",{class:"option-inner",style:M.normalizeStyle({backgroundColor:u?M.unref(Ce).colorGrayF5:M.unref(Ce).colorGrayFF})},[M.renderSlot(o.$slots,"default",{active:u,selected:d,item:c,index:l},()=>[d||l==i.value?(M.openBlock(),M.createBlock(Ho,{key:0,icon:"mingcute:check-fill",class:"icon"})):M.createCommentVNode("",!0),M.createElementVNode("span",null,M.toDisplayString(c),1)],!0)],4)]),_:2},1032,["value","style"]))),128))]),_:3},8,["style"])],512),[[M.vShow,s]])]),_:2},1024)],4)]),_:3},8,["modelValue"]))}}),[["__scopeId","data-v-02a8e28b"]]);function Ut(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 JL=e=>{let t=null;switch(e){case"bin":t=/^[0-1]+$/;break;case"oct":t=/^(0b)?[0-7]+$/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`
|
|
47
|
-
[\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
|
|
48
|
-
|[\u{4E00}-\u{9FCC}]
|
|
49
|
-
|[\u{3400}-\u{4DB5}]
|
|
50
|
-
|[\u{20000}-\u{2A6D6}]
|
|
51
|
-
|[\u{2A700}-\u{2B734}]
|
|
52
|
-
|[\u{2B740}-\u{2B81D}]
|
|
53
|
-
|[\u{2B820}-\u{2CEAF}]
|
|
54
|
-
|[\u{2CEB0}-\u{2EBEF}]
|
|
55
|
-
`.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 QL(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 ZL=(e,t)=>{typeof e=="string"&&(e=JL(e)||new RegExp(e));const r=t.match(e);return QL(r)};function Fx(e,t){return function(){return e.apply(t,arguments)}}const{toString:tU}=Object.prototype,{getPrototypeOf:v0}=Object,Mu=(e=>t=>{const r=tU.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),li=e=>(e=e.toLowerCase(),t=>Mu(t)===e),Lu=e=>t=>typeof t===e,{isArray:Aa}=Array,Ll=Lu("undefined");function eU(e){return e!==null&&!Ll(e)&&e.constructor!==null&&!Ll(e.constructor)&&Sn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Mx=li("ArrayBuffer");function rU(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Mx(e.buffer),t}const nU=Lu("string"),Sn=Lu("function"),Lx=Lu("number"),Uu=e=>e!==null&&typeof e=="object",iU=e=>e===!0||e===!1,zu=e=>{if(Mu(e)!=="object")return!1;const t=v0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},oU=li("Date"),aU=li("File"),sU=li("Blob"),lU=li("FileList"),cU=e=>Uu(e)&&Sn(e.pipe),uU=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Sn(e.append)&&((t=Mu(e))==="formdata"||t==="object"&&Sn(e.toString)&&e.toString()==="[object FormData]"))},hU=li("URLSearchParams"),dU=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ul(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Aa(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),a=o.length;let s;for(n=0;n<a;n++)s=o[n],t.call(null,e[s],s,e)}}function Ux(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 zx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gx=e=>!Ll(e)&&e!==zx;function y0(){const{caseless:e}=Gx(this)&&this||{},t={},r=(n,i)=>{const o=e&&Ux(t,i)||i;zu(t[o])&&zu(n)?t[o]=y0(t[o],n):zu(n)?t[o]=y0({},n):Aa(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Ul(arguments[n],r);return t}const fU=(e,t,r,{allOwnKeys:n}={})=>(Ul(t,(i,o)=>{r&&Sn(i)?e[o]=Fx(i,r):e[o]=i},{allOwnKeys:n}),e),pU=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mU=(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)},gU=(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&v0(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},vU=(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},yU=e=>{if(!e)return null;if(Aa(e))return e;let t=e.length;if(!Lx(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},_U=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&v0(Uint8Array)),bU=(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])}},wU=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},xU=li("HTMLFormElement"),SU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Vx=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),$U=li("RegExp"),Bx=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ul(r,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(n[o]=a||i)}),Object.defineProperties(e,n)},kU=e=>{Bx(e,(t,r)=>{if(Sn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Sn(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+"'")})}})},EU=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Aa(e)?n(e):n(String(e).split(t)),r},CU=()=>{},PU=(e,t)=>(e=+e,Number.isFinite(e)?e:t),_0="abcdefghijklmnopqrstuvwxyz",Hx="0123456789",qx={DIGIT:Hx,ALPHA:_0,ALPHA_DIGIT:_0+_0.toUpperCase()+Hx},TU=(e=16,t=qx.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function OU(e){return!!(e&&Sn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const AU=e=>{const t=new Array(10),r=(n,i)=>{if(Uu(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=Aa(n)?[]:{};return Ul(n,(a,s)=>{const c=r(a,i+1);!Ll(c)&&(o[s]=c)}),t[i]=void 0,o}}return n};return r(e,0)},NU=li("AsyncFunction"),RU=e=>e&&(Uu(e)||Sn(e))&&Sn(e.then)&&Sn(e.catch),gt={isArray:Aa,isArrayBuffer:Mx,isBuffer:eU,isFormData:uU,isArrayBufferView:rU,isString:nU,isNumber:Lx,isBoolean:iU,isObject:Uu,isPlainObject:zu,isUndefined:Ll,isDate:oU,isFile:aU,isBlob:sU,isRegExp:$U,isFunction:Sn,isStream:cU,isURLSearchParams:hU,isTypedArray:_U,isFileList:lU,forEach:Ul,merge:y0,extend:fU,trim:dU,stripBOM:pU,inherits:mU,toFlatObject:gU,kindOf:Mu,kindOfTest:li,endsWith:vU,toArray:yU,forEachEntry:bU,matchAll:wU,isHTMLForm:xU,hasOwnProperty:Vx,hasOwnProp:Vx,reduceDescriptors:Bx,freezeMethods:kU,toObjectSet:EU,toCamelCase:SU,noop:CU,toFiniteNumber:PU,findKey:Ux,global:zx,isContextDefined:Gx,ALPHABET:qx,generateString:TU,isSpecCompliantForm:OU,toJSONObject:AU,isAsyncFn:NU,isThenable:RU};function Pe(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)}gt.inherits(Pe,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:gt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Kx=Pe.prototype,Yx={};["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=>{Yx[e]={value:e}}),Object.defineProperties(Pe,Yx),Object.defineProperty(Kx,"isAxiosError",{value:!0}),Pe.from=(e,t,r,n,i,o)=>{const a=Object.create(Kx);return gt.toFlatObject(e,a,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),Pe.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const jU=null;function b0(e){return gt.isPlainObject(e)||gt.isArray(e)}function Xx(e){return gt.endsWith(e,"[]")?e.slice(0,-2):e}function Wx(e,t,r){return e?e.concat(t).map(function(n,i){return n=Xx(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function IU(e){return gt.isArray(e)&&!e.some(b0)}const DU=gt.toFlatObject(gt,{},null,function(e){return/^is[A-Z]/.test(e)});function Gu(e,t,r){if(!gt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=gt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,p){return!gt.isUndefined(p[h])});const n=r.metaTokens,i=r.visitor||l,o=r.dots,a=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&>.isSpecCompliantForm(t);if(!gt.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(gt.isDate(h))return h.toISOString();if(!s&>.isBlob(h))throw new Pe("Blob is not supported. Use a Buffer instead.");return gt.isArrayBuffer(h)||gt.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function l(h,p,g){let v=h;if(h&&!g&&typeof h=="object"){if(gt.endsWith(p,"{}"))p=n?p:p.slice(0,-2),h=JSON.stringify(h);else if(gt.isArray(h)&&IU(h)||(gt.isFileList(h)||gt.endsWith(p,"[]"))&&(v=gt.toArray(h)))return p=Xx(p),v.forEach(function(_,y){!(gt.isUndefined(_)||_===null)&&t.append(a===!0?Wx([p],y,o):a===null?p:p+"[]",c(_))}),!1}return b0(h)?!0:(t.append(Wx(g,p,o),c(h)),!1)}const u=[],d=Object.assign(DU,{defaultVisitor:l,convertValue:c,isVisitable:b0});function f(h,p){if(!gt.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(h),gt.forEach(h,function(g,v){(!(gt.isUndefined(g)||g===null)&&i.call(t,g,gt.isString(v)?v.trim():v,p,d))===!0&&f(g,p?p.concat(v):[v])}),u.pop()}}if(!gt.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Jx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function w0(e,t){this._pairs=[],e&&Gu(e,this,t)}const Qx=w0.prototype;Qx.append=function(e,t){this._pairs.push([e,t])},Qx.toString=function(e){const t=e?function(r){return e.call(this,r,Jx)}:Jx;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function FU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zx(e,t,r){if(!t)return e;const n=r&&r.encode||FU,i=r&&r.serialize;let o;if(i?o=i(t,r):o=gt.isURLSearchParams(t)?t.toString():new w0(t,r).toString(n),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class MU{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){gt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const tS=MU,eS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},LU=typeof URLSearchParams<"u"?URLSearchParams:w0,UU=typeof FormData<"u"?FormData:null,zU=typeof Blob<"u"?Blob:null,GU=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),VU=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ci={isBrowser:!0,classes:{URLSearchParams:LU,FormData:UU,Blob:zU},isStandardBrowserEnv:GU,isStandardBrowserWebWorkerEnv:VU,protocols:["http","https","file","blob","url","data"]};function BU(e,t){return Gu(e,new ci.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return ci.isNode&>.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function HU(e){return gt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function qU(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 rS(e){function t(r,n,i,o){let a=r[o++];const s=Number.isFinite(+a),c=o>=r.length;return a=!a&>.isArray(i)?i.length:a,c?(gt.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!s):((!i[a]||!gt.isObject(i[a]))&&(i[a]=[]),t(r,n,i[a],o)&>.isArray(i[a])&&(i[a]=qU(i[a])),!s)}if(gt.isFormData(e)&>.isFunction(e.entries)){const r={};return gt.forEachEntry(e,(n,i)=>{t(HU(n),i,r,0)}),r}return null}function KU(e,t,r){if(gt.isString(e))try{return(t||JSON.parse)(e),gt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const x0={transitional:eS,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=gt.isObject(e);if(i&>.isHTMLForm(e)&&(e=new FormData(e)),gt.isFormData(e))return n&&n?JSON.stringify(rS(e)):e;if(gt.isArrayBuffer(e)||gt.isBuffer(e)||gt.isStream(e)||gt.isFile(e)||gt.isBlob(e))return e;if(gt.isArrayBufferView(e))return e.buffer;if(gt.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 BU(e,this.formSerializer).toString();if((o=gt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Gu(o?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),KU(e)):e}],transformResponse:[function(e){const t=this.transitional||x0.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(e&>.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"?Pe.from(o,Pe.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:ci.classes.FormData,Blob:ci.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};gt.forEach(["delete","get","head","post","put","patch"],e=>{x0.headers[e]={}});const S0=x0,YU=gt.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"]),XU=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
56
|
-
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&YU[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},nS=Symbol("internals");function zl(e){return e&&String(e).trim().toLowerCase()}function Vu(e){return e===!1||e==null?e:gt.isArray(e)?e.map(Vu):String(e)}function WU(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 JU=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $0(e,t,r,n,i){if(gt.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!gt.isString(t)){if(gt.isString(n))return t.indexOf(n)!==-1;if(gt.isRegExp(n))return n.test(t)}}function QU(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ZU(e,t){const r=gt.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,a){return this[n].call(this,t,i,o,a)},configurable:!0})})}class Bu{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(s,c,l){const u=zl(c);if(!u)throw new Error("header name must be a non-empty string");const d=gt.findKey(i,u);(!d||i[d]===void 0||l===!0||l===void 0&&i[d]!==!1)&&(i[d||c]=Vu(s))}const a=(s,c)=>gt.forEach(s,(l,u)=>o(l,u,c));return gt.isPlainObject(t)||t instanceof this.constructor?a(t,r):gt.isString(t)&&(t=t.trim())&&!JU(t)?a(XU(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=zl(t),t){const n=gt.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return WU(i);if(gt.isFunction(r))return r.call(this,i,n);if(gt.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=zl(t),t){const n=gt.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||$0(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(a){if(a=zl(a),a){const s=gt.findKey(n,a);s&&(!r||$0(n,n[s],s,r))&&(delete n[s],i=!0)}}return gt.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||$0(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return gt.forEach(this,(i,o)=>{const a=gt.findKey(n,o);if(a){r[a]=Vu(i),delete r[o];return}const s=t?QU(o):String(o).trim();s!==o&&delete r[o],r[s]=Vu(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return gt.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&>.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(`
|
|
57
|
-
`)}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[nS]=this[nS]={accessors:{}}).accessors,n=this.prototype;function i(o){const a=zl(o);r[a]||(ZU(n,o),r[a]=!0)}return gt.isArray(t)?t.forEach(i):i(t),this}}Bu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),gt.reduceDescriptors(Bu.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),gt.freezeMethods(Bu);const Ni=Bu;function k0(e,t){const r=this||S0,n=t||r,i=Ni.from(n.headers);let o=n.data;return gt.forEach(e,function(a){o=a.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function iS(e){return!!(e&&e.__CANCEL__)}function Gl(e,t,r){Pe.call(this,e??"canceled",Pe.ERR_CANCELED,t,r),this.name="CanceledError"}gt.inherits(Gl,Pe,{__CANCEL__:!0});function tz(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Pe("Request failed with status code "+r.status,[Pe.ERR_BAD_REQUEST,Pe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const ez=ci.isStandardBrowserEnv?function(){return{write:function(e,t,r,n,i,o){const a=[];a.push(e+"="+encodeURIComponent(t)),gt.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),gt.isString(n)&&a.push("path="+n),gt.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.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 rz(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nz(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function oS(e,t){return e&&!rz(t)?nz(e,t):t}const iz=ci.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=gt.isString(i)?n(i):i;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}();function oz(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function az(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(s){const c=Date.now(),l=n[o];a||(a=c),r[i]=s,n[i]=c;let u=o,d=0;for(;u!==i;)d+=r[u++],u=u%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function aS(e,t){let r=0;const n=az(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,c=n(s),l=o<=a;r=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&l?(a-o)/c:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const sz=typeof XMLHttpRequest<"u",lz=sz&&function(e){return new Promise(function(t,r){let n=e.data;const i=Ni.from(e.headers).normalize(),o=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let c;gt.isFormData(n)&&(ci.isStandardBrowserEnv||ci.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?gt.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 h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+p))}const u=oS(e.baseURL,e.url);l.open(e.method.toUpperCase(),Zx(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function d(){if(!l)return;const h=Ni.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:h,config:e,request:l};tz(function(g){t(g),s()},function(g){r(g),s()},p),l=null}if("onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){l&&(r(new Pe("Request aborted",Pe.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new Pe("Network Error",Pe.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||eS;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new Pe(h,p.clarifyTimeoutError?Pe.ETIMEDOUT:Pe.ECONNABORTED,e,l)),l=null},ci.isStandardBrowserEnv){const h=(e.withCredentials||iz(u))&&e.xsrfCookieName&&ez.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}n===void 0&&i.setContentType(null),"setRequestHeader"in l&>.forEach(i.toJSON(),function(h,p){l.setRequestHeader(p,h)}),gt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",aS(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",aS(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=h=>{l&&(r(!h||h.type?new Gl(null,e,l):h),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=oz(u);if(f&&ci.protocols.indexOf(f)===-1){r(new Pe("Unsupported protocol "+f+":",Pe.ERR_BAD_REQUEST,e));return}l.send(n||null)})},E0={http:jU,xhr:lz};gt.forEach(E0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sS=e=>`- ${e}`,cz=e=>gt.isFunction(e)||e===null||e===!1,lS={getAdapter:e=>{e=gt.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){r=e[o];let a;if(n=r,!cz(r)&&(n=E0[(a=String(r)).toLowerCase()],n===void 0))throw new Pe(`Unknown adapter '${a}'`);if(n)break;i[a||"#"+o]=n}if(!n){const o=Object.entries(i).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
|
|
58
|
-
`+o.map(sS).join(`
|
|
59
|
-
`):" "+sS(o[0]):"as no adapter specified";throw new Pe("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:E0};function C0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gl(null,e)}function cS(e){return C0(e),e.headers=Ni.from(e.headers),e.data=k0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lS.getAdapter(e.adapter||S0.adapter)(e).then(function(t){return C0(e),t.data=k0.call(e,e.transformResponse,t),t.headers=Ni.from(t.headers),t},function(t){return iS(t)||(C0(e),t&&t.response&&(t.response.data=k0.call(e,e.transformResponse,t.response),t.response.headers=Ni.from(t.response.headers))),Promise.reject(t)})}const uS=e=>e instanceof Ni?e.toJSON():e;function Na(e,t){t=t||{};const r={};function n(l,u,d){return gt.isPlainObject(l)&>.isPlainObject(u)?gt.merge.call({caseless:d},l,u):gt.isPlainObject(u)?gt.merge({},u):gt.isArray(u)?u.slice():u}function i(l,u,d){if(gt.isUndefined(u)){if(!gt.isUndefined(l))return n(void 0,l,d)}else return n(l,u,d)}function o(l,u){if(!gt.isUndefined(u))return n(void 0,u)}function a(l,u){if(gt.isUndefined(u)){if(!gt.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function s(l,u,d){if(d in t)return n(l,u);if(d in e)return n(void 0,l)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,u)=>i(uS(l),uS(u),!0)};return gt.forEach(Object.keys(Object.assign({},e,t)),function(l){const u=c[l]||i,d=u(e[l],t[l],l);gt.isUndefined(d)&&u!==s||(r[l]=d)}),r}const hS="1.5.1",P0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{P0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const dS={};P0.transitional=function(e,t,r){function n(i,o){return"[Axios v"+hS+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(e===!1)throw new Pe(n(o," has been removed"+(t?" in "+t:"")),Pe.ERR_DEPRECATED);return t&&!dS[o]&&(dS[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,a):!0}};function uz(e,t,r){if(typeof e!="object")throw new Pe("options must be an object",Pe.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const s=e[o],c=s===void 0||a(s,o,e);if(c!==!0)throw new Pe("option "+o+" must be "+c,Pe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Pe("Unknown option "+o,Pe.ERR_BAD_OPTION)}}const T0={assertOptions:uz,validators:P0},co=T0.validators;class Hu{constructor(t){this.defaults=t,this.interceptors={request:new tS,response:new tS}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Na(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&T0.assertOptions(n,{silentJSONParsing:co.transitional(co.boolean),forcedJSONParsing:co.transitional(co.boolean),clarifyTimeoutError:co.transitional(co.boolean)},!1),i!=null&&(gt.isFunction(i)?r.paramsSerializer={serialize:i}:T0.assertOptions(i,{encode:co.function,serialize:co.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&>.merge(o.common,o[r.method]);o&>.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),r.headers=Ni.concat(a,o);const s=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!c){const p=[cS.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,l),f=p.length,u=Promise.resolve(r);d<f;)u=u.then(p[d++],p[d++]);return u}f=s.length;let h=r;for(d=0;d<f;){const p=s[d++],g=s[d++];try{h=p(h)}catch(v){g.call(this,v);break}}try{u=cS.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=Na(this.defaults,t);const r=oS(t.baseURL,t.url);return Zx(r,t.params,t.paramsSerializer)}}gt.forEach(["delete","get","head","options"],function(e){Hu.prototype[e]=function(t,r){return this.request(Na(r||{},{method:e,url:t,data:(r||{}).data}))}}),gt.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,o){return this.request(Na(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Hu.prototype[e]=t(),Hu.prototype[e+"Form"]=t(!0)});const qu=Hu;class O0{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 a=new Promise(s=>{n.subscribe(s),o=s}).then(i);return a.cancel=function(){n.unsubscribe(o)},a},t(function(i,o,a){n.reason||(n.reason=new Gl(i,o,a),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 O0(function(r){t=r}),cancel:t}}}const hz=O0;function dz(e){return function(t){return e.apply(null,t)}}function fz(e){return gt.isObject(e)&&e.isAxiosError===!0}const A0={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(A0).forEach(([e,t])=>{A0[t]=e});const pz=A0;function fS(e){const t=new qu(e),r=Fx(qu.prototype.request,t);return gt.extend(r,qu.prototype,t,{allOwnKeys:!0}),gt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return fS(Na(e,n))},r}const vr=fS(S0);vr.Axios=qu,vr.CanceledError=Gl,vr.CancelToken=hz,vr.isCancel=iS,vr.VERSION=hS,vr.toFormData=Gu,vr.AxiosError=Pe,vr.Cancel=vr.CanceledError,vr.all=function(e){return Promise.all(e)},vr.spread=dz,vr.isAxiosError=fz,vr.mergeConfig=Na,vr.AxiosHeaders=Ni,vr.formToJSON=e=>rS(gt.isHTMLForm(e)?new FormData(e):e),vr.getAdapter=lS.getAdapter,vr.HttpStatusCode=pz,vr.default=vr;var N0=function(e,t){return N0=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])},N0(e,t)};function uo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");N0(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function R0(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 Vl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function Bl(e,t,r){if(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 Ri(e){return typeof e=="function"}function j0(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 I0=j0(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
60
|
-
`+t.map(function(r,n){return n+1+") "+r.toString()}).join(`
|
|
61
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function Ku(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Hl=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 a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=R0(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(g){t={error:g}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(Ri(u))try{u()}catch(g){o=g instanceof I0?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=R0(d),h=f.next();!h.done;h=f.next()){var p=h.value;try{gS(p)}catch(g){o=o??[],g instanceof I0?o=Bl(Bl([],Vl(o)),Vl(g.errors)):o.push(g)}}}catch(g){n={error:g}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}if(o)throw new I0(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)gS(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)&&Ku(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ku(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),pS=Hl.EMPTY;function mS(e){return e instanceof Hl||e&&"closed"in e&&Ri(e.remove)&&Ri(e.add)&&Ri(e.unsubscribe)}function gS(e){Ri(e)?e():e.unsubscribe()}var vS={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},mz={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Bl([e,t],Vl(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function gz(e){mz.setTimeout(function(){throw e})}function yS(){}function Yu(e){e()}var D0=function(e){uo(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,mS(r)&&r.add(n)):n.destination=bz,n}return t.create=function(r,n,i){return new M0(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}(Hl),vz=Function.prototype.bind;function F0(e,t){return vz.call(e,t)}var yz=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){Xu(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Xu(n)}else Xu(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Xu(r)}},e}(),M0=function(e){uo(t,e);function t(r,n,i){var o=e.call(this)||this,a;if(Ri(r)||!r)a={next:r??void 0,error:n??void 0,complete:i??void 0};else{var s;o&&vS.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return o.unsubscribe()},a={next:r.next&&F0(r.next,s),error:r.error&&F0(r.error,s),complete:r.complete&&F0(r.complete,s)}):a=r}return o.destination=new yz(a),o}return t}(D0);function Xu(e){gz(e)}function _z(e){throw e}var bz={closed:!0,next:yS,error:_z,complete:yS},wz=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function xz(e){return e}function Sz(e){return e.length===0?xz:e.length===1?e[0]:function(t){return e.reduce(function(r,n){return n(r)},t)}}var _S=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=kz(t)?t:new M0(t,r,n);return Yu(function(){var a=i,s=a.operator,c=a.source;o.add(s?s.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=bS(r),new r(function(i,o){var a=new M0({next:function(s){try{t(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:i});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[wz]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Sz(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=bS(t),new t(function(n,i){var o;r.subscribe(function(a){return o=a},function(a){return i(a)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function bS(e){var t;return(t=e??vS.Promise)!==null&&t!==void 0?t:Promise}function $z(e){return e&&Ri(e.next)&&Ri(e.error)&&Ri(e.complete)}function kz(e){return e&&e instanceof D0||$z(e)&&mS(e)}(function(e){uo(t,e);function t(r,n,i,o,a,s){var c=e.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,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})(D0);var Ez=j0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Cz=function(e){uo(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 wS(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ez},t.prototype.next=function(r){var n=this;Yu(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=R0(n.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(r)}}catch(l){i={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Yu(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;Yu(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,a=i.isStopped,s=i.observers;return o||a?pS:(this.currentObservers=null,s.push(r),new Hl(function(){n.currentObservers=null,Ku(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,a=n.isStopped;i?r.error(o):a&&r.complete()},t.prototype.asObservable=function(){var r=new _S;return r.source=this,r},t.create=function(r,n){return new wS(r,n)},t}(_S),wS=function(e){uo(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:pS},t}(Cz),Pz={now:function(){return Date.now()},delegate:void 0},Tz=function(e){uo(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(Hl),L0={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=L0.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,Bl([e,t],Vl(r))):setInterval.apply(void 0,Bl([e,t],Vl(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},Oz=function(e){uo(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,a=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(a,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(a,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),L0.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&&L0.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(a){i=!0,o=a||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,Ku(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Tz),xS=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=Pz.now,e}(),Az=function(e){uo(t,e);function t(r,n){n===void 0&&(n=xS.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}(xS);new Az(Oz);function Nz(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 SS=j0(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=Nz(r)}catch{i=r.responseText}this.response=i}});(function(){function e(t,r){return SS.call(this,"ajax timeout",t,r),this.name="AjaxTimeoutError",this}return e.prototype=Object.create(SS.prototype),e})();var Rz=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zt(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 U0={exports:{}},Ra=typeof Reflect=="object"?Reflect:null,$S=Ra&&typeof Ra.apply=="function"?Ra.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},Wu;Ra&&typeof Ra.ownKeys=="function"?Wu=Ra.ownKeys:Object.getOwnPropertySymbols?Wu=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Wu=function(e){return Object.getOwnPropertyNames(e)};function jz(e){console&&console.warn&&console.warn(e)}var kS=Number.isNaN||function(e){return e!==e};function Ve(){Ve.init.call(this)}U0.exports=Ve,U0.exports.once=Mz,Ve.EventEmitter=Ve,Ve.prototype._events=void 0,Ve.prototype._eventsCount=0,Ve.prototype._maxListeners=void 0;var ES=10;function Ju(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ve,"defaultMaxListeners",{enumerable:!0,get:function(){return ES},set:function(e){if(typeof e!="number"||e<0||kS(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ES=e}}),Ve.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},Ve.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||kS(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 CS(e){return e._maxListeners===void 0?Ve.defaultMaxListeners:e._maxListeners}Ve.prototype.getMaxListeners=function(){return CS(this)},Ve.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 a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")$S(s,this,t);else for(var c=s.length,l=NS(s,c),r=0;r<c;++r)$S(l[r],this,t);return!0};function PS(e,t,r,n){var i,o,a;if(Ju(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),a=o[t]),a===void 0)a=o[t]=r,++e._eventsCount;else if(typeof a=="function"?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),i=CS(e),i>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,jz(s)}return e}Ve.prototype.addListener=function(e,t){return PS(this,e,t,!1)},Ve.prototype.on=Ve.prototype.addListener,Ve.prototype.prependListener=function(e,t){return PS(this,e,t,!0)};function Iz(){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 TS(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Iz.bind(n);return i.listener=r,n.wrapFn=i,i}Ve.prototype.once=function(e,t){return Ju(t),this.on(e,TS(this,e,t)),this},Ve.prototype.prependOnceListener=function(e,t){return Ju(t),this.prependListener(e,TS(this,e,t)),this},Ve.prototype.removeListener=function(e,t){var r,n,i,o,a;if(Ju(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){a=r[o].listener,i=o;break}if(i<0)return this;i===0?r.shift():Dz(r,i),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,a||t)}return this},Ve.prototype.off=Ve.prototype.removeListener,Ve.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 OS(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?Fz(i):NS(i,i.length)}Ve.prototype.listeners=function(e){return OS(this,e,!0)},Ve.prototype.rawListeners=function(e){return OS(this,e,!1)},Ve.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):AS.call(e,t)},Ve.prototype.listenerCount=AS;function AS(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}Ve.prototype.eventNames=function(){return this._eventsCount>0?Wu(this._events):[]};function NS(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function Dz(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Fz(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function Mz(e,t){return new Promise(function(r,n){function i(a){e.removeListener(t,o),n(a)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}RS(e,t,o,{once:!0}),t!=="error"&&Lz(e,i,{once:!0})})}function Lz(e,t,r){typeof e.on=="function"&&RS(e,"error",t,r)}function RS(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 Uz=U0.exports;class tX extends Uz.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 z0={exports:{}},G0={},ji={},Ko={},V0={},B0={},H0={};(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(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((m,x)=>`${m}${x}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((m,x)=>(x instanceof r&&(m[x.str]=(m[x.str]||0)+1),m),{})}}e._Code=n,e.nil=new n("");function i(_,...y){const m=[_[0]];let x=0;for(;x<y.length;)s(m,y[x]),m.push(_[++x]);return new n(m)}e._=i;const o=new n("+");function a(_,...y){const m=[h(_[0])];let x=0;for(;x<y.length;)m.push(o),s(m,y[x]),m.push(o,h(_[++x]));return c(m),new n(m)}e.str=a;function s(_,y){y instanceof n?_.push(...y._items):y instanceof r?_.push(y):_.push(d(y))}e.addCodeArg=s;function c(_){let y=1;for(;y<_.length-1;){if(_[y]===o){const m=l(_[y-1],_[y+1]);if(m!==void 0){_.splice(y-1,3,m);continue}_[y++]="+"}y++}}function l(_,y){if(y==='""')return _;if(_==='""')return y;if(typeof _=="string")return y instanceof r||_[_.length-1]!=='"'?void 0:typeof y!="string"?`${_.slice(0,-1)}${y}"`:y[0]==='"'?_.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(_ instanceof r))return`"${_}${y.slice(1)}`}function u(_,y){return y.emptyStr()?_:_.emptyStr()?y:a`${_}${y}`}e.strConcat=u;function d(_){return typeof _=="number"||typeof _=="boolean"||_===null?_:h(Array.isArray(_)?_.join(","):_)}function f(_){return new n(h(_))}e.stringify=f;function h(_){return JSON.stringify(_).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function p(_){return typeof _=="string"&&e.IDENTIFIER.test(_)?new n(`.${_}`):i`[${_}]`}e.getProperty=p;function g(_){if(typeof _=="string"&&e.IDENTIFIER.test(_))return new n(`${_}`);throw new Error(`CodeGen: invalid export name: ${_}, use explicit $id name mapping`)}e.getEsmExportName=g;function v(_){return new n(_.toString())}e.regexpCode=v})(H0);const zz=tn(H0),Gz=Ut({__proto__:null,default:zz},[H0]),ql=zt(Gz);var q0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ql;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,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.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:d}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${d}]`}}e.ValueScopeName=o;const a=(0,t._)`\n`;class s extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?a:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(l),{prefix:h}=f,p=(d=u.key)!==null&&d!==void 0?d:u.ref;let g=this._values[h];if(g){const y=g.get(p);if(y)return y}else g=this._values[h]=new Map;g.set(p,f);const v=this._scope[h]||(this._scope[h]=[]),_=v.length;return v[_]=u.ref,f.setValue(u,{property:h,itemIndex:_}),f}getValue(l,u){const d=this._values[l];if(d)return d.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${l}${d.scopePath}`})}scopeCode(l=this._values,u,d){return this._reduceValues(l,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,d)}_reduceValues(l,u,d={},f){let h=t.nil;for(const p in l){const g=l[p];if(!g)continue;const v=d[p]=d[p]||new Map;g.forEach(_=>{if(v.has(_))return;v.set(_,n.Started);let y=u(_);if(y){const m=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${m} ${_} = ${y};${this.opts._n}`}else if(y=f==null?void 0:f(_))h=(0,t._)`${h}${y}${this.opts._n}`;else throw new r(_);v.set(_,n.Completed)})}return h}}e.ValueScope=s})(q0);const Vz=tn(q0),Bz=Ut({__proto__:null,default:Vz},[q0]),jS=zt(Bz);(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=ql,r=jS;var n=ql;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=jS;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(b,C){return this}}class a extends o{constructor(b,C,L){super(),this.varKind=b,this.name=C,this.rhs=L}render({es5:b,_n:C}){const L=b?r.varKinds.var:this.varKind,D=this.rhs===void 0?"":` = ${this.rhs}`;return`${L} ${this.name}${D};`+C}optimizeNames(b,C){if(b[this.name.str])return this.rhs&&(this.rhs=rt(this.rhs,b,C)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends o{constructor(b,C,L){super(),this.lhs=b,this.rhs=C,this.sideEffects=L}render({_n:b}){return`${this.lhs} = ${this.rhs};`+b}optimizeNames(b,C){if(!(this.lhs instanceof t.Name&&!b[this.lhs.str]&&!this.sideEffects))return this.rhs=rt(this.rhs,b,C),this}get names(){const b=this.lhs instanceof t.Name?{}:{...this.lhs.names};return nt(b,this.rhs)}}class c extends s{constructor(b,C,L,D){super(b,L,D),this.op=C}render({_n:b}){return`${this.lhs} ${this.op}= ${this.rhs};`+b}}class l extends o{constructor(b){super(),this.label=b,this.names={}}render({_n:b}){return`${this.label}:`+b}}class u extends o{constructor(b){super(),this.label=b,this.names={}}render({_n:b}){return`break${this.label?` ${this.label}`:""};`+b}}class d extends o{constructor(b){super(),this.error=b}render({_n:b}){return`throw ${this.error};`+b}get names(){return this.error.names}}class f extends o{constructor(b){super(),this.code=b}render({_n:b}){return`${this.code};`+b}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(b,C){return this.code=rt(this.code,b,C),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends o{constructor(b=[]){super(),this.nodes=b}render(b){return this.nodes.reduce((C,L)=>C+L.render(b),"")}optimizeNodes(){const{nodes:b}=this;let C=b.length;for(;C--;){const L=b[C].optimizeNodes();Array.isArray(L)?b.splice(C,1,...L):L?b[C]=L:b.splice(C,1)}return b.length>0?this:void 0}optimizeNames(b,C){const{nodes:L}=this;let D=L.length;for(;D--;){const V=L[D];V.optimizeNames(b,C)||(lt(b,V.names),L.splice(D,1))}return L.length>0?this:void 0}get names(){return this.nodes.reduce((b,C)=>J(b,C.names),{})}}class p extends h{render(b){return"{"+b._n+super.render(b)+"}"+b._n}}class g extends h{}class v extends p{}v.kind="else";class _ extends p{constructor(b,C){super(C),this.condition=b}render(b){let C=`if(${this.condition})`+super.render(b);return this.else&&(C+="else "+this.else.render(b)),C}optimizeNodes(){super.optimizeNodes();const b=this.condition;if(b===!0)return this.nodes;let C=this.else;if(C){const L=C.optimizeNodes();C=this.else=Array.isArray(L)?new v(L):L}if(C)return b===!1?C instanceof _?C:C.nodes:this.nodes.length?this:new _(xt(b),C instanceof _?[C]:C.nodes);if(!(b===!1||!this.nodes.length))return this}optimizeNames(b,C){var L;if(this.else=(L=this.else)===null||L===void 0?void 0:L.optimizeNames(b,C),!!(super.optimizeNames(b,C)||this.else))return this.condition=rt(this.condition,b,C),this}get names(){const b=super.names;return nt(b,this.condition),this.else&&J(b,this.else.names),b}}_.kind="if";class y extends p{}y.kind="for";class m extends y{constructor(b){super(),this.iteration=b}render(b){return`for(${this.iteration})`+super.render(b)}optimizeNames(b,C){if(super.optimizeNames(b,C))return this.iteration=rt(this.iteration,b,C),this}get names(){return J(super.names,this.iteration.names)}}class x extends y{constructor(b,C,L,D){super(),this.varKind=b,this.name=C,this.from=L,this.to=D}render(b){const C=b.es5?r.varKinds.var:this.varKind,{name:L,from:D,to:V}=this;return`for(${C} ${L}=${D}; ${L}<${V}; ${L}++)`+super.render(b)}get names(){const b=nt(super.names,this.from);return nt(b,this.to)}}class N extends y{constructor(b,C,L,D){super(),this.loop=b,this.varKind=C,this.name=L,this.iterable=D}render(b){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(b)}optimizeNames(b,C){if(super.optimizeNames(b,C))return this.iterable=rt(this.iterable,b,C),this}get names(){return J(super.names,this.iterable.names)}}class $ extends p{constructor(b,C,L){super(),this.name=b,this.args=C,this.async=L}render(b){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(b)}}$.kind="func";class A extends h{render(b){return"return "+super.render(b)}}A.kind="return";class R extends p{render(b){let C="try"+super.render(b);return this.catch&&(C+=this.catch.render(b)),this.finally&&(C+=this.finally.render(b)),C}optimizeNodes(){var b,C;return super.optimizeNodes(),(b=this.catch)===null||b===void 0||b.optimizeNodes(),(C=this.finally)===null||C===void 0||C.optimizeNodes(),this}optimizeNames(b,C){var L,D;return super.optimizeNames(b,C),(L=this.catch)===null||L===void 0||L.optimizeNames(b,C),(D=this.finally)===null||D===void 0||D.optimizeNames(b,C),this}get names(){const b=super.names;return this.catch&&J(b,this.catch.names),this.finally&&J(b,this.finally.names),b}}class G extends p{constructor(b){super(),this.error=b}render(b){return`catch(${this.error})`+super.render(b)}}G.kind="catch";class H extends p{render(b){return"finally"+super.render(b)}}H.kind="finally";class Y{constructor(b,C={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...C,_n:C.lines?`
|
|
62
|
-
`:""},this._extScope=b,this._scope=new r.Scope({parent:b}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(b){return this._scope.name(b)}scopeName(b){return this._extScope.name(b)}scopeValue(b,C){const L=this._extScope.value(b,C);return(this._values[L.prefix]||(this._values[L.prefix]=new Set)).add(L),L}getScopeValue(b,C){return this._extScope.getValue(b,C)}scopeRefs(b){return this._extScope.scopeRefs(b,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(b,C,L,D){const V=this._scope.toName(C);return L!==void 0&&D&&(this._constants[V.str]=L),this._leafNode(new a(b,V,L)),V}const(b,C,L){return this._def(r.varKinds.const,b,C,L)}let(b,C,L){return this._def(r.varKinds.let,b,C,L)}var(b,C,L){return this._def(r.varKinds.var,b,C,L)}assign(b,C,L){return this._leafNode(new s(b,C,L))}add(b,C){return this._leafNode(new c(b,e.operators.ADD,C))}code(b){return typeof b=="function"?b():b!==t.nil&&this._leafNode(new f(b)),this}object(...b){const C=["{"];for(const[L,D]of b)C.length>1&&C.push(","),C.push(L),(L!==D||this.opts.es5)&&(C.push(":"),(0,t.addCodeArg)(C,D));return C.push("}"),new t._Code(C)}if(b,C,L){if(this._blockNode(new _(b)),C&&L)this.code(C).else().code(L).endIf();else if(C)this.code(C).endIf();else if(L)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(b){return this._elseNode(new _(b))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(_,v)}_for(b,C){return this._blockNode(b),C&&this.code(C).endFor(),this}for(b,C){return this._for(new m(b),C)}forRange(b,C,L,D,V=this.opts.es5?r.varKinds.var:r.varKinds.let){const K=this._scope.toName(b);return this._for(new x(V,K,C,L),()=>D(K))}forOf(b,C,L,D=r.varKinds.const){const V=this._scope.toName(b);if(this.opts.es5){const K=C instanceof t.Name?C:this.var("_arr",C);return this.forRange("_i",0,(0,t._)`${K}.length`,et=>{this.var(V,(0,t._)`${K}[${et}]`),L(V)})}return this._for(new N("of",D,V,C),()=>L(V))}forIn(b,C,L,D=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(b,(0,t._)`Object.keys(${C})`,L);const V=this._scope.toName(b);return this._for(new N("in",D,V,C),()=>L(V))}endFor(){return this._endBlockNode(y)}label(b){return this._leafNode(new l(b))}break(b){return this._leafNode(new u(b))}return(b){const C=new A;if(this._blockNode(C),this.code(b),C.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(A)}try(b,C,L){if(!C&&!L)throw new Error('CodeGen: "try" without "catch" and "finally"');const D=new R;if(this._blockNode(D),this.code(b),C){const V=this.name("e");this._currNode=D.catch=new G(V),C(V)}return L&&(this._currNode=D.finally=new H,this.code(L)),this._endBlockNode(G,H)}throw(b){return this._leafNode(new d(b))}block(b,C){return this._blockStarts.push(this._nodes.length),b&&this.code(b).endBlock(C),this}endBlock(b){const C=this._blockStarts.pop();if(C===void 0)throw new Error("CodeGen: not in self-balancing block");const L=this._nodes.length-C;if(L<0||b!==void 0&&L!==b)throw new Error(`CodeGen: wrong number of nodes: ${L} vs ${b} expected`);return this._nodes.length=C,this}func(b,C=t.nil,L,D){return this._blockNode(new $(b,C,L)),D&&this.code(D).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(b=1){for(;b-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(b){return this._currNode.nodes.push(b),this}_blockNode(b){this._currNode.nodes.push(b),this._nodes.push(b)}_endBlockNode(b,C){const L=this._currNode;if(L instanceof b||C&&L instanceof C)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${C?`${b.kind}/${C.kind}`:b.kind}"`)}_elseNode(b){const C=this._currNode;if(!(C instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=C.else=b,this}get _root(){return this._nodes[0]}get _currNode(){const b=this._nodes;return b[b.length-1]}set _currNode(b){const C=this._nodes;C[C.length-1]=b}}e.CodeGen=Y;function J(k,b){for(const C in b)k[C]=(k[C]||0)+(b[C]||0);return k}function nt(k,b){return b instanceof t._CodeOrName?J(k,b.names):k}function rt(k,b,C){if(k instanceof t.Name)return L(k);if(!D(k))return k;return new t._Code(k._items.reduce((V,K)=>(K instanceof t.Name&&(K=L(K)),K instanceof t._Code?V.push(...K._items):V.push(K),V),[]));function L(V){const K=C[V.str];return K===void 0||b[V.str]!==1?V:(delete b[V.str],K)}function D(V){return V instanceof t._Code&&V._items.some(K=>K instanceof t.Name&&b[K.str]===1&&C[K.str]!==void 0)}}function lt(k,b){for(const C in b)k[C]=(k[C]||0)-(b[C]||0)}function xt(k){return typeof k=="boolean"||typeof k=="number"||k===null?!k:(0,t._)`!${E(k)}`}e.not=xt;const Ct=T(e.operators.AND);function $t(...k){return k.reduce(Ct)}e.and=$t;const at=T(e.operators.OR);function X(...k){return k.reduce(at)}e.or=X;function T(k){return(b,C)=>b===t.nil?C:C===t.nil?b:(0,t._)`${E(b)} ${k} ${E(C)}`}function E(k){return k instanceof t.Name?k:(0,t._)`(${k})`}})(B0);const Hz=tn(B0),qz=Ut({__proto__:null,default:Hz},[B0]),ve=zt(qz);var K0={};(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=ve,r=ql;function n($){const A={};for(const R of $)A[R]=!0;return A}e.toHash=n;function i($,A){return typeof A=="boolean"?A:Object.keys(A).length===0?!0:(o($,A),!a(A,$.self.RULES.all))}e.alwaysValidSchema=i;function o($,A=$.schema){const{opts:R,self:G}=$;if(!R.strictSchema||typeof A=="boolean")return;const H=G.RULES.keywords;for(const Y in A)H[Y]||N($,`unknown keyword: "${Y}"`)}e.checkUnknownRules=o;function a($,A){if(typeof $=="boolean")return!$;for(const R in $)if(A[R])return!0;return!1}e.schemaHasRules=a;function s($,A){if(typeof $=="boolean")return!$;for(const R in $)if(R!=="$ref"&&A.all[R])return!0;return!1}e.schemaHasRulesButRef=s;function c({topSchemaRef:$,schemaPath:A},R,G,H){if(!H){if(typeof R=="number"||typeof R=="boolean")return R;if(typeof R=="string")return(0,t._)`${R}`}return(0,t._)`${$}${A}${(0,t.getProperty)(G)}`}e.schemaRefOrVal=c;function l($){return f(decodeURIComponent($))}e.unescapeFragment=l;function u($){return encodeURIComponent(d($))}e.escapeFragment=u;function d($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function f($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function h($,A){if(Array.isArray($))for(const R of $)A(R);else A($)}e.eachItem=h;function p({mergeNames:$,mergeToName:A,mergeValues:R,resultToName:G}){return(H,Y,J,nt)=>{const rt=J===void 0?Y:J instanceof t.Name?(Y instanceof t.Name?$(H,Y,J):A(H,Y,J),J):Y instanceof t.Name?(A(H,J,Y),Y):R(Y,J);return nt===t.Name&&!(rt instanceof t.Name)?G(H,rt):rt}}e.mergeEvaluated={props:p({mergeNames:($,A,R)=>$.if((0,t._)`${R} !== true && ${A} !== undefined`,()=>{$.if((0,t._)`${A} === true`,()=>$.assign(R,!0),()=>$.assign(R,(0,t._)`${R} || {}`).code((0,t._)`Object.assign(${R}, ${A})`))}),mergeToName:($,A,R)=>$.if((0,t._)`${R} !== true`,()=>{A===!0?$.assign(R,!0):($.assign(R,(0,t._)`${R} || {}`),v($,R,A))}),mergeValues:($,A)=>$===!0?!0:{...$,...A},resultToName:g}),items:p({mergeNames:($,A,R)=>$.if((0,t._)`${R} !== true && ${A} !== undefined`,()=>$.assign(R,(0,t._)`${A} === true ? true : ${R} > ${A} ? ${R} : ${A}`)),mergeToName:($,A,R)=>$.if((0,t._)`${R} !== true`,()=>$.assign(R,A===!0?!0:(0,t._)`${R} > ${A} ? ${R} : ${A}`)),mergeValues:($,A)=>$===!0?!0:Math.max($,A),resultToName:($,A)=>$.var("items",A)})};function g($,A){if(A===!0)return $.var("props",!0);const R=$.var("props",(0,t._)`{}`);return A!==void 0&&v($,R,A),R}e.evaluatedPropsToName=g;function v($,A,R){Object.keys(R).forEach(G=>$.assign((0,t._)`${A}${(0,t.getProperty)(G)}`,!0))}e.setEvaluated=v;const _={};function y($,A){return $.scopeValue("func",{ref:A,code:_[A.code]||(_[A.code]=new r._Code(A.code))})}e.useFunc=y;var m;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(m=e.Type||(e.Type={}));function x($,A,R){if($ instanceof t.Name){const G=A===m.Num;return R?G?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:G?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return R?(0,t.getProperty)($).toString():"/"+d($)}e.getErrorPath=x;function N($,A,R=$.opts.strictSchema){if(R){if(A=`strict mode: ${A}`,R===!0)throw new Error(A);$.self.logger.warn(A)}}e.checkStrictMode=N})(K0);const Kz=tn(K0),Yz=Ut({__proto__:null,default:Kz},[K0]),Ne=zt(Yz);var Y0={};Object.defineProperty(Y0,"__esModule",{value:!0});const Rr=ve,Xz={data:new Rr.Name("data"),valCxt:new Rr.Name("valCxt"),instancePath:new Rr.Name("instancePath"),parentData:new Rr.Name("parentData"),parentDataProperty:new Rr.Name("parentDataProperty"),rootData:new Rr.Name("rootData"),dynamicAnchors:new Rr.Name("dynamicAnchors"),vErrors:new Rr.Name("vErrors"),errors:new Rr.Name("errors"),this:new Rr.Name("this"),self:new Rr.Name("self"),scope:new Rr.Name("scope"),json:new Rr.Name("json"),jsonPos:new Rr.Name("jsonPos"),jsonLen:new Rr.Name("jsonLen"),jsonPart:new Rr.Name("jsonPart")};var Wz=Y0.default=Xz;const Jz=Ut({__proto__:null,default:Wz},[Y0]),Ii=zt(Jz);(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=ve,r=Ne,n=Ii;e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:_})=>_?(0,t.str)`"${v}" keyword must be ${_} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,_=e.keywordError,y,m){const{it:x}=v,{gen:N,compositeRule:$,allErrors:A}=x,R=d(v,_,y);m??($||A)?c(N,R):l(x,(0,t._)`[${R}]`)}e.reportError=i;function o(v,_=e.keywordError,y){const{it:m}=v,{gen:x,compositeRule:N,allErrors:$}=m,A=d(v,_,y);c(x,A),N||$||l(m,n.default.vErrors)}e.reportExtraError=o;function a(v,_){v.assign(n.default.errors,_),v.if((0,t._)`${n.default.vErrors} !== null`,()=>v.if(_,()=>v.assign((0,t._)`${n.default.vErrors}.length`,_),()=>v.assign(n.default.vErrors,null)))}e.resetErrorsCount=a;function s({gen:v,keyword:_,schemaValue:y,data:m,errsCount:x,it:N}){if(x===void 0)throw new Error("ajv implementation error");const $=v.name("err");v.forRange("i",x,n.default.errors,A=>{v.const($,(0,t._)`${n.default.vErrors}[${A}]`),v.if((0,t._)`${$}.instancePath === undefined`,()=>v.assign((0,t._)`${$}.instancePath`,(0,t.strConcat)(n.default.instancePath,N.errorPath))),v.assign((0,t._)`${$}.schemaPath`,(0,t.str)`${N.errSchemaPath}/${_}`),N.opts.verbose&&(v.assign((0,t._)`${$}.schema`,y),v.assign((0,t._)`${$}.data`,m))})}e.extendErrors=s;function c(v,_){const y=v.const("err",_);v.if((0,t._)`${n.default.vErrors} === null`,()=>v.assign(n.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${n.default.vErrors}.push(${y})`),v.code((0,t._)`${n.default.errors}++`)}function l(v,_){const{gen:y,validateName:m,schemaEnv:x}=v;x.$async?y.throw((0,t._)`new ${v.ValidationError}(${_})`):(y.assign((0,t._)`${m}.errors`,_),y.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 d(v,_,y){const{createErrors:m}=v.it;return m===!1?(0,t._)`{}`:f(v,_,y)}function f(v,_,y={}){const{gen:m,it:x}=v,N=[h(x,y),p(v,y)];return g(v,_,N),m.object(...N)}function h({errorPath:v},{instancePath:_}){const y=_?(0,t.str)`${v}${(0,r.getErrorPath)(_,r.Type.Str)}`:v;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,y)]}function p({keyword:v,it:{errSchemaPath:_}},{schemaPath:y,parentSchema:m}){let x=m?_:(0,t.str)`${_}/${v}`;return y&&(x=(0,t.str)`${x}${(0,r.getErrorPath)(y,r.Type.Str)}`),[u.schemaPath,x]}function g(v,{params:_,message:y},m){const{keyword:x,data:N,schemaValue:$,it:A}=v,{opts:R,propertyName:G,topSchemaRef:H,schemaPath:Y}=A;m.push([u.keyword,x],[u.params,typeof _=="function"?_(v):_||(0,t._)`{}`]),R.messages&&m.push([u.message,typeof y=="function"?y(v):y]),R.verbose&&m.push([u.schema,$],[u.parentSchema,(0,t._)`${H}${Y}`],[n.default.data,N]),G&&m.push([u.propertyName,G])}})(V0);const Qz=tn(V0),Zz=Ut({__proto__:null,default:Qz},[V0]),Kl=zt(Zz);Object.defineProperty(Ko,"__esModule",{value:!0});var IS=Ko.boolOrEmptySchema=DS=Ko.topBoolOrEmptySchema=void 0;const tG=Kl,eG=ve,rG=Ii,nG={message:"boolean schema is false"};function iG(e){const{gen:t,schema:r,validateName:n}=e;r===!1?FS(e,!1):typeof r=="object"&&r.$async===!0?t.return(rG.default.data):(t.assign((0,eG._)`${n}.errors`,null),t.return(!0))}var DS=Ko.topBoolOrEmptySchema=iG;function oG(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),FS(e)):r.var(t,!0)}IS=Ko.boolOrEmptySchema=oG;function FS(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,tG.reportError)(i,nG,void 0,t)}const aG=Ut({__proto__:null,get boolOrEmptySchema(){return IS},default:Ko,get topBoolOrEmptySchema(){return DS}},[Ko]),sG=zt(aG);var X0={},Yo={};Object.defineProperty(Yo,"__esModule",{value:!0});var MS=Yo.getRules=LS=Yo.isJSONType=void 0;const lG=["string","number","integer","boolean","null","object","array"],cG=new Set(lG);function uG(e){return typeof e=="string"&&cG.has(e)}var LS=Yo.isJSONType=uG;function hG(){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:{}}}MS=Yo.getRules=hG;const dG=Ut({__proto__:null,default:Yo,get getRules(){return MS},get isJSONType(){return LS}},[Yo]),US=zt(dG);var Di={};Object.defineProperty(Di,"__esModule",{value:!0});var zS=Di.shouldUseRule=BS=Di.shouldUseGroup=GS=Di.schemaHasRulesForType=void 0;function fG({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&VS(e,n)}var GS=Di.schemaHasRulesForType=fG;function VS(e,t){return t.rules.some(r=>HS(e,r))}var BS=Di.shouldUseGroup=VS;function HS(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))}zS=Di.shouldUseRule=HS;const pG=Ut({__proto__:null,default:Di,get schemaHasRulesForType(){return GS},get shouldUseGroup(){return BS},get shouldUseRule(){return zS}},[Di]),qS=zt(pG);(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=US,r=qS,n=Kl,i=ve,o=Ne;var a;(function(m){m[m.Correct=0]="Correct",m[m.Wrong=1]="Wrong"})(a=e.DataType||(e.DataType={}));function s(m){const x=c(m.type);if(x.includes("null")){if(m.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!x.length&&m.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');m.nullable===!0&&x.push("null")}return x}e.getSchemaTypes=s;function c(m){const x=Array.isArray(m)?m:m?[m]:[];if(x.every(t.isJSONType))return x;throw new Error("type must be JSONType or JSONType[]: "+x.join(","))}e.getJSONTypes=c;function l(m,x){const{gen:N,data:$,opts:A}=m,R=d(x,A.coerceTypes),G=x.length>0&&!(R.length===0&&x.length===1&&(0,r.schemaHasRulesForType)(m,x[0]));if(G){const H=g(x,$,A.strictNumbers,a.Wrong);N.if(H,()=>{R.length?f(m,x,R):_(m)})}return G}e.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function d(m,x){return x?m.filter(N=>u.has(N)||x==="array"&&N==="array"):[]}function f(m,x,N){const{gen:$,data:A,opts:R}=m,G=$.let("dataType",(0,i._)`typeof ${A}`),H=$.let("coerced",(0,i._)`undefined`);R.coerceTypes==="array"&&$.if((0,i._)`${G} == 'object' && Array.isArray(${A}) && ${A}.length == 1`,()=>$.assign(A,(0,i._)`${A}[0]`).assign(G,(0,i._)`typeof ${A}`).if(g(x,A,R.strictNumbers),()=>$.assign(H,A))),$.if((0,i._)`${H} !== undefined`);for(const J of N)(u.has(J)||J==="array"&&R.coerceTypes==="array")&&Y(J);$.else(),_(m),$.endIf(),$.if((0,i._)`${H} !== undefined`,()=>{$.assign(A,H),h(m,H)});function Y(J){switch(J){case"string":$.elseIf((0,i._)`${G} == "number" || ${G} == "boolean"`).assign(H,(0,i._)`"" + ${A}`).elseIf((0,i._)`${A} === null`).assign(H,(0,i._)`""`);return;case"number":$.elseIf((0,i._)`${G} == "boolean" || ${A} === null
|
|
63
|
-
|| (${G} == "string" && ${A} && ${A} == +${A})`).assign(H,(0,i._)`+${A}`);return;case"integer":$.elseIf((0,i._)`${G} === "boolean" || ${A} === null
|
|
64
|
-
|| (${G} === "string" && ${A} && ${A} == +${A} && !(${A} % 1))`).assign(H,(0,i._)`+${A}`);return;case"boolean":$.elseIf((0,i._)`${A} === "false" || ${A} === 0 || ${A} === null`).assign(H,!1).elseIf((0,i._)`${A} === "true" || ${A} === 1`).assign(H,!0);return;case"null":$.elseIf((0,i._)`${A} === "" || ${A} === 0 || ${A} === false`),$.assign(H,null);return;case"array":$.elseIf((0,i._)`${G} === "string" || ${G} === "number"
|
|
65
|
-
|| ${G} === "boolean" || ${A} === null`).assign(H,(0,i._)`[${A}]`)}}}function h({gen:m,parentData:x,parentDataProperty:N},$){m.if((0,i._)`${x} !== undefined`,()=>m.assign((0,i._)`${x}[${N}]`,$))}function p(m,x,N,$=a.Correct){const A=$===a.Correct?i.operators.EQ:i.operators.NEQ;let R;switch(m){case"null":return(0,i._)`${x} ${A} null`;case"array":R=(0,i._)`Array.isArray(${x})`;break;case"object":R=(0,i._)`${x} && typeof ${x} == "object" && !Array.isArray(${x})`;break;case"integer":R=G((0,i._)`!(${x} % 1) && !isNaN(${x})`);break;case"number":R=G();break;default:return(0,i._)`typeof ${x} ${A} ${m}`}return $===a.Correct?R:(0,i.not)(R);function G(H=i.nil){return(0,i.and)((0,i._)`typeof ${x} == "number"`,H,N?(0,i._)`isFinite(${x})`:i.nil)}}e.checkDataType=p;function g(m,x,N,$){if(m.length===1)return p(m[0],x,N,$);let A;const R=(0,o.toHash)(m);if(R.array&&R.object){const G=(0,i._)`typeof ${x} != "object"`;A=R.null?G:(0,i._)`!${x} || ${G}`,delete R.null,delete R.array,delete R.object}else A=i.nil;R.number&&delete R.integer;for(const G in R)A=(0,i.and)(A,p(G,x,N,$));return A}e.checkDataTypes=g;const v={message:({schema:m})=>`must be ${m}`,params:({schema:m,schemaValue:x})=>typeof m=="string"?(0,i._)`{type: ${m}}`:(0,i._)`{type: ${x}}`};function _(m){const x=y(m);(0,n.reportError)(x,v)}e.reportTypeError=_;function y(m){const{gen:x,data:N,schema:$}=m,A=(0,o.schemaRefOrVal)(m,$,"type");return{gen:x,keyword:"type",data:N,schema:$.type,schemaCode:A,schemaValue:A,parentSchema:$,params:{},it:m}}})(X0);const mG=tn(X0),gG=Ut({__proto__:null,default:mG},[X0]),Qu=zt(gG);var Yl={};Object.defineProperty(Yl,"__esModule",{value:!0});var KS=Yl.assignDefaults=void 0;const ja=ve,vG=Ne;function yG(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)YS(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>YS(e,o,i.default))}KS=Yl.assignDefaults=yG;function YS(e,t,r){const{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;const s=(0,ja._)`${o}${(0,ja.getProperty)(t)}`;if(i){(0,vG.checkStrictMode)(e,`default is ignored for: ${s}`);return}let c=(0,ja._)`${s} === undefined`;a.useDefaults==="empty"&&(c=(0,ja._)`${c} || ${s} === null || ${s} === ""`),n.if(c,(0,ja._)`${s} = ${(0,ja.stringify)(r)}`)}const _G=Ut({__proto__:null,get assignDefaults(){return KS},default:Yl},[Yl]),bG=zt(_G);var Vn={},Me={};Object.defineProperty(Me,"__esModule",{value:!0});var XS=Me.validateUnion=c5=Me.validateArray=l5=Me.usePattern=s5=Me.callValidateCode=a5=Me.schemaProperties=o5=Me.allSchemaProperties=n5=Me.noPropertyInData=r5=Me.propertyInData=e5=Me.isOwnProperty=t5=Me.hasPropFunc=QS=Me.reportMissingProp=JS=Me.checkMissingProp=WS=Me.checkReportMissingProp=void 0;const Qe=ve,W0=Ne,ho=Ii,wG=Ne;function xG(e,t){const{gen:r,data:n,it:i}=e;r.if(Q0(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Qe._)`${t}`},!0),e.error()})}var WS=Me.checkReportMissingProp=xG;function SG({gen:e,data:t,it:{opts:r}},n,i){return(0,Qe.or)(...n.map(o=>(0,Qe.and)(Q0(e,t,o,r.ownProperties),(0,Qe._)`${i} = ${o}`)))}var JS=Me.checkMissingProp=SG;function $G(e,t){e.setParams({missingProperty:t},!0),e.error()}var QS=Me.reportMissingProp=$G;function ZS(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Qe._)`Object.prototype.hasOwnProperty`})}var t5=Me.hasPropFunc=ZS;function J0(e,t,r){return(0,Qe._)`${ZS(e)}.call(${t}, ${r})`}var e5=Me.isOwnProperty=J0;function kG(e,t,r,n){const i=(0,Qe._)`${t}${(0,Qe.getProperty)(r)} !== undefined`;return n?(0,Qe._)`${i} && ${J0(e,t,r)}`:i}var r5=Me.propertyInData=kG;function Q0(e,t,r,n){const i=(0,Qe._)`${t}${(0,Qe.getProperty)(r)} === undefined`;return n?(0,Qe.or)(i,(0,Qe.not)(J0(e,t,r))):i}var n5=Me.noPropertyInData=Q0;function i5(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}var o5=Me.allSchemaProperties=i5;function EG(e,t){return i5(t).filter(r=>!(0,W0.alwaysValidSchema)(e,t[r]))}var a5=Me.schemaProperties=EG;function CG({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},s,c,l){const u=l?(0,Qe._)`${e}, ${t}, ${n}${i}`:t,d=[[ho.default.instancePath,(0,Qe.strConcat)(ho.default.instancePath,o)],[ho.default.parentData,a.parentData],[ho.default.parentDataProperty,a.parentDataProperty],[ho.default.rootData,ho.default.rootData]];a.opts.dynamicRef&&d.push([ho.default.dynamicAnchors,ho.default.dynamicAnchors]);const f=(0,Qe._)`${u}, ${r.object(...d)}`;return c!==Qe.nil?(0,Qe._)`${s}.call(${c}, ${f})`:(0,Qe._)`${s}(${f})`}var s5=Me.callValidateCode=CG;const PG=(0,Qe._)`new RegExp`;function TG({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,Qe._)`${i.code==="new RegExp"?PG:(0,wG.useFunc)(e,i)}(${r}, ${n})`})}var l5=Me.usePattern=TG;function OG(e){const{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){const s=t.let("valid",!0);return a(()=>t.assign(s,!1)),s}return t.var(o,!0),a(()=>t.break()),o;function a(s){const c=t.const("len",(0,Qe._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:W0.Type.Num},o),t.if((0,Qe.not)(o),s)})}}var c5=Me.validateArray=OG;function AG(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(s=>(0,W0.alwaysValidSchema)(i,s))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((s,c)=>{const l=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},a);t.assign(o,(0,Qe._)`${o} || ${a}`),e.mergeValidEvaluated(l,a)||t.if((0,Qe.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}XS=Me.validateUnion=AG;const NG=Ut({__proto__:null,get allSchemaProperties(){return o5},get callValidateCode(){return s5},get checkMissingProp(){return JS},get checkReportMissingProp(){return WS},default:Me,get hasPropFunc(){return t5},get isOwnProperty(){return e5},get noPropertyInData(){return n5},get propertyInData(){return r5},get reportMissingProp(){return QS},get schemaProperties(){return a5},get usePattern(){return l5},get validateArray(){return c5},get validateUnion(){return XS}},[Me]),Bn=zt(NG);Object.defineProperty(Vn,"__esModule",{value:!0});var u5=Vn.validateKeywordUsage=m5=Vn.validSchemaType=d5=Vn.funcKeywordCode=h5=Vn.macroKeywordCode=void 0;const Hr=ve,Xo=Ii,RG=Bn,jG=Kl;function IG(e,t){const{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,s=t.macro.call(a.self,i,o,a),c=p5(r,n,s);a.opts.validateSchema!==!1&&a.self.validateSchema(s,!0);const l=r.name("valid");e.subschema({schema:s,schemaPath:Hr.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}var h5=Vn.macroKeywordCode=IG;function DG(e,t){var r;const{gen:n,keyword:i,schema:o,parentSchema:a,$data:s,it:c}=e;MG(c,t);const l=!s&&t.compile?t.compile.call(c.self,o,a,c):t.validate,u=p5(n,i,l),d=n.let("valid");e.block$data(d,f),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function f(){if(t.errors===!1)g(),t.modifying&&f5(e),v(()=>e.error());else{const _=t.async?h():p();t.modifying&&f5(e),v(()=>FG(e,_))}}function h(){const _=n.let("ruleErrs",null);return n.try(()=>g((0,Hr._)`await `),y=>n.assign(d,!1).if((0,Hr._)`${y} instanceof ${c.ValidationError}`,()=>n.assign(_,(0,Hr._)`${y}.errors`),()=>n.throw(y))),_}function p(){const _=(0,Hr._)`${u}.errors`;return n.assign(_,null),g(Hr.nil),_}function g(_=t.async?(0,Hr._)`await `:Hr.nil){const y=c.opts.passContext?Xo.default.this:Xo.default.self,m=!("compile"in t&&!s||t.schema===!1);n.assign(d,(0,Hr._)`${_}${(0,RG.callValidateCode)(e,u,y,m)}`,t.modifying)}function v(_){var y;n.if((0,Hr.not)((y=t.valid)!==null&&y!==void 0?y:d),_)}}var d5=Vn.funcKeywordCode=DG;function f5(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Hr._)`${n.parentData}[${n.parentDataProperty}]`))}function FG(e,t){const{gen:r}=e;r.if((0,Hr._)`Array.isArray(${t})`,()=>{r.assign(Xo.default.vErrors,(0,Hr._)`${Xo.default.vErrors} === null ? ${t} : ${Xo.default.vErrors}.concat(${t})`).assign(Xo.default.errors,(0,Hr._)`${Xo.default.vErrors}.length`),(0,jG.extendErrors)(e)},()=>e.error())}function MG({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function p5(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,Hr.stringify)(r)})}function LG(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 m5=Vn.validSchemaType=LG;function UG({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 a=i.dependencies;if(a!=null&&a.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const s=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(s);else throw new Error(s)}}u5=Vn.validateKeywordUsage=UG;const zG=Ut({__proto__:null,default:Vn,get funcKeywordCode(){return d5},get macroKeywordCode(){return h5},get validSchemaType(){return m5},get validateKeywordUsage(){return u5}},[Vn]),GG=zt(zG);var Fi={};Object.defineProperty(Fi,"__esModule",{value:!0});var g5=Fi.extendSubschemaMode=_5=Fi.extendSubschemaData=y5=Fi.getSubschema=void 0;const ui=ve,v5=Ne;function VG(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,ui._)`${e.schemaPath}${(0,ui.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,ui._)`${e.schemaPath}${(0,ui.getProperty)(t)}${(0,ui.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,v5.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}var y5=Fi.getSubschema=VG;function BG(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(r!==void 0){const{errorPath:l,dataPathArr:u,opts:d}=t,f=s.let("data",(0,ui._)`${t.data}${(0,ui.getProperty)(r)}`,!0);c(f),e.errorPath=(0,ui.str)`${l}${(0,v5.getErrorPath)(r,n,d.jsPropertySyntax)}`,e.parentDataProperty=(0,ui._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){const l=i instanceof ui.Name?i:s.let("data",i,!0);c(l),a!==void 0&&(e.propertyName=a)}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 _5=Fi.extendSubschemaData=BG;function HG(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}g5=Fi.extendSubschemaMode=HG;const qG=Ut({__proto__:null,default:Fi,get extendSubschemaData(){return _5},get extendSubschemaMode(){return g5},get getSubschema(){return y5}},[Fi]),KG=zt(qG);var qr={},b5=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 a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r};const YG=tn(b5),XG=Ut({__proto__:null,default:YG},[b5]),w5=zt(XG);var x5={exports:{}},fo=x5.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(){};Zu(t,n,i,e,"",e)};fo.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},fo.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},fo.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},fo.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 Zu(e,t,r,n,i,o,a,s,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,s,c,l);for(var u in n){var d=n[u];if(Array.isArray(d)){if(u in fo.arrayKeywords)for(var f=0;f<d.length;f++)Zu(e,t,r,d[f],i+"/"+u+"/"+f,o,i,u,n,f)}else if(u in fo.propsKeywords){if(d&&typeof d=="object")for(var h in d)Zu(e,t,r,d[h],i+"/"+u+"/"+WG(h),o,i,u,n,h)}else(u in fo.keywords||e.allKeys&&!(u in fo.skipKeywords))&&Zu(e,t,r,d,i+"/"+u,o,i,u,n)}r(n,i,o,a,s,c,l)}}function WG(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var S5=x5.exports;const JG=tn(S5),QG=Ut({__proto__:null,default:JG},[S5]),ZG=zt(QG);Object.defineProperty(qr,"__esModule",{value:!0});var $5=qr.getSchemaRefs=N5=qr.resolveUrl=A5=qr.normalizeId=O5=qr._getFullPath=P5=qr.getFullPath=k5=qr.inlineRef=void 0;const tV=Ne,eV=w5,rV=ZG,nV=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function iV(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Z0(e):t?E5(e)<=t:!1}var k5=qr.inlineRef=iV;const oV=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Z0(e){for(const t in e){if(oV.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(Z0)||typeof r=="object"&&Z0(r))return!0}return!1}function E5(e){let t=0;for(const r in e)if(r==="$ref"||(t++,!nV.has(r)&&(typeof e[r]=="object"&&(0,tV.eachItem)(e[r],n=>t+=E5(n)),t===1/0)))return 1/0;return t}function C5(e,t="",r){r!==!1&&(t=Ia(t));const n=e.parse(t);return T5(e,n)}var P5=qr.getFullPath=C5;function T5(e,t){return e.serialize(t).split("#")[0]+"#"}var O5=qr._getFullPath=T5;const aV=/#\/?$/;function Ia(e){return e?e.replace(aV,""):""}var A5=qr.normalizeId=Ia;function sV(e,t,r){return r=Ia(r),e.resolve(t,r)}var N5=qr.resolveUrl=sV;const lV=/^[a-z_][-a-z0-9._]*$/i;function cV(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=Ia(e[r]||t),o={"":i},a=C5(n,i,!1),s={},c=new Set;return rV(e,{allKeys:!0},(d,f,h,p)=>{if(p===void 0)return;const g=a+f;let v=o[p];typeof d[r]=="string"&&(v=_.call(this,d[r])),y.call(this,d.$anchor),y.call(this,d.$dynamicAnchor),o[f]=v;function _(m){const x=this.opts.uriResolver.resolve;if(m=Ia(v?x(v,m):m),c.has(m))throw u(m);c.add(m);let N=this.refs[m];return typeof N=="string"&&(N=this.refs[N]),typeof N=="object"?l(d,N.schema,m):m!==Ia(g)&&(m[0]==="#"?(l(d,s[m],m),s[m]=d):this.refs[m]=g),m}function y(m){if(typeof m=="string"){if(!lV.test(m))throw new Error(`invalid anchor "${m}"`);_.call(this,`#${m}`)}}}),s;function l(d,f,h){if(f!==void 0&&!eV(d,f))throw u(h)}function u(d){return new Error(`reference "${d}" resolves to more than one schema`)}}$5=qr.getSchemaRefs=cV;const uV=Ut({__proto__:null,get _getFullPath(){return O5},default:qr,get getFullPath(){return P5},get getSchemaRefs(){return $5},get inlineRef(){return k5},get normalizeId(){return A5},get resolveUrl(){return N5}},[qr]),th=zt(uV);Object.defineProperty(ji,"__esModule",{value:!0});var R5=ji.getData=Y5=ji.KeywordCxt=D5=ji.validateFunctionCode=void 0;const j5=sG,I5=Qu,tm=qS,eh=Qu,hV=bG,Xl=GG,em=KG,Yt=ve,ie=Ii,dV=th,Mi=Ne,Wl=Kl;function fV(e){if(U5(e)&&(z5(e),L5(e))){gV(e);return}F5(e,()=>(0,j5.topBoolOrEmptySchema)(e))}var D5=ji.validateFunctionCode=fV;function F5({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,Yt._)`${ie.default.data}, ${ie.default.valCxt}`,n.$async,()=>{e.code((0,Yt._)`"use strict"; ${M5(r,i)}`),mV(e,i),e.code(o)}):e.func(t,(0,Yt._)`${ie.default.data}, ${pV(i)}`,n.$async,()=>e.code(M5(r,i)).code(o))}function pV(e){return(0,Yt._)`{${ie.default.instancePath}="", ${ie.default.parentData}, ${ie.default.parentDataProperty}, ${ie.default.rootData}=${ie.default.data}${e.dynamicRef?(0,Yt._)`, ${ie.default.dynamicAnchors}={}`:Yt.nil}}={}`}function mV(e,t){e.if(ie.default.valCxt,()=>{e.var(ie.default.instancePath,(0,Yt._)`${ie.default.valCxt}.${ie.default.instancePath}`),e.var(ie.default.parentData,(0,Yt._)`${ie.default.valCxt}.${ie.default.parentData}`),e.var(ie.default.parentDataProperty,(0,Yt._)`${ie.default.valCxt}.${ie.default.parentDataProperty}`),e.var(ie.default.rootData,(0,Yt._)`${ie.default.valCxt}.${ie.default.rootData}`),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,Yt._)`${ie.default.valCxt}.${ie.default.dynamicAnchors}`)},()=>{e.var(ie.default.instancePath,(0,Yt._)`""`),e.var(ie.default.parentData,(0,Yt._)`undefined`),e.var(ie.default.parentDataProperty,(0,Yt._)`undefined`),e.var(ie.default.rootData,ie.default.data),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,Yt._)`{}`)})}function gV(e){const{schema:t,opts:r,gen:n}=e;F5(e,()=>{r.$comment&&t.$comment&&V5(e),wV(e),n.let(ie.default.vErrors,null),n.let(ie.default.errors,0),r.unevaluated&&vV(e),G5(e),$V(e)})}function vV(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Yt._)`${r}.evaluated`),t.if((0,Yt._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Yt._)`${e.evaluated}.props`,(0,Yt._)`undefined`)),t.if((0,Yt._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Yt._)`${e.evaluated}.items`,(0,Yt._)`undefined`))}function M5(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Yt._)`/*# sourceURL=${r} */`:Yt.nil}function yV(e,t){if(U5(e)&&(z5(e),L5(e))){_V(e,t);return}(0,j5.boolOrEmptySchema)(e,t)}function L5({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 U5(e){return typeof e.schema!="boolean"}function _V(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&V5(e),xV(e),SV(e);const o=n.const("_errs",ie.default.errors);G5(e,o),n.var(t,(0,Yt._)`${o} === ${ie.default.errors}`)}function z5(e){(0,Mi.checkUnknownRules)(e),bV(e)}function G5(e,t){if(e.opts.jtd)return B5(e,[],!1,t);const r=(0,I5.getSchemaTypes)(e.schema),n=(0,I5.coerceAndCheckDataType)(e,r);B5(e,r,!n,t)}function bV(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Mi.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function wV(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Mi.checkStrictMode)(e,"default is ignored in the schema root")}function xV(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,dV.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function SV(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function V5({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(i.$comment===!0)e.code((0,Yt._)`${ie.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){const a=(0,Yt.str)`${n}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,Yt._)`${ie.default.self}.opts.$comment(${o}, ${a}, ${s}.schema)`)}}function $V(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,Yt._)`${ie.default.errors} === 0`,()=>t.return(ie.default.data),()=>t.throw((0,Yt._)`new ${i}(${ie.default.vErrors})`)):(t.assign((0,Yt._)`${n}.errors`,ie.default.vErrors),o.unevaluated&&kV(e),t.return((0,Yt._)`${ie.default.errors} === 0`))}function kV({gen:e,evaluated:t,props:r,items:n}){r instanceof Yt.Name&&e.assign((0,Yt._)`${t}.props`,r),n instanceof Yt.Name&&e.assign((0,Yt._)`${t}.items`,n)}function B5(e,t,r,n){const{gen:i,schema:o,data:a,allErrors:s,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Mi.schemaHasRulesButRef)(o,u))){i.block(()=>X5(e,"$ref",u.all.$ref.definition));return}c.jtd||EV(e,t),i.block(()=>{for(const f of u.rules)d(f);d(u.post)});function d(f){(0,tm.shouldUseGroup)(o,f)&&(f.type?(i.if((0,eh.checkDataType)(f.type,a,c.strictNumbers)),H5(e,f),t.length===1&&t[0]===f.type&&r&&(i.else(),(0,eh.reportTypeError)(e)),i.endIf()):H5(e,f),s||i.if((0,Yt._)`${ie.default.errors} === ${n||0}`))}}function H5(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,hV.assignDefaults)(e,t.type),r.block(()=>{for(const o of t.rules)(0,tm.shouldUseRule)(n,o)&&X5(e,o.keyword,o.definition,t.type)})}function EV(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(CV(e,t),e.opts.allowUnionTypes||PV(e,t),TV(e,e.dataTypes))}function CV(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{q5(e.dataTypes,r)||rm(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),AV(e,t)}}function PV(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&rm(e,"use allowUnionTypes to allow union type keyword")}function TV(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,tm.shouldUseRule)(e.schema,i)){const{type:o}=i.definition;o.length&&!o.some(a=>OV(t,a))&&rm(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function OV(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function q5(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function AV(e,t){const r=[];for(const n of e.dataTypes)q5(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function rm(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Mi.checkStrictMode)(e,t,e.opts.strictTypes)}class K5{constructor(t,r,n){if((0,Xl.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,Mi.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",W5(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Xl.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",ie.default.errors))}result(t,r,n){this.failResult((0,Yt.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,Yt.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,Yt._)`${r} !== undefined && (${(0,Yt.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?Wl.reportExtraError:Wl.reportError)(this,this.def.error,r)}$dataError(){(0,Wl.reportError)(this,this.def.$dataError||Wl.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Wl.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=Yt.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Yt.nil,r=Yt.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,Yt.or)((0,Yt._)`${i} === undefined`,r)),t!==Yt.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Yt.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,Yt.or)(a(),s());function a(){if(n.length){if(!(r instanceof Yt.Name))throw new Error("ajv implementation error");const c=Array.isArray(n)?n:[n];return(0,Yt._)`${(0,eh.checkDataTypes)(c,r,o.opts.strictNumbers,eh.DataType.Wrong)}`}return Yt.nil}function s(){if(i.validateSchema){const c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,Yt._)`!${c}(${r})`}return Yt.nil}}subschema(t,r){const n=(0,em.getSubschema)(this.it,t);(0,em.extendSubschemaData)(n,this.it,t),(0,em.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return yV(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Mi.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Mi.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,Yt.Name)),!0}}var Y5=ji.KeywordCxt=K5;function X5(e,t,r,n){const i=new K5(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Xl.funcKeywordCode)(i,r):"macro"in r?(0,Xl.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Xl.funcKeywordCode)(i,r)}const NV=/^\/(?:[^~]|~0|~1)*$/,RV=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function W5(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ie.default.rootData;if(e[0]==="/"){if(!NV.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ie.default.rootData}else{const l=RV.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 a=o;const s=i.split("/");for(const l of s)l&&(o=(0,Yt._)`${o}${(0,Yt.getProperty)((0,Mi.unescapeJsonPointer)(l))}`,a=(0,Yt._)`${a} && ${o}`);return a;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}R5=ji.getData=W5;const jV=Ut({__proto__:null,get KeywordCxt(){return Y5},default:ji,get getData(){return R5},get validateFunctionCode(){return D5}},[ji]),Jl=zt(jV);var nm={};Object.defineProperty(nm,"__esModule",{value:!0});class IV extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}var DV=nm.default=IV;const FV=Ut({__proto__:null,default:DV},[nm]),im=zt(FV);var om={};Object.defineProperty(om,"__esModule",{value:!0});const am=th;class MV extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,am.resolveUrl)(t,r,n),this.missingSchema=(0,am.normalizeId)((0,am.getFullPath)(t,this.missingRef))}}var LV=om.default=MV;const UV=Ut({__proto__:null,default:LV},[om]),sm=zt(UV);var pn={};Object.defineProperty(pn,"__esModule",{value:!0});var J5=pn.resolveSchema=n$=pn.getCompilingSchema=e$=pn.resolveRef=t$=pn.compileSchema=Z5=pn.SchemaEnv=void 0;const Hn=ve,zV=im,Wo=Ii,qn=th,Q5=Ne,GV=Jl;class rh{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==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}var Z5=pn.SchemaEnv=rh;function lm(e){const t=r$.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,a=new Hn.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o});let s;e.$async&&(s=a.scopeValue("Error",{ref:zV.default,code:(0,Hn._)`require("ajv/dist/runtime/validation_error").default`}));const c=a.scopeName("validate");e.validateName=c;const l={gen:a,allErrors:this.opts.allErrors,data:Wo.default.data,parentData:Wo.default.parentData,parentDataProperty:Wo.default.parentDataProperty,dataNames:[Wo.default.data],dataPathArr:[Hn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Hn.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Hn.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Hn._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,GV.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);const d=a.toString();u=`${a.scopeRefs(Wo.default.scope)}return ${d}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const f=new Function(`${Wo.default.self}`,`${Wo.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:d,scopeValues:a._values}),this.opts.unevaluated){const{props:h,items:p}=l;f.evaluated={props:h instanceof Hn.Name?void 0:h,items:p instanceof Hn.Name?void 0:p,dynamicProps:h instanceof Hn.Name,dynamicItems:p instanceof Hn.Name},f.source&&(f.source.evaluated=(0,Hn.stringify)(f.evaluated))}return e.validate=f,e}catch(d){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),d}finally{this._compilations.delete(e)}}var t$=pn.compileSchema=lm;function VV(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=qV.call(this,e,r);if(o===void 0){const a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:s}=this.opts;a&&(o=new rh({schema:a,schemaId:s,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=BV.call(this,o)}var e$=pn.resolveRef=VV;function BV(e){return(0,qn.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:lm.call(this,e)}function r$(e){for(const t of this._compilations)if(HV(t,e))return t}var n$=pn.getCompilingSchema=r$;function HV(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function qV(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||nh.call(this,e,t)}function nh(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 cm.call(this,r,e);const o=(0,qn.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){const s=nh.call(this,e,a);return typeof(s==null?void 0:s.schema)!="object"?void 0:cm.call(this,r,s)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||lm.call(this,a),o===(0,qn.normalizeId)(t)){const{schema:s}=a,{schemaId:c}=this.opts,l=s[c];return l&&(i=(0,qn.resolveUrl)(this.opts.uriResolver,i,l)),new rh({schema:s,schemaId:c,root:e,baseId:i})}return cm.call(this,r,a)}}J5=pn.resolveSchema=nh;const KV=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function cm(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const c=r[(0,Q5.unescapeFragment)(s)];if(c===void 0)return;r=c;const l=typeof r=="object"&&r[this.opts.schemaId];!KV.has(s)&&l&&(t=(0,qn.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Q5.schemaHasRulesButRef)(r,this.RULES)){const s=(0,qn.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=nh.call(this,n,s)}const{schemaId:a}=this.opts;if(o=o||new rh({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}const YV=Ut({__proto__:null,get SchemaEnv(){return Z5},get compileSchema(){return t$},default:pn,get getCompilingSchema(){return n$},get resolveRef(){return e$},get resolveSchema(){return J5}},[pn]),um=zt(YV),XV="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",WV="Meta-schema for $data reference (JSON AnySchema extension proposal)",JV="object",QV=["$data"],ZV={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},tB=!1,eB={$id:XV,description:WV,type:JV,required:QV,properties:ZV,additionalProperties:tB};var hm={},dm={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)})(Rz,function(r){function n(){for(var j=arguments.length,U=Array(j),z=0;z<j;z++)U[z]=arguments[z];if(U.length>1){U[0]=U[0].slice(0,-1);for(var Q=U.length-1,Z=1;Z<Q;++Z)U[Z]=U[Z].slice(1,-1);return U[Q]=U[Q].slice(1),U.join("")}else return U[0]}function i(j){return"(?:"+j+")"}function o(j){return j===void 0?"undefined":j===null?"null":Object.prototype.toString.call(j).split(" ").pop().split("]").shift().toLowerCase()}function a(j){return j.toUpperCase()}function s(j){return j!=null?j instanceof Array?j:typeof j.length!="number"||j.split||j.setInterval||j.call?[j]:Array.prototype.slice.call(j):[]}function c(j,U){var z=j;if(U)for(var Q in U)z[Q]=U[Q];return z}function l(j){var U="[A-Za-z]",z="[0-9]",Q=n(z,"[A-Fa-f]"),Z=i(i("%[EFef]"+Q+"%"+Q+Q+"%"+Q+Q)+"|"+i("%[89A-Fa-f]"+Q+"%"+Q+Q)+"|"+i("%"+Q+Q)),yt="[\\:\\/\\?\\#\\[\\]\\@]",vt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",It=n(yt,vt),oe=j?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ht=j?"[\\uE000-\\uF8FF]":"[]",Ot=n(U,z,"[\\-\\.\\_\\~]",oe);i(U+n(U,z,"[\\+\\-\\.]")+"*"),i(i(Z+"|"+n(Ot,vt,"[\\:]"))+"*");var Ft=i(i("25[0-5]")+"|"+i("2[0-4]"+z)+"|"+i("1"+z+z)+"|"+i("0?[1-9]"+z)+"|0?0?"+z),Zt=i(Ft+"\\."+Ft+"\\."+Ft+"\\."+Ft),kt=i(Q+"{1,4}"),At=i(i(kt+"\\:"+kt)+"|"+Zt),Xt=i(i(kt+"\\:")+"{6}"+At),Te=i("\\:\\:"+i(kt+"\\:")+"{5}"+At),fr=i(i(kt)+"?\\:\\:"+i(kt+"\\:")+"{4}"+At),pe=i(i(i(kt+"\\:")+"{0,1}"+kt)+"?\\:\\:"+i(kt+"\\:")+"{3}"+At),De=i(i(i(kt+"\\:")+"{0,2}"+kt)+"?\\:\\:"+i(kt+"\\:")+"{2}"+At),qe=i(i(i(kt+"\\:")+"{0,3}"+kt)+"?\\:\\:"+kt+"\\:"+At),Be=i(i(i(kt+"\\:")+"{0,4}"+kt)+"?\\:\\:"+At),ke=i(i(i(kt+"\\:")+"{0,5}"+kt)+"?\\:\\:"+kt),ce=i(i(i(kt+"\\:")+"{0,6}"+kt)+"?\\:\\:"),Bt=i([Xt,Te,fr,pe,De,qe,Be,ke,ce].join("|")),Ke=i(i(Ot+"|"+Z)+"+");i("[vV]"+Q+"+\\."+n(Ot,vt,"[\\:]")+"+"),i(i(Z+"|"+n(Ot,vt))+"*");var Fr=i(Z+"|"+n(Ot,vt,"[\\:\\@]"));return i(i(Z+"|"+n(Ot,vt,"[\\@]"))+"+"),i(i(Fr+"|"+n("[\\/\\?]",Ht))+"*"),{NOT_SCHEME:new RegExp(n("[^]",U,z,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",Ot,vt),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",Ot,vt),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",Ot,vt),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",Ot,vt),"g"),NOT_QUERY:new RegExp(n("[^\\%]",Ot,vt,"[\\:\\@\\/\\?]",Ht),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",Ot,vt,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",Ot,vt),"g"),UNRESERVED:new RegExp(Ot,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",Ot,It),"g"),PCT_ENCODED:new RegExp(Z,"g"),IPV4ADDRESS:new RegExp("^("+Zt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Bt+")"+i(i("\\%25|\\%(?!"+Q+"{2})")+"("+Ke+")")+"?\\]?$")}}var u=l(!1),d=l(!0),f=function(){function j(U,z){var Q=[],Z=!0,yt=!1,vt=void 0;try{for(var It=U[Symbol.iterator](),oe;!(Z=(oe=It.next()).done)&&(Q.push(oe.value),!(z&&Q.length===z));Z=!0);}catch(Ht){yt=!0,vt=Ht}finally{try{!Z&&It.return&&It.return()}finally{if(yt)throw vt}}return Q}return function(U,z){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return j(U,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(j){if(Array.isArray(j)){for(var U=0,z=Array(j.length);U<j.length;U++)z[U]=j[U];return z}else return Array.from(j)},p=2147483647,g=36,v=1,_=26,y=38,m=700,x=72,N=128,$="-",A=/^xn--/,R=/[^\0-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,H={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Y=g-v,J=Math.floor,nt=String.fromCharCode;function rt(j){throw new RangeError(H[j])}function lt(j,U){for(var z=[],Q=j.length;Q--;)z[Q]=U(j[Q]);return z}function xt(j,U){var z=j.split("@"),Q="";z.length>1&&(Q=z[0]+"@",j=z[1]),j=j.replace(G,".");var Z=j.split("."),yt=lt(Z,U).join(".");return Q+yt}function Ct(j){for(var U=[],z=0,Q=j.length;z<Q;){var Z=j.charCodeAt(z++);if(Z>=55296&&Z<=56319&&z<Q){var yt=j.charCodeAt(z++);(yt&64512)==56320?U.push(((Z&1023)<<10)+(yt&1023)+65536):(U.push(Z),z--)}else U.push(Z)}return U}var $t=function(j){return String.fromCodePoint.apply(String,h(j))},at=function(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:g},X=function(j,U){return j+22+75*(j<26)-((U!=0)<<5)},T=function(j,U,z){var Q=0;for(j=z?J(j/m):j>>1,j+=J(j/U);j>Y*_>>1;Q+=g)j=J(j/Y);return J(Q+(Y+1)*j/(j+y))},E=function(j){var U=[],z=j.length,Q=0,Z=N,yt=x,vt=j.lastIndexOf($);vt<0&&(vt=0);for(var It=0;It<vt;++It)j.charCodeAt(It)>=128&&rt("not-basic"),U.push(j.charCodeAt(It));for(var oe=vt>0?vt+1:0;oe<z;){for(var Ht=Q,Ot=1,Ft=g;;Ft+=g){oe>=z&&rt("invalid-input");var Zt=at(j.charCodeAt(oe++));(Zt>=g||Zt>J((p-Q)/Ot))&&rt("overflow"),Q+=Zt*Ot;var kt=Ft<=yt?v:Ft>=yt+_?_:Ft-yt;if(Zt<kt)break;var At=g-kt;Ot>J(p/At)&&rt("overflow"),Ot*=At}var Xt=U.length+1;yt=T(Q-Ht,Xt,Ht==0),J(Q/Xt)>p-Z&&rt("overflow"),Z+=J(Q/Xt),Q%=Xt,U.splice(Q++,0,Z)}return String.fromCodePoint.apply(String,U)},k=function(j){var U=[];j=Ct(j);var z=j.length,Q=N,Z=0,yt=x,vt=!0,It=!1,oe=void 0;try{for(var Ht=j[Symbol.iterator](),Ot;!(vt=(Ot=Ht.next()).done);vt=!0){var Ft=Ot.value;Ft<128&&U.push(nt(Ft))}}catch(kr){It=!0,oe=kr}finally{try{!vt&&Ht.return&&Ht.return()}finally{if(It)throw oe}}var Zt=U.length,kt=Zt;for(Zt&&U.push($);kt<z;){var At=p,Xt=!0,Te=!1,fr=void 0;try{for(var pe=j[Symbol.iterator](),De;!(Xt=(De=pe.next()).done);Xt=!0){var qe=De.value;qe>=Q&&qe<At&&(At=qe)}}catch(kr){Te=!0,fr=kr}finally{try{!Xt&&pe.return&&pe.return()}finally{if(Te)throw fr}}var Be=kt+1;At-Q>J((p-Z)/Be)&&rt("overflow"),Z+=(At-Q)*Be,Q=At;var ke=!0,ce=!1,Bt=void 0;try{for(var Ke=j[Symbol.iterator](),Fr;!(ke=(Fr=Ke.next()).done);ke=!0){var an=Fr.value;if(an<Q&&++Z>p&&rt("overflow"),an==Q){for(var nr=Z,rr=g;;rr+=g){var yr=rr<=yt?v:rr>=yt+_?_:rr-yt;if(nr<yr)break;var Pn=nr-yr,Tn=g-yr;U.push(nt(X(yr+Pn%Tn,0))),nr=J(Pn/Tn)}U.push(nt(X(nr,0))),yt=T(Z,Be,kt==Zt),Z=0,++kt}}}catch(kr){ce=!0,Bt=kr}finally{try{!ke&&Ke.return&&Ke.return()}finally{if(ce)throw Bt}}++Z,++Q}return U.join("")},b=function(j){return xt(j,function(U){return A.test(U)?E(U.slice(4).toLowerCase()):U})},C=function(j){return xt(j,function(U){return R.test(U)?"xn--"+k(U):U})},L={version:"2.1.0",ucs2:{decode:Ct,encode:$t},decode:E,encode:k,toASCII:C,toUnicode:b},D={};function V(j){var U=j.charCodeAt(0),z=void 0;return U<16?z="%0"+U.toString(16).toUpperCase():U<128?z="%"+U.toString(16).toUpperCase():U<2048?z="%"+(U>>6|192).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase():z="%"+(U>>12|224).toString(16).toUpperCase()+"%"+(U>>6&63|128).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase(),z}function K(j){for(var U="",z=0,Q=j.length;z<Q;){var Z=parseInt(j.substr(z+1,2),16);if(Z<128)U+=String.fromCharCode(Z),z+=3;else if(Z>=194&&Z<224){if(Q-z>=6){var yt=parseInt(j.substr(z+4,2),16);U+=String.fromCharCode((Z&31)<<6|yt&63)}else U+=j.substr(z,6);z+=6}else if(Z>=224){if(Q-z>=9){var vt=parseInt(j.substr(z+4,2),16),It=parseInt(j.substr(z+7,2),16);U+=String.fromCharCode((Z&15)<<12|(vt&63)<<6|It&63)}else U+=j.substr(z,9);z+=9}else U+=j.substr(z,3),z+=3}return U}function et(j,U){function z(Q){var Z=K(Q);return Z.match(U.UNRESERVED)?Z:Q}return j.scheme&&(j.scheme=String(j.scheme).replace(U.PCT_ENCODED,z).toLowerCase().replace(U.NOT_SCHEME,"")),j.userinfo!==void 0&&(j.userinfo=String(j.userinfo).replace(U.PCT_ENCODED,z).replace(U.NOT_USERINFO,V).replace(U.PCT_ENCODED,a)),j.host!==void 0&&(j.host=String(j.host).replace(U.PCT_ENCODED,z).toLowerCase().replace(U.NOT_HOST,V).replace(U.PCT_ENCODED,a)),j.path!==void 0&&(j.path=String(j.path).replace(U.PCT_ENCODED,z).replace(j.scheme?U.NOT_PATH:U.NOT_PATH_NOSCHEME,V).replace(U.PCT_ENCODED,a)),j.query!==void 0&&(j.query=String(j.query).replace(U.PCT_ENCODED,z).replace(U.NOT_QUERY,V).replace(U.PCT_ENCODED,a)),j.fragment!==void 0&&(j.fragment=String(j.fragment).replace(U.PCT_ENCODED,z).replace(U.NOT_FRAGMENT,V).replace(U.PCT_ENCODED,a)),j}function it(j){return j.replace(/^0*(.*)/,"$1")||"0"}function ut(j,U){var z=j.match(U.IPV4ADDRESS)||[],Q=f(z,2),Z=Q[1];return Z?Z.split(".").map(it).join("."):j}function Tt(j,U){var z=j.match(U.IPV6ADDRESS)||[],Q=f(z,3),Z=Q[1],yt=Q[2];if(Z){for(var vt=Z.toLowerCase().split("::").reverse(),It=f(vt,2),oe=It[0],Ht=It[1],Ot=Ht?Ht.split(":").map(it):[],Ft=oe.split(":").map(it),Zt=U.IPV4ADDRESS.test(Ft[Ft.length-1]),kt=Zt?7:8,At=Ft.length-kt,Xt=Array(kt),Te=0;Te<kt;++Te)Xt[Te]=Ot[Te]||Ft[At+Te]||"";Zt&&(Xt[kt-1]=ut(Xt[kt-1],U));var fr=Xt.reduce(function(ke,ce,Bt){if(!ce||ce==="0"){var Ke=ke[ke.length-1];Ke&&Ke.index+Ke.length===Bt?Ke.length++:ke.push({index:Bt,length:1})}return ke},[]),pe=fr.sort(function(ke,ce){return ce.length-ke.length})[0],De=void 0;if(pe&&pe.length>1){var qe=Xt.slice(0,pe.index),Be=Xt.slice(pe.index+pe.length);De=qe.join(":")+"::"+Be.join(":")}else De=Xt.join(":");return yt&&(De+="%"+yt),De}else return j}var Gt=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Pt="".match(/(){0}/)[1]===void 0;function Nt(j){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z={},Q=U.iri!==!1?d:u;U.reference==="suffix"&&(j=(U.scheme?U.scheme+":":"")+"//"+j);var Z=j.match(Gt);if(Z){Pt?(z.scheme=Z[1],z.userinfo=Z[3],z.host=Z[4],z.port=parseInt(Z[5],10),z.path=Z[6]||"",z.query=Z[7],z.fragment=Z[8],isNaN(z.port)&&(z.port=Z[5])):(z.scheme=Z[1]||void 0,z.userinfo=j.indexOf("@")!==-1?Z[3]:void 0,z.host=j.indexOf("//")!==-1?Z[4]:void 0,z.port=parseInt(Z[5],10),z.path=Z[6]||"",z.query=j.indexOf("?")!==-1?Z[7]:void 0,z.fragment=j.indexOf("#")!==-1?Z[8]:void 0,isNaN(z.port)&&(z.port=j.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Z[4]:void 0)),z.host&&(z.host=Tt(ut(z.host,Q),Q)),z.scheme===void 0&&z.userinfo===void 0&&z.host===void 0&&z.port===void 0&&!z.path&&z.query===void 0?z.reference="same-document":z.scheme===void 0?z.reference="relative":z.fragment===void 0?z.reference="absolute":z.reference="uri",U.reference&&U.reference!=="suffix"&&U.reference!==z.reference&&(z.error=z.error||"URI is not a "+U.reference+" reference.");var yt=D[(U.scheme||z.scheme||"").toLowerCase()];if(!U.unicodeSupport&&(!yt||!yt.unicodeSupport)){if(z.host&&(U.domainHost||yt&&yt.domainHost))try{z.host=L.toASCII(z.host.replace(Q.PCT_ENCODED,K).toLowerCase())}catch(vt){z.error=z.error||"Host's domain name can not be converted to ASCII via punycode: "+vt}et(z,u)}else et(z,Q);yt&&yt.parse&&yt.parse(z,U)}else z.error=z.error||"URI can not be parsed.";return z}function qt(j,U){var z=U.iri!==!1?d:u,Q=[];return j.userinfo!==void 0&&(Q.push(j.userinfo),Q.push("@")),j.host!==void 0&&Q.push(Tt(ut(String(j.host),z),z).replace(z.IPV6ADDRESS,function(Z,yt,vt){return"["+yt+(vt?"%25"+vt:"")+"]"})),(typeof j.port=="number"||typeof j.port=="string")&&(Q.push(":"),Q.push(String(j.port))),Q.length?Q.join(""):void 0}var Qt=/^\.\.?\//,Dt=/^\/\.(\/|$)/,fe=/^\/\.\.(\/|$)/,re=/^\/?(?:.|\n)*?(?=\/|$)/;function he(j){for(var U=[];j.length;)if(j.match(Qt))j=j.replace(Qt,"");else if(j.match(Dt))j=j.replace(Dt,"/");else if(j.match(fe))j=j.replace(fe,"/"),U.pop();else if(j==="."||j==="..")j="";else{var z=j.match(re);if(z){var Q=z[0];j=j.slice(Q.length),U.push(Q)}else throw new Error("Unexpected dot segment condition")}return U.join("")}function Vt(j){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=U.iri?d:u,Q=[],Z=D[(U.scheme||j.scheme||"").toLowerCase()];if(Z&&Z.serialize&&Z.serialize(j,U),j.host&&!z.IPV6ADDRESS.test(j.host)&&(U.domainHost||Z&&Z.domainHost))try{j.host=U.iri?L.toUnicode(j.host):L.toASCII(j.host.replace(z.PCT_ENCODED,K).toLowerCase())}catch(It){j.error=j.error||"Host's domain name can not be converted to "+(U.iri?"Unicode":"ASCII")+" via punycode: "+It}et(j,z),U.reference!=="suffix"&&j.scheme&&(Q.push(j.scheme),Q.push(":"));var yt=qt(j,U);if(yt!==void 0&&(U.reference!=="suffix"&&Q.push("//"),Q.push(yt),j.path&&j.path.charAt(0)!=="/"&&Q.push("/")),j.path!==void 0){var vt=j.path;!U.absolutePath&&(!Z||!Z.absolutePath)&&(vt=he(vt)),yt===void 0&&(vt=vt.replace(/^\/\//,"/%2F")),Q.push(vt)}return j.query!==void 0&&(Q.push("?"),Q.push(j.query)),j.fragment!==void 0&&(Q.push("#"),Q.push(j.fragment)),Q.join("")}function Le(j,U){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q=arguments[3],Z={};return Q||(j=Nt(Vt(j,z),z),U=Nt(Vt(U,z),z)),z=z||{},!z.tolerant&&U.scheme?(Z.scheme=U.scheme,Z.userinfo=U.userinfo,Z.host=U.host,Z.port=U.port,Z.path=he(U.path||""),Z.query=U.query):(U.userinfo!==void 0||U.host!==void 0||U.port!==void 0?(Z.userinfo=U.userinfo,Z.host=U.host,Z.port=U.port,Z.path=he(U.path||""),Z.query=U.query):(U.path?(U.path.charAt(0)==="/"?Z.path=he(U.path):((j.userinfo!==void 0||j.host!==void 0||j.port!==void 0)&&!j.path?Z.path="/"+U.path:j.path?Z.path=j.path.slice(0,j.path.lastIndexOf("/")+1)+U.path:Z.path=U.path,Z.path=he(Z.path)),Z.query=U.query):(Z.path=j.path,U.query!==void 0?Z.query=U.query:Z.query=j.query),Z.userinfo=j.userinfo,Z.host=j.host,Z.port=j.port),Z.scheme=j.scheme),Z.fragment=U.fragment,Z}function Ue(j,U,z){var Q=c({scheme:"null"},z);return Vt(Le(Nt(j,Q),Nt(U,Q),Q,!0),Q)}function Xe(j,U){return typeof j=="string"?j=Vt(Nt(j,U),U):o(j)==="object"&&(j=Nt(Vt(j,U),U)),j}function pr(j,U,z){return typeof j=="string"?j=Vt(Nt(j,z),z):o(j)==="object"&&(j=Vt(j,z)),typeof U=="string"?U=Vt(Nt(U,z),z):o(U)==="object"&&(U=Vt(U,z)),j===U}function dr(j,U){return j&&j.toString().replace(!U||!U.iri?u.ESCAPE:d.ESCAPE,V)}function $e(j,U){return j&&j.toString().replace(!U||!U.iri?u.PCT_ENCODED:d.PCT_ENCODED,K)}var Ze={scheme:"http",domainHost:!0,parse:function(j,U){return j.host||(j.error=j.error||"HTTP URIs must have a host."),j},serialize:function(j,U){var z=String(j.scheme).toLowerCase()==="https";return(j.port===(z?443:80)||j.port==="")&&(j.port=void 0),j.path||(j.path="/"),j}},jr={scheme:"https",domainHost:Ze.domainHost,parse:Ze.parse,serialize:Ze.serialize};function Ir(j){return typeof j.secure=="boolean"?j.secure:String(j.scheme).toLowerCase()==="wss"}var Sr={scheme:"ws",domainHost:!0,parse:function(j,U){var z=j;return z.secure=Ir(z),z.resourceName=(z.path||"/")+(z.query?"?"+z.query:""),z.path=void 0,z.query=void 0,z},serialize:function(j,U){if((j.port===(Ir(j)?443:80)||j.port==="")&&(j.port=void 0),typeof j.secure=="boolean"&&(j.scheme=j.secure?"wss":"ws",j.secure=void 0),j.resourceName){var z=j.resourceName.split("?"),Q=f(z,2),Z=Q[0],yt=Q[1];j.path=Z&&Z!=="/"?Z:void 0,j.query=yt,j.resourceName=void 0}return j.fragment=void 0,j}},er={scheme:"wss",domainHost:Sr.domainHost,parse:Sr.parse,serialize:Sr.serialize},rn={},nn="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",xe="[0-9A-Fa-f]",Kr=i(i("%[EFef]"+xe+"%"+xe+xe+"%"+xe+xe)+"|"+i("%[89A-Fa-f]"+xe+"%"+xe+xe)+"|"+i("%"+xe+xe)),Or="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Yn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",mn=n(Yn,'[\\"\\\\]'),kn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Dr=new RegExp(nn,"g"),Ie=new RegExp(Kr,"g"),mo=new RegExp(n("[^]",Or,"[\\.]",'[\\"]',mn),"g"),on=new RegExp(n("[^]",nn,kn),"g"),gn=on;function $r(j){var U=K(j);return U.match(Dr)?U:j}var En={scheme:"mailto",parse:function(j,U){var z=j,Q=z.to=z.path?z.path.split(","):[];if(z.path=void 0,z.query){for(var Z=!1,yt={},vt=z.query.split("&"),It=0,oe=vt.length;It<oe;++It){var Ht=vt[It].split("=");switch(Ht[0]){case"to":for(var Ot=Ht[1].split(","),Ft=0,Zt=Ot.length;Ft<Zt;++Ft)Q.push(Ot[Ft]);break;case"subject":z.subject=$e(Ht[1],U);break;case"body":z.body=$e(Ht[1],U);break;default:Z=!0,yt[$e(Ht[0],U)]=$e(Ht[1],U);break}}Z&&(z.headers=yt)}z.query=void 0;for(var kt=0,At=Q.length;kt<At;++kt){var Xt=Q[kt].split("@");if(Xt[0]=$e(Xt[0]),U.unicodeSupport)Xt[1]=$e(Xt[1],U).toLowerCase();else try{Xt[1]=L.toASCII($e(Xt[1],U).toLowerCase())}catch(Te){z.error=z.error||"Email address's domain name can not be converted to ASCII via punycode: "+Te}Q[kt]=Xt.join("@")}return z},serialize:function(j,U){var z=j,Q=s(j.to);if(Q){for(var Z=0,yt=Q.length;Z<yt;++Z){var vt=String(Q[Z]),It=vt.lastIndexOf("@"),oe=vt.slice(0,It).replace(Ie,$r).replace(Ie,a).replace(mo,V),Ht=vt.slice(It+1);try{Ht=U.iri?L.toUnicode(Ht):L.toASCII($e(Ht,U).toLowerCase())}catch(kt){z.error=z.error||"Email address's domain name can not be converted to "+(U.iri?"Unicode":"ASCII")+" via punycode: "+kt}Q[Z]=oe+"@"+Ht}z.path=Q.join(",")}var Ot=j.headers=j.headers||{};j.subject&&(Ot.subject=j.subject),j.body&&(Ot.body=j.body);var Ft=[];for(var Zt in Ot)Ot[Zt]!==rn[Zt]&&Ft.push(Zt.replace(Ie,$r).replace(Ie,a).replace(on,V)+"="+Ot[Zt].replace(Ie,$r).replace(Ie,a).replace(gn,V));return Ft.length&&(z.query=Ft.join("&")),z}},vn=/^([^\:]+)\:(.*)/,Yr={scheme:"urn",parse:function(j,U){var z=j.path&&j.path.match(vn),Q=j;if(z){var Z=U.scheme||Q.scheme||"urn",yt=z[1].toLowerCase(),vt=z[2],It=Z+":"+(U.nid||yt),oe=D[It];Q.nid=yt,Q.nss=vt,Q.path=void 0,oe&&(Q=oe.parse(Q,U))}else Q.error=Q.error||"URN can not be parsed.";return Q},serialize:function(j,U){var z=U.scheme||j.scheme||"urn",Q=j.nid,Z=z+":"+(U.nid||Q),yt=D[Z];yt&&(j=yt.serialize(j,U));var vt=j,It=j.nss;return vt.path=(Q||U.nid)+":"+It,vt}},Xn=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Cn={scheme:"urn:uuid",parse:function(j,U){var z=j;return z.uuid=z.nss,z.nss=void 0,!U.tolerant&&(!z.uuid||!z.uuid.match(Xn))&&(z.error=z.error||"UUID is not valid."),z},serialize:function(j,U){var z=j;return z.nss=(j.uuid||"").toLowerCase(),z}};D[Ze.scheme]=Ze,D[jr.scheme]=jr,D[Sr.scheme]=Sr,D[er.scheme]=er,D[En.scheme]=En,D[Yr.scheme]=Yr,D[Cn.scheme]=Cn,r.SCHEMES=D,r.pctEncChar=V,r.pctDecChars=K,r.parse=Nt,r.removeDotSegments=he,r.serialize=Vt,r.resolveComponents=Le,r.resolve=Ue,r.normalize=Xe,r.equal=pr,r.escapeComponent=dr,r.unescapeComponent=$e,Object.defineProperty(r,"__esModule",{value:!0})})})(dm,dm.exports);var i$=dm.exports;const rB=tn(i$),nB=Ut({__proto__:null,default:rB},[i$]),iB=zt(nB);Object.defineProperty(hm,"__esModule",{value:!0});const o$=iB;o$.code='require("ajv/dist/runtime/uri").default';var oB=hm.default=o$;const aB=Ut({__proto__:null,default:oB},[hm]),sB=zt(aB);(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=ve;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=im,i=sm,o=US,a=um,s=ve,c=th,l=Qu,u=Ne,d=eB,f=sB,h=(X,T)=>new RegExp(X,T);h.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],g=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."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function m(X){var T,E,k,b,C,L,D,V,K,et,it,ut,Tt,Gt,Pt,Nt,qt,Qt,Dt,fe,re,he,Vt,Le,Ue;const Xe=X.strict,pr=(T=X.code)===null||T===void 0?void 0:T.optimize,dr=pr===!0||pr===void 0?1:pr||0,$e=(k=(E=X.code)===null||E===void 0?void 0:E.regExp)!==null&&k!==void 0?k:h,Ze=(b=X.uriResolver)!==null&&b!==void 0?b:f.default;return{strictSchema:(L=(C=X.strictSchema)!==null&&C!==void 0?C:Xe)!==null&&L!==void 0?L:!0,strictNumbers:(V=(D=X.strictNumbers)!==null&&D!==void 0?D:Xe)!==null&&V!==void 0?V:!0,strictTypes:(et=(K=X.strictTypes)!==null&&K!==void 0?K:Xe)!==null&&et!==void 0?et:"log",strictTuples:(ut=(it=X.strictTuples)!==null&&it!==void 0?it:Xe)!==null&&ut!==void 0?ut:"log",strictRequired:(Gt=(Tt=X.strictRequired)!==null&&Tt!==void 0?Tt:Xe)!==null&&Gt!==void 0?Gt:!1,code:X.code?{...X.code,optimize:dr,regExp:$e}:{optimize:dr,regExp:$e},loopRequired:(Pt=X.loopRequired)!==null&&Pt!==void 0?Pt:y,loopEnum:(Nt=X.loopEnum)!==null&&Nt!==void 0?Nt:y,meta:(qt=X.meta)!==null&&qt!==void 0?qt:!0,messages:(Qt=X.messages)!==null&&Qt!==void 0?Qt:!0,inlineRefs:(Dt=X.inlineRefs)!==null&&Dt!==void 0?Dt:!0,schemaId:(fe=X.schemaId)!==null&&fe!==void 0?fe:"$id",addUsedSchema:(re=X.addUsedSchema)!==null&&re!==void 0?re:!0,validateSchema:(he=X.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(Vt=X.validateFormats)!==null&&Vt!==void 0?Vt:!0,unicodeRegExp:(Le=X.unicodeRegExp)!==null&&Le!==void 0?Le:!0,int32range:(Ue=X.int32range)!==null&&Ue!==void 0?Ue:!0,uriResolver:Ze}}class x{constructor(T={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,T=this.opts={...T,...m(T)};const{es5:E,lines:k}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:g,es5:E,lines:k}),this.logger=J(T.logger);const b=T.validateFormats;T.validateFormats=!1,this.RULES=(0,o.getRules)(),N.call(this,v,T,"NOT SUPPORTED"),N.call(this,_,T,"DEPRECATED","warn"),this._metaOpts=H.call(this),T.formats&&R.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),T.keywords&&G.call(this,T.keywords),typeof T.meta=="object"&&this.addMetaSchema(T.meta),A.call(this),T.validateFormats=b}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:T,meta:E,schemaId:k}=this.opts;let b=d;k==="id"&&(b={...d},b.id=b.$id,delete b.$id),E&&T&&this.addMetaSchema(b,b[k],!1)}defaultMeta(){const{meta:T,schemaId:E}=this.opts;return this.opts.defaultMeta=typeof T=="object"?T[E]||T:void 0}validate(T,E){let k;if(typeof T=="string"){if(k=this.getSchema(T),!k)throw new Error(`no schema with key or ref "${T}"`)}else k=this.compile(T);const b=k(E);return"$async"in k||(this.errors=k.errors),b}compile(T,E){const k=this._addSchema(T,E);return k.validate||this._compileSchemaEnv(k)}compileAsync(T,E){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:k}=this.opts;return b.call(this,T,E);async function b(et,it){await C.call(this,et.$schema);const ut=this._addSchema(et,it);return ut.validate||L.call(this,ut)}async function C(et){et&&!this.getSchema(et)&&await b.call(this,{$ref:et},!0)}async function L(et){try{return this._compileSchemaEnv(et)}catch(it){if(!(it instanceof i.default))throw it;return D.call(this,it),await V.call(this,it.missingSchema),L.call(this,et)}}function D({missingSchema:et,missingRef:it}){if(this.refs[et])throw new Error(`AnySchema ${et} is loaded but ${it} cannot be resolved`)}async function V(et){const it=await K.call(this,et);this.refs[et]||await C.call(this,it.$schema),this.refs[et]||this.addSchema(it,et,E)}async function K(et){const it=this._loading[et];if(it)return it;try{return await(this._loading[et]=k(et))}finally{delete this._loading[et]}}}addSchema(T,E,k,b=this.opts.validateSchema){if(Array.isArray(T)){for(const L of T)this.addSchema(L,void 0,k,b);return this}let C;if(typeof T=="object"){const{schemaId:L}=this.opts;if(C=T[L],C!==void 0&&typeof C!="string")throw new Error(`schema ${L} must be string`)}return E=(0,c.normalizeId)(E||C),this._checkUnique(E),this.schemas[E]=this._addSchema(T,k,E,b,!0),this}addMetaSchema(T,E,k=this.opts.validateSchema){return this.addSchema(T,E,!0,k),this}validateSchema(T,E){if(typeof T=="boolean")return!0;let k;if(k=T.$schema,k!==void 0&&typeof k!="string")throw new Error("$schema must be a string");if(k=k||this.opts.defaultMeta||this.defaultMeta(),!k)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const b=this.validate(k,T);if(!b&&E){const C="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(C);else throw new Error(C)}return b}getSchema(T){let E;for(;typeof(E=$.call(this,T))=="string";)T=E;if(E===void 0){const{schemaId:k}=this.opts,b=new a.SchemaEnv({schema:{},schemaId:k});if(E=a.resolveSchema.call(this,b,T),!E)return;this.refs[T]=E}return E.validate||this._compileSchemaEnv(E)}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 E=$.call(this,T);return typeof E=="object"&&this._cache.delete(E.schema),delete this.schemas[T],delete this.refs[T],this}case"object":{const E=T;this._cache.delete(E);let k=T[this.opts.schemaId];return k&&(k=(0,c.normalizeId)(k),delete this.schemas[k],delete this.refs[k]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(T){for(const E of T)this.addKeyword(E);return this}addKeyword(T,E){let k;if(typeof T=="string")k=T,typeof E=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),E.keyword=k);else if(typeof T=="object"&&E===void 0){if(E=T,k=E.keyword,Array.isArray(k)&&!k.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(rt.call(this,k,E),!E)return(0,u.eachItem)(k,C=>lt.call(this,C)),this;Ct.call(this,E);const b={...E,type:(0,l.getJSONTypes)(E.type),schemaType:(0,l.getJSONTypes)(E.schemaType)};return(0,u.eachItem)(k,b.type.length===0?C=>lt.call(this,C,b):C=>b.type.forEach(L=>lt.call(this,C,b,L))),this}getKeyword(T){const E=this.RULES.all[T];return typeof E=="object"?E.definition:!!E}removeKeyword(T){const{RULES:E}=this;delete E.keywords[T],delete E.all[T];for(const k of E.rules){const b=k.rules.findIndex(C=>C.keyword===T);b>=0&&k.rules.splice(b,1)}return this}addFormat(T,E){return typeof E=="string"&&(E=new RegExp(E)),this.formats[T]=E,this}errorsText(T=this.errors,{separator:E=", ",dataVar:k="data"}={}){return!T||T.length===0?"No errors":T.map(b=>`${k}${b.instancePath} ${b.message}`).reduce((b,C)=>b+E+C)}$dataMetaSchema(T,E){const k=this.RULES.all;T=JSON.parse(JSON.stringify(T));for(const b of E){const C=b.split("/").slice(1);let L=T;for(const D of C)L=L[D];for(const D in k){const V=k[D];if(typeof V!="object")continue;const{$data:K}=V.definition,et=L[D];K&&et&&(L[D]=at(et))}}return T}_removeAllSchemas(T,E){for(const k in T){const b=T[k];(!E||E.test(k))&&(typeof b=="string"?delete T[k]:b&&!b.meta&&(this._cache.delete(b.schema),delete T[k]))}}_addSchema(T,E,k,b=this.opts.validateSchema,C=this.opts.addUsedSchema){let L;const{schemaId:D}=this.opts;if(typeof T=="object")L=T[D];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 V=this._cache.get(T);if(V!==void 0)return V;k=(0,c.normalizeId)(L||k);const K=c.getSchemaRefs.call(this,T,k);return V=new a.SchemaEnv({schema:T,schemaId:D,meta:E,baseId:k,localRefs:K}),this._cache.set(V.schema,V),C&&!k.startsWith("#")&&(k&&this._checkUnique(k),this.refs[k]=V),b&&this.validateSchema(T,!0),V}_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):a.compileSchema.call(this,T),!T.validate)throw new Error("ajv implementation error");return T.validate}_compileMetaSchema(T){const E=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,T)}finally{this.opts=E}}}e.default=x,x.ValidationError=n.default,x.MissingRefError=i.default;function N(X,T,E,k="error"){for(const b in X){const C=b;C in T&&this.logger[k](`${E}: option ${b}. ${X[C]}`)}}function $(X){return X=(0,c.normalizeId)(X),this.schemas[X]||this.refs[X]}function A(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const T in X)this.addSchema(X[T],T)}function R(){for(const X in this.opts.formats){const T=this.opts.formats[X];T&&this.addFormat(X,T)}}function G(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const T in X){const E=X[T];E.keyword||(E.keyword=T),this.addKeyword(E)}}function H(){const X={...this.opts};for(const T of p)delete X[T];return X}const Y={log(){},warn(){},error(){}};function J(X){if(X===!1)return Y;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const nt=/^[a-z_$][a-z0-9_$:-]*$/i;function rt(X,T){const{RULES:E}=this;if((0,u.eachItem)(X,k=>{if(E.keywords[k])throw new Error(`Keyword ${k} is already defined`);if(!nt.test(k))throw new Error(`Keyword ${k} has invalid name`)}),!!T&&T.$data&&!("code"in T||"validate"in T))throw new Error('$data keyword must have "code" or "validate" function')}function lt(X,T,E){var k;const b=T==null?void 0:T.post;if(E&&b)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:C}=this;let L=b?C.post:C.rules.find(({type:V})=>V===E);if(L||(L={type:E,rules:[]},C.rules.push(L)),C.keywords[X]=!0,!T)return;const D={keyword:X,definition:{...T,type:(0,l.getJSONTypes)(T.type),schemaType:(0,l.getJSONTypes)(T.schemaType)}};T.before?xt.call(this,L,D,T.before):L.rules.push(D),C.all[X]=D,(k=T.implements)===null||k===void 0||k.forEach(V=>this.addKeyword(V))}function xt(X,T,E){const k=X.rules.findIndex(b=>b.keyword===E);k>=0?X.rules.splice(k,0,T):(X.rules.push(T),this.logger.warn(`rule ${E} is not defined`))}function Ct(X){let{metaSchema:T}=X;T!==void 0&&(X.$data&&this.opts.$data&&(T=at(T)),X.validateSchema=this.compile(T,!0))}const $t={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function at(X){return{anyOf:[X,$t]}}})(G0);const lB=tn(G0),cB=Ut({__proto__:null,default:lB},[G0]),uB=zt(cB);var fm={},pm={},mm={};Object.defineProperty(mm,"__esModule",{value:!0});const hB={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var dB=mm.default=hB;const fB=Ut({__proto__:null,default:dB},[mm]),pB=zt(fB);var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0});var a$=Jo.callRef=u$=Jo.getValidate=void 0;const mB=sm,s$=Bn,en=ve,Da=Ii,l$=um,ih=Ne,gB={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:s,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return d();const u=l$.resolveRef.call(c,l,i,r);if(u===void 0)throw new mB.default(n.opts.uriResolver,i,r);if(u instanceof l$.SchemaEnv)return f(u);return h(u);function d(){if(o===l)return oh(e,a,o,o.$async);const p=t.scopeValue("root",{ref:l});return oh(e,(0,en._)`${p}.validate`,l,l.$async)}function f(p){const g=c$(e,p);oh(e,g,p,p.$async)}function h(p){const g=t.scopeValue("schema",s.code.source===!0?{ref:p,code:(0,en.stringify)(p)}:{ref:p}),v=t.name("valid"),_=e.subschema({schema:p,dataTypes:[],schemaPath:en.nil,topSchemaRef:g,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function c$(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,en._)`${r.scopeValue("wrapper",{ref:t})}.validate`}var u$=Jo.getValidate=c$;function oh(e,t,r,n){const{gen:i,it:o}=e,{allErrors:a,schemaEnv:s,opts:c}=o,l=c.passContext?Da.default.this:en.nil;n?u():d();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const p=i.let("valid");i.try(()=>{i.code((0,en._)`await ${(0,s$.callValidateCode)(e,t,l)}`),h(t),a||i.assign(p,!0)},g=>{i.if((0,en._)`!(${g} instanceof ${o.ValidationError})`,()=>i.throw(g)),f(g),a||i.assign(p,!1)}),e.ok(p)}function d(){e.result((0,s$.callValidateCode)(e,t,l),()=>h(t),()=>f(t))}function f(p){const g=(0,en._)`${p}.errors`;i.assign(Da.default.vErrors,(0,en._)`${Da.default.vErrors} === null ? ${g} : ${Da.default.vErrors}.concat(${g})`),i.assign(Da.default.errors,(0,en._)`${Da.default.vErrors}.length`)}function h(p){var g;if(!o.opts.unevaluated)return;const v=(g=r==null?void 0:r.validate)===null||g===void 0?void 0:g.evaluated;if(o.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(o.props=ih.mergeEvaluated.props(i,v.props,o.props));else{const _=i.var("props",(0,en._)`${p}.evaluated.props`);o.props=ih.mergeEvaluated.props(i,_,o.props,en.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=ih.mergeEvaluated.items(i,v.items,o.items));else{const _=i.var("items",(0,en._)`${p}.evaluated.items`);o.items=ih.mergeEvaluated.items(i,_,o.items,en.Name)}}}a$=Jo.callRef=oh;var vB=Jo.default=gB;const yB=Ut({__proto__:null,get callRef(){return a$},default:vB,get getValidate(){return u$}},[Jo]),_B=zt(yB);Object.defineProperty(pm,"__esModule",{value:!0});const bB=pB,wB=_B,xB=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",bB.default,wB.default];var SB=pm.default=xB;const $B=Ut({__proto__:null,default:SB},[pm]),kB=zt($B);var gm={},vm={};Object.defineProperty(vm,"__esModule",{value:!0});const ah=ve,po=ah.operators,sh={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}},EB={message:({keyword:e,schemaCode:t})=>(0,ah.str)`must be ${sh[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,ah._)`{comparison: ${sh[e].okStr}, limit: ${t}}`},CB={keyword:Object.keys(sh),type:"number",schemaType:"number",$data:!0,error:EB,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,ah._)`${r} ${sh[t].fail} ${n} || isNaN(${r})`)}};var PB=vm.default=CB;const TB=Ut({__proto__:null,default:PB},[vm]),OB=zt(TB);var ym={};Object.defineProperty(ym,"__esModule",{value:!0});const Ql=ve,AB={message:({schemaCode:e})=>(0,Ql.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Ql._)`{multipleOf: ${e}}`},NB={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:AB,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),s=o?(0,Ql._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,Ql._)`${a} !== parseInt(${a})`;e.fail$data((0,Ql._)`(${n} === 0 || (${a} = ${r}/${n}, ${s}))`)}};var RB=ym.default=NB;const jB=Ut({__proto__:null,default:RB},[ym]),IB=zt(jB);var _m={},bm={};Object.defineProperty(bm,"__esModule",{value:!0});function h$(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 DB=bm.default=h$;h$.code='require("ajv/dist/runtime/ucs2length").default';const FB=Ut({__proto__:null,default:DB},[bm]),MB=zt(FB);Object.defineProperty(_m,"__esModule",{value:!0});const Qo=ve,LB=Ne,UB=MB,zB={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,Qo.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Qo._)`{limit: ${e}}`},GB={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:zB,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Qo.operators.GT:Qo.operators.LT,a=i.opts.unicode===!1?(0,Qo._)`${r}.length`:(0,Qo._)`${(0,LB.useFunc)(e.gen,UB.default)}(${r})`;e.fail$data((0,Qo._)`${a} ${o} ${n}`)}};var VB=_m.default=GB;const BB=Ut({__proto__:null,default:VB},[_m]),HB=zt(BB);var wm={};Object.defineProperty(wm,"__esModule",{value:!0});const qB=Bn,lh=ve,KB={message:({schemaCode:e})=>(0,lh.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,lh._)`{pattern: ${e}}`},YB={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:KB,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",s=r?(0,lh._)`(new RegExp(${i}, ${a}))`:(0,qB.usePattern)(e,n);e.fail$data((0,lh._)`!${s}.test(${t})`)}};var XB=wm.default=YB;const WB=Ut({__proto__:null,default:XB},[wm]),JB=zt(WB);var xm={};Object.defineProperty(xm,"__esModule",{value:!0});const Zl=ve,QB={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Zl.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Zl._)`{limit: ${e}}`},ZB={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:QB,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Zl.operators.GT:Zl.operators.LT;e.fail$data((0,Zl._)`Object.keys(${r}).length ${i} ${n}`)}};var tH=xm.default=ZB;const eH=Ut({__proto__:null,default:tH},[xm]),rH=zt(eH);var Sm={};Object.defineProperty(Sm,"__esModule",{value:!0});const tc=Bn,ec=ve,nH=Ne,iH={message:({params:{missingProperty:e}})=>(0,ec.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,ec._)`{missingProperty: ${e}}`},oH={keyword:"required",type:"object",schemaType:"array",$data:!0,error:iH,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:s}=a;if(!o&&r.length===0)return;const c=r.length>=s.loopRequired;if(a.allErrors?l():u(),s.strictRequired){const h=e.parentSchema.properties,{definedProperties:p}=e.it;for(const g of r)if((h==null?void 0:h[g])===void 0&&!p.has(g)){const v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${g}" is not defined at "${v}" (strictRequired)`;(0,nH.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(c||o)e.block$data(ec.nil,d);else for(const h of r)(0,tc.checkReportMissingProp)(e,h)}function u(){const h=t.let("missing");if(c||o){const p=t.let("valid",!0);e.block$data(p,()=>f(h,p)),e.ok(p)}else t.if((0,tc.checkMissingProp)(e,r,h)),(0,tc.reportMissingProp)(e,h),t.else()}function d(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,tc.noPropertyInData)(t,i,h,s.ownProperties),()=>e.error())})}function f(h,p){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(p,(0,tc.propertyInData)(t,i,h,s.ownProperties)),t.if((0,ec.not)(p),()=>{e.error(),t.break()})},ec.nil)}}};var aH=Sm.default=oH;const sH=Ut({__proto__:null,default:aH},[Sm]),lH=zt(sH);var $m={};Object.defineProperty($m,"__esModule",{value:!0});const rc=ve,cH={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,rc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,rc._)`{limit: ${e}}`},uH={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:cH,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?rc.operators.GT:rc.operators.LT;e.fail$data((0,rc._)`${r}.length ${i} ${n}`)}};var hH=$m.default=uH;const dH=Ut({__proto__:null,default:hH},[$m]),fH=zt(dH);var km={},Em={};Object.defineProperty(Em,"__esModule",{value:!0});const d$=w5;d$.code='require("ajv/dist/runtime/equal").default';var pH=Em.default=d$;const mH=Ut({__proto__:null,default:pH},[Em]),Cm=zt(mH);Object.defineProperty(km,"__esModule",{value:!0});const Pm=Qu,Tr=ve,gH=Ne,vH=Cm,yH={message:({params:{i:e,j:t}})=>(0,Tr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Tr._)`{i: ${e}, j: ${t}}`},_H={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:yH,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:s}=e;if(!n&&!i)return;const c=t.let("valid"),l=o.items?(0,Pm.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,Tr._)`${a} === false`),e.ok(c);function u(){const p=t.let("i",(0,Tr._)`${r}.length`),g=t.let("j");e.setParams({i:p,j:g}),t.assign(c,!0),t.if((0,Tr._)`${p} > 1`,()=>(d()?f:h)(p,g))}function d(){return l.length>0&&!l.some(p=>p==="object"||p==="array")}function f(p,g){const v=t.name("item"),_=(0,Pm.checkDataTypes)(l,v,s.opts.strictNumbers,Pm.DataType.Wrong),y=t.const("indices",(0,Tr._)`{}`);t.for((0,Tr._)`;${p}--;`,()=>{t.let(v,(0,Tr._)`${r}[${p}]`),t.if(_,(0,Tr._)`continue`),l.length>1&&t.if((0,Tr._)`typeof ${v} == "string"`,(0,Tr._)`${v} += "_"`),t.if((0,Tr._)`typeof ${y}[${v}] == "number"`,()=>{t.assign(g,(0,Tr._)`${y}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,Tr._)`${y}[${v}] = ${p}`)})}function h(p,g){const v=(0,gH.useFunc)(t,vH.default),_=t.name("outer");t.label(_).for((0,Tr._)`;${p}--;`,()=>t.for((0,Tr._)`${g} = ${p}; ${g}--;`,()=>t.if((0,Tr._)`${v}(${r}[${p}], ${r}[${g}])`,()=>{e.error(),t.assign(c,!1).break(_)})))}}};var bH=km.default=_H;const wH=Ut({__proto__:null,default:bH},[km]),xH=zt(wH);var Tm={};Object.defineProperty(Tm,"__esModule",{value:!0});const Om=ve,SH=Ne,$H=Cm,kH={message:"must be equal to constant",params:({schemaCode:e})=>(0,Om._)`{allowedValue: ${e}}`},EH={keyword:"const",$data:!0,error:kH,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Om._)`!${(0,SH.useFunc)(t,$H.default)}(${r}, ${i})`):e.fail((0,Om._)`${o} !== ${r}`)}};var CH=Tm.default=EH;const PH=Ut({__proto__:null,default:CH},[Tm]),TH=zt(PH);var Am={};Object.defineProperty(Am,"__esModule",{value:!0});const nc=ve,OH=Ne,AH=Cm,NH={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,nc._)`{allowedValues: ${e}}`},RH={keyword:"enum",schemaType:"array",$data:!0,error:NH,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const s=i.length>=a.opts.loopEnum;let c;const l=()=>c??(c=(0,OH.useFunc)(t,AH.default));let u;if(s||n)u=t.let("valid"),e.block$data(u,d);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const h=t.const("vSchema",o);u=(0,nc.or)(...i.map((p,g)=>f(h,g)))}e.pass(u);function d(){t.assign(u,!1),t.forOf("v",o,h=>t.if((0,nc._)`${l()}(${r}, ${h})`,()=>t.assign(u,!0).break()))}function f(h,p){const g=i[p];return typeof g=="object"&&g!==null?(0,nc._)`${l()}(${r}, ${h}[${p}])`:(0,nc._)`${r} === ${g}`}}};var jH=Am.default=RH;const IH=Ut({__proto__:null,default:jH},[Am]),DH=zt(IH);Object.defineProperty(gm,"__esModule",{value:!0});const FH=OB,MH=IB,LH=HB,UH=JB,zH=rH,GH=lH,VH=fH,BH=xH,HH=TH,qH=DH,KH=[FH.default,MH.default,LH.default,UH.default,zH.default,GH.default,VH.default,BH.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},HH.default,qH.default];var YH=gm.default=KH;const XH=Ut({__proto__:null,default:YH},[gm]),WH=zt(XH);var Nm={},ic={};Object.defineProperty(ic,"__esModule",{value:!0});var f$=ic.validateAdditionalItems=void 0;const Zo=ve,Rm=Ne,JH={message:({params:{len:e}})=>(0,Zo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Zo._)`{limit: ${e}}`},QH={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:JH,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Rm.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}p$(e,n)}};function p$(e,t){const{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;const s=r.const("len",(0,Zo._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Zo._)`${s} <= ${t.length}`);else if(typeof n=="object"&&!(0,Rm.alwaysValidSchema)(a,n)){const l=r.var("valid",(0,Zo._)`${s} <= ${t.length}`);r.if((0,Zo.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,s,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:Rm.Type.Num},l),a.allErrors||r.if((0,Zo.not)(l),()=>r.break())})}}f$=ic.validateAdditionalItems=p$;var ZH=ic.default=QH;const tq=Ut({__proto__:null,default:ZH,get validateAdditionalItems(){return f$}},[ic]),m$=zt(tq);var jm={},oc={};Object.defineProperty(oc,"__esModule",{value:!0});var g$=oc.validateTuple=void 0;const v$=ve,ch=Ne,eq=Bn,rq={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return y$(e,"additionalItems",t);r.items=!0,!(0,ch.alwaysValidSchema)(r,t)&&e.ok((0,eq.validateArray)(e))}};function y$(e,t,r=e.schema){const{gen:n,parentSchema:i,data:o,keyword:a,it:s}=e;u(i),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=ch.mergeEvaluated.items(n,r.length,s.items));const c=n.name("valid"),l=n.const("len",(0,v$._)`${o}.length`);r.forEach((d,f)=>{(0,ch.alwaysValidSchema)(s,d)||(n.if((0,v$._)`${l} > ${f}`,()=>e.subschema({keyword:a,schemaProp:f,dataProp:f},c)),e.ok(c))});function u(d){const{opts:f,errSchemaPath:h}=s,p=r.length,g=p===d.minItems&&(p===d.maxItems||d[t]===!1);if(f.strictTuples&&!g){const v=`"${a}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,ch.checkStrictMode)(s,v,f.strictTuples)}}}g$=oc.validateTuple=y$;var nq=oc.default=rq;const iq=Ut({__proto__:null,default:nq,get validateTuple(){return g$}},[oc]),_$=zt(iq);Object.defineProperty(jm,"__esModule",{value:!0});const oq=_$,aq={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,oq.validateTuple)(e,"items")};var sq=jm.default=aq;const lq=Ut({__proto__:null,default:sq},[jm]),cq=zt(lq);var Im={};Object.defineProperty(Im,"__esModule",{value:!0});const b$=ve,uq=Ne,hq=Bn,dq=m$,fq={message:({params:{len:e}})=>(0,b$.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,b$._)`{limit: ${e}}`},pq={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:fq,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,uq.alwaysValidSchema)(n,t)&&(i?(0,dq.validateAdditionalItems)(e,i):e.ok((0,hq.validateArray)(e)))}};var mq=Im.default=pq;const gq=Ut({__proto__:null,default:mq},[Im]),vq=zt(gq);var Dm={};Object.defineProperty(Dm,"__esModule",{value:!0});const $n=ve,uh=Ne,yq={message:({params:{min:e,max:t}})=>t===void 0?(0,$n.str)`must contain at least ${e} valid item(s)`:(0,$n.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,$n._)`{minContains: ${e}}`:(0,$n._)`{minContains: ${e}, maxContains: ${t}}`},_q={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:yq,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;let a,s;const{minContains:c,maxContains:l}=n;o.opts.next?(a=c===void 0?1:c,s=l):a=1;const u=t.const("len",(0,$n._)`${i}.length`);if(e.setParams({min:a,max:s}),s===void 0&&a===0){(0,uh.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&a>s){(0,uh.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,uh.alwaysValidSchema)(o,r)){let g=(0,$n._)`${u} >= ${a}`;s!==void 0&&(g=(0,$n._)`${g} && ${u} <= ${s}`),e.pass(g);return}o.items=!0;const d=t.name("valid");s===void 0&&a===1?h(d,()=>t.if(d,()=>t.break())):a===0?(t.let(d,!0),s!==void 0&&t.if((0,$n._)`${i}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,()=>e.reset());function f(){const g=t.name("_valid"),v=t.let("count",0);h(g,()=>t.if(g,()=>p(v)))}function h(g,v){t.forRange("i",0,u,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:uh.Type.Num,compositeRule:!0},g),v()})}function p(g){t.code((0,$n._)`${g}++`),s===void 0?t.if((0,$n._)`${g} >= ${a}`,()=>t.assign(d,!0).break()):(t.if((0,$n._)`${g} > ${s}`,()=>t.assign(d,!1).break()),a===1?t.assign(d,!0):t.if((0,$n._)`${g} >= ${a}`,()=>t.assign(d,!0)))}}};var bq=Dm.default=_q;const wq=Ut({__proto__:null,default:bq},[Dm]),xq=zt(wq);var Fm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ve,r=Ne,n=Bn;e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const d=l===1?"property":"properties";return(0,t.str)`must have ${d} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:d}})=>(0,t._)`{property: ${c},
|
|
66
|
-
missingProperty: ${d},
|
|
67
|
-
depsCount: ${l},
|
|
68
|
-
deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,u]=o(c);a(c,l),s(c,u)}};function o({schema:c}){const l={},u={};for(const d in c){if(d==="__proto__")continue;const f=Array.isArray(c[d])?l:u;f[d]=c[d]}return[l,u]}function a(c,l=c.schema){const{gen:u,data:d,it:f}=c;if(Object.keys(l).length===0)return;const h=u.let("missing");for(const p in l){const g=l[p];if(g.length===0)continue;const v=(0,n.propertyInData)(u,d,p,f.opts.ownProperties);c.setParams({property:p,depsCount:g.length,deps:g.join(", ")}),f.allErrors?u.if(v,()=>{for(const _ of g)(0,n.checkReportMissingProp)(c,_)}):(u.if((0,t._)`${v} && (${(0,n.checkMissingProp)(c,g,h)})`),(0,n.reportMissingProp)(c,h),u.else())}}e.validatePropertyDeps=a;function s(c,l=c.schema){const{gen:u,data:d,keyword:f,it:h}=c,p=u.name("valid");for(const g in l)(0,r.alwaysValidSchema)(h,l[g])||(u.if((0,n.propertyInData)(u,d,g,h.opts.ownProperties),()=>{const v=c.subschema({keyword:f,schemaProp:g},p);c.mergeValidEvaluated(v,p)},()=>u.var(p,!0)),c.ok(p))}e.validateSchemaDeps=s,e.default=i})(Fm);const Sq=tn(Fm),$q=Ut({__proto__:null,default:Sq},[Fm]),kq=zt($q);var Mm={};Object.defineProperty(Mm,"__esModule",{value:!0});const w$=ve,Eq=Ne,Cq={message:"property name must be valid",params:({params:e})=>(0,w$._)`{propertyName: ${e.propertyName}}`},Pq={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Cq,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,Eq.alwaysValidSchema)(i,r))return;const o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,w$.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};var Tq=Mm.default=Pq;const Oq=Ut({__proto__:null,default:Tq},[Mm]),Aq=zt(Oq);var Lm={};Object.defineProperty(Lm,"__esModule",{value:!0});const hh=Bn,Kn=ve,Nq=Ii,dh=Ne,Rq={message:"must NOT have additional properties",params:({params:e})=>(0,Kn._)`{additionalProperty: ${e.additionalProperty}}`},jq={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Rq,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");const{allErrors:s,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,dh.alwaysValidSchema)(a,r))return;const l=(0,hh.allSchemaProperties)(n.properties),u=(0,hh.allSchemaProperties)(n.patternProperties);d(),e.ok((0,Kn._)`${o} === ${Nq.default.errors}`);function d(){t.forIn("key",i,v=>{!l.length&&!u.length?p(v):t.if(f(v),()=>p(v))})}function f(v){let _;if(l.length>8){const y=(0,dh.schemaRefOrVal)(a,n.properties,"properties");_=(0,hh.isOwnProperty)(t,y,v)}else l.length?_=(0,Kn.or)(...l.map(y=>(0,Kn._)`${v} === ${y}`)):_=Kn.nil;return u.length&&(_=(0,Kn.or)(_,...u.map(y=>(0,Kn._)`${(0,hh.usePattern)(e,y)}.test(${v})`))),(0,Kn.not)(_)}function h(v){t.code((0,Kn._)`delete ${i}[${v}]`)}function p(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,dh.alwaysValidSchema)(a,r)){const _=t.name("valid");c.removeAdditional==="failing"?(g(v,_,!1),t.if((0,Kn.not)(_),()=>{e.reset(),h(v)})):(g(v,_),s||t.if((0,Kn.not)(_),()=>t.break()))}}function g(v,_,y){const m={keyword:"additionalProperties",dataProp:v,dataPropType:dh.Type.Str};y===!1&&Object.assign(m,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(m,_)}}};var Iq=Lm.default=jq;const Dq=Ut({__proto__:null,default:Iq},[Lm]),x$=zt(Dq);var Um={};Object.defineProperty(Um,"__esModule",{value:!0});const Fq=Jl,S$=Bn,zm=Ne,$$=x$,Mq={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&&$$.default.code(new Fq.KeywordCxt(o,$$.default,"additionalProperties"));const a=(0,S$.allSchemaProperties)(r);for(const d of a)o.definedProperties.add(d);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=zm.mergeEvaluated.props(t,(0,zm.toHash)(a),o.props));const s=a.filter(d=>!(0,zm.alwaysValidSchema)(o,r[d]));if(s.length===0)return;const c=t.name("valid");for(const d of s)l(d)?u(d):(t.if((0,S$.propertyInData)(t,i,d,o.opts.ownProperties)),u(d),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(c);function l(d){return o.opts.useDefaults&&!o.compositeRule&&r[d].default!==void 0}function u(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},c)}}};var Lq=Um.default=Mq;const Uq=Ut({__proto__:null,default:Lq},[Um]),zq=zt(Uq);var Gm={};Object.defineProperty(Gm,"__esModule",{value:!0});const k$=Bn,fh=ve,E$=Ne,C$=Ne,Gq={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,s=(0,k$.allSchemaProperties)(r),c=s.filter(g=>(0,E$.alwaysValidSchema)(o,r[g]));if(s.length===0||c.length===s.length&&(!o.opts.unevaluated||o.props===!0))return;const l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof fh.Name)&&(o.props=(0,C$.evaluatedPropsToName)(t,o.props));const{props:d}=o;f();function f(){for(const g of s)l&&h(g),o.allErrors?p(g):(t.var(u,!0),p(g),t.if(u))}function h(g){for(const v in l)new RegExp(g).test(v)&&(0,E$.checkStrictMode)(o,`property ${v} matches pattern ${g} (use allowMatchingProperties)`)}function p(g){t.forIn("key",n,v=>{t.if((0,fh._)`${(0,k$.usePattern)(e,g)}.test(${v})`,()=>{const _=c.includes(g);_||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:v,dataPropType:C$.Type.Str},u),o.opts.unevaluated&&d!==!0?t.assign((0,fh._)`${d}[${v}]`,!0):!_&&!o.allErrors&&t.if((0,fh.not)(u),()=>t.break())})})}}};var Vq=Gm.default=Gq;const Bq=Ut({__proto__:null,default:Vq},[Gm]),Hq=zt(Bq);var Vm={};Object.defineProperty(Vm,"__esModule",{value:!0});const qq=Ne,Kq={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,qq.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 Yq=Vm.default=Kq;const Xq=Ut({__proto__:null,default:Yq},[Vm]),Wq=zt(Xq);var Bm={};Object.defineProperty(Bm,"__esModule",{value:!0});const Jq=Bn,Qq={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Jq.validateUnion,error:{message:"must match a schema in anyOf"}};var Zq=Bm.default=Qq;const tK=Ut({__proto__:null,default:Zq},[Bm]),eK=zt(tK);var Hm={};Object.defineProperty(Hm,"__esModule",{value:!0});const ph=ve,rK=Ne,nK={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,ph._)`{passingSchemas: ${e.passing}}`},iK={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:nK,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,a=t.let("valid",!1),s=t.let("passing",null),c=t.name("_valid");e.setParams({passing:s}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,d)=>{let f;(0,rK.alwaysValidSchema)(i,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},c),d>0&&t.if((0,ph._)`${c} && ${a}`).assign(a,!1).assign(s,(0,ph._)`[${s}, ${d}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(s,d),f&&e.mergeEvaluated(f,ph.Name)})})}}};var oK=Hm.default=iK;const aK=Ut({__proto__:null,default:oK},[Hm]),sK=zt(aK);var qm={};Object.defineProperty(qm,"__esModule",{value:!0});const lK=Ne,cK={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,a)=>{if((0,lK.alwaysValidSchema)(n,o))return;const s=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(s)})}};var uK=qm.default=cK;const hK=Ut({__proto__:null,default:uK},[qm]),dK=zt(hK);var Km={};Object.defineProperty(Km,"__esModule",{value:!0});const mh=ve,P$=Ne,fK={message:({params:e})=>(0,mh.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,mh._)`{failingKeyword: ${e.ifClause}}`},pK={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:fK,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,P$.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=T$(n,"then"),o=T$(n,"else");if(!i&&!o)return;const a=t.let("valid",!0),s=t.name("_valid");if(c(),e.reset(),i&&o){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,l("then",u),l("else",u))}else i?t.if(s,l("then")):t.if((0,mh.not)(s),l("else"));e.pass(a,()=>e.error(!0));function c(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function l(u,d){return()=>{const f=e.subschema({keyword:u},s);t.assign(a,s),e.mergeValidEvaluated(f,a),d?t.assign(d,(0,mh._)`${u}`):e.setParams({ifClause:u})}}}};function T$(e,t){const r=e.schema[t];return r!==void 0&&!(0,P$.alwaysValidSchema)(e,r)}var mK=Km.default=pK;const gK=Ut({__proto__:null,default:mK},[Km]),vK=zt(gK);var Ym={};Object.defineProperty(Ym,"__esModule",{value:!0});const yK=Ne,_K={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,yK.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};var bK=Ym.default=_K;const wK=Ut({__proto__:null,default:bK},[Ym]),xK=zt(wK);Object.defineProperty(Nm,"__esModule",{value:!0});const SK=m$,$K=cq,kK=_$,EK=vq,CK=xq,PK=kq,TK=Aq,OK=x$,AK=zq,NK=Hq,RK=Wq,jK=eK,IK=sK,DK=dK,FK=vK,MK=xK;function LK(e=!1){const t=[RK.default,jK.default,IK.default,DK.default,FK.default,MK.default,TK.default,OK.default,PK.default,AK.default,NK.default];return e?t.push($K.default,EK.default):t.push(SK.default,kK.default),t.push(CK.default),t}var UK=Nm.default=LK;const zK=Ut({__proto__:null,default:UK},[Nm]),GK=zt(zK);var Xm={},Wm={};Object.defineProperty(Wm,"__esModule",{value:!0});const hr=ve,VK={message:({schemaCode:e})=>(0,hr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,hr._)`{format: ${e}}`},BK={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:VK,code(e,t){const{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:s}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:d}=s;if(!c.validateFormats)return;i?f():h();function f(){const p=r.scopeValue("formats",{ref:d.formats,code:c.code.formats}),g=r.const("fDef",(0,hr._)`${p}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,hr._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(v,(0,hr._)`${g}.type || "string"`).assign(_,(0,hr._)`${g}.validate`),()=>r.assign(v,(0,hr._)`"string"`).assign(_,g)),e.fail$data((0,hr.or)(y(),m()));function y(){return c.strictSchema===!1?hr.nil:(0,hr._)`${a} && !${_}`}function m(){const x=u.$async?(0,hr._)`(${g}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,hr._)`${_}(${n})`,N=(0,hr._)`(typeof ${_} == "function" ? ${x} : ${_}.test(${n}))`;return(0,hr._)`${_} && ${_} !== true && ${v} === ${t} && !${N}`}}function h(){const p=d.formats[o];if(!p){y();return}if(p===!0)return;const[g,v,_]=m(p);g===t&&e.pass(x());function y(){if(c.strictSchema===!1){d.logger.warn(N());return}throw new Error(N());function N(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function m(N){const $=N instanceof RegExp?(0,hr.regexpCode)(N):c.code.formats?(0,hr._)`${c.code.formats}${(0,hr.getProperty)(o)}`:void 0,A=r.scopeValue("formats",{key:o,ref:N,code:$});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,hr._)`${A}.validate`]:["string",N,A]}function x(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,hr._)`await ${_}(${n})`}return typeof v=="function"?(0,hr._)`${_}(${n})`:(0,hr._)`${_}.test(${n})`}}}};var HK=Wm.default=BK;const qK=Ut({__proto__:null,default:HK},[Wm]),KK=zt(qK);Object.defineProperty(Xm,"__esModule",{value:!0});const YK=KK,XK=[YK.default];var WK=Xm.default=XK;const JK=Ut({__proto__:null,default:WK},[Xm]),QK=zt(JK);var ta={};Object.defineProperty(ta,"__esModule",{value:!0});var O$=ta.contentVocabulary=A$=ta.metadataVocabulary=void 0,A$=ta.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];O$=ta.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];const ZK=Ut({__proto__:null,get contentVocabulary(){return O$},default:ta,get metadataVocabulary(){return A$}},[ta]),tY=zt(ZK);Object.defineProperty(fm,"__esModule",{value:!0});const eY=kB,rY=WH,nY=GK,iY=QK,N$=tY,oY=[eY.default,rY.default,(0,nY.default)(),iY.default,N$.metadataVocabulary,N$.contentVocabulary];var aY=fm.default=oY;const sY=Ut({__proto__:null,default:aY},[fm]),lY=zt(sY);var Jm={},Qm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(Qm);const cY=tn(Qm),uY=Ut({__proto__:null,default:cY},[Qm]),hY=zt(uY);Object.defineProperty(Jm,"__esModule",{value:!0});const Fa=ve,Zm=hY,R$=um,dY=Ne,fY={message:({params:{discrError:e,tagName:t}})=>e===Zm.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Fa._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},pY={keyword:"discriminator",type:"object",schemaType:"object",error:fY,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),l=t.const("tag",(0,Fa._)`${r}${(0,Fa.getProperty)(s)}`);t.if((0,Fa._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:Zm.DiscrError.Tag,tag:l,tagName:s})),e.ok(c);function u(){const h=f();t.if(!1);for(const p in h)t.elseIf((0,Fa._)`${l} === ${p}`),t.assign(c,d(h[p]));t.else(),e.error(!1,{discrError:Zm.DiscrError.Mapping,tag:l,tagName:s}),t.endIf()}function d(h){const p=t.name("valid"),g=e.subschema({keyword:"oneOf",schemaProp:h},p);return e.mergeEvaluated(g,Fa.Name),p}function f(){var h;const p={},g=_(i);let v=!0;for(let x=0;x<a.length;x++){let N=a[x];N!=null&&N.$ref&&!(0,dY.schemaHasRulesButRef)(N,o.self.RULES)&&(N=R$.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,N==null?void 0:N.$ref),N instanceof R$.SchemaEnv&&(N=N.schema));const $=(h=N==null?void 0:N.properties)===null||h===void 0?void 0:h[s];if(typeof $!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);v=v&&(g||_(N)),y($,x)}if(!v)throw new Error(`discriminator: "${s}" must be required`);return p;function _({required:x}){return Array.isArray(x)&&x.includes(s)}function y(x,N){if(x.const)m(x.const,N);else if(x.enum)for(const $ of x.enum)m($,N);else throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`)}function m(x,N){if(typeof x!="string"||x in p)throw new Error(`discriminator: "${s}" values must be unique strings`);p[x]=N}}}};var mY=Jm.default=pY;const gY=Ut({__proto__:null,default:mY},[Jm]),vY=zt(gY),yY="http://json-schema.org/draft-07/schema#",_Y="http://json-schema.org/draft-07/schema#",bY="Core schema meta-schema",wY={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:[]}},xY=["object","boolean"],SY={$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:"#"}},$Y={$schema:yY,$id:_Y,title:bY,definitions:wY,type:xY,properties:SY,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=uB,n=lY,i=vY,o=$Y,a=["/properties"],s="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,a):o;this.addMetaSchema(p,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s: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=ve;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 d=im;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=sm;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(z0,z0.exports);var j$=z0.exports;const I$=tn(j$),kY=Ut({__proto__:null,default:I$},[j$]);var tg={exports:{}};const EY=zt(kY);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=EY,n=ve,i=ql,o=Jl,a=Kl,s=Ii,c="errorMessage",l=new r.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},d=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,h=/^""\s*\+\s*|\s*\+\s*""$/g;function p(v){return{keyword:c,schemaType:["string","object"],post:!0,code(_){const{gen:y,data:m,schema:x,schemaValue:N,it:$}=_;if($.createErrors===!1)return;const A=x,R=n.strConcat(s.default.instancePath,$.errorPath);y.if(r._`${s.default.errors} > 0`,()=>{if(typeof A=="object"){const[k,b]=H(A);b&&Y(b),k&&J(k),nt(G(A))}const E=typeof A=="string"?A:A._;E&&rt(E),v.keepErrors||lt()});function G({properties:E,items:k}){const b={};if(E){b.props={};for(const C in E)b.props[C]=[]}if(k){b.items={};for(let C=0;C<k.length;C++)b.items[C]=[]}return b}function H(E){let k,b;for(const C in E){if(C==="properties"||C==="items")continue;const L=E[C];if(typeof L=="object"){k||(k={});const D=k[C]={};for(const V in L)D[V]=[]}else b||(b={}),b[C]=[]}return[k,b]}function Y(E){const k=y.const("emErrors",r.stringify(E)),b=y.const("templates",at(E,x));y.forOf("err",s.default.vErrors,V=>y.if(xt(V,k),()=>y.code(r._`${k}[${V}.keyword].push(${V})`).assign(r._`${V}.${l}`,!0)));const{singleError:C}=v;if(C){const V=y.let("message",r._`""`),K=y.let("paramsErrors",r._`[]`);L(et=>{y.if(V,()=>y.code(r._`${V} += ${typeof C=="string"?C:";"}`)),y.code(r._`${V} += ${D(et)}`),y.assign(K,r._`${K}.concat(${k}[${et}])`)}),a.reportError(_,{message:V,params:r._`{errors: ${K}}`})}else L(V=>a.reportError(_,{message:D(V),params:r._`{errors: ${k}[${V}]}`}));function L(V){y.forIn("key",k,K=>y.if(r._`${k}[${K}].length`,()=>V(K)))}function D(V){return r._`${V} in ${b} ? ${b}[${V}]() : ${N}[${V}]`}}function J(E){const k=y.const("emErrors",r.stringify(E)),b=[];for(const K in E)b.push([K,at(E[K],x[K])]);const C=y.const("templates",y.object(...b)),L=y.scopeValue("obj",{ref:u,code:r.stringify(u)}),D=y.let("emPropParams"),V=y.let("emParamsErrors");y.forOf("err",s.default.vErrors,K=>y.if(xt(K,k),()=>{y.assign(D,r._`${L}[${K}.keyword]`),y.assign(V,r._`${k}[${K}.keyword][${K}.params[${D}]]`),y.if(V,()=>y.code(r._`${V}.push(${K})`).assign(r._`${K}.${l}`,!0))})),y.forIn("key",k,K=>y.forIn("keyProp",r._`${k}[${K}]`,et=>{y.assign(V,r._`${k}[${K}][${et}]`),y.if(r._`${V}.length`,()=>{const it=y.const("tmpl",r._`${C}[${K}] && ${C}[${K}][${et}]`);a.reportError(_,{message:r._`${it} ? ${it}() : ${N}[${K}][${et}]`,params:r._`{errors: ${V}}`})})}))}function nt(E){const{props:k,items:b}=E;if(!k&&!b)return;const C=r._`typeof ${m} == "object"`,L=r._`Array.isArray(${m})`,D=y.let("emErrors");let V,K;const et=y.let("templates");k&&b?(V=y.let("emChildKwd"),y.if(C),y.if(L,()=>{it(b,x.items),y.assign(V,r.str`items`)},()=>{it(k,x.properties),y.assign(V,r.str`properties`)}),K=r._`[${V}]`):b?(y.if(L),it(b,x.items),K=r._`.items`):k&&(y.if(n.and(C,n.not(L))),it(k,x.properties),K=r._`.properties`),y.forOf("err",s.default.vErrors,ut=>Ct(ut,D,Tt=>y.code(r._`${D}[${Tt}].push(${ut})`).assign(r._`${ut}.${l}`,!0))),y.forIn("key",D,ut=>y.if(r._`${D}[${ut}].length`,()=>{a.reportError(_,{message:r._`${ut} in ${et} ? ${et}[${ut}]() : ${N}${K}[${ut}]`,params:r._`{errors: ${D}[${ut}]}`}),y.assign(r._`${s.default.vErrors}[${s.default.errors}-1].instancePath`,r._`${R} + "/" + ${ut}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),y.endIf();function it(ut,Tt){y.assign(D,r.stringify(ut)),y.assign(et,at(ut,Tt))}}function rt(E){const k=y.const("emErrs",r._`[]`);y.forOf("err",s.default.vErrors,b=>y.if($t(b),()=>y.code(r._`${k}.push(${b})`).assign(r._`${b}.${l}`,!0))),y.if(r._`${k}.length`,()=>a.reportError(_,{message:X(E),params:r._`{errors: ${k}}`}))}function lt(){const E=y.const("emErrs",r._`[]`);y.forOf("err",s.default.vErrors,k=>y.if(r._`!${k}.${l}`,()=>y.code(r._`${E}.push(${k})`))),y.assign(s.default.vErrors,E).assign(s.default.errors,r._`${E}.length`)}function xt(E,k){return n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,r._`${E}.instancePath === ${R}`,r._`${E}.keyword in ${k}`,r._`${E}.schemaPath.indexOf(${$.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${E}.schemaPath.slice(${$.errSchemaPath.length}))`)}function Ct(E,k,b){y.if(n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,r._`${E}.instancePath.indexOf(${R}) === 0`),()=>{const C=y.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),L=y.const("emMatches",r._`${C}.exec(${E}.instancePath.slice(${R}.length))`),D=y.const("emChild",r._`${L} && ${L}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);y.if(r._`${D} !== undefined && ${D} in ${k}`,()=>b(D))})}function $t(E){return n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,n.or(r._`${E}.instancePath === ${R}`,n.and(r._`${E}.instancePath.indexOf(${R}) === 0`,r._`${E}.instancePath[${R}.length] === "/"`)),r._`${E}.schemaPath.indexOf(${$.errSchemaPath}) === 0`,r._`${E}.schemaPath[${$.errSchemaPath}.length] === "/"`)}function at(E,k){const b=[];for(const C in E){const L=k[C];d.test(L)&&b.push([C,T(L)])}return y.object(...b)}function X(E){return d.test(E)?new i._Code(i.safeStringify(E).replace(f,(k,b)=>`" + JSON.stringify(${o.getData(b,$)}) + "`).replace(h,"")):r.stringify(E)}function T(E){return r._`function(){return ${X(E)}}`}},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 g=(v,_={})=>{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(_))};t.default=g,e.exports=g,e.exports.default=g})(tg,tg.exports);var CY=tg.exports;const PY=tn(CY),TY=new I$({allErrors:!0});PY(TY);const OY={class:"group"},AY=M.defineComponent({__name:"SwitchHeadlessUI",props:{init:{type:Boolean,default:!1},name:{},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:Ce.colorPrimary},colorBgOn:{default:Ce.colorGrayEF},colorBgOff:{default:Ce.colorGrayF5}},emits:["change"],setup(e,{emit:t}){const r=e;function n(f){const h=ZL("number",f);return{number:h.fullMatch?parseFloat(h.fullMatch):0,suffix:h.fullMatch?f.substring(h.matchIndex+h.fullMatch.length+1):""}}const i=n(r.width),o=n(r.height),a=n(r.padding),s=o.number-a.number*2+o.suffix,c=r.padding,l=i.number-n(c).number-n(s).number+i.suffix,u=t,d=M.ref(r.init);return M.watch(d,function(){u("change",d.value)}),(f,h)=>(M.openBlock(),M.createBlock(M.unref(GL),null,{default:M.withCtx(()=>[M.createElementVNode("div",OY,[M.createVNode(M.unref(VL),{modelValue:d.value,"onUpdate:modelValue":h[0]||(h[0]=p=>d.value=p),name:f.name,style:M.normalizeStyle(["padding: 0","margin: 0","border: 0","background-color: transparent"])},{default:M.withCtx(()=>[M.createElementVNode("div",{class:"switch",style:M.normalizeStyle(["width: "+r.width,"height: "+r.height,"background-color: "+(d.value?r.colorBgOn:r.colorBgOff)])},[M.createElementVNode("span",{class:"round",style:M.normalizeStyle(["width: "+s,"height: "+s,"background-color: "+(d.value?r.colorPrimary:M.unref(vs)(r.colorPrimary,30)),"transform: translate("+(d.value?l:M.unref(c))+", 0)"])},null,4)],4)]),_:1},8,["modelValue","name"])])]),_:1}))}}),NY=zn(AY,[["__scopeId","data-v-42bb4f09"]]),RY=["fill"],jY=["stroke"],IY=M.defineComponent({customOptions:{},__name:"RadioGroupHeadlessUI",props:{options:{},initIndex:{default:0},colorPrimary:{default:Ce.colorPrimary},colorBg:{default:Ce.colorGrayEE},fontSize:{default:Ce.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=M.ref(r.initIndex);return M.watch(i,function(){n("change",r.options[i.value])}),(o,a)=>(M.openBlock(),M.createBlock(M.unref(ML),{modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=s=>i.value=s),as:"div",class:"wrap"},{default:M.withCtx(()=>[(M.openBlock(!0),M.createElementBlock(M.Fragment,null,M.renderList(o.options,(s,c)=>(M.openBlock(),M.createBlock(M.unref(UL),{as:"span",class:"item",key:c,value:c,style:M.normalizeStyle(["margin-left:"+(c>0?r.itemPadding:0)])},{default:M.withCtx(({active:l,checked:u})=>[M.renderSlot(o.$slots,"default",{label:s,index:c,active:l,checked:u},()=>[(M.openBlock(),M.createElementBlock("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:M.normalizeStyle(["margin-right:"+r.labelPadding,"width:"+r.itemWidth])},[M.createElementVNode("circle",{cx:"12",cy:"12",r:"12",fill:r.colorBg,"fill-opacity":"0.8"},null,8,RY),M.withDirectives(M.createElementVNode("path",{d:"M7 13l3 3 7-7",stroke:r.colorPrimary,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,jY),[[M.vShow,u||i.value==c]])],4)),M.createVNode(M.unref(zL),{as:"span",style:M.normalizeStyle(["font-size:"+r.fontSize])},{default:M.withCtx(()=>[M.createTextVNode(M.toDisplayString(s),1)]),_:2},1032,["style"])],!0)]),_:2},1032,["value","style"]))),128))]),_:3},8,["modelValue"]))}}),DY=zn(IY,[["__scopeId","data-v-d04f0028"]]),FY={class:"wrap"},MY=M.defineComponent({customOptions:{Button:ao},__name:"TabHeadlessUI",props:{tabs:{},initIndex:{default:0},tabMinWidth:{default:"10em"},colorPrimary:{default:Ce.colorPrimary},colorBgOff:{default:Ce.colorGrayF5},colorFontOn:{default:Ce.colorGrayFF},colorFontOff:{default:Ce.colorGray3}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=M.ref(r.initIndex);function o(a){i.value=a,n("change",a)}return(a,s)=>(M.openBlock(),M.createElementBlock("div",FY,[M.createVNode(M.unref(KL),{selectedIndex:i.value,onChange:o},{default:M.withCtx(()=>[M.createVNode(M.unref(YL),{class:"tablist"},{default:M.withCtx(()=>[(M.openBlock(!0),M.createElementBlock(M.Fragment,null,M.renderList(a.tabs,c=>(M.openBlock(),M.createBlock(M.unref(XL),{as:"div",key:c,class:"tab"},{default:M.withCtx(({selected:l})=>[M.renderSlot(a.$slots,`${c}-tab`,{selected:l},()=>[M.createVNode(ao,{borderColor:l?r.colorPrimary:r.colorBgOff,bgColor:l?r.colorPrimary:r.colorBgOff,fontColor:l?r.colorFontOn:r.colorFontOff,borderRadius:"0",style:M.normalizeStyle(["min-width:"+r.tabMinWidth])},{default:M.withCtx(()=>[M.createTextVNode(M.toDisplayString(c),1)]),_:2},1032,["borderColor","bgColor","fontColor","style"])],!0)]),_:2},1024))),128))]),_:3})]),_:3},8,["selectedIndex"])]))}}),LY=zn(MY,[["__scopeId","data-v-c02b38b7"]]);ir.Button=ao,ir.Dialog=o0,ir.DialogLoading=WM,ir.Icon=Ho,ir.MobileLayout=LM,ir.RadioGroupHeadlessUI=DY,ir.Select=ZM,ir.SelectHeadlessUI=WL,ir.SwitchHeadlessUI=NY,ir.TabHeadlessUI=LY,Object.defineProperty(ir,Symbol.toStringTag,{value:"Module"})});
|
|
44
|
+
})`}static safeHtml(e,n="encode"){const s={"&":"&","<":"<",">":">",""":'"',"'":"'"};for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e=e.replace(new RegExp(n=="decode"?o:s[o],"g"),n=="decode"?s[o]:o));return e}static loadScript(e,n=()=>{},s=(o,r,i,a,c)=>{}){const o=document.createElement("script");o.type="text/javascript",o.src=e,o.async=!1,document.body.appendChild(o),o.onload=n,o.onerror=s}static loadStyle(e){const n=document.createElement("link");n.rel="stylesheet",n.href=e,document.head.insertBefore(n,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}static waitForStyleSheetsLoaded=()=>new Promise(e=>{const n=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let s=document.styleSheets.length??0;const o=()=>s>=n.length?(e(),!0):!1;o()||n.forEach(r=>{r.onload=()=>{s+=1,o()}})});static lazyloadImages(){const e=document.getElementsByTagName("img"),n=kr().height;let s=0;return()=>{for(let o=s;o<e.length;o++)e[o].getBoundingClientRect().top<n&&(e[o].src=e[o].getAttribute("data-src")??"",s=o+1)}}static iframePostMessage(e,n="http://test.com/localstorage.html"){const s=document.createElement("iframe");s.src=n,document.body.append(s),setTimeout(function(){s.contentWindow?.postMessage(e,n)},4e3),setTimeout(function(){s.remove()},6e3)}static getTextWidth=(e,n,s=400)=>{const o=document.createElement("span");o.style.visibility="hidden",o.style.padding="0",o.style.whiteSpace="nowrap",o.style.overflow="visible",o.style.fontSize=n>12?n+"px":"12px",o.style.fontWeight=s.toString(),o.innerText=e,document.body.appendChild(o);const r=o.offsetWidth;return document.body.removeChild(o),r};static getFixedWidthText=(e,n,s=12,o=400,r=!0)=>{let i="",a="",c="";if(!e||n<s||typeof e!="string")return i;const l=e.split(""),f=document.createElement("span");f.style.visibility="hidden",f.style.padding="0",f.style.whiteSpace="nowrap",f.style.overflow="visible",f.style.fontSize=s>12?s+"px":"12px",f.style.fontWeight=o.toString(),document.body.appendChild(f);for(let d=0,u=l.length;d<u;d++){const p=l[d];if(a=c,c+=p,i=c,f.innerText=c,f.offsetWidth>n){r?i=a+"...":i=a;break}}return document.body.removeChild(f),i};static getLocation(){return new Promise((e,n)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(s=>{e(s.coords)}):n("Geolocation is not supported by this browser")})}static vibrate(e=200){"vibrate"in navigator?window.navigator.vibrate(e):console.error("Your device is not support vibrate on this browser.")}static copyToClipboard=e=>navigator.clipboard.writeText(e);static getSelectedText=()=>window.getSelection()?.toString();static siblings=e=>Array.prototype.slice.call(e.parentNode?.children).filter(n=>n!==e);static isElementFocus=e=>e===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static addDebuggerOnBeforeUnload=()=>{window.addEventListener("beforeunload",()=>{debugger})}}function ve(t,e=document){return new U(t,e)}class U{context;nodes;prefixs=["moz","o","ms","webkit"];constructor(e,n=document){if(this.context=n,typeof e=="string"?this.nodes=Array.from(this.context.querySelectorAll(e)):e instanceof HTMLElement?this.nodes=[e]:this.nodes=e,this.nodes.length===0)throw new Error(`can not find ${e}`);this.each((s,o)=>{s instanceof HTMLInputElement&&s.addEventListener("change",r=>{this.changeRadioChecked(r.currentTarget.value)}),s instanceof HTMLSelectElement&&s.addEventListener("change",r=>{this.changeSelectSelected(r.currentTarget.value)})})}get(e){return e<0&&(e=this.nodes.length+e),this.nodes[e]}concat(e){return new U(this.nodes.concat(e.nodes),this.context)}then(e){return e(this)??this}each(e){return this.nodes.forEach((n,s)=>{e(n,s)}),this}_save(e,n,s){e._mQuery||(e._mQuery={}),Array.isArray(s)?(e._mQuery[n]=e._mQuery[n]??[],e._mQuery[n].push(...s)):s!=null?e._mQuery[n]=s:delete e._mQuery[n]}on(e,n,s){return this.nodes.forEach(o=>{this._save(o,"events",[{event:e,callback:n,options:s}]),o.addEventListener(e,n,s)}),this}off(e,n,s){return this.nodes.forEach(o=>{o.removeEventListener(e,n,s)}),this}dispatchEvent(e,n){let s;const o=["click","dblclick","mousedown","mouseup","mousemove"],r=["keydown","keyup","keypress"];return typeof e=="string"?o.includes(e)?s=new MouseEvent(e,n):r.includes(e)?s=new KeyboardEvent(e,n):s=new Event(e,n):s=e,this.nodes.forEach(i=>{i.dispatchEvent(s)}),this}change(){return this.dispatchEvent("change")}click(){return this.dispatchEvent("click")}static hasEvent(e,n){return"on"+n in e}static _fragment(e){const n=document.createElement("template");return n.innerHTML=e,n.content.childNodes.forEach(s=>{const o=U._scriptConvert(s);o!=s&&n.content.replaceChild(o,s)}),n.content}static _scriptConvert(e){const n=s=>{const r=s.ownerDocument.createElement("script");r.text=s.text;const i=s.attributes;for(let a=0;a<i.length;a++)r.setAttribute(i[a].name,i[a].value);return r};return e.tagName=="SCRIPT"&&(e=n(e)),e.querySelectorAll&&e.querySelectorAll("script").forEach(s=>{s.parentNode?.replaceChild(n(s),s)}),e}static _fixProp(e){const n={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return n[e]?n[e]:e}static isSVG(e){return(e||document.documentElement).nodeName.toLowerCase()==="svg"}static createElement(e){return U.isSVG()?document.createElementNS.call(document,"http://www.w3.org/2000/svg",e):document.createElement.call(document,e)}static createTextNode(e){return document.createTextNode.call(document,e)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}_insert(e,n){const s=this.nodes.length;if(s<1)return this;const o=[];if(typeof n=="string")this.nodes.forEach(r=>{const i=U._fragment(n);o.push(...i.children),r[e](i)});else if(n instanceof HTMLElement)this.each(r=>{const i=s===1?n:U._fragment(n.outerHTML);o.push(...s===1?[n]:i.children),r[e](i)}),s>1&&n.remove();else if(n instanceof U){const r=s==1;n.each(i=>{this.each(a=>{const c=r?i:i.cloneNode(!0);o.push(c),a[e](c),U._scriptConvert(c)})}),r||n.remove()}return e=="replaceWith"&&(this.nodes=o),this}append(e){return this._insert("append",e)}prepend(e){return this._insert("prepend",e)}after(e){return this._insert("after",e)}before(e){return this._insert("before",e)}replace(e){return this._insert("replaceWith",e)}remove(){return this.nodes.forEach(e=>{e.remove()}),this}static removeChild(e){e.parentElement?.removeChild(e)}find(e){const n=[];return this.nodes.forEach(s=>{n.push(...Array.from(s.querySelectorAll(e)))}),new U(n,this.context)}filter(e){const n=[];return this.nodes.forEach(s=>{(s===e||typeof e=="string"&&s.matches&&s.matches(e))&&n.push(s)}),new U(n,this.context)}next(){const e=[];return this.nodes.forEach(n=>{const s=n.nextElementSibling;s&&e.push(s)}),new U(e,this.context)}prev(){const e=[];return this.nodes.forEach(n=>{const s=n.previousElementSibling;s&&e.push(s)}),new U(e,this.context)}closest(e){const n=[];return this.nodes.forEach(s=>{const o=s.closest(e);o&&n.push(o)}),new U(n,this.context)}shadow(e){const n=[];this.nodes.forEach(o=>{o.shadowRoot&&n.push(o.shadowRoot)});const s=new U(n,this.context);return e!==void 0?s.find(e):s}parent(e){return this.parents(e,!0)}parents(e,n=!1){const s=[],o=i=>{if(s.indexOf(i)==-1&&s.push(i),!n&&i.parentElement)return o(i.parentElement)};this.nodes.forEach(i=>{i.parentElement&&o(i.parentElement)});const r=new U(s,this.context);return e!==void 0?r.filter(e):r}static getComputedStyle(e,n,s){let o;const r=e.style.getPropertyPriority(n);return"getComputedStyle"in window?(o=getComputedStyle.call(window,e,s),o=o.getPropertyValue(n)):o=e.style.getPropertyValue(n),o+(r?"!"+r:"")}css(e,n){if((e===void 0||typeof e=="string")&&n===void 0){const s=this.nodes[0].style;if(typeof e=="string"){const o=s.getPropertyPriority(e),r=s.getPropertyValue(e).trim();return r?r+(o?"!"+o:""):U.getComputedStyle(this.nodes[0],e)}else{const o=Object.fromEntries(this.nodes[0].style.cssText.split(";").filter(r=>!!r).map(r=>r.split(":").map(i=>i.trim())));return Object.assign(o,getComputedStyle.call(window,this.nodes[0])),o}}else{let s={};return typeof e=="string"&&n!==void 0?s[e]=n:typeof e=="object"&&(s=e),this.nodes.forEach(o=>{Object.keys(s).forEach(r=>{const i=String(s[r]).toLowerCase().includes("!important")?"important":"";o.style.setProperty(r,String(s[r]).replace(/!important/i,""),i)})}),this}}addClass(e){return this.toggleClass(e,!0)}removeClass(e){return this.toggleClass(e,!1)}toggleClass(e,n){const s=e.split(/[,\s]+/);return this.nodes.forEach(o=>{s.forEach(r=>{if(r.trim()!==""){let i="toggle";n!==void 0&&(i=n?"add":"remove"),o.classList[i](r.trim())}})}),this}hasClass(e){const n=e.split(/[,\s]+/);let s=!1;return this.nodes.forEach(o=>{s=s||n.every(r=>Array.from(o.classList??[]).includes(r.trim()))}),s}attr(e,n){if(n===void 0&&typeof e=="string")return this.nodes[0].getAttribute(e);let s={};return typeof e=="object"?s=e:n!==void 0&&(s[e]=n),this.nodes.forEach(o=>{Object.entries(s).forEach(([r,i])=>{o.setAttribute(r,i)})}),this}removeAttr(e){const n=e.split(/[,\s]+/);return this.nodes.forEach(s=>{n.forEach(o=>{s.removeAttribute(o)})}),this}prop(e,n){if(n===void 0&&typeof e=="string")return this.nodes[0][e];{let s={};return typeof e=="object"?s=e:typeof e=="string"&&n!==void 0&&(s[e]=n),this.nodes.forEach(o=>{Object.entries(s).forEach(([r,i])=>{const a=U._fixProp(r);o[a]=i,a=="innerHTML"&&U._scriptConvert(o)})}),this}}removeProp(e){const n=e.split(/[,\s]+/);return this.nodes.forEach(s=>{n.forEach(o=>{delete s[U._fixProp(o)]})}),this}changeSelectSelected(e){this.nodes.forEach(n=>{if(n instanceof HTMLSelectElement){const s=n.options;for(let o=0,r=s.length;o<r;o++)s[o].value==e?s[o].selected=!0:s[o].selected=!1}})}changeRadioChecked(e){this.nodes.forEach(n=>{n instanceof HTMLInputElement&&(n.value==e?n.checked=!0:n.checked=!1)})}data(e,n){if(typeof e=="string"&&e.indexOf("-")!=-1)throw new Error(`Key "${e}" contains "-" (dash). Dashes are not allowed in property names. Use camelCase instead.`);if((typeof e=="string"||e===void 0)&&n===void 0){const s=Object.assign({},this.nodes[0].dataset);return Object.keys(s).forEach(o=>{if(s[o]?.startsWith("[")||s[o]?.startsWith("{"))try{s[o]=JSON.parse(s[o]??"")}catch{}}),typeof e=="string"?s[e]:s}else{let s={};return typeof e=="object"?s=e:typeof e=="string"&&(s[e]=n),this.nodes.forEach(o=>{Object.entries(s).forEach(([r,i])=>{i!=null?o.dataset[r]=i instanceof Object?JSON.stringify(i):i:delete o.dataset[r]})}),this}}removeData(e){const n=e.split(/[,\s]+/);return this.nodes.forEach(s=>{n.forEach(o=>{delete s.dataset[o]})}),this}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}toggle(e){return this.nodes.forEach(n=>{const s=n.style.display,o=getComputedStyle(n).display,r=s=="none"||o=="none";if(r&&(e===void 0||e===!0)){const i=n instanceof HTMLTableRowElement?"table-row":n instanceof HTMLTableCellElement?"table-cell":"block";n.style.display=n._mQuery?.prevDisplay??(s==o&&o!="none"?"":i),this._save(n,"prevDisplay",null)}!r&&(e==null||e===!1)&&(o!="none"&&this._save(n,"prevDisplay",o),n.style.setProperty("display","none"))})}empty(){return this.html("")}html(e){return e instanceof HTMLElement?this.empty().append(e.innerHTML):this.prop("innerHTML",e)}text(e){return this.prop("textContent",e)}val(e){return this.prop("value",e)}}function Qn(t){return t*Math.PI/180}function Or(t){return t*180/Math.PI}function Gc(t,e,n,s){const o=t-n,r=e-s;return Math.sqrt(o*o+r*r)}function Pr(t,e,n,s){const o=n-t,r=s-e;return Math.atan2(r,o)}function es(t){return t[0]*t[0]+t[1]*t[1]}function Nr(t){const e=Math.sqrt(es(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}function Uc(t,e,n,s,o=10){if(Math.abs(n-t)<o&&Math.abs(s-e)<o)return"no";const r=Or(Pr(t,e,n,s));return r>=-135&&r<=-45?"up":r>45&&r<135?"down":r>=135&&r<=180||r>=-180&&r<-135?"left":r>=-45&&r<=45?"right":"no"}class yt{x;y;vx;vy;ax;ay;mass;constructor(e){this.x=e.x,this.y=e.y,this.vx=e?.vx||0,this.vy=e?.vy||0,this.ax=e?.ax||0,this.ay=e?.ay||0,this.mass=e?.mass||0}fromAngleAndLength(e,n){return new yt({x:Math.cos(e)*n,y:Math.sin(e)*n})}distanceTo(e){return Gc(this.x,this.y,e.x,e.y)}angleTo(e){return Pr(this.x,this.y,e.x,e.y)}followTo(e,n=3){const s=this.angleTo(e),{x:o,y:r}=this.fromAngleAndLength(s,n);this.vx=o,this.vy=r,this.nextFrame()}followAccelerationTo(e,n=.05){const s=this.angleTo(e),{x:o,y:r}=this.fromAngleAndLength(s,n);this.ax=o,this.ay=r,this.nextFrame()}nextFrame(e){const n=e?.gravity??0,s=e?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=n,s>0){const o=Math.atan2(this.vy,this.vx);let r=Math.sqrt(this.vx*this.vx+this.vy*this.vy);r>s?r-=s:r=0,this.vx=Math.cos(o)*r,this.vy=Math.sin(o)*r}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(e,n){const s=n?.gravity??0,o=n?.friction??1,r=n?.easing??.05,i=e.x-this.x,a=e.y-this.y;this.vx=i*r,this.vy=a*r,this.vy+=s,this.vx*=o,this.vy*=o,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(e,n){const s=n?.gravity??0,o=n?.friction??.95,r=n?.spring??.03;(Array.isArray(e)?e:[e]).forEach(a=>{const c=a.x-this.x,l=a.y-this.y,f=c*r,d=l*r;this.vx+=f,this.vy+=d}),this.vy+=s,this.vx*=o,this.vy*=o,this.x+=this.vx,this.y+=this.vy}nextFrameSpringConnect(e,n){const s=n?.gravity??0,o=n?.friction??.95,r=n?.spring??.03,i=n?.springLength??100,a=this.angleTo(e);this.nextFrameSpringTo(new yt({x:e.x-Math.cos(a)*i,y:e.y-Math.sin(a)*i}),{spring:r,friction:o,gravity:s})}}class Kc extends yt{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 Zt extends yt{radius;constructor(e){super(e),this.radius=e?.radius??0}toSVGPathData(){return[this.x,this.y]}toSVGPathD(){return`${this.x},${this.y}`}setX(e){this.x=e}setY(e){this.y=e}setXY(e,n){this.x=e,this.y=n}eq(e){return this.x===e.x&&this.y===e.y}midPointBtw(e){return new Zt({x:this.x+(e.x-this.x)/2,y:this.y+(e.y-this.y)/2})}toArray(){return[this.x,this.y]}clone(e){this.setXY(e.x,e.y)}getBounds(){return new Kc({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}nextFrameCollisionTo(e){const n=e.x-this.x,s=e.y-this.y;if(Math.sqrt(n*n+s*s)<this.radius+e.radius){const i=Math.atan2(s,n),a=Math.sin(i),c=Math.cos(i),l={x:0,y:0},f=r(n,s,a,c,!0),d=r(this.vx,this.vy,a,c,!0),u=r(e.vx,e.vy,a,c,!0),p=d.x-u.x;d.x=((this.mass-e.mass)*d.x+2*e.mass*u.x)/(this.mass+e.mass),u.x=p+d.x;const g=Math.abs(d.x)+Math.abs(u.x),_=this.radius+e.radius-Math.abs(l.x-f.x);l.x+=d.x/g*_,f.x+=u.x/g*_;const v=r(l.x,l.y,a,c,!1),S=r(f.x,f.y,a,c,!1);e.x=this.x+S.x,e.y=this.y+S.y,this.x=this.x+v.x,this.y=this.y+v.y;const m=r(d.x,d.y,a,c,!1),b=r(u.x,u.y,a,c,!1);this.vx=m.x,this.vy=m.y,e.vx=b.x,e.vy=b.y}function r(i,a,c,l,f=!1){return{x:f?i*l+a*c:i*l-a*c,y:f?a*l-i*c:a*l+i*c}}}nextFrameBounce(e){const n=e.left,s=e.top,o=e.right,r=e.bottom,i=e?.bounce??-1;this.x+this.radius>o?(this.x=o-this.radius,this.vx*=i):this.x-this.radius<n&&(this.x=n+this.radius,this.vx*=i),this.y+this.radius>r?(this.y=r-this.radius,this.vy*=i):this.y-this.radius<s&&(this.y=s+this.radius,this.vy*=i)}}class ts extends Zt{startPoint;startTime;slideDetectDuration=300;slideDetectDistance=10;directionDebounceDuration=100;getDirectionDebounce=e=>Ic((n,s,o,r)=>e(Uc(n,s,o,r)),this.directionDebounceDuration);constructor(e={x:0,y:0}){super(e),this.startPoint=new Zt({x:this.x,y:this.y}),this.startTime=new Date}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}capture(e,n={}){return ts.isTouchEnabled()?this.capturePointer(e,n):this.captureMouse(e,n)}captureMouse(e,n={}){const s=c=>{const l=ge(e,c);this.x=l.x,this.y=l.y,document.addEventListener("mousemove",a,!1),document.addEventListener("mouseup",o,!1),e.style.userSelect="none",e.style.webkitUserSelect="",this.startPoint.x=this.x,this.startPoint.y=this.y,this.startTime=new Date,n.start?.(this)},o=c=>{const l=ge(e,c);this.x=l.x,this.y=l.y,document.removeEventListener("mouseup",o,!1),document.removeEventListener("mousemove",a,!1),e.style.userSelect="",e.style.webkitUserSelect="",n.end?.(this)},r=this.getDirectionDebounce(c=>{new Date().getTime()-this.startTime.getTime()>this.slideDetectDuration||(c=="left"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance?n.slideLeft?.(this.x-this.startPoint.x,this.y-this.startPoint.y):c=="right"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance&&n.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y))}),i=c=>{!c.target||e==c.target||e.contains(c.target)||n.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y)},a=c=>{const l=ge(e,c);this.x=l.x,this.y=l.y,r(this.startPoint.x,this.startPoint.y,this.x,this.y),n.move?.(this)};return e.addEventListener("mousedown",s,!1),document.addEventListener("mousedown",i,!1),()=>{e.removeEventListener("mousedown",s,!1),document.removeEventListener("mousedown",i,!1)}}captureTouch(e,n={}){const s=c=>{c.preventDefault();const l=c.changedTouches[0],f=ge(e,l);this.x=f.x,this.y=f.y,this.startPoint.x=this.x,this.startPoint.y=this.y,this.startTime=new Date,n.start?.(this)},o=c=>{const l=c.changedTouches[0],f=ge(e,l);this.x=f.x,this.y=f.y,n.end?.(this)},r=this.getDirectionDebounce(c=>{new Date().getTime()-this.startTime.getTime()>this.slideDetectDuration||(c=="left"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance?n.slideLeft?.(this.x-this.startPoint.x,this.y-this.startPoint.y):c=="right"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance&&n.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y))}),i=c=>{!c.target||e==c.target||e.contains(c.target)||n.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y)},a=c=>{const l=c.changedTouches[0],f=ge(e,l);this.x=f.x,this.y=f.y,r(this.startPoint.x,this.startPoint.y,this.x,this.y),n.move?.(this)};return e.addEventListener("touchstart",s,!1),e.addEventListener("touchend",o,!1),e.addEventListener("touchcancel",o,!1),e.addEventListener("touchmove",a,!1),document.addEventListener("touchstart",i,!1),()=>{e.removeEventListener("touchstart",s,!1),e.removeEventListener("touchend",o,!1),e.removeEventListener("touchcancel",o,!1),e.removeEventListener("touchmove",a,!1),document.removeEventListener("touchstart",i,!1)}}capturePointer(e,n={}){const s=c=>{const l=ge(e,c);this.x=l.x,this.y=l.y,e.setPointerCapture(c.pointerId),e.style.userSelect="none",e.style.webkitUserSelect="",this.startPoint.x=this.x,this.startPoint.y=this.y,this.startTime=new Date,n.start?.(this)},o=c=>{const l=ge(e,c);this.x=l.x,this.y=l.y,e.style.userSelect="",e.style.webkitUserSelect="",n.end?.(this)},r=this.getDirectionDebounce(c=>{new Date().getTime()-this.startTime.getTime()>this.slideDetectDuration||(c=="left"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance?n.slideLeft?.(this.x-this.startPoint.x,this.y-this.startPoint.y):c=="right"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance&&n.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y))}),i=c=>{!c.target||e==c.target||e.contains(c.target)||n.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y)},a=c=>{const l=ge(e,c);this.x=l.x,this.y=l.y,r(this.startPoint.x,this.startPoint.y,this.x,this.y),n.move?.(this)};return e.addEventListener("pointerdown",s,!1),e.addEventListener("pointerup",o,!1),e.addEventListener("pointercancel",o,!1),e.addEventListener("pointermove",a,!1),document.addEventListener("pointerdown",i,!1),()=>{e.removeEventListener("pointerdown",s,!1),e.removeEventListener("pointerup",o,!1),e.removeEventListener("pointercancel",o,!1),e.removeEventListener("pointermove",a,!1),document.removeEventListener("pointerdown",i,!1)}}static clickEvent=typeof document<"u"&&document.ontouchstart?"touchstart":"click";static getMouseButton(e){if(document.implementation.hasFeature("MouseEvents","2.0"))return e.button;switch(e.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}const Lr=[1,0,0,1,0,0],$r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class de{value;matrix3d;isEverTo3d=!1;_prev_rotatex=0;_prev_rotatey=0;constructor(e=Lr){this.value=Array.from(e),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(Lr),this.matrix3d=this.toMatrix3D(),this}transformPoint(e,n,s=0,o=0){const r=e-s,i=n-o;return e=r*this.value[0]+i*this.value[2]+this.value[4],n=r*this.value[1]+i*this.value[3]+this.value[5],[e+s,n+o]}fromString(e){const n=dr("number",e);return n.length===6?n.forEach((s,o)=>{s.fullMatch&&(this.value[o]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix3D(e=this.matrix3d){const n=[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 e?(e.value=n,e):new Ge(n)}offset(e=0,n=0){return[e-this.value[4],n-this.value[5]]}clone(){return new de(this.value)}multiply(e){const n=this.value;let s;e instanceof de?s=e.value:s=e;const o=n[0]*s[0]+n[2]*s[1],r=n[1]*s[0]+n[3]*s[1],i=n[0]*s[2]+n[2]*s[3],a=n[1]*s[2]+n[3]*s[3],c=n[0]*s[4]+n[2]*s[5]+n[4],l=n[1]*s[4]+n[3]*s[5]+n[5];return n[0]=o,n[1]=r,n[2]=i,n[3]=a,n[4]=c,n[5]=l,this}inverse(){const e=new de(this.value),n=e.value,s=1/(n[0]*n[3]-n[1]*n[2]),o=n[3]*s,r=-n[1]*s,i=-n[2]*s,a=n[0]*s,c=s*(n[2]*n[5]-n[3]*n[4]),l=s*(n[1]*n[4]-n[0]*n[5]);return n[0]=o,n[1]=r,n[2]=i,n[3]=a,n[4]=c,n[5]=l,e}translate(e,n){return this.matrix3d.translate(e,n,0),this.multiply([1,0,0,1,e,n])}translateTo(e,n){const s=this.offset(e,n);return this.translate(s[0],s[1])}translateX(e){return this.translate(e,0)}translateY(e){return this.translate(0,e)}translateZ(e){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,e)}translate3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.translate(e,n,s)}rotate(e,n=0,s=0){const o=Qn(e),r=+Math.cos(o).toFixed(9),i=+Math.sin(o).toFixed(9);return this.multiply([r,i,-i,r,n,s]),this.translate(-n,-s),this}rotateX(e){return this._prev_rotatex=e,this.isEverTo3d=!0,this.matrix3d.rotate("x",e)}rotateXTo(e){return this.rotateX(e-this._prev_rotatex)}rotateY(e){return this._prev_rotatey=e,this.isEverTo3d=!0,this.matrix3d.rotate("y",e)}rotateYTo(e){return this.rotateY(e-this._prev_rotatey)}rotateZ(e){return this.isEverTo3d=!0,this.matrix3d.rotate("z",e)}rotate3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e).rotate("y",n).rotate("z",s)}scale(e,n=e,s=0,o=0){return this.matrix3d.scale(e,n,1),this.translate(s,o),this.multiply([e,0,0,n,0,0]),this.translate(-s,-o),this}scaleTo(e,n=e){return this.scale(e/this.value[0],n/this.value[3]),this}scaleX(e){return this.scale(e,1)}scaleY(e){return this.scale(1,e)}scaleZ(e){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,e)}scale3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.scale(e,n,s)}skew(e,n=0){const s=e*Math.PI/180,o=n*Math.PI/180,r=Math.tan(s),i=Math.tan(o);return this.multiply([1,i,r,1,0,0])}skewX(e){return this.skew(e,0)}skewY(e){return this.skew(0,e)}skewZ(e){return this}skew3d(e,n,s){return this}split(){const e={dx:0,dy:0,scalex:1,scaley:1,shear:1,rotate:0,isSimple:!0,isSuperSimple:!0,noRotation:!1};e.dx=this.value[4],e.dy=this.value[5];const n=[[this.value[0],this.value[2]],[this.value[1],this.value[3]]];e.scalex=Math.sqrt(es(n[0])),Nr(n[0]),e.shear=n[0][0]*n[1][0]+n[0][1]*n[1][1],n[1]=[n[1][0]-n[0][0]*e.shear,n[1][1]-n[0][1]*e.shear],e.scaley=Math.sqrt(es(n[1])),Nr(n[1]),e.shear/=e.scaley;const s=-n[0][1],o=n[1][1];return o<0?(e.rotate=Or(Math.acos(o)),s<0&&(e.rotate=360-e.rotate)):e.rotate=Qn(Math.asin(s)),e.isSimple=!+e.shear.toFixed(9)&&(e.scalex.toFixed(9)==e.scaley.toFixed(9)||!e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e}toTransformString(){const e=this.split();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx&&e.dy?"t"+[e.dx,e.dy]:"")+(e.scalex!=1||e.scaley!=1?"s"+[e.scalex,e.scaley,0,0]:"")+(e.rotate?"r"+[e.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(e=>fr(e,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 Ge{value;constructor(e=$r){this.value=Array.from(e)}unit(){return this.value=Array.from($r),this}fromString(e){const n=dr("number",e);return n.length===16?n.forEach((s,o)=>{s.fullMatch&&(this.value[o]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix(e){const n=[this.value[0],this.value[1],this.value[4],this.value[5],this.value[12],this.value[13]];return e?(e.value=n,e):new de(n)}multiplyMatrix(e){const n=this.value[0],s=this.value[1],o=this.value[2],r=this.value[3],i=this.value[4],a=this.value[5],c=this.value[6],l=this.value[7],f=this.value[8],d=this.value[9],u=this.value[10],p=this.value[11],g=this.value[12],_=this.value[13],v=this.value[14],S=this.value[15],m=e.value[0],b=e.value[1],y=e.value[2],A=e.value[3],w=m*n+b*i+y*f+A*g,x=m*s+b*a+y*d+A*_,Z=m*o+b*c+y*u+A*v,fe=m*r+b*l+y*p+A*S;return new de([w,x,Z,fe,0,0])}multiply(e){const n=new de([e.value[0],e.value[1],e.value[2],e.value[3],0,0]),s=new de([e.value[4],e.value[5],e.value[6],e.value[7],0,0]),o=new de([e.value[8],e.value[9],e.value[10],e.value[11],0,0]),r=new de([e.value[12],e.value[13],e.value[14],e.value[15],0,0]),i=this.multiplyMatrix(n),a=this.multiplyMatrix(s),c=this.multiplyMatrix(o),l=this.multiplyMatrix(r);return this.value[0]=i.value[0],this.value[1]=i.value[1],this.value[2]=i.value[2],this.value[3]=i.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(e=0,n=0,s=0){return this.multiply(new Ge([1,0,0,0,0,1,0,0,0,0,1,0,e,n,s,1]))}scale(e=1,n=1,s=1){return this.multiply(new Ge([e,0,0,0,0,n,0,0,0,0,s,0,0,0,0,1]))}rotate(e,n){const s=Qn(n),o=Math.sin,r=Math.cos;let i;switch(e){case"x":i=[1,0,0,0,0,r(s),o(s),0,0,-o(s),r(s),0,0,0,0,1];break;case"y":i=[r(s),0,-o(s),0,0,1,0,0,o(s),0,r(s),0,0,0,0,1];break;case"z":i=[r(s),o(s),0,0,-o(s),r(s),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new Ge(i))}toString(){return`matrix3d(${this.value.map(e=>fr(e,6)).join(",")})`}}function Ir(t){const e=new de;return t.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(n,s,o){o.indexOf(",")>=0?o=o.split(/\s*,\s*/):o=o.split(/\s+/);const r=[];for(let i=0,a=o.length;i<a;i++)o[i].trim()&&r.push(parseFloat(""+o[i]));switch(s.toLowerCase()){case"t":case"translate":e.translate(r[0],r[1]);break;case"translatex":e.translateX(r[0]);break;case"translatey":e.translateY(r[0]);break;case"translatez":e.translateZ(r[0]);break;case"translate3d":e.translate3d(r[0],r[1],r[2]);break;case"r":case"rotate":e.rotate(r[0],r[1]??0,r[2]??0);break;case"rotatex":e.rotateX(r[0]);break;case"rotatey":e.rotateY(r[0]);break;case"rotatez":e.rotateZ(r[0]);break;case"rotate3d":e.rotate3d(r[0],r[1],r[2]);break;case"s":case"scale":e.scale(r[0],r[1]??r[0]);break;case"scalex":e.scaleX(r[0]);break;case"scaley":e.scaleY(r[0]);break;case"scalez":e.scaleZ(r[0]);break;case"scale3d":e.scale3d(r[0],r[1],r[2]);break;case"skew":e.skew(r[0],r[1]??0);break;case"skewx":e.skewX(r[0]);break;case"skewy":e.skewY(r[0]);break;case"skewz":e.skewZ(r[0]);break;case"skew3d":e.skew3d(r[0],r[1],r[2]);break;case"m":case"matrix":e.multiply([r[0],r[1],r[2],r[3],r[4],r[5]]);break;case"matrix3d":e.matrix3d.multiply(new Ge(r));break}return""}),e}const P={safeAreaTop:O.getCSSVar("--safe-area-inset-top"),safeAreaRight:O.getCSSVar("--safe-area-inset-right"),safeAreaBottom:O.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:O.getCSSVar("--safe-area-inset-left"),colorPrimary:O.getCSSVar("--color-primary"),colorRed:O.getCSSVar("--color-red"),colorOrange:O.getCSSVar("--color-orange"),colorYellow:O.getCSSVar("--color-yellow"),colorGreen:O.getCSSVar("--color-green"),colorBlue:O.getCSSVar("--color-blue"),colorPurple:O.getCSSVar("--color-purple"),colorBlack:O.getCSSVar("--color-black"),colorGray0:O.getCSSVar("--color-gray-0"),colorGray3:O.getCSSVar("--color-gray-3"),colorGray6:O.getCSSVar("--color-gray-6"),colorGray9:O.getCSSVar("--color-gray-9"),colorGrayCC:O.getCSSVar("--color-gray-cc"),colorGrayDD:O.getCSSVar("--color-gray-dd"),colorGrayE6:O.getCSSVar("--color-gray-e6"),colorGrayEE:O.getCSSVar("--color-gray-ee"),colorGrayEF:O.getCSSVar("--color-gray-ef"),colorGrayF5:O.getCSSVar("--color-gray-f5"),colorGrayFF:O.getCSSVar("--color-gray-ff"),fontLineHeight:O.getCSSVar("--font-line-height"),fontSize32:O.getCSSVar("--font-size-32"),fontSize24:O.getCSSVar("--font-size-24"),fontSize20:O.getCSSVar("--font-size-20"),fontSize18:O.getCSSVar("--font-size-18"),fontSize16:O.getCSSVar("--font-size-16"),fontSize14:O.getCSSVar("--font-size-14"),fontSize12:O.getCSSVar("--font-size-12"),fontSize11:O.getCSSVar("--font-size-11"),gap4:O.getCSSVar("--gap-4"),gap8:O.getCSSVar("--gap-8"),gap12:O.getCSSVar("--gap-12"),gap16:O.getCSSVar("--gap-16"),gap20:O.getCSSVar("--gap-20"),gap40:O.getCSSVar("--gap-40"),height44:O.getCSSVar("--height-44"),height32:O.getCSSVar("--height-32"),borderRadius:O.getCSSVar("--border-radius")},qc=function(t){return t[0]==="#"&&(t=t.slice(1)),parseInt(t,16)},Yc=function(t,e=1){const n=t>>16&255,s=t>>8&255,o=t&255,r=e<0?0:e>1?1:e;return r===1?"rgb("+n+","+s+","+o+")":"rgba("+n+","+s+","+o+","+r+")"},Xc=function(t,e=1){const n=qc(t);return Yc(n,e)};function _t(t,e){let n=parseInt(t.substring(1,3),16),s=parseInt(t.substring(3,5),16),o=parseInt(t.substring(5,7),16);n==0&&(n=32),s==0&&(s=32),o==0&&(o=32),n=n*(100+e)/100,s=s*(100+e)/100,o=o*(100+e)/100,n=n<255?n:255,s=s<255?s:255,o=o<255?o:255,n=Math.round(n),s=Math.round(s),o=Math.round(o);const r=n.toString(16).length==1?"0"+n.toString(16):n.toString(16),i=s.toString(16).length==1?"0"+s.toString(16):s.toString(16),a=o.toString(16).length==1?"0"+o.toString(16):o.toString(16);return"#"+r+i+a}function Mr(t){switch(t){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-in-out":return[.42,0,.58,1];case"ease-out":return[0,0,.58,1]}}const Zc={attributeName:["display"],values:[["block","block"]]},oe={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class Ar{currentAnimateName;objects=[];actions=[];constructor(){}hasObjects(){return this.objects.length>0}fromDOM(e){return Array.isArray(e)||(e=[e]),this.objects=[],e.forEach(n=>{const s=ve(n);this.objects.push({width:parseFloat(s.css("width")),height:parseFloat(s.css("height")),dom:s,el:n,originCSSObject:s.css()})}),this}toCSS(e,...n){if(!this.hasObjects())return;switch(this.currentAnimateName=e,this[e](...n),this.objects[0].dom?.parent().css({position:"relative",perspective:"1000px",overflow:"hidden"}),e){default:this.objects.forEach((r,i)=>{r.dom?.css({position:"absolute","z-index":String(1e3+i),"transform-style":"preserve-3d","backface-visibility":"hidden"})});break}let s=0;const o=()=>{this.actions.forEach((r,i)=>{const a=this.objects[r.objectIndex];let c=[],l=[];Array.isArray(r.attributeName)?(c=r.attributeName,l=r.values):r.attributeName&&(c=[r.attributeName],l=[r.values]);const f=r.keyTimes.length,d=Ir(a.dom?.css("transform")??"");let u=r.begin;r.keyTimes.forEach((p,g)=>{const _={_matrix:d};c.forEach((v,S)=>{const m=l[S][r.direction=="reverse"?f-g-1:g];this._transformAttributeToCSSObjectUseMatrix(v,m,_)}),g==0?a.dom?.css(Object.assign(_,{transition:""})):(setTimeout(()=>{a.dom?.css(Object.assign(_,{transition:`all ${r.realKeyTimes[g]}ms cubic-bezier(${r.keySplines[g-1].join(",")})`}))},u),u+=r.realKeyTimes[g])}),setTimeout(()=>{r.fill==="remove"&&a.dom?.css(a.originCSSObject??{}),i==this.actions.length-1&&(typeof r.repeatCount=="number"&&++s<r.repeatCount||r.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentAnimateName===e&&o()})},r.begin+r.dur)})};o()}_transformAttributeToCSSObjectUseMatrix(e,n,s={}){switch(e){case"translateTo":s._matrix.translateTo(n[0]??0,n[1]??0);break;case"translate":s._matrix.translate(n[0]??0,n[1]??0);break;case"rotate":s._matrix.rotate(n??0);break;case"rotateXTo":s._matrix.rotateXTo(n??0);break;case"rotateYTo":s._matrix.rotateYTo(n??0);break;case"scaleTo":typeof n=="number"?s._matrix.scaleTo(n??1):s._matrix.scaleTo(n[0]??1,n[1]??1);break;case"scale":typeof n=="number"?s._matrix.scale(n??1):s._matrix.scale(n[0]??1,n[1]??1);break;case"scaleX":s._matrix.scale(n??1,1);break;case"scaleY":s._matrix.scale(1,n??1);break;default:Object.assign(s,{[e]:`${n??""}`});break}return Object.assign(s,{transform:s._matrix.toString()}),s}_addAction(e,n=!1){return this.actions=n?[]:this.actions,Array.isArray(e)||(e=[e]),e.forEach(s=>{this.actions.push(Object.assign(s,{realKeyTimes:s.keyTimes.map(o=>s.dur*o)}))}),this}_addAnimate(e=Zc,n=oe,s=0,o=!1){const r=n.keyTimes??[0,1],i=[];return r.forEach((a,c)=>{c>0&&i.push(Mr(n.easeName??"linear"))}),this._addAction({objectIndex:s,attributeName:e.attributeName,values:e.values,begin:n.begin??0,dur:n.dur??300,keyTimes:r,keySplines:i,repeatCount:n.repeatCount??1,direction:n.direction??"normal",fill:n.fill??"freeze"},o),this}_predefinedAnimate(e,n,s,o,r=oe,i=this.objects.length-1){let a=!0,c=!1,l=!1,f=!1;const d=this.objects.length;i=(i+d)%d;const u=(i-1+d)%d,p=(i+1+d)%d,g=this.objects[i],_=this.objects[u],v=this.objects[p];if(_&&u!==i){const S=e(_);S&&(this._addAnimate(S,r,u,a),a=!1,c=!0)}if(g){const S=n(g);S&&(this._addAnimate(S,r,i,a),a=!1,l=!0)}if(v&&p!==i){const S=s(v);S&&(this._addAnimate(S,r,p,a),a=!1,f=!0)}this.objects.forEach((S,m)=>{if(!(m==u&&c||m==i&&l||m==p&&f)){const b=o(S);b&&(this._addAnimate(b,r,m,a),a=!1)}})}flip(e=oe,n=this.objects.length-1){const s=n-1,o=this.objects[s],r=this.objects[n],i=Ir(r.dom?.css("transform")??""),a=i.clone();o.dom?.show(),o.dom?.css("opacity","1");const c=o.el?.getBoundingClientRect();o.dom?.css("opacity","0"),r.dom?.show(),r.dom?.css("opacity","1");const l=r.el?.getBoundingClientRect(),f=o.dom?.css("background-color"),d=r.dom?.css("background-color");a.translate((c?.left??0)-(l?.left??0),(c?.top??0)-(l?.top??0)),a.scale((c?.width??1)/(l?.width??1),(c?.height??1)/(l?.height??1));const u={transform:a.toString(),transition:""};f&&Object.assign(u,{"background-color":f}),r.dom?.css(u);const p={transform:i.toString(),transition:`all ${e.dur}ms cubic-bezier(${Mr(e.easeName??"linear").join(",")})`};d&&Object.assign(p,{"background-color":d}),setTimeout(()=>{r.dom?.css(p)},e.begin)}slideLeft(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>({attributeName:["translateTo"],values:[[[0,0],[-s.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[s.width,0],[0,0]]]}),s=>{},s=>({attributeName:["translateTo"],values:[[[-s.width,0],[-s.width,0]]]}),e,n)}slideRight(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>{},s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-s.width,0],[0,0]]]}),s=>({attributeName:["translateTo"],values:[[[0,0],[s.width,0]]]}),s=>({attributeName:["translateTo"],values:[[[s.width,0],[s.width,0]]]}),e,n)}slideDown(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>({attributeName:["translateTo"],values:[[[0,0],[0,s.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-s.height],[0,0]]]}),s=>{},s=>({attributeName:["translateTo"],values:[[[0,s.height],[0,s.height]]]}),e,n)}slideUp(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>({attributeName:["translateTo"],values:[[[0,0],[0,-s.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,s.height],[0,0]]]}),s=>{},s=>({attributeName:["translateTo"],values:[[[0,-s.height],[0,-s.height]]]}),e,n)}flipLeft(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]]}),e,n)}flipRight(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]]}),e,n)}flipDown(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]]}),e,n)}flipUp(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]]}),e,n)}popIn(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]]}),e,n)}popOut(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]]}),e,n)}rotate(e=oe,n=this.objects.length-1){Object.assign(e,{keyTimes:[0,1]});const s=e.degree??360;this._predefinedAnimate(o=>{},o=>({attributeName:["opacity","rotate"],values:[[1,1],[0,s]]}),o=>{},o=>({attributeName:["opacity"],values:[[0,0]]}),e,n)}}class Jc{map;constructor(e,n=120.619585,s=31.299379,o=18){this.map=new T.Map(e),this.map.centerAndZoom(new T.LngLat(n,s),o)}}const Qc=F({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:P.colorPrimary}},setup(t){const e=t;return(n,s)=>(C(),N("span",{class:"icon",style:k(["color: "+n.color])},[K(W(Lc),{icon:e.icon,color:n.color},null,8,["icon","color"])],4))}}),fd="",j=(t,e)=>{const n=t.__vccOpts||t;for(const[s,o]of e)n[s]=o;return n},De=j(Qc,[["__scopeId","data-v-8789b4ce"]]),el=F({customOptions:{},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{}},emits:["ceClick","click"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=E();let i,a;const c=E(s.borderColor),l=E(s.bgColor),f=E(s.fontColor);function d(){switch(s.stylePattern){case"outline":i=i??s.borderColor??P.colorPrimary,a=a??s.bgColor??P.colorGrayFF,c.value=c.value??P.colorPrimary,l.value=l.value??P.colorGrayFF,f.value=f.value??P.colorPrimary;break;default:i=i??s.borderColor??P.colorPrimary,a=a??s.bgColor??P.colorPrimary,c.value=c.value??P.colorPrimary,l.value=l.value??P.colorPrimary,f.value=f.value??P.colorGrayFF;break}}d();const u=E(s.isDisabled?"0.6":"1"),p=E(s.isDisabled?"not-allowed":"pointer");let g=!1;const _=()=>{s.isDisabled||(g=!0,c.value=_t(i,10),l.value=_t(a,10))},v=()=>{s.isDisabled||(g=!1,c.value=i,l.value=a)},S=()=>{s.isDisabled||(c.value=_t(i,-10),l.value=_t(a,-10),setTimeout(()=>{g?_():v()},150),o("ceClick"),o("click"))};return e({wrapper:r}),(m,b)=>(C(),N("div",{ref_key:"wrapper",ref:r,class:"button",style:k([`opacity: ${u.value}`,`border: 1px solid ${c.value}`,`border-radius: ${s.borderRadius}`,`background-color: ${l.value}`,`color: ${f.value}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${p.value}`]),onMouseover:_,onMouseleave:v,onClick:S},[h("label",{class:"label truncate",style:k({padding:"0 "+m.padding,cursor:p.value})},[G(m.$slots,"default",{},()=>[m.icon&&m.iconPosition==="left"?(C(),ee(De,{key:0,icon:m.icon,color:f.value,style:k({marginRight:W(P).gap4,cursor:p.value})},null,8,["icon","color","style"])):te("",!0),h("span",{style:k({cursor:p.value})},ne(m.label),5),m.icon&&m.iconPosition==="right"?(C(),ee(De,{key:1,icon:m.icon,color:f.value,style:k({marginLeft:W(P).gap4,cursor:p.value})},null,8,["icon","color","style"])):te("",!0)],!0)],4)],36))}}),hd="",Se=j(el,[["__scopeId","data-v-bfabd99a"]]),pd="",tl={id:"page"},nl=F({__name:"MobileLayout",props:{header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},designWidth:{default:750}},emits:["triggerHeader","triggerFooter","triggerLeft","triggerRight"],setup(t,{expose:e,emit:n}){const s=t;Wc(s.designWidth);const o=n,r=E(),i=E(),a=E(),c=E(),l=E("0");H(r,(w,x)=>{typeof w<"u"&&w!==x&&(l.value=ve(r.value).css("height"))});const f=E("0");H(i,(w,x)=>{typeof w<"u"&&w!==x&&(f.value=ve(i.value).css("height"))});const d=E("0");H(a,(w,x)=>{typeof w<"u"&&w!==x&&(d.value=ve(a.value).css("width"))});const u=E("0");H(c,(w,x)=>{typeof w<"u"&&w!==x&&(u.value=ve(c.value).css("width"))}),window.addEventListener("orientationchange"in window?"orientationchange":"resize",()=>{l.value=ve(r.value).css("height"),f.value=ve(i.value).css("height"),d.value=ve(a.value).css("width"),u.value=ve(c.value).css("width")},!1);const p=new Ar;let g=E(s.header);const _=()=>{r.value&&(p.fromDOM([r.value]),p.toCSS("slideDown",{easeName:"ease-in",dur:150,direction:g.value?"reverse":"normal"}),g.value=!g.value,o("triggerHeader",g.value))};let v=E(s.footer);const S=()=>{i.value&&(p.fromDOM([i.value]),p.toCSS("slideUp",{easeName:"ease-in",dur:150,direction:v.value?"reverse":"normal"}),v.value=!v.value,o("triggerFooter",v.value))};let m=E(s.left);const b=()=>{a.value&&(p.fromDOM([a.value]),p.toCSS("slideRight",{easeName:"ease-in",dur:150,direction:m.value?"reverse":"normal"}),m.value=!m.value,o("triggerLeft",m.value))};let y=E(s.right);return e({triggerHeader:_,triggerFooter:S,triggerLeft:b,triggerRight:()=>{c.value&&(p.fromDOM([c.value]),p.toCSS("slideLeft",{easeName:"ease-in",dur:150,direction:y.value?"reverse":"normal"}),y.value=!y.value,o("triggerRight",y.value))}}),(w,x)=>(C(),N("div",tl,[h("header",{id:"header",ref_key:"refHeader",ref:r,style:k({transform:w.header?"translate(0, 0)":`translate(0, -${l.value})`})},[G(w.$slots,"header",{},void 0,!0)],4),h("div",{id:"main",style:k({paddingTop:W(g)?l.value:0,paddingBottom:W(v)?f.value:0})},[G(w.$slots,"main",{},void 0,!0)],4),h("footer",{id:"footer",ref_key:"refFooter",ref:i,style:k({transform:w.footer?"translate(0, 0)":`translate(0, ${f.value})`})},[G(w.$slots,"footer",{},void 0,!0)],4),h("div",{id:"left",ref_key:"refLeft",ref:a,style:k({transform:w.left?"translate(0, 0)":`translate(-${d.value}, 0)`})},[G(w.$slots,"left",{},void 0,!0)],4),h("div",{id:"right",ref_key:"refRight",ref:c,style:k({transform:w.right?"translate(0, 0)":`translate(${u.value}, 0)`})},[G(w.$slots,"right",{},void 0,!0)],4)]))}}),md="",sl=j(nl,[["__scopeId","data-v-aea09f8f"]]),ol={class:"content-fixed",style:{position:"fixed","z-index":"2001",inset:"0","overflow-y":"auto"}},rl={class:"content-relative",style:{position:"relative",width:"100%",height:"100%"}},il=F({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:Xc(P.colorGray0,.25)}},setup(t,{expose:e,emit:n}){const s=t;function o(r){r?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow="")}return H(()=>s.visible,()=>{o(s.visible)},{immediate:!0}),e({}),(r,i)=>r.visible?(C(),N("div",{key:0,class:"overlay",style:k([{position:"fixed","z-index":"2000",inset:"0"},["background-color: "+s.bgColor]])},[h("div",ol,[h("div",rl,[G(r.$slots,"default",{},void 0,!0)])])],4)):te("",!0)}}),gd="",bt=j(il,[["__scopeId","data-v-00083274"]]),al=F({customOptions:{Overlay:bt},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=E();let i;const a=pe({}),c=pe({});H(()=>s.directionFrom,()=>{switch(s.directionFrom){case"absolute":i="",a.display="block";break;case"top":i="slideDown",a.display="block",c.width="100%",c.top="0",c.left="0";break;case"left":i="slideRight",a.display="block",c.height="100%",c.top="0",c.left="0";break;case"right":i="slideLeft",a.display="block",c.height="100%",c.top="0",c.right="0";break;case"bottom":i="slideUp",a.display="block",c.width="100%",c.bottom="0",c.left="0";break;case"center":default:i="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}},{immediate:!0});const l=new Ar,f=(_=!0)=>{i&&(_?H(r,()=>{r.value&&(l.fromDOM(r.value),l.toCSS(i,{easeName:"ease",dur:s.openDurTime}))},{once:!0}):l.toCSS(i,{easeName:"ease",dur:s.closeDurTime,direction:"reverse"}))},d=E(!1);function u(_){_.target.contains(r.value)&&s.closeWhenClickOverlay&&g()}function p(){d.value=!0,f(!0),o("open")}function g(){f(!1),o("close"),setTimeout(()=>{d.value=!1},s.closeDurTime)}return e({open:p,close:g}),(_,v)=>(C(),ee(bt,{visible:d.value},{default:he(()=>[h("div",{class:"pop-parent",style:k([{position:"relative",width:"100%",height:"100%"},a]),onClick:u},[h("div",{ref_key:"pop",ref:r,class:"pop",style:k([{position:"absolute"},c])},[G(_.$slots,"default",{},void 0,!0)],4)],4)]),_:3},8,["visible"]))}}),vd="",ke=j(al,[["__scopeId","data-v-0fad8ec7"]]),cl={class:"dialog-wrap"},ll={class:"dialog"},ul={key:0,class:"title"},dl={key:0,class:"title-inner truncate"},fl={class:"custom-content"},hl={key:1,class:"btns"},pl=F({customOptions:{Overlay:bt,Pop:ke,Icon:De,Button:Se},inheritAttrs:!0,__name:"Dialog",props:{title:{default:"通知"},content:{default:"..."},showTitle:{type:Boolean,default:!0},showClose:{type:Boolean,default:!1},showCancel:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!0},closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close","cancel","confirm"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=E();function i(){r.value.open(),o("open")}function a(){r.value.close(),o("close")}function c(){a(),o("cancel")}function l(){a(),o("confirm")}return e({open:i,close:a}),(f,d)=>(C(),ee(ke,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime},{default:he(()=>[h("div",cl,[h("div",ll,[f.showTitle||f.showClose?(C(),N("div",ul,[f.showTitle?(C(),N("div",dl,ne(f.title),1)):te("",!0),f.showClose?(C(),ee(De,{key:1,class:"close",icon:"ic:baseline-close",color:W(P).colorGrayCC,onClick:a},null,8,["color"])):te("",!0)])):te("",!0),h("div",fl,[G(f.$slots,"default",{},()=>[ut(ne(f.content),1)],!0)]),f.showCancel||f.showConfirm?(C(),N("div",hl,[f.showCancel?(C(),ee(Se,{key:0,onClick:c,class:"btn",bgColor:W(P).colorGrayE6,borderColor:W(P).colorGrayE6,fontColor:W(P).colorGray3,borderRadius:"0"},{default:he(()=>[ut(" 取消 ")]),_:1},8,["bgColor","borderColor","fontColor"])):te("",!0),f.showConfirm?(C(),ee(Se,{key:1,onClick:l,class:"btn",borderRadius:"0"},{default:he(()=>[ut(" 确定 ")]),_:1})):te("",!0)])):te("",!0)])])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),yd="",ns=j(pl,[["__scopeId","data-v-002ae342"]]),ml=F({__name:"SVGLoading",props:{width:{default:"4em"},color:{default:P.colorPrimary}},setup(t){const e=t;return(n,s)=>(C(),N("svg",{viewBox:"25 25 50 50",style:k(["width: "+e.width])},[h("circle",{cx:"50",cy:"50",r:"20",style:k(["stroke: "+e.color])},null,4)],4))}}),_d="",Rr=j(ml,[["__scopeId","data-v-29f8de14"]]),gl={class:"loading"},vl={class:"icon"},yl={key:0,class:"content"},_l=F({customOptions:{Overlay:bt,Pop:ke,Dialog:ns,SVGLoading:Rr},inheritAttrs:!0,__name:"DialogLoading",props:{content:{},closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=E();function i(){r.value.open(),o("open")}function a(){r.value.close(),o("close")}return e({open:i,close:a}),(c,l)=>(C(),ee(ns,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime},{default:he(()=>[h("div",gl,[h("div",vl,[G(c.$slots,"default",{},()=>[K(Rr)],!0)]),c.content?(C(),N("div",yl,ne(c.content),1)):te("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),bd="",bl=j(_l,[["__scopeId","data-v-d2aea832"]]),wl=["onClick","value"],xl=F({customOptions:{Icon:De,Button:Se},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e,o=function(){return{"--select-option-bg-color":P.colorGrayFF,"--select-option-bg-color-hover":P.colorGrayF5}},r=E(!1),i=E(n.initIndex);H(i,function(){s("change",n.options[i.value])});function a(){r.value=!r.value}function c(l){i.value=l,r.value=!1}return(l,f)=>(C(),N("div",{class:"wrap",style:k(["font-size:"+l.fontSize])},[h("div",{onClick:a},[G(l.$slots,"button",{selectedIndex:i.value},()=>[K(Se,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[i.value],style:{width:"100%"}},null,8,["label"])],!0)]),Tn(h("div",{class:"options",style:k({border:"1px solid "+W(P).colorGrayCC})},[(C(!0),N(ae,null,Be(l.options,(d,u)=>(C(),N("div",{onClick:p=>c(u),class:"option",key:u,value:u,style:k({borderTop:(u==0?"0":"1px")+" solid "+W(P).colorGrayCC})},[h("div",{class:"option-inner",style:o},[G(l.$slots,"default",{item:d,index:u},()=>[h("span",null,ne(d),1),u==i.value?(C(),ee(De,{key:0,icon:"mingcute:check-fill",class:"icon"})):te("",!0)],!0)])],12,wl))),128))],4),[[Vt,r.value]])],4))}}),wd="",Cl=j(xl,[["__scopeId","data-v-fa343805"]]),El=F({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:P.colorPrimary},colorBgOn:{default:P.colorGrayEF},colorBgOff:{default:P.colorGrayF5}},emits:["change"],setup(t,{emit:e}){const n=t;function s(p){const g=$c("number",p);return{number:g.fullMatch?parseFloat(g.fullMatch):0,suffix:g.fullMatch?p.substring(g.matchIndex+g.fullMatch.length+1):""}}const o=s(n.width),r=s(n.height),i=s(n.padding),a=r.number-i.number*2+r.suffix,c=n.padding,l=o.number-s(c).number-s(a).number+o.suffix,f=e,d=E(n.init);H(d,function(){f("change",d.value)});function u(){d.value=!d.value}return(p,g)=>(C(),N("div",{class:"switch",onClick:u,style:k(["width: "+n.width,"height: "+n.height,"background-color: "+(d.value?n.colorBgOn:n.colorBgOff)])},[h("span",{class:"round",style:k(["width: "+a,"height: "+a,"background-color: "+(d.value?n.colorPrimary:W(_t)(n.colorPrimary,30)),"transform: translate("+(d.value?l:W(c))+", 0)"])},null,4)],4))}}),xd="",Sl=j(El,[["__scopeId","data-v-2f656d49"]]),kl={class:"wrap"},Tl=["onClick"],Ol=["stroke","fill"],Pl=["stroke","fill"],Nl=["stroke"],Ll=F({customOptions:{},__name:"RadioGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!0},isFullfilled:{type:Boolean,default:!1},colorPath:{default:P.colorPrimary},colorBg:{default:P.colorGrayFF},colorBorder:{default:P.colorGrayCC},fontSize:{default:P.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e,o=E(n.colorPath),r=E(n.colorBg),i=E(n.colorBorder);n.isFullfilled&&(o.value=n.colorBg,r.value=n.colorPath,i.value=n.colorPath);let a=E(n.initIndexs??0);H(a,function(){s("change",n.options[a.value])});const c=function(l){a.value=l};return(l,f)=>(C(),N("div",kl,[(C(!0),N(ae,null,Be(l.options,(d,u)=>(C(),N("span",{class:"item",key:u,onClick:p=>c(u),style:k(["margin-left:"+(u>0?n.itemPadding:0)])},[G(l.$slots,"default",{label:d,index:u},()=>[(C(),N("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:k(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?te("",!0):(C(),N("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:i.value,"strke-width":"1",fill:r.value,"fill-opacity":1},null,8,Ol)),n.isRounded?(C(),N("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:i.value,"strke-width":"1",fill:r.value,"fill-opacity":1},null,8,Pl)):te("",!0),Tn(h("path",{d:"M7 13l3 3 7-7",stroke:o.value,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Nl),[[Vt,W(a)===u]])],4)),h("span",{style:k(["font-size:"+n.fontSize])},ne(d),5)],!0)],12,Tl))),128))]))}}),Cd="",$l=j(Ll,[["__scopeId","data-v-18ca2a3d"]]),Il={class:"wrap"},Ml=["onClick"],Al=["stroke","fill"],Rl=["stroke","fill"],Dl=["stroke"],Fl=F({customOptions:{},__name:"CheckboxGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!1},isFullfilled:{type:Boolean,default:!1},colorPath:{default:P.colorPrimary},colorBg:{default:P.colorGrayFF},colorBorder:{default:P.colorGrayCC},fontSize:{default:P.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e,o=E(n.colorPath),r=E(n.colorBg),i=E(n.colorBorder);n.isFullfilled&&(o.value=n.colorBg,r.value=n.colorPath,i.value=n.colorPath);let a=pe(n.initIndexs??[0]);H(a,function(){s("change",a.map(l=>n.options[l]))});const c=function(l){const f=a.findIndex(d=>d===l);f>=0?a.splice(f,1):a.push(l)};return(l,f)=>(C(),N("div",Il,[(C(!0),N(ae,null,Be(l.options,(d,u)=>(C(),N("span",{class:"item",key:u,onClick:p=>c(u),style:k(["margin-left:"+(u>0?n.itemPadding:0)])},[G(l.$slots,"default",{label:d,index:u},()=>[(C(),N("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:k(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?te("",!0):(C(),N("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:i.value,"strke-width":"1",fill:r.value,"fill-opacity":1},null,8,Al)),n.isRounded?(C(),N("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:i.value,"strke-width":"1",fill:r.value,"fill-opacity":1},null,8,Rl)):te("",!0),Tn(h("path",{d:"M7 13l3 3 7-7",stroke:o.value,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Dl),[[Vt,W(a).findIndex(p=>p===u)>=0]])],4)),h("span",{style:k(["font-size:"+n.fontSize])},ne(d),5)],!0)],12,Ml))),128))]))}}),Ed="",jl=j(Fl,[["__scopeId","data-v-2616b69e"]]),Vl=(t=>(Sn("data-v-943bcc32"),t=t(),kn(),t))(()=>h("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),zl=F({customOptions:{Pop:ke,Button:Se},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10}},setup(t){const e=t,n=E(),s=E(),o=E(),r=pe({left:"0",top:"0"});H(s,()=>{i()}),H(o,()=>{i()});function i(){if(!s.value||!o.value)return;const c=kr(),l=s.value.getBoundingClientRect(),f=o.value.getBoundingClientRect(),d=f.width,u=f.height;let p=l.x+l.width+e.gap,g=l.y;p=Math.max(e.gap,Math.min(p,c.width-d-e.gap)),g=Math.max(e.gap,Math.min(g,c.height-u-e.gap)),r.left=`${p}px`,r.top=`${g}px`}function a(){n.value.open()}return(c,l)=>(C(),N(ae,null,[h("div",{ref_key:"popoverButtonRef",ref:s,style:{display:"inline-block"},onClick:a},[G(c.$slots,"button",{},()=>[K(Se,null,{default:he(()=>[ut("popover-default-button")]),_:1})],!0)],512),K(ke,{ref_key:"popRef",ref:n,"direction-from":"absolute"},{default:he(()=>[h("div",{ref_key:"popoverPanelRef",ref:o,style:k([{display:"inline-block",position:"absolute"},r])},[G(c.$slots,"panel",{},()=>[Vl],!0)],4)]),_:3},512)],64))}}),kd="",ss=j(zl,[["__scopeId","data-v-943bcc32"]]),Ue=(t,e=0,n=1)=>t>n?n:t<e?e:t,Y=(t,e=0,n=Math.pow(10,e))=>Math.round(n*t)/n,Hl=t=>Ul(os(t)),os=t=>(t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?Y(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?Y(parseInt(t.substring(6,8),16)/255,2):1}),Bl=t=>Gl(Wl(t)),Dr=({h:t,s:e,v:n,a:s})=>{const o=(200-e)*n/100;return{h:Y(t),s:Y(o>0&&o<200?e*n/100/(o<=100?o:200-o)*100:0),l:Y(o/2),a:Y(s,2)}},rs=t=>{const{h:e,s:n,l:s}=Dr(t);return`hsl(${e}, ${n}%, ${s}%)`},is=t=>{const{h:e,s:n,l:s,a:o}=Dr(t);return`hsla(${e}, ${n}%, ${s}%, ${o})`},Wl=({h:t,s:e,v:n,a:s})=>{t=t/360*6,e=e/100,n=n/100;const o=Math.floor(t),r=n*(1-e),i=n*(1-(t-o)*e),a=n*(1-(1-t+o)*e),c=o%6;return{r:Y([n,i,r,r,a,n][c]*255),g:Y([a,n,n,i,r,r][c]*255),b:Y([r,r,a,n,n,i][c]*255),a:Y(s,2)}},Jt=t=>{const e=t.toString(16);return e.length<2?"0"+e:e},Gl=({r:t,g:e,b:n,a:s})=>{const o=s<1?Jt(Y(s*255)):"";return"#"+Jt(t)+Jt(e)+Jt(n)+o},Ul=({r:t,g:e,b:n,a:s})=>{const o=Math.max(t,e,n),r=o-Math.min(t,e,n),i=r?o===t?(e-n)/r:o===e?2+(n-t)/r:4+(t-e)/r:0;return{h:Y(60*(i<0?i+6:i)),s:Y(o?r/o*100:0),v:Y(o/255*100),a:s}},Fr=(t,e)=>{if(t===e)return!0;for(const n in t)if(t[n]!==e[n])return!1;return!0},Kl=(t,e)=>t.toLowerCase()===e.toLowerCase()?!0:Fr(os(t),os(e)),jr={},Vr=t=>{let e=jr[t];return e||(e=document.createElement("template"),e.innerHTML=t,jr[t]=e),e},as=(t,e,n)=>{t.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:n}))};let Ke=!1;const cs=t=>"touches"in t,ql=t=>Ke&&!cs(t)?!1:(Ke||(Ke=cs(t)),!0),zr=(t,e)=>{const n=cs(e)?e.touches[0]:e,s=t.el.getBoundingClientRect();as(t.el,"move",t.getMove({x:Ue((n.pageX-(s.left+window.pageXOffset))/s.width),y:Ue((n.pageY-(s.top+window.pageYOffset))/s.height)}))},Yl=(t,e)=>{const n=e.keyCode;n>40||t.xy&&n<37||n<33||(e.preventDefault(),as(t.el,"move",t.getMove({x:n===39?.01:n===37?-.01:n===34?.05:n===33?-.05:n===35?1:n===36?-1:0,y:n===40?.01:n===38?-.01:0},!0)))};class ls{constructor(e,n,s,o){const r=Vr(`<div role="slider" tabindex="0" part="${n}" ${s}><div part="${n}-pointer"></div></div>`);e.appendChild(r.content.cloneNode(!0));const i=e.querySelector(`[part=${n}]`);i.addEventListener("mousedown",this),i.addEventListener("touchstart",this),i.addEventListener("keydown",this),this.el=i,this.xy=o,this.nodes=[i.firstChild,i]}set dragging(e){const n=e?document.addEventListener:document.removeEventListener;n(Ke?"touchmove":"mousemove",this),n(Ke?"touchend":"mouseup",this)}handleEvent(e){switch(e.type){case"mousedown":case"touchstart":if(e.preventDefault(),!ql(e)||!Ke&&e.button!=0)return;this.el.focus(),zr(this,e),this.dragging=!0;break;case"mousemove":case"touchmove":e.preventDefault(),zr(this,e);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":Yl(this,e);break}}style(e){e.forEach((n,s)=>{for(const o in n)this.nodes[s].style.setProperty(o,n[o])})}}class Xl extends ls{constructor(e){super(e,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:e}){this.h=e,this.style([{left:`${e/360*100}%`,color:rs({h:e,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Y(e)}`)}getMove(e,n){return{h:n?Ue(this.h+e.x*360,0,360):360*e.x}}}class Zl extends ls{constructor(e){super(e,"saturation",'aria-label="Color"',!0)}update(e){this.hsva=e,this.style([{top:`${100-e.v}%`,left:`${e.s}%`,color:rs(e)},{"background-color":rs({h:e.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Y(e.s)}%, Brightness ${Y(e.v)}%`)}getMove(e,n){return{s:n?Ue(this.hsva.s+e.x*100,0,100):e.x*100,v:n?Ue(this.hsva.v-e.y*100,0,100):Math.round(100-e.y*100)}}}const Jl=':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',Ql="[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}",eu="[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}",Qt=Symbol("same"),us=Symbol("color"),Hr=Symbol("hsva"),ds=Symbol("update"),Br=Symbol("parts"),en=Symbol("css"),tn=Symbol("sliders");let tu=class extends HTMLElement{static get observedAttributes(){return["color"]}get[en](){return[Jl,Ql,eu]}get[tn](){return[Zl,Xl]}get color(){return this[us]}set color(e){if(!this[Qt](e)){const n=this.colorModel.toHsva(e);this[ds](n),this[us]=e}}constructor(){super();const e=Vr(`<style>${this[en].join("")}</style>`),n=this.attachShadow({mode:"open"});n.appendChild(e.content.cloneNode(!0)),n.addEventListener("move",this),this[Br]=this[tn].map(s=>new s(n))}connectedCallback(){if(this.hasOwnProperty("color")){const e=this.color;delete this.color,this.color=e}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(e,n,s){const o=this.colorModel.fromAttr(s);this[Qt](o)||(this.color=o)}handleEvent(e){const n=this[Hr],s={...n,...e.detail};this[ds](s);let o;!Fr(s,n)&&!this[Qt](o=this.colorModel.fromHsva(s))&&(this[us]=o,as(this,"color-changed",{value:o}))}[Qt](e){return this.color&&this.colorModel.equal(e,this.color)}[ds](e){this[Hr]=e,this[Br].forEach(n=>n.update(e))}};class nu extends ls{constructor(e){super(e,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(e){this.hsva=e;const n=is({...e,a:0}),s=is({...e,a:1}),o=e.a*100;this.style([{left:`${o}%`,color:is(e)},{"--gradient":`linear-gradient(90deg, ${n}, ${s}`}]);const r=Y(o);this.el.setAttribute("aria-valuenow",`${r}`),this.el.setAttribute("aria-valuetext",`${r}%`)}getMove(e,n){return{a:n?Ue(this.hsva.a+e.x):e.x}}}const su=`[part=alpha]{flex:0 0 24px}[part=alpha]::after{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;background-image:var(--gradient);box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part^=alpha]{background-color:#fff;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><rect x="8" width="8" height="8"/><rect y="8" width="8" height="8"/></svg>')}[part=alpha-pointer]{top:50%}`;class ou extends tu{get[en](){return[...super[en],su]}get[tn](){return[...super[tn],nu]}}const ru={defaultColor:"#0001",toHsva:Hl,fromHsva:Bl,equal:Kl,fromAttr:t=>t};class iu extends ou{get colorModel(){return ru}}class au extends iu{}customElements.define("hex-alpha-color-picker",au);const cu=F({customOptions:{Popover:ss},__name:"ColorPicker",props:{color:{default:P.colorPrimary}},emits:["change"],setup(t,{emit:e}){const n=t,s=e,o=E(n.color);H(o,(a,c)=>{a!==c&&s("change",a)});const r=E(),i=a=>{o.value=a.detail.value};return H(r,()=>{r.value&&(r.value.removeEventListener("color-changed",i),r.value.addEventListener("color-changed",i))}),(a,c)=>{const l=Yi("hex-alpha-color-picker");return C(),ee(ss,null,{button:he(()=>[G(a.$slots,"default",{},()=>[h("span",{class:"button",style:k({backgroundColor:o.value})},null,4)],!0)]),panel:he(()=>[K(l,{ref_key:"colorPickerRef",ref:r,color:o.value},null,8,["color"])]),_:3})}}}),Td="",lu=j(cu,[["__scopeId","data-v-ac12603f"]]),Od="",uu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!0},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",Jn&&this.$el.appendChild(t),t.data="about:blank",Jn||this.$el.appendChild(t)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("resize",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Jn&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},du={class:"resize-observer",tabindex:"-1"};function fu(t,e,n,s,o,r){return C(),N("div",du)}const hu=j(uu,[["render",fu],["__scopeId","data-v-97c2da37"]]),pu=()=>{const t=E(window.innerWidth),e=E(window.innerHeight),n=s=>{t.value=s.target.innerWidth,e.value=s.target.innerHeight};return Nn(()=>window.addEventListener("resize",n)),fo(()=>window.removeEventListener("resize",n)),{width:t,height:e}},mu=F({__name:"MapTianditu",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(t,{expose:e,emit:n}){const s=t,{width:o,height:r}=pu(),i=E(s.mapWidth??o.value+"px"),a=E(s.mapHeight??r.value+"px");return H(o,(c,l)=>{c!=l&&!s.mapWidth&&(i.value=c+"px")}),H(r,(c,l)=>{c!=l&&!s.mapHeight&&(a.value=c+"px")}),Nn(()=>{O.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${s.mapKey}`,()=>{new Jc(s.mapContainerID,s.mapCenterLng,s.mapCenterLat,s.mapZoom)},c=>{console.log("error",c)})}),e({}),(c,l)=>(C(),N("div",Mn({class:"mapDivWrap"},c.$attrs,{style:{position:"relative",width:i.value,height:a.value}}),[G(c.$slots,"default",{width:i.value,height:a.value})],16))}}),gu=["fill"],vu=["fill"],yu=F({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:P.colorPrimary}},setup(t){const e=t;return(n,s)=>(C(),N("svg",{style:k(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[h("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:e.color},null,8,gu),h("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:e.color},null,8,vu)],4))}}),Pd="",fs=j(yu,[["__scopeId","data-v-987aed3d"]]),hs=t=>(Sn("data-v-85491020"),t=t(),kn(),t),_u=[hs(()=>h("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),hs(()=>h("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),hs(()=>h("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],bu=F({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:P.colorPrimary}},setup(t){const e=t;return(n,s)=>(C(),N("svg",{style:k(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},_u,4))}}),Id="",nn=j(bu,[["__scopeId","data-v-85491020"]]),wu=["data-unactive"],xu=["data-unactive"],Cu=["data-unactive"],Eu=["data-unactive"],Su=["data-unactive"],ku=["data-unactive"],Tu=["data-unactive"],Ou=["data-unactive"],Pu=["data-unactive"],Nu=["data-unactive"],Lu=["data-unactive"],$u=["data-unactive"],Iu=["data-unactive"],Mu=["data-unactive"],Au=["data-unactive"],Ru=["data-unactive"],Du=["data-unactive"],Fu=F({customOptions:{Pop:ke,SVGCleanUp:nn},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=E(),i=E(0),a=pe([]);function c(){a.length==0?i.value=0:a.length==1?i.value=1:i.value=2,a.length>=s.completePlateLength&&f()}H(()=>[...s.initPlates],()=>{vt(a,s.initPlates),c()},{immediate:!0});const l=()=>{r.value.open(),o("open")},f=()=>{r.value.close(),o("close")},d=()=>{a.pop(),c(),o("plates",a)},u=p=>{if(p.target.dataset.unactive||"")return;let _=p.target.dataset.number;_&&(a.push(_),c(),o("plates",a))};return e({open:l,close:f}),(p,g)=>(C(),ee(ke,{ref_key:"popRef",ref:r,directionFrom:"bottom",closeWhenClickOverlay:!1},{default:he(()=>[h("div",{class:"popup-plate",style:k({paddingBottom:W(P).safeAreaBottom})},[h("div",null,[h("div",{onClick:f},"关闭")]),h("div",{class:R(["step",i.value==0?"":"hide"])},[h("div",{class:"popitem",onClick:u,"data-number":"京"}," 京 "),h("div",{class:"popitem",onClick:u,"data-number":"沪"}," 沪 "),h("div",{class:"popitem",onClick:u,"data-number":"津"}," 津 "),h("div",{class:"popitem",onClick:u,"data-number":"渝"}," 渝 "),h("div",{class:"popitem",onClick:u,"data-number":"黑"}," 黑 "),h("div",{class:"popitem",onClick:u,"data-number":"吉"}," 吉 "),h("div",{class:"popitem",onClick:u,"data-number":"辽"}," 辽 "),h("div",{class:"popitem",onClick:u,"data-number":"蒙"}," 蒙 "),h("div",{class:"popitem",onClick:u,"data-number":"冀"}," 冀 "),h("div",{class:"popitem",onClick:u,"data-number":"新"}," 新 "),h("div",{class:"popitem",onClick:u,"data-number":"甘"}," 甘 "),h("div",{class:"popitem",onClick:u,"data-number":"青"}," 青 "),h("div",{class:"popitem",onClick:u,"data-number":"陕"}," 陕 "),h("div",{class:"popitem",onClick:u,"data-number":"宁"}," 宁 "),h("div",{class:"popitem",onClick:u,"data-number":"豫"}," 豫 "),h("div",{class:"popitem",onClick:u,"data-number":"鲁"}," 鲁 "),h("div",{class:"popitem",onClick:u,"data-number":"晋"}," 晋 "),h("div",{class:"popitem",onClick:u,"data-number":"皖"}," 皖 "),h("div",{class:"popitem",onClick:u,"data-number":"鄂"}," 鄂 "),h("div",{class:"popitem",onClick:u,"data-number":"湘"}," 湘 "),h("div",{class:"popitem",onClick:u,"data-number":"苏"}," 苏 "),h("div",{class:"popitem",onClick:u,"data-number":"川"}," 川 "),h("div",{class:"popitem",onClick:u,"data-number":"云"}," 云 "),h("div",{class:"popitem",onClick:u,"data-number":"桂"}," 桂 "),h("div",{class:"popitem",onClick:u,"data-number":"藏"}," 藏 "),h("div",{class:"popitem",onClick:u,"data-number":"浙"}," 浙 "),h("div",{class:"popitem",onClick:u,"data-number":"赣"}," 赣 "),h("div",{class:"popitem",onClick:u,"data-number":"粤"}," 粤 "),h("div",{class:"popitem",onClick:u,"data-number":"闽"}," 闽 "),h("div",{class:"popitem",onClick:u,"data-number":"琼"}," 琼 "),h("div",{class:"popitem",onClick:u,"data-number":"贵"}," 贵 "),h("div",{class:"popitem popitem-clear",onClick:d},[K(nn,{width:"16px"})])],2),h("div",{class:R(["step",i.value!=0?"":"hide"])},[h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"1","data-unactive":i.value!=2?"unactive":""}," 1 ",10,wu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"2","data-unactive":i.value!=2?"unactive":""}," 2 ",10,xu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"3","data-unactive":i.value!=2?"unactive":""}," 3 ",10,Cu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"4","data-unactive":i.value!=2?"unactive":""}," 4 ",10,Eu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"5","data-unactive":i.value!=2?"unactive":""}," 5 ",10,Su),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"6","data-unactive":i.value!=2?"unactive":""}," 6 ",10,ku),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"7","data-unactive":i.value!=2?"unactive":""}," 7 ",10,Tu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"8","data-unactive":i.value!=2?"unactive":""}," 8 ",10,Ou),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"9","data-unactive":i.value!=2?"unactive":""}," 9 ",10,Pu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"0","data-unactive":i.value!=2?"unactive":""}," 0 ",10,Nu),h("div",{class:"popitem",onClick:u,"data-number":"A"}," A "),h("div",{class:"popitem",onClick:u,"data-number":"B"}," B "),h("div",{class:"popitem",onClick:u,"data-number":"C"}," C "),h("div",{class:"popitem",onClick:u,"data-number":"D"}," D "),h("div",{class:"popitem",onClick:u,"data-number":"E"}," E "),h("div",{class:"popitem",onClick:u,"data-number":"F"}," F "),h("div",{class:"popitem",onClick:u,"data-number":"G"}," G "),h("div",{class:"popitem",onClick:u,"data-number":"H"}," H "),h("div",{class:"popitem",onClick:u,"data-number":"J"}," J "),h("div",{class:"popitem",onClick:u,"data-number":"K"}," K "),h("div",{class:"popitem",onClick:u,"data-number":"L"}," L "),h("div",{class:"popitem",onClick:u,"data-number":"M"}," M "),h("div",{class:"popitem",onClick:u,"data-number":"N"}," N "),h("div",{class:"popitem",onClick:u,"data-number":"P"}," P "),h("div",{class:"popitem",onClick:u,"data-number":"Q"}," Q "),h("div",{class:"popitem",onClick:u,"data-number":"R"}," R "),h("div",{class:"popitem",onClick:u,"data-number":"S"}," S "),h("div",{class:"popitem",onClick:u,"data-number":"T"}," T "),h("div",{class:"popitem",onClick:u,"data-number":"U"}," U "),h("div",{class:"popitem",onClick:u,"data-number":"V"}," V "),h("div",{class:"popitem",onClick:u,"data-number":"W"}," W "),h("div",{class:"popitem",onClick:u,"data-number":"X"}," X "),h("div",{class:"popitem",onClick:u,"data-number":"Y"}," Y "),h("div",{class:"popitem",onClick:u,"data-number":"Z"}," Z "),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"港","data-unactive":i.value!=2?"unactive":""}," 港 ",10,Lu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"澳","data-unactive":i.value!=2?"unactive":""}," 澳 ",10,$u),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"学","data-unactive":i.value!=2?"unactive":""}," 学 ",10,Iu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"警","data-unactive":i.value!=2?"unactive":""}," 警 ",10,Mu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"使","data-unactive":i.value!=2?"unactive":""}," 使 ",10,Au),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"领","data-unactive":i.value!=2?"unactive":""}," 领 ",10,Ru),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"挂","data-unactive":i.value!=2?"unactive":""}," 挂 ",10,Du),h("div",{class:"popitem popitem-clear",onClick:d},[K(nn,{width:"16px"})])],2)],4)]),_:1},512))}}),Md="",ps=j(Fu,[["__scopeId","data-v-6e8b6f81"]]),sn=t=>(Sn("data-v-50f7545d"),t=t(),kn(),t),ju=sn(()=>h("div",{class:"title"},"车牌颜色",-1)),Vu={class:"plate-types"},zu=["onClick"],Hu=sn(()=>h("div",{class:"title"},"车牌号码",-1)),Bu={class:"plate-numbers"},Wu=sn(()=>h("div",{class:"dot"},"·",-1)),Gu=["onClick"],Uu=sn(()=>h("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),Ku=F({customOptions:{SVGCheck:fs,PlateKeyboard:ps},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=[{name:"蓝牌",style:"background-color: #0078f0;",completePlateLength:7},{name:"绿牌",style:"background-color: #00f08c;",completePlateLength:8},{name:"黄牌",style:"background-color: #fac800;",completePlateLength:7},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%);",completePlateLength:8},{name:"黑牌",style:"background-color: #222222;",completePlateLength:7}],i=E(),a=E(0),c=pe([]),l=E(-1),f=p=>{a.value=p,l.value<=r[p].completePlateLength&&c.length<r[p].completePlateLength?(l.value=c.length,i.value.open(),o("clear")):vt(c,c.slice(0,r[p].completePlateLength)),r[p].completePlateLength===c.length&&o("complete",r[a.value].name,c.join(""))},d=p=>{vt(c,c.slice(0,p)),l.value=Math.min(Math.max(0,l.value),p),i.value.open(),o("clear")},u=p=>{vt(c,p),l.value=c.length,c.length===r[a.value].completePlateLength&&o("complete",r[a.value].name,c.join(""))};return e({}),(p,g)=>(C(),N(ae,null,[h("div",Mn(p.$attrs,{class:"plate-mobile",style:{maxWidth:s.maxWidth}}),[ju,h("div",Vu,[(C(),N(ae,null,Be(r,(_,v)=>h("div",{key:v,class:R(v==a.value?"checked":""),onClick:S=>f(v)},[h("div",{style:k(_.style)},null,4),h("div",null,ne(_.name),1),h("div",null,[K(fs,{color:"#ffffff",width:"0.14rem"})])],10,zu)),64))]),Hu,h("div",Bu,[h("div",{onClick:g[0]||(g[0]=_=>d(0)),class:R(l.value==0?"current":"")},ne(c[0]),3),h("div",{onClick:g[1]||(g[1]=_=>d(1)),class:R(l.value==1?"current":"")},ne(c[1]),3),Wu,(C(!0),N(ae,null,Be(r[a.value].completePlateLength-2,_=>(C(),N("div",{key:_,class:R(_+1==l.value?"current":""),onClick:v=>d(_+1)},ne(c[_+1]),11,Gu))),128))]),Uu],16),K(ps,{ref_key:"plateKeyboardRef",ref:i,initPlates:c,completePlateLength:r[a.value].completePlateLength,onPlates:u},null,8,["initPlates","completePlateLength"])],64))}}),Ad="",qu=j(Ku,[["__scopeId","data-v-50f7545d"]]),Yu=["width","height"],Xu=["fill"],Zu=F({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:P.colorPrimary}},setup(t){const e=t;return(n,s)=>(C(),N("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[h("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,Xu)],8,Yu))}}),Rd="",ms=j(Zu,[["__scopeId","data-v-4747d4a7"]]),Ju=F({customOptions:{SVGDelete:ms},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:P.colorGrayFF},deleteColor:{default:P.colorRed},fontColor:{default:P.colorGrayFF},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=E(!1),i=()=>{o("delete"),r.value=!1},a=new ts;let c;const l=E();return H(l,()=>{l.value&&(c=a.capture(l.value,{slideLeft:(f,d)=>{r.value=!0},slideRight:(f,d)=>{r.value=!1}}))}),fo(()=>{c?.()}),e({}),(f,d)=>(C(),N("div",{class:"parent",ref_key:"item",ref:l,style:k({backgroundColor:s.bgColor})},[h("div",{class:"content",style:k({transition:"all ease-in "+s.transtionDuration,transform:r.value?"translate(-"+s.deleteWidth+", 0)":"translate(0, 0)"})},[G(f.$slots,"default",{},void 0,!0)],4),h("div",{class:"delete",onClick:i,style:k({backgroundColor:s.deleteColor,width:s.deleteWidth,transition:"all ease-in "+s.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+s.deleteWidth+", 0)"})},[K(ms,{color:s.fontColor},null,8,["color"])],4)],4))}}),Dd="",Qu=j(Ju,[["__scopeId","data-v-9ea935aa"]]),ed={class:"parent"},td=F({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(t,{expose:e,emit:n}){const s=t,o=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function r(d){return d.length>2?d.substring(0,2)+"·"+d.substring(2):d}function i(d){const u=o.filter(p=>p.name===d);return u.length?u[0]:i("未知")}const a=r(s.plate),c=E(i(s.plateType));let l=s.fontColor,f=s.fontSize;switch(s.displayType){case"dot":l=l??"#999999",f=f??"14px";break;case"chinese":l=l??"#333333",f=f??"20px";break}return e({}),(d,u)=>(C(),N("div",ed,[h("div",{class:R(["leading",s.displayType]),style:k(c.value.style)},ne(c.value.name),7),h("div",{class:"text",style:k({color:W(l),"font-size":W(f)})},ne(W(a)),5)]))}}),Fd="",nd=j(td,[["__scopeId","data-v-8d55b13b"]]),sd={class:"tab"},od=F({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(t,{expose:e}){return e({}),(n,s)=>(C(),N("div",sd,[G(n.$slots,"default",{},void 0,!0)]))}}),jd="",Wr=j(od,[["__scopeId","data-v-6589e7fa"]]),rd=["onClick"],id={class:"content"},ad=F({customOptions:{Tab:Wr},inheritAttrs:!0,__name:"Tabs",props:{initIndex:{default:0}},emits:["changedIndex"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=E(s.initIndex),i=pe([]),a=E(),c=E(0),l=E(0),f=E(0),d=E([]),u=[],p=ca(),g=p.default&&p.default();g&&(vt(i,g),S(r.value));const _=(m,b)=>{if(m){if(u.push({index:b,el:m}),u.length<i.length)return;d.value=u}};H([a,d],()=>{v()});function v(){if(a.value&&d.value.length){const m=a.value.getBoundingClientRect(),b=d.value[r.value].el.getBoundingClientRect();c.value=b.x-m.x,l.value=b.y-m.y+b.height,f.value=b.width}}function S(m){r.value=m,o("changedIndex",m),v()}return e({}),(m,b)=>(C(),N("div",null,[h("div",{class:"header",ref_key:"headerRef",ref:a},[(C(!0),N(ae,null,Be(i,(y,A)=>(C(),N("div",{key:y.props?.label,class:R(A==r.value?"active":""),onClick:w=>S(A)},[h("div",{ref_for:!0,ref:w=>_(w,A)},ne(y.props?.label),513)],10,rd))),128)),h("div",{class:"indicator",style:k({top:l.value+"px",left:c.value+"px",width:f.value+"px",height:"2px"})},null,4)],512),h("div",id,[(C(),ee(na,{include:"Tab"},[(C(),ee(Xi(i[r.value]),{key:i[r.value]?.props?.label}))],1024))])]))}}),Vd="",cd=j(ad,[["__scopeId","data-v-e8093875"]]);M.Button=Se,M.CheckboxGroup=jl,M.ColorPicker=lu,M.Dialog=ns,M.DialogLoading=bl,M.Icon=De,M.MapTianditu=mu,M.MobileLayout=sl,M.Overlay=bt,M.PlateDisplay=nd,M.PlateKeyboard=ps,M.PlateMobile=qu,M.Pop=ke,M.Popover=ss,M.RadioGroup=$l,M.ResizeObserver=hu,M.SVGCheck=fs,M.SVGCleanUp=nn,M.SVGDelete=ms,M.Select=Cl,M.SlideLeftItem=Qu,M.Switch=Sl,M.Tab=Wr,M.Tabs=cd,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})});
|
|
45
|
+
//# sourceMappingURL=zyzgroup_core_vue.umd.cjs.map
|