File: //proc/self/cwd/wp-content/plugins/crop-thumbnails/app/main.js
window.CROP_THUMBNAILS_VUE={app:null,components:{}};function jh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Io={exports:{}};/*!
* jQuery JavaScript Library v3.7.1
* https://jquery.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2023-08-28T13:37Z
*/var uy=Io.exports,cf;function fy(){return cf||(cf=1,function(e){(function(t,i){e.exports=t.document?i(t,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return i(n)}})(typeof window<"u"?window:uy,function(t,i){var n=[],s=Object.getPrototypeOf,r=n.slice,a=n.flat?function(o){return n.flat.call(o)}:function(o){return n.concat.apply([],o)},c=n.push,u=n.indexOf,g={},p=g.toString,m=g.hasOwnProperty,b=m.toString,S=b.call(Object),_={},C=function(l){return typeof l=="function"&&typeof l.nodeType!="number"&&typeof l.item!="function"},P=function(l){return l!=null&&l===l.window},M=t.document,j={type:!0,src:!0,nonce:!0,noModule:!0};function R(o,l,f){f=f||M;var d,y,v=f.createElement("script");if(v.text=o,l)for(d in j)y=l[d]||l.getAttribute&&l.getAttribute(d),y&&v.setAttribute(d,y);f.head.appendChild(v).parentNode.removeChild(v)}function k(o){return o==null?o+"":typeof o=="object"||typeof o=="function"?g[p.call(o)]||"object":typeof o}var H="3.7.1",G=/HTML$/i,h=function(o,l){return new h.fn.init(o,l)};h.fn=h.prototype={jquery:H,constructor:h,length:0,toArray:function(){return r.call(this)},get:function(o){return o==null?r.call(this):o<0?this[o+this.length]:this[o]},pushStack:function(o){var l=h.merge(this.constructor(),o);return l.prevObject=this,l},each:function(o){return h.each(this,o)},map:function(o){return this.pushStack(h.map(this,function(l,f){return o.call(l,f,l)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(h.grep(this,function(o,l){return(l+1)%2}))},odd:function(){return this.pushStack(h.grep(this,function(o,l){return l%2}))},eq:function(o){var l=this.length,f=+o+(o<0?l:0);return this.pushStack(f>=0&&f<l?[this[f]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:n.sort,splice:n.splice},h.extend=h.fn.extend=function(){var o,l,f,d,y,v,w=arguments[0]||{},x=1,E=arguments.length,N=!1;for(typeof w=="boolean"&&(N=w,w=arguments[x]||{},x++),typeof w!="object"&&!C(w)&&(w={}),x===E&&(w=this,x--);x<E;x++)if((o=arguments[x])!=null)for(l in o)d=o[l],!(l==="__proto__"||w===d)&&(N&&d&&(h.isPlainObject(d)||(y=Array.isArray(d)))?(f=w[l],y&&!Array.isArray(f)?v=[]:!y&&!h.isPlainObject(f)?v={}:v=f,y=!1,w[l]=h.extend(N,v,d)):d!==void 0&&(w[l]=d));return w},h.extend({expando:"jQuery"+(H+Math.random()).replace(/\D/g,""),isReady:!0,error:function(o){throw new Error(o)},noop:function(){},isPlainObject:function(o){var l,f;return!o||p.call(o)!=="[object Object]"?!1:(l=s(o),l?(f=m.call(l,"constructor")&&l.constructor,typeof f=="function"&&b.call(f)===S):!0)},isEmptyObject:function(o){var l;for(l in o)return!1;return!0},globalEval:function(o,l,f){R(o,{nonce:l&&l.nonce},f)},each:function(o,l){var f,d=0;if(te(o))for(f=o.length;d<f&&l.call(o[d],d,o[d])!==!1;d++);else for(d in o)if(l.call(o[d],d,o[d])===!1)break;return o},text:function(o){var l,f="",d=0,y=o.nodeType;if(!y)for(;l=o[d++];)f+=h.text(l);return y===1||y===11?o.textContent:y===9?o.documentElement.textContent:y===3||y===4?o.nodeValue:f},makeArray:function(o,l){var f=l||[];return o!=null&&(te(Object(o))?h.merge(f,typeof o=="string"?[o]:o):c.call(f,o)),f},inArray:function(o,l,f){return l==null?-1:u.call(l,o,f)},isXMLDoc:function(o){var l=o&&o.namespaceURI,f=o&&(o.ownerDocument||o).documentElement;return!G.test(l||f&&f.nodeName||"HTML")},merge:function(o,l){for(var f=+l.length,d=0,y=o.length;d<f;d++)o[y++]=l[d];return o.length=y,o},grep:function(o,l,f){for(var d,y=[],v=0,w=o.length,x=!f;v<w;v++)d=!l(o[v],v),d!==x&&y.push(o[v]);return y},map:function(o,l,f){var d,y,v=0,w=[];if(te(o))for(d=o.length;v<d;v++)y=l(o[v],v,f),y!=null&&w.push(y);else for(v in o)y=l(o[v],v,f),y!=null&&w.push(y);return a(w)},guid:1,support:_}),typeof Symbol=="function"&&(h.fn[Symbol.iterator]=n[Symbol.iterator]),h.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(o,l){g["[object "+l+"]"]=l.toLowerCase()});function te(o){var l=!!o&&"length"in o&&o.length,f=k(o);return C(o)||P(o)?!1:f==="array"||l===0||typeof l=="number"&&l>0&&l-1 in o}function D(o,l){return o.nodeName&&o.nodeName.toLowerCase()===l.toLowerCase()}var V=n.pop,re=n.sort,W=n.splice,J="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+J+"+|((?:^|[^\\\\])(?:\\\\.)*)"+J+"+$","g");h.contains=function(o,l){var f=l&&l.parentNode;return o===f||!!(f&&f.nodeType===1&&(o.contains?o.contains(f):o.compareDocumentPosition&&o.compareDocumentPosition(f)&16))};var Ee=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function ge(o,l){return l?o==="\0"?"�":o.slice(0,-1)+"\\"+o.charCodeAt(o.length-1).toString(16)+" ":"\\"+o}h.escapeSelector=function(o){return(o+"").replace(Ee,ge)};var _e=M,ye=c;(function(){var o,l,f,d,y,v=ye,w,x,E,N,$,X=h.expando,z=0,se=0,Ie=oo(),$e=oo(),Pe=oo(),Rt=oo(),yt=function(T,I){return T===I&&(y=!0),0},Fi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ji="(?:\\\\[\\da-fA-F]{1,6}"+J+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Fe="\\["+J+"*("+ji+")(?:"+J+"*([*^$|!~]?=)"+J+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+ji+"))|)"+J+"*\\]",Un=":("+ji+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Fe+")*)|.*)\\)|)",qe=new RegExp(J+"+","g"),ut=new RegExp("^"+J+"*,"+J+"*"),cr=new RegExp("^"+J+"*([>+~]|"+J+")"+J+"*"),ml=new RegExp(J+"|>"),Bi=new RegExp(Un),ur=new RegExp("^"+ji+"$"),$i={ID:new RegExp("^#("+ji+")"),CLASS:new RegExp("^\\.("+ji+")"),TAG:new RegExp("^("+ji+"|[*])"),ATTR:new RegExp("^"+Fe),PSEUDO:new RegExp("^"+Un),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+J+"*(even|odd|(([+-]|)(\\d*)n|)"+J+"*(?:([+-]|)"+J+"*(\\d+)|))"+J+"*\\)|)","i"),bool:new RegExp("^(?:"+Fi+")$","i"),needsContext:new RegExp("^"+J+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+J+"*((?:-\\d)?\\d*)"+J+"*\\)|)(?=[^-]|$)","i")},Sn=/^(?:input|select|textarea|button)$/i,_n=/^h\d$/i,bi=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yl=/[+~]/,tn=new RegExp("\\\\[\\da-fA-F]{1,6}"+J+"?|\\\\([^\\r\\n\\f])","g"),nn=function(T,I){var L="0x"+T.slice(1)-65536;return I||(L<0?String.fromCharCode(L+65536):String.fromCharCode(L>>10|55296,L&1023|56320))},ny=function(){Cn()},sy=lo(function(T){return T.disabled===!0&&D(T,"fieldset")},{dir:"parentNode",next:"legend"});function ry(){try{return w.activeElement}catch{}}try{v.apply(n=r.call(_e.childNodes),_e.childNodes),n[_e.childNodes.length].nodeType}catch{v={apply:function(I,L){ye.apply(I,r.call(L))},call:function(I){ye.apply(I,r.call(arguments,1))}}}function Ze(T,I,L,F){var K,oe,de,we,pe,Le,Re,Oe=I&&I.ownerDocument,He=I?I.nodeType:9;if(L=L||[],typeof T!="string"||!T||He!==1&&He!==9&&He!==11)return L;if(!F&&(Cn(I),I=I||w,E)){if(He!==11&&(pe=bi.exec(T)))if(K=pe[1]){if(He===9)if(de=I.getElementById(K)){if(de.id===K)return v.call(L,de),L}else return L;else if(Oe&&(de=Oe.getElementById(K))&&Ze.contains(I,de)&&de.id===K)return v.call(L,de),L}else{if(pe[2])return v.apply(L,I.getElementsByTagName(T)),L;if((K=pe[3])&&I.getElementsByClassName)return v.apply(L,I.getElementsByClassName(K)),L}if(!Rt[T+" "]&&(!N||!N.test(T))){if(Re=T,Oe=I,He===1&&(ml.test(T)||cr.test(T))){for(Oe=yl.test(T)&&vl(I.parentNode)||I,(Oe!=I||!_.scope)&&((we=I.getAttribute("id"))?we=h.escapeSelector(we):I.setAttribute("id",we=X)),Le=fr(T),oe=Le.length;oe--;)Le[oe]=(we?"#"+we:":scope")+" "+ao(Le[oe]);Re=Le.join(",")}try{return v.apply(L,Oe.querySelectorAll(Re)),L}catch{Rt(T,!0)}finally{we===X&&I.removeAttribute("id")}}}return lf(T.replace(ve,"$1"),I,L,F)}function oo(){var T=[];function I(L,F){return T.push(L+" ")>l.cacheLength&&delete I[T.shift()],I[L+" "]=F}return I}function Ni(T){return T[X]=!0,T}function ws(T){var I=w.createElement("fieldset");try{return!!T(I)}catch{return!1}finally{I.parentNode&&I.parentNode.removeChild(I),I=null}}function oy(T){return function(I){return D(I,"input")&&I.type===T}}function ay(T){return function(I){return(D(I,"input")||D(I,"button"))&&I.type===T}}function of(T){return function(I){return"form"in I?I.parentNode&&I.disabled===!1?"label"in I?"label"in I.parentNode?I.parentNode.disabled===T:I.disabled===T:I.isDisabled===T||I.isDisabled!==!T&&sy(I)===T:I.disabled===T:"label"in I?I.disabled===T:!1}}function Wn(T){return Ni(function(I){return I=+I,Ni(function(L,F){for(var K,oe=T([],L.length,I),de=oe.length;de--;)L[K=oe[de]]&&(L[K]=!(F[K]=L[K]))})})}function vl(T){return T&&typeof T.getElementsByTagName<"u"&&T}function Cn(T){var I,L=T?T.ownerDocument||T:_e;return L==w||L.nodeType!==9||!L.documentElement||(w=L,x=w.documentElement,E=!h.isXMLDoc(w),$=x.matches||x.webkitMatchesSelector||x.msMatchesSelector,x.msMatchesSelector&&_e!=w&&(I=w.defaultView)&&I.top!==I&&I.addEventListener("unload",ny),_.getById=ws(function(F){return x.appendChild(F).id=h.expando,!w.getElementsByName||!w.getElementsByName(h.expando).length}),_.disconnectedMatch=ws(function(F){return $.call(F,"*")}),_.scope=ws(function(){return w.querySelectorAll(":scope")}),_.cssHas=ws(function(){try{return w.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),_.getById?(l.filter.ID=function(F){var K=F.replace(tn,nn);return function(oe){return oe.getAttribute("id")===K}},l.find.ID=function(F,K){if(typeof K.getElementById<"u"&&E){var oe=K.getElementById(F);return oe?[oe]:[]}}):(l.filter.ID=function(F){var K=F.replace(tn,nn);return function(oe){var de=typeof oe.getAttributeNode<"u"&&oe.getAttributeNode("id");return de&&de.value===K}},l.find.ID=function(F,K){if(typeof K.getElementById<"u"&&E){var oe,de,we,pe=K.getElementById(F);if(pe){if(oe=pe.getAttributeNode("id"),oe&&oe.value===F)return[pe];for(we=K.getElementsByName(F),de=0;pe=we[de++];)if(oe=pe.getAttributeNode("id"),oe&&oe.value===F)return[pe]}return[]}}),l.find.TAG=function(F,K){return typeof K.getElementsByTagName<"u"?K.getElementsByTagName(F):K.querySelectorAll(F)},l.find.CLASS=function(F,K){if(typeof K.getElementsByClassName<"u"&&E)return K.getElementsByClassName(F)},N=[],ws(function(F){var K;x.appendChild(F).innerHTML="<a id='"+X+"' href='' disabled='disabled'></a><select id='"+X+"-\r\\' disabled='disabled'><option selected=''></option></select>",F.querySelectorAll("[selected]").length||N.push("\\["+J+"*(?:value|"+Fi+")"),F.querySelectorAll("[id~="+X+"-]").length||N.push("~="),F.querySelectorAll("a#"+X+"+*").length||N.push(".#.+[+~]"),F.querySelectorAll(":checked").length||N.push(":checked"),K=w.createElement("input"),K.setAttribute("type","hidden"),F.appendChild(K).setAttribute("name","D"),x.appendChild(F).disabled=!0,F.querySelectorAll(":disabled").length!==2&&N.push(":enabled",":disabled"),K=w.createElement("input"),K.setAttribute("name",""),F.appendChild(K),F.querySelectorAll("[name='']").length||N.push("\\["+J+"*name"+J+"*="+J+`*(?:''|"")`)}),_.cssHas||N.push(":has"),N=N.length&&new RegExp(N.join("|")),yt=function(F,K){if(F===K)return y=!0,0;var oe=!F.compareDocumentPosition-!K.compareDocumentPosition;return oe||(oe=(F.ownerDocument||F)==(K.ownerDocument||K)?F.compareDocumentPosition(K):1,oe&1||!_.sortDetached&&K.compareDocumentPosition(F)===oe?F===w||F.ownerDocument==_e&&Ze.contains(_e,F)?-1:K===w||K.ownerDocument==_e&&Ze.contains(_e,K)?1:d?u.call(d,F)-u.call(d,K):0:oe&4?-1:1)}),w}Ze.matches=function(T,I){return Ze(T,null,null,I)},Ze.matchesSelector=function(T,I){if(Cn(T),E&&!Rt[I+" "]&&(!N||!N.test(I)))try{var L=$.call(T,I);if(L||_.disconnectedMatch||T.document&&T.document.nodeType!==11)return L}catch{Rt(I,!0)}return Ze(I,w,null,[T]).length>0},Ze.contains=function(T,I){return(T.ownerDocument||T)!=w&&Cn(T),h.contains(T,I)},Ze.attr=function(T,I){(T.ownerDocument||T)!=w&&Cn(T);var L=l.attrHandle[I.toLowerCase()],F=L&&m.call(l.attrHandle,I.toLowerCase())?L(T,I,!E):void 0;return F!==void 0?F:T.getAttribute(I)},Ze.error=function(T){throw new Error("Syntax error, unrecognized expression: "+T)},h.uniqueSort=function(T){var I,L=[],F=0,K=0;if(y=!_.sortStable,d=!_.sortStable&&r.call(T,0),re.call(T,yt),y){for(;I=T[K++];)I===T[K]&&(F=L.push(K));for(;F--;)W.call(T,L[F],1)}return d=null,T},h.fn.uniqueSort=function(){return this.pushStack(h.uniqueSort(r.apply(this)))},l=h.expr={cacheLength:50,createPseudo:Ni,match:$i,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(T){return T[1]=T[1].replace(tn,nn),T[3]=(T[3]||T[4]||T[5]||"").replace(tn,nn),T[2]==="~="&&(T[3]=" "+T[3]+" "),T.slice(0,4)},CHILD:function(T){return T[1]=T[1].toLowerCase(),T[1].slice(0,3)==="nth"?(T[3]||Ze.error(T[0]),T[4]=+(T[4]?T[5]+(T[6]||1):2*(T[3]==="even"||T[3]==="odd")),T[5]=+(T[7]+T[8]||T[3]==="odd")):T[3]&&Ze.error(T[0]),T},PSEUDO:function(T){var I,L=!T[6]&&T[2];return $i.CHILD.test(T[0])?null:(T[3]?T[2]=T[4]||T[5]||"":L&&Bi.test(L)&&(I=fr(L,!0))&&(I=L.indexOf(")",L.length-I)-L.length)&&(T[0]=T[0].slice(0,I),T[2]=L.slice(0,I)),T.slice(0,3))}},filter:{TAG:function(T){var I=T.replace(tn,nn).toLowerCase();return T==="*"?function(){return!0}:function(L){return D(L,I)}},CLASS:function(T){var I=Ie[T+" "];return I||(I=new RegExp("(^|"+J+")"+T+"("+J+"|$)"))&&Ie(T,function(L){return I.test(typeof L.className=="string"&&L.className||typeof L.getAttribute<"u"&&L.getAttribute("class")||"")})},ATTR:function(T,I,L){return function(F){var K=Ze.attr(F,T);return K==null?I==="!=":I?(K+="",I==="="?K===L:I==="!="?K!==L:I==="^="?L&&K.indexOf(L)===0:I==="*="?L&&K.indexOf(L)>-1:I==="$="?L&&K.slice(-L.length)===L:I==="~="?(" "+K.replace(qe," ")+" ").indexOf(L)>-1:I==="|="?K===L||K.slice(0,L.length+1)===L+"-":!1):!0}},CHILD:function(T,I,L,F,K){var oe=T.slice(0,3)!=="nth",de=T.slice(-4)!=="last",we=I==="of-type";return F===1&&K===0?function(pe){return!!pe.parentNode}:function(pe,Le,Re){var Oe,He,Te,st,Zt,Pt=oe!==de?"nextSibling":"previousSibling",wi=pe.parentNode,Ui=we&&pe.nodeName.toLowerCase(),Ss=!Re&&!we,qt=!1;if(wi){if(oe){for(;Pt;){for(Te=pe;Te=Te[Pt];)if(we?D(Te,Ui):Te.nodeType===1)return!1;Zt=Pt=T==="only"&&!Zt&&"nextSibling"}return!0}if(Zt=[de?wi.firstChild:wi.lastChild],de&&Ss){for(He=wi[X]||(wi[X]={}),Oe=He[T]||[],st=Oe[0]===z&&Oe[1],qt=st&&Oe[2],Te=st&&wi.childNodes[st];Te=++st&&Te&&Te[Pt]||(qt=st=0)||Zt.pop();)if(Te.nodeType===1&&++qt&&Te===pe){He[T]=[z,st,qt];break}}else if(Ss&&(He=pe[X]||(pe[X]={}),Oe=He[T]||[],st=Oe[0]===z&&Oe[1],qt=st),qt===!1)for(;(Te=++st&&Te&&Te[Pt]||(qt=st=0)||Zt.pop())&&!((we?D(Te,Ui):Te.nodeType===1)&&++qt&&(Ss&&(He=Te[X]||(Te[X]={}),He[T]=[z,qt]),Te===pe)););return qt-=K,qt===F||qt%F===0&&qt/F>=0}}},PSEUDO:function(T,I){var L,F=l.pseudos[T]||l.setFilters[T.toLowerCase()]||Ze.error("unsupported pseudo: "+T);return F[X]?F(I):F.length>1?(L=[T,T,"",I],l.setFilters.hasOwnProperty(T.toLowerCase())?Ni(function(K,oe){for(var de,we=F(K,I),pe=we.length;pe--;)de=u.call(K,we[pe]),K[de]=!(oe[de]=we[pe])}):function(K){return F(K,0,L)}):F}},pseudos:{not:Ni(function(T){var I=[],L=[],F=_l(T.replace(ve,"$1"));return F[X]?Ni(function(K,oe,de,we){for(var pe,Le=F(K,null,we,[]),Re=K.length;Re--;)(pe=Le[Re])&&(K[Re]=!(oe[Re]=pe))}):function(K,oe,de){return I[0]=K,F(I,null,de,L),I[0]=null,!L.pop()}}),has:Ni(function(T){return function(I){return Ze(T,I).length>0}}),contains:Ni(function(T){return T=T.replace(tn,nn),function(I){return(I.textContent||h.text(I)).indexOf(T)>-1}}),lang:Ni(function(T){return ur.test(T||"")||Ze.error("unsupported lang: "+T),T=T.replace(tn,nn).toLowerCase(),function(I){var L;do if(L=E?I.lang:I.getAttribute("xml:lang")||I.getAttribute("lang"))return L=L.toLowerCase(),L===T||L.indexOf(T+"-")===0;while((I=I.parentNode)&&I.nodeType===1);return!1}}),target:function(T){var I=t.location&&t.location.hash;return I&&I.slice(1)===T.id},root:function(T){return T===x},focus:function(T){return T===ry()&&w.hasFocus()&&!!(T.type||T.href||~T.tabIndex)},enabled:of(!1),disabled:of(!0),checked:function(T){return D(T,"input")&&!!T.checked||D(T,"option")&&!!T.selected},selected:function(T){return T.parentNode&&T.parentNode.selectedIndex,T.selected===!0},empty:function(T){for(T=T.firstChild;T;T=T.nextSibling)if(T.nodeType<6)return!1;return!0},parent:function(T){return!l.pseudos.empty(T)},header:function(T){return _n.test(T.nodeName)},input:function(T){return Sn.test(T.nodeName)},button:function(T){return D(T,"input")&&T.type==="button"||D(T,"button")},text:function(T){var I;return D(T,"input")&&T.type==="text"&&((I=T.getAttribute("type"))==null||I.toLowerCase()==="text")},first:Wn(function(){return[0]}),last:Wn(function(T,I){return[I-1]}),eq:Wn(function(T,I,L){return[L<0?L+I:L]}),even:Wn(function(T,I){for(var L=0;L<I;L+=2)T.push(L);return T}),odd:Wn(function(T,I){for(var L=1;L<I;L+=2)T.push(L);return T}),lt:Wn(function(T,I,L){var F;for(L<0?F=L+I:L>I?F=I:F=L;--F>=0;)T.push(F);return T}),gt:Wn(function(T,I,L){for(var F=L<0?L+I:L;++F<I;)T.push(F);return T})}},l.pseudos.nth=l.pseudos.eq;for(o in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})l.pseudos[o]=oy(o);for(o in{submit:!0,reset:!0})l.pseudos[o]=ay(o);function af(){}af.prototype=l.filters=l.pseudos,l.setFilters=new af;function fr(T,I){var L,F,K,oe,de,we,pe,Le=$e[T+" "];if(Le)return I?0:Le.slice(0);for(de=T,we=[],pe=l.preFilter;de;){(!L||(F=ut.exec(de)))&&(F&&(de=de.slice(F[0].length)||de),we.push(K=[])),L=!1,(F=cr.exec(de))&&(L=F.shift(),K.push({value:L,type:F[0].replace(ve," ")}),de=de.slice(L.length));for(oe in l.filter)(F=$i[oe].exec(de))&&(!pe[oe]||(F=pe[oe](F)))&&(L=F.shift(),K.push({value:L,type:oe,matches:F}),de=de.slice(L.length));if(!L)break}return I?de.length:de?Ze.error(T):$e(T,we).slice(0)}function ao(T){for(var I=0,L=T.length,F="";I<L;I++)F+=T[I].value;return F}function lo(T,I,L){var F=I.dir,K=I.next,oe=K||F,de=L&&oe==="parentNode",we=se++;return I.first?function(pe,Le,Re){for(;pe=pe[F];)if(pe.nodeType===1||de)return T(pe,Le,Re);return!1}:function(pe,Le,Re){var Oe,He,Te=[z,we];if(Re){for(;pe=pe[F];)if((pe.nodeType===1||de)&&T(pe,Le,Re))return!0}else for(;pe=pe[F];)if(pe.nodeType===1||de)if(He=pe[X]||(pe[X]={}),K&&D(pe,K))pe=pe[F]||pe;else{if((Oe=He[oe])&&Oe[0]===z&&Oe[1]===we)return Te[2]=Oe[2];if(He[oe]=Te,Te[2]=T(pe,Le,Re))return!0}return!1}}function bl(T){return T.length>1?function(I,L,F){for(var K=T.length;K--;)if(!T[K](I,L,F))return!1;return!0}:T[0]}function ly(T,I,L){for(var F=0,K=I.length;F<K;F++)Ze(T,I[F],L);return L}function co(T,I,L,F,K){for(var oe,de=[],we=0,pe=T.length,Le=I!=null;we<pe;we++)(oe=T[we])&&(!L||L(oe,F,K))&&(de.push(oe),Le&&I.push(we));return de}function wl(T,I,L,F,K,oe){return F&&!F[X]&&(F=wl(F)),K&&!K[X]&&(K=wl(K,oe)),Ni(function(de,we,pe,Le){var Re,Oe,He,Te,st=[],Zt=[],Pt=we.length,wi=de||ly(I||"*",pe.nodeType?[pe]:pe,[]),Ui=T&&(de||!I)?co(wi,st,T,pe,Le):wi;if(L?(Te=K||(de?T:Pt||F)?[]:we,L(Ui,Te,pe,Le)):Te=Ui,F)for(Re=co(Te,Zt),F(Re,[],pe,Le),Oe=Re.length;Oe--;)(He=Re[Oe])&&(Te[Zt[Oe]]=!(Ui[Zt[Oe]]=He));if(de){if(K||T){if(K){for(Re=[],Oe=Te.length;Oe--;)(He=Te[Oe])&&Re.push(Ui[Oe]=He);K(null,Te=[],Re,Le)}for(Oe=Te.length;Oe--;)(He=Te[Oe])&&(Re=K?u.call(de,He):st[Oe])>-1&&(de[Re]=!(we[Re]=He))}}else Te=co(Te===we?Te.splice(Pt,Te.length):Te),K?K(null,we,Te,Le):v.apply(we,Te)})}function Sl(T){for(var I,L,F,K=T.length,oe=l.relative[T[0].type],de=oe||l.relative[" "],we=oe?1:0,pe=lo(function(Oe){return Oe===I},de,!0),Le=lo(function(Oe){return u.call(I,Oe)>-1},de,!0),Re=[function(Oe,He,Te){var st=!oe&&(Te||He!=f)||((I=He).nodeType?pe(Oe,He,Te):Le(Oe,He,Te));return I=null,st}];we<K;we++)if(L=l.relative[T[we].type])Re=[lo(bl(Re),L)];else{if(L=l.filter[T[we].type].apply(null,T[we].matches),L[X]){for(F=++we;F<K&&!l.relative[T[F].type];F++);return wl(we>1&&bl(Re),we>1&&ao(T.slice(0,we-1).concat({value:T[we-2].type===" "?"*":""})).replace(ve,"$1"),L,we<F&&Sl(T.slice(we,F)),F<K&&Sl(T=T.slice(F)),F<K&&ao(T))}Re.push(L)}return bl(Re)}function cy(T,I){var L=I.length>0,F=T.length>0,K=function(oe,de,we,pe,Le){var Re,Oe,He,Te=0,st="0",Zt=oe&&[],Pt=[],wi=f,Ui=oe||F&&l.find.TAG("*",Le),Ss=z+=wi==null?1:Math.random()||.1,qt=Ui.length;for(Le&&(f=de==w||de||Le);st!==qt&&(Re=Ui[st])!=null;st++){if(F&&Re){for(Oe=0,!de&&Re.ownerDocument!=w&&(Cn(Re),we=!E);He=T[Oe++];)if(He(Re,de||w,we)){v.call(pe,Re);break}Le&&(z=Ss)}L&&((Re=!He&&Re)&&Te--,oe&&Zt.push(Re))}if(Te+=st,L&&st!==Te){for(Oe=0;He=I[Oe++];)He(Zt,Pt,de,we);if(oe){if(Te>0)for(;st--;)Zt[st]||Pt[st]||(Pt[st]=V.call(pe));Pt=co(Pt)}v.apply(pe,Pt),Le&&!oe&&Pt.length>0&&Te+I.length>1&&h.uniqueSort(pe)}return Le&&(z=Ss,f=wi),Zt};return L?Ni(K):K}function _l(T,I){var L,F=[],K=[],oe=Pe[T+" "];if(!oe){for(I||(I=fr(T)),L=I.length;L--;)oe=Sl(I[L]),oe[X]?F.push(oe):K.push(oe);oe=Pe(T,cy(K,F)),oe.selector=T}return oe}function lf(T,I,L,F){var K,oe,de,we,pe,Le=typeof T=="function"&&T,Re=!F&&fr(T=Le.selector||T);if(L=L||[],Re.length===1){if(oe=Re[0]=Re[0].slice(0),oe.length>2&&(de=oe[0]).type==="ID"&&I.nodeType===9&&E&&l.relative[oe[1].type]){if(I=(l.find.ID(de.matches[0].replace(tn,nn),I)||[])[0],I)Le&&(I=I.parentNode);else return L;T=T.slice(oe.shift().value.length)}for(K=$i.needsContext.test(T)?0:oe.length;K--&&(de=oe[K],!l.relative[we=de.type]);)if((pe=l.find[we])&&(F=pe(de.matches[0].replace(tn,nn),yl.test(oe[0].type)&&vl(I.parentNode)||I))){if(oe.splice(K,1),T=F.length&&ao(oe),!T)return v.apply(L,F),L;break}}return(Le||_l(T,Re))(F,I,!E,L,!I||yl.test(T)&&vl(I.parentNode)||I),L}_.sortStable=X.split("").sort(yt).join("")===X,Cn(),_.sortDetached=ws(function(T){return T.compareDocumentPosition(w.createElement("fieldset"))&1}),h.find=Ze,h.expr[":"]=h.expr.pseudos,h.unique=h.uniqueSort,Ze.compile=_l,Ze.select=lf,Ze.setDocument=Cn,Ze.tokenize=fr,Ze.escape=h.escapeSelector,Ze.getText=h.text,Ze.isXML=h.isXMLDoc,Ze.selectors=h.expr,Ze.support=h.support,Ze.uniqueSort=h.uniqueSort})();var Qe=function(o,l,f){for(var d=[],y=f!==void 0;(o=o[l])&&o.nodeType!==9;)if(o.nodeType===1){if(y&&h(o).is(f))break;d.push(o)}return d},ui=function(o,l){for(var f=[];o;o=o.nextSibling)o.nodeType===1&&o!==l&&f.push(o);return f},Gt=h.expr.match.needsContext,fi=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ds(o,l,f){return C(l)?h.grep(o,function(d,y){return!!l.call(d,y,d)!==f}):l.nodeType?h.grep(o,function(d){return d===l!==f}):typeof l!="string"?h.grep(o,function(d){return u.call(l,d)>-1!==f}):h.filter(l,o,f)}h.filter=function(o,l,f){var d=l[0];return f&&(o=":not("+o+")"),l.length===1&&d.nodeType===1?h.find.matchesSelector(d,o)?[d]:[]:h.find.matches(o,h.grep(l,function(y){return y.nodeType===1}))},h.fn.extend({find:function(o){var l,f,d=this.length,y=this;if(typeof o!="string")return this.pushStack(h(o).filter(function(){for(l=0;l<d;l++)if(h.contains(y[l],this))return!0}));for(f=this.pushStack([]),l=0;l<d;l++)h.find(o,y[l],f);return d>1?h.uniqueSort(f):f},filter:function(o){return this.pushStack(ds(this,o||[],!1))},not:function(o){return this.pushStack(ds(this,o||[],!0))},is:function(o){return!!ds(this,typeof o=="string"&&Gt.test(o)?h(o):o||[],!1).length}});var to,tl=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,jn=h.fn.init=function(o,l,f){var d,y;if(!o)return this;if(f=f||to,typeof o=="string")if(o[0]==="<"&&o[o.length-1]===">"&&o.length>=3?d=[null,o,null]:d=tl.exec(o),d&&(d[1]||!l))if(d[1]){if(l=l instanceof h?l[0]:l,h.merge(this,h.parseHTML(d[1],l&&l.nodeType?l.ownerDocument||l:M,!0)),fi.test(d[1])&&h.isPlainObject(l))for(d in l)C(this[d])?this[d](l[d]):this.attr(d,l[d]);return this}else return y=M.getElementById(d[2]),y&&(this[0]=y,this.length=1),this;else return!l||l.jquery?(l||f).find(o):this.constructor(l).find(o);else{if(o.nodeType)return this[0]=o,this.length=1,this;if(C(o))return f.ready!==void 0?f.ready(o):o(h)}return h.makeArray(o,this)};jn.prototype=h.fn,to=h(M);var ps=/^(?:parents|prev(?:Until|All))/,er={children:!0,contents:!0,next:!0,prev:!0};h.fn.extend({has:function(o){var l=h(o,this),f=l.length;return this.filter(function(){for(var d=0;d<f;d++)if(h.contains(this,l[d]))return!0})},closest:function(o,l){var f,d=0,y=this.length,v=[],w=typeof o!="string"&&h(o);if(!Gt.test(o)){for(;d<y;d++)for(f=this[d];f&&f!==l;f=f.parentNode)if(f.nodeType<11&&(w?w.index(f)>-1:f.nodeType===1&&h.find.matchesSelector(f,o))){v.push(f);break}}return this.pushStack(v.length>1?h.uniqueSort(v):v)},index:function(o){return o?typeof o=="string"?u.call(h(o),this[0]):u.call(this,o.jquery?o[0]:o):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(o,l){return this.pushStack(h.uniqueSort(h.merge(this.get(),h(o,l))))},addBack:function(o){return this.add(o==null?this.prevObject:this.prevObject.filter(o))}});function tr(o,l){for(;(o=o[l])&&o.nodeType!==1;);return o}h.each({parent:function(o){var l=o.parentNode;return l&&l.nodeType!==11?l:null},parents:function(o){return Qe(o,"parentNode")},parentsUntil:function(o,l,f){return Qe(o,"parentNode",f)},next:function(o){return tr(o,"nextSibling")},prev:function(o){return tr(o,"previousSibling")},nextAll:function(o){return Qe(o,"nextSibling")},prevAll:function(o){return Qe(o,"previousSibling")},nextUntil:function(o,l,f){return Qe(o,"nextSibling",f)},prevUntil:function(o,l,f){return Qe(o,"previousSibling",f)},siblings:function(o){return ui((o.parentNode||{}).firstChild,o)},children:function(o){return ui(o.firstChild)},contents:function(o){return o.contentDocument!=null&&s(o.contentDocument)?o.contentDocument:(D(o,"template")&&(o=o.content||o),h.merge([],o.childNodes))}},function(o,l){h.fn[o]=function(f,d){var y=h.map(this,l,f);return o.slice(-5)!=="Until"&&(d=f),d&&typeof d=="string"&&(y=h.filter(d,y)),this.length>1&&(er[o]||h.uniqueSort(y),ps.test(o)&&y.reverse()),this.pushStack(y)}});var Et=/[^\x20\t\r\n\f]+/g;function ir(o){var l={};return h.each(o.match(Et)||[],function(f,d){l[d]=!0}),l}h.Callbacks=function(o){o=typeof o=="string"?ir(o):h.extend({},o);var l,f,d,y,v=[],w=[],x=-1,E=function(){for(y=y||o.once,d=l=!0;w.length;x=-1)for(f=w.shift();++x<v.length;)v[x].apply(f[0],f[1])===!1&&o.stopOnFalse&&(x=v.length,f=!1);o.memory||(f=!1),l=!1,y&&(f?v=[]:v="")},N={add:function(){return v&&(f&&!l&&(x=v.length-1,w.push(f)),function $(X){h.each(X,function(z,se){C(se)?(!o.unique||!N.has(se))&&v.push(se):se&&se.length&&k(se)!=="string"&&$(se)})}(arguments),f&&!l&&E()),this},remove:function(){return h.each(arguments,function($,X){for(var z;(z=h.inArray(X,v,z))>-1;)v.splice(z,1),z<=x&&x--}),this},has:function($){return $?h.inArray($,v)>-1:v.length>0},empty:function(){return v&&(v=[]),this},disable:function(){return y=w=[],v=f="",this},disabled:function(){return!v},lock:function(){return y=w=[],!f&&!l&&(v=f=""),this},locked:function(){return!!y},fireWith:function($,X){return y||(X=X||[],X=[$,X.slice?X.slice():X],w.push(X),l||E()),this},fire:function(){return N.fireWith(this,arguments),this},fired:function(){return!!d}};return N};function zi(o){return o}function A(o){throw o}function O(o,l,f,d){var y;try{o&&C(y=o.promise)?y.call(o).done(l).fail(f):o&&C(y=o.then)?y.call(o,l,f):l.apply(void 0,[o].slice(d))}catch(v){f.apply(void 0,[v])}}h.extend({Deferred:function(o){var l=[["notify","progress",h.Callbacks("memory"),h.Callbacks("memory"),2],["resolve","done",h.Callbacks("once memory"),h.Callbacks("once memory"),0,"resolved"],["reject","fail",h.Callbacks("once memory"),h.Callbacks("once memory"),1,"rejected"]],f="pending",d={state:function(){return f},always:function(){return y.done(arguments).fail(arguments),this},catch:function(v){return d.then(null,v)},pipe:function(){var v=arguments;return h.Deferred(function(w){h.each(l,function(x,E){var N=C(v[E[4]])&&v[E[4]];y[E[1]](function(){var $=N&&N.apply(this,arguments);$&&C($.promise)?$.promise().progress(w.notify).done(w.resolve).fail(w.reject):w[E[0]+"With"](this,N?[$]:arguments)})}),v=null}).promise()},then:function(v,w,x){var E=0;function N($,X,z,se){return function(){var Ie=this,$e=arguments,Pe=function(){var yt,Fi;if(!($<E)){if(yt=z.apply(Ie,$e),yt===X.promise())throw new TypeError("Thenable self-resolution");Fi=yt&&(typeof yt=="object"||typeof yt=="function")&&yt.then,C(Fi)?se?Fi.call(yt,N(E,X,zi,se),N(E,X,A,se)):(E++,Fi.call(yt,N(E,X,zi,se),N(E,X,A,se),N(E,X,zi,X.notifyWith))):(z!==zi&&(Ie=void 0,$e=[yt]),(se||X.resolveWith)(Ie,$e))}},Rt=se?Pe:function(){try{Pe()}catch(yt){h.Deferred.exceptionHook&&h.Deferred.exceptionHook(yt,Rt.error),$+1>=E&&(z!==A&&(Ie=void 0,$e=[yt]),X.rejectWith(Ie,$e))}};$?Rt():(h.Deferred.getErrorHook?Rt.error=h.Deferred.getErrorHook():h.Deferred.getStackHook&&(Rt.error=h.Deferred.getStackHook()),t.setTimeout(Rt))}}return h.Deferred(function($){l[0][3].add(N(0,$,C(x)?x:zi,$.notifyWith)),l[1][3].add(N(0,$,C(v)?v:zi)),l[2][3].add(N(0,$,C(w)?w:A))}).promise()},promise:function(v){return v!=null?h.extend(v,d):d}},y={};return h.each(l,function(v,w){var x=w[2],E=w[5];d[w[1]]=x.add,E&&x.add(function(){f=E},l[3-v][2].disable,l[3-v][3].disable,l[0][2].lock,l[0][3].lock),x.add(w[3].fire),y[w[0]]=function(){return y[w[0]+"With"](this===y?void 0:this,arguments),this},y[w[0]+"With"]=x.fireWith}),d.promise(y),o&&o.call(y,y),y},when:function(o){var l=arguments.length,f=l,d=Array(f),y=r.call(arguments),v=h.Deferred(),w=function(x){return function(E){d[x]=this,y[x]=arguments.length>1?r.call(arguments):E,--l||v.resolveWith(d,y)}};if(l<=1&&(O(o,v.done(w(f)).resolve,v.reject,!l),v.state()==="pending"||C(y[f]&&y[f].then)))return v.then();for(;f--;)O(y[f],w(f),v.reject);return v.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;h.Deferred.exceptionHook=function(o,l){t.console&&t.console.warn&&o&&q.test(o.name)&&t.console.warn("jQuery.Deferred exception: "+o.message,o.stack,l)},h.readyException=function(o){t.setTimeout(function(){throw o})};var ne=h.Deferred();h.fn.ready=function(o){return ne.then(o).catch(function(l){h.readyException(l)}),this},h.extend({isReady:!1,readyWait:1,ready:function(o){(o===!0?--h.readyWait:h.isReady)||(h.isReady=!0,!(o!==!0&&--h.readyWait>0)&&ne.resolveWith(M,[h]))}}),h.ready.then=ne.then;function Z(){M.removeEventListener("DOMContentLoaded",Z),t.removeEventListener("load",Z),h.ready()}M.readyState==="complete"||M.readyState!=="loading"&&!M.documentElement.doScroll?t.setTimeout(h.ready):(M.addEventListener("DOMContentLoaded",Z),t.addEventListener("load",Z));var Q=function(o,l,f,d,y,v,w){var x=0,E=o.length,N=f==null;if(k(f)==="object"){y=!0;for(x in f)Q(o,l,x,f[x],!0,v,w)}else if(d!==void 0&&(y=!0,C(d)||(w=!0),N&&(w?(l.call(o,d),l=null):(N=l,l=function($,X,z){return N.call(h($),z)})),l))for(;x<E;x++)l(o[x],f,w?d:d.call(o[x],x,l(o[x],f)));return y?o:N?l.call(o):E?l(o[0],f):v},fe=/^-ms-/,ce=/-([a-z])/g;function ae(o,l){return l.toUpperCase()}function ee(o){return o.replace(fe,"ms-").replace(ce,ae)}var Se=function(o){return o.nodeType===1||o.nodeType===9||!+o.nodeType};function ue(){this.expando=h.expando+ue.uid++}ue.uid=1,ue.prototype={cache:function(o){var l=o[this.expando];return l||(l={},Se(o)&&(o.nodeType?o[this.expando]=l:Object.defineProperty(o,this.expando,{value:l,configurable:!0}))),l},set:function(o,l,f){var d,y=this.cache(o);if(typeof l=="string")y[ee(l)]=f;else for(d in l)y[ee(d)]=l[d];return y},get:function(o,l){return l===void 0?this.cache(o):o[this.expando]&&o[this.expando][ee(l)]},access:function(o,l,f){return l===void 0||l&&typeof l=="string"&&f===void 0?this.get(o,l):(this.set(o,l,f),f!==void 0?f:l)},remove:function(o,l){var f,d=o[this.expando];if(d!==void 0){if(l!==void 0)for(Array.isArray(l)?l=l.map(ee):(l=ee(l),l=l in d?[l]:l.match(Et)||[]),f=l.length;f--;)delete d[l[f]];(l===void 0||h.isEmptyObject(d))&&(o.nodeType?o[this.expando]=void 0:delete o[this.expando])}},hasData:function(o){var l=o[this.expando];return l!==void 0&&!h.isEmptyObject(l)}};var Y=new ue,be=new ue,ze=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tt=/[A-Z]/g;function Ye(o){return o==="true"?!0:o==="false"?!1:o==="null"?null:o===+o+""?+o:ze.test(o)?JSON.parse(o):o}function At(o,l,f){var d;if(f===void 0&&o.nodeType===1)if(d="data-"+l.replace(tt,"-$&").toLowerCase(),f=o.getAttribute(d),typeof f=="string"){try{f=Ye(f)}catch{}be.set(o,l,f)}else f=void 0;return f}h.extend({hasData:function(o){return be.hasData(o)||Y.hasData(o)},data:function(o,l,f){return be.access(o,l,f)},removeData:function(o,l){be.remove(o,l)},_data:function(o,l,f){return Y.access(o,l,f)},_removeData:function(o,l){Y.remove(o,l)}}),h.fn.extend({data:function(o,l){var f,d,y,v=this[0],w=v&&v.attributes;if(o===void 0){if(this.length&&(y=be.get(v),v.nodeType===1&&!Y.get(v,"hasDataAttrs"))){for(f=w.length;f--;)w[f]&&(d=w[f].name,d.indexOf("data-")===0&&(d=ee(d.slice(5)),At(v,d,y[d])));Y.set(v,"hasDataAttrs",!0)}return y}return typeof o=="object"?this.each(function(){be.set(this,o)}):Q(this,function(x){var E;if(v&&x===void 0)return E=be.get(v,o),E!==void 0||(E=At(v,o),E!==void 0)?E:void 0;this.each(function(){be.set(this,o,x)})},null,l,arguments.length>1,null,!0)},removeData:function(o){return this.each(function(){be.remove(this,o)})}}),h.extend({queue:function(o,l,f){var d;if(o)return l=(l||"fx")+"queue",d=Y.get(o,l),f&&(!d||Array.isArray(f)?d=Y.access(o,l,h.makeArray(f)):d.push(f)),d||[]},dequeue:function(o,l){l=l||"fx";var f=h.queue(o,l),d=f.length,y=f.shift(),v=h._queueHooks(o,l),w=function(){h.dequeue(o,l)};y==="inprogress"&&(y=f.shift(),d--),y&&(l==="fx"&&f.unshift("inprogress"),delete v.stop,y.call(o,w,v)),!d&&v&&v.empty.fire()},_queueHooks:function(o,l){var f=l+"queueHooks";return Y.get(o,f)||Y.access(o,f,{empty:h.Callbacks("once memory").add(function(){Y.remove(o,[l+"queue",f])})})}}),h.fn.extend({queue:function(o,l){var f=2;return typeof o!="string"&&(l=o,o="fx",f--),arguments.length<f?h.queue(this[0],o):l===void 0?this:this.each(function(){var d=h.queue(this,o,l);h._queueHooks(this,o),o==="fx"&&d[0]!=="inprogress"&&h.dequeue(this,o)})},dequeue:function(o){return this.each(function(){h.dequeue(this,o)})},clearQueue:function(o){return this.queue(o||"fx",[])},promise:function(o,l){var f,d=1,y=h.Deferred(),v=this,w=this.length,x=function(){--d||y.resolveWith(v,[v])};for(typeof o!="string"&&(l=o,o=void 0),o=o||"fx";w--;)f=Y.get(v[w],o+"queueHooks"),f&&f.empty&&(d++,f.empty.add(x));return x(),y.promise(l)}});var mt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,xt=new RegExp("^(?:([+-])=|)("+mt+")([a-z%]*)$","i"),ct=["Top","Right","Bottom","Left"],hi=M.documentElement,en=function(o){return h.contains(o.ownerDocument,o)},Ut={composed:!0};hi.getRootNode&&(en=function(o){return h.contains(o.ownerDocument,o)||o.getRootNode(Ut)===o.ownerDocument});var Wt=function(o,l){return o=l||o,o.style.display==="none"||o.style.display===""&&en(o)&&h.css(o,"display")==="none"};function nr(o,l,f,d){var y,v,w=20,x=d?function(){return d.cur()}:function(){return h.css(o,l,"")},E=x(),N=f&&f[3]||(h.cssNumber[l]?"":"px"),$=o.nodeType&&(h.cssNumber[l]||N!=="px"&&+E)&&xt.exec(h.css(o,l));if($&&$[3]!==N){for(E=E/2,N=N||$[3],$=+E||1;w--;)h.style(o,l,$+N),(1-v)*(1-(v=x()/E||.5))<=0&&(w=0),$=$/v;$=$*2,h.style(o,l,$+N),f=f||[]}return f&&($=+$||+E||0,y=f[1]?$+(f[1]+1)*f[2]:+f[2],d&&(d.unit=N,d.start=$,d.end=y)),y}var ku={};function _m(o){var l,f=o.ownerDocument,d=o.nodeName,y=ku[d];return y||(l=f.body.appendChild(f.createElement(d)),y=h.css(l,"display"),l.parentNode.removeChild(l),y==="none"&&(y="block"),ku[d]=y,y)}function gs(o,l){for(var f,d,y=[],v=0,w=o.length;v<w;v++)d=o[v],d.style&&(f=d.style.display,l?(f==="none"&&(y[v]=Y.get(d,"display")||null,y[v]||(d.style.display="")),d.style.display===""&&Wt(d)&&(y[v]=_m(d))):f!=="none"&&(y[v]="none",Y.set(d,"display",f)));for(v=0;v<w;v++)y[v]!=null&&(o[v].style.display=y[v]);return o}h.fn.extend({show:function(){return gs(this,!0)},hide:function(){return gs(this)},toggle:function(o){return typeof o=="boolean"?o?this.show():this.hide():this.each(function(){Wt(this)?h(this).show():h(this).hide()})}});var sr=/^(?:checkbox|radio)$/i,Nu=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Mu=/^$|^module$|\/(?:java|ecma)script/i;(function(){var o=M.createDocumentFragment(),l=o.appendChild(M.createElement("div")),f=M.createElement("input");f.setAttribute("type","radio"),f.setAttribute("checked","checked"),f.setAttribute("name","t"),l.appendChild(f),_.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,l.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!l.cloneNode(!0).lastChild.defaultValue,l.innerHTML="<option></option>",_.option=!!l.lastChild})();var vi={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};vi.tbody=vi.tfoot=vi.colgroup=vi.caption=vi.thead,vi.th=vi.td,_.option||(vi.optgroup=vi.option=[1,"<select multiple='multiple'>","</select>"]);function Jt(o,l){var f;return typeof o.getElementsByTagName<"u"?f=o.getElementsByTagName(l||"*"):typeof o.querySelectorAll<"u"?f=o.querySelectorAll(l||"*"):f=[],l===void 0||l&&D(o,l)?h.merge([o],f):f}function il(o,l){for(var f=0,d=o.length;f<d;f++)Y.set(o[f],"globalEval",!l||Y.get(l[f],"globalEval"))}var Cm=/<|&#?\w+;/;function Du(o,l,f,d,y){for(var v,w,x,E,N,$,X=l.createDocumentFragment(),z=[],se=0,Ie=o.length;se<Ie;se++)if(v=o[se],v||v===0)if(k(v)==="object")h.merge(z,v.nodeType?[v]:v);else if(!Cm.test(v))z.push(l.createTextNode(v));else{for(w=w||X.appendChild(l.createElement("div")),x=(Nu.exec(v)||["",""])[1].toLowerCase(),E=vi[x]||vi._default,w.innerHTML=E[1]+h.htmlPrefilter(v)+E[2],$=E[0];$--;)w=w.lastChild;h.merge(z,w.childNodes),w=X.firstChild,w.textContent=""}for(X.textContent="",se=0;v=z[se++];){if(d&&h.inArray(v,d)>-1){y&&y.push(v);continue}if(N=en(v),w=Jt(X.appendChild(v),"script"),N&&il(w),f)for($=0;v=w[$++];)Mu.test(v.type||"")&&f.push(v)}return X}var Pu=/^([^.]*)(?:\.(.+)|)/;function ms(){return!0}function ys(){return!1}function nl(o,l,f,d,y,v){var w,x;if(typeof l=="object"){typeof f!="string"&&(d=d||f,f=void 0);for(x in l)nl(o,x,f,d,l[x],v);return o}if(d==null&&y==null?(y=f,d=f=void 0):y==null&&(typeof f=="string"?(y=d,d=void 0):(y=d,d=f,f=void 0)),y===!1)y=ys;else if(!y)return o;return v===1&&(w=y,y=function(E){return h().off(E),w.apply(this,arguments)},y.guid=w.guid||(w.guid=h.guid++)),o.each(function(){h.event.add(this,l,y,d,f)})}h.event={global:{},add:function(o,l,f,d,y){var v,w,x,E,N,$,X,z,se,Ie,$e,Pe=Y.get(o);if(Se(o))for(f.handler&&(v=f,f=v.handler,y=v.selector),y&&h.find.matchesSelector(hi,y),f.guid||(f.guid=h.guid++),(E=Pe.events)||(E=Pe.events=Object.create(null)),(w=Pe.handle)||(w=Pe.handle=function(Rt){return typeof h<"u"&&h.event.triggered!==Rt.type?h.event.dispatch.apply(o,arguments):void 0}),l=(l||"").match(Et)||[""],N=l.length;N--;)x=Pu.exec(l[N])||[],se=$e=x[1],Ie=(x[2]||"").split(".").sort(),se&&(X=h.event.special[se]||{},se=(y?X.delegateType:X.bindType)||se,X=h.event.special[se]||{},$=h.extend({type:se,origType:$e,data:d,handler:f,guid:f.guid,selector:y,needsContext:y&&h.expr.match.needsContext.test(y),namespace:Ie.join(".")},v),(z=E[se])||(z=E[se]=[],z.delegateCount=0,(!X.setup||X.setup.call(o,d,Ie,w)===!1)&&o.addEventListener&&o.addEventListener(se,w)),X.add&&(X.add.call(o,$),$.handler.guid||($.handler.guid=f.guid)),y?z.splice(z.delegateCount++,0,$):z.push($),h.event.global[se]=!0)},remove:function(o,l,f,d,y){var v,w,x,E,N,$,X,z,se,Ie,$e,Pe=Y.hasData(o)&&Y.get(o);if(!(!Pe||!(E=Pe.events))){for(l=(l||"").match(Et)||[""],N=l.length;N--;){if(x=Pu.exec(l[N])||[],se=$e=x[1],Ie=(x[2]||"").split(".").sort(),!se){for(se in E)h.event.remove(o,se+l[N],f,d,!0);continue}for(X=h.event.special[se]||{},se=(d?X.delegateType:X.bindType)||se,z=E[se]||[],x=x[2]&&new RegExp("(^|\\.)"+Ie.join("\\.(?:.*\\.|)")+"(\\.|$)"),w=v=z.length;v--;)$=z[v],(y||$e===$.origType)&&(!f||f.guid===$.guid)&&(!x||x.test($.namespace))&&(!d||d===$.selector||d==="**"&&$.selector)&&(z.splice(v,1),$.selector&&z.delegateCount--,X.remove&&X.remove.call(o,$));w&&!z.length&&((!X.teardown||X.teardown.call(o,Ie,Pe.handle)===!1)&&h.removeEvent(o,se,Pe.handle),delete E[se])}h.isEmptyObject(E)&&Y.remove(o,"handle events")}},dispatch:function(o){var l,f,d,y,v,w,x=new Array(arguments.length),E=h.event.fix(o),N=(Y.get(this,"events")||Object.create(null))[E.type]||[],$=h.event.special[E.type]||{};for(x[0]=E,l=1;l<arguments.length;l++)x[l]=arguments[l];if(E.delegateTarget=this,!($.preDispatch&&$.preDispatch.call(this,E)===!1)){for(w=h.event.handlers.call(this,E,N),l=0;(y=w[l++])&&!E.isPropagationStopped();)for(E.currentTarget=y.elem,f=0;(v=y.handlers[f++])&&!E.isImmediatePropagationStopped();)(!E.rnamespace||v.namespace===!1||E.rnamespace.test(v.namespace))&&(E.handleObj=v,E.data=v.data,d=((h.event.special[v.origType]||{}).handle||v.handler).apply(y.elem,x),d!==void 0&&(E.result=d)===!1&&(E.preventDefault(),E.stopPropagation()));return $.postDispatch&&$.postDispatch.call(this,E),E.result}},handlers:function(o,l){var f,d,y,v,w,x=[],E=l.delegateCount,N=o.target;if(E&&N.nodeType&&!(o.type==="click"&&o.button>=1)){for(;N!==this;N=N.parentNode||this)if(N.nodeType===1&&!(o.type==="click"&&N.disabled===!0)){for(v=[],w={},f=0;f<E;f++)d=l[f],y=d.selector+" ",w[y]===void 0&&(w[y]=d.needsContext?h(y,this).index(N)>-1:h.find(y,this,null,[N]).length),w[y]&&v.push(d);v.length&&x.push({elem:N,handlers:v})}}return N=this,E<l.length&&x.push({elem:N,handlers:l.slice(E)}),x},addProp:function(o,l){Object.defineProperty(h.Event.prototype,o,{enumerable:!0,configurable:!0,get:C(l)?function(){if(this.originalEvent)return l(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[o]},set:function(f){Object.defineProperty(this,o,{enumerable:!0,configurable:!0,writable:!0,value:f})}})},fix:function(o){return o[h.expando]?o:new h.Event(o)},special:{load:{noBubble:!0},click:{setup:function(o){var l=this||o;return sr.test(l.type)&&l.click&&D(l,"input")&&io(l,"click",!0),!1},trigger:function(o){var l=this||o;return sr.test(l.type)&&l.click&&D(l,"input")&&io(l,"click"),!0},_default:function(o){var l=o.target;return sr.test(l.type)&&l.click&&D(l,"input")&&Y.get(l,"click")||D(l,"a")}},beforeunload:{postDispatch:function(o){o.result!==void 0&&o.originalEvent&&(o.originalEvent.returnValue=o.result)}}}};function io(o,l,f){if(!f){Y.get(o,l)===void 0&&h.event.add(o,l,ms);return}Y.set(o,l,!1),h.event.add(o,l,{namespace:!1,handler:function(d){var y,v=Y.get(this,l);if(d.isTrigger&1&&this[l]){if(v)(h.event.special[l]||{}).delegateType&&d.stopPropagation();else if(v=r.call(arguments),Y.set(this,l,v),this[l](),y=Y.get(this,l),Y.set(this,l,!1),v!==y)return d.stopImmediatePropagation(),d.preventDefault(),y}else v&&(Y.set(this,l,h.event.trigger(v[0],v.slice(1),this)),d.stopPropagation(),d.isImmediatePropagationStopped=ms)}})}h.removeEvent=function(o,l,f){o.removeEventListener&&o.removeEventListener(l,f)},h.Event=function(o,l){if(!(this instanceof h.Event))return new h.Event(o,l);o&&o.type?(this.originalEvent=o,this.type=o.type,this.isDefaultPrevented=o.defaultPrevented||o.defaultPrevented===void 0&&o.returnValue===!1?ms:ys,this.target=o.target&&o.target.nodeType===3?o.target.parentNode:o.target,this.currentTarget=o.currentTarget,this.relatedTarget=o.relatedTarget):this.type=o,l&&h.extend(this,l),this.timeStamp=o&&o.timeStamp||Date.now(),this[h.expando]=!0},h.Event.prototype={constructor:h.Event,isDefaultPrevented:ys,isPropagationStopped:ys,isImmediatePropagationStopped:ys,isSimulated:!1,preventDefault:function(){var o=this.originalEvent;this.isDefaultPrevented=ms,o&&!this.isSimulated&&o.preventDefault()},stopPropagation:function(){var o=this.originalEvent;this.isPropagationStopped=ms,o&&!this.isSimulated&&o.stopPropagation()},stopImmediatePropagation:function(){var o=this.originalEvent;this.isImmediatePropagationStopped=ms,o&&!this.isSimulated&&o.stopImmediatePropagation(),this.stopPropagation()}},h.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},h.event.addProp),h.each({focus:"focusin",blur:"focusout"},function(o,l){function f(d){if(M.documentMode){var y=Y.get(this,"handle"),v=h.event.fix(d);v.type=d.type==="focusin"?"focus":"blur",v.isSimulated=!0,y(d),v.target===v.currentTarget&&y(v)}else h.event.simulate(l,d.target,h.event.fix(d))}h.event.special[o]={setup:function(){var d;if(io(this,o,!0),M.documentMode)d=Y.get(this,l),d||this.addEventListener(l,f),Y.set(this,l,(d||0)+1);else return!1},trigger:function(){return io(this,o),!0},teardown:function(){var d;if(M.documentMode)d=Y.get(this,l)-1,d?Y.set(this,l,d):(this.removeEventListener(l,f),Y.remove(this,l));else return!1},_default:function(d){return Y.get(d.target,o)},delegateType:l},h.event.special[l]={setup:function(){var d=this.ownerDocument||this.document||this,y=M.documentMode?this:d,v=Y.get(y,l);v||(M.documentMode?this.addEventListener(l,f):d.addEventListener(o,f,!0)),Y.set(y,l,(v||0)+1)},teardown:function(){var d=this.ownerDocument||this.document||this,y=M.documentMode?this:d,v=Y.get(y,l)-1;v?Y.set(y,l,v):(M.documentMode?this.removeEventListener(l,f):d.removeEventListener(o,f,!0),Y.remove(y,l))}}}),h.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(o,l){h.event.special[o]={delegateType:l,bindType:l,handle:function(f){var d,y=this,v=f.relatedTarget,w=f.handleObj;return(!v||v!==y&&!h.contains(y,v))&&(f.type=w.origType,d=w.handler.apply(this,arguments),f.type=l),d}}}),h.fn.extend({on:function(o,l,f,d){return nl(this,o,l,f,d)},one:function(o,l,f,d){return nl(this,o,l,f,d,1)},off:function(o,l,f){var d,y;if(o&&o.preventDefault&&o.handleObj)return d=o.handleObj,h(o.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if(typeof o=="object"){for(y in o)this.off(y,l,o[y]);return this}return(l===!1||typeof l=="function")&&(f=l,l=void 0),f===!1&&(f=ys),this.each(function(){h.event.remove(this,o,f,l)})}});var Tm=/<script|<style|<link/i,Em=/checked\s*(?:[^=]|=\s*.checked.)/i,Am=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Lu(o,l){return D(o,"table")&&D(l.nodeType!==11?l:l.firstChild,"tr")&&h(o).children("tbody")[0]||o}function xm(o){return o.type=(o.getAttribute("type")!==null)+"/"+o.type,o}function Rm(o){return(o.type||"").slice(0,5)==="true/"?o.type=o.type.slice(5):o.removeAttribute("type"),o}function Hu(o,l){var f,d,y,v,w,x,E;if(l.nodeType===1){if(Y.hasData(o)&&(v=Y.get(o),E=v.events,E)){Y.remove(l,"handle events");for(y in E)for(f=0,d=E[y].length;f<d;f++)h.event.add(l,y,E[y][f])}be.hasData(o)&&(w=be.access(o),x=h.extend({},w),be.set(l,x))}}function Im(o,l){var f=l.nodeName.toLowerCase();f==="input"&&sr.test(o.type)?l.checked=o.checked:(f==="input"||f==="textarea")&&(l.defaultValue=o.defaultValue)}function vs(o,l,f,d){l=a(l);var y,v,w,x,E,N,$=0,X=o.length,z=X-1,se=l[0],Ie=C(se);if(Ie||X>1&&typeof se=="string"&&!_.checkClone&&Em.test(se))return o.each(function($e){var Pe=o.eq($e);Ie&&(l[0]=se.call(this,$e,Pe.html())),vs(Pe,l,f,d)});if(X&&(y=Du(l,o[0].ownerDocument,!1,o,d),v=y.firstChild,y.childNodes.length===1&&(y=v),v||d)){for(w=h.map(Jt(y,"script"),xm),x=w.length;$<X;$++)E=y,$!==z&&(E=h.clone(E,!0,!0),x&&h.merge(w,Jt(E,"script"))),f.call(o[$],E,$);if(x)for(N=w[w.length-1].ownerDocument,h.map(w,Rm),$=0;$<x;$++)E=w[$],Mu.test(E.type||"")&&!Y.access(E,"globalEval")&&h.contains(N,E)&&(E.src&&(E.type||"").toLowerCase()!=="module"?h._evalUrl&&!E.noModule&&h._evalUrl(E.src,{nonce:E.nonce||E.getAttribute("nonce")},N):R(E.textContent.replace(Am,""),E,N))}return o}function zu(o,l,f){for(var d,y=l?h.filter(l,o):o,v=0;(d=y[v])!=null;v++)!f&&d.nodeType===1&&h.cleanData(Jt(d)),d.parentNode&&(f&&en(d)&&il(Jt(d,"script")),d.parentNode.removeChild(d));return o}h.extend({htmlPrefilter:function(o){return o},clone:function(o,l,f){var d,y,v,w,x=o.cloneNode(!0),E=en(o);if(!_.noCloneChecked&&(o.nodeType===1||o.nodeType===11)&&!h.isXMLDoc(o))for(w=Jt(x),v=Jt(o),d=0,y=v.length;d<y;d++)Im(v[d],w[d]);if(l)if(f)for(v=v||Jt(o),w=w||Jt(x),d=0,y=v.length;d<y;d++)Hu(v[d],w[d]);else Hu(o,x);return w=Jt(x,"script"),w.length>0&&il(w,!E&&Jt(o,"script")),x},cleanData:function(o){for(var l,f,d,y=h.event.special,v=0;(f=o[v])!==void 0;v++)if(Se(f)){if(l=f[Y.expando]){if(l.events)for(d in l.events)y[d]?h.event.remove(f,d):h.removeEvent(f,d,l.handle);f[Y.expando]=void 0}f[be.expando]&&(f[be.expando]=void 0)}}}),h.fn.extend({detach:function(o){return zu(this,o,!0)},remove:function(o){return zu(this,o)},text:function(o){return Q(this,function(l){return l===void 0?h.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=l)})},null,o,arguments.length)},append:function(){return vs(this,arguments,function(o){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var l=Lu(this,o);l.appendChild(o)}})},prepend:function(){return vs(this,arguments,function(o){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var l=Lu(this,o);l.insertBefore(o,l.firstChild)}})},before:function(){return vs(this,arguments,function(o){this.parentNode&&this.parentNode.insertBefore(o,this)})},after:function(){return vs(this,arguments,function(o){this.parentNode&&this.parentNode.insertBefore(o,this.nextSibling)})},empty:function(){for(var o,l=0;(o=this[l])!=null;l++)o.nodeType===1&&(h.cleanData(Jt(o,!1)),o.textContent="");return this},clone:function(o,l){return o=o??!1,l=l??o,this.map(function(){return h.clone(this,o,l)})},html:function(o){return Q(this,function(l){var f=this[0]||{},d=0,y=this.length;if(l===void 0&&f.nodeType===1)return f.innerHTML;if(typeof l=="string"&&!Tm.test(l)&&!vi[(Nu.exec(l)||["",""])[1].toLowerCase()]){l=h.htmlPrefilter(l);try{for(;d<y;d++)f=this[d]||{},f.nodeType===1&&(h.cleanData(Jt(f,!1)),f.innerHTML=l);f=0}catch{}}f&&this.empty().append(l)},null,o,arguments.length)},replaceWith:function(){var o=[];return vs(this,arguments,function(l){var f=this.parentNode;h.inArray(this,o)<0&&(h.cleanData(Jt(this)),f&&f.replaceChild(l,this))},o)}}),h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(o,l){h.fn[o]=function(f){for(var d,y=[],v=h(f),w=v.length-1,x=0;x<=w;x++)d=x===w?this:this.clone(!0),h(v[x])[l](d),c.apply(y,d.get());return this.pushStack(y)}});var sl=new RegExp("^("+mt+")(?!px)[a-z%]+$","i"),rl=/^--/,no=function(o){var l=o.ownerDocument.defaultView;return(!l||!l.opener)&&(l=t),l.getComputedStyle(o)},Fu=function(o,l,f){var d,y,v={};for(y in l)v[y]=o.style[y],o.style[y]=l[y];d=f.call(o);for(y in l)o.style[y]=v[y];return d},Om=new RegExp(ct.join("|"),"i");(function(){function o(){if(N){E.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",N.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",hi.appendChild(E).appendChild(N);var $=t.getComputedStyle(N);f=$.top!=="1%",x=l($.marginLeft)===12,N.style.right="60%",v=l($.right)===36,d=l($.width)===36,N.style.position="absolute",y=l(N.offsetWidth/3)===12,hi.removeChild(E),N=null}}function l($){return Math.round(parseFloat($))}var f,d,y,v,w,x,E=M.createElement("div"),N=M.createElement("div");N.style&&(N.style.backgroundClip="content-box",N.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle=N.style.backgroundClip==="content-box",h.extend(_,{boxSizingReliable:function(){return o(),d},pixelBoxStyles:function(){return o(),v},pixelPosition:function(){return o(),f},reliableMarginLeft:function(){return o(),x},scrollboxSize:function(){return o(),y},reliableTrDimensions:function(){var $,X,z,se;return w==null&&($=M.createElement("table"),X=M.createElement("tr"),z=M.createElement("div"),$.style.cssText="position:absolute;left:-11111px;border-collapse:separate",X.style.cssText="box-sizing:content-box;border:1px solid",X.style.height="1px",z.style.height="9px",z.style.display="block",hi.appendChild($).appendChild(X).appendChild(z),se=t.getComputedStyle(X),w=parseInt(se.height,10)+parseInt(se.borderTopWidth,10)+parseInt(se.borderBottomWidth,10)===X.offsetHeight,hi.removeChild($)),w}}))})();function rr(o,l,f){var d,y,v,w,x=rl.test(l),E=o.style;return f=f||no(o),f&&(w=f.getPropertyValue(l)||f[l],x&&w&&(w=w.replace(ve,"$1")||void 0),w===""&&!en(o)&&(w=h.style(o,l)),!_.pixelBoxStyles()&&sl.test(w)&&Om.test(l)&&(d=E.width,y=E.minWidth,v=E.maxWidth,E.minWidth=E.maxWidth=E.width=w,w=f.width,E.width=d,E.minWidth=y,E.maxWidth=v)),w!==void 0?w+"":w}function ju(o,l){return{get:function(){if(o()){delete this.get;return}return(this.get=l).apply(this,arguments)}}}var Bu=["Webkit","Moz","ms"],$u=M.createElement("div").style,Uu={};function km(o){for(var l=o[0].toUpperCase()+o.slice(1),f=Bu.length;f--;)if(o=Bu[f]+l,o in $u)return o}function ol(o){var l=h.cssProps[o]||Uu[o];return l||(o in $u?o:Uu[o]=km(o)||o)}var Nm=/^(none|table(?!-c[ea]).+)/,Mm={position:"absolute",visibility:"hidden",display:"block"},Wu={letterSpacing:"0",fontWeight:"400"};function qu(o,l,f){var d=xt.exec(l);return d?Math.max(0,d[2]-(f||0))+(d[3]||"px"):l}function al(o,l,f,d,y,v){var w=l==="width"?1:0,x=0,E=0,N=0;if(f===(d?"border":"content"))return 0;for(;w<4;w+=2)f==="margin"&&(N+=h.css(o,f+ct[w],!0,y)),d?(f==="content"&&(E-=h.css(o,"padding"+ct[w],!0,y)),f!=="margin"&&(E-=h.css(o,"border"+ct[w]+"Width",!0,y))):(E+=h.css(o,"padding"+ct[w],!0,y),f!=="padding"?E+=h.css(o,"border"+ct[w]+"Width",!0,y):x+=h.css(o,"border"+ct[w]+"Width",!0,y));return!d&&v>=0&&(E+=Math.max(0,Math.ceil(o["offset"+l[0].toUpperCase()+l.slice(1)]-v-E-x-.5))||0),E+N}function Vu(o,l,f){var d=no(o),y=!_.boxSizingReliable()||f,v=y&&h.css(o,"boxSizing",!1,d)==="border-box",w=v,x=rr(o,l,d),E="offset"+l[0].toUpperCase()+l.slice(1);if(sl.test(x)){if(!f)return x;x="auto"}return(!_.boxSizingReliable()&&v||!_.reliableTrDimensions()&&D(o,"tr")||x==="auto"||!parseFloat(x)&&h.css(o,"display",!1,d)==="inline")&&o.getClientRects().length&&(v=h.css(o,"boxSizing",!1,d)==="border-box",w=E in o,w&&(x=o[E])),x=parseFloat(x)||0,x+al(o,l,f||(v?"border":"content"),w,d,x)+"px"}h.extend({cssHooks:{opacity:{get:function(o,l){if(l){var f=rr(o,"opacity");return f===""?"1":f}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(o,l,f,d){if(!(!o||o.nodeType===3||o.nodeType===8||!o.style)){var y,v,w,x=ee(l),E=rl.test(l),N=o.style;if(E||(l=ol(x)),w=h.cssHooks[l]||h.cssHooks[x],f!==void 0){if(v=typeof f,v==="string"&&(y=xt.exec(f))&&y[1]&&(f=nr(o,l,y),v="number"),f==null||f!==f)return;v==="number"&&!E&&(f+=y&&y[3]||(h.cssNumber[x]?"":"px")),!_.clearCloneStyle&&f===""&&l.indexOf("background")===0&&(N[l]="inherit"),(!w||!("set"in w)||(f=w.set(o,f,d))!==void 0)&&(E?N.setProperty(l,f):N[l]=f)}else return w&&"get"in w&&(y=w.get(o,!1,d))!==void 0?y:N[l]}},css:function(o,l,f,d){var y,v,w,x=ee(l),E=rl.test(l);return E||(l=ol(x)),w=h.cssHooks[l]||h.cssHooks[x],w&&"get"in w&&(y=w.get(o,!0,f)),y===void 0&&(y=rr(o,l,d)),y==="normal"&&l in Wu&&(y=Wu[l]),f===""||f?(v=parseFloat(y),f===!0||isFinite(v)?v||0:y):y}}),h.each(["height","width"],function(o,l){h.cssHooks[l]={get:function(f,d,y){if(d)return Nm.test(h.css(f,"display"))&&(!f.getClientRects().length||!f.getBoundingClientRect().width)?Fu(f,Mm,function(){return Vu(f,l,y)}):Vu(f,l,y)},set:function(f,d,y){var v,w=no(f),x=!_.scrollboxSize()&&w.position==="absolute",E=x||y,N=E&&h.css(f,"boxSizing",!1,w)==="border-box",$=y?al(f,l,y,N,w):0;return N&&x&&($-=Math.ceil(f["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(w[l])-al(f,l,"border",!1,w)-.5)),$&&(v=xt.exec(d))&&(v[3]||"px")!=="px"&&(f.style[l]=d,d=h.css(f,l)),qu(f,d,$)}}}),h.cssHooks.marginLeft=ju(_.reliableMarginLeft,function(o,l){if(l)return(parseFloat(rr(o,"marginLeft"))||o.getBoundingClientRect().left-Fu(o,{marginLeft:0},function(){return o.getBoundingClientRect().left}))+"px"}),h.each({margin:"",padding:"",border:"Width"},function(o,l){h.cssHooks[o+l]={expand:function(f){for(var d=0,y={},v=typeof f=="string"?f.split(" "):[f];d<4;d++)y[o+ct[d]+l]=v[d]||v[d-2]||v[0];return y}},o!=="margin"&&(h.cssHooks[o+l].set=qu)}),h.fn.extend({css:function(o,l){return Q(this,function(f,d,y){var v,w,x={},E=0;if(Array.isArray(d)){for(v=no(f),w=d.length;E<w;E++)x[d[E]]=h.css(f,d[E],!1,v);return x}return y!==void 0?h.style(f,d,y):h.css(f,d)},o,l,arguments.length>1)}});function Qt(o,l,f,d,y){return new Qt.prototype.init(o,l,f,d,y)}h.Tween=Qt,Qt.prototype={constructor:Qt,init:function(o,l,f,d,y,v){this.elem=o,this.prop=f,this.easing=y||h.easing._default,this.options=l,this.start=this.now=this.cur(),this.end=d,this.unit=v||(h.cssNumber[f]?"":"px")},cur:function(){var o=Qt.propHooks[this.prop];return o&&o.get?o.get(this):Qt.propHooks._default.get(this)},run:function(o){var l,f=Qt.propHooks[this.prop];return this.options.duration?this.pos=l=h.easing[this.easing](o,this.options.duration*o,0,1,this.options.duration):this.pos=l=o,this.now=(this.end-this.start)*l+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),f&&f.set?f.set(this):Qt.propHooks._default.set(this),this}},Qt.prototype.init.prototype=Qt.prototype,Qt.propHooks={_default:{get:function(o){var l;return o.elem.nodeType!==1||o.elem[o.prop]!=null&&o.elem.style[o.prop]==null?o.elem[o.prop]:(l=h.css(o.elem,o.prop,""),!l||l==="auto"?0:l)},set:function(o){h.fx.step[o.prop]?h.fx.step[o.prop](o):o.elem.nodeType===1&&(h.cssHooks[o.prop]||o.elem.style[ol(o.prop)]!=null)?h.style(o.elem,o.prop,o.now+o.unit):o.elem[o.prop]=o.now}}},Qt.propHooks.scrollTop=Qt.propHooks.scrollLeft={set:function(o){o.elem.nodeType&&o.elem.parentNode&&(o.elem[o.prop]=o.now)}},h.easing={linear:function(o){return o},swing:function(o){return .5-Math.cos(o*Math.PI)/2},_default:"swing"},h.fx=Qt.prototype.init,h.fx.step={};var bs,so,Dm=/^(?:toggle|show|hide)$/,Pm=/queueHooks$/;function ll(){so&&(M.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(ll):t.setTimeout(ll,h.fx.interval),h.fx.tick())}function Ku(){return t.setTimeout(function(){bs=void 0}),bs=Date.now()}function ro(o,l){var f,d=0,y={height:o};for(l=l?1:0;d<4;d+=2-l)f=ct[d],y["margin"+f]=y["padding"+f]=o;return l&&(y.opacity=y.width=o),y}function Xu(o,l,f){for(var d,y=(ki.tweeners[l]||[]).concat(ki.tweeners["*"]),v=0,w=y.length;v<w;v++)if(d=y[v].call(f,l,o))return d}function Lm(o,l,f){var d,y,v,w,x,E,N,$,X="width"in l||"height"in l,z=this,se={},Ie=o.style,$e=o.nodeType&&Wt(o),Pe=Y.get(o,"fxshow");f.queue||(w=h._queueHooks(o,"fx"),w.unqueued==null&&(w.unqueued=0,x=w.empty.fire,w.empty.fire=function(){w.unqueued||x()}),w.unqueued++,z.always(function(){z.always(function(){w.unqueued--,h.queue(o,"fx").length||w.empty.fire()})}));for(d in l)if(y=l[d],Dm.test(y)){if(delete l[d],v=v||y==="toggle",y===($e?"hide":"show"))if(y==="show"&&Pe&&Pe[d]!==void 0)$e=!0;else continue;se[d]=Pe&&Pe[d]||h.style(o,d)}if(E=!h.isEmptyObject(l),!(!E&&h.isEmptyObject(se))){X&&o.nodeType===1&&(f.overflow=[Ie.overflow,Ie.overflowX,Ie.overflowY],N=Pe&&Pe.display,N==null&&(N=Y.get(o,"display")),$=h.css(o,"display"),$==="none"&&(N?$=N:(gs([o],!0),N=o.style.display||N,$=h.css(o,"display"),gs([o]))),($==="inline"||$==="inline-block"&&N!=null)&&h.css(o,"float")==="none"&&(E||(z.done(function(){Ie.display=N}),N==null&&($=Ie.display,N=$==="none"?"":$)),Ie.display="inline-block")),f.overflow&&(Ie.overflow="hidden",z.always(function(){Ie.overflow=f.overflow[0],Ie.overflowX=f.overflow[1],Ie.overflowY=f.overflow[2]})),E=!1;for(d in se)E||(Pe?"hidden"in Pe&&($e=Pe.hidden):Pe=Y.access(o,"fxshow",{display:N}),v&&(Pe.hidden=!$e),$e&&gs([o],!0),z.done(function(){$e||gs([o]),Y.remove(o,"fxshow");for(d in se)h.style(o,d,se[d])})),E=Xu($e?Pe[d]:0,d,z),d in Pe||(Pe[d]=E.start,$e&&(E.end=E.start,E.start=0))}}function Hm(o,l){var f,d,y,v,w;for(f in o)if(d=ee(f),y=l[d],v=o[f],Array.isArray(v)&&(y=v[1],v=o[f]=v[0]),f!==d&&(o[d]=v,delete o[f]),w=h.cssHooks[d],w&&"expand"in w){v=w.expand(v),delete o[d];for(f in v)f in o||(o[f]=v[f],l[f]=y)}else l[d]=y}function ki(o,l,f){var d,y,v=0,w=ki.prefilters.length,x=h.Deferred().always(function(){delete E.elem}),E=function(){if(y)return!1;for(var X=bs||Ku(),z=Math.max(0,N.startTime+N.duration-X),se=z/N.duration||0,Ie=1-se,$e=0,Pe=N.tweens.length;$e<Pe;$e++)N.tweens[$e].run(Ie);return x.notifyWith(o,[N,Ie,z]),Ie<1&&Pe?z:(Pe||x.notifyWith(o,[N,1,0]),x.resolveWith(o,[N]),!1)},N=x.promise({elem:o,props:h.extend({},l),opts:h.extend(!0,{specialEasing:{},easing:h.easing._default},f),originalProperties:l,originalOptions:f,startTime:bs||Ku(),duration:f.duration,tweens:[],createTween:function(X,z){var se=h.Tween(o,N.opts,X,z,N.opts.specialEasing[X]||N.opts.easing);return N.tweens.push(se),se},stop:function(X){var z=0,se=X?N.tweens.length:0;if(y)return this;for(y=!0;z<se;z++)N.tweens[z].run(1);return X?(x.notifyWith(o,[N,1,0]),x.resolveWith(o,[N,X])):x.rejectWith(o,[N,X]),this}}),$=N.props;for(Hm($,N.opts.specialEasing);v<w;v++)if(d=ki.prefilters[v].call(N,o,$,N.opts),d)return C(d.stop)&&(h._queueHooks(N.elem,N.opts.queue).stop=d.stop.bind(d)),d;return h.map($,Xu,N),C(N.opts.start)&&N.opts.start.call(o,N),N.progress(N.opts.progress).done(N.opts.done,N.opts.complete).fail(N.opts.fail).always(N.opts.always),h.fx.timer(h.extend(E,{elem:o,anim:N,queue:N.opts.queue})),N}h.Animation=h.extend(ki,{tweeners:{"*":[function(o,l){var f=this.createTween(o,l);return nr(f.elem,o,xt.exec(l),f),f}]},tweener:function(o,l){C(o)?(l=o,o=["*"]):o=o.match(Et);for(var f,d=0,y=o.length;d<y;d++)f=o[d],ki.tweeners[f]=ki.tweeners[f]||[],ki.tweeners[f].unshift(l)},prefilters:[Lm],prefilter:function(o,l){l?ki.prefilters.unshift(o):ki.prefilters.push(o)}}),h.speed=function(o,l,f){var d=o&&typeof o=="object"?h.extend({},o):{complete:f||!f&&l||C(o)&&o,duration:o,easing:f&&l||l&&!C(l)&&l};return h.fx.off?d.duration=0:typeof d.duration!="number"&&(d.duration in h.fx.speeds?d.duration=h.fx.speeds[d.duration]:d.duration=h.fx.speeds._default),(d.queue==null||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){C(d.old)&&d.old.call(this),d.queue&&h.dequeue(this,d.queue)},d},h.fn.extend({fadeTo:function(o,l,f,d){return this.filter(Wt).css("opacity",0).show().end().animate({opacity:l},o,f,d)},animate:function(o,l,f,d){var y=h.isEmptyObject(o),v=h.speed(l,f,d),w=function(){var x=ki(this,h.extend({},o),v);(y||Y.get(this,"finish"))&&x.stop(!0)};return w.finish=w,y||v.queue===!1?this.each(w):this.queue(v.queue,w)},stop:function(o,l,f){var d=function(y){var v=y.stop;delete y.stop,v(f)};return typeof o!="string"&&(f=l,l=o,o=void 0),l&&this.queue(o||"fx",[]),this.each(function(){var y=!0,v=o!=null&&o+"queueHooks",w=h.timers,x=Y.get(this);if(v)x[v]&&x[v].stop&&d(x[v]);else for(v in x)x[v]&&x[v].stop&&Pm.test(v)&&d(x[v]);for(v=w.length;v--;)w[v].elem===this&&(o==null||w[v].queue===o)&&(w[v].anim.stop(f),y=!1,w.splice(v,1));(y||!f)&&h.dequeue(this,o)})},finish:function(o){return o!==!1&&(o=o||"fx"),this.each(function(){var l,f=Y.get(this),d=f[o+"queue"],y=f[o+"queueHooks"],v=h.timers,w=d?d.length:0;for(f.finish=!0,h.queue(this,o,[]),y&&y.stop&&y.stop.call(this,!0),l=v.length;l--;)v[l].elem===this&&v[l].queue===o&&(v[l].anim.stop(!0),v.splice(l,1));for(l=0;l<w;l++)d[l]&&d[l].finish&&d[l].finish.call(this);delete f.finish})}}),h.each(["toggle","show","hide"],function(o,l){var f=h.fn[l];h.fn[l]=function(d,y,v){return d==null||typeof d=="boolean"?f.apply(this,arguments):this.animate(ro(l,!0),d,y,v)}}),h.each({slideDown:ro("show"),slideUp:ro("hide"),slideToggle:ro("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(o,l){h.fn[o]=function(f,d,y){return this.animate(l,f,d,y)}}),h.timers=[],h.fx.tick=function(){var o,l=0,f=h.timers;for(bs=Date.now();l<f.length;l++)o=f[l],!o()&&f[l]===o&&f.splice(l--,1);f.length||h.fx.stop(),bs=void 0},h.fx.timer=function(o){h.timers.push(o),h.fx.start()},h.fx.interval=13,h.fx.start=function(){so||(so=!0,ll())},h.fx.stop=function(){so=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(o,l){return o=h.fx&&h.fx.speeds[o]||o,l=l||"fx",this.queue(l,function(f,d){var y=t.setTimeout(f,o);d.stop=function(){t.clearTimeout(y)}})},function(){var o=M.createElement("input"),l=M.createElement("select"),f=l.appendChild(M.createElement("option"));o.type="checkbox",_.checkOn=o.value!=="",_.optSelected=f.selected,o=M.createElement("input"),o.value="t",o.type="radio",_.radioValue=o.value==="t"}();var Yu,or=h.expr.attrHandle;h.fn.extend({attr:function(o,l){return Q(this,h.attr,o,l,arguments.length>1)},removeAttr:function(o){return this.each(function(){h.removeAttr(this,o)})}}),h.extend({attr:function(o,l,f){var d,y,v=o.nodeType;if(!(v===3||v===8||v===2)){if(typeof o.getAttribute>"u")return h.prop(o,l,f);if((v!==1||!h.isXMLDoc(o))&&(y=h.attrHooks[l.toLowerCase()]||(h.expr.match.bool.test(l)?Yu:void 0)),f!==void 0){if(f===null){h.removeAttr(o,l);return}return y&&"set"in y&&(d=y.set(o,f,l))!==void 0?d:(o.setAttribute(l,f+""),f)}return y&&"get"in y&&(d=y.get(o,l))!==null?d:(d=h.find.attr(o,l),d??void 0)}},attrHooks:{type:{set:function(o,l){if(!_.radioValue&&l==="radio"&&D(o,"input")){var f=o.value;return o.setAttribute("type",l),f&&(o.value=f),l}}}},removeAttr:function(o,l){var f,d=0,y=l&&l.match(Et);if(y&&o.nodeType===1)for(;f=y[d++];)o.removeAttribute(f)}}),Yu={set:function(o,l,f){return l===!1?h.removeAttr(o,f):o.setAttribute(f,f),f}},h.each(h.expr.match.bool.source.match(/\w+/g),function(o,l){var f=or[l]||h.find.attr;or[l]=function(d,y,v){var w,x,E=y.toLowerCase();return v||(x=or[E],or[E]=w,w=f(d,y,v)!=null?E:null,or[E]=x),w}});var zm=/^(?:input|select|textarea|button)$/i,Fm=/^(?:a|area)$/i;h.fn.extend({prop:function(o,l){return Q(this,h.prop,o,l,arguments.length>1)},removeProp:function(o){return this.each(function(){delete this[h.propFix[o]||o]})}}),h.extend({prop:function(o,l,f){var d,y,v=o.nodeType;if(!(v===3||v===8||v===2))return(v!==1||!h.isXMLDoc(o))&&(l=h.propFix[l]||l,y=h.propHooks[l]),f!==void 0?y&&"set"in y&&(d=y.set(o,f,l))!==void 0?d:o[l]=f:y&&"get"in y&&(d=y.get(o,l))!==null?d:o[l]},propHooks:{tabIndex:{get:function(o){var l=h.find.attr(o,"tabindex");return l?parseInt(l,10):zm.test(o.nodeName)||Fm.test(o.nodeName)&&o.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(h.propHooks.selected={get:function(o){var l=o.parentNode;return l&&l.parentNode&&l.parentNode.selectedIndex,null},set:function(o){var l=o.parentNode;l&&(l.selectedIndex,l.parentNode&&l.parentNode.selectedIndex)}}),h.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){h.propFix[this.toLowerCase()]=this});function Bn(o){var l=o.match(Et)||[];return l.join(" ")}function $n(o){return o.getAttribute&&o.getAttribute("class")||""}function cl(o){return Array.isArray(o)?o:typeof o=="string"?o.match(Et)||[]:[]}h.fn.extend({addClass:function(o){var l,f,d,y,v,w;return C(o)?this.each(function(x){h(this).addClass(o.call(this,x,$n(this)))}):(l=cl(o),l.length?this.each(function(){if(d=$n(this),f=this.nodeType===1&&" "+Bn(d)+" ",f){for(v=0;v<l.length;v++)y=l[v],f.indexOf(" "+y+" ")<0&&(f+=y+" ");w=Bn(f),d!==w&&this.setAttribute("class",w)}}):this)},removeClass:function(o){var l,f,d,y,v,w;return C(o)?this.each(function(x){h(this).removeClass(o.call(this,x,$n(this)))}):arguments.length?(l=cl(o),l.length?this.each(function(){if(d=$n(this),f=this.nodeType===1&&" "+Bn(d)+" ",f){for(v=0;v<l.length;v++)for(y=l[v];f.indexOf(" "+y+" ")>-1;)f=f.replace(" "+y+" "," ");w=Bn(f),d!==w&&this.setAttribute("class",w)}}):this):this.attr("class","")},toggleClass:function(o,l){var f,d,y,v,w=typeof o,x=w==="string"||Array.isArray(o);return C(o)?this.each(function(E){h(this).toggleClass(o.call(this,E,$n(this),l),l)}):typeof l=="boolean"&&x?l?this.addClass(o):this.removeClass(o):(f=cl(o),this.each(function(){if(x)for(v=h(this),y=0;y<f.length;y++)d=f[y],v.hasClass(d)?v.removeClass(d):v.addClass(d);else(o===void 0||w==="boolean")&&(d=$n(this),d&&Y.set(this,"__className__",d),this.setAttribute&&this.setAttribute("class",d||o===!1?"":Y.get(this,"__className__")||""))}))},hasClass:function(o){var l,f,d=0;for(l=" "+o+" ";f=this[d++];)if(f.nodeType===1&&(" "+Bn($n(f))+" ").indexOf(l)>-1)return!0;return!1}});var jm=/\r/g;h.fn.extend({val:function(o){var l,f,d,y=this[0];return arguments.length?(d=C(o),this.each(function(v){var w;this.nodeType===1&&(d?w=o.call(this,v,h(this).val()):w=o,w==null?w="":typeof w=="number"?w+="":Array.isArray(w)&&(w=h.map(w,function(x){return x==null?"":x+""})),l=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()],(!l||!("set"in l)||l.set(this,w,"value")===void 0)&&(this.value=w))})):y?(l=h.valHooks[y.type]||h.valHooks[y.nodeName.toLowerCase()],l&&"get"in l&&(f=l.get(y,"value"))!==void 0?f:(f=y.value,typeof f=="string"?f.replace(jm,""):f??"")):void 0}}),h.extend({valHooks:{option:{get:function(o){var l=h.find.attr(o,"value");return l??Bn(h.text(o))}},select:{get:function(o){var l,f,d,y=o.options,v=o.selectedIndex,w=o.type==="select-one",x=w?null:[],E=w?v+1:y.length;for(v<0?d=E:d=w?v:0;d<E;d++)if(f=y[d],(f.selected||d===v)&&!f.disabled&&(!f.parentNode.disabled||!D(f.parentNode,"optgroup"))){if(l=h(f).val(),w)return l;x.push(l)}return x},set:function(o,l){for(var f,d,y=o.options,v=h.makeArray(l),w=y.length;w--;)d=y[w],(d.selected=h.inArray(h.valHooks.option.get(d),v)>-1)&&(f=!0);return f||(o.selectedIndex=-1),v}}}}),h.each(["radio","checkbox"],function(){h.valHooks[this]={set:function(o,l){if(Array.isArray(l))return o.checked=h.inArray(h(o).val(),l)>-1}},_.checkOn||(h.valHooks[this].get=function(o){return o.getAttribute("value")===null?"on":o.value})});var ar=t.location,Gu={guid:Date.now()},ul=/\?/;h.parseXML=function(o){var l,f;if(!o||typeof o!="string")return null;try{l=new t.DOMParser().parseFromString(o,"text/xml")}catch{}return f=l&&l.getElementsByTagName("parsererror")[0],(!l||f)&&h.error("Invalid XML: "+(f?h.map(f.childNodes,function(d){return d.textContent}).join(`
`):o)),l};var Ju=/^(?:focusinfocus|focusoutblur)$/,Qu=function(o){o.stopPropagation()};h.extend(h.event,{trigger:function(o,l,f,d){var y,v,w,x,E,N,$,X,z=[f||M],se=m.call(o,"type")?o.type:o,Ie=m.call(o,"namespace")?o.namespace.split("."):[];if(v=X=w=f=f||M,!(f.nodeType===3||f.nodeType===8)&&!Ju.test(se+h.event.triggered)&&(se.indexOf(".")>-1&&(Ie=se.split("."),se=Ie.shift(),Ie.sort()),E=se.indexOf(":")<0&&"on"+se,o=o[h.expando]?o:new h.Event(se,typeof o=="object"&&o),o.isTrigger=d?2:3,o.namespace=Ie.join("."),o.rnamespace=o.namespace?new RegExp("(^|\\.)"+Ie.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,o.result=void 0,o.target||(o.target=f),l=l==null?[o]:h.makeArray(l,[o]),$=h.event.special[se]||{},!(!d&&$.trigger&&$.trigger.apply(f,l)===!1))){if(!d&&!$.noBubble&&!P(f)){for(x=$.delegateType||se,Ju.test(x+se)||(v=v.parentNode);v;v=v.parentNode)z.push(v),w=v;w===(f.ownerDocument||M)&&z.push(w.defaultView||w.parentWindow||t)}for(y=0;(v=z[y++])&&!o.isPropagationStopped();)X=v,o.type=y>1?x:$.bindType||se,N=(Y.get(v,"events")||Object.create(null))[o.type]&&Y.get(v,"handle"),N&&N.apply(v,l),N=E&&v[E],N&&N.apply&&Se(v)&&(o.result=N.apply(v,l),o.result===!1&&o.preventDefault());return o.type=se,!d&&!o.isDefaultPrevented()&&(!$._default||$._default.apply(z.pop(),l)===!1)&&Se(f)&&E&&C(f[se])&&!P(f)&&(w=f[E],w&&(f[E]=null),h.event.triggered=se,o.isPropagationStopped()&&X.addEventListener(se,Qu),f[se](),o.isPropagationStopped()&&X.removeEventListener(se,Qu),h.event.triggered=void 0,w&&(f[E]=w)),o.result}},simulate:function(o,l,f){var d=h.extend(new h.Event,f,{type:o,isSimulated:!0});h.event.trigger(d,null,l)}}),h.fn.extend({trigger:function(o,l){return this.each(function(){h.event.trigger(o,l,this)})},triggerHandler:function(o,l){var f=this[0];if(f)return h.event.trigger(o,l,f,!0)}});var Bm=/\[\]$/,Zu=/\r?\n/g,$m=/^(?:submit|button|image|reset|file)$/i,Um=/^(?:input|select|textarea|keygen)/i;function fl(o,l,f,d){var y;if(Array.isArray(l))h.each(l,function(v,w){f||Bm.test(o)?d(o,w):fl(o+"["+(typeof w=="object"&&w!=null?v:"")+"]",w,f,d)});else if(!f&&k(l)==="object")for(y in l)fl(o+"["+y+"]",l[y],f,d);else d(o,l)}h.param=function(o,l){var f,d=[],y=function(v,w){var x=C(w)?w():w;d[d.length]=encodeURIComponent(v)+"="+encodeURIComponent(x??"")};if(o==null)return"";if(Array.isArray(o)||o.jquery&&!h.isPlainObject(o))h.each(o,function(){y(this.name,this.value)});else for(f in o)fl(f,o[f],l,y);return d.join("&")},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var o=h.prop(this,"elements");return o?h.makeArray(o):this}).filter(function(){var o=this.type;return this.name&&!h(this).is(":disabled")&&Um.test(this.nodeName)&&!$m.test(o)&&(this.checked||!sr.test(o))}).map(function(o,l){var f=h(this).val();return f==null?null:Array.isArray(f)?h.map(f,function(d){return{name:l.name,value:d.replace(Zu,`\r
`)}}):{name:l.name,value:f.replace(Zu,`\r
`)}}).get()}});var Wm=/%20/g,qm=/#.*$/,Vm=/([?&])_=[^&]*/,Km=/^(.*?):[ \t]*([^\r\n]*)$/mg,Xm=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ym=/^(?:GET|HEAD)$/,Gm=/^\/\//,ef={},hl={},tf="*/".concat("*"),dl=M.createElement("a");dl.href=ar.href;function nf(o){return function(l,f){typeof l!="string"&&(f=l,l="*");var d,y=0,v=l.toLowerCase().match(Et)||[];if(C(f))for(;d=v[y++];)d[0]==="+"?(d=d.slice(1)||"*",(o[d]=o[d]||[]).unshift(f)):(o[d]=o[d]||[]).push(f)}}function sf(o,l,f,d){var y={},v=o===hl;function w(x){var E;return y[x]=!0,h.each(o[x]||[],function(N,$){var X=$(l,f,d);if(typeof X=="string"&&!v&&!y[X])return l.dataTypes.unshift(X),w(X),!1;if(v)return!(E=X)}),E}return w(l.dataTypes[0])||!y["*"]&&w("*")}function pl(o,l){var f,d,y=h.ajaxSettings.flatOptions||{};for(f in l)l[f]!==void 0&&((y[f]?o:d||(d={}))[f]=l[f]);return d&&h.extend(!0,o,d),o}function Jm(o,l,f){for(var d,y,v,w,x=o.contents,E=o.dataTypes;E[0]==="*";)E.shift(),d===void 0&&(d=o.mimeType||l.getResponseHeader("Content-Type"));if(d){for(y in x)if(x[y]&&x[y].test(d)){E.unshift(y);break}}if(E[0]in f)v=E[0];else{for(y in f){if(!E[0]||o.converters[y+" "+E[0]]){v=y;break}w||(w=y)}v=v||w}if(v)return v!==E[0]&&E.unshift(v),f[v]}function Qm(o,l,f,d){var y,v,w,x,E,N={},$=o.dataTypes.slice();if($[1])for(w in o.converters)N[w.toLowerCase()]=o.converters[w];for(v=$.shift();v;)if(o.responseFields[v]&&(f[o.responseFields[v]]=l),!E&&d&&o.dataFilter&&(l=o.dataFilter(l,o.dataType)),E=v,v=$.shift(),v){if(v==="*")v=E;else if(E!=="*"&&E!==v){if(w=N[E+" "+v]||N["* "+v],!w){for(y in N)if(x=y.split(" "),x[1]===v&&(w=N[E+" "+x[0]]||N["* "+x[0]],w)){w===!0?w=N[y]:N[y]!==!0&&(v=x[0],$.unshift(x[1]));break}}if(w!==!0)if(w&&o.throws)l=w(l);else try{l=w(l)}catch(X){return{state:"parsererror",error:w?X:"No conversion from "+E+" to "+v}}}}return{state:"success",data:l}}h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ar.href,type:"GET",isLocal:Xm.test(ar.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":tf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(o,l){return l?pl(pl(o,h.ajaxSettings),l):pl(h.ajaxSettings,o)},ajaxPrefilter:nf(ef),ajaxTransport:nf(hl),ajax:function(o,l){typeof o=="object"&&(l=o,o=void 0),l=l||{};var f,d,y,v,w,x,E,N,$,X,z=h.ajaxSetup({},l),se=z.context||z,Ie=z.context&&(se.nodeType||se.jquery)?h(se):h.event,$e=h.Deferred(),Pe=h.Callbacks("once memory"),Rt=z.statusCode||{},yt={},Fi={},ji="canceled",Fe={readyState:0,getResponseHeader:function(qe){var ut;if(E){if(!v)for(v={};ut=Km.exec(y);)v[ut[1].toLowerCase()+" "]=(v[ut[1].toLowerCase()+" "]||[]).concat(ut[2]);ut=v[qe.toLowerCase()+" "]}return ut==null?null:ut.join(", ")},getAllResponseHeaders:function(){return E?y:null},setRequestHeader:function(qe,ut){return E==null&&(qe=Fi[qe.toLowerCase()]=Fi[qe.toLowerCase()]||qe,yt[qe]=ut),this},overrideMimeType:function(qe){return E==null&&(z.mimeType=qe),this},statusCode:function(qe){var ut;if(qe)if(E)Fe.always(qe[Fe.status]);else for(ut in qe)Rt[ut]=[Rt[ut],qe[ut]];return this},abort:function(qe){var ut=qe||ji;return f&&f.abort(ut),Un(0,ut),this}};if($e.promise(Fe),z.url=((o||z.url||ar.href)+"").replace(Gm,ar.protocol+"//"),z.type=l.method||l.type||z.method||z.type,z.dataTypes=(z.dataType||"*").toLowerCase().match(Et)||[""],z.crossDomain==null){x=M.createElement("a");try{x.href=z.url,x.href=x.href,z.crossDomain=dl.protocol+"//"+dl.host!=x.protocol+"//"+x.host}catch{z.crossDomain=!0}}if(z.data&&z.processData&&typeof z.data!="string"&&(z.data=h.param(z.data,z.traditional)),sf(ef,z,l,Fe),E)return Fe;N=h.event&&z.global,N&&h.active++===0&&h.event.trigger("ajaxStart"),z.type=z.type.toUpperCase(),z.hasContent=!Ym.test(z.type),d=z.url.replace(qm,""),z.hasContent?z.data&&z.processData&&(z.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(z.data=z.data.replace(Wm,"+")):(X=z.url.slice(d.length),z.data&&(z.processData||typeof z.data=="string")&&(d+=(ul.test(d)?"&":"?")+z.data,delete z.data),z.cache===!1&&(d=d.replace(Vm,"$1"),X=(ul.test(d)?"&":"?")+"_="+Gu.guid+++X),z.url=d+X),z.ifModified&&(h.lastModified[d]&&Fe.setRequestHeader("If-Modified-Since",h.lastModified[d]),h.etag[d]&&Fe.setRequestHeader("If-None-Match",h.etag[d])),(z.data&&z.hasContent&&z.contentType!==!1||l.contentType)&&Fe.setRequestHeader("Content-Type",z.contentType),Fe.setRequestHeader("Accept",z.dataTypes[0]&&z.accepts[z.dataTypes[0]]?z.accepts[z.dataTypes[0]]+(z.dataTypes[0]!=="*"?", "+tf+"; q=0.01":""):z.accepts["*"]);for($ in z.headers)Fe.setRequestHeader($,z.headers[$]);if(z.beforeSend&&(z.beforeSend.call(se,Fe,z)===!1||E))return Fe.abort();if(ji="abort",Pe.add(z.complete),Fe.done(z.success),Fe.fail(z.error),f=sf(hl,z,l,Fe),!f)Un(-1,"No Transport");else{if(Fe.readyState=1,N&&Ie.trigger("ajaxSend",[Fe,z]),E)return Fe;z.async&&z.timeout>0&&(w=t.setTimeout(function(){Fe.abort("timeout")},z.timeout));try{E=!1,f.send(yt,Un)}catch(qe){if(E)throw qe;Un(-1,qe)}}function Un(qe,ut,cr,ml){var Bi,ur,$i,Sn,_n,bi=ut;E||(E=!0,w&&t.clearTimeout(w),f=void 0,y=ml||"",Fe.readyState=qe>0?4:0,Bi=qe>=200&&qe<300||qe===304,cr&&(Sn=Jm(z,Fe,cr)),!Bi&&h.inArray("script",z.dataTypes)>-1&&h.inArray("json",z.dataTypes)<0&&(z.converters["text script"]=function(){}),Sn=Qm(z,Sn,Fe,Bi),Bi?(z.ifModified&&(_n=Fe.getResponseHeader("Last-Modified"),_n&&(h.lastModified[d]=_n),_n=Fe.getResponseHeader("etag"),_n&&(h.etag[d]=_n)),qe===204||z.type==="HEAD"?bi="nocontent":qe===304?bi="notmodified":(bi=Sn.state,ur=Sn.data,$i=Sn.error,Bi=!$i)):($i=bi,(qe||!bi)&&(bi="error",qe<0&&(qe=0))),Fe.status=qe,Fe.statusText=(ut||bi)+"",Bi?$e.resolveWith(se,[ur,bi,Fe]):$e.rejectWith(se,[Fe,bi,$i]),Fe.statusCode(Rt),Rt=void 0,N&&Ie.trigger(Bi?"ajaxSuccess":"ajaxError",[Fe,z,Bi?ur:$i]),Pe.fireWith(se,[Fe,bi]),N&&(Ie.trigger("ajaxComplete",[Fe,z]),--h.active||h.event.trigger("ajaxStop")))}return Fe},getJSON:function(o,l,f){return h.get(o,l,f,"json")},getScript:function(o,l){return h.get(o,void 0,l,"script")}}),h.each(["get","post"],function(o,l){h[l]=function(f,d,y,v){return C(d)&&(v=v||y,y=d,d=void 0),h.ajax(h.extend({url:f,type:l,dataType:v,data:d,success:y},h.isPlainObject(f)&&f))}}),h.ajaxPrefilter(function(o){var l;for(l in o.headers)l.toLowerCase()==="content-type"&&(o.contentType=o.headers[l]||"")}),h._evalUrl=function(o,l,f){return h.ajax({url:o,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(d){h.globalEval(d,l,f)}})},h.fn.extend({wrapAll:function(o){var l;return this[0]&&(C(o)&&(o=o.call(this[0])),l=h(o,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&l.insertBefore(this[0]),l.map(function(){for(var f=this;f.firstElementChild;)f=f.firstElementChild;return f}).append(this)),this},wrapInner:function(o){return C(o)?this.each(function(l){h(this).wrapInner(o.call(this,l))}):this.each(function(){var l=h(this),f=l.contents();f.length?f.wrapAll(o):l.append(o)})},wrap:function(o){var l=C(o);return this.each(function(f){h(this).wrapAll(l?o.call(this,f):o)})},unwrap:function(o){return this.parent(o).not("body").each(function(){h(this).replaceWith(this.childNodes)}),this}}),h.expr.pseudos.hidden=function(o){return!h.expr.pseudos.visible(o)},h.expr.pseudos.visible=function(o){return!!(o.offsetWidth||o.offsetHeight||o.getClientRects().length)},h.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var Zm={0:200,1223:204},lr=h.ajaxSettings.xhr();_.cors=!!lr&&"withCredentials"in lr,_.ajax=lr=!!lr,h.ajaxTransport(function(o){var l,f;if(_.cors||lr&&!o.crossDomain)return{send:function(d,y){var v,w=o.xhr();if(w.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(v in o.xhrFields)w[v]=o.xhrFields[v];o.mimeType&&w.overrideMimeType&&w.overrideMimeType(o.mimeType),!o.crossDomain&&!d["X-Requested-With"]&&(d["X-Requested-With"]="XMLHttpRequest");for(v in d)w.setRequestHeader(v,d[v]);l=function(x){return function(){l&&(l=f=w.onload=w.onerror=w.onabort=w.ontimeout=w.onreadystatechange=null,x==="abort"?w.abort():x==="error"?typeof w.status!="number"?y(0,"error"):y(w.status,w.statusText):y(Zm[w.status]||w.status,w.statusText,(w.responseType||"text")!=="text"||typeof w.responseText!="string"?{binary:w.response}:{text:w.responseText},w.getAllResponseHeaders()))}},w.onload=l(),f=w.onerror=w.ontimeout=l("error"),w.onabort!==void 0?w.onabort=f:w.onreadystatechange=function(){w.readyState===4&&t.setTimeout(function(){l&&f()})},l=l("abort");try{w.send(o.hasContent&&o.data||null)}catch(x){if(l)throw x}},abort:function(){l&&l()}}}),h.ajaxPrefilter(function(o){o.crossDomain&&(o.contents.script=!1)}),h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(o){return h.globalEval(o),o}}}),h.ajaxPrefilter("script",function(o){o.cache===void 0&&(o.cache=!1),o.crossDomain&&(o.type="GET")}),h.ajaxTransport("script",function(o){if(o.crossDomain||o.scriptAttrs){var l,f;return{send:function(d,y){l=h("<script>").attr(o.scriptAttrs||{}).prop({charset:o.scriptCharset,src:o.url}).on("load error",f=function(v){l.remove(),f=null,v&&y(v.type==="error"?404:200,v.type)}),M.head.appendChild(l[0])},abort:function(){f&&f()}}}});var rf=[],gl=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var o=rf.pop()||h.expando+"_"+Gu.guid++;return this[o]=!0,o}}),h.ajaxPrefilter("json jsonp",function(o,l,f){var d,y,v,w=o.jsonp!==!1&&(gl.test(o.url)?"url":typeof o.data=="string"&&(o.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&gl.test(o.data)&&"data");if(w||o.dataTypes[0]==="jsonp")return d=o.jsonpCallback=C(o.jsonpCallback)?o.jsonpCallback():o.jsonpCallback,w?o[w]=o[w].replace(gl,"$1"+d):o.jsonp!==!1&&(o.url+=(ul.test(o.url)?"&":"?")+o.jsonp+"="+d),o.converters["script json"]=function(){return v||h.error(d+" was not called"),v[0]},o.dataTypes[0]="json",y=t[d],t[d]=function(){v=arguments},f.always(function(){y===void 0?h(t).removeProp(d):t[d]=y,o[d]&&(o.jsonpCallback=l.jsonpCallback,rf.push(d)),v&&C(y)&&y(v[0]),v=y=void 0}),"script"}),_.createHTMLDocument=function(){var o=M.implementation.createHTMLDocument("").body;return o.innerHTML="<form></form><form></form>",o.childNodes.length===2}(),h.parseHTML=function(o,l,f){if(typeof o!="string")return[];typeof l=="boolean"&&(f=l,l=!1);var d,y,v;return l||(_.createHTMLDocument?(l=M.implementation.createHTMLDocument(""),d=l.createElement("base"),d.href=M.location.href,l.head.appendChild(d)):l=M),y=fi.exec(o),v=!f&&[],y?[l.createElement(y[1])]:(y=Du([o],l,v),v&&v.length&&h(v).remove(),h.merge([],y.childNodes))},h.fn.load=function(o,l,f){var d,y,v,w=this,x=o.indexOf(" ");return x>-1&&(d=Bn(o.slice(x)),o=o.slice(0,x)),C(l)?(f=l,l=void 0):l&&typeof l=="object"&&(y="POST"),w.length>0&&h.ajax({url:o,type:y||"GET",dataType:"html",data:l}).done(function(E){v=arguments,w.html(d?h("<div>").append(h.parseHTML(E)).find(d):E)}).always(f&&function(E,N){w.each(function(){f.apply(this,v||[E.responseText,N,E])})}),this},h.expr.pseudos.animated=function(o){return h.grep(h.timers,function(l){return o===l.elem}).length},h.offset={setOffset:function(o,l,f){var d,y,v,w,x,E,N,$=h.css(o,"position"),X=h(o),z={};$==="static"&&(o.style.position="relative"),x=X.offset(),v=h.css(o,"top"),E=h.css(o,"left"),N=($==="absolute"||$==="fixed")&&(v+E).indexOf("auto")>-1,N?(d=X.position(),w=d.top,y=d.left):(w=parseFloat(v)||0,y=parseFloat(E)||0),C(l)&&(l=l.call(o,f,h.extend({},x))),l.top!=null&&(z.top=l.top-x.top+w),l.left!=null&&(z.left=l.left-x.left+y),"using"in l?l.using.call(o,z):X.css(z)}},h.fn.extend({offset:function(o){if(arguments.length)return o===void 0?this:this.each(function(y){h.offset.setOffset(this,o,y)});var l,f,d=this[0];if(d)return d.getClientRects().length?(l=d.getBoundingClientRect(),f=d.ownerDocument.defaultView,{top:l.top+f.pageYOffset,left:l.left+f.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var o,l,f,d=this[0],y={top:0,left:0};if(h.css(d,"position")==="fixed")l=d.getBoundingClientRect();else{for(l=this.offset(),f=d.ownerDocument,o=d.offsetParent||f.documentElement;o&&(o===f.body||o===f.documentElement)&&h.css(o,"position")==="static";)o=o.parentNode;o&&o!==d&&o.nodeType===1&&(y=h(o).offset(),y.top+=h.css(o,"borderTopWidth",!0),y.left+=h.css(o,"borderLeftWidth",!0))}return{top:l.top-y.top-h.css(d,"marginTop",!0),left:l.left-y.left-h.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var o=this.offsetParent;o&&h.css(o,"position")==="static";)o=o.offsetParent;return o||hi})}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(o,l){var f=l==="pageYOffset";h.fn[o]=function(d){return Q(this,function(y,v,w){var x;if(P(y)?x=y:y.nodeType===9&&(x=y.defaultView),w===void 0)return x?x[l]:y[v];x?x.scrollTo(f?x.pageXOffset:w,f?w:x.pageYOffset):y[v]=w},o,d,arguments.length)}}),h.each(["top","left"],function(o,l){h.cssHooks[l]=ju(_.pixelPosition,function(f,d){if(d)return d=rr(f,l),sl.test(d)?h(f).position()[l]+"px":d})}),h.each({Height:"height",Width:"width"},function(o,l){h.each({padding:"inner"+o,content:l,"":"outer"+o},function(f,d){h.fn[d]=function(y,v){var w=arguments.length&&(f||typeof y!="boolean"),x=f||(y===!0||v===!0?"margin":"border");return Q(this,function(E,N,$){var X;return P(E)?d.indexOf("outer")===0?E["inner"+o]:E.document.documentElement["client"+o]:E.nodeType===9?(X=E.documentElement,Math.max(E.body["scroll"+o],X["scroll"+o],E.body["offset"+o],X["offset"+o],X["client"+o])):$===void 0?h.css(E,N,x):h.style(E,N,$,x)},l,w?y:void 0,w)}})}),h.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(o,l){h.fn[l]=function(f){return this.on(l,f)}}),h.fn.extend({bind:function(o,l,f){return this.on(o,null,l,f)},unbind:function(o,l){return this.off(o,null,l)},delegate:function(o,l,f,d){return this.on(l,o,f,d)},undelegate:function(o,l,f){return arguments.length===1?this.off(o,"**"):this.off(l,o||"**",f)},hover:function(o,l){return this.on("mouseenter",o).on("mouseleave",l||o)}}),h.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(o,l){h.fn[l]=function(f,d){return arguments.length>0?this.on(l,null,f,d):this.trigger(l)}});var ey=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;h.proxy=function(o,l){var f,d,y;if(typeof l=="string"&&(f=o[l],l=o,o=f),!!C(o))return d=r.call(arguments,2),y=function(){return o.apply(l||this,d.concat(r.call(arguments)))},y.guid=o.guid=o.guid||h.guid++,y},h.holdReady=function(o){o?h.readyWait++:h.ready(!0)},h.isArray=Array.isArray,h.parseJSON=JSON.parse,h.nodeName=D,h.isFunction=C,h.isWindow=P,h.camelCase=ee,h.type=k,h.now=Date.now,h.isNumeric=function(o){var l=h.type(o);return(l==="number"||l==="string")&&!isNaN(o-parseFloat(o))},h.trim=function(o){return o==null?"":(o+"").replace(ey,"$1")};var ty=t.jQuery,iy=t.$;return h.noConflict=function(o){return t.$===h&&(t.$=iy),o&&t.jQuery===h&&(t.jQuery=ty),h},typeof i>"u"&&(t.jQuery=t.$=h),h})}(Io)),Io.exports}var hy=fy();const ma=jh(hy);window.CROP_THUMBNAILS_DO_CACHE_BREAK=function(e){for(var t=ma,i=t(e),n=0;n<i.length;n++){var s=t(i[n]),r=s.attr("src"),a=r.split("?");s.attr("src",a[0]+"?&cacheBreak="+new Date().getTime())}};ma(function(e){e(document).on("click",".cropThumbnailsLink",(t,i)=>{t.preventDefault();const n=JSON.parse(t.target.dataset.cropthumbnail);if(!n)return;const s=t.target.title,r=n.posttype!==void 0?n.posttype:null;new window.CROP_THUMBNAILS_VUE.modal().open(n.image_id,r,s)})});/**
* @vue/shared v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function mi(e){const t=Object.create(null);for(const i of e.split(","))t[i]=1;return i=>i in t}const je={},Is=[],Dt=()=>{},mr=()=>!1,ls=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Mc=e=>e.startsWith("onUpdate:"),Be=Object.assign,Dc=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},dy=Object.prototype.hasOwnProperty,Ge=(e,t)=>dy.call(e,t),he=Array.isArray,Os=e=>Gs(e)==="[object Map]",cs=e=>Gs(e)==="[object Set]",uf=e=>Gs(e)==="[object Date]",py=e=>Gs(e)==="[object RegExp]",Ae=e=>typeof e=="function",Ne=e=>typeof e=="string",li=e=>typeof e=="symbol",et=e=>e!==null&&typeof e=="object",Pc=e=>(et(e)||Ae(e))&&Ae(e.then)&&Ae(e.catch),Bh=Object.prototype.toString,Gs=e=>Bh.call(e),gy=e=>Gs(e).slice(8,-1),ya=e=>Gs(e)==="[object Object]",Lc=e=>Ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mn=mi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),my=mi("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),va=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},yy=/-(\w)/g,ot=va(e=>e.replace(yy,(t,i)=>i?i.toUpperCase():"")),vy=/\B([A-Z])/g,ni=va(e=>e.replace(vy,"-$1").toLowerCase()),us=va(e=>e.charAt(0).toUpperCase()+e.slice(1)),ks=va(e=>e?`on${us(e)}`:""),Kt=(e,t)=>!Object.is(e,t),Ns=(e,...t)=>{for(let i=0;i<e.length;i++)e[i](...t)},Vl=(e,t,i,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:i})},Wo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qo=e=>{const t=Ne(e)?Number(e):NaN;return isNaN(t)?e:t};let ff;const ba=()=>ff||(ff=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function by(e,t){return e+JSON.stringify(t,(i,n)=>typeof n=="function"?n.toString():n)}const wy="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",Sy=mi(wy);function fs(e){if(he(e)){const t={};for(let i=0;i<e.length;i++){const n=e[i],s=Ne(n)?$h(n):fs(n);if(s)for(const r in s)t[r]=s[r]}return t}else if(Ne(e)||et(e))return e}const _y=/;(?![^(]*\))/g,Cy=/:([^]+)/,Ty=/\/\*[^]*?\*\//g;function $h(e){const t={};return e.replace(Ty,"").split(_y).forEach(i=>{if(i){const n=i.split(Cy);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Yt(e){let t="";if(Ne(e))t=e;else if(he(e))for(let i=0;i<e.length;i++){const n=Yt(e[i]);n&&(t+=n+" ")}else if(et(e))for(const i in e)e[i]&&(t+=i+" ");return t.trim()}function Ey(e){if(!e)return null;let{class:t,style:i}=e;return t&&!Ne(t)&&(e.class=Yt(t)),i&&(e.style=fs(i)),e}const Ay="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,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,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,summary,template,blockquote,iframe,tfoot",xy="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Ry="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",Iy="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Oy=mi(Ay),ky=mi(xy),Ny=mi(Ry),My=mi(Iy),Dy="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Py=mi(Dy);function Uh(e){return!!e||e===""}function Ly(e,t){if(e.length!==t.length)return!1;let i=!0;for(let n=0;i&&n<e.length;n++)i=zn(e[n],t[n]);return i}function zn(e,t){if(e===t)return!0;let i=uf(e),n=uf(t);if(i||n)return i&&n?e.getTime()===t.getTime():!1;if(i=li(e),n=li(t),i||n)return e===t;if(i=he(e),n=he(t),i||n)return i&&n?Ly(e,t):!1;if(i=et(e),n=et(t),i||n){if(!i||!n)return!1;const s=Object.keys(e).length,r=Object.keys(t).length;if(s!==r)return!1;for(const a in e){const c=e.hasOwnProperty(a),u=t.hasOwnProperty(a);if(c&&!u||!c&&u||!zn(e[a],t[a]))return!1}}return String(e)===String(t)}function wa(e,t){return e.findIndex(i=>zn(i,t))}const Wh=e=>!!(e&&e.__v_isRef===!0),le=e=>Ne(e)?e:e==null?"":he(e)||et(e)&&(e.toString===Bh||!Ae(e.toString))?Wh(e)?le(e.value):JSON.stringify(e,qh,2):String(e),qh=(e,t)=>Wh(t)?qh(e,t.value):Os(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((i,[n,s],r)=>(i[Cl(n,r)+" =>"]=s,i),{})}:cs(t)?{[`Set(${t.size})`]:[...t.values()].map(i=>Cl(i))}:li(t)?Cl(t):et(t)&&!he(t)&&!ya(t)?String(t):t,Cl=(e,t="")=>{var i;return li(e)?`Symbol(${(i=e.description)!=null?i:t})`:e};/**
* @vue/reactivity v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ht;class Hc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ht,!t&&Ht&&(this.index=(Ht.scopes||(Ht.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,i;if(this.scopes)for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].pause();for(t=0,i=this.effects.length;t<i;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,i;if(this.scopes)for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].resume();for(t=0,i=this.effects.length;t<i;t++)this.effects[t].resume()}}run(t){if(this._active){const i=Ht;try{return Ht=this,t()}finally{Ht=i}}}on(){++this._on===1&&(this.prevScope=Ht,Ht=this)}off(){this._on>0&&--this._on===0&&(Ht=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let i,n;for(i=0,n=this.effects.length;i<n;i++)this.effects[i].stop();for(this.effects.length=0,i=0,n=this.cleanups.length;i<n;i++)this.cleanups[i]();if(this.cleanups.length=0,this.scopes){for(i=0,n=this.scopes.length;i<n;i++)this.scopes[i].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Hy(e){return new Hc(e)}function Vh(){return Ht}function zy(e,t=!1){Ht&&Ht.cleanups.push(e)}let rt;const Tl=new WeakSet;class Ir{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ht&&Ht.active&&Ht.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Tl.has(this)&&(Tl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Xh(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,hf(this),Yh(this);const t=rt,i=Di;rt=this,Di=!0;try{return this.fn()}finally{Gh(this),rt=t,Di=i,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)jc(t);this.deps=this.depsTail=void 0,hf(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Tl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Kl(this)&&this.run()}get dirty(){return Kl(this)}}let Kh=0,br,wr;function Xh(e,t=!1){if(e.flags|=8,t){e.next=wr,wr=e;return}e.next=br,br=e}function zc(){Kh++}function Fc(){if(--Kh>0)return;if(wr){let t=wr;for(wr=void 0;t;){const i=t.next;t.next=void 0,t.flags&=-9,t=i}}let e;for(;br;){let t=br;for(br=void 0;t;){const i=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=i}}if(e)throw e}function Yh(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Gh(e){let t,i=e.depsTail,n=i;for(;n;){const s=n.prevDep;n.version===-1?(n===i&&(i=s),jc(n),Fy(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}e.deps=t,e.depsTail=i}function Kl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Jh(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Jh(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Or)||(e.globalVersion=Or,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Kl(e))))return;e.flags|=2;const t=e.dep,i=rt,n=Di;rt=e,Di=!0;try{Yh(e);const s=e.fn(e._value);(t.version===0||Kt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{rt=i,Di=n,Gh(e),e.flags&=-3}}function jc(e,t=!1){const{dep:i,prevSub:n,nextSub:s}=e;if(n&&(n.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=n,e.nextSub=void 0),i.subs===e&&(i.subs=n,!n&&i.computed)){i.computed.flags&=-5;for(let r=i.computed.deps;r;r=r.nextDep)jc(r,!0)}!t&&!--i.sc&&i.map&&i.map.delete(i.key)}function Fy(e){const{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}function jy(e,t){e.effect instanceof Ir&&(e=e.effect.fn);const i=new Ir(e);t&&Be(i,t);try{i.run()}catch(s){throw i.stop(),s}const n=i.run.bind(i);return n.effect=i,n}function By(e){e.effect.stop()}let Di=!0;const Qh=[];function gn(){Qh.push(Di),Di=!1}function mn(){const e=Qh.pop();Di=e===void 0?!0:e}function hf(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const i=rt;rt=void 0;try{t()}finally{rt=i}}}let Or=0;class $y{constructor(t,i){this.sub=t,this.dep=i,this.version=i.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Sa{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!rt||!Di||rt===this.computed)return;let i=this.activeLink;if(i===void 0||i.sub!==rt)i=this.activeLink=new $y(rt,this),rt.deps?(i.prevDep=rt.depsTail,rt.depsTail.nextDep=i,rt.depsTail=i):rt.deps=rt.depsTail=i,Zh(i);else if(i.version===-1&&(i.version=this.version,i.nextDep)){const n=i.nextDep;n.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=n),i.prevDep=rt.depsTail,i.nextDep=void 0,rt.depsTail.nextDep=i,rt.depsTail=i,rt.deps===i&&(rt.deps=n)}return i}trigger(t){this.version++,Or++,this.notify(t)}notify(t){zc();try{for(let i=this.subs;i;i=i.prevSub)i.sub.notify()&&i.sub.dep.notify()}finally{Fc()}}}function Zh(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Zh(n)}const i=e.dep.subs;i!==e&&(e.prevSub=i,i&&(i.nextSub=e)),e.dep.subs=e}}const Vo=new WeakMap,Jn=Symbol(""),Xl=Symbol(""),kr=Symbol("");function Ft(e,t,i){if(Di&&rt){let n=Vo.get(e);n||Vo.set(e,n=new Map);let s=n.get(i);s||(n.set(i,s=new Sa),s.map=n,s.key=i),s.track()}}function cn(e,t,i,n,s,r){const a=Vo.get(e);if(!a){Or++;return}const c=u=>{u&&u.trigger()};if(zc(),t==="clear")a.forEach(c);else{const u=he(e),g=u&&Lc(i);if(u&&i==="length"){const p=Number(n);a.forEach((m,b)=>{(b==="length"||b===kr||!li(b)&&b>=p)&&c(m)})}else switch((i!==void 0||a.has(void 0))&&c(a.get(i)),g&&c(a.get(kr)),t){case"add":u?g&&c(a.get("length")):(c(a.get(Jn)),Os(e)&&c(a.get(Xl)));break;case"delete":u||(c(a.get(Jn)),Os(e)&&c(a.get(Xl)));break;case"set":Os(e)&&c(a.get(Jn));break}}Fc()}function Uy(e,t){const i=Vo.get(e);return i&&i.get(t)}function _s(e){const t=We(e);return t===e?t:(Ft(t,"iterate",kr),gi(e)?t:t.map(kt))}function _a(e){return Ft(e=We(e),"iterate",kr),e}const Wy={__proto__:null,[Symbol.iterator](){return El(this,Symbol.iterator,kt)},concat(...e){return _s(this).concat(...e.map(t=>he(t)?_s(t):t))},entries(){return El(this,"entries",e=>(e[1]=kt(e[1]),e))},every(e,t){return sn(this,"every",e,t,void 0,arguments)},filter(e,t){return sn(this,"filter",e,t,i=>i.map(kt),arguments)},find(e,t){return sn(this,"find",e,t,kt,arguments)},findIndex(e,t){return sn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return sn(this,"findLast",e,t,kt,arguments)},findLastIndex(e,t){return sn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return sn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Al(this,"includes",e)},indexOf(...e){return Al(this,"indexOf",e)},join(e){return _s(this).join(e)},lastIndexOf(...e){return Al(this,"lastIndexOf",e)},map(e,t){return sn(this,"map",e,t,void 0,arguments)},pop(){return hr(this,"pop")},push(...e){return hr(this,"push",e)},reduce(e,...t){return df(this,"reduce",e,t)},reduceRight(e,...t){return df(this,"reduceRight",e,t)},shift(){return hr(this,"shift")},some(e,t){return sn(this,"some",e,t,void 0,arguments)},splice(...e){return hr(this,"splice",e)},toReversed(){return _s(this).toReversed()},toSorted(e){return _s(this).toSorted(e)},toSpliced(...e){return _s(this).toSpliced(...e)},unshift(...e){return hr(this,"unshift",e)},values(){return El(this,"values",kt)}};function El(e,t,i){const n=_a(e),s=n[t]();return n!==e&&!gi(e)&&(s._next=s.next,s.next=()=>{const r=s._next();return r.value&&(r.value=i(r.value)),r}),s}const qy=Array.prototype;function sn(e,t,i,n,s,r){const a=_a(e),c=a!==e&&!gi(e),u=a[t];if(u!==qy[t]){const m=u.apply(e,r);return c?kt(m):m}let g=i;a!==e&&(c?g=function(m,b){return i.call(this,kt(m),b,e)}:i.length>2&&(g=function(m,b){return i.call(this,m,b,e)}));const p=u.call(a,g,n);return c&&s?s(p):p}function df(e,t,i,n){const s=_a(e);let r=i;return s!==e&&(gi(e)?i.length>3&&(r=function(a,c,u){return i.call(this,a,c,u,e)}):r=function(a,c,u){return i.call(this,a,kt(c),u,e)}),s[t](r,...n)}function Al(e,t,i){const n=We(e);Ft(n,"iterate",kr);const s=n[t](...i);return(s===-1||s===!1)&&Aa(i[0])?(i[0]=We(i[0]),n[t](...i)):s}function hr(e,t,i=[]){gn(),zc();const n=We(e)[t].apply(e,i);return Fc(),mn(),n}const Vy=mi("__proto__,__v_isRef,__isVue"),ed=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(li));function Ky(e){li(e)||(e=String(e));const t=We(this);return Ft(t,"has",e),t.hasOwnProperty(e)}class td{constructor(t=!1,i=!1){this._isReadonly=t,this._isShallow=i}get(t,i,n){if(i==="__v_skip")return t.__v_skip;const s=this._isReadonly,r=this._isShallow;if(i==="__v_isReactive")return!s;if(i==="__v_isReadonly")return s;if(i==="__v_isShallow")return r;if(i==="__v_raw")return n===(s?r?ad:od:r?rd:sd).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const a=he(t);if(!s){let u;if(a&&(u=Wy[i]))return u;if(i==="hasOwnProperty")return Ky}const c=Reflect.get(t,i,Ct(t)?t:n);return(li(i)?ed.has(i):Vy(i))||(s||Ft(t,"get",i),r)?c:Ct(c)?a&&Lc(i)?c:c.value:et(c)?s?Bc(c):Ta(c):c}}class id extends td{constructor(t=!1){super(!1,t)}set(t,i,n,s){let r=t[i];if(!this._isShallow){const u=yn(r);if(!gi(n)&&!yn(n)&&(r=We(r),n=We(n)),!he(t)&&Ct(r)&&!Ct(n))return u?!1:(r.value=n,!0)}const a=he(t)&&Lc(i)?Number(i)<t.length:Ge(t,i),c=Reflect.set(t,i,n,Ct(t)?t:s);return t===We(s)&&(a?Kt(n,r)&&cn(t,"set",i,n):cn(t,"add",i,n)),c}deleteProperty(t,i){const n=Ge(t,i);t[i];const s=Reflect.deleteProperty(t,i);return s&&n&&cn(t,"delete",i,void 0),s}has(t,i){const n=Reflect.has(t,i);return(!li(i)||!ed.has(i))&&Ft(t,"has",i),n}ownKeys(t){return Ft(t,"iterate",he(t)?"length":Jn),Reflect.ownKeys(t)}}class nd extends td{constructor(t=!1){super(!0,t)}set(t,i){return!0}deleteProperty(t,i){return!0}}const Xy=new id,Yy=new nd,Gy=new id(!0),Jy=new nd(!0),Yl=e=>e,uo=e=>Reflect.getPrototypeOf(e);function Qy(e,t,i){return function(...n){const s=this.__v_raw,r=We(s),a=Os(r),c=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,g=s[e](...n),p=i?Yl:t?Ko:kt;return!t&&Ft(r,"iterate",u?Xl:Jn),{next(){const{value:m,done:b}=g.next();return b?{value:m,done:b}:{value:c?[p(m[0]),p(m[1])]:p(m),done:b}},[Symbol.iterator](){return this}}}}function fo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Zy(e,t){const i={get(s){const r=this.__v_raw,a=We(r),c=We(s);e||(Kt(s,c)&&Ft(a,"get",s),Ft(a,"get",c));const{has:u}=uo(a),g=t?Yl:e?Ko:kt;if(u.call(a,s))return g(r.get(s));if(u.call(a,c))return g(r.get(c));r!==a&&r.get(s)},get size(){const s=this.__v_raw;return!e&&Ft(We(s),"iterate",Jn),Reflect.get(s,"size",s)},has(s){const r=this.__v_raw,a=We(r),c=We(s);return e||(Kt(s,c)&&Ft(a,"has",s),Ft(a,"has",c)),s===c?r.has(s):r.has(s)||r.has(c)},forEach(s,r){const a=this,c=a.__v_raw,u=We(c),g=t?Yl:e?Ko:kt;return!e&&Ft(u,"iterate",Jn),c.forEach((p,m)=>s.call(r,g(p),g(m),a))}};return Be(i,e?{add:fo("add"),set:fo("set"),delete:fo("delete"),clear:fo("clear")}:{add(s){!t&&!gi(s)&&!yn(s)&&(s=We(s));const r=We(this);return uo(r).has.call(r,s)||(r.add(s),cn(r,"add",s,s)),this},set(s,r){!t&&!gi(r)&&!yn(r)&&(r=We(r));const a=We(this),{has:c,get:u}=uo(a);let g=c.call(a,s);g||(s=We(s),g=c.call(a,s));const p=u.call(a,s);return a.set(s,r),g?Kt(r,p)&&cn(a,"set",s,r):cn(a,"add",s,r),this},delete(s){const r=We(this),{has:a,get:c}=uo(r);let u=a.call(r,s);u||(s=We(s),u=a.call(r,s)),c&&c.call(r,s);const g=r.delete(s);return u&&cn(r,"delete",s,void 0),g},clear(){const s=We(this),r=s.size!==0,a=s.clear();return r&&cn(s,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(s=>{i[s]=Qy(s,e,t)}),i}function Ca(e,t){const i=Zy(e,t);return(n,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(Ge(i,s)&&s in n?i:n,s,r)}const ev={get:Ca(!1,!1)},tv={get:Ca(!1,!0)},iv={get:Ca(!0,!1)},nv={get:Ca(!0,!0)},sd=new WeakMap,rd=new WeakMap,od=new WeakMap,ad=new WeakMap;function sv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rv(e){return e.__v_skip||!Object.isExtensible(e)?0:sv(gy(e))}function Ta(e){return yn(e)?e:Ea(e,!1,Xy,ev,sd)}function ld(e){return Ea(e,!1,Gy,tv,rd)}function Bc(e){return Ea(e,!0,Yy,iv,od)}function ov(e){return Ea(e,!0,Jy,nv,ad)}function Ea(e,t,i,n,s){if(!et(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=rv(e);if(r===0)return e;const a=s.get(e);if(a)return a;const c=new Proxy(e,r===2?n:i);return s.set(e,c),c}function Dn(e){return yn(e)?Dn(e.__v_raw):!!(e&&e.__v_isReactive)}function yn(e){return!!(e&&e.__v_isReadonly)}function gi(e){return!!(e&&e.__v_isShallow)}function Aa(e){return e?!!e.__v_raw:!1}function We(e){const t=e&&e.__v_raw;return t?We(t):e}function cd(e){return!Ge(e,"__v_skip")&&Object.isExtensible(e)&&Vl(e,"__v_skip",!0),e}const kt=e=>et(e)?Ta(e):e,Ko=e=>et(e)?Bc(e):e;function Ct(e){return e?e.__v_isRef===!0:!1}function Sr(e){return fd(e,!1)}function ud(e){return fd(e,!0)}function fd(e,t){return Ct(e)?e:new av(e,t)}class av{constructor(t,i){this.dep=new Sa,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=i?t:We(t),this._value=i?t:kt(t),this.__v_isShallow=i}get value(){return this.dep.track(),this._value}set value(t){const i=this._rawValue,n=this.__v_isShallow||gi(t)||yn(t);t=n?t:We(t),Kt(t,i)&&(this._rawValue=t,this._value=n?t:kt(t),this.dep.trigger())}}function lv(e){e.dep&&e.dep.trigger()}function xa(e){return Ct(e)?e.value:e}function cv(e){return Ae(e)?e():xa(e)}const uv={get:(e,t,i)=>t==="__v_raw"?e:xa(Reflect.get(e,t,i)),set:(e,t,i,n)=>{const s=e[t];return Ct(s)&&!Ct(i)?(s.value=i,!0):Reflect.set(e,t,i,n)}};function $c(e){return Dn(e)?e:new Proxy(e,uv)}class fv{constructor(t){this.__v_isRef=!0,this._value=void 0;const i=this.dep=new Sa,{get:n,set:s}=t(i.track.bind(i),i.trigger.bind(i));this._get=n,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function hd(e){return new fv(e)}function hv(e){const t=he(e)?new Array(e.length):{};for(const i in e)t[i]=dd(e,i);return t}class dv{constructor(t,i,n){this._object=t,this._key=i,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Uy(We(this._object),this._key)}}class pv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function gv(e,t,i){return Ct(e)?e:Ae(e)?new pv(e):et(e)&&arguments.length>1?dd(e,t,i):Sr(e)}function dd(e,t,i){const n=e[t];return Ct(n)?n:new dv(e,t,i)}class mv{constructor(t,i,n){this.fn=t,this.setter=i,this._value=void 0,this.dep=new Sa(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Or-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!i,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&rt!==this)return Xh(this,!0),!0}get value(){const t=this.dep.track();return Jh(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function yv(e,t,i=!1){let n,s;return Ae(e)?n=e:(n=e.get,s=e.set),new mv(n,s,i)}const vv={GET:"get",HAS:"has",ITERATE:"iterate"},bv={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},ho={},Xo=new WeakMap;let xn;function wv(){return xn}function pd(e,t=!1,i=xn){if(i){let n=Xo.get(i);n||Xo.set(i,n=[]),n.push(e)}}function Sv(e,t,i=je){const{immediate:n,deep:s,once:r,scheduler:a,augmentJob:c,call:u}=i,g=k=>s?k:gi(k)||s===!1||s===0?un(k,1):un(k);let p,m,b,S,_=!1,C=!1;if(Ct(e)?(m=()=>e.value,_=gi(e)):Dn(e)?(m=()=>g(e),_=!0):he(e)?(C=!0,_=e.some(k=>Dn(k)||gi(k)),m=()=>e.map(k=>{if(Ct(k))return k.value;if(Dn(k))return g(k);if(Ae(k))return u?u(k,2):k()})):Ae(e)?t?m=u?()=>u(e,2):e:m=()=>{if(b){gn();try{b()}finally{mn()}}const k=xn;xn=p;try{return u?u(e,3,[S]):e(S)}finally{xn=k}}:m=Dt,t&&s){const k=m,H=s===!0?1/0:s;m=()=>un(k(),H)}const P=Vh(),M=()=>{p.stop(),P&&P.active&&Dc(P.effects,p)};if(r&&t){const k=t;t=(...H)=>{k(...H),M()}}let j=C?new Array(e.length).fill(ho):ho;const R=k=>{if(!(!(p.flags&1)||!p.dirty&&!k))if(t){const H=p.run();if(s||_||(C?H.some((G,h)=>Kt(G,j[h])):Kt(H,j))){b&&b();const G=xn;xn=p;try{const h=[H,j===ho?void 0:C&&j[0]===ho?[]:j,S];j=H,u?u(t,3,h):t(...h)}finally{xn=G}}}else p.run()};return c&&c(R),p=new Ir(m),p.scheduler=a?()=>a(R,!1):R,S=k=>pd(k,!1,p),b=p.onStop=()=>{const k=Xo.get(p);if(k){if(u)u(k,4);else for(const H of k)H();Xo.delete(p)}},t?n?R(!0):j=p.run():a?a(R.bind(null,!0),!0):p.run(),M.pause=p.pause.bind(p),M.resume=p.resume.bind(p),M.stop=M,M}function un(e,t=1/0,i){if(t<=0||!et(e)||e.__v_skip||(i=i||new Set,i.has(e)))return e;if(i.add(e),t--,Ct(e))un(e.value,t,i);else if(he(e))for(let n=0;n<e.length;n++)un(e[n],t,i);else if(cs(e)||Os(e))e.forEach(n=>{un(n,t,i)});else if(ya(e)){for(const n in e)un(e[n],t,i);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&un(e[n],t,i)}return e}/**
* @vue/runtime-core v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const gd=[];function _v(e){gd.push(e)}function Cv(){gd.pop()}function Tv(e,t){}const Ev={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},Av={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Js(e,t,i,n){try{return n?e(...n):e()}catch(s){hs(s,t,i)}}function Ri(e,t,i,n){if(Ae(e)){const s=Js(e,t,i,n);return s&&Pc(s)&&s.catch(r=>{hs(r,t,i)}),s}if(he(e)){const s=[];for(let r=0;r<e.length;r++)s.push(Ri(e[r],t,i,n));return s}}function hs(e,t,i,n=!0){const s=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||je;if(t){let c=t.parent;const u=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${i}`;for(;c;){const p=c.ec;if(p){for(let m=0;m<p.length;m++)if(p[m](e,u,g)===!1)return}c=c.parent}if(r){gn(),Js(r,null,10,[e,u,g]),mn();return}}xv(e,i,s,n,a)}function xv(e,t,i,n=!0,s=!1){if(s)throw e;console.error(e)}const Xt=[];let Vi=-1;const Ms=[];let Rn=null,As=0;const md=Promise.resolve();let Yo=null;function Ra(e){const t=Yo||md;return e?t.then(this?e.bind(this):e):t}function Rv(e){let t=Vi+1,i=Xt.length;for(;t<i;){const n=t+i>>>1,s=Xt[n],r=Mr(s);r<e||r===e&&s.flags&2?t=n+1:i=n}return t}function Uc(e){if(!(e.flags&1)){const t=Mr(e),i=Xt[Xt.length-1];!i||!(e.flags&2)&&t>=Mr(i)?Xt.push(e):Xt.splice(Rv(t),0,e),e.flags|=1,yd()}}function yd(){Yo||(Yo=md.then(vd))}function Nr(e){he(e)?Ms.push(...e):Rn&&e.id===-1?Rn.splice(As+1,0,e):e.flags&1||(Ms.push(e),e.flags|=1),yd()}function pf(e,t,i=Vi+1){for(;i<Xt.length;i++){const n=Xt[i];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Xt.splice(i,1),i--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Go(e){if(Ms.length){const t=[...new Set(Ms)].sort((i,n)=>Mr(i)-Mr(n));if(Ms.length=0,Rn){Rn.push(...t);return}for(Rn=t,As=0;As<Rn.length;As++){const i=Rn[As];i.flags&4&&(i.flags&=-2),i.flags&8||i(),i.flags&=-2}Rn=null,As=0}}const Mr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function vd(e){try{for(Vi=0;Vi<Xt.length;Vi++){const t=Xt[Vi];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Js(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Vi<Xt.length;Vi++){const t=Xt[Vi];t&&(t.flags&=-2)}Vi=-1,Xt.length=0,Go(),Yo=null,(Xt.length||Ms.length)&&vd()}}let xs,po=[];function bd(e,t){var i,n;xs=e,xs?(xs.enabled=!0,po.forEach(({event:s,args:r})=>xs.emit(s,...r)),po=[]):typeof window<"u"&&window.HTMLElement&&!((n=(i=window.navigator)==null?void 0:i.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{bd(r,t)}),setTimeout(()=>{xs||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,po=[])},3e3)):po=[]}let _t=null,Ia=null;function Dr(e){const t=_t;return _t=e,Ia=e&&e.type.__scopeId||null,t}function Iv(e){Ia=e}function Ov(){Ia=null}const kv=e=>ci;function ci(e,t=_t,i){if(!t||e._n)return e;const n=(...s)=>{n._d&&nc(-1);const r=Dr(t);let a;try{a=e(...s)}finally{Dr(r),n._d&&nc(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function Ei(e,t){if(_t===null)return e;const i=Yr(_t),n=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[r,a,c,u=je]=t[s];r&&(Ae(r)&&(r={mounted:r,updated:r}),r.deep&&un(a),n.push({dir:r,instance:i,value:a,oldValue:void 0,arg:c,modifiers:u}))}return e}function Ki(e,t,i,n){const s=e.dirs,r=t&&t.dirs;for(let a=0;a<s.length;a++){const c=s[a];r&&(c.oldValue=r[a].value);let u=c.dir[n];u&&(gn(),Ri(u,i,8,[e.el,c,e,t]),mn())}}const wd=Symbol("_vte"),Sd=e=>e.__isTeleport,_r=e=>e&&(e.disabled||e.disabled===""),gf=e=>e&&(e.defer||e.defer===""),mf=e=>typeof SVGElement<"u"&&e instanceof SVGElement,yf=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Gl=(e,t)=>{const i=e&&e.to;return Ne(i)?t?t(i):null:i},_d={name:"Teleport",__isTeleport:!0,process(e,t,i,n,s,r,a,c,u,g){const{mc:p,pc:m,pbc:b,o:{insert:S,querySelector:_,createText:C,createComment:P}}=g,M=_r(t.props);let{shapeFlag:j,children:R,dynamicChildren:k}=t;if(e==null){const H=t.el=C(""),G=t.anchor=C("");S(H,i,n),S(G,i,n);const h=(D,V)=>{j&16&&(s&&s.isCE&&(s.ce._teleportTarget=D),p(R,D,V,s,r,a,c,u))},te=()=>{const D=t.target=Gl(t.props,_),V=Cd(D,t,C,S);D&&(a!=="svg"&&mf(D)?a="svg":a!=="mathml"&&yf(D)&&(a="mathml"),M||(h(D,V),Oo(t,!1)))};M&&(h(i,G),Oo(t,!0)),gf(t.props)?(t.el.__isMounted=!1,vt(()=>{te(),delete t.el.__isMounted},r)):te()}else{if(gf(t.props)&&e.el.__isMounted===!1){vt(()=>{_d.process(e,t,i,n,s,r,a,c,u,g)},r);return}t.el=e.el,t.targetStart=e.targetStart;const H=t.anchor=e.anchor,G=t.target=e.target,h=t.targetAnchor=e.targetAnchor,te=_r(e.props),D=te?i:G,V=te?H:h;if(a==="svg"||mf(G)?a="svg":(a==="mathml"||yf(G))&&(a="mathml"),k?(b(e.dynamicChildren,k,D,s,r,a,c),tu(e,t,!0)):u||m(e,t,D,V,s,r,a,c,!1),M)te?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):go(t,i,H,g,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const re=t.target=Gl(t.props,_);re&&go(t,re,null,g,0)}else te&&go(t,G,h,g,1);Oo(t,M)}},remove(e,t,i,{um:n,o:{remove:s}},r){const{shapeFlag:a,children:c,anchor:u,targetStart:g,targetAnchor:p,target:m,props:b}=e;if(m&&(s(g),s(p)),r&&s(u),a&16){const S=r||!_r(b);for(let _=0;_<c.length;_++){const C=c[_];n(C,t,i,S,!!C.dynamicChildren)}}},move:go,hydrate:Nv};function go(e,t,i,{o:{insert:n},m:s},r=2){r===0&&n(e.targetAnchor,t,i);const{el:a,anchor:c,shapeFlag:u,children:g,props:p}=e,m=r===2;if(m&&n(a,t,i),(!m||_r(p))&&u&16)for(let b=0;b<g.length;b++)s(g[b],t,i,2);m&&n(c,t,i)}function Nv(e,t,i,n,s,r,{o:{nextSibling:a,parentNode:c,querySelector:u,insert:g,createText:p}},m){const b=t.target=Gl(t.props,u);if(b){const S=_r(t.props),_=b._lpa||b.firstChild;if(t.shapeFlag&16)if(S)t.anchor=m(a(e),t,c(e),i,n,s,r),t.targetStart=_,t.targetAnchor=_&&a(_);else{t.anchor=a(e);let C=_;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")t.targetStart=C;else if(C.data==="teleport anchor"){t.targetAnchor=C,b._lpa=t.targetAnchor&&a(t.targetAnchor);break}}C=a(C)}t.targetAnchor||Cd(b,t,p,g),m(_&&a(_),t,b,i,n,s,r)}Oo(t,S)}return t.anchor&&a(t.anchor)}const Mv=_d;function Oo(e,t){const i=e.ctx;if(i&&i.ut){let n,s;for(t?(n=e.el,s=e.anchor):(n=e.targetStart,s=e.targetAnchor);n&&n!==s;)n.nodeType===1&&n.setAttribute("data-v-owner",i.uid),n=n.nextSibling;i.ut()}}function Cd(e,t,i,n){const s=t.targetStart=i(""),r=t.targetAnchor=i("");return s[wd]=r,e&&(n(s,e),n(r,e)),r}const In=Symbol("_leaveCb"),mo=Symbol("_enterCb");function Wc(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Kr(()=>{e.isMounted=!0}),Ma(()=>{e.isUnmounting=!0}),e}const Si=[Function,Array],qc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Si,onEnter:Si,onAfterEnter:Si,onEnterCancelled:Si,onBeforeLeave:Si,onLeave:Si,onAfterLeave:Si,onLeaveCancelled:Si,onBeforeAppear:Si,onAppear:Si,onAfterAppear:Si,onAppearCancelled:Si},Td=e=>{const t=e.subTree;return t.component?Td(t.component):t},Dv={name:"BaseTransition",props:qc,setup(e,{slots:t}){const i=Ii(),n=Wc();return()=>{const s=t.default&&Oa(t.default(),!0);if(!s||!s.length)return;const r=Ed(s),a=We(e),{mode:c}=a;if(n.isLeaving)return xl(r);const u=vf(r);if(!u)return xl(r);let g=zs(u,a,n,i,m=>g=m);u.type!==gt&&vn(u,g);let p=i.subTree&&vf(i.subTree);if(p&&p.type!==gt&&!Mi(u,p)&&Td(i).type!==gt){let m=zs(p,a,n,i);if(vn(p,m),c==="out-in"&&u.type!==gt)return n.isLeaving=!0,m.afterLeave=()=>{n.isLeaving=!1,i.job.flags&8||i.update(),delete m.afterLeave,p=void 0},xl(r);c==="in-out"&&u.type!==gt?m.delayLeave=(b,S,_)=>{const C=xd(n,p);C[String(p.key)]=p,b[In]=()=>{S(),b[In]=void 0,delete g.delayedLeave,p=void 0},g.delayedLeave=()=>{_(),delete g.delayedLeave,p=void 0}}:p=void 0}else p&&(p=void 0);return r}}};function Ed(e){let t=e[0];if(e.length>1){for(const i of e)if(i.type!==gt){t=i;break}}return t}const Ad=Dv;function xd(e,t){const{leavingVNodes:i}=e;let n=i.get(t.type);return n||(n=Object.create(null),i.set(t.type,n)),n}function zs(e,t,i,n,s){const{appear:r,mode:a,persisted:c=!1,onBeforeEnter:u,onEnter:g,onAfterEnter:p,onEnterCancelled:m,onBeforeLeave:b,onLeave:S,onAfterLeave:_,onLeaveCancelled:C,onBeforeAppear:P,onAppear:M,onAfterAppear:j,onAppearCancelled:R}=t,k=String(e.key),H=xd(i,e),G=(D,V)=>{D&&Ri(D,n,9,V)},h=(D,V)=>{const re=V[1];G(D,V),he(D)?D.every(W=>W.length<=1)&&re():D.length<=1&&re()},te={mode:a,persisted:c,beforeEnter(D){let V=u;if(!i.isMounted)if(r)V=P||u;else return;D[In]&&D[In](!0);const re=H[k];re&&Mi(e,re)&&re.el[In]&&re.el[In](),G(V,[D])},enter(D){let V=g,re=p,W=m;if(!i.isMounted)if(r)V=M||g,re=j||p,W=R||m;else return;let J=!1;const ve=D[mo]=Ee=>{J||(J=!0,Ee?G(W,[D]):G(re,[D]),te.delayedLeave&&te.delayedLeave(),D[mo]=void 0)};V?h(V,[D,ve]):ve()},leave(D,V){const re=String(e.key);if(D[mo]&&D[mo](!0),i.isUnmounting)return V();G(b,[D]);let W=!1;const J=D[In]=ve=>{W||(W=!0,V(),ve?G(C,[D]):G(_,[D]),D[In]=void 0,H[re]===e&&delete H[re])};H[re]=e,S?h(S,[D,J]):J()},clone(D){const V=zs(D,t,i,n,s);return s&&s(V),V}};return te}function xl(e){if(Vr(e))return e=Ji(e),e.children=null,e}function vf(e){if(!Vr(e))return Sd(e.type)&&e.children?Ed(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:i}=e;if(i){if(t&16)return i[0];if(t&32&&Ae(i.default))return i.default()}}function vn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,vn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Oa(e,t=!1,i){let n=[],s=0;for(let r=0;r<e.length;r++){let a=e[r];const c=i==null?a.key:String(i)+String(a.key!=null?a.key:r);a.type===it?(a.patchFlag&128&&s++,n=n.concat(Oa(a.children,t,c))):(t||a.type!==gt)&&n.push(c!=null?Ji(a,{key:c}):a)}if(s>1)for(let r=0;r<n.length;r++)n[r].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function Vc(e,t){return Ae(e)?Be({name:e.name},t,{setup:e}):e}function Pv(){const e=Ii();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Kc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Lv(e){const t=Ii(),i=ud(null);if(t){const s=t.refs===je?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>i.value,set:r=>i.value=r})}return i}function Ds(e,t,i,n,s=!1){if(he(e)){e.forEach((_,C)=>Ds(_,t&&(he(t)?t[C]:t),i,n,s));return}if(Pn(n)&&!s){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ds(e,t,i,n.component.subTree);return}const r=n.shapeFlag&4?Yr(n.component):n.el,a=s?null:r,{i:c,r:u}=e,g=t&&t.r,p=c.refs===je?c.refs={}:c.refs,m=c.setupState,b=We(m),S=m===je?()=>!1:_=>Ge(b,_);if(g!=null&&g!==u&&(Ne(g)?(p[g]=null,S(g)&&(m[g]=null)):Ct(g)&&(g.value=null)),Ae(u))Js(u,c,12,[a,p]);else{const _=Ne(u),C=Ct(u);if(_||C){const P=()=>{if(e.f){const M=_?S(u)?m[u]:p[u]:u.value;s?he(M)&&Dc(M,r):he(M)?M.includes(r)||M.push(r):_?(p[u]=[r],S(u)&&(m[u]=p[u])):(u.value=[r],e.k&&(p[e.k]=u.value))}else _?(p[u]=a,S(u)&&(m[u]=a)):C&&(u.value=a,e.k&&(p[e.k]=a))};a?(P.id=-1,vt(P,i)):P()}}}let bf=!1;const Cs=()=>{bf||(console.error("Hydration completed but contains mismatches."),bf=!0)},Hv=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",zv=e=>e.namespaceURI.includes("MathML"),yo=e=>{if(e.nodeType===1){if(Hv(e))return"svg";if(zv(e))return"mathml"}},Rs=e=>e.nodeType===8;function Fv(e){const{mt:t,p:i,o:{patchProp:n,createText:s,nextSibling:r,parentNode:a,remove:c,insert:u,createComment:g}}=e,p=(R,k)=>{if(!k.hasChildNodes()){i(null,R,k),Go(),k._vnode=R;return}m(k.firstChild,R,null,null,null),Go(),k._vnode=R},m=(R,k,H,G,h,te=!1)=>{te=te||!!k.dynamicChildren;const D=Rs(R)&&R.data==="[",V=()=>C(R,k,H,G,h,D),{type:re,ref:W,shapeFlag:J,patchFlag:ve}=k;let Ee=R.nodeType;k.el=R,ve===-2&&(te=!1,k.dynamicChildren=null);let ge=null;switch(re){case Ln:Ee!==3?k.children===""?(u(k.el=s(""),a(R),R),ge=R):ge=V():(R.data!==k.children&&(Cs(),R.data=k.children),ge=r(R));break;case gt:j(R)?(ge=r(R),M(k.el=R.content.firstChild,R,H)):Ee!==8||D?ge=V():ge=r(R);break;case Zn:if(D&&(R=r(R),Ee=R.nodeType),Ee===1||Ee===3){ge=R;const _e=!k.children.length;for(let ye=0;ye<k.staticCount;ye++)_e&&(k.children+=ge.nodeType===1?ge.outerHTML:ge.data),ye===k.staticCount-1&&(k.anchor=ge),ge=r(ge);return D?r(ge):ge}else V();break;case it:D?ge=_(R,k,H,G,h,te):ge=V();break;default:if(J&1)(Ee!==1||k.type.toLowerCase()!==R.tagName.toLowerCase())&&!j(R)?ge=V():ge=b(R,k,H,G,h,te);else if(J&6){k.slotScopeIds=h;const _e=a(R);if(D?ge=P(R):Rs(R)&&R.data==="teleport start"?ge=P(R,R.data,"teleport end"):ge=r(R),t(k,_e,null,H,G,yo(_e),te),Pn(k)&&!k.type.__asyncResolved){let ye;D?(ye=ke(it),ye.anchor=ge?ge.previousSibling:_e.lastChild):ye=R.nodeType===3?Ot(""):ke("div"),ye.el=R,k.component.subTree=ye}}else J&64?Ee!==8?ge=V():ge=k.type.hydrate(R,k,H,G,h,te,e,S):J&128&&(ge=k.type.hydrate(R,k,H,G,yo(a(R)),h,te,e,m))}return W!=null&&Ds(W,null,G,k),ge},b=(R,k,H,G,h,te)=>{te=te||!!k.dynamicChildren;const{type:D,props:V,patchFlag:re,shapeFlag:W,dirs:J,transition:ve}=k,Ee=D==="input"||D==="option";if(Ee||re!==-1){J&&Ki(k,null,H,"created");let ge=!1;if(j(R)){ge=Qd(null,ve)&&H&&H.vnode.props&&H.vnode.props.appear;const ye=R.content.firstChild;if(ge){const Qe=ye.getAttribute("class");Qe&&(ye.$cls=Qe),ve.beforeEnter(ye)}M(ye,R,H),k.el=R=ye}if(W&16&&!(V&&(V.innerHTML||V.textContent))){let ye=S(R.firstChild,k,R,H,G,h,te);for(;ye;){vo(R,1)||Cs();const Qe=ye;ye=ye.nextSibling,c(Qe)}}else if(W&8){let ye=k.children;ye[0]===`
`&&(R.tagName==="PRE"||R.tagName==="TEXTAREA")&&(ye=ye.slice(1)),R.textContent!==ye&&(vo(R,0)||Cs(),R.textContent=k.children)}if(V){if(Ee||!te||re&48){const ye=R.tagName.includes("-");for(const Qe in V)(Ee&&(Qe.endsWith("value")||Qe==="indeterminate")||ls(Qe)&&!Mn(Qe)||Qe[0]==="."||ye)&&n(R,Qe,null,V[Qe],void 0,H)}else if(V.onClick)n(R,"onClick",null,V.onClick,void 0,H);else if(re&4&&Dn(V.style))for(const ye in V.style)V.style[ye]}let _e;(_e=V&&V.onVnodeBeforeMount)&&ti(_e,H,k),J&&Ki(k,null,H,"beforeMount"),((_e=V&&V.onVnodeMounted)||J||ge)&&ap(()=>{_e&&ti(_e,H,k),ge&&ve.enter(R),J&&Ki(k,null,H,"mounted")},G)}return R.nextSibling},S=(R,k,H,G,h,te,D)=>{D=D||!!k.dynamicChildren;const V=k.children,re=V.length;for(let W=0;W<re;W++){const J=D?V[W]:V[W]=ii(V[W]),ve=J.type===Ln;R?(ve&&!D&&W+1<re&&ii(V[W+1]).type===Ln&&(u(s(R.data.slice(J.children.length)),H,r(R)),R.data=J.children),R=m(R,J,G,h,te,D)):ve&&!J.children?u(J.el=s(""),H):(vo(H,1)||Cs(),i(null,J,H,null,G,h,yo(H),te))}return R},_=(R,k,H,G,h,te)=>{const{slotScopeIds:D}=k;D&&(h=h?h.concat(D):D);const V=a(R),re=S(r(R),k,V,H,G,h,te);return re&&Rs(re)&&re.data==="]"?r(k.anchor=re):(Cs(),u(k.anchor=g("]"),V,re),re)},C=(R,k,H,G,h,te)=>{if(vo(R.parentElement,1)||Cs(),k.el=null,te){const re=P(R);for(;;){const W=r(R);if(W&&W!==re)c(W);else break}}const D=r(R),V=a(R);return c(R),i(null,k,V,D,H,G,yo(V),h),H&&(H.vnode.el=k.el,La(H,k.el)),D},P=(R,k="[",H="]")=>{let G=0;for(;R;)if(R=r(R),R&&Rs(R)&&(R.data===k&&G++,R.data===H)){if(G===0)return r(R);G--}return R},M=(R,k,H)=>{const G=k.parentNode;G&&G.replaceChild(R,k);let h=H;for(;h;)h.vnode.el===k&&(h.vnode.el=h.subTree.el=R),h=h.parent},j=R=>R.nodeType===1&&R.tagName==="TEMPLATE";return[p,m]}const wf="data-allow-mismatch",jv={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function vo(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(wf);)e=e.parentElement;const i=e&&e.getAttribute(wf);if(i==null)return!1;if(i==="")return!0;{const n=i.split(",");return t===0&&n.includes("children")?!0:n.includes(jv[t])}}const Bv=ba().requestIdleCallback||(e=>setTimeout(e,1)),$v=ba().cancelIdleCallback||(e=>clearTimeout(e)),Uv=(e=1e4)=>t=>{const i=Bv(t,{timeout:e});return()=>$v(i)};function Wv(e){const{top:t,left:i,bottom:n,right:s}=e.getBoundingClientRect(),{innerHeight:r,innerWidth:a}=window;return(t>0&&t<r||n>0&&n<r)&&(i>0&&i<a||s>0&&s<a)}const qv=e=>(t,i)=>{const n=new IntersectionObserver(s=>{for(const r of s)if(r.isIntersecting){n.disconnect(),t();break}},e);return i(s=>{if(s instanceof Element){if(Wv(s))return t(),n.disconnect(),!1;n.observe(s)}}),()=>n.disconnect()},Vv=e=>t=>{if(e){const i=matchMedia(e);if(i.matches)t();else return i.addEventListener("change",t,{once:!0}),()=>i.removeEventListener("change",t)}},Kv=(e=[])=>(t,i)=>{Ne(e)&&(e=[e]);let n=!1;const s=a=>{n||(n=!0,r(),t(),a.target.dispatchEvent(new a.constructor(a.type,a)))},r=()=>{i(a=>{for(const c of e)a.removeEventListener(c,s)})};return i(a=>{for(const c of e)a.addEventListener(c,s,{once:!0})}),r};function Xv(e,t){if(Rs(e)&&e.data==="["){let i=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Rs(n))if(n.data==="]"){if(--i===0)break}else n.data==="["&&i++;n=n.nextSibling}}else t(e)}const Pn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Yv(e){Ae(e)&&(e={loader:e});const{loader:t,loadingComponent:i,errorComponent:n,delay:s=200,hydrate:r,timeout:a,suspensible:c=!0,onError:u}=e;let g=null,p,m=0;const b=()=>(m++,g=null,S()),S=()=>{let _;return g||(_=g=t().catch(C=>{if(C=C instanceof Error?C:new Error(String(C)),u)return new Promise((P,M)=>{u(C,()=>P(b()),()=>M(C),m+1)});throw C}).then(C=>_!==g&&g?g:(C&&(C.__esModule||C[Symbol.toStringTag]==="Module")&&(C=C.default),p=C,C)))};return Vc({name:"AsyncComponentWrapper",__asyncLoader:S,__asyncHydrate(_,C,P){const M=r?()=>{const R=r(()=>{P()},k=>Xv(_,k));R&&(C.bum||(C.bum=[])).push(R),(C.u||(C.u=[])).push(()=>!0)}:P;p?M():S().then(()=>!C.isUnmounted&&M())},get __asyncResolved(){return p},setup(){const _=St;if(Kc(_),p)return()=>Rl(p,_);const C=R=>{g=null,hs(R,_,13,!n)};if(c&&_.suspense||Fs)return S().then(R=>()=>Rl(R,_)).catch(R=>(C(R),()=>n?ke(n,{error:R}):null));const P=Sr(!1),M=Sr(),j=Sr(!!s);return s&&setTimeout(()=>{j.value=!1},s),a!=null&&setTimeout(()=>{if(!P.value&&!M.value){const R=new Error(`Async component timed out after ${a}ms.`);C(R),M.value=R}},a),S().then(()=>{P.value=!0,_.parent&&Vr(_.parent.vnode)&&_.parent.update()}).catch(R=>{C(R),M.value=R}),()=>{if(P.value&&p)return Rl(p,_);if(M.value&&n)return ke(n,{error:M.value});if(i&&!j.value)return ke(i)}}})}function Rl(e,t){const{ref:i,props:n,children:s,ce:r}=t.vnode,a=ke(e,n,s);return a.ref=i,a.ce=r,delete t.vnode.ce,a}const Vr=e=>e.type.__isKeepAlive,Gv={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const i=Ii(),n=i.ctx;if(!n.renderer)return()=>{const j=t.default&&t.default();return j&&j.length===1?j[0]:j};const s=new Map,r=new Set;let a=null;const c=i.suspense,{renderer:{p:u,m:g,um:p,o:{createElement:m}}}=n,b=m("div");n.activate=(j,R,k,H,G)=>{const h=j.component;g(j,R,k,0,c),u(h.vnode,j,R,k,h,c,H,j.slotScopeIds,G),vt(()=>{h.isDeactivated=!1,h.a&&Ns(h.a);const te=j.props&&j.props.onVnodeMounted;te&&ti(te,h.parent,j)},c)},n.deactivate=j=>{const R=j.component;Qo(R.m),Qo(R.a),g(j,b,null,1,c),vt(()=>{R.da&&Ns(R.da);const k=j.props&&j.props.onVnodeUnmounted;k&&ti(k,R.parent,j),R.isDeactivated=!0},c)};function S(j){Il(j),p(j,i,c,!0)}function _(j){s.forEach((R,k)=>{const H=lc(R.type);H&&!j(H)&&C(k)})}function C(j){const R=s.get(j);R&&(!a||!Mi(R,a))?S(R):a&&Il(a),s.delete(j),r.delete(j)}Ps(()=>[e.include,e.exclude],([j,R])=>{j&&_(k=>yr(j,k)),R&&_(k=>!yr(R,k))},{flush:"post",deep:!0});let P=null;const M=()=>{P!=null&&(Zo(i.subTree.type)?vt(()=>{s.set(P,bo(i.subTree))},i.subTree.suspense):s.set(P,bo(i.subTree)))};return Kr(M),Na(M),Ma(()=>{s.forEach(j=>{const{subTree:R,suspense:k}=i,H=bo(R);if(j.type===H.type&&j.key===H.key){Il(H);const G=H.component.da;G&&vt(G,k);return}S(j)})}),()=>{if(P=null,!t.default)return a=null;const j=t.default(),R=j[0];if(j.length>1)return a=null,j;if(!bn(R)||!(R.shapeFlag&4)&&!(R.shapeFlag&128))return a=null,R;let k=bo(R);if(k.type===gt)return a=null,k;const H=k.type,G=lc(Pn(k)?k.type.__asyncResolved||{}:H),{include:h,exclude:te,max:D}=e;if(h&&(!G||!yr(h,G))||te&&G&&yr(te,G))return k.shapeFlag&=-257,a=k,R;const V=k.key==null?H:k.key,re=s.get(V);return k.el&&(k=Ji(k),R.shapeFlag&128&&(R.ssContent=k)),P=V,re?(k.el=re.el,k.component=re.component,k.transition&&vn(k,k.transition),k.shapeFlag|=512,r.delete(V),r.add(V)):(r.add(V),D&&r.size>parseInt(D,10)&&C(r.values().next().value)),k.shapeFlag|=256,a=k,Zo(R.type)?R:k}}},Jv=Gv;function yr(e,t){return he(e)?e.some(i=>yr(i,t)):Ne(e)?e.split(",").includes(t):py(e)?(e.lastIndex=0,e.test(t)):!1}function Rd(e,t){Od(e,"a",t)}function Id(e,t){Od(e,"da",t)}function Od(e,t,i=St){const n=e.__wdc||(e.__wdc=()=>{let s=i;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(ka(t,n,i),i){let s=i.parent;for(;s&&s.parent;)Vr(s.parent.vnode)&&Qv(n,t,i,s),s=s.parent}}function Qv(e,t,i,n){const s=ka(t,e,n,!0);Da(()=>{Dc(n[t],s)},i)}function Il(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function bo(e){return e.shapeFlag&128?e.ssContent:e}function ka(e,t,i=St,n=!1){if(i){const s=i[e]||(i[e]=[]),r=t.__weh||(t.__weh=(...a)=>{gn();const c=ss(i),u=Ri(t,i,e,a);return c(),mn(),u});return n?s.unshift(r):s.push(r),r}}const wn=e=>(t,i=St)=>{(!Fs||e==="sp")&&ka(e,(...n)=>t(...n),i)},kd=wn("bm"),Kr=wn("m"),Xc=wn("bu"),Na=wn("u"),Ma=wn("bum"),Da=wn("um"),Nd=wn("sp"),Md=wn("rtg"),Dd=wn("rtc");function Pd(e,t=St){ka("ec",e,t)}const Yc="components",Zv="directives";function pt(e,t){return Gc(Yc,e,!0,t)||e}const Ld=Symbol.for("v-ndc");function Pr(e){return Ne(e)?Gc(Yc,e,!1)||e:e||Ld}function eb(e){return Gc(Zv,e)}function Gc(e,t,i=!0,n=!1){const s=_t||St;if(s){const r=s.type;if(e===Yc){const c=lc(r,!1);if(c&&(c===t||c===ot(t)||c===us(ot(t))))return r}const a=Sf(s[e]||r[e],t)||Sf(s.appContext[e],t);return!a&&n?r:a}}function Sf(e,t){return e&&(e[t]||e[ot(t)]||e[us(ot(t))])}function dn(e,t,i,n){let s;const r=i&&i[n],a=he(e);if(a||Ne(e)){const c=a&&Dn(e);let u=!1,g=!1;c&&(u=!gi(e),g=yn(e),e=_a(e)),s=new Array(e.length);for(let p=0,m=e.length;p<m;p++)s[p]=t(u?g?Ko(kt(e[p])):kt(e[p]):e[p],p,void 0,r&&r[p])}else if(typeof e=="number"){s=new Array(e);for(let c=0;c<e;c++)s[c]=t(c+1,c,void 0,r&&r[c])}else if(et(e))if(e[Symbol.iterator])s=Array.from(e,(c,u)=>t(c,u,void 0,r&&r[u]));else{const c=Object.keys(e);s=new Array(c.length);for(let u=0,g=c.length;u<g;u++){const p=c[u];s[u]=t(e[p],p,u,r&&r[u])}}else s=[];return i&&(i[n]=s),s}function tb(e,t){for(let i=0;i<t.length;i++){const n=t[i];if(he(n))for(let s=0;s<n.length;s++)e[n[s].name]=n[s].fn;else n&&(e[n.name]=n.key?(...s)=>{const r=n.fn(...s);return r&&(r.key=n.key),r}:n.fn)}return e}function Zi(e,t,i={},n,s){if(_t.ce||_t.parent&&Pn(_t.parent)&&_t.parent.ce)return t!=="default"&&(i.name=t),ie(),Ve(it,null,[ke("slot",i,n&&n())],64);let r=e[t];r&&r._c&&(r._d=!1),ie();const a=r&&Jc(r(i)),c=i.key||a&&a.key,u=Ve(it,{key:(c&&!li(c)?c:`_${t}`)+(!a&&n?"_fb":"")},a||(n?n():[]),a&&e._===1?64:-2);return!s&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),r&&r._c&&(r._d=!0),u}function Jc(e){return e.some(t=>bn(t)?!(t.type===gt||t.type===it&&!Jc(t.children)):!0)?e:null}function ib(e,t){const i={};for(const n in e)i[t&&/[A-Z]/.test(n)?`on:${n}`:ks(n)]=e[n];return i}const Jl=e=>e?dp(e)?Yr(e):Jl(e.parent):null,Cr=Be(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Jl(e.parent),$root:e=>Jl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Qc(e),$forceUpdate:e=>e.f||(e.f=()=>{Uc(e.update)}),$nextTick:e=>e.n||(e.n=Ra.bind(e.proxy)),$watch:e=>Db.bind(e)}),Ol=(e,t)=>e!==je&&!e.__isScriptSetup&&Ge(e,t),Ql={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:i,setupState:n,data:s,props:r,accessCache:a,type:c,appContext:u}=e;let g;if(t[0]!=="$"){const S=a[t];if(S!==void 0)switch(S){case 1:return n[t];case 2:return s[t];case 4:return i[t];case 3:return r[t]}else{if(Ol(n,t))return a[t]=1,n[t];if(s!==je&&Ge(s,t))return a[t]=2,s[t];if((g=e.propsOptions[0])&&Ge(g,t))return a[t]=3,r[t];if(i!==je&&Ge(i,t))return a[t]=4,i[t];Zl&&(a[t]=0)}}const p=Cr[t];let m,b;if(p)return t==="$attrs"&&Ft(e.attrs,"get",""),p(e);if((m=c.__cssModules)&&(m=m[t]))return m;if(i!==je&&Ge(i,t))return a[t]=4,i[t];if(b=u.config.globalProperties,Ge(b,t))return b[t]},set({_:e},t,i){const{data:n,setupState:s,ctx:r}=e;return Ol(s,t)?(s[t]=i,!0):n!==je&&Ge(n,t)?(n[t]=i,!0):Ge(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:n,appContext:s,propsOptions:r}},a){let c;return!!i[a]||e!==je&&Ge(e,a)||Ol(t,a)||(c=r[0])&&Ge(c,a)||Ge(n,a)||Ge(Cr,a)||Ge(s.config.globalProperties,a)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:Ge(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}},nb=Be({},Ql,{get(e,t){if(t!==Symbol.unscopables)return Ql.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Sy(t)}});function sb(){return null}function rb(){return null}function ob(e){}function ab(e){}function lb(){return null}function cb(){}function ub(e,t){return null}function fb(){return Hd().slots}function hb(){return Hd().attrs}function Hd(){const e=Ii();return e.setupContext||(e.setupContext=yp(e))}function Lr(e){return he(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function db(e,t){const i=Lr(e);for(const n in t){if(n.startsWith("__skip"))continue;let s=i[n];s?he(s)||Ae(s)?s=i[n]={type:s,default:t[n]}:s.default=t[n]:s===null&&(s=i[n]={default:t[n]}),s&&t[`__skip_${n}`]&&(s.skipFactory=!0)}return i}function pb(e,t){return!e||!t?e||t:he(e)&&he(t)?e.concat(t):Be({},Lr(e),Lr(t))}function gb(e,t){const i={};for(const n in e)t.includes(n)||Object.defineProperty(i,n,{enumerable:!0,get:()=>e[n]});return i}function mb(e){const t=Ii();let i=e();return rc(),Pc(i)&&(i=i.catch(n=>{throw ss(t),n})),[i,()=>ss(t)]}let Zl=!0;function yb(e){const t=Qc(e),i=e.proxy,n=e.ctx;Zl=!1,t.beforeCreate&&_f(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:a,watch:c,provide:u,inject:g,created:p,beforeMount:m,mounted:b,beforeUpdate:S,updated:_,activated:C,deactivated:P,beforeDestroy:M,beforeUnmount:j,destroyed:R,unmounted:k,render:H,renderTracked:G,renderTriggered:h,errorCaptured:te,serverPrefetch:D,expose:V,inheritAttrs:re,components:W,directives:J,filters:ve}=t;if(g&&vb(g,n,null),a)for(const _e in a){const ye=a[_e];Ae(ye)&&(n[_e]=ye.bind(i))}if(s){const _e=s.call(i,i);et(_e)&&(e.data=Ta(_e))}if(Zl=!0,r)for(const _e in r){const ye=r[_e],Qe=Ae(ye)?ye.bind(i,i):Ae(ye.get)?ye.get.bind(i,i):Dt,ui=!Ae(ye)&&Ae(ye.set)?ye.set.bind(i):Dt,Gt=vp({get:Qe,set:ui});Object.defineProperty(n,_e,{enumerable:!0,configurable:!0,get:()=>Gt.value,set:fi=>Gt.value=fi})}if(c)for(const _e in c)zd(c[_e],n,i,_e);if(u){const _e=Ae(u)?u.call(i):u;Reflect.ownKeys(_e).forEach(ye=>{jd(ye,_e[ye])})}p&&_f(p,e,"c");function ge(_e,ye){he(ye)?ye.forEach(Qe=>_e(Qe.bind(i))):ye&&_e(ye.bind(i))}if(ge(kd,m),ge(Kr,b),ge(Xc,S),ge(Na,_),ge(Rd,C),ge(Id,P),ge(Pd,te),ge(Dd,G),ge(Md,h),ge(Ma,j),ge(Da,k),ge(Nd,D),he(V))if(V.length){const _e=e.exposed||(e.exposed={});V.forEach(ye=>{Object.defineProperty(_e,ye,{get:()=>i[ye],set:Qe=>i[ye]=Qe})})}else e.exposed||(e.exposed={});H&&e.render===Dt&&(e.render=H),re!=null&&(e.inheritAttrs=re),W&&(e.components=W),J&&(e.directives=J),D&&Kc(e)}function vb(e,t,i=Dt){he(e)&&(e=ec(e));for(const n in e){const s=e[n];let r;et(s)?"default"in s?r=Tr(s.from||n,s.default,!0):r=Tr(s.from||n):r=Tr(s),Ct(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:a=>r.value=a}):t[n]=r}}function _f(e,t,i){Ri(he(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,i)}function zd(e,t,i,n){let s=n.includes(".")?np(i,n):()=>i[n];if(Ne(e)){const r=t[e];Ae(r)&&Ps(s,r)}else if(Ae(e))Ps(s,e.bind(i));else if(et(e))if(he(e))e.forEach(r=>zd(r,t,i,n));else{const r=Ae(e.handler)?e.handler.bind(i):t[e.handler];Ae(r)&&Ps(s,r,e)}}function Qc(e){const t=e.type,{mixins:i,extends:n}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:a}}=e.appContext,c=r.get(t);let u;return c?u=c:!s.length&&!i&&!n?u=t:(u={},s.length&&s.forEach(g=>Jo(u,g,a,!0)),Jo(u,t,a)),et(t)&&r.set(t,u),u}function Jo(e,t,i,n=!1){const{mixins:s,extends:r}=t;r&&Jo(e,r,i,!0),s&&s.forEach(a=>Jo(e,a,i,!0));for(const a in t)if(!(n&&a==="expose")){const c=bb[a]||i&&i[a];e[a]=c?c(e[a],t[a]):t[a]}return e}const bb={data:Cf,props:Tf,emits:Tf,methods:vr,computed:vr,beforeCreate:Vt,created:Vt,beforeMount:Vt,mounted:Vt,beforeUpdate:Vt,updated:Vt,beforeDestroy:Vt,beforeUnmount:Vt,destroyed:Vt,unmounted:Vt,activated:Vt,deactivated:Vt,errorCaptured:Vt,serverPrefetch:Vt,components:vr,directives:vr,watch:Sb,provide:Cf,inject:wb};function Cf(e,t){return t?e?function(){return Be(Ae(e)?e.call(this,this):e,Ae(t)?t.call(this,this):t)}:t:e}function wb(e,t){return vr(ec(e),ec(t))}function ec(e){if(he(e)){const t={};for(let i=0;i<e.length;i++)t[e[i]]=e[i];return t}return e}function Vt(e,t){return e?[...new Set([].concat(e,t))]:t}function vr(e,t){return e?Be(Object.create(null),e,t):t}function Tf(e,t){return e?he(e)&&he(t)?[...new Set([...e,...t])]:Be(Object.create(null),Lr(e),Lr(t??{})):t}function Sb(e,t){if(!e)return t;if(!t)return e;const i=Be(Object.create(null),e);for(const n in t)i[n]=Vt(e[n],t[n]);return i}function Fd(){return{app:null,config:{isNativeTag:mr,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let _b=0;function Cb(e,t){return function(n,s=null){Ae(n)||(n=Be({},n)),s!=null&&!et(s)&&(s=null);const r=Fd(),a=new WeakSet,c=[];let u=!1;const g=r.app={_uid:_b++,_component:n,_props:s,_container:null,_context:r,_instance:null,version:Sp,get config(){return r.config},set config(p){},use(p,...m){return a.has(p)||(p&&Ae(p.install)?(a.add(p),p.install(g,...m)):Ae(p)&&(a.add(p),p(g,...m))),g},mixin(p){return r.mixins.includes(p)||r.mixins.push(p),g},component(p,m){return m?(r.components[p]=m,g):r.components[p]},directive(p,m){return m?(r.directives[p]=m,g):r.directives[p]},mount(p,m,b){if(!u){const S=g._ceVNode||ke(n,s);return S.appContext=r,b===!0?b="svg":b===!1&&(b=void 0),m&&t?t(S,p):e(S,p,b),u=!0,g._container=p,p.__vue_app__=g,Yr(S.component)}},onUnmount(p){c.push(p)},unmount(){u&&(Ri(c,g._instance,16),e(null,g._container),delete g._container.__vue_app__)},provide(p,m){return r.provides[p]=m,g},runWithContext(p){const m=Qn;Qn=g;try{return p()}finally{Qn=m}}};return g}}let Qn=null;function jd(e,t){if(St){let i=St.provides;const n=St.parent&&St.parent.provides;n===i&&(i=St.provides=Object.create(n)),i[e]=t}}function Tr(e,t,i=!1){const n=St||_t;if(n||Qn){let s=Qn?Qn._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return i&&Ae(t)?t.call(n&&n.proxy):t}}function Tb(){return!!(St||_t||Qn)}const Bd={},$d=()=>Object.create(Bd),Ud=e=>Object.getPrototypeOf(e)===Bd;function Eb(e,t,i,n=!1){const s={},r=$d();e.propsDefaults=Object.create(null),Wd(e,t,s,r);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);i?e.props=n?s:ld(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function Ab(e,t,i,n){const{props:s,attrs:r,vnode:{patchFlag:a}}=e,c=We(s),[u]=e.propsOptions;let g=!1;if((n||a>0)&&!(a&16)){if(a&8){const p=e.vnode.dynamicProps;for(let m=0;m<p.length;m++){let b=p[m];if(Pa(e.emitsOptions,b))continue;const S=t[b];if(u)if(Ge(r,b))S!==r[b]&&(r[b]=S,g=!0);else{const _=ot(b);s[_]=tc(u,c,_,S,e,!1)}else S!==r[b]&&(r[b]=S,g=!0)}}}else{Wd(e,t,s,r)&&(g=!0);let p;for(const m in c)(!t||!Ge(t,m)&&((p=ni(m))===m||!Ge(t,p)))&&(u?i&&(i[m]!==void 0||i[p]!==void 0)&&(s[m]=tc(u,c,m,void 0,e,!0)):delete s[m]);if(r!==c)for(const m in r)(!t||!Ge(t,m))&&(delete r[m],g=!0)}g&&cn(e.attrs,"set","")}function Wd(e,t,i,n){const[s,r]=e.propsOptions;let a=!1,c;if(t)for(let u in t){if(Mn(u))continue;const g=t[u];let p;s&&Ge(s,p=ot(u))?!r||!r.includes(p)?i[p]=g:(c||(c={}))[p]=g:Pa(e.emitsOptions,u)||(!(u in n)||g!==n[u])&&(n[u]=g,a=!0)}if(r){const u=We(i),g=c||je;for(let p=0;p<r.length;p++){const m=r[p];i[m]=tc(s,u,m,g[m],e,!Ge(g,m))}}return a}function tc(e,t,i,n,s,r){const a=e[i];if(a!=null){const c=Ge(a,"default");if(c&&n===void 0){const u=a.default;if(a.type!==Function&&!a.skipFactory&&Ae(u)){const{propsDefaults:g}=s;if(i in g)n=g[i];else{const p=ss(s);n=g[i]=u.call(null,t),p()}}else n=u;s.ce&&s.ce._setProp(i,n)}a[0]&&(r&&!c?n=!1:a[1]&&(n===""||n===ni(i))&&(n=!0))}return n}const xb=new WeakMap;function qd(e,t,i=!1){const n=i?xb:t.propsCache,s=n.get(e);if(s)return s;const r=e.props,a={},c=[];let u=!1;if(!Ae(e)){const p=m=>{u=!0;const[b,S]=qd(m,t,!0);Be(a,b),S&&c.push(...S)};!i&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!r&&!u)return et(e)&&n.set(e,Is),Is;if(he(r))for(let p=0;p<r.length;p++){const m=ot(r[p]);Ef(m)&&(a[m]=je)}else if(r)for(const p in r){const m=ot(p);if(Ef(m)){const b=r[p],S=a[m]=he(b)||Ae(b)?{type:b}:Be({},b),_=S.type;let C=!1,P=!0;if(he(_))for(let M=0;M<_.length;++M){const j=_[M],R=Ae(j)&&j.name;if(R==="Boolean"){C=!0;break}else R==="String"&&(P=!1)}else C=Ae(_)&&_.name==="Boolean";S[0]=C,S[1]=P,(C||Ge(S,"default"))&&c.push(m)}}const g=[a,c];return et(e)&&n.set(e,g),g}function Ef(e){return e[0]!=="$"&&!Mn(e)}const Zc=e=>e[0]==="_"||e==="$stable",eu=e=>he(e)?e.map(ii):[ii(e)],Rb=(e,t,i)=>{if(t._n)return t;const n=ci((...s)=>eu(t(...s)),i);return n._c=!1,n},Vd=(e,t,i)=>{const n=e._ctx;for(const s in e){if(Zc(s))continue;const r=e[s];if(Ae(r))t[s]=Rb(s,r,n);else if(r!=null){const a=eu(r);t[s]=()=>a}}},Kd=(e,t)=>{const i=eu(t);e.slots.default=()=>i},Xd=(e,t,i)=>{for(const n in t)(i||!Zc(n))&&(e[n]=t[n])},Ib=(e,t,i)=>{const n=e.slots=$d();if(e.vnode.shapeFlag&32){const s=t.__;s&&Vl(n,"__",s,!0);const r=t._;r?(Xd(n,t,i),i&&Vl(n,"_",r,!0)):Vd(t,n)}else t&&Kd(e,t)},Ob=(e,t,i)=>{const{vnode:n,slots:s}=e;let r=!0,a=je;if(n.shapeFlag&32){const c=t._;c?i&&c===1?r=!1:Xd(s,t,i):(r=!t.$stable,Vd(t,s)),a=t}else t&&(Kd(e,t),a={default:1});if(r)for(const c in s)!Zc(c)&&a[c]==null&&delete s[c]},vt=ap;function Yd(e){return Jd(e)}function Gd(e){return Jd(e,Fv)}function Jd(e,t){const i=ba();i.__VUE__=!0;const{insert:n,remove:s,patchProp:r,createElement:a,createText:c,createComment:u,setText:g,setElementText:p,parentNode:m,nextSibling:b,setScopeId:S=Dt,insertStaticContent:_}=e,C=(A,O,q,ne=null,Z=null,Q=null,fe=void 0,ce=null,ae=!!O.dynamicChildren)=>{if(A===O)return;A&&!Mi(A,O)&&(ne=ps(A),fi(A,Z,Q,!0),A=null),O.patchFlag===-2&&(ae=!1,O.dynamicChildren=null);const{type:ee,ref:Se,shapeFlag:ue}=O;switch(ee){case Ln:P(A,O,q,ne);break;case gt:M(A,O,q,ne);break;case Zn:A==null&&j(O,q,ne,fe);break;case it:W(A,O,q,ne,Z,Q,fe,ce,ae);break;default:ue&1?H(A,O,q,ne,Z,Q,fe,ce,ae):ue&6?J(A,O,q,ne,Z,Q,fe,ce,ae):(ue&64||ue&128)&&ee.process(A,O,q,ne,Z,Q,fe,ce,ae,Et)}Se!=null&&Z?Ds(Se,A&&A.ref,Q,O||A,!O):Se==null&&A&&A.ref!=null&&Ds(A.ref,null,Q,A,!0)},P=(A,O,q,ne)=>{if(A==null)n(O.el=c(O.children),q,ne);else{const Z=O.el=A.el;O.children!==A.children&&g(Z,O.children)}},M=(A,O,q,ne)=>{A==null?n(O.el=u(O.children||""),q,ne):O.el=A.el},j=(A,O,q,ne)=>{[A.el,A.anchor]=_(A.children,O,q,ne,A.el,A.anchor)},R=({el:A,anchor:O},q,ne)=>{let Z;for(;A&&A!==O;)Z=b(A),n(A,q,ne),A=Z;n(O,q,ne)},k=({el:A,anchor:O})=>{let q;for(;A&&A!==O;)q=b(A),s(A),A=q;s(O)},H=(A,O,q,ne,Z,Q,fe,ce,ae)=>{O.type==="svg"?fe="svg":O.type==="math"&&(fe="mathml"),A==null?G(O,q,ne,Z,Q,fe,ce,ae):D(A,O,Z,Q,fe,ce,ae)},G=(A,O,q,ne,Z,Q,fe,ce)=>{let ae,ee;const{props:Se,shapeFlag:ue,transition:Y,dirs:be}=A;if(ae=A.el=a(A.type,Q,Se&&Se.is,Se),ue&8?p(ae,A.children):ue&16&&te(A.children,ae,null,ne,Z,kl(A,Q),fe,ce),be&&Ki(A,null,ne,"created"),h(ae,A,A.scopeId,fe,ne),Se){for(const tt in Se)tt!=="value"&&!Mn(tt)&&r(ae,tt,null,Se[tt],Q,ne);"value"in Se&&r(ae,"value",null,Se.value,Q),(ee=Se.onVnodeBeforeMount)&&ti(ee,ne,A)}be&&Ki(A,null,ne,"beforeMount");const ze=Qd(Z,Y);ze&&Y.beforeEnter(ae),n(ae,O,q),((ee=Se&&Se.onVnodeMounted)||ze||be)&&vt(()=>{ee&&ti(ee,ne,A),ze&&Y.enter(ae),be&&Ki(A,null,ne,"mounted")},Z)},h=(A,O,q,ne,Z)=>{if(q&&S(A,q),ne)for(let Q=0;Q<ne.length;Q++)S(A,ne[Q]);if(Z){let Q=Z.subTree;if(O===Q||Zo(Q.type)&&(Q.ssContent===O||Q.ssFallback===O)){const fe=Z.vnode;h(A,fe,fe.scopeId,fe.slotScopeIds,Z.parent)}}},te=(A,O,q,ne,Z,Q,fe,ce,ae=0)=>{for(let ee=ae;ee<A.length;ee++){const Se=A[ee]=ce?On(A[ee]):ii(A[ee]);C(null,Se,O,q,ne,Z,Q,fe,ce)}},D=(A,O,q,ne,Z,Q,fe)=>{const ce=O.el=A.el;let{patchFlag:ae,dynamicChildren:ee,dirs:Se}=O;ae|=A.patchFlag&16;const ue=A.props||je,Y=O.props||je;let be;if(q&&qn(q,!1),(be=Y.onVnodeBeforeUpdate)&&ti(be,q,O,A),Se&&Ki(O,A,q,"beforeUpdate"),q&&qn(q,!0),(ue.innerHTML&&Y.innerHTML==null||ue.textContent&&Y.textContent==null)&&p(ce,""),ee?V(A.dynamicChildren,ee,ce,q,ne,kl(O,Z),Q):fe||ye(A,O,ce,null,q,ne,kl(O,Z),Q,!1),ae>0){if(ae&16)re(ce,ue,Y,q,Z);else if(ae&2&&ue.class!==Y.class&&r(ce,"class",null,Y.class,Z),ae&4&&r(ce,"style",ue.style,Y.style,Z),ae&8){const ze=O.dynamicProps;for(let tt=0;tt<ze.length;tt++){const Ye=ze[tt],At=ue[Ye],mt=Y[Ye];(mt!==At||Ye==="value")&&r(ce,Ye,At,mt,Z,q)}}ae&1&&A.children!==O.children&&p(ce,O.children)}else!fe&&ee==null&&re(ce,ue,Y,q,Z);((be=Y.onVnodeUpdated)||Se)&&vt(()=>{be&&ti(be,q,O,A),Se&&Ki(O,A,q,"updated")},ne)},V=(A,O,q,ne,Z,Q,fe)=>{for(let ce=0;ce<O.length;ce++){const ae=A[ce],ee=O[ce],Se=ae.el&&(ae.type===it||!Mi(ae,ee)||ae.shapeFlag&198)?m(ae.el):q;C(ae,ee,Se,null,ne,Z,Q,fe,!0)}},re=(A,O,q,ne,Z)=>{if(O!==q){if(O!==je)for(const Q in O)!Mn(Q)&&!(Q in q)&&r(A,Q,O[Q],null,Z,ne);for(const Q in q){if(Mn(Q))continue;const fe=q[Q],ce=O[Q];fe!==ce&&Q!=="value"&&r(A,Q,ce,fe,Z,ne)}"value"in q&&r(A,"value",O.value,q.value,Z)}},W=(A,O,q,ne,Z,Q,fe,ce,ae)=>{const ee=O.el=A?A.el:c(""),Se=O.anchor=A?A.anchor:c("");let{patchFlag:ue,dynamicChildren:Y,slotScopeIds:be}=O;be&&(ce=ce?ce.concat(be):be),A==null?(n(ee,q,ne),n(Se,q,ne),te(O.children||[],q,Se,Z,Q,fe,ce,ae)):ue>0&&ue&64&&Y&&A.dynamicChildren?(V(A.dynamicChildren,Y,q,Z,Q,fe,ce),(O.key!=null||Z&&O===Z.subTree)&&tu(A,O,!0)):ye(A,O,q,Se,Z,Q,fe,ce,ae)},J=(A,O,q,ne,Z,Q,fe,ce,ae)=>{O.slotScopeIds=ce,A==null?O.shapeFlag&512?Z.ctx.activate(O,q,ne,fe,ae):ve(O,q,ne,Z,Q,fe,ae):Ee(A,O,ae)},ve=(A,O,q,ne,Z,Q,fe)=>{const ce=A.component=hp(A,ne,Z);if(Vr(A)&&(ce.ctx.renderer=Et),pp(ce,!1,fe),ce.asyncDep){if(Z&&Z.registerDep(ce,ge,fe),!A.el){const ae=ce.subTree=ke(gt);M(null,ae,O,q)}}else ge(ce,A,O,q,Z,Q,fe)},Ee=(A,O,q)=>{const ne=O.component=A.component;if(jb(A,O,q))if(ne.asyncDep&&!ne.asyncResolved){_e(ne,O,q);return}else ne.next=O,ne.update();else O.el=A.el,ne.vnode=O},ge=(A,O,q,ne,Z,Q,fe)=>{const ce=()=>{if(A.isMounted){let{next:ue,bu:Y,u:be,parent:ze,vnode:tt}=A;{const ct=Zd(A);if(ct){ue&&(ue.el=tt.el,_e(A,ue,fe)),ct.asyncDep.then(()=>{A.isUnmounted||ce()});return}}let Ye=ue,At;qn(A,!1),ue?(ue.el=tt.el,_e(A,ue,fe)):ue=tt,Y&&Ns(Y),(At=ue.props&&ue.props.onVnodeBeforeUpdate)&&ti(At,ze,ue,tt),qn(A,!0);const mt=ko(A),xt=A.subTree;A.subTree=mt,C(xt,mt,m(xt.el),ps(xt),A,Z,Q),ue.el=mt.el,Ye===null&&La(A,mt.el),be&&vt(be,Z),(At=ue.props&&ue.props.onVnodeUpdated)&&vt(()=>ti(At,ze,ue,tt),Z)}else{let ue;const{el:Y,props:be}=O,{bm:ze,m:tt,parent:Ye,root:At,type:mt}=A,xt=Pn(O);if(qn(A,!1),ze&&Ns(ze),!xt&&(ue=be&&be.onVnodeBeforeMount)&&ti(ue,Ye,O),qn(A,!0),Y&&zi){const ct=()=>{A.subTree=ko(A),zi(Y,A.subTree,A,Z,null)};xt&&mt.__asyncHydrate?mt.__asyncHydrate(Y,A,ct):ct()}else{At.ce&&At.ce._def.shadowRoot!==!1&&At.ce._injectChildStyle(mt);const ct=A.subTree=ko(A);C(null,ct,q,ne,A,Z,Q),O.el=ct.el}if(tt&&vt(tt,Z),!xt&&(ue=be&&be.onVnodeMounted)){const ct=O;vt(()=>ti(ue,Ye,ct),Z)}(O.shapeFlag&256||Ye&&Pn(Ye.vnode)&&Ye.vnode.shapeFlag&256)&&A.a&&vt(A.a,Z),A.isMounted=!0,O=q=ne=null}};A.scope.on();const ae=A.effect=new Ir(ce);A.scope.off();const ee=A.update=ae.run.bind(ae),Se=A.job=ae.runIfDirty.bind(ae);Se.i=A,Se.id=A.uid,ae.scheduler=()=>Uc(Se),qn(A,!0),ee()},_e=(A,O,q)=>{O.component=A;const ne=A.vnode.props;A.vnode=O,A.next=null,Ab(A,O.props,ne,q),Ob(A,O.children,q),gn(),pf(A),mn()},ye=(A,O,q,ne,Z,Q,fe,ce,ae=!1)=>{const ee=A&&A.children,Se=A?A.shapeFlag:0,ue=O.children,{patchFlag:Y,shapeFlag:be}=O;if(Y>0){if(Y&128){ui(ee,ue,q,ne,Z,Q,fe,ce,ae);return}else if(Y&256){Qe(ee,ue,q,ne,Z,Q,fe,ce,ae);return}}be&8?(Se&16&&jn(ee,Z,Q),ue!==ee&&p(q,ue)):Se&16?be&16?ui(ee,ue,q,ne,Z,Q,fe,ce,ae):jn(ee,Z,Q,!0):(Se&8&&p(q,""),be&16&&te(ue,q,ne,Z,Q,fe,ce,ae))},Qe=(A,O,q,ne,Z,Q,fe,ce,ae)=>{A=A||Is,O=O||Is;const ee=A.length,Se=O.length,ue=Math.min(ee,Se);let Y;for(Y=0;Y<ue;Y++){const be=O[Y]=ae?On(O[Y]):ii(O[Y]);C(A[Y],be,q,null,Z,Q,fe,ce,ae)}ee>Se?jn(A,Z,Q,!0,!1,ue):te(O,q,ne,Z,Q,fe,ce,ae,ue)},ui=(A,O,q,ne,Z,Q,fe,ce,ae)=>{let ee=0;const Se=O.length;let ue=A.length-1,Y=Se-1;for(;ee<=ue&&ee<=Y;){const be=A[ee],ze=O[ee]=ae?On(O[ee]):ii(O[ee]);if(Mi(be,ze))C(be,ze,q,null,Z,Q,fe,ce,ae);else break;ee++}for(;ee<=ue&&ee<=Y;){const be=A[ue],ze=O[Y]=ae?On(O[Y]):ii(O[Y]);if(Mi(be,ze))C(be,ze,q,null,Z,Q,fe,ce,ae);else break;ue--,Y--}if(ee>ue){if(ee<=Y){const be=Y+1,ze=be<Se?O[be].el:ne;for(;ee<=Y;)C(null,O[ee]=ae?On(O[ee]):ii(O[ee]),q,ze,Z,Q,fe,ce,ae),ee++}}else if(ee>Y)for(;ee<=ue;)fi(A[ee],Z,Q,!0),ee++;else{const be=ee,ze=ee,tt=new Map;for(ee=ze;ee<=Y;ee++){const Ut=O[ee]=ae?On(O[ee]):ii(O[ee]);Ut.key!=null&&tt.set(Ut.key,ee)}let Ye,At=0;const mt=Y-ze+1;let xt=!1,ct=0;const hi=new Array(mt);for(ee=0;ee<mt;ee++)hi[ee]=0;for(ee=be;ee<=ue;ee++){const Ut=A[ee];if(At>=mt){fi(Ut,Z,Q,!0);continue}let Wt;if(Ut.key!=null)Wt=tt.get(Ut.key);else for(Ye=ze;Ye<=Y;Ye++)if(hi[Ye-ze]===0&&Mi(Ut,O[Ye])){Wt=Ye;break}Wt===void 0?fi(Ut,Z,Q,!0):(hi[Wt-ze]=ee+1,Wt>=ct?ct=Wt:xt=!0,C(Ut,O[Wt],q,null,Z,Q,fe,ce,ae),At++)}const en=xt?kb(hi):Is;for(Ye=en.length-1,ee=mt-1;ee>=0;ee--){const Ut=ze+ee,Wt=O[Ut],nr=Ut+1<Se?O[Ut+1].el:ne;hi[ee]===0?C(null,Wt,q,nr,Z,Q,fe,ce,ae):xt&&(Ye<0||ee!==en[Ye]?Gt(Wt,q,nr,2):Ye--)}}},Gt=(A,O,q,ne,Z=null)=>{const{el:Q,type:fe,transition:ce,children:ae,shapeFlag:ee}=A;if(ee&6){Gt(A.component.subTree,O,q,ne);return}if(ee&128){A.suspense.move(O,q,ne);return}if(ee&64){fe.move(A,O,q,Et);return}if(fe===it){n(Q,O,q);for(let ue=0;ue<ae.length;ue++)Gt(ae[ue],O,q,ne);n(A.anchor,O,q);return}if(fe===Zn){R(A,O,q);return}if(ne!==2&&ee&1&&ce)if(ne===0)ce.beforeEnter(Q),n(Q,O,q),vt(()=>ce.enter(Q),Z);else{const{leave:ue,delayLeave:Y,afterLeave:be}=ce,ze=()=>{A.ctx.isUnmounted?s(Q):n(Q,O,q)},tt=()=>{ue(Q,()=>{ze(),be&&be()})};Y?Y(Q,ze,tt):tt()}else n(Q,O,q)},fi=(A,O,q,ne=!1,Z=!1)=>{const{type:Q,props:fe,ref:ce,children:ae,dynamicChildren:ee,shapeFlag:Se,patchFlag:ue,dirs:Y,cacheIndex:be}=A;if(ue===-2&&(Z=!1),ce!=null&&(gn(),Ds(ce,null,q,A,!0),mn()),be!=null&&(O.renderCache[be]=void 0),Se&256){O.ctx.deactivate(A);return}const ze=Se&1&&Y,tt=!Pn(A);let Ye;if(tt&&(Ye=fe&&fe.onVnodeBeforeUnmount)&&ti(Ye,O,A),Se&6)tl(A.component,q,ne);else{if(Se&128){A.suspense.unmount(q,ne);return}ze&&Ki(A,null,O,"beforeUnmount"),Se&64?A.type.remove(A,O,q,Et,ne):ee&&!ee.hasOnce&&(Q!==it||ue>0&&ue&64)?jn(ee,O,q,!1,!0):(Q===it&&ue&384||!Z&&Se&16)&&jn(ae,O,q),ne&&ds(A)}(tt&&(Ye=fe&&fe.onVnodeUnmounted)||ze)&&vt(()=>{Ye&&ti(Ye,O,A),ze&&Ki(A,null,O,"unmounted")},q)},ds=A=>{const{type:O,el:q,anchor:ne,transition:Z}=A;if(O===it){to(q,ne);return}if(O===Zn){k(A);return}const Q=()=>{s(q),Z&&!Z.persisted&&Z.afterLeave&&Z.afterLeave()};if(A.shapeFlag&1&&Z&&!Z.persisted){const{leave:fe,delayLeave:ce}=Z,ae=()=>fe(q,Q);ce?ce(A.el,Q,ae):ae()}else Q()},to=(A,O)=>{let q;for(;A!==O;)q=b(A),s(A),A=q;s(O)},tl=(A,O,q)=>{const{bum:ne,scope:Z,job:Q,subTree:fe,um:ce,m:ae,a:ee,parent:Se,slots:{__:ue}}=A;Qo(ae),Qo(ee),ne&&Ns(ne),Se&&he(ue)&&ue.forEach(Y=>{Se.renderCache[Y]=void 0}),Z.stop(),Q&&(Q.flags|=8,fi(fe,A,O,q)),ce&&vt(ce,O),vt(()=>{A.isUnmounted=!0},O),O&&O.pendingBranch&&!O.isUnmounted&&A.asyncDep&&!A.asyncResolved&&A.suspenseId===O.pendingId&&(O.deps--,O.deps===0&&O.resolve())},jn=(A,O,q,ne=!1,Z=!1,Q=0)=>{for(let fe=Q;fe<A.length;fe++)fi(A[fe],O,q,ne,Z)},ps=A=>{if(A.shapeFlag&6)return ps(A.component.subTree);if(A.shapeFlag&128)return A.suspense.next();const O=b(A.anchor||A.el),q=O&&O[wd];return q?b(q):O};let er=!1;const tr=(A,O,q)=>{A==null?O._vnode&&fi(O._vnode,null,null,!0):C(O._vnode||null,A,O,null,null,null,q),O._vnode=A,er||(er=!0,pf(),Go(),er=!1)},Et={p:C,um:fi,m:Gt,r:ds,mt:ve,mc:te,pc:ye,pbc:V,n:ps,o:e};let ir,zi;return t&&([ir,zi]=t(Et)),{render:tr,hydrate:ir,createApp:Cb(tr,ir)}}function kl({type:e,props:t},i){return i==="svg"&&e==="foreignObject"||i==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function qn({effect:e,job:t},i){i?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Qd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function tu(e,t,i=!1){const n=e.children,s=t.children;if(he(n)&&he(s))for(let r=0;r<n.length;r++){const a=n[r];let c=s[r];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=s[r]=On(s[r]),c.el=a.el),!i&&c.patchFlag!==-2&&tu(a,c)),c.type===Ln&&(c.el=a.el),c.type===gt&&!c.el&&(c.el=a.el)}}function kb(e){const t=e.slice(),i=[0];let n,s,r,a,c;const u=e.length;for(n=0;n<u;n++){const g=e[n];if(g!==0){if(s=i[i.length-1],e[s]<g){t[n]=s,i.push(n);continue}for(r=0,a=i.length-1;r<a;)c=r+a>>1,e[i[c]]<g?r=c+1:a=c;g<e[i[r]]&&(r>0&&(t[n]=i[r-1]),i[r]=n)}}for(r=i.length,a=i[r-1];r-- >0;)i[r]=a,a=t[a];return i}function Zd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zd(t)}function Qo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const ep=Symbol.for("v-scx"),tp=()=>Tr(ep);function Nb(e,t){return Xr(e,null,t)}function Mb(e,t){return Xr(e,null,{flush:"post"})}function ip(e,t){return Xr(e,null,{flush:"sync"})}function Ps(e,t,i){return Xr(e,t,i)}function Xr(e,t,i=je){const{immediate:n,deep:s,flush:r,once:a}=i,c=Be({},i),u=t&&n||!t&&r!=="post";let g;if(Fs){if(r==="sync"){const S=tp();g=S.__watcherHandles||(S.__watcherHandles=[])}else if(!u){const S=()=>{};return S.stop=Dt,S.resume=Dt,S.pause=Dt,S}}const p=St;c.call=(S,_,C)=>Ri(S,p,_,C);let m=!1;r==="post"?c.scheduler=S=>{vt(S,p&&p.suspense)}:r!=="sync"&&(m=!0,c.scheduler=(S,_)=>{_?S():Uc(S)}),c.augmentJob=S=>{t&&(S.flags|=4),m&&(S.flags|=2,p&&(S.id=p.uid,S.i=p))};const b=Sv(e,t,c);return Fs&&(g?g.push(b):u&&b()),b}function Db(e,t,i){const n=this.proxy,s=Ne(e)?e.includes(".")?np(n,e):()=>n[e]:e.bind(n,n);let r;Ae(t)?r=t:(r=t.handler,i=t);const a=ss(this),c=Xr(s,r.bind(n),i);return a(),c}function np(e,t){const i=t.split(".");return()=>{let n=e;for(let s=0;s<i.length&&n;s++)n=n[i[s]];return n}}function Pb(e,t,i=je){const n=Ii(),s=ot(t),r=ni(t),a=sp(e,s),c=hd((u,g)=>{let p,m=je,b;return ip(()=>{const S=e[s];Kt(p,S)&&(p=S,g())}),{get(){return u(),i.get?i.get(p):p},set(S){const _=i.set?i.set(S):S;if(!Kt(_,p)&&!(m!==je&&Kt(S,m)))return;const C=n.vnode.props;C&&(t in C||s in C||r in C)&&(`onUpdate:${t}`in C||`onUpdate:${s}`in C||`onUpdate:${r}`in C)||(p=S,g()),n.emit(`update:${t}`,_),Kt(S,_)&&Kt(S,m)&&!Kt(_,b)&&g(),m=S,b=_}}});return c[Symbol.iterator]=()=>{let u=0;return{next(){return u<2?{value:u++?a||je:c,done:!1}:{done:!0}}}},c}const sp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ot(t)}Modifiers`]||e[`${ni(t)}Modifiers`];function Lb(e,t,...i){if(e.isUnmounted)return;const n=e.vnode.props||je;let s=i;const r=t.startsWith("update:"),a=r&&sp(n,t.slice(7));a&&(a.trim&&(s=i.map(p=>Ne(p)?p.trim():p)),a.number&&(s=i.map(Wo)));let c,u=n[c=ks(t)]||n[c=ks(ot(t))];!u&&r&&(u=n[c=ks(ni(t))]),u&&Ri(u,e,6,s);const g=n[c+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ri(g,e,6,s)}}function rp(e,t,i=!1){const n=t.emitsCache,s=n.get(e);if(s!==void 0)return s;const r=e.emits;let a={},c=!1;if(!Ae(e)){const u=g=>{const p=rp(g,t,!0);p&&(c=!0,Be(a,p))};!i&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!c?(et(e)&&n.set(e,null),null):(he(r)?r.forEach(u=>a[u]=null):Be(a,r),et(e)&&n.set(e,a),a)}function Pa(e,t){return!e||!ls(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ge(e,t[0].toLowerCase()+t.slice(1))||Ge(e,ni(t))||Ge(e,t))}function ko(e){const{type:t,vnode:i,proxy:n,withProxy:s,propsOptions:[r],slots:a,attrs:c,emit:u,render:g,renderCache:p,props:m,data:b,setupState:S,ctx:_,inheritAttrs:C}=e,P=Dr(e);let M,j;try{if(i.shapeFlag&4){const k=s||n,H=k;M=ii(g.call(H,k,p,m,S,b,_)),j=c}else{const k=t;M=ii(k.length>1?k(m,{attrs:c,slots:a,emit:u}):k(m,null)),j=t.props?c:zb(c)}}catch(k){Er.length=0,hs(k,e,1),M=ke(gt)}let R=M;if(j&&C!==!1){const k=Object.keys(j),{shapeFlag:H}=R;k.length&&H&7&&(r&&k.some(Mc)&&(j=Fb(j,r)),R=Ji(R,j,!1,!0))}return i.dirs&&(R=Ji(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(i.dirs):i.dirs),i.transition&&vn(R,i.transition),M=R,Dr(P),M}function Hb(e,t=!0){let i;for(let n=0;n<e.length;n++){const s=e[n];if(bn(s)){if(s.type!==gt||s.children==="v-if"){if(i)return;i=s}}else return}return i}const zb=e=>{let t;for(const i in e)(i==="class"||i==="style"||ls(i))&&((t||(t={}))[i]=e[i]);return t},Fb=(e,t)=>{const i={};for(const n in e)(!Mc(n)||!(n.slice(9)in t))&&(i[n]=e[n]);return i};function jb(e,t,i){const{props:n,children:s,component:r}=e,{props:a,children:c,patchFlag:u}=t,g=r.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&u>=0){if(u&1024)return!0;if(u&16)return n?Af(n,a,g):!!a;if(u&8){const p=t.dynamicProps;for(let m=0;m<p.length;m++){const b=p[m];if(a[b]!==n[b]&&!Pa(g,b))return!0}}}else return(s||c)&&(!c||!c.$stable)?!0:n===a?!1:n?a?Af(n,a,g):!0:!!a;return!1}function Af(e,t,i){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let s=0;s<n.length;s++){const r=n[s];if(t[r]!==e[r]&&!Pa(i,r))return!0}return!1}function La({vnode:e,parent:t},i){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=i,t=t.parent;else break}}const Zo=e=>e.__isSuspense;let ic=0;const Bb={name:"Suspense",__isSuspense:!0,process(e,t,i,n,s,r,a,c,u,g){if(e==null)Ub(t,i,n,s,r,a,c,u,g);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Wb(e,t,i,n,s,a,c,u,g)}},hydrate:qb,normalize:Vb},$b=Bb;function Hr(e,t){const i=e.props&&e.props[t];Ae(i)&&i()}function Ub(e,t,i,n,s,r,a,c,u){const{p:g,o:{createElement:p}}=u,m=p("div"),b=e.suspense=op(e,s,n,t,m,i,r,a,c,u);g(null,b.pendingBranch=e.ssContent,m,null,n,b,r,a),b.deps>0?(Hr(e,"onPending"),Hr(e,"onFallback"),g(null,e.ssFallback,t,i,n,null,r,a),Ls(b,e.ssFallback)):b.resolve(!1,!0)}function Wb(e,t,i,n,s,r,a,c,{p:u,um:g,o:{createElement:p}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,S=t.ssFallback,{activeBranch:_,pendingBranch:C,isInFallback:P,isHydrating:M}=m;if(C)m.pendingBranch=b,Mi(b,C)?(u(C,b,m.hiddenContainer,null,s,m,r,a,c),m.deps<=0?m.resolve():P&&(M||(u(_,S,i,n,s,null,r,a,c),Ls(m,S)))):(m.pendingId=ic++,M?(m.isHydrating=!1,m.activeBranch=C):g(C,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=p("div"),P?(u(null,b,m.hiddenContainer,null,s,m,r,a,c),m.deps<=0?m.resolve():(u(_,S,i,n,s,null,r,a,c),Ls(m,S))):_&&Mi(b,_)?(u(_,b,i,n,s,m,r,a,c),m.resolve(!0)):(u(null,b,m.hiddenContainer,null,s,m,r,a,c),m.deps<=0&&m.resolve()));else if(_&&Mi(b,_))u(_,b,i,n,s,m,r,a,c),Ls(m,b);else if(Hr(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=ic++,u(null,b,m.hiddenContainer,null,s,m,r,a,c),m.deps<=0)m.resolve();else{const{timeout:j,pendingId:R}=m;j>0?setTimeout(()=>{m.pendingId===R&&m.fallback(S)},j):j===0&&m.fallback(S)}}function op(e,t,i,n,s,r,a,c,u,g,p=!1){const{p:m,m:b,um:S,n:_,o:{parentNode:C,remove:P}}=g;let M;const j=Kb(e);j&&t&&t.pendingBranch&&(M=t.pendingId,t.deps++);const R=e.props?qo(e.props.timeout):void 0,k=r,H={vnode:e,parent:t,parentComponent:i,namespace:a,container:n,hiddenContainer:s,deps:0,pendingId:ic++,timeout:typeof R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(G=!1,h=!1){const{vnode:te,activeBranch:D,pendingBranch:V,pendingId:re,effects:W,parentComponent:J,container:ve}=H;let Ee=!1;H.isHydrating?H.isHydrating=!1:G||(Ee=D&&V.transition&&V.transition.mode==="out-in",Ee&&(D.transition.afterLeave=()=>{re===H.pendingId&&(b(V,ve,r===k?_(D):r,0),Nr(W))}),D&&(C(D.el)===ve&&(r=_(D)),S(D,J,H,!0)),Ee||b(V,ve,r,0)),Ls(H,V),H.pendingBranch=null,H.isInFallback=!1;let ge=H.parent,_e=!1;for(;ge;){if(ge.pendingBranch){ge.effects.push(...W),_e=!0;break}ge=ge.parent}!_e&&!Ee&&Nr(W),H.effects=[],j&&t&&t.pendingBranch&&M===t.pendingId&&(t.deps--,t.deps===0&&!h&&t.resolve()),Hr(te,"onResolve")},fallback(G){if(!H.pendingBranch)return;const{vnode:h,activeBranch:te,parentComponent:D,container:V,namespace:re}=H;Hr(h,"onFallback");const W=_(te),J=()=>{H.isInFallback&&(m(null,G,V,W,D,null,re,c,u),Ls(H,G))},ve=G.transition&&G.transition.mode==="out-in";ve&&(te.transition.afterLeave=J),H.isInFallback=!0,S(te,D,null,!0),ve||J()},move(G,h,te){H.activeBranch&&b(H.activeBranch,G,h,te),H.container=G},next(){return H.activeBranch&&_(H.activeBranch)},registerDep(G,h,te){const D=!!H.pendingBranch;D&&H.deps++;const V=G.vnode.el;G.asyncDep.catch(re=>{hs(re,G,0)}).then(re=>{if(G.isUnmounted||H.isUnmounted||H.pendingId!==G.suspenseId)return;G.asyncResolved=!0;const{vnode:W}=G;oc(G,re,!1),V&&(W.el=V);const J=!V&&G.subTree.el;h(G,W,C(V||G.subTree.el),V?null:_(G.subTree),H,a,te),J&&P(J),La(G,W.el),D&&--H.deps===0&&H.resolve()})},unmount(G,h){H.isUnmounted=!0,H.activeBranch&&S(H.activeBranch,i,G,h),H.pendingBranch&&S(H.pendingBranch,i,G,h)}};return H}function qb(e,t,i,n,s,r,a,c,u){const g=t.suspense=op(t,n,i,e.parentNode,document.createElement("div"),null,s,r,a,c,!0),p=u(e,g.pendingBranch=t.ssContent,i,g,r,a);return g.deps===0&&g.resolve(!1,!0),p}function Vb(e){const{shapeFlag:t,children:i}=e,n=t&32;e.ssContent=xf(n?i.default:i),e.ssFallback=n?xf(i.fallback):ke(gt)}function xf(e){let t;if(Ae(e)){const i=ns&&e._c;i&&(e._d=!1,ie()),e=e(),i&&(e._d=!0,t=Bt,lp())}return he(e)&&(e=Hb(e)),e=ii(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(i=>i!==e)),e}function ap(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):Nr(e)}function Ls(e,t){e.activeBranch=t;const{vnode:i,parentComponent:n}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;i.el=s,n&&n.subTree===i&&(n.vnode.el=s,La(n,s))}function Kb(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const it=Symbol.for("v-fgt"),Ln=Symbol.for("v-txt"),gt=Symbol.for("v-cmt"),Zn=Symbol.for("v-stc"),Er=[];let Bt=null;function ie(e=!1){Er.push(Bt=e?null:[])}function lp(){Er.pop(),Bt=Er[Er.length-1]||null}let ns=1;function nc(e,t=!1){ns+=e,e<0&&Bt&&t&&(Bt.hasOnce=!0)}function cp(e){return e.dynamicChildren=ns>0?Bt||Is:null,lp(),ns>0&&Bt&&Bt.push(e),e}function me(e,t,i,n,s,r){return cp(U(e,t,i,n,s,r,!0))}function Ve(e,t,i,n,s){return cp(ke(e,t,i,n,s,!0))}function bn(e){return e?e.__v_isVNode===!0:!1}function Mi(e,t){return e.type===t.type&&e.key===t.key}function Xb(e){}const up=({key:e})=>e??null,No=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?Ne(e)||Ct(e)||Ae(e)?{i:_t,r:e,k:t,f:!!i}:e:null);function U(e,t=null,i=null,n=0,s=null,r=e===it?0:1,a=!1,c=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&up(t),ref:t&&No(t),scopeId:Ia,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:_t};return c?(iu(u,i),r&128&&e.normalize(u)):i&&(u.shapeFlag|=Ne(i)?8:16),ns>0&&!a&&Bt&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Bt.push(u),u}const ke=Yb;function Yb(e,t=null,i=null,n=0,s=null,r=!1){if((!e||e===Ld)&&(e=gt),bn(e)){const c=Ji(e,t,!0);return i&&iu(c,i),ns>0&&!r&&Bt&&(c.shapeFlag&6?Bt[Bt.indexOf(e)]=c:Bt.push(c)),c.patchFlag=-2,c}if(i0(e)&&(e=e.__vccOpts),t){t=fp(t);let{class:c,style:u}=t;c&&!Ne(c)&&(t.class=Yt(c)),et(u)&&(Aa(u)&&!he(u)&&(u=Be({},u)),t.style=fs(u))}const a=Ne(e)?1:Zo(e)?128:Sd(e)?64:et(e)?4:Ae(e)?2:0;return U(e,t,i,n,s,a,r,!0)}function fp(e){return e?Aa(e)||Ud(e)?Be({},e):e:null}function Ji(e,t,i=!1,n=!1){const{props:s,ref:r,patchFlag:a,children:c,transition:u}=e,g=t?Ha(s||{},t):s,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&up(g),ref:t&&t.ref?i&&r?he(r)?r.concat(No(t)):[r,No(t)]:No(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==it?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ji(e.ssContent),ssFallback:e.ssFallback&&Ji(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&vn(p,u.clone(p)),p}function Ot(e=" ",t=0){return ke(Ln,null,e,t)}function Gb(e,t){const i=ke(Zn,null,e);return i.staticCount=t,i}function xe(e="",t=!1){return t?(ie(),Ve(gt,null,e)):ke(gt,null,e)}function ii(e){return e==null||typeof e=="boolean"?ke(gt):he(e)?ke(it,null,e.slice()):bn(e)?On(e):ke(Ln,null,String(e))}function On(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ji(e)}function iu(e,t){let i=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(he(t))i=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),iu(e,s()),s._c&&(s._d=!0));return}else{i=32;const s=t._;!s&&!Ud(t)?t._ctx=_t:s===3&&_t&&(_t.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ae(t)?(t={default:t,_ctx:_t},i=32):(t=String(t),n&64?(i=16,t=[Ot(t)]):i=8);e.children=t,e.shapeFlag|=i}function Ha(...e){const t={};for(let i=0;i<e.length;i++){const n=e[i];for(const s in n)if(s==="class")t.class!==n.class&&(t.class=Yt([t.class,n.class]));else if(s==="style")t.style=fs([t.style,n.style]);else if(ls(s)){const r=t[s],a=n[s];a&&r!==a&&!(he(r)&&r.includes(a))&&(t[s]=r?[].concat(r,a):a)}else s!==""&&(t[s]=n[s])}return t}function ti(e,t,i,n=null){Ri(e,t,7,[i,n])}const Jb=Fd();let Qb=0;function hp(e,t,i){const n=e.type,s=(t?t.appContext:e.appContext)||Jb,r={uid:Qb++,vnode:e,type:n,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Hc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:qd(n,s),emitsOptions:rp(n,s),emit:null,emitted:null,propsDefaults:je,inheritAttrs:n.inheritAttrs,ctx:je,data:je,props:je,attrs:je,slots:je,refs:je,setupState:je,setupContext:null,suspense:i,suspenseId:i?i.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Lb.bind(null,r),e.ce&&e.ce(r),r}let St=null;const Ii=()=>St||_t;let ea,sc;{const e=ba(),t=(i,n)=>{let s;return(s=e[i])||(s=e[i]=[]),s.push(n),r=>{s.length>1?s.forEach(a=>a(r)):s[0](r)}};ea=t("__VUE_INSTANCE_SETTERS__",i=>St=i),sc=t("__VUE_SSR_SETTERS__",i=>Fs=i)}const ss=e=>{const t=St;return ea(e),e.scope.on(),()=>{e.scope.off(),ea(t)}},rc=()=>{St&&St.scope.off(),ea(null)};function dp(e){return e.vnode.shapeFlag&4}let Fs=!1;function pp(e,t=!1,i=!1){t&&sc(t);const{props:n,children:s}=e.vnode,r=dp(e);Eb(e,n,r,t),Ib(e,s,i||t);const a=r?Zb(e,t):void 0;return t&&sc(!1),a}function Zb(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ql);const{setup:n}=i;if(n){gn();const s=e.setupContext=n.length>1?yp(e):null,r=ss(e),a=Js(n,e,0,[e.props,s]),c=Pc(a);if(mn(),r(),(c||e.sp)&&!Pn(e)&&Kc(e),c){if(a.then(rc,rc),t)return a.then(u=>{oc(e,u,t)}).catch(u=>{hs(u,e,0)});e.asyncDep=a}else oc(e,a,t)}else mp(e,t)}function oc(e,t,i){Ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:et(t)&&(e.setupState=$c(t)),mp(e,i)}let ta,ac;function gp(e){ta=e,ac=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,nb))}}const e0=()=>!ta;function mp(e,t,i){const n=e.type;if(!e.render){if(!t&&ta&&!n.render){const s=n.template||Qc(e).template;if(s){const{isCustomElement:r,compilerOptions:a}=e.appContext.config,{delimiters:c,compilerOptions:u}=n,g=Be(Be({isCustomElement:r,delimiters:c},a),u);n.render=ta(s,g)}}e.render=n.render||Dt,ac&&ac(e)}{const s=ss(e);gn();try{yb(e)}finally{mn(),s()}}}const t0={get(e,t){return Ft(e,"get",""),e[t]}};function yp(e){const t=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,t0),slots:e.slots,emit:e.emit,expose:t}}function Yr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy($c(cd(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in Cr)return Cr[i](e)},has(t,i){return i in t||i in Cr}})):e.proxy}function lc(e,t=!0){return Ae(e)?e.displayName||e.name:e.name||t&&e.__name}function i0(e){return Ae(e)&&"__vccOpts"in e}const vp=(e,t)=>yv(e,t,Fs);function bp(e,t,i){const n=arguments.length;return n===2?et(t)&&!he(t)?bn(t)?ke(e,null,[t]):ke(e,t):ke(e,null,t):(n>3?i=Array.prototype.slice.call(arguments,2):n===3&&bn(i)&&(i=[i]),ke(e,t,i))}function n0(){}function s0(e,t,i,n){const s=i[n];if(s&&wp(s,e))return s;const r=t();return r.memo=e.slice(),r.cacheIndex=n,i[n]=r}function wp(e,t){const i=e.memo;if(i.length!=t.length)return!1;for(let n=0;n<i.length;n++)if(Kt(i[n],t[n]))return!1;return ns>0&&Bt&&Bt.push(e),!0}const Sp="3.5.17",r0=Dt,o0=Av,a0=xs,l0=bd,c0={createComponentInstance:hp,setupComponent:pp,renderComponentRoot:ko,setCurrentRenderingInstance:Dr,isVNode:bn,normalizeVNode:ii,getComponentPublicInstance:Yr,ensureValidVNode:Jc,pushWarningContext:_v,popWarningContext:Cv},u0=c0,f0=null,h0=null,d0=null;/**
* @vue/runtime-dom v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let cc;const Rf=typeof window<"u"&&window.trustedTypes;if(Rf)try{cc=Rf.createPolicy("vue",{createHTML:e=>e})}catch{}const _p=cc?e=>cc.createHTML(e):e=>e,p0="http://www.w3.org/2000/svg",g0="http://www.w3.org/1998/Math/MathML",ln=typeof document<"u"?document:null,If=ln&&ln.createElement("template"),m0={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,n)=>{const s=t==="svg"?ln.createElementNS(p0,e):t==="mathml"?ln.createElementNS(g0,e):i?ln.createElement(e,{is:i}):ln.createElement(e);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>ln.createTextNode(e),createComment:e=>ln.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ln.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,n,s,r){const a=i?i.previousSibling:t.lastChild;if(s&&(s===r||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),i),!(s===r||!(s=s.nextSibling)););else{If.innerHTML=_p(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const c=If.content;if(n==="svg"||n==="mathml"){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}t.insertBefore(c,i)}return[a?a.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},Tn="transition",dr="animation",js=Symbol("_vtc"),Cp={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Tp=Be({},qc,Cp),y0=e=>(e.displayName="Transition",e.props=Tp,e),Ep=y0((e,{slots:t})=>bp(Ad,Ap(e),t)),Vn=(e,t=[])=>{he(e)?e.forEach(i=>i(...t)):e&&e(...t)},Of=e=>e?he(e)?e.some(t=>t.length>1):e.length>1:!1;function Ap(e){const t={};for(const W in e)W in Cp||(t[W]=e[W]);if(e.css===!1)return t;const{name:i="v",type:n,duration:s,enterFromClass:r=`${i}-enter-from`,enterActiveClass:a=`${i}-enter-active`,enterToClass:c=`${i}-enter-to`,appearFromClass:u=r,appearActiveClass:g=a,appearToClass:p=c,leaveFromClass:m=`${i}-leave-from`,leaveActiveClass:b=`${i}-leave-active`,leaveToClass:S=`${i}-leave-to`}=e,_=v0(s),C=_&&_[0],P=_&&_[1],{onBeforeEnter:M,onEnter:j,onEnterCancelled:R,onLeave:k,onLeaveCancelled:H,onBeforeAppear:G=M,onAppear:h=j,onAppearCancelled:te=R}=t,D=(W,J,ve,Ee)=>{W._enterCancelled=Ee,An(W,J?p:c),An(W,J?g:a),ve&&ve()},V=(W,J)=>{W._isLeaving=!1,An(W,m),An(W,S),An(W,b),J&&J()},re=W=>(J,ve)=>{const Ee=W?h:j,ge=()=>D(J,W,ve);Vn(Ee,[J,ge]),kf(()=>{An(J,W?u:r),qi(J,W?p:c),Of(Ee)||Nf(J,n,C,ge)})};return Be(t,{onBeforeEnter(W){Vn(M,[W]),qi(W,r),qi(W,a)},onBeforeAppear(W){Vn(G,[W]),qi(W,u),qi(W,g)},onEnter:re(!1),onAppear:re(!0),onLeave(W,J){W._isLeaving=!0;const ve=()=>V(W,J);qi(W,m),W._enterCancelled?(qi(W,b),uc()):(uc(),qi(W,b)),kf(()=>{W._isLeaving&&(An(W,m),qi(W,S),Of(k)||Nf(W,n,P,ve))}),Vn(k,[W,ve])},onEnterCancelled(W){D(W,!1,void 0,!0),Vn(R,[W])},onAppearCancelled(W){D(W,!0,void 0,!0),Vn(te,[W])},onLeaveCancelled(W){V(W),Vn(H,[W])}})}function v0(e){if(e==null)return null;if(et(e))return[Nl(e.enter),Nl(e.leave)];{const t=Nl(e);return[t,t]}}function Nl(e){return qo(e)}function qi(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.add(i)),(e[js]||(e[js]=new Set)).add(t)}function An(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const i=e[js];i&&(i.delete(t),i.size||(e[js]=void 0))}function kf(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let b0=0;function Nf(e,t,i,n){const s=e._endId=++b0,r=()=>{s===e._endId&&n()};if(i!=null)return setTimeout(r,i);const{type:a,timeout:c,propCount:u}=xp(e,t);if(!a)return n();const g=a+"end";let p=0;const m=()=>{e.removeEventListener(g,b),r()},b=S=>{S.target===e&&++p>=u&&m()};setTimeout(()=>{p<u&&m()},c+1),e.addEventListener(g,b)}function xp(e,t){const i=window.getComputedStyle(e),n=_=>(i[_]||"").split(", "),s=n(`${Tn}Delay`),r=n(`${Tn}Duration`),a=Mf(s,r),c=n(`${dr}Delay`),u=n(`${dr}Duration`),g=Mf(c,u);let p=null,m=0,b=0;t===Tn?a>0&&(p=Tn,m=a,b=r.length):t===dr?g>0&&(p=dr,m=g,b=u.length):(m=Math.max(a,g),p=m>0?a>g?Tn:dr:null,b=p?p===Tn?r.length:u.length:0);const S=p===Tn&&/\b(transform|all)(,|$)/.test(n(`${Tn}Property`).toString());return{type:p,timeout:m,propCount:b,hasTransform:S}}function Mf(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((i,n)=>Df(i)+Df(e[n])))}function Df(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function uc(){return document.body.offsetHeight}function w0(e,t,i){const n=e[js];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const ia=Symbol("_vod"),Rp=Symbol("_vsh"),za={beforeMount(e,{value:t},{transition:i}){e[ia]=e.style.display==="none"?"":e.style.display,i&&t?i.beforeEnter(e):pr(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:n}){!t!=!i&&(n?t?(n.beforeEnter(e),pr(e,!0),n.enter(e)):n.leave(e,()=>{pr(e,!1)}):pr(e,t))},beforeUnmount(e,{value:t}){pr(e,t)}};function pr(e,t){e.style.display=t?e[ia]:"none",e[Rp]=!t}function S0(){za.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Ip=Symbol("");function _0(e){const t=Ii();if(!t)return;const i=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(r=>na(r,s))},n=()=>{const s=e(t.proxy);t.ce?na(t.ce,s):fc(t.subTree,s),i(s)};Xc(()=>{Nr(n)}),Kr(()=>{Ps(n,Dt,{flush:"post"});const s=new MutationObserver(n);s.observe(t.subTree.el.parentNode,{childList:!0}),Da(()=>s.disconnect())})}function fc(e,t){if(e.shapeFlag&128){const i=e.suspense;e=i.activeBranch,i.pendingBranch&&!i.isHydrating&&i.effects.push(()=>{fc(i.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)na(e.el,t);else if(e.type===it)e.children.forEach(i=>fc(i,t));else if(e.type===Zn){let{el:i,anchor:n}=e;for(;i&&(na(i,t),i!==n);)i=i.nextSibling}}function na(e,t){if(e.nodeType===1){const i=e.style;let n="";for(const s in t)i.setProperty(`--${s}`,t[s]),n+=`--${s}: ${t[s]};`;i[Ip]=n}}const C0=/(^|;)\s*display\s*:/;function T0(e,t,i){const n=e.style,s=Ne(i);let r=!1;if(i&&!s){if(t)if(Ne(t))for(const a of t.split(";")){const c=a.slice(0,a.indexOf(":")).trim();i[c]==null&&Mo(n,c,"")}else for(const a in t)i[a]==null&&Mo(n,a,"");for(const a in i)a==="display"&&(r=!0),Mo(n,a,i[a])}else if(s){if(t!==i){const a=n[Ip];a&&(i+=";"+a),n.cssText=i,r=C0.test(i)}}else t&&e.removeAttribute("style");ia in e&&(e[ia]=r?n.display:"",e[Rp]&&(n.display="none"))}const Pf=/\s*!important$/;function Mo(e,t,i){if(he(i))i.forEach(n=>Mo(e,t,n));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const n=E0(e,t);Pf.test(i)?e.setProperty(ni(n),i.replace(Pf,""),"important"):e[n]=i}}const Lf=["Webkit","Moz","ms"],Ml={};function E0(e,t){const i=Ml[t];if(i)return i;let n=ot(t);if(n!=="filter"&&n in e)return Ml[t]=n;n=us(n);for(let s=0;s<Lf.length;s++){const r=Lf[s]+n;if(r in e)return Ml[t]=r}return t}const Hf="http://www.w3.org/1999/xlink";function zf(e,t,i,n,s,r=Py(t)){n&&t.startsWith("xlink:")?i==null?e.removeAttributeNS(Hf,t.slice(6,t.length)):e.setAttributeNS(Hf,t,i):i==null||r&&!Uh(i)?e.removeAttribute(t):e.setAttribute(t,r?"":li(i)?String(i):i)}function Ff(e,t,i,n,s){if(t==="innerHTML"||t==="textContent"){i!=null&&(e[t]=t==="innerHTML"?_p(i):i);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const c=r==="OPTION"?e.getAttribute("value")||"":e.value,u=i==null?e.type==="checkbox"?"on":"":String(i);(c!==u||!("_value"in e))&&(e.value=u),i==null&&e.removeAttribute(t),e._value=i;return}let a=!1;if(i===""||i==null){const c=typeof e[t];c==="boolean"?i=Uh(i):i==null&&c==="string"?(i="",a=!0):c==="number"&&(i=0,a=!0)}try{e[t]=i}catch{}a&&e.removeAttribute(s||t)}function fn(e,t,i,n){e.addEventListener(t,i,n)}function A0(e,t,i,n){e.removeEventListener(t,i,n)}const jf=Symbol("_vei");function x0(e,t,i,n,s=null){const r=e[jf]||(e[jf]={}),a=r[t];if(n&&a)a.value=n;else{const[c,u]=R0(t);if(n){const g=r[t]=k0(n,s);fn(e,c,g,u)}else a&&(A0(e,c,a,u),r[t]=void 0)}}const Bf=/(?:Once|Passive|Capture)$/;function R0(e){let t;if(Bf.test(e)){t={};let n;for(;n=e.match(Bf);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ni(e.slice(2)),t]}let Dl=0;const I0=Promise.resolve(),O0=()=>Dl||(I0.then(()=>Dl=0),Dl=Date.now());function k0(e,t){const i=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=i.attached)return;Ri(N0(n,i.value),t,5,[n])};return i.value=e,i.attached=O0(),i}function N0(e,t){if(he(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map(n=>s=>!s._stopped&&n&&n(s))}else return t}const $f=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,M0=(e,t,i,n,s,r)=>{const a=s==="svg";t==="class"?w0(e,n,a):t==="style"?T0(e,i,n):ls(t)?Mc(t)||x0(e,t,i,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):D0(e,t,n,a))?(Ff(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&zf(e,t,n,a,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ne(n))?Ff(e,ot(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),zf(e,t,n,a))};function D0(e,t,i,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&$f(t)&&Ae(i));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return $f(t)&&Ne(i)?!1:t in e}const Uf={};/*! #__NO_SIDE_EFFECTS__ */function Op(e,t,i){const n=Vc(e,t);ya(n)&&Be(n,t);class s extends Fa{constructor(a){super(n,a,i)}}return s.def=n,s}/*! #__NO_SIDE_EFFECTS__ */const P0=(e,t)=>Op(e,t,$p),L0=typeof HTMLElement<"u"?HTMLElement:class{};class Fa extends L0{constructor(t,i={},n=$s){super(),this._def=t,this._props=i,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==$s?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Fa){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Ra(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(n=>{for(const s of n)this._setAttr(s.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(n,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:r,styles:a}=n;let c;if(r&&!he(r))for(const u in r){const g=r[u];(g===Number||g&&g.type===Number)&&(u in this._props&&(this._props[u]=qo(this._props[u])),(c||(c=Object.create(null)))[ot(u)]=!0)}this._numberProps=c,this._resolveProps(n),this.shadowRoot&&this._applyStyles(a),this._mount(n)},i=this._def.__asyncLoader;i?this._pendingResolve=i().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const i=this._instance&&this._instance.exposed;if(i)for(const n in i)Ge(this,n)||Object.defineProperty(this,n,{get:()=>xa(i[n])})}_resolveProps(t){const{props:i}=t,n=he(i)?i:Object.keys(i||{});for(const s of Object.keys(this))s[0]!=="_"&&n.includes(s)&&this._setProp(s,this[s]);for(const s of n.map(ot))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(r){this._setProp(s,r,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const i=this.hasAttribute(t);let n=i?this.getAttribute(t):Uf;const s=ot(t);i&&this._numberProps&&this._numberProps[s]&&(n=qo(n)),this._setProp(s,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,i,n=!0,s=!1){if(i!==this._props[t]&&(i===Uf?delete this._props[t]:(this._props[t]=i,t==="key"&&this._app&&(this._app._ceVNode.key=i)),s&&this._instance&&this._update(),n)){const r=this._ob;r&&r.disconnect(),i===!0?this.setAttribute(ni(t),""):typeof i=="string"||typeof i=="number"?this.setAttribute(ni(t),i+""):i||this.removeAttribute(ni(t)),r&&r.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Bp(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const i=ke(this._def,Be(t,this._props));return this._instance||(i.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const s=(r,a)=>{this.dispatchEvent(new CustomEvent(r,ya(a[0])?Be({detail:a},a[0]):{detail:a}))};n.emit=(r,...a)=>{s(r,a),ni(r)!==r&&s(ni(r),a)},this._setParent()}),i}_applyStyles(t,i){if(!t)return;if(i){if(i===this._def||this._styleChildren.has(i))return;this._styleChildren.add(i)}const n=this._nonce;for(let s=t.length-1;s>=0;s--){const r=document.createElement("style");n&&r.setAttribute("nonce",n),r.textContent=t[s],this.shadowRoot.prepend(r)}}_parseSlots(){const t=this._slots={};let i;for(;i=this.firstChild;){const n=i.nodeType===1&&i.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(i),this.removeChild(i)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),i=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const s=t[n],r=s.getAttribute("name")||"default",a=this._slots[r],c=s.parentNode;if(a)for(const u of a){if(i&&u.nodeType===1){const g=i+"-s",p=document.createTreeWalker(u,1);u.setAttribute(g,"");let m;for(;m=p.nextNode();)m.setAttribute(g,"")}c.insertBefore(u,s)}else for(;s.firstChild;)c.insertBefore(s.firstChild,s);c.removeChild(s)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function kp(e){const t=Ii(),i=t&&t.ce;return i||null}function H0(){const e=kp();return e&&e.shadowRoot}function z0(e="$style"){{const t=Ii();if(!t)return je;const i=t.type.__cssModules;if(!i)return je;const n=i[e];return n||je}}const Np=new WeakMap,Mp=new WeakMap,sa=Symbol("_moveCb"),Wf=Symbol("_enterCb"),F0=e=>(delete e.props.mode,e),j0=F0({name:"TransitionGroup",props:Be({},Tp,{tag:String,moveClass:String}),setup(e,{slots:t}){const i=Ii(),n=Wc();let s,r;return Na(()=>{if(!s.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!q0(s[0].el,i.vnode.el,a)){s=[];return}s.forEach($0),s.forEach(U0);const c=s.filter(W0);uc(),c.forEach(u=>{const g=u.el,p=g.style;qi(g,a),p.transform=p.webkitTransform=p.transitionDuration="";const m=g[sa]=b=>{b&&b.target!==g||(!b||/transform$/.test(b.propertyName))&&(g.removeEventListener("transitionend",m),g[sa]=null,An(g,a))};g.addEventListener("transitionend",m)}),s=[]}),()=>{const a=We(e),c=Ap(a);let u=a.tag||it;if(s=[],r)for(let g=0;g<r.length;g++){const p=r[g];p.el&&p.el instanceof Element&&(s.push(p),vn(p,zs(p,c,n,i)),Np.set(p,p.el.getBoundingClientRect()))}r=t.default?Oa(t.default()):[];for(let g=0;g<r.length;g++){const p=r[g];p.key!=null&&vn(p,zs(p,c,n,i))}return ke(u,null,r)}}}),B0=j0;function $0(e){const t=e.el;t[sa]&&t[sa](),t[Wf]&&t[Wf]()}function U0(e){Mp.set(e,e.el.getBoundingClientRect())}function W0(e){const t=Np.get(e),i=Mp.get(e),n=t.left-i.left,s=t.top-i.top;if(n||s){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${n}px,${s}px)`,r.transitionDuration="0s",e}}function q0(e,t,i){const n=e.cloneNode(),s=e[js];s&&s.forEach(c=>{c.split(/\s+/).forEach(u=>u&&n.classList.remove(u))}),i.split(/\s+/).forEach(c=>c&&n.classList.add(c)),n.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(n);const{hasTransform:a}=xp(n);return r.removeChild(n),a}const Fn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return he(t)?i=>Ns(t,i):t};function V0(e){e.target.composing=!0}function qf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ai=Symbol("_assign"),ra={created(e,{modifiers:{lazy:t,trim:i,number:n}},s){e[Ai]=Fn(s);const r=n||s.props&&s.props.type==="number";fn(e,t?"change":"input",a=>{if(a.target.composing)return;let c=e.value;i&&(c=c.trim()),r&&(c=Wo(c)),e[Ai](c)}),i&&fn(e,"change",()=>{e.value=e.value.trim()}),t||(fn(e,"compositionstart",V0),fn(e,"compositionend",qf),fn(e,"change",qf))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:i,modifiers:{lazy:n,trim:s,number:r}},a){if(e[Ai]=Fn(a),e.composing)return;const c=(r||e.type==="number")&&!/^0\d/.test(e.value)?Wo(e.value):e.value,u=t??"";c!==u&&(document.activeElement===e&&e.type!=="range"&&(n&&t===i||s&&e.value.trim()===u)||(e.value=u))}},Gi={deep:!0,created(e,t,i){e[Ai]=Fn(i),fn(e,"change",()=>{const n=e._modelValue,s=Bs(e),r=e.checked,a=e[Ai];if(he(n)){const c=wa(n,s),u=c!==-1;if(r&&!u)a(n.concat(s));else if(!r&&u){const g=[...n];g.splice(c,1),a(g)}}else if(cs(n)){const c=new Set(n);r?c.add(s):c.delete(s),a(c)}else a(Dp(e,r))})},mounted:Vf,beforeUpdate(e,t,i){e[Ai]=Fn(i),Vf(e,t,i)}};function Vf(e,{value:t,oldValue:i},n){e._modelValue=t;let s;if(he(t))s=wa(t,n.props.value)>-1;else if(cs(t))s=t.has(n.props.value);else{if(t===i)return;s=zn(t,Dp(e,!0))}e.checked!==s&&(e.checked=s)}const nu={created(e,{value:t},i){e.checked=zn(t,i.props.value),e[Ai]=Fn(i),fn(e,"change",()=>{e[Ai](Bs(e))})},beforeUpdate(e,{value:t,oldValue:i},n){e[Ai]=Fn(n),t!==i&&(e.checked=zn(t,n.props.value))}},ja={deep:!0,created(e,{value:t,modifiers:{number:i}},n){const s=cs(t);fn(e,"change",()=>{const r=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>i?Wo(Bs(a)):Bs(a));e[Ai](e.multiple?s?new Set(r):r:r[0]),e._assigning=!0,Ra(()=>{e._assigning=!1})}),e[Ai]=Fn(n)},mounted(e,{value:t}){Kf(e,t)},beforeUpdate(e,t,i){e[Ai]=Fn(i)},updated(e,{value:t}){e._assigning||Kf(e,t)}};function Kf(e,t){const i=e.multiple,n=he(t);if(!(i&&!n&&!cs(t))){for(let s=0,r=e.options.length;s<r;s++){const a=e.options[s],c=Bs(a);if(i)if(n){const u=typeof c;u==="string"||u==="number"?a.selected=t.some(g=>String(g)===String(c)):a.selected=wa(t,c)>-1}else a.selected=t.has(c);else if(zn(Bs(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!i&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Bs(e){return"_value"in e?e._value:e.value}function Dp(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const Pp={created(e,t,i){wo(e,t,i,null,"created")},mounted(e,t,i){wo(e,t,i,null,"mounted")},beforeUpdate(e,t,i,n){wo(e,t,i,n,"beforeUpdate")},updated(e,t,i,n){wo(e,t,i,n,"updated")}};function Lp(e,t){switch(e){case"SELECT":return ja;case"TEXTAREA":return ra;default:switch(t){case"checkbox":return Gi;case"radio":return nu;default:return ra}}}function wo(e,t,i,n,s){const a=Lp(e.tagName,i.props&&i.props.type)[s];a&&a(e,t,i,n)}function K0(){ra.getSSRProps=({value:e})=>({value:e}),nu.getSSRProps=({value:e},t)=>{if(t.props&&zn(t.props.value,e))return{checked:!0}},Gi.getSSRProps=({value:e},t)=>{if(he(e)){if(t.props&&wa(e,t.props.value)>-1)return{checked:!0}}else if(cs(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Pp.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const i=Lp(t.type.toUpperCase(),t.props&&t.props.type);if(i.getSSRProps)return i.getSSRProps(e,t)}}const X0=["ctrl","shift","alt","meta"],Y0={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>X0.some(i=>e[`${i}Key`]&&!t.includes(i))},Hp=(e,t)=>{const i=e._withMods||(e._withMods={}),n=t.join(".");return i[n]||(i[n]=(s,...r)=>{for(let a=0;a<t.length;a++){const c=Y0[t[a]];if(c&&c(s,t))return}return e(s,...r)})},G0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},J0=(e,t)=>{const i=e._withKeys||(e._withKeys={}),n=t.join(".");return i[n]||(i[n]=s=>{if(!("key"in s))return;const r=ni(s.key);if(t.some(a=>a===r||G0[a]===r))return e(s)})},zp=Be({patchProp:M0},m0);let Ar,Xf=!1;function Fp(){return Ar||(Ar=Yd(zp))}function jp(){return Ar=Xf?Ar:Gd(zp),Xf=!0,Ar}const Bp=(...e)=>{Fp().render(...e)},Q0=(...e)=>{jp().hydrate(...e)},$s=(...e)=>{const t=Fp().createApp(...e),{mount:i}=t;return t.mount=n=>{const s=Wp(n);if(!s)return;const r=t._component;!Ae(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const a=i(s,!1,Up(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t},$p=(...e)=>{const t=jp().createApp(...e),{mount:i}=t;return t.mount=n=>{const s=Wp(n);if(s)return i(s,!0,Up(s))},t};function Up(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Wp(e){return Ne(e)?document.querySelector(e):e}let Yf=!1;const Z0=()=>{Yf||(Yf=!0,K0(),S0())},ew=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Ad,BaseTransitionPropsValidators:qc,Comment:gt,DeprecationTypes:d0,EffectScope:Hc,ErrorCodes:Ev,ErrorTypeStrings:o0,Fragment:it,KeepAlive:Jv,ReactiveEffect:Ir,Static:Zn,Suspense:$b,Teleport:Mv,Text:Ln,TrackOpTypes:vv,Transition:Ep,TransitionGroup:B0,TriggerOpTypes:bv,VueElement:Fa,assertNumber:Tv,callWithAsyncErrorHandling:Ri,callWithErrorHandling:Js,camelize:ot,capitalize:us,cloneVNode:Ji,compatUtils:h0,computed:vp,createApp:$s,createBlock:Ve,createCommentVNode:xe,createElementBlock:me,createElementVNode:U,createHydrationRenderer:Gd,createPropsRestProxy:gb,createRenderer:Yd,createSSRApp:$p,createSlots:tb,createStaticVNode:Gb,createTextVNode:Ot,createVNode:ke,customRef:hd,defineAsyncComponent:Yv,defineComponent:Vc,defineCustomElement:Op,defineEmits:rb,defineExpose:ob,defineModel:cb,defineOptions:ab,defineProps:sb,defineSSRCustomElement:P0,defineSlots:lb,devtools:a0,effect:jy,effectScope:Hy,getCurrentInstance:Ii,getCurrentScope:Vh,getCurrentWatcher:wv,getTransitionRawChildren:Oa,guardReactiveProps:fp,h:bp,handleError:hs,hasInjectionContext:Tb,hydrate:Q0,hydrateOnIdle:Uv,hydrateOnInteraction:Kv,hydrateOnMediaQuery:Vv,hydrateOnVisible:qv,initCustomFormatter:n0,initDirectivesForSSR:Z0,inject:Tr,isMemoSame:wp,isProxy:Aa,isReactive:Dn,isReadonly:yn,isRef:Ct,isRuntimeOnly:e0,isShallow:gi,isVNode:bn,markRaw:cd,mergeDefaults:db,mergeModels:pb,mergeProps:Ha,nextTick:Ra,normalizeClass:Yt,normalizeProps:Ey,normalizeStyle:fs,onActivated:Rd,onBeforeMount:kd,onBeforeUnmount:Ma,onBeforeUpdate:Xc,onDeactivated:Id,onErrorCaptured:Pd,onMounted:Kr,onRenderTracked:Dd,onRenderTriggered:Md,onScopeDispose:zy,onServerPrefetch:Nd,onUnmounted:Da,onUpdated:Na,onWatcherCleanup:pd,openBlock:ie,popScopeId:Ov,provide:jd,proxyRefs:$c,pushScopeId:Iv,queuePostFlushCb:Nr,reactive:Ta,readonly:Bc,ref:Sr,registerRuntimeCompiler:gp,render:Bp,renderList:dn,renderSlot:Zi,resolveComponent:pt,resolveDirective:eb,resolveDynamicComponent:Pr,resolveFilter:f0,resolveTransitionHooks:zs,setBlockTracking:nc,setDevtoolsHook:l0,setTransitionHooks:vn,shallowReactive:ld,shallowReadonly:ov,shallowRef:ud,ssrContextKey:ep,ssrUtils:u0,stop:By,toDisplayString:le,toHandlerKey:ks,toHandlers:ib,toRaw:We,toRef:gv,toRefs:hv,toValue:cv,transformVNodeArgs:Xb,triggerRef:lv,unref:xa,useAttrs:hb,useCssModule:z0,useCssVars:_0,useHost:kp,useId:Pv,useModel:Pb,useSSRContext:tp,useShadowRoot:H0,useSlots:fb,useTemplateRef:Lv,useTransitionState:Wc,vModelCheckbox:Gi,vModelDynamic:Pp,vModelRadio:nu,vModelSelect:ja,vModelText:ra,vShow:za,version:Sp,warn:r0,watch:Ps,watchEffect:Nb,watchPostEffect:Mb,watchSyncEffect:ip,withAsyncContext:mb,withCtx:ci,withDefaults:ub,withDirectives:Ei,withKeys:J0,withMemo:s0,withModifiers:Hp,withScopeId:kv},Symbol.toStringTag,{value:"Module"}));/**
* @vue/compiler-core v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const zr=Symbol(""),xr=Symbol(""),su=Symbol(""),oa=Symbol(""),qp=Symbol(""),rs=Symbol(""),Vp=Symbol(""),Kp=Symbol(""),ru=Symbol(""),ou=Symbol(""),Gr=Symbol(""),au=Symbol(""),Xp=Symbol(""),lu=Symbol(""),cu=Symbol(""),uu=Symbol(""),fu=Symbol(""),hu=Symbol(""),du=Symbol(""),Yp=Symbol(""),Gp=Symbol(""),Ba=Symbol(""),aa=Symbol(""),pu=Symbol(""),gu=Symbol(""),Fr=Symbol(""),Jr=Symbol(""),mu=Symbol(""),hc=Symbol(""),tw=Symbol(""),dc=Symbol(""),la=Symbol(""),iw=Symbol(""),nw=Symbol(""),yu=Symbol(""),sw=Symbol(""),rw=Symbol(""),vu=Symbol(""),Jp=Symbol(""),Us={[zr]:"Fragment",[xr]:"Teleport",[su]:"Suspense",[oa]:"KeepAlive",[qp]:"BaseTransition",[rs]:"openBlock",[Vp]:"createBlock",[Kp]:"createElementBlock",[ru]:"createVNode",[ou]:"createElementVNode",[Gr]:"createCommentVNode",[au]:"createTextVNode",[Xp]:"createStaticVNode",[lu]:"resolveComponent",[cu]:"resolveDynamicComponent",[uu]:"resolveDirective",[fu]:"resolveFilter",[hu]:"withDirectives",[du]:"renderList",[Yp]:"renderSlot",[Gp]:"createSlots",[Ba]:"toDisplayString",[aa]:"mergeProps",[pu]:"normalizeClass",[gu]:"normalizeStyle",[Fr]:"normalizeProps",[Jr]:"guardReactiveProps",[mu]:"toHandlers",[hc]:"camelize",[tw]:"capitalize",[dc]:"toHandlerKey",[la]:"setBlockTracking",[iw]:"pushScopeId",[nw]:"popScopeId",[yu]:"withCtx",[sw]:"unref",[rw]:"isRef",[vu]:"withMemo",[Jp]:"isMemoSame"};function ow(e){Object.getOwnPropertySymbols(e).forEach(t=>{Us[t]=e[t]})}const yi={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function aw(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:yi}}function jr(e,t,i,n,s,r,a,c=!1,u=!1,g=!1,p=yi){return e&&(c?(e.helper(rs),e.helper(Vs(e.inSSR,g))):e.helper(qs(e.inSSR,g)),a&&e.helper(hu)),{type:13,tag:t,props:i,children:n,patchFlag:s,dynamicProps:r,directives:a,isBlock:c,disableTracking:u,isComponent:g,loc:p}}function es(e,t=yi){return{type:17,loc:t,elements:e}}function Ci(e,t=yi){return{type:15,loc:t,properties:e}}function ht(e,t){return{type:16,loc:yi,key:Ne(e)?Me(e,!0):e,value:t}}function Me(e,t=!1,i=yi,n=0){return{type:4,loc:i,content:e,isStatic:t,constType:t?3:n}}function Pi(e,t=yi){return{type:8,loc:t,children:e}}function wt(e,t=[],i=yi){return{type:14,loc:i,callee:e,arguments:t}}function Ws(e,t=void 0,i=!1,n=!1,s=yi){return{type:18,params:e,returns:t,newline:i,isSlot:n,loc:s}}function pc(e,t,i,n=!0){return{type:19,test:e,consequent:t,alternate:i,newline:n,loc:yi}}function lw(e,t,i=!1,n=!1){return{type:20,index:e,value:t,needPauseTracking:i,inVOnce:n,needArraySpread:!1,loc:yi}}function cw(e){return{type:21,body:e,loc:yi}}function qs(e,t){return e||t?ru:ou}function Vs(e,t){return e||t?Vp:Kp}function bu(e,{helper:t,removeHelper:i,inSSR:n}){e.isBlock||(e.isBlock=!0,i(qs(n,e.isComponent)),t(rs),t(Vs(n,e.isComponent)))}const Gf=new Uint8Array([123,123]),Jf=new Uint8Array([125,125]);function Qf(e){return e>=97&&e<=122||e>=65&&e<=90}function di(e){return e===32||e===10||e===9||e===12||e===13}function En(e){return e===47||e===62||di(e)}function ca(e){const t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}const Lt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class uw{constructor(t,i){this.stack=t,this.cbs=i,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Gf,this.delimiterClose=Jf,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Gf,this.delimiterClose=Jf}getPos(t){let i=1,n=t+1;for(let s=this.newlines.length-1;s>=0;s--){const r=this.newlines[s];if(t>r){i=s+2,n=t-r;break}}return{column:n,line:i,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const i=this.index+1-this.delimiterOpen.length;i>this.sectionStart&&this.cbs.ontext(this.sectionStart,i),this.state=3,this.sectionStart=i}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const i=this.sequenceIndex===this.currentSequence.length;if(!(i?En(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!i){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||di(t)){const i=this.index-this.currentSequence.length;if(this.sectionStart<i){const n=this.index;this.index=i,this.cbs.ontext(this.sectionStart,i),this.index=n}this.sectionStart=i+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Lt.TitleEnd||this.currentSequence===Lt.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Lt.Cdata[this.sequenceIndex]?++this.sequenceIndex===Lt.Cdata.length&&(this.state=28,this.currentSequence=Lt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const i=this.buffer.charCodeAt(this.index);if(i===10&&this.newlines.push(this.index),i===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Lt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,i){this.enterRCDATA(t,i),this.state=31}enterRCDATA(t,i){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=i}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):Qf(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){En(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(En(t)){const i=this.buffer.slice(this.sectionStart,this.index);i!=="template"&&this.enterRCDATA(ca("</"+i),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){di(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=Qf(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||di(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):di(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):di(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||En(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||En(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||En(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||En(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||En(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):di(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):di(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,i){(t===i||this.fastForwardTo(i))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(i===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){di(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Lt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Lt.ScriptEnd[3]?this.startSpecial(Lt.ScriptEnd,4):t===Lt.StyleEnd[3]?this.startSpecial(Lt.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Lt.TitleEnd[3]?this.startSpecial(Lt.TitleEnd,4):t===Lt.TextareaEnd[3]?this.startSpecial(Lt.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const i=this.buffer.charCodeAt(this.index);switch(i===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(i);break}case 2:{this.stateInterpolationOpen(i);break}case 3:{this.stateInterpolation(i);break}case 4:{this.stateInterpolationClose(i);break}case 31:{this.stateSpecialStartSequence(i);break}case 32:{this.stateInRCDATA(i);break}case 26:{this.stateCDATASequence(i);break}case 19:{this.stateInAttrValueDoubleQuotes(i);break}case 12:{this.stateInAttrName(i);break}case 13:{this.stateInDirName(i);break}case 14:{this.stateInDirArg(i);break}case 15:{this.stateInDynamicDirArg(i);break}case 16:{this.stateInDirModifier(i);break}case 28:{this.stateInCommentLike(i);break}case 27:{this.stateInSpecialComment(i);break}case 11:{this.stateBeforeAttrName(i);break}case 6:{this.stateInTagName(i);break}case 34:{this.stateInSFCRootTagName(i);break}case 9:{this.stateInClosingTagName(i);break}case 5:{this.stateBeforeTagName(i);break}case 17:{this.stateAfterAttrName(i);break}case 20:{this.stateInAttrValueSingleQuotes(i);break}case 18:{this.stateBeforeAttrValue(i);break}case 8:{this.stateBeforeClosingTagName(i);break}case 10:{this.stateAfterClosingTagName(i);break}case 29:{this.stateBeforeSpecialS(i);break}case 30:{this.stateBeforeSpecialT(i);break}case 21:{this.stateInAttrValueNoQuotes(i);break}case 7:{this.stateInSelfClosingTag(i);break}case 23:{this.stateInDeclaration(i);break}case 22:{this.stateBeforeDeclaration(i);break}case 25:{this.stateBeforeComment(i);break}case 24:{this.stateInProcessingInstruction(i);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Lt.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,i){}}function Zf(e,{compatConfig:t}){const i=t&&t[e];return e==="MODE"?i||3:i}function ts(e,t){const i=Zf("MODE",t),n=Zf(e,t);return i===3?n===!0:n!==!1}function Br(e,t,i,...n){return ts(e,t)}function wu(e){throw e}function Qp(e){}function lt(e,t,i,n){const s=`https://vuejs.org/error-reference/#compiler-${e}`,r=new SyntaxError(String(s));return r.code=e,r.loc=t,r}const si=e=>e.type===4&&e.isStatic;function Zp(e){switch(e){case"Teleport":case"teleport":return xr;case"Suspense":case"suspense":return su;case"KeepAlive":case"keep-alive":return oa;case"BaseTransition":case"base-transition":return qp}}const fw=/^\d|[^\$\w\xA0-\uFFFF]/,Su=e=>!fw.test(e),hw=/[A-Za-z_$\xA0-\uFFFF]/,dw=/[\.\?\w$\xA0-\uFFFF]/,pw=/\s+[.[]\s*|\s*[.[]\s+/g,eg=e=>e.type===4?e.content:e.loc.source,gw=e=>{const t=eg(e).trim().replace(pw,c=>c.trim());let i=0,n=[],s=0,r=0,a=null;for(let c=0;c<t.length;c++){const u=t.charAt(c);switch(i){case 0:if(u==="[")n.push(i),i=1,s++;else if(u==="(")n.push(i),i=2,r++;else if(!(c===0?hw:dw).test(u))return!1;break;case 1:u==="'"||u==='"'||u==="`"?(n.push(i),i=3,a=u):u==="["?s++:u==="]"&&(--s||(i=n.pop()));break;case 2:if(u==="'"||u==='"'||u==="`")n.push(i),i=3,a=u;else if(u==="(")r++;else if(u===")"){if(c===t.length-1)return!1;--r||(i=n.pop())}break;case 3:u===a&&(i=n.pop(),a=null);break}}return!s&&!r},tg=gw,mw=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,yw=e=>mw.test(eg(e)),vw=yw;function _i(e,t,i=!1){for(let n=0;n<e.props.length;n++){const s=e.props[n];if(s.type===7&&(i||s.exp)&&(Ne(t)?s.name===t:t.test(s.name)))return s}}function $a(e,t,i=!1,n=!1){for(let s=0;s<e.props.length;s++){const r=e.props[s];if(r.type===6){if(i)continue;if(r.name===t&&(r.value||n))return r}else if(r.name==="bind"&&(r.exp||n)&&Xn(r.arg,t))return r}}function Xn(e,t){return!!(e&&si(e)&&e.content===t)}function bw(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Pl(e){return e.type===5||e.type===2}function ww(e){return e.type===7&&e.name==="slot"}function ua(e){return e.type===1&&e.tagType===3}function fa(e){return e.type===1&&e.tagType===2}const Sw=new Set([Fr,Jr]);function ig(e,t=[]){if(e&&!Ne(e)&&e.type===14){const i=e.callee;if(!Ne(i)&&Sw.has(i))return ig(e.arguments[0],t.concat(e))}return[e,t]}function ha(e,t,i){let n,s=e.type===13?e.props:e.arguments[2],r=[],a;if(s&&!Ne(s)&&s.type===14){const c=ig(s);s=c[0],r=c[1],a=r[r.length-1]}if(s==null||Ne(s))n=Ci([t]);else if(s.type===14){const c=s.arguments[0];!Ne(c)&&c.type===15?eh(t,c)||c.properties.unshift(t):s.callee===mu?n=wt(i.helper(aa),[Ci([t]),s]):s.arguments.unshift(Ci([t])),!n&&(n=s)}else s.type===15?(eh(t,s)||s.properties.unshift(t),n=s):(n=wt(i.helper(aa),[Ci([t]),s]),a&&a.callee===Jr&&(a=r[r.length-2]));e.type===13?a?a.arguments[0]=n:e.props=n:a?a.arguments[0]=n:e.arguments[2]=n}function eh(e,t){let i=!1;if(e.key.type===4){const n=e.key.content;i=t.properties.some(s=>s.key.type===4&&s.key.content===n)}return i}function $r(e,t){return`_${t}_${e.replace(/[^\w]/g,(i,n)=>i==="-"?"_":e.charCodeAt(n).toString())}`}function _w(e){return e.type===14&&e.callee===vu?e.arguments[1].returns:e}const Cw=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,ng={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:mr,isPreTag:mr,isIgnoreNewlineTag:mr,isCustomElement:mr,onError:wu,onWarn:Qp,comments:!1,prefixIdentifiers:!1};let Je=ng,Ur=null,pn="",zt=null,Ue=null,ei="",an=-1,Kn=-1,_u=0,kn=!1,gc=null;const at=[],ft=new uw(at,{onerr:rn,ontext(e,t){So(It(e,t),e,t)},ontextentity(e,t,i){So(e,t,i)},oninterpolation(e,t){if(kn)return So(It(e,t),e,t);let i=e+ft.delimiterOpen.length,n=t-ft.delimiterClose.length;for(;di(pn.charCodeAt(i));)i++;for(;di(pn.charCodeAt(n-1));)n--;let s=It(i,n);s.includes("&")&&(s=Je.decodeEntities(s,!1)),mc({type:5,content:Po(s,!1,dt(i,n)),loc:dt(e,t)})},onopentagname(e,t){const i=It(e,t);zt={type:1,tag:i,ns:Je.getNamespace(i,at[0],Je.ns),tagType:0,props:[],children:[],loc:dt(e-1,t),codegenNode:void 0}},onopentagend(e){ih(e)},onclosetag(e,t){const i=It(e,t);if(!Je.isVoidTag(i)){let n=!1;for(let s=0;s<at.length;s++)if(at[s].tag.toLowerCase()===i.toLowerCase()){n=!0,s>0&&rn(24,at[0].loc.start.offset);for(let a=0;a<=s;a++){const c=at.shift();Do(c,t,a<s)}break}n||rn(23,sg(e,60))}},onselfclosingtag(e){const t=zt.tag;zt.isSelfClosing=!0,ih(e),at[0]&&at[0].tag===t&&Do(at.shift(),e)},onattribname(e,t){Ue={type:6,name:It(e,t),nameLoc:dt(e,t),value:void 0,loc:dt(e)}},ondirname(e,t){const i=It(e,t),n=i==="."||i===":"?"bind":i==="@"?"on":i==="#"?"slot":i.slice(2);if(!kn&&n===""&&rn(26,e),kn||n==="")Ue={type:6,name:i,nameLoc:dt(e,t),value:void 0,loc:dt(e)};else if(Ue={type:7,name:n,rawName:i,exp:void 0,arg:void 0,modifiers:i==="."?[Me("prop")]:[],loc:dt(e)},n==="pre"){kn=ft.inVPre=!0,gc=zt;const s=zt.props;for(let r=0;r<s.length;r++)s[r].type===7&&(s[r]=Dw(s[r]))}},ondirarg(e,t){if(e===t)return;const i=It(e,t);if(kn)Ue.name+=i,Yn(Ue.nameLoc,t);else{const n=i[0]!=="[";Ue.arg=Po(n?i:i.slice(1,-1),n,dt(e,t),n?3:0)}},ondirmodifier(e,t){const i=It(e,t);if(kn)Ue.name+="."+i,Yn(Ue.nameLoc,t);else if(Ue.name==="slot"){const n=Ue.arg;n&&(n.content+="."+i,Yn(n.loc,t))}else{const n=Me(i,!0,dt(e,t));Ue.modifiers.push(n)}},onattribdata(e,t){ei+=It(e,t),an<0&&(an=e),Kn=t},onattribentity(e,t,i){ei+=e,an<0&&(an=t),Kn=i},onattribnameend(e){const t=Ue.loc.start.offset,i=It(t,e);Ue.type===7&&(Ue.rawName=i),zt.props.some(n=>(n.type===7?n.rawName:n.name)===i)&&rn(2,t)},onattribend(e,t){if(zt&&Ue){if(Yn(Ue.loc,t),e!==0)if(ei.includes("&")&&(ei=Je.decodeEntities(ei,!0)),Ue.type===6)Ue.name==="class"&&(ei=og(ei).trim()),e===1&&!ei&&rn(13,t),Ue.value={type:2,content:ei,loc:e===1?dt(an,Kn):dt(an-1,Kn+1)},ft.inSFCRoot&&zt.tag==="template"&&Ue.name==="lang"&&ei&&ei!=="html"&&ft.enterRCDATA(ca("</template"),0);else{let i=0;Ue.exp=Po(ei,!1,dt(an,Kn),0,i),Ue.name==="for"&&(Ue.forParseResult=Ew(Ue.exp));let n=-1;Ue.name==="bind"&&(n=Ue.modifiers.findIndex(s=>s.content==="sync"))>-1&&Br("COMPILER_V_BIND_SYNC",Je,Ue.loc,Ue.arg.loc.source)&&(Ue.name="model",Ue.modifiers.splice(n,1))}(Ue.type!==7||Ue.name!=="pre")&&zt.props.push(Ue)}ei="",an=Kn=-1},oncomment(e,t){Je.comments&&mc({type:3,content:It(e,t),loc:dt(e-4,t+3)})},onend(){const e=pn.length;for(let t=0;t<at.length;t++)Do(at[t],e-1),rn(24,at[t].loc.start.offset)},oncdata(e,t){at[0].ns!==0?So(It(e,t),e,t):rn(1,e-9)},onprocessinginstruction(e){(at[0]?at[0].ns:Je.ns)===0&&rn(21,e-1)}}),th=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Tw=/^\(|\)$/g;function Ew(e){const t=e.loc,i=e.content,n=i.match(Cw);if(!n)return;const[,s,r]=n,a=(m,b,S=!1)=>{const _=t.start.offset+b,C=_+m.length;return Po(m,!1,dt(_,C),0,S?1:0)},c={source:a(r.trim(),i.indexOf(r,s.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let u=s.trim().replace(Tw,"").trim();const g=s.indexOf(u),p=u.match(th);if(p){u=u.replace(th,"").trim();const m=p[1].trim();let b;if(m&&(b=i.indexOf(m,g+u.length),c.key=a(m,b,!0)),p[2]){const S=p[2].trim();S&&(c.index=a(S,i.indexOf(S,c.key?b+m.length:g+u.length),!0))}}return u&&(c.value=a(u,g,!0)),c}function It(e,t){return pn.slice(e,t)}function ih(e){ft.inSFCRoot&&(zt.innerLoc=dt(e+1,e+1)),mc(zt);const{tag:t,ns:i}=zt;i===0&&Je.isPreTag(t)&&_u++,Je.isVoidTag(t)?Do(zt,e):(at.unshift(zt),(i===1||i===2)&&(ft.inXML=!0)),zt=null}function So(e,t,i){{const r=at[0]&&at[0].tag;r!=="script"&&r!=="style"&&e.includes("&")&&(e=Je.decodeEntities(e,!1))}const n=at[0]||Ur,s=n.children[n.children.length-1];s&&s.type===2?(s.content+=e,Yn(s.loc,i)):n.children.push({type:2,content:e,loc:dt(t,i)})}function Do(e,t,i=!1){i?Yn(e.loc,sg(t,60)):Yn(e.loc,Aw(t,62)+1),ft.inSFCRoot&&(e.children.length?e.innerLoc.end=Be({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Be({},e.innerLoc.start),e.innerLoc.source=It(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:n,ns:s,children:r}=e;if(kn||(n==="slot"?e.tagType=2:nh(e)?e.tagType=3:Rw(e)&&(e.tagType=1)),ft.inRCDATA||(e.children=rg(r)),s===0&&Je.isIgnoreNewlineTag(n)){const a=r[0];a&&a.type===2&&(a.content=a.content.replace(/^\r?\n/,""))}s===0&&Je.isPreTag(n)&&_u--,gc===e&&(kn=ft.inVPre=!1,gc=null),ft.inXML&&(at[0]?at[0].ns:Je.ns)===0&&(ft.inXML=!1);{const a=e.props;if(!ft.inSFCRoot&&ts("COMPILER_NATIVE_TEMPLATE",Je)&&e.tag==="template"&&!nh(e)){const u=at[0]||Ur,g=u.children.indexOf(e);u.children.splice(g,1,...e.children)}const c=a.find(u=>u.type===6&&u.name==="inline-template");c&&Br("COMPILER_INLINE_TEMPLATE",Je,c.loc)&&e.children.length&&(c.value={type:2,content:It(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:c.loc})}}function Aw(e,t){let i=e;for(;pn.charCodeAt(i)!==t&&i<pn.length-1;)i++;return i}function sg(e,t){let i=e;for(;pn.charCodeAt(i)!==t&&i>=0;)i--;return i}const xw=new Set(["if","else","else-if","for","slot"]);function nh({tag:e,props:t}){if(e==="template"){for(let i=0;i<t.length;i++)if(t[i].type===7&&xw.has(t[i].name))return!0}return!1}function Rw({tag:e,props:t}){if(Je.isCustomElement(e))return!1;if(e==="component"||Iw(e.charCodeAt(0))||Zp(e)||Je.isBuiltInComponent&&Je.isBuiltInComponent(e)||Je.isNativeTag&&!Je.isNativeTag(e))return!0;for(let i=0;i<t.length;i++){const n=t[i];if(n.type===6){if(n.name==="is"&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(Br("COMPILER_IS_ON_ELEMENT",Je,n.loc))return!0}}else if(n.name==="bind"&&Xn(n.arg,"is")&&Br("COMPILER_IS_ON_ELEMENT",Je,n.loc))return!0}return!1}function Iw(e){return e>64&&e<91}const Ow=/\r\n/g;function rg(e){const t=Je.whitespace!=="preserve";let i=!1;for(let n=0;n<e.length;n++){const s=e[n];if(s.type===2)if(_u)s.content=s.content.replace(Ow,`
`);else if(kw(s.content)){const r=e[n-1]&&e[n-1].type,a=e[n+1]&&e[n+1].type;!r||!a||t&&(r===3&&(a===3||a===1)||r===1&&(a===3||a===1&&Nw(s.content)))?(i=!0,e[n]=null):s.content=" "}else t&&(s.content=og(s.content))}return i?e.filter(Boolean):e}function kw(e){for(let t=0;t<e.length;t++)if(!di(e.charCodeAt(t)))return!1;return!0}function Nw(e){for(let t=0;t<e.length;t++){const i=e.charCodeAt(t);if(i===10||i===13)return!0}return!1}function og(e){let t="",i=!1;for(let n=0;n<e.length;n++)di(e.charCodeAt(n))?i||(t+=" ",i=!0):(t+=e[n],i=!1);return t}function mc(e){(at[0]||Ur).children.push(e)}function dt(e,t){return{start:ft.getPos(e),end:t==null?t:ft.getPos(t),source:t==null?t:It(e,t)}}function Mw(e){return dt(e.start.offset,e.end.offset)}function Yn(e,t){e.end=ft.getPos(t),e.source=It(e.start.offset,t)}function Dw(e){const t={type:6,name:e.rawName,nameLoc:dt(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const i=e.exp.loc;i.end.offset<e.loc.end.offset&&(i.start.offset--,i.start.column--,i.end.offset++,i.end.column++),t.value={type:2,content:e.exp.content,loc:i}}return t}function Po(e,t=!1,i,n=0,s=0){return Me(e,t,i,n)}function rn(e,t,i){Je.onError(lt(e,dt(t,t)))}function Pw(){ft.reset(),zt=null,Ue=null,ei="",an=-1,Kn=-1,at.length=0}function Lw(e,t){if(Pw(),pn=e,Je=Be({},ng),t){let s;for(s in t)t[s]!=null&&(Je[s]=t[s])}ft.mode=Je.parseMode==="html"?1:Je.parseMode==="sfc"?2:0,ft.inXML=Je.ns===1||Je.ns===2;const i=t&&t.delimiters;i&&(ft.delimiterOpen=ca(i[0]),ft.delimiterClose=ca(i[1]));const n=Ur=aw([],e);return ft.parse(pn),n.loc=dt(0,e.length),n.children=rg(n.children),Ur=null,n}function Hw(e,t){Lo(e,void 0,t,!!ag(e))}function ag(e){const t=e.children.filter(i=>i.type!==3);return t.length===1&&t[0].type===1&&!fa(t[0])?t[0]:null}function Lo(e,t,i,n=!1,s=!1){const{children:r}=e,a=[];for(let m=0;m<r.length;m++){const b=r[m];if(b.type===1&&b.tagType===0){const S=n?0:pi(b,i);if(S>0){if(S>=2){b.codegenNode.patchFlag=-1,a.push(b);continue}}else{const _=b.codegenNode;if(_.type===13){const C=_.patchFlag;if((C===void 0||C===512||C===1)&&cg(b,i)>=2){const P=ug(b);P&&(_.props=i.hoist(P))}_.dynamicProps&&(_.dynamicProps=i.hoist(_.dynamicProps))}}}else if(b.type===12&&(n?0:pi(b,i))>=2){a.push(b);continue}if(b.type===1){const S=b.tagType===1;S&&i.scopes.vSlot++,Lo(b,e,i,!1,s),S&&i.scopes.vSlot--}else if(b.type===11)Lo(b,e,i,b.children.length===1,!0);else if(b.type===9)for(let S=0;S<b.branches.length;S++)Lo(b.branches[S],e,i,b.branches[S].children.length===1,s)}let c=!1;const u=[];if(a.length===r.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&he(e.codegenNode.children))e.codegenNode.children=g(es(e.codegenNode.children)),c=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!he(e.codegenNode.children)&&e.codegenNode.children.type===15){const m=p(e.codegenNode,"default");m&&(u.push(i.cached.length),m.returns=g(es(m.returns)),c=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!he(t.codegenNode.children)&&t.codegenNode.children.type===15){const m=_i(e,"slot",!0),b=m&&m.arg&&p(t.codegenNode,m.arg);b&&(u.push(i.cached.length),b.returns=g(es(b.returns)),c=!0)}}if(!c)for(const m of a)u.push(i.cached.length),m.codegenNode=i.cache(m.codegenNode);u.length&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!he(e.codegenNode.children)&&e.codegenNode.children.type===15&&e.codegenNode.children.properties.push(ht("__",Me(JSON.stringify(u),!1)));function g(m){const b=i.cache(m);return s&&i.hmr&&(b.needArraySpread=!0),b}function p(m,b){if(m.children&&!he(m.children)&&m.children.type===15){const S=m.children.properties.find(_=>_.key===b||_.key.content===b);return S&&S.value}}a.length&&i.transformHoist&&i.transformHoist(r,i,e)}function pi(e,t){const{constantCache:i}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const n=i.get(e);if(n!==void 0)return n;const s=e.codegenNode;if(s.type!==13||s.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(s.patchFlag===void 0){let a=3;const c=cg(e,t);if(c===0)return i.set(e,0),0;c<a&&(a=c);for(let u=0;u<e.children.length;u++){const g=pi(e.children[u],t);if(g===0)return i.set(e,0),0;g<a&&(a=g)}if(a>1)for(let u=0;u<e.props.length;u++){const g=e.props[u];if(g.type===7&&g.name==="bind"&&g.exp){const p=pi(g.exp,t);if(p===0)return i.set(e,0),0;p<a&&(a=p)}}if(s.isBlock){for(let u=0;u<e.props.length;u++)if(e.props[u].type===7)return i.set(e,0),0;t.removeHelper(rs),t.removeHelper(Vs(t.inSSR,s.isComponent)),s.isBlock=!1,t.helper(qs(t.inSSR,s.isComponent))}return i.set(e,a),a}else return i.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return pi(e.content,t);case 4:return e.constType;case 8:let r=3;for(let a=0;a<e.children.length;a++){const c=e.children[a];if(Ne(c)||li(c))continue;const u=pi(c,t);if(u===0)return 0;u<r&&(r=u)}return r;case 20:return 2;default:return 0}}const zw=new Set([pu,gu,Fr,Jr]);function lg(e,t){if(e.type===14&&!Ne(e.callee)&&zw.has(e.callee)){const i=e.arguments[0];if(i.type===4)return pi(i,t);if(i.type===14)return lg(i,t)}return 0}function cg(e,t){let i=3;const n=ug(e);if(n&&n.type===15){const{properties:s}=n;for(let r=0;r<s.length;r++){const{key:a,value:c}=s[r],u=pi(a,t);if(u===0)return u;u<i&&(i=u);let g;if(c.type===4?g=pi(c,t):c.type===14?g=lg(c,t):g=0,g===0)return g;g<i&&(i=g)}}return i}function ug(e){const t=e.codegenNode;if(t.type===13)return t.props}function Fw(e,{filename:t="",prefixIdentifiers:i=!1,hoistStatic:n=!1,hmr:s=!1,cacheHandlers:r=!1,nodeTransforms:a=[],directiveTransforms:c={},transformHoist:u=null,isBuiltInComponent:g=Dt,isCustomElement:p=Dt,expressionPlugins:m=[],scopeId:b=null,slotted:S=!0,ssr:_=!1,inSSR:C=!1,ssrCssVars:P="",bindingMetadata:M=je,inline:j=!1,isTS:R=!1,onError:k=wu,onWarn:H=Qp,compatConfig:G}){const h=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),te={filename:t,selfName:h&&us(ot(h[1])),prefixIdentifiers:i,hoistStatic:n,hmr:s,cacheHandlers:r,nodeTransforms:a,directiveTransforms:c,transformHoist:u,isBuiltInComponent:g,isCustomElement:p,expressionPlugins:m,scopeId:b,slotted:S,ssr:_,inSSR:C,ssrCssVars:P,bindingMetadata:M,inline:j,isTS:R,onError:k,onWarn:H,compatConfig:G,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(D){const V=te.helpers.get(D)||0;return te.helpers.set(D,V+1),D},removeHelper(D){const V=te.helpers.get(D);if(V){const re=V-1;re?te.helpers.set(D,re):te.helpers.delete(D)}},helperString(D){return`_${Us[te.helper(D)]}`},replaceNode(D){te.parent.children[te.childIndex]=te.currentNode=D},removeNode(D){const V=te.parent.children,re=D?V.indexOf(D):te.currentNode?te.childIndex:-1;!D||D===te.currentNode?(te.currentNode=null,te.onNodeRemoved()):te.childIndex>re&&(te.childIndex--,te.onNodeRemoved()),te.parent.children.splice(re,1)},onNodeRemoved:Dt,addIdentifiers(D){},removeIdentifiers(D){},hoist(D){Ne(D)&&(D=Me(D)),te.hoists.push(D);const V=Me(`_hoisted_${te.hoists.length}`,!1,D.loc,2);return V.hoisted=D,V},cache(D,V=!1,re=!1){const W=lw(te.cached.length,D,V,re);return te.cached.push(W),W}};return te.filters=new Set,te}function jw(e,t){const i=Fw(e,t);Ua(e,i),t.hoistStatic&&Hw(e,i),t.ssr||Bw(e,i),e.helpers=new Set([...i.helpers.keys()]),e.components=[...i.components],e.directives=[...i.directives],e.imports=i.imports,e.hoists=i.hoists,e.temps=i.temps,e.cached=i.cached,e.transformed=!0,e.filters=[...i.filters]}function Bw(e,t){const{helper:i}=t,{children:n}=e;if(n.length===1){const s=ag(e);if(s&&s.codegenNode){const r=s.codegenNode;r.type===13&&bu(r,t),e.codegenNode=r}else e.codegenNode=n[0]}else if(n.length>1){let s=64;e.codegenNode=jr(t,i(zr),void 0,e.children,s,void 0,void 0,!0,void 0,!1)}}function $w(e,t){let i=0;const n=()=>{i--};for(;i<e.children.length;i++){const s=e.children[i];Ne(s)||(t.grandParent=t.parent,t.parent=e,t.childIndex=i,t.onNodeRemoved=n,Ua(s,t))}}function Ua(e,t){t.currentNode=e;const{nodeTransforms:i}=t,n=[];for(let r=0;r<i.length;r++){const a=i[r](e,t);if(a&&(he(a)?n.push(...a):n.push(a)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Gr);break;case 5:t.ssr||t.helper(Ba);break;case 9:for(let r=0;r<e.branches.length;r++)Ua(e.branches[r],t);break;case 10:case 11:case 1:case 0:$w(e,t);break}t.currentNode=e;let s=n.length;for(;s--;)n[s]()}function fg(e,t){const i=Ne(e)?n=>n===e:n=>e.test(n);return(n,s)=>{if(n.type===1){const{props:r}=n;if(n.tagType===3&&r.some(ww))return;const a=[];for(let c=0;c<r.length;c++){const u=r[c];if(u.type===7&&i(u.name)){r.splice(c,1),c--;const g=t(n,u,s);g&&a.push(g)}}return a}}}const Wa="/*@__PURE__*/",hg=e=>`${Us[e]}: _${Us[e]}`;function Uw(e,{mode:t="function",prefixIdentifiers:i=t==="module",sourceMap:n=!1,filename:s="template.vue.html",scopeId:r=null,optimizeImports:a=!1,runtimeGlobalName:c="Vue",runtimeModuleName:u="vue",ssrRuntimeModuleName:g="vue/server-renderer",ssr:p=!1,isTS:m=!1,inSSR:b=!1}){const S={mode:t,prefixIdentifiers:i,sourceMap:n,filename:s,scopeId:r,optimizeImports:a,runtimeGlobalName:c,runtimeModuleName:u,ssrRuntimeModuleName:g,ssr:p,isTS:m,inSSR:b,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(C){return`_${Us[C]}`},push(C,P=-2,M){S.code+=C},indent(){_(++S.indentLevel)},deindent(C=!1){C?--S.indentLevel:_(--S.indentLevel)},newline(){_(S.indentLevel)}};function _(C){S.push(`
`+" ".repeat(C),0)}return S}function Ww(e,t={}){const i=Uw(e,t);t.onContextCreated&&t.onContextCreated(i);const{mode:n,push:s,prefixIdentifiers:r,indent:a,deindent:c,newline:u,scopeId:g,ssr:p}=i,m=Array.from(e.helpers),b=m.length>0,S=!r&&n!=="module";qw(e,i);const C=p?"ssrRender":"render",M=(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(s(`function ${C}(${M}) {`),a(),S&&(s("with (_ctx) {"),a(),b&&(s(`const { ${m.map(hg).join(", ")} } = _Vue
`,-1),u())),e.components.length&&(Ll(e.components,"component",i),(e.directives.length||e.temps>0)&&u()),e.directives.length&&(Ll(e.directives,"directive",i),e.temps>0&&u()),e.filters&&e.filters.length&&(u(),Ll(e.filters,"filter",i),u()),e.temps>0){s("let ");for(let j=0;j<e.temps;j++)s(`${j>0?", ":""}_temp${j}`)}return(e.components.length||e.directives.length||e.temps)&&(s(`
`,0),u()),p||s("return "),e.codegenNode?$t(e.codegenNode,i):s("null"),S&&(c(),s("}")),c(),s("}"),{ast:e,code:i.code,preamble:"",map:i.map?i.map.toJSON():void 0}}function qw(e,t){const{ssr:i,prefixIdentifiers:n,push:s,newline:r,runtimeModuleName:a,runtimeGlobalName:c,ssrRuntimeModuleName:u}=t,g=c,p=Array.from(e.helpers);if(p.length>0&&(s(`const _Vue = ${g}
`,-1),e.hoists.length)){const m=[ru,ou,Gr,au,Xp].filter(b=>p.includes(b)).map(hg).join(", ");s(`const { ${m} } = _Vue
`,-1)}Vw(e.hoists,t),r(),s("return ")}function Ll(e,t,{helper:i,push:n,newline:s,isTS:r}){const a=i(t==="filter"?fu:t==="component"?lu:uu);for(let c=0;c<e.length;c++){let u=e[c];const g=u.endsWith("__self");g&&(u=u.slice(0,-6)),n(`const ${$r(u,t)} = ${a}(${JSON.stringify(u)}${g?", true":""})${r?"!":""}`),c<e.length-1&&s()}}function Vw(e,t){if(!e.length)return;t.pure=!0;const{push:i,newline:n}=t;n();for(let s=0;s<e.length;s++){const r=e[s];r&&(i(`const _hoisted_${s+1} = `),$t(r,t),n())}t.pure=!1}function Cu(e,t){const i=e.length>3||!1;t.push("["),i&&t.indent(),Qr(e,t,i),i&&t.deindent(),t.push("]")}function Qr(e,t,i=!1,n=!0){const{push:s,newline:r}=t;for(let a=0;a<e.length;a++){const c=e[a];Ne(c)?s(c,-3):he(c)?Cu(c,t):$t(c,t),a<e.length-1&&(i?(n&&s(","),r()):n&&s(", "))}}function $t(e,t){if(Ne(e)){t.push(e,-3);return}if(li(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:$t(e.codegenNode,t);break;case 2:Kw(e,t);break;case 4:dg(e,t);break;case 5:Xw(e,t);break;case 12:$t(e.codegenNode,t);break;case 8:pg(e,t);break;case 3:Gw(e,t);break;case 13:Jw(e,t);break;case 14:Zw(e,t);break;case 15:eS(e,t);break;case 17:tS(e,t);break;case 18:iS(e,t);break;case 19:nS(e,t);break;case 20:sS(e,t);break;case 21:Qr(e.body,t,!0,!1);break}}function Kw(e,t){t.push(JSON.stringify(e.content),-3,e)}function dg(e,t){const{content:i,isStatic:n}=e;t.push(n?JSON.stringify(i):i,-3,e)}function Xw(e,t){const{push:i,helper:n,pure:s}=t;s&&i(Wa),i(`${n(Ba)}(`),$t(e.content,t),i(")")}function pg(e,t){for(let i=0;i<e.children.length;i++){const n=e.children[i];Ne(n)?t.push(n,-3):$t(n,t)}}function Yw(e,t){const{push:i}=t;if(e.type===8)i("["),pg(e,t),i("]");else if(e.isStatic){const n=Su(e.content)?e.content:JSON.stringify(e.content);i(n,-2,e)}else i(`[${e.content}]`,-3,e)}function Gw(e,t){const{push:i,helper:n,pure:s}=t;s&&i(Wa),i(`${n(Gr)}(${JSON.stringify(e.content)})`,-3,e)}function Jw(e,t){const{push:i,helper:n,pure:s}=t,{tag:r,props:a,children:c,patchFlag:u,dynamicProps:g,directives:p,isBlock:m,disableTracking:b,isComponent:S}=e;let _;u&&(_=String(u)),p&&i(n(hu)+"("),m&&i(`(${n(rs)}(${b?"true":""}), `),s&&i(Wa);const C=m?Vs(t.inSSR,S):qs(t.inSSR,S);i(n(C)+"(",-2,e),Qr(Qw([r,a,c,_,g]),t),i(")"),m&&i(")"),p&&(i(", "),$t(p,t),i(")"))}function Qw(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(i=>i||"null")}function Zw(e,t){const{push:i,helper:n,pure:s}=t,r=Ne(e.callee)?e.callee:n(e.callee);s&&i(Wa),i(r+"(",-2,e),Qr(e.arguments,t),i(")")}function eS(e,t){const{push:i,indent:n,deindent:s,newline:r}=t,{properties:a}=e;if(!a.length){i("{}",-2,e);return}const c=a.length>1||!1;i(c?"{":"{ "),c&&n();for(let u=0;u<a.length;u++){const{key:g,value:p}=a[u];Yw(g,t),i(": "),$t(p,t),u<a.length-1&&(i(","),r())}c&&s(),i(c?"}":" }")}function tS(e,t){Cu(e.elements,t)}function iS(e,t){const{push:i,indent:n,deindent:s}=t,{params:r,returns:a,body:c,newline:u,isSlot:g}=e;g&&i(`_${Us[yu]}(`),i("(",-2,e),he(r)?Qr(r,t):r&&$t(r,t),i(") => "),(u||c)&&(i("{"),n()),a?(u&&i("return "),he(a)?Cu(a,t):$t(a,t)):c&&$t(c,t),(u||c)&&(s(),i("}")),g&&(e.isNonScopedSlot&&i(", undefined, true"),i(")"))}function nS(e,t){const{test:i,consequent:n,alternate:s,newline:r}=e,{push:a,indent:c,deindent:u,newline:g}=t;if(i.type===4){const m=!Su(i.content);m&&a("("),dg(i,t),m&&a(")")}else a("("),$t(i,t),a(")");r&&c(),t.indentLevel++,r||a(" "),a("? "),$t(n,t),t.indentLevel--,r&&g(),r||a(" "),a(": ");const p=s.type===19;p||t.indentLevel++,$t(s,t),p||t.indentLevel--,r&&u(!0)}function sS(e,t){const{push:i,helper:n,indent:s,deindent:r,newline:a}=t,{needPauseTracking:c,needArraySpread:u}=e;u&&i("[...("),i(`_cache[${e.index}] || (`),c&&(s(),i(`${n(la)}(-1`),e.inVOnce&&i(", true"),i("),"),a(),i("(")),i(`_cache[${e.index}] = `),$t(e.value,t),c&&(i(`).cacheIndex = ${e.index},`),a(),i(`${n(la)}(1),`),a(),i(`_cache[${e.index}]`),r()),i(")"),u&&i(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const rS=fg(/^(if|else|else-if)$/,(e,t,i)=>oS(e,t,i,(n,s,r)=>{const a=i.parent.children;let c=a.indexOf(n),u=0;for(;c-->=0;){const g=a[c];g&&g.type===9&&(u+=g.branches.length)}return()=>{if(r)n.codegenNode=rh(s,u,i);else{const g=aS(n.codegenNode);g.alternate=rh(s,u+n.branches.length-1,i)}}}));function oS(e,t,i,n){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const s=t.exp?t.exp.loc:e.loc;i.onError(lt(28,t.loc)),t.exp=Me("true",!1,s)}if(t.name==="if"){const s=sh(e,t),r={type:9,loc:Mw(e.loc),branches:[s]};if(i.replaceNode(r),n)return n(r,s,!0)}else{const s=i.parent.children;let r=s.indexOf(e);for(;r-->=-1;){const a=s[r];if(a&&a.type===3){i.removeNode(a);continue}if(a&&a.type===2&&!a.content.trim().length){i.removeNode(a);continue}if(a&&a.type===9){t.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0&&i.onError(lt(30,e.loc)),i.removeNode();const c=sh(e,t);a.branches.push(c);const u=n&&n(a,c,!1);Ua(c,i),u&&u(),i.currentNode=null}else i.onError(lt(30,e.loc));break}}}function sh(e,t){const i=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:i&&!_i(e,"for")?e.children:[e],userKey:$a(e,"key"),isTemplateIf:i}}function rh(e,t,i){return e.condition?pc(e.condition,oh(e,t,i),wt(i.helper(Gr),['""',"true"])):oh(e,t,i)}function oh(e,t,i){const{helper:n}=i,s=ht("key",Me(`${t}`,!1,yi,2)),{children:r}=e,a=r[0];if(r.length!==1||a.type!==1)if(r.length===1&&a.type===11){const u=a.codegenNode;return ha(u,s,i),u}else return jr(i,n(zr),Ci([s]),r,64,void 0,void 0,!0,!1,!1,e.loc);else{const u=a.codegenNode,g=_w(u);return g.type===13&&bu(g,i),ha(g,s,i),u}}function aS(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const lS=(e,t,i)=>{const{modifiers:n,loc:s}=e,r=e.arg;let{exp:a}=e;if(a&&a.type===4&&!a.content.trim()&&(a=void 0),!a){if(r.type!==4||!r.isStatic)return i.onError(lt(52,r.loc)),{props:[ht(r,Me("",!0,s))]};gg(e),a=e.exp}return r.type!==4?(r.children.unshift("("),r.children.push(') || ""')):r.isStatic||(r.content=`${r.content} || ""`),n.some(c=>c.content==="camel")&&(r.type===4?r.isStatic?r.content=ot(r.content):r.content=`${i.helperString(hc)}(${r.content})`:(r.children.unshift(`${i.helperString(hc)}(`),r.children.push(")"))),i.inSSR||(n.some(c=>c.content==="prop")&&ah(r,"."),n.some(c=>c.content==="attr")&&ah(r,"^")),{props:[ht(r,a)]}},gg=(e,t)=>{const i=e.arg,n=ot(i.content);e.exp=Me(n,!1,i.loc)},ah=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},cS=fg("for",(e,t,i)=>{const{helper:n,removeHelper:s}=i;return uS(e,t,i,r=>{const a=wt(n(du),[r.source]),c=ua(e),u=_i(e,"memo"),g=$a(e,"key",!1,!0);g&&g.type===7&&!g.exp&&gg(g);let m=g&&(g.type===6?g.value?Me(g.value.content,!0):void 0:g.exp);const b=g&&m?ht("key",m):null,S=r.source.type===4&&r.source.constType>0,_=S?64:g?128:256;return r.codegenNode=jr(i,n(zr),void 0,a,_,void 0,void 0,!0,!S,!1,e.loc),()=>{let C;const{children:P}=r,M=P.length!==1||P[0].type!==1,j=fa(e)?e:c&&e.children.length===1&&fa(e.children[0])?e.children[0]:null;if(j?(C=j.codegenNode,c&&b&&ha(C,b,i)):M?C=jr(i,n(zr),b?Ci([b]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(C=P[0].codegenNode,c&&b&&ha(C,b,i),C.isBlock!==!S&&(C.isBlock?(s(rs),s(Vs(i.inSSR,C.isComponent))):s(qs(i.inSSR,C.isComponent))),C.isBlock=!S,C.isBlock?(n(rs),n(Vs(i.inSSR,C.isComponent))):n(qs(i.inSSR,C.isComponent))),u){const R=Ws(yc(r.parseResult,[Me("_cached")]));R.body=cw([Pi(["const _memo = (",u.exp,")"]),Pi(["if (_cached",...m?[" && _cached.key === ",m]:[],` && ${i.helperString(Jp)}(_cached, _memo)) return _cached`]),Pi(["const _item = ",C]),Me("_item.memo = _memo"),Me("return _item")]),a.arguments.push(R,Me("_cache"),Me(String(i.cached.length))),i.cached.push(null)}else a.arguments.push(Ws(yc(r.parseResult),C,!0))}})});function uS(e,t,i,n){if(!t.exp){i.onError(lt(31,t.loc));return}const s=t.forParseResult;if(!s){i.onError(lt(32,t.loc));return}mg(s);const{addIdentifiers:r,removeIdentifiers:a,scopes:c}=i,{source:u,value:g,key:p,index:m}=s,b={type:11,loc:t.loc,source:u,valueAlias:g,keyAlias:p,objectIndexAlias:m,parseResult:s,children:ua(e)?e.children:[e]};i.replaceNode(b),c.vFor++;const S=n&&n(b);return()=>{c.vFor--,S&&S()}}function mg(e,t){e.finalized||(e.finalized=!0)}function yc({value:e,key:t,index:i},n=[]){return fS([e,t,i,...n])}function fS(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((i,n)=>i||Me("_".repeat(n+1),!1))}const lh=Me("undefined",!1),hS=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const i=_i(e,"slot");if(i)return i.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},dS=(e,t,i,n)=>Ws(e,i,!1,!0,i.length?i[0].loc:n);function pS(e,t,i=dS){t.helper(yu);const{children:n,loc:s}=e,r=[],a=[];let c=t.scopes.vSlot>0||t.scopes.vFor>0;const u=_i(e,"slot",!0);if(u){const{arg:P,exp:M}=u;P&&!si(P)&&(c=!0),r.push(ht(P||Me("default",!0),i(M,void 0,n,s)))}let g=!1,p=!1;const m=[],b=new Set;let S=0;for(let P=0;P<n.length;P++){const M=n[P];let j;if(!ua(M)||!(j=_i(M,"slot",!0))){M.type!==3&&m.push(M);continue}if(u){t.onError(lt(37,j.loc));break}g=!0;const{children:R,loc:k}=M,{arg:H=Me("default",!0),exp:G,loc:h}=j;let te;si(H)?te=H?H.content:"default":c=!0;const D=_i(M,"for"),V=i(G,D,R,k);let re,W;if(re=_i(M,"if"))c=!0,a.push(pc(re.exp,_o(H,V,S++),lh));else if(W=_i(M,/^else(-if)?$/,!0)){let J=P,ve;for(;J--&&(ve=n[J],!(ve.type!==3&&vc(ve))););if(ve&&ua(ve)&&_i(ve,/^(else-)?if$/)){let Ee=a[a.length-1];for(;Ee.alternate.type===19;)Ee=Ee.alternate;Ee.alternate=W.exp?pc(W.exp,_o(H,V,S++),lh):_o(H,V,S++)}else t.onError(lt(30,W.loc))}else if(D){c=!0;const J=D.forParseResult;J?(mg(J),a.push(wt(t.helper(du),[J.source,Ws(yc(J),_o(H,V),!0)]))):t.onError(lt(32,D.loc))}else{if(te){if(b.has(te)){t.onError(lt(38,h));continue}b.add(te),te==="default"&&(p=!0)}r.push(ht(H,V))}}if(!u){const P=(M,j)=>{const R=i(M,void 0,j,s);return t.compatConfig&&(R.isNonScopedSlot=!0),ht("default",R)};g?m.length&&m.some(M=>vc(M))&&(p?t.onError(lt(39,m[0].loc)):r.push(P(void 0,m))):r.push(P(void 0,n))}const _=c?2:Ho(e.children)?3:1;let C=Ci(r.concat(ht("_",Me(_+"",!1))),s);return a.length&&(C=wt(t.helper(Gp),[C,es(a)])),{slots:C,hasDynamicSlots:c}}function _o(e,t,i){const n=[ht("name",e),ht("fn",t)];return i!=null&&n.push(ht("key",Me(String(i),!0))),Ci(n)}function Ho(e){for(let t=0;t<e.length;t++){const i=e[t];switch(i.type){case 1:if(i.tagType===2||Ho(i.children))return!0;break;case 9:if(Ho(i.branches))return!0;break;case 10:case 11:if(Ho(i.children))return!0;break}}return!1}function vc(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():vc(e.content)}const yg=new WeakMap,gS=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:n,props:s}=e,r=e.tagType===1;let a=r?mS(e,t):`"${n}"`;const c=et(a)&&a.callee===cu;let u,g,p=0,m,b,S,_=c||a===xr||a===su||!r&&(n==="svg"||n==="foreignObject"||n==="math");if(s.length>0){const C=vg(e,t,void 0,r,c);u=C.props,p=C.patchFlag,b=C.dynamicPropNames;const P=C.directives;S=P&&P.length?es(P.map(M=>vS(M,t))):void 0,C.shouldUseBlock&&(_=!0)}if(e.children.length>0)if(a===oa&&(_=!0,p|=1024),r&&a!==xr&&a!==oa){const{slots:P,hasDynamicSlots:M}=pS(e,t);g=P,M&&(p|=1024)}else if(e.children.length===1&&a!==xr){const P=e.children[0],M=P.type,j=M===5||M===8;j&&pi(P,t)===0&&(p|=1),j||M===2?g=P:g=e.children}else g=e.children;b&&b.length&&(m=bS(b)),e.codegenNode=jr(t,a,u,g,p===0?void 0:p,m,S,!!_,!1,r,e.loc)};function mS(e,t,i=!1){let{tag:n}=e;const s=bc(n),r=$a(e,"is",!1,!0);if(r)if(s||ts("COMPILER_IS_ON_ELEMENT",t)){let c;if(r.type===6?c=r.value&&Me(r.value.content,!0):(c=r.exp,c||(c=Me("is",!1,r.arg.loc))),c)return wt(t.helper(cu),[c])}else r.type===6&&r.value.content.startsWith("vue:")&&(n=r.value.content.slice(4));const a=Zp(n)||t.isBuiltInComponent(n);return a?(i||t.helper(a),a):(t.helper(lu),t.components.add(n),$r(n,"component"))}function vg(e,t,i=e.props,n,s,r=!1){const{tag:a,loc:c,children:u}=e;let g=[];const p=[],m=[],b=u.length>0;let S=!1,_=0,C=!1,P=!1,M=!1,j=!1,R=!1,k=!1;const H=[],G=V=>{g.length&&(p.push(Ci(ch(g),c)),g=[]),V&&p.push(V)},h=()=>{t.scopes.vFor>0&&g.push(ht(Me("ref_for",!0),Me("true")))},te=({key:V,value:re})=>{if(si(V)){const W=V.content,J=ls(W);if(J&&(!n||s)&&W.toLowerCase()!=="onclick"&&W!=="onUpdate:modelValue"&&!Mn(W)&&(j=!0),J&&Mn(W)&&(k=!0),J&&re.type===14&&(re=re.arguments[0]),re.type===20||(re.type===4||re.type===8)&&pi(re,t)>0)return;W==="ref"?C=!0:W==="class"?P=!0:W==="style"?M=!0:W!=="key"&&!H.includes(W)&&H.push(W),n&&(W==="class"||W==="style")&&!H.includes(W)&&H.push(W)}else R=!0};for(let V=0;V<i.length;V++){const re=i[V];if(re.type===6){const{loc:W,name:J,nameLoc:ve,value:Ee}=re;let ge=!0;if(J==="ref"&&(C=!0,h()),J==="is"&&(bc(a)||Ee&&Ee.content.startsWith("vue:")||ts("COMPILER_IS_ON_ELEMENT",t)))continue;g.push(ht(Me(J,!0,ve),Me(Ee?Ee.content:"",ge,Ee?Ee.loc:W)))}else{const{name:W,arg:J,exp:ve,loc:Ee,modifiers:ge}=re,_e=W==="bind",ye=W==="on";if(W==="slot"){n||t.onError(lt(40,Ee));continue}if(W==="once"||W==="memo"||W==="is"||_e&&Xn(J,"is")&&(bc(a)||ts("COMPILER_IS_ON_ELEMENT",t))||ye&&r)continue;if((_e&&Xn(J,"key")||ye&&b&&Xn(J,"vue:before-update"))&&(S=!0),_e&&Xn(J,"ref")&&h(),!J&&(_e||ye)){if(R=!0,ve)if(_e){if(G(),ts("COMPILER_V_BIND_OBJECT_ORDER",t)){p.unshift(ve);continue}h(),G(),p.push(ve)}else G({type:14,loc:Ee,callee:t.helper(mu),arguments:n?[ve]:[ve,"true"]});else t.onError(lt(_e?34:35,Ee));continue}_e&&ge.some(ui=>ui.content==="prop")&&(_|=32);const Qe=t.directiveTransforms[W];if(Qe){const{props:ui,needRuntime:Gt}=Qe(re,e,t);!r&&ui.forEach(te),ye&&J&&!si(J)?G(Ci(ui,c)):g.push(...ui),Gt&&(m.push(re),li(Gt)&&yg.set(re,Gt))}else my(W)||(m.push(re),b&&(S=!0))}}let D;if(p.length?(G(),p.length>1?D=wt(t.helper(aa),p,c):D=p[0]):g.length&&(D=Ci(ch(g),c)),R?_|=16:(P&&!n&&(_|=2),M&&!n&&(_|=4),H.length&&(_|=8),j&&(_|=32)),!S&&(_===0||_===32)&&(C||k||m.length>0)&&(_|=512),!t.inSSR&&D)switch(D.type){case 15:let V=-1,re=-1,W=!1;for(let Ee=0;Ee<D.properties.length;Ee++){const ge=D.properties[Ee].key;si(ge)?ge.content==="class"?V=Ee:ge.content==="style"&&(re=Ee):ge.isHandlerKey||(W=!0)}const J=D.properties[V],ve=D.properties[re];W?D=wt(t.helper(Fr),[D]):(J&&!si(J.value)&&(J.value=wt(t.helper(pu),[J.value])),ve&&(M||ve.value.type===4&&ve.value.content.trim()[0]==="["||ve.value.type===17)&&(ve.value=wt(t.helper(gu),[ve.value])));break;case 14:break;default:D=wt(t.helper(Fr),[wt(t.helper(Jr),[D])]);break}return{props:D,directives:m,patchFlag:_,dynamicPropNames:H,shouldUseBlock:S}}function ch(e){const t=new Map,i=[];for(let n=0;n<e.length;n++){const s=e[n];if(s.key.type===8||!s.key.isStatic){i.push(s);continue}const r=s.key.content,a=t.get(r);a?(r==="style"||r==="class"||ls(r))&&yS(a,s):(t.set(r,s),i.push(s))}return i}function yS(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=es([e.value,t.value],e.loc)}function vS(e,t){const i=[],n=yg.get(e);n?i.push(t.helperString(n)):(t.helper(uu),t.directives.add(e.name),i.push($r(e.name,"directive")));const{loc:s}=e;if(e.exp&&i.push(e.exp),e.arg&&(e.exp||i.push("void 0"),i.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||i.push("void 0"),i.push("void 0"));const r=Me("true",!1,s);i.push(Ci(e.modifiers.map(a=>ht(a,r)),s))}return es(i,e.loc)}function bS(e){let t="[";for(let i=0,n=e.length;i<n;i++)t+=JSON.stringify(e[i]),i<n-1&&(t+=", ");return t+"]"}function bc(e){return e==="component"||e==="Component"}const wS=(e,t)=>{if(fa(e)){const{children:i,loc:n}=e,{slotName:s,slotProps:r}=SS(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",s,"{}","undefined","true"];let c=2;r&&(a[2]=r,c=3),i.length&&(a[3]=Ws([],i,!1,!1,n),c=4),t.scopeId&&!t.slotted&&(c=5),a.splice(c),e.codegenNode=wt(t.helper(Yp),a,n)}};function SS(e,t){let i='"default"',n;const s=[];for(let r=0;r<e.props.length;r++){const a=e.props[r];if(a.type===6)a.value&&(a.name==="name"?i=JSON.stringify(a.value.content):(a.name=ot(a.name),s.push(a)));else if(a.name==="bind"&&Xn(a.arg,"name")){if(a.exp)i=a.exp;else if(a.arg&&a.arg.type===4){const c=ot(a.arg.content);i=a.exp=Me(c,!1,a.arg.loc)}}else a.name==="bind"&&a.arg&&si(a.arg)&&(a.arg.content=ot(a.arg.content)),s.push(a)}if(s.length>0){const{props:r,directives:a}=vg(e,t,s,!1,!1);n=r,a.length&&t.onError(lt(36,a[0].loc))}return{slotName:i,slotProps:n}}const bg=(e,t,i,n)=>{const{loc:s,modifiers:r,arg:a}=e;!e.exp&&!r.length&&i.onError(lt(35,s));let c;if(a.type===4)if(a.isStatic){let m=a.content;m.startsWith("vue:")&&(m=`vnode-${m.slice(4)}`);const b=t.tagType!==0||m.startsWith("vnode")||!/[A-Z]/.test(m)?ks(ot(m)):`on:${m}`;c=Me(b,!0,a.loc)}else c=Pi([`${i.helperString(dc)}(`,a,")"]);else c=a,c.children.unshift(`${i.helperString(dc)}(`),c.children.push(")");let u=e.exp;u&&!u.content.trim()&&(u=void 0);let g=i.cacheHandlers&&!u&&!i.inVOnce;if(u){const m=tg(u),b=!(m||vw(u)),S=u.content.includes(";");(b||g&&m)&&(u=Pi([`${b?"$event":"(...args)"} => ${S?"{":"("}`,u,S?"}":")"]))}let p={props:[ht(c,u||Me("() => {}",!1,s))]};return n&&(p=n(p)),g&&(p.props[0].value=i.cache(p.props[0].value)),p.props.forEach(m=>m.key.isHandlerKey=!0),p},_S=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const i=e.children;let n,s=!1;for(let r=0;r<i.length;r++){const a=i[r];if(Pl(a)){s=!0;for(let c=r+1;c<i.length;c++){const u=i[c];if(Pl(u))n||(n=i[r]=Pi([a],a.loc)),n.children.push(" + ",u),i.splice(c,1),c--;else{n=void 0;break}}}}if(!(!s||i.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(r=>r.type===7&&!t.directiveTransforms[r.name])&&e.tag!=="template")))for(let r=0;r<i.length;r++){const a=i[r];if(Pl(a)||a.type===8){const c=[];(a.type!==2||a.content!==" ")&&c.push(a),!t.ssr&&pi(a,t)===0&&c.push("1"),i[r]={type:12,content:a,loc:a.loc,codegenNode:wt(t.helper(au),c)}}}}},uh=new WeakSet,CS=(e,t)=>{if(e.type===1&&_i(e,"once",!0))return uh.has(e)||t.inVOnce||t.inSSR?void 0:(uh.add(e),t.inVOnce=!0,t.helper(la),()=>{t.inVOnce=!1;const i=t.currentNode;i.codegenNode&&(i.codegenNode=t.cache(i.codegenNode,!0,!0))})},wg=(e,t,i)=>{const{exp:n,arg:s}=e;if(!n)return i.onError(lt(41,e.loc)),Co();const r=n.loc.source.trim(),a=n.type===4?n.content:r,c=i.bindingMetadata[r];if(c==="props"||c==="props-aliased")return i.onError(lt(44,n.loc)),Co();if(!a.trim()||!tg(n))return i.onError(lt(42,n.loc)),Co();const u=s||Me("modelValue",!0),g=s?si(s)?`onUpdate:${ot(s.content)}`:Pi(['"onUpdate:" + ',s]):"onUpdate:modelValue";let p;const m=i.isTS?"($event: any)":"$event";p=Pi([`${m} => ((`,n,") = $event)"]);const b=[ht(u,e.exp),ht(g,p)];if(e.modifiers.length&&t.tagType===1){const S=e.modifiers.map(C=>C.content).map(C=>(Su(C)?C:JSON.stringify(C))+": true").join(", "),_=s?si(s)?`${s.content}Modifiers`:Pi([s,' + "Modifiers"']):"modelModifiers";b.push(ht(_,Me(`{ ${S} }`,!1,e.loc,2)))}return Co(b)};function Co(e=[]){return{props:e}}const TS=/[\w).+\-_$\]]/,ES=(e,t)=>{ts("COMPILER_FILTERS",t)&&(e.type===5?da(e.content,t):e.type===1&&e.props.forEach(i=>{i.type===7&&i.name!=="for"&&i.exp&&da(i.exp,t)}))};function da(e,t){if(e.type===4)fh(e,t);else for(let i=0;i<e.children.length;i++){const n=e.children[i];typeof n=="object"&&(n.type===4?fh(n,t):n.type===8?da(e,t):n.type===5&&da(n.content,t))}}function fh(e,t){const i=e.content;let n=!1,s=!1,r=!1,a=!1,c=0,u=0,g=0,p=0,m,b,S,_,C=[];for(S=0;S<i.length;S++)if(b=m,m=i.charCodeAt(S),n)m===39&&b!==92&&(n=!1);else if(s)m===34&&b!==92&&(s=!1);else if(r)m===96&&b!==92&&(r=!1);else if(a)m===47&&b!==92&&(a=!1);else if(m===124&&i.charCodeAt(S+1)!==124&&i.charCodeAt(S-1)!==124&&!c&&!u&&!g)_===void 0?(p=S+1,_=i.slice(0,S).trim()):P();else{switch(m){case 34:s=!0;break;case 39:n=!0;break;case 96:r=!0;break;case 40:g++;break;case 41:g--;break;case 91:u++;break;case 93:u--;break;case 123:c++;break;case 125:c--;break}if(m===47){let M=S-1,j;for(;M>=0&&(j=i.charAt(M),j===" ");M--);(!j||!TS.test(j))&&(a=!0)}}_===void 0?_=i.slice(0,S).trim():p!==0&&P();function P(){C.push(i.slice(p,S).trim()),p=S+1}if(C.length){for(S=0;S<C.length;S++)_=AS(_,C[S],t);e.content=_,e.ast=void 0}}function AS(e,t,i){i.helper(fu);const n=t.indexOf("(");if(n<0)return i.filters.add(t),`${$r(t,"filter")}(${e})`;{const s=t.slice(0,n),r=t.slice(n+1);return i.filters.add(s),`${$r(s,"filter")}(${e}${r!==")"?","+r:r}`}}const hh=new WeakSet,xS=(e,t)=>{if(e.type===1){const i=_i(e,"memo");return!i||hh.has(e)?void 0:(hh.add(e),()=>{const n=e.codegenNode||t.currentNode.codegenNode;n&&n.type===13&&(e.tagType!==1&&bu(n,t),e.codegenNode=wt(t.helper(vu),[i.exp,Ws(void 0,n),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function RS(e){return[[CS,rS,xS,cS,ES,wS,gS,hS,_S],{on:bg,bind:lS,model:wg}]}function IS(e,t={}){const i=t.onError||wu,n=t.mode==="module";t.prefixIdentifiers===!0?i(lt(47)):n&&i(lt(48));const s=!1;t.cacheHandlers&&i(lt(49)),t.scopeId&&!n&&i(lt(50));const r=Be({},t,{prefixIdentifiers:s}),a=Ne(e)?Lw(e,r):e,[c,u]=RS();return jw(a,Be({},r,{nodeTransforms:[...c,...t.nodeTransforms||[]],directiveTransforms:Be({},u,t.directiveTransforms||{})})),Ww(a,r)}const OS=()=>({props:[]});/**
* @vue/compiler-dom v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Sg=Symbol(""),_g=Symbol(""),Cg=Symbol(""),Tg=Symbol(""),wc=Symbol(""),Eg=Symbol(""),Ag=Symbol(""),xg=Symbol(""),Rg=Symbol(""),Ig=Symbol("");ow({[Sg]:"vModelRadio",[_g]:"vModelCheckbox",[Cg]:"vModelText",[Tg]:"vModelSelect",[wc]:"vModelDynamic",[Eg]:"withModifiers",[Ag]:"withKeys",[xg]:"vShow",[Rg]:"Transition",[Ig]:"TransitionGroup"});let Ts;function kS(e,t=!1){return Ts||(Ts=document.createElement("div")),t?(Ts.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Ts.children[0].getAttribute("foo")):(Ts.innerHTML=e,Ts.textContent)}const NS={parseMode:"html",isVoidTag:My,isNativeTag:e=>Oy(e)||ky(e)||Ny(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:kS,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return Rg;if(e==="TransitionGroup"||e==="transition-group")return Ig},getNamespace(e,t,i){let n=t?t.ns:i;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(s=>s.type===6&&s.name==="encoding"&&s.value!=null&&(s.value.content==="text/html"||s.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n}},MS=e=>{e.type===1&&e.props.forEach((t,i)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[i]={type:7,name:"bind",arg:Me("style",!0,t.loc),exp:DS(t.value.content,t.loc),modifiers:[],loc:t.loc})})},DS=(e,t)=>{const i=$h(e);return Me(JSON.stringify(i),!1,t,3)};function Hn(e,t){return lt(e,t)}const PS=(e,t,i)=>{const{exp:n,loc:s}=e;return n||i.onError(Hn(53,s)),t.children.length&&(i.onError(Hn(54,s)),t.children.length=0),{props:[ht(Me("innerHTML",!0,s),n||Me("",!0))]}},LS=(e,t,i)=>{const{exp:n,loc:s}=e;return n||i.onError(Hn(55,s)),t.children.length&&(i.onError(Hn(56,s)),t.children.length=0),{props:[ht(Me("textContent",!0),n?pi(n,i)>0?n:wt(i.helperString(Ba),[n],s):Me("",!0))]}},HS=(e,t,i)=>{const n=wg(e,t,i);if(!n.props.length||t.tagType===1)return n;e.arg&&i.onError(Hn(58,e.arg.loc));const{tag:s}=t,r=i.isCustomElement(s);if(s==="input"||s==="textarea"||s==="select"||r){let a=Cg,c=!1;if(s==="input"||r){const u=$a(t,"type");if(u){if(u.type===7)a=wc;else if(u.value)switch(u.value.content){case"radio":a=Sg;break;case"checkbox":a=_g;break;case"file":c=!0,i.onError(Hn(59,e.loc));break}}else bw(t)&&(a=wc)}else s==="select"&&(a=Tg);c||(n.needRuntime=i.helper(a))}else i.onError(Hn(57,e.loc));return n.props=n.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),n},zS=mi("passive,once,capture"),FS=mi("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),jS=mi("left,right"),Og=mi("onkeyup,onkeydown,onkeypress"),BS=(e,t,i,n)=>{const s=[],r=[],a=[];for(let c=0;c<t.length;c++){const u=t[c].content;u==="native"&&Br("COMPILER_V_ON_NATIVE",i)||zS(u)?a.push(u):jS(u)?si(e)?Og(e.content.toLowerCase())?s.push(u):r.push(u):(s.push(u),r.push(u)):FS(u)?r.push(u):s.push(u)}return{keyModifiers:s,nonKeyModifiers:r,eventOptionModifiers:a}},dh=(e,t)=>si(e)&&e.content.toLowerCase()==="onclick"?Me(t,!0):e.type!==4?Pi(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,$S=(e,t,i)=>bg(e,t,i,n=>{const{modifiers:s}=e;if(!s.length)return n;let{key:r,value:a}=n.props[0];const{keyModifiers:c,nonKeyModifiers:u,eventOptionModifiers:g}=BS(r,s,i,e.loc);if(u.includes("right")&&(r=dh(r,"onContextmenu")),u.includes("middle")&&(r=dh(r,"onMouseup")),u.length&&(a=wt(i.helper(Eg),[a,JSON.stringify(u)])),c.length&&(!si(r)||Og(r.content.toLowerCase()))&&(a=wt(i.helper(Ag),[a,JSON.stringify(c)])),g.length){const p=g.map(us).join("");r=si(r)?Me(`${r.content}${p}`,!0):Pi(["(",r,`) + "${p}"`])}return{props:[ht(r,a)]}}),US=(e,t,i)=>{const{exp:n,loc:s}=e;return n||i.onError(Hn(61,s)),{props:[],needRuntime:i.helper(xg)}},WS=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},qS=[MS],VS={cloak:OS,html:PS,text:LS,model:HS,on:$S,show:US};function KS(e,t={}){return IS(e,Be({},NS,t,{nodeTransforms:[WS,...qS,...t.nodeTransforms||[]],directiveTransforms:Be({},VS,t.directiveTransforms||{}),transformHoist:null}))}/**
* vue v3.5.17
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const ph=Object.create(null);function XS(e,t){if(!Ne(e))if(e.nodeType)e=e.innerHTML;else return Dt;const i=by(e,t),n=ph[i];if(n)return n;if(e[0]==="#"){const c=document.querySelector(e);e=c?c.innerHTML:""}const s=Be({hoistStatic:!0,onError:void 0,onWarn:Dt},t);!s.isCustomElement&&typeof customElements<"u"&&(s.isCustomElement=c=>!!customElements.get(c));const{code:r}=KS(e,s),a=new Function("Vue",r)(ew);return a._rc=!0,ph[i]=a}gp(XS);var zo={exports:{}},Fo={exports:{}},YS=Fo.exports,gh;function GS(){return gh||(gh=1,function(e){(function(t,i){e.exports?e.exports=i():t.EvEmitter=i()})(typeof window<"u"?window:YS,function(){function t(){}let i=t.prototype;return i.on=function(n,s){if(!n||!s)return this;let r=this._events=this._events||{},a=r[n]=r[n]||[];return a.includes(s)||a.push(s),this},i.once=function(n,s){if(!n||!s)return this;this.on(n,s);let r=this._onceEvents=this._onceEvents||{},a=r[n]=r[n]||{};return a[s]=!0,this},i.off=function(n,s){let r=this._events&&this._events[n];if(!r||!r.length)return this;let a=r.indexOf(s);return a!=-1&&r.splice(a,1),this},i.emitEvent=function(n,s){let r=this._events&&this._events[n];if(!r||!r.length)return this;r=r.slice(0),s=s||[];let a=this._onceEvents&&this._onceEvents[n];for(let c of r)a&&a[c]&&(this.off(n,c),delete a[c]),c.apply(this,s);return this},i.allOff=function(){return delete this._events,delete this._onceEvents,this},t})}(Fo)),Fo.exports}/*!
* imagesLoaded v5.0.0
* JavaScript is all like "You images are done yet or what?"
* MIT License
*/var JS=zo.exports,mh;function QS(){return mh||(mh=1,function(e){(function(t,i){e.exports?e.exports=i(t,GS()):t.imagesLoaded=i(t,t.EvEmitter)})(typeof window<"u"?window:JS,function(i,n){let s=i.jQuery,r=i.console;function a(b){return Array.isArray(b)?b:typeof b=="object"&&typeof b.length=="number"?[...b]:[b]}function c(b,S,_){if(!(this instanceof c))return new c(b,S,_);let C=b;if(typeof b=="string"&&(C=document.querySelectorAll(b)),!C){r.error(`Bad element for imagesLoaded ${C||b}`);return}this.elements=a(C),this.options={},typeof S=="function"?_=S:Object.assign(this.options,S),_&&this.on("always",_),this.getImages(),s&&(this.jqDeferred=new s.Deferred),setTimeout(this.check.bind(this))}c.prototype=Object.create(n.prototype),c.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const u=[1,9,11];c.prototype.addElementImages=function(b){b.nodeName==="IMG"&&this.addImage(b),this.options.background===!0&&this.addElementBackgroundImages(b);let{nodeType:S}=b;if(!S||!u.includes(S))return;let _=b.querySelectorAll("img");for(let C of _)this.addImage(C);if(typeof this.options.background=="string"){let C=b.querySelectorAll(this.options.background);for(let P of C)this.addElementBackgroundImages(P)}};const g=/url\((['"])?(.*?)\1\)/gi;c.prototype.addElementBackgroundImages=function(b){let S=getComputedStyle(b);if(!S)return;let _=g.exec(S.backgroundImage);for(;_!==null;){let C=_&&_[2];C&&this.addBackground(C,b),_=g.exec(S.backgroundImage)}},c.prototype.addImage=function(b){let S=new p(b);this.images.push(S)},c.prototype.addBackground=function(b,S){let _=new m(b,S);this.images.push(_)},c.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}let b=(S,_,C)=>{setTimeout(()=>{this.progress(S,_,C)})};this.images.forEach(function(S){S.once("progress",b),S.check()})},c.prototype.progress=function(b,S,_){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!b.isLoaded,this.emitEvent("progress",[this,b,S]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,b),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&r&&r.log(`progress: ${_}`,b,S)},c.prototype.complete=function(){let b=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(b,[this]),this.emitEvent("always",[this]),this.jqDeferred){let S=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[S](this)}};function p(b){this.img=b}p.prototype=Object.create(n.prototype),p.prototype.check=function(){if(this.getIsImageComplete()){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src},p.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},p.prototype.confirm=function(b,S){this.isLoaded=b;let{parentNode:_}=this.img,C=_.nodeName==="PICTURE"?_:this.img;this.emitEvent("progress",[this,C,S])},p.prototype.handleEvent=function(b){let S="on"+b.type;this[S]&&this[S](b)},p.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},p.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},p.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)};function m(b,S){this.url=b,this.element=S,this.img=new Image}return m.prototype=Object.create(p.prototype),m.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},m.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},m.prototype.confirm=function(b,S){this.isLoaded=b,this.emitEvent("progress",[this,this.element,S])},c.makeJQueryPlugin=function(b){b=b||i.jQuery,b&&(s=b,s.fn.imagesLoaded=function(S,_){return new c(this,S,_).jqDeferred.promise(s(this))})},c.makeJQueryPlugin(),c})}(zo)),zo.exports}var ZS=QS();const e_=jh(ZS),Oi=(e,t)=>{const i=e.__vccOpts||e;for(const[n,s]of t)i[n]=s;return i},t_={props:{image:{required:!0,type:String}},data:()=>({status:null}),mounted(){this.setup()},watch:{image(){this.setup()}},methods:{setup(){this.setStart(),setTimeout(()=>{var e=e_(this.$el);e.once("done",()=>{this.status!=="failed"&&this.setComplete()}).once("fail",()=>{this.setFailed()})},300)},setComplete(){this.status="completed"},setStart(){this.status="loading"},setFailed(){this.status="failed"}}},i_=["src"],n_={key:0,class:"loadingMsg"};function s_(e,t,i,n,s,r){return ie(),me("div",{class:Yt(["loadingcontainer",e.status])},[U("img",{src:i.image,style:{display:"none"}},null,8,i_),Zi(e.$slots,"default"),ke(Ep,{name:"fade"},{default:ci(()=>[e.status==="loading"?(ie(),me("div",n_,t[0]||(t[0]=[U("div",{class:"cptLoadingSpinner"},null,-1)]))):xe("",!0)]),_:1})],2)}const r_=Oi(t_,[["render",s_]]),kg=(e,t)=>!e.active||t===null?!1:e.width===0&&t.height<e.height||e.height===0&&t.width<e.width?!0:e.height===9999?t.width<e.width:e.width===9999?t.height<e.height:t.width<e.width||t.height<e.height,o_=(e,t,i)=>{let n=0,s=0,r=e,a=t;return e/t<=i?(s=t/2-e/i/2,a=t-s):(n=e/2-t*i/2,r=e-n),[n,s,r,a]},a_={components:{LoadingContainer:r_},props:{image:{required:!0,type:Object},lang:{required:!0,type:Object},sameRatioMode:{required:!0,type:[Object,String,null]},notYetCropped:{required:!0,type:Boolean},currentCropSize:{required:!0,type:[Object,String,null]}},computed:{isLowRes(){return kg(this.image,this.currentCropSize)},cssClass(){var e={active:this.image.active};return e["cptImageSize-"+this.image.nameLabel]=!0,e}},methods:{isImageInGroupNotYetCropped(e){return this.cropData.imageSizes.filter(t=>t.printRatio===e&&t.notYetCropped).length>0}}},l_=["title"],c_=["title"],u_={class:"dimensions"},f_={class:"ratio"},h_=["title"];function d_(e,t,i,n,s,r){const a=pt("LoadingContainer");return ie(),me("section",{class:Yt(["CropImageSize",r.cssClass])},[i.sameRatioMode!=="group"?(ie(),me(it,{key:0},[U("header",null,le(i.image.nameLabel),1),r.isLowRes?(ie(),me("div",{key:0,class:"lowResWarning",title:i.lang.lowResWarning},t[0]||(t[0]=[U("span",null,"!",-1)]),8,l_)):xe("",!0),!r.isLowRes&&i.image.notYetCropped?(ie(),me("div",{key:1,class:"notYetCropped",title:i.lang.notYetCropped},t[1]||(t[1]=[U("span",{class:"dashicons dashicons-image-crop"},null,-1)]),8,c_)):xe("",!0),U("div",u_,le(i.lang.dimensions)+" "+le(i.image.width)+" x "+le(i.image.height)+" "+le(i.lang.pixel),1),U("div",f_,le(i.lang.ratio)+" "+le(i.image.printRatio),1)],64)):(ie(),me(it,{key:1},[U("header",null,le(i.image.printRatio),1),i.notYetCropped?(ie(),me("div",{key:0,class:"notYetCropped",title:i.lang.notYetCropped},t[2]||(t[2]=[U("span",{class:"dashicons dashicons-image-crop"},null,-1)]),8,h_)):xe("",!0)],64)),ke(a,{image:i.image.url+"?cacheBreak="+i.image.cacheBreak},{default:ci(()=>[U("div",{class:"cptImageBgContainer",style:fs({"background-image":"url("+i.image.url+"?cacheBreak="+i.image.cacheBreak+")"})},null,4)]),_:1},8,["image"])],2)}const p_=Oi(a_,[["render",d_]]),g_={props:{},data:()=>({closed:!1}),methods:{close(){this.closed=!0}}},m_={key:0,class:"notice notice-warning is-dismissible cptMessage","aria-role":"alert"};function y_(e,t,i,n,s,r){return e.closed?xe("",!0):(ie(),me("div",m_,[U("p",null,[Zi(e.$slots,"default")]),U("button",{type:"button",class:"notice-dismiss",onClick:t[0]||(t[0]=a=>r.close()),"aria-label":"close"})]))}const Ng=Oi(g_,[["render",y_]]);function yh(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),i.push.apply(i,n)}return i}function Ke(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?yh(Object(i),!0).forEach(function(n){Ti(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):yh(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function Ti(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function v_(e,t){if(e==null)return{};var i,n,s=function(a,c){if(a==null)return{};var u,g,p={},m=Object.keys(a);for(g=0;g<m.length;g++)u=m[g],c.indexOf(u)>=0||(p[u]=a[u]);return p}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)i=r[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(s[i]=e[i])}return s}function os(e){return function(t){if(Array.isArray(t))return Hl(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,i){if(t){if(typeof t=="string")return Hl(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hl(t,i)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Hl(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var vh,b_,To,bt=(vh=function(e){/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(){var t={}.hasOwnProperty;function i(){for(var n=[],s=0;s<arguments.length;s++){var r=arguments[s];if(r){var a=typeof r;if(a==="string"||a==="number")n.push(r);else if(Array.isArray(r)){if(r.length){var c=i.apply(null,r);c&&n.push(c)}}else if(a==="object")if(r.toString===Object.prototype.toString)for(var u in r)t.call(r,u)&&r[u]&&n.push(u);else n.push(r.toString())}}return n.join(" ")}e.exports?(i.default=i,e.exports=i):window.classNames=i})()},vh(To={path:b_,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t==null&&To.path)}},To.exports),To.exports),Li=function(e){return function(t,i){if(!t)return e;var n;typeof t=="string"?n=t:i=t;var s=e;return n&&(s+="__"+n),s+(i?Object.keys(i).reduce(function(r,a){var c=i[a];return c&&(r+=" "+(typeof c=="boolean"?s+"--"+a:s+"--"+a+"_"+c)),r},""):"")}};function Sc(e,t,i){var n,s,r,a,c;function u(){var p=Date.now()-a;p<t&&p>=0?n=setTimeout(u,t-p):(n=null,i||(c=e.apply(r,s),r=s=null))}t==null&&(t=100);var g=function(){r=this,s=arguments,a=Date.now();var p=i&&!n;return n||(n=setTimeout(u,t)),p&&(c=e.apply(r,s),r=s=null),c};return g.clear=function(){n&&(clearTimeout(n),n=null)},g.flush=function(){n&&(c=e.apply(r,s),r=s=null,clearTimeout(n),n=null)},g}Sc.debounce=Sc;var _c=Sc,Ce=function(){return Ce=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},Ce.apply(this,arguments)};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function Mg(e,t){var i,n;return e&&t?(i=""+e+t[0].toUpperCase()+t.slice(1),n=e+"-"+t):(i=e||t,n=e||t),{name:i,classname:n}}function Dg(e){return/^blob:/.test(e)}function bh(e){return Dg(e)||function(t){return/^data:/.test(t)}(e)}function Es(e){return!!(e&&e.constructor&&e.call&&e.apply)}function Tt(e){return e===void 0}function jo(e){return typeof e=="object"&&e!==null}function Cc(e,t,i){var n={};return jo(e)?(Object.keys(t).forEach(function(s){Tt(e[s])?n[s]=t[s]:jo(t[s])?jo(e[s])?n[s]=Cc(e[s],t[s],i[s]):n[s]=e[s]?t[s]:i[s]:t[s]===!0||t[s]===!1?n[s]=!!e[s]:n[s]=e[s]}),n):e?t:i}function Eo(e){var t=Number(e);return Number.isNaN(t)?e:t}function wh(e){return typeof(e=="number"||function(t){return typeof t=="object"&&t!==null}(e)&&toString.call(e)=="[object Number]")&&!Pg(e)}function Pg(e){return e!=e}function Lg(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}var Rr=function(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.type="manipulateImage",this.move=e,this.scale=t},w_=function(e,t){t===void 0&&(t={}),this.type="resize",this.directions=e,this.params=t},Tu=function(e){this.type="move",this.directions=e},S_=function(){function e(t,i,n,s,r){this.type="drag",this.nativeEvent=t,this.position=n,this.previousPosition=s,this.element=i,this.anchor=r}return e.prototype.shift=function(){var t=this,i=t.element,n=t.anchor,s=t.position;if(i){var r=i.getBoundingClientRect(),a=r.left,c=r.top;return{left:s.left-a-n.left,top:s.top-c-n.top}}return{left:0,top:0}},e}(),Eu={name:"DraggableElement",props:{classname:{type:String}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(e){e.cancelable&&!this.disabled&&e.touches.length===1&&(this.touches=os(e.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),e.touches.length&&this.initAnchor(this.touches.reduce(function(t,i){return{clientX:t.clientX+i.clientX/e.touches.length,clientY:t.clientY+i.clientY/e.touches.length}},{clientX:0,clientY:0})),e.preventDefault&&e.preventDefault(),e.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(e){this.touches.length&&(this.processMove(e,e.touches),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},onMouseDown:function(e){if(!this.disabled){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.initAnchor(t),e.stopPropagation()}},onMouseMove:function(e){this.touches.length&&(this.processMove(e,[{fake:!0,clientX:e.clientX,clientY:e.clientY}]),e.preventDefault&&e.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(e){var t=this.$refs.draggable.getBoundingClientRect(),i=t.left,n=t.right,s=t.bottom,r=t.top;this.anchor={left:e.clientX-i,top:e.clientY-r,bottom:s-e.clientY,right:n-e.clientX}},processMove:function(e,t){var i=os(t);if(this.touches.length){if(this.touches.length===1&&i.length===1){var n=this.$refs.draggable;this.$emit("drag",new S_(e,n,{left:i[0].clientX,top:i[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=i}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}},emits:["drag","drag-end","leave","enter"]};Eu.render=function(e,t,i,n,s,r){return ie(),Ve("div",{ref:"draggable",class:i.classname,onTouchstart:t[1]||(t[1]=function(){return r.onTouchStart&&r.onTouchStart.apply(r,arguments)}),onMousedown:t[2]||(t[2]=function(){return r.onMouseDown&&r.onMouseDown.apply(r,arguments)}),onMouseover:t[3]||(t[3]=function(){return r.onMouseOver&&r.onMouseOver.apply(r,arguments)}),onMouseleave:t[4]||(t[4]=function(){return r.onMouseLeave&&r.onMouseLeave.apply(r,arguments)})},[Zi(e.$slots,"default")],34)};var zl=Li("vue-handler-wrapper"),Hg={name:"HandlerWrapper",components:{DraggableElement:Eu},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var e;if(this.horizontalPosition||this.verticalPosition){var t,i=Mg(this.horizontalPosition,this.verticalPosition);e=zl((Ti(t={},i.classname,!0),Ti(t,"disabled",this.disabled),t))}else e=zl({disabled:this.disabled});return{root:e,draggable:zl("draggable")}}},emits:["leave","enter","drag","drag-end"]};Hg.render=function(e,t,i,n,s,r){var a=pt("DraggableElement");return ie(),Ve("div",{class:r.classes.root},[ke(a,{class:r.classes.draggable,onDrag:t[1]||(t[1]=function(c){return e.$emit("drag",c)}),onDragEnd:t[2]||(t[2]=function(c){return e.$emit("drag-end")}),onLeave:t[3]||(t[3]=function(c){return e.$emit("leave")}),onEnter:t[4]||(t[4]=function(c){return e.$emit("enter")})},{default:ci(function(){return[Zi(e.$slots,"default")]}),_:3},8,["class"])],2)};var __=Li("vue-line-wrapper"),zg={name:"LineWrapper",components:{DraggableElement:Eu},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var e;return __((Ti(e={},this.position,!0),Ti(e,"disabled",this.disabled),e))}},emits:["leave","enter","drag","drag-end"]};zg.render=function(e,t,i,n,s,r){var a=pt("DraggableElement");return ie(),Ve(a,{class:r.classname,onDrag:t[1]||(t[1]=function(c){return e.$emit("drag",c)}),onDragEnd:t[2]||(t[2]=function(c){return e.$emit("drag-end")}),onLeave:t[3]||(t[3]=function(c){return e.$emit("leave")}),onEnter:t[4]||(t[4]=function(c){return e.$emit("enter")})},{default:ci(function(){return[Zi(e.$slots,"default")]}),_:3},8,["class"])};var Yi=["left","right","top","bottom"],C_=["left","right"],T_=["top","bottom"],E_=["left","top"],A_=["fill-area","fit-area","stencil","none"],Sh={left:0,top:0,width:0,height:0};function _h(e,t,i){return!(i=i||["width","height","left","top"]).some(function(n){return e[n]!==t[n]})}function Qi(e){return{left:e.left,top:e.top,right:e.left+e.width,bottom:e.top+e.height}}function Ks(e,t){return{left:e.left-t.left,top:e.top-t.top}}function Nt(e){return{left:e.left+e.width/2,top:e.top+e.height/2}}function Wr(e,t){var i={left:0,top:0,right:0,bottom:0};return Yi.forEach(function(n){var s=t[n],r=Qi(e)[n];i[n]=s!==void 0&&r!==void 0?n==="left"||n==="top"?Math.max(0,s-r):Math.max(0,r-s):0}),i}function Xi(e,t){return{left:e.left-t.left,top:e.top-t.top,width:e.width+t.left+t.right,height:e.height+t.top+t.bottom}}function qa(e){return{left:-e.left,top:-e.top}}function ri(e,t){return Ce(Ce({},e),{left:e.left+t.left,top:e.top+t.top})}function xi(e,t,i,n){if(t!==1){if(i){var s=Nt(e);return{width:e.width*t,height:e.height*t,left:e.left+e.width*(1-t)/2+(i.left-s.left)*(1-t),top:e.top+e.height*(1-t)/2+(i.top-s.top)*(1-t)}}return{width:e.width*t,height:e.height*t,left:e.left+e.width*(1-t)/2,top:e.top+e.height*(1-t)/2}}return e}function Xe(e){return e.width/e.height}function Xs(e,t){return Math.min(t.right!==void 0&&t.left!==void 0?(t.right-t.left)/e.width:1/0,t.bottom!==void 0&&t.top!==void 0?(t.bottom-t.top)/e.height:1/0)}function Ys(e,t){var i={left:0,top:0},n=Wr(e,t);return n.left&&n.left>0?i.left=n.left:n.right&&n.right>0&&(i.left=-n.right),n.top&&n.top>0?i.top=n.top:n.bottom&&n.bottom>0&&(i.top=-n.bottom),i}function Fl(e,t){var i;return t.minimum&&e<t.minimum?i=t.minimum:t.maximum&&e>t.maximum&&(i=t.maximum),i}function Fg(e,t){var i=Xe(e),n=Xe(t);return t.width<1/0&&t.height<1/0?i>n?{width:t.width,height:t.width/i}:{width:t.height*i,height:t.height}:t.width<1/0?{width:t.width,height:t.width/i}:t.height<1/0?{width:t.height*i,height:t.height}:e}function jg(e,t){var i=t*Math.PI/180;return{width:Math.abs(e.width*Math.cos(i))+Math.abs(e.height*Math.sin(i)),height:Math.abs(e.width*Math.sin(i))+Math.abs(e.height*Math.cos(i))}}function Nn(e,t){var i=t*Math.PI/180;return{left:e.left*Math.cos(i)-e.top*Math.sin(i),top:e.left*Math.sin(i)+e.top*Math.cos(i)}}function Va(e,t){var i=Wr(Mt(e,t),t);return i.left+i.right+i.top+i.bottom?i.left+i.right>i.top+i.bottom?Math.min((e.width+i.left+i.right)/e.width,Xs(e,t)):Math.min((e.height+i.top+i.bottom)/e.height,Xs(e,t)):1}function Mt(e,t,i){i===void 0&&(i=!1);var n=Ys(e,t);return ri(e,i?qa(n):n)}function Tc(e){return{width:e.right!==void 0&&e.left!==void 0?e.right-e.left:1/0,height:e.bottom!==void 0&&e.top!==void 0?e.bottom-e.top:1/0}}function x_(e,t){return Ce(Ce({},e),{minWidth:Math.min(t.width,e.minWidth),minHeight:Math.min(t.height,e.minHeight),maxWidth:Math.min(t.width,e.maxWidth),maxHeight:Math.min(t.height,e.maxHeight)})}function Bg(e,t,i){i===void 0&&(i=!0);var n={};return Yi.forEach(function(s){var r=e[s],a=t[s];r!==void 0&&a!==void 0?n[s]=s==="left"||s==="top"?i?Math.max(r,a):Math.min(r,a):i?Math.min(r,a):Math.max(r,a):a!==void 0?n[s]=a:r!==void 0&&(n[s]=r)}),n}function Ka(e,t){return Bg(e,t,!0)}function Ch(e){var t=e.size,i=e.aspectRatio,n=e.ignoreMinimum,s=e.sizeRestrictions;return!!((t.correctRatio||Xe(t)>=i.minimum&&Xe(t)<=i.maximum)&&t.height<=s.maxHeight&&t.width<=s.maxWidth&&t.width&&t.height&&(n||t.height>=s.minHeight&&t.width>=s.minWidth))}function Th(e,t){return Math.pow(e.width-t.width,2)+Math.pow(e.height-t.height,2)}function hn(e){var t=e.width,i=e.height,n=e.sizeRestrictions,s={minimum:e.aspectRatio&&e.aspectRatio.minimum||0,maximum:e.aspectRatio&&e.aspectRatio.maximum||1/0},r={width:Math.max(n.minWidth,Math.min(n.maxWidth,t)),height:Math.max(n.minHeight,Math.min(n.maxHeight,i))};function a(g,p){return p===void 0&&(p=!1),g.reduce(function(m,b){return Ch({size:b,aspectRatio:s,sizeRestrictions:n,ignoreMinimum:p})&&(!m||Th(b,{width:t,height:i})<Th(m,{width:t,height:i}))?b:m},null)}var c=[];s&&[s.minimum,s.maximum].forEach(function(g){g&&c.push({width:r.width,height:r.width/g,correctRatio:!0},{width:r.height*g,height:r.height,correctRatio:!0})}),Ch({size:r,aspectRatio:s,sizeRestrictions:n})&&c.push(r);var u=a(c)||a(c,!0);return u&&{width:u.width,height:u.height}}function Ec(e){var t=e.event,i=e.coordinates,n=e.positionRestrictions,s=n===void 0?{}:n,r=ri(i,t.directions);return ri(r,Ys(r,s))}function R_(e){var t=e.coordinates,i=e.transform,n=e.imageSize,s=e.sizeRestrictions,r=e.positionRestrictions,a=e.aspectRatio,c=e.visibleArea,u=function(p,m){return Ec({coordinates:p,positionRestrictions:r,event:new Tu({left:m.left-p.left,top:m.top-p.top})})},g=Ce({},t);return(Array.isArray(i)?i:[i]).forEach(function(p){var m={};Tt((m=typeof p=="function"?p({coordinates:g,imageSize:n,visibleArea:c}):p).width)&&Tt(m.height)||(g=function(b,S){var _=Ce(Ce(Ce({},b),hn({width:S.width,height:S.height,sizeRestrictions:s,aspectRatio:a})),{left:0,top:0});return u(_,{left:b.left,top:b.top})}(g,Ce(Ce({},g),m))),Tt(m.left)&&Tt(m.top)||(g=u(g,Ce(Ce({},g),m)))}),g}function I_(e){e.event;var t=e.getAreaRestrictions,i=e.boundaries,n=e.coordinates,s=e.visibleArea;e.aspectRatio;var r=e.stencilSize,a=e.sizeRestrictions,c=e.positionRestrictions;e.stencilReference;var u,g,p,m=Ce({},n),b=Ce({},s),S=Ce({},r);u=Xe(S),g=Xe(m),p===void 0&&(p=.001),(u===0||g===0?Math.abs(g-u)<p:Math.abs(g/u)<1+p&&Math.abs(g/u)>1-p)||(m=Ce(Ce({},m),hn({sizeRestrictions:a,width:m.width,height:m.height,aspectRatio:{minimum:Xe(S),maximum:Xe(S)}})));var _=Va(b=xi(b,m.width*i.width/(b.width*S.width)),t({visibleArea:b,type:"resize"}));return _!==1&&(b=xi(b,_),m=xi(m,_)),b=Mt(b=ri(b,Ks(Nt(m),Nt(b))),t({visibleArea:b,type:"move"})),{coordinates:m=Mt(m,Ka(Qi(b),c)),visibleArea:b}}function O_(e){var t=e.event,i=e.getAreaRestrictions,n=e.boundaries,s=e.coordinates,r=e.visibleArea;e.aspectRatio,e.stencilSize,e.sizeRestrictions;var a=e.positionRestrictions;e.stencilReference;var c=Ce({},s),u=Ce({},r);if(s&&r&&t.type!=="manipulateImage"){var g={width:0,height:0};u.width,n.width,Xe(n)>Xe(c)?(g.height=.8*n.height,g.width=g.height*Xe(c)):(g.width=.8*n.width,g.height=g.width*Xe(c));var p=Va(u=xi(u,c.width*n.width/(u.width*g.width)),i({visibleArea:u,type:"resize"}));u=xi(u,p),p!==1&&(g.height/=p,g.width/=p),u=Mt(u=ri(u,Ks(Nt(c),Nt(u))),i({visibleArea:u,type:"move"})),c=Mt(c,Ka(Qi(u),a))}return{coordinates:c,visibleArea:u}}function k_(e){var t=e.event,i=e.coordinates,n=e.visibleArea,s=e.getAreaRestrictions,r=Ce({},n),a=Ce({},i);if(t.type==="setCoordinates"){var c=Math.max(0,a.width-r.width),u=Math.max(0,a.height-r.height);c>u?r=xi(r,Math.min(a.width/r.width,Xs(r,s({visibleArea:r,type:"resize"})))):u>c&&(r=xi(r,Math.min(a.height/r.height,Xs(r,s({visibleArea:r,type:"resize"}))))),r=Mt(r=ri(r,qa(Ys(a,Qi(r)))),s({visibleArea:r,type:"move"}))}return{visibleArea:r,coordinates:a}}function N_(e){var t=e.imageSize,i=e.visibleArea,n=e.coordinates,s=i||t;return{left:(i?i.left:0)+s.width/2-n.width/2,top:(i?i.top:0)+s.height/2-n.height/2}}function M_(e){var t=e.imageSize,i=e.visibleArea,n=e.aspectRatio,s=e.sizeRestrictions,r=i||t,a=Math.min(n.maximum||1/0,Math.max(n.minimum||0,Xe(r))),c=r.width<r.height?{width:.8*r.width,height:.8*r.width/a}:{height:.8*r.height,width:.8*r.height*a};return hn(Ce(Ce({},c),{aspectRatio:n,sizeRestrictions:s}))}function D_(e){var t,i,n=e.imageSize,s=e.visibleArea,r=e.boundaries,a=e.aspectRatio,c=e.sizeRestrictions,u=e.stencilSize,g=s||n;return Xe(g)>Xe(r)?i=(t=u.height*g.height/r.height)*Xe(u):t=(i=u.width*g.width/r.width)/Xe(u),hn({width:i,height:t,aspectRatio:a,sizeRestrictions:c})}function P_(e){var t=e.getAreaRestrictions,i=e.coordinates,n=e.imageSize,s=Xe(e.boundaries);if(i){var r={height:Math.max(i.height,n.height),width:Math.max(i.width,n.width)},a=Fg({width:Xe(r)>s?r.width:r.height*s,height:Xe(r)>s?r.width/s:r.height},Tc(t())),c={left:i.left+i.width/2-a.width/2,top:i.top+i.height/2-a.height/2,width:a.width,height:a.height},u=Wr(i,Qi(Ce({left:0,top:0},n))),g={};return!u.left&&!u.right&&c.width<=n.width&&(g.left=0,g.right=n.width),!u.top&&!u.bottom&&c.height<=n.height&&(g.top=0,g.bottom=n.height),Mt(c,g)}var p=Xe(n);return a={height:p>s?n.height:n.width/s,width:p>s?n.height*s:n.width},{left:n.width/2-a.width/2,top:n.height/2-a.height/2,width:a.width,height:a.height}}function Ao(e,t){return Bg(e,Qi(t))}function L_(e){var t=e.event,i=e.coordinates,n=e.visibleArea,s=e.sizeRestrictions,r=e.getAreaRestrictions,a=e.positionRestrictions,c=e.adjustStencil,u=t.scale,g=t.move,p=Ce({},n),m=Ce({},i),b=1,S=1,_=u.factor&&Math.abs(u.factor-1)>.001;p=ri(p,{left:g.left||0,top:g.top||0});var C={stencil:{minimum:Math.max(s.minWidth?s.minWidth/m.width:0,s.minHeight?s.minHeight/m.height:0),maximum:Math.min(s.maxWidth?s.maxWidth/m.width:1/0,s.maxHeight?s.maxHeight/m.height:1/0,Xs(m,a))},area:{maximum:Xs(p,r({visibleArea:p,type:"resize"}))}};u.factor&&_&&(u.factor<1?(S=Math.max(u.factor,C.stencil.minimum))>1&&(S=1):u.factor>1&&(S=Math.min(u.factor,Math.min(C.area.maximum,C.stencil.maximum)))<1&&(S=1)),S&&(p=xi(p,S,u.center));var P=i.left-n.left,M=n.width+n.left-(i.width+i.left),j=i.top-n.top,R=n.height+n.top-(i.height+i.top);return p=Mt(p=ri(p,Ys(p,{left:a.left!==void 0?a.left-P*S:void 0,top:a.top!==void 0?a.top-j*S:void 0,bottom:a.bottom!==void 0?a.bottom+R*S:void 0,right:a.right!==void 0?a.right+M*S:void 0})),r({visibleArea:p,type:"move"})),m.width=m.width*S,m.height=m.height*S,m.left=p.left+P*S,m.top=p.top+j*S,m=Mt(m,Ka(Qi(p),a)),u.factor&&_&&c&&(u.factor>1?b=Math.min(C.area.maximum,u.factor)/S:u.factor<1&&(b=Math.max(m.height/p.height,m.width/p.width,u.factor/S)),b!==1&&(p=ri(p=Mt(p=xi(p,b,u.factor>1?u.center:Nt(m)),r({visibleArea:p,type:"move"})),qa(Ys(m,Qi(p)))))),{coordinates:m,visibleArea:p}}function H_(e){var t=e.aspectRatio,i=e.getAreaRestrictions,n=e.coordinates,s=e.visibleArea,r=e.sizeRestrictions,a=e.positionRestrictions,c=e.imageSize,u=e.previousImageSize,g=e.angle,p=Ce({},n),m=Ce({},s),b=Nn(Nt(Ce({left:0,top:0},u)),g);return(p=Ce(Ce({},hn({sizeRestrictions:r,aspectRatio:t,width:p.width,height:p.height})),Nn(Nt(p),g))).left-=b.left-c.width/2+p.width/2,p.top-=b.top-c.height/2+p.height/2,m=xi(m,Va(m,i({visibleArea:m,type:"resize"}))),{coordinates:p=Mt(p,a),visibleArea:m=Mt(m=ri(m,Ks(Nt(p),Nt(n))),i({visibleArea:m,type:"move"}))}}function z_(e){var t=e.flip,i=e.previousFlip,n=e.rotate,s=e.getAreaRestrictions,r=e.coordinates,a=e.visibleArea,c=e.imageSize,u=Ce({},r),g=Ce({},a),p=i.horizontal!==t.horizontal,m=i.vertical!==t.vertical;if(p||m){var b=Nn({left:c.width/2,top:c.height/2},-n),S=Nn(Nt(u),-n),_=Nn({left:p?b.left-(S.left-b.left):S.left,top:m?b.top-(S.top-b.top):S.top},n);u=ri(u,Ks(_,Nt(u))),S=Nn(Nt(g),-n),g=Mt(g=ri(g,Ks(_=Nn({left:p?b.left-(S.left-b.left):S.left,top:m?b.top-(S.top-b.top):S.top},n),Nt(g))),s({visibleArea:g,type:"move"}))}return{coordinates:u,visibleArea:g}}function Eh(e){var t=e.directions,i=e.coordinates,n=e.positionRestrictions,s=n===void 0?{}:n,r=e.sizeRestrictions,a=e.preserveRatio,c=e.compensate,u=Ce({},t),g=Xi(i,u).width,p=Xi(i,u).height;g<0&&(u.left<0&&u.right<0?(u.left=-(i.width-r.minWidth)/(u.left/u.right),u.right=-(i.width-r.minWidth)/(u.right/u.left)):u.left<0?u.left=-(i.width-r.minWidth):u.right<0&&(u.right=-(i.width-r.minWidth))),p<0&&(u.top<0&&u.bottom<0?(u.top=-(i.height-r.minHeight)/(u.top/u.bottom),u.bottom=-(i.height-r.minHeight)/(u.bottom/u.top)):u.top<0?u.top=-(i.height-r.minHeight):u.bottom<0&&(u.bottom=-(i.height-r.minHeight)));var m=Wr(Xi(i,u),s);c&&(m.left&&m.left>0&&m.right===0?(u.right+=m.left,u.left-=m.left):m.right&&m.right>0&&m.left===0&&(u.left+=m.right,u.right-=m.right),m.top&&m.top>0&&m.bottom===0?(u.bottom+=m.top,u.top-=m.top):m.bottom&&m.bottom>0&&m.top===0&&(u.top+=m.bottom,u.bottom-=m.bottom),m=Wr(Xi(i,u),s));var b={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(Yi.forEach(function(C){var P=m[C];P&&u[C]&&(b[C]=Math.max(0,1-P/u[C]))}),a){var S=Math.min.apply(null,Yi.map(function(C){return b[C]}));S!==1/0&&Yi.forEach(function(C){u[C]*=S})}else Yi.forEach(function(C){b[C]!==1/0&&(u[C]*=b[C])});if(g=Xi(i,u).width,p=Xi(i,u).height,u.right+u.left&&(g>r.maxWidth?b.width=(r.maxWidth-i.width)/(u.right+u.left):g<r.minWidth&&(b.width=(r.minWidth-i.width)/(u.right+u.left))),u.bottom+u.top&&(p>r.maxHeight?b.height=(r.maxHeight-i.height)/(u.bottom+u.top):p<r.minHeight&&(b.height=(r.minHeight-i.height)/(u.bottom+u.top))),a){var _=Math.min(b.width,b.height);_!==1/0&&Yi.forEach(function(C){u[C]*=_})}else b.width!==1/0&&C_.forEach(function(C){u[C]*=b.width}),b.height!==1/0&&T_.forEach(function(C){u[C]*=b.height});return u}function xo(e,t,i){return t==0&&i==0?e/2:t==0?0:i==0?e:e*Math.abs(t/(t+i))}var F_=Li("vue-simple-handler"),j_=Li("vue-simple-handler-wrapper"),Au={name:"SimpleHandler",components:{HandlerWrapper:Hg},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var e,t=(Ti(e={},this.horizontalPosition,!!this.horizontalPosition),Ti(e,this.verticalPosition,!!this.verticalPosition),Ti(e,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),Ti(e,"hover",this.hover),e);return{default:bt(F_(t),this.defaultClass,this.hover&&this.hoverClass),wrapper:bt(j_(t),this.wrapperClass)}}},methods:{onDrag:function(e){this.$emit("drag",e)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};Au.render=function(e,t,i,n,s,r){var a=pt("HandlerWrapper");return ie(),Ve(a,{class:r.classes.wrapper,"vertical-position":i.verticalPosition,"horizontal-position":i.horizontalPosition,disabled:i.disabled,onDrag:r.onDrag,onDragEnd:r.onDragEnd,onEnter:r.onEnter,onLeave:r.onLeave},{default:ci(function(){return[ke("div",{class:r.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var B_=Li("vue-simple-line"),$_=Li("vue-simple-line-wrapper"),xu={name:"SimpleLine",components:{LineWrapper:zg},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:bt(B_(Ti({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:bt($_(Ti({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(e){this.$emit("drag",e)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};xu.render=function(e,t,i,n,s,r){var a=pt("LineWrapper");return ie(),Ve(a,{class:r.classes.wrapper,position:i.position,disabled:i.disabled,onDrag:r.onDrag,onDragEnd:r.onDragEnd,onEnter:r.onEnter,onLeave:r.onLeave},{default:ci(function(){return[ke("div",{class:r.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var jl=Li("vue-bounding-box"),U_=["east","west",null],W_=["south","north",null],$g={name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return Au}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return xu}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var e=[];return U_.forEach(function(t){W_.forEach(function(i){if(t!==i){var n=Mg(t,i),s=n.name,r=n.classname;e.push({name:s,classname:r,verticalDirection:i,horizontalDirection:t})}})}),{points:e}},computed:{style:function(){var e={};return this.width&&this.height&&(e.width="".concat(this.width,"px"),e.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),e},classes:function(){var e=this.handlersClasses,t=this.handlersWrappersClasses,i=this.linesClasses,n=this.linesWrappersClasses;return{root:jl(),handlers:e,handlersWrappers:t,lines:i,linesWrappers:n}},lineNodes:function(){var e=this,t=[];return this.points.forEach(function(i){i.horizontalDirection&&i.verticalDirection||!e.lines[i.name]||t.push({name:i.name,component:e.linesComponent,class:bt(e.classes.lines.default,e.classes.lines[i.name],!e.resizable&&e.classes.lines.disabled),wrapperClass:bt(e.classes.linesWrappers.default,e.classes.linesWrappers[i.name],!e.resizable&&e.classes.linesWrappers.disabled),hoverClass:e.classes.lines.hover,verticalDirection:i.verticalDirection,horizontalDirection:i.horizontalDirection,disabled:!e.resizable})}),t},handlerNodes:function(){var e=this,t=[],i=this.width,n=this.height;return this.points.forEach(function(s){if(e.handlers[s.name]){var r={name:s.name,component:e.handlersComponent,class:bt(e.classes.handlers.default,e.classes.handlers[s.name]),wrapperClass:bt(e.classes.handlersWrappers.default,e.classes.handlersWrappers[s.name]),hoverClass:e.classes.handlers.hover,verticalDirection:s.verticalDirection,horizontalDirection:s.horizontalDirection,disabled:!e.resizable};if(i&&n){var a=s.horizontalDirection,c=s.verticalDirection,u=a==="east"?i:a==="west"?0:i/2,g=c==="south"?n:c==="north"?0:n/2;r.wrapperClass=jl("handler"),r.wrapperStyle={transform:"translate(".concat(u,"px, ").concat(g,"px)")},e.transitions&&e.transitions.enabled&&(r.wrapperStyle.transition="".concat(e.transitions.time,"ms ").concat(e.transitions.timingFunction))}else r.wrapperClass=jl("handler",Ti({},s.classname,!0));t.push(r)}}),t}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(e,t,i){var n,s=e.shift(),r=s.left,a=s.top,c={left:0,right:0,top:0,bottom:0};t==="west"?c.left-=r:t==="east"&&(c.right+=r),i==="north"?c.top-=a:i==="south"&&(c.bottom+=a),!i&&t?n="width":i&&!t&&(n="height"),this.resizable&&this.$emit("resize",new w_(c,{allowedDirections:{left:t==="west"||!t,right:t==="east"||!t,bottom:i==="south"||!i,top:i==="north"||!i},preserveAspectRatio:e.nativeEvent&&e.nativeEvent.shiftKey,respectDirection:n}))}},emits:["resize","resize-end"]};$g.render=function(e,t,i,n,s,r){return ie(),Ve("div",{ref:"box",class:r.classes.root,style:r.style},[Zi(e.$slots,"default"),ke("div",null,[(ie(!0),Ve(it,null,dn(r.lineNodes,function(a){return ie(),Ve(Pr(a.component),{key:a.name,"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,position:a.name,disabled:a.disabled,onDrag:function(c){return r.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:t[1]||(t[1]=function(c){return r.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])}),128))]),(ie(!0),Ve(it,null,dn(r.handlerNodes,function(a){return ie(),Ve("div",{key:a.name,style:a.wrapperStyle,class:a.wrapperClass},[(ie(),Ve(Pr(a.component),{"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,"horizontal-position":a.horizontalDirection,"vertical-position":a.verticalDirection,disabled:a.disabled,onDrag:function(c){return r.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:t[2]||(t[2]=function(c){return r.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var q_=Li("vue-draggable-area"),Ug={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:q_()}}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(e){if(e.cancelable){var t=this.movable&&e.touches.length===1;t&&(this.touches=os(e.touches)),(this.touchStarted||t)&&(e.preventDefault(),e.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(e){this.touches.length>=1&&(this.touchStarted?(this.processMove(e,e.touches),e.preventDefault(),e.stopPropagation()):Lg({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:e.touches[0].clientX,y:e.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(e){if(this.movable&&e.button===0){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.initAnchor(t),e.stopPropagation()}},onMouseMove:function(e){this.touches.length&&(this.processMove(e,[{fake:!0,clientX:e.clientX,clientY:e.clientY}]),e.preventDefault&&e.cancelable&&e.preventDefault(),e.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(e){var t=this.$refs.container.getBoundingClientRect(),i=t.left,n=t.top;this.anchor={x:e.clientX-i,y:e.clientY-n}},processMove:function(e,t){var i=os(t);if(this.touches.length){var n=this.$refs.container.getBoundingClientRect(),s=n.left,r=n.top;this.touches.length===1&&i.length===1&&this.$emit("move",new Tu({left:i[0].clientX-(s+this.anchor.x),top:i[0].clientY-(r+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};Ug.render=function(e,t,i,n,s,r){return ie(),Ve("div",{ref:"container",onTouchstart:t[1]||(t[1]=function(){return r.onTouchStart&&r.onTouchStart.apply(r,arguments)}),onMousedown:t[2]||(t[2]=function(){return r.onMouseDown&&r.onMouseDown.apply(r,arguments)})},[Zi(e.$slots,"default")],544)};function Bl(e){var t,i;return{rotate:e.rotate||0,flip:{horizontal:((t=e==null?void 0:e.flip)===null||t===void 0?void 0:t.horizontal)||!1,vertical:((i=e==null?void 0:e.flip)===null||i===void 0?void 0:i.vertical)||!1}}}function V_(e){return new Promise(function(t,i){try{if(e)if(/^data:/i.test(e))t(function(u){u=u.replace(/^data:([^;]+);base64,/gim,"");for(var g=atob(u),p=g.length,m=new ArrayBuffer(p),b=new Uint8Array(m),S=0;S<p;S++)b[S]=g.charCodeAt(S);return m}(e));else if(/^blob:/i.test(e)){var n=new FileReader;n.onload=function(u){t(u.target.result)},r=e,a=function(u){n.readAsArrayBuffer(u)},(c=new XMLHttpRequest).open("GET",r,!0),c.responseType="blob",c.onload=function(){this.status!=200&&this.status!==0||a(this.response)},c.send()}else{var s=new XMLHttpRequest;s.onreadystatechange=function(){s.readyState===4&&(s.status===200||s.status===0?t(s.response):i("Warning: could not load an image to parse its orientation"),s=null)},s.onprogress=function(){s.getResponseHeader("content-type")!=="image/jpeg"&&s.abort()},s.withCredentials=!1,s.open("GET",e,!0),s.responseType="arraybuffer",s.send(null)}else i("Error: the image is empty")}catch(u){i(u)}var r,a,c})}function Wg(e){var t=e.rotate,i=e.flip,n=e.scaleX,s=e.scaleY,r="";return r+=" rotate("+t+"deg) ",r+=" scaleX("+n*(i.horizontal?-1:1)+") ",r+=" scaleY("+s*(i.vertical?-1:1)+") "}function K_(e){try{var t,i=new DataView(e),n=void 0,s=void 0,r=void 0,a=void 0;if(i.getUint8(0)===255&&i.getUint8(1)===216)for(var c=i.byteLength,u=2;u+1<c;){if(i.getUint8(u)===255&&i.getUint8(u+1)===225){r=u;break}u++}if(r&&(n=r+10,function(S,_,C){var P,M="";for(P=_,C+=_;P<C;P++)M+=String.fromCharCode(S.getUint8(P));return M}(i,r+4,4)==="Exif")){var g=i.getUint16(n);if(((s=g===18761)||g===19789)&&i.getUint16(n+2,s)===42){var p=i.getUint32(n+4,s);p>=8&&(a=n+p)}}if(a){for(var m=i.getUint16(a,s),b=0;b<m;b++)if(u=a+12*b+2,i.getUint16(u,s)===274){u+=8,t=i.getUint16(u,s),i.setUint16(u,1,s);break}}return t}catch{return null}}function Ah(e,t){var i=t.getBoundingClientRect(),n=i.left,s=i.top,r={left:0,top:0},a=0;return e.forEach(function(c){r.left+=(c.clientX-n)/e.length,r.top+=(c.clientY-s)/e.length}),e.forEach(function(c){a+=Lg({x:r.left,y:r.top},{x:c.clientX-n,y:c.clientY-s})}),{centerMass:r,spread:a,count:e.length}}var qg={props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0},eventsFilter:{type:Function,required:!1}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=_c(this.processEnd),this.touches=[]},methods:{processMove:function(e,t){if(this.touches.length){if(this.touches.length===1&&t.length===1)this.$emit("move",new Rr({left:this.touches[0].clientX-t[0].clientX,top:this.touches[0].clientY-t[0].clientY}));else if(this.touches.length>1&&this.touchResize){var i=Ah(t,this.$refs.container),n=this.oldGeometricProperties;n.count===i.count&&n.count>1&&this.$emit("resize",new Rr({left:n.centerMass.left-i.centerMass.left,top:n.centerMass.top-i.centerMass.top},{factor:n.spread/i.spread,center:i.centerMass})),this.oldGeometricProperties=i}this.touches=t}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(e){return this.eventsFilter?this.eventsFilter(e,this.transforming)!==!1:(e.preventDefault(),e.stopPropagation(),!0)},onTouchStart:function(e){if(e.cancelable&&(this.touchMove||this.touchResize&&e.touches.length>1)&&this.processEvent(e)){var t=this.$refs.container,i=t.getBoundingClientRect(),n=i.left,s=i.top,r=i.bottom,a=i.right;this.touches=os(e.touches).filter(function(c){return c.clientX>n&&c.clientX<a&&c.clientY>s&&c.clientY<r}),this.oldGeometricProperties=Ah(this.touches,t)}},onTouchEnd:function(e){e.touches.length===0&&(this.touches=[],this.processEnd())},onTouchMove:function(e){var t=this;if(this.touches.length){var i=os(e.touches).filter(function(n){return!n.identifier||t.touches.find(function(s){return s.identifier===n.identifier})});this.processEvent(e)&&(this.processMove(e,i),this.processStart())}},onMouseDown:function(e){if(this.mouseMove&&"buttons"in e&&e.buttons===1&&this.processEvent(e)){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.processStart()}},onMouseMove:function(e){this.touches.length&&this.processEvent(e)&&this.processMove(e,[{clientX:e.clientX,clientY:e.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(e){if(this.wheelResize&&this.processEvent(e)){var t=this.$refs.container.getBoundingClientRect(),i=t.left,n=t.top,s=1+this.wheelResize.ratio*(a=e.deltaY||e.detail||e.wheelDelta,(c=+a)==0||Pg(c)?c:c>0?1:-1),r={left:e.clientX-i,top:e.clientY-n};this.$emit("resize",new Rr({},{factor:s,center:r})),this.touches.length||this.debouncedProcessEnd()}var a,c}},emits:["resize","move","transform-end"]};qg.render=function(e,t,i,n,s,r){return ie(),Ve("div",{ref:"container",onTouchstart:t[1]||(t[1]=function(){return r.onTouchStart&&r.onTouchStart.apply(r,arguments)}),onMousedown:t[2]||(t[2]=function(){return r.onMouseDown&&r.onMouseDown.apply(r,arguments)}),onWheel:t[3]||(t[3]=function(){return r.onWheel&&r.onWheel.apply(r,arguments)})},[Zi(e.$slots,"default")],544)};var Ac={components:{TransformableImage:qg},props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}},emits:["resize","move"]};Ac.render=function(e,t,i,n,s,r){var a=pt("transformable-image");return ie(),Ve(a,{"touch-move":i.touchMove,"touch-resize":i.touchResize,"mouse-move":i.mouseMove,"wheel-resize":i.wheelResize,onMove:t[1]||(t[1]=function(c){return e.$emit("move",c)}),onResize:t[2]||(t[2]=function(c){return e.$emit("resize",c)})},{default:ci(function(){return[Zi(e.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var Ro=Li("vue-preview"),Vg={props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:Ro({fill:this.fill}),wrapper:Ro("wrapper"),imageWrapper:Ro("image-wrapper"),image:bt(Ro("image"),this.imageClass)}},style:function(){if(this.fill)return{};var e={};return this.width&&(e.width="".concat(this.size.width,"px")),this.height&&(e.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),e},wrapperStyle:function(){var e={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),e},imageStyle:function(){if(this.coordinates&&this.image){var e=this.coordinates.width/this.size.width,t=Ke(Ke({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/e,scaleY:1/e}),i=this.imageSize.width,n=this.imageSize.height,s=jg({width:i,height:n},t.rotate),r={width:"".concat(i,"px"),height:"".concat(n,"px"),left:"0px",top:"0px"},a={rotate:{left:(i-s.width)*t.scaleX/2,top:(n-s.height)*t.scaleY/2},scale:{left:(1-t.scaleX)*i/2,top:(1-t.scaleY)*n/2}};return r.transform=`translate(
`.concat(-this.coordinates.left/e-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/e-a.rotate.top-a.scale.top,"px) ")+Wg(t),this.transitions&&this.transitions.enabled&&(r.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),r}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(e){(e.width||e.height)&&this.onChangeImage()}},mounted:function(){var e=this;this.onChangeImage(),this.$refs.image.addEventListener("load",function(){e.refreshImage()}),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var e=this.$refs.image;this.calculatedImageSize.height=e.naturalHeight,this.calculatedImageSize.width=e.naturalWidth},refresh:function(){var e=this.$refs.root;this.width||(this.calculatedSize.width=e.clientWidth),this.height||(this.calculatedSize.height=e.clientHeight)},onChangeImage:function(){var e=this.$refs.image;e&&e.complete&&this.refreshImage(),this.refresh()}}};Vg.render=function(e,t,i,n,s,r){return ie(),Ve("div",{ref:"root",class:r.classes.root,style:r.style},[ke("div",{ref:"wrapper",class:r.classes.wrapper,style:r.wrapperStyle},[Ei(ke("img",{ref:"image",src:i.image&&i.image.src,class:r.classes.image,style:r.imageStyle},null,14,["src"]),[[za,i.image&&i.image.src]])],6)],6)};var Kg={components:{Preview:Vg},inheritAttrs:!1};Kg.render=function(e,t,i,n,s,r){var a=pt("preview");return ie(),Ve(a,Ha(e.$attrs,{fill:!0}),null,16)};var $l=Li("vue-rectangle-stencil"),Xg={name:"RectangleStencil",components:{StencilPreview:Kg,BoundingBox:$g,DraggableArea:Ug},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return Au}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return xu}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:bt($l({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:bt($l("preview"),this.previewClass),boundingBox:bt($l("bounding-box"),this.boundingBoxClass)}},style:function(){var e=this.stencilCoordinates,t=e.height,i=e.width,n=e.left,s=e.top,r={width:"".concat(i,"px"),height:"".concat(t,"px"),transform:"translate(".concat(n,"px, ").concat(s,"px)")};return this.transitions&&this.transitions.enabled&&(r.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),r}},methods:{onMove:function(e){this.$emit("move",e),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(e){this.$emit("resize",e),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}},emits:["resize","resize-end","move","move-end"]};Xg.render=function(e,t,i,n,s,r){var a=pt("stencil-preview"),c=pt("draggable-area"),u=pt("bounding-box");return ie(),Ve("div",{class:r.classes.stencil,style:r.style},[ke(u,{width:i.stencilCoordinates.width,height:i.stencilCoordinates.height,transitions:i.transitions,class:r.classes.boundingBox,handlers:i.handlers,"handlers-component":i.handlersComponent,"handlers-classes":i.handlersClasses,"handlers-wrappers-classes":i.handlersWrappersClasses,lines:i.lines,"lines-component":i.linesComponent,"lines-classes":i.linesClasses,"lines-wrappers-classes":i.linesWrappersClasses,resizable:i.resizable,onResize:r.onResize,onResizeEnd:r.onResizeEnd},{default:ci(function(){return[ke(c,{movable:i.movable,onMove:r.onMove,onMoveEnd:r.onMoveEnd},{default:ci(function(){return[ke(a,{image:i.image,coordinates:i.coordinates,width:i.stencilCoordinates.width,height:i.stencilCoordinates.height,class:r.classes.preview,transitions:i.transitions},null,8,["image","coordinates","width","height","class","transitions"])]}),_:1},8,["movable","onMove","onMoveEnd"])]}),_:1},8,["width","height","transitions","class","handlers","handlers-component","handlers-classes","handlers-wrappers-classes","lines","lines-component","lines-classes","lines-wrappers-classes","resizable","onResize","onResizeEnd"])],6)};var X_=["transitions"],on=Li("vue-advanced-cropper"),Yg={name:"Cropper",components:{BackgroundWrapper:Ac},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return Xg}},backgroundWrapperComponent:{type:[Object,String],default:function(){return Ac}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(e){return A_.indexOf(e)!==-1}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object]},defaultVisibleArea:{type:[Function,Object]},defaultTransforms:{type:[Function,Object]},defaultBoundaries:{type:[Function,String],validator:function(e){return!(typeof e=="string"&&e!=="fill"&&e!=="fit")}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(e){var t=e.event,i=e.coordinates,n=e.aspectRatio,s=e.positionRestrictions,r=e.sizeRestrictions,a=Ce(Ce({},i),{right:i.left+i.width,bottom:i.top+i.height}),c=t.params||{},u=Ce({},t.directions),g=c.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};r.widthFrozen&&(u.left=0,u.right=0),r.heightFrozen&&(u.top=0,u.bottom=0),Yi.forEach(function(k){g[k]||(u[k]=0)});var p=Xi(a,u=Eh({coordinates:a,directions:u,sizeRestrictions:r,positionRestrictions:s})).width,m=Xi(a,u).height,b=c.preserveRatio?Xe(a):Fl(p/m,n);if(b){var S=c.respectDirection;if(S||(S=a.width>=a.height||b===1?"width":"height"),S==="width"){var _=p/b-a.height;if(g.top&&g.bottom){var C=u.top,P=u.bottom;u.bottom=xo(_,P,C),u.top=xo(_,C,P)}else g.bottom?u.bottom=_:g.top?u.top=_:g.right?u.right=0:g.left&&(u.left=0)}else if(S==="height"){var M=a.width-m*b;if(g.left&&g.right){var j=u.left,R=u.right;u.left=-xo(M,j,R),u.right=-xo(M,R,j)}else g.left?u.left=-M:g.right?u.right=-M:g.top?u.top=0:g.bottom&&(u.bottom=0)}u=Eh({directions:u,coordinates:a,sizeRestrictions:r,positionRestrictions:s,preserveRatio:!0,compensate:c.compensate})}return p=Xi(a,u).width,m=Xi(a,u).height,(b=c.preserveRatio?Xe(a):Fl(p/m,n))&&Math.abs(b-p/m)>.001&&Yi.forEach(function(k){g[k]||(u[k]=0)}),Ec({event:new Tu({left:-u.left,top:-u.top}),coordinates:{width:i.width+u.right+u.left,height:i.height+u.top+u.bottom,left:i.left,top:i.top},positionRestrictions:s})}},moveAlgorithm:{type:Function,default:Ec},initStretcher:{type:Function,default:function(e){var t=e.stretcher,i=e.imageSize,n=Xe(i);t.style.width=i.width+"px",t.style.height=t.clientWidth/n+"px",t.style.width=t.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(e){var t=e.visibleArea,i=e.coordinates,n=e.aspectRatio,s=e.sizeRestrictions,r=e.positionRestrictions,a=Ce(Ce({},i),hn({width:i.width,height:i.height,aspectRatio:n,sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minHeight:Math.min(t.height,s.minHeight),minWidth:Math.min(t.width,s.minWidth)}}));return a=Mt(a=ri(a,Ks(Nt(i),Nt(a))),Ka(Qi(t),r))}},fitVisibleArea:{type:Function,default:function(e){var t=e.visibleArea,i=e.boundaries,n=e.getAreaRestrictions,s=e.coordinates,r=Ce({},t);r.height=r.width/Xe(i),r.top+=(t.height-r.height)/2,(s.height-r.height>0||s.width-r.width>0)&&(r=xi(r,Math.max(s.height/r.height,s.width/r.width)));var a=qa(Ys(s,Qi(r=xi(r,Va(r,n({visibleArea:r,type:"resize"}))))));return r.width<s.width&&(a.left=0),r.height<s.height&&(a.top=0),r=Mt(r=ri(r,a),n({visibleArea:r,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(e){var t=e.visibleArea,i=e.boundaries,n=e.imageSize,s=e.imageRestriction,r=e.type,a={};return s==="fill-area"?a={left:0,top:0,right:n.width,bottom:n.height}:s==="fit-area"&&(Xe(i)>Xe(n)?(a={top:0,bottom:n.height},t&&r==="move"&&(t.width>n.width?(a.left=-(t.width-n.width)/2,a.right=n.width-a.left):(a.left=0,a.right=n.width))):(a={left:0,right:n.width},t&&r==="move"&&(t.height>n.height?(a.top=-(t.height-n.height)/2,a.bottom=n.height-a.top):(a.top=0,a.bottom=n.height)))),a}},sizeRestrictionsAlgorithm:{type:Function,default:function(e){return{minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(e){var t=e.imageSize,i={};return e.imageRestriction!=="none"&&(i={left:0,top:0,right:t.width,bottom:t.height}),i}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:null,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:Ke({},Sh)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.appliedImageTransforms.rotate,flip:{horizontal:this.appliedImageTransforms.flip.horizontal,vertical:this.appliedImageTransforms.flip.vertical},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var e=function(t){return t*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(e))+Math.abs(this.imageAttributes.height*Math.sin(e)),height:Math.abs(this.imageAttributes.width*Math.sin(e))+Math.abs(this.imageAttributes.height*Math.cos(e))}},initialized:function(){return!!(this.visibleArea&&this.imageLoaded)},settings:function(){var e=Cc(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:Cc(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:e}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var e=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:Tt(this.minWidth)?0:Eo(this.minWidth),minHeight:Tt(this.minHeight)?0:Eo(this.minHeight),maxWidth:Tt(this.maxWidth)?1/0:Eo(this.maxWidth),maxHeight:Tt(this.maxHeight)?1/0:Eo(this.maxHeight)});if(e=function(n){var s=n.areaRestrictions,r=n.sizeRestrictions,a=n.boundaries,c=n.positionRestrictions,u=Ce(Ce({},r),{minWidth:r.minWidth!==void 0?r.minWidth:0,minHeight:r.minHeight!==void 0?r.minHeight:0,maxWidth:r.maxWidth!==void 0?r.maxWidth:1/0,maxHeight:r.maxHeight!==void 0?r.maxHeight:1/0});c.left!==void 0&&c.right!==void 0&&(u.maxWidth=Math.min(u.maxWidth,c.right-c.left)),c.bottom!==void 0&&c.top!==void 0&&(u.maxHeight=Math.min(u.maxHeight,c.bottom-c.top));var g=Tc(s),p=Fg(a,g);return g.width<1/0&&(!u.maxWidth||u.maxWidth>p.width)&&(u.maxWidth=Math.min(u.maxWidth,p.width)),g.height<1/0&&(!u.maxHeight||u.maxHeight>p.height)&&(u.maxHeight=Math.min(u.maxHeight,p.height)),u.minWidth>u.maxWidth&&(u.minWidth=u.maxWidth,u.widthFrozen=!0),u.minHeight>u.maxHeight&&(u.minHeight=u.maxHeight,u.heightFrozen=!0),u}({sizeRestrictions:e,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var t=this.getStencilSize(),i=Tc(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));e.maxWidth=Math.min(e.maxWidth,i.width*t.width/this.boundaries.width),e.maxHeight=Math.min(e.maxHeight,i.height*t.height/this.boundaries.height),e.maxWidth<e.minWidth&&(e.minWidth=e.maxWidth),e.maxHeight<e.minHeight&&(e.minHeight=e.maxHeight)}return e}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:on(),image:bt(on("image"),this.imageClass),stencil:on("stencil"),boundaries:bt(on("boundaries"),this.boundariesClass),stretcher:bt(on("stretcher")),background:bt(on("background"),this.backgroundClass),foreground:bt(on("foreground"),this.foregroundClass),imageWrapper:bt(on("image-wrapper")),cropperWrapper:bt(on("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var e=this.coordinates,t=e.width,i=e.height,n=e.left,s=e.top;return{width:t/this.coefficient,height:i/this.coefficient,left:(n-this.visibleArea.left)/this.coefficient,top:(s-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var e={width:this.boundaries.width?"".concat(Math.round(this.boundaries.width),"px"):"auto",height:this.boundaries.height?"".concat(Math.round(this.boundaries.height),"px"):"auto",transition:"opacity ".concat(this.transitionTime,"ms"),pointerEvents:this.imageLoaded?"all":"none"};return this.imageLoaded||(e.opacity="0"),e},imageStyle:function(){var e=this.imageAttributes.width>this.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},t={left:(e.width-this.imageSize.width)/(2*this.coefficient),top:(e.height-this.imageSize.height)/(2*this.coefficient)},i={left:(1-1/this.coefficient)*e.width/2,top:(1-1/this.coefficient)*e.height/2},n=Ke(Ke({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/e.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/e.height)}),s={width:"".concat(e.width,"px"),height:"".concat(e.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-t.left-i.left-this.imageTransforms.translateX,"px, ").concat(-t.top-i.top-this.imageTransforms.translateY,"px)")+Wg(n)};return this.transitionsOptions.enabled&&(s.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),s}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var e=this;this.$nextTick(function(){e.resetCoordinates(),e.runAutoZoom("setCoordinates"),e.onChange()})},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(e,t){["aspectRatio","minAspectRatio","maxAspectRatio"].find(function(i){return e[i]!==t[i]})&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=_c(this.update,this.debounce),this.debouncedDisableTransitions=_c(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.debouncedUpdate.clear(),this.debouncedDisableTransitions.clear()},methods:{getResult:function(){var e=this.initialized?this.prepareResult(Ke({},this.coordinates)):this.defaultCoordinates(),t={rotate:this.imageTransforms.rotate%360,flip:Ke({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var i=this;return{image:this.image,coordinates:e,visibleArea:this.visibleArea?Ke({},this.visibleArea):null,imageTransforms:t,get canvas(){return i.canvas?i.getCanvas():void 0}}}return{image:this.image,coordinates:e,visibleArea:this.visibleArea?Ke({},this.visibleArea):null,canvas:void 0,imageTransforms:t}},zoom:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=i.transitions,s=n===void 0||n;this.onManipulateImage(new Rr({},{factor:1/e,center:t}),{normalize:!1,transitions:s})},move:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=i.transitions,s=n===void 0||n;this.onManipulateImage(new Rr({left:e||0,top:t||0}),{normalize:!1,transitions:s})},setCoordinates:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.autoZoom,s=n===void 0||n,r=i.transitions,a=r===void 0||r;this.$nextTick(function(){t.imageLoaded?(t.transitionsActive||(a&&t.enableTransitions(),t.coordinates=t.applyTransform(e),s&&t.runAutoZoom("setCoordinates"),a&&t.debouncedDisableTransitions()),t.onChange()):t.delayedTransforms=e})},refresh:function(){var e=this,t=this.$refs.image;if(this.src&&t)return this.initialized?this.updateVisibleArea().then(function(){e.onChange()}):this.resetVisibleArea().then(function(){e.onChange()})},reset:function(){var e=this;return this.resetVisibleArea().then(function(){e.onChange(!1)})},awaitRender:function(e){var t=this;this.awaiting||(this.awaiting=!0,this.$nextTick(function(){e(),t.awaiting=!1}))},prepareResult:function(e){return this.roundResult?function(t){var i=t.coordinates,n=t.sizeRestrictions,s=t.positionRestrictions,r={width:Math.round(i.width),height:Math.round(i.height),left:Math.round(i.left),top:Math.round(i.top)};return r.width>n.maxWidth?r.width=Math.floor(i.width):r.width<n.minWidth&&(r.width=Math.ceil(i.width)),r.height>n.maxHeight?r.height=Math.floor(i.height):r.height<n.minHeight&&(r.height=Math.ceil(i.height)),Mt(r,s)}(Ke(Ke({},this.getPublicProperties()),{},{positionRestrictions:Ao(this.positionRestrictions,this.visibleArea),coordinates:e})):e},processAutoZoom:function(e,t,i,n){var s=this.autoZoomAlgorithm;s||(s=this.stencilSize?I_:this.autoZoom?O_:k_);var r=s({event:{type:e,params:n},visibleArea:t,coordinates:i,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return Ke(Ke({},r),{},{changed:!_h(r.visibleArea,t)||!_h(r.coordinates,i)})},runAutoZoom:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.transitions,n=i!==void 0&&i,s=v_(t,X_),r=this.processAutoZoom(e,this.visibleArea,this.coordinates,s),a=r.visibleArea,c=r.coordinates,u=r.changed;n&&u&&this.enableTransitions(),this.visibleArea=a,this.coordinates=c,n&&u&&this.debouncedDisableTransitions()},normalizeEvent:function(e){return function(t){var i=t.event,n=t.visibleArea,s=t.coefficient;if(i.type==="manipulateImage")return Ce(Ce({},i),{move:{left:i.move&&i.move.left?s*i.move.left:0,top:i.move&&i.move.top?s*i.move.top:0},scale:{factor:i.scale&&i.scale.factor?i.scale.factor:1,center:i.scale&&i.scale.center?{left:i.scale.center.left*s+n.left,top:i.scale.center.top*s+n.top}:null}});if(i.type==="resize"){var r=Ce(Ce({},i),{directions:Ce({},i.directions)});return Yi.forEach(function(c){r.directions[c]*=s}),r}if(i.type==="move"){var a=Ce(Ce({},i),{directions:Ce({},i.directions)});return E_.forEach(function(c){a.directions[c]*=s}),a}return i}(Ke(Ke({},this.getPublicProperties()),{},{event:e}))},getCanvas:function(){if(this.$refs.canvas){var e=this.$refs.canvas,t=this.$refs.image,i=this.imageTransforms.rotate!==0||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(c,u,g){var p=g.rotate,m=g.flip,b={width:u.naturalWidth,height:u.naturalHeight},S=jg(b,p),_=c.getContext("2d");c.height=S.height,c.width=S.width,_.save();var C=Nn(Nt(Ce({left:0,top:0},b)),p);return _.translate(-(C.left-S.width/2),-(C.top-S.height/2)),_.rotate(p*Math.PI/180),_.translate(m.horizontal?b.width:0,m.vertical?b.height:0),_.scale(m.horizontal?-1:1,m.vertical?-1:1),_.drawImage(u,0,0,b.width,b.height),_.restore(),c}(this.$refs.sourceCanvas,t,this.imageTransforms):t,n=Ke({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),s=function(c){return c.find(function(u){return g=u,!Number.isNaN(parseFloat(g))&&isFinite(g);var g})},r=hn({sizeRestrictions:{minWidth:s([n.width,n.minWidth])||0,minHeight:s([n.height,n.minHeight])||0,maxWidth:s([n.width,n.maxWidth])||1/0,maxHeight:s([n.height,n.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(n.maxArea&&r.width*r.height>n.maxArea){var a=Math.sqrt(n.maxArea/(r.width*r.height));r={width:Math.round(a*r.width),height:Math.round(a*r.height)}}return function(c,u,g,p,m){c.width=p?p.width:g.width,c.height=p?p.height:g.height;var b=c.getContext("2d");b.clearRect(0,0,c.width,c.height),m&&(m.imageSmoothingEnabled&&(b.imageSmoothingEnabled=m.imageSmoothingEnabled),m.imageSmoothingQuality&&(b.imageSmoothingQuality=m.imageSmoothingQuality),m.fillColor&&(b.fillStyle=m.fillColor,b.fillRect(0,0,c.width,c.height),b.save()));var S=g.left<0?-g.left:0,_=g.top<0?-g.top:0;b.drawImage(u,g.left+S,g.top+_,g.width,g.height,S*(c.width/g.width),_*(c.height/g.height),c.width,c.height)}(e,i,this.coordinates,r,n),e}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],i=this.visibleArea&&t?x_(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,n=this.visibleArea&&t?Ao(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return R_({transform:e,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:i,positionRestrictions:n,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var e=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var t=this.defaultSize;t||(t=this.stencilSize?D_:M_);var i=this.sizeRestrictions;i.minWidth,i.minHeight,i.maxWidth,i.maxHeight;var n=Es(t)?t({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):t,s=this.defaultPosition||N_,r=[n,function(a){var c=a.coordinates;return Ke({},Es(s)?s({coordinates:c,imageSize:e.imageSize,visibleArea:e.visibleArea}):e.defaultPosition)}];this.delayedTransforms&&r.push.apply(r,os(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(r,!0),this.delayedTransforms=null}},clearImage:function(){var e=this;this.imageLoaded=!1,setTimeout(function(){var t=e.$refs.stretcher;t&&(t.style.height="auto",t.style.width="auto"),e.coordinates=e.defaultCoordinates(),e.boundaries={width:0,height:0}},this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var e=this,t=this.$refs.stretcher,i=this.$refs.cropper;return this.initStretcher({cropper:i,stretcher:t,imageSize:this.imageSize}),this.$nextTick().then(function(){var n={cropper:i,imageSize:e.imageSize};if(Es(e.defaultBoundaries)?e.boundaries=e.defaultBoundaries(n):e.defaultBoundaries==="fit"?e.boundaries=function(s){var r=s.cropper,a=s.imageSize,c=r.clientHeight,u=r.clientWidth,g=c,p=a.width*c/a.height;return p>u&&(p=u,g=a.height*u/a.width),{width:p,height:g}}(n):e.boundaries=function(s){var r=s.cropper;return{width:r.clientWidth,height:r.clientHeight}}(n),!e.boundaries.width||!e.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")})},resetVisibleArea:function(){var e=this;return this.appliedImageTransforms=Ke(Ke({},this.defaultImageTransforms),{},{flip:Ke({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){e.priority!=="visible-area"&&(e.visibleArea=null,e.resetCoordinates());var t,i,n,s,r,a,c=e.defaultVisibleArea||P_;e.visibleArea=Es(c)?c({imageSize:e.imageSize,boundaries:e.boundaries,coordinates:e.priority!=="visible-area"?e.coordinates:null,getAreaRestrictions:e.getAreaRestrictions,stencilSize:e.getStencilSize()}):e.defaultVisibleArea,e.visibleArea=(t={visibleArea:e.visibleArea,boundaries:e.boundaries,getAreaRestrictions:e.getAreaRestrictions},i=t.visibleArea,n=t.boundaries,s=t.getAreaRestrictions,r=Ce({},i),a=Xe(n),r.width/r.height!==a&&(r.height=r.width/a),Mt(r,s({visibleArea:r,type:"move"}))),e.priority==="visible-area"?e.resetCoordinates():e.coordinates=e.fitCoordinates({visibleArea:e.visibleArea,coordinates:e.coordinates,aspectRatio:e.getAspectRatio(),positionRestrictions:e.positionRestrictions,sizeRestrictions:e.sizeRestrictions}),e.runAutoZoom("resetVisibleArea")}).catch(function(){e.visibleArea=null})},updateVisibleArea:function(){var e=this;return this.updateBoundaries().then(function(){e.visibleArea=e.fitVisibleArea({imageSize:e.imageSize,boundaries:e.boundaries,visibleArea:e.visibleArea,coordinates:e.coordinates,getAreaRestrictions:e.getAreaRestrictions}),e.coordinates=e.fitCoordinates({visibleArea:e.visibleArea,coordinates:e.coordinates,aspectRatio:e.getAspectRatio(),positionRestrictions:e.positionRestrictions,sizeRestrictions:e.sizeRestrictions}),e.runAutoZoom("updateVisibleArea")}).catch(function(){e.visibleArea=null})},onChange:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];e&&this.debounce?this.debouncedUpdate():this.update()},onChangeImage:function(){var e,t=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(s){if(bh(s))return!1;var r=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(s)||[],c={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},u=function(g){return g.port||((g.protocol||r.protocol)==="http"?80:433)};return!(!c.protocol&&!c.host&&!c.port||c.protocol&&c.protocol==r.protocol&&c.host&&c.host==r.host&&c.host&&u(c)==u(r))}(this.src)){var i=Tt(this.crossOrigin)?this.canvas:this.crossOrigin;i===!0&&(i="anonymous"),this.imageAttributes.crossOrigin=i||null}if(this.checkOrientation){var n=(e=this.src,new Promise(function(s){V_(e).then(function(r){var a=K_(r);s(r?{source:e,arrayBuffer:r,orientation:a}:{source:e,arrayBuffer:null,orientation:null})}).catch(function(r){console.warn(r),s({source:e,arrayBuffer:null,orientation:null})})}));setTimeout(function(){n.then(t.onParseImage)},this.transitionTime)}else setTimeout(function(){t.onParseImage({source:t.src})},this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var e=this,t=this.$refs.image;t&&!this.imageLoaded&&(this.imageAttributes.height=t.naturalHeight,this.imageAttributes.width=t.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then(function(){e.$emit("ready"),e.onChange(!1)}))},onParseImage:function(e){var t=this,i=e.source,n=e.arrayBuffer,s=e.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,n&&s&&s>1?Dg(i)||!bh(i)?(this.imageAttributes.src=URL.createObjectURL(new Blob([n])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(r){for(var a=[],c=new Uint8Array(r);c.length>0;){var u=c.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(u):u.slice())),c=c.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(n):this.imageAttributes.src=i,Es(this.defaultTransforms)?this.appliedImageTransforms=Bl(this.defaultTransforms()):jo(this.defaultTransforms)?this.appliedImageTransforms=Bl(this.defaultTransforms):this.appliedImageTransforms=function(r){var a=Bl({});if(r)switch(r){case 2:a.flip.horizontal=!0;break;case 3:a.rotate=-180;break;case 4:a.flip.vertical=!0;break;case 5:a.rotate=90,a.flip.vertical=!0;break;case 6:a.rotate=90;break;case 7:a.rotate=90,a.flip.horizontal=!0;break;case 8:a.rotate=-90}return a}(s),this.defaultImageTransforms=Ke(Ke({},this.appliedImageTransforms),{},{flip:Ke({},this.appliedImageTransforms.flip)}),this.$nextTick(function(){var r=t.$refs.image;r&&r.complete&&(function(a){return!!a.naturalWidth}(r)?t.onSuccessLoadImage():t.onFailLoadImage())})},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(e){var t=this;this.transitionsOptions.enabled||this.awaitRender(function(){t.coordinates=t.moveAlgorithm(Ke(Ke({},t.getPublicProperties()),{},{positionRestrictions:Ao(t.positionRestrictions,t.visibleArea),coordinates:t.coordinates,event:t.normalizeEvent(e)})),t.onChange()})},onResize:function(e){var t=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender(function(){var i=t.sizeRestrictions,n=Math.min(t.coordinates.width,t.coordinates.height,20*t.coefficient);t.coordinates=t.resizeAlgorithm(Ke(Ke({},t.getPublicProperties()),{},{positionRestrictions:Ao(t.positionRestrictions,t.visibleArea),sizeRestrictions:{maxWidth:Math.min(i.maxWidth,t.visibleArea.width),maxHeight:Math.min(i.maxHeight,t.visibleArea.height),minWidth:Math.max(i.minWidth,n),minHeight:Math.max(i.minHeight,n)},event:t.normalizeEvent(e)})),t.onChange(),t.ticking=!1})},onManipulateImage:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.transitionsOptions.enabled){var i=t.transitions,n=i!==void 0&&i,s=t.normalize,r=s===void 0||s;n&&this.enableTransitions();var a=L_(Ke(Ke({},this.getPublicProperties()),{},{event:r?this.normalizeEvent(e):e,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),c=a.visibleArea,u=a.coordinates;this.visibleArea=c,this.coordinates=u,this.runAutoZoom("manipulateImage"),this.onChange(),n&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.visibleArea,i=e.type,n=i===void 0?"move":i;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:t,type:n})},getAspectRatio:function(e){var t,i,n=this.stencilProps,s=n.aspectRatio,r=n.minAspectRatio,a=n.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var c=this.$refs.stencil.aspectRatios();t=c.minimum,i=c.maximum}if(Tt(t)&&(t=Tt(s)?r:s),Tt(i)&&(i=Tt(s)?a:s),!e&&(Tt(t)||Tt(i))){var u=this.getStencilSize(),g=u?Xe(u):null;Tt(t)&&(t=wh(g)?g:void 0),Tt(i)&&(i=wh(g)?g:void 0)}return{minimum:t,maximum:i}},getStencilSize:function(){if(this.stencilSize)return e={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)},t=e.boundaries,i=e.stencilSize,n=e.aspectRatio,Fl(Xe(s=Es(i)?i({boundaries:t,aspectRatio:n}):i),n)&&(s=hn({sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minWidth:0,minHeight:0},width:s.width,height:s.height,aspectRatio:{minimum:n.minimum,maximum:n.maximum}})),(s.width>t.width||s.height>t.height)&&(s=hn({sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minWidth:0,minHeight:0},width:s.width,height:s.height,aspectRatio:{minimum:Xe(s),maximum:Xe(s)}})),s;var e,t,i,n,s},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return Ke({},Sh)},flip:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=i.transitions,s=n===void 0||n;if(!this.transitionsActive){s&&this.enableTransitions();var r=Ke({},this.imageTransforms.flip),a=z_({flip:{horizontal:e?!r.horizontal:r.horizontal,vertical:t?!r.vertical:r.vertical},previousFlip:r,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),c=a.visibleArea,u=a.coordinates;e&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),t&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=c,this.coordinates=u,this.onChange(),s&&this.debouncedDisableTransitions()}},rotate:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.transitions,n=i===void 0||i;if(!this.transitionsActive){n&&this.enableTransitions();var s=Ke({},this.imageSize);this.appliedImageTransforms.rotate+=e;var r=H_({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:s,imageSize:this.imageSize,angle:e,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=r.visibleArea,c=r.coordinates,u=this.processAutoZoom("rotateImage",a,c);a=u.visibleArea,c=u.coordinates,this.visibleArea=a,this.coordinates=c,this.onChange(),n&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},Y_={key:0,ref:"canvas",style:{display:"none"}},G_={key:1,ref:"sourceCanvas",style:{display:"none"}};Yg.render=function(e,t,i,n,s,r){return ie(),Ve("div",{ref:"cropper",class:r.classes.cropper},[ke("div",{ref:"stretcher",class:r.classes.stretcher},null,2),ke("div",{class:r.classes.boundaries,style:r.boundariesStyle},[(ie(),Ve(Pr(i.backgroundWrapperComponent),{class:r.classes.cropperWrapper,"wheel-resize":r.settings.resizeImage.wheel,"touch-resize":r.settings.resizeImage.touch,"touch-move":r.settings.moveImage.touch,"mouse-move":r.settings.moveImage.mouse,onMove:r.onManipulateImage,onResize:r.onManipulateImage},{default:ci(function(){return[ke("div",{class:r.classes.background,style:r.boundariesStyle},null,6),ke("div",{class:r.classes.imageWrapper},[ke("img",{ref:"image",crossorigin:s.imageAttributes.crossOrigin,src:s.imageAttributes.src,class:r.classes.image,style:r.imageStyle,onMousedown:t[1]||(t[1]=Hp(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),ke("div",{class:r.classes.foreground,style:r.boundariesStyle},null,6),Ei((ie(),Ve(Pr(i.stencilComponent),Ha({ref:"stencil",image:r.image,coordinates:s.coordinates,"stencil-coordinates":r.stencilCoordinates,transitions:r.transitionsOptions},i.stencilProps,{onResize:r.onResize,onResizeEnd:r.onResizeEnd,onMove:r.onMove,onMoveEnd:r.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[za,s.imageLoaded]]),i.canvas?(ie(),Ve("canvas",Y_,null,512)):xe("",!0),i.canvas?(ie(),Ve("canvas",G_,null,512)):xe("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const J_={components:{Cropper:Yg},props:{baseImage:{required:!0,type:Object},lang:{required:!0,type:Object},options:{required:!1,type:Object,default:null},largeHandles:{required:!1,type:Boolean,default:!1}},emits:["change","ready","cancel"],mounted(){this.doSetup()},data:()=>({loading:!0,keyPressed_left:!1,keyPressed_right:!1,keyPressed_up:!1,keyPressed_down:!1,holdTimeoutDuration:500,holdTimeout_left:null,holdTimeout_right:null,holdTimeout_up:null,holdTimeout_down:null,repeatInterval_left:null,repeatInterval_right:null,repeatInterval_up:null,repeatInterval_down:null,repeatInterval:50}),computed:{stepSizeSmall(){let e=15;return this.baseImage&&this.baseImage.width&&window.crop_thumbnails_cropper.$el&&(e=Math.ceil(this.baseImage.width/window.crop_thumbnails_cropper.$el.clientWidth),e=e*2),e},stepSizeLarge(){return this.stepSizeSmall*5},loadingStyle(){return this.loading?{"padding-top":this.baseImage.height/this.baseImage.width*100+"%"}:null},stencilProps(){return this.options?(setTimeout(()=>{this.$refs.cropper.refresh()},10),{aspectRatio:this.options.aspectRatio,handlers:{eastNorth:!0,westNorth:!0,westSouth:!0,eastSouth:!0,north:!1,south:!1,west:!1,east:!1}}):{}}},watch:{options:{handler(e){this.applyOptions()},deep:!0}},methods:{move(e,t){const{coordinates:i,image:n}=this.$refs.cropper.getResult();e===1&&(i.left=i.left+this.stepSizeSmall>n.width?n.width:i.left+this.stepSizeSmall),e===-1&&(i.left=i.left-this.stepSizeSmall<0?0:i.left-this.stepSizeSmall),t===1&&(i.top=i.top+this.stepSizeSmall>n.height?n.height:i.top+this.stepSizeSmall),t===-1&&(i.top=i.top-this.stepSizeSmall<0?0:i.top-this.stepSizeSmall),e===10&&(i.left=i.left+this.stepSizeLarge>n.width?n.width:i.left+this.stepSizeLarge),e===-10&&(i.left=i.left-this.stepSizeLarge<0?0:i.left-this.stepSizeLarge),t===10&&(i.top=i.top+this.stepSizeLarge>n.height?n.height:i.top+this.stepSizeLarge),t===-10&&(i.top=i.top-this.stepSizeLarge<0?0:i.top-this.stepSizeLarge),this.$refs.cropper.setCoordinates(i)},imageLoaded(){this.$emit("ready"),this.loading=!1,setTimeout(()=>{this.$refs.cropper.refresh()},10)},doSetup(){window.crop_thumbnails_cropper=this.$refs.cropper},change({coordinates:e}){this.$emit("change",e)},applyOptions(){this.options?(this.addKeyboardShortcuts(),this.$refs.cropper.setCoordinates({width:this.options.trueSize[0],height:this.options.trueSize[1],left:this.options.setSelect[0],top:this.options.setSelect[1]})):this.removeKeyboardShortcuts(),setTimeout(()=>{this.$refs.cropper.refresh()},10)},addKeyboardShortcuts(){document.addEventListener("keydown",this.handleKeyDownShortcuts),document.addEventListener("keyup",this.handleKeyUpShortcuts)},removeKeyboardShortcuts(){document.removeEventListener("keydown",this.handleKeyDownShortcuts),document.removeEventListener("keyup",this.handleKeyUpShortcuts),this.holdTimeout_left&&clearTimeout(this.holdTimeout_left),this.holdTimeout_right&&clearTimeout(this.holdTimeout_right),this.holdTimeout_up&&clearTimeout(this.holdTimeout_up),this.holdTimeout_down&&clearTimeout(this.holdTimeout_down),this.repeatInterval_left&&clearTimeout(this.repeatInterval_left),this.repeatInterval_right&&clearTimeout(this.repeatInterval_right),this.repeatInterval_up&&clearTimeout(this.repeatInterval_up),this.repeatInterval_down&&clearTimeout(this.repeatInterval_down)},handleKeyDownShortcuts(e){switch(e.key){case"ArrowLeft":this.keyPressed_left||(this.keyPressed_left=!0,this.move(-1,null),this.holdTimeout_left=setTimeout(()=>{this.keyPressed_left&&(this.repeatInterval_left=setInterval(()=>{this.keyPressed_left&&this.move(-10,null)},this.repeatInterval))},this.holdTimeoutDuration)),e.preventDefault();break;case"ArrowRight":this.keyPressed_right||(this.keyPressed_right=!0,this.move(1,null),this.holdTimeout_right=setTimeout(()=>{this.keyPressed_right&&(this.repeatInterval_right=setInterval(()=>{this.keyPressed_right&&this.move(10,null)},this.repeatInterval))},this.holdTimeoutDuration)),e.preventDefault();break;case"ArrowUp":this.keyPressed_up||(this.keyPressed_up=!0,this.move(null,-1),this.holdTimeout_up=setTimeout(()=>{this.keyPressed_up&&(this.repeatInterval_up=setInterval(()=>{this.keyPressed_up&&this.move(null,-10)},this.repeatInterval))},this.holdTimeoutDuration)),e.preventDefault();break;case"ArrowDown":this.keyPressed_down||(this.keyPressed_down=!0,this.move(null,1),this.holdTimeout_down=setTimeout(()=>{this.keyPressed_down&&(this.repeatInterval_down=setInterval(()=>{this.keyPressed_down&&this.move(null,10)},this.repeatInterval))},this.holdTimeoutDuration)),e.preventDefault();break;case"Escape":this.$emit("cancel"),e.preventDefault();break;default:return}},handleKeyUpShortcuts(e){switch(e.key){case"ArrowLeft":this.keyPressed_left=!1,this.holdTimeout_left&&clearTimeout(this.holdTimeout_left),this.repeatInterval_left&&clearInterval(this.repeatInterval_left),e.preventDefault();break;case"ArrowRight":this.keyPressed_right=!1,this.holdTimeout_right&&clearTimeout(this.holdTimeout_right),this.repeatInterval_right&&clearInterval(this.repeatInterval_right),e.preventDefault();break;case"ArrowUp":this.keyPressed_up=!1,this.holdTimeout_up&&clearTimeout(this.holdTimeout_up),this.repeatInterval_up&&clearInterval(this.repeatInterval_up),e.preventDefault();break;case"ArrowDown":this.keyPressed_down=!1,this.holdTimeout_down&&clearTimeout(this.holdTimeout_down),this.repeatInterval_down&&clearInterval(this.repeatInterval_down),e.preventDefault();break;default:return}}}},Q_={key:0,class:"cptLoadingSpinner"},Z_={key:1,class:"cptOverlayMessage"},e1={class:"text"};function t1(e,t,i,n,s,r){const a=pt("cropper");return ie(),me("div",{class:Yt(["CropArea",{noOptions:!i.options,largeHandles:i.largeHandles}]),style:fs(r.loadingStyle)},[e.loading?(ie(),me("div",Q_)):xe("",!0),!e.loading&&!i.options?(ie(),me("div",Z_,[U("div",null,[U("span",e1,le(i.lang.instructions_overlay_text),1),t[0]||(t[0]=U("span",{class:"dashicons dashicons-arrow-left-alt"},null,-1)),t[1]||(t[1]=U("span",{class:"dashicons dashicons-arrow-up-alt"},null,-1))])])):xe("",!0),ke(a,{ref:"cropper",src:i.baseImage.url,resizeImage:!1,"stencil-props":r.stencilProps,onChange:r.change,onReady:r.imageLoaded},null,8,["src","stencil-props","onChange","onReady"])],6)}const i1=Oi(J_,[["render",t1]]);function Gg(e,t){return function(){return e.apply(t,arguments)}}const{toString:n1}=Object.prototype,{getPrototypeOf:Ru}=Object,{iterator:Xa,toStringTag:Jg}=Symbol,Ya=(e=>t=>{const i=n1.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Hi=e=>(e=e.toLowerCase(),t=>Ya(t)===e),Ga=e=>t=>typeof t===e,{isArray:Qs}=Array,qr=Ga("undefined");function s1(e){return e!==null&&!qr(e)&&e.constructor!==null&&!qr(e.constructor)&&oi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qg=Hi("ArrayBuffer");function r1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qg(e.buffer),t}const o1=Ga("string"),oi=Ga("function"),Zg=Ga("number"),Ja=e=>e!==null&&typeof e=="object",a1=e=>e===!0||e===!1,Bo=e=>{if(Ya(e)!=="object")return!1;const t=Ru(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Jg in e)&&!(Xa in e)},l1=Hi("Date"),c1=Hi("File"),u1=Hi("Blob"),f1=Hi("FileList"),h1=e=>Ja(e)&&oi(e.pipe),d1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||oi(e.append)&&((t=Ya(e))==="formdata"||t==="object"&&oi(e.toString)&&e.toString()==="[object FormData]"))},p1=Hi("URLSearchParams"),[g1,m1,y1,v1]=["ReadableStream","Request","Response","Headers"].map(Hi),b1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zr(e,t,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),Qs(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const r=i?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let c;for(n=0;n<a;n++)c=r[n],t.call(null,e[c],c,e)}}function em(e,t){t=t.toLowerCase();const i=Object.keys(e);let n=i.length,s;for(;n-- >0;)if(s=i[n],t===s.toLowerCase())return s;return null}const Gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tm=e=>!qr(e)&&e!==Gn;function xc(){const{caseless:e}=tm(this)&&this||{},t={},i=(n,s)=>{const r=e&&em(t,s)||s;Bo(t[r])&&Bo(n)?t[r]=xc(t[r],n):Bo(n)?t[r]=xc({},n):Qs(n)?t[r]=n.slice():t[r]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Zr(arguments[n],i);return t}const w1=(e,t,i,{allOwnKeys:n}={})=>(Zr(t,(s,r)=>{i&&oi(s)?e[r]=Gg(s,i):e[r]=s},{allOwnKeys:n}),e),S1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_1=(e,t,i,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},C1=(e,t,i,n)=>{let s,r,a;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),r=s.length;r-- >0;)a=s[r],(!n||n(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=i!==!1&&Ru(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},T1=(e,t,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=t.length;const n=e.indexOf(t,i);return n!==-1&&n===i},E1=e=>{if(!e)return null;if(Qs(e))return e;let t=e.length;if(!Zg(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},A1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ru(Uint8Array)),x1=(e,t)=>{const n=(e&&e[Xa]).call(e);let s;for(;(s=n.next())&&!s.done;){const r=s.value;t.call(e,r[0],r[1])}},R1=(e,t)=>{let i;const n=[];for(;(i=e.exec(t))!==null;)n.push(i);return n},I1=Hi("HTMLFormElement"),O1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,s){return n.toUpperCase()+s}),xh=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),k1=Hi("RegExp"),im=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),n={};Zr(i,(s,r)=>{let a;(a=t(s,r,e))!==!1&&(n[r]=a||s)}),Object.defineProperties(e,n)},N1=e=>{im(e,(t,i)=>{if(oi(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const n=e[i];if(oi(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},M1=(e,t)=>{const i={},n=s=>{s.forEach(r=>{i[r]=!0})};return Qs(e)?n(e):n(String(e).split(t)),i},D1=()=>{},P1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function L1(e){return!!(e&&oi(e.append)&&e[Jg]==="FormData"&&e[Xa])}const H1=e=>{const t=new Array(10),i=(n,s)=>{if(Ja(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const r=Qs(n)?[]:{};return Zr(n,(a,c)=>{const u=i(a,s+1);!qr(u)&&(r[c]=u)}),t[s]=void 0,r}}return n};return i(e,0)},z1=Hi("AsyncFunction"),F1=e=>e&&(Ja(e)||oi(e))&&oi(e.then)&&oi(e.catch),nm=((e,t)=>e?setImmediate:t?((i,n)=>(Gn.addEventListener("message",({source:s,data:r})=>{s===Gn&&r===i&&n.length&&n.shift()()},!1),s=>{n.push(s),Gn.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",oi(Gn.postMessage)),j1=typeof queueMicrotask<"u"?queueMicrotask.bind(Gn):typeof process<"u"&&process.nextTick||nm,B1=e=>e!=null&&oi(e[Xa]),B={isArray:Qs,isArrayBuffer:Qg,isBuffer:s1,isFormData:d1,isArrayBufferView:r1,isString:o1,isNumber:Zg,isBoolean:a1,isObject:Ja,isPlainObject:Bo,isReadableStream:g1,isRequest:m1,isResponse:y1,isHeaders:v1,isUndefined:qr,isDate:l1,isFile:c1,isBlob:u1,isRegExp:k1,isFunction:oi,isStream:h1,isURLSearchParams:p1,isTypedArray:A1,isFileList:f1,forEach:Zr,merge:xc,extend:w1,trim:b1,stripBOM:S1,inherits:_1,toFlatObject:C1,kindOf:Ya,kindOfTest:Hi,endsWith:T1,toArray:E1,forEachEntry:x1,matchAll:R1,isHTMLForm:I1,hasOwnProperty:xh,hasOwnProp:xh,reduceDescriptors:im,freezeMethods:N1,toObjectSet:M1,toCamelCase:O1,noop:D1,toFiniteNumber:P1,findKey:em,global:Gn,isContextDefined:tm,isSpecCompliantForm:L1,toJSONObject:H1,isAsyncFn:z1,isThenable:F1,setImmediate:nm,asap:j1,isIterable:B1};function De(e,t,i,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}B.inherits(De,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.status}}});const sm=De.prototype,rm={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rm[e]={value:e}});Object.defineProperties(De,rm);Object.defineProperty(sm,"isAxiosError",{value:!0});De.from=(e,t,i,n,s,r)=>{const a=Object.create(sm);return B.toFlatObject(e,a,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),De.call(a,e.message,t,i,n,s),a.cause=e,a.name=e.name,r&&Object.assign(a,r),a};const $1=null;function Rc(e){return B.isPlainObject(e)||B.isArray(e)}function om(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function Rh(e,t,i){return e?e.concat(t).map(function(s,r){return s=om(s),!i&&r?"["+s+"]":s}).join(i?".":""):t}function U1(e){return B.isArray(e)&&!e.some(Rc)}const W1=B.toFlatObject(B,{},null,function(t){return/^is[A-Z]/.test(t)});function Qa(e,t,i){if(!B.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,i=B.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,P){return!B.isUndefined(P[C])});const n=i.metaTokens,s=i.visitor||p,r=i.dots,a=i.indexes,u=(i.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(s))throw new TypeError("visitor must be a function");function g(_){if(_===null)return"";if(B.isDate(_))return _.toISOString();if(B.isBoolean(_))return _.toString();if(!u&&B.isBlob(_))throw new De("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(_)||B.isTypedArray(_)?u&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function p(_,C,P){let M=_;if(_&&!P&&typeof _=="object"){if(B.endsWith(C,"{}"))C=n?C:C.slice(0,-2),_=JSON.stringify(_);else if(B.isArray(_)&&U1(_)||(B.isFileList(_)||B.endsWith(C,"[]"))&&(M=B.toArray(_)))return C=om(C),M.forEach(function(R,k){!(B.isUndefined(R)||R===null)&&t.append(a===!0?Rh([C],k,r):a===null?C:C+"[]",g(R))}),!1}return Rc(_)?!0:(t.append(Rh(P,C,r),g(_)),!1)}const m=[],b=Object.assign(W1,{defaultVisitor:p,convertValue:g,isVisitable:Rc});function S(_,C){if(!B.isUndefined(_)){if(m.indexOf(_)!==-1)throw Error("Circular reference detected in "+C.join("."));m.push(_),B.forEach(_,function(M,j){(!(B.isUndefined(M)||M===null)&&s.call(t,M,B.isString(j)?j.trim():j,C,b))===!0&&S(M,C?C.concat(j):[j])}),m.pop()}}if(!B.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Ih(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Iu(e,t){this._pairs=[],e&&Qa(e,this,t)}const am=Iu.prototype;am.append=function(t,i){this._pairs.push([t,i])};am.toString=function(t){const i=t?function(n){return t.call(this,n,Ih)}:Ih;return this._pairs.map(function(s){return i(s[0])+"="+i(s[1])},"").join("&")};function q1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lm(e,t,i){if(!t)return e;const n=i&&i.encode||q1;B.isFunction(i)&&(i={serialize:i});const s=i&&i.serialize;let r;if(s?r=s(t,i):r=B.isURLSearchParams(t)?t.toString():new Iu(t,i).toString(n),r){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Oh{constructor(){this.handlers=[]}use(t,i,n){return this.handlers.push({fulfilled:t,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){B.forEach(this.handlers,function(n){n!==null&&t(n)})}}const cm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},V1=typeof URLSearchParams<"u"?URLSearchParams:Iu,K1=typeof FormData<"u"?FormData:null,X1=typeof Blob<"u"?Blob:null,Y1={isBrowser:!0,classes:{URLSearchParams:V1,FormData:K1,Blob:X1},protocols:["http","https","file","blob","url","data"]},Ou=typeof window<"u"&&typeof document<"u",Ic=typeof navigator=="object"&&navigator||void 0,G1=Ou&&(!Ic||["ReactNative","NativeScript","NS"].indexOf(Ic.product)<0),J1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Q1=Ou&&window.location.href||"http://localhost",Z1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ou,hasStandardBrowserEnv:G1,hasStandardBrowserWebWorkerEnv:J1,navigator:Ic,origin:Q1},Symbol.toStringTag,{value:"Module"})),jt={...Z1,...Y1};function eC(e,t){return Qa(e,new jt.classes.URLSearchParams,Object.assign({visitor:function(i,n,s,r){return jt.isNode&&B.isBuffer(i)?(this.append(n,i.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function tC(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function iC(e){const t={},i=Object.keys(e);let n;const s=i.length;let r;for(n=0;n<s;n++)r=i[n],t[r]=e[r];return t}function um(e){function t(i,n,s,r){let a=i[r++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),u=r>=i.length;return a=!a&&B.isArray(s)?s.length:a,u?(B.hasOwnProp(s,a)?s[a]=[s[a],n]:s[a]=n,!c):((!s[a]||!B.isObject(s[a]))&&(s[a]=[]),t(i,n,s[a],r)&&B.isArray(s[a])&&(s[a]=iC(s[a])),!c)}if(B.isFormData(e)&&B.isFunction(e.entries)){const i={};return B.forEachEntry(e,(n,s)=>{t(tC(n),s,i,0)}),i}return null}function nC(e,t,i){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(e)}const eo={transitional:cm,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const n=i.getContentType()||"",s=n.indexOf("application/json")>-1,r=B.isObject(t);if(r&&B.isHTMLForm(t)&&(t=new FormData(t)),B.isFormData(t))return s?JSON.stringify(um(t)):t;if(B.isArrayBuffer(t)||B.isBuffer(t)||B.isStream(t)||B.isFile(t)||B.isBlob(t)||B.isReadableStream(t))return t;if(B.isArrayBufferView(t))return t.buffer;if(B.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return eC(t,this.formSerializer).toString();if((c=B.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Qa(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return r||s?(i.setContentType("application/json",!1),nC(t)):t}],transformResponse:[function(t){const i=this.transitional||eo.transitional,n=i&&i.forcedJSONParsing,s=this.responseType==="json";if(B.isResponse(t)||B.isReadableStream(t))return t;if(t&&B.isString(t)&&(n&&!this.responseType||s)){const a=!(i&&i.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?De.from(c,De.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jt.classes.FormData,Blob:jt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],e=>{eo.headers[e]={}});const sC=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rC=e=>{const t={};let i,n,s;return e&&e.split(`
`).forEach(function(a){s=a.indexOf(":"),i=a.substring(0,s).trim().toLowerCase(),n=a.substring(s+1).trim(),!(!i||t[i]&&sC[i])&&(i==="set-cookie"?t[i]?t[i].push(n):t[i]=[n]:t[i]=t[i]?t[i]+", "+n:n)}),t},kh=Symbol("internals");function gr(e){return e&&String(e).trim().toLowerCase()}function $o(e){return e===!1||e==null?e:B.isArray(e)?e.map($o):String(e)}function oC(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=i.exec(e);)t[n[1]]=n[2];return t}const aC=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ul(e,t,i,n,s){if(B.isFunction(n))return n.call(this,t,i);if(s&&(t=i),!!B.isString(t)){if(B.isString(n))return t.indexOf(n)!==-1;if(B.isRegExp(n))return n.test(t)}}function lC(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,n)=>i.toUpperCase()+n)}function cC(e,t){const i=B.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+i,{value:function(s,r,a){return this[n].call(this,t,s,r,a)},configurable:!0})})}let ai=class{constructor(t){t&&this.set(t)}set(t,i,n){const s=this;function r(c,u,g){const p=gr(u);if(!p)throw new Error("header name must be a non-empty string");const m=B.findKey(s,p);(!m||s[m]===void 0||g===!0||g===void 0&&s[m]!==!1)&&(s[m||u]=$o(c))}const a=(c,u)=>B.forEach(c,(g,p)=>r(g,p,u));if(B.isPlainObject(t)||t instanceof this.constructor)a(t,i);else if(B.isString(t)&&(t=t.trim())&&!aC(t))a(rC(t),i);else if(B.isObject(t)&&B.isIterable(t)){let c={},u,g;for(const p of t){if(!B.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[g=p[0]]=(u=c[g])?B.isArray(u)?[...u,p[1]]:[u,p[1]]:p[1]}a(c,i)}else t!=null&&r(i,t,n);return this}get(t,i){if(t=gr(t),t){const n=B.findKey(this,t);if(n){const s=this[n];if(!i)return s;if(i===!0)return oC(s);if(B.isFunction(i))return i.call(this,s,n);if(B.isRegExp(i))return i.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=gr(t),t){const n=B.findKey(this,t);return!!(n&&this[n]!==void 0&&(!i||Ul(this,this[n],n,i)))}return!1}delete(t,i){const n=this;let s=!1;function r(a){if(a=gr(a),a){const c=B.findKey(n,a);c&&(!i||Ul(n,n[c],c,i))&&(delete n[c],s=!0)}}return B.isArray(t)?t.forEach(r):r(t),s}clear(t){const i=Object.keys(this);let n=i.length,s=!1;for(;n--;){const r=i[n];(!t||Ul(this,this[r],r,t,!0))&&(delete this[r],s=!0)}return s}normalize(t){const i=this,n={};return B.forEach(this,(s,r)=>{const a=B.findKey(n,r);if(a){i[a]=$o(s),delete i[r];return}const c=t?lC(r):String(r).trim();c!==r&&delete i[r],i[c]=$o(s),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const i=Object.create(null);return B.forEach(this,(n,s)=>{n!=null&&n!==!1&&(i[s]=t&&B.isArray(n)?n.join(", "):n)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=>t+": "+i).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){const n=new this(t);return i.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[kh]=this[kh]={accessors:{}}).accessors,s=this.prototype;function r(a){const c=gr(a);n[c]||(cC(s,a),n[c]=!0)}return B.isArray(t)?t.forEach(r):r(t),this}};ai.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);B.reduceDescriptors(ai.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[i]=n}}});B.freezeMethods(ai);function Wl(e,t){const i=this||eo,n=t||i,s=ai.from(n.headers);let r=n.data;return B.forEach(e,function(c){r=c.call(i,r,s.normalize(),t?t.status:void 0)}),s.normalize(),r}function fm(e){return!!(e&&e.__CANCEL__)}function Zs(e,t,i){De.call(this,e??"canceled",De.ERR_CANCELED,t,i),this.name="CanceledError"}B.inherits(Zs,De,{__CANCEL__:!0});function hm(e,t,i){const n=i.config.validateStatus;!i.status||!n||n(i.status)?e(i):t(new De("Request failed with status code "+i.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function uC(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fC(e,t){e=e||10;const i=new Array(e),n=new Array(e);let s=0,r=0,a;return t=t!==void 0?t:1e3,function(u){const g=Date.now(),p=n[r];a||(a=g),i[s]=u,n[s]=g;let m=r,b=0;for(;m!==s;)b+=i[m++],m=m%e;if(s=(s+1)%e,s===r&&(r=(r+1)%e),g-a<t)return;const S=p&&g-p;return S?Math.round(b*1e3/S):void 0}}function hC(e,t){let i=0,n=1e3/t,s,r;const a=(g,p=Date.now())=>{i=p,s=null,r&&(clearTimeout(r),r=null),e.apply(null,g)};return[(...g)=>{const p=Date.now(),m=p-i;m>=n?a(g,p):(s=g,r||(r=setTimeout(()=>{r=null,a(s)},n-m)))},()=>s&&a(s)]}const pa=(e,t,i=3)=>{let n=0;const s=fC(50,250);return hC(r=>{const a=r.loaded,c=r.lengthComputable?r.total:void 0,u=a-n,g=s(u),p=a<=c;n=a;const m={loaded:a,total:c,progress:c?a/c:void 0,bytes:u,rate:g||void 0,estimated:g&&c&&p?(c-a)/g:void 0,event:r,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(m)},i)},Nh=(e,t)=>{const i=e!=null;return[n=>t[0]({lengthComputable:i,total:e,loaded:n}),t[1]]},Mh=e=>(...t)=>B.asap(()=>e(...t)),dC=jt.hasStandardBrowserEnv?((e,t)=>i=>(i=new URL(i,jt.origin),e.protocol===i.protocol&&e.host===i.host&&(t||e.port===i.port)))(new URL(jt.origin),jt.navigator&&/(msie|trident)/i.test(jt.navigator.userAgent)):()=>!0,pC=jt.hasStandardBrowserEnv?{write(e,t,i,n,s,r){const a=[e+"="+encodeURIComponent(t)];B.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),B.isString(n)&&a.push("path="+n),B.isString(s)&&a.push("domain="+s),r===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function gC(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mC(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dm(e,t,i){let n=!gC(t);return e&&(n||i==!1)?mC(e,t):t}const Dh=e=>e instanceof ai?{...e}:e;function as(e,t){t=t||{};const i={};function n(g,p,m,b){return B.isPlainObject(g)&&B.isPlainObject(p)?B.merge.call({caseless:b},g,p):B.isPlainObject(p)?B.merge({},p):B.isArray(p)?p.slice():p}function s(g,p,m,b){if(B.isUndefined(p)){if(!B.isUndefined(g))return n(void 0,g,m,b)}else return n(g,p,m,b)}function r(g,p){if(!B.isUndefined(p))return n(void 0,p)}function a(g,p){if(B.isUndefined(p)){if(!B.isUndefined(g))return n(void 0,g)}else return n(void 0,p)}function c(g,p,m){if(m in t)return n(g,p);if(m in e)return n(void 0,g)}const u={url:r,method:r,data:r,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(g,p,m)=>s(Dh(g),Dh(p),m,!0)};return B.forEach(Object.keys(Object.assign({},e,t)),function(p){const m=u[p]||s,b=m(e[p],t[p],p);B.isUndefined(b)&&m!==c||(i[p]=b)}),i}const pm=e=>{const t=as({},e);let{data:i,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:r,headers:a,auth:c}=t;t.headers=a=ai.from(a),t.url=lm(dm(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let u;if(B.isFormData(i)){if(jt.hasStandardBrowserEnv||jt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((u=a.getContentType())!==!1){const[g,...p]=u?u.split(";").map(m=>m.trim()).filter(Boolean):[];a.setContentType([g||"multipart/form-data",...p].join("; "))}}if(jt.hasStandardBrowserEnv&&(n&&B.isFunction(n)&&(n=n(t)),n||n!==!1&&dC(t.url))){const g=s&&r&&pC.read(r);g&&a.set(s,g)}return t},yC=typeof XMLHttpRequest<"u",vC=yC&&function(e){return new Promise(function(i,n){const s=pm(e);let r=s.data;const a=ai.from(s.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:g}=s,p,m,b,S,_;function C(){S&&S(),_&&_(),s.cancelToken&&s.cancelToken.unsubscribe(p),s.signal&&s.signal.removeEventListener("abort",p)}let P=new XMLHttpRequest;P.open(s.method.toUpperCase(),s.url,!0),P.timeout=s.timeout;function M(){if(!P)return;const R=ai.from("getAllResponseHeaders"in P&&P.getAllResponseHeaders()),H={data:!c||c==="text"||c==="json"?P.responseText:P.response,status:P.status,statusText:P.statusText,headers:R,config:e,request:P};hm(function(h){i(h),C()},function(h){n(h),C()},H),P=null}"onloadend"in P?P.onloadend=M:P.onreadystatechange=function(){!P||P.readyState!==4||P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0)||setTimeout(M)},P.onabort=function(){P&&(n(new De("Request aborted",De.ECONNABORTED,e,P)),P=null)},P.onerror=function(){n(new De("Network Error",De.ERR_NETWORK,e,P)),P=null},P.ontimeout=function(){let k=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const H=s.transitional||cm;s.timeoutErrorMessage&&(k=s.timeoutErrorMessage),n(new De(k,H.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,P)),P=null},r===void 0&&a.setContentType(null),"setRequestHeader"in P&&B.forEach(a.toJSON(),function(k,H){P.setRequestHeader(H,k)}),B.isUndefined(s.withCredentials)||(P.withCredentials=!!s.withCredentials),c&&c!=="json"&&(P.responseType=s.responseType),g&&([b,_]=pa(g,!0),P.addEventListener("progress",b)),u&&P.upload&&([m,S]=pa(u),P.upload.addEventListener("progress",m),P.upload.addEventListener("loadend",S)),(s.cancelToken||s.signal)&&(p=R=>{P&&(n(!R||R.type?new Zs(null,e,P):R),P.abort(),P=null)},s.cancelToken&&s.cancelToken.subscribe(p),s.signal&&(s.signal.aborted?p():s.signal.addEventListener("abort",p)));const j=uC(s.url);if(j&&jt.protocols.indexOf(j)===-1){n(new De("Unsupported protocol "+j+":",De.ERR_BAD_REQUEST,e));return}P.send(r||null)})},bC=(e,t)=>{const{length:i}=e=e?e.filter(Boolean):[];if(t||i){let n=new AbortController,s;const r=function(g){if(!s){s=!0,c();const p=g instanceof Error?g:this.reason;n.abort(p instanceof De?p:new Zs(p instanceof Error?p.message:p))}};let a=t&&setTimeout(()=>{a=null,r(new De(`timeout ${t} of ms exceeded`,De.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(g=>{g.unsubscribe?g.unsubscribe(r):g.removeEventListener("abort",r)}),e=null)};e.forEach(g=>g.addEventListener("abort",r));const{signal:u}=n;return u.unsubscribe=()=>B.asap(c),u}},wC=function*(e,t){let i=e.byteLength;if(i<t){yield e;return}let n=0,s;for(;n<i;)s=n+t,yield e.slice(n,s),n=s},SC=async function*(e,t){for await(const i of _C(e))yield*wC(i,t)},_C=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:i,value:n}=await t.read();if(i)break;yield n}}finally{await t.cancel()}},Ph=(e,t,i,n)=>{const s=SC(e,t);let r=0,a,c=u=>{a||(a=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:g,value:p}=await s.next();if(g){c(),u.close();return}let m=p.byteLength;if(i){let b=r+=m;i(b)}u.enqueue(new Uint8Array(p))}catch(g){throw c(g),g}},cancel(u){return c(u),s.return()}},{highWaterMark:2})},Za=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",gm=Za&&typeof ReadableStream=="function",CC=Za&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),mm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},TC=gm&&mm(()=>{let e=!1;const t=new Request(jt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Lh=64*1024,Oc=gm&&mm(()=>B.isReadableStream(new Response("").body)),ga={stream:Oc&&(e=>e.body)};Za&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ga[t]&&(ga[t]=B.isFunction(e[t])?i=>i[t]():(i,n)=>{throw new De(`Response type '${t}' is not supported`,De.ERR_NOT_SUPPORT,n)})})})(new Response);const EC=async e=>{if(e==null)return 0;if(B.isBlob(e))return e.size;if(B.isSpecCompliantForm(e))return(await new Request(jt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(B.isArrayBufferView(e)||B.isArrayBuffer(e))return e.byteLength;if(B.isURLSearchParams(e)&&(e=e+""),B.isString(e))return(await CC(e)).byteLength},AC=async(e,t)=>{const i=B.toFiniteNumber(e.getContentLength());return i??EC(t)},xC=Za&&(async e=>{let{url:t,method:i,data:n,signal:s,cancelToken:r,timeout:a,onDownloadProgress:c,onUploadProgress:u,responseType:g,headers:p,withCredentials:m="same-origin",fetchOptions:b}=pm(e);g=g?(g+"").toLowerCase():"text";let S=bC([s,r&&r.toAbortSignal()],a),_;const C=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let P;try{if(u&&TC&&i!=="get"&&i!=="head"&&(P=await AC(p,n))!==0){let H=new Request(t,{method:"POST",body:n,duplex:"half"}),G;if(B.isFormData(n)&&(G=H.headers.get("content-type"))&&p.setContentType(G),H.body){const[h,te]=Nh(P,pa(Mh(u)));n=Ph(H.body,Lh,h,te)}}B.isString(m)||(m=m?"include":"omit");const M="credentials"in Request.prototype;_=new Request(t,{...b,signal:S,method:i.toUpperCase(),headers:p.normalize().toJSON(),body:n,duplex:"half",credentials:M?m:void 0});let j=await fetch(_,b);const R=Oc&&(g==="stream"||g==="response");if(Oc&&(c||R&&C)){const H={};["status","statusText","headers"].forEach(D=>{H[D]=j[D]});const G=B.toFiniteNumber(j.headers.get("content-length")),[h,te]=c&&Nh(G,pa(Mh(c),!0))||[];j=new Response(Ph(j.body,Lh,h,()=>{te&&te(),C&&C()}),H)}g=g||"text";let k=await ga[B.findKey(ga,g)||"text"](j,e);return!R&&C&&C(),await new Promise((H,G)=>{hm(H,G,{data:k,headers:ai.from(j.headers),status:j.status,statusText:j.statusText,config:e,request:_})})}catch(M){throw C&&C(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new De("Network Error",De.ERR_NETWORK,e,_),{cause:M.cause||M}):De.from(M,M&&M.code,e,_)}}),kc={http:$1,xhr:vC,fetch:xC};B.forEach(kc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Hh=e=>`- ${e}`,RC=e=>B.isFunction(e)||e===null||e===!1,ym={getAdapter:e=>{e=B.isArray(e)?e:[e];const{length:t}=e;let i,n;const s={};for(let r=0;r<t;r++){i=e[r];let a;if(n=i,!RC(i)&&(n=kc[(a=String(i)).toLowerCase()],n===void 0))throw new De(`Unknown adapter '${a}'`);if(n)break;s[a||"#"+r]=n}if(!n){const r=Object.entries(s).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=t?r.length>1?`since :
`+r.map(Hh).join(`
`):" "+Hh(r[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:kc};function ql(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zs(null,e)}function zh(e){return ql(e),e.headers=ai.from(e.headers),e.data=Wl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ym.getAdapter(e.adapter||eo.adapter)(e).then(function(n){return ql(e),n.data=Wl.call(e,e.transformResponse,n),n.headers=ai.from(n.headers),n},function(n){return fm(n)||(ql(e),n&&n.response&&(n.response.data=Wl.call(e,e.transformResponse,n.response),n.response.headers=ai.from(n.response.headers))),Promise.reject(n)})}const vm="1.10.0",el={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{el[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Fh={};el.transitional=function(t,i,n){function s(r,a){return"[Axios v"+vm+"] Transitional option '"+r+"'"+a+(n?". "+n:"")}return(r,a,c)=>{if(t===!1)throw new De(s(a," has been removed"+(i?" in "+i:"")),De.ERR_DEPRECATED);return i&&!Fh[a]&&(Fh[a]=!0,console.warn(s(a," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(r,a,c):!0}};el.spelling=function(t){return(i,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function IC(e,t,i){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const r=n[s],a=t[r];if(a){const c=e[r],u=c===void 0||a(c,r,e);if(u!==!0)throw new De("option "+r+" must be "+u,De.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new De("Unknown option "+r,De.ERR_BAD_OPTION)}}const Uo={assertOptions:IC,validators:el},Wi=Uo.validators;let is=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Oh,response:new Oh}}async request(t,i){try{return await this._request(t,i)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const r=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?r&&!String(n.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+r):n.stack=r}catch{}}throw n}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=as(this.defaults,i);const{transitional:n,paramsSerializer:s,headers:r}=i;n!==void 0&&Uo.assertOptions(n,{silentJSONParsing:Wi.transitional(Wi.boolean),forcedJSONParsing:Wi.transitional(Wi.boolean),clarifyTimeoutError:Wi.transitional(Wi.boolean)},!1),s!=null&&(B.isFunction(s)?i.paramsSerializer={serialize:s}:Uo.assertOptions(s,{encode:Wi.function,serialize:Wi.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Uo.assertOptions(i,{baseUrl:Wi.spelling("baseURL"),withXsrfToken:Wi.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let a=r&&B.merge(r.common,r[i.method]);r&&B.forEach(["delete","get","head","post","put","patch","common"],_=>{delete r[_]}),i.headers=ai.concat(a,r);const c=[];let u=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(i)===!1||(u=u&&C.synchronous,c.unshift(C.fulfilled,C.rejected))});const g=[];this.interceptors.response.forEach(function(C){g.push(C.fulfilled,C.rejected)});let p,m=0,b;if(!u){const _=[zh.bind(this),void 0];for(_.unshift.apply(_,c),_.push.apply(_,g),b=_.length,p=Promise.resolve(i);m<b;)p=p.then(_[m++],_[m++]);return p}b=c.length;let S=i;for(m=0;m<b;){const _=c[m++],C=c[m++];try{S=_(S)}catch(P){C.call(this,P);break}}try{p=zh.call(this,S)}catch(_){return Promise.reject(_)}for(m=0,b=g.length;m<b;)p=p.then(g[m++],g[m++]);return p}getUri(t){t=as(this.defaults,t);const i=dm(t.baseURL,t.url,t.allowAbsoluteUrls);return lm(i,t.params,t.paramsSerializer)}};B.forEach(["delete","get","head","options"],function(t){is.prototype[t]=function(i,n){return this.request(as(n||{},{method:t,url:i,data:(n||{}).data}))}});B.forEach(["post","put","patch"],function(t){function i(n){return function(r,a,c){return this.request(as(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:a}))}}is.prototype[t]=i(),is.prototype[t+"Form"]=i(!0)});let OC=class bm{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(r){i=r});const n=this;this.promise.then(s=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](s);n._listeners=null}),this.promise.then=s=>{let r;const a=new Promise(c=>{n.subscribe(c),r=c}).then(s);return a.cancel=function(){n.unsubscribe(r)},a},t(function(r,a,c){n.reason||(n.reason=new Zs(r,a,c),i(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const i=this._listeners.indexOf(t);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const t=new AbortController,i=n=>{t.abort(n)};return this.subscribe(i),t.signal.unsubscribe=()=>this.unsubscribe(i),t.signal}static source(){let t;return{token:new bm(function(s){t=s}),cancel:t}}};function kC(e){return function(i){return e.apply(null,i)}}function NC(e){return B.isObject(e)&&e.isAxiosError===!0}const Nc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nc).forEach(([e,t])=>{Nc[t]=e});function wm(e){const t=new is(e),i=Gg(is.prototype.request,t);return B.extend(i,is.prototype,t,{allOwnKeys:!0}),B.extend(i,t,null,{allOwnKeys:!0}),i.create=function(s){return wm(as(e,s))},i}const nt=wm(eo);nt.Axios=is;nt.CanceledError=Zs;nt.CancelToken=OC;nt.isCancel=fm;nt.VERSION=vm;nt.toFormData=Qa;nt.AxiosError=De;nt.Cancel=nt.CanceledError;nt.all=function(t){return Promise.all(t)};nt.spread=kC;nt.isAxiosError=NC;nt.mergeConfig=as;nt.AxiosHeaders=ai;nt.formToJSON=e=>um(B.isHTMLForm(e)?new FormData(e):e);nt.getAdapter=ym.getAdapter;nt.HttpStatusCode=Nc;nt.default=nt;const{Axios:IE,AxiosError:OE,CanceledError:kE,isCancel:NE,CancelToken:ME,VERSION:DE,all:PE,Cancel:LE,isAxiosError:HE,spread:zE,toFormData:FE,AxiosHeaders:jE,HttpStatusCode:BE,formToJSON:$E,getAdapter:UE,mergeConfig:WE}=nt,MC=e=>nt({url:`${wpApiSettings.root}crop_thumbnails/v1/crop`,method:"GET",headers:{"X-WP-Nonce":wpApiSettings.nonce},params:e}),DC=e=>nt({url:`${wpApiSettings.root}crop_thumbnails/v1/crop`,method:"POST",headers:{"X-WP-Nonce":wpApiSettings.nonce},data:e}),PC={components:{CropImageSize:p_,Message:Ng,CropArea:i1},props:{imageId:{required:!0,type:[Number,String]},posttype:{required:!1,type:String,default:null}},mounted(){this.doSetup()},data:()=>({cropData:null,loading:!1,cropLoaded:!1,currentCropSize:null,nonce:null,showDebugType:null,dataDebug:null,sameRatioMode:null,cropOptions:null,largeHandles:!1,errorMessage:!1,cropBaseSize:null}),computed:{cropImage(){return!this.cropData||!this.cropBaseSize?null:this.cropData.sourceImage[this.cropBaseSize]},originalImage(){return this.cropData?this.cropData.sourceImage.original_image:null},filteredImageSizes(){let e=this.cropData.imageSizes;if(this.sameRatioMode==="group"){let t=[];e=e.filter(i=>t.indexOf(i.printRatio)>-1?!1:(t.push(i.printRatio),!0))}return e},selectedImageSizes(){return this.cropData?this.cropData.imageSizes.filter(e=>e.active):[]},selectedImageSizesData(){return this.selectedImageSizes.map(e=>({name:e.name,width:e.width,height:e.height,ratio:e.ratio,crop:e.crop}))},sourceImageHasOrientation(){try{return typeof this.cropData.sourceImageMeta.orientation=="string"&&this.cropData.sourceImageMeta.orientation!=="1"&&this.cropData.sourceImageMeta.orientation!=="0"}catch{}return!1},hasScaledFullImage(){return this.cropData.sourceImage.full.width!==this.cropData.sourceImage.original_image.width},isScaledFullImage(){return this.hasScaledFullImage&&this.cropData.sourceImage.full.width===this.cropImage.width},realCurrentCropSize(){if(!this.currentCropSize)return null;let e=this.originalImage.width/this.cropImage.width;return{width:this.currentCropSize.width*e,height:this.currentCropSize.height*e,left:this.currentCropSize.left*e,top:this.currentCropSize.top*e}},lang(){var e;return((e=this.cropData)==null?void 0:e.lang)??null},options(){var e;return((e=this.cropData)==null?void 0:e.options)??null},hasSettingsSameRatioMode(){var e;return((e=this.options)==null?void 0:e.same_ratio_mode)??!1},sameRatioModeOptions(){return this.lang?[{value:null,text:this.lang.label_same_ratio_mode_nothing},{value:"select",text:this.lang.label_same_ratio_mode_select},{value:"group",text:this.lang.label_same_ratio_mode_group}]:[]}},methods:{doSetup(){this.loadCropData()},cropAreaLoaded(){this.cropLoaded=!0},updateCurrentCrop(e){this.currentCropSize={width:e.width,height:e.height,left:e.left,top:e.top}},isImageInGroupNotYetCropped(e){return this.cropData.imageSizes.filter(t=>t.printRatio===e&&t.notYetCropped).length>0},setupRatioMode(){if(!this.errorMessage){try{this.sameRatioMode=localStorage.getItem("cpt_same_ratio_mode")}catch{}this.hasSettingsSameRatioMode&&(this.sameRatioMode=this.options.same_ratio_mode)}},updateRatioMode(){try{localStorage.setItem("cpt_same_ratio_mode",this.sameRatioMode)}catch{}},setupHandleSize(){try{this.largeHandles=localStorage.getItem("cpt_large_handles"),(this.largeHandles===null||this.largeHandles==="false")&&(this.largeHandles=!1),this.largeHandles==="true"&&(this.largeHandles=!0)}catch{}},updateHandleSize(){try{localStorage.setItem("cpt_large_handles",this.largeHandles)}catch{}},loadCropData(){let e={imageId:this.imageId,posttype:this.posttype};this.loading=!0,this.errorMessage=!1,MC(e).then(t=>{this.makeAllInactive(t.data.imageSizes),this.addCacheBreak(t.data.imageSizes),this.cropData=t.data,this.cropBaseSize=this.cropData.cropBaseSize,this.nonce=this.cropData.nonce,delete this.cropData.nonce}).catch(t=>{this.cropData=t.response.data,this.nonce=this.cropData.nonce,delete this.cropData.nonce,this.errorMessage="ERROR",t.response.data.lang&&(this.errorMessage=t.response.data.lang.unknownError),t.status===403&&(t.response.data.message&&(this.errorMessage=t.response.data.message),t.response.data.lang&&(this.errorMessage=t.response.data.lang.noPermission)),console.error("crop-thumbnails connection error",this.errorMessage,this.cropData)}).finally(()=>{this.loading=!1,this.setupRatioMode(),this.setupHandleSize(),this.cropData&&this.cropData.imageSizes&&(this.cropData.imageSizes=this.cropData.imageSizes.filter(t=>!t.hideByPostType),this.cropData.imageSizes.forEach(t=>{t.notYetCropped=t.url===this.cropData.sourceImage.full.url}))})},isLowRes(e){return kg(e,this.realCurrentCropSize)},toggleActive(e){let t=!e.active;e.active===!1&&this.makeAllInactive(),this.sameRatioMode==="select"||this.sameRatioMode==="group"?this.cropData.imageSizes.forEach(i=>{i.printRatio===e.printRatio&&(i.active=t)}):e.active=t,this.selectedImageSizes.length>0?this.activateCropArea():this.deactivateCropArea()},makeAllInactive(e){e===void 0&&(e=this.cropData.imageSizes),e.forEach(t=>{t.active=!1,t.lowResWarning=!1}),this.deactivateCropArea()},addCacheBreak(e){e===void 0&&(e=this.cropData.imageSizes),e.forEach(t=>{t.cacheBreak=Date.now()})},activateCropArea(){this.deactivateCropArea(),this.cropOptions=this.getCropOptions()},getCropOptions(){let e={trueSize:[this.cropImage.width,this.cropImage.height],aspectRatio:0,setSelect:[]};return this.selectedImageSizes.forEach(t=>{e.aspectRatio===0&&(e.aspectRatio=t.ratio),e.aspectRatio!==t.ratio&&console.info('Crop Thumbnails: print ratio is different from normal ratio on image size "'+t.name+'".')}),e.setSelect=o_(this.cropImage.width,this.cropImage.height,e.aspectRatio),this.cropData.options.debug_js&&console.info("Cropping options",e),e},deactivateCropArea(){this.currentCropSize=null,this.cropOptions=null},showDebugClick(e){this.showDebugType===e?this.showDebugType=null:this.showDebugType=e},getSelectionForApi(){let e={x:Math.floor(this.realCurrentCropSize.left),y:Math.floor(this.realCurrentCropSize.top),x2:Math.floor(this.realCurrentCropSize.left+this.realCurrentCropSize.width),y2:Math.floor(this.realCurrentCropSize.top+this.realCurrentCropSize.height),w:Math.floor(this.realCurrentCropSize.width),h:Math.floor(this.realCurrentCropSize.height)};return e.x<0&&(e.x=0),e.y<0&&(e.y=0),this.originalImage&&(e.x2>this.originalImage.width&&(e.x2=this.originalImage.width),e.y2>this.originalImage.height&&(e.y2=this.originalImage.height),e.w>this.originalImage.width&&(e.w=this.originalImage.width),e.h>this.originalImage.height&&(e.h=this.originalImage.height)),e},cropThumbnails(){if(!this.loading&&this.cropImage){this.loading=!0;const e={crop_thumbnails:{selection:this.getSelectionForApi(),sourceImageId:this.cropData.sourceImageId,activeImageSizes:this.selectedImageSizesData}};DC(e).then(t=>{if(this.cropData.options.debug_data&&(this.dataDebug=t.data.debug,console.log("Save Function Debug",t.data.debug)),t.data.error!==void 0){alert(t.data.error);return}if(t.data.success!==void 0){t.data.changedImageName!==void 0&&this.selectedImageSizes.forEach(i=>{t.data.changedImageName[i.name]!==void 0&&(i.url=t.data.changedImageName[i.name])}),this.addCacheBreak(this.selectedImageSizes);return}}).catch(t=>{alert(this.lang.script_connection_error);let i={status:t.response.status,statusText:t.response.statusText,requestUrl:t.config.url,requestParams:t.config.data};console.error("crop-thumbnails connection error",i)}).finally(()=>{this.loading=!1})}},copyToClipboard(e){try{typeof e=="object"&&(e=JSON.stringify(e,null," ")),navigator.clipboard.writeText(e).then(()=>{alert("Text copied to clipboard")})}catch{alert("Error while try to copy to clipboard")}}}},LC={key:0,class:"cptWaitingWindow"},HC={key:1,class:"cptWaitingWindow cptCropDisabledMsg"},zC={class:"msg"},FC={key:2,class:"cptWaitingWindow cptNoPermissionMsg"},jC={class:"msg"},BC={key:3,class:"mainWindow"},$C={class:"cptSelectionPaneInner"},UC={class:"cptToolbar"},WC={key:0,class:"cptSameRatioMode"},qC=["value"],VC={key:1,class:"cptImageSizelist"},KC={key:2,class:"cptImageSizelist"},XC={class:"noImageSizesAvailable"},YC={class:"cptCropPane"},GC={class:"info"},JC={class:"dimensions"},QC={class:"ratio"},ZC=["disabled"],eT={key:0,class:"cropContainer"},tT={key:1,class:"selectionInfo"},iT={class:"name"},nT={class:"dimensions"},sT={key:0,class:"lowResWarning"},rT={class:"text"},oT={key:1,class:"notYetCropped"},aT={class:"text"},lT={class:"instructionInfo"},cT={class:"step-info"},uT={class:"cpt_checkbox_large_handles_wrapper"},fT={key:2,class:"cropThumbnailDebug"},hT={key:3,class:"cropThumbnailDebug"};function dT(e,t,i,n,s,r){var g;const a=pt("Message"),c=pt("CropImageSize"),u=pt("CropArea");return e.cropData?(ie(),me("div",{key:0,class:Yt(["cptEditorInner",{loading:e.loading}])},[e.loading?(ie(),me("div",LC,t[11]||(t[11]=[U("div",{class:"msg"},[U("div",null,[U("div",{class:"cptLoadingSpinner"})])],-1)]))):xe("",!0),e.cropData.hiddenOnPostType?(ie(),me("div",HC,[U("div",zC,le(r.lang.cropDisabled),1)])):xe("",!0),e.errorMessage?(ie(),me("div",FC,[U("div",jC,le(e.errorMessage),1)])):xe("",!0),!e.cropData.hiddenOnPostType&&!e.errorMessage?(ie(),me("div",BC,[U("div",{class:Yt(["cptSelectionPane",{cptImagesAreSelected:r.selectedImageSizes.length>0}])},[U("div",$C,[r.sourceImageHasOrientation?(ie(),Ve(a,{key:0},{default:ci(()=>[Ot(le(r.lang.message_image_orientation),1)]),_:1})):xe("",!0),U("div",UC,[(g=r.options)!=null&&g.same_ratio_mode?xe("",!0):(ie(),me("label",WC,[Ot(le(r.lang.label_same_ratio_mode)+" ",1),Ei(U("select",{"onUpdate:modelValue":t[0]||(t[0]=p=>e.sameRatioMode=p),onChange:t[1]||(t[1]=(...p)=>r.updateRatioMode&&r.updateRatioMode(...p))},[(ie(!0),me(it,null,dn(r.sameRatioModeOptions,p=>(ie(),me("option",{key:p.value,value:p.value},le(p.text),9,qC))),128))],544),[[ja,e.sameRatioMode]])])),U("button",{type:"button",class:"button cptDeselectAll",onClick:t[2]||(t[2]=p=>r.makeAllInactive())},le(r.lang.label_deselect_all),1)]),r.filteredImageSizes.length>0?(ie(),me("section",VC,[(ie(!0),me(it,null,dn(r.filteredImageSizes,p=>(ie(),Ve(c,{key:p.nameLabel,onClick:m=>r.toggleActive(p),image:p,lang:r.lang,currentCropSize:r.realCurrentCropSize,sameRatioMode:e.sameRatioMode,notYetCropped:r.isImageInGroupNotYetCropped(p.printRatio)},null,8,["onClick","image","lang","currentCropSize","sameRatioMode","notYetCropped"]))),128))])):(ie(),me("div",KC,[U("div",XC,le(r.lang.infoNoImageSizesAvailable),1)]))])],2),U("div",YC,[U("div",GC,[U("h3",null,le(r.lang.rawImage),1),U("div",JC,le(r.lang.dimensions)+" "+le(r.originalImage.width)+" x "+le(r.originalImage.height)+" "+le(r.lang.pixel),1),U("div",QC,le(r.lang.ratio)+" "+le(r.originalImage.printRatio),1)]),U("button",{type:"button",class:Yt(["button cptGenerate",{"button-primary":e.cropLoaded}]),onClick:t[3]||(t[3]=p=>r.cropThumbnails()),disabled:!e.cropLoaded},le(r.lang.label_crop),11,ZC),r.cropImage.url?(ie(),me("div",eT,[ke(u,{baseImage:r.cropImage,options:e.cropOptions,lang:r.lang,onChange:r.updateCurrentCrop,onReady:r.cropAreaLoaded,onCancel:t[4]||(t[4]=p=>r.makeAllInactive()),largeHandles:e.largeHandles},null,8,["baseImage","options","lang","onChange","onReady","largeHandles"])])):xe("",!0),r.selectedImageSizes.length>0?(ie(),me("div",tT,[U("h4",null,le(r.lang.headline_selected_image_sizes),1),U("ul",null,[(ie(!0),me(it,null,dn(r.selectedImageSizes,p=>(ie(),me("li",{key:p.nameLabel},[U("div",null,[U("span",iT,le(p.nameLabel),1),t[12]||(t[12]=Ot()),U("span",nT,"("+le(r.lang.dimensions)+" "+le(p.width)+" x "+le(p.height)+" "+le(r.lang.pixel)+")",1)]),r.isLowRes(p)?(ie(),me("div",sT,[t[13]||(t[13]=U("span",{class:"icon"},"!",-1)),U("span",rT,le(r.lang.lowResWarning),1)])):xe("",!0),p.notYetCropped?(ie(),me("div",oT,[t[14]||(t[14]=U("span",{class:"icon dashicons dashicons-image-crop"},null,-1)),U("span",aT,le(r.lang.notYetCropped),1)])):xe("",!0)]))),128))])])):xe("",!0),U("div",lT,[U("h4",null,le(r.lang.instructions_header),1),U("ul",cT,[U("li",null,le(r.lang.instructions_step_1),1),U("li",null,le(r.lang.instructions_step_2),1),U("li",null,le(r.lang.instructions_step_3),1)])]),U("div",uT,[U("label",null,[Ei(U("input",{type:"checkbox","onUpdate:modelValue":t[5]||(t[5]=p=>e.largeHandles=p),onChange:t[6]||(t[6]=(...p)=>r.updateHandleSize&&r.updateHandleSize(...p))},null,544),[[Gi,e.largeHandles]]),U("span",null,le(r.lang.label_large_handles),1)])]),U("div",null,[e.cropData.options.debug_js?(ie(),me("button",{key:0,type:"button",class:"button",onClick:t[7]||(t[7]=p=>r.showDebugClick("js"))},"show JS-Debug")):xe("",!0),e.cropData.options.debug_data&&e.dataDebug!==null?(ie(),me("button",{key:1,type:"button",class:"button",onClick:t[8]||(t[8]=p=>r.showDebugClick("data"))},"show Data-Debug")):xe("",!0),e.showDebugType==="data"?(ie(),me("pre",fT,[Ot(le(e.dataDebug)+`
`,1),U("button",{class:"copyDebug",onClick:t[9]||(t[9]=p=>r.copyToClipboard(e.dataDebug))},"Copy"),t[15]||(t[15]=Ot(`
`))])):xe("",!0),e.showDebugType==="js"?(ie(),me("pre",hT,[Ot(le(e.cropData)+`
`,1),U("button",{class:"copyDebug",onClick:t[10]||(t[10]=p=>r.copyToClipboard(e.cropData))},"Copy"),t[16]||(t[16]=Ot(`
`))])):xe("",!0)])])])):xe("",!0)],2)):xe("",!0)}const Sm=Oi(PC,[["render",dT]]);window.CROP_THUMBNAILS_VUE.modal=function(){var e=ma,t=this;function i(){e("#cpt_Modal .cpt_ModalClose, #cpt_Modal").off("click"),e("#cpt_Modal").remove(),e("body").removeClass("cpt_ModalIsOpen")}t.close=function(n){window.CROP_THUMBNAILS_VUE.app.unmount(),window.CROP_THUMBNAILS_VUE.app=null,i(),e("body").trigger("cropThumbnailModalClosed"),document.removeEventListener("keydown",t.closeByEscKey,!0)},t.closeByBackground=function(n){n.target==document.getElementById("cpt_Modal")&&t.close(n)},t.closeByEscKey=function(n){(!n.keyCode||n.keyCode===27)&&(n.stopPropagation(),t.close(n))},t.open=function(n,s,r){var a=n,c="";c+='<div id="cpt_Modal" class="cpt_Modal">',c+='<div class="cpt_ModalDialog" role="dialog" aria-label="'+e("<div>").text(r).html()+'">',c+='<button type="button" class="cpt_ModalClose" aria-label="close">×</button>',c+='<div class="cpt_ModalHeader"><div class="cpt_ModalTitle">'+r+"</div></div>",c+='<div class="cpt_ModalContent" id="cpt_crop_editor">',c+='<crop-editor :image-id="'+a+'"',typeof s=="string"&&(c+=' posttype="'+s+'"'),c+="></crop-editor>",c+="</div>",c+="</div>",c+="</div>",e("body").prepend(c).addClass("cpt_ModalIsOpen"),e("#cpt_Modal .cpt_ModalClose").on("click",t.close),e("#cpt_Modal").on("touchstart mousedown",t.closeByBackground),document.addEventListener("keydown",t.closeByEscKey,!0),window.CROP_THUMBNAILS_VUE.app=$s(),window.CROP_THUMBNAILS_VUE.app.component("CropEditor",Sm).mount("#cpt_crop_editor")}};const pT=()=>nt({url:`${wpApiSettings.root}crop_thumbnails/v1/settings`,method:"GET",headers:{"X-WP-Nonce":wpApiSettings.nonce}}),gT=e=>nt({url:`${wpApiSettings.root}crop_thumbnails/v1/pluginTest`,method:"POST",data:e,headers:{"X-WP-Nonce":wpApiSettings.nonce}}),mT=e=>nt({url:`${wpApiSettings.root}crop_thumbnails/v1/settings/postTypes`,method:"POST",data:e,headers:{"X-WP-Nonce":wpApiSettings.nonce}}),yT=e=>nt({url:`${wpApiSettings.root}crop_thumbnails/v1/settings/userPermission`,method:"POST",data:e,headers:{"X-WP-Nonce":wpApiSettings.nonce}}),vT=e=>nt({url:`${wpApiSettings.root}crop_thumbnails/v1/settings/developerSettings`,method:"POST",data:e,headers:{"X-WP-Nonce":wpApiSettings.nonce}}),bT=e=>nt({url:`${wpApiSettings.root}crop_thumbnails/v1/settings/resetSettings`,method:"POST",data:e,headers:{"X-WP-Nonce":wpApiSettings.nonce}}),Hs=e=>e==="1"||e===1||e===!0||e==="true",wT={components:{Message:Ng},props:{settings:{required:!0,type:Object}},mounted(){this.doSetup()},components:{},data:()=>({result:null,loading:!1,form:null}),methods:{doSetup(){this.form=this.getNewFormArray()},getNewFormArray(){if(!this.settings.post_types)return[];if(!this.settings.image_sizes)return[];const e=[];for(const[t,i]of Object.entries(this.settings.post_types)){const n={name:i.name,label:i.label,imageSizes:[],hidden:this.isButtonHiddenOnPostType(i.name)};for(const[s,r]of Object.entries(this.settings.image_sizes))r.crop&&n.imageSizes.push({id:r.id,name:r.name,hidden:!!this.isImageSizeHidden(n.name,r.id)});e.push(n)}return e},isButtonHiddenOnPostType(e){return!this.settings.options||!this.settings.options.hide_post_type||!this.settings.options.hide_post_type[e]?!1:Hs(this.settings.options.hide_post_type[e])},isImageSizeHidden(e,t){return!this.settings.options||!this.settings.options.hide_size||!this.settings.options.hide_size[e]?!1:Hs(this.settings.options.hide_size[e][t])},doSave(){this.loading||(this.loading=!0,this.result=null,mT(this.form).then(e=>{this.result="success"}).catch(e=>{this.result="error"}).then(()=>{this.loading=!1}))}}},ST={class:"cpt_PostTypeSettings"},_T={class:"toolbar text-right"},CT={key:0},TT={key:1},ET={key:2,class:"cptLoadingSpinner small"},AT={class:"cptSettingsPostListDescription"},xT={class:"cptSettingsPostList"},RT={key:0},IT={class:"cptImageSizes"},OT=["onUpdate:modelValue"],kT={class:"name"},NT={key:0,class:"defaultName"},MT=["onUpdate:modelValue"],DT={class:"toolbar text-right"},PT={key:0},LT={key:1},HT={key:2,class:"cptLoadingSpinner small"};function zT(e,t,i,n,s,r){return ie(),me("div",ST,[U("h2",null,le(i.settings.lang.general.nav_post_types),1),U("p",null,[Ot(le(i.settings.lang.posttype_settings.intro_1)+" ",1),t[2]||(t[2]=U("br",null,null,-1)),U("strong",null,le(i.settings.lang.posttype_settings.intro_2),1)]),U("div",_T,[e.result==="error"?(ie(),me("span",CT,le(e.result),1)):xe("",!0),e.result==="success"?(ie(),me("span",TT,le(i.settings.lang.general.successful_saved),1)):xe("",!0),e.loading?(ie(),me("div",ET)):xe("",!0),U("button",{type:"button",class:"button-primary doSaveBtn",onClick:t[0]||(t[0]=(...a)=>r.doSave&&r.doSave(...a))},le(i.settings.lang.general.save_changes),1)]),U("div",AT,le(i.settings.lang.posttype_settings.choose_image_sizes),1),U("ul",xT,[(ie(!0),me(it,null,dn(e.form,a=>(ie(),me("li",{key:a.name},[a?(ie(),me("section",RT,[U("header",null,[U("h3",null,le(a.label),1)]),U("ul",IT,[(ie(!0),me(it,null,dn(a.imageSizes,c=>(ie(),me("li",{key:c.id},[U("label",null,[Ei(U("input",{type:"checkbox","onUpdate:modelValue":u=>c.hidden=u},null,8,OT),[[Gi,c.hidden]]),U("span",kT,le(c.name),1),c.name!==c.id?(ie(),me("span",NT,"("+le(c.id)+")",1)):xe("",!0)])]))),128))]),U("label",null,[Ei(U("input",{type:"checkbox","onUpdate:modelValue":c=>a.hidden=c},null,8,MT),[[Gi,a.hidden]]),U("span",null,le(i.settings.lang.posttype_settings.hide_on_post_type),1)])])):xe("",!0)]))),128))]),U("div",DT,[e.result==="error"?(ie(),me("span",PT,le(e.result),1)):xe("",!0),e.result==="success"?(ie(),me("span",LT,le(i.settings.lang.general.successful_saved),1)):xe("",!0),e.loading?(ie(),me("div",HT)):xe("",!0),U("button",{type:"button",class:"button-primary doSaveBtn",onClick:t[1]||(t[1]=(...a)=>r.doSave&&r.doSave(...a))},le(i.settings.lang.general.save_changes),1)])])}const FT=Oi(wT,[["render",zT]]),jT={},BT={class:"cpt_Toolkit"};function $T(e,t,i,n,s,r){return ie(),me("div",BT,t[0]||(t[0]=[U("h2",null,"Coming Soon",-1)]))}const UT=Oi(jT,[["render",$T]]),WT={props:{settings:{required:!0,type:Object}},data:()=>({loading:!1,testResult:null,error:!1}),methods:{doTest(){this.loading||(this.loading=!0,this.error=!1,this.testResult=null,gT().then(e=>{this.testResult=e.data}).catch(e=>{this.error=!0}).then(()=>{this.loading=!1}))},copyToClipboard(){let e=this.testResult.map(t=>t.replace(/<[^>]*>?/gm,""));navigator.clipboard&&navigator.clipboard.writeText(e.join(`
`))}}},qT={class:"cpt_PluginTest"},VT={key:0,class:"result"},KT={key:1,class:"result"},XT=["innerHTML"],YT={key:0,class:"cptLoadingSpinner small"};function GT(e,t,i,n,s,r){return ie(),me("div",qT,[U("h2",null,le(i.settings.lang.general.nav_plugin_test),1),e.error?(ie(),me("div",VT,t[2]||(t[2]=[U("strong",{class:"fails"},"fail",-1),Ot(" Failure processing the test - have a look on your server logs.")]))):xe("",!0),e.testResult&&!e.error?(ie(),me("div",KT,[(ie(!0),me(it,null,dn(e.testResult,(a,c)=>(ie(),me("div",{key:c,innerHTML:a},null,8,XT))),128)),U("div",null,[U("button",{type:"button",class:"button-secondary",onClick:t[0]||(t[0]=(...a)=>r.copyToClipboard&&r.copyToClipboard(...a))},"Copy to Clipboard")])])):xe("",!0),U("div",null,[U("button",{type:"button",class:"button-primary startTest",onClick:t[1]||(t[1]=(...a)=>r.doTest&&r.doTest(...a))},"Start plugin quick-test."),e.loading?(ie(),me("div",YT)):xe("",!0)])])}const JT=Oi(WT,[["render",GT]]),QT={props:{settings:{required:!0,type:Object}},mounted(){this.doSetup()},data:()=>({loading:!1,result:null,form:{same_ratio_mode:null,user_permission_only_on_edit_files:!1}}),methods:{doSetup(){this.settings.options&&(this.form.user_permission_only_on_edit_files=Hs(this.settings.options.user_permission_only_on_edit_files),this.form.same_ratio_mode=this.settings.options.same_ratio_mode)},doSave(){this.loading||(this.loading=!0,this.result=null,yT(this.form).then(e=>{this.result="success"}).catch(e=>{this.result="error"}).then(()=>{this.loading=!1}))}}},ZT={class:"cpt_UserPermissions"},eE={value:null},tE={value:"select"},iE={value:"group"},nE={key:0},sE={key:1},rE={style:{"margin-top":"3em"}},oE={key:0,class:"cptLoadingSpinner small"};function aE(e,t,i,n,s,r){return ie(),me("div",ZT,[U("h2",null,le(i.settings.lang.user_settings.nav_user_permissions),1),U("p",null,[U("label",null,[Ei(U("input",{type:"checkbox","onUpdate:modelValue":t[0]||(t[0]=a=>e.form.user_permission_only_on_edit_files=a)},null,512),[[Gi,e.form.user_permission_only_on_edit_files]]),Ot(" "+le(i.settings.lang.user_settings.text_user_permissions),1)])]),U("h2",null,le(i.settings.lang.user_settings.nav_same_ratio_mode),1),U("p",null,le(i.settings.lang.user_settings.text_same_ratio_mode),1),U("p",null,[U("label",null,[Ot(le(i.settings.lang.user_settings.label_same_ratio_mode)+" ",1),Ei(U("select",{type:"checkbox","onUpdate:modelValue":t[1]||(t[1]=a=>e.form.same_ratio_mode=a)},[U("option",eE,le(i.settings.lang.user_settings.label_same_ratio_mode_default),1),U("option",tE,le(i.settings.lang.user_settings.label_same_ratio_mode_select),1),U("option",iE,le(i.settings.lang.user_settings.label_same_ratio_mode_group),1)],512),[[ja,e.form.same_ratio_mode]])])]),e.result==="error"?(ie(),me("p",nE,le(e.result),1)):xe("",!0),e.result==="success"?(ie(),me("p",sE,le(i.settings.lang.general.successful_saved),1)):xe("",!0),U("p",rE,[U("button",{type:"button",class:"button-primary doSaveBtn",onClick:t[2]||(t[2]=(...a)=>r.doSave&&r.doSave(...a))},le(i.settings.lang.general.save_changes),1),e.loading?(ie(),me("span",oE)):xe("",!0)])])}const lE=Oi(QT,[["render",aE]]),cE={props:{settings:{required:!0,type:Object}},mounted(){this.doSetup()},data:()=>({loading:!1,form:{enable_debug_js:!1,enable_debug_data:!1,include_js_on_all_admin_pages:!1},error:!1,result:null}),methods:{doSetup(){this.settings.options&&(this.form.enable_debug_data=Hs(this.settings.options.debug_data),this.form.enable_debug_js=Hs(this.settings.options.debug_js),this.form.include_js_on_all_admin_pages=Hs(this.settings.options.include_js_on_all_admin_pages))},doSave(){this.loading||(this.loading=!0,this.result=null,vT(this.form).then(e=>{this.result="success"}).catch(e=>{this.result="error"}).then(()=>{this.loading=!1}))},doResetSettings(){window.confirm(this.settings.lang.developer_settings.confirm_settings_reset)&&this.loading||(this.loading=!0,this.result=null,bT().then(e=>{location.reload()}).catch(e=>{this.result="error"}).then(()=>{this.loading=!1}))}}},uE={class:"cpt_DeveloperSettings"},fE={key:0},hE={key:1},dE={key:0,class:"cptLoadingSpinner small"};function pE(e,t,i,n,s,r){return ie(),me("div",uE,[U("h2",null,le(i.settings.lang.general.nav_developer_settings),1),U("p",null,[U("label",null,[Ei(U("input",{type:"checkbox","onUpdate:modelValue":t[0]||(t[0]=a=>e.form.enable_debug_js=a)},null,512),[[Gi,e.form.enable_debug_js]]),Ot(" "+le(i.settings.lang.developer_settings.enable_debug_js),1)])]),U("p",null,[U("label",null,[Ei(U("input",{type:"checkbox","onUpdate:modelValue":t[1]||(t[1]=a=>e.form.enable_debug_data=a)},null,512),[[Gi,e.form.enable_debug_data]]),Ot(" "+le(i.settings.lang.developer_settings.enable_debug_data),1)])]),U("p",null,[U("label",null,[Ei(U("input",{type:"checkbox","onUpdate:modelValue":t[2]||(t[2]=a=>e.form.include_js_on_all_admin_pages=a)},null,512),[[Gi,e.form.include_js_on_all_admin_pages]]),Ot(" "+le(i.settings.lang.developer_settings.include_js_on_all_admin_pages),1)])]),e.result==="error"?(ie(),me("p",fE,le(e.result),1)):xe("",!0),e.result==="success"?(ie(),me("p",hE,le(i.settings.lang.general.successful_saved),1)):xe("",!0),U("p",null,[U("button",{type:"button",class:"button-primary doSaveBtn",onClick:t[3]||(t[3]=(...a)=>r.doSave&&r.doSave(...a))},le(i.settings.lang.general.save_changes),1),e.loading?(ie(),me("span",dE)):xe("",!0)]),U("p",null,[U("button",{type:"button",class:"button-secondary doResetBtn",onClick:t[4]||(t[4]=(...a)=>r.doResetSettings&&r.doResetSettings(...a))},le(i.settings.lang.developer_settings.reset_settings),1)])])}const gE=Oi(cE,[["render",pE]]),mE={props:{settings:{required:!0,type:Object}}},yE={class:"cpt_PaypalInfo"};function vE(e,t,i,n,s,r){return ie(),me("div",yE,[U("h3",null,le(i.settings.lang.paypal_info.headline),1),U("p",null,le(i.settings.lang.paypal_info.text),1),t[0]||(t[0]=U("form",{action:"https://www.paypal.com/cgi-bin/webscr",method:"post",target:"_blank"},[U("input",{type:"hidden",name:"cmd",value:"_donations"}),U("input",{type:"hidden",name:"business",value:"volkmar.kantor@gmx.de"}),U("input",{type:"hidden",name:"lc",value:"DE"}),U("input",{type:"hidden",name:"item_name",value:"Volkmar Kantor - totalmedial.de"}),U("input",{type:"hidden",name:"item_number",value:"crop-thumbnails"}),U("input",{type:"hidden",name:"no_note",value:"0"}),U("input",{type:"hidden",name:"currency_code",value:"EUR"}),U("input",{type:"hidden",name:"bn",value:"PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest"}),U("input",{type:"image",src:"https://www.paypalobjects.com/de_DE/DE/i/btn/btn_donateCC_LG.gif",border:"0",name:"submit",alt:"Jetzt einfach, schnell und sicher online bezahlen – mit PayPal."}),U("img",{alt:"",border:"0",src:"https://www.paypalobjects.com/de_DE/i/scr/pixel.gif",width:"1",height:"1"})],-1))])}const bE=Oi(mE,[["render",vE]]),wE={components:{PostTypeSettings:FT,Toolkit:UT,QuickTest:JT,UserPermissions:lE,DeveloperSettings:gE,PaypalInfo:bE},mounted(){this.doSetup()},data:()=>({loading:!1,type:"post_types_and_sizes",settings:null}),methods:{doSetup(){this.loading||(this.loading=!0,pT().then(e=>{this.settings=e.data}).catch(e=>{}).then(()=>{this.loading=!1}))}}},SE={class:"cpt_SettingsScreen"},_E={key:0,class:"cptLoadingSpinner"},CE={key:1},TE={class:"tabNavigation"};function EE(e,t,i,n,s,r){const a=pt("PostTypeSettings"),c=pt("UserPermissions"),u=pt("DeveloperSettings"),g=pt("QuickTest"),p=pt("Toolkit"),m=pt("PaypalInfo");return ie(),me("div",SE,[e.loading?(ie(),me("div",_E)):xe("",!0),e.settings?(ie(),me("section",CE,[U("nav",TE,[U("button",{type:"button",class:Yt(["button",{"button-primary":e.type==="post_types_and_sizes"}]),onClick:t[0]||(t[0]=b=>e.type="post_types_and_sizes")},le(e.settings.lang.general.nav_post_types),3),U("button",{type:"button",class:Yt(["button",{"button-primary":e.type==="user_permissions"}]),onClick:t[1]||(t[1]=b=>e.type="user_permissions")},le(e.settings.lang.general.nav_user_permissions),3),U("button",{type:"button",class:Yt(["button",{"button-primary":e.type==="developer_settings"}]),onClick:t[2]||(t[2]=b=>e.type="developer_settings")},le(e.settings.lang.general.nav_developer_settings),3),U("button",{type:"button",class:Yt(["button",{"button-primary":e.type==="quicktest"}]),onClick:t[3]||(t[3]=b=>e.type="quicktest")},le(e.settings.lang.general.nav_plugin_test),3)]),e.type==="post_types_and_sizes"?(ie(),Ve(a,{key:0,settings:e.settings},null,8,["settings"])):xe("",!0),e.type==="user_permissions"?(ie(),Ve(c,{key:1,settings:e.settings},null,8,["settings"])):xe("",!0),e.type==="developer_settings"?(ie(),Ve(u,{key:2,settings:e.settings},null,8,["settings"])):xe("",!0),e.type==="quicktest"?(ie(),Ve(g,{key:3,settings:e.settings},null,8,["settings"])):xe("",!0),e.type==="toolkit"?(ie(),Ve(p,{key:4,settings:e.settings},null,8,["settings"])):xe("",!0),U("div",null,[ke(m,{settings:e.settings},null,8,["settings"])])])):xe("",!0)])}const AE=Oi(wE,[["render",EE]]);ma(function(e){e("body.settings_page_page-cpt").length>0&&(window.CROP_THUMBNAILS_VUE.app=$s(),window.CROP_THUMBNAILS_VUE.app.component("cptSettingsscreen",AE),window.CROP_THUMBNAILS_VUE.app.mount("#cpt_settings_settingsscreen"))});$s().component("CropEditor",Sm).mount("#cpt_crop_editor");