/*! For license information please see 793.js.LICENSE.txt */ (self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[793,728],{81653:function(t){t.exports=function(){return e={134:function(t,e,n){"use strict";n.d(e,{default:function(){return h}}),e=n(279);var r=n.n(e),o=(e=n(370),n.n(e)),i=(e=n(817),n.n(e));function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n{"use strict";n.d(e,{Z:()=>i});var r=n(1519),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,'.component-resize-line[data-v-391694e1]{cursor:col-resize}@media (max-width:768px){.component-resize-line[data-v-391694e1]{display:none}}.component-resize-line.resizing[data-v-391694e1]:after{bottom:0;content:"";cursor:col-resize;left:0;position:fixed;right:0;top:0;z-index:99999}',""]);const i=o},51474:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(){return i=Object.assign||function(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function u(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);ewe,MultiDrag:()=>ye,Sortable:()=>Ft,Swap:()=>ue});function c(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var l=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),f=c(/firefox/i),p=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),m=c(/iP(ad|od|hone)/i),h=c(/chrome/i)&&c(/android/i),g={capture:!1,passive:!1};function v(t,e,n){t.addEventListener(e,n,!l&&g)}function b(t,e,n){t.removeEventListener(e,n,!l&&g)}function y(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function _(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function C(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&y(t,e):y(t,e))||r&&t===n)return t;if(t===n)break}while(t=_(t))}return null}var w,x=/\s+/g;function k(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(x," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(x," ")}}function S(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||-1!==e.indexOf("webkit")||(e="-webkit-"+e),r[e]=n+("string"==typeof n?"":"px")}}function E(t,e){var n="";if("string"==typeof t)n=t;else do{var r=S(t,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function D(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,i=r.length;if(n)for(;o=i:o<=i))return r;if(r===T())break;r=P(r,!1)}return!1}function N(t,e,n){for(var r=0,o=0,i=t.children;o2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=s(n,["evt"]);W.pluginEvent.bind(Ft)(t,e,a({dragEl:G,parentEl:Z,ghostEl:J,rootEl:Q,nextEl:tt,lastDownEl:et,cloneEl:nt,cloneHidden:rt,dragStarted:gt,putSortable:ct,activeSortable:Ft.active,originalEvent:r,oldIndex:ot,oldDraggableIndex:at,newIndex:it,newDraggableIndex:st,hideGhostForTarget:Rt,unhideGhostForTarget:jt,cloneNowHidden:function(){rt=!0},cloneNowShown:function(){rt=!1},dispatchSortableEvent:function(t){X({sortable:e,name:t,originalEvent:r})}},o))};function X(t){Y(a({putSortable:ct,cloneEl:nt,targetEl:G,rootEl:Q,oldIndex:ot,oldDraggableIndex:at,newIndex:it,newDraggableIndex:st},t))}var G,Z,J,Q,tt,et,nt,rt,ot,it,at,st,ut,ct,lt,dt,ft,pt,mt,ht,gt,vt,bt,yt,_t,Ct=!1,wt=!1,xt=[],kt=!1,St=!1,Et=[],Dt=!1,Tt=[],At="undefined"!=typeof document,Ot=m,Nt=d||l?"cssFloat":"float",Lt=At&&!h&&!m&&"draggable"in document.createElement("div"),$t=function(){if(At){if(l)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),It=function(t,e){var n=S(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=N(t,0,e),i=N(t,1,e),a=o&&S(o),s=i&&S(i),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+A(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+A(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var l="left"===a.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==l?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=r&&"none"===n[Nt]||i&&"none"===n[Nt]&&u+c>r)?"vertical":"horizontal"},Pt=function(t){function e(t,n){return function(r,o,i,a){var s=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(r,o,i,a),n)(r,o,i,a);var u=(n?r:o).options.group.name;return!0===t||"string"==typeof t&&t===u||t.join&&t.indexOf(u)>-1}}var n={},o=t.group;o&&"object"==r(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},Rt=function(){!$t&&J&&S(J,"display","none")},jt=function(){!$t&&J&&S(J,"display","")};At&&document.addEventListener("click",(function(t){if(wt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),wt=!1,!1}),!0);var Bt=function(t){if(G){t=t.touches?t.touches[0]:t;var e=(o=t.clientX,i=t.clientY,xt.some((function(t){if(!L(t)){var e=A(t),n=t[U].options.emptyInsertThreshold,r=o>=e.left-n&&o<=e.right+n,s=i>=e.top-n&&i<=e.bottom+n;return n&&r&&s?a=t:void 0}})),a);if(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[U]._onDragOver(n)}}var o,i,a},Mt=function(t){G&&G.parentNode[U]._isOutsideThisEl(t.target)};function Ft(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=i({},e),t[U]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return It(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ft.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in W.initializePlugins(this,t,n),n)!(r in e)&&(e[r]=n[r]);for(var o in Pt(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&Lt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?v(t,"pointerdown",this._onTapStart):(v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),xt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),i(this,V())}function zt(t,e,n,r,o,i,a,s){var u,c,f=t[U],p=f.options.onMove;return!window.CustomEvent||l||d?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=e,u.from=t,u.dragged=n,u.draggedRect=r,u.related=o||e,u.relatedRect=i||A(e),u.willInsertAfter=s,u.originalEvent=a,t.dispatchEvent(u),p&&(c=p.call(f,u,a)),c}function Ut(t){t.draggable=!1}function Vt(){Dt=!1}function Ht(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function qt(t){return setTimeout(t,0)}function Wt(t){return clearTimeout(t)}Ft.prototype={constructor:Ft,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(vt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,G):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,o=r.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=r.filter;if(function(t){Tt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var r=e[n];r.checked&&Tt.push(r)}}(n),!G&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||r.disabled||u.isContentEditable||(s=C(s,r.draggable,n,!1))&&s.animated||et===s)){if(ot=$(s),at=$(s,r.draggable),"function"==typeof c){if(c.call(this,t,s,this))return X({sortable:e,rootEl:u,name:"filter",targetEl:s,toEl:n,fromEl:n}),K("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=C(u,r.trim(),n,!1))return X({sortable:e,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),K("filter",e,{evt:t}),!0}))))return void(o&&t.cancelable&&t.preventDefault());r.handle&&!C(u,r.handle,n,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,n){var r,o=this,i=o.el,a=o.options,s=i.ownerDocument;if(n&&!G&&n.parentNode===i){var u=A(n);if(Q=i,Z=(G=n).parentNode,tt=G.nextSibling,et=n,ut=a.group,Ft.dragged=G,lt={target:G,clientX:(e||t).clientX,clientY:(e||t).clientY},mt=lt.clientX-u.left,ht=lt.clientY-u.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,G.style["will-change"]="all",r=function(){K("delayEnded",o,{evt:t}),Ft.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!f&&o.nativeDraggable&&(G.draggable=!0),o._triggerDragStart(t,e),X({sortable:o,name:"choose",originalEvent:t}),k(G,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){D(G,t.trim(),Ut)})),v(s,"dragover",Bt),v(s,"mousemove",Bt),v(s,"touchmove",Bt),v(s,"mouseup",o._onDrop),v(s,"touchend",o._onDrop),v(s,"touchcancel",o._onDrop),f&&this.nativeDraggable&&(this.options.touchStartThreshold=4,G.draggable=!0),K("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(d||l))r();else{if(Ft.eventCanceled)return void this._onDrop();v(s,"mouseup",o._disableDelayedDrag),v(s,"touchend",o._disableDelayedDrag),v(s,"touchcancel",o._disableDelayedDrag),v(s,"mousemove",o._delayedDragTouchMoveHandler),v(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&v(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){G&&Ut(G),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._disableDelayedDrag),b(t,"touchend",this._disableDelayedDrag),b(t,"touchcancel",this._disableDelayedDrag),b(t,"mousemove",this._delayedDragTouchMoveHandler),b(t,"touchmove",this._delayedDragTouchMoveHandler),b(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):v(document,e?"touchmove":"mousemove",this._onTouchMove):(v(G,"dragend",this),v(Q,"dragstart",this._onDragStart));try{document.selection?qt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Ct=!1,Q&&G){K("dragStarted",this,{evt:e}),this.nativeDraggable&&v(document,"dragover",Mt);var n=this.options;!t&&k(G,n.dragClass,!1),k(G,n.ghostClass,!0),Ft.active=this,t&&this._appendGhost(),X({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,Rt();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY))!==e;)e=t;if(G.parentNode[U]._isOutsideThisEl(t),e)do{if(e[U]){if(e[U]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);jt()}},_onTouchMove:function(t){if(lt){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,i=J&&E(J,!0),a=J&&i&&i.a,s=J&&i&&i.d,u=Ot&&_t&&I(_t),c=(o.clientX-lt.clientX+r.x)/(a||1)+(u?u[0]-Et[0]:0)/(a||1),l=(o.clientY-lt.clientY+r.y)/(s||1)+(u?u[1]-Et[1]:0)/(s||1);if(!Ft.active&&!Ct){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))r.right+o||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+o}(t,o,this)&&!g.animated){if(g===G)return M(!1);if(g&&i===t.target&&(s=g),s&&(n=A(s)),!1!==zt(Q,i,G,e,s,n,t,!!s))return j(),i.appendChild(G),Z=i,F(),M(!0)}else if(s.parentNode===i){n=A(s);var v,b,y,_=G.parentNode!==i,w=!function(t,e,n){var r=n?t.left:t.top,o=n?t.right:t.bottom,i=n?t.width:t.height,a=n?e.left:e.top,s=n?e.right:e.bottom,u=n?e.width:e.height;return r===a||o===s||r+i/2===a+u/2}(G.animated&&G.toRect||e,s.animated&&s.toRect||n,o),x=o?"top":"left",E=O(s,"top","top")||O(G,"top","top"),D=E?E.scrollTop:void 0;if(vt!==s&&(b=n[x],kt=!1,St=!w&&u.invertSwap||_),v=function(t,e,n,r,o,i,a,s){var u=r?t.clientY:t.clientX,c=r?n.height:n.width,l=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!a)if(s&&ytl+c*i/2:ud-yt)return-bt}else if(u>l+c*(1-o)/2&&ud-c*i/2))return u>l+c/2?1:-1;return 0}(t,s,n,o,w?1:u.swapThreshold,null==u.invertedSwapThreshold?u.swapThreshold:u.invertedSwapThreshold,St,vt===s),0!==v){var T=$(G);do{T-=v,y=Z.children[T]}while(y&&("none"===S(y,"display")||y===J))}if(0===v||y===s)return M(!1);vt=s,bt=v;var N=s.nextElementSibling,I=!1,P=zt(Q,i,G,e,s,n,t,I=1===v);if(!1!==P)return 1!==P&&-1!==P||(I=1===P),Dt=!0,setTimeout(Vt,30),j(),I&&!N?i.appendChild(G):s.parentNode.insertBefore(G,I?N:s),E&&B(E,0,D-E.scrollTop),Z=G.parentNode,void 0===b||St||(yt=Math.abs(b-A(s)[x])),F(),M(!0)}if(i.contains(G))return M(!1)}return!1}function R(u,c){K(u,m,a({evt:t,isOwner:d,axis:o?"vertical":"horizontal",revert:r,dragRect:e,targetRect:n,canSort:f,fromSortable:p,target:s,completed:M,onMove:function(n,r){return zt(Q,i,G,e,n,A(n),t,r)},changed:F},c))}function j(){R("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function M(e){return R("dragOverCompleted",{insertion:e}),e&&(d?l._hideClone():l._showClone(m),m!==p&&(k(G,ct?ct.options.ghostClass:l.options.ghostClass,!1),k(G,u.ghostClass,!0)),ct!==m&&m!==Ft.active?ct=m:m===Ft.active&&ct&&(ct=null),p===m&&(m._ignoreWhileAnimating=s),m.animateAll((function(){R("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===G&&!G.animated||s===i&&!s.animated)&&(vt=null),u.dragoverBubble||t.rootEl||s===document||(G.parentNode[U]._isOutsideThisEl(t.target),!e&&Bt(t)),!u.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function F(){it=$(G),st=$(G,u.draggable),X({sortable:m,name:"change",toEl:i,newIndex:it,newDraggableIndex:st,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",Bt),b(document,"mousemove",Bt),b(document,"touchmove",Bt)},_offUpEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._onDrop),b(t,"touchend",this._onDrop),b(t,"pointerup",this._onDrop),b(t,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;it=$(G),st=$(G,n.draggable),K("drop",this,{evt:t}),Z=G&&G.parentNode,it=$(G),st=$(G,n.draggable),Ft.eventCanceled||(Ct=!1,St=!1,kt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Wt(this.cloneId),Wt(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&S(document.body,"user-select",""),S(G,"transform",""),t&&(gt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(Q===Z||ct&&"clone"!==ct.lastPutMode)&&nt&&nt.parentNode&&nt.parentNode.removeChild(nt),G&&(this.nativeDraggable&&b(G,"dragend",this),Ut(G),G.style["will-change"]="",gt&&!Ct&&k(G,ct?ct.options.ghostClass:this.options.ghostClass,!1),k(G,this.options.chosenClass,!1),X({sortable:this,name:"unchoose",toEl:Z,newIndex:null,newDraggableIndex:null,originalEvent:t}),Q!==Z?(it>=0&&(X({rootEl:Z,name:"add",toEl:Z,fromEl:Q,originalEvent:t}),X({sortable:this,name:"remove",toEl:Z,originalEvent:t}),X({rootEl:Z,name:"sort",toEl:Z,fromEl:Q,originalEvent:t}),X({sortable:this,name:"sort",toEl:Z,originalEvent:t})),ct&&ct.save()):it!==ot&&it>=0&&(X({sortable:this,name:"update",toEl:Z,originalEvent:t}),X({sortable:this,name:"sort",toEl:Z,originalEvent:t})),Ft.active&&(null!=it&&-1!==it||(it=ot,st=at),X({sortable:this,name:"end",toEl:Z,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){K("nulling",this),Q=G=Z=J=tt=nt=et=rt=lt=dt=gt=it=st=ot=at=vt=bt=ct=ut=Ft.dragged=Ft.ghost=Ft.clone=Ft.active=null,Tt.forEach((function(t){t.checked=!0})),Tt.length=ft=pt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":G&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,r=0,o=n.length,i=this.options;r1&&(me.forEach((function(t){r.addAnimationState({target:t,rect:ve?A(t):o}),z(t),t.fromRect=o,e.removeAnimationState(t)})),ve=!1,function(t,e){me.forEach((function(n,r){var o=e.children[n.sortableIndex+(t?Number(r):0)];o?e.insertBefore(n,o):e.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,r=t.insertion,o=t.activeSortable,i=t.parentEl,a=t.putSortable,s=this.options;if(r){if(n&&o._hideClone(),ge=!1,s.animation&&me.length>1&&(ve||!n&&!o.options.sort&&!a)){var u=A(de,!1,!0,!0);me.forEach((function(t){t!==de&&(F(t,u),i.appendChild(t))})),ve=!0}if(!n)if(ve||Ce(),me.length>1){var c=pe;o._showClone(e),o.options.animation&&!pe&&c&&he.forEach((function(t){o.addAnimationState({target:t,rect:fe}),t.fromRect=fe,t.thisAnimationDuration=null}))}else o._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,r=t.activeSortable;if(me.forEach((function(t){t.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){fe=i({},e);var o=E(de,!0);fe.top-=o.f,fe.left-=o.e}},dragOverAnimationComplete:function(){ve&&(ve=!1,Ce())},drop:function(t){var e=t.originalEvent,n=t.rootEl,r=t.parentEl,o=t.sortable,i=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable,u=s||this.sortable;if(e){var c=this.options,l=r.children;if(!be)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),k(de,c.selectedClass,!~me.indexOf(de)),~me.indexOf(de))me.splice(me.indexOf(de),1),ce=null,Y({sortable:o,rootEl:n,name:"deselect",targetEl:de,originalEvt:e});else{if(me.push(de),Y({sortable:o,rootEl:n,name:"select",targetEl:de,originalEvt:e}),e.shiftKey&&ce&&o.el.contains(ce)){var d,f,p=$(ce),m=$(de);if(~p&&~m&&p!==m)for(m>p?(f=p,d=m):(f=m,d=p+1);f1){var h=A(de),g=$(de,":not(."+this.options.selectedClass+")");if(!ge&&c.animation&&(de.thisAnimationDuration=null),u.captureAnimationState(),!ge&&(c.animation&&(de.fromRect=h,me.forEach((function(t){if(t.thisAnimationDuration=null,t!==de){var e=ve?A(t):h;t.fromRect=e,u.addAnimationState({target:t,rect:e})}}))),Ce(),me.forEach((function(t){l[g]?r.insertBefore(t,l[g]):r.appendChild(t),g++})),a===$(de))){var v=!1;me.forEach((function(t){t.sortableIndex===$(t)||(v=!0)})),v&&i("update")}me.forEach((function(t){z(t)})),u.animateAll()}le=u}(n===r||s&&"clone"!==s.lastPutMode)&&he.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=be=!1,he.length=0},destroyGlobal:function(){this._deselectMultiDrag(),b(document,"pointerup",this._deselectMultiDrag),b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==be&&be||le!==this.sortable||t&&C(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;me.length;){var e=me[0];k(e,this.options.selectedClass,!1),me.shift(),Y({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},i(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[U];e&&e.options.multiDrag&&!~me.indexOf(t)&&(le&&le!==e&&(le.multiDrag._deselectMultiDrag(),le=e),k(t,e.options.selectedClass,!0),me.push(t))},deselect:function(t){var e=t.parentNode[U],n=me.indexOf(t);e&&e.options.multiDrag&&~n&&(k(t,e.options.selectedClass,!1),me.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return me.forEach((function(r){var o;e.push({multiDragElement:r,index:r.sortableIndex}),o=ve&&r!==de?-1:ve?$(r,":not(."+t.options.selectedClass+")"):$(r),n.push({multiDragElement:r,index:o})})),{items:u(me),clones:[].concat(he),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function _e(t,e){he.forEach((function(n,r){var o=e.children[n.sortableIndex+(t?Number(r):0)];o?e.insertBefore(n,o):e.appendChild(n)}))}function Ce(){me.forEach((function(t){t!==de&&t.parentNode&&t.parentNode.removeChild(t)}))}Ft.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):e.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),ne(),ee(),clearTimeout(w),w=void 0},nulling:function(){Zt=Kt=Yt=te=Jt=Xt=Gt=null,Qt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,r=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(r,o);if(Zt=t,e||d||l||p){oe(t,this.options,i,e);var a=P(i,!0);!te||Jt&&r===Xt&&o===Gt||(Jt&&ne(),Jt=setInterval((function(){var i=P(document.elementFromPoint(r,o),!0);i!==a&&(a=i,ee()),oe(t,n.options,i,e)}),10),Xt=r,Gt=o)}else{if(!this.options.bubbleScroll||P(i,!0)===T())return void ee();oe(t,this.options,P(i,!1),!1)}}},i(t,{pluginName:"scroll",initializeByDefault:!0})}),Ft.mount(se,ae);const we=Ft},47575:(t,e,n)=>{!function(){"use strict";var e=function(t){if(null===t)return"null";if(void 0===t)return"undefined";var e=typeof t;return"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},r=function(t){return{eq:t}},o=r((function(t,e){return t===e})),i=function(t){return r((function(e,n){if(e.length!==n.length)return!1;for(var r=e.length,o=0;o-1},V=function(t,e){for(var n=0,r=t.length;n=0;n--){e(t[n],n)}},Y=function(t,e){for(var n=[],r=[],o=0,i=t.length;o=0&&e=e.length&&t.substr(n,n+e.length)===e}(t,e,0)},Mt=function(t){return function(e){return e.replace(t,"")}},Ft=Mt(/^\s+|\s+$/g),zt=Mt(/^\s+/g),Ut=Mt(/\s+$/g),Vt=function(t){return t.length>0},Ht=function(t){return!Vt(t)},qt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Wt=function(t){return function(e){return jt(e,t)}},Yt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return jt(t,"edge/")&&jt(t,"chrome")&&jt(t,"safari")&&jt(t,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,qt],search:function(t){return jt(t,"chrome")&&!jt(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return jt(t,"msie")||jt(t,"trident")}},{name:"Opera",versionRegexes:[qt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Wt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Wt("firefox")},{name:"Safari",versionRegexes:[qt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(jt(t,"safari")||jt(t,"mobile/"))&&jt(t,"applewebkit")}}],Kt=[{name:"Windows",search:Wt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return jt(t,"iphone")||jt(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Wt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Wt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Wt("linux"),versionRegexes:[]},{name:"Solaris",search:Wt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Wt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Wt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Xt={browsers:S(Yt),oses:S(Kt)},Gt="Edge",Zt="Chrome",Jt="Opera",Qt="Firefox",te="Safari",ee=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r(Gt),isChrome:r(Zt),isIE:r("IE"),isOpera:r(Jt),isFirefox:r(Qt),isSafari:r(te)}},ne={unknown:function(){return ee({current:void 0,version:Pt.unknown()})},nu:ee,edge:S(Gt),chrome:S(Zt),ie:S("IE"),opera:S(Jt),firefox:S(Qt),safari:S(te)},re="Windows",oe="Android",ie="Linux",ae="Solaris",se="FreeBSD",ue="ChromeOS",ce=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r(re),isiOS:r("iOS"),isAndroid:r(oe),isOSX:r("OSX"),isLinux:r(ie),isSolaris:r(ae),isFreeBSD:r(se),isChromeOS:r(ue)}},le={unknown:function(){return ce({current:void 0,version:Pt.unknown()})},nu:ce,windows:S(re),ios:S("iOS"),android:S(oe),linux:S(ie),osx:S("OSX"),solaris:S(ae),freebsd:S(se),chromeos:S(ue)},de=function(t,e,n){var r=Xt.browsers(),o=Xt.oses(),i=e.bind((function(t){return function(t,e){return ct(e.brands,(function(e){var n=e.brand.toLowerCase();return J(t,(function(t){var e;return n===(null===(e=t.brand)||void 0===e?void 0:e.toLowerCase())})).map((function(t){return{current:t.name,version:Pt.nu(parseInt(e.version,10),0)}}))}))}(r,t)})).orThunk((function(){return function(t,e){return Rt(t,e).map((function(t){var n=Pt.detect(t.versionRegexes,e);return{current:t.name,version:n}}))}(r,t)})).fold(ne.unknown,ne.nu),a=function(t,e){return Rt(t,e).map((function(t){var n=Pt.detect(t.versionRegexes,e);return{current:t.name,version:n}}))}(o,t).fold(le.unknown,le.nu),s=function(t,e,n,r){var o=t.isiOS()&&!0===/ipad/i.test(n),i=t.isiOS()&&!o,a=t.isiOS()||t.isAndroid(),s=a||r("(pointer:coarse)"),u=o||!i&&a&&r("(min-device-width:768px)"),c=i||a&&!u,l=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),d=!c&&!u&&!l;return{isiPad:S(o),isiPhone:S(i),isTablet:S(u),isPhone:S(c),isTouch:S(s),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:S(l),isDesktop:S(d)}}(a,i,t,n);return{browser:i,os:a,deviceType:s}},fe=function(t){return window.matchMedia(t).matches},pe=Lt((function(){return de(navigator.userAgent,j.from(navigator.userAgentData),fe)})),me=function(){return pe()},he=navigator.userAgent,ge=me(),ve=ge.browser,be=ge.os,ye=ge.deviceType,_e=/WebKit/.test(he)&&!ve.isEdge(),Ce="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,we=-1!==he.indexOf("Windows Phone"),xe={opera:ve.isOpera(),webkit:_e,ie:!(!ve.isIE()&&!ve.isEdge())&&ve.version.major,gecko:ve.isFirefox(),mac:be.isOSX()||be.isiOS(),iOS:ye.isiPad()||ye.isiPhone(),android:be.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:ve.isIE()?document.documentMode||7:10,fileApi:Ce,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!ve.isIE(),desktop:ye.isDesktop(),windowsPhone:we,browser:{current:ve.current,version:ve.version,isChrome:ve.isChrome,isEdge:ve.isEdge,isFirefox:ve.isFirefox,isIE:ve.isIE,isOpera:ve.isOpera,isSafari:ve.isSafari},os:{current:be.current,version:be.version,isAndroid:be.isAndroid,isChromeOS:be.isChromeOS,isFreeBSD:be.isFreeBSD,isiOS:be.isiOS,isLinux:be.isLinux,isOSX:be.isOSX,isSolaris:be.isSolaris,isWindows:be.isWindows},deviceType:{isDesktop:ye.isDesktop,isiPad:ye.isiPad,isiPhone:ye.isiPhone,isPhone:ye.isPhone,isTablet:ye.isTablet,isTouch:ye.isTouch,isWebView:ye.isWebView}},ke=/^\s*|\s*$/g,Se=function(t){return null==t?"":(""+t).replace(ke,"")},Ee=function(t,e){return e?!("array"!==e||!wt(t))||typeof t===e:void 0!==t},De=function(t,e,n,r){r=r||this,t&&(n&&(t=t[n]),xt(t,(function(t,o){if(!1===e.call(r,t,o,n))return!1;De(t,e,n,r)})))},Te={trim:Se,isArray:wt,is:Ee,toArray:function(t){if(wt(t))return t;for(var e=[],n=0,r=t.length;n1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Ae(n.childNodes[0])},fromTag:function(t,e){var n=(e||document).createElement(t);return Ae(n)},fromText:function(t,e){var n=(e||document).createTextNode(t);return Ae(n)},fromDom:Ae,fromPoint:function(t,e,n){return j.from(t.dom.elementFromPoint(e,n)).map(Ae)}},Ne=function(t,e){var n=[],r=function(t){return n.push(t),e(t)},o=e(t);do{o=o.bind(r)}while(o.isSome());return n},Le=function(t,e){var n=t.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},$e=function(t){return 1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType||0===t.childElementCount},Ie=function(t,e){return t.dom===e.dom},Pe=function(t,e){return n=t.dom,r=e.dom,function(t,e,n){return 0!=(t.compareDocumentPosition(e)&n)}(n,r,Node.DOCUMENT_POSITION_CONTAINED_BY);var n,r},Re=function(t,e){return me().browser.isIE()?Pe(t,e):function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)}(t,e)};"undefined"!=typeof window?window:Function("return this;")();var je=function(t){return t.dom.nodeName.toLowerCase()},Be=function(t){return t.dom.nodeType},Me=function(t){return function(e){return Be(e)===t}},Fe=Me(1),ze=Me(3),Ue=Me(9),Ve=Me(11),He=function(t){return Oe.fromDom(t.dom.ownerDocument)},qe=function(t){return Ue(t)?t:He(t)},We=function(t){return Oe.fromDom(qe(t).dom.defaultView)},Ye=function(t){return j.from(t.dom.parentNode).map(Oe.fromDom)},Ke=function(t){return j.from(t.dom.previousSibling).map(Oe.fromDom)},Xe=function(t){return j.from(t.dom.nextSibling).map(Oe.fromDom)},Ge=function(t){return nt(Ne(t,Ke))},Ze=function(t){return Ne(t,Xe)},Je=function(t){return H(t.dom.childNodes,Oe.fromDom)},Qe=function(t,e){var n=t.dom.childNodes;return j.from(n[e]).map(Oe.fromDom)},tn=function(t){return Qe(t,0)},en=function(t){return Qe(t,t.dom.childNodes.length-1)},nn=function(t){return t.dom.childNodes.length},rn=function(t){return Ve(t)&&y(t.dom.host)},on=_(Element.prototype.attachShadow)&&_(Node.prototype.getRootNode),an=S(on),sn=on?function(t){return Oe.fromDom(t.dom.getRootNode())}:qe,un=function(t){return rn(t)?t:function(t){var e=t.dom.head;if(null==e)throw new Error("Head is not available yet");return Oe.fromDom(e)}(qe(t))},cn=function(t){return Oe.fromDom(t.dom.host)},ln=function(t){return y(t.dom.shadowRoot)},dn=function(t,e){Ye(t).each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},fn=function(t,e){Xe(t).fold((function(){Ye(t).each((function(t){mn(t,e)}))}),(function(t){dn(t,e)}))},pn=function(t,e){tn(t).fold((function(){mn(t,e)}),(function(n){t.dom.insertBefore(e.dom,n.dom)}))},mn=function(t,e){t.dom.appendChild(e.dom)},hn=function(t,e){q(e,(function(e){mn(t,e)}))},gn=function(t){t.dom.textContent="",q(Je(t),(function(t){vn(t)}))},vn=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},bn=function(t){var e,n=Je(t);n.length>0&&(e=t,q(n,(function(t){dn(e,t)}))),vn(t)},yn=function(t){var e=ze(t)?t.dom.parentNode:t.dom;if(null==e||null===e.ownerDocument)return!1;var n=e.ownerDocument;return function(t){var e=sn(t);return rn(e)?j.some(e):j.none()}(Oe.fromDom(e)).fold((function(){return n.body.contains(e)}),k(yn,cn))},_n=function(t,e){return{left:t,top:e,translate:function(n,r){return _n(t+n,e+r)}}},Cn=_n,wn=function(t,e){return void 0!==t?t:void 0!==e?e:0},xn=function(t){var e=t.dom,n=e.ownerDocument.body;return n===e?Cn(n.offsetLeft,n.offsetTop):yn(t)?function(t){var e=t.getBoundingClientRect();return Cn(e.left,e.top)}(e):Cn(0,0)},kn=function(t){var e=void 0!==t?t.dom:document,n=e.body.scrollLeft||e.documentElement.scrollLeft,r=e.body.scrollTop||e.documentElement.scrollTop;return Cn(n,r)},Sn=function(t,e,n){var r=(void 0!==n?n.dom:document).defaultView;r&&r.scrollTo(t,e)},En=function(t,e){me().browser.isSafari()&&_(t.dom.scrollIntoViewIfNeeded)?t.dom.scrollIntoViewIfNeeded(!1):t.dom.scrollIntoView(e)},Dn=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},Tn=function(t){var e=void 0===t?window:t,n=e.document,r=kn(Oe.fromDom(n));return function(t){var e=void 0===t?window:t;return me().browser.isFirefox()?j.none():j.from(e.visualViewport)}(e).fold((function(){var t=e.document.documentElement,n=t.clientWidth,o=t.clientHeight;return Dn(r.left,r.top,n,o)}),(function(t){return Dn(Math.max(t.pageLeft,r.left),Math.max(t.pageTop,r.top),t.width,t.height)}))},An=function(t){return function(e){return!!e&&e.nodeType===t}},On=function(t){return!!t&&!Object.getPrototypeOf(t)},Nn=An(1),Ln=function(t){var e=t.map((function(t){return t.toLowerCase()}));return function(t){if(t&&t.nodeName){var n=t.nodeName.toLowerCase();return U(e,n)}return!1}},$n=function(t,e){var n=e.toLowerCase().split(" ");return function(e){if(Nn(e))for(var r=0;r0}))},ur=function(t){var e={},n=t.dom;if(Zn(n))for(var r=0;r=t.length&&e(n)}}(i))}))}))},wr=function(t){return{isValue:$,isError:L,getOr:S(t),getOrThunk:S(t),getOrDie:S(t),or:function(e){return wr(t)},orThunk:function(e){return wr(t)},fold:function(e,n){return n(t)},map:function(e){return wr(e(t))},mapError:function(e){return wr(t)},each:function(e){e(t)},bind:function(e){return e(t)},exists:function(e){return e(t)},forall:function(e){return e(t)},toOptional:function(){return j.some(t)}}},xr=function(t){return{isValue:L,isError:$,getOr:E,getOrThunk:function(t){return t()},getOrDie:function(){return(e=String(t),function(){throw new Error(e)})();var e},or:E,orThunk:function(t){return t()},fold:function(e,n){return e(t)},map:function(e){return xr(t)},mapError:function(e){return xr(e(t))},each:w,bind:function(e){return xr(t)},exists:L,forall:$,toOptional:j.none}},kr={value:wr,error:xr,fromOption:function(t,e){return t.fold((function(){return xr(e)}),wr)}},Sr=function(t){if(!m(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],n={};return q(t,(function(r,o){var i=lt(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],s=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!m(s))throw new Error("case arguments must be an array");e.push(a),n[a]=function(){for(var n=[],r=0;r0?n(r.fail.map(Er)):e(r.pass.map(Er))}))},unload:c,unloadAll:function(t){q(t,(function(t){c(t)}))},_setReferrerPolicy:function(t){e.referrerPolicy=t}}},ao=function(){var t=new WeakMap;return{forElement:function(e,n){var r=sn(e).dom;return j.from(t.get(r)).getOrThunk((function(){var e=io(r,n);return t.set(r,e),e}))}}}(),so=function(){function t(t,e){this.node=t,this.rootNode=e,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return t.prototype.current=function(){return this.node},t.prototype.next=function(t){return this.node=this.findSibling(this.node,"firstChild","nextSibling",t),this.node},t.prototype.prev=function(t){return this.node=this.findSibling(this.node,"lastChild","previousSibling",t),this.node},t.prototype.prev2=function(t){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",t),this.node},t.prototype.findSibling=function(t,e,n,r){var o,i;if(t){if(!r&&t[e])return t[e];if(t!==this.rootNode){if(o=t[n])return o;for(i=t.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n])return o}}},t.prototype.findPreviousNode=function(t,e,n,r){var o,i,a;if(t){if(o=t[n],this.rootNode&&o===this.rootNode)return;if(o){if(!r)for(a=o[e];a;a=a[e])if(!a[e])return a;return o}if((i=t.parentNode)&&i!==this.rootNode)return i}},t}(),uo=function(t){var e;return function(n){return e=e||function(t,e){for(var n={},r=0,o=t.length;r0&&function(t,e){var n=new so(t,e).prev(!1),r=new so(t,e).next(!1),o=v(n)||ni(n,e),i=v(r)||ni(r,e);return o&&i}(t,e)},ii=function(t,e,n){var r=n||e;if(Nn(e)&&ri(e))return e;for(var o=e.childNodes,i=o.length-1;i>=0;i--)ii(t,o[i],r);if(Nn(e)){var a=e.childNodes;1===a.length&&ri(a[0])&&e.parentNode.insertBefore(a[0],e)}return function(t){return Un(t)||zn(t)}(e)||Zo(e,r)||function(t){return!!Nn(t)&&t.childNodes.length>0}(e)||oi(e,r)||t.remove(e),e},ai=Te.makeMap,si=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ui=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ci=/[<>&\"\']/g,li=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,di={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},fi={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},pi={"<":"<",">":">","&":"&",""":'"',"'":"'"},mi=function(t,e){var n,r,o,i={};if(t){for(t=t.split(","),e=e||10,n=0;n1?"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";":fi[t]||"&#"+t.charCodeAt(0)+";"}))},bi=function(t,e,n){return n=n||hi,t.replace(e?si:ui,(function(t){return fi[t]||n[t]||t}))},yi={encodeRaw:gi,encodeAllRaw:function(t){return(""+t).replace(ci,(function(t){return fi[t]||t}))},encodeNumeric:vi,encodeNamed:bi,getEncodeFunc:function(t,e){var n=mi(e)||hi,r=ai(t.replace(/\+/g,","));return r.named&&r.numeric?function(t,e){return t.replace(e?si:ui,(function(t){return void 0!==fi[t]?fi[t]:void 0!==n[t]?n[t]:t.length>1?"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";":"&#"+t.charCodeAt(0)+";"}))}:r.named?e?function(t,e){return bi(t,e,n)}:bi:r.numeric?vi:gi},decode:function(t){return t.replace(li,(function(t,e){return e?(e="x"===e.charAt(0).toLowerCase()?parseInt(e.substr(1),16):parseInt(e,10))>65535?(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e))):di[e]||String.fromCharCode(e):pi[t]||hi[t]||function(t){var e=Oe.fromTag("div").dom;return e.innerHTML=t,e.textContent||e.innerText||t}(t)}))}},_i={},Ci={},wi=Te.makeMap,xi=Te.each,ki=Te.extend,Si=Te.explode,Ei=Te.inArray,Di=function(t,e){return(t=Te.trim(t))?t.split(e||" "):[]},Ti=function(t,e){var n;return t&&(n={},"string"==typeof t&&(t={"*":t}),xi(t,(function(t,r){n[r]=n[r.toUpperCase()]="map"===e?wi(t,/[, ]/):Si(t,/[, ]/)}))),n},Ai=function(t){var e={},n={},r=[],o={},i={},a=function(e,n,r){var o=t[e];return o?o=wi(o,/[, ]/,wi(o.toUpperCase(),/[, ]/)):(o=_i[e])||(o=wi(n," ",wi(n.toUpperCase()," ")),o=ki(o,r),_i[e]=o),o},s=function(t){var e,n,r,o,i,a,s={},u=function(t,n,r){var o,i,a,u=function(t,e){var n,r,o={};for(n=0,r=t.length;n