vue-launchers
Version:
16 lines (15 loc) • 9.14 MB
JavaScript
(function(i,$i){typeof exports=="object"&&typeof module<"u"?module.exports=$i(require("vue")):typeof define=="function"&&define.amd?define(["vue"],$i):(i=typeof globalThis<"u"?globalThis:i||self,i.vueVirtualList=$i(i.Vue))})(this,function(i){"use strict";var H_t=Object.defineProperty;var L_t=(i,$i,hd)=>$i in i?H_t(i,$i,{enumerable:!0,configurable:!0,writable:!0,value:hd}):i[$i]=hd;var ht=(i,$i,hd)=>(L_t(i,typeof $i!="symbol"?$i+"":$i,hd),hd);const $i=!!(typeof window<"u"&&window.document&&window.document.createElement);var hd=!1,Gk=!1;try{var Qk={get passive(){return hd=!0},get once(){return Gk=hd=!0}};$i&&(window.addEventListener("test",Qk,Qk),window.removeEventListener("test",Qk,!0))}catch{}function r4e(t,e,r,n){if(n&&typeof n!="boolean"&&!Gk){var a=n.once,o=n.capture,s=r;!Gk&&a&&(s=r.__once||function l(f){this.removeEventListener(e,l,o),r.call(this,f)},r.__once=s),t.addEventListener(e,s,hd?n:o)}t.addEventListener(e,r,n)}function n4e(t,e,r,n){var a=n&&typeof n!="boolean"?n.capture:n;t.removeEventListener(e,r,a),r.__once&&t.removeEventListener(e,r.__once,a)}function bQ(t,e,r,n){return r4e(t,e,r,n),function(){n4e(t,e,r,n)}}var yQ=new Date().getTime();function a4e(t){var e=new Date().getTime(),r=Math.max(0,16-(e-yQ)),n=setTimeout(t,r);return yQ=e,n}var o4e=["","webkit","moz","o","ms"],wQ=a4e,xQ=function(e,r){return e+(e?r[0].toUpperCase()+r.substr(1):r)+"AnimationFrame"};$i&&o4e.some(function(t){var e=xQ(t,"request");return e in window&&(xQ(t,"cancel"),wQ=function(n){return window[e](n)}),!!wQ}),Function.prototype.bind.call(Function.prototype.call,[].slice),Function.prototype.bind.call(Function.prototype.call,[].slice);function i4e(){return CQ().__VUE_DEVTOOLS_GLOBAL_HOOK__}function CQ(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const s4e=typeof Proxy=="function",l4e="devtools-plugin:setup",f4e="plugin:settings:set";let LA,Fk;function c4e(){var t;return LA!==void 0||(typeof window<"u"&&window.performance?(LA=!0,Fk=window.performance):typeof globalThis<"u"&&(!((t=globalThis.perf_hooks)===null||t===void 0)&&t.performance)?(LA=!0,Fk=globalThis.perf_hooks.performance):LA=!1),LA}function d4e(){return c4e()?Fk.now():Date.now()}class u4e{constructor(e,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=r;const n={};if(e.settings)for(const s in e.settings){const l=e.settings[s];n[s]=l.defaultValue}const a=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},n);try{const s=localStorage.getItem(a),l=JSON.parse(s);Object.assign(o,l)}catch{}this.fallbacks={getSettings(){return o},setSettings(s){try{localStorage.setItem(a,JSON.stringify(s))}catch{}o=s},now(){return d4e()}},r&&r.on(f4e,(s,l)=>{s===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(s,l)=>this.target?this.target.on[l]:(...f)=>{this.onQueue.push({method:l,args:f})}}),this.proxiedTarget=new Proxy({},{get:(s,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...f)=>(this.targetQueue.push({method:l,args:f,resolve:()=>{}}),this.fallbacks[l](...f)):(...f)=>new Promise(c=>{this.targetQueue.push({method:l,args:f,resolve:c})})})}async setRealTarget(e){this.target=e;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function Uk(t,e){const r=t,n=CQ(),a=i4e(),o=s4e&&r.enableEarlyProxy;if(a&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))a.emit(l4e,t,e);else{const s=o?new u4e(r,a):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:e,proxy:s}),s&&e(s.proxiedTarget)}}/*!
* vuex v4.1.0
* (c) 2022 Evan You
* @license MIT
*/var h4e="store";function ju(t,e){Object.keys(t).forEach(function(r){return e(t[r],r)})}function A4e(t){return t!==null&&typeof t=="object"}function p4e(t){return t&&typeof t.then=="function"}function Cf(t,e){if(!t)throw new Error("[vuex] "+e)}function v4e(t,e){return function(){return t(e)}}function kQ(t,e,r){return e.indexOf(t)<0&&(r&&r.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function MQ(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;h8(t,r,[],t._modules.root,!0),Xk(t,r,e)}function Xk(t,e,r){var n=t._state,a=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,s={},l={},f=i.effectScope(!0);f.run(function(){ju(o,function(c,d){s[d]=v4e(c,t),l[d]=i.computed(function(){return s[d]()}),Object.defineProperty(t.getters,d,{get:function(){return l[d].value},enumerable:!0})})}),t._state=i.reactive({data:e}),t._scope=f,t.strict&&w4e(t),n&&r&&t._withCommit(function(){n.data=null}),a&&a.stop()}function h8(t,e,r,n,a){var o=!r.length,s=t._modules.getNamespace(r);if(n.namespaced&&(t._modulesNamespaceMap[s]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+s+" for the namespaced module "+r.join("/")),t._modulesNamespaceMap[s]=n),!o&&!a){var l=Vk(e,r.slice(0,-1)),f=r[r.length-1];t._withCommit(function(){process.env.NODE_ENV!=="production"&&f in l&&console.warn('[vuex] state field "'+f+'" was overridden by a module with the same name at "'+r.join(".")+'"'),l[f]=n.state})}var c=n.context=m4e(t,s,r);n.forEachMutation(function(d,u){var h=s+u;g4e(t,h,d,c)}),n.forEachAction(function(d,u){var h=d.root?u:s+u,A=d.handler||d;b4e(t,h,A,c)}),n.forEachGetter(function(d,u){var h=s+u;y4e(t,h,d,c)}),n.forEachChild(function(d,u){h8(t,e,r.concat(u),d,a)})}function m4e(t,e,r){var n=e==="",a={dispatch:n?t.dispatch:function(o,s,l){var f=A8(o,s,l),c=f.payload,d=f.options,u=f.type;if((!d||!d.root)&&(u=e+u,process.env.NODE_ENV!=="production"&&!t._actions[u])){console.error("[vuex] unknown local action type: "+f.type+", global type: "+u);return}return t.dispatch(u,c)},commit:n?t.commit:function(o,s,l){var f=A8(o,s,l),c=f.payload,d=f.options,u=f.type;if((!d||!d.root)&&(u=e+u,process.env.NODE_ENV!=="production"&&!t._mutations[u])){console.error("[vuex] unknown local mutation type: "+f.type+", global type: "+u);return}t.commit(u,c,d)}};return Object.defineProperties(a,{getters:{get:n?function(){return t.getters}:function(){return EQ(t,e)}},state:{get:function(){return Vk(t.state,r)}}}),a}function EQ(t,e){if(!t._makeLocalGettersCache[e]){var r={},n=e.length;Object.keys(t.getters).forEach(function(a){if(a.slice(0,n)===e){var o=a.slice(n);Object.defineProperty(r,o,{get:function(){return t.getters[a]},enumerable:!0})}}),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}function g4e(t,e,r,n){var a=t._mutations[e]||(t._mutations[e]=[]);a.push(function(s){r.call(t,n.state,s)})}function b4e(t,e,r,n){var a=t._actions[e]||(t._actions[e]=[]);a.push(function(s){var l=r.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},s);return p4e(l)||(l=Promise.resolve(l)),t._devtoolHook?l.catch(function(f){throw t._devtoolHook.emit("vuex:error",f),f}):l})}function y4e(t,e,r,n){if(t._wrappedGetters[e]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+e);return}t._wrappedGetters[e]=function(o){return r(n.state,n.getters,o.state,o.getters)}}function w4e(t){i.watch(function(){return t._state.data},function(){process.env.NODE_ENV!=="production"&&Cf(t._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function Vk(t,e){return e.reduce(function(r,n){return r[n]},t)}function A8(t,e,r){return A4e(t)&&t.type&&(r=e,e=t,t=t.type),process.env.NODE_ENV!=="production"&&Cf(typeof t=="string","expects string as the type, but found "+typeof t+"."),{type:t,payload:e,options:r}}var x4e="vuex bindings",BQ="vuex:mutations",Yk="vuex:actions",jA="vuex",C4e=0;function k4e(t,e){Uk({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[x4e]},function(r){r.addTimelineLayer({id:BQ,label:"Vuex Mutations",color:PQ}),r.addTimelineLayer({id:Yk,label:"Vuex Actions",color:PQ}),r.addInspector({id:jA,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(n){if(n.app===t&&n.inspectorId===jA)if(n.filter){var a=[];TQ(a,e._modules.root,n.filter,""),n.rootNodes=a}else n.rootNodes=[DQ(e._modules.root,"")]}),r.on.getInspectorState(function(n){if(n.app===t&&n.inspectorId===jA){var a=n.nodeId;EQ(e,a),n.state=B4e(z4e(e._modules,a),a==="root"?e.getters:e._makeLocalGettersCache,a)}}),r.on.editInspectorState(function(n){if(n.app===t&&n.inspectorId===jA){var a=n.nodeId,o=n.path;a!=="root"&&(o=a.split("/").filter(Boolean).concat(o)),e._withCommit(function(){n.set(e._state.data,o,n.state.value)})}}),e.subscribe(function(n,a){var o={};n.payload&&(o.payload=n.payload),o.state=a,r.notifyComponentUpdate(),r.sendInspectorTree(jA),r.sendInspectorState(jA),r.addTimelineEvent({layerId:BQ,event:{time:Date.now(),title:n.type,data:o}})}),e.subscribeAction({before:function(n,a){var o={};n.payload&&(o.payload=n.payload),n._id=C4e++,n._time=Date.now(),o.state=a,r.addTimelineEvent({layerId:Yk,event:{time:n._time,title:n.type,groupId:n._id,subtitle:"start",data:o}})},after:function(n,a){var o={},s=Date.now()-n._time;o.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},n.payload&&(o.payload=n.payload),o.state=a,r.addTimelineEvent({layerId:Yk,event:{time:Date.now(),title:n.type,groupId:n._id,subtitle:"end",data:o}})}})})}var PQ=8702998,M4e=6710886,E4e=16777215,zQ={label:"namespaced",textColor:E4e,backgroundColor:M4e};function NQ(t){return t&&t!=="root"?t.split("/").slice(-2,-1)[0]:"Root"}function DQ(t,e){return{id:e||"root",label:NQ(e),tags:t.namespaced?[zQ]:[],children:Object.keys(t._children).map(function(r){return DQ(t._children[r],e+r+"/")})}}function TQ(t,e,r,n){n.includes(r)&&t.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:e.namespaced?[zQ]:[]}),Object.keys(e._children).forEach(function(a){TQ(t,e._children[a],r,n+a+"/")})}function B4e(t,e,r){e=r==="root"?e:e[r];var n=Object.keys(e),a={state:Object.keys(t.state).map(function(s){return{key:s,editable:!0,value:t.state[s]}})};if(n.length){var o=P4e(e);a.getters=Object.keys(o).map(function(s){return{key:s.endsWith("/")?NQ(s):s,editable:!1,value:Zk(function(){return o[s]})}})}return a}function P4e(t){var e={};return Object.keys(t).forEach(function(r){var n=r.split("/");if(n.length>1){var a=e,o=n.pop();n.forEach(function(s){a[s]||(a[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),a=a[s]._custom.value}),a[o]=Zk(function(){return t[r]})}else e[r]=Zk(function(){return t[r]})}),e}function z4e(t,e){var r=e.split("/").filter(function(n){return n});return r.reduce(function(n,a,o){var s=n[a];if(!s)throw new Error('Missing module "'+a+'" for path "'+e+'".');return o===r.length-1?s:s._children},e==="root"?t:t.root._children)}function Zk(t){try{return t()}catch(e){return e}}var kf=function(e,r){this.runtime=r,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=(typeof n=="function"?n():n)||{}},SQ={namespaced:{configurable:!0}};SQ.namespaced.get=function(){return!!this._rawModule.namespaced},kf.prototype.addChild=function(e,r){this._children[e]=r},kf.prototype.removeChild=function(e){delete this._children[e]},kf.prototype.getChild=function(e){return this._children[e]},kf.prototype.hasChild=function(e){return e in this._children},kf.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},kf.prototype.forEachChild=function(e){ju(this._children,e)},kf.prototype.forEachGetter=function(e){this._rawModule.getters&&ju(this._rawModule.getters,e)},kf.prototype.forEachAction=function(e){this._rawModule.actions&&ju(this._rawModule.actions,e)},kf.prototype.forEachMutation=function(e){this._rawModule.mutations&&ju(this._rawModule.mutations,e)},Object.defineProperties(kf.prototype,SQ);var Ou=function(e){this.register([],e,!1)};Ou.prototype.get=function(e){return e.reduce(function(r,n){return r.getChild(n)},this.root)},Ou.prototype.getNamespace=function(e){var r=this.root;return e.reduce(function(n,a){return r=r.getChild(a),n+(r.namespaced?a+"/":"")},"")},Ou.prototype.update=function(e){IQ([],this.root,e)},Ou.prototype.register=function(e,r,n){var a=this;n===void 0&&(n=!0),process.env.NODE_ENV!=="production"&&LQ(e,r);var o=new kf(r,n);if(e.length===0)this.root=o;else{var s=this.get(e.slice(0,-1));s.addChild(e[e.length-1],o)}r.modules&&ju(r.modules,function(l,f){a.register(e.concat(f),l,n)})},Ou.prototype.unregister=function(e){var r=this.get(e.slice(0,-1)),n=e[e.length-1],a=r.getChild(n);if(!a){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+n+"', which is not registered");return}a.runtime&&r.removeChild(n)},Ou.prototype.isRegistered=function(e){var r=this.get(e.slice(0,-1)),n=e[e.length-1];return r?r.hasChild(n):!1};function IQ(t,e,r){if(process.env.NODE_ENV!=="production"&&LQ(t,r),e.update(r),r.modules)for(var n in r.modules){if(!e.getChild(n)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+n+"' on hot reloading, manual reload is needed");return}IQ(t.concat(n),e.getChild(n),r.modules[n])}}var RQ={assert:function(t){return typeof t=="function"},expected:"function"},N4e={assert:function(t){return typeof t=="function"||typeof t=="object"&&typeof t.handler=="function"},expected:'function or object with "handler" function'},HQ={getters:RQ,mutations:RQ,actions:N4e};function LQ(t,e){Object.keys(HQ).forEach(function(r){if(e[r]){var n=HQ[r];ju(e[r],function(a,o){Cf(n.assert(a),D4e(t,r,o,a,n.expected))})}})}function D4e(t,e,r,n,a){var o=e+" should be "+a+' but "'+e+"."+r+'"';return t.length>0&&(o+=' in module "'+t.join(".")+'"'),o+=" is "+JSON.stringify(n)+".",o}function T4e(t){return new es(t)}var es=function t(e){var r=this;e===void 0&&(e={}),process.env.NODE_ENV!=="production"&&(Cf(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Cf(this instanceof t,"store must be called with the new operator."));var n=e.plugins;n===void 0&&(n=[]);var a=e.strict;a===void 0&&(a=!1);var o=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Ou(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var s=this,l=this,f=l.dispatch,c=l.commit;this.dispatch=function(h,A){return f.call(s,h,A)},this.commit=function(h,A,p){return c.call(s,h,A,p)},this.strict=a;var d=this._modules.root.state;h8(this,d,[],this._modules.root),Xk(this,d),n.forEach(function(u){return u(r)})},qk={state:{configurable:!0}};es.prototype.install=function(e,r){e.provide(r||h4e,this),e.config.globalProperties.$store=this;var n=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;n&&k4e(e,this)},qk.state.get=function(){return this._state.data},qk.state.set=function(t){process.env.NODE_ENV!=="production"&&Cf(!1,"use store.replaceState() to explicit replace store state.")},es.prototype.commit=function(e,r,n){var a=this,o=A8(e,r,n),s=o.type,l=o.payload,f=o.options,c={type:s,payload:l},d=this._mutations[s];if(!d){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+s);return}this._withCommit(function(){d.forEach(function(h){h(l)})}),this._subscribers.slice().forEach(function(u){return u(c,a.state)}),process.env.NODE_ENV!=="production"&&f&&f.silent&&console.warn("[vuex] mutation type: "+s+". Silent option has been removed. Use the filter functionality in the vue-devtools")},es.prototype.dispatch=function(e,r){var n=this,a=A8(e,r),o=a.type,s=a.payload,l={type:o,payload:s},f=this._actions[o];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+o);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(l,n.state)})}catch(d){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var c=f.length>1?Promise.all(f.map(function(d){return d(s)})):f[0](s);return new Promise(function(d,u){c.then(function(h){try{n._actionSubscribers.filter(function(A){return A.after}).forEach(function(A){return A.after(l,n.state)})}catch(A){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(A))}d(h)},function(h){try{n._actionSubscribers.filter(function(A){return A.error}).forEach(function(A){return A.error(l,n.state,h)})}catch(A){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(A))}u(h)})})},es.prototype.subscribe=function(e,r){return kQ(e,this._subscribers,r)},es.prototype.subscribeAction=function(e,r){var n=typeof e=="function"?{before:e}:e;return kQ(n,this._actionSubscribers,r)},es.prototype.watch=function(e,r,n){var a=this;return process.env.NODE_ENV!=="production"&&Cf(typeof e=="function","store.watch only accepts a function."),i.watch(function(){return e(a.state,a.getters)},r,Object.assign({},n))},es.prototype.replaceState=function(e){var r=this;this._withCommit(function(){r._state.data=e})},es.prototype.registerModule=function(e,r,n){n===void 0&&(n={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(Cf(Array.isArray(e),"module path must be a string or an Array."),Cf(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,r),h8(this,this.state,e,this._modules.get(e),n.preserveState),Xk(this,this.state)},es.prototype.unregisterModule=function(e){var r=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Cf(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var n=Vk(r.state,e.slice(0,-1));delete n[e[e.length-1]]}),MQ(this)},es.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Cf(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},es.prototype.hotUpdate=function(e){this._modules.update(e),MQ(this,!0)},es.prototype._withCommit=function(e){var r=this._committing;this._committing=!0,e(),this._committing=r},Object.defineProperties(es.prototype,qk);const ts=T4e({state:{count:null,userId:null,receiveResponse:null,HworkId:"",reportToken:"",isKeepAlive:!1,recruitY:"",localApplication:[],recentApplications:[],idle:"995887235295133696"},mutations:{SET_COUNT:(t,e)=>{t.count=e},SET_USERID:(t,e)=>{t.userId=e},SET_RESPONSE:(t,e)=>{t.receiveResponse=e},SET_HWORK_ID:(t,e)=>{t.HworkId=e},SET_REPORT:(t,e)=>{t.reportToken=e},SET_KEEP_ALIVE:(t,e)=>{t.isKeepAlive=e},changeRecruitY:(t,e)=>{t.recruitY=e},SET_LOCAL_APPLICATION:(t,e)=>{console.log("存储的本地应用",e),t.localApplication=e,console.log("存储的本地应用",t.localApplication)},SET_RERCENT_APPLICATIONS:(t,e)=>{console.log("data",e);const r=new Date().toLocaleString("zh-CN",{hour12:!1});e.openTime=r;const n=e.appName;let a=-1;for(let o=0;o<t.recentApplications.length;o++)if(t.recentApplications[o].appName===n){a=o;break}console.log("foundIndex",a),a!==-1&&t.recentApplications.splice(a,1),t.recentApplications.length>7?(t.recentApplications.unshift(e),t.recentApplications.pop()):t.recentApplications.unshift(e),console.log("最近存储的应用信息",t.recentApplications)},clearRecentApplications:t=>{t.recentApplications=[]},setIdle:(t,e)=>{console.log("设置空闲状态",e),t.idle=e}}});function S4e(t){let e=".",r="__",n="--",a;if(t){let p=t.blockPrefix;p&&(e=p),p=t.elementPrefix,p&&(r=p),p=t.modifierPrefix,p&&(n=p)}const o={install(p){a=p.c;const v=p.context;v.bem={},v.bem.b=null,v.bem.els=null}};function s(p){let v,m;return{before(g){v=g.bem.b,m=g.bem.els,g.bem.els=null},after(g){g.bem.b=v,g.bem.els=m},$({context:g,props:b}){return p=typeof p=="string"?p:p({context:g,props:b}),g.bem.b=p,`${(b==null?void 0:b.bPrefix)||e}${g.bem.b}`}}}function l(p){let v;return{before(m){v=m.bem.els},after(m){m.bem.els=v},$({context:m,props:g}){return p=typeof p=="string"?p:p({context:m,props:g}),m.bem.els=p.split(",").map(b=>b.trim()),m.bem.els.map(b=>`${(g==null?void 0:g.bPrefix)||e}${m.bem.b}${r}${b}`).join(", ")}}}function f(p){return{$({context:v,props:m}){p=typeof p=="string"?p:p({context:v,props:m});const g=p.split(",").map(w=>w.trim());function b(w){return g.map(k=>`&${(m==null?void 0:m.bPrefix)||e}${v.bem.b}${w!==void 0?`${r}${w}`:""}${n}${k}`).join(", ")}const y=v.bem.els;if(y!==null){if(process.env.NODE_ENV!=="production"&&y.length>=2)throw Error(`[css-render/plugin-bem]: m(${p}) is invalid, using modifier inside multiple elements is not allowed`);return b(y[0])}else return b()}}}function c(p){return{$({context:v,props:m}){p=typeof p=="string"?p:p({context:v,props:m});const g=v.bem.els;if(process.env.NODE_ENV!=="production"&&g!==null&&g.length>=2)throw Error(`[css-render/plugin-bem]: notM(${p}) is invalid, using modifier inside multiple elements is not allowed`);return`&:not(${(m==null?void 0:m.bPrefix)||e}${v.bem.b}${g!==null&&g.length>0?`${r}${g[0]}`:""}${n}${p})`}}}return Object.assign(o,{cB:(...p)=>a(s(p[0]),p[1],p[2]),cE:(...p)=>a(l(p[0]),p[1],p[2]),cM:(...p)=>a(f(p[0]),p[1],p[2]),cNotM:(...p)=>a(c(p[0]),p[1],p[2])}),o}function I4e(t){let e=0;for(let r=0;r<t.length;++r)t[r]==="&"&&++e;return e}const jQ=/\s*,(?![^(]*\))\s*/g,R4e=/\s+/g;function H4e(t,e){const r=[];return e.split(jQ).forEach(n=>{let a=I4e(n);if(a){if(a===1){t.forEach(s=>{r.push(n.replace("&",s))});return}}else{t.forEach(s=>{r.push((s&&s+" ")+n)});return}let o=[n];for(;a--;){const s=[];o.forEach(l=>{t.forEach(f=>{s.push(l.replace("&",f))})}),o=s}o.forEach(s=>r.push(s))}),r}function L4e(t,e){const r=[];return e.split(jQ).forEach(n=>{t.forEach(a=>{r.push((a&&a+" ")+n)})}),r}function j4e(t){let e=[""];return t.forEach(r=>{r=r&&r.trim(),r&&(r.includes("&")?e=H4e(e,r):e=L4e(e,r))}),e.join(", ").replace(R4e," ")}function OQ(t){if(!t)return;const e=t.parentElement;e&&e.removeChild(t)}function p8(t,e){return(e??document.head).querySelector(`style[cssr-id="${t}"]`)}function O4e(t){const e=document.createElement("style");return e.setAttribute("cssr-id",t),e}function v8(t){return t?/^\s*@(s|m)/.test(t):!1}const G4e=/[A-Z]/g;function GQ(t){return t.replace(G4e,e=>"-"+e.toLowerCase())}function Q4e(t,e=" "){return typeof t=="object"&&t!==null?` {
`+Object.entries(t).map(r=>e+` ${GQ(r[0])}: ${r[1]};`).join(`
`)+`
`+e+"}":`: ${t};`}function F4e(t,e,r){return typeof t=="function"?t({context:e.context,props:r}):t}function QQ(t,e,r,n){if(!e)return"";const a=F4e(e,r,n);if(!a)return"";if(typeof a=="string")return`${t} {
${a}
}`;const o=Object.keys(a);if(o.length===0)return r.config.keepEmptyBlock?t+` {
}`:"";const s=t?[t+" {"]:[];return o.forEach(l=>{const f=a[l];if(l==="raw"){s.push(`
`+f+`
`);return}l=GQ(l),f!=null&&s.push(` ${l}${Q4e(f)}`)}),t&&s.push("}"),s.join(`
`)}function Wk(t,e,r){t&&t.forEach(n=>{if(Array.isArray(n))Wk(n,e,r);else if(typeof n=="function"){const a=n(e);Array.isArray(a)?Wk(a,e,r):a&&r(a)}else n&&r(n)})}function FQ(t,e,r,n,a){const o=t.$;let s="";if(!o||typeof o=="string")v8(o)?s=o:e.push(o);else if(typeof o=="function"){const c=o({context:n.context,props:a});v8(c)?s=c:e.push(c)}else if(o.before&&o.before(n.context),!o.$||typeof o.$=="string")v8(o.$)?s=o.$:e.push(o.$);else if(o.$){const c=o.$({context:n.context,props:a});v8(c)?s=c:e.push(c)}const l=j4e(e),f=QQ(l,t.props,n,a);s?r.push(`${s} {`):f.length&&r.push(f),t.children&&Wk(t.children,{context:n.context,props:a},c=>{if(typeof c=="string"){const d=QQ(l,{raw:c},n,a);r.push(d)}else FQ(c,e,r,n,a)}),e.pop(),s&&r.push("}"),o&&o.after&&o.after(n.context)}function U4e(t,e,r){const n=[];return FQ(t,[],n,e,r),n.join(`
`)}function Am(t){for(var e=0,r,n=0,a=t.length;a>=4;++n,a-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(a){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function X4e(t,e,r,n){const{els:a}=e;if(r===void 0)a.forEach(OQ),e.els=[];else{const o=p8(r,n);o&&a.includes(o)&&(OQ(o),e.els=a.filter(s=>s!==o))}}function UQ(t,e){t.push(e)}function V4e(t,e,r,n,a,o,s,l,f){let c;if(r===void 0&&(c=e.render(n),r=Am(c)),f){f.adapter(r,c??e.render(n));return}l===void 0&&(l=document.head);const d=p8(r,l);if(d!==null&&!o)return d;const u=d??O4e(r);if(c===void 0&&(c=e.render(n)),u.textContent=c,d!==null)return d;if(s){const h=l.querySelector(`meta[name="${s}"]`);if(h)return l.insertBefore(u,h),UQ(e.els,u),u}return a?l.insertBefore(u,l.querySelector("style, link")):l.appendChild(u),UQ(e.els,u),u}function Y4e(t){return U4e(this,this.instance,t)}function Z4e(t={}){const{id:e,ssr:r,props:n,head:a=!1,force:o=!1,anchorMetaName:s,parent:l}=t;return V4e(this.instance,this,e,n,a,o,s,l,r)}function q4e(t={}){const{id:e,parent:r}=t;X4e(this.instance,this,e,r)}const m8=function(t,e,r,n){return{instance:t,$:e,props:r,children:n,els:[],render:Y4e,mount:Z4e,unmount:q4e}},W4e=function(t,e,r,n){return Array.isArray(e)?m8(t,{$:null},null,e):Array.isArray(r)?m8(t,e,null,r):Array.isArray(n)?m8(t,e,r,n):m8(t,e,r,null)};function XQ(t={}){const e={c:(...r)=>W4e(e,...r),use:(r,...n)=>r.install(e,...n),find:p8,context:{},config:t};return e}function J4e(t,e){if(t===void 0)return!1;if(e){const{context:{ids:r}}=e;return r.has(t)}return p8(t)!==null}const pm=".n-",K4e="__",_4e="--",VQ=XQ(),YQ=S4e({blockPrefix:pm,elementPrefix:K4e,modifierPrefix:_4e});VQ.use(YQ);const{c:W,find:O_t}=VQ,{cB:O,cE:$,cM:_,cNotM:hr}=YQ;function Ad(t){return W(({props:{bPrefix:e}})=>`${e||pm}modal, ${e||pm}drawer`,[t])}function I1(t){return W(({props:{bPrefix:e}})=>`${e||pm}popover`,[t])}function ZQ(t){return W(({props:{bPrefix:e}})=>`&${e||pm}modal`,t)}const $4e=(...t)=>W(">",[O(...t)]);function Fe(t,e){return t+(e==="default"?"":e.replace(/^[a-z]/,r=>r.toUpperCase()))}let g8=[];const qQ=new WeakMap;function e5e(){g8.forEach(t=>t(...qQ.get(t))),g8=[]}function OA(t,...e){qQ.set(t,e),!g8.includes(t)&&g8.push(t)===1&&requestAnimationFrame(e5e)}function t5e(t){return t.nodeType===9?null:t.parentNode}function WQ(t){if(t===null)return null;const e=t5e(t);if(e===null)return null;if(e.nodeType===9)return document.documentElement;if(e.nodeType===1){const{overflow:r,overflowX:n,overflowY:a}=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(r+a+n))return e}return WQ(e)}function r5e(t){return typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t}function oo(t,e){let{target:r}=t;for(;r;){if(r.dataset&&r.dataset[e]!==void 0)return!0;r=r.parentElement}return!1}function Mf(t){return t.composedPath()[0]||null}function n5e(t){if(typeof t=="number")return{"":t.toString()};const e={};return t.split(/ +/).forEach(r=>{if(r==="")return;const[n,a]=r.split(":");a===void 0?e[""]=n:e[n]=a}),e}function GA(t,e){var r;if(t==null)return;const n=n5e(t);if(e===void 0)return n[""];if(typeof e=="string")return(r=n[e])!==null&&r!==void 0?r:n[""];if(Array.isArray(e)){for(let a=e.length-1;a>=0;--a){const o=e[a];if(o in n)return n[o]}return n[""]}else{let a,o=-1;return Object.keys(n).forEach(s=>{const l=Number(s);!Number.isNaN(l)&&e>=l&&l>=o&&(o=l,a=n[s])}),a}}function la(t){return typeof t=="string"?t.endsWith("px")?Number(t.slice(0,t.length-2)):Number(t):t}function zn(t){if(t!=null)return typeof t=="number"?`${t}px`:t.endsWith("px")?t:`${t}px`}function wa(t,e){const r=t.trim().split(/\s+/g),n={top:r[0]};switch(r.length){case 1:n.right=r[0],n.bottom=r[0],n.left=r[0];break;case 2:n.right=r[1],n.left=r[1],n.bottom=r[0];break;case 3:n.right=r[1],n.bottom=r[2],n.left=r[1];break;case 4:n.right=r[1],n.bottom=r[2],n.left=r[3];break;default:throw new Error("[seemly/getMargin]:"+t+" is not a valid value.")}return e===void 0?n:n[e]}function a5e(t,e){const[r,n]=t.split(" ");return e?e==="row"?r:n:{row:r,col:n||r}}const JQ={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function KQ(t,e,r){e/=100,r/=100;const n=e*Math.min(r,1-r)+r;return[t,n?(2-2*r/n)*100:0,n*100]}function b8(t,e,r){e/=100,r/=100;const n=r-r*e/2,a=Math.min(n,1-n);return[t,a?(r-n)/a*100:0,n*100]}function pd(t,e,r){e/=100,r/=100;let n=(a,o=(a+t/60)%6)=>r-r*e*Math.max(Math.min(o,4-o,1),0);return[n(5)*255,n(3)*255,n(1)*255]}function Jk(t,e,r){t/=255,e/=255,r/=255;let n=Math.max(t,e,r),a=n-Math.min(t,e,r),o=a&&(n==t?(e-r)/a:n==e?2+(r-t)/a:4+(t-e)/a);return[60*(o<0?o+6:o),n&&a/n*100,n*100]}function Kk(t,e,r){t/=255,e/=255,r/=255;let n=Math.max(t,e,r),a=n-Math.min(t,e,r),o=1-Math.abs(n+n-a-1),s=a&&(n==t?(e-r)/a:n==e?2+(r-t)/a:4+(t-e)/a);return[60*(s<0?s+6:s),o?a/o*100:0,(n+n-a)*50]}function y8(t,e,r){e/=100,r/=100;let n=e*Math.min(r,1-r),a=(o,s=(o+t/30)%12)=>r-n*Math.max(Math.min(s-3,9-s,1),-1);return[a(0)*255,a(8)*255,a(4)*255]}const cc="^\\s*",dc="\\s*$",R1="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Ts="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Gu="([0-9A-Fa-f])",Qu="([0-9A-Fa-f]{2})",_Q=new RegExp(`${cc}hsl\\s*\\(${Ts},${R1},${R1}\\)${dc}`),$Q=new RegExp(`${cc}hsv\\s*\\(${Ts},${R1},${R1}\\)${dc}`),eF=new RegExp(`${cc}hsla\\s*\\(${Ts},${R1},${R1},${Ts}\\)${dc}`),tF=new RegExp(`${cc}hsva\\s*\\(${Ts},${R1},${R1},${Ts}\\)${dc}`),o5e=new RegExp(`${cc}rgb\\s*\\(${Ts},${Ts},${Ts}\\)${dc}`),i5e=new RegExp(`${cc}rgba\\s*\\(${Ts},${Ts},${Ts},${Ts}\\)${dc}`),_k=new RegExp(`${cc}#${Gu}${Gu}${Gu}${dc}`),$k=new RegExp(`${cc}#${Qu}${Qu}${Qu}${dc}`),eM=new RegExp(`${cc}#${Gu}${Gu}${Gu}${Gu}${dc}`),tM=new RegExp(`${cc}#${Qu}${Qu}${Qu}${Qu}${dc}`);function rs(t){return parseInt(t,16)}function Fu(t){try{let e;if(e=eF.exec(t))return[uc(e[1]),so(e[5]),so(e[9]),vd(e[13])];if(e=_Q.exec(t))return[uc(e[1]),so(e[5]),so(e[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${t}.`)}catch(e){throw e}}function H1(t){try{let e;if(e=tF.exec(t))return[uc(e[1]),so(e[5]),so(e[9]),vd(e[13])];if(e=$Q.exec(t))return[uc(e[1]),so(e[5]),so(e[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${t}.`)}catch(e){throw e}}function io(t){try{let e;if(e=$k.exec(t))return[rs(e[1]),rs(e[2]),rs(e[3]),1];if(e=o5e.exec(t))return[za(e[1]),za(e[5]),za(e[9]),1];if(e=i5e.exec(t))return[za(e[1]),za(e[5]),za(e[9]),vd(e[13])];if(e=_k.exec(t))return[rs(e[1]+e[1]),rs(e[2]+e[2]),rs(e[3]+e[3]),1];if(e=tM.exec(t))return[rs(e[1]),rs(e[2]),rs(e[3]),vd(rs(e[4])/255)];if(e=eM.exec(t))return[rs(e[1]+e[1]),rs(e[2]+e[2]),rs(e[3]+e[3]),vd(rs(e[4]+e[4])/255)];if(t in JQ)return io(JQ[t]);if(_Q.test(t)||eF.test(t)){const[r,n,a,o]=Fu(t);return[...y8(r,n,a),o]}else if($Q.test(t)||tF.test(t)){const[r,n,a,o]=H1(t);return[...pd(r,n,a),o]}throw new Error(`[seemly/rgba]: Invalid color value ${t}.`)}catch(e){throw e}}function s5e(t){return t>1?1:t<0?0:t}function l5e(t,e,r){return`rgb(${za(t)}, ${za(e)}, ${za(r)})`}function rM(t,e,r,n){return`rgba(${za(t)}, ${za(e)}, ${za(r)}, ${s5e(n)})`}function nM(t,e,r,n,a){return za((t*e*(1-n)+r*n)/a)}function Yt(t,e){Array.isArray(t)||(t=io(t)),Array.isArray(e)||(e=io(e));const r=t[3],n=e[3],a=vd(r+n-r*n);return rM(nM(t[0],r,e[0],n,a),nM(t[1],r,e[1],n,a),nM(t[2],r,e[2],n,a),a)}function vt(t,e){const[r,n,a,o=1]=Array.isArray(t)?t:io(t);return typeof e.alpha=="number"?rM(r,n,a,e.alpha):rM(r,n,a,o)}function Xa(t,e){const[r,n,a,o=1]=Array.isArray(t)?t:io(t),{lightness:s=1,alpha:l=1}=e;return hc([r*s,n*s,a*s,o*l])}function vd(t){const e=Math.round(Number(t)*100)/100;return e>1?1:e<0?0:e}function uc(t){const e=Math.round(Number(t));return e>=360||e<0?0:e}function za(t){const e=Math.round(Number(t));return e>255?255:e<0?0:e}function so(t){const e=Math.round(Number(t));return e>100?100:e<0?0:e}function aM(t){const[e,r,n]=Array.isArray(t)?t:io(t);return l5e(e,r,n)}function hc(t){const[e,r,n]=t;return 3 in t?`rgba(${za(e)}, ${za(r)}, ${za(n)}, ${vd(t[3])})`:`rgba(${za(e)}, ${za(r)}, ${za(n)}, 1)`}function oM(t){return`hsv(${uc(t[0])}, ${so(t[1])}%, ${so(t[2])}%)`}function Uu(t){const[e,r,n]=t;return 3 in t?`hsva(${uc(e)}, ${so(r)}%, ${so(n)}%, ${vd(t[3])})`:`hsva(${uc(e)}, ${so(r)}%, ${so(n)}%, 1)`}function iM(t){return`hsl(${uc(t[0])}, ${so(t[1])}%, ${so(t[2])}%)`}function L1(t){const[e,r,n]=t;return 3 in t?`hsla(${uc(e)}, ${so(r)}%, ${so(n)}%, ${vd(t[3])})`:`hsla(${uc(e)}, ${so(r)}%, ${so(n)}%, 1)`}function j1(t){if(typeof t=="string"){let n;if(n=$k.exec(t))return`${n[0]}FF`;if(n=tM.exec(t))return n[0];if(n=_k.exec(t))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}FF`;if(n=eM.exec(t))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}${n[4]}${n[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${t}.`)}const e=`#${t.slice(0,3).map(n=>za(n).toString(16).toUpperCase().padStart(2,"0")).join("")}`,r=t.length===3?"FF":za(t[3]*255).toString(16).padStart(2,"0").toUpperCase();return e+r}function vm(t){if(typeof t=="string"){let e;if(e=$k.exec(t))return e[0];if(e=tM.exec(t))return e[0].slice(0,7);if(e=_k.exec(t)||eM.exec(t))return`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${t}.`)}return`#${t.slice(0,3).map(e=>za(e).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function ns(t=8){return Math.random().toString(16).slice(2,2+t)}function mm(t,e){const r=[];for(let n=0;n<t;++n)r.push(e);return r}function f5e(t,e){const r=[];if(!e){for(let n=0;n<t;++n)r.push(n);return r}for(let n=0;n<t;++n)r.push(e(n));return r}function w8(t){return t.composedPath()[0]}const c5e={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function d5e(t,e,r){if(t==="mousemoveoutside"){const n=a=>{e.contains(w8(a))||r(a)};return{mousemove:n,touchstart:n}}else if(t==="clickoutside"){let n=!1;const a=s=>{n=!e.contains(w8(s))},o=s=>{n&&(e.contains(w8(s))||r(s))};return{mousedown:a,mouseup:o,touchstart:a,touchend:o}}return console.error(`[evtd/create-trap-handler]: name \`${t}\` is invalid. This could be a bug of evtd.`),{}}function rF(t,e,r){const n=c5e[t];let a=n.get(e);a===void 0&&n.set(e,a=new WeakMap);let o=a.get(r);return o===void 0&&a.set(r,o=d5e(t,e,r)),o}function u5e(t,e,r,n){if(t==="mousemoveoutside"||t==="clickoutside"){const a=rF(t,e,r);return Object.keys(a).forEach(o=>{Br(o,document,a[o],n)}),!0}return!1}function h5e(t,e,r,n){if(t==="mousemoveoutside"||t==="clickoutside"){const a=rF(t,e,r);return Object.keys(a).forEach(o=>{Pr(o,document,a[o],n)}),!0}return!1}function A5e(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const t=new WeakMap,e=new WeakMap;function r(){t.set(this,!0)}function n(){t.set(this,!0),e.set(this,!0)}function a(M,P,E){const B=M[P];return M[P]=function(){return E.apply(M,arguments),B.apply(M,arguments)},M}function o(M,P){M[P]=Event.prototype[P]}const s=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function f(){var M;return(M=s.get(this))!==null&&M!==void 0?M:null}function c(M,P){l!==void 0&&Object.defineProperty(M,"currentTarget",{configurable:!0,enumerable:!0,get:P??l.get})}const d={bubble:{},capture:{}},u={};function h(){const M=function(P){const{type:E,eventPhase:B,bubbles:N}=P,D=w8(P);if(B===2)return;const T=B===1?"capture":"bubble";let I=D;const R=[];for(;I===null&&(I=window),R.push(I),I!==window;)I=I.parentNode||null;const H=d.capture[E],j=d.bubble[E];if(a(P,"stopPropagation",r),a(P,"stopImmediatePropagation",n),c(P,f),T==="capture"){if(H===void 0)return;for(let L=R.length-1;L>=0&&!t.has(P);--L){const Y=R[L],K=H.get(Y);if(K!==void 0){s.set(P,Y);for(const F of K){if(e.has(P))break;F(P)}}if(L===0&&!N&&j!==void 0){const F=j.get(Y);if(F!==void 0)for(const X of F){if(e.has(P))break;X(P)}}}}else if(T==="bubble"){if(j===void 0)return;for(let L=0;L<R.length&&!t.has(P);++L){const Y=R[L],K=j.get(Y);if(K!==void 0){s.set(P,Y);for(const F of K){if(e.has(P))break;F(P)}}}}o(P,"stopPropagation"),o(P,"stopImmediatePropagation"),c(P)};return M.displayName="evtdUnifiedHandler",M}function A(){const M=function(P){const{type:E,eventPhase:B}=P;if(B!==2)return;const N=u[E];N!==void 0&&N.forEach(D=>D(P))};return M.displayName="evtdUnifiedWindowEventHandler",M}const p=h(),v=A();function m(M,P){const E=d[M];return E[P]===void 0&&(E[P]=new Map,window.addEventListener(P,p,M==="capture")),E[P]}function g(M){return u[M]===void 0&&(u[M]=new Set,window.addEventListener(M,v)),u[M]}function b(M,P){let E=M.get(P);return E===void 0&&M.set(P,E=new Set),E}function y(M,P,E,B){const N=d[P][E];if(N!==void 0){const D=N.get(M);if(D!==void 0&&D.has(B))return!0}return!1}function w(M,P){const E=u[M];return!!(E!==void 0&&E.has(P))}function k(M,P,E,B){let N;if(typeof B=="object"&&B.once===!0?N=H=>{x(M,P,N,B),E(H)}:N=E,u5e(M,P,N,B))return;const T=B===!0||typeof B=="object"&&B.capture===!0?"capture":"bubble",I=m(T,M),R=b(I,P);if(R.has(N)||R.add(N),P===window){const H=g(M);H.has(N)||H.add(N)}}function x(M,P,E,B){if(h5e(M,P,E,B))return;const D=B===!0||typeof B=="object"&&B.capture===!0,T=D?"capture":"bubble",I=m(T,M),R=b(I,P);if(P===window&&!y(P,D?"bubble":"capture",M,E)&&w(M,E)){const j=u[M];j.delete(E),j.size===0&&(window.removeEventListener(M,v),u[M]=void 0)}R.has(E)&&R.delete(E),R.size===0&&I.delete(P),I.size===0&&(window.removeEventListener(M,p,T==="capture"),d[T][M]=void 0)}return{on:k,off:x}}const{on:Br,off:Pr}=A5e();function nF(t){const e=i.ref(!!t.value);if(e.value)return i.readonly(e);const r=i.watch(t,n=>{n&&(e.value=!0,r())});return i.readonly(e)}function rr(t){const e=i.computed(t),r=i.ref(e.value);return i.watch(e,n=>{r.value=n}),typeof t=="function"?r:{__v_isRef:!0,get value(){return r.value},set value(n){t.set(n)}}}function sM(){return i.getCurrentInstance()!==null}const x8=typeof window<"u";let QA,gm;(()=>{var t,e;QA=x8?(e=(t=document)===null||t===void 0?void 0:t.fonts)===null||e===void 0?void 0:e.ready:void 0,gm=!1,QA!==void 0?QA.then(()=>{gm=!0}):gm=!0})();function lM(t){if(gm)return;let e=!1;i.onMounted(()=>{gm||QA==null||QA.then(()=>{e||t()})}),i.onBeforeUnmount(()=>{e=!0})}const bm=i.ref(null);function aF(t){if(t.clientX>0||t.clientY>0)bm.value={x:t.clientX,y:t.clientY};else{const{target:e}=t;if(e instanceof Element){const{left:r,top:n,width:a,height:o}=e.getBoundingClientRect();r>0||n>0?bm.value={x:r+a/2,y:n+o/2}:bm.value={x:0,y:0}}else bm.value=null}}let C8=0,oF=!0;function fM(){if(!x8)return i.readonly(i.ref(null));C8===0&&Br("click",document,aF,!0);const t=()=>{C8+=1};return oF&&(oF=sM())?(i.onBeforeMount(t),i.onBeforeUnmount(()=>{C8-=1,C8===0&&Pr("click",document,aF,!0)})):t(),i.readonly(bm)}const p5e=i.ref(void 0);let k8=0;function iF(){p5e.value=Date.now()}let sF=!0;function cM(t){if(!x8)return i.readonly(i.ref(!1));const e=i.ref(!1);let r=null;function n(){r!==null&&window.clearTimeout(r)}function a(){n(),e.value=!0,r=window.setTimeout(()=>{e.value=!1},t)}k8===0&&Br("click",window,iF,!0);const o=()=>{k8+=1,Br("click",window,a,!0)};return sF&&(sF=sM())?(i.onBeforeMount(o),i.onBeforeUnmount(()=>{k8-=1,k8===0&&Pr("click",window,iF,!0),Pr("click",window,a,!0),n()})):o(),i.readonly(e)}function on(t,e){return i.watch(t,r=>{r!==void 0&&(e.value=r)}),i.computed(()=>t.value===void 0?e.value:t.value)}function Ss(){const t=i.ref(!1);return i.onMounted(()=>{t.value=!0}),i.readonly(t)}function O1(t,e){return i.computed(()=>{for(const r of e)if(t[r]!==void 0)return t[r];return t[e[e.length-1]]})}const v5e=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function m5e(){return v5e}const g5e={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function b5e(t){return`(min-width: ${t}px)`}const ym={};function y5e(t=g5e){if(!x8)return i.computed(()=>[]);if(typeof window.matchMedia!="function")return i.computed(()=>[]);const e=i.ref({}),r=Object.keys(t),n=(a,o)=>{a.matches?e.value[o]=!0:e.value[o]=!1};return r.forEach(a=>{const o=t[a];let s,l;ym[o]===void 0?(s=window.matchMedia(b5e(o)),s.addEventListener?s.addEventListener("change",f=>{l.forEach(c=>{c(f,a)})}):s.addListener&&s.addListener(f=>{l.forEach(c=>{c(f,a)})}),l=new Set,ym[o]={mql:s,cbs:l}):(s=ym[o].mql,l=ym[o].cbs),l.add(n),s.matches&&l.forEach(f=>{f(s,a)})}),i.onBeforeUnmount(()=>{r.forEach(a=>{const{cbs:o}=ym[t[a]];o.has(n)&&o.delete(n)})}),i.computed(()=>{const{value:a}=e;return r.filter(o=>a[o])})}function dM(t={},e){const r=i.reactive({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:a}=t,o=f=>{switch(f.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}n!==void 0&&Object.keys(n).forEach(c=>{if(c!==f.key)return;const d=n[c];if(typeof d=="function")d(f);else{const{stop:u=!1,prevent:h=!1}=d;u&&f.stopPropagation(),h&&f.preventDefault(),d.handler(f)}})},s=f=>{switch(f.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}a!==void 0&&Object.keys(a).forEach(c=>{if(c!==f.key)return;const d=a[c];if(typeof d=="function")d(f);else{const{stop:u=!1,prevent:h=!1}=d;u&&f.stopPropagation(),h&&f.preventDefault(),d.handler(f)}})},l=()=>{(e===void 0||e.value)&&(Br("keydown",document,o),Br("keyup",document,s)),e!==void 0&&i.watch(e,f=>{f?(Br("keydown",document,o),Br("keyup",document,s)):(Pr("keydown",document,o),Pr("keyup",document,s))})};return sM()?(i.onBeforeMount(l),i.onBeforeUnmount(()=>{(e===void 0||e.value)&&(Pr("keydown",document,o),Pr("keyup",document,s))})):l(),i.readonly(r)}function Q_t(t){return t}const uM="n-internal-select-menu",lF="n-internal-select-menu-body",wm="n-drawer-body",hM="n-drawer",xm="n-modal-body",w5e="n-modal-provider",fF="n-modal",FA="n-popover-body",cF="__disabled__";function Na(t){const e=i.inject(xm,null),r=i.inject(wm,null),n=i.inject(FA,null),a=i.inject(lF,null),o=i.ref();if(typeof document<"u"){o.value=document.fullscreenElement;const s=()=>{o.value=document.fullscreenElement};i.onMounted(()=>{Br("fullscreenchange",document,s)}),i.onBeforeUnmount(()=>{Pr("fullscreenchange",document,s)})}return rr(()=>{var s;const{to:l}=t;return l!==void 0?l===!1?cF:l===!0?o.value||"body":l:e!=null&&e.value?(s=e.value.$el)!==null&&s!==void 0?s:e.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:a!=null&&a.value?a.value:l??(o.value||"body")})}Na.tdkey=cF,Na.propTo={type:[String,Object,Boolean],default:void 0};function x5e(t,e,r){var n;const a=i.inject(t,null);if(a===null)return;const o=(n=i.getCurrentInstance())===null||n===void 0?void 0:n.proxy;i.watch(r,s),s(r.value),i.onBeforeUnmount(()=>{s(void 0,r.value)});function s(c,d){if(!a)return;const u=a[e];d!==void 0&&l(u,d),c!==void 0&&f(u,c)}function l(c,d){c[d]||(c[d]=[]),c[d].splice(c[d].findIndex(u=>u===o),1)}function f(c,d){c[d]||(c[d]=[]),~c[d].findIndex(u=>u===o)||c[d].push(o)}}function C5e(t,e,r){if(!e)return t;const n=i.ref(t.value);let a=null;return i.watch(t,o=>{a!==null&&window.clearTimeout(a),o===!0?r&&!r.value?n.value=!0:a=window.setTimeout(()=>{n.value=!0},e):n.value=!1}),n}const as=typeof document<"u"&&typeof window<"u";let dF=!1;function AM(){if(as&&window.CSS&&!dF&&(dF=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"<color>",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"<color>",inherits:!1,initialValue:"#0000"})}catch{}}const pM=i.ref(!1);function uF(){pM.value=!0}function hF(){pM.value=!1}let Cm=0;function AF(){return as&&(i.onBeforeMount(()=>{Cm||(window.addEventListener("compositionstart",uF),window.addEventListener("compositionend",hF)),Cm++}),i.onBeforeUnmount(()=>{Cm<=1?(window.removeEventListener("compositionstart",uF),window.removeEventListener("compositionend",hF),Cm=0):Cm--})),pM}let UA=0,pF="",vF="",mF="",gF="";const vM=i.ref("0px");function bF(t){if(typeof document>"u")return;const e=document.documentElement;let r,n=!1;const a=()=>{e.style.marginRight=pF,e.style.overflow=vF,e.style.overflowX=mF,e.style.overflowY=gF,vM.value="0px"};i.onMounted(()=>{r=i.watch(t,o=>{if(o){if(!UA){const s=window.innerWidth-e.offsetWidth;s>0&&(pF=e.style.marginRight,e.style.marginRight=`${s}px`,vM.value=`${s}px`),vF=e.style.overflow,mF=e.style.overflowX,gF=e.style.overflowY,e.style.overflow="hidden",e.style.overflowX="hidden",e.style.overflowY="hidden"}n=!0,UA++}else UA--,UA||a(),n=!1},{immediate:!0})}),i.onBeforeUnmount(()=>{r==null||r(),n&&(UA--,UA||a(),n=!1)})}function mM(t){const e={isDeactivated:!1};let r=!1;return i.onActivated(()=>{if(e.isDeactivated=!1,!r){r=!0;return}t()}),i.onDeactivated(()=>{e.isDeactivated=!0,r||(r=!0)}),e}function gM(t,e,r="default"){const n=e[r];if(n===void 0)throw new Error(`[vueuc/${t}]: slot[${r}] is empty.`);return n()}function bM(t,e=!0,r=[]){return t.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&r.push(i.createTextVNode(String(n)));return}if(Array.isArray(n)){bM(n,e,r);return}if(n.type===i.Fragment){if(n.children===null)return;Array.isArray(n.children)&&bM(n.children,e,r)}else n.type!==i.Comment&&r.push(n)}}),r}function yF(t,e,r="default"){const n=e[r];if(n===void 0)throw new Error(`[vueuc/${t}]: slot[${r}] is empty.`);const a=bM(n());if(a.length===1)return a[0];throw new Error(`[vueuc/${t}]: slot[${r}] should have exactly one child.`)}let G1=null;function wF(){if(G1===null&&(G1=document.getElementById("v-binder-view-measurer"),G1===null)){G1=document.createElement("div"),G1.id="v-binder-view-measurer";const{style:t}=G1;t.position="fixed",t.left="0",t.right="0",t.top="0",t.bottom="0",t.pointerEvents="none",t.visibility="hidden",document.body.appendChild(G1)}return G1.getBoundingClientRect()}function k5e(t,e){const r=wF();return{top:e,left:t,height:0,width:0,right:r.width-t,bottom:r.height-e}}function yM(t){const e=t.getBoundingClientRect(),r=wF();return{left:e.left-r.left,top:e.top-r.top,bottom:r.height+r.top-e.bottom,right:r.width+r.left-e.right,width:e.width,height:e.height}}function M5e(t){return t.nodeType===9?null:t.parentNode}function xF(t){if(t===null)return null;const e=M5e(t);if(e===null)return null;if(e.nodeType===9)return document;if(e.nodeType===1){const{overflow:r,overflowX:n,overflowY:a}=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(r+a+n))return e}return xF(e)}const Q1=i.defineComponent({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(t){var e;i.provide("VBinder",(e=i.getCurrentInstance())===null||e===void 0?void 0:e.proxy);const r=i.inject("VBinder",null),n=i.ref(null),a=g=>{n.value=g,r&&t.syncTargetWithParent&&r.setTargetRef(g)};let o=[];const s=()=>{let g=n.value;for(;g=xF(g),g!==null;)o.push(g);for(const b of o)Br("scroll",b,u,!0)},l=()=>{for(const g of o)Pr("scroll",g,u,!0);o=[]},f=new Set,c=g=>{f.size===0&&s(),f.has(g)||f.add(g)},d=g=>{f.has(g)&&f.delete(g),f.size===0&&l