1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7958],{1060:()=>{},4211:(t,e,r)=>{"use strict";t.exports=function(){throw Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},t.exports.Resizable=r(56009).default,t.exports.ResizableBox=r(95594).default},10021:function(t,e){!function(t){"use strict";function e(t){return function(e,r,n,i,o,a,s){return t(e,r,s)}}function r(t){return function(e,r,n,i){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n,i);var o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var s=t(e,r,n,i);return i.delete(e),i.delete(r),s}}function n(t,e){var r={};for(var n in t)r[n]=t[n];for(var n in e)r[n]=e[n];return r}function i(t){return t.constructor===Object||null==t.constructor}function o(t){return"function"==typeof t.then}function a(t,e){return t===e||t!=t&&e!=e}var s=Object.prototype.toString;function l(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,l=t.areObjectsEqual,u=t.areRegExpsEqual,c=t.areSetsEqual,h=(0,t.createIsNestedEqual)(d);function d(t,d,p){if(t===d)return!0;if(!t||!d||"object"!=typeof t||"object"!=typeof d)return t!=t&&d!=d;if(i(t)&&i(d))return l(t,d,h,p);var f=Array.isArray(t),g=Array.isArray(d);if(f||g)return f===g&&e(t,d,h,p);var m=s.call(t);return m===s.call(d)&&("[object Date]"===m?r(t,d,h,p):"[object RegExp]"===m?u(t,d,h,p):"[object Map]"===m?n(t,d,h,p):"[object Set]"===m?c(t,d,h,p):"[object Object]"===m||"[object Arguments]"===m?!(o(t)||o(d))&&l(t,d,h,p):("[object Boolean]"===m||"[object Number]"===m||"[object String]"===m)&&a(t.valueOf(),d.valueOf()))}return d}function u(t,e,r,n){var i=t.length;if(e.length!==i)return!1;for(;i-- >0;)if(!r(t[i],e[i],i,i,t,e,n))return!1;return!0}var c=r(u);function h(t,e){return a(t.valueOf(),e.valueOf())}function d(t,e,r,n){var i=t.size===e.size;if(!i)return!1;if(!t.size)return!0;var o={},a=0;return t.forEach(function(s,l){if(i){var u=!1,c=0;e.forEach(function(i,h){!u&&!o[c]&&(u=r(l,h,a,c,t,e,n)&&r(s,i,l,h,t,e,n))&&(o[c]=!0),c++}),a++,i=u}}),i}var p=r(d),f=Object.prototype.hasOwnProperty;function g(t,e,r,n){var i,o=Object.keys(t),a=o.length;if(Object.keys(e).length!==a)return!1;for(;a-- >0;){if("_owner"===(i=o[a])){var s=!!t.$$typeof,l=!!e.$$typeof;if((s||l)&&s!==l)return!1}if(!f.call(e,i)||!r(t[i],e[i],i,i,t,e,n))return!1}return!0}var m=r(g);function y(t,e){return t.source===e.source&&t.flags===e.flags}function v(t,e,r,n){var i=t.size===e.size;if(!i)return!1;if(!t.size)return!0;var o={};return t.forEach(function(a,s){if(i){var l=!1,u=0;e.forEach(function(i,c){!l&&!o[u]&&(l=r(a,i,s,c,t,e,n))&&(o[u]=!0),u++}),i=l}}),i}var b=r(v),w=Object.freeze({areArraysEqual:u,areDatesEqual:h,areMapsEqual:d,areObjectsEqual:g,areRegExpsEqual:y,areSetsEqual:v,createIsNestedEqual:e}),x=Object.freeze({areArraysEqual:c,areDatesEqual:h,areMapsEqual:p,areObjectsEqual:m,areRegExpsEqual:y,areSetsEqual:b,createIsNestedEqual:e}),S=l(w),O=l(n(w,{createIsNestedEqual:function(){return a}})),D=l(x),E=l(n(x,{createIsNestedEqual:function(){return a}}));t.circularDeepEqual=function(t,e){return D(t,e,new WeakMap)},t.circularShallowEqual=function(t,e){return E(t,e,new WeakMap)},t.createCustomCircularEqual=function(t){var e=l(n(x,t(x)));return function(t,r,n){return void 0===n&&(n=new WeakMap),e(t,r,n)}},t.createCustomEqual=function(t){return l(n(w,t(w)))},t.deepEqual=function(t,e){return S(t,e,void 0)},t.sameValueZeroEqual=a,t.shallowEqual=function(t,e){return O(t,e,void 0)},Object.defineProperty(t,"__esModule",{value:!0})}(e)},10864:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.canDragX=function(t){return"both"===t.props.axis||"x"===t.props.axis},e.canDragY=function(t){return"both"===t.props.axis||"y"===t.props.axis},e.createCoreData=function(t,e,r){let i=!(0,n.isNum)(t.lastX),a=o(t);return i?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:r,x:e,y:r}:{node:a,deltaX:e-t.lastX,deltaY:r-t.lastY,lastX:t.lastX,lastY:t.lastY,x:e,y:r}},e.createDraggableData=function(t,e){let r=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/r,y:t.state.y+e.deltaY/r,deltaX:e.deltaX/r,deltaY:e.deltaY/r,lastX:t.state.x,lastY:t.state.y}},e.getBoundPosition=function(t,e,r){var a;if(!t.props.bounds)return[e,r];let{bounds:s}=t.props;s="string"==typeof s?s:{left:(a=s).left,top:a.top,right:a.right,bottom:a.bottom};let l=o(t);if("string"==typeof s){let t,{ownerDocument:e}=l,r=e.defaultView;if(!((t="parent"===s?l.parentNode:l.getRootNode().querySelector(s))instanceof r.HTMLElement))throw Error('Bounds selector "'+s+'" could not find an element.');let o=r.getComputedStyle(l),a=r.getComputedStyle(t);s={left:-l.offsetLeft+(0,n.int)(a.paddingLeft)+(0,n.int)(o.marginLeft),top:-l.offsetTop+(0,n.int)(a.paddingTop)+(0,n.int)(o.marginTop),right:(0,i.innerWidth)(t)-(0,i.outerWidth)(l)-l.offsetLeft+(0,n.int)(a.paddingRight)-(0,n.int)(o.marginRight),bottom:(0,i.innerHeight)(t)-(0,i.outerHeight)(l)-l.offsetTop+(0,n.int)(a.paddingBottom)-(0,n.int)(o.marginBottom)}}return(0,n.isNum)(s.right)&&(e=Math.min(e,s.right)),(0,n.isNum)(s.bottom)&&(r=Math.min(r,s.bottom)),(0,n.isNum)(s.left)&&(e=Math.max(e,s.left)),(0,n.isNum)(s.top)&&(r=Math.max(r,s.top)),[e,r]},e.getControlPosition=function(t,e,r){let n="number"==typeof e?(0,i.getTouch)(t,e):null;if("number"==typeof e&&!n)return null;let a=o(r),s=r.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,i.offsetXYFromParent)(n||t,s,r.props.scale)}
1,e.snapToGrid=function(t,e,r){return[Math.round(e/t[0])*t[0],Math.round(r/t[1])*t[1]]};var n=r(96486),i=r(16685);function o(t){let e=t.findDOMNode();if(!e)throw Error("<DraggableCore>: Unmounted during event!");return e}},10910:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});let n=r(61254),i=r(10374),o=r(57845);function a(t){return{default:t&&"default"in t?t.default:t}}r(29256);let s={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},l=function(t){let e={...s,...t},r=(0,i.lazy)(()=>e.loader().then(a)),l=e.loading;function u(t){let a=l?(0,n.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,s=!e.ssr||!!e.loading,u=s?i.Suspense:i.Fragment,c=e.ssr?(0,n.jsxs)(n.Fragment,{children:[null,(0,n.jsx)(r,{...t})]}):(0,n.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...t})});return(0,n.jsx)(u,{...s?{fallback:a}:{},children:c})}return u.displayName="LoadableComponent",u}},16685:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addClassName=c,e.addEvent=function(t,e,r,n){if(!t)return;let i={capture:!0,...n};t.addEventListener?t.addEventListener(e,r,i):t.attachEvent?t.attachEvent("on"+e,r):t["on"+e]=r},e.addUserSelectStyles=function(t){if(!t)return;let e=t.getElementById("react-draggable-style-el");e||((e=t.createElement("style")).type="text/css",e.id="react-draggable-style-el",e.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",e.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",t.getElementsByTagName("head")[0].appendChild(e)),t.body&&c(t.body,"react-draggable-transparent-selection")},e.createCSSTransform=function(t,e){let r=l(t,e,"px");return{[(0,i.browserPrefixToKey)("transform",i.default)]:r}},e.createSVGTransform=function(t,e){return l(t,e,"")},e.getTouch=function(t,e){return t.targetTouches&&(0,n.findInArray)(t.targetTouches,t=>e===t.identifier)||t.changedTouches&&(0,n.findInArray)(t.changedTouches,t=>e===t.identifier)},e.getTouchIdentifier=function(t){return t.targetTouches&&t.targetTouches[0]?t.targetTouches[0].identifier:t.changedTouches&&t.changedTouches[0]?t.changedTouches[0].identifier:void 0},e.getTranslation=l,e.innerHeight=function(t){let e=t.clientHeight,r=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,n.int)(r.paddingTop),e-=(0,n.int)(r.paddingBottom)},e.innerWidth=function(t){let e=t.clientWidth,r=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,n.int)(r.paddingLeft),e-=(0,n.int)(r.paddingRight)},e.matchesSelector=s,e.matchesSelectorAndParentsTo=function(t,e,r){let n=t;do{if(s(n,e))return!0;if(n===r)break;n=n.parentNode}while(n);return!1},e.offsetXYFromParent=function(t,e,r){let n=e===e.ownerDocument.body?{left:0,top:0}:e.getBoundingClientRect();return{x:(t.clientX+e.scrollLeft-n.left)/r,y:(t.clientY+e.scrollTop-n.top)/r}},e.outerHeight=function(t){let e=t.clientHeight,r=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,n.int)(r.borderTopWidth),e+=(0,n.int)(r.borderBottomWidth)},e.outerWidth=function(t){let e=t.clientWidth,r=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,n.int)(r.borderLeftWidth),e+=(0,n.int)(r.borderRightWidth)},e.removeClassName=h,e.removeEvent=function(t,e,r,n){if(!t)return;let i={capture:!0,...n};t.removeEventListener?t.removeEventListener(e,r,i):t.detachEvent?t.detachEvent("on"+e,r):t["on"+e]=null},e.scheduleRemoveUserSelectStyles=function(t){window.requestAnimationFrame?window.requestAnimationFrame(()=>{u(t)}):u(t)};var n=r(96486),i=o(r(22528));function o(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(o=function(t,e){if(!e&&t&&t.__esModule)return t;var i,o,a={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return a;
1if(i=e?n:r){if(i.has(t))return i.get(t);i.set(t,a)}for(let e in t)"default"!==e&&({}).hasOwnProperty.call(t,e)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,e))&&(o.get||o.set)?i(a,e,o):a[e]=t[e]);return a})(t,e)}let a="";function s(t,e){return a||(a=(0,n.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(e){return(0,n.isFunction)(t[e])})),!!(0,n.isFunction)(t[a])&&t[a](e)}function l(t,e,r){let{x:n,y:i}=t,o=`translate(${n}${r},${i}${r})`;if(e){let t=`${"string"==typeof e.x?e.x:e.x+r}`,n=`${"string"==typeof e.y?e.y:e.y+r}`;o=`translate(${t}, ${n})`+o}return o}function u(t){if(t)try{if(t.body&&h(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{let e=(t.defaultView||window).getSelection();e&&"Caret"!==e.type&&e.removeAllRanges()}}catch(t){}}function c(t,e){t.classList?t.classList.add(e):t.className.match(RegExp(`(?:^|\\s)${e}(?!\\S)`))||(t.className+=` ${e}`)}function h(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(RegExp(`(?:^|\\s)${e}(?!\\S)`,"g"),"")}},21285:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bottom=o,e.childrenEqual=function(t,e){return(0,n.deepEqual)(i.default.Children.map(t,t=>t?.key),i.default.Children.map(e,t=>t?.key))&&(0,n.deepEqual)(i.default.Children.map(t,t=>t?.props["data-grid"]),i.default.Children.map(e,t=>t?.props["data-grid"]))},e.cloneLayout=a,e.cloneLayoutItem=l,e.collides=u,e.compact=c,e.compactItem=p,e.compactType=function(t){let{verticalCompact:e,compactType:r}=t||{};return!1===e?null:r},e.correctBounds=f,e.fastPositionEqual=function(t,e){return t.left===e.left&&t.top===e.top&&t.width===e.width&&t.height===e.height},e.fastRGLPropsEqual=void 0,e.getAllCollisions=y,e.getFirstCollision=m,e.getLayoutItem=g,e.getStatics=v,e.modifyLayout=s,e.moveElement=b,e.moveElementAwayFromCollision=w,e.noop=void 0,e.perc=function(t){return 100*t+"%"},e.resizeItemInDirection=function(t,e,r,n){let i=M[t];return i?i(e,{...e,...r},n):r},e.setTopLeft=function(t){let{top:e,left:r,width:n,height:i}=t;return{top:`${e}px`,left:`${r}px`,width:`${n}px`,height:`${i}px`,position:"absolute"}},e.setTransform=function(t){let{top:e,left:r,width:n,height:i}=t,o=`translate(${r}px,${e}px)`;return{transform:o,WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,width:`${n}px`,height:`${i}px`,position:"absolute"}},e.sortLayoutItems=P,e.sortLayoutItemsByColRow=j,e.sortLayoutItemsByRowCol=T,e.synchronizeLayoutWithChildren=function(t,e,r,n,a){t=t||[];let s=[];i.default.Children.forEach(e,e=>{if(e?.key==null)return;let r=g(t,String(e.key)),n=e.props["data-grid"];r&&null==n?s.push(l(r)):n?s.push(l({...n,i:e.key})):s.push(l({w:1,h:1,x:0,y:o(s),i:String(e.key)}))});let u=f(s,{cols:r});return a?u:c(u,n,r)},e.validateLayout=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",r=["x","y","w","h"];if(!Array.isArray(t))throw Error(e+" must be an array!");for(let n=0,i=t.length;n<i;n++){let i=t[n];for(let t=0;t<r.length;t++){let o=r[t],a=i[o];if("number"!=typeof a||Number.isNaN(a))throw Error(`ReactGridLayout: ${e}[${n}].${o} must be a number! Received: ${a} (${typeof a})`)}if(void 0!==i.i&&"string"!=typeof i.i)throw Error(`ReactGridLayout: ${e}[${n}].i must be a string! Received: ${i.i} (${typeof i.i})`)}},e.withLayoutItem=function(t,e,r){let n=g(t,e);return n?[t=s(t,n=r(l(n))),n]:[t,null]};var n=r(10021),i=function(t){return t&&t.__esModule?t:{default:t}}(r(10374));function o(t){let e=0,r;for(let n=0,i=t.length;n<i;n++)(r=t[n].y+t[n].h)>e&&(e=r);return e}function a(t){let e=Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]=l(t[r]);return e}function s(t,e){let r=Array(t.length);for(let n=0,i=t.length;n<i;n++)e.i===t[n].i?r[n]=e:r[n]=t[n];return r}function l(t){return{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,minW:t.minW,maxW:t.maxW,minH:t.minH,maxH:t.maxH,moved:!!t.moved,static:!!t.static,isDraggable:t.isDraggable,isResizable:t.isResizable,resizeHandles:t.resizeHandles,isBounded:t.isBounded}}function u(t,e){return t.i!==e.i&&!(t.x+t.w<=e.x)&&!(t.x>
1=e.x+e.w)&&!(t.y+t.h<=e.y)&&!(t.y>=e.y+e.h)}function c(t,e,r,n){let i=v(t),o=P(t,e),a=Array(t.length);for(let s=0,u=o.length;s<u;s++){let u=l(o[s]);u.static||(u=p(i,u,e,r,o,n),i.push(u)),a[t.indexOf(o[s])]=u,u.moved=!1}return a}e.fastRGLPropsEqual=r(24425);let h={x:"w",y:"h"};function d(t,e,r,n){let i=h[n];e[n]+=1;let o=t.map(t=>t.i).indexOf(e.i);for(let a=o+1;a<t.length;a++){let o=t[a];if(!o.static){if(o.y>e.y+e.h)break;u(e,o)&&d(t,o,r+e[i],n)}}e[n]=r}function p(t,e,r,n,i,a){let s,l="horizontal"===r;if("vertical"===r)for(e.y=Math.min(o(t),e.y);e.y>0&&!m(t,e);)e.y--;else if(l)for(;e.x>0&&!m(t,e);)e.x--;for(;(s=m(t,e))&&!(null===r&&a);)if(l?d(i,e,s.x+s.w,"x"):d(i,e,s.y+s.h,"y"),l&&e.x+e.w>n)for(e.x=n-e.w,e.y++;e.x>0&&!m(t,e);)e.x--;return e.y=Math.max(e.y,0),e.x=Math.max(e.x,0),e}function f(t,e){let r=v(t);for(let n=0,i=t.length;n<i;n++){let i=t[n];if(i.x+i.w>e.cols&&(i.x=e.cols-i.w),i.x<0&&(i.x=0,i.w=e.cols),i.static)for(;m(r,i);)i.y++;else r.push(i)}return t}function g(t,e){for(let r=0,n=t.length;r<n;r++)if(t[r].i===e)return t[r]}function m(t,e){for(let r=0,n=t.length;r<n;r++)if(u(t[r],e))return t[r]}function y(t,e){return t.filter(t=>u(t,e))}function v(t){return t.filter(t=>t.static)}function b(t,e,r,n,i,o,s,l,u){if(e.static&&!0!==e.isDraggable||e.y===n&&e.x===r)return t;z(`Moving element ${e.i} to [${String(r)},${String(n)}] from [${e.x},${e.y}]`);let c=e.x,h=e.y;"number"==typeof r&&(e.x=r),"number"==typeof n&&(e.y=n),e.moved=!0;let d=P(t,s);("vertical"===s&&"number"==typeof n?h>=n:"horizontal"===s&&"number"==typeof r&&c>=r)&&(d=d.reverse());let p=y(d,e),f=p.length>0;if(f&&u)return a(t);if(f&&o)return z(`Collision prevented on ${e.i}, reverting.`),e.x=c,e.y=h,e.moved=!1,t;for(let r=0,n=p.length;r<n;r++){let n=p[r];z(`Resolving collision between ${e.i} at [${e.x},${e.y}] and ${n.i} at [${n.x},${n.y}]`),n.moved||(t=n.static?w(t,n,e,i,s,l):w(t,e,n,i,s,l))}return t}function w(t,e,r,n,i,o){let a="horizontal"===i,s="vertical"===i,l=e.static;if(n){n=!1;let u={x:a?Math.max(e.x-r.w,0):r.x,y:s?Math.max(e.y-r.h,0):r.y,w:r.w,h:r.h,i:"-1"},c=m(t,u),h=c&&c.y+c.h>e.y,d=c&&e.x+e.w>c.x;if(!c)return z(`Doing reverse collision on ${r.i} up to [${u.x},${u.y}].`),b(t,r,a?u.x:void 0,s?u.y:void 0,n,l,i,o);if(h&&s)return b(t,r,void 0,e.y+1,n,l,i,o);if(h&&null==i)return e.y=r.y,r.y=r.y+r.h,t;else if(d&&a)return b(t,e,r.x,void 0,n,l,i,o)}let u=a?r.x+1:void 0,c=s?r.y+1:void 0;return null==u&&null==c?t:b(t,r,a?r.x+1:void 0,s?r.y+1:void 0,n,l,i,o)}let x=(t,e,r,n)=>t+r>n?e:r,S=(t,e,r)=>t<0?e:r,O=t=>Math.max(0,t),D=t=>Math.max(0,t),E=(t,e,r)=>{let{left:n,height:i,width:o}=e,a=t.top-(i-t.height);return{left:n,width:o,height:S(a,t.height,i),top:D(a)}},_=(t,e,r)=>{let{top:n,left:i,height:o,width:a}=e;return{top:n,height:o,width:x(t.left,t.width,a,r),left:O(i)}},R=(t,e,r)=>{let{top:n,height:i,width:o}=e,a=t.left-(o-t.width);return{height:i,width:a<0?t.width:x(t.left,t.width,o,r),top:D(n),left:O(a)}},C=(t,e,r)=>{let{top:n,left:i,height:o,width:a}=e;return{width:a,left:i,height:S(n,t.height,o),top:D(n)}},M={n:E,ne:function(){return E(arguments.length<=0?void 0:arguments[0],_(...arguments),arguments.length<=2?void 0:arguments[2])},e:_,se:function(){return C(arguments.length<=0?void 0:arguments[0],_(...arguments),arguments.length<=2?void 0:arguments[2])},s:C,sw:function(){return C(arguments.length<=0?void 0:arguments[0],R(...arguments),arguments.length<=2?void 0:arguments[2])},w:R,nw:function(){return E(arguments.length<=0?void 0:arguments[0],R(...arguments),arguments.length<=2?void 0:arguments[2])}};function P(t,e){return"horizontal"===e?j(t):"vertical"===e?T(t):t}function T(t){return t.slice(0).sort(function(t,e){return t.y>e.y||t.y===e.y&&t.x>e.x?1:t.y===e.y&&t.x===e.x?0:-1})}function j(t){return t.slice(0).sort(function(t,e){return t.x>e.x||t.x===e.x&&t.y>e.y?1:-1})}function z(){}e.noop=()=>{}},21635:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=d(r(10374)),i=r(10867),o=d(r(39494)),a=r(75416),s=r(4211),l=r(21285),u=r(37181),c=r(33213),h=d(r(68146));function d(t){return t&&t.__esModule?t:{default:t}}function p(t,e,r){var n;return(e="symbol"==typeof(n=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class f extends n.default.Component{constructor(){super(...arguments),p(this,"state",{resizing:null,dragging:null,className:""}),p(this,"elementRef",n.default.createRef()),p(this,"onDragStart",(t,e)=>{let{node:r}=e,{onDragStart:n,transformScale:i}=this.props;if(!n)return;let o={top:0,left:0},{offsetParent:a}=r;if(!a)return;let s=a.getBoundingClientRect(),l=r.getBoundingClientRect(),c=l.left/i,h=s.left/i,d=l.top/i,p=s.top/i;o.left=c-h+a.scrollLeft,o.top=d-p+a.scrollTop,this.setState({dragging:o});let{x:f,y:g}=(0,u.calcXY)(this.getPositionParams(),o.top,o.left,this.props.w,this.props.h);return n.call(this,this.props.i,f,g,{e:t,node:r,newPosition:o})}),p(this,"onDrag",(t,e,r)=>{let{node:n,deltaX:o,deltaY:a}=e,{onDrag:s}=this.props;if(!s)return;if(!this.state.dragging)throw Error("onDrag called before onDragStart.");let l=this.state.dragging.top+a,c=this.state.dragging.left+o,{isBounded:h,i:d,w:p,h:f,containerWidth:g}=this.props,m=this.getPositionParams();if(h){let{offsetParent:t}=n;if(t){let{margin:e,rowHeight:r}=this.props,n=t.clientHeight-(0,u.calcGridItemWHPx)(f,r,e[1]);l=(0,u.clamp)(l,0,n);let i=(0,u.calcGridColWidth)(m),o=g-(0,u.calcGridItemWHPx)(p,i,e[0]);c=(0,u.clamp)(c,0,o)}}let y={top:l,left:c};r?this.setState({dragging:y}):(0,i.flushSync)(()=>{this.setState({dragging:y})});let{x:v,y:b}=(0,u.calcXY)(m,l,c,p,f);return s.call(this,d,v,b,{e:t,node:n,newPosition:y})}),p(this,"onDragStop",(t,e)=>{let{node:r}=e,{onDragStop:n}=this.props;if(!n)return;if(!this.state.dragging)throw Error("onDragEnd called before onDragStart.");let{w:i,h:o,i:a}=this.props,{left:s,top:l}=this.state.dragging;this.setState({dragging:null});let{x:c,y:h}=(0,u.calcXY)(this.getPositionParams(),l,s,i,o);return n.call(this,a,c,h,{e:t,node:r,newPosition:{top:l,left:s}})}),p(this,"onResizeStop",(t,e,r)=>this.onResizeHandler(t,e,r,"onResizeStop")),p(this,"onResizeStart",(t,e,r)=>this.onResizeHandler(t,e,r,"onResizeStart")),p(this,"onResize",(t,e,r)=>this.onResizeHandler(t,e,r,"onResize"))}shouldComponentUpdate(t,e){if(this.props.children!==t.children||this.props.droppingPosition!==t.droppingPosition)return!0;let r=(0,u.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),n=(0,u.calcGridItemPosition)(this.getPositionParams(t),t.x,t.y,t.w,t.h,e);return!(0,l.fastPositionEqual)(r,n)||this.props.useCSSTransforms!==t.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(t){this.moveDroppingItem(t)}moveDroppingItem(t){let{droppingPosition:e}=this.props;if(!e)return;let r=this.elementRef.current;if(!r)return;let n=t.droppingPosition||{left:0,top:0},{dragging:i}=this.state,o=i&&e.left!==n.left||e.top!==n.top;if(i){if(o){let t=e.left-i.left,n=e.top-i.top;this.onDrag(e.e,{node:r,deltaX:t,deltaY:n},!0)}}else this.onDragStart(e.e,{node:r,deltaX:e.left,deltaY:e.top})}getPositionParams(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;
1return{cols:t.cols,containerPadding:t.containerPadding,containerWidth:t.containerWidth,margin:t.margin,maxRows:t.maxRows,rowHeight:t.rowHeight}}createStyle(t){let e,{usePercentages:r,containerWidth:n,useCSSTransforms:i}=this.props;return i?e=(0,l.setTransform)(t):(e=(0,l.setTopLeft)(t),r&&(e.left=(0,l.perc)(t.left/n),e.width=(0,l.perc)(t.width/n))),e}mixinDraggable(t,e){return n.default.createElement(a.DraggableCore,{disabled:!e,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},t)}curryResizeHandler(t,e){return(r,n)=>e(r,n,t)}mixinResizable(t,e,r){let{cols:i,minW:o,minH:a,maxW:l,maxH:c,transformScale:h,resizeHandles:d,resizeHandle:p}=this.props,f=this.getPositionParams(),g=(0,u.calcGridItemPosition)(f,0,0,i,0).width,m=(0,u.calcGridItemPosition)(f,0,0,o,a),y=(0,u.calcGridItemPosition)(f,0,0,l,c),v=[m.width,m.height],b=[Math.min(y.width,g),Math.min(y.height,1/0)];return n.default.createElement(s.Resizable,{draggableOpts:{disabled:!r},className:r?void 0:"react-resizable-hide",width:e.width,height:e.height,minConstraints:v,maxConstraints:b,onResizeStop:this.curryResizeHandler(e,this.onResizeStop),onResizeStart:this.curryResizeHandler(e,this.onResizeStart),onResize:this.curryResizeHandler(e,this.onResize),transformScale:h,resizeHandles:d,handle:p},t)}onResizeHandler(t,e,r,n){let{node:o,size:a,handle:s}=e,c=this.props[n];if(!c)return;let{x:h,y:d,i:p,maxH:f,minH:g,containerWidth:m}=this.props,{minW:y,maxW:v}=this.props,b=a;o&&(b=(0,l.resizeItemInDirection)(s,r,a,m),(0,i.flushSync)(()=>{this.setState({resizing:"onResizeStop"===n?null:b})}));let{w,h:x}=(0,u.calcWH)(this.getPositionParams(),b.width,b.height,h,d,s);w=(0,u.clamp)(w,Math.max(y,1),v),x=(0,u.clamp)(x,g,f),c.call(this,p,w,x,{e:t,node:o,size:b,handle:s})}render(){let{x:t,y:e,w:r,h:i,isDraggable:o,isResizable:a,droppingPosition:s,useCSSTransforms:l}=this.props,c=(0,u.calcGridItemPosition)(this.getPositionParams(),t,e,r,i,this.state),d=n.default.Children.only(this.props.children),p=n.default.cloneElement(d,{ref:this.elementRef,className:(0,h.default)("react-grid-item",d.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":o,"react-draggable-dragging":!!this.state.dragging,dropping:!!s,cssTransforms:l}),style:{...this.props.style,...d.props.style,...this.createStyle(c)}});return p=this.mixinResizable(p,c,a),p=this.mixinDraggable(p,o)}}e.default=f,p(f,"propTypes",{children:o.default.element,cols:o.default.number.isRequired,containerWidth:o.default.number.isRequired,rowHeight:o.default.number.isRequired,margin:o.default.array.isRequired,maxRows:o.default.number.isRequired,containerPadding:o.default.array.isRequired,x:o.default.number.isRequired,y:o.default.number.isRequired,w:o.default.number.isRequired,h:o.default.number.isRequired,minW:function(t,e){let r=t[e];return"number"!=typeof r?Error("minWidth not Number"):r>t.w||r>t.maxW?Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(t,e){let r=t[e];return"number"!=typeof r?Error("maxWidth not Number"):r<t.w||r<t.minW?Error("maxWidth smaller than item width/minWidth"):void 0},minH:function(t,e){let r=t[e];return"number"!=typeof r?Error("minHeight not Number"):r>t.h||r>t.maxH?Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(t,e){let r=t[e];return"number"!=typeof r?Error("maxHeight not Number"):r<t.h||r<t.minH?Error("maxHeight smaller than item height/minHeight"):void 0},i:o.default.string.isRequired,resizeHandles:c.resizeHandleAxesType,resizeHandle:c.resizeHandleType,onDragStop:o.default.func,onDragStart:o.default.func,onDrag:o.default.func,onResizeStop:o.default.func,onResizeStart:o.default.func,onResize:o.default.func,isDraggable:o.default.bool.isRequired,isResizable:o.default.bool.isRequired,isBounded:o.default.bool.isRequired,static:o.default.bool,useCSSTransforms:o.default.bool.isRequired,transformScale:o.default.number,className:o.default.string,handle:o.default.string,cancel:o.default.string,droppingPosition:o.default.shape({e:o.default.object.isRequired,left:o.default.number.isRequired,top:o.default.number.isRequired})}),p(f,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1})},22528:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.browserPrefixToKey=i,e.browserPrefixToStyle=function(t,e){return e?`-${e.toLowerCase()}-${t}`:t},e.default=void 0,e.getPrefix=n;let r=["Moz","Webkit","O","ms"];function n(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";let e=window.document?.documentElement?.style;if(!e||t in e)return"";for(let n=0;n<r.length;n++)if(i(t,r[n])in e)return r[n];return""}function i(t,e){return e?`${e}${function(t){let e="",r=!0;for(let n=0;n<t.length;n++)r?(e+=t[n].toUpperCase(),r=!1):"-"===t[n]?r=!0:e+=t[n];return e}(t)}`:t}e.default=n()},23495:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(27585).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},24425:t=>{t.exports=function(t,e,r){return t===e||t.className===e.className&&r(t.style,e.style)&&t.width===e.width&&t.autoSize===e.autoSize&&t.cols===e.cols&&t.draggableCancel===e.draggableCancel&&t.draggableHandle===e.draggableHandle&&r(t.verticalCompact,e.verticalCompact)&&r(t.compactType,e.compactType)&&r(t.layout,e.layout)&&r(t.margin,e.margin)&&r(t.containerPadding,e.containerPadding)&&t.rowHeight===e.rowHeight&&t.maxRows===e.maxRows&&t.isBounded===e.isBounded&&t.isDraggable===e.isDraggable&&t.isResizable===e.isResizable&&t.allowOverlap===e.allowOverlap&&t.preventCollision===e.preventCollision&&t.useCSSTransforms===e.useCSSTransforms&&t.transformScale===e.transformScale&&t.isDroppable===e.isDroppable&&r(t.resizeHandles,e.resizeHandles)&&r(t.resizeHandle,e.resizeHandle)&&t.onLayoutChange===e.onLayoutChange&&t.onDragStart===e.onDragStart&&t.onDrag===e.onDrag&&t.onDragStop===e.onDragStop&&t.onResizeStart===e.onResizeStart&&t.onResize===e.onResize&&t.onResizeStop===e.onResizeStop&&t.onDrop===e.onDrop&&r(t.droppingItem,e.droppingItem)&&r(t.innerRef,e.innerRef)}},25137:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var n=p(r(10374)),i=d(r(39494)),o=d(r(10867)),a=r(68146),s=r(16685),l=r(10864),u=r(96486),c=d(r(42622)),h=d(r(91378));function d(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(p=function(t,e){if(!e&&t&&t.__esModule)return t;var i,o,a={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return a;
1if(i=e?n:r){if(i.has(t))return i.get(t);i.set(t,a)}for(let e in t)"default"!==e&&({}).hasOwnProperty.call(t,e)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,e))&&(o.get||o.set)?i(a,e,o):a[e]=t[e]);return a})(t,e)}function f(){return(f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(null,arguments)}function g(t,e,r){var n;return(e="symbol"==typeof(n=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class m extends n.Component{static getDerivedStateFromProps(t,e){let{position:r}=t,{prevPropsPosition:n}=e;return r&&(!n||r.x!==n.x||r.y!==n.y)?((0,h.default)("Draggable: getDerivedStateFromProps %j",{position:r,prevPropsPosition:n}),{x:r.x,y:r.y,prevPropsPosition:{...r}}):null}constructor(t){super(t),g(this,"onDragStart",(t,e)=>{if((0,h.default)("Draggable: onDragStart: %j",e),!1===this.props.onStart(t,(0,l.createDraggableData)(this,e)))return!1;this.setState({dragging:!0,dragged:!0})}),g(this,"onDrag",(t,e)=>{if(!this.state.dragging)return!1;(0,h.default)("Draggable: onDrag: %j",e);let r=(0,l.createDraggableData)(this,e),n={x:r.x,y:r.y,slackX:0,slackY:0};if(this.props.bounds){let{x:t,y:e}=n;n.x+=this.state.slackX,n.y+=this.state.slackY;let[i,o]=(0,l.getBoundPosition)(this,n.x,n.y);n.x=i,n.y=o,n.slackX=this.state.slackX+(t-n.x),n.slackY=this.state.slackY+(e-n.y),r.x=n.x,r.y=n.y,r.deltaX=n.x-this.state.x,r.deltaY=n.y-this.state.y}if(!1===this.props.onDrag(t,r))return!1;this.setState(n)}),g(this,"onDragStop",(t,e)=>{if(!this.state.dragging||!1===this.props.onStop(t,(0,l.createDraggableData)(this,e)))return!1;(0,h.default)("Draggable: onDragStop: %j",e);let r={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:t,y:e}=this.props.position;r.x=t,r.y=e}this.setState(r)}),this.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,prevPropsPosition:{...t.position},slackX:0,slackY:0,isElementSVG:!1},t.position&&!(t.onDrag||t.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??o.default.findDOMNode(this)}render(){let{axis:t,bounds:e,children:r,defaultPosition:i,defaultClassName:o,defaultClassNameDragging:u,defaultClassNameDragged:h,position:d,positionOffset:p,scale:g,...m}=this.props,y={},v=null,b=!d||this.state.dragging,w=d||i,x={x:(0,l.canDragX)(this)&&b?this.state.x:w.x,y:(0,l.canDragY)(this)&&b?this.state.y:w.y};this.state.isElementSVG?v=(0,s.createSVGTransform)(x,p):y=(0,s.createCSSTransform)(x,p);let S=(0,a.clsx)(r.props.className||"",o,{[u]:this.state.dragging,[h]:this.state.dragged});return n.createElement(c.default,f({},m,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(r),{className:S,style:{...r.props.style,...y},transform:v}))}}e.default=m,g(m,"displayName","Draggable"),g(m,"propTypes",{...c.default.propTypes,axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}
1),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),positionOffset:i.default.shape({x:i.default.oneOfType([i.default.number,i.default.string]),y:i.default.oneOfType([i.default.number,i.default.string])}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),g(m,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},26669:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},29256:(t,e,r)=>{"use strict";function n(t){let{moduleIds:e}=t;return null}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"PreloadChunks",{enumerable:!0,get:function(){return n}}),r(61254),r(10867),r(95959),r(75646)},29659:(t,e,r)=>{t.exports=r(76161).default,t.exports.utils=r(21285),t.exports.calculateUtils=r(37181),t.exports.Responsive=r(97755).default,t.exports.Responsive.utils=r(65591),t.exports.WidthProvider=r(67378).default},29821:(t,e,r)=>{"use strict";e.__esModule=!0,e.cloneElement=function(t,e){return e.style&&t.props.style&&(e.style=o(o({},t.props.style),e.style)),e.className&&t.props.className&&(e.className=t.props.className+" "+e.className),n.default.cloneElement(t,e)};var n=function(t){return t&&t.__esModule?t:{default:t}}(r(10374));function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}},33213:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resizeHandleType=e.resizeHandleAxesType=e.default=void 0;var n=o(r(39494)),i=o(r(10374));function o(t){return t&&t.__esModule?t:{default:t}}let a=e.resizeHandleAxesType=n.default.arrayOf(n.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),s=e.resizeHandleType=n.default.oneOfType([n.default.node,n.default.func]);e.default={className:n.default.string,style:n.default.object,width:n.default.number,autoSize:n.default.bool,cols:n.default.number,draggableCancel:n.default.string,draggableHandle:n.default.string,verticalCompact:function(t){t.verticalCompact},compactType:n.default.oneOf(["vertical","horizontal"]),layout:function(t){var e=t.layout;void 0!==e&&r(21285).validateLayout(e,"layout")},margin:n.default.arrayOf(n.default.number),containerPadding:n.default.arrayOf(n.default.number),rowHeight:n.default.number,maxRows:n.default.number,isBounded:n.default.bool,isDraggable:n.default.bool,isResizable:n.default.bool,allowOverlap:n.default.bool,preventCollision:n.default.bool,useCSSTransforms:n.default.bool,transformScale:n.default.number,isDroppable:n.default.bool,resizeHandles:a,resizeHandle:s,onLayoutChange:n.default.func,onDragStart:n.default.func,onDrag:n.default.func,onDragStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,onResizeStop:n.default.func,onDrop:n.default.func,droppingItem:n.default.shape({i:n.default.string.isRequired,w:n.default.number.isRequired,h:n.default.number.isRequired}),children:function(t,e){let r=t[e],n={};
1i.default.Children.forEach(r,function(t){if(t?.key!=null){if(n[t.key])throw Error('Duplicate child key "'+t.key+'" found! This will cause problems in ReactGridLayout.');n[t.key]=!0}})},innerRef:n.default.any}},37181:(t,e)=>{"use strict";function r(t){let{margin:e,containerPadding:r,containerWidth:n,cols:i}=t;return(n-e[0]*(i-1)-2*r[0])/i}function n(t,e,r){return Number.isFinite(t)?Math.round(e*t+Math.max(0,t-1)*r):t}function i(t,e,r){return Math.max(Math.min(t,r),e)}Object.defineProperty(e,"__esModule",{value:!0}),e.calcGridColWidth=r,e.calcGridItemPosition=function(t,e,i,o,a,s){let{margin:l,containerPadding:u,rowHeight:c}=t,h=r(t),d={};return s&&s.resizing?(d.width=Math.round(s.resizing.width),d.height=Math.round(s.resizing.height)):(d.width=n(o,h,l[0]),d.height=n(a,c,l[1])),s&&s.dragging?(d.top=Math.round(s.dragging.top),d.left=Math.round(s.dragging.left)):s&&s.resizing&&"number"==typeof s.resizing.top&&"number"==typeof s.resizing.left?(d.top=Math.round(s.resizing.top),d.left=Math.round(s.resizing.left)):(d.top=Math.round((c+l[1])*i+u[1]),d.left=Math.round((h+l[0])*e+u[0])),d},e.calcGridItemWHPx=n,e.calcWH=function(t,e,n,o,a,s){let{margin:l,maxRows:u,cols:c,rowHeight:h}=t,d=r(t),p=Math.round((e+l[0])/(d+l[0])),f=Math.round((n+l[1])/(h+l[1])),g=i(p,0,c-o),m=i(f,0,u-a);return -1!==["sw","w","nw"].indexOf(s)&&(g=i(p,0,c)),-1!==["nw","n","ne"].indexOf(s)&&(m=i(f,0,u)),{w:g,h:m}},e.calcXY=function(t,e,n,o,a){let{margin:s,containerPadding:l,cols:u,rowHeight:c,maxRows:h}=t,d=r(t),p=Math.round((n-l[0])/(d+s[0])),f=Math.round((e-l[1])/(c+s[1]));return{x:p=i(p,0,u-o),y:f=i(f,0,h-a)}},e.clamp=i},37827:()=>{},39113:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(55815).createAsyncLocalStorage)()},39494:(t,e,r)=>{t.exports=r(69714)()},41286:function(t){t.exports=function(){"use strict";function t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function e(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?t(Object(i),!0).forEach(function(t){var n,o,a;n=e,o=t,a=i[t],(o=r(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function r(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function n(t){return(n="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 i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var s="undefined"!=typeof window&&void 0!==window.document,l=s?window:{},u=!!s&&!!l.document.documentElement&&"ontouchstart"in l.document.documentElement,c=!!s&&"PointerEvent"in l,h="cropper",d="crop",p="move",f="zoom",g="".concat(h,"-crop"),m="".concat(h,"-disabled"),y="".concat(h,"-hidden"),v="".concat(h,"-hide"),b="".concat(h,"-invisible"),w="".concat(h,"-modal"),x="".concat(h,"-move"),S="".concat(h,"Action"),O="".concat(h,"Preview"),D="crop",E="move",_="none",R="crop",C="cropend",M="cropmove",P="cropstart",T="dblclick",j=c?"pointerdown":u?"touchstart":"mousedown",z=c?"pointermove":u?"touchmove":"mousemove",k=c?"pointerup pointercancel":u?"touchend touchcancel":"mouseup",A="ready",N="resize",L="wheel",I="zoom",H="image/jpeg",W=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,B=/^data:/,Y=/^data:image\/jpeg;base64,/,q=/^img|canvas$/i,X={viewMode:0,dragMode:D,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},F=Number.isNaN||l.isNaN;function U(t){return"number"==typeof t&&!F(t)}var G=function(t){return t>0&&t<1/0};function $(t){return void 0===t}function V(t){return"object"===n(t)&&null!==t}var K=Object.prototype.hasOwnProperty;function J(t){if(!V(t))return!1;try{var e=t.constructor,r=e.prototype;return e&&r&&K.call(r,"isPrototypeOf")}catch(t){return!1}}function Z(t){return"function"==typeof t}var Q=Array.prototype.slice;function tt(t){return Array.from?Array.from(t):Q.call(t)}function te(t,e){return t&&Z(e)&&(Array.isArray(t)||U(t.length)?tt(t).forEach(function(r,n){e.call(t,r,n,t)}):V(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)})),t}var tr=Object.assign||function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return V(t)&&r.length>0&&r.forEach(function(e){V(e)&&Object.keys(e).forEach(function(r){t[r]=e[r]})}),t},tn=/\.\d*(?:0|9){12}\d*$/;function ti(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return tn.test(t)?Math.round(t*e)/e:t}var to=/^width|height|left|top|marginLeft|marginTop$/;function ta(t,e){var r=t.style;te(e,function(t,e){to.test(e)&&U(t)&&(t="".concat(t,"px")),r[e]=t})}function ts(t,e){if(e){if(U(t.length)){te(t,function(t){ts(t,e)});return}if(t.classList){t.classList.add(e);return}var r=t.className.trim();r?0>r.indexOf(e)&&(t.className="".concat(r," ").concat(e)):t.className=e}}function tl(t,e){if(e){if(U(t.length)){te(t,function(t){tl(t,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function tu(t,e,r){if(e){if(U(t.length)){te(t,function(t){tu(t,e,r)});return}r?ts(t,e):tl(t,e)}}var tc=/([a-z\d])([A-Z])/g;function th(t){return t.replace(tc,"$1-$2").toLowerCase()}function td(t,e){return V(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(th(e)))}function tp(t,e,r){V(r)?t[e]=r:t.dataset?t.dataset[e]=r:t.setAttribute("data-".concat(th(e)),r)}var tf=/\s\s*/,tg=function(){var t=!1;if(s){var e=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});l.addEventListener("test",r,n),l.removeEventListener("test",r,n)}return t}();function tm(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r;e.trim().split(tf).forEach(function(e){if(!tg){var o=t.listeners;o&&o[e]&&o[e][r]&&(i=o[e][r],delete o[e][r],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.listeners)}t.removeEventListener(e,i,n)})}function ty(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r;e.trim().split(tf).forEach(function(e){if(n.once&&!tg){var o=t.listeners,a=void 0===o?{}:o;i=function(){delete a[e][r],t.removeEventListener(e,i,n);for(var o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];r.apply(t,s)},a[e]||(a[e]={}),a[e][r]&&t.removeEventListener(e,a[e][r],n),a[e][r]=i,t.listeners=a}t.addEventListener(e,i,n)})}function tv(t,e,r){var n;return Z(Event)&&Z(CustomEvent)?n=new CustomEvent(e,{detail:r,bubbles:!0,cancelable:!0}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,r),t.dispatchEvent(n)}function tb(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var tw=l.location,tx=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function tS(t){var e=t.match(tx);return null!==e&&(e[1]!==tw.protocol||e[2]!==tw.hostname||e[3]!==tw.port)}function tO(t){var e="timestamp=".concat(new Date().getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function tD(t){var e=t.rotate,r=t.scaleX,n=t.scaleY,i=t.translateX,o=t.translateY,a=[];U(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),U(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),U(e)&&0!==e&&a.push("rotate(".concat(e,"deg)")),U(r)&&1!==r&&a.push("scaleX(".concat(r,")")),U(n)&&1!==n&&a.push("scaleY(".concat(n,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function tE(t,r){var n=t.pageX,i=t.pageY,o={endX:n,endY:i};return r?o:e({startX:n,startY:i},o)}function t_(t){var e=t.aspectRatio,r=t.height,n=t.width,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=G(n),a=G(r);if(o&&a){var s=r*e;"contain"===i&&s>n||"cover"===i&&s<n?r=n/e:n=r*e}else o?r=n/e:a&&(n=r*e);return{width:n,height:r}}var tR=String.fromCharCode,tC=/^data:.*,/,tM=l.Cropper,tP=function(){var t,e;function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))throw TypeError("Cannot call a class as a function");if(!t||!q.test(t.tagName))throw Error("The first argument is required and must be an <img> or <canvas> element.");this.element=t,this.options=tr({},X,J(e)&&e),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return t=[{key:"init",value:function(){var t,e=this.element,r=e.tagName.toLowerCase();if(!e[h]){if(e[h]=this,"img"===r){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===r&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var r,n,i,o=this.element,a=this.options;if(a.rotatable||a.scalable||(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(B.test(t)){Y.test(t)?this.read((te(i=new Uint8Array(n=new ArrayBuffer((r=atob(t.replace(tC,""))).length)),function(t,e){i[e]=r.charCodeAt(e)}),n)):this.clone();return}var s=new XMLHttpRequest,l=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=l,s.onerror=l,s.ontimeout=l,s.onprogress=function(){s.getResponseHeader("content-type")!==H&&s.abort()},s.onload=function(){e.read(s.response)},s.onloadend=function(){e.reloading=!1,e.xhr=null},a.checkCrossOrigin&&tS(t)&&o.crossOrigin&&(t=tO(t)),s.open("GET",t,!0),s.responseType="arraybuffer",s.withCredentials="use-credentials"===o.crossOrigin,s.send()}}},{key:"read",value:function(t){var e=this.options,r=this.imageData,n=function(t){var e=new DataView(t);try{if(255===e.getUint8(0)&&216===e.getUint8(1))for(var r=e.byteLength,n=2;n+1<r;){if(255===e.getUint8(n)&&225===e.getUint8(n+1)){c=n;break}n+=1}if(c){var i=c+4,o=c+10;if("Exif"===function(t,e,r){var n="";r+=e;for(var i=e;i<r;i+=1)n+=tR(t.getUint8(i));return n}(e,i,4)){var a=e.getUint16(o);if(((u=18761===a)||19789===a)&&42===e.getUint16(o+2,u)){var s=e.getUint32(o+4,u);s>=8&&(h=o+s)}}}if(h){var l,u,c,h,d,p,f=e.getUint16(h,u);for(p=0;p<f;p+=1)if(d=h+12*p+2,274===e.getUint16(d,u)){d+=8,l=e.getUint16(d,u),e.setUint16(d,1,u);break}}}catch(t){l=1}return l}(t),i=0,o=1,a=1;if(n>1){this.url=function(t,e){for(var r=[],n=new Uint8Array(t);n.length>0;)r.push(tR.apply(null,tt(n.subarray(0,8192)))),n=n.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(r.join("")))}(t,H);var s=function(t){var e=0,r=1,n=1;switch(t){case 2:r=-1;break;case 3:e=-180;break;case 4:n=-1;break;case 5:e=90,n=-1;break;case 6:e=90;break;case 7:e=90,r=-1;break;case 8:e=-90}return{rotate:e,scaleX:r,scaleY:n}}(n);i=s.rotate,o=s.scaleX,a=s.scaleY}e.rotatable&&(r.rotate=i),e.scalable&&(r.scaleX=o,r.scaleY=a),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,r=t.crossOrigin,n=e;this.options.checkCrossOrigin&&tS(e)&&(r||(r="anonymous"),n=tO(e)),this.crossOrigin=r,this.crossOriginUrl=n;var i=document.createElement("img");r&&(i.crossOrigin=r),i.src=n||e,i.alt=t.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),ts(i,v),t.parentNode.insertBefore(i,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var r=l.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(l.navigator.userAgent),n=function(e,r){tr(t.imageData,{naturalWi
1dth:e,naturalHeight:r,aspectRatio:e/r}),t.initialImageData=tr({},t.imageData),t.sizing=!1,t.sized=!0,t.build()};if(e.naturalWidth&&!r){n(e.naturalWidth,e.naturalHeight);return}var i=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){n(i.width,i.height),r||o.removeChild(i)},i.src=e.src,r||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i))}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,r=this.image,n=t.parentNode,i=document.createElement("div");i.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var o=i.querySelector(".".concat(h,"-container")),a=o.querySelector(".".concat(h,"-canvas")),s=o.querySelector(".".concat(h,"-drag-box")),l=o.querySelector(".".concat(h,"-crop-box")),u=l.querySelector(".".concat(h,"-face"));this.container=n,this.cropper=o,this.canvas=a,this.dragBox=s,this.cropBox=l,this.viewBox=o.querySelector(".".concat(h,"-view-box")),this.face=u,a.appendChild(r),ts(t,y),n.insertBefore(o,t.nextSibling),tl(r,v),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,ts(l,y),e.guides||ts(l.getElementsByClassName("".concat(h,"-dashed")),y),e.center||ts(l.getElementsByClassName("".concat(h,"-center")),y),e.background&&ts(o,"".concat(h,"-bg")),e.highlight||ts(u,b),e.cropBoxMovable&&(ts(u,x),tp(u,S,"all")),e.cropBoxResizable||(ts(l.getElementsByClassName("".concat(h,"-line")),y),ts(l.getElementsByClassName("".concat(h,"-point")),y)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),Z(e.ready)&&ty(t,A,e.ready,{once:!0}),tv(t,A)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var t=this.cropper.parentNode;t&&t.removeChild(this.cropper),tl(this.element,y)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],e=[{key:"noConflict",value:function(){return window.Cropper=tM,r}},{key:"setDefaults",value:function(t){tr(X,J(t)&&t)}}],t&&i(r.prototype,t),e&&i(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();return tr(tP.prototype,{render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,r=this.container,n=this.cropper,i=Number(e.minContainerWidth),o=Number(e.minContainerHeight);ts(n,y),tl(t,y);var a={width:Math.max(r.offsetWidth,i>=0?i:200),height:Math.max(r.offsetHeight,o>=0?o:100)};this.containerData=a,ta(n,{width:a.width,height:a.height}),ts(t,y),tl(n,y)}
vendor: 4,805 bytes, line 1
1,initCanvas:function(){var t=this.containerData,e=this.imageData,r=this.options.viewMode,n=Math.abs(e.rotate)%180==90,i=n?e.naturalHeight:e.naturalWidth,o=n?e.naturalWidth:e.naturalHeight,a=i/o,s=t.width,l=t.height;t.height*a>t.width?3===r?s=t.height*a:l=t.width/a:3===r?l=t.width/a:s=t.height*a;var u={aspectRatio:a,naturalWidth:i,naturalHeight:o,width:s,height:l};this.canvasData=u,this.limited=1===r||2===r,this.limitCanvas(!0,!0),u.width=Math.min(Math.max(u.width,u.minWidth),u.maxWidth),u.height=Math.min(Math.max(u.height,u.minHeight),u.maxHeight),u.left=(t.width-u.width)/2,u.top=(t.height-u.height)/2,u.oldLeft=u.left,u.oldTop=u.top,this.initialCanvasData=tr({},u)},limitCanvas:function(t,e){var r=this.options,n=this.containerData,i=this.canvasData,o=this.cropBoxData,a=r.viewMode,s=i.aspectRatio,l=this.cropped&&o;if(t){var u=Number(r.minCanvasWidth)||0,c=Number(r.minCanvasHeight)||0;a>1?(u=Math.max(u,n.width),c=Math.max(c,n.height),3===a&&(c*s>u?u=c*s:c=u/s)):a>0&&(u?u=Math.max(u,l?o.width:0):c?c=Math.max(c,l?o.height:0):l&&(u=o.width,(c=o.height)*s>u?u=c*s:c=u/s));var h=t_({aspectRatio:s,width:u,height:c});u=h.width,c=h.height,i.minWidth=u,i.minHeight=c,i.maxWidth=1/0,i.maxHeight=1/0}if(e)if(a>+!l){var d=n.width-i.width,p=n.height-i.height;i.minLeft=Math.min(0,d),i.minTop=Math.min(0,p),i.maxLeft=Math.max(0,d),i.maxTop=Math.max(0,p),l&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a&&(i.width>=n.width&&(i.minLeft=Math.min(0,d),i.maxLeft=Math.max(0,d)),i.height>=n.height&&(i.minTop=Math.min(0,p),i.maxTop=Math.max(0,p))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=n.width,i.maxTop=n.height},renderCanvas:function(t,e){var r=this.canvasData,n=this.imageData;if(e){var i=function(t){var e=t.width,r=t.height,n=t.degree;if(90==(n=Math.abs(n)%180))return{width:r,height:e};var i=n%90*Math.PI/180,o=Math.sin(i),a=Math.cos(i),s=e*a+r*o,l=e*o+r*a;return n>90?{width:l,height:s}:{width:s,height:l}}({width:n.naturalWidth*Math.abs(n.scaleX||1),height:n.naturalHeight*Math.abs(n.scaleY||1),degree:n.rotate||0}),o=i.width,a=i.height,s=r.width*(o/r.naturalWidth),l=r.height*(a/r.naturalHeight);r.left-=(s-r.width)/2,r.top-=(l-r.height)/2,r.width=s,r.height=l,r.aspectRatio=o/a,r.naturalWidth=o,r.naturalHeight=a,this.limitCanvas(!0,!1)}(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft),(r.height>r.maxHeight||r.height<r.minHeight)&&(r.top=r.oldTop),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),this.limitCanvas(!1,!0),r.left=Math.min(Math.max(r.left,r.minLeft),r.maxLeft),r.top=Math.min(Math.max(r.top,r.minTop),r.maxTop),r.oldLeft=r.left,r.oldTop=r.top,ta(this.canvas,tr({width:r.width,height:r.height},tD({translateX:r.left,translateY:r.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,r=this.imageData,n=r.naturalWidth*(e.width/e.naturalWidth),i=r.naturalHeight*(e.height/e.naturalHeight);tr(r,{width:n,height:i,left:(e.width-n)/2,top:(e.height-i)/2}),ta(this.image,tr({width:r.width,height:r.height},tD(tr({translateX:r.left,translateY:r.top},r)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,r=t.aspectRatio||t.initialAspectRatio,n=Number(t.autoCropArea)||.8,i={width:e.width,height:e.height};r&&(e.height*r>e.width?i.height=i.width/r:i.width=i.height*r),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*n),i.height=Math.max(i.minHeight,i.height*n),i.left=e.left+(e.width-i.width)/2,i.top=e.top+(e.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=tr({},i)},limitCropBox:function(t,e){var r=this.options,n=this.containerData,i=this.canvasData,o=this.cropBoxData,a=this.limited,s=r.aspectRatio;if(t){var l=Number(r.minCropBoxWidth)||0,u=Number(r.minCropBoxHeight)||0,c=a?Math.min(n.width,i.width,i.width+i.left,n.width-i.left):n.width,h=a?Math.min(n.height,i.height,i.height+i.top,n.height-i.top):n.height;l=Math.min(l,n.width),u=Math.min(u,n.height),s&&(l&&u?u*s>l?u=l/s:l=u*s:l?u=l/s:u&&(l=u*s),h*s>c?h=c/s:c=h*s),o.minWidth=Math.min(l,c),o.minHeight=Math.min(u,h),o.maxWidth=c,o.maxHeight=h}e&&(a?(o.minLeft=Math.max(0,i.left),o.minTop=Math.max(0,i.top),o.maxLeft=Math.min(n.width,i.left+i.width)-o.width,o.maxTop=Math.min(n.height,i.top+i.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=n.width-o.width,o.maxTop=n.height-o.height))},renderCropBox:function(){var t=this.options,e=this.containerData,r=this.cropBoxData;(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft),(r.height>
1r.maxHeight||r.height<r.minHeight)&&(r.top=r.oldTop),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),this.limitCropBox(!1,!0),r.left=Math.min(Math.max(r.left,r.minLeft),r.maxLeft),r.top=Math.min(Math.max(r.top,r.minTop),r.maxTop),r.oldLeft=r.left,r.oldTop=r.top,t.movable&&t.cropBoxMovable&&tp(this.face,S,r.width>=e.width&&r.height>=e.height?p:"all"),ta(this.cropBox,tr({width:r.width,height:r.height},tD({translateX:r.left,translateY:r.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),tv(this.element,R,this.getData())}},{initPreview:function(){var t=this.element,e=this.crossOrigin,r=this.options.preview,n=e?this.crossOriginUrl:this.url,i=t.alt||"The image to preview",o=document.createElement("img");if(e&&(o.crossOrigin=e),o.src=n,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,r){var a=r;"string"==typeof r?a=t.ownerDocument.querySelectorAll(r):r.querySelector&&(a=[r]),this.previews=a,te(a,function(t){var r=document.createElement("img");tp(t,O,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(r.crossOrigin=e),r.src=n,r.alt=i,r.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(r)})}},resetPreview:function(){te(this.previews,function(t){var e=td(t,O);ta(t,{width:e.width,height:e.height}),t.innerHTML=e.html;if(V(t[O]))try{delete t[O]}catch(e){t[O]=void 0}else if(t.dataset)try{delete t.dataset[O]}catch(e){t.dataset[O]=void 0}else t.removeAttribute("data-".concat(th(O)))})},preview:function(){var t=this.imageData,e=this.canvasData,r=this.cropBoxData,n=r.width,i=r.height,o=t.width,a=t.height,s=r.left-e.left-t.left,l=r.top-e.top-t.top;this.cropped&&!this.disabled&&(ta(this.viewBoxImage,tr({width:o,height:a},tD(tr({translateX:-s,translateY:-l},t)))),te(this.previews,function(e){var r=td(e,O),u=r.width,c=r.height,h=u,d=c,p=1;n&&(d=i*(p=u/n)),i&&d>c&&(h=n*(p=c/i),d=c),ta(e,{width:h,height:d}),ta(e.getElementsByTagName("img")[0],tr({width:o*p,height:a*p},tD(tr({translateX:-s*p,translateY:-l*p},t))))}))}},{bind:function(){var t=this.element,e=this.options,r=this.cropper;Z(e.cropstart)&&ty(t,P,e.cropstart),Z(e.cropmove)&&ty(t,M,e.cropmove),Z(e.cropend)&&ty(t,C,e.cropend),Z(e.crop)&&ty(t,R,e.crop),Z(e.zoom)&&ty(t,I,e.zoom),ty(r,j,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&ty(r,L,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&ty(r,T,this.onDblclick=this.dblclick.bind(this)),ty(t.ownerDocument,z,this.onCropMove=this.cropMove.bind(this)),ty(t.ownerDocument,k,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&ty(window,N,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,r=this.cropper;Z(e.cropstart)&&tm(t,P,e.cropstart),Z(e.cropmove)&&tm(t,M,e.cropmove),Z(e.cropend)&&tm(t,C,e.cropend),Z(e.crop)&&tm(t,R,e.crop),Z(e.zoom)&&tm(t,I,e.zoom),tm(r,j,this.onCropStart),e.zoomable&&e.zoomOnWheel&&tm(r,L,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&tm(r,T,this.onDblclick),tm(t.ownerDocument,z,this.onCropMove),tm(t.ownerDocument,k,this.onCropEnd),e.responsive&&tm(window,N,this.onResize)}},{resize:function(){if(!this.disabled){var t,e,r=this.options,n=this.container,i=this.containerData,o=n.offsetWidth/i.width,a=n.offsetHeight/i.height,s=Math.abs(o-1)>Math.abs(a-1)?o:a;1!==s&&(r.restore&&(t=this.getCanvasData(),e=this.getCropBoxData()),this.render(),r.restore&&(this.setCanvasData(te(t,function(e,r){t[r]=e*s})),this.setCropBoxData(te(e,function(t,r){e[r]=t*s}))))}},dblclick:function(){if(!this.disabled&&this.options.dragMode!==_){var t;this.setDragMode(((t=this.dragBox).classList?t.classList.contains(g):t.className.indexOf(g)>-1)?E:D)}},wheel:function(t){var e=this,r=Number(this.options.wheelZoomRatio)||.1,n=1;!this.disabled&&(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout(function(){e.wheeling=!1},50),t.deltaY?n=t.deltaY>0?1:-1:t.wheelDelta?n=-t.wheelDelta/120:t.detail&&(n=t.detail>0?1:-1),this.zoom(-n*r,t)))},cropStart:function(t){var e,r=t.buttons,n=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(U(r)&&1!==r||U(n)&&0!==n||t.ctrlKey))){var i=this.options,o=this.pointers;t.changedTouches?te(t.changedTouches,function(t){o[t.identifier]=tE(t)}):o[t.pointerId||0]=tE(t),e=Object.keys(o).length>1&&i.zoomable&&i.zoomOnTouch?f:td(t.target,S),W.test(e)&&!1!==tv(this.element,P,{originalEvent:t,action:e})&&(t.preventDefault(),this.action=e,this.cropping=!1,e===d&&(this.cropping=!0,ts(this.dragBox,w)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var r=this.pointers;t.preventDefault(),!1!==tv(this.element,M,{originalEvent:t,action:e})&&(t.changedTouches?te(t.changedTouches,function(t){tr(r[t.identifier]||{},tE(t,!0))}):tr(r[t.pointerId||0]||{},tE(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,r=this.pointers;t.changedTouches?te(t.changedTouches,function(t){delete r[t.identifier]}):delete r[t.pointerId||0],e&&(t.preventDefault(),Object.keys(r).length||(this.action=""),this.cropping&&(this.cropping=!1,tu(this.dragBox,w,this.cropped&&this.options.modal)),tv(this.element,C,{originalEvent:t,action:e}))}}},{change:function(t){var r,n,i,o=this.options,a=this.canvasData,s=this.containerData,l=this.cropBoxData,u=this.pointers,c=this.action,h=o.aspectRatio,g=l.left,m=l.top,v=l.width,b=l.height,w=g+v,x=m+b,S=0,O=0,D=s.width,E=s.height,_=!0;!h&&t.shiftKey&&(h=v&&b?v/b:1),this.limited&&(S=l.minLeft,O=l.minTop,D=S+Math.min(s.width,a.width,a.left+a.width),E=O+Math.min(s.height,a.height,a.top+a.height));var R=u[Object.keys(u)[0]],C={x:R.endX-R.startX,y:R.endY-R.startY},M=function(t){switch(t){case"e":w+C.x>D&&(C.x=D-w);break;case"w":g+C.x<S&&(C.x=S-g);break;case"n":m+C.y<O&&(C.y=O-m);break;case"s":x+C.y>E&&(C.y=E-x)}};switch(c){case"all":g+=C.x,m+=C.y;break;case"e":if(C.x>=0&&(w>=D||h&&(m<=O||x>=E))){_=!1;break}M("e"),(v+=C.x)<0&&(c="w",g-=v=-v),h&&(b=v/h,m+=(l.height-b)/2);break;case"n":if(C.y<=0&&(m<=O||h&&(g<=S||w>=D))){_=!1;break}M("n"),b-=C.y,m+=C.y,b<0&&(c="s",m-=b=-b),h&&(v=b*h,g+=(l.width-v)/2);break;case"w":if(C.x<=0&&(g<=S||h&&(m<=O||x>=E))){_=!1;break}M("w"),v-=C.x,g+=C.x,v<0&&(c="e",g-=v=-v),h&&(b=v/h,m+=(l.height-b)/2);break;case"s":if(C.y>=0&&(x>=E||h&&(g<=S||w>=D))){_=!1;break}M("s"),(b+=C.y)<0&&(c="n",m-=b=-b),h&&(v=b*h,g+=(l.width-v)/2);break;
1case"ne":if(h){if(C.y<=0&&(m<=O||w>=D)){_=!1;break}M("n"),b-=C.y,m+=C.y,v=b*h}else M("n"),M("e"),C.x>=0?w<D?v+=C.x:C.y<=0&&m<=O&&(_=!1):v+=C.x,C.y<=0?m>O&&(b-=C.y,m+=C.y):(b-=C.y,m+=C.y);v<0&&b<0?(c="sw",v=-v,m-=b=-b,g-=v):v<0?(c="nw",g-=v=-v):b<0&&(c="se",m-=b=-b);break;case"nw":if(h){if(C.y<=0&&(m<=O||g<=S)){_=!1;break}M("n"),b-=C.y,m+=C.y,v=b*h,g+=l.width-v}else M("n"),M("w"),C.x<=0?g>S?(v-=C.x,g+=C.x):C.y<=0&&m<=O&&(_=!1):(v-=C.x,g+=C.x),C.y<=0?m>O&&(b-=C.y,m+=C.y):(b-=C.y,m+=C.y);v<0&&b<0?(c="se",v=-v,m-=b=-b,g-=v):v<0?(c="ne",g-=v=-v):b<0&&(c="sw",m-=b=-b);break;case"sw":if(h){if(C.x<=0&&(g<=S||x>=E)){_=!1;break}M("w"),v-=C.x,g+=C.x,b=v/h}else M("s"),M("w"),C.x<=0?g>S?(v-=C.x,g+=C.x):C.y>=0&&x>=E&&(_=!1):(v-=C.x,g+=C.x),C.y>=0?x<E&&(b+=C.y):b+=C.y;v<0&&b<0?(c="ne",v=-v,m-=b=-b,g-=v):v<0?(c="se",g-=v=-v):b<0&&(c="nw",m-=b=-b);break;case"se":if(h){if(C.x>=0&&(w>=D||x>=E)){_=!1;break}M("e"),v+=C.x,b=v/h}else M("s"),M("e"),C.x>=0?w<D?v+=C.x:C.y>=0&&x>=E&&(_=!1):v+=C.x,C.y>=0?x<E&&(b+=C.y):b+=C.y;v<0&&b<0?(c="nw",v=-v,m-=b=-b,g-=v):v<0?(c="sw",g-=v=-v):b<0&&(c="ne",m-=b=-b);break;case p:this.move(C.x,C.y),_=!1;break;case f:this.zoom((r=e({},u),n=0,te(u,function(t,e){delete r[e],te(r,function(e){var r=Math.abs(t.startX-e.startX),i=Math.abs(t.startY-e.startY),o=Math.abs(t.endX-e.endX),a=Math.abs(t.endY-e.endY),s=Math.sqrt(r*r+i*i),l=(Math.sqrt(o*o+a*a)-s)/s;Math.abs(l)>Math.abs(n)&&(n=l)})}),n),t),_=!1;break;case d:if(!C.x||!C.y){_=!1;break}i=tb(this.cropper),g=R.startX-i.left,m=R.startY-i.top,v=l.minWidth,b=l.minHeight,C.x>0?c=C.y>0?"se":"ne":C.x<0&&(g-=v,c=C.y>0?"sw":"nw"),C.y<0&&(m-=b),!this.cropped&&(tl(this.cropBox,y),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}_&&(l.width=v,l.height=b,l.left=g,l.top=m,this.action=c,this.renderCropBox()),te(u,function(t){t.startX=t.endX,t.startY=t.endY})}},{crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&ts(this.dragBox,w),tl(this.cropBox,y),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=tr({},this.initialImageData),this.canvasData=tr({},this.initialCanvasData),this.cropBoxData=tr({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(tr(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),tl(this.dragBox,w),ts(this.cropBox,y)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,te(this.previews,function(e){e.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,tl(this.cropper,m)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,ts(this.cropper,m)),this},destroy:function(){var t=this.element;return t[h]&&(t[h]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate()),this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=this.canvasData,n=r.left,i=r.top;return this.moveTo($(t)?t:n+Number(t),$(e)?e:i+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=this.canvasData,n=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(U(t)&&(r.left=t,n=!0),U(e)&&(r.top=e,n=!0),n&&this.renderCanvas(!0)),this},zoom:function(t,e){var r=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(r.width*t/r.naturalWidth,null,e)},zoomTo:function(t,e,r){var n=this.options,i=this.canvasData,o=i.width,a=i.height,s=i.naturalWidth,l=i.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&n.zoomable){var u=s*t,c=l*t;if(!1===tv(this.element,I,{ratio:t,oldRatio:o/s,originalEvent:r}))return this;if(r){var h,d,p,f=this.pointers,g=tb(this.cropper),m=f&&Object.keys(f).length?(h=0,d=0,p=0,te(f,function(t){var e=t.startX,r=t.startY;h+=e,d+=r,p+=1}),h/=p,d/=p,{pageX:h,pageY:d}):{pageX:r.pageX,pageY:r.pageY};i.left-=(u-o)*((m.pageX-g.left-i.left)/o),i.top-=(c-a)*((m.pageY-g.top-i.top)/a)}else J(e)&&U(e.x)&&U(e.y)?(i.left-=(u-o)*((e.x-i.left)/o),i.top-=(c-a)*((e.y-i.top)/a)):(i.left-=(u-o)/2,i.top-=(c-a)/2);i.width=u,i.height=c,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return U(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,U(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(U(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=this.imageData,n=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(U(t)&&(r.scaleX=t,n=!0),U(e)&&(r.scaleY=e,n=!0),n&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.options,n=this.imageData,i=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){t={x:o.left-i.left,y:o.top-i.top,width:o.width,height:o.height};
1var a=n.width/n.naturalWidth;if(te(t,function(e,r){t[r]=e/a}),e){var s=Math.round(t.y+t.height),l=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=l-t.x,t.height=s-t.y}}else t={x:0,y:0,width:0,height:0};return r.rotatable&&(t.rotate=n.rotate||0),r.scalable&&(t.scaleX=n.scaleX||1,t.scaleY=n.scaleY||1),t},setData:function(t){var e=this.options,r=this.imageData,n=this.canvasData,i={};if(this.ready&&!this.disabled&&J(t)){var o=!1;e.rotatable&&U(t.rotate)&&t.rotate!==r.rotate&&(r.rotate=t.rotate,o=!0),e.scalable&&(U(t.scaleX)&&t.scaleX!==r.scaleX&&(r.scaleX=t.scaleX,o=!0),U(t.scaleY)&&t.scaleY!==r.scaleY&&(r.scaleY=t.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var a=r.width/r.naturalWidth;U(t.x)&&(i.left=t.x*a+n.left),U(t.y)&&(i.top=t.y*a+n.top),U(t.width)&&(i.width=t.width*a),U(t.height)&&(i.height=t.height*a),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?tr({},this.containerData):{}},getImageData:function(){return this.sized?tr({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&te(["left","top","width","height","naturalWidth","naturalHeight"],function(r){e[r]=t[r]}),e},setCanvasData:function(t){var e=this.canvasData,r=e.aspectRatio;return this.ready&&!this.disabled&&J(t)&&(U(t.left)&&(e.left=t.left),U(t.top)&&(e.top=t.top),U(t.width)?(e.width=t.width,e.height=t.width/r):U(t.height)&&(e.height=t.height,e.width=t.height*r),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,r,n=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&J(t)&&(U(t.left)&&(n.left=t.left),U(t.top)&&(n.top=t.top),U(t.width)&&t.width!==n.width&&(e=!0,n.width=t.width),U(t.height)&&t.height!==n.height&&(r=!0,n.height=t.height),i&&(e?n.height=n.width/i:r&&(n.width=n.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var t,e,r,n,i,a,s,l,u,c,h,d,p,f,g,m,y,v,b,w,x,S,O,D,E,_,R,C,M,P,T,j,z,k,A,N,L,I,H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var W=this.canvasData,B=(t=this.image,r=(e=this.imageData).aspectRatio,n=e.naturalWidth,i=e.naturalHeight,a=e.rotate,s=e.scaleX,l=e.scaleY,u=W.aspectRatio,c=W.naturalWidth,h=W.naturalHeight,d=H.fillColor,p=H.imageSmoothingEnabled,f=H.imageSmoothingQuality,m=void 0===(g=H.maxWidth)?1/0:g,v=void 0===(y=H.maxHeight)?1/0:y,w=void 0===(b=H.minWidth)?0:b,S=void 0===(x=H.minHeight)?0:x,D=(O=document.createElement("canvas")).getContext("2d"),E=t_({aspectRatio:u,width:m,height:v}),_=t_({aspectRatio:u,width:w,height:S},"cover"),R=Math.min(E.width,Math.max(_.width,c)),C=Math.min(E.height,Math.max(_.height,h)),M=t_({aspectRatio:r,width:m,height:v}),P=t_({aspectRatio:r,width:w,height:S},"cover"),T=Math.min(M.width,Math.max(P.width,n)),j=Math.min(M.height,Math.max(P.height,i)),O.width=ti(R),O.height=ti(C),D.fillStyle=void 0===d?"transparent":d,D.fillRect(0,0,R,C),D.save(),D.translate(R/2,C/2),D.rotate((void 0===a?0:a)*Math.PI/180),D.scale(void 0===s?1:s,void 0===l?1:l),D.imageSmoothingEnabled=void 0===p||p,D.imageSmoothingQuality=void 0===f?"low":f,D.drawImage.apply(D,[t].concat(o([-T/2,-j/2,T,j].map(function(t){return Math.floor(ti(t))})))),D.restore(),O);if(!this.cropped)return B;var Y=this.getData(H.rounded),q=Y.x,X=Y.y,F=Y.width,U=Y.height,G=B.width/Math.floor(W.naturalWidth);1!==G&&(q*=G,X*=G,F*=G,U*=G);var $=F/U,V=t_({aspectRatio:$,width:H.maxWidth||1/0,height:H.maxHeight||1/0}),K=t_({aspectRatio:$,width:H.minWidth||0,height:H.minHeight||0},"cover"),J=t_({aspectRatio:$,width:H.width||(1!==G?B.width:F),height:H.height||(1!==G?B.height:U)}),Z=J.width,Q=J.height;Z=Math.min(V.width,Math.max(K.width,Z)),Q=Math.min(V.height,Math.max(K.height,Q));var tt=document.createElement("canvas"),te=tt.getContext("2d");tt.width=ti(Z),tt.height=ti(Q),te.fillStyle=H.fillColor||"transparent",te.fillRect(0,0,Z,Q);var tr=H.imageSmoothingEnabled,tn=H.imageSmoothingQuality;te.imageSmoothingEnabled=void 0===tr||tr,tn&&(te.imageSmoothingQuality=tn);var to=B.width,ta=B.height,ts=q,tl=X;ts<=-F||ts>to?(ts=0,z=0,A=0,L=0):ts<=0?(A=-ts,L=z=Math.min(to,F+(ts=0))):ts<=to&&(A=0,L=z=Math.min(F,to-ts)),z<=0||tl<=-U||tl>ta?(tl=0,k=0,N=0,I=0):tl<=0?(N=-tl,I=k=Math.min(ta,U+(tl=0))):tl<=ta&&(N=0,I=k=Math.min(U,ta-tl));var tu=[ts,tl,z,k];if(L>0&&I>0){var tc=Z/F;tu.push(A*tc,N*tc,L*tc,I*tc)}return te.drawImage.apply(te,[B].concat(o(tu.map(function(t){return Math.floor(ti(t))})))),tt},setAspectRatio:function(t){var e=this.options;return!this.disabled&&!$(t)&&(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,r=this.dragBox,n=this.face;if(this.ready&&!this.disabled){var i=t===D,o=e.movable&&t===E;e.dragMode=t=i||o?t:_,tp(r,S,t),tu(r,g,i),tu(r,x,o),e.cropBoxMovable||(tp(n,S,t),tu(n,g,i),tu(n,x,o))}return this}}),tP}()},41485:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>S});var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var r=-1;return t.some(function(t,n){return t[0]===e&&(r=n,!0)}),r}function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var r=t(this.__entries__,e),n=this.__entries__[r];return n&&n[1]},e.prototype.set=function(e,r){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=r:this.__entries__.push([e,r])},e.prototype.delete=function(e){var r=this.__entries__,n=t(r,e);~n&&r.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var r=0,n=this.__entries__;r<n.length;r++){var i=n[r];t.call(e,i[1],i[0])}},e}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==r.g&&r.g.Math===Math?r.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,u=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var r=!1,n=!1,i=0;function o(){r&&(r=!1,t()),n&&l()}function s(){a(o)}function l(){var t=Date.now();if(r){if(t-i<2)return;n=!0}else r=!0,n=!1,setTimeout(s,20);i=t}return l}(this.refresh.bind(this),0)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,r=e.indexOf(t);~r&&e.splice(r,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,r=void 0===e?"":e;s.some(function(t){return!!~r.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=ne
1w t),this.instance_},t.instance_=null,t}(),c=function(t,e){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},h=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||o},d=m(0,0,0,0);function p(t){return parseFloat(t)||0}function f(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce(function(e,r){return e+p(t["border-"+r+"-width"])},0)}var g="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof h(t).SVGGraphicsElement}:function(t){return t instanceof h(t).SVGElement&&"function"==typeof t.getBBox};function m(t,e,r,n){return{x:t,y:e,width:r,height:n}}var y=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=function(t){if(!i)return d;if(g(t)){var e;return m(0,0,(e=t.getBBox()).width,e.height)}return function(t){var e,r=t.clientWidth,n=t.clientHeight;if(!r&&!n)return d;var i=h(t).getComputedStyle(t),o=function(t){for(var e={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var i=n[r],o=t["padding-"+i];e[i]=p(o)}return e}(i),a=o.left+o.right,s=o.top+o.bottom,l=p(i.width),u=p(i.height);if("border-box"===i.boxSizing&&(Math.round(l+a)!==r&&(l-=f(i,"left","right")+a),Math.round(u+s)!==n&&(u-=f(i,"top","bottom")+s)),(e=t)!==h(e).document.documentElement){var c=Math.round(l+a)-r,g=Math.round(u+s)-n;1!==Math.abs(c)&&(l-=c),1!==Math.abs(g)&&(u-=g)}return m(o.left,o.top,l,u)}(t)}(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),v=function(t,e){var r,n,i,o,a,s=(r=e.x,n=e.y,i=e.width,o=e.height,c(a=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:r,y:n,width:i,height:o,top:n,right:r+i,bottom:o+n,left:r}),a);c(this,{target:t,contentRect:s})},b=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new y(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new v(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),w="undefined"!=typeof WeakMap?new WeakMap:new n,x=function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var r=new b(e,u.getInstance(),this);w.set(this,r)};["observe","unobserve","disconnect"].forEach(function(t){x.prototype[t]=function(){var e;return(e=w.get(this))[t].apply(e,arguments)}});let S=void 0!==o.ResizeObserver?o.ResizeObserver:x},42622:(t,e,r)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=h(r(10374)),i=c(r(39494)),o=c(r(10867)),a=r(16685),s=r(10864),l=r(96486),u=c(r(91378));function c(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(h=function(t,e){if(!e&&t&&t.__esModule)return t;var i,o,a={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return a;if(i=e?n:r){if(i.has(t))return i.get(t);i.set(t,a)}for(let e in t)"default"!==e&&({}).hasOwnProperty.call(t,e)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,e))&&(o.get||o.set)?i(a,e,o):a[e]=t[e]);return a})(t,e)}function d(t,e,r){var n;return(e="symbol"==typeof(n=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}let p={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},f=p.mouse;class g extends n.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;let e=this.findDOMNode();if(!e||!e.ownerDocument||!e.ownerDocument.body)throw Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:r}=e;if(this.props.disabled||!(t.target instanceof r.defaultView.Node)||this.props.handle&&!(0,a.matchesSelectorAndParentsTo)(t.target,this.props.handle,e)||this.props.cancel&&(0,a.matchesSelectorAndParentsTo)(t.target,this.props.cancel,e))return;"touchstart"!==t.type||this.props.allowMobileScroll||t.preventDefault();let n=(0,a.getTouchIdentifier)(t);this.touchIdentifier=n;let i=(0,s.getControlPosition)(t,n,this);if(null==i)return;let{x:o,y:l}=i,c=(0,s.createCoreData)(this,o,l);(0,u.default)("DraggableCore: handleDragStart: %j",c),(0,u.default)("calling",this.props.onStart),!1!==this.props.onStart(t,c)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=l,(0,a.addEvent)(r,f.move,this.handleDrag),(0,a.addEvent)(r,f.stop,this.handleDragStop))}),d(this,"handleDrag",t=>{let e=(0,s.getControlPosition)(t,this.touchIdentifier,this);if(null==e)return;let{x:r,y:n}=e;if(Array.isArray(this.props.grid)){let t=r-this.lastX,e=n-this.lastY;if([t,e]=(0,s.snapToGrid)(this.props.grid,t,e),!t&&!e)return;r=this.lastX+t,n=this.lastY+e}let i=(0,s.createCoreData)(this,r,n);if((0,u.default)("DraggableCore: handleDrag: %j",i),!1===this.props.onDrag(t,i)||!1===this.mounted){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){let t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}return}this.lastX=r,this.lastY=n}),d(this,"handleDragStop",t=>{if(!this.dragging)return;let e=(0,s.getControlPosition)(t,this.touchIdentifier,this);if(null==e)return;let{x:r,y:n}=e;if(Array.isArray(this.props.grid)){let t=r-this.lastX||0,e=n-this.lastY||0;[t,e]=(0,s.snapToGrid)(this.props.grid,t,e),r=this.lastX+t,n=this.lastY+e}let i=(0,s.createCoreData)(this,r,n);if(!1===this.props.onStop(t,i)||!1===this.mounted)return!1;let o=this.findDOMNode();o&&this.props.enableUserSelectHack&&(0,a.scheduleRemoveUserSelectStyles)(o.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,o&&((0,u.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(o.ownerDocument,f.move,this.handleDrag),(0,a.removeEvent)(o.ownerDocument,f.stop,this.handleDragStop))}),d(this,"onMouseDown",t=>(f=p.mouse,this.handleDragStart(t))),d(this,"onMouseUp",t=>(f=p.mouse,this.handleDragStop(t))),d(this,"onTouchStart",t=>(f=p.touch,this.handleDragStart(t))),d(this,"onTouchEnd",t=>(f=p.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;let t=this.findDOMNode();t&&(0,a.addEvent)(t,p.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let t=this.findDOMNode();if(t){let{ownerDocument:e}=t;(0,a.removeEvent)(e,p.mouse.move,this.handleDrag),(0,a.removeEvent)(e,p.touch.move,this.handleDrag),(0,a.removeEvent)(e,p.mouse.stop,this.handleDragStop),(0,a.removeEvent)(e,p.touch.stop,this.handleDragStop),(0,a.removeEvent)(t,p.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.scheduleRemoveUserSelectStyles)(e)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:o.default.findDOMNode(this)}render(){return n.cloneElement(n.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}e.default=g,d(g,"displayName","DraggableCore"),d(g,"propTypes",{allowAnyClick:i.default.bool,allowMobileScroll:i.default.bool,children:i.default.node.isRequired,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:function(t,e){if(t[e]&&1!==t[e].nodeType)throw Error("Draggable's offsetParent must be a DOM Node.")},grid:i.default.arrayOf(i.default.number),handle:i.default.string,cancel:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),d(g,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},54590:(t,e,r)=>{"use strict";r.d(e,{JV:()=>O,ag:()=>C});var n,i,o,a=r(10374);!function(t){t.INITIAL="initial",t.PENDING="pending",t.REJECTED="rejected",t.RESOLVED="resolved"}(n||(n={}
1)),function(t){t.LOADING_STATUS="setLoadingStatus",t.RESET_OPTIONS="resetOptions",t.SET_BRAINTREE_INSTANCE="braintreeInstance"}(i||(i={})),function(t){t.NUMBER="number",t.CVV="cvv",t.EXPIRATION_DATE="expirationDate",t.EXPIRATION_MONTH="expirationMonth",t.EXPIRATION_YEAR="expirationYear",t.POSTAL_CODE="postalCode"}(o||(o={}));var s=function(){return(s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function l(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)0>e.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function u(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var c="data-react-paypal-script-id",h={DATA_CLIENT_TOKEN:"dataClientToken",DATA_JS_SDK_LIBRARY:"dataJsSdkLibrary",DATA_LIBRARY_VALUE:"react-paypal-js",DATA_NAMESPACE:"dataNamespace",DATA_SDK_INTEGRATION_SOURCE:"dataSdkIntegrationSource",DATA_USER_ID_TOKEN:"dataUserIdToken"},d="3.117.0",p="paypal";function f(t){return void 0===t&&(t=p),window[t]}function g(t){var e=t.reactComponentName,r=t.sdkComponentKey,n=t.sdkRequestedComponents,i=void 0===n?"":n,o=t.sdkDataNamespace,a=r.charAt(0).toUpperCase().concat(r.substring(1)),s="Unable to render <".concat(e," /> because window.").concat(void 0===o?p:o,".").concat(a," is undefined."),l="string"==typeof i?i:i.join(",");if(!l.includes(r)){var u=[l,r].filter(Boolean).join();s+="\nTo fix the issue, add '".concat(r,"' to the list of components passed to the parent PayPalScriptProvider:")+"\n`<PayPalScriptProvider options={{ components: '".concat(u,"'}}>`.")}return s}function m(t){t[c];var e=l(t,[c+""]);return"react-paypal-js-".concat(function(t){for(var e="",r=0;r<t.length;r++){var n=t[r].charCodeAt(0)*r;t[r+1]&&(n+=t[r+1].charCodeAt(0)*(r-1)),e+=String.fromCharCode(97+Math.abs(n)%26)}return e}(JSON.stringify(e)))}function y(t,e){var r,o,a,l;switch(e.type){case i.LOADING_STATUS:if("object"==typeof e.value)return s(s({},t),{loadingStatus:e.value.state,loadingStatusErrorMessage:e.value.message});return s(s({},t),{loadingStatus:e.value});case i.RESET_OPTIONS:return a=t.options[c],(null==(l=self.document.querySelector("script[".concat(c,'="').concat(a,'"]')))?void 0:l.parentNode)&&l.parentNode.removeChild(l),s(s({},t),{loadingStatus:n.PENDING,options:s(s(((r={})[h.DATA_SDK_INTEGRATION_SOURCE]=h.DATA_LIBRARY_VALUE,r),e.value),((o={})[c]="".concat(m(e.value)),o))});case i.SET_BRAINTREE_INSTANCE:return s(s({},t),{braintreePayPalCheckoutInstance:e.value});default:return t}}var v=(0,a.createContext)(null);function b(t){if("function"==typeof(null==t?void 0:t.dispatch)&&0!==t.dispatch.length)return t;throw Error("usePayPalScriptReducer must be used within a PayPalScriptProvider")}var w=function(t){var e,r;if(!(null===(e=null==t?void 0:t.options)||void 0===e?void 0:e[h.DATA_CLIENT_TOKEN])&&!(null===(r=null==t?void 0:t.options)||void 0===r?void 0:r[h.DATA_USER_ID_TOKEN]))throw Error("Invalid authorization data. Use dataClientToken or dataUserIdToken to authorize.");return t};function x(){var t=b((0,a.useContext)(v));return[s(s({},t),{isInitial:t.loadingStatus===n.INITIAL,isPending:t.loadingStatus===n.PENDING,isResolved:t.loadingStatus===n.RESOLVED,isRejected:t.loadingStatus===n.REJECTED}),t.dispatch]}function S(t){var e=(0,a.useRef)(new Proxy({},{get:function(t,e,r){return"function"==typeof t[e]?function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t[e].apply(t,r)}:Reflect.get(t,e,r)}}));return e.current=Object.assign(e.current,t),e.current}(0,a.createContext)({});var O=function(t){var e,r=t.className,n=t.disabled,i=void 0!==n&&n,o=t.children,c=t.forceReRender,d=l(t,["className","disabled","children","forceReRender"]),p="".concat(void 0===r?"":r," ").concat(i?"paypal-buttons-disabled":"").trim(),m=(0,a.useRef)(null),y=(0,a.useRef)(null),v=S(d),b=x()[0],w=b.isResolved,D=b.options,E=(0,a.useState)(null),_=E[0],R=E[1],C=(0,a.useState)(!0),M=C[0],P=C[1],T=(0,a.useState)(null)[1];function j(){null!==y.current&&y.current.close().catch(function(){})}return(null===(e=y.current)||void 0===e?void 0:e.updateProps)&&y.current.updateProps({message:d.message}),(0,a.useEffect)(function(){if(!1===w)return j;var t=f(D.dataNamespace);if(void 0===t||void 0===t.Buttons)return T(function(){throw Error(g({reactComponentName:O.displayName,sdkComponentKey:"buttons",sdkRequestedComponents:D.components,sdkDataNamespace:D[h.DATA_NAMESPACE]}))}),j;try{y.current=t.Buttons(s(s({},v),{onInit:function(t,e){R(e),"function"==typeof d.onInit&&d.onInit(t,e)}}))}catch(t){return T(function(){throw Error("Failed to render <PayPalButtons /> component. Failed to initialize: ".concat(t))})}return!1===y.current.isEligible()?P(!1):m.current&&y.current.render(m.current).catch(function(t){null!==m.current&&0!==m.current.children.length&&T(function(){throw Error("Failed to render <PayPalButtons /> component. ".concat(t))})}),j},u(u([w],void 0===c?[]:c,!0),[d.fundingSource],!1)),(0,a.useEffect)(function(){null!==_&&(!0===i?_.disable().catch(function(){}):_.enable().catch(function(){}))},[i,_]),a.createElement(a.Fragment,null,M?a.createElement("div",{ref:m,style:i?{opacity:.38}:{},className:p}):o)};function D(t,e){void 0===e&&(e={});var r=document.createElement("script");return r.src=t,Object.keys(e).forEach(function(t){r.setAttribute(t,e[t]),"data-csp-nonce"===t&&r.setAttribute("nonce",e["data-csp-nonce"])}),r}O.displayName="PayPalButtons","function"==typeof SuppressedError&&SuppressedError;function E(t,e){if("object"!=typeof t||null===t)throw Error("Expected an options object.");var r=t.environment;if(r&&"production"!==r&&"sandbox"!==r)throw Error('The `environment` option must be either "production" or "sandbox".');if(void 0!==e&&"function"!=typeof e)throw Error("Expected PromisePonyfill to be a function.")}var _=function(t){var e=t.className,r=t.children,n=l(t,["className","children"]),i=x()[0],o=i.isResolved,u=i.options,c=(0,a.useRef)(null),d=(0,a.useState)(!0),p=d[0],m=d[1],y=(0,a.useState)(null)[1],v=function(t){var e=c.current;if(!e||!t.isEligible())return m(!1);
1e.firstChild&&e.removeChild(e.firstChild),t.render(e).catch(function(t){null!==e&&0!==e.children.length&&y(function(){throw Error("Failed to render <PayPalMarks /> component. ".concat(t))})})};return(0,a.useEffect)(function(){if(!1!==o){var t=f(u[h.DATA_NAMESPACE]);if(void 0===t||void 0===t.Marks)return y(function(){throw Error(g({reactComponentName:_.displayName,sdkComponentKey:"marks",sdkRequestedComponents:u.components,sdkDataNamespace:u[h.DATA_NAMESPACE]}))});v(t.Marks(s({},n)))}},[o,n.fundingSource]),a.createElement(a.Fragment,null,p?a.createElement("div",{ref:c,className:void 0===e?"":e}):r)};_.displayName="PayPalMarks";var R=function(t){var e=t.className,r=t.forceReRender,n=l(t,["className","forceReRender"]),i=x()[0],o=i.isResolved,c=i.options,d=(0,a.useRef)(null),p=(0,a.useRef)(null),m=(0,a.useState)(null)[1];return(0,a.useEffect)(function(){if(!1!==o){var t=f(c[h.DATA_NAMESPACE]);if(void 0===t||void 0===t.Messages)return m(function(){throw Error(g({reactComponentName:R.displayName,sdkComponentKey:"messages",sdkRequestedComponents:c.components,sdkDataNamespace:c[h.DATA_NAMESPACE]}))});p.current=t.Messages(s({},n)),p.current.render(d.current).catch(function(t){null!==d.current&&0!==d.current.children.length&&m(function(){throw Error("Failed to render <PayPalMessages /> component. ".concat(t))})})}},u([o],void 0===r?[]:r,!0)),a.createElement("div",{ref:d,className:void 0===e?"":e})};R.displayName="PayPalMessages";var C=function(t){var e,r=t.options,o=void 0===r?{clientId:"test"}:r,l=t.children,u=t.deferLoading,d=void 0!==u&&u,p=(0,a.useReducer)(y,{options:s(s({},o),((e={})[h.DATA_JS_SDK_LIBRARY]=h.DATA_LIBRARY_VALUE,e[h.DATA_SDK_INTEGRATION_SOURCE]=h.DATA_LIBRARY_VALUE,e[c]="".concat(m(o)),e)),loadingStatus:d?n.INITIAL:n.PENDING}),f=p[0],g=p[1];return(0,a.useEffect)(function(){if(!1===d&&f.loadingStatus===n.INITIAL)return g({type:i.LOADING_STATUS,value:n.PENDING});if(f.loadingStatus===n.PENDING){var t=!0;return(function(t,e){if(void 0===e&&(e=Promise),E(t,e),"undefined"==typeof document)return e.resolve(null);var r,n,i,o,a,s,l,u,c,h,d=(o=t.sdkBaseUrl,a=t.environment,s=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)0>e.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}(t,["sdkBaseUrl","environment"]),l=o||("sandbox"===a?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"),c=(u=Object.keys(s).filter(function(t){return void 0!==s[t]&&null!==s[t]&&""!==s[t]}).reduce(function(t,e){var r=s[e].toString();return"data"===(e=e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,function(t,e){return(e?"-":"")+t.toLowerCase()})).substring(0,4)||"crossorigin"===e?t.attributes[e]=r:t.queryParams[e]=r,t},{queryParams:{},attributes:{}})).queryParams,h=u.attributes,c["merchant-id"]&&-1!==c["merchant-id"].indexOf(",")&&(h["data-merchant-id"]=c["merchant-id"],c["merchant-id"]="*"),{url:"".concat(l,"?").concat((n="",Object.keys(r=c).forEac
1h(function(t){0!==n.length&&(n+="&"),n+=t+"="+r[t]}),n)),attributes:h}),p=d.url,f=d.attributes,g=f["data-namespace"]||"paypal",m=(i=g,window[i]);return(f["data-js-sdk-library"]||(f["data-js-sdk-library"]="paypal-js"),function(t,e){var r=document.querySelector('script[src="'.concat(t,'"]'));if(null===r)return null;var n=D(t,e),i=r.cloneNode();if(delete i.dataset.uidAuto,Object.keys(i.dataset).length!==Object.keys(n.dataset).length)return null;var o=!0;return Object.keys(i.dataset).forEach(function(t){i.dataset[t]!==n.dataset[t]&&(o=!1)}),o?r:null}(p,f)&&m)?e.resolve(m):(function(t,e){void 0===e&&(e=Promise),E(t,e);var r=t.url,n=t.attributes;if("string"!=typeof r||0===r.length)throw Error("Invalid url.");if(void 0!==n&&"object"!=typeof n)throw Error("Expected attributes to be an object.");return new e(function(t,e){var i,o,a,s,l,u;if("undefined"==typeof document)return t();o=(i={url:r,attributes:n,onSuccess:function(){return t()},onError:function(){return e(Error('The script "'.concat(r,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.')))}}).url,a=i.attributes,s=i.onSuccess,l=i.onError,(u=D(o,a)).onerror=l,u.onload=s,document.head.insertBefore(u,document.head.firstElementChild)})})({url:p,attributes:f},e).then(function(){var t,e=(t=g,window[t]);if(e)return e;throw Error("The window.".concat(g," global variable is not available."))})})(f.options).then(function(){t&&g({type:i.LOADING_STATUS,value:n.RESOLVED})}).catch(function(e){console.error("".concat("Failed to load the PayPal JS SDK script."," ").concat(e)),t&&g({type:i.LOADING_STATUS,value:{state:n.REJECTED,message:String(e)}})}),function(){t=!1}}},[f.options,d,f.loadingStatus]),a.createElement(v.Provider,{value:s(s({},f),{dispatch:g})},l)},M=function(t){if(!t.includes(o.NUMBER)||!t.includes(o.CVV)||!t.includes(o.EXPIRATION_DATE)&&!t.includes(o.EXPIRATION_MONTH)&&!t.includes(o.EXPIRATION_YEAR))throw Error("To use HostedFields you must use it with at least 3 children with types: [number, cvv, expirationDate] includes")},P=function(t){if(t.length!==new Set(t).size)throw Error("Cannot use duplicate HostedFields as children")};function T(){}var j=(0,a.createContext)({cardFieldsForm:null,fields:{},registerField:T,unregisterField:T}),z={IDEAL:"ideal",BANCONTACT:"bancontact",GIROPAY:"giropay",SOFORT:"sofort",EPS:"eps",MYBANK:"mybank",P24:"p24",PAYU:"payu",BLIK:"blik",TRUSTLY:"trustly",OXXO:"oxxo",BOLETO:"boleto",BOLETOBANCARIO:"boletobancario",WECHATPAY:"wechatpay",MERCADOPAGO:"mercadopago",MULTIBANCO:"multibanco",SATISPAY:"satispay",PAIDY:"paidy",ZIMPLER:"zimpler",MAXIMA:"maxima"};z.IDEAL,z.BANCONTACT,z.GIROPAY,z.SOFORT,z.EPS,z.MYBANK,z.P24,z.PAYU,z.BLIK,z.TRUSTLY,z.OXXO,z.BOLETO,z.BOLETOBANCARIO,z.WECHATPAY,z.MERCADOPAGO,z.MULTIBANCO,z.SATISPAY,z.PAIDY,z.MAXIMA,z.ZIMPLER},55493:(t,e,r)=>{"use strict";r.d(e,{default:()=>i.a});var n=r(81574),i=r.n(n)},55815:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(e,{bindSnapshot:function(){return a},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return s}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(t){return t}}let i="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return i?new i:new n}function a(t){return i?i.bind(t):n.bind(t)}function s(){return i?i.snapshot():function(t,...e){return t(...e)}}},56009:(t,e,r)=>{"use strict";e.__esModule=!0,e.default=void 0;var n=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=l(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;
1a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}(r(10374)),i=r(75416),o=r(29821),a=r(70014),s=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(l=function(t){return t?r:e})(t)}function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var p=function(t){function e(){for(var e,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,d(e,t);var r=e.prototype;return r.componentWillUnmount=function(){this.resetData()},r.resetData=function(){this.lastHandleRect=this.slack=null},r.runConstraints=function(t,e){var r=this.props,n=r.minConstraints,i=r.maxConstraints,o=r.lockAspectRatio;if(!n&&!i&&!o)return[t,e];if(o){var a=this.props.width/this.props.height;Math.abs(t-this.props.width)>Math.abs((e-this.props.height)*a)?e=t/a:t=e*a}var s=t,l=e,u=this.slack||[0,0],c=u[0],h=u[1];return t+=c,e+=h,n&&(t=Math.max(n[0],t),e=Math.max(n[1],e)),i&&(t=Math.min(i[0],t),e=Math.min(i[1],e)),this.slack=[c+(s-t),h+(l-e)],[t,e]},r.resizeHandler=function(t,e){var r=this;return function(n,i){var o=i.node,a=i.deltaX,s=i.deltaY;"onResizeStart"===t&&r.resetData();var l=("both"===r.props.axis||"x"===r.props.axis)&&"n"!==e&&"s"!==e,u=("both"===r.props.axis||"y"===r.props.axis)&&"e"!==e&&"w"!==e;if(l||u){var c=e[0],h=e[e.length-1],d=o.getBoundingClientRect();null!=r.lastHandleRect&&("w"===h&&(a+=d.left-r.lastHandleRect.left),"n"===c&&(s+=d.top-r.lastHandleRect.top)),r.lastHandleRect=d,"w"===h&&(a=-a),"n"===c&&(s=-s);var p=r.props.width+(l?a/r.props.transformScale:0),f=r.props.height+(u?s/r.props.transformScale:0),g=r.runConstraints(p,f);p=g[0],f=g[1];var m=p!==r.props.width||f!==r.props.height,y="function"==typeof r.props[t]?r.props[t]:null;y&&!("onResize"===t&&!m)&&(null==n.persist||n.persist(),y(n,{node:o,size:{width:p,height:f},handle:e})),"onResizeStop"===t&&r.resetData()}}},r.renderResizeHandle=function(t,e){var r=this.props.handle;if(!r)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:e});if("function"==typeof r)return r(t,e);var i=h({ref:e},"string"==typeof r.type?{}:{handleAxis:t});return n.cloneElement(r,i)},r.render=function(){var t=this,e=this.props,r=e.children,a=e.className,l=e.draggableOpts,c=(e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart,e.resizeHandles),d=(e.transformScale,function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(e,s));return(0,o.cloneElement)(r,h(h({},d),{},{className:(a?a+" ":"")+"react-resizable",children:[].concat(r.props.children,c.map(function(e){var r,o=null!=(r=t.handleRefs[e])?r:t.handleRefs[e]=n.createRef();return n.createElement(i.DraggableCore,u({},l,{nodeRef:o,key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e,o))}))}))},e}(n.Component);e.default=p,p.propTypes=a.resizableProps,p.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}},56845:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(10374),i=r(41286),o=r.n(i),a=function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)0>e.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}var l=["aspectRatio","autoCrop","autoCropArea","background","center","checkCrossOrigin","checkOrientation","cropBoxMovable","cropBoxResizable","data","dragMode","guides","highlight","initialAspectRatio","minCanvasHeight","minCanvasWidth","minContainerHeight","minContainerWidth","minCropBoxHeight","minCropBoxWidth","modal","movable","preview","responsive","restore","rotatable","scalable","toggleDragModeOnDblclick","viewMode","wheelZoomRatio","zoomOnTouch","zoomOnWheel","zoomable","cropstart","cropmove","cropend","crop","zoom","ready"],u={o
1pacity:0,maxWidth:"100%"},c=n.forwardRef(function(t,e){var r,i=s(t,[]),c=i.dragMode,h=void 0===c?"crop":c,d=i.src,p=i.style,f=i.className,g=i.crossOrigin,m=i.scaleX,y=i.scaleY,v=i.enable,b=i.zoomTo,w=i.rotateTo,x=i.alt,S=i.ready,O=i.onInitialized,D=s(i,["dragMode","src","style","className","crossOrigin","scaleX","scaleY","enable","zoomTo","rotateTo","alt","ready","onInitialized"]),E={scaleY:y,scaleX:m,enable:v,zoomTo:b,rotateTo:w},_=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(0,n.useRef)(null);return n.useEffect(function(){t.forEach(function(t){t&&("function"==typeof t?t(r.current):t.current=r.current)})},[t]),r}(e,(0,n.useRef)(null));(0,n.useEffect)(function(){var t;(null===(t=_.current)||void 0===t?void 0:t.cropper)&&"number"==typeof b&&_.current.cropper.zoomTo(b)},[i.zoomTo]),(0,n.useEffect)(function(){var t;(null===(t=_.current)||void 0===t?void 0:t.cropper)&&void 0!==d&&_.current.cropper.reset().clear().replace(d)},[d]),(0,n.useEffect)(function(){if(null!==_.current){var t=new(o())(_.current,a(a({dragMode:h},D),{ready:function(t){var e,r,n,i,o,a,s,l;null!==t.currentTarget&&(e=t.currentTarget.cropper,void 0===(r=E)&&(r={}),n=r.enable,i=r.scaleX,o=r.scaleY,s=void 0===(a=r.zoomTo)?0:a,l=r.rotateTo,void 0===n||n?e.enable():e.disable(),e.scaleX(void 0===i?1:i),e.scaleY(void 0===o?1:o),void 0!==l&&e.rotateTo(l),s>0&&e.zoomTo(s)),S&&S(t)}}));O&&O(t)}return function(){var t,e;null===(e=null===(t=_.current)||void 0===t?void 0:t.cropper)||void 0===e||e.destroy()}},[_]);var R=(r=a(a({},D),{crossOrigin:g,src:d,alt:void 0===x?"picture":x}),l.reduce(function(t,e){return t[e],s(t,["symbol"==typeof e?e:e+""])},r));return n.createElement("div",{style:p,className:f},n.createElement("img",a({},R,{style:u,ref:_})))})},57845:(t,e,r)=>{"use strict";function n(t){let{reason:e,children:r}=t;return r}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BailoutToCSR",{enumerable:!0,get:function(){return n}}),r(17257)},63521:(t,e,r)=>{"use strict";r.d(e,{A:()=>n}),r(55866);let n=r(34451).YY.create({name:"color",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;return null===(e=t.style.color)||void 0===e?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands:()=>({setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()})})},63999:(t,e,r)=>{"use strict";var n=r(88696);r(1060);var i=r(10374),o=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(i),a=void 0!==n&&n.env&&!0,s=function(t){return"[object String]"===Object.prototype.toString.call(t)},l=function(){function t(t){var e=void 0===t?{}:t,r=e.name,n=void 0===r?"stylesheet":r,i=e.optimizeForSpeed,o=void 0===i?a:i;u(s(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var e=t.prototype;return e.setOptimizeForSpeed=function(t){u("boolean"==typeof t,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=t,this.inject()},e.isOptimizeForSpeed=function(){return this._optimizeForSpeed},e.inject=function(){var t=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(e,r){return"number"==typeof r?t._serverSheet.cssRules[r]={cssText:e}:t._serverSheet.cssRules.push({cssText:e}),r},deleteRule:function(e){t._serverSheet.cssRules[e]=null}}},e.getSheetForTag=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}
1,e.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},e.insertRule=function(t,e){if(u(s(t),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof e&&(e=this._serverSheet.cssRules.length),this._serverSheet.insertRule(t,e),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof e&&(e=r.cssRules.length);try{r.insertRule(t,e)}catch(e){return a||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[e];this._tags.push(this.makeStyleTag(this._name,t,n))}return this._rulesCount++},e.replaceRule=function(t,e){if(this._optimizeForSpeed||"undefined"==typeof window){var r="undefined"!=typeof window?this.getSheet():this._serverSheet;if(e.trim()||(e=this._deletedRulePlaceholder),!r.cssRules[t])return t;r.deleteRule(t);try{r.insertRule(e,t)}catch(n){a||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,t)}}else{var n=this._tags[t];u(n,"old rule at index `"+t+"` not found"),n.textContent=e}return t},e.deleteRule=function(t){if("undefined"==typeof window){this._serverSheet.deleteRule(t);return}if(this._optimizeForSpeed)this.replaceRule(t,"");else{var e=this._tags[t];u(e,"rule at index `"+t+"` not found"),e.parentNode.removeChild(e),this._tags[t]=null}},e.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(t){return t&&t.parentNode.removeChild(t)}),this._tags=[]):this._serverSheet.cssRules=[]},e.cssRules=function(){var t=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(e,r){return r?e=e.concat(Array.prototype.map.call(t.getSheetForTag(r).cssRules,function(e){return e.cssText===t._deletedRulePlaceholder?null:e})):e.push(null),e},[])},e.makeStyleTag=function(t,e,r){e&&u(s(e),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+t,""),e&&n.appendChild(document.createTextNode(e));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,[{key:"length",get:function(){return this._rulesCount}}]),t}();function u(t,e){if(!t)throw Error("StyleSheet: "+e+".")}var c=function(t){for(var e=5381,r=t.length;r;)e=33*e^t.charCodeAt(--r);return e>>>0},h={};function d(t,e){if(!e)return"jsx-"+t;var r=String(e),n=t+r;return h[n]||(h[n]="jsx-"+c(t+"-"+r)),h[n]}function p(t,e){"undefined"==typeof window&&(e=e.replace(/\/style/gi,"\\/style"));var r=t+e;return h[r]||(h[r]=e.replace(/__jsx-style-dynamic-selector/g,t)),h[r]}var f=function(){function t(t){var e=void 0===t?{}:t,r=e.styleSheet,n=void 0===r?null:r,i=e.optimizeForSpeed,o=void 0!==i&&i;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),n&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var e=t.prototype;return e.add=function(t){var e=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(t.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(t,e){return t[e]=0,t},{}));var r=this.getIdAndRules(t),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var o=i.map(function(t){return e._sheet.insertRule(t)}).filter(function(t){return -1!==t});this._indices[n]=o,this._instancesCounts[n]=1},e.remove=function(t){var e=this,r=this.getIdAndRules(t).styleId;if(function(t,e){if(!t)throw Error("StyleSheetRegistry: "+e+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(t){return e._sheet.deleteRule(t)}),delete this._indices[r]),delete this._instancesCounts[r]}},e.update=function(t,e){this.add(e),this.remove(t)},e.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},e.cssRules=function(){var t=this,e=this._fromServer?Object.keys(this._fromServer).map(function(e){return[e,t._fromServer[e]]}):[],r=this._sheet.cssRules();return e.concat(Object.keys(this._indices).map(function(e){return[e,t._indices[e].map(function(t){return r[t].cssText}).join(t._optimizeForSpeed?"":"\n")]}).filter(function(t){return!!t[1]}))},e.styles=function(t){var e,r;return e=this.cssRules(),void 0===(r=t)&&(r={}),e.map(function(t){var e=t[0],n=t[1];return o.default.createElement("style",{id:"__"+e,key:"__"+e,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},e.getIdAndRules=function(t){var e=t.children,r=t.dynamic,n=t.id;if(r){var i=d(n,r);return{styleId:i,rules:Array.isArray(e)?e.map(function(t){return p(i,t)}):[p(i,e)]}}return{styleId:d(n),rules:Array.isArray(e)?e:[e]}},e.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(t,e){return t[e.id.slice(2)]=e,t},{})},t}(),g=i.createContext(null);g.displayName="StyleSheetContext";var m=o.default.useInsertionEffect||o.default.useLayoutEffect,y="undefined"!=typeof window?new f:void 0;function v(t){var e=y||i.useContext(g);return e&&("undefined"==typeof window?e.add(t):m(function(){return e.add(t),function(){e.remove(t)}},[t.id,String(t.dynamic)])),null}v.dynamic=function(t){return t.map(function(t){return d(t[0],t[1])}).join(" ")},e.style=v},65591:(t,e,r)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.findOrGenerateResponsiveLayout=function(t,e,r,o,a,s){if(t[r])return(0,n.cloneLayout)(t[r]);let l=t[o],u=i(e),c=u.slice(u.indexOf(r));for(let e=0,r=c.length;e<r;e++){let r=c[e];if(t[r]){l=t[r];break}}return l=(0,n.cloneLayout)(l||[]),(0,n.compact)((0,n.correctBounds)(l,{cols:a}),s,a)},e.getBreakpointFromWidth=function(t,e){let r=i(t),n=r[0];for(let i=1,o=r.length;i<o;i++){let o=r[i];e>t[o]&&(n=o)}return n},e.getColsFromBreakpoint=function(t,e){if(!e[t])throw Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]},e.sortBreakpoints=i;var n=r(21285);function i(t){return Object.keys(t).sort(function(e,r){return t[e]-t[r]})}},67378:(t,e,r)=>{"use strict";e.default=function(t){var e;return e=class extends n.Component{constructor(){super(...arguments),c(this,"state",{width:1280}),c(this,"elementRef",n.createRef()),c(this,"mounted",!1),c(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new o.default(t=>{if(this.elementRef.current instanceof HTMLElement){let e=t[0].contentRect.width;this.setState({width:e})}});let t=this.elementRef.current;t instanceof HTMLElement&&this.resizeObserver.observe(t)}componentWillUnmount(){this.mounted=!1;let t=this.elementRef.current;t instanceof HTMLElement&&this.resizeObserver.unobserve(t),this.resizeObserver.disconnect()}render(){let{measureBeforeMount:e,...r}=this.props;return e&&!this.mounted?n.createElement("div",{className:(0,a.default)(this.props.className,"react-grid-layout"),style:this.props.style,ref:this.elementRef}):n.createElement(t,u({innerRef:this.elementRef},r,this.state))}},c(e,"defaultProps",{measureBeforeMount:!1}),c(e,"propTypes",{measureBeforeMount:i.default.bool}),e};var n=l(r(10374)),i=s(r(39494)),o=s(r(41485)),a=s(r(68146));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var i,o,a={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return a;
1if(i=e?n:r){if(i.has(t))return i.get(t);i.set(t,a)}for(let e in t)"default"!==e&&({}).hasOwnProperty.call(t,e)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,e))&&(o.get||o.set)?i(a,e,o):a[e]=t[e]);return a})(t,e)}function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(null,arguments)}function c(t,e,r){var n;return(e="symbol"==typeof(n=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},68146:t=>{function e(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=function t(e){var r,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(n=t(e[r]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}(t))&&(n&&(n+=" "),n+=e);return n}t.exports=e,t.exports.clsx=e},69052:()=>{},69714:(t,e,r)=>{"use strict";var n=r(26669);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i}
1;return r.PropTypes=r,r}},70014:(t,e,r)=>{"use strict";e.__esModule=!0,e.resizableProps=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(r(39494));r(75416),e.resizableProps={axis:n.default.oneOf(["both","x","y","none"]),className:n.default.string,children:n.default.element.isRequired,draggableOpts:n.default.shape({allowAnyClick:n.default.bool,cancel:n.default.string,children:n.default.node,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:n.default.node,grid:n.default.arrayOf(n.default.number),handle:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number}),height:function(){for(var t,e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=r[0];return"both"===o.axis||"y"===o.axis?(t=n.default.number).isRequired.apply(t,r):n.default.number.apply(n.default,r)},handle:n.default.oneOfType([n.default.node,n.default.func]),handleSize:n.default.arrayOf(n.default.number),lockAspectRatio:n.default.bool,maxConstraints:n.default.arrayOf(n.default.number),minConstraints:n.default.arrayOf(n.default.number),onResizeStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,resizeHandles:n.default.arrayOf(n.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:n.default.number,width:function(){for(var t,e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=r[0];return"both"===o.axis||"x"===o.axis?(t=n.default.number).isRequired.apply(t,r):n.default.number.apply(n.default,r)}}},75416:(t,e,r)=>{"use strict";let{default:n,DraggableCore:i}=r(25137);t.exports=n,t.exports.default=n,t.exports.DraggableCore=i},76161:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=h(r(10374)),i=r(10021),o=c(r(68146)),a=r(21285),s=r(37181),l=c(r(21635)),u=c(r(33213));function c(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(h=function(t,e){if(!e&&t&&t.__esModule)return t;var i,o,a={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return a;
1if(i=e?n:r){if(i.has(t))return i.get(t);i.set(t,a)}for(let e in t)"default"!==e&&({}).hasOwnProperty.call(t,e)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,e))&&(o.get||o.set)?i(a,e,o):a[e]=t[e]);return a})(t,e)}function d(t,e,r){var n;return(e="symbol"==typeof(n=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}let p="react-grid-layout",f=!1;try{f=/firefox/i.test(navigator.userAgent)}catch(t){}class g extends n.Component{constructor(){super(...arguments),d(this,"state",{activeDrag:null,layout:(0,a.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,a.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),d(this,"dragEnterCounter",0),d(this,"onDragStart",(t,e,r,n)=>{let{e:i,node:o}=n,{layout:s}=this.state,l=(0,a.getLayoutItem)(s,t);if(!l)return;let u={w:l.w,h:l.h,x:l.x,y:l.y,placeholder:!0,i:t};return this.setState({oldDragItem:(0,a.cloneLayoutItem)(l),oldLayout:s,activeDrag:u}),this.props.onDragStart(s,l,l,null,i,o)}),d(this,"onDrag",(t,e,r,n)=>{let{e:i,node:o}=n,{oldDragItem:s}=this.state,{layout:l}=this.state,{cols:u,allowOverlap:c,preventCollision:h}=this.props,d=(0,a.getLayoutItem)(l,t);if(!d)return;let p={w:d.w,h:d.h,x:d.x,y:d.y,placeholder:!0,i:t};l=(0,a.moveElement)(l,d,e,r,!0,h,(0,a.compactType)(this.props),u,c),this.props.onDrag(l,s,d,p,i,o),this.setState({layout:c?l:(0,a.compact)(l,(0,a.compactType)(this.props),u),activeDrag:p})}),d(this,"onDragStop",(t,e,r,n)=>{let{e:i,node:o}=n;if(!this.state.activeDrag)return;let{oldDragItem:s}=this.state,{layout:l}=this.state,{cols:u,preventCollision:c,allowOverlap:h}=this.props,d=(0,a.getLayoutItem)(l,t);if(!d)return;l=(0,a.moveElement)(l,d,e,r,!0,c,(0,a.compactType)(this.props),u,h);let p=h?l:(0,a.compact)(l,(0,a.compactType)(this.props),u);this.props.onDragStop(p,s,d,null,i,o);let{oldLayout:f}=this.state;this.setState({activeDrag:null,layout:p,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(p,f)}),d(this,"onResizeStart",(t,e,r,n)=>{let{e:i,node:o}=n,{layout:s}=this.state,l=(0,a.getLayoutItem)(s,t);l&&(this.setState({oldResizeItem:(0,a.cloneLayoutItem)(l),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(s,l,l,null,i,o))}),d(this,"onResize",(t,e,r,n)=>{let i,o,s,{e:l,node:u,size:c,handle:h}=n,{oldResizeItem:d}=this.state,{layout:p}=this.state,{cols:f,preventCollision:g,allowOverlap:m}=this.props,y=!1,[v,b]=(0,a.withLayoutItem)(p,t,t=>(o=t.x,s=t.y,-1!==["sw","w","nw","n","ne"].indexOf(h)&&(-1!==["sw","nw","w"].indexOf(h)&&(o=t.x+(t.w-e),e=t.x!==o&&o<0?t.w:e,o=o<0?0:o),-1!==["ne","n","nw"].indexOf(h)&&(s=t.y+(t.h-r),r=t.y!==s&&s<0?t.h:r,s=s<0?0:s),y=!0),g&&!m&&(0,a.getAllCollisions)(p,{...t,w:e,h:r,x:o,y:s}).filter(e=>e.i!==t.i).length>0&&(s=t.y,r=t.h,o=t.x,e=t.w,y=!1),t.w=e,t.h=r,t));if(!b)return;i=v,y&&(i=(0,a.moveElement)(v,b,o,s,!0,this.props.preventCollision,(0,a.compactType)(this.props),f,m));let w={w:b.w,h:b.h,x:b.x,y:b.y,static:!0,i:t};this.props.onResize(i,d,b,w,l,u),this.setState({layout:m?i:(0,a.compact)(i,(0,a.compactType)(this.props),f),activeDrag:w})}),d(this,"onResizeStop",(t,e,r,n)=>{let{e:i,node:o}=n,{layout:s,oldResizeItem:l}=this.state,{cols:u,allowOverlap:c}=this.props,h=(0,a.getLayoutItem)(s,t),d=c?s:(0,a.compact)(s,(0,a.compactType)(this.props),u);this.props.onResizeStop(d,l,h,null,i,o);let{oldLayout:p}=this.state;this.setState({activeDrag:null,layout:d,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(d,p)}),d(this,"onDragOver",t=>{if(t.preventDefault(),t.stopPropagation(),f&&!t.nativeEvent.target?.classList.contains(p))return!1;let{droppingItem:e,onDropDragOver:r,margin:i,cols:o,rowHeight:a,maxRows:l,width:u,containerPadding:c,transformScale:h}=this.props,d=r?.(t);if(!1===d)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;let g={...e,...d},{layout:m}=this.state,y=t.currentTarget.getBoundingClientRect(),v=t.clientX-y.left,b=t.clientY-y.top,w={left:v/h,top:b/h,e:t};if(this.state.droppingDOMNode){if(this.state.droppingPosition){let{left:t,top:e}=this.state.droppingPosition;(t!=v||e!=b)&&this.setState({droppingPosition:w})}}else{let t=(0,s.calcXY)({cols:o,margin:i,maxRows:l,rowHeight:a,containerWidth:u,containerPadding:c||i},b,v,g.w,g.h);this.setState({droppingDOMNode:n.createElement("div",{key:g.i}),droppingPosition:w,layout:[...m,{...g,x:t.x,y:t.y,static:!1,isDraggable:!0}]})}}),d(this,"removeDroppingPlaceholder",()=>{let{droppingItem:t,cols:e}=this.props,{layout:r}=this.state,n=(0,a.compact)(r.filter(e=>e.i!==t.i),(0,a.compactType)(this.props),e,this.props.allowOverlap);this.setState({layout:n,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),d(this,"onDragLeave",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter--,0===this.dragEnterCounter&&this.removeDroppingPlaceholder()}),d(this,"onDragEnter",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter++}),d(this,"onDrop",t=>{t.preventDefault(),t.stopPropagation();let{droppingItem:e}=this.props,{layout:r}=this.state,n=r.find(t=>t.i===e.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(r,n,t)}
1)}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(t,e){let r;return e.activeDrag?null:((0,i.deepEqual)(t.layout,e.propsLayout)&&t.compactType===e.compactType?(0,a.childrenEqual)(t.children,e.children)||(r=e.layout):r=t.layout,r)?{layout:(0,a.synchronizeLayoutWithChildren)(r,t.children,t.cols,(0,a.compactType)(t),t.allowOverlap),compactType:t.compactType,children:t.children,propsLayout:t.layout}:null}shouldComponentUpdate(t,e){return this.props.children!==t.children||!(0,a.fastRGLPropsEqual)(this.props,t,i.deepEqual)||this.state.activeDrag!==e.activeDrag||this.state.mounted!==e.mounted||this.state.droppingPosition!==e.droppingPosition}componentDidUpdate(t,e){if(!this.state.activeDrag){let t=this.state.layout,r=e.layout;this.onLayoutMaybeChanged(t,r)}}containerHeight(){if(!this.props.autoSize)return;let t=(0,a.bottom)(this.state.layout),e=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return t*this.props.rowHeight+(t-1)*this.props.margin[1]+2*e+"px"}onLayoutMaybeChanged(t,e){e||(e=this.state.layout),(0,i.deepEqual)(e,t)||this.props.onLayoutChange(t)}placeholder(){let{activeDrag:t}=this.state;if(!t)return null;let{width:e,cols:r,margin:i,containerPadding:o,rowHeight:a,maxRows:s,useCSSTransforms:u,transformScale:c}=this.props;return n.createElement(l.default,{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:e,cols:r,margin:i,containerPadding:o||i,maxRows:s,rowHeight:a,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:u,transformScale:c},n.createElement("div",null))}processGridItem(t,e){if(!t||!t.key)return;let r=(0,a.getLayoutItem)(this.state.layout,String(t.key));if(!r)return null;let{width:i,cols:o,margin:s,containerPadding:u,rowHeight:c,maxRows:h,isDraggable:d,isResizable:p,isBounded:f,useCSSTransforms:g,transformScale:m,draggableCancel:y,draggableHandle:v,resizeHandles:b,resizeHandle:w}=this.props,{mounted:x,droppingPosition:S}=this.state,O="boolean"==typeof r.isDraggable?r.isDraggable:!r.static&&d,D="boolean"==typeof r.isResizable?r.isResizable:!r.static&&p,E=r.resizeHandles||b,_=O&&f&&!1!==r.isBounded;return n.createElement(l.default,{containerWidth:i,cols:o,margin:s,containerPadding:u||s,maxRows:h,rowHeight:c,cancel:y,handle:v,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:O,isResizable:D,isBounded:_,useCSSTransforms:g&&x,usePercentages:!x,transformScale:m,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:e?S:void 0,resizeHandles:E,resizeHandle:w},t)}render(){let{className:t,style:e,isDroppable:r,innerRef:i}=this.props,s=(0,o.default)(p,t),l={height:this.containerHeight(),...e};return n.createElement("div",{ref:i,className:s,style:l,onDrop:r?this.onDrop:a.noop,onDragLeave:r?this.onDragLeave:a.noop,onDragEnter:r?this.onDragEnter:a.noop,onDragOver:r?this.onDragOver:a.noop},n.Children.map(this.props.children,t=>this.processGridItem(t)),r&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}e.default=g,d(g,"displayName","ReactGridLayout"),d(g,"propTypes",u.default),d(g,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:a.noop,onDragStart:a.noop,onDrag:a.noop,onDragStop:a.noop,onResizeStart:a.noop,onResize:a.noop,onResizeStop:a.noop,onDrop:a.noop,onDropDragOver:a.noop})},81574:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});let n=r(51810)._(r(10910));function i(t,e){var r;let i={};"function"==typeof t&&(i.loader=t);let o={...i,...e};return(0,n.default)({...o,modules:null==(r=o.loadableGenerated)?void 0:r.modules})}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
1dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},89172:(t,e,r)=>{"use strict";t.exports=r(63999).style},91378:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},92751:(t,e,r)=>{"use strict";r.d(e,{C1:()=>S,bL:()=>w});var n=r(10374),i=r(93945),o=r(62871),a=r(5846),s=r(62750),l=r(5578),u=r(47201),c=r(50197),h=r(61254),d="Checkbox",[p,f]=(0,o.A)(d),[g,m]=p(d);function y(t){let{__scopeCheckbox:e,checked:r,children:i,defaultChecked:o,disabled:a,form:l,name:u,onCheckedChange:c,required:p,value:f="on",internal_do_not_use_render:m}=t,[y,v]=(0,s.i)({prop:r,defaultProp:null!=o&&o,onChange:c,caller:d}),[b,w]=n.useState(null),[x,S]=n.useState(null),O=n.useRef(!1),D=!b||!!l||!!b.closest("form"),_={checked:y,disabled:a,setChecked:v,control:b,setControl:w,name:u,form:l,value:f,hasConsumerStoppedPropagationRef:O,required:p,defaultChecked:!E(o)&&o,isFormControl:D,bubbleInput:x,setBubbleInput:S};return(0,h.jsx)(g,{scope:e,..._,children:"function"==typeof m?m(_):i})}var v="CheckboxTrigger",b=n.forwardRef((t,e)=>{let{__scopeCheckbox:r,onKeyDown:o,onClick:s,...l}=t,{control:u,value:d,disabled:p,checked:f,required:g,setControl:y,setChecked:b,hasConsumerStoppedPropagationRef:w,isFormControl:x,bubbleInput:S}=m(v,r),O=(0,i.s)(e,y),D=n.useRef(f);return n.useEffect(()=>{let t=null==u?void 0:u.form;if(t){let e=()=>b(D.current);return t.addEventListener("reset",e),()=>t.removeEventListener("reset",e)}},[u,b]),(0,h.jsx)(c.sG.button,{type:"button",role:"checkbox","aria-checked":E(f)?"mixed":f,"aria-required":g,"data-state":_(f),"data-disabled":p?"":void 0,disabled:p,value:d,...l,ref:O,onKeyDown:(0,a.mK)(o,t=>{"Enter"===t.key&&t.preventDefault()}),onClick:(0,a.mK)(s,t=>{b(t=>!!E(t)||!t),S&&x&&(w.current=t.isPropagationStopped(),w.current||t.stopPropagation())})})});b.displayName=v;var w=n.forwardRef((t,e)=>{let{__scopeCheckbox:r,name:n,checked:i,defaultChecked:o,required:a,disabled:s,value:l,onCheckedChange:u,form:c,...d}=t;return(0,h.jsx)(y,{__scopeCheckbox:r,checked:i,defaultChecked:o,disabled:s,required:a,onCheckedChange:u,name:n,form:c,value:l,internal_do_not_use_render:t=>{let{isFormControl:n}=t;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(b,{...d,ref:e,__scopeCheckbox:r}),n&&(0,h.jsx)(D,{__scopeCheckbox:r})]})}})});w.displayName=d;var x="CheckboxIndicator",S=n.forwardRef((t,e)=>{let{__scopeCheckbox:r,forceMount:n,...i}=t,o=m(x,r);return(0,h.jsx)(u.C,{present:n||E(o.checked)||!0===o.checked,children:(0,h.jsx)(c.sG.span,{"data-state":_(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:e,style:{pointerEvents:"none",...t.style}})})});S.displayName=x;var O="CheckboxBubbleInput",D=n.forwardRef((t,e)=>{let{__scopeCheckbox:r,...o}=t,{control:a,hasConsumerStoppedPropagationRef:s,checked:u,defaultChecked:d,required:p,disabled:f,name:g,value:y,form:v,bubbleInput:b,setBubbleInput:w}=m(O,r),x=(0,i.s)(e,w),S=function(t){let e=n.useRef({value:t,previous:t});return n.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}(u),D=(0,l.X)(a);n.useEffect(()=>{if(!b)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,e=!s.current;if(S!==u&&t){let r=new Event("click",{bubbles:e});b.indeterminate=E(u),t.call(b,!E(u)&&u),b.dispatchEvent(r)}},[b,S,u,s]);let _=n.useRef(!E(u)&&u);return(0,h.jsx)(c.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=d?d:_.current,required:p,disabled:f,name:g,value:y,form:v,...o,tabIndex:-1,ref:x,style:{...o.style,...D,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function E(t){return"indeterminate"===t}function _(t){return E(t)?"indeterminate":t?"checked":"unchecked"}D.displayName=O},95594:(t,e,r)=>{"use strict";e.default=void 0;var n=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=u(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;
1a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}(r(10374)),i=l(r(39494)),o=l(r(56009)),a=r(70014),s=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function l(t){return t&&t.__esModule?t:{default:t}}function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(u=function(t){return t?r:e})(t)}function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var f=function(t){function e(){for(var e,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,r){var n=r.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(n,function(){return e.props.onResize&&e.props.onResize(t,r)})):e.setState(n)},e}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,p(e,t),e.getDerivedStateFromProps=function(t,e){return e.propsWidth!==t.width||e.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null},e.prototype.render=function(){var t=this.props,e=t.handle,r=t.handleSize,i=(t.onResize,t.onResizeStart),a=t.onResizeStop,l=t.draggableOpts,u=t.minConstraints,h=t.maxConstraints,p=t.lockAspectRatio,f=t.axis,g=(t.width,t.height,t.resizeHandles),m=t.style,y=t.transformScale,v=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,s);return n.createElement(o.default,{axis:f,draggableOpts:l,handle:e,handleSize:r,height:this.state.height,lockAspectRatio:p,maxConstraints:h,minConstraints:u,onResizeStart:i,onResize:this.onResize,onResizeStop:a,resizeHandles:g,transformScale:y,width:this.state.width},n.createElement("div",c({},v,{style:d(d({},m),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},e}(n.Component);e.default=f,f.propTypes=d(d({},a.resizableProps),{},{children:i.default.element})},95959:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=r(39113)},96486:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dontSetMe=function(t,e,r){if(t[e])return Error(`Invalid prop ${e} passed to ${r} - do not set this, set it on the child.`)},e.findInArray=function(t,e){for(let r=0,n=t.length;r<n;r++)if(e.apply(e,[t[r],r,t]))return t[r]},e.int=function(t){return parseInt(t,10)},e.isFunction=function(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)},e.isNum=function(t){return"number"==typeof t&&!isNaN(t)}},97755:(t,e,r)=>{"use strict";e.default=void 0;var n=c(r(10374)),i=u(r(39494)),o=r(10021),a=r(21285),s=r(65591),l=u(r(76161));function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(c=function(t,e){if(!e&&t&&t.__esModule)return t;var i,o,a={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return a;
1if(i=e?n:r){if(i.has(t))return i.get(t);i.set(t,a)}for(let e in t)"default"!==e&&({}).hasOwnProperty.call(t,e)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,e))&&(o.get||o.set)?i(a,e,o):a[e]=t[e]);return a})(t,e)}function h(){return(h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(null,arguments)}function d(t,e,r){var n;return(e="symbol"==typeof(n=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}let p=t=>Object.prototype.toString.call(t);function f(t,e){return null==t?null:Array.isArray(t)?t:t[e]}class g extends n.Component{constructor(){super(...arguments),d(this,"state",this.generateInitialState()),d(this,"onLayoutChange",t=>{this.props.onLayoutChange(t,{...this.props.layouts,[this.state.breakpoint]:t})})}generateInitialState(){let{width:t,breakpoints:e,layouts:r,cols:n}=this.props,i=(0,s.getBreakpointFromWidth)(e,t),o=(0,s.getColsFromBreakpoint)(i,n),a=!1===this.props.verticalCompact?null:this.props.compactType;return{layout:(0,s.findOrGenerateResponsiveLayout)(r,e,i,i,o,a),breakpoint:i,cols:o}}static getDerivedStateFromProps(t,e){if(!(0,o.deepEqual)(t.layouts,e.layouts)){let{breakpoint:r,cols:n}=e;return{layout:(0,s.findOrGenerateResponsiveLayout)(t.layouts,t.breakpoints,r,r,n,t.compactType),layouts:t.layouts}}return null}componentDidUpdate(t){this.props.width==t.width&&this.props.breakpoint===t.breakpoint&&(0,o.deepEqual)(this.props.breakpoints,t.breakpoints)&&(0,o.deepEqual)(this.props.cols,t.cols)||this.onWidthChange(t)}onWidthChange(t){let{breakpoints:e,cols:r,layouts:n,compactType:i}=this.props,o=this.props.breakpoint||(0,s.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),l=this.state.breakpoint,u=(0,s.getColsFromBreakpoint)(o,r),c={...n};if(l!==o||t.breakpoints!==e||t.cols!==r){l in c||(c[l]=(0,a.cloneLayout)(this.state.layout));let t=(0,s.findOrGenerateResponsiveLayout)(c,e,o,l,u,i);t=(0,a.synchronizeLayoutWithChildren)(t,this.props.children,u,i,this.props.allowOverlap),c[o]=t,this.props.onBreakpointChange(o,u),this.props.onLayoutChange(t,c),this.setState({breakpoint:o,layout:t,cols:u})}let h=f(this.props.margin,o),d=f(this.props.containerPadding,o);this.props.onWidthChange(this.props.width,h,u,d)}render(){let{breakpoint:t,breakpoints:e,cols:r,layouts:i,margin:o,containerPadding:a,onBreakpointChange:s,onLayoutChange:u,onWidthChange:c,...d}=this.props;return n.createElement(l.default,h({},d,{margin:f(o,this.state.breakpoint),containerPadding:f(a,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}e.default=g,d(g,"propTypes",{breakpoint:i.default.string,breakpoints:i.default.object,allowOverlap:i.default.bool,cols:i.default.object,margin:i.default.oneOfType([i.default.array,i.default.object]),containerPadding:i.default.oneOfType([i.default.array,i.default.object]),layouts(t,e){if("[object Object]"!==p(t[e]))throw Error("Layout property must be an object. Received: "+p(t[e]));Object.keys(t[e]).forEach(e=>{if(!(e in t.breakpoints))throw Error("Each key in layouts must align with a key in breakpoints.");(0,a.validateLayout)(t.layouts[e],"layouts."+e)})},width:i.default.number.isRequired,onBreakpointChange:i.default.func,onLayoutChange:i.default.func,onWidthChange:i.default.func}),d(g,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:a.noop,onLayoutChange:a.noop,onWidthChange:a.noop})},98163:()=>{}}]); 2//# sourceMappingURL=7958-f2ab963b47639f31.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.