UNPKG

kdu-server-renderer

Version:
1 lines 81 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("stream");function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(require("he"));const r=Object.freeze({}),s=Array.isArray;function o(t){return null==t}function i(t){return null!=t}function c(t){return!0===t}function a(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function l(t){return"function"==typeof t}function u(t){return null!==t&&"object"==typeof t}const f=Object.prototype.toString;function p(t){return"[object Object]"===f.call(t)}function d(t){return null==t?"":Array.isArray(t)||p(t)&&t.toString===f?JSON.stringify(t,h,2):String(t)}function h(t,e){return e&&e.__k_isRef?e.value:e}function m(t){const e=parseFloat(t);return isNaN(e)?t:e}function g(t,e){const n=Object.create(null),r=t.split(",");for(let t=0;t<r.length;t++)n[r[t]]=!0;return e?t=>n[t.toLowerCase()]:t=>n[t]}const y=g("slot,component",!0),$=g("key,ref,slot,slot-scope,is"),v=Object.prototype.hasOwnProperty;function b(t,e){return v.call(t,e)}function _(t){const e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}const x=/-(\w)/g,w=_((t=>t.replace(x,((t,e)=>e?e.toUpperCase():"")))),k=_((t=>t.charAt(0).toUpperCase()+t.slice(1))),S=/\B([A-Z])/g,O=_((t=>t.replace(S,"-$1").toLowerCase()));function C(t,e){for(const n in e)t[n]=e[n];return t}function T(t){const e={};for(let n=0;n<t.length;n++)t[n]&&C(e,t[n]);return e}function A(t,e,n){}const F=(t,e,n)=>!1,j=t=>t;function P(t,e){if(t===e)return!0;const n=u(t),r=u(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{const n=Array.isArray(t),r=Array.isArray(e);if(n&&r)return t.length===e.length&&t.every(((t,n)=>P(t,e[n])));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(n||r)return!1;{const n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((n=>P(t[n],e[n])))}}catch(t){return!1}}function N(t,e){for(let n=0;n<t.length;n++)if(P(t[n],e))return n;return-1}const E=g("accept,accept-charset,accesskey,action,align,alt,async,autocomplete,autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,data,datetime,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,for,form,formaction,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,ismap,itemprop,keytype,kind,label,lang,language,list,loop,low,manifest,max,maxlength,media,method,GET,POST,min,multiple,email,file,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,seamless,selected,shape,size,type,text,password,sizes,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,usemap,value,width,wrap"),I=/[>/="'\u0009\u000a\u000c\u0020]/,L=t=>I.test(t),M=t=>E(t)||0===t.indexOf("data-")||0===t.indexOf("aria-"),R={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},D={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function z(t){return t.replace(/[<>"&]/g,U)}function U(t){return D[t]||t}const B={"animation-iteration-count":!0,"border-image-outset":!0,"border-image-slice":!0,"border-image-width":!0,"box-flex":!0,"box-flex-group":!0,"box-ordinal-group":!0,"column-count":!0,columns:!0,flex:!0,"flex-grow":!0,"flex-positive":!0,"flex-shrink":!0,"flex-negative":!0,"flex-order":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-span":!0,"grid-row-start":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-span":!0,"grid-column-start":!0,"font-weight":!0,"line-clamp":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"tab-size":!0,widows:!0,"z-index":!0,zoom:!0,"fill-opacity":!0,"flood-opacity":!0,"stop-opacity":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-miterlimit":!0,"stroke-opacity":!0,"stroke-width":!0},q=t=>/\.js(\?[^.]+)?$/.test(t);function K(){let t,e;return{promise:new Promise(((n,r)=>{t=n,e=r})),cb:(n,r)=>{if(n)return e(n);t(r||"")}}}const J=g("input,textarea,option,select,progress"),H=g("contenteditable,draggable,spellcheck"),Z=g("events,caret,typing,plaintext-only"),W=(t,e)=>G(e)||"false"===e?"false":"contenteditable"===t&&Z(e)?e:"true",V=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),G=t=>null==t||!1===t;function Q(t,e){if(V(t)){if(!G(e))return` ${t}="${t}"`}else{if(H(t))return` ${t}="${z(W(t,e))}"`;if(!G(e))return` ${t}="${z(String(e))}"`}return""}class X{constructor(t,e,n,r,s,o,i,c){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=s,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=i,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=c,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}get child(){return this.componentInstance}}const Y=(t="")=>{const e=new X;return e.text=t,e.isComment=!0,e};function tt(t){return new X(void 0,void 0,void 0,String(t))}function et(t,e,n){const r=new X(void 0,void 0,void 0,e);r.raw=n,t.children=[r]}function nt(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}const rt="__proto__"in{},st="undefined"!=typeof window,ot=st&&window.navigator.userAgent.toLowerCase(),it=ot&&/msie|trident/.test(ot);ot&&ot.indexOf("msie 9.0");ot&&ot.indexOf("edge/");ot&&ot.indexOf("android"),ot&&/iphone|ipad|ipod|ios/.test(ot),ot&&/chrome\/\d+/.test(ot),ot&&/phantomjs/.test(ot),ot&&ot.match(/firefox\/(\d+)/);const ct={}.watch;let at,lt=!1;if(st)try{const t={};Object.defineProperty(t,"passive",{get(){lt=!0}}),window.addEventListener("test-passive",null,t)}catch(t){}const ut=()=>(void 0===at&&(at=!st&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.KDU_ENV)),at);function ft(t){return"function"==typeof t&&/native code/.test(t.toString())}const pt="undefined"!=typeof Symbol&&ft(Symbol)&&"undefined"!=typeof Reflect&&ft(Reflect.ownKeys);let dt;dt="undefined"!=typeof Set&&ft(Set)?Set:class{constructor(){this.set=Object.create(null)}has(t){return!0===this.set[t]}add(t){this.set[t]=!0}clear(){this.set=Object.create(null)}};const ht="data-server-rendered",mt=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"];var gt={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:F,isReservedAttr:F,isUnknownElement:F,getTagNamespace:A,parsePlatformTagName:j,mustUseProp:F,async:!0,_lifecycleHooks:mt};let yt=null;function $t(t=null){t||yt&&yt._scope.off(),yt=t,t&&t._scope.on()}let vt=0;class bt{constructor(){this._pending=!1,this.id=vt++,this.subs=[]}addSub(t){this.subs.push(t)}removeSub(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0)}depend(t){bt.target&&bt.target.addDep(this)}notify(t){const e=this.subs.filter((t=>t));for(let t=0,n=e.length;t<n;t++){e[t].update()}}}bt.target=null;const _t=[];function xt(t){_t.push(t),bt.target=t}function wt(){_t.pop(),bt.target=_t[_t.length-1]}const kt=Array.prototype,St=Object.create(kt);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){const e=kt[t];nt(St,t,(function(...n){const r=e.apply(this,n),s=this.__ob__;let o;switch(t){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2)}return o&&s.observeArray(o),s.dep.notify(),r}))}));const Ot=Object.getOwnPropertyNames(St),Ct={};let Tt=!0;function At(t){Tt=t}const Ft={notify:A,depend:A,addSub:A,removeSub:A};class jt{constructor(t,e=!1,n=!1){if(this.value=t,this.shallow=e,this.mock=n,this.dep=n?Ft:new bt,this.vmCount=0,nt(t,"__ob__",this),s(t)){if(!n)if(rt)t.__proto__=St;else for(let e=0,n=Ot.length;e<n;e++){const n=Ot[e];nt(t,n,St[n])}e||this.observeArray(t)}else{const r=Object.keys(t);for(let s=0;s<r.length;s++){Nt(t,r[s],Ct,void 0,e,n)}}}observeArray(t){for(let e=0,n=t.length;e<n;e++)Pt(t[e],!1,this.mock)}}function Pt(t,e,n){return t&&b(t,"__ob__")&&t.__ob__ instanceof jt?t.__ob__:!Tt||!n&&ut()||!s(t)&&!p(t)||!Object.isExtensible(t)||t.__k_skip||Lt(t)||t instanceof X?void 0:new jt(t,e,n)}function Nt(t,e,n,r,o,i,c=!1){const a=new bt,l=Object.getOwnPropertyDescriptor(t,e);if(l&&!1===l.configurable)return;const u=l&&l.get,f=l&&l.set;u&&!f||n!==Ct&&2!==arguments.length||(n=t[e]);let p=o?n&&n.__ob__:Pt(n,!1,i);return Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){const e=u?u.call(t):n;return bt.target&&(a.depend(),p&&(p.dep.depend(),s(e)&&It(e))),Lt(e)&&!o?e.value:e},set:function(e){const r=u?u.call(t):n;if((s=r)===(c=e)?0===s&&1/s!=1/c:s==s||c==c){var s,c;if(f)f.call(t,e);else{if(u)return;if(!o&&Lt(r)&&!Lt(e))return void(r.value=e);n=e}p=o?e&&e.__ob__:Pt(e,!1,i),a.notify()}}}),a}function Et(t,e,n){if((r=t)&&r.__k_isReadonly)return;var r;const o=t.__ob__;return s(t)&&function(t){const e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}(e)?(t.length=Math.max(t.length,e),t.splice(e,1,n),o&&!o.shallow&&o.mock&&Pt(n,!1,!0),n):e in t&&!(e in Object.prototype)?(t[e]=n,n):t._isKdu||o&&o.vmCount?n:o?(Nt(o.value,e,n,void 0,o.shallow,o.mock),o.dep.notify(),n):(t[e]=n,n)}function It(t){for(let e,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),s(e)&&It(e)}function Lt(t){return!(!t||!0!==t.__k_isRef)}const Mt=_((t=>{const e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}}));function Rt(t,e){function n(){const t=n.fns;if(!s(t))return Oe(t,null,arguments,e,"k-on handler");{const n=t.slice();for(let t=0;t<n.length;t++)Oe(n[t],null,arguments,e,"k-on handler")}}return n.fns=t,n}function Dt(t,e,n,r,s){if(i(e)){if(b(e,n))return t[n]=e[n],s||delete e[n],!0;if(b(e,r))return t[n]=e[r],s||delete e[r],!0}return!1}function zt(t){for(let e=0;e<t.length;e++)if(s(t[e]))return Array.prototype.concat.apply([],t);return t}function Ut(t){return a(t)?[tt(t)]:s(t)?qt(t):void 0}function Bt(t){return i(t)&&i(t.text)&&!1===t.isComment}function qt(t,e){const n=[];let r,l,u,f;for(r=0;r<t.length;r++)l=t[r],o(l)||"boolean"==typeof l||(u=n.length-1,f=n[u],s(l)?l.length>0&&(l=qt(l,`${e||""}_${r}`),Bt(l[0])&&Bt(f)&&(n[u]=tt(f.text+l[0].text),l.shift()),n.push.apply(n,l)):a(l)?Bt(f)?n[u]=tt(f.text+l):""!==l&&n.push(tt(l)):Bt(l)&&Bt(f)?n[u]=tt(f.text+l.text):(c(t._isKList)&&i(l.tag)&&o(l.key)&&i(e)&&(l.key=`__klist${e}_${r}__`),n.push(l)));return n}const Kt=1,Jt=2;function Ht(t,e,n,r,o,f){return(s(n)||a(n))&&(o=r,r=n,n=void 0),c(f)&&(o=Jt),function(t,e,n,r,o){if(i(n)&&i(n.__ob__))return Y();i(n)&&i(n.is)&&(e=n.is);if(!e)return Y();s(r)&&l(r[0])&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);o===Jt?r=Ut(r):o===Kt&&(r=zt(r));let c,a;if("string"==typeof e){let s;a=t.$knode&&t.$knode.ns||gt.getTagNamespace(e),c=n&&n.pre||!i(s=We(t.$options,"components",e))?new X(e,n,r,void 0,void 0,t):Re(s,n,t,r,e)}else c=Re(e,n,t,r);return s(c)?c:i(c)?(i(a)&&Zt(c,a),i(n)&&function(t){u(t.style)&&Fe(t.style);u(t.class)&&Fe(t.class)}(n),c):Y()}(t,e,n,r,o)}function Zt(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),i(t.children))for(let r=0,s=t.children.length;r<s;r++){const s=t.children[r];i(s.tag)&&(o(s.ns)||c(n)&&"svg"!==s.tag)&&Zt(s,e,n)}}function Wt(t,e){let n,r,o,c,a=null;if(s(t)||"string"==typeof t)for(a=new Array(t.length),n=0,r=t.length;n<r;n++)a[n]=e(t[n],n);else if("number"==typeof t)for(a=new Array(t),n=0;n<t;n++)a[n]=e(n+1,n);else if(u(t))if(pt&&t[Symbol.iterator]){a=[];const n=t[Symbol.iterator]();let r=n.next();for(;!r.done;)a.push(e(r.value,a.length)),r=n.next()}else for(o=Object.keys(t),a=new Array(o.length),n=0,r=o.length;n<r;n++)c=o[n],a[n]=e(t[c],c,n);return i(a)||(a=[]),a._isKList=!0,a}function Vt(t,e,n,r){const s=this.$scopedSlots[t];let o;s?(n=n||{},r&&(n=C(C({},r),n)),o=s(n)||(l(e)?e():e)):o=this.$slots[t]||(l(e)?e():e);const i=n&&n.slot;return i?this.$createElement("template",{slot:i},o):o}function Gt(t){return We(this.$options,"filters",t)||j}function Qt(t,e){return s(t)?-1===t.indexOf(e):t!==e}function Xt(t,e,n,r,s){const o=gt.keyCodes[e]||n;return s&&r&&!gt.keyCodes[e]?Qt(s,r):o?Qt(o,t):r?O(r)!==e:void 0===t}function Yt(t,e,n,r,o){if(n)if(u(n)){let i;s(n)&&(n=T(n));for(const s in n){if("class"===s||"style"===s||$(s))i=t;else{const n=t.attrs&&t.attrs.type;i=r||gt.mustUseProp(e,n,s)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}const c=w(s),a=O(s);if(!(c in i)&&!(a in i)&&(i[s]=n[s],o)){(t.on||(t.on={}))[`update:${s}`]=function(t){n[s]=t}}}}else;return t}function te(t,e){const n=this._staticTrees||(this._staticTrees=[]);let r=n[t];return r&&!e||(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),ne(r,`__static__${t}`,!1)),r}function ee(t,e,n){return ne(t,`__once__${e}${n?`_${n}`:""}`,!0),t}function ne(t,e,n){if(s(t))for(let r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&re(t[r],`${e}_${r}`,n);else re(t,e,n)}function re(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function se(t,e){if(e)if(p(e)){const n=t.on=t.on?C({},t.on):{};for(const t in e){const r=n[t],s=e[t];n[t]=r?[].concat(r,s):s}}else;return t}function oe(t,e,n,r){e=e||{$stable:!n};for(let r=0;r<t.length;r++){const o=t[r];s(o)?oe(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function ie(t,e){for(let n=0;n<e.length;n+=2){const r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function ce(t,e){return"string"==typeof t?e+t:t}function ae(t,e){if(!t||!t.length)return{};const n={};for(let r=0,s=t.length;r<s;r++){const s=t[r],o=s.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,s.context!==e&&s.fnContext!==e||!o||null==o.slot)(n.default||(n.default=[])).push(s);else{const t=o.slot,e=n[t]||(n[t]=[]);"template"===s.tag?e.push.apply(e,s.children||[]):e.push(s)}}for(const t in n)n[t].every(le)&&delete n[t];return n}function le(t){return t.isComment&&!t.asyncFactory||" "===t.text}function ue(t,e,n,s){let o;const i=Object.keys(n).length>0,c=e?!!e.$stable:!i,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(c&&s&&s!==r&&a===s.$key&&!i&&!s.$hasNormal)return s;o={};for(const r in e)e[r]&&"$"!==r[0]&&(o[r]=fe(t,n,r,e[r]))}else o={};for(const t in n)t in o||(o[t]=pe(n,t));return e&&Object.isExtensible(e)&&(e._normalized=o),nt(o,"$stable",c),nt(o,"$key",a),nt(o,"$hasNormal",i),o}function fe(t,e,n,r){const o=function(){const e=yt;$t(t);let n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"==typeof n&&!s(n)?[n]:Ut(n);const o=n&&n[0];return $t(e),!n||o&&(1!==n.length||!o.isComment||(i=o).isComment&&i.asyncFactory)?n:void 0;var i};return r.proxy&&Object.defineProperty(e,n,{get:o,enumerable:!0,configurable:!0}),o}function pe(t,e){return()=>t[e]}function de(t,e,n,r,s){let o=!1;for(const i in e)i in t?e[i]!==n[i]&&(o=!0):(o=!0,he(t,i,r,s));for(const n in t)n in e||(o=!0,delete t[n]);return o}function he(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:()=>n[r][e]})}let me;function ge(t,e){me.$on(t,e)}function ye(t,e){me.$off(t,e)}function $e(t,e){const n=me;return function r(){null!==e.apply(null,arguments)&&n.$off(t,r)}}function ve(t,e,n){me=t,function(t,e,n,r,s,i){let a,l,u,f;for(a in t)l=t[a],u=e[a],f=Mt(a),o(l)||(o(u)?(o(l.fns)&&(l=t[a]=Rt(l,i)),c(f.once)&&(l=t[a]=s(f.name,l,f.capture)),n(f.name,l,f.capture,f.passive,f.params)):l!==u&&(u.fns=l,t[a]=u));for(a in e)o(t[a])&&(f=Mt(a),r(f.name,e[a],f.capture))}(e,n||{},ge,ye,$e,t),me=void 0}function be(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function _e(t,e){if(e){if(t._directInactive=!1,be(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(let e=0;e<t.$children.length;e++)_e(t.$children[e]);we(t,"activated")}}function xe(t,e){if(!(e&&(t._directInactive=!0,be(t))||t._inactive)){t._inactive=!0;for(let e=0;e<t.$children.length;e++)xe(t.$children[e]);we(t,"deactivated")}}function we(t,e,n,r=!0){xt();const s=yt;r&&$t(t);const o=t.$options[e],i=`${e} hook`;if(o)for(let e=0,r=o.length;e<r;e++)Oe(o[e],t,n||null,t,i);t._hasHookEvent&&t.$emit("hook:"+e),r&&$t(s),wt()}let ke=Date.now;if(st&&!it){const t=window.performance;t&&"function"==typeof t.now&&ke()>document.createEvent("Event").timeStamp&&(ke=()=>t.now())}function Se(t,e,n){xt();try{if(e){let r=e;for(;r=r.$parent;){const s=r.$options.errorCaptured;if(s)for(let o=0;o<s.length;o++)try{if(!1===s[o].call(r,t,e,n))return}catch(t){Ce(t,r,"errorCaptured hook")}}}Ce(t,e,n)}finally{wt()}}function Oe(t,e,n,r,s){let o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isKdu&&(i(c=o)&&"function"==typeof c.then&&"function"==typeof c.catch)&&!o._handled&&(o.catch((t=>Se(t,r,s+" (Promise/async)"))),o._handled=!0)}catch(t){Se(t,r,s)}var c;return o}function Ce(t,e,n){!function(t,e,n){if(!st||"undefined"==typeof console)throw t;console.error(t)}(t)}const Te=[];if("undefined"!=typeof Promise&&ft(Promise))Promise.resolve();else if(it||"undefined"==typeof MutationObserver||!ft(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())"undefined"!=typeof setImmediate&&ft(setImmediate);else{let t=1;const e=new MutationObserver((function(){const t=Te.slice(0);Te.length=0;for(let e=0;e<t.length;e++)t[e]()})),n=document.createTextNode(String(t));e.observe(n,{characterData:!0})}const Ae=new dt;function Fe(t){return je(t,Ae),Ae.clear(),t}function je(t,e){let n,r;const o=s(t);if(!(!o&&!u(t)||t.__k_skip||Object.isFrozen(t)||t instanceof X)){if(t.__ob__){const n=t.__ob__.dep.id;if(e.has(n))return;e.add(n)}if(o)for(n=t.length;n--;)je(t[n],e);else if(Lt(t))je(t.value,e);else for(r=Object.keys(t),n=r.length;n--;)je(t[r[n]],e)}}function Pe(t){let e=t.options;if(t.super){const n=Pe(t.super);if(n!==t.superOptions){t.superOptions=n;const r=function(t){let e;const n=t.options,r=t.sealedOptions;for(const t in n)n[t]!==r[t]&&(e||(e={}),e[t]=n[t]);return e}(t);r&&C(t.extendOptions,r),e=t.options=Ze(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function Ne(t,e,n,o,i){const a=i.options;let u;b(o,"_uid")?(u=Object.create(o),u._original=o):(u=o,o=o._original);const f=c(a._compiled),p=!f;this.data=t,this.props=e,this.children=n,this.parent=o,this.listeners=t.on||r,this.injections=function(t,e){if(t){const n=Object.create(null),r=pt?Reflect.ownKeys(t):Object.keys(t);for(let s=0;s<r.length;s++){const o=r[s];if("__ob__"===o)continue;const i=t[o].from;if(i in e._provided)n[o]=e._provided[i];else if("default"in t[o]){const r=t[o].default;n[o]=l(r)?r.call(e):r}}return n}}(a.inject,o),this.slots=()=>(this.$slots||ue(o,t.scopedSlots,this.$slots=ae(n,o)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ue(o,t.scopedSlots,this.slots())}}),f&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=ue(o,t.scopedSlots,this.$slots)),a._scopeId?this._c=(t,e,n,r)=>{const i=Ht(u,t,e,n,r,p);return i&&!s(i)&&(i.fnScopeId=a._scopeId,i.fnContext=o),i}:this._c=(t,e,n,r)=>Ht(u,t,e,n,r,p)}function Ee(t,e,n,r,s){const o=function(t){const e=new X(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Ie(t,e){for(const n in e)t[w(n)]=e[n]}!function(t){t._o=ee,t._n=m,t._s=d,t._l=Wt,t._t=Vt,t._q=P,t._i=N,t._m=te,t._f=Gt,t._k=Xt,t._b=Yt,t._v=tt,t._e=Y,t._u=oe,t._g=se,t._d=ie,t._p=ce}(Ne.prototype);const Le={init(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){const e=t;Le.prepatch(e,e)}else{(t.componentInstance=De(t,null)).$mount(e?t.elm:void 0,e)}},prepatch(t,e){const n=e.componentOptions;!function(t,e,n,s,o){const i=s.data.scopedSlots,c=t.$scopedSlots,a=!!(i&&!i.$stable||c!==r&&!c.$stable||i&&t.$scopedSlots.$key!==i.$key||!i&&t.$scopedSlots.$key);let l=!!(o||t.$options._renderChildren||a);const u=t.$knode;t.$options._parentKnode=s,t.$knode=s,t._knode&&(t._knode.parent=s),t.$options._renderChildren=o;const f=s.data.attrs||r;t._attrsProxy&&de(t._attrsProxy,f,u.data&&u.data.attrs||r,t,"$attrs")&&(l=!0),t.$attrs=f,n=n||r;const p=t.$options._parentListeners;if(t._listenersProxy&&de(t._listenersProxy,n,p||r,t,"$listeners"),t.$listeners=t.$options._parentListeners=n,ve(t,n,p),e&&t.$options.props){At(!1);const n=t._props,r=t.$options._propKeys||[];for(let s=0;s<r.length;s++){const o=r[s],i=t.$options.props;n[o]=Ve(o,i,e,t)}At(!0),t.$options.propsData=e}l&&(t.$slots=ae(o,s.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert(t){const{context:e,componentInstance:n}=t;n._isMounted||(n._isMounted=!0,we(n,"mounted")),t.data.keepAlive&&(e._isMounted?function(t){t._inactive=!1}(n):_e(n,!0))},destroy(t){const{componentInstance:e}=t;e._isDestroyed||(t.data.keepAlive?xe(e,!0):e.$destroy())}},Me=Object.keys(Le);function Re(t,e,n,a,l){if(o(t))return;const f=n.$options._base;if(u(t)&&(t=f.extend(t)),"function"!=typeof t)return;let p;if(o(t.cid)&&(p=t,void 0===(t=c((d=p).error)&&i(d.errorComp)?d.errorComp:i(d.resolved)?d.resolved:c(d.loading)&&i(d.loadingComp)?d.loadingComp:void 0)))return function(t,e,n,r,s){const o=Y();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:s},o}(p,e,n,a,l);var d;e=e||{},Pe(t),i(e.model)&&function(t,e){const n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;const o=e.on||(e.on={}),c=o[r],a=e.model.callback;i(c)?(s(c)?-1===c.indexOf(a):c!==a)&&(o[r]=[a].concat(c)):o[r]=a}(t.options,e);const h=function(t,e,n){const r=e.options.props;if(o(r))return;const s={},{attrs:c,props:a}=t;if(i(c)||i(a))for(const t in r){const e=O(t);Dt(s,a,t,e,!0)||Dt(s,c,t,e,!1)}return s}(e,t);if(c(t.options.functional))return function(t,e,n,o,c){const a=t.options,l={},u=a.props;if(i(u))for(const t in u)l[t]=Ve(t,u,e||r);else i(n.attrs)&&Ie(l,n.attrs),i(n.props)&&Ie(l,n.props);const f=new Ne(n,l,c,o,t),p=a.render.call(null,f._c,f);if(p instanceof X)return Ee(p,n,f.parent,a);if(s(p)){const t=Ut(p)||[],e=new Array(t.length);for(let r=0;r<t.length;r++)e[r]=Ee(t[r],n,f.parent,a);return e}}(t,h,e,n,a);const m=e.on;if(e.on=e.nativeOn,c(t.options.abstract)){const t=e.slot;e={},t&&(e.slot=t)}!function(t){const e=t.hook||(t.hook={});for(let t=0;t<Me.length;t++){const n=Me[t],r=e[n],s=Le[n];r===s||r&&r._merged||(e[n]=r?ze(s,r):s)}}(e);const g=(y=t.options).name||y.__name||y._componentTag||l;var y;return new X(`kdu-component-${t.cid}${g?`-${g}`:""}`,e,void 0,void 0,void 0,n,{Ctor:t,propsData:h,listeners:m,tag:l,children:a},p)}function De(t,e){const n={_isComponent:!0,_parentKnode:t,parent:e},r=t.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}function ze(t,e){const n=(n,r)=>{t(n,r),e(n,r)};return n._merged=!0,n}const Ue=gt.optionMergeStrategies;function Be(t,e,n=!0){if(!e)return t;let r,s,o;const i=pt?Reflect.ownKeys(e):Object.keys(e);for(let c=0;c<i.length;c++)r=i[c],"__ob__"!==r&&(s=t[r],o=e[r],n&&b(t,r)?s!==o&&p(s)&&p(o)&&Be(s,o):Et(t,r,o));return t}function qe(t,e,n){return n?function(){const r=l(e)?e.call(n,n):e,s=l(t)?t.call(n,n):t;return r?Be(r,s):s}:e?t?function(){return Be(l(e)?e.call(this,this):e,l(t)?t.call(this,this):t)}:e:t}function Ke(t,e){const n=e?t?t.concat(e):s(e)?e:[e]:t;return n?function(t){const e=[];for(let n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Je(t,e,n,r){const s=Object.create(t||null);return e?C(s,e):s}Ue.data=function(t,e,n){return n?qe(t,e,n):e&&"function"!=typeof e?t:qe(t,e)},mt.forEach((t=>{Ue[t]=Ke})),["component","directive","filter"].forEach((function(t){Ue[t+"s"]=Je})),Ue.watch=function(t,e,n,r){if(t===ct&&(t=void 0),e===ct&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;const o={};C(o,t);for(const t in e){let n=o[t];const r=e[t];n&&!s(n)&&(n=[n]),o[t]=n?n.concat(r):s(r)?r:[r]}return o},Ue.props=Ue.methods=Ue.inject=Ue.computed=function(t,e,n,r){if(!t)return e;const s=Object.create(null);return C(s,t),e&&C(s,e),s},Ue.provide=function(t,e){return t?function(){const n=Object.create(null);return Be(n,l(t)?t.call(this):t),e&&Be(n,l(e)?e.call(this):e,!1),n}:e};const He=function(t,e){return void 0===e?t:e};function Ze(t,e,n){if(l(e)&&(e=e.options),function(t,e){const n=t.props;if(!n)return;const r={};let o,i,c;if(s(n))for(o=n.length;o--;)i=n[o],"string"==typeof i&&(c=w(i),r[c]={type:null});else if(p(n))for(const t in n)i=n[t],c=w(t),r[c]=p(i)?i:{type:i};t.props=r}(e),function(t,e){const n=t.inject;if(!n)return;const r=t.inject={};if(s(n))for(let t=0;t<n.length;t++)r[n[t]]={from:n[t]};else if(p(n))for(const t in n){const e=n[t];r[t]=p(e)?C({from:t},e):{from:e}}}(e),function(t){const e=t.directives;if(e)for(const t in e){const n=e[t];l(n)&&(e[t]={bind:n,update:n})}}(e),!e._base&&(e.extends&&(t=Ze(t,e.extends,n)),e.mixins))for(let r=0,s=e.mixins.length;r<s;r++)t=Ze(t,e.mixins[r],n);const r={};let o;for(o in t)i(o);for(o in e)b(t,o)||i(o);function i(s){const o=Ue[s]||He;r[s]=o(t[s],e[s],n,s)}return r}function We(t,e,n,r){if("string"!=typeof n)return;const s=t[e];if(b(s,n))return s[n];const o=w(n);if(b(s,o))return s[o];const i=k(o);if(b(s,i))return s[i];return s[n]||s[o]||s[i]}function Ve(t,e,n,r){const s=e[t],o=!b(n,t);let i=n[t];const c=Ye(Boolean,s.type);if(c>-1)if(o&&!b(s,"default"))i=!1;else if(""===i||i===O(t)){const t=Ye(String,s.type);(t<0||c<t)&&(i=!0)}if(void 0===i){i=function(t,e,n){if(!b(e,"default"))return;const r=e.default;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return l(r)&&"Function"!==Qe(e.type)?r.call(t):r}(r,s,t);const e=Tt;At(!0),Pt(i),At(e)}return i}const Ge=/^\s*function (\w+)/;function Qe(t){const e=t&&t.toString().match(Ge);return e?e[1]:""}function Xe(t,e){return Qe(t)===Qe(e)}function Ye(t,e){if(!s(e))return Xe(e,t)?0:-1;for(let n=0,r=e.length;n<r;n++)if(Xe(e[n],t))return n;return-1}function tn(t,e){return{staticClass:nn(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function en(t,e){return i(t)||i(e)?nn(t,rn(e)):""}function nn(t,e){return t?e?t+" "+e:t:e||""}function rn(t){return Array.isArray(t)?function(t){let e,n="";for(let r=0,s=t.length;r<s;r++)i(e=rn(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):u(t)?function(t){let e="";for(const n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}const sn=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),on=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0);const cn=_((function(t){const e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){const r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function an(t){const e=ln(t.style);return t.staticStyle?C(t.staticStyle,e):e}function ln(t){return Array.isArray(t)?T(t):"string"==typeof t?cn(t):t}function un(t){let e="";for(const n in t){const r=t[n],s=O(n);if(Array.isArray(r))for(let t=0,n=r.length;t<n;t++)e+=fn(s,r[t]);else e+=fn(s,r)}return e}function fn(t,e){return"string"==typeof e||"number"==typeof e&&B[t]||0===e?`${t}:${e};`:""}var pn=[function(t){let e=t.data.attrs,n="";const r=t.parent&&t.parent.componentOptions;if(o(r)||!1!==r.Ctor.options.inheritAttrs){let n=t.parent;for(;i(n)&&(!n.componentOptions||!1!==n.componentOptions.Ctor.options.inheritAttrs);)i(n.data)&&i(n.data.attrs)&&(e=C(C({},e),n.data.attrs)),n=n.parent}if(o(e))return n;for(const t in e)L(t)||"style"!==t&&(n+=Q(t,e[t]));return n},function(t){let e=t.data.domProps,n="",r=t.parent;for(;i(r);)r.data&&r.data.domProps&&(e=C(C({},e),r.data.domProps)),r=r.parent;if(o(e))return n;const s=t.data.attrs;for(const r in e)if("innerHTML"===r)et(t,e[r],!0);else if("textContent"===r)et(t,e[r],!1);else if("value"===r&&"textarea"===t.tag)et(t,d(e[r]),!1);else{const t=R[r]||r.toLowerCase();!M(t)||i(s)&&i(s[t])||(n+=Q(t,e[r]))}return n},function(t){const e=function(t){let e=t.data,n=t,r=t;for(;i(r.componentInstance);)r=r.componentInstance._knode,r&&r.data&&(e=tn(r.data,e));for(;i(n=n.parent);)n&&n.data&&(e=tn(e,n.data));return en(e.staticClass,e.class)}(t);if(""!==e)return` class="${z(e)}"`},function(t){const e=un(function(t,e){const n={};let r;if(e){let e=t;for(;e.componentInstance;)e=e.componentInstance._knode,e&&e.data&&(r=an(e.data))&&C(n,r)}(r=an(t.data))&&C(n,r);let s=t;for(;s=s.parent;)s.data&&(r=an(s.data))&&C(n,r);return n}(t,!1));if(""!==e)return` style=${JSON.stringify(z(e))}`}];function dn(t){const e=t.data||{};return e.attrs&&e.attrs.value||e.domProps&&e.domProps.value||t.children&&t.children[0]&&t.children[0].text}function hn(t){const e=t.data||(t.data={});(e.attrs||(e.attrs={})).selected=""}var mn={show:function(t,e){if(!e.value){const e=t.data.style||(t.data.style={});Array.isArray(e)?e.push({display:"none"}):e.display="none"}},model:function(t,e){if(!t.children)return;const n=e.value,r=t.data.attrs&&t.data.attrs.multiple;for(let e=0,s=t.children.length;e<s;e++){const s=t.children[e];if("option"===s.tag)if(r){Array.isArray(n)&&N(n,dn(s))>-1&&hn(s)}else if(P(n,dn(s)))return void hn(s)}}};const gn=g("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),yn=g("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),$n=g("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),vn=800,bn=t=>t,_n="undefined"!=typeof process&&process.nextTick?process.nextTick:"undefined"!=typeof Promise?t=>Promise.resolve().then(t):"undefined"!=typeof setTimeout?setTimeout:bn;if(_n===bn)throw new Error("Your JavaScript runtime does not support any asynchronous primitives that are required by kdu-server-renderer. Please use a polyfill for either Promise or setTimeout.");function xn(t,e){let n=0;const r=(s,o)=>{s&&r.caching&&(r.cacheBuffer[r.cacheBuffer.length-1]+=s);!0!==t(s,o)&&(n>=vn?_n((()=>{try{o()}catch(t){e(t)}})):(n++,o(),n--))};return r.caching=!1,r.cacheBuffer=[],r.componentBuffer=[],r}class wn extends t.Readable{constructor(t){super(),this.buffer="",this.render=t,this.expectedSize=0,this.write=xn(((t,e)=>{const n=this.expectedSize;return this.buffer+=t,this.buffer.length>=n&&(this.next=e,this.pushBySize(n),!0)}),(t=>{this.emit("error",t)})),this.end=()=>{this.emit("beforeEnd"),this.done=!0,this.push(this.buffer)}}pushBySize(t){const e=this.buffer.substring(0,t);this.buffer=this.buffer.substring(t),this.push(e)}tryRender(){try{this.render(this.write,this.end)}catch(t){this.emit("error",t)}}tryNext(){try{this.next()}catch(t){this.emit("error",t)}}_read(t){this.expectedSize=t,c(this.done)?this.push(null):this.buffer.length>=t?this.pushBySize(t):o(this.next)?this.tryRender():this.tryNext()}}class kn{constructor(t){this.userContext=t.userContext,this.activeInstance=t.activeInstance,this.renderStates=[],this.write=t.write,this.done=t.done,this.renderNode=t.renderNode,this.isUnaryTag=t.isUnaryTag,this.modules=t.modules,this.directives=t.directives;const e=t.cache;if(e&&(!e.get||!e.set))throw new Error("renderer cache must implement at least get & set.");this.cache=e,this.get=e&&Sn(e,"get"),this.has=e&&Sn(e,"has"),this.next=this.next.bind(this)}next(){for(;;){const t=this.renderStates[this.renderStates.length-1];if(o(t))return this.done();switch(t.type){case"Element":case"Fragment":const{children:e,total:n}=t,r=t.rendered++;if(r<n)return this.renderNode(e[r],!1,this);if(this.renderStates.pop(),"Element"===t.type)return this.write(t.endTag,this.next);break;case"Component":this.renderStates.pop(),this.activeInstance=t.prevActive;break;case"ComponentWithCache":this.renderStates.pop();const{buffer:s,bufferIndex:o,componentBuffer:i,key:c}=t,a={html:s[o],components:i[o]};if(this.cache.set(c,a),0===o)this.write.caching=!1;else{s[o-1]+=a.html;const t=i[o-1];a.components.forEach((e=>t.add(e)))}s.length=o,i.length=o}}}}function Sn(t,e){const n=t[e];return o(n)?void 0:n.length>1?(e,r)=>n.call(t,e,r):(e,r)=>r(n.call(t,e))}const On=/[\w).+\-_$\]]/;function Cn(t){let e,n,r,s,o,i=!1,c=!1,a=!1,l=!1,u=0,f=0,p=0,d=0;for(r=0;r<t.length;r++)if(n=e,e=t.charCodeAt(r),i)39===e&&92!==n&&(i=!1);else if(c)34===e&&92!==n&&(c=!1);else if(a)96===e&&92!==n&&(a=!1);else if(l)47===e&&92!==n&&(l=!1);else if(124!==e||124===t.charCodeAt(r+1)||124===t.charCodeAt(r-1)||u||f||p){switch(e){case 34:c=!0;break;case 39:i=!0;break;case 96:a=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:u++;break;case 125:u--}if(47===e){let e,n=r-1;for(;n>=0&&(e=t.charAt(n)," "===e);n--);e&&On.test(e)||(l=!0)}}else void 0===s?(d=r+1,s=t.slice(0,r).trim()):h();function h(){(o||(o=[])).push(t.slice(d,r).trim()),d=r+1}if(void 0===s?s=t.slice(0,r).trim():0!==d&&h(),o)for(r=0;r<o.length;r++)s=Tn(s,o[r]);return s}function Tn(t,e){const n=e.indexOf("(");if(n<0)return`_f("${e}")(${t})`;{const r=e.slice(0,n),s=e.slice(n+1);return`_f("${r}")(${t}${")"!==s?","+s:s}`}}const An=/\{\{((?:.|\r?\n)+?)\}\}/g,Fn=/[-.*+?^${}()|[\]\/\\]/g,jn=_((t=>{const e=t[0].replace(Fn,"\\$&"),n=t[1].replace(Fn,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}));function Pn(t,e){console.error(`[Kdu compiler]: ${t}`)}function Nn(t,e){return t?t.map((t=>t[e])).filter((t=>t)):[]}function En(t,e,n,r,s){(t.props||(t.props=[])).push(qn({name:e,value:n,dynamic:s},r)),t.plain=!1}function In(t,e,n,r,s){(s?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(qn({name:e,value:n,dynamic:s},r)),t.plain=!1}function Ln(t,e,n,r){t.attrsMap[e]=n,t.attrsList.push(qn({name:e,value:n},r))}function Mn(t,e,n,r,s,o,i,c){(t.directives||(t.directives=[])).push(qn({name:e,rawName:n,value:r,arg:s,isDynamicArg:o,modifiers:i},c)),t.plain=!1}function Rn(t,e,n){return n?`_p(${e},"${t}")`:t+e}function Dn(t,e,n,s,o,i,c,a){let l;(s=s||r).right?a?e=`(${e})==='click'?'contextmenu':(${e})`:"click"===e&&(e="contextmenu",delete s.right):s.middle&&(a?e=`(${e})==='click'?'mouseup':(${e})`:"click"===e&&(e="mouseup")),s.capture&&(delete s.capture,e=Rn("!",e,a)),s.once&&(delete s.once,e=Rn("~",e,a)),s.passive&&(delete s.passive,e=Rn("&",e,a)),s.native?(delete s.native,l=t.nativeEvents||(t.nativeEvents={})):l=t.events||(t.events={});const u=qn({value:n.trim(),dynamic:a},c);s!==r&&(u.modifiers=s);const f=l[e];Array.isArray(f)?o?f.unshift(u):f.push(u):l[e]=f?o?[u,f]:[f,u]:u,t.plain=!1}function zn(t,e,n){const r=Un(t,":"+e)||Un(t,"k-bind:"+e);if(null!=r)return Cn(r);if(!1!==n){const n=Un(t,e);if(null!=n)return JSON.stringify(n)}}function Un(t,e,n){let r;if(null!=(r=t.attrsMap[e])){const n=t.attrsList;for(let t=0,r=n.length;t<r;t++)if(n[t].name===e){n.splice(t,1);break}}return n&&delete t.attrsMap[e],r}function Bn(t,e){const n=t.attrsList;for(let t=0,r=n.length;t<r;t++){const r=n[t];if(e.test(r.name))return n.splice(t,1),r}}function qn(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}var Kn={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;const n=Un(t,"class");n&&(t.staticClass=JSON.stringify(n.replace(/\s+/g," ").trim()));const r=zn(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){let e="";return t.staticClass&&(e+=`staticClass:${t.staticClass},`),t.classBinding&&(e+=`class:${t.classBinding},`),e}};var Jn={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;const n=Un(t,"style");n&&(t.staticStyle=JSON.stringify(cn(n)));const r=zn(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){let e="";return t.staticStyle&&(e+=`staticStyle:${t.staticStyle},`),t.styleBinding&&(e+=`style:(${t.styleBinding}),`),e}};const Hn=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Zn=/^\s*((?:k-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Wn=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source}]*`,Vn=`((?:${Wn}\\:)?${Wn})`,Gn=new RegExp(`^<${Vn}`),Qn=/^\s*(\/?)>/,Xn=new RegExp(`^<\\/${Vn}[^>]*>`),Yn=/^<!DOCTYPE [^>]+>/i,tr=/^<!\--/,er=/^<!\[/,nr=g("script,style,textarea",!0),rr={},sr={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},or=/&(?:lt|gt|quot|amp|#39);/g,ir=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,cr=g("pre,textarea",!0),ar=(t,e)=>t&&cr(t)&&"\n"===e[0];function lr(t,e){const n=e?ir:or;return t.replace(n,(t=>sr[t]))}function ur(t,e,n){const{number:r,trim:s}=n||{},o="$$v";let i=o;s&&(i=`(typeof ${o} === 'string'? ${o}.trim(): ${o})`),r&&(i=`_n(${i})`);const c=fr(e,i);t.model={value:`(${e})`,expression:JSON.stringify(e),callback:`function (${o}) {${c}}`}}function fr(t,e){const n=function(t){if(t=t.trim(),pr=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<pr-1)return mr=t.lastIndexOf("."),mr>-1?{exp:t.slice(0,mr),key:'"'+t.slice(mr+1)+'"'}:{exp:t,key:null};dr=t,mr=gr=yr=0;for(;!vr();)hr=$r(),br(hr)?xr(hr):91===hr&&_r(hr);return{exp:t.slice(0,gr),key:t.slice(gr+1,yr)}}(t);return null===n.key?`${t}=${e}`:`$set(${n.exp}, ${n.key}, ${e})`}let pr,dr,hr,mr,gr,yr;function $r(){return dr.charCodeAt(++mr)}function vr(){return mr>=pr}function br(t){return 34===t||39===t}function _r(t){let e=1;for(gr=mr;!vr();)if(br(t=$r()))xr(t);else if(91===t&&e++,93===t&&e--,0===e){yr=mr;break}}function xr(t){const e=t;for(;!vr()&&(t=$r())!==e;);}const wr=/^@|^k-on:/,kr=/^k-|^@|^:|^#/,Sr=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Or=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Cr=/^\(|\)$/g,Tr=/^\[.*\]$/,Ar=/:(.*)$/,Fr=/^:|^\.|^k-bind:/,jr=/\.[^.\]]+(?=[^\]]*$)/g,Pr=/^k-slot(:|$)|^#/,Nr=/[\r\n]/,Er=/[ \f\t\r\n]+/g,Ir=_(n.default.decode),Lr="_empty_";let Mr,Rr,Dr,zr,Ur,Br,qr,Kr;function Jr(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:Xr(e),rawAttrsMap:{},parent:n,children:[]}}function Hr(t,e){Mr=e.warn||Pn,Br=e.isPreTag||F,qr=e.mustUseProp||F,Kr=e.getTagNamespace||F,e.isReservedTag,Dr=Nn(e.modules,"transformNode"),zr=Nn(e.modules,"preTransformNode"),Ur=Nn(e.modules,"postTransformNode"),Rr=e.delimiters;const n=[],r=!1!==e.preserveWhitespace,s=e.whitespace;let o,i,c=!1,a=!1;function l(t){if(u(t),c||t.processed||(t=Zr(t,e)),n.length||t===o||o.if&&(t.elseif||t.else)&&Vr(o,{exp:t.elseif,block:t}),i&&!t.forbidden)if(t.elseif||t.else)!function(t,e){const n=function(t){let e=t.length;for(;e--;){if(1===t[e].type)return t[e];t.pop()}}(e.children);n&&n.if&&Vr(n,{exp:t.elseif,block:t})}(t,i);else{if(t.slotScope){const e=t.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[e]=t}i.children.push(t),t.parent=i}t.children=t.children.filter((t=>!t.slotScope)),u(t),t.pre&&(c=!1),Br(t.tag)&&(a=!1);for(let n=0;n<Ur.length;n++)Ur[n](t,e)}function u(t){if(!a){let e;for(;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}}return function(t,e){const n=[],r=e.expectHTML,s=e.isUnaryTag||F,o=e.canBeLeftOpenTag||F;let i,c,a=0;for(;t;){if(i=t,c&&nr(c)){let n=0;const r=c.toLowerCase(),s=rr[r]||(rr[r]=new RegExp("([\\s\\S]*?)(</"+r+"[^>]*>)","i")),o=t.replace(s,(function(t,s,o){return n=o.length,nr(r)||"noscript"===r||(s=s.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),ar(r,s)&&(s=s.slice(1)),e.chars&&e.chars(s),""}));a+=t.length-o.length,t=o,p(r,a-n,a)}else{let n,r,s,o=t.indexOf("<");if(0===o){if(tr.test(t)){const n=t.indexOf("--\x3e");if(n>=0){e.shouldKeepComment&&e.comment&&e.comment(t.substring(4,n),a,a+n+3),l(n+3);continue}}if(er.test(t)){const e=t.indexOf("]>");if(e>=0){l(e+2);continue}}const n=t.match(Yn);if(n){l(n[0].length);continue}const r=t.match(Xn);if(r){const t=a;l(r[0].length),p(r[1],t,a);continue}const s=u();if(s){f(s),ar(s.tagName,t)&&l(1);continue}}if(o>=0){for(r=t.slice(o);!(Xn.test(r)||Gn.test(r)||tr.test(r)||er.test(r)||(s=r.indexOf("<",1),s<0));)o+=s,r=t.slice(o);n=t.substring(0,o)}o<0&&(n=t),n&&l(n.length),e.chars&&n&&e.chars(n,a-n.length,a)}if(t===i){e.chars&&e.chars(t);break}}function l(e){a+=e,t=t.substring(e)}function u(){const e=t.match(Gn);if(e){const n={tagName:e[1],attrs:[],start:a};let r,s;for(l(e[0].length);!(r=t.match(Qn))&&(s=t.match(Zn)||t.match(Hn));)s.start=a,l(s[0].length),s.end=a,n.attrs.push(s);if(r)return n.unarySlash=r[1],l(r[0].length),n.end=a,n}}function f(t){const i=t.tagName,a=t.unarySlash;r&&("p"===c&&$n(i)&&p(c),o(i)&&c===i&&p(i));const l=s(i)||!!a,u=t.attrs.length,f=new Array(u);for(let n=0;n<u;n++){const r=t.attrs[n],s=r[3]||r[4]||r[5]||"",o="a"===i&&"href"===r[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;f[n]={name:r[1],value:lr(s,o)}}l||(n.push({tag:i,lowerCasedTag:i.toLowerCase(),attrs:f,start:t.start,end:t.end}),c=i),e.start&&e.start(i,f,l,t.start,t.end)}function p(t,r,s){let o,i;if(null==r&&(r=a),null==s&&(s=a),t)for(i=t.toLowerCase(),o=n.length-1;o>=0&&n[o].lowerCasedTag!==i;o--);else o=0;if(o>=0){for(let t=n.length-1;t>=o;t--)e.end&&e.end(n[t].tag,r,s);n.length=o,c=o&&n[o-1].tag}else"br"===i?e.start&&e.start(t,[],!0,r,s):"p"===i&&(e.start&&e.start(t,[],!1,r,s),e.end&&e.end(t,r,s))}p()}(t,{warn:Mr,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start(t,r,s,u,f){const p=i&&i.ns||Kr(t);it&&"svg"===p&&(r=function(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];Yr.test(r.name)||(r.name=r.name.replace(ts,""),e.push(r))}return e}(r));let d=Jr(t,r,i);var h;p&&(d.ns=p),"style"!==(h=d).tag&&("script"!==h.tag||h.attrsMap.type&&"text/javascript"!==h.attrsMap.type)||ut()||(d.forbidden=!0);for(let t=0;t<zr.length;t++)d=zr[t](d,e)||d;c||(!function(t){null!=Un(t,"k-pre")&&(t.pre=!0)}(d),d.pre&&(c=!0)),Br(d.tag)&&(a=!0),c?function(t){const e=t.attrsList,n=e.length;if(n){const r=t.attrs=new Array(n);for(let t=0;t<n;t++)r[t]={name:e[t].name,value:JSON.stringify(e[t].value)},null!=e[t].start&&(r[t].start=e[t].start,r[t].end=e[t].end)}else t.pre||(t.plain=!0)}(d):d.processed||(Wr(d),function(t){const e=Un(t,"k-if");if(e)t.if=e,Vr(t,{exp:e,block:t});else{null!=Un(t,"k-else")&&(t.else=!0);const e=Un(t,"k-else-if");e&&(t.elseif=e)}}(d),function(t){const e=Un(t,"k-once");null!=e&&(t.once=!0)}(d)),o||(o=d),s?l(d):(i=d,n.push(d))},end(t,e,r){const s=n[n.length-1];n.length-=1,i=n[n.length-1],l(s)},chars(t,e,n){if(!i)return;if(it&&"textarea"===i.tag&&i.attrsMap.placeholder===t)return;const o=i.children;var l;if(t=a||t.trim()?"script"===(l=i).tag||"style"===l.tag?t:Ir(t):o.length?s?"condense"===s&&Nr.test(t)?"":" ":r?" ":"":""){let e,n;a||"condense"!==s||(t=t.replace(Er," ")),!c&&" "!==t&&(e=function(t,e){const n=e?jn(e):An;if(!n.test(t))return;const r=[],s=[];let o,i,c,a=n.lastIndex=0;for(;o=n.exec(t);){i=o.index,i>a&&(s.push(c=t.slice(a,i)),r.push(JSON.stringify(c)));const e=Cn(o[1].trim());r.push(`_s(${e})`),s.push({"@binding":e}),a=i+o[0].length}return a<t.length&&(s.push(c=t.slice(a)),r.push(JSON.stringify(c))),{expression:r.join("+"),tokens:s}}(t,Rr))?n={type:2,expression:e.expression,tokens:e.tokens,text:t}:" "===t&&o.length&&" "===o[o.length-1].text||(n={type:3,text:t}),n&&o.push(n)}},comment(t,e,n){if(i){const e={type:3,text:t,isComment:!0};i.children.push(e)}}}),o}function Zr(t,e){var n;!function(t){const e=zn(t,"key");e&&(t.key=e)}(t),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){const e=zn(t,"ref");e&&(t.ref=e,t.refInFor=function(t){let e=t;for(;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){let e;"template"===t.tag?(e=Un(t,"scope"),t.slotScope=e||Un(t,"slot-scope")):(e=Un(t,"slot-scope"))&&(t.slotScope=e);const n=zn(t,"slot");n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["k-bind:slot"]),"template"===t.tag||t.slotScope||In(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["k-bind:"+e]||t.rawAttrsMap[e]}(t,"slot")));if("template"===t.tag){const e=Bn(t,Pr);if(e){const{name:n,dynamic:r}=Gr(e);t.slotTarget=n,t.slotTargetDynamic=r,t.slotScope=e.value||Lr}}else{const e=Bn(t,Pr);if(e){const n=t.scopedSlots||(t.scopedSlots={}),{name:r,dynamic:s}=Gr(e),o=n[r]=Jr("template",[],t);o.slotTarget=r,o.slotTargetDynamic=s,o.children=t.children.filter((t=>{if(!t.slotScope)return t.parent=o,!0})),o.slotScope=e.value||Lr,t.children=[],t.plain=!1}}}(t),"slot"===(n=t).tag&&(n.slotName=zn(n,"name")),function(t){let e;(e=zn(t,"is"))&&(t.component=e);null!=Un(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(let n=0;n<Dr.length;n++)t=Dr[n](t,e)||t;return function(t){const e=t.attrsList;let n,r,s,o,i,c,a,l;for(n=0,r=e.length;n<r;n++)if(s=o=e[n].name,i=e[n].value,kr.test(s))if(t.hasBindings=!0,c=Qr(s.replace(kr,"")),c&&(s=s.replace(jr,"")),Fr.test(s))s=s.replace(Fr,""),i=Cn(i),l=Tr.test(s),l&&(s=s.slice(1,-1)),c&&(c.prop&&!l&&(s=w(s),"innerHtml"===s&&(s="innerHTML")),c.camel&&!l&&(s=w(s)),c.sync&&(a=fr(i,"$event"),l?Dn(t,`"update:"+(${s})`,a,null,!1,0,e[n],!0):(Dn(t,`update:${w(s)}`,a,null,!1,0,e[n]),O(s)!==w(s)&&Dn(t,`update:${O(s)}`,a,null,!1,0,e[n])))),c&&c.prop||!t.component&&qr(t.tag,t.attrsMap.type,s)?En(t,s,i,e[n],l):In(t,s,i,e[n],l);else if(wr.test(s))s=s.replace(wr,""),l=Tr.test(s),l&&(s=s.slice(1,-1)),Dn(t,s,i,c,!1,0,e[n],l);else{s=s.replace(kr,"");const r=s.match(Ar);let a=r&&r[1];l=!1,a&&(s=s.slice(0,-(a.length+1)),Tr.test(a)&&(a=a.slice(1,-1),l=!0)),Mn(t,s,o,i,a,l,c,e[n])}else In(t,s,JSON.stringify(i),e[n]),!t.component&&"muted"===s&&qr(t.tag,t.attrsMap.type,s)&&En(t,s,"true",e[n])}(t),t}function Wr(t){let e;if(e=Un(t,"k-for")){const n=function(t){const e=t.match(Sr);if(!e)return;const n={};n.for=e[2].trim();const r=e[1].trim().replace(Cr,""),s=r.match(Or);s?(n.alias=r.replace(Or,"").trim(),n.iterator1=s[1].trim(),s[2]&&(n.iterator2=s[2].trim())):n.alias=r;return n}(e);n&&C(t,n)}}function Vr(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function Gr(t){let e=t.name.replace(Pr,"");return e||"#"!==t.name[0]&&(e="default"),Tr.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:`"${e}"`,dynamic:!1}}function Qr(t){const e=t.match(jr);if(e){const t={};return e.forEach((e=>{t[e.slice(1)]=!0})),t}}function Xr(t){const e={};for(let n=0,r=t.length;n<r;n++)e[t[n].name]=t[n].value;return e}const Yr=/^xmlns:NS\d+/,ts=/^NS\d+:/;function es(t){return Jr(t.tag,t.attrsList.slice(),t.parent)}var ns=[Kn,Jn,{preTransformNode:function(t,e){if("input"===t.tag){const n=t.attrsMap;if(!n["k-model"])return;let r;if((n[":type"]||n["k-bind:type"])&&(r=zn(t,"type")),n.type||r||!n["k-bind"]||(r=`(${n["k-bind"]}).type`),r){const n=Un(t,"k-if",!0),s=n?`&&(${n})`:"",o=null!=Un(t,"k-else",!0),i=Un(t,"k-else-if",!0),c=es(t);Wr(c),Ln(c,"type","checkbox"),Zr(c,e),c.processed=!0,c.if=`(${r})==='checkbox'`+s,Vr(c,{exp:c.if,block:c});const a=es(t);Un(a,"k-for",!0),Ln(a,"type","radio"),Zr(a,e),Vr(c,{exp:`(${r})==='radio'`+s,block:a});const l=es(t);return Un(l,"k-for",!0),Ln(l,":type",r),Zr(l,e),Vr(c,{exp:n,block:l}),o?c.else=!0:i&&(c.elseif=i),c}}}}];const rs="__r";const ss={expectHTML:!0,modules:ns,directives:{model:function(t,e,n){const r=e.value,s=e.modifiers,o=t.tag,i=t.attrsMap.type;if(t.component)return ur(t,r,s),!1;if("select"===o)!function(t,e,n){const r=n&&n.number;let s=`var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return ${r?"_n(val)":"val"}});`;s=`${s} ${fr(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]")}`,Dn(t,"change",s,null,!0)}(t,r,s);else if("input"===o&&"checkbox"===i)!function(t,e,n){const r=n&&n.number,s=zn(t,"value")||"null",o=zn(t,"true-value")||"true",i=zn(t,"false-value")||"false";En(t,"checked",`Array.isArray(${e})?_i(${e},${s})>-1`+("true"===o?`:(${e})`:`:_q(${e},${o})`)),Dn(t,"change",`var $$a=${e},$$el=$event.target,$$c=$$el.checked?(${o}):(${i});if(Array.isArray($$a)){var $$v=${r?"_n("+s+")":s},$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(${fr(e,"$$a.concat([$$v])")})}else{$$i>-1&&(${fr(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${fr(e,"$$c")}}`,null,!0)}(t,r,s);else if("input"===o&&"radio"===i)!function(t,e,n){const r=n&&n.number;let s=zn(t,"value")||"null";s=r?`_n(${s})`:s,En(t,"checked",`_q(${e},${s})`),Dn(t,"change",fr(e,s),null,!0)}(t,r,s);else{if("input"!==o&&"textarea"!==o)return ur(t,r,s),!1;!function(t,e,n){const r=t.attrsMap.type,{lazy:s,number:o,trim:i}=n||{},c=!s&&"range"!==r,a=s?"change":"range"===r?rs:"input";let l="$event.target.value";i&&(l="$event.target.value.trim()");o&&(l=`_n(${l})`);let u=fr(e,l);c&&(u=`if($event.target.composing)return;${u}`);En(t,"value",`(${e})`),Dn(t,a,u,null,!0),(i||o)&&Dn(t,"blur","$forceUpdate()")}(t,r,s)}retu